Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added holesky network and related end-points for supporting providers.
  • Loading branch information
ricmoo committed Jan 25, 2024
1 parent a26ff77 commit c6e6c43
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src.ts/_tests/test-providers-data.ts
Expand Up @@ -230,7 +230,7 @@ describe("Test Provider Transaction operations", function() {

describe("Test Networks", function() {
const networks = [
"mainnet", "goerli", "sepolia",
"mainnet", "goerli", "sepolia", "holesky",
"arbitrum", "arbitrum-goerli", "arbitrum-sepolia",
"base", "base-goerli", "base-sepolia",
"bnb", "bnbt",
Expand Down
3 changes: 1 addition & 2 deletions src.ts/providers/network.ts
Expand Up @@ -388,8 +388,7 @@ function injectCommonNetworks(): void {
registerEth("goerli", 5, { ensNetwork: 5 });
registerEth("kovan", 42, { ensNetwork: 42 });
registerEth("sepolia", 11155111, { ensNetwork: 11155111 });


registerEth("holesky", 17000, { ensNetwork: 17000 });

registerEth("classic", 61, { });
registerEth("classicKotti", 6, { });
Expand Down
14 changes: 9 additions & 5 deletions src.ts/providers/provider-etherscan.ts
Expand Up @@ -8,8 +8,11 @@
* - Ethereum Mainnet (``mainnet``)
* - Goerli Testnet (``goerli``)
* - Sepolia Testnet (``sepolia``)
* - Sepolia Testnet (``holesky``)
* - Arbitrum (``arbitrum``)
* - Arbitrum Goerli Testnet (``arbitrum-goerli``)
* - BNB Smart Chain Mainnet (``bnb``)
* - BNB Smart Chain Testnet (``bnbt``)
* - Optimism (``optimism``)
* - Optimism Goerli Testnet (``optimism-goerli``)
* - Polygon (``matic``)
Expand Down Expand Up @@ -160,11 +163,17 @@ export class EtherscanProvider extends AbstractProvider {
return "https:/\/api-goerli.etherscan.io";
case "sepolia":
return "https:/\/api-sepolia.etherscan.io";
case "holesky":
return "https:/\/api-holesky.etherscan.io";

case "arbitrum":
return "https:/\/api.arbiscan.io";
case "arbitrum-goerli":
return "https:/\/api-goerli.arbiscan.io";
case "bnb":
return "http:/\/api.bscscan.com";
case "bnbt":
return "http:/\/api-testnet.bscscan.com";
case "matic":
return "https:/\/api.polygonscan.com";
case "matic-mumbai":
Expand All @@ -174,11 +183,6 @@ export class EtherscanProvider extends AbstractProvider {
case "optimism-goerli":
return "https:/\/api-goerli-optimistic.etherscan.io";

case "bnb":
return "http:/\/api.bscscan.com";
case "bnbt":
return "http:/\/api-testnet.bscscan.com";

default:
}

Expand Down
5 changes: 3 additions & 2 deletions src.ts/providers/provider-quicknode.ts
Expand Up @@ -7,6 +7,7 @@
* - Ethereum Mainnet (``mainnet``)
* - Goerli Testnet (``goerli``)
* - Sepolia Testnet (``sepolia``)
* - Holesky Testnet (``holesky``)
* - Arbitrum (``arbitrum``)
* - Arbitrum Goerli Testnet (``arbitrum-goerli``)
* - Arbitrum Sepolia Testnet (``arbitrum-sepolia``)
Expand Down Expand Up @@ -47,7 +48,8 @@ function getHost(name: string): string {
return "ethers.ethereum-goerli.quiknode.pro";
case "sepolia":
return "ethers.ethereum-sepolia.quiknode.pro";

case "holesky":
return "ethers.ethereum-holesky.quiknode.pro";

case "arbitrum":
return "ethers.arbitrum-mainnet.quiknode.pro";
Expand Down Expand Up @@ -89,7 +91,6 @@ function getHost(name: string): string {
are EVM compatible and work with ethers
http://ethers.matic-amoy.quiknode.pro
http://ethers.ethereum-holesky.quiknode.pro
http://ethers.avalanche-mainnet.quiknode.pro
http://ethers.avalanche-testnet.quiknode.pro
Expand Down

0 comments on commit c6e6c43

Please sign in to comment.