@settlemint/sdk-cli 1.0.3-prdc75aa8f → 1.0.3-prdf0b77d6
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 +70 -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.774HuhSvlN:/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.774HuhSvlN:/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.774HuhSvlN:/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.774HuhSvlN:/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-prdf0b77d6",
|
|
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.774HuhSvlN:/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-prdf0b77d6",
|
|
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-prdf0b77d6",
|
|
267540
|
+
"@settlemint/sdk-utils": "1.0.3-prdf0b77d6",
|
|
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.774HuhSvlN:/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,13 @@ 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 ? `
|
|
268601
|
+
Configured instances:
|
|
268602
|
+
${Object.keys(config4.instances).map((i) => `- '${i}'`).join(`
|
|
268603
|
+
`)}` : ""}`);
|
|
268621
268604
|
}
|
|
268622
|
-
note(`Returning ${JSON.stringify({ personalAccessToken: instanceConfig.personalAccessToken })}`, "debug", env2?.SETTLEMINT_DEBUG);
|
|
268623
268605
|
return { personalAccessToken: instanceConfig.personalAccessToken };
|
|
268624
268606
|
}
|
|
268625
268607
|
async function getInstances() {
|
|
@@ -268658,10 +268640,6 @@ var getApplicationOrPersonalAccessToken = async ({
|
|
|
268658
268640
|
const preferredToken = prefer === "application" ? applicationAccessToken : personalAccessToken;
|
|
268659
268641
|
const fallbackToken = prefer === "application" ? personalAccessToken : applicationAccessToken;
|
|
268660
268642
|
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
268643
|
if (preferredToken) {
|
|
268666
268644
|
return preferredToken;
|
|
268667
268645
|
}
|
|
@@ -271232,8 +271210,7 @@ async function writeEnvSpinner(prod, env2) {
|
|
|
271232
271210
|
SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: env2.SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT,
|
|
271233
271211
|
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: env2.SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT,
|
|
271234
271212
|
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
|
|
271213
|
+
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: env2.SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID
|
|
271237
271214
|
}, false);
|
|
271238
271215
|
await writeEnv(prod, {
|
|
271239
271216
|
SETTLEMINT_ACCESS_TOKEN: env2.SETTLEMINT_ACCESS_TOKEN,
|
|
@@ -271391,8 +271368,7 @@ var DotEnvSchema3 = z.object({
|
|
|
271391
271368
|
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: UrlSchema3.optional(),
|
|
271392
271369
|
SETTLEMINT_NEW_PROJECT_NAME: z.string().optional(),
|
|
271393
271370
|
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")
|
|
271371
|
+
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z.string().optional()
|
|
271396
271372
|
});
|
|
271397
271373
|
var DotEnvSchemaPartial3 = DotEnvSchema3.partial();
|
|
271398
271374
|
var IdSchema3 = z.union([
|
|
@@ -275322,13 +275298,12 @@ function getCreateCommand({
|
|
|
275322
275298
|
return nothingSelectedError("region");
|
|
275323
275299
|
}
|
|
275324
275300
|
}
|
|
275325
|
-
const
|
|
275301
|
+
const showSpinner = (task) => spinner({
|
|
275326
275302
|
startMessage: `Creating ${type4}`,
|
|
275327
|
-
task
|
|
275328
|
-
return createFunction(settlemint, env2);
|
|
275329
|
-
},
|
|
275303
|
+
task,
|
|
275330
275304
|
stopMessage: `${capitalizeFirstLetter(type4)} created`
|
|
275331
275305
|
});
|
|
275306
|
+
const { result, waitFor, mapDefaultEnv } = await createFunction(settlemint, env2, showSpinner);
|
|
275332
275307
|
if (wait) {
|
|
275333
275308
|
await waitForCompletion({
|
|
275334
275309
|
settlemint,
|
|
@@ -275394,12 +275369,12 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275394
275369
|
...defaultArgs,
|
|
275395
275370
|
provider,
|
|
275396
275371
|
region
|
|
275397
|
-
}, async (settlemint, env2) => {
|
|
275372
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275398
275373
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275399
275374
|
if (!applicationUniqueName) {
|
|
275400
275375
|
return missingApplication();
|
|
275401
275376
|
}
|
|
275402
|
-
const result = await settlemint.blockchainNetwork.create({
|
|
275377
|
+
const result = await showSpinner(() => settlemint.blockchainNetwork.create({
|
|
275403
275378
|
name: name2,
|
|
275404
275379
|
applicationUniqueName,
|
|
275405
275380
|
nodeName,
|
|
@@ -275414,7 +275389,7 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275414
275389
|
secondsPerBlock,
|
|
275415
275390
|
size,
|
|
275416
275391
|
type: type4
|
|
275417
|
-
});
|
|
275392
|
+
}));
|
|
275418
275393
|
const blockchainNode = result.blockchainNodes.find((item) => item.name === nodeName) ?? result.blockchainNodes[0];
|
|
275419
275394
|
return {
|
|
275420
275395
|
result,
|
|
@@ -275553,8 +275528,8 @@ function workspaceCreateCommand() {
|
|
|
275553
275528
|
addressLine1,
|
|
275554
275529
|
...defaultArgs
|
|
275555
275530
|
}) => {
|
|
275556
|
-
return baseAction(defaultArgs, async (settlemint) => {
|
|
275557
|
-
const result = await settlemint.workspace.create({
|
|
275531
|
+
return baseAction(defaultArgs, async (settlemint, _env, showSpinner) => {
|
|
275532
|
+
const result = await showSpinner(() => settlemint.workspace.create({
|
|
275558
275533
|
name: name2,
|
|
275559
275534
|
taxIdValue,
|
|
275560
275535
|
taxIdType,
|
|
@@ -275566,7 +275541,7 @@ function workspaceCreateCommand() {
|
|
|
275566
275541
|
city,
|
|
275567
275542
|
addressLine2,
|
|
275568
275543
|
addressLine1
|
|
275569
|
-
});
|
|
275544
|
+
}));
|
|
275570
275545
|
return {
|
|
275571
275546
|
result,
|
|
275572
275547
|
mapDefaultEnv: () => {
|
|
@@ -275604,12 +275579,12 @@ function applicationAccessTokenCreateCommand() {
|
|
|
275604
275579
|
alias: "aat",
|
|
275605
275580
|
execute: (cmd2, baseAction) => {
|
|
275606
275581
|
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) => {
|
|
275582
|
+
return baseAction(defaultArgs, async (settlemint, env2, showSpinner) => {
|
|
275608
275583
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275609
275584
|
if (!applicationUniqueName) {
|
|
275610
275585
|
return missingApplication();
|
|
275611
275586
|
}
|
|
275612
|
-
const aatToken = await settlemint.applicationAccessToken.create({
|
|
275587
|
+
const aatToken = await showSpinner(() => settlemint.applicationAccessToken.create({
|
|
275613
275588
|
applicationUniqueName,
|
|
275614
275589
|
name: name2,
|
|
275615
275590
|
blockchainNetworkScope: {
|
|
@@ -275653,7 +275628,7 @@ function applicationAccessTokenCreateCommand() {
|
|
|
275653
275628
|
values: []
|
|
275654
275629
|
},
|
|
275655
275630
|
validityPeriod
|
|
275656
|
-
});
|
|
275631
|
+
}));
|
|
275657
275632
|
return {
|
|
275658
275633
|
result: {
|
|
275659
275634
|
id: "",
|
|
@@ -275697,7 +275672,7 @@ function applicationCreateCommand() {
|
|
|
275697
275672
|
return baseAction({
|
|
275698
275673
|
...defaultArgs,
|
|
275699
275674
|
acceptDefaults
|
|
275700
|
-
}, async (settlemint, env2) => {
|
|
275675
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275701
275676
|
let workspaceUniqueName = workspace;
|
|
275702
275677
|
if (!workspaceUniqueName) {
|
|
275703
275678
|
const workspaces = await settlemint.workspace.list();
|
|
@@ -275707,10 +275682,10 @@ function applicationCreateCommand() {
|
|
|
275707
275682
|
}
|
|
275708
275683
|
workspaceUniqueName = workspace2.uniqueName;
|
|
275709
275684
|
}
|
|
275710
|
-
const result = await settlemint.application.create({
|
|
275685
|
+
const result = await showSpinner(() => settlemint.application.create({
|
|
275711
275686
|
name: name2,
|
|
275712
275687
|
workspaceUniqueName
|
|
275713
|
-
});
|
|
275688
|
+
}));
|
|
275714
275689
|
return {
|
|
275715
275690
|
result,
|
|
275716
275691
|
mapDefaultEnv: () => {
|
|
@@ -275788,7 +275763,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275788
275763
|
acceptDefaults,
|
|
275789
275764
|
provider,
|
|
275790
275765
|
region
|
|
275791
|
-
}, async (settlemint, env2) => {
|
|
275766
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275792
275767
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275793
275768
|
if (!applicationUniqueName) {
|
|
275794
275769
|
return missingApplication();
|
|
@@ -275807,7 +275782,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275807
275782
|
}
|
|
275808
275783
|
networkUniqueName = network?.uniqueName;
|
|
275809
275784
|
}
|
|
275810
|
-
const result = await settlemint.blockchainNode.create({
|
|
275785
|
+
const result = await showSpinner(() => settlemint.blockchainNode.create({
|
|
275811
275786
|
applicationUniqueName,
|
|
275812
275787
|
name: name2,
|
|
275813
275788
|
blockchainNetworkUniqueName: networkUniqueName,
|
|
@@ -275817,7 +275792,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275817
275792
|
region,
|
|
275818
275793
|
size,
|
|
275819
275794
|
type: type4
|
|
275820
|
-
});
|
|
275795
|
+
}));
|
|
275821
275796
|
return {
|
|
275822
275797
|
result,
|
|
275823
275798
|
mapDefaultEnv: () => {
|
|
@@ -275866,7 +275841,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275866
275841
|
acceptDefaults,
|
|
275867
275842
|
provider,
|
|
275868
275843
|
region
|
|
275869
|
-
}, async (settlemint, env2) => {
|
|
275844
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275870
275845
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275871
275846
|
if (!applicationUniqueName) {
|
|
275872
275847
|
return missingApplication();
|
|
@@ -275886,7 +275861,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275886
275861
|
}
|
|
275887
275862
|
blockchainNodeUniqueName = node.uniqueName;
|
|
275888
275863
|
}
|
|
275889
|
-
const result = await settlemint.insights.create({
|
|
275864
|
+
const result = await showSpinner(() => settlemint.insights.create({
|
|
275890
275865
|
name: name2,
|
|
275891
275866
|
applicationUniqueName,
|
|
275892
275867
|
insightsCategory: "BLOCKCHAIN_EXPLORER",
|
|
@@ -275896,7 +275871,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275896
275871
|
type: type4,
|
|
275897
275872
|
blockchainNodeUniqueName,
|
|
275898
275873
|
loadBalancerUniqueName
|
|
275899
|
-
});
|
|
275874
|
+
}));
|
|
275900
275875
|
return {
|
|
275901
275876
|
result,
|
|
275902
275877
|
mapDefaultEnv: async () => {
|
|
@@ -275943,12 +275918,12 @@ function hasuraIntegrationCreateCommand() {
|
|
|
275943
275918
|
...defaultArgs,
|
|
275944
275919
|
provider,
|
|
275945
275920
|
region
|
|
275946
|
-
}, async (settlemint, env2) => {
|
|
275921
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275947
275922
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275948
275923
|
if (!applicationUniqueName) {
|
|
275949
275924
|
return missingApplication();
|
|
275950
275925
|
}
|
|
275951
|
-
const result = await settlemint.integrationTool.create({
|
|
275926
|
+
const result = await showSpinner(() => settlemint.integrationTool.create({
|
|
275952
275927
|
name: name2,
|
|
275953
275928
|
applicationUniqueName,
|
|
275954
275929
|
integrationType: "HASURA",
|
|
@@ -275956,7 +275931,7 @@ function hasuraIntegrationCreateCommand() {
|
|
|
275956
275931
|
region,
|
|
275957
275932
|
size,
|
|
275958
275933
|
type: type4
|
|
275959
|
-
});
|
|
275934
|
+
}));
|
|
275960
275935
|
return {
|
|
275961
275936
|
result,
|
|
275962
275937
|
mapDefaultEnv: async () => {
|
|
@@ -276004,7 +275979,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
276004
275979
|
acceptDefaults,
|
|
276005
275980
|
provider,
|
|
276006
275981
|
region
|
|
276007
|
-
}, async (settlemint, env2) => {
|
|
275982
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276008
275983
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276009
275984
|
if (!applicationUniqueName) {
|
|
276010
275985
|
return missingApplication();
|
|
@@ -276023,7 +275998,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
276023
275998
|
}
|
|
276024
275999
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276025
276000
|
}
|
|
276026
|
-
const result = await settlemint.middleware.create({
|
|
276001
|
+
const result = await showSpinner(() => settlemint.middleware.create({
|
|
276027
276002
|
name: name2,
|
|
276028
276003
|
applicationUniqueName,
|
|
276029
276004
|
interface: "HA_GRAPH",
|
|
@@ -276032,7 +276007,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
276032
276007
|
region,
|
|
276033
276008
|
size,
|
|
276034
276009
|
type: type4
|
|
276035
|
-
});
|
|
276010
|
+
}));
|
|
276036
276011
|
return {
|
|
276037
276012
|
result,
|
|
276038
276013
|
mapDefaultEnv: async () => {
|
|
@@ -276087,7 +276062,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276087
276062
|
acceptDefaults,
|
|
276088
276063
|
provider,
|
|
276089
276064
|
region
|
|
276090
|
-
}, async (settlemint, env2) => {
|
|
276065
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276091
276066
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276092
276067
|
if (!applicationUniqueName) {
|
|
276093
276068
|
return missingApplication();
|
|
@@ -276128,7 +276103,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276128
276103
|
cancel3(`Invalid pre-deployed abis: '${invalidPredeployedAbis.join(", ")}'. Possible values: '${platformConfig.preDeployedContracts.sort().join(", ")}'`);
|
|
276129
276104
|
}
|
|
276130
276105
|
}
|
|
276131
|
-
const result = await settlemint.middleware.create({
|
|
276106
|
+
const result = await showSpinner(() => settlemint.middleware.create({
|
|
276132
276107
|
name: name2,
|
|
276133
276108
|
applicationUniqueName,
|
|
276134
276109
|
interface: "SMART_CONTRACT_PORTAL",
|
|
@@ -276140,7 +276115,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276140
276115
|
region,
|
|
276141
276116
|
size,
|
|
276142
276117
|
type: type4
|
|
276143
|
-
});
|
|
276118
|
+
}));
|
|
276144
276119
|
return {
|
|
276145
276120
|
result,
|
|
276146
276121
|
mapDefaultEnv: async () => {
|
|
@@ -276184,7 +276159,7 @@ function privateKeyAccessibleCreateCommand() {
|
|
|
276184
276159
|
return baseAction({
|
|
276185
276160
|
...defaultArgs,
|
|
276186
276161
|
acceptDefaults
|
|
276187
|
-
}, async (settlemint, env2) => {
|
|
276162
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276188
276163
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276189
276164
|
if (!applicationUniqueName) {
|
|
276190
276165
|
return missingApplication();
|
|
@@ -276203,12 +276178,12 @@ function privateKeyAccessibleCreateCommand() {
|
|
|
276203
276178
|
}
|
|
276204
276179
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276205
276180
|
}
|
|
276206
|
-
const result = await settlemint.privateKey.create({
|
|
276181
|
+
const result = await showSpinner(() => settlemint.privateKey.create({
|
|
276207
276182
|
name: name2,
|
|
276208
276183
|
applicationUniqueName,
|
|
276209
276184
|
privateKeyType: "ACCESSIBLE_ECDSA_P256",
|
|
276210
276185
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276211
|
-
});
|
|
276186
|
+
}));
|
|
276212
276187
|
return {
|
|
276213
276188
|
result
|
|
276214
276189
|
};
|
|
@@ -276244,7 +276219,7 @@ function privateKeyHdCreateCommand() {
|
|
|
276244
276219
|
return baseAction({
|
|
276245
276220
|
...defaultArgs,
|
|
276246
276221
|
acceptDefaults
|
|
276247
|
-
}, async (settlemint, env2) => {
|
|
276222
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276248
276223
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276249
276224
|
if (!applicationUniqueName) {
|
|
276250
276225
|
return missingApplication();
|
|
@@ -276263,12 +276238,12 @@ function privateKeyHdCreateCommand() {
|
|
|
276263
276238
|
}
|
|
276264
276239
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276265
276240
|
}
|
|
276266
|
-
const result = await settlemint.privateKey.create({
|
|
276241
|
+
const result = await showSpinner(() => settlemint.privateKey.create({
|
|
276267
276242
|
name: name2,
|
|
276268
276243
|
applicationUniqueName,
|
|
276269
276244
|
privateKeyType: "HD_ECDSA_P256",
|
|
276270
276245
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276271
|
-
});
|
|
276246
|
+
}));
|
|
276272
276247
|
return {
|
|
276273
276248
|
result,
|
|
276274
276249
|
mapDefaultEnv: () => {
|
|
@@ -276310,7 +276285,7 @@ function privateKeyHsmCreateCommand() {
|
|
|
276310
276285
|
return baseAction({
|
|
276311
276286
|
...defaultArgs,
|
|
276312
276287
|
acceptDefaults
|
|
276313
|
-
}, async (settlemint, env2) => {
|
|
276288
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276314
276289
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276315
276290
|
if (!applicationUniqueName) {
|
|
276316
276291
|
return missingApplication();
|
|
@@ -276329,12 +276304,12 @@ function privateKeyHsmCreateCommand() {
|
|
|
276329
276304
|
}
|
|
276330
276305
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276331
276306
|
}
|
|
276332
|
-
const result = await settlemint.privateKey.create({
|
|
276307
|
+
const result = await showSpinner(() => settlemint.privateKey.create({
|
|
276333
276308
|
name: name2,
|
|
276334
276309
|
applicationUniqueName,
|
|
276335
276310
|
privateKeyType: "HSM_ECDSA_P256",
|
|
276336
276311
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276337
|
-
});
|
|
276312
|
+
}));
|
|
276338
276313
|
return {
|
|
276339
276314
|
result
|
|
276340
276315
|
};
|
|
@@ -276376,12 +276351,12 @@ function ipfsStorageCreateCommand() {
|
|
|
276376
276351
|
...defaultArgs,
|
|
276377
276352
|
provider,
|
|
276378
276353
|
region
|
|
276379
|
-
}, async (settlemint, env2) => {
|
|
276354
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276380
276355
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276381
276356
|
if (!applicationUniqueName) {
|
|
276382
276357
|
return missingApplication();
|
|
276383
276358
|
}
|
|
276384
|
-
const result = await settlemint.storage.create({
|
|
276359
|
+
const result = await showSpinner(() => settlemint.storage.create({
|
|
276385
276360
|
name: name2,
|
|
276386
276361
|
applicationUniqueName,
|
|
276387
276362
|
storageProtocol: "IPFS",
|
|
@@ -276389,7 +276364,7 @@ function ipfsStorageCreateCommand() {
|
|
|
276389
276364
|
region,
|
|
276390
276365
|
size,
|
|
276391
276366
|
type: type4
|
|
276392
|
-
});
|
|
276367
|
+
}));
|
|
276393
276368
|
return {
|
|
276394
276369
|
result,
|
|
276395
276370
|
mapDefaultEnv: () => {
|
|
@@ -276429,12 +276404,12 @@ function minioStorageCreateCommand() {
|
|
|
276429
276404
|
...defaultArgs,
|
|
276430
276405
|
provider,
|
|
276431
276406
|
region
|
|
276432
|
-
}, async (settlemint, env2) => {
|
|
276407
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276433
276408
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276434
276409
|
if (!applicationUniqueName) {
|
|
276435
276410
|
return missingApplication();
|
|
276436
276411
|
}
|
|
276437
|
-
const result = await settlemint.storage.create({
|
|
276412
|
+
const result = await showSpinner(() => settlemint.storage.create({
|
|
276438
276413
|
name: name2,
|
|
276439
276414
|
applicationUniqueName,
|
|
276440
276415
|
storageProtocol: "MINIO",
|
|
@@ -276442,7 +276417,7 @@ function minioStorageCreateCommand() {
|
|
|
276442
276417
|
region,
|
|
276443
276418
|
size,
|
|
276444
276419
|
type: type4
|
|
276445
|
-
});
|
|
276420
|
+
}));
|
|
276446
276421
|
return {
|
|
276447
276422
|
result,
|
|
276448
276423
|
mapDefaultEnv: () => {
|
|
@@ -277266,7 +277241,6 @@ function hardhatDeployRemoteCommand() {
|
|
|
277266
277241
|
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
277267
277242
|
const env2 = await loadEnv2(false, !!prod);
|
|
277268
277243
|
const instance = await instancePrompt(env2, true);
|
|
277269
|
-
note2(`Instance is ${instance}`, "debug", env2.SETTLEMINT_DEBUG);
|
|
277270
277244
|
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
277271
277245
|
env: env2,
|
|
277272
277246
|
instance,
|
|
@@ -277852,4 +277826,4 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
277852
277826
|
ascii();
|
|
277853
277827
|
sdkCliCommand();
|
|
277854
277828
|
|
|
277855
|
-
//# debugId=
|
|
277829
|
+
//# debugId=941430E79CBECF0564756E2164756E21
|