Socket
Socket
Sign inDemoInstall

@ethersproject/abstract-signer

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethersproject/abstract-signer - npm Package Compare versions

Comparing version 5.4.1 to 5.5.0

2

lib.esm/_version.d.ts

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

export declare const version = "abstract-signer/5.4.1";
export declare const version = "abstract-signer/5.5.0";
//# sourceMappingURL=_version.d.ts.map

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

export const version = "abstract-signer/5.4.1";
export const version = "abstract-signer/5.5.0";
//# sourceMappingURL=_version.js.map

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

const allowedTransactionKeys = [
"accessList", "chainId", "data", "from", "gasLimit", "gasPrice", "maxFeePerGas", "maxPriorityFeePerGas", "nonce", "to", "type", "value"
"accessList", "chainId", "customData", "data", "from", "gasLimit", "gasPrice", "maxFeePerGas", "maxPriorityFeePerGas", "nonce", "to", "type", "value"
];

@@ -47,3 +47,3 @@ const forwardErrors = [

}
// Populates "from" if unspecified, and estimates the gas for the transation
// Populates "from" if unspecified, and estimates the gas for the transaction
estimateGas(transaction) {

@@ -56,3 +56,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
// Populates "from" if unspecified, and calls with the transation
// Populates "from" if unspecified, and calls with the transaction
call(transaction, blockTag) {

@@ -156,3 +156,3 @@ return __awaiter(this, void 0, void 0, function* () {

}
// Do not allow mixing pre-eip-1559 and eip-1559 proerties
// Do not allow mixing pre-eip-1559 and eip-1559 properties
const hasEip1559 = (tx.maxFeePerGas != null || tx.maxPriorityFeePerGas != null);

@@ -159,0 +159,0 @@ if (tx.gasPrice != null && (tx.type === 2 || hasEip1559)) {

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

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

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

var allowedTransactionKeys = [
"accessList", "chainId", "data", "from", "gasLimit", "gasPrice", "maxFeePerGas", "maxPriorityFeePerGas", "nonce", "to", "type", "value"
"accessList", "chainId", "customData", "data", "from", "gasLimit", "gasPrice", "maxFeePerGas", "maxPriorityFeePerGas", "nonce", "to", "type", "value"
];

@@ -76,3 +76,3 @@ var forwardErrors = [

logger.checkAbstract(_newTarget, Signer);
properties_1.defineReadOnly(this, "_isSigner", true);
(0, properties_1.defineReadOnly)(this, "_isSigner", true);
}

@@ -105,3 +105,3 @@ ///////////////////

};
// Populates "from" if unspecified, and estimates the gas for the transation
// Populates "from" if unspecified, and estimates the gas for the transaction
Signer.prototype.estimateGas = function (transaction) {

@@ -114,3 +114,3 @@ return __awaiter(this, void 0, void 0, function () {

this._checkProvider("estimateGas");
return [4 /*yield*/, properties_1.resolveProperties(this.checkTransaction(transaction))];
return [4 /*yield*/, (0, properties_1.resolveProperties)(this.checkTransaction(transaction))];
case 1:

@@ -124,3 +124,3 @@ tx = _a.sent();

};
// Populates "from" if unspecified, and calls with the transation
// Populates "from" if unspecified, and calls with the transaction
Signer.prototype.call = function (transaction, blockTag) {

@@ -133,3 +133,3 @@ return __awaiter(this, void 0, void 0, function () {

this._checkProvider("call");
return [4 /*yield*/, properties_1.resolveProperties(this.checkTransaction(transaction))];
return [4 /*yield*/, (0, properties_1.resolveProperties)(this.checkTransaction(transaction))];
case 1:

@@ -229,3 +229,3 @@ tx = _a.sent();

}
var tx = properties_1.shallowCopy(transaction);
var tx = (0, properties_1.shallowCopy)(transaction);
if (tx.from == null) {

@@ -261,3 +261,3 @@ tx.from = this.getAddress();

switch (_a.label) {
case 0: return [4 /*yield*/, properties_1.resolveProperties(this.checkTransaction(transaction))];
case 0: return [4 /*yield*/, (0, properties_1.resolveProperties)(this.checkTransaction(transaction))];
case 1:

@@ -393,3 +393,3 @@ tx = _a.sent();

}
return [4 /*yield*/, properties_1.resolveProperties(tx)];
return [4 /*yield*/, (0, properties_1.resolveProperties)(tx)];
case 6: return [2 /*return*/, _a.sent()];

@@ -422,4 +422,4 @@ }

_this = _super.call(this) || this;
properties_1.defineReadOnly(_this, "address", address);
properties_1.defineReadOnly(_this, "provider", provider || null);
(0, properties_1.defineReadOnly)(_this, "address", address);
(0, properties_1.defineReadOnly)(_this, "provider", provider || null);
return _this;

@@ -426,0 +426,0 @@ }

{
"author": "Richard Moore <me@ricmoo.com>",
"dependencies": {
"@ethersproject/abstract-provider": "^5.4.0",
"@ethersproject/bignumber": "^5.4.0",
"@ethersproject/bytes": "^5.4.0",
"@ethersproject/logger": "^5.4.0",
"@ethersproject/properties": "^5.4.0"
"@ethersproject/abstract-provider": "^5.5.0",
"@ethersproject/bignumber": "^5.5.0",
"@ethersproject/bytes": "^5.5.0",
"@ethersproject/logger": "^5.5.0",
"@ethersproject/properties": "^5.5.0"
},

@@ -22,3 +22,3 @@ "description": "An Abstract Class for desribing an Ethereum Signer for ethers.",

],
"gitHead": "68229ac0aff790b083717dc73cd84f38d32a3926",
"gitHead": "73a46efea32c3f9a4833ed77896a216e3d3752a0",
"keywords": [

@@ -44,5 +44,5 @@ "Ethereum",

"sideEffects": false,
"tarballHash": "0xd92a067be6d0ada9205b48af7af6806d0d3d5e2f876276e48ef3c552837116d8",
"tarballHash": "0x02eb8a3e41b27927d5717202f6818d00c95b77a3e7227ce3c7312ed21d2ff8ba",
"types": "./lib/index.d.ts",
"version": "5.4.1"
"version": "5.5.0"
}

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

export const version = "abstract-signer/5.4.1";
export const version = "abstract-signer/5.5.0";

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

const allowedTransactionKeys: Array<string> = [
"accessList", "chainId", "data", "from", "gasLimit", "gasPrice", "maxFeePerGas", "maxPriorityFeePerGas", "nonce", "to", "type", "value"
"accessList", "chainId", "customData", "data", "from", "gasLimit", "gasPrice", "maxFeePerGas", "maxPriorityFeePerGas", "nonce", "to", "type", "value"
];

@@ -53,3 +53,3 @@

// @TODO: This is a temporary measure to preserse backwards compatibility
// @TODO: This is a temporary measure to preserve backwards compatibility
// In v6, the method on TypedDataSigner will be added to Signer

@@ -75,3 +75,3 @@ export interface TypedDataSigner {

// Signs a transaxction and returns the fully serialized, signed transaction.
// Signs a transaction and returns the fully serialized, signed transaction.
// The EXACT transaction MUST be signed, and NO additional properties to be added.

@@ -110,3 +110,3 @@ // - This MAY throw if signing transactions is not supports, but if

// Populates "from" if unspecified, and estimates the gas for the transation
// Populates "from" if unspecified, and estimates the gas for the transaction
async estimateGas(transaction: Deferrable<TransactionRequest>): Promise<BigNumber> {

@@ -118,3 +118,3 @@ this._checkProvider("estimateGas");

// Populates "from" if unspecified, and calls with the transation
// Populates "from" if unspecified, and calls with the transaction
async call(transaction: Deferrable<TransactionRequest>, blockTag?: BlockTag): Promise<string> {

@@ -220,3 +220,3 @@ this._checkProvider("call");

// Do not allow mixing pre-eip-1559 and eip-1559 proerties
// Do not allow mixing pre-eip-1559 and eip-1559 properties
const hasEip1559 = (tx.maxFeePerGas != null || tx.maxPriorityFeePerGas != null);

@@ -223,0 +223,0 @@ if (tx.gasPrice != null && (tx.type === 2 || hasEip1559)) {

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