diff --git a/packages/providers/src.ts/alchemy-provider.ts b/packages/providers/src.ts/alchemy-provider.ts index d2758ac79..206041792 100644 --- a/packages/providers/src.ts/alchemy-provider.ts +++ b/packages/providers/src.ts/alchemy-provider.ts @@ -58,17 +58,8 @@ export class AlchemyProvider extends UrlJsonRpcProvider { case "homestead": host = "eth-mainnet.alchemyapi.io/v2/"; break; - case "ropsten": - host = "eth-ropsten.alchemyapi.io/v2/"; - break; - case "rinkeby": - host = "eth-rinkeby.alchemyapi.io/v2/"; - break; case "goerli": - host = "eth-goerli.alchemyapi.io/v2/"; - break; - case "kovan": - host = "eth-kovan.alchemyapi.io/v2/"; + host = "eth-goerli.g.alchemyapi.io/v2/"; break; case "matic": host = "polygon-mainnet.g.alchemy.com/v2/"; @@ -79,18 +70,12 @@ export class AlchemyProvider extends UrlJsonRpcProvider { case "arbitrum": host = "arb-mainnet.g.alchemy.com/v2/"; break; - case "arbitrum-rinkeby": - host = "arb-rinkeby.g.alchemy.com/v2/"; - break; case "arbitrum-goerli": host = "arb-goerli.g.alchemy.com/v2/"; break; case "optimism": host = "opt-mainnet.g.alchemy.com/v2/"; break; - case "optimism-kovan": - host = "opt-kovan.g.alchemy.com/v2/"; - break; case "optimism-goerli": host = "opt-goerli.g.alchemy.com/v2/" break; diff --git a/packages/providers/src.ts/etherscan-provider.ts b/packages/providers/src.ts/etherscan-provider.ts index 32b30099a..46f82754d 100644 --- a/packages/providers/src.ts/etherscan-provider.ts +++ b/packages/providers/src.ts/etherscan-provider.ts @@ -171,20 +171,22 @@ export class EtherscanProvider extends BaseProvider{ switch(this.network ? this.network.name: "invalid") { case "homestead": return "https:/\/api.etherscan.io"; - case "ropsten": - return "https:/\/api-ropsten.etherscan.io"; - case "rinkeby": - return "https:/\/api-rinkeby.etherscan.io"; - case "kovan": - return "https:/\/api-kovan.etherscan.io"; case "goerli": return "https:/\/api-goerli.etherscan.io"; case "sepolia": return "https:/\/api-sepolia.etherscan.io"; + case "matic": + return "https:/\/api.polygonscan.com"; + case "maticmum": + return "https:/\/api-testnet.polygonscan.com"; + case "arbitrum": + return "https:/\/api.arbiscan.io"; + case "arbitrum-goerli": + return "https:/\/api-goerli.arbiscan.io"; case "optimism": return "https:/\/api-optimistic.etherscan.io"; - case "optimism-kovan": - return "https:/\/api-kovan-optimistic.etherscan.io"; + case "optimism-goerli": + return "https:/\/api-goerli-optimistic.etherscan.io"; default: } diff --git a/packages/providers/src.ts/infura-provider.ts b/packages/providers/src.ts/infura-provider.ts index 48214fdc5..c3440457a 100644 --- a/packages/providers/src.ts/infura-provider.ts +++ b/packages/providers/src.ts/infura-provider.ts @@ -87,15 +87,6 @@ export class InfuraProvider extends UrlJsonRpcProvider { case "homestead": host = "mainnet.infura.io"; break; - case "ropsten": - host = "ropsten.infura.io"; - break; - case "rinkeby": - host = "rinkeby.infura.io"; - break; - case "kovan": - host = "kovan.infura.io"; - break; case "goerli": host = "goerli.infura.io"; break; @@ -111,14 +102,14 @@ export class InfuraProvider extends UrlJsonRpcProvider { case "optimism": host = "optimism-mainnet.infura.io"; break; - case "optimism-kovan": - host = "optimism-kovan.infura.io"; + case "optimism-goerli": + host = "optimism-goerli.infura.io"; break; case "arbitrum": host = "arbitrum-mainnet.infura.io"; break; - case "arbitrum-rinkeby": - host = "arbitrum-rinkeby.infura.io"; + case "arbitrum-goerli": + host = "arbitrum-goerli.infura.io"; break; default: logger.throwError("unsupported network", Logger.errors.INVALID_ARGUMENT, {