Explorers and indexers
Every event by contract, how to trace income to the door it came through, the stream and door numbering, and drops by the block before.
On this page
Everything a revenue token does is on chain and announced in events. This page lists the events by contract, shows how to trace income to the door it came through, and names the views that answer what events do not.
Where to start
Index the tokenizer, 0x08de138e558a9258c6b4077e8bdeb9ad1fb46a4b, from Robinhood Chain block 107,699,241, the rollup block it was deployed in. From there:
| Contract | How to find it |
|---|---|
| Each revenue token | Tokenized on the tokenizer, or tokenCount(), tokenAt(i) and tokens(start, count) |
| Its streams | StreamAdded on the tokenizer, or streamCount(token) and streams(token, start, count) |
| Its doors | DoorAdded on the token, or doorCount() and doors(start, count) on it: each door's kind, contract, gas stipend and Hookr's leg |
| Its drop box | dropBox() on the token |
| Its family door | tokenizations(token) on the tokenizer: the door holding the token's locked Hookr families, zero until one is locked |
| Its Fee Bridge | bridge() on the token, zero when it has none |
| Its market | MarketOpened on the tokenizer: the family and the pool id |
| The door factories | positionDoorFactory(), v3PositionDoorFactory(), feebAdapterFactory() and revenue on the tokenizer |
| The Pons and Long door factories | 0x9655a9AeAD9c33032649E3a70e152d831aCeCd1a and 0x7309b6aDc24d590E19079C732be7e11eF6Ba485F, also ponsAdapterFactory() and dopplerAdapterFactory() on the tokenizer |
| The leg collector | collector() on the tokenizer: 0x2b8dd989d34256b7685e3bd8f10299a4891f1af2 |
| The state view | 0x83b8f1650a22b7da9fac45a09f51e0685c47e944; its tokenizer() names the tokenizer it reads |
The tokenizer, its state view and its leg collector are verified on Sourcify. Soon after each mint, Hookr submits the token, its drop box and the doors its tokenizer and its Pons and Long door factories made; the Rules ledgers are Hookr's live core contracts, and any other door is its builder's to verify.
Events by contract
| Contract | Events |
|---|---|
Tokenizer (HookrRevenueTokenizer) | Tokenized(token, creator, supply, streamManager, openStreams) once per token; StreamAdded(token, index, kind, door, id, legBps, endKind, end, by) once per stream, at the mint and every time one is added; MarketOpened when a market opens at mint; PositionReported per v4 position before its door is made; Advisory for a pool's Hook Block whose take pays its own recipient |
Revenue token (HookrRevenueToken) | ERC-20 Transfer and Approval; Initialized at the mint; DoorAdded and AssetAdded; IncomeRecognized, IncomeReleased, IncomeClaimed and ClaimSkipped; DoorPulled, LegPaid, AssetReadFailed and Synced for each sync; BonusDeposited; StrayDropped; IncomeRetired, DropIncomeCollected and DropIncomeRetired from collectIncome; OperatorSet; Stream and Stream; AuthorizationUsed and AuthorizationCanceled |
Drop box (HookrDropBox) | Dropped, StrayAdded, Claimed, IncomeCollected, IncomeAssetCollected, AuthorizationUsed, AuthorizationCanceled |
| Every door but a Rules ledger | the forwarding events: Forwarded(currency, amount) and ForwardFailed for what reached the token or did not; StrayStreamed, StrayStreamFailed and LegPaid for a currency the token does not list; Retired for the revenue token itself, sent to 0xdead |
Family door (HookrFamilyForwarder) | FamilyRegistered; FamilyTermExtended; Collected per pool; RedeemFailed; RulesCreditRetired; FamilyReturned at release |
Fee NFT door (HookrFeebAdapter) | FeesCollected and CollectFailed for the fee splitter's collection, Claimed and ClaimFailed for the vault's claim, TermExtended, Released |
v4 position door (HookrPositionNftDoor) | Activated; Collected and CollectFailed per position; TermExtended; Released, ReleaseHeld and UnlistedReturned |
v3 position door (Hookr) | the v4 door's events, with both amounts in Collected, and Unwrapped and UnwrapFailed for the wrapped ETH it turns back into ETH |
Revenue token door (HookrRevenueTokenDoor) | IncomeClaimed and IncomeClaimFailed per asset of the inner token; DropClaimed, DropClaimFailed and DropLeft; TermExtended; Released |
Pons door (HookrPonsAdapter) | Swept, BuybackReleased, Claimed, Aborted, AbortRecovered, AbortRecoveryFailed |
Long door (HookrDopplerAdapter) | Collected, CollectFailed, Aborted |
| Door factories | DoorCreated on the v4, v3 and revenue token door factories; AdapterCreated on the fee NFT, Pons and Long door factories |
Leg collector (HookrLegCollector) | Swept for what it pays the treasury; IncomeCollected and DropCollected for the income and drops of revenue tokens it holds, claimed to the treasury |
| A pool's Rules ledger | the Rules contract's own; the live HookrRules emits Claimed(quote, beneficiary, to, amount) with the token as beneficiary and recipient |
Several of these share a signature: the forwarding events across every door, Claimed, Collected, CollectFailed, Released and Aborted across several kinds of door, IncomeClaimed on the token and on a revenue token door, LegPaid on the token and on the doors, and DoorCreated and AdapterCreated across the factories. Key every log by the contract that emitted it, and know that contract's kind from doors(start, count) or from the factory that made it.
Income by asset, and by door
IncomeRecognized(asset, sourceId, amount, streamEnd) is the token's record of income: one per asset each time income is recognized. sourceId is SOURCE_SYNC() for what a sync found or SOURCE_BONUS() for a depositBonus, and it never names a door. IncomeReleased(asset, amount, index) follows as the income is released over the release period, and IncomeClaimed(account, asset, to, amount) when a holder is paid.
To say which door income came through, read the doors' own events in the same sync transaction. Each door's events come just before the token's DoorPulled(i, ok) for it:
| Door | What it delivered |
|---|---|
| A pool's Rules ledger | the Rules' Claimed, one per listed asset it owed, with the token as recipient |
| Every other door | Forwarded(currency, amount), one per listed asset it forwarded |
Hookr's leg follows the door it came from: the token's LegPaid(door, asset, amount) for a listed asset, sent to the leg collector in the same sync. Synced(by, pulledEth, tip, bridged) closes the sync. pulledEth is the ETH the pulled doors delivered after Hookr's leg; the tip went to the caller and the Fee Bridge slice to the bridge, and IncomeRecognized for asset 0 carries the rest, plus any ETH sent straight to the token since the last sync. For the other assets, add the doors' events for that asset and take off the token's LegPaid for it: the rest of its IncomeRecognized was sent straight to the token.
A currency the token does not list never reaches the token: the door pays Hookr's leg of it (LegPaid(asset, amount) on the door) and moves the rest into the drop box (StrayStreamed), where the box's StrayAdded and Dropped record what reached the holders.
A door of the tokenizer's make takes pull() from its token alone (OnlyRevenueToken), so nobody pulls one outside a sync. What a position door's pullSome(ids) collects stays in the door until the next sync pulls it. An outside door of someone else's make may push into the token between syncs: what it pushes joins the next sync's IncomeRecognized, untipped and with no leg, while its own events sit in the earlier transaction.
A failed pull counts nothing in that sync. DoorPulled(i, false) from a door that is not a Rules ledger means its pull() reverted, so it left no Forwarded and what it holds waits for the next sync; a Rules ledger can pay one asset and fail another in the same pull, so count the Claimed it did emit. ForwardFailed is an amount the door could not send, which stays in the door.
Arb recapture is not a separate stream. The pool's share of a recapture is donated to its in-range liquidity (LpShareDonated) or, with none in range, credited to its liquidity owner (PoolAccrued), which the family door claims to itself (a Rules Claimed whose beneficiary is the family door) and forwards. Either way it reaches the token in the family door's Forwarded: never add RecaptureSplit, LpShareDonated, PoolAccrued or a Claimed paid to the family door on top. A share paid in the revenue token itself is retired, not income.
Door income is what an agent earns: for each sync, the doors' Forwarded plus the Rules' Claimed to the token, less the token's LegPaid, per asset. For ETH that sum equals the sync's pulledEth. Bonuses (SOURCE_BONUS) and anything sent straight to the token are not door income.
A token's agent
The tokenizer takes no agent id, so a revenue token names its agent through the agent's ERC-8004 record. The agent mints from its own wallet, links that wallet on the Agent gate (link(agentId)), and the id's owner calls setMetadata(agentId, "revenueToken", value) on the identity registry 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432, the value being the token's address as 20 bytes, or several tokens back to back. The token is the agent's while the record lists it and the wallet the gate links to the id (linkOf(wallet)) is the token's creator or stream manager and still the id's owner or agent wallet. hookr_revenue_token answers it as agent, and the SDK's buildRevenueAgentLink builds the record call. The registry's MetadataSet(agentId, key, key, value) carries the key's hash as its second topic, so an indexer can follow every link with one log filter.
Streams and doors
streams(token, start, count) on the tokenizer answers a page of stream records, one per stream: its kind, its door, an id (the family, the fee NFT's id, the inner revenue token, or an outside door's sourceKind()), Hookr's leg on it, when it was added, how and when it ends, and for a family its place in the family door. The end is read live, so a Pons stream Pons moved away shows as ended. StreamAdded gives the same records as each stream is added. The state view's streamsPage(token, start, count) adds each stream's door index, gas stipend, the account it goes back to and the income waiting at it in each listed currency.
Three numberings to keep apart:
| Field | Values |
|---|---|
doors(start, count)[i].kind | 0 RULES, 1 FORWARDER, 2 FEEB, 3 POSITIONS, 4 SOURCE, 5 POSITIONS_V3, 6 REVENUE_TOKEN |
StreamRecord.kind | 0 RULES, 1 FAMILY, 2 MARKET, 3 FEEB, 4 POSITIONS, 5 POSITIONS_V3, 6 SOURCE, 7 REVENUE_TOKEN |
StreamRecord.endKind | 0 FOREVER; 1 AT_BLOCK, a parent-chain block; 2 AT_TIME, a timestamp; 3 REVOCABLE, with the earliest moment a pending move takes effect, or 0; 4 ENDED |
The app marks a Pons door verified when Hookr's Pons door factory answers isAdapter(door) and the door answers isDoor(), and a Long door when Hookr's Long door factory answers isAdapter(door). Every other outside door shows as unverified.
Holders and drops
- The supply is minted once, in the transaction that emits
Initialized, and never changes.Transferevents give every balance. - The earning supply leaves out the Uniswap v4 PoolManager, 0xdead, the drop box, the token itself, its leg collector and its tokenizer:
earns(account)andearningSupply(). - A holder's income can be followed from events alone.
IncomeReleasedcarries each asset's newindex, scaled bySCALE()(1e36), and every transfer settles both sides at the index of that moment: a holder's credit grows by its earning balance times the index's growth since its last settlement, andIncomeClaimedtakes it down. Theclaimableview also counts what a release now would add. Droppedcarries a drop'ssnapshotBlock, a parent-chain block, and the earning supply at it. A holder's share is the drop'samounttimesbalanceAt(holder, snapshotBlock)over that supply, capped at what is left of the drop.
The block numbers above follow Two block numbers; history at older blocks needs an archive node.
Revenue tokens minted before 29 October 2026 have their own tokenizer and events, described on the page for those tokens.