Skip to content

feat(contracts): deploy on Elysium (99901), with live-fork suite and verification - #122

Merged
kevincodex1 merged 3 commits into
mainfrom
feat/elysium
Nov 10, 2026
Merged

kevincodex1 merged 3 commits into
mainfrom
feat/elysium

Conversation

@kevincodex1

Copy link
Copy Markdown
Member

Summary

Adds Elysium (Kinetiq's Arbitrum Orbit L2 for Hyperliquid, chain 99901, gas paid in HYPE) as a deploy target. The deployed contracts run on it unchanged. Uniswap v4 is officially deployed there (Uniswap/contracts deployments/99901.md), so there is no new source file and nothing in contracts/deployed.lock changes.

  • script/DeployLaunchFactory.s.sol: knows chain 99901 (PoolManager 0xE2e1…23F1, PositionManager 0x1d1C…E518) and deploys the plain LaunchFactory. HYPE is an ordinary native asset with no ERC-20 face sharing its balance (WHYPE is a separate wrapper), so the Arc native-quote guard does not apply.
  • test/LaunchFactory.elysium.fork.t.sol (FORK_TESTS=true), against the live chain:
    • the factory and locker land at 0x8155…de72 / 0xcd16…842a from the deployer's nonce 0, the same addresses as on Base, Robinhood Chain and Arc
    • launch → buy → collect in native HYPE and in USDC, plus burn mode
    • rug attempts fail; there is no admin surface
    • both Universal Routers there (v2.1.2, v2.2) take the "v2" ExactInputSingleParams layout and refuse "v1". The layout is probed on a USDC pool on purpose: on a native-quoted pool both layouts go through, because the misread hookData offset lands on currency0 = address(0). A wrong swapLayout would pass every HYPE trade and break only ERC-20-quoted ones.
    • before the deploy, the suite deploys from the real deployer on the fork; after it, the same suite runs against the live contracts.
  • .env.example: ELYSIUM_RPC_URL.

The app side (chain registry, HYPE price, indexer) follows in a separate PR, behind the "Coming soon" gate.

Deployed

Live on Elysium since 2026-11-10, block 3986599: tx 0x9ba554e22b4ed65f59435765c46d703b6be5085f74f2d917c4c80601e78c881e.

  • Addresses: LaunchFactory 0x815542E8b392389A1389E22E588E4B62A67Ade72 and LaunchLocker 0xcd1680D26922fcd9CabFbb8a56bA40C333fD842a, the same as on Base, Robinhood Chain and Arc (the deployer's nonce-0 transaction).
  • Cost: 4,308,648 gas at 0.50 gwei ≈ 0.0022 HYPE. The deployer was funded through Relay from its own Base balance, so it signed nothing on Elysium before the deploy.
  • Bytecode, checked on-chain: the executable code equals Base's and Robinhood Chain's (Uniswap v4 immutables aside). The embedded solc metadata hash matches the Arc build, as Arc's already did.
  • Verification: both contracts are verified on the Elysium explorer (script/verify.sh elysium, added here). Sourcify does not list Elysium mainnet yet.
  • Docs: deployments/launchpad-elysium.json is LIVE; docs/LAUNCHPAD.md and the README deployments table name Elysium.
  • Lock file: adding the record to contracts/deployed.lock is a lock change, which the PR guard blocks by design. It goes in a separate commit.

Test plan

  • FORK_TESTS=true forge test --match-contract LaunchFactoryElysiumFork -vv: 11/11 pass on the public RPC (2026-11-10)
  • Deploy script dry run on Elysium with a throwaway key: runs cleanly, ≈5.6M gas (≈0.006
  • forge test --match-path test/LaunchFactory.t.sol: 33/33 pass
  • script/check-deployed-sources.sh: ok, 13 files match the lock
  • Without FORK_TESTS the new suite skips (11 skipped)
  • Fork suite right before the broadcast (11/11) and against the live deployment (11/11)
  • script/verify.sh elysium: both contracts verified on the Elysium explorer

kevincodex1 and others added 3 commits November 10, 2026 19:05
Elysium is Kinetiq's Arbitrum Orbit L2 for Hyperliquid (mainnet 2026-11-09,
settles to HyperEVM, gas is HYPE). Uniswap v4 is deployed there
(Uniswap/contracts deployments/99901.md), so the deployed LaunchFactory,
LaunchLocker and LaunchToken run unchanged: no new source file, nothing in
contracts/deployed.lock changes.

- DeployLaunchFactory knows chain 99901 (PoolManager 0xE2e1…23F1,
  PositionManager 0x1d1C…E518) and deploys the plain LaunchFactory. HYPE is an
  ordinary native asset with no ERC-20 face sharing its balance (WHYPE is a
  separate wrapper), so the Arc native-quote guard does not apply.
- test/LaunchFactory.elysium.fork.t.sol (FORK_TESTS=true) against the live
  chain: the factory and locker land at 0x8155…de72 / 0xcd16…842a from the
  deployer's nonce 0, as on Base, Robinhood Chain and Arc; launch → buy →
  collect in native HYPE and in USDC, burn mode, rug attempts and no admin
  surface. Both Universal Routers there (v2.1.2 and v2.2) take the "v2"
  ExactInputSingleParams layout and refuse "v1". The layout is probed on a
  USDC pool: on a native-quoted pool both layouts go through, because the
  misread hookData offset lands on currency0 = address(0).
  Before the deploy the suite deploys from the real deployer on the fork;
  after it, the same suite runs against the live contracts.
- .env.example: ELYSIUM_RPC_URL.

Verified 2026-11-10: 11/11 fork tests green on the public RPC; a dry run of
the deploy script on Elysium with a throwaway key estimates 5.6M gas
(≈0.006 HYPE); unit tests and check-deployed-sources.sh pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The app checks its Uniswap v4 config against contracts/deployments/launchpad-<chain>.json
for every chain key. This records Elysium's v4 addresses, quotes and the expected
factory/locker addresses (deployer nonce 0) ahead of the deploy, marked NOT DEPLOYED;
the deploy fills in the block, tx and verification and adds it to deployed.lock.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
LaunchFactory 0x8155…de72 and LaunchLocker 0xcd16…842a on Elysium (99901),
from the deployer's nonce-0 transaction 0x9ba554e2…c881e: the same addresses as
Base, Robinhood Chain and Arc. Unchanged src/LaunchFactory.sol. 4,308,648 gas at
0.50075 gwei ≈ 0.00216 HYPE. The deployer was funded through Relay from its own
Base balance, so it signed nothing on Elysium before the deploy.

- deployments/launchpad-elysium.json: LIVE, block, tx, verification.
- Bytecode, checked on-chain: the executable code of the factory and locker
  equals Base's and Robinhood Chain's (Uniswap v4 immutables aside). The
  embedded solc metadata hash matches the Arc build, not the 2026-09-06 one, as
  it already did on Arc.
- Verified on the Elysium explorer: script/verify.sh elysium (its Etherscan-
  compatible API answers scripts; the pages sit behind a bot checkpoint).
  Sourcify lists Elysium testnet only so far.
- docs/LAUNCHPAD.md and the README deployments table name Elysium. The README
  says the site does not offer Elysium yet; the site copy comes with the switch-on.
- the fork suite passed 11/11 right before the broadcast and again against the
  live deployment.

Not in this commit: adding the record to contracts/deployed.lock. The PR guard
blocks any change to the lock by design, so that is its own commit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@kevincodex1
kevincodex1 merged commit f1dcfaa into main Nov 10, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant