@settlemint/sdk-cli 0.9.9-pr0e56a924 → 0.9.9-pr5ae49052
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/cli.js +184 -74
- package/dist/cli.js.map +16 -16
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -19613,7 +19613,7 @@ var require_lib4 = __commonJS((exports, module) => {
|
|
|
19613
19613
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
19614
19614
|
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
19615
19615
|
var getPathInfo = (cmd, {
|
|
19616
|
-
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
19616
|
+
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.R05TvUtta9:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
|
|
19617
19617
|
pathExt: optPathExt = process.env.PATHEXT,
|
|
19618
19618
|
delimiter: optDelimiter = delimiter
|
|
19619
19619
|
}) => {
|
|
@@ -19817,7 +19817,7 @@ var require_lib5 = __commonJS((exports, module) => {
|
|
|
19817
19817
|
let pathToInitial;
|
|
19818
19818
|
try {
|
|
19819
19819
|
pathToInitial = which.sync(initialCmd, {
|
|
19820
|
-
path: options.env && findInObject(options.env, "PATH") || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
19820
|
+
path: options.env && findInObject(options.env, "PATH") || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.R05TvUtta9:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
|
|
19821
19821
|
pathext: options.env && findInObject(options.env, "PATHEXT") || process.env.PATHEXT
|
|
19822
19822
|
}).toLowerCase();
|
|
19823
19823
|
} catch (err) {
|
|
@@ -20534,7 +20534,7 @@ var require_lib6 = __commonJS((exports, module) => {
|
|
|
20534
20534
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
20535
20535
|
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
20536
20536
|
var getPathInfo = (cmd, {
|
|
20537
|
-
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
20537
|
+
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.R05TvUtta9:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
|
|
20538
20538
|
pathExt: optPathExt = process.env.PATHEXT,
|
|
20539
20539
|
delimiter: optDelimiter = delimiter
|
|
20540
20540
|
}) => {
|
|
@@ -223327,7 +223327,7 @@ ${Bt.cyan(Yt)}
|
|
|
223327
223327
|
code: "ENOENT"
|
|
223328
223328
|
}), getPathInfo = (e9, t7) => {
|
|
223329
223329
|
var r6 = t7.colon || or;
|
|
223330
|
-
var i6 = e9.match(/\//) || nr && e9.match(/\\/) ? [""] : [...nr ? [process.cwd()] : [], ...(t7.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
223330
|
+
var i6 = e9.match(/\//) || nr && e9.match(/\\/) ? [""] : [...nr ? [process.cwd()] : [], ...(t7.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.R05TvUtta9:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(r6)];
|
|
223331
223331
|
var n6 = nr ? t7.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
223332
223332
|
var a5 = nr ? n6.split(r6) : [""];
|
|
223333
223333
|
if (nr) {
|
|
@@ -226464,7 +226464,7 @@ ${whileRunning(e9)}`;
|
|
|
226464
226464
|
};
|
|
226465
226465
|
ni = Object.assign(async function _main() {
|
|
226466
226466
|
var e9 = new Cli({
|
|
226467
|
-
binaryVersion: "0.9.9-
|
|
226467
|
+
binaryVersion: "0.9.9-pr5ae49052",
|
|
226468
226468
|
binaryLabel: "gql.tada CLI",
|
|
226469
226469
|
binaryName: "gql.tada"
|
|
226470
226470
|
});
|
|
@@ -234964,7 +234964,7 @@ var require_which2 = __commonJS((exports, module) => {
|
|
|
234964
234964
|
const colon = opt2.colon || COLON;
|
|
234965
234965
|
const pathEnv = cmd2.match(/\//) || isWindows2 && cmd2.match(/\\/) ? [""] : [
|
|
234966
234966
|
...isWindows2 ? [process.cwd()] : [],
|
|
234967
|
-
...(opt2.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
234967
|
+
...(opt2.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.R05TvUtta9:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(colon)
|
|
234968
234968
|
];
|
|
234969
234969
|
const pathExtExe = isWindows2 ? opt2.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
234970
234970
|
const pathExt = isWindows2 ? pathExtExe.split(colon) : [""];
|
|
@@ -256788,7 +256788,7 @@ ${error.stack}`));
|
|
|
256788
256788
|
var package_default = {
|
|
256789
256789
|
name: "@settlemint/sdk-cli",
|
|
256790
256790
|
description: "SettleMint SDK, integrate SettleMint into your application with ease.",
|
|
256791
|
-
version: "0.9.9-
|
|
256791
|
+
version: "0.9.9-pr5ae49052",
|
|
256792
256792
|
type: "module",
|
|
256793
256793
|
private: false,
|
|
256794
256794
|
license: "FSL-1.1-MIT",
|
|
@@ -256841,8 +256841,8 @@ var package_default = {
|
|
|
256841
256841
|
"@inquirer/input": "4.1.2",
|
|
256842
256842
|
"@inquirer/password": "4.0.5",
|
|
256843
256843
|
"@inquirer/select": "4.0.5",
|
|
256844
|
-
"@settlemint/sdk-js": "0.9.9-
|
|
256845
|
-
"@settlemint/sdk-utils": "0.9.9-
|
|
256844
|
+
"@settlemint/sdk-js": "0.9.9-pr5ae49052",
|
|
256845
|
+
"@settlemint/sdk-utils": "0.9.9-pr5ae49052",
|
|
256846
256846
|
"get-tsconfig": "4.8.1",
|
|
256847
256847
|
giget: "1.2.3"
|
|
256848
256848
|
},
|
|
@@ -267563,7 +267563,7 @@ var et = l((Re, tt) => {
|
|
|
267563
267563
|
var g = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", Y = h("path"), Bt = g ? ";" : ":", V = U(), J = (t) => Object.assign(new Error(`not found: ${t}`), { code: "ENOENT" }), Q = (t, e) => {
|
|
267564
267564
|
let n = e.colon || Bt, r = t.match(/\//) || g && t.match(/\\/) ? [""] : [
|
|
267565
267565
|
...g ? [process.cwd()] : [],
|
|
267566
|
-
...(e.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
267566
|
+
...(e.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.R05TvUtta9:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(n)
|
|
267567
267567
|
], s = g ? e.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", o = g ? s.split(n) : [""];
|
|
267568
267568
|
return g && t.indexOf(".") !== -1 && o[0] !== "" && o.unshift(""), {
|
|
267569
267569
|
pathEnv: r,
|
|
@@ -268250,24 +268250,11 @@ async function retryWhenFailed(fn, maxRetries = 5, initialSleepTime = 3000, stop
|
|
|
268250
268250
|
if (attempt >= maxRetries) {
|
|
268251
268251
|
throw e;
|
|
268252
268252
|
}
|
|
268253
|
-
const jitter = Math.random();
|
|
268253
|
+
const jitter = 0.5 + Math.random();
|
|
268254
268254
|
const delay = 2 ** attempt * initialSleepTime * jitter;
|
|
268255
268255
|
await new Promise((resolve2) => setTimeout(resolve2, delay));
|
|
268256
268256
|
}
|
|
268257
268257
|
}
|
|
268258
|
-
throw new Error("Retry failed");
|
|
268259
|
-
}
|
|
268260
|
-
async function fetchWithRetry(input, init, maxRetries = 5, initialSleepTime = 3000) {
|
|
268261
|
-
return retryWhenFailed(async () => {
|
|
268262
|
-
const response = await fetch(input, init);
|
|
268263
|
-
if (response.ok) {
|
|
268264
|
-
return response;
|
|
268265
|
-
}
|
|
268266
|
-
if (response.status < 500 && response.status !== 429 && response.status !== 408 && response.status !== 0) {
|
|
268267
|
-
return response;
|
|
268268
|
-
}
|
|
268269
|
-
throw new Error(`HTTP error! status: ${response.status} ${response.statusText}`);
|
|
268270
|
-
}, maxRetries, initialSleepTime);
|
|
268271
268258
|
}
|
|
268272
268259
|
function capitalizeFirstLetter(val) {
|
|
268273
268260
|
return String(val).charAt(0).toUpperCase() + String(val).slice(1);
|
|
@@ -268556,15 +268543,16 @@ async function testGqlEndpoint({
|
|
|
268556
268543
|
if (!gqlEndpoint) {
|
|
268557
268544
|
return false;
|
|
268558
268545
|
}
|
|
268559
|
-
const
|
|
268560
|
-
|
|
268561
|
-
|
|
268562
|
-
|
|
268563
|
-
|
|
268564
|
-
|
|
268565
|
-
|
|
268566
|
-
|
|
268567
|
-
|
|
268546
|
+
const result = await retryWhenFailed(async () => {
|
|
268547
|
+
const response = await fetch(gqlEndpoint, {
|
|
268548
|
+
method: "POST",
|
|
268549
|
+
headers: {
|
|
268550
|
+
"x-auth-token": accessToken,
|
|
268551
|
+
...isHasura ? { "x-hasura-admin-secret": hasuraAdminSecret ?? "" } : {},
|
|
268552
|
+
"Content-Type": "application/json"
|
|
268553
|
+
},
|
|
268554
|
+
body: JSON.stringify({
|
|
268555
|
+
query: `
|
|
268568
268556
|
query {
|
|
268569
268557
|
__schema {
|
|
268570
268558
|
types {
|
|
@@ -268573,13 +268561,18 @@ async function testGqlEndpoint({
|
|
|
268573
268561
|
}
|
|
268574
268562
|
}
|
|
268575
268563
|
`
|
|
268576
|
-
|
|
268564
|
+
})
|
|
268565
|
+
});
|
|
268566
|
+
if (!response.ok) {
|
|
268567
|
+
throw new Error(`HTTP error! status: ${response.status}`);
|
|
268568
|
+
}
|
|
268569
|
+
const data = await response.json();
|
|
268570
|
+
if (data.errors) {
|
|
268571
|
+
throw new Error("GraphQL errors in response");
|
|
268572
|
+
}
|
|
268573
|
+
return true;
|
|
268577
268574
|
});
|
|
268578
|
-
|
|
268579
|
-
if (data.errors) {
|
|
268580
|
-
throw new Error("GraphQL errors in response");
|
|
268581
|
-
}
|
|
268582
|
-
return true;
|
|
268575
|
+
return result ?? false;
|
|
268583
268576
|
}
|
|
268584
268577
|
|
|
268585
268578
|
// ../../node_modules/get-tsconfig/dist/index.mjs
|
|
@@ -273190,7 +273183,22 @@ function createSettleMintClient(options) {
|
|
|
273190
273183
|
headers: {
|
|
273191
273184
|
"x-auth-token": validatedOptions.accessToken
|
|
273192
273185
|
},
|
|
273193
|
-
fetch:
|
|
273186
|
+
fetch: async (input, init2) => {
|
|
273187
|
+
const response = await retryWhenFailed(async () => {
|
|
273188
|
+
const response2 = await fetch(input, init2);
|
|
273189
|
+
if (response2.ok) {
|
|
273190
|
+
return response2;
|
|
273191
|
+
}
|
|
273192
|
+
if (response2.status < 500 && response2.status !== 429 && response2.status !== 408 && response2.status !== 0) {
|
|
273193
|
+
return response2;
|
|
273194
|
+
}
|
|
273195
|
+
throw new Error(response2.statusText);
|
|
273196
|
+
});
|
|
273197
|
+
if (!response) {
|
|
273198
|
+
throw new Error("Failed to fetch");
|
|
273199
|
+
}
|
|
273200
|
+
return response;
|
|
273201
|
+
}
|
|
273194
273202
|
});
|
|
273195
273203
|
return {
|
|
273196
273204
|
workspace: {
|
|
@@ -273584,17 +273592,7 @@ async function servicePrompt({
|
|
|
273584
273592
|
if (isRequired && services.length === 1) {
|
|
273585
273593
|
return services[0];
|
|
273586
273594
|
}
|
|
273587
|
-
|
|
273588
|
-
name: service.name,
|
|
273589
|
-
value: service
|
|
273590
|
-
}));
|
|
273591
|
-
if (!isRequired) {
|
|
273592
|
-
choices.push({
|
|
273593
|
-
name: "None",
|
|
273594
|
-
value: undefined
|
|
273595
|
-
});
|
|
273596
|
-
}
|
|
273597
|
-
return defaultHandler({ defaultService: selectedService, choices });
|
|
273595
|
+
return defaultHandler({ defaultService: selectedService });
|
|
273598
273596
|
}
|
|
273599
273597
|
|
|
273600
273598
|
// src/commands/connect/blockchain-node.prompt.ts
|
|
@@ -273605,17 +273603,28 @@ async function blockchainNodePrompt({
|
|
|
273605
273603
|
filterRunningOnly = false,
|
|
273606
273604
|
isRequired = false
|
|
273607
273605
|
}) {
|
|
273606
|
+
const choices = filterRunningOnly ? nodes.filter((node) => node.status === "COMPLETED") : nodes;
|
|
273608
273607
|
return servicePrompt({
|
|
273609
273608
|
env: env2,
|
|
273610
273609
|
services: nodes,
|
|
273611
273610
|
accept,
|
|
273612
273611
|
envKey: "SETTLEMINT_BLOCKCHAIN_NODE",
|
|
273613
273612
|
isRequired,
|
|
273614
|
-
defaultHandler: async ({ defaultService: defaultNode
|
|
273615
|
-
const filteredChoices = filterRunningOnly ? choices.filter(({ value: node }) => node === undefined || node?.status === "COMPLETED") : choices;
|
|
273613
|
+
defaultHandler: async ({ defaultService: defaultNode }) => {
|
|
273616
273614
|
return esm_default2({
|
|
273617
273615
|
message: "Which blockchain node do you want to connect to?",
|
|
273618
|
-
choices:
|
|
273616
|
+
choices: [
|
|
273617
|
+
...choices.map((node) => ({
|
|
273618
|
+
name: node.name,
|
|
273619
|
+
value: node
|
|
273620
|
+
})),
|
|
273621
|
+
...isRequired ? [] : [
|
|
273622
|
+
{
|
|
273623
|
+
name: "None",
|
|
273624
|
+
value: undefined
|
|
273625
|
+
}
|
|
273626
|
+
]
|
|
273627
|
+
],
|
|
273619
273628
|
default: defaultNode
|
|
273620
273629
|
});
|
|
273621
273630
|
}
|
|
@@ -273636,10 +273645,21 @@ async function blockscoutPrompt({
|
|
|
273636
273645
|
accept,
|
|
273637
273646
|
envKey: "SETTLEMINT_BLOCKSCOUT",
|
|
273638
273647
|
isRequired,
|
|
273639
|
-
defaultHandler: async ({ defaultService: defaultBlockscout
|
|
273648
|
+
defaultHandler: async ({ defaultService: defaultBlockscout }) => {
|
|
273640
273649
|
return esm_default2({
|
|
273641
273650
|
message: "Which blockscout instance do you want to connect to?",
|
|
273642
|
-
choices
|
|
273651
|
+
choices: [
|
|
273652
|
+
...possible.map((insight) => ({
|
|
273653
|
+
name: insight.name,
|
|
273654
|
+
value: insight
|
|
273655
|
+
})),
|
|
273656
|
+
...isRequired ? [] : [
|
|
273657
|
+
{
|
|
273658
|
+
name: "None",
|
|
273659
|
+
value: undefined
|
|
273660
|
+
}
|
|
273661
|
+
]
|
|
273662
|
+
],
|
|
273643
273663
|
default: defaultBlockscout
|
|
273644
273664
|
});
|
|
273645
273665
|
}
|
|
@@ -273659,10 +273679,23 @@ async function customDeploymentPrompt({
|
|
|
273659
273679
|
accept,
|
|
273660
273680
|
envKey: "SETTLEMINT_CUSTOM_DEPLOYMENT",
|
|
273661
273681
|
isRequired,
|
|
273662
|
-
defaultHandler: async ({
|
|
273682
|
+
defaultHandler: async ({
|
|
273683
|
+
defaultService: defaultCustomDeployment
|
|
273684
|
+
}) => {
|
|
273663
273685
|
return esm_default2({
|
|
273664
273686
|
message: "Which Custom Deployment do you want to connect to?",
|
|
273665
|
-
choices
|
|
273687
|
+
choices: [
|
|
273688
|
+
...customDeployments.map((customDeployment) => ({
|
|
273689
|
+
name: customDeployment.name,
|
|
273690
|
+
value: customDeployment
|
|
273691
|
+
})),
|
|
273692
|
+
...isRequired ? [] : [
|
|
273693
|
+
{
|
|
273694
|
+
name: "None",
|
|
273695
|
+
value: undefined
|
|
273696
|
+
}
|
|
273697
|
+
]
|
|
273698
|
+
],
|
|
273666
273699
|
default: defaultCustomDeployment
|
|
273667
273700
|
});
|
|
273668
273701
|
}
|
|
@@ -273683,10 +273716,21 @@ async function hasuraPrompt({
|
|
|
273683
273716
|
accept,
|
|
273684
273717
|
envKey: "SETTLEMINT_HASURA",
|
|
273685
273718
|
isRequired,
|
|
273686
|
-
defaultHandler: async ({ defaultService: defaultHasura
|
|
273719
|
+
defaultHandler: async ({ defaultService: defaultHasura }) => {
|
|
273687
273720
|
return esm_default2({
|
|
273688
273721
|
message: "Which Hasura instance do you want to connect to?",
|
|
273689
|
-
choices
|
|
273722
|
+
choices: [
|
|
273723
|
+
...possible.map((integration) => ({
|
|
273724
|
+
name: integration.name,
|
|
273725
|
+
value: integration
|
|
273726
|
+
})),
|
|
273727
|
+
...isRequired ? [] : [
|
|
273728
|
+
{
|
|
273729
|
+
name: "None",
|
|
273730
|
+
value: undefined
|
|
273731
|
+
}
|
|
273732
|
+
]
|
|
273733
|
+
],
|
|
273690
273734
|
default: defaultHasura
|
|
273691
273735
|
});
|
|
273692
273736
|
}
|
|
@@ -273707,10 +273751,21 @@ async function hdPrivateKeyPrompt({
|
|
|
273707
273751
|
accept,
|
|
273708
273752
|
envKey: "SETTLEMINT_HD_PRIVATE_KEY",
|
|
273709
273753
|
isRequired,
|
|
273710
|
-
defaultHandler: async ({ defaultService: defaultPrivateKey
|
|
273754
|
+
defaultHandler: async ({ defaultService: defaultPrivateKey }) => {
|
|
273711
273755
|
return esm_default2({
|
|
273712
273756
|
message: "Which HD Private Key do you want to use?",
|
|
273713
|
-
choices
|
|
273757
|
+
choices: [
|
|
273758
|
+
...possible.map((privateKey) => ({
|
|
273759
|
+
name: privateKey.name,
|
|
273760
|
+
value: privateKey
|
|
273761
|
+
})),
|
|
273762
|
+
...isRequired ? [] : [
|
|
273763
|
+
{
|
|
273764
|
+
name: "None",
|
|
273765
|
+
value: undefined
|
|
273766
|
+
}
|
|
273767
|
+
]
|
|
273768
|
+
],
|
|
273714
273769
|
default: defaultPrivateKey
|
|
273715
273770
|
});
|
|
273716
273771
|
}
|
|
@@ -273775,10 +273830,21 @@ async function ipfsPrompt({
|
|
|
273775
273830
|
accept,
|
|
273776
273831
|
envKey: "SETTLEMINT_IPFS",
|
|
273777
273832
|
isRequired,
|
|
273778
|
-
defaultHandler: async ({ defaultService: defaultStorage
|
|
273833
|
+
defaultHandler: async ({ defaultService: defaultStorage }) => {
|
|
273779
273834
|
return esm_default2({
|
|
273780
273835
|
message: "Which IPFS instance do you want to connect to?",
|
|
273781
|
-
choices
|
|
273836
|
+
choices: [
|
|
273837
|
+
...possible.map((storage) => ({
|
|
273838
|
+
name: storage.name,
|
|
273839
|
+
value: storage
|
|
273840
|
+
})),
|
|
273841
|
+
...isRequired ? [] : [
|
|
273842
|
+
{
|
|
273843
|
+
name: "None",
|
|
273844
|
+
value: undefined
|
|
273845
|
+
}
|
|
273846
|
+
]
|
|
273847
|
+
],
|
|
273782
273848
|
default: defaultStorage
|
|
273783
273849
|
});
|
|
273784
273850
|
}
|
|
@@ -273799,10 +273865,21 @@ async function minioPrompt({
|
|
|
273799
273865
|
accept,
|
|
273800
273866
|
envKey: "SETTLEMINT_MINIO",
|
|
273801
273867
|
isRequired,
|
|
273802
|
-
defaultHandler: async ({ defaultService: defaultStorage
|
|
273868
|
+
defaultHandler: async ({ defaultService: defaultStorage }) => {
|
|
273803
273869
|
return esm_default2({
|
|
273804
273870
|
message: "Which MinIO instance do you want to connect to?",
|
|
273805
|
-
choices
|
|
273871
|
+
choices: [
|
|
273872
|
+
...possible.map((storage) => ({
|
|
273873
|
+
name: storage.name,
|
|
273874
|
+
value: storage
|
|
273875
|
+
})),
|
|
273876
|
+
...isRequired ? [] : [
|
|
273877
|
+
{
|
|
273878
|
+
name: "None",
|
|
273879
|
+
value: undefined
|
|
273880
|
+
}
|
|
273881
|
+
]
|
|
273882
|
+
],
|
|
273806
273883
|
default: defaultStorage
|
|
273807
273884
|
});
|
|
273808
273885
|
}
|
|
@@ -273823,10 +273900,21 @@ async function portalPrompt({
|
|
|
273823
273900
|
accept,
|
|
273824
273901
|
envKey: "SETTLEMINT_PORTAL",
|
|
273825
273902
|
isRequired,
|
|
273826
|
-
defaultHandler: async ({ defaultService: defaultMiddleware
|
|
273903
|
+
defaultHandler: async ({ defaultService: defaultMiddleware }) => {
|
|
273827
273904
|
return esm_default2({
|
|
273828
273905
|
message: "Which Smart Contract Portal instance do you want to connect to?",
|
|
273829
|
-
choices
|
|
273906
|
+
choices: [
|
|
273907
|
+
...possible.map((middleware) => ({
|
|
273908
|
+
name: middleware.name,
|
|
273909
|
+
value: middleware
|
|
273910
|
+
})),
|
|
273911
|
+
...isRequired ? [] : [
|
|
273912
|
+
{
|
|
273913
|
+
name: "None",
|
|
273914
|
+
value: undefined
|
|
273915
|
+
}
|
|
273916
|
+
]
|
|
273917
|
+
],
|
|
273830
273918
|
default: defaultMiddleware
|
|
273831
273919
|
});
|
|
273832
273920
|
}
|
|
@@ -273881,17 +273969,28 @@ async function theGraphPrompt({
|
|
|
273881
273969
|
isRequired = false
|
|
273882
273970
|
}) {
|
|
273883
273971
|
const graphMiddlewares = middlewares.filter((middleware) => middleware.__typename === "HAGraphMiddleware");
|
|
273972
|
+
const choices = filterRunningOnly ? graphMiddlewares.filter((middleware) => middleware.status === "COMPLETED") : graphMiddlewares;
|
|
273884
273973
|
return servicePrompt({
|
|
273885
273974
|
env: env2,
|
|
273886
273975
|
services: graphMiddlewares,
|
|
273887
273976
|
accept,
|
|
273888
273977
|
envKey: "SETTLEMINT_THEGRAPH",
|
|
273889
273978
|
isRequired,
|
|
273890
|
-
defaultHandler: async ({ defaultService: defaultMiddleware
|
|
273891
|
-
const filteredChoices = filterRunningOnly ? choices.filter(({ value: middleware }) => middleware === undefined || middleware?.status === "COMPLETED") : choices;
|
|
273979
|
+
defaultHandler: async ({ defaultService: defaultMiddleware }) => {
|
|
273892
273980
|
return esm_default2({
|
|
273893
273981
|
message: "Which The Graph instance do you want to connect to?",
|
|
273894
|
-
choices:
|
|
273982
|
+
choices: [
|
|
273983
|
+
...choices.map((middleware) => ({
|
|
273984
|
+
name: middleware.name,
|
|
273985
|
+
value: middleware
|
|
273986
|
+
})),
|
|
273987
|
+
...isRequired ? [] : [
|
|
273988
|
+
{
|
|
273989
|
+
name: "None",
|
|
273990
|
+
value: undefined
|
|
273991
|
+
}
|
|
273992
|
+
]
|
|
273993
|
+
],
|
|
273895
273994
|
default: defaultMiddleware
|
|
273896
273995
|
});
|
|
273897
273996
|
}
|
|
@@ -275632,10 +275731,21 @@ async function blockchainNetworkPrompt({
|
|
|
275632
275731
|
accept,
|
|
275633
275732
|
envKey: "SETTLEMINT_BLOCKCHAIN_NETWORK",
|
|
275634
275733
|
isRequired,
|
|
275635
|
-
defaultHandler: async ({ defaultService: defaultNetwork
|
|
275734
|
+
defaultHandler: async ({ defaultService: defaultNetwork }) => {
|
|
275636
275735
|
return esm_default2({
|
|
275637
275736
|
message: "Which blockchain network do you want to connect to?",
|
|
275638
|
-
choices
|
|
275737
|
+
choices: [
|
|
275738
|
+
...networks.map((network) => ({
|
|
275739
|
+
name: network.name,
|
|
275740
|
+
value: network
|
|
275741
|
+
})),
|
|
275742
|
+
...isRequired ? [] : [
|
|
275743
|
+
{
|
|
275744
|
+
name: "None",
|
|
275745
|
+
value: undefined
|
|
275746
|
+
}
|
|
275747
|
+
]
|
|
275748
|
+
],
|
|
275639
275749
|
default: defaultNetwork
|
|
275640
275750
|
});
|
|
275641
275751
|
}
|
|
@@ -277649,4 +277759,4 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
277649
277759
|
ascii();
|
|
277650
277760
|
sdkCliCommand();
|
|
277651
277761
|
|
|
277652
|
-
//# debugId=
|
|
277762
|
+
//# debugId=36BB15AB548AAC0764756E2164756E21
|