@gearbox-protocol/deploy-tools 5.1.1 → 5.1.2
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 +389 -383
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -979,7 +979,7 @@ var require_command = __commonJS({
|
|
|
979
979
|
"../../node_modules/commander/lib/command.js"(exports2) {
|
|
980
980
|
var EventEmitter = __require("node:events").EventEmitter;
|
|
981
981
|
var childProcess = __require("node:child_process");
|
|
982
|
-
var
|
|
982
|
+
var path10 = __require("node:path");
|
|
983
983
|
var fs3 = __require("node:fs");
|
|
984
984
|
var process3 = __require("node:process");
|
|
985
985
|
var { Argument: Argument2, humanReadableArgName } = require_argument();
|
|
@@ -1912,9 +1912,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1912
1912
|
let launchWithNode = false;
|
|
1913
1913
|
const sourceExt = [".js", ".ts", ".tsx", ".mjs", ".cjs"];
|
|
1914
1914
|
function findFile(baseDir, baseName) {
|
|
1915
|
-
const localBin =
|
|
1915
|
+
const localBin = path10.resolve(baseDir, baseName);
|
|
1916
1916
|
if (fs3.existsSync(localBin)) return localBin;
|
|
1917
|
-
if (sourceExt.includes(
|
|
1917
|
+
if (sourceExt.includes(path10.extname(baseName))) return void 0;
|
|
1918
1918
|
const foundExt = sourceExt.find(
|
|
1919
1919
|
(ext) => fs3.existsSync(`${localBin}${ext}`)
|
|
1920
1920
|
);
|
|
@@ -1932,17 +1932,17 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1932
1932
|
} catch (err) {
|
|
1933
1933
|
resolvedScriptPath = this._scriptPath;
|
|
1934
1934
|
}
|
|
1935
|
-
executableDir =
|
|
1936
|
-
|
|
1935
|
+
executableDir = path10.resolve(
|
|
1936
|
+
path10.dirname(resolvedScriptPath),
|
|
1937
1937
|
executableDir
|
|
1938
1938
|
);
|
|
1939
1939
|
}
|
|
1940
1940
|
if (executableDir) {
|
|
1941
1941
|
let localFile = findFile(executableDir, executableFile);
|
|
1942
1942
|
if (!localFile && !subcommand._executableFile && this._scriptPath) {
|
|
1943
|
-
const legacyName =
|
|
1943
|
+
const legacyName = path10.basename(
|
|
1944
1944
|
this._scriptPath,
|
|
1945
|
-
|
|
1945
|
+
path10.extname(this._scriptPath)
|
|
1946
1946
|
);
|
|
1947
1947
|
if (legacyName !== this._name) {
|
|
1948
1948
|
localFile = findFile(
|
|
@@ -1953,7 +1953,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1953
1953
|
}
|
|
1954
1954
|
executableFile = localFile || executableFile;
|
|
1955
1955
|
}
|
|
1956
|
-
launchWithNode = sourceExt.includes(
|
|
1956
|
+
launchWithNode = sourceExt.includes(path10.extname(executableFile));
|
|
1957
1957
|
let proc;
|
|
1958
1958
|
if (process3.platform !== "win32") {
|
|
1959
1959
|
if (launchWithNode) {
|
|
@@ -2793,7 +2793,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2793
2793
|
* @return {Command}
|
|
2794
2794
|
*/
|
|
2795
2795
|
nameFromFilename(filename) {
|
|
2796
|
-
this._name =
|
|
2796
|
+
this._name = path10.basename(filename, path10.extname(filename));
|
|
2797
2797
|
return this;
|
|
2798
2798
|
}
|
|
2799
2799
|
/**
|
|
@@ -2807,9 +2807,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2807
2807
|
* @param {string} [path]
|
|
2808
2808
|
* @return {(string|null|Command)}
|
|
2809
2809
|
*/
|
|
2810
|
-
executableDir(
|
|
2811
|
-
if (
|
|
2812
|
-
this._executableDir =
|
|
2810
|
+
executableDir(path11) {
|
|
2811
|
+
if (path11 === void 0) return this._executableDir;
|
|
2812
|
+
this._executableDir = path11;
|
|
2813
2813
|
return this;
|
|
2814
2814
|
}
|
|
2815
2815
|
/**
|
|
@@ -17239,12 +17239,12 @@ var require_abstract_coder = __commonJS({
|
|
|
17239
17239
|
var logger2 = new logger_1.Logger(_version_1.version);
|
|
17240
17240
|
function checkResultErrors(result) {
|
|
17241
17241
|
var errors = [];
|
|
17242
|
-
var checkErrors = function(
|
|
17242
|
+
var checkErrors = function(path10, object) {
|
|
17243
17243
|
if (!Array.isArray(object)) {
|
|
17244
17244
|
return;
|
|
17245
17245
|
}
|
|
17246
17246
|
for (var key in object) {
|
|
17247
|
-
var childPath =
|
|
17247
|
+
var childPath = path10.slice();
|
|
17248
17248
|
childPath.push(key);
|
|
17249
17249
|
try {
|
|
17250
17250
|
checkErrors(childPath, object[key]);
|
|
@@ -31281,9 +31281,9 @@ var require_lib20 = __commonJS({
|
|
|
31281
31281
|
if (index2 > 4294967295) {
|
|
31282
31282
|
throw new Error("invalid index - " + String(index2));
|
|
31283
31283
|
}
|
|
31284
|
-
var
|
|
31285
|
-
if (
|
|
31286
|
-
|
|
31284
|
+
var path10 = this.path;
|
|
31285
|
+
if (path10) {
|
|
31286
|
+
path10 += "/" + (index2 & ~HardenedBit);
|
|
31287
31287
|
}
|
|
31288
31288
|
var data = new Uint8Array(37);
|
|
31289
31289
|
if (index2 & HardenedBit) {
|
|
@@ -31291,8 +31291,8 @@ var require_lib20 = __commonJS({
|
|
|
31291
31291
|
throw new Error("cannot derive child of neutered node");
|
|
31292
31292
|
}
|
|
31293
31293
|
data.set((0, bytes_1.arrayify)(this.privateKey), 1);
|
|
31294
|
-
if (
|
|
31295
|
-
|
|
31294
|
+
if (path10) {
|
|
31295
|
+
path10 += "'";
|
|
31296
31296
|
}
|
|
31297
31297
|
} else {
|
|
31298
31298
|
data.set((0, bytes_1.arrayify)(this.publicKey));
|
|
@@ -31311,21 +31311,21 @@ var require_lib20 = __commonJS({
|
|
|
31311
31311
|
var ek = new signing_key_1.SigningKey((0, bytes_1.hexlify)(IL));
|
|
31312
31312
|
Ki = ek._addPoint(this.publicKey);
|
|
31313
31313
|
}
|
|
31314
|
-
var mnemonicOrPath =
|
|
31314
|
+
var mnemonicOrPath = path10;
|
|
31315
31315
|
var srcMnemonic = this.mnemonic;
|
|
31316
31316
|
if (srcMnemonic) {
|
|
31317
31317
|
mnemonicOrPath = Object.freeze({
|
|
31318
31318
|
phrase: srcMnemonic.phrase,
|
|
31319
|
-
path:
|
|
31319
|
+
path: path10,
|
|
31320
31320
|
locale: srcMnemonic.locale || "en"
|
|
31321
31321
|
});
|
|
31322
31322
|
}
|
|
31323
31323
|
return new HDNode2(_constructorGuard, ki, Ki, this.fingerprint, bytes32(IR), index2, this.depth + 1, mnemonicOrPath);
|
|
31324
31324
|
};
|
|
31325
|
-
HDNode2.prototype.derivePath = function(
|
|
31326
|
-
var components =
|
|
31325
|
+
HDNode2.prototype.derivePath = function(path10) {
|
|
31326
|
+
var components = path10.split("/");
|
|
31327
31327
|
if (components.length === 0 || components[0] === "m" && this.depth !== 0) {
|
|
31328
|
-
throw new Error("invalid path - " +
|
|
31328
|
+
throw new Error("invalid path - " + path10);
|
|
31329
31329
|
}
|
|
31330
31330
|
if (components[0] === "m") {
|
|
31331
31331
|
components.shift();
|
|
@@ -32079,9 +32079,9 @@ var require_utils4 = __commonJS({
|
|
|
32079
32079
|
return (0, bytes_1.arrayify)(password);
|
|
32080
32080
|
}
|
|
32081
32081
|
exports2.getPassword = getPassword;
|
|
32082
|
-
function searchPath(object,
|
|
32082
|
+
function searchPath(object, path10) {
|
|
32083
32083
|
var currentChild = object;
|
|
32084
|
-
var comps =
|
|
32084
|
+
var comps = path10.toLowerCase().split("/");
|
|
32085
32085
|
for (var i = 0; i < comps.length; i++) {
|
|
32086
32086
|
var matchingChild = null;
|
|
32087
32087
|
for (var key in currentChild) {
|
|
@@ -32968,12 +32968,12 @@ var require_keystore = __commonJS({
|
|
|
32968
32968
|
var mnemonicIv = (0, utils_1.looseArrayify)((0, utils_1.searchPath)(data, "x-ethers/mnemonicCounter"));
|
|
32969
32969
|
var mnemonicCounter = new aes_js_1.default.Counter(mnemonicIv);
|
|
32970
32970
|
var mnemonicAesCtr = new aes_js_1.default.ModeOfOperation.ctr(mnemonicKey, mnemonicCounter);
|
|
32971
|
-
var
|
|
32971
|
+
var path10 = (0, utils_1.searchPath)(data, "x-ethers/path") || hdnode_1.defaultPath;
|
|
32972
32972
|
var locale = (0, utils_1.searchPath)(data, "x-ethers/locale") || "en";
|
|
32973
32973
|
var entropy = (0, bytes_1.arrayify)(mnemonicAesCtr.decrypt(mnemonicCiphertext));
|
|
32974
32974
|
try {
|
|
32975
32975
|
var mnemonic = (0, hdnode_1.entropyToMnemonic)(entropy, locale);
|
|
32976
|
-
var node = hdnode_1.HDNode.fromMnemonic(mnemonic, null, locale).derivePath(
|
|
32976
|
+
var node = hdnode_1.HDNode.fromMnemonic(mnemonic, null, locale).derivePath(path10);
|
|
32977
32977
|
if (node.privateKey != account.privateKey) {
|
|
32978
32978
|
throw new Error("mnemonic mismatch");
|
|
32979
32979
|
}
|
|
@@ -33083,12 +33083,12 @@ var require_keystore = __commonJS({
|
|
|
33083
33083
|
var privateKey = (0, bytes_1.arrayify)(account.privateKey);
|
|
33084
33084
|
var passwordBytes = (0, utils_1.getPassword)(password);
|
|
33085
33085
|
var entropy = null;
|
|
33086
|
-
var
|
|
33086
|
+
var path10 = null;
|
|
33087
33087
|
var locale = null;
|
|
33088
33088
|
if (hasMnemonic(account)) {
|
|
33089
33089
|
var srcMnemonic = account.mnemonic;
|
|
33090
33090
|
entropy = (0, bytes_1.arrayify)((0, hdnode_1.mnemonicToEntropy)(srcMnemonic.phrase, srcMnemonic.locale || "en"));
|
|
33091
|
-
|
|
33091
|
+
path10 = srcMnemonic.path || hdnode_1.defaultPath;
|
|
33092
33092
|
locale = srcMnemonic.locale || "en";
|
|
33093
33093
|
}
|
|
33094
33094
|
var client = options.client;
|
|
@@ -33174,7 +33174,7 @@ var require_keystore = __commonJS({
|
|
|
33174
33174
|
gethFilename: "UTC--" + timestamp + "--" + data.address,
|
|
33175
33175
|
mnemonicCounter: (0, bytes_1.hexlify)(mnemonicIv).substring(2),
|
|
33176
33176
|
mnemonicCiphertext: (0, bytes_1.hexlify)(mnemonicCiphertext).substring(2),
|
|
33177
|
-
path:
|
|
33177
|
+
path: path10,
|
|
33178
33178
|
locale,
|
|
33179
33179
|
version: "0.1"
|
|
33180
33180
|
};
|
|
@@ -34541,11 +34541,11 @@ var require_lib27 = __commonJS({
|
|
|
34541
34541
|
Wallet2.fromEncryptedJsonSync = function(json, password) {
|
|
34542
34542
|
return new Wallet2((0, json_wallets_1.decryptJsonWalletSync)(json, password));
|
|
34543
34543
|
};
|
|
34544
|
-
Wallet2.fromMnemonic = function(mnemonic,
|
|
34545
|
-
if (!
|
|
34546
|
-
|
|
34544
|
+
Wallet2.fromMnemonic = function(mnemonic, path10, wordlist) {
|
|
34545
|
+
if (!path10) {
|
|
34546
|
+
path10 = hdnode_1.defaultPath;
|
|
34547
34547
|
}
|
|
34548
|
-
return new Wallet2(hdnode_1.HDNode.fromMnemonic(mnemonic, null, wordlist).derivePath(
|
|
34548
|
+
return new Wallet2(hdnode_1.HDNode.fromMnemonic(mnemonic, null, wordlist).derivePath(path10));
|
|
34549
34549
|
};
|
|
34550
34550
|
return Wallet2;
|
|
34551
34551
|
}(abstract_signer_1.Signer)
|
|
@@ -46608,13 +46608,13 @@ var require_ipc_provider = __commonJS({
|
|
|
46608
46608
|
/** @class */
|
|
46609
46609
|
function(_super) {
|
|
46610
46610
|
__extends4(IpcProvider2, _super);
|
|
46611
|
-
function IpcProvider2(
|
|
46611
|
+
function IpcProvider2(path10, network) {
|
|
46612
46612
|
var _this = this;
|
|
46613
|
-
if (
|
|
46613
|
+
if (path10 == null) {
|
|
46614
46614
|
logger2.throwError("missing path", logger_1.Logger.errors.MISSING_ARGUMENT, { arg: "path" });
|
|
46615
46615
|
}
|
|
46616
|
-
_this = _super.call(this, "ipc://" +
|
|
46617
|
-
(0, properties_1.defineReadOnly)(_this, "path",
|
|
46616
|
+
_this = _super.call(this, "ipc://" + path10, network) || this;
|
|
46617
|
+
(0, properties_1.defineReadOnly)(_this, "path", path10);
|
|
46618
46618
|
return _this;
|
|
46619
46619
|
}
|
|
46620
46620
|
IpcProvider2.prototype.send = function(method, params) {
|
|
@@ -47213,21 +47213,21 @@ var require_web3_provider = __commonJS({
|
|
|
47213
47213
|
if (provider == null) {
|
|
47214
47214
|
logger2.throwArgumentError("missing provider", "provider", provider);
|
|
47215
47215
|
}
|
|
47216
|
-
var
|
|
47216
|
+
var path10 = null;
|
|
47217
47217
|
var jsonRpcFetchFunc = null;
|
|
47218
47218
|
var subprovider = null;
|
|
47219
47219
|
if (typeof provider === "function") {
|
|
47220
|
-
|
|
47220
|
+
path10 = "unknown:";
|
|
47221
47221
|
jsonRpcFetchFunc = provider;
|
|
47222
47222
|
} else {
|
|
47223
|
-
|
|
47224
|
-
if (!
|
|
47225
|
-
|
|
47223
|
+
path10 = provider.host || provider.path || "";
|
|
47224
|
+
if (!path10 && provider.isMetaMask) {
|
|
47225
|
+
path10 = "metamask";
|
|
47226
47226
|
}
|
|
47227
47227
|
subprovider = provider;
|
|
47228
47228
|
if (provider.request) {
|
|
47229
|
-
if (
|
|
47230
|
-
|
|
47229
|
+
if (path10 === "") {
|
|
47230
|
+
path10 = "eip-1193:";
|
|
47231
47231
|
}
|
|
47232
47232
|
jsonRpcFetchFunc = buildEip1193Fetcher(provider);
|
|
47233
47233
|
} else if (provider.sendAsync) {
|
|
@@ -47237,11 +47237,11 @@ var require_web3_provider = __commonJS({
|
|
|
47237
47237
|
} else {
|
|
47238
47238
|
logger2.throwArgumentError("unsupported provider", "provider", provider);
|
|
47239
47239
|
}
|
|
47240
|
-
if (!
|
|
47241
|
-
|
|
47240
|
+
if (!path10) {
|
|
47241
|
+
path10 = "unknown:";
|
|
47242
47242
|
}
|
|
47243
47243
|
}
|
|
47244
|
-
_this = _super.call(this,
|
|
47244
|
+
_this = _super.call(this, path10, network) || this;
|
|
47245
47245
|
(0, properties_1.defineReadOnly)(_this, "jsonRpcFetchFunc", jsonRpcFetchFunc);
|
|
47246
47246
|
(0, properties_1.defineReadOnly)(_this, "provider", subprovider);
|
|
47247
47247
|
return _this;
|
|
@@ -59521,11 +59521,11 @@ var require_mime_types = __commonJS({
|
|
|
59521
59521
|
}
|
|
59522
59522
|
return exts[0];
|
|
59523
59523
|
}
|
|
59524
|
-
function lookup(
|
|
59525
|
-
if (!
|
|
59524
|
+
function lookup(path10) {
|
|
59525
|
+
if (!path10 || typeof path10 !== "string") {
|
|
59526
59526
|
return false;
|
|
59527
59527
|
}
|
|
59528
|
-
var extension2 = extname("x." +
|
|
59528
|
+
var extension2 = extname("x." + path10).toLowerCase().substr(1);
|
|
59529
59529
|
if (!extension2) {
|
|
59530
59530
|
return false;
|
|
59531
59531
|
}
|
|
@@ -59782,7 +59782,7 @@ var require_form_data = __commonJS({
|
|
|
59782
59782
|
"../../node_modules/form-data/lib/form_data.js"(exports2, module2) {
|
|
59783
59783
|
var CombinedStream = require_combined_stream();
|
|
59784
59784
|
var util2 = __require("util");
|
|
59785
|
-
var
|
|
59785
|
+
var path10 = __require("path");
|
|
59786
59786
|
var http2 = __require("http");
|
|
59787
59787
|
var https = __require("https");
|
|
59788
59788
|
var parseUrl = __require("url").parse;
|
|
@@ -59908,11 +59908,11 @@ var require_form_data = __commonJS({
|
|
|
59908
59908
|
FormData2.prototype._getContentDisposition = function(value, options) {
|
|
59909
59909
|
var filename, contentDisposition;
|
|
59910
59910
|
if (typeof options.filepath === "string") {
|
|
59911
|
-
filename =
|
|
59911
|
+
filename = path10.normalize(options.filepath).replace(/\\/g, "/");
|
|
59912
59912
|
} else if (options.filename || value.name || value.path) {
|
|
59913
|
-
filename =
|
|
59913
|
+
filename = path10.basename(options.filename || value.name || value.path);
|
|
59914
59914
|
} else if (value.readable && value.hasOwnProperty("httpVersion")) {
|
|
59915
|
-
filename =
|
|
59915
|
+
filename = path10.basename(value.client._httpMessage.path || "");
|
|
59916
59916
|
}
|
|
59917
59917
|
if (filename) {
|
|
59918
59918
|
contentDisposition = 'filename="' + filename + '"';
|
|
@@ -61926,9 +61926,9 @@ var require_axios = __commonJS({
|
|
|
61926
61926
|
function removeBrackets(key) {
|
|
61927
61927
|
return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
61928
61928
|
}
|
|
61929
|
-
function renderKey(
|
|
61930
|
-
if (!
|
|
61931
|
-
return
|
|
61929
|
+
function renderKey(path10, key, dots) {
|
|
61930
|
+
if (!path10) return key;
|
|
61931
|
+
return path10.concat(key).map(function each(token, i) {
|
|
61932
61932
|
token = removeBrackets(token);
|
|
61933
61933
|
return !dots && i ? "[" + token + "]" : token;
|
|
61934
61934
|
}).join(dots ? "." : "");
|
|
@@ -61973,9 +61973,9 @@ var require_axios = __commonJS({
|
|
|
61973
61973
|
}
|
|
61974
61974
|
return value;
|
|
61975
61975
|
}
|
|
61976
|
-
function defaultVisitor(value, key,
|
|
61976
|
+
function defaultVisitor(value, key, path10) {
|
|
61977
61977
|
let arr = value;
|
|
61978
|
-
if (value && !
|
|
61978
|
+
if (value && !path10 && typeof value === "object") {
|
|
61979
61979
|
if (utils$1.endsWith(key, "{}")) {
|
|
61980
61980
|
key = metaTokens ? key : key.slice(0, -2);
|
|
61981
61981
|
value = JSON.stringify(value);
|
|
@@ -61994,7 +61994,7 @@ var require_axios = __commonJS({
|
|
|
61994
61994
|
if (isVisitable(value)) {
|
|
61995
61995
|
return true;
|
|
61996
61996
|
}
|
|
61997
|
-
formData.append(renderKey(
|
|
61997
|
+
formData.append(renderKey(path10, key, dots), convertValue(value));
|
|
61998
61998
|
return false;
|
|
61999
61999
|
}
|
|
62000
62000
|
const stack = [];
|
|
@@ -62003,10 +62003,10 @@ var require_axios = __commonJS({
|
|
|
62003
62003
|
convertValue,
|
|
62004
62004
|
isVisitable
|
|
62005
62005
|
});
|
|
62006
|
-
function build(value,
|
|
62006
|
+
function build(value, path10) {
|
|
62007
62007
|
if (utils$1.isUndefined(value)) return;
|
|
62008
62008
|
if (stack.indexOf(value) !== -1) {
|
|
62009
|
-
throw Error("Circular reference detected in " +
|
|
62009
|
+
throw Error("Circular reference detected in " + path10.join("."));
|
|
62010
62010
|
}
|
|
62011
62011
|
stack.push(value);
|
|
62012
62012
|
utils$1.forEach(value, function each(el, key) {
|
|
@@ -62014,11 +62014,11 @@ var require_axios = __commonJS({
|
|
|
62014
62014
|
formData,
|
|
62015
62015
|
el,
|
|
62016
62016
|
utils$1.isString(key) ? key.trim() : key,
|
|
62017
|
-
|
|
62017
|
+
path10,
|
|
62018
62018
|
exposedHelpers
|
|
62019
62019
|
);
|
|
62020
62020
|
if (result === true) {
|
|
62021
|
-
build(el,
|
|
62021
|
+
build(el, path10 ? path10.concat(key) : [key]);
|
|
62022
62022
|
}
|
|
62023
62023
|
});
|
|
62024
62024
|
stack.pop();
|
|
@@ -62187,7 +62187,7 @@ var require_axios = __commonJS({
|
|
|
62187
62187
|
};
|
|
62188
62188
|
function toURLEncodedForm(data, options) {
|
|
62189
62189
|
return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
|
|
62190
|
-
visitor: function(value, key,
|
|
62190
|
+
visitor: function(value, key, path10, helpers) {
|
|
62191
62191
|
if (platform.isNode && utils$1.isBuffer(value)) {
|
|
62192
62192
|
this.append(key, value.toString("base64"));
|
|
62193
62193
|
return false;
|
|
@@ -62214,11 +62214,11 @@ var require_axios = __commonJS({
|
|
|
62214
62214
|
return obj;
|
|
62215
62215
|
}
|
|
62216
62216
|
function formDataToJSON(formData) {
|
|
62217
|
-
function buildPath(
|
|
62218
|
-
let name =
|
|
62217
|
+
function buildPath(path10, value, target, index2) {
|
|
62218
|
+
let name = path10[index2++];
|
|
62219
62219
|
if (name === "__proto__") return true;
|
|
62220
62220
|
const isNumericKey = Number.isFinite(+name);
|
|
62221
|
-
const isLast = index2 >=
|
|
62221
|
+
const isLast = index2 >= path10.length;
|
|
62222
62222
|
name = !name && utils$1.isArray(target) ? target.length : name;
|
|
62223
62223
|
if (isLast) {
|
|
62224
62224
|
if (utils$1.hasOwnProp(target, name)) {
|
|
@@ -62231,7 +62231,7 @@ var require_axios = __commonJS({
|
|
|
62231
62231
|
if (!target[name] || !utils$1.isObject(target[name])) {
|
|
62232
62232
|
target[name] = [];
|
|
62233
62233
|
}
|
|
62234
|
-
const result = buildPath(
|
|
62234
|
+
const result = buildPath(path10, value, target[name], index2);
|
|
62235
62235
|
if (result && utils$1.isArray(target[name])) {
|
|
62236
62236
|
target[name] = arrayToObject(target[name]);
|
|
62237
62237
|
}
|
|
@@ -63289,9 +63289,9 @@ var require_axios = __commonJS({
|
|
|
63289
63289
|
auth = urlUsername + ":" + urlPassword;
|
|
63290
63290
|
}
|
|
63291
63291
|
auth && headers.delete("authorization");
|
|
63292
|
-
let
|
|
63292
|
+
let path10;
|
|
63293
63293
|
try {
|
|
63294
|
-
|
|
63294
|
+
path10 = buildURL(
|
|
63295
63295
|
parsed.pathname + parsed.search,
|
|
63296
63296
|
config.params,
|
|
63297
63297
|
config.paramsSerializer
|
|
@@ -63309,7 +63309,7 @@ var require_axios = __commonJS({
|
|
|
63309
63309
|
false
|
|
63310
63310
|
);
|
|
63311
63311
|
const options = {
|
|
63312
|
-
path:
|
|
63312
|
+
path: path10,
|
|
63313
63313
|
method,
|
|
63314
63314
|
headers: headers.toJSON(),
|
|
63315
63315
|
agents: { http: config.httpAgent, https: config.httpsAgent },
|
|
@@ -63535,10 +63535,10 @@ var require_axios = __commonJS({
|
|
|
63535
63535
|
var cookies = platform.hasStandardBrowserEnv ? (
|
|
63536
63536
|
// Standard browser envs support document.cookie
|
|
63537
63537
|
{
|
|
63538
|
-
write(name, value, expires,
|
|
63538
|
+
write(name, value, expires, path10, domain, secure) {
|
|
63539
63539
|
const cookie = [name + "=" + encodeURIComponent(value)];
|
|
63540
63540
|
utils$1.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
|
|
63541
|
-
utils$1.isString(
|
|
63541
|
+
utils$1.isString(path10) && cookie.push("path=" + path10);
|
|
63542
63542
|
utils$1.isString(domain) && cookie.push("domain=" + domain);
|
|
63543
63543
|
secure === true && cookie.push("secure");
|
|
63544
63544
|
document.cookie = cookie.join("; ");
|
|
@@ -66080,8 +66080,8 @@ var require_parseUtil = __commonJS({
|
|
|
66080
66080
|
var errors_1 = require_errors();
|
|
66081
66081
|
var en_1 = __importDefault4(require_en());
|
|
66082
66082
|
var makeIssue2 = (params) => {
|
|
66083
|
-
const { data, path:
|
|
66084
|
-
const fullPath = [...
|
|
66083
|
+
const { data, path: path10, errorMaps, issueData } = params;
|
|
66084
|
+
const fullPath = [...path10, ...issueData.path || []];
|
|
66085
66085
|
const fullIssue = {
|
|
66086
66086
|
...issueData,
|
|
66087
66087
|
path: fullPath
|
|
@@ -66247,11 +66247,11 @@ var require_types3 = __commonJS({
|
|
|
66247
66247
|
var util_1 = require_util();
|
|
66248
66248
|
var ZodError_1 = require_ZodError();
|
|
66249
66249
|
var ParseInputLazyPath2 = class {
|
|
66250
|
-
constructor(parent, value,
|
|
66250
|
+
constructor(parent, value, path10, key) {
|
|
66251
66251
|
this._cachedPath = [];
|
|
66252
66252
|
this.parent = parent;
|
|
66253
66253
|
this.data = value;
|
|
66254
|
-
this._path =
|
|
66254
|
+
this._path = path10;
|
|
66255
66255
|
this._key = key;
|
|
66256
66256
|
}
|
|
66257
66257
|
get path() {
|
|
@@ -72651,11 +72651,11 @@ var require_lodash = __commonJS({
|
|
|
72651
72651
|
return isFunction2(object[key]);
|
|
72652
72652
|
});
|
|
72653
72653
|
}
|
|
72654
|
-
function baseGet2(object,
|
|
72655
|
-
|
|
72656
|
-
var index2 = 0, length =
|
|
72654
|
+
function baseGet2(object, path10) {
|
|
72655
|
+
path10 = castPath2(path10, object);
|
|
72656
|
+
var index2 = 0, length = path10.length;
|
|
72657
72657
|
while (object != null && index2 < length) {
|
|
72658
|
-
object = object[toKey2(
|
|
72658
|
+
object = object[toKey2(path10[index2++])];
|
|
72659
72659
|
}
|
|
72660
72660
|
return index2 && index2 == length ? object : undefined2;
|
|
72661
72661
|
}
|
|
@@ -72719,10 +72719,10 @@ var require_lodash = __commonJS({
|
|
|
72719
72719
|
});
|
|
72720
72720
|
return accumulator;
|
|
72721
72721
|
}
|
|
72722
|
-
function baseInvoke(object,
|
|
72723
|
-
|
|
72724
|
-
object = parent(object,
|
|
72725
|
-
var func = object == null ? object : object[toKey2(last(
|
|
72722
|
+
function baseInvoke(object, path10, args) {
|
|
72723
|
+
path10 = castPath2(path10, object);
|
|
72724
|
+
object = parent(object, path10);
|
|
72725
|
+
var func = object == null ? object : object[toKey2(last(path10))];
|
|
72726
72726
|
return func == null ? undefined2 : apply(func, object, args);
|
|
72727
72727
|
}
|
|
72728
72728
|
function baseIsArguments2(value) {
|
|
@@ -72878,13 +72878,13 @@ var require_lodash = __commonJS({
|
|
|
72878
72878
|
return object === source || baseIsMatch2(object, source, matchData);
|
|
72879
72879
|
};
|
|
72880
72880
|
}
|
|
72881
|
-
function baseMatchesProperty2(
|
|
72882
|
-
if (isKey2(
|
|
72883
|
-
return matchesStrictComparable2(toKey2(
|
|
72881
|
+
function baseMatchesProperty2(path10, srcValue) {
|
|
72882
|
+
if (isKey2(path10) && isStrictComparable2(srcValue)) {
|
|
72883
|
+
return matchesStrictComparable2(toKey2(path10), srcValue);
|
|
72884
72884
|
}
|
|
72885
72885
|
return function(object) {
|
|
72886
|
-
var objValue = get2(object,
|
|
72887
|
-
return objValue === undefined2 && objValue === srcValue ? hasIn2(object,
|
|
72886
|
+
var objValue = get2(object, path10);
|
|
72887
|
+
return objValue === undefined2 && objValue === srcValue ? hasIn2(object, path10) : baseIsEqual2(srcValue, objValue, COMPARE_PARTIAL_FLAG7 | COMPARE_UNORDERED_FLAG5);
|
|
72888
72888
|
};
|
|
72889
72889
|
}
|
|
72890
72890
|
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
@@ -72981,23 +72981,23 @@ var require_lodash = __commonJS({
|
|
|
72981
72981
|
});
|
|
72982
72982
|
}
|
|
72983
72983
|
function basePick(object, paths) {
|
|
72984
|
-
return basePickBy(object, paths, function(value,
|
|
72985
|
-
return hasIn2(object,
|
|
72984
|
+
return basePickBy(object, paths, function(value, path10) {
|
|
72985
|
+
return hasIn2(object, path10);
|
|
72986
72986
|
});
|
|
72987
72987
|
}
|
|
72988
72988
|
function basePickBy(object, paths, predicate) {
|
|
72989
72989
|
var index2 = -1, length = paths.length, result2 = {};
|
|
72990
72990
|
while (++index2 < length) {
|
|
72991
|
-
var
|
|
72992
|
-
if (predicate(value,
|
|
72993
|
-
baseSet(result2, castPath2(
|
|
72991
|
+
var path10 = paths[index2], value = baseGet2(object, path10);
|
|
72992
|
+
if (predicate(value, path10)) {
|
|
72993
|
+
baseSet(result2, castPath2(path10, object), value);
|
|
72994
72994
|
}
|
|
72995
72995
|
}
|
|
72996
72996
|
return result2;
|
|
72997
72997
|
}
|
|
72998
|
-
function basePropertyDeep2(
|
|
72998
|
+
function basePropertyDeep2(path10) {
|
|
72999
72999
|
return function(object) {
|
|
73000
|
-
return baseGet2(object,
|
|
73000
|
+
return baseGet2(object, path10);
|
|
73001
73001
|
};
|
|
73002
73002
|
}
|
|
73003
73003
|
function basePullAll(array, values2, iteratee2, comparator) {
|
|
@@ -73071,14 +73071,14 @@ var require_lodash = __commonJS({
|
|
|
73071
73071
|
var array = values(collection);
|
|
73072
73072
|
return shuffleSelf(array, baseClamp(n, 0, array.length));
|
|
73073
73073
|
}
|
|
73074
|
-
function baseSet(object,
|
|
73074
|
+
function baseSet(object, path10, value, customizer) {
|
|
73075
73075
|
if (!isObject2(object)) {
|
|
73076
73076
|
return object;
|
|
73077
73077
|
}
|
|
73078
|
-
|
|
73079
|
-
var index2 = -1, length =
|
|
73078
|
+
path10 = castPath2(path10, object);
|
|
73079
|
+
var index2 = -1, length = path10.length, lastIndex = length - 1, nested = object;
|
|
73080
73080
|
while (nested != null && ++index2 < length) {
|
|
73081
|
-
var key = toKey2(
|
|
73081
|
+
var key = toKey2(path10[index2]), newValue = value;
|
|
73082
73082
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
73083
73083
|
return object;
|
|
73084
73084
|
}
|
|
@@ -73086,7 +73086,7 @@ var require_lodash = __commonJS({
|
|
|
73086
73086
|
var objValue = nested[key];
|
|
73087
73087
|
newValue = customizer ? customizer(objValue, key, nested) : undefined2;
|
|
73088
73088
|
if (newValue === undefined2) {
|
|
73089
|
-
newValue = isObject2(objValue) ? objValue : isIndex2(
|
|
73089
|
+
newValue = isObject2(objValue) ? objValue : isIndex2(path10[index2 + 1]) ? [] : {};
|
|
73090
73090
|
}
|
|
73091
73091
|
}
|
|
73092
73092
|
assignValue(nested, key, newValue);
|
|
@@ -73252,13 +73252,13 @@ var require_lodash = __commonJS({
|
|
|
73252
73252
|
}
|
|
73253
73253
|
return result2;
|
|
73254
73254
|
}
|
|
73255
|
-
function baseUnset(object,
|
|
73256
|
-
|
|
73257
|
-
object = parent(object,
|
|
73258
|
-
return object == null || delete object[toKey2(last(
|
|
73255
|
+
function baseUnset(object, path10) {
|
|
73256
|
+
path10 = castPath2(path10, object);
|
|
73257
|
+
object = parent(object, path10);
|
|
73258
|
+
return object == null || delete object[toKey2(last(path10))];
|
|
73259
73259
|
}
|
|
73260
|
-
function baseUpdate(object,
|
|
73261
|
-
return baseSet(object,
|
|
73260
|
+
function baseUpdate(object, path10, updater, customizer) {
|
|
73261
|
+
return baseSet(object, path10, updater(baseGet2(object, path10)), customizer);
|
|
73262
73262
|
}
|
|
73263
73263
|
function baseWhile(array, predicate, isDrop, fromRight) {
|
|
73264
73264
|
var length = array.length, index2 = fromRight ? length : -1;
|
|
@@ -74141,11 +74141,11 @@ var require_lodash = __commonJS({
|
|
|
74141
74141
|
var match2 = source.match(reWrapDetails);
|
|
74142
74142
|
return match2 ? match2[1].split(reSplitDetails) : [];
|
|
74143
74143
|
}
|
|
74144
|
-
function hasPath2(object,
|
|
74145
|
-
|
|
74146
|
-
var index2 = -1, length =
|
|
74144
|
+
function hasPath2(object, path10, hasFunc) {
|
|
74145
|
+
path10 = castPath2(path10, object);
|
|
74146
|
+
var index2 = -1, length = path10.length, result2 = false;
|
|
74147
74147
|
while (++index2 < length) {
|
|
74148
|
-
var key = toKey2(
|
|
74148
|
+
var key = toKey2(path10[index2]);
|
|
74149
74149
|
if (!(result2 = object != null && hasFunc(object, key))) {
|
|
74150
74150
|
break;
|
|
74151
74151
|
}
|
|
@@ -74347,8 +74347,8 @@ var require_lodash = __commonJS({
|
|
|
74347
74347
|
return apply(func, this, otherArgs);
|
|
74348
74348
|
};
|
|
74349
74349
|
}
|
|
74350
|
-
function parent(object,
|
|
74351
|
-
return
|
|
74350
|
+
function parent(object, path10) {
|
|
74351
|
+
return path10.length < 2 ? object : baseGet2(object, baseSlice2(path10, 0, -1));
|
|
74352
74352
|
}
|
|
74353
74353
|
function reorder(array, indexes) {
|
|
74354
74354
|
var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
|
|
@@ -74983,10 +74983,10 @@ var require_lodash = __commonJS({
|
|
|
74983
74983
|
}
|
|
74984
74984
|
return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
|
74985
74985
|
}
|
|
74986
|
-
var invokeMap = baseRest(function(collection,
|
|
74987
|
-
var index2 = -1, isFunc = typeof
|
|
74986
|
+
var invokeMap = baseRest(function(collection, path10, args) {
|
|
74987
|
+
var index2 = -1, isFunc = typeof path10 == "function", result2 = isArrayLike2(collection) ? Array2(collection.length) : [];
|
|
74988
74988
|
baseEach(collection, function(value) {
|
|
74989
|
-
result2[++index2] = isFunc ? apply(
|
|
74989
|
+
result2[++index2] = isFunc ? apply(path10, value, args) : baseInvoke(value, path10, args);
|
|
74990
74990
|
});
|
|
74991
74991
|
return result2;
|
|
74992
74992
|
});
|
|
@@ -75638,15 +75638,15 @@ var require_lodash = __commonJS({
|
|
|
75638
75638
|
function functionsIn(object) {
|
|
75639
75639
|
return object == null ? [] : baseFunctions(object, keysIn(object));
|
|
75640
75640
|
}
|
|
75641
|
-
function get2(object,
|
|
75642
|
-
var result2 = object == null ? undefined2 : baseGet2(object,
|
|
75641
|
+
function get2(object, path10, defaultValue) {
|
|
75642
|
+
var result2 = object == null ? undefined2 : baseGet2(object, path10);
|
|
75643
75643
|
return result2 === undefined2 ? defaultValue : result2;
|
|
75644
75644
|
}
|
|
75645
|
-
function has2(object,
|
|
75646
|
-
return object != null && hasPath2(object,
|
|
75645
|
+
function has2(object, path10) {
|
|
75646
|
+
return object != null && hasPath2(object, path10, baseHas);
|
|
75647
75647
|
}
|
|
75648
|
-
function hasIn2(object,
|
|
75649
|
-
return object != null && hasPath2(object,
|
|
75648
|
+
function hasIn2(object, path10) {
|
|
75649
|
+
return object != null && hasPath2(object, path10, baseHasIn2);
|
|
75650
75650
|
}
|
|
75651
75651
|
var invert2 = createInverter(function(result2, value, key) {
|
|
75652
75652
|
if (value != null && typeof value.toString != "function") {
|
|
@@ -75699,10 +75699,10 @@ var require_lodash = __commonJS({
|
|
|
75699
75699
|
return result2;
|
|
75700
75700
|
}
|
|
75701
75701
|
var isDeep = false;
|
|
75702
|
-
paths = arrayMap2(paths, function(
|
|
75703
|
-
|
|
75704
|
-
isDeep || (isDeep =
|
|
75705
|
-
return
|
|
75702
|
+
paths = arrayMap2(paths, function(path10) {
|
|
75703
|
+
path10 = castPath2(path10, object);
|
|
75704
|
+
isDeep || (isDeep = path10.length > 1);
|
|
75705
|
+
return path10;
|
|
75706
75706
|
});
|
|
75707
75707
|
copyObject(object, getAllKeysIn(object), result2);
|
|
75708
75708
|
if (isDeep) {
|
|
@@ -75728,19 +75728,19 @@ var require_lodash = __commonJS({
|
|
|
75728
75728
|
return [prop];
|
|
75729
75729
|
});
|
|
75730
75730
|
predicate = getIteratee(predicate);
|
|
75731
|
-
return basePickBy(object, props, function(value,
|
|
75732
|
-
return predicate(value,
|
|
75731
|
+
return basePickBy(object, props, function(value, path10) {
|
|
75732
|
+
return predicate(value, path10[0]);
|
|
75733
75733
|
});
|
|
75734
75734
|
}
|
|
75735
|
-
function result(object,
|
|
75736
|
-
|
|
75737
|
-
var index2 = -1, length =
|
|
75735
|
+
function result(object, path10, defaultValue) {
|
|
75736
|
+
path10 = castPath2(path10, object);
|
|
75737
|
+
var index2 = -1, length = path10.length;
|
|
75738
75738
|
if (!length) {
|
|
75739
75739
|
length = 1;
|
|
75740
75740
|
object = undefined2;
|
|
75741
75741
|
}
|
|
75742
75742
|
while (++index2 < length) {
|
|
75743
|
-
var value = object == null ? undefined2 : object[toKey2(
|
|
75743
|
+
var value = object == null ? undefined2 : object[toKey2(path10[index2])];
|
|
75744
75744
|
if (value === undefined2) {
|
|
75745
75745
|
index2 = length;
|
|
75746
75746
|
value = defaultValue;
|
|
@@ -75749,12 +75749,12 @@ var require_lodash = __commonJS({
|
|
|
75749
75749
|
}
|
|
75750
75750
|
return object;
|
|
75751
75751
|
}
|
|
75752
|
-
function set(object,
|
|
75753
|
-
return object == null ? object : baseSet(object,
|
|
75752
|
+
function set(object, path10, value) {
|
|
75753
|
+
return object == null ? object : baseSet(object, path10, value);
|
|
75754
75754
|
}
|
|
75755
|
-
function setWith(object,
|
|
75755
|
+
function setWith(object, path10, value, customizer) {
|
|
75756
75756
|
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
75757
|
-
return object == null ? object : baseSet(object,
|
|
75757
|
+
return object == null ? object : baseSet(object, path10, value, customizer);
|
|
75758
75758
|
}
|
|
75759
75759
|
var toPairs = createToPairs(keys2);
|
|
75760
75760
|
var toPairsIn = createToPairs(keysIn);
|
|
@@ -75776,15 +75776,15 @@ var require_lodash = __commonJS({
|
|
|
75776
75776
|
});
|
|
75777
75777
|
return accumulator;
|
|
75778
75778
|
}
|
|
75779
|
-
function unset(object,
|
|
75780
|
-
return object == null ? true : baseUnset(object,
|
|
75779
|
+
function unset(object, path10) {
|
|
75780
|
+
return object == null ? true : baseUnset(object, path10);
|
|
75781
75781
|
}
|
|
75782
|
-
function update(object,
|
|
75783
|
-
return object == null ? object : baseUpdate(object,
|
|
75782
|
+
function update(object, path10, updater) {
|
|
75783
|
+
return object == null ? object : baseUpdate(object, path10, castFunction(updater));
|
|
75784
75784
|
}
|
|
75785
|
-
function updateWith(object,
|
|
75785
|
+
function updateWith(object, path10, updater, customizer) {
|
|
75786
75786
|
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
75787
|
-
return object == null ? object : baseUpdate(object,
|
|
75787
|
+
return object == null ? object : baseUpdate(object, path10, castFunction(updater), customizer);
|
|
75788
75788
|
}
|
|
75789
75789
|
function values(object) {
|
|
75790
75790
|
return object == null ? [] : baseValues(object, keys2(object));
|
|
@@ -76165,17 +76165,17 @@ var require_lodash = __commonJS({
|
|
|
76165
76165
|
function matches(source) {
|
|
76166
76166
|
return baseMatches2(baseClone(source, CLONE_DEEP_FLAG));
|
|
76167
76167
|
}
|
|
76168
|
-
function matchesProperty(
|
|
76169
|
-
return baseMatchesProperty2(
|
|
76168
|
+
function matchesProperty(path10, srcValue) {
|
|
76169
|
+
return baseMatchesProperty2(path10, baseClone(srcValue, CLONE_DEEP_FLAG));
|
|
76170
76170
|
}
|
|
76171
|
-
var method = baseRest(function(
|
|
76171
|
+
var method = baseRest(function(path10, args) {
|
|
76172
76172
|
return function(object) {
|
|
76173
|
-
return baseInvoke(object,
|
|
76173
|
+
return baseInvoke(object, path10, args);
|
|
76174
76174
|
};
|
|
76175
76175
|
});
|
|
76176
76176
|
var methodOf = baseRest(function(object, args) {
|
|
76177
|
-
return function(
|
|
76178
|
-
return baseInvoke(object,
|
|
76177
|
+
return function(path10) {
|
|
76178
|
+
return baseInvoke(object, path10, args);
|
|
76179
76179
|
};
|
|
76180
76180
|
});
|
|
76181
76181
|
function mixin(object, source, options) {
|
|
@@ -76222,12 +76222,12 @@ var require_lodash = __commonJS({
|
|
|
76222
76222
|
var over = createOver(arrayMap2);
|
|
76223
76223
|
var overEvery = createOver(arrayEvery);
|
|
76224
76224
|
var overSome = createOver(arraySome2);
|
|
76225
|
-
function property2(
|
|
76226
|
-
return isKey2(
|
|
76225
|
+
function property2(path10) {
|
|
76226
|
+
return isKey2(path10) ? baseProperty2(toKey2(path10)) : basePropertyDeep2(path10);
|
|
76227
76227
|
}
|
|
76228
76228
|
function propertyOf(object) {
|
|
76229
|
-
return function(
|
|
76230
|
-
return object == null ? undefined2 : baseGet2(object,
|
|
76229
|
+
return function(path10) {
|
|
76230
|
+
return object == null ? undefined2 : baseGet2(object, path10);
|
|
76231
76231
|
};
|
|
76232
76232
|
}
|
|
76233
76233
|
var range2 = createRange();
|
|
@@ -76680,12 +76680,12 @@ var require_lodash = __commonJS({
|
|
|
76680
76680
|
LazyWrapper.prototype.findLast = function(predicate) {
|
|
76681
76681
|
return this.reverse().find(predicate);
|
|
76682
76682
|
};
|
|
76683
|
-
LazyWrapper.prototype.invokeMap = baseRest(function(
|
|
76684
|
-
if (typeof
|
|
76683
|
+
LazyWrapper.prototype.invokeMap = baseRest(function(path10, args) {
|
|
76684
|
+
if (typeof path10 == "function") {
|
|
76685
76685
|
return new LazyWrapper(this);
|
|
76686
76686
|
}
|
|
76687
76687
|
return this.map(function(value) {
|
|
76688
|
-
return baseInvoke(value,
|
|
76688
|
+
return baseInvoke(value, path10, args);
|
|
76689
76689
|
});
|
|
76690
76690
|
});
|
|
76691
76691
|
LazyWrapper.prototype.reject = function(predicate) {
|
|
@@ -95640,12 +95640,12 @@ var require_abstract_coder2 = __commonJS({
|
|
|
95640
95640
|
exports2.Result = Result;
|
|
95641
95641
|
function checkResultErrors(result) {
|
|
95642
95642
|
const errors = [];
|
|
95643
|
-
const checkErrors = function(
|
|
95643
|
+
const checkErrors = function(path10, object) {
|
|
95644
95644
|
if (!Array.isArray(object)) {
|
|
95645
95645
|
return;
|
|
95646
95646
|
}
|
|
95647
95647
|
for (let key in object) {
|
|
95648
|
-
const childPath =
|
|
95648
|
+
const childPath = path10.slice();
|
|
95649
95649
|
childPath.push(key);
|
|
95650
95650
|
try {
|
|
95651
95651
|
checkErrors(childPath, object[key]);
|
|
@@ -119085,9 +119085,9 @@ var require_provider_ipcsocket = __commonJS({
|
|
|
119085
119085
|
get socket() {
|
|
119086
119086
|
return this.#socket;
|
|
119087
119087
|
}
|
|
119088
|
-
constructor(
|
|
119088
|
+
constructor(path10, network, options) {
|
|
119089
119089
|
super(network, options);
|
|
119090
|
-
this.#socket = (0, net_1.connect)(
|
|
119090
|
+
this.#socket = (0, net_1.connect)(path10);
|
|
119091
119091
|
this.socket.on("ready", async () => {
|
|
119092
119092
|
try {
|
|
119093
119093
|
await this._start();
|
|
@@ -120398,11 +120398,11 @@ var require_utils11 = __commonJS({
|
|
|
120398
120398
|
function spelunk(object, _path) {
|
|
120399
120399
|
const match2 = _path.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);
|
|
120400
120400
|
(0, index_js_1.assertArgument)(match2 != null, "invalid path", "path", _path);
|
|
120401
|
-
const
|
|
120401
|
+
const path10 = match2[1];
|
|
120402
120402
|
const type = match2[3];
|
|
120403
120403
|
const reqd = match2[4] === "!";
|
|
120404
120404
|
let cur = object;
|
|
120405
|
-
for (const comp of
|
|
120405
|
+
for (const comp of path10.toLowerCase().split(".")) {
|
|
120406
120406
|
if (Array.isArray(cur)) {
|
|
120407
120407
|
if (!comp.match(/^[0-9]+$/)) {
|
|
120408
120408
|
break;
|
|
@@ -120424,7 +120424,7 @@ var require_utils11 = __commonJS({
|
|
|
120424
120424
|
break;
|
|
120425
120425
|
}
|
|
120426
120426
|
}
|
|
120427
|
-
(0, index_js_1.assertArgument)(!reqd || cur != null, "missing required value", "path",
|
|
120427
|
+
(0, index_js_1.assertArgument)(!reqd || cur != null, "missing required value", "path", path10);
|
|
120428
120428
|
if (type && cur != null) {
|
|
120429
120429
|
if (type === "int") {
|
|
120430
120430
|
if (typeof cur === "string" && cur.match(/^-?[0-9]+$/)) {
|
|
@@ -120449,7 +120449,7 @@ var require_utils11 = __commonJS({
|
|
|
120449
120449
|
if (type === typeof cur) {
|
|
120450
120450
|
return cur;
|
|
120451
120451
|
}
|
|
120452
|
-
(0, index_js_1.assertArgument)(false, `wrong type found for ${type} `, "path",
|
|
120452
|
+
(0, index_js_1.assertArgument)(false, `wrong type found for ${type} `, "path", path10);
|
|
120453
120453
|
}
|
|
120454
120454
|
return cur;
|
|
120455
120455
|
}
|
|
@@ -120647,7 +120647,7 @@ var require_json_keystore = __commonJS({
|
|
|
120647
120647
|
};
|
|
120648
120648
|
if (account.mnemonic) {
|
|
120649
120649
|
const client = options.client != null ? options.client : `ethers/${_version_js_1.version}`;
|
|
120650
|
-
const
|
|
120650
|
+
const path10 = account.mnemonic.path || defaultPath;
|
|
120651
120651
|
const locale = account.mnemonic.locale || "en";
|
|
120652
120652
|
const mnemonicKey = key.slice(32, 64);
|
|
120653
120653
|
const entropy = (0, index_js_4.getBytes)(account.mnemonic.entropy, "account.mnemonic.entropy");
|
|
@@ -120660,7 +120660,7 @@ var require_json_keystore = __commonJS({
|
|
|
120660
120660
|
data["x-ethers"] = {
|
|
120661
120661
|
client,
|
|
120662
120662
|
gethFilename,
|
|
120663
|
-
path:
|
|
120663
|
+
path: path10,
|
|
120664
120664
|
locale,
|
|
120665
120665
|
mnemonicCounter: (0, index_js_4.hexlify)(mnemonicIv).substring(2),
|
|
120666
120666
|
mnemonicCiphertext: (0, index_js_4.hexlify)(mnemonicCiphertext).substring(2),
|
|
@@ -120745,11 +120745,11 @@ var require_hdwallet = __commonJS({
|
|
|
120745
120745
|
const I = (0, index_js_4.getBytes)((0, index_js_1.computeHmac)("sha512", chainCode, data));
|
|
120746
120746
|
return { IL: I.slice(0, 32), IR: I.slice(32) };
|
|
120747
120747
|
}
|
|
120748
|
-
function derivePath(node,
|
|
120749
|
-
const components =
|
|
120750
|
-
(0, index_js_4.assertArgument)(components.length > 0, "invalid path", "path",
|
|
120748
|
+
function derivePath(node, path10) {
|
|
120749
|
+
const components = path10.split("/");
|
|
120750
|
+
(0, index_js_4.assertArgument)(components.length > 0, "invalid path", "path", path10);
|
|
120751
120751
|
if (components[0] === "m") {
|
|
120752
|
-
(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",
|
|
120752
|
+
(0, index_js_4.assertArgument)(node.depth === 0, `cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${node.depth}`, "path", path10);
|
|
120753
120753
|
components.shift();
|
|
120754
120754
|
}
|
|
120755
120755
|
let result = node;
|
|
@@ -120819,7 +120819,7 @@ var require_hdwallet = __commonJS({
|
|
|
120819
120819
|
/**
|
|
120820
120820
|
* @private
|
|
120821
120821
|
*/
|
|
120822
|
-
constructor(guard, signingKey, parentFingerprint, chainCode,
|
|
120822
|
+
constructor(guard, signingKey, parentFingerprint, chainCode, path10, index2, depth, mnemonic, provider) {
|
|
120823
120823
|
super(signingKey, provider);
|
|
120824
120824
|
(0, index_js_4.assertPrivate)(guard, _guard, "HDNodeWallet");
|
|
120825
120825
|
(0, index_js_4.defineProperties)(this, { publicKey: signingKey.compressedPublicKey });
|
|
@@ -120828,7 +120828,7 @@ var require_hdwallet = __commonJS({
|
|
|
120828
120828
|
parentFingerprint,
|
|
120829
120829
|
fingerprint,
|
|
120830
120830
|
chainCode,
|
|
120831
|
-
path:
|
|
120831
|
+
path: path10,
|
|
120832
120832
|
index: index2,
|
|
120833
120833
|
depth
|
|
120834
120834
|
});
|
|
@@ -120912,22 +120912,22 @@ var require_hdwallet = __commonJS({
|
|
|
120912
120912
|
deriveChild(_index) {
|
|
120913
120913
|
const index2 = (0, index_js_4.getNumber)(_index, "index");
|
|
120914
120914
|
(0, index_js_4.assertArgument)(index2 <= 4294967295, "invalid index", "index", index2);
|
|
120915
|
-
let
|
|
120916
|
-
if (
|
|
120917
|
-
|
|
120915
|
+
let path10 = this.path;
|
|
120916
|
+
if (path10) {
|
|
120917
|
+
path10 += "/" + (index2 & ~HardenedBit);
|
|
120918
120918
|
if (index2 & HardenedBit) {
|
|
120919
|
-
|
|
120919
|
+
path10 += "'";
|
|
120920
120920
|
}
|
|
120921
120921
|
}
|
|
120922
120922
|
const { IR, IL } = ser_I(index2, this.chainCode, this.publicKey, this.privateKey);
|
|
120923
120923
|
const ki = new index_js_1.SigningKey((0, index_js_4.toBeHex)(((0, index_js_4.toBigInt)(IL) + BigInt(this.privateKey)) % N, 32));
|
|
120924
|
-
return new _HDNodeWallet(_guard, ki, this.fingerprint, (0, index_js_4.hexlify)(IR),
|
|
120924
|
+
return new _HDNodeWallet(_guard, ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path10, index2, this.depth + 1, this.mnemonic, this.provider);
|
|
120925
120925
|
}
|
|
120926
120926
|
/**
|
|
120927
120927
|
* Return the HDNode for %%path%% from this node.
|
|
120928
120928
|
*/
|
|
120929
|
-
derivePath(
|
|
120930
|
-
return derivePath(this,
|
|
120929
|
+
derivePath(path10) {
|
|
120930
|
+
return derivePath(this, path10);
|
|
120931
120931
|
}
|
|
120932
120932
|
static #fromSeed(_seed, mnemonic) {
|
|
120933
120933
|
(0, index_js_4.assertArgument)((0, index_js_4.isBytesLike)(_seed), "invalid seed", "seed", "[REDACTED]");
|
|
@@ -120972,43 +120972,43 @@ var require_hdwallet = __commonJS({
|
|
|
120972
120972
|
/**
|
|
120973
120973
|
* Creates a new random HDNode.
|
|
120974
120974
|
*/
|
|
120975
|
-
static createRandom(password,
|
|
120975
|
+
static createRandom(password, path10, wordlist) {
|
|
120976
120976
|
if (password == null) {
|
|
120977
120977
|
password = "";
|
|
120978
120978
|
}
|
|
120979
|
-
if (
|
|
120980
|
-
|
|
120979
|
+
if (path10 == null) {
|
|
120980
|
+
path10 = exports2.defaultPath;
|
|
120981
120981
|
}
|
|
120982
120982
|
if (wordlist == null) {
|
|
120983
120983
|
wordlist = lang_en_js_1.LangEn.wordlist();
|
|
120984
120984
|
}
|
|
120985
120985
|
const mnemonic = mnemonic_js_1.Mnemonic.fromEntropy((0, index_js_1.randomBytes)(16), password, wordlist);
|
|
120986
|
-
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(
|
|
120986
|
+
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path10);
|
|
120987
120987
|
}
|
|
120988
120988
|
/**
|
|
120989
120989
|
* Create an HD Node from %%mnemonic%%.
|
|
120990
120990
|
*/
|
|
120991
|
-
static fromMnemonic(mnemonic,
|
|
120992
|
-
if (!
|
|
120993
|
-
|
|
120991
|
+
static fromMnemonic(mnemonic, path10) {
|
|
120992
|
+
if (!path10) {
|
|
120993
|
+
path10 = exports2.defaultPath;
|
|
120994
120994
|
}
|
|
120995
|
-
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(
|
|
120995
|
+
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path10);
|
|
120996
120996
|
}
|
|
120997
120997
|
/**
|
|
120998
120998
|
* Creates an HD Node from a mnemonic %%phrase%%.
|
|
120999
120999
|
*/
|
|
121000
|
-
static fromPhrase(phrase, password,
|
|
121000
|
+
static fromPhrase(phrase, password, path10, wordlist) {
|
|
121001
121001
|
if (password == null) {
|
|
121002
121002
|
password = "";
|
|
121003
121003
|
}
|
|
121004
|
-
if (
|
|
121005
|
-
|
|
121004
|
+
if (path10 == null) {
|
|
121005
|
+
path10 = exports2.defaultPath;
|
|
121006
121006
|
}
|
|
121007
121007
|
if (wordlist == null) {
|
|
121008
121008
|
wordlist = lang_en_js_1.LangEn.wordlist();
|
|
121009
121009
|
}
|
|
121010
121010
|
const mnemonic = mnemonic_js_1.Mnemonic.fromPhrase(phrase, password, wordlist);
|
|
121011
|
-
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(
|
|
121011
|
+
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path10);
|
|
121012
121012
|
}
|
|
121013
121013
|
/**
|
|
121014
121014
|
* Creates an HD Node from a %%seed%%.
|
|
@@ -121061,7 +121061,7 @@ var require_hdwallet = __commonJS({
|
|
|
121061
121061
|
/**
|
|
121062
121062
|
* @private
|
|
121063
121063
|
*/
|
|
121064
|
-
constructor(guard, address, publicKey, parentFingerprint, chainCode,
|
|
121064
|
+
constructor(guard, address, publicKey, parentFingerprint, chainCode, path10, index2, depth, provider) {
|
|
121065
121065
|
super(address, provider);
|
|
121066
121066
|
(0, index_js_4.assertPrivate)(guard, _guard, "HDNodeVoidWallet");
|
|
121067
121067
|
(0, index_js_4.defineProperties)(this, { publicKey });
|
|
@@ -121071,7 +121071,7 @@ var require_hdwallet = __commonJS({
|
|
|
121071
121071
|
fingerprint,
|
|
121072
121072
|
parentFingerprint,
|
|
121073
121073
|
chainCode,
|
|
121074
|
-
path:
|
|
121074
|
+
path: path10,
|
|
121075
121075
|
index: index2,
|
|
121076
121076
|
depth
|
|
121077
121077
|
});
|
|
@@ -121109,23 +121109,23 @@ var require_hdwallet = __commonJS({
|
|
|
121109
121109
|
deriveChild(_index) {
|
|
121110
121110
|
const index2 = (0, index_js_4.getNumber)(_index, "index");
|
|
121111
121111
|
(0, index_js_4.assertArgument)(index2 <= 4294967295, "invalid index", "index", index2);
|
|
121112
|
-
let
|
|
121113
|
-
if (
|
|
121114
|
-
|
|
121112
|
+
let path10 = this.path;
|
|
121113
|
+
if (path10) {
|
|
121114
|
+
path10 += "/" + (index2 & ~HardenedBit);
|
|
121115
121115
|
if (index2 & HardenedBit) {
|
|
121116
|
-
|
|
121116
|
+
path10 += "'";
|
|
121117
121117
|
}
|
|
121118
121118
|
}
|
|
121119
121119
|
const { IR, IL } = ser_I(index2, this.chainCode, this.publicKey, null);
|
|
121120
121120
|
const Ki = index_js_1.SigningKey.addPoints(IL, this.publicKey, true);
|
|
121121
121121
|
const address = (0, index_js_3.computeAddress)(Ki);
|
|
121122
|
-
return new _HDNodeVoidWallet(_guard, address, Ki, this.fingerprint, (0, index_js_4.hexlify)(IR),
|
|
121122
|
+
return new _HDNodeVoidWallet(_guard, address, Ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path10, index2, this.depth + 1, this.provider);
|
|
121123
121123
|
}
|
|
121124
121124
|
/**
|
|
121125
121125
|
* Return the signer for %%path%% from this node.
|
|
121126
121126
|
*/
|
|
121127
|
-
derivePath(
|
|
121128
|
-
return derivePath(this,
|
|
121127
|
+
derivePath(path10) {
|
|
121128
|
+
return derivePath(this, path10);
|
|
121129
121129
|
}
|
|
121130
121130
|
};
|
|
121131
121131
|
exports2.HDNodeVoidWallet = HDNodeVoidWallet;
|
|
@@ -131960,11 +131960,11 @@ var require_soljson = __commonJS({
|
|
|
131960
131960
|
var ENVIRONMENT_IS_WORKER = typeof importScripts == "function";
|
|
131961
131961
|
var ENVIRONMENT_IS_NODE = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string";
|
|
131962
131962
|
var scriptDirectory = "";
|
|
131963
|
-
function locateFile(
|
|
131963
|
+
function locateFile(path10) {
|
|
131964
131964
|
if (Module["locateFile"]) {
|
|
131965
|
-
return Module["locateFile"](
|
|
131965
|
+
return Module["locateFile"](path10, scriptDirectory);
|
|
131966
131966
|
}
|
|
131967
|
-
return scriptDirectory +
|
|
131967
|
+
return scriptDirectory + path10;
|
|
131968
131968
|
}
|
|
131969
131969
|
var read_;
|
|
131970
131970
|
var readAsync;
|
|
@@ -132755,7 +132755,7 @@ var require_soljson = __commonJS({
|
|
|
132755
132755
|
var ret = UTF8ToString(ptr);
|
|
132756
132756
|
return ret;
|
|
132757
132757
|
} };
|
|
132758
|
-
function ___syscall_faccessat(dirfd,
|
|
132758
|
+
function ___syscall_faccessat(dirfd, path10, amode, flags) {
|
|
132759
132759
|
}
|
|
132760
132760
|
function ___syscall_fcntl64(fd, cmd, varargs) {
|
|
132761
132761
|
SYSCALLS.varargs = varargs;
|
|
@@ -132765,10 +132765,10 @@ var require_soljson = __commonJS({
|
|
|
132765
132765
|
SYSCALLS.varargs = varargs;
|
|
132766
132766
|
return 0;
|
|
132767
132767
|
}
|
|
132768
|
-
function ___syscall_openat(dirfd,
|
|
132768
|
+
function ___syscall_openat(dirfd, path10, flags, varargs) {
|
|
132769
132769
|
SYSCALLS.varargs = varargs;
|
|
132770
132770
|
}
|
|
132771
|
-
function ___syscall_stat64(
|
|
132771
|
+
function ___syscall_stat64(path10, buf) {
|
|
132772
132772
|
}
|
|
132773
132773
|
function __emscripten_date_now() {
|
|
132774
132774
|
return Date.now();
|
|
@@ -134697,9 +134697,9 @@ var require_filesystem = __commonJS({
|
|
|
134697
134697
|
"use strict";
|
|
134698
134698
|
var fs3 = __require("fs");
|
|
134699
134699
|
var LDD_PATH = "/usr/bin/ldd";
|
|
134700
|
-
var readFileSync = (
|
|
134701
|
-
var readFile9 = (
|
|
134702
|
-
fs3.readFile(
|
|
134700
|
+
var readFileSync = (path10) => fs3.readFileSync(path10, "utf-8");
|
|
134701
|
+
var readFile9 = (path10) => new Promise((resolve2, reject) => {
|
|
134702
|
+
fs3.readFile(path10, "utf-8", (err, data) => {
|
|
134703
134703
|
if (err) {
|
|
134704
134704
|
reject(err);
|
|
134705
134705
|
} else {
|
|
@@ -134929,7 +134929,7 @@ var require_detect_libc = __commonJS({
|
|
|
134929
134929
|
var require_node_gyp_build_optional_packages = __commonJS({
|
|
134930
134930
|
"../../node_modules/node-gyp-build-optional-packages/index.js"(exports2, module2) {
|
|
134931
134931
|
var fs3 = __require("fs");
|
|
134932
|
-
var
|
|
134932
|
+
var path10 = __require("path");
|
|
134933
134933
|
var url = __require("url");
|
|
134934
134934
|
var vars = process.config && process.config.variables || {};
|
|
134935
134935
|
var prebuildsOnly = !!process.env.PREBUILDS_ONLY;
|
|
@@ -134952,30 +134952,30 @@ var require_node_gyp_build_optional_packages = __commonJS({
|
|
|
134952
134952
|
return __require(load.path(dir));
|
|
134953
134953
|
}
|
|
134954
134954
|
load.path = function(dir) {
|
|
134955
|
-
dir =
|
|
134955
|
+
dir = path10.resolve(dir || ".");
|
|
134956
134956
|
var packageName = "";
|
|
134957
134957
|
try {
|
|
134958
134958
|
if (typeof __webpack_require__ === "function")
|
|
134959
|
-
packageName = __non_webpack_require__(
|
|
134959
|
+
packageName = __non_webpack_require__(path10.join(dir, "package.json")).name;
|
|
134960
134960
|
else
|
|
134961
|
-
packageName = __require(
|
|
134961
|
+
packageName = __require(path10.join(dir, "package.json")).name;
|
|
134962
134962
|
var varName = packageName.toUpperCase().replace(/-/g, "_") + "_PREBUILD";
|
|
134963
134963
|
if (process.env[varName]) dir = process.env[varName];
|
|
134964
134964
|
} catch (err) {
|
|
134965
134965
|
}
|
|
134966
134966
|
if (!prebuildsOnly) {
|
|
134967
|
-
var release = getFirst(
|
|
134967
|
+
var release = getFirst(path10.join(dir, "build/Release"), matchBuild);
|
|
134968
134968
|
if (release) return release;
|
|
134969
|
-
var debug = getFirst(
|
|
134969
|
+
var debug = getFirst(path10.join(dir, "build/Debug"), matchBuild);
|
|
134970
134970
|
if (debug) return debug;
|
|
134971
134971
|
}
|
|
134972
134972
|
var prebuild = resolve2(dir);
|
|
134973
134973
|
if (prebuild) return prebuild;
|
|
134974
|
-
var nearby = resolve2(
|
|
134974
|
+
var nearby = resolve2(path10.dirname(process.execPath));
|
|
134975
134975
|
if (nearby) return nearby;
|
|
134976
134976
|
var platformPackage = (packageName[0] == "@" ? "" : "@" + packageName + "/") + packageName + "-" + platform + "-" + arch;
|
|
134977
134977
|
try {
|
|
134978
|
-
var prebuildPackage =
|
|
134978
|
+
var prebuildPackage = path10.dirname(__require("module").createRequire(url.pathToFileURL(path10.join(dir, "package.json"))).resolve(platformPackage));
|
|
134979
134979
|
return resolveFile(prebuildPackage);
|
|
134980
134980
|
} catch (error) {
|
|
134981
134981
|
}
|
|
@@ -134994,16 +134994,16 @@ var require_node_gyp_build_optional_packages = __commonJS({
|
|
|
134994
134994
|
].filter(Boolean).join(" ");
|
|
134995
134995
|
throw new Error("No native build was found for " + target + "\n attempted loading from: " + dir + " and package: " + platformPackage + "\n");
|
|
134996
134996
|
function resolve2(dir2) {
|
|
134997
|
-
var tuples = readdirSync(
|
|
134997
|
+
var tuples = readdirSync(path10.join(dir2, "prebuilds")).map(parseTuple);
|
|
134998
134998
|
var tuple = tuples.filter(matchTuple(platform, arch)).sort(compareTuples)[0];
|
|
134999
134999
|
if (!tuple) return;
|
|
135000
|
-
return resolveFile(
|
|
135000
|
+
return resolveFile(path10.join(dir2, "prebuilds", tuple.name));
|
|
135001
135001
|
}
|
|
135002
135002
|
function resolveFile(prebuilds) {
|
|
135003
135003
|
var parsed = readdirSync(prebuilds).map(parseTags);
|
|
135004
135004
|
var candidates = parsed.filter(matchTags(runtime, abi30));
|
|
135005
135005
|
var winner = candidates.sort(compareTags(runtime))[0];
|
|
135006
|
-
if (winner) return
|
|
135006
|
+
if (winner) return path10.join(prebuilds, winner.file);
|
|
135007
135007
|
}
|
|
135008
135008
|
};
|
|
135009
135009
|
function readdirSync(dir) {
|
|
@@ -135015,7 +135015,7 @@ var require_node_gyp_build_optional_packages = __commonJS({
|
|
|
135015
135015
|
}
|
|
135016
135016
|
function getFirst(dir, filter) {
|
|
135017
135017
|
var files = readdirSync(dir).filter(filter);
|
|
135018
|
-
return files[0] &&
|
|
135018
|
+
return files[0] && path10.join(dir, files[0]);
|
|
135019
135019
|
}
|
|
135020
135020
|
function matchBuild(name) {
|
|
135021
135021
|
return /\.node$/.test(name);
|
|
@@ -138678,14 +138678,14 @@ var require_url_state_machine = __commonJS({
|
|
|
138678
138678
|
return url.replace(/\u0009|\u000A|\u000D/g, "");
|
|
138679
138679
|
}
|
|
138680
138680
|
function shortenPath(url) {
|
|
138681
|
-
const
|
|
138682
|
-
if (
|
|
138681
|
+
const path10 = url.path;
|
|
138682
|
+
if (path10.length === 0) {
|
|
138683
138683
|
return;
|
|
138684
138684
|
}
|
|
138685
|
-
if (url.scheme === "file" &&
|
|
138685
|
+
if (url.scheme === "file" && path10.length === 1 && isNormalizedWindowsDriveLetter(path10[0])) {
|
|
138686
138686
|
return;
|
|
138687
138687
|
}
|
|
138688
|
-
|
|
138688
|
+
path10.pop();
|
|
138689
138689
|
}
|
|
138690
138690
|
function includesCredentials(url) {
|
|
138691
138691
|
return url.username !== "" || url.password !== "";
|
|
@@ -172754,9 +172754,9 @@ var require_setupKzg = __commonJS({
|
|
|
172754
172754
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
172755
172755
|
exports2.setupKzg = setupKzg;
|
|
172756
172756
|
var defineKzg_js_1 = require_defineKzg();
|
|
172757
|
-
function setupKzg(parameters,
|
|
172757
|
+
function setupKzg(parameters, path10) {
|
|
172758
172758
|
try {
|
|
172759
|
-
parameters.loadTrustedSetup(
|
|
172759
|
+
parameters.loadTrustedSetup(path10);
|
|
172760
172760
|
} catch (e) {
|
|
172761
172761
|
const error = e;
|
|
172762
172762
|
if (!error.message.includes("trusted setup is already loaded"))
|
|
@@ -216863,13 +216863,13 @@ function __disposeResources(env2) {
|
|
|
216863
216863
|
}
|
|
216864
216864
|
return next();
|
|
216865
216865
|
}
|
|
216866
|
-
function __rewriteRelativeImportExtension(
|
|
216867
|
-
if (typeof
|
|
216868
|
-
return
|
|
216866
|
+
function __rewriteRelativeImportExtension(path10, preserveJsx) {
|
|
216867
|
+
if (typeof path10 === "string" && /^\.\.?\//.test(path10)) {
|
|
216868
|
+
return path10.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {
|
|
216869
216869
|
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : d + ext + "." + cm.toLowerCase() + "js";
|
|
216870
216870
|
});
|
|
216871
216871
|
}
|
|
216872
|
-
return
|
|
216872
|
+
return path10;
|
|
216873
216873
|
}
|
|
216874
216874
|
var extendStatics2, __assign2, __createBinding2, __setModuleDefault2, ownKeys, _SuppressedError, tslib_es6_default;
|
|
216875
216875
|
var init_tslib_es62 = __esm({
|
|
@@ -223139,14 +223139,14 @@ var require_lib40 = __commonJS({
|
|
|
223139
223139
|
}
|
|
223140
223140
|
this.pubHash = hash160(this.pubKey);
|
|
223141
223141
|
}
|
|
223142
|
-
derive(
|
|
223143
|
-
if (!/^[mM]'?/.test(
|
|
223142
|
+
derive(path10) {
|
|
223143
|
+
if (!/^[mM]'?/.test(path10)) {
|
|
223144
223144
|
throw new Error('Path must start with "m" or "M"');
|
|
223145
223145
|
}
|
|
223146
|
-
if (/^[mM]'?$/.test(
|
|
223146
|
+
if (/^[mM]'?$/.test(path10)) {
|
|
223147
223147
|
return this;
|
|
223148
223148
|
}
|
|
223149
|
-
const parts =
|
|
223149
|
+
const parts = path10.replace(/^[mM]'?\//, "").split("/");
|
|
223150
223150
|
let child = this;
|
|
223151
223151
|
for (const c of parts) {
|
|
223152
223152
|
const m = /^(\d+)('?)$/.exec(c);
|
|
@@ -244269,8 +244269,8 @@ var require_hdKeyToAccount = __commonJS({
|
|
|
244269
244269
|
exports2.hdKeyToAccount = hdKeyToAccount;
|
|
244270
244270
|
var toHex_js_1 = require_toHex();
|
|
244271
244271
|
var privateKeyToAccount_js_1 = require_privateKeyToAccount();
|
|
244272
|
-
function hdKeyToAccount(hdKey_, { accountIndex = 0, addressIndex = 0, changeIndex = 0, path:
|
|
244273
|
-
const hdKey = hdKey_.derive(
|
|
244272
|
+
function hdKeyToAccount(hdKey_, { accountIndex = 0, addressIndex = 0, changeIndex = 0, path: path10, ...options } = {}) {
|
|
244273
|
+
const hdKey = hdKey_.derive(path10 || `m/44'/60'/${accountIndex}'/${changeIndex}/${addressIndex}`);
|
|
244274
244274
|
const account = (0, privateKeyToAccount_js_1.privateKeyToAccount)((0, toHex_js_1.toHex)(hdKey.privateKey), options);
|
|
244275
244275
|
return {
|
|
244276
244276
|
...account,
|
|
@@ -251316,12 +251316,12 @@ var require_abstract_coder3 = __commonJS({
|
|
|
251316
251316
|
exports2.Result = Result;
|
|
251317
251317
|
function checkResultErrors(result) {
|
|
251318
251318
|
const errors = [];
|
|
251319
|
-
const checkErrors = function(
|
|
251319
|
+
const checkErrors = function(path10, object) {
|
|
251320
251320
|
if (!Array.isArray(object)) {
|
|
251321
251321
|
return;
|
|
251322
251322
|
}
|
|
251323
251323
|
for (let key in object) {
|
|
251324
|
-
const childPath =
|
|
251324
|
+
const childPath = path10.slice();
|
|
251325
251325
|
childPath.push(key);
|
|
251326
251326
|
try {
|
|
251327
251327
|
checkErrors(childPath, object[key]);
|
|
@@ -274025,9 +274025,9 @@ var require_provider_ipcsocket2 = __commonJS({
|
|
|
274025
274025
|
get socket() {
|
|
274026
274026
|
return this.#socket;
|
|
274027
274027
|
}
|
|
274028
|
-
constructor(
|
|
274028
|
+
constructor(path10, network, options) {
|
|
274029
274029
|
super(network, options);
|
|
274030
|
-
this.#socket = (0, net_1.connect)(
|
|
274030
|
+
this.#socket = (0, net_1.connect)(path10);
|
|
274031
274031
|
this.socket.on("ready", async () => {
|
|
274032
274032
|
try {
|
|
274033
274033
|
await this._start();
|
|
@@ -274714,11 +274714,11 @@ var require_utils35 = __commonJS({
|
|
|
274714
274714
|
function spelunk(object, _path) {
|
|
274715
274715
|
const match2 = _path.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);
|
|
274716
274716
|
(0, index_js_1.assertArgument)(match2 != null, "invalid path", "path", _path);
|
|
274717
|
-
const
|
|
274717
|
+
const path10 = match2[1];
|
|
274718
274718
|
const type = match2[3];
|
|
274719
274719
|
const reqd = match2[4] === "!";
|
|
274720
274720
|
let cur = object;
|
|
274721
|
-
for (const comp of
|
|
274721
|
+
for (const comp of path10.toLowerCase().split(".")) {
|
|
274722
274722
|
if (Array.isArray(cur)) {
|
|
274723
274723
|
if (!comp.match(/^[0-9]+$/)) {
|
|
274724
274724
|
break;
|
|
@@ -274740,7 +274740,7 @@ var require_utils35 = __commonJS({
|
|
|
274740
274740
|
break;
|
|
274741
274741
|
}
|
|
274742
274742
|
}
|
|
274743
|
-
(0, index_js_1.assertArgument)(!reqd || cur != null, "missing required value", "path",
|
|
274743
|
+
(0, index_js_1.assertArgument)(!reqd || cur != null, "missing required value", "path", path10);
|
|
274744
274744
|
if (type && cur != null) {
|
|
274745
274745
|
if (type === "int") {
|
|
274746
274746
|
if (typeof cur === "string" && cur.match(/^-?[0-9]+$/)) {
|
|
@@ -274765,7 +274765,7 @@ var require_utils35 = __commonJS({
|
|
|
274765
274765
|
if (type === typeof cur) {
|
|
274766
274766
|
return cur;
|
|
274767
274767
|
}
|
|
274768
|
-
(0, index_js_1.assertArgument)(false, `wrong type found for ${type} `, "path",
|
|
274768
|
+
(0, index_js_1.assertArgument)(false, `wrong type found for ${type} `, "path", path10);
|
|
274769
274769
|
}
|
|
274770
274770
|
return cur;
|
|
274771
274771
|
}
|
|
@@ -274963,7 +274963,7 @@ var require_json_keystore2 = __commonJS({
|
|
|
274963
274963
|
};
|
|
274964
274964
|
if (account.mnemonic) {
|
|
274965
274965
|
const client = options.client != null ? options.client : `ethers/${_version_js_1.version}`;
|
|
274966
|
-
const
|
|
274966
|
+
const path10 = account.mnemonic.path || defaultPath;
|
|
274967
274967
|
const locale = account.mnemonic.locale || "en";
|
|
274968
274968
|
const mnemonicKey = key.slice(32, 64);
|
|
274969
274969
|
const entropy = (0, index_js_4.getBytes)(account.mnemonic.entropy, "account.mnemonic.entropy");
|
|
@@ -274976,7 +274976,7 @@ var require_json_keystore2 = __commonJS({
|
|
|
274976
274976
|
data["x-ethers"] = {
|
|
274977
274977
|
client,
|
|
274978
274978
|
gethFilename,
|
|
274979
|
-
path:
|
|
274979
|
+
path: path10,
|
|
274980
274980
|
locale,
|
|
274981
274981
|
mnemonicCounter: (0, index_js_4.hexlify)(mnemonicIv).substring(2),
|
|
274982
274982
|
mnemonicCiphertext: (0, index_js_4.hexlify)(mnemonicCiphertext).substring(2),
|
|
@@ -275061,11 +275061,11 @@ var require_hdwallet2 = __commonJS({
|
|
|
275061
275061
|
const I = (0, index_js_4.getBytes)((0, index_js_1.computeHmac)("sha512", chainCode, data));
|
|
275062
275062
|
return { IL: I.slice(0, 32), IR: I.slice(32) };
|
|
275063
275063
|
}
|
|
275064
|
-
function derivePath(node,
|
|
275065
|
-
const components =
|
|
275066
|
-
(0, index_js_4.assertArgument)(components.length > 0, "invalid path", "path",
|
|
275064
|
+
function derivePath(node, path10) {
|
|
275065
|
+
const components = path10.split("/");
|
|
275066
|
+
(0, index_js_4.assertArgument)(components.length > 0, "invalid path", "path", path10);
|
|
275067
275067
|
if (components[0] === "m") {
|
|
275068
|
-
(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",
|
|
275068
|
+
(0, index_js_4.assertArgument)(node.depth === 0, `cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${node.depth}`, "path", path10);
|
|
275069
275069
|
components.shift();
|
|
275070
275070
|
}
|
|
275071
275071
|
let result = node;
|
|
@@ -275135,7 +275135,7 @@ var require_hdwallet2 = __commonJS({
|
|
|
275135
275135
|
/**
|
|
275136
275136
|
* @private
|
|
275137
275137
|
*/
|
|
275138
|
-
constructor(guard, signingKey, parentFingerprint, chainCode,
|
|
275138
|
+
constructor(guard, signingKey, parentFingerprint, chainCode, path10, index2, depth, mnemonic, provider) {
|
|
275139
275139
|
super(signingKey, provider);
|
|
275140
275140
|
(0, index_js_4.assertPrivate)(guard, _guard, "HDNodeWallet");
|
|
275141
275141
|
(0, index_js_4.defineProperties)(this, { publicKey: signingKey.compressedPublicKey });
|
|
@@ -275144,7 +275144,7 @@ var require_hdwallet2 = __commonJS({
|
|
|
275144
275144
|
parentFingerprint,
|
|
275145
275145
|
fingerprint,
|
|
275146
275146
|
chainCode,
|
|
275147
|
-
path:
|
|
275147
|
+
path: path10,
|
|
275148
275148
|
index: index2,
|
|
275149
275149
|
depth
|
|
275150
275150
|
});
|
|
@@ -275228,22 +275228,22 @@ var require_hdwallet2 = __commonJS({
|
|
|
275228
275228
|
deriveChild(_index) {
|
|
275229
275229
|
const index2 = (0, index_js_4.getNumber)(_index, "index");
|
|
275230
275230
|
(0, index_js_4.assertArgument)(index2 <= 4294967295, "invalid index", "index", index2);
|
|
275231
|
-
let
|
|
275232
|
-
if (
|
|
275233
|
-
|
|
275231
|
+
let path10 = this.path;
|
|
275232
|
+
if (path10) {
|
|
275233
|
+
path10 += "/" + (index2 & ~HardenedBit);
|
|
275234
275234
|
if (index2 & HardenedBit) {
|
|
275235
|
-
|
|
275235
|
+
path10 += "'";
|
|
275236
275236
|
}
|
|
275237
275237
|
}
|
|
275238
275238
|
const { IR, IL } = ser_I(index2, this.chainCode, this.publicKey, this.privateKey);
|
|
275239
275239
|
const ki = new index_js_1.SigningKey((0, index_js_4.toBeHex)(((0, index_js_4.toBigInt)(IL) + BigInt(this.privateKey)) % N, 32));
|
|
275240
|
-
return new _HDNodeWallet(_guard, ki, this.fingerprint, (0, index_js_4.hexlify)(IR),
|
|
275240
|
+
return new _HDNodeWallet(_guard, ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path10, index2, this.depth + 1, this.mnemonic, this.provider);
|
|
275241
275241
|
}
|
|
275242
275242
|
/**
|
|
275243
275243
|
* Return the HDNode for %%path%% from this node.
|
|
275244
275244
|
*/
|
|
275245
|
-
derivePath(
|
|
275246
|
-
return derivePath(this,
|
|
275245
|
+
derivePath(path10) {
|
|
275246
|
+
return derivePath(this, path10);
|
|
275247
275247
|
}
|
|
275248
275248
|
static #fromSeed(_seed, mnemonic) {
|
|
275249
275249
|
(0, index_js_4.assertArgument)((0, index_js_4.isBytesLike)(_seed), "invalid seed", "seed", "[REDACTED]");
|
|
@@ -275288,43 +275288,43 @@ var require_hdwallet2 = __commonJS({
|
|
|
275288
275288
|
/**
|
|
275289
275289
|
* Creates a new random HDNode.
|
|
275290
275290
|
*/
|
|
275291
|
-
static createRandom(password,
|
|
275291
|
+
static createRandom(password, path10, wordlist) {
|
|
275292
275292
|
if (password == null) {
|
|
275293
275293
|
password = "";
|
|
275294
275294
|
}
|
|
275295
|
-
if (
|
|
275296
|
-
|
|
275295
|
+
if (path10 == null) {
|
|
275296
|
+
path10 = exports2.defaultPath;
|
|
275297
275297
|
}
|
|
275298
275298
|
if (wordlist == null) {
|
|
275299
275299
|
wordlist = lang_en_js_1.LangEn.wordlist();
|
|
275300
275300
|
}
|
|
275301
275301
|
const mnemonic = mnemonic_js_1.Mnemonic.fromEntropy((0, index_js_1.randomBytes)(16), password, wordlist);
|
|
275302
|
-
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(
|
|
275302
|
+
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path10);
|
|
275303
275303
|
}
|
|
275304
275304
|
/**
|
|
275305
275305
|
* Create an HD Node from %%mnemonic%%.
|
|
275306
275306
|
*/
|
|
275307
|
-
static fromMnemonic(mnemonic,
|
|
275308
|
-
if (!
|
|
275309
|
-
|
|
275307
|
+
static fromMnemonic(mnemonic, path10) {
|
|
275308
|
+
if (!path10) {
|
|
275309
|
+
path10 = exports2.defaultPath;
|
|
275310
275310
|
}
|
|
275311
|
-
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(
|
|
275311
|
+
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path10);
|
|
275312
275312
|
}
|
|
275313
275313
|
/**
|
|
275314
275314
|
* Creates an HD Node from a mnemonic %%phrase%%.
|
|
275315
275315
|
*/
|
|
275316
|
-
static fromPhrase(phrase, password,
|
|
275316
|
+
static fromPhrase(phrase, password, path10, wordlist) {
|
|
275317
275317
|
if (password == null) {
|
|
275318
275318
|
password = "";
|
|
275319
275319
|
}
|
|
275320
|
-
if (
|
|
275321
|
-
|
|
275320
|
+
if (path10 == null) {
|
|
275321
|
+
path10 = exports2.defaultPath;
|
|
275322
275322
|
}
|
|
275323
275323
|
if (wordlist == null) {
|
|
275324
275324
|
wordlist = lang_en_js_1.LangEn.wordlist();
|
|
275325
275325
|
}
|
|
275326
275326
|
const mnemonic = mnemonic_js_1.Mnemonic.fromPhrase(phrase, password, wordlist);
|
|
275327
|
-
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(
|
|
275327
|
+
return _HDNodeWallet.#fromSeed(mnemonic.computeSeed(), mnemonic).derivePath(path10);
|
|
275328
275328
|
}
|
|
275329
275329
|
/**
|
|
275330
275330
|
* Creates an HD Node from a %%seed%%.
|
|
@@ -275377,7 +275377,7 @@ var require_hdwallet2 = __commonJS({
|
|
|
275377
275377
|
/**
|
|
275378
275378
|
* @private
|
|
275379
275379
|
*/
|
|
275380
|
-
constructor(guard, address, publicKey, parentFingerprint, chainCode,
|
|
275380
|
+
constructor(guard, address, publicKey, parentFingerprint, chainCode, path10, index2, depth, provider) {
|
|
275381
275381
|
super(address, provider);
|
|
275382
275382
|
(0, index_js_4.assertPrivate)(guard, _guard, "HDNodeVoidWallet");
|
|
275383
275383
|
(0, index_js_4.defineProperties)(this, { publicKey });
|
|
@@ -275387,7 +275387,7 @@ var require_hdwallet2 = __commonJS({
|
|
|
275387
275387
|
fingerprint,
|
|
275388
275388
|
parentFingerprint,
|
|
275389
275389
|
chainCode,
|
|
275390
|
-
path:
|
|
275390
|
+
path: path10,
|
|
275391
275391
|
index: index2,
|
|
275392
275392
|
depth
|
|
275393
275393
|
});
|
|
@@ -275425,23 +275425,23 @@ var require_hdwallet2 = __commonJS({
|
|
|
275425
275425
|
deriveChild(_index) {
|
|
275426
275426
|
const index2 = (0, index_js_4.getNumber)(_index, "index");
|
|
275427
275427
|
(0, index_js_4.assertArgument)(index2 <= 4294967295, "invalid index", "index", index2);
|
|
275428
|
-
let
|
|
275429
|
-
if (
|
|
275430
|
-
|
|
275428
|
+
let path10 = this.path;
|
|
275429
|
+
if (path10) {
|
|
275430
|
+
path10 += "/" + (index2 & ~HardenedBit);
|
|
275431
275431
|
if (index2 & HardenedBit) {
|
|
275432
|
-
|
|
275432
|
+
path10 += "'";
|
|
275433
275433
|
}
|
|
275434
275434
|
}
|
|
275435
275435
|
const { IR, IL } = ser_I(index2, this.chainCode, this.publicKey, null);
|
|
275436
275436
|
const Ki = index_js_1.SigningKey.addPoints(IL, this.publicKey, true);
|
|
275437
275437
|
const address = (0, index_js_3.computeAddress)(Ki);
|
|
275438
|
-
return new _HDNodeVoidWallet(_guard, address, Ki, this.fingerprint, (0, index_js_4.hexlify)(IR),
|
|
275438
|
+
return new _HDNodeVoidWallet(_guard, address, Ki, this.fingerprint, (0, index_js_4.hexlify)(IR), path10, index2, this.depth + 1, this.provider);
|
|
275439
275439
|
}
|
|
275440
275440
|
/**
|
|
275441
275441
|
* Return the signer for %%path%% from this node.
|
|
275442
275442
|
*/
|
|
275443
|
-
derivePath(
|
|
275444
|
-
return derivePath(this,
|
|
275443
|
+
derivePath(path10) {
|
|
275444
|
+
return derivePath(this, path10);
|
|
275445
275445
|
}
|
|
275446
275446
|
};
|
|
275447
275447
|
exports2.HDNodeVoidWallet = HDNodeVoidWallet;
|
|
@@ -278148,10 +278148,10 @@ var require_CheckedContract = __commonJS({
|
|
|
278148
278148
|
} catch (err) {
|
|
278149
278149
|
return null;
|
|
278150
278150
|
}
|
|
278151
|
-
const pathContent = Object.keys(this.solidity).map((
|
|
278151
|
+
const pathContent = Object.keys(this.solidity).map((path10) => {
|
|
278152
278152
|
return {
|
|
278153
|
-
path:
|
|
278154
|
-
content: this.solidity[
|
|
278153
|
+
path: path10,
|
|
278154
|
+
content: this.solidity[path10] || ""
|
|
278155
278155
|
};
|
|
278156
278156
|
});
|
|
278157
278157
|
const byHash = (0, validation_1.storeByHash)(pathContent);
|
|
@@ -281453,8 +281453,8 @@ var require_utils37 = __commonJS({
|
|
|
281453
281453
|
var result = transform[inputType][outputType](input);
|
|
281454
281454
|
return result;
|
|
281455
281455
|
};
|
|
281456
|
-
exports2.resolve = function(
|
|
281457
|
-
var parts =
|
|
281456
|
+
exports2.resolve = function(path10) {
|
|
281457
|
+
var parts = path10.split("/");
|
|
281458
281458
|
var result = [];
|
|
281459
281459
|
for (var index2 = 0; index2 < parts.length; index2++) {
|
|
281460
281460
|
var part = parts[index2];
|
|
@@ -287307,18 +287307,18 @@ var require_object = __commonJS({
|
|
|
287307
287307
|
var object = new ZipObject(name, zipObjectContent, o);
|
|
287308
287308
|
this.files[name] = object;
|
|
287309
287309
|
};
|
|
287310
|
-
var parentFolder = function(
|
|
287311
|
-
if (
|
|
287312
|
-
|
|
287310
|
+
var parentFolder = function(path10) {
|
|
287311
|
+
if (path10.slice(-1) === "/") {
|
|
287312
|
+
path10 = path10.substring(0, path10.length - 1);
|
|
287313
287313
|
}
|
|
287314
|
-
var lastSlash =
|
|
287315
|
-
return lastSlash > 0 ?
|
|
287314
|
+
var lastSlash = path10.lastIndexOf("/");
|
|
287315
|
+
return lastSlash > 0 ? path10.substring(0, lastSlash) : "";
|
|
287316
287316
|
};
|
|
287317
|
-
var forceTrailingSlash = function(
|
|
287318
|
-
if (
|
|
287319
|
-
|
|
287317
|
+
var forceTrailingSlash = function(path10) {
|
|
287318
|
+
if (path10.slice(-1) !== "/") {
|
|
287319
|
+
path10 += "/";
|
|
287320
287320
|
}
|
|
287321
|
-
return
|
|
287321
|
+
return path10;
|
|
287322
287322
|
};
|
|
287323
287323
|
var folderAdd = function(name, createFolders) {
|
|
287324
287324
|
createFolders = typeof createFolders !== "undefined" ? createFolders : defaults.createFolders;
|
|
@@ -288355,15 +288355,15 @@ var require_validation5 = __commonJS({
|
|
|
288355
288355
|
];
|
|
288356
288356
|
function checkPaths(solidityCompiler, paths, ignoring) {
|
|
288357
288357
|
const files = [];
|
|
288358
|
-
paths.forEach((
|
|
288359
|
-
if (fs_1.default.existsSync(
|
|
288360
|
-
traversePathRecursively(
|
|
288358
|
+
paths.forEach((path10) => {
|
|
288359
|
+
if (fs_1.default.existsSync(path10)) {
|
|
288360
|
+
traversePathRecursively(path10, (filePath) => {
|
|
288361
288361
|
const fullPath = path_1.default.resolve(filePath);
|
|
288362
288362
|
const file = { buffer: fs_1.default.readFileSync(filePath), path: fullPath };
|
|
288363
288363
|
files.push(file);
|
|
288364
288364
|
});
|
|
288365
288365
|
} else if (ignoring) {
|
|
288366
|
-
ignoring.push(
|
|
288366
|
+
ignoring.push(path10);
|
|
288367
288367
|
}
|
|
288368
288368
|
});
|
|
288369
288369
|
return checkFiles2(solidityCompiler, files);
|
|
@@ -288601,22 +288601,22 @@ var require_validation5 = __commonJS({
|
|
|
288601
288601
|
var _a, _b, _c, _d;
|
|
288602
288602
|
return (obj === null || obj === void 0 ? void 0 : obj.language) === "Solidity" && !!((_a = obj === null || obj === void 0 ? void 0 : obj.settings) === null || _a === void 0 ? void 0 : _a.compilationTarget) && !!(obj === null || obj === void 0 ? void 0 : obj.version) && !!((_b = obj === null || obj === void 0 ? void 0 : obj.output) === null || _b === void 0 ? void 0 : _b.abi) && !!((_c = obj === null || obj === void 0 ? void 0 : obj.output) === null || _c === void 0 ? void 0 : _c.userdoc) && !!((_d = obj === null || obj === void 0 ? void 0 : obj.output) === null || _d === void 0 ? void 0 : _d.devdoc) && !!(obj === null || obj === void 0 ? void 0 : obj.sources);
|
|
288603
288603
|
}
|
|
288604
|
-
function traversePathRecursively(
|
|
288605
|
-
if (!fs_1.default.existsSync(
|
|
288606
|
-
const msg = `Encountered a nonexistent path: ${
|
|
288604
|
+
function traversePathRecursively(path10, worker, afterDirectory) {
|
|
288605
|
+
if (!fs_1.default.existsSync(path10)) {
|
|
288606
|
+
const msg = `Encountered a nonexistent path: ${path10}`;
|
|
288607
288607
|
const error = new Error(msg);
|
|
288608
288608
|
throw error;
|
|
288609
288609
|
}
|
|
288610
|
-
const fileStat = fs_1.default.lstatSync(
|
|
288610
|
+
const fileStat = fs_1.default.lstatSync(path10);
|
|
288611
288611
|
if (fileStat.isFile()) {
|
|
288612
|
-
worker(
|
|
288612
|
+
worker(path10);
|
|
288613
288613
|
} else if (fileStat.isDirectory()) {
|
|
288614
|
-
fs_1.default.readdirSync(
|
|
288615
|
-
const nestedPath = path_1.default.join(
|
|
288614
|
+
fs_1.default.readdirSync(path10).forEach((nestedName) => {
|
|
288615
|
+
const nestedPath = path_1.default.join(path10, nestedName);
|
|
288616
288616
|
traversePathRecursively(nestedPath, worker, afterDirectory);
|
|
288617
288617
|
});
|
|
288618
288618
|
if (afterDirectory) {
|
|
288619
|
-
afterDirectory(
|
|
288619
|
+
afterDirectory(path10);
|
|
288620
288620
|
}
|
|
288621
288621
|
}
|
|
288622
288622
|
}
|
|
@@ -288646,19 +288646,19 @@ var require_validation5 = __commonJS({
|
|
|
288646
288646
|
const endTime = Date.now();
|
|
288647
288647
|
(0, logger_1.logDebug)(`Parsing hardhat file took ${endTime - startTime} milliseconds.`);
|
|
288648
288648
|
const hardhatSourceFilesObject = hardhatJson.input.sources;
|
|
288649
|
-
for (const
|
|
288650
|
-
if (hardhatSourceFilesObject[
|
|
288649
|
+
for (const path10 in hardhatSourceFilesObject) {
|
|
288650
|
+
if (hardhatSourceFilesObject[path10].content) {
|
|
288651
288651
|
hardhatSourceFiles.push({
|
|
288652
|
-
path:
|
|
288653
|
-
content: hardhatSourceFilesObject[
|
|
288652
|
+
path: path10,
|
|
288653
|
+
content: hardhatSourceFilesObject[path10].content
|
|
288654
288654
|
});
|
|
288655
288655
|
}
|
|
288656
288656
|
}
|
|
288657
288657
|
const contractsObject = hardhatJson.output.contracts;
|
|
288658
|
-
for (const
|
|
288659
|
-
for (const contractName in contractsObject[
|
|
288660
|
-
if (contractsObject[
|
|
288661
|
-
const metadataObj = extractMetadataFromString(contractsObject[
|
|
288658
|
+
for (const path10 in contractsObject) {
|
|
288659
|
+
for (const contractName in contractsObject[path10]) {
|
|
288660
|
+
if (contractsObject[path10][contractName].metadata) {
|
|
288661
|
+
const metadataObj = extractMetadataFromString(contractsObject[path10][contractName].metadata);
|
|
288662
288662
|
hardhatMetadataFiles.push(metadataObj);
|
|
288663
288663
|
}
|
|
288664
288664
|
}
|
|
@@ -290558,15 +290558,15 @@ var require_route = __commonJS({
|
|
|
290558
290558
|
};
|
|
290559
290559
|
}
|
|
290560
290560
|
function wrapConversion(toModel, graph) {
|
|
290561
|
-
const
|
|
290561
|
+
const path10 = [graph[toModel].parent, toModel];
|
|
290562
290562
|
let fn = conversions[graph[toModel].parent][toModel];
|
|
290563
290563
|
let cur = graph[toModel].parent;
|
|
290564
290564
|
while (graph[cur].parent) {
|
|
290565
|
-
|
|
290565
|
+
path10.unshift(graph[cur].parent);
|
|
290566
290566
|
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
290567
290567
|
cur = graph[cur].parent;
|
|
290568
290568
|
}
|
|
290569
|
-
fn.conversion =
|
|
290569
|
+
fn.conversion = path10;
|
|
290570
290570
|
return fn;
|
|
290571
290571
|
}
|
|
290572
290572
|
module2.exports = function(fromModel) {
|
|
@@ -350038,12 +350038,12 @@ var UniswapV3AdapterContract = class extends AbstractAdapterContract {
|
|
|
350038
350038
|
];
|
|
350039
350039
|
}
|
|
350040
350040
|
case "exactInput": {
|
|
350041
|
-
const [{ amountIn, amountOutMinimum, path:
|
|
350042
|
-
const pathStr = this.trackInputPath(
|
|
350043
|
-
const token = `0x${
|
|
350041
|
+
const [{ amountIn, amountOutMinimum, path: path10 }] = params.args;
|
|
350042
|
+
const pathStr = this.trackInputPath(path10);
|
|
350043
|
+
const token = `0x${path10.replace("0x", "").slice(0, 40)}`;
|
|
350044
350044
|
const amountInStr = this.sdk.tokensMeta.formatBN(token, amountIn);
|
|
350045
350045
|
const amountOutMinimumStr = this.sdk.tokensMeta.formatBN(
|
|
350046
|
-
`0x${
|
|
350046
|
+
`0x${path10.slice(-40, path10.length)}`,
|
|
350047
350047
|
amountOutMinimum
|
|
350048
350048
|
);
|
|
350049
350049
|
return [
|
|
@@ -350051,12 +350051,12 @@ var UniswapV3AdapterContract = class extends AbstractAdapterContract {
|
|
|
350051
350051
|
];
|
|
350052
350052
|
}
|
|
350053
350053
|
case "exactDiffInput": {
|
|
350054
|
-
const [{ leftoverAmount, rateMinRAY, path:
|
|
350054
|
+
const [{ leftoverAmount, rateMinRAY, path: path10 }] = params.args;
|
|
350055
350055
|
const leftoverAmountStr = this.sdk.tokensMeta.formatBN(
|
|
350056
|
-
`0x${
|
|
350056
|
+
`0x${path10.replace("0x", "").slice(0, 40)}`,
|
|
350057
350057
|
leftoverAmount
|
|
350058
350058
|
);
|
|
350059
|
-
const pathStr = this.trackInputPath(
|
|
350059
|
+
const pathStr = this.trackInputPath(path10);
|
|
350060
350060
|
return [
|
|
350061
350061
|
`(leftoverAmount: ${leftoverAmountStr}, rate: ${formatBN(
|
|
350062
350062
|
rateMinRAY,
|
|
@@ -350065,14 +350065,14 @@ var UniswapV3AdapterContract = class extends AbstractAdapterContract {
|
|
|
350065
350065
|
];
|
|
350066
350066
|
}
|
|
350067
350067
|
case "exactOutput": {
|
|
350068
|
-
const [{ amountInMaximum, amountOut, path:
|
|
350069
|
-
const pathStr = this.trackOutputPath(
|
|
350068
|
+
const [{ amountInMaximum, amountOut, path: path10 }] = params.args;
|
|
350069
|
+
const pathStr = this.trackOutputPath(path10);
|
|
350070
350070
|
const amountInMaximumStr = this.sdk.tokensMeta.formatBN(
|
|
350071
|
-
`0x${
|
|
350071
|
+
`0x${path10.slice(-40, path10.length)}`,
|
|
350072
350072
|
amountInMaximum
|
|
350073
350073
|
);
|
|
350074
350074
|
const amountOutStr = this.sdk.tokensMeta.formatBN(
|
|
350075
|
-
`0x${
|
|
350075
|
+
`0x${path10.replace("0x", "").slice(0, 40)}`,
|
|
350076
350076
|
amountOut
|
|
350077
350077
|
);
|
|
350078
350078
|
return [
|
|
@@ -350096,30 +350096,30 @@ var UniswapV3AdapterContract = class extends AbstractAdapterContract {
|
|
|
350096
350096
|
return void 0;
|
|
350097
350097
|
}
|
|
350098
350098
|
}
|
|
350099
|
-
trackInputPath(
|
|
350099
|
+
trackInputPath(path10) {
|
|
350100
350100
|
let result = "";
|
|
350101
|
-
let pointer =
|
|
350102
|
-
while (pointer <=
|
|
350103
|
-
const from = `0x${
|
|
350101
|
+
let pointer = path10.startsWith("0x") ? 2 : 0;
|
|
350102
|
+
while (pointer <= path10.length - 40) {
|
|
350103
|
+
const from = `0x${path10.slice(pointer, pointer + 40)}`.toLowerCase();
|
|
350104
350104
|
result += this.sdk.tokensMeta.symbol(from) || from;
|
|
350105
350105
|
pointer += 40;
|
|
350106
|
-
if (pointer >
|
|
350107
|
-
const fee = parseInt(
|
|
350106
|
+
if (pointer > path10.length - 6) return result;
|
|
350107
|
+
const fee = parseInt(path10.slice(pointer, pointer + 6), 16);
|
|
350108
350108
|
pointer += 6;
|
|
350109
350109
|
result += ` ==(fee: ${fee})==> `;
|
|
350110
350110
|
}
|
|
350111
350111
|
return result;
|
|
350112
350112
|
}
|
|
350113
|
-
trackOutputPath(
|
|
350113
|
+
trackOutputPath(path10) {
|
|
350114
350114
|
let result = "";
|
|
350115
|
-
let pointer =
|
|
350115
|
+
let pointer = path10.length;
|
|
350116
350116
|
while (pointer >= 40) {
|
|
350117
350117
|
pointer -= 40;
|
|
350118
|
-
const from = `0x${
|
|
350118
|
+
const from = `0x${path10.slice(pointer, pointer + 40)}`;
|
|
350119
350119
|
result += this.sdk.tokensMeta.symbol(from) || from;
|
|
350120
350120
|
if (pointer < 6) return result;
|
|
350121
350121
|
pointer -= 6;
|
|
350122
|
-
const fee = parseInt(
|
|
350122
|
+
const fee = parseInt(path10.slice(pointer, pointer + 6), 16);
|
|
350123
350123
|
result += ` ==(fee: ${fee})==> `;
|
|
350124
350124
|
}
|
|
350125
350125
|
return result;
|
|
@@ -353011,9 +353011,9 @@ var PathOptionFactory = class _PathOptionFactory {
|
|
|
353011
353011
|
const balancerSet = /* @__PURE__ */ new Set([...balancerPools, ...balancerTokensFromAura]);
|
|
353012
353012
|
return Array.from(balancerSet.values());
|
|
353013
353013
|
}
|
|
353014
|
-
static next(
|
|
353015
|
-
let newPath = [...
|
|
353016
|
-
for (let i =
|
|
353014
|
+
static next(path10) {
|
|
353015
|
+
let newPath = [...path10];
|
|
353016
|
+
for (let i = path10.length - 1; i >= 0; i--) {
|
|
353017
353017
|
const po = { ...newPath[i] };
|
|
353018
353018
|
po.option++;
|
|
353019
353019
|
newPath[i] = po;
|
|
@@ -354425,9 +354425,9 @@ var log_default = logger;
|
|
|
354425
354425
|
var log = log_default.getSubLogger({ name: "git" });
|
|
354426
354426
|
function getGithubUrl(repo, https = false) {
|
|
354427
354427
|
const credentials = process.env.GITHUB_TOKEN ?? process.env.GH_TOKEN;
|
|
354428
|
-
const
|
|
354428
|
+
const path10 = repo.replace(/^@/, "").replace(/\/$/, "");
|
|
354429
354429
|
const cred = credentials ? `${credentials}@` : "";
|
|
354430
|
-
return https || credentials ? `https://${cred}github.com/${
|
|
354430
|
+
return https || credentials ? `https://${cred}github.com/${path10}.git` : `git@github.com:${path10}.git`;
|
|
354431
354431
|
}
|
|
354432
354432
|
async function cloneRepo(opts) {
|
|
354433
354433
|
const { repo, commit, sandboxDir } = opts;
|
|
@@ -371724,8 +371724,8 @@ function asyncExecSolc(inputStringified, solcPath) {
|
|
|
371724
371724
|
child.stdin.end();
|
|
371725
371725
|
});
|
|
371726
371726
|
}
|
|
371727
|
-
function importWorker(
|
|
371728
|
-
const resolvedPath = __require.resolve(
|
|
371727
|
+
function importWorker(path10, options) {
|
|
371728
|
+
const resolvedPath = __require.resolve(path10);
|
|
371729
371729
|
return new Worker(resolvedPath, {
|
|
371730
371730
|
...options,
|
|
371731
371731
|
execArgv: /\.ts$/.test(resolvedPath) ? ["--require", "ts-node/register"] : void 0
|
|
@@ -371751,7 +371751,7 @@ function isCallExternalTransaction(t) {
|
|
|
371751
371751
|
// ../../packages/node/dist/utils.js
|
|
371752
371752
|
var import_bytecode_utils = __toESM(require_main(), 1);
|
|
371753
371753
|
function extractFilesFromJSON(files) {
|
|
371754
|
-
return Object.entries(files).map(([
|
|
371754
|
+
return Object.entries(files).map(([path10, file]) => {
|
|
371755
371755
|
let buffer2 = null;
|
|
371756
371756
|
if (Buffer.isBuffer(file)) {
|
|
371757
371757
|
buffer2 = file;
|
|
@@ -371766,7 +371766,7 @@ function extractFilesFromJSON(files) {
|
|
|
371766
371766
|
throw new Error(`cannot convert ${typeof file} into buffer`);
|
|
371767
371767
|
}
|
|
371768
371768
|
return {
|
|
371769
|
-
path:
|
|
371769
|
+
path: path10,
|
|
371770
371770
|
buffer: buffer2
|
|
371771
371771
|
};
|
|
371772
371772
|
});
|
|
@@ -371827,8 +371827,8 @@ var Auditor = class {
|
|
|
371827
371827
|
if (!meta2.files) {
|
|
371828
371828
|
throw new Error("no files to audit");
|
|
371829
371829
|
}
|
|
371830
|
-
const files = extractFilesFromJSON(meta2.files).filter((f) => f.path !== "metadata.json").map(({ path:
|
|
371831
|
-
const p =
|
|
371830
|
+
const files = extractFilesFromJSON(meta2.files).filter((f) => f.path !== "metadata.json").map(({ path: path10, buffer: buffer2 }) => {
|
|
371831
|
+
const p = path10.includes("node_modules/") ? path10.replace("node_modules/", "") : meta2.source;
|
|
371832
371832
|
const gearbox = p.startsWith("@gearbox-protocol");
|
|
371833
371833
|
return {
|
|
371834
371834
|
gearbox,
|
|
@@ -371848,8 +371848,8 @@ var Auditor = class {
|
|
|
371848
371848
|
*/
|
|
371849
371849
|
async auditEtherscanVerified(contract) {
|
|
371850
371850
|
const input = parseEtherscanSourceCode(contract);
|
|
371851
|
-
const files = extractFilesFromJSON(input.sources).map(({ path:
|
|
371852
|
-
const p =
|
|
371851
|
+
const files = extractFilesFromJSON(input.sources).map(({ path: path10, buffer: buffer2 }) => {
|
|
371852
|
+
const p = path10.replace("node_modules/", "");
|
|
371853
371853
|
const gearbox = p.startsWith("@gearbox-protocol");
|
|
371854
371854
|
return {
|
|
371855
371855
|
gearbox,
|
|
@@ -372359,8 +372359,8 @@ function getErrorMap() {
|
|
|
372359
372359
|
return overrideErrorMap;
|
|
372360
372360
|
}
|
|
372361
372361
|
var makeIssue = (params) => {
|
|
372362
|
-
const { data, path:
|
|
372363
|
-
const fullPath = [...
|
|
372362
|
+
const { data, path: path10, errorMaps, issueData } = params;
|
|
372363
|
+
const fullPath = [...path10, ...issueData.path || []];
|
|
372364
372364
|
const fullIssue = {
|
|
372365
372365
|
...issueData,
|
|
372366
372366
|
path: fullPath
|
|
@@ -372485,11 +372485,11 @@ var errorUtil;
|
|
|
372485
372485
|
var _ZodEnum_cache;
|
|
372486
372486
|
var _ZodNativeEnum_cache;
|
|
372487
372487
|
var ParseInputLazyPath = class {
|
|
372488
|
-
constructor(parent, value,
|
|
372488
|
+
constructor(parent, value, path10, key) {
|
|
372489
372489
|
this._cachedPath = [];
|
|
372490
372490
|
this.parent = parent;
|
|
372491
372491
|
this.data = value;
|
|
372492
|
-
this._path =
|
|
372492
|
+
this._path = path10;
|
|
372493
372493
|
this._key = key;
|
|
372494
372494
|
}
|
|
372495
372495
|
get path() {
|
|
@@ -376814,19 +376814,19 @@ function toKey(value) {
|
|
|
376814
376814
|
var toKey_default = toKey;
|
|
376815
376815
|
|
|
376816
376816
|
// ../../node_modules/lodash-es/_baseGet.js
|
|
376817
|
-
function baseGet(object,
|
|
376818
|
-
|
|
376819
|
-
var index2 = 0, length =
|
|
376817
|
+
function baseGet(object, path10) {
|
|
376818
|
+
path10 = castPath_default(path10, object);
|
|
376819
|
+
var index2 = 0, length = path10.length;
|
|
376820
376820
|
while (object != null && index2 < length) {
|
|
376821
|
-
object = object[toKey_default(
|
|
376821
|
+
object = object[toKey_default(path10[index2++])];
|
|
376822
376822
|
}
|
|
376823
376823
|
return index2 && index2 == length ? object : void 0;
|
|
376824
376824
|
}
|
|
376825
376825
|
var baseGet_default = baseGet;
|
|
376826
376826
|
|
|
376827
376827
|
// ../../node_modules/lodash-es/get.js
|
|
376828
|
-
function get(object,
|
|
376829
|
-
var result = object == null ? void 0 : baseGet_default(object,
|
|
376828
|
+
function get(object, path10, defaultValue) {
|
|
376829
|
+
var result = object == null ? void 0 : baseGet_default(object, path10);
|
|
376830
376830
|
return result === void 0 ? defaultValue : result;
|
|
376831
376831
|
}
|
|
376832
376832
|
var get_default = get;
|
|
@@ -377775,11 +377775,11 @@ function baseHasIn(object, key) {
|
|
|
377775
377775
|
var baseHasIn_default = baseHasIn;
|
|
377776
377776
|
|
|
377777
377777
|
// ../../node_modules/lodash-es/_hasPath.js
|
|
377778
|
-
function hasPath(object,
|
|
377779
|
-
|
|
377780
|
-
var index2 = -1, length =
|
|
377778
|
+
function hasPath(object, path10, hasFunc) {
|
|
377779
|
+
path10 = castPath_default(path10, object);
|
|
377780
|
+
var index2 = -1, length = path10.length, result = false;
|
|
377781
377781
|
while (++index2 < length) {
|
|
377782
|
-
var key = toKey_default(
|
|
377782
|
+
var key = toKey_default(path10[index2]);
|
|
377783
377783
|
if (!(result = object != null && hasFunc(object, key))) {
|
|
377784
377784
|
break;
|
|
377785
377785
|
}
|
|
@@ -377794,21 +377794,21 @@ function hasPath(object, path9, hasFunc) {
|
|
|
377794
377794
|
var hasPath_default = hasPath;
|
|
377795
377795
|
|
|
377796
377796
|
// ../../node_modules/lodash-es/hasIn.js
|
|
377797
|
-
function hasIn(object,
|
|
377798
|
-
return object != null && hasPath_default(object,
|
|
377797
|
+
function hasIn(object, path10) {
|
|
377798
|
+
return object != null && hasPath_default(object, path10, baseHasIn_default);
|
|
377799
377799
|
}
|
|
377800
377800
|
var hasIn_default = hasIn;
|
|
377801
377801
|
|
|
377802
377802
|
// ../../node_modules/lodash-es/_baseMatchesProperty.js
|
|
377803
377803
|
var COMPARE_PARTIAL_FLAG6 = 1;
|
|
377804
377804
|
var COMPARE_UNORDERED_FLAG4 = 2;
|
|
377805
|
-
function baseMatchesProperty(
|
|
377806
|
-
if (isKey_default(
|
|
377807
|
-
return matchesStrictComparable_default(toKey_default(
|
|
377805
|
+
function baseMatchesProperty(path10, srcValue) {
|
|
377806
|
+
if (isKey_default(path10) && isStrictComparable_default(srcValue)) {
|
|
377807
|
+
return matchesStrictComparable_default(toKey_default(path10), srcValue);
|
|
377808
377808
|
}
|
|
377809
377809
|
return function(object) {
|
|
377810
|
-
var objValue = get_default(object,
|
|
377811
|
-
return objValue === void 0 && objValue === srcValue ? hasIn_default(object,
|
|
377810
|
+
var objValue = get_default(object, path10);
|
|
377811
|
+
return objValue === void 0 && objValue === srcValue ? hasIn_default(object, path10) : baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG6 | COMPARE_UNORDERED_FLAG4);
|
|
377812
377812
|
};
|
|
377813
377813
|
}
|
|
377814
377814
|
var baseMatchesProperty_default = baseMatchesProperty;
|
|
@@ -377822,16 +377822,16 @@ function baseProperty(key) {
|
|
|
377822
377822
|
var baseProperty_default = baseProperty;
|
|
377823
377823
|
|
|
377824
377824
|
// ../../node_modules/lodash-es/_basePropertyDeep.js
|
|
377825
|
-
function basePropertyDeep(
|
|
377825
|
+
function basePropertyDeep(path10) {
|
|
377826
377826
|
return function(object) {
|
|
377827
|
-
return baseGet_default(object,
|
|
377827
|
+
return baseGet_default(object, path10);
|
|
377828
377828
|
};
|
|
377829
377829
|
}
|
|
377830
377830
|
var basePropertyDeep_default = basePropertyDeep;
|
|
377831
377831
|
|
|
377832
377832
|
// ../../node_modules/lodash-es/property.js
|
|
377833
|
-
function property(
|
|
377834
|
-
return isKey_default(
|
|
377833
|
+
function property(path10) {
|
|
377834
|
+
return isKey_default(path10) ? baseProperty_default(toKey_default(path10)) : basePropertyDeep_default(path10);
|
|
377835
377835
|
}
|
|
377836
377836
|
var property_default = property;
|
|
377837
377837
|
|
|
@@ -385836,7 +385836,7 @@ function getRenderer(opts) {
|
|
|
385836
385836
|
var package_default = {
|
|
385837
385837
|
name: "@gearbox-protocol/deploy-tools",
|
|
385838
385838
|
description: "Gearbox deploy tools",
|
|
385839
|
-
version: "5.1.
|
|
385839
|
+
version: "5.1.2",
|
|
385840
385840
|
homepage: "https://gearbox.fi",
|
|
385841
385841
|
keywords: [
|
|
385842
385842
|
"gearbox"
|
|
@@ -385980,12 +385980,17 @@ function printSafeTx() {
|
|
|
385980
385980
|
|
|
385981
385981
|
// src/commands/sdk-example.ts
|
|
385982
385982
|
import { readFile as readFile7, writeFile as writeFile5 } from "node:fs/promises";
|
|
385983
|
+
import path9 from "node:path";
|
|
385983
385984
|
function sdkExample() {
|
|
385984
385985
|
return newCommand().name("sdk-example").description("SDK example for v3.1").addOption(
|
|
385985
385986
|
new Option(
|
|
385986
385987
|
"--address-provider <address>",
|
|
385987
385988
|
"new address provider address"
|
|
385988
385989
|
).env("ADDRESS_PROVIDER")
|
|
385990
|
+
).addOption(
|
|
385991
|
+
new Option("--shared-dir <dir>", "dir to put output files").env(
|
|
385992
|
+
"SHARED_DIR"
|
|
385993
|
+
)
|
|
385989
385994
|
).addOption(
|
|
385990
385995
|
new Option("--anvil-url <url>", "anvil rpc url").env("ANVIL_URL")
|
|
385991
385996
|
).action(async (opts) => {
|
|
@@ -385993,7 +385998,8 @@ function sdkExample() {
|
|
|
385993
385998
|
let {
|
|
385994
385999
|
addressProvider,
|
|
385995
386000
|
addressProviderJson,
|
|
385996
|
-
anvilUrl = "http://127.0.0.1:8545"
|
|
386001
|
+
anvilUrl = "http://127.0.0.1:8545",
|
|
386002
|
+
sharedDir = "."
|
|
385997
386003
|
} = opts;
|
|
385998
386004
|
if (!addressProvider) {
|
|
385999
386005
|
if (!addressProviderJson) {
|
|
@@ -386039,7 +386045,7 @@ function sdkExample() {
|
|
|
386039
386045
|
);
|
|
386040
386046
|
log_default.info("attached sdk");
|
|
386041
386047
|
await writeFile5(
|
|
386042
|
-
"stateAfter.json",
|
|
386048
|
+
path9.resolve(sharedDir, "stateAfter.human.json"),
|
|
386043
386049
|
json_stringify(sdk.stateHuman()),
|
|
386044
386050
|
"utf-8"
|
|
386045
386051
|
);
|