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

v0 state

Back to all declarations

name

untyped string

Value

"MiniToken"

symbol

untyped string

Value

"MINI"

balances

map[.uverse.address]uint64
Open
OID
0fe417…4a56:4
balances details

Inspect map

allowances

map[.uverse.address]map[.uverse.address]uint64
Open
OID
0fe417…4a56:6
allowances details

Inspect map

totalSupply

uint64

Value

0

Mint

func(to .uverse.address, amount uint64)

Mint creates \`amount\` new tokens and credits them to \`to\`, increasing the total supply. Crossing function.

Open
OID
0fe417…4a56:28
Mint details

Inspect func

Transfer

func(to .uverse.address, amount uint64)

Transfer moves \`amount\` tokens from the caller to \`to\`. Crossing function.

Open
OID
0fe417…4a56:29
Transfer details

Inspect func

Approve

func(spender .uverse.address, amount uint64)

Approve authorizes \`spender\` to pull up to \`amount\` tokens from the caller. Crossing function.

Open
OID
0fe417…4a56:30
Approve details

Inspect func

TransferFrom

func(from .uverse.address, to .uverse.address, amount uint64)

TransferFrom moves \`amount\` tokens from \`from\` to \`to\`, spending the caller's allowance granted by \`from\`. Crossing function.

Open
OID
0fe417…4a56:31
TransferFrom details

Inspect func

transfer

func(from .uverse.address, to .uverse.address, amount uint64) .uverse.error

transfer is the internal, non-crossing balance mover. Pure logic on package state; returns an error rather than panicking so callers control reverts.

Open
OID
0fe417…4a56:32
transfer details

Inspect func

BalanceOf

func(holder .uverse.address) uint64

BalanceOf returns the token balance of \`holder\`. Read-only, non-crossing.

Open
OID
0fe417…4a56:33
BalanceOf details

Inspect func

Allowance

func(owner .uverse.address, spender .uverse.address) uint64

Allowance returns how much \`spender\` may still pull from \`owner\`.

Open
OID
0fe417…4a56:34
Allowance details

Inspect func

TotalSupply

func() uint64

TotalSupply returns the total number of tokens in existence.

Open
OID
0fe417…4a56:35
TotalSupply details

Inspect func

Name

func() string

Name returns the token name.

Open
OID
0fe417…4a56:36
Name details

Inspect func

Symbol

func() string

Symbol returns the token symbol.

Open
OID
0fe417…4a56:37
Symbol details

Inspect func

Render

func(path string) string

Render produces the gnoweb Markdown view of the token: metadata plus a deterministically-ordered table of non-zero balances. Render is NOT a crossing function (no \`cur realm\` parameter).

Open
OID
0fe417…4a56:38
Render details

Inspect func
name : untyped string ="MiniToken"
symbol : untyped string ="MINI"
balances : map[.uverse.address]uint64 Inspect
allowances : map[.uverse.address]map[.uverse.address]uint64 Inspect
totalSupply : uint64 =0
errZeroAddress : *errors.errorString Inspect
errInsufficient : *errors.errorString Inspect
errAllowanceLow : *errors.errorString Inspect
errOverflow : *errors.errorString Inspect
errSpoofedRealm : *errors.errorString Inspect
errNotUser : *errors.errorString Inspect
caller : func() .uverse.address Inspect
Mint : func(to .uverse.address, amount uint64) Inspect
Transfer : func(to .uverse.address, amount uint64) Inspect
Approve : func(spender .uverse.address, amount uint64) Inspect
TransferFrom : func(from .uverse.address, to .uverse.address, amount uint64) Inspect
transfer : func(from .uverse.address, to .uverse.address, amount uint64) .uverse.error Inspect
BalanceOf : func(holder .uverse.address) uint64 Inspect
Allowance : func(owner .uverse.address, spender .uverse.address) uint64 Inspect
TotalSupply : func() uint64 Inspect
Name : func() string Inspect
Symbol : func() string Inspect
Render : func(path string) string Inspect