Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"base": {
"hex": "0x000000000000000000000000151b328ca752c67c9a4c6e0ca329be0c00b12a24",
"base58": "111111111111J4AnaoiRYSUAPvdkhWuW7nFCMtF"
},
"arbitrum": {
"hex": "0x000000000000000000000000867a19a5b257bcb99e1840de2ef852268efd5e46",
"base58": "1111111111112sfRP1dJpWo3haU2PyEPK8QDicEZ"
},
"solanamainnet": {
"hex": "0x0b62a78ccf35124d9ef94e91cf87be42bcc18331d083335018c8f0a9ba3b1b79",
"base58": "mSjeF19MEyUto4RejyPeL6SGb2eDevNfYESaHBeQb9z"
},
"radix": {
"hex": "0x0000c0d97e55581082cb5e94d294786286b7b82d148c762009aa3ca109aa073d",
"base58": "11feECTjUf4z1r25D8qufT1bjbAJYBZMCetM9avsrMJ"
},
"ethereum": {
"hex": "0x00000000000000000000000067899664446ccfadf75e0d3f5668be262acd1069",
"base58": "1111111111112SfQSmG6fBenb4vst87dYVTueWjA"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"solanamainnet": {
"type": "collateral",
"decimals": 6,
"name": "USD Coin",
"owner": "GvjSzPttfE3dimBFZMKFhg7Yq3C5Jz17SrpE1L4nbR2F",
"symbol": "USDC",
"token": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"interchainGasPaymaster": "AkeHBbE5JkwVppujCQQ6WuxsVsJtruBAjUo6fDCFp6fF",
"uri": "https://raw.githubusercontent.com/hyperlane-xyz/hyperlane-registry/63ae6c0a0415d480c00880e64ec8a9c3724b4e37/deployments/warp_routes/USDC/metadata.json"
},
"arbitrum": {
"type": "collateral",
"decimals": 6,
"foreignDeployment": "0x867a19a5b257bcb99E1840dE2ef852268Efd5E46",
"token": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
},
"base": {
"type": "collateral",
"decimals": 6,
"foreignDeployment": "0x151B328Ca752C67C9a4C6E0CA329bE0c00B12A24",
"token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
},
"ethereum": {
"type": "collateral",
"decimals": 6,
"foreignDeployment": "0x67899664446CCfAdf75e0D3F5668be262aCd1069",
"token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
},
"radix": {
"type": "synthetic",
"decimals": 6,
"foreignDeployment": "component_rdx1crvhu42czzpvkh556228sc5xk7uz69yvwcsqn23u5yy65pea0w02l0",
"name": "USD Coin",
"symbol": "USDC"
}
}
23 changes: 23 additions & 0 deletions typescript/infra/config/environments/mainnet3/utils.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { ChainSubmissionStrategy, TxSubmitterType } from '@hyperlane-xyz/sdk';

// Create a GnosisSafeBuilder Strategy for each safe address
// safes -> Record of chain => safeAddress
export function getGnosisSafeBuilderStrategyConfigGenerator(
safes: Record<string, string>,
) {
return (): ChainSubmissionStrategy => {
return Object.fromEntries(
Object.entries(safes).map(([chain, safeAddress]) => [
chain,
{
submitter: {
type: TxSubmitterType.GNOSIS_TX_BUILDER,
version: '1.0',
chain,
safeAddress,
},
},
]),
);
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
} from '@hyperlane-xyz/sdk';

import { RouterConfigWithoutOwner } from '../../../../../src/config/warp.js';
import { getGnosisSafeBuilderStrategyConfigGenerator } from '../../utils.js';

const safeOwners: Record<string, string> = {
arbitrum: '0xc8A9Dea7359Bd6FDCAD3B8EDE108416C25cF4CE9',
Expand Down Expand Up @@ -101,26 +102,5 @@ export const getArbitrumAvalancheBaseBscEthereumLumiaprismOptimismPolygonLUMIAWa
};
};

// Create a GnosisSafeBuilder Strategy for each safe address
export function getLUMIAGnosisSafeBuilderStrategyConfigGenerator(
lumiaSafes: Record<string, string>,
) {
return (): ChainSubmissionStrategy => {
return Object.fromEntries(
Object.entries(lumiaSafes).map(([chain, safeAddress]) => [
chain,
{
submitter: {
type: TxSubmitterType.GNOSIS_TX_BUILDER,
version: '1.0',
chain,
safeAddress,
},
},
]),
);
};
}

export const getLUMIAGnosisSafeBuilderStrategyConfig =
getLUMIAGnosisSafeBuilderStrategyConfigGenerator(safeOwners);
getGnosisSafeBuilderStrategyConfigGenerator(safeOwners);
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
RouterConfigWithoutOwner,
tokens,
} from '../../../../../src/config/warp.js';
import { getGnosisSafeBuilderStrategyConfigGenerator } from '../../utils.js';

import { getUSDCRebalancingBridgesConfigFor } from './utils.js';

Expand All @@ -36,7 +37,7 @@ const owners = {
radix: 'account_rdx1280taxhhnuek02y59yapsg4kjtux954qkyufpwmy4dlfcxdrjzr7fj',
};

export const getArbitrumBaseEthereumRadixUSDCWarpConfig = async (
export const getRadixUSDCWarpConfig = async (
routerConfig: ChainMap<RouterConfigWithoutOwner>,
abacusWorksEnvOwnerConfig: ChainMap<OwnableConfig>,
): Promise<ChainMap<HypTokenRouterConfig>> => {
Expand Down Expand Up @@ -91,3 +92,6 @@ export const getArbitrumBaseEthereumRadixUSDCWarpConfig = async (
radix,
};
};

export const getUSDCRadixSafeBuilderStrategyConfig =
getGnosisSafeBuilderStrategyConfigGenerator(owners);
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export enum WarpRouteIds {
Ancient8EthereumUSDC = 'USDC/ancient8-ethereum',
RenzoEZETH = 'EZETH/renzo-prod',
RenzoEZETHSTAGE = 'EZETHSTAGE/renzo-stage',
ArbitrumBaseEthereumRadixUSDC = 'USDC/arbitrum-base-ethereum-radix',
RadixUSDC = 'USDC/radix',
ArbitrumBaseEnduranceUSDC = 'USDC/arbitrum-base-endurance',
ArbitrumEthereumZircuitAMPHRETH = 'AMPHRETH/arbitrum-ethereum-zircuit',
ArbitrumNeutronEclip = 'ECLIP/arbitrum-neutron',
Expand Down
9 changes: 6 additions & 3 deletions typescript/infra/config/warp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import {
getArbitrumBaseEthereumLumiaprismOptimismPolygonETHWarpConfig,
} from './environments/mainnet3/warp/configGetters/getArbitrumBaseEthereumLumiaprismOptimismPolygonETHWarpConfig.js';
import { getArbitrumBaseEthereumLiskOptimismPolygonZeroNetworkUSDCWarpConfig } from './environments/mainnet3/warp/configGetters/getArbitrumBaseEthereumOptimismPolygonZeroNetworkUSDCWarpConfig.js';
import { getArbitrumBaseEthereumRadixUSDCWarpConfig } from './environments/mainnet3/warp/configGetters/getArbitrumBaseEthereumRadixUSDCWarpConfig.js';
import { getArbitrumEthereumMantleModePolygonScrollZeroNetworkUSDTWarpConfig } from './environments/mainnet3/warp/configGetters/getArbitrumEthereumMantleModePolygonScrollZeroNetworkUSDTWarpConfig.js';
import { getArbitrumNeutronTiaWarpConfig } from './environments/mainnet3/warp/configGetters/getArbitrumNeutronTiaWarpConfig.js';
import { getBaseEthereumSuperseedCBBTCWarpConfig } from './environments/mainnet3/warp/configGetters/getBaseEthereumSuperseedCBBTCWarpConfig.js';
Expand Down Expand Up @@ -72,6 +71,10 @@ import { getMintSolanaMintWarpConfig } from './environments/mainnet3/warp/config
import { getMitosisMITOWarpConfig } from './environments/mainnet3/warp/configGetters/getMitosisMITOWarpConfig.js';
import { getParadexUSDCWarpConfig } from './environments/mainnet3/warp/configGetters/getParadexUSDCWarpConfig.js';
import { getPulsechainUSDCWarpConfig } from './environments/mainnet3/warp/configGetters/getPulsechainUSDCWarpConfig.js';
import {
getRadixUSDCWarpConfig,
getUSDCRadixSafeBuilderStrategyConfig,
} from './environments/mainnet3/warp/configGetters/getRadixUSDCWarpConfig.js';
import {
getEZETHSTAGEGnosisSafeBuilderStrategyConfig,
getRenzoEZETHSTAGEWarpConfig,
Expand Down Expand Up @@ -171,8 +174,7 @@ export const warpConfigGetterMap: Record<string, WarpConfigGetter> = {
[WarpRouteIds.LumiaUSDC]: getLumiaUSDCWarpConfig,
[WarpRouteIds.MatchainUSDC]: getMatchainUSDCWarpConfig,
[WarpRouteIds.MitosisMITO]: getMitosisMITOWarpConfig,
[WarpRouteIds.ArbitrumBaseEthereumRadixUSDC]:
getArbitrumBaseEthereumRadixUSDCWarpConfig,
[WarpRouteIds.RadixUSDC]: getRadixUSDCWarpConfig,
[WarpRouteIds.PulsechainUSDC]: getPulsechainUSDCWarpConfig,
[WarpRouteIds.ElectroneumUSDC]: getElectroneumUSDCWarpConfig,
};
Expand All @@ -196,6 +198,7 @@ export const strategyConfigGetterMap: Record<string, StrategyConfigGetter> = {
[WarpRouteIds.MainnetCCTP]: getCCTPStrategyConfig,
[WarpRouteIds.MatchainUSDC]: getMatchainUSDCStrategyConfig,
[WarpRouteIds.oXAUT]: getoXAUTGnosisSafeSubmitterStrategyConfig,
[WarpRouteIds.RadixUSDC]: getUSDCRadixSafeBuilderStrategyConfig,
};

/**
Expand Down
Loading