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(infra): add rstETH/ethereum-zircuit warp route config #5129

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
5 changes: 5 additions & 0 deletions .changeset/rare-windows-deny.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/infra': minor
---

Add rstETH/ethereum-zircuit warp config
12 changes: 12 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ethereum:
type: collateral
token: "0x7a4EffD87C2f3C55CA251080b1343b605f327E3a"
owner: "0xDA0d054265bB30F4f32C92066428FE57513E7ee1"
mailbox: "0xc005dc82818d67AF737725bD4bf75435d065D239"
interchainSecurityModule: "0x0000000000000000000000000000000000000000"
zircuit:
type: synthetic
owner: "0xA1895dF8AE7b7678E82E76b167A24c82Fb83ec9A"
mailbox: "0xc2FbB9411186AB3b1a6AFCCA702D1a80B48b197c"
interchainSecurityModule: "0x0000000000000000000000000000000000000000"

3 changes: 3 additions & 0 deletions typescript/infra/config/environments/mainnet3/owners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,4 +243,7 @@ export const chainOwners: ChainMap<OwnableConfig> = {
osmosis: {
owner: 'n/a - nothing owned here',
},
soon: {
owner: 'n/a - nothing owned here',
},
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { ethers } from 'ethers';

import { ChainMap, HypTokenRouterConfig, TokenType } from '@hyperlane-xyz/sdk';

import {
RouterConfigWithoutOwner,
tokens,
} from '../../../../../src/config/warp.js';

const RstETHSafes = {
ethereum: '0xDA0d054265bB30F4f32C92066428FE57513E7ee1',
zircuit: '0xA1895dF8AE7b7678E82E76b167A24c82Fb83ec9A',
};

const ISM_CONFIG = ethers.constants.AddressZero; // Default ISM

export const getEthereumZircuitRstETHWarpConfig = async (
routerConfig: ChainMap<RouterConfigWithoutOwner>,
): Promise<ChainMap<HypTokenRouterConfig>> => {
const ethereum: HypTokenRouterConfig = {
...routerConfig.ethereum,
owner: RstETHSafes.ethereum,
type: TokenType.collateral,
token: tokens.ethereum.rstETH,
interchainSecurityModule: ISM_CONFIG,
};

const zircuit: HypTokenRouterConfig = {
...routerConfig.zircuit,
owner: RstETHSafes.zircuit,
type: TokenType.synthetic,
interchainSecurityModule: ISM_CONFIG,
};

return {
ethereum,
zircuit,
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ export enum WarpRouteIds {
ArbitrumBaseBlastBscEthereumGnosisLiskMantleModeOptimismPolygonScrollZeroNetworkZoraMainnet = 'ETH/arbitrum-base-blast-bsc-ethereum-gnosis-lisk-mantle-mode-optimism-polygon-scroll-zeronetwork-zoramainnet',
AppchainBaseUSDC = 'USDC/appchain-base',
BobaBsquaredSwellUBTC = 'UBTC/boba-bsquared-swell',
EthereumZircuitRstETH = 'rstETH/ethereum-zircuit',
}
6 changes: 6 additions & 0 deletions typescript/infra/config/environments/testnet4/owners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@ export const owners: ChainMap<OwnableConfig> = {
]),
),
// [chainMetadata.solanadevnet.name]: SEALEVEL_DEPLOYER_ADDRESS,
eclipsetestnet: {
owner: 'n/a - nothing owned here',
},
solanatestnet: {
owner: 'n/a - nothing owned here',
},
};
2 changes: 2 additions & 0 deletions typescript/infra/config/warp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import { getEthereumVictionETHWarpConfig } from './environments/mainnet3/warp/co
import { getEthereumVictionUSDCWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumVictionUSDCWarpConfig.js';
import { getEthereumVictionUSDTWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumVictionUSDTWarpConfig.js';
import { getEthereumZircuitRe7LRTWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumZircuitRe7LRTWarpConfig.js';
import { getEthereumZircuitRstETHWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumZircuitRstETHWarpConfig.js';
import { getInevmInjectiveINJWarpConfig } from './environments/mainnet3/warp/configGetters/getInevmInjectiveINJWarpConfig.js';
import { getMantapacificNeutronTiaWarpConfig } from './environments/mainnet3/warp/configGetters/getMantapacificNeutronTiaWarpConfig.js';
import { getRenzoEZETHWarpConfig } from './environments/mainnet3/warp/configGetters/getRenzoEZETHWarpConfig.js';
Expand Down Expand Up @@ -86,6 +87,7 @@ export const warpConfigGetterMap: Record<string, WarpConfigGetter> = {
[WarpRouteIds.AppchainBaseUSDC]: getAppChainBaseUSDCWarpConfig,
[WarpRouteIds.BobaBsquaredSwellUBTC]: getBobaBsquaredSwellUBTCWarpConfig,
[WarpRouteIds.EthereumZircuitRe7LRT]: getEthereumZircuitRe7LRTWarpConfig,
[WarpRouteIds.EthereumZircuitRstETH]: getEthereumZircuitRstETHWarpConfig,
};

export async function getWarpConfig(
Expand Down
1 change: 1 addition & 0 deletions typescript/infra/src/config/warp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const tokens: ChainMap<Record<string, Address>> = {
weETHs: '0x917cee801a67f933f2e6b33fc0cd1ed2d5909d88',
pumpBTCsei: '0xe9ebd666954B7F0B5B044704c86B126651f6235d',
Re7LRT: '0x84631c0d0081FDe56DeB72F6DE77abBbF6A9f93a',
rstETH: '0x7a4EffD87C2f3C55CA251080b1343b605f327E3a',
},
sei: {
fastUSD: '0x37a4dD9CED2b19Cfe8FAC251cd727b5787E45269',
Expand Down
Loading