streak-api
Shared types, constants, instruction layouts, Pyth helpers, and off-chain sdk builders for STREAK on Solana.
Protocol site: streak.market.
This crate is intended for:
- On-chain programs that depend on
solana-programand compile against the same instruction/state definitions. - Clients (bots, CLIs, servers) that build transactions with
solana_sdk; use matching major versions of Solana crates as your RPC stack.
Contents
consts— program id, PDAs seeds, treasury / executor addresses, timing limits.state—Treasury,Ledger,Market,Positionaccount layouts (Steelaccount!).instruction— discriminators and typed instruction payloads used by the program.sdk— helpers that assemblesolana_program::instruction::Instructionwith the correct account metas (mirror on-chain ordering comments in the program).error—StreakErrorcodes shared with the program.
Settlement math and Pyth decoding helpers live under settlement / pyth for parity with on-chain checks.
Usage
Add to Cargo.toml:
= "0.1.0"
Depend on solana-program (and optionally solana-sdk off-chain) versions compatible with your deployment.
License
MIT — see the repository license file.