Skip to content

Commit

Permalink
admin: update dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed May 1, 2022
1 parent d9f45b3 commit fc1e006
Show file tree
Hide file tree
Showing 58 changed files with 297 additions and 249 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ Changelog
This change log is managed by `admin/cmds/update-versions` but may be manually updated.


ethers/v5.6.5 (2022-05-01 02: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))
- 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))
- Enforce 32-byte private key length (2926). ([7b299dd](https://github.com/ethers-io/ethers.js/commit/7b299dd9c97571b12916e3ae529540f3f2e5a367))
- 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))

ethers/v5.6.4 (2022-04-13 16:56)
--------------------------------

Expand Down
318 changes: 160 additions & 158 deletions package-lock.json

Large diffs are not rendered by default.

31 changes: 20 additions & 11 deletions packages/ethers/dist/ethers.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -13271,7 +13271,7 @@ elliptic.eddsa = /*RicMoo:ethers:require(./elliptic/eddsa)*/(null);

var EC$1 = elliptic_1.ec;

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

"use strict";
const logger$g = new Logger(version$b);
Expand All @@ -13286,6 +13286,9 @@ class SigningKey {
constructor(privateKey) {
defineReadOnly(this, "curve", "secp256k1");
defineReadOnly(this, "privateKey", hexlify(privateKey));
if (hexDataLength(this.privateKey) !== 32) {
logger$g.throwArgumentError("invalid private key", "privateKey", "[[ REDACTED ]]");
}
const keyPair = getCurve().keyFromPrivate(arrayify(this.privateKey));
defineReadOnly(this, "publicKey", "0x" + keyPair.getPublic(false, "hex"));
defineReadOnly(this, "compressedPublicKey", "0x" + keyPair.getPublic(true, "hex"));
Expand Down Expand Up @@ -18218,7 +18221,7 @@ var bech32 = {
fromWords: fromWords
};

const version$m = "providers/5.6.4";
const version$m = "providers/5.6.5";

"use strict";
const logger$s = new Logger(version$m);
Expand Down Expand Up @@ -20383,7 +20386,7 @@ class BaseProvider extends Provider {
return null;
}
// Optimization since the eth node cannot change and does
// not have a wildcar resolver
// not have a wildcard resolver
if (name !== "eth" && currentName === "eth") {
return null;
}
Expand Down Expand Up @@ -20443,7 +20446,7 @@ class BaseProvider extends Provider {
if (typeof (name) !== "string") {
logger$t.throwArgumentError("invalid ENS name", "name", name);
}
// Get the addr from the resovler
// Get the addr from the resolver
const resolver = yield this.getResolver(name);
if (!resolver) {
return null;
Expand Down Expand Up @@ -20693,25 +20696,25 @@ function checkError(method, error, params) {
message = (message || "").toLowerCase();
const transaction = params.transaction || params.signedTransaction;
// "insufficient funds for gas * price + value + cost(data)"
if (message.match(/insufficient funds|base fee exceeds gas limit/)) {
if (message.match(/insufficient funds|base fee exceeds gas limit/i)) {
logger$u.throwError("insufficient funds for intrinsic transaction cost", Logger.errors.INSUFFICIENT_FUNDS, {
error, method, transaction
});
}
// "nonce too low"
if (message.match(/nonce (is )?too low/)) {
if (message.match(/nonce (is )?too low/i)) {
logger$u.throwError("nonce has already been used", Logger.errors.NONCE_EXPIRED, {
error, method, transaction
});
}
// "replacement transaction underpriced"
if (message.match(/replacement transaction underpriced/)) {
if (message.match(/replacement transaction underpriced|transaction gas price.*too low/i)) {
logger$u.throwError("replacement fee too low", Logger.errors.REPLACEMENT_UNDERPRICED, {
error, method, transaction
});
}
// "replacement transaction underpriced"
if (message.match(/only replay-protected/)) {
if (message.match(/only replay-protected/i)) {
logger$u.throwError("legacy pre-eip-155 transactions not supported", Logger.errors.UNSUPPORTED_OPERATION, {
error, method, transaction
});
Expand Down Expand Up @@ -21114,7 +21117,7 @@ class JsonRpcProvider extends BaseProvider {
if (method === "call" || method === "estimateGas") {
const tx = params.transaction;
if (tx && tx.type != null && BigNumber.from(tx.type).isZero()) {
// If there are no EIP-1559 properties, it might be non-EIP-a559
// If there are no EIP-1559 properties, it might be non-EIP-1559
if (tx.maxFeePerGas == null && tx.maxPriorityFeePerGas == null) {
const feeData = yield this.getFeeData();
if (feeData.maxFeePerGas == null && feeData.maxPriorityFeePerGas == null) {
Expand Down Expand Up @@ -21216,7 +21219,7 @@ class JsonRpcProvider extends BaseProvider {
if (transaction[key] == null) {
return;
}
const value = hexValue(transaction[key]);
const value = hexValue(BigNumber.from(transaction[key]));
if (key === "gasLimit") {
key = "gas";
}
Expand Down Expand Up @@ -21726,6 +21729,12 @@ function getHost(name) {
switch (name) {
case "homestead":
return "rpc.ankr.com/eth/";
case "ropsten":
return "rpc.ankr.com/eth_ropsten/";
case "rinkeby":
return "rpc.ankr.com/eth_rinkeby/";
case "goerli":
return "rpc.ankr.com/eth_goerli/";
case "matic":
return "rpc.ankr.com/polygon/";
case "arbitrum":
Expand Down Expand Up @@ -23607,7 +23616,7 @@ var utils$1 = /*#__PURE__*/Object.freeze({
Indexed: Indexed
});

const version$p = "ethers/5.6.4";
const version$p = "ethers/5.6.5";

"use strict";
const logger$J = new Logger(version$p);
Expand Down
2 changes: 1 addition & 1 deletion packages/ethers/dist/ethers.esm.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/ethers/dist/ethers.esm.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/ethers/dist/ethers.esm.min.js.map

Large diffs are not rendered by default.

27 changes: 18 additions & 9 deletions packages/ethers/dist/ethers.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -14458,7 +14458,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = void 0;
exports.version = "signing-key/5.6.0";
exports.version = "signing-key/5.6.1";

});

Expand All @@ -14485,6 +14485,9 @@
function SigningKey(privateKey) {
(0, lib$3.defineReadOnly)(this, "curve", "secp256k1");
(0, lib$3.defineReadOnly)(this, "privateKey", (0, lib$1.hexlify)(privateKey));
if ((0, lib$1.hexDataLength)(this.privateKey) !== 32) {
logger.throwArgumentError("invalid private key", "privateKey", "[[ REDACTED ]]");
}
var keyPair = getCurve().keyFromPrivate((0, lib$1.arrayify)(this.privateKey));
(0, lib$3.defineReadOnly)(this, "publicKey", "0x" + keyPair.getPublic(false, "hex"));
(0, lib$3.defineReadOnly)(this, "compressedPublicKey", "0x" + keyPair.getPublic(true, "hex"));
Expand Down Expand Up @@ -20345,7 +20348,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = void 0;
exports.version = "providers/5.6.4";
exports.version = "providers/5.6.5";

});

Expand Down Expand Up @@ -23063,7 +23066,7 @@
return [2 /*return*/, null];
}
// Optimization since the eth node cannot change and does
// not have a wildcar resolver
// not have a wildcard resolver
if (name !== "eth" && currentName === "eth") {
return [2 /*return*/, null];
}
Expand Down Expand Up @@ -23504,31 +23507,31 @@
message = (message || "").toLowerCase();
var transaction = params.transaction || params.signedTransaction;
// "insufficient funds for gas * price + value + cost(data)"
if (message.match(/insufficient funds|base fee exceeds gas limit/)) {
if (message.match(/insufficient funds|base fee exceeds gas limit/i)) {
logger.throwError("insufficient funds for intrinsic transaction cost", lib.Logger.errors.INSUFFICIENT_FUNDS, {
error: error,
method: method,
transaction: transaction
});
}
// "nonce too low"
if (message.match(/nonce (is )?too low/)) {
if (message.match(/nonce (is )?too low/i)) {
logger.throwError("nonce has already been used", lib.Logger.errors.NONCE_EXPIRED, {
error: error,
method: method,
transaction: transaction
});
}
// "replacement transaction underpriced"
if (message.match(/replacement transaction underpriced/)) {
if (message.match(/replacement transaction underpriced|transaction gas price.*too low/i)) {
logger.throwError("replacement fee too low", lib.Logger.errors.REPLACEMENT_UNDERPRICED, {
error: error,
method: method,
transaction: transaction
});
}
// "replacement transaction underpriced"
if (message.match(/only replay-protected/)) {
if (message.match(/only replay-protected/i)) {
logger.throwError("legacy pre-eip-155 transactions not supported", lib.Logger.errors.UNSUPPORTED_OPERATION, {
error: error,
method: method,
Expand Down Expand Up @@ -24153,7 +24156,7 @@
if (transaction[key] == null) {
return;
}
var value = (0, lib$1.hexValue)(transaction[key]);
var value = (0, lib$1.hexValue)(lib$2.BigNumber.from(transaction[key]));
if (key === "gasLimit") {
key = "gas";
}
Expand Down Expand Up @@ -24907,6 +24910,12 @@
switch (name) {
case "homestead":
return "rpc.ankr.com/eth/";
case "ropsten":
return "rpc.ankr.com/eth_ropsten/";
case "rinkeby":
return "rpc.ankr.com/eth_rinkeby/";
case "goerli":
return "rpc.ankr.com/eth_goerli/";
case "matic":
return "rpc.ankr.com/polygon/";
case "arbitrum":
Expand Down Expand Up @@ -27406,7 +27415,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = void 0;
exports.version = "ethers/5.6.4";
exports.version = "ethers/5.6.5";

});

Expand Down
2 changes: 1 addition & 1 deletion packages/ethers/dist/ethers.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/ethers/dist/ethers.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/ethers/dist/ethers.umd.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/ethers/lib.esm/_version.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export declare const version = "ethers/5.6.4";
export declare const version = "ethers/5.6.5";
//# sourceMappingURL=_version.d.ts.map
2 changes: 1 addition & 1 deletion packages/ethers/lib.esm/_version.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/ethers/lib/_version.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export declare const version = "ethers/5.6.4";
export declare const version = "ethers/5.6.5";
//# sourceMappingURL=_version.d.ts.map
2 changes: 1 addition & 1 deletion packages/ethers/lib/_version.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions packages/ethers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
"@ethersproject/networks": "5.6.2",
"@ethersproject/pbkdf2": "5.6.0",
"@ethersproject/properties": "5.6.0",
"@ethersproject/providers": "5.6.4",
"@ethersproject/providers": "5.6.5",
"@ethersproject/random": "5.6.0",
"@ethersproject/rlp": "5.6.0",
"@ethersproject/sha2": "5.6.0",
"@ethersproject/signing-key": "5.6.0",
"@ethersproject/signing-key": "5.6.1",
"@ethersproject/solidity": "5.6.0",
"@ethersproject/strings": "5.6.0",
"@ethersproject/transactions": "5.6.0",
Expand Down Expand Up @@ -62,7 +62,7 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"sideEffects": false,
"tarballHash": "0xd111db04f26db2b3a9d2a84676e5754284694e8ff439bc83695f8f33664265d0",
"tarballHash": "0x2f188dbce90b88f6cba0e0f8d68a305195628692c4a9114b222604ad0d6eafee",
"types": "./lib/index.d.ts",
"version": "5.6.4"
"version": "5.6.5"
}
2 changes: 1 addition & 1 deletion packages/ethers/src.ts/_version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = "ethers/5.6.4";
export const version = "ethers/5.6.5";
2 changes: 1 addition & 1 deletion packages/providers/lib.esm/_version.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export declare const version = "providers/5.6.4";
export declare const version = "providers/5.6.5";
//# sourceMappingURL=_version.d.ts.map
2 changes: 1 addition & 1 deletion packages/providers/lib.esm/_version.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/providers/lib.esm/ankr-provider.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions packages/providers/lib.esm/ankr-provider.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/providers/lib.esm/ankr-provider.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/providers/lib.esm/base-provider.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/providers/lib.esm/base-provider.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit fc1e006

Please sign in to comment.