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 state

Back to all declarations

side

untyped bigint

Value

(32 <untyped> bigint)

traitCount

untyped bigint

Value

(9 <untyped> bigint)

ink

untyped string

Value

"#1b1b22"

white

untyped string

Value

"#ffffff"

option

type

Value

v2.option

optionName

func(trait int, idx int) string
Open
OID
05d517…605f:94
optionName details

Inspect func

digits

untyped string

Value

"0123456789abcdefghijklmnopqrstuvwxyz"

eyeCells

map[string][][3]int

Eyes fill the two 2×2 holes: row, col, paint.

Open
OID
05d517…605f:99
eyeCells details

Inspect map

friendSprite

type

Value

v2.friendSprite

friendSprites

map[string]v2.friendSprite
Open
OID
05d517…605f:137
friendSprites details

Inspect map

friendPaint

map[uint8]string
Open
OID
05d517…605f:149
friendPaint details

Inspect map

canvas

type

Value

v2.canvas

hexDigits

untyped string

Value

"0123456789abcdef"

shade

func(hex string, pct int) string

shade scales a #rrggbb colour by pct percent.

Open
OID
05d517…605f:150
shade details

Inspect func

Art

func(tid string) string

Art draws gnome \`tid\` as an SVG.

Open
OID
05d517…605f:151
Art details

Inspect func

collectionName

untyped string

Value

"Pixel Gnomes"

collectionSymbol

untyped string

Value

"GNOME"

supply

untyped bigint

Value

(100 <untyped> bigint)

royaltyBps

int64

// 5%

Value

500

owner

.uverse.address

// receives all 100 at mint

Value

<gnolang.StringValue>

royaltyReceiver

.uverse.address

// receives the 5% royalty

Value

<gnolang.StringValue>

mintHeight

int64

Value

333581

owners

v0.Tree

// token id -> address, only tokens that have moved

Open
OID
05d517…605f:154
owners details

Inspect ref

balances

v0.Tree

// address -> int64

Open
OID
05d517…605f:156
balances details

Inspect ref

approvals

v0.Tree

// token id -> address

Open
OID
05d517…605f:158
approvals details

Inspect ref

operators

v0.Tree

// owner + "/" + operator -> true

Open
OID
05d517…605f:160
operators details

Inspect ref

Mint

func()

Mint brings all hundred into existence, once.

Open
OID
05d517…605f:161
Mint details

Inspect func

RoyaltyReceiver

func() .uverse.address
Open
OID
05d517…605f:166
RoyaltyReceiver details

Inspect func

BalanceOf

func(addr .uverse.address) int64
Open
OID
05d517…605f:169
BalanceOf details

Inspect func

OwnerOf

func(tid string) .uverse.address
Open
OID
05d517…605f:170
OwnerOf details

Inspect func

GetApproved

func(tid string) .uverse.address
Open
OID
05d517…605f:171
GetApproved details

Inspect func

IsApprovedForAll

func(holder .uverse.address, operator .uverse.address) bool
Open
OID
05d517…605f:172
IsApprovedForAll details

Inspect func

Approve

func(to .uverse.address, tid string)
Open
OID
05d517…605f:173
Approve details

Inspect func

SetApprovalForAll

func(operator .uverse.address, approved bool)
Open
OID
05d517…605f:174
SetApprovalForAll details

Inspect func

TransferFrom

func(from .uverse.address, to .uverse.address, tid string)
Open
OID
05d517…605f:175
TransferFrom details

Inspect func

SafeTransferFrom

func(from .uverse.address, to .uverse.address, tid string)

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

Open
OID
05d517…605f:176
SafeTransferFrom details

Inspect func

RoyaltyInfo

func(tid string, salePrice int64) (.uverse.address, int64)
Open
OID
05d517…605f:177
RoyaltyInfo details

Inspect func

TokenURI

func(tid string) string

TokenURI is the artwork itself, as a data URI.

Open
OID
05d517…605f:179
TokenURI details

Inspect func

Traits

func(tid string) string

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

Open
OID
05d517…605f:180
Traits details

Inspect func

ownerOf

func(id int) .uverse.address
Open
OID
05d517…605f:182
ownerOf details

Inspect func

addBalance

func(a .uverse.address, d int64)
Open
OID
05d517…605f:183
addBalance details

Inspect func

Render

func(path string) string

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

Open
OID
05d517…605f:184
Render details

Inspect func

traitTable

untyped string

Generated by tools/gen-gnome-traits.py — one 9-character row per gnome, each character the index of that gnome's option for one trait, in order: hat, pattern, beard, coat, skin, eyes, acc, friend, bg.

Value

"413010115500110217304210211101040127400122007b3300005920233221633731100730014121571102012010321111440721100540314100310044234510432313e42752110462314102232230000781340330740032102a405331141301321111122341028302410005312502239a1260121c905542050a016320118220"...
side : untyped bigint =(32 <untyped> bigint)
traitCount : untyped bigint =(9 <untyped> bigint)
ink : untyped string ="#1b1b22"
white : untyped string ="#ffffff"
option : type =v2.option
traitNames : [9]string Inspect
hats : []v2.option (len=12) Inspect
patterns : []v2.option (len=4) Inspect
beards : []v2.option (len=8) Inspect
coats : []v2.option (len=10) Inspect
skins : []v2.option (len=5) Inspect
eyeTypes : []v2.option (len=4) Inspect
accs : []v2.option (len=5) Inspect
friends : []v2.option (len=6) Inspect
bgs : []v2.option (len=15) Inspect
pools : func() [9][]v2.option Inspect
optionName : func(trait int, idx int) string Inspect
digits : untyped string ="0123456789abcdefghijklmnopqrstuvwxyz"
traitsOf : func(id int) [9]int Inspect
body : []string (len=28) Inspect
eyeCells : map[string][][3]int Inspect
friendSprite : type =v2.friendSprite
friendSprites : map[string]v2.friendSprite Inspect
friendPaint : map[uint8]string Inspect
canvas : type =v2.canvas
hexDigits : untyped string ="0123456789abcdef"
shade : func(hex string, pct int) string Inspect
Art : func(tid string) string Inspect
collectionName : untyped string ="Pixel Gnomes"
collectionSymbol : untyped string ="GNOME"
supply : untyped bigint =(100 <untyped> bigint)
royaltyBps : int64 =500
owner : .uverse.address =<gnolang.StringValue>
royaltyReceiver : .uverse.address =<gnolang.StringValue>
mintHeight : int64 =333581
owners : v0.Tree Inspect
balances : v0.Tree Inspect
approvals : v0.Tree Inspect
operators : v0.Tree Inspect
Mint : func() Inspect
Name : func() string Inspect
Symbol : func() string Inspect
Owner : func() .uverse.address Inspect
RoyaltyReceiver : func() .uverse.address Inspect
MintHeight : func() int64 Inspect
TotalSupply : func() int64 Inspect
BalanceOf : func(addr .uverse.address) int64 Inspect
OwnerOf : func(tid string) .uverse.address Inspect
GetApproved : func(tid string) .uverse.address Inspect
IsApprovedForAll : func(holder .uverse.address, operator .uverse.address) bool Inspect
Approve : func(to .uverse.address, tid string) Inspect
SetApprovalForAll : func(operator .uverse.address, approved bool) Inspect
TransferFrom : func(from .uverse.address, to .uverse.address, tid string) Inspect
SafeTransferFrom : func(from .uverse.address, to .uverse.address, tid string) Inspect
RoyaltyInfo : func(tid string, salePrice int64) (.uverse.address, int64) Inspect
RoyaltyBps : func() int64 Inspect
TokenURI : func(tid string) string Inspect
Traits : func(tid string) string Inspect
mustID : func(tid string) int Inspect
ownerOf : func(id int) .uverse.address Inspect
addBalance : func(a .uverse.address, d int64) Inspect
Render : func(path string) string Inspect
traitTable : untyped string ="413010115500110217304210211101040127400122007b3300005920233221633731100730014121571102012010321111440721100540314100310044234510432313e42752110462314102232230000781340330740032102a405331141301321111122341028302410005312502239a1260121c905542050a016320118220"...