From 2d41336f5373c0b13a91bee55b10ae98bb0c4216 Mon Sep 17 00:00:00 2001 From: just-a-node Date: Fri, 29 Sep 2023 01:03:23 -0600 Subject: [PATCH 01/20] feat: whitelist xTST --- .../src/cli/init/config/testnet/production.ts | 27 +++++++ .../contracts/src/cli/init/helpers/assets.ts | 68 ++++++++-------- .../contracts/src/cli/init/init.ts | 78 ++++++++++--------- 3 files changed, 103 insertions(+), 70 deletions(-) diff --git a/packages/deployments/contracts/src/cli/init/config/testnet/production.ts b/packages/deployments/contracts/src/cli/init/config/testnet/production.ts index 4d536cfb4c..e37492ca08 100644 --- a/packages/deployments/contracts/src/cli/init/config/testnet/production.ts +++ b/packages/deployments/contracts/src/cli/init/config/testnet/production.ts @@ -7,6 +7,7 @@ export const TESTNET_PRODUCTION_INIT_CONFIG: InitConfig = { "1735356532", /// OPTIMISM-GOERLI "1734439522", /// ARBITRUM-GOERLI "9991", /// MUMBAI + "11111", "2053862260", /// ZKSYNC-TEST "1668247156", /// CONSENSYS-ZKEVM-TEST "1887071092", /// POLYGON-ZKEVM-TEST @@ -247,6 +248,32 @@ export const TESTNET_PRODUCTION_INIT_CONFIG: InitConfig = { }, }, }, + { + name: "TST", + canonical: { + // Bogus domain + domain: "11111", + address: "0x6Bc2F40ee04D45848BcD4A70DF6D3679FA2c2A30", + decimals: 18, + }, + representations: { + /// GOERLI + "1735353714": { + local: "0x6Bc2F40ee04D45848BcD4A70DF6D3679FA2c2A30", + adopted: "0x6Bc2F40ee04D45848BcD4A70DF6D3679FA2c2A30", + }, + /// OPTIMISM-GOERLI + "1735356532": { + local: "0x6Bc2F40ee04D45848BcD4A70DF6D3679FA2c2A30", + adopted: "0x6Bc2F40ee04D45848BcD4A70DF6D3679FA2c2A30", + }, + /// MUMBAI + "9991": { + local: "0x6Bc2F40ee04D45848BcD4A70DF6D3679FA2c2A30", + adopted: "0x6Bc2F40ee04D45848BcD4A70DF6D3679FA2c2A30", + }, + }, + }, ], agents: { relayerFeeVaults: { diff --git a/packages/deployments/contracts/src/cli/init/helpers/assets.ts b/packages/deployments/contracts/src/cli/init/helpers/assets.ts index 8d476efa79..bbd5950c0d 100644 --- a/packages/deployments/contracts/src/cli/init/helpers/assets.ts +++ b/packages/deployments/contracts/src/cli/init/helpers/assets.ts @@ -29,13 +29,13 @@ export const setupAsset = async (args: { ); // Set up the canonical asset on the canonical domain. - const home = networks.find((n) => n.domain === asset.canonical.domain); - if (!home) { - throw new Error( - `Could not find canonical domain network ${asset.canonical.domain} for asset ${asset.canonical.address} in` + - "the configured list of networks!", - ); - } + // const home = networks.find((n) => n.domain === asset.canonical.domain); + // if (!home) { + // throw new Error( + // `Could not find canonical domain network ${asset.canonical.domain} for asset ${asset.canonical.address} in` + + // "the configured list of networks!", + // ); + // } let canonicalDecimals = asset.canonical.decimals; if (!canonicalDecimals) { @@ -52,32 +52,32 @@ export const setupAsset = async (args: { const tokenName = asset.name.startsWith(`next`) ? asset.name : `next${asset.name.toUpperCase()}`; const tokenSymbol = tokenName; - if (+home.chain === 1 && BigNumber.from(asset.canonical.cap ?? "0").isZero()) { - throw new Error(`Must have nonzero cap on prod canonical domains`); - } + // if (+home.chain === 1 && BigNumber.from(asset.canonical.cap ?? "0").isZero()) { + // throw new Error(`Must have nonzero cap on prod canonical domains`); + // } if (!canonicalDecimals) { throw new Error(`Unable to find canonical decimals in config for ${asset.name}`); } - await updateIfNeeded({ - apply, - deployment: home.deployments.Connext, - desired: asset.canonical.address, - read: { method: "canonicalToAdopted(bytes32)", args: [key] }, - write: { - method: "setupAsset", - args: [ - [canonical.domain, canonical.id], - canonicalDecimals, - tokenName, - tokenSymbol, - asset.canonical.address, - constants.AddressZero, - asset.canonical.cap ?? "0", // 0-cap allowed on testnet only - ], - }, - }); + // await updateIfNeeded({ + // apply, + // deployment: home.deployments.Connext, + // desired: asset.canonical.address, + // read: { method: "canonicalToAdopted(bytes32)", args: [key] }, + // write: { + // method: "setupAsset", + // args: [ + // [canonical.domain, canonical.id], + // canonicalDecimals, + // tokenName, + // tokenSymbol, + // asset.canonical.address, + // constants.AddressZero, + // asset.canonical.cap ?? "0", // 0-cap allowed on testnet only + // ], + // }, + // }); // Set up all the representational assets on their respective domains. for (const [domain, representation] of Object.entries(asset.representations)) { @@ -160,12 +160,12 @@ export const setupAsset = async (args: { } // NOTE: it is best practice to init + add liquidity in a single transaction to start the pool in a balanced state - if (apply && +home.chain === 1) { - // TODO: add liquidity with balance assertions; proper min to mint calculations; etc. - // Fixing this is useful in testnet, but on mainnets youre using safes anyway. - console.warn(`Must implement safe pool initialization. Skipping.`); - continue; - } + // if (apply && +home.chain === 1) { + // // TODO: add liquidity with balance assertions; proper min to mint calculations; etc. + // // Fixing this is useful in testnet, but on mainnets youre using safes anyway. + // console.warn(`Must implement safe pool initialization. Skipping.`); + // continue; + // } // After registering the asset, check pool status. const [local, adopted] = apply diff --git a/packages/deployments/contracts/src/cli/init/init.ts b/packages/deployments/contracts/src/cli/init/init.ts index 31517472cb..97a47d3b4c 100644 --- a/packages/deployments/contracts/src/cli/init/init.ts +++ b/packages/deployments/contracts/src/cli/init/init.ts @@ -126,7 +126,8 @@ export const sanitizeAndInit = async () => { }; for (const domain of domains) { - if (domain === hubDomain) continue; + // TODO: handle special case for setting up xERC20s with bogus canonical domain + // if (domain === hubDomain) continue; _extracted.representations[domain] = asset.representations[domain]; } @@ -160,46 +161,51 @@ export const sanitizeAndInit = async () => { // Get deployments for each domain if not specified in the config. for (const domain of domains) { - const chainId = domainToChainId(Number(domain)); + // TODO: handle special case for setting up xERC20s with bogus canonical domain + if (Number(domain) != 11111) { + const chainId = domainToChainId(Number(domain)); - const chainConfig = Object.values(filteredHardhatNetworks).find( - (networkConfig: any) => networkConfig["chainId"] == chainId, - ) as HttpNetworkUserConfig & { zksync: boolean | undefined }; + const chainConfig = Object.values(filteredHardhatNetworks).find( + (networkConfig: any) => networkConfig["chainId"] == chainId, + ) as HttpNetworkUserConfig & { zksync: boolean | undefined }; - if (!chainConfig || !chainConfig.url) { - throw new Error(`Not configured network for chainId: ${chainId} in hardhat config`); - } - - // Convert deployer from mnemonic to Wallet. - let deployer; - if (privateKey) { - deployer = chainConfig.zksync ? new zk.Wallet(privateKey) : new Wallet(privateKey); - } else { - deployer = chainConfig.zksync ? zk.Wallet.fromMnemonic(mnemonic!) : Wallet.fromMnemonic(mnemonic!); - } - console.log("deployer: ", deployer.address); - - const rpc = chainConfig.zksync ? new zk.Provider(chainConfig.url) : new providers.JsonRpcProvider(chainConfig.url); + if (!chainConfig || !chainConfig.url) { + throw new Error(`Not configured network for chainId: ${chainId} in hardhat config`); + } - const isHub = domain === hubDomain; - const deployments = getDeployments({ - deployer, - chainInfo: { chain: chainId.toString(), rpc, zksync: chainConfig.zksync || false }, - isHub, - useStaging, - }); + // Convert deployer from mnemonic to Wallet. + let deployer; + if (privateKey) { + deployer = chainConfig.zksync ? new zk.Wallet(privateKey) : new Wallet(privateKey); + } else { + deployer = chainConfig.zksync ? zk.Wallet.fromMnemonic(mnemonic!) : Wallet.fromMnemonic(mnemonic!); + } + console.log("deployer: ", deployer.address); + + const rpc = chainConfig.zksync + ? new zk.Provider(chainConfig.url) + : new providers.JsonRpcProvider(chainConfig.url); + + const isHub = domain === hubDomain; + const deployments = getDeployments({ + deployer, + chainInfo: { chain: chainId.toString(), rpc, zksync: chainConfig.zksync || false }, + isHub, + useStaging, + }); - // TODO: all agents should also be configured per-network - if (!initConfig.agents.relayerFeeVaults[domain]) { - throw new Error(`No relayer fee vault configured for ${domain}!`); + // TODO: all agents should also be configured per-network + if (!initConfig.agents.relayerFeeVaults[domain]) { + throw new Error(`No relayer fee vault configured for ${domain}!`); + } + networks.push({ + chain: chainId.toString(), + domain, + rpc, + deployments, + relayerFeeVault: initConfig.agents.relayerFeeVaults[domain], + }); } - networks.push({ - chain: chainId.toString(), - domain, - rpc, - deployments, - relayerFeeVault: initConfig.agents.relayerFeeVaults[domain], - }); } const sanitized = { From f732563fe58a7779c5ecf2444612350a55d55c12 Mon Sep 17 00:00:00 2001 From: just-a-node Date: Fri, 29 Sep 2023 15:53:52 -0600 Subject: [PATCH 02/20] feat: whitelist BOG --- .../src/cli/init/config/testnet/production.ts | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/packages/deployments/contracts/src/cli/init/config/testnet/production.ts b/packages/deployments/contracts/src/cli/init/config/testnet/production.ts index e37492ca08..9fdba53134 100644 --- a/packages/deployments/contracts/src/cli/init/config/testnet/production.ts +++ b/packages/deployments/contracts/src/cli/init/config/testnet/production.ts @@ -274,6 +274,27 @@ export const TESTNET_PRODUCTION_INIT_CONFIG: InitConfig = { }, }, }, + { + name: "BOG", + canonical: { + /// GOERLI + domain: "1735353714", + address: "0x3a3e4974FF0dA424276935d1e0c9587B5314ec31", + decimals: 18, + }, + representations: { + /// OPTIMISM-GOERLI + "1735356532": { + local: "0x3a3e4974FF0dA424276935d1e0c9587B5314ec31", + adopted: "0x3a3e4974FF0dA424276935d1e0c9587B5314ec31", + }, + /// MUMBAI + "9991": { + local: "0x3a3e4974FF0dA424276935d1e0c9587B5314ec31", + adopted: "0x3a3e4974FF0dA424276935d1e0c9587B5314ec31", + }, + }, + }, ], agents: { relayerFeeVaults: { From 03fe1d24b5f90190a9b3417d28748de018971ce9 Mon Sep 17 00:00:00 2001 From: just-a-node Date: Fri, 29 Sep 2023 15:54:17 -0600 Subject: [PATCH 03/20] fix: bumpTransfer task --- packages/deployments/contracts/tasks/bumpTransfer.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/deployments/contracts/tasks/bumpTransfer.ts b/packages/deployments/contracts/tasks/bumpTransfer.ts index dbeb4a6d5f..5b674bbe67 100644 --- a/packages/deployments/contracts/tasks/bumpTransfer.ts +++ b/packages/deployments/contracts/tasks/bumpTransfer.ts @@ -39,9 +39,7 @@ export default task("bump-transfer", "Bump a transfer") const connext = new Contract(connextAddress, connextDeployment.abi, deployer); - const tx = await connext.bumpTransfer(transferId, { - value: relayerFee, - }); + const tx = await connext["bumpTransfer(bytes32)"](transferId, { value: relayerFee }); console.log("bumpTransfer tx: ", tx); const receipt = await tx.wait(); From 867c063d5af1353b0694bb23f395ce6114d641f0 Mon Sep 17 00:00:00 2001 From: just-a-node Date: Fri, 29 Sep 2023 17:13:24 -0600 Subject: [PATCH 04/20] feat: whitelist spoofed domain BOG --- .../src/cli/init/config/testnet/production.ts | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/packages/deployments/contracts/src/cli/init/config/testnet/production.ts b/packages/deployments/contracts/src/cli/init/config/testnet/production.ts index 9fdba53134..d2ec7354df 100644 --- a/packages/deployments/contracts/src/cli/init/config/testnet/production.ts +++ b/packages/deployments/contracts/src/cli/init/config/testnet/production.ts @@ -295,6 +295,35 @@ export const TESTNET_PRODUCTION_INIT_CONFIG: InitConfig = { }, }, }, + { + // Comment out other "BOG" when running init for this + // TODO: we currently comment out the home chain setup logic in + // helpers/asset.ts when this is being init'd + name: "BOG", + canonical: { + // Bogus domain + domain: "11111", + address: "0x3a3e4974FF0dA424276935d1e0c9587B5314ec31", + decimals: 18, + }, + representations: { + /// GOERLI + "1735353714": { + local: "0x3a3e4974FF0dA424276935d1e0c9587B5314ec31", + adopted: "0x3a3e4974FF0dA424276935d1e0c9587B5314ec31", + }, + /// OPTIMISM-GOERLI + "1735356532": { + local: "0x3a3e4974FF0dA424276935d1e0c9587B5314ec31", + adopted: "0x3a3e4974FF0dA424276935d1e0c9587B5314ec31", + }, + /// MUMBAI + "9991": { + local: "0x3a3e4974FF0dA424276935d1e0c9587B5314ec31", + adopted: "0x3a3e4974FF0dA424276935d1e0c9587B5314ec31", + }, + }, + }, ], agents: { relayerFeeVaults: { From 3e47679c1cfa746d7ecc6cdeb92cf81963b38826 Mon Sep 17 00:00:00 2001 From: just-a-node Date: Sun, 29 Oct 2023 16:15:58 -0600 Subject: [PATCH 05/20] feat: rewhitelisting xoc --- .../src/cli/init/config/mainnet/production.ts | 61 +++++++++++++------ 1 file changed, 43 insertions(+), 18 deletions(-) diff --git a/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts b/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts index c296e6ace6..7f97e3fc18 100644 --- a/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts +++ b/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts @@ -283,31 +283,51 @@ export const MAINNET_PRODUCTION_INIT_CONFIG: InitConfig = { }, }, }, + // { + // name: "XOC", + // // polygon + // canonical: { + // domain: "1886350457", + // address: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", + // decimals: 18, + // cap: utils.parseUnits("25000", 18).toString(), + // }, + // representations: { + // // mainnet + // "6648936": { + // local: "0x0000000000000000000000000000000000000000", + // adopted: "0x0000000000000000000000000000000000000000", + // }, + // // optimism + // "1869640809": { + // local: "0x0000000000000000000000000000000000000000", + // adopted: "0x0000000000000000000000000000000000000000", + // }, + // // arbitrum one + // "1634886255": { + // local: "0x0000000000000000000000000000000000000000", + // adopted: "0x0000000000000000000000000000000000000000", + // }, + // // bsc + // "6450786": { + // local: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", + // adopted: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", + // }, + // // gnosis + // "6778479": { + // local: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", + // adopted: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", + // }, + // }, + // }, { name: "XOC", - // polygon canonical: { - domain: "1886350457", + domain: "11111", address: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", decimals: 18, - cap: utils.parseUnits("25000", 18).toString(), }, representations: { - // mainnet - "6648936": { - local: "0x0000000000000000000000000000000000000000", - adopted: "0x0000000000000000000000000000000000000000", - }, - // optimism - "1869640809": { - local: "0x0000000000000000000000000000000000000000", - adopted: "0x0000000000000000000000000000000000000000", - }, - // arbitrum one - "1634886255": { - local: "0x0000000000000000000000000000000000000000", - adopted: "0x0000000000000000000000000000000000000000", - }, // bsc "6450786": { local: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", @@ -318,6 +338,11 @@ export const MAINNET_PRODUCTION_INIT_CONFIG: InitConfig = { local: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", adopted: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", }, + // polygon + "1886350457": { + local: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", + adopted: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", + }, }, }, { From e3f1b1a797b8a237858aaf1d9e2cc3314f190cbb Mon Sep 17 00:00:00 2001 From: just-a-node Date: Wed, 18 Oct 2023 15:33:07 -0600 Subject: [PATCH 06/20] feat: reregister XOC with pseudo-canonical domain --- .../contracts/src/cli/init/config/mainnet/production.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts b/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts index 7f97e3fc18..37f1842ded 100644 --- a/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts +++ b/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts @@ -284,13 +284,14 @@ export const MAINNET_PRODUCTION_INIT_CONFIG: InitConfig = { }, }, // { + // // TODO: remove after execution layer upgrade // name: "XOC", // // polygon // canonical: { // domain: "1886350457", // address: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", // decimals: 18, - // cap: utils.parseUnits("25000", 18).toString(), + // cap: utils.parseUnits("0", 18).toString(), // }, // representations: { // // mainnet @@ -320,6 +321,7 @@ export const MAINNET_PRODUCTION_INIT_CONFIG: InitConfig = { // }, // }, // }, + // { { name: "XOC", canonical: { From 51e63c8948d9bdc0c736fca5789538e7f6c33a5e Mon Sep 17 00:00:00 2001 From: just-a-node Date: Mon, 2 Oct 2023 11:49:49 -0600 Subject: [PATCH 07/20] feat: whitelist RADAR with pseudo-canonical domain --- .../src/cli/init/config/mainnet/production.ts | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts b/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts index 37f1842ded..3d7d4a6bb2 100644 --- a/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts +++ b/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts @@ -399,6 +399,43 @@ export const MAINNET_PRODUCTION_INIT_CONFIG: InitConfig = { }, }, }, + // { + // // TODO: remove after execution layer upgrade + // name: "xRADAR", + // canonical: { + // domain: "6648936", + // address: "0x202426c15a18a0e0fE3294415E66421891E2EB7C", + // decimals: 18, + // cap: utils.parseUnits("0", 18).toString(), + // }, + // representations: { + // /// BSC + // "6450786": { + // local: "0x489580eB70a50515296eF31E8179fF3e77E24965", + // adopted: "0x489580eB70a50515296eF31E8179fF3e77E24965", + // }, + // }, + // }, + { + name: "xRADAR", + canonical: { + domain: "11111", + address: "0x202426c15a18a0e0fE3294415E66421891E2EB7C", + decimals: 18, + }, + representations: { + /// MAINNET + "6648936": { + local: "0x202426c15a18a0e0fE3294415E66421891E2EB7C", + adopted: "0x202426c15a18a0e0fE3294415E66421891E2EB7C", + }, + /// BSC + "6450786": { + local: "0x489580eB70a50515296eF31E8179fF3e77E24965", + adopted: "0x489580eB70a50515296eF31E8179fF3e77E24965", + }, + }, + }, ], agents: { relayerFeeVaults: { From 15e8700bb947936e8754c12e335b16e0ef84aaae Mon Sep 17 00:00:00 2001 From: just-a-node Date: Sat, 2 Dec 2023 16:26:23 -0700 Subject: [PATCH 08/20] feat: add radar on polygon --- .../contracts/src/cli/init/config/mainnet/production.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts b/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts index 3d7d4a6bb2..84373b0f2e 100644 --- a/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts +++ b/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts @@ -434,6 +434,11 @@ export const MAINNET_PRODUCTION_INIT_CONFIG: InitConfig = { local: "0x489580eB70a50515296eF31E8179fF3e77E24965", adopted: "0x489580eB70a50515296eF31E8179fF3e77E24965", }, + /// Polygon + "1886350457": { + local: "0xdCb72AE4d5dc6Ae274461d57E65dB8D50d0a33AD", + adopted: "0xdCb72AE4d5dc6Ae274461d57E65dB8D50d0a33AD", + }, }, }, ], From d10d5070641e9fe28e705798aeae3ddc7ff3dbcc Mon Sep 17 00:00:00 2001 From: just-a-node Date: Thu, 14 Dec 2023 15:21:57 -0700 Subject: [PATCH 09/20] feat: add xoLIT --- .../src/cli/init/config/mainnet/production.ts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts b/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts index 84373b0f2e..20f598541f 100644 --- a/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts +++ b/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts @@ -441,6 +441,26 @@ export const MAINNET_PRODUCTION_INIT_CONFIG: InitConfig = { }, }, }, + { + name: "xoLIT", + canonical: { + domain: "11111", + address: "0x24F21b1864d4747a5c99045c96dA11DBFDa378f7", + decimals: 18, + }, + representations: { + /// ETHEREUM + "6648936": { + local: "0x24F21b1864d4747a5c99045c96dA11DBFDa378f7", + adopted: "0x24F21b1864d4747a5c99045c96dA11DBFDa378f7", + }, + /// ARBITRUM + "1634886255": { + local: "0x24F21b1864d4747a5c99045c96dA11DBFDa378f7", + adopted: "0x24F21b1864d4747a5c99045c96dA11DBFDa378f7", + }, + }, + }, ], agents: { relayerFeeVaults: { From b25a93b93cbfe1902ea8fa5665aba9abdf2d3e06 Mon Sep 17 00:00:00 2001 From: just-a-node Date: Mon, 8 Jan 2024 22:12:50 -0700 Subject: [PATCH 10/20] feat: add testnet estateX --- .../src/cli/init/config/testnet/production.ts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/packages/deployments/contracts/src/cli/init/config/testnet/production.ts b/packages/deployments/contracts/src/cli/init/config/testnet/production.ts index d2ec7354df..b68f63bdc3 100644 --- a/packages/deployments/contracts/src/cli/init/config/testnet/production.ts +++ b/packages/deployments/contracts/src/cli/init/config/testnet/production.ts @@ -324,6 +324,26 @@ export const TESTNET_PRODUCTION_INIT_CONFIG: InitConfig = { }, }, }, + { + name: "ESX", + canonical: { + domain: "11111", + address: "0x07d086Cc91BD3aad22C6ff76AFF6aefe15763258", + decimals: 9, + }, + representations: { + /// MUMBAI + "9991": { + local: "0x07d086Cc91BD3aad22C6ff76AFF6aefe15763258", + adopted: "0x07d086Cc91BD3aad22C6ff76AFF6aefe15763258", + }, + /// Goerli + "1735353714": { + local: "0x5EEee8B304Ad51447736F74A5675c2cB070e52A7", + adopted: "0x5EEee8B304Ad51447736F74A5675c2cB070e52A7", + }, + }, + }, ], agents: { relayerFeeVaults: { From f2badccdec16648d5e9e0483917eddd21868c14d Mon Sep 17 00:00:00 2001 From: just-a-node Date: Thu, 11 Jan 2024 01:35:02 -0700 Subject: [PATCH 11/20] feat: add testnet sDAI --- .../src/cli/init/config/testnet/production.ts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/packages/deployments/contracts/src/cli/init/config/testnet/production.ts b/packages/deployments/contracts/src/cli/init/config/testnet/production.ts index b68f63bdc3..3649a03f7a 100644 --- a/packages/deployments/contracts/src/cli/init/config/testnet/production.ts +++ b/packages/deployments/contracts/src/cli/init/config/testnet/production.ts @@ -344,6 +344,26 @@ export const TESTNET_PRODUCTION_INIT_CONFIG: InitConfig = { }, }, }, + { + name: "sDAI", + canonical: { + domain: "11111", + address: "0x110753D17A81fc7B4eA994abaCA3270f9B6Fe2BA", + decimals: 18, + }, + representations: { + /// Goerli + "1735353714": { + local: "0x110753D17A81fc7B4eA994abaCA3270f9B6Fe2BA", + adopted: "0x110753D17A81fc7B4eA994abaCA3270f9B6Fe2BA", + }, + /// Mumbai + "9991": { + local: "0x110753D17A81fc7B4eA994abaCA3270f9B6Fe2BA", + adopted: "0x110753D17A81fc7B4eA994abaCA3270f9B6Fe2BA", + }, + }, + }, ], agents: { relayerFeeVaults: { From 1489e2c8dc907baa3079fda8b3664fd696badf6f Mon Sep 17 00:00:00 2001 From: just-a-node Date: Fri, 12 Jan 2024 16:28:46 -0700 Subject: [PATCH 12/20] feat: redeploy of testnet sDAI --- .../src/cli/init/config/testnet/production.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/deployments/contracts/src/cli/init/config/testnet/production.ts b/packages/deployments/contracts/src/cli/init/config/testnet/production.ts index 3649a03f7a..145311d82b 100644 --- a/packages/deployments/contracts/src/cli/init/config/testnet/production.ts +++ b/packages/deployments/contracts/src/cli/init/config/testnet/production.ts @@ -348,19 +348,19 @@ export const TESTNET_PRODUCTION_INIT_CONFIG: InitConfig = { name: "sDAI", canonical: { domain: "11111", - address: "0x110753D17A81fc7B4eA994abaCA3270f9B6Fe2BA", + address: "0x272DF088C3bDafeDCa5f66D76B1372A6091eFc64", decimals: 18, }, representations: { /// Goerli "1735353714": { - local: "0x110753D17A81fc7B4eA994abaCA3270f9B6Fe2BA", - adopted: "0x110753D17A81fc7B4eA994abaCA3270f9B6Fe2BA", + local: "0x272DF088C3bDafeDCa5f66D76B1372A6091eFc64", + adopted: "0x272DF088C3bDafeDCa5f66D76B1372A6091eFc64", }, /// Mumbai "9991": { - local: "0x110753D17A81fc7B4eA994abaCA3270f9B6Fe2BA", - adopted: "0x110753D17A81fc7B4eA994abaCA3270f9B6Fe2BA", + local: "0x272DF088C3bDafeDCa5f66D76B1372A6091eFc64", + adopted: "0x272DF088C3bDafeDCa5f66D76B1372A6091eFc64", }, }, }, From 121078d26119c5af56b2084c88184c1439746acd Mon Sep 17 00:00:00 2001 From: just-a-node Date: Mon, 29 Jan 2024 18:28:37 -0700 Subject: [PATCH 13/20] feat: add testnet xGovT --- .../src/cli/init/config/testnet/production.ts | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/packages/deployments/contracts/src/cli/init/config/testnet/production.ts b/packages/deployments/contracts/src/cli/init/config/testnet/production.ts index 145311d82b..fc6e8e826f 100644 --- a/packages/deployments/contracts/src/cli/init/config/testnet/production.ts +++ b/packages/deployments/contracts/src/cli/init/config/testnet/production.ts @@ -364,6 +364,31 @@ export const TESTNET_PRODUCTION_INIT_CONFIG: InitConfig = { }, }, }, + { + name: "GovernTest", + canonical: { + domain: "11111", + address: "0xb8F010bC74e4de27d9e69063F3faf5F7317831d3", + decimals: 18, + }, + representations: { + /// Goerli + "1735353714": { + local: "0xb8F010bC74e4de27d9e69063F3faf5F7317831d3", + adopted: "0xb8F010bC74e4de27d9e69063F3faf5F7317831d3", + }, + /// Mumbai + "9991": { + local: "0xb8F010bC74e4de27d9e69063F3faf5F7317831d3", + adopted: "0xb8F010bC74e4de27d9e69063F3faf5F7317831d3", + }, + /// Linea + "1668247156": { + local: "0xB91471be67c8F2Ada2Cd36cA5EB439B017B80a37", + adopted: "0xB91471be67c8F2Ada2Cd36cA5EB439B017B80a37", + }, + }, + }, ], agents: { relayerFeeVaults: { From 51a453b263b93d5109ce6ea31fdbae086b895868 Mon Sep 17 00:00:00 2001 From: just-a-node Date: Thu, 22 Feb 2024 14:33:44 -0700 Subject: [PATCH 14/20] feat: add testnet xezETH --- .../src/cli/init/config/testnet/production.ts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/packages/deployments/contracts/src/cli/init/config/testnet/production.ts b/packages/deployments/contracts/src/cli/init/config/testnet/production.ts index fc6e8e826f..a29481284b 100644 --- a/packages/deployments/contracts/src/cli/init/config/testnet/production.ts +++ b/packages/deployments/contracts/src/cli/init/config/testnet/production.ts @@ -389,6 +389,26 @@ export const TESTNET_PRODUCTION_INIT_CONFIG: InitConfig = { }, }, }, + { + name: "xezETH", + canonical: { + domain: "11111", + address: "0xe60EEEEE9503D59c7db940889228fAceB0aF5DF2", + decimals: 18, + }, + representations: { + /// Goerli + "1735353714": { + local: "0xe60EEEEE9503D59c7db940889228fAceB0aF5DF2", + adopted: "0xe60EEEEE9503D59c7db940889228fAceB0aF5DF2", + }, + /// Optimism-Goerli + "1735356532": { + local: "0xe60EEEEE9503D59c7db940889228fAceB0aF5DF2", + adopted: "0xe60EEEEE9503D59c7db940889228fAceB0aF5DF2", + }, + }, + }, ], agents: { relayerFeeVaults: { From 09278f7360cfcc16afcebef2b14b8d979b68bca3 Mon Sep 17 00:00:00 2001 From: just-a-node Date: Thu, 22 Feb 2024 15:11:26 -0700 Subject: [PATCH 15/20] fix: import new fxn --- packages/deployments/contracts/src/cli/init/init.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/deployments/contracts/src/cli/init/init.ts b/packages/deployments/contracts/src/cli/init/init.ts index 97a47d3b4c..967f948ed5 100644 --- a/packages/deployments/contracts/src/cli/init/init.ts +++ b/packages/deployments/contracts/src/cli/init/init.ts @@ -3,7 +3,7 @@ import * as fs from "fs"; import { providers, Wallet, utils, constants } from "ethers"; import * as zk from "zksync-web3"; import commandLineArgs from "command-line-args"; -import { ajv, domainToChainId, GELATO_RELAYER_ADDRESS, getChainData } from "@connext/nxtp-utils"; +import { ajv, domainToChainId, getGelatoRelayerAddress, getChainData } from "@connext/nxtp-utils"; import { HttpNetworkUserConfig } from "hardhat/types"; import { canonizeId } from "../../domain"; @@ -483,9 +483,9 @@ export const initProtocol = async (protocol: ProtocolStack, apply: boolean, stag await updateIfNeeded({ apply, deployment: network.deployments.messaging.RelayerProxy, - desired: GELATO_RELAYER_ADDRESS, + desired: getGelatoRelayerAddress, read: { method: "gelatoRelayer" }, - write: { method: "setGelatoRelayer", args: [GELATO_RELAYER_ADDRESS] }, + write: { method: "setGelatoRelayer", args: [getGelatoRelayerAddress] }, chainData, }); From 4b46048c122876c51856c634d3b7012b3fcd5ed0 Mon Sep 17 00:00:00 2001 From: just-a-node Date: Sun, 3 Mar 2024 19:46:13 -0700 Subject: [PATCH 16/20] feat: whitelist ezeth --- .../src/cli/init/config/mainnet/production.ts | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts b/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts index 20f598541f..e538d39920 100644 --- a/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts +++ b/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts @@ -461,6 +461,31 @@ export const MAINNET_PRODUCTION_INIT_CONFIG: InitConfig = { }, }, }, + { + name: "ezETH", + canonical: { + domain: "11111", + address: "0x2416092f143378750bb29b79eD961ab195CcEea5", + decimals: 18, + }, + representations: { + /// ETHEREUM + "6648936": { + local: "0x2416092f143378750bb29b79eD961ab195CcEea5", + adopted: "0x2416092f143378750bb29b79eD961ab195CcEea5", + }, + /// ARBITRUM + "1634886255": { + local: "0x2416092f143378750bb29b79eD961ab195CcEea5", + adopted: "0x2416092f143378750bb29b79eD961ab195CcEea5", + }, + /// BNB + "6450786": { + local: "0x2416092f143378750bb29b79eD961ab195CcEea5", + adopted: "0x2416092f143378750bb29b79eD961ab195CcEea5", + }, + }, + }, ], agents: { relayerFeeVaults: { From daf1f93e5303ad9c51e605fa01fa2dea3a31cb0d Mon Sep 17 00:00:00 2001 From: just-a-node Date: Tue, 5 Mar 2024 13:41:12 -0700 Subject: [PATCH 17/20] feat: add ezeth on mode --- .../contracts/src/cli/init/config/mainnet/production.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts b/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts index e538d39920..86412f7cb5 100644 --- a/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts +++ b/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts @@ -11,6 +11,7 @@ export const MAINNET_PRODUCTION_INIT_CONFIG: InitConfig = { "1634886255", // ARBITRUM ONE "6450786", // BNB "6778479", // GNOSIS + "1836016741", // MODE ], // NOTE: ENSURE LPTOKEN AND BRIDGETOKEN NAMES ARE GENERATED CORRECTLY BASED // ON THE NAME GIVEN IN EACH ASSET ENTRY @@ -484,6 +485,11 @@ export const MAINNET_PRODUCTION_INIT_CONFIG: InitConfig = { local: "0x2416092f143378750bb29b79eD961ab195CcEea5", adopted: "0x2416092f143378750bb29b79eD961ab195CcEea5", }, + /// MODE + "1836016741": { + local: "0x2416092f143378750bb29b79eD961ab195CcEea5", + adopted: "0x2416092f143378750bb29b79eD961ab195CcEea5", + }, }, }, ], From 4d7bade99365fee4de348b06ebb1ae5a6be9e8df Mon Sep 17 00:00:00 2001 From: just-a-node Date: Thu, 14 Mar 2024 14:45:55 -0600 Subject: [PATCH 18/20] feat: ezeth linea --- .../contracts/src/cli/init/config/mainnet/production.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts b/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts index 2194cf99aa..6e95b2b467 100644 --- a/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts +++ b/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts @@ -614,6 +614,11 @@ export const MAINNET_PRODUCTION_INIT_CONFIG: InitConfig = { local: "0x2416092f143378750bb29b79eD961ab195CcEea5", adopted: "0x2416092f143378750bb29b79eD961ab195CcEea5", }, + /// LINEA + "1818848877": { + local: "0x2416092f143378750bb29b79eD961ab195CcEea5", + adopted: "0x2416092f143378750bb29b79eD961ab195CcEea5", + }, }, }, { From 8418fb402cce7e7c5efd35b5e1acc3449a612908 Mon Sep 17 00:00:00 2001 From: Prathmesh <201952225@iiitvadodara.ac.in> Date: Fri, 29 Mar 2024 18:14:10 +0530 Subject: [PATCH 19/20] fix: uncomment config --- .../src/cli/init/config/mainnet/production.ts | 1216 ++++++++--------- 1 file changed, 608 insertions(+), 608 deletions(-) diff --git a/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts b/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts index fa5832a2bd..d7e2db6366 100644 --- a/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts +++ b/packages/deployments/contracts/src/cli/init/config/mainnet/production.ts @@ -26,474 +26,474 @@ export const MAINNET_PRODUCTION_INIT_CONFIG: InitConfig = { // ON THE NAME GIVEN IN EACH ASSET ENTRY assets: [ - // { - // name: "USDT", - // canonical: { - // domain: "6648936", - // address: "0xdAC17F958D2ee523a2206206994597C13D831ec7", - // decimals: 6, - // cap: utils.parseUnits("10000000", 6).toString(), - // }, - // representations: { - // "1869640809": { - // local: "0x4cbb28fa12264cd8e87c62f4e1d9f5955ce67d20", - // adopted: "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58", - // }, - // "1886350457": { - // local: "0xe221c5a2a8348f12dcb2b0e88693522ebad2690f", - // adopted: "0xc2132D05D31c914a87C6611C10748AEb04B58e8F", - // }, - // "1634886255": { - // local: "0x2fd7e61033b3904c65aa9a9b83dcd344fa19ffd2", - // adopted: "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9", - // }, - // "6450786": { - // local: "0xd609f26b5547d5e31562b29150769cb7c774b97a", - // adopted: "0x55d398326f99059fF775485246999027B3197955", - // }, - // "6778479": { - // local: "0xf4d944883d6fddc56d3534986fef82105cadbfa1", - // adopted: "0x4ECaBa5870353805a9F068101A40E0f32ed605C6", - // }, - // "1818848877": { - // local: "0xbd7eaed30936670c931b718f5d9014aff82fc767", - // adopted: "0xA219439258ca9da29E9Cc4cE5596924745e12B93", - // }, - // "1835365481": { - // // metis - // local: "0xa6A8d22D5da43C9f6E5cF7b4e50941784e70F688", - // adopted: "0xbB06DCA3AE6887fAbF931640f67cab3e3a16F4dC", - // }, - // }, - // }, - // { - // name: "DAI", - // canonical: { - // domain: "6648936", - // address: "0x6B175474E89094C44Da98b954EedeAC495271d0F", - // decimals: 18, - // cap: utils.parseUnits("10000000", 18).toString(), - // }, - // representations: { - // "1869640809": { - // local: "0xd64bd028b560bbfc732ea18f282c64b86f3468e0", - // adopted: "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1", - // }, - // "1886350457": { - // local: "0xadce87b14d570665222c1172d18a221bf7690d5a", - // adopted: "0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063", - // }, - // "1634886255": { - // local: "0xfde99b3b3fbb69553d7dae105ef34ba4fe971190", - // adopted: "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1", - // }, - // "6450786": { - // local: "0x86a343bcf17d79c475d300eed35f0145f137d0c9", - // adopted: "0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3", - // }, - // "6778479": { - // local: "0x0e1d5bcd2ac5cf2f71841a9667afc1e995caaf4f", - // adopted: "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d", - // }, - // "1818848877": { - // local: "0x7360a597290612787833ee924c449c61cc0689e4", - // adopted: "0x4AF15ec2A0BD43Db75dd04E62FAA3B8EF36b00d5", - // }, - // "1650553709": { - // // base - // local: "0xC90a82e926d3a87899b3717aba0262BF66Ef53E8", - // adopted: "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb", - // }, - // }, - // }, - // { - // name: "USDC", - // canonical: { - // domain: "6648936", - // address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", - // decimals: 6, - // cap: utils.parseUnits("10000000", 6).toString(), - // }, - // representations: { - // "1869640809": { - // local: "0x67E51f46e8e14D4E4cab9dF48c59ad8F512486DD", - // adopted: "0x7F5c764cBc14f9669B88837ca1490cCa17c31607", - // }, - // "1886350457": { - // local: "0xF96C6d2537e1af1a9503852eB2A4AF264272a5B6", - // adopted: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174", - // }, - // "1634886255": { - // local: "0x8c556cF37faa0eeDAC7aE665f1Bb0FbD4b2eae36", - // adopted: "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8", - // }, - // "6450786": { - // local: "0x5e7D83dA751F4C9694b13aF351B30aC108f32C38", - // adopted: "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d", - // }, - // "6778479": { - // local: "0x44CF74238d840a5fEBB0eAa089D05b763B73faB8", - // adopted: "0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83", - // }, - // "1818848877": { - // local: "0x331152ca43b50b39f3a9f203685b98dbb9b42342", - // adopted: "0x176211869cA2b568f2A7D4EE941E073a821EE1ff", - // }, - // "1835365481": { - // // metis - // local: "0x9ac9aD5A82Ccd0Ab7584a037A7A2334Dc3715Be2", - // adopted: "0xEA32A96608495e54156Ae48931A7c20f0dcc1a21", - // }, - // "1650553709": { - // // base - // local: "0x1ede59e0d39B14c038698B1036BDE9a4819C86D4", - // adopted: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", - // }, - // }, - // }, - // { - // name: "WETH", - // canonical: { - // domain: "6648936", - // address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", - // decimals: 18, - // cap: utils.parseUnits("10000000", 18).toString(), - // }, - // representations: { - // "1869640809": { - // local: "0xbAD5B3c68F855EaEcE68203312Fd88AD3D365e50", - // adopted: "0x4200000000000000000000000000000000000006", - // }, - // "1886350457": { - // local: "0x4b8BaC8Dd1CAA52E32C07755c17eFadeD6A0bbD0", - // adopted: "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619", - // }, - // "1634886255": { - // local: "0x2983bf5c334743Aa6657AD70A55041d720d225dB", - // adopted: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1", - // }, - // "6450786": { - // local: "0xA9CB51C666D2AF451d87442Be50747B31BB7d805", - // adopted: "0x2170Ed0880ac9A755fd29B2688956BD959F933F8", - // }, - // "6778479": { - // local: "0x538E2dDbfDf476D24cCb1477A518A82C9EA81326", - // adopted: "0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1", - // }, - // "1818848877": { - // local: "0x0573ad07ca4f74757e5b2417bf225bebebcf66d9", - // adopted: "0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f", - // }, - // "1835365481": { - // // metis - // local: "0x3883B5Bdd61BA1b687de69eE50c9738D5ec501E9", - // adopted: "0x420000000000000000000000000000000000000a", - // }, - // "1650553709": { - // // base - // local: "0xE08D4907b2C7aa5458aC86596b6D17B1feA03F7E", - // adopted: "0x4200000000000000000000000000000000000006", - // }, - // "1836016741": { - // // mode - // local: "0x609aEfb9FB2Ee8f2FDAd5dc48efb8fA4EE0e80fB", - // adopted: "0x4200000000000000000000000000000000000006", - // }, - // }, - // }, - // { - // name: "KP3R", - // canonical: { - // domain: "6648936", - // address: "0x1cEB5cB57C4D4E2b2433641b95Dd330A33185A44", - // decimals: 18, - // cap: utils.parseUnits("10000000", 18).toString(), - // }, - // representations: { - // // optimism - // "1869640809": { - // local: "0xca87472DBfB041c2e5a2672d319eA6184Ad9755e", - // adopted: "0xca87472DBfB041c2e5a2672d319eA6184Ad9755e", - // }, - // // polygon - // "1886350457": { - // local: "0x4a2bE2075588BcE6A7E072574698a7DbbAc39b08", - // adopted: "0x4a2bE2075588BcE6A7E072574698a7DbbAc39b08", - // }, - // // bnb - // "6450786": { - // local: "0x2aa48B3d6EFe651542D22CEF0CB7ea853D97A850", - // adopted: "0x2aa48B3d6EFe651542D22CEF0CB7ea853D97A850", - // }, - // // gnosis - // "6778479": { - // local: "0x398bB7642BD0A5c7CB64f6255159BFABa5512342", - // adopted: "0x398bB7642BD0A5c7CB64f6255159BFABa5512342", - // }, - // // arbtirum-one - // "1634886255": { - // local: "0x16aF9fe3f9E48547971af959fD631A8cDBE40484", - // adopted: "0x16aF9fe3f9E48547971af959fD631A8cDBE40484", - // }, - // }, - // }, - // { - // name: "kLP", - // canonical: { - // domain: "6648936", - // address: "0x3f6740b5898c5D3650ec6eAce9a649Ac791e44D7", - // decimals: 18, - // cap: utils.parseUnits("10000000", 18).toString(), - // }, - // representations: { - // // optimism - // "1869640809": { - // local: "0xf232D1Afbed9Df3880143d4FAD095f3698c4d1c6", - // adopted: "0xf232D1Afbed9Df3880143d4FAD095f3698c4d1c6", - // }, - // // polygon - // "1886350457": { - // local: "0x7cf93c434260519537184631A347eE8AD0Bc68Cb", - // adopted: "0x7cf93c434260519537184631A347eE8AD0Bc68Cb", - // }, - // // bnb - // "6450786": { - // local: "0xd00D9EE9238687A2041004Fe9D55a2299e0Af2fa", - // adopted: "0xd00D9EE9238687A2041004Fe9D55a2299e0Af2fa", - // }, - // // gnosis - // "6778479": { - // local: "0x386508A233EE1494d31555Ab8aa2df6D6DC76E61", - // adopted: "0x386508A233EE1494d31555Ab8aa2df6D6DC76E61", - // }, - // // arbtirum-one - // "1634886255": { - // local: "0x386E2699f89EDE6005c4913512bC88F05847607B", - // adopted: "0x386E2699f89EDE6005c4913512bC88F05847607B", - // }, - // }, - // }, - // { - // name: "nextAlUSD", - // canonical: { - // domain: "6648936", - // address: "0xBC6DA0FE9aD5f3b0d58160288917AA56653660E9", - // decimals: 18, - // cap: utils.parseUnits("10000000", 18).toString(), - // }, - // representations: { - // /// ARBITRUM - // "1634886255": { - // local: "0x49000f5e208349D2fA678263418e21365208E498", - // adopted: "0x49000f5e208349D2fA678263418e21365208E498", - // }, - // /// OPTIMISM - // "1869640809": { - // local: "0x49000f5e208349D2fA678263418e21365208E498", - // adopted: "0x49000f5e208349D2fA678263418e21365208E498", - // }, - // // polygon - // "1886350457": { - // local: "0x0000000000000000000000000000000000000000", - // adopted: "0x0000000000000000000000000000000000000000", - // }, - // // bnb - // "6450786": { - // local: "0x0000000000000000000000000000000000000000", - // adopted: "0x0000000000000000000000000000000000000000", - // }, - // // gnosis - // "6778479": { - // local: "0x0000000000000000000000000000000000000000", - // adopted: "0x0000000000000000000000000000000000000000", - // }, - // }, - // }, - // { - // name: "nextAlETH", - // canonical: { - // domain: "6648936", - // address: "0x0100546F2cD4C9D97f798fFC9755E47865FF7Ee6", - // decimals: 18, - // cap: utils.parseUnits("10000000", 18).toString(), - // }, - // representations: { - // /// ARBITRUM - // "1634886255": { - // local: "0x303241e2B3b4aeD0bb0F8623e7442368FED8Faf3", - // adopted: "0x303241e2B3b4aeD0bb0F8623e7442368FED8Faf3", - // }, - // /// OPTIMISM - // "1869640809": { - // local: "0x303241e2B3b4aeD0bb0F8623e7442368FED8Faf3", - // adopted: "0x303241e2B3b4aeD0bb0F8623e7442368FED8Faf3", - // }, - // // polygon - // "1886350457": { - // local: "0x0000000000000000000000000000000000000000", - // adopted: "0x0000000000000000000000000000000000000000", - // }, - // // bnb - // "6450786": { - // local: "0x0000000000000000000000000000000000000000", - // adopted: "0x0000000000000000000000000000000000000000", - // }, - // // gnosis - // "6778479": { - // local: "0x0000000000000000000000000000000000000000", - // adopted: "0x0000000000000000000000000000000000000000", - // }, - // }, - // }, - // { - // name: "ALCX", - // canonical: { - // // Pseudo-canonical domain - // domain: "11111", - // address: "0xbd18f9be5675a9658335e6b7e79d9d9b394ac043", - // decimals: 18, - // }, - // representations: { - // /// MAINNET - // "6648936": { - // local: "0xbd18f9be5675a9658335e6b7e79d9d9b394ac043", - // adopted: "0xbd18f9be5675a9658335e6b7e79d9d9b394ac043", - // }, - // /// ARBITRUM - // "1634886255": { - // local: "0x27b58D226fe8f792730a795764945Cf146815AA7", - // adopted: "0x27b58D226fe8f792730a795764945Cf146815AA7", - // }, - // /// OPTIMISM - // "1869640809": { - // local: "0xE974B9b31dBFf4369b94a1bAB5e228f35ed44125", - // adopted: "0xE974B9b31dBFf4369b94a1bAB5e228f35ed44125", - // }, - // }, - // }, - // { - // name: "XOC", - // canonical: { - // domain: "11111", - // address: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", - // decimals: 18, - // }, - // representations: { - // // bsc - // "6450786": { - // local: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", - // adopted: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", - // }, - // // gnosis - // "6778479": { - // local: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", - // adopted: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", - // }, - // // polygon - // "1886350457": { - // local: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", - // adopted: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", - // }, - // }, - // }, - // { - // name: "BTRST", - // canonical: { - // domain: "6648936", - // address: "0x799ebfABE77a6E34311eeEe9825190B9ECe32824", - // decimals: 18, - // cap: utils.parseUnits("10000000", 18).toString(), - // }, - // representations: { - // /// POLYGON - // "1886350457": { - // local: "0x8C92DC2B9D6A8A567c7Bd80C5db7a1eDA4fA9A91", - // adopted: "0x8C92DC2B9D6A8A567c7Bd80C5db7a1eDA4fA9A91", - // }, - // }, - // }, - // { - // name: "NEXT", - // canonical: { - // domain: "6648936", - // address: "0x58b9cB810A68a7f3e1E4f8Cb45D1B9B3c79705E8", - // decimals: 18, - // cap: utils.parseUnits("500000000", 18).toString(), - // }, - // representations: { - // // optimism - // "1869640809": { - // local: "0x58b9cB810A68a7f3e1E4f8Cb45D1B9B3c79705E8", - // adopted: "0x58b9cB810A68a7f3e1E4f8Cb45D1B9B3c79705E8", - // }, - // // arbitrum one - // "1634886255": { - // local: "0x58b9cB810A68a7f3e1E4f8Cb45D1B9B3c79705E8", - // adopted: "0x58b9cB810A68a7f3e1E4f8Cb45D1B9B3c79705E8", - // }, - // // polygon - // "1886350457": { - // local: "0x58b9cB810A68a7f3e1E4f8Cb45D1B9B3c79705E8", - // adopted: "0x58b9cB810A68a7f3e1E4f8Cb45D1B9B3c79705E8", - // }, - // // bsc - // "6450786": { - // local: "0x58b9cB810A68a7f3e1E4f8Cb45D1B9B3c79705E8", - // adopted: "0x58b9cB810A68a7f3e1E4f8Cb45D1B9B3c79705E8", - // }, - // // gnosis - // "6778479": { - // local: "0x58b9cB810A68a7f3e1E4f8Cb45D1B9B3c79705E8", - // adopted: "0x58b9cB810A68a7f3e1E4f8Cb45D1B9B3c79705E8", - // }, - // }, - // }, + { + name: "USDT", + canonical: { + domain: "6648936", + address: "0xdAC17F958D2ee523a2206206994597C13D831ec7", + decimals: 6, + cap: utils.parseUnits("10000000", 6).toString(), + }, + representations: { + "1869640809": { + local: "0x4cbb28fa12264cd8e87c62f4e1d9f5955ce67d20", + adopted: "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58", + }, + "1886350457": { + local: "0xe221c5a2a8348f12dcb2b0e88693522ebad2690f", + adopted: "0xc2132D05D31c914a87C6611C10748AEb04B58e8F", + }, + "1634886255": { + local: "0x2fd7e61033b3904c65aa9a9b83dcd344fa19ffd2", + adopted: "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9", + }, + "6450786": { + local: "0xd609f26b5547d5e31562b29150769cb7c774b97a", + adopted: "0x55d398326f99059fF775485246999027B3197955", + }, + "6778479": { + local: "0xf4d944883d6fddc56d3534986fef82105cadbfa1", + adopted: "0x4ECaBa5870353805a9F068101A40E0f32ed605C6", + }, + "1818848877": { + local: "0xbd7eaed30936670c931b718f5d9014aff82fc767", + adopted: "0xA219439258ca9da29E9Cc4cE5596924745e12B93", + }, + "1835365481": { + // metis + local: "0xa6A8d22D5da43C9f6E5cF7b4e50941784e70F688", + adopted: "0xbB06DCA3AE6887fAbF931640f67cab3e3a16F4dC", + }, + }, + }, + { + name: "DAI", + canonical: { + domain: "6648936", + address: "0x6B175474E89094C44Da98b954EedeAC495271d0F", + decimals: 18, + cap: utils.parseUnits("10000000", 18).toString(), + }, + representations: { + "1869640809": { + local: "0xd64bd028b560bbfc732ea18f282c64b86f3468e0", + adopted: "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1", + }, + "1886350457": { + local: "0xadce87b14d570665222c1172d18a221bf7690d5a", + adopted: "0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063", + }, + "1634886255": { + local: "0xfde99b3b3fbb69553d7dae105ef34ba4fe971190", + adopted: "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1", + }, + "6450786": { + local: "0x86a343bcf17d79c475d300eed35f0145f137d0c9", + adopted: "0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3", + }, + "6778479": { + local: "0x0e1d5bcd2ac5cf2f71841a9667afc1e995caaf4f", + adopted: "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d", + }, + "1818848877": { + local: "0x7360a597290612787833ee924c449c61cc0689e4", + adopted: "0x4AF15ec2A0BD43Db75dd04E62FAA3B8EF36b00d5", + }, + "1650553709": { + // base + local: "0xC90a82e926d3a87899b3717aba0262BF66Ef53E8", + adopted: "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb", + }, + }, + }, + { + name: "USDC", + canonical: { + domain: "6648936", + address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", + decimals: 6, + cap: utils.parseUnits("10000000", 6).toString(), + }, + representations: { + "1869640809": { + local: "0x67E51f46e8e14D4E4cab9dF48c59ad8F512486DD", + adopted: "0x7F5c764cBc14f9669B88837ca1490cCa17c31607", + }, + "1886350457": { + local: "0xF96C6d2537e1af1a9503852eB2A4AF264272a5B6", + adopted: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174", + }, + "1634886255": { + local: "0x8c556cF37faa0eeDAC7aE665f1Bb0FbD4b2eae36", + adopted: "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8", + }, + "6450786": { + local: "0x5e7D83dA751F4C9694b13aF351B30aC108f32C38", + adopted: "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d", + }, + "6778479": { + local: "0x44CF74238d840a5fEBB0eAa089D05b763B73faB8", + adopted: "0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83", + }, + "1818848877": { + local: "0x331152ca43b50b39f3a9f203685b98dbb9b42342", + adopted: "0x176211869cA2b568f2A7D4EE941E073a821EE1ff", + }, + "1835365481": { + // metis + local: "0x9ac9aD5A82Ccd0Ab7584a037A7A2334Dc3715Be2", + adopted: "0xEA32A96608495e54156Ae48931A7c20f0dcc1a21", + }, + "1650553709": { + // base + local: "0x1ede59e0d39B14c038698B1036BDE9a4819C86D4", + adopted: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", + }, + }, + }, + { + name: "WETH", + canonical: { + domain: "6648936", + address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", + decimals: 18, + cap: utils.parseUnits("10000000", 18).toString(), + }, + representations: { + "1869640809": { + local: "0xbAD5B3c68F855EaEcE68203312Fd88AD3D365e50", + adopted: "0x4200000000000000000000000000000000000006", + }, + "1886350457": { + local: "0x4b8BaC8Dd1CAA52E32C07755c17eFadeD6A0bbD0", + adopted: "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619", + }, + "1634886255": { + local: "0x2983bf5c334743Aa6657AD70A55041d720d225dB", + adopted: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1", + }, + "6450786": { + local: "0xA9CB51C666D2AF451d87442Be50747B31BB7d805", + adopted: "0x2170Ed0880ac9A755fd29B2688956BD959F933F8", + }, + "6778479": { + local: "0x538E2dDbfDf476D24cCb1477A518A82C9EA81326", + adopted: "0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1", + }, + "1818848877": { + local: "0x0573ad07ca4f74757e5b2417bf225bebebcf66d9", + adopted: "0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f", + }, + "1835365481": { + // metis + local: "0x3883B5Bdd61BA1b687de69eE50c9738D5ec501E9", + adopted: "0x420000000000000000000000000000000000000a", + }, + "1650553709": { + // base + local: "0xE08D4907b2C7aa5458aC86596b6D17B1feA03F7E", + adopted: "0x4200000000000000000000000000000000000006", + }, + "1836016741": { + // mode + local: "0x609aEfb9FB2Ee8f2FDAd5dc48efb8fA4EE0e80fB", + adopted: "0x4200000000000000000000000000000000000006", + }, + }, + }, + { + name: "KP3R", + canonical: { + domain: "6648936", + address: "0x1cEB5cB57C4D4E2b2433641b95Dd330A33185A44", + decimals: 18, + cap: utils.parseUnits("10000000", 18).toString(), + }, + representations: { + // optimism + "1869640809": { + local: "0xca87472DBfB041c2e5a2672d319eA6184Ad9755e", + adopted: "0xca87472DBfB041c2e5a2672d319eA6184Ad9755e", + }, + // polygon + "1886350457": { + local: "0x4a2bE2075588BcE6A7E072574698a7DbbAc39b08", + adopted: "0x4a2bE2075588BcE6A7E072574698a7DbbAc39b08", + }, + // bnb + "6450786": { + local: "0x2aa48B3d6EFe651542D22CEF0CB7ea853D97A850", + adopted: "0x2aa48B3d6EFe651542D22CEF0CB7ea853D97A850", + }, + // gnosis + "6778479": { + local: "0x398bB7642BD0A5c7CB64f6255159BFABa5512342", + adopted: "0x398bB7642BD0A5c7CB64f6255159BFABa5512342", + }, + // arbtirum-one + "1634886255": { + local: "0x16aF9fe3f9E48547971af959fD631A8cDBE40484", + adopted: "0x16aF9fe3f9E48547971af959fD631A8cDBE40484", + }, + }, + }, + { + name: "kLP", + canonical: { + domain: "6648936", + address: "0x3f6740b5898c5D3650ec6eAce9a649Ac791e44D7", + decimals: 18, + cap: utils.parseUnits("10000000", 18).toString(), + }, + representations: { + // optimism + "1869640809": { + local: "0xf232D1Afbed9Df3880143d4FAD095f3698c4d1c6", + adopted: "0xf232D1Afbed9Df3880143d4FAD095f3698c4d1c6", + }, + // polygon + "1886350457": { + local: "0x7cf93c434260519537184631A347eE8AD0Bc68Cb", + adopted: "0x7cf93c434260519537184631A347eE8AD0Bc68Cb", + }, + // bnb + "6450786": { + local: "0xd00D9EE9238687A2041004Fe9D55a2299e0Af2fa", + adopted: "0xd00D9EE9238687A2041004Fe9D55a2299e0Af2fa", + }, + // gnosis + "6778479": { + local: "0x386508A233EE1494d31555Ab8aa2df6D6DC76E61", + adopted: "0x386508A233EE1494d31555Ab8aa2df6D6DC76E61", + }, + // arbtirum-one + "1634886255": { + local: "0x386E2699f89EDE6005c4913512bC88F05847607B", + adopted: "0x386E2699f89EDE6005c4913512bC88F05847607B", + }, + }, + }, + { + name: "nextAlUSD", + canonical: { + domain: "6648936", + address: "0xBC6DA0FE9aD5f3b0d58160288917AA56653660E9", + decimals: 18, + cap: utils.parseUnits("10000000", 18).toString(), + }, + representations: { + /// ARBITRUM + "1634886255": { + local: "0x49000f5e208349D2fA678263418e21365208E498", + adopted: "0x49000f5e208349D2fA678263418e21365208E498", + }, + /// OPTIMISM + "1869640809": { + local: "0x49000f5e208349D2fA678263418e21365208E498", + adopted: "0x49000f5e208349D2fA678263418e21365208E498", + }, + // polygon + "1886350457": { + local: "0x0000000000000000000000000000000000000000", + adopted: "0x0000000000000000000000000000000000000000", + }, + // bnb + "6450786": { + local: "0x0000000000000000000000000000000000000000", + adopted: "0x0000000000000000000000000000000000000000", + }, + // gnosis + "6778479": { + local: "0x0000000000000000000000000000000000000000", + adopted: "0x0000000000000000000000000000000000000000", + }, + }, + }, + { + name: "nextAlETH", + canonical: { + domain: "6648936", + address: "0x0100546F2cD4C9D97f798fFC9755E47865FF7Ee6", + decimals: 18, + cap: utils.parseUnits("10000000", 18).toString(), + }, + representations: { + /// ARBITRUM + "1634886255": { + local: "0x303241e2B3b4aeD0bb0F8623e7442368FED8Faf3", + adopted: "0x303241e2B3b4aeD0bb0F8623e7442368FED8Faf3", + }, + /// OPTIMISM + "1869640809": { + local: "0x303241e2B3b4aeD0bb0F8623e7442368FED8Faf3", + adopted: "0x303241e2B3b4aeD0bb0F8623e7442368FED8Faf3", + }, + // polygon + "1886350457": { + local: "0x0000000000000000000000000000000000000000", + adopted: "0x0000000000000000000000000000000000000000", + }, + // bnb + "6450786": { + local: "0x0000000000000000000000000000000000000000", + adopted: "0x0000000000000000000000000000000000000000", + }, + // gnosis + "6778479": { + local: "0x0000000000000000000000000000000000000000", + adopted: "0x0000000000000000000000000000000000000000", + }, + }, + }, + { + name: "ALCX", + canonical: { + // Pseudo-canonical domain + domain: "11111", + address: "0xbd18f9be5675a9658335e6b7e79d9d9b394ac043", + decimals: 18, + }, + representations: { + /// MAINNET + "6648936": { + local: "0xbd18f9be5675a9658335e6b7e79d9d9b394ac043", + adopted: "0xbd18f9be5675a9658335e6b7e79d9d9b394ac043", + }, + /// ARBITRUM + "1634886255": { + local: "0x27b58D226fe8f792730a795764945Cf146815AA7", + adopted: "0x27b58D226fe8f792730a795764945Cf146815AA7", + }, + /// OPTIMISM + "1869640809": { + local: "0xE974B9b31dBFf4369b94a1bAB5e228f35ed44125", + adopted: "0xE974B9b31dBFf4369b94a1bAB5e228f35ed44125", + }, + }, + }, + { + name: "XOC", + canonical: { + domain: "11111", + address: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", + decimals: 18, + }, + representations: { + // bsc + "6450786": { + local: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", + adopted: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", + }, + // gnosis + "6778479": { + local: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", + adopted: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", + }, + // polygon + "1886350457": { + local: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", + adopted: "0xa411c9Aa00E020e4f88Bc19996d29c5B7ADB4ACf", + }, + }, + }, + { + name: "BTRST", + canonical: { + domain: "6648936", + address: "0x799ebfABE77a6E34311eeEe9825190B9ECe32824", + decimals: 18, + cap: utils.parseUnits("10000000", 18).toString(), + }, + representations: { + /// POLYGON + "1886350457": { + local: "0x8C92DC2B9D6A8A567c7Bd80C5db7a1eDA4fA9A91", + adopted: "0x8C92DC2B9D6A8A567c7Bd80C5db7a1eDA4fA9A91", + }, + }, + }, + { + name: "NEXT", + canonical: { + domain: "6648936", + address: "0x58b9cB810A68a7f3e1E4f8Cb45D1B9B3c79705E8", + decimals: 18, + cap: utils.parseUnits("500000000", 18).toString(), + }, + representations: { + // optimism + "1869640809": { + local: "0x58b9cB810A68a7f3e1E4f8Cb45D1B9B3c79705E8", + adopted: "0x58b9cB810A68a7f3e1E4f8Cb45D1B9B3c79705E8", + }, + // arbitrum one + "1634886255": { + local: "0x58b9cB810A68a7f3e1E4f8Cb45D1B9B3c79705E8", + adopted: "0x58b9cB810A68a7f3e1E4f8Cb45D1B9B3c79705E8", + }, + // polygon + "1886350457": { + local: "0x58b9cB810A68a7f3e1E4f8Cb45D1B9B3c79705E8", + adopted: "0x58b9cB810A68a7f3e1E4f8Cb45D1B9B3c79705E8", + }, + // bsc + "6450786": { + local: "0x58b9cB810A68a7f3e1E4f8Cb45D1B9B3c79705E8", + adopted: "0x58b9cB810A68a7f3e1E4f8Cb45D1B9B3c79705E8", + }, + // gnosis + "6778479": { + local: "0x58b9cB810A68a7f3e1E4f8Cb45D1B9B3c79705E8", + adopted: "0x58b9cB810A68a7f3e1E4f8Cb45D1B9B3c79705E8", + }, + }, + }, - // { - // name: "xRADAR", - // canonical: { - // domain: "11111", - // address: "0x202426c15a18a0e0fE3294415E66421891E2EB7C", - // decimals: 18, - // }, - // representations: { - // /// MAINNET - // "6648936": { - // local: "0x202426c15a18a0e0fE3294415E66421891E2EB7C", - // adopted: "0x202426c15a18a0e0fE3294415E66421891E2EB7C", - // }, - // /// BSC - // "6450786": { - // local: "0x489580eB70a50515296eF31E8179fF3e77E24965", - // adopted: "0x489580eB70a50515296eF31E8179fF3e77E24965", - // }, - // /// Polygon - // "1886350457": { - // local: "0xdCb72AE4d5dc6Ae274461d57E65dB8D50d0a33AD", - // adopted: "0xdCb72AE4d5dc6Ae274461d57E65dB8D50d0a33AD", - // }, - // }, - // }, - // { - // name: "xoLIT", - // canonical: { - // domain: "11111", - // address: "0x24F21b1864d4747a5c99045c96dA11DBFDa378f7", - // decimals: 18, - // }, - // representations: { - // /// ETHEREUM - // "6648936": { - // local: "0x24F21b1864d4747a5c99045c96dA11DBFDa378f7", - // adopted: "0x24F21b1864d4747a5c99045c96dA11DBFDa378f7", - // }, - // /// ARBITRUM - // "1634886255": { - // local: "0x24F21b1864d4747a5c99045c96dA11DBFDa378f7", - // adopted: "0x24F21b1864d4747a5c99045c96dA11DBFDa378f7", - // }, - // }, - // }, + { + name: "xRADAR", + canonical: { + domain: "11111", + address: "0x202426c15a18a0e0fE3294415E66421891E2EB7C", + decimals: 18, + }, + representations: { + /// MAINNET + "6648936": { + local: "0x202426c15a18a0e0fE3294415E66421891E2EB7C", + adopted: "0x202426c15a18a0e0fE3294415E66421891E2EB7C", + }, + /// BSC + "6450786": { + local: "0x489580eB70a50515296eF31E8179fF3e77E24965", + adopted: "0x489580eB70a50515296eF31E8179fF3e77E24965", + }, + /// Polygon + "1886350457": { + local: "0xdCb72AE4d5dc6Ae274461d57E65dB8D50d0a33AD", + adopted: "0xdCb72AE4d5dc6Ae274461d57E65dB8D50d0a33AD", + }, + }, + }, + { + name: "xoLIT", + canonical: { + domain: "11111", + address: "0x24F21b1864d4747a5c99045c96dA11DBFDa378f7", + decimals: 18, + }, + representations: { + /// ETHEREUM + "6648936": { + local: "0x24F21b1864d4747a5c99045c96dA11DBFDa378f7", + adopted: "0x24F21b1864d4747a5c99045c96dA11DBFDa378f7", + }, + /// ARBITRUM + "1634886255": { + local: "0x24F21b1864d4747a5c99045c96dA11DBFDa378f7", + adopted: "0x24F21b1864d4747a5c99045c96dA11DBFDa378f7", + }, + }, + }, { name: "ezETH", canonical: { @@ -529,147 +529,147 @@ export const MAINNET_PRODUCTION_INIT_CONFIG: InitConfig = { }, }, }, - // { - // name: "URUS", - // canonical: { - // domain: "11111", - // address: "0x21d3a2faA153168C46Ac1428A84BdD859490505F", - // decimals: 18, - // }, - // representations: { - // "6648936": { - // local: "0x21d3a2faA153168C46Ac1428A84BdD859490505F", - // adopted: "0x21d3a2faA153168C46Ac1428A84BdD859490505F", - // }, - // "6450786": { - // local: "0x21d3a2faA153168C46Ac1428A84BdD859490505F", - // adopted: "0x21d3a2faA153168C46Ac1428A84BdD859490505F", - // }, - // }, - // }, - // { - // name: "xGrumpy Cat", - // canonical: { - // domain: "11111", - // address: "0x3B350F202473932411772C8Cb76DB7975f42397E", - // decimals: 18, - // }, - // representations: { - // // mainnet - // "6648936": { - // local: "0x3B350F202473932411772C8Cb76DB7975f42397E", - // adopted: "0x3B350F202473932411772C8Cb76DB7975f42397E", - // }, - // // Optimsim - // "1869640809": { - // local: "0x3B350F202473932411772C8Cb76DB7975f42397E", - // adopted: "0x3B350F202473932411772C8Cb76DB7975f42397E", - // }, - // // Polygon - // "1886350457": { - // local: "0x3B350F202473932411772C8Cb76DB7975f42397E", - // adopted: "0x3B350F202473932411772C8Cb76DB7975f42397E", - // }, - // // Binance - // "6450786": { - // local: "0x3B350F202473932411772C8Cb76DB7975f42397E", - // adopted: "0x3B350F202473932411772C8Cb76DB7975f42397E", - // }, - // // Arbitrum - // "1634886255": { - // local: "0x3B350F202473932411772C8Cb76DB7975f42397E", - // adopted: "0x3B350F202473932411772C8Cb76DB7975f42397E", - // }, - // }, - // }, - // { - // name: "FRACTION", - // canonical: { - // domain: "11111", - // address: "0x4602e7CFE18d8b16ED13538603B00073F5c28bc8", - // decimals: 18, - // }, - // representations: { - // // gnosis - // "6778479": { - // local: "0x4602e7CFE18d8b16ED13538603B00073F5c28bc8", - // adopted: "0x4602e7CFE18d8b16ED13538603B00073F5c28bc8", - // }, - // // optimism - // "1869640809": { - // local: "0xbD80CFA9d93A87D1bb895f810ea348E496611cD4", - // adopted: "0xbD80CFA9d93A87D1bb895f810ea348E496611cD4", - // }, - // // bnb - // "6450786": { - // local: "0xbD80CFA9d93A87D1bb895f810ea348E496611cD4", - // adopted: "0xbD80CFA9d93A87D1bb895f810ea348E496611cD4", - // }, - // // polygon - // "1886350457": { - // local: "0xbD80CFA9d93A87D1bb895f810ea348E496611cD4", - // adopted: "0xbD80CFA9d93A87D1bb895f810ea348E496611cD4", - // }, - // // arbtirum-one - // "1634886255": { - // local: "0x2bF2ba13735160624a0fEaE98f6aC8F70885eA61", - // adopted: "0x2bF2ba13735160624a0fEaE98f6aC8F70885eA61", - // }, - // }, - // }, - // { - // name: "xIXT", - // canonical: { - // domain: "11111", - // address: "0x8b04bf3358B88e3630aa64C1c76FF3B6C699C6a7", - // decimals: 18, - // }, - // representations: { - // "1886350457": { - // local: "0x8b04bf3358B88e3630aa64C1c76FF3B6C699C6a7", - // adopted: "0x8b04bf3358B88e3630aa64C1c76FF3B6C699C6a7", - // }, - // "6648936": { - // local: "0x8b04bf3358B88e3630aa64C1c76FF3B6C699C6a7", - // adopted: "0x8b04bf3358B88e3630aa64C1c76FF3B6C699C6a7", - // }, - // "1634886255": { - // local: "0x8b04bf3358B88e3630aa64C1c76FF3B6C699C6a7", - // adopted: "0x8b04bf3358B88e3630aa64C1c76FF3B6C699C6a7", - // }, - // "6450786": { - // local: "0x8b04bf3358B88e3630aa64C1c76FF3B6C699C6a7", - // adopted: "0x8b04bf3358B88e3630aa64C1c76FF3B6C699C6a7", - // }, - // }, - // }, - // { - // name: "ZOOMER", - // canonical: { - // // Pseudo-canonical domain - // domain: "11111", - // address: "0x425F81E2fe53256B9a7AEA91949dA2210bd049bE", - // decimals: 18, - // }, - // representations: { - // /// MAINNET - // "6648936": { - // local: "0x425F81E2fe53256B9a7AEA91949dA2210bd049bE", - // adopted: "0x425F81E2fe53256B9a7AEA91949dA2210bd049bE", - // }, - // /// POLYGON - // "1886350457": { - // local: "0xb2588731d8f6F854037936d6ffac4c13d0b6bd62", - // adopted: "0xb2588731d8f6F854037936d6ffac4c13d0b6bd62", - // }, - // /// ARBITRUM - // "1634886255": { - // local: "0xBB1B173cdFBe464caaaCeaB2a9c8C44229d62D14", - // adopted: "0xBB1B173cdFBe464caaaCeaB2a9c8C44229d62D14", - // }, - // // BINANCE - // }, - // }, + { + name: "URUS", + canonical: { + domain: "11111", + address: "0x21d3a2faA153168C46Ac1428A84BdD859490505F", + decimals: 18, + }, + representations: { + "6648936": { + local: "0x21d3a2faA153168C46Ac1428A84BdD859490505F", + adopted: "0x21d3a2faA153168C46Ac1428A84BdD859490505F", + }, + "6450786": { + local: "0x21d3a2faA153168C46Ac1428A84BdD859490505F", + adopted: "0x21d3a2faA153168C46Ac1428A84BdD859490505F", + }, + }, + }, + { + name: "xGrumpy Cat", + canonical: { + domain: "11111", + address: "0x3B350F202473932411772C8Cb76DB7975f42397E", + decimals: 18, + }, + representations: { + // mainnet + "6648936": { + local: "0x3B350F202473932411772C8Cb76DB7975f42397E", + adopted: "0x3B350F202473932411772C8Cb76DB7975f42397E", + }, + // Optimsim + "1869640809": { + local: "0x3B350F202473932411772C8Cb76DB7975f42397E", + adopted: "0x3B350F202473932411772C8Cb76DB7975f42397E", + }, + // Polygon + "1886350457": { + local: "0x3B350F202473932411772C8Cb76DB7975f42397E", + adopted: "0x3B350F202473932411772C8Cb76DB7975f42397E", + }, + // Binance + "6450786": { + local: "0x3B350F202473932411772C8Cb76DB7975f42397E", + adopted: "0x3B350F202473932411772C8Cb76DB7975f42397E", + }, + // Arbitrum + "1634886255": { + local: "0x3B350F202473932411772C8Cb76DB7975f42397E", + adopted: "0x3B350F202473932411772C8Cb76DB7975f42397E", + }, + }, + }, + { + name: "FRACTION", + canonical: { + domain: "11111", + address: "0x4602e7CFE18d8b16ED13538603B00073F5c28bc8", + decimals: 18, + }, + representations: { + // gnosis + "6778479": { + local: "0x4602e7CFE18d8b16ED13538603B00073F5c28bc8", + adopted: "0x4602e7CFE18d8b16ED13538603B00073F5c28bc8", + }, + // optimism + "1869640809": { + local: "0xbD80CFA9d93A87D1bb895f810ea348E496611cD4", + adopted: "0xbD80CFA9d93A87D1bb895f810ea348E496611cD4", + }, + // bnb + "6450786": { + local: "0xbD80CFA9d93A87D1bb895f810ea348E496611cD4", + adopted: "0xbD80CFA9d93A87D1bb895f810ea348E496611cD4", + }, + // polygon + "1886350457": { + local: "0xbD80CFA9d93A87D1bb895f810ea348E496611cD4", + adopted: "0xbD80CFA9d93A87D1bb895f810ea348E496611cD4", + }, + // arbtirum-one + "1634886255": { + local: "0x2bF2ba13735160624a0fEaE98f6aC8F70885eA61", + adopted: "0x2bF2ba13735160624a0fEaE98f6aC8F70885eA61", + }, + }, + }, + { + name: "xIXT", + canonical: { + domain: "11111", + address: "0x8b04bf3358B88e3630aa64C1c76FF3B6C699C6a7", + decimals: 18, + }, + representations: { + "1886350457": { + local: "0x8b04bf3358B88e3630aa64C1c76FF3B6C699C6a7", + adopted: "0x8b04bf3358B88e3630aa64C1c76FF3B6C699C6a7", + }, + "6648936": { + local: "0x8b04bf3358B88e3630aa64C1c76FF3B6C699C6a7", + adopted: "0x8b04bf3358B88e3630aa64C1c76FF3B6C699C6a7", + }, + "1634886255": { + local: "0x8b04bf3358B88e3630aa64C1c76FF3B6C699C6a7", + adopted: "0x8b04bf3358B88e3630aa64C1c76FF3B6C699C6a7", + }, + "6450786": { + local: "0x8b04bf3358B88e3630aa64C1c76FF3B6C699C6a7", + adopted: "0x8b04bf3358B88e3630aa64C1c76FF3B6C699C6a7", + }, + }, + }, + { + name: "ZOOMER", + canonical: { + // Pseudo-canonical domain + domain: "11111", + address: "0x425F81E2fe53256B9a7AEA91949dA2210bd049bE", + decimals: 18, + }, + representations: { + /// MAINNET + "6648936": { + local: "0x425F81E2fe53256B9a7AEA91949dA2210bd049bE", + adopted: "0x425F81E2fe53256B9a7AEA91949dA2210bd049bE", + }, + /// POLYGON + "1886350457": { + local: "0xb2588731d8f6F854037936d6ffac4c13d0b6bd62", + adopted: "0xb2588731d8f6F854037936d6ffac4c13d0b6bd62", + }, + /// ARBITRUM + "1634886255": { + local: "0xBB1B173cdFBe464caaaCeaB2a9c8C44229d62D14", + adopted: "0xBB1B173cdFBe464caaaCeaB2a9c8C44229d62D14", + }, + // BINANCE + }, + }, ], agents: { relayerFeeVaults: { From f9bc4187b267fe59693135188b013f4e075f7b85 Mon Sep 17 00:00:00 2001 From: Prathmesh <201952225@iiitvadodara.ac.in> Date: Fri, 29 Mar 2024 18:39:52 +0530 Subject: [PATCH 20/20] fix: cleanup --- .../contracts/src/cli/init/helpers/assets.ts | 40 ------------------- 1 file changed, 40 deletions(-) diff --git a/packages/deployments/contracts/src/cli/init/helpers/assets.ts b/packages/deployments/contracts/src/cli/init/helpers/assets.ts index ebc3ff3a91..f43c1e2357 100644 --- a/packages/deployments/contracts/src/cli/init/helpers/assets.ts +++ b/packages/deployments/contracts/src/cli/init/helpers/assets.ts @@ -29,15 +29,6 @@ export const setupAsset = async (args: { `\n\tVerifying asset setup for ${asset.name} (${asset.canonical.address}). Canonical ID: ${canonical.id}; Canonical Domain: ${canonical.domain}; Key: ${key}`, ); - // Set up the canonical asset on the canonical domain. - // const home = networks.find((n) => n.domain === asset.canonical.domain); - // if (!home) { - // throw new Error( - // `Could not find canonical domain network ${asset.canonical.domain} for asset ${asset.canonical.address} in` + - // "the configured list of networks!", - // ); - // } - let canonicalDecimals = asset.canonical.decimals; if (!canonicalDecimals) { const record = getAssetEntryFromChaindata(asset.canonical.address, asset.canonical.domain, chainData); @@ -53,33 +44,10 @@ export const setupAsset = async (args: { const tokenName = asset.name.startsWith(`next`) ? asset.name : `next${asset.name.toUpperCase()}`; const tokenSymbol = tokenName; - // if (+home.chain === 1 && BigNumber.from(asset.canonical.cap ?? "0").isZero()) { - // throw new Error(`Must have nonzero cap on prod canonical domains`); - // } - if (!canonicalDecimals) { throw new Error(`Unable to find canonical decimals in config for ${asset.name}`); } - // await updateIfNeeded({ - // apply, - // deployment: home.deployments.Connext, - // desired: asset.canonical.address, - // read: { method: "canonicalToAdopted(bytes32)", args: [key] }, - // write: { - // method: "setupAsset", - // args: [ - // [canonical.domain, canonical.id], - // canonicalDecimals, - // tokenName, - // tokenSymbol, - // asset.canonical.address, - // constants.AddressZero, - // asset.canonical.cap ?? "0", // 0-cap allowed on testnet only - // ], - // }, - // }); - // Set up all the representational assets on their respective domains. for (const [domain, representation] of Object.entries(asset.representations)) { if (!representation) continue; @@ -172,14 +140,6 @@ export const setupAsset = async (args: { } } - // NOTE: it is best practice to init + add liquidity in a single transaction to start the pool in a balanced state - // if (apply && +home.chain === 1) { - // // TODO: add liquidity with balance assertions; proper min to mint calculations; etc. - // // Fixing this is useful in testnet, but on mainnets youre using safes anyway. - // console.warn(`Must implement safe pool initialization. Skipping.`); - // continue; - // } - // After registering the asset, check pool status. const [local, adopted] = apply ? await getValue<[string, string]>({