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

name

untyped string

Value

"MiniToken"

symbol

untyped string

Value

"MINI"

balances

map[.uverse.address]uint64
Open
OID
08eef7…70b3:4
balances details

Inspect map

allowances

map[.uverse.address]map[.uverse.address]uint64
Open
OID
08eef7…70b3: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
08eef7…70b3: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
08eef7…70b3: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
08eef7…70b3: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
08eef7…70b3: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
08eef7…70b3:32
transfer details

Inspect func

BalanceOf

func(holder .uverse.address) uint64

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

Open
OID
08eef7…70b3: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
08eef7…70b3:34
Allowance details

Inspect func

TotalSupply

func() uint64

TotalSupply returns the total number of tokens in existence.

Open
OID
08eef7…70b3:35
TotalSupply details

Inspect func

Name

func() string

Name returns the token name.

Open
OID
08eef7…70b3:36
Name details

Inspect func

Symbol

func() string

Symbol returns the token symbol.

Open
OID
08eef7…70b3: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
08eef7…70b3: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