Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ethersproject/abstract-provider

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethersproject/abstract-provider - npm Package Compare versions

Comparing version 5.6.1 to 5.7.0

2

lib.esm/_version.d.ts

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

export declare const version = "abstract-provider/5.6.1";
export declare const version = "abstract-provider/5.7.0";
//# sourceMappingURL=_version.d.ts.map

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

export const version = "abstract-provider/5.6.1";
export const version = "abstract-provider/5.7.0";
//# sourceMappingURL=_version.js.map

@@ -85,2 +85,3 @@ import { BigNumber, BigNumberish } from "@ethersproject/bignumber";

export interface FeeData {
lastBaseFeePerGas: null | BigNumber;
maxFeePerGas: null | BigNumber;

@@ -87,0 +88,0 @@ maxPriorityFeePerGas: null | BigNumber;

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

});
let maxFeePerGas = null, maxPriorityFeePerGas = null;
let lastBaseFeePerGas = null, maxFeePerGas = null, maxPriorityFeePerGas = null;
if (block && block.baseFeePerGas) {

@@ -93,6 +93,7 @@ // We may want to compute this more accurately in the future,

// See: https://eips.ethereum.org/EIPS/eip-1559
lastBaseFeePerGas = block.baseFeePerGas;
maxPriorityFeePerGas = BigNumber.from("1500000000");
maxFeePerGas = block.baseFeePerGas.mul(2).add(maxPriorityFeePerGas);
}
return { maxFeePerGas, maxPriorityFeePerGas, gasPrice };
return { lastBaseFeePerGas, maxFeePerGas, maxPriorityFeePerGas, gasPrice };
});

@@ -99,0 +100,0 @@ }

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

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

@@ -85,2 +85,3 @@ import { BigNumber, BigNumberish } from "@ethersproject/bignumber";

export interface FeeData {
lastBaseFeePerGas: null | BigNumber;
maxFeePerGas: null | BigNumber;

@@ -87,0 +88,0 @@ maxPriorityFeePerGas: null | BigNumber;

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

return __awaiter(this, void 0, void 0, function () {
var _a, block, gasPrice, maxFeePerGas, maxPriorityFeePerGas;
var _a, block, gasPrice, lastBaseFeePerGas, maxFeePerGas, maxPriorityFeePerGas;
return __generator(this, function (_b) {

@@ -159,3 +159,3 @@ switch (_b.label) {

_a = _b.sent(), block = _a.block, gasPrice = _a.gasPrice;
maxFeePerGas = null, maxPriorityFeePerGas = null;
lastBaseFeePerGas = null, maxFeePerGas = null, maxPriorityFeePerGas = null;
if (block && block.baseFeePerGas) {

@@ -165,6 +165,7 @@ // We may want to compute this more accurately in the future,

// See: https://eips.ethereum.org/EIPS/eip-1559
lastBaseFeePerGas = block.baseFeePerGas;
maxPriorityFeePerGas = bignumber_1.BigNumber.from("1500000000");
maxFeePerGas = block.baseFeePerGas.mul(2).add(maxPriorityFeePerGas);
}
return [2 /*return*/, { maxFeePerGas: maxFeePerGas, maxPriorityFeePerGas: maxPriorityFeePerGas, gasPrice: gasPrice }];
return [2 /*return*/, { lastBaseFeePerGas: lastBaseFeePerGas, maxFeePerGas: maxFeePerGas, maxPriorityFeePerGas: maxPriorityFeePerGas, gasPrice: gasPrice }];
}

@@ -171,0 +172,0 @@ });

{
"author": "Richard Moore <me@ricmoo.com>",
"dependencies": {
"@ethersproject/bignumber": "^5.6.2",
"@ethersproject/bytes": "^5.6.1",
"@ethersproject/logger": "^5.6.0",
"@ethersproject/networks": "^5.6.3",
"@ethersproject/properties": "^5.6.0",
"@ethersproject/transactions": "^5.6.2",
"@ethersproject/web": "^5.6.1"
"@ethersproject/bignumber": "^5.7.0",
"@ethersproject/bytes": "^5.7.0",
"@ethersproject/logger": "^5.7.0",
"@ethersproject/networks": "^5.7.0",
"@ethersproject/properties": "^5.7.0",
"@ethersproject/transactions": "^5.7.0",
"@ethersproject/web": "^5.7.0"
},

@@ -24,3 +24,3 @@ "description": "An Abstract Class for describing an Ethereum Provider for ethers.",

],
"gitHead": "a71f51825571d1ea0fa997c1352d5b4d85643416",
"gitHead": "ec1b9583039a14a0e0fa15d0a2a6082a2f41cf5b",
"keywords": [

@@ -46,5 +46,5 @@ "Ethereum",

"sideEffects": false,
"tarballHash": "0x6a2c0239731f6193b7bd41f575022a6c7a2f698d8a1f5cebcfd3091b3e1ad772",
"tarballHash": "0x952cf2ca65f6e38799386cab1c8595e8f849360128bc61fb28de2b595bbfaad9",
"types": "./lib/index.d.ts",
"version": "5.6.1"
"version": "5.7.0"
}

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

export const version = "abstract-provider/5.6.1";
export const version = "abstract-provider/5.7.0";

@@ -127,2 +127,3 @@ "use strict";

export interface FeeData {
lastBaseFeePerGas: null | BigNumber;
maxFeePerGas: null | BigNumber;

@@ -245,3 +246,3 @@ maxPriorityFeePerGas: null | BigNumber;

let maxFeePerGas = null, maxPriorityFeePerGas = null;
let lastBaseFeePerGas = null, maxFeePerGas = null, maxPriorityFeePerGas = null;

@@ -252,2 +253,3 @@ if (block && block.baseFeePerGas) {

// See: https://eips.ethereum.org/EIPS/eip-1559
lastBaseFeePerGas = block.baseFeePerGas;
maxPriorityFeePerGas = BigNumber.from("1500000000");

@@ -257,3 +259,3 @@ maxFeePerGas = block.baseFeePerGas.mul(2).add(maxPriorityFeePerGas);

return { maxFeePerGas, maxPriorityFeePerGas, gasPrice };
return { lastBaseFeePerGas, maxFeePerGas, maxPriorityFeePerGas, gasPrice };
}

@@ -260,0 +262,0 @@

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc