Search Apps Documentation Source Content File Folder Download Copy Actions Download

users package

Functions

GetReadOnlyNameStore

func GetReadOnlyNameStore() *rotree.ReadOnlyTree
Execute

GetReadOnlyNameStore exposes the name store in readonly mode

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/sys/users.GetReadOnlyNameStore()"

Result

GetReadonlyAddrStore

func GetReadonlyAddrStore() *rotree.ReadOnlyTree
Execute

GetReadonlyAddrStore exposes the address store in readonly mode

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/sys/users.GetReadonlyAddrStore()"

Result

ProposeControllerAdditionAndRemoval

func ProposeControllerAdditionAndRemoval(toAdd, toRemove address) dao.ProposalRequest
Execute

ProposeControllerAdditionAndRemoval allows GovDAO to add a new caller and remove an old caller in the same proposal.

Params

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/sys/users.ProposeControllerAdditionAndRemoval(,)"

Result

ProposeControllerRemoval

func ProposeControllerRemoval(addr address) dao.ProposalRequest
Execute

ProposeControllerRemoval allows GovDAO to add a whitelisted caller

Param

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/sys/users.ProposeControllerRemoval()"

Result

ProposeNewController

func ProposeNewController(addr address) dao.ProposalRequest
Execute

ProposeNewController allows GovDAO to add a whitelisted caller

Param

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/sys/users.ProposeNewController()"

Result

RegisterUser

func RegisterUser(cur realm, name string, address_XXX address) error
Execute

RegisterUser adds a new user to the system.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/sys/users" -func "RegisterUser" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "test10" -remote "https://rpc.test10.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.test10.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/sys/users" -func "RegisterUser" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test10" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test10.testnets.gno.land" call.tx
  

Render

func Render(_ string) string
Execute

Param

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/sys/users.Render()"

Result

NewErrNotWhitelisted

func NewErrNotWhitelisted() ErrNotWhitelisted
Execute

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/sys/users.NewErrNotWhitelisted()"

Result

ResolveAddress

func ResolveAddress(addr address) *UserData
Execute

ResolveAddress returns the latest UserData of a specific user by address

Param

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/sys/users.ResolveAddress()"

Result

ResolveAny

func ResolveAny(input string) (*UserData, bool)
Execute

ResolveAny tries to resolve any given string to \*UserData If the input is not found in the registry in any form, nil is returned

Param

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/sys/users.ResolveAny()"

Result

ResolveName

func ResolveName(name string) (data *UserData, isCurrent bool)
Execute

ResolveName returns the latest UserData of a specific user by name or alias

Param

Command

gnokey query vm/qeval -remote "https://rpc.test10.testnets.gno.land" -data "gno.land/r/sys/users.ResolveName()"

Result