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

erc1155 state

Back to all declarations

balances

v0.Tree

balances maps "\<owner>:\<id>" -> uint64 amount.

Open
OID
034de3…8684:4
balances details

Inspect ref

supply

v0.Tree

supply maps "\<id>" -> uint64 total minted for that id.

Open
OID
034de3…8684:6
supply details

Inspect ref

balKey

func(owner .uverse.address, id int) string
Open
OID
034de3…8684:7
balKey details

Inspect func

getBalance

func(owner .uverse.address, id int) uint64
Open
OID
034de3…8684:10
getBalance details

Inspect func

setBalance

func(owner .uverse.address, id int, amount uint64)
Open
OID
034de3…8684:11
setBalance details

Inspect func

Mint

func(to .uverse.address, id int, amount uint64)

Mint creates \`amount\` units of token \`id\` and credits them to \`to\`.

Open
OID
034de3…8684:13
Mint details

Inspect func

TransferSingle

func(to .uverse.address, id int, amount uint64)

TransferSingle moves \`amount\` of token \`id\` from the caller to \`to\`.

Open
OID
034de3…8684:14
TransferSingle details

Inspect func

BalanceOf

func(owner .uverse.address, id int) uint64

BalanceOf returns the amount of token \`id\` held by \`owner\`.

Open
OID
034de3…8684:15
BalanceOf details

Inspect func

TotalSupply

func(id int) uint64

TotalSupply returns the total amount minted of token \`id\`.

Open
OID
034de3…8684:16
TotalSupply details

Inspect func

Render

func(path string) string

Render prints a balances table and a per-id supply table.

Open
OID
034de3…8684:17
Render details

Inspect func

splitBalKey

func(key string) (owner string, id string)

splitBalKey splits a "\<owner>:\<id>" balance key. The owner (a bech32 address) contains no ':', so the id is the substring after the last ':'.

Open
OID
034de3…8684:18
splitBalKey details

Inspect func
balances : v0.Tree Inspect
supply : v0.Tree Inspect
balKey : func(owner .uverse.address, id int) string Inspect
supKey : func(id int) string Inspect
getBalance : func(owner .uverse.address, id int) uint64 Inspect
setBalance : func(owner .uverse.address, id int, amount uint64) Inspect
getSupply : func(id int) uint64 Inspect
Mint : func(to .uverse.address, id int, amount uint64) Inspect
TransferSingle : func(to .uverse.address, id int, amount uint64) Inspect
BalanceOf : func(owner .uverse.address, id int) uint64 Inspect
TotalSupply : func(id int) uint64 Inspect
Render : func(path string) string Inspect
splitBalKey : func(key string) (owner string, id string) Inspect