@settlemint/sdk-cli 1.0.3-prdc75aa8f → 1.0.3-pre93b769c
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 +69 -96
- package/dist/cli.js.map +26 -26
- 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.6cICKCcdV8:/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.6cICKCcdV8:/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.6cICKCcdV8:/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.6cICKCcdV8:/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.3-
|
|
226467
|
+
binaryVersion: "1.0.3-pre93b769c",
|
|
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.6cICKCcdV8:/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) : [""];
|
|
@@ -267214,8 +267214,7 @@ var DotEnvSchema = z.object({
|
|
|
267214
267214
|
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: UrlSchema.optional(),
|
|
267215
267215
|
SETTLEMINT_NEW_PROJECT_NAME: z.string().optional(),
|
|
267216
267216
|
SETTLEMINT_SMART_CONTRACT_ADDRESS: z.string().optional(),
|
|
267217
|
-
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z.string().optional()
|
|
267218
|
-
SETTLEMINT_DEBUG: z.enum(["true", "false"]).transform((value) => value === "true")
|
|
267217
|
+
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z.string().optional()
|
|
267219
267218
|
});
|
|
267220
267219
|
var DotEnvSchemaPartial = DotEnvSchema.partial();
|
|
267221
267220
|
var IdSchema = z.union([
|
|
@@ -267449,22 +267448,14 @@ var intro = (msg) => {
|
|
|
267449
267448
|
console.log(magentaBright(maskTokens2(msg)));
|
|
267450
267449
|
console.log("");
|
|
267451
267450
|
};
|
|
267452
|
-
var note = (message, level = "info"
|
|
267451
|
+
var note = (message, level = "info") => {
|
|
267453
267452
|
const maskedMessage = maskTokens2(message);
|
|
267454
|
-
|
|
267455
|
-
console.log("");
|
|
267456
|
-
console.log(maskedMessage);
|
|
267457
|
-
return;
|
|
267458
|
-
}
|
|
267453
|
+
console.log("");
|
|
267459
267454
|
if (level === "warn") {
|
|
267460
|
-
console.log("");
|
|
267461
267455
|
console.warn(yellowBright(maskedMessage));
|
|
267462
267456
|
return;
|
|
267463
267457
|
}
|
|
267464
|
-
|
|
267465
|
-
console.log("");
|
|
267466
|
-
console.log(maskedMessage);
|
|
267467
|
-
}
|
|
267458
|
+
console.log(maskedMessage);
|
|
267468
267459
|
};
|
|
267469
267460
|
var outro = (msg) => {
|
|
267470
267461
|
console.log("");
|
|
@@ -267492,7 +267483,7 @@ ${error.stack}`));
|
|
|
267492
267483
|
var package_default = {
|
|
267493
267484
|
name: "@settlemint/sdk-cli",
|
|
267494
267485
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
267495
|
-
version: "1.0.3-
|
|
267486
|
+
version: "1.0.3-pre93b769c",
|
|
267496
267487
|
type: "module",
|
|
267497
267488
|
private: false,
|
|
267498
267489
|
license: "FSL-1.1-MIT",
|
|
@@ -267545,8 +267536,8 @@ var package_default = {
|
|
|
267545
267536
|
"@inquirer/input": "4.1.3",
|
|
267546
267537
|
"@inquirer/password": "4.0.6",
|
|
267547
267538
|
"@inquirer/select": "4.0.6",
|
|
267548
|
-
"@settlemint/sdk-js": "1.0.3-
|
|
267549
|
-
"@settlemint/sdk-utils": "1.0.3-
|
|
267539
|
+
"@settlemint/sdk-js": "1.0.3-pre93b769c",
|
|
267540
|
+
"@settlemint/sdk-utils": "1.0.3-pre93b769c",
|
|
267550
267541
|
"get-tsconfig": "4.8.1",
|
|
267551
267542
|
giget: "1.2.3"
|
|
267552
267543
|
},
|
|
@@ -267846,7 +267837,7 @@ var et = l((Re, tt) => {
|
|
|
267846
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) => {
|
|
267847
267838
|
let n = e.colon || Bt, r = t.match(/\//) || g && t.match(/\\/) ? [""] : [
|
|
267848
267839
|
...g ? [process.cwd()] : [],
|
|
267849
|
-
...(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.6cICKCcdV8:/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)
|
|
267850
267841
|
], s = g ? e.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", o = g ? s.split(n) : [""];
|
|
267851
267842
|
return g && t.indexOf(".") !== -1 && o[0] !== "" && o.unshift(""), {
|
|
267852
267843
|
pathEnv: r,
|
|
@@ -268356,22 +268347,14 @@ var intro2 = (msg) => {
|
|
|
268356
268347
|
console.log(magentaBright(maskTokens3(msg)));
|
|
268357
268348
|
console.log("");
|
|
268358
268349
|
};
|
|
268359
|
-
var note2 = (message, level = "info"
|
|
268350
|
+
var note2 = (message, level = "info") => {
|
|
268360
268351
|
const maskedMessage = maskTokens3(message);
|
|
268361
|
-
|
|
268362
|
-
console.log("");
|
|
268363
|
-
console.log(maskedMessage);
|
|
268364
|
-
return;
|
|
268365
|
-
}
|
|
268352
|
+
console.log("");
|
|
268366
268353
|
if (level === "warn") {
|
|
268367
|
-
console.log("");
|
|
268368
268354
|
console.warn(yellowBright(maskedMessage));
|
|
268369
268355
|
return;
|
|
268370
268356
|
}
|
|
268371
|
-
|
|
268372
|
-
console.log("");
|
|
268373
|
-
console.log(maskedMessage);
|
|
268374
|
-
}
|
|
268357
|
+
console.log(maskedMessage);
|
|
268375
268358
|
};
|
|
268376
268359
|
var ApplicationAccessTokenSchema2 = z.string().regex(/^sm_aat_.*$/);
|
|
268377
268360
|
var PersonalAccessTokenSchema2 = z.string().regex(/^sm_pat_.*$/);
|
|
@@ -268429,8 +268412,7 @@ var DotEnvSchema2 = z.object({
|
|
|
268429
268412
|
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: UrlSchema2.optional(),
|
|
268430
268413
|
SETTLEMINT_NEW_PROJECT_NAME: z.string().optional(),
|
|
268431
268414
|
SETTLEMINT_SMART_CONTRACT_ADDRESS: z.string().optional(),
|
|
268432
|
-
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z.string().optional()
|
|
268433
|
-
SETTLEMINT_DEBUG: z.enum(["true", "false"]).transform((value) => value === "true")
|
|
268415
|
+
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z.string().optional()
|
|
268434
268416
|
});
|
|
268435
268417
|
var DotEnvSchemaPartial2 = DotEnvSchema2.partial();
|
|
268436
268418
|
var IdSchema2 = z.union([
|
|
@@ -268613,13 +268595,12 @@ async function storeCredentials(token, instance) {
|
|
|
268613
268595
|
}
|
|
268614
268596
|
async function getInstanceCredentials(instance, env2) {
|
|
268615
268597
|
const config4 = await readConfig();
|
|
268616
|
-
note(`Config from readConfig is ${JSON.stringify(config4, null, 2)}`, "debug", env2?.SETTLEMINT_DEBUG);
|
|
268617
268598
|
const instanceConfig = config4.instances[instance];
|
|
268618
|
-
note(`Instance config is ${instanceConfig ? JSON.stringify(instanceConfig, null, 2) : instanceConfig}`, "debug", env2?.SETTLEMINT_DEBUG);
|
|
268619
268599
|
if (!instanceConfig) {
|
|
268620
|
-
|
|
268600
|
+
cancel2(`No configuration found for instance '${instance}'${Object.keys(config4.instances).length > 0 ? `. Configured instances:
|
|
268601
|
+
${Object.keys(config4.instances).map((i) => `- '${i}'`).join(`
|
|
268602
|
+
`)}` : ""}`);
|
|
268621
268603
|
}
|
|
268622
|
-
note(`Returning ${JSON.stringify({ personalAccessToken: instanceConfig.personalAccessToken })}`, "debug", env2?.SETTLEMINT_DEBUG);
|
|
268623
268604
|
return { personalAccessToken: instanceConfig.personalAccessToken };
|
|
268624
268605
|
}
|
|
268625
268606
|
async function getInstances() {
|
|
@@ -268658,10 +268639,6 @@ var getApplicationOrPersonalAccessToken = async ({
|
|
|
268658
268639
|
const preferredToken = prefer === "application" ? applicationAccessToken : personalAccessToken;
|
|
268659
268640
|
const fallbackToken = prefer === "application" ? personalAccessToken : applicationAccessToken;
|
|
268660
268641
|
const allowFallback = prefer === "application";
|
|
268661
|
-
note(`prefer is ${prefer}`, "debug", env2.SETTLEMINT_DEBUG);
|
|
268662
|
-
note(`preferredToken is ${preferredToken}`, "debug", env2.SETTLEMINT_DEBUG);
|
|
268663
|
-
note(`fallbackToken is ${fallbackToken}`, "debug", env2.SETTLEMINT_DEBUG);
|
|
268664
|
-
note(`allowFallback is ${allowFallback}`, "debug", env2.SETTLEMINT_DEBUG);
|
|
268665
268642
|
if (preferredToken) {
|
|
268666
268643
|
return preferredToken;
|
|
268667
268644
|
}
|
|
@@ -271232,8 +271209,7 @@ async function writeEnvSpinner(prod, env2) {
|
|
|
271232
271209
|
SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: env2.SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT,
|
|
271233
271210
|
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: env2.SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT,
|
|
271234
271211
|
SETTLEMINT_SMART_CONTRACT_ADDRESS: env2.SETTLEMINT_SMART_CONTRACT_ADDRESS,
|
|
271235
|
-
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: env2.SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID
|
|
271236
|
-
SETTLEMINT_DEBUG: env2.SETTLEMINT_DEBUG
|
|
271212
|
+
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: env2.SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID
|
|
271237
271213
|
}, false);
|
|
271238
271214
|
await writeEnv(prod, {
|
|
271239
271215
|
SETTLEMINT_ACCESS_TOKEN: env2.SETTLEMINT_ACCESS_TOKEN,
|
|
@@ -271391,8 +271367,7 @@ var DotEnvSchema3 = z.object({
|
|
|
271391
271367
|
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: UrlSchema3.optional(),
|
|
271392
271368
|
SETTLEMINT_NEW_PROJECT_NAME: z.string().optional(),
|
|
271393
271369
|
SETTLEMINT_SMART_CONTRACT_ADDRESS: z.string().optional(),
|
|
271394
|
-
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z.string().optional()
|
|
271395
|
-
SETTLEMINT_DEBUG: z.enum(["true", "false"]).transform((value4) => value4 === "true")
|
|
271370
|
+
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z.string().optional()
|
|
271396
271371
|
});
|
|
271397
271372
|
var DotEnvSchemaPartial3 = DotEnvSchema3.partial();
|
|
271398
271373
|
var IdSchema3 = z.union([
|
|
@@ -275322,13 +275297,12 @@ function getCreateCommand({
|
|
|
275322
275297
|
return nothingSelectedError("region");
|
|
275323
275298
|
}
|
|
275324
275299
|
}
|
|
275325
|
-
const
|
|
275300
|
+
const showSpinner = (task) => spinner({
|
|
275326
275301
|
startMessage: `Creating ${type4}`,
|
|
275327
|
-
task
|
|
275328
|
-
return createFunction(settlemint, env2);
|
|
275329
|
-
},
|
|
275302
|
+
task,
|
|
275330
275303
|
stopMessage: `${capitalizeFirstLetter(type4)} created`
|
|
275331
275304
|
});
|
|
275305
|
+
const { result, waitFor, mapDefaultEnv } = await createFunction(settlemint, env2, showSpinner);
|
|
275332
275306
|
if (wait) {
|
|
275333
275307
|
await waitForCompletion({
|
|
275334
275308
|
settlemint,
|
|
@@ -275394,12 +275368,12 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275394
275368
|
...defaultArgs,
|
|
275395
275369
|
provider,
|
|
275396
275370
|
region
|
|
275397
|
-
}, async (settlemint, env2) => {
|
|
275371
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275398
275372
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275399
275373
|
if (!applicationUniqueName) {
|
|
275400
275374
|
return missingApplication();
|
|
275401
275375
|
}
|
|
275402
|
-
const result = await settlemint.blockchainNetwork.create({
|
|
275376
|
+
const result = await showSpinner(() => settlemint.blockchainNetwork.create({
|
|
275403
275377
|
name: name2,
|
|
275404
275378
|
applicationUniqueName,
|
|
275405
275379
|
nodeName,
|
|
@@ -275414,7 +275388,7 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275414
275388
|
secondsPerBlock,
|
|
275415
275389
|
size,
|
|
275416
275390
|
type: type4
|
|
275417
|
-
});
|
|
275391
|
+
}));
|
|
275418
275392
|
const blockchainNode = result.blockchainNodes.find((item) => item.name === nodeName) ?? result.blockchainNodes[0];
|
|
275419
275393
|
return {
|
|
275420
275394
|
result,
|
|
@@ -275553,8 +275527,8 @@ function workspaceCreateCommand() {
|
|
|
275553
275527
|
addressLine1,
|
|
275554
275528
|
...defaultArgs
|
|
275555
275529
|
}) => {
|
|
275556
|
-
return baseAction(defaultArgs, async (settlemint) => {
|
|
275557
|
-
const result = await settlemint.workspace.create({
|
|
275530
|
+
return baseAction(defaultArgs, async (settlemint, _env, showSpinner) => {
|
|
275531
|
+
const result = await showSpinner(() => settlemint.workspace.create({
|
|
275558
275532
|
name: name2,
|
|
275559
275533
|
taxIdValue,
|
|
275560
275534
|
taxIdType,
|
|
@@ -275566,7 +275540,7 @@ function workspaceCreateCommand() {
|
|
|
275566
275540
|
city,
|
|
275567
275541
|
addressLine2,
|
|
275568
275542
|
addressLine1
|
|
275569
|
-
});
|
|
275543
|
+
}));
|
|
275570
275544
|
return {
|
|
275571
275545
|
result,
|
|
275572
275546
|
mapDefaultEnv: () => {
|
|
@@ -275604,12 +275578,12 @@ function applicationAccessTokenCreateCommand() {
|
|
|
275604
275578
|
alias: "aat",
|
|
275605
275579
|
execute: (cmd2, baseAction) => {
|
|
275606
275580
|
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 }) => {
|
|
275607
|
-
return baseAction(defaultArgs, async (settlemint, env2) => {
|
|
275581
|
+
return baseAction(defaultArgs, async (settlemint, env2, showSpinner) => {
|
|
275608
275582
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275609
275583
|
if (!applicationUniqueName) {
|
|
275610
275584
|
return missingApplication();
|
|
275611
275585
|
}
|
|
275612
|
-
const aatToken = await settlemint.applicationAccessToken.create({
|
|
275586
|
+
const aatToken = await showSpinner(() => settlemint.applicationAccessToken.create({
|
|
275613
275587
|
applicationUniqueName,
|
|
275614
275588
|
name: name2,
|
|
275615
275589
|
blockchainNetworkScope: {
|
|
@@ -275653,7 +275627,7 @@ function applicationAccessTokenCreateCommand() {
|
|
|
275653
275627
|
values: []
|
|
275654
275628
|
},
|
|
275655
275629
|
validityPeriod
|
|
275656
|
-
});
|
|
275630
|
+
}));
|
|
275657
275631
|
return {
|
|
275658
275632
|
result: {
|
|
275659
275633
|
id: "",
|
|
@@ -275697,7 +275671,7 @@ function applicationCreateCommand() {
|
|
|
275697
275671
|
return baseAction({
|
|
275698
275672
|
...defaultArgs,
|
|
275699
275673
|
acceptDefaults
|
|
275700
|
-
}, async (settlemint, env2) => {
|
|
275674
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275701
275675
|
let workspaceUniqueName = workspace;
|
|
275702
275676
|
if (!workspaceUniqueName) {
|
|
275703
275677
|
const workspaces = await settlemint.workspace.list();
|
|
@@ -275707,10 +275681,10 @@ function applicationCreateCommand() {
|
|
|
275707
275681
|
}
|
|
275708
275682
|
workspaceUniqueName = workspace2.uniqueName;
|
|
275709
275683
|
}
|
|
275710
|
-
const result = await settlemint.application.create({
|
|
275684
|
+
const result = await showSpinner(() => settlemint.application.create({
|
|
275711
275685
|
name: name2,
|
|
275712
275686
|
workspaceUniqueName
|
|
275713
|
-
});
|
|
275687
|
+
}));
|
|
275714
275688
|
return {
|
|
275715
275689
|
result,
|
|
275716
275690
|
mapDefaultEnv: () => {
|
|
@@ -275788,7 +275762,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275788
275762
|
acceptDefaults,
|
|
275789
275763
|
provider,
|
|
275790
275764
|
region
|
|
275791
|
-
}, async (settlemint, env2) => {
|
|
275765
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275792
275766
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275793
275767
|
if (!applicationUniqueName) {
|
|
275794
275768
|
return missingApplication();
|
|
@@ -275807,7 +275781,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275807
275781
|
}
|
|
275808
275782
|
networkUniqueName = network?.uniqueName;
|
|
275809
275783
|
}
|
|
275810
|
-
const result = await settlemint.blockchainNode.create({
|
|
275784
|
+
const result = await showSpinner(() => settlemint.blockchainNode.create({
|
|
275811
275785
|
applicationUniqueName,
|
|
275812
275786
|
name: name2,
|
|
275813
275787
|
blockchainNetworkUniqueName: networkUniqueName,
|
|
@@ -275817,7 +275791,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275817
275791
|
region,
|
|
275818
275792
|
size,
|
|
275819
275793
|
type: type4
|
|
275820
|
-
});
|
|
275794
|
+
}));
|
|
275821
275795
|
return {
|
|
275822
275796
|
result,
|
|
275823
275797
|
mapDefaultEnv: () => {
|
|
@@ -275866,7 +275840,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275866
275840
|
acceptDefaults,
|
|
275867
275841
|
provider,
|
|
275868
275842
|
region
|
|
275869
|
-
}, async (settlemint, env2) => {
|
|
275843
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275870
275844
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275871
275845
|
if (!applicationUniqueName) {
|
|
275872
275846
|
return missingApplication();
|
|
@@ -275886,7 +275860,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275886
275860
|
}
|
|
275887
275861
|
blockchainNodeUniqueName = node.uniqueName;
|
|
275888
275862
|
}
|
|
275889
|
-
const result = await settlemint.insights.create({
|
|
275863
|
+
const result = await showSpinner(() => settlemint.insights.create({
|
|
275890
275864
|
name: name2,
|
|
275891
275865
|
applicationUniqueName,
|
|
275892
275866
|
insightsCategory: "BLOCKCHAIN_EXPLORER",
|
|
@@ -275896,7 +275870,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275896
275870
|
type: type4,
|
|
275897
275871
|
blockchainNodeUniqueName,
|
|
275898
275872
|
loadBalancerUniqueName
|
|
275899
|
-
});
|
|
275873
|
+
}));
|
|
275900
275874
|
return {
|
|
275901
275875
|
result,
|
|
275902
275876
|
mapDefaultEnv: async () => {
|
|
@@ -275943,12 +275917,12 @@ function hasuraIntegrationCreateCommand() {
|
|
|
275943
275917
|
...defaultArgs,
|
|
275944
275918
|
provider,
|
|
275945
275919
|
region
|
|
275946
|
-
}, async (settlemint, env2) => {
|
|
275920
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275947
275921
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275948
275922
|
if (!applicationUniqueName) {
|
|
275949
275923
|
return missingApplication();
|
|
275950
275924
|
}
|
|
275951
|
-
const result = await settlemint.integrationTool.create({
|
|
275925
|
+
const result = await showSpinner(() => settlemint.integrationTool.create({
|
|
275952
275926
|
name: name2,
|
|
275953
275927
|
applicationUniqueName,
|
|
275954
275928
|
integrationType: "HASURA",
|
|
@@ -275956,7 +275930,7 @@ function hasuraIntegrationCreateCommand() {
|
|
|
275956
275930
|
region,
|
|
275957
275931
|
size,
|
|
275958
275932
|
type: type4
|
|
275959
|
-
});
|
|
275933
|
+
}));
|
|
275960
275934
|
return {
|
|
275961
275935
|
result,
|
|
275962
275936
|
mapDefaultEnv: async () => {
|
|
@@ -276004,7 +275978,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
276004
275978
|
acceptDefaults,
|
|
276005
275979
|
provider,
|
|
276006
275980
|
region
|
|
276007
|
-
}, async (settlemint, env2) => {
|
|
275981
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276008
275982
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276009
275983
|
if (!applicationUniqueName) {
|
|
276010
275984
|
return missingApplication();
|
|
@@ -276023,7 +275997,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
276023
275997
|
}
|
|
276024
275998
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276025
275999
|
}
|
|
276026
|
-
const result = await settlemint.middleware.create({
|
|
276000
|
+
const result = await showSpinner(() => settlemint.middleware.create({
|
|
276027
276001
|
name: name2,
|
|
276028
276002
|
applicationUniqueName,
|
|
276029
276003
|
interface: "HA_GRAPH",
|
|
@@ -276032,7 +276006,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
276032
276006
|
region,
|
|
276033
276007
|
size,
|
|
276034
276008
|
type: type4
|
|
276035
|
-
});
|
|
276009
|
+
}));
|
|
276036
276010
|
return {
|
|
276037
276011
|
result,
|
|
276038
276012
|
mapDefaultEnv: async () => {
|
|
@@ -276087,7 +276061,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276087
276061
|
acceptDefaults,
|
|
276088
276062
|
provider,
|
|
276089
276063
|
region
|
|
276090
|
-
}, async (settlemint, env2) => {
|
|
276064
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276091
276065
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276092
276066
|
if (!applicationUniqueName) {
|
|
276093
276067
|
return missingApplication();
|
|
@@ -276128,7 +276102,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276128
276102
|
cancel3(`Invalid pre-deployed abis: '${invalidPredeployedAbis.join(", ")}'. Possible values: '${platformConfig.preDeployedContracts.sort().join(", ")}'`);
|
|
276129
276103
|
}
|
|
276130
276104
|
}
|
|
276131
|
-
const result = await settlemint.middleware.create({
|
|
276105
|
+
const result = await showSpinner(() => settlemint.middleware.create({
|
|
276132
276106
|
name: name2,
|
|
276133
276107
|
applicationUniqueName,
|
|
276134
276108
|
interface: "SMART_CONTRACT_PORTAL",
|
|
@@ -276140,7 +276114,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276140
276114
|
region,
|
|
276141
276115
|
size,
|
|
276142
276116
|
type: type4
|
|
276143
|
-
});
|
|
276117
|
+
}));
|
|
276144
276118
|
return {
|
|
276145
276119
|
result,
|
|
276146
276120
|
mapDefaultEnv: async () => {
|
|
@@ -276184,7 +276158,7 @@ function privateKeyAccessibleCreateCommand() {
|
|
|
276184
276158
|
return baseAction({
|
|
276185
276159
|
...defaultArgs,
|
|
276186
276160
|
acceptDefaults
|
|
276187
|
-
}, async (settlemint, env2) => {
|
|
276161
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276188
276162
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276189
276163
|
if (!applicationUniqueName) {
|
|
276190
276164
|
return missingApplication();
|
|
@@ -276203,12 +276177,12 @@ function privateKeyAccessibleCreateCommand() {
|
|
|
276203
276177
|
}
|
|
276204
276178
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276205
276179
|
}
|
|
276206
|
-
const result = await settlemint.privateKey.create({
|
|
276180
|
+
const result = await showSpinner(() => settlemint.privateKey.create({
|
|
276207
276181
|
name: name2,
|
|
276208
276182
|
applicationUniqueName,
|
|
276209
276183
|
privateKeyType: "ACCESSIBLE_ECDSA_P256",
|
|
276210
276184
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276211
|
-
});
|
|
276185
|
+
}));
|
|
276212
276186
|
return {
|
|
276213
276187
|
result
|
|
276214
276188
|
};
|
|
@@ -276244,7 +276218,7 @@ function privateKeyHdCreateCommand() {
|
|
|
276244
276218
|
return baseAction({
|
|
276245
276219
|
...defaultArgs,
|
|
276246
276220
|
acceptDefaults
|
|
276247
|
-
}, async (settlemint, env2) => {
|
|
276221
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276248
276222
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276249
276223
|
if (!applicationUniqueName) {
|
|
276250
276224
|
return missingApplication();
|
|
@@ -276263,12 +276237,12 @@ function privateKeyHdCreateCommand() {
|
|
|
276263
276237
|
}
|
|
276264
276238
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276265
276239
|
}
|
|
276266
|
-
const result = await settlemint.privateKey.create({
|
|
276240
|
+
const result = await showSpinner(() => settlemint.privateKey.create({
|
|
276267
276241
|
name: name2,
|
|
276268
276242
|
applicationUniqueName,
|
|
276269
276243
|
privateKeyType: "HD_ECDSA_P256",
|
|
276270
276244
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276271
|
-
});
|
|
276245
|
+
}));
|
|
276272
276246
|
return {
|
|
276273
276247
|
result,
|
|
276274
276248
|
mapDefaultEnv: () => {
|
|
@@ -276310,7 +276284,7 @@ function privateKeyHsmCreateCommand() {
|
|
|
276310
276284
|
return baseAction({
|
|
276311
276285
|
...defaultArgs,
|
|
276312
276286
|
acceptDefaults
|
|
276313
|
-
}, async (settlemint, env2) => {
|
|
276287
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276314
276288
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276315
276289
|
if (!applicationUniqueName) {
|
|
276316
276290
|
return missingApplication();
|
|
@@ -276329,12 +276303,12 @@ function privateKeyHsmCreateCommand() {
|
|
|
276329
276303
|
}
|
|
276330
276304
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276331
276305
|
}
|
|
276332
|
-
const result = await settlemint.privateKey.create({
|
|
276306
|
+
const result = await showSpinner(() => settlemint.privateKey.create({
|
|
276333
276307
|
name: name2,
|
|
276334
276308
|
applicationUniqueName,
|
|
276335
276309
|
privateKeyType: "HSM_ECDSA_P256",
|
|
276336
276310
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276337
|
-
});
|
|
276311
|
+
}));
|
|
276338
276312
|
return {
|
|
276339
276313
|
result
|
|
276340
276314
|
};
|
|
@@ -276376,12 +276350,12 @@ function ipfsStorageCreateCommand() {
|
|
|
276376
276350
|
...defaultArgs,
|
|
276377
276351
|
provider,
|
|
276378
276352
|
region
|
|
276379
|
-
}, async (settlemint, env2) => {
|
|
276353
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276380
276354
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276381
276355
|
if (!applicationUniqueName) {
|
|
276382
276356
|
return missingApplication();
|
|
276383
276357
|
}
|
|
276384
|
-
const result = await settlemint.storage.create({
|
|
276358
|
+
const result = await showSpinner(() => settlemint.storage.create({
|
|
276385
276359
|
name: name2,
|
|
276386
276360
|
applicationUniqueName,
|
|
276387
276361
|
storageProtocol: "IPFS",
|
|
@@ -276389,7 +276363,7 @@ function ipfsStorageCreateCommand() {
|
|
|
276389
276363
|
region,
|
|
276390
276364
|
size,
|
|
276391
276365
|
type: type4
|
|
276392
|
-
});
|
|
276366
|
+
}));
|
|
276393
276367
|
return {
|
|
276394
276368
|
result,
|
|
276395
276369
|
mapDefaultEnv: () => {
|
|
@@ -276429,12 +276403,12 @@ function minioStorageCreateCommand() {
|
|
|
276429
276403
|
...defaultArgs,
|
|
276430
276404
|
provider,
|
|
276431
276405
|
region
|
|
276432
|
-
}, async (settlemint, env2) => {
|
|
276406
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276433
276407
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276434
276408
|
if (!applicationUniqueName) {
|
|
276435
276409
|
return missingApplication();
|
|
276436
276410
|
}
|
|
276437
|
-
const result = await settlemint.storage.create({
|
|
276411
|
+
const result = await showSpinner(() => settlemint.storage.create({
|
|
276438
276412
|
name: name2,
|
|
276439
276413
|
applicationUniqueName,
|
|
276440
276414
|
storageProtocol: "MINIO",
|
|
@@ -276442,7 +276416,7 @@ function minioStorageCreateCommand() {
|
|
|
276442
276416
|
region,
|
|
276443
276417
|
size,
|
|
276444
276418
|
type: type4
|
|
276445
|
-
});
|
|
276419
|
+
}));
|
|
276446
276420
|
return {
|
|
276447
276421
|
result,
|
|
276448
276422
|
mapDefaultEnv: () => {
|
|
@@ -277266,7 +277240,6 @@ function hardhatDeployRemoteCommand() {
|
|
|
277266
277240
|
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
277267
277241
|
const env2 = await loadEnv2(false, !!prod);
|
|
277268
277242
|
const instance = await instancePrompt(env2, true);
|
|
277269
|
-
note2(`Instance is ${instance}`, "debug", env2.SETTLEMINT_DEBUG);
|
|
277270
277243
|
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
277271
277244
|
env: env2,
|
|
277272
277245
|
instance,
|
|
@@ -277852,4 +277825,4 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
277852
277825
|
ascii();
|
|
277853
277826
|
sdkCliCommand();
|
|
277854
277827
|
|
|
277855
|
-
//# debugId=
|
|
277828
|
+
//# debugId=FB55AAE2F47AFE1C64756E2164756E21
|