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

coindemo state

Back to all declarations

Denom

untyped string

Denom is the only asset this realm accepts.

Value

"ugnot"

owner

.uverse.address

Value

<gnolang.StringValue>

self

.uverse.address

Value

<gnolang.StringValue>

Deposit

func()

Deposit credits the caller with the attached GNOT, in full.

Open
OID
0e3324…c8d8:12
Deposit details

Inspect func

ClaimAll

func()

ClaimAll sends the caller's entire balance back. Fails if empty.

Open
OID
0e3324…c8d8:13
ClaimAll details

Inspect func

Sweep

func()

Sweep sends ugnot held above user liabilities to the owner. Owner only; user balances are reserved by construction.

Open
OID
0e3324…c8d8:14
Sweep details

Inspect func

TransferOwner

func(next .uverse.address)

TransferOwner hands the sweep role to next. Owner only; zero address rejected (audit Y3: without rotation, key loss permanently orphans surplus sweeping).

Open
OID
0e3324…c8d8:15
TransferOwner details

Inspect func

BalanceOf

func(addr .uverse.address) int64

BalanceOf returns addr's claimable balance.

Open
OID
0e3324…c8d8:17
BalanceOf details

Inspect func

UsersTotal

func() int64

UsersTotal returns the sum of all claimable balances.

Open
OID
0e3324…c8d8:18
UsersTotal details

Inspect func

Held

func() int64

Held returns the ugnot actually held at the realm address.

Open
OID
0e3324…c8d8:19
Held details

Inspect func

Surplus

func() int64

Surplus returns Held() - UsersTotal().

Open
OID
0e3324…c8d8:20
Surplus details

Inspect func

Render

func(string) string

Render shows totals and the conservation check.

Open
OID
0e3324…c8d8:22
Render details

Inspect func
Denom : untyped string ="ugnot"
owner : .uverse.address =<gnolang.StringValue>
self : .uverse.address =<gnolang.StringValue>
ledger : *feeledger.Ledger Inspect
init.4 : func() Inspect
Deposit : func() Inspect
ClaimAll : func() Inspect
Sweep : func() Inspect
TransferOwner : func(next .uverse.address) Inspect
Owner : func() .uverse.address Inspect
BalanceOf : func(addr .uverse.address) int64 Inspect
UsersTotal : func() int64 Inspect
Held : func() int64 Inspect
Surplus : func() int64 Inspect
Address : func() .uverse.address Inspect
Render : func(string) string Inspect
fmtInt : func(n int64) string Inspect