Skip to content

Commit fc1e006

Browse files
committed
admin: update dist files
1 parent d9f45b3 commit fc1e006

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+297
-249
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ Changelog
44
This change log is managed by `admin/cmds/update-versions` but may be manually updated.
55

66

7+
ethers/v5.6.5 (2022-05-01 02:10)
8+
--------------------------------
9+
10+
- Added testnets for AnkrProvider. ([#2949](https://github.com/ethers-io/ethers.js/issues/2949), [#2950](https://github.com/ethers-io/ethers.js/issues/2950); [d9f45b3](https://github.com/ethers-io/ethers.js/commit/d9f45b3b9db92c72f9c606bab8315d0eb02fec70))
11+
- Better error coalescing for OpenEthereum nodes. ([#2846](https://github.com/ethers-io/ethers.js/issues/2846); [bebd669](https://github.com/ethers-io/ethers.js/commit/bebd6698c6c3193f0bdb96b54c5daa5ee5d0692c))
12+
- Enforce 32-byte private key length (2926). ([7b299dd](https://github.com/ethers-io/ethers.js/commit/7b299dd9c97571b12916e3ae529540f3f2e5a367))
13+
- Fixed decimal strings as value-type properties for JsonRpcSigner. ([#2948](https://github.com/ethers-io/ethers.js/issues/2948); [9bf17fa](https://github.com/ethers-io/ethers.js/commit/9bf17fa07c6149a02ef217f2b89f1bfd990b1a6c))
14+
715
ethers/v5.6.4 (2022-04-13 16:56)
816
--------------------------------
917

package-lock.json

Lines changed: 160 additions & 158 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/ethers/dist/ethers.esm.js

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13271,7 +13271,7 @@ elliptic.eddsa = /*RicMoo:ethers:require(./elliptic/eddsa)*/(null);
1327113271

1327213272
var EC$1 = elliptic_1.ec;
1327313273

13274-
const version$b = "signing-key/5.6.0";
13274+
const version$b = "signing-key/5.6.1";
1327513275

1327613276
"use strict";
1327713277
const logger$g = new Logger(version$b);
@@ -13286,6 +13286,9 @@ class SigningKey {
1328613286
constructor(privateKey) {
1328713287
defineReadOnly(this, "curve", "secp256k1");
1328813288
defineReadOnly(this, "privateKey", hexlify(privateKey));
13289+
if (hexDataLength(this.privateKey) !== 32) {
13290+
logger$g.throwArgumentError("invalid private key", "privateKey", "[[ REDACTED ]]");
13291+
}
1328913292
const keyPair = getCurve().keyFromPrivate(arrayify(this.privateKey));
1329013293
defineReadOnly(this, "publicKey", "0x" + keyPair.getPublic(false, "hex"));
1329113294
defineReadOnly(this, "compressedPublicKey", "0x" + keyPair.getPublic(true, "hex"));
@@ -18218,7 +18221,7 @@ var bech32 = {
1821818221
fromWords: fromWords
1821918222
};
1822018223

18221-
const version$m = "providers/5.6.4";
18224+
const version$m = "providers/5.6.5";
1822218225

1822318226
"use strict";
1822418227
const logger$s = new Logger(version$m);
@@ -20383,7 +20386,7 @@ class BaseProvider extends Provider {
2038320386
return null;
2038420387
}
2038520388
// Optimization since the eth node cannot change and does
20386-
// not have a wildcar resolver
20389+
// not have a wildcard resolver
2038720390
if (name !== "eth" && currentName === "eth") {
2038820391
return null;
2038920392
}
@@ -20443,7 +20446,7 @@ class BaseProvider extends Provider {
2044320446
if (typeof (name) !== "string") {
2044420447
logger$t.throwArgumentError("invalid ENS name", "name", name);
2044520448
}
20446-
// Get the addr from the resovler
20449+
// Get the addr from the resolver
2044720450
const resolver = yield this.getResolver(name);
2044820451
if (!resolver) {
2044920452
return null;
@@ -20693,25 +20696,25 @@ function checkError(method, error, params) {
2069320696
message = (message || "").toLowerCase();
2069420697
const transaction = params.transaction || params.signedTransaction;
2069520698
// "insufficient funds for gas * price + value + cost(data)"
20696-
if (message.match(/insufficient funds|base fee exceeds gas limit/)) {
20699+
if (message.match(/insufficient funds|base fee exceeds gas limit/i)) {
2069720700
logger$u.throwError("insufficient funds for intrinsic transaction cost", Logger.errors.INSUFFICIENT_FUNDS, {
2069820701
error, method, transaction
2069920702
});
2070020703
}
2070120704
// "nonce too low"
20702-
if (message.match(/nonce (is )?too low/)) {
20705+
if (message.match(/nonce (is )?too low/i)) {
2070320706
logger$u.throwError("nonce has already been used", Logger.errors.NONCE_EXPIRED, {
2070420707
error, method, transaction
2070520708
});
2070620709
}
2070720710
// "replacement transaction underpriced"
20708-
if (message.match(/replacement transaction underpriced/)) {
20711+
if (message.match(/replacement transaction underpriced|transaction gas price.*too low/i)) {
2070920712
logger$u.throwError("replacement fee too low", Logger.errors.REPLACEMENT_UNDERPRICED, {
2071020713
error, method, transaction
2071120714
});
2071220715
}
2071320716
// "replacement transaction underpriced"
20714-
if (message.match(/only replay-protected/)) {
20717+
if (message.match(/only replay-protected/i)) {
2071520718
logger$u.throwError("legacy pre-eip-155 transactions not supported", Logger.errors.UNSUPPORTED_OPERATION, {
2071620719
error, method, transaction
2071720720
});
@@ -21114,7 +21117,7 @@ class JsonRpcProvider extends BaseProvider {
2111421117
if (method === "call" || method === "estimateGas") {
2111521118
const tx = params.transaction;
2111621119
if (tx && tx.type != null && BigNumber.from(tx.type).isZero()) {
21117-
// If there are no EIP-1559 properties, it might be non-EIP-a559
21120+
// If there are no EIP-1559 properties, it might be non-EIP-1559
2111821121
if (tx.maxFeePerGas == null && tx.maxPriorityFeePerGas == null) {
2111921122
const feeData = yield this.getFeeData();
2112021123
if (feeData.maxFeePerGas == null && feeData.maxPriorityFeePerGas == null) {
@@ -21216,7 +21219,7 @@ class JsonRpcProvider extends BaseProvider {
2121621219
if (transaction[key] == null) {
2121721220
return;
2121821221
}
21219-
const value = hexValue(transaction[key]);
21222+
const value = hexValue(BigNumber.from(transaction[key]));
2122021223
if (key === "gasLimit") {
2122121224
key = "gas";
2122221225
}
@@ -21726,6 +21729,12 @@ function getHost(name) {
2172621729
switch (name) {
2172721730
case "homestead":
2172821731
return "rpc.ankr.com/eth/";
21732+
case "ropsten":
21733+
return "rpc.ankr.com/eth_ropsten/";
21734+
case "rinkeby":
21735+
return "rpc.ankr.com/eth_rinkeby/";
21736+
case "goerli":
21737+
return "rpc.ankr.com/eth_goerli/";
2172921738
case "matic":
2173021739
return "rpc.ankr.com/polygon/";
2173121740
case "arbitrum":
@@ -23607,7 +23616,7 @@ var utils$1 = /*#__PURE__*/Object.freeze({
2360723616
Indexed: Indexed
2360823617
});
2360923618

23610-
const version$p = "ethers/5.6.4";
23619+
const version$p = "ethers/5.6.5";
2361123620

2361223621
"use strict";
2361323622
const logger$J = new Logger(version$p);

packages/ethers/dist/ethers.esm.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/ethers/dist/ethers.esm.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/ethers/dist/ethers.esm.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/ethers/dist/ethers.umd.js

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14458,7 +14458,7 @@
1445814458
"use strict";
1445914459
Object.defineProperty(exports, "__esModule", { value: true });
1446014460
exports.version = void 0;
14461-
exports.version = "signing-key/5.6.0";
14461+
exports.version = "signing-key/5.6.1";
1446214462

1446314463
});
1446414464

@@ -14485,6 +14485,9 @@
1448514485
function SigningKey(privateKey) {
1448614486
(0, lib$3.defineReadOnly)(this, "curve", "secp256k1");
1448714487
(0, lib$3.defineReadOnly)(this, "privateKey", (0, lib$1.hexlify)(privateKey));
14488+
if ((0, lib$1.hexDataLength)(this.privateKey) !== 32) {
14489+
logger.throwArgumentError("invalid private key", "privateKey", "[[ REDACTED ]]");
14490+
}
1448814491
var keyPair = getCurve().keyFromPrivate((0, lib$1.arrayify)(this.privateKey));
1448914492
(0, lib$3.defineReadOnly)(this, "publicKey", "0x" + keyPair.getPublic(false, "hex"));
1449014493
(0, lib$3.defineReadOnly)(this, "compressedPublicKey", "0x" + keyPair.getPublic(true, "hex"));
@@ -20345,7 +20348,7 @@
2034520348
"use strict";
2034620349
Object.defineProperty(exports, "__esModule", { value: true });
2034720350
exports.version = void 0;
20348-
exports.version = "providers/5.6.4";
20351+
exports.version = "providers/5.6.5";
2034920352

2035020353
});
2035120354

@@ -23063,7 +23066,7 @@
2306323066
return [2 /*return*/, null];
2306423067
}
2306523068
// Optimization since the eth node cannot change and does
23066-
// not have a wildcar resolver
23069+
// not have a wildcard resolver
2306723070
if (name !== "eth" && currentName === "eth") {
2306823071
return [2 /*return*/, null];
2306923072
}
@@ -23504,31 +23507,31 @@
2350423507
message = (message || "").toLowerCase();
2350523508
var transaction = params.transaction || params.signedTransaction;
2350623509
// "insufficient funds for gas * price + value + cost(data)"
23507-
if (message.match(/insufficient funds|base fee exceeds gas limit/)) {
23510+
if (message.match(/insufficient funds|base fee exceeds gas limit/i)) {
2350823511
logger.throwError("insufficient funds for intrinsic transaction cost", lib.Logger.errors.INSUFFICIENT_FUNDS, {
2350923512
error: error,
2351023513
method: method,
2351123514
transaction: transaction
2351223515
});
2351323516
}
2351423517
// "nonce too low"
23515-
if (message.match(/nonce (is )?too low/)) {
23518+
if (message.match(/nonce (is )?too low/i)) {
2351623519
logger.throwError("nonce has already been used", lib.Logger.errors.NONCE_EXPIRED, {
2351723520
error: error,
2351823521
method: method,
2351923522
transaction: transaction
2352023523
});
2352123524
}
2352223525
// "replacement transaction underpriced"
23523-
if (message.match(/replacement transaction underpriced/)) {
23526+
if (message.match(/replacement transaction underpriced|transaction gas price.*too low/i)) {
2352423527
logger.throwError("replacement fee too low", lib.Logger.errors.REPLACEMENT_UNDERPRICED, {
2352523528
error: error,
2352623529
method: method,
2352723530
transaction: transaction
2352823531
});
2352923532
}
2353023533
// "replacement transaction underpriced"
23531-
if (message.match(/only replay-protected/)) {
23534+
if (message.match(/only replay-protected/i)) {
2353223535
logger.throwError("legacy pre-eip-155 transactions not supported", lib.Logger.errors.UNSUPPORTED_OPERATION, {
2353323536
error: error,
2353423537
method: method,
@@ -24153,7 +24156,7 @@
2415324156
if (transaction[key] == null) {
2415424157
return;
2415524158
}
24156-
var value = (0, lib$1.hexValue)(transaction[key]);
24159+
var value = (0, lib$1.hexValue)(lib$2.BigNumber.from(transaction[key]));
2415724160
if (key === "gasLimit") {
2415824161
key = "gas";
2415924162
}
@@ -24907,6 +24910,12 @@
2490724910
switch (name) {
2490824911
case "homestead":
2490924912
return "rpc.ankr.com/eth/";
24913+
case "ropsten":
24914+
return "rpc.ankr.com/eth_ropsten/";
24915+
case "rinkeby":
24916+
return "rpc.ankr.com/eth_rinkeby/";
24917+
case "goerli":
24918+
return "rpc.ankr.com/eth_goerli/";
2491024919
case "matic":
2491124920
return "rpc.ankr.com/polygon/";
2491224921
case "arbitrum":
@@ -27406,7 +27415,7 @@
2740627415
"use strict";
2740727416
Object.defineProperty(exports, "__esModule", { value: true });
2740827417
exports.version = void 0;
27409-
exports.version = "ethers/5.6.4";
27418+
exports.version = "ethers/5.6.5";
2741027419

2741127420
});
2741227421

packages/ethers/dist/ethers.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/ethers/dist/ethers.umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/ethers/dist/ethers.umd.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)