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.

subtoken state

Back to all declarations

tokenSub

untyped string

Value

"c/1"

royaltySub

untyped string

Value

"roy/1"

royaltyBps

untyped bigint

Value

(500 <untyped> bigint)

lockExt

type

lockExt is declared in this realm, so its hooks run with this realm's authority (borrow rule #1) even when another realm moves the token through a RealmTeller.

Value

subtoken.lockExt

nextTID

int64

Value

3

Create

func() string

Create builds the token once. The rlm handed to NewToken is a sub-realm token, so the hypothesis is Token.ID() == "\<this pkgpath>#c/1.SPK.\<seq>".

Open
OID
0409e9…c9e1:10
Create details

Inspect func

Mint

func() string

Mint mints the next token to the caller; allowed while locked.

Open
OID
0409e9…c9e1:12
Mint details

Inspect func

Approve

func(tid string, to .uverse.address)
Open
OID
0409e9…c9e1:13
Approve details

Inspect func

Transfer

func(tid string, to .uverse.address)
Open
OID
0409e9…c9e1:14
Transfer details

Inspect func

Reveal

func()

Reveal lifts the lock forever.

Open
OID
0409e9…c9e1:16
Reveal details

Inspect func

Sweep

func(to .uverse.address) int64

Sweep spends the whole roy/1 sub-treasury to \`to\` with a banker bound to the sub-realm identity (interrealm v2 §5.5 example).

Open
OID
0409e9…c9e1:17
Sweep details

Inspect func

OwnerOf

func(tid string) (.uverse.address, .uverse.error)
Open
OID
0409e9…c9e1:20
OwnerOf details

Inspect func

RoyaltyAddress

func() .uverse.address
Open
OID
0409e9…c9e1:23
RoyaltyAddress details

Inspect func

RoyaltyInfo

func(tid string, price int64) (.uverse.address, int64, .uverse.error)
Open
OID
0409e9…c9e1:24
RoyaltyInfo details

Inspect func

RoyaltyBalance

func() int64
Open
OID
0409e9…c9e1:25
RoyaltyBalance details

Inspect func

Render

func(path string) string

Render also answers spike §5.5-6: does gnoweb display a data: SVG image?

Open
OID
0409e9…c9e1:26
Render details

Inspect func
tokenSub : untyped string ="c/1"
royaltySub : untyped string ="roy/1"
royaltyBps : untyped bigint =(500 <untyped> bigint)
lockExt : type =subtoken.lockExt
tok : *v0.Token Inspect
ledger : *v0.PrivateLedger Inspect
roy : *v0.Royalty Inspect
lock : *subtoken.lockExt Inspect
nextTID : int64 =3
Create : func() string Inspect
Mint : func() string Inspect
Approve : func(tid string, to .uverse.address) Inspect
Transfer : func(tid string, to .uverse.address) Inspect
Burn : func(tid string) Inspect
Reveal : func() Inspect
Sweep : func(to .uverse.address) int64 Inspect
Token : func() *v0.Token Inspect
TokenID : func() string Inspect
OwnerOf : func(tid string) (.uverse.address, .uverse.error) Inspect
Moves : func() int Inspect
IsRevealed : func() bool Inspect
RoyaltyAddress : func() .uverse.address Inspect
RoyaltyInfo : func(tid string, price int64) (.uverse.address, int64, .uverse.error) Inspect
RoyaltyBalance : func() int64 Inspect
Render : func(path string) string Inspect
mustCreated : func() Inspect