v2 source realm
Package gnomes — Pixel Gnomes, one hundred of them.
Package gnomes — Pixel Gnomes, one hundred of them.
Every gnome is drawn by this realm from its row in traitTable (traits.gno): no image files, nothing hosted. The table was picked off-chain, once, with a fixed seed (tools/gen-gnome-traits.py), so rarity is deliberate and no two gnomes share all nine traits.
ANYONE MAY CALL Mint, once. Every gnome goes to `owner`, fixed in the source, so it does not matter who sends the transaction.
OWNERSHIP IS LAZY: all hundred belong to `owner` from the mint without a hundred writes. A gnome is written down individually only the first time it moves.
ROYALTY is 5% to `royaltyReceiver`, reported by RoyaltyInfo in the EIP-2981 shape. It is advisory, as on every chain: a marketplace has to choose to pay it, and a direct wallet-to-wallet transfer does not.
16
func Art
ActionArt draws gnome `tid` as an SVG.
func BalanceOf
Actionfunc IsApprovedForAll
Actionfunc Mint
crossing ActionMint brings all hundred into existence, once.
func MintHeight
Actionfunc Name
Actionfunc Render
Render: "" is the collection, "N" is gnome N.
func RoyaltyBps
Actionfunc SafeTransferFrom
crossing ActionSafeTransferFrom is TransferFrom: there is no receiver hook on gno.land.
func SetApprovalForAll
crossing Actionfunc Symbol
Actionfunc TokenURI
ActionTokenURI is the artwork itself, as a data URI.
func TotalSupply
Actionfunc Traits
ActionTraits lists one gnome's traits as "trait:option" pairs.
func TransferFrom
crossing Action7
- chain stdlib
- chain/runtime stdlib
- encoding/base64 stdlib
- gno.land/p/nt/avl/v0 package
- gno.land/p/nt/ufmt/v0 package
- strconv stdlib
- strings stdlib