mirror of
https://github.com/Twigpine/openlaunch.git
synced 2026-11-10 13:11:33 -10:00
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]>
67 lines
3.9 KiB
Bash
Executable File
67 lines
3.9 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Verify the launchpad contracts on the block explorers (source already exact-matched on Sourcify).
|
|
# Basescan (Base): needs an Etherscan API key (one key works for every chain on Etherscan V2):
|
|
# export ETHERSCAN_API_KEY=... (or put ETHERSCAN_API_KEY= in contracts/.env)
|
|
# Blockscout (Robinhood/Base/Arc): keyless.
|
|
# Elysium explorer (Etherscan-compatible API under /explorer/api): keyless.
|
|
# Usage: script/verify.sh [base|robinhood|arc|elysium|all] (default: all)
|
|
set -euo pipefail
|
|
failed=0
|
|
cd "$(dirname "$0")/.."
|
|
[ -f .env ] && set -a && . ./.env && set +a
|
|
KEY="${ETHERSCAN_API_KEY:-${BASESCAN_API_KEY:-}}"
|
|
|
|
# The addresses are the same on every chain (deployer nonce 0). ARC_FACTORY / ARC_LOCKER override the Arc pair only, for an
|
|
# Arc deployment that landed elsewhere; Base and Robinhood always verify the live pair.
|
|
FACTORY=0x815542E8b392389A1389E22E588E4B62A67Ade72
|
|
LOCKER=0xcd1680D26922fcd9CabFbb8a56bA40C333fD842a
|
|
PERMIT2=0x000000000022D473030F116dDEE9F6B43aC78BA3
|
|
# Uniswap v4 per chain (must match script/DeployLaunchFactory.s.sol)
|
|
BASE_PM=0x498581fF718922c3f8e6A244956aF099B2652b2b
|
|
BASE_POSM=0x7C5f5A4bBd8fD63184577525326123B519429bDc
|
|
RH_PM=0x8366a39CC670B4001A1121B8F6A443A643e40951
|
|
RH_POSM=0x58daec3116aae6d93017baaea7749052e8a04fa7
|
|
ARC_PM=0x8366a39CC670B4001A1121B8F6A443A643e40951
|
|
ARC_POSM=0x6049c9a0e26405c0985f9e3685c87d0ae917f82b
|
|
ELY_PM=0xE2e105d3F7209A9DA11f83cCf3E7398a753823F1
|
|
ELY_POSM=0x1d1C51b9d07fD27d36412A2b66CC23D19Eb3E518
|
|
|
|
common=(--watch --compiler-version 0.8.26 --evm-version cancun --num-of-optimizations 200 --via-ir)
|
|
|
|
verify_pair() { # <chain-id> <pm> <posm> <verifier args...> (FACTORY_SRC: the factory contract; Arc deploys LaunchFactoryArc)
|
|
local chain=$1 pm=$2 posm=$3; shift 3
|
|
local src=${FACTORY_SRC:-src/LaunchFactory.sol:LaunchFactory}
|
|
local factory=${VERIFY_FACTORY:-$FACTORY} locker=${VERIFY_LOCKER:-$LOCKER}
|
|
local fargs largs
|
|
fargs=$(cast abi-encode "constructor(address,address,address)" "$pm" "$posm" "$PERMIT2")
|
|
largs=$(cast abi-encode "constructor(address)" "$posm")
|
|
echo "== chain $chain: ${src##*:}"
|
|
forge verify-contract --chain "$chain" "$factory" "$src" --constructor-args "$fargs" "${common[@]}" "$@" || { echo "!! ${src##*:} on chain $chain NOT verified"; failed=$((failed + 1)); }
|
|
echo "== chain $chain: LaunchLocker"
|
|
forge verify-contract --chain "$chain" "$locker" src/LaunchLocker.sol:LaunchLocker --constructor-args "$largs" "${common[@]}" "$@" || { echo "!! LaunchLocker on chain $chain NOT verified"; failed=$((failed + 1)); }
|
|
}
|
|
|
|
target=${1:-all}
|
|
if [[ $target == base || $target == all ]]; then
|
|
if [[ -z $KEY ]]; then echo "Basescan: set ETHERSCAN_API_KEY (free at etherscan.io → API keys) — skipping"; else
|
|
verify_pair 8453 "$BASE_PM" "$BASE_POSM" --verifier etherscan --etherscan-api-key "$KEY"
|
|
fi
|
|
echo "== Base Blockscout (keyless)"
|
|
verify_pair 8453 "$BASE_PM" "$BASE_POSM" --verifier blockscout --verifier-url https://base.blockscout.com/api/
|
|
fi
|
|
if [[ $target == robinhood || $target == all ]]; then
|
|
echo "== Robinhood Chain Blockscout (keyless)"
|
|
verify_pair 4663 "$RH_PM" "$RH_POSM" --verifier blockscout --verifier-url https://robinhoodchain.blockscout.com/api/
|
|
fi
|
|
if [[ $target == arc || $target == all ]]; then
|
|
echo "== Arc Blockscout (keyless)"
|
|
VERIFY_FACTORY=${ARC_FACTORY:-} VERIFY_LOCKER=${ARC_LOCKER:-} FACTORY_SRC=src/LaunchFactoryArc.sol:LaunchFactoryArc verify_pair 5042 "$ARC_PM" "$ARC_POSM" --verifier blockscout --verifier-url https://explorer.arc.io/api/
|
|
fi
|
|
if [[ $target == elysium || $target == all ]]; then
|
|
# the explorer's pages sit behind a bot checkpoint, but its Etherscan-compatible API answers scripts
|
|
echo "== Elysium explorer (keyless)"
|
|
verify_pair 99901 "$ELY_PM" "$ELY_POSM" --verifier blockscout --verifier-url https://elysium.kinetiq.xyz/explorer/api/
|
|
fi
|
|
if [ "$failed" -gt 0 ]; then echo "$failed verification(s) failed"; exit 1; fi
|
|
echo "all verifications submitted"
|