TypeScript shape
enum
A swap (trade). Sourced from
swaps rows with swap_type IN (REGULAR, MEV, MEV_SANDWICHED, BOND).enum
An LP add (V3 Mint or V2 deposit). Sourced from
swaps rows with swap_type = DEPOSIT.enum
An LP remove (V3 Burn or V2 withdrawal). Sourced from
swaps rows with swap_type = WITHDRAWAL.enum
V2 pool reserve sync. Stored in
pool_events. Currently short-circuited to empty in getTokenEvents (Codex doesn’t expose Sync in its EventData union).enum
V3 fee collection. Stored in
pool_events. Short-circuited to empty.enum
V3 protocol fee collection. Stored in
pool_events. Short-circuited to empty.enum
Balancer V2 / Uniswap V4 multi-asset pool rebalance. Stored in
pool_events.enum
Liquidity lock event. Short-circuited to empty.