chore: tk pr review changes

xeno/zero-warp-deploys
xeno097 6 days ago
parent ced89b6ae1
commit 8417abf142
  1. 9
      typescript/infra/config/environments/mainnet3/warp/configGetters/getArbitrumBaseBlastBscEthereumGnosisMantleModeOptimismPolygonScrollZeroNetworkZoraMainnetETHWarpConfig.ts
  2. 12
      typescript/infra/config/environments/mainnet3/warp/configGetters/getArbitrumBaseEthereumOptimismPolygonZeroNetworkUSDCWarpConfig.ts
  3. 9
      typescript/infra/config/environments/mainnet3/warp/configGetters/getArbitrumBscEthereumMantleModePolygonScrollZeronetworkUSDTWarpConfig.ts
  4. 9
      typescript/infra/config/environments/mainnet3/warp/configGetters/getBaseZeroNetworkCBBTCWarpConfig.ts
  5. 3
      typescript/infra/src/config/warp.ts

@ -1,7 +1,8 @@
import { ethers } from 'ethers';
import { import {
ChainMap, ChainMap,
IsmConfig, IsmConfig,
IsmType,
RouterConfig, RouterConfig,
TokenRouterConfig, TokenRouterConfig,
TokenType, TokenType,
@ -13,11 +14,7 @@ export const getArbitrumBaseBlastBscEthereumGnosisMantleModeOptimismPolygonScrol
async ( async (
routerConfig: ChainMap<RouterConfig>, routerConfig: ChainMap<RouterConfig>,
): Promise<ChainMap<TokenRouterConfig>> => { ): Promise<ChainMap<TokenRouterConfig>> => {
const ISM_CONFIG: IsmConfig = { const ISM_CONFIG: IsmConfig = ethers.constants.AddressZero;
type: IsmType.FALLBACK_ROUTING,
owner: '0x3f13C1351AC66ca0f4827c607a94c93c82AD0913',
domains: {},
};
const arbitrum: TokenRouterConfig = { const arbitrum: TokenRouterConfig = {
...routerConfig.arbitrum, ...routerConfig.arbitrum,

@ -1,7 +1,7 @@
import { ethers } from 'ethers';
import { import {
ChainMap, ChainMap,
IsmConfig,
IsmType,
RouterConfig, RouterConfig,
TokenRouterConfig, TokenRouterConfig,
TokenType, TokenType,
@ -12,11 +12,7 @@ import { tokens } from '../../../../../src/config/warp.js';
export const getArbitrumBaseEthereumOptimismPolygonZeroNetworkUSDC = async ( export const getArbitrumBaseEthereumOptimismPolygonZeroNetworkUSDC = async (
routerConfig: ChainMap<RouterConfig>, routerConfig: ChainMap<RouterConfig>,
): Promise<ChainMap<TokenRouterConfig>> => { ): Promise<ChainMap<TokenRouterConfig>> => {
const ISM_CONFIG: IsmConfig = { const ISM_CONFIG = ethers.constants.AddressZero;
type: IsmType.FALLBACK_ROUTING,
owner: '0x3f13C1351AC66ca0f4827c607a94c93c82AD0913',
domains: {},
};
const arbitrum: TokenRouterConfig = { const arbitrum: TokenRouterConfig = {
...routerConfig.arbitrum, ...routerConfig.arbitrum,
@ -49,7 +45,7 @@ export const getArbitrumBaseEthereumOptimismPolygonZeroNetworkUSDC = async (
const zeronetwork: TokenRouterConfig = { const zeronetwork: TokenRouterConfig = {
...routerConfig.zeronetwork, ...routerConfig.zeronetwork,
type: TokenType.collateral, type: TokenType.collateral,
token: '0x6a6394F47DD0BAF794808F2749C09bd4Ee874E70', token: tokens.zeronetwork.USDC,
interchainSecurityModule: ISM_CONFIG, interchainSecurityModule: ISM_CONFIG,
}; };

@ -1,7 +1,8 @@
import { ethers } from 'ethers';
import { import {
ChainMap, ChainMap,
IsmConfig, IsmConfig,
IsmType,
RouterConfig, RouterConfig,
TokenRouterConfig, TokenRouterConfig,
TokenType, TokenType,
@ -13,11 +14,7 @@ export const getArbitrumBscEthereumMantleModePolygonScrollZeroNetworkUSDTWarpCon
async ( async (
routerConfig: ChainMap<RouterConfig>, routerConfig: ChainMap<RouterConfig>,
): Promise<ChainMap<TokenRouterConfig>> => { ): Promise<ChainMap<TokenRouterConfig>> => {
const ISM_CONFIG: IsmConfig = { const ISM_CONFIG: IsmConfig = ethers.constants.AddressZero;
type: IsmType.FALLBACK_ROUTING,
owner: '0x3f13C1351AC66ca0f4827c607a94c93c82AD0913',
domains: {},
};
const arbitrum: TokenRouterConfig = { const arbitrum: TokenRouterConfig = {
...routerConfig.arbitrum, ...routerConfig.arbitrum,

@ -1,7 +1,8 @@
import { ethers } from 'ethers';
import { import {
ChainMap, ChainMap,
IsmConfig, IsmConfig,
IsmType,
RouterConfig, RouterConfig,
TokenRouterConfig, TokenRouterConfig,
TokenType, TokenType,
@ -12,11 +13,7 @@ import { tokens } from '../../../../../src/config/warp.js';
export const getBaseZeroNetworkCBBTCWarpConfig = async ( export const getBaseZeroNetworkCBBTCWarpConfig = async (
routerConfig: ChainMap<RouterConfig>, routerConfig: ChainMap<RouterConfig>,
): Promise<ChainMap<TokenRouterConfig>> => { ): Promise<ChainMap<TokenRouterConfig>> => {
const ISM_CONFIG: IsmConfig = { const ISM_CONFIG: IsmConfig = ethers.constants.AddressZero;
type: IsmType.FALLBACK_ROUTING,
owner: '0x3f13C1351AC66ca0f4827c607a94c93c82AD0913',
domains: {},
};
const base: TokenRouterConfig = { const base: TokenRouterConfig = {
...routerConfig.base, ...routerConfig.base,

@ -47,4 +47,7 @@ export const tokens: ChainMap<Record<string, Address>> = {
gnosis: { gnosis: {
WETH: '0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1', WETH: '0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1',
}, },
zeronetwork: {
USDC: '0x6a6394F47DD0BAF794808F2749C09bd4Ee874E70',
},
}; };

Loading…
Cancel
Save