@settlemint/sdk-cli 0.9.3-prf8718aa2 → 0.9.7-mainae8da5a8
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/README.md +1 -1
- package/dist/cli.js +253 -94
- package/dist/cli.js.map +24 -24
- package/package.json +7 -7
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.LLtZ54gSIq:/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.LLtZ54gSIq:/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.LLtZ54gSIq:/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.LLtZ54gSIq:/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.
|
|
226467
|
+
binaryVersion: "0.9.7-mainae8da5a8",
|
|
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.LLtZ54gSIq:/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.
|
|
256791
|
+
version: "0.9.7-mainae8da5a8",
|
|
256792
256792
|
type: "module",
|
|
256793
256793
|
private: false,
|
|
256794
256794
|
license: "FSL-1.1-MIT",
|
|
@@ -256837,12 +256837,12 @@ var package_default = {
|
|
|
256837
256837
|
slugify: "1.6.6",
|
|
256838
256838
|
yoctocolors: "2.1.1",
|
|
256839
256839
|
"@commander-js/extra-typings": "13.0.0",
|
|
256840
|
-
"@inquirer/confirm": "5.1.
|
|
256841
|
-
"@inquirer/input": "4.1.
|
|
256842
|
-
"@inquirer/password": "4.0.
|
|
256843
|
-
"@inquirer/select": "4.0.
|
|
256844
|
-
"@settlemint/sdk-js": "0.9.
|
|
256845
|
-
"@settlemint/sdk-utils": "0.9.
|
|
256840
|
+
"@inquirer/confirm": "5.1.2",
|
|
256841
|
+
"@inquirer/input": "4.1.2",
|
|
256842
|
+
"@inquirer/password": "4.0.5",
|
|
256843
|
+
"@inquirer/select": "4.0.5",
|
|
256844
|
+
"@settlemint/sdk-js": "0.9.7-mainae8da5a8",
|
|
256845
|
+
"@settlemint/sdk-utils": "0.9.7-mainae8da5a8",
|
|
256846
256846
|
"get-tsconfig": "4.8.1",
|
|
256847
256847
|
giget: "1.2.3"
|
|
256848
256848
|
},
|
|
@@ -267561,7 +267561,7 @@ var et = l((Re, tt) => {
|
|
|
267561
267561
|
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) => {
|
|
267562
267562
|
let n = e.colon || Bt, r = t.match(/\//) || g && t.match(/\\/) ? [""] : [
|
|
267563
267563
|
...g ? [process.cwd()] : [],
|
|
267564
|
-
...(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.
|
|
267564
|
+
...(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.LLtZ54gSIq:/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)
|
|
267565
267565
|
], s = g ? e.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", o = g ? s.split(n) : [""];
|
|
267566
267566
|
return g && t.indexOf(".") !== -1 && o[0] !== "" && o.unshift(""), {
|
|
267567
267567
|
pathEnv: r,
|
|
@@ -273552,6 +273552,7 @@ async function servicePrompt({
|
|
|
273552
273552
|
accept,
|
|
273553
273553
|
envKey,
|
|
273554
273554
|
defaultHandler,
|
|
273555
|
+
isRequired = false,
|
|
273555
273556
|
isCi = is_in_ci_default
|
|
273556
273557
|
}) {
|
|
273557
273558
|
if (services.length === 0) {
|
|
@@ -273565,20 +273566,27 @@ async function servicePrompt({
|
|
|
273565
273566
|
if (isCi) {
|
|
273566
273567
|
return;
|
|
273567
273568
|
}
|
|
273568
|
-
if (services.length === 1) {
|
|
273569
|
+
if (isRequired && services.length === 1) {
|
|
273569
273570
|
return services[0];
|
|
273570
273571
|
}
|
|
273571
273572
|
return defaultHandler({ defaultService: selectedService });
|
|
273572
273573
|
}
|
|
273573
273574
|
|
|
273574
273575
|
// src/commands/connect/blockchain-node.prompt.ts
|
|
273575
|
-
async function blockchainNodePrompt(
|
|
273576
|
+
async function blockchainNodePrompt({
|
|
273577
|
+
env: env2,
|
|
273578
|
+
nodes,
|
|
273579
|
+
accept,
|
|
273580
|
+
filterRunningOnly = false,
|
|
273581
|
+
isRequired = false
|
|
273582
|
+
}) {
|
|
273576
273583
|
const choices = filterRunningOnly ? nodes.filter((node) => node.status === "COMPLETED") : nodes;
|
|
273577
273584
|
return servicePrompt({
|
|
273578
273585
|
env: env2,
|
|
273579
273586
|
services: nodes,
|
|
273580
273587
|
accept,
|
|
273581
273588
|
envKey: "SETTLEMINT_BLOCKCHAIN_NODE",
|
|
273589
|
+
isRequired,
|
|
273582
273590
|
defaultHandler: async ({ defaultService: defaultNode }) => {
|
|
273583
273591
|
return esm_default2({
|
|
273584
273592
|
message: "Which blockchain node do you want to connect to?",
|
|
@@ -273587,10 +273595,12 @@ async function blockchainNodePrompt(env2, nodes, accept, filterRunningOnly = fal
|
|
|
273587
273595
|
name: node.name,
|
|
273588
273596
|
value: node
|
|
273589
273597
|
})),
|
|
273590
|
-
|
|
273591
|
-
|
|
273592
|
-
|
|
273593
|
-
|
|
273598
|
+
...isRequired ? [] : [
|
|
273599
|
+
{
|
|
273600
|
+
name: "None",
|
|
273601
|
+
value: undefined
|
|
273602
|
+
}
|
|
273603
|
+
]
|
|
273594
273604
|
],
|
|
273595
273605
|
default: defaultNode
|
|
273596
273606
|
});
|
|
@@ -273599,13 +273609,19 @@ async function blockchainNodePrompt(env2, nodes, accept, filterRunningOnly = fal
|
|
|
273599
273609
|
}
|
|
273600
273610
|
|
|
273601
273611
|
// src/commands/connect/blockscout.prompt.ts
|
|
273602
|
-
async function blockscoutPrompt(
|
|
273612
|
+
async function blockscoutPrompt({
|
|
273613
|
+
env: env2,
|
|
273614
|
+
insights,
|
|
273615
|
+
accept,
|
|
273616
|
+
isRequired = false
|
|
273617
|
+
}) {
|
|
273603
273618
|
const possible = insights.filter((insight) => insight.insightsCategory === "BLOCKCHAIN_EXPLORER");
|
|
273604
273619
|
return servicePrompt({
|
|
273605
273620
|
env: env2,
|
|
273606
273621
|
services: possible,
|
|
273607
273622
|
accept,
|
|
273608
273623
|
envKey: "SETTLEMINT_BLOCKSCOUT",
|
|
273624
|
+
isRequired,
|
|
273609
273625
|
defaultHandler: async ({ defaultService: defaultBlockscout }) => {
|
|
273610
273626
|
return esm_default2({
|
|
273611
273627
|
message: "Which blockscout instance do you want to connect to?",
|
|
@@ -273614,10 +273630,12 @@ async function blockscoutPrompt(env2, insights, accept) {
|
|
|
273614
273630
|
name: insight.name,
|
|
273615
273631
|
value: insight
|
|
273616
273632
|
})),
|
|
273617
|
-
|
|
273618
|
-
|
|
273619
|
-
|
|
273620
|
-
|
|
273633
|
+
...isRequired ? [] : [
|
|
273634
|
+
{
|
|
273635
|
+
name: "None",
|
|
273636
|
+
value: undefined
|
|
273637
|
+
}
|
|
273638
|
+
]
|
|
273621
273639
|
],
|
|
273622
273640
|
default: defaultBlockscout
|
|
273623
273641
|
});
|
|
@@ -273626,12 +273644,18 @@ async function blockscoutPrompt(env2, insights, accept) {
|
|
|
273626
273644
|
}
|
|
273627
273645
|
|
|
273628
273646
|
// src/commands/connect/custom-deployment.prompt.ts
|
|
273629
|
-
async function customDeploymentPrompt(
|
|
273647
|
+
async function customDeploymentPrompt({
|
|
273648
|
+
env: env2,
|
|
273649
|
+
customDeployments,
|
|
273650
|
+
accept,
|
|
273651
|
+
isRequired = false
|
|
273652
|
+
}) {
|
|
273630
273653
|
return servicePrompt({
|
|
273631
273654
|
env: env2,
|
|
273632
273655
|
services: customDeployments,
|
|
273633
273656
|
accept,
|
|
273634
273657
|
envKey: "SETTLEMINT_CUSTOM_DEPLOYMENT",
|
|
273658
|
+
isRequired,
|
|
273635
273659
|
defaultHandler: async ({
|
|
273636
273660
|
defaultService: defaultCustomDeployment
|
|
273637
273661
|
}) => {
|
|
@@ -273642,10 +273666,12 @@ async function customDeploymentPrompt(env2, customDeployments, accept) {
|
|
|
273642
273666
|
name: customDeployment.name,
|
|
273643
273667
|
value: customDeployment
|
|
273644
273668
|
})),
|
|
273645
|
-
|
|
273646
|
-
|
|
273647
|
-
|
|
273648
|
-
|
|
273669
|
+
...isRequired ? [] : [
|
|
273670
|
+
{
|
|
273671
|
+
name: "None",
|
|
273672
|
+
value: undefined
|
|
273673
|
+
}
|
|
273674
|
+
]
|
|
273649
273675
|
],
|
|
273650
273676
|
default: defaultCustomDeployment
|
|
273651
273677
|
});
|
|
@@ -273654,13 +273680,19 @@ async function customDeploymentPrompt(env2, customDeployments, accept) {
|
|
|
273654
273680
|
}
|
|
273655
273681
|
|
|
273656
273682
|
// src/commands/connect/hasura.prompt.ts
|
|
273657
|
-
async function hasuraPrompt(
|
|
273683
|
+
async function hasuraPrompt({
|
|
273684
|
+
env: env2,
|
|
273685
|
+
integrations,
|
|
273686
|
+
accept,
|
|
273687
|
+
isRequired = false
|
|
273688
|
+
}) {
|
|
273658
273689
|
const possible = integrations.filter((integration) => integration.integrationType === "HASURA");
|
|
273659
273690
|
return servicePrompt({
|
|
273660
273691
|
env: env2,
|
|
273661
273692
|
services: possible,
|
|
273662
273693
|
accept,
|
|
273663
273694
|
envKey: "SETTLEMINT_HASURA",
|
|
273695
|
+
isRequired,
|
|
273664
273696
|
defaultHandler: async ({ defaultService: defaultHasura }) => {
|
|
273665
273697
|
return esm_default2({
|
|
273666
273698
|
message: "Which Hasura instance do you want to connect to?",
|
|
@@ -273669,10 +273701,12 @@ async function hasuraPrompt(env2, integrations, accept) {
|
|
|
273669
273701
|
name: integration.name,
|
|
273670
273702
|
value: integration
|
|
273671
273703
|
})),
|
|
273672
|
-
|
|
273673
|
-
|
|
273674
|
-
|
|
273675
|
-
|
|
273704
|
+
...isRequired ? [] : [
|
|
273705
|
+
{
|
|
273706
|
+
name: "None",
|
|
273707
|
+
value: undefined
|
|
273708
|
+
}
|
|
273709
|
+
]
|
|
273676
273710
|
],
|
|
273677
273711
|
default: defaultHasura
|
|
273678
273712
|
});
|
|
@@ -273681,13 +273715,19 @@ async function hasuraPrompt(env2, integrations, accept) {
|
|
|
273681
273715
|
}
|
|
273682
273716
|
|
|
273683
273717
|
// src/commands/connect/hd-private-keys.prompt.ts
|
|
273684
|
-
async function hdPrivateKeyPrompt(
|
|
273718
|
+
async function hdPrivateKeyPrompt({
|
|
273719
|
+
env: env2,
|
|
273720
|
+
privateKeys,
|
|
273721
|
+
accept,
|
|
273722
|
+
isRequired = false
|
|
273723
|
+
}) {
|
|
273685
273724
|
const possible = privateKeys.filter((privateKey) => privateKey.privateKeyType === "HD_ECDSA_P256");
|
|
273686
273725
|
return servicePrompt({
|
|
273687
273726
|
env: env2,
|
|
273688
273727
|
services: possible,
|
|
273689
273728
|
accept,
|
|
273690
273729
|
envKey: "SETTLEMINT_HD_PRIVATE_KEY",
|
|
273730
|
+
isRequired,
|
|
273691
273731
|
defaultHandler: async ({ defaultService: defaultPrivateKey }) => {
|
|
273692
273732
|
return esm_default2({
|
|
273693
273733
|
message: "Which HD Private Key do you want to use?",
|
|
@@ -273696,10 +273736,12 @@ async function hdPrivateKeyPrompt(env2, privateKeys, accept) {
|
|
|
273696
273736
|
name: privateKey.name,
|
|
273697
273737
|
value: privateKey
|
|
273698
273738
|
})),
|
|
273699
|
-
|
|
273700
|
-
|
|
273701
|
-
|
|
273702
|
-
|
|
273739
|
+
...isRequired ? [] : [
|
|
273740
|
+
{
|
|
273741
|
+
name: "None",
|
|
273742
|
+
value: undefined
|
|
273743
|
+
}
|
|
273744
|
+
]
|
|
273703
273745
|
],
|
|
273704
273746
|
default: defaultPrivateKey
|
|
273705
273747
|
});
|
|
@@ -273752,13 +273794,19 @@ async function instancePrompt(env2, accept, freeTextInput = false) {
|
|
|
273752
273794
|
}
|
|
273753
273795
|
|
|
273754
273796
|
// src/commands/connect/ipfs.prompt.ts
|
|
273755
|
-
async function ipfsPrompt(
|
|
273797
|
+
async function ipfsPrompt({
|
|
273798
|
+
env: env2,
|
|
273799
|
+
storages,
|
|
273800
|
+
accept,
|
|
273801
|
+
isRequired = false
|
|
273802
|
+
}) {
|
|
273756
273803
|
const possible = storages.filter((storage) => storage.storageProtocol === "IPFS");
|
|
273757
273804
|
return servicePrompt({
|
|
273758
273805
|
env: env2,
|
|
273759
273806
|
services: possible,
|
|
273760
273807
|
accept,
|
|
273761
273808
|
envKey: "SETTLEMINT_IPFS",
|
|
273809
|
+
isRequired,
|
|
273762
273810
|
defaultHandler: async ({ defaultService: defaultStorage }) => {
|
|
273763
273811
|
return esm_default2({
|
|
273764
273812
|
message: "Which IPFS instance do you want to connect to?",
|
|
@@ -273767,10 +273815,12 @@ async function ipfsPrompt(env2, storages, accept) {
|
|
|
273767
273815
|
name: storage.name,
|
|
273768
273816
|
value: storage
|
|
273769
273817
|
})),
|
|
273770
|
-
|
|
273771
|
-
|
|
273772
|
-
|
|
273773
|
-
|
|
273818
|
+
...isRequired ? [] : [
|
|
273819
|
+
{
|
|
273820
|
+
name: "None",
|
|
273821
|
+
value: undefined
|
|
273822
|
+
}
|
|
273823
|
+
]
|
|
273774
273824
|
],
|
|
273775
273825
|
default: defaultStorage
|
|
273776
273826
|
});
|
|
@@ -273779,13 +273829,19 @@ async function ipfsPrompt(env2, storages, accept) {
|
|
|
273779
273829
|
}
|
|
273780
273830
|
|
|
273781
273831
|
// src/commands/connect/minio.prompt.ts
|
|
273782
|
-
async function minioPrompt(
|
|
273832
|
+
async function minioPrompt({
|
|
273833
|
+
env: env2,
|
|
273834
|
+
storages,
|
|
273835
|
+
accept,
|
|
273836
|
+
isRequired = false
|
|
273837
|
+
}) {
|
|
273783
273838
|
const possible = storages.filter((storage) => storage.storageProtocol === "MINIO");
|
|
273784
273839
|
return servicePrompt({
|
|
273785
273840
|
env: env2,
|
|
273786
273841
|
services: possible,
|
|
273787
273842
|
accept,
|
|
273788
273843
|
envKey: "SETTLEMINT_MINIO",
|
|
273844
|
+
isRequired,
|
|
273789
273845
|
defaultHandler: async ({ defaultService: defaultStorage }) => {
|
|
273790
273846
|
return esm_default2({
|
|
273791
273847
|
message: "Which MinIO instance do you want to connect to?",
|
|
@@ -273794,10 +273850,12 @@ async function minioPrompt(env2, storages, accept) {
|
|
|
273794
273850
|
name: storage.name,
|
|
273795
273851
|
value: storage
|
|
273796
273852
|
})),
|
|
273797
|
-
|
|
273798
|
-
|
|
273799
|
-
|
|
273800
|
-
|
|
273853
|
+
...isRequired ? [] : [
|
|
273854
|
+
{
|
|
273855
|
+
name: "None",
|
|
273856
|
+
value: undefined
|
|
273857
|
+
}
|
|
273858
|
+
]
|
|
273801
273859
|
],
|
|
273802
273860
|
default: defaultStorage
|
|
273803
273861
|
});
|
|
@@ -273806,13 +273864,19 @@ async function minioPrompt(env2, storages, accept) {
|
|
|
273806
273864
|
}
|
|
273807
273865
|
|
|
273808
273866
|
// src/commands/connect/portal.prompt.ts
|
|
273809
|
-
async function portalPrompt(
|
|
273867
|
+
async function portalPrompt({
|
|
273868
|
+
env: env2,
|
|
273869
|
+
middlewares,
|
|
273870
|
+
accept,
|
|
273871
|
+
isRequired = false
|
|
273872
|
+
}) {
|
|
273810
273873
|
const possible = middlewares.filter((middleware) => middleware.interface === "SMART_CONTRACT_PORTAL");
|
|
273811
273874
|
return servicePrompt({
|
|
273812
273875
|
env: env2,
|
|
273813
273876
|
services: possible,
|
|
273814
273877
|
accept,
|
|
273815
273878
|
envKey: "SETTLEMINT_PORTAL",
|
|
273879
|
+
isRequired,
|
|
273816
273880
|
defaultHandler: async ({ defaultService: defaultMiddleware }) => {
|
|
273817
273881
|
return esm_default2({
|
|
273818
273882
|
message: "Which Smart Contract Portal instance do you want to connect to?",
|
|
@@ -273821,10 +273885,12 @@ async function portalPrompt(env2, middlewares, accept) {
|
|
|
273821
273885
|
name: middleware.name,
|
|
273822
273886
|
value: middleware
|
|
273823
273887
|
})),
|
|
273824
|
-
|
|
273825
|
-
|
|
273826
|
-
|
|
273827
|
-
|
|
273888
|
+
...isRequired ? [] : [
|
|
273889
|
+
{
|
|
273890
|
+
name: "None",
|
|
273891
|
+
value: undefined
|
|
273892
|
+
}
|
|
273893
|
+
]
|
|
273828
273894
|
],
|
|
273829
273895
|
default: defaultMiddleware
|
|
273830
273896
|
});
|
|
@@ -273841,12 +273907,12 @@ async function servicesSpinner(settlemint, application) {
|
|
|
273841
273907
|
const [
|
|
273842
273908
|
blockchainNetworks,
|
|
273843
273909
|
blockchainNodes,
|
|
273844
|
-
|
|
273845
|
-
|
|
273846
|
-
|
|
273847
|
-
|
|
273910
|
+
middlewares,
|
|
273911
|
+
integrationTools,
|
|
273912
|
+
storages,
|
|
273913
|
+
privateKeys,
|
|
273848
273914
|
insights,
|
|
273849
|
-
|
|
273915
|
+
customDeployments
|
|
273850
273916
|
] = await Promise.all([
|
|
273851
273917
|
settlemint.blockchainNetwork.list(application.uniqueName),
|
|
273852
273918
|
settlemint.blockchainNode.list(application.uniqueName),
|
|
@@ -273860,19 +273926,25 @@ async function servicesSpinner(settlemint, application) {
|
|
|
273860
273926
|
return {
|
|
273861
273927
|
blockchainNetworks,
|
|
273862
273928
|
blockchainNodes,
|
|
273863
|
-
|
|
273864
|
-
|
|
273865
|
-
|
|
273866
|
-
|
|
273929
|
+
middlewares,
|
|
273930
|
+
integrationTools,
|
|
273931
|
+
storages,
|
|
273932
|
+
privateKeys,
|
|
273867
273933
|
insights,
|
|
273868
|
-
|
|
273934
|
+
customDeployments
|
|
273869
273935
|
};
|
|
273870
273936
|
}
|
|
273871
273937
|
});
|
|
273872
273938
|
}
|
|
273873
273939
|
|
|
273874
273940
|
// src/commands/connect/thegraph.prompt.ts
|
|
273875
|
-
async function theGraphPrompt(
|
|
273941
|
+
async function theGraphPrompt({
|
|
273942
|
+
env: env2,
|
|
273943
|
+
middlewares,
|
|
273944
|
+
accept,
|
|
273945
|
+
filterRunningOnly = false,
|
|
273946
|
+
isRequired = false
|
|
273947
|
+
}) {
|
|
273876
273948
|
const graphMiddlewares = middlewares.filter((middleware) => middleware.__typename === "HAGraphMiddleware");
|
|
273877
273949
|
const choices = filterRunningOnly ? graphMiddlewares.filter((middleware) => middleware.status === "COMPLETED") : graphMiddlewares;
|
|
273878
273950
|
return servicePrompt({
|
|
@@ -273880,6 +273952,7 @@ async function theGraphPrompt(env2, middlewares, accept, filterRunningOnly = fal
|
|
|
273880
273952
|
services: graphMiddlewares,
|
|
273881
273953
|
accept,
|
|
273882
273954
|
envKey: "SETTLEMINT_THEGRAPH",
|
|
273955
|
+
isRequired,
|
|
273883
273956
|
defaultHandler: async ({ defaultService: defaultMiddleware }) => {
|
|
273884
273957
|
return esm_default2({
|
|
273885
273958
|
message: "Which The Graph instance do you want to connect to?",
|
|
@@ -273888,10 +273961,12 @@ async function theGraphPrompt(env2, middlewares, accept, filterRunningOnly = fal
|
|
|
273888
273961
|
name: middleware.name,
|
|
273889
273962
|
value: middleware
|
|
273890
273963
|
})),
|
|
273891
|
-
|
|
273892
|
-
|
|
273893
|
-
|
|
273894
|
-
|
|
273964
|
+
...isRequired ? [] : [
|
|
273965
|
+
{
|
|
273966
|
+
name: "None",
|
|
273967
|
+
value: undefined
|
|
273968
|
+
}
|
|
273969
|
+
]
|
|
273895
273970
|
],
|
|
273896
273971
|
default: defaultMiddleware
|
|
273897
273972
|
});
|
|
@@ -273946,16 +274021,52 @@ function connectCommand() {
|
|
|
273946
274021
|
const workspace = await workspacePrompt(env2, workspaces, acceptDefaults);
|
|
273947
274022
|
const application = await applicationPrompt(env2, workspace?.applications ?? [], acceptDefaults);
|
|
273948
274023
|
const aatToken = await applicationAccessTokenPrompt(env2, application, settlemint, acceptDefaults);
|
|
273949
|
-
const {
|
|
273950
|
-
const blockchainNode = await blockchainNodePrompt(
|
|
273951
|
-
|
|
273952
|
-
|
|
273953
|
-
|
|
273954
|
-
|
|
273955
|
-
const
|
|
273956
|
-
|
|
273957
|
-
|
|
273958
|
-
|
|
274024
|
+
const { middlewares, integrationTools, storages, privateKeys, insights, customDeployments, blockchainNodes } = await servicesSpinner(settlemint, application);
|
|
274025
|
+
const blockchainNode = await blockchainNodePrompt({
|
|
274026
|
+
env: env2,
|
|
274027
|
+
nodes: blockchainNodes,
|
|
274028
|
+
accept: acceptDefaults
|
|
274029
|
+
});
|
|
274030
|
+
const hasura = await hasuraPrompt({
|
|
274031
|
+
env: env2,
|
|
274032
|
+
integrations: integrationTools,
|
|
274033
|
+
accept: acceptDefaults
|
|
274034
|
+
});
|
|
274035
|
+
const thegraph = await theGraphPrompt({
|
|
274036
|
+
env: env2,
|
|
274037
|
+
middlewares,
|
|
274038
|
+
accept: acceptDefaults
|
|
274039
|
+
});
|
|
274040
|
+
const portal = await portalPrompt({
|
|
274041
|
+
env: env2,
|
|
274042
|
+
middlewares,
|
|
274043
|
+
accept: acceptDefaults
|
|
274044
|
+
});
|
|
274045
|
+
const ipfs = await ipfsPrompt({
|
|
274046
|
+
env: env2,
|
|
274047
|
+
storages,
|
|
274048
|
+
accept: acceptDefaults
|
|
274049
|
+
});
|
|
274050
|
+
const minio = await minioPrompt({
|
|
274051
|
+
env: env2,
|
|
274052
|
+
storages,
|
|
274053
|
+
accept: acceptDefaults
|
|
274054
|
+
});
|
|
274055
|
+
const hdPrivateKey = await hdPrivateKeyPrompt({
|
|
274056
|
+
env: env2,
|
|
274057
|
+
privateKeys,
|
|
274058
|
+
accept: acceptDefaults
|
|
274059
|
+
});
|
|
274060
|
+
const cDeployment = await customDeploymentPrompt({
|
|
274061
|
+
env: env2,
|
|
274062
|
+
customDeployments,
|
|
274063
|
+
accept: acceptDefaults
|
|
274064
|
+
});
|
|
274065
|
+
const blockscout = await blockscoutPrompt({
|
|
274066
|
+
env: env2,
|
|
274067
|
+
insights,
|
|
274068
|
+
accept: acceptDefaults
|
|
274069
|
+
});
|
|
273959
274070
|
if (acceptDefaults) {
|
|
273960
274071
|
const selectedServices = [
|
|
273961
274072
|
`Workspace: ${workspace.name}`,
|
|
@@ -275585,12 +275696,18 @@ function applicationCreateCommand() {
|
|
|
275585
275696
|
}
|
|
275586
275697
|
|
|
275587
275698
|
// src/commands/connect/blockchain-network.prompt.ts
|
|
275588
|
-
async function blockchainNetworkPrompt(
|
|
275699
|
+
async function blockchainNetworkPrompt({
|
|
275700
|
+
env: env2,
|
|
275701
|
+
networks,
|
|
275702
|
+
accept,
|
|
275703
|
+
isRequired = false
|
|
275704
|
+
}) {
|
|
275589
275705
|
return servicePrompt({
|
|
275590
275706
|
env: env2,
|
|
275591
275707
|
services: networks,
|
|
275592
275708
|
accept,
|
|
275593
275709
|
envKey: "SETTLEMINT_BLOCKCHAIN_NETWORK",
|
|
275710
|
+
isRequired,
|
|
275594
275711
|
defaultHandler: async ({ defaultService: defaultNetwork }) => {
|
|
275595
275712
|
return esm_default2({
|
|
275596
275713
|
message: "Which blockchain network do you want to connect to?",
|
|
@@ -275599,10 +275716,12 @@ async function blockchainNetworkPrompt(env2, networks, accept) {
|
|
|
275599
275716
|
name: network.name,
|
|
275600
275717
|
value: network
|
|
275601
275718
|
})),
|
|
275602
|
-
|
|
275603
|
-
|
|
275604
|
-
|
|
275605
|
-
|
|
275719
|
+
...isRequired ? [] : [
|
|
275720
|
+
{
|
|
275721
|
+
name: "None",
|
|
275722
|
+
value: undefined
|
|
275723
|
+
}
|
|
275724
|
+
]
|
|
275606
275725
|
],
|
|
275607
275726
|
default: defaultNetwork
|
|
275608
275727
|
});
|
|
@@ -275642,7 +275761,12 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275642
275761
|
let networkUniqueName = blockchainNetwork;
|
|
275643
275762
|
if (!networkUniqueName) {
|
|
275644
275763
|
const networks = await settlemint.blockchainNetwork.list(applicationUniqueName);
|
|
275645
|
-
const network = await blockchainNetworkPrompt(
|
|
275764
|
+
const network = await blockchainNetworkPrompt({
|
|
275765
|
+
env: env2,
|
|
275766
|
+
networks,
|
|
275767
|
+
accept: acceptDefaults,
|
|
275768
|
+
isRequired: true
|
|
275769
|
+
});
|
|
275646
275770
|
if (!network) {
|
|
275647
275771
|
return nothingSelectedError("blockchain network");
|
|
275648
275772
|
}
|
|
@@ -275715,7 +275839,12 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275715
275839
|
const loadBalancerUniqueName = blockchainNodeUniqueName ? undefined : loadBalancer ?? env2.SETTLEMINT_LOAD_BALANCER;
|
|
275716
275840
|
if (!blockchainNodeUniqueName && !loadBalancerUniqueName) {
|
|
275717
275841
|
const blockchainNodes = await settlemint.blockchainNode.list(applicationUniqueName);
|
|
275718
|
-
const node = await blockchainNodePrompt(
|
|
275842
|
+
const node = await blockchainNodePrompt({
|
|
275843
|
+
env: env2,
|
|
275844
|
+
nodes: blockchainNodes,
|
|
275845
|
+
accept: acceptDefaults,
|
|
275846
|
+
isRequired: true
|
|
275847
|
+
});
|
|
275719
275848
|
if (!node) {
|
|
275720
275849
|
return nothingSelectedError("blockchain node");
|
|
275721
275850
|
}
|
|
@@ -275845,7 +275974,12 @@ function graphMiddlewareCreateCommand() {
|
|
|
275845
275974
|
let blockchainNodeUniqueName = blockchainNode;
|
|
275846
275975
|
if (!blockchainNodeUniqueName) {
|
|
275847
275976
|
const blockchainNodes = await settlemint.blockchainNode.list(applicationUniqueName);
|
|
275848
|
-
const node = await blockchainNodePrompt(
|
|
275977
|
+
const node = await blockchainNodePrompt({
|
|
275978
|
+
env: env2,
|
|
275979
|
+
nodes: blockchainNodes,
|
|
275980
|
+
accept: acceptDefaults,
|
|
275981
|
+
isRequired: true
|
|
275982
|
+
});
|
|
275849
275983
|
if (!node) {
|
|
275850
275984
|
return nothingSelectedError("blockchain node");
|
|
275851
275985
|
}
|
|
@@ -275923,7 +276057,12 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
275923
276057
|
const loadBalancerUniqueName = blockchainNodeUniqueName ? undefined : loadBalancer ?? env2.SETTLEMINT_LOAD_BALANCER;
|
|
275924
276058
|
if (!blockchainNodeUniqueName && !loadBalancerUniqueName) {
|
|
275925
276059
|
const blockchainNodes = await settlemint.blockchainNode.list(applicationUniqueName);
|
|
275926
|
-
const node = await blockchainNodePrompt(
|
|
276060
|
+
const node = await blockchainNodePrompt({
|
|
276061
|
+
env: env2,
|
|
276062
|
+
nodes: blockchainNodes,
|
|
276063
|
+
accept: acceptDefaults,
|
|
276064
|
+
isRequired: true
|
|
276065
|
+
});
|
|
275927
276066
|
if (!node) {
|
|
275928
276067
|
return nothingSelectedError("blockchain node");
|
|
275929
276068
|
}
|
|
@@ -276015,7 +276154,12 @@ function privateKeyHdCreateCommand() {
|
|
|
276015
276154
|
let blockchainNodeUniqueName = blockchainNode;
|
|
276016
276155
|
if (!blockchainNodeUniqueName) {
|
|
276017
276156
|
const blockchainNodes = await settlemint.blockchainNode.list(applicationUniqueName);
|
|
276018
|
-
const node = await blockchainNodePrompt(
|
|
276157
|
+
const node = await blockchainNodePrompt({
|
|
276158
|
+
env: env2,
|
|
276159
|
+
nodes: blockchainNodes,
|
|
276160
|
+
accept: acceptDefaults,
|
|
276161
|
+
isRequired: true
|
|
276162
|
+
});
|
|
276019
276163
|
if (!node) {
|
|
276020
276164
|
return nothingSelectedError("blockchain node");
|
|
276021
276165
|
}
|
|
@@ -276081,7 +276225,12 @@ function privateKeyHsmCreateCommand() {
|
|
|
276081
276225
|
let blockchainNodeUniqueName = blockchainNode;
|
|
276082
276226
|
if (!blockchainNodeUniqueName) {
|
|
276083
276227
|
const blockchainNodes = await settlemint.blockchainNode.list(applicationUniqueName);
|
|
276084
|
-
const node = await blockchainNodePrompt(
|
|
276228
|
+
const node = await blockchainNodePrompt({
|
|
276229
|
+
env: env2,
|
|
276230
|
+
nodes: blockchainNodes,
|
|
276231
|
+
accept: acceptDefaults,
|
|
276232
|
+
isRequired: true
|
|
276233
|
+
});
|
|
276085
276234
|
if (!node) {
|
|
276086
276235
|
return nothingSelectedError("blockchain node");
|
|
276087
276236
|
}
|
|
@@ -276919,7 +277068,12 @@ async function selectTargetNode({
|
|
|
276919
277068
|
if (nodesWithActivePrivateKey.length === 0) {
|
|
276920
277069
|
cancel("No EVM blockchain nodes with private keys found. Please activate a private key on your EVM blockchain node and try again.");
|
|
276921
277070
|
}
|
|
276922
|
-
const blockchainNode = await blockchainNodePrompt(
|
|
277071
|
+
const blockchainNode = await blockchainNodePrompt({
|
|
277072
|
+
env: env2,
|
|
277073
|
+
nodes: nodesWithActivePrivateKey,
|
|
277074
|
+
accept: autoAccept,
|
|
277075
|
+
isRequired: true
|
|
277076
|
+
});
|
|
276923
277077
|
if (!blockchainNode) {
|
|
276924
277078
|
return nothingSelectedError("EVM blockchain node");
|
|
276925
277079
|
}
|
|
@@ -277363,7 +277517,12 @@ async function getTheGraphMiddleware({
|
|
|
277363
277517
|
return missingApplication();
|
|
277364
277518
|
}
|
|
277365
277519
|
const middlewares = await settlemintClient.middleware.list(env2.SETTLEMINT_APPLICATION);
|
|
277366
|
-
return theGraphPrompt(
|
|
277520
|
+
return theGraphPrompt({
|
|
277521
|
+
env: env2,
|
|
277522
|
+
middlewares,
|
|
277523
|
+
accept: autoAccept,
|
|
277524
|
+
isRequired: true
|
|
277525
|
+
});
|
|
277367
277526
|
}
|
|
277368
277527
|
async function getTheGraphNetwork({
|
|
277369
277528
|
theGraphMiddleware,
|
|
@@ -277577,4 +277736,4 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
277577
277736
|
ascii();
|
|
277578
277737
|
sdkCliCommand();
|
|
277579
277738
|
|
|
277580
|
-
//# debugId=
|
|
277739
|
+
//# debugId=77896934860DB1A364756E2164756E21
|