Skip to main content

Module sdk

Module sdk 

Source
Expand description

Off-chain instruction builders. Fixed account order mirrors on-chain process_* comments.

Functions§

associated_usdc_ata
deposit
User deposits amount µUSDC into the treasury. Server listens for the Deposited event to credit the user’s off-chain balance.
fee_collector_usdc_ata_with_token_program
initialize
One-time treasury initialization. Creates the Treasury PDA and its USDC ATA. Genesis price is seeded by the first AdminInstantSettlement call. payer must be ADMIN_ADDRESS.
payout
Pay amount µUSDC from the treasury to recipient_ata. Used for winner payouts, jackpot distributions, and withdrawals.
program_id
route_fees
Route amount µUSDC of claimed DBC / DAMM v2 fees into the treasury.
route_fees_default_executor
Convenience: route_fees signed by the canonical EXECUTOR_ADDRESS.
treasury_usdc_ata
treasury_usdc_ata_with_token_program
usdc_ata