const BlocksPerDay, BlocksPerYear, BlocksPerSeason, CalendarOffset, FullGrowthDays, FullRootsDays, maxU32
Chain time.
Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.
Package cinar is a Sinopia engine and its first living one: a tree that grows with the token's age, turns with the ch...
Package cinar is a Sinopia engine and its first living one: a tree that grows with the token's age, turns with the chain's seasons and keeps its owners in its bark and roots.
The tree's shape, species, setting and rare marks come from the seed. How much of the tree exists, and what it looks like today, comes from the chain inputs core passes in engine.Input (Living = true):
CollectionID and TokenID are not read. Inputs are clamped to 0..2^32-1 (core stores them as uint32) and MintHeight <= LastMoveHeight <= Height is enforced, so any RenderWithInput call renders.
Pure integer maths: no floats. frontend/src/engines/cinar.ts is the byte-identical TypeScript twin; cinar_test.gno and cinar.test.ts assert the same golden vectors.
Chain time.
DefaultParams is the canonical form of the defaults; it renders exactly like "".
Fingerprint is sha256(Render(engine.SampleInput())): a sapling on the steppe in late summer at height 1. The integration step reserves it in core (r/core config.gno reservedFingerprints).
MaxSVGBytes: the largest output measured is ~22 KB (full-grown crown, many transfers); the cap leaves headroom under the 28 KB budget.
1const ParamsSchema = `{"type":"object","properties":{` +
2 `"species":{"type":"string","title":"Species","enum":["Seeded","Oriental Plane","Olive","Judas Tree","Cypress"],` +
3 `"default":"Seeded"},` +
4 `"setting":{"type":"string","title":"Setting","enum":["Seeded","Hill","Courtyard","Shore","Steppe"],` +
5 `"default":"Seeded"}}}`ParamsSchema is the Studio form. Studio sends JSON.stringify of the values in this property order; ValidateParams accepts exactly that or "".
Manifest describes the engine. Author and FeeBps are set by the adapter.
Render returns the raw SVG for in.
SVG renders the artwork for in under cfg.
Traits returns the eight traits of in in TraitTypes order. It never renders: three table draws and the clock.
ValidateParams accepts "" (the showcase defaults) and the canonical JSON.
ClockOf reads the living fields of in.
Defaults is the showcase look (params "").
ParseParams accepts "" or the canonical JSON Studio produces, nothing else.
TraitsOf returns the traits for in under cfg. Species, Setting, Mark and Rarity come from the seed; Season, Stage, Roots and Notches from chain time.
Clock is everything the art reads from chain time, after clamping.
Config is a parsed params string.
TraitSet is the decoded properties of an input.