@settlemint/sdk-cli 0.9.9-pr5ae49052 → 0.9.9-pr5b6904b0
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 +46 -147
- package/dist/cli.js.map +14 -14
- 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.H5hpE6XsPy:/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.H5hpE6XsPy:/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.H5hpE6XsPy:/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.H5hpE6XsPy:/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-pr5b6904b0",
|
|
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.H5hpE6XsPy:/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-pr5b6904b0",
|
|
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-pr5b6904b0",
|
|
256845
|
+
"@settlemint/sdk-utils": "0.9.9-pr5b6904b0",
|
|
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.H5hpE6XsPy:/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,11 +268250,12 @@ async function retryWhenFailed(fn, maxRetries = 5, initialSleepTime = 3000, stop
|
|
|
268250
268250
|
if (attempt >= maxRetries) {
|
|
268251
268251
|
throw e;
|
|
268252
268252
|
}
|
|
268253
|
-
const jitter =
|
|
268253
|
+
const jitter = 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");
|
|
268258
268259
|
}
|
|
268259
268260
|
function capitalizeFirstLetter(val) {
|
|
268260
268261
|
return String(val).charAt(0).toUpperCase() + String(val).slice(1);
|
|
@@ -273592,7 +273593,17 @@ async function servicePrompt({
|
|
|
273592
273593
|
if (isRequired && services.length === 1) {
|
|
273593
273594
|
return services[0];
|
|
273594
273595
|
}
|
|
273595
|
-
|
|
273596
|
+
const choices = services.map((service) => ({
|
|
273597
|
+
name: service.name,
|
|
273598
|
+
value: service
|
|
273599
|
+
}));
|
|
273600
|
+
if (!isRequired) {
|
|
273601
|
+
choices.push({
|
|
273602
|
+
name: "None",
|
|
273603
|
+
value: undefined
|
|
273604
|
+
});
|
|
273605
|
+
}
|
|
273606
|
+
return defaultHandler({ defaultService: selectedService, choices });
|
|
273596
273607
|
}
|
|
273597
273608
|
|
|
273598
273609
|
// src/commands/connect/blockchain-node.prompt.ts
|
|
@@ -273603,28 +273614,17 @@ async function blockchainNodePrompt({
|
|
|
273603
273614
|
filterRunningOnly = false,
|
|
273604
273615
|
isRequired = false
|
|
273605
273616
|
}) {
|
|
273606
|
-
const choices = filterRunningOnly ? nodes.filter((node) => node.status === "COMPLETED") : nodes;
|
|
273607
273617
|
return servicePrompt({
|
|
273608
273618
|
env: env2,
|
|
273609
273619
|
services: nodes,
|
|
273610
273620
|
accept,
|
|
273611
273621
|
envKey: "SETTLEMINT_BLOCKCHAIN_NODE",
|
|
273612
273622
|
isRequired,
|
|
273613
|
-
defaultHandler: async ({ defaultService: defaultNode }) => {
|
|
273623
|
+
defaultHandler: async ({ defaultService: defaultNode, choices }) => {
|
|
273624
|
+
const filteredChoices = filterRunningOnly ? choices.filter(({ value: node }) => node === undefined || node?.status === "COMPLETED") : choices;
|
|
273614
273625
|
return esm_default2({
|
|
273615
273626
|
message: "Which blockchain node do you want to connect to?",
|
|
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
|
-
],
|
|
273627
|
+
choices: filteredChoices,
|
|
273628
273628
|
default: defaultNode
|
|
273629
273629
|
});
|
|
273630
273630
|
}
|
|
@@ -273645,21 +273645,10 @@ async function blockscoutPrompt({
|
|
|
273645
273645
|
accept,
|
|
273646
273646
|
envKey: "SETTLEMINT_BLOCKSCOUT",
|
|
273647
273647
|
isRequired,
|
|
273648
|
-
defaultHandler: async ({ defaultService: defaultBlockscout }) => {
|
|
273648
|
+
defaultHandler: async ({ defaultService: defaultBlockscout, choices }) => {
|
|
273649
273649
|
return esm_default2({
|
|
273650
273650
|
message: "Which blockscout instance do you want to connect to?",
|
|
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
|
-
],
|
|
273651
|
+
choices,
|
|
273663
273652
|
default: defaultBlockscout
|
|
273664
273653
|
});
|
|
273665
273654
|
}
|
|
@@ -273679,23 +273668,10 @@ async function customDeploymentPrompt({
|
|
|
273679
273668
|
accept,
|
|
273680
273669
|
envKey: "SETTLEMINT_CUSTOM_DEPLOYMENT",
|
|
273681
273670
|
isRequired,
|
|
273682
|
-
defaultHandler: async ({
|
|
273683
|
-
defaultService: defaultCustomDeployment
|
|
273684
|
-
}) => {
|
|
273671
|
+
defaultHandler: async ({ defaultService: defaultCustomDeployment, choices }) => {
|
|
273685
273672
|
return esm_default2({
|
|
273686
273673
|
message: "Which Custom Deployment do you want to connect to?",
|
|
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
|
-
],
|
|
273674
|
+
choices,
|
|
273699
273675
|
default: defaultCustomDeployment
|
|
273700
273676
|
});
|
|
273701
273677
|
}
|
|
@@ -273716,21 +273692,10 @@ async function hasuraPrompt({
|
|
|
273716
273692
|
accept,
|
|
273717
273693
|
envKey: "SETTLEMINT_HASURA",
|
|
273718
273694
|
isRequired,
|
|
273719
|
-
defaultHandler: async ({ defaultService: defaultHasura }) => {
|
|
273695
|
+
defaultHandler: async ({ defaultService: defaultHasura, choices }) => {
|
|
273720
273696
|
return esm_default2({
|
|
273721
273697
|
message: "Which Hasura instance do you want to connect to?",
|
|
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
|
-
],
|
|
273698
|
+
choices,
|
|
273734
273699
|
default: defaultHasura
|
|
273735
273700
|
});
|
|
273736
273701
|
}
|
|
@@ -273751,21 +273716,10 @@ async function hdPrivateKeyPrompt({
|
|
|
273751
273716
|
accept,
|
|
273752
273717
|
envKey: "SETTLEMINT_HD_PRIVATE_KEY",
|
|
273753
273718
|
isRequired,
|
|
273754
|
-
defaultHandler: async ({ defaultService: defaultPrivateKey }) => {
|
|
273719
|
+
defaultHandler: async ({ defaultService: defaultPrivateKey, choices }) => {
|
|
273755
273720
|
return esm_default2({
|
|
273756
273721
|
message: "Which HD Private Key do you want to use?",
|
|
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
|
-
],
|
|
273722
|
+
choices,
|
|
273769
273723
|
default: defaultPrivateKey
|
|
273770
273724
|
});
|
|
273771
273725
|
}
|
|
@@ -273830,21 +273784,10 @@ async function ipfsPrompt({
|
|
|
273830
273784
|
accept,
|
|
273831
273785
|
envKey: "SETTLEMINT_IPFS",
|
|
273832
273786
|
isRequired,
|
|
273833
|
-
defaultHandler: async ({ defaultService: defaultStorage }) => {
|
|
273787
|
+
defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
|
|
273834
273788
|
return esm_default2({
|
|
273835
273789
|
message: "Which IPFS instance do you want to connect to?",
|
|
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
|
-
],
|
|
273790
|
+
choices,
|
|
273848
273791
|
default: defaultStorage
|
|
273849
273792
|
});
|
|
273850
273793
|
}
|
|
@@ -273865,21 +273808,10 @@ async function minioPrompt({
|
|
|
273865
273808
|
accept,
|
|
273866
273809
|
envKey: "SETTLEMINT_MINIO",
|
|
273867
273810
|
isRequired,
|
|
273868
|
-
defaultHandler: async ({ defaultService: defaultStorage }) => {
|
|
273811
|
+
defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
|
|
273869
273812
|
return esm_default2({
|
|
273870
273813
|
message: "Which MinIO instance do you want to connect to?",
|
|
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
|
-
],
|
|
273814
|
+
choices,
|
|
273883
273815
|
default: defaultStorage
|
|
273884
273816
|
});
|
|
273885
273817
|
}
|
|
@@ -273900,21 +273832,10 @@ async function portalPrompt({
|
|
|
273900
273832
|
accept,
|
|
273901
273833
|
envKey: "SETTLEMINT_PORTAL",
|
|
273902
273834
|
isRequired,
|
|
273903
|
-
defaultHandler: async ({ defaultService: defaultMiddleware }) => {
|
|
273835
|
+
defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
|
|
273904
273836
|
return esm_default2({
|
|
273905
273837
|
message: "Which Smart Contract Portal instance do you want to connect to?",
|
|
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
|
-
],
|
|
273838
|
+
choices,
|
|
273918
273839
|
default: defaultMiddleware
|
|
273919
273840
|
});
|
|
273920
273841
|
}
|
|
@@ -273969,28 +273890,17 @@ async function theGraphPrompt({
|
|
|
273969
273890
|
isRequired = false
|
|
273970
273891
|
}) {
|
|
273971
273892
|
const graphMiddlewares = middlewares.filter((middleware) => middleware.__typename === "HAGraphMiddleware");
|
|
273972
|
-
const choices = filterRunningOnly ? graphMiddlewares.filter((middleware) => middleware.status === "COMPLETED") : graphMiddlewares;
|
|
273973
273893
|
return servicePrompt({
|
|
273974
273894
|
env: env2,
|
|
273975
273895
|
services: graphMiddlewares,
|
|
273976
273896
|
accept,
|
|
273977
273897
|
envKey: "SETTLEMINT_THEGRAPH",
|
|
273978
273898
|
isRequired,
|
|
273979
|
-
defaultHandler: async ({ defaultService: defaultMiddleware }) => {
|
|
273899
|
+
defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
|
|
273900
|
+
const filteredChoices = filterRunningOnly ? choices.filter(({ value: middleware }) => middleware === undefined || middleware?.status === "COMPLETED") : choices;
|
|
273980
273901
|
return esm_default2({
|
|
273981
273902
|
message: "Which The Graph instance do you want to connect to?",
|
|
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
|
-
],
|
|
273903
|
+
choices: filteredChoices,
|
|
273994
273904
|
default: defaultMiddleware
|
|
273995
273905
|
});
|
|
273996
273906
|
}
|
|
@@ -275731,21 +275641,10 @@ async function blockchainNetworkPrompt({
|
|
|
275731
275641
|
accept,
|
|
275732
275642
|
envKey: "SETTLEMINT_BLOCKCHAIN_NETWORK",
|
|
275733
275643
|
isRequired,
|
|
275734
|
-
defaultHandler: async ({ defaultService: defaultNetwork }) => {
|
|
275644
|
+
defaultHandler: async ({ defaultService: defaultNetwork, choices }) => {
|
|
275735
275645
|
return esm_default2({
|
|
275736
275646
|
message: "Which blockchain network do you want to connect to?",
|
|
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
|
-
],
|
|
275647
|
+
choices,
|
|
275749
275648
|
default: defaultNetwork
|
|
275750
275649
|
});
|
|
275751
275650
|
}
|
|
@@ -277759,4 +277658,4 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
277759
277658
|
ascii();
|
|
277760
277659
|
sdkCliCommand();
|
|
277761
277660
|
|
|
277762
|
-
//# debugId=
|
|
277661
|
+
//# debugId=412298CE99AB65A264756E2164756E21
|