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

pixelgnomes/v2 package

Overview

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.

Function

Art

func Art(tid string) string

Art draws gnome `tid` as an SVG.

Param

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/g1r6luttvrkksxh9h4asjq2qd8zsd5nlkrzvyjur/pixelgnomes/v2.Art()"

Result