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