Expand description
Streak API — shared crate for deploy id, instructions, accounts, events, and SDK.
The on-chain program is a thin custody + price-chain layer. All game logic (bets, balances, pools, leaderboards) lives in the off-chain server and database.
Modules§
- consts
- error
- event
- On-chain events (
sol_log_datavia Steelevent!/.log()). - instruction
- Instruction discriminators + payload types.
- prelude
- pyth
- Pyth price-feed helpers (
PriceUpdateV2accounts — push or pull). - sdk
- Off-chain instruction builders. Fixed account order mirrors on-chain
process_*comments. - settlement
- Price-chain settlement helper for
AdminInstantSettlement. - state
- On-chain accounts. Only
Treasurylives on-chain in the off-chain-ledger model. Market pools, positions, balances, and streak stats are tracked in the server DB.
Constants§
- ID
- The const program ID.