Skip to content

Commit

Permalink
fix: add infura url for base and base goerli (#6976)
Browse files Browse the repository at this point in the history
* fix: add infura url for base and base goerli

* add fallbacks

* add avax safe fallbacks

* styling

* safe urls
  • Loading branch information
cbachmeier committed Jul 18, 2023
1 parent aec4c5a commit 0904399
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/constants/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,16 @@ export const FALLBACK_URLS = {
[ChainId.AVALANCHE]: [
// "Safe" URLs
'https://api.avax.network/ext/bc/C/rpc',
'https://rpc.ankr.com/avalanche',
'https://avalanche.blockpi.network/v1/rpc/public',
'https://avalanche-c-chain.publicnode.com',
'https://endpoints.omniatech.io/v1/avax/mainnet/public',
'https://ava-mainnet.public.blastapi.io/ext/bc/C/rpc',
],
[ChainId.BASE]: [],
[ChainId.BASE_GOERLI]: [],
[ChainId.BASE]: [
// "Safe" URLs
'https://developer-access-mainnet.base.org',
],
[ChainId.BASE_GOERLI]: [
// "Safe" URLs
'https://goerli.base.org',
],
}

/**
Expand Down Expand Up @@ -143,6 +145,6 @@ export const RPC_URLS = {
[ChainId.CELO_ALFAJORES]: FALLBACK_URLS[ChainId.CELO_ALFAJORES],
[ChainId.BNB]: [QUICKNODE_RPC_URL, ...FALLBACK_URLS[ChainId.BNB]],
[ChainId.AVALANCHE]: [`https://avalanche-mainnet.infura.io/v3/${INFURA_KEY}`, ...FALLBACK_URLS[ChainId.AVALANCHE]],
[ChainId.BASE]: [],
[ChainId.BASE_GOERLI]: [],
[ChainId.BASE]: [`https://base-mainnet.infura.io/v3/${INFURA_KEY}`, ...FALLBACK_URLS[ChainId.BASE]],
[ChainId.BASE_GOERLI]: [`https://base-goerli.infura.io/v3/${INFURA_KEY}`, ...FALLBACK_URLS[ChainId.BASE_GOERLI]],
}

0 comments on commit 0904399

Please sign in to comment.