Skip to content

Commit

Permalink
feat: update default infra provider (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
crisog authored Sep 29, 2021
1 parent b711c9f commit 0ebf0c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions src/connectors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ import { ChainId } from 'dxswap-sdk'
import { WalletLinkConnector } from '@web3-react/walletlink-connector'

export const INFURA_PROJECT_ID = '0ebf4dd05d6740f482938b8a80860d13'
export const MATIC_PROJECT_ID = '917500540ed6561baeb650de48df44949ed21baf'

export const network = new CustomNetworkConnector({
urls: {
[ChainId.MAINNET]: `https://mainnet.infura.io/v3/${INFURA_PROJECT_ID}`,
[ChainId.XDAI]: 'https://rpc.xdaichain.com/',
// [ChainId.MATIC]: `https://rpc-mainnet.maticvigil.com/v1/${MATIC_PROJECT_ID}`
[ChainId.MATIC]: 'https://rpc-mainnet.matic.quiknode.pro/'
[ChainId.XDAI]: 'https://poa-xdai.gateway.pokt.network/v1/lb/61140fc659501900341babff',
[ChainId.MATIC]: 'https://poly-mainnet.gateway.pokt.network/v1/lb/61141e8259501900341bb3e2'
},
defaultChainId: ChainId.XDAI
})
Expand All @@ -24,14 +22,14 @@ export const injected = new InjectedConnector({

export const walletlink = new WalletLinkConnector({
supportedChainIds: [ChainId.MAINNET, ChainId.RINKEBY, ChainId.XDAI, ChainId.MATIC],
url: 'https://rpc.xdaichain.com/',
url: 'https://poa-xdai.gateway.pokt.network/v1/lb/61140fc659501900341babff',
appName: 'Honeyswap'
})

// xdai only
export const walletConnectXDAI = new WalletConnectConnector({
rpc: {
100: 'https://rpc.xdaichain.com/'
100: 'https://poa-xdai.gateway.pokt.network/v1/lb/61140fc659501900341babff'
},
bridge: 'https://bridge.walletconnect.org',
qrcode: true,
Expand Down
4 changes: 2 additions & 2 deletions src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export const NETWORK_DETAIL: { [chainId: number]: NetworkDetails } = {
symbol: Currency.XDAI.symbol || 'xDAI',
decimals: Currency.XDAI.decimals || 18
},
rpcUrls: ['https://rpc.xdaichain.com/'],
rpcUrls: ['https://poa-xdai.gateway.pokt.network/v1/lb/61140fc659501900341babff'],
blockExplorerUrls: ['https://blockscout.com/xdai/mainnet'],
metamaskAddable: true
},
Expand All @@ -294,7 +294,7 @@ export const NETWORK_DETAIL: { [chainId: number]: NetworkDetails } = {
decimals: Currency.MATIC.decimals || 18
},
// rpcUrls: [`https://rpc-mainnet.maticvigil.com/v1/${MATIC_PROJECT_ID}`],
rpcUrls: ['https://rpc-mainnet.matic.quiknode.pro/'],
rpcUrls: ['https://poly-mainnet.gateway.pokt.network/v1/lb/61141e8259501900341bb3e2'],
blockExplorerUrls: ['https://explorer.matic.network/'],
metamaskAddable: true
}
Expand Down

1 comment on commit 0ebf0c2

@vercel
Copy link

@vercel vercel bot commented on 0ebf0c2 Sep 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.