Realm
gno.land/r/demo/defi/grc20factory
Rendered output
GRC20 Tokens (0)
Query (read-only)
non-crossing functions · no tx, no wallet neededAllowance(symbol string, owner string, spender string) → int64
BalanceOf(symbol string, owner string) → int64
Bank(symbol string) → *gno.land/p/demo/tokens/grc20.Token
HasAddr(symbol string, owner string) → bool
ListTokens(pageNumber int, pageSize int) → []*gno.land/p/demo/tokens/grc20.Token
TotalSupply(symbol string) → int64
Call functions (state-changing)
signs a tx via AdenaApprove(symbol string, spender string, amount int64)
Burn(symbol string, from string, amount int64)
DropInstanceOwnership(symbol string)
Faucet(symbol string)
Mint(symbol string, to string, amount int64)
New(name string, symbol string, decimals int, initialMint int64, faucet int64)
NewWithAdmin(name string, symbol string, decimals int, initialMint int64, faucet int64, admin string)
Transfer(symbol string, to string, amount int64)
TransferFrom(symbol string, from string, to string, amount int64)
TransferInstanceOwnership(symbol string, newOwner string)
All exported functions (17)
show raw signatures
| Name | Params | Returns |
|---|---|---|
| New | [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "name", "Type": "string", "Value": ""}, {"Name": "symbol", "Type": "string", "Value": ""}, {"Name": "decimals", "Type": "int", "Value": ""}, {"Name": "initialMint", "Type": "int64", "Value": ""}, {"Name": "faucet", "Type": "int64", "Value": ""}] | — |
| NewWithAdmin | [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "name", "Type": "string", "Value": ""}, {"Name": "symbol", "Type": "string", "Value": ""}, {"Name": "decimals", "Type": "int", "Value": ""}, {"Name": "initialMint", "Type": "int64", "Value": ""}, {"Name": "faucet", "Type": "int64", "Value": ""}, {"Name": "admin", "Type": "string", "Value": ""}] | — |
| Bank | [{"Name": "symbol", "Type": "string", "Value": ""}] | [{"Name": ".res.0", "Type": "*gno.land/p/demo/tokens/grc20.Token", "Value": ""}] |
| TotalSupply | [{"Name": "symbol", "Type": "string", "Value": ""}] | [{"Name": ".res.0", "Type": "int64", "Value": ""}] |
| HasAddr | [{"Name": "symbol", "Type": "string", "Value": ""}, {"Name": "owner", "Type": "string", "Value": ""}] | [{"Name": ".res.0", "Type": "bool", "Value": ""}] |
| BalanceOf | [{"Name": "symbol", "Type": "string", "Value": ""}, {"Name": "owner", "Type": "string", "Value": ""}] | [{"Name": ".res.0", "Type": "int64", "Value": ""}] |
| Allowance | [{"Name": "symbol", "Type": "string", "Value": ""}, {"Name": "owner", "Type": "string", "Value": ""}, {"Name": "spender", "Type": "string", "Value": ""}] | [{"Name": ".res.0", "Type": "int64", "Value": ""}] |
| Transfer | [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "symbol", "Type": "string", "Value": ""}, {"Name": "to", "Type": "string", "Value": ""}, {"Name": "amount", "Type": "int64", "Value": ""}] | — |
| Approve | [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "symbol", "Type": "string", "Value": ""}, {"Name": "spender", "Type": "string", "Value": ""}, {"Name": "amount", "Type": "int64", "Value": ""}] | — |
| TransferFrom | [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "symbol", "Type": "string", "Value": ""}, {"Name": "from", "Type": "string", "Value": ""}, {"Name": "to", "Type": "string", "Value": ""}, {"Name": "amount", "Type": "int64", "Value": ""}] | — |
| Faucet | [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "symbol", "Type": "string", "Value": ""}] | — |
| Mint | [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "symbol", "Type": "string", "Value": ""}, {"Name": "to", "Type": "string", "Value": ""}, {"Name": "amount", "Type": "int64", "Value": ""}] | — |
| Burn | [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "symbol", "Type": "string", "Value": ""}, {"Name": "from", "Type": "string", "Value": ""}, {"Name": "amount", "Type": "int64", "Value": ""}] | — |
| DropInstanceOwnership | [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "symbol", "Type": "string", "Value": ""}] | — |
| TransferInstanceOwnership | [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "symbol", "Type": "string", "Value": ""}, {"Name": "newOwner", "Type": "string", "Value": ""}] | — |
| ListTokens | [{"Name": "pageNumber", "Type": "int", "Value": ""}, {"Name": "pageSize", "Type": "int", "Value": ""}] | [{"Name": ".res.0", "Type": "[]*gno.land/p/demo/tokens/grc20.Token", "Value": ""}] |
| Render | [{"Name": "path", "Type": "string", "Value": ""}] | [{"Name": ".res.0", "Type": "string", "Value": ""}] |
Files
Storage
{
"raw": "storage: 25532, deposit: 2553200"
}