const DefaultParams
DefaultParams is the canonical form of the defaults; it renders exactly like "".
Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.
Package strata (v2, "Derin Zaman") is a Sinopia engine: a geological plate of an invented earth. On the left a cross-...
Package strata (v2, "Derin Zaman") is a Sinopia engine: a geological plate of an invented earth. On the left a cross-section: beds of eight rock types, each with its own texture, folded by an integer sine field, cut by faults (every bed boundary steps along the fault plane), crossed by dikes, sills or quartz veins, sometimes truncated by an angular unconformity, with fossils in the beds and the present land surface on top (meadow, forest, bare rock or snow). On the right the stratigraphic column of the same beds: each formation named (Kızıldere, Akyayla, ...), dated in Ma, drawn with its true thickness and a width by its resistance (a weathering profile), fossils and events marked. Rare events tell a story: an aquifer with its well, a karst cave, an oil trap under an anticline with its derrick, a gold vein, an impact boundary.
It is the successor of Strata v1 (p/.../art/strata/v1, which stays untouched): the same FNV-1a + splitmix64 streams (seed+"|traits" and seed+"|art") and the same integer sine table, a new picture. frontend/src/engines/stratav2.ts is a byte-identical TypeScript twin; strata_test.gno pins golden vectors that the twin asserts too.
Unlike v1 the art reads Input.TokenID (the column's title, "Section 42"). It never reads heights or moves, so the engine is not living. Pure integer maths: no floats, no time, no block data.
DefaultParams is the canonical form of the defaults; it renders exactly like "".
MaxSVGBytes: the largest output measured is 16,755 B (10,000 default seeds and 8,000 params renders, docs/engines/strata-v2.md); about 1.7x margin, within the 28 KB budget.
1const ParamsSchema = `{"type":"object","properties":{` +
2 `"era":{"type":"string","title":"Era","enum":["Seeded","Red Beds","Chalk Sea","Volcanic Arc","Coal Age",` +
3 `"Desert Dunes","Ice Age","Lapis Vein"],"default":"Seeded"},` +
4 `"folding":{"type":"string","title":"Folding","enum":["Seeded","Flat","Gentle","Folded","Contorted"],"default":"Seeded"},` +
5 `"surface":{"type":"string","title":"Surface","enum":["Seeded","Meadow","Forest","Bare Rock","Snow"],"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.Seed, in.Params and in.TokenID.
SVG renders a seed under cfg with the token number tokenID. The art stream's draw order is part of the contract (it mirrors stratav2.ts).
SectionNumber is the number in the column title: Input.TokenID read as a decimal, modulo 1,000,000. Anything but ASCII digits (or "") is 0.
Traits returns the eight traits of in.Seed in TraitTypes order. It never renders: eight draws and a score.
ValidateParams accepts "" (the showcase defaults) and the canonical JSON.
Defaults is the showcase look (params "").
ParseParams accepts "" or the canonical JSON Studio produces, nothing else.
TraitsOf returns the traits of a seed under cfg.