fix(infra): Comment out pzETH/ethereum-solana warp route in check (#4477)

### Description
- Comment out `pzETH/ethereum-solana` as it is causing the
`check-warp-deploy` cronjob to fail as the config has not been added to
registry

### Testing
Manual
pull/4405/merge
Mohammed Hussan 2 months ago committed by GitHub
parent 7f099419e3
commit 95f6421cd9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      typescript/infra/config/environments/mainnet3/warp/checkWarpDeploy.ts
  2. 34
      typescript/infra/config/environments/mainnet3/warp/configGetters/getEthereumSolanaPzETHWarpConfig.ts
  3. 3
      typescript/infra/config/warp.ts
  4. 4
      typescript/infra/scripts/agent-utils.ts

@ -4,7 +4,7 @@ import { environment } from '../chains.js';
export const checkWarpDeployConfig: CheckWarpDeployConfig = {
docker: {
repo: 'gcr.io/abacus-labs-dev/hyperlane-monorepo',
tag: '36f7e14-20240823-160646',
tag: '7ce7aef-20240912-090321',
},
namespace: environment,
cronSchedule: '0 15 * * *', // set to 3pm utc every day

@ -1,34 +0,0 @@
import { ethers } from 'ethers';
import {
ChainMap,
RouterConfig,
TokenRouterConfig,
TokenType,
} from '@hyperlane-xyz/sdk';
import { DEPLOYER } from '../../owners.js';
export const getEthereumSolanaPzETHWarpConfig = async (
routerConfig: ChainMap<RouterConfig>,
): Promise<ChainMap<TokenRouterConfig>> => {
// @ts-ignore - foreignDeployment configs don't conform to the TokenRouterConfig
const solana: TokenRouterConfig = {
type: TokenType.synthetic,
foreignDeployment: 'GiP8GwN1GsscVJvmKSD4muDEihRzZRa9mxnS1Toi64pa',
gas: 300_000,
};
const ethereum: TokenRouterConfig = {
...routerConfig.ethereum,
type: TokenType.collateral,
interchainSecurityModule: ethers.constants.AddressZero,
token: '0x8c9532a60e0e7c6bbd2b2c1303f63ace1c3e9811',
owner: DEPLOYER,
};
return {
solana,
ethereum,
};
};

@ -13,7 +13,6 @@ import { getArbitrumNeutronEclipWarpConfig } from './environments/mainnet3/warp/
import { getArbitrumNeutronTiaWarpConfig } from './environments/mainnet3/warp/configGetters/getArbitrumNeutronTiaWarpConfig.js';
import { getEthereumInevmUSDCWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumInevmUSDCWarpConfig.js';
import { getEthereumInevmUSDTWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumInevmUSDTWarpConfig.js';
import { getEthereumSolanaPzETHWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumSolanaPzETHWarpConfig.js';
import { getEthereumVictionETHWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumVictionETHWarpConfig.js';
import { getEthereumVictionUSDCWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumVictionUSDCWarpConfig.js';
import { getEthereumVictionUSDTWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumVictionUSDTWarpConfig.js';
@ -28,7 +27,6 @@ export enum WarpRouteIds {
ArbitrumNeutronTIA = 'TIA/arbitrum-neutron',
EthereumInevmUSDC = 'USDC/ethereum-inevm',
EthereumInevmUSDT = 'USDT/ethereum-inevm',
EthereumSolanaPzETH = 'pzETH/ethereum-solana',
EthereumVictionETH = 'ETH/ethereum-viction',
EthereumVictionUSDC = 'USDC/ethereum-viction',
EthereumVictionUSDT = 'USDT/ethereum-viction',
@ -58,7 +56,6 @@ export const warpConfigGetterMap: Record<
[WarpRouteIds.EthereumVictionUSDC]: getEthereumVictionUSDCWarpConfig,
[WarpRouteIds.EthereumVictionUSDT]: getEthereumVictionUSDTWarpConfig,
[WarpRouteIds.MantapacificNeutronTIA]: getMantapacificNeutronTiaWarpConfig,
[WarpRouteIds.EthereumSolanaPzETH]: getEthereumSolanaPzETHWarpConfig,
};
export async function getWarpConfig(

@ -502,7 +502,9 @@ export function getWarpAddresses(warpRouteId: string) {
const warpRouteConfig = registry.getWarpRoute(warpRouteId);
if (!warpRouteConfig) {
throw new Error(`Warp route config for ${warpRouteId} not found`);
throw new Error(
`Warp route config for ${warpRouteId} not found in registry`,
);
}
return warpConfigToWarpAddresses(warpRouteConfig);

Loading…
Cancel
Save