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

"VestToken"

symbol

untyped string

Value

"VEST"

grant

type

grant is one linear vesting schedule: \`total\` unlocks evenly from \`start\` to \`start+duration\` (measured in block height), and \`claimed\` tracks how much of the unlocked amount the beneficiary has already pulled.

Value

v0.grant

balances

map[.uverse.address]uint64
Open
OID
0895b8…0096:4
balances details

Inspect map

grants

map[.uverse.address]*v0.grant
Open
OID
0895b8…0096:6
grants details

Inspect map

totalSupply

uint64

Value

0

MintVested

func(to .uverse.address, amount uint64, durationBlocks int64)

MintVested opens a new linear vesting grant for \`to\`: \`amount\` tokens unlock block-by-block over the next \`durationBlocks\` blocks, starting now. A beneficiary may only hold one active grant at a time. Crossing function.

Open
OID
0895b8…0096:37
MintVested details

Inspect func

Claim

func() uint64

Claim pulls whatever has unlocked so far from the caller's grant into their liquid balance, and returns how much was claimed. Crossing function.

Open
OID
0895b8…0096:38
Claim details

Inspect func

vestedAmount

func(g *v0.grant, height int64) uint64

vestedAmount computes how much of g has unlocked by the given height.

Open
OID
0895b8…0096:39
vestedAmount details

Inspect func

Transfer

func(to .uverse.address, amount uint64)

Transfer moves \`amount\` of the caller's liquid (already-claimed) balance to \`to\`. Crossing function.

Open
OID
0895b8…0096:40
Transfer details

Inspect func

BalanceOf

func(holder .uverse.address) uint64

BalanceOf returns the liquid (claimed, transferable) balance of holder.

Open
OID
0895b8…0096:41
BalanceOf details

Inspect func

GrantOf

func(beneficiary .uverse.address) (total uint64, claimed uint64, claimable uint64)

GrantOf returns the beneficiary's active grant, if any: total amount, amount claimed so far, and the amount currently claimable.

Open
OID
0895b8…0096:42
GrantOf details

Inspect func

TotalSupply

func() uint64

TotalSupply returns every token ever minted, vesting or liquid.

Open
OID
0895b8…0096:43
TotalSupply details

Inspect func

Name

func() string

Name returns the token name.

Open
OID
0895b8…0096:44
Name details

Inspect func

Symbol

func() string

Symbol returns the token symbol.

Open
OID
0895b8…0096:45
Symbol details

Inspect func

Render

func(path string) string

Render produces the gnoweb Markdown view: metadata, active vesting grants, and liquid balances — both tables sorted by address for deterministic output. Render is NOT a crossing function.

Open
OID
0895b8…0096:46
Render details

Inspect func

balanceAddrs

func() []string
Open
OID
0895b8…0096:48
balanceAddrs details

Inspect func

sortedAddrKeys

func(keys []string) []string
Open
OID
0895b8…0096:49
sortedAddrKeys details

Inspect func
name : untyped string ="VestToken"
symbol : untyped string ="VEST"
grant : type =v0.grant
balances : map[.uverse.address]uint64 Inspect
grants : map[.uverse.address]*v0.grant Inspect
totalSupply : uint64 =0
errZeroAddress : *errors.errorString Inspect
errZeroAmount : *errors.errorString Inspect
errZeroDuration : *errors.errorString Inspect
errGrantActive : *errors.errorString Inspect
errNoGrant : *errors.errorString Inspect
errInsufficient : *errors.errorString Inspect
errOverflow : *errors.errorString Inspect
errSpoofedRealm : *errors.errorString Inspect
errNotUser : *errors.errorString Inspect
caller : func() .uverse.address Inspect
MintVested : func(to .uverse.address, amount uint64, durationBlocks int64) Inspect
Claim : func() uint64 Inspect
vestedAmount : func(g *v0.grant, height int64) uint64 Inspect
Transfer : func(to .uverse.address, amount uint64) Inspect
BalanceOf : func(holder .uverse.address) uint64 Inspect
GrantOf : func(beneficiary .uverse.address) (total uint64, claimed uint64, claimable uint64) Inspect
TotalSupply : func() uint64 Inspect
Name : func() string Inspect
Symbol : func() string Inspect
Render : func(path string) string Inspect
grantAddrs : func() []string Inspect
balanceAddrs : func() []string Inspect
sortedAddrKeys : func(keys []string) []string Inspect