Added Polygon Amoy testnet (#4645).
This commit is contained in:
parent
014004d940
commit
1717abbf29
@ -104,6 +104,8 @@ export function getDefaultProvider(network?: string | Networkish | WebSocketLike
|
|||||||
if (allowService("publicPolygon") && staticNetwork) {
|
if (allowService("publicPolygon") && staticNetwork) {
|
||||||
if (staticNetwork.name === "matic") {
|
if (staticNetwork.name === "matic") {
|
||||||
providers.push(new JsonRpcProvider("https:/\/polygon-rpc.com/", staticNetwork, { staticNetwork }));
|
providers.push(new JsonRpcProvider("https:/\/polygon-rpc.com/", staticNetwork, { staticNetwork }));
|
||||||
|
} else if (staticNetwork.name === "matic-amoy") {
|
||||||
|
providers.push(new JsonRpcProvider("https:/\/rpc-amoy.polygon.technology/", staticNetwork, { staticNetwork }));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -415,6 +415,7 @@ function injectCommonNetworks(): void {
|
|||||||
getGasStationPlugin("https:/\/gasstation.polygon.technology/v2")
|
getGasStationPlugin("https:/\/gasstation.polygon.technology/v2")
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
registerEth("matic-amoy", 80002, { });
|
||||||
registerEth("matic-mumbai", 80001, {
|
registerEth("matic-mumbai", 80001, {
|
||||||
altNames: [ "maticMumbai", "maticmum" ], // @TODO: Future remove these alts
|
altNames: [ "maticMumbai", "maticmum" ], // @TODO: Future remove these alts
|
||||||
plugins: [
|
plugins: [
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
* - Optimism Goerli Testnet (``optimism-goerli``)
|
* - Optimism Goerli Testnet (``optimism-goerli``)
|
||||||
* - Optimism Sepolia Testnet (``optimism-sepolia``)
|
* - Optimism Sepolia Testnet (``optimism-sepolia``)
|
||||||
* - Polygon (``matic``)
|
* - Polygon (``matic``)
|
||||||
|
* - Polygon Amoy Testnet (``matic-amoy``)
|
||||||
* - Polygon Mumbai Testnet (``matic-mumbai``)
|
* - Polygon Mumbai Testnet (``matic-mumbai``)
|
||||||
*
|
*
|
||||||
* @_subsection: api/providers/thirdparty:Alchemy [providers-alchemy]
|
* @_subsection: api/providers/thirdparty:Alchemy [providers-alchemy]
|
||||||
@ -61,6 +62,8 @@ function getHost(name: string): string {
|
|||||||
return "base-sepolia.g.alchemy.com";
|
return "base-sepolia.g.alchemy.com";
|
||||||
case "matic":
|
case "matic":
|
||||||
return "polygon-mainnet.g.alchemy.com";
|
return "polygon-mainnet.g.alchemy.com";
|
||||||
|
case "matic-amoy":
|
||||||
|
return "polygon-amoy.g.alchemy.com";
|
||||||
case "matic-mumbai":
|
case "matic-mumbai":
|
||||||
return "polygon-mumbai.g.alchemy.com";
|
return "polygon-mumbai.g.alchemy.com";
|
||||||
case "optimism":
|
case "optimism":
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
* - Optimism Goerli Testnet (``optimism-goerli``)
|
* - Optimism Goerli Testnet (``optimism-goerli``)
|
||||||
* - Optimism Sepolia Testnet (``optimism-sepolia``)
|
* - Optimism Sepolia Testnet (``optimism-sepolia``)
|
||||||
* - Polygon (``matic``)
|
* - Polygon (``matic``)
|
||||||
|
* - Polygon Amoy Testnet (``matic-amoy``)
|
||||||
* - Polygon Mumbai Testnet (``matic-mumbai``)
|
* - Polygon Mumbai Testnet (``matic-mumbai``)
|
||||||
*
|
*
|
||||||
* @_subsection: api/providers/thirdparty:INFURA [providers-infura]
|
* @_subsection: api/providers/thirdparty:INFURA [providers-infura]
|
||||||
@ -72,6 +73,8 @@ function getHost(name: string): string {
|
|||||||
return "linea-goerli.infura.io";
|
return "linea-goerli.infura.io";
|
||||||
case "matic":
|
case "matic":
|
||||||
return "polygon-mainnet.infura.io";
|
return "polygon-mainnet.infura.io";
|
||||||
|
case "matic-amoy":
|
||||||
|
return "polygon-amoy.infura.io";
|
||||||
case "matic-mumbai":
|
case "matic-mumbai":
|
||||||
return "polygon-mumbai.infura.io";
|
return "polygon-mumbai.infura.io";
|
||||||
case "optimism":
|
case "optimism":
|
||||||
|
Loading…
Reference in New Issue
Block a user