Expand description
Off-chain instruction builders. Fixed account order mirrors on-chain process_* comments.
Functions§
- associated_
usdc_ ata - buy_
ticket - Purchase gaming credits (tickets) with USDC.
- fee_
collector_ usdc_ ata_ with_ token_ program - initialize
- One-time treasury initialization.
- payout
- Pay
amountµUSDC from the treasury torecipient_ata. - place_
bet - Spend 1 ticket (TICKET_PRICE_MICROS) on a prediction for the given period.
One bet per round — the on-chain
User.last_bet_periodguard prevents double-betting. User signs;User.balanceis debited on-chain. The indexer reads theBetPlacedevent to record the bet and update market pools. - program_
id - route_
fees - Route
amountµUSDC of claimed DBC / DAMM v2 fees into the treasury. - route_
fees_ default_ executor - Convenience:
route_feessigned by the canonicalEXECUTOR_ADDRESS. - treasury_
usdc_ ata - treasury_
usdc_ ata_ with_ token_ program - usdc_
ata