Updated dist files.

This commit is contained in:
Richard Moore 2020-10-22 21:55:40 -04:00
parent fe17a29581
commit e0b1d0e1e0
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651
17 changed files with 54 additions and 41 deletions

@ -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))

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -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.
@ -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;
}

File diff suppressed because one or more lines are too long

@ -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.
@ -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) {
@ -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:
@ -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++;

File diff suppressed because one or more lines are too long

@ -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"
}

@ -312,20 +312,20 @@ export class EtherscanProvider extends BaseProvider {
url += apiKey;
const logs = yield get(url, null, getResult);
// 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;
}

File diff suppressed because one or more lines are too long

@ -115,6 +115,9 @@ export 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.

File diff suppressed because one or more lines are too long

@ -210,7 +210,7 @@ var EtherscanProvider = /** @class */ (function (_super) {
};
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) {
@ -389,7 +389,7 @@ var EtherscanProvider = /** @class */ (function (_super) {
return [4 /*yield*/, get(url, null, getResult)];
case 20:
logs = _c.sent();
txs = {};
blocks = {};
i = 0;
_c.label = 21;
case 21:
@ -398,16 +398,16 @@ var EtherscanProvider = /** @class */ (function (_super) {
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++;

File diff suppressed because one or more lines are too long

@ -118,6 +118,9 @@ var Formatter = /** @class */ (function () {
// 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 bignumber_1.BigNumber.from(number).toNumber();
};
// Strict! Used on input.

File diff suppressed because one or more lines are too long

@ -56,7 +56,7 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"tarballHash": "0x954713b7df376f9daf43830476dc44d01c4ba2bfa6c5ccc40499b726b8d200b0",
"tarballHash": "0x75f5062536d763196c0bb7681f1de3c93f6d747b799f525295039df8c9c46503",
"types": "./lib/index.d.ts",
"version": "5.0.14"
}