Socket
Socket
Sign inDemoInstall

ethers

Package Overview
Dependencies
Maintainers
1
Versions
319
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ethers - npm Package Compare versions

Comparing version 6.12.0 to 6.12.1

8

CHANGELOG.md

@@ -6,2 +6,10 @@ Change Log

ethers/v6.12.1 (2024-04-30 22:46)
---------------------------------
- Prevent bad Interface clone when using two different versions of v6 ([#4689](https://github.com/ethers-io/ethers.js/issues/4689); [4d2d90f](https://github.com/ethers-io/ethers.js/commit/4d2d90f5cea2eb2f9559e490a34aa1567c8c4c14)).
- Fixed typo in error message for invalid quorum weight ([#4149](https://github.com/ethers-io/ethers.js/issues/4149); [45b9b9c](https://github.com/ethers-io/ethers.js/commit/45b9b9c9322bf20feaf892d948bcfb8db8932877)).
- Added matic-amoy to EtherescanProvider ([#4711](https://github.com/ethers-io/ethers.js/issues/4711); [5c8d17a](https://github.com/ethers-io/ethers.js/commit/5c8d17a61825fe002bd45ee5b2239bfd8c8ae189)).
- Fix JsonRpcProvider ignoring pollingInterval in options ([#4644](https://github.com/ethers-io/ethers.js/issues/4644); [7b7be0d](https://github.com/ethers-io/ethers.js/commit/7b7be0d1ef637f073b28bce54f4ecdfb8c88d09c)).
ethers/v6.12.0 (2024-04-17 01:09)

@@ -8,0 +16,0 @@ ---------------------------------

2

lib.commonjs/_version.js

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

*/
exports.version = "6.12.0";
exports.version = "6.12.1";
//# sourceMappingURL=_version.js.map

@@ -1097,3 +1097,7 @@ "use strict";

}
// Maybe an interface from an older version, or from a symlinked copy
// An Interface; possibly from another v6 instance
if (typeof (value.formatJson) === "function") {
return new Interface(value.formatJson());
}
// A legacy Interface; from an older version
if (typeof (value.format) === "function") {

@@ -1100,0 +1104,0 @@ return new Interface(value.format("json"));

@@ -345,3 +345,3 @@ /**

/**
* Returns or resovles to a transaction for %%request%%, resolving
* Returns or resolves to a transaction for %%request%%, resolving
* any ENS names or [[Addressable]] and returning if already a valid

@@ -348,0 +348,0 @@ * transaction.

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

/**
* Returns or resovles to a transaction for %%request%%, resolving
* Returns or resolves to a transaction for %%request%%, resolving
* any ENS names or [[Addressable]] and returning if already a valid

@@ -510,0 +510,0 @@ * transaction.

@@ -66,7 +66,7 @@ /**

/**
* Resovles to the encoded %%address%% for %%coinType%%.
* Resolves to the encoded %%address%% for %%coinType%%.
*/
encodeAddress(coinType: number, address: string): Promise<string>;
/**
* Resovles to the decoded %%data%% for %%coinType%%.
* Resolves to the decoded %%data%% for %%coinType%%.
*/

@@ -73,0 +73,0 @@ decodeAddress(coinType: number, data: BytesLike): Promise<string>;

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

/**
* Resovles to the encoded %%address%% for %%coinType%%.
* Resolves to the encoded %%address%% for %%coinType%%.
*/

@@ -62,3 +62,3 @@ async encodeAddress(coinType, address) {

/**
* Resovles to the decoded %%data%% for %%coinType%%.
* Resolves to the decoded %%data%% for %%coinType%%.
*/

@@ -65,0 +65,0 @@ async decodeAddress(coinType, data) {

@@ -20,2 +20,3 @@ /**

* - Polygon Mumbai Testnet (``matic-mumbai``)
* - Polygon Amoy Testnet (``matic-amoy``)
*

@@ -22,0 +23,0 @@ * @_subsection api/providers/thirdparty:Etherscan [providers-etherscan]

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

* - Polygon Mumbai Testnet (``matic-mumbai``)
* - Polygon Amoy Testnet (``matic-amoy``)
*

@@ -128,2 +129,4 @@ * @_subsection api/providers/thirdparty:Etherscan [providers-etherscan]

return "https:/\/api.polygonscan.com";
case "matic-amoy":
return "https:/\/api-amoy.polygonscan.com";
case "matic-mumbai":

@@ -130,0 +133,0 @@ return "https:/\/api-testnet.polygonscan.com";

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

this.eventWorkers = 1;
(0, index_js_1.assertArgument)(this.quorum <= this.#configs.reduce((a, c) => (a + c.weight), 0), "quorum exceed provider wieght", "quorum", this.quorum);
(0, index_js_1.assertArgument)(this.quorum <= this.#configs.reduce((a, c) => (a + c.weight), 0), "quorum exceed provider weight", "quorum", this.quorum);
}

@@ -262,0 +262,0 @@ get providerConfigs() {

@@ -822,3 +822,7 @@ "use strict";

super(network, options);
this.#pollingInterval = 4000;
let pollingInterval = this._getOption("pollingInterval");
if (pollingInterval == null) {
pollingInterval = defaultOptions.pollingInterval;
}
this.#pollingInterval = pollingInterval;
}

@@ -825,0 +829,0 @@ _getSubscriber(sub) {

@@ -993,3 +993,3 @@ import type { AddressLike, NameResolver } from "../address/index.js";

* Each field that is ``null`` matches **any** value, a field that is
* a ``string`` must match exactly that value and and ``array`` is
* a ``string`` must match exactly that value and ``array`` is
* effectively an ``OR``-ed set, where any one of those values must

@@ -996,0 +996,0 @@ * match.

@@ -59,5 +59,5 @@ /**

*
* Since extended keys do not provider full path details, this
* Since extended keys do not provide full path details, this
* may be ``null``, if instantiated from a source that does not
* enocde it.
* encode it.
*/

@@ -64,0 +64,0 @@ readonly path: null | string;

@@ -130,5 +130,5 @@ "use strict";

*
* Since extended keys do not provider full path details, this
* Since extended keys do not provide full path details, this
* may be ``null``, if instantiated from a source that does not
* enocde it.
* encode it.
*/

@@ -135,0 +135,0 @@ path;

@@ -5,3 +5,3 @@ /* Do NOT modify this file; see /src.ts/_admin/update-version.ts */

*/
export const version = "6.12.0";
export const version = "6.12.1";
//# sourceMappingURL=_version.js.map

@@ -1089,3 +1089,7 @@ /**

}
// Maybe an interface from an older version, or from a symlinked copy
// An Interface; possibly from another v6 instance
if (typeof (value.formatJson) === "function") {
return new Interface(value.formatJson());
}
// A legacy Interface; from an older version
if (typeof (value.format) === "function") {

@@ -1092,0 +1096,0 @@ return new Interface(value.format("json"));

@@ -345,3 +345,3 @@ /**

/**
* Returns or resovles to a transaction for %%request%%, resolving
* Returns or resolves to a transaction for %%request%%, resolving
* any ENS names or [[Addressable]] and returning if already a valid

@@ -348,0 +348,0 @@ * transaction.

@@ -503,3 +503,3 @@ /**

/**
* Returns or resovles to a transaction for %%request%%, resolving
* Returns or resolves to a transaction for %%request%%, resolving
* any ENS names or [[Addressable]] and returning if already a valid

@@ -506,0 +506,0 @@ * transaction.

@@ -66,7 +66,7 @@ /**

/**
* Resovles to the encoded %%address%% for %%coinType%%.
* Resolves to the encoded %%address%% for %%coinType%%.
*/
encodeAddress(coinType: number, address: string): Promise<string>;
/**
* Resovles to the decoded %%data%% for %%coinType%%.
* Resolves to the decoded %%data%% for %%coinType%%.
*/

@@ -73,0 +73,0 @@ decodeAddress(coinType: number, data: BytesLike): Promise<string>;

@@ -52,3 +52,3 @@ /**

/**
* Resovles to the encoded %%address%% for %%coinType%%.
* Resolves to the encoded %%address%% for %%coinType%%.
*/

@@ -59,3 +59,3 @@ async encodeAddress(coinType, address) {

/**
* Resovles to the decoded %%data%% for %%coinType%%.
* Resolves to the decoded %%data%% for %%coinType%%.
*/

@@ -62,0 +62,0 @@ async decodeAddress(coinType, data) {

@@ -20,2 +20,3 @@ /**

* - Polygon Mumbai Testnet (``matic-mumbai``)
* - Polygon Amoy Testnet (``matic-amoy``)
*

@@ -22,0 +23,0 @@ * @_subsection api/providers/thirdparty:Etherscan [providers-etherscan]

@@ -20,2 +20,3 @@ /**

* - Polygon Mumbai Testnet (``matic-mumbai``)
* - Polygon Amoy Testnet (``matic-amoy``)
*

@@ -126,2 +127,4 @@ * @_subsection api/providers/thirdparty:Etherscan [providers-etherscan]

return "https:/\/api.polygonscan.com";
case "matic-amoy":
return "https:/\/api-amoy.polygonscan.com";
case "matic-mumbai":

@@ -128,0 +131,0 @@ return "https:/\/api-testnet.polygonscan.com";

@@ -256,3 +256,3 @@ /**

this.eventWorkers = 1;
assertArgument(this.quorum <= this.#configs.reduce((a, c) => (a + c.weight), 0), "quorum exceed provider wieght", "quorum", this.quorum);
assertArgument(this.quorum <= this.#configs.reduce((a, c) => (a + c.weight), 0), "quorum exceed provider weight", "quorum", this.quorum);
}

@@ -259,0 +259,0 @@ get providerConfigs() {

@@ -817,3 +817,7 @@ /**

super(network, options);
this.#pollingInterval = 4000;
let pollingInterval = this._getOption("pollingInterval");
if (pollingInterval == null) {
pollingInterval = defaultOptions.pollingInterval;
}
this.#pollingInterval = pollingInterval;
}

@@ -820,0 +824,0 @@ _getSubscriber(sub) {

@@ -993,3 +993,3 @@ import type { AddressLike, NameResolver } from "../address/index.js";

* Each field that is ``null`` matches **any** value, a field that is
* a ``string`` must match exactly that value and and ``array`` is
* a ``string`` must match exactly that value and ``array`` is
* effectively an ``OR``-ed set, where any one of those values must

@@ -996,0 +996,0 @@ * match.

@@ -59,5 +59,5 @@ /**

*
* Since extended keys do not provider full path details, this
* Since extended keys do not provide full path details, this
* may be ``null``, if instantiated from a source that does not
* enocde it.
* encode it.
*/

@@ -64,0 +64,0 @@ readonly path: null | string;

@@ -127,5 +127,5 @@ /**

*
* Since extended keys do not provider full path details, this
* Since extended keys do not provide full path details, this
* may be ``null``, if instantiated from a source that does not
* enocde it.
* encode it.
*/

@@ -132,0 +132,0 @@ path;

@@ -96,3 +96,3 @@ {

],
"gitHead": "b4aaab8d39fe47f8a1a296fa442f0856f84faf03",
"gitHead": "4d2d90f5cea2eb2f9559e490a34aa1567c8c4c14",
"homepage": "https://ethers.org",

@@ -135,3 +135,3 @@ "keywords": [

"sideEffects": false,
"version": "6.12.0"
"version": "6.12.1"
}

@@ -6,2 +6,2 @@ /* Do NOT modify this file; see /src.ts/_admin/update-version.ts */

*/
export const version: string = "6.12.0";
export const version: string = "6.12.1";

@@ -1258,3 +1258,8 @@ /**

// Maybe an interface from an older version, or from a symlinked copy
// An Interface; possibly from another v6 instance
if (typeof((<any>value).formatJson) === "function") {
return new Interface((<any>value).formatJson());
}
// A legacy Interface; from an older version
if (typeof((<any>value).format) === "function") {

@@ -1261,0 +1266,0 @@ return new Interface((<any>value).format("json"));

@@ -821,3 +821,3 @@ /**

/**
* Returns or resovles to a transaction for %%request%%, resolving
* Returns or resolves to a transaction for %%request%%, resolving
* any ENS names or [[Addressable]] and returning if already a valid

@@ -824,0 +824,0 @@ * transaction.

@@ -117,3 +117,3 @@ /**

/**
* Resovles to the encoded %%address%% for %%coinType%%.
* Resolves to the encoded %%address%% for %%coinType%%.
*/

@@ -125,3 +125,3 @@ async encodeAddress(coinType: number, address: string): Promise<string> {

/**
* Resovles to the decoded %%data%% for %%coinType%%.
* Resolves to the decoded %%data%% for %%coinType%%.
*/

@@ -128,0 +128,0 @@ async decodeAddress(coinType: number, data: BytesLike): Promise<string> {

@@ -20,2 +20,3 @@ /**

* - Polygon Mumbai Testnet (``matic-mumbai``)
* - Polygon Amoy Testnet (``matic-amoy``)
*

@@ -180,2 +181,4 @@ * @_subsection api/providers/thirdparty:Etherscan [providers-etherscan]

return "https:/\/api.polygonscan.com";
case "matic-amoy":
return "https:/\/api-amoy.polygonscan.com";
case "matic-mumbai":

@@ -182,0 +185,0 @@ return "https:/\/api-testnet.polygonscan.com";

@@ -414,3 +414,3 @@ /**

assertArgument(this.quorum <= this.#configs.reduce((a, c) => (a + c.weight), 0),
"quorum exceed provider wieght", "quorum", this.quorum);
"quorum exceed provider weight", "quorum", this.quorum);
}

@@ -417,0 +417,0 @@

@@ -1165,3 +1165,6 @@ /**

this.#pollingInterval = 4000;
let pollingInterval = this._getOption("pollingInterval");
if (pollingInterval == null) { pollingInterval = defaultOptions.pollingInterval; }
this.#pollingInterval = pollingInterval;
}

@@ -1168,0 +1171,0 @@

@@ -164,5 +164,5 @@ /**

*
* Since extended keys do not provider full path details, this
* Since extended keys do not provide full path details, this
* may be ``null``, if instantiated from a source that does not
* enocde it.
* encode it.
*/

@@ -169,0 +169,0 @@ readonly path!: null | string;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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 too big to display

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