Skip to content

Commit

Permalink
Updated dist files.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Oct 23, 2020
1 parent fe17a29 commit e0b1d0e
Show file tree
Hide file tree
Showing 17 changed files with 54 additions and 41 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ Changelog

This change log is managed by `admin/cmds/update-versions` but may be manually updated.

ethers/v5.0.19 (2020-10-22 19:58)
ethers/v5.0.19 (2020-10-22 21:55)
---------------------------------

- Allow 0x as a numeric value for 0 in Provider formatter. ([#1104](https://github.com/ethers-io/ethers.js/issues/1104); [fe17a29](https://github.com/ethers-io/ethers.js/commit/fe17a295816214d063f3d6bd4f3273e0ce0c3eac))
- Use POST for long requests in EtherscanProvider. ([#1093](https://github.com/ethers-io/ethers.js/issues/1093); [28f60d5](https://github.com/ethers-io/ethers.js/commit/28f60d5ef83665541c8c1b432f8e173d73cb8227))
- Added verifyTypedData for EIP-712 typed data. ([#687](https://github.com/ethers-io/ethers.js/issues/687); [550ecf2](https://github.com/ethers-io/ethers.js/commit/550ecf2f25b90f6d8996583489a218dbf2306ebc), [a21202c](https://github.com/ethers-io/ethers.js/commit/a21202c66b392ec6f91296d66551dffca742cf0a))

Expand Down
2 changes: 1 addition & 1 deletion packages/ethers/dist/ethers-all.esm.min.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

15 changes: 9 additions & 6 deletions packages/ethers/dist/ethers.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -19051,6 +19051,9 @@ class Formatter {
// Requires a BigNumberish that is within the IEEE754 safe integer range; returns a number
// Strict! Used on input.
number(number) {
if (number === "0x") {
return 0;
}
return BigNumber.from(number).toNumber();
}
// Strict! Used on input.
Expand Down Expand Up @@ -21948,20 +21951,20 @@ class EtherscanProvider extends BaseProvider {
url += apiKey;
const logs = yield get(url, null, getResult$1);
// Cache txHash => blockHash
let txs = {};
let blocks = {};
// Add any missing blockHash to the logs
for (let i = 0; i < logs.length; i++) {
const log = logs[i];
if (log.blockHash != null) {
continue;
}
if (txs[log.transactionHash] == null) {
const tx = yield this.getTransaction(log.transactionHash);
if (tx) {
txs[log.transactionHash] = tx.blockHash;
if (blocks[log.blockNumber] == null) {
const block = yield this.getBlock(log.blockNumber);
if (block) {
blocks[log.blockNumber] = block.hash;
}
}
log.blockHash = txs[log.transactionHash];
log.blockHash = blocks[log.blockNumber];
}
return logs;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/ethers/dist/ethers.esm.min.js

Large diffs are not rendered by default.

19 changes: 11 additions & 8 deletions packages/ethers/dist/ethers.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -21124,6 +21124,9 @@
// Requires a BigNumberish that is within the IEEE754 safe integer range; returns a number
// Strict! Used on input.
Formatter.prototype.number = function (number) {
if (number === "0x") {
return 0;
}
return lib$2.BigNumber.from(number).toNumber();
};
// Strict! Used on input.
Expand Down Expand Up @@ -24772,7 +24775,7 @@
};
EtherscanProvider.prototype.perform = function (method, params) {
return __awaiter(this, void 0, void 0, function () {
var url, apiKey, get, _a, postData, error_1, postData, error_2, topic0, logs, txs, i, log, tx, _b;
var url, apiKey, get, _a, postData, error_1, postData, error_2, topic0, logs, blocks, i, log, block, _b;
var _this = this;
return __generator(this, function (_c) {
switch (_c.label) {
Expand Down Expand Up @@ -24951,7 +24954,7 @@
return [4 /*yield*/, get(url, null, getResult)];
case 20:
logs = _c.sent();
txs = {};
blocks = {};
i = 0;
_c.label = 21;
case 21:
Expand All @@ -24960,16 +24963,16 @@
if (log.blockHash != null) {
return [3 /*break*/, 24];
}
if (!(txs[log.transactionHash] == null)) return [3 /*break*/, 23];
return [4 /*yield*/, this.getTransaction(log.transactionHash)];
if (!(blocks[log.blockNumber] == null)) return [3 /*break*/, 23];
return [4 /*yield*/, this.getBlock(log.blockNumber)];
case 22:
tx = _c.sent();
if (tx) {
txs[log.transactionHash] = tx.blockHash;
block = _c.sent();
if (block) {
blocks[log.blockNumber] = block.hash;
}
_c.label = 23;
case 23:
log.blockHash = txs[log.transactionHash];
log.blockHash = blocks[log.blockNumber];
_c.label = 24;
case 24:
i++;
Expand Down
4 changes: 2 additions & 2 deletions packages/ethers/dist/ethers.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/ethers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"tarballHash": "0xbbaa32872eae7d717eab4645ef6db002467fe3fc616f3334641240d3356d19b2",
"tarballHash": "0xf093f00a83d38639d15610b1b52db1512c582d817c0fab52d2e1f0049e748d03",
"types": "./lib/index.d.ts",
"version": "5.0.19"
}
12 changes: 6 additions & 6 deletions packages/providers/lib.esm/etherscan-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/etherscan-provider.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions packages/providers/lib.esm/formatter.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/formatter.js.map

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions packages/providers/lib/etherscan-provider.js

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

Loading

0 comments on commit e0b1d0e

Please sign in to comment.