|
|
@ -1,5 +1,6 @@ |
|
|
|
import { |
|
|
|
import { |
|
|
|
ChainMap, |
|
|
|
ChainMap, |
|
|
|
|
|
|
|
IsmConfig, |
|
|
|
IsmType, |
|
|
|
IsmType, |
|
|
|
RouterConfig, |
|
|
|
RouterConfig, |
|
|
|
TokenRouterConfig, |
|
|
|
TokenRouterConfig, |
|
|
@ -12,138 +13,98 @@ export const getArbitrumBaseBlastBscEthereumGnosisMantleModeOptimismPolygonScrol |
|
|
|
async ( |
|
|
|
async ( |
|
|
|
routerConfig: ChainMap<RouterConfig>, |
|
|
|
routerConfig: ChainMap<RouterConfig>, |
|
|
|
): Promise<ChainMap<TokenRouterConfig>> => { |
|
|
|
): Promise<ChainMap<TokenRouterConfig>> => { |
|
|
|
|
|
|
|
const ISM_CONFIG: IsmConfig = { |
|
|
|
|
|
|
|
type: IsmType.FALLBACK_ROUTING, |
|
|
|
|
|
|
|
owner: '0x3f13C1351AC66ca0f4827c607a94c93c82AD0913', |
|
|
|
|
|
|
|
domains: {}, |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const arbitrum: TokenRouterConfig = { |
|
|
|
const arbitrum: TokenRouterConfig = { |
|
|
|
...routerConfig.arbitrum, |
|
|
|
...routerConfig.arbitrum, |
|
|
|
type: TokenType.native, |
|
|
|
type: TokenType.native, |
|
|
|
interchainSecurityModule: { |
|
|
|
interchainSecurityModule: ISM_CONFIG, |
|
|
|
type: IsmType.FALLBACK_ROUTING, |
|
|
|
|
|
|
|
owner: '0x3f13C1351AC66ca0f4827c607a94c93c82AD0913', |
|
|
|
|
|
|
|
domains: {}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const base: TokenRouterConfig = { |
|
|
|
const base: TokenRouterConfig = { |
|
|
|
...routerConfig.base, |
|
|
|
...routerConfig.base, |
|
|
|
type: TokenType.native, |
|
|
|
type: TokenType.native, |
|
|
|
interchainSecurityModule: { |
|
|
|
interchainSecurityModule: ISM_CONFIG, |
|
|
|
type: IsmType.FALLBACK_ROUTING, |
|
|
|
|
|
|
|
owner: '0x3f13C1351AC66ca0f4827c607a94c93c82AD0913', |
|
|
|
|
|
|
|
domains: {}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const blast: TokenRouterConfig = { |
|
|
|
const blast: TokenRouterConfig = { |
|
|
|
...routerConfig.blast, |
|
|
|
...routerConfig.blast, |
|
|
|
type: TokenType.native, |
|
|
|
type: TokenType.native, |
|
|
|
interchainSecurityModule: { |
|
|
|
interchainSecurityModule: ISM_CONFIG, |
|
|
|
type: IsmType.FALLBACK_ROUTING, |
|
|
|
|
|
|
|
owner: '0x3f13C1351AC66ca0f4827c607a94c93c82AD0913', |
|
|
|
|
|
|
|
domains: {}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const bsc: TokenRouterConfig = { |
|
|
|
const bsc: TokenRouterConfig = { |
|
|
|
...routerConfig.bsc, |
|
|
|
...routerConfig.bsc, |
|
|
|
type: TokenType.collateral, |
|
|
|
type: TokenType.collateral, |
|
|
|
token: tokens.bsc.WETH, |
|
|
|
token: tokens.bsc.WETH, |
|
|
|
interchainSecurityModule: { |
|
|
|
interchainSecurityModule: ISM_CONFIG, |
|
|
|
type: IsmType.FALLBACK_ROUTING, |
|
|
|
}; |
|
|
|
owner: '0x3f13C1351AC66ca0f4827c607a94c93c82AD0913', |
|
|
|
|
|
|
|
domains: {}, |
|
|
|
const ethereum: TokenRouterConfig = { |
|
|
|
}, |
|
|
|
...routerConfig.ethereum, |
|
|
|
|
|
|
|
type: TokenType.native, |
|
|
|
|
|
|
|
interchainSecurityModule: ISM_CONFIG, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const gnosis: TokenRouterConfig = { |
|
|
|
const gnosis: TokenRouterConfig = { |
|
|
|
...routerConfig.gnosis, |
|
|
|
...routerConfig.gnosis, |
|
|
|
type: TokenType.collateral, |
|
|
|
type: TokenType.collateral, |
|
|
|
token: tokens.gnosis.WETH, |
|
|
|
token: tokens.gnosis.WETH, |
|
|
|
interchainSecurityModule: { |
|
|
|
interchainSecurityModule: ISM_CONFIG, |
|
|
|
type: IsmType.FALLBACK_ROUTING, |
|
|
|
|
|
|
|
owner: '0x3f13C1351AC66ca0f4827c607a94c93c82AD0913', |
|
|
|
|
|
|
|
domains: {}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const mantle: TokenRouterConfig = { |
|
|
|
const mantle: TokenRouterConfig = { |
|
|
|
...routerConfig.mantle, |
|
|
|
...routerConfig.mantle, |
|
|
|
type: TokenType.collateral, |
|
|
|
type: TokenType.collateral, |
|
|
|
token: tokens.mantle.WETH, |
|
|
|
token: tokens.mantle.WETH, |
|
|
|
interchainSecurityModule: { |
|
|
|
interchainSecurityModule: ISM_CONFIG, |
|
|
|
type: IsmType.FALLBACK_ROUTING, |
|
|
|
|
|
|
|
owner: '0x3f13C1351AC66ca0f4827c607a94c93c82AD0913', |
|
|
|
|
|
|
|
domains: {}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const mode: TokenRouterConfig = { |
|
|
|
const mode: TokenRouterConfig = { |
|
|
|
...routerConfig.mode, |
|
|
|
...routerConfig.mode, |
|
|
|
type: TokenType.native, |
|
|
|
type: TokenType.native, |
|
|
|
interchainSecurityModule: { |
|
|
|
interchainSecurityModule: ISM_CONFIG, |
|
|
|
type: IsmType.FALLBACK_ROUTING, |
|
|
|
|
|
|
|
owner: '0x3f13C1351AC66ca0f4827c607a94c93c82AD0913', |
|
|
|
|
|
|
|
domains: {}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const optimism: TokenRouterConfig = { |
|
|
|
const optimism: TokenRouterConfig = { |
|
|
|
...routerConfig.optimism, |
|
|
|
...routerConfig.optimism, |
|
|
|
type: TokenType.native, |
|
|
|
type: TokenType.native, |
|
|
|
interchainSecurityModule: { |
|
|
|
interchainSecurityModule: ISM_CONFIG, |
|
|
|
type: IsmType.FALLBACK_ROUTING, |
|
|
|
|
|
|
|
owner: '0x3f13C1351AC66ca0f4827c607a94c93c82AD0913', |
|
|
|
|
|
|
|
domains: {}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const polygon: TokenRouterConfig = { |
|
|
|
const polygon: TokenRouterConfig = { |
|
|
|
...routerConfig.polygon, |
|
|
|
...routerConfig.polygon, |
|
|
|
type: TokenType.collateral, |
|
|
|
type: TokenType.collateral, |
|
|
|
token: tokens.polygon.WETH, |
|
|
|
token: tokens.polygon.WETH, |
|
|
|
interchainSecurityModule: { |
|
|
|
interchainSecurityModule: ISM_CONFIG, |
|
|
|
type: IsmType.FALLBACK_ROUTING, |
|
|
|
|
|
|
|
owner: '0x3f13C1351AC66ca0f4827c607a94c93c82AD0913', |
|
|
|
|
|
|
|
domains: {}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const scroll: TokenRouterConfig = { |
|
|
|
const scroll: TokenRouterConfig = { |
|
|
|
...routerConfig.scroll, |
|
|
|
...routerConfig.scroll, |
|
|
|
type: TokenType.native, |
|
|
|
type: TokenType.native, |
|
|
|
interchainSecurityModule: { |
|
|
|
interchainSecurityModule: ISM_CONFIG, |
|
|
|
type: IsmType.FALLBACK_ROUTING, |
|
|
|
|
|
|
|
owner: '0x3f13C1351AC66ca0f4827c607a94c93c82AD0913', |
|
|
|
|
|
|
|
domains: {}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const zeronetwork: TokenRouterConfig = { |
|
|
|
const zeronetwork: TokenRouterConfig = { |
|
|
|
...routerConfig.zeronetwork, |
|
|
|
...routerConfig.zeronetwork, |
|
|
|
type: TokenType.native, |
|
|
|
type: TokenType.native, |
|
|
|
interchainSecurityModule: { |
|
|
|
interchainSecurityModule: ISM_CONFIG, |
|
|
|
type: IsmType.FALLBACK_ROUTING, |
|
|
|
|
|
|
|
owner: '0x3f13C1351AC66ca0f4827c607a94c93c82AD0913', |
|
|
|
|
|
|
|
domains: {}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const zoramainnet: TokenRouterConfig = { |
|
|
|
const zoramainnet: TokenRouterConfig = { |
|
|
|
...routerConfig.zoramainnet, |
|
|
|
...routerConfig.zoramainnet, |
|
|
|
type: TokenType.native, |
|
|
|
type: TokenType.native, |
|
|
|
interchainSecurityModule: { |
|
|
|
interchainSecurityModule: ISM_CONFIG, |
|
|
|
type: IsmType.FALLBACK_ROUTING, |
|
|
|
|
|
|
|
owner: '0x3f13C1351AC66ca0f4827c607a94c93c82AD0913', |
|
|
|
|
|
|
|
domains: {}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const ethereum: TokenRouterConfig = { |
|
|
|
const lisk: TokenRouterConfig = { |
|
|
|
...routerConfig.ethereum, |
|
|
|
...routerConfig.lisk, |
|
|
|
type: TokenType.native, |
|
|
|
type: TokenType.synthetic, |
|
|
|
interchainSecurityModule: { |
|
|
|
interchainSecurityModule: ISM_CONFIG, |
|
|
|
type: IsmType.FALLBACK_ROUTING, |
|
|
|
|
|
|
|
owner: '0x3f13C1351AC66ca0f4827c607a94c93c82AD0913', |
|
|
|
|
|
|
|
domains: {}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
@ -160,5 +121,6 @@ export const getArbitrumBaseBlastBscEthereumGnosisMantleModeOptimismPolygonScrol |
|
|
|
zeronetwork, |
|
|
|
zeronetwork, |
|
|
|
zoramainnet, |
|
|
|
zoramainnet, |
|
|
|
ethereum, |
|
|
|
ethereum, |
|
|
|
|
|
|
|
lisk, |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|