Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

pafta state

Back to all declarations

author

.uverse.address

// stage:engineAuthor

Value

<gnolang.StringValue>

AuthorFeeBps

untyped bigint

AuthorFeeBps is the author's fee on primary and secondary sales of collections by other creators (engine.Manifest.FeeBps; waived for the author's own collections, capped by core's engine-fee cap). Platform engines: 1 %.

Value

(100 <untyped> bigint)

selfPath

string

selfPath is this realm's package path = the engine id in core.

Value

"gno.land/r/g1jz6j9hj6rdf5ltl2kcrpa4jwtdh3w30z0yul06/sinopia4/engines/pafta"

SelfPath

func() string

SelfPath is the engine id.

Open
OID
0d7cd3…b0f7:8
SelfPath details

Inspect func

impl

type

impl is zero-size and declared here, so core runs it with this realm's authority (interrealm v2 borrow rule #1).

Value

pafta.impl

Register

func() string

Register is an explicit call, not init: under the inert package policy init runs inside the approver's transaction (RA B-1). It registers this realm, once, and core accepts it only when the transaction is signed by the manifest author (author, config.gno). salt "" = no commit reservation; the fingerprint is in core's in-source reserved table (r/core config.gno), so only that key can register this art anywhere.

Open
OID
0d7cd3…b0f7:15
Register details

Inspect func

placed

func(in v2.Input) (v1.Place, bool)

placed answers core's real token call for a Final Pafta collection: the salt is core's (Input.Salt, set only on token reads of a Final collection), the collection id a real one and the seed exactly safe.Seed(cid, tid, salt). Studio inputs (CollectionID "0", Salt "") and anything inconsistent are standalone.

Open
OID
0d7cd3…b0f7:16
placed details

Inspect func

finalSalt

func(info v2.CollectionInfo, tid string) (string, int64, bool)

finalSalt is the salt of a Final commit-reveal Pafta collection of 256 and the numeric token id when tid is a valid one; ok false otherwise (the Sheet/Sheets reads, which have no engine input).

Open
OID
0d7cd3…b0f7:17
finalSalt details

Inspect func

tidNum

func(tid string) int64

tidNum is the canonical decimal token id, 0 otherwise.

Open
OID
0d7cd3…b0f7:18
tidNum details

Inspect func

Sheet

func(cid string, tid string) string

Sheet is token tid's place on the map once collection cid is Final: {"cid","tid","tile","sheet","col","row"} (tile 0..255 row-major, col and row 0..15), or null (not a Final commit-reveal Pafta collection, or no such token). Before Final it is always null: nothing about the map exists yet.

Open
OID
0d7cd3…b0f7:19
Sheet details

Inspect func

Sheets

func(cid string) string

Sheets is the whole layout of a Final collection: {"cid","mapSeed", "tiles":\[tid of each sheet 0..255, "" where no token was minted]} or null (as Sheet). A composite view (gallery, reader) crops each token's TokenURI to the map face (art.MapX, MapY, MapSize of a Width x Height sheet) and lays the faces edge to edge in this order; burned tokens stay listed (check OwnerOf).

Open
OID
0d7cd3…b0f7:20
Sheets details

Inspect func
author : .uverse.address =<gnolang.StringValue>
AuthorFeeBps : untyped bigint =(100 <untyped> bigint)
selfPath : string ="gno.land/r/g1jz6j9hj6rdf5ltl2kcrpa4jwtdh3w30z0yul06/sinopia4/engines/pafta"
init.3 : func() Inspect
Author : func() .uverse.address Inspect
SelfPath : func() string Inspect
errSupply : *errors.errorString Inspect
impl : type =pafta.impl
errOpen : *errors.errorString Inspect
Register : func() string Inspect
placed : func(in v2.Input) (v1.Place, bool) Inspect
finalSalt : func(info v2.CollectionInfo, tid string) (string, int64, bool) Inspect
tidNum : func(tid string) int64 Inspect
Sheet : func(cid string, tid string) string Inspect
Sheets : func(cid string) string Inspect