feat: SVM routes tooling (#4521)
### Description <!-- What's included in this PR? --> ### Drive-by changes <!-- Are there any minor or drive-by changes also included? --> ### 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 --> ### Testing <!-- What kind of testing have these changes undergone? None/Manual/Unit Tests -->pull/4523/head
parent
60ab32e884
commit
daa9cbc41c
@ -0,0 +1,33 @@ |
||||
import { ethers } from 'ethers'; |
||||
|
||||
import { |
||||
ChainMap, |
||||
RouterConfig, |
||||
TokenRouterConfig, |
||||
TokenType, |
||||
} from '@hyperlane-xyz/sdk'; |
||||
|
||||
import { DEPLOYER } from '../../owners.js'; |
||||
|
||||
export const getEthereumEclipseTETHWarpConfig = async ( |
||||
routerConfig: ChainMap<RouterConfig>, |
||||
): Promise<ChainMap<TokenRouterConfig>> => { |
||||
// @ts-ignore - foreignDeployment configs don't conform to the TokenRouterConfig
|
||||
const eclipsemainnet: TokenRouterConfig = { |
||||
type: TokenType.synthetic, |
||||
foreignDeployment: 'BJa3fPvvjKx8gRCWunoSrWBbsmieub37gsGpjp4BfTfW', |
||||
gas: 300_000, |
||||
}; |
||||
|
||||
const ethereum: TokenRouterConfig = { |
||||
...routerConfig.ethereum, |
||||
type: TokenType.collateral, |
||||
interchainSecurityModule: ethers.constants.AddressZero, |
||||
token: '0x19e099B7aEd41FA52718D780dDA74678113C0b32', |
||||
}; |
||||
|
||||
return { |
||||
eclipsemainnet, |
||||
ethereum, |
||||
}; |
||||
}; |
@ -0,0 +1,34 @@ |
||||
import { ethers } from 'ethers'; |
||||
|
||||
import { |
||||
ChainMap, |
||||
RouterConfig, |
||||
TokenRouterConfig, |
||||
TokenType, |
||||
} from '@hyperlane-xyz/sdk'; |
||||
|
||||
import { tokens } from '../../../../../src/config/warp.js'; |
||||
import { DEPLOYER } from '../../owners.js'; |
||||
|
||||
export const getEthereumEclipseUSDCWarpConfig = async ( |
||||
routerConfig: ChainMap<RouterConfig>, |
||||
): Promise<ChainMap<TokenRouterConfig>> => { |
||||
// @ts-ignore - foreignDeployment configs don't conform to the TokenRouterConfig
|
||||
const eclipsemainnet: TokenRouterConfig = { |
||||
type: TokenType.synthetic, |
||||
foreignDeployment: 'D6k6T3G74ij6atCtBiWBs5TbFa1hFVcrFUSGZHuV7q3Z', |
||||
gas: 300_000, |
||||
}; |
||||
|
||||
const ethereum: TokenRouterConfig = { |
||||
...routerConfig.ethereum, |
||||
type: TokenType.collateral, |
||||
interchainSecurityModule: ethers.constants.AddressZero, |
||||
token: tokens.ethereum.USDC, |
||||
}; |
||||
|
||||
return { |
||||
eclipsemainnet, |
||||
ethereum, |
||||
}; |
||||
}; |
Loading…
Reference in new issue