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

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

v0 state

Back to all declarations

balances

v0.Tree

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

Open
OID
0bb656…7c8f:4
balances details

Inspect ref

supply

v0.Tree

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

Open
OID
0bb656…7c8f:6
supply details

Inspect ref

balKey

func(owner .uverse.address, id int) string
Open
OID
0bb656…7c8f:7
balKey details

Inspect func

getBalance

func(owner .uverse.address, id int) uint64
Open
OID
0bb656…7c8f:10
getBalance details

Inspect func

setBalance

func(owner .uverse.address, id int, amount uint64)
Open
OID
0bb656…7c8f: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
0bb656…7c8f: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
0bb656…7c8f: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
0bb656…7c8f:15
BalanceOf details

Inspect func

TotalSupply

func(id int) uint64

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

Open
OID
0bb656…7c8f:16
TotalSupply details

Inspect func

Render

func(path string) string

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

Open
OID
0bb656…7c8f: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
0bb656…7c8f: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