import { initializeConnector } from '@web3-react/core'; import { MetaMask } from '@web3-react/metamask'; import { WalletConnect } from '@web3-react/walletconnect'; export const metamask = initializeConnector( (actions) => new MetaMask(actions) ); const infuraId = process.env['NX_INFURA_ID']; export const walletconnect = initializeConnector( (actions) => new WalletConnect(actions, { rpc: { 1: `https://mainnet.infura.io/v3/${infuraId}`, 3: `https://ropsten.infura.io/v3/${infuraId}`, }, }), [1, 3] ); export const Connectors = { metamask, walletconnect, };