Search Apps Documentation Source Content File Folder Download Copy Actions Download

chunk package

Functions

AddGrantable

func AddGrantable(cur realm, granterRole, grantableRole string)
Execute

AddGrantable allows granterRole to grant grantableRole to users

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/akkadia/chunk" -func "AddGrantable" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESSgnokey 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)
Execute

AddPermissionToRole adds a permission to an existing role

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/akkadia/chunk" -func "AddPermissionToRole" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESSgnokey 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)
Execute

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/akkadia/chunk" -func "Approve" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESSgnokey 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
Execute

Param

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.BalanceOf()"

Result

Burn

func Burn(cur realm, tokenID grc721.TokenID)
Execute

Param

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" ADDRESSgnokey 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)
Execute

CreatePermission creates a new permission definition

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/akkadia/chunk" -func "CreatePermission" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESSgnokey 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)
Execute

CreateRole creates a new role with permissions permissions is a comma-separated string of permission names maxAssign: 0 = unlimited assignments

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/akkadia/chunk" -func "CreateRole" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESSgnokey 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)
Execute

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/akkadia/chunk" -func "CreateWorld" -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESSgnokey 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)
Execute

DeletePermission deletes a permission and removes it from all roles

Param

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" ADDRESSgnokey 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)
Execute

DeleteRole deletes a role and removes all its assignments

Param

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" ADDRESSgnokey 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
Execute

GetBatchLimit returns the max keys per batch query

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.GetBatchLimit()"

Result

GetChunkVerifier

func GetChunkVerifier(worldID uint32, chunkKey string) string
Execute

GetChunkVerifier retrieves verifier for a specific chunk key of a world.

Params

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.GetChunkVerifier(,)"

Result

GetListLimit

func GetListLimit() int
Execute

GetListLimit returns the max items per list query

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.GetListLimit()"

Result

GetMetadata

func GetMetadata(tokenID grc721.TokenID) map[string]string
Execute

Param

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.GetMetadata()"

Result

GetOwnerTokenSize

func GetOwnerTokenSize(owner address) int
Execute

Param

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.GetOwnerTokenSize()"

Result

GetPermissions

func GetPermissions() map[string]string
Execute

GetPermissions returns all available permissions

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.GetPermissions()"

Result

GetRoleInfo

func GetRoleInfo(roleName string) map[string]string
Execute

GetRoleInfo returns detailed information about a role

Param

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.GetRoleInfo()"

Result

GetTotalWorldSize

func GetTotalWorldSize() int
Execute

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.GetTotalWorldSize()"

Result

GetWorld

func GetWorld(worldID uint32) map[string]string
Execute

Param

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.GetWorld()"

Result

GetWorldBySlug

func GetWorldBySlug(slug string) map[string]string
Execute

Param

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.GetWorldBySlug()"

Result

GetWorldMetadataSize

func GetWorldMetadataSize(worldID uint32) int
Execute

Param

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.GetWorldMetadataSize()"

Result

GrantMaster

func GrantMaster(cur realm, worldID uint32, user address)
Execute

GrantMaster grants master role to a user for a world (admin only)

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/akkadia/chunk" -func "GrantMaster" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESSgnokey 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)
Execute

GrantRole assigns a role to a user for a specific chunk Owner, admin, or users with grantable permission can grant roles

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/akkadia/chunk" -func "GrantRole" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESSgnokey 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
Execute

HasInstallPermission checks if caller has permission to install blocks in the chunk

Params

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.HasInstallPermission(,)"

Result

HasPermission

func HasPermission(tid grc721.TokenID, user address, permission string) bool
Execute

HasPermission checks if a user has a specific permission for a chunk Owner always has all permissions

Params

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.HasPermission(,,)"

Result

HasRole

func HasRole(tid grc721.TokenID, user address, roleName string) bool
Execute

HasRole checks if a user has a specific role for a chunk

Params

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.HasRole(,,)"

Result

HasUninstallPermission

func HasUninstallPermission(tid grc721.TokenID, caller address) bool
Execute

HasUninstallPermission checks if caller has permission to uninstall blocks from the chunk

Params

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.HasUninstallPermission(,)"

Result

IsApprovedForAll

func IsApprovedForAll(owner, user address) bool
Execute

Params

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.IsApprovedForAll(,)"

Result

IsMaster

func IsMaster(worldID uint32, user address) bool
Execute

IsMaster checks if a user is a master for a world

Params

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.IsMaster(,)"

Result

ListChunkVerifiers

func ListChunkVerifiers(worldID uint32, chunkKeys ...string) []map[string]string
Execute

ListChunkVerifiers retrieves verifiers for multiple chunk keys of a world.

Params

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.ListChunkVerifiers(,)"

Result

ListGrantables

func ListGrantables(granterRole string) []string
Execute

ListGrantables returns roles that granterRole can grant

Param

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.ListGrantables()"

Result

ListMasterWorlds

func ListMasterWorlds(user address) []uint32
Execute

ListMasterWorlds returns all worlds where a user is a master

Param

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.ListMasterWorlds()"

Result

ListMetadataByOwner

func ListMetadataByOwner(owner address, page, count int) []map[string]string
Execute

Params

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.ListMetadataByOwner(,,)"

Result

ListMetadataByWorld

func ListMetadataByWorld(worldID uint32, page, count int) []map[string]string
Execute

Params

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.ListMetadataByWorld(,,)"

Result

ListOwners

func ListOwners(tokenIDs ...grc721.TokenID) []map[string]string
Execute

Param

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.ListOwners()"

Result

ListRoles

func ListRoles() []string
Execute

ListRoles returns all available role names

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.ListRoles()"

Result

ListTokensByOwner

func ListTokensByOwner(owner address, page, count int) []string
Execute

Params

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.ListTokensByOwner(,,)"

Result

ListUserRoles

func ListUserRoles(tid grc721.TokenID, user address) []map[string]string
Execute

ListUserRoles returns all roles assigned to a user for a specific chunk

Params

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.ListUserRoles(,)"

Result

ListWorlds

func ListWorlds(page, count int) []map[string]string
Execute

Params

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.ListWorlds(,)"

Result

Mint

func Mint(cur realm, to address, worldType string, worldID uint32, x string, y string, chunkHashKey string, chunkVerifier string) grc721.TokenID
Execute

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/akkadia/chunk" -func "Mint" -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESSgnokey 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
Execute

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.Name()"

Result

RemoveGrantable

func RemoveGrantable(cur realm, granterRole, grantableRole string)
Execute

RemoveGrantable removes the ability for granterRole to grant grantableRole

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/akkadia/chunk" -func "RemoveGrantable" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESSgnokey 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)
Execute

RemovePermissionFromRole removes a permission from a role

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/akkadia/chunk" -func "RemovePermissionFromRole" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESSgnokey 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
Execute

Render

Param

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.Render()"

Result

RevokeMaster

func RevokeMaster(cur realm, worldID uint32, user address)
Execute

RevokeMaster revokes master role from a user for a world (admin only)

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/akkadia/chunk" -func "RevokeMaster" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESSgnokey 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)
Execute

RevokeRole removes a role from a user for a specific chunk Owner, admin, or users with grantable permission can revoke roles

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/akkadia/chunk" -func "RevokeRole" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESSgnokey 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)
Execute

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/akkadia/chunk" -func "SetApprovalForAll" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESSgnokey 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)
Execute

SetBatchLimit sets the max keys per batch query (admin only)

Param

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" ADDRESSgnokey 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)
Execute

SetChunkVerifier stores verifier for a specific chunk key of a world. Verifier includes hash for integrity verification.

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/akkadia/chunk" -func "SetChunkVerifier" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESSgnokey 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)
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"

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/akkadia/chunk" -func "SetChunkVerifiers" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESSgnokey 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)
Execute

SetListLimit sets the max items per list query (admin only)

Param

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" ADDRESSgnokey 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)
Execute

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/akkadia/chunk" -func "SetWorldProperty" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESSgnokey 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
Execute

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.Symbol()"

Result

TokenCount

func TokenCount() int64
Execute

Command

gnokey query vm/qeval -remote "gnoland:26657" -data "gno.land/r/akkadia/chunk.TokenCount()"

Result

TransferFrom

func TransferFrom(cur realm, from, to address, tokenID grc721.TokenID)
Execute

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/akkadia/chunk" -func "TransferFrom" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESSgnokey 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)
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

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/akkadia/chunk" -func "UpdateRole" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESSgnokey 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)
Execute

UpdateRoleProperty updates a single property of a role

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/akkadia/chunk" -func "UpdateRoleProperty" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESSgnokey 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)
Execute

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/akkadia/chunk" -func "UpdateWorld" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" -broadcast -chainid "dev" -remote "gnoland:26657" ADDRESSgnokey 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