@settlemint/sdk-cli 1.0.3 → 1.0.4
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 +110 -88
- package/dist/cli.js.map +27 -27
- 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.17nWROMbbb:/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.17nWROMbbb:/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.17nWROMbbb:/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.17nWROMbbb:/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: "1.0.
|
|
226467
|
+
binaryVersion: "1.0.4",
|
|
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.17nWROMbbb:/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) : [""];
|
|
@@ -267449,13 +267449,13 @@ var intro = (msg) => {
|
|
|
267449
267449
|
console.log("");
|
|
267450
267450
|
};
|
|
267451
267451
|
var note = (message, level = "info") => {
|
|
267452
|
-
console.log("");
|
|
267453
267452
|
const maskedMessage = maskTokens2(message);
|
|
267453
|
+
console.log("");
|
|
267454
267454
|
if (level === "warn") {
|
|
267455
267455
|
console.warn(yellowBright(maskedMessage));
|
|
267456
|
-
|
|
267457
|
-
console.log(maskedMessage);
|
|
267456
|
+
return;
|
|
267458
267457
|
}
|
|
267458
|
+
console.log(maskedMessage);
|
|
267459
267459
|
};
|
|
267460
267460
|
var outro = (msg) => {
|
|
267461
267461
|
console.log("");
|
|
@@ -267474,6 +267474,7 @@ var spinner = async (options) => {
|
|
|
267474
267474
|
} catch (error) {
|
|
267475
267475
|
spinner2.error(redBright(`${options.startMessage} --> Error!`));
|
|
267476
267476
|
note(redBright(`${error.message}
|
|
267477
|
+
|
|
267477
267478
|
${error.stack}`));
|
|
267478
267479
|
process.exit(1);
|
|
267479
267480
|
}
|
|
@@ -267482,7 +267483,7 @@ ${error.stack}`));
|
|
|
267482
267483
|
var package_default = {
|
|
267483
267484
|
name: "@settlemint/sdk-cli",
|
|
267484
267485
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
267485
|
-
version: "1.0.
|
|
267486
|
+
version: "1.0.4",
|
|
267486
267487
|
type: "module",
|
|
267487
267488
|
private: false,
|
|
267488
267489
|
license: "FSL-1.1-MIT",
|
|
@@ -267535,8 +267536,8 @@ var package_default = {
|
|
|
267535
267536
|
"@inquirer/input": "4.1.3",
|
|
267536
267537
|
"@inquirer/password": "4.0.6",
|
|
267537
267538
|
"@inquirer/select": "4.0.6",
|
|
267538
|
-
"@settlemint/sdk-js": "1.0.
|
|
267539
|
-
"@settlemint/sdk-utils": "1.0.
|
|
267539
|
+
"@settlemint/sdk-js": "1.0.4",
|
|
267540
|
+
"@settlemint/sdk-utils": "1.0.4",
|
|
267540
267541
|
"get-tsconfig": "4.8.1",
|
|
267541
267542
|
giget: "1.2.3"
|
|
267542
267543
|
},
|
|
@@ -267836,7 +267837,7 @@ var et = l((Re, tt) => {
|
|
|
267836
267837
|
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) => {
|
|
267837
267838
|
let n = e.colon || Bt, r = t.match(/\//) || g && t.match(/\\/) ? [""] : [
|
|
267838
267839
|
...g ? [process.cwd()] : [],
|
|
267839
|
-
...(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.
|
|
267840
|
+
...(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.17nWROMbbb:/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)
|
|
267840
267841
|
], s = g ? e.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", o = g ? s.split(n) : [""];
|
|
267841
267842
|
return g && t.indexOf(".") !== -1 && o[0] !== "" && o.unshift(""), {
|
|
267842
267843
|
pathEnv: r,
|
|
@@ -268347,13 +268348,13 @@ var intro2 = (msg) => {
|
|
|
268347
268348
|
console.log("");
|
|
268348
268349
|
};
|
|
268349
268350
|
var note2 = (message, level = "info") => {
|
|
268350
|
-
console.log("");
|
|
268351
268351
|
const maskedMessage = maskTokens3(message);
|
|
268352
|
+
console.log("");
|
|
268352
268353
|
if (level === "warn") {
|
|
268353
268354
|
console.warn(yellowBright(maskedMessage));
|
|
268354
|
-
|
|
268355
|
-
console.log(maskedMessage);
|
|
268355
|
+
return;
|
|
268356
268356
|
}
|
|
268357
|
+
console.log(maskedMessage);
|
|
268357
268358
|
};
|
|
268358
268359
|
var ApplicationAccessTokenSchema2 = z.string().regex(/^sm_aat_.*$/);
|
|
268359
268360
|
var PersonalAccessTokenSchema2 = z.string().regex(/^sm_pat_.*$/);
|
|
@@ -268592,11 +268593,17 @@ async function storeCredentials(token, instance) {
|
|
|
268592
268593
|
}
|
|
268593
268594
|
await writeConfig(config4);
|
|
268594
268595
|
}
|
|
268595
|
-
async function getInstanceCredentials(instance) {
|
|
268596
|
+
async function getInstanceCredentials(instance, throwOnMissingInstance = true) {
|
|
268596
268597
|
const config4 = await readConfig();
|
|
268597
268598
|
const instanceConfig = config4.instances[instance];
|
|
268598
268599
|
if (!instanceConfig) {
|
|
268599
|
-
|
|
268600
|
+
if (!throwOnMissingInstance) {
|
|
268601
|
+
return;
|
|
268602
|
+
}
|
|
268603
|
+
cancel2(`No configuration found for instance '${instance}'${Object.keys(config4.instances).length > 0 ? `
|
|
268604
|
+
Configured instances:
|
|
268605
|
+
${Object.keys(config4.instances).map((i) => `- '${i}'`).join(`
|
|
268606
|
+
`)}` : ""}`);
|
|
268600
268607
|
}
|
|
268601
268608
|
return { personalAccessToken: instanceConfig.personalAccessToken };
|
|
268602
268609
|
}
|
|
@@ -271219,22 +271226,27 @@ async function writeEnvSpinner(prod, env2) {
|
|
|
271219
271226
|
}
|
|
271220
271227
|
|
|
271221
271228
|
// src/utils/get-cluster-service-endpoint.ts
|
|
271222
|
-
async function getGraphEndpoint(settlemint, service,
|
|
271229
|
+
async function getGraphEndpoint(settlemint, service, graphName) {
|
|
271223
271230
|
if (!service || service.__typename !== "HAGraphMiddleware") {
|
|
271224
271231
|
return {};
|
|
271225
271232
|
}
|
|
271226
|
-
const
|
|
271227
|
-
|
|
271228
|
-
|
|
271229
|
-
|
|
271230
|
-
|
|
271231
|
-
|
|
271232
|
-
|
|
271233
|
-
|
|
271234
|
-
|
|
271235
|
-
|
|
271236
|
-
|
|
271237
|
-
|
|
271233
|
+
const theGraphMiddleware = await retryWhenFailed(async () => {
|
|
271234
|
+
const middleware = await settlemint.middleware.graphSubgraphs(service.uniqueName, !!graphName);
|
|
271235
|
+
if (!middleware || middleware.__typename !== "HAGraphMiddleware") {
|
|
271236
|
+
throw new Error(`Middleware '${service.uniqueName}' is not a graph middleware`);
|
|
271237
|
+
}
|
|
271238
|
+
if (graphName && !middleware.subgraphs.find(({ graphqlQueryEndpoint }) => graphqlQueryEndpoint?.id.endsWith(graphName))) {
|
|
271239
|
+
throw new Error(`Subgraph '${graphName}' not found in middleware '${service.uniqueName}'`);
|
|
271240
|
+
}
|
|
271241
|
+
return middleware;
|
|
271242
|
+
});
|
|
271243
|
+
const isStarterKit = (id) => id?.toLowerCase().endsWith("-starterkits");
|
|
271244
|
+
const endpoints = theGraphMiddleware.subgraphs.filter((subgraph) => {
|
|
271245
|
+
if (theGraphMiddleware.subgraphs.length === 1) {
|
|
271246
|
+
return true;
|
|
271247
|
+
}
|
|
271248
|
+
return !isStarterKit(subgraph.graphqlQueryEndpoint?.id);
|
|
271249
|
+
}).map(({ graphqlQueryEndpoint }) => graphqlQueryEndpoint?.displayValue);
|
|
271238
271250
|
return {
|
|
271239
271251
|
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS: endpoints
|
|
271240
271252
|
};
|
|
@@ -273251,7 +273263,18 @@ function createSettleMintClient(options) {
|
|
|
273251
273263
|
headers: {
|
|
273252
273264
|
"x-auth-token": validatedOptions.accessToken
|
|
273253
273265
|
},
|
|
273254
|
-
fetch:
|
|
273266
|
+
fetch: async (input, init2) => {
|
|
273267
|
+
const response = await fetchWithRetry(input, init2);
|
|
273268
|
+
const contentType = response.headers.get("content-type");
|
|
273269
|
+
if (contentType?.includes("application/json") || contentType?.includes("application/graphql-response+json")) {
|
|
273270
|
+
const data = await response.clone().json();
|
|
273271
|
+
if (data.errors?.length > 0) {
|
|
273272
|
+
const errorMessages = data.errors.map((e10) => e10.message).join(", ");
|
|
273273
|
+
throw new Error(errorMessages);
|
|
273274
|
+
}
|
|
273275
|
+
}
|
|
273276
|
+
return response;
|
|
273277
|
+
}
|
|
273255
273278
|
});
|
|
273256
273279
|
return {
|
|
273257
273280
|
workspace: {
|
|
@@ -273786,12 +273809,12 @@ async function instancePrompt(env2, accept, freeTextInput = false, isCi = is_in_
|
|
|
273786
273809
|
const defaultInstance = env2.SETTLEMINT_INSTANCE;
|
|
273787
273810
|
const defaultPossible = autoAccept && defaultInstance;
|
|
273788
273811
|
if (defaultPossible) {
|
|
273789
|
-
return defaultInstance;
|
|
273812
|
+
return sanitizeInstanceUrl(defaultInstance);
|
|
273790
273813
|
}
|
|
273791
273814
|
const defaultLoginInstance = await getDefaultInstance();
|
|
273792
273815
|
const defaultPromptInstance = defaultInstance ?? defaultLoginInstance ?? "https://console.settlemint.com";
|
|
273793
273816
|
if (isCi) {
|
|
273794
|
-
return defaultPromptInstance;
|
|
273817
|
+
return sanitizeInstanceUrl(defaultPromptInstance);
|
|
273795
273818
|
}
|
|
273796
273819
|
if (freeTextInput) {
|
|
273797
273820
|
const instance = await esm_default4({
|
|
@@ -273814,17 +273837,17 @@ async function instancePrompt(env2, accept, freeTextInput = false, isCi = is_in_
|
|
|
273814
273837
|
cancel3("No instances found. Please run `settlemint login` to configure an instance.");
|
|
273815
273838
|
}
|
|
273816
273839
|
if (knownInstances.length === 1) {
|
|
273817
|
-
return knownInstances[0];
|
|
273840
|
+
return sanitizeInstanceUrl(knownInstances[0]);
|
|
273818
273841
|
}
|
|
273819
273842
|
return esm_default2({
|
|
273820
273843
|
message: "What SettleMint instance do you want to connect to?",
|
|
273821
273844
|
choices: [
|
|
273822
273845
|
...knownInstances.map((instance) => ({
|
|
273823
273846
|
name: instance,
|
|
273824
|
-
value: instance
|
|
273847
|
+
value: sanitizeInstanceUrl(instance)
|
|
273825
273848
|
}))
|
|
273826
273849
|
],
|
|
273827
|
-
default: defaultPromptInstance
|
|
273850
|
+
default: sanitizeInstanceUrl(defaultPromptInstance)
|
|
273828
273851
|
});
|
|
273829
273852
|
}
|
|
273830
273853
|
|
|
@@ -274088,7 +274111,7 @@ function connectCommand() {
|
|
|
274088
274111
|
SETTLEMINT_HASURA: hasura?.uniqueName,
|
|
274089
274112
|
...getHasuraEndpoints(hasura),
|
|
274090
274113
|
SETTLEMINT_THEGRAPH: thegraph?.uniqueName,
|
|
274091
|
-
...await getGraphEndpoint(settlemint, thegraph
|
|
274114
|
+
...await getGraphEndpoint(settlemint, thegraph),
|
|
274092
274115
|
SETTLEMINT_PORTAL: portal?.uniqueName,
|
|
274093
274116
|
...getPortalEndpoints(portal),
|
|
274094
274117
|
SETTLEMINT_HD_PRIVATE_KEY: hdPrivateKey?.uniqueName,
|
|
@@ -274955,7 +274978,7 @@ async function loginSpinner(settlemint) {
|
|
|
274955
274978
|
|
|
274956
274979
|
// src/commands/connect/pat.prompt.ts
|
|
274957
274980
|
async function personalAccessTokenPrompt(env2, instance, accept) {
|
|
274958
|
-
const existingConfig = await getInstanceCredentials(instance);
|
|
274981
|
+
const existingConfig = await getInstanceCredentials(instance, false);
|
|
274959
274982
|
const defaultPersonalAccessToken = env2.SETTLEMINT_PERSONAL_ACCESS_TOKEN || existingConfig?.personalAccessToken;
|
|
274960
274983
|
const defaultPossible = accept && defaultPersonalAccessToken;
|
|
274961
274984
|
if (defaultPossible) {
|
|
@@ -275283,13 +275306,12 @@ function getCreateCommand({
|
|
|
275283
275306
|
return nothingSelectedError("region");
|
|
275284
275307
|
}
|
|
275285
275308
|
}
|
|
275286
|
-
const
|
|
275309
|
+
const showSpinner = (task) => spinner({
|
|
275287
275310
|
startMessage: `Creating ${type4}`,
|
|
275288
|
-
task
|
|
275289
|
-
return createFunction(settlemint, env2);
|
|
275290
|
-
},
|
|
275311
|
+
task,
|
|
275291
275312
|
stopMessage: `${capitalizeFirstLetter(type4)} created`
|
|
275292
275313
|
});
|
|
275314
|
+
const { result, waitFor, mapDefaultEnv } = await createFunction(settlemint, env2, showSpinner);
|
|
275293
275315
|
if (wait) {
|
|
275294
275316
|
await waitForCompletion({
|
|
275295
275317
|
settlemint,
|
|
@@ -275355,12 +275377,12 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275355
275377
|
...defaultArgs,
|
|
275356
275378
|
provider,
|
|
275357
275379
|
region
|
|
275358
|
-
}, async (settlemint, env2) => {
|
|
275380
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275359
275381
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275360
275382
|
if (!applicationUniqueName) {
|
|
275361
275383
|
return missingApplication();
|
|
275362
275384
|
}
|
|
275363
|
-
const result = await settlemint.blockchainNetwork.create({
|
|
275385
|
+
const result = await showSpinner(() => settlemint.blockchainNetwork.create({
|
|
275364
275386
|
name: name2,
|
|
275365
275387
|
applicationUniqueName,
|
|
275366
275388
|
nodeName,
|
|
@@ -275375,7 +275397,7 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275375
275397
|
secondsPerBlock,
|
|
275376
275398
|
size,
|
|
275377
275399
|
type: type4
|
|
275378
|
-
});
|
|
275400
|
+
}));
|
|
275379
275401
|
const blockchainNode = result.blockchainNodes.find((item) => item.name === nodeName) ?? result.blockchainNodes[0];
|
|
275380
275402
|
return {
|
|
275381
275403
|
result,
|
|
@@ -275514,8 +275536,8 @@ function workspaceCreateCommand() {
|
|
|
275514
275536
|
addressLine1,
|
|
275515
275537
|
...defaultArgs
|
|
275516
275538
|
}) => {
|
|
275517
|
-
return baseAction(defaultArgs, async (settlemint) => {
|
|
275518
|
-
const result = await settlemint.workspace.create({
|
|
275539
|
+
return baseAction(defaultArgs, async (settlemint, _env, showSpinner) => {
|
|
275540
|
+
const result = await showSpinner(() => settlemint.workspace.create({
|
|
275519
275541
|
name: name2,
|
|
275520
275542
|
taxIdValue,
|
|
275521
275543
|
taxIdType,
|
|
@@ -275527,7 +275549,7 @@ function workspaceCreateCommand() {
|
|
|
275527
275549
|
city,
|
|
275528
275550
|
addressLine2,
|
|
275529
275551
|
addressLine1
|
|
275530
|
-
});
|
|
275552
|
+
}));
|
|
275531
275553
|
return {
|
|
275532
275554
|
result,
|
|
275533
275555
|
mapDefaultEnv: () => {
|
|
@@ -275565,12 +275587,12 @@ function applicationAccessTokenCreateCommand() {
|
|
|
275565
275587
|
alias: "aat",
|
|
275566
275588
|
execute: (cmd2, baseAction) => {
|
|
275567
275589
|
cmd2.option("-app, --application <application>", "The application unique name to create the application access token for (defaults to application from env)").addOption(new Option("-v, --validity-period <period>", "The validity period for the token").choices(["DAYS_7", "DAYS_30", "DAYS_60", "DAYS_90", "NONE"]).default("DAYS_7")).action(async (name2, { application, validityPeriod, ...defaultArgs }) => {
|
|
275568
|
-
return baseAction(defaultArgs, async (settlemint, env2) => {
|
|
275590
|
+
return baseAction(defaultArgs, async (settlemint, env2, showSpinner) => {
|
|
275569
275591
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275570
275592
|
if (!applicationUniqueName) {
|
|
275571
275593
|
return missingApplication();
|
|
275572
275594
|
}
|
|
275573
|
-
const aatToken = await settlemint.applicationAccessToken.create({
|
|
275595
|
+
const aatToken = await showSpinner(() => settlemint.applicationAccessToken.create({
|
|
275574
275596
|
applicationUniqueName,
|
|
275575
275597
|
name: name2,
|
|
275576
275598
|
blockchainNetworkScope: {
|
|
@@ -275614,7 +275636,7 @@ function applicationAccessTokenCreateCommand() {
|
|
|
275614
275636
|
values: []
|
|
275615
275637
|
},
|
|
275616
275638
|
validityPeriod
|
|
275617
|
-
});
|
|
275639
|
+
}));
|
|
275618
275640
|
return {
|
|
275619
275641
|
result: {
|
|
275620
275642
|
id: "",
|
|
@@ -275658,7 +275680,7 @@ function applicationCreateCommand() {
|
|
|
275658
275680
|
return baseAction({
|
|
275659
275681
|
...defaultArgs,
|
|
275660
275682
|
acceptDefaults
|
|
275661
|
-
}, async (settlemint, env2) => {
|
|
275683
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275662
275684
|
let workspaceUniqueName = workspace;
|
|
275663
275685
|
if (!workspaceUniqueName) {
|
|
275664
275686
|
const workspaces = await settlemint.workspace.list();
|
|
@@ -275668,10 +275690,10 @@ function applicationCreateCommand() {
|
|
|
275668
275690
|
}
|
|
275669
275691
|
workspaceUniqueName = workspace2.uniqueName;
|
|
275670
275692
|
}
|
|
275671
|
-
const result = await settlemint.application.create({
|
|
275693
|
+
const result = await showSpinner(() => settlemint.application.create({
|
|
275672
275694
|
name: name2,
|
|
275673
275695
|
workspaceUniqueName
|
|
275674
|
-
});
|
|
275696
|
+
}));
|
|
275675
275697
|
return {
|
|
275676
275698
|
result,
|
|
275677
275699
|
mapDefaultEnv: () => {
|
|
@@ -275749,7 +275771,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275749
275771
|
acceptDefaults,
|
|
275750
275772
|
provider,
|
|
275751
275773
|
region
|
|
275752
|
-
}, async (settlemint, env2) => {
|
|
275774
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275753
275775
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275754
275776
|
if (!applicationUniqueName) {
|
|
275755
275777
|
return missingApplication();
|
|
@@ -275768,7 +275790,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275768
275790
|
}
|
|
275769
275791
|
networkUniqueName = network?.uniqueName;
|
|
275770
275792
|
}
|
|
275771
|
-
const result = await settlemint.blockchainNode.create({
|
|
275793
|
+
const result = await showSpinner(() => settlemint.blockchainNode.create({
|
|
275772
275794
|
applicationUniqueName,
|
|
275773
275795
|
name: name2,
|
|
275774
275796
|
blockchainNetworkUniqueName: networkUniqueName,
|
|
@@ -275778,7 +275800,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275778
275800
|
region,
|
|
275779
275801
|
size,
|
|
275780
275802
|
type: type4
|
|
275781
|
-
});
|
|
275803
|
+
}));
|
|
275782
275804
|
return {
|
|
275783
275805
|
result,
|
|
275784
275806
|
mapDefaultEnv: () => {
|
|
@@ -275827,7 +275849,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275827
275849
|
acceptDefaults,
|
|
275828
275850
|
provider,
|
|
275829
275851
|
region
|
|
275830
|
-
}, async (settlemint, env2) => {
|
|
275852
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275831
275853
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275832
275854
|
if (!applicationUniqueName) {
|
|
275833
275855
|
return missingApplication();
|
|
@@ -275847,7 +275869,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275847
275869
|
}
|
|
275848
275870
|
blockchainNodeUniqueName = node.uniqueName;
|
|
275849
275871
|
}
|
|
275850
|
-
const result = await settlemint.insights.create({
|
|
275872
|
+
const result = await showSpinner(() => settlemint.insights.create({
|
|
275851
275873
|
name: name2,
|
|
275852
275874
|
applicationUniqueName,
|
|
275853
275875
|
insightsCategory: "BLOCKCHAIN_EXPLORER",
|
|
@@ -275857,7 +275879,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275857
275879
|
type: type4,
|
|
275858
275880
|
blockchainNodeUniqueName,
|
|
275859
275881
|
loadBalancerUniqueName
|
|
275860
|
-
});
|
|
275882
|
+
}));
|
|
275861
275883
|
return {
|
|
275862
275884
|
result,
|
|
275863
275885
|
mapDefaultEnv: async () => {
|
|
@@ -275904,12 +275926,12 @@ function hasuraIntegrationCreateCommand() {
|
|
|
275904
275926
|
...defaultArgs,
|
|
275905
275927
|
provider,
|
|
275906
275928
|
region
|
|
275907
|
-
}, async (settlemint, env2) => {
|
|
275929
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275908
275930
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275909
275931
|
if (!applicationUniqueName) {
|
|
275910
275932
|
return missingApplication();
|
|
275911
275933
|
}
|
|
275912
|
-
const result = await settlemint.integrationTool.create({
|
|
275934
|
+
const result = await showSpinner(() => settlemint.integrationTool.create({
|
|
275913
275935
|
name: name2,
|
|
275914
275936
|
applicationUniqueName,
|
|
275915
275937
|
integrationType: "HASURA",
|
|
@@ -275917,7 +275939,7 @@ function hasuraIntegrationCreateCommand() {
|
|
|
275917
275939
|
region,
|
|
275918
275940
|
size,
|
|
275919
275941
|
type: type4
|
|
275920
|
-
});
|
|
275942
|
+
}));
|
|
275921
275943
|
return {
|
|
275922
275944
|
result,
|
|
275923
275945
|
mapDefaultEnv: async () => {
|
|
@@ -275965,7 +275987,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
275965
275987
|
acceptDefaults,
|
|
275966
275988
|
provider,
|
|
275967
275989
|
region
|
|
275968
|
-
}, async (settlemint, env2) => {
|
|
275990
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275969
275991
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275970
275992
|
if (!applicationUniqueName) {
|
|
275971
275993
|
return missingApplication();
|
|
@@ -275984,7 +276006,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
275984
276006
|
}
|
|
275985
276007
|
blockchainNodeUniqueName = node.uniqueName;
|
|
275986
276008
|
}
|
|
275987
|
-
const result = await settlemint.middleware.create({
|
|
276009
|
+
const result = await showSpinner(() => settlemint.middleware.create({
|
|
275988
276010
|
name: name2,
|
|
275989
276011
|
applicationUniqueName,
|
|
275990
276012
|
interface: "HA_GRAPH",
|
|
@@ -275993,7 +276015,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
275993
276015
|
region,
|
|
275994
276016
|
size,
|
|
275995
276017
|
type: type4
|
|
275996
|
-
});
|
|
276018
|
+
}));
|
|
275997
276019
|
return {
|
|
275998
276020
|
result,
|
|
275999
276021
|
mapDefaultEnv: async () => {
|
|
@@ -276001,7 +276023,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
276001
276023
|
return {
|
|
276002
276024
|
SETTLEMINT_APPLICATION: applicationUniqueName,
|
|
276003
276025
|
SETTLEMINT_THEGRAPH: result.uniqueName,
|
|
276004
|
-
...await getGraphEndpoint(settlemint, graphMiddleware
|
|
276026
|
+
...await getGraphEndpoint(settlemint, graphMiddleware)
|
|
276005
276027
|
};
|
|
276006
276028
|
}
|
|
276007
276029
|
};
|
|
@@ -276048,7 +276070,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276048
276070
|
acceptDefaults,
|
|
276049
276071
|
provider,
|
|
276050
276072
|
region
|
|
276051
|
-
}, async (settlemint, env2) => {
|
|
276073
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276052
276074
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276053
276075
|
if (!applicationUniqueName) {
|
|
276054
276076
|
return missingApplication();
|
|
@@ -276089,7 +276111,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276089
276111
|
cancel3(`Invalid pre-deployed abis: '${invalidPredeployedAbis.join(", ")}'. Possible values: '${platformConfig.preDeployedContracts.sort().join(", ")}'`);
|
|
276090
276112
|
}
|
|
276091
276113
|
}
|
|
276092
|
-
const result = await settlemint.middleware.create({
|
|
276114
|
+
const result = await showSpinner(() => settlemint.middleware.create({
|
|
276093
276115
|
name: name2,
|
|
276094
276116
|
applicationUniqueName,
|
|
276095
276117
|
interface: "SMART_CONTRACT_PORTAL",
|
|
@@ -276101,7 +276123,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276101
276123
|
region,
|
|
276102
276124
|
size,
|
|
276103
276125
|
type: type4
|
|
276104
|
-
});
|
|
276126
|
+
}));
|
|
276105
276127
|
return {
|
|
276106
276128
|
result,
|
|
276107
276129
|
mapDefaultEnv: async () => {
|
|
@@ -276145,7 +276167,7 @@ function privateKeyAccessibleCreateCommand() {
|
|
|
276145
276167
|
return baseAction({
|
|
276146
276168
|
...defaultArgs,
|
|
276147
276169
|
acceptDefaults
|
|
276148
|
-
}, async (settlemint, env2) => {
|
|
276170
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276149
276171
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276150
276172
|
if (!applicationUniqueName) {
|
|
276151
276173
|
return missingApplication();
|
|
@@ -276164,12 +276186,12 @@ function privateKeyAccessibleCreateCommand() {
|
|
|
276164
276186
|
}
|
|
276165
276187
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276166
276188
|
}
|
|
276167
|
-
const result = await settlemint.privateKey.create({
|
|
276189
|
+
const result = await showSpinner(() => settlemint.privateKey.create({
|
|
276168
276190
|
name: name2,
|
|
276169
276191
|
applicationUniqueName,
|
|
276170
276192
|
privateKeyType: "ACCESSIBLE_ECDSA_P256",
|
|
276171
276193
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276172
|
-
});
|
|
276194
|
+
}));
|
|
276173
276195
|
return {
|
|
276174
276196
|
result
|
|
276175
276197
|
};
|
|
@@ -276205,7 +276227,7 @@ function privateKeyHdCreateCommand() {
|
|
|
276205
276227
|
return baseAction({
|
|
276206
276228
|
...defaultArgs,
|
|
276207
276229
|
acceptDefaults
|
|
276208
|
-
}, async (settlemint, env2) => {
|
|
276230
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276209
276231
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276210
276232
|
if (!applicationUniqueName) {
|
|
276211
276233
|
return missingApplication();
|
|
@@ -276224,12 +276246,12 @@ function privateKeyHdCreateCommand() {
|
|
|
276224
276246
|
}
|
|
276225
276247
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276226
276248
|
}
|
|
276227
|
-
const result = await settlemint.privateKey.create({
|
|
276249
|
+
const result = await showSpinner(() => settlemint.privateKey.create({
|
|
276228
276250
|
name: name2,
|
|
276229
276251
|
applicationUniqueName,
|
|
276230
276252
|
privateKeyType: "HD_ECDSA_P256",
|
|
276231
276253
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276232
|
-
});
|
|
276254
|
+
}));
|
|
276233
276255
|
return {
|
|
276234
276256
|
result,
|
|
276235
276257
|
mapDefaultEnv: () => {
|
|
@@ -276271,7 +276293,7 @@ function privateKeyHsmCreateCommand() {
|
|
|
276271
276293
|
return baseAction({
|
|
276272
276294
|
...defaultArgs,
|
|
276273
276295
|
acceptDefaults
|
|
276274
|
-
}, async (settlemint, env2) => {
|
|
276296
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276275
276297
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276276
276298
|
if (!applicationUniqueName) {
|
|
276277
276299
|
return missingApplication();
|
|
@@ -276290,12 +276312,12 @@ function privateKeyHsmCreateCommand() {
|
|
|
276290
276312
|
}
|
|
276291
276313
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276292
276314
|
}
|
|
276293
|
-
const result = await settlemint.privateKey.create({
|
|
276315
|
+
const result = await showSpinner(() => settlemint.privateKey.create({
|
|
276294
276316
|
name: name2,
|
|
276295
276317
|
applicationUniqueName,
|
|
276296
276318
|
privateKeyType: "HSM_ECDSA_P256",
|
|
276297
276319
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276298
|
-
});
|
|
276320
|
+
}));
|
|
276299
276321
|
return {
|
|
276300
276322
|
result
|
|
276301
276323
|
};
|
|
@@ -276337,12 +276359,12 @@ function ipfsStorageCreateCommand() {
|
|
|
276337
276359
|
...defaultArgs,
|
|
276338
276360
|
provider,
|
|
276339
276361
|
region
|
|
276340
|
-
}, async (settlemint, env2) => {
|
|
276362
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276341
276363
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276342
276364
|
if (!applicationUniqueName) {
|
|
276343
276365
|
return missingApplication();
|
|
276344
276366
|
}
|
|
276345
|
-
const result = await settlemint.storage.create({
|
|
276367
|
+
const result = await showSpinner(() => settlemint.storage.create({
|
|
276346
276368
|
name: name2,
|
|
276347
276369
|
applicationUniqueName,
|
|
276348
276370
|
storageProtocol: "IPFS",
|
|
@@ -276350,7 +276372,7 @@ function ipfsStorageCreateCommand() {
|
|
|
276350
276372
|
region,
|
|
276351
276373
|
size,
|
|
276352
276374
|
type: type4
|
|
276353
|
-
});
|
|
276375
|
+
}));
|
|
276354
276376
|
return {
|
|
276355
276377
|
result,
|
|
276356
276378
|
mapDefaultEnv: () => {
|
|
@@ -276390,12 +276412,12 @@ function minioStorageCreateCommand() {
|
|
|
276390
276412
|
...defaultArgs,
|
|
276391
276413
|
provider,
|
|
276392
276414
|
region
|
|
276393
|
-
}, async (settlemint, env2) => {
|
|
276415
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276394
276416
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276395
276417
|
if (!applicationUniqueName) {
|
|
276396
276418
|
return missingApplication();
|
|
276397
276419
|
}
|
|
276398
|
-
const result = await settlemint.storage.create({
|
|
276420
|
+
const result = await showSpinner(() => settlemint.storage.create({
|
|
276399
276421
|
name: name2,
|
|
276400
276422
|
applicationUniqueName,
|
|
276401
276423
|
storageProtocol: "MINIO",
|
|
@@ -276403,7 +276425,7 @@ function minioStorageCreateCommand() {
|
|
|
276403
276425
|
region,
|
|
276404
276426
|
size,
|
|
276405
276427
|
type: type4
|
|
276406
|
-
});
|
|
276428
|
+
}));
|
|
276407
276429
|
return {
|
|
276408
276430
|
result,
|
|
276409
276431
|
mapDefaultEnv: () => {
|
|
@@ -277709,7 +277731,7 @@ function subgraphDeployCommand() {
|
|
|
277709
277731
|
instance
|
|
277710
277732
|
});
|
|
277711
277733
|
const middleware = await settlemintClient.middleware.read(theGraphMiddleware.uniqueName);
|
|
277712
|
-
const graphEndpoints = await getGraphEndpoint(settlemintClient, middleware,
|
|
277734
|
+
const graphEndpoints = await getGraphEndpoint(settlemintClient, middleware, graphName);
|
|
277713
277735
|
await writeEnvSpinner(!!prod, {
|
|
277714
277736
|
...env2,
|
|
277715
277737
|
SETTLEMINT_THEGRAPH: theGraphMiddleware.uniqueName,
|
|
@@ -277812,4 +277834,4 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
277812
277834
|
ascii();
|
|
277813
277835
|
sdkCliCommand();
|
|
277814
277836
|
|
|
277815
|
-
//# debugId=
|
|
277837
|
+
//# debugId=FF492C940673D0EF64756E2164756E21
|