Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

v1 state

Back to all declarations

name

untyped string

Value

"Gno NFT"

symbol

untyped string

Value

"GNFT"

balances

v0.Tree

// owner address (string) -> uint64

Open
OID
03985c…60f4:8
balances details

Inspect ref

approvals

v0.Tree

// tokenID (store key) -> approved address

Open
OID
03985c…60f4:10
approvals details

Inspect ref

Mint

func(to .uverse.address) int64

Mint creates the next token id and assigns it to \`to\`. Only sequential minting is supported (id is returned via the Mint event).

Open
OID
03985c…60f4:11
Mint details

Inspect func

Transfer

func(to .uverse.address, id int64)

Transfer moves token \`id\` from the caller to \`to\`. The caller must own the token (approvals are cleared on transfer).

Open
OID
03985c…60f4:13
Transfer details

Inspect func

Approve

func(spender .uverse.address, id int64)

Approve grants \`spender\` the right to transfer token \`id\`. Only the current owner may approve.

Open
OID
03985c…60f4:14
Approve details

Inspect func

ownerOf

func(id int64) .uverse.address
Open
OID
03985c…60f4:15
ownerOf details

Inspect func

approvedOf

func(id int64) .uverse.address
Open
OID
03985c…60f4:16
approvedOf details

Inspect func

balanceOf

func(owner .uverse.address) uint64

balanceOf returns how many tokens \`owner\` holds.

Open
OID
03985c…60f4:17
balanceOf details

Inspect func

exists

func(id int64) bool

exists reports whether token \`id\` has been minted (and not since moved away).

Open
OID
03985c…60f4:18
exists details

Inspect func

totalSupply

func() int64

totalSupply returns the number of tokens in circulation. There is no burn, so the highest id ever assigned is the count.

Open
OID
03985c…60f4:19
totalSupply details

Inspect func

OwnerOf

func(id int64) .uverse.address
Open
OID
03985c…60f4:20
OwnerOf details

Inspect func

BalanceOf

func(owner .uverse.address) uint64

BalanceOf is the exported read-only accessor for balanceOf.

Open
OID
03985c…60f4:21
BalanceOf details

Inspect func

TotalSupply

func() int64

TotalSupply is the exported read-only accessor for totalSupply.

Open
OID
03985c…60f4:22
TotalSupply details

Inspect func

Render

func(path string) string

Render displays collection metadata and a token -> owner table.

Open
OID
03985c…60f4:23
Render details

Inspect func
name : untyped string ="Gno NFT"
symbol : untyped string ="GNFT"
owners : *v0.Store Inspect
balances : v0.Tree Inspect
approvals : v0.Tree Inspect
Mint : func(to .uverse.address) int64 Inspect
Transfer : func(to .uverse.address, id int64) Inspect
Approve : func(spender .uverse.address, id int64) Inspect
ownerOf : func(id int64) .uverse.address Inspect
approvedOf : func(id int64) .uverse.address Inspect
balanceOf : func(owner .uverse.address) uint64 Inspect
exists : func(id int64) bool Inspect
totalSupply : func() int64 Inspect
OwnerOf : func(id int64) .uverse.address Inspect
BalanceOf : func(owner .uverse.address) uint64 Inspect
TotalSupply : func() int64 Inspect
Render : func(path string) string Inspect