Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: r/demo/users #3166

Open
wants to merge 260 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
260 commits
Select commit Hold shift + click to select a range
970b3f0
save
leohhhn Nov 21, 2024
0ad5292
save
leohhhn Nov 21, 2024
3d72544
fix err name
leohhhn Nov 21, 2024
2f68087
Merge branch 'master' into refac/users
leohhhn Nov 22, 2024
114de1b
Merge branch 'master' into refac/users
leohhhn Nov 22, 2024
a3ed4e6
add paginated fetch
leohhhn Nov 22, 2024
b7cc608
add list by prefix
leohhhn Nov 22, 2024
3e58017
fix imports
leohhhn Nov 22, 2024
69cfe1c
add admin tests
leohhhn Nov 22, 2024
46fcc93
fix
leohhhn Nov 26, 2024
9ee9c41
Merge branch 'refs/heads/master' into refac/users
leohhhn Nov 26, 2024
065b2de
rename func
leohhhn Nov 26, 2024
f94a97d
save
leohhhn Nov 26, 2024
1f0f9a1
add xxx
leohhhn Nov 27, 2024
1ad9c57
add cmt
leohhhn Nov 27, 2024
c036996
username>name, add tests
leohhhn Dec 3, 2024
fc2a105
Merge branch 'refs/heads/master' into refac/users
leohhhn Dec 3, 2024
db1731e
rename files, add util_test
leohhhn Dec 3, 2024
a1b40fe
add test
leohhhn Dec 3, 2024
21f4379
move pusers
leohhhn Dec 3, 2024
de48585
simplify p/users
leohhhn Dec 3, 2024
6b39d88
add ctor
leohhhn Dec 3, 2024
408db75
pusers>susers
leohhhn Dec 3, 2024
7939469
extendeduser
leohhhn Dec 3, 2024
7a8795a
rm comment
leohhhn Dec 3, 2024
ffef138
rm error
leohhhn Dec 3, 2024
49f8c7d
Merge branch 'master' into refac/users
leohhhn Dec 3, 2024
c0067c5
rm pointer
leohhhn Dec 3, 2024
0dadb34
rm pointer
leohhhn Dec 3, 2024
2bb8e7d
rm newuser
leohhhn Dec 3, 2024
64f9455
save
leohhhn Dec 4, 2024
d9aa544
Merge branch 'refs/heads/master' into refac/users
leohhhn Dec 8, 2024
1a94d25
rm extendeduserstore
leohhhn Dec 15, 2024
5bee1ee
rm update bio
leohhhn Dec 15, 2024
5a02dc6
rm prereg
leohhhn Dec 15, 2024
0e07c53
revert prereg
leohhhn Dec 15, 2024
776e1ac
rm extuserstore
leohhhn Dec 15, 2024
411965b
lookup
leohhhn Dec 16, 2024
285b26f
rm restricted
leohhhn Dec 16, 2024
882711a
aliasstore
leohhhn Dec 16, 2024
c871060
save
leohhhn Dec 16, 2024
61d438c
rename aliasstore & regex
leohhhn Dec 16, 2024
bc02264
move verifier
leohhhn Dec 16, 2024
2454e8e
add cmt
leohhhn Dec 16, 2024
e20299d
fix verifier, comment out resolveaddress funcs
leohhhn Dec 16, 2024
d27845e
add cmt
leohhhn Dec 17, 2024
0f335e1
expose ownable & pausable apis
leohhhn Dec 17, 2024
3f3e0bd
imports
leohhhn Dec 17, 2024
ee8e670
verifiy
leohhhn Dec 17, 2024
a2a17bc
Merge branch 'refs/heads/master' into refac/users
leohhhn Dec 17, 2024
b00cc3a
update verifier
leohhhn Dec 17, 2024
b73c944
add verifier tests, modify store
leohhhn Dec 17, 2024
b34e0ea
add fetcher funcs
leohhhn Dec 18, 2024
e1d1945
update tests
leohhhn Dec 18, 2024
75a87e0
update gnoland/users
leohhhn Dec 18, 2024
e92964c
Merge branch 'master' into refac/users
leohhhn Dec 18, 2024
e1f8e58
render
leohhhn Dec 18, 2024
c4098d9
save
leohhhn Dec 18, 2024
c455438
rm aon
leohhhn Dec 19, 2024
03b246e
rm lookup ctr
leohhhn Dec 19, 2024
0abf40d
field
leohhhn Dec 19, 2024
f964e6f
ctr
leohhhn Dec 19, 2024
3e99909
rm get all names
leohhhn Dec 19, 2024
7acd8b1
update store
leohhhn Dec 19, 2024
7841aa3
store
leohhhn Dec 19, 2024
8bbf5ae
Merge branch 'refs/heads/master' into refac/users
leohhhn Dec 25, 2024
55573ee
rm cmts
leohhhn Dec 25, 2024
18a9c50
rm old impl
leohhhn Jan 4, 2025
2bf6319
add new impl, fix tests
leohhhn Jan 4, 2025
3338554
add test
leohhhn Jan 4, 2025
001d759
add events
leohhhn Jan 4, 2025
a11686a
update verifier
leohhhn Jan 4, 2025
926e50f
update comments
leohhhn Jan 4, 2025
b9f0e19
rm unused const
leohhhn Jan 4, 2025
5b557a8
add validateCall
leohhhn Jan 5, 2025
5e97815
Merge branch 'master' into refac/users
leohhhn Jan 5, 2025
ef9338f
update r/gnoland/users
leohhhn Jan 5, 2025
defba3b
update deleteuser
leohhhn Jan 5, 2025
455b724
rm comment, extra file
leohhhn Jan 6, 2025
7a0cbe3
fix verifier tests
leohhhn Jan 6, 2025
8fdc53f
fix deletion
leohhhn Jan 6, 2025
ee7b38e
add govdao verifier update
leohhhn Jan 7, 2025
742f48f
fix imports
leohhhn Jan 7, 2025
da6ae8a
switch err checks
leohhhn Jan 8, 2025
12d0101
add package desc
leohhhn Jan 8, 2025
e8ddd56
rm t.parallel
leohhhn Jan 13, 2025
58e8dc0
Merge branch 'master' into refac/users
leohhhn Jan 13, 2025
57c626b
use p/moul/addrset
leohhhn Jan 13, 2025
09ed87e
update cmt
leohhhn Jan 13, 2025
761db0e
move to v1
leohhhn Jan 13, 2025
3578b49
fix
leohhhn Jan 14, 2025
d98e895
fix names
leohhhn Jan 14, 2025
a5114ec
fix
leohhhn Jan 14, 2025
d73d8f8
change api
leohhhn Jan 15, 2025
1d066dd
update api, tests
leohhhn Jan 15, 2025
c335636
rm govdao executors
leohhhn Jan 15, 2025
221b38f
name
leohhhn Jan 15, 2025
1cacf38
massive rename job 🫠
leohhhn Jan 16, 2025
07a8ca4
Merge branch 'refs/heads/master' into refac/users
leohhhn Jan 16, 2025
a0da376
fix lint
leohhhn Jan 16, 2025
5b07dc8
Merge branch 'master' into refac/users
leohhhn Jan 16, 2025
a68cd9d
fix test
leohhhn Jan 16, 2025
6041e86
fix tests
leohhhn Jan 16, 2025
fbfc932
rm traces of demo/users
leohhhn Jan 16, 2025
9afb231
fix rendering, expose addrstore
leohhhn Jan 16, 2025
4bc7ae7
404
leohhhn Jan 16, 2025
b9aa62b
render
leohhhn Jan 16, 2025
0eeac54
return board filetests, make them work
leohhhn Jan 16, 2025
7081f30
fix tests
leohhhn Jan 16, 2025
56eaa3a
Merge branch 'master' into refac/users
leohhhn Jan 16, 2025
4e58502
make fmt
leohhhn Jan 16, 2025
9890d32
update home page, update godoc
leohhhn Jan 16, 2025
70aae18
add v1 tests, rm emits
leohhhn Jan 16, 2025
4c6b55a
modify keeper to use r/sys/names instead of r/sys/users
leohhhn Jan 16, 2025
47ce6cf
add updatebio link
leohhhn Jan 17, 2025
73d698d
cmt
leohhhn Jan 17, 2025
3a71236
fixing txtar
leohhhn Jan 17, 2025
b333429
update txtar
leohhhn Jan 17, 2025
091bd8a
rm parallel
leohhhn Jan 17, 2025
021ff34
revert txtars
leohhhn Jan 17, 2025
b4e441d
update v1 rendering, expose both roavl stores
leohhhn Jan 17, 2025
d8624ef
rm listusersbyprefix
leohhhn Jan 17, 2025
a623b81
update rendering
leohhhn Jan 17, 2025
73f67fe
fix connect link
leohhhn Jan 17, 2025
cf74724
switch actions
leohhhn Jan 17, 2025
76f0e9e
update btns
leohhhn Jan 17, 2025
3c83640
Merge branch 'master' into refac/users
leohhhn Jan 18, 2025
56ead47
update genesis params
leohhhn Jan 18, 2025
8940f9c
fix namespace txtar, add comment executor funcs, modify genesis_params
leohhhn Jan 19, 2025
4bb226d
fix 2 txtars
leohhhn Jan 19, 2025
7be3dc0
add verifier tests
leohhhn Jan 19, 2025
b2940bb
update namespace test
leohhhn Jan 19, 2025
97f5ca7
Merge branch 'master' into refac/users
leohhhn Jan 19, 2025
bf81aa1
add executors
leohhhn Jan 19, 2025
877ccbc
typo
leohhhn Jan 19, 2025
6efcb30
embed users & boards source code into txtar
leohhhn Jan 19, 2025
2f2f085
rm genesis txs, update readme, update docs-partially
leohhhn Jan 20, 2025
00cbbb5
add registration & boards to genesis_txs, rm signatures
leohhhn Jan 20, 2025
c6c5613
rm leftover file
leohhhn Jan 20, 2025
ee6758f
Merge branch 'master' into refac/users
leohhhn Jan 20, 2025
69ac851
Merge branch 'master' into refac/users
thehowl Jan 21, 2025
b899731
fix broken test
leohhhn Jan 21, 2025
1dc09e9
rm leftover
leohhhn Jan 24, 2025
2a63dc4
Merge branch 'refs/heads/master' into refac/users
leohhhn Jan 27, 2025
326a7cd
fix home
leohhhn Jan 27, 2025
81ee4fd
pausable godoc
leohhhn Jan 27, 2025
ec8f58a
update test
leohhhn Jan 27, 2025
91723df
bump gas on tst
leohhhn Jan 27, 2025
3785d16
Merge branch 'master' into refac/users
leohhhn Jan 27, 2025
3dd585d
remove wal
leohhhn Jan 27, 2025
05a9f9a
update docs
leohhhn Jan 27, 2025
3dcb364
Update gno.land/genesis/genesis_txs.jsonl
leohhhn Feb 2, 2025
bd96980
Merge branch 'master' into refac/users
leohhhn Feb 3, 2025
f2e3106
fix pausable
leohhhn Feb 3, 2025
50566f3
fix test
leohhhn Feb 3, 2025
3e77cb5
replace v1 with u/
leohhhn Feb 3, 2025
a272ac4
add users to home page
leohhhn Feb 3, 2025
ff6e8c1
update filetest
leohhhn Feb 3, 2025
3ca00d5
add changelog as table, add users/ root realm
leohhhn Feb 3, 2025
37052dc
update releases, add note
leohhhn Feb 3, 2025
9ad49d8
edgecases
leohhhn Feb 3, 2025
ae82318
fix render links
leohhhn Feb 3, 2025
4c30039
fix tests & docs
leohhhn Feb 3, 2025
6bb1deb
Merge branch 'master' into refac/users
leohhhn Feb 8, 2025
c2a4189
fix boards tests
leohhhn Feb 8, 2025
44c7b87
fix fomo3d
leohhhn Feb 8, 2025
898820c
add executors
leohhhn Feb 8, 2025
53fc361
fix txtar
leohhhn Feb 8, 2025
8756799
Apply suggestions from code review
leohhhn Feb 9, 2025
8b26ec9
add nil checks, add receivers, add new error, fix test
leohhhn Feb 10, 2025
3a96919
add mechanism
leohhhn Feb 10, 2025
11acb72
fix gnoland/users
leohhhn Feb 10, 2025
125ecf9
rm validateCall
leohhhn Feb 10, 2025
c747e4f
fmt
leohhhn Feb 10, 2025
8d83787
return check
leohhhn Feb 10, 2025
e4a3bef
Merge branch 'master' into refac/users
leohhhn Feb 10, 2025
e969c9b
update u/ rendering
leohhhn Feb 10, 2025
c7a78d7
update rendering :)
leohhhn Feb 10, 2025
be3c822
update actions bar
leohhhn Feb 10, 2025
6dd5e99
update docs
leohhhn Feb 10, 2025
246d7c5
decode > isvalid
leohhhn Feb 10, 2025
78fb899
Merge branch 'master' into refac/users
leohhhn Feb 11, 2025
6710db2
add govdao to make release changes
leohhhn Feb 11, 2025
018afa0
add if cond
leohhhn Feb 11, 2025
d548cdd
add cmt
leohhhn Feb 11, 2025
1688699
rm newline
leohhhn Feb 11, 2025
92ffb4d
Apply suggestions from code review
leohhhn Feb 12, 2025
a5a84af
add rotree test
leohhhn Feb 12, 2025
a15dd2c
rm names event
leohhhn Feb 12, 2025
6778955
rm names verified upgradeability
leohhhn Feb 12, 2025
c6524df
update tests
leohhhn Feb 12, 2025
76e4e23
rename executors
leohhhn Feb 12, 2025
94a449b
rm panic
leohhhn Feb 12, 2025
85cee3b
rename import
leohhhn Feb 12, 2025
f50a9d6
update event names
leohhhn Feb 12, 2025
f662b84
govdao executors, tests
leohhhn Feb 12, 2025
ca4b2a9
rm unused
leohhhn Feb 12, 2025
17d082d
rm connect
leohhhn Feb 12, 2025
2a692e5
rename package
leohhhn Feb 12, 2025
25af5b4
users renderlink
leohhhn Feb 12, 2025
6479e4d
add cmt
leohhhn Feb 12, 2025
45da2de
fix prop
leohhhn Feb 12, 2025
793755c
fix errs
leohhhn Feb 12, 2025
e25a388
fix cmt
leohhhn Feb 12, 2025
849e536
prereg
leohhhn Feb 13, 2025
a5b8f43
fix makesafefn
leohhhn Feb 13, 2025
b8adc98
add test
leohhhn Feb 13, 2025
b2161b3
cmt
leohhhn Feb 13, 2025
0d6e5dc
add test
leohhhn Feb 14, 2025
f90c407
Merge branch 'master' into refac/users
leohhhn Feb 15, 2025
7d78359
add filetest
leohhhn Feb 15, 2025
70e95c7
lint
leohhhn Feb 15, 2025
6cc325b
rm unused
leohhhn Feb 15, 2025
8adec90
fmt
leohhhn Feb 15, 2025
32e1377
Merge branch 'master' into refac/users
leohhhn Feb 17, 2025
71c67ea
Merge branch 'master' into refac/users
leohhhn Feb 20, 2025
bf81466
fix examples
leohhhn Feb 20, 2025
832ca31
add removed tests
leohhhn Feb 20, 2025
def8bb9
fmt
leohhhn Feb 20, 2025
d21b4a2
Merge branch 'master' into refac/users
leohhhn Feb 20, 2025
dd39978
fix txtar
leohhhn Feb 20, 2025
c4b5d12
fix txtar
leohhhn Feb 20, 2025
bd3855a
revert genesis_txs
leohhhn Feb 20, 2025
2d56042
add latest release endpoin
leohhhn Feb 21, 2025
7fbe71a
move
leohhhn Feb 21, 2025
466b7e8
fix release
leohhhn Feb 21, 2025
1a12b70
var
leohhhn Feb 21, 2025
784dd0e
Merge branch 'master' into refac/users
leohhhn Feb 24, 2025
758809b
Merge branch 'master' into refac/users
leohhhn Feb 24, 2025
edd3665
update render with fifo, fix inlining in fifo
leohhhn Feb 24, 2025
28ffdcb
bump default gnoweb gas amt
leohhhn Feb 24, 2025
53d334b
fmt
leohhhn Feb 24, 2025
d3c1219
fix filetests
leohhhn Feb 24, 2025
a8c2fc5
rm dup
leohhhn Feb 25, 2025
3badf28
Merge branch 'master' into refac/users
leohhhn Feb 26, 2025
b5c9985
Merge branch 'master' into refac/users
leohhhn Feb 26, 2025
3acebef
add renderlink functionality
leohhhn Feb 26, 2025
8ae4d42
fixup minisocial
leohhhn Feb 26, 2025
da13e78
save
leohhhn Feb 27, 2025
35a1e40
fmt
leohhhn Feb 27, 2025
90797ef
save
leohhhn Feb 27, 2025
6007b7e
fix group filetests
leohhhn Feb 27, 2025
89f6ab6
fix out of gas
leohhhn Feb 27, 2025
781934f
txtar
leohhhn Feb 27, 2025
cbeb92b
add fee for registration
leohhhn Feb 27, 2025
7b1ff56
render
leohhhn Feb 27, 2025
3d8465a
Merge branch 'master' into refac/users
leohhhn Feb 27, 2025
2321074
fix genesis txs
leohhhn Feb 27, 2025
5907fa1
Merge branch 'master' into refac/users
leohhhn Feb 28, 2025
f8758fe
rm comment
leohhhn Feb 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update docs
  • Loading branch information
leohhhn committed Jan 27, 2025
commit 05a9f9a701ea1cbb8a825e78d5feade269599f41
29 changes: 10 additions & 19 deletions docs/concepts/namespaces.md
Original file line number Diff line number Diff line change
@@ -7,12 +7,6 @@ id: namespaces
Namespaces provide users with the exclusive capability to publish contracts under their designated namespaces,
similar to GitHub's user and organization model.

:::warning Not enabled

This feature isn't enabled by default on the portal loop chain and is currently available only on test4.gno.land.

:::

# Package Path

A package path is a unique identifier for each package/realm. It specifies the location of the package source
@@ -45,31 +39,28 @@ Examples:
## Registration Process

The registration process is contract-based. The `AddPkg` command references
`sys/users` for filtering, which in turn is based on `r/demo/users`.
`r/sys/names` for filtering, which in turn is based on `r/sys/users`.

When `sys/users` is enabled, you need to register a name using `r/demo/users`. You can call the
`r/demo/users.Register` function to register the name for the caller's address.
To obtain a namespace, you need to register a name using `r/gnoland/users/v1`.
Visit [the realm](https://gno.land/r/gnoland/users/v1) for more information.

> ex: `test1` user registering as `patrick`
> ex: address `test1` registering as `patrick123`
```bash
$ gnokey maketx call -pkgpath gno.land/r/demo/users \
$ gnokey maketx call -pkgpath gno.land/r/gnoland/users/v1 \
-func Register \
-gas-fee 1000000ugnot -gas-wanted 2000000 \
-broadcast \
-chainid=test4 \
-send=20000000ugnot \
-args '' \
-args 'patrick' \
-args 'My Profile Quote' test1
-chainid=portal-loop \
-remote="https://gno.land/r/gnoland/users/v1" \
-args 'patrick123' \
test1
```

:::note Chain-ID

Do not forget to update chain id, adequate to the network you're interacting with

Depending on the network you're usiing, the
:::


After successful registration, you can add a package under the registered namespace.

## Anonymous Namespace
23 changes: 1 addition & 22 deletions docs/gno-tooling/cli/gnokey/querying-a-network.md
Original file line number Diff line number Diff line change
@@ -152,28 +152,7 @@ gnokey query vm/qfile -data "gno.land/r/demo/wugnot/wugnot.gno" -remote https://
Output:
```bash
height: 0
data: package wugnot

import (
"std"
"strings"

"gno.land/p/demo/grc/grc20"
"gno.land/p/demo/ufmt"
pusers "gno.land/p/demo/users"
"gno.land/r/demo/users"
)

var (
banker *grc20.Banker = grc20.NewBanker("wrapped GNOT", "wugnot", 0)
Token = banker.Token()
)

const (
ugnotMinDeposit uint64 = 1000
wugnotMinDeposit uint64 = 1
)
...
data: // package code
```

## `vm/qeval`
Loading