Skip to content

Commit

Permalink
Add Superseed warp route config
Browse files Browse the repository at this point in the history
  • Loading branch information
nambrot committed Jan 8, 2025
1 parent d25f391 commit 45f2c38
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
3 changes: 3 additions & 0 deletions typescript/infra/config/environments/mainnet3/owners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,4 +243,7 @@ export const chainOwners: ChainMap<OwnableConfig> = {
osmosis: {
owner: 'n/a - nothing owned here',
},
soon: {
owner: 'n/a - nothing owned here',
},
};
2 changes: 2 additions & 0 deletions typescript/infra/config/environments/mainnet3/warp/warpIds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ export enum WarpRouteIds {
ArbitrumBaseBlastBscEthereumGnosisLiskMantleModeOptimismPolygonScrollZeroNetworkZoraMainnet = 'ETH/arbitrum-base-blast-bsc-ethereum-gnosis-lisk-mantle-mode-optimism-polygon-scroll-zeronetwork-zoramainnet',
AppchainBaseUSDC = 'USDC/appchain-base',
BobaBsquaredSwellUBTC = 'UBTC/boba-bsquared-swell',
EthereumSuperseedCBBTC = 'CBBTC/ethereum-superseed',
EthereumSuperseedUSDC = 'USDC/ethereum-superseed',
}
6 changes: 6 additions & 0 deletions typescript/infra/config/warp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ import { getEthereumInevmUSDCWarpConfig } from './environments/mainnet3/warp/con
import { getEthereumInevmUSDTWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumInevmUSDTWarpConfig.js';
import { getEthereumSeiFastUSDWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumSeiFastUSDWarpConfig.js';
import { getEthereumSeiPumpBTCWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumSeiPumpBTCWarpConfig.js';
import {
getEthereumSuperseedCBBTCWarpConfig,
getEthereumSuperseedUSDCWarpConfig,
} from './environments/mainnet3/warp/configGetters/getEthereumSuperseedWarpConfig.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';
Expand Down Expand Up @@ -86,6 +90,8 @@ export const warpConfigGetterMap: Record<string, WarpConfigGetter> = {
[WarpRouteIds.AppchainBaseUSDC]: getAppChainBaseUSDCWarpConfig,
[WarpRouteIds.BobaBsquaredSwellUBTC]: getBobaBsquaredSwellUBTCWarpConfig,
[WarpRouteIds.EthereumZircuitRe7LRT]: getEthereumZircuitRe7LRTWarpConfig,
[WarpRouteIds.EthereumSuperseedCBBTC]: getEthereumSuperseedCBBTCWarpConfig,
[WarpRouteIds.EthereumSuperseedUSDC]: getEthereumSuperseedUSDCWarpConfig,
};

export async function getWarpConfig(
Expand Down
2 changes: 2 additions & 0 deletions typescript/infra/scripts/warp-routes/generate-warp-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ async function main() {
const parsed = WarpRouteDeployConfigSchema.safeParse(warpConfig);

if (!parsed.success) {
console.error('Error parsing warp config:');
console.dir(warpConfig, { depth: null });
console.dir(parsed.error.format(), { depth: null });
return;
}
Expand Down
5 changes: 2 additions & 3 deletions typescript/infra/src/config/warp.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { ChainMap, OwnableConfig, RouterConfig } from '@hyperlane-xyz/sdk';
import { Address } from '@hyperlane-xyz/utils';
import { OwnableConfig, RouterConfig } from '@hyperlane-xyz/sdk';

// Common collateral tokens to be used by warp route deployments.
export const tokens: ChainMap<Record<string, Address>> = {
export const tokens = {
ethereum: {
amphrETH: '0x5fD13359Ba15A84B76f7F87568309040176167cd',
apxETH: '0x9ba021b0a9b958b5e75ce9f6dff97c7ee52cb3e6',
Expand Down

0 comments on commit 45f2c38

Please sign in to comment.