Skip to content

Commit

Permalink
Updated dist files.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Sep 6, 2020
1 parent cadb28d commit 0234cfb
Show file tree
Hide file tree
Showing 60 changed files with 253 additions and 123 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
Changelog
=========

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

ethers/v5.0.11 (2020-09-05 23:33)
---------------------------------

- Fixed LedgerSigner sendTransaction. ([#936](https://github.com/ethers-io/ethers.js/issues/936); [cadb28d](https://github.com/ethers-io/ethers.js/commit/cadb28d6b364e68e43a06f7a9b8a31797afbd920))
- Added BrainWallet to experimental exports. ([72385c2](https://github.com/ethers-io/ethers.js/commit/72385c228783a3158511b3cddc5cb4f9ce1dddae))
- More readable server errors. ([201e5ce](https://github.com/ethers-io/ethers.js/commit/201e5ced9c38da2de1dd7518ffbf24284d477e80))

ethers/v5.0.10 (2020-09-05 01:21)
---------------------------------
Expand Down
4 changes: 2 additions & 2 deletions 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.

41 changes: 30 additions & 11 deletions packages/ethers/dist/ethers.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -16485,7 +16485,7 @@ function computePublicKey(key, compressed) {
return logger$g.throwArgumentError("invalid public or private key", "key", "[REDACTED]");
}

const version$e = "transactions/5.0.3";
const version$e = "transactions/5.0.4";

"use strict";
const logger$h = new Logger(version$e);
Expand Down Expand Up @@ -16557,7 +16557,7 @@ function serialize(transaction, signature) {
}
// We have an EIP-155 transaction (chainId was specified and non-zero)
if (chainId !== 0) {
raw.push(hexlify(chainId));
raw.push(hexlify(chainId)); // @TODO: hexValue?
raw.push("0x");
raw.push("0x");
}
Expand Down Expand Up @@ -19233,7 +19233,7 @@ var browser$2 = /*#__PURE__*/Object.freeze({
encode: encode$1
});

const version$l = "web/5.0.4";
const version$l = "web/5.0.5";

"use strict";
var __awaiter$4 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
Expand Down Expand Up @@ -19298,6 +19298,25 @@ function staller(duration) {
setTimeout(resolve, duration);
});
}
function bodyify(value, type) {
if (value == null) {
return null;
}
if (typeof (value) === "string") {
return value;
}
if (isBytesLike(value)) {
if (type && (type.split("/")[0] === "text" || type === "application/json")) {
try {
return toUtf8String(value);
}
catch (error) { }
;
}
return hexlify(value);
}
return value;
}
// This API is still a work in progress; the future changes will likely be:
// - ConnectionInfo => FetchDataRequest<T = any>
// - FetchDataRequest.body? = string | Uint8Array | { contentType: string, data: string | Uint8Array }
Expand Down Expand Up @@ -19372,7 +19391,7 @@ function _fetchData(connection, body, processFunc) {
}
timer = null;
reject(logger$p.makeError("timeout", Logger.errors.TIMEOUT, {
requestBody: (options.body || null),
requestBody: bodyify(options.body, flatHeaders["content-type"]),
requestMethod: options.method,
timeout: timeout,
url: url
Expand Down Expand Up @@ -19421,7 +19440,7 @@ function _fetchData(connection, body, processFunc) {
if (response == null) {
runningTimeout.cancel();
logger$p.throwError("missing response", Logger.errors.SERVER_ERROR, {
requestBody: (options.body || null),
requestBody: bodyify(options.body, flatHeaders["content-type"]),
requestMethod: options.method,
serverError: error,
url: url
Expand All @@ -19437,8 +19456,8 @@ function _fetchData(connection, body, processFunc) {
logger$p.throwError("bad response", Logger.errors.SERVER_ERROR, {
status: response.statusCode,
headers: response.headers,
body: body,
requestBody: (options.body || null),
body: bodyify(body, ((response.headers) ? response.headers["content-type"] : null)),
requestBody: bodyify(options.body, flatHeaders["content-type"]),
requestMethod: options.method,
url: url
});
Expand All @@ -19465,9 +19484,9 @@ function _fetchData(connection, body, processFunc) {
}
runningTimeout.cancel();
logger$p.throwError("processing response error", Logger.errors.SERVER_ERROR, {
body: body,
body: bodyify(body, ((response.headers) ? response.headers["content-type"] : null)),
error: error,
requestBody: (options.body || null),
requestBody: bodyify(options.body, flatHeaders["content-type"]),
requestMethod: options.method,
url: url
});
Expand All @@ -19479,7 +19498,7 @@ function _fetchData(connection, body, processFunc) {
return body;
}
return logger$p.throwError("failed response", Logger.errors.SERVER_ERROR, {
requestBody: (options.body || null),
requestBody: bodyify(options.body, flatHeaders["content-type"]),
requestMethod: options.method,
url: url
});
Expand Down Expand Up @@ -23852,7 +23871,7 @@ var utils$1 = /*#__PURE__*/Object.freeze({
Indexed: Indexed
});

const version$o = "ethers/5.0.10";
const version$o = "ethers/5.0.11";

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

Large diffs are not rendered by default.

42 changes: 31 additions & 11 deletions packages/ethers/dist/ethers.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -17802,7 +17802,7 @@
var _version$s = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "transactions/5.0.3";
exports.version = "transactions/5.0.4";

});

Expand Down Expand Up @@ -17900,7 +17900,7 @@
}
// We have an EIP-155 transaction (chainId was specified and non-zero)
if (chainId !== 0) {
raw.push(lib$1.hexlify(chainId));
raw.push(lib$1.hexlify(chainId)); // @TODO: hexValue?
raw.push("0x");
raw.push("0x");
}
Expand Down Expand Up @@ -21007,7 +21007,7 @@
var _version$G = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "web/5.0.4";
exports.version = "web/5.0.5";

});

Expand Down Expand Up @@ -21151,13 +21151,33 @@




var logger = new lib.Logger(_version$G.version);

function staller(duration) {
return new Promise(function (resolve) {
setTimeout(resolve, duration);
});
}
function bodyify(value, type) {
if (value == null) {
return null;
}
if (typeof (value) === "string") {
return value;
}
if (lib$1.isBytesLike(value)) {
if (type && (type.split("/")[0] === "text" || type === "application/json")) {
try {
return lib$8.toUtf8String(value);
}
catch (error) { }
;
}
return lib$1.hexlify(value);
}
return value;
}
// This API is still a work in progress; the future changes will likely be:
// - ConnectionInfo => FetchDataRequest<T = any>
// - FetchDataRequest.body? = string | Uint8Array | { contentType: string, data: string | Uint8Array }
Expand Down Expand Up @@ -21232,7 +21252,7 @@
}
timer = null;
reject(logger.makeError("timeout", lib.Logger.errors.TIMEOUT, {
requestBody: (options.body || null),
requestBody: bodyify(options.body, flatHeaders["content-type"]),
requestMethod: options.method,
timeout: timeout,
url: url
Expand Down Expand Up @@ -21296,7 +21316,7 @@
if (response == null) {
runningTimeout.cancel();
logger.throwError("missing response", lib.Logger.errors.SERVER_ERROR, {
requestBody: (options.body || null),
requestBody: bodyify(options.body, flatHeaders["content-type"]),
requestMethod: options.method,
serverError: error_1,
url: url
Expand All @@ -21313,8 +21333,8 @@
logger.throwError("bad response", lib.Logger.errors.SERVER_ERROR, {
status: response.statusCode,
headers: response.headers,
body: body_1,
requestBody: (options.body || null),
body: bodyify(body_1, ((response.headers) ? response.headers["content-type"] : null)),
requestBody: bodyify(options.body, flatHeaders["content-type"]),
requestMethod: options.method,
url: url
});
Expand Down Expand Up @@ -21349,9 +21369,9 @@
case 16:
runningTimeout.cancel();
logger.throwError("processing response error", lib.Logger.errors.SERVER_ERROR, {
body: body_1,
body: bodyify(body_1, ((response.headers) ? response.headers["content-type"] : null)),
error: error_2,
requestBody: (options.body || null),
requestBody: bodyify(options.body, flatHeaders["content-type"]),
requestMethod: options.method,
url: url
});
Expand All @@ -21365,7 +21385,7 @@
attempt++;
return [3 /*break*/, 1];
case 19: return [2 /*return*/, logger.throwError("failed response", lib.Logger.errors.SERVER_ERROR, {
requestBody: (options.body || null),
requestBody: bodyify(options.body, flatHeaders["content-type"]),
requestMethod: options.method,
url: url
})];
Expand Down Expand Up @@ -27101,7 +27121,7 @@
var _version$M = createCommonjsModule(function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "ethers/5.0.10";
exports.version = "ethers/5.0.11";

});

Expand Down
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/lib.esm/_version.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export declare const version = "ethers/5.0.10";
export declare const version = "ethers/5.0.11";
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 +1 @@
export declare const version = "ethers/5.0.10";
export declare const version = "ethers/5.0.11";
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.

4 changes: 2 additions & 2 deletions 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": "0x39aac3f26eeafe54471a075fdb03ab9ea83f6c0fb0d672a356ad1705e7982b8e",
"tarballHash": "0x1a2a6a4d32b1a2157504de2038370676ae2df70bbe763c4546d03e17d127116f",
"types": "./lib/index.d.ts",
"version": "5.0.10"
"version": "5.0.11"
}
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.0.10";
export const version = "ethers/5.0.11";
2 changes: 1 addition & 1 deletion packages/experimental/lib.esm/_version.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export declare const version = "experimental/5.0.2";
export declare const version = "experimental/5.0.3";
2 changes: 1 addition & 1 deletion packages/experimental/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/experimental/lib.esm/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import { BrainWallet } from "./brain-wallet";
import { NonceManager } from "./nonce-manager";
export { NonceManager };
export { BrainWallet, NonceManager };
3 changes: 2 additions & 1 deletion packages/experimental/lib.esm/index.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/experimental/lib.esm/index.js.map

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

2 changes: 1 addition & 1 deletion packages/experimental/lib/_version.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export declare const version = "experimental/5.0.2";
export declare const version = "experimental/5.0.3";
2 changes: 1 addition & 1 deletion packages/experimental/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/experimental/lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import { BrainWallet } from "./brain-wallet";
import { NonceManager } from "./nonce-manager";
export { NonceManager };
export { BrainWallet, NonceManager };
2 changes: 2 additions & 0 deletions packages/experimental/lib/index.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/experimental/lib/index.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/experimental/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"tarballHash": "0xb85fff99aa7dfe03a7cd5f76ef21fc70992c6d02542cd157c79f7eaf62d26bba",
"tarballHash": "0xc761cb198c017af53b5224e86bcca4be6e96cb4b3b9ce3dd953b5d7fe18a4680",
"types": "./lib/index.d.ts",
"version": "5.0.2"
"version": "5.0.3"
}
2 changes: 1 addition & 1 deletion packages/experimental/src.ts/_version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = "experimental/5.0.2";
export const version = "experimental/5.0.3";
19 changes: 14 additions & 5 deletions packages/hardware-wallets/dist/hardware-wallets.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ else {
ethers = w._ethers;
}

const version = "hardware-wallets/5.0.4";
const version = "hardware-wallets/5.0.5";

var global$1 = (typeof global !== "undefined" ? global :
typeof self !== "undefined" ? self :
Expand Down Expand Up @@ -4327,11 +4327,20 @@ class LedgerSigner extends ethers.Signer {
}
signTransaction(transaction) {
return __awaiter(this, void 0, void 0, function* () {
const tx = transaction = yield ethers.utils.resolveProperties(transaction);
const unsignedTx = ethers.utils.serializeTransaction(tx).substring(2);
const tx = yield ethers.utils.resolveProperties(transaction);
const baseTx = {
chainId: (tx.chainId || undefined),
data: (tx.data || undefined),
gasLimit: (tx.gasLimit || undefined),
gasPrice: (tx.gasPrice || undefined),
nonce: (tx.nonce ? ethers.BigNumber.from(tx.nonce).toNumber() : undefined),
to: (tx.to || undefined),
value: (tx.value || undefined),
};
const unsignedTx = ethers.utils.serializeTransaction(baseTx).substring(2);
const sig = yield this._retry((eth) => eth.signTransaction(this.path, unsignedTx));
return ethers.utils.serializeTransaction(tx, {
v: sig.v,
return ethers.utils.serializeTransaction(baseTx, {
v: ethers.BigNumber.from("0x" + sig.v).toNumber(),
r: ("0x" + sig.r),
s: ("0x" + sig.s),
});
Expand Down
2 changes: 1 addition & 1 deletion packages/hardware-wallets/dist/hardware-wallets.esm.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/hardware-wallets/lib.esm/_version.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export declare const version = "hardware-wallets/5.0.4";
export declare const version = "hardware-wallets/5.0.5";
2 changes: 1 addition & 1 deletion packages/hardware-wallets/lib.esm/_version.js

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

Loading

0 comments on commit 0234cfb

Please sign in to comment.