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

README.md

2.01 Kb · 49 lines

gno.land/r/moul/x/grc20faucet/v0

Two free GRC20 tokens, RED and BLUE, so experiments have something to run on. Worthless by construction, unlimited, and shared.

maketx call -pkgpath gno.land/r/moul/x/grc20faucet/v0 -func Claim

100.0000 of each per claim (4 decimals), once every 100 blocks per account.

token symbol registry key
Red Token RED gno.land/r/moul/x/grc20faucet/v0.RED
Blue Token BLUE gno.land/r/moul/x/grc20faucet/v0.BLUE

Both are registered in r/nt/grc20reg, which is the point: another realm can find and move them by key without importing this one. Everything else here is the ordinary GRC20 surface, with the symbol as the first argument:

-func Transfer     -args RED  -args <to>      -args 250000
-func Approve      -args BLUE -args <spender> -args 250000
-func TransferFrom -args RED  -args <from> -args <to> -args 250000

Approve is the interesting one. It is what lets a realm such as r/moul/x/grc20wrapdemo pull your tokens into escrow, and until you call it that realm has no authority over your balance at all.

Two tokens rather than one because the interesting patterns start at two: a meta-token over a pair needs a pair.


Part of moul/gno-contracts — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage.

Dependency graph:

gno.land/r/moul/x/grc20faucet/v0 dependency graph

🧪 Highly experimental — potentially vibe-coded. Not audited; may break, change, or be removed at any time. Do not use with anything of value. Full disclaimer: DISCLAIMER.