Skip to content

Commit 2b4891d

Browse files
committed
Updated thrid-part provider URLs for QuickNode.
1 parent fed28e4 commit 2b4891d

File tree

3 files changed

+65
-7
lines changed

3 files changed

+65
-7
lines changed

src.ts/_tests/test-providers-data.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,20 +230,23 @@ describe("Test Provider Transaction operations", function() {
230230

231231
describe("Test Networks", function() {
232232
const networks = [
233+
"mainnet", "goerli", "sepolia",
233234
"arbitrum", "arbitrum-goerli", "arbitrum-sepolia",
234235
"base", "base-goerli", "base-sepolia",
235236
"bnb", "bnbt",
236237
"linea", "linea-goerli",
237238
"matic", "matic-mumbai",
238239
"optimism", "optimism-goerli", "optimism-sepolia",
240+
"xdai",
239241
];
240242

241243
const providerNames = [
242-
"AlchemyProvider", "InfuraProvider", "AnkrProvider"
244+
"AlchemyProvider", "InfuraProvider", "AnkrProvider",
245+
"QuickNodeProvider",
243246
];
244247

245-
for (const networkName of networks) {
246-
for (const providerName of providerNames) {
248+
for (const providerName of providerNames) {
249+
for (const networkName of networks) {
247250
const network = Network.from(networkName);
248251
const provider = getProvider(providerName, networkName);
249252
if (provider == null || !(provider instanceof JsonRpcProvider)) { continue; }

src.ts/providers/provider-infura.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
* - Base (``base``)
1414
* - Base Goerlia Testnet (``base-goerli``)
1515
* - Base Sepolia Testnet (``base-sepolia``)
16-
* - BNB (``bnb``)
17-
* - BNB Testnet (``bnbt``)
16+
* - BNB Smart Chain Mainnet (``bnb``)
17+
* - BNB Smart Chain Testnet (``bnbt``)
1818
* - Linea (``linea``)
1919
* - Linea Goerlia Testnet (``linea-goerli``)
2020
* - Optimism (``optimism``)

src.ts/providers/provider-quicknode.ts

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,18 @@
66
*
77
* - Ethereum Mainnet (``mainnet``)
88
* - Goerli Testnet (``goerli``)
9+
* - Sepolia Testnet (``sepolia``)
910
* - Arbitrum (``arbitrum``)
1011
* - Arbitrum Goerli Testnet (``arbitrum-goerli``)
12+
* - Arbitrum Sepolia Testnet (``arbitrum-sepolia``)
13+
* - Base Mainnet (``base``);
14+
* - Base Goerli Testnet (``base-goerli``);
15+
* - Base Sepolia Testnet (``base-sepolia``);
16+
* - BNB Smart Chain Mainnet (``bnb``)
17+
* - BNB Smart Chain Testnet (``bnbt``)
1118
* - Optimism (``optimism``)
1219
* - Optimism Goerli Testnet (``optimism-goerli``)
20+
* - Optimism Sepolia Testnet (``optimism-sepolia``)
1321
* - Polygon (``matic``)
1422
* - Polygon Mumbai Testnet (``matic-mumbai``)
1523
*
@@ -37,13 +45,26 @@ function getHost(name: string): string {
3745
return "ethers.quiknode.pro";
3846
case "goerli":
3947
return "ethers.ethereum-goerli.quiknode.pro";
40-
//case "sepolia":
41-
// return "sepolia.infura.io";
48+
case "sepolia":
49+
return "ethers.ethereum-sepolia.quiknode.pro";
50+
4251

4352
case "arbitrum":
4453
return "ethers.arbitrum-mainnet.quiknode.pro";
4554
case "arbitrum-goerli":
4655
return "ethers.arbitrum-goerli.quiknode.pro";
56+
case "arbitrum-sepolia":
57+
return "ethers.arbitrum-sepolia.quiknode.pro";
58+
case "base":
59+
return "ethers.base-mainnet.quiknode.pro";
60+
case "base-goerli":
61+
return "ethers.base-goerli.quiknode.pro";
62+
case "base-spolia":
63+
return "ethers.base-sepolia.quiknode.pro";
64+
case "bnb":
65+
return "ethers.bsc.quiknode.pro";
66+
case "bnbt":
67+
return "ethers.bsc-testnet.quiknode.pro";
4768
case "matic":
4869
return "ethers.matic.quiknode.pro";
4970
case "matic-mumbai":
@@ -52,11 +73,45 @@ function getHost(name: string): string {
5273
return "ethers.optimism.quiknode.pro";
5374
case "optimism-goerli":
5475
return "ethers.optimism-goerli.quiknode.pro";
76+
case "optimism-sepolia":
77+
return "ethers.optimism-sepolia.quiknode.pro";
78+
case "xdai":
79+
return "ethers.xdai.quiknode.pro";
5580
}
5681

5782
assertArgument(false, "unsupported network", "network", name);
5883
}
5984

85+
/*
86+
@TODO:
87+
These networks are not currently present in the Network
88+
default included networks. Research them and ensure they
89+
are EVM compatible and work with ethers
90+
91+
http://ethers.matic-amoy.quiknode.pro
92+
http://ethers.ethereum-holesky.quiknode.pro
93+
94+
http://ethers.avalanche-mainnet.quiknode.pro
95+
http://ethers.avalanche-testnet.quiknode.pro
96+
http://ethers.blast-sepolia.quiknode.pro
97+
http://ethers.celo-mainnet.quiknode.pro
98+
http://ethers.fantom.quiknode.pro
99+
http://ethers.imx-demo.quiknode.pro
100+
http://ethers.imx-mainnet.quiknode.pro
101+
http://ethers.imx-testnet.quiknode.pro
102+
http://ethers.near-mainnet.quiknode.pro
103+
http://ethers.near-testnet.quiknode.pro
104+
http://ethers.nova-mainnet.quiknode.pro
105+
http://ethers.scroll-mainnet.quiknode.pro
106+
http://ethers.scroll-testnet.quiknode.pro
107+
http://ethers.tron-mainnet.quiknode.pro
108+
http://ethers.zkevm-mainnet.quiknode.pro
109+
http://ethers.zkevm-testnet.quiknode.pro
110+
http://ethers.zksync-mainnet.quiknode.pro
111+
http://ethers.zksync-testnet.quiknode.pro
112+
*/
113+
114+
60115

61116
/**
62117
* The **QuickNodeProvider** connects to the [[link-quicknode]]

0 commit comments

Comments
 (0)