@gearbox-protocol/deploy-tools 5.36.17 → 5.36.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +456 -452
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1207,7 +1207,7 @@ var require_command = __commonJS({
1207
1207
  "../../node_modules/commander/lib/command.js"(exports2) {
1208
1208
  var EventEmitter = __require("node:events").EventEmitter;
1209
1209
  var childProcess = __require("node:child_process");
1210
- var path10 = __require("node:path");
1210
+ var path11 = __require("node:path");
1211
1211
  var fs3 = __require("node:fs");
1212
1212
  var process3 = __require("node:process");
1213
1213
  var { Argument: Argument2, humanReadableArgName } = require_argument();
@@ -2221,9 +2221,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
2221
2221
  let launchWithNode = false;
2222
2222
  const sourceExt = [".js", ".ts", ".tsx", ".mjs", ".cjs"];
2223
2223
  function findFile(baseDir, baseName) {
2224
- const localBin = path10.resolve(baseDir, baseName);
2224
+ const localBin = path11.resolve(baseDir, baseName);
2225
2225
  if (fs3.existsSync(localBin)) return localBin;
2226
- if (sourceExt.includes(path10.extname(baseName))) return void 0;
2226
+ if (sourceExt.includes(path11.extname(baseName))) return void 0;
2227
2227
  const foundExt = sourceExt.find(
2228
2228
  (ext) => fs3.existsSync(`${localBin}${ext}`)
2229
2229
  );
@@ -2241,17 +2241,17 @@ Expecting one of '${allowedValues.join("', '")}'`);
2241
2241
  } catch {
2242
2242
  resolvedScriptPath = this._scriptPath;
2243
2243
  }
2244
- executableDir = path10.resolve(
2245
- path10.dirname(resolvedScriptPath),
2244
+ executableDir = path11.resolve(
2245
+ path11.dirname(resolvedScriptPath),
2246
2246
  executableDir
2247
2247
  );
2248
2248
  }
2249
2249
  if (executableDir) {
2250
2250
  let localFile = findFile(executableDir, executableFile);
2251
2251
  if (!localFile && !subcommand._executableFile && this._scriptPath) {
2252
- const legacyName = path10.basename(
2252
+ const legacyName = path11.basename(
2253
2253
  this._scriptPath,
2254
- path10.extname(this._scriptPath)
2254
+ path11.extname(this._scriptPath)
2255
2255
  );
2256
2256
  if (legacyName !== this._name) {
2257
2257
  localFile = findFile(
@@ -2262,7 +2262,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
2262
2262
  }
2263
2263
  executableFile = localFile || executableFile;
2264
2264
  }
2265
- launchWithNode = sourceExt.includes(path10.extname(executableFile));
2265
+ launchWithNode = sourceExt.includes(path11.extname(executableFile));
2266
2266
  let proc;
2267
2267
  if (process3.platform !== "win32") {
2268
2268
  if (launchWithNode) {
@@ -3178,7 +3178,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
3178
3178
  * @return {Command}
3179
3179
  */
3180
3180
  nameFromFilename(filename) {
3181
- this._name = path10.basename(filename, path10.extname(filename));
3181
+ this._name = path11.basename(filename, path11.extname(filename));
3182
3182
  return this;
3183
3183
  }
3184
3184
  /**
@@ -3192,9 +3192,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
3192
3192
  * @param {string} [path]
3193
3193
  * @return {(string|null|Command)}
3194
3194
  */
3195
- executableDir(path11) {
3196
- if (path11 === void 0) return this._executableDir;
3197
- this._executableDir = path11;
3195
+ executableDir(path12) {
3196
+ if (path12 === void 0) return this._executableDir;
3197
+ this._executableDir = path12;
3198
3198
  return this;
3199
3199
  }
3200
3200
  /**
@@ -22821,11 +22821,11 @@ var require_mime_types = __commonJS({
22821
22821
  }
22822
22822
  return exts[0];
22823
22823
  }
22824
- function lookup(path10) {
22825
- if (!path10 || typeof path10 !== "string") {
22824
+ function lookup(path11) {
22825
+ if (!path11 || typeof path11 !== "string") {
22826
22826
  return false;
22827
22827
  }
22828
- var extension2 = extname("x." + path10).toLowerCase().substr(1);
22828
+ var extension2 = extname("x." + path11).toLowerCase().substr(1);
22829
22829
  if (!extension2) {
22830
22830
  return false;
22831
22831
  }
@@ -23930,7 +23930,7 @@ var require_form_data = __commonJS({
23930
23930
  "use strict";
23931
23931
  var CombinedStream = require_combined_stream();
23932
23932
  var util2 = __require("util");
23933
- var path10 = __require("path");
23933
+ var path11 = __require("path");
23934
23934
  var http2 = __require("http");
23935
23935
  var https = __require("https");
23936
23936
  var parseUrl = __require("url").parse;
@@ -24057,11 +24057,11 @@ var require_form_data = __commonJS({
24057
24057
  FormData2.prototype._getContentDisposition = function(value, options) {
24058
24058
  var filename;
24059
24059
  if (typeof options.filepath === "string") {
24060
- filename = path10.normalize(options.filepath).replace(/\\/g, "/");
24060
+ filename = path11.normalize(options.filepath).replace(/\\/g, "/");
24061
24061
  } else if (options.filename || value && (value.name || value.path)) {
24062
- filename = path10.basename(options.filename || value && (value.name || value.path));
24062
+ filename = path11.basename(options.filename || value && (value.name || value.path));
24063
24063
  } else if (value && value.readable && hasOwn(value, "httpVersion")) {
24064
- filename = path10.basename(value.client._httpMessage.path || "");
24064
+ filename = path11.basename(value.client._httpMessage.path || "");
24065
24065
  }
24066
24066
  if (filename) {
24067
24067
  return 'filename="' + filename + '"';
@@ -31706,12 +31706,12 @@ var require_abstract_coder = __commonJS({
31706
31706
  var logger2 = new logger_1.Logger(_version_1.version);
31707
31707
  function checkResultErrors(result) {
31708
31708
  var errors = [];
31709
- var checkErrors = function(path10, object) {
31709
+ var checkErrors = function(path11, object) {
31710
31710
  if (!Array.isArray(object)) {
31711
31711
  return;
31712
31712
  }
31713
31713
  for (var key in object) {
31714
- var childPath = path10.slice();
31714
+ var childPath = path11.slice();
31715
31715
  childPath.push(key);
31716
31716
  try {
31717
31717
  checkErrors(childPath, object[key]);
@@ -45792,9 +45792,9 @@ var require_lib21 = __commonJS({
45792
45792
  if (index2 > 4294967295) {
45793
45793
  throw new Error("invalid index - " + String(index2));
45794
45794
  }
45795
- var path10 = this.path;
45796
- if (path10) {
45797
- path10 += "/" + (index2 & ~HardenedBit);
45795
+ var path11 = this.path;
45796
+ if (path11) {
45797
+ path11 += "/" + (index2 & ~HardenedBit);
45798
45798
  }
45799
45799
  var data = new Uint8Array(37);
45800
45800
  if (index2 & HardenedBit) {
@@ -45802,8 +45802,8 @@ var require_lib21 = __commonJS({
45802
45802
  throw new Error("cannot derive child of neutered node");
45803
45803
  }
45804
45804
  data.set((0, bytes_1.arrayify)(this.privateKey), 1);
45805
- if (path10) {
45806
- path10 += "'";
45805
+ if (path11) {
45806
+ path11 += "'";
45807
45807
  }
45808
45808
  } else {
45809
45809
  data.set((0, bytes_1.arrayify)(this.publicKey));
@@ -45822,21 +45822,21 @@ var require_lib21 = __commonJS({
45822
45822
  var ek = new signing_key_1.SigningKey((0, bytes_1.hexlify)(IL));
45823
45823
  Ki = ek._addPoint(this.publicKey);
45824
45824
  }
45825
- var mnemonicOrPath = path10;
45825
+ var mnemonicOrPath = path11;
45826
45826
  var srcMnemonic = this.mnemonic;
45827
45827
  if (srcMnemonic) {
45828
45828
  mnemonicOrPath = Object.freeze({
45829
45829
  phrase: srcMnemonic.phrase,
45830
- path: path10,
45830
+ path: path11,
45831
45831
  locale: srcMnemonic.locale || "en"
45832
45832
  });
45833
45833
  }
45834
45834
  return new HDNode2(_constructorGuard, ki, Ki, this.fingerprint, bytes32(IR), index2, this.depth + 1, mnemonicOrPath);
45835
45835
  };
45836
- HDNode2.prototype.derivePath = function(path10) {
45837
- var components = path10.split("/");
45836
+ HDNode2.prototype.derivePath = function(path11) {
45837
+ var components = path11.split("/");
45838
45838
  if (components.length === 0 || components[0] === "m" && this.depth !== 0) {
45839
- throw new Error("invalid path - " + path10);
45839
+ throw new Error("invalid path - " + path11);
45840
45840
  }
45841
45841
  if (components[0] === "m") {
45842
45842
  components.shift();
@@ -46590,9 +46590,9 @@ var require_utils4 = __commonJS({
46590
46590
  return (0, bytes_1.arrayify)(password);
46591
46591
  }
46592
46592
  exports2.getPassword = getPassword;
46593
- function searchPath(object, path10) {
46593
+ function searchPath(object, path11) {
46594
46594
  var currentChild = object;
46595
- var comps = path10.toLowerCase().split("/");
46595
+ var comps = path11.toLowerCase().split("/");
46596
46596
  for (var i = 0; i < comps.length; i++) {
46597
46597
  var matchingChild = null;
46598
46598
  for (var key in currentChild) {
@@ -47479,12 +47479,12 @@ var require_keystore = __commonJS({
47479
47479
  var mnemonicIv = (0, utils_1.looseArrayify)((0, utils_1.searchPath)(data, "x-ethers/mnemonicCounter"));
47480
47480
  var mnemonicCounter = new aes_js_1.default.Counter(mnemonicIv);
47481
47481
  var mnemonicAesCtr = new aes_js_1.default.ModeOfOperation.ctr(mnemonicKey, mnemonicCounter);
47482
- var path10 = (0, utils_1.searchPath)(data, "x-ethers/path") || hdnode_1.defaultPath;
47482
+ var path11 = (0, utils_1.searchPath)(data, "x-ethers/path") || hdnode_1.defaultPath;
47483
47483
  var locale = (0, utils_1.searchPath)(data, "x-ethers/locale") || "en";
47484
47484
  var entropy = (0, bytes_1.arrayify)(mnemonicAesCtr.decrypt(mnemonicCiphertext));
47485
47485
  try {
47486
47486
  var mnemonic = (0, hdnode_1.entropyToMnemonic)(entropy, locale);
47487
- var node = hdnode_1.HDNode.fromMnemonic(mnemonic, null, locale).derivePath(path10);
47487
+ var node = hdnode_1.HDNode.fromMnemonic(mnemonic, null, locale).derivePath(path11);
47488
47488
  if (node.privateKey != account.privateKey) {
47489
47489
  throw new Error("mnemonic mismatch");
47490
47490
  }
@@ -47594,12 +47594,12 @@ var require_keystore = __commonJS({
47594
47594
  var privateKey = (0, bytes_1.arrayify)(account.privateKey);
47595
47595
  var passwordBytes = (0, utils_1.getPassword)(password);
47596
47596
  var entropy = null;
47597
- var path10 = null;
47597
+ var path11 = null;
47598
47598
  var locale = null;
47599
47599
  if (hasMnemonic(account)) {
47600
47600
  var srcMnemonic = account.mnemonic;
47601
47601
  entropy = (0, bytes_1.arrayify)((0, hdnode_1.mnemonicToEntropy)(srcMnemonic.phrase, srcMnemonic.locale || "en"));
47602
- path10 = srcMnemonic.path || hdnode_1.defaultPath;
47602
+ path11 = srcMnemonic.path || hdnode_1.defaultPath;
47603
47603
  locale = srcMnemonic.locale || "en";
47604
47604
  }
47605
47605
  var client = options.client;
@@ -47685,7 +47685,7 @@ var require_keystore = __commonJS({
47685
47685
  gethFilename: "UTC--" + timestamp + "--" + data.address,
47686
47686
  mnemonicCounter: (0, bytes_1.hexlify)(mnemonicIv).substring(2),
47687
47687
  mnemonicCiphertext: (0, bytes_1.hexlify)(mnemonicCiphertext).substring(2),
47688
- path: path10,
47688
+ path: path11,
47689
47689
  locale,
47690
47690
  version: "0.1"
47691
47691
  };
@@ -49052,11 +49052,11 @@ var require_lib28 = __commonJS({
49052
49052
  Wallet2.fromEncryptedJsonSync = function(json, password) {
49053
49053
  return new Wallet2((0, json_wallets_1.decryptJsonWalletSync)(json, password));
49054
49054
  };
49055
- Wallet2.fromMnemonic = function(mnemonic, path10, wordlist) {
49056
- if (!path10) {
49057
- path10 = hdnode_1.defaultPath;
49055
+ Wallet2.fromMnemonic = function(mnemonic, path11, wordlist) {
49056
+ if (!path11) {
49057
+ path11 = hdnode_1.defaultPath;
49058
49058
  }
49059
- return new Wallet2(hdnode_1.HDNode.fromMnemonic(mnemonic, null, wordlist).derivePath(path10));
49059
+ return new Wallet2(hdnode_1.HDNode.fromMnemonic(mnemonic, null, wordlist).derivePath(path11));
49060
49060
  };
49061
49061
  return Wallet2;
49062
49062
  }(abstract_signer_1.Signer)
@@ -61947,13 +61947,13 @@ var require_ipc_provider = __commonJS({
61947
61947
  /** @class */
61948
61948
  function(_super) {
61949
61949
  __extends4(IpcProvider2, _super);
61950
- function IpcProvider2(path10, network) {
61950
+ function IpcProvider2(path11, network) {
61951
61951
  var _this = this;
61952
- if (path10 == null) {
61952
+ if (path11 == null) {
61953
61953
  logger2.throwError("missing path", logger_1.Logger.errors.MISSING_ARGUMENT, { arg: "path" });
61954
61954
  }
61955
- _this = _super.call(this, "ipc://" + path10, network) || this;
61956
- (0, properties_1.defineReadOnly)(_this, "path", path10);
61955
+ _this = _super.call(this, "ipc://" + path11, network) || this;
61956
+ (0, properties_1.defineReadOnly)(_this, "path", path11);
61957
61957
  return _this;
61958
61958
  }
61959
61959
  IpcProvider2.prototype.send = function(method, params) {
@@ -62670,21 +62670,21 @@ var require_web3_provider = __commonJS({
62670
62670
  if (provider == null) {
62671
62671
  logger2.throwArgumentError("missing provider", "provider", provider);
62672
62672
  }
62673
- var path10 = null;
62673
+ var path11 = null;
62674
62674
  var jsonRpcFetchFunc = null;
62675
62675
  var subprovider = null;
62676
62676
  if (typeof provider === "function") {
62677
- path10 = "unknown:";
62677
+ path11 = "unknown:";
62678
62678
  jsonRpcFetchFunc = provider;
62679
62679
  } else {
62680
- path10 = provider.host || provider.path || "";
62681
- if (!path10 && provider.isMetaMask) {
62682
- path10 = "metamask";
62680
+ path11 = provider.host || provider.path || "";
62681
+ if (!path11 && provider.isMetaMask) {
62682
+ path11 = "metamask";
62683
62683
  }
62684
62684
  subprovider = provider;
62685
62685
  if (provider.request) {
62686
- if (path10 === "") {
62687
- path10 = "eip-1193:";
62686
+ if (path11 === "") {
62687
+ path11 = "eip-1193:";
62688
62688
  }
62689
62689
  jsonRpcFetchFunc = buildEip1193Fetcher(provider);
62690
62690
  } else if (provider.sendAsync) {
@@ -62694,11 +62694,11 @@ var require_web3_provider = __commonJS({
62694
62694
  } else {
62695
62695
  logger2.throwArgumentError("unsupported provider", "provider", provider);
62696
62696
  }
62697
- if (!path10) {
62698
- path10 = "unknown:";
62697
+ if (!path11) {
62698
+ path11 = "unknown:";
62699
62699
  }
62700
62700
  }
62701
- _this = _super.call(this, path10, network) || this;
62701
+ _this = _super.call(this, path11, network) || this;
62702
62702
  (0, properties_1.defineReadOnly)(_this, "jsonRpcFetchFunc", jsonRpcFetchFunc);
62703
62703
  (0, properties_1.defineReadOnly)(_this, "provider", subprovider);
62704
62704
  return _this;
@@ -65433,7 +65433,7 @@ var require_data_point_deserializer = __commonJS({
65433
65433
  var require_node_gyp_build = __commonJS({
65434
65434
  "../../node_modules/node-gyp-build/node-gyp-build.js"(exports2, module2) {
65435
65435
  var fs3 = __require("fs");
65436
- var path10 = __require("path");
65436
+ var path11 = __require("path");
65437
65437
  var os2 = __require("os");
65438
65438
  var runtimeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
65439
65439
  var vars = process.config && process.config.variables || {};
@@ -65450,21 +65450,21 @@ var require_node_gyp_build = __commonJS({
65450
65450
  return runtimeRequire(load.resolve(dir));
65451
65451
  }
65452
65452
  load.resolve = load.path = function(dir) {
65453
- dir = path10.resolve(dir || ".");
65453
+ dir = path11.resolve(dir || ".");
65454
65454
  try {
65455
- var name = runtimeRequire(path10.join(dir, "package.json")).name.toUpperCase().replace(/-/g, "_");
65455
+ var name = runtimeRequire(path11.join(dir, "package.json")).name.toUpperCase().replace(/-/g, "_");
65456
65456
  if (process.env[name + "_PREBUILD"]) dir = process.env[name + "_PREBUILD"];
65457
65457
  } catch (err) {
65458
65458
  }
65459
65459
  if (!prebuildsOnly) {
65460
- var release = getFirst(path10.join(dir, "build/Release"), matchBuild);
65460
+ var release = getFirst(path11.join(dir, "build/Release"), matchBuild);
65461
65461
  if (release) return release;
65462
- var debug = getFirst(path10.join(dir, "build/Debug"), matchBuild);
65462
+ var debug = getFirst(path11.join(dir, "build/Debug"), matchBuild);
65463
65463
  if (debug) return debug;
65464
65464
  }
65465
65465
  var prebuild = resolve2(dir);
65466
65466
  if (prebuild) return prebuild;
65467
- var nearby = resolve2(path10.dirname(process.execPath));
65467
+ var nearby = resolve2(path11.dirname(process.execPath));
65468
65468
  if (nearby) return nearby;
65469
65469
  var target = [
65470
65470
  "platform=" + platform,
@@ -65481,14 +65481,14 @@ var require_node_gyp_build = __commonJS({
65481
65481
  ].filter(Boolean).join(" ");
65482
65482
  throw new Error("No native build was found for " + target + "\n loaded from: " + dir + "\n");
65483
65483
  function resolve2(dir2) {
65484
- var tuples = readdirSync(path10.join(dir2, "prebuilds")).map(parseTuple);
65484
+ var tuples = readdirSync(path11.join(dir2, "prebuilds")).map(parseTuple);
65485
65485
  var tuple = tuples.filter(matchTuple(platform, arch)).sort(compareTuples)[0];
65486
65486
  if (!tuple) return;
65487
- var prebuilds = path10.join(dir2, "prebuilds", tuple.name);
65487
+ var prebuilds = path11.join(dir2, "prebuilds", tuple.name);
65488
65488
  var parsed = readdirSync(prebuilds).map(parseTags);
65489
65489
  var candidates = parsed.filter(matchTags(runtime, abi50));
65490
65490
  var winner = candidates.sort(compareTags(runtime))[0];
65491
- if (winner) return path10.join(prebuilds, winner.file);
65491
+ if (winner) return path11.join(prebuilds, winner.file);
65492
65492
  }
65493
65493
  };
65494
65494
  function readdirSync(dir) {
@@ -65500,7 +65500,7 @@ var require_node_gyp_build = __commonJS({
65500
65500
  }
65501
65501
  function getFirst(dir, filter) {
65502
65502
  var files = readdirSync(dir).filter(filter);
65503
- return files[0] && path10.join(dir, files[0]);
65503
+ return files[0] && path11.join(dir, files[0]);
65504
65504
  }
65505
65505
  function matchBuild(name) {
65506
65506
  return /\.node$/.test(name);
@@ -67632,9 +67632,9 @@ var require_axios = __commonJS({
67632
67632
  function removeBrackets(key) {
67633
67633
  return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key;
67634
67634
  }
67635
- function renderKey(path10, key, dots) {
67636
- if (!path10) return key;
67637
- return path10.concat(key).map(function each(token, i) {
67635
+ function renderKey(path11, key, dots) {
67636
+ if (!path11) return key;
67637
+ return path11.concat(key).map(function each(token, i) {
67638
67638
  token = removeBrackets(token);
67639
67639
  return !dots && i ? "[" + token + "]" : token;
67640
67640
  }).join(dots ? "." : "");
@@ -67682,9 +67682,9 @@ var require_axios = __commonJS({
67682
67682
  }
67683
67683
  return value;
67684
67684
  }
67685
- function defaultVisitor(value, key, path10) {
67685
+ function defaultVisitor(value, key, path11) {
67686
67686
  let arr = value;
67687
- if (value && !path10 && typeof value === "object") {
67687
+ if (value && !path11 && typeof value === "object") {
67688
67688
  if (utils$1.endsWith(key, "{}")) {
67689
67689
  key = metaTokens ? key : key.slice(0, -2);
67690
67690
  value = JSON.stringify(value);
@@ -67703,7 +67703,7 @@ var require_axios = __commonJS({
67703
67703
  if (isVisitable(value)) {
67704
67704
  return true;
67705
67705
  }
67706
- formData.append(renderKey(path10, key, dots), convertValue(value));
67706
+ formData.append(renderKey(path11, key, dots), convertValue(value));
67707
67707
  return false;
67708
67708
  }
67709
67709
  const stack = [];
@@ -67712,10 +67712,10 @@ var require_axios = __commonJS({
67712
67712
  convertValue,
67713
67713
  isVisitable
67714
67714
  });
67715
- function build(value, path10) {
67715
+ function build(value, path11) {
67716
67716
  if (utils$1.isUndefined(value)) return;
67717
67717
  if (stack.indexOf(value) !== -1) {
67718
- throw Error("Circular reference detected in " + path10.join("."));
67718
+ throw Error("Circular reference detected in " + path11.join("."));
67719
67719
  }
67720
67720
  stack.push(value);
67721
67721
  utils$1.forEach(value, function each(el, key) {
@@ -67723,11 +67723,11 @@ var require_axios = __commonJS({
67723
67723
  formData,
67724
67724
  el,
67725
67725
  utils$1.isString(key) ? key.trim() : key,
67726
- path10,
67726
+ path11,
67727
67727
  exposedHelpers
67728
67728
  );
67729
67729
  if (result === true) {
67730
- build(el, path10 ? path10.concat(key) : [key]);
67730
+ build(el, path11 ? path11.concat(key) : [key]);
67731
67731
  }
67732
67732
  });
67733
67733
  stack.pop();
@@ -67915,7 +67915,7 @@ var require_axios = __commonJS({
67915
67915
  };
67916
67916
  function toURLEncodedForm(data, options) {
67917
67917
  return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
67918
- visitor: function(value, key, path10, helpers) {
67918
+ visitor: function(value, key, path11, helpers) {
67919
67919
  if (platform.isNode && utils$1.isBuffer(value)) {
67920
67920
  this.append(key, value.toString("base64"));
67921
67921
  return false;
@@ -67942,11 +67942,11 @@ var require_axios = __commonJS({
67942
67942
  return obj;
67943
67943
  }
67944
67944
  function formDataToJSON(formData) {
67945
- function buildPath(path10, value, target, index2) {
67946
- let name = path10[index2++];
67945
+ function buildPath(path11, value, target, index2) {
67946
+ let name = path11[index2++];
67947
67947
  if (name === "__proto__") return true;
67948
67948
  const isNumericKey = Number.isFinite(+name);
67949
- const isLast = index2 >= path10.length;
67949
+ const isLast = index2 >= path11.length;
67950
67950
  name = !name && utils$1.isArray(target) ? target.length : name;
67951
67951
  if (isLast) {
67952
67952
  if (utils$1.hasOwnProp(target, name)) {
@@ -67959,7 +67959,7 @@ var require_axios = __commonJS({
67959
67959
  if (!target[name] || !utils$1.isObject(target[name])) {
67960
67960
  target[name] = [];
67961
67961
  }
67962
- const result = buildPath(path10, value, target[name], index2);
67962
+ const result = buildPath(path11, value, target[name], index2);
67963
67963
  if (result && utils$1.isArray(target[name])) {
67964
67964
  target[name] = arrayToObject(target[name]);
67965
67965
  }
@@ -69026,9 +69026,9 @@ var require_axios = __commonJS({
69026
69026
  auth = urlUsername + ":" + urlPassword;
69027
69027
  }
69028
69028
  auth && headers.delete("authorization");
69029
- let path10;
69029
+ let path11;
69030
69030
  try {
69031
- path10 = buildURL(
69031
+ path11 = buildURL(
69032
69032
  parsed.pathname + parsed.search,
69033
69033
  config.params,
69034
69034
  config.paramsSerializer
@@ -69046,7 +69046,7 @@ var require_axios = __commonJS({
69046
69046
  false
69047
69047
  );
69048
69048
  const options = {
69049
- path: path10,
69049
+ path: path11,
69050
69050
  method,
69051
69051
  headers: headers.toJSON(),
69052
69052
  agents: { http: config.httpAgent, https: config.httpsAgent },
@@ -69272,10 +69272,10 @@ var require_axios = __commonJS({
69272
69272
  var cookies = platform.hasStandardBrowserEnv ? (
69273
69273
  // Standard browser envs support document.cookie
69274
69274
  {
69275
- write(name, value, expires, path10, domain, secure) {
69275
+ write(name, value, expires, path11, domain, secure) {
69276
69276
  const cookie = [name + "=" + encodeURIComponent(value)];
69277
69277
  utils$1.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
69278
- utils$1.isString(path10) && cookie.push("path=" + path10);
69278
+ utils$1.isString(path11) && cookie.push("path=" + path11);
69279
69279
  utils$1.isString(domain) && cookie.push("domain=" + domain);
69280
69280
  secure === true && cookie.push("secure");
69281
69281
  document.cookie = cookie.join("; ");
@@ -71825,8 +71825,8 @@ var require_parseUtil = __commonJS({
71825
71825
  var errors_js_1 = require_errors();
71826
71826
  var en_js_1 = __importDefault4(require_en());
71827
71827
  var makeIssue2 = (params) => {
71828
- const { data, path: path10, errorMaps, issueData } = params;
71829
- const fullPath = [...path10, ...issueData.path || []];
71828
+ const { data, path: path11, errorMaps, issueData } = params;
71829
+ const fullPath = [...path11, ...issueData.path || []];
71830
71830
  const fullIssue = {
71831
71831
  ...issueData,
71832
71832
  path: fullPath
@@ -71980,11 +71980,11 @@ var require_types3 = __commonJS({
71980
71980
  var parseUtil_js_1 = require_parseUtil();
71981
71981
  var util_js_1 = require_util();
71982
71982
  var ParseInputLazyPath2 = class {
71983
- constructor(parent, value, path10, key) {
71983
+ constructor(parent, value, path11, key) {
71984
71984
  this._cachedPath = [];
71985
71985
  this.parent = parent;
71986
71986
  this.data = value;
71987
- this._path = path10;
71987
+ this._path = path11;
71988
71988
  this._key = key;
71989
71989
  }
71990
71990
  get path() {
@@ -78439,11 +78439,11 @@ var require_lodash = __commonJS({
78439
78439
  return isFunction2(object[key]);
78440
78440
  });
78441
78441
  }
78442
- function baseGet2(object, path10) {
78443
- path10 = castPath2(path10, object);
78444
- var index2 = 0, length = path10.length;
78442
+ function baseGet2(object, path11) {
78443
+ path11 = castPath2(path11, object);
78444
+ var index2 = 0, length = path11.length;
78445
78445
  while (object != null && index2 < length) {
78446
- object = object[toKey2(path10[index2++])];
78446
+ object = object[toKey2(path11[index2++])];
78447
78447
  }
78448
78448
  return index2 && index2 == length ? object : undefined2;
78449
78449
  }
@@ -78507,10 +78507,10 @@ var require_lodash = __commonJS({
78507
78507
  });
78508
78508
  return accumulator;
78509
78509
  }
78510
- function baseInvoke(object, path10, args) {
78511
- path10 = castPath2(path10, object);
78512
- object = parent(object, path10);
78513
- var func = object == null ? object : object[toKey2(last(path10))];
78510
+ function baseInvoke(object, path11, args) {
78511
+ path11 = castPath2(path11, object);
78512
+ object = parent(object, path11);
78513
+ var func = object == null ? object : object[toKey2(last(path11))];
78514
78514
  return func == null ? undefined2 : apply(func, object, args);
78515
78515
  }
78516
78516
  function baseIsArguments2(value) {
@@ -78666,13 +78666,13 @@ var require_lodash = __commonJS({
78666
78666
  return object === source || baseIsMatch2(object, source, matchData);
78667
78667
  };
78668
78668
  }
78669
- function baseMatchesProperty2(path10, srcValue) {
78670
- if (isKey2(path10) && isStrictComparable2(srcValue)) {
78671
- return matchesStrictComparable2(toKey2(path10), srcValue);
78669
+ function baseMatchesProperty2(path11, srcValue) {
78670
+ if (isKey2(path11) && isStrictComparable2(srcValue)) {
78671
+ return matchesStrictComparable2(toKey2(path11), srcValue);
78672
78672
  }
78673
78673
  return function(object) {
78674
- var objValue = get2(object, path10);
78675
- return objValue === undefined2 && objValue === srcValue ? hasIn2(object, path10) : baseIsEqual2(srcValue, objValue, COMPARE_PARTIAL_FLAG7 | COMPARE_UNORDERED_FLAG5);
78674
+ var objValue = get2(object, path11);
78675
+ return objValue === undefined2 && objValue === srcValue ? hasIn2(object, path11) : baseIsEqual2(srcValue, objValue, COMPARE_PARTIAL_FLAG7 | COMPARE_UNORDERED_FLAG5);
78676
78676
  };
78677
78677
  }
78678
78678
  function baseMerge(object, source, srcIndex, customizer, stack) {
@@ -78769,23 +78769,23 @@ var require_lodash = __commonJS({
78769
78769
  });
78770
78770
  }
78771
78771
  function basePick(object, paths) {
78772
- return basePickBy(object, paths, function(value, path10) {
78773
- return hasIn2(object, path10);
78772
+ return basePickBy(object, paths, function(value, path11) {
78773
+ return hasIn2(object, path11);
78774
78774
  });
78775
78775
  }
78776
78776
  function basePickBy(object, paths, predicate) {
78777
78777
  var index2 = -1, length = paths.length, result2 = {};
78778
78778
  while (++index2 < length) {
78779
- var path10 = paths[index2], value = baseGet2(object, path10);
78780
- if (predicate(value, path10)) {
78781
- baseSet(result2, castPath2(path10, object), value);
78779
+ var path11 = paths[index2], value = baseGet2(object, path11);
78780
+ if (predicate(value, path11)) {
78781
+ baseSet(result2, castPath2(path11, object), value);
78782
78782
  }
78783
78783
  }
78784
78784
  return result2;
78785
78785
  }
78786
- function basePropertyDeep2(path10) {
78786
+ function basePropertyDeep2(path11) {
78787
78787
  return function(object) {
78788
- return baseGet2(object, path10);
78788
+ return baseGet2(object, path11);
78789
78789
  };
78790
78790
  }
78791
78791
  function basePullAll(array, values2, iteratee2, comparator) {
@@ -78859,14 +78859,14 @@ var require_lodash = __commonJS({
78859
78859
  var array = values(collection);
78860
78860
  return shuffleSelf(array, baseClamp(n, 0, array.length));
78861
78861
  }
78862
- function baseSet(object, path10, value, customizer) {
78862
+ function baseSet(object, path11, value, customizer) {
78863
78863
  if (!isObject2(object)) {
78864
78864
  return object;
78865
78865
  }
78866
- path10 = castPath2(path10, object);
78867
- var index2 = -1, length = path10.length, lastIndex = length - 1, nested = object;
78866
+ path11 = castPath2(path11, object);
78867
+ var index2 = -1, length = path11.length, lastIndex = length - 1, nested = object;
78868
78868
  while (nested != null && ++index2 < length) {
78869
- var key = toKey2(path10[index2]), newValue = value;
78869
+ var key = toKey2(path11[index2]), newValue = value;
78870
78870
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
78871
78871
  return object;
78872
78872
  }
@@ -78874,7 +78874,7 @@ var require_lodash = __commonJS({
78874
78874
  var objValue = nested[key];
78875
78875
  newValue = customizer ? customizer(objValue, key, nested) : undefined2;
78876
78876
  if (newValue === undefined2) {
78877
- newValue = isObject2(objValue) ? objValue : isIndex2(path10[index2 + 1]) ? [] : {};
78877
+ newValue = isObject2(objValue) ? objValue : isIndex2(path11[index2 + 1]) ? [] : {};
78878
78878
  }
78879
78879
  }
78880
78880
  assignValue(nested, key, newValue);
@@ -79040,13 +79040,13 @@ var require_lodash = __commonJS({
79040
79040
  }
79041
79041
  return result2;
79042
79042
  }
79043
- function baseUnset(object, path10) {
79044
- path10 = castPath2(path10, object);
79045
- object = parent(object, path10);
79046
- return object == null || delete object[toKey2(last(path10))];
79043
+ function baseUnset(object, path11) {
79044
+ path11 = castPath2(path11, object);
79045
+ object = parent(object, path11);
79046
+ return object == null || delete object[toKey2(last(path11))];
79047
79047
  }
79048
- function baseUpdate(object, path10, updater, customizer) {
79049
- return baseSet(object, path10, updater(baseGet2(object, path10)), customizer);
79048
+ function baseUpdate(object, path11, updater, customizer) {
79049
+ return baseSet(object, path11, updater(baseGet2(object, path11)), customizer);
79050
79050
  }
79051
79051
  function baseWhile(array, predicate, isDrop, fromRight) {
79052
79052
  var length = array.length, index2 = fromRight ? length : -1;
@@ -79929,11 +79929,11 @@ var require_lodash = __commonJS({
79929
79929
  var match2 = source.match(reWrapDetails);
79930
79930
  return match2 ? match2[1].split(reSplitDetails) : [];
79931
79931
  }
79932
- function hasPath2(object, path10, hasFunc) {
79933
- path10 = castPath2(path10, object);
79934
- var index2 = -1, length = path10.length, result2 = false;
79932
+ function hasPath2(object, path11, hasFunc) {
79933
+ path11 = castPath2(path11, object);
79934
+ var index2 = -1, length = path11.length, result2 = false;
79935
79935
  while (++index2 < length) {
79936
- var key = toKey2(path10[index2]);
79936
+ var key = toKey2(path11[index2]);
79937
79937
  if (!(result2 = object != null && hasFunc(object, key))) {
79938
79938
  break;
79939
79939
  }
@@ -80135,8 +80135,8 @@ var require_lodash = __commonJS({
80135
80135
  return apply(func, this, otherArgs);
80136
80136
  };
80137
80137
  }
80138
- function parent(object, path10) {
80139
- return path10.length < 2 ? object : baseGet2(object, baseSlice2(path10, 0, -1));
80138
+ function parent(object, path11) {
80139
+ return path11.length < 2 ? object : baseGet2(object, baseSlice2(path11, 0, -1));
80140
80140
  }
80141
80141
  function reorder(array, indexes) {
80142
80142
  var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
@@ -80771,10 +80771,10 @@ var require_lodash = __commonJS({
80771
80771
  }
80772
80772
  return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
80773
80773
  }
80774
- var invokeMap = baseRest(function(collection, path10, args) {
80775
- var index2 = -1, isFunc = typeof path10 == "function", result2 = isArrayLike2(collection) ? Array2(collection.length) : [];
80774
+ var invokeMap = baseRest(function(collection, path11, args) {
80775
+ var index2 = -1, isFunc = typeof path11 == "function", result2 = isArrayLike2(collection) ? Array2(collection.length) : [];
80776
80776
  baseEach(collection, function(value) {
80777
- result2[++index2] = isFunc ? apply(path10, value, args) : baseInvoke(value, path10, args);
80777
+ result2[++index2] = isFunc ? apply(path11, value, args) : baseInvoke(value, path11, args);
80778
80778
  });
80779
80779
  return result2;
80780
80780
  });
@@ -81426,15 +81426,15 @@ var require_lodash = __commonJS({
81426
81426
  function functionsIn(object) {
81427
81427
  return object == null ? [] : baseFunctions(object, keysIn(object));
81428
81428
  }
81429
- function get2(object, path10, defaultValue) {
81430
- var result2 = object == null ? undefined2 : baseGet2(object, path10);
81429
+ function get2(object, path11, defaultValue) {
81430
+ var result2 = object == null ? undefined2 : baseGet2(object, path11);
81431
81431
  return result2 === undefined2 ? defaultValue : result2;
81432
81432
  }
81433
- function has2(object, path10) {
81434
- return object != null && hasPath2(object, path10, baseHas);
81433
+ function has2(object, path11) {
81434
+ return object != null && hasPath2(object, path11, baseHas);
81435
81435
  }
81436
- function hasIn2(object, path10) {
81437
- return object != null && hasPath2(object, path10, baseHasIn2);
81436
+ function hasIn2(object, path11) {
81437
+ return object != null && hasPath2(object, path11, baseHasIn2);
81438
81438
  }
81439
81439
  var invert2 = createInverter(function(result2, value, key) {
81440
81440
  if (value != null && typeof value.toString != "function") {
@@ -81487,10 +81487,10 @@ var require_lodash = __commonJS({
81487
81487
  return result2;
81488
81488
  }
81489
81489
  var isDeep = false;
81490
- paths = arrayMap2(paths, function(path10) {
81491
- path10 = castPath2(path10, object);
81492
- isDeep || (isDeep = path10.length > 1);
81493
- return path10;
81490
+ paths = arrayMap2(paths, function(path11) {
81491
+ path11 = castPath2(path11, object);
81492
+ isDeep || (isDeep = path11.length > 1);
81493
+ return path11;
81494
81494
  });
81495
81495
  copyObject(object, getAllKeysIn(object), result2);
81496
81496
  if (isDeep) {
@@ -81516,19 +81516,19 @@ var require_lodash = __commonJS({
81516
81516
  return [prop];
81517
81517
  });
81518
81518
  predicate = getIteratee(predicate);
81519
- return basePickBy(object, props, function(value, path10) {
81520
- return predicate(value, path10[0]);
81519
+ return basePickBy(object, props, function(value, path11) {
81520
+ return predicate(value, path11[0]);
81521
81521
  });
81522
81522
  }
81523
- function result(object, path10, defaultValue) {
81524
- path10 = castPath2(path10, object);
81525
- var index2 = -1, length = path10.length;
81523
+ function result(object, path11, defaultValue) {
81524
+ path11 = castPath2(path11, object);
81525
+ var index2 = -1, length = path11.length;
81526
81526
  if (!length) {
81527
81527
  length = 1;
81528
81528
  object = undefined2;
81529
81529
  }
81530
81530
  while (++index2 < length) {
81531
- var value = object == null ? undefined2 : object[toKey2(path10[index2])];
81531
+ var value = object == null ? undefined2 : object[toKey2(path11[index2])];
81532
81532
  if (value === undefined2) {
81533
81533
  index2 = length;
81534
81534
  value = defaultValue;
@@ -81537,12 +81537,12 @@ var require_lodash = __commonJS({
81537
81537
  }
81538
81538
  return object;
81539
81539
  }
81540
- function set(object, path10, value) {
81541
- return object == null ? object : baseSet(object, path10, value);
81540
+ function set(object, path11, value) {
81541
+ return object == null ? object : baseSet(object, path11, value);
81542
81542
  }
81543
- function setWith(object, path10, value, customizer) {
81543
+ function setWith(object, path11, value, customizer) {
81544
81544
  customizer = typeof customizer == "function" ? customizer : undefined2;
81545
- return object == null ? object : baseSet(object, path10, value, customizer);
81545
+ return object == null ? object : baseSet(object, path11, value, customizer);
81546
81546
  }
81547
81547
  var toPairs = createToPairs(keys2);
81548
81548
  var toPairsIn = createToPairs(keysIn);
@@ -81564,15 +81564,15 @@ var require_lodash = __commonJS({
81564
81564
  });
81565
81565
  return accumulator;
81566
81566
  }
81567
- function unset(object, path10) {
81568
- return object == null ? true : baseUnset(object, path10);
81567
+ function unset(object, path11) {
81568
+ return object == null ? true : baseUnset(object, path11);
81569
81569
  }
81570
- function update(object, path10, updater) {
81571
- return object == null ? object : baseUpdate(object, path10, castFunction(updater));
81570
+ function update(object, path11, updater) {
81571
+ return object == null ? object : baseUpdate(object, path11, castFunction(updater));
81572
81572
  }
81573
- function updateWith(object, path10, updater, customizer) {
81573
+ function updateWith(object, path11, updater, customizer) {
81574
81574
  customizer = typeof customizer == "function" ? customizer : undefined2;
81575
- return object == null ? object : baseUpdate(object, path10, castFunction(updater), customizer);
81575
+ return object == null ? object : baseUpdate(object, path11, castFunction(updater), customizer);
81576
81576
  }
81577
81577
  function values(object) {
81578
81578
  return object == null ? [] : baseValues(object, keys2(object));
@@ -81953,17 +81953,17 @@ var require_lodash = __commonJS({
81953
81953
  function matches(source) {
81954
81954
  return baseMatches2(baseClone(source, CLONE_DEEP_FLAG));
81955
81955
  }
81956
- function matchesProperty(path10, srcValue) {
81957
- return baseMatchesProperty2(path10, baseClone(srcValue, CLONE_DEEP_FLAG));
81956
+ function matchesProperty(path11, srcValue) {
81957
+ return baseMatchesProperty2(path11, baseClone(srcValue, CLONE_DEEP_FLAG));
81958
81958
  }
81959
- var method = baseRest(function(path10, args) {
81959
+ var method = baseRest(function(path11, args) {
81960
81960
  return function(object) {
81961
- return baseInvoke(object, path10, args);
81961
+ return baseInvoke(object, path11, args);
81962
81962
  };
81963
81963
  });
81964
81964
  var methodOf = baseRest(function(object, args) {
81965
- return function(path10) {
81966
- return baseInvoke(object, path10, args);
81965
+ return function(path11) {
81966
+ return baseInvoke(object, path11, args);
81967
81967
  };
81968
81968
  });
81969
81969
  function mixin(object, source, options) {
@@ -82010,12 +82010,12 @@ var require_lodash = __commonJS({
82010
82010
  var over = createOver(arrayMap2);
82011
82011
  var overEvery = createOver(arrayEvery);
82012
82012
  var overSome = createOver(arraySome2);
82013
- function property2(path10) {
82014
- return isKey2(path10) ? baseProperty2(toKey2(path10)) : basePropertyDeep2(path10);
82013
+ function property2(path11) {
82014
+ return isKey2(path11) ? baseProperty2(toKey2(path11)) : basePropertyDeep2(path11);
82015
82015
  }
82016
82016
  function propertyOf(object) {
82017
- return function(path10) {
82018
- return object == null ? undefined2 : baseGet2(object, path10);
82017
+ return function(path11) {
82018
+ return object == null ? undefined2 : baseGet2(object, path11);
82019
82019
  };
82020
82020
  }
82021
82021
  var range2 = createRange();
@@ -82468,12 +82468,12 @@ var require_lodash = __commonJS({
82468
82468
  LazyWrapper.prototype.findLast = function(predicate) {
82469
82469
  return this.reverse().find(predicate);
82470
82470
  };
82471
- LazyWrapper.prototype.invokeMap = baseRest(function(path10, args) {
82472
- if (typeof path10 == "function") {
82471
+ LazyWrapper.prototype.invokeMap = baseRest(function(path11, args) {
82472
+ if (typeof path11 == "function") {
82473
82473
  return new LazyWrapper(this);
82474
82474
  }
82475
82475
  return this.map(function(value) {
82476
- return baseInvoke(value, path10, args);
82476
+ return baseInvoke(value, path11, args);
82477
82477
  });
82478
82478
  });
82479
82479
  LazyWrapper.prototype.reject = function(predicate) {
@@ -103869,12 +103869,12 @@ var require_abstract_coder2 = __commonJS({
103869
103869
  exports2.Result = Result;
103870
103870
  function checkResultErrors(result) {
103871
103871
  const errors = [];
103872
- const checkErrors = function(path10, object) {
103872
+ const checkErrors = function(path11, object) {
103873
103873
  if (!Array.isArray(object)) {
103874
103874
  return;
103875
103875
  }
103876
103876
  for (let key in object) {
103877
- const childPath = path10.slice();
103877
+ const childPath = path11.slice();
103878
103878
  childPath.push(key);
103879
103879
  try {
103880
103880
  checkErrors(childPath, object[key]);
@@ -127314,9 +127314,9 @@ var require_provider_ipcsocket = __commonJS({
127314
127314
  get socket() {
127315
127315
  return this.#socket;
127316
127316
  }
127317
- constructor(path10, network, options) {
127317
+ constructor(path11, network, options) {
127318
127318
  super(network, options);
127319
- this.#socket = (0, net_1.connect)(path10);
127319
+ this.#socket = (0, net_1.connect)(path11);
127320
127320
  this.socket.on("ready", async () => {
127321
127321
  try {
127322
127322
  await this._start();
@@ -128627,11 +128627,11 @@ var require_utils10 = __commonJS({
128627
128627
  function spelunk(object, _path) {
128628
128628
  const match2 = _path.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);
128629
128629
  (0, index_js_1.assertArgument)(match2 != null, "invalid path", "path", _path);
128630
- const path10 = match2[1];
128630
+ const path11 = match2[1];
128631
128631
  const type = match2[3];
128632
128632
  const reqd = match2[4] === "!";
128633
128633
  let cur = object;
128634
- for (const comp of path10.toLowerCase().split(".")) {
128634
+ for (const comp of path11.toLowerCase().split(".")) {
128635
128635
  if (Array.isArray(cur)) {
128636
128636
  if (!comp.match(/^[0-9]+$/)) {
128637
128637
  break;
@@ -128653,7 +128653,7 @@ var require_utils10 = __commonJS({
128653
128653
  break;
128654
128654
  }
128655
128655
  }
128656
- (0, index_js_1.assertArgument)(!reqd || cur != null, "missing required value", "path", path10);
128656
+ (0, index_js_1.assertArgument)(!reqd || cur != null, "missing required value", "path", path11);
128657
128657
  if (type && cur != null) {
128658
128658
  if (type === "int") {
128659
128659
  if (typeof cur === "string" && cur.match(/^-?[0-9]+$/)) {
@@ -128678,7 +128678,7 @@ var require_utils10 = __commonJS({
128678
128678
  if (type === typeof cur) {
128679
128679
  return cur;
128680
128680
  }
128681
- (0, index_js_1.assertArgument)(false, `wrong type found for ${type} `, "path", path10);
128681
+ (0, index_js_1.assertArgument)(false, `wrong type found for ${type} `, "path", path11);
128682
128682
  }
128683
128683
  return cur;
128684
128684
  }
@@ -128876,7 +128876,7 @@ var require_json_keystore = __commonJS({
128876
128876
  };
128877
128877
  if (account.mnemonic) {
128878
128878
  const client = options.client != null ? options.client : `ethers/${_version_js_1.version}`;
128879
- const path10 = account.mnemonic.path || defaultPath;
128879
+ const path11 = account.mnemonic.path || defaultPath;
128880
128880
  const locale = account.mnemonic.locale || "en";
128881
128881
  const mnemonicKey = key.slice(32, 64);
128882
128882
  const entropy = (0, index_js_4.getBytes)(account.mnemonic.entropy, "account.mnemonic.entropy");
@@ -128889,7 +128889,7 @@ var require_json_keystore = __commonJS({
128889
128889
  data["x-ethers"] = {
128890
128890
  client,
128891
128891
  gethFilename,
128892
- path: path10,
128892
+ path: path11,
128893
128893
  locale,
128894
128894
  mnemonicCounter: (0, index_js_4.hexlify)(mnemonicIv).substring(2),
128895
128895
  mnemonicCiphertext: (0, index_js_4.hexlify)(mnemonicCiphertext).substring(2),
@@ -128974,11 +128974,11 @@ var require_hdwallet = __commonJS({
128974
128974
  const I = (0, index_js_4.getBytes)((0, index_js_1.computeHmac)("sha512", chainCode, data));
128975
128975
  return { IL: I.slice(0, 32), IR: I.slice(32) };
128976
128976
  }
128977
- function derivePath(node, path10) {
128978
- const components = path10.split("/");
128979
- (0, index_js_4.assertArgument)(components.length > 0, "invalid path", "path", path10);
128977
+ function derivePath(node, path11) {
128978
+ const components = path11.split("/");
128979
+ (0, index_js_4.assertArgument)(components.length > 0, "invalid path", "path", path11);
128980
128980
  if (components[0] === "m") {
128981
- (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", path10);
128981
+ (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", path11);
128982
128982
  components.shift();
128983
128983
  }
128984
128984
  let result = node;
@@ -129048,7 +129048,7 @@ var require_hdwallet = __commonJS({
129048
129048
  /**
129049
129049
  * @private
129050
129050
  */
129051
- constructor(guard, signingKey, parentFingerprint, chainCode, path10, index2, depth, mnemonic, provider) {
129051
+ constructor(guard, signingKey, parentFingerprint, chainCode, path11, index2, depth, mnemonic, provider) {
129052
129052
  super(signingKey, provider);
129053
129053
  (0, index_js_4.assertPrivate)(guard, _guard, "HDNodeWallet");
129054
129054
  (0, index_js_4.defineProperties)(this, { publicKey: signingKey.compressedPublicKey });
@@ -129057,7 +129057,7 @@ var require_hdwallet = __commonJS({
129057
129057
  parentFingerprint,
129058
129058
  fingerprint,
129059
129059
  chainCode,
129060
- path: path10,
129060
+ path: path11,
129061
129061
  index: index2,
129062
129062
  depth
129063
129063
  });
@@ -129141,22 +129141,22 @@ var require_hdwallet = __commonJS({
129141
129141
  deriveChild(_index) {
129142
129142
  const index2 = (0, index_js_4.getNumber)(_index, "index");
129143
129143
  (0, index_js_4.assertArgument)(index2 <= 4294967295, "invalid index", "index", index2);
129144
- let path10 = this.path;
129145
- if (path10) {
129146
- path10 += "/" + (index2 & ~HardenedBit);
129144
+ let path11 = this.path;
129145
+ if (path11) {
129146
+ path11 += "/" + (index2 & ~HardenedBit);
129147
129147
  if (index2 & HardenedBit) {
129148
- path10 += "'";
129148
+ path11 += "'";
129149
129149
  }
129150
129150
  }
129151
129151
  const { IR, IL } = ser_I(index2, this.chainCode, this.publicKey, this.privateKey);
129152
129152
  const ki = new index_js_1.SigningKey((0, index_js_4.toBeHex)(((0, index_js_4.toBigInt)(IL) + BigInt(this.privateKey)) % N, 32));
129153
- return new _HDNodeWallet(_guard, ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path10, index2, this.depth + 1, this.mnemonic, this.provider);
129153
+ return new _HDNodeWallet(_guard, ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path11, index2, this.depth + 1, this.mnemonic, this.provider);
129154
129154
  }
129155
129155
  /**
129156
129156
  * Return the HDNode for %%path%% from this node.
129157
129157
  */
129158
- derivePath(path10) {
129159
- return derivePath(this, path10);
129158
+ derivePath(path11) {
129159
+ return derivePath(this, path11);
129160
129160
  }
129161
129161
  static #fromSeed(_seed, mnemonic) {
129162
129162
  (0, index_js_4.assertArgument)((0, index_js_4.isBytesLike)(_seed), "invalid seed", "seed", "[REDACTED]");
@@ -129201,43 +129201,43 @@ var require_hdwallet = __commonJS({
129201
129201
  /**
129202
129202
  * Creates a new random HDNode.
129203
129203
  */
129204
- static createRandom(password, path10, wordlist) {
129204
+ static createRandom(password, path11, wordlist) {
129205
129205
  if (password == null) {
129206
129206
  password = "";
129207
129207
  }
129208
- if (path10 == null) {
129209
- path10 = exports2.defaultPath;
129208
+ if (path11 == null) {
129209
+ path11 = exports2.defaultPath;
129210
129210
  }
129211
129211
  if (wordlist == null) {
129212
129212
  wordlist = lang_en_js_1.LangEn.wordlist();
129213
129213
  }
129214
129214
  const mnemonic = mnemonic_js_1.Mnemonic.fromEntropy((0, index_js_1.randomBytes)(16), password, wordlist);
129215
- return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path10);
129215
+ return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path11);
129216
129216
  }
129217
129217
  /**
129218
129218
  * Create an HD Node from %%mnemonic%%.
129219
129219
  */
129220
- static fromMnemonic(mnemonic, path10) {
129221
- if (!path10) {
129222
- path10 = exports2.defaultPath;
129220
+ static fromMnemonic(mnemonic, path11) {
129221
+ if (!path11) {
129222
+ path11 = exports2.defaultPath;
129223
129223
  }
129224
- return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path10);
129224
+ return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path11);
129225
129225
  }
129226
129226
  /**
129227
129227
  * Creates an HD Node from a mnemonic %%phrase%%.
129228
129228
  */
129229
- static fromPhrase(phrase, password, path10, wordlist) {
129229
+ static fromPhrase(phrase, password, path11, wordlist) {
129230
129230
  if (password == null) {
129231
129231
  password = "";
129232
129232
  }
129233
- if (path10 == null) {
129234
- path10 = exports2.defaultPath;
129233
+ if (path11 == null) {
129234
+ path11 = exports2.defaultPath;
129235
129235
  }
129236
129236
  if (wordlist == null) {
129237
129237
  wordlist = lang_en_js_1.LangEn.wordlist();
129238
129238
  }
129239
129239
  const mnemonic = mnemonic_js_1.Mnemonic.fromPhrase(phrase, password, wordlist);
129240
- return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path10);
129240
+ return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path11);
129241
129241
  }
129242
129242
  /**
129243
129243
  * Creates an HD Node from a %%seed%%.
@@ -129290,7 +129290,7 @@ var require_hdwallet = __commonJS({
129290
129290
  /**
129291
129291
  * @private
129292
129292
  */
129293
- constructor(guard, address, publicKey, parentFingerprint, chainCode, path10, index2, depth, provider) {
129293
+ constructor(guard, address, publicKey, parentFingerprint, chainCode, path11, index2, depth, provider) {
129294
129294
  super(address, provider);
129295
129295
  (0, index_js_4.assertPrivate)(guard, _guard, "HDNodeVoidWallet");
129296
129296
  (0, index_js_4.defineProperties)(this, { publicKey });
@@ -129300,7 +129300,7 @@ var require_hdwallet = __commonJS({
129300
129300
  fingerprint,
129301
129301
  parentFingerprint,
129302
129302
  chainCode,
129303
- path: path10,
129303
+ path: path11,
129304
129304
  index: index2,
129305
129305
  depth
129306
129306
  });
@@ -129338,23 +129338,23 @@ var require_hdwallet = __commonJS({
129338
129338
  deriveChild(_index) {
129339
129339
  const index2 = (0, index_js_4.getNumber)(_index, "index");
129340
129340
  (0, index_js_4.assertArgument)(index2 <= 4294967295, "invalid index", "index", index2);
129341
- let path10 = this.path;
129342
- if (path10) {
129343
- path10 += "/" + (index2 & ~HardenedBit);
129341
+ let path11 = this.path;
129342
+ if (path11) {
129343
+ path11 += "/" + (index2 & ~HardenedBit);
129344
129344
  if (index2 & HardenedBit) {
129345
- path10 += "'";
129345
+ path11 += "'";
129346
129346
  }
129347
129347
  }
129348
129348
  const { IR, IL } = ser_I(index2, this.chainCode, this.publicKey, null);
129349
129349
  const Ki = index_js_1.SigningKey.addPoints(IL, this.publicKey, true);
129350
129350
  const address = (0, index_js_3.computeAddress)(Ki);
129351
- return new _HDNodeVoidWallet(_guard, address, Ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path10, index2, this.depth + 1, this.provider);
129351
+ return new _HDNodeVoidWallet(_guard, address, Ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path11, index2, this.depth + 1, this.provider);
129352
129352
  }
129353
129353
  /**
129354
129354
  * Return the signer for %%path%% from this node.
129355
129355
  */
129356
- derivePath(path10) {
129357
- return derivePath(this, path10);
129356
+ derivePath(path11) {
129357
+ return derivePath(this, path11);
129358
129358
  }
129359
129359
  };
129360
129360
  exports2.HDNodeVoidWallet = HDNodeVoidWallet;
@@ -136635,8 +136635,8 @@ var require_req = __commonJS({
136635
136635
  if (req.originalUrl) {
136636
136636
  _req.url = req.originalUrl;
136637
136637
  } else {
136638
- const path10 = req.path;
136639
- _req.url = typeof path10 === "string" ? path10 : req.url ? req.url.path || req.url : void 0;
136638
+ const path11 = req.path;
136639
+ _req.url = typeof path11 === "string" ? path11 : req.url ? req.url.path || req.url : void 0;
136640
136640
  }
136641
136641
  if (req.query) {
136642
136642
  _req.query = req.query;
@@ -136825,17 +136825,17 @@ var require_parse = __commonJS({
136825
136825
  const wildcards = [];
136826
136826
  var wcLen = 0;
136827
136827
  const secret = paths.reduce(function(o, strPath, ix) {
136828
- var path10 = strPath.match(rx).map((p) => p.replace(/'|"|`/g, ""));
136828
+ var path11 = strPath.match(rx).map((p) => p.replace(/'|"|`/g, ""));
136829
136829
  const leadingBracket = strPath[0] === "[";
136830
- path10 = path10.map((p) => {
136830
+ path11 = path11.map((p) => {
136831
136831
  if (p[0] === "[") return p.substr(1, p.length - 2);
136832
136832
  else return p;
136833
136833
  });
136834
- const star = path10.indexOf("*");
136834
+ const star = path11.indexOf("*");
136835
136835
  if (star > -1) {
136836
- const before = path10.slice(0, star);
136836
+ const before = path11.slice(0, star);
136837
136837
  const beforeStr = before.join(".");
136838
- const after = path10.slice(star + 1, path10.length);
136838
+ const after = path11.slice(star + 1, path11.length);
136839
136839
  const nested = after.length > 0;
136840
136840
  wcLen++;
136841
136841
  wildcards.push({
@@ -136846,7 +136846,7 @@ var require_parse = __commonJS({
136846
136846
  });
136847
136847
  } else {
136848
136848
  o[strPath] = {
136849
- path: path10,
136849
+ path: path11,
136850
136850
  val: void 0,
136851
136851
  precensored: false,
136852
136852
  circle: "",
@@ -136892,20 +136892,20 @@ var require_redactor = __commonJS({
136892
136892
  return redact;
136893
136893
  }
136894
136894
  function redactTmpl(secret, isCensorFct, censorFctTakesPath) {
136895
- return Object.keys(secret).map((path10) => {
136896
- const { escPath, leadingBracket, path: arrPath } = secret[path10];
136895
+ return Object.keys(secret).map((path11) => {
136896
+ const { escPath, leadingBracket, path: arrPath } = secret[path11];
136897
136897
  const skip = leadingBracket ? 1 : 0;
136898
136898
  const delim = leadingBracket ? "" : ".";
136899
136899
  const hops = [];
136900
136900
  var match2;
136901
- while ((match2 = rx.exec(path10)) !== null) {
136901
+ while ((match2 = rx.exec(path11)) !== null) {
136902
136902
  const [, ix] = match2;
136903
136903
  const { index: index2, input } = match2;
136904
136904
  if (index2 > skip) hops.push(input.substring(0, index2 - (ix ? 0 : 1)));
136905
136905
  }
136906
136906
  var existence = hops.map((p) => `o${delim}${p}`).join(" && ");
136907
- if (existence.length === 0) existence += `o${delim}${path10} != null`;
136908
- else existence += ` && o${delim}${path10} != null`;
136907
+ if (existence.length === 0) existence += `o${delim}${path11} != null`;
136908
+ else existence += ` && o${delim}${path11} != null`;
136909
136909
  const circularDetection = `
136910
136910
  switch (true) {
136911
136911
  ${hops.reverse().map((p) => `
@@ -136918,12 +136918,12 @@ var require_redactor = __commonJS({
136918
136918
  const censorArgs = censorFctTakesPath ? `val, ${JSON.stringify(arrPath)}` : `val`;
136919
136919
  return `
136920
136920
  if (${existence}) {
136921
- const val = o${delim}${path10}
136921
+ const val = o${delim}${path11}
136922
136922
  if (val === censor) {
136923
136923
  secret[${escPath}].precensored = true
136924
136924
  } else {
136925
136925
  secret[${escPath}].val = val
136926
- o${delim}${path10} = ${isCensorFct ? `censor(${censorArgs})` : "censor"}
136926
+ o${delim}${path11} = ${isCensorFct ? `censor(${censorArgs})` : "censor"}
136927
136927
  ${circularDetection}
136928
136928
  }
136929
136929
  }
@@ -136975,13 +136975,13 @@ var require_modifiers = __commonJS({
136975
136975
  target[k] = values[i];
136976
136976
  }
136977
136977
  }
136978
- function groupRedact(o, path10, censor, isCensorFct, censorFctTakesPath) {
136979
- const target = get2(o, path10);
136978
+ function groupRedact(o, path11, censor, isCensorFct, censorFctTakesPath) {
136979
+ const target = get2(o, path11);
136980
136980
  if (target == null || typeof target === "string") return { keys: null, values: null, target, flat: true };
136981
136981
  const keys2 = Object.keys(target);
136982
136982
  const keysLength = keys2.length;
136983
- const pathLength = path10.length;
136984
- const pathWithKey = censorFctTakesPath ? [...path10] : void 0;
136983
+ const pathLength = path11.length;
136984
+ const pathWithKey = censorFctTakesPath ? [...path11] : void 0;
136985
136985
  const values = new Array(keysLength);
136986
136986
  for (var i = 0; i < keysLength; i++) {
136987
136987
  const key = keys2[i];
@@ -136999,29 +136999,29 @@ var require_modifiers = __commonJS({
136999
136999
  }
137000
137000
  function nestedRestore(instructions) {
137001
137001
  for (let i = 0; i < instructions.length; i++) {
137002
- const { target, path: path10, value } = instructions[i];
137002
+ const { target, path: path11, value } = instructions[i];
137003
137003
  let current = target;
137004
- for (let i2 = path10.length - 1; i2 > 0; i2--) {
137005
- current = current[path10[i2]];
137004
+ for (let i2 = path11.length - 1; i2 > 0; i2--) {
137005
+ current = current[path11[i2]];
137006
137006
  }
137007
- current[path10[0]] = value;
137007
+ current[path11[0]] = value;
137008
137008
  }
137009
137009
  }
137010
- function nestedRedact(store, o, path10, ns, censor, isCensorFct, censorFctTakesPath) {
137011
- const target = get2(o, path10);
137010
+ function nestedRedact(store, o, path11, ns, censor, isCensorFct, censorFctTakesPath) {
137011
+ const target = get2(o, path11);
137012
137012
  if (target == null) return;
137013
137013
  const keys2 = Object.keys(target);
137014
137014
  const keysLength = keys2.length;
137015
137015
  for (var i = 0; i < keysLength; i++) {
137016
137016
  const key = keys2[i];
137017
- specialSet(store, target, key, path10, ns, censor, isCensorFct, censorFctTakesPath);
137017
+ specialSet(store, target, key, path11, ns, censor, isCensorFct, censorFctTakesPath);
137018
137018
  }
137019
137019
  return store;
137020
137020
  }
137021
137021
  function has2(obj, prop) {
137022
137022
  return obj !== void 0 && obj !== null ? "hasOwn" in Object ? Object.hasOwn(obj, prop) : Object.prototype.hasOwnProperty.call(obj, prop) : false;
137023
137023
  }
137024
- function specialSet(store, o, k, path10, afterPath, censor, isCensorFct, censorFctTakesPath) {
137024
+ function specialSet(store, o, k, path11, afterPath, censor, isCensorFct, censorFctTakesPath) {
137025
137025
  const afterPathLen = afterPath.length;
137026
137026
  const lastPathIndex = afterPathLen - 1;
137027
137027
  const originalKey = k;
@@ -137064,7 +137064,7 @@ var require_modifiers = __commonJS({
137064
137064
  if (consecutive) {
137065
137065
  redactPathCurrent = node(redactPathCurrent, wck, depth);
137066
137066
  level = i;
137067
- ov = iterateNthLevel(wcov, level - 1, k, path10, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, o[originalKey], depth + 1);
137067
+ ov = iterateNthLevel(wcov, level - 1, k, path11, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, o[originalKey], depth + 1);
137068
137068
  } else {
137069
137069
  if (kIsWc || typeof wcov === "object" && wcov !== null && k in wcov) {
137070
137070
  if (kIsWc) {
@@ -137072,7 +137072,7 @@ var require_modifiers = __commonJS({
137072
137072
  } else {
137073
137073
  ov = wcov[k];
137074
137074
  }
137075
- nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...path10, originalKey, ...afterPath]) : censor(ov) : censor;
137075
+ nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...path11, originalKey, ...afterPath]) : censor(ov) : censor;
137076
137076
  if (kIsWc) {
137077
137077
  const rv = restoreInstr(node(redactPathCurrent, wck, depth), ov, o[originalKey]);
137078
137078
  store.push(rv);
@@ -137095,7 +137095,7 @@ var require_modifiers = __commonJS({
137095
137095
  } else {
137096
137096
  ov = n[k];
137097
137097
  redactPathCurrent = node(redactPathCurrent, k, depth);
137098
- nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...path10, originalKey, ...afterPath]) : censor(ov) : censor;
137098
+ nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...path11, originalKey, ...afterPath]) : censor(ov) : censor;
137099
137099
  if (has2(n, k) && nv === ov || nv === void 0 && censor !== void 0) {
137100
137100
  } else {
137101
137101
  const rv = restoreInstr(redactPathCurrent, ov, o[originalKey]);
@@ -137118,7 +137118,7 @@ var require_modifiers = __commonJS({
137118
137118
  }
137119
137119
  return n;
137120
137120
  }
137121
- function iterateNthLevel(wcov, level, k, path10, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, parent, depth) {
137121
+ function iterateNthLevel(wcov, level, k, path11, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, parent, depth) {
137122
137122
  if (level === 0) {
137123
137123
  if (kIsWc || typeof wcov === "object" && wcov !== null && k in wcov) {
137124
137124
  if (kIsWc) {
@@ -137126,7 +137126,7 @@ var require_modifiers = __commonJS({
137126
137126
  } else {
137127
137127
  ov = wcov[k];
137128
137128
  }
137129
- nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...path10, originalKey, ...afterPath]) : censor(ov) : censor;
137129
+ nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...path11, originalKey, ...afterPath]) : censor(ov) : censor;
137130
137130
  if (kIsWc) {
137131
137131
  const rv = restoreInstr(redactPathCurrent, ov, parent);
137132
137132
  store.push(rv);
@@ -137145,7 +137145,7 @@ var require_modifiers = __commonJS({
137145
137145
  for (const key in wcov) {
137146
137146
  if (typeof wcov[key] === "object") {
137147
137147
  redactPathCurrent = node(redactPathCurrent, key, depth);
137148
- iterateNthLevel(wcov[key], level - 1, k, path10, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, parent, depth + 1);
137148
+ iterateNthLevel(wcov[key], level - 1, k, path11, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, parent, depth + 1);
137149
137149
  }
137150
137150
  }
137151
137151
  }
@@ -137167,12 +137167,12 @@ var require_modifiers = __commonJS({
137167
137167
  }
137168
137168
  function restoreInstr(node2, value, target) {
137169
137169
  let current = node2;
137170
- const path10 = [];
137170
+ const path11 = [];
137171
137171
  do {
137172
- path10.push(current.key);
137172
+ path11.push(current.key);
137173
137173
  current = current.parent;
137174
137174
  } while (current.parent != null);
137175
- return { path: path10, value, target };
137175
+ return { path: path11, value, target };
137176
137176
  }
137177
137177
  }
137178
137178
  });
@@ -137202,10 +137202,10 @@ var require_restorer = __commonJS({
137202
137202
  };
137203
137203
  }
137204
137204
  function resetTmpl(secret, paths) {
137205
- return paths.map((path10) => {
137206
- const { circle, escPath, leadingBracket } = secret[path10];
137205
+ return paths.map((path11) => {
137206
+ const { circle, escPath, leadingBracket } = secret[path11];
137207
137207
  const delim = leadingBracket ? "" : ".";
137208
- const reset2 = circle ? `o.${circle} = secret[${escPath}].val` : `o${delim}${path10} = secret[${escPath}].val`;
137208
+ const reset2 = circle ? `o.${circle} = secret[${escPath}].val` : `o${delim}${path11} = secret[${escPath}].val`;
137209
137209
  const clear = `secret[${escPath}].val = undefined`;
137210
137210
  return `
137211
137211
  if (secret[${escPath}].val !== undefined) {
@@ -137437,8 +137437,8 @@ var require_redaction = __commonJS({
137437
137437
  if (shape[k] === null) {
137438
137438
  o[k] = (value) => topCensor(value, [k]);
137439
137439
  } else {
137440
- const wrappedCensor = typeof censor === "function" ? (value, path10) => {
137441
- return censor(value, [k, ...path10]);
137440
+ const wrappedCensor = typeof censor === "function" ? (value, path11) => {
137441
+ return censor(value, [k, ...path11]);
137442
137442
  } : censor;
137443
137443
  o[k] = fastRedact({
137444
137444
  paths: shape[k],
@@ -137641,7 +137641,7 @@ var require_sonic_boom = __commonJS({
137641
137641
  var fs3 = __require("fs");
137642
137642
  var EventEmitter = __require("events");
137643
137643
  var inherits = __require("util").inherits;
137644
- var path10 = __require("path");
137644
+ var path11 = __require("path");
137645
137645
  var sleep2 = require_atomic_sleep();
137646
137646
  var assert3 = __require("assert");
137647
137647
  var BUSY_WRITE_TIMEOUT = 100;
@@ -137695,7 +137695,7 @@ var require_sonic_boom = __commonJS({
137695
137695
  const mode = sonic2.mode;
137696
137696
  if (sonic2.sync) {
137697
137697
  try {
137698
- if (sonic2.mkdir) fs3.mkdirSync(path10.dirname(file), { recursive: true });
137698
+ if (sonic2.mkdir) fs3.mkdirSync(path11.dirname(file), { recursive: true });
137699
137699
  const fd = fs3.openSync(file, flags, mode);
137700
137700
  fileOpened(null, fd);
137701
137701
  } catch (err) {
@@ -137703,7 +137703,7 @@ var require_sonic_boom = __commonJS({
137703
137703
  throw err;
137704
137704
  }
137705
137705
  } else if (sonic2.mkdir) {
137706
- fs3.mkdir(path10.dirname(file), { recursive: true }, (err) => {
137706
+ fs3.mkdir(path11.dirname(file), { recursive: true }, (err) => {
137707
137707
  if (err) return fileOpened(err);
137708
137708
  fs3.open(file, flags, mode, fileOpened);
137709
137709
  });
@@ -137715,7 +137715,7 @@ var require_sonic_boom = __commonJS({
137715
137715
  if (!(this instanceof SonicBoom)) {
137716
137716
  return new SonicBoom(opts);
137717
137717
  }
137718
- let { fd, dest, minLength, maxLength, maxWrite, periodicFlush, sync, append = true, mkdir: mkdir3, retryEAGAIN, fsync, contentMode, mode } = opts || {};
137718
+ let { fd, dest, minLength, maxLength, maxWrite, periodicFlush, sync, append = true, mkdir: mkdir4, retryEAGAIN, fsync, contentMode, mode } = opts || {};
137719
137719
  fd = fd || dest;
137720
137720
  this._len = 0;
137721
137721
  this.fd = -1;
@@ -137740,7 +137740,7 @@ var require_sonic_boom = __commonJS({
137740
137740
  this.append = append || false;
137741
137741
  this.mode = mode;
137742
137742
  this.retryEAGAIN = retryEAGAIN || (() => true);
137743
- this.mkdir = mkdir3 || false;
137743
+ this.mkdir = mkdir4 || false;
137744
137744
  let fsWriteSync;
137745
137745
  let fsWrite;
137746
137746
  if (contentMode === kContentModeBuffer) {
@@ -145136,11 +145136,11 @@ var require_soljson = __commonJS({
145136
145136
  var ENVIRONMENT_IS_WORKER = typeof importScripts == "function";
145137
145137
  var ENVIRONMENT_IS_NODE = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string";
145138
145138
  var scriptDirectory = "";
145139
- function locateFile(path10) {
145139
+ function locateFile(path11) {
145140
145140
  if (Module["locateFile"]) {
145141
- return Module["locateFile"](path10, scriptDirectory);
145141
+ return Module["locateFile"](path11, scriptDirectory);
145142
145142
  }
145143
- return scriptDirectory + path10;
145143
+ return scriptDirectory + path11;
145144
145144
  }
145145
145145
  var read_;
145146
145146
  var readAsync;
@@ -145931,7 +145931,7 @@ var require_soljson = __commonJS({
145931
145931
  var ret = UTF8ToString(ptr);
145932
145932
  return ret;
145933
145933
  } };
145934
- function ___syscall_faccessat(dirfd, path10, amode, flags) {
145934
+ function ___syscall_faccessat(dirfd, path11, amode, flags) {
145935
145935
  }
145936
145936
  function ___syscall_fcntl64(fd, cmd, varargs) {
145937
145937
  SYSCALLS.varargs = varargs;
@@ -145941,10 +145941,10 @@ var require_soljson = __commonJS({
145941
145941
  SYSCALLS.varargs = varargs;
145942
145942
  return 0;
145943
145943
  }
145944
- function ___syscall_openat(dirfd, path10, flags, varargs) {
145944
+ function ___syscall_openat(dirfd, path11, flags, varargs) {
145945
145945
  SYSCALLS.varargs = varargs;
145946
145946
  }
145947
- function ___syscall_stat64(path10, buf) {
145947
+ function ___syscall_stat64(path11, buf) {
145948
145948
  }
145949
145949
  function __emscripten_date_now() {
145950
145950
  return Date.now();
@@ -147880,9 +147880,9 @@ var require_filesystem = __commonJS({
147880
147880
  "use strict";
147881
147881
  var fs3 = __require("fs");
147882
147882
  var LDD_PATH = "/usr/bin/ldd";
147883
- var readFileSync = (path10) => fs3.readFileSync(path10, "utf-8");
147884
- var readFile10 = (path10) => new Promise((resolve2, reject) => {
147885
- fs3.readFile(path10, "utf-8", (err, data) => {
147883
+ var readFileSync = (path11) => fs3.readFileSync(path11, "utf-8");
147884
+ var readFile10 = (path11) => new Promise((resolve2, reject) => {
147885
+ fs3.readFile(path11, "utf-8", (err, data) => {
147886
147886
  if (err) {
147887
147887
  reject(err);
147888
147888
  } else {
@@ -148112,7 +148112,7 @@ var require_detect_libc = __commonJS({
148112
148112
  var require_node_gyp_build_optional_packages = __commonJS({
148113
148113
  "../../node_modules/node-gyp-build-optional-packages/index.js"(exports2, module2) {
148114
148114
  var fs3 = __require("fs");
148115
- var path10 = __require("path");
148115
+ var path11 = __require("path");
148116
148116
  var url = __require("url");
148117
148117
  var vars = process.config && process.config.variables || {};
148118
148118
  var prebuildsOnly = !!process.env.PREBUILDS_ONLY;
@@ -148135,30 +148135,30 @@ var require_node_gyp_build_optional_packages = __commonJS({
148135
148135
  return __require(load.path(dir));
148136
148136
  }
148137
148137
  load.path = function(dir) {
148138
- dir = path10.resolve(dir || ".");
148138
+ dir = path11.resolve(dir || ".");
148139
148139
  var packageName = "";
148140
148140
  try {
148141
148141
  if (typeof __webpack_require__ === "function")
148142
- packageName = __non_webpack_require__(path10.join(dir, "package.json")).name;
148142
+ packageName = __non_webpack_require__(path11.join(dir, "package.json")).name;
148143
148143
  else
148144
- packageName = __require(path10.join(dir, "package.json")).name;
148144
+ packageName = __require(path11.join(dir, "package.json")).name;
148145
148145
  var varName = packageName.toUpperCase().replace(/-/g, "_") + "_PREBUILD";
148146
148146
  if (process.env[varName]) dir = process.env[varName];
148147
148147
  } catch (err) {
148148
148148
  }
148149
148149
  if (!prebuildsOnly) {
148150
- var release = getFirst(path10.join(dir, "build/Release"), matchBuild);
148150
+ var release = getFirst(path11.join(dir, "build/Release"), matchBuild);
148151
148151
  if (release) return release;
148152
- var debug = getFirst(path10.join(dir, "build/Debug"), matchBuild);
148152
+ var debug = getFirst(path11.join(dir, "build/Debug"), matchBuild);
148153
148153
  if (debug) return debug;
148154
148154
  }
148155
148155
  var prebuild = resolve2(dir);
148156
148156
  if (prebuild) return prebuild;
148157
- var nearby = resolve2(path10.dirname(process.execPath));
148157
+ var nearby = resolve2(path11.dirname(process.execPath));
148158
148158
  if (nearby) return nearby;
148159
148159
  var platformPackage = (packageName[0] == "@" ? "" : "@" + packageName + "/") + packageName + "-" + platform + "-" + arch;
148160
148160
  try {
148161
- var prebuildPackage = path10.dirname(__require("module").createRequire(url.pathToFileURL(path10.join(dir, "package.json"))).resolve(platformPackage));
148161
+ var prebuildPackage = path11.dirname(__require("module").createRequire(url.pathToFileURL(path11.join(dir, "package.json"))).resolve(platformPackage));
148162
148162
  return resolveFile(prebuildPackage);
148163
148163
  } catch (error) {
148164
148164
  }
@@ -148177,16 +148177,16 @@ var require_node_gyp_build_optional_packages = __commonJS({
148177
148177
  ].filter(Boolean).join(" ");
148178
148178
  throw new Error("No native build was found for " + target + "\n attempted loading from: " + dir + " and package: " + platformPackage + "\n");
148179
148179
  function resolve2(dir2) {
148180
- var tuples = readdirSync(path10.join(dir2, "prebuilds")).map(parseTuple);
148180
+ var tuples = readdirSync(path11.join(dir2, "prebuilds")).map(parseTuple);
148181
148181
  var tuple = tuples.filter(matchTuple(platform, arch)).sort(compareTuples)[0];
148182
148182
  if (!tuple) return;
148183
- return resolveFile(path10.join(dir2, "prebuilds", tuple.name));
148183
+ return resolveFile(path11.join(dir2, "prebuilds", tuple.name));
148184
148184
  }
148185
148185
  function resolveFile(prebuilds) {
148186
148186
  var parsed = readdirSync(prebuilds).map(parseTags);
148187
148187
  var candidates = parsed.filter(matchTags(runtime, abi50));
148188
148188
  var winner = candidates.sort(compareTags(runtime))[0];
148189
- if (winner) return path10.join(prebuilds, winner.file);
148189
+ if (winner) return path11.join(prebuilds, winner.file);
148190
148190
  }
148191
148191
  };
148192
148192
  function readdirSync(dir) {
@@ -148198,7 +148198,7 @@ var require_node_gyp_build_optional_packages = __commonJS({
148198
148198
  }
148199
148199
  function getFirst(dir, filter) {
148200
148200
  var files = readdirSync(dir).filter(filter);
148201
- return files[0] && path10.join(dir, files[0]);
148201
+ return files[0] && path11.join(dir, files[0]);
148202
148202
  }
148203
148203
  function matchBuild(name) {
148204
148204
  return /\.node$/.test(name);
@@ -151950,14 +151950,14 @@ var require_url_state_machine = __commonJS({
151950
151950
  return url.replace(/\u0009|\u000A|\u000D/g, "");
151951
151951
  }
151952
151952
  function shortenPath(url) {
151953
- const path10 = url.path;
151954
- if (path10.length === 0) {
151953
+ const path11 = url.path;
151954
+ if (path11.length === 0) {
151955
151955
  return;
151956
151956
  }
151957
- if (url.scheme === "file" && path10.length === 1 && isNormalizedWindowsDriveLetter(path10[0])) {
151957
+ if (url.scheme === "file" && path11.length === 1 && isNormalizedWindowsDriveLetter(path11[0])) {
151958
151958
  return;
151959
151959
  }
151960
- path10.pop();
151960
+ path11.pop();
151961
151961
  }
151962
151962
  function includesCredentials(url) {
151963
151963
  return url.username !== "" || url.password !== "";
@@ -190595,9 +190595,9 @@ var require_setupKzg = __commonJS({
190595
190595
  Object.defineProperty(exports2, "__esModule", { value: true });
190596
190596
  exports2.setupKzg = setupKzg;
190597
190597
  var defineKzg_js_1 = require_defineKzg();
190598
- function setupKzg(parameters, path10) {
190598
+ function setupKzg(parameters, path11) {
190599
190599
  try {
190600
- parameters.loadTrustedSetup(path10);
190600
+ parameters.loadTrustedSetup(path11);
190601
190601
  } catch (e) {
190602
190602
  const error = e;
190603
190603
  if (!error.message.includes("trusted setup is already loaded"))
@@ -242106,13 +242106,13 @@ function __disposeResources(env2) {
242106
242106
  }
242107
242107
  return next();
242108
242108
  }
242109
- function __rewriteRelativeImportExtension(path10, preserveJsx) {
242110
- if (typeof path10 === "string" && /^\.\.?\//.test(path10)) {
242111
- return path10.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {
242109
+ function __rewriteRelativeImportExtension(path11, preserveJsx) {
242110
+ if (typeof path11 === "string" && /^\.\.?\//.test(path11)) {
242111
+ return path11.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {
242112
242112
  return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : d + ext + "." + cm.toLowerCase() + "js";
242113
242113
  });
242114
242114
  }
242115
- return path10;
242115
+ return path11;
242116
242116
  }
242117
242117
  var extendStatics2, __assign2, __createBinding2, __setModuleDefault2, ownKeys, _SuppressedError, tslib_es6_default;
242118
242118
  var init_tslib_es62 = __esm({
@@ -248062,14 +248062,14 @@ var require_lib41 = __commonJS({
248062
248062
  }
248063
248063
  this.pubHash = hash160(this.pubKey);
248064
248064
  }
248065
- derive(path10) {
248066
- if (!/^[mM]'?/.test(path10)) {
248065
+ derive(path11) {
248066
+ if (!/^[mM]'?/.test(path11)) {
248067
248067
  throw new Error('Path must start with "m" or "M"');
248068
248068
  }
248069
- if (/^[mM]'?$/.test(path10)) {
248069
+ if (/^[mM]'?$/.test(path11)) {
248070
248070
  return this;
248071
248071
  }
248072
- const parts = path10.replace(/^[mM]'?\//, "").split("/");
248072
+ const parts = path11.replace(/^[mM]'?\//, "").split("/");
248073
248073
  let child = this;
248074
248074
  for (const c of parts) {
248075
248075
  const m = /^(\d+)('?)$/.exec(c);
@@ -269190,8 +269190,8 @@ var require_hdKeyToAccount = __commonJS({
269190
269190
  exports2.hdKeyToAccount = hdKeyToAccount;
269191
269191
  var toHex_js_1 = require_toHex();
269192
269192
  var privateKeyToAccount_js_1 = require_privateKeyToAccount();
269193
- function hdKeyToAccount(hdKey_, { accountIndex = 0, addressIndex = 0, changeIndex = 0, path: path10, ...options } = {}) {
269194
- const hdKey = hdKey_.derive(path10 || `m/44'/60'/${accountIndex}'/${changeIndex}/${addressIndex}`);
269193
+ function hdKeyToAccount(hdKey_, { accountIndex = 0, addressIndex = 0, changeIndex = 0, path: path11, ...options } = {}) {
269194
+ const hdKey = hdKey_.derive(path11 || `m/44'/60'/${accountIndex}'/${changeIndex}/${addressIndex}`);
269195
269195
  const account = (0, privateKeyToAccount_js_1.privateKeyToAccount)((0, toHex_js_1.toHex)(hdKey.privateKey), options);
269196
269196
  return {
269197
269197
  ...account,
@@ -276494,12 +276494,12 @@ var require_abstract_coder3 = __commonJS({
276494
276494
  exports2.Result = Result;
276495
276495
  function checkResultErrors(result) {
276496
276496
  const errors = [];
276497
- const checkErrors = function(path10, object) {
276497
+ const checkErrors = function(path11, object) {
276498
276498
  if (!Array.isArray(object)) {
276499
276499
  return;
276500
276500
  }
276501
276501
  for (let key in object) {
276502
- const childPath = path10.slice();
276502
+ const childPath = path11.slice();
276503
276503
  childPath.push(key);
276504
276504
  try {
276505
276505
  checkErrors(childPath, object[key]);
@@ -299203,9 +299203,9 @@ var require_provider_ipcsocket2 = __commonJS({
299203
299203
  get socket() {
299204
299204
  return this.#socket;
299205
299205
  }
299206
- constructor(path10, network, options) {
299206
+ constructor(path11, network, options) {
299207
299207
  super(network, options);
299208
- this.#socket = (0, net_1.connect)(path10);
299208
+ this.#socket = (0, net_1.connect)(path11);
299209
299209
  this.socket.on("ready", async () => {
299210
299210
  try {
299211
299211
  await this._start();
@@ -299895,11 +299895,11 @@ var require_utils34 = __commonJS({
299895
299895
  function spelunk(object, _path) {
299896
299896
  const match2 = _path.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);
299897
299897
  (0, index_js_1.assertArgument)(match2 != null, "invalid path", "path", _path);
299898
- const path10 = match2[1];
299898
+ const path11 = match2[1];
299899
299899
  const type = match2[3];
299900
299900
  const reqd = match2[4] === "!";
299901
299901
  let cur = object;
299902
- for (const comp of path10.toLowerCase().split(".")) {
299902
+ for (const comp of path11.toLowerCase().split(".")) {
299903
299903
  if (Array.isArray(cur)) {
299904
299904
  if (!comp.match(/^[0-9]+$/)) {
299905
299905
  break;
@@ -299921,7 +299921,7 @@ var require_utils34 = __commonJS({
299921
299921
  break;
299922
299922
  }
299923
299923
  }
299924
- (0, index_js_1.assertArgument)(!reqd || cur != null, "missing required value", "path", path10);
299924
+ (0, index_js_1.assertArgument)(!reqd || cur != null, "missing required value", "path", path11);
299925
299925
  if (type && cur != null) {
299926
299926
  if (type === "int") {
299927
299927
  if (typeof cur === "string" && cur.match(/^-?[0-9]+$/)) {
@@ -299946,7 +299946,7 @@ var require_utils34 = __commonJS({
299946
299946
  if (type === typeof cur) {
299947
299947
  return cur;
299948
299948
  }
299949
- (0, index_js_1.assertArgument)(false, `wrong type found for ${type} `, "path", path10);
299949
+ (0, index_js_1.assertArgument)(false, `wrong type found for ${type} `, "path", path11);
299950
299950
  }
299951
299951
  return cur;
299952
299952
  }
@@ -300144,7 +300144,7 @@ var require_json_keystore2 = __commonJS({
300144
300144
  };
300145
300145
  if (account.mnemonic) {
300146
300146
  const client = options.client != null ? options.client : `ethers/${_version_js_1.version}`;
300147
- const path10 = account.mnemonic.path || defaultPath;
300147
+ const path11 = account.mnemonic.path || defaultPath;
300148
300148
  const locale = account.mnemonic.locale || "en";
300149
300149
  const mnemonicKey = key.slice(32, 64);
300150
300150
  const entropy = (0, index_js_4.getBytes)(account.mnemonic.entropy, "account.mnemonic.entropy");
@@ -300157,7 +300157,7 @@ var require_json_keystore2 = __commonJS({
300157
300157
  data["x-ethers"] = {
300158
300158
  client,
300159
300159
  gethFilename,
300160
- path: path10,
300160
+ path: path11,
300161
300161
  locale,
300162
300162
  mnemonicCounter: (0, index_js_4.hexlify)(mnemonicIv).substring(2),
300163
300163
  mnemonicCiphertext: (0, index_js_4.hexlify)(mnemonicCiphertext).substring(2),
@@ -300242,11 +300242,11 @@ var require_hdwallet2 = __commonJS({
300242
300242
  const I = (0, index_js_4.getBytes)((0, index_js_1.computeHmac)("sha512", chainCode, data));
300243
300243
  return { IL: I.slice(0, 32), IR: I.slice(32) };
300244
300244
  }
300245
- function derivePath(node, path10) {
300246
- const components = path10.split("/");
300247
- (0, index_js_4.assertArgument)(components.length > 0, "invalid path", "path", path10);
300245
+ function derivePath(node, path11) {
300246
+ const components = path11.split("/");
300247
+ (0, index_js_4.assertArgument)(components.length > 0, "invalid path", "path", path11);
300248
300248
  if (components[0] === "m") {
300249
- (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", path10);
300249
+ (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", path11);
300250
300250
  components.shift();
300251
300251
  }
300252
300252
  let result = node;
@@ -300316,7 +300316,7 @@ var require_hdwallet2 = __commonJS({
300316
300316
  /**
300317
300317
  * @private
300318
300318
  */
300319
- constructor(guard, signingKey, parentFingerprint, chainCode, path10, index2, depth, mnemonic, provider) {
300319
+ constructor(guard, signingKey, parentFingerprint, chainCode, path11, index2, depth, mnemonic, provider) {
300320
300320
  super(signingKey, provider);
300321
300321
  (0, index_js_4.assertPrivate)(guard, _guard, "HDNodeWallet");
300322
300322
  (0, index_js_4.defineProperties)(this, { publicKey: signingKey.compressedPublicKey });
@@ -300325,7 +300325,7 @@ var require_hdwallet2 = __commonJS({
300325
300325
  parentFingerprint,
300326
300326
  fingerprint,
300327
300327
  chainCode,
300328
- path: path10,
300328
+ path: path11,
300329
300329
  index: index2,
300330
300330
  depth
300331
300331
  });
@@ -300409,22 +300409,22 @@ var require_hdwallet2 = __commonJS({
300409
300409
  deriveChild(_index) {
300410
300410
  const index2 = (0, index_js_4.getNumber)(_index, "index");
300411
300411
  (0, index_js_4.assertArgument)(index2 <= 4294967295, "invalid index", "index", index2);
300412
- let path10 = this.path;
300413
- if (path10) {
300414
- path10 += "/" + (index2 & ~HardenedBit);
300412
+ let path11 = this.path;
300413
+ if (path11) {
300414
+ path11 += "/" + (index2 & ~HardenedBit);
300415
300415
  if (index2 & HardenedBit) {
300416
- path10 += "'";
300416
+ path11 += "'";
300417
300417
  }
300418
300418
  }
300419
300419
  const { IR, IL } = ser_I(index2, this.chainCode, this.publicKey, this.privateKey);
300420
300420
  const ki = new index_js_1.SigningKey((0, index_js_4.toBeHex)(((0, index_js_4.toBigInt)(IL) + BigInt(this.privateKey)) % N, 32));
300421
- return new _HDNodeWallet(_guard, ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path10, index2, this.depth + 1, this.mnemonic, this.provider);
300421
+ return new _HDNodeWallet(_guard, ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path11, index2, this.depth + 1, this.mnemonic, this.provider);
300422
300422
  }
300423
300423
  /**
300424
300424
  * Return the HDNode for %%path%% from this node.
300425
300425
  */
300426
- derivePath(path10) {
300427
- return derivePath(this, path10);
300426
+ derivePath(path11) {
300427
+ return derivePath(this, path11);
300428
300428
  }
300429
300429
  static #fromSeed(_seed, mnemonic) {
300430
300430
  (0, index_js_4.assertArgument)((0, index_js_4.isBytesLike)(_seed), "invalid seed", "seed", "[REDACTED]");
@@ -300469,43 +300469,43 @@ var require_hdwallet2 = __commonJS({
300469
300469
  /**
300470
300470
  * Creates a new random HDNode.
300471
300471
  */
300472
- static createRandom(password, path10, wordlist) {
300472
+ static createRandom(password, path11, wordlist) {
300473
300473
  if (password == null) {
300474
300474
  password = "";
300475
300475
  }
300476
- if (path10 == null) {
300477
- path10 = exports2.defaultPath;
300476
+ if (path11 == null) {
300477
+ path11 = exports2.defaultPath;
300478
300478
  }
300479
300479
  if (wordlist == null) {
300480
300480
  wordlist = lang_en_js_1.LangEn.wordlist();
300481
300481
  }
300482
300482
  const mnemonic = mnemonic_js_1.Mnemonic.fromEntropy((0, index_js_1.randomBytes)(16), password, wordlist);
300483
- return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path10);
300483
+ return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path11);
300484
300484
  }
300485
300485
  /**
300486
300486
  * Create an HD Node from %%mnemonic%%.
300487
300487
  */
300488
- static fromMnemonic(mnemonic, path10) {
300489
- if (!path10) {
300490
- path10 = exports2.defaultPath;
300488
+ static fromMnemonic(mnemonic, path11) {
300489
+ if (!path11) {
300490
+ path11 = exports2.defaultPath;
300491
300491
  }
300492
- return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path10);
300492
+ return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path11);
300493
300493
  }
300494
300494
  /**
300495
300495
  * Creates an HD Node from a mnemonic %%phrase%%.
300496
300496
  */
300497
- static fromPhrase(phrase, password, path10, wordlist) {
300497
+ static fromPhrase(phrase, password, path11, wordlist) {
300498
300498
  if (password == null) {
300499
300499
  password = "";
300500
300500
  }
300501
- if (path10 == null) {
300502
- path10 = exports2.defaultPath;
300501
+ if (path11 == null) {
300502
+ path11 = exports2.defaultPath;
300503
300503
  }
300504
300504
  if (wordlist == null) {
300505
300505
  wordlist = lang_en_js_1.LangEn.wordlist();
300506
300506
  }
300507
300507
  const mnemonic = mnemonic_js_1.Mnemonic.fromPhrase(phrase, password, wordlist);
300508
- return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path10);
300508
+ return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path11);
300509
300509
  }
300510
300510
  /**
300511
300511
  * Creates an HD Node from a %%seed%%.
@@ -300558,7 +300558,7 @@ var require_hdwallet2 = __commonJS({
300558
300558
  /**
300559
300559
  * @private
300560
300560
  */
300561
- constructor(guard, address, publicKey, parentFingerprint, chainCode, path10, index2, depth, provider) {
300561
+ constructor(guard, address, publicKey, parentFingerprint, chainCode, path11, index2, depth, provider) {
300562
300562
  super(address, provider);
300563
300563
  (0, index_js_4.assertPrivate)(guard, _guard, "HDNodeVoidWallet");
300564
300564
  (0, index_js_4.defineProperties)(this, { publicKey });
@@ -300568,7 +300568,7 @@ var require_hdwallet2 = __commonJS({
300568
300568
  fingerprint,
300569
300569
  parentFingerprint,
300570
300570
  chainCode,
300571
- path: path10,
300571
+ path: path11,
300572
300572
  index: index2,
300573
300573
  depth
300574
300574
  });
@@ -300606,23 +300606,23 @@ var require_hdwallet2 = __commonJS({
300606
300606
  deriveChild(_index) {
300607
300607
  const index2 = (0, index_js_4.getNumber)(_index, "index");
300608
300608
  (0, index_js_4.assertArgument)(index2 <= 4294967295, "invalid index", "index", index2);
300609
- let path10 = this.path;
300610
- if (path10) {
300611
- path10 += "/" + (index2 & ~HardenedBit);
300609
+ let path11 = this.path;
300610
+ if (path11) {
300611
+ path11 += "/" + (index2 & ~HardenedBit);
300612
300612
  if (index2 & HardenedBit) {
300613
- path10 += "'";
300613
+ path11 += "'";
300614
300614
  }
300615
300615
  }
300616
300616
  const { IR, IL } = ser_I(index2, this.chainCode, this.publicKey, null);
300617
300617
  const Ki = index_js_1.SigningKey.addPoints(IL, this.publicKey, true);
300618
300618
  const address = (0, index_js_3.computeAddress)(Ki);
300619
- return new _HDNodeVoidWallet(_guard, address, Ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path10, index2, this.depth + 1, this.provider);
300619
+ return new _HDNodeVoidWallet(_guard, address, Ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path11, index2, this.depth + 1, this.provider);
300620
300620
  }
300621
300621
  /**
300622
300622
  * Return the signer for %%path%% from this node.
300623
300623
  */
300624
- derivePath(path10) {
300625
- return derivePath(this, path10);
300624
+ derivePath(path11) {
300625
+ return derivePath(this, path11);
300626
300626
  }
300627
300627
  };
300628
300628
  exports2.HDNodeVoidWallet = HDNodeVoidWallet;
@@ -305278,10 +305278,10 @@ var require_SolidityCheckedContract = __commonJS({
305278
305278
  } catch (err) {
305279
305279
  return null;
305280
305280
  }
305281
- const pathContent = Object.keys(this.sources).map((path10) => {
305281
+ const pathContent = Object.keys(this.sources).map((path11) => {
305282
305282
  return {
305283
- path: path10,
305284
- content: this.sources[path10] || ""
305283
+ path: path11,
305284
+ content: this.sources[path11] || ""
305285
305285
  };
305286
305286
  });
305287
305287
  const byHash = (0, validation_1.storeByHash)(pathContent);
@@ -308580,8 +308580,8 @@ var require_utils36 = __commonJS({
308580
308580
  var result = transform[inputType][outputType](input);
308581
308581
  return result;
308582
308582
  };
308583
- exports2.resolve = function(path10) {
308584
- var parts = path10.split("/");
308583
+ exports2.resolve = function(path11) {
308584
+ var parts = path11.split("/");
308585
308585
  var result = [];
308586
308586
  for (var index2 = 0; index2 < parts.length; index2++) {
308587
308587
  var part = parts[index2];
@@ -314434,18 +314434,18 @@ var require_object = __commonJS({
314434
314434
  var object = new ZipObject(name, zipObjectContent, o);
314435
314435
  this.files[name] = object;
314436
314436
  };
314437
- var parentFolder = function(path10) {
314438
- if (path10.slice(-1) === "/") {
314439
- path10 = path10.substring(0, path10.length - 1);
314437
+ var parentFolder = function(path11) {
314438
+ if (path11.slice(-1) === "/") {
314439
+ path11 = path11.substring(0, path11.length - 1);
314440
314440
  }
314441
- var lastSlash = path10.lastIndexOf("/");
314442
- return lastSlash > 0 ? path10.substring(0, lastSlash) : "";
314441
+ var lastSlash = path11.lastIndexOf("/");
314442
+ return lastSlash > 0 ? path11.substring(0, lastSlash) : "";
314443
314443
  };
314444
- var forceTrailingSlash = function(path10) {
314445
- if (path10.slice(-1) !== "/") {
314446
- path10 += "/";
314444
+ var forceTrailingSlash = function(path11) {
314445
+ if (path11.slice(-1) !== "/") {
314446
+ path11 += "/";
314447
314447
  }
314448
- return path10;
314448
+ return path11;
314449
314449
  };
314450
314450
  var folderAdd = function(name, createFolders) {
314451
314451
  createFolders = typeof createFolders !== "undefined" ? createFolders : defaults.createFolders;
@@ -315511,7 +315511,7 @@ var require_VyperCheckedContract = __commonJS({
315511
315511
  userdoc: { kind: "user", methods: {} }
315512
315512
  };
315513
315513
  }
315514
- const sourcesWithHashes = Object.entries(this.sources).reduce((acc, [path10, content]) => Object.assign(Object.assign({}, acc), { [path10]: {
315514
+ const sourcesWithHashes = Object.entries(this.sources).reduce((acc, [path11, content]) => Object.assign(Object.assign({}, acc), { [path11]: {
315515
315515
  keccak256: (0, ethers_1.id)(content)
315516
315516
  } }), {});
315517
315517
  this.metadata = {
@@ -315544,8 +315544,8 @@ var require_VyperCheckedContract = __commonJS({
315544
315544
  this.generateMetadata();
315545
315545
  this.vyperJsonInput = {
315546
315546
  language: "Vyper",
315547
- sources: Object.fromEntries(Object.entries(this.sources).map(([path10, content]) => [
315548
- path10,
315547
+ sources: Object.fromEntries(Object.entries(this.sources).map(([path11, content]) => [
315548
+ path11,
315549
315549
  { content }
315550
315550
  ])),
315551
315551
  settings: this.vyperSettings
@@ -315738,15 +315738,15 @@ var require_validation5 = __commonJS({
315738
315738
  ];
315739
315739
  function checkPaths(solidityCompiler, vyperCompiler2, paths, ignoring) {
315740
315740
  const files = [];
315741
- paths.forEach((path10) => {
315742
- if (fs_1.default.existsSync(path10)) {
315743
- traversePathRecursively(path10, (filePath) => {
315741
+ paths.forEach((path11) => {
315742
+ if (fs_1.default.existsSync(path11)) {
315743
+ traversePathRecursively(path11, (filePath) => {
315744
315744
  const fullPath = path_1.default.resolve(filePath);
315745
315745
  const file = { buffer: fs_1.default.readFileSync(filePath), path: fullPath };
315746
315746
  files.push(file);
315747
315747
  });
315748
315748
  } else if (ignoring) {
315749
- ignoring.push(path10);
315749
+ ignoring.push(path11);
315750
315750
  }
315751
315751
  });
315752
315752
  return checkFilesWithMetadata2(solidityCompiler, vyperCompiler2, files);
@@ -316002,22 +316002,22 @@ var require_validation5 = __commonJS({
316002
316002
  var _a, _b, _c, _d;
316003
316003
  return ((obj === null || obj === void 0 ? void 0 : obj.language) === "Vyper" || (obj === null || obj === void 0 ? void 0 : obj.language) === "Solidity") && !!((_a = obj === null || obj === void 0 ? void 0 : obj.settings) === null || _a === void 0 ? void 0 : _a.compilationTarget) && !!(obj === null || obj === void 0 ? void 0 : obj.version) && !!((_b = obj === null || obj === void 0 ? void 0 : obj.output) === null || _b === void 0 ? void 0 : _b.abi) && !!((_c = obj === null || obj === void 0 ? void 0 : obj.output) === null || _c === void 0 ? void 0 : _c.userdoc) && !!((_d = obj === null || obj === void 0 ? void 0 : obj.output) === null || _d === void 0 ? void 0 : _d.devdoc) && !!(obj === null || obj === void 0 ? void 0 : obj.sources);
316004
316004
  }
316005
- function traversePathRecursively(path10, worker, afterDirectory) {
316006
- if (!fs_1.default.existsSync(path10)) {
316007
- const msg = `Encountered a nonexistent path: ${path10}`;
316005
+ function traversePathRecursively(path11, worker, afterDirectory) {
316006
+ if (!fs_1.default.existsSync(path11)) {
316007
+ const msg = `Encountered a nonexistent path: ${path11}`;
316008
316008
  const error = new Error(msg);
316009
316009
  throw error;
316010
316010
  }
316011
- const fileStat = fs_1.default.lstatSync(path10);
316011
+ const fileStat = fs_1.default.lstatSync(path11);
316012
316012
  if (fileStat.isFile()) {
316013
- worker(path10);
316013
+ worker(path11);
316014
316014
  } else if (fileStat.isDirectory()) {
316015
- fs_1.default.readdirSync(path10).forEach((nestedName) => {
316016
- const nestedPath = path_1.default.join(path10, nestedName);
316015
+ fs_1.default.readdirSync(path11).forEach((nestedName) => {
316016
+ const nestedPath = path_1.default.join(path11, nestedName);
316017
316017
  traversePathRecursively(nestedPath, worker, afterDirectory);
316018
316018
  });
316019
316019
  if (afterDirectory) {
316020
- afterDirectory(path10);
316020
+ afterDirectory(path11);
316021
316021
  }
316022
316022
  }
316023
316023
  }
@@ -316047,19 +316047,19 @@ var require_validation5 = __commonJS({
316047
316047
  const endTime = Date.now();
316048
316048
  (0, logger_1.logDebug)(`Parsing hardhat file took ${endTime - startTime} milliseconds.`);
316049
316049
  const hardhatSourceFilesObject = hardhatJson.input.sources;
316050
- for (const path10 in hardhatSourceFilesObject) {
316051
- if (hardhatSourceFilesObject[path10].content) {
316050
+ for (const path11 in hardhatSourceFilesObject) {
316051
+ if (hardhatSourceFilesObject[path11].content) {
316052
316052
  hardhatSourceFiles.push({
316053
- path: path10,
316054
- content: hardhatSourceFilesObject[path10].content
316053
+ path: path11,
316054
+ content: hardhatSourceFilesObject[path11].content
316055
316055
  });
316056
316056
  }
316057
316057
  }
316058
316058
  const contractsObject = hardhatJson.output.contracts;
316059
- for (const path10 in contractsObject) {
316060
- for (const contractName in contractsObject[path10]) {
316061
- if (contractsObject[path10][contractName].metadata) {
316062
- const metadataObj = extractMetadataFromString(contractsObject[path10][contractName].metadata);
316059
+ for (const path11 in contractsObject) {
316060
+ for (const contractName in contractsObject[path11]) {
316061
+ if (contractsObject[path11][contractName].metadata) {
316062
+ const metadataObj = extractMetadataFromString(contractsObject[path11][contractName].metadata);
316063
316063
  hardhatMetadataFiles.push(metadataObj);
316064
316064
  }
316065
316065
  }
@@ -319615,12 +319615,12 @@ var require_abstract_coder4 = __commonJS({
319615
319615
  var logger2 = new logger_1.Logger(_version_1.version);
319616
319616
  function checkResultErrors(result) {
319617
319617
  var errors = [];
319618
- var checkErrors = function(path10, object) {
319618
+ var checkErrors = function(path11, object) {
319619
319619
  if (!Array.isArray(object)) {
319620
319620
  return;
319621
319621
  }
319622
319622
  for (var key in object) {
319623
- var childPath = path10.slice();
319623
+ var childPath = path11.slice();
319624
319624
  childPath.push(key);
319625
319625
  try {
319626
319626
  checkErrors(childPath, object[key]);
@@ -323334,15 +323334,15 @@ var require_route = __commonJS({
323334
323334
  };
323335
323335
  }
323336
323336
  function wrapConversion(toModel, graph) {
323337
- const path10 = [graph[toModel].parent, toModel];
323337
+ const path11 = [graph[toModel].parent, toModel];
323338
323338
  let fn = conversions[graph[toModel].parent][toModel];
323339
323339
  let cur = graph[toModel].parent;
323340
323340
  while (graph[cur].parent) {
323341
- path10.unshift(graph[cur].parent);
323341
+ path11.unshift(graph[cur].parent);
323342
323342
  fn = link(conversions[graph[cur].parent][cur], fn);
323343
323343
  cur = graph[cur].parent;
323344
323344
  }
323345
- fn.conversion = path10;
323345
+ fn.conversion = path11;
323346
323346
  return fn;
323347
323347
  }
323348
323348
  module2.exports = function(fromModel) {
@@ -369845,8 +369845,8 @@ function getErrorMap() {
369845
369845
 
369846
369846
  // ../../node_modules/zod/dist/esm/v3/helpers/parseUtil.js
369847
369847
  var makeIssue = (params) => {
369848
- const { data, path: path10, errorMaps, issueData } = params;
369849
- const fullPath = [...path10, ...issueData.path || []];
369848
+ const { data, path: path11, errorMaps, issueData } = params;
369849
+ const fullPath = [...path11, ...issueData.path || []];
369850
369850
  const fullIssue = {
369851
369851
  ...issueData,
369852
369852
  path: fullPath
@@ -369962,11 +369962,11 @@ var errorUtil;
369962
369962
 
369963
369963
  // ../../node_modules/zod/dist/esm/v3/types.js
369964
369964
  var ParseInputLazyPath = class {
369965
- constructor(parent, value, path10, key) {
369965
+ constructor(parent, value, path11, key) {
369966
369966
  this._cachedPath = [];
369967
369967
  this.parent = parent;
369968
369968
  this.data = value;
369969
- this._path = path10;
369969
+ this._path = path11;
369970
369970
  this._key = key;
369971
369971
  }
369972
369972
  get path() {
@@ -387739,9 +387739,9 @@ var PathOptionFactory = class _PathOptionFactory {
387739
387739
  const balancerSet = /* @__PURE__ */ new Set([...balancerPools, ...balancerTokensFromAura]);
387740
387740
  return Array.from(balancerSet.values());
387741
387741
  }
387742
- static next(path10) {
387743
- let newPath = [...path10];
387744
- for (let i = path10.length - 1; i >= 0; i--) {
387742
+ static next(path11) {
387743
+ let newPath = [...path11];
387744
+ for (let i = path11.length - 1; i >= 0; i--) {
387745
387745
  const po = { ...newPath[i] };
387746
387746
  po.option++;
387747
387747
  newPath[i] = po;
@@ -396415,8 +396415,8 @@ var PriceUpdatesCache = class {
396415
396415
  this.#ttlMs = opts.ttl;
396416
396416
  this.#historical = opts.historical;
396417
396417
  }
396418
- get(...path10) {
396419
- const key = this.#cacheKey(...path10);
396418
+ get(...path11) {
396419
+ const key = this.#cacheKey(...path11);
396420
396420
  const data = this.#cache.get(key);
396421
396421
  if (!data) {
396422
396422
  return void 0;
@@ -396427,8 +396427,8 @@ var PriceUpdatesCache = class {
396427
396427
  }
396428
396428
  return data;
396429
396429
  }
396430
- set(value, ...path10) {
396431
- const key = this.#cacheKey(...path10);
396430
+ set(value, ...path11) {
396431
+ const key = this.#cacheKey(...path11);
396432
396432
  this.#cache.set(key, value);
396433
396433
  }
396434
396434
  #expired(value) {
@@ -396437,8 +396437,8 @@ var PriceUpdatesCache = class {
396437
396437
  }
396438
396438
  return value.timestamp * 1e3 + this.#ttlMs < Date.now();
396439
396439
  }
396440
- #cacheKey(...path10) {
396441
- return path10.join(":");
396440
+ #cacheKey(...path11) {
396441
+ return path11.join(":");
396442
396442
  }
396443
396443
  };
396444
396444
 
@@ -399078,9 +399078,9 @@ var log_default = logger;
399078
399078
  var log = log_default.child({ name: "git" });
399079
399079
  function getGithubUrl(repo, https = false) {
399080
399080
  const credentials = process.env.GITHUB_TOKEN ?? process.env.GH_TOKEN;
399081
- const path10 = repo.replace(/^@/, "").replace(/\/$/, "");
399081
+ const path11 = repo.replace(/^@/, "").replace(/\/$/, "");
399082
399082
  const cred = credentials ? `${credentials}@` : "";
399083
- return https || credentials ? `https://${cred}github.com/${path10}.git` : `git@github.com:${path10}.git`;
399083
+ return https || credentials ? `https://${cred}github.com/${path11}.git` : `git@github.com:${path11}.git`;
399084
399084
  }
399085
399085
  async function cloneRepo(opts) {
399086
399086
  const { repo, commit, sandboxDir } = opts;
@@ -415926,8 +415926,8 @@ function asyncExecSolc(inputStringified, solcPath) {
415926
415926
  child.stdin.end();
415927
415927
  });
415928
415928
  }
415929
- function importWorker(path10, options) {
415930
- const resolvedPath = __require.resolve(path10);
415929
+ function importWorker(path11, options) {
415930
+ const resolvedPath = __require.resolve(path11);
415931
415931
  return new Worker(resolvedPath, {
415932
415932
  ...options,
415933
415933
  execArgv: /\.ts$/.test(resolvedPath) ? ["--require", "ts-node/register"] : void 0
@@ -415961,7 +415961,7 @@ var vyperCompiler = new VyperCompiler();
415961
415961
  // ../../packages/node/dist/utils.js
415962
415962
  var import_bytecode_utils = __toESM(require_main(), 1);
415963
415963
  function extractFilesFromJSON(files) {
415964
- return Object.entries(files).map(([path10, file]) => {
415964
+ return Object.entries(files).map(([path11, file]) => {
415965
415965
  let buffer2 = null;
415966
415966
  if (Buffer.isBuffer(file)) {
415967
415967
  buffer2 = file;
@@ -415976,7 +415976,7 @@ function extractFilesFromJSON(files) {
415976
415976
  throw new Error(`cannot convert ${typeof file} into buffer`);
415977
415977
  }
415978
415978
  return {
415979
- path: path10,
415979
+ path: path11,
415980
415980
  buffer: buffer2
415981
415981
  };
415982
415982
  });
@@ -416037,8 +416037,8 @@ var Auditor = class {
416037
416037
  if (!meta.files) {
416038
416038
  throw new Error("no files to audit");
416039
416039
  }
416040
- const files = extractFilesFromJSON(meta.files).filter((f) => f.path !== "metadata.json").map(({ path: path10, buffer: buffer2 }) => {
416041
- const p = path10.includes("node_modules/") ? path10.replace("node_modules/", "") : meta.source;
416040
+ const files = extractFilesFromJSON(meta.files).filter((f) => f.path !== "metadata.json").map(({ path: path11, buffer: buffer2 }) => {
416041
+ const p = path11.includes("node_modules/") ? path11.replace("node_modules/", "") : meta.source;
416042
416042
  const gearbox = p.startsWith("@gearbox-protocol");
416043
416043
  return {
416044
416044
  gearbox,
@@ -416058,8 +416058,8 @@ var Auditor = class {
416058
416058
  */
416059
416059
  async auditEtherscanVerified(contract) {
416060
416060
  const input = parseEtherscanSourceCode(contract);
416061
- const files = extractFilesFromJSON(input.sources).map(({ path: path10, buffer: buffer2 }) => {
416062
- const p = path10.replace("node_modules/", "");
416061
+ const files = extractFilesFromJSON(input.sources).map(({ path: path11, buffer: buffer2 }) => {
416062
+ const p = path11.replace("node_modules/", "");
416063
416063
  const gearbox = p.startsWith("@gearbox-protocol");
416064
416064
  return {
416065
416065
  gearbox,
@@ -417593,19 +417593,19 @@ function toKey(value) {
417593
417593
  var toKey_default = toKey;
417594
417594
 
417595
417595
  // ../../node_modules/lodash-es/_baseGet.js
417596
- function baseGet(object, path10) {
417597
- path10 = castPath_default(path10, object);
417598
- var index2 = 0, length = path10.length;
417596
+ function baseGet(object, path11) {
417597
+ path11 = castPath_default(path11, object);
417598
+ var index2 = 0, length = path11.length;
417599
417599
  while (object != null && index2 < length) {
417600
- object = object[toKey_default(path10[index2++])];
417600
+ object = object[toKey_default(path11[index2++])];
417601
417601
  }
417602
417602
  return index2 && index2 == length ? object : void 0;
417603
417603
  }
417604
417604
  var baseGet_default = baseGet;
417605
417605
 
417606
417606
  // ../../node_modules/lodash-es/get.js
417607
- function get(object, path10, defaultValue) {
417608
- var result = object == null ? void 0 : baseGet_default(object, path10);
417607
+ function get(object, path11, defaultValue) {
417608
+ var result = object == null ? void 0 : baseGet_default(object, path11);
417609
417609
  return result === void 0 ? defaultValue : result;
417610
417610
  }
417611
417611
  var get_default = get;
@@ -418554,11 +418554,11 @@ function baseHasIn(object, key) {
418554
418554
  var baseHasIn_default = baseHasIn;
418555
418555
 
418556
418556
  // ../../node_modules/lodash-es/_hasPath.js
418557
- function hasPath(object, path10, hasFunc) {
418558
- path10 = castPath_default(path10, object);
418559
- var index2 = -1, length = path10.length, result = false;
418557
+ function hasPath(object, path11, hasFunc) {
418558
+ path11 = castPath_default(path11, object);
418559
+ var index2 = -1, length = path11.length, result = false;
418560
418560
  while (++index2 < length) {
418561
- var key = toKey_default(path10[index2]);
418561
+ var key = toKey_default(path11[index2]);
418562
418562
  if (!(result = object != null && hasFunc(object, key))) {
418563
418563
  break;
418564
418564
  }
@@ -418573,21 +418573,21 @@ function hasPath(object, path10, hasFunc) {
418573
418573
  var hasPath_default = hasPath;
418574
418574
 
418575
418575
  // ../../node_modules/lodash-es/hasIn.js
418576
- function hasIn(object, path10) {
418577
- return object != null && hasPath_default(object, path10, baseHasIn_default);
418576
+ function hasIn(object, path11) {
418577
+ return object != null && hasPath_default(object, path11, baseHasIn_default);
418578
418578
  }
418579
418579
  var hasIn_default = hasIn;
418580
418580
 
418581
418581
  // ../../node_modules/lodash-es/_baseMatchesProperty.js
418582
418582
  var COMPARE_PARTIAL_FLAG6 = 1;
418583
418583
  var COMPARE_UNORDERED_FLAG4 = 2;
418584
- function baseMatchesProperty(path10, srcValue) {
418585
- if (isKey_default(path10) && isStrictComparable_default(srcValue)) {
418586
- return matchesStrictComparable_default(toKey_default(path10), srcValue);
418584
+ function baseMatchesProperty(path11, srcValue) {
418585
+ if (isKey_default(path11) && isStrictComparable_default(srcValue)) {
418586
+ return matchesStrictComparable_default(toKey_default(path11), srcValue);
418587
418587
  }
418588
418588
  return function(object) {
418589
- var objValue = get_default(object, path10);
418590
- return objValue === void 0 && objValue === srcValue ? hasIn_default(object, path10) : baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG6 | COMPARE_UNORDERED_FLAG4);
418589
+ var objValue = get_default(object, path11);
418590
+ return objValue === void 0 && objValue === srcValue ? hasIn_default(object, path11) : baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG6 | COMPARE_UNORDERED_FLAG4);
418591
418591
  };
418592
418592
  }
418593
418593
  var baseMatchesProperty_default = baseMatchesProperty;
@@ -418601,16 +418601,16 @@ function baseProperty(key) {
418601
418601
  var baseProperty_default = baseProperty;
418602
418602
 
418603
418603
  // ../../node_modules/lodash-es/_basePropertyDeep.js
418604
- function basePropertyDeep(path10) {
418604
+ function basePropertyDeep(path11) {
418605
418605
  return function(object) {
418606
- return baseGet_default(object, path10);
418606
+ return baseGet_default(object, path11);
418607
418607
  };
418608
418608
  }
418609
418609
  var basePropertyDeep_default = basePropertyDeep;
418610
418610
 
418611
418611
  // ../../node_modules/lodash-es/property.js
418612
- function property(path10) {
418613
- return isKey_default(path10) ? baseProperty_default(toKey_default(path10)) : basePropertyDeep_default(path10);
418612
+ function property(path11) {
418613
+ return isKey_default(path11) ? baseProperty_default(toKey_default(path11)) : basePropertyDeep_default(path11);
418614
418614
  }
418615
418615
  var property_default = property;
418616
418616
 
@@ -430810,12 +430810,12 @@ var UniswapV2AdapterContract = class extends AbstractAdapterContract {
430810
430810
  parseFunctionParams(params) {
430811
430811
  switch (params.functionName) {
430812
430812
  case "swapDiffTokensForTokens": {
430813
- const [leftoverAmount, rateMinRAY, path10, _deadline] = params.args;
430813
+ const [leftoverAmount, rateMinRAY, path11, _deadline] = params.args;
430814
430814
  const leftoverAmountStr = this.sdk.tokensMeta.formatBN(
430815
- path10[0],
430815
+ path11[0],
430816
430816
  leftoverAmount
430817
430817
  );
430818
- const pathStr = path10.map((t) => this.labelAddress(t)).join(" => ");
430818
+ const pathStr = path11.map((t) => this.labelAddress(t)).join(" => ");
430819
430819
  return [
430820
430820
  `(leftoverAmount: ${leftoverAmountStr}, rate: ${formatBN(
430821
430821
  rateMinRAY,
@@ -430867,12 +430867,12 @@ var UniswapV3AdapterContract = class extends AbstractAdapterContract {
430867
430867
  ];
430868
430868
  }
430869
430869
  case "exactInput": {
430870
- const [{ amountIn, amountOutMinimum, path: path10 }] = params.args;
430871
- const pathStr = this.trackInputPath(path10);
430872
- const token = `0x${path10.replace("0x", "").slice(0, 40)}`;
430870
+ const [{ amountIn, amountOutMinimum, path: path11 }] = params.args;
430871
+ const pathStr = this.trackInputPath(path11);
430872
+ const token = `0x${path11.replace("0x", "").slice(0, 40)}`;
430873
430873
  const amountInStr = this.sdk.tokensMeta.formatBN(token, amountIn);
430874
430874
  const amountOutMinimumStr = this.sdk.tokensMeta.formatBN(
430875
- `0x${path10.slice(-40, path10.length)}`,
430875
+ `0x${path11.slice(-40, path11.length)}`,
430876
430876
  amountOutMinimum
430877
430877
  );
430878
430878
  return [
@@ -430880,12 +430880,12 @@ var UniswapV3AdapterContract = class extends AbstractAdapterContract {
430880
430880
  ];
430881
430881
  }
430882
430882
  case "exactDiffInput": {
430883
- const [{ leftoverAmount, rateMinRAY, path: path10 }] = params.args;
430883
+ const [{ leftoverAmount, rateMinRAY, path: path11 }] = params.args;
430884
430884
  const leftoverAmountStr = this.sdk.tokensMeta.formatBN(
430885
- `0x${path10.replace("0x", "").slice(0, 40)}`,
430885
+ `0x${path11.replace("0x", "").slice(0, 40)}`,
430886
430886
  leftoverAmount
430887
430887
  );
430888
- const pathStr = this.trackInputPath(path10);
430888
+ const pathStr = this.trackInputPath(path11);
430889
430889
  return [
430890
430890
  `(leftoverAmount: ${leftoverAmountStr}, rate: ${formatBN(
430891
430891
  rateMinRAY,
@@ -430894,14 +430894,14 @@ var UniswapV3AdapterContract = class extends AbstractAdapterContract {
430894
430894
  ];
430895
430895
  }
430896
430896
  case "exactOutput": {
430897
- const [{ amountInMaximum, amountOut, path: path10 }] = params.args;
430898
- const pathStr = this.trackOutputPath(path10);
430897
+ const [{ amountInMaximum, amountOut, path: path11 }] = params.args;
430898
+ const pathStr = this.trackOutputPath(path11);
430899
430899
  const amountInMaximumStr = this.sdk.tokensMeta.formatBN(
430900
- `0x${path10.slice(-40, path10.length)}`,
430900
+ `0x${path11.slice(-40, path11.length)}`,
430901
430901
  amountInMaximum
430902
430902
  );
430903
430903
  const amountOutStr = this.sdk.tokensMeta.formatBN(
430904
- `0x${path10.replace("0x", "").slice(0, 40)}`,
430904
+ `0x${path11.replace("0x", "").slice(0, 40)}`,
430905
430905
  amountOut
430906
430906
  );
430907
430907
  return [
@@ -430925,30 +430925,30 @@ var UniswapV3AdapterContract = class extends AbstractAdapterContract {
430925
430925
  return void 0;
430926
430926
  }
430927
430927
  }
430928
- trackInputPath(path10) {
430928
+ trackInputPath(path11) {
430929
430929
  let result = "";
430930
- let pointer = path10.startsWith("0x") ? 2 : 0;
430931
- while (pointer <= path10.length - 40) {
430932
- const from5 = `0x${path10.slice(pointer, pointer + 40)}`.toLowerCase();
430930
+ let pointer = path11.startsWith("0x") ? 2 : 0;
430931
+ while (pointer <= path11.length - 40) {
430932
+ const from5 = `0x${path11.slice(pointer, pointer + 40)}`.toLowerCase();
430933
430933
  result += this.sdk.tokensMeta.symbol(from5) || from5;
430934
430934
  pointer += 40;
430935
- if (pointer > path10.length - 6) return result;
430936
- const fee = parseInt(path10.slice(pointer, pointer + 6), 16);
430935
+ if (pointer > path11.length - 6) return result;
430936
+ const fee = parseInt(path11.slice(pointer, pointer + 6), 16);
430937
430937
  pointer += 6;
430938
430938
  result += ` ==(fee: ${fee})==> `;
430939
430939
  }
430940
430940
  return result;
430941
430941
  }
430942
- trackOutputPath(path10) {
430942
+ trackOutputPath(path11) {
430943
430943
  let result = "";
430944
- let pointer = path10.length;
430944
+ let pointer = path11.length;
430945
430945
  while (pointer >= 40) {
430946
430946
  pointer -= 40;
430947
- const from5 = `0x${path10.slice(pointer, pointer + 40)}`;
430947
+ const from5 = `0x${path11.slice(pointer, pointer + 40)}`;
430948
430948
  result += this.sdk.tokensMeta.symbol(from5) || from5;
430949
430949
  if (pointer < 6) return result;
430950
430950
  pointer -= 6;
430951
- const fee = parseInt(path10.slice(pointer, pointer + 6), 16);
430951
+ const fee = parseInt(path11.slice(pointer, pointer + 6), 16);
430952
430952
  result += ` ==(fee: ${fee})==> `;
430953
430953
  }
430954
430954
  return result;
@@ -431303,7 +431303,7 @@ function getRenderer(opts) {
431303
431303
  var package_default = {
431304
431304
  name: "@gearbox-protocol/deploy-tools",
431305
431305
  description: "Gearbox deploy tools",
431306
- version: "5.36.17",
431306
+ version: "5.36.19",
431307
431307
  homepage: "https://gearbox.fi",
431308
431308
  keywords: [
431309
431309
  "gearbox"
@@ -431553,7 +431553,8 @@ function printSafeTx() {
431553
431553
  }
431554
431554
 
431555
431555
  // src/commands/state-snapshot.ts
431556
- import { writeFile as writeFile7 } from "node:fs/promises";
431556
+ import { mkdir as mkdir3, writeFile as writeFile7 } from "node:fs/promises";
431557
+ import path10 from "node:path";
431557
431558
 
431558
431559
  // ../../node_modules/@gearbox-protocol/sdk/dist/esm/plugins/bots/abi/iPartialLiquidationBotV300.js
431559
431560
  var iPartialLiquidationBotV300Abi = [
@@ -432168,6 +432169,9 @@ function stateSnapshot() {
432168
432169
  bots: new BotsPlugin(true)
432169
432170
  }
432170
432171
  });
432172
+ log_default.debug(`saving state to ${outputJson}`);
432173
+ const outputDir = path10.dirname(outputJson);
432174
+ await mkdir3(outputDir, { recursive: true });
432171
432175
  await writeFile7(outputJson, json_stringify(sdk.state), "utf-8");
432172
432176
  log_default.info("done");
432173
432177
  });