feat: add lumia warp route to infra (#4705)

### Description

- Add lumia warp route to infra config
pull/4775/head
Yorke Rhodes 4 weeks ago committed by GitHub
parent 956ff752ab
commit f9919c447e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 41
      typescript/infra/config/environments/mainnet3/warp/configGetters/getEthereumBscLumiaLUMIAWarpConfig.ts
  2. 1
      typescript/infra/config/environments/mainnet3/warp/warpIds.ts
  3. 2
      typescript/infra/config/warp.ts

@ -0,0 +1,41 @@
import {
ChainMap,
RouterConfig,
TokenRouterConfig,
TokenType,
} from '@hyperlane-xyz/sdk';
import { objMap } from '@hyperlane-xyz/utils';
// Lumia Team
const owner = '0x8bBA07Ddc72455b55530C17e6f6223EF6E156863';
export const getEthereumBscLUMIAWarpConfig = async (
routerConfig: ChainMap<RouterConfig>,
): Promise<ChainMap<TokenRouterConfig>> => {
const ethereum = {
type: TokenType.collateral,
token: '0xD9343a049D5DBd89CD19DC6BcA8c48fB3a0a42a7',
};
const bsc = {
type: TokenType.synthetic,
};
const lumia = {
type: TokenType.native,
};
const configMap = {
ethereum,
bsc,
lumia,
};
const merged = objMap(configMap, (chain, config) => ({
...routerConfig[chain],
...config,
owner,
}));
return merged as ChainMap<TokenRouterConfig>;
};

@ -17,6 +17,7 @@ export enum WarpRouteIds {
EthereumVictionUSDC = 'USDC/ethereum-viction',
EthereumVictionUSDT = 'USDT/ethereum-viction',
EthereumZircuitPZETH = 'PZETH/ethereum-zircuit',
EthereumBscLumiaLUMIA = 'LUMIA/bsc-ethereum-lumia',
InevmInjectiveINJ = 'INJ/inevm-injective',
MantapacificNeutronTIA = 'TIA/mantapacific-neutron',
}

@ -14,6 +14,7 @@ import { getArbitrumNeutronEclipWarpConfig } from './environments/mainnet3/warp/
import { getArbitrumNeutronTiaWarpConfig } from './environments/mainnet3/warp/configGetters/getArbitrumNeutronTiaWarpConfig.js';
import { getEclipseStrideTiaWarpConfig } from './environments/mainnet3/warp/configGetters/getEclipseStrideSTTIAWarpConfig.js';
import { getEclipseStrideStTiaWarpConfig } from './environments/mainnet3/warp/configGetters/getEclipseStrideTIAWarpConfig.js';
import { getEthereumBscLUMIAWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumBscLumiaLUMIAWarpConfig.js';
import { getEthereumInevmUSDCWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumInevmUSDCWarpConfig.js';
import { getEthereumInevmUSDTWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumInevmUSDTWarpConfig.js';
import { getEthereumSeiFastUSDWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumSeiFastUSDWarpConfig.js';
@ -51,6 +52,7 @@ export const warpConfigGetterMap: Record<
[WarpRouteIds.EthereumVictionUSDC]: getEthereumVictionUSDCWarpConfig,
[WarpRouteIds.EthereumVictionUSDT]: getEthereumVictionUSDTWarpConfig,
[WarpRouteIds.EthereumZircuitPZETH]: getRenzoPZETHWarpConfig,
[WarpRouteIds.EthereumBscLumiaLUMIA]: getEthereumBscLUMIAWarpConfig,
[WarpRouteIds.MantapacificNeutronTIA]: getMantapacificNeutronTiaWarpConfig,
[WarpRouteIds.EclipseStrideTIA]: getEclipseStrideTiaWarpConfig,
[WarpRouteIds.EclipseStrideSTTIA]: getEclipseStrideStTiaWarpConfig,

Loading…
Cancel
Save