Skip to main content

Crate streak_api

Crate streak_api 

Source
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_data via Steel event! / .log()).
instruction
Instruction discriminators + payload types.
prelude
pyth
Pyth price-feed helpers (PriceUpdateV2 accounts — 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 Treasury lives 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.

Functions§

check_id
Returns true if given pubkey is the program ID.
id
Returns the program ID.