Skip to content

chore(deploy): add Avalanche and HyperEVM fee collector networks - #17

Open
FabienCoutant wants to merge 7 commits into
devfrom
chore/side-chain-fee-collectors
Open

FabienCoutant wants to merge 7 commits into
devfrom
chore/side-chain-fee-collectors

Conversation

@FabienCoutant

Copy link
Copy Markdown
Contributor

Summary

Adds Avalanche and HyperEVM as deploy networks for the SideChainFeeCollector, and updates the deployment docs.

  • hardhat.config.ts and utils/getRpcURL.ts: avalanche (Alchemy) and hyperevm (public Hyperliquid RPC) networks.
  • deploy/config/avalanche and deploy/config/hyperevm: fee collector config only (AccessManager, DAO, USDp, bridgeable token, Base as main chain and the Base MainFeeDistributor as destination receiver). No staking config: sPRL2 stays on mainnet and Base only.
  • docs/Deployment.md: lists the Avalanche (0x7d2C…07c5) and HyperEVM (0x2f77…8574) SideChainFeeCollectors, and fixes the mainnet addresses of the legacy sPRL2 and of sPRL2Migrator.

The first five commits come from deploy/tokenomics-v2 and are shared with #16 (Base network support, sPRL2Migrator deploy script, SetSPRL2V2Role script, deployment docs). The docs commit builds on them. They drop out of this diff once #16 is merged, leaving the last two commits.

- getLzEidReceiver: map "base" to EndpointId.BASE_V2_MAINNET (30184)
- ConfigData.tokens: add "usdp" key (kept "par" for history)
- base config: PRL/WETH pool, USDp + lz-USDp, isMainChainFeeDistributor
- mainnet config: repoint side-chain fee routing to base/USDp
- move arbiSepolia config out of base/
Wires the migrator to the canonical sPRL2 (legacy) and sPRL2V2
deployments read from the deployment records (format-agnostic).
Mirrors SetSPRL2Role for sPRL2V2: GUARDIAN (pause/unpause) and
GOVERNOR (updateFeeReceiver/updateStartPenaltyPercentage/
updateTimeLockDuration/recoverERC20) selector groups.
Add Mainnet (Ethereum + Base) deployed addresses; drop token and
shared-infra addresses (documented in their own repositories).
sPRL1 was already deployed on Base (0x01fA35fDE0E813e2D6687660a74A313d8D922E48);
the run that also deployed sPRL2V2/fees redeployed a redundant one. Reference
the existing pre-audit sPRL1 instead.
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