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

Red

*v0.Token

Tokens are exported so an importing realm can read them directly; the ledgers stay private, since they carry unrestricted mint and burn.

Open
OID
058734…f4fa:27
Red details

Inspect pointer

Blue

*v0.Token

Tokens are exported so an importing realm can read them directly; the ledgers stay private, since they carry unrestricted mint and burn.

Open
OID
058734…f4fa:33
Blue details

Inspect pointer

redLedger

*v0.PrivateLedger

Tokens are exported so an importing realm can read them directly; the ledgers stay private, since they carry unrestricted mint and burn.

Open
OID
058734…f4fa:29
redLedger details

Inspect pointer

blueLedger

*v0.PrivateLedger

Tokens are exported so an importing realm can read them directly; the ledgers stay private, since they carry unrestricted mint and burn.

Open
OID
058734…f4fa:35
blueLedger details

Inspect pointer

RedKey

string

Tokens are exported so an importing realm can read them directly; the ledgers stay private, since they carry unrestricted mint and burn.

Value

"gno.land/r/nym-moultest123/x/grc20faucet/v0.RED"

BlueKey

string

Tokens are exported so an importing realm can read them directly; the ledgers stay private, since they carry unrestricted mint and burn.

Value

"gno.land/r/nym-moultest123/x/grc20faucet/v0.BLUE"

lastClaim

*v0.Tree

// address -> block height of its last claim

Open
OID
058734…f4fa:10
lastClaim details

Inspect pointer

decimals

untyped bigint

Value

(4 <untyped> bigint)

ClaimAmount

int64

Value

1000000

ClaimEvery

int64

Value

100

Claim

func()

Claim mints ClaimAmount of both RED and BLUE to the caller.

Open
OID
058734…f4fa:14
Claim details

Inspect func

NextClaim

func(who .uverse.address) (int64, bool)

NextClaim returns the block height at which \`who\` may claim again, and whether they have ever claimed at all.

Open
OID
058734…f4fa:15
NextClaim details

Inspect func

Transfer

func(symbol string, to .uverse.address, amount int64)

Transfer moves the caller's own units of \`symbol\`.

Open
OID
058734…f4fa:16
Transfer details

Inspect func

Approve

func(symbol string, spender .uverse.address, amount int64)

Approve lets \`spender\` draw \`amount\` of \`symbol\` from the caller's balance. This is the call that makes every wrapper in grc20wrapdemo work: the wrapper realm has no authority over anybody's tokens until its address is named here.

Open
OID
058734…f4fa:17
Approve details

Inspect func

TransferFrom

func(symbol string, from .uverse.address, to .uverse.address, amount int64)

TransferFrom spends an allowance the caller was granted.

Open
OID
058734…f4fa:18
TransferFrom details

Inspect func

BalanceOf

func(symbol string, owner .uverse.address) int64

BalanceOf returns \`owner\`'s balance of \`symbol\`.

Open
OID
058734…f4fa:19
BalanceOf details

Inspect func

Allowance

func(symbol string, owner .uverse.address, spender .uverse.address) int64

Allowance returns what \`owner\` let \`spender\` draw of \`symbol\`.

Open
OID
058734…f4fa:20
Allowance details

Inspect func

TotalSupply

func(symbol string) int64

TotalSupply returns how much of \`symbol\` has been claimed so far.

Open
OID
058734…f4fa:21
TotalSupply details

Inspect func

tokenOf

func(symbol string) *v0.Token
Open
OID
058734…f4fa:22
tokenOf details

Inspect func

ledgerOf

func(symbol string) *v0.PrivateLedger
Open
OID
058734…f4fa:23
ledgerOf details

Inspect func

checkErr

func(err .uverse.error)
Open
OID
058734…f4fa:25
checkErr details

Inspect func
Red : *v0.Token Inspect
Blue : *v0.Token Inspect
redLedger : *v0.PrivateLedger Inspect
blueLedger : *v0.PrivateLedger Inspect
RedKey : string ="gno.land/r/nym-moultest123/x/grc20faucet/v0.RED"
BlueKey : string ="gno.land/r/nym-moultest123/x/grc20faucet/v0.BLUE"
lastClaim : *v0.Tree Inspect
decimals : untyped bigint =(4 <untyped> bigint)
ClaimAmount : int64 =1000000
ClaimEvery : int64 =100
init.10 : func() Inspect
Claim : func() Inspect
NextClaim : func(who .uverse.address) (int64, bool) Inspect
Transfer : func(symbol string, to .uverse.address, amount int64) Inspect
Approve : func(symbol string, spender .uverse.address, amount int64) Inspect
TransferFrom : func(symbol string, from .uverse.address, to .uverse.address, amount int64) Inspect
BalanceOf : func(symbol string, owner .uverse.address) int64 Inspect
Allowance : func(symbol string, owner .uverse.address, spender .uverse.address) int64 Inspect
TotalSupply : func(symbol string) int64 Inspect
tokenOf : func(symbol string) *v0.Token Inspect
ledgerOf : func(symbol string) *v0.PrivateLedger Inspect
caller : func() .uverse.address Inspect
checkErr : func(err .uverse.error) Inspect
Render : func(path string) string Inspect