@settlemint/sdk-cli 1.0.2-prfe4b2bba → 1.0.3-main360fc7f2
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 +94 -77
- package/dist/cli.js.map +27 -27
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -229,7 +229,7 @@ settlemint scs subgraph deploy --accept-defaults <subgraph-name>
|
|
|
229
229
|
|
|
230
230
|
## API Reference
|
|
231
231
|
|
|
232
|
-
See the [documentation](https://github.com/settlemint/sdk/tree/v1.0.
|
|
232
|
+
See the [documentation](https://github.com/settlemint/sdk/tree/v1.0.3/sdk/cli/docs/settlemint.md) for available commands.
|
|
233
233
|
|
|
234
234
|
## Contributing
|
|
235
235
|
|
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.3HdXwSfFIw:/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.3HdXwSfFIw:/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.3HdXwSfFIw:/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.3HdXwSfFIw:/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.3-main360fc7f2",
|
|
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.3HdXwSfFIw:/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.3-main360fc7f2",
|
|
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.3-main360fc7f2",
|
|
267540
|
+
"@settlemint/sdk-utils": "1.0.3-main360fc7f2",
|
|
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.3HdXwSfFIw:/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
|
}
|
|
@@ -270849,8 +270856,8 @@ ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes2.default.cursor
|
|
|
270849
270856
|
|
|
270850
270857
|
// src/commands/codegen/subgraph-name.prompt.ts
|
|
270851
270858
|
var ALL = "All";
|
|
270852
|
-
async function subgraphNamePrompt(env2) {
|
|
270853
|
-
const autoAccept = is_in_ci_default;
|
|
270859
|
+
async function subgraphNamePrompt(env2, accept) {
|
|
270860
|
+
const autoAccept = is_in_ci_default || !!accept;
|
|
270854
270861
|
const subgraphNames = env2.SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?.map((endpoint) => endpoint.split("/").pop()).filter(Boolean) ?? [];
|
|
270855
270862
|
if (autoAccept) {
|
|
270856
270863
|
return subgraphNames;
|
|
@@ -270862,7 +270869,7 @@ async function subgraphNamePrompt(env2) {
|
|
|
270862
270869
|
return subgraphNames;
|
|
270863
270870
|
}
|
|
270864
270871
|
const subgraphName = await esm_default2({
|
|
270865
|
-
message: "Which
|
|
270872
|
+
message: "Which The Graph subgraph do you want to generate types for?",
|
|
270866
270873
|
choices: [ALL, ...subgraphNames].map((name2) => ({
|
|
270867
270874
|
name: name2,
|
|
270868
270875
|
value: name2
|
|
@@ -271117,7 +271124,7 @@ function codegenCommand() {
|
|
|
271117
271124
|
intro("Generating GraphQL types and queries for your dApp");
|
|
271118
271125
|
const env2 = await loadEnv(true, !!prod);
|
|
271119
271126
|
if (!Array.isArray(thegraphSubgraphNames)) {
|
|
271120
|
-
thegraphSubgraphNames = await subgraphNamePrompt(env2);
|
|
271127
|
+
thegraphSubgraphNames = await subgraphNamePrompt(env2, true);
|
|
271121
271128
|
}
|
|
271122
271129
|
const { hasura, portal, thegraph, blockscout } = await spinner({
|
|
271123
271130
|
startMessage: "Testing configured GraphQL schema",
|
|
@@ -273251,7 +273258,18 @@ function createSettleMintClient(options) {
|
|
|
273251
273258
|
headers: {
|
|
273252
273259
|
"x-auth-token": validatedOptions.accessToken
|
|
273253
273260
|
},
|
|
273254
|
-
fetch:
|
|
273261
|
+
fetch: async (input, init2) => {
|
|
273262
|
+
const response = await fetchWithRetry(input, init2);
|
|
273263
|
+
const contentType = response.headers.get("content-type");
|
|
273264
|
+
if (contentType?.includes("application/json") || contentType?.includes("application/graphql-response+json")) {
|
|
273265
|
+
const data = await response.clone().json();
|
|
273266
|
+
if (data.errors?.length > 0) {
|
|
273267
|
+
const errorMessages = data.errors.map((e10) => e10.message).join(", ");
|
|
273268
|
+
throw new Error(errorMessages);
|
|
273269
|
+
}
|
|
273270
|
+
}
|
|
273271
|
+
return response;
|
|
273272
|
+
}
|
|
273255
273273
|
});
|
|
273256
273274
|
return {
|
|
273257
273275
|
workspace: {
|
|
@@ -273786,12 +273804,12 @@ async function instancePrompt(env2, accept, freeTextInput = false, isCi = is_in_
|
|
|
273786
273804
|
const defaultInstance = env2.SETTLEMINT_INSTANCE;
|
|
273787
273805
|
const defaultPossible = autoAccept && defaultInstance;
|
|
273788
273806
|
if (defaultPossible) {
|
|
273789
|
-
return defaultInstance;
|
|
273807
|
+
return sanitizeInstanceUrl(defaultInstance);
|
|
273790
273808
|
}
|
|
273791
273809
|
const defaultLoginInstance = await getDefaultInstance();
|
|
273792
273810
|
const defaultPromptInstance = defaultInstance ?? defaultLoginInstance ?? "https://console.settlemint.com";
|
|
273793
273811
|
if (isCi) {
|
|
273794
|
-
return defaultPromptInstance;
|
|
273812
|
+
return sanitizeInstanceUrl(defaultPromptInstance);
|
|
273795
273813
|
}
|
|
273796
273814
|
if (freeTextInput) {
|
|
273797
273815
|
const instance = await esm_default4({
|
|
@@ -273814,17 +273832,17 @@ async function instancePrompt(env2, accept, freeTextInput = false, isCi = is_in_
|
|
|
273814
273832
|
cancel3("No instances found. Please run `settlemint login` to configure an instance.");
|
|
273815
273833
|
}
|
|
273816
273834
|
if (knownInstances.length === 1) {
|
|
273817
|
-
return knownInstances[0];
|
|
273835
|
+
return sanitizeInstanceUrl(knownInstances[0]);
|
|
273818
273836
|
}
|
|
273819
273837
|
return esm_default2({
|
|
273820
273838
|
message: "What SettleMint instance do you want to connect to?",
|
|
273821
273839
|
choices: [
|
|
273822
273840
|
...knownInstances.map((instance) => ({
|
|
273823
273841
|
name: instance,
|
|
273824
|
-
value: instance
|
|
273842
|
+
value: sanitizeInstanceUrl(instance)
|
|
273825
273843
|
}))
|
|
273826
273844
|
],
|
|
273827
|
-
default: defaultPromptInstance
|
|
273845
|
+
default: sanitizeInstanceUrl(defaultPromptInstance)
|
|
273828
273846
|
});
|
|
273829
273847
|
}
|
|
273830
273848
|
|
|
@@ -274955,7 +274973,7 @@ async function loginSpinner(settlemint) {
|
|
|
274955
274973
|
|
|
274956
274974
|
// src/commands/connect/pat.prompt.ts
|
|
274957
274975
|
async function personalAccessTokenPrompt(env2, instance, accept) {
|
|
274958
|
-
const existingConfig = await getInstanceCredentials(instance);
|
|
274976
|
+
const existingConfig = await getInstanceCredentials(instance, false);
|
|
274959
274977
|
const defaultPersonalAccessToken = env2.SETTLEMINT_PERSONAL_ACCESS_TOKEN || existingConfig?.personalAccessToken;
|
|
274960
274978
|
const defaultPossible = accept && defaultPersonalAccessToken;
|
|
274961
274979
|
if (defaultPossible) {
|
|
@@ -275076,7 +275094,7 @@ function logoutCommand() {
|
|
|
275076
275094
|
|
|
275077
275095
|
// src/commands/platform/common/cluster-service.args.ts
|
|
275078
275096
|
function addClusterServiceArgs(cmd2) {
|
|
275079
|
-
return cmd2.
|
|
275097
|
+
return cmd2.option("--provider <provider>", "Network provider (run `settlemint platform config` to see available providers)").option("--region <region>", "Deployment region (run `settlemint platform config` to see available regions)").addOption(new Option("--size <size>", "Network size").choices(["CUSTOM", "LARGE", "MEDIUM", "SMALL"]).argParser((value4) => value4).default("SMALL")).addOption(new Option("--type <type>", "Network type").choices(["DEDICATED", "SHARED"]).argParser((value4) => value4).default("SHARED"));
|
|
275080
275098
|
}
|
|
275081
275099
|
|
|
275082
275100
|
// src/utils/parse-number.ts
|
|
@@ -275283,13 +275301,12 @@ function getCreateCommand({
|
|
|
275283
275301
|
return nothingSelectedError("region");
|
|
275284
275302
|
}
|
|
275285
275303
|
}
|
|
275286
|
-
const
|
|
275304
|
+
const showSpinner = (task) => spinner({
|
|
275287
275305
|
startMessage: `Creating ${type4}`,
|
|
275288
|
-
task
|
|
275289
|
-
return createFunction(settlemint, env2);
|
|
275290
|
-
},
|
|
275306
|
+
task,
|
|
275291
275307
|
stopMessage: `${capitalizeFirstLetter(type4)} created`
|
|
275292
275308
|
});
|
|
275309
|
+
const { result, waitFor, mapDefaultEnv } = await createFunction(settlemint, env2, showSpinner);
|
|
275293
275310
|
if (wait) {
|
|
275294
275311
|
await waitForCompletion({
|
|
275295
275312
|
settlemint,
|
|
@@ -275355,12 +275372,12 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275355
275372
|
...defaultArgs,
|
|
275356
275373
|
provider,
|
|
275357
275374
|
region
|
|
275358
|
-
}, async (settlemint, env2) => {
|
|
275375
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275359
275376
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275360
275377
|
if (!applicationUniqueName) {
|
|
275361
275378
|
return missingApplication();
|
|
275362
275379
|
}
|
|
275363
|
-
const result = await settlemint.blockchainNetwork.create({
|
|
275380
|
+
const result = await showSpinner(() => settlemint.blockchainNetwork.create({
|
|
275364
275381
|
name: name2,
|
|
275365
275382
|
applicationUniqueName,
|
|
275366
275383
|
nodeName,
|
|
@@ -275375,7 +275392,7 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275375
275392
|
secondsPerBlock,
|
|
275376
275393
|
size,
|
|
275377
275394
|
type: type4
|
|
275378
|
-
});
|
|
275395
|
+
}));
|
|
275379
275396
|
const blockchainNode = result.blockchainNodes.find((item) => item.name === nodeName) ?? result.blockchainNodes[0];
|
|
275380
275397
|
return {
|
|
275381
275398
|
result,
|
|
@@ -275514,8 +275531,8 @@ function workspaceCreateCommand() {
|
|
|
275514
275531
|
addressLine1,
|
|
275515
275532
|
...defaultArgs
|
|
275516
275533
|
}) => {
|
|
275517
|
-
return baseAction(defaultArgs, async (settlemint) => {
|
|
275518
|
-
const result = await settlemint.workspace.create({
|
|
275534
|
+
return baseAction(defaultArgs, async (settlemint, _env, showSpinner) => {
|
|
275535
|
+
const result = await showSpinner(() => settlemint.workspace.create({
|
|
275519
275536
|
name: name2,
|
|
275520
275537
|
taxIdValue,
|
|
275521
275538
|
taxIdType,
|
|
@@ -275527,7 +275544,7 @@ function workspaceCreateCommand() {
|
|
|
275527
275544
|
city,
|
|
275528
275545
|
addressLine2,
|
|
275529
275546
|
addressLine1
|
|
275530
|
-
});
|
|
275547
|
+
}));
|
|
275531
275548
|
return {
|
|
275532
275549
|
result,
|
|
275533
275550
|
mapDefaultEnv: () => {
|
|
@@ -275565,12 +275582,12 @@ function applicationAccessTokenCreateCommand() {
|
|
|
275565
275582
|
alias: "aat",
|
|
275566
275583
|
execute: (cmd2, baseAction) => {
|
|
275567
275584
|
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) => {
|
|
275585
|
+
return baseAction(defaultArgs, async (settlemint, env2, showSpinner) => {
|
|
275569
275586
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275570
275587
|
if (!applicationUniqueName) {
|
|
275571
275588
|
return missingApplication();
|
|
275572
275589
|
}
|
|
275573
|
-
const aatToken = await settlemint.applicationAccessToken.create({
|
|
275590
|
+
const aatToken = await showSpinner(() => settlemint.applicationAccessToken.create({
|
|
275574
275591
|
applicationUniqueName,
|
|
275575
275592
|
name: name2,
|
|
275576
275593
|
blockchainNetworkScope: {
|
|
@@ -275614,7 +275631,7 @@ function applicationAccessTokenCreateCommand() {
|
|
|
275614
275631
|
values: []
|
|
275615
275632
|
},
|
|
275616
275633
|
validityPeriod
|
|
275617
|
-
});
|
|
275634
|
+
}));
|
|
275618
275635
|
return {
|
|
275619
275636
|
result: {
|
|
275620
275637
|
id: "",
|
|
@@ -275658,7 +275675,7 @@ function applicationCreateCommand() {
|
|
|
275658
275675
|
return baseAction({
|
|
275659
275676
|
...defaultArgs,
|
|
275660
275677
|
acceptDefaults
|
|
275661
|
-
}, async (settlemint, env2) => {
|
|
275678
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275662
275679
|
let workspaceUniqueName = workspace;
|
|
275663
275680
|
if (!workspaceUniqueName) {
|
|
275664
275681
|
const workspaces = await settlemint.workspace.list();
|
|
@@ -275668,10 +275685,10 @@ function applicationCreateCommand() {
|
|
|
275668
275685
|
}
|
|
275669
275686
|
workspaceUniqueName = workspace2.uniqueName;
|
|
275670
275687
|
}
|
|
275671
|
-
const result = await settlemint.application.create({
|
|
275688
|
+
const result = await showSpinner(() => settlemint.application.create({
|
|
275672
275689
|
name: name2,
|
|
275673
275690
|
workspaceUniqueName
|
|
275674
|
-
});
|
|
275691
|
+
}));
|
|
275675
275692
|
return {
|
|
275676
275693
|
result,
|
|
275677
275694
|
mapDefaultEnv: () => {
|
|
@@ -275749,7 +275766,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275749
275766
|
acceptDefaults,
|
|
275750
275767
|
provider,
|
|
275751
275768
|
region
|
|
275752
|
-
}, async (settlemint, env2) => {
|
|
275769
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275753
275770
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275754
275771
|
if (!applicationUniqueName) {
|
|
275755
275772
|
return missingApplication();
|
|
@@ -275768,7 +275785,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275768
275785
|
}
|
|
275769
275786
|
networkUniqueName = network?.uniqueName;
|
|
275770
275787
|
}
|
|
275771
|
-
const result = await settlemint.blockchainNode.create({
|
|
275788
|
+
const result = await showSpinner(() => settlemint.blockchainNode.create({
|
|
275772
275789
|
applicationUniqueName,
|
|
275773
275790
|
name: name2,
|
|
275774
275791
|
blockchainNetworkUniqueName: networkUniqueName,
|
|
@@ -275778,7 +275795,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275778
275795
|
region,
|
|
275779
275796
|
size,
|
|
275780
275797
|
type: type4
|
|
275781
|
-
});
|
|
275798
|
+
}));
|
|
275782
275799
|
return {
|
|
275783
275800
|
result,
|
|
275784
275801
|
mapDefaultEnv: () => {
|
|
@@ -275827,7 +275844,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275827
275844
|
acceptDefaults,
|
|
275828
275845
|
provider,
|
|
275829
275846
|
region
|
|
275830
|
-
}, async (settlemint, env2) => {
|
|
275847
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275831
275848
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275832
275849
|
if (!applicationUniqueName) {
|
|
275833
275850
|
return missingApplication();
|
|
@@ -275847,7 +275864,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275847
275864
|
}
|
|
275848
275865
|
blockchainNodeUniqueName = node.uniqueName;
|
|
275849
275866
|
}
|
|
275850
|
-
const result = await settlemint.insights.create({
|
|
275867
|
+
const result = await showSpinner(() => settlemint.insights.create({
|
|
275851
275868
|
name: name2,
|
|
275852
275869
|
applicationUniqueName,
|
|
275853
275870
|
insightsCategory: "BLOCKCHAIN_EXPLORER",
|
|
@@ -275857,7 +275874,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275857
275874
|
type: type4,
|
|
275858
275875
|
blockchainNodeUniqueName,
|
|
275859
275876
|
loadBalancerUniqueName
|
|
275860
|
-
});
|
|
275877
|
+
}));
|
|
275861
275878
|
return {
|
|
275862
275879
|
result,
|
|
275863
275880
|
mapDefaultEnv: async () => {
|
|
@@ -275904,12 +275921,12 @@ function hasuraIntegrationCreateCommand() {
|
|
|
275904
275921
|
...defaultArgs,
|
|
275905
275922
|
provider,
|
|
275906
275923
|
region
|
|
275907
|
-
}, async (settlemint, env2) => {
|
|
275924
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275908
275925
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275909
275926
|
if (!applicationUniqueName) {
|
|
275910
275927
|
return missingApplication();
|
|
275911
275928
|
}
|
|
275912
|
-
const result = await settlemint.integrationTool.create({
|
|
275929
|
+
const result = await showSpinner(() => settlemint.integrationTool.create({
|
|
275913
275930
|
name: name2,
|
|
275914
275931
|
applicationUniqueName,
|
|
275915
275932
|
integrationType: "HASURA",
|
|
@@ -275917,7 +275934,7 @@ function hasuraIntegrationCreateCommand() {
|
|
|
275917
275934
|
region,
|
|
275918
275935
|
size,
|
|
275919
275936
|
type: type4
|
|
275920
|
-
});
|
|
275937
|
+
}));
|
|
275921
275938
|
return {
|
|
275922
275939
|
result,
|
|
275923
275940
|
mapDefaultEnv: async () => {
|
|
@@ -275965,7 +275982,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
275965
275982
|
acceptDefaults,
|
|
275966
275983
|
provider,
|
|
275967
275984
|
region
|
|
275968
|
-
}, async (settlemint, env2) => {
|
|
275985
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275969
275986
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275970
275987
|
if (!applicationUniqueName) {
|
|
275971
275988
|
return missingApplication();
|
|
@@ -275984,7 +276001,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
275984
276001
|
}
|
|
275985
276002
|
blockchainNodeUniqueName = node.uniqueName;
|
|
275986
276003
|
}
|
|
275987
|
-
const result = await settlemint.middleware.create({
|
|
276004
|
+
const result = await showSpinner(() => settlemint.middleware.create({
|
|
275988
276005
|
name: name2,
|
|
275989
276006
|
applicationUniqueName,
|
|
275990
276007
|
interface: "HA_GRAPH",
|
|
@@ -275993,7 +276010,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
275993
276010
|
region,
|
|
275994
276011
|
size,
|
|
275995
276012
|
type: type4
|
|
275996
|
-
});
|
|
276013
|
+
}));
|
|
275997
276014
|
return {
|
|
275998
276015
|
result,
|
|
275999
276016
|
mapDefaultEnv: async () => {
|
|
@@ -276048,7 +276065,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276048
276065
|
acceptDefaults,
|
|
276049
276066
|
provider,
|
|
276050
276067
|
region
|
|
276051
|
-
}, async (settlemint, env2) => {
|
|
276068
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276052
276069
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276053
276070
|
if (!applicationUniqueName) {
|
|
276054
276071
|
return missingApplication();
|
|
@@ -276089,7 +276106,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276089
276106
|
cancel3(`Invalid pre-deployed abis: '${invalidPredeployedAbis.join(", ")}'. Possible values: '${platformConfig.preDeployedContracts.sort().join(", ")}'`);
|
|
276090
276107
|
}
|
|
276091
276108
|
}
|
|
276092
|
-
const result = await settlemint.middleware.create({
|
|
276109
|
+
const result = await showSpinner(() => settlemint.middleware.create({
|
|
276093
276110
|
name: name2,
|
|
276094
276111
|
applicationUniqueName,
|
|
276095
276112
|
interface: "SMART_CONTRACT_PORTAL",
|
|
@@ -276101,7 +276118,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276101
276118
|
region,
|
|
276102
276119
|
size,
|
|
276103
276120
|
type: type4
|
|
276104
|
-
});
|
|
276121
|
+
}));
|
|
276105
276122
|
return {
|
|
276106
276123
|
result,
|
|
276107
276124
|
mapDefaultEnv: async () => {
|
|
@@ -276145,7 +276162,7 @@ function privateKeyAccessibleCreateCommand() {
|
|
|
276145
276162
|
return baseAction({
|
|
276146
276163
|
...defaultArgs,
|
|
276147
276164
|
acceptDefaults
|
|
276148
|
-
}, async (settlemint, env2) => {
|
|
276165
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276149
276166
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276150
276167
|
if (!applicationUniqueName) {
|
|
276151
276168
|
return missingApplication();
|
|
@@ -276164,12 +276181,12 @@ function privateKeyAccessibleCreateCommand() {
|
|
|
276164
276181
|
}
|
|
276165
276182
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276166
276183
|
}
|
|
276167
|
-
const result = await settlemint.privateKey.create({
|
|
276184
|
+
const result = await showSpinner(() => settlemint.privateKey.create({
|
|
276168
276185
|
name: name2,
|
|
276169
276186
|
applicationUniqueName,
|
|
276170
276187
|
privateKeyType: "ACCESSIBLE_ECDSA_P256",
|
|
276171
276188
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276172
|
-
});
|
|
276189
|
+
}));
|
|
276173
276190
|
return {
|
|
276174
276191
|
result
|
|
276175
276192
|
};
|
|
@@ -276205,7 +276222,7 @@ function privateKeyHdCreateCommand() {
|
|
|
276205
276222
|
return baseAction({
|
|
276206
276223
|
...defaultArgs,
|
|
276207
276224
|
acceptDefaults
|
|
276208
|
-
}, async (settlemint, env2) => {
|
|
276225
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276209
276226
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276210
276227
|
if (!applicationUniqueName) {
|
|
276211
276228
|
return missingApplication();
|
|
@@ -276224,12 +276241,12 @@ function privateKeyHdCreateCommand() {
|
|
|
276224
276241
|
}
|
|
276225
276242
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276226
276243
|
}
|
|
276227
|
-
const result = await settlemint.privateKey.create({
|
|
276244
|
+
const result = await showSpinner(() => settlemint.privateKey.create({
|
|
276228
276245
|
name: name2,
|
|
276229
276246
|
applicationUniqueName,
|
|
276230
276247
|
privateKeyType: "HD_ECDSA_P256",
|
|
276231
276248
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276232
|
-
});
|
|
276249
|
+
}));
|
|
276233
276250
|
return {
|
|
276234
276251
|
result,
|
|
276235
276252
|
mapDefaultEnv: () => {
|
|
@@ -276271,7 +276288,7 @@ function privateKeyHsmCreateCommand() {
|
|
|
276271
276288
|
return baseAction({
|
|
276272
276289
|
...defaultArgs,
|
|
276273
276290
|
acceptDefaults
|
|
276274
|
-
}, async (settlemint, env2) => {
|
|
276291
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276275
276292
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276276
276293
|
if (!applicationUniqueName) {
|
|
276277
276294
|
return missingApplication();
|
|
@@ -276290,12 +276307,12 @@ function privateKeyHsmCreateCommand() {
|
|
|
276290
276307
|
}
|
|
276291
276308
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276292
276309
|
}
|
|
276293
|
-
const result = await settlemint.privateKey.create({
|
|
276310
|
+
const result = await showSpinner(() => settlemint.privateKey.create({
|
|
276294
276311
|
name: name2,
|
|
276295
276312
|
applicationUniqueName,
|
|
276296
276313
|
privateKeyType: "HSM_ECDSA_P256",
|
|
276297
276314
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276298
|
-
});
|
|
276315
|
+
}));
|
|
276299
276316
|
return {
|
|
276300
276317
|
result
|
|
276301
276318
|
};
|
|
@@ -276337,12 +276354,12 @@ function ipfsStorageCreateCommand() {
|
|
|
276337
276354
|
...defaultArgs,
|
|
276338
276355
|
provider,
|
|
276339
276356
|
region
|
|
276340
|
-
}, async (settlemint, env2) => {
|
|
276357
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276341
276358
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276342
276359
|
if (!applicationUniqueName) {
|
|
276343
276360
|
return missingApplication();
|
|
276344
276361
|
}
|
|
276345
|
-
const result = await settlemint.storage.create({
|
|
276362
|
+
const result = await showSpinner(() => settlemint.storage.create({
|
|
276346
276363
|
name: name2,
|
|
276347
276364
|
applicationUniqueName,
|
|
276348
276365
|
storageProtocol: "IPFS",
|
|
@@ -276350,7 +276367,7 @@ function ipfsStorageCreateCommand() {
|
|
|
276350
276367
|
region,
|
|
276351
276368
|
size,
|
|
276352
276369
|
type: type4
|
|
276353
|
-
});
|
|
276370
|
+
}));
|
|
276354
276371
|
return {
|
|
276355
276372
|
result,
|
|
276356
276373
|
mapDefaultEnv: () => {
|
|
@@ -276390,12 +276407,12 @@ function minioStorageCreateCommand() {
|
|
|
276390
276407
|
...defaultArgs,
|
|
276391
276408
|
provider,
|
|
276392
276409
|
region
|
|
276393
|
-
}, async (settlemint, env2) => {
|
|
276410
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276394
276411
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276395
276412
|
if (!applicationUniqueName) {
|
|
276396
276413
|
return missingApplication();
|
|
276397
276414
|
}
|
|
276398
|
-
const result = await settlemint.storage.create({
|
|
276415
|
+
const result = await showSpinner(() => settlemint.storage.create({
|
|
276399
276416
|
name: name2,
|
|
276400
276417
|
applicationUniqueName,
|
|
276401
276418
|
storageProtocol: "MINIO",
|
|
@@ -276403,7 +276420,7 @@ function minioStorageCreateCommand() {
|
|
|
276403
276420
|
region,
|
|
276404
276421
|
size,
|
|
276405
276422
|
type: type4
|
|
276406
|
-
});
|
|
276423
|
+
}));
|
|
276407
276424
|
return {
|
|
276408
276425
|
result,
|
|
276409
276426
|
mapDefaultEnv: () => {
|
|
@@ -277812,4 +277829,4 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
277812
277829
|
ascii();
|
|
277813
277830
|
sdkCliCommand();
|
|
277814
277831
|
|
|
277815
|
-
//# debugId=
|
|
277832
|
+
//# debugId=4A5042908CDAB2CF64756E2164756E21
|