@gearbox-protocol/deploy-tools 5.9.14 → 5.9.16

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 +1187 -1642
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -1163,7 +1163,7 @@ var require_command = __commonJS({
1163
1163
  "../../node_modules/commander/lib/command.js"(exports2) {
1164
1164
  var EventEmitter = __require("node:events").EventEmitter;
1165
1165
  var childProcess = __require("node:child_process");
1166
- var path12 = __require("node:path");
1166
+ var path13 = __require("node:path");
1167
1167
  var fs3 = __require("node:fs");
1168
1168
  var process3 = __require("node:process");
1169
1169
  var { Argument: Argument2, humanReadableArgName } = require_argument();
@@ -2163,9 +2163,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
2163
2163
  let launchWithNode = false;
2164
2164
  const sourceExt = [".js", ".ts", ".tsx", ".mjs", ".cjs"];
2165
2165
  function findFile(baseDir, baseName) {
2166
- const localBin = path12.resolve(baseDir, baseName);
2166
+ const localBin = path13.resolve(baseDir, baseName);
2167
2167
  if (fs3.existsSync(localBin)) return localBin;
2168
- if (sourceExt.includes(path12.extname(baseName))) return void 0;
2168
+ if (sourceExt.includes(path13.extname(baseName))) return void 0;
2169
2169
  const foundExt = sourceExt.find(
2170
2170
  (ext) => fs3.existsSync(`${localBin}${ext}`)
2171
2171
  );
@@ -2183,17 +2183,17 @@ Expecting one of '${allowedValues.join("', '")}'`);
2183
2183
  } catch {
2184
2184
  resolvedScriptPath = this._scriptPath;
2185
2185
  }
2186
- executableDir = path12.resolve(
2187
- path12.dirname(resolvedScriptPath),
2186
+ executableDir = path13.resolve(
2187
+ path13.dirname(resolvedScriptPath),
2188
2188
  executableDir
2189
2189
  );
2190
2190
  }
2191
2191
  if (executableDir) {
2192
2192
  let localFile = findFile(executableDir, executableFile);
2193
2193
  if (!localFile && !subcommand._executableFile && this._scriptPath) {
2194
- const legacyName = path12.basename(
2194
+ const legacyName = path13.basename(
2195
2195
  this._scriptPath,
2196
- path12.extname(this._scriptPath)
2196
+ path13.extname(this._scriptPath)
2197
2197
  );
2198
2198
  if (legacyName !== this._name) {
2199
2199
  localFile = findFile(
@@ -2204,7 +2204,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
2204
2204
  }
2205
2205
  executableFile = localFile || executableFile;
2206
2206
  }
2207
- launchWithNode = sourceExt.includes(path12.extname(executableFile));
2207
+ launchWithNode = sourceExt.includes(path13.extname(executableFile));
2208
2208
  let proc;
2209
2209
  if (process3.platform !== "win32") {
2210
2210
  if (launchWithNode) {
@@ -3051,7 +3051,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
3051
3051
  * @return {Command}
3052
3052
  */
3053
3053
  nameFromFilename(filename) {
3054
- this._name = path12.basename(filename, path12.extname(filename));
3054
+ this._name = path13.basename(filename, path13.extname(filename));
3055
3055
  return this;
3056
3056
  }
3057
3057
  /**
@@ -3065,9 +3065,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
3065
3065
  * @param {string} [path]
3066
3066
  * @return {(string|null|Command)}
3067
3067
  */
3068
- executableDir(path13) {
3069
- if (path13 === void 0) return this._executableDir;
3070
- this._executableDir = path13;
3068
+ executableDir(path14) {
3069
+ if (path14 === void 0) return this._executableDir;
3070
+ this._executableDir = path14;
3071
3071
  return this;
3072
3072
  }
3073
3073
  /**
@@ -17513,12 +17513,12 @@ var require_abstract_coder = __commonJS({
17513
17513
  var logger2 = new logger_1.Logger(_version_1.version);
17514
17514
  function checkResultErrors(result) {
17515
17515
  var errors = [];
17516
- var checkErrors = function(path12, object) {
17516
+ var checkErrors = function(path13, object) {
17517
17517
  if (!Array.isArray(object)) {
17518
17518
  return;
17519
17519
  }
17520
17520
  for (var key in object) {
17521
- var childPath = path12.slice();
17521
+ var childPath = path13.slice();
17522
17522
  childPath.push(key);
17523
17523
  try {
17524
17524
  checkErrors(childPath, object[key]);
@@ -31555,9 +31555,9 @@ var require_lib20 = __commonJS({
31555
31555
  if (index2 > 4294967295) {
31556
31556
  throw new Error("invalid index - " + String(index2));
31557
31557
  }
31558
- var path12 = this.path;
31559
- if (path12) {
31560
- path12 += "/" + (index2 & ~HardenedBit);
31558
+ var path13 = this.path;
31559
+ if (path13) {
31560
+ path13 += "/" + (index2 & ~HardenedBit);
31561
31561
  }
31562
31562
  var data = new Uint8Array(37);
31563
31563
  if (index2 & HardenedBit) {
@@ -31565,8 +31565,8 @@ var require_lib20 = __commonJS({
31565
31565
  throw new Error("cannot derive child of neutered node");
31566
31566
  }
31567
31567
  data.set((0, bytes_1.arrayify)(this.privateKey), 1);
31568
- if (path12) {
31569
- path12 += "'";
31568
+ if (path13) {
31569
+ path13 += "'";
31570
31570
  }
31571
31571
  } else {
31572
31572
  data.set((0, bytes_1.arrayify)(this.publicKey));
@@ -31585,21 +31585,21 @@ var require_lib20 = __commonJS({
31585
31585
  var ek = new signing_key_1.SigningKey((0, bytes_1.hexlify)(IL));
31586
31586
  Ki = ek._addPoint(this.publicKey);
31587
31587
  }
31588
- var mnemonicOrPath = path12;
31588
+ var mnemonicOrPath = path13;
31589
31589
  var srcMnemonic = this.mnemonic;
31590
31590
  if (srcMnemonic) {
31591
31591
  mnemonicOrPath = Object.freeze({
31592
31592
  phrase: srcMnemonic.phrase,
31593
- path: path12,
31593
+ path: path13,
31594
31594
  locale: srcMnemonic.locale || "en"
31595
31595
  });
31596
31596
  }
31597
31597
  return new HDNode2(_constructorGuard, ki, Ki, this.fingerprint, bytes32(IR), index2, this.depth + 1, mnemonicOrPath);
31598
31598
  };
31599
- HDNode2.prototype.derivePath = function(path12) {
31600
- var components = path12.split("/");
31599
+ HDNode2.prototype.derivePath = function(path13) {
31600
+ var components = path13.split("/");
31601
31601
  if (components.length === 0 || components[0] === "m" && this.depth !== 0) {
31602
- throw new Error("invalid path - " + path12);
31602
+ throw new Error("invalid path - " + path13);
31603
31603
  }
31604
31604
  if (components[0] === "m") {
31605
31605
  components.shift();
@@ -32353,9 +32353,9 @@ var require_utils4 = __commonJS({
32353
32353
  return (0, bytes_1.arrayify)(password);
32354
32354
  }
32355
32355
  exports2.getPassword = getPassword;
32356
- function searchPath(object, path12) {
32356
+ function searchPath(object, path13) {
32357
32357
  var currentChild = object;
32358
- var comps = path12.toLowerCase().split("/");
32358
+ var comps = path13.toLowerCase().split("/");
32359
32359
  for (var i = 0; i < comps.length; i++) {
32360
32360
  var matchingChild = null;
32361
32361
  for (var key in currentChild) {
@@ -33242,12 +33242,12 @@ var require_keystore = __commonJS({
33242
33242
  var mnemonicIv = (0, utils_1.looseArrayify)((0, utils_1.searchPath)(data, "x-ethers/mnemonicCounter"));
33243
33243
  var mnemonicCounter = new aes_js_1.default.Counter(mnemonicIv);
33244
33244
  var mnemonicAesCtr = new aes_js_1.default.ModeOfOperation.ctr(mnemonicKey, mnemonicCounter);
33245
- var path12 = (0, utils_1.searchPath)(data, "x-ethers/path") || hdnode_1.defaultPath;
33245
+ var path13 = (0, utils_1.searchPath)(data, "x-ethers/path") || hdnode_1.defaultPath;
33246
33246
  var locale = (0, utils_1.searchPath)(data, "x-ethers/locale") || "en";
33247
33247
  var entropy = (0, bytes_1.arrayify)(mnemonicAesCtr.decrypt(mnemonicCiphertext));
33248
33248
  try {
33249
33249
  var mnemonic = (0, hdnode_1.entropyToMnemonic)(entropy, locale);
33250
- var node = hdnode_1.HDNode.fromMnemonic(mnemonic, null, locale).derivePath(path12);
33250
+ var node = hdnode_1.HDNode.fromMnemonic(mnemonic, null, locale).derivePath(path13);
33251
33251
  if (node.privateKey != account.privateKey) {
33252
33252
  throw new Error("mnemonic mismatch");
33253
33253
  }
@@ -33357,12 +33357,12 @@ var require_keystore = __commonJS({
33357
33357
  var privateKey = (0, bytes_1.arrayify)(account.privateKey);
33358
33358
  var passwordBytes = (0, utils_1.getPassword)(password);
33359
33359
  var entropy = null;
33360
- var path12 = null;
33360
+ var path13 = null;
33361
33361
  var locale = null;
33362
33362
  if (hasMnemonic(account)) {
33363
33363
  var srcMnemonic = account.mnemonic;
33364
33364
  entropy = (0, bytes_1.arrayify)((0, hdnode_1.mnemonicToEntropy)(srcMnemonic.phrase, srcMnemonic.locale || "en"));
33365
- path12 = srcMnemonic.path || hdnode_1.defaultPath;
33365
+ path13 = srcMnemonic.path || hdnode_1.defaultPath;
33366
33366
  locale = srcMnemonic.locale || "en";
33367
33367
  }
33368
33368
  var client = options.client;
@@ -33448,7 +33448,7 @@ var require_keystore = __commonJS({
33448
33448
  gethFilename: "UTC--" + timestamp + "--" + data.address,
33449
33449
  mnemonicCounter: (0, bytes_1.hexlify)(mnemonicIv).substring(2),
33450
33450
  mnemonicCiphertext: (0, bytes_1.hexlify)(mnemonicCiphertext).substring(2),
33451
- path: path12,
33451
+ path: path13,
33452
33452
  locale,
33453
33453
  version: "0.1"
33454
33454
  };
@@ -34815,11 +34815,11 @@ var require_lib27 = __commonJS({
34815
34815
  Wallet2.fromEncryptedJsonSync = function(json, password) {
34816
34816
  return new Wallet2((0, json_wallets_1.decryptJsonWalletSync)(json, password));
34817
34817
  };
34818
- Wallet2.fromMnemonic = function(mnemonic, path12, wordlist) {
34819
- if (!path12) {
34820
- path12 = hdnode_1.defaultPath;
34818
+ Wallet2.fromMnemonic = function(mnemonic, path13, wordlist) {
34819
+ if (!path13) {
34820
+ path13 = hdnode_1.defaultPath;
34821
34821
  }
34822
- return new Wallet2(hdnode_1.HDNode.fromMnemonic(mnemonic, null, wordlist).derivePath(path12));
34822
+ return new Wallet2(hdnode_1.HDNode.fromMnemonic(mnemonic, null, wordlist).derivePath(path13));
34823
34823
  };
34824
34824
  return Wallet2;
34825
34825
  }(abstract_signer_1.Signer)
@@ -46882,13 +46882,13 @@ var require_ipc_provider = __commonJS({
46882
46882
  /** @class */
46883
46883
  function(_super) {
46884
46884
  __extends4(IpcProvider2, _super);
46885
- function IpcProvider2(path12, network) {
46885
+ function IpcProvider2(path13, network) {
46886
46886
  var _this = this;
46887
- if (path12 == null) {
46887
+ if (path13 == null) {
46888
46888
  logger2.throwError("missing path", logger_1.Logger.errors.MISSING_ARGUMENT, { arg: "path" });
46889
46889
  }
46890
- _this = _super.call(this, "ipc://" + path12, network) || this;
46891
- (0, properties_1.defineReadOnly)(_this, "path", path12);
46890
+ _this = _super.call(this, "ipc://" + path13, network) || this;
46891
+ (0, properties_1.defineReadOnly)(_this, "path", path13);
46892
46892
  return _this;
46893
46893
  }
46894
46894
  IpcProvider2.prototype.send = function(method, params) {
@@ -47487,21 +47487,21 @@ var require_web3_provider = __commonJS({
47487
47487
  if (provider == null) {
47488
47488
  logger2.throwArgumentError("missing provider", "provider", provider);
47489
47489
  }
47490
- var path12 = null;
47490
+ var path13 = null;
47491
47491
  var jsonRpcFetchFunc = null;
47492
47492
  var subprovider = null;
47493
47493
  if (typeof provider === "function") {
47494
- path12 = "unknown:";
47494
+ path13 = "unknown:";
47495
47495
  jsonRpcFetchFunc = provider;
47496
47496
  } else {
47497
- path12 = provider.host || provider.path || "";
47498
- if (!path12 && provider.isMetaMask) {
47499
- path12 = "metamask";
47497
+ path13 = provider.host || provider.path || "";
47498
+ if (!path13 && provider.isMetaMask) {
47499
+ path13 = "metamask";
47500
47500
  }
47501
47501
  subprovider = provider;
47502
47502
  if (provider.request) {
47503
- if (path12 === "") {
47504
- path12 = "eip-1193:";
47503
+ if (path13 === "") {
47504
+ path13 = "eip-1193:";
47505
47505
  }
47506
47506
  jsonRpcFetchFunc = buildEip1193Fetcher(provider);
47507
47507
  } else if (provider.sendAsync) {
@@ -47511,11 +47511,11 @@ var require_web3_provider = __commonJS({
47511
47511
  } else {
47512
47512
  logger2.throwArgumentError("unsupported provider", "provider", provider);
47513
47513
  }
47514
- if (!path12) {
47515
- path12 = "unknown:";
47514
+ if (!path13) {
47515
+ path13 = "unknown:";
47516
47516
  }
47517
47517
  }
47518
- _this = _super.call(this, path12, network) || this;
47518
+ _this = _super.call(this, path13, network) || this;
47519
47519
  (0, properties_1.defineReadOnly)(_this, "jsonRpcFetchFunc", jsonRpcFetchFunc);
47520
47520
  (0, properties_1.defineReadOnly)(_this, "provider", subprovider);
47521
47521
  return _this;
@@ -50245,7 +50245,7 @@ var require_data_point_deserializer = __commonJS({
50245
50245
  var require_node_gyp_build = __commonJS({
50246
50246
  "../../node_modules/node-gyp-build/node-gyp-build.js"(exports2, module2) {
50247
50247
  var fs3 = __require("fs");
50248
- var path12 = __require("path");
50248
+ var path13 = __require("path");
50249
50249
  var os2 = __require("os");
50250
50250
  var runtimeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
50251
50251
  var vars = process.config && process.config.variables || {};
@@ -50262,21 +50262,21 @@ var require_node_gyp_build = __commonJS({
50262
50262
  return runtimeRequire(load.resolve(dir));
50263
50263
  }
50264
50264
  load.resolve = load.path = function(dir) {
50265
- dir = path12.resolve(dir || ".");
50265
+ dir = path13.resolve(dir || ".");
50266
50266
  try {
50267
- var name = runtimeRequire(path12.join(dir, "package.json")).name.toUpperCase().replace(/-/g, "_");
50267
+ var name = runtimeRequire(path13.join(dir, "package.json")).name.toUpperCase().replace(/-/g, "_");
50268
50268
  if (process.env[name + "_PREBUILD"]) dir = process.env[name + "_PREBUILD"];
50269
50269
  } catch (err) {
50270
50270
  }
50271
50271
  if (!prebuildsOnly) {
50272
- var release = getFirst(path12.join(dir, "build/Release"), matchBuild);
50272
+ var release = getFirst(path13.join(dir, "build/Release"), matchBuild);
50273
50273
  if (release) return release;
50274
- var debug = getFirst(path12.join(dir, "build/Debug"), matchBuild);
50274
+ var debug = getFirst(path13.join(dir, "build/Debug"), matchBuild);
50275
50275
  if (debug) return debug;
50276
50276
  }
50277
50277
  var prebuild = resolve2(dir);
50278
50278
  if (prebuild) return prebuild;
50279
- var nearby = resolve2(path12.dirname(process.execPath));
50279
+ var nearby = resolve2(path13.dirname(process.execPath));
50280
50280
  if (nearby) return nearby;
50281
50281
  var target = [
50282
50282
  "platform=" + platform,
@@ -50293,14 +50293,14 @@ var require_node_gyp_build = __commonJS({
50293
50293
  ].filter(Boolean).join(" ");
50294
50294
  throw new Error("No native build was found for " + target + "\n loaded from: " + dir + "\n");
50295
50295
  function resolve2(dir2) {
50296
- var tuples = readdirSync(path12.join(dir2, "prebuilds")).map(parseTuple);
50296
+ var tuples = readdirSync(path13.join(dir2, "prebuilds")).map(parseTuple);
50297
50297
  var tuple = tuples.filter(matchTuple(platform, arch)).sort(compareTuples)[0];
50298
50298
  if (!tuple) return;
50299
- var prebuilds = path12.join(dir2, "prebuilds", tuple.name);
50299
+ var prebuilds = path13.join(dir2, "prebuilds", tuple.name);
50300
50300
  var parsed = readdirSync(prebuilds).map(parseTags);
50301
50301
  var candidates = parsed.filter(matchTags(runtime, abi33));
50302
50302
  var winner = candidates.sort(compareTags(runtime))[0];
50303
- if (winner) return path12.join(prebuilds, winner.file);
50303
+ if (winner) return path13.join(prebuilds, winner.file);
50304
50304
  }
50305
50305
  };
50306
50306
  function readdirSync(dir) {
@@ -50312,7 +50312,7 @@ var require_node_gyp_build = __commonJS({
50312
50312
  }
50313
50313
  function getFirst(dir, filter) {
50314
50314
  var files = readdirSync(dir).filter(filter);
50315
- return files[0] && path12.join(dir, files[0]);
50315
+ return files[0] && path13.join(dir, files[0]);
50316
50316
  }
50317
50317
  function matchBuild(name) {
50318
50318
  return /\.node$/.test(name);
@@ -63919,11 +63919,11 @@ var require_mime_types = __commonJS({
63919
63919
  }
63920
63920
  return exts[0];
63921
63921
  }
63922
- function lookup(path12) {
63923
- if (!path12 || typeof path12 !== "string") {
63922
+ function lookup(path13) {
63923
+ if (!path13 || typeof path13 !== "string") {
63924
63924
  return false;
63925
63925
  }
63926
- var extension2 = extname("x." + path12).toLowerCase().substr(1);
63926
+ var extension2 = extname("x." + path13).toLowerCase().substr(1);
63927
63927
  if (!extension2) {
63928
63928
  return false;
63929
63929
  }
@@ -64180,7 +64180,7 @@ var require_form_data = __commonJS({
64180
64180
  "../../node_modules/form-data/lib/form_data.js"(exports2, module2) {
64181
64181
  var CombinedStream = require_combined_stream();
64182
64182
  var util2 = __require("util");
64183
- var path12 = __require("path");
64183
+ var path13 = __require("path");
64184
64184
  var http2 = __require("http");
64185
64185
  var https = __require("https");
64186
64186
  var parseUrl = __require("url").parse;
@@ -64306,11 +64306,11 @@ var require_form_data = __commonJS({
64306
64306
  FormData2.prototype._getContentDisposition = function(value, options) {
64307
64307
  var filename, contentDisposition;
64308
64308
  if (typeof options.filepath === "string") {
64309
- filename = path12.normalize(options.filepath).replace(/\\/g, "/");
64309
+ filename = path13.normalize(options.filepath).replace(/\\/g, "/");
64310
64310
  } else if (options.filename || value.name || value.path) {
64311
- filename = path12.basename(options.filename || value.name || value.path);
64311
+ filename = path13.basename(options.filename || value.name || value.path);
64312
64312
  } else if (value.readable && value.hasOwnProperty("httpVersion")) {
64313
- filename = path12.basename(value.client._httpMessage.path || "");
64313
+ filename = path13.basename(value.client._httpMessage.path || "");
64314
64314
  }
64315
64315
  if (filename) {
64316
64316
  contentDisposition = 'filename="' + filename + '"';
@@ -66324,9 +66324,9 @@ var require_axios = __commonJS({
66324
66324
  function removeBrackets(key) {
66325
66325
  return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key;
66326
66326
  }
66327
- function renderKey(path12, key, dots) {
66328
- if (!path12) return key;
66329
- return path12.concat(key).map(function each(token, i) {
66327
+ function renderKey(path13, key, dots) {
66328
+ if (!path13) return key;
66329
+ return path13.concat(key).map(function each(token, i) {
66330
66330
  token = removeBrackets(token);
66331
66331
  return !dots && i ? "[" + token + "]" : token;
66332
66332
  }).join(dots ? "." : "");
@@ -66371,9 +66371,9 @@ var require_axios = __commonJS({
66371
66371
  }
66372
66372
  return value;
66373
66373
  }
66374
- function defaultVisitor(value, key, path12) {
66374
+ function defaultVisitor(value, key, path13) {
66375
66375
  let arr = value;
66376
- if (value && !path12 && typeof value === "object") {
66376
+ if (value && !path13 && typeof value === "object") {
66377
66377
  if (utils$1.endsWith(key, "{}")) {
66378
66378
  key = metaTokens ? key : key.slice(0, -2);
66379
66379
  value = JSON.stringify(value);
@@ -66392,7 +66392,7 @@ var require_axios = __commonJS({
66392
66392
  if (isVisitable(value)) {
66393
66393
  return true;
66394
66394
  }
66395
- formData.append(renderKey(path12, key, dots), convertValue(value));
66395
+ formData.append(renderKey(path13, key, dots), convertValue(value));
66396
66396
  return false;
66397
66397
  }
66398
66398
  const stack = [];
@@ -66401,10 +66401,10 @@ var require_axios = __commonJS({
66401
66401
  convertValue,
66402
66402
  isVisitable
66403
66403
  });
66404
- function build(value, path12) {
66404
+ function build(value, path13) {
66405
66405
  if (utils$1.isUndefined(value)) return;
66406
66406
  if (stack.indexOf(value) !== -1) {
66407
- throw Error("Circular reference detected in " + path12.join("."));
66407
+ throw Error("Circular reference detected in " + path13.join("."));
66408
66408
  }
66409
66409
  stack.push(value);
66410
66410
  utils$1.forEach(value, function each(el, key) {
@@ -66412,11 +66412,11 @@ var require_axios = __commonJS({
66412
66412
  formData,
66413
66413
  el,
66414
66414
  utils$1.isString(key) ? key.trim() : key,
66415
- path12,
66415
+ path13,
66416
66416
  exposedHelpers
66417
66417
  );
66418
66418
  if (result === true) {
66419
- build(el, path12 ? path12.concat(key) : [key]);
66419
+ build(el, path13 ? path13.concat(key) : [key]);
66420
66420
  }
66421
66421
  });
66422
66422
  stack.pop();
@@ -66585,7 +66585,7 @@ var require_axios = __commonJS({
66585
66585
  };
66586
66586
  function toURLEncodedForm(data, options) {
66587
66587
  return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
66588
- visitor: function(value, key, path12, helpers) {
66588
+ visitor: function(value, key, path13, helpers) {
66589
66589
  if (platform.isNode && utils$1.isBuffer(value)) {
66590
66590
  this.append(key, value.toString("base64"));
66591
66591
  return false;
@@ -66612,11 +66612,11 @@ var require_axios = __commonJS({
66612
66612
  return obj;
66613
66613
  }
66614
66614
  function formDataToJSON(formData) {
66615
- function buildPath(path12, value, target, index2) {
66616
- let name = path12[index2++];
66615
+ function buildPath(path13, value, target, index2) {
66616
+ let name = path13[index2++];
66617
66617
  if (name === "__proto__") return true;
66618
66618
  const isNumericKey = Number.isFinite(+name);
66619
- const isLast = index2 >= path12.length;
66619
+ const isLast = index2 >= path13.length;
66620
66620
  name = !name && utils$1.isArray(target) ? target.length : name;
66621
66621
  if (isLast) {
66622
66622
  if (utils$1.hasOwnProp(target, name)) {
@@ -66629,7 +66629,7 @@ var require_axios = __commonJS({
66629
66629
  if (!target[name] || !utils$1.isObject(target[name])) {
66630
66630
  target[name] = [];
66631
66631
  }
66632
- const result = buildPath(path12, value, target[name], index2);
66632
+ const result = buildPath(path13, value, target[name], index2);
66633
66633
  if (result && utils$1.isArray(target[name])) {
66634
66634
  target[name] = arrayToObject(target[name]);
66635
66635
  }
@@ -67687,9 +67687,9 @@ var require_axios = __commonJS({
67687
67687
  auth = urlUsername + ":" + urlPassword;
67688
67688
  }
67689
67689
  auth && headers.delete("authorization");
67690
- let path12;
67690
+ let path13;
67691
67691
  try {
67692
- path12 = buildURL(
67692
+ path13 = buildURL(
67693
67693
  parsed.pathname + parsed.search,
67694
67694
  config.params,
67695
67695
  config.paramsSerializer
@@ -67707,7 +67707,7 @@ var require_axios = __commonJS({
67707
67707
  false
67708
67708
  );
67709
67709
  const options = {
67710
- path: path12,
67710
+ path: path13,
67711
67711
  method,
67712
67712
  headers: headers.toJSON(),
67713
67713
  agents: { http: config.httpAgent, https: config.httpsAgent },
@@ -67933,10 +67933,10 @@ var require_axios = __commonJS({
67933
67933
  var cookies = platform.hasStandardBrowserEnv ? (
67934
67934
  // Standard browser envs support document.cookie
67935
67935
  {
67936
- write(name, value, expires, path12, domain, secure) {
67936
+ write(name, value, expires, path13, domain, secure) {
67937
67937
  const cookie = [name + "=" + encodeURIComponent(value)];
67938
67938
  utils$1.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
67939
- utils$1.isString(path12) && cookie.push("path=" + path12);
67939
+ utils$1.isString(path13) && cookie.push("path=" + path13);
67940
67940
  utils$1.isString(domain) && cookie.push("domain=" + domain);
67941
67941
  secure === true && cookie.push("secure");
67942
67942
  document.cookie = cookie.join("; ");
@@ -70478,8 +70478,8 @@ var require_parseUtil = __commonJS({
70478
70478
  var errors_1 = require_errors();
70479
70479
  var en_1 = __importDefault4(require_en());
70480
70480
  var makeIssue2 = (params) => {
70481
- const { data, path: path12, errorMaps, issueData } = params;
70482
- const fullPath = [...path12, ...issueData.path || []];
70481
+ const { data, path: path13, errorMaps, issueData } = params;
70482
+ const fullPath = [...path13, ...issueData.path || []];
70483
70483
  const fullIssue = {
70484
70484
  ...issueData,
70485
70485
  path: fullPath
@@ -70645,11 +70645,11 @@ var require_types3 = __commonJS({
70645
70645
  var util_1 = require_util();
70646
70646
  var ZodError_1 = require_ZodError();
70647
70647
  var ParseInputLazyPath2 = class {
70648
- constructor(parent, value, path12, key) {
70648
+ constructor(parent, value, path13, key) {
70649
70649
  this._cachedPath = [];
70650
70650
  this.parent = parent;
70651
70651
  this.data = value;
70652
- this._path = path12;
70652
+ this._path = path13;
70653
70653
  this._key = key;
70654
70654
  }
70655
70655
  get path() {
@@ -77259,11 +77259,11 @@ var require_lodash = __commonJS({
77259
77259
  return isFunction2(object[key]);
77260
77260
  });
77261
77261
  }
77262
- function baseGet2(object, path12) {
77263
- path12 = castPath2(path12, object);
77264
- var index2 = 0, length = path12.length;
77262
+ function baseGet2(object, path13) {
77263
+ path13 = castPath2(path13, object);
77264
+ var index2 = 0, length = path13.length;
77265
77265
  while (object != null && index2 < length) {
77266
- object = object[toKey2(path12[index2++])];
77266
+ object = object[toKey2(path13[index2++])];
77267
77267
  }
77268
77268
  return index2 && index2 == length ? object : undefined2;
77269
77269
  }
@@ -77327,10 +77327,10 @@ var require_lodash = __commonJS({
77327
77327
  });
77328
77328
  return accumulator;
77329
77329
  }
77330
- function baseInvoke(object, path12, args) {
77331
- path12 = castPath2(path12, object);
77332
- object = parent(object, path12);
77333
- var func = object == null ? object : object[toKey2(last(path12))];
77330
+ function baseInvoke(object, path13, args) {
77331
+ path13 = castPath2(path13, object);
77332
+ object = parent(object, path13);
77333
+ var func = object == null ? object : object[toKey2(last(path13))];
77334
77334
  return func == null ? undefined2 : apply(func, object, args);
77335
77335
  }
77336
77336
  function baseIsArguments2(value) {
@@ -77486,13 +77486,13 @@ var require_lodash = __commonJS({
77486
77486
  return object === source || baseIsMatch2(object, source, matchData);
77487
77487
  };
77488
77488
  }
77489
- function baseMatchesProperty2(path12, srcValue) {
77490
- if (isKey2(path12) && isStrictComparable2(srcValue)) {
77491
- return matchesStrictComparable2(toKey2(path12), srcValue);
77489
+ function baseMatchesProperty2(path13, srcValue) {
77490
+ if (isKey2(path13) && isStrictComparable2(srcValue)) {
77491
+ return matchesStrictComparable2(toKey2(path13), srcValue);
77492
77492
  }
77493
77493
  return function(object) {
77494
- var objValue = get2(object, path12);
77495
- return objValue === undefined2 && objValue === srcValue ? hasIn2(object, path12) : baseIsEqual2(srcValue, objValue, COMPARE_PARTIAL_FLAG7 | COMPARE_UNORDERED_FLAG5);
77494
+ var objValue = get2(object, path13);
77495
+ return objValue === undefined2 && objValue === srcValue ? hasIn2(object, path13) : baseIsEqual2(srcValue, objValue, COMPARE_PARTIAL_FLAG7 | COMPARE_UNORDERED_FLAG5);
77496
77496
  };
77497
77497
  }
77498
77498
  function baseMerge(object, source, srcIndex, customizer, stack) {
@@ -77589,23 +77589,23 @@ var require_lodash = __commonJS({
77589
77589
  });
77590
77590
  }
77591
77591
  function basePick(object, paths) {
77592
- return basePickBy(object, paths, function(value, path12) {
77593
- return hasIn2(object, path12);
77592
+ return basePickBy(object, paths, function(value, path13) {
77593
+ return hasIn2(object, path13);
77594
77594
  });
77595
77595
  }
77596
77596
  function basePickBy(object, paths, predicate) {
77597
77597
  var index2 = -1, length = paths.length, result2 = {};
77598
77598
  while (++index2 < length) {
77599
- var path12 = paths[index2], value = baseGet2(object, path12);
77600
- if (predicate(value, path12)) {
77601
- baseSet(result2, castPath2(path12, object), value);
77599
+ var path13 = paths[index2], value = baseGet2(object, path13);
77600
+ if (predicate(value, path13)) {
77601
+ baseSet(result2, castPath2(path13, object), value);
77602
77602
  }
77603
77603
  }
77604
77604
  return result2;
77605
77605
  }
77606
- function basePropertyDeep2(path12) {
77606
+ function basePropertyDeep2(path13) {
77607
77607
  return function(object) {
77608
- return baseGet2(object, path12);
77608
+ return baseGet2(object, path13);
77609
77609
  };
77610
77610
  }
77611
77611
  function basePullAll(array, values2, iteratee2, comparator) {
@@ -77679,14 +77679,14 @@ var require_lodash = __commonJS({
77679
77679
  var array = values(collection);
77680
77680
  return shuffleSelf(array, baseClamp(n, 0, array.length));
77681
77681
  }
77682
- function baseSet(object, path12, value, customizer) {
77682
+ function baseSet(object, path13, value, customizer) {
77683
77683
  if (!isObject2(object)) {
77684
77684
  return object;
77685
77685
  }
77686
- path12 = castPath2(path12, object);
77687
- var index2 = -1, length = path12.length, lastIndex = length - 1, nested = object;
77686
+ path13 = castPath2(path13, object);
77687
+ var index2 = -1, length = path13.length, lastIndex = length - 1, nested = object;
77688
77688
  while (nested != null && ++index2 < length) {
77689
- var key = toKey2(path12[index2]), newValue = value;
77689
+ var key = toKey2(path13[index2]), newValue = value;
77690
77690
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
77691
77691
  return object;
77692
77692
  }
@@ -77694,7 +77694,7 @@ var require_lodash = __commonJS({
77694
77694
  var objValue = nested[key];
77695
77695
  newValue = customizer ? customizer(objValue, key, nested) : undefined2;
77696
77696
  if (newValue === undefined2) {
77697
- newValue = isObject2(objValue) ? objValue : isIndex2(path12[index2 + 1]) ? [] : {};
77697
+ newValue = isObject2(objValue) ? objValue : isIndex2(path13[index2 + 1]) ? [] : {};
77698
77698
  }
77699
77699
  }
77700
77700
  assignValue(nested, key, newValue);
@@ -77860,13 +77860,13 @@ var require_lodash = __commonJS({
77860
77860
  }
77861
77861
  return result2;
77862
77862
  }
77863
- function baseUnset(object, path12) {
77864
- path12 = castPath2(path12, object);
77865
- object = parent(object, path12);
77866
- return object == null || delete object[toKey2(last(path12))];
77863
+ function baseUnset(object, path13) {
77864
+ path13 = castPath2(path13, object);
77865
+ object = parent(object, path13);
77866
+ return object == null || delete object[toKey2(last(path13))];
77867
77867
  }
77868
- function baseUpdate(object, path12, updater, customizer) {
77869
- return baseSet(object, path12, updater(baseGet2(object, path12)), customizer);
77868
+ function baseUpdate(object, path13, updater, customizer) {
77869
+ return baseSet(object, path13, updater(baseGet2(object, path13)), customizer);
77870
77870
  }
77871
77871
  function baseWhile(array, predicate, isDrop, fromRight) {
77872
77872
  var length = array.length, index2 = fromRight ? length : -1;
@@ -78749,11 +78749,11 @@ var require_lodash = __commonJS({
78749
78749
  var match2 = source.match(reWrapDetails);
78750
78750
  return match2 ? match2[1].split(reSplitDetails) : [];
78751
78751
  }
78752
- function hasPath2(object, path12, hasFunc) {
78753
- path12 = castPath2(path12, object);
78754
- var index2 = -1, length = path12.length, result2 = false;
78752
+ function hasPath2(object, path13, hasFunc) {
78753
+ path13 = castPath2(path13, object);
78754
+ var index2 = -1, length = path13.length, result2 = false;
78755
78755
  while (++index2 < length) {
78756
- var key = toKey2(path12[index2]);
78756
+ var key = toKey2(path13[index2]);
78757
78757
  if (!(result2 = object != null && hasFunc(object, key))) {
78758
78758
  break;
78759
78759
  }
@@ -78955,8 +78955,8 @@ var require_lodash = __commonJS({
78955
78955
  return apply(func, this, otherArgs);
78956
78956
  };
78957
78957
  }
78958
- function parent(object, path12) {
78959
- return path12.length < 2 ? object : baseGet2(object, baseSlice2(path12, 0, -1));
78958
+ function parent(object, path13) {
78959
+ return path13.length < 2 ? object : baseGet2(object, baseSlice2(path13, 0, -1));
78960
78960
  }
78961
78961
  function reorder(array, indexes) {
78962
78962
  var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
@@ -79591,10 +79591,10 @@ var require_lodash = __commonJS({
79591
79591
  }
79592
79592
  return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
79593
79593
  }
79594
- var invokeMap = baseRest(function(collection, path12, args) {
79595
- var index2 = -1, isFunc = typeof path12 == "function", result2 = isArrayLike2(collection) ? Array2(collection.length) : [];
79594
+ var invokeMap = baseRest(function(collection, path13, args) {
79595
+ var index2 = -1, isFunc = typeof path13 == "function", result2 = isArrayLike2(collection) ? Array2(collection.length) : [];
79596
79596
  baseEach(collection, function(value) {
79597
- result2[++index2] = isFunc ? apply(path12, value, args) : baseInvoke(value, path12, args);
79597
+ result2[++index2] = isFunc ? apply(path13, value, args) : baseInvoke(value, path13, args);
79598
79598
  });
79599
79599
  return result2;
79600
79600
  });
@@ -80246,15 +80246,15 @@ var require_lodash = __commonJS({
80246
80246
  function functionsIn(object) {
80247
80247
  return object == null ? [] : baseFunctions(object, keysIn(object));
80248
80248
  }
80249
- function get2(object, path12, defaultValue) {
80250
- var result2 = object == null ? undefined2 : baseGet2(object, path12);
80249
+ function get2(object, path13, defaultValue) {
80250
+ var result2 = object == null ? undefined2 : baseGet2(object, path13);
80251
80251
  return result2 === undefined2 ? defaultValue : result2;
80252
80252
  }
80253
- function has2(object, path12) {
80254
- return object != null && hasPath2(object, path12, baseHas);
80253
+ function has2(object, path13) {
80254
+ return object != null && hasPath2(object, path13, baseHas);
80255
80255
  }
80256
- function hasIn2(object, path12) {
80257
- return object != null && hasPath2(object, path12, baseHasIn2);
80256
+ function hasIn2(object, path13) {
80257
+ return object != null && hasPath2(object, path13, baseHasIn2);
80258
80258
  }
80259
80259
  var invert2 = createInverter(function(result2, value, key) {
80260
80260
  if (value != null && typeof value.toString != "function") {
@@ -80307,10 +80307,10 @@ var require_lodash = __commonJS({
80307
80307
  return result2;
80308
80308
  }
80309
80309
  var isDeep = false;
80310
- paths = arrayMap2(paths, function(path12) {
80311
- path12 = castPath2(path12, object);
80312
- isDeep || (isDeep = path12.length > 1);
80313
- return path12;
80310
+ paths = arrayMap2(paths, function(path13) {
80311
+ path13 = castPath2(path13, object);
80312
+ isDeep || (isDeep = path13.length > 1);
80313
+ return path13;
80314
80314
  });
80315
80315
  copyObject(object, getAllKeysIn(object), result2);
80316
80316
  if (isDeep) {
@@ -80336,19 +80336,19 @@ var require_lodash = __commonJS({
80336
80336
  return [prop];
80337
80337
  });
80338
80338
  predicate = getIteratee(predicate);
80339
- return basePickBy(object, props, function(value, path12) {
80340
- return predicate(value, path12[0]);
80339
+ return basePickBy(object, props, function(value, path13) {
80340
+ return predicate(value, path13[0]);
80341
80341
  });
80342
80342
  }
80343
- function result(object, path12, defaultValue) {
80344
- path12 = castPath2(path12, object);
80345
- var index2 = -1, length = path12.length;
80343
+ function result(object, path13, defaultValue) {
80344
+ path13 = castPath2(path13, object);
80345
+ var index2 = -1, length = path13.length;
80346
80346
  if (!length) {
80347
80347
  length = 1;
80348
80348
  object = undefined2;
80349
80349
  }
80350
80350
  while (++index2 < length) {
80351
- var value = object == null ? undefined2 : object[toKey2(path12[index2])];
80351
+ var value = object == null ? undefined2 : object[toKey2(path13[index2])];
80352
80352
  if (value === undefined2) {
80353
80353
  index2 = length;
80354
80354
  value = defaultValue;
@@ -80357,12 +80357,12 @@ var require_lodash = __commonJS({
80357
80357
  }
80358
80358
  return object;
80359
80359
  }
80360
- function set(object, path12, value) {
80361
- return object == null ? object : baseSet(object, path12, value);
80360
+ function set(object, path13, value) {
80361
+ return object == null ? object : baseSet(object, path13, value);
80362
80362
  }
80363
- function setWith(object, path12, value, customizer) {
80363
+ function setWith(object, path13, value, customizer) {
80364
80364
  customizer = typeof customizer == "function" ? customizer : undefined2;
80365
- return object == null ? object : baseSet(object, path12, value, customizer);
80365
+ return object == null ? object : baseSet(object, path13, value, customizer);
80366
80366
  }
80367
80367
  var toPairs = createToPairs(keys2);
80368
80368
  var toPairsIn = createToPairs(keysIn);
@@ -80384,15 +80384,15 @@ var require_lodash = __commonJS({
80384
80384
  });
80385
80385
  return accumulator;
80386
80386
  }
80387
- function unset(object, path12) {
80388
- return object == null ? true : baseUnset(object, path12);
80387
+ function unset(object, path13) {
80388
+ return object == null ? true : baseUnset(object, path13);
80389
80389
  }
80390
- function update(object, path12, updater) {
80391
- return object == null ? object : baseUpdate(object, path12, castFunction(updater));
80390
+ function update(object, path13, updater) {
80391
+ return object == null ? object : baseUpdate(object, path13, castFunction(updater));
80392
80392
  }
80393
- function updateWith(object, path12, updater, customizer) {
80393
+ function updateWith(object, path13, updater, customizer) {
80394
80394
  customizer = typeof customizer == "function" ? customizer : undefined2;
80395
- return object == null ? object : baseUpdate(object, path12, castFunction(updater), customizer);
80395
+ return object == null ? object : baseUpdate(object, path13, castFunction(updater), customizer);
80396
80396
  }
80397
80397
  function values(object) {
80398
80398
  return object == null ? [] : baseValues(object, keys2(object));
@@ -80773,17 +80773,17 @@ var require_lodash = __commonJS({
80773
80773
  function matches(source) {
80774
80774
  return baseMatches2(baseClone(source, CLONE_DEEP_FLAG));
80775
80775
  }
80776
- function matchesProperty(path12, srcValue) {
80777
- return baseMatchesProperty2(path12, baseClone(srcValue, CLONE_DEEP_FLAG));
80776
+ function matchesProperty(path13, srcValue) {
80777
+ return baseMatchesProperty2(path13, baseClone(srcValue, CLONE_DEEP_FLAG));
80778
80778
  }
80779
- var method = baseRest(function(path12, args) {
80779
+ var method = baseRest(function(path13, args) {
80780
80780
  return function(object) {
80781
- return baseInvoke(object, path12, args);
80781
+ return baseInvoke(object, path13, args);
80782
80782
  };
80783
80783
  });
80784
80784
  var methodOf = baseRest(function(object, args) {
80785
- return function(path12) {
80786
- return baseInvoke(object, path12, args);
80785
+ return function(path13) {
80786
+ return baseInvoke(object, path13, args);
80787
80787
  };
80788
80788
  });
80789
80789
  function mixin(object, source, options) {
@@ -80830,12 +80830,12 @@ var require_lodash = __commonJS({
80830
80830
  var over = createOver(arrayMap2);
80831
80831
  var overEvery = createOver(arrayEvery);
80832
80832
  var overSome = createOver(arraySome2);
80833
- function property2(path12) {
80834
- return isKey2(path12) ? baseProperty2(toKey2(path12)) : basePropertyDeep2(path12);
80833
+ function property2(path13) {
80834
+ return isKey2(path13) ? baseProperty2(toKey2(path13)) : basePropertyDeep2(path13);
80835
80835
  }
80836
80836
  function propertyOf(object) {
80837
- return function(path12) {
80838
- return object == null ? undefined2 : baseGet2(object, path12);
80837
+ return function(path13) {
80838
+ return object == null ? undefined2 : baseGet2(object, path13);
80839
80839
  };
80840
80840
  }
80841
80841
  var range2 = createRange();
@@ -81288,12 +81288,12 @@ var require_lodash = __commonJS({
81288
81288
  LazyWrapper.prototype.findLast = function(predicate) {
81289
81289
  return this.reverse().find(predicate);
81290
81290
  };
81291
- LazyWrapper.prototype.invokeMap = baseRest(function(path12, args) {
81292
- if (typeof path12 == "function") {
81291
+ LazyWrapper.prototype.invokeMap = baseRest(function(path13, args) {
81292
+ if (typeof path13 == "function") {
81293
81293
  return new LazyWrapper(this);
81294
81294
  }
81295
81295
  return this.map(function(value) {
81296
- return baseInvoke(value, path12, args);
81296
+ return baseInvoke(value, path13, args);
81297
81297
  });
81298
81298
  });
81299
81299
  LazyWrapper.prototype.reject = function(predicate) {
@@ -101636,12 +101636,12 @@ var require_abstract_coder2 = __commonJS({
101636
101636
  exports2.Result = Result;
101637
101637
  function checkResultErrors(result) {
101638
101638
  const errors = [];
101639
- const checkErrors = function(path12, object) {
101639
+ const checkErrors = function(path13, object) {
101640
101640
  if (!Array.isArray(object)) {
101641
101641
  return;
101642
101642
  }
101643
101643
  for (let key in object) {
101644
- const childPath = path12.slice();
101644
+ const childPath = path13.slice();
101645
101645
  childPath.push(key);
101646
101646
  try {
101647
101647
  checkErrors(childPath, object[key]);
@@ -125081,9 +125081,9 @@ var require_provider_ipcsocket = __commonJS({
125081
125081
  get socket() {
125082
125082
  return this.#socket;
125083
125083
  }
125084
- constructor(path12, network, options) {
125084
+ constructor(path13, network, options) {
125085
125085
  super(network, options);
125086
- this.#socket = (0, net_1.connect)(path12);
125086
+ this.#socket = (0, net_1.connect)(path13);
125087
125087
  this.socket.on("ready", async () => {
125088
125088
  try {
125089
125089
  await this._start();
@@ -126394,11 +126394,11 @@ var require_utils11 = __commonJS({
126394
126394
  function spelunk(object, _path) {
126395
126395
  const match2 = _path.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);
126396
126396
  (0, index_js_1.assertArgument)(match2 != null, "invalid path", "path", _path);
126397
- const path12 = match2[1];
126397
+ const path13 = match2[1];
126398
126398
  const type = match2[3];
126399
126399
  const reqd = match2[4] === "!";
126400
126400
  let cur = object;
126401
- for (const comp of path12.toLowerCase().split(".")) {
126401
+ for (const comp of path13.toLowerCase().split(".")) {
126402
126402
  if (Array.isArray(cur)) {
126403
126403
  if (!comp.match(/^[0-9]+$/)) {
126404
126404
  break;
@@ -126420,7 +126420,7 @@ var require_utils11 = __commonJS({
126420
126420
  break;
126421
126421
  }
126422
126422
  }
126423
- (0, index_js_1.assertArgument)(!reqd || cur != null, "missing required value", "path", path12);
126423
+ (0, index_js_1.assertArgument)(!reqd || cur != null, "missing required value", "path", path13);
126424
126424
  if (type && cur != null) {
126425
126425
  if (type === "int") {
126426
126426
  if (typeof cur === "string" && cur.match(/^-?[0-9]+$/)) {
@@ -126445,7 +126445,7 @@ var require_utils11 = __commonJS({
126445
126445
  if (type === typeof cur) {
126446
126446
  return cur;
126447
126447
  }
126448
- (0, index_js_1.assertArgument)(false, `wrong type found for ${type} `, "path", path12);
126448
+ (0, index_js_1.assertArgument)(false, `wrong type found for ${type} `, "path", path13);
126449
126449
  }
126450
126450
  return cur;
126451
126451
  }
@@ -126643,7 +126643,7 @@ var require_json_keystore = __commonJS({
126643
126643
  };
126644
126644
  if (account.mnemonic) {
126645
126645
  const client = options.client != null ? options.client : `ethers/${_version_js_1.version}`;
126646
- const path12 = account.mnemonic.path || defaultPath;
126646
+ const path13 = account.mnemonic.path || defaultPath;
126647
126647
  const locale = account.mnemonic.locale || "en";
126648
126648
  const mnemonicKey = key.slice(32, 64);
126649
126649
  const entropy = (0, index_js_4.getBytes)(account.mnemonic.entropy, "account.mnemonic.entropy");
@@ -126656,7 +126656,7 @@ var require_json_keystore = __commonJS({
126656
126656
  data["x-ethers"] = {
126657
126657
  client,
126658
126658
  gethFilename,
126659
- path: path12,
126659
+ path: path13,
126660
126660
  locale,
126661
126661
  mnemonicCounter: (0, index_js_4.hexlify)(mnemonicIv).substring(2),
126662
126662
  mnemonicCiphertext: (0, index_js_4.hexlify)(mnemonicCiphertext).substring(2),
@@ -126741,11 +126741,11 @@ var require_hdwallet = __commonJS({
126741
126741
  const I = (0, index_js_4.getBytes)((0, index_js_1.computeHmac)("sha512", chainCode, data));
126742
126742
  return { IL: I.slice(0, 32), IR: I.slice(32) };
126743
126743
  }
126744
- function derivePath(node, path12) {
126745
- const components = path12.split("/");
126746
- (0, index_js_4.assertArgument)(components.length > 0, "invalid path", "path", path12);
126744
+ function derivePath(node, path13) {
126745
+ const components = path13.split("/");
126746
+ (0, index_js_4.assertArgument)(components.length > 0, "invalid path", "path", path13);
126747
126747
  if (components[0] === "m") {
126748
- (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", path12);
126748
+ (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", path13);
126749
126749
  components.shift();
126750
126750
  }
126751
126751
  let result = node;
@@ -126815,7 +126815,7 @@ var require_hdwallet = __commonJS({
126815
126815
  /**
126816
126816
  * @private
126817
126817
  */
126818
- constructor(guard, signingKey, parentFingerprint, chainCode, path12, index2, depth, mnemonic, provider) {
126818
+ constructor(guard, signingKey, parentFingerprint, chainCode, path13, index2, depth, mnemonic, provider) {
126819
126819
  super(signingKey, provider);
126820
126820
  (0, index_js_4.assertPrivate)(guard, _guard, "HDNodeWallet");
126821
126821
  (0, index_js_4.defineProperties)(this, { publicKey: signingKey.compressedPublicKey });
@@ -126824,7 +126824,7 @@ var require_hdwallet = __commonJS({
126824
126824
  parentFingerprint,
126825
126825
  fingerprint,
126826
126826
  chainCode,
126827
- path: path12,
126827
+ path: path13,
126828
126828
  index: index2,
126829
126829
  depth
126830
126830
  });
@@ -126908,22 +126908,22 @@ var require_hdwallet = __commonJS({
126908
126908
  deriveChild(_index) {
126909
126909
  const index2 = (0, index_js_4.getNumber)(_index, "index");
126910
126910
  (0, index_js_4.assertArgument)(index2 <= 4294967295, "invalid index", "index", index2);
126911
- let path12 = this.path;
126912
- if (path12) {
126913
- path12 += "/" + (index2 & ~HardenedBit);
126911
+ let path13 = this.path;
126912
+ if (path13) {
126913
+ path13 += "/" + (index2 & ~HardenedBit);
126914
126914
  if (index2 & HardenedBit) {
126915
- path12 += "'";
126915
+ path13 += "'";
126916
126916
  }
126917
126917
  }
126918
126918
  const { IR, IL } = ser_I(index2, this.chainCode, this.publicKey, this.privateKey);
126919
126919
  const ki = new index_js_1.SigningKey((0, index_js_4.toBeHex)(((0, index_js_4.toBigInt)(IL) + BigInt(this.privateKey)) % N, 32));
126920
- return new _HDNodeWallet(_guard, ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path12, index2, this.depth + 1, this.mnemonic, this.provider);
126920
+ return new _HDNodeWallet(_guard, ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path13, index2, this.depth + 1, this.mnemonic, this.provider);
126921
126921
  }
126922
126922
  /**
126923
126923
  * Return the HDNode for %%path%% from this node.
126924
126924
  */
126925
- derivePath(path12) {
126926
- return derivePath(this, path12);
126925
+ derivePath(path13) {
126926
+ return derivePath(this, path13);
126927
126927
  }
126928
126928
  static #fromSeed(_seed, mnemonic) {
126929
126929
  (0, index_js_4.assertArgument)((0, index_js_4.isBytesLike)(_seed), "invalid seed", "seed", "[REDACTED]");
@@ -126968,43 +126968,43 @@ var require_hdwallet = __commonJS({
126968
126968
  /**
126969
126969
  * Creates a new random HDNode.
126970
126970
  */
126971
- static createRandom(password, path12, wordlist) {
126971
+ static createRandom(password, path13, wordlist) {
126972
126972
  if (password == null) {
126973
126973
  password = "";
126974
126974
  }
126975
- if (path12 == null) {
126976
- path12 = exports2.defaultPath;
126975
+ if (path13 == null) {
126976
+ path13 = exports2.defaultPath;
126977
126977
  }
126978
126978
  if (wordlist == null) {
126979
126979
  wordlist = lang_en_js_1.LangEn.wordlist();
126980
126980
  }
126981
126981
  const mnemonic = mnemonic_js_1.Mnemonic.fromEntropy((0, index_js_1.randomBytes)(16), password, wordlist);
126982
- return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path12);
126982
+ return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path13);
126983
126983
  }
126984
126984
  /**
126985
126985
  * Create an HD Node from %%mnemonic%%.
126986
126986
  */
126987
- static fromMnemonic(mnemonic, path12) {
126988
- if (!path12) {
126989
- path12 = exports2.defaultPath;
126987
+ static fromMnemonic(mnemonic, path13) {
126988
+ if (!path13) {
126989
+ path13 = exports2.defaultPath;
126990
126990
  }
126991
- return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path12);
126991
+ return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path13);
126992
126992
  }
126993
126993
  /**
126994
126994
  * Creates an HD Node from a mnemonic %%phrase%%.
126995
126995
  */
126996
- static fromPhrase(phrase, password, path12, wordlist) {
126996
+ static fromPhrase(phrase, password, path13, wordlist) {
126997
126997
  if (password == null) {
126998
126998
  password = "";
126999
126999
  }
127000
- if (path12 == null) {
127001
- path12 = exports2.defaultPath;
127000
+ if (path13 == null) {
127001
+ path13 = exports2.defaultPath;
127002
127002
  }
127003
127003
  if (wordlist == null) {
127004
127004
  wordlist = lang_en_js_1.LangEn.wordlist();
127005
127005
  }
127006
127006
  const mnemonic = mnemonic_js_1.Mnemonic.fromPhrase(phrase, password, wordlist);
127007
- return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path12);
127007
+ return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path13);
127008
127008
  }
127009
127009
  /**
127010
127010
  * Creates an HD Node from a %%seed%%.
@@ -127057,7 +127057,7 @@ var require_hdwallet = __commonJS({
127057
127057
  /**
127058
127058
  * @private
127059
127059
  */
127060
- constructor(guard, address, publicKey, parentFingerprint, chainCode, path12, index2, depth, provider) {
127060
+ constructor(guard, address, publicKey, parentFingerprint, chainCode, path13, index2, depth, provider) {
127061
127061
  super(address, provider);
127062
127062
  (0, index_js_4.assertPrivate)(guard, _guard, "HDNodeVoidWallet");
127063
127063
  (0, index_js_4.defineProperties)(this, { publicKey });
@@ -127067,7 +127067,7 @@ var require_hdwallet = __commonJS({
127067
127067
  fingerprint,
127068
127068
  parentFingerprint,
127069
127069
  chainCode,
127070
- path: path12,
127070
+ path: path13,
127071
127071
  index: index2,
127072
127072
  depth
127073
127073
  });
@@ -127105,23 +127105,23 @@ var require_hdwallet = __commonJS({
127105
127105
  deriveChild(_index) {
127106
127106
  const index2 = (0, index_js_4.getNumber)(_index, "index");
127107
127107
  (0, index_js_4.assertArgument)(index2 <= 4294967295, "invalid index", "index", index2);
127108
- let path12 = this.path;
127109
- if (path12) {
127110
- path12 += "/" + (index2 & ~HardenedBit);
127108
+ let path13 = this.path;
127109
+ if (path13) {
127110
+ path13 += "/" + (index2 & ~HardenedBit);
127111
127111
  if (index2 & HardenedBit) {
127112
- path12 += "'";
127112
+ path13 += "'";
127113
127113
  }
127114
127114
  }
127115
127115
  const { IR, IL } = ser_I(index2, this.chainCode, this.publicKey, null);
127116
127116
  const Ki = index_js_1.SigningKey.addPoints(IL, this.publicKey, true);
127117
127117
  const address = (0, index_js_3.computeAddress)(Ki);
127118
- return new _HDNodeVoidWallet(_guard, address, Ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path12, index2, this.depth + 1, this.provider);
127118
+ return new _HDNodeVoidWallet(_guard, address, Ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path13, index2, this.depth + 1, this.provider);
127119
127119
  }
127120
127120
  /**
127121
127121
  * Return the signer for %%path%% from this node.
127122
127122
  */
127123
- derivePath(path12) {
127124
- return derivePath(this, path12);
127123
+ derivePath(path13) {
127124
+ return derivePath(this, path13);
127125
127125
  }
127126
127126
  };
127127
127127
  exports2.HDNodeVoidWallet = HDNodeVoidWallet;
@@ -133944,8 +133944,8 @@ var require_req = __commonJS({
133944
133944
  if (req.originalUrl) {
133945
133945
  _req.url = req.originalUrl;
133946
133946
  } else {
133947
- const path12 = req.path;
133948
- _req.url = typeof path12 === "string" ? path12 : req.url ? req.url.path || req.url : void 0;
133947
+ const path13 = req.path;
133948
+ _req.url = typeof path13 === "string" ? path13 : req.url ? req.url.path || req.url : void 0;
133949
133949
  }
133950
133950
  if (req.query) {
133951
133951
  _req.query = req.query;
@@ -134134,17 +134134,17 @@ var require_parse = __commonJS({
134134
134134
  const wildcards = [];
134135
134135
  var wcLen = 0;
134136
134136
  const secret = paths.reduce(function(o, strPath, ix) {
134137
- var path12 = strPath.match(rx).map((p) => p.replace(/'|"|`/g, ""));
134137
+ var path13 = strPath.match(rx).map((p) => p.replace(/'|"|`/g, ""));
134138
134138
  const leadingBracket = strPath[0] === "[";
134139
- path12 = path12.map((p) => {
134139
+ path13 = path13.map((p) => {
134140
134140
  if (p[0] === "[") return p.substr(1, p.length - 2);
134141
134141
  else return p;
134142
134142
  });
134143
- const star = path12.indexOf("*");
134143
+ const star = path13.indexOf("*");
134144
134144
  if (star > -1) {
134145
- const before = path12.slice(0, star);
134145
+ const before = path13.slice(0, star);
134146
134146
  const beforeStr = before.join(".");
134147
- const after = path12.slice(star + 1, path12.length);
134147
+ const after = path13.slice(star + 1, path13.length);
134148
134148
  const nested = after.length > 0;
134149
134149
  wcLen++;
134150
134150
  wildcards.push({
@@ -134155,7 +134155,7 @@ var require_parse = __commonJS({
134155
134155
  });
134156
134156
  } else {
134157
134157
  o[strPath] = {
134158
- path: path12,
134158
+ path: path13,
134159
134159
  val: void 0,
134160
134160
  precensored: false,
134161
134161
  circle: "",
@@ -134201,20 +134201,20 @@ var require_redactor = __commonJS({
134201
134201
  return redact;
134202
134202
  }
134203
134203
  function redactTmpl(secret, isCensorFct, censorFctTakesPath) {
134204
- return Object.keys(secret).map((path12) => {
134205
- const { escPath, leadingBracket, path: arrPath } = secret[path12];
134204
+ return Object.keys(secret).map((path13) => {
134205
+ const { escPath, leadingBracket, path: arrPath } = secret[path13];
134206
134206
  const skip = leadingBracket ? 1 : 0;
134207
134207
  const delim = leadingBracket ? "" : ".";
134208
134208
  const hops = [];
134209
134209
  var match2;
134210
- while ((match2 = rx.exec(path12)) !== null) {
134210
+ while ((match2 = rx.exec(path13)) !== null) {
134211
134211
  const [, ix] = match2;
134212
134212
  const { index: index2, input } = match2;
134213
134213
  if (index2 > skip) hops.push(input.substring(0, index2 - (ix ? 0 : 1)));
134214
134214
  }
134215
134215
  var existence = hops.map((p) => `o${delim}${p}`).join(" && ");
134216
- if (existence.length === 0) existence += `o${delim}${path12} != null`;
134217
- else existence += ` && o${delim}${path12} != null`;
134216
+ if (existence.length === 0) existence += `o${delim}${path13} != null`;
134217
+ else existence += ` && o${delim}${path13} != null`;
134218
134218
  const circularDetection = `
134219
134219
  switch (true) {
134220
134220
  ${hops.reverse().map((p) => `
@@ -134227,12 +134227,12 @@ var require_redactor = __commonJS({
134227
134227
  const censorArgs = censorFctTakesPath ? `val, ${JSON.stringify(arrPath)}` : `val`;
134228
134228
  return `
134229
134229
  if (${existence}) {
134230
- const val = o${delim}${path12}
134230
+ const val = o${delim}${path13}
134231
134231
  if (val === censor) {
134232
134232
  secret[${escPath}].precensored = true
134233
134233
  } else {
134234
134234
  secret[${escPath}].val = val
134235
- o${delim}${path12} = ${isCensorFct ? `censor(${censorArgs})` : "censor"}
134235
+ o${delim}${path13} = ${isCensorFct ? `censor(${censorArgs})` : "censor"}
134236
134236
  ${circularDetection}
134237
134237
  }
134238
134238
  }
@@ -134284,13 +134284,13 @@ var require_modifiers = __commonJS({
134284
134284
  target[k] = values[i];
134285
134285
  }
134286
134286
  }
134287
- function groupRedact(o, path12, censor, isCensorFct, censorFctTakesPath) {
134288
- const target = get2(o, path12);
134287
+ function groupRedact(o, path13, censor, isCensorFct, censorFctTakesPath) {
134288
+ const target = get2(o, path13);
134289
134289
  if (target == null || typeof target === "string") return { keys: null, values: null, target, flat: true };
134290
134290
  const keys2 = Object.keys(target);
134291
134291
  const keysLength = keys2.length;
134292
- const pathLength = path12.length;
134293
- const pathWithKey = censorFctTakesPath ? [...path12] : void 0;
134292
+ const pathLength = path13.length;
134293
+ const pathWithKey = censorFctTakesPath ? [...path13] : void 0;
134294
134294
  const values = new Array(keysLength);
134295
134295
  for (var i = 0; i < keysLength; i++) {
134296
134296
  const key = keys2[i];
@@ -134308,29 +134308,29 @@ var require_modifiers = __commonJS({
134308
134308
  }
134309
134309
  function nestedRestore(instructions) {
134310
134310
  for (let i = 0; i < instructions.length; i++) {
134311
- const { target, path: path12, value } = instructions[i];
134311
+ const { target, path: path13, value } = instructions[i];
134312
134312
  let current = target;
134313
- for (let i2 = path12.length - 1; i2 > 0; i2--) {
134314
- current = current[path12[i2]];
134313
+ for (let i2 = path13.length - 1; i2 > 0; i2--) {
134314
+ current = current[path13[i2]];
134315
134315
  }
134316
- current[path12[0]] = value;
134316
+ current[path13[0]] = value;
134317
134317
  }
134318
134318
  }
134319
- function nestedRedact(store, o, path12, ns, censor, isCensorFct, censorFctTakesPath) {
134320
- const target = get2(o, path12);
134319
+ function nestedRedact(store, o, path13, ns, censor, isCensorFct, censorFctTakesPath) {
134320
+ const target = get2(o, path13);
134321
134321
  if (target == null) return;
134322
134322
  const keys2 = Object.keys(target);
134323
134323
  const keysLength = keys2.length;
134324
134324
  for (var i = 0; i < keysLength; i++) {
134325
134325
  const key = keys2[i];
134326
- specialSet(store, target, key, path12, ns, censor, isCensorFct, censorFctTakesPath);
134326
+ specialSet(store, target, key, path13, ns, censor, isCensorFct, censorFctTakesPath);
134327
134327
  }
134328
134328
  return store;
134329
134329
  }
134330
134330
  function has2(obj, prop) {
134331
134331
  return obj !== void 0 && obj !== null ? "hasOwn" in Object ? Object.hasOwn(obj, prop) : Object.prototype.hasOwnProperty.call(obj, prop) : false;
134332
134332
  }
134333
- function specialSet(store, o, k, path12, afterPath, censor, isCensorFct, censorFctTakesPath) {
134333
+ function specialSet(store, o, k, path13, afterPath, censor, isCensorFct, censorFctTakesPath) {
134334
134334
  const afterPathLen = afterPath.length;
134335
134335
  const lastPathIndex = afterPathLen - 1;
134336
134336
  const originalKey = k;
@@ -134373,7 +134373,7 @@ var require_modifiers = __commonJS({
134373
134373
  if (consecutive) {
134374
134374
  redactPathCurrent = node(redactPathCurrent, wck, depth);
134375
134375
  level = i;
134376
- ov = iterateNthLevel(wcov, level - 1, k, path12, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, o[originalKey], depth + 1);
134376
+ ov = iterateNthLevel(wcov, level - 1, k, path13, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, o[originalKey], depth + 1);
134377
134377
  } else {
134378
134378
  if (kIsWc || typeof wcov === "object" && wcov !== null && k in wcov) {
134379
134379
  if (kIsWc) {
@@ -134381,7 +134381,7 @@ var require_modifiers = __commonJS({
134381
134381
  } else {
134382
134382
  ov = wcov[k];
134383
134383
  }
134384
- nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...path12, originalKey, ...afterPath]) : censor(ov) : censor;
134384
+ nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...path13, originalKey, ...afterPath]) : censor(ov) : censor;
134385
134385
  if (kIsWc) {
134386
134386
  const rv = restoreInstr(node(redactPathCurrent, wck, depth), ov, o[originalKey]);
134387
134387
  store.push(rv);
@@ -134404,7 +134404,7 @@ var require_modifiers = __commonJS({
134404
134404
  } else {
134405
134405
  ov = n[k];
134406
134406
  redactPathCurrent = node(redactPathCurrent, k, depth);
134407
- nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...path12, originalKey, ...afterPath]) : censor(ov) : censor;
134407
+ nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...path13, originalKey, ...afterPath]) : censor(ov) : censor;
134408
134408
  if (has2(n, k) && nv === ov || nv === void 0 && censor !== void 0) {
134409
134409
  } else {
134410
134410
  const rv = restoreInstr(redactPathCurrent, ov, o[originalKey]);
@@ -134427,7 +134427,7 @@ var require_modifiers = __commonJS({
134427
134427
  }
134428
134428
  return n;
134429
134429
  }
134430
- function iterateNthLevel(wcov, level, k, path12, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, parent, depth) {
134430
+ function iterateNthLevel(wcov, level, k, path13, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, parent, depth) {
134431
134431
  if (level === 0) {
134432
134432
  if (kIsWc || typeof wcov === "object" && wcov !== null && k in wcov) {
134433
134433
  if (kIsWc) {
@@ -134435,7 +134435,7 @@ var require_modifiers = __commonJS({
134435
134435
  } else {
134436
134436
  ov = wcov[k];
134437
134437
  }
134438
- nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...path12, originalKey, ...afterPath]) : censor(ov) : censor;
134438
+ nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...path13, originalKey, ...afterPath]) : censor(ov) : censor;
134439
134439
  if (kIsWc) {
134440
134440
  const rv = restoreInstr(redactPathCurrent, ov, parent);
134441
134441
  store.push(rv);
@@ -134454,7 +134454,7 @@ var require_modifiers = __commonJS({
134454
134454
  for (const key in wcov) {
134455
134455
  if (typeof wcov[key] === "object") {
134456
134456
  redactPathCurrent = node(redactPathCurrent, key, depth);
134457
- iterateNthLevel(wcov[key], level - 1, k, path12, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, parent, depth + 1);
134457
+ iterateNthLevel(wcov[key], level - 1, k, path13, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, parent, depth + 1);
134458
134458
  }
134459
134459
  }
134460
134460
  }
@@ -134476,12 +134476,12 @@ var require_modifiers = __commonJS({
134476
134476
  }
134477
134477
  function restoreInstr(node2, value, target) {
134478
134478
  let current = node2;
134479
- const path12 = [];
134479
+ const path13 = [];
134480
134480
  do {
134481
- path12.push(current.key);
134481
+ path13.push(current.key);
134482
134482
  current = current.parent;
134483
134483
  } while (current.parent != null);
134484
- return { path: path12, value, target };
134484
+ return { path: path13, value, target };
134485
134485
  }
134486
134486
  }
134487
134487
  });
@@ -134511,10 +134511,10 @@ var require_restorer = __commonJS({
134511
134511
  };
134512
134512
  }
134513
134513
  function resetTmpl(secret, paths) {
134514
- return paths.map((path12) => {
134515
- const { circle, escPath, leadingBracket } = secret[path12];
134514
+ return paths.map((path13) => {
134515
+ const { circle, escPath, leadingBracket } = secret[path13];
134516
134516
  const delim = leadingBracket ? "" : ".";
134517
- const reset2 = circle ? `o.${circle} = secret[${escPath}].val` : `o${delim}${path12} = secret[${escPath}].val`;
134517
+ const reset2 = circle ? `o.${circle} = secret[${escPath}].val` : `o${delim}${path13} = secret[${escPath}].val`;
134518
134518
  const clear = `secret[${escPath}].val = undefined`;
134519
134519
  return `
134520
134520
  if (secret[${escPath}].val !== undefined) {
@@ -134746,8 +134746,8 @@ var require_redaction = __commonJS({
134746
134746
  if (shape[k] === null) {
134747
134747
  o[k] = (value) => topCensor(value, [k]);
134748
134748
  } else {
134749
- const wrappedCensor = typeof censor === "function" ? (value, path12) => {
134750
- return censor(value, [k, ...path12]);
134749
+ const wrappedCensor = typeof censor === "function" ? (value, path13) => {
134750
+ return censor(value, [k, ...path13]);
134751
134751
  } : censor;
134752
134752
  o[k] = fastRedact({
134753
134753
  paths: shape[k],
@@ -134950,7 +134950,7 @@ var require_sonic_boom = __commonJS({
134950
134950
  var fs3 = __require("fs");
134951
134951
  var EventEmitter = __require("events");
134952
134952
  var inherits = __require("util").inherits;
134953
- var path12 = __require("path");
134953
+ var path13 = __require("path");
134954
134954
  var sleep = require_atomic_sleep();
134955
134955
  var assert = __require("assert");
134956
134956
  var BUSY_WRITE_TIMEOUT = 100;
@@ -135004,7 +135004,7 @@ var require_sonic_boom = __commonJS({
135004
135004
  const mode = sonic2.mode;
135005
135005
  if (sonic2.sync) {
135006
135006
  try {
135007
- if (sonic2.mkdir) fs3.mkdirSync(path12.dirname(file), { recursive: true });
135007
+ if (sonic2.mkdir) fs3.mkdirSync(path13.dirname(file), { recursive: true });
135008
135008
  const fd = fs3.openSync(file, flags, mode);
135009
135009
  fileOpened(null, fd);
135010
135010
  } catch (err) {
@@ -135012,7 +135012,7 @@ var require_sonic_boom = __commonJS({
135012
135012
  throw err;
135013
135013
  }
135014
135014
  } else if (sonic2.mkdir) {
135015
- fs3.mkdir(path12.dirname(file), { recursive: true }, (err) => {
135015
+ fs3.mkdir(path13.dirname(file), { recursive: true }, (err) => {
135016
135016
  if (err) return fileOpened(err);
135017
135017
  fs3.open(file, flags, mode, fileOpened);
135018
135018
  });
@@ -135024,7 +135024,7 @@ var require_sonic_boom = __commonJS({
135024
135024
  if (!(this instanceof SonicBoom)) {
135025
135025
  return new SonicBoom(opts);
135026
135026
  }
135027
- let { fd, dest, minLength, maxLength, maxWrite, periodicFlush, sync, append = true, mkdir: mkdir3, retryEAGAIN, fsync, contentMode, mode } = opts || {};
135027
+ let { fd, dest, minLength, maxLength, maxWrite, periodicFlush, sync, append = true, mkdir: mkdir4, retryEAGAIN, fsync, contentMode, mode } = opts || {};
135028
135028
  fd = fd || dest;
135029
135029
  this._len = 0;
135030
135030
  this.fd = -1;
@@ -135049,7 +135049,7 @@ var require_sonic_boom = __commonJS({
135049
135049
  this.append = append || false;
135050
135050
  this.mode = mode;
135051
135051
  this.retryEAGAIN = retryEAGAIN || (() => true);
135052
- this.mkdir = mkdir3 || false;
135052
+ this.mkdir = mkdir4 || false;
135053
135053
  let fsWriteSync;
135054
135054
  let fsWrite;
135055
135055
  if (contentMode === kContentModeBuffer) {
@@ -142386,11 +142386,11 @@ var require_soljson = __commonJS({
142386
142386
  var ENVIRONMENT_IS_WORKER = typeof importScripts == "function";
142387
142387
  var ENVIRONMENT_IS_NODE = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string";
142388
142388
  var scriptDirectory = "";
142389
- function locateFile(path12) {
142389
+ function locateFile(path13) {
142390
142390
  if (Module["locateFile"]) {
142391
- return Module["locateFile"](path12, scriptDirectory);
142391
+ return Module["locateFile"](path13, scriptDirectory);
142392
142392
  }
142393
- return scriptDirectory + path12;
142393
+ return scriptDirectory + path13;
142394
142394
  }
142395
142395
  var read_;
142396
142396
  var readAsync;
@@ -143181,7 +143181,7 @@ var require_soljson = __commonJS({
143181
143181
  var ret = UTF8ToString(ptr);
143182
143182
  return ret;
143183
143183
  } };
143184
- function ___syscall_faccessat(dirfd, path12, amode, flags) {
143184
+ function ___syscall_faccessat(dirfd, path13, amode, flags) {
143185
143185
  }
143186
143186
  function ___syscall_fcntl64(fd, cmd, varargs) {
143187
143187
  SYSCALLS.varargs = varargs;
@@ -143191,10 +143191,10 @@ var require_soljson = __commonJS({
143191
143191
  SYSCALLS.varargs = varargs;
143192
143192
  return 0;
143193
143193
  }
143194
- function ___syscall_openat(dirfd, path12, flags, varargs) {
143194
+ function ___syscall_openat(dirfd, path13, flags, varargs) {
143195
143195
  SYSCALLS.varargs = varargs;
143196
143196
  }
143197
- function ___syscall_stat64(path12, buf) {
143197
+ function ___syscall_stat64(path13, buf) {
143198
143198
  }
143199
143199
  function __emscripten_date_now() {
143200
143200
  return Date.now();
@@ -145123,9 +145123,9 @@ var require_filesystem = __commonJS({
145123
145123
  "use strict";
145124
145124
  var fs3 = __require("fs");
145125
145125
  var LDD_PATH = "/usr/bin/ldd";
145126
- var readFileSync = (path12) => fs3.readFileSync(path12, "utf-8");
145127
- var readFile10 = (path12) => new Promise((resolve2, reject) => {
145128
- fs3.readFile(path12, "utf-8", (err, data) => {
145126
+ var readFileSync = (path13) => fs3.readFileSync(path13, "utf-8");
145127
+ var readFile10 = (path13) => new Promise((resolve2, reject) => {
145128
+ fs3.readFile(path13, "utf-8", (err, data) => {
145129
145129
  if (err) {
145130
145130
  reject(err);
145131
145131
  } else {
@@ -145355,7 +145355,7 @@ var require_detect_libc = __commonJS({
145355
145355
  var require_node_gyp_build_optional_packages = __commonJS({
145356
145356
  "../../node_modules/node-gyp-build-optional-packages/index.js"(exports2, module2) {
145357
145357
  var fs3 = __require("fs");
145358
- var path12 = __require("path");
145358
+ var path13 = __require("path");
145359
145359
  var url = __require("url");
145360
145360
  var vars = process.config && process.config.variables || {};
145361
145361
  var prebuildsOnly = !!process.env.PREBUILDS_ONLY;
@@ -145378,30 +145378,30 @@ var require_node_gyp_build_optional_packages = __commonJS({
145378
145378
  return __require(load.path(dir));
145379
145379
  }
145380
145380
  load.path = function(dir) {
145381
- dir = path12.resolve(dir || ".");
145381
+ dir = path13.resolve(dir || ".");
145382
145382
  var packageName = "";
145383
145383
  try {
145384
145384
  if (typeof __webpack_require__ === "function")
145385
- packageName = __non_webpack_require__(path12.join(dir, "package.json")).name;
145385
+ packageName = __non_webpack_require__(path13.join(dir, "package.json")).name;
145386
145386
  else
145387
- packageName = __require(path12.join(dir, "package.json")).name;
145387
+ packageName = __require(path13.join(dir, "package.json")).name;
145388
145388
  var varName = packageName.toUpperCase().replace(/-/g, "_") + "_PREBUILD";
145389
145389
  if (process.env[varName]) dir = process.env[varName];
145390
145390
  } catch (err) {
145391
145391
  }
145392
145392
  if (!prebuildsOnly) {
145393
- var release = getFirst(path12.join(dir, "build/Release"), matchBuild);
145393
+ var release = getFirst(path13.join(dir, "build/Release"), matchBuild);
145394
145394
  if (release) return release;
145395
- var debug = getFirst(path12.join(dir, "build/Debug"), matchBuild);
145395
+ var debug = getFirst(path13.join(dir, "build/Debug"), matchBuild);
145396
145396
  if (debug) return debug;
145397
145397
  }
145398
145398
  var prebuild = resolve2(dir);
145399
145399
  if (prebuild) return prebuild;
145400
- var nearby = resolve2(path12.dirname(process.execPath));
145400
+ var nearby = resolve2(path13.dirname(process.execPath));
145401
145401
  if (nearby) return nearby;
145402
145402
  var platformPackage = (packageName[0] == "@" ? "" : "@" + packageName + "/") + packageName + "-" + platform + "-" + arch;
145403
145403
  try {
145404
- var prebuildPackage = path12.dirname(__require("module").createRequire(url.pathToFileURL(path12.join(dir, "package.json"))).resolve(platformPackage));
145404
+ var prebuildPackage = path13.dirname(__require("module").createRequire(url.pathToFileURL(path13.join(dir, "package.json"))).resolve(platformPackage));
145405
145405
  return resolveFile(prebuildPackage);
145406
145406
  } catch (error) {
145407
145407
  }
@@ -145420,16 +145420,16 @@ var require_node_gyp_build_optional_packages = __commonJS({
145420
145420
  ].filter(Boolean).join(" ");
145421
145421
  throw new Error("No native build was found for " + target + "\n attempted loading from: " + dir + " and package: " + platformPackage + "\n");
145422
145422
  function resolve2(dir2) {
145423
- var tuples = readdirSync(path12.join(dir2, "prebuilds")).map(parseTuple);
145423
+ var tuples = readdirSync(path13.join(dir2, "prebuilds")).map(parseTuple);
145424
145424
  var tuple = tuples.filter(matchTuple(platform, arch)).sort(compareTuples)[0];
145425
145425
  if (!tuple) return;
145426
- return resolveFile(path12.join(dir2, "prebuilds", tuple.name));
145426
+ return resolveFile(path13.join(dir2, "prebuilds", tuple.name));
145427
145427
  }
145428
145428
  function resolveFile(prebuilds) {
145429
145429
  var parsed = readdirSync(prebuilds).map(parseTags);
145430
145430
  var candidates = parsed.filter(matchTags(runtime, abi33));
145431
145431
  var winner = candidates.sort(compareTags(runtime))[0];
145432
- if (winner) return path12.join(prebuilds, winner.file);
145432
+ if (winner) return path13.join(prebuilds, winner.file);
145433
145433
  }
145434
145434
  };
145435
145435
  function readdirSync(dir) {
@@ -145441,7 +145441,7 @@ var require_node_gyp_build_optional_packages = __commonJS({
145441
145441
  }
145442
145442
  function getFirst(dir, filter) {
145443
145443
  var files = readdirSync(dir).filter(filter);
145444
- return files[0] && path12.join(dir, files[0]);
145444
+ return files[0] && path13.join(dir, files[0]);
145445
145445
  }
145446
145446
  function matchBuild(name) {
145447
145447
  return /\.node$/.test(name);
@@ -149104,14 +149104,14 @@ var require_url_state_machine = __commonJS({
149104
149104
  return url.replace(/\u0009|\u000A|\u000D/g, "");
149105
149105
  }
149106
149106
  function shortenPath(url) {
149107
- const path12 = url.path;
149108
- if (path12.length === 0) {
149107
+ const path13 = url.path;
149108
+ if (path13.length === 0) {
149109
149109
  return;
149110
149110
  }
149111
- if (url.scheme === "file" && path12.length === 1 && isNormalizedWindowsDriveLetter(path12[0])) {
149111
+ if (url.scheme === "file" && path13.length === 1 && isNormalizedWindowsDriveLetter(path13[0])) {
149112
149112
  return;
149113
149113
  }
149114
- path12.pop();
149114
+ path13.pop();
149115
149115
  }
149116
149116
  function includesCredentials(url) {
149117
149117
  return url.username !== "" || url.password !== "";
@@ -183862,9 +183862,9 @@ var require_setupKzg = __commonJS({
183862
183862
  Object.defineProperty(exports2, "__esModule", { value: true });
183863
183863
  exports2.setupKzg = setupKzg;
183864
183864
  var defineKzg_js_1 = require_defineKzg();
183865
- function setupKzg(parameters, path12) {
183865
+ function setupKzg(parameters, path13) {
183866
183866
  try {
183867
- parameters.loadTrustedSetup(path12);
183867
+ parameters.loadTrustedSetup(path13);
183868
183868
  } catch (e) {
183869
183869
  const error = e;
183870
183870
  if (!error.message.includes("trusted setup is already loaded"))
@@ -230178,13 +230178,13 @@ function __disposeResources(env2) {
230178
230178
  }
230179
230179
  return next();
230180
230180
  }
230181
- function __rewriteRelativeImportExtension(path12, preserveJsx) {
230182
- if (typeof path12 === "string" && /^\.\.?\//.test(path12)) {
230183
- return path12.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {
230181
+ function __rewriteRelativeImportExtension(path13, preserveJsx) {
230182
+ if (typeof path13 === "string" && /^\.\.?\//.test(path13)) {
230183
+ return path13.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {
230184
230184
  return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : d + ext + "." + cm.toLowerCase() + "js";
230185
230185
  });
230186
230186
  }
230187
- return path12;
230187
+ return path13;
230188
230188
  }
230189
230189
  var extendStatics2, __assign2, __createBinding2, __setModuleDefault2, ownKeys, _SuppressedError, tslib_es6_default;
230190
230190
  var init_tslib_es62 = __esm({
@@ -236377,14 +236377,14 @@ var require_lib41 = __commonJS({
236377
236377
  }
236378
236378
  this.pubHash = hash160(this.pubKey);
236379
236379
  }
236380
- derive(path12) {
236381
- if (!/^[mM]'?/.test(path12)) {
236380
+ derive(path13) {
236381
+ if (!/^[mM]'?/.test(path13)) {
236382
236382
  throw new Error('Path must start with "m" or "M"');
236383
236383
  }
236384
- if (/^[mM]'?$/.test(path12)) {
236384
+ if (/^[mM]'?$/.test(path13)) {
236385
236385
  return this;
236386
236386
  }
236387
- const parts = path12.replace(/^[mM]'?\//, "").split("/");
236387
+ const parts = path13.replace(/^[mM]'?\//, "").split("/");
236388
236388
  let child = this;
236389
236389
  for (const c of parts) {
236390
236390
  const m = /^(\d+)('?)$/.exec(c);
@@ -257507,8 +257507,8 @@ var require_hdKeyToAccount = __commonJS({
257507
257507
  exports2.hdKeyToAccount = hdKeyToAccount;
257508
257508
  var toHex_js_1 = require_toHex();
257509
257509
  var privateKeyToAccount_js_1 = require_privateKeyToAccount();
257510
- function hdKeyToAccount(hdKey_, { accountIndex = 0, addressIndex = 0, changeIndex = 0, path: path12, ...options } = {}) {
257511
- const hdKey = hdKey_.derive(path12 || `m/44'/60'/${accountIndex}'/${changeIndex}/${addressIndex}`);
257510
+ function hdKeyToAccount(hdKey_, { accountIndex = 0, addressIndex = 0, changeIndex = 0, path: path13, ...options } = {}) {
257511
+ const hdKey = hdKey_.derive(path13 || `m/44'/60'/${accountIndex}'/${changeIndex}/${addressIndex}`);
257512
257512
  const account = (0, privateKeyToAccount_js_1.privateKeyToAccount)((0, toHex_js_1.toHex)(hdKey.privateKey), options);
257513
257513
  return {
257514
257514
  ...account,
@@ -264646,12 +264646,12 @@ var require_abstract_coder3 = __commonJS({
264646
264646
  exports2.Result = Result;
264647
264647
  function checkResultErrors(result) {
264648
264648
  const errors = [];
264649
- const checkErrors = function(path12, object) {
264649
+ const checkErrors = function(path13, object) {
264650
264650
  if (!Array.isArray(object)) {
264651
264651
  return;
264652
264652
  }
264653
264653
  for (let key in object) {
264654
- const childPath = path12.slice();
264654
+ const childPath = path13.slice();
264655
264655
  childPath.push(key);
264656
264656
  try {
264657
264657
  checkErrors(childPath, object[key]);
@@ -287355,9 +287355,9 @@ var require_provider_ipcsocket2 = __commonJS({
287355
287355
  get socket() {
287356
287356
  return this.#socket;
287357
287357
  }
287358
- constructor(path12, network, options) {
287358
+ constructor(path13, network, options) {
287359
287359
  super(network, options);
287360
- this.#socket = (0, net_1.connect)(path12);
287360
+ this.#socket = (0, net_1.connect)(path13);
287361
287361
  this.socket.on("ready", async () => {
287362
287362
  try {
287363
287363
  await this._start();
@@ -288044,11 +288044,11 @@ var require_utils34 = __commonJS({
288044
288044
  function spelunk(object, _path) {
288045
288045
  const match2 = _path.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);
288046
288046
  (0, index_js_1.assertArgument)(match2 != null, "invalid path", "path", _path);
288047
- const path12 = match2[1];
288047
+ const path13 = match2[1];
288048
288048
  const type = match2[3];
288049
288049
  const reqd = match2[4] === "!";
288050
288050
  let cur = object;
288051
- for (const comp of path12.toLowerCase().split(".")) {
288051
+ for (const comp of path13.toLowerCase().split(".")) {
288052
288052
  if (Array.isArray(cur)) {
288053
288053
  if (!comp.match(/^[0-9]+$/)) {
288054
288054
  break;
@@ -288070,7 +288070,7 @@ var require_utils34 = __commonJS({
288070
288070
  break;
288071
288071
  }
288072
288072
  }
288073
- (0, index_js_1.assertArgument)(!reqd || cur != null, "missing required value", "path", path12);
288073
+ (0, index_js_1.assertArgument)(!reqd || cur != null, "missing required value", "path", path13);
288074
288074
  if (type && cur != null) {
288075
288075
  if (type === "int") {
288076
288076
  if (typeof cur === "string" && cur.match(/^-?[0-9]+$/)) {
@@ -288095,7 +288095,7 @@ var require_utils34 = __commonJS({
288095
288095
  if (type === typeof cur) {
288096
288096
  return cur;
288097
288097
  }
288098
- (0, index_js_1.assertArgument)(false, `wrong type found for ${type} `, "path", path12);
288098
+ (0, index_js_1.assertArgument)(false, `wrong type found for ${type} `, "path", path13);
288099
288099
  }
288100
288100
  return cur;
288101
288101
  }
@@ -288293,7 +288293,7 @@ var require_json_keystore2 = __commonJS({
288293
288293
  };
288294
288294
  if (account.mnemonic) {
288295
288295
  const client = options.client != null ? options.client : `ethers/${_version_js_1.version}`;
288296
- const path12 = account.mnemonic.path || defaultPath;
288296
+ const path13 = account.mnemonic.path || defaultPath;
288297
288297
  const locale = account.mnemonic.locale || "en";
288298
288298
  const mnemonicKey = key.slice(32, 64);
288299
288299
  const entropy = (0, index_js_4.getBytes)(account.mnemonic.entropy, "account.mnemonic.entropy");
@@ -288306,7 +288306,7 @@ var require_json_keystore2 = __commonJS({
288306
288306
  data["x-ethers"] = {
288307
288307
  client,
288308
288308
  gethFilename,
288309
- path: path12,
288309
+ path: path13,
288310
288310
  locale,
288311
288311
  mnemonicCounter: (0, index_js_4.hexlify)(mnemonicIv).substring(2),
288312
288312
  mnemonicCiphertext: (0, index_js_4.hexlify)(mnemonicCiphertext).substring(2),
@@ -288391,11 +288391,11 @@ var require_hdwallet2 = __commonJS({
288391
288391
  const I = (0, index_js_4.getBytes)((0, index_js_1.computeHmac)("sha512", chainCode, data));
288392
288392
  return { IL: I.slice(0, 32), IR: I.slice(32) };
288393
288393
  }
288394
- function derivePath(node, path12) {
288395
- const components = path12.split("/");
288396
- (0, index_js_4.assertArgument)(components.length > 0, "invalid path", "path", path12);
288394
+ function derivePath(node, path13) {
288395
+ const components = path13.split("/");
288396
+ (0, index_js_4.assertArgument)(components.length > 0, "invalid path", "path", path13);
288397
288397
  if (components[0] === "m") {
288398
- (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", path12);
288398
+ (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", path13);
288399
288399
  components.shift();
288400
288400
  }
288401
288401
  let result = node;
@@ -288465,7 +288465,7 @@ var require_hdwallet2 = __commonJS({
288465
288465
  /**
288466
288466
  * @private
288467
288467
  */
288468
- constructor(guard, signingKey, parentFingerprint, chainCode, path12, index2, depth, mnemonic, provider) {
288468
+ constructor(guard, signingKey, parentFingerprint, chainCode, path13, index2, depth, mnemonic, provider) {
288469
288469
  super(signingKey, provider);
288470
288470
  (0, index_js_4.assertPrivate)(guard, _guard, "HDNodeWallet");
288471
288471
  (0, index_js_4.defineProperties)(this, { publicKey: signingKey.compressedPublicKey });
@@ -288474,7 +288474,7 @@ var require_hdwallet2 = __commonJS({
288474
288474
  parentFingerprint,
288475
288475
  fingerprint,
288476
288476
  chainCode,
288477
- path: path12,
288477
+ path: path13,
288478
288478
  index: index2,
288479
288479
  depth
288480
288480
  });
@@ -288558,22 +288558,22 @@ var require_hdwallet2 = __commonJS({
288558
288558
  deriveChild(_index) {
288559
288559
  const index2 = (0, index_js_4.getNumber)(_index, "index");
288560
288560
  (0, index_js_4.assertArgument)(index2 <= 4294967295, "invalid index", "index", index2);
288561
- let path12 = this.path;
288562
- if (path12) {
288563
- path12 += "/" + (index2 & ~HardenedBit);
288561
+ let path13 = this.path;
288562
+ if (path13) {
288563
+ path13 += "/" + (index2 & ~HardenedBit);
288564
288564
  if (index2 & HardenedBit) {
288565
- path12 += "'";
288565
+ path13 += "'";
288566
288566
  }
288567
288567
  }
288568
288568
  const { IR, IL } = ser_I(index2, this.chainCode, this.publicKey, this.privateKey);
288569
288569
  const ki = new index_js_1.SigningKey((0, index_js_4.toBeHex)(((0, index_js_4.toBigInt)(IL) + BigInt(this.privateKey)) % N, 32));
288570
- return new _HDNodeWallet(_guard, ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path12, index2, this.depth + 1, this.mnemonic, this.provider);
288570
+ return new _HDNodeWallet(_guard, ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path13, index2, this.depth + 1, this.mnemonic, this.provider);
288571
288571
  }
288572
288572
  /**
288573
288573
  * Return the HDNode for %%path%% from this node.
288574
288574
  */
288575
- derivePath(path12) {
288576
- return derivePath(this, path12);
288575
+ derivePath(path13) {
288576
+ return derivePath(this, path13);
288577
288577
  }
288578
288578
  static #fromSeed(_seed, mnemonic) {
288579
288579
  (0, index_js_4.assertArgument)((0, index_js_4.isBytesLike)(_seed), "invalid seed", "seed", "[REDACTED]");
@@ -288618,43 +288618,43 @@ var require_hdwallet2 = __commonJS({
288618
288618
  /**
288619
288619
  * Creates a new random HDNode.
288620
288620
  */
288621
- static createRandom(password, path12, wordlist) {
288621
+ static createRandom(password, path13, wordlist) {
288622
288622
  if (password == null) {
288623
288623
  password = "";
288624
288624
  }
288625
- if (path12 == null) {
288626
- path12 = exports2.defaultPath;
288625
+ if (path13 == null) {
288626
+ path13 = exports2.defaultPath;
288627
288627
  }
288628
288628
  if (wordlist == null) {
288629
288629
  wordlist = lang_en_js_1.LangEn.wordlist();
288630
288630
  }
288631
288631
  const mnemonic = mnemonic_js_1.Mnemonic.fromEntropy((0, index_js_1.randomBytes)(16), password, wordlist);
288632
- return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path12);
288632
+ return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path13);
288633
288633
  }
288634
288634
  /**
288635
288635
  * Create an HD Node from %%mnemonic%%.
288636
288636
  */
288637
- static fromMnemonic(mnemonic, path12) {
288638
- if (!path12) {
288639
- path12 = exports2.defaultPath;
288637
+ static fromMnemonic(mnemonic, path13) {
288638
+ if (!path13) {
288639
+ path13 = exports2.defaultPath;
288640
288640
  }
288641
- return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path12);
288641
+ return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path13);
288642
288642
  }
288643
288643
  /**
288644
288644
  * Creates an HD Node from a mnemonic %%phrase%%.
288645
288645
  */
288646
- static fromPhrase(phrase, password, path12, wordlist) {
288646
+ static fromPhrase(phrase, password, path13, wordlist) {
288647
288647
  if (password == null) {
288648
288648
  password = "";
288649
288649
  }
288650
- if (path12 == null) {
288651
- path12 = exports2.defaultPath;
288650
+ if (path13 == null) {
288651
+ path13 = exports2.defaultPath;
288652
288652
  }
288653
288653
  if (wordlist == null) {
288654
288654
  wordlist = lang_en_js_1.LangEn.wordlist();
288655
288655
  }
288656
288656
  const mnemonic = mnemonic_js_1.Mnemonic.fromPhrase(phrase, password, wordlist);
288657
- return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path12);
288657
+ return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path13);
288658
288658
  }
288659
288659
  /**
288660
288660
  * Creates an HD Node from a %%seed%%.
@@ -288707,7 +288707,7 @@ var require_hdwallet2 = __commonJS({
288707
288707
  /**
288708
288708
  * @private
288709
288709
  */
288710
- constructor(guard, address, publicKey, parentFingerprint, chainCode, path12, index2, depth, provider) {
288710
+ constructor(guard, address, publicKey, parentFingerprint, chainCode, path13, index2, depth, provider) {
288711
288711
  super(address, provider);
288712
288712
  (0, index_js_4.assertPrivate)(guard, _guard, "HDNodeVoidWallet");
288713
288713
  (0, index_js_4.defineProperties)(this, { publicKey });
@@ -288717,7 +288717,7 @@ var require_hdwallet2 = __commonJS({
288717
288717
  fingerprint,
288718
288718
  parentFingerprint,
288719
288719
  chainCode,
288720
- path: path12,
288720
+ path: path13,
288721
288721
  index: index2,
288722
288722
  depth
288723
288723
  });
@@ -288755,23 +288755,23 @@ var require_hdwallet2 = __commonJS({
288755
288755
  deriveChild(_index) {
288756
288756
  const index2 = (0, index_js_4.getNumber)(_index, "index");
288757
288757
  (0, index_js_4.assertArgument)(index2 <= 4294967295, "invalid index", "index", index2);
288758
- let path12 = this.path;
288759
- if (path12) {
288760
- path12 += "/" + (index2 & ~HardenedBit);
288758
+ let path13 = this.path;
288759
+ if (path13) {
288760
+ path13 += "/" + (index2 & ~HardenedBit);
288761
288761
  if (index2 & HardenedBit) {
288762
- path12 += "'";
288762
+ path13 += "'";
288763
288763
  }
288764
288764
  }
288765
288765
  const { IR, IL } = ser_I(index2, this.chainCode, this.publicKey, null);
288766
288766
  const Ki = index_js_1.SigningKey.addPoints(IL, this.publicKey, true);
288767
288767
  const address = (0, index_js_3.computeAddress)(Ki);
288768
- return new _HDNodeVoidWallet(_guard, address, Ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path12, index2, this.depth + 1, this.provider);
288768
+ return new _HDNodeVoidWallet(_guard, address, Ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path13, index2, this.depth + 1, this.provider);
288769
288769
  }
288770
288770
  /**
288771
288771
  * Return the signer for %%path%% from this node.
288772
288772
  */
288773
- derivePath(path12) {
288774
- return derivePath(this, path12);
288773
+ derivePath(path13) {
288774
+ return derivePath(this, path13);
288775
288775
  }
288776
288776
  };
288777
288777
  exports2.HDNodeVoidWallet = HDNodeVoidWallet;
@@ -291478,10 +291478,10 @@ var require_CheckedContract = __commonJS({
291478
291478
  } catch (err) {
291479
291479
  return null;
291480
291480
  }
291481
- const pathContent = Object.keys(this.solidity).map((path12) => {
291481
+ const pathContent = Object.keys(this.solidity).map((path13) => {
291482
291482
  return {
291483
- path: path12,
291484
- content: this.solidity[path12] || ""
291483
+ path: path13,
291484
+ content: this.solidity[path13] || ""
291485
291485
  };
291486
291486
  });
291487
291487
  const byHash = (0, validation_1.storeByHash)(pathContent);
@@ -294783,8 +294783,8 @@ var require_utils36 = __commonJS({
294783
294783
  var result = transform[inputType][outputType](input);
294784
294784
  return result;
294785
294785
  };
294786
- exports2.resolve = function(path12) {
294787
- var parts = path12.split("/");
294786
+ exports2.resolve = function(path13) {
294787
+ var parts = path13.split("/");
294788
294788
  var result = [];
294789
294789
  for (var index2 = 0; index2 < parts.length; index2++) {
294790
294790
  var part = parts[index2];
@@ -295635,15 +295635,15 @@ var require_crc32 = __commonJS({
295635
295635
  "use strict";
295636
295636
  var utils = require_utils36();
295637
295637
  function makeTable() {
295638
- var c, table3 = [];
295638
+ var c, table2 = [];
295639
295639
  for (var n = 0; n < 256; n++) {
295640
295640
  c = n;
295641
295641
  for (var k = 0; k < 8; k++) {
295642
295642
  c = c & 1 ? 3988292384 ^ c >>> 1 : c >>> 1;
295643
295643
  }
295644
- table3[n] = c;
295644
+ table2[n] = c;
295645
295645
  }
295646
- return table3;
295646
+ return table2;
295647
295647
  }
295648
295648
  var crcTable = makeTable();
295649
295649
  function crc32(crc, buf, len, pos) {
@@ -296641,15 +296641,15 @@ var require_crc322 = __commonJS({
296641
296641
  "../../node_modules/pako/lib/zlib/crc32.js"(exports2, module2) {
296642
296642
  "use strict";
296643
296643
  function makeTable() {
296644
- var c, table3 = [];
296644
+ var c, table2 = [];
296645
296645
  for (var n = 0; n < 256; n++) {
296646
296646
  c = n;
296647
296647
  for (var k = 0; k < 8; k++) {
296648
296648
  c = c & 1 ? 3988292384 ^ c >>> 1 : c >>> 1;
296649
296649
  }
296650
- table3[n] = c;
296650
+ table2[n] = c;
296651
296651
  }
296652
- return table3;
296652
+ return table2;
296653
296653
  }
296654
296654
  var crcTable = makeTable();
296655
296655
  function crc32(crc, buf, len, pos) {
@@ -298443,7 +298443,7 @@ var require_inftrees = __commonJS({
298443
298443
  64,
298444
298444
  64
298445
298445
  ];
298446
- module2.exports = function inflate_table(type, lens, lens_index, codes, table3, table_index, work, opts) {
298446
+ module2.exports = function inflate_table(type, lens, lens_index, codes, table2, table_index, work, opts) {
298447
298447
  var bits = opts.bits;
298448
298448
  var len = 0;
298449
298449
  var sym = 0;
@@ -298483,8 +298483,8 @@ var require_inftrees = __commonJS({
298483
298483
  root2 = max;
298484
298484
  }
298485
298485
  if (max === 0) {
298486
- table3[table_index++] = 1 << 24 | 64 << 16 | 0;
298487
- table3[table_index++] = 1 << 24 | 64 << 16 | 0;
298486
+ table2[table_index++] = 1 << 24 | 64 << 16 | 0;
298487
+ table2[table_index++] = 1 << 24 | 64 << 16 | 0;
298488
298488
  opts.bits = 1;
298489
298489
  return 0;
298490
298490
  }
@@ -298559,7 +298559,7 @@ var require_inftrees = __commonJS({
298559
298559
  min = fill;
298560
298560
  do {
298561
298561
  fill -= incr;
298562
- table3[next + (huff >> drop) + fill] = here_bits << 24 | here_op << 16 | here_val | 0;
298562
+ table2[next + (huff >> drop) + fill] = here_bits << 24 | here_op << 16 | here_val | 0;
298563
298563
  } while (fill !== 0);
298564
298564
  incr = 1 << len - 1;
298565
298565
  while (huff & incr) {
@@ -298598,11 +298598,11 @@ var require_inftrees = __commonJS({
298598
298598
  return 1;
298599
298599
  }
298600
298600
  low = huff & mask;
298601
- table3[low] = root2 << 24 | curr << 16 | next - table_index | 0;
298601
+ table2[low] = root2 << 24 | curr << 16 | next - table_index | 0;
298602
298602
  }
298603
298603
  }
298604
298604
  if (huff !== 0) {
298605
- table3[next + huff] = len - drop << 24 | 64 << 16 | 0;
298605
+ table2[next + huff] = len - drop << 24 | 64 << 16 | 0;
298606
298606
  }
298607
298607
  opts.bits = root2;
298608
298608
  return 0;
@@ -300637,18 +300637,18 @@ var require_object = __commonJS({
300637
300637
  var object = new ZipObject(name, zipObjectContent, o);
300638
300638
  this.files[name] = object;
300639
300639
  };
300640
- var parentFolder = function(path12) {
300641
- if (path12.slice(-1) === "/") {
300642
- path12 = path12.substring(0, path12.length - 1);
300640
+ var parentFolder = function(path13) {
300641
+ if (path13.slice(-1) === "/") {
300642
+ path13 = path13.substring(0, path13.length - 1);
300643
300643
  }
300644
- var lastSlash = path12.lastIndexOf("/");
300645
- return lastSlash > 0 ? path12.substring(0, lastSlash) : "";
300644
+ var lastSlash = path13.lastIndexOf("/");
300645
+ return lastSlash > 0 ? path13.substring(0, lastSlash) : "";
300646
300646
  };
300647
- var forceTrailingSlash = function(path12) {
300648
- if (path12.slice(-1) !== "/") {
300649
- path12 += "/";
300647
+ var forceTrailingSlash = function(path13) {
300648
+ if (path13.slice(-1) !== "/") {
300649
+ path13 += "/";
300650
300650
  }
300651
- return path12;
300651
+ return path13;
300652
300652
  };
300653
300653
  var folderAdd = function(name, createFolders) {
300654
300654
  createFolders = typeof createFolders !== "undefined" ? createFolders : defaults.createFolders;
@@ -301685,15 +301685,15 @@ var require_validation5 = __commonJS({
301685
301685
  ];
301686
301686
  function checkPaths(solidityCompiler, paths, ignoring) {
301687
301687
  const files = [];
301688
- paths.forEach((path12) => {
301689
- if (fs_1.default.existsSync(path12)) {
301690
- traversePathRecursively(path12, (filePath) => {
301688
+ paths.forEach((path13) => {
301689
+ if (fs_1.default.existsSync(path13)) {
301690
+ traversePathRecursively(path13, (filePath) => {
301691
301691
  const fullPath = path_1.default.resolve(filePath);
301692
301692
  const file = { buffer: fs_1.default.readFileSync(filePath), path: fullPath };
301693
301693
  files.push(file);
301694
301694
  });
301695
301695
  } else if (ignoring) {
301696
- ignoring.push(path12);
301696
+ ignoring.push(path13);
301697
301697
  }
301698
301698
  });
301699
301699
  return checkFiles2(solidityCompiler, files);
@@ -301931,22 +301931,22 @@ var require_validation5 = __commonJS({
301931
301931
  var _a, _b, _c, _d;
301932
301932
  return (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);
301933
301933
  }
301934
- function traversePathRecursively(path12, worker, afterDirectory) {
301935
- if (!fs_1.default.existsSync(path12)) {
301936
- const msg = `Encountered a nonexistent path: ${path12}`;
301934
+ function traversePathRecursively(path13, worker, afterDirectory) {
301935
+ if (!fs_1.default.existsSync(path13)) {
301936
+ const msg = `Encountered a nonexistent path: ${path13}`;
301937
301937
  const error = new Error(msg);
301938
301938
  throw error;
301939
301939
  }
301940
- const fileStat = fs_1.default.lstatSync(path12);
301940
+ const fileStat = fs_1.default.lstatSync(path13);
301941
301941
  if (fileStat.isFile()) {
301942
- worker(path12);
301942
+ worker(path13);
301943
301943
  } else if (fileStat.isDirectory()) {
301944
- fs_1.default.readdirSync(path12).forEach((nestedName) => {
301945
- const nestedPath = path_1.default.join(path12, nestedName);
301944
+ fs_1.default.readdirSync(path13).forEach((nestedName) => {
301945
+ const nestedPath = path_1.default.join(path13, nestedName);
301946
301946
  traversePathRecursively(nestedPath, worker, afterDirectory);
301947
301947
  });
301948
301948
  if (afterDirectory) {
301949
- afterDirectory(path12);
301949
+ afterDirectory(path13);
301950
301950
  }
301951
301951
  }
301952
301952
  }
@@ -301976,19 +301976,19 @@ var require_validation5 = __commonJS({
301976
301976
  const endTime = Date.now();
301977
301977
  (0, logger_1.logDebug)(`Parsing hardhat file took ${endTime - startTime} milliseconds.`);
301978
301978
  const hardhatSourceFilesObject = hardhatJson.input.sources;
301979
- for (const path12 in hardhatSourceFilesObject) {
301980
- if (hardhatSourceFilesObject[path12].content) {
301979
+ for (const path13 in hardhatSourceFilesObject) {
301980
+ if (hardhatSourceFilesObject[path13].content) {
301981
301981
  hardhatSourceFiles.push({
301982
- path: path12,
301983
- content: hardhatSourceFilesObject[path12].content
301982
+ path: path13,
301983
+ content: hardhatSourceFilesObject[path13].content
301984
301984
  });
301985
301985
  }
301986
301986
  }
301987
301987
  const contractsObject = hardhatJson.output.contracts;
301988
- for (const path12 in contractsObject) {
301989
- for (const contractName in contractsObject[path12]) {
301990
- if (contractsObject[path12][contractName].metadata) {
301991
- const metadataObj = extractMetadataFromString(contractsObject[path12][contractName].metadata);
301988
+ for (const path13 in contractsObject) {
301989
+ for (const contractName in contractsObject[path13]) {
301990
+ if (contractsObject[path13][contractName].metadata) {
301991
+ const metadataObj = extractMetadataFromString(contractsObject[path13][contractName].metadata);
301992
301992
  hardhatMetadataFiles.push(metadataObj);
301993
301993
  }
301994
301994
  }
@@ -303888,15 +303888,15 @@ var require_route = __commonJS({
303888
303888
  };
303889
303889
  }
303890
303890
  function wrapConversion(toModel, graph) {
303891
- const path12 = [graph[toModel].parent, toModel];
303891
+ const path13 = [graph[toModel].parent, toModel];
303892
303892
  let fn = conversions[graph[toModel].parent][toModel];
303893
303893
  let cur = graph[toModel].parent;
303894
303894
  while (graph[cur].parent) {
303895
- path12.unshift(graph[cur].parent);
303895
+ path13.unshift(graph[cur].parent);
303896
303896
  fn = link(conversions[graph[cur].parent][cur], fn);
303897
303897
  cur = graph[cur].parent;
303898
303898
  }
303899
- fn.conversion = path12;
303899
+ fn.conversion = path13;
303900
303900
  return fn;
303901
303901
  }
303902
303902
  module2.exports = function(fromModel) {
@@ -308528,7 +308528,7 @@ var require_table = __commonJS({
308528
308528
  var truncateTableData_1 = require_truncateTableData();
308529
308529
  var utils_1 = require_utils37();
308530
308530
  var validateTableData_1 = require_validateTableData();
308531
- var table3 = (data, userConfig = {}) => {
308531
+ var table2 = (data, userConfig = {}) => {
308532
308532
  (0, validateTableData_1.validateTableData)(data);
308533
308533
  let rows = (0, stringifyTableData_1.stringifyTableData)(data);
308534
308534
  const [injectedRows, injectedSpanningCellConfig] = (0, injectHeaderConfig_1.injectHeaderConfig)(rows, userConfig);
@@ -308543,7 +308543,7 @@ var require_table = __commonJS({
308543
308543
  const outputColumnWidths = (0, calculateOutputColumnWidths_1.calculateOutputColumnWidths)(config);
308544
308544
  return (0, drawTable_1.drawTable)(rows, outputColumnWidths, rowHeights, config);
308545
308545
  };
308546
- exports2.table = table3;
308546
+ exports2.table = table2;
308547
308547
  }
308548
308548
  });
308549
308549
 
@@ -365404,12 +365404,12 @@ var UniswapV3AdapterContract = class extends AbstractAdapterContract {
365404
365404
  ];
365405
365405
  }
365406
365406
  case "exactInput": {
365407
- const [{ amountIn, amountOutMinimum, path: path12 }] = params.args;
365408
- const pathStr = this.trackInputPath(path12);
365409
- const token = `0x${path12.replace("0x", "").slice(0, 40)}`;
365407
+ const [{ amountIn, amountOutMinimum, path: path13 }] = params.args;
365408
+ const pathStr = this.trackInputPath(path13);
365409
+ const token = `0x${path13.replace("0x", "").slice(0, 40)}`;
365410
365410
  const amountInStr = this.sdk.tokensMeta.formatBN(token, amountIn);
365411
365411
  const amountOutMinimumStr = this.sdk.tokensMeta.formatBN(
365412
- `0x${path12.slice(-40, path12.length)}`,
365412
+ `0x${path13.slice(-40, path13.length)}`,
365413
365413
  amountOutMinimum
365414
365414
  );
365415
365415
  return [
@@ -365417,12 +365417,12 @@ var UniswapV3AdapterContract = class extends AbstractAdapterContract {
365417
365417
  ];
365418
365418
  }
365419
365419
  case "exactDiffInput": {
365420
- const [{ leftoverAmount, rateMinRAY, path: path12 }] = params.args;
365420
+ const [{ leftoverAmount, rateMinRAY, path: path13 }] = params.args;
365421
365421
  const leftoverAmountStr = this.sdk.tokensMeta.formatBN(
365422
- `0x${path12.replace("0x", "").slice(0, 40)}`,
365422
+ `0x${path13.replace("0x", "").slice(0, 40)}`,
365423
365423
  leftoverAmount
365424
365424
  );
365425
- const pathStr = this.trackInputPath(path12);
365425
+ const pathStr = this.trackInputPath(path13);
365426
365426
  return [
365427
365427
  `(leftoverAmount: ${leftoverAmountStr}, rate: ${formatBN(
365428
365428
  rateMinRAY,
@@ -365431,14 +365431,14 @@ var UniswapV3AdapterContract = class extends AbstractAdapterContract {
365431
365431
  ];
365432
365432
  }
365433
365433
  case "exactOutput": {
365434
- const [{ amountInMaximum, amountOut, path: path12 }] = params.args;
365435
- const pathStr = this.trackOutputPath(path12);
365434
+ const [{ amountInMaximum, amountOut, path: path13 }] = params.args;
365435
+ const pathStr = this.trackOutputPath(path13);
365436
365436
  const amountInMaximumStr = this.sdk.tokensMeta.formatBN(
365437
- `0x${path12.slice(-40, path12.length)}`,
365437
+ `0x${path13.slice(-40, path13.length)}`,
365438
365438
  amountInMaximum
365439
365439
  );
365440
365440
  const amountOutStr = this.sdk.tokensMeta.formatBN(
365441
- `0x${path12.replace("0x", "").slice(0, 40)}`,
365441
+ `0x${path13.replace("0x", "").slice(0, 40)}`,
365442
365442
  amountOut
365443
365443
  );
365444
365444
  return [
@@ -365462,30 +365462,30 @@ var UniswapV3AdapterContract = class extends AbstractAdapterContract {
365462
365462
  return void 0;
365463
365463
  }
365464
365464
  }
365465
- trackInputPath(path12) {
365465
+ trackInputPath(path13) {
365466
365466
  let result = "";
365467
- let pointer = path12.startsWith("0x") ? 2 : 0;
365468
- while (pointer <= path12.length - 40) {
365469
- const from = `0x${path12.slice(pointer, pointer + 40)}`.toLowerCase();
365467
+ let pointer = path13.startsWith("0x") ? 2 : 0;
365468
+ while (pointer <= path13.length - 40) {
365469
+ const from = `0x${path13.slice(pointer, pointer + 40)}`.toLowerCase();
365470
365470
  result += this.sdk.tokensMeta.symbol(from) || from;
365471
365471
  pointer += 40;
365472
- if (pointer > path12.length - 6) return result;
365473
- const fee = parseInt(path12.slice(pointer, pointer + 6), 16);
365472
+ if (pointer > path13.length - 6) return result;
365473
+ const fee = parseInt(path13.slice(pointer, pointer + 6), 16);
365474
365474
  pointer += 6;
365475
365475
  result += ` ==(fee: ${fee})==> `;
365476
365476
  }
365477
365477
  return result;
365478
365478
  }
365479
- trackOutputPath(path12) {
365479
+ trackOutputPath(path13) {
365480
365480
  let result = "";
365481
- let pointer = path12.length;
365481
+ let pointer = path13.length;
365482
365482
  while (pointer >= 40) {
365483
365483
  pointer -= 40;
365484
- const from = `0x${path12.slice(pointer, pointer + 40)}`;
365484
+ const from = `0x${path13.slice(pointer, pointer + 40)}`;
365485
365485
  result += this.sdk.tokensMeta.symbol(from) || from;
365486
365486
  if (pointer < 6) return result;
365487
365487
  pointer -= 6;
365488
- const fee = parseInt(path12.slice(pointer, pointer + 6), 16);
365488
+ const fee = parseInt(path13.slice(pointer, pointer + 6), 16);
365489
365489
  result += ` ==(fee: ${fee})==> `;
365490
365490
  }
365491
365491
  return result;
@@ -374034,14 +374034,16 @@ var AbstractPriceFeedContract = class extends BaseContract {
374034
374034
  #underlyingPriceFeeds;
374035
374035
  #skipCheck;
374036
374036
  hasLowerBoundCap = false;
374037
+ description;
374037
374038
  constructor(sdk, args) {
374038
374039
  super(sdk, {
374039
374040
  abi: args.abi,
374040
374041
  addr: args.baseParams.addr,
374041
- name: args.name,
374042
+ name: args.name + (args.description ? ` ${args.description}` : ""),
374042
374043
  contractType: args.baseParams.contractType,
374043
374044
  version: args.baseParams.version
374044
374045
  });
374046
+ this.description = args.description;
374045
374047
  this.#decimals = args.decimals;
374046
374048
  this.#updatable = args.updatable;
374047
374049
  this.#skipCheck = args.skipCheck;
@@ -374088,6 +374090,7 @@ var AbstractPriceFeedContract = class extends BaseContract {
374088
374090
  stateHuman(raw = true) {
374089
374091
  return {
374090
374092
  ...super.stateHuman(raw),
374093
+ description: this.description,
374091
374094
  contractType: this.priceFeedType,
374092
374095
  skipCheck: this.skipCheck,
374093
374096
  pricefeeds: this.underlyingPriceFeeds.map((f) => f.stateHuman(raw))
@@ -375651,9 +375654,9 @@ var PathOptionFactory = class _PathOptionFactory {
375651
375654
  const balancerSet = /* @__PURE__ */ new Set([...balancerPools, ...balancerTokensFromAura]);
375652
375655
  return Array.from(balancerSet.values());
375653
375656
  }
375654
- static next(path12) {
375655
- let newPath = [...path12];
375656
- for (let i = path12.length - 1; i >= 0; i--) {
375657
+ static next(path13) {
375658
+ let newPath = [...path13];
375659
+ for (let i = path13.length - 1; i >= 0; i--) {
375657
375660
  const po = { ...newPath[i] };
375658
375661
  po.option++;
375659
375662
  newPath[i] = po;
@@ -376344,959 +376347,6 @@ var iBaseRewardPoolAbi = [
376344
376347
  stateMutability: "nonpayable"
376345
376348
  }
376346
376349
  ];
376347
- var iDataCompressorV3Abi = [
376348
- {
376349
- type: "function",
376350
- inputs: [
376351
- { name: "creditAccount", internalType: "address", type: "address" },
376352
- {
376353
- name: "priceUpdates",
376354
- internalType: "struct PriceOnDemand[]",
376355
- type: "tuple[]",
376356
- components: [
376357
- { name: "token", internalType: "address", type: "address" },
376358
- { name: "callData", internalType: "bytes", type: "bytes" }
376359
- ]
376360
- }
376361
- ],
376362
- name: "getCreditAccountData",
376363
- outputs: [
376364
- {
376365
- name: "",
376366
- internalType: "struct CreditAccountData",
376367
- type: "tuple",
376368
- components: [
376369
- { name: "isSuccessful", internalType: "bool", type: "bool" },
376370
- {
376371
- name: "priceFeedsNeeded",
376372
- internalType: "address[]",
376373
- type: "address[]"
376374
- },
376375
- { name: "addr", internalType: "address", type: "address" },
376376
- { name: "borrower", internalType: "address", type: "address" },
376377
- { name: "creditManager", internalType: "address", type: "address" },
376378
- { name: "cmName", internalType: "string", type: "string" },
376379
- { name: "creditFacade", internalType: "address", type: "address" },
376380
- { name: "underlying", internalType: "address", type: "address" },
376381
- { name: "debt", internalType: "uint256", type: "uint256" },
376382
- {
376383
- name: "cumulativeIndexLastUpdate",
376384
- internalType: "uint256",
376385
- type: "uint256"
376386
- },
376387
- {
376388
- name: "cumulativeQuotaInterest",
376389
- internalType: "uint128",
376390
- type: "uint128"
376391
- },
376392
- { name: "accruedInterest", internalType: "uint256", type: "uint256" },
376393
- { name: "accruedFees", internalType: "uint256", type: "uint256" },
376394
- { name: "totalDebtUSD", internalType: "uint256", type: "uint256" },
376395
- { name: "totalValue", internalType: "uint256", type: "uint256" },
376396
- { name: "totalValueUSD", internalType: "uint256", type: "uint256" },
376397
- { name: "twvUSD", internalType: "uint256", type: "uint256" },
376398
- {
376399
- name: "enabledTokensMask",
376400
- internalType: "uint256",
376401
- type: "uint256"
376402
- },
376403
- { name: "healthFactor", internalType: "uint256", type: "uint256" },
376404
- { name: "baseBorrowRate", internalType: "uint256", type: "uint256" },
376405
- {
376406
- name: "aggregatedBorrowRate",
376407
- internalType: "uint256",
376408
- type: "uint256"
376409
- },
376410
- {
376411
- name: "balances",
376412
- internalType: "struct TokenBalance[]",
376413
- type: "tuple[]",
376414
- components: [
376415
- { name: "token", internalType: "address", type: "address" },
376416
- { name: "balance", internalType: "uint256", type: "uint256" },
376417
- { name: "isForbidden", internalType: "bool", type: "bool" },
376418
- { name: "isEnabled", internalType: "bool", type: "bool" },
376419
- { name: "isQuoted", internalType: "bool", type: "bool" },
376420
- { name: "quota", internalType: "uint256", type: "uint256" },
376421
- { name: "quotaRate", internalType: "uint16", type: "uint16" },
376422
- {
376423
- name: "quotaCumulativeIndexLU",
376424
- internalType: "uint256",
376425
- type: "uint256"
376426
- }
376427
- ]
376428
- },
376429
- { name: "since", internalType: "uint64", type: "uint64" },
376430
- { name: "cfVersion", internalType: "uint256", type: "uint256" },
376431
- { name: "expirationDate", internalType: "uint40", type: "uint40" },
376432
- { name: "activeBots", internalType: "address[]", type: "address[]" }
376433
- ]
376434
- }
376435
- ],
376436
- stateMutability: "nonpayable"
376437
- },
376438
- {
376439
- type: "function",
376440
- inputs: [
376441
- { name: "borrower", internalType: "address", type: "address" },
376442
- {
376443
- name: "priceUpdates",
376444
- internalType: "struct PriceOnDemand[]",
376445
- type: "tuple[]",
376446
- components: [
376447
- { name: "token", internalType: "address", type: "address" },
376448
- { name: "callData", internalType: "bytes", type: "bytes" }
376449
- ]
376450
- }
376451
- ],
376452
- name: "getCreditAccountsByBorrower",
376453
- outputs: [
376454
- {
376455
- name: "",
376456
- internalType: "struct CreditAccountData[]",
376457
- type: "tuple[]",
376458
- components: [
376459
- { name: "isSuccessful", internalType: "bool", type: "bool" },
376460
- {
376461
- name: "priceFeedsNeeded",
376462
- internalType: "address[]",
376463
- type: "address[]"
376464
- },
376465
- { name: "addr", internalType: "address", type: "address" },
376466
- { name: "borrower", internalType: "address", type: "address" },
376467
- { name: "creditManager", internalType: "address", type: "address" },
376468
- { name: "cmName", internalType: "string", type: "string" },
376469
- { name: "creditFacade", internalType: "address", type: "address" },
376470
- { name: "underlying", internalType: "address", type: "address" },
376471
- { name: "debt", internalType: "uint256", type: "uint256" },
376472
- {
376473
- name: "cumulativeIndexLastUpdate",
376474
- internalType: "uint256",
376475
- type: "uint256"
376476
- },
376477
- {
376478
- name: "cumulativeQuotaInterest",
376479
- internalType: "uint128",
376480
- type: "uint128"
376481
- },
376482
- { name: "accruedInterest", internalType: "uint256", type: "uint256" },
376483
- { name: "accruedFees", internalType: "uint256", type: "uint256" },
376484
- { name: "totalDebtUSD", internalType: "uint256", type: "uint256" },
376485
- { name: "totalValue", internalType: "uint256", type: "uint256" },
376486
- { name: "totalValueUSD", internalType: "uint256", type: "uint256" },
376487
- { name: "twvUSD", internalType: "uint256", type: "uint256" },
376488
- {
376489
- name: "enabledTokensMask",
376490
- internalType: "uint256",
376491
- type: "uint256"
376492
- },
376493
- { name: "healthFactor", internalType: "uint256", type: "uint256" },
376494
- { name: "baseBorrowRate", internalType: "uint256", type: "uint256" },
376495
- {
376496
- name: "aggregatedBorrowRate",
376497
- internalType: "uint256",
376498
- type: "uint256"
376499
- },
376500
- {
376501
- name: "balances",
376502
- internalType: "struct TokenBalance[]",
376503
- type: "tuple[]",
376504
- components: [
376505
- { name: "token", internalType: "address", type: "address" },
376506
- { name: "balance", internalType: "uint256", type: "uint256" },
376507
- { name: "isForbidden", internalType: "bool", type: "bool" },
376508
- { name: "isEnabled", internalType: "bool", type: "bool" },
376509
- { name: "isQuoted", internalType: "bool", type: "bool" },
376510
- { name: "quota", internalType: "uint256", type: "uint256" },
376511
- { name: "quotaRate", internalType: "uint16", type: "uint16" },
376512
- {
376513
- name: "quotaCumulativeIndexLU",
376514
- internalType: "uint256",
376515
- type: "uint256"
376516
- }
376517
- ]
376518
- },
376519
- { name: "since", internalType: "uint64", type: "uint64" },
376520
- { name: "cfVersion", internalType: "uint256", type: "uint256" },
376521
- { name: "expirationDate", internalType: "uint40", type: "uint40" },
376522
- { name: "activeBots", internalType: "address[]", type: "address[]" }
376523
- ]
376524
- }
376525
- ],
376526
- stateMutability: "nonpayable"
376527
- },
376528
- {
376529
- type: "function",
376530
- inputs: [
376531
- { name: "creditManager", internalType: "address", type: "address" },
376532
- {
376533
- name: "priceUpdates",
376534
- internalType: "struct PriceOnDemand[]",
376535
- type: "tuple[]",
376536
- components: [
376537
- { name: "token", internalType: "address", type: "address" },
376538
- { name: "callData", internalType: "bytes", type: "bytes" }
376539
- ]
376540
- }
376541
- ],
376542
- name: "getCreditAccountsByCreditManager",
376543
- outputs: [
376544
- {
376545
- name: "",
376546
- internalType: "struct CreditAccountData[]",
376547
- type: "tuple[]",
376548
- components: [
376549
- { name: "isSuccessful", internalType: "bool", type: "bool" },
376550
- {
376551
- name: "priceFeedsNeeded",
376552
- internalType: "address[]",
376553
- type: "address[]"
376554
- },
376555
- { name: "addr", internalType: "address", type: "address" },
376556
- { name: "borrower", internalType: "address", type: "address" },
376557
- { name: "creditManager", internalType: "address", type: "address" },
376558
- { name: "cmName", internalType: "string", type: "string" },
376559
- { name: "creditFacade", internalType: "address", type: "address" },
376560
- { name: "underlying", internalType: "address", type: "address" },
376561
- { name: "debt", internalType: "uint256", type: "uint256" },
376562
- {
376563
- name: "cumulativeIndexLastUpdate",
376564
- internalType: "uint256",
376565
- type: "uint256"
376566
- },
376567
- {
376568
- name: "cumulativeQuotaInterest",
376569
- internalType: "uint128",
376570
- type: "uint128"
376571
- },
376572
- { name: "accruedInterest", internalType: "uint256", type: "uint256" },
376573
- { name: "accruedFees", internalType: "uint256", type: "uint256" },
376574
- { name: "totalDebtUSD", internalType: "uint256", type: "uint256" },
376575
- { name: "totalValue", internalType: "uint256", type: "uint256" },
376576
- { name: "totalValueUSD", internalType: "uint256", type: "uint256" },
376577
- { name: "twvUSD", internalType: "uint256", type: "uint256" },
376578
- {
376579
- name: "enabledTokensMask",
376580
- internalType: "uint256",
376581
- type: "uint256"
376582
- },
376583
- { name: "healthFactor", internalType: "uint256", type: "uint256" },
376584
- { name: "baseBorrowRate", internalType: "uint256", type: "uint256" },
376585
- {
376586
- name: "aggregatedBorrowRate",
376587
- internalType: "uint256",
376588
- type: "uint256"
376589
- },
376590
- {
376591
- name: "balances",
376592
- internalType: "struct TokenBalance[]",
376593
- type: "tuple[]",
376594
- components: [
376595
- { name: "token", internalType: "address", type: "address" },
376596
- { name: "balance", internalType: "uint256", type: "uint256" },
376597
- { name: "isForbidden", internalType: "bool", type: "bool" },
376598
- { name: "isEnabled", internalType: "bool", type: "bool" },
376599
- { name: "isQuoted", internalType: "bool", type: "bool" },
376600
- { name: "quota", internalType: "uint256", type: "uint256" },
376601
- { name: "quotaRate", internalType: "uint16", type: "uint16" },
376602
- {
376603
- name: "quotaCumulativeIndexLU",
376604
- internalType: "uint256",
376605
- type: "uint256"
376606
- }
376607
- ]
376608
- },
376609
- { name: "since", internalType: "uint64", type: "uint64" },
376610
- { name: "cfVersion", internalType: "uint256", type: "uint256" },
376611
- { name: "expirationDate", internalType: "uint40", type: "uint40" },
376612
- { name: "activeBots", internalType: "address[]", type: "address[]" }
376613
- ]
376614
- }
376615
- ],
376616
- stateMutability: "nonpayable"
376617
- },
376618
- {
376619
- type: "function",
376620
- inputs: [
376621
- { name: "creditManager", internalType: "address", type: "address" }
376622
- ],
376623
- name: "getCreditManagerData",
376624
- outputs: [
376625
- {
376626
- name: "",
376627
- internalType: "struct CreditManagerData",
376628
- type: "tuple",
376629
- components: [
376630
- { name: "addr", internalType: "address", type: "address" },
376631
- { name: "name", internalType: "string", type: "string" },
376632
- { name: "cfVersion", internalType: "uint256", type: "uint256" },
376633
- { name: "creditFacade", internalType: "address", type: "address" },
376634
- {
376635
- name: "creditConfigurator",
376636
- internalType: "address",
376637
- type: "address"
376638
- },
376639
- { name: "underlying", internalType: "address", type: "address" },
376640
- { name: "pool", internalType: "address", type: "address" },
376641
- { name: "totalDebt", internalType: "uint256", type: "uint256" },
376642
- { name: "totalDebtLimit", internalType: "uint256", type: "uint256" },
376643
- { name: "baseBorrowRate", internalType: "uint256", type: "uint256" },
376644
- { name: "minDebt", internalType: "uint256", type: "uint256" },
376645
- { name: "maxDebt", internalType: "uint256", type: "uint256" },
376646
- {
376647
- name: "availableToBorrow",
376648
- internalType: "uint256",
376649
- type: "uint256"
376650
- },
376651
- {
376652
- name: "collateralTokens",
376653
- internalType: "address[]",
376654
- type: "address[]"
376655
- },
376656
- {
376657
- name: "adapters",
376658
- internalType: "struct ContractAdapter[]",
376659
- type: "tuple[]",
376660
- components: [
376661
- {
376662
- name: "targetContract",
376663
- internalType: "address",
376664
- type: "address"
376665
- },
376666
- { name: "adapter", internalType: "address", type: "address" }
376667
- ]
376668
- },
376669
- {
376670
- name: "liquidationThresholds",
376671
- internalType: "uint256[]",
376672
- type: "uint256[]"
376673
- },
376674
- { name: "isDegenMode", internalType: "bool", type: "bool" },
376675
- { name: "degenNFT", internalType: "address", type: "address" },
376676
- {
376677
- name: "forbiddenTokenMask",
376678
- internalType: "uint256",
376679
- type: "uint256"
376680
- },
376681
- {
376682
- name: "maxEnabledTokensLength",
376683
- internalType: "uint8",
376684
- type: "uint8"
376685
- },
376686
- { name: "feeInterest", internalType: "uint16", type: "uint16" },
376687
- { name: "feeLiquidation", internalType: "uint16", type: "uint16" },
376688
- {
376689
- name: "liquidationDiscount",
376690
- internalType: "uint16",
376691
- type: "uint16"
376692
- },
376693
- {
376694
- name: "feeLiquidationExpired",
376695
- internalType: "uint16",
376696
- type: "uint16"
376697
- },
376698
- {
376699
- name: "liquidationDiscountExpired",
376700
- internalType: "uint16",
376701
- type: "uint16"
376702
- },
376703
- {
376704
- name: "quotas",
376705
- internalType: "struct QuotaInfo[]",
376706
- type: "tuple[]",
376707
- components: [
376708
- { name: "token", internalType: "address", type: "address" },
376709
- { name: "rate", internalType: "uint16", type: "uint16" },
376710
- {
376711
- name: "quotaIncreaseFee",
376712
- internalType: "uint16",
376713
- type: "uint16"
376714
- },
376715
- { name: "totalQuoted", internalType: "uint96", type: "uint96" },
376716
- { name: "limit", internalType: "uint96", type: "uint96" },
376717
- { name: "isActive", internalType: "bool", type: "bool" }
376718
- ]
376719
- },
376720
- {
376721
- name: "lirm",
376722
- internalType: "struct LinearModel",
376723
- type: "tuple",
376724
- components: [
376725
- {
376726
- name: "interestModel",
376727
- internalType: "address",
376728
- type: "address"
376729
- },
376730
- { name: "version", internalType: "uint256", type: "uint256" },
376731
- { name: "U_1", internalType: "uint16", type: "uint16" },
376732
- { name: "U_2", internalType: "uint16", type: "uint16" },
376733
- { name: "R_base", internalType: "uint16", type: "uint16" },
376734
- { name: "R_slope1", internalType: "uint16", type: "uint16" },
376735
- { name: "R_slope2", internalType: "uint16", type: "uint16" },
376736
- { name: "R_slope3", internalType: "uint16", type: "uint16" },
376737
- {
376738
- name: "isBorrowingMoreU2Forbidden",
376739
- internalType: "bool",
376740
- type: "bool"
376741
- }
376742
- ]
376743
- },
376744
- { name: "isPaused", internalType: "bool", type: "bool" }
376745
- ]
376746
- }
376747
- ],
376748
- stateMutability: "view"
376749
- },
376750
- {
376751
- type: "function",
376752
- inputs: [],
376753
- name: "getCreditManagersV3List",
376754
- outputs: [
376755
- {
376756
- name: "",
376757
- internalType: "struct CreditManagerData[]",
376758
- type: "tuple[]",
376759
- components: [
376760
- { name: "addr", internalType: "address", type: "address" },
376761
- { name: "name", internalType: "string", type: "string" },
376762
- { name: "cfVersion", internalType: "uint256", type: "uint256" },
376763
- { name: "creditFacade", internalType: "address", type: "address" },
376764
- {
376765
- name: "creditConfigurator",
376766
- internalType: "address",
376767
- type: "address"
376768
- },
376769
- { name: "underlying", internalType: "address", type: "address" },
376770
- { name: "pool", internalType: "address", type: "address" },
376771
- { name: "totalDebt", internalType: "uint256", type: "uint256" },
376772
- { name: "totalDebtLimit", internalType: "uint256", type: "uint256" },
376773
- { name: "baseBorrowRate", internalType: "uint256", type: "uint256" },
376774
- { name: "minDebt", internalType: "uint256", type: "uint256" },
376775
- { name: "maxDebt", internalType: "uint256", type: "uint256" },
376776
- {
376777
- name: "availableToBorrow",
376778
- internalType: "uint256",
376779
- type: "uint256"
376780
- },
376781
- {
376782
- name: "collateralTokens",
376783
- internalType: "address[]",
376784
- type: "address[]"
376785
- },
376786
- {
376787
- name: "adapters",
376788
- internalType: "struct ContractAdapter[]",
376789
- type: "tuple[]",
376790
- components: [
376791
- {
376792
- name: "targetContract",
376793
- internalType: "address",
376794
- type: "address"
376795
- },
376796
- { name: "adapter", internalType: "address", type: "address" }
376797
- ]
376798
- },
376799
- {
376800
- name: "liquidationThresholds",
376801
- internalType: "uint256[]",
376802
- type: "uint256[]"
376803
- },
376804
- { name: "isDegenMode", internalType: "bool", type: "bool" },
376805
- { name: "degenNFT", internalType: "address", type: "address" },
376806
- {
376807
- name: "forbiddenTokenMask",
376808
- internalType: "uint256",
376809
- type: "uint256"
376810
- },
376811
- {
376812
- name: "maxEnabledTokensLength",
376813
- internalType: "uint8",
376814
- type: "uint8"
376815
- },
376816
- { name: "feeInterest", internalType: "uint16", type: "uint16" },
376817
- { name: "feeLiquidation", internalType: "uint16", type: "uint16" },
376818
- {
376819
- name: "liquidationDiscount",
376820
- internalType: "uint16",
376821
- type: "uint16"
376822
- },
376823
- {
376824
- name: "feeLiquidationExpired",
376825
- internalType: "uint16",
376826
- type: "uint16"
376827
- },
376828
- {
376829
- name: "liquidationDiscountExpired",
376830
- internalType: "uint16",
376831
- type: "uint16"
376832
- },
376833
- {
376834
- name: "quotas",
376835
- internalType: "struct QuotaInfo[]",
376836
- type: "tuple[]",
376837
- components: [
376838
- { name: "token", internalType: "address", type: "address" },
376839
- { name: "rate", internalType: "uint16", type: "uint16" },
376840
- {
376841
- name: "quotaIncreaseFee",
376842
- internalType: "uint16",
376843
- type: "uint16"
376844
- },
376845
- { name: "totalQuoted", internalType: "uint96", type: "uint96" },
376846
- { name: "limit", internalType: "uint96", type: "uint96" },
376847
- { name: "isActive", internalType: "bool", type: "bool" }
376848
- ]
376849
- },
376850
- {
376851
- name: "lirm",
376852
- internalType: "struct LinearModel",
376853
- type: "tuple",
376854
- components: [
376855
- {
376856
- name: "interestModel",
376857
- internalType: "address",
376858
- type: "address"
376859
- },
376860
- { name: "version", internalType: "uint256", type: "uint256" },
376861
- { name: "U_1", internalType: "uint16", type: "uint16" },
376862
- { name: "U_2", internalType: "uint16", type: "uint16" },
376863
- { name: "R_base", internalType: "uint16", type: "uint16" },
376864
- { name: "R_slope1", internalType: "uint16", type: "uint16" },
376865
- { name: "R_slope2", internalType: "uint16", type: "uint16" },
376866
- { name: "R_slope3", internalType: "uint16", type: "uint16" },
376867
- {
376868
- name: "isBorrowingMoreU2Forbidden",
376869
- internalType: "bool",
376870
- type: "bool"
376871
- }
376872
- ]
376873
- },
376874
- { name: "isPaused", internalType: "bool", type: "bool" }
376875
- ]
376876
- }
376877
- ],
376878
- stateMutability: "view"
376879
- },
376880
- {
376881
- type: "function",
376882
- inputs: [{ name: "staker", internalType: "address", type: "address" }],
376883
- name: "getGaugesV3Data",
376884
- outputs: [
376885
- {
376886
- name: "result",
376887
- internalType: "struct GaugeInfo[]",
376888
- type: "tuple[]",
376889
- components: [
376890
- { name: "addr", internalType: "address", type: "address" },
376891
- { name: "pool", internalType: "address", type: "address" },
376892
- { name: "symbol", internalType: "string", type: "string" },
376893
- { name: "name", internalType: "string", type: "string" },
376894
- { name: "underlying", internalType: "address", type: "address" },
376895
- { name: "currentEpoch", internalType: "uint16", type: "uint16" },
376896
- { name: "epochFrozen", internalType: "bool", type: "bool" },
376897
- {
376898
- name: "quotaParams",
376899
- internalType: "struct GaugeQuotaParams[]",
376900
- type: "tuple[]",
376901
- components: [
376902
- { name: "token", internalType: "address", type: "address" },
376903
- { name: "minRate", internalType: "uint16", type: "uint16" },
376904
- { name: "maxRate", internalType: "uint16", type: "uint16" },
376905
- {
376906
- name: "totalVotesLpSide",
376907
- internalType: "uint96",
376908
- type: "uint96"
376909
- },
376910
- {
376911
- name: "totalVotesCaSide",
376912
- internalType: "uint96",
376913
- type: "uint96"
376914
- },
376915
- { name: "rate", internalType: "uint16", type: "uint16" },
376916
- {
376917
- name: "quotaIncreaseFee",
376918
- internalType: "uint16",
376919
- type: "uint16"
376920
- },
376921
- { name: "totalQuoted", internalType: "uint96", type: "uint96" },
376922
- { name: "limit", internalType: "uint96", type: "uint96" },
376923
- { name: "isActive", internalType: "bool", type: "bool" },
376924
- {
376925
- name: "stakerVotesLpSide",
376926
- internalType: "uint96",
376927
- type: "uint96"
376928
- },
376929
- {
376930
- name: "stakerVotesCaSide",
376931
- internalType: "uint96",
376932
- type: "uint96"
376933
- }
376934
- ]
376935
- }
376936
- ]
376937
- }
376938
- ],
376939
- stateMutability: "view"
376940
- },
376941
- {
376942
- type: "function",
376943
- inputs: [
376944
- {
376945
- name: "priceUpdates",
376946
- internalType: "struct PriceOnDemand[]",
376947
- type: "tuple[]",
376948
- components: [
376949
- { name: "token", internalType: "address", type: "address" },
376950
- { name: "callData", internalType: "bytes", type: "bytes" }
376951
- ]
376952
- }
376953
- ],
376954
- name: "getLiquidatableCreditAccounts",
376955
- outputs: [
376956
- {
376957
- name: "result",
376958
- internalType: "struct CreditAccountData[]",
376959
- type: "tuple[]",
376960
- components: [
376961
- { name: "isSuccessful", internalType: "bool", type: "bool" },
376962
- {
376963
- name: "priceFeedsNeeded",
376964
- internalType: "address[]",
376965
- type: "address[]"
376966
- },
376967
- { name: "addr", internalType: "address", type: "address" },
376968
- { name: "borrower", internalType: "address", type: "address" },
376969
- { name: "creditManager", internalType: "address", type: "address" },
376970
- { name: "cmName", internalType: "string", type: "string" },
376971
- { name: "creditFacade", internalType: "address", type: "address" },
376972
- { name: "underlying", internalType: "address", type: "address" },
376973
- { name: "debt", internalType: "uint256", type: "uint256" },
376974
- {
376975
- name: "cumulativeIndexLastUpdate",
376976
- internalType: "uint256",
376977
- type: "uint256"
376978
- },
376979
- {
376980
- name: "cumulativeQuotaInterest",
376981
- internalType: "uint128",
376982
- type: "uint128"
376983
- },
376984
- { name: "accruedInterest", internalType: "uint256", type: "uint256" },
376985
- { name: "accruedFees", internalType: "uint256", type: "uint256" },
376986
- { name: "totalDebtUSD", internalType: "uint256", type: "uint256" },
376987
- { name: "totalValue", internalType: "uint256", type: "uint256" },
376988
- { name: "totalValueUSD", internalType: "uint256", type: "uint256" },
376989
- { name: "twvUSD", internalType: "uint256", type: "uint256" },
376990
- {
376991
- name: "enabledTokensMask",
376992
- internalType: "uint256",
376993
- type: "uint256"
376994
- },
376995
- { name: "healthFactor", internalType: "uint256", type: "uint256" },
376996
- { name: "baseBorrowRate", internalType: "uint256", type: "uint256" },
376997
- {
376998
- name: "aggregatedBorrowRate",
376999
- internalType: "uint256",
377000
- type: "uint256"
377001
- },
377002
- {
377003
- name: "balances",
377004
- internalType: "struct TokenBalance[]",
377005
- type: "tuple[]",
377006
- components: [
377007
- { name: "token", internalType: "address", type: "address" },
377008
- { name: "balance", internalType: "uint256", type: "uint256" },
377009
- { name: "isForbidden", internalType: "bool", type: "bool" },
377010
- { name: "isEnabled", internalType: "bool", type: "bool" },
377011
- { name: "isQuoted", internalType: "bool", type: "bool" },
377012
- { name: "quota", internalType: "uint256", type: "uint256" },
377013
- { name: "quotaRate", internalType: "uint16", type: "uint16" },
377014
- {
377015
- name: "quotaCumulativeIndexLU",
377016
- internalType: "uint256",
377017
- type: "uint256"
377018
- }
377019
- ]
377020
- },
377021
- { name: "since", internalType: "uint64", type: "uint64" },
377022
- { name: "cfVersion", internalType: "uint256", type: "uint256" },
377023
- { name: "expirationDate", internalType: "uint40", type: "uint40" },
377024
- { name: "activeBots", internalType: "address[]", type: "address[]" }
377025
- ]
377026
- }
377027
- ],
377028
- stateMutability: "nonpayable"
377029
- },
377030
- {
377031
- type: "function",
377032
- inputs: [{ name: "_pool", internalType: "address", type: "address" }],
377033
- name: "getPoolData",
377034
- outputs: [
377035
- {
377036
- name: "",
377037
- internalType: "struct PoolData",
377038
- type: "tuple",
377039
- components: [
377040
- { name: "addr", internalType: "address", type: "address" },
377041
- { name: "underlying", internalType: "address", type: "address" },
377042
- { name: "dieselToken", internalType: "address", type: "address" },
377043
- { name: "symbol", internalType: "string", type: "string" },
377044
- { name: "name", internalType: "string", type: "string" },
377045
- {
377046
- name: "baseInterestIndex",
377047
- internalType: "uint256",
377048
- type: "uint256"
377049
- },
377050
- {
377051
- name: "availableLiquidity",
377052
- internalType: "uint256",
377053
- type: "uint256"
377054
- },
377055
- {
377056
- name: "expectedLiquidity",
377057
- internalType: "uint256",
377058
- type: "uint256"
377059
- },
377060
- { name: "totalBorrowed", internalType: "uint256", type: "uint256" },
377061
- { name: "totalDebtLimit", internalType: "uint256", type: "uint256" },
377062
- {
377063
- name: "creditManagerDebtParams",
377064
- internalType: "struct CreditManagerDebtParams[]",
377065
- type: "tuple[]",
377066
- components: [
377067
- {
377068
- name: "creditManager",
377069
- internalType: "address",
377070
- type: "address"
377071
- },
377072
- { name: "borrowed", internalType: "uint256", type: "uint256" },
377073
- { name: "limit", internalType: "uint256", type: "uint256" },
377074
- {
377075
- name: "availableToBorrow",
377076
- internalType: "uint256",
377077
- type: "uint256"
377078
- }
377079
- ]
377080
- },
377081
- { name: "totalAssets", internalType: "uint256", type: "uint256" },
377082
- { name: "totalSupply", internalType: "uint256", type: "uint256" },
377083
- { name: "supplyRate", internalType: "uint256", type: "uint256" },
377084
- {
377085
- name: "baseInterestRate",
377086
- internalType: "uint256",
377087
- type: "uint256"
377088
- },
377089
- { name: "dieselRate_RAY", internalType: "uint256", type: "uint256" },
377090
- { name: "withdrawFee", internalType: "uint256", type: "uint256" },
377091
- {
377092
- name: "lastBaseInterestUpdate",
377093
- internalType: "uint256",
377094
- type: "uint256"
377095
- },
377096
- {
377097
- name: "baseInterestIndexLU",
377098
- internalType: "uint256",
377099
- type: "uint256"
377100
- },
377101
- { name: "version", internalType: "uint256", type: "uint256" },
377102
- { name: "poolQuotaKeeper", internalType: "address", type: "address" },
377103
- { name: "gauge", internalType: "address", type: "address" },
377104
- {
377105
- name: "quotas",
377106
- internalType: "struct QuotaInfo[]",
377107
- type: "tuple[]",
377108
- components: [
377109
- { name: "token", internalType: "address", type: "address" },
377110
- { name: "rate", internalType: "uint16", type: "uint16" },
377111
- {
377112
- name: "quotaIncreaseFee",
377113
- internalType: "uint16",
377114
- type: "uint16"
377115
- },
377116
- { name: "totalQuoted", internalType: "uint96", type: "uint96" },
377117
- { name: "limit", internalType: "uint96", type: "uint96" },
377118
- { name: "isActive", internalType: "bool", type: "bool" }
377119
- ]
377120
- },
377121
- {
377122
- name: "zappers",
377123
- internalType: "struct ZapperInfo[]",
377124
- type: "tuple[]",
377125
- components: [
377126
- { name: "zapper", internalType: "address", type: "address" },
377127
- { name: "tokenIn", internalType: "address", type: "address" },
377128
- { name: "tokenOut", internalType: "address", type: "address" }
377129
- ]
377130
- },
377131
- {
377132
- name: "lirm",
377133
- internalType: "struct LinearModel",
377134
- type: "tuple",
377135
- components: [
377136
- {
377137
- name: "interestModel",
377138
- internalType: "address",
377139
- type: "address"
377140
- },
377141
- { name: "version", internalType: "uint256", type: "uint256" },
377142
- { name: "U_1", internalType: "uint16", type: "uint16" },
377143
- { name: "U_2", internalType: "uint16", type: "uint16" },
377144
- { name: "R_base", internalType: "uint16", type: "uint16" },
377145
- { name: "R_slope1", internalType: "uint16", type: "uint16" },
377146
- { name: "R_slope2", internalType: "uint16", type: "uint16" },
377147
- { name: "R_slope3", internalType: "uint16", type: "uint16" },
377148
- {
377149
- name: "isBorrowingMoreU2Forbidden",
377150
- internalType: "bool",
377151
- type: "bool"
377152
- }
377153
- ]
377154
- },
377155
- { name: "isPaused", internalType: "bool", type: "bool" }
377156
- ]
377157
- }
377158
- ],
377159
- stateMutability: "view"
377160
- },
377161
- {
377162
- type: "function",
377163
- inputs: [],
377164
- name: "getPoolsV3List",
377165
- outputs: [
377166
- {
377167
- name: "",
377168
- internalType: "struct PoolData[]",
377169
- type: "tuple[]",
377170
- components: [
377171
- { name: "addr", internalType: "address", type: "address" },
377172
- { name: "underlying", internalType: "address", type: "address" },
377173
- { name: "dieselToken", internalType: "address", type: "address" },
377174
- { name: "symbol", internalType: "string", type: "string" },
377175
- { name: "name", internalType: "string", type: "string" },
377176
- {
377177
- name: "baseInterestIndex",
377178
- internalType: "uint256",
377179
- type: "uint256"
377180
- },
377181
- {
377182
- name: "availableLiquidity",
377183
- internalType: "uint256",
377184
- type: "uint256"
377185
- },
377186
- {
377187
- name: "expectedLiquidity",
377188
- internalType: "uint256",
377189
- type: "uint256"
377190
- },
377191
- { name: "totalBorrowed", internalType: "uint256", type: "uint256" },
377192
- { name: "totalDebtLimit", internalType: "uint256", type: "uint256" },
377193
- {
377194
- name: "creditManagerDebtParams",
377195
- internalType: "struct CreditManagerDebtParams[]",
377196
- type: "tuple[]",
377197
- components: [
377198
- {
377199
- name: "creditManager",
377200
- internalType: "address",
377201
- type: "address"
377202
- },
377203
- { name: "borrowed", internalType: "uint256", type: "uint256" },
377204
- { name: "limit", internalType: "uint256", type: "uint256" },
377205
- {
377206
- name: "availableToBorrow",
377207
- internalType: "uint256",
377208
- type: "uint256"
377209
- }
377210
- ]
377211
- },
377212
- { name: "totalAssets", internalType: "uint256", type: "uint256" },
377213
- { name: "totalSupply", internalType: "uint256", type: "uint256" },
377214
- { name: "supplyRate", internalType: "uint256", type: "uint256" },
377215
- {
377216
- name: "baseInterestRate",
377217
- internalType: "uint256",
377218
- type: "uint256"
377219
- },
377220
- { name: "dieselRate_RAY", internalType: "uint256", type: "uint256" },
377221
- { name: "withdrawFee", internalType: "uint256", type: "uint256" },
377222
- {
377223
- name: "lastBaseInterestUpdate",
377224
- internalType: "uint256",
377225
- type: "uint256"
377226
- },
377227
- {
377228
- name: "baseInterestIndexLU",
377229
- internalType: "uint256",
377230
- type: "uint256"
377231
- },
377232
- { name: "version", internalType: "uint256", type: "uint256" },
377233
- { name: "poolQuotaKeeper", internalType: "address", type: "address" },
377234
- { name: "gauge", internalType: "address", type: "address" },
377235
- {
377236
- name: "quotas",
377237
- internalType: "struct QuotaInfo[]",
377238
- type: "tuple[]",
377239
- components: [
377240
- { name: "token", internalType: "address", type: "address" },
377241
- { name: "rate", internalType: "uint16", type: "uint16" },
377242
- {
377243
- name: "quotaIncreaseFee",
377244
- internalType: "uint16",
377245
- type: "uint16"
377246
- },
377247
- { name: "totalQuoted", internalType: "uint96", type: "uint96" },
377248
- { name: "limit", internalType: "uint96", type: "uint96" },
377249
- { name: "isActive", internalType: "bool", type: "bool" }
377250
- ]
377251
- },
377252
- {
377253
- name: "zappers",
377254
- internalType: "struct ZapperInfo[]",
377255
- type: "tuple[]",
377256
- components: [
377257
- { name: "zapper", internalType: "address", type: "address" },
377258
- { name: "tokenIn", internalType: "address", type: "address" },
377259
- { name: "tokenOut", internalType: "address", type: "address" }
377260
- ]
377261
- },
377262
- {
377263
- name: "lirm",
377264
- internalType: "struct LinearModel",
377265
- type: "tuple",
377266
- components: [
377267
- {
377268
- name: "interestModel",
377269
- internalType: "address",
377270
- type: "address"
377271
- },
377272
- { name: "version", internalType: "uint256", type: "uint256" },
377273
- { name: "U_1", internalType: "uint16", type: "uint16" },
377274
- { name: "U_2", internalType: "uint16", type: "uint16" },
377275
- { name: "R_base", internalType: "uint16", type: "uint16" },
377276
- { name: "R_slope1", internalType: "uint16", type: "uint16" },
377277
- { name: "R_slope2", internalType: "uint16", type: "uint16" },
377278
- { name: "R_slope3", internalType: "uint16", type: "uint16" },
377279
- {
377280
- name: "isBorrowingMoreU2Forbidden",
377281
- internalType: "bool",
377282
- type: "bool"
377283
- }
377284
- ]
377285
- },
377286
- { name: "isPaused", internalType: "bool", type: "bool" }
377287
- ]
377288
- }
377289
- ],
377290
- stateMutability: "view"
377291
- },
377292
- {
377293
- type: "function",
377294
- inputs: [],
377295
- name: "version",
377296
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
377297
- stateMutability: "view"
377298
- }
377299
- ];
377300
376350
  var PERCENTAGE_FACTOR_1KK = PERCENTAGE_DECIMALS * PERCENTAGE_FACTOR;
377301
376351
  var ONE = PERCENTAGE_FACTOR_1KK * 10n;
377302
376352
  var CreditAccountsService = class extends SDKConstruct {
@@ -378749,9 +377799,9 @@ var log_default = logger;
378749
377799
  var log = log_default.child({ name: "git" });
378750
377800
  function getGithubUrl(repo, https = false) {
378751
377801
  const credentials = process.env.GITHUB_TOKEN ?? process.env.GH_TOKEN;
378752
- const path12 = repo.replace(/^@/, "").replace(/\/$/, "");
377802
+ const path13 = repo.replace(/^@/, "").replace(/\/$/, "");
378753
377803
  const cred = credentials ? `${credentials}@` : "";
378754
- return https || credentials ? `https://${cred}github.com/${path12}.git` : `git@github.com:${path12}.git`;
377804
+ return https || credentials ? `https://${cred}github.com/${path13}.git` : `git@github.com:${path13}.git`;
378755
377805
  }
378756
377806
  async function cloneRepo(opts) {
378757
377807
  const { repo, commit, sandboxDir } = opts;
@@ -386018,7 +385068,7 @@ var iDataCompressorV2_1Abi = [
386018
385068
  stateMutability: "view"
386019
385069
  }
386020
385070
  ];
386021
- var iDataCompressorV3Abi2 = [
385071
+ var iDataCompressorV3Abi = [
386022
385072
  {
386023
385073
  type: "function",
386024
385074
  inputs: [
@@ -396058,8 +395108,8 @@ function asyncExecSolc(inputStringified, solcPath) {
396058
395108
  child.stdin.end();
396059
395109
  });
396060
395110
  }
396061
- function importWorker(path12, options) {
396062
- const resolvedPath = __require.resolve(path12);
395111
+ function importWorker(path13, options) {
395112
+ const resolvedPath = __require.resolve(path13);
396063
395113
  return new Worker(resolvedPath, {
396064
395114
  ...options,
396065
395115
  execArgv: /\.ts$/.test(resolvedPath) ? ["--require", "ts-node/register"] : void 0
@@ -396085,7 +395135,7 @@ function isCallExternalTransaction(t) {
396085
395135
  // ../../packages/node/dist/utils.js
396086
395136
  var import_bytecode_utils = __toESM(require_main(), 1);
396087
395137
  function extractFilesFromJSON(files) {
396088
- return Object.entries(files).map(([path12, file]) => {
395138
+ return Object.entries(files).map(([path13, file]) => {
396089
395139
  let buffer2 = null;
396090
395140
  if (Buffer.isBuffer(file)) {
396091
395141
  buffer2 = file;
@@ -396100,7 +395150,7 @@ function extractFilesFromJSON(files) {
396100
395150
  throw new Error(`cannot convert ${typeof file} into buffer`);
396101
395151
  }
396102
395152
  return {
396103
- path: path12,
395153
+ path: path13,
396104
395154
  buffer: buffer2
396105
395155
  };
396106
395156
  });
@@ -396161,8 +395211,8 @@ var Auditor = class {
396161
395211
  if (!meta.files) {
396162
395212
  throw new Error("no files to audit");
396163
395213
  }
396164
- const files = extractFilesFromJSON(meta.files).filter((f) => f.path !== "metadata.json").map(({ path: path12, buffer: buffer2 }) => {
396165
- const p = path12.includes("node_modules/") ? path12.replace("node_modules/", "") : meta.source;
395214
+ const files = extractFilesFromJSON(meta.files).filter((f) => f.path !== "metadata.json").map(({ path: path13, buffer: buffer2 }) => {
395215
+ const p = path13.includes("node_modules/") ? path13.replace("node_modules/", "") : meta.source;
396166
395216
  const gearbox = p.startsWith("@gearbox-protocol");
396167
395217
  return {
396168
395218
  gearbox,
@@ -396182,8 +395232,8 @@ var Auditor = class {
396182
395232
  */
396183
395233
  async auditEtherscanVerified(contract) {
396184
395234
  const input = parseEtherscanSourceCode(contract);
396185
- const files = extractFilesFromJSON(input.sources).map(({ path: path12, buffer: buffer2 }) => {
396186
- const p = path12.replace("node_modules/", "");
395235
+ const files = extractFilesFromJSON(input.sources).map(({ path: path13, buffer: buffer2 }) => {
395236
+ const p = path13.replace("node_modules/", "");
396187
395237
  const gearbox = p.startsWith("@gearbox-protocol");
396188
395238
  return {
396189
395239
  gearbox,
@@ -396693,8 +395743,8 @@ function getErrorMap() {
396693
395743
  return overrideErrorMap;
396694
395744
  }
396695
395745
  var makeIssue = (params) => {
396696
- const { data, path: path12, errorMaps, issueData } = params;
396697
- const fullPath = [...path12, ...issueData.path || []];
395746
+ const { data, path: path13, errorMaps, issueData } = params;
395747
+ const fullPath = [...path13, ...issueData.path || []];
396698
395748
  const fullIssue = {
396699
395749
  ...issueData,
396700
395750
  path: fullPath
@@ -396819,11 +395869,11 @@ var errorUtil;
396819
395869
  var _ZodEnum_cache;
396820
395870
  var _ZodNativeEnum_cache;
396821
395871
  var ParseInputLazyPath = class {
396822
- constructor(parent, value, path12, key) {
395872
+ constructor(parent, value, path13, key) {
396823
395873
  this._cachedPath = [];
396824
395874
  this.parent = parent;
396825
395875
  this.data = value;
396826
- this._path = path12;
395876
+ this._path = path13;
396827
395877
  this._key = key;
396828
395878
  }
396829
395879
  get path() {
@@ -401161,19 +400211,19 @@ function toKey(value) {
401161
400211
  var toKey_default = toKey;
401162
400212
 
401163
400213
  // ../../node_modules/lodash-es/_baseGet.js
401164
- function baseGet(object, path12) {
401165
- path12 = castPath_default(path12, object);
401166
- var index2 = 0, length = path12.length;
400214
+ function baseGet(object, path13) {
400215
+ path13 = castPath_default(path13, object);
400216
+ var index2 = 0, length = path13.length;
401167
400217
  while (object != null && index2 < length) {
401168
- object = object[toKey_default(path12[index2++])];
400218
+ object = object[toKey_default(path13[index2++])];
401169
400219
  }
401170
400220
  return index2 && index2 == length ? object : void 0;
401171
400221
  }
401172
400222
  var baseGet_default = baseGet;
401173
400223
 
401174
400224
  // ../../node_modules/lodash-es/get.js
401175
- function get(object, path12, defaultValue) {
401176
- var result = object == null ? void 0 : baseGet_default(object, path12);
400225
+ function get(object, path13, defaultValue) {
400226
+ var result = object == null ? void 0 : baseGet_default(object, path13);
401177
400227
  return result === void 0 ? defaultValue : result;
401178
400228
  }
401179
400229
  var get_default = get;
@@ -402122,11 +401172,11 @@ function baseHasIn(object, key) {
402122
401172
  var baseHasIn_default = baseHasIn;
402123
401173
 
402124
401174
  // ../../node_modules/lodash-es/_hasPath.js
402125
- function hasPath(object, path12, hasFunc) {
402126
- path12 = castPath_default(path12, object);
402127
- var index2 = -1, length = path12.length, result = false;
401175
+ function hasPath(object, path13, hasFunc) {
401176
+ path13 = castPath_default(path13, object);
401177
+ var index2 = -1, length = path13.length, result = false;
402128
401178
  while (++index2 < length) {
402129
- var key = toKey_default(path12[index2]);
401179
+ var key = toKey_default(path13[index2]);
402130
401180
  if (!(result = object != null && hasFunc(object, key))) {
402131
401181
  break;
402132
401182
  }
@@ -402141,21 +401191,21 @@ function hasPath(object, path12, hasFunc) {
402141
401191
  var hasPath_default = hasPath;
402142
401192
 
402143
401193
  // ../../node_modules/lodash-es/hasIn.js
402144
- function hasIn(object, path12) {
402145
- return object != null && hasPath_default(object, path12, baseHasIn_default);
401194
+ function hasIn(object, path13) {
401195
+ return object != null && hasPath_default(object, path13, baseHasIn_default);
402146
401196
  }
402147
401197
  var hasIn_default = hasIn;
402148
401198
 
402149
401199
  // ../../node_modules/lodash-es/_baseMatchesProperty.js
402150
401200
  var COMPARE_PARTIAL_FLAG6 = 1;
402151
401201
  var COMPARE_UNORDERED_FLAG4 = 2;
402152
- function baseMatchesProperty(path12, srcValue) {
402153
- if (isKey_default(path12) && isStrictComparable_default(srcValue)) {
402154
- return matchesStrictComparable_default(toKey_default(path12), srcValue);
401202
+ function baseMatchesProperty(path13, srcValue) {
401203
+ if (isKey_default(path13) && isStrictComparable_default(srcValue)) {
401204
+ return matchesStrictComparable_default(toKey_default(path13), srcValue);
402155
401205
  }
402156
401206
  return function(object) {
402157
- var objValue = get_default(object, path12);
402158
- return objValue === void 0 && objValue === srcValue ? hasIn_default(object, path12) : baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG6 | COMPARE_UNORDERED_FLAG4);
401207
+ var objValue = get_default(object, path13);
401208
+ return objValue === void 0 && objValue === srcValue ? hasIn_default(object, path13) : baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG6 | COMPARE_UNORDERED_FLAG4);
402159
401209
  };
402160
401210
  }
402161
401211
  var baseMatchesProperty_default = baseMatchesProperty;
@@ -402169,16 +401219,16 @@ function baseProperty(key) {
402169
401219
  var baseProperty_default = baseProperty;
402170
401220
 
402171
401221
  // ../../node_modules/lodash-es/_basePropertyDeep.js
402172
- function basePropertyDeep(path12) {
401222
+ function basePropertyDeep(path13) {
402173
401223
  return function(object) {
402174
- return baseGet_default(object, path12);
401224
+ return baseGet_default(object, path13);
402175
401225
  };
402176
401226
  }
402177
401227
  var basePropertyDeep_default = basePropertyDeep;
402178
401228
 
402179
401229
  // ../../node_modules/lodash-es/property.js
402180
- function property(path12) {
402181
- return isKey_default(path12) ? baseProperty_default(toKey_default(path12)) : basePropertyDeep_default(path12);
401230
+ function property(path13) {
401231
+ return isKey_default(path13) ? baseProperty_default(toKey_default(path13)) : basePropertyDeep_default(path13);
402182
401232
  }
402183
401233
  var property_default = property;
402184
401234
 
@@ -409528,7 +408578,7 @@ var ZeroLT = class extends ProviderBase {
409528
408578
  this.logger.debug(`data compressor: ${dc300Addr}`);
409529
408579
  const cms = await this.client.readContract({
409530
408580
  address: dc300Addr,
409531
- abi: iDataCompressorV3Abi2,
408581
+ abi: iDataCompressorV3Abi,
409532
408582
  functionName: "getCreditManagersV3List"
409533
408583
  });
409534
408584
  this.logger.debug(`total managers: ${cms.length}`);
@@ -410636,223 +409686,6 @@ function audit() {
410636
409686
  });
410637
409687
  }
410638
409688
 
410639
- // src/commands/compare-accounts.ts
410640
- var import_table2 = __toESM(require_src10(), 1);
410641
- function compareAccounts() {
410642
- return newCommand().name("compare-accounts").description("Compare gauges and active bots").addOption(
410643
- new Option(
410644
- "--address-provider <address>",
410645
- "new address provider address"
410646
- ).env("ADDRESS_PROVIDER")
410647
- ).addOption(
410648
- new Option("--shared-dir <dir>", "dir to put output files").env(
410649
- "SHARED_DIR"
410650
- )
410651
- ).addOption(
410652
- new Option("--anvil-url <url>", "anvil rpc url").env("ANVIL_URL")
410653
- ).action(async (opts) => {
410654
- log_default.info("starting sdk v3.1 example");
410655
- let {
410656
- addressProvider,
410657
- marketConfigurators,
410658
- anvilUrl = "http://127.0.0.1:8545",
410659
- sharedDir = "."
410660
- } = opts;
410661
- const sdk = await GearboxSDK.attach({
410662
- rpcURLs: [anvilUrl],
410663
- timeout: 48e4,
410664
- addressProvider,
410665
- logger: log_default,
410666
- ignoreUpdateablePrices: true,
410667
- marketConfigurators: marketConfigurators ?? []
410668
- });
410669
- const v31Accounts = await loadV31Accounts(sdk, true);
410670
- const v30Accounts = await loadV300Accounts(sdk, true);
410671
- log_default.info(
410672
- `loaded ${v30Accounts.size} v3.0 accounts and ${v31Accounts.size} v3.1 accounts`
410673
- );
410674
- await examineBots(sdk, v30Accounts, v31Accounts);
410675
- await examineGauges(sdk, v30Accounts, v31Accounts);
410676
- log_default.info("done");
410677
- });
410678
- }
410679
- async function examineBots(sdk, v300accounts, v310accounts) {
410680
- const v310bots = await loadV310Bots(sdk, v310accounts);
410681
- const v300bots = await loadV300Bots(v300accounts);
410682
- const rows = [
410683
- [
410684
- source_default.white("Credit Account"),
410685
- source_default.white("v3.0 Active Bots"),
410686
- source_default.white("v3.1 Active Bots")
410687
- ]
410688
- ];
410689
- for (const account of v310accounts.keys()) {
410690
- const newBots = v310bots.get(account) ?? [];
410691
- const oldBots = v300bots.get(account) ?? [];
410692
- const color = compareBots(newBots, oldBots);
410693
- rows.push(
410694
- [
410695
- account,
410696
- oldBots.join(", "),
410697
- newBots.map(
410698
- (bot) => bot.baseParams.addr + (bot.forbidden ? " (forbidden)" : "")
410699
- ).join(", ")
410700
- ].map((c) => color(c))
410701
- );
410702
- }
410703
- const output = (0, import_table2.table)(rows);
410704
- console.log(output);
410705
- }
410706
- async function examineGauges(sdk, v300accounts, v310accounts) {
410707
- const v310gauges = await loadV310Gauges(sdk, v310accounts);
410708
- const v300gauges = await loadV300Gauges(sdk, v300accounts);
410709
- const gaugesRows = [];
410710
- for (const account of v300accounts.keys()) {
410711
- const newG = v310gauges.get(account) ?? [];
410712
- const oldG = v300gauges.get(account) ?? [];
410713
- const ok = compareGauges(newG, oldG);
410714
- gaugesRows.push([account, ok ? "OK" : "NOT OK"]);
410715
- }
410716
- const gaugesOutput = (0, import_table2.table)(gaugesRows);
410717
- console.log(gaugesOutput);
410718
- }
410719
- async function loadV31Accounts(sdk, skipZeroDebt) {
410720
- const accountsService = new CreditAccountsService(sdk);
410721
- const v31Accounts = await accountsService.getCreditAccounts({
410722
- includeZeroDebt: !skipZeroDebt
410723
- });
410724
- log_default.debug(`loaded v3.1 ${v31Accounts.length} accounts`);
410725
- return new AddressMap(v31Accounts.map((a) => [a.creditAccount, a]));
410726
- }
410727
- async function loadV300Accounts(sdk, skipZeroDebt) {
410728
- const client = sdk.provider.publicClient;
410729
- const ap3 = ADDRESS_PROVIDER.Mainnet;
410730
- const compressor = await client.readContract({
410731
- address: ap3,
410732
- abi: iAddressProviderV3Abi,
410733
- functionName: "getAddressOrRevert",
410734
- args: [stringToHex("DATA_COMPRESSOR", { size: 32 }), 300n]
410735
- });
410736
- log_default.debug(`loaded v3.0 compressor ${compressor}`);
410737
- const cms = await client.readContract({
410738
- address: compressor,
410739
- abi: iDataCompressorV3Abi,
410740
- functionName: "getCreditManagersV3List",
410741
- args: []
410742
- });
410743
- log_default.debug(`loaded ${cms.length} v3.0 credit managers `);
410744
- let allAccounts = [];
410745
- for (const cm of cms) {
410746
- const accounts = await client.simulateContract({
410747
- address: compressor,
410748
- abi: iDataCompressorV3Abi,
410749
- functionName: "getCreditAccountsByCreditManager",
410750
- args: [cm.addr, []]
410751
- });
410752
- allAccounts.push(
410753
- ...accounts.result
410754
- );
410755
- }
410756
- if (skipZeroDebt) {
410757
- allAccounts = allAccounts.filter((a) => a.debt > 0n);
410758
- }
410759
- log_default.debug(`loaded v3.0 ${allAccounts.length} accounts`);
410760
- return new AddressMap(allAccounts.map((a) => [a.addr, a]));
410761
- }
410762
- async function loadV310Bots(sdk, v31Accounts) {
410763
- const pcAddr = sdk.addressProvider.getLatestVersion(AP_PERIPHERY_COMPRESSOR);
410764
- const accounts = v31Accounts.keys();
410765
- const mc = sdk.marketRegister.marketConfigurators[0].address;
410766
- const resp = await sdk.provider.publicClient.multicall({
410767
- contracts: accounts.map((a) => ({
410768
- address: pcAddr,
410769
- abi: iPeripheryCompressorAbi,
410770
- functionName: "getActiveBots",
410771
- args: [mc, a]
410772
- })),
410773
- allowFailure: false
410774
- });
410775
- return new AddressMap(resp.map((d, i) => [accounts[i], d]));
410776
- }
410777
- async function loadV300Bots(v31Accounts) {
410778
- return new AddressMap(
410779
- v31Accounts.values().map((a) => [a.addr, [...a.activeBots]])
410780
- );
410781
- }
410782
- async function loadV300Gauges(sdk, v30Accounts) {
410783
- const accounts = v30Accounts.keys();
410784
- const compressor = await sdk.provider.publicClient.readContract({
410785
- address: ADDRESS_PROVIDER.Mainnet,
410786
- abi: iAddressProviderV3Abi,
410787
- functionName: "getAddressOrRevert",
410788
- args: [stringToHex("DATA_COMPRESSOR", { size: 32 }), 300n]
410789
- });
410790
- const resp = await sdk.provider.publicClient.multicall({
410791
- contracts: accounts.map((a) => ({
410792
- address: compressor,
410793
- abi: iDataCompressorV3Abi,
410794
- functionName: "getGaugesV3Data",
410795
- args: [a]
410796
- })),
410797
- allowFailure: false
410798
- });
410799
- return new AddressMap(
410800
- resp.map((d, i) => [accounts[i], d])
410801
- );
410802
- }
410803
- async function loadV310Gauges(sdk, v31Accounts) {
410804
- const accounts = v31Accounts.keys();
410805
- const gcAddr = sdk.addressProvider.getLatestVersion(AP_GAUGE_COMPRESSOR);
410806
- const configurators = [];
410807
- const pools = sdk.marketRegister.pools.map((p) => p.pool.address);
410808
- console.log({ configurators, pools });
410809
- const resp = await sdk.provider.publicClient.multicall({
410810
- contracts: accounts.map((a) => ({
410811
- address: gcAddr,
410812
- abi: iGaugeCompressorAbi,
410813
- functionName: "getGauges",
410814
- args: [
410815
- {
410816
- configurators: [],
410817
- pools,
410818
- underlying: ADDRESS_0X0
410819
- },
410820
- a
410821
- ]
410822
- })),
410823
- allowFailure: false
410824
- });
410825
- console.log(resp);
410826
- return new AddressMap(resp.map((d, i) => [accounts[i], resp[i]]));
410827
- }
410828
- function compareBots(v31, v3) {
410829
- const v31Addresses = v31.map((bot) => bot.baseParams.addr.toLowerCase());
410830
- const v31Filtered = v31.filter((bot) => !bot.forbidden).map((bot) => bot.baseParams.addr.toLowerCase());
410831
- const v30 = v3.map((addr) => addr.toLowerCase());
410832
- const allMatch = v31Addresses.length === v30.length && v31Addresses.every((addr) => v30.includes(addr));
410833
- const filteredMatch = v31Filtered.length === v30.length && v31Filtered.every((addr) => v3.includes(addr));
410834
- if (allMatch) {
410835
- return source_default.green;
410836
- } else if (filteredMatch) {
410837
- return source_default.yellow;
410838
- } else {
410839
- return source_default.red;
410840
- }
410841
- }
410842
- function compareGauges(a, b) {
410843
- const aa = a.sort(
410844
- (a2, b2) => a2.addr.toLowerCase().localeCompare(b2.addr.toLowerCase())
410845
- );
410846
- const bb = b.sort(
410847
- (a2, b2) => a2.addr.toLowerCase().localeCompare(b2.addr.toLowerCase())
410848
- );
410849
- return aa.length === bb.length && aa.every((a2, i) => compareGauge(a2, bb[i]));
410850
- }
410851
- function compareGauge(a, b) {
410852
- const ok = b.addr.toLowerCase() === a.addr.toLowerCase() && b.currentEpoch === a.currentEpoch && b.name === a.name && b.pool.toLowerCase() === a.pool.toLowerCase() && b.symbol === a.symbol && b.underlying.toLowerCase() === a.underlying.toLowerCase();
410853
- return ok;
410854
- }
410855
-
410856
409689
  // src/commands/discover-market-configurator.ts
410857
409690
  import { readFile as readFile8, writeFile as writeFile5 } from "node:fs/promises";
410858
409691
  import path8 from "node:path";
@@ -410920,11 +409753,662 @@ function discoverMarketConfigurator() {
410920
409753
  });
410921
409754
  }
410922
409755
 
410923
- // src/commands/open-accounts.ts
409756
+ // src/commands/execute-jsons/index.ts
410924
409757
  import { mkdir, writeFile as writeFile6 } from "node:fs/promises";
410925
409758
  import path9 from "node:path";
410926
- function openAccounts() {
410927
- return newCommand().name("open-accounts").description("Script to open accounts in v3.1").addOption(
409759
+
409760
+ // src/commands/execute-jsons/execute.ts
409761
+ async function executeJson(opts) {
409762
+ const { rpcUrl, privateKey, sponsorPK, jsonData } = opts;
409763
+ const publicClient = createPublicClient({
409764
+ chain: mainnet,
409765
+ transport: http(rpcUrl)
409766
+ });
409767
+ const account = privateKeyToAccount(privateKey);
409768
+ const walletClient = createWalletClient({
409769
+ account,
409770
+ chain: mainnet,
409771
+ transport: http(rpcUrl)
409772
+ });
409773
+ const balance = await publicClient.getBalance({ address: account.address });
409774
+ console.log(`
409775
+ Account balance: ${balance} wei`);
409776
+ console.log(`Account balance: ${balance / BigInt(10 ** 18)} ETH
409777
+ `);
409778
+ if (balance < BigInt(10 ** 18)) {
409779
+ const sponsorAccount = privateKeyToAccount(sponsorPK);
409780
+ const sponsorWalletClient = createWalletClient({
409781
+ account: sponsorAccount,
409782
+ chain: mainnet,
409783
+ transport: http(rpcUrl)
409784
+ });
409785
+ console.log("\nTransferring 1 ETH from sponsor to account...");
409786
+ const transferHash = await sponsorWalletClient.sendTransaction({
409787
+ to: account.address,
409788
+ value: BigInt(10 ** 18)
409789
+ // 1 ETH
409790
+ });
409791
+ console.log(`Transfer hash: ${transferHash}`);
409792
+ console.log("Waiting for transfer confirmation...");
409793
+ const transferReceipt = await publicClient.waitForTransactionReceipt({
409794
+ hash: transferHash
409795
+ });
409796
+ console.log(`Transfer confirmed in block ${transferReceipt.blockNumber}`);
409797
+ console.log(`Gas used: ${transferReceipt.gasUsed}`);
409798
+ console.log(
409799
+ `Status: ${transferReceipt.status === "success" ? "Success" : "Failed"}
409800
+ `
409801
+ );
409802
+ }
409803
+ for (let i = 0; i < jsonData.length; i++) {
409804
+ const tx = jsonData[i];
409805
+ console.log(`
409806
+ Transaction ${i + 1}/${jsonData.length}`);
409807
+ console.log("----------------------------------------");
409808
+ console.log(`To: ${tx.to}`);
409809
+ if (tx.contractMethod) {
409810
+ console.log(`Method: ${tx.contractMethod.name}`);
409811
+ if (tx.contractInputsValues) {
409812
+ console.log("Input Values:");
409813
+ Object.entries(tx.contractInputsValues).forEach(([key, value]) => {
409814
+ console.log(` ${key}: ${value}`);
409815
+ });
409816
+ }
409817
+ }
409818
+ if (tx.description) {
409819
+ console.log(`Description: ${tx.description}`);
409820
+ }
409821
+ console.log(`Value: ${tx.value || 0} wei`);
409822
+ try {
409823
+ console.log("\nSending transaction...");
409824
+ const hash2 = await walletClient.sendTransaction({
409825
+ to: tx.to,
409826
+ value: BigInt(tx.value || 0),
409827
+ data: tx.callData,
409828
+ gas: BigInt(29e6)
409829
+ });
409830
+ console.log(`Transaction hash: ${hash2}`);
409831
+ console.log("Waiting for confirmation...");
409832
+ const receipt = await publicClient.waitForTransactionReceipt({ hash: hash2 });
409833
+ console.log(`Confirmed in block ${receipt.blockNumber}`);
409834
+ console.log(`Gas used: ${receipt.gasUsed}`);
409835
+ console.log(
409836
+ `Status: ${receipt.status === "success" ? "Success" : "Failed"}`
409837
+ );
409838
+ } catch (error) {
409839
+ console.error("Error executing transaction:", error);
409840
+ }
409841
+ }
409842
+ }
409843
+
409844
+ // src/commands/execute-jsons/gip.json
409845
+ var gip_default = [
409846
+ {
409847
+ to: "0x67b900f24357e3e0b7b481b2852170955ff52221",
409848
+ value: "0",
409849
+ contractMethod: {
409850
+ inputs: [
409851
+ {
409852
+ name: "minorVersion",
409853
+ internalType: "uint256",
409854
+ type: "uint256"
409855
+ },
409856
+ {
409857
+ name: "underlying",
409858
+ internalType: "address",
409859
+ type: "address"
409860
+ },
409861
+ {
409862
+ name: "name",
409863
+ internalType: "string",
409864
+ type: "string"
409865
+ },
409866
+ {
409867
+ name: "symbol",
409868
+ internalType: "string",
409869
+ type: "string"
409870
+ },
409871
+ {
409872
+ name: "interestRateModelParams",
409873
+ internalType: "struct DeployParams",
409874
+ type: "tuple",
409875
+ components: [
409876
+ {
409877
+ name: "postfix",
409878
+ internalType: "bytes32",
409879
+ type: "bytes32"
409880
+ },
409881
+ {
409882
+ name: "salt",
409883
+ internalType: "bytes32",
409884
+ type: "bytes32"
409885
+ },
409886
+ {
409887
+ name: "constructorParams",
409888
+ internalType: "bytes",
409889
+ type: "bytes"
409890
+ }
409891
+ ]
409892
+ },
409893
+ {
409894
+ name: "rateKeeperParams",
409895
+ internalType: "struct DeployParams",
409896
+ type: "tuple",
409897
+ components: [
409898
+ {
409899
+ name: "postfix",
409900
+ internalType: "bytes32",
409901
+ type: "bytes32"
409902
+ },
409903
+ {
409904
+ name: "salt",
409905
+ internalType: "bytes32",
409906
+ type: "bytes32"
409907
+ },
409908
+ {
409909
+ name: "constructorParams",
409910
+ internalType: "bytes",
409911
+ type: "bytes"
409912
+ }
409913
+ ]
409914
+ },
409915
+ {
409916
+ name: "lossPolicyParams",
409917
+ internalType: "struct DeployParams",
409918
+ type: "tuple",
409919
+ components: [
409920
+ {
409921
+ name: "postfix",
409922
+ internalType: "bytes32",
409923
+ type: "bytes32"
409924
+ },
409925
+ {
409926
+ name: "salt",
409927
+ internalType: "bytes32",
409928
+ type: "bytes32"
409929
+ },
409930
+ {
409931
+ name: "constructorParams",
409932
+ internalType: "bytes",
409933
+ type: "bytes"
409934
+ }
409935
+ ]
409936
+ },
409937
+ {
409938
+ name: "underlyingPriceFeed",
409939
+ internalType: "address",
409940
+ type: "address"
409941
+ }
409942
+ ],
409943
+ name: "createMarket",
409944
+ payable: false
409945
+ },
409946
+ signature: "function createMarket(uint256 minorVersion, address underlying, string name, string symbol, (bytes32 postfix, bytes32 salt, bytes constructorParams) interestRateModelParams, (bytes32 postfix, bytes32 salt, bytes constructorParams) rateKeeperParams, (bytes32 postfix, bytes32 salt, bytes constructorParams) lossPolicyParams, address underlyingPriceFeed) returns (address pool)",
409947
+ callData: "0x0575e3990000000000000000000000000000000000000000000000000000000000000136000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000002e000000000000000000000000000000000000000000000000000000000000003a00000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b84190000000000000000000000000000000000000000000000000000000000000010546865206669727374206d61726b657400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000564574554480000000000000000000000000000000000000000000000000000004c494e45415200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000001d4c0000000000000000000000000000000000000000000000000000000000002328000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000007d00000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000000154554d424c4552000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000e5d32b35b0d7b8d171325f815b65230881e67ac000000000000000000000000000000000000000000000000000000000000000044454641554c54000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000e5d32b35b0d7b8d171325f815b65230881e67ac000000000000000000000000f2ef708b652410233d7e1e63ae10a66a64449b88",
409948
+ contractInputsValues: {
409949
+ minorVersion: {
409950
+ __type: "bigint",
409951
+ __value: "310"
409952
+ },
409953
+ underlying: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
409954
+ name: "The first market",
409955
+ symbol: "dWETH",
409956
+ interestRateModelParams: {
409957
+ postfix: "0x4c494e4541520000000000000000000000000000000000000000000000000000",
409958
+ salt: "0x0000000000000000000000000000000000000000000000000000000000000000",
409959
+ constructorParams: "0x0000000000000000000000000000000000000000000000000000000000001d4c0000000000000000000000000000000000000000000000000000000000002328000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000000001"
409960
+ },
409961
+ rateKeeperParams: {
409962
+ postfix: "0x54554d424c455200000000000000000000000000000000000000000000000000",
409963
+ salt: "0x0000000000000000000000000000000000000000000000000000000000000000",
409964
+ constructorParams: "0x0000000000000000000000000e5d32b35b0d7b8d171325f815b65230881e67ac0000000000000000000000000000000000000000000000000000000000000000"
409965
+ },
409966
+ lossPolicyParams: {
409967
+ postfix: "0x44454641554c5400000000000000000000000000000000000000000000000000",
409968
+ salt: "0x0000000000000000000000000000000000000000000000000000000000000000",
409969
+ constructorParams: "0x0000000000000000000000000e5d32b35b0d7b8d171325f815b65230881e67ac000000000000000000000000f2ef708b652410233d7e1e63ae10a66a64449b88"
409970
+ },
409971
+ underlyingPriceFeed: "0x5f4ec3df9cbd43714fe2740f5e3616155c5b8419"
409972
+ },
409973
+ description: 'MarketConfigurator.createMarket(minorVersion: 310, underlying: 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, name: The first market, symbol: dWETH, interestRateModelParams: {\n "postfix": "0x4c494e4541520000000000000000000000000000000000000000000000000000",\n "salt": "0x0000000000000000000000000000000000000000000000000000000000000000",\n "constructorParams": "0x0000000000000000000000000000000000000000000000000000000000001d4c0000000000000000000000000000000000000000000000000000000000002328000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000000001"\n}, rateKeeperParams: {\n "postfix": "0x54554d424c455200000000000000000000000000000000000000000000000000",\n "salt": "0x0000000000000000000000000000000000000000000000000000000000000000",\n "constructorParams": "0x0000000000000000000000000e5d32b35b0d7b8d171325f815b65230881e67ac0000000000000000000000000000000000000000000000000000000000000000"\n}, lossPolicyParams: {\n "postfix": "0x44454641554c5400000000000000000000000000000000000000000000000000",\n "salt": "0x0000000000000000000000000000000000000000000000000000000000000000",\n "constructorParams": "0x0000000000000000000000000e5d32b35b0d7b8d171325f815b65230881e67ac000000000000000000000000f2ef708b652410233d7e1e63ae10a66a64449b88"\n}, underlyingPriceFeed: 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419)'
409974
+ },
409975
+ {
409976
+ to: "0x67b900f24357e3e0b7b481b2852170955ff52221",
409977
+ value: "0",
409978
+ contractMethod: {
409979
+ inputs: [
409980
+ {
409981
+ name: "pool",
409982
+ internalType: "address",
409983
+ type: "address"
409984
+ },
409985
+ {
409986
+ name: "token",
409987
+ internalType: "address",
409988
+ type: "address"
409989
+ },
409990
+ {
409991
+ name: "priceFeed",
409992
+ internalType: "address",
409993
+ type: "address"
409994
+ }
409995
+ ],
409996
+ name: "addToken",
409997
+ payable: false
409998
+ },
409999
+ signature: "function addToken(address pool, address token, address priceFeed)",
410000
+ callData: "0xc6e85b3b0000000000000000000000000e5d32b35b0d7b8d171325f815b65230881e67ac000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000008fffffd4afb6115b954bd326cbe7b4ba576818f6",
410001
+ contractInputsValues: {
410002
+ pool: "0x0e5d32b35b0d7b8d171325f815b65230881e67ac",
410003
+ token: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
410004
+ priceFeed: "0x8fffffd4afb6115b954bd326cbe7b4ba576818f6"
410005
+ },
410006
+ description: "MarketConfigurator.addToken(pool: 0x0E5d32b35B0D7b8D171325F815b65230881E67AC, token: 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, priceFeed: 0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6)"
410007
+ },
410008
+ {
410009
+ to: "0x67b900f24357e3e0b7b481b2852170955ff52221",
410010
+ value: "0",
410011
+ contractMethod: {
410012
+ inputs: [
410013
+ {
410014
+ name: "pool",
410015
+ internalType: "address",
410016
+ type: "address"
410017
+ },
410018
+ {
410019
+ name: "token",
410020
+ internalType: "address",
410021
+ type: "address"
410022
+ },
410023
+ {
410024
+ name: "priceFeed",
410025
+ internalType: "address",
410026
+ type: "address"
410027
+ }
410028
+ ],
410029
+ name: "addToken",
410030
+ payable: false
410031
+ },
410032
+ signature: "function addToken(address pool, address token, address priceFeed)",
410033
+ callData: "0xc6e85b3b0000000000000000000000000e5d32b35b0d7b8d171325f815b65230881e67ac000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000003e7d1eab13ad0104d2750b8863b489d65364e32d",
410034
+ contractInputsValues: {
410035
+ pool: "0x0e5d32b35b0d7b8d171325f815b65230881e67ac",
410036
+ token: "0xdac17f958d2ee523a2206206994597c13d831ec7",
410037
+ priceFeed: "0x3e7d1eab13ad0104d2750b8863b489d65364e32d"
410038
+ },
410039
+ description: "MarketConfigurator.addToken(pool: 0x0E5d32b35B0D7b8D171325F815b65230881E67AC, token: 0xdAC17F958D2ee523a2206206994597C13D831ec7, priceFeed: 0x3E7d1eAB13ad0104d2750B8863b489D65364e32D)"
410040
+ },
410041
+ {
410042
+ to: "0x67b900f24357e3e0b7b481b2852170955ff52221",
410043
+ value: "0",
410044
+ contractMethod: {
410045
+ inputs: [
410046
+ {
410047
+ name: "minorVersion",
410048
+ internalType: "uint256",
410049
+ type: "uint256"
410050
+ },
410051
+ {
410052
+ name: "pool",
410053
+ internalType: "address",
410054
+ type: "address"
410055
+ },
410056
+ {
410057
+ name: "encdodedParams",
410058
+ internalType: "bytes",
410059
+ type: "bytes"
410060
+ }
410061
+ ],
410062
+ name: "createCreditSuite",
410063
+ payable: false
410064
+ },
410065
+ signature: "function createCreditSuite(uint256 minorVersion, address pool, bytes encdodedParams) returns (address creditManager)",
410066
+ callData: "0x17739c1700000000000000000000000000000000000000000000000000000000000001360000000000000000000000000e5d32b35b0d7b8d171325f815b65230881e67ac000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000fa000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000003635c9adc5dea0000000000000000000000000000000000000000000000000010f0cf064dd5920000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000000952657374616b696e67000000000000000000000000000000000000000000000044454641554c5400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000f2ef708b652410233d7e1e63ae10a66a64449b88",
410067
+ contractInputsValues: {
410068
+ minorVersion: {
410069
+ __type: "bigint",
410070
+ __value: "310"
410071
+ },
410072
+ pool: "0x0e5d32b35b0d7b8d171325f815b65230881e67ac",
410073
+ encdodedParams: "0x0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000fa000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000003635c9adc5dea0000000000000000000000000000000000000000000000000010f0cf064dd5920000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000000952657374616b696e67000000000000000000000000000000000000000000000044454641554c5400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000f2ef708b652410233d7e1e63ae10a66a64449b88"
410074
+ },
410075
+ description: "MarketConfigurator.createCreditSuite(minorVersion: 310, pool: 0x0E5d32b35B0D7b8D171325F815b65230881E67AC, encdodedParams: 0x0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000fa000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000003635c9adc5dea0000000000000000000000000000000000000000000000000010f0cf064dd5920000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000000952657374616b696e67000000000000000000000000000000000000000000000044454641554c5400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000f2ef708b652410233d7e1e63ae10a66a64449b88)"
410076
+ },
410077
+ {
410078
+ to: "0x67b900f24357e3e0b7b481b2852170955ff52221",
410079
+ value: "0",
410080
+ contractMethod: {
410081
+ inputs: [
410082
+ {
410083
+ name: "creditManager",
410084
+ internalType: "address",
410085
+ type: "address"
410086
+ },
410087
+ {
410088
+ name: "data",
410089
+ internalType: "bytes",
410090
+ type: "bytes"
410091
+ }
410092
+ ],
410093
+ name: "configureCreditSuite",
410094
+ payable: false
410095
+ },
410096
+ signature: "function configureCreditSuite(address creditManager, bytes data)",
410097
+ callData: "0x27576f00000000000000000000000000c18bc642571e839520be6ac66dd2d7cc403a0d70000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000443e7c88d6000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000023f000000000000000000000000000000000000000000000000000000000",
410098
+ contractInputsValues: {
410099
+ creditManager: "0xc18bc642571e839520be6ac66dd2d7cc403a0d70",
410100
+ data: "0x3e7c88d6000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000023f0"
410101
+ },
410102
+ description: "MarketConfigurator.configureCreditSuite(creditManager: 0xc18bc642571E839520Be6ac66DD2d7CC403A0D70, data: 0x3e7c88d6000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000023f0)"
410103
+ },
410104
+ {
410105
+ to: "0x67b900f24357e3e0b7b481b2852170955ff52221",
410106
+ value: "0",
410107
+ contractMethod: {
410108
+ inputs: [
410109
+ {
410110
+ name: "creditManager",
410111
+ internalType: "address",
410112
+ type: "address"
410113
+ },
410114
+ {
410115
+ name: "data",
410116
+ internalType: "bytes",
410117
+ type: "bytes"
410118
+ }
410119
+ ],
410120
+ name: "configureCreditSuite",
410121
+ payable: false
410122
+ },
410123
+ signature: "function configureCreditSuite(address creditManager, bytes data)",
410124
+ callData: "0x27576f00000000000000000000000000c18bc642571e839520be6ac66dd2d7cc403a0d70000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000443e7c88d6000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000000000232800000000000000000000000000000000000000000000000000000000",
410125
+ contractInputsValues: {
410126
+ creditManager: "0xc18bc642571e839520be6ac66dd2d7cc403a0d70",
410127
+ data: "0x3e7c88d6000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000000000000000000000000000000000000002328"
410128
+ },
410129
+ description: "MarketConfigurator.configureCreditSuite(creditManager: 0xc18bc642571E839520Be6ac66DD2d7CC403A0D70, data: 0x3e7c88d6000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000000000000000000000000000000000000002328)"
410130
+ },
410131
+ {
410132
+ to: "0x67b900f24357e3e0b7b481b2852170955ff52221",
410133
+ value: "0",
410134
+ contractMethod: {
410135
+ inputs: [
410136
+ {
410137
+ name: "creditManager",
410138
+ internalType: "address",
410139
+ type: "address"
410140
+ },
410141
+ {
410142
+ name: "data",
410143
+ internalType: "bytes",
410144
+ type: "bytes"
410145
+ }
410146
+ ],
410147
+ name: "configureCreditSuite",
410148
+ payable: false
410149
+ },
410150
+ signature: "function configureCreditSuite(address creditManager, bytes data)",
410151
+ callData: "0x27576f00000000000000000000000000c18bc642571e839520be6ac66dd2d7cc403a0d70000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e4cda1a2710000000000000000000000000000000000000000000000000000000000000020554e49535741505f56325f524f55544552000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000040000000000000000000000000c18bc642571e839520be6ac66dd2d7cc403a0d700000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d00000000000000000000000000000000000000000000000000000000",
410152
+ contractInputsValues: {
410153
+ creditManager: "0xc18bc642571e839520be6ac66dd2d7cc403a0d70",
410154
+ data: "0xcda1a2710000000000000000000000000000000000000000000000000000000000000020554e49535741505f56325f524f55544552000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000040000000000000000000000000c18bc642571e839520be6ac66dd2d7cc403a0d700000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d"
410155
+ },
410156
+ description: "MarketConfigurator.configureCreditSuite(creditManager: 0xc18bc642571E839520Be6ac66DD2d7CC403A0D70, data: 0xcda1a2710000000000000000000000000000000000000000000000000000000000000020554e49535741505f56325f524f55544552000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000040000000000000000000000000c18bc642571e839520be6ac66dd2d7cc403a0d700000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d)"
410157
+ },
410158
+ {
410159
+ to: "0x67b900f24357e3e0b7b481b2852170955ff52221",
410160
+ value: "0",
410161
+ contractMethod: {
410162
+ inputs: [
410163
+ {
410164
+ name: "pool",
410165
+ internalType: "address",
410166
+ type: "address"
410167
+ },
410168
+ {
410169
+ name: "data",
410170
+ internalType: "bytes",
410171
+ type: "bytes"
410172
+ }
410173
+ ],
410174
+ name: "configureRateKeeper",
410175
+ payable: false
410176
+ },
410177
+ signature: "function configureRateKeeper(address pool, bytes data)",
410178
+ callData: "0xd2c6cd710000000000000000000000000e5d32b35b0d7b8d171325f815b65230881e67ac000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000442bdb7097000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000",
410179
+ contractInputsValues: {
410180
+ pool: "0x0e5d32b35b0d7b8d171325f815b65230881e67ac",
410181
+ data: "0x2bdb7097000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000001f4"
410182
+ },
410183
+ description: "MarketConfigurator.configureRateKeeper(pool: 0x0E5d32b35B0D7b8D171325F815b65230881E67AC, data: 0x2bdb7097000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000001f4)"
410184
+ },
410185
+ {
410186
+ to: "0x67b900f24357e3e0b7b481b2852170955ff52221",
410187
+ value: "0",
410188
+ contractMethod: {
410189
+ inputs: [
410190
+ {
410191
+ name: "pool",
410192
+ internalType: "address",
410193
+ type: "address"
410194
+ },
410195
+ {
410196
+ name: "data",
410197
+ internalType: "bytes",
410198
+ type: "bytes"
410199
+ }
410200
+ ],
410201
+ name: "configurePool",
410202
+ payable: false
410203
+ },
410204
+ signature: "function configurePool(address pool, bytes data)",
410205
+ callData: "0x63197bd20000000000000000000000000e5d32b35b0d7b8d171325f815b65230881e67ac00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000044b26453f6000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000000b71b0000000000000000000000000000000000000000000000000000000000",
410206
+ contractInputsValues: {
410207
+ pool: "0x0e5d32b35b0d7b8d171325f815b65230881e67ac",
410208
+ data: "0xb26453f6000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000000b71b00"
410209
+ },
410210
+ description: "MarketConfigurator.configurePool(pool: 0x0E5d32b35B0D7b8D171325F815b65230881E67AC, data: 0xb26453f6000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000000b71b00)"
410211
+ },
410212
+ {
410213
+ to: "0x67b900f24357e3e0b7b481b2852170955ff52221",
410214
+ value: "0",
410215
+ contractMethod: {
410216
+ inputs: [
410217
+ {
410218
+ name: "pool",
410219
+ internalType: "address",
410220
+ type: "address"
410221
+ },
410222
+ {
410223
+ name: "data",
410224
+ internalType: "bytes",
410225
+ type: "bytes"
410226
+ }
410227
+ ],
410228
+ name: "configurePool",
410229
+ payable: false
410230
+ },
410231
+ signature: "function configurePool(address pool, bytes data)",
410232
+ callData: "0x63197bd20000000000000000000000000e5d32b35b0d7b8d171325f815b65230881e67ac00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000044099b9bd7000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000000000012c00000000000000000000000000000000000000000000000000000000",
410233
+ contractInputsValues: {
410234
+ pool: "0x0e5d32b35b0d7b8d171325f815b65230881e67ac",
410235
+ data: "0x099b9bd7000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000000000012c"
410236
+ },
410237
+ description: "MarketConfigurator.configurePool(pool: 0x0E5d32b35B0D7b8D171325F815b65230881E67AC, data: 0x099b9bd7000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000000000012c)"
410238
+ }
410239
+ ];
410240
+
410241
+ // src/commands/execute-jsons/instance.json
410242
+ var instance_default = [
410243
+ {
410244
+ to: "0x018694d1f468ee9aaeb7b5a198d328164427c7f8",
410245
+ value: "0",
410246
+ contractMethod: {
410247
+ inputs: [
410248
+ {
410249
+ name: "target",
410250
+ internalType: "address",
410251
+ type: "address"
410252
+ },
410253
+ {
410254
+ name: "data",
410255
+ internalType: "bytes",
410256
+ type: "bytes"
410257
+ }
410258
+ ],
410259
+ name: "configureLocal",
410260
+ payable: false
410261
+ },
410262
+ signature: "function configureLocal(address target, bytes data)",
410263
+ callData: "0xca67e04800000000000000000000000093eec0f29e28c35b8e709c562b66b7debfb54f0e000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a416f5a3920000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b841900000000000000000000000000000000000000000000000000000000000119400000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000d455448205072696365466565640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
410264
+ contractInputsValues: {
410265
+ target: "0x93eec0f29e28c35b8e709c562b66b7debfb54f0e",
410266
+ data: "0x16f5a3920000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b841900000000000000000000000000000000000000000000000000000000000119400000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000d4554482050726963654665656400000000000000000000000000000000000000"
410267
+ },
410268
+ description: "InstanceManager.configureLocal(target: 0x93EeC0F29E28c35b8E709c562B66B7DebfB54F0e, data: 0x16f5a3920000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b841900000000000000000000000000000000000000000000000000000000000119400000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000d4554482050726963654665656400000000000000000000000000000000000000)"
410269
+ },
410270
+ {
410271
+ to: "0x018694d1f468ee9aaeb7b5a198d328164427c7f8",
410272
+ value: "0",
410273
+ contractMethod: {
410274
+ inputs: [
410275
+ {
410276
+ name: "target",
410277
+ internalType: "address",
410278
+ type: "address"
410279
+ },
410280
+ {
410281
+ name: "data",
410282
+ internalType: "bytes",
410283
+ type: "bytes"
410284
+ }
410285
+ ],
410286
+ name: "configureLocal",
410287
+ payable: false
410288
+ },
410289
+ signature: "function configureLocal(address target, bytes data)",
410290
+ callData: "0xca67e04800000000000000000000000093eec0f29e28c35b8e709c562b66b7debfb54f0e000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a416f5a3920000000000000000000000008fffffd4afb6115b954bd326cbe7b4ba576818f600000000000000000000000000000000000000000000000000000000000119400000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000e5553444320436861696e6c696e6b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
410291
+ contractInputsValues: {
410292
+ target: "0x93eec0f29e28c35b8e709c562b66b7debfb54f0e",
410293
+ data: "0x16f5a3920000000000000000000000008fffffd4afb6115b954bd326cbe7b4ba576818f600000000000000000000000000000000000000000000000000000000000119400000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000e5553444320436861696e6c696e6b000000000000000000000000000000000000"
410294
+ },
410295
+ description: "InstanceManager.configureLocal(target: 0x93EeC0F29E28c35b8E709c562B66B7DebfB54F0e, data: 0x16f5a3920000000000000000000000008fffffd4afb6115b954bd326cbe7b4ba576818f600000000000000000000000000000000000000000000000000000000000119400000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000e5553444320436861696e6c696e6b000000000000000000000000000000000000)"
410296
+ },
410297
+ {
410298
+ to: "0x018694d1f468ee9aaeb7b5a198d328164427c7f8",
410299
+ value: "0",
410300
+ contractMethod: {
410301
+ inputs: [
410302
+ {
410303
+ name: "target",
410304
+ internalType: "address",
410305
+ type: "address"
410306
+ },
410307
+ {
410308
+ name: "data",
410309
+ internalType: "bytes",
410310
+ type: "bytes"
410311
+ }
410312
+ ],
410313
+ name: "configureLocal",
410314
+ payable: false
410315
+ },
410316
+ signature: "function configureLocal(address target, bytes data)",
410317
+ callData: "0xca67e04800000000000000000000000093eec0f29e28c35b8e709c562b66b7debfb54f0e000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a416f5a3920000000000000000000000003e7d1eab13ad0104d2750b8863b489d65364e32d00000000000000000000000000000000000000000000000000000000000119400000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000e5553445420436861696e6c696e6b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
410318
+ contractInputsValues: {
410319
+ target: "0x93eec0f29e28c35b8e709c562b66b7debfb54f0e",
410320
+ data: "0x16f5a3920000000000000000000000003e7d1eab13ad0104d2750b8863b489d65364e32d00000000000000000000000000000000000000000000000000000000000119400000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000e5553445420436861696e6c696e6b000000000000000000000000000000000000"
410321
+ },
410322
+ description: "InstanceManager.configureLocal(target: 0x93EeC0F29E28c35b8E709c562B66B7DebfB54F0e, data: 0x16f5a3920000000000000000000000003e7d1eab13ad0104d2750b8863b489d65364e32d00000000000000000000000000000000000000000000000000000000000119400000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000e5553445420436861696e6c696e6b000000000000000000000000000000000000)"
410323
+ },
410324
+ {
410325
+ to: "0x018694d1f468ee9aaeb7b5a198d328164427c7f8",
410326
+ value: "0",
410327
+ contractMethod: {
410328
+ inputs: [
410329
+ {
410330
+ name: "target",
410331
+ internalType: "address",
410332
+ type: "address"
410333
+ },
410334
+ {
410335
+ name: "data",
410336
+ internalType: "bytes",
410337
+ type: "bytes"
410338
+ }
410339
+ ],
410340
+ name: "configureLocal",
410341
+ payable: false
410342
+ },
410343
+ signature: "function configureLocal(address target, bytes data)",
410344
+ callData: "0xca67e04800000000000000000000000093eec0f29e28c35b8e709c562b66b7debfb54f0e0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004445af8396000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b841900000000000000000000000000000000000000000000000000000000",
410345
+ contractInputsValues: {
410346
+ target: "0x93eec0f29e28c35b8e709c562b66b7debfb54f0e",
410347
+ data: "0x45af8396000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419"
410348
+ },
410349
+ description: "InstanceManager.configureLocal(target: 0x93EeC0F29E28c35b8E709c562B66B7DebfB54F0e, data: 0x45af8396000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419)"
410350
+ },
410351
+ {
410352
+ to: "0x018694d1f468ee9aaeb7b5a198d328164427c7f8",
410353
+ value: "0",
410354
+ contractMethod: {
410355
+ inputs: [
410356
+ {
410357
+ name: "target",
410358
+ internalType: "address",
410359
+ type: "address"
410360
+ },
410361
+ {
410362
+ name: "data",
410363
+ internalType: "bytes",
410364
+ type: "bytes"
410365
+ }
410366
+ ],
410367
+ name: "configureLocal",
410368
+ payable: false
410369
+ },
410370
+ signature: "function configureLocal(address target, bytes data)",
410371
+ callData: "0xca67e04800000000000000000000000093eec0f29e28c35b8e709c562b66b7debfb54f0e0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004445af8396000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000008fffffd4afb6115b954bd326cbe7b4ba576818f600000000000000000000000000000000000000000000000000000000",
410372
+ contractInputsValues: {
410373
+ target: "0x93eec0f29e28c35b8e709c562b66b7debfb54f0e",
410374
+ data: "0x45af8396000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000008fffffd4afb6115b954bd326cbe7b4ba576818f6"
410375
+ },
410376
+ description: "InstanceManager.configureLocal(target: 0x93EeC0F29E28c35b8E709c562B66B7DebfB54F0e, data: 0x45af8396000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000008fffffd4afb6115b954bd326cbe7b4ba576818f6)"
410377
+ },
410378
+ {
410379
+ to: "0x018694d1f468ee9aaeb7b5a198d328164427c7f8",
410380
+ value: "0",
410381
+ contractMethod: {
410382
+ inputs: [
410383
+ {
410384
+ name: "target",
410385
+ internalType: "address",
410386
+ type: "address"
410387
+ },
410388
+ {
410389
+ name: "data",
410390
+ internalType: "bytes",
410391
+ type: "bytes"
410392
+ }
410393
+ ],
410394
+ name: "configureLocal",
410395
+ payable: false
410396
+ },
410397
+ signature: "function configureLocal(address target, bytes data)",
410398
+ callData: "0xca67e04800000000000000000000000093eec0f29e28c35b8e709c562b66b7debfb54f0e0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004445af8396000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000003e7d1eab13ad0104d2750b8863b489d65364e32d00000000000000000000000000000000000000000000000000000000",
410399
+ contractInputsValues: {
410400
+ target: "0x93eec0f29e28c35b8e709c562b66b7debfb54f0e",
410401
+ data: "0x45af8396000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000003e7d1eab13ad0104d2750b8863b489d65364e32d"
410402
+ },
410403
+ description: "InstanceManager.configureLocal(target: 0x93EeC0F29E28c35b8E709c562B66B7DebfB54F0e, data: 0x45af8396000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000003e7d1eab13ad0104d2750b8863b489d65364e32d)"
410404
+ }
410405
+ ];
410406
+
410407
+ // src/commands/execute-jsons/index.ts
410408
+ var INSTNANCE_PK = "0xd2e2048fe6d9b069ab070dc8ecfbb452d8b9703e0c101fac9c6212843c180177";
410409
+ var SPONSOR_PK = "0x4bbbf85ce3377467afe5d46f804f221813b2bb87f24d81f60f1fcdbf7cbf4356";
410410
+ function executeJsons() {
410411
+ return newCommand().name("execute-jsons").description("execute jsons").addOption(
410928
410412
  new Option(
410929
410413
  "--address-provider <address>",
410930
410414
  "new address provider address"
@@ -410944,12 +410428,27 @@ function openAccounts() {
410944
410428
  anvilUrl = "http://127.0.0.1:8545",
410945
410429
  sharedDir = "."
410946
410430
  } = opts;
410431
+ log_default.info("executing instance");
410432
+ await executeJson({
410433
+ rpcUrl: anvilUrl,
410434
+ privateKey: INSTNANCE_PK,
410435
+ sponsorPK: SPONSOR_PK,
410436
+ jsonData: instance_default
410437
+ });
410438
+ log_default.info("executing gip");
410439
+ await executeJson({
410440
+ rpcUrl: anvilUrl,
410441
+ privateKey: INSTNANCE_PK,
410442
+ sponsorPK: SPONSOR_PK,
410443
+ jsonData: gip_default
410444
+ });
410445
+ log_default.info("executed");
410947
410446
  await mkdir(path9.resolve(sharedDir, "deploy-state"), { recursive: true });
410948
410447
  const sdkExample2 = new SDKExample(log_default);
410949
410448
  await sdkExample2.run({
410950
410449
  addressProvider,
410951
410450
  addressProviderJson,
410952
- marketConfigurators,
410451
+ marketConfigurators: marketConfigurators ?? [],
410953
410452
  anvilUrl,
410954
410453
  outFile: path9.resolve(
410955
410454
  sharedDir,
@@ -410962,6 +410461,52 @@ function openAccounts() {
410962
410461
  json_stringify(sdkExample2.sdk.state),
410963
410462
  "utf-8"
410964
410463
  );
410464
+ log_default.info("done");
410465
+ });
410466
+ }
410467
+
410468
+ // src/commands/open-accounts.ts
410469
+ import { mkdir as mkdir2, writeFile as writeFile7 } from "node:fs/promises";
410470
+ import path10 from "node:path";
410471
+ function openAccounts() {
410472
+ return newCommand().name("open-accounts").description("Script to open accounts in v3.1").addOption(
410473
+ new Option(
410474
+ "--address-provider <address>",
410475
+ "new address provider address"
410476
+ ).env("ADDRESS_PROVIDER")
410477
+ ).addOption(
410478
+ new Option("--shared-dir <dir>", "dir to put output files").env(
410479
+ "SHARED_DIR"
410480
+ )
410481
+ ).addOption(
410482
+ new Option("--anvil-url <url>", "anvil rpc url").env("ANVIL_URL")
410483
+ ).action(async (opts) => {
410484
+ log_default.info("starting sdk v3.1 example");
410485
+ let {
410486
+ addressProvider,
410487
+ addressProviderJson,
410488
+ marketConfigurators,
410489
+ anvilUrl = "http://127.0.0.1:8545",
410490
+ sharedDir = "."
410491
+ } = opts;
410492
+ await mkdir2(path10.resolve(sharedDir, "deploy-state"), { recursive: true });
410493
+ const sdkExample2 = new SDKExample(log_default);
410494
+ await sdkExample2.run({
410495
+ addressProvider,
410496
+ addressProviderJson,
410497
+ marketConfigurators,
410498
+ anvilUrl,
410499
+ outFile: path10.resolve(
410500
+ sharedDir,
410501
+ "deploy-state",
410502
+ "stateAfter.human.json"
410503
+ )
410504
+ });
410505
+ await writeFile7(
410506
+ path10.resolve(sharedDir, "deploy-state", "stateAfter.json"),
410507
+ json_stringify(sdkExample2.sdk.state),
410508
+ "utf-8"
410509
+ );
410965
410510
  const faucetAddr = await sdkExample2.sdk.provider.publicClient.readContract({
410966
410511
  address: ADDRESS_PROVIDER[sdkExample2.sdk.provider.networkType],
410967
410512
  abi: iAddressProviderV3_1Abi,
@@ -411020,8 +410565,8 @@ function openAccounts() {
411020
410565
  // sUSDe
411021
410566
  }
411022
410567
  ]);
411023
- await writeFile6(
411024
- path9.resolve(sharedDir, "opened-accounts.json"),
410568
+ await writeFile7(
410569
+ path10.resolve(sharedDir, "opened-accounts.json"),
411025
410570
  json_stringify(opened),
411026
410571
  "utf-8"
411027
410572
  );
@@ -411033,20 +410578,20 @@ function openAccounts() {
411033
410578
  }
411034
410579
 
411035
410580
  // src/commands/parse.ts
411036
- import { writeFile as writeFile7 } from "node:fs/promises";
410581
+ import { writeFile as writeFile8 } from "node:fs/promises";
411037
410582
 
411038
410583
  // src/renderer/html/HtmlRenderer.tsx
411039
410584
  var import_react = __toESM(require_react(), 1);
411040
410585
  var import_server = __toESM(require_server_node(), 1);
411041
410586
  import { writeFileSync } from "node:fs";
411042
- import path10 from "node:path";
410587
+ import path11 from "node:path";
411043
410588
  var HtmlRenderer = class {
411044
410589
  #htmlFile;
411045
410590
  constructor(opts) {
411046
410591
  if (!opts.htmlFile) {
411047
410592
  throw new Error(`output HTML file not specified`);
411048
410593
  }
411049
- this.#htmlFile = path10.resolve(opts.htmlFile);
410594
+ this.#htmlFile = path11.resolve(opts.htmlFile);
411050
410595
  }
411051
410596
  render(updates) {
411052
410597
  const html = (0, import_server.renderToString)(/* @__PURE__ */ import_react.default.createElement("div", null));
@@ -411079,7 +410624,7 @@ function getRenderer(opts) {
411079
410624
  var package_default = {
411080
410625
  name: "@gearbox-protocol/deploy-tools",
411081
410626
  description: "Gearbox deploy tools",
411082
- version: "5.9.14",
410627
+ version: "5.9.16",
411083
410628
  homepage: "https://gearbox.fi",
411084
410629
  keywords: [
411085
410630
  "gearbox"
@@ -411122,7 +410667,7 @@ var package_default = {
411122
410667
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
411123
410668
  "@gearbox-protocol/deploy-tools-shared": "0.0.0",
411124
410669
  "@gearbox-protocol/deploy-tools-types": "0.0.0",
411125
- "@gearbox-protocol/sdk": "3.0.0-vfour.224",
410670
+ "@gearbox-protocol/sdk": "3.0.0-vfour.225",
411126
410671
  "@gearbox-protocol/sdk-gov": "^2.34.0",
411127
410672
  "@types/lodash-es": "^4.17.12",
411128
410673
  "@types/node": "^22.12.0",
@@ -411202,7 +410747,7 @@ function parse() {
411202
410747
  const parser = new UpdateParser(opts, version_default);
411203
410748
  const result = await parser.parse(opts);
411204
410749
  if (opts.outFile) {
411205
- await writeFile7(opts.outFile, json_stringify(result), "utf-8");
410750
+ await writeFile8(opts.outFile, json_stringify(result), "utf-8");
411206
410751
  }
411207
410752
  const renderer = getRenderer(opts);
411208
410753
  return renderer?.render(result);
@@ -411223,8 +410768,8 @@ function printSafeTx() {
411223
410768
  }
411224
410769
 
411225
410770
  // src/commands/sdk-example.ts
411226
- import { mkdir as mkdir2, writeFile as writeFile8 } from "node:fs/promises";
411227
- import path11 from "node:path";
410771
+ import { mkdir as mkdir3, writeFile as writeFile9 } from "node:fs/promises";
410772
+ import path12 from "node:path";
411228
410773
  function sdkExample() {
411229
410774
  return newCommand().name("sdk-example").description("SDK example for v3.1").addOption(
411230
410775
  new Option(
@@ -411246,21 +410791,21 @@ function sdkExample() {
411246
410791
  anvilUrl = "http://127.0.0.1:8545",
411247
410792
  sharedDir = "."
411248
410793
  } = opts;
411249
- await mkdir2(path11.resolve(sharedDir, "deploy-state"), { recursive: true });
410794
+ await mkdir3(path12.resolve(sharedDir, "deploy-state"), { recursive: true });
411250
410795
  const sdkExample2 = new SDKExample(log_default);
411251
410796
  await sdkExample2.run({
411252
410797
  addressProvider,
411253
410798
  addressProviderJson,
411254
410799
  marketConfigurators: marketConfigurators ?? [],
411255
410800
  anvilUrl,
411256
- outFile: path11.resolve(
410801
+ outFile: path12.resolve(
411257
410802
  sharedDir,
411258
410803
  "deploy-state",
411259
410804
  "stateAfter.human.json"
411260
410805
  )
411261
410806
  });
411262
- await writeFile8(
411263
- path11.resolve(sharedDir, "deploy-state", "stateAfter.json"),
410807
+ await writeFile9(
410808
+ path12.resolve(sharedDir, "deploy-state", "stateAfter.json"),
411264
410809
  json_stringify(sdkExample2.sdk.state),
411265
410810
  "utf-8"
411266
410811
  );
@@ -411320,7 +410865,7 @@ program2.addCommand(printSafeTx());
411320
410865
  program2.addCommand(sdkExample());
411321
410866
  program2.addCommand(verifyEtherscan());
411322
410867
  program2.addCommand(zeroLT());
411323
- program2.addCommand(compareAccounts());
410868
+ program2.addCommand(executeJsons());
411324
410869
  program2.parse();
411325
410870
  /*! Bundled license information:
411326
410871