AddGrantable
func AddGrantable(cur realm, granterRole, grantableRole string)
Link
Execute
AddGrantable allows granterRole to grant grantableRole to users
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/akkadia/chunk" -func "AddGrantable" -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "AddGrantable" -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx
AddPermissionToRole
func AddPermissionToRole(cur realm, roleName string, permissionName string)
Link
Execute
AddPermissionToRole adds a permission to an existing role
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/akkadia/chunk" -func "AddPermissionToRole" -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "AddPermissionToRole" -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx
Approve
func Approve(cur realm, user address, tokenID grc721.TokenID)
Link
Execute
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/akkadia/chunk" -func "Approve" -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "Approve" -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx
BalanceOf
func BalanceOf(user address) int64
Link
Execute
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.BalanceOf( )"
Burn
func Burn(cur realm, tokenID grc721.TokenID)
Link
Execute
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/akkadia/chunk" -func "Burn" -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "Burn" -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx
CreatePermission
func CreatePermission(cur realm, name string, description string)
Link
Execute
CreatePermission creates a new permission definition
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/akkadia/chunk" -func "CreatePermission" -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "CreatePermission" -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx
CreateRole
func CreateRole(cur realm, roleName string, maxAssign int, permissions string)
Link
Execute
CreateRole creates a new role with permissions permissions is a comma-separated string of permission names maxAssign: 0 = unlimited assignments
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/akkadia/chunk" -func "CreateRole" -args $' ' -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "CreateRole" -args $' ' -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx
CreateWorld
func CreateWorld(cur realm, id uint32, biomeName, name, slug string, seed int, options string)
Link
Execute
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/akkadia/chunk" -func "CreateWorld" -args $' ' -args $' ' -args $' ' -args $' ' -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "CreateWorld" -args $' ' -args $' ' -args $' ' -args $' ' -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx
DeletePermission
func DeletePermission(cur realm, name string)
Link
Execute
DeletePermission deletes a permission and removes it from all roles
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/akkadia/chunk" -func "DeletePermission" -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "DeletePermission" -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx
DeleteRole
func DeleteRole(cur realm, roleName string)
Link
Execute
DeleteRole deletes a role and removes all its assignments
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/akkadia/chunk" -func "DeleteRole" -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "DeleteRole" -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx
GetBatchLimit
func GetBatchLimit() int
Link
Execute
GetBatchLimit returns the max keys per batch query
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.GetBatchLimit()"
GetChunkVerifier
func GetChunkVerifier(worldID uint32, chunkKey string) string
Link
Execute
GetChunkVerifier retrieves verifier for a specific chunk key of a world.
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.GetChunkVerifier( , )"
GetListLimit
func GetListLimit() int
Link
Execute
GetListLimit returns the max items per list query
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.GetListLimit()"
func GetMetadata(tokenID grc721.TokenID) map[string]string
Link
Execute
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.GetMetadata( )"
GetOwnerTokenSize
func GetOwnerTokenSize(owner address) int
Link
Execute
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.GetOwnerTokenSize( )"
GetPermissions
func GetPermissions() map[string]string
Link
Execute
GetPermissions returns all available permissions
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.GetPermissions()"
GetRoleInfo
func GetRoleInfo(roleName string) map[string]string
Link
Execute
GetRoleInfo returns detailed information about a role
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.GetRoleInfo( )"
GetTotalWorldSize
func GetTotalWorldSize() int
Link
Execute
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.GetTotalWorldSize()"
GetWorld
func GetWorld(worldID uint32) map[string]string
Link
Execute
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.GetWorld( )"
GetWorldBySlug
func GetWorldBySlug(slug string) map[string]string
Link
Execute
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.GetWorldBySlug( )"
func GetWorldMetadataSize(worldID uint32) int
Link
Execute
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.GetWorldMetadataSize( )"
GrantMaster
func GrantMaster(cur realm, worldID uint32, user address)
Link
Execute
GrantMaster grants master role to a user for a world (admin only)
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/akkadia/chunk" -func "GrantMaster" -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "GrantMaster" -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx
GrantRole
func GrantRole(cur realm, tid grc721.TokenID, roleName string, user address)
Link
Execute
GrantRole assigns a role to a user for a specific chunk Owner, admin, or users with grantable permission can grant roles
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/akkadia/chunk" -func "GrantRole" -args $' ' -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "GrantRole" -args $' ' -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx
HasInstallPermission
func HasInstallPermission(tid grc721.TokenID, caller address) bool
Link
Execute
HasInstallPermission checks if caller has permission to install blocks in the chunk
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.HasInstallPermission( , )"
HasPermission
func HasPermission(tid grc721.TokenID, user address, permission string) bool
Link
Execute
HasPermission checks if a user has a specific permission for a chunk Owner always has all permissions
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.HasPermission( , , )"
HasRole
func HasRole(tid grc721.TokenID, user address, roleName string) bool
Link
Execute
HasRole checks if a user has a specific role for a chunk
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.HasRole( , , )"
HasUninstallPermission
func HasUninstallPermission(tid grc721.TokenID, caller address) bool
Link
Execute
HasUninstallPermission checks if caller has permission to uninstall blocks from the chunk
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.HasUninstallPermission( , )"
IsApprovedForAll
func IsApprovedForAll(owner, user address) bool
Link
Execute
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.IsApprovedForAll( , )"
IsMaster
func IsMaster(worldID uint32, user address) bool
Link
Execute
IsMaster checks if a user is a master for a world
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.IsMaster( , )"
ListChunkVerifiers
func ListChunkVerifiers(worldID uint32, chunkKeys ...string) []map[string]string
Link
Execute
ListChunkVerifiers retrieves verifiers for multiple chunk keys of a world.
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.ListChunkVerifiers( , )"
ListGrantables
func ListGrantables(granterRole string) []string
Link
Execute
ListGrantables returns roles that granterRole can grant
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.ListGrantables( )"
ListMasterWorlds
func ListMasterWorlds(user address) []uint32
Link
Execute
ListMasterWorlds returns all worlds where a user is a master
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.ListMasterWorlds( )"
func ListMetadataByOwner(owner address, page, count int) []map[string]string
Link
Execute
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.ListMetadataByOwner( , , )"
func ListMetadataByWorld(worldID uint32, page, count int) []map[string]string
Link
Execute
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.ListMetadataByWorld( , , )"
ListOwners
func ListOwners(tokenIDs ...grc721.TokenID) []map[string]string
Link
Execute
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.ListOwners( )"
ListRoles
func ListRoles() []string
Link
Execute
ListRoles returns all available role names
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.ListRoles()"
ListTokensByOwner
func ListTokensByOwner(owner address, page, count int) []string
Link
Execute
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.ListTokensByOwner( , , )"
ListUserRoles
func ListUserRoles(tid grc721.TokenID, user address) []map[string]string
Link
Execute
ListUserRoles returns all roles assigned to a user for a specific chunk
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.ListUserRoles( , )"
ListWorlds
func ListWorlds(page, count int) []map[string]string
Link
Execute
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.ListWorlds( , )"
Mint
func Mint(cur realm, to address, worldType string, worldID uint32, x string, y string, chunkHashKey string, chunkVerifier string) grc721.TokenID
Link
Execute
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/akkadia/chunk" -func "Mint" -args $' ' -args $' ' -args $' ' -args $' ' -args $' ' -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "Mint" -args $' ' -args $' ' -args $' ' -args $' ' -args $' ' -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx
Name
func Name() string
Link
Execute
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.Name()"
RemoveGrantable
func RemoveGrantable(cur realm, granterRole, grantableRole string)
Link
Execute
RemoveGrantable removes the ability for granterRole to grant grantableRole
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/akkadia/chunk" -func "RemoveGrantable" -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "RemoveGrantable" -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx
RemovePermissionFromRole
func RemovePermissionFromRole(cur realm, roleName string, permissionName string)
Link
Execute
RemovePermissionFromRole removes a permission from a role
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/akkadia/chunk" -func "RemovePermissionFromRole" -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "RemovePermissionFromRole" -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx
Render
func Render(iUrl string) string
Link
Execute
Render
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.Render( )"
RevokeMaster
func RevokeMaster(cur realm, worldID uint32, user address)
Link
Execute
RevokeMaster revokes master role from a user for a world (admin only)
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/akkadia/chunk" -func "RevokeMaster" -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "RevokeMaster" -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx
RevokeRole
func RevokeRole(cur realm, tid grc721.TokenID, roleName string, user address)
Link
Execute
RevokeRole removes a role from a user for a specific chunk Owner, admin, or users with grantable permission can revoke roles
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/akkadia/chunk" -func "RevokeRole" -args $' ' -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "RevokeRole" -args $' ' -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx
SetApprovalForAll
func SetApprovalForAll(cur realm, user address, approved bool)
Link
Execute
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/akkadia/chunk" -func "SetApprovalForAll" -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "SetApprovalForAll" -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx
SetBatchLimit
func SetBatchLimit(cur realm, limit int)
Link
Execute
SetBatchLimit sets the max keys per batch query (admin only)
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/akkadia/chunk" -func "SetBatchLimit" -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "SetBatchLimit" -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx
SetChunkVerifier
func SetChunkVerifier(cur realm, worldID uint32, chunkKey string, verifier string)
Link
Execute
SetChunkVerifier stores verifier for a specific chunk key of a world. Verifier includes hash for integrity verification.
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/akkadia/chunk" -func "SetChunkVerifier" -args $' ' -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "SetChunkVerifier" -args $' ' -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx
SetChunkVerifiers
func SetChunkVerifiers(cur realm, worldID uint32, chunkKeys string, verifiers string)
Link
Execute
SetChunkVerifiers sets multiple chunk verifiers at once using direct string traversal. chunkKeys and verifiers are comma-separated strings with matching item counts. Example: chunkKeys="0\_0,0\_1,1\_0", verifiers="hash1,hash2,hash3"
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/akkadia/chunk" -func "SetChunkVerifiers" -args $' ' -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "SetChunkVerifiers" -args $' ' -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx
SetListLimit
func SetListLimit(cur realm, limit int)
Link
Execute
SetListLimit sets the max items per list query (admin only)
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/akkadia/chunk" -func "SetListLimit" -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "SetListLimit" -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx
SetWorldProperty
func SetWorldProperty(cur realm, worldID uint32, key string, value string)
Link
Execute
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/akkadia/chunk" -func "SetWorldProperty" -args $' ' -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "SetWorldProperty" -args $' ' -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx
Symbol
func Symbol() string
Link
Execute
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.Symbol()"
TokenCount
func TokenCount() int64
Link
Execute
Command
gnokey query vm/qeval -remote "gnoland:26657 " -data "gno.land/r/akkadia/chunk.TokenCount()"
TransferFrom
func TransferFrom(cur realm, from, to address, tokenID grc721.TokenID)
Link
Execute
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/akkadia/chunk" -func "TransferFrom" -args $' ' -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "TransferFrom" -args $' ' -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx
UpdateRole
func UpdateRole(cur realm, roleName string, maxAssign int, permissions string)
Link
Execute
UpdateRole updates a role's maxAssign and permissions permissions is a comma-separated string of permission names (replaces all existing permissions) maxAssign: 0 = unlimited assignments
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/akkadia/chunk" -func "UpdateRole" -args $' ' -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "UpdateRole" -args $' ' -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx
UpdateRoleProperty
func UpdateRoleProperty(cur realm, roleName string, key string, value string)
Link
Execute
UpdateRoleProperty updates a single property of a role
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/akkadia/chunk" -func "UpdateRoleProperty" -args $' ' -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "UpdateRoleProperty" -args $' ' -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx
UpdateWorld
func UpdateWorld(cur realm, worldID uint32, biomeName, name, slug, options string)
Link
Execute
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/akkadia/chunk" -func "UpdateWorld" -args $' ' -args $' ' -args $' ' -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESS gnokey query -remote "gnoland:26657" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/akkadia/chunk" -func "UpdateWorld" -args $' ' -args $' ' -args $' ' -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "dev" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "gnoland:26657" call.tx