-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: artela-base warp route configs (#5169)
### Description <!-- What's included in this PR? --> - Add `USDC/artela-base` warp route config - Add `WETH/artela-base` warp route config [Related registry PR](hyperlane-xyz/hyperlane-registry#488) ### Drive-by changes <!-- Are there any minor or drive-by changes also included? --> No ### Related issues <!-- - Fixes #[issue number here] --> ### Backward compatibility <!-- 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 --> Yes ### Testing <!-- What kind of testing have these changes undergone? None/Manual/Unit Tests --> CLI
- Loading branch information
Showing
9 changed files
with
91 additions
and
3 deletions.
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 Artela/Base USDC and WETH warp route 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 @@ | ||
195c073c3c34b234c8d0aed2a16962a2d3945354 | ||
47aba98bdd78ecb5a3f756dca6dc2e28325bab43 |
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
38 changes: 38 additions & 0 deletions
38
...ript/infra/config/environments/mainnet3/warp/configGetters/getArtelaBaseUSDCWarpConfig.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,38 @@ | ||
import { ethers } from 'ethers'; | ||
|
||
import { ChainMap, HypTokenRouterConfig, TokenType } from '@hyperlane-xyz/sdk'; | ||
|
||
import { | ||
RouterConfigWithoutOwner, | ||
tokens, | ||
} from '../../../../../src/config/warp.js'; | ||
|
||
const artelaOwner = '0x801e8135867D65e742eb070A9fC0aD9c2f69B4cd'; | ||
const baseOwner = '0x801e8135867D65e742eb070A9fC0aD9c2f69B4cd'; | ||
|
||
const ISM_CONFIG = ethers.constants.AddressZero; // Default ISM | ||
|
||
export const getArtelaBaseUSDCWarpConfig = async ( | ||
routerConfig: ChainMap<RouterConfigWithoutOwner>, | ||
): Promise<ChainMap<HypTokenRouterConfig>> => { | ||
const artela: HypTokenRouterConfig = { | ||
...routerConfig.artela, | ||
owner: artelaOwner, | ||
type: TokenType.synthetic, | ||
symbol: 'USDC.a', | ||
interchainSecurityModule: ISM_CONFIG, | ||
}; | ||
|
||
const base: HypTokenRouterConfig = { | ||
...routerConfig.base, | ||
owner: baseOwner, | ||
type: TokenType.collateral, | ||
token: tokens.base.USDC, | ||
interchainSecurityModule: ISM_CONFIG, | ||
}; | ||
|
||
return { | ||
artela, | ||
base, | ||
}; | ||
}; |
38 changes: 38 additions & 0 deletions
38
...ript/infra/config/environments/mainnet3/warp/configGetters/getArtelaBaseWETHWarpConfig.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,38 @@ | ||
import { ethers } from 'ethers'; | ||
|
||
import { ChainMap, HypTokenRouterConfig, TokenType } from '@hyperlane-xyz/sdk'; | ||
|
||
import { | ||
RouterConfigWithoutOwner, | ||
tokens, | ||
} from '../../../../../src/config/warp.js'; | ||
|
||
const artelaOwner = '0x801e8135867D65e742eb070A9fC0aD9c2f69B4cd'; | ||
const baseOwner = '0x801e8135867D65e742eb070A9fC0aD9c2f69B4cd'; | ||
|
||
const ISM_CONFIG = ethers.constants.AddressZero; // Default ISM | ||
|
||
export const getArtelaBaseWETHWarpConfig = async ( | ||
routerConfig: ChainMap<RouterConfigWithoutOwner>, | ||
): Promise<ChainMap<HypTokenRouterConfig>> => { | ||
const artela: HypTokenRouterConfig = { | ||
...routerConfig.artela, | ||
owner: artelaOwner, | ||
type: TokenType.synthetic, | ||
symbol: 'WETH.a', | ||
interchainSecurityModule: ISM_CONFIG, | ||
}; | ||
|
||
const base: HypTokenRouterConfig = { | ||
...routerConfig.base, | ||
owner: baseOwner, | ||
type: TokenType.collateral, | ||
token: tokens.base.WETH, | ||
interchainSecurityModule: ISM_CONFIG, | ||
}; | ||
|
||
return { | ||
artela, | ||
base, | ||
}; | ||
}; |
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
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