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

GRC20 wrapper factory

Wrap any token registered in grc20reg into a new one with a different personality, or fuse two into one. Permissionless: no allowlist, no owner, no authority over anybody's balance.

Escrow account to approve: g1220xl4ylfkaytyrwedcddz5r05xqa3dgcpqfp8

Modes

mode what the wrapped token does
plain 1:1 custody receipt
kilo 1 underlying unit becomes 1000 wrapped, +3 decimals
soulbound wrap and unwrap freely, never transferable
pool shares in the escrow; Donate pays every holder at once
sticky pool plus a 1% exit fee, left behind for whoever stays
fusion one meta-token backed by a fixed bundle of two others

Issued here

Nothing yet. Be the first.

Try it

Claim play money from the faucet, let this realm spend it, then wrap:

# 1. get RED and BLUE
maketx call -pkgpath gno.land/r/moul/x/grc20faucet/v0 -func Claim

# 2. let this realm pull your RED
maketx call -pkgpath gno.land/r/moul/x/grc20faucet/v0 -func Approve \
  -args RED -args g1220xl4ylfkaytyrwedcddz5r05xqa3dgcpqfp8 -args 1000000

# 3. create a pool wrapper over RED, then deposit into it
maketx call -pkgpath gno.land/r/moul/x/grc20wrapdemo/v0 -func NewWrapper \
  -args gno.land/r/moul/x/grc20faucet/v0.RED -args pool -args pRED
maketx call -pkgpath gno.land/r/moul/x/grc20wrapdemo/v0 -func Deposit \
  -args pRED -args 500000

Built on p/moul/x/grc20wrap.