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.

katman package

Overview

Package katman is the adapter of Katman, Sinopia's open PFP tool engine (p/…/sinopia/art/katman/v1). Core knows the engine only as this realm's package path plus an interface value.

A collection's params name a kit: {"store":<id>,"palette":<name>}. Store 0 is the art package's built-in demo kit (the engine's sample and Studio preview; CheckLaunch never launches it). Any other id is a sealed assets/v1 store the artist uploaded; this realm reads it and nothing else. The kit layout in a store (docs/engines/katman.md "Kit format"):

  • layers = the store's trait types, bottom first (1..8); the store's tiers are the same names in the same order, so assets.TierSlots gives every layer's weight line in one O(layers) read;
  • one part = one on-chain SVG artwork: its tier is its layer, its only non-empty trait value (in that layer's column) is the part's name, its editions are the part's rarity weight; artworks are sorted by layer;
  • every part file is exactly art.Root(w, h) + inner + "</svg>" with one w x h canvas for the whole kit.

A token draws one point per layer from its final seed (art.Draw); since a layer's parts are consecutive editions, the point is a slot and assets.SlotArtwork its part (O(log n)). Render stacks the drawn parts (art.ComposeParts); Traits are layer name = part name.

What holds, and why:

  • art theft: GateCreate (engine.CreateGate) accepts a store kit only when core's creator owns the store — core passes the creator explicitly, so no OriginCaller read (stores are wallet-owned, so the creator must be that wallet); core's paramsTaken refuses the same params to anyone else, so only the owner's collections use the kit;
  • no swap after sale: stores are sealed before Create and never change; params are fixed by core;
  • composition never fails at mint: the creator's Create runs the full kit check (layout, every part's root and size, worst composed token <= MaxSVGBytes); a sealed store and this code never change afterwards. Even an unchecked kit (a Studio preview) composes an allowlisted document: a part that does not fit is left out (art.ComposeParts);
  • snipe resistance is core's: before Final every token is core's placeholder and the seed does not exist yet; the kit itself is public by design (like an engine's code).

The adapter is stateless, has no admin and holds no coins. Never mark this realm private (design §5.4).

Functions

CheckKit

func CheckKit(params string) string
Ask AI Claude ChatGPT

CheckKit is the full kit check of params, without the owner rule: "" when a collection over them would be accepted (by the store's owner), else the reason. The Create wizard calls it right after Seal (a query).

Param

Command

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

Result

Register

func Register(cur realm) string
Ask AI Claude ChatGPT

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.

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1jz6j9hj6rdf5ltl2kcrpa4jwtdh3w30z0yul06/sinopia4/engines/katman" -func "Register" -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1jz6j9hj6rdf5ltl2kcrpa4jwtdh3w30z0yul06/sinopia4/engines/katman" -func "Register" -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

Gno Expression Evaluator

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