Search Apps Documentation Source Content File Folder Download Copy Actions Download

acr package

Functions

Allowance

func Allowance(owner, spender address) int64
Execute

Params

Command

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

Result

Approve

func Approve(cur realm, spender address, amount int64)
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/acr" -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/acr" -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(account address) int64
Execute

Param

Command

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

Result

Burn

func Burn(cur realm, amount int64)
Execute

Burn burns ACR tokens from caller

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/acr" -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/acr" -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
  

GetDecimals

func GetDecimals() int
Execute

Command

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

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/acr.GetListLimit()"

Result

GetName

func GetName() string
Execute

Command

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

Result

GetSymbol

func GetSymbol() string
Execute

Command

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

Result

IsRequestProcessed

func IsRequestProcessed(requestID string) bool
Execute

IsRequestProcessed checks if a requestID has been processed

Param

Command

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

Result

ListRequestProcessed

func ListRequestProcessed(requestIDs ...string) map[string]bool
Execute

ListRequestProcessed checks multiple requestIDs and returns their processed status

Param

Command

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

Result

ListTopUsersByBalance

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

ListTopUsersByBalance returns top users sorted by balance (descending) with pagination

Params

Command

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

Result

ListTopUsersByMinting

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

ListTopUsersByMinting returns top users sorted by total minted amount (descending) with pagination

Params

Command

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

Result

Mint

func Mint(cur realm, requestID string, to address, amount int64)
Execute

Mint mints ACR tokens to a user

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/acr" -func "Mint" -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/acr" -func "Mint" -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
  

MintedOf

func MintedOf(account address) int64
Execute

Param

Command

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

Result

Render

func Render(iUrl string) string
Execute

Render handles RESTful routing and returns Markdown responses

Param

Command

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

Result

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/acr" -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/acr" -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
  

TotalSupply

func TotalSupply() int64
Execute

Command

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

Result

Transfer

func Transfer(cur realm, to address, amount int64)
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/acr" -func "Transfer" -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/acr" -func "Transfer" -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
  

TransferFrom

func TransferFrom(cur realm, from, to address, amount int64)
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/acr" -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/acr" -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