diff --git a/data/addresses.json b/data/addresses.json index 705313b0..7a7813e6 100644 --- a/data/addresses.json +++ b/data/addresses.json @@ -56,6 +56,14 @@ "zetaToken": "", "zetaTokenConsumerUniV2": "", "zetaTokenConsumerUniV3": "" + }, + "ethereum_mainnet": { + "connector": "", + "erc20Custody": "", + "immutableCreate2Factory": "0x095a03c6a68137fE9a566bBc3e552F299d8b886d", + "tss": "", + "tssUpdater": "", + "zetaToken": "" } }, "non_zeta": { diff --git a/lib/contracts.helpers.ts b/lib/contracts.helpers.ts index f941a0d1..1bd7759b 100644 --- a/lib/contracts.helpers.ts +++ b/lib/contracts.helpers.ts @@ -24,7 +24,7 @@ import { BaseContract, ContractFactory } from "ethers"; import { ethers } from "hardhat"; export const isEthNetworkName = (networkName: string) => - networkName === "eth-localnet" || networkName === "goerli" || networkName === "eth-mainnet"; + networkName === "eth-localnet" || networkName === "goerli_testnet" || networkName === "ethereum_mainnet"; export const deployZetaConnectorBase = async ({ args }: { args: Parameters }) => { const Factory = (await ethers.getContractFactory("ZetaConnectorBase")) as ZetaConnectorBaseFactory; @@ -144,13 +144,13 @@ export const getZetaTokenConsumerUniV3Strategy = async (params: GetContractParam export type GetContractParams = | { - deployParams: Parameters; - existingContractAddress?: null; - } + deployParams: Parameters; + existingContractAddress?: null; + } | { - deployParams?: null; - existingContractAddress: string; - }; + deployParams?: null; + existingContractAddress: string; + }; export const getContract = async ({ contractName, diff --git a/package.json b/package.json index 8a0ef690..3df3a681 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "@uniswap/v2-periphery": "^1.1.0-beta.0", "@uniswap/v3-periphery": "^1.4.3", "@zetachain/addresses": "^0.0.9", - "@zetachain/networks": "^0.0.1", + "@zetachain/networks": "^2.4.2", "chai": "^4.3.6", "cpx": "^1.5.0", "del-cli": "^5.0.0", diff --git a/yarn.lock b/yarn.lock index 4c15761d..f09852c4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2081,10 +2081,12 @@ resolved "https://registry.yarnpkg.com/@zetachain/addresses/-/addresses-0.0.9.tgz#d8ad93242590c0a6d028be8f515ad9f84fd588c2" integrity sha512-MA/kD8a2NY5xJMFjwPj1oph6P3O7l0g23QB3QTgcBs4DdmwubvTVH6S6/e8CWzLFojTP5qBiqIWBsU0iHP/HFg== -"@zetachain/networks@^0.0.1": - version "0.0.1" - resolved "https://registry.yarnpkg.com/@zetachain/networks/-/networks-0.0.1.tgz#825b27cfb96cd156c079503de4253c8adf580275" - integrity sha512-p646aIgX/3IHkauZlOZBKirRCMY+hyo3Og3IfJGC3tNkqjADt0wrcnizJrRIlXWVJGnlAW7tJPyXPzcfBh2Bwg== +"@zetachain/networks@^2.4.2": + version "2.4.2" + resolved "https://registry.yarnpkg.com/@zetachain/networks/-/networks-2.4.2.tgz#611986d2a7cfd45505c2f61cdbc403aeeff14812" + integrity sha512-Md2SbP9YPIbzkbzWa9853/L8tB1DwdPXmN7uPg2KrbxQk5AEqzSh/RuMq8hXaH14CunbiSqXmEuTq0mOtMsfZw== + dependencies: + dotenv "^16.1.4" abbrev@1: version "1.1.1" @@ -3546,6 +3548,11 @@ dotenv@^16.0.0: resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.0.3.tgz#115aec42bac5053db3c456db30cc243a5a836a07" integrity sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ== +dotenv@^16.1.4: + version "16.3.1" + resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.3.1.tgz#369034de7d7e5b120972693352a3bf112172cc3e" + integrity sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ== + drbg.js@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/drbg.js/-/drbg.js-1.0.1.tgz#3e36b6c42b37043823cdbc332d58f31e2445480b"