names package

Overview

Package names provides functionality for checking of package deployments by users registered in r/sys/users are done to proper namespaces.

Function

IsAuthorizedAddressForNamespace

func IsAuthorizedAddressForNamespace(address_XXX address, namespace string) bool

IsAuthorizedAddressForNamespace ensures that the given address has ownership of the given name. A user's name found in r/sys/users is equivalent to their namespace.

Params

Command

gnokey query -remote "https://rpc.gno.land:443" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/sys/names" -func "IsAuthorizedAddressForNamespace"  -args "" -args "" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "staging" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.gno.land:443" call.tx