diff --git a/typescript/cli/package.json b/typescript/cli/package.json index 1d0e23a2b..eca751c13 100644 --- a/typescript/cli/package.json +++ b/typescript/cli/package.json @@ -5,7 +5,7 @@ "dependencies": { "@aws-sdk/client-kms": "^3.577.0", "@aws-sdk/client-s3": "^3.577.0", - "@hyperlane-xyz/registry": "4.1.0", + "@hyperlane-xyz/registry": "4.3.2", "@hyperlane-xyz/sdk": "5.2.0", "@hyperlane-xyz/utils": "5.2.0", "@inquirer/prompts": "^3.0.0", diff --git a/typescript/infra/config/environments/mainnet3/warp/configGetters/getEthereumEclipseTETHWarpConfig.ts b/typescript/infra/config/environments/mainnet3/warp/configGetters/getEthereumEclipseTETHWarpConfig.ts new file mode 100644 index 000000000..57ed42891 --- /dev/null +++ b/typescript/infra/config/environments/mainnet3/warp/configGetters/getEthereumEclipseTETHWarpConfig.ts @@ -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, +): Promise> => { + // @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, + }; +}; diff --git a/typescript/infra/config/environments/mainnet3/warp/configGetters/getEthereumEclipseUSDCWarpConfig.ts b/typescript/infra/config/environments/mainnet3/warp/configGetters/getEthereumEclipseUSDCWarpConfig.ts new file mode 100644 index 000000000..1d39abb12 --- /dev/null +++ b/typescript/infra/config/environments/mainnet3/warp/configGetters/getEthereumEclipseUSDCWarpConfig.ts @@ -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, +): Promise> => { + // @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, + }; +}; diff --git a/typescript/infra/config/warp.ts b/typescript/infra/config/warp.ts index 8f2ea0083..9f1e00879 100644 --- a/typescript/infra/config/warp.ts +++ b/typescript/infra/config/warp.ts @@ -11,6 +11,8 @@ import { EnvironmentConfig } from '../src/config/environment.js'; import { getAncient8EthereumUSDCWarpConfig } from './environments/mainnet3/warp/configGetters/getAncient8EthereumUSDCWarpConfig.js'; import { getArbitrumNeutronEclipWarpConfig } from './environments/mainnet3/warp/configGetters/getArbitrumNeutronEclipWarpConfig.js'; import { getArbitrumNeutronTiaWarpConfig } from './environments/mainnet3/warp/configGetters/getArbitrumNeutronTiaWarpConfig.js'; +import { getEthereumEclipseTETHWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumEclipseTETHWarpConfig.js'; +import { getEthereumEclipseUSDCWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumEclipseUSDCWarpConfig.js'; import { getEthereumInevmUSDCWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumInevmUSDCWarpConfig.js'; import { getEthereumInevmUSDTWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumInevmUSDTWarpConfig.js'; import { getEthereumVictionETHWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumVictionETHWarpConfig.js'; @@ -27,6 +29,8 @@ export enum WarpRouteIds { ArbitrumNeutronTIA = 'TIA/arbitrum-neutron', EthereumInevmUSDC = 'USDC/ethereum-inevm', EthereumInevmUSDT = 'USDT/ethereum-inevm', + EthereumEclipseTETH = 'tETH/eclipsemainnet-ethereum', + EthereumEclipseUSDC = 'USDC/eclipsemainnet-ethereum-solanamainnet', EthereumVictionETH = 'ETH/ethereum-viction', EthereumVictionUSDC = 'USDC/ethereum-viction', EthereumVictionUSDT = 'USDT/ethereum-viction', @@ -56,6 +60,8 @@ export const warpConfigGetterMap: Record< [WarpRouteIds.EthereumVictionUSDC]: getEthereumVictionUSDCWarpConfig, [WarpRouteIds.EthereumVictionUSDT]: getEthereumVictionUSDTWarpConfig, [WarpRouteIds.MantapacificNeutronTIA]: getMantapacificNeutronTiaWarpConfig, + [WarpRouteIds.EthereumEclipseTETH]: getEthereumEclipseTETHWarpConfig, + [WarpRouteIds.EthereumEclipseUSDC]: getEthereumEclipseUSDCWarpConfig, }; export async function getWarpConfig( diff --git a/typescript/infra/package.json b/typescript/infra/package.json index 9b4fc4362..3ac5dfb8b 100644 --- a/typescript/infra/package.json +++ b/typescript/infra/package.json @@ -14,7 +14,7 @@ "@ethersproject/providers": "^5.7.2", "@google-cloud/secret-manager": "^5.5.0", "@hyperlane-xyz/helloworld": "5.2.0", - "@hyperlane-xyz/registry": "4.1.0", + "@hyperlane-xyz/registry": "4.3.2", "@hyperlane-xyz/sdk": "5.2.0", "@hyperlane-xyz/utils": "5.2.0", "@inquirer/prompts": "^5.3.8", diff --git a/typescript/widgets/package.json b/typescript/widgets/package.json index 96fab9262..01e187ff9 100644 --- a/typescript/widgets/package.json +++ b/typescript/widgets/package.json @@ -7,7 +7,7 @@ "react-dom": "^18" }, "dependencies": { - "@hyperlane-xyz/registry": "4.1.0", + "@hyperlane-xyz/registry": "4.3.2", "@hyperlane-xyz/sdk": "5.2.0" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index 2f9482755..b05360c35 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7590,7 +7590,7 @@ __metadata: "@aws-sdk/client-s3": "npm:^3.577.0" "@ethersproject/abi": "npm:*" "@ethersproject/providers": "npm:*" - "@hyperlane-xyz/registry": "npm:4.1.0" + "@hyperlane-xyz/registry": "npm:4.3.2" "@hyperlane-xyz/sdk": "npm:5.2.0" "@hyperlane-xyz/utils": "npm:5.2.0" "@inquirer/prompts": "npm:^3.0.0" @@ -7732,7 +7732,7 @@ __metadata: "@ethersproject/providers": "npm:^5.7.2" "@google-cloud/secret-manager": "npm:^5.5.0" "@hyperlane-xyz/helloworld": "npm:5.2.0" - "@hyperlane-xyz/registry": "npm:4.1.0" + "@hyperlane-xyz/registry": "npm:4.3.2" "@hyperlane-xyz/sdk": "npm:5.2.0" "@hyperlane-xyz/utils": "npm:5.2.0" "@inquirer/prompts": "npm:^5.3.8" @@ -7800,6 +7800,16 @@ __metadata: languageName: node linkType: hard +"@hyperlane-xyz/registry@npm:4.3.2": + version: 4.3.2 + resolution: "@hyperlane-xyz/registry@npm:4.3.2" + dependencies: + yaml: "npm:2.4.5" + zod: "npm:^3.21.2" + checksum: 7b1ff07074e4499f74a4c75dbbf0b7e641b3610bfc2a67785db724748d887d7b03c9dc9738b790cb56e008d6453789432c863f3b251498f77c931f196b9dab86 + languageName: node + linkType: hard + "@hyperlane-xyz/sdk@npm:5.2.0, @hyperlane-xyz/sdk@workspace:typescript/sdk": version: 0.0.0-use.local resolution: "@hyperlane-xyz/sdk@workspace:typescript/sdk" @@ -7874,7 +7884,7 @@ __metadata: version: 0.0.0-use.local resolution: "@hyperlane-xyz/widgets@workspace:typescript/widgets" dependencies: - "@hyperlane-xyz/registry": "npm:4.1.0" + "@hyperlane-xyz/registry": "npm:4.3.2" "@hyperlane-xyz/sdk": "npm:5.2.0" "@storybook/addon-essentials": "npm:^7.6.14" "@storybook/addon-interactions": "npm:^7.6.14"