subtoken source realm
Package subtoken is spikes (b) and (c) of tasarim-v6 §5.5:
Package subtoken is spikes (b) and (c) of tasarim-v6 §5.5:
Example
1(b) a grc721 token created with a sub-realm identity cur.Sub("c/1"):
2 does NewToken accept it, what is Token.ID(), and can the host spend
3 coins that land on a sub-address ("roy/1") with a banker bound to
4 cur.Sub("roy/1")?
5(c) a grc721 Extension that vetoes every transfer and burn until a
6 reveal flag flips, while mints keep working.
One token, one collection, no owner: anyone may call every function. Never part of the product.
13
func Burn
crossing Actionfunc Create
crossing ActionCreate 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>".
func IsRevealed
Actionfunc Mint
crossing ActionMint mints the next token to the caller; allowed while locked.
func Moves
Actionfunc Render
Render also answers spike §5.5-6: does gnoweb display a data: SVG image?
func Reveal
crossing ActionReveal lifts the lock forever.
func RoyaltyBalance
Actionfunc Sweep
crossing ActionSweep spends the whole roy/1 sub-treasury to `to` with a banker bound to the sub-realm identity (interrealm v2 §5.5 example).