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: deploy PZETHSTAGE #5459

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
Expand Up @@ -4,7 +4,7 @@ import {
getRenzoGnosisSafeBuilderStrategyConfigGenerator,
} from './getRenzoEZETHWarpConfig.js';

const xERC20: Record<(typeof chainsToDeploy)[number], string> = {
const ezEthStage: Record<(typeof chainsToDeploy)[number], string> = {
arbitrum: '0x585afea249031Ea4168A379F664e91dFc5F77E7D',
optimism: '0x585afea249031Ea4168A379F664e91dFc5F77E7D',
base: '0x585afea249031Ea4168A379F664e91dFc5F77E7D',
Expand Down Expand Up @@ -40,11 +40,11 @@ export const ezEthSafes: Record<(typeof chainsToDeploy)[number], string> = {
berachain: '0xf013c8Be28421b050cca5bD95cc57Af49568e8be',
};

const xERC20StagingLockbox = '0x74c8290836612e6251E49e8f3198fdD80C4DbEB8';
const ezethStagingLockbox = '0x74c8290836612e6251E49e8f3198fdD80C4DbEB8';
export const getRenzoEZETHSTAGEWarpConfig = getRenzoEZETHWarpConfigGenerator(
ezEthSafes,
xERC20,
xERC20StagingLockbox,
ezEthStage,
ezethStagingLockbox,
);

export const getRenzoGnosisSafeBuilderStagingStrategyConfig =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ 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 xERC20ProductionLockbox = '0xC8140dA31E6bCa19b287cC35531c2212763C2059';
const xERC20: Record<(typeof chainsToDeploy)[number], string> = {
const ezEthProductionLockbox = '0xC8140dA31E6bCa19b287cC35531c2212763C2059';
const ezEth: Record<(typeof chainsToDeploy)[number], string> = {
arbitrum: '0x2416092f143378750bb29b79eD961ab195CcEea5',
optimism: '0x2416092f143378750bb29b79eD961ab195CcEea5',
base: '0x2416092f143378750bb29b79eD961ab195CcEea5',
Expand Down Expand Up @@ -442,8 +442,8 @@ export function getRenzoEZETHWarpConfigGenerator(

export const getRenzoEZETHWarpConfig = getRenzoEZETHWarpConfigGenerator(
ezEthSafes,
xERC20,
xERC20ProductionLockbox,
ezEth,
ezEthProductionLockbox,
existingProxyAdmins,
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import {
getRenzoHook,
} from './getRenzoEZETHWarpConfig.js';

const lockbox = '0xbC5511354C4A9a50DE928F56DB01DD327c4e56d5';
const xERC20 = '0x9cb41CD74D01ae4b4f640EC40f7A60cA1bCF83E7';
const pzEthProductionLockbox = '0xbC5511354C4A9a50DE928F56DB01DD327c4e56d5';
const pzEth = '0x9cb41CD74D01ae4b4f640EC40f7A60cA1bCF83E7';
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;
Expand Down Expand Up @@ -97,7 +97,7 @@ export const getRenzoPZETHWarpConfig = async (): Promise<
chain === lockboxChain
? TokenType.XERC20Lockbox
: TokenType.XERC20,
token: chain === lockboxChain ? lockbox : xERC20,
token: chain === lockboxChain ? pzEthProductionLockbox : pzEth,
owner: pzEthSafes[chain],
gas: warpRouteOverheadGas,
mailbox,
Expand Down
Loading