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
- OID
- 07f916…9f77:6
balances details
supplies
v0.Tree// key: "coinId" → total supply string
- OID
- 07f916…9f77:8
supplies details
init.4
func()- OID
- 07f916…9f77:9
init.4 details
SetMinter
func(newMinter string)SetMinter sets the authorized minter address. Called once after the minter realm is deployed, by the admin.
- OID
- 07f916…9f77:11
SetMinter details
isMinter
func() bool- OID
- 07f916…9f77:12
isMinter details
isAdmin
func() bool- OID
- 07f916…9f77:13
isAdmin details
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.
- OID
- 07f916…9f77:14
Mint details
Burn
func(coinId string, fromAddr string, amountStr string)Burn destroys tokens of coinId from fromAddr. Only the minter or admin can burn.
- OID
- 07f916…9f77:15
Burn details
Transfer
func(coinId string, toAddr string, amountStr string)Transfer moves tokens from the caller to toAddr. Any holder can call this.
- OID
- 07f916…9f77:16
Transfer details
BalanceOf
func(coinId string, addr string) stringBalanceOf returns the token balance of addr for coinId.
- OID
- 07f916…9f77:17
BalanceOf details
BalancesOf
func(addr string) stringBalancesOf returns all coin balances for a given address as a JSON object.
- OID
- 07f916…9f77:18
BalancesOf details
TotalSupply
func(coinId string) stringTotalSupply returns the total minted supply for coinId.
- OID
- 07f916…9f77:19
TotalSupply details
MinterAddr
func() stringMinterAddr returns the current authorized minter address.
- OID
- 07f916…9f77:20
MinterAddr details
Render
func(string) string- OID
- 07f916…9f77:21