-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(infra): add rstETH/ethereum-zircuit warp route config (#5129)
### 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
Showing
7 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@hyperlane-xyz/infra': minor | ||
--- | ||
|
||
Add rstETH/ethereum-zircuit warp config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
690e04993fc72d57b8008224c69d52245495a6c0 | ||
115d44069109f3ef43caeed5632f6255d9a3390a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
39 changes: 39 additions & 0 deletions
39
...fra/config/environments/mainnet3/warp/configGetters/getEthereumZircuitRstETHWarpConfig.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters