diff --git a/packages/app/src/utils/explorers.ts b/packages/app/src/utils/explorers.ts index de4ce69b..d1b7b578 100644 --- a/packages/app/src/utils/explorers.ts +++ b/packages/app/src/utils/explorers.ts @@ -75,6 +75,27 @@ export const EXPLORERS_CONFIG: Record = { explorerApiKey: REACT_APP_ETHERSCAN_KEY, rpcUrl: `https://goerli.infura.io/v3/${REACT_APP_INFURA_ID}`, }, + [NETWORK.OPTIMISM]: { + networkExplorerName: "Optimistic", + networkExplorerUrl: "https://optimistic.etherscan.io/", + networkExplorerApiUrl: "https://api-optimistic.etherscan.io/api", + safeTransactionApi: "https://safe-transaction.optimism.gnosis.io/", + safeUrl: "https://gnosis-safe.io/app/oeth:", + verifyContractUrl: "https://optimistic.etherscan.io/verifyContract", + explorerApiKey: REACT_APP_ETHERSCAN_KEY, + rpcUrl: `https://optimism-mainnet.infura.io/v3/${REACT_APP_INFURA_ID}`, + + }, + [NETWORK.ARBITRUM]: { + networkExplorerName: "Arbiscan", + networkExplorerUrl: "https://arbiscan.io/", + networkExplorerApiUrl: "https://api.arbiscan.io/api", + safeTransactionApi: "https://safe-transaction.arbitrum.gnosis.io/", + safeUrl: "https://gnosis-safe.io/app/arb1:", + verifyContractUrl: "https://arbiscan.io/verifyContract", + explorerApiKey: REACT_APP_ETHERSCAN_KEY, + rpcUrl: `https://arbitrum-mainnet.infura.io/v3/${REACT_APP_INFURA_ID}`, + }, } export const getNetworkExplorerInfo = (chainId: number) => { diff --git a/packages/app/src/utils/networks.ts b/packages/app/src/utils/networks.ts index 8b5e15b8..dbdd557d 100644 --- a/packages/app/src/utils/networks.ts +++ b/packages/app/src/utils/networks.ts @@ -1,9 +1,11 @@ export enum NETWORK { MAINNET = 1, GOERLI = 5, + OPTIMISM = 10, BSC = 56, GNOSIS_CHAIN = 100, POLYGON = 137, + ARBITRUM = 42161, } export interface Coin { @@ -38,6 +40,12 @@ export const NETWORKS: Record = { shortName: "gor", nativeAsset: NATIVE_ASSET.ETH, }, + [NETWORK.OPTIMISM]: { + chainId: NETWORK.OPTIMISM, + name: "optimism", + shortName: "oeth", + nativeAsset: NATIVE_ASSET.ETH, + }, [NETWORK.GNOSIS_CHAIN]: { chainId: NETWORK.GNOSIS_CHAIN, name: "gnosis_chain", @@ -56,12 +64,20 @@ export const NETWORKS: Record = { shortName: "matic", nativeAsset: NATIVE_ASSET.MATIC, }, + [NETWORK.ARBITRUM]: { + chainId: NETWORK.ARBITRUM, + name: "arbitrum", + shortName: "arb1", + nativeAsset: NATIVE_ASSET.ETH, + }, } export const NETWORK_NATIVE_ASSET: Record = { [NETWORK.MAINNET]: NATIVE_ASSET.ETH, [NETWORK.GOERLI]: NATIVE_ASSET.ETH, + [NETWORK.OPTIMISM]: NATIVE_ASSET.ETH, [NETWORK.GNOSIS_CHAIN]: NATIVE_ASSET.XDAI, [NETWORK.POLYGON]: NATIVE_ASSET.MATIC, [NETWORK.BSC]: NATIVE_ASSET.BNB, + [NETWORK.ARBITRUM]: NATIVE_ASSET.ETH, }