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

v2 source realm

Package gnomes — Pixel Gnomes, one hundred of them.

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.

Functions 16

func Art

Action
1func Art(tid string) string
source

Art draws gnome `tid` as an SVG.

func Mint

crossing Action
1func Mint(cur realm)
source

Mint brings all hundred into existence, once.

func Render

1func Render(path string) string
source

Render: "" is the collection, "N" is gnome N.

func SafeTransferFrom

crossing Action
1func SafeTransferFrom(cur realm, from, to address, tid string)
source

SafeTransferFrom is TransferFrom: there is no receiver hook on gno.land.

func TokenURI

Action
1func TokenURI(tid string) string
source

TokenURI is the artwork itself, as a data URI.

func Traits

Action
1func Traits(tid string) string
source

Traits lists one gnome's traits as "trait:option" pairs.

Imports 7

Source Files 4