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

erc721 state

Back to all declarations

name

untyped string

Value

"Gno NFT"

symbol

untyped string

Value

"GNFT"

owners

v0.Tree

// tokenID (zero-padded string) -> address

Open
OID
0ec1a0…de4f:4
owners details

Inspect ref

balances

v0.Tree

// owner address (string) -> uint64

Open
OID
0ec1a0…de4f:6
balances details

Inspect ref

approvals

v0.Tree

// tokenID (zero-padded string) -> approved address

Open
OID
0ec1a0…de4f:8
approvals details

Inspect ref

nextID

int64

Value

1

minted

int64

// total tokens ever minted (== live supply, no burn)

Value

0

key

func(id int64) string

key formats a token id into a zero-padded, lexicographically-sortable key.

Open
OID
0ec1a0…de4f:11
key details

Inspect func

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
0ec1a0…de4f:13
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
0ec1a0…de4f:14
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
0ec1a0…de4f:15
Approve details

Inspect func

ownerOf

func(id int64) .uverse.address
Open
OID
0ec1a0…de4f:16
ownerOf details

Inspect func

approvedOf

func(id int64) .uverse.address
Open
OID
0ec1a0…de4f:17
approvedOf details

Inspect func

balanceOf

func(owner .uverse.address) uint64

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

Open
OID
0ec1a0…de4f:18
balanceOf details

Inspect func

exists

func(id int64) bool

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

Open
OID
0ec1a0…de4f:19
exists details

Inspect func

totalSupply

func() int64

totalSupply returns the number of tokens in circulation.

Open
OID
0ec1a0…de4f:20
totalSupply details

Inspect func

OwnerOf

func(id int64) .uverse.address
Open
OID
0ec1a0…de4f:21
OwnerOf details

Inspect func

BalanceOf

func(owner .uverse.address) uint64

BalanceOf is the exported read-only accessor for balanceOf.

Open
OID
0ec1a0…de4f:22
BalanceOf details

Inspect func

TotalSupply

func() int64

TotalSupply is the exported read-only accessor for totalSupply.

Open
OID
0ec1a0…de4f:23
TotalSupply details

Inspect func

Render

func(path string) string

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

Open
OID
0ec1a0…de4f:24
Render details

Inspect func
name : untyped string ="Gno NFT"
symbol : untyped string ="GNFT"
owners : v0.Tree Inspect
balances : v0.Tree Inspect
approvals : v0.Tree Inspect
nextID : int64 =1
minted : int64 =0
key : func(id int64) string 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