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).

Function

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

Gno Expression Evaluator

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