Skip to content

Commit

Permalink
Updated dist files.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jun 10, 2021
1 parent ee82e86 commit 412bbe2
Show file tree
Hide file tree
Showing 50 changed files with 459 additions and 325 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ Changelog

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

ethers/v5.3.1 (2021-06-10 18:28)
--------------------------------

- Fixed replacement transaction detection for JsonRpcSigner. ([#1658](https://github.com/ethers-io/ethers.js/issues/1658); [ee82e86](https://github.com/ethers-io/ethers.js/commit/ee82e86ccc439825259d20825a00050217890ad3))
- Added Matic testnet info to networks. ([#1546](https://github.com/ethers-io/ethers.js/issues/1546); [376cf3c](https://github.com/ethers-io/ethers.js/commit/376cf3cdbf6d2281331d36c5742414a425927318))
- Match Solidity identifier regex. ([#1657](https://github.com/ethers-io/ethers.js/issues/1657); [a6e128f](https://github.com/ethers-io/ethers.js/commit/a6e128f5cc566d291b722cca1734ba41aae6c548))

ethers/v5.3.0 (2021-05-31 18:41)
--------------------------------

Expand Down
479 changes: 263 additions & 216 deletions package-lock.json

Large diffs are not rendered by default.

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

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

3 changes: 2 additions & 1 deletion packages/abi/lib.esm/fragments.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/abi/lib.esm/fragments.js.map

Large diffs are not rendered by default.

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

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

3 changes: 2 additions & 1 deletion packages/abi/lib/fragments.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/abi/lib/fragments.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/abi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"sideEffects": false,
"tarballHash": "0xffd3d7fde3b357efa0d4e00e3cd0984aa73e2d13e036c9df204bd172f64a83a0",
"tarballHash": "0x2e024e140e942ced3e6c1540c7126c30520037c7fff8fb874791eb405ca401b1",
"types": "./lib/index.d.ts",
"version": "5.3.0"
"version": "5.3.1"
}
2 changes: 1 addition & 1 deletion packages/abi/src.ts/_version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = "abi/5.3.0";
export const version = "abi/5.3.1";
35 changes: 23 additions & 12 deletions packages/ethers/dist/ethers.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -4952,7 +4952,7 @@ class Description {
}
}

const version$4 = "abi/5.3.0";
const version$4 = "abi/5.3.1";

"use strict";
const logger$4 = new Logger(version$4);
Expand Down Expand Up @@ -5766,7 +5766,8 @@ function verifyType(type) {
// @TODO: more verification
return type;
}
const regexIdentifier = new RegExp("^[A-Za-z_][A-Za-z0-9_]*$");
// See: https://github.com/ethereum/solidity/blob/1f8f1a3db93a548d0555e3e14cfc55a10e25b60e/docs/grammar/SolidityLexer.g4#L234
const regexIdentifier = new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");
function verifyIdentifier(value) {
if (!value || !value.match(regexIdentifier)) {
logger$4.throwArgumentError(`invalid identifier "${value}"`, "value", value);
Expand Down Expand Up @@ -17222,7 +17223,7 @@ function verifyTypedData(domain, types, value, signature) {
return recoverAddress(TypedDataEncoder.hash(domain, types, value), signature);
}

const version$k = "networks/5.3.0";
const version$k = "networks/5.3.1";

"use strict";
const logger$q = new Logger(version$k);
Expand Down Expand Up @@ -17364,6 +17365,7 @@ const networks = {
},
xdai: { chainId: 100, name: "xdai" },
matic: { chainId: 137, name: "matic" },
maticmum: { chainId: 80001, name: "maticmum" },
bnb: { chainId: 56, name: "bnb" },
bnbt: { chainId: 97, name: "bnbt" },
};
Expand Down Expand Up @@ -18046,7 +18048,7 @@ var bech32 = {
fromWords: fromWords
};

const version$m = "providers/5.3.0";
const version$m = "providers/5.3.1";

"use strict";
const logger$s = new Logger(version$m);
Expand Down Expand Up @@ -20153,18 +20155,27 @@ class JsonRpcSigner extends Signer {
});
}
sendTransaction(transaction) {
return this.sendUncheckedTransaction(transaction).then((hash) => {
return poll(() => {
return this.provider.getTransaction(hash).then((tx) => {
return __awaiter$9(this, void 0, void 0, function* () {
// This cannot be mined any earlier than any recent block
const blockNumber = yield this.provider._getInternalBlockNumber(100 + 2 * this.provider.pollingInterval);
// Send the transaction
const hash = yield this.sendUncheckedTransaction(transaction);
try {
// Unfortunately, JSON-RPC only provides and opaque transaction hash
// for a response, and we need the actual transaction, so we poll
// for it; it should show up very quickly
return yield poll(() => __awaiter$9(this, void 0, void 0, function* () {
const tx = yield this.provider.getTransaction(hash);
if (tx === null) {
return undefined;
}
return this.provider._wrapTransaction(tx, hash);
});
}, { oncePoll: this.provider }).catch((error) => {
return this.provider._wrapTransaction(tx, hash, blockNumber);
}), { oncePoll: this.provider });
}
catch (error) {
error.transactionHash = hash;
throw error;
});
}
});
}
signMessage(message) {
Expand Down Expand Up @@ -22779,7 +22790,7 @@ var utils$1 = /*#__PURE__*/Object.freeze({
Indexed: Indexed
});

const version$o = "ethers/5.3.0";
const version$o = "ethers/5.3.1";

"use strict";
const logger$H = new Logger(version$o);
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.

75 changes: 52 additions & 23 deletions packages/ethers/dist/ethers.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -5158,7 +5158,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = void 0;
exports.version = "abi/5.3.0";
exports.version = "abi/5.3.1";

});

Expand Down Expand Up @@ -6026,7 +6026,8 @@
// @TODO: more verification
return type;
}
var regexIdentifier = new RegExp("^[A-Za-z_][A-Za-z0-9_]*$");
// See: https://github.com/ethereum/solidity/blob/1f8f1a3db93a548d0555e3e14cfc55a10e25b60e/docs/grammar/SolidityLexer.g4#L234
var regexIdentifier = new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");
function verifyIdentifier(value) {
if (!value || !value.match(regexIdentifier)) {
logger.throwArgumentError("invalid identifier \"" + value + "\"", "value", value);
Expand Down Expand Up @@ -19321,7 +19322,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = void 0;
exports.version = "networks/5.3.0";
exports.version = "networks/5.3.1";

});

Expand Down Expand Up @@ -19472,6 +19473,7 @@
},
xdai: { chainId: 100, name: "xdai" },
matic: { chainId: 137, name: "matic" },
maticmum: { chainId: 80001, name: "maticmum" },
bnb: { chainId: 56, name: "bnb" },
bnbt: { chainId: 97, name: "bnbt" },
};
Expand Down Expand Up @@ -20303,7 +20305,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = void 0;
exports.version = "providers/5.3.0";
exports.version = "providers/5.3.1";

});

Expand Down Expand Up @@ -22984,18 +22986,45 @@
});
};
JsonRpcSigner.prototype.sendTransaction = function (transaction) {
var _this = this;
return this.sendUncheckedTransaction(transaction).then(function (hash) {
return lib$q.poll(function () {
return _this.provider.getTransaction(hash).then(function (tx) {
if (tx === null) {
return undefined;
}
return _this.provider._wrapTransaction(tx, hash);
});
}, { oncePoll: _this.provider }).catch(function (error) {
error.transactionHash = hash;
throw error;
return __awaiter(this, void 0, void 0, function () {
var blockNumber, hash, error_1;
var _this = this;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, this.provider._getInternalBlockNumber(100 + 2 * this.provider.pollingInterval)];
case 1:
blockNumber = _a.sent();
return [4 /*yield*/, this.sendUncheckedTransaction(transaction)];
case 2:
hash = _a.sent();
_a.label = 3;
case 3:
_a.trys.push([3, 5, , 6]);
return [4 /*yield*/, lib$q.poll(function () { return __awaiter(_this, void 0, void 0, function () {
var tx;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, this.provider.getTransaction(hash)];
case 1:
tx = _a.sent();
if (tx === null) {
return [2 /*return*/, undefined];
}
return [2 /*return*/, this.provider._wrapTransaction(tx, hash, blockNumber)];
}
});
}); }, { oncePoll: this.provider })];
case 4:
// Unfortunately, JSON-RPC only provides and opaque transaction hash
// for a response, and we need the actual transaction, so we poll
// for it; it should show up very quickly
return [2 /*return*/, _a.sent()];
case 5:
error_1 = _a.sent();
error_1.transactionHash = hash;
throw error_1;
case 6: return [2 /*return*/];
}
});
});
};
Expand Down Expand Up @@ -23147,7 +23176,7 @@
};
JsonRpcProvider.prototype._uncachedDetectNetwork = function () {
return __awaiter(this, void 0, void 0, function () {
var chainId, error_1, error_2, getNetwork;
var chainId, error_2, error_3, getNetwork;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, timer(0)];
Expand All @@ -23162,7 +23191,7 @@
chainId = _a.sent();
return [3 /*break*/, 9];
case 4:
error_1 = _a.sent();
error_2 = _a.sent();
_a.label = 5;
case 5:
_a.trys.push([5, 7, , 8]);
Expand All @@ -23171,7 +23200,7 @@
chainId = _a.sent();
return [3 /*break*/, 8];
case 7:
error_2 = _a.sent();
error_3 = _a.sent();
return [3 /*break*/, 8];
case 8: return [3 /*break*/, 9];
case 9:
Expand Down Expand Up @@ -23300,7 +23329,7 @@
};
JsonRpcProvider.prototype.perform = function (method, params) {
return __awaiter(this, void 0, void 0, function () {
var args, error_3;
var args, error_4;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
Expand All @@ -23314,8 +23343,8 @@
return [4 /*yield*/, this.send(args[0], args[1])];
case 2: return [2 /*return*/, _a.sent()];
case 3:
error_3 = _a.sent();
return [2 /*return*/, checkError(method, error_3, params)];
error_4 = _a.sent();
return [2 /*return*/, checkError(method, error_4, params)];
case 4: return [2 /*return*/];
}
});
Expand Down Expand Up @@ -26491,7 +26520,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = void 0;
exports.version = "ethers/5.3.0";
exports.version = "ethers/5.3.1";

});

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.3.0";
export declare const version = "ethers/5.3.1";
//# 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.3.0";
export declare const version = "ethers/5.3.1";
//# 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.

10 changes: 5 additions & 5 deletions packages/ethers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Richard Moore <[email protected]>",
"browser-old": "./dist/ethers.umd.js",
"dependencies": {
"@ethersproject/abi": "5.3.0",
"@ethersproject/abi": "5.3.1",
"@ethersproject/abstract-provider": "5.3.0",
"@ethersproject/abstract-signer": "5.3.0",
"@ethersproject/address": "5.3.0",
Expand All @@ -17,10 +17,10 @@
"@ethersproject/json-wallets": "5.3.0",
"@ethersproject/keccak256": "5.3.0",
"@ethersproject/logger": "5.3.0",
"@ethersproject/networks": "5.3.0",
"@ethersproject/networks": "5.3.1",
"@ethersproject/pbkdf2": "5.3.0",
"@ethersproject/properties": "5.3.0",
"@ethersproject/providers": "5.3.0",
"@ethersproject/providers": "5.3.1",
"@ethersproject/random": "5.3.0",
"@ethersproject/rlp": "5.3.0",
"@ethersproject/sha2": "5.3.0",
Expand Down Expand Up @@ -62,7 +62,7 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"sideEffects": false,
"tarballHash": "0xe5062d217c6e42ba6f1ba11b61a7345a5cb89f79fc6c65c787b0ee73ddf42f0d",
"tarballHash": "0x097c57f6b56dc22774d2db8329af306e1732241c3b8888e121011df78ad4aa8a",
"types": "./lib/index.d.ts",
"version": "5.3.0"
"version": "5.3.1"
}
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.3.0";
export const version = "ethers/5.3.1";
2 changes: 1 addition & 1 deletion packages/networks/lib.esm/_version.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export declare const version = "networks/5.3.0";
export declare const version = "networks/5.3.1";
//# sourceMappingURL=_version.d.ts.map
2 changes: 1 addition & 1 deletion packages/networks/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/networks/lib.esm/index.d.ts.map

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

1 change: 1 addition & 0 deletions packages/networks/lib.esm/index.js

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

Loading

0 comments on commit 412bbe2

Please sign in to comment.