Only kimia-perp, delta-vault (one event), and intent-router emit
#[event] structs today. split-engine, yield-amm, and kusd-mint log
via msg! only — observe them by reading tx.meta.logMessages on the
confirmed transaction.
kimia-perp
Defined in Perp-engine/programs/kimia-perp/src/events.rs.
| Event | Key fields |
|---|
MarketInitialized | market, oracle, admin |
PositionOpened | user, market, direction, base_amount, quote_amount, entry_price, fee |
PositionClosed | user, market, close_amount, close_price, realized_pnl, fee |
FundingRateUpdated | market, funding_rate, mark_twap, oracle_twap, cumulative_funding_rate_long, cumulative_funding_rate_short, timestamp |
FundingSettled | user, market, funding_payment |
CollateralDeposited | user, amount |
CollateralWithdrawn | user, amount |
Liquidated | user, liquidator, market, base_amount_closed, close_price, liquidation_fee, insurance_fee, bad_debt |
OrderPlaced | order_id, owner, market, price, base_amount, direction |
OrderFilled | taker, maker, market, fill_qty, fill_price, taker_fee, maker_fee, taker_direction |
OrderCancelled | order_id, owner, refunded_margin |
MarkPriceUpdated | market, new_price, timestamp |
SelfTradeSkipped | owner, order_id |
BadDebtDetected | market, amount, cumulative_uncovered, market_paused |
SpotPoolInitialized | pool, base_mint, quote_mint, admin |
SpotSwapped | user, pool, direction, amount_in, amount_out, fee, oracle_price |
delta-vault
Defined in Programs/programs/delta-vault/src/instructions/rebalance.rs.
| Event | Key fields |
|---|
RebalanceChecked | vault, long_notional_usd, short_notional_usd, delta_bps, executed |
All other state transitions (deposit, withdraw, claim_funding, pause) currently
emit msg! logs instead of typed events.
intent-router
Defined in Programs/programs/intent-router/src/events.rs.
| Event | Key fields |
|---|
IntentFulfilled | owner, session_id, amount, target_rate, achieved_rate, pt_received, yt_received |
Per-step progress (session create, step 1, step 2, close) is visible via
msg! logs and the session account’s state field.
split-engine, yield-amm, kusd-mint
No #[event] structs emitted. Observe state transitions by:
- Reading
tx.meta.logMessages on the confirmed transaction.
- Polling or subscribing to the relevant account PDAs.