admin: updated dist files

This commit is contained in:
Richard Moore 2024-02-14 13:14:24 -05:00
parent 556fdd91d9
commit ad5f1c5fc7
44 changed files with 81 additions and 54 deletions

@ -3,6 +3,14 @@ Change Log
This change log is maintained by `src.ts/_admin/update-changelog.ts` but may also be manually updated. This change log is maintained by `src.ts/_admin/update-changelog.ts` but may also be manually updated.
ethers/v6.11.1 (2024-02-14 13:13)
---------------------------------
- Throw an error when attempting to derive from a master path from a non-master node ([#4551](https://github.com/ethers-io/ethers.js/issues/4551); [556fdd9](https://github.com/ethers-io/ethers.js/commit/556fdd91d9b6bf7db4041bb099e66b2080e1a985)).
- Allow ENS wildcards with labels up to 255 bytes wide; discussed with ENS and deemed safe ([#4543](https://github.com/ethers-io/ethers.js/issues/4543); [7f14bde](https://github.com/ethers-io/ethers.js/commit/7f14bdebf1aef6760462a1c2437c31f002b984fe)).
- Enforce string is passed to toUtf8Bytes ([#4583](https://github.com/ethers-io/ethers.js/issues/4583); [f45bb87](https://github.com/ethers-io/ethers.js/commit/f45bb87aefaf2c6c3a4991f6e30a81c227ae83c0)).
- Fix transaction.index not being populated on some backends ([#4591](https://github.com/ethers-io/ethers.js/issues/4591); [7f0e140](https://github.com/ethers-io/ethers.js/commit/7f0e140d5e3925a42e8bb2ac9eb1ba3fbd939864)).
ethers/v6.11.0 (2024-02-08 20:26) ethers/v6.11.0 (2024-02-08 20:26)
--------------------------------- ---------------------------------

14
dist/ethers.js vendored

@ -3,7 +3,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
/** /**
* The current version of Ethers. * The current version of Ethers.
*/ */
const version = "6.11.0"; const version = "6.11.1";
/** /**
* Property helper functions. * Property helper functions.
@ -936,6 +936,7 @@ function getUtf8CodePoints(_bytes, onError) {
* If %%form%% is specified, the string is normalized. * If %%form%% is specified, the string is normalized.
*/ */
function toUtf8Bytes(str, form) { function toUtf8Bytes(str, form) {
assertArgument(typeof (str) === "string", "invalid string value", "str", str);
if (form != null) { if (form != null) {
assertNormalize(form); assertNormalize(form);
str = str.normalize(form); str = str.normalize(form);
@ -16391,7 +16392,7 @@ class EnsResolver {
info: { funcName } info: { funcName }
}); });
params = [ params = [
dnsEncode(this.name), dnsEncode(this.name, 255),
iface.encodeFunctionData(fragment, params) iface.encodeFunctionData(fragment, params)
]; ];
funcName = "resolve(bytes,bytes)"; funcName = "resolve(bytes,bytes)";
@ -16903,6 +16904,8 @@ function formatTransactionResponse(value) {
} }
const result = object({ const result = object({
hash: formatHash, hash: formatHash,
// Some nodes do not return this, usually test nodes (like Ganache)
index: allowNull(getNumber, undefined),
type: (value) => { type: (value) => {
if (value === "0x" || value == null) { if (value === "0x" || value == null) {
return 0; return 0;
@ -16914,7 +16917,6 @@ function formatTransactionResponse(value) {
blockHash: allowNull(formatHash, null), blockHash: allowNull(formatHash, null),
blockNumber: allowNull(getNumber, null), blockNumber: allowNull(getNumber, null),
transactionIndex: allowNull(getNumber, null), transactionIndex: allowNull(getNumber, null),
//confirmations: allowNull(getNumber, null),
from: getAddress, from: getAddress,
// either (gasPrice) or (maxPriorityFeePerGas + maxFeePerGas) must be set // either (gasPrice) or (maxPriorityFeePerGas + maxFeePerGas) must be set
gasPrice: allowNull(getBigInt), gasPrice: allowNull(getBigInt),
@ -16930,7 +16932,8 @@ function formatTransactionResponse(value) {
chainId: allowNull(getBigInt, null) chainId: allowNull(getBigInt, null)
}, { }, {
data: ["input"], data: ["input"],
gasLimit: ["gas"] gasLimit: ["gas"],
index: ["transactionIndex"]
})(value); })(value);
// If to and creates are empty, populate the creates from the value // If to and creates are empty, populate the creates from the value
if (result.to == null && result.creates == null) { if (result.to == null && result.creates == null) {
@ -24417,8 +24420,9 @@ function ser_I(index, chainCode, publicKey, privateKey) {
} }
function derivePath(node, path) { function derivePath(node, path) {
const components = path.split("/"); const components = path.split("/");
assertArgument(components.length > 0 && (components[0] === "m" || node.depth > 0), "invalid path", "path", path); assertArgument(components.length > 0, "invalid path", "path", path);
if (components[0] === "m") { if (components[0] === "m") {
assertArgument(node.depth === 0, `cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${node.depth}`, "path", path);
components.shift(); components.shift();
} }
let result = node; let result = node;

2
dist/ethers.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/ethers.min.js vendored

File diff suppressed because one or more lines are too long

14
dist/ethers.umd.js vendored

@ -9,7 +9,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
/** /**
* The current version of Ethers. * The current version of Ethers.
*/ */
const version = "6.11.0"; const version = "6.11.1";
/** /**
* Property helper functions. * Property helper functions.
@ -942,6 +942,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
* If %%form%% is specified, the string is normalized. * If %%form%% is specified, the string is normalized.
*/ */
function toUtf8Bytes(str, form) { function toUtf8Bytes(str, form) {
assertArgument(typeof (str) === "string", "invalid string value", "str", str);
if (form != null) { if (form != null) {
assertNormalize(form); assertNormalize(form);
str = str.normalize(form); str = str.normalize(form);
@ -16397,7 +16398,7 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
info: { funcName } info: { funcName }
}); });
params = [ params = [
dnsEncode(this.name), dnsEncode(this.name, 255),
iface.encodeFunctionData(fragment, params) iface.encodeFunctionData(fragment, params)
]; ];
funcName = "resolve(bytes,bytes)"; funcName = "resolve(bytes,bytes)";
@ -16909,6 +16910,8 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
} }
const result = object({ const result = object({
hash: formatHash, hash: formatHash,
// Some nodes do not return this, usually test nodes (like Ganache)
index: allowNull(getNumber, undefined),
type: (value) => { type: (value) => {
if (value === "0x" || value == null) { if (value === "0x" || value == null) {
return 0; return 0;
@ -16920,7 +16923,6 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
blockHash: allowNull(formatHash, null), blockHash: allowNull(formatHash, null),
blockNumber: allowNull(getNumber, null), blockNumber: allowNull(getNumber, null),
transactionIndex: allowNull(getNumber, null), transactionIndex: allowNull(getNumber, null),
//confirmations: allowNull(getNumber, null),
from: getAddress, from: getAddress,
// either (gasPrice) or (maxPriorityFeePerGas + maxFeePerGas) must be set // either (gasPrice) or (maxPriorityFeePerGas + maxFeePerGas) must be set
gasPrice: allowNull(getBigInt), gasPrice: allowNull(getBigInt),
@ -16936,7 +16938,8 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
chainId: allowNull(getBigInt, null) chainId: allowNull(getBigInt, null)
}, { }, {
data: ["input"], data: ["input"],
gasLimit: ["gas"] gasLimit: ["gas"],
index: ["transactionIndex"]
})(value); })(value);
// If to and creates are empty, populate the creates from the value // If to and creates are empty, populate the creates from the value
if (result.to == null && result.creates == null) { if (result.to == null && result.creates == null) {
@ -24423,8 +24426,9 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
} }
function derivePath(node, path) { function derivePath(node, path) {
const components = path.split("/"); const components = path.split("/");
assertArgument(components.length > 0 && (components[0] === "m" || node.depth > 0), "invalid path", "path", path); assertArgument(components.length > 0, "invalid path", "path", path);
if (components[0] === "m") { if (components[0] === "m") {
assertArgument(node.depth === 0, `cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${node.depth}`, "path", path);
components.shift(); components.shift();
} }
let result = node; let result = node;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -100,7 +100,7 @@ const rotlBL = (h, l, s) => (h << (s - 32)) | (l >>> (64 - s));
/** /**
* The current version of Ethers. * The current version of Ethers.
*/ */
const version = "6.11.0"; const version = "6.11.1";
/** /**
* Property helper functions. * Property helper functions.
@ -503,6 +503,7 @@ function getUtf8CodePoints(_bytes, onError) {
* If %%form%% is specified, the string is normalized. * If %%form%% is specified, the string is normalized.
*/ */
function toUtf8Bytes(str, form) { function toUtf8Bytes(str, form) {
assertArgument(typeof (str) === "string", "invalid string value", "str", str);
if (form != null) { if (form != null) {
assertNormalize(form); assertNormalize(form);
str = str.normalize(form); str = str.normalize(form);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -33,6 +33,7 @@ export interface TestBlockchainTransaction {
hash: string; hash: string;
blockHash: string; blockHash: string;
blockNumber: number; blockNumber: number;
index: number;
type: number; type: number;
from: string; from: string;
gasPrice: bigint; gasPrice: bigint;

@ -1 +1 @@
{"version":3,"file":"blockchain-data.d.ts","sourceRoot":"","sources":["../../src.ts/_tests/blockchain-data.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAC7B,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAErC,MAAM,WAAW,qBAAqB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC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,MAAM,CAAC;QACd,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACtB,eAAe,EAAE,MAAM,CAAC;QACxB,gBAAgB,EAAE,MAAM,CAAC;KAC5B,CAAC,CAAA;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,IAAI,GAAG,MAAM,CAAC;IACpB,MAAM,EAAE,IAAI,GAAG,MAAM,CAAC;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IAEd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,qBAAqB,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAyBnF,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,qBAAqB,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAmK/E,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,qBAAqB,EAAE,KAAK,CAAC,yBAAyB,CAAC,CA2F3F,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,qBAAqB,EAAE,KAAK,CAAC,qBAAqB,CAAC,CA6GnF,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,qBAAqB,CAErD,CAAC;AACF,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAQ7E"}

@ -197,7 +197,7 @@ exports.testTransaction = {
hash: "0xccc90ab97a74c952fb3376c4a3efb566a58a10df62eb4d44a61e106fcf10ec61", hash: "0xccc90ab97a74c952fb3376c4a3efb566a58a10df62eb4d44a61e106fcf10ec61",
blockHash: "0x9653f180a5720f3634816eb945a6d722adee52cc47526f6357ac10adaf368135", blockHash: "0x9653f180a5720f3634816eb945a6d722adee52cc47526f6357ac10adaf368135",
blockNumber: 4097745, blockNumber: 4097745,
// index: 18, index: 18,
type: 0, type: 0,
from: "0x32DEF047DeFd076DB21A2D759aff2A591c972248", from: "0x32DEF047DeFd076DB21A2D759aff2A591c972248",
gasPrice: BigInt("0x4a817c800"), gasPrice: BigInt("0x4a817c800"),
@ -221,7 +221,7 @@ exports.testTransaction = {
hash: "0x8ff41d0ba5d239acc8c123ff12451a2c15721c838f657e583d355999af4a4349", hash: "0x8ff41d0ba5d239acc8c123ff12451a2c15721c838f657e583d355999af4a4349",
blockHash: '0x9d4c3bef68e119841281105da96beb1c7252f357340d7a3355236b3332b197b0', blockHash: '0x9d4c3bef68e119841281105da96beb1c7252f357340d7a3355236b3332b197b0',
blockNumber: 12966000, blockNumber: 12966000,
// index: 185, index: 185,
type: 2, type: 2,
from: '0x5afFBa12E9332bbc0E221c8E7BEf7CB7cfB3F281', from: '0x5afFBa12E9332bbc0E221c8E7BEf7CB7cfB3F281',
to: '0x2258CcD34ae29E6B199b6CD64eb2aEF157df7CdE', to: '0x2258CcD34ae29E6B199b6CD64eb2aEF157df7CdE',
@ -251,7 +251,7 @@ exports.testTransaction = {
hash: "0x6c4aef4c26410b1fcbf24d0148e3d66a10cb3e9ad4ca10a71782489688cdd45a", hash: "0x6c4aef4c26410b1fcbf24d0148e3d66a10cb3e9ad4ca10a71782489688cdd45a",
blockHash: '0xa76eb2ed547798d6010f599902788136f0cd289e2c6df5bbf5242e36e356124d', blockHash: '0xa76eb2ed547798d6010f599902788136f0cd289e2c6df5bbf5242e36e356124d',
blockNumber: 5198187, blockNumber: 5198187,
// index: 185, index: 24,
type: 3, type: 3,
from: '0x1803c760451DC8da8935c7B7E47e1c60910E6986', from: '0x1803c760451DC8da8935c7B7E47e1c60910E6986',
to: '0x4f56fFC63c28b72F79b02E91F11a4707bac4043C', to: '0x4f56fFC63c28b72F79b02E91F11a4707bac4043C',

File diff suppressed because one or more lines are too long

@ -5,5 +5,5 @@ exports.version = void 0;
/** /**
* The current version of Ethers. * The current version of Ethers.
*/ */
exports.version = "6.11.0"; exports.version = "6.11.1";
//# sourceMappingURL=_version.js.map //# sourceMappingURL=_version.js.map

@ -154,7 +154,7 @@ class EnsResolver {
info: { funcName } info: { funcName }
}); });
params = [ params = [
(0, index_js_4.dnsEncode)(this.name), (0, index_js_4.dnsEncode)(this.name, 255),
iface.encodeFunctionData(fragment, params) iface.encodeFunctionData(fragment, params)
]; ];
funcName = "resolve(bytes,bytes)"; funcName = "resolve(bytes,bytes)";

File diff suppressed because one or more lines are too long

@ -1 +1 @@
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src.ts/providers/format.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACR,WAAW,EAAE,SAAS,EACtB,wBAAwB,EAAE,yBAAyB,EACtD,MAAM,iBAAiB,CAAC;AAKzB,MAAM,MAAM,UAAU,GAAG,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC;AAE7C,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,GAAG,GAAG,UAAU,CAKzE;AAED,wBAAgB,OAAO,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,UAAU,CAM3E;AAKD,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,CAwB/G;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAQjD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGhD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,CAG7C;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,CAKhD;AAgBD,wBAAgB,SAAS,CAAC,KAAK,EAAE,GAAG,GAAG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K,EAAE,GAAG,GAAG,WAAW,CAOnD;AAeD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,GAAG,GAAG,SAAS,CAEtD;AA4BD,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,GAAG,GAAG,wBAAwB,CAE7E;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,GAAG,GAAG,yBAAyB,CAmH/E"}

@ -189,6 +189,8 @@ function formatTransactionResponse(value) {
} }
const result = object({ const result = object({
hash: formatHash, hash: formatHash,
// Some nodes do not return this, usually test nodes (like Ganache)
index: allowNull(index_js_4.getNumber, undefined),
type: (value) => { type: (value) => {
if (value === "0x" || value == null) { if (value === "0x" || value == null) {
return 0; return 0;
@ -200,7 +202,6 @@ function formatTransactionResponse(value) {
blockHash: allowNull(formatHash, null), blockHash: allowNull(formatHash, null),
blockNumber: allowNull(index_js_4.getNumber, null), blockNumber: allowNull(index_js_4.getNumber, null),
transactionIndex: allowNull(index_js_4.getNumber, null), transactionIndex: allowNull(index_js_4.getNumber, null),
//confirmations: allowNull(getNumber, null),
from: index_js_1.getAddress, from: index_js_1.getAddress,
// either (gasPrice) or (maxPriorityFeePerGas + maxFeePerGas) must be set // either (gasPrice) or (maxPriorityFeePerGas + maxFeePerGas) must be set
gasPrice: allowNull(index_js_4.getBigInt), gasPrice: allowNull(index_js_4.getBigInt),
@ -216,7 +217,8 @@ function formatTransactionResponse(value) {
chainId: allowNull(index_js_4.getBigInt, null) chainId: allowNull(index_js_4.getBigInt, null)
}, { }, {
data: ["input"], data: ["input"],
gasLimit: ["gas"] gasLimit: ["gas"],
index: ["transactionIndex"]
})(value); })(value);
// If to and creates are empty, populate the creates from the value // If to and creates are empty, populate the creates from the value
if (result.to == null && result.creates == null) { if (result.to == null && result.creates == null) {

File diff suppressed because one or more lines are too long

@ -1 +1 @@
{"version":3,"file":"utf8.d.ts","sourceRoot":"","sources":["../../src.ts/utils/utf8.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,SAAS,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AAM,CAAC;AAEvE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,MAAM,eAAe,GAAG,qBAAqB,GAAG,YAAY,GAAG,SAAS,GAC1E,kBAAkB,GAAG,cAAc,GAAG,iBAAiB,GAAG,UAAU,CAAC;AAGzE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;AA6CjJ;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,GAAG,QAAQ,GAAG,SAAS,EAAE,aAAa,CAAC,CAIzF,CAAC;AAsGH;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,wBAAwB,GAAG,UAAU,CAyCpF;AAgBD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,MAAM,CAE9E;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,wBAAwB,GAAG,KAAK,CAAC,MAAM,CAAC,CAE5F"}

@ -158,6 +158,7 @@ function getUtf8CodePoints(_bytes, onError) {
* If %%form%% is specified, the string is normalized. * If %%form%% is specified, the string is normalized.
*/ */
function toUtf8Bytes(str, form) { function toUtf8Bytes(str, form) {
(0, errors_js_1.assertArgument)(typeof (str) === "string", "invalid string value", "str", str);
if (form != null) { if (form != null) {
(0, errors_js_1.assertNormalize)(form); (0, errors_js_1.assertNormalize)(form);
str = str.normalize(form); str = str.normalize(form);

File diff suppressed because one or more lines are too long

@ -1 +1 @@
{"version":3,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AAE,OAAO,GAAG,gBAAgB;IAqB9C;;OAEG;IACH,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB;CAG7C;AAmBD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAItD;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAI7D"}

@ -63,8 +63,9 @@ function ser_I(index, chainCode, publicKey, privateKey) {
} }
function derivePath(node, path) { function derivePath(node, path) {
const components = path.split("/"); const components = path.split("/");
(0, index_js_4.assertArgument)(components.length > 0 && (components[0] === "m" || node.depth > 0), "invalid path", "path", path); (0, index_js_4.assertArgument)(components.length > 0, "invalid path", "path", path);
if (components[0] === "m") { if (components[0] === "m") {
(0, index_js_4.assertArgument)(node.depth === 0, `cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${node.depth}`, "path", path);
components.shift(); components.shift();
} }
let result = node; let result = node;

File diff suppressed because one or more lines are too long

@ -33,6 +33,7 @@ export interface TestBlockchainTransaction {
hash: string; hash: string;
blockHash: string; blockHash: string;
blockNumber: number; blockNumber: number;
index: number;
type: number; type: number;
from: string; from: string;
gasPrice: bigint; gasPrice: bigint;

@ -1 +1 @@
{"version":3,"file":"blockchain-data.d.ts","sourceRoot":"","sources":["../../src.ts/_tests/blockchain-data.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAC7B,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAErC,MAAM,WAAW,qBAAqB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC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AEF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,qBAAqB,EAAE,KAAK,CAAC,yBAAyB,CAAC,CA2F3F,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,qBAAqB,EAAE,KAAK,CAAC,qBAAqB,CAAC,CA6GnF,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,qBAAqB,CAErD,CAAC;AACF,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAQ7E"}

@ -194,7 +194,7 @@ export const testTransaction = {
hash: "0xccc90ab97a74c952fb3376c4a3efb566a58a10df62eb4d44a61e106fcf10ec61", hash: "0xccc90ab97a74c952fb3376c4a3efb566a58a10df62eb4d44a61e106fcf10ec61",
blockHash: "0x9653f180a5720f3634816eb945a6d722adee52cc47526f6357ac10adaf368135", blockHash: "0x9653f180a5720f3634816eb945a6d722adee52cc47526f6357ac10adaf368135",
blockNumber: 4097745, blockNumber: 4097745,
// index: 18, index: 18,
type: 0, type: 0,
from: "0x32DEF047DeFd076DB21A2D759aff2A591c972248", from: "0x32DEF047DeFd076DB21A2D759aff2A591c972248",
gasPrice: BigInt("0x4a817c800"), gasPrice: BigInt("0x4a817c800"),
@ -218,7 +218,7 @@ export const testTransaction = {
hash: "0x8ff41d0ba5d239acc8c123ff12451a2c15721c838f657e583d355999af4a4349", hash: "0x8ff41d0ba5d239acc8c123ff12451a2c15721c838f657e583d355999af4a4349",
blockHash: '0x9d4c3bef68e119841281105da96beb1c7252f357340d7a3355236b3332b197b0', blockHash: '0x9d4c3bef68e119841281105da96beb1c7252f357340d7a3355236b3332b197b0',
blockNumber: 12966000, blockNumber: 12966000,
// index: 185, index: 185,
type: 2, type: 2,
from: '0x5afFBa12E9332bbc0E221c8E7BEf7CB7cfB3F281', from: '0x5afFBa12E9332bbc0E221c8E7BEf7CB7cfB3F281',
to: '0x2258CcD34ae29E6B199b6CD64eb2aEF157df7CdE', to: '0x2258CcD34ae29E6B199b6CD64eb2aEF157df7CdE',
@ -248,7 +248,7 @@ export const testTransaction = {
hash: "0x6c4aef4c26410b1fcbf24d0148e3d66a10cb3e9ad4ca10a71782489688cdd45a", hash: "0x6c4aef4c26410b1fcbf24d0148e3d66a10cb3e9ad4ca10a71782489688cdd45a",
blockHash: '0xa76eb2ed547798d6010f599902788136f0cd289e2c6df5bbf5242e36e356124d', blockHash: '0xa76eb2ed547798d6010f599902788136f0cd289e2c6df5bbf5242e36e356124d',
blockNumber: 5198187, blockNumber: 5198187,
// index: 185, index: 24,
type: 3, type: 3,
from: '0x1803c760451DC8da8935c7B7E47e1c60910E6986', from: '0x1803c760451DC8da8935c7B7E47e1c60910E6986',
to: '0x4f56fFC63c28b72F79b02E91F11a4707bac4043C', to: '0x4f56fFC63c28b72F79b02E91F11a4707bac4043C',

File diff suppressed because one or more lines are too long

@ -2,5 +2,5 @@
/** /**
* The current version of Ethers. * The current version of Ethers.
*/ */
export const version = "6.11.0"; export const version = "6.11.1";
//# sourceMappingURL=_version.js.map //# sourceMappingURL=_version.js.map

@ -149,7 +149,7 @@ export class EnsResolver {
info: { funcName } info: { funcName }
}); });
params = [ params = [
dnsEncode(this.name), dnsEncode(this.name, 255),
iface.encodeFunctionData(fragment, params) iface.encodeFunctionData(fragment, params)
]; ];
funcName = "resolve(bytes,bytes)"; funcName = "resolve(bytes,bytes)";

File diff suppressed because one or more lines are too long

@ -1 +1 @@
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src.ts/providers/format.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACR,WAAW,EAAE,SAAS,EACtB,wBAAwB,EAAE,yBAAyB,EACtD,MAAM,iBAAiB,CAAC;AAKzB,MAAM,MAAM,UAAU,GAAG,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC;AAE7C,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,GAAG,GAAG,UAAU,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AAU,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,UAAU,CAM3E;AAKD,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,CAwB/G;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAQjD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGhD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,CAG7C;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,CAKhD;AAgBD,wBAAgB,SAAS,CAAC,KAAK,EAAE,GAAG,GAAG,SAAS,CAE/C;AA4BD,wBAAgB,WAAW,CAAC,KAAK,EAAE,GAAG,GAAG,WAAW,CAOnD;AAeD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,GAAG,GAAG,SAAS,CAEtD;AA4BD,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,GAAG,GAAG,wBAAwB,CAE7E;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,GAAG,GAAG,yBAAyB,CAmH/E"}

@ -175,6 +175,8 @@ export function formatTransactionResponse(value) {
} }
const result = object({ const result = object({
hash: formatHash, hash: formatHash,
// Some nodes do not return this, usually test nodes (like Ganache)
index: allowNull(getNumber, undefined),
type: (value) => { type: (value) => {
if (value === "0x" || value == null) { if (value === "0x" || value == null) {
return 0; return 0;
@ -186,7 +188,6 @@ export function formatTransactionResponse(value) {
blockHash: allowNull(formatHash, null), blockHash: allowNull(formatHash, null),
blockNumber: allowNull(getNumber, null), blockNumber: allowNull(getNumber, null),
transactionIndex: allowNull(getNumber, null), transactionIndex: allowNull(getNumber, null),
//confirmations: allowNull(getNumber, null),
from: getAddress, from: getAddress,
// either (gasPrice) or (maxPriorityFeePerGas + maxFeePerGas) must be set // either (gasPrice) or (maxPriorityFeePerGas + maxFeePerGas) must be set
gasPrice: allowNull(getBigInt), gasPrice: allowNull(getBigInt),
@ -202,7 +203,8 @@ export function formatTransactionResponse(value) {
chainId: allowNull(getBigInt, null) chainId: allowNull(getBigInt, null)
}, { }, {
data: ["input"], data: ["input"],
gasLimit: ["gas"] gasLimit: ["gas"],
index: ["transactionIndex"]
})(value); })(value);
// If to and creates are empty, populate the creates from the value // If to and creates are empty, populate the creates from the value
if (result.to == null && result.creates == null) { if (result.to == null && result.creates == null) {

File diff suppressed because one or more lines are too long

@ -1 +1 @@
{"version":3,"file":"utf8.d.ts","sourceRoot":"","sources":["../../src.ts/utils/utf8.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAK5C;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,MAAM,eAAe,GAAG,qBAAqB,GAAG,YAAY,GAAG,SAAS,GAC1E,kBAAkB,GAAG,cAAc,GAAG,iBAAiB,GAAG,UAAU,CAAC;AAGzE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;AA6CjJ;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,GAAG,QAAQ,GAAG,SAAS,EAAE,aAAa,CAAC,CAIzF,CAAC;AAsGH;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,I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,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,MAAM,CAE9E;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,wBAAwB,GAAG,KAAK,CAAC,MAAM,CAAC,CAE5F"}

@ -155,6 +155,7 @@ function getUtf8CodePoints(_bytes, onError) {
* If %%form%% is specified, the string is normalized. * If %%form%% is specified, the string is normalized.
*/ */
export function toUtf8Bytes(str, form) { export function toUtf8Bytes(str, form) {
assertArgument(typeof (str) === "string", "invalid string value", "str", str);
if (form != null) { if (form != null) {
assertNormalize(form); assertNormalize(form);
str = str.normalize(form); str = str.normalize(form);

File diff suppressed because one or more lines are too long

@ -1 +1 @@
{"version":3,"file":"hdwallet.d.ts","sourceRoot":"","sources":["../../src.ts/wallet/hdwallet.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAuC,UAAU,EAAU,MAAM,oBAAoB,CAAC;AAC7F,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAUnD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAKzC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAItD;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,MAA2B,CAAC;AAmFtD;;;;;;;GAOG;AACH,qBAAa,YAAa,SAAQ,UAAU;;IACxC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAG,MAAM,CAAC;IAE5B;;;;;;OAMG;IACH,QAAQ,CAAC,WAAW,EAAG,MAAM,CAAC;IAE9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G,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAG,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,GAAG,QAAQ;IAYtL,OAAO,CAAC,QAAQ,EAAE,IAAI,GAAG,QAAQ,GAAG,gBAAgB;IAKpD;;;;;OAKG;IACH,IAAI,WAAW,IAAI,MAAM,CAiBxB;IAED;;;OAGG;IACH,OAAO,IAAI,IAAI,IAAI;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;IAEnC;;OAEG;IACH,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,gBAAgB;IAqB9C;;OAEG;IACH,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB;CAG7C;AAmBD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAItD;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAI7D"}

@ -60,8 +60,9 @@ function ser_I(index, chainCode, publicKey, privateKey) {
} }
function derivePath(node, path) { function derivePath(node, path) {
const components = path.split("/"); const components = path.split("/");
assertArgument(components.length > 0 && (components[0] === "m" || node.depth > 0), "invalid path", "path", path); assertArgument(components.length > 0, "invalid path", "path", path);
if (components[0] === "m") { if (components[0] === "m") {
assertArgument(node.depth === 0, `cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${node.depth}`, "path", path);
components.shift(); components.shift();
} }
let result = node; let result = node;

File diff suppressed because one or more lines are too long

@ -93,7 +93,7 @@
"url": "https://www.buymeacoffee.com/ricmoo" "url": "https://www.buymeacoffee.com/ricmoo"
} }
], ],
"gitHead": "f02211d055567b51373b5faa2c3dc6efe0523618", "gitHead": "556fdd91d9b6bf7db4041bb099e66b2080e1a985",
"homepage": "https://ethers.org", "homepage": "https://ethers.org",
"keywords": [ "keywords": [
"ethereum", "ethereum",
@ -131,5 +131,5 @@
"test-esm": "mocha --trace-warnings --reporter ./reporter.cjs ./lib.esm/_tests/test-*.js" "test-esm": "mocha --trace-warnings --reporter ./reporter.cjs ./lib.esm/_tests/test-*.js"
}, },
"sideEffects": false, "sideEffects": false,
"version": "6.11.0" "version": "6.11.1"
} }

@ -3,4 +3,4 @@
/** /**
* The current version of Ethers. * The current version of Ethers.
*/ */
export const version: string = "6.11.0"; export const version: string = "6.11.1";