Skip to content

Commit

Permalink
Fix matic-mumbai network and include aliases to legacy names (ethers-…
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo authored and Woodpile37 committed Jan 14, 2024
1 parent eca54f2 commit 54db66f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion src.ts/providers/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,8 @@ function injectCommonNetworks(): void {
url: "https:/\/api.polygonscan.com/"
}
});
registerEth("maticMumbai", 80001, {
registerEth("matic-mumbai", 80001, {
altNames: [ "maticMumbai", "maticmum" ], // @TODO: Future remove these alts
// priorityFee: 35000000000,
etherscan: {
// apiKey: "W6T8DJW654GNTQ34EFEYYP3EZD9DD27CT7",
Expand Down
2 changes: 1 addition & 1 deletion src.ts/providers/provider-alchemy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function getHost(name: string): string {
return "arb-goerli.g.alchemy.com";
case "matic":
return "polygon-mainnet.g.alchemy.com";
case "maticmum":
case "matic-mumbai":
return "polygon-mumbai.g.alchemy.com";
case "optimism":
return "opt-mainnet.g.alchemy.com";
Expand Down
4 changes: 2 additions & 2 deletions src.ts/providers/provider-etherscan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* - Optimism (``optimism``)
* - Optimism Goerli Testnet (``optimism-goerli``)
* - Polygon (``matic``)
* - Polygon Mumbai Testnet (``maticmum``)
* - Polygon Mumbai Testnet (``matic-mumbai``)
*
* @_subsection api/providers/thirdparty:Etherscan [providers-etherscan]
*/
Expand Down Expand Up @@ -164,7 +164,7 @@ export class EtherscanProvider extends AbstractProvider {
return "https:/\/api-goerli.arbiscan.io";
case "matic":
return "https:/\/api.polygonscan.com";
case "maticmum":
case "matic-mumbai":
return "https:/\/api-testnet.polygonscan.com";
case "optimism":
return "https:/\/api-optimistic.etherscan.io";
Expand Down
4 changes: 2 additions & 2 deletions src.ts/providers/provider-infura.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* - Optimism (``optimism``)
* - Optimism Goerli Testnet (``optimism-goerli``)
* - Polygon (``matic``)
* - Polygon Mumbai Testnet (``maticmum``)
* - Polygon Mumbai Testnet (``matic-mumbai``)
*
* @_subsection: api/providers/thirdparty:INFURA [providers-infura]
*/
Expand Down Expand Up @@ -47,7 +47,7 @@ function getHost(name: string): string {
return "arbitrum-goerli.infura.io";
case "matic":
return "polygon-mainnet.infura.io";
case "maticmum":
case "matic-mumbai":
return "polygon-mumbai.infura.io";
case "optimism":
return "optimism-mainnet.infura.io";
Expand Down
2 changes: 1 addition & 1 deletion src.ts/providers/provider-pocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function getHost(name: string): string {

case "matic":
return "poly-mainnet.gateway.pokt.network";
case "maticmum":
case "matic-mumbai":
return "polygon-mumbai-rpc.gateway.pokt.network";
}

Expand Down
4 changes: 2 additions & 2 deletions src.ts/providers/provider-quicknode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* - Optimism (``optimism``)
* - Optimism Goerli Testnet (``optimism-goerli``)
* - Polygon (``matic``)
* - Polygon Mumbai Testnet (``maticmum``)
* - Polygon Mumbai Testnet (``matic-mumbai``)
*
* @_subsection: api/providers/thirdparty:QuickNode [providers-quicknode]
*/
Expand Down Expand Up @@ -46,7 +46,7 @@ function getHost(name: string): string {
return "ethers.arbitrum-goerli.quiknode.pro";
case "matic":
return "ethers.matic.quiknode.pro";
case "maticmum":
case "matic-mumbai":
return "ethers.matic-testnet.quiknode.pro";
case "optimism":
return "ethers.optimism.quiknode.pro";
Expand Down

0 comments on commit 54db66f

Please sign in to comment.