Skip to content

Commit

Permalink
feat(infra): add rstETH/ethereum-zircuit warp route config (#5129)
Browse files Browse the repository at this point in the history
### Description

<!--
What's included in this PR?
-->
Adds rstETH/ethereum-zircuit warp route config

### Drive-by changes

<!--
Are there any minor or drive-by changes also included?
-->

Add dummy soon owner

### Related issues

<!--
- Fixes #[issue number here]
-->

### Backward compatibility

Yes

<!--
Are these changes backward compatible? Are there any infrastructure
implications, e.g. changes that would prohibit deploying older commits
using this infra tooling?

Yes/No
-->

### Testing

<!--
What kind of testing have these changes undergone?

None/Manual/Unit Tests
-->

CLI testing
  • Loading branch information
Xaroz authored Jan 10, 2025
1 parent 65e7d72 commit fc80df5
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion .registryrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
690e04993fc72d57b8008224c69d52245495a6c0
115d44069109f3ef43caeed5632f6255d9a3390a
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"

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 @@ -42,6 +42,7 @@ 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',
EthereumFormWBTC = 'WBTC/ethereum-form',
EthereumFormWSTETH = 'WSTETH/ethereum-form',
BaseFormAIXBT = 'AIXBT/base-form',
Expand Down
2 changes: 2 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 { 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 @@ -92,6 +93,7 @@ export const warpConfigGetterMap: Record<string, WarpConfigGetter> = {
[WarpRouteIds.AppchainBaseUSDC]: getAppChainBaseUSDCWarpConfig,
[WarpRouteIds.BobaBsquaredSwellUBTC]: getBobaBsquaredSwellUBTCWarpConfig,
[WarpRouteIds.EthereumZircuitRe7LRT]: getEthereumZircuitRe7LRTWarpConfig,
[WarpRouteIds.EthereumZircuitRstETH]: getEthereumZircuitRstETHWarpConfig,
[WarpRouteIds.EthereumFormWBTC]: getEthereumFormWBTCWarpConfig,
[WarpRouteIds.EthereumFormWSTETH]: getEthereumFormWSTETHWarpConfig,
[WarpRouteIds.BaseFormAIXBT]: getBaseFormAIXBTWarpConfig,
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',
WSTETH: '0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0',
},
sei: {
Expand Down

0 comments on commit fc80df5

Please sign in to comment.