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 package

Overview

Package pafta is the adapter that registers the Pafta engine (p/…/sinopia/art/pafta/v1) with core. Core knows the engine only as this realm's package path plus an interface value.

Pafta is a collection-level engine: 256 tokens are the 256 sheets of one map. Which map and which sheet a token is must stay unknown until the sale is over (otherwise buyers could target the summit or the lone island), so both come from the collection's final salt (art.Placement):

  • core's own TokenURI / TokenCard / TokenTraits call for a Final Pafta collection is "placed": core passes the collection's final salt in engine.Input.Salt (core-final round), Render and Traits check that the seed is exactly core's (seed == safe.Seed(cid, tid, salt)) and draw sheet tile(tid) of map mapSeed(cid, salt) — no read-back of core;
  • everything else is "standalone" (art.Render / art.Traits of the seed): core.RenderWith / RenderWithInput / EngineTraits (CollectionID "0", Salt ""), the registration sample and any forged input;
  • before Final core never calls Render or Traits (placeholder / "Unrevealed"), core.Salt is "" and so are Sheet and Sheets here;
  • CheckLaunch refuses any supply but 256 (one token per sheet) and GateLaunch (engine.LaunchGate) refuses open mode: an open collection's salt is public from Launch, so a shared map would be targetable. Every Pafta collection is therefore a 256-sheet commit-reveal collection, which is what lets Render trust Input.Salt.

The adapter keeps no state of its own (selfPath is set once by init) and has no admin: what it renders is fixed by the p/ package it imports. Never mark this realm private (design §5.4: a re-deployable adapter could swap the art). Per-chain values (author key, fee) live in config.gno.

Function

SelfPath

func SelfPath() string
Ask AI Claude ChatGPT

SelfPath is the engine id.

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1jz6j9hj6rdf5ltl2kcrpa4jwtdh3w30z0yul06/sinopia4/engines/pafta.SelfPath()"

Result

Gno Expression Evaluator

Evaluate any read-only Gno expression against gno.land/r/g1jz6j9hj6rdf5ltl2kcrpa4jwtdh3w30z0yul06/sinopia4/engines/pafta, for example a function call with arguments.