From 1cfa1d3dc13ec6e26aed69e230987c286ceb335d Mon Sep 17 00:00:00 2001 From: AlexeyAdoniev Date: Sun, 6 Aug 2023 15:33:21 +0300 Subject: [PATCH] OPTIMISM: mainnet contracts, change vech explorer link --- src/consts.ts | 6 +++--- src/factory/factories.ts | 14 +++++++++++++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/consts.ts b/src/consts.ts index 3f8450281..281d4882e 100644 --- a/src/consts.ts +++ b/src/consts.ts @@ -112,7 +112,7 @@ export enum MainNetRpcUri { ARBITRUM = "https://nova.arbitrum.io/rpc", BITGERT = "https://dedicated.brisescan.com", SOLANA = "https://solana-mainnet.g.alchemy.com/v2/4Fm2r6LjJO91nXrKVcZBQXcWgtVe-_gx", - OPTIMISM = "https://goerli.optimism.io", + OPTIMISM = "https://mainnet.optimism.io", // TODO: Algorand } @@ -540,8 +540,8 @@ CHAIN_INFO.set(Chain.GATECHAIN, { CHAIN_INFO.set(Chain.VECHAIN, { name: "VeChain", tnBlockExplorerUrl: "https://explore-testnet.vechain.org/transactions/", - blockExplorerUrlAddr: "https://explore.vechain.org/accounts/", - blockExplorerUrl: "https://explore.vechain.org/transactions/", + blockExplorerUrlAddr: "https://vechainstats.com/account/", + blockExplorerUrl: "https://vechainstats.com/transaction/", tnBlockExplorerUrlAddr: "https://explore-testnet.vechain.org/accounts/", constructor: web3HelperFactory, nonce: 0x19, diff --git a/src/factory/factories.ts b/src/factory/factories.ts index 17d6339f3..d41c046e8 100644 --- a/src/factory/factories.ts +++ b/src/factory/factories.ts @@ -579,7 +579,7 @@ export namespace ChainFactoryConfigs { nonce: Chain.OPTIMISM, notifier, noWhitelist: true, - provider: new ethers.providers.JsonRpcProvider(MainNetRpcUri.OPTIMISM), + provider: new ethers.providers.JsonRpcProvider(TestNetRpcUri.OPTIMISM), }, avalancheParams: { notifier, @@ -820,6 +820,18 @@ export namespace ChainFactoryConfigs { notifier, provider: new ethers.providers.JsonRpcProvider(MainNetRpcUri.OKC), }, + optimismParams: { + erc721Minter: "0x7deC0896CFaFB47D6d8416d07C6bFba06c86B938", + erc1155Minter: "0x79a3C39EF62F5052Af6C8b7874fB0FD809e4e998", + erc1155_addr: "0x6912B65711431820DfbcE2526Ab801fa76161B7C", + erc721_addr: "0xDfC4bF686Adf9B4B5c33277661Ce1640651cB0b6", + minter_addr: "0xb709848FB8446D4991407486Eda08b2936CD0050", + feeMargin, + nonce: Chain.OPTIMISM, + notifier, + noWhitelist: true, + provider: new ethers.providers.JsonRpcProvider(MainNetRpcUri.OPTIMISM), + }, arbitrumParams: { erc721Minter: "0x536dDc3Be14A980d3cd15635b3D05985C297FD07", erc1155Minter: "0x4F4F48f70892475b0D4863f61F47157Dd1Db9F1a",