Added holesky network and related end-points for supporting providers.
This commit is contained in:
parent
a26ff77c21
commit
c6e6c43257
@ -230,7 +230,7 @@ describe("Test Provider Transaction operations", function() {
|
|||||||
|
|
||||||
describe("Test Networks", function() {
|
describe("Test Networks", function() {
|
||||||
const networks = [
|
const networks = [
|
||||||
"mainnet", "goerli", "sepolia",
|
"mainnet", "goerli", "sepolia", "holesky",
|
||||||
"arbitrum", "arbitrum-goerli", "arbitrum-sepolia",
|
"arbitrum", "arbitrum-goerli", "arbitrum-sepolia",
|
||||||
"base", "base-goerli", "base-sepolia",
|
"base", "base-goerli", "base-sepolia",
|
||||||
"bnb", "bnbt",
|
"bnb", "bnbt",
|
||||||
|
@ -388,8 +388,7 @@ function injectCommonNetworks(): void {
|
|||||||
registerEth("goerli", 5, { ensNetwork: 5 });
|
registerEth("goerli", 5, { ensNetwork: 5 });
|
||||||
registerEth("kovan", 42, { ensNetwork: 42 });
|
registerEth("kovan", 42, { ensNetwork: 42 });
|
||||||
registerEth("sepolia", 11155111, { ensNetwork: 11155111 });
|
registerEth("sepolia", 11155111, { ensNetwork: 11155111 });
|
||||||
|
registerEth("holesky", 17000, { ensNetwork: 17000 });
|
||||||
|
|
||||||
|
|
||||||
registerEth("classic", 61, { });
|
registerEth("classic", 61, { });
|
||||||
registerEth("classicKotti", 6, { });
|
registerEth("classicKotti", 6, { });
|
||||||
|
@ -8,8 +8,11 @@
|
|||||||
* - Ethereum Mainnet (``mainnet``)
|
* - Ethereum Mainnet (``mainnet``)
|
||||||
* - Goerli Testnet (``goerli``)
|
* - Goerli Testnet (``goerli``)
|
||||||
* - Sepolia Testnet (``sepolia``)
|
* - Sepolia Testnet (``sepolia``)
|
||||||
|
* - Sepolia Testnet (``holesky``)
|
||||||
* - Arbitrum (``arbitrum``)
|
* - Arbitrum (``arbitrum``)
|
||||||
* - Arbitrum Goerli Testnet (``arbitrum-goerli``)
|
* - Arbitrum Goerli Testnet (``arbitrum-goerli``)
|
||||||
|
* - BNB Smart Chain Mainnet (``bnb``)
|
||||||
|
* - BNB Smart Chain Testnet (``bnbt``)
|
||||||
* - Optimism (``optimism``)
|
* - Optimism (``optimism``)
|
||||||
* - Optimism Goerli Testnet (``optimism-goerli``)
|
* - Optimism Goerli Testnet (``optimism-goerli``)
|
||||||
* - Polygon (``matic``)
|
* - Polygon (``matic``)
|
||||||
@ -160,11 +163,17 @@ export class EtherscanProvider extends AbstractProvider {
|
|||||||
return "https:/\/api-goerli.etherscan.io";
|
return "https:/\/api-goerli.etherscan.io";
|
||||||
case "sepolia":
|
case "sepolia":
|
||||||
return "https:/\/api-sepolia.etherscan.io";
|
return "https:/\/api-sepolia.etherscan.io";
|
||||||
|
case "holesky":
|
||||||
|
return "https:/\/api-holesky.etherscan.io";
|
||||||
|
|
||||||
case "arbitrum":
|
case "arbitrum":
|
||||||
return "https:/\/api.arbiscan.io";
|
return "https:/\/api.arbiscan.io";
|
||||||
case "arbitrum-goerli":
|
case "arbitrum-goerli":
|
||||||
return "https:/\/api-goerli.arbiscan.io";
|
return "https:/\/api-goerli.arbiscan.io";
|
||||||
|
case "bnb":
|
||||||
|
return "http:/\/api.bscscan.com";
|
||||||
|
case "bnbt":
|
||||||
|
return "http:/\/api-testnet.bscscan.com";
|
||||||
case "matic":
|
case "matic":
|
||||||
return "https:/\/api.polygonscan.com";
|
return "https:/\/api.polygonscan.com";
|
||||||
case "matic-mumbai":
|
case "matic-mumbai":
|
||||||
@ -174,11 +183,6 @@ export class EtherscanProvider extends AbstractProvider {
|
|||||||
case "optimism-goerli":
|
case "optimism-goerli":
|
||||||
return "https:/\/api-goerli-optimistic.etherscan.io";
|
return "https:/\/api-goerli-optimistic.etherscan.io";
|
||||||
|
|
||||||
case "bnb":
|
|
||||||
return "http:/\/api.bscscan.com";
|
|
||||||
case "bnbt":
|
|
||||||
return "http:/\/api-testnet.bscscan.com";
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
* - Ethereum Mainnet (``mainnet``)
|
* - Ethereum Mainnet (``mainnet``)
|
||||||
* - Goerli Testnet (``goerli``)
|
* - Goerli Testnet (``goerli``)
|
||||||
* - Sepolia Testnet (``sepolia``)
|
* - Sepolia Testnet (``sepolia``)
|
||||||
|
* - Holesky Testnet (``holesky``)
|
||||||
* - Arbitrum (``arbitrum``)
|
* - Arbitrum (``arbitrum``)
|
||||||
* - Arbitrum Goerli Testnet (``arbitrum-goerli``)
|
* - Arbitrum Goerli Testnet (``arbitrum-goerli``)
|
||||||
* - Arbitrum Sepolia Testnet (``arbitrum-sepolia``)
|
* - Arbitrum Sepolia Testnet (``arbitrum-sepolia``)
|
||||||
@ -47,7 +48,8 @@ function getHost(name: string): string {
|
|||||||
return "ethers.ethereum-goerli.quiknode.pro";
|
return "ethers.ethereum-goerli.quiknode.pro";
|
||||||
case "sepolia":
|
case "sepolia":
|
||||||
return "ethers.ethereum-sepolia.quiknode.pro";
|
return "ethers.ethereum-sepolia.quiknode.pro";
|
||||||
|
case "holesky":
|
||||||
|
return "ethers.ethereum-holesky.quiknode.pro";
|
||||||
|
|
||||||
case "arbitrum":
|
case "arbitrum":
|
||||||
return "ethers.arbitrum-mainnet.quiknode.pro";
|
return "ethers.arbitrum-mainnet.quiknode.pro";
|
||||||
@ -89,7 +91,6 @@ function getHost(name: string): string {
|
|||||||
are EVM compatible and work with ethers
|
are EVM compatible and work with ethers
|
||||||
|
|
||||||
http://ethers.matic-amoy.quiknode.pro
|
http://ethers.matic-amoy.quiknode.pro
|
||||||
http://ethers.ethereum-holesky.quiknode.pro
|
|
||||||
|
|
||||||
http://ethers.avalanche-mainnet.quiknode.pro
|
http://ethers.avalanche-mainnet.quiknode.pro
|
||||||
http://ethers.avalanche-testnet.quiknode.pro
|
http://ethers.avalanche-testnet.quiknode.pro
|
||||||
|
Loading…
Reference in New Issue
Block a user