diff --git a/packages/addresses-tools/src/addresses.helpers.ts b/packages/addresses-tools/src/addresses.helpers.ts index 9dcfa820..dd7b33b3 100644 --- a/packages/addresses-tools/src/addresses.helpers.ts +++ b/packages/addresses-tools/src/addresses.helpers.ts @@ -44,6 +44,7 @@ export const getScanVariable = ({ customNetworkName }: { customNetworkName?: str athens: "", "bitcoin-test": "", "bsc-localnet": "", + "bsc-mainnet": process.env.BSCSCAN_API_KEY || "", "bsc-testnet": process.env.BSCSCAN_API_KEY || "", "eth-localnet": "", "eth-mainnet": process.env.ETHERSCAN_API_KEY || "", @@ -67,6 +68,7 @@ export const getExplorerUrl = ({ customNetworkName }: { customNetworkName?: stri athens: "", "bitcoin-test": "", "bsc-localnet": "", + "bsc-mainnet": "https://bscscan.com/", "bsc-testnet": "https://testnet.bscscan.com/", "eth-localnet": "", "eth-mainnet": "https://etherscan.io/", @@ -86,6 +88,7 @@ export const getGasSymbolByNetwork = (networkName: NetworkName): string => { athens: "ZETA", "bitcoin-test": "BTC", "bsc-localnet": "BNB", + "bsc-mainnet": "BNB", "bsc-testnet": "BNB", "eth-localnet": "ETH", "eth-mainnet": "ETH", diff --git a/packages/addresses-tools/src/networks.ts b/packages/addresses-tools/src/networks.ts index 9fb86a5c..850eaee4 100644 --- a/packages/addresses-tools/src/networks.ts +++ b/packages/addresses-tools/src/networks.ts @@ -14,6 +14,12 @@ export const getHardhatConfigNetworks = (PRIVATE_KEYS: string[]): NetworksUserCo gasPrice: 80000000000, url: "http://localhost:8120", }, + "bsc-mainnet": { + accounts: PRIVATE_KEYS, + gas: 5000000, + gasPrice: 80000000000, + url: `https://rpc.ankr.com/bsc`, + }, "bsc-testnet": { accounts: PRIVATE_KEYS, gas: 5000000, diff --git a/packages/addresses/src/addresses.mainnet.json b/packages/addresses/src/addresses.mainnet.json index 180c8363..6edddb31 100644 --- a/packages/addresses/src/addresses.mainnet.json +++ b/packages/addresses/src/addresses.mainnet.json @@ -1,4 +1,27 @@ { + "bsc-mainnet": { + "connector": "", + "crossChainCounter": "", + "crossChainNft": "", + "dai": "", + "multiChainValue": "", + "tss": "", + "tssUpdater": "", + "uniswapV2Router02": "", + "uniswapV3PoolFactory": "", + "uniswapV3Quoter": "", + "uniswapV3Router": "", + "usdc": "", + "weth9": "", + "zetaSwapBtcInbound": "", + "zetaToken": "", + "zetaTokenConsumerUniV2": "", + "immutableCreate2Factory": "", + "multiChainSwapZetaConnector": "", + "multiChainSwap": "", + "uniswapV2Factory": "", + "zetaSwap": "" + }, "eth-mainnet": { "connector": "", "crossChainCounter": "", diff --git a/packages/example-contracts/lib/shared/network.constants.ts b/packages/example-contracts/lib/shared/network.constants.ts index 47319b47..3fd74ad5 100644 --- a/packages/example-contracts/lib/shared/network.constants.ts +++ b/packages/example-contracts/lib/shared/network.constants.ts @@ -1,6 +1,6 @@ import { NetworkName } from "@zetachain/addresses"; -type ChainId = 0 | 5 | 97 | 1001 | 1337 | 80001; +type ChainId = 0 | 1 | 5 | 56 | 97 | 1001 | 1337 | 80001; export type NetworkVariables = { chainId: ChainId; @@ -28,6 +28,12 @@ export const networkVariables: Record = { crossChainId: 0, crossChainName: "" }, + "bsc-mainnet": { + chainId: 56, + connectorAddress: "", + crossChainId: 1, + crossChainName: "eth-mainnet" + }, "bsc-testnet": { chainId: 97, connectorAddress: "0xE626402550fB921E4a47c11568F89dF3496fbEF0",