Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ezeth staging config Getter #5363

Merged
merged 40 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from 35 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
2b36963
Split safes and tokens to separate environments (staging and prod). A…
ltyu Dec 26, 2024
0f9578a
Revert "Split safes and tokens to separate environments (staging and …
ltyu Jan 2, 2025
4a37858
Move staging safes
ltyu Jan 2, 2025
a17a882
Merge branch 'main' into ltyu/deploy-pzEth-staging
ltyu Jan 10, 2025
a7bbd52
Revert "Move staging safes"
ltyu Jan 10, 2025
e8ea443
Add getRenzoEZETHWarpConfigGenerator
ltyu Jan 10, 2025
f46f2df
Move functions around in attempt to reduce diffs
ltyu Jan 10, 2025
5ef2b24
Move functions around in attempt to reduce diffs
ltyu Jan 10, 2025
93caee9
Revert "Move functions around in attempt to reduce diffs"
ltyu Jan 10, 2025
6c28235
Revert "Move functions around in attempt to reduce diffs"
ltyu Jan 10, 2025
31187ae
Export chainsToDeploy
ltyu Jan 10, 2025
5ed5086
Add Staging config generator
ltyu Jan 10, 2025
9bad3e8
Fix conflicts - ezEth config
ltyu Jan 29, 2025
455873c
Delete extra space
ltyu Jan 29, 2025
60a8ab5
Move execution to bottom of file
ltyu Jan 29, 2025
7fd71ea
Ready up the Safes
ltyu Jan 29, 2025
a144399
Merge remote-tracking branch 'origin' into ltyu/ezEth-staging-config
ltyu Jan 30, 2025
951bca5
Add TODO
ltyu Jan 30, 2025
7788cbb
Export chainsToDeploy
ltyu Jan 30, 2025
99de52a
Paramaterize getRenzoHook to take in a safe address
ltyu Feb 3, 2025
1711fc5
Update pzEth to use paramaterized getRenzoHook
ltyu Feb 3, 2025
a914c17
Add ezEth staging warpId and Getter
ltyu Feb 3, 2025
f9d2a33
Fix conflicts
ltyu Feb 3, 2025
b74427d
Update type for ezEthSafes
ltyu Feb 3, 2025
fa68c5d
Fix conflicts
ltyu Feb 6, 2025
892fbff
Fix function name
ltyu Feb 6, 2025
c29d107
Parameterize lockbox
ltyu Feb 6, 2025
e876230
Linter: move optional variable higher
ltyu Feb 7, 2025
1608450
Change getter name
ltyu Feb 7, 2025
cb025a4
Update lockbox variable name
ltyu Feb 7, 2025
e2e7a42
Rename getter filename
ltyu Feb 7, 2025
7d9b87b
Rename lockbox var name
ltyu Feb 7, 2025
134290e
Rename getter filename
ltyu Feb 7, 2025
26ead1a
rename lockbox name
ltyu Feb 7, 2025
e61ec64
Rename lockbox name
ltyu Feb 7, 2025
3c9f517
Up Registry version
ltyu Feb 7, 2025
41a20a3
Update package.json
ltyu Feb 7, 2025
3a8ccad
Use getRegistry from CLI
ltyu Feb 7, 2025
69d47a8
Update package.json
ltyu Feb 7, 2025
80e70a6
Update yarn.lock
ltyu Feb 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import {
ltyu marked this conversation as resolved.
Show resolved Hide resolved
chainsToDeploy,
getRenzoEZETHWarpConfigGenerator,
} from './getRenzoEZETHWarpConfig.js';

const xERC20: Record<(typeof chainsToDeploy)[number], string> = {
arbitrum: '0x585afea249031Ea4168A379F664e91dFc5F77E7D',
optimism: '0x585afea249031Ea4168A379F664e91dFc5F77E7D',
base: '0x585afea249031Ea4168A379F664e91dFc5F77E7D',
blast: '0x585afea249031Ea4168A379F664e91dFc5F77E7D',
bsc: '0x585afea249031Ea4168A379F664e91dFc5F77E7D',
mode: '0x585afea249031Ea4168A379F664e91dFc5F77E7D',
linea: '0x5EA461E19ba6C002b7024E4A2e9CeFe79a47d3bB',
ethereum: '0x585afea249031Ea4168A379F664e91dFc5F77E7D',
fraxtal: '0x585afea249031Ea4168A379F664e91dFc5F77E7D',
zircuit: '0x585afea249031Ea4168A379F664e91dFc5F77E7D',
taiko: '0x585afea249031Ea4168A379F664e91dFc5F77E7D',
sei: '0x585afea249031Ea4168A379F664e91dFc5F77E7D',
swell: '0x585afea249031Ea4168A379F664e91dFc5F77E7D',
};

export const ezEthSafes: Record<(typeof chainsToDeploy)[number], string> = {
arbitrum: '0xA9421c6F339eC414b7e77449986bE9C2Ae430C25',
optimism: '0xA9421c6F339eC414b7e77449986bE9C2Ae430C25',
base: '0xA9421c6F339eC414b7e77449986bE9C2Ae430C25',
blast: '0xA9421c6F339eC414b7e77449986bE9C2Ae430C25',
bsc: '0xA9421c6F339eC414b7e77449986bE9C2Ae430C25',
mode: '0xf40b75fb85C3bEc70D75A1B45ef08FC48Db61115',
linea: '0xA9421c6F339eC414b7e77449986bE9C2Ae430C25',
ethereum: '0xA9421c6F339eC414b7e77449986bE9C2Ae430C25',
fraxtal: '0xf40b75fb85C3bEc70D75A1B45ef08FC48Db61115',
zircuit: '0xf40b75fb85C3bEc70D75A1B45ef08FC48Db61115',
taiko: '0x31FF35F84ADB120DbE089D190F03Ac74731Ae83F',
sei: '0xa30FF77d30Eb2d785f574344B4D11CAAe1949807',
swell: '0xf40b75fb85C3bEc70D75A1B45ef08FC48Db61115',
};

const xERC20StagingLockbox = '0x74c8290836612e6251E49e8f3198fdD80C4DbEB8';
export const getRenzoEZETHSTAGEWarpConfig = getRenzoEZETHWarpConfigGenerator(
ezEthSafes,
xERC20,
xERC20StagingLockbox,
);
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function getRenzoHook(
const lockboxChain = 'ethereum';
// over the default 100k to account for xerc20 gas + ISM overhead over the default ISM https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/49f41d9759fd515bfd89e6e22e799c41b27b4119/typescript/sdk/src/router/GasRouterDeployer.ts#L14
const warpRouteOverheadGas = 200_000;
const lockbox = '0xC8140dA31E6bCa19b287cC35531c2212763C2059';
const xERC20ProductionLockbox = '0xC8140dA31E6bCa19b287cC35531c2212763C2059';
const xERC20: Record<(typeof chainsToDeploy)[number], string> = {
arbitrum: '0x2416092f143378750bb29b79eD961ab195CcEea5',
optimism: '0x2416092f143378750bb29b79eD961ab195CcEea5',
Expand Down Expand Up @@ -298,6 +298,7 @@ const existingProxyAdmins: ChainMap<{ address: string; owner: string }> = {
export function getRenzoEZETHWarpConfigGenerator(
ezEthSafes: Record<string, string>,
xERC20: Record<(typeof chainsToDeploy)[number], string>,
lockbox: string,
ltyu marked this conversation as resolved.
Show resolved Hide resolved
existingProxyAdmins?: ChainMap<{ address: string; owner: string }>,
) {
return async (): Promise<ChainMap<HypTokenRouterConfig>> => {
Expand Down Expand Up @@ -414,6 +415,7 @@ export function getRenzoEZETHWarpConfigGenerator(
export const getRenzoEZETHWarpConfig = getRenzoEZETHWarpConfigGenerator(
ezEthSafes,
xERC20,
xERC20ProductionLockbox,
existingProxyAdmins,
);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export enum WarpRouteIds {
Ancient8EthereumUSDC = 'USDC/ancient8-ethereum',
ArbitrumBaseBlastBscEthereumFraxtalLineaModeOptimismSeiSwellTaikoZircuitEZETH = 'EZETH/arbitrum-base-blast-bsc-ethereum-fraxtal-linea-mode-optimism-sei-swell-taiko-zircuit',
ArbitrumBaseBlastBscEthereumFraxtalLineaModeOptimismSeiSwellTaikoZircuitEZETHSTAGE = 'EZETHSTAGE/arbitrum-base-blast-bsc-ethereum-fraxtal-linea-mode-optimism-sei-swell-taiko-zircuit',
ArbitrumBaseEnduranceUSDC = 'USDC/arbitrum-base-endurance',
ArbitrumEthereumZircuitAMPHRETH = 'AMPHRETH/arbitrum-ethereum-zircuit',
ArbitrumNeutronEclip = 'ECLIP/arbitrum-neutron',
Expand Down
3 changes: 3 additions & 0 deletions typescript/infra/config/warp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import { getEthereumVictionUSDTWarpConfig } from './environments/mainnet3/warp/c
import { getEthereumZircuitRe7LRTWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumZircuitRe7LRTWarpConfig.js';
import { getInevmInjectiveINJWarpConfig } from './environments/mainnet3/warp/configGetters/getInevmInjectiveINJWarpConfig.js';
import { getMantapacificNeutronTiaWarpConfig } from './environments/mainnet3/warp/configGetters/getMantapacificNeutronTiaWarpConfig.js';
import { getRenzoEZETHSTAGEWarpConfig } from './environments/mainnet3/warp/configGetters/getRenzoEZETHSTAGEWarpConfig.js';
import {
getRenzoEZETHWarpConfig,
getRenzoGnosisSafeBuilderStrategyConfig,
Expand All @@ -64,6 +65,8 @@ export const warpConfigGetterMap: Record<string, WarpConfigGetter> = {
[WarpRouteIds.ArbitrumNeutronTIA]: getArbitrumNeutronTiaWarpConfig,
[WarpRouteIds.ArbitrumBaseBlastBscEthereumFraxtalLineaModeOptimismSeiSwellTaikoZircuitEZETH]:
getRenzoEZETHWarpConfig,
[WarpRouteIds.ArbitrumBaseBlastBscEthereumFraxtalLineaModeOptimismSeiSwellTaikoZircuitEZETHSTAGE]:
getRenzoEZETHSTAGEWarpConfig,
[WarpRouteIds.InevmInjectiveINJ]: getInevmInjectiveINJWarpConfig,
[WarpRouteIds.ArbitrumAvalancheBaseFlowmainnetFormOptimismSolanamainnetWorldchainTRUMP]:
getTRUMPWarpConfig,
Expand Down
Loading