balances
v0.Treebalances maps owner address (string) -> wrapped balance (uint64).
- OID
- 0f70f5…cbe3:4
balances details
totalSupply
uint64balances maps owner address (string) -> wrapped balance (uint64).
Value
0
Deposit
func(amount uint64)Deposit wraps \`amount\` units of the (notional) native coin, crediting the caller's wrapped balance and the global totalSupply. Accounting only: no real coin ever moves — it models locking native funds to mint the wrapped token.
- OID
- 0f70f5…cbe3:6
Deposit details
Withdraw
func(amount uint64)Withdraw unwraps \`amount\` units, burning them from the caller's balance and from totalSupply. Panics if the caller lacks the balance.
- OID
- 0f70f5…cbe3:8
Withdraw details
Transfer
func(to .uverse.address, amount uint64)Transfer moves \`amount\` wrapped units from the caller to \`to\`.
- OID
- 0f70f5…cbe3:9
Transfer details
balanceOf
func(owner .uverse.address) uint64balanceOf returns the wrapped balance of \`owner\` (read-only, not crossing).
- OID
- 0f70f5…cbe3:10
balanceOf details
BalanceOf
func(owner .uverse.address) uint64BalanceOf is the exported read-only accessor for a single owner.
- OID
- 0f70f5…cbe3:11
BalanceOf details
TotalSupply
func() uint64TotalSupply returns the total amount of wrapped units in existence.
- OID
- 0f70f5…cbe3:12
TotalSupply details
setBalance
func(owner .uverse.address, amount uint64)- OID
- 0f70f5…cbe3:13
setBalance details
canDebit
func(bal uint64, amount uint64) boolcanDebit reports whether \`bal\` can cover \`amount\` for a burn/transfer.
- OID
- 0f70f5…cbe3:14
canDebit details
formatUnits
func(n uint64) stringformatUnits renders a raw uint64 amount as a decimal string.
- OID
- 0f70f5…cbe3:15
formatUnits details
Render
func(path string) stringRender shows the total supply and a table of non-zero balances.
- OID
- 0f70f5…cbe3:16