Socket
Socket
Sign inDemoInstall

@ethersproject/providers

Package Overview
Dependencies
34
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.7.1 to 5.7.2

2

lib.esm/_version.d.ts

@@ -1,2 +0,2 @@

export declare const version = "providers/5.7.1";
export declare const version = "providers/5.7.2";
//# sourceMappingURL=_version.d.ts.map

@@ -1,2 +0,2 @@

export const version = "providers/5.7.1";
export const version = "providers/5.7.2";
//# sourceMappingURL=_version.js.map

@@ -45,14 +45,5 @@ "use strict";

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/";
host = "eth-goerli.g.alchemy.com/v2/";
break;
case "kovan":
host = "eth-kovan.alchemyapi.io/v2/";
break;
case "matic":

@@ -67,5 +58,2 @@ host = "polygon-mainnet.g.alchemy.com/v2/";

break;
case "arbitrum-rinkeby":
host = "arb-rinkeby.g.alchemy.com/v2/";
break;
case "arbitrum-goerli":

@@ -77,5 +65,2 @@ host = "arb-goerli.g.alchemy.com/v2/";

break;
case "optimism-kovan":
host = "opt-kovan.g.alchemy.com/v2/";
break;
case "optimism-goerli":

@@ -82,0 +67,0 @@ host = "opt-goerli.g.alchemy.com/v2/";

@@ -168,8 +168,2 @@ "use strict";

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":

@@ -179,6 +173,14 @@ return "https:/\/api-goerli.etherscan.io";

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:

@@ -185,0 +187,0 @@ }

@@ -63,11 +63,2 @@ "use strict";

break;
case "ropsten":
host = "ropsten.infura.io";
break;
case "rinkeby":
host = "rinkeby.infura.io";
break;
case "kovan":
host = "kovan.infura.io";
break;
case "goerli":

@@ -88,4 +79,4 @@ host = "goerli.infura.io";

break;
case "optimism-kovan":
host = "optimism-kovan.infura.io";
case "optimism-goerli":
host = "optimism-goerli.infura.io";
break;

@@ -95,4 +86,4 @@ case "arbitrum":

break;
case "arbitrum-rinkeby":
host = "arbitrum-rinkeby.infura.io";
case "arbitrum-goerli":
host = "arbitrum-goerli.infura.io";
break;

@@ -99,0 +90,0 @@ default:

@@ -94,3 +94,3 @@ "use strict";

// "insufficient funds for gas * price + value + cost(data)"
if (message.match(/insufficient funds|base fee exceeds gas limit/i)) {
if (message.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)) {
logger.throwError("insufficient funds for intrinsic transaction cost", Logger.errors.INSUFFICIENT_FUNDS, {

@@ -118,3 +118,3 @@ error, method, transaction

}
if (errorGas.indexOf(method) >= 0 && message.match(/gas required exceeds allowance|always failing transaction|execution reverted/)) {
if (errorGas.indexOf(method) >= 0 && message.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)) {
logger.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, {

@@ -121,0 +121,0 @@ error, method, transaction

@@ -1,2 +0,2 @@

export declare const version = "providers/5.7.1";
export declare const version = "providers/5.7.2";
//# sourceMappingURL=_version.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = void 0;
exports.version = "providers/5.7.1";
exports.version = "providers/5.7.2";
//# sourceMappingURL=_version.js.map

@@ -71,14 +71,5 @@ "use strict";

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/";
host = "eth-goerli.g.alchemy.com/v2/";
break;
case "kovan":
host = "eth-kovan.alchemyapi.io/v2/";
break;
case "matic":

@@ -93,5 +84,2 @@ host = "polygon-mainnet.g.alchemy.com/v2/";

break;
case "arbitrum-rinkeby":
host = "arb-rinkeby.g.alchemy.com/v2/";
break;
case "arbitrum-goerli":

@@ -103,5 +91,2 @@ host = "arb-goerli.g.alchemy.com/v2/";

break;
case "optimism-kovan":
host = "opt-kovan.g.alchemy.com/v2/";
break;
case "optimism-goerli":

@@ -108,0 +93,0 @@ host = "opt-goerli.g.alchemy.com/v2/";

@@ -223,8 +223,2 @@ "use strict";

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":

@@ -234,6 +228,14 @@ return "https:/\/api-goerli.etherscan.io";

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:

@@ -240,0 +242,0 @@ }

@@ -89,11 +89,2 @@ "use strict";

break;
case "ropsten":
host = "ropsten.infura.io";
break;
case "rinkeby":
host = "rinkeby.infura.io";
break;
case "kovan":
host = "kovan.infura.io";
break;
case "goerli":

@@ -114,4 +105,4 @@ host = "goerli.infura.io";

break;
case "optimism-kovan":
host = "optimism-kovan.infura.io";
case "optimism-goerli":
host = "optimism-goerli.infura.io";
break;

@@ -121,4 +112,4 @@ case "arbitrum":

break;
case "arbitrum-rinkeby":
host = "arbitrum-rinkeby.infura.io";
case "arbitrum-goerli":
host = "arbitrum-goerli.infura.io";
break;

@@ -125,0 +116,0 @@ default:

@@ -143,3 +143,3 @@ "use strict";

// "insufficient funds for gas * price + value + cost(data)"
if (message.match(/insufficient funds|base fee exceeds gas limit/i)) {
if (message.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)) {
logger.throwError("insufficient funds for intrinsic transaction cost", logger_1.Logger.errors.INSUFFICIENT_FUNDS, {

@@ -175,3 +175,3 @@ error: error,

}
if (errorGas.indexOf(method) >= 0 && message.match(/gas required exceeds allowance|always failing transaction|execution reverted/)) {
if (errorGas.indexOf(method) >= 0 && message.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)) {
logger.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", logger_1.Logger.errors.UNPREDICTABLE_GAS_LIMIT, {

@@ -178,0 +178,0 @@ error: error,

@@ -50,3 +50,3 @@ {

],
"gitHead": "44cbc7fa4e199c1d6113ceec3c5162f53def5bb8",
"gitHead": "60248f32491b13e914f801402d3041a37e4bf44a",
"keywords": [

@@ -72,5 +72,5 @@ "Ethereum",

"sideEffects": false,
"tarballHash": "0xcfeb26bef573f86310ea7384b475796769baa01e30e4f46bbff2bd96616f2ccc",
"tarballHash": "0x7cd2809b100a1f50c6855245bf6ee7e848535447206f8fb83837445400204372",
"types": "./lib/index.d.ts",
"version": "5.7.1"
"version": "5.7.2"
}

@@ -1,1 +0,1 @@

export const version = "providers/5.7.1";
export const version = "providers/5.7.2";

@@ -61,14 +61,5 @@ "use strict";

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/";
host = "eth-goerli.g.alchemy.com/v2/";
break;
case "kovan":
host = "eth-kovan.alchemyapi.io/v2/";
break;
case "matic":

@@ -83,5 +74,2 @@ host = "polygon-mainnet.g.alchemy.com/v2/";

break;
case "arbitrum-rinkeby":
host = "arb-rinkeby.g.alchemy.com/v2/";
break;
case "arbitrum-goerli":

@@ -93,5 +81,2 @@ host = "arb-goerli.g.alchemy.com/v2/";

break;
case "optimism-kovan":
host = "opt-kovan.g.alchemy.com/v2/";
break;
case "optimism-goerli":

@@ -98,0 +83,0 @@ host = "opt-goerli.g.alchemy.com/v2/"

@@ -174,8 +174,2 @@ "use strict";

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":

@@ -185,6 +179,14 @@ return "https:/\/api-goerli.etherscan.io";

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:

@@ -191,0 +193,0 @@ }

@@ -90,11 +90,2 @@ "use strict";

break;
case "ropsten":
host = "ropsten.infura.io";
break;
case "rinkeby":
host = "rinkeby.infura.io";
break;
case "kovan":
host = "kovan.infura.io";
break;
case "goerli":

@@ -115,4 +106,4 @@ host = "goerli.infura.io";

break;
case "optimism-kovan":
host = "optimism-kovan.infura.io";
case "optimism-goerli":
host = "optimism-goerli.infura.io";
break;

@@ -122,4 +113,4 @@ case "arbitrum":

break;
case "arbitrum-rinkeby":
host = "arbitrum-rinkeby.infura.io";
case "arbitrum-goerli":
host = "arbitrum-goerli.infura.io";
break;

@@ -126,0 +117,0 @@ default:

@@ -97,3 +97,3 @@ "use strict";

// "insufficient funds for gas * price + value + cost(data)"
if (message.match(/insufficient funds|base fee exceeds gas limit/i)) {
if (message.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)) {
logger.throwError("insufficient funds for intrinsic transaction cost", Logger.errors.INSUFFICIENT_FUNDS, {

@@ -125,3 +125,3 @@ error, method, transaction

if (errorGas.indexOf(method) >= 0 && message.match(/gas required exceeds allowance|always failing transaction|execution reverted/)) {
if (errorGas.indexOf(method) >= 0 && message.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)) {
logger.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, {

@@ -128,0 +128,0 @@ error, method, transaction

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc