@settlemint/sdk-cli 0.9.9-pra3c57dd2 → 0.9.9-prced21c0f
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 +160 -50
- package/dist/cli.js.map +17 -17
- 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.CYmWfOQ1T4:/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.CYmWfOQ1T4:/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.CYmWfOQ1T4:/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.CYmWfOQ1T4:/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-prced21c0f",
|
|
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.CYmWfOQ1T4:/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-prced21c0f",
|
|
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-prced21c0f",
|
|
256845
|
+
"@settlemint/sdk-utils": "0.9.9-prced21c0f",
|
|
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.CYmWfOQ1T4:/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,
|
|
@@ -270729,13 +270729,11 @@ async function exists3(path5) {
|
|
|
270729
270729
|
}
|
|
270730
270730
|
}
|
|
270731
270731
|
async function findMonoRepoRoot(startDir) {
|
|
270732
|
-
const lockFilePath = await findUp(["package-lock.json", "yarn.lock", "pnpm-lock.yaml", "bun.lockb", "bun.lock"]
|
|
270733
|
-
cwd: startDir
|
|
270734
|
-
});
|
|
270732
|
+
const lockFilePath = await findUp(["package-lock.json", "yarn.lock", "pnpm-lock.yaml", "bun.lockb", "bun.lock"]);
|
|
270735
270733
|
if (lockFilePath) {
|
|
270736
|
-
const packageJsonPath = join22(
|
|
270734
|
+
const packageJsonPath = join22(lockFilePath, "package.json");
|
|
270737
270735
|
const hasWorkSpaces = await packageJsonHasWorkspaces(packageJsonPath);
|
|
270738
|
-
return hasWorkSpaces ?
|
|
270736
|
+
return hasWorkSpaces ? lockFilePath : null;
|
|
270739
270737
|
}
|
|
270740
270738
|
let currentDir = startDir;
|
|
270741
270739
|
while (currentDir !== "/") {
|
|
@@ -273592,17 +273590,7 @@ async function servicePrompt({
|
|
|
273592
273590
|
if (isRequired && services.length === 1) {
|
|
273593
273591
|
return services[0];
|
|
273594
273592
|
}
|
|
273595
|
-
|
|
273596
|
-
name: service.name,
|
|
273597
|
-
value: service
|
|
273598
|
-
}));
|
|
273599
|
-
if (!isRequired) {
|
|
273600
|
-
choices.push({
|
|
273601
|
-
name: "None",
|
|
273602
|
-
value: undefined
|
|
273603
|
-
});
|
|
273604
|
-
}
|
|
273605
|
-
return defaultHandler({ defaultService: selectedService, choices });
|
|
273593
|
+
return defaultHandler({ defaultService: selectedService });
|
|
273606
273594
|
}
|
|
273607
273595
|
|
|
273608
273596
|
// src/commands/connect/blockchain-node.prompt.ts
|
|
@@ -273613,17 +273601,28 @@ async function blockchainNodePrompt({
|
|
|
273613
273601
|
filterRunningOnly = false,
|
|
273614
273602
|
isRequired = false
|
|
273615
273603
|
}) {
|
|
273604
|
+
const choices = filterRunningOnly ? nodes.filter((node) => node.status === "COMPLETED") : nodes;
|
|
273616
273605
|
return servicePrompt({
|
|
273617
273606
|
env: env2,
|
|
273618
273607
|
services: nodes,
|
|
273619
273608
|
accept,
|
|
273620
273609
|
envKey: "SETTLEMINT_BLOCKCHAIN_NODE",
|
|
273621
273610
|
isRequired,
|
|
273622
|
-
defaultHandler: async ({ defaultService: defaultNode
|
|
273623
|
-
const filteredChoices = filterRunningOnly ? choices.filter(({ value: node }) => node === undefined || node?.status === "COMPLETED") : choices;
|
|
273611
|
+
defaultHandler: async ({ defaultService: defaultNode }) => {
|
|
273624
273612
|
return esm_default2({
|
|
273625
273613
|
message: "Which blockchain node do you want to connect to?",
|
|
273626
|
-
choices:
|
|
273614
|
+
choices: [
|
|
273615
|
+
...choices.map((node) => ({
|
|
273616
|
+
name: node.name,
|
|
273617
|
+
value: node
|
|
273618
|
+
})),
|
|
273619
|
+
...isRequired ? [] : [
|
|
273620
|
+
{
|
|
273621
|
+
name: "None",
|
|
273622
|
+
value: undefined
|
|
273623
|
+
}
|
|
273624
|
+
]
|
|
273625
|
+
],
|
|
273627
273626
|
default: defaultNode
|
|
273628
273627
|
});
|
|
273629
273628
|
}
|
|
@@ -273644,10 +273643,21 @@ async function blockscoutPrompt({
|
|
|
273644
273643
|
accept,
|
|
273645
273644
|
envKey: "SETTLEMINT_BLOCKSCOUT",
|
|
273646
273645
|
isRequired,
|
|
273647
|
-
defaultHandler: async ({ defaultService: defaultBlockscout
|
|
273646
|
+
defaultHandler: async ({ defaultService: defaultBlockscout }) => {
|
|
273648
273647
|
return esm_default2({
|
|
273649
273648
|
message: "Which blockscout instance do you want to connect to?",
|
|
273650
|
-
choices
|
|
273649
|
+
choices: [
|
|
273650
|
+
...possible.map((insight) => ({
|
|
273651
|
+
name: insight.name,
|
|
273652
|
+
value: insight
|
|
273653
|
+
})),
|
|
273654
|
+
...isRequired ? [] : [
|
|
273655
|
+
{
|
|
273656
|
+
name: "None",
|
|
273657
|
+
value: undefined
|
|
273658
|
+
}
|
|
273659
|
+
]
|
|
273660
|
+
],
|
|
273651
273661
|
default: defaultBlockscout
|
|
273652
273662
|
});
|
|
273653
273663
|
}
|
|
@@ -273667,10 +273677,23 @@ async function customDeploymentPrompt({
|
|
|
273667
273677
|
accept,
|
|
273668
273678
|
envKey: "SETTLEMINT_CUSTOM_DEPLOYMENT",
|
|
273669
273679
|
isRequired,
|
|
273670
|
-
defaultHandler: async ({
|
|
273680
|
+
defaultHandler: async ({
|
|
273681
|
+
defaultService: defaultCustomDeployment
|
|
273682
|
+
}) => {
|
|
273671
273683
|
return esm_default2({
|
|
273672
273684
|
message: "Which Custom Deployment do you want to connect to?",
|
|
273673
|
-
choices
|
|
273685
|
+
choices: [
|
|
273686
|
+
...customDeployments.map((customDeployment) => ({
|
|
273687
|
+
name: customDeployment.name,
|
|
273688
|
+
value: customDeployment
|
|
273689
|
+
})),
|
|
273690
|
+
...isRequired ? [] : [
|
|
273691
|
+
{
|
|
273692
|
+
name: "None",
|
|
273693
|
+
value: undefined
|
|
273694
|
+
}
|
|
273695
|
+
]
|
|
273696
|
+
],
|
|
273674
273697
|
default: defaultCustomDeployment
|
|
273675
273698
|
});
|
|
273676
273699
|
}
|
|
@@ -273691,10 +273714,21 @@ async function hasuraPrompt({
|
|
|
273691
273714
|
accept,
|
|
273692
273715
|
envKey: "SETTLEMINT_HASURA",
|
|
273693
273716
|
isRequired,
|
|
273694
|
-
defaultHandler: async ({ defaultService: defaultHasura
|
|
273717
|
+
defaultHandler: async ({ defaultService: defaultHasura }) => {
|
|
273695
273718
|
return esm_default2({
|
|
273696
273719
|
message: "Which Hasura instance do you want to connect to?",
|
|
273697
|
-
choices
|
|
273720
|
+
choices: [
|
|
273721
|
+
...possible.map((integration) => ({
|
|
273722
|
+
name: integration.name,
|
|
273723
|
+
value: integration
|
|
273724
|
+
})),
|
|
273725
|
+
...isRequired ? [] : [
|
|
273726
|
+
{
|
|
273727
|
+
name: "None",
|
|
273728
|
+
value: undefined
|
|
273729
|
+
}
|
|
273730
|
+
]
|
|
273731
|
+
],
|
|
273698
273732
|
default: defaultHasura
|
|
273699
273733
|
});
|
|
273700
273734
|
}
|
|
@@ -273715,10 +273749,21 @@ async function hdPrivateKeyPrompt({
|
|
|
273715
273749
|
accept,
|
|
273716
273750
|
envKey: "SETTLEMINT_HD_PRIVATE_KEY",
|
|
273717
273751
|
isRequired,
|
|
273718
|
-
defaultHandler: async ({ defaultService: defaultPrivateKey
|
|
273752
|
+
defaultHandler: async ({ defaultService: defaultPrivateKey }) => {
|
|
273719
273753
|
return esm_default2({
|
|
273720
273754
|
message: "Which HD Private Key do you want to use?",
|
|
273721
|
-
choices
|
|
273755
|
+
choices: [
|
|
273756
|
+
...possible.map((privateKey) => ({
|
|
273757
|
+
name: privateKey.name,
|
|
273758
|
+
value: privateKey
|
|
273759
|
+
})),
|
|
273760
|
+
...isRequired ? [] : [
|
|
273761
|
+
{
|
|
273762
|
+
name: "None",
|
|
273763
|
+
value: undefined
|
|
273764
|
+
}
|
|
273765
|
+
]
|
|
273766
|
+
],
|
|
273722
273767
|
default: defaultPrivateKey
|
|
273723
273768
|
});
|
|
273724
273769
|
}
|
|
@@ -273783,10 +273828,21 @@ async function ipfsPrompt({
|
|
|
273783
273828
|
accept,
|
|
273784
273829
|
envKey: "SETTLEMINT_IPFS",
|
|
273785
273830
|
isRequired,
|
|
273786
|
-
defaultHandler: async ({ defaultService: defaultStorage
|
|
273831
|
+
defaultHandler: async ({ defaultService: defaultStorage }) => {
|
|
273787
273832
|
return esm_default2({
|
|
273788
273833
|
message: "Which IPFS instance do you want to connect to?",
|
|
273789
|
-
choices
|
|
273834
|
+
choices: [
|
|
273835
|
+
...possible.map((storage) => ({
|
|
273836
|
+
name: storage.name,
|
|
273837
|
+
value: storage
|
|
273838
|
+
})),
|
|
273839
|
+
...isRequired ? [] : [
|
|
273840
|
+
{
|
|
273841
|
+
name: "None",
|
|
273842
|
+
value: undefined
|
|
273843
|
+
}
|
|
273844
|
+
]
|
|
273845
|
+
],
|
|
273790
273846
|
default: defaultStorage
|
|
273791
273847
|
});
|
|
273792
273848
|
}
|
|
@@ -273807,10 +273863,21 @@ async function minioPrompt({
|
|
|
273807
273863
|
accept,
|
|
273808
273864
|
envKey: "SETTLEMINT_MINIO",
|
|
273809
273865
|
isRequired,
|
|
273810
|
-
defaultHandler: async ({ defaultService: defaultStorage
|
|
273866
|
+
defaultHandler: async ({ defaultService: defaultStorage }) => {
|
|
273811
273867
|
return esm_default2({
|
|
273812
273868
|
message: "Which MinIO instance do you want to connect to?",
|
|
273813
|
-
choices
|
|
273869
|
+
choices: [
|
|
273870
|
+
...possible.map((storage) => ({
|
|
273871
|
+
name: storage.name,
|
|
273872
|
+
value: storage
|
|
273873
|
+
})),
|
|
273874
|
+
...isRequired ? [] : [
|
|
273875
|
+
{
|
|
273876
|
+
name: "None",
|
|
273877
|
+
value: undefined
|
|
273878
|
+
}
|
|
273879
|
+
]
|
|
273880
|
+
],
|
|
273814
273881
|
default: defaultStorage
|
|
273815
273882
|
});
|
|
273816
273883
|
}
|
|
@@ -273831,10 +273898,21 @@ async function portalPrompt({
|
|
|
273831
273898
|
accept,
|
|
273832
273899
|
envKey: "SETTLEMINT_PORTAL",
|
|
273833
273900
|
isRequired,
|
|
273834
|
-
defaultHandler: async ({ defaultService: defaultMiddleware
|
|
273901
|
+
defaultHandler: async ({ defaultService: defaultMiddleware }) => {
|
|
273835
273902
|
return esm_default2({
|
|
273836
273903
|
message: "Which Smart Contract Portal instance do you want to connect to?",
|
|
273837
|
-
choices
|
|
273904
|
+
choices: [
|
|
273905
|
+
...possible.map((middleware) => ({
|
|
273906
|
+
name: middleware.name,
|
|
273907
|
+
value: middleware
|
|
273908
|
+
})),
|
|
273909
|
+
...isRequired ? [] : [
|
|
273910
|
+
{
|
|
273911
|
+
name: "None",
|
|
273912
|
+
value: undefined
|
|
273913
|
+
}
|
|
273914
|
+
]
|
|
273915
|
+
],
|
|
273838
273916
|
default: defaultMiddleware
|
|
273839
273917
|
});
|
|
273840
273918
|
}
|
|
@@ -273889,17 +273967,28 @@ async function theGraphPrompt({
|
|
|
273889
273967
|
isRequired = false
|
|
273890
273968
|
}) {
|
|
273891
273969
|
const graphMiddlewares = middlewares.filter((middleware) => middleware.__typename === "HAGraphMiddleware");
|
|
273970
|
+
const choices = filterRunningOnly ? graphMiddlewares.filter((middleware) => middleware.status === "COMPLETED") : graphMiddlewares;
|
|
273892
273971
|
return servicePrompt({
|
|
273893
273972
|
env: env2,
|
|
273894
273973
|
services: graphMiddlewares,
|
|
273895
273974
|
accept,
|
|
273896
273975
|
envKey: "SETTLEMINT_THEGRAPH",
|
|
273897
273976
|
isRequired,
|
|
273898
|
-
defaultHandler: async ({ defaultService: defaultMiddleware
|
|
273899
|
-
const filteredChoices = filterRunningOnly ? choices.filter(({ value: middleware }) => middleware === undefined || middleware?.status === "COMPLETED") : choices;
|
|
273977
|
+
defaultHandler: async ({ defaultService: defaultMiddleware }) => {
|
|
273900
273978
|
return esm_default2({
|
|
273901
273979
|
message: "Which The Graph instance do you want to connect to?",
|
|
273902
|
-
choices:
|
|
273980
|
+
choices: [
|
|
273981
|
+
...choices.map((middleware) => ({
|
|
273982
|
+
name: middleware.name,
|
|
273983
|
+
value: middleware
|
|
273984
|
+
})),
|
|
273985
|
+
...isRequired ? [] : [
|
|
273986
|
+
{
|
|
273987
|
+
name: "None",
|
|
273988
|
+
value: undefined
|
|
273989
|
+
}
|
|
273990
|
+
]
|
|
273991
|
+
],
|
|
273903
273992
|
default: defaultMiddleware
|
|
273904
273993
|
});
|
|
273905
273994
|
}
|
|
@@ -275640,10 +275729,21 @@ async function blockchainNetworkPrompt({
|
|
|
275640
275729
|
accept,
|
|
275641
275730
|
envKey: "SETTLEMINT_BLOCKCHAIN_NETWORK",
|
|
275642
275731
|
isRequired,
|
|
275643
|
-
defaultHandler: async ({ defaultService: defaultNetwork
|
|
275732
|
+
defaultHandler: async ({ defaultService: defaultNetwork }) => {
|
|
275644
275733
|
return esm_default2({
|
|
275645
275734
|
message: "Which blockchain network do you want to connect to?",
|
|
275646
|
-
choices
|
|
275735
|
+
choices: [
|
|
275736
|
+
...networks.map((network) => ({
|
|
275737
|
+
name: network.name,
|
|
275738
|
+
value: network
|
|
275739
|
+
})),
|
|
275740
|
+
...isRequired ? [] : [
|
|
275741
|
+
{
|
|
275742
|
+
name: "None",
|
|
275743
|
+
value: undefined
|
|
275744
|
+
}
|
|
275745
|
+
]
|
|
275746
|
+
],
|
|
275647
275747
|
default: defaultNetwork
|
|
275648
275748
|
});
|
|
275649
275749
|
}
|
|
@@ -277596,7 +277696,7 @@ function subgraphDeployCommand() {
|
|
|
277596
277696
|
accessToken,
|
|
277597
277697
|
instance
|
|
277598
277698
|
});
|
|
277599
|
-
const middleware = await
|
|
277699
|
+
const middleware = await retryWhenFailed(() => getMiddlewareAndValidateSubgraphIsAvailable(theGraphMiddleware.uniqueName, settlemintClient, graphName));
|
|
277600
277700
|
const graphEndpoints = await getGraphEndpoint(middleware, env2, graphName);
|
|
277601
277701
|
await writeEnvSpinner(!!prod, {
|
|
277602
277702
|
...env2,
|
|
@@ -277610,6 +277710,16 @@ async function updateSpecVersion(specVersion) {
|
|
|
277610
277710
|
yamlConfig.specVersion = specVersion;
|
|
277611
277711
|
await updateSubgraphYamlConfig(yamlConfig);
|
|
277612
277712
|
}
|
|
277713
|
+
async function getMiddlewareAndValidateSubgraphIsAvailable(uniqueName, settlemintClient, graphName) {
|
|
277714
|
+
const middleware = await settlemintClient.middleware.read(uniqueName);
|
|
277715
|
+
if (middleware.__typename === "HAGraphMiddleware") {
|
|
277716
|
+
if (middleware.subgraphs.some((s8) => s8.name === graphName)) {
|
|
277717
|
+
return middleware;
|
|
277718
|
+
}
|
|
277719
|
+
throw new Error("Subgraph not available");
|
|
277720
|
+
}
|
|
277721
|
+
return middleware;
|
|
277722
|
+
}
|
|
277613
277723
|
|
|
277614
277724
|
// src/commands/smart-contract.set.ts
|
|
277615
277725
|
function smartContractSetCommand() {
|
|
@@ -277657,4 +277767,4 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
277657
277767
|
ascii();
|
|
277658
277768
|
sdkCliCommand();
|
|
277659
277769
|
|
|
277660
|
-
//# debugId=
|
|
277770
|
+
//# debugId=3B6247D8DD4498CD64756E2164756E21
|