Expand description
On-chain events (sol_log_data via Steel event! / .log()).
The server and indexer subscribe to these events to maintain the off-chain state: user balances, bet records, market outcomes, leaderboard history.
§Event contract
| Event | Trigger | Observer action |
|---|---|---|
Deposited | Deposit ix | Indexer credits user’s off-chain USDC balance |
PeriodSettled | AdminInstantSettlement | Bot computes + dispatches payouts; DB records outcome |
Paid | AdminPayout | Bot confirms payout in DB |
Initialized | Initialize | One-time setup confirmation |
Structs§
- Deposited
- Emitted by
Deposit. Server creditsuser’s off-chain balance byamountµUSDC. - Initialized
- Emitted by
Initialize. - Paid
- Emitted by
AdminPayout. Bot confirms the payout was delivered. - Period
Settled - Emitted by
AdminInstantSettlement. Server reads this to compute and enqueue payouts.