Protocol & contracts

Architecture

The four core contracts, the strategy templates, the indexer and the live feed, and how a dawn flows through them.

Last updated 2 min readv1.0

Four contracts run the ritual. Strategy templates are deployed as cheap clones. The contracts' events are the source of truth; an indexer turns them into state and a live feed keeps every client sub-second.

Architecture: users and agents call the contracts on Elysium; an indexer reads events and streams them to the app and SDK over WebSocketBUILDERS · LPswallet-signed txsAGENTSBearer em_… keysTRADERSswap · join · exitCONTRACTS · ELYSIUMDawnSchedulerwindows · bonds · bidsForgeFactoryactivate · mutatePulseVaultbudget · claimOrbitIndexregistry · metricsStrategy instances (templates)CL-AMM · options · fee curve · rebalancer · marketevents: Proposed · BidPlaced · Activated · Mutated…INDEXERevent log → statemetrics · historyWS / SSE FEEDcycle · bid · strategysub-secondapp · Orbit UI · SDK subscribeELYSIUM L2 · chain 99901Arbitrum Orbit stack · ~100 ms blocks · HYPE gassettles to HyperEVM →

#Components

ComponentResponsibility
DawnSchedulerThe clock and the auction: proposal window, bonds, votes, bids, settle. Escrows seed liquidity and winners' LP shares; pays refunds through pull payments.
ForgeFactoryTemplate registry with parameter bounds and mutable selectors; deploys EIP-1167 strategy clones; the only gateway for mutate and sunset; agent registration with per-strategy rate limits and selector allow-lists; the fee config (lpFeeShareBps plus the creator / Pulse / protocol split of the take).
PulseVaultHolds Pulse budgets (seedNextDawn, slashed bonds, the Pulse fee share); opens an epoch per settled dawn; streams with exponential decay; claim.
OrbitIndexRegistry of strategies with lightweight on-chain metrics (TVL, volume, fees, mutations) for the UI and agents.
Strategy templatesStrategyBase (ERC-20 LP shares, fee accrual and split, sunset) plus one implementation per template, e.g. DynamicFeeAMM, BinaryMarket.
IndexerReads events, rebuilds proposals, bids, strategies, positions, mutations and Pulse; serves REST.
Live feedWebSocket / SSE push of cycle, bid, strategy, activity and market events.

#A dawn, end to end

  1. propose

    DawnScheduler.propose(templateId, params, metadataURI) with the bond as msg.value. The scheduler calls ForgeFactory.validateParams and emits Proposed.

  2. vote · bid

    vote(id) from proposal open until the auction ends; bid(id) (payable) and cancelBid(id) during the auction. Emits Voted, BidPlaced, BidCancelled.

  3. settle

    After the auction, anyone calls settle(dawnId). Winners are ranked, each winner's seed goes to ForgeFactory.deploy, which clones the template, mints LP shares to the scheduler and lists it in OrbitIndex. PulseVault.startEpoch opens the dawn's Pulse.

  4. settleBid · withdraw

    Bidders (or anyone on their behalf) call settleBid(id, bidder): winning bidders receive LP shares, losing bidders a withdrawable refund. withdraw() pulls HYPE credits.

  5. evolve

    Owners and agents call ForgeFactory.mutate(strategy, calldata); 70% of each fee stays in the pool's reserves for LPs, the 30% take accrues and is split by flushFees; LPs claim Pulse from PulseVault.

#Design properties

  • Bounded gas. Proposals per dawn and winners are capped, so settle is O(P·N) with small P and N. Bidders are never iterated.
  • Pull payments. HYPE leaves the scheduler only via withdraw, except LP shares, seeds to the factory and slashed bonds to the PulseVault.
  • Declared mutability. mutate only forwards selectors the template registered as mutable; bounds are checked per parameter.
  • Timelocked admin. Economic config changes are queued and apply after one full period, outside proposal and auction windows. Timing fields are immutable after deployment. Ownership is two-step everywhere (acceptOwnership), intended to be held by a TimelockController (≥ 48 h) behind a multisig.
  • Guardian. May pause proposals, votes and bids (scheduler) and swaps, deposits and buys (factory), and flag spam. Exits always stay open: withdraw, cancelBid, settleBid, removeLiquidity, redeem, PulseVault.claim and flushFees work while paused.
  • No oracle. Pools open at the author's initQuotePerHype; the contracts never read a price feed.
  • Fail-safe settle. A winner whose deployment reverts is marked Lost and refunded; a full dawn of 32 proposals settles in about 3.8M gas.
Something unclear or wrong on this page? Report it.Updated Dec 1, 2026 · v1.0