Skip to content

Launch platforms and partner apps

The one tokenizer call that mints every revenue token, the streams it takes, the terms an app sets, who the creator is, and Hookr's leg.

On this page

A launch platform or a partner app can let its creators mint revenue tokens two ways: send them to hookr.fun's own flows, or send the same calls from its own app. Either way the creator signs, and the tokenizer checks everything at the mint.

Hookr's own flows

  • A new token with a revenue token: the launch floor, its Revenue step. Launch a token with a revenue token walks it.
  • A fee right a wallet holds: /tokenize, the Your wallet tab. A Pons or Long fee right has its own tab there, and New pool opens the launch floor for a new Hookr pool of a token that already trades.

The call

One call mints every revenue token: tokenize(t, s, m), with the token's terms, the streams it takes and its market. The streams are any combination of the kinds below, each in its own field of StreamParams, and at least one. addStreams(token, s) adds the same kinds to a token that already exists.

What the creator hasIn StreamParamsBefore it
A new token to launch on Hookr, or a new Hookr pool for a token that tradeslaunchParams: the LaunchParams the launcher's launchFamily takes, encodedA new token's salt starts with the creator's address; every pool's royaltyTo set to predictToken(creator, t); ERC-20 budgets approved to the tokenizer
A Hookr family it owns, every pool on the Hookr rootfamiliesThe tokenizer made the family's pending owner with the launcher's transferFamily(family, tokenizer, claims)
A pool's Rules ledger that already credits the tokenrulesNothing: the pool was launched with the token as its royaltyTo
A pools.trade fee NFTfeebs: the vault and the NFT's idThe NFT approved on the vault to feebAdapterFactory()
Uniswap v4 positionspositionIdssetApprovalForAll(positionDoorFactory(), true) on the PositionManager, or permits in positionPermits
Uniswap v3 positionsv3PositionIdsEach NFT approved to v3PositionDoorFactory(), or permits in v3Permits
Shares of another revenue tokenrevenueTokens: the token and the amountThe tokenizer approved on that token for the amount
A Pons or Long fee right, or another platform's doorthe door's address, in the list of outside doorsThe door made for predictToken(creator, t) and handed its fee right

The doors for outside fee rights are made before the token, for the address predictToken gives:

  • Pons. create(revenueToken, memecoin) on the Pons door factory, 0x9655a9AeAD9c33032649E3a70e152d831aCeCd1a, from the launch's creator fee recipient. Then transferCreatorFeeRecipient(memecoin, door) on the Pons launch factory, which the door factory names with launchFactory(). The door pays the launch's quote asset.
  • Long. create(revenueToken, launchToken) on the Long door factory, 0x7309b6aDc24d590E19079C732be7e11eF6Ba485F, from the holder of the launch's Long fee right. Then updateBeneficiary(poolId, door) on Doppler's initializer, which the factory names with initializer(). The door pays both of the pool's currencies.
  • Another platform. A door of its own: Doors for new platforms.

Terms your app sets

  • The token (TokenTerms): name, symbol and supply; streamSeconds, the release period, up to 14 days, or 0 for income claimable at once; tipBps, the sync caller's tip, at most 100; assets, the ERC-20s listed beside ETH from the start; the recipients and their amounts; termsHash, a nonzero commitment to the terms you publish, used once per creator; streamManager, who may add streams and list currencies later, or zero to close the list at the mint; and openStreams, whether anyone may also lock their own Hookr pool, fee NFT, positions or revenue token shares into the token. The app sends a 1-day release period unless the creator picks longer, a 1% tip, and the creator as the stream manager unless the creator picks anyone or no one.
  • The assets: ETH is always asset 0, and a token lists at most eight in all. The tokenizer lists a market's ERC-20 quote at the mint, and a launch's ERC-20 quote wherever its pool has a royalty or a Hook Block. With listAssets set, the currencies the streams bring are listed too, while there is room; without it, income in a currency the token does not list reaches holders through the drop box.
  • The amounts add up to exactly the supply less the market's seed, or the call reverts with MintMismatch. No recipient may be zero, the tokenizer or the leg collector.
  • The token's address is worked out before the mint by predictToken(creator, t), from the creator, the termsHash and the token's terms. The recipients, the amounts, the streams and the market do not move it. A creator who sends a termsHash again is refused with TermsHashUsed.
  • The term of a family (unlockBlock, for a launch, a handed family and the market): the largest uint64 for good, or a parent-chain block at least MIN_TERM_BLOCKS (50,400) past the current one. Count it from l1BlockNumber, never from eth_blockNumber: Two block numbers.
  • The term of a door (unlockAt, for a fee NFT, positions and revenue token shares): the largest uint64 for good, or a time at least MIN_TERM_SECONDS, 7 days, from now.
  • The market (MarketTerms): defaultMarket(rules, token, quote, sqrtPriceX96, seed) gives the tokenizer's own terms on rules, any Rules Hookr's registry admits on the root, for a quote, native ETH or an ERC-20 such as HOOKR, a start price and a seed. With open: false the token mints with no market, and the tokenizer reads none of the other fields. A Fee Bridge slice, up to 20% and on a market quoted in ETH only, is set here and only in a direct call.
  • The value sent: when the streams carry a launch, the launch's native budgets and dev buys plus the launcher's launchFee(), and the fee once more when a market opens. Without a launch, the launch fee when a market opens and nothing otherwise, or the call reverts with InvalidFunding.

Who the creator is

The tokenizer takes the account that sends the call as the creator. The token's address is worked out from it, a new token's launch salt must start with it, and its NFTs, families, shares and budgets are the ones that move. Leftovers and dev-bought tokens go back to it, and so does a family, a position, a fee NFT or a share at the end of its term.

So the creator's own wallet sends the call. A platform contract that sends it for them becomes the creator itself.

After the mint

  • Tokenized(token, creator, supply, streamManager, openStreams) carries the mint, and tokenizations(token) reads its record back. Each stream adds StreamAdded, and a market adds MarketOpened.
  • The token's page is https://hookr.fun/revenue/<address>, where anyone syncs and holders claim.
  • Simulate the call before the wallet opens, with the tokenizer's errors in your ABI as Walkthrough setup lists them. A refusal then comes back by name with its figures: TermTooShort, MintMismatch, InvalidFunding, InvalidTerms, InvalidMarket, TermsHashUsed, NothingToAdd, LaunchSaltNotCaller, SubjectTaken, FamilyNotHanded, FamilyOffRoot, SourceNotBound, SourceRevocationPending, InvalidSource, AdvisoryRecipientMismatch, VaultNotAdmitted, RulesNotAdmitted, V3PairIsRevenueToken and the rest.

Adding streams later

addStreams(token, s) takes the same StreamParams and gives back the index of the first stream it added. The token's stream manager may add any kind and set listAssets. On a token minted open to new streams, anyone else may add Hookr pools, families, Rules ledgers, fee NFTs, positions and revenue token shares, but no outside door and no new listed currency; anything else is refused with NotStreamManager.

Fee

Hookr's leg comes out of each stream's income at the sync, never out of the supply, so the recipients' amounts are the supply less the market's seed. A stream that already pays Hookr through the Hookr hook has no leg; any other stream pays 5% of what it delivers. StreamAdded and streams(token, start, count) give the leg of each stream. Terms and endings has the rule stream by stream.