@gearbox-protocol/deploy-tools 5.9.21 → 5.9.22
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 +542 -1174
- 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 path12 = __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 = path12.resolve(baseDir, baseName);
|
|
2167
2167
|
if (fs3.existsSync(localBin)) return localBin;
|
|
2168
|
-
if (sourceExt.includes(
|
|
2168
|
+
if (sourceExt.includes(path12.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 = path12.resolve(
|
|
2187
|
+
path12.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 = path12.basename(
|
|
2195
2195
|
this._scriptPath,
|
|
2196
|
-
|
|
2196
|
+
path12.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(path12.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 = path12.basename(filename, path12.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(path13) {
|
|
3069
|
+
if (path13 === void 0) return this._executableDir;
|
|
3070
|
+
this._executableDir = path13;
|
|
3071
3071
|
return this;
|
|
3072
3072
|
}
|
|
3073
3073
|
/**
|
|
@@ -17438,12 +17438,12 @@ var require_abstract_coder = __commonJS({
|
|
|
17438
17438
|
var logger2 = new logger_1.Logger(_version_1.version);
|
|
17439
17439
|
function checkResultErrors(result) {
|
|
17440
17440
|
var errors = [];
|
|
17441
|
-
var checkErrors = function(
|
|
17441
|
+
var checkErrors = function(path12, object) {
|
|
17442
17442
|
if (!Array.isArray(object)) {
|
|
17443
17443
|
return;
|
|
17444
17444
|
}
|
|
17445
17445
|
for (var key in object) {
|
|
17446
|
-
var childPath =
|
|
17446
|
+
var childPath = path12.slice();
|
|
17447
17447
|
childPath.push(key);
|
|
17448
17448
|
try {
|
|
17449
17449
|
checkErrors(childPath, object[key]);
|
|
@@ -31480,9 +31480,9 @@ var require_lib20 = __commonJS({
|
|
|
31480
31480
|
if (index2 > 4294967295) {
|
|
31481
31481
|
throw new Error("invalid index - " + String(index2));
|
|
31482
31482
|
}
|
|
31483
|
-
var
|
|
31484
|
-
if (
|
|
31485
|
-
|
|
31483
|
+
var path12 = this.path;
|
|
31484
|
+
if (path12) {
|
|
31485
|
+
path12 += "/" + (index2 & ~HardenedBit);
|
|
31486
31486
|
}
|
|
31487
31487
|
var data = new Uint8Array(37);
|
|
31488
31488
|
if (index2 & HardenedBit) {
|
|
@@ -31490,8 +31490,8 @@ var require_lib20 = __commonJS({
|
|
|
31490
31490
|
throw new Error("cannot derive child of neutered node");
|
|
31491
31491
|
}
|
|
31492
31492
|
data.set((0, bytes_1.arrayify)(this.privateKey), 1);
|
|
31493
|
-
if (
|
|
31494
|
-
|
|
31493
|
+
if (path12) {
|
|
31494
|
+
path12 += "'";
|
|
31495
31495
|
}
|
|
31496
31496
|
} else {
|
|
31497
31497
|
data.set((0, bytes_1.arrayify)(this.publicKey));
|
|
@@ -31510,21 +31510,21 @@ var require_lib20 = __commonJS({
|
|
|
31510
31510
|
var ek = new signing_key_1.SigningKey((0, bytes_1.hexlify)(IL));
|
|
31511
31511
|
Ki = ek._addPoint(this.publicKey);
|
|
31512
31512
|
}
|
|
31513
|
-
var mnemonicOrPath =
|
|
31513
|
+
var mnemonicOrPath = path12;
|
|
31514
31514
|
var srcMnemonic = this.mnemonic;
|
|
31515
31515
|
if (srcMnemonic) {
|
|
31516
31516
|
mnemonicOrPath = Object.freeze({
|
|
31517
31517
|
phrase: srcMnemonic.phrase,
|
|
31518
|
-
path:
|
|
31518
|
+
path: path12,
|
|
31519
31519
|
locale: srcMnemonic.locale || "en"
|
|
31520
31520
|
});
|
|
31521
31521
|
}
|
|
31522
31522
|
return new HDNode2(_constructorGuard, ki, Ki, this.fingerprint, bytes32(IR), index2, this.depth + 1, mnemonicOrPath);
|
|
31523
31523
|
};
|
|
31524
|
-
HDNode2.prototype.derivePath = function(
|
|
31525
|
-
var components =
|
|
31524
|
+
HDNode2.prototype.derivePath = function(path12) {
|
|
31525
|
+
var components = path12.split("/");
|
|
31526
31526
|
if (components.length === 0 || components[0] === "m" && this.depth !== 0) {
|
|
31527
|
-
throw new Error("invalid path - " +
|
|
31527
|
+
throw new Error("invalid path - " + path12);
|
|
31528
31528
|
}
|
|
31529
31529
|
if (components[0] === "m") {
|
|
31530
31530
|
components.shift();
|
|
@@ -32278,9 +32278,9 @@ var require_utils4 = __commonJS({
|
|
|
32278
32278
|
return (0, bytes_1.arrayify)(password);
|
|
32279
32279
|
}
|
|
32280
32280
|
exports2.getPassword = getPassword;
|
|
32281
|
-
function searchPath(object,
|
|
32281
|
+
function searchPath(object, path12) {
|
|
32282
32282
|
var currentChild = object;
|
|
32283
|
-
var comps =
|
|
32283
|
+
var comps = path12.toLowerCase().split("/");
|
|
32284
32284
|
for (var i = 0; i < comps.length; i++) {
|
|
32285
32285
|
var matchingChild = null;
|
|
32286
32286
|
for (var key in currentChild) {
|
|
@@ -33167,12 +33167,12 @@ var require_keystore = __commonJS({
|
|
|
33167
33167
|
var mnemonicIv = (0, utils_1.looseArrayify)((0, utils_1.searchPath)(data, "x-ethers/mnemonicCounter"));
|
|
33168
33168
|
var mnemonicCounter = new aes_js_1.default.Counter(mnemonicIv);
|
|
33169
33169
|
var mnemonicAesCtr = new aes_js_1.default.ModeOfOperation.ctr(mnemonicKey, mnemonicCounter);
|
|
33170
|
-
var
|
|
33170
|
+
var path12 = (0, utils_1.searchPath)(data, "x-ethers/path") || hdnode_1.defaultPath;
|
|
33171
33171
|
var locale = (0, utils_1.searchPath)(data, "x-ethers/locale") || "en";
|
|
33172
33172
|
var entropy = (0, bytes_1.arrayify)(mnemonicAesCtr.decrypt(mnemonicCiphertext));
|
|
33173
33173
|
try {
|
|
33174
33174
|
var mnemonic = (0, hdnode_1.entropyToMnemonic)(entropy, locale);
|
|
33175
|
-
var node = hdnode_1.HDNode.fromMnemonic(mnemonic, null, locale).derivePath(
|
|
33175
|
+
var node = hdnode_1.HDNode.fromMnemonic(mnemonic, null, locale).derivePath(path12);
|
|
33176
33176
|
if (node.privateKey != account.privateKey) {
|
|
33177
33177
|
throw new Error("mnemonic mismatch");
|
|
33178
33178
|
}
|
|
@@ -33282,12 +33282,12 @@ var require_keystore = __commonJS({
|
|
|
33282
33282
|
var privateKey = (0, bytes_1.arrayify)(account.privateKey);
|
|
33283
33283
|
var passwordBytes = (0, utils_1.getPassword)(password);
|
|
33284
33284
|
var entropy = null;
|
|
33285
|
-
var
|
|
33285
|
+
var path12 = null;
|
|
33286
33286
|
var locale = null;
|
|
33287
33287
|
if (hasMnemonic(account)) {
|
|
33288
33288
|
var srcMnemonic = account.mnemonic;
|
|
33289
33289
|
entropy = (0, bytes_1.arrayify)((0, hdnode_1.mnemonicToEntropy)(srcMnemonic.phrase, srcMnemonic.locale || "en"));
|
|
33290
|
-
|
|
33290
|
+
path12 = srcMnemonic.path || hdnode_1.defaultPath;
|
|
33291
33291
|
locale = srcMnemonic.locale || "en";
|
|
33292
33292
|
}
|
|
33293
33293
|
var client = options.client;
|
|
@@ -33373,7 +33373,7 @@ var require_keystore = __commonJS({
|
|
|
33373
33373
|
gethFilename: "UTC--" + timestamp + "--" + data.address,
|
|
33374
33374
|
mnemonicCounter: (0, bytes_1.hexlify)(mnemonicIv).substring(2),
|
|
33375
33375
|
mnemonicCiphertext: (0, bytes_1.hexlify)(mnemonicCiphertext).substring(2),
|
|
33376
|
-
path:
|
|
33376
|
+
path: path12,
|
|
33377
33377
|
locale,
|
|
33378
33378
|
version: "0.1"
|
|
33379
33379
|
};
|
|
@@ -34740,11 +34740,11 @@ var require_lib27 = __commonJS({
|
|
|
34740
34740
|
Wallet2.fromEncryptedJsonSync = function(json, password) {
|
|
34741
34741
|
return new Wallet2((0, json_wallets_1.decryptJsonWalletSync)(json, password));
|
|
34742
34742
|
};
|
|
34743
|
-
Wallet2.fromMnemonic = function(mnemonic,
|
|
34744
|
-
if (!
|
|
34745
|
-
|
|
34743
|
+
Wallet2.fromMnemonic = function(mnemonic, path12, wordlist) {
|
|
34744
|
+
if (!path12) {
|
|
34745
|
+
path12 = hdnode_1.defaultPath;
|
|
34746
34746
|
}
|
|
34747
|
-
return new Wallet2(hdnode_1.HDNode.fromMnemonic(mnemonic, null, wordlist).derivePath(
|
|
34747
|
+
return new Wallet2(hdnode_1.HDNode.fromMnemonic(mnemonic, null, wordlist).derivePath(path12));
|
|
34748
34748
|
};
|
|
34749
34749
|
return Wallet2;
|
|
34750
34750
|
}(abstract_signer_1.Signer)
|
|
@@ -46807,13 +46807,13 @@ var require_ipc_provider = __commonJS({
|
|
|
46807
46807
|
/** @class */
|
|
46808
46808
|
function(_super) {
|
|
46809
46809
|
__extends4(IpcProvider2, _super);
|
|
46810
|
-
function IpcProvider2(
|
|
46810
|
+
function IpcProvider2(path12, network) {
|
|
46811
46811
|
var _this = this;
|
|
46812
|
-
if (
|
|
46812
|
+
if (path12 == null) {
|
|
46813
46813
|
logger2.throwError("missing path", logger_1.Logger.errors.MISSING_ARGUMENT, { arg: "path" });
|
|
46814
46814
|
}
|
|
46815
|
-
_this = _super.call(this, "ipc://" +
|
|
46816
|
-
(0, properties_1.defineReadOnly)(_this, "path",
|
|
46815
|
+
_this = _super.call(this, "ipc://" + path12, network) || this;
|
|
46816
|
+
(0, properties_1.defineReadOnly)(_this, "path", path12);
|
|
46817
46817
|
return _this;
|
|
46818
46818
|
}
|
|
46819
46819
|
IpcProvider2.prototype.send = function(method, params) {
|
|
@@ -47412,21 +47412,21 @@ var require_web3_provider = __commonJS({
|
|
|
47412
47412
|
if (provider == null) {
|
|
47413
47413
|
logger2.throwArgumentError("missing provider", "provider", provider);
|
|
47414
47414
|
}
|
|
47415
|
-
var
|
|
47415
|
+
var path12 = null;
|
|
47416
47416
|
var jsonRpcFetchFunc = null;
|
|
47417
47417
|
var subprovider = null;
|
|
47418
47418
|
if (typeof provider === "function") {
|
|
47419
|
-
|
|
47419
|
+
path12 = "unknown:";
|
|
47420
47420
|
jsonRpcFetchFunc = provider;
|
|
47421
47421
|
} else {
|
|
47422
|
-
|
|
47423
|
-
if (!
|
|
47424
|
-
|
|
47422
|
+
path12 = provider.host || provider.path || "";
|
|
47423
|
+
if (!path12 && provider.isMetaMask) {
|
|
47424
|
+
path12 = "metamask";
|
|
47425
47425
|
}
|
|
47426
47426
|
subprovider = provider;
|
|
47427
47427
|
if (provider.request) {
|
|
47428
|
-
if (
|
|
47429
|
-
|
|
47428
|
+
if (path12 === "") {
|
|
47429
|
+
path12 = "eip-1193:";
|
|
47430
47430
|
}
|
|
47431
47431
|
jsonRpcFetchFunc = buildEip1193Fetcher(provider);
|
|
47432
47432
|
} else if (provider.sendAsync) {
|
|
@@ -47436,11 +47436,11 @@ var require_web3_provider = __commonJS({
|
|
|
47436
47436
|
} else {
|
|
47437
47437
|
logger2.throwArgumentError("unsupported provider", "provider", provider);
|
|
47438
47438
|
}
|
|
47439
|
-
if (!
|
|
47440
|
-
|
|
47439
|
+
if (!path12) {
|
|
47440
|
+
path12 = "unknown:";
|
|
47441
47441
|
}
|
|
47442
47442
|
}
|
|
47443
|
-
_this = _super.call(this,
|
|
47443
|
+
_this = _super.call(this, path12, network) || this;
|
|
47444
47444
|
(0, properties_1.defineReadOnly)(_this, "jsonRpcFetchFunc", jsonRpcFetchFunc);
|
|
47445
47445
|
(0, properties_1.defineReadOnly)(_this, "provider", subprovider);
|
|
47446
47446
|
return _this;
|
|
@@ -50170,7 +50170,7 @@ var require_data_point_deserializer = __commonJS({
|
|
|
50170
50170
|
var require_node_gyp_build = __commonJS({
|
|
50171
50171
|
"../../node_modules/node-gyp-build/node-gyp-build.js"(exports2, module2) {
|
|
50172
50172
|
var fs3 = __require("fs");
|
|
50173
|
-
var
|
|
50173
|
+
var path12 = __require("path");
|
|
50174
50174
|
var os2 = __require("os");
|
|
50175
50175
|
var runtimeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
|
|
50176
50176
|
var vars = process.config && process.config.variables || {};
|
|
@@ -50187,21 +50187,21 @@ var require_node_gyp_build = __commonJS({
|
|
|
50187
50187
|
return runtimeRequire(load.resolve(dir));
|
|
50188
50188
|
}
|
|
50189
50189
|
load.resolve = load.path = function(dir) {
|
|
50190
|
-
dir =
|
|
50190
|
+
dir = path12.resolve(dir || ".");
|
|
50191
50191
|
try {
|
|
50192
|
-
var name = runtimeRequire(
|
|
50192
|
+
var name = runtimeRequire(path12.join(dir, "package.json")).name.toUpperCase().replace(/-/g, "_");
|
|
50193
50193
|
if (process.env[name + "_PREBUILD"]) dir = process.env[name + "_PREBUILD"];
|
|
50194
50194
|
} catch (err) {
|
|
50195
50195
|
}
|
|
50196
50196
|
if (!prebuildsOnly) {
|
|
50197
|
-
var release = getFirst(
|
|
50197
|
+
var release = getFirst(path12.join(dir, "build/Release"), matchBuild);
|
|
50198
50198
|
if (release) return release;
|
|
50199
|
-
var debug = getFirst(
|
|
50199
|
+
var debug = getFirst(path12.join(dir, "build/Debug"), matchBuild);
|
|
50200
50200
|
if (debug) return debug;
|
|
50201
50201
|
}
|
|
50202
50202
|
var prebuild = resolve2(dir);
|
|
50203
50203
|
if (prebuild) return prebuild;
|
|
50204
|
-
var nearby = resolve2(
|
|
50204
|
+
var nearby = resolve2(path12.dirname(process.execPath));
|
|
50205
50205
|
if (nearby) return nearby;
|
|
50206
50206
|
var target = [
|
|
50207
50207
|
"platform=" + platform,
|
|
@@ -50218,14 +50218,14 @@ var require_node_gyp_build = __commonJS({
|
|
|
50218
50218
|
].filter(Boolean).join(" ");
|
|
50219
50219
|
throw new Error("No native build was found for " + target + "\n loaded from: " + dir + "\n");
|
|
50220
50220
|
function resolve2(dir2) {
|
|
50221
|
-
var tuples = readdirSync(
|
|
50221
|
+
var tuples = readdirSync(path12.join(dir2, "prebuilds")).map(parseTuple);
|
|
50222
50222
|
var tuple = tuples.filter(matchTuple(platform, arch)).sort(compareTuples)[0];
|
|
50223
50223
|
if (!tuple) return;
|
|
50224
|
-
var prebuilds =
|
|
50224
|
+
var prebuilds = path12.join(dir2, "prebuilds", tuple.name);
|
|
50225
50225
|
var parsed = readdirSync(prebuilds).map(parseTags);
|
|
50226
50226
|
var candidates = parsed.filter(matchTags(runtime, abi34));
|
|
50227
50227
|
var winner = candidates.sort(compareTags(runtime))[0];
|
|
50228
|
-
if (winner) return
|
|
50228
|
+
if (winner) return path12.join(prebuilds, winner.file);
|
|
50229
50229
|
}
|
|
50230
50230
|
};
|
|
50231
50231
|
function readdirSync(dir) {
|
|
@@ -50237,7 +50237,7 @@ var require_node_gyp_build = __commonJS({
|
|
|
50237
50237
|
}
|
|
50238
50238
|
function getFirst(dir, filter) {
|
|
50239
50239
|
var files = readdirSync(dir).filter(filter);
|
|
50240
|
-
return files[0] &&
|
|
50240
|
+
return files[0] && path12.join(dir, files[0]);
|
|
50241
50241
|
}
|
|
50242
50242
|
function matchBuild(name) {
|
|
50243
50243
|
return /\.node$/.test(name);
|
|
@@ -64016,11 +64016,11 @@ var require_mime_types = __commonJS({
|
|
|
64016
64016
|
}
|
|
64017
64017
|
return exts[0];
|
|
64018
64018
|
}
|
|
64019
|
-
function lookup(
|
|
64020
|
-
if (!
|
|
64019
|
+
function lookup(path12) {
|
|
64020
|
+
if (!path12 || typeof path12 !== "string") {
|
|
64021
64021
|
return false;
|
|
64022
64022
|
}
|
|
64023
|
-
var extension2 = extname("x." +
|
|
64023
|
+
var extension2 = extname("x." + path12).toLowerCase().substr(1);
|
|
64024
64024
|
if (!extension2) {
|
|
64025
64025
|
return false;
|
|
64026
64026
|
}
|
|
@@ -64277,7 +64277,7 @@ var require_form_data = __commonJS({
|
|
|
64277
64277
|
"../../node_modules/form-data/lib/form_data.js"(exports2, module2) {
|
|
64278
64278
|
var CombinedStream = require_combined_stream();
|
|
64279
64279
|
var util2 = __require("util");
|
|
64280
|
-
var
|
|
64280
|
+
var path12 = __require("path");
|
|
64281
64281
|
var http2 = __require("http");
|
|
64282
64282
|
var https = __require("https");
|
|
64283
64283
|
var parseUrl = __require("url").parse;
|
|
@@ -64403,11 +64403,11 @@ var require_form_data = __commonJS({
|
|
|
64403
64403
|
FormData2.prototype._getContentDisposition = function(value, options) {
|
|
64404
64404
|
var filename, contentDisposition;
|
|
64405
64405
|
if (typeof options.filepath === "string") {
|
|
64406
|
-
filename =
|
|
64406
|
+
filename = path12.normalize(options.filepath).replace(/\\/g, "/");
|
|
64407
64407
|
} else if (options.filename || value.name || value.path) {
|
|
64408
|
-
filename =
|
|
64408
|
+
filename = path12.basename(options.filename || value.name || value.path);
|
|
64409
64409
|
} else if (value.readable && value.hasOwnProperty("httpVersion")) {
|
|
64410
|
-
filename =
|
|
64410
|
+
filename = path12.basename(value.client._httpMessage.path || "");
|
|
64411
64411
|
}
|
|
64412
64412
|
if (filename) {
|
|
64413
64413
|
contentDisposition = 'filename="' + filename + '"';
|
|
@@ -66421,9 +66421,9 @@ var require_axios = __commonJS({
|
|
|
66421
66421
|
function removeBrackets(key) {
|
|
66422
66422
|
return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
66423
66423
|
}
|
|
66424
|
-
function renderKey(
|
|
66425
|
-
if (!
|
|
66426
|
-
return
|
|
66424
|
+
function renderKey(path12, key, dots) {
|
|
66425
|
+
if (!path12) return key;
|
|
66426
|
+
return path12.concat(key).map(function each(token, i) {
|
|
66427
66427
|
token = removeBrackets(token);
|
|
66428
66428
|
return !dots && i ? "[" + token + "]" : token;
|
|
66429
66429
|
}).join(dots ? "." : "");
|
|
@@ -66468,9 +66468,9 @@ var require_axios = __commonJS({
|
|
|
66468
66468
|
}
|
|
66469
66469
|
return value;
|
|
66470
66470
|
}
|
|
66471
|
-
function defaultVisitor(value, key,
|
|
66471
|
+
function defaultVisitor(value, key, path12) {
|
|
66472
66472
|
let arr = value;
|
|
66473
|
-
if (value && !
|
|
66473
|
+
if (value && !path12 && typeof value === "object") {
|
|
66474
66474
|
if (utils$1.endsWith(key, "{}")) {
|
|
66475
66475
|
key = metaTokens ? key : key.slice(0, -2);
|
|
66476
66476
|
value = JSON.stringify(value);
|
|
@@ -66489,7 +66489,7 @@ var require_axios = __commonJS({
|
|
|
66489
66489
|
if (isVisitable(value)) {
|
|
66490
66490
|
return true;
|
|
66491
66491
|
}
|
|
66492
|
-
formData.append(renderKey(
|
|
66492
|
+
formData.append(renderKey(path12, key, dots), convertValue(value));
|
|
66493
66493
|
return false;
|
|
66494
66494
|
}
|
|
66495
66495
|
const stack = [];
|
|
@@ -66498,10 +66498,10 @@ var require_axios = __commonJS({
|
|
|
66498
66498
|
convertValue,
|
|
66499
66499
|
isVisitable
|
|
66500
66500
|
});
|
|
66501
|
-
function build(value,
|
|
66501
|
+
function build(value, path12) {
|
|
66502
66502
|
if (utils$1.isUndefined(value)) return;
|
|
66503
66503
|
if (stack.indexOf(value) !== -1) {
|
|
66504
|
-
throw Error("Circular reference detected in " +
|
|
66504
|
+
throw Error("Circular reference detected in " + path12.join("."));
|
|
66505
66505
|
}
|
|
66506
66506
|
stack.push(value);
|
|
66507
66507
|
utils$1.forEach(value, function each(el, key) {
|
|
@@ -66509,11 +66509,11 @@ var require_axios = __commonJS({
|
|
|
66509
66509
|
formData,
|
|
66510
66510
|
el,
|
|
66511
66511
|
utils$1.isString(key) ? key.trim() : key,
|
|
66512
|
-
|
|
66512
|
+
path12,
|
|
66513
66513
|
exposedHelpers
|
|
66514
66514
|
);
|
|
66515
66515
|
if (result === true) {
|
|
66516
|
-
build(el,
|
|
66516
|
+
build(el, path12 ? path12.concat(key) : [key]);
|
|
66517
66517
|
}
|
|
66518
66518
|
});
|
|
66519
66519
|
stack.pop();
|
|
@@ -66682,7 +66682,7 @@ var require_axios = __commonJS({
|
|
|
66682
66682
|
};
|
|
66683
66683
|
function toURLEncodedForm(data, options) {
|
|
66684
66684
|
return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
|
|
66685
|
-
visitor: function(value, key,
|
|
66685
|
+
visitor: function(value, key, path12, helpers) {
|
|
66686
66686
|
if (platform.isNode && utils$1.isBuffer(value)) {
|
|
66687
66687
|
this.append(key, value.toString("base64"));
|
|
66688
66688
|
return false;
|
|
@@ -66709,11 +66709,11 @@ var require_axios = __commonJS({
|
|
|
66709
66709
|
return obj;
|
|
66710
66710
|
}
|
|
66711
66711
|
function formDataToJSON(formData) {
|
|
66712
|
-
function buildPath(
|
|
66713
|
-
let name =
|
|
66712
|
+
function buildPath(path12, value, target, index2) {
|
|
66713
|
+
let name = path12[index2++];
|
|
66714
66714
|
if (name === "__proto__") return true;
|
|
66715
66715
|
const isNumericKey = Number.isFinite(+name);
|
|
66716
|
-
const isLast = index2 >=
|
|
66716
|
+
const isLast = index2 >= path12.length;
|
|
66717
66717
|
name = !name && utils$1.isArray(target) ? target.length : name;
|
|
66718
66718
|
if (isLast) {
|
|
66719
66719
|
if (utils$1.hasOwnProp(target, name)) {
|
|
@@ -66726,7 +66726,7 @@ var require_axios = __commonJS({
|
|
|
66726
66726
|
if (!target[name] || !utils$1.isObject(target[name])) {
|
|
66727
66727
|
target[name] = [];
|
|
66728
66728
|
}
|
|
66729
|
-
const result = buildPath(
|
|
66729
|
+
const result = buildPath(path12, value, target[name], index2);
|
|
66730
66730
|
if (result && utils$1.isArray(target[name])) {
|
|
66731
66731
|
target[name] = arrayToObject(target[name]);
|
|
66732
66732
|
}
|
|
@@ -67784,9 +67784,9 @@ var require_axios = __commonJS({
|
|
|
67784
67784
|
auth = urlUsername + ":" + urlPassword;
|
|
67785
67785
|
}
|
|
67786
67786
|
auth && headers.delete("authorization");
|
|
67787
|
-
let
|
|
67787
|
+
let path12;
|
|
67788
67788
|
try {
|
|
67789
|
-
|
|
67789
|
+
path12 = buildURL(
|
|
67790
67790
|
parsed.pathname + parsed.search,
|
|
67791
67791
|
config.params,
|
|
67792
67792
|
config.paramsSerializer
|
|
@@ -67804,7 +67804,7 @@ var require_axios = __commonJS({
|
|
|
67804
67804
|
false
|
|
67805
67805
|
);
|
|
67806
67806
|
const options = {
|
|
67807
|
-
path:
|
|
67807
|
+
path: path12,
|
|
67808
67808
|
method,
|
|
67809
67809
|
headers: headers.toJSON(),
|
|
67810
67810
|
agents: { http: config.httpAgent, https: config.httpsAgent },
|
|
@@ -68030,10 +68030,10 @@ var require_axios = __commonJS({
|
|
|
68030
68030
|
var cookies = platform.hasStandardBrowserEnv ? (
|
|
68031
68031
|
// Standard browser envs support document.cookie
|
|
68032
68032
|
{
|
|
68033
|
-
write(name, value, expires,
|
|
68033
|
+
write(name, value, expires, path12, domain, secure) {
|
|
68034
68034
|
const cookie = [name + "=" + encodeURIComponent(value)];
|
|
68035
68035
|
utils$1.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
|
|
68036
|
-
utils$1.isString(
|
|
68036
|
+
utils$1.isString(path12) && cookie.push("path=" + path12);
|
|
68037
68037
|
utils$1.isString(domain) && cookie.push("domain=" + domain);
|
|
68038
68038
|
secure === true && cookie.push("secure");
|
|
68039
68039
|
document.cookie = cookie.join("; ");
|
|
@@ -70575,8 +70575,8 @@ var require_parseUtil = __commonJS({
|
|
|
70575
70575
|
var errors_1 = require_errors();
|
|
70576
70576
|
var en_1 = __importDefault4(require_en());
|
|
70577
70577
|
var makeIssue2 = (params) => {
|
|
70578
|
-
const { data, path:
|
|
70579
|
-
const fullPath = [...
|
|
70578
|
+
const { data, path: path12, errorMaps, issueData } = params;
|
|
70579
|
+
const fullPath = [...path12, ...issueData.path || []];
|
|
70580
70580
|
const fullIssue = {
|
|
70581
70581
|
...issueData,
|
|
70582
70582
|
path: fullPath
|
|
@@ -70742,11 +70742,11 @@ var require_types3 = __commonJS({
|
|
|
70742
70742
|
var util_1 = require_util();
|
|
70743
70743
|
var ZodError_1 = require_ZodError();
|
|
70744
70744
|
var ParseInputLazyPath2 = class {
|
|
70745
|
-
constructor(parent, value,
|
|
70745
|
+
constructor(parent, value, path12, key) {
|
|
70746
70746
|
this._cachedPath = [];
|
|
70747
70747
|
this.parent = parent;
|
|
70748
70748
|
this.data = value;
|
|
70749
|
-
this._path =
|
|
70749
|
+
this._path = path12;
|
|
70750
70750
|
this._key = key;
|
|
70751
70751
|
}
|
|
70752
70752
|
get path() {
|
|
@@ -77178,11 +77178,11 @@ var require_lodash = __commonJS({
|
|
|
77178
77178
|
return isFunction2(object[key]);
|
|
77179
77179
|
});
|
|
77180
77180
|
}
|
|
77181
|
-
function baseGet2(object,
|
|
77182
|
-
|
|
77183
|
-
var index2 = 0, length =
|
|
77181
|
+
function baseGet2(object, path12) {
|
|
77182
|
+
path12 = castPath2(path12, object);
|
|
77183
|
+
var index2 = 0, length = path12.length;
|
|
77184
77184
|
while (object != null && index2 < length) {
|
|
77185
|
-
object = object[toKey2(
|
|
77185
|
+
object = object[toKey2(path12[index2++])];
|
|
77186
77186
|
}
|
|
77187
77187
|
return index2 && index2 == length ? object : undefined2;
|
|
77188
77188
|
}
|
|
@@ -77246,10 +77246,10 @@ var require_lodash = __commonJS({
|
|
|
77246
77246
|
});
|
|
77247
77247
|
return accumulator;
|
|
77248
77248
|
}
|
|
77249
|
-
function baseInvoke(object,
|
|
77250
|
-
|
|
77251
|
-
object = parent(object,
|
|
77252
|
-
var func = object == null ? object : object[toKey2(last(
|
|
77249
|
+
function baseInvoke(object, path12, args) {
|
|
77250
|
+
path12 = castPath2(path12, object);
|
|
77251
|
+
object = parent(object, path12);
|
|
77252
|
+
var func = object == null ? object : object[toKey2(last(path12))];
|
|
77253
77253
|
return func == null ? undefined2 : apply(func, object, args);
|
|
77254
77254
|
}
|
|
77255
77255
|
function baseIsArguments2(value) {
|
|
@@ -77405,13 +77405,13 @@ var require_lodash = __commonJS({
|
|
|
77405
77405
|
return object === source || baseIsMatch2(object, source, matchData);
|
|
77406
77406
|
};
|
|
77407
77407
|
}
|
|
77408
|
-
function baseMatchesProperty2(
|
|
77409
|
-
if (isKey2(
|
|
77410
|
-
return matchesStrictComparable2(toKey2(
|
|
77408
|
+
function baseMatchesProperty2(path12, srcValue) {
|
|
77409
|
+
if (isKey2(path12) && isStrictComparable2(srcValue)) {
|
|
77410
|
+
return matchesStrictComparable2(toKey2(path12), srcValue);
|
|
77411
77411
|
}
|
|
77412
77412
|
return function(object) {
|
|
77413
|
-
var objValue = get2(object,
|
|
77414
|
-
return objValue === undefined2 && objValue === srcValue ? hasIn2(object,
|
|
77413
|
+
var objValue = get2(object, path12);
|
|
77414
|
+
return objValue === undefined2 && objValue === srcValue ? hasIn2(object, path12) : baseIsEqual2(srcValue, objValue, COMPARE_PARTIAL_FLAG7 | COMPARE_UNORDERED_FLAG5);
|
|
77415
77415
|
};
|
|
77416
77416
|
}
|
|
77417
77417
|
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
@@ -77508,23 +77508,23 @@ var require_lodash = __commonJS({
|
|
|
77508
77508
|
});
|
|
77509
77509
|
}
|
|
77510
77510
|
function basePick(object, paths) {
|
|
77511
|
-
return basePickBy(object, paths, function(value,
|
|
77512
|
-
return hasIn2(object,
|
|
77511
|
+
return basePickBy(object, paths, function(value, path12) {
|
|
77512
|
+
return hasIn2(object, path12);
|
|
77513
77513
|
});
|
|
77514
77514
|
}
|
|
77515
77515
|
function basePickBy(object, paths, predicate) {
|
|
77516
77516
|
var index2 = -1, length = paths.length, result2 = {};
|
|
77517
77517
|
while (++index2 < length) {
|
|
77518
|
-
var
|
|
77519
|
-
if (predicate(value,
|
|
77520
|
-
baseSet(result2, castPath2(
|
|
77518
|
+
var path12 = paths[index2], value = baseGet2(object, path12);
|
|
77519
|
+
if (predicate(value, path12)) {
|
|
77520
|
+
baseSet(result2, castPath2(path12, object), value);
|
|
77521
77521
|
}
|
|
77522
77522
|
}
|
|
77523
77523
|
return result2;
|
|
77524
77524
|
}
|
|
77525
|
-
function basePropertyDeep2(
|
|
77525
|
+
function basePropertyDeep2(path12) {
|
|
77526
77526
|
return function(object) {
|
|
77527
|
-
return baseGet2(object,
|
|
77527
|
+
return baseGet2(object, path12);
|
|
77528
77528
|
};
|
|
77529
77529
|
}
|
|
77530
77530
|
function basePullAll(array, values2, iteratee2, comparator) {
|
|
@@ -77598,14 +77598,14 @@ var require_lodash = __commonJS({
|
|
|
77598
77598
|
var array = values(collection);
|
|
77599
77599
|
return shuffleSelf(array, baseClamp(n, 0, array.length));
|
|
77600
77600
|
}
|
|
77601
|
-
function baseSet(object,
|
|
77601
|
+
function baseSet(object, path12, value, customizer) {
|
|
77602
77602
|
if (!isObject2(object)) {
|
|
77603
77603
|
return object;
|
|
77604
77604
|
}
|
|
77605
|
-
|
|
77606
|
-
var index2 = -1, length =
|
|
77605
|
+
path12 = castPath2(path12, object);
|
|
77606
|
+
var index2 = -1, length = path12.length, lastIndex = length - 1, nested = object;
|
|
77607
77607
|
while (nested != null && ++index2 < length) {
|
|
77608
|
-
var key = toKey2(
|
|
77608
|
+
var key = toKey2(path12[index2]), newValue = value;
|
|
77609
77609
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
77610
77610
|
return object;
|
|
77611
77611
|
}
|
|
@@ -77613,7 +77613,7 @@ var require_lodash = __commonJS({
|
|
|
77613
77613
|
var objValue = nested[key];
|
|
77614
77614
|
newValue = customizer ? customizer(objValue, key, nested) : undefined2;
|
|
77615
77615
|
if (newValue === undefined2) {
|
|
77616
|
-
newValue = isObject2(objValue) ? objValue : isIndex2(
|
|
77616
|
+
newValue = isObject2(objValue) ? objValue : isIndex2(path12[index2 + 1]) ? [] : {};
|
|
77617
77617
|
}
|
|
77618
77618
|
}
|
|
77619
77619
|
assignValue(nested, key, newValue);
|
|
@@ -77779,13 +77779,13 @@ var require_lodash = __commonJS({
|
|
|
77779
77779
|
}
|
|
77780
77780
|
return result2;
|
|
77781
77781
|
}
|
|
77782
|
-
function baseUnset(object,
|
|
77783
|
-
|
|
77784
|
-
object = parent(object,
|
|
77785
|
-
return object == null || delete object[toKey2(last(
|
|
77782
|
+
function baseUnset(object, path12) {
|
|
77783
|
+
path12 = castPath2(path12, object);
|
|
77784
|
+
object = parent(object, path12);
|
|
77785
|
+
return object == null || delete object[toKey2(last(path12))];
|
|
77786
77786
|
}
|
|
77787
|
-
function baseUpdate(object,
|
|
77788
|
-
return baseSet(object,
|
|
77787
|
+
function baseUpdate(object, path12, updater, customizer) {
|
|
77788
|
+
return baseSet(object, path12, updater(baseGet2(object, path12)), customizer);
|
|
77789
77789
|
}
|
|
77790
77790
|
function baseWhile(array, predicate, isDrop, fromRight) {
|
|
77791
77791
|
var length = array.length, index2 = fromRight ? length : -1;
|
|
@@ -78668,11 +78668,11 @@ var require_lodash = __commonJS({
|
|
|
78668
78668
|
var match2 = source.match(reWrapDetails);
|
|
78669
78669
|
return match2 ? match2[1].split(reSplitDetails) : [];
|
|
78670
78670
|
}
|
|
78671
|
-
function hasPath2(object,
|
|
78672
|
-
|
|
78673
|
-
var index2 = -1, length =
|
|
78671
|
+
function hasPath2(object, path12, hasFunc) {
|
|
78672
|
+
path12 = castPath2(path12, object);
|
|
78673
|
+
var index2 = -1, length = path12.length, result2 = false;
|
|
78674
78674
|
while (++index2 < length) {
|
|
78675
|
-
var key = toKey2(
|
|
78675
|
+
var key = toKey2(path12[index2]);
|
|
78676
78676
|
if (!(result2 = object != null && hasFunc(object, key))) {
|
|
78677
78677
|
break;
|
|
78678
78678
|
}
|
|
@@ -78874,8 +78874,8 @@ var require_lodash = __commonJS({
|
|
|
78874
78874
|
return apply(func, this, otherArgs);
|
|
78875
78875
|
};
|
|
78876
78876
|
}
|
|
78877
|
-
function parent(object,
|
|
78878
|
-
return
|
|
78877
|
+
function parent(object, path12) {
|
|
78878
|
+
return path12.length < 2 ? object : baseGet2(object, baseSlice2(path12, 0, -1));
|
|
78879
78879
|
}
|
|
78880
78880
|
function reorder(array, indexes) {
|
|
78881
78881
|
var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
|
|
@@ -79510,10 +79510,10 @@ var require_lodash = __commonJS({
|
|
|
79510
79510
|
}
|
|
79511
79511
|
return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
|
79512
79512
|
}
|
|
79513
|
-
var invokeMap = baseRest(function(collection,
|
|
79514
|
-
var index2 = -1, isFunc = typeof
|
|
79513
|
+
var invokeMap = baseRest(function(collection, path12, args) {
|
|
79514
|
+
var index2 = -1, isFunc = typeof path12 == "function", result2 = isArrayLike2(collection) ? Array2(collection.length) : [];
|
|
79515
79515
|
baseEach(collection, function(value) {
|
|
79516
|
-
result2[++index2] = isFunc ? apply(
|
|
79516
|
+
result2[++index2] = isFunc ? apply(path12, value, args) : baseInvoke(value, path12, args);
|
|
79517
79517
|
});
|
|
79518
79518
|
return result2;
|
|
79519
79519
|
});
|
|
@@ -80165,15 +80165,15 @@ var require_lodash = __commonJS({
|
|
|
80165
80165
|
function functionsIn(object) {
|
|
80166
80166
|
return object == null ? [] : baseFunctions(object, keysIn(object));
|
|
80167
80167
|
}
|
|
80168
|
-
function get2(object,
|
|
80169
|
-
var result2 = object == null ? undefined2 : baseGet2(object,
|
|
80168
|
+
function get2(object, path12, defaultValue) {
|
|
80169
|
+
var result2 = object == null ? undefined2 : baseGet2(object, path12);
|
|
80170
80170
|
return result2 === undefined2 ? defaultValue : result2;
|
|
80171
80171
|
}
|
|
80172
|
-
function has2(object,
|
|
80173
|
-
return object != null && hasPath2(object,
|
|
80172
|
+
function has2(object, path12) {
|
|
80173
|
+
return object != null && hasPath2(object, path12, baseHas);
|
|
80174
80174
|
}
|
|
80175
|
-
function hasIn2(object,
|
|
80176
|
-
return object != null && hasPath2(object,
|
|
80175
|
+
function hasIn2(object, path12) {
|
|
80176
|
+
return object != null && hasPath2(object, path12, baseHasIn2);
|
|
80177
80177
|
}
|
|
80178
80178
|
var invert2 = createInverter(function(result2, value, key) {
|
|
80179
80179
|
if (value != null && typeof value.toString != "function") {
|
|
@@ -80226,10 +80226,10 @@ var require_lodash = __commonJS({
|
|
|
80226
80226
|
return result2;
|
|
80227
80227
|
}
|
|
80228
80228
|
var isDeep = false;
|
|
80229
|
-
paths = arrayMap2(paths, function(
|
|
80230
|
-
|
|
80231
|
-
isDeep || (isDeep =
|
|
80232
|
-
return
|
|
80229
|
+
paths = arrayMap2(paths, function(path12) {
|
|
80230
|
+
path12 = castPath2(path12, object);
|
|
80231
|
+
isDeep || (isDeep = path12.length > 1);
|
|
80232
|
+
return path12;
|
|
80233
80233
|
});
|
|
80234
80234
|
copyObject(object, getAllKeysIn(object), result2);
|
|
80235
80235
|
if (isDeep) {
|
|
@@ -80255,19 +80255,19 @@ var require_lodash = __commonJS({
|
|
|
80255
80255
|
return [prop];
|
|
80256
80256
|
});
|
|
80257
80257
|
predicate = getIteratee(predicate);
|
|
80258
|
-
return basePickBy(object, props, function(value,
|
|
80259
|
-
return predicate(value,
|
|
80258
|
+
return basePickBy(object, props, function(value, path12) {
|
|
80259
|
+
return predicate(value, path12[0]);
|
|
80260
80260
|
});
|
|
80261
80261
|
}
|
|
80262
|
-
function result(object,
|
|
80263
|
-
|
|
80264
|
-
var index2 = -1, length =
|
|
80262
|
+
function result(object, path12, defaultValue) {
|
|
80263
|
+
path12 = castPath2(path12, object);
|
|
80264
|
+
var index2 = -1, length = path12.length;
|
|
80265
80265
|
if (!length) {
|
|
80266
80266
|
length = 1;
|
|
80267
80267
|
object = undefined2;
|
|
80268
80268
|
}
|
|
80269
80269
|
while (++index2 < length) {
|
|
80270
|
-
var value = object == null ? undefined2 : object[toKey2(
|
|
80270
|
+
var value = object == null ? undefined2 : object[toKey2(path12[index2])];
|
|
80271
80271
|
if (value === undefined2) {
|
|
80272
80272
|
index2 = length;
|
|
80273
80273
|
value = defaultValue;
|
|
@@ -80276,12 +80276,12 @@ var require_lodash = __commonJS({
|
|
|
80276
80276
|
}
|
|
80277
80277
|
return object;
|
|
80278
80278
|
}
|
|
80279
|
-
function set(object,
|
|
80280
|
-
return object == null ? object : baseSet(object,
|
|
80279
|
+
function set(object, path12, value) {
|
|
80280
|
+
return object == null ? object : baseSet(object, path12, value);
|
|
80281
80281
|
}
|
|
80282
|
-
function setWith(object,
|
|
80282
|
+
function setWith(object, path12, value, customizer) {
|
|
80283
80283
|
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
80284
|
-
return object == null ? object : baseSet(object,
|
|
80284
|
+
return object == null ? object : baseSet(object, path12, value, customizer);
|
|
80285
80285
|
}
|
|
80286
80286
|
var toPairs = createToPairs(keys2);
|
|
80287
80287
|
var toPairsIn = createToPairs(keysIn);
|
|
@@ -80303,15 +80303,15 @@ var require_lodash = __commonJS({
|
|
|
80303
80303
|
});
|
|
80304
80304
|
return accumulator;
|
|
80305
80305
|
}
|
|
80306
|
-
function unset(object,
|
|
80307
|
-
return object == null ? true : baseUnset(object,
|
|
80306
|
+
function unset(object, path12) {
|
|
80307
|
+
return object == null ? true : baseUnset(object, path12);
|
|
80308
80308
|
}
|
|
80309
|
-
function update(object,
|
|
80310
|
-
return object == null ? object : baseUpdate(object,
|
|
80309
|
+
function update(object, path12, updater) {
|
|
80310
|
+
return object == null ? object : baseUpdate(object, path12, castFunction(updater));
|
|
80311
80311
|
}
|
|
80312
|
-
function updateWith(object,
|
|
80312
|
+
function updateWith(object, path12, updater, customizer) {
|
|
80313
80313
|
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
80314
|
-
return object == null ? object : baseUpdate(object,
|
|
80314
|
+
return object == null ? object : baseUpdate(object, path12, castFunction(updater), customizer);
|
|
80315
80315
|
}
|
|
80316
80316
|
function values(object) {
|
|
80317
80317
|
return object == null ? [] : baseValues(object, keys2(object));
|
|
@@ -80692,17 +80692,17 @@ var require_lodash = __commonJS({
|
|
|
80692
80692
|
function matches(source) {
|
|
80693
80693
|
return baseMatches2(baseClone(source, CLONE_DEEP_FLAG));
|
|
80694
80694
|
}
|
|
80695
|
-
function matchesProperty(
|
|
80696
|
-
return baseMatchesProperty2(
|
|
80695
|
+
function matchesProperty(path12, srcValue) {
|
|
80696
|
+
return baseMatchesProperty2(path12, baseClone(srcValue, CLONE_DEEP_FLAG));
|
|
80697
80697
|
}
|
|
80698
|
-
var method = baseRest(function(
|
|
80698
|
+
var method = baseRest(function(path12, args) {
|
|
80699
80699
|
return function(object) {
|
|
80700
|
-
return baseInvoke(object,
|
|
80700
|
+
return baseInvoke(object, path12, args);
|
|
80701
80701
|
};
|
|
80702
80702
|
});
|
|
80703
80703
|
var methodOf = baseRest(function(object, args) {
|
|
80704
|
-
return function(
|
|
80705
|
-
return baseInvoke(object,
|
|
80704
|
+
return function(path12) {
|
|
80705
|
+
return baseInvoke(object, path12, args);
|
|
80706
80706
|
};
|
|
80707
80707
|
});
|
|
80708
80708
|
function mixin(object, source, options) {
|
|
@@ -80749,12 +80749,12 @@ var require_lodash = __commonJS({
|
|
|
80749
80749
|
var over = createOver(arrayMap2);
|
|
80750
80750
|
var overEvery = createOver(arrayEvery);
|
|
80751
80751
|
var overSome = createOver(arraySome2);
|
|
80752
|
-
function property2(
|
|
80753
|
-
return isKey2(
|
|
80752
|
+
function property2(path12) {
|
|
80753
|
+
return isKey2(path12) ? baseProperty2(toKey2(path12)) : basePropertyDeep2(path12);
|
|
80754
80754
|
}
|
|
80755
80755
|
function propertyOf(object) {
|
|
80756
|
-
return function(
|
|
80757
|
-
return object == null ? undefined2 : baseGet2(object,
|
|
80756
|
+
return function(path12) {
|
|
80757
|
+
return object == null ? undefined2 : baseGet2(object, path12);
|
|
80758
80758
|
};
|
|
80759
80759
|
}
|
|
80760
80760
|
var range2 = createRange();
|
|
@@ -81207,12 +81207,12 @@ var require_lodash = __commonJS({
|
|
|
81207
81207
|
LazyWrapper.prototype.findLast = function(predicate) {
|
|
81208
81208
|
return this.reverse().find(predicate);
|
|
81209
81209
|
};
|
|
81210
|
-
LazyWrapper.prototype.invokeMap = baseRest(function(
|
|
81211
|
-
if (typeof
|
|
81210
|
+
LazyWrapper.prototype.invokeMap = baseRest(function(path12, args) {
|
|
81211
|
+
if (typeof path12 == "function") {
|
|
81212
81212
|
return new LazyWrapper(this);
|
|
81213
81213
|
}
|
|
81214
81214
|
return this.map(function(value) {
|
|
81215
|
-
return baseInvoke(value,
|
|
81215
|
+
return baseInvoke(value, path12, args);
|
|
81216
81216
|
});
|
|
81217
81217
|
});
|
|
81218
81218
|
LazyWrapper.prototype.reject = function(predicate) {
|
|
@@ -102034,12 +102034,12 @@ var require_abstract_coder2 = __commonJS({
|
|
|
102034
102034
|
exports2.Result = Result;
|
|
102035
102035
|
function checkResultErrors(result) {
|
|
102036
102036
|
const errors = [];
|
|
102037
|
-
const checkErrors = function(
|
|
102037
|
+
const checkErrors = function(path12, object) {
|
|
102038
102038
|
if (!Array.isArray(object)) {
|
|
102039
102039
|
return;
|
|
102040
102040
|
}
|
|
102041
102041
|
for (let key in object) {
|
|
102042
|
-
const childPath =
|
|
102042
|
+
const childPath = path12.slice();
|
|
102043
102043
|
childPath.push(key);
|
|
102044
102044
|
try {
|
|
102045
102045
|
checkErrors(childPath, object[key]);
|
|
@@ -125479,9 +125479,9 @@ var require_provider_ipcsocket = __commonJS({
|
|
|
125479
125479
|
get socket() {
|
|
125480
125480
|
return this.#socket;
|
|
125481
125481
|
}
|
|
125482
|
-
constructor(
|
|
125482
|
+
constructor(path12, network, options) {
|
|
125483
125483
|
super(network, options);
|
|
125484
|
-
this.#socket = (0, net_1.connect)(
|
|
125484
|
+
this.#socket = (0, net_1.connect)(path12);
|
|
125485
125485
|
this.socket.on("ready", async () => {
|
|
125486
125486
|
try {
|
|
125487
125487
|
await this._start();
|
|
@@ -126792,11 +126792,11 @@ var require_utils11 = __commonJS({
|
|
|
126792
126792
|
function spelunk(object, _path) {
|
|
126793
126793
|
const match2 = _path.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);
|
|
126794
126794
|
(0, index_js_1.assertArgument)(match2 != null, "invalid path", "path", _path);
|
|
126795
|
-
const
|
|
126795
|
+
const path12 = match2[1];
|
|
126796
126796
|
const type = match2[3];
|
|
126797
126797
|
const reqd = match2[4] === "!";
|
|
126798
126798
|
let cur = object;
|
|
126799
|
-
for (const comp of
|
|
126799
|
+
for (const comp of path12.toLowerCase().split(".")) {
|
|
126800
126800
|
if (Array.isArray(cur)) {
|
|
126801
126801
|
if (!comp.match(/^[0-9]+$/)) {
|
|
126802
126802
|
break;
|
|
@@ -126818,7 +126818,7 @@ var require_utils11 = __commonJS({
|
|
|
126818
126818
|
break;
|
|
126819
126819
|
}
|
|
126820
126820
|
}
|
|
126821
|
-
(0, index_js_1.assertArgument)(!reqd || cur != null, "missing required value", "path",
|
|
126821
|
+
(0, index_js_1.assertArgument)(!reqd || cur != null, "missing required value", "path", path12);
|
|
126822
126822
|
if (type && cur != null) {
|
|
126823
126823
|
if (type === "int") {
|
|
126824
126824
|
if (typeof cur === "string" && cur.match(/^-?[0-9]+$/)) {
|
|
@@ -126843,7 +126843,7 @@ var require_utils11 = __commonJS({
|
|
|
126843
126843
|
if (type === typeof cur) {
|
|
126844
126844
|
return cur;
|
|
126845
126845
|
}
|
|
126846
|
-
(0, index_js_1.assertArgument)(false, `wrong type found for ${type} `, "path",
|
|
126846
|
+
(0, index_js_1.assertArgument)(false, `wrong type found for ${type} `, "path", path12);
|
|
126847
126847
|
}
|
|
126848
126848
|
return cur;
|
|
126849
126849
|
}
|
|
@@ -127041,7 +127041,7 @@ var require_json_keystore = __commonJS({
|
|
|
127041
127041
|
};
|
|
127042
127042
|
if (account.mnemonic) {
|
|
127043
127043
|
const client = options.client != null ? options.client : `ethers/${_version_js_1.version}`;
|
|
127044
|
-
const
|
|
127044
|
+
const path12 = account.mnemonic.path || defaultPath;
|
|
127045
127045
|
const locale = account.mnemonic.locale || "en";
|
|
127046
127046
|
const mnemonicKey = key.slice(32, 64);
|
|
127047
127047
|
const entropy = (0, index_js_4.getBytes)(account.mnemonic.entropy, "account.mnemonic.entropy");
|
|
@@ -127054,7 +127054,7 @@ var require_json_keystore = __commonJS({
|
|
|
127054
127054
|
data["x-ethers"] = {
|
|
127055
127055
|
client,
|
|
127056
127056
|
gethFilename,
|
|
127057
|
-
path:
|
|
127057
|
+
path: path12,
|
|
127058
127058
|
locale,
|
|
127059
127059
|
mnemonicCounter: (0, index_js_4.hexlify)(mnemonicIv).substring(2),
|
|
127060
127060
|
mnemonicCiphertext: (0, index_js_4.hexlify)(mnemonicCiphertext).substring(2),
|
|
@@ -127139,11 +127139,11 @@ var require_hdwallet = __commonJS({
|
|
|
127139
127139
|
const I = (0, index_js_4.getBytes)((0, index_js_1.computeHmac)("sha512", chainCode, data));
|
|
127140
127140
|
return { IL: I.slice(0, 32), IR: I.slice(32) };
|
|
127141
127141
|
}
|
|
127142
|
-
function derivePath(node,
|
|
127143
|
-
const components =
|
|
127144
|
-
(0, index_js_4.assertArgument)(components.length > 0, "invalid path", "path",
|
|
127142
|
+
function derivePath(node, path12) {
|
|
127143
|
+
const components = path12.split("/");
|
|
127144
|
+
(0, index_js_4.assertArgument)(components.length > 0, "invalid path", "path", path12);
|
|
127145
127145
|
if (components[0] === "m") {
|
|
127146
|
-
(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",
|
|
127146
|
+
(0, index_js_4.assertArgument)(node.depth === 0, `cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${node.depth}`, "path", path12);
|
|
127147
127147
|
components.shift();
|
|
127148
127148
|
}
|
|
127149
127149
|
let result = node;
|
|
@@ -127213,7 +127213,7 @@ var require_hdwallet = __commonJS({
|
|
|
127213
127213
|
/**
|
|
127214
127214
|
* @private
|
|
127215
127215
|
*/
|
|
127216
|
-
constructor(guard, signingKey, parentFingerprint, chainCode,
|
|
127216
|
+
constructor(guard, signingKey, parentFingerprint, chainCode, path12, index2, depth, mnemonic, provider) {
|
|
127217
127217
|
super(signingKey, provider);
|
|
127218
127218
|
(0, index_js_4.assertPrivate)(guard, _guard, "HDNodeWallet");
|
|
127219
127219
|
(0, index_js_4.defineProperties)(this, { publicKey: signingKey.compressedPublicKey });
|
|
@@ -127222,7 +127222,7 @@ var require_hdwallet = __commonJS({
|
|
|
127222
127222
|
parentFingerprint,
|
|
127223
127223
|
fingerprint,
|
|
127224
127224
|
chainCode,
|
|
127225
|
-
path:
|
|
127225
|
+
path: path12,
|
|
127226
127226
|
index: index2,
|
|
127227
127227
|
depth
|
|
127228
127228
|
});
|
|
@@ -127306,22 +127306,22 @@ var require_hdwallet = __commonJS({
|
|
|
127306
127306
|
deriveChild(_index) {
|
|
127307
127307
|
const index2 = (0, index_js_4.getNumber)(_index, "index");
|
|
127308
127308
|
(0, index_js_4.assertArgument)(index2 <= 4294967295, "invalid index", "index", index2);
|
|
127309
|
-
let
|
|
127310
|
-
if (
|
|
127311
|
-
|
|
127309
|
+
let path12 = this.path;
|
|
127310
|
+
if (path12) {
|
|
127311
|
+
path12 += "/" + (index2 & ~HardenedBit);
|
|
127312
127312
|
if (index2 & HardenedBit) {
|
|
127313
|
-
|
|
127313
|
+
path12 += "'";
|
|
127314
127314
|
}
|
|
127315
127315
|
}
|
|
127316
127316
|
const { IR, IL } = ser_I(index2, this.chainCode, this.publicKey, this.privateKey);
|
|
127317
127317
|
const ki = new index_js_1.SigningKey((0, index_js_4.toBeHex)(((0, index_js_4.toBigInt)(IL) + BigInt(this.privateKey)) % N, 32));
|
|
127318
|
-
return new _HDNodeWallet(_guard, ki, this.fingerprint, (0, index_js_4.hexlify)(IR),
|
|
127318
|
+
return new _HDNodeWallet(_guard, ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path12, index2, this.depth + 1, this.mnemonic, this.provider);
|
|
127319
127319
|
}
|
|
127320
127320
|
/**
|
|
127321
127321
|
* Return the HDNode for %%path%% from this node.
|
|
127322
127322
|
*/
|
|
127323
|
-
derivePath(
|
|
127324
|
-
return derivePath(this,
|
|
127323
|
+
derivePath(path12) {
|
|
127324
|
+
return derivePath(this, path12);
|
|
127325
127325
|
}
|
|
127326
127326
|
static #fromSeed(_seed, mnemonic) {
|
|
127327
127327
|
(0, index_js_4.assertArgument)((0, index_js_4.isBytesLike)(_seed), "invalid seed", "seed", "[REDACTED]");
|
|
@@ -127366,43 +127366,43 @@ var require_hdwallet = __commonJS({
|
|
|
127366
127366
|
/**
|
|
127367
127367
|
* Creates a new random HDNode.
|
|
127368
127368
|
*/
|
|
127369
|
-
static createRandom(password,
|
|
127369
|
+
static createRandom(password, path12, wordlist) {
|
|
127370
127370
|
if (password == null) {
|
|
127371
127371
|
password = "";
|
|
127372
127372
|
}
|
|
127373
|
-
if (
|
|
127374
|
-
|
|
127373
|
+
if (path12 == null) {
|
|
127374
|
+
path12 = exports2.defaultPath;
|
|
127375
127375
|
}
|
|
127376
127376
|
if (wordlist == null) {
|
|
127377
127377
|
wordlist = lang_en_js_1.LangEn.wordlist();
|
|
127378
127378
|
}
|
|
127379
127379
|
const mnemonic = mnemonic_js_1.Mnemonic.fromEntropy((0, index_js_1.randomBytes)(16), password, wordlist);
|
|
127380
|
-
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(
|
|
127380
|
+
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path12);
|
|
127381
127381
|
}
|
|
127382
127382
|
/**
|
|
127383
127383
|
* Create an HD Node from %%mnemonic%%.
|
|
127384
127384
|
*/
|
|
127385
|
-
static fromMnemonic(mnemonic,
|
|
127386
|
-
if (!
|
|
127387
|
-
|
|
127385
|
+
static fromMnemonic(mnemonic, path12) {
|
|
127386
|
+
if (!path12) {
|
|
127387
|
+
path12 = exports2.defaultPath;
|
|
127388
127388
|
}
|
|
127389
|
-
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(
|
|
127389
|
+
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path12);
|
|
127390
127390
|
}
|
|
127391
127391
|
/**
|
|
127392
127392
|
* Creates an HD Node from a mnemonic %%phrase%%.
|
|
127393
127393
|
*/
|
|
127394
|
-
static fromPhrase(phrase, password,
|
|
127394
|
+
static fromPhrase(phrase, password, path12, wordlist) {
|
|
127395
127395
|
if (password == null) {
|
|
127396
127396
|
password = "";
|
|
127397
127397
|
}
|
|
127398
|
-
if (
|
|
127399
|
-
|
|
127398
|
+
if (path12 == null) {
|
|
127399
|
+
path12 = exports2.defaultPath;
|
|
127400
127400
|
}
|
|
127401
127401
|
if (wordlist == null) {
|
|
127402
127402
|
wordlist = lang_en_js_1.LangEn.wordlist();
|
|
127403
127403
|
}
|
|
127404
127404
|
const mnemonic = mnemonic_js_1.Mnemonic.fromPhrase(phrase, password, wordlist);
|
|
127405
|
-
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(
|
|
127405
|
+
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path12);
|
|
127406
127406
|
}
|
|
127407
127407
|
/**
|
|
127408
127408
|
* Creates an HD Node from a %%seed%%.
|
|
@@ -127455,7 +127455,7 @@ var require_hdwallet = __commonJS({
|
|
|
127455
127455
|
/**
|
|
127456
127456
|
* @private
|
|
127457
127457
|
*/
|
|
127458
|
-
constructor(guard, address, publicKey, parentFingerprint, chainCode,
|
|
127458
|
+
constructor(guard, address, publicKey, parentFingerprint, chainCode, path12, index2, depth, provider) {
|
|
127459
127459
|
super(address, provider);
|
|
127460
127460
|
(0, index_js_4.assertPrivate)(guard, _guard, "HDNodeVoidWallet");
|
|
127461
127461
|
(0, index_js_4.defineProperties)(this, { publicKey });
|
|
@@ -127465,7 +127465,7 @@ var require_hdwallet = __commonJS({
|
|
|
127465
127465
|
fingerprint,
|
|
127466
127466
|
parentFingerprint,
|
|
127467
127467
|
chainCode,
|
|
127468
|
-
path:
|
|
127468
|
+
path: path12,
|
|
127469
127469
|
index: index2,
|
|
127470
127470
|
depth
|
|
127471
127471
|
});
|
|
@@ -127503,23 +127503,23 @@ var require_hdwallet = __commonJS({
|
|
|
127503
127503
|
deriveChild(_index) {
|
|
127504
127504
|
const index2 = (0, index_js_4.getNumber)(_index, "index");
|
|
127505
127505
|
(0, index_js_4.assertArgument)(index2 <= 4294967295, "invalid index", "index", index2);
|
|
127506
|
-
let
|
|
127507
|
-
if (
|
|
127508
|
-
|
|
127506
|
+
let path12 = this.path;
|
|
127507
|
+
if (path12) {
|
|
127508
|
+
path12 += "/" + (index2 & ~HardenedBit);
|
|
127509
127509
|
if (index2 & HardenedBit) {
|
|
127510
|
-
|
|
127510
|
+
path12 += "'";
|
|
127511
127511
|
}
|
|
127512
127512
|
}
|
|
127513
127513
|
const { IR, IL } = ser_I(index2, this.chainCode, this.publicKey, null);
|
|
127514
127514
|
const Ki = index_js_1.SigningKey.addPoints(IL, this.publicKey, true);
|
|
127515
127515
|
const address = (0, index_js_3.computeAddress)(Ki);
|
|
127516
|
-
return new _HDNodeVoidWallet(_guard, address, Ki, this.fingerprint, (0, index_js_4.hexlify)(IR),
|
|
127516
|
+
return new _HDNodeVoidWallet(_guard, address, Ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path12, index2, this.depth + 1, this.provider);
|
|
127517
127517
|
}
|
|
127518
127518
|
/**
|
|
127519
127519
|
* Return the signer for %%path%% from this node.
|
|
127520
127520
|
*/
|
|
127521
|
-
derivePath(
|
|
127522
|
-
return derivePath(this,
|
|
127521
|
+
derivePath(path12) {
|
|
127522
|
+
return derivePath(this, path12);
|
|
127523
127523
|
}
|
|
127524
127524
|
};
|
|
127525
127525
|
exports2.HDNodeVoidWallet = HDNodeVoidWallet;
|
|
@@ -134357,8 +134357,8 @@ var require_req = __commonJS({
|
|
|
134357
134357
|
if (req.originalUrl) {
|
|
134358
134358
|
_req.url = req.originalUrl;
|
|
134359
134359
|
} else {
|
|
134360
|
-
const
|
|
134361
|
-
_req.url = typeof
|
|
134360
|
+
const path12 = req.path;
|
|
134361
|
+
_req.url = typeof path12 === "string" ? path12 : req.url ? req.url.path || req.url : void 0;
|
|
134362
134362
|
}
|
|
134363
134363
|
if (req.query) {
|
|
134364
134364
|
_req.query = req.query;
|
|
@@ -134547,17 +134547,17 @@ var require_parse = __commonJS({
|
|
|
134547
134547
|
const wildcards = [];
|
|
134548
134548
|
var wcLen = 0;
|
|
134549
134549
|
const secret = paths.reduce(function(o, strPath, ix) {
|
|
134550
|
-
var
|
|
134550
|
+
var path12 = strPath.match(rx).map((p) => p.replace(/'|"|`/g, ""));
|
|
134551
134551
|
const leadingBracket = strPath[0] === "[";
|
|
134552
|
-
|
|
134552
|
+
path12 = path12.map((p) => {
|
|
134553
134553
|
if (p[0] === "[") return p.substr(1, p.length - 2);
|
|
134554
134554
|
else return p;
|
|
134555
134555
|
});
|
|
134556
|
-
const star =
|
|
134556
|
+
const star = path12.indexOf("*");
|
|
134557
134557
|
if (star > -1) {
|
|
134558
|
-
const before =
|
|
134558
|
+
const before = path12.slice(0, star);
|
|
134559
134559
|
const beforeStr = before.join(".");
|
|
134560
|
-
const after =
|
|
134560
|
+
const after = path12.slice(star + 1, path12.length);
|
|
134561
134561
|
const nested = after.length > 0;
|
|
134562
134562
|
wcLen++;
|
|
134563
134563
|
wildcards.push({
|
|
@@ -134568,7 +134568,7 @@ var require_parse = __commonJS({
|
|
|
134568
134568
|
});
|
|
134569
134569
|
} else {
|
|
134570
134570
|
o[strPath] = {
|
|
134571
|
-
path:
|
|
134571
|
+
path: path12,
|
|
134572
134572
|
val: void 0,
|
|
134573
134573
|
precensored: false,
|
|
134574
134574
|
circle: "",
|
|
@@ -134614,20 +134614,20 @@ var require_redactor = __commonJS({
|
|
|
134614
134614
|
return redact;
|
|
134615
134615
|
}
|
|
134616
134616
|
function redactTmpl(secret, isCensorFct, censorFctTakesPath) {
|
|
134617
|
-
return Object.keys(secret).map((
|
|
134618
|
-
const { escPath, leadingBracket, path: arrPath } = secret[
|
|
134617
|
+
return Object.keys(secret).map((path12) => {
|
|
134618
|
+
const { escPath, leadingBracket, path: arrPath } = secret[path12];
|
|
134619
134619
|
const skip = leadingBracket ? 1 : 0;
|
|
134620
134620
|
const delim = leadingBracket ? "" : ".";
|
|
134621
134621
|
const hops = [];
|
|
134622
134622
|
var match2;
|
|
134623
|
-
while ((match2 = rx.exec(
|
|
134623
|
+
while ((match2 = rx.exec(path12)) !== null) {
|
|
134624
134624
|
const [, ix] = match2;
|
|
134625
134625
|
const { index: index2, input } = match2;
|
|
134626
134626
|
if (index2 > skip) hops.push(input.substring(0, index2 - (ix ? 0 : 1)));
|
|
134627
134627
|
}
|
|
134628
134628
|
var existence = hops.map((p) => `o${delim}${p}`).join(" && ");
|
|
134629
|
-
if (existence.length === 0) existence += `o${delim}${
|
|
134630
|
-
else existence += ` && o${delim}${
|
|
134629
|
+
if (existence.length === 0) existence += `o${delim}${path12} != null`;
|
|
134630
|
+
else existence += ` && o${delim}${path12} != null`;
|
|
134631
134631
|
const circularDetection = `
|
|
134632
134632
|
switch (true) {
|
|
134633
134633
|
${hops.reverse().map((p) => `
|
|
@@ -134640,12 +134640,12 @@ var require_redactor = __commonJS({
|
|
|
134640
134640
|
const censorArgs = censorFctTakesPath ? `val, ${JSON.stringify(arrPath)}` : `val`;
|
|
134641
134641
|
return `
|
|
134642
134642
|
if (${existence}) {
|
|
134643
|
-
const val = o${delim}${
|
|
134643
|
+
const val = o${delim}${path12}
|
|
134644
134644
|
if (val === censor) {
|
|
134645
134645
|
secret[${escPath}].precensored = true
|
|
134646
134646
|
} else {
|
|
134647
134647
|
secret[${escPath}].val = val
|
|
134648
|
-
o${delim}${
|
|
134648
|
+
o${delim}${path12} = ${isCensorFct ? `censor(${censorArgs})` : "censor"}
|
|
134649
134649
|
${circularDetection}
|
|
134650
134650
|
}
|
|
134651
134651
|
}
|
|
@@ -134697,13 +134697,13 @@ var require_modifiers = __commonJS({
|
|
|
134697
134697
|
target[k] = values[i];
|
|
134698
134698
|
}
|
|
134699
134699
|
}
|
|
134700
|
-
function groupRedact(o,
|
|
134701
|
-
const target = get2(o,
|
|
134700
|
+
function groupRedact(o, path12, censor, isCensorFct, censorFctTakesPath) {
|
|
134701
|
+
const target = get2(o, path12);
|
|
134702
134702
|
if (target == null || typeof target === "string") return { keys: null, values: null, target, flat: true };
|
|
134703
134703
|
const keys2 = Object.keys(target);
|
|
134704
134704
|
const keysLength = keys2.length;
|
|
134705
|
-
const pathLength =
|
|
134706
|
-
const pathWithKey = censorFctTakesPath ? [...
|
|
134705
|
+
const pathLength = path12.length;
|
|
134706
|
+
const pathWithKey = censorFctTakesPath ? [...path12] : void 0;
|
|
134707
134707
|
const values = new Array(keysLength);
|
|
134708
134708
|
for (var i = 0; i < keysLength; i++) {
|
|
134709
134709
|
const key = keys2[i];
|
|
@@ -134721,29 +134721,29 @@ var require_modifiers = __commonJS({
|
|
|
134721
134721
|
}
|
|
134722
134722
|
function nestedRestore(instructions) {
|
|
134723
134723
|
for (let i = 0; i < instructions.length; i++) {
|
|
134724
|
-
const { target, path:
|
|
134724
|
+
const { target, path: path12, value } = instructions[i];
|
|
134725
134725
|
let current = target;
|
|
134726
|
-
for (let i2 =
|
|
134727
|
-
current = current[
|
|
134726
|
+
for (let i2 = path12.length - 1; i2 > 0; i2--) {
|
|
134727
|
+
current = current[path12[i2]];
|
|
134728
134728
|
}
|
|
134729
|
-
current[
|
|
134729
|
+
current[path12[0]] = value;
|
|
134730
134730
|
}
|
|
134731
134731
|
}
|
|
134732
|
-
function nestedRedact(store, o,
|
|
134733
|
-
const target = get2(o,
|
|
134732
|
+
function nestedRedact(store, o, path12, ns, censor, isCensorFct, censorFctTakesPath) {
|
|
134733
|
+
const target = get2(o, path12);
|
|
134734
134734
|
if (target == null) return;
|
|
134735
134735
|
const keys2 = Object.keys(target);
|
|
134736
134736
|
const keysLength = keys2.length;
|
|
134737
134737
|
for (var i = 0; i < keysLength; i++) {
|
|
134738
134738
|
const key = keys2[i];
|
|
134739
|
-
specialSet(store, target, key,
|
|
134739
|
+
specialSet(store, target, key, path12, ns, censor, isCensorFct, censorFctTakesPath);
|
|
134740
134740
|
}
|
|
134741
134741
|
return store;
|
|
134742
134742
|
}
|
|
134743
134743
|
function has2(obj, prop) {
|
|
134744
134744
|
return obj !== void 0 && obj !== null ? "hasOwn" in Object ? Object.hasOwn(obj, prop) : Object.prototype.hasOwnProperty.call(obj, prop) : false;
|
|
134745
134745
|
}
|
|
134746
|
-
function specialSet(store, o, k,
|
|
134746
|
+
function specialSet(store, o, k, path12, afterPath, censor, isCensorFct, censorFctTakesPath) {
|
|
134747
134747
|
const afterPathLen = afterPath.length;
|
|
134748
134748
|
const lastPathIndex = afterPathLen - 1;
|
|
134749
134749
|
const originalKey = k;
|
|
@@ -134786,7 +134786,7 @@ var require_modifiers = __commonJS({
|
|
|
134786
134786
|
if (consecutive) {
|
|
134787
134787
|
redactPathCurrent = node(redactPathCurrent, wck, depth);
|
|
134788
134788
|
level = i;
|
|
134789
|
-
ov = iterateNthLevel(wcov, level - 1, k,
|
|
134789
|
+
ov = iterateNthLevel(wcov, level - 1, k, path12, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, o[originalKey], depth + 1);
|
|
134790
134790
|
} else {
|
|
134791
134791
|
if (kIsWc || typeof wcov === "object" && wcov !== null && k in wcov) {
|
|
134792
134792
|
if (kIsWc) {
|
|
@@ -134794,7 +134794,7 @@ var require_modifiers = __commonJS({
|
|
|
134794
134794
|
} else {
|
|
134795
134795
|
ov = wcov[k];
|
|
134796
134796
|
}
|
|
134797
|
-
nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...
|
|
134797
|
+
nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...path12, originalKey, ...afterPath]) : censor(ov) : censor;
|
|
134798
134798
|
if (kIsWc) {
|
|
134799
134799
|
const rv = restoreInstr(node(redactPathCurrent, wck, depth), ov, o[originalKey]);
|
|
134800
134800
|
store.push(rv);
|
|
@@ -134817,7 +134817,7 @@ var require_modifiers = __commonJS({
|
|
|
134817
134817
|
} else {
|
|
134818
134818
|
ov = n[k];
|
|
134819
134819
|
redactPathCurrent = node(redactPathCurrent, k, depth);
|
|
134820
|
-
nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...
|
|
134820
|
+
nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...path12, originalKey, ...afterPath]) : censor(ov) : censor;
|
|
134821
134821
|
if (has2(n, k) && nv === ov || nv === void 0 && censor !== void 0) {
|
|
134822
134822
|
} else {
|
|
134823
134823
|
const rv = restoreInstr(redactPathCurrent, ov, o[originalKey]);
|
|
@@ -134840,7 +134840,7 @@ var require_modifiers = __commonJS({
|
|
|
134840
134840
|
}
|
|
134841
134841
|
return n;
|
|
134842
134842
|
}
|
|
134843
|
-
function iterateNthLevel(wcov, level, k,
|
|
134843
|
+
function iterateNthLevel(wcov, level, k, path12, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, parent, depth) {
|
|
134844
134844
|
if (level === 0) {
|
|
134845
134845
|
if (kIsWc || typeof wcov === "object" && wcov !== null && k in wcov) {
|
|
134846
134846
|
if (kIsWc) {
|
|
@@ -134848,7 +134848,7 @@ var require_modifiers = __commonJS({
|
|
|
134848
134848
|
} else {
|
|
134849
134849
|
ov = wcov[k];
|
|
134850
134850
|
}
|
|
134851
|
-
nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...
|
|
134851
|
+
nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...path12, originalKey, ...afterPath]) : censor(ov) : censor;
|
|
134852
134852
|
if (kIsWc) {
|
|
134853
134853
|
const rv = restoreInstr(redactPathCurrent, ov, parent);
|
|
134854
134854
|
store.push(rv);
|
|
@@ -134867,7 +134867,7 @@ var require_modifiers = __commonJS({
|
|
|
134867
134867
|
for (const key in wcov) {
|
|
134868
134868
|
if (typeof wcov[key] === "object") {
|
|
134869
134869
|
redactPathCurrent = node(redactPathCurrent, key, depth);
|
|
134870
|
-
iterateNthLevel(wcov[key], level - 1, k,
|
|
134870
|
+
iterateNthLevel(wcov[key], level - 1, k, path12, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, parent, depth + 1);
|
|
134871
134871
|
}
|
|
134872
134872
|
}
|
|
134873
134873
|
}
|
|
@@ -134889,12 +134889,12 @@ var require_modifiers = __commonJS({
|
|
|
134889
134889
|
}
|
|
134890
134890
|
function restoreInstr(node2, value, target) {
|
|
134891
134891
|
let current = node2;
|
|
134892
|
-
const
|
|
134892
|
+
const path12 = [];
|
|
134893
134893
|
do {
|
|
134894
|
-
|
|
134894
|
+
path12.push(current.key);
|
|
134895
134895
|
current = current.parent;
|
|
134896
134896
|
} while (current.parent != null);
|
|
134897
|
-
return { path:
|
|
134897
|
+
return { path: path12, value, target };
|
|
134898
134898
|
}
|
|
134899
134899
|
}
|
|
134900
134900
|
});
|
|
@@ -134924,10 +134924,10 @@ var require_restorer = __commonJS({
|
|
|
134924
134924
|
};
|
|
134925
134925
|
}
|
|
134926
134926
|
function resetTmpl(secret, paths) {
|
|
134927
|
-
return paths.map((
|
|
134928
|
-
const { circle, escPath, leadingBracket } = secret[
|
|
134927
|
+
return paths.map((path12) => {
|
|
134928
|
+
const { circle, escPath, leadingBracket } = secret[path12];
|
|
134929
134929
|
const delim = leadingBracket ? "" : ".";
|
|
134930
|
-
const reset2 = circle ? `o.${circle} = secret[${escPath}].val` : `o${delim}${
|
|
134930
|
+
const reset2 = circle ? `o.${circle} = secret[${escPath}].val` : `o${delim}${path12} = secret[${escPath}].val`;
|
|
134931
134931
|
const clear = `secret[${escPath}].val = undefined`;
|
|
134932
134932
|
return `
|
|
134933
134933
|
if (secret[${escPath}].val !== undefined) {
|
|
@@ -135159,8 +135159,8 @@ var require_redaction = __commonJS({
|
|
|
135159
135159
|
if (shape[k] === null) {
|
|
135160
135160
|
o[k] = (value) => topCensor(value, [k]);
|
|
135161
135161
|
} else {
|
|
135162
|
-
const wrappedCensor = typeof censor === "function" ? (value,
|
|
135163
|
-
return censor(value, [k, ...
|
|
135162
|
+
const wrappedCensor = typeof censor === "function" ? (value, path12) => {
|
|
135163
|
+
return censor(value, [k, ...path12]);
|
|
135164
135164
|
} : censor;
|
|
135165
135165
|
o[k] = fastRedact({
|
|
135166
135166
|
paths: shape[k],
|
|
@@ -135363,7 +135363,7 @@ var require_sonic_boom = __commonJS({
|
|
|
135363
135363
|
var fs3 = __require("fs");
|
|
135364
135364
|
var EventEmitter = __require("events");
|
|
135365
135365
|
var inherits = __require("util").inherits;
|
|
135366
|
-
var
|
|
135366
|
+
var path12 = __require("path");
|
|
135367
135367
|
var sleep = require_atomic_sleep();
|
|
135368
135368
|
var assert3 = __require("assert");
|
|
135369
135369
|
var BUSY_WRITE_TIMEOUT = 100;
|
|
@@ -135417,7 +135417,7 @@ var require_sonic_boom = __commonJS({
|
|
|
135417
135417
|
const mode = sonic2.mode;
|
|
135418
135418
|
if (sonic2.sync) {
|
|
135419
135419
|
try {
|
|
135420
|
-
if (sonic2.mkdir) fs3.mkdirSync(
|
|
135420
|
+
if (sonic2.mkdir) fs3.mkdirSync(path12.dirname(file), { recursive: true });
|
|
135421
135421
|
const fd = fs3.openSync(file, flags, mode);
|
|
135422
135422
|
fileOpened(null, fd);
|
|
135423
135423
|
} catch (err) {
|
|
@@ -135425,7 +135425,7 @@ var require_sonic_boom = __commonJS({
|
|
|
135425
135425
|
throw err;
|
|
135426
135426
|
}
|
|
135427
135427
|
} else if (sonic2.mkdir) {
|
|
135428
|
-
fs3.mkdir(
|
|
135428
|
+
fs3.mkdir(path12.dirname(file), { recursive: true }, (err) => {
|
|
135429
135429
|
if (err) return fileOpened(err);
|
|
135430
135430
|
fs3.open(file, flags, mode, fileOpened);
|
|
135431
135431
|
});
|
|
@@ -142815,11 +142815,11 @@ var require_soljson = __commonJS({
|
|
|
142815
142815
|
var ENVIRONMENT_IS_WORKER = typeof importScripts == "function";
|
|
142816
142816
|
var ENVIRONMENT_IS_NODE = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string";
|
|
142817
142817
|
var scriptDirectory = "";
|
|
142818
|
-
function locateFile(
|
|
142818
|
+
function locateFile(path12) {
|
|
142819
142819
|
if (Module["locateFile"]) {
|
|
142820
|
-
return Module["locateFile"](
|
|
142820
|
+
return Module["locateFile"](path12, scriptDirectory);
|
|
142821
142821
|
}
|
|
142822
|
-
return scriptDirectory +
|
|
142822
|
+
return scriptDirectory + path12;
|
|
142823
142823
|
}
|
|
142824
142824
|
var read_;
|
|
142825
142825
|
var readAsync;
|
|
@@ -143610,7 +143610,7 @@ var require_soljson = __commonJS({
|
|
|
143610
143610
|
var ret = UTF8ToString(ptr);
|
|
143611
143611
|
return ret;
|
|
143612
143612
|
} };
|
|
143613
|
-
function ___syscall_faccessat(dirfd,
|
|
143613
|
+
function ___syscall_faccessat(dirfd, path12, amode, flags) {
|
|
143614
143614
|
}
|
|
143615
143615
|
function ___syscall_fcntl64(fd, cmd, varargs) {
|
|
143616
143616
|
SYSCALLS.varargs = varargs;
|
|
@@ -143620,10 +143620,10 @@ var require_soljson = __commonJS({
|
|
|
143620
143620
|
SYSCALLS.varargs = varargs;
|
|
143621
143621
|
return 0;
|
|
143622
143622
|
}
|
|
143623
|
-
function ___syscall_openat(dirfd,
|
|
143623
|
+
function ___syscall_openat(dirfd, path12, flags, varargs) {
|
|
143624
143624
|
SYSCALLS.varargs = varargs;
|
|
143625
143625
|
}
|
|
143626
|
-
function ___syscall_stat64(
|
|
143626
|
+
function ___syscall_stat64(path12, buf) {
|
|
143627
143627
|
}
|
|
143628
143628
|
function __emscripten_date_now() {
|
|
143629
143629
|
return Date.now();
|
|
@@ -145552,9 +145552,9 @@ var require_filesystem = __commonJS({
|
|
|
145552
145552
|
"use strict";
|
|
145553
145553
|
var fs3 = __require("fs");
|
|
145554
145554
|
var LDD_PATH = "/usr/bin/ldd";
|
|
145555
|
-
var readFileSync = (
|
|
145556
|
-
var readFile10 = (
|
|
145557
|
-
fs3.readFile(
|
|
145555
|
+
var readFileSync = (path12) => fs3.readFileSync(path12, "utf-8");
|
|
145556
|
+
var readFile10 = (path12) => new Promise((resolve2, reject) => {
|
|
145557
|
+
fs3.readFile(path12, "utf-8", (err, data) => {
|
|
145558
145558
|
if (err) {
|
|
145559
145559
|
reject(err);
|
|
145560
145560
|
} else {
|
|
@@ -145784,7 +145784,7 @@ var require_detect_libc = __commonJS({
|
|
|
145784
145784
|
var require_node_gyp_build_optional_packages = __commonJS({
|
|
145785
145785
|
"../../node_modules/node-gyp-build-optional-packages/index.js"(exports2, module2) {
|
|
145786
145786
|
var fs3 = __require("fs");
|
|
145787
|
-
var
|
|
145787
|
+
var path12 = __require("path");
|
|
145788
145788
|
var url = __require("url");
|
|
145789
145789
|
var vars = process.config && process.config.variables || {};
|
|
145790
145790
|
var prebuildsOnly = !!process.env.PREBUILDS_ONLY;
|
|
@@ -145807,30 +145807,30 @@ var require_node_gyp_build_optional_packages = __commonJS({
|
|
|
145807
145807
|
return __require(load.path(dir));
|
|
145808
145808
|
}
|
|
145809
145809
|
load.path = function(dir) {
|
|
145810
|
-
dir =
|
|
145810
|
+
dir = path12.resolve(dir || ".");
|
|
145811
145811
|
var packageName = "";
|
|
145812
145812
|
try {
|
|
145813
145813
|
if (typeof __webpack_require__ === "function")
|
|
145814
|
-
packageName = __non_webpack_require__(
|
|
145814
|
+
packageName = __non_webpack_require__(path12.join(dir, "package.json")).name;
|
|
145815
145815
|
else
|
|
145816
|
-
packageName = __require(
|
|
145816
|
+
packageName = __require(path12.join(dir, "package.json")).name;
|
|
145817
145817
|
var varName = packageName.toUpperCase().replace(/-/g, "_") + "_PREBUILD";
|
|
145818
145818
|
if (process.env[varName]) dir = process.env[varName];
|
|
145819
145819
|
} catch (err) {
|
|
145820
145820
|
}
|
|
145821
145821
|
if (!prebuildsOnly) {
|
|
145822
|
-
var release = getFirst(
|
|
145822
|
+
var release = getFirst(path12.join(dir, "build/Release"), matchBuild);
|
|
145823
145823
|
if (release) return release;
|
|
145824
|
-
var debug = getFirst(
|
|
145824
|
+
var debug = getFirst(path12.join(dir, "build/Debug"), matchBuild);
|
|
145825
145825
|
if (debug) return debug;
|
|
145826
145826
|
}
|
|
145827
145827
|
var prebuild = resolve2(dir);
|
|
145828
145828
|
if (prebuild) return prebuild;
|
|
145829
|
-
var nearby = resolve2(
|
|
145829
|
+
var nearby = resolve2(path12.dirname(process.execPath));
|
|
145830
145830
|
if (nearby) return nearby;
|
|
145831
145831
|
var platformPackage = (packageName[0] == "@" ? "" : "@" + packageName + "/") + packageName + "-" + platform + "-" + arch;
|
|
145832
145832
|
try {
|
|
145833
|
-
var prebuildPackage =
|
|
145833
|
+
var prebuildPackage = path12.dirname(__require("module").createRequire(url.pathToFileURL(path12.join(dir, "package.json"))).resolve(platformPackage));
|
|
145834
145834
|
return resolveFile(prebuildPackage);
|
|
145835
145835
|
} catch (error) {
|
|
145836
145836
|
}
|
|
@@ -145849,16 +145849,16 @@ var require_node_gyp_build_optional_packages = __commonJS({
|
|
|
145849
145849
|
].filter(Boolean).join(" ");
|
|
145850
145850
|
throw new Error("No native build was found for " + target + "\n attempted loading from: " + dir + " and package: " + platformPackage + "\n");
|
|
145851
145851
|
function resolve2(dir2) {
|
|
145852
|
-
var tuples = readdirSync(
|
|
145852
|
+
var tuples = readdirSync(path12.join(dir2, "prebuilds")).map(parseTuple);
|
|
145853
145853
|
var tuple = tuples.filter(matchTuple(platform, arch)).sort(compareTuples)[0];
|
|
145854
145854
|
if (!tuple) return;
|
|
145855
|
-
return resolveFile(
|
|
145855
|
+
return resolveFile(path12.join(dir2, "prebuilds", tuple.name));
|
|
145856
145856
|
}
|
|
145857
145857
|
function resolveFile(prebuilds) {
|
|
145858
145858
|
var parsed = readdirSync(prebuilds).map(parseTags);
|
|
145859
145859
|
var candidates = parsed.filter(matchTags(runtime, abi34));
|
|
145860
145860
|
var winner = candidates.sort(compareTags(runtime))[0];
|
|
145861
|
-
if (winner) return
|
|
145861
|
+
if (winner) return path12.join(prebuilds, winner.file);
|
|
145862
145862
|
}
|
|
145863
145863
|
};
|
|
145864
145864
|
function readdirSync(dir) {
|
|
@@ -145870,7 +145870,7 @@ var require_node_gyp_build_optional_packages = __commonJS({
|
|
|
145870
145870
|
}
|
|
145871
145871
|
function getFirst(dir, filter) {
|
|
145872
145872
|
var files = readdirSync(dir).filter(filter);
|
|
145873
|
-
return files[0] &&
|
|
145873
|
+
return files[0] && path12.join(dir, files[0]);
|
|
145874
145874
|
}
|
|
145875
145875
|
function matchBuild(name) {
|
|
145876
145876
|
return /\.node$/.test(name);
|
|
@@ -149622,14 +149622,14 @@ var require_url_state_machine = __commonJS({
|
|
|
149622
149622
|
return url.replace(/\u0009|\u000A|\u000D/g, "");
|
|
149623
149623
|
}
|
|
149624
149624
|
function shortenPath(url) {
|
|
149625
|
-
const
|
|
149626
|
-
if (
|
|
149625
|
+
const path12 = url.path;
|
|
149626
|
+
if (path12.length === 0) {
|
|
149627
149627
|
return;
|
|
149628
149628
|
}
|
|
149629
|
-
if (url.scheme === "file" &&
|
|
149629
|
+
if (url.scheme === "file" && path12.length === 1 && isNormalizedWindowsDriveLetter(path12[0])) {
|
|
149630
149630
|
return;
|
|
149631
149631
|
}
|
|
149632
|
-
|
|
149632
|
+
path12.pop();
|
|
149633
149633
|
}
|
|
149634
149634
|
function includesCredentials(url) {
|
|
149635
149635
|
return url.username !== "" || url.password !== "";
|
|
@@ -186397,9 +186397,9 @@ var require_setupKzg = __commonJS({
|
|
|
186397
186397
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
186398
186398
|
exports2.setupKzg = setupKzg;
|
|
186399
186399
|
var defineKzg_js_1 = require_defineKzg();
|
|
186400
|
-
function setupKzg(parameters,
|
|
186400
|
+
function setupKzg(parameters, path12) {
|
|
186401
186401
|
try {
|
|
186402
|
-
parameters.loadTrustedSetup(
|
|
186402
|
+
parameters.loadTrustedSetup(path12);
|
|
186403
186403
|
} catch (e) {
|
|
186404
186404
|
const error = e;
|
|
186405
186405
|
if (!error.message.includes("trusted setup is already loaded"))
|
|
@@ -233304,13 +233304,13 @@ function __disposeResources(env2) {
|
|
|
233304
233304
|
}
|
|
233305
233305
|
return next();
|
|
233306
233306
|
}
|
|
233307
|
-
function __rewriteRelativeImportExtension(
|
|
233308
|
-
if (typeof
|
|
233309
|
-
return
|
|
233307
|
+
function __rewriteRelativeImportExtension(path12, preserveJsx) {
|
|
233308
|
+
if (typeof path12 === "string" && /^\.\.?\//.test(path12)) {
|
|
233309
|
+
return path12.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {
|
|
233310
233310
|
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : d + ext + "." + cm.toLowerCase() + "js";
|
|
233311
233311
|
});
|
|
233312
233312
|
}
|
|
233313
|
-
return
|
|
233313
|
+
return path12;
|
|
233314
233314
|
}
|
|
233315
233315
|
var extendStatics2, __assign2, __createBinding2, __setModuleDefault2, ownKeys, _SuppressedError, tslib_es6_default;
|
|
233316
233316
|
var init_tslib_es62 = __esm({
|
|
@@ -239503,14 +239503,14 @@ var require_lib41 = __commonJS({
|
|
|
239503
239503
|
}
|
|
239504
239504
|
this.pubHash = hash160(this.pubKey);
|
|
239505
239505
|
}
|
|
239506
|
-
derive(
|
|
239507
|
-
if (!/^[mM]'?/.test(
|
|
239506
|
+
derive(path12) {
|
|
239507
|
+
if (!/^[mM]'?/.test(path12)) {
|
|
239508
239508
|
throw new Error('Path must start with "m" or "M"');
|
|
239509
239509
|
}
|
|
239510
|
-
if (/^[mM]'?$/.test(
|
|
239510
|
+
if (/^[mM]'?$/.test(path12)) {
|
|
239511
239511
|
return this;
|
|
239512
239512
|
}
|
|
239513
|
-
const parts =
|
|
239513
|
+
const parts = path12.replace(/^[mM]'?\//, "").split("/");
|
|
239514
239514
|
let child = this;
|
|
239515
239515
|
for (const c of parts) {
|
|
239516
239516
|
const m = /^(\d+)('?)$/.exec(c);
|
|
@@ -260633,8 +260633,8 @@ var require_hdKeyToAccount = __commonJS({
|
|
|
260633
260633
|
exports2.hdKeyToAccount = hdKeyToAccount;
|
|
260634
260634
|
var toHex_js_1 = require_toHex();
|
|
260635
260635
|
var privateKeyToAccount_js_1 = require_privateKeyToAccount();
|
|
260636
|
-
function hdKeyToAccount(hdKey_, { accountIndex = 0, addressIndex = 0, changeIndex = 0, path:
|
|
260637
|
-
const hdKey = hdKey_.derive(
|
|
260636
|
+
function hdKeyToAccount(hdKey_, { accountIndex = 0, addressIndex = 0, changeIndex = 0, path: path12, ...options } = {}) {
|
|
260637
|
+
const hdKey = hdKey_.derive(path12 || `m/44'/60'/${accountIndex}'/${changeIndex}/${addressIndex}`);
|
|
260638
260638
|
const account = (0, privateKeyToAccount_js_1.privateKeyToAccount)((0, toHex_js_1.toHex)(hdKey.privateKey), options);
|
|
260639
260639
|
return {
|
|
260640
260640
|
...account,
|
|
@@ -267933,12 +267933,12 @@ var require_abstract_coder3 = __commonJS({
|
|
|
267933
267933
|
exports2.Result = Result;
|
|
267934
267934
|
function checkResultErrors(result) {
|
|
267935
267935
|
const errors = [];
|
|
267936
|
-
const checkErrors = function(
|
|
267936
|
+
const checkErrors = function(path12, object) {
|
|
267937
267937
|
if (!Array.isArray(object)) {
|
|
267938
267938
|
return;
|
|
267939
267939
|
}
|
|
267940
267940
|
for (let key in object) {
|
|
267941
|
-
const childPath =
|
|
267941
|
+
const childPath = path12.slice();
|
|
267942
267942
|
childPath.push(key);
|
|
267943
267943
|
try {
|
|
267944
267944
|
checkErrors(childPath, object[key]);
|
|
@@ -290642,9 +290642,9 @@ var require_provider_ipcsocket2 = __commonJS({
|
|
|
290642
290642
|
get socket() {
|
|
290643
290643
|
return this.#socket;
|
|
290644
290644
|
}
|
|
290645
|
-
constructor(
|
|
290645
|
+
constructor(path12, network, options) {
|
|
290646
290646
|
super(network, options);
|
|
290647
|
-
this.#socket = (0, net_1.connect)(
|
|
290647
|
+
this.#socket = (0, net_1.connect)(path12);
|
|
290648
290648
|
this.socket.on("ready", async () => {
|
|
290649
290649
|
try {
|
|
290650
290650
|
await this._start();
|
|
@@ -291334,11 +291334,11 @@ var require_utils34 = __commonJS({
|
|
|
291334
291334
|
function spelunk(object, _path) {
|
|
291335
291335
|
const match2 = _path.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);
|
|
291336
291336
|
(0, index_js_1.assertArgument)(match2 != null, "invalid path", "path", _path);
|
|
291337
|
-
const
|
|
291337
|
+
const path12 = match2[1];
|
|
291338
291338
|
const type = match2[3];
|
|
291339
291339
|
const reqd = match2[4] === "!";
|
|
291340
291340
|
let cur = object;
|
|
291341
|
-
for (const comp of
|
|
291341
|
+
for (const comp of path12.toLowerCase().split(".")) {
|
|
291342
291342
|
if (Array.isArray(cur)) {
|
|
291343
291343
|
if (!comp.match(/^[0-9]+$/)) {
|
|
291344
291344
|
break;
|
|
@@ -291360,7 +291360,7 @@ var require_utils34 = __commonJS({
|
|
|
291360
291360
|
break;
|
|
291361
291361
|
}
|
|
291362
291362
|
}
|
|
291363
|
-
(0, index_js_1.assertArgument)(!reqd || cur != null, "missing required value", "path",
|
|
291363
|
+
(0, index_js_1.assertArgument)(!reqd || cur != null, "missing required value", "path", path12);
|
|
291364
291364
|
if (type && cur != null) {
|
|
291365
291365
|
if (type === "int") {
|
|
291366
291366
|
if (typeof cur === "string" && cur.match(/^-?[0-9]+$/)) {
|
|
@@ -291385,7 +291385,7 @@ var require_utils34 = __commonJS({
|
|
|
291385
291385
|
if (type === typeof cur) {
|
|
291386
291386
|
return cur;
|
|
291387
291387
|
}
|
|
291388
|
-
(0, index_js_1.assertArgument)(false, `wrong type found for ${type} `, "path",
|
|
291388
|
+
(0, index_js_1.assertArgument)(false, `wrong type found for ${type} `, "path", path12);
|
|
291389
291389
|
}
|
|
291390
291390
|
return cur;
|
|
291391
291391
|
}
|
|
@@ -291583,7 +291583,7 @@ var require_json_keystore2 = __commonJS({
|
|
|
291583
291583
|
};
|
|
291584
291584
|
if (account.mnemonic) {
|
|
291585
291585
|
const client = options.client != null ? options.client : `ethers/${_version_js_1.version}`;
|
|
291586
|
-
const
|
|
291586
|
+
const path12 = account.mnemonic.path || defaultPath;
|
|
291587
291587
|
const locale = account.mnemonic.locale || "en";
|
|
291588
291588
|
const mnemonicKey = key.slice(32, 64);
|
|
291589
291589
|
const entropy = (0, index_js_4.getBytes)(account.mnemonic.entropy, "account.mnemonic.entropy");
|
|
@@ -291596,7 +291596,7 @@ var require_json_keystore2 = __commonJS({
|
|
|
291596
291596
|
data["x-ethers"] = {
|
|
291597
291597
|
client,
|
|
291598
291598
|
gethFilename,
|
|
291599
|
-
path:
|
|
291599
|
+
path: path12,
|
|
291600
291600
|
locale,
|
|
291601
291601
|
mnemonicCounter: (0, index_js_4.hexlify)(mnemonicIv).substring(2),
|
|
291602
291602
|
mnemonicCiphertext: (0, index_js_4.hexlify)(mnemonicCiphertext).substring(2),
|
|
@@ -291681,11 +291681,11 @@ var require_hdwallet2 = __commonJS({
|
|
|
291681
291681
|
const I = (0, index_js_4.getBytes)((0, index_js_1.computeHmac)("sha512", chainCode, data));
|
|
291682
291682
|
return { IL: I.slice(0, 32), IR: I.slice(32) };
|
|
291683
291683
|
}
|
|
291684
|
-
function derivePath(node,
|
|
291685
|
-
const components =
|
|
291686
|
-
(0, index_js_4.assertArgument)(components.length > 0, "invalid path", "path",
|
|
291684
|
+
function derivePath(node, path12) {
|
|
291685
|
+
const components = path12.split("/");
|
|
291686
|
+
(0, index_js_4.assertArgument)(components.length > 0, "invalid path", "path", path12);
|
|
291687
291687
|
if (components[0] === "m") {
|
|
291688
|
-
(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",
|
|
291688
|
+
(0, index_js_4.assertArgument)(node.depth === 0, `cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${node.depth}`, "path", path12);
|
|
291689
291689
|
components.shift();
|
|
291690
291690
|
}
|
|
291691
291691
|
let result = node;
|
|
@@ -291755,7 +291755,7 @@ var require_hdwallet2 = __commonJS({
|
|
|
291755
291755
|
/**
|
|
291756
291756
|
* @private
|
|
291757
291757
|
*/
|
|
291758
|
-
constructor(guard, signingKey, parentFingerprint, chainCode,
|
|
291758
|
+
constructor(guard, signingKey, parentFingerprint, chainCode, path12, index2, depth, mnemonic, provider) {
|
|
291759
291759
|
super(signingKey, provider);
|
|
291760
291760
|
(0, index_js_4.assertPrivate)(guard, _guard, "HDNodeWallet");
|
|
291761
291761
|
(0, index_js_4.defineProperties)(this, { publicKey: signingKey.compressedPublicKey });
|
|
@@ -291764,7 +291764,7 @@ var require_hdwallet2 = __commonJS({
|
|
|
291764
291764
|
parentFingerprint,
|
|
291765
291765
|
fingerprint,
|
|
291766
291766
|
chainCode,
|
|
291767
|
-
path:
|
|
291767
|
+
path: path12,
|
|
291768
291768
|
index: index2,
|
|
291769
291769
|
depth
|
|
291770
291770
|
});
|
|
@@ -291848,22 +291848,22 @@ var require_hdwallet2 = __commonJS({
|
|
|
291848
291848
|
deriveChild(_index) {
|
|
291849
291849
|
const index2 = (0, index_js_4.getNumber)(_index, "index");
|
|
291850
291850
|
(0, index_js_4.assertArgument)(index2 <= 4294967295, "invalid index", "index", index2);
|
|
291851
|
-
let
|
|
291852
|
-
if (
|
|
291853
|
-
|
|
291851
|
+
let path12 = this.path;
|
|
291852
|
+
if (path12) {
|
|
291853
|
+
path12 += "/" + (index2 & ~HardenedBit);
|
|
291854
291854
|
if (index2 & HardenedBit) {
|
|
291855
|
-
|
|
291855
|
+
path12 += "'";
|
|
291856
291856
|
}
|
|
291857
291857
|
}
|
|
291858
291858
|
const { IR, IL } = ser_I(index2, this.chainCode, this.publicKey, this.privateKey);
|
|
291859
291859
|
const ki = new index_js_1.SigningKey((0, index_js_4.toBeHex)(((0, index_js_4.toBigInt)(IL) + BigInt(this.privateKey)) % N, 32));
|
|
291860
|
-
return new _HDNodeWallet(_guard, ki, this.fingerprint, (0, index_js_4.hexlify)(IR),
|
|
291860
|
+
return new _HDNodeWallet(_guard, ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path12, index2, this.depth + 1, this.mnemonic, this.provider);
|
|
291861
291861
|
}
|
|
291862
291862
|
/**
|
|
291863
291863
|
* Return the HDNode for %%path%% from this node.
|
|
291864
291864
|
*/
|
|
291865
|
-
derivePath(
|
|
291866
|
-
return derivePath(this,
|
|
291865
|
+
derivePath(path12) {
|
|
291866
|
+
return derivePath(this, path12);
|
|
291867
291867
|
}
|
|
291868
291868
|
static #fromSeed(_seed, mnemonic) {
|
|
291869
291869
|
(0, index_js_4.assertArgument)((0, index_js_4.isBytesLike)(_seed), "invalid seed", "seed", "[REDACTED]");
|
|
@@ -291908,43 +291908,43 @@ var require_hdwallet2 = __commonJS({
|
|
|
291908
291908
|
/**
|
|
291909
291909
|
* Creates a new random HDNode.
|
|
291910
291910
|
*/
|
|
291911
|
-
static createRandom(password,
|
|
291911
|
+
static createRandom(password, path12, wordlist) {
|
|
291912
291912
|
if (password == null) {
|
|
291913
291913
|
password = "";
|
|
291914
291914
|
}
|
|
291915
|
-
if (
|
|
291916
|
-
|
|
291915
|
+
if (path12 == null) {
|
|
291916
|
+
path12 = exports2.defaultPath;
|
|
291917
291917
|
}
|
|
291918
291918
|
if (wordlist == null) {
|
|
291919
291919
|
wordlist = lang_en_js_1.LangEn.wordlist();
|
|
291920
291920
|
}
|
|
291921
291921
|
const mnemonic = mnemonic_js_1.Mnemonic.fromEntropy((0, index_js_1.randomBytes)(16), password, wordlist);
|
|
291922
|
-
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(
|
|
291922
|
+
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path12);
|
|
291923
291923
|
}
|
|
291924
291924
|
/**
|
|
291925
291925
|
* Create an HD Node from %%mnemonic%%.
|
|
291926
291926
|
*/
|
|
291927
|
-
static fromMnemonic(mnemonic,
|
|
291928
|
-
if (!
|
|
291929
|
-
|
|
291927
|
+
static fromMnemonic(mnemonic, path12) {
|
|
291928
|
+
if (!path12) {
|
|
291929
|
+
path12 = exports2.defaultPath;
|
|
291930
291930
|
}
|
|
291931
|
-
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(
|
|
291931
|
+
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path12);
|
|
291932
291932
|
}
|
|
291933
291933
|
/**
|
|
291934
291934
|
* Creates an HD Node from a mnemonic %%phrase%%.
|
|
291935
291935
|
*/
|
|
291936
|
-
static fromPhrase(phrase, password,
|
|
291936
|
+
static fromPhrase(phrase, password, path12, wordlist) {
|
|
291937
291937
|
if (password == null) {
|
|
291938
291938
|
password = "";
|
|
291939
291939
|
}
|
|
291940
|
-
if (
|
|
291941
|
-
|
|
291940
|
+
if (path12 == null) {
|
|
291941
|
+
path12 = exports2.defaultPath;
|
|
291942
291942
|
}
|
|
291943
291943
|
if (wordlist == null) {
|
|
291944
291944
|
wordlist = lang_en_js_1.LangEn.wordlist();
|
|
291945
291945
|
}
|
|
291946
291946
|
const mnemonic = mnemonic_js_1.Mnemonic.fromPhrase(phrase, password, wordlist);
|
|
291947
|
-
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(
|
|
291947
|
+
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path12);
|
|
291948
291948
|
}
|
|
291949
291949
|
/**
|
|
291950
291950
|
* Creates an HD Node from a %%seed%%.
|
|
@@ -291997,7 +291997,7 @@ var require_hdwallet2 = __commonJS({
|
|
|
291997
291997
|
/**
|
|
291998
291998
|
* @private
|
|
291999
291999
|
*/
|
|
292000
|
-
constructor(guard, address, publicKey, parentFingerprint, chainCode,
|
|
292000
|
+
constructor(guard, address, publicKey, parentFingerprint, chainCode, path12, index2, depth, provider) {
|
|
292001
292001
|
super(address, provider);
|
|
292002
292002
|
(0, index_js_4.assertPrivate)(guard, _guard, "HDNodeVoidWallet");
|
|
292003
292003
|
(0, index_js_4.defineProperties)(this, { publicKey });
|
|
@@ -292007,7 +292007,7 @@ var require_hdwallet2 = __commonJS({
|
|
|
292007
292007
|
fingerprint,
|
|
292008
292008
|
parentFingerprint,
|
|
292009
292009
|
chainCode,
|
|
292010
|
-
path:
|
|
292010
|
+
path: path12,
|
|
292011
292011
|
index: index2,
|
|
292012
292012
|
depth
|
|
292013
292013
|
});
|
|
@@ -292045,23 +292045,23 @@ var require_hdwallet2 = __commonJS({
|
|
|
292045
292045
|
deriveChild(_index) {
|
|
292046
292046
|
const index2 = (0, index_js_4.getNumber)(_index, "index");
|
|
292047
292047
|
(0, index_js_4.assertArgument)(index2 <= 4294967295, "invalid index", "index", index2);
|
|
292048
|
-
let
|
|
292049
|
-
if (
|
|
292050
|
-
|
|
292048
|
+
let path12 = this.path;
|
|
292049
|
+
if (path12) {
|
|
292050
|
+
path12 += "/" + (index2 & ~HardenedBit);
|
|
292051
292051
|
if (index2 & HardenedBit) {
|
|
292052
|
-
|
|
292052
|
+
path12 += "'";
|
|
292053
292053
|
}
|
|
292054
292054
|
}
|
|
292055
292055
|
const { IR, IL } = ser_I(index2, this.chainCode, this.publicKey, null);
|
|
292056
292056
|
const Ki = index_js_1.SigningKey.addPoints(IL, this.publicKey, true);
|
|
292057
292057
|
const address = (0, index_js_3.computeAddress)(Ki);
|
|
292058
|
-
return new _HDNodeVoidWallet(_guard, address, Ki, this.fingerprint, (0, index_js_4.hexlify)(IR),
|
|
292058
|
+
return new _HDNodeVoidWallet(_guard, address, Ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path12, index2, this.depth + 1, this.provider);
|
|
292059
292059
|
}
|
|
292060
292060
|
/**
|
|
292061
292061
|
* Return the signer for %%path%% from this node.
|
|
292062
292062
|
*/
|
|
292063
|
-
derivePath(
|
|
292064
|
-
return derivePath(this,
|
|
292063
|
+
derivePath(path12) {
|
|
292064
|
+
return derivePath(this, path12);
|
|
292065
292065
|
}
|
|
292066
292066
|
};
|
|
292067
292067
|
exports2.HDNodeVoidWallet = HDNodeVoidWallet;
|
|
@@ -294853,10 +294853,10 @@ var require_SolidityCheckedContract = __commonJS({
|
|
|
294853
294853
|
} catch (err) {
|
|
294854
294854
|
return null;
|
|
294855
294855
|
}
|
|
294856
|
-
const pathContent = Object.keys(this.sources).map((
|
|
294856
|
+
const pathContent = Object.keys(this.sources).map((path12) => {
|
|
294857
294857
|
return {
|
|
294858
|
-
path:
|
|
294859
|
-
content: this.sources[
|
|
294858
|
+
path: path12,
|
|
294859
|
+
content: this.sources[path12] || ""
|
|
294860
294860
|
};
|
|
294861
294861
|
});
|
|
294862
294862
|
const byHash = (0, validation_1.storeByHash)(pathContent);
|
|
@@ -298155,8 +298155,8 @@ var require_utils36 = __commonJS({
|
|
|
298155
298155
|
var result = transform[inputType][outputType](input);
|
|
298156
298156
|
return result;
|
|
298157
298157
|
};
|
|
298158
|
-
exports2.resolve = function(
|
|
298159
|
-
var parts =
|
|
298158
|
+
exports2.resolve = function(path12) {
|
|
298159
|
+
var parts = path12.split("/");
|
|
298160
298160
|
var result = [];
|
|
298161
298161
|
for (var index2 = 0; index2 < parts.length; index2++) {
|
|
298162
298162
|
var part = parts[index2];
|
|
@@ -304009,18 +304009,18 @@ var require_object = __commonJS({
|
|
|
304009
304009
|
var object = new ZipObject(name, zipObjectContent, o);
|
|
304010
304010
|
this.files[name] = object;
|
|
304011
304011
|
};
|
|
304012
|
-
var parentFolder = function(
|
|
304013
|
-
if (
|
|
304014
|
-
|
|
304012
|
+
var parentFolder = function(path12) {
|
|
304013
|
+
if (path12.slice(-1) === "/") {
|
|
304014
|
+
path12 = path12.substring(0, path12.length - 1);
|
|
304015
304015
|
}
|
|
304016
|
-
var lastSlash =
|
|
304017
|
-
return lastSlash > 0 ?
|
|
304016
|
+
var lastSlash = path12.lastIndexOf("/");
|
|
304017
|
+
return lastSlash > 0 ? path12.substring(0, lastSlash) : "";
|
|
304018
304018
|
};
|
|
304019
|
-
var forceTrailingSlash = function(
|
|
304020
|
-
if (
|
|
304021
|
-
|
|
304019
|
+
var forceTrailingSlash = function(path12) {
|
|
304020
|
+
if (path12.slice(-1) !== "/") {
|
|
304021
|
+
path12 += "/";
|
|
304022
304022
|
}
|
|
304023
|
-
return
|
|
304023
|
+
return path12;
|
|
304024
304024
|
};
|
|
304025
304025
|
var folderAdd = function(name, createFolders) {
|
|
304026
304026
|
createFolders = typeof createFolders !== "undefined" ? createFolders : defaults.createFolders;
|
|
@@ -305086,7 +305086,7 @@ var require_VyperCheckedContract = __commonJS({
|
|
|
305086
305086
|
userdoc: { kind: "user", methods: {} }
|
|
305087
305087
|
};
|
|
305088
305088
|
}
|
|
305089
|
-
const sourcesWithHashes = Object.entries(this.sources).reduce((acc, [
|
|
305089
|
+
const sourcesWithHashes = Object.entries(this.sources).reduce((acc, [path12, content]) => Object.assign(Object.assign({}, acc), { [path12]: {
|
|
305090
305090
|
keccak256: (0, ethers_1.id)(content)
|
|
305091
305091
|
} }), {});
|
|
305092
305092
|
this.metadata = {
|
|
@@ -305119,8 +305119,8 @@ var require_VyperCheckedContract = __commonJS({
|
|
|
305119
305119
|
this.generateMetadata();
|
|
305120
305120
|
this.vyperJsonInput = {
|
|
305121
305121
|
language: "Vyper",
|
|
305122
|
-
sources: Object.fromEntries(Object.entries(this.sources).map(([
|
|
305123
|
-
|
|
305122
|
+
sources: Object.fromEntries(Object.entries(this.sources).map(([path12, content]) => [
|
|
305123
|
+
path12,
|
|
305124
305124
|
{ content }
|
|
305125
305125
|
])),
|
|
305126
305126
|
settings: this.vyperSettings
|
|
@@ -305313,15 +305313,15 @@ var require_validation5 = __commonJS({
|
|
|
305313
305313
|
];
|
|
305314
305314
|
function checkPaths(solidityCompiler, vyperCompiler2, paths, ignoring) {
|
|
305315
305315
|
const files = [];
|
|
305316
|
-
paths.forEach((
|
|
305317
|
-
if (fs_1.default.existsSync(
|
|
305318
|
-
traversePathRecursively(
|
|
305316
|
+
paths.forEach((path12) => {
|
|
305317
|
+
if (fs_1.default.existsSync(path12)) {
|
|
305318
|
+
traversePathRecursively(path12, (filePath) => {
|
|
305319
305319
|
const fullPath = path_1.default.resolve(filePath);
|
|
305320
305320
|
const file = { buffer: fs_1.default.readFileSync(filePath), path: fullPath };
|
|
305321
305321
|
files.push(file);
|
|
305322
305322
|
});
|
|
305323
305323
|
} else if (ignoring) {
|
|
305324
|
-
ignoring.push(
|
|
305324
|
+
ignoring.push(path12);
|
|
305325
305325
|
}
|
|
305326
305326
|
});
|
|
305327
305327
|
return checkFilesWithMetadata2(solidityCompiler, vyperCompiler2, files);
|
|
@@ -305577,22 +305577,22 @@ var require_validation5 = __commonJS({
|
|
|
305577
305577
|
var _a, _b, _c, _d;
|
|
305578
305578
|
return ((obj === null || obj === void 0 ? void 0 : obj.language) === "Vyper" || (obj === null || obj === void 0 ? void 0 : obj.language) === "Solidity") && !!((_a = obj === null || obj === void 0 ? void 0 : obj.settings) === null || _a === void 0 ? void 0 : _a.compilationTarget) && !!(obj === null || obj === void 0 ? void 0 : obj.version) && !!((_b = obj === null || obj === void 0 ? void 0 : obj.output) === null || _b === void 0 ? void 0 : _b.abi) && !!((_c = obj === null || obj === void 0 ? void 0 : obj.output) === null || _c === void 0 ? void 0 : _c.userdoc) && !!((_d = obj === null || obj === void 0 ? void 0 : obj.output) === null || _d === void 0 ? void 0 : _d.devdoc) && !!(obj === null || obj === void 0 ? void 0 : obj.sources);
|
|
305579
305579
|
}
|
|
305580
|
-
function traversePathRecursively(
|
|
305581
|
-
if (!fs_1.default.existsSync(
|
|
305582
|
-
const msg = `Encountered a nonexistent path: ${
|
|
305580
|
+
function traversePathRecursively(path12, worker, afterDirectory) {
|
|
305581
|
+
if (!fs_1.default.existsSync(path12)) {
|
|
305582
|
+
const msg = `Encountered a nonexistent path: ${path12}`;
|
|
305583
305583
|
const error = new Error(msg);
|
|
305584
305584
|
throw error;
|
|
305585
305585
|
}
|
|
305586
|
-
const fileStat = fs_1.default.lstatSync(
|
|
305586
|
+
const fileStat = fs_1.default.lstatSync(path12);
|
|
305587
305587
|
if (fileStat.isFile()) {
|
|
305588
|
-
worker(
|
|
305588
|
+
worker(path12);
|
|
305589
305589
|
} else if (fileStat.isDirectory()) {
|
|
305590
|
-
fs_1.default.readdirSync(
|
|
305591
|
-
const nestedPath = path_1.default.join(
|
|
305590
|
+
fs_1.default.readdirSync(path12).forEach((nestedName) => {
|
|
305591
|
+
const nestedPath = path_1.default.join(path12, nestedName);
|
|
305592
305592
|
traversePathRecursively(nestedPath, worker, afterDirectory);
|
|
305593
305593
|
});
|
|
305594
305594
|
if (afterDirectory) {
|
|
305595
|
-
afterDirectory(
|
|
305595
|
+
afterDirectory(path12);
|
|
305596
305596
|
}
|
|
305597
305597
|
}
|
|
305598
305598
|
}
|
|
@@ -305622,19 +305622,19 @@ var require_validation5 = __commonJS({
|
|
|
305622
305622
|
const endTime = Date.now();
|
|
305623
305623
|
(0, logger_1.logDebug)(`Parsing hardhat file took ${endTime - startTime} milliseconds.`);
|
|
305624
305624
|
const hardhatSourceFilesObject = hardhatJson.input.sources;
|
|
305625
|
-
for (const
|
|
305626
|
-
if (hardhatSourceFilesObject[
|
|
305625
|
+
for (const path12 in hardhatSourceFilesObject) {
|
|
305626
|
+
if (hardhatSourceFilesObject[path12].content) {
|
|
305627
305627
|
hardhatSourceFiles.push({
|
|
305628
|
-
path:
|
|
305629
|
-
content: hardhatSourceFilesObject[
|
|
305628
|
+
path: path12,
|
|
305629
|
+
content: hardhatSourceFilesObject[path12].content
|
|
305630
305630
|
});
|
|
305631
305631
|
}
|
|
305632
305632
|
}
|
|
305633
305633
|
const contractsObject = hardhatJson.output.contracts;
|
|
305634
|
-
for (const
|
|
305635
|
-
for (const contractName in contractsObject[
|
|
305636
|
-
if (contractsObject[
|
|
305637
|
-
const metadataObj = extractMetadataFromString(contractsObject[
|
|
305634
|
+
for (const path12 in contractsObject) {
|
|
305635
|
+
for (const contractName in contractsObject[path12]) {
|
|
305636
|
+
if (contractsObject[path12][contractName].metadata) {
|
|
305637
|
+
const metadataObj = extractMetadataFromString(contractsObject[path12][contractName].metadata);
|
|
305638
305638
|
hardhatMetadataFiles.push(metadataObj);
|
|
305639
305639
|
}
|
|
305640
305640
|
}
|
|
@@ -307628,15 +307628,15 @@ var require_route = __commonJS({
|
|
|
307628
307628
|
};
|
|
307629
307629
|
}
|
|
307630
307630
|
function wrapConversion(toModel, graph) {
|
|
307631
|
-
const
|
|
307631
|
+
const path12 = [graph[toModel].parent, toModel];
|
|
307632
307632
|
let fn = conversions[graph[toModel].parent][toModel];
|
|
307633
307633
|
let cur = graph[toModel].parent;
|
|
307634
307634
|
while (graph[cur].parent) {
|
|
307635
|
-
|
|
307635
|
+
path12.unshift(graph[cur].parent);
|
|
307636
307636
|
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
307637
307637
|
cur = graph[cur].parent;
|
|
307638
307638
|
}
|
|
307639
|
-
fn.conversion =
|
|
307639
|
+
fn.conversion = path12;
|
|
307640
307640
|
return fn;
|
|
307641
307641
|
}
|
|
307642
307642
|
module2.exports = function(fromModel) {
|
|
@@ -370303,12 +370303,12 @@ var UniswapV3AdapterContract = class extends AbstractAdapterContract {
|
|
|
370303
370303
|
];
|
|
370304
370304
|
}
|
|
370305
370305
|
case "exactInput": {
|
|
370306
|
-
const [{ amountIn, amountOutMinimum, path:
|
|
370307
|
-
const pathStr = this.trackInputPath(
|
|
370308
|
-
const token = `0x${
|
|
370306
|
+
const [{ amountIn, amountOutMinimum, path: path12 }] = params.args;
|
|
370307
|
+
const pathStr = this.trackInputPath(path12);
|
|
370308
|
+
const token = `0x${path12.replace("0x", "").slice(0, 40)}`;
|
|
370309
370309
|
const amountInStr = this.sdk.tokensMeta.formatBN(token, amountIn);
|
|
370310
370310
|
const amountOutMinimumStr = this.sdk.tokensMeta.formatBN(
|
|
370311
|
-
`0x${
|
|
370311
|
+
`0x${path12.slice(-40, path12.length)}`,
|
|
370312
370312
|
amountOutMinimum
|
|
370313
370313
|
);
|
|
370314
370314
|
return [
|
|
@@ -370316,12 +370316,12 @@ var UniswapV3AdapterContract = class extends AbstractAdapterContract {
|
|
|
370316
370316
|
];
|
|
370317
370317
|
}
|
|
370318
370318
|
case "exactDiffInput": {
|
|
370319
|
-
const [{ leftoverAmount, rateMinRAY, path:
|
|
370319
|
+
const [{ leftoverAmount, rateMinRAY, path: path12 }] = params.args;
|
|
370320
370320
|
const leftoverAmountStr = this.sdk.tokensMeta.formatBN(
|
|
370321
|
-
`0x${
|
|
370321
|
+
`0x${path12.replace("0x", "").slice(0, 40)}`,
|
|
370322
370322
|
leftoverAmount
|
|
370323
370323
|
);
|
|
370324
|
-
const pathStr = this.trackInputPath(
|
|
370324
|
+
const pathStr = this.trackInputPath(path12);
|
|
370325
370325
|
return [
|
|
370326
370326
|
`(leftoverAmount: ${leftoverAmountStr}, rate: ${formatBN(
|
|
370327
370327
|
rateMinRAY,
|
|
@@ -370330,14 +370330,14 @@ var UniswapV3AdapterContract = class extends AbstractAdapterContract {
|
|
|
370330
370330
|
];
|
|
370331
370331
|
}
|
|
370332
370332
|
case "exactOutput": {
|
|
370333
|
-
const [{ amountInMaximum, amountOut, path:
|
|
370334
|
-
const pathStr = this.trackOutputPath(
|
|
370333
|
+
const [{ amountInMaximum, amountOut, path: path12 }] = params.args;
|
|
370334
|
+
const pathStr = this.trackOutputPath(path12);
|
|
370335
370335
|
const amountInMaximumStr = this.sdk.tokensMeta.formatBN(
|
|
370336
|
-
`0x${
|
|
370336
|
+
`0x${path12.slice(-40, path12.length)}`,
|
|
370337
370337
|
amountInMaximum
|
|
370338
370338
|
);
|
|
370339
370339
|
const amountOutStr = this.sdk.tokensMeta.formatBN(
|
|
370340
|
-
`0x${
|
|
370340
|
+
`0x${path12.replace("0x", "").slice(0, 40)}`,
|
|
370341
370341
|
amountOut
|
|
370342
370342
|
);
|
|
370343
370343
|
return [
|
|
@@ -370361,30 +370361,30 @@ var UniswapV3AdapterContract = class extends AbstractAdapterContract {
|
|
|
370361
370361
|
return void 0;
|
|
370362
370362
|
}
|
|
370363
370363
|
}
|
|
370364
|
-
trackInputPath(
|
|
370364
|
+
trackInputPath(path12) {
|
|
370365
370365
|
let result = "";
|
|
370366
|
-
let pointer =
|
|
370367
|
-
while (pointer <=
|
|
370368
|
-
const from5 = `0x${
|
|
370366
|
+
let pointer = path12.startsWith("0x") ? 2 : 0;
|
|
370367
|
+
while (pointer <= path12.length - 40) {
|
|
370368
|
+
const from5 = `0x${path12.slice(pointer, pointer + 40)}`.toLowerCase();
|
|
370369
370369
|
result += this.sdk.tokensMeta.symbol(from5) || from5;
|
|
370370
370370
|
pointer += 40;
|
|
370371
|
-
if (pointer >
|
|
370372
|
-
const fee = parseInt(
|
|
370371
|
+
if (pointer > path12.length - 6) return result;
|
|
370372
|
+
const fee = parseInt(path12.slice(pointer, pointer + 6), 16);
|
|
370373
370373
|
pointer += 6;
|
|
370374
370374
|
result += ` ==(fee: ${fee})==> `;
|
|
370375
370375
|
}
|
|
370376
370376
|
return result;
|
|
370377
370377
|
}
|
|
370378
|
-
trackOutputPath(
|
|
370378
|
+
trackOutputPath(path12) {
|
|
370379
370379
|
let result = "";
|
|
370380
|
-
let pointer =
|
|
370380
|
+
let pointer = path12.length;
|
|
370381
370381
|
while (pointer >= 40) {
|
|
370382
370382
|
pointer -= 40;
|
|
370383
|
-
const from5 = `0x${
|
|
370383
|
+
const from5 = `0x${path12.slice(pointer, pointer + 40)}`;
|
|
370384
370384
|
result += this.sdk.tokensMeta.symbol(from5) || from5;
|
|
370385
370385
|
if (pointer < 6) return result;
|
|
370386
370386
|
pointer -= 6;
|
|
370387
|
-
const fee = parseInt(
|
|
370387
|
+
const fee = parseInt(path12.slice(pointer, pointer + 6), 16);
|
|
370388
370388
|
result += ` ==(fee: ${fee})==> `;
|
|
370389
370389
|
}
|
|
370390
370390
|
return result;
|
|
@@ -380799,9 +380799,9 @@ var PathOptionFactory = class _PathOptionFactory {
|
|
|
380799
380799
|
const balancerSet = /* @__PURE__ */ new Set([...balancerPools, ...balancerTokensFromAura]);
|
|
380800
380800
|
return Array.from(balancerSet.values());
|
|
380801
380801
|
}
|
|
380802
|
-
static next(
|
|
380803
|
-
let newPath = [...
|
|
380804
|
-
for (let i =
|
|
380802
|
+
static next(path12) {
|
|
380803
|
+
let newPath = [...path12];
|
|
380804
|
+
for (let i = path12.length - 1; i >= 0; i--) {
|
|
380805
380805
|
const po = { ...newPath[i] };
|
|
380806
380806
|
po.option++;
|
|
380807
380807
|
newPath[i] = po;
|
|
@@ -382947,9 +382947,9 @@ var log_default = logger;
|
|
|
382947
382947
|
var log = log_default.child({ name: "git" });
|
|
382948
382948
|
function getGithubUrl(repo, https = false) {
|
|
382949
382949
|
const credentials = process.env.GITHUB_TOKEN ?? process.env.GH_TOKEN;
|
|
382950
|
-
const
|
|
382950
|
+
const path12 = repo.replace(/^@/, "").replace(/\/$/, "");
|
|
382951
382951
|
const cred = credentials ? `${credentials}@` : "";
|
|
382952
|
-
return https || credentials ? `https://${cred}github.com/${
|
|
382952
|
+
return https || credentials ? `https://${cred}github.com/${path12}.git` : `git@github.com:${path12}.git`;
|
|
382953
382953
|
}
|
|
382954
382954
|
async function cloneRepo(opts) {
|
|
382955
382955
|
const { repo, commit, sandboxDir } = opts;
|
|
@@ -400718,8 +400718,8 @@ function asyncExecSolc(inputStringified, solcPath) {
|
|
|
400718
400718
|
child.stdin.end();
|
|
400719
400719
|
});
|
|
400720
400720
|
}
|
|
400721
|
-
function importWorker(
|
|
400722
|
-
const resolvedPath = __require.resolve(
|
|
400721
|
+
function importWorker(path12, options) {
|
|
400722
|
+
const resolvedPath = __require.resolve(path12);
|
|
400723
400723
|
return new Worker(resolvedPath, {
|
|
400724
400724
|
...options,
|
|
400725
400725
|
execArgv: /\.ts$/.test(resolvedPath) ? ["--require", "ts-node/register"] : void 0
|
|
@@ -400753,7 +400753,7 @@ var vyperCompiler = new VyperCompiler();
|
|
|
400753
400753
|
// ../../packages/node/dist/utils.js
|
|
400754
400754
|
var import_bytecode_utils = __toESM(require_main(), 1);
|
|
400755
400755
|
function extractFilesFromJSON(files) {
|
|
400756
|
-
return Object.entries(files).map(([
|
|
400756
|
+
return Object.entries(files).map(([path12, file]) => {
|
|
400757
400757
|
let buffer2 = null;
|
|
400758
400758
|
if (Buffer.isBuffer(file)) {
|
|
400759
400759
|
buffer2 = file;
|
|
@@ -400768,7 +400768,7 @@ function extractFilesFromJSON(files) {
|
|
|
400768
400768
|
throw new Error(`cannot convert ${typeof file} into buffer`);
|
|
400769
400769
|
}
|
|
400770
400770
|
return {
|
|
400771
|
-
path:
|
|
400771
|
+
path: path12,
|
|
400772
400772
|
buffer: buffer2
|
|
400773
400773
|
};
|
|
400774
400774
|
});
|
|
@@ -400829,8 +400829,8 @@ var Auditor = class {
|
|
|
400829
400829
|
if (!meta.files) {
|
|
400830
400830
|
throw new Error("no files to audit");
|
|
400831
400831
|
}
|
|
400832
|
-
const files = extractFilesFromJSON(meta.files).filter((f) => f.path !== "metadata.json").map(({ path:
|
|
400833
|
-
const p =
|
|
400832
|
+
const files = extractFilesFromJSON(meta.files).filter((f) => f.path !== "metadata.json").map(({ path: path12, buffer: buffer2 }) => {
|
|
400833
|
+
const p = path12.includes("node_modules/") ? path12.replace("node_modules/", "") : meta.source;
|
|
400834
400834
|
const gearbox = p.startsWith("@gearbox-protocol");
|
|
400835
400835
|
return {
|
|
400836
400836
|
gearbox,
|
|
@@ -400850,8 +400850,8 @@ var Auditor = class {
|
|
|
400850
400850
|
*/
|
|
400851
400851
|
async auditEtherscanVerified(contract) {
|
|
400852
400852
|
const input = parseEtherscanSourceCode(contract);
|
|
400853
|
-
const files = extractFilesFromJSON(input.sources).map(({ path:
|
|
400854
|
-
const p =
|
|
400853
|
+
const files = extractFilesFromJSON(input.sources).map(({ path: path12, buffer: buffer2 }) => {
|
|
400854
|
+
const p = path12.replace("node_modules/", "");
|
|
400855
400855
|
const gearbox = p.startsWith("@gearbox-protocol");
|
|
400856
400856
|
return {
|
|
400857
400857
|
gearbox,
|
|
@@ -401361,8 +401361,8 @@ function getErrorMap() {
|
|
|
401361
401361
|
return overrideErrorMap;
|
|
401362
401362
|
}
|
|
401363
401363
|
var makeIssue = (params) => {
|
|
401364
|
-
const { data, path:
|
|
401365
|
-
const fullPath = [...
|
|
401364
|
+
const { data, path: path12, errorMaps, issueData } = params;
|
|
401365
|
+
const fullPath = [...path12, ...issueData.path || []];
|
|
401366
401366
|
const fullIssue = {
|
|
401367
401367
|
...issueData,
|
|
401368
401368
|
path: fullPath
|
|
@@ -401487,11 +401487,11 @@ var errorUtil;
|
|
|
401487
401487
|
var _ZodEnum_cache;
|
|
401488
401488
|
var _ZodNativeEnum_cache;
|
|
401489
401489
|
var ParseInputLazyPath = class {
|
|
401490
|
-
constructor(parent, value,
|
|
401490
|
+
constructor(parent, value, path12, key) {
|
|
401491
401491
|
this._cachedPath = [];
|
|
401492
401492
|
this.parent = parent;
|
|
401493
401493
|
this.data = value;
|
|
401494
|
-
this._path =
|
|
401494
|
+
this._path = path12;
|
|
401495
401495
|
this._key = key;
|
|
401496
401496
|
}
|
|
401497
401497
|
get path() {
|
|
@@ -405829,19 +405829,19 @@ function toKey(value) {
|
|
|
405829
405829
|
var toKey_default = toKey;
|
|
405830
405830
|
|
|
405831
405831
|
// ../../node_modules/lodash-es/_baseGet.js
|
|
405832
|
-
function baseGet(object,
|
|
405833
|
-
|
|
405834
|
-
var index2 = 0, length =
|
|
405832
|
+
function baseGet(object, path12) {
|
|
405833
|
+
path12 = castPath_default(path12, object);
|
|
405834
|
+
var index2 = 0, length = path12.length;
|
|
405835
405835
|
while (object != null && index2 < length) {
|
|
405836
|
-
object = object[toKey_default(
|
|
405836
|
+
object = object[toKey_default(path12[index2++])];
|
|
405837
405837
|
}
|
|
405838
405838
|
return index2 && index2 == length ? object : void 0;
|
|
405839
405839
|
}
|
|
405840
405840
|
var baseGet_default = baseGet;
|
|
405841
405841
|
|
|
405842
405842
|
// ../../node_modules/lodash-es/get.js
|
|
405843
|
-
function get(object,
|
|
405844
|
-
var result = object == null ? void 0 : baseGet_default(object,
|
|
405843
|
+
function get(object, path12, defaultValue) {
|
|
405844
|
+
var result = object == null ? void 0 : baseGet_default(object, path12);
|
|
405845
405845
|
return result === void 0 ? defaultValue : result;
|
|
405846
405846
|
}
|
|
405847
405847
|
var get_default = get;
|
|
@@ -406790,11 +406790,11 @@ function baseHasIn(object, key) {
|
|
|
406790
406790
|
var baseHasIn_default = baseHasIn;
|
|
406791
406791
|
|
|
406792
406792
|
// ../../node_modules/lodash-es/_hasPath.js
|
|
406793
|
-
function hasPath(object,
|
|
406794
|
-
|
|
406795
|
-
var index2 = -1, length =
|
|
406793
|
+
function hasPath(object, path12, hasFunc) {
|
|
406794
|
+
path12 = castPath_default(path12, object);
|
|
406795
|
+
var index2 = -1, length = path12.length, result = false;
|
|
406796
406796
|
while (++index2 < length) {
|
|
406797
|
-
var key = toKey_default(
|
|
406797
|
+
var key = toKey_default(path12[index2]);
|
|
406798
406798
|
if (!(result = object != null && hasFunc(object, key))) {
|
|
406799
406799
|
break;
|
|
406800
406800
|
}
|
|
@@ -406809,21 +406809,21 @@ function hasPath(object, path13, hasFunc) {
|
|
|
406809
406809
|
var hasPath_default = hasPath;
|
|
406810
406810
|
|
|
406811
406811
|
// ../../node_modules/lodash-es/hasIn.js
|
|
406812
|
-
function hasIn(object,
|
|
406813
|
-
return object != null && hasPath_default(object,
|
|
406812
|
+
function hasIn(object, path12) {
|
|
406813
|
+
return object != null && hasPath_default(object, path12, baseHasIn_default);
|
|
406814
406814
|
}
|
|
406815
406815
|
var hasIn_default = hasIn;
|
|
406816
406816
|
|
|
406817
406817
|
// ../../node_modules/lodash-es/_baseMatchesProperty.js
|
|
406818
406818
|
var COMPARE_PARTIAL_FLAG6 = 1;
|
|
406819
406819
|
var COMPARE_UNORDERED_FLAG4 = 2;
|
|
406820
|
-
function baseMatchesProperty(
|
|
406821
|
-
if (isKey_default(
|
|
406822
|
-
return matchesStrictComparable_default(toKey_default(
|
|
406820
|
+
function baseMatchesProperty(path12, srcValue) {
|
|
406821
|
+
if (isKey_default(path12) && isStrictComparable_default(srcValue)) {
|
|
406822
|
+
return matchesStrictComparable_default(toKey_default(path12), srcValue);
|
|
406823
406823
|
}
|
|
406824
406824
|
return function(object) {
|
|
406825
|
-
var objValue = get_default(object,
|
|
406826
|
-
return objValue === void 0 && objValue === srcValue ? hasIn_default(object,
|
|
406825
|
+
var objValue = get_default(object, path12);
|
|
406826
|
+
return objValue === void 0 && objValue === srcValue ? hasIn_default(object, path12) : baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG6 | COMPARE_UNORDERED_FLAG4);
|
|
406827
406827
|
};
|
|
406828
406828
|
}
|
|
406829
406829
|
var baseMatchesProperty_default = baseMatchesProperty;
|
|
@@ -406837,16 +406837,16 @@ function baseProperty(key) {
|
|
|
406837
406837
|
var baseProperty_default = baseProperty;
|
|
406838
406838
|
|
|
406839
406839
|
// ../../node_modules/lodash-es/_basePropertyDeep.js
|
|
406840
|
-
function basePropertyDeep(
|
|
406840
|
+
function basePropertyDeep(path12) {
|
|
406841
406841
|
return function(object) {
|
|
406842
|
-
return baseGet_default(object,
|
|
406842
|
+
return baseGet_default(object, path12);
|
|
406843
406843
|
};
|
|
406844
406844
|
}
|
|
406845
406845
|
var basePropertyDeep_default = basePropertyDeep;
|
|
406846
406846
|
|
|
406847
406847
|
// ../../node_modules/lodash-es/property.js
|
|
406848
|
-
function property(
|
|
406849
|
-
return isKey_default(
|
|
406848
|
+
function property(path12) {
|
|
406849
|
+
return isKey_default(path12) ? baseProperty_default(toKey_default(path12)) : basePropertyDeep_default(path12);
|
|
406850
406850
|
}
|
|
406851
406851
|
var property_default = property;
|
|
406852
406852
|
|
|
@@ -415341,729 +415341,107 @@ function audit() {
|
|
|
415341
415341
|
});
|
|
415342
415342
|
}
|
|
415343
415343
|
|
|
415344
|
-
// src/commands/discover-market-configurator.ts
|
|
415345
|
-
import { readFile as readFile8, writeFile as writeFile5 } from "node:fs/promises";
|
|
415346
|
-
import path8 from "node:path";
|
|
415347
|
-
function discoverMarketConfigurator() {
|
|
415348
|
-
return newCommand().name("discover-market-configurator").description("Temporary script to discover market configurator").addOption(
|
|
415349
|
-
new Option(
|
|
415350
|
-
"--address-provider <address>",
|
|
415351
|
-
"new address provider address"
|
|
415352
|
-
).env("ADDRESS_PROVIDER")
|
|
415353
|
-
).addOption(
|
|
415354
|
-
new Option("--shared-dir <dir>", "dir to put output files").env(
|
|
415355
|
-
"SHARED_DIR"
|
|
415356
|
-
)
|
|
415357
|
-
).addOption(
|
|
415358
|
-
new Option("--anvil-url <url>", "anvil rpc url").env("ANVIL_URL")
|
|
415359
|
-
).action(async (opts) => {
|
|
415360
|
-
log_default.info("starting sdk v3.1 example");
|
|
415361
|
-
let {
|
|
415362
|
-
addressProviderJson,
|
|
415363
|
-
addressProvider,
|
|
415364
|
-
anvilUrl = "http://127.0.0.1:8545",
|
|
415365
|
-
sharedDir = "."
|
|
415366
|
-
} = opts;
|
|
415367
|
-
if (!addressProvider) {
|
|
415368
|
-
try {
|
|
415369
|
-
addressProvider = await readFile8(addressProviderJson, "utf-8").then(JSON.parse).then((data) => data.addressProvider);
|
|
415370
|
-
} catch {
|
|
415371
|
-
}
|
|
415372
|
-
}
|
|
415373
|
-
if (!addressProvider) {
|
|
415374
|
-
throw new Error("Address provider not found");
|
|
415375
|
-
}
|
|
415376
|
-
log_default.info(`Using address provider: ${addressProvider}`);
|
|
415377
|
-
const client = createAnvilClient({
|
|
415378
|
-
transport: http(anvilUrl)
|
|
415379
|
-
});
|
|
415380
|
-
const marketConfiguratorFactory = await client.readContract({
|
|
415381
|
-
address: addressProvider,
|
|
415382
|
-
abi: iAddressProviderV310Abi,
|
|
415383
|
-
functionName: "getAddressOrRevert",
|
|
415384
|
-
args: [stringToHex("MARKET_CONFIGURATOR_FACTORY", { size: 32 }), 0n]
|
|
415385
|
-
});
|
|
415386
|
-
log_default.info(`Market configurator factory: ${marketConfiguratorFactory}`);
|
|
415387
|
-
const mcfAbi = parseAbi([
|
|
415388
|
-
"function getMarketConfigurators() view returns (address[])"
|
|
415389
|
-
]);
|
|
415390
|
-
const marketConfigurators = await client.readContract({
|
|
415391
|
-
address: marketConfiguratorFactory,
|
|
415392
|
-
abi: mcfAbi,
|
|
415393
|
-
functionName: "getMarketConfigurators"
|
|
415394
|
-
});
|
|
415395
|
-
log_default.info(`Market configurators: ${marketConfigurators}`);
|
|
415396
|
-
if (marketConfigurators.length > 0) {
|
|
415397
|
-
const marketConfiguratorJson = path8.resolve(
|
|
415398
|
-
sharedDir,
|
|
415399
|
-
"market-configurator-gearbox.json"
|
|
415400
|
-
);
|
|
415401
|
-
await writeFile5(
|
|
415402
|
-
marketConfiguratorJson,
|
|
415403
|
-
json_stringify({ marketConfigurator: marketConfigurators[0] })
|
|
415404
|
-
);
|
|
415405
|
-
log_default.info(`Market configurator written to ${marketConfiguratorJson}`);
|
|
415406
|
-
}
|
|
415407
|
-
log_default.info("done");
|
|
415408
|
-
});
|
|
415409
|
-
}
|
|
415410
|
-
|
|
415411
415344
|
// src/commands/execute-jsons/index.ts
|
|
415412
|
-
import { mkdir, writeFile as
|
|
415413
|
-
import
|
|
415345
|
+
import { mkdir, writeFile as writeFile5 } from "node:fs/promises";
|
|
415346
|
+
import path8 from "node:path";
|
|
415414
415347
|
|
|
415415
415348
|
// src/commands/execute-jsons/execute.ts
|
|
415416
|
-
|
|
415417
|
-
|
|
415418
|
-
|
|
415419
|
-
|
|
415420
|
-
|
|
415349
|
+
import { readFile as readFile8 } from "node:fs/promises";
|
|
415350
|
+
async function executeJSON({
|
|
415351
|
+
jsonPath,
|
|
415352
|
+
rpcURL
|
|
415353
|
+
}) {
|
|
415354
|
+
const plain = await readFile8(jsonPath, "utf-8");
|
|
415355
|
+
const txs = json_parse(plain);
|
|
415356
|
+
if (txs.length === 0) {
|
|
415357
|
+
log_default.error("No transactions found");
|
|
415358
|
+
return;
|
|
415359
|
+
}
|
|
415360
|
+
const client = createPublicClient({
|
|
415361
|
+
transport: http(rpcURL),
|
|
415362
|
+
pollingInterval: 50,
|
|
415363
|
+
cacheTime: 0
|
|
415364
|
+
}).extend(testActions({ mode: "anvil" }));
|
|
415365
|
+
const marketConfigurator = txs[0].to;
|
|
415366
|
+
log_default.debug("Market configurator: ", marketConfigurator);
|
|
415367
|
+
const owner = await client.readContract({
|
|
415368
|
+
address: marketConfigurator,
|
|
415369
|
+
abi: parseAbi(["function admin() view returns (address)"]),
|
|
415370
|
+
functionName: "admin"
|
|
415421
415371
|
});
|
|
415422
|
-
|
|
415372
|
+
await client.setCode({
|
|
415373
|
+
address: owner,
|
|
415374
|
+
bytecode: "0x"
|
|
415375
|
+
});
|
|
415376
|
+
await client.setBalance({
|
|
415377
|
+
address: owner,
|
|
415378
|
+
value: parseEther("10")
|
|
415379
|
+
});
|
|
415380
|
+
await client.impersonateAccount({
|
|
415381
|
+
address: owner
|
|
415382
|
+
});
|
|
415383
|
+
const chain = await client.getChainId();
|
|
415423
415384
|
const walletClient = createWalletClient({
|
|
415424
|
-
account,
|
|
415425
|
-
chain:
|
|
415426
|
-
|
|
415385
|
+
account: owner,
|
|
415386
|
+
chain: {
|
|
415387
|
+
id: chain,
|
|
415388
|
+
name: "Anvil",
|
|
415389
|
+
nativeCurrency: {
|
|
415390
|
+
name: "Ether",
|
|
415391
|
+
symbol: "ETH",
|
|
415392
|
+
decimals: 18
|
|
415393
|
+
},
|
|
415394
|
+
rpcUrls: { default: { http: [rpcURL] } }
|
|
415395
|
+
},
|
|
415396
|
+
transport: http(rpcURL),
|
|
415397
|
+
pollingInterval: 50,
|
|
415398
|
+
cacheTime: 0
|
|
415427
415399
|
});
|
|
415428
|
-
|
|
415429
|
-
|
|
415430
|
-
|
|
415431
|
-
|
|
415432
|
-
`);
|
|
415433
|
-
if (balance < BigInt(10 ** 18)) {
|
|
415434
|
-
const sponsorAccount = privateKeyToAccount(sponsorPK);
|
|
415435
|
-
const sponsorWalletClient = createWalletClient({
|
|
415436
|
-
account: sponsorAccount,
|
|
415437
|
-
chain: mainnet,
|
|
415438
|
-
transport: http(rpcUrl)
|
|
415439
|
-
});
|
|
415440
|
-
console.log("\nTransferring 1 ETH from sponsor to account...");
|
|
415441
|
-
const transferHash = await sponsorWalletClient.sendTransaction({
|
|
415442
|
-
to: account.address,
|
|
415443
|
-
value: BigInt(10 ** 18)
|
|
415444
|
-
// 1 ETH
|
|
415445
|
-
});
|
|
415446
|
-
console.log(`Transfer hash: ${transferHash}`);
|
|
415447
|
-
console.log("Waiting for transfer confirmation...");
|
|
415448
|
-
const transferReceipt = await publicClient.waitForTransactionReceipt({
|
|
415449
|
-
hash: transferHash
|
|
415450
|
-
});
|
|
415451
|
-
console.log(`Transfer confirmed in block ${transferReceipt.blockNumber}`);
|
|
415452
|
-
console.log(`Gas used: ${transferReceipt.gasUsed}`);
|
|
415453
|
-
console.log(
|
|
415454
|
-
`Status: ${transferReceipt.status === "success" ? "Success" : "Failed"}
|
|
415455
|
-
`
|
|
415456
|
-
);
|
|
415457
|
-
}
|
|
415458
|
-
for (let i = 0; i < jsonData.length; i++) {
|
|
415459
|
-
const tx = jsonData[i];
|
|
415460
|
-
console.log(`
|
|
415461
|
-
Transaction ${i + 1}/${jsonData.length}`);
|
|
415462
|
-
console.log("----------------------------------------");
|
|
415463
|
-
console.log(`To: ${tx.to}`);
|
|
415400
|
+
for (let i = 0; i < txs.length; i++) {
|
|
415401
|
+
const tx = txs[i];
|
|
415402
|
+
log_default.debug(`Transaction ${i + 1}/${txs.length}`);
|
|
415403
|
+
log_default.debug(`To: ${tx.to}`);
|
|
415464
415404
|
if (tx.contractMethod) {
|
|
415465
|
-
|
|
415405
|
+
log_default.debug(`Method: ${tx.contractMethod.name}`);
|
|
415466
415406
|
if (tx.contractInputsValues) {
|
|
415467
|
-
|
|
415407
|
+
log_default.debug("Input Values:");
|
|
415468
415408
|
Object.entries(tx.contractInputsValues).forEach(([key, value]) => {
|
|
415469
|
-
|
|
415409
|
+
log_default.debug(` ${key}: ${value}`);
|
|
415470
415410
|
});
|
|
415471
415411
|
}
|
|
415472
415412
|
}
|
|
415473
415413
|
if (tx.description) {
|
|
415474
|
-
|
|
415414
|
+
log_default.debug(`Description: ${tx.description}`);
|
|
415475
415415
|
}
|
|
415476
|
-
|
|
415416
|
+
log_default.debug(`Value: ${tx.value || 0} wei`);
|
|
415477
415417
|
try {
|
|
415478
|
-
|
|
415418
|
+
log_default.debug("Sending transaction...");
|
|
415479
415419
|
const hash2 = await walletClient.sendTransaction({
|
|
415480
415420
|
to: tx.to,
|
|
415481
415421
|
value: BigInt(tx.value || 0),
|
|
415482
415422
|
data: tx.callData,
|
|
415483
|
-
gas: BigInt(29e6)
|
|
415423
|
+
gas: BigInt(29e6),
|
|
415424
|
+
chain: walletClient.chain
|
|
415484
415425
|
});
|
|
415485
|
-
|
|
415486
|
-
|
|
415487
|
-
const receipt = await
|
|
415488
|
-
|
|
415489
|
-
|
|
415490
|
-
|
|
415426
|
+
log_default.debug(`Transaction hash: ${hash2}`);
|
|
415427
|
+
log_default.debug("Waiting for confirmation...");
|
|
415428
|
+
const receipt = await client.waitForTransactionReceipt({ hash: hash2 });
|
|
415429
|
+
log_default.debug(`Confirmed in block ${receipt.blockNumber}`);
|
|
415430
|
+
log_default.debug(`Gas used: ${receipt.gasUsed}`);
|
|
415431
|
+
log_default.debug(
|
|
415491
415432
|
`Status: ${receipt.status === "success" ? "Success" : "Failed"}`
|
|
415492
415433
|
);
|
|
415493
415434
|
} catch (error) {
|
|
415494
|
-
|
|
415435
|
+
log_default.error("Error executing transaction:", error);
|
|
415495
415436
|
}
|
|
415496
415437
|
}
|
|
415497
415438
|
}
|
|
415498
415439
|
|
|
415499
|
-
// src/commands/execute-jsons/gip.json
|
|
415500
|
-
var gip_default = [
|
|
415501
|
-
{
|
|
415502
|
-
to: "0x67b900f24357e3e0b7b481b2852170955ff52221",
|
|
415503
|
-
value: "0",
|
|
415504
|
-
contractMethod: {
|
|
415505
|
-
inputs: [
|
|
415506
|
-
{
|
|
415507
|
-
name: "minorVersion",
|
|
415508
|
-
internalType: "uint256",
|
|
415509
|
-
type: "uint256"
|
|
415510
|
-
},
|
|
415511
|
-
{
|
|
415512
|
-
name: "underlying",
|
|
415513
|
-
internalType: "address",
|
|
415514
|
-
type: "address"
|
|
415515
|
-
},
|
|
415516
|
-
{
|
|
415517
|
-
name: "name",
|
|
415518
|
-
internalType: "string",
|
|
415519
|
-
type: "string"
|
|
415520
|
-
},
|
|
415521
|
-
{
|
|
415522
|
-
name: "symbol",
|
|
415523
|
-
internalType: "string",
|
|
415524
|
-
type: "string"
|
|
415525
|
-
},
|
|
415526
|
-
{
|
|
415527
|
-
name: "interestRateModelParams",
|
|
415528
|
-
internalType: "struct DeployParams",
|
|
415529
|
-
type: "tuple",
|
|
415530
|
-
components: [
|
|
415531
|
-
{
|
|
415532
|
-
name: "postfix",
|
|
415533
|
-
internalType: "bytes32",
|
|
415534
|
-
type: "bytes32"
|
|
415535
|
-
},
|
|
415536
|
-
{
|
|
415537
|
-
name: "salt",
|
|
415538
|
-
internalType: "bytes32",
|
|
415539
|
-
type: "bytes32"
|
|
415540
|
-
},
|
|
415541
|
-
{
|
|
415542
|
-
name: "constructorParams",
|
|
415543
|
-
internalType: "bytes",
|
|
415544
|
-
type: "bytes"
|
|
415545
|
-
}
|
|
415546
|
-
]
|
|
415547
|
-
},
|
|
415548
|
-
{
|
|
415549
|
-
name: "rateKeeperParams",
|
|
415550
|
-
internalType: "struct DeployParams",
|
|
415551
|
-
type: "tuple",
|
|
415552
|
-
components: [
|
|
415553
|
-
{
|
|
415554
|
-
name: "postfix",
|
|
415555
|
-
internalType: "bytes32",
|
|
415556
|
-
type: "bytes32"
|
|
415557
|
-
},
|
|
415558
|
-
{
|
|
415559
|
-
name: "salt",
|
|
415560
|
-
internalType: "bytes32",
|
|
415561
|
-
type: "bytes32"
|
|
415562
|
-
},
|
|
415563
|
-
{
|
|
415564
|
-
name: "constructorParams",
|
|
415565
|
-
internalType: "bytes",
|
|
415566
|
-
type: "bytes"
|
|
415567
|
-
}
|
|
415568
|
-
]
|
|
415569
|
-
},
|
|
415570
|
-
{
|
|
415571
|
-
name: "lossPolicyParams",
|
|
415572
|
-
internalType: "struct DeployParams",
|
|
415573
|
-
type: "tuple",
|
|
415574
|
-
components: [
|
|
415575
|
-
{
|
|
415576
|
-
name: "postfix",
|
|
415577
|
-
internalType: "bytes32",
|
|
415578
|
-
type: "bytes32"
|
|
415579
|
-
},
|
|
415580
|
-
{
|
|
415581
|
-
name: "salt",
|
|
415582
|
-
internalType: "bytes32",
|
|
415583
|
-
type: "bytes32"
|
|
415584
|
-
},
|
|
415585
|
-
{
|
|
415586
|
-
name: "constructorParams",
|
|
415587
|
-
internalType: "bytes",
|
|
415588
|
-
type: "bytes"
|
|
415589
|
-
}
|
|
415590
|
-
]
|
|
415591
|
-
},
|
|
415592
|
-
{
|
|
415593
|
-
name: "underlyingPriceFeed",
|
|
415594
|
-
internalType: "address",
|
|
415595
|
-
type: "address"
|
|
415596
|
-
}
|
|
415597
|
-
],
|
|
415598
|
-
name: "createMarket",
|
|
415599
|
-
payable: false
|
|
415600
|
-
},
|
|
415601
|
-
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)",
|
|
415602
|
-
callData: "0x0575e3990000000000000000000000000000000000000000000000000000000000000136000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000002e000000000000000000000000000000000000000000000000000000000000003a00000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b84190000000000000000000000000000000000000000000000000000000000000010546865206669727374206d61726b657400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000564574554480000000000000000000000000000000000000000000000000000004c494e45415200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000001d4c0000000000000000000000000000000000000000000000000000000000002328000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000007d00000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000000154554d424c4552000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000e5d32b35b0d7b8d171325f815b65230881e67ac000000000000000000000000000000000000000000000000000000000000000044454641554c54000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000e5d32b35b0d7b8d171325f815b65230881e67ac000000000000000000000000f2ef708b652410233d7e1e63ae10a66a64449b88",
|
|
415603
|
-
contractInputsValues: {
|
|
415604
|
-
minorVersion: {
|
|
415605
|
-
__type: "bigint",
|
|
415606
|
-
__value: "310"
|
|
415607
|
-
},
|
|
415608
|
-
underlying: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
|
|
415609
|
-
name: "The first market",
|
|
415610
|
-
symbol: "dWETH",
|
|
415611
|
-
interestRateModelParams: {
|
|
415612
|
-
postfix: "0x4c494e4541520000000000000000000000000000000000000000000000000000",
|
|
415613
|
-
salt: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
415614
|
-
constructorParams: "0x0000000000000000000000000000000000000000000000000000000000001d4c0000000000000000000000000000000000000000000000000000000000002328000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000000001"
|
|
415615
|
-
},
|
|
415616
|
-
rateKeeperParams: {
|
|
415617
|
-
postfix: "0x54554d424c455200000000000000000000000000000000000000000000000000",
|
|
415618
|
-
salt: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
415619
|
-
constructorParams: "0x0000000000000000000000000e5d32b35b0d7b8d171325f815b65230881e67ac0000000000000000000000000000000000000000000000000000000000000000"
|
|
415620
|
-
},
|
|
415621
|
-
lossPolicyParams: {
|
|
415622
|
-
postfix: "0x44454641554c5400000000000000000000000000000000000000000000000000",
|
|
415623
|
-
salt: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
415624
|
-
constructorParams: "0x0000000000000000000000000e5d32b35b0d7b8d171325f815b65230881e67ac000000000000000000000000f2ef708b652410233d7e1e63ae10a66a64449b88"
|
|
415625
|
-
},
|
|
415626
|
-
underlyingPriceFeed: "0x5f4ec3df9cbd43714fe2740f5e3616155c5b8419"
|
|
415627
|
-
},
|
|
415628
|
-
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)'
|
|
415629
|
-
},
|
|
415630
|
-
{
|
|
415631
|
-
to: "0x67b900f24357e3e0b7b481b2852170955ff52221",
|
|
415632
|
-
value: "0",
|
|
415633
|
-
contractMethod: {
|
|
415634
|
-
inputs: [
|
|
415635
|
-
{
|
|
415636
|
-
name: "pool",
|
|
415637
|
-
internalType: "address",
|
|
415638
|
-
type: "address"
|
|
415639
|
-
},
|
|
415640
|
-
{
|
|
415641
|
-
name: "token",
|
|
415642
|
-
internalType: "address",
|
|
415643
|
-
type: "address"
|
|
415644
|
-
},
|
|
415645
|
-
{
|
|
415646
|
-
name: "priceFeed",
|
|
415647
|
-
internalType: "address",
|
|
415648
|
-
type: "address"
|
|
415649
|
-
}
|
|
415650
|
-
],
|
|
415651
|
-
name: "addToken",
|
|
415652
|
-
payable: false
|
|
415653
|
-
},
|
|
415654
|
-
signature: "function addToken(address pool, address token, address priceFeed)",
|
|
415655
|
-
callData: "0xc6e85b3b0000000000000000000000000e5d32b35b0d7b8d171325f815b65230881e67ac000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000008fffffd4afb6115b954bd326cbe7b4ba576818f6",
|
|
415656
|
-
contractInputsValues: {
|
|
415657
|
-
pool: "0x0e5d32b35b0d7b8d171325f815b65230881e67ac",
|
|
415658
|
-
token: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
415659
|
-
priceFeed: "0x8fffffd4afb6115b954bd326cbe7b4ba576818f6"
|
|
415660
|
-
},
|
|
415661
|
-
description: "MarketConfigurator.addToken(pool: 0x0E5d32b35B0D7b8D171325F815b65230881E67AC, token: 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, priceFeed: 0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6)"
|
|
415662
|
-
},
|
|
415663
|
-
{
|
|
415664
|
-
to: "0x67b900f24357e3e0b7b481b2852170955ff52221",
|
|
415665
|
-
value: "0",
|
|
415666
|
-
contractMethod: {
|
|
415667
|
-
inputs: [
|
|
415668
|
-
{
|
|
415669
|
-
name: "pool",
|
|
415670
|
-
internalType: "address",
|
|
415671
|
-
type: "address"
|
|
415672
|
-
},
|
|
415673
|
-
{
|
|
415674
|
-
name: "token",
|
|
415675
|
-
internalType: "address",
|
|
415676
|
-
type: "address"
|
|
415677
|
-
},
|
|
415678
|
-
{
|
|
415679
|
-
name: "priceFeed",
|
|
415680
|
-
internalType: "address",
|
|
415681
|
-
type: "address"
|
|
415682
|
-
}
|
|
415683
|
-
],
|
|
415684
|
-
name: "addToken",
|
|
415685
|
-
payable: false
|
|
415686
|
-
},
|
|
415687
|
-
signature: "function addToken(address pool, address token, address priceFeed)",
|
|
415688
|
-
callData: "0xc6e85b3b0000000000000000000000000e5d32b35b0d7b8d171325f815b65230881e67ac000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000003e7d1eab13ad0104d2750b8863b489d65364e32d",
|
|
415689
|
-
contractInputsValues: {
|
|
415690
|
-
pool: "0x0e5d32b35b0d7b8d171325f815b65230881e67ac",
|
|
415691
|
-
token: "0xdac17f958d2ee523a2206206994597c13d831ec7",
|
|
415692
|
-
priceFeed: "0x3e7d1eab13ad0104d2750b8863b489d65364e32d"
|
|
415693
|
-
},
|
|
415694
|
-
description: "MarketConfigurator.addToken(pool: 0x0E5d32b35B0D7b8D171325F815b65230881E67AC, token: 0xdAC17F958D2ee523a2206206994597C13D831ec7, priceFeed: 0x3E7d1eAB13ad0104d2750B8863b489D65364e32D)"
|
|
415695
|
-
},
|
|
415696
|
-
{
|
|
415697
|
-
to: "0x67b900f24357e3e0b7b481b2852170955ff52221",
|
|
415698
|
-
value: "0",
|
|
415699
|
-
contractMethod: {
|
|
415700
|
-
inputs: [
|
|
415701
|
-
{
|
|
415702
|
-
name: "minorVersion",
|
|
415703
|
-
internalType: "uint256",
|
|
415704
|
-
type: "uint256"
|
|
415705
|
-
},
|
|
415706
|
-
{
|
|
415707
|
-
name: "pool",
|
|
415708
|
-
internalType: "address",
|
|
415709
|
-
type: "address"
|
|
415710
|
-
},
|
|
415711
|
-
{
|
|
415712
|
-
name: "encdodedParams",
|
|
415713
|
-
internalType: "bytes",
|
|
415714
|
-
type: "bytes"
|
|
415715
|
-
}
|
|
415716
|
-
],
|
|
415717
|
-
name: "createCreditSuite",
|
|
415718
|
-
payable: false
|
|
415719
|
-
},
|
|
415720
|
-
signature: "function createCreditSuite(uint256 minorVersion, address pool, bytes encdodedParams) returns (address creditManager)",
|
|
415721
|
-
callData: "0x17739c1700000000000000000000000000000000000000000000000000000000000001360000000000000000000000000e5d32b35b0d7b8d171325f815b65230881e67ac000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000fa000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000003635c9adc5dea0000000000000000000000000000000000000000000000000010f0cf064dd5920000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000000952657374616b696e67000000000000000000000000000000000000000000000044454641554c5400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000f2ef708b652410233d7e1e63ae10a66a64449b88",
|
|
415722
|
-
contractInputsValues: {
|
|
415723
|
-
minorVersion: {
|
|
415724
|
-
__type: "bigint",
|
|
415725
|
-
__value: "310"
|
|
415726
|
-
},
|
|
415727
|
-
pool: "0x0e5d32b35b0d7b8d171325f815b65230881e67ac",
|
|
415728
|
-
encdodedParams: "0x0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000fa000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000003635c9adc5dea0000000000000000000000000000000000000000000000000010f0cf064dd5920000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000000952657374616b696e67000000000000000000000000000000000000000000000044454641554c5400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000f2ef708b652410233d7e1e63ae10a66a64449b88"
|
|
415729
|
-
},
|
|
415730
|
-
description: "MarketConfigurator.createCreditSuite(minorVersion: 310, pool: 0x0E5d32b35B0D7b8D171325F815b65230881E67AC, encdodedParams: 0x0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000fa000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000003635c9adc5dea0000000000000000000000000000000000000000000000000010f0cf064dd5920000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000000952657374616b696e67000000000000000000000000000000000000000000000044454641554c5400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000f2ef708b652410233d7e1e63ae10a66a64449b88)"
|
|
415731
|
-
},
|
|
415732
|
-
{
|
|
415733
|
-
to: "0x67b900f24357e3e0b7b481b2852170955ff52221",
|
|
415734
|
-
value: "0",
|
|
415735
|
-
contractMethod: {
|
|
415736
|
-
inputs: [
|
|
415737
|
-
{
|
|
415738
|
-
name: "creditManager",
|
|
415739
|
-
internalType: "address",
|
|
415740
|
-
type: "address"
|
|
415741
|
-
},
|
|
415742
|
-
{
|
|
415743
|
-
name: "data",
|
|
415744
|
-
internalType: "bytes",
|
|
415745
|
-
type: "bytes"
|
|
415746
|
-
}
|
|
415747
|
-
],
|
|
415748
|
-
name: "configureCreditSuite",
|
|
415749
|
-
payable: false
|
|
415750
|
-
},
|
|
415751
|
-
signature: "function configureCreditSuite(address creditManager, bytes data)",
|
|
415752
|
-
callData: "0x27576f00000000000000000000000000c18bc642571e839520be6ac66dd2d7cc403a0d70000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000443e7c88d6000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000023f000000000000000000000000000000000000000000000000000000000",
|
|
415753
|
-
contractInputsValues: {
|
|
415754
|
-
creditManager: "0xc18bc642571e839520be6ac66dd2d7cc403a0d70",
|
|
415755
|
-
data: "0x3e7c88d6000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000023f0"
|
|
415756
|
-
},
|
|
415757
|
-
description: "MarketConfigurator.configureCreditSuite(creditManager: 0xc18bc642571E839520Be6ac66DD2d7CC403A0D70, data: 0x3e7c88d6000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000023f0)"
|
|
415758
|
-
},
|
|
415759
|
-
{
|
|
415760
|
-
to: "0x67b900f24357e3e0b7b481b2852170955ff52221",
|
|
415761
|
-
value: "0",
|
|
415762
|
-
contractMethod: {
|
|
415763
|
-
inputs: [
|
|
415764
|
-
{
|
|
415765
|
-
name: "creditManager",
|
|
415766
|
-
internalType: "address",
|
|
415767
|
-
type: "address"
|
|
415768
|
-
},
|
|
415769
|
-
{
|
|
415770
|
-
name: "data",
|
|
415771
|
-
internalType: "bytes",
|
|
415772
|
-
type: "bytes"
|
|
415773
|
-
}
|
|
415774
|
-
],
|
|
415775
|
-
name: "configureCreditSuite",
|
|
415776
|
-
payable: false
|
|
415777
|
-
},
|
|
415778
|
-
signature: "function configureCreditSuite(address creditManager, bytes data)",
|
|
415779
|
-
callData: "0x27576f00000000000000000000000000c18bc642571e839520be6ac66dd2d7cc403a0d70000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000443e7c88d6000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000000000232800000000000000000000000000000000000000000000000000000000",
|
|
415780
|
-
contractInputsValues: {
|
|
415781
|
-
creditManager: "0xc18bc642571e839520be6ac66dd2d7cc403a0d70",
|
|
415782
|
-
data: "0x3e7c88d6000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000000000000000000000000000000000000002328"
|
|
415783
|
-
},
|
|
415784
|
-
description: "MarketConfigurator.configureCreditSuite(creditManager: 0xc18bc642571E839520Be6ac66DD2d7CC403A0D70, data: 0x3e7c88d6000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000000000000000000000000000000000000002328)"
|
|
415785
|
-
},
|
|
415786
|
-
{
|
|
415787
|
-
to: "0x67b900f24357e3e0b7b481b2852170955ff52221",
|
|
415788
|
-
value: "0",
|
|
415789
|
-
contractMethod: {
|
|
415790
|
-
inputs: [
|
|
415791
|
-
{
|
|
415792
|
-
name: "creditManager",
|
|
415793
|
-
internalType: "address",
|
|
415794
|
-
type: "address"
|
|
415795
|
-
},
|
|
415796
|
-
{
|
|
415797
|
-
name: "data",
|
|
415798
|
-
internalType: "bytes",
|
|
415799
|
-
type: "bytes"
|
|
415800
|
-
}
|
|
415801
|
-
],
|
|
415802
|
-
name: "configureCreditSuite",
|
|
415803
|
-
payable: false
|
|
415804
|
-
},
|
|
415805
|
-
signature: "function configureCreditSuite(address creditManager, bytes data)",
|
|
415806
|
-
callData: "0x27576f00000000000000000000000000c18bc642571e839520be6ac66dd2d7cc403a0d70000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e4cda1a2710000000000000000000000000000000000000000000000000000000000000020554e49535741505f56325f524f55544552000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000040000000000000000000000000c18bc642571e839520be6ac66dd2d7cc403a0d700000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d00000000000000000000000000000000000000000000000000000000",
|
|
415807
|
-
contractInputsValues: {
|
|
415808
|
-
creditManager: "0xc18bc642571e839520be6ac66dd2d7cc403a0d70",
|
|
415809
|
-
data: "0xcda1a2710000000000000000000000000000000000000000000000000000000000000020554e49535741505f56325f524f55544552000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000040000000000000000000000000c18bc642571e839520be6ac66dd2d7cc403a0d700000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d"
|
|
415810
|
-
},
|
|
415811
|
-
description: "MarketConfigurator.configureCreditSuite(creditManager: 0xc18bc642571E839520Be6ac66DD2d7CC403A0D70, data: 0xcda1a2710000000000000000000000000000000000000000000000000000000000000020554e49535741505f56325f524f55544552000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000040000000000000000000000000c18bc642571e839520be6ac66dd2d7cc403a0d700000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d)"
|
|
415812
|
-
},
|
|
415813
|
-
{
|
|
415814
|
-
to: "0x67b900f24357e3e0b7b481b2852170955ff52221",
|
|
415815
|
-
value: "0",
|
|
415816
|
-
contractMethod: {
|
|
415817
|
-
inputs: [
|
|
415818
|
-
{
|
|
415819
|
-
name: "pool",
|
|
415820
|
-
internalType: "address",
|
|
415821
|
-
type: "address"
|
|
415822
|
-
},
|
|
415823
|
-
{
|
|
415824
|
-
name: "data",
|
|
415825
|
-
internalType: "bytes",
|
|
415826
|
-
type: "bytes"
|
|
415827
|
-
}
|
|
415828
|
-
],
|
|
415829
|
-
name: "configureRateKeeper",
|
|
415830
|
-
payable: false
|
|
415831
|
-
},
|
|
415832
|
-
signature: "function configureRateKeeper(address pool, bytes data)",
|
|
415833
|
-
callData: "0xd2c6cd710000000000000000000000000e5d32b35b0d7b8d171325f815b65230881e67ac000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000442bdb7097000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000",
|
|
415834
|
-
contractInputsValues: {
|
|
415835
|
-
pool: "0x0e5d32b35b0d7b8d171325f815b65230881e67ac",
|
|
415836
|
-
data: "0x2bdb7097000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000001f4"
|
|
415837
|
-
},
|
|
415838
|
-
description: "MarketConfigurator.configureRateKeeper(pool: 0x0E5d32b35B0D7b8D171325F815b65230881E67AC, data: 0x2bdb7097000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000001f4)"
|
|
415839
|
-
},
|
|
415840
|
-
{
|
|
415841
|
-
to: "0x67b900f24357e3e0b7b481b2852170955ff52221",
|
|
415842
|
-
value: "0",
|
|
415843
|
-
contractMethod: {
|
|
415844
|
-
inputs: [
|
|
415845
|
-
{
|
|
415846
|
-
name: "pool",
|
|
415847
|
-
internalType: "address",
|
|
415848
|
-
type: "address"
|
|
415849
|
-
},
|
|
415850
|
-
{
|
|
415851
|
-
name: "data",
|
|
415852
|
-
internalType: "bytes",
|
|
415853
|
-
type: "bytes"
|
|
415854
|
-
}
|
|
415855
|
-
],
|
|
415856
|
-
name: "configurePool",
|
|
415857
|
-
payable: false
|
|
415858
|
-
},
|
|
415859
|
-
signature: "function configurePool(address pool, bytes data)",
|
|
415860
|
-
callData: "0x63197bd20000000000000000000000000e5d32b35b0d7b8d171325f815b65230881e67ac00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000044b26453f6000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000000b71b0000000000000000000000000000000000000000000000000000000000",
|
|
415861
|
-
contractInputsValues: {
|
|
415862
|
-
pool: "0x0e5d32b35b0d7b8d171325f815b65230881e67ac",
|
|
415863
|
-
data: "0xb26453f6000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000000b71b00"
|
|
415864
|
-
},
|
|
415865
|
-
description: "MarketConfigurator.configurePool(pool: 0x0E5d32b35B0D7b8D171325F815b65230881E67AC, data: 0xb26453f6000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000000b71b00)"
|
|
415866
|
-
},
|
|
415867
|
-
{
|
|
415868
|
-
to: "0x67b900f24357e3e0b7b481b2852170955ff52221",
|
|
415869
|
-
value: "0",
|
|
415870
|
-
contractMethod: {
|
|
415871
|
-
inputs: [
|
|
415872
|
-
{
|
|
415873
|
-
name: "pool",
|
|
415874
|
-
internalType: "address",
|
|
415875
|
-
type: "address"
|
|
415876
|
-
},
|
|
415877
|
-
{
|
|
415878
|
-
name: "data",
|
|
415879
|
-
internalType: "bytes",
|
|
415880
|
-
type: "bytes"
|
|
415881
|
-
}
|
|
415882
|
-
],
|
|
415883
|
-
name: "configurePool",
|
|
415884
|
-
payable: false
|
|
415885
|
-
},
|
|
415886
|
-
signature: "function configurePool(address pool, bytes data)",
|
|
415887
|
-
callData: "0x63197bd20000000000000000000000000e5d32b35b0d7b8d171325f815b65230881e67ac00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000044099b9bd7000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000000000012c00000000000000000000000000000000000000000000000000000000",
|
|
415888
|
-
contractInputsValues: {
|
|
415889
|
-
pool: "0x0e5d32b35b0d7b8d171325f815b65230881e67ac",
|
|
415890
|
-
data: "0x099b9bd7000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000000000012c"
|
|
415891
|
-
},
|
|
415892
|
-
description: "MarketConfigurator.configurePool(pool: 0x0E5d32b35B0D7b8D171325F815b65230881E67AC, data: 0x099b9bd7000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000000000012c)"
|
|
415893
|
-
}
|
|
415894
|
-
];
|
|
415895
|
-
|
|
415896
|
-
// src/commands/execute-jsons/instance.json
|
|
415897
|
-
var instance_default = [
|
|
415898
|
-
{
|
|
415899
|
-
to: "0x018694d1f468ee9aaeb7b5a198d328164427c7f8",
|
|
415900
|
-
value: "0",
|
|
415901
|
-
contractMethod: {
|
|
415902
|
-
inputs: [
|
|
415903
|
-
{
|
|
415904
|
-
name: "target",
|
|
415905
|
-
internalType: "address",
|
|
415906
|
-
type: "address"
|
|
415907
|
-
},
|
|
415908
|
-
{
|
|
415909
|
-
name: "data",
|
|
415910
|
-
internalType: "bytes",
|
|
415911
|
-
type: "bytes"
|
|
415912
|
-
}
|
|
415913
|
-
],
|
|
415914
|
-
name: "configureLocal",
|
|
415915
|
-
payable: false
|
|
415916
|
-
},
|
|
415917
|
-
signature: "function configureLocal(address target, bytes data)",
|
|
415918
|
-
callData: "0xca67e04800000000000000000000000093eec0f29e28c35b8e709c562b66b7debfb54f0e000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a416f5a3920000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b841900000000000000000000000000000000000000000000000000000000000119400000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000d455448205072696365466565640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
415919
|
-
contractInputsValues: {
|
|
415920
|
-
target: "0x93eec0f29e28c35b8e709c562b66b7debfb54f0e",
|
|
415921
|
-
data: "0x16f5a3920000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b841900000000000000000000000000000000000000000000000000000000000119400000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000d4554482050726963654665656400000000000000000000000000000000000000"
|
|
415922
|
-
},
|
|
415923
|
-
description: "InstanceManager.configureLocal(target: 0x93EeC0F29E28c35b8E709c562B66B7DebfB54F0e, data: 0x16f5a3920000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b841900000000000000000000000000000000000000000000000000000000000119400000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000d4554482050726963654665656400000000000000000000000000000000000000)"
|
|
415924
|
-
},
|
|
415925
|
-
{
|
|
415926
|
-
to: "0x018694d1f468ee9aaeb7b5a198d328164427c7f8",
|
|
415927
|
-
value: "0",
|
|
415928
|
-
contractMethod: {
|
|
415929
|
-
inputs: [
|
|
415930
|
-
{
|
|
415931
|
-
name: "target",
|
|
415932
|
-
internalType: "address",
|
|
415933
|
-
type: "address"
|
|
415934
|
-
},
|
|
415935
|
-
{
|
|
415936
|
-
name: "data",
|
|
415937
|
-
internalType: "bytes",
|
|
415938
|
-
type: "bytes"
|
|
415939
|
-
}
|
|
415940
|
-
],
|
|
415941
|
-
name: "configureLocal",
|
|
415942
|
-
payable: false
|
|
415943
|
-
},
|
|
415944
|
-
signature: "function configureLocal(address target, bytes data)",
|
|
415945
|
-
callData: "0xca67e04800000000000000000000000093eec0f29e28c35b8e709c562b66b7debfb54f0e000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a416f5a3920000000000000000000000008fffffd4afb6115b954bd326cbe7b4ba576818f600000000000000000000000000000000000000000000000000000000000119400000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000e5553444320436861696e6c696e6b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
415946
|
-
contractInputsValues: {
|
|
415947
|
-
target: "0x93eec0f29e28c35b8e709c562b66b7debfb54f0e",
|
|
415948
|
-
data: "0x16f5a3920000000000000000000000008fffffd4afb6115b954bd326cbe7b4ba576818f600000000000000000000000000000000000000000000000000000000000119400000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000e5553444320436861696e6c696e6b000000000000000000000000000000000000"
|
|
415949
|
-
},
|
|
415950
|
-
description: "InstanceManager.configureLocal(target: 0x93EeC0F29E28c35b8E709c562B66B7DebfB54F0e, data: 0x16f5a3920000000000000000000000008fffffd4afb6115b954bd326cbe7b4ba576818f600000000000000000000000000000000000000000000000000000000000119400000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000e5553444320436861696e6c696e6b000000000000000000000000000000000000)"
|
|
415951
|
-
},
|
|
415952
|
-
{
|
|
415953
|
-
to: "0x018694d1f468ee9aaeb7b5a198d328164427c7f8",
|
|
415954
|
-
value: "0",
|
|
415955
|
-
contractMethod: {
|
|
415956
|
-
inputs: [
|
|
415957
|
-
{
|
|
415958
|
-
name: "target",
|
|
415959
|
-
internalType: "address",
|
|
415960
|
-
type: "address"
|
|
415961
|
-
},
|
|
415962
|
-
{
|
|
415963
|
-
name: "data",
|
|
415964
|
-
internalType: "bytes",
|
|
415965
|
-
type: "bytes"
|
|
415966
|
-
}
|
|
415967
|
-
],
|
|
415968
|
-
name: "configureLocal",
|
|
415969
|
-
payable: false
|
|
415970
|
-
},
|
|
415971
|
-
signature: "function configureLocal(address target, bytes data)",
|
|
415972
|
-
callData: "0xca67e04800000000000000000000000093eec0f29e28c35b8e709c562b66b7debfb54f0e000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a416f5a3920000000000000000000000003e7d1eab13ad0104d2750b8863b489d65364e32d00000000000000000000000000000000000000000000000000000000000119400000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000e5553445420436861696e6c696e6b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
415973
|
-
contractInputsValues: {
|
|
415974
|
-
target: "0x93eec0f29e28c35b8e709c562b66b7debfb54f0e",
|
|
415975
|
-
data: "0x16f5a3920000000000000000000000003e7d1eab13ad0104d2750b8863b489d65364e32d00000000000000000000000000000000000000000000000000000000000119400000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000e5553445420436861696e6c696e6b000000000000000000000000000000000000"
|
|
415976
|
-
},
|
|
415977
|
-
description: "InstanceManager.configureLocal(target: 0x93EeC0F29E28c35b8E709c562B66B7DebfB54F0e, data: 0x16f5a3920000000000000000000000003e7d1eab13ad0104d2750b8863b489d65364e32d00000000000000000000000000000000000000000000000000000000000119400000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000e5553445420436861696e6c696e6b000000000000000000000000000000000000)"
|
|
415978
|
-
},
|
|
415979
|
-
{
|
|
415980
|
-
to: "0x018694d1f468ee9aaeb7b5a198d328164427c7f8",
|
|
415981
|
-
value: "0",
|
|
415982
|
-
contractMethod: {
|
|
415983
|
-
inputs: [
|
|
415984
|
-
{
|
|
415985
|
-
name: "target",
|
|
415986
|
-
internalType: "address",
|
|
415987
|
-
type: "address"
|
|
415988
|
-
},
|
|
415989
|
-
{
|
|
415990
|
-
name: "data",
|
|
415991
|
-
internalType: "bytes",
|
|
415992
|
-
type: "bytes"
|
|
415993
|
-
}
|
|
415994
|
-
],
|
|
415995
|
-
name: "configureLocal",
|
|
415996
|
-
payable: false
|
|
415997
|
-
},
|
|
415998
|
-
signature: "function configureLocal(address target, bytes data)",
|
|
415999
|
-
callData: "0xca67e04800000000000000000000000093eec0f29e28c35b8e709c562b66b7debfb54f0e0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004445af8396000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b841900000000000000000000000000000000000000000000000000000000",
|
|
416000
|
-
contractInputsValues: {
|
|
416001
|
-
target: "0x93eec0f29e28c35b8e709c562b66b7debfb54f0e",
|
|
416002
|
-
data: "0x45af8396000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419"
|
|
416003
|
-
},
|
|
416004
|
-
description: "InstanceManager.configureLocal(target: 0x93EeC0F29E28c35b8E709c562B66B7DebfB54F0e, data: 0x45af8396000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419)"
|
|
416005
|
-
},
|
|
416006
|
-
{
|
|
416007
|
-
to: "0x018694d1f468ee9aaeb7b5a198d328164427c7f8",
|
|
416008
|
-
value: "0",
|
|
416009
|
-
contractMethod: {
|
|
416010
|
-
inputs: [
|
|
416011
|
-
{
|
|
416012
|
-
name: "target",
|
|
416013
|
-
internalType: "address",
|
|
416014
|
-
type: "address"
|
|
416015
|
-
},
|
|
416016
|
-
{
|
|
416017
|
-
name: "data",
|
|
416018
|
-
internalType: "bytes",
|
|
416019
|
-
type: "bytes"
|
|
416020
|
-
}
|
|
416021
|
-
],
|
|
416022
|
-
name: "configureLocal",
|
|
416023
|
-
payable: false
|
|
416024
|
-
},
|
|
416025
|
-
signature: "function configureLocal(address target, bytes data)",
|
|
416026
|
-
callData: "0xca67e04800000000000000000000000093eec0f29e28c35b8e709c562b66b7debfb54f0e0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004445af8396000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000008fffffd4afb6115b954bd326cbe7b4ba576818f600000000000000000000000000000000000000000000000000000000",
|
|
416027
|
-
contractInputsValues: {
|
|
416028
|
-
target: "0x93eec0f29e28c35b8e709c562b66b7debfb54f0e",
|
|
416029
|
-
data: "0x45af8396000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000008fffffd4afb6115b954bd326cbe7b4ba576818f6"
|
|
416030
|
-
},
|
|
416031
|
-
description: "InstanceManager.configureLocal(target: 0x93EeC0F29E28c35b8E709c562B66B7DebfB54F0e, data: 0x45af8396000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000008fffffd4afb6115b954bd326cbe7b4ba576818f6)"
|
|
416032
|
-
},
|
|
416033
|
-
{
|
|
416034
|
-
to: "0x018694d1f468ee9aaeb7b5a198d328164427c7f8",
|
|
416035
|
-
value: "0",
|
|
416036
|
-
contractMethod: {
|
|
416037
|
-
inputs: [
|
|
416038
|
-
{
|
|
416039
|
-
name: "target",
|
|
416040
|
-
internalType: "address",
|
|
416041
|
-
type: "address"
|
|
416042
|
-
},
|
|
416043
|
-
{
|
|
416044
|
-
name: "data",
|
|
416045
|
-
internalType: "bytes",
|
|
416046
|
-
type: "bytes"
|
|
416047
|
-
}
|
|
416048
|
-
],
|
|
416049
|
-
name: "configureLocal",
|
|
416050
|
-
payable: false
|
|
416051
|
-
},
|
|
416052
|
-
signature: "function configureLocal(address target, bytes data)",
|
|
416053
|
-
callData: "0xca67e04800000000000000000000000093eec0f29e28c35b8e709c562b66b7debfb54f0e0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004445af8396000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000003e7d1eab13ad0104d2750b8863b489d65364e32d00000000000000000000000000000000000000000000000000000000",
|
|
416054
|
-
contractInputsValues: {
|
|
416055
|
-
target: "0x93eec0f29e28c35b8e709c562b66b7debfb54f0e",
|
|
416056
|
-
data: "0x45af8396000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000003e7d1eab13ad0104d2750b8863b489d65364e32d"
|
|
416057
|
-
},
|
|
416058
|
-
description: "InstanceManager.configureLocal(target: 0x93EeC0F29E28c35b8E709c562B66B7DebfB54F0e, data: 0x45af8396000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000003e7d1eab13ad0104d2750b8863b489d65364e32d)"
|
|
416059
|
-
}
|
|
416060
|
-
];
|
|
416061
|
-
|
|
416062
415440
|
// src/commands/execute-jsons/index.ts
|
|
416063
|
-
|
|
416064
|
-
|
|
416065
|
-
|
|
416066
|
-
|
|
415441
|
+
function executeJson() {
|
|
415442
|
+
return newCommand().name("execute-json").description("execute json").addArgument(
|
|
415443
|
+
new Argument("<json_file_path>", "json file with transactions")
|
|
415444
|
+
).addOption(
|
|
416067
415445
|
new Option(
|
|
416068
415446
|
"--address-provider <address>",
|
|
416069
415447
|
"new address provider address"
|
|
@@ -416074,8 +415452,7 @@ function executeJsons() {
|
|
|
416074
415452
|
)
|
|
416075
415453
|
).addOption(
|
|
416076
415454
|
new Option("--anvil-url <url>", "anvil rpc url").env("ANVIL_URL")
|
|
416077
|
-
).action(async (opts) => {
|
|
416078
|
-
log_default.info("starting sdk v3.1 example");
|
|
415455
|
+
).action(async (file, opts) => {
|
|
416079
415456
|
let {
|
|
416080
415457
|
addressProvider,
|
|
416081
415458
|
addressProviderJson,
|
|
@@ -416083,36 +415460,28 @@ function executeJsons() {
|
|
|
416083
415460
|
anvilUrl = "http://127.0.0.1:8545",
|
|
416084
415461
|
sharedDir = "."
|
|
416085
415462
|
} = opts;
|
|
416086
|
-
|
|
416087
|
-
|
|
416088
|
-
|
|
416089
|
-
|
|
416090
|
-
|
|
416091
|
-
|
|
416092
|
-
});
|
|
416093
|
-
|
|
416094
|
-
await executeJson({
|
|
416095
|
-
rpcUrl: anvilUrl,
|
|
416096
|
-
privateKey: INSTNANCE_PK,
|
|
416097
|
-
sponsorPK: SPONSOR_PK,
|
|
416098
|
-
jsonData: gip_default
|
|
416099
|
-
});
|
|
416100
|
-
log_default.info("executed");
|
|
416101
|
-
await mkdir(path9.resolve(sharedDir, "deploy-state"), { recursive: true });
|
|
415463
|
+
const jsonPath = path8.resolve(sharedDir, file);
|
|
415464
|
+
log_default.info(`executing ${jsonPath}`);
|
|
415465
|
+
await executeJSON({
|
|
415466
|
+
jsonPath,
|
|
415467
|
+
rpcURL: anvilUrl
|
|
415468
|
+
});
|
|
415469
|
+
log_default.info(`executed ${jsonPath}`);
|
|
415470
|
+
await mkdir(path8.resolve(sharedDir, "deploy-state"), { recursive: true });
|
|
416102
415471
|
const sdkExample2 = new SDKExample(log_default);
|
|
416103
415472
|
await sdkExample2.run({
|
|
416104
415473
|
addressProvider,
|
|
416105
415474
|
addressProviderJson,
|
|
416106
415475
|
marketConfigurators: marketConfigurators ?? [],
|
|
416107
415476
|
anvilUrl,
|
|
416108
|
-
outFile:
|
|
415477
|
+
outFile: path8.resolve(
|
|
416109
415478
|
sharedDir,
|
|
416110
415479
|
"deploy-state",
|
|
416111
415480
|
"stateAfter.human.json"
|
|
416112
415481
|
)
|
|
416113
415482
|
});
|
|
416114
|
-
await
|
|
416115
|
-
|
|
415483
|
+
await writeFile5(
|
|
415484
|
+
path8.resolve(sharedDir, "deploy-state", "stateAfter.json"),
|
|
416116
415485
|
json_stringify(sdkExample2.sdk.state),
|
|
416117
415486
|
"utf-8"
|
|
416118
415487
|
);
|
|
@@ -416121,8 +415490,8 @@ function executeJsons() {
|
|
|
416121
415490
|
}
|
|
416122
415491
|
|
|
416123
415492
|
// src/commands/open-accounts.ts
|
|
416124
|
-
import { mkdir as mkdir2, writeFile as
|
|
416125
|
-
import
|
|
415493
|
+
import { mkdir as mkdir2, writeFile as writeFile6 } from "node:fs/promises";
|
|
415494
|
+
import path9 from "node:path";
|
|
416126
415495
|
function openAccounts() {
|
|
416127
415496
|
return newCommand().name("open-accounts").description("Script to open accounts in v3.1").addOption(
|
|
416128
415497
|
new Option(
|
|
@@ -416144,21 +415513,21 @@ function openAccounts() {
|
|
|
416144
415513
|
anvilUrl = "http://127.0.0.1:8545",
|
|
416145
415514
|
sharedDir = "."
|
|
416146
415515
|
} = opts;
|
|
416147
|
-
await mkdir2(
|
|
415516
|
+
await mkdir2(path9.resolve(sharedDir, "deploy-state"), { recursive: true });
|
|
416148
415517
|
const sdkExample2 = new SDKExample(log_default);
|
|
416149
415518
|
await sdkExample2.run({
|
|
416150
415519
|
addressProvider,
|
|
416151
415520
|
addressProviderJson,
|
|
416152
415521
|
marketConfigurators: marketConfigurators ?? [],
|
|
416153
415522
|
anvilUrl,
|
|
416154
|
-
outFile:
|
|
415523
|
+
outFile: path9.resolve(
|
|
416155
415524
|
sharedDir,
|
|
416156
415525
|
"deploy-state",
|
|
416157
415526
|
"stateAfter.human.json"
|
|
416158
415527
|
)
|
|
416159
415528
|
});
|
|
416160
|
-
await
|
|
416161
|
-
|
|
415529
|
+
await writeFile6(
|
|
415530
|
+
path9.resolve(sharedDir, "deploy-state", "stateAfter.json"),
|
|
416162
415531
|
json_stringify(sdkExample2.sdk.state),
|
|
416163
415532
|
"utf-8"
|
|
416164
415533
|
);
|
|
@@ -416220,8 +415589,8 @@ function openAccounts() {
|
|
|
416220
415589
|
// sUSDe
|
|
416221
415590
|
}
|
|
416222
415591
|
]);
|
|
416223
|
-
await
|
|
416224
|
-
|
|
415592
|
+
await writeFile6(
|
|
415593
|
+
path9.resolve(sharedDir, "opened-accounts.json"),
|
|
416225
415594
|
json_stringify(opened),
|
|
416226
415595
|
"utf-8"
|
|
416227
415596
|
);
|
|
@@ -416233,20 +415602,20 @@ function openAccounts() {
|
|
|
416233
415602
|
}
|
|
416234
415603
|
|
|
416235
415604
|
// src/commands/parse.ts
|
|
416236
|
-
import { writeFile as
|
|
415605
|
+
import { writeFile as writeFile7 } from "node:fs/promises";
|
|
416237
415606
|
|
|
416238
415607
|
// src/renderer/html/HtmlRenderer.tsx
|
|
416239
415608
|
var import_react = __toESM(require_react(), 1);
|
|
416240
415609
|
var import_server = __toESM(require_server_node(), 1);
|
|
416241
415610
|
import { writeFileSync } from "node:fs";
|
|
416242
|
-
import
|
|
415611
|
+
import path10 from "node:path";
|
|
416243
415612
|
var HtmlRenderer = class {
|
|
416244
415613
|
#htmlFile;
|
|
416245
415614
|
constructor(opts) {
|
|
416246
415615
|
if (!opts.htmlFile) {
|
|
416247
415616
|
throw new Error(`output HTML file not specified`);
|
|
416248
415617
|
}
|
|
416249
|
-
this.#htmlFile =
|
|
415618
|
+
this.#htmlFile = path10.resolve(opts.htmlFile);
|
|
416250
415619
|
}
|
|
416251
415620
|
render(updates) {
|
|
416252
415621
|
const html = (0, import_server.renderToString)(/* @__PURE__ */ import_react.default.createElement("div", null));
|
|
@@ -416279,7 +415648,7 @@ function getRenderer(opts) {
|
|
|
416279
415648
|
var package_default = {
|
|
416280
415649
|
name: "@gearbox-protocol/deploy-tools",
|
|
416281
415650
|
description: "Gearbox deploy tools",
|
|
416282
|
-
version: "5.9.
|
|
415651
|
+
version: "5.9.22",
|
|
416283
415652
|
homepage: "https://gearbox.fi",
|
|
416284
415653
|
keywords: [
|
|
416285
415654
|
"gearbox"
|
|
@@ -416402,7 +415771,7 @@ function parse() {
|
|
|
416402
415771
|
const parser = new UpdateParser(opts, version_default);
|
|
416403
415772
|
const result = await parser.parse(opts);
|
|
416404
415773
|
if (opts.outFile) {
|
|
416405
|
-
await
|
|
415774
|
+
await writeFile7(opts.outFile, json_stringify(result), "utf-8");
|
|
416406
415775
|
}
|
|
416407
415776
|
const renderer = getRenderer(opts);
|
|
416408
415777
|
return renderer?.render(result);
|
|
@@ -416423,8 +415792,8 @@ function printSafeTx() {
|
|
|
416423
415792
|
}
|
|
416424
415793
|
|
|
416425
415794
|
// src/commands/sdk-example.ts
|
|
416426
|
-
import { mkdir as mkdir3, writeFile as
|
|
416427
|
-
import
|
|
415795
|
+
import { mkdir as mkdir3, writeFile as writeFile8 } from "node:fs/promises";
|
|
415796
|
+
import path11 from "node:path";
|
|
416428
415797
|
function sdkExample() {
|
|
416429
415798
|
return newCommand().name("sdk-example").description("SDK example for v3.1").addOption(
|
|
416430
415799
|
new Option(
|
|
@@ -416446,21 +415815,21 @@ function sdkExample() {
|
|
|
416446
415815
|
anvilUrl = "http://127.0.0.1:8545",
|
|
416447
415816
|
sharedDir = "."
|
|
416448
415817
|
} = opts;
|
|
416449
|
-
await mkdir3(
|
|
415818
|
+
await mkdir3(path11.resolve(sharedDir, "deploy-state"), { recursive: true });
|
|
416450
415819
|
const sdkExample2 = new SDKExample(log_default);
|
|
416451
415820
|
await sdkExample2.run({
|
|
416452
415821
|
addressProvider,
|
|
416453
415822
|
addressProviderJson,
|
|
416454
415823
|
marketConfigurators: marketConfigurators ?? [],
|
|
416455
415824
|
anvilUrl,
|
|
416456
|
-
outFile:
|
|
415825
|
+
outFile: path11.resolve(
|
|
416457
415826
|
sharedDir,
|
|
416458
415827
|
"deploy-state",
|
|
416459
415828
|
"stateAfter.human.json"
|
|
416460
415829
|
)
|
|
416461
415830
|
});
|
|
416462
|
-
await
|
|
416463
|
-
|
|
415831
|
+
await writeFile8(
|
|
415832
|
+
path11.resolve(sharedDir, "deploy-state", "stateAfter.json"),
|
|
416464
415833
|
json_stringify(sdkExample2.sdk.state),
|
|
416465
415834
|
"utf-8"
|
|
416466
415835
|
);
|
|
@@ -416513,14 +415882,13 @@ var program2 = new Command();
|
|
|
416513
415882
|
program2.name("deploy-tools").description("gearbox deploy tools").version(version_default);
|
|
416514
415883
|
program2.addCommand(addressTree());
|
|
416515
415884
|
program2.addCommand(audit());
|
|
416516
|
-
program2.addCommand(discoverMarketConfigurator());
|
|
416517
415885
|
program2.addCommand(openAccounts());
|
|
416518
415886
|
program2.addCommand(parse());
|
|
416519
415887
|
program2.addCommand(printSafeTx());
|
|
416520
415888
|
program2.addCommand(sdkExample());
|
|
416521
415889
|
program2.addCommand(verifyEtherscan());
|
|
416522
415890
|
program2.addCommand(zeroLT());
|
|
416523
|
-
program2.addCommand(
|
|
415891
|
+
program2.addCommand(executeJson());
|
|
416524
415892
|
program2.parse();
|
|
416525
415893
|
/*! Bundled license information:
|
|
416526
415894
|
|