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.

coins state

Back to all declarations

minterAddr

.uverse.address

// set to minter4 realm address post-deploy via SetMinter

Value

<gnolang.StringValue>

adminAddr

.uverse.address

// set at init to deployer

Value

<gnolang.StringValue>

balances

v0.Tree

// key: "coinId:addr" → amount string

Open
OID
07f916…9f77:6
balances details

Inspect ref

supplies

v0.Tree

// key: "coinId" → total supply string

Open
OID
07f916…9f77:8
supplies details

Inspect ref

SetMinter

func(newMinter string)

SetMinter sets the authorized minter address. Called once after the minter realm is deployed, by the admin.

Open
OID
07f916…9f77:11
SetMinter details

Inspect func

Mint

func(coinId string, toAddr string, amountStr string)

Mint creates new tokens of coinId and credits them to toAddr. Only the authorized minter or admin can call this.

Open
OID
07f916…9f77:14
Mint details

Inspect func

Burn

func(coinId string, fromAddr string, amountStr string)

Burn destroys tokens of coinId from fromAddr. Only the minter or admin can burn.

Open
OID
07f916…9f77:15
Burn details

Inspect func

Transfer

func(coinId string, toAddr string, amountStr string)

Transfer moves tokens from the caller to toAddr. Any holder can call this.

Open
OID
07f916…9f77:16
Transfer details

Inspect func

BalanceOf

func(coinId string, addr string) string

BalanceOf returns the token balance of addr for coinId.

Open
OID
07f916…9f77:17
BalanceOf details

Inspect func

BalancesOf

func(addr string) string

BalancesOf returns all coin balances for a given address as a JSON object.

Open
OID
07f916…9f77:18
BalancesOf details

Inspect func

TotalSupply

func(coinId string) string

TotalSupply returns the total minted supply for coinId.

Open
OID
07f916…9f77:19
TotalSupply details

Inspect func

MinterAddr

func() string

MinterAddr returns the current authorized minter address.

Open
OID
07f916…9f77:20
MinterAddr details

Inspect func
minterAddr : .uverse.address =<gnolang.StringValue>
adminAddr : .uverse.address =<gnolang.StringValue>
balances : v0.Tree Inspect
supplies : v0.Tree Inspect
init.4 : func() Inspect
SetMinter : func(newMinter string) Inspect
isMinter : func() bool Inspect
isAdmin : func() bool Inspect
Mint : func(coinId string, toAddr string, amountStr string) Inspect
Burn : func(coinId string, fromAddr string, amountStr string) Inspect
Transfer : func(coinId string, toAddr string, amountStr string) Inspect
BalanceOf : func(coinId string, addr string) string Inspect
BalancesOf : func(addr string) string Inspect
TotalSupply : func(coinId string) string Inspect
MinterAddr : func() string Inspect
Render : func(string) string Inspect