Skip to main content

Module event

Module event 

Source
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

EventTriggerObserver action
DepositedDeposit ixIndexer credits user’s off-chain USDC balance
PeriodSettledAdminInstantSettlementBot computes + dispatches payouts; DB records outcome
PaidAdminPayoutBot confirms payout in DB
InitializedInitializeOne-time setup confirmation

Structs§

Deposited
Emitted by Deposit. Server credits user’s off-chain balance by amount µUSDC.
Initialized
Emitted by Initialize.
Paid
Emitted by AdminPayout. Bot confirms the payout was delivered.
PeriodSettled
Emitted by AdminInstantSettlement. Server reads this to compute and enqueue payouts.