ERC-8462: Launch Declarations

ERC-8376’s abuse patterns refer to what was “disclosed at launch”, but nothing defines that disclosure. This draft is the typed facts a launchpad declares at launch, attached to ERC-8376’s launch ids: the creator and its ERC-8004 identity, the supply allocations and their vesting, the liquidity and its lock, any financing of that liquidity, and the fee recipient. Launches outside ERC-8376 use venue-scoped ids that only that venue can write under. The creator authorizes a declaration by calling, or by an EIP-712 or ERC-1271 signature; facts are append-only and never amended, so a detector can compare what was declared with what it infers, and a wallet can show “launched by agent #n” with that agent’s record.

Questions for the ERC-8376 authors and launchpads:

  1. Would you rather this be a section of ERC-8376 than a separate extension?
  2. Should a listed launch’s creator also have to sign for the bare name, not only for an attached identity?
  3. Are the declaration kinds (allocation, liquidity, fee recipient) the right first set?

This is a useful split. The proposal notes that detectors, wallets and lenders can compare what a launchpad declared with what they observe. We run a detector on Robinhood Chain (Toll), so we are drafting the observed side as a companion ERC: Launch Observations.

A detector records what it measured about a launch, keyed to the same ERC-8376 launchId: bundle share, early-buyer share in the first seconds, the creator’s prior launches, holder share linked by one funding source, how much liquidity one account can remove (reading ERC-8463 locks as not removable before they unlock), and an optional product label. Pinned to the observed block, append-only, no score and no bond, so it stays apart from the 8376 abuse reports. Readers pick which detectors to trust, e.g. by ERC-8004 identity.

Would you be open to a short pointer from 8462 to it once it has a number? Reference implementation and tests are ready; we will open the thread and the PR shortly.

Thank you, and yes: once Launch Observations has a number, a pointer from 8462 to it is welcome. The split reads well: 8462 is what the launchpad and the creator declare, yours is what a detector measured, and a reader compares the two on the same launchId.

Two things that would keep them composable:

  • The same keys. Launches outside ERC-8376 carry venue-scoped ids in 8462, which only that venue can write under. If observations accept those ids as well as ERC-8376 launch ids, every declared launch can be observed.
  • Locks read, not listed. Where you count liquidity one account can remove, reading lockedLiquidity(pool, poolId) from ERC-8463 lockers, and checking that a locker holds the position, gives the same figure for every detector, rather than each keeping its own list of lockers.

Looking forward to the thread.

1 Like

Thanks, both are in the draft now (PR #2121).

  1. Same keys: an observation can now be keyed to an 8462 venue-scoped declaration id, as well as an ERC-8376 launchId or chain id + token. A declared launch and its observations meet under one key; the token join stays as a fallback.
    The registry does not check the id on chain, since 8462 has no fixed address, so a reader confirms it with getDeclaration.

  2. Locks read, not listed: a detector that records lpLockedShare or lpLockRemaining SHOULD compute them from 8463 lockers with lockedLiquidity(pool, poolId), and count a lock only when the locker holds the position at the observed block, per 8463’s holding check.

We’ll come back for the pointer once it has a number. Toll runs the detector side on Robinhood Chain as ERC-8004 agent #20030.

Thank you, both read right in #2121.

One detail for the reader’s check of a venue key: getDeclaration(declarationId) also returns the declaration’s venue, and a venue-scoped identifier only means something under the venue that wrote it. So a reader that trusts a set of launchpads should check that venue too, not only that the declaration exists. That keeps an observation from attaching to a declaration a venue the reader does not trust opened for the same token.

We’ll add the pointer once Launch Observations has its number.

1 Like

it has its number now: ERC-8470, Token Launch Observations ( ERC-8470: Launch Observations , PR #2121). the venue check is in too: a reader that trusts a set of launchpads now checks the declaration’s venue, not only that it exists. ready for the pointer whenever you are. once 8462 merges we’ll link it by number from 8470 too. thanks again for the reviews.

Congratulations on the number, and both checks read right in #2121.

On the pointer: the repository’s linter lets a proposal cite another only by a link to its file (./eip-8470.md), and the link check fails on a file that isn’t in the repository yet. So the pointer goes into the first revision of 8462 after 8470 merges. If 8462 merges first, you link it from 8470 and we add ours as soon as 8470 follows. Either way the two will point at each other once both files are in.

1 Like

A separate ERC seems cleaner if the declaration schema can serve venues beyond ERC-8376; ERC-8376 can normatively reference it for its launch IDs. I’d require creator authorization for the bare name too, otherwise a launchpad can attach an unverified name to an address. For the first set, allocations should include recipient and unlock details, while financing deserves its own type rather than being folded into liquidity. Make clear declarations are signed claims, not proof of the underlying facts.

@qasayesi Thank you. Taking your points in order:

A separate ERC. That is its shape: a declaration is keyed on ERC-8376’s launchId where the directory lists the launch, and on a venue-scoped identifier anywhere else (“Identifiers”), and nothing in ERC-8376 changes (“Relation to ERC-8376”). Whether ERC-8376 points back is for its authors.

The bare name. A venue-scoped declaration always needs the creator’s authorization, bare name included. Under a launchId the name is not an argument: the contract reads it from deployerOf(launchId), which ERC-8376 already records on the venue’s word (“the party the venue declares through ILaunchDirectory”). A signature at the declarations contract would not make that record any better verified, and it would let a deployer keep the venue’s allocations and lock off the identifier detectors read. So there only the identity, the claim a reader acts on, needs consent, and “Consent, and its limits” tells readers to treat an unsigned name as the venue’s claim. Consent to the name itself would belong in ERC-8376’s listing, which every consumer reads.

Allocations. Each has holder, amount, and linear vesting from vestStart to vestEnd (equal times free it all at once). A cliff followed by linear vesting takes two allocations to one holder, and that exposed an ambiguity: “Amendment and supersession” let a later fact read as a correction, so a reader could not tell a second tranche from a replacement. The draft (#2106) and the reference now say a holder’s allocations add up: a venue that understated declares the rest, and nothing declared can be withdrawn.

Financing. It stays on the liquidity fact, so a reader compares a loan’s dueAt with the unlock time of the lock it financed in one record. But that fact required a lock, so borrowed liquidity that nothing locks, the case a buyer most needs to see, could not be declared. A liquidity fact can now name a lender and no lock.

Claims, not proof. Security Considerations opens with it: “A declaration is a claim. It proves only that the venue made it.” The facts are not signed at all; the venue writes them from its own address. The creator’s authorization “does not vouch for the facts the venue declares afterwards”.

The draft’s “Late facts” guidance addresses disclosures made after the event, but declaredAt stores only the block timestamp. A venue could declare a previously omitted pre-allocation after the first purchase, in a later transaction within the same block. The timestamps would match even though the buyer couldn’t read the allocation when purchasing. How should detectors determine whether that allocation counts as “disclosed at launch”?

For PATTERN_INSIDER_ALLOCATION, should initial allocations count as disclosed only if recorded before public trading opens? Off-chain detectors can check transaction and log ordering; timestamps alone don’t establish that order for contracts reading the views. A worked example covering disclosure after the first purchase in the same block would clarify the expected classification. This could be scoped to initial allocations while preserving later liquidity declarations at bonding-curve graduation.

@Revinand Thank you, that is a real gap, and the draft claims more for declaredAt than it holds. “Amendment and supersession” says a reader tells a further fact “by its later declaredAt”, but declaredAt is the block timestamp (src/LaunchDeclarations.sol): the same for every transaction in a block and, on a chain that makes more than one block a second, for several blocks. It places a fact in time, not in order. The example in “Late facts”, an allocation declared after its holder sold, also names the wrong event: a buyer who bought before the declaration could not read it, whether or not the holder has sold.

Detectors. Yes, scoped as you suggest. A pre-allocation, meaning supply the chain shows allocated before public trading opened, counts as disclosed at launch only if its AllocationDeclared event comes before the first public purchase, ordered by block number and then log index (which counts across the whole block). ERC-8376 already draws that boundary for insiderAllocationShare: supply transferred “before public trading opened”. An allocation declared after it is a late fact whatever its declaredAt, and a detector SHOULD treat it as undisclosed for PATTERN_INSIDER_ALLOCATION. The rule binds allocations only: liquidity that reaches a pool at graduation, and fee recipients, can still be declared later.

Contracts reading the views. A new field would not fix it. The EVM does not give a contract its transaction’s index, so nothing the declarations contract records can order a fact against a purchase at the pool in the same block, and a block number would only separate blocks. In ERC-8376 this classification belongs to the detector: insiderAllocationShare is an OffChainInputs field, and an evidence leaf already commits to blockNumber, txHash and logIndex, so a detector can commit the order it found. A contract that needs the classification takes it from a report, not from declaredAt. A venue can make the order hold by construction, so the draft will say it SHOULD declare allocations before it accepts the first purchase, in the launch transaction where it can.

Worked example, for Test Cases. All in one block: in the first transaction the venue opens the declaration, sends 10% of supply to a vesting contract H and 5% to K, a wallet the creator funded, declares H’s 10% and seeds the pool; in the second a buyer makes the first purchase; in the third the venue declares K’s 5%. Both allocations have the same declaredAt. H’s was disclosed at launch. K’s was not: the buyer could not read it, so K’s 5% counts as undisclosed, as if it had never been declared. Had the third transaction come before the second, both would count as disclosed. Liquidity declared at graduation, blocks later, is unaffected.

These go into “Late facts”, “Amendment and supersession” and “Use by ERC-8376 detectors” in the next revision of #2106.

Thanks, that addresses the case with separate transactions. Could the examples also cover a declaration during the first purchase transaction? Uniswap v3 emits Swap after its callback, so a venue could append an allocation during that callback. AllocationDeclared would precede Swap, even though the buyer’s earlier pretrade check couldn’t read it.

Which boundary should detectors use here: the purchase event, the start of purchase execution or a venue-specific event? An explicit classification for this sequence would clarify when log ordering is enough.

@Revinand Thank you, they should, and the draft gets this case wrong as it stands. “Late facts” orders a pre-allocation against the first public purchase “by block number and then log index”, so in your sequence K’s AllocationDeclared, emitted in the callback, comes before Swap and counts as disclosed. Log index orders the events inside a transaction. It does not say what the buyer could read, and the buyer’s transaction was signed before that declaration existed.

The boundary is the start of the transaction that makes the first public purchase. A pre-allocation counts as disclosed at launch only if its AllocationDeclared event is emitted in an earlier transaction, by block number and then by the transaction’s index in its block. One emitted anywhere in the purchase’s own transaction is late, whatever its log index: in a v3 swap callback, in a v4 beforeSwap hook (PoolManager.swap calls it before _swap emits Swap), or in a bonding curve’s buy function before its own trade event. A fact declared in an earlier transaction is in the state the purchase transaction starts from, so a check the buyer’s transaction makes before it buys can read it; nothing written during that transaction was there to be read. Between transactions this is the line #11 drew, and it now also holds within one.

Why not the purchase event or a venue event. Inside a purchase, log order follows the code the purchase runs through, and the venue writes part of that code, so whichever event a detector took as the purchase, the venue could declare ahead of it. v3 shows that the choice changes the answer: the pool transfers the bought tokens before it calls back (the lines you link), so a declaration made in the callback comes after the token’s Transfer and before Swap. A venue-specific event comes wherever the venue puts it, ERC-8376’s included, since only the venue calls recordPurchase, and keying the rule to one would need a definition per venue. The start of purchase execution, after a router’s earlier calls or partway through a batch, is marked by no log, so a detector would need traces to find it. Every log carries its transaction’s index, as it carries its log index.

Evidence is unchanged: an ERC-8376 evidence leaf commits to blockNumber and txHash, and a transaction hash fixes the transaction’s index in its block, so a detector still commits the order it found, and a contract still takes the classification from a report (“Use by ERC-8376 detectors”).

Worked example, added to Test Cases after the first. All in one block: in the first transaction the venue opens the declaration, sends 10% of supply to H and 5% to K, declares H’s 10% and seeds a v3 pool; in the second a buyer makes the first public purchase through the venue, which calls the pool’s swap and, in uniswapV3SwapCallback, pays the pool and declares K’s 5%. K’s AllocationDeclared has a lower log index than Swap, and K’s 5% still counts as undisclosed, because it was declared in the purchase’s transaction. It counts the same if the venue declares it in a beforeSwap hook, or before its own purchase event. H’s 10% was disclosed at launch.

The launch transaction itself. A purchase the launch transaction makes, such as a creator’s initial buy, is supply allocated before public trading opened, declared like any other allocation, and not the first public purchase. The rule is strict inside a transaction on purpose: a bundler that packs several users’ operations into one transaction, as an ERC-4337 bundle does, can run a venue’s launch and then a buyer’s purchase. That buyer’s checks could read the launch’s declarations, yet they count as late, since telling the two cases apart takes a trace. So a venue SHOULD keep public purchases out of the transaction that declares its allocations: a bonding curve can refuse every purchase but its launch call’s own while a transient-storage flag that call set is still set (EIP-1153 storage clears when the transaction ends), and a venue that seeds a pool it does not control can declare in an earlier transaction.

These are in #2106 now (5d91e6bf): “Late facts”, the declaredAt paragraph of “Amendment and supersession”, “Use by ERC-8376 detectors” and Test Cases.

1 Like