Airdrop

Developers

Copy as text for an AI

Indexing events

All events emitted by Kairo's contracts, plus the Uniswap v4 events each Kairo pool generates, and how to reconstruct tokens, trades, fees, stages and holder rewards purely from logs.

Quick start#

Four event families cover most indexers. Begin at the v4 factory's deployment block (v4.blockNumber in contracts/deployments/99901.json); nothing Kairo-related exists before it.

Minimum event set
To trackIndexSource
TokensTokenLaunchedKairoV4Factory. Token, creator, pool id and the complete launch terms, first buy included.
TradesSwap · FeeAccruedSwap from Uniswap's PoolManager (pool side) plus FeeAccrued from Kairo's hook (fee), same transaction.
StagesStageChanged · Graduated · LpFeeActivatedKairoLaunchHook, on every step through the five stages.
Fee payoutsCreatorFeesClaimed · FeesSwept · ProtocolCollectedKairoLaunchHook: creator claims, and Kairo's share heading to the vault.

TokenLaunched(token, creator, poolId, record) is self-contained: the record holds the fee row, quote and which side of the pair it sits on, supply, opening tick, fee recipient and lock flag, every fee in pips, anti-snipe start rate and window, both lines, the first buy, builder code and salt. You never need a contract call to describe a token. Keep its poolId: every trade on that token is a PoolManager Swap carrying that id.

The PoolManager is shared by every v4 pool on Elysium, so filter its logs to the pool ids the factory launched (the id is the first topic of Swap and ModifyLiquidity). Kairo's indexer consumes exactly these logs; its decoder ABIs are in web/src/lib/indexer/abi.ts, and its output is the HTTP API.

Logs inside a launch transaction#

A launch emits, in this order:

  • the token's Transfer of the full supply to the hook;
  • the hook's PoolRegistered, then the PoolManager's Initialize;
  • the seed's ModifyLiquidity, followed by the hook's PoolSeeded;
  • if there is a first buy, its Swap and FeeAccrued;
  • finally TokenLaunched and TokenProfile. Holders-route tokens also emit RewardsEnabled.

Decoding a trade#

Swap describes only the pool's side: amount0/amount1 signed from the swapper's view (negative = into the pool, positive = out of it), the post-trade price (sqrtPriceX96, tick), and the LP fee. Kairo's fee is charged outside those amounts and reported once per swap by FeeAccrued(poolId, zeroForOne, amountSpecified, fee, protocolPart).

Combining Swap and FeeAccrued
You wantCompute
Quote a buyer paid (pool sent tokens out)quote amount in Swap + fee
Quote a seller receivedquote amount in Swap − fee
Kairo's partprotocolPart
Creator side (anti-snipe premium included)fee − protocolPart
LP feeSeparate; earned by in-range liquidity, zero until the LP line is reached
Price after the trade(sqrtPriceX96 / 2^96)^2 = currency1 per currency0; invert it if the token is currency1 (see the record's quoteIsCurrency0)

Identifying the trader: Swap.sender is whichever contract called the PoolManager (Kairo's router, the factory for a first buy, the vault's buyback adapter, or a third-party v4 router). For trades through Kairo's router, Swapped(poolId, sender, recipient, ...) gives the wallet. For other routers, use the token's Transfer in the same transaction to see where the tokens went.

Event catalogue#

Signatures match the Solidity in contracts/contracts/v4, with indexed fields marked.

KairoV4Factory

KairoV4Factory events
EventFires when
TokenLaunched(address indexed token, address indexed creator, bytes32 indexed poolId, (uint256 rowId, address quote, bool quoteIsCurrency0, uint256 supply, int24 startTick, address feeRecipient, bool feeLocked, uint24 totalPips, uint24 floorPips, uint24 protocolPips, uint24 lpPips, uint24 earlyBuyFeeStartPips, uint32 earlyBuyFeeWindow, uint24 graduationTicks, uint24 lpLineTicks, uint32 lpLineHold, uint256 firstBuyIn, uint256 firstBuyOut, address firstBuyRecipient, bytes32 builderCode, bytes32 salt) record)Each launch, carrying all its terms. graduationTicks = 0 means the pool starts graduated.
TokenProfile(address indexed token, string name, string symbol, string metadataURI)The launch's name, symbol and metadata.
FeeSplitterDeployed(bytes32 indexed poolId, address indexed splitter, address[] recipients, uint16[] shares)A split route's splitter, at launch or made later for a hand-on.
RowPublished(uint256 indexed id, (uint24 totalPips, uint24 floorPips, uint24 protocolPips, uint24 lpPips, bool enabled) row) · RowEnabled(uint256 indexed id, bool enabled)The owner appends a fee row, or enables/disables one for future launches.
LinesUpdated(uint24 graduationTicks, uint24 lpLineTicks, uint32 lpLineHold)The two lines for new launches change, within bounds.
LaunchFeeUpdated(uint256 previous, uint256 current) · LaunchFeesSwept(address indexed vault, uint256 amount)The launch fee changes (up to its cap), or collected launch fees go to the vault.
LaunchesPaused(bool paused)New launches are paused or resumed. Trading never pauses.
ProtocolFeeVaultUpdated(address vault) · ProtocolPipsCapLowered(uint24 cap)Protocol fees go to a new vault; the protocol cap falls (it never rises).
BuybackAdapterRegistered(address indexed adapter, bytes32 indexed poolId) · ProtocolContractRegistered(address indexed target)A buyback adapter is blessed for a pool; a contract is refused as a fee recipient.
HookSet(address indexed hook) · GuardianSet(address guardian) · OwnershipTransferStarted · OwnershipTransferredSet once at deploy; guardian and two-step ownership changes.

KairoLaunchHook

KairoLaunchHook events
EventFires when
PoolRegistered(bytes32 indexed poolId, address indexed recipient, Registration registration)The factory registers a pool's terms, just before opening it.
PoolSeeded(bytes32 indexed poolId, int24 tickLower, int24 tickUpper, uint128 liquidity, uint256 dustBurned)The whole supply goes in as the locked seed. The rounding dust is burned.
FeeAccrued(bytes32 indexed poolId, bool zeroForOne, int256 amountSpecified, uint256 fee, uint256 protocolPart)Once per swap: the hook's fee in the quote, and Kairo's part of it.
StageChanged(bytes32 indexed poolId, uint8 stage, uint256 timestamp)Every stage move: 0 Below, 1 Crossed, 2 Graduated, 3 past the LP line, 4 LP fee on.
Graduated(bytes32 indexed poolId, uint256 timestamp)Graduation is confirmed, for good. Not emitted for a launch graduated from birth.
LpFeeActivated(bytes32 indexed poolId, uint24 lpFee)The LP fee switches on for good, after the price held past the LP line long enough.
CreatorFeesClaimed(bytes32 indexed poolId, address indexed to, uint256 amount)The creator side is paid out (claim, claimTab, a splitter or a holders token's distribute).
SeedFeesHarvested(bytes32 indexed poolId, address indexed caller, uint256 quoteToCreator, uint256 tokensBurned)The seed's LP fee: quote to the creator tab, tokens burned.
FeesSwept(bytes32 indexed poolId, address indexed caller, uint256 creatorAmount, uint256 protocolAmount) · ProtocolCollected(address indexed currency, address indexed vault, uint256 amount)The protocol's share is booked, then paid to the vault.
RecipientUpdated(bytes32 indexed poolId, address indexed oldRecipient, address indexed newRecipient)The creator side is handed on (a wallet, a splitter, or the holders).
TotalFeeUpdated(bytes32 indexed poolId, uint24 oldFee, uint24 newFee) · FeeLocked(bytes32 indexed poolId)The paid wallet lowers the fee, or fixes it for good.
ProtocolFeeUpdated(bytes32 indexed poolId, uint24 oldFee, uint24 newFee)Kairo's share on a pool is lowered; the difference goes to the creator side.
ClaimOperatorSet(address indexed account, address indexed operator, bool approved)A wallet lets another claim for it.

Uniswap PoolManager

PoolManager events (filter by Kairo pool ids)
EventFires when
Initialize(bytes32 indexed id, address indexed currency0, address indexed currency1, uint24 fee, int24 tickSpacing, address hooks, uint160 sqrtPriceX96, int24 tick)The pool is opened at its launch price. fee is 0x800000 (dynamic) and tickSpacing 200 for every Kairo pool.
Swap(bytes32 indexed id, address indexed sender, int128 amount0, int128 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick, uint24 fee)Every trade, the pool's side. fee is the LP fee in force (pips).
ModifyLiquidity(bytes32 indexed id, address indexed sender, int24 tickLower, int24 tickUpper, int256 liquidityDelta, bytes32 salt)Liquidity added or removed. With sender = the hook it is the seed: added once at launch, never removed; later zero-delta entries from the hook are fee harvests. Anything else is outside liquidity, which can only be added once the pool is LpActive (stage 4).
Donate(bytes32 indexed id, address indexed sender, uint256 amount0, uint256 amount1)A donation: it becomes LP fees (the seed's part goes to the creator side and the burn).

KairoV4Router

KairoV4Router events
EventFires when
Swapped(bytes32 indexed poolId, address indexed sender, address indexed recipient, bool zeroForOne, uint256 amountIn, uint256 amountOut)Each pool a router trade went through, with the wallet that sent it and the one paid.

KairoV4Token and KairoFeeSplitter

KairoV4Token and KairoFeeSplitter events
EventFires when
Transfer · ApprovalStandard ERC-20.
RewardsEnabled(uint256 earningSupply)The token starts paying its holders (holders route, or a split with a holders slot).
RewardsDeposited(address indexed from, uint256 amount, uint256 streamEnd)Fees enter the 60-minute holder stream.
RewardsClaimed(address indexed holder, address indexed to, uint256 amount, uint256 tip)A holder is paid, by a claim or a push (tip to the pusher).
RewardsPushSkipped(address indexed holder, uint8 reason)A push passed over an address with code (reason 1).
SplitterInitialized(address indexed feeSource, bytes32 indexed poolId, address quote, address[] recipients, uint16[] shares)A splitter's slots, set once.
Distributed(uint256 amount) · Collected(address indexed recipient, address indexed to, uint256 amount) · Rotated(uint256 indexed slot, address indexed oldRecipient, address indexed newRecipient) · ClaimFailed(bytes reason)A splitter pays its slots, a slot takes its own, a slot is handed on, or the hook claim failed (paid next time).

ProtocolFeeVault

ProtocolFeeVault events
EventFires when
Received(address indexed from, uint256 amount)HYPE arrives: the hook's collectProtocol, launch fees, or a donation.
Allocated(address indexed asset, uint256 toBuyback, uint256 toTreasury)What arrived is split into lanes (asset 0x0 = HYPE). 100% treasury while the buyback is off; 50/50 while it's on (the share is buybackShareBps, set to 5,000).
BuybackExecuted(address indexed pool, uint256 spent, uint256 burned, uint256 spotX96, uint256 twapX96)HYPE buys KAIRO. burned is the amount bought, wherever it went; the BuybackDelivered events after it in the same transaction say where.
BuybackDelivered(address indexed to, uint256 amount)After BuybackExecuted, one per wallet the buy filled, in fill order: amount reached to. A single 0x…dEaD delivery means burned; otherwise to is one of Kairo's buyback wallets. Sum them for the transaction.
PlatformLaneReleased(address indexed token, address indexed to, uint256 amount)Fees paid in KAIRO itself leave the buyback lane for to: one event per buyback wallet filled, or one to 0x…dEaD (burned).
PlatformLaneBurned(address indexed token, uint256 amount)Also emitted beside PlatformLaneReleased when to is 0x…dEaD (the same burn, not a second one). Older vaults emit only this.
TreasuryWithdrawn(address indexed asset, address indexed to, uint256 amount)The owner takes from the treasury lane. The buyback lane is only spent on buybacks or moved back to the treasury.
BuybackReleasedToTreasury(address indexed asset, uint256 amount)The owner moves unspent buyback money back to the treasury lane.
BuybackEnabled() · BuybackPaused()The buyback is switched on or off, by the Kairo Owner wallet (owner and guardian). It can flip any number of times.
GuardianSet(address guardian)Who may flip the switch besides the owner.
BuybackRecipientsSet(address[] recipients) · RecipientCapSet(uint16 bps)The buyback wallets from now on, in fill order (empty = burn at 0x…dEaD), and the most each is filled to, in bps of KAIRO's supply (default 200 = 2%).
BuybackShareSet(uint16 bps) · BuybackFloorRaised(uint16 bps)The buyback share changes (0–90%), or the floor under it rises (it never falls).
LimitsSet((uint16 perCallBps, uint16 dailyBps, uint16 bandBps, uint32 cooldown, uint32 twapWindow) limits)The buyback guards change, within their hard bounds.
KeeperSet(address keeper) · FactoryAdded(address indexed factory) · PlatformPoolSet(address indexed pool, address indexed token)Who may run buybacks, which factories may pay in, and which pool is KAIRO's (a KairoV4BuybackPool adapter on v4).

KairoAirdrop

KairoAirdrop events
EventFires when
SeasonProposed(uint256 indexed seasonId, bytes32 merkleRoot, address token, uint64 activatesAt, uint64 claimDeadline)A season's Merkle root is set; claims open at activatesAt, after a public delay.
Funded(uint256 indexed seasonId, address indexed from, uint256 amount)Tokens (or HYPE) are added to a season.
Claimed(uint256 indexed seasonId, address indexed account, address token, uint256 amount)An account is paid its share. Anyone may submit; it always pays the account.
ClaimWindowExtended(uint256 indexed seasonId, uint64 claimDeadline)A season's claim deadline moves later.
UnclaimedWithdrawn(uint256 indexed seasonId, address indexed to, uint256 amount) · ExcessRecovered(address indexed token, address indexed to, uint256 amount)After the deadline, what nobody claimed is taken back; or a stray balance is recovered.

KairoQuoteRegistry

KairoQuoteRegistry events
EventFires when
QuoteListed(address indexed quote, QuoteKind kind, uint8 decimals, bool requiresAck, uint256 virtualReserve)A quote asset is listed. Kind: 0 native, 1 platform, 2 ecosystem, 3 stock, 4 index, 5 leveraged. virtualReserve is its opening market cap.
QuoteEnabled(address indexed quote, bool enabled)A quote is switched on or off for new launches. Existing pools keep trading.
QuoteVirtualReserveUpdated(address indexed quote, uint256 virtualReserve)The opening market cap for future launches on that quote changes, within its listed range.
GuardianSet(address guardian)The registry's guardian changes.

Ownership changes#

One wallet, the Kairo Owner wallet, directly owns the v4 factory, the vault, the quote registry and the airdrop. There is no multisig or timelock today, so a settings change takes effect in the transaction that emits its event. To catch an owner change, watch each contract's OwnershipTransferStarted and OwnershipTransferred; for settings, watch the setter events listed above.