Red
*v0.TokenTokens are exported so an importing realm can read them directly; the ledgers stay private, since they carry unrestricted mint and burn.
- OID
- 0f4d03…6aeb:27
Red details
Blue
*v0.TokenTokens are exported so an importing realm can read them directly; the ledgers stay private, since they carry unrestricted mint and burn.
- OID
- 0f4d03…6aeb:33
Blue details
redLedger
*v0.PrivateLedgerTokens are exported so an importing realm can read them directly; the ledgers stay private, since they carry unrestricted mint and burn.
- OID
- 0f4d03…6aeb:29
redLedger details
blueLedger
*v0.PrivateLedgerTokens are exported so an importing realm can read them directly; the ledgers stay private, since they carry unrestricted mint and burn.
- OID
- 0f4d03…6aeb:35
blueLedger details
RedKey
stringTokens 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/moul/x/grc20faucet/v0.RED"
BlueKey
stringTokens 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/moul/x/grc20faucet/v0.BLUE"
lastClaim
*v0.Tree// address -> block height of its last claim
- OID
- 0f4d03…6aeb:10
lastClaim details
decimals
untyped bigintValue
(4 <untyped> bigint)
ClaimAmount
int64Value
1000000
ClaimEvery
int64Value
100
init.10
func()- OID
- 0f4d03…6aeb:12
init.10 details
Claim
func()Claim mints ClaimAmount of both RED and BLUE to the caller.
- OID
- 0f4d03…6aeb:14
Claim details
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.
- OID
- 0f4d03…6aeb:15
NextClaim details
Transfer
func(symbol string, to .uverse.address, amount int64)Transfer moves the caller's own units of \`symbol\`.
- OID
- 0f4d03…6aeb:16
Transfer details
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.
- OID
- 0f4d03…6aeb:17
Approve details
TransferFrom
func(symbol string, from .uverse.address, to .uverse.address, amount int64)TransferFrom spends an allowance the caller was granted.
- OID
- 0f4d03…6aeb:18
TransferFrom details
BalanceOf
func(symbol string, owner .uverse.address) int64BalanceOf returns \`owner\`'s balance of \`symbol\`.
- OID
- 0f4d03…6aeb:19
BalanceOf details
Allowance
func(symbol string, owner .uverse.address, spender .uverse.address) int64Allowance returns what \`owner\` let \`spender\` draw of \`symbol\`.
- OID
- 0f4d03…6aeb:20
Allowance details
TotalSupply
func(symbol string) int64TotalSupply returns how much of \`symbol\` has been claimed so far.
- OID
- 0f4d03…6aeb:21
TotalSupply details
tokenOf
func(symbol string) *v0.Token- OID
- 0f4d03…6aeb:22
tokenOf details
ledgerOf
func(symbol string) *v0.PrivateLedger- OID
- 0f4d03…6aeb:23
ledgerOf details
caller
func() .uverse.address- OID
- 0f4d03…6aeb:24
caller details
checkErr
func(err .uverse.error)- OID
- 0f4d03…6aeb:25
checkErr details
Render
func(path string) string- OID
- 0f4d03…6aeb:26