@gearbox-protocol/deploy-tools 5.9.15 → 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.
- package/dist/index.mjs +1182 -1640
- package/package.json +1 -1
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
|
|
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 =
|
|
2166
|
+
const localBin = path13.resolve(baseDir, baseName);
|
|
2167
2167
|
if (fs3.existsSync(localBin)) return localBin;
|
|
2168
|
-
if (sourceExt.includes(
|
|
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 =
|
|
2187
|
-
|
|
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 =
|
|
2194
|
+
const legacyName = path13.basename(
|
|
2195
2195
|
this._scriptPath,
|
|
2196
|
-
|
|
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(
|
|
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 =
|
|
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(
|
|
3069
|
-
if (
|
|
3070
|
-
this._executableDir =
|
|
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(
|
|
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 =
|
|
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
|
|
31559
|
-
if (
|
|
31560
|
-
|
|
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 (
|
|
31569
|
-
|
|
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 =
|
|
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:
|
|
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(
|
|
31600
|
-
var components =
|
|
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 - " +
|
|
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,
|
|
32356
|
+
function searchPath(object, path13) {
|
|
32357
32357
|
var currentChild = object;
|
|
32358
|
-
var comps =
|
|
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
|
|
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(
|
|
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
|
|
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
|
-
|
|
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:
|
|
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,
|
|
34819
|
-
if (!
|
|
34820
|
-
|
|
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(
|
|
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(
|
|
46885
|
+
function IpcProvider2(path13, network) {
|
|
46886
46886
|
var _this = this;
|
|
46887
|
-
if (
|
|
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://" +
|
|
46891
|
-
(0, properties_1.defineReadOnly)(_this, "path",
|
|
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
|
|
47490
|
+
var path13 = null;
|
|
47491
47491
|
var jsonRpcFetchFunc = null;
|
|
47492
47492
|
var subprovider = null;
|
|
47493
47493
|
if (typeof provider === "function") {
|
|
47494
|
-
|
|
47494
|
+
path13 = "unknown:";
|
|
47495
47495
|
jsonRpcFetchFunc = provider;
|
|
47496
47496
|
} else {
|
|
47497
|
-
|
|
47498
|
-
if (!
|
|
47499
|
-
|
|
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 (
|
|
47504
|
-
|
|
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 (!
|
|
47515
|
-
|
|
47514
|
+
if (!path13) {
|
|
47515
|
+
path13 = "unknown:";
|
|
47516
47516
|
}
|
|
47517
47517
|
}
|
|
47518
|
-
_this = _super.call(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
|
|
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 =
|
|
50265
|
+
dir = path13.resolve(dir || ".");
|
|
50266
50266
|
try {
|
|
50267
|
-
var name = runtimeRequire(
|
|
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(
|
|
50272
|
+
var release = getFirst(path13.join(dir, "build/Release"), matchBuild);
|
|
50273
50273
|
if (release) return release;
|
|
50274
|
-
var debug = getFirst(
|
|
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(
|
|
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(
|
|
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 =
|
|
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
|
|
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] &&
|
|
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(
|
|
63923
|
-
if (!
|
|
63922
|
+
function lookup(path13) {
|
|
63923
|
+
if (!path13 || typeof path13 !== "string") {
|
|
63924
63924
|
return false;
|
|
63925
63925
|
}
|
|
63926
|
-
var extension2 = extname("x." +
|
|
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
|
|
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 =
|
|
64309
|
+
filename = path13.normalize(options.filepath).replace(/\\/g, "/");
|
|
64310
64310
|
} else if (options.filename || value.name || value.path) {
|
|
64311
|
-
filename =
|
|
64311
|
+
filename = path13.basename(options.filename || value.name || value.path);
|
|
64312
64312
|
} else if (value.readable && value.hasOwnProperty("httpVersion")) {
|
|
64313
|
-
filename =
|
|
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(
|
|
66328
|
-
if (!
|
|
66329
|
-
return
|
|
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,
|
|
66374
|
+
function defaultVisitor(value, key, path13) {
|
|
66375
66375
|
let arr = value;
|
|
66376
|
-
if (value && !
|
|
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(
|
|
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,
|
|
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 " +
|
|
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
|
-
|
|
66415
|
+
path13,
|
|
66416
66416
|
exposedHelpers
|
|
66417
66417
|
);
|
|
66418
66418
|
if (result === true) {
|
|
66419
|
-
build(el,
|
|
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,
|
|
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(
|
|
66616
|
-
let name =
|
|
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 >=
|
|
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(
|
|
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
|
|
67690
|
+
let path13;
|
|
67691
67691
|
try {
|
|
67692
|
-
|
|
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:
|
|
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,
|
|
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(
|
|
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:
|
|
70482
|
-
const fullPath = [...
|
|
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,
|
|
70648
|
+
constructor(parent, value, path13, key) {
|
|
70649
70649
|
this._cachedPath = [];
|
|
70650
70650
|
this.parent = parent;
|
|
70651
70651
|
this.data = value;
|
|
70652
|
-
this._path =
|
|
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,
|
|
77263
|
-
|
|
77264
|
-
var index2 = 0, 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(
|
|
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,
|
|
77331
|
-
|
|
77332
|
-
object = parent(object,
|
|
77333
|
-
var func = object == null ? object : object[toKey2(last(
|
|
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(
|
|
77490
|
-
if (isKey2(
|
|
77491
|
-
return matchesStrictComparable2(toKey2(
|
|
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,
|
|
77495
|
-
return objValue === undefined2 && objValue === srcValue ? hasIn2(object,
|
|
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,
|
|
77593
|
-
return hasIn2(object,
|
|
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
|
|
77600
|
-
if (predicate(value,
|
|
77601
|
-
baseSet(result2, castPath2(
|
|
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(
|
|
77606
|
+
function basePropertyDeep2(path13) {
|
|
77607
77607
|
return function(object) {
|
|
77608
|
-
return baseGet2(object,
|
|
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,
|
|
77682
|
+
function baseSet(object, path13, value, customizer) {
|
|
77683
77683
|
if (!isObject2(object)) {
|
|
77684
77684
|
return object;
|
|
77685
77685
|
}
|
|
77686
|
-
|
|
77687
|
-
var index2 = -1, length =
|
|
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(
|
|
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(
|
|
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,
|
|
77864
|
-
|
|
77865
|
-
object = parent(object,
|
|
77866
|
-
return object == null || delete object[toKey2(last(
|
|
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,
|
|
77869
|
-
return baseSet(object,
|
|
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,
|
|
78753
|
-
|
|
78754
|
-
var index2 = -1, length =
|
|
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(
|
|
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,
|
|
78959
|
-
return
|
|
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,
|
|
79595
|
-
var index2 = -1, isFunc = typeof
|
|
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(
|
|
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,
|
|
80250
|
-
var result2 = object == null ? undefined2 : baseGet2(object,
|
|
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,
|
|
80254
|
-
return object != null && hasPath2(object,
|
|
80253
|
+
function has2(object, path13) {
|
|
80254
|
+
return object != null && hasPath2(object, path13, baseHas);
|
|
80255
80255
|
}
|
|
80256
|
-
function hasIn2(object,
|
|
80257
|
-
return object != null && hasPath2(object,
|
|
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(
|
|
80311
|
-
|
|
80312
|
-
isDeep || (isDeep =
|
|
80313
|
-
return
|
|
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,
|
|
80340
|
-
return predicate(value,
|
|
80339
|
+
return basePickBy(object, props, function(value, path13) {
|
|
80340
|
+
return predicate(value, path13[0]);
|
|
80341
80341
|
});
|
|
80342
80342
|
}
|
|
80343
|
-
function result(object,
|
|
80344
|
-
|
|
80345
|
-
var index2 = -1, 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(
|
|
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,
|
|
80361
|
-
return object == null ? object : baseSet(object,
|
|
80360
|
+
function set(object, path13, value) {
|
|
80361
|
+
return object == null ? object : baseSet(object, path13, value);
|
|
80362
80362
|
}
|
|
80363
|
-
function setWith(object,
|
|
80363
|
+
function setWith(object, path13, value, customizer) {
|
|
80364
80364
|
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
80365
|
-
return object == null ? object : baseSet(object,
|
|
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,
|
|
80388
|
-
return object == null ? true : baseUnset(object,
|
|
80387
|
+
function unset(object, path13) {
|
|
80388
|
+
return object == null ? true : baseUnset(object, path13);
|
|
80389
80389
|
}
|
|
80390
|
-
function update(object,
|
|
80391
|
-
return object == null ? object : baseUpdate(object,
|
|
80390
|
+
function update(object, path13, updater) {
|
|
80391
|
+
return object == null ? object : baseUpdate(object, path13, castFunction(updater));
|
|
80392
80392
|
}
|
|
80393
|
-
function updateWith(object,
|
|
80393
|
+
function updateWith(object, path13, updater, customizer) {
|
|
80394
80394
|
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
80395
|
-
return object == null ? object : baseUpdate(object,
|
|
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(
|
|
80777
|
-
return baseMatchesProperty2(
|
|
80776
|
+
function matchesProperty(path13, srcValue) {
|
|
80777
|
+
return baseMatchesProperty2(path13, baseClone(srcValue, CLONE_DEEP_FLAG));
|
|
80778
80778
|
}
|
|
80779
|
-
var method = baseRest(function(
|
|
80779
|
+
var method = baseRest(function(path13, args) {
|
|
80780
80780
|
return function(object) {
|
|
80781
|
-
return baseInvoke(object,
|
|
80781
|
+
return baseInvoke(object, path13, args);
|
|
80782
80782
|
};
|
|
80783
80783
|
});
|
|
80784
80784
|
var methodOf = baseRest(function(object, args) {
|
|
80785
|
-
return function(
|
|
80786
|
-
return baseInvoke(object,
|
|
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(
|
|
80834
|
-
return isKey2(
|
|
80833
|
+
function property2(path13) {
|
|
80834
|
+
return isKey2(path13) ? baseProperty2(toKey2(path13)) : basePropertyDeep2(path13);
|
|
80835
80835
|
}
|
|
80836
80836
|
function propertyOf(object) {
|
|
80837
|
-
return function(
|
|
80838
|
-
return object == null ? undefined2 : baseGet2(object,
|
|
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(
|
|
81292
|
-
if (typeof
|
|
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,
|
|
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(
|
|
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 =
|
|
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(
|
|
125084
|
+
constructor(path13, network, options) {
|
|
125085
125085
|
super(network, options);
|
|
125086
|
-
this.#socket = (0, net_1.connect)(
|
|
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
|
|
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
|
|
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",
|
|
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",
|
|
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
|
|
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:
|
|
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,
|
|
126745
|
-
const components =
|
|
126746
|
-
(0, index_js_4.assertArgument)(components.length > 0, "invalid path", "path",
|
|
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",
|
|
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,
|
|
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:
|
|
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
|
|
126912
|
-
if (
|
|
126913
|
-
|
|
126911
|
+
let path13 = this.path;
|
|
126912
|
+
if (path13) {
|
|
126913
|
+
path13 += "/" + (index2 & ~HardenedBit);
|
|
126914
126914
|
if (index2 & HardenedBit) {
|
|
126915
|
-
|
|
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),
|
|
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(
|
|
126926
|
-
return derivePath(this,
|
|
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,
|
|
126971
|
+
static createRandom(password, path13, wordlist) {
|
|
126972
126972
|
if (password == null) {
|
|
126973
126973
|
password = "";
|
|
126974
126974
|
}
|
|
126975
|
-
if (
|
|
126976
|
-
|
|
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(
|
|
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,
|
|
126988
|
-
if (!
|
|
126989
|
-
|
|
126987
|
+
static fromMnemonic(mnemonic, path13) {
|
|
126988
|
+
if (!path13) {
|
|
126989
|
+
path13 = exports2.defaultPath;
|
|
126990
126990
|
}
|
|
126991
|
-
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(
|
|
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,
|
|
126996
|
+
static fromPhrase(phrase, password, path13, wordlist) {
|
|
126997
126997
|
if (password == null) {
|
|
126998
126998
|
password = "";
|
|
126999
126999
|
}
|
|
127000
|
-
if (
|
|
127001
|
-
|
|
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(
|
|
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,
|
|
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:
|
|
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
|
|
127109
|
-
if (
|
|
127110
|
-
|
|
127108
|
+
let path13 = this.path;
|
|
127109
|
+
if (path13) {
|
|
127110
|
+
path13 += "/" + (index2 & ~HardenedBit);
|
|
127111
127111
|
if (index2 & HardenedBit) {
|
|
127112
|
-
|
|
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),
|
|
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(
|
|
127124
|
-
return derivePath(this,
|
|
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
|
|
133948
|
-
_req.url = typeof
|
|
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
|
|
134137
|
+
var path13 = strPath.match(rx).map((p) => p.replace(/'|"|`/g, ""));
|
|
134138
134138
|
const leadingBracket = strPath[0] === "[";
|
|
134139
|
-
|
|
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 =
|
|
134143
|
+
const star = path13.indexOf("*");
|
|
134144
134144
|
if (star > -1) {
|
|
134145
|
-
const before =
|
|
134145
|
+
const before = path13.slice(0, star);
|
|
134146
134146
|
const beforeStr = before.join(".");
|
|
134147
|
-
const after =
|
|
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:
|
|
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((
|
|
134205
|
-
const { escPath, leadingBracket, path: arrPath } = secret[
|
|
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(
|
|
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}${
|
|
134217
|
-
else existence += ` && o${delim}${
|
|
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}${
|
|
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}${
|
|
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,
|
|
134288
|
-
const target = get2(o,
|
|
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 =
|
|
134293
|
-
const pathWithKey = censorFctTakesPath ? [...
|
|
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:
|
|
134311
|
+
const { target, path: path13, value } = instructions[i];
|
|
134312
134312
|
let current = target;
|
|
134313
|
-
for (let i2 =
|
|
134314
|
-
current = current[
|
|
134313
|
+
for (let i2 = path13.length - 1; i2 > 0; i2--) {
|
|
134314
|
+
current = current[path13[i2]];
|
|
134315
134315
|
}
|
|
134316
|
-
current[
|
|
134316
|
+
current[path13[0]] = value;
|
|
134317
134317
|
}
|
|
134318
134318
|
}
|
|
134319
|
-
function nestedRedact(store, o,
|
|
134320
|
-
const target = get2(o,
|
|
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,
|
|
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,
|
|
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,
|
|
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, [...
|
|
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, [...
|
|
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,
|
|
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, [...
|
|
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,
|
|
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
|
|
134479
|
+
const path13 = [];
|
|
134480
134480
|
do {
|
|
134481
|
-
|
|
134481
|
+
path13.push(current.key);
|
|
134482
134482
|
current = current.parent;
|
|
134483
134483
|
} while (current.parent != null);
|
|
134484
|
-
return { path:
|
|
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((
|
|
134515
|
-
const { circle, escPath, leadingBracket } = secret[
|
|
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}${
|
|
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,
|
|
134750
|
-
return censor(value, [k, ...
|
|
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
|
|
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(
|
|
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(
|
|
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:
|
|
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 =
|
|
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(
|
|
142389
|
+
function locateFile(path13) {
|
|
142390
142390
|
if (Module["locateFile"]) {
|
|
142391
|
-
return Module["locateFile"](
|
|
142391
|
+
return Module["locateFile"](path13, scriptDirectory);
|
|
142392
142392
|
}
|
|
142393
|
-
return scriptDirectory +
|
|
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,
|
|
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,
|
|
143194
|
+
function ___syscall_openat(dirfd, path13, flags, varargs) {
|
|
143195
143195
|
SYSCALLS.varargs = varargs;
|
|
143196
143196
|
}
|
|
143197
|
-
function ___syscall_stat64(
|
|
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 = (
|
|
145127
|
-
var readFile10 = (
|
|
145128
|
-
fs3.readFile(
|
|
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
|
|
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 =
|
|
145381
|
+
dir = path13.resolve(dir || ".");
|
|
145382
145382
|
var packageName = "";
|
|
145383
145383
|
try {
|
|
145384
145384
|
if (typeof __webpack_require__ === "function")
|
|
145385
|
-
packageName = __non_webpack_require__(
|
|
145385
|
+
packageName = __non_webpack_require__(path13.join(dir, "package.json")).name;
|
|
145386
145386
|
else
|
|
145387
|
-
packageName = __require(
|
|
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(
|
|
145393
|
+
var release = getFirst(path13.join(dir, "build/Release"), matchBuild);
|
|
145394
145394
|
if (release) return release;
|
|
145395
|
-
var debug = getFirst(
|
|
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(
|
|
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 =
|
|
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(
|
|
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(
|
|
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
|
|
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] &&
|
|
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
|
|
149108
|
-
if (
|
|
149107
|
+
const path13 = url.path;
|
|
149108
|
+
if (path13.length === 0) {
|
|
149109
149109
|
return;
|
|
149110
149110
|
}
|
|
149111
|
-
if (url.scheme === "file" &&
|
|
149111
|
+
if (url.scheme === "file" && path13.length === 1 && isNormalizedWindowsDriveLetter(path13[0])) {
|
|
149112
149112
|
return;
|
|
149113
149113
|
}
|
|
149114
|
-
|
|
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,
|
|
183865
|
+
function setupKzg(parameters, path13) {
|
|
183866
183866
|
try {
|
|
183867
|
-
parameters.loadTrustedSetup(
|
|
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(
|
|
230182
|
-
if (typeof
|
|
230183
|
-
return
|
|
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
|
|
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(
|
|
236381
|
-
if (!/^[mM]'?/.test(
|
|
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(
|
|
236384
|
+
if (/^[mM]'?$/.test(path13)) {
|
|
236385
236385
|
return this;
|
|
236386
236386
|
}
|
|
236387
|
-
const parts =
|
|
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:
|
|
257511
|
-
const hdKey = hdKey_.derive(
|
|
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(
|
|
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 =
|
|
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(
|
|
287358
|
+
constructor(path13, network, options) {
|
|
287359
287359
|
super(network, options);
|
|
287360
|
-
this.#socket = (0, net_1.connect)(
|
|
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
|
|
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
|
|
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",
|
|
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",
|
|
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
|
|
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:
|
|
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,
|
|
288395
|
-
const components =
|
|
288396
|
-
(0, index_js_4.assertArgument)(components.length > 0, "invalid path", "path",
|
|
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",
|
|
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,
|
|
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:
|
|
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
|
|
288562
|
-
if (
|
|
288563
|
-
|
|
288561
|
+
let path13 = this.path;
|
|
288562
|
+
if (path13) {
|
|
288563
|
+
path13 += "/" + (index2 & ~HardenedBit);
|
|
288564
288564
|
if (index2 & HardenedBit) {
|
|
288565
|
-
|
|
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),
|
|
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(
|
|
288576
|
-
return derivePath(this,
|
|
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,
|
|
288621
|
+
static createRandom(password, path13, wordlist) {
|
|
288622
288622
|
if (password == null) {
|
|
288623
288623
|
password = "";
|
|
288624
288624
|
}
|
|
288625
|
-
if (
|
|
288626
|
-
|
|
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(
|
|
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,
|
|
288638
|
-
if (!
|
|
288639
|
-
|
|
288637
|
+
static fromMnemonic(mnemonic, path13) {
|
|
288638
|
+
if (!path13) {
|
|
288639
|
+
path13 = exports2.defaultPath;
|
|
288640
288640
|
}
|
|
288641
|
-
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(
|
|
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,
|
|
288646
|
+
static fromPhrase(phrase, password, path13, wordlist) {
|
|
288647
288647
|
if (password == null) {
|
|
288648
288648
|
password = "";
|
|
288649
288649
|
}
|
|
288650
|
-
if (
|
|
288651
|
-
|
|
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(
|
|
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,
|
|
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:
|
|
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
|
|
288759
|
-
if (
|
|
288760
|
-
|
|
288758
|
+
let path13 = this.path;
|
|
288759
|
+
if (path13) {
|
|
288760
|
+
path13 += "/" + (index2 & ~HardenedBit);
|
|
288761
288761
|
if (index2 & HardenedBit) {
|
|
288762
|
-
|
|
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),
|
|
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(
|
|
288774
|
-
return derivePath(this,
|
|
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((
|
|
291481
|
+
const pathContent = Object.keys(this.solidity).map((path13) => {
|
|
291482
291482
|
return {
|
|
291483
|
-
path:
|
|
291484
|
-
content: this.solidity[
|
|
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(
|
|
294787
|
-
var parts =
|
|
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,
|
|
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
|
-
|
|
295644
|
+
table2[n] = c;
|
|
295645
295645
|
}
|
|
295646
|
-
return
|
|
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,
|
|
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
|
-
|
|
296650
|
+
table2[n] = c;
|
|
296651
296651
|
}
|
|
296652
|
-
return
|
|
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,
|
|
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
|
-
|
|
298487
|
-
|
|
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
|
-
|
|
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
|
-
|
|
298601
|
+
table2[low] = root2 << 24 | curr << 16 | next - table_index | 0;
|
|
298602
298602
|
}
|
|
298603
298603
|
}
|
|
298604
298604
|
if (huff !== 0) {
|
|
298605
|
-
|
|
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(
|
|
300641
|
-
if (
|
|
300642
|
-
|
|
300640
|
+
var parentFolder = function(path13) {
|
|
300641
|
+
if (path13.slice(-1) === "/") {
|
|
300642
|
+
path13 = path13.substring(0, path13.length - 1);
|
|
300643
300643
|
}
|
|
300644
|
-
var lastSlash =
|
|
300645
|
-
return lastSlash > 0 ?
|
|
300644
|
+
var lastSlash = path13.lastIndexOf("/");
|
|
300645
|
+
return lastSlash > 0 ? path13.substring(0, lastSlash) : "";
|
|
300646
300646
|
};
|
|
300647
|
-
var forceTrailingSlash = function(
|
|
300648
|
-
if (
|
|
300649
|
-
|
|
300647
|
+
var forceTrailingSlash = function(path13) {
|
|
300648
|
+
if (path13.slice(-1) !== "/") {
|
|
300649
|
+
path13 += "/";
|
|
300650
300650
|
}
|
|
300651
|
-
return
|
|
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((
|
|
301689
|
-
if (fs_1.default.existsSync(
|
|
301690
|
-
traversePathRecursively(
|
|
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(
|
|
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(
|
|
301935
|
-
if (!fs_1.default.existsSync(
|
|
301936
|
-
const msg = `Encountered a nonexistent path: ${
|
|
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(
|
|
301940
|
+
const fileStat = fs_1.default.lstatSync(path13);
|
|
301941
301941
|
if (fileStat.isFile()) {
|
|
301942
|
-
worker(
|
|
301942
|
+
worker(path13);
|
|
301943
301943
|
} else if (fileStat.isDirectory()) {
|
|
301944
|
-
fs_1.default.readdirSync(
|
|
301945
|
-
const nestedPath = path_1.default.join(
|
|
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(
|
|
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
|
|
301980
|
-
if (hardhatSourceFilesObject[
|
|
301979
|
+
for (const path13 in hardhatSourceFilesObject) {
|
|
301980
|
+
if (hardhatSourceFilesObject[path13].content) {
|
|
301981
301981
|
hardhatSourceFiles.push({
|
|
301982
|
-
path:
|
|
301983
|
-
content: hardhatSourceFilesObject[
|
|
301982
|
+
path: path13,
|
|
301983
|
+
content: hardhatSourceFilesObject[path13].content
|
|
301984
301984
|
});
|
|
301985
301985
|
}
|
|
301986
301986
|
}
|
|
301987
301987
|
const contractsObject = hardhatJson.output.contracts;
|
|
301988
|
-
for (const
|
|
301989
|
-
for (const contractName in contractsObject[
|
|
301990
|
-
if (contractsObject[
|
|
301991
|
-
const metadataObj = extractMetadataFromString(contractsObject[
|
|
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
|
|
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
|
-
|
|
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 =
|
|
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
|
|
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 =
|
|
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:
|
|
365408
|
-
const pathStr = this.trackInputPath(
|
|
365409
|
-
const token = `0x${
|
|
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${
|
|
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:
|
|
365420
|
+
const [{ leftoverAmount, rateMinRAY, path: path13 }] = params.args;
|
|
365421
365421
|
const leftoverAmountStr = this.sdk.tokensMeta.formatBN(
|
|
365422
|
-
`0x${
|
|
365422
|
+
`0x${path13.replace("0x", "").slice(0, 40)}`,
|
|
365423
365423
|
leftoverAmount
|
|
365424
365424
|
);
|
|
365425
|
-
const pathStr = this.trackInputPath(
|
|
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:
|
|
365435
|
-
const pathStr = this.trackOutputPath(
|
|
365434
|
+
const [{ amountInMaximum, amountOut, path: path13 }] = params.args;
|
|
365435
|
+
const pathStr = this.trackOutputPath(path13);
|
|
365436
365436
|
const amountInMaximumStr = this.sdk.tokensMeta.formatBN(
|
|
365437
|
-
`0x${
|
|
365437
|
+
`0x${path13.slice(-40, path13.length)}`,
|
|
365438
365438
|
amountInMaximum
|
|
365439
365439
|
);
|
|
365440
365440
|
const amountOutStr = this.sdk.tokensMeta.formatBN(
|
|
365441
|
-
`0x${
|
|
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(
|
|
365465
|
+
trackInputPath(path13) {
|
|
365466
365466
|
let result = "";
|
|
365467
|
-
let pointer =
|
|
365468
|
-
while (pointer <=
|
|
365469
|
-
const from = `0x${
|
|
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 >
|
|
365473
|
-
const fee = parseInt(
|
|
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(
|
|
365479
|
+
trackOutputPath(path13) {
|
|
365480
365480
|
let result = "";
|
|
365481
|
-
let pointer =
|
|
365481
|
+
let pointer = path13.length;
|
|
365482
365482
|
while (pointer >= 40) {
|
|
365483
365483
|
pointer -= 40;
|
|
365484
|
-
const from = `0x${
|
|
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(
|
|
365488
|
+
const fee = parseInt(path13.slice(pointer, pointer + 6), 16);
|
|
365489
365489
|
result += ` ==(fee: ${fee})==> `;
|
|
365490
365490
|
}
|
|
365491
365491
|
return result;
|
|
@@ -375654,9 +375654,9 @@ var PathOptionFactory = class _PathOptionFactory {
|
|
|
375654
375654
|
const balancerSet = /* @__PURE__ */ new Set([...balancerPools, ...balancerTokensFromAura]);
|
|
375655
375655
|
return Array.from(balancerSet.values());
|
|
375656
375656
|
}
|
|
375657
|
-
static next(
|
|
375658
|
-
let newPath = [...
|
|
375659
|
-
for (let i =
|
|
375657
|
+
static next(path13) {
|
|
375658
|
+
let newPath = [...path13];
|
|
375659
|
+
for (let i = path13.length - 1; i >= 0; i--) {
|
|
375660
375660
|
const po = { ...newPath[i] };
|
|
375661
375661
|
po.option++;
|
|
375662
375662
|
newPath[i] = po;
|
|
@@ -376347,959 +376347,6 @@ var iBaseRewardPoolAbi = [
|
|
|
376347
376347
|
stateMutability: "nonpayable"
|
|
376348
376348
|
}
|
|
376349
376349
|
];
|
|
376350
|
-
var iDataCompressorV3Abi = [
|
|
376351
|
-
{
|
|
376352
|
-
type: "function",
|
|
376353
|
-
inputs: [
|
|
376354
|
-
{ name: "creditAccount", internalType: "address", type: "address" },
|
|
376355
|
-
{
|
|
376356
|
-
name: "priceUpdates",
|
|
376357
|
-
internalType: "struct PriceOnDemand[]",
|
|
376358
|
-
type: "tuple[]",
|
|
376359
|
-
components: [
|
|
376360
|
-
{ name: "token", internalType: "address", type: "address" },
|
|
376361
|
-
{ name: "callData", internalType: "bytes", type: "bytes" }
|
|
376362
|
-
]
|
|
376363
|
-
}
|
|
376364
|
-
],
|
|
376365
|
-
name: "getCreditAccountData",
|
|
376366
|
-
outputs: [
|
|
376367
|
-
{
|
|
376368
|
-
name: "",
|
|
376369
|
-
internalType: "struct CreditAccountData",
|
|
376370
|
-
type: "tuple",
|
|
376371
|
-
components: [
|
|
376372
|
-
{ name: "isSuccessful", internalType: "bool", type: "bool" },
|
|
376373
|
-
{
|
|
376374
|
-
name: "priceFeedsNeeded",
|
|
376375
|
-
internalType: "address[]",
|
|
376376
|
-
type: "address[]"
|
|
376377
|
-
},
|
|
376378
|
-
{ name: "addr", internalType: "address", type: "address" },
|
|
376379
|
-
{ name: "borrower", internalType: "address", type: "address" },
|
|
376380
|
-
{ name: "creditManager", internalType: "address", type: "address" },
|
|
376381
|
-
{ name: "cmName", internalType: "string", type: "string" },
|
|
376382
|
-
{ name: "creditFacade", internalType: "address", type: "address" },
|
|
376383
|
-
{ name: "underlying", internalType: "address", type: "address" },
|
|
376384
|
-
{ name: "debt", internalType: "uint256", type: "uint256" },
|
|
376385
|
-
{
|
|
376386
|
-
name: "cumulativeIndexLastUpdate",
|
|
376387
|
-
internalType: "uint256",
|
|
376388
|
-
type: "uint256"
|
|
376389
|
-
},
|
|
376390
|
-
{
|
|
376391
|
-
name: "cumulativeQuotaInterest",
|
|
376392
|
-
internalType: "uint128",
|
|
376393
|
-
type: "uint128"
|
|
376394
|
-
},
|
|
376395
|
-
{ name: "accruedInterest", internalType: "uint256", type: "uint256" },
|
|
376396
|
-
{ name: "accruedFees", internalType: "uint256", type: "uint256" },
|
|
376397
|
-
{ name: "totalDebtUSD", internalType: "uint256", type: "uint256" },
|
|
376398
|
-
{ name: "totalValue", internalType: "uint256", type: "uint256" },
|
|
376399
|
-
{ name: "totalValueUSD", internalType: "uint256", type: "uint256" },
|
|
376400
|
-
{ name: "twvUSD", internalType: "uint256", type: "uint256" },
|
|
376401
|
-
{
|
|
376402
|
-
name: "enabledTokensMask",
|
|
376403
|
-
internalType: "uint256",
|
|
376404
|
-
type: "uint256"
|
|
376405
|
-
},
|
|
376406
|
-
{ name: "healthFactor", internalType: "uint256", type: "uint256" },
|
|
376407
|
-
{ name: "baseBorrowRate", internalType: "uint256", type: "uint256" },
|
|
376408
|
-
{
|
|
376409
|
-
name: "aggregatedBorrowRate",
|
|
376410
|
-
internalType: "uint256",
|
|
376411
|
-
type: "uint256"
|
|
376412
|
-
},
|
|
376413
|
-
{
|
|
376414
|
-
name: "balances",
|
|
376415
|
-
internalType: "struct TokenBalance[]",
|
|
376416
|
-
type: "tuple[]",
|
|
376417
|
-
components: [
|
|
376418
|
-
{ name: "token", internalType: "address", type: "address" },
|
|
376419
|
-
{ name: "balance", internalType: "uint256", type: "uint256" },
|
|
376420
|
-
{ name: "isForbidden", internalType: "bool", type: "bool" },
|
|
376421
|
-
{ name: "isEnabled", internalType: "bool", type: "bool" },
|
|
376422
|
-
{ name: "isQuoted", internalType: "bool", type: "bool" },
|
|
376423
|
-
{ name: "quota", internalType: "uint256", type: "uint256" },
|
|
376424
|
-
{ name: "quotaRate", internalType: "uint16", type: "uint16" },
|
|
376425
|
-
{
|
|
376426
|
-
name: "quotaCumulativeIndexLU",
|
|
376427
|
-
internalType: "uint256",
|
|
376428
|
-
type: "uint256"
|
|
376429
|
-
}
|
|
376430
|
-
]
|
|
376431
|
-
},
|
|
376432
|
-
{ name: "since", internalType: "uint64", type: "uint64" },
|
|
376433
|
-
{ name: "cfVersion", internalType: "uint256", type: "uint256" },
|
|
376434
|
-
{ name: "expirationDate", internalType: "uint40", type: "uint40" },
|
|
376435
|
-
{ name: "activeBots", internalType: "address[]", type: "address[]" }
|
|
376436
|
-
]
|
|
376437
|
-
}
|
|
376438
|
-
],
|
|
376439
|
-
stateMutability: "nonpayable"
|
|
376440
|
-
},
|
|
376441
|
-
{
|
|
376442
|
-
type: "function",
|
|
376443
|
-
inputs: [
|
|
376444
|
-
{ name: "borrower", internalType: "address", type: "address" },
|
|
376445
|
-
{
|
|
376446
|
-
name: "priceUpdates",
|
|
376447
|
-
internalType: "struct PriceOnDemand[]",
|
|
376448
|
-
type: "tuple[]",
|
|
376449
|
-
components: [
|
|
376450
|
-
{ name: "token", internalType: "address", type: "address" },
|
|
376451
|
-
{ name: "callData", internalType: "bytes", type: "bytes" }
|
|
376452
|
-
]
|
|
376453
|
-
}
|
|
376454
|
-
],
|
|
376455
|
-
name: "getCreditAccountsByBorrower",
|
|
376456
|
-
outputs: [
|
|
376457
|
-
{
|
|
376458
|
-
name: "",
|
|
376459
|
-
internalType: "struct CreditAccountData[]",
|
|
376460
|
-
type: "tuple[]",
|
|
376461
|
-
components: [
|
|
376462
|
-
{ name: "isSuccessful", internalType: "bool", type: "bool" },
|
|
376463
|
-
{
|
|
376464
|
-
name: "priceFeedsNeeded",
|
|
376465
|
-
internalType: "address[]",
|
|
376466
|
-
type: "address[]"
|
|
376467
|
-
},
|
|
376468
|
-
{ name: "addr", internalType: "address", type: "address" },
|
|
376469
|
-
{ name: "borrower", internalType: "address", type: "address" },
|
|
376470
|
-
{ name: "creditManager", internalType: "address", type: "address" },
|
|
376471
|
-
{ name: "cmName", internalType: "string", type: "string" },
|
|
376472
|
-
{ name: "creditFacade", internalType: "address", type: "address" },
|
|
376473
|
-
{ name: "underlying", internalType: "address", type: "address" },
|
|
376474
|
-
{ name: "debt", internalType: "uint256", type: "uint256" },
|
|
376475
|
-
{
|
|
376476
|
-
name: "cumulativeIndexLastUpdate",
|
|
376477
|
-
internalType: "uint256",
|
|
376478
|
-
type: "uint256"
|
|
376479
|
-
},
|
|
376480
|
-
{
|
|
376481
|
-
name: "cumulativeQuotaInterest",
|
|
376482
|
-
internalType: "uint128",
|
|
376483
|
-
type: "uint128"
|
|
376484
|
-
},
|
|
376485
|
-
{ name: "accruedInterest", internalType: "uint256", type: "uint256" },
|
|
376486
|
-
{ name: "accruedFees", internalType: "uint256", type: "uint256" },
|
|
376487
|
-
{ name: "totalDebtUSD", internalType: "uint256", type: "uint256" },
|
|
376488
|
-
{ name: "totalValue", internalType: "uint256", type: "uint256" },
|
|
376489
|
-
{ name: "totalValueUSD", internalType: "uint256", type: "uint256" },
|
|
376490
|
-
{ name: "twvUSD", internalType: "uint256", type: "uint256" },
|
|
376491
|
-
{
|
|
376492
|
-
name: "enabledTokensMask",
|
|
376493
|
-
internalType: "uint256",
|
|
376494
|
-
type: "uint256"
|
|
376495
|
-
},
|
|
376496
|
-
{ name: "healthFactor", internalType: "uint256", type: "uint256" },
|
|
376497
|
-
{ name: "baseBorrowRate", internalType: "uint256", type: "uint256" },
|
|
376498
|
-
{
|
|
376499
|
-
name: "aggregatedBorrowRate",
|
|
376500
|
-
internalType: "uint256",
|
|
376501
|
-
type: "uint256"
|
|
376502
|
-
},
|
|
376503
|
-
{
|
|
376504
|
-
name: "balances",
|
|
376505
|
-
internalType: "struct TokenBalance[]",
|
|
376506
|
-
type: "tuple[]",
|
|
376507
|
-
components: [
|
|
376508
|
-
{ name: "token", internalType: "address", type: "address" },
|
|
376509
|
-
{ name: "balance", internalType: "uint256", type: "uint256" },
|
|
376510
|
-
{ name: "isForbidden", internalType: "bool", type: "bool" },
|
|
376511
|
-
{ name: "isEnabled", internalType: "bool", type: "bool" },
|
|
376512
|
-
{ name: "isQuoted", internalType: "bool", type: "bool" },
|
|
376513
|
-
{ name: "quota", internalType: "uint256", type: "uint256" },
|
|
376514
|
-
{ name: "quotaRate", internalType: "uint16", type: "uint16" },
|
|
376515
|
-
{
|
|
376516
|
-
name: "quotaCumulativeIndexLU",
|
|
376517
|
-
internalType: "uint256",
|
|
376518
|
-
type: "uint256"
|
|
376519
|
-
}
|
|
376520
|
-
]
|
|
376521
|
-
},
|
|
376522
|
-
{ name: "since", internalType: "uint64", type: "uint64" },
|
|
376523
|
-
{ name: "cfVersion", internalType: "uint256", type: "uint256" },
|
|
376524
|
-
{ name: "expirationDate", internalType: "uint40", type: "uint40" },
|
|
376525
|
-
{ name: "activeBots", internalType: "address[]", type: "address[]" }
|
|
376526
|
-
]
|
|
376527
|
-
}
|
|
376528
|
-
],
|
|
376529
|
-
stateMutability: "nonpayable"
|
|
376530
|
-
},
|
|
376531
|
-
{
|
|
376532
|
-
type: "function",
|
|
376533
|
-
inputs: [
|
|
376534
|
-
{ name: "creditManager", internalType: "address", type: "address" },
|
|
376535
|
-
{
|
|
376536
|
-
name: "priceUpdates",
|
|
376537
|
-
internalType: "struct PriceOnDemand[]",
|
|
376538
|
-
type: "tuple[]",
|
|
376539
|
-
components: [
|
|
376540
|
-
{ name: "token", internalType: "address", type: "address" },
|
|
376541
|
-
{ name: "callData", internalType: "bytes", type: "bytes" }
|
|
376542
|
-
]
|
|
376543
|
-
}
|
|
376544
|
-
],
|
|
376545
|
-
name: "getCreditAccountsByCreditManager",
|
|
376546
|
-
outputs: [
|
|
376547
|
-
{
|
|
376548
|
-
name: "",
|
|
376549
|
-
internalType: "struct CreditAccountData[]",
|
|
376550
|
-
type: "tuple[]",
|
|
376551
|
-
components: [
|
|
376552
|
-
{ name: "isSuccessful", internalType: "bool", type: "bool" },
|
|
376553
|
-
{
|
|
376554
|
-
name: "priceFeedsNeeded",
|
|
376555
|
-
internalType: "address[]",
|
|
376556
|
-
type: "address[]"
|
|
376557
|
-
},
|
|
376558
|
-
{ name: "addr", internalType: "address", type: "address" },
|
|
376559
|
-
{ name: "borrower", internalType: "address", type: "address" },
|
|
376560
|
-
{ name: "creditManager", internalType: "address", type: "address" },
|
|
376561
|
-
{ name: "cmName", internalType: "string", type: "string" },
|
|
376562
|
-
{ name: "creditFacade", internalType: "address", type: "address" },
|
|
376563
|
-
{ name: "underlying", internalType: "address", type: "address" },
|
|
376564
|
-
{ name: "debt", internalType: "uint256", type: "uint256" },
|
|
376565
|
-
{
|
|
376566
|
-
name: "cumulativeIndexLastUpdate",
|
|
376567
|
-
internalType: "uint256",
|
|
376568
|
-
type: "uint256"
|
|
376569
|
-
},
|
|
376570
|
-
{
|
|
376571
|
-
name: "cumulativeQuotaInterest",
|
|
376572
|
-
internalType: "uint128",
|
|
376573
|
-
type: "uint128"
|
|
376574
|
-
},
|
|
376575
|
-
{ name: "accruedInterest", internalType: "uint256", type: "uint256" },
|
|
376576
|
-
{ name: "accruedFees", internalType: "uint256", type: "uint256" },
|
|
376577
|
-
{ name: "totalDebtUSD", internalType: "uint256", type: "uint256" },
|
|
376578
|
-
{ name: "totalValue", internalType: "uint256", type: "uint256" },
|
|
376579
|
-
{ name: "totalValueUSD", internalType: "uint256", type: "uint256" },
|
|
376580
|
-
{ name: "twvUSD", internalType: "uint256", type: "uint256" },
|
|
376581
|
-
{
|
|
376582
|
-
name: "enabledTokensMask",
|
|
376583
|
-
internalType: "uint256",
|
|
376584
|
-
type: "uint256"
|
|
376585
|
-
},
|
|
376586
|
-
{ name: "healthFactor", internalType: "uint256", type: "uint256" },
|
|
376587
|
-
{ name: "baseBorrowRate", internalType: "uint256", type: "uint256" },
|
|
376588
|
-
{
|
|
376589
|
-
name: "aggregatedBorrowRate",
|
|
376590
|
-
internalType: "uint256",
|
|
376591
|
-
type: "uint256"
|
|
376592
|
-
},
|
|
376593
|
-
{
|
|
376594
|
-
name: "balances",
|
|
376595
|
-
internalType: "struct TokenBalance[]",
|
|
376596
|
-
type: "tuple[]",
|
|
376597
|
-
components: [
|
|
376598
|
-
{ name: "token", internalType: "address", type: "address" },
|
|
376599
|
-
{ name: "balance", internalType: "uint256", type: "uint256" },
|
|
376600
|
-
{ name: "isForbidden", internalType: "bool", type: "bool" },
|
|
376601
|
-
{ name: "isEnabled", internalType: "bool", type: "bool" },
|
|
376602
|
-
{ name: "isQuoted", internalType: "bool", type: "bool" },
|
|
376603
|
-
{ name: "quota", internalType: "uint256", type: "uint256" },
|
|
376604
|
-
{ name: "quotaRate", internalType: "uint16", type: "uint16" },
|
|
376605
|
-
{
|
|
376606
|
-
name: "quotaCumulativeIndexLU",
|
|
376607
|
-
internalType: "uint256",
|
|
376608
|
-
type: "uint256"
|
|
376609
|
-
}
|
|
376610
|
-
]
|
|
376611
|
-
},
|
|
376612
|
-
{ name: "since", internalType: "uint64", type: "uint64" },
|
|
376613
|
-
{ name: "cfVersion", internalType: "uint256", type: "uint256" },
|
|
376614
|
-
{ name: "expirationDate", internalType: "uint40", type: "uint40" },
|
|
376615
|
-
{ name: "activeBots", internalType: "address[]", type: "address[]" }
|
|
376616
|
-
]
|
|
376617
|
-
}
|
|
376618
|
-
],
|
|
376619
|
-
stateMutability: "nonpayable"
|
|
376620
|
-
},
|
|
376621
|
-
{
|
|
376622
|
-
type: "function",
|
|
376623
|
-
inputs: [
|
|
376624
|
-
{ name: "creditManager", internalType: "address", type: "address" }
|
|
376625
|
-
],
|
|
376626
|
-
name: "getCreditManagerData",
|
|
376627
|
-
outputs: [
|
|
376628
|
-
{
|
|
376629
|
-
name: "",
|
|
376630
|
-
internalType: "struct CreditManagerData",
|
|
376631
|
-
type: "tuple",
|
|
376632
|
-
components: [
|
|
376633
|
-
{ name: "addr", internalType: "address", type: "address" },
|
|
376634
|
-
{ name: "name", internalType: "string", type: "string" },
|
|
376635
|
-
{ name: "cfVersion", internalType: "uint256", type: "uint256" },
|
|
376636
|
-
{ name: "creditFacade", internalType: "address", type: "address" },
|
|
376637
|
-
{
|
|
376638
|
-
name: "creditConfigurator",
|
|
376639
|
-
internalType: "address",
|
|
376640
|
-
type: "address"
|
|
376641
|
-
},
|
|
376642
|
-
{ name: "underlying", internalType: "address", type: "address" },
|
|
376643
|
-
{ name: "pool", internalType: "address", type: "address" },
|
|
376644
|
-
{ name: "totalDebt", internalType: "uint256", type: "uint256" },
|
|
376645
|
-
{ name: "totalDebtLimit", internalType: "uint256", type: "uint256" },
|
|
376646
|
-
{ name: "baseBorrowRate", internalType: "uint256", type: "uint256" },
|
|
376647
|
-
{ name: "minDebt", internalType: "uint256", type: "uint256" },
|
|
376648
|
-
{ name: "maxDebt", internalType: "uint256", type: "uint256" },
|
|
376649
|
-
{
|
|
376650
|
-
name: "availableToBorrow",
|
|
376651
|
-
internalType: "uint256",
|
|
376652
|
-
type: "uint256"
|
|
376653
|
-
},
|
|
376654
|
-
{
|
|
376655
|
-
name: "collateralTokens",
|
|
376656
|
-
internalType: "address[]",
|
|
376657
|
-
type: "address[]"
|
|
376658
|
-
},
|
|
376659
|
-
{
|
|
376660
|
-
name: "adapters",
|
|
376661
|
-
internalType: "struct ContractAdapter[]",
|
|
376662
|
-
type: "tuple[]",
|
|
376663
|
-
components: [
|
|
376664
|
-
{
|
|
376665
|
-
name: "targetContract",
|
|
376666
|
-
internalType: "address",
|
|
376667
|
-
type: "address"
|
|
376668
|
-
},
|
|
376669
|
-
{ name: "adapter", internalType: "address", type: "address" }
|
|
376670
|
-
]
|
|
376671
|
-
},
|
|
376672
|
-
{
|
|
376673
|
-
name: "liquidationThresholds",
|
|
376674
|
-
internalType: "uint256[]",
|
|
376675
|
-
type: "uint256[]"
|
|
376676
|
-
},
|
|
376677
|
-
{ name: "isDegenMode", internalType: "bool", type: "bool" },
|
|
376678
|
-
{ name: "degenNFT", internalType: "address", type: "address" },
|
|
376679
|
-
{
|
|
376680
|
-
name: "forbiddenTokenMask",
|
|
376681
|
-
internalType: "uint256",
|
|
376682
|
-
type: "uint256"
|
|
376683
|
-
},
|
|
376684
|
-
{
|
|
376685
|
-
name: "maxEnabledTokensLength",
|
|
376686
|
-
internalType: "uint8",
|
|
376687
|
-
type: "uint8"
|
|
376688
|
-
},
|
|
376689
|
-
{ name: "feeInterest", internalType: "uint16", type: "uint16" },
|
|
376690
|
-
{ name: "feeLiquidation", internalType: "uint16", type: "uint16" },
|
|
376691
|
-
{
|
|
376692
|
-
name: "liquidationDiscount",
|
|
376693
|
-
internalType: "uint16",
|
|
376694
|
-
type: "uint16"
|
|
376695
|
-
},
|
|
376696
|
-
{
|
|
376697
|
-
name: "feeLiquidationExpired",
|
|
376698
|
-
internalType: "uint16",
|
|
376699
|
-
type: "uint16"
|
|
376700
|
-
},
|
|
376701
|
-
{
|
|
376702
|
-
name: "liquidationDiscountExpired",
|
|
376703
|
-
internalType: "uint16",
|
|
376704
|
-
type: "uint16"
|
|
376705
|
-
},
|
|
376706
|
-
{
|
|
376707
|
-
name: "quotas",
|
|
376708
|
-
internalType: "struct QuotaInfo[]",
|
|
376709
|
-
type: "tuple[]",
|
|
376710
|
-
components: [
|
|
376711
|
-
{ name: "token", internalType: "address", type: "address" },
|
|
376712
|
-
{ name: "rate", internalType: "uint16", type: "uint16" },
|
|
376713
|
-
{
|
|
376714
|
-
name: "quotaIncreaseFee",
|
|
376715
|
-
internalType: "uint16",
|
|
376716
|
-
type: "uint16"
|
|
376717
|
-
},
|
|
376718
|
-
{ name: "totalQuoted", internalType: "uint96", type: "uint96" },
|
|
376719
|
-
{ name: "limit", internalType: "uint96", type: "uint96" },
|
|
376720
|
-
{ name: "isActive", internalType: "bool", type: "bool" }
|
|
376721
|
-
]
|
|
376722
|
-
},
|
|
376723
|
-
{
|
|
376724
|
-
name: "lirm",
|
|
376725
|
-
internalType: "struct LinearModel",
|
|
376726
|
-
type: "tuple",
|
|
376727
|
-
components: [
|
|
376728
|
-
{
|
|
376729
|
-
name: "interestModel",
|
|
376730
|
-
internalType: "address",
|
|
376731
|
-
type: "address"
|
|
376732
|
-
},
|
|
376733
|
-
{ name: "version", internalType: "uint256", type: "uint256" },
|
|
376734
|
-
{ name: "U_1", internalType: "uint16", type: "uint16" },
|
|
376735
|
-
{ name: "U_2", internalType: "uint16", type: "uint16" },
|
|
376736
|
-
{ name: "R_base", internalType: "uint16", type: "uint16" },
|
|
376737
|
-
{ name: "R_slope1", internalType: "uint16", type: "uint16" },
|
|
376738
|
-
{ name: "R_slope2", internalType: "uint16", type: "uint16" },
|
|
376739
|
-
{ name: "R_slope3", internalType: "uint16", type: "uint16" },
|
|
376740
|
-
{
|
|
376741
|
-
name: "isBorrowingMoreU2Forbidden",
|
|
376742
|
-
internalType: "bool",
|
|
376743
|
-
type: "bool"
|
|
376744
|
-
}
|
|
376745
|
-
]
|
|
376746
|
-
},
|
|
376747
|
-
{ name: "isPaused", internalType: "bool", type: "bool" }
|
|
376748
|
-
]
|
|
376749
|
-
}
|
|
376750
|
-
],
|
|
376751
|
-
stateMutability: "view"
|
|
376752
|
-
},
|
|
376753
|
-
{
|
|
376754
|
-
type: "function",
|
|
376755
|
-
inputs: [],
|
|
376756
|
-
name: "getCreditManagersV3List",
|
|
376757
|
-
outputs: [
|
|
376758
|
-
{
|
|
376759
|
-
name: "",
|
|
376760
|
-
internalType: "struct CreditManagerData[]",
|
|
376761
|
-
type: "tuple[]",
|
|
376762
|
-
components: [
|
|
376763
|
-
{ name: "addr", internalType: "address", type: "address" },
|
|
376764
|
-
{ name: "name", internalType: "string", type: "string" },
|
|
376765
|
-
{ name: "cfVersion", internalType: "uint256", type: "uint256" },
|
|
376766
|
-
{ name: "creditFacade", internalType: "address", type: "address" },
|
|
376767
|
-
{
|
|
376768
|
-
name: "creditConfigurator",
|
|
376769
|
-
internalType: "address",
|
|
376770
|
-
type: "address"
|
|
376771
|
-
},
|
|
376772
|
-
{ name: "underlying", internalType: "address", type: "address" },
|
|
376773
|
-
{ name: "pool", internalType: "address", type: "address" },
|
|
376774
|
-
{ name: "totalDebt", internalType: "uint256", type: "uint256" },
|
|
376775
|
-
{ name: "totalDebtLimit", internalType: "uint256", type: "uint256" },
|
|
376776
|
-
{ name: "baseBorrowRate", internalType: "uint256", type: "uint256" },
|
|
376777
|
-
{ name: "minDebt", internalType: "uint256", type: "uint256" },
|
|
376778
|
-
{ name: "maxDebt", internalType: "uint256", type: "uint256" },
|
|
376779
|
-
{
|
|
376780
|
-
name: "availableToBorrow",
|
|
376781
|
-
internalType: "uint256",
|
|
376782
|
-
type: "uint256"
|
|
376783
|
-
},
|
|
376784
|
-
{
|
|
376785
|
-
name: "collateralTokens",
|
|
376786
|
-
internalType: "address[]",
|
|
376787
|
-
type: "address[]"
|
|
376788
|
-
},
|
|
376789
|
-
{
|
|
376790
|
-
name: "adapters",
|
|
376791
|
-
internalType: "struct ContractAdapter[]",
|
|
376792
|
-
type: "tuple[]",
|
|
376793
|
-
components: [
|
|
376794
|
-
{
|
|
376795
|
-
name: "targetContract",
|
|
376796
|
-
internalType: "address",
|
|
376797
|
-
type: "address"
|
|
376798
|
-
},
|
|
376799
|
-
{ name: "adapter", internalType: "address", type: "address" }
|
|
376800
|
-
]
|
|
376801
|
-
},
|
|
376802
|
-
{
|
|
376803
|
-
name: "liquidationThresholds",
|
|
376804
|
-
internalType: "uint256[]",
|
|
376805
|
-
type: "uint256[]"
|
|
376806
|
-
},
|
|
376807
|
-
{ name: "isDegenMode", internalType: "bool", type: "bool" },
|
|
376808
|
-
{ name: "degenNFT", internalType: "address", type: "address" },
|
|
376809
|
-
{
|
|
376810
|
-
name: "forbiddenTokenMask",
|
|
376811
|
-
internalType: "uint256",
|
|
376812
|
-
type: "uint256"
|
|
376813
|
-
},
|
|
376814
|
-
{
|
|
376815
|
-
name: "maxEnabledTokensLength",
|
|
376816
|
-
internalType: "uint8",
|
|
376817
|
-
type: "uint8"
|
|
376818
|
-
},
|
|
376819
|
-
{ name: "feeInterest", internalType: "uint16", type: "uint16" },
|
|
376820
|
-
{ name: "feeLiquidation", internalType: "uint16", type: "uint16" },
|
|
376821
|
-
{
|
|
376822
|
-
name: "liquidationDiscount",
|
|
376823
|
-
internalType: "uint16",
|
|
376824
|
-
type: "uint16"
|
|
376825
|
-
},
|
|
376826
|
-
{
|
|
376827
|
-
name: "feeLiquidationExpired",
|
|
376828
|
-
internalType: "uint16",
|
|
376829
|
-
type: "uint16"
|
|
376830
|
-
},
|
|
376831
|
-
{
|
|
376832
|
-
name: "liquidationDiscountExpired",
|
|
376833
|
-
internalType: "uint16",
|
|
376834
|
-
type: "uint16"
|
|
376835
|
-
},
|
|
376836
|
-
{
|
|
376837
|
-
name: "quotas",
|
|
376838
|
-
internalType: "struct QuotaInfo[]",
|
|
376839
|
-
type: "tuple[]",
|
|
376840
|
-
components: [
|
|
376841
|
-
{ name: "token", internalType: "address", type: "address" },
|
|
376842
|
-
{ name: "rate", internalType: "uint16", type: "uint16" },
|
|
376843
|
-
{
|
|
376844
|
-
name: "quotaIncreaseFee",
|
|
376845
|
-
internalType: "uint16",
|
|
376846
|
-
type: "uint16"
|
|
376847
|
-
},
|
|
376848
|
-
{ name: "totalQuoted", internalType: "uint96", type: "uint96" },
|
|
376849
|
-
{ name: "limit", internalType: "uint96", type: "uint96" },
|
|
376850
|
-
{ name: "isActive", internalType: "bool", type: "bool" }
|
|
376851
|
-
]
|
|
376852
|
-
},
|
|
376853
|
-
{
|
|
376854
|
-
name: "lirm",
|
|
376855
|
-
internalType: "struct LinearModel",
|
|
376856
|
-
type: "tuple",
|
|
376857
|
-
components: [
|
|
376858
|
-
{
|
|
376859
|
-
name: "interestModel",
|
|
376860
|
-
internalType: "address",
|
|
376861
|
-
type: "address"
|
|
376862
|
-
},
|
|
376863
|
-
{ name: "version", internalType: "uint256", type: "uint256" },
|
|
376864
|
-
{ name: "U_1", internalType: "uint16", type: "uint16" },
|
|
376865
|
-
{ name: "U_2", internalType: "uint16", type: "uint16" },
|
|
376866
|
-
{ name: "R_base", internalType: "uint16", type: "uint16" },
|
|
376867
|
-
{ name: "R_slope1", internalType: "uint16", type: "uint16" },
|
|
376868
|
-
{ name: "R_slope2", internalType: "uint16", type: "uint16" },
|
|
376869
|
-
{ name: "R_slope3", internalType: "uint16", type: "uint16" },
|
|
376870
|
-
{
|
|
376871
|
-
name: "isBorrowingMoreU2Forbidden",
|
|
376872
|
-
internalType: "bool",
|
|
376873
|
-
type: "bool"
|
|
376874
|
-
}
|
|
376875
|
-
]
|
|
376876
|
-
},
|
|
376877
|
-
{ name: "isPaused", internalType: "bool", type: "bool" }
|
|
376878
|
-
]
|
|
376879
|
-
}
|
|
376880
|
-
],
|
|
376881
|
-
stateMutability: "view"
|
|
376882
|
-
},
|
|
376883
|
-
{
|
|
376884
|
-
type: "function",
|
|
376885
|
-
inputs: [{ name: "staker", internalType: "address", type: "address" }],
|
|
376886
|
-
name: "getGaugesV3Data",
|
|
376887
|
-
outputs: [
|
|
376888
|
-
{
|
|
376889
|
-
name: "result",
|
|
376890
|
-
internalType: "struct GaugeInfo[]",
|
|
376891
|
-
type: "tuple[]",
|
|
376892
|
-
components: [
|
|
376893
|
-
{ name: "addr", internalType: "address", type: "address" },
|
|
376894
|
-
{ name: "pool", internalType: "address", type: "address" },
|
|
376895
|
-
{ name: "symbol", internalType: "string", type: "string" },
|
|
376896
|
-
{ name: "name", internalType: "string", type: "string" },
|
|
376897
|
-
{ name: "underlying", internalType: "address", type: "address" },
|
|
376898
|
-
{ name: "currentEpoch", internalType: "uint16", type: "uint16" },
|
|
376899
|
-
{ name: "epochFrozen", internalType: "bool", type: "bool" },
|
|
376900
|
-
{
|
|
376901
|
-
name: "quotaParams",
|
|
376902
|
-
internalType: "struct GaugeQuotaParams[]",
|
|
376903
|
-
type: "tuple[]",
|
|
376904
|
-
components: [
|
|
376905
|
-
{ name: "token", internalType: "address", type: "address" },
|
|
376906
|
-
{ name: "minRate", internalType: "uint16", type: "uint16" },
|
|
376907
|
-
{ name: "maxRate", internalType: "uint16", type: "uint16" },
|
|
376908
|
-
{
|
|
376909
|
-
name: "totalVotesLpSide",
|
|
376910
|
-
internalType: "uint96",
|
|
376911
|
-
type: "uint96"
|
|
376912
|
-
},
|
|
376913
|
-
{
|
|
376914
|
-
name: "totalVotesCaSide",
|
|
376915
|
-
internalType: "uint96",
|
|
376916
|
-
type: "uint96"
|
|
376917
|
-
},
|
|
376918
|
-
{ name: "rate", internalType: "uint16", type: "uint16" },
|
|
376919
|
-
{
|
|
376920
|
-
name: "quotaIncreaseFee",
|
|
376921
|
-
internalType: "uint16",
|
|
376922
|
-
type: "uint16"
|
|
376923
|
-
},
|
|
376924
|
-
{ name: "totalQuoted", internalType: "uint96", type: "uint96" },
|
|
376925
|
-
{ name: "limit", internalType: "uint96", type: "uint96" },
|
|
376926
|
-
{ name: "isActive", internalType: "bool", type: "bool" },
|
|
376927
|
-
{
|
|
376928
|
-
name: "stakerVotesLpSide",
|
|
376929
|
-
internalType: "uint96",
|
|
376930
|
-
type: "uint96"
|
|
376931
|
-
},
|
|
376932
|
-
{
|
|
376933
|
-
name: "stakerVotesCaSide",
|
|
376934
|
-
internalType: "uint96",
|
|
376935
|
-
type: "uint96"
|
|
376936
|
-
}
|
|
376937
|
-
]
|
|
376938
|
-
}
|
|
376939
|
-
]
|
|
376940
|
-
}
|
|
376941
|
-
],
|
|
376942
|
-
stateMutability: "view"
|
|
376943
|
-
},
|
|
376944
|
-
{
|
|
376945
|
-
type: "function",
|
|
376946
|
-
inputs: [
|
|
376947
|
-
{
|
|
376948
|
-
name: "priceUpdates",
|
|
376949
|
-
internalType: "struct PriceOnDemand[]",
|
|
376950
|
-
type: "tuple[]",
|
|
376951
|
-
components: [
|
|
376952
|
-
{ name: "token", internalType: "address", type: "address" },
|
|
376953
|
-
{ name: "callData", internalType: "bytes", type: "bytes" }
|
|
376954
|
-
]
|
|
376955
|
-
}
|
|
376956
|
-
],
|
|
376957
|
-
name: "getLiquidatableCreditAccounts",
|
|
376958
|
-
outputs: [
|
|
376959
|
-
{
|
|
376960
|
-
name: "result",
|
|
376961
|
-
internalType: "struct CreditAccountData[]",
|
|
376962
|
-
type: "tuple[]",
|
|
376963
|
-
components: [
|
|
376964
|
-
{ name: "isSuccessful", internalType: "bool", type: "bool" },
|
|
376965
|
-
{
|
|
376966
|
-
name: "priceFeedsNeeded",
|
|
376967
|
-
internalType: "address[]",
|
|
376968
|
-
type: "address[]"
|
|
376969
|
-
},
|
|
376970
|
-
{ name: "addr", internalType: "address", type: "address" },
|
|
376971
|
-
{ name: "borrower", internalType: "address", type: "address" },
|
|
376972
|
-
{ name: "creditManager", internalType: "address", type: "address" },
|
|
376973
|
-
{ name: "cmName", internalType: "string", type: "string" },
|
|
376974
|
-
{ name: "creditFacade", internalType: "address", type: "address" },
|
|
376975
|
-
{ name: "underlying", internalType: "address", type: "address" },
|
|
376976
|
-
{ name: "debt", internalType: "uint256", type: "uint256" },
|
|
376977
|
-
{
|
|
376978
|
-
name: "cumulativeIndexLastUpdate",
|
|
376979
|
-
internalType: "uint256",
|
|
376980
|
-
type: "uint256"
|
|
376981
|
-
},
|
|
376982
|
-
{
|
|
376983
|
-
name: "cumulativeQuotaInterest",
|
|
376984
|
-
internalType: "uint128",
|
|
376985
|
-
type: "uint128"
|
|
376986
|
-
},
|
|
376987
|
-
{ name: "accruedInterest", internalType: "uint256", type: "uint256" },
|
|
376988
|
-
{ name: "accruedFees", internalType: "uint256", type: "uint256" },
|
|
376989
|
-
{ name: "totalDebtUSD", internalType: "uint256", type: "uint256" },
|
|
376990
|
-
{ name: "totalValue", internalType: "uint256", type: "uint256" },
|
|
376991
|
-
{ name: "totalValueUSD", internalType: "uint256", type: "uint256" },
|
|
376992
|
-
{ name: "twvUSD", internalType: "uint256", type: "uint256" },
|
|
376993
|
-
{
|
|
376994
|
-
name: "enabledTokensMask",
|
|
376995
|
-
internalType: "uint256",
|
|
376996
|
-
type: "uint256"
|
|
376997
|
-
},
|
|
376998
|
-
{ name: "healthFactor", internalType: "uint256", type: "uint256" },
|
|
376999
|
-
{ name: "baseBorrowRate", internalType: "uint256", type: "uint256" },
|
|
377000
|
-
{
|
|
377001
|
-
name: "aggregatedBorrowRate",
|
|
377002
|
-
internalType: "uint256",
|
|
377003
|
-
type: "uint256"
|
|
377004
|
-
},
|
|
377005
|
-
{
|
|
377006
|
-
name: "balances",
|
|
377007
|
-
internalType: "struct TokenBalance[]",
|
|
377008
|
-
type: "tuple[]",
|
|
377009
|
-
components: [
|
|
377010
|
-
{ name: "token", internalType: "address", type: "address" },
|
|
377011
|
-
{ name: "balance", internalType: "uint256", type: "uint256" },
|
|
377012
|
-
{ name: "isForbidden", internalType: "bool", type: "bool" },
|
|
377013
|
-
{ name: "isEnabled", internalType: "bool", type: "bool" },
|
|
377014
|
-
{ name: "isQuoted", internalType: "bool", type: "bool" },
|
|
377015
|
-
{ name: "quota", internalType: "uint256", type: "uint256" },
|
|
377016
|
-
{ name: "quotaRate", internalType: "uint16", type: "uint16" },
|
|
377017
|
-
{
|
|
377018
|
-
name: "quotaCumulativeIndexLU",
|
|
377019
|
-
internalType: "uint256",
|
|
377020
|
-
type: "uint256"
|
|
377021
|
-
}
|
|
377022
|
-
]
|
|
377023
|
-
},
|
|
377024
|
-
{ name: "since", internalType: "uint64", type: "uint64" },
|
|
377025
|
-
{ name: "cfVersion", internalType: "uint256", type: "uint256" },
|
|
377026
|
-
{ name: "expirationDate", internalType: "uint40", type: "uint40" },
|
|
377027
|
-
{ name: "activeBots", internalType: "address[]", type: "address[]" }
|
|
377028
|
-
]
|
|
377029
|
-
}
|
|
377030
|
-
],
|
|
377031
|
-
stateMutability: "nonpayable"
|
|
377032
|
-
},
|
|
377033
|
-
{
|
|
377034
|
-
type: "function",
|
|
377035
|
-
inputs: [{ name: "_pool", internalType: "address", type: "address" }],
|
|
377036
|
-
name: "getPoolData",
|
|
377037
|
-
outputs: [
|
|
377038
|
-
{
|
|
377039
|
-
name: "",
|
|
377040
|
-
internalType: "struct PoolData",
|
|
377041
|
-
type: "tuple",
|
|
377042
|
-
components: [
|
|
377043
|
-
{ name: "addr", internalType: "address", type: "address" },
|
|
377044
|
-
{ name: "underlying", internalType: "address", type: "address" },
|
|
377045
|
-
{ name: "dieselToken", internalType: "address", type: "address" },
|
|
377046
|
-
{ name: "symbol", internalType: "string", type: "string" },
|
|
377047
|
-
{ name: "name", internalType: "string", type: "string" },
|
|
377048
|
-
{
|
|
377049
|
-
name: "baseInterestIndex",
|
|
377050
|
-
internalType: "uint256",
|
|
377051
|
-
type: "uint256"
|
|
377052
|
-
},
|
|
377053
|
-
{
|
|
377054
|
-
name: "availableLiquidity",
|
|
377055
|
-
internalType: "uint256",
|
|
377056
|
-
type: "uint256"
|
|
377057
|
-
},
|
|
377058
|
-
{
|
|
377059
|
-
name: "expectedLiquidity",
|
|
377060
|
-
internalType: "uint256",
|
|
377061
|
-
type: "uint256"
|
|
377062
|
-
},
|
|
377063
|
-
{ name: "totalBorrowed", internalType: "uint256", type: "uint256" },
|
|
377064
|
-
{ name: "totalDebtLimit", internalType: "uint256", type: "uint256" },
|
|
377065
|
-
{
|
|
377066
|
-
name: "creditManagerDebtParams",
|
|
377067
|
-
internalType: "struct CreditManagerDebtParams[]",
|
|
377068
|
-
type: "tuple[]",
|
|
377069
|
-
components: [
|
|
377070
|
-
{
|
|
377071
|
-
name: "creditManager",
|
|
377072
|
-
internalType: "address",
|
|
377073
|
-
type: "address"
|
|
377074
|
-
},
|
|
377075
|
-
{ name: "borrowed", internalType: "uint256", type: "uint256" },
|
|
377076
|
-
{ name: "limit", internalType: "uint256", type: "uint256" },
|
|
377077
|
-
{
|
|
377078
|
-
name: "availableToBorrow",
|
|
377079
|
-
internalType: "uint256",
|
|
377080
|
-
type: "uint256"
|
|
377081
|
-
}
|
|
377082
|
-
]
|
|
377083
|
-
},
|
|
377084
|
-
{ name: "totalAssets", internalType: "uint256", type: "uint256" },
|
|
377085
|
-
{ name: "totalSupply", internalType: "uint256", type: "uint256" },
|
|
377086
|
-
{ name: "supplyRate", internalType: "uint256", type: "uint256" },
|
|
377087
|
-
{
|
|
377088
|
-
name: "baseInterestRate",
|
|
377089
|
-
internalType: "uint256",
|
|
377090
|
-
type: "uint256"
|
|
377091
|
-
},
|
|
377092
|
-
{ name: "dieselRate_RAY", internalType: "uint256", type: "uint256" },
|
|
377093
|
-
{ name: "withdrawFee", internalType: "uint256", type: "uint256" },
|
|
377094
|
-
{
|
|
377095
|
-
name: "lastBaseInterestUpdate",
|
|
377096
|
-
internalType: "uint256",
|
|
377097
|
-
type: "uint256"
|
|
377098
|
-
},
|
|
377099
|
-
{
|
|
377100
|
-
name: "baseInterestIndexLU",
|
|
377101
|
-
internalType: "uint256",
|
|
377102
|
-
type: "uint256"
|
|
377103
|
-
},
|
|
377104
|
-
{ name: "version", internalType: "uint256", type: "uint256" },
|
|
377105
|
-
{ name: "poolQuotaKeeper", internalType: "address", type: "address" },
|
|
377106
|
-
{ name: "gauge", internalType: "address", type: "address" },
|
|
377107
|
-
{
|
|
377108
|
-
name: "quotas",
|
|
377109
|
-
internalType: "struct QuotaInfo[]",
|
|
377110
|
-
type: "tuple[]",
|
|
377111
|
-
components: [
|
|
377112
|
-
{ name: "token", internalType: "address", type: "address" },
|
|
377113
|
-
{ name: "rate", internalType: "uint16", type: "uint16" },
|
|
377114
|
-
{
|
|
377115
|
-
name: "quotaIncreaseFee",
|
|
377116
|
-
internalType: "uint16",
|
|
377117
|
-
type: "uint16"
|
|
377118
|
-
},
|
|
377119
|
-
{ name: "totalQuoted", internalType: "uint96", type: "uint96" },
|
|
377120
|
-
{ name: "limit", internalType: "uint96", type: "uint96" },
|
|
377121
|
-
{ name: "isActive", internalType: "bool", type: "bool" }
|
|
377122
|
-
]
|
|
377123
|
-
},
|
|
377124
|
-
{
|
|
377125
|
-
name: "zappers",
|
|
377126
|
-
internalType: "struct ZapperInfo[]",
|
|
377127
|
-
type: "tuple[]",
|
|
377128
|
-
components: [
|
|
377129
|
-
{ name: "zapper", internalType: "address", type: "address" },
|
|
377130
|
-
{ name: "tokenIn", internalType: "address", type: "address" },
|
|
377131
|
-
{ name: "tokenOut", internalType: "address", type: "address" }
|
|
377132
|
-
]
|
|
377133
|
-
},
|
|
377134
|
-
{
|
|
377135
|
-
name: "lirm",
|
|
377136
|
-
internalType: "struct LinearModel",
|
|
377137
|
-
type: "tuple",
|
|
377138
|
-
components: [
|
|
377139
|
-
{
|
|
377140
|
-
name: "interestModel",
|
|
377141
|
-
internalType: "address",
|
|
377142
|
-
type: "address"
|
|
377143
|
-
},
|
|
377144
|
-
{ name: "version", internalType: "uint256", type: "uint256" },
|
|
377145
|
-
{ name: "U_1", internalType: "uint16", type: "uint16" },
|
|
377146
|
-
{ name: "U_2", internalType: "uint16", type: "uint16" },
|
|
377147
|
-
{ name: "R_base", internalType: "uint16", type: "uint16" },
|
|
377148
|
-
{ name: "R_slope1", internalType: "uint16", type: "uint16" },
|
|
377149
|
-
{ name: "R_slope2", internalType: "uint16", type: "uint16" },
|
|
377150
|
-
{ name: "R_slope3", internalType: "uint16", type: "uint16" },
|
|
377151
|
-
{
|
|
377152
|
-
name: "isBorrowingMoreU2Forbidden",
|
|
377153
|
-
internalType: "bool",
|
|
377154
|
-
type: "bool"
|
|
377155
|
-
}
|
|
377156
|
-
]
|
|
377157
|
-
},
|
|
377158
|
-
{ name: "isPaused", internalType: "bool", type: "bool" }
|
|
377159
|
-
]
|
|
377160
|
-
}
|
|
377161
|
-
],
|
|
377162
|
-
stateMutability: "view"
|
|
377163
|
-
},
|
|
377164
|
-
{
|
|
377165
|
-
type: "function",
|
|
377166
|
-
inputs: [],
|
|
377167
|
-
name: "getPoolsV3List",
|
|
377168
|
-
outputs: [
|
|
377169
|
-
{
|
|
377170
|
-
name: "",
|
|
377171
|
-
internalType: "struct PoolData[]",
|
|
377172
|
-
type: "tuple[]",
|
|
377173
|
-
components: [
|
|
377174
|
-
{ name: "addr", internalType: "address", type: "address" },
|
|
377175
|
-
{ name: "underlying", internalType: "address", type: "address" },
|
|
377176
|
-
{ name: "dieselToken", internalType: "address", type: "address" },
|
|
377177
|
-
{ name: "symbol", internalType: "string", type: "string" },
|
|
377178
|
-
{ name: "name", internalType: "string", type: "string" },
|
|
377179
|
-
{
|
|
377180
|
-
name: "baseInterestIndex",
|
|
377181
|
-
internalType: "uint256",
|
|
377182
|
-
type: "uint256"
|
|
377183
|
-
},
|
|
377184
|
-
{
|
|
377185
|
-
name: "availableLiquidity",
|
|
377186
|
-
internalType: "uint256",
|
|
377187
|
-
type: "uint256"
|
|
377188
|
-
},
|
|
377189
|
-
{
|
|
377190
|
-
name: "expectedLiquidity",
|
|
377191
|
-
internalType: "uint256",
|
|
377192
|
-
type: "uint256"
|
|
377193
|
-
},
|
|
377194
|
-
{ name: "totalBorrowed", internalType: "uint256", type: "uint256" },
|
|
377195
|
-
{ name: "totalDebtLimit", internalType: "uint256", type: "uint256" },
|
|
377196
|
-
{
|
|
377197
|
-
name: "creditManagerDebtParams",
|
|
377198
|
-
internalType: "struct CreditManagerDebtParams[]",
|
|
377199
|
-
type: "tuple[]",
|
|
377200
|
-
components: [
|
|
377201
|
-
{
|
|
377202
|
-
name: "creditManager",
|
|
377203
|
-
internalType: "address",
|
|
377204
|
-
type: "address"
|
|
377205
|
-
},
|
|
377206
|
-
{ name: "borrowed", internalType: "uint256", type: "uint256" },
|
|
377207
|
-
{ name: "limit", internalType: "uint256", type: "uint256" },
|
|
377208
|
-
{
|
|
377209
|
-
name: "availableToBorrow",
|
|
377210
|
-
internalType: "uint256",
|
|
377211
|
-
type: "uint256"
|
|
377212
|
-
}
|
|
377213
|
-
]
|
|
377214
|
-
},
|
|
377215
|
-
{ name: "totalAssets", internalType: "uint256", type: "uint256" },
|
|
377216
|
-
{ name: "totalSupply", internalType: "uint256", type: "uint256" },
|
|
377217
|
-
{ name: "supplyRate", internalType: "uint256", type: "uint256" },
|
|
377218
|
-
{
|
|
377219
|
-
name: "baseInterestRate",
|
|
377220
|
-
internalType: "uint256",
|
|
377221
|
-
type: "uint256"
|
|
377222
|
-
},
|
|
377223
|
-
{ name: "dieselRate_RAY", internalType: "uint256", type: "uint256" },
|
|
377224
|
-
{ name: "withdrawFee", internalType: "uint256", type: "uint256" },
|
|
377225
|
-
{
|
|
377226
|
-
name: "lastBaseInterestUpdate",
|
|
377227
|
-
internalType: "uint256",
|
|
377228
|
-
type: "uint256"
|
|
377229
|
-
},
|
|
377230
|
-
{
|
|
377231
|
-
name: "baseInterestIndexLU",
|
|
377232
|
-
internalType: "uint256",
|
|
377233
|
-
type: "uint256"
|
|
377234
|
-
},
|
|
377235
|
-
{ name: "version", internalType: "uint256", type: "uint256" },
|
|
377236
|
-
{ name: "poolQuotaKeeper", internalType: "address", type: "address" },
|
|
377237
|
-
{ name: "gauge", internalType: "address", type: "address" },
|
|
377238
|
-
{
|
|
377239
|
-
name: "quotas",
|
|
377240
|
-
internalType: "struct QuotaInfo[]",
|
|
377241
|
-
type: "tuple[]",
|
|
377242
|
-
components: [
|
|
377243
|
-
{ name: "token", internalType: "address", type: "address" },
|
|
377244
|
-
{ name: "rate", internalType: "uint16", type: "uint16" },
|
|
377245
|
-
{
|
|
377246
|
-
name: "quotaIncreaseFee",
|
|
377247
|
-
internalType: "uint16",
|
|
377248
|
-
type: "uint16"
|
|
377249
|
-
},
|
|
377250
|
-
{ name: "totalQuoted", internalType: "uint96", type: "uint96" },
|
|
377251
|
-
{ name: "limit", internalType: "uint96", type: "uint96" },
|
|
377252
|
-
{ name: "isActive", internalType: "bool", type: "bool" }
|
|
377253
|
-
]
|
|
377254
|
-
},
|
|
377255
|
-
{
|
|
377256
|
-
name: "zappers",
|
|
377257
|
-
internalType: "struct ZapperInfo[]",
|
|
377258
|
-
type: "tuple[]",
|
|
377259
|
-
components: [
|
|
377260
|
-
{ name: "zapper", internalType: "address", type: "address" },
|
|
377261
|
-
{ name: "tokenIn", internalType: "address", type: "address" },
|
|
377262
|
-
{ name: "tokenOut", internalType: "address", type: "address" }
|
|
377263
|
-
]
|
|
377264
|
-
},
|
|
377265
|
-
{
|
|
377266
|
-
name: "lirm",
|
|
377267
|
-
internalType: "struct LinearModel",
|
|
377268
|
-
type: "tuple",
|
|
377269
|
-
components: [
|
|
377270
|
-
{
|
|
377271
|
-
name: "interestModel",
|
|
377272
|
-
internalType: "address",
|
|
377273
|
-
type: "address"
|
|
377274
|
-
},
|
|
377275
|
-
{ name: "version", internalType: "uint256", type: "uint256" },
|
|
377276
|
-
{ name: "U_1", internalType: "uint16", type: "uint16" },
|
|
377277
|
-
{ name: "U_2", internalType: "uint16", type: "uint16" },
|
|
377278
|
-
{ name: "R_base", internalType: "uint16", type: "uint16" },
|
|
377279
|
-
{ name: "R_slope1", internalType: "uint16", type: "uint16" },
|
|
377280
|
-
{ name: "R_slope2", internalType: "uint16", type: "uint16" },
|
|
377281
|
-
{ name: "R_slope3", internalType: "uint16", type: "uint16" },
|
|
377282
|
-
{
|
|
377283
|
-
name: "isBorrowingMoreU2Forbidden",
|
|
377284
|
-
internalType: "bool",
|
|
377285
|
-
type: "bool"
|
|
377286
|
-
}
|
|
377287
|
-
]
|
|
377288
|
-
},
|
|
377289
|
-
{ name: "isPaused", internalType: "bool", type: "bool" }
|
|
377290
|
-
]
|
|
377291
|
-
}
|
|
377292
|
-
],
|
|
377293
|
-
stateMutability: "view"
|
|
377294
|
-
},
|
|
377295
|
-
{
|
|
377296
|
-
type: "function",
|
|
377297
|
-
inputs: [],
|
|
377298
|
-
name: "version",
|
|
377299
|
-
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
377300
|
-
stateMutability: "view"
|
|
377301
|
-
}
|
|
377302
|
-
];
|
|
377303
376350
|
var PERCENTAGE_FACTOR_1KK = PERCENTAGE_DECIMALS * PERCENTAGE_FACTOR;
|
|
377304
376351
|
var ONE = PERCENTAGE_FACTOR_1KK * 10n;
|
|
377305
376352
|
var CreditAccountsService = class extends SDKConstruct {
|
|
@@ -378752,9 +377799,9 @@ var log_default = logger;
|
|
|
378752
377799
|
var log = log_default.child({ name: "git" });
|
|
378753
377800
|
function getGithubUrl(repo, https = false) {
|
|
378754
377801
|
const credentials = process.env.GITHUB_TOKEN ?? process.env.GH_TOKEN;
|
|
378755
|
-
const
|
|
377802
|
+
const path13 = repo.replace(/^@/, "").replace(/\/$/, "");
|
|
378756
377803
|
const cred = credentials ? `${credentials}@` : "";
|
|
378757
|
-
return https || credentials ? `https://${cred}github.com/${
|
|
377804
|
+
return https || credentials ? `https://${cred}github.com/${path13}.git` : `git@github.com:${path13}.git`;
|
|
378758
377805
|
}
|
|
378759
377806
|
async function cloneRepo(opts) {
|
|
378760
377807
|
const { repo, commit, sandboxDir } = opts;
|
|
@@ -386021,7 +385068,7 @@ var iDataCompressorV2_1Abi = [
|
|
|
386021
385068
|
stateMutability: "view"
|
|
386022
385069
|
}
|
|
386023
385070
|
];
|
|
386024
|
-
var
|
|
385071
|
+
var iDataCompressorV3Abi = [
|
|
386025
385072
|
{
|
|
386026
385073
|
type: "function",
|
|
386027
385074
|
inputs: [
|
|
@@ -396061,8 +395108,8 @@ function asyncExecSolc(inputStringified, solcPath) {
|
|
|
396061
395108
|
child.stdin.end();
|
|
396062
395109
|
});
|
|
396063
395110
|
}
|
|
396064
|
-
function importWorker(
|
|
396065
|
-
const resolvedPath = __require.resolve(
|
|
395111
|
+
function importWorker(path13, options) {
|
|
395112
|
+
const resolvedPath = __require.resolve(path13);
|
|
396066
395113
|
return new Worker(resolvedPath, {
|
|
396067
395114
|
...options,
|
|
396068
395115
|
execArgv: /\.ts$/.test(resolvedPath) ? ["--require", "ts-node/register"] : void 0
|
|
@@ -396088,7 +395135,7 @@ function isCallExternalTransaction(t) {
|
|
|
396088
395135
|
// ../../packages/node/dist/utils.js
|
|
396089
395136
|
var import_bytecode_utils = __toESM(require_main(), 1);
|
|
396090
395137
|
function extractFilesFromJSON(files) {
|
|
396091
|
-
return Object.entries(files).map(([
|
|
395138
|
+
return Object.entries(files).map(([path13, file]) => {
|
|
396092
395139
|
let buffer2 = null;
|
|
396093
395140
|
if (Buffer.isBuffer(file)) {
|
|
396094
395141
|
buffer2 = file;
|
|
@@ -396103,7 +395150,7 @@ function extractFilesFromJSON(files) {
|
|
|
396103
395150
|
throw new Error(`cannot convert ${typeof file} into buffer`);
|
|
396104
395151
|
}
|
|
396105
395152
|
return {
|
|
396106
|
-
path:
|
|
395153
|
+
path: path13,
|
|
396107
395154
|
buffer: buffer2
|
|
396108
395155
|
};
|
|
396109
395156
|
});
|
|
@@ -396164,8 +395211,8 @@ var Auditor = class {
|
|
|
396164
395211
|
if (!meta.files) {
|
|
396165
395212
|
throw new Error("no files to audit");
|
|
396166
395213
|
}
|
|
396167
|
-
const files = extractFilesFromJSON(meta.files).filter((f) => f.path !== "metadata.json").map(({ path:
|
|
396168
|
-
const p =
|
|
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;
|
|
396169
395216
|
const gearbox = p.startsWith("@gearbox-protocol");
|
|
396170
395217
|
return {
|
|
396171
395218
|
gearbox,
|
|
@@ -396185,8 +395232,8 @@ var Auditor = class {
|
|
|
396185
395232
|
*/
|
|
396186
395233
|
async auditEtherscanVerified(contract) {
|
|
396187
395234
|
const input = parseEtherscanSourceCode(contract);
|
|
396188
|
-
const files = extractFilesFromJSON(input.sources).map(({ path:
|
|
396189
|
-
const p =
|
|
395235
|
+
const files = extractFilesFromJSON(input.sources).map(({ path: path13, buffer: buffer2 }) => {
|
|
395236
|
+
const p = path13.replace("node_modules/", "");
|
|
396190
395237
|
const gearbox = p.startsWith("@gearbox-protocol");
|
|
396191
395238
|
return {
|
|
396192
395239
|
gearbox,
|
|
@@ -396696,8 +395743,8 @@ function getErrorMap() {
|
|
|
396696
395743
|
return overrideErrorMap;
|
|
396697
395744
|
}
|
|
396698
395745
|
var makeIssue = (params) => {
|
|
396699
|
-
const { data, path:
|
|
396700
|
-
const fullPath = [...
|
|
395746
|
+
const { data, path: path13, errorMaps, issueData } = params;
|
|
395747
|
+
const fullPath = [...path13, ...issueData.path || []];
|
|
396701
395748
|
const fullIssue = {
|
|
396702
395749
|
...issueData,
|
|
396703
395750
|
path: fullPath
|
|
@@ -396822,11 +395869,11 @@ var errorUtil;
|
|
|
396822
395869
|
var _ZodEnum_cache;
|
|
396823
395870
|
var _ZodNativeEnum_cache;
|
|
396824
395871
|
var ParseInputLazyPath = class {
|
|
396825
|
-
constructor(parent, value,
|
|
395872
|
+
constructor(parent, value, path13, key) {
|
|
396826
395873
|
this._cachedPath = [];
|
|
396827
395874
|
this.parent = parent;
|
|
396828
395875
|
this.data = value;
|
|
396829
|
-
this._path =
|
|
395876
|
+
this._path = path13;
|
|
396830
395877
|
this._key = key;
|
|
396831
395878
|
}
|
|
396832
395879
|
get path() {
|
|
@@ -401164,19 +400211,19 @@ function toKey(value) {
|
|
|
401164
400211
|
var toKey_default = toKey;
|
|
401165
400212
|
|
|
401166
400213
|
// ../../node_modules/lodash-es/_baseGet.js
|
|
401167
|
-
function baseGet(object,
|
|
401168
|
-
|
|
401169
|
-
var index2 = 0, length =
|
|
400214
|
+
function baseGet(object, path13) {
|
|
400215
|
+
path13 = castPath_default(path13, object);
|
|
400216
|
+
var index2 = 0, length = path13.length;
|
|
401170
400217
|
while (object != null && index2 < length) {
|
|
401171
|
-
object = object[toKey_default(
|
|
400218
|
+
object = object[toKey_default(path13[index2++])];
|
|
401172
400219
|
}
|
|
401173
400220
|
return index2 && index2 == length ? object : void 0;
|
|
401174
400221
|
}
|
|
401175
400222
|
var baseGet_default = baseGet;
|
|
401176
400223
|
|
|
401177
400224
|
// ../../node_modules/lodash-es/get.js
|
|
401178
|
-
function get(object,
|
|
401179
|
-
var result = object == null ? void 0 : baseGet_default(object,
|
|
400225
|
+
function get(object, path13, defaultValue) {
|
|
400226
|
+
var result = object == null ? void 0 : baseGet_default(object, path13);
|
|
401180
400227
|
return result === void 0 ? defaultValue : result;
|
|
401181
400228
|
}
|
|
401182
400229
|
var get_default = get;
|
|
@@ -402125,11 +401172,11 @@ function baseHasIn(object, key) {
|
|
|
402125
401172
|
var baseHasIn_default = baseHasIn;
|
|
402126
401173
|
|
|
402127
401174
|
// ../../node_modules/lodash-es/_hasPath.js
|
|
402128
|
-
function hasPath(object,
|
|
402129
|
-
|
|
402130
|
-
var index2 = -1, length =
|
|
401175
|
+
function hasPath(object, path13, hasFunc) {
|
|
401176
|
+
path13 = castPath_default(path13, object);
|
|
401177
|
+
var index2 = -1, length = path13.length, result = false;
|
|
402131
401178
|
while (++index2 < length) {
|
|
402132
|
-
var key = toKey_default(
|
|
401179
|
+
var key = toKey_default(path13[index2]);
|
|
402133
401180
|
if (!(result = object != null && hasFunc(object, key))) {
|
|
402134
401181
|
break;
|
|
402135
401182
|
}
|
|
@@ -402144,21 +401191,21 @@ function hasPath(object, path12, hasFunc) {
|
|
|
402144
401191
|
var hasPath_default = hasPath;
|
|
402145
401192
|
|
|
402146
401193
|
// ../../node_modules/lodash-es/hasIn.js
|
|
402147
|
-
function hasIn(object,
|
|
402148
|
-
return object != null && hasPath_default(object,
|
|
401194
|
+
function hasIn(object, path13) {
|
|
401195
|
+
return object != null && hasPath_default(object, path13, baseHasIn_default);
|
|
402149
401196
|
}
|
|
402150
401197
|
var hasIn_default = hasIn;
|
|
402151
401198
|
|
|
402152
401199
|
// ../../node_modules/lodash-es/_baseMatchesProperty.js
|
|
402153
401200
|
var COMPARE_PARTIAL_FLAG6 = 1;
|
|
402154
401201
|
var COMPARE_UNORDERED_FLAG4 = 2;
|
|
402155
|
-
function baseMatchesProperty(
|
|
402156
|
-
if (isKey_default(
|
|
402157
|
-
return matchesStrictComparable_default(toKey_default(
|
|
401202
|
+
function baseMatchesProperty(path13, srcValue) {
|
|
401203
|
+
if (isKey_default(path13) && isStrictComparable_default(srcValue)) {
|
|
401204
|
+
return matchesStrictComparable_default(toKey_default(path13), srcValue);
|
|
402158
401205
|
}
|
|
402159
401206
|
return function(object) {
|
|
402160
|
-
var objValue = get_default(object,
|
|
402161
|
-
return objValue === void 0 && objValue === srcValue ? hasIn_default(object,
|
|
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);
|
|
402162
401209
|
};
|
|
402163
401210
|
}
|
|
402164
401211
|
var baseMatchesProperty_default = baseMatchesProperty;
|
|
@@ -402172,16 +401219,16 @@ function baseProperty(key) {
|
|
|
402172
401219
|
var baseProperty_default = baseProperty;
|
|
402173
401220
|
|
|
402174
401221
|
// ../../node_modules/lodash-es/_basePropertyDeep.js
|
|
402175
|
-
function basePropertyDeep(
|
|
401222
|
+
function basePropertyDeep(path13) {
|
|
402176
401223
|
return function(object) {
|
|
402177
|
-
return baseGet_default(object,
|
|
401224
|
+
return baseGet_default(object, path13);
|
|
402178
401225
|
};
|
|
402179
401226
|
}
|
|
402180
401227
|
var basePropertyDeep_default = basePropertyDeep;
|
|
402181
401228
|
|
|
402182
401229
|
// ../../node_modules/lodash-es/property.js
|
|
402183
|
-
function property(
|
|
402184
|
-
return isKey_default(
|
|
401230
|
+
function property(path13) {
|
|
401231
|
+
return isKey_default(path13) ? baseProperty_default(toKey_default(path13)) : basePropertyDeep_default(path13);
|
|
402185
401232
|
}
|
|
402186
401233
|
var property_default = property;
|
|
402187
401234
|
|
|
@@ -409531,7 +408578,7 @@ var ZeroLT = class extends ProviderBase {
|
|
|
409531
408578
|
this.logger.debug(`data compressor: ${dc300Addr}`);
|
|
409532
408579
|
const cms = await this.client.readContract({
|
|
409533
408580
|
address: dc300Addr,
|
|
409534
|
-
abi:
|
|
408581
|
+
abi: iDataCompressorV3Abi,
|
|
409535
408582
|
functionName: "getCreditManagersV3List"
|
|
409536
408583
|
});
|
|
409537
408584
|
this.logger.debug(`total managers: ${cms.length}`);
|
|
@@ -410639,223 +409686,6 @@ function audit() {
|
|
|
410639
409686
|
});
|
|
410640
409687
|
}
|
|
410641
409688
|
|
|
410642
|
-
// src/commands/compare-accounts.ts
|
|
410643
|
-
var import_table2 = __toESM(require_src10(), 1);
|
|
410644
|
-
function compareAccounts() {
|
|
410645
|
-
return newCommand().name("compare-accounts").description("Compare gauges and active bots").addOption(
|
|
410646
|
-
new Option(
|
|
410647
|
-
"--address-provider <address>",
|
|
410648
|
-
"new address provider address"
|
|
410649
|
-
).env("ADDRESS_PROVIDER")
|
|
410650
|
-
).addOption(
|
|
410651
|
-
new Option("--shared-dir <dir>", "dir to put output files").env(
|
|
410652
|
-
"SHARED_DIR"
|
|
410653
|
-
)
|
|
410654
|
-
).addOption(
|
|
410655
|
-
new Option("--anvil-url <url>", "anvil rpc url").env("ANVIL_URL")
|
|
410656
|
-
).action(async (opts) => {
|
|
410657
|
-
log_default.info("starting sdk v3.1 example");
|
|
410658
|
-
let {
|
|
410659
|
-
addressProvider,
|
|
410660
|
-
marketConfigurators,
|
|
410661
|
-
anvilUrl = "http://127.0.0.1:8545",
|
|
410662
|
-
sharedDir = "."
|
|
410663
|
-
} = opts;
|
|
410664
|
-
const sdk = await GearboxSDK.attach({
|
|
410665
|
-
rpcURLs: [anvilUrl],
|
|
410666
|
-
timeout: 48e4,
|
|
410667
|
-
addressProvider,
|
|
410668
|
-
logger: log_default,
|
|
410669
|
-
ignoreUpdateablePrices: true,
|
|
410670
|
-
marketConfigurators: marketConfigurators ?? []
|
|
410671
|
-
});
|
|
410672
|
-
const v31Accounts = await loadV31Accounts(sdk, true);
|
|
410673
|
-
const v30Accounts = await loadV300Accounts(sdk, true);
|
|
410674
|
-
log_default.info(
|
|
410675
|
-
`loaded ${v30Accounts.size} v3.0 accounts and ${v31Accounts.size} v3.1 accounts`
|
|
410676
|
-
);
|
|
410677
|
-
await examineBots(sdk, v30Accounts, v31Accounts);
|
|
410678
|
-
await examineGauges(sdk, v30Accounts, v31Accounts);
|
|
410679
|
-
log_default.info("done");
|
|
410680
|
-
});
|
|
410681
|
-
}
|
|
410682
|
-
async function examineBots(sdk, v300accounts, v310accounts) {
|
|
410683
|
-
const v310bots = await loadV310Bots(sdk, v310accounts);
|
|
410684
|
-
const v300bots = await loadV300Bots(v300accounts);
|
|
410685
|
-
const rows = [
|
|
410686
|
-
[
|
|
410687
|
-
source_default.white("Credit Account"),
|
|
410688
|
-
source_default.white("v3.0 Active Bots"),
|
|
410689
|
-
source_default.white("v3.1 Active Bots")
|
|
410690
|
-
]
|
|
410691
|
-
];
|
|
410692
|
-
for (const account of v310accounts.keys()) {
|
|
410693
|
-
const newBots = v310bots.get(account) ?? [];
|
|
410694
|
-
const oldBots = v300bots.get(account) ?? [];
|
|
410695
|
-
const color = compareBots(newBots, oldBots);
|
|
410696
|
-
rows.push(
|
|
410697
|
-
[
|
|
410698
|
-
account,
|
|
410699
|
-
oldBots.join(", "),
|
|
410700
|
-
newBots.map(
|
|
410701
|
-
(bot) => bot.baseParams.addr + (bot.forbidden ? " (forbidden)" : "")
|
|
410702
|
-
).join(", ")
|
|
410703
|
-
].map((c) => color(c))
|
|
410704
|
-
);
|
|
410705
|
-
}
|
|
410706
|
-
const output = (0, import_table2.table)(rows);
|
|
410707
|
-
console.log(output);
|
|
410708
|
-
}
|
|
410709
|
-
async function examineGauges(sdk, v300accounts, v310accounts) {
|
|
410710
|
-
const v310gauges = await loadV310Gauges(sdk, v310accounts);
|
|
410711
|
-
const v300gauges = await loadV300Gauges(sdk, v300accounts);
|
|
410712
|
-
const gaugesRows = [];
|
|
410713
|
-
for (const account of v300accounts.keys()) {
|
|
410714
|
-
const newG = v310gauges.get(account) ?? [];
|
|
410715
|
-
const oldG = v300gauges.get(account) ?? [];
|
|
410716
|
-
const ok = compareGauges(newG, oldG);
|
|
410717
|
-
gaugesRows.push([account, ok ? "OK" : "NOT OK"]);
|
|
410718
|
-
}
|
|
410719
|
-
const gaugesOutput = (0, import_table2.table)(gaugesRows);
|
|
410720
|
-
console.log(gaugesOutput);
|
|
410721
|
-
}
|
|
410722
|
-
async function loadV31Accounts(sdk, skipZeroDebt) {
|
|
410723
|
-
const accountsService = new CreditAccountsService(sdk);
|
|
410724
|
-
const v31Accounts = await accountsService.getCreditAccounts({
|
|
410725
|
-
includeZeroDebt: !skipZeroDebt
|
|
410726
|
-
});
|
|
410727
|
-
log_default.debug(`loaded v3.1 ${v31Accounts.length} accounts`);
|
|
410728
|
-
return new AddressMap(v31Accounts.map((a) => [a.creditAccount, a]));
|
|
410729
|
-
}
|
|
410730
|
-
async function loadV300Accounts(sdk, skipZeroDebt) {
|
|
410731
|
-
const client = sdk.provider.publicClient;
|
|
410732
|
-
const ap3 = ADDRESS_PROVIDER.Mainnet;
|
|
410733
|
-
const compressor = await client.readContract({
|
|
410734
|
-
address: ap3,
|
|
410735
|
-
abi: iAddressProviderV3Abi,
|
|
410736
|
-
functionName: "getAddressOrRevert",
|
|
410737
|
-
args: [stringToHex("DATA_COMPRESSOR", { size: 32 }), 300n]
|
|
410738
|
-
});
|
|
410739
|
-
log_default.debug(`loaded v3.0 compressor ${compressor}`);
|
|
410740
|
-
const cms = await client.readContract({
|
|
410741
|
-
address: compressor,
|
|
410742
|
-
abi: iDataCompressorV3Abi,
|
|
410743
|
-
functionName: "getCreditManagersV3List",
|
|
410744
|
-
args: []
|
|
410745
|
-
});
|
|
410746
|
-
log_default.debug(`loaded ${cms.length} v3.0 credit managers `);
|
|
410747
|
-
let allAccounts = [];
|
|
410748
|
-
for (const cm of cms) {
|
|
410749
|
-
const accounts = await client.simulateContract({
|
|
410750
|
-
address: compressor,
|
|
410751
|
-
abi: iDataCompressorV3Abi,
|
|
410752
|
-
functionName: "getCreditAccountsByCreditManager",
|
|
410753
|
-
args: [cm.addr, []]
|
|
410754
|
-
});
|
|
410755
|
-
allAccounts.push(
|
|
410756
|
-
...accounts.result
|
|
410757
|
-
);
|
|
410758
|
-
}
|
|
410759
|
-
if (skipZeroDebt) {
|
|
410760
|
-
allAccounts = allAccounts.filter((a) => a.debt > 0n);
|
|
410761
|
-
}
|
|
410762
|
-
log_default.debug(`loaded v3.0 ${allAccounts.length} accounts`);
|
|
410763
|
-
return new AddressMap(allAccounts.map((a) => [a.addr, a]));
|
|
410764
|
-
}
|
|
410765
|
-
async function loadV310Bots(sdk, v31Accounts) {
|
|
410766
|
-
const pcAddr = sdk.addressProvider.getLatestVersion(AP_PERIPHERY_COMPRESSOR);
|
|
410767
|
-
const accounts = v31Accounts.keys();
|
|
410768
|
-
const mc = sdk.marketRegister.marketConfigurators[0].address;
|
|
410769
|
-
const resp = await sdk.provider.publicClient.multicall({
|
|
410770
|
-
contracts: accounts.map((a) => ({
|
|
410771
|
-
address: pcAddr,
|
|
410772
|
-
abi: iPeripheryCompressorAbi,
|
|
410773
|
-
functionName: "getActiveBots",
|
|
410774
|
-
args: [mc, a]
|
|
410775
|
-
})),
|
|
410776
|
-
allowFailure: false
|
|
410777
|
-
});
|
|
410778
|
-
return new AddressMap(resp.map((d, i) => [accounts[i], d]));
|
|
410779
|
-
}
|
|
410780
|
-
async function loadV300Bots(v31Accounts) {
|
|
410781
|
-
return new AddressMap(
|
|
410782
|
-
v31Accounts.values().map((a) => [a.addr, [...a.activeBots]])
|
|
410783
|
-
);
|
|
410784
|
-
}
|
|
410785
|
-
async function loadV300Gauges(sdk, v30Accounts) {
|
|
410786
|
-
const accounts = v30Accounts.keys();
|
|
410787
|
-
const compressor = await sdk.provider.publicClient.readContract({
|
|
410788
|
-
address: ADDRESS_PROVIDER.Mainnet,
|
|
410789
|
-
abi: iAddressProviderV3Abi,
|
|
410790
|
-
functionName: "getAddressOrRevert",
|
|
410791
|
-
args: [stringToHex("DATA_COMPRESSOR", { size: 32 }), 300n]
|
|
410792
|
-
});
|
|
410793
|
-
const resp = await sdk.provider.publicClient.multicall({
|
|
410794
|
-
contracts: accounts.map((a) => ({
|
|
410795
|
-
address: compressor,
|
|
410796
|
-
abi: iDataCompressorV3Abi,
|
|
410797
|
-
functionName: "getGaugesV3Data",
|
|
410798
|
-
args: [a]
|
|
410799
|
-
})),
|
|
410800
|
-
allowFailure: false
|
|
410801
|
-
});
|
|
410802
|
-
return new AddressMap(
|
|
410803
|
-
resp.map((d, i) => [accounts[i], d])
|
|
410804
|
-
);
|
|
410805
|
-
}
|
|
410806
|
-
async function loadV310Gauges(sdk, v31Accounts) {
|
|
410807
|
-
const accounts = v31Accounts.keys();
|
|
410808
|
-
const gcAddr = sdk.addressProvider.getLatestVersion(AP_GAUGE_COMPRESSOR);
|
|
410809
|
-
const configurators = [];
|
|
410810
|
-
const pools = sdk.marketRegister.pools.map((p) => p.pool.address);
|
|
410811
|
-
console.log({ configurators, pools });
|
|
410812
|
-
const resp = await sdk.provider.publicClient.multicall({
|
|
410813
|
-
contracts: accounts.map((a) => ({
|
|
410814
|
-
address: gcAddr,
|
|
410815
|
-
abi: iGaugeCompressorAbi,
|
|
410816
|
-
functionName: "getGauges",
|
|
410817
|
-
args: [
|
|
410818
|
-
{
|
|
410819
|
-
configurators: [],
|
|
410820
|
-
pools,
|
|
410821
|
-
underlying: ADDRESS_0X0
|
|
410822
|
-
},
|
|
410823
|
-
a
|
|
410824
|
-
]
|
|
410825
|
-
})),
|
|
410826
|
-
allowFailure: false
|
|
410827
|
-
});
|
|
410828
|
-
console.log(resp);
|
|
410829
|
-
return new AddressMap(resp.map((d, i) => [accounts[i], resp[i]]));
|
|
410830
|
-
}
|
|
410831
|
-
function compareBots(v31, v3) {
|
|
410832
|
-
const v31Addresses = v31.map((bot) => bot.baseParams.addr.toLowerCase());
|
|
410833
|
-
const v31Filtered = v31.filter((bot) => !bot.forbidden).map((bot) => bot.baseParams.addr.toLowerCase());
|
|
410834
|
-
const v30 = v3.map((addr) => addr.toLowerCase());
|
|
410835
|
-
const allMatch = v31Addresses.length === v30.length && v31Addresses.every((addr) => v30.includes(addr));
|
|
410836
|
-
const filteredMatch = v31Filtered.length === v30.length && v31Filtered.every((addr) => v3.includes(addr));
|
|
410837
|
-
if (allMatch) {
|
|
410838
|
-
return source_default.green;
|
|
410839
|
-
} else if (filteredMatch) {
|
|
410840
|
-
return source_default.yellow;
|
|
410841
|
-
} else {
|
|
410842
|
-
return source_default.red;
|
|
410843
|
-
}
|
|
410844
|
-
}
|
|
410845
|
-
function compareGauges(a, b) {
|
|
410846
|
-
const aa = a.sort(
|
|
410847
|
-
(a2, b2) => a2.addr.toLowerCase().localeCompare(b2.addr.toLowerCase())
|
|
410848
|
-
);
|
|
410849
|
-
const bb = b.sort(
|
|
410850
|
-
(a2, b2) => a2.addr.toLowerCase().localeCompare(b2.addr.toLowerCase())
|
|
410851
|
-
);
|
|
410852
|
-
return aa.length === bb.length && aa.every((a2, i) => compareGauge(a2, bb[i]));
|
|
410853
|
-
}
|
|
410854
|
-
function compareGauge(a, b) {
|
|
410855
|
-
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();
|
|
410856
|
-
return ok;
|
|
410857
|
-
}
|
|
410858
|
-
|
|
410859
409689
|
// src/commands/discover-market-configurator.ts
|
|
410860
409690
|
import { readFile as readFile8, writeFile as writeFile5 } from "node:fs/promises";
|
|
410861
409691
|
import path8 from "node:path";
|
|
@@ -410923,11 +409753,662 @@ function discoverMarketConfigurator() {
|
|
|
410923
409753
|
});
|
|
410924
409754
|
}
|
|
410925
409755
|
|
|
410926
|
-
// src/commands/
|
|
409756
|
+
// src/commands/execute-jsons/index.ts
|
|
410927
409757
|
import { mkdir, writeFile as writeFile6 } from "node:fs/promises";
|
|
410928
409758
|
import path9 from "node:path";
|
|
410929
|
-
|
|
410930
|
-
|
|
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(
|
|
410931
410412
|
new Option(
|
|
410932
410413
|
"--address-provider <address>",
|
|
410933
410414
|
"new address provider address"
|
|
@@ -410947,12 +410428,27 @@ function openAccounts() {
|
|
|
410947
410428
|
anvilUrl = "http://127.0.0.1:8545",
|
|
410948
410429
|
sharedDir = "."
|
|
410949
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");
|
|
410950
410446
|
await mkdir(path9.resolve(sharedDir, "deploy-state"), { recursive: true });
|
|
410951
410447
|
const sdkExample2 = new SDKExample(log_default);
|
|
410952
410448
|
await sdkExample2.run({
|
|
410953
410449
|
addressProvider,
|
|
410954
410450
|
addressProviderJson,
|
|
410955
|
-
marketConfigurators,
|
|
410451
|
+
marketConfigurators: marketConfigurators ?? [],
|
|
410956
410452
|
anvilUrl,
|
|
410957
410453
|
outFile: path9.resolve(
|
|
410958
410454
|
sharedDir,
|
|
@@ -410965,6 +410461,52 @@ function openAccounts() {
|
|
|
410965
410461
|
json_stringify(sdkExample2.sdk.state),
|
|
410966
410462
|
"utf-8"
|
|
410967
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
|
+
);
|
|
410968
410510
|
const faucetAddr = await sdkExample2.sdk.provider.publicClient.readContract({
|
|
410969
410511
|
address: ADDRESS_PROVIDER[sdkExample2.sdk.provider.networkType],
|
|
410970
410512
|
abi: iAddressProviderV3_1Abi,
|
|
@@ -411023,8 +410565,8 @@ function openAccounts() {
|
|
|
411023
410565
|
// sUSDe
|
|
411024
410566
|
}
|
|
411025
410567
|
]);
|
|
411026
|
-
await
|
|
411027
|
-
|
|
410568
|
+
await writeFile7(
|
|
410569
|
+
path10.resolve(sharedDir, "opened-accounts.json"),
|
|
411028
410570
|
json_stringify(opened),
|
|
411029
410571
|
"utf-8"
|
|
411030
410572
|
);
|
|
@@ -411036,20 +410578,20 @@ function openAccounts() {
|
|
|
411036
410578
|
}
|
|
411037
410579
|
|
|
411038
410580
|
// src/commands/parse.ts
|
|
411039
|
-
import { writeFile as
|
|
410581
|
+
import { writeFile as writeFile8 } from "node:fs/promises";
|
|
411040
410582
|
|
|
411041
410583
|
// src/renderer/html/HtmlRenderer.tsx
|
|
411042
410584
|
var import_react = __toESM(require_react(), 1);
|
|
411043
410585
|
var import_server = __toESM(require_server_node(), 1);
|
|
411044
410586
|
import { writeFileSync } from "node:fs";
|
|
411045
|
-
import
|
|
410587
|
+
import path11 from "node:path";
|
|
411046
410588
|
var HtmlRenderer = class {
|
|
411047
410589
|
#htmlFile;
|
|
411048
410590
|
constructor(opts) {
|
|
411049
410591
|
if (!opts.htmlFile) {
|
|
411050
410592
|
throw new Error(`output HTML file not specified`);
|
|
411051
410593
|
}
|
|
411052
|
-
this.#htmlFile =
|
|
410594
|
+
this.#htmlFile = path11.resolve(opts.htmlFile);
|
|
411053
410595
|
}
|
|
411054
410596
|
render(updates) {
|
|
411055
410597
|
const html = (0, import_server.renderToString)(/* @__PURE__ */ import_react.default.createElement("div", null));
|
|
@@ -411082,7 +410624,7 @@ function getRenderer(opts) {
|
|
|
411082
410624
|
var package_default = {
|
|
411083
410625
|
name: "@gearbox-protocol/deploy-tools",
|
|
411084
410626
|
description: "Gearbox deploy tools",
|
|
411085
|
-
version: "5.9.
|
|
410627
|
+
version: "5.9.16",
|
|
411086
410628
|
homepage: "https://gearbox.fi",
|
|
411087
410629
|
keywords: [
|
|
411088
410630
|
"gearbox"
|
|
@@ -411205,7 +410747,7 @@ function parse() {
|
|
|
411205
410747
|
const parser = new UpdateParser(opts, version_default);
|
|
411206
410748
|
const result = await parser.parse(opts);
|
|
411207
410749
|
if (opts.outFile) {
|
|
411208
|
-
await
|
|
410750
|
+
await writeFile8(opts.outFile, json_stringify(result), "utf-8");
|
|
411209
410751
|
}
|
|
411210
410752
|
const renderer = getRenderer(opts);
|
|
411211
410753
|
return renderer?.render(result);
|
|
@@ -411226,8 +410768,8 @@ function printSafeTx() {
|
|
|
411226
410768
|
}
|
|
411227
410769
|
|
|
411228
410770
|
// src/commands/sdk-example.ts
|
|
411229
|
-
import { mkdir as
|
|
411230
|
-
import
|
|
410771
|
+
import { mkdir as mkdir3, writeFile as writeFile9 } from "node:fs/promises";
|
|
410772
|
+
import path12 from "node:path";
|
|
411231
410773
|
function sdkExample() {
|
|
411232
410774
|
return newCommand().name("sdk-example").description("SDK example for v3.1").addOption(
|
|
411233
410775
|
new Option(
|
|
@@ -411249,21 +410791,21 @@ function sdkExample() {
|
|
|
411249
410791
|
anvilUrl = "http://127.0.0.1:8545",
|
|
411250
410792
|
sharedDir = "."
|
|
411251
410793
|
} = opts;
|
|
411252
|
-
await
|
|
410794
|
+
await mkdir3(path12.resolve(sharedDir, "deploy-state"), { recursive: true });
|
|
411253
410795
|
const sdkExample2 = new SDKExample(log_default);
|
|
411254
410796
|
await sdkExample2.run({
|
|
411255
410797
|
addressProvider,
|
|
411256
410798
|
addressProviderJson,
|
|
411257
410799
|
marketConfigurators: marketConfigurators ?? [],
|
|
411258
410800
|
anvilUrl,
|
|
411259
|
-
outFile:
|
|
410801
|
+
outFile: path12.resolve(
|
|
411260
410802
|
sharedDir,
|
|
411261
410803
|
"deploy-state",
|
|
411262
410804
|
"stateAfter.human.json"
|
|
411263
410805
|
)
|
|
411264
410806
|
});
|
|
411265
|
-
await
|
|
411266
|
-
|
|
410807
|
+
await writeFile9(
|
|
410808
|
+
path12.resolve(sharedDir, "deploy-state", "stateAfter.json"),
|
|
411267
410809
|
json_stringify(sdkExample2.sdk.state),
|
|
411268
410810
|
"utf-8"
|
|
411269
410811
|
);
|
|
@@ -411323,7 +410865,7 @@ program2.addCommand(printSafeTx());
|
|
|
411323
410865
|
program2.addCommand(sdkExample());
|
|
411324
410866
|
program2.addCommand(verifyEtherscan());
|
|
411325
410867
|
program2.addCommand(zeroLT());
|
|
411326
|
-
program2.addCommand(
|
|
410868
|
+
program2.addCommand(executeJsons());
|
|
411327
410869
|
program2.parse();
|
|
411328
410870
|
/*! Bundled license information:
|
|
411329
410871
|
|