Instruction account and validation reference#
Seesaw has one public instruction grammar. For the current route names, tags,
and payload lengths, use the generated instruction manifest.
For account order and route-specific rejection rules, use the instruction
specification (unavailable reference), checked against the handlers in
program/src/processor (unavailable reference) and the dispatch table in
program/src/abi_compaction.rs (unavailable reference). The
generated account reference is a
quick way to find client builders; it does not override the onchain parser.
This page deliberately does not duplicate a per-route account table. The old
table drifted when account grammars and tags changed. In particular, native
oracle markets use Pyth Pull only; observation and contest instructions are
not part of the current ABI. Any required settlement vault or external
MarketMeta account is part of the instruction's canonical grammar, not a
backward-compatible option. The documentation gate asserts the public route
count and range against the generated manifest.
Validation shared by routes#
| Surface | Checks to expect |
|---|---|
| Config and market | Program owner, exact account size and discriminator, canonical PDA and bump, settlement mint, authority and state fields. |
| Orderbook, position and trader ledger | Program owner, layout and discriminator, stored market binding, canonical PDA, and bounded capacity. |
| Token accounts and mints | SPL Token owner and layout, expected mint and authority, canonical vault/escrow/mint PDA, and destination binding. |
| External market metadata | MarketMeta owner, exact layout and discriminator, PDA/bump, market binding, and route-specific resolution fields. |
| Governance and signatures | Required signer and writable roles, current authority, pause/emergency policy, and applicable timelocks. |
| Recorder tail | Event-producing routes require authenticated trailing [self_program, log_authority], readonly and non-signing; a missing, malformed, signing, writable, or misplaced pair rejects with InvalidInstructionData. This holds for every Tail = yes route, mirror routes included. See spec/IX.md §1.1 rule 3. |
S means signer, W writable, R read-only, and PDA a program-derived
address check in the instruction specification. Do not infer a valid account
list from these shared checks: use the exact route grammar. Account-count,
signer-role, and instruction-vector tests under program/tests and
packages/test-vectors are the executable cross-checks.
Solvency and lifecycle#
Market writers authenticate the canonical settlement vault and check the
post-transition reserve appropriate to the current state. Native terminal
claims use the authenticated outcome; external terminal claims use the
authenticated MarketMeta payout vector. Physical token balances alone do
not establish solvency. See solvency invariants and the
onchain state and settlement specification (unavailable reference) for the
economic rules. Release evidence and pending external gates live in the
prelaunch findings ledger (unavailable reference),
not in an account-list summary.