@settlemint/sdk-cli 1.0.3-prc75111eb → 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 -92
- 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.boolean().optional().default(false)
|
|
267217
|
+
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z.string().optional()
|
|
267219
267218
|
});
|
|
267220
267219
|
var DotEnvSchemaPartial = DotEnvSchema.partial();
|
|
267221
267220
|
var IdSchema = z.union([
|
|
@@ -267449,20 +267448,14 @@ var intro = (msg) => {
|
|
|
267449
267448
|
console.log(magentaBright(maskTokens2(msg)));
|
|
267450
267449
|
console.log("");
|
|
267451
267450
|
};
|
|
267452
|
-
var note = (message, level = "info"
|
|
267453
|
-
console.log("");
|
|
267451
|
+
var note = (message, level = "info") => {
|
|
267454
267452
|
const maskedMessage = maskTokens2(message);
|
|
267455
|
-
|
|
267456
|
-
console.log(maskedMessage);
|
|
267457
|
-
return;
|
|
267458
|
-
}
|
|
267453
|
+
console.log("");
|
|
267459
267454
|
if (level === "warn") {
|
|
267460
267455
|
console.warn(yellowBright(maskedMessage));
|
|
267461
267456
|
return;
|
|
267462
267457
|
}
|
|
267463
|
-
|
|
267464
|
-
console.log(maskedMessage);
|
|
267465
|
-
}
|
|
267458
|
+
console.log(maskedMessage);
|
|
267466
267459
|
};
|
|
267467
267460
|
var outro = (msg) => {
|
|
267468
267461
|
console.log("");
|
|
@@ -267490,7 +267483,7 @@ ${error.stack}`));
|
|
|
267490
267483
|
var package_default = {
|
|
267491
267484
|
name: "@settlemint/sdk-cli",
|
|
267492
267485
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
267493
|
-
version: "1.0.3-
|
|
267486
|
+
version: "1.0.3-prdf0b77d6",
|
|
267494
267487
|
type: "module",
|
|
267495
267488
|
private: false,
|
|
267496
267489
|
license: "FSL-1.1-MIT",
|
|
@@ -267543,8 +267536,8 @@ var package_default = {
|
|
|
267543
267536
|
"@inquirer/input": "4.1.3",
|
|
267544
267537
|
"@inquirer/password": "4.0.6",
|
|
267545
267538
|
"@inquirer/select": "4.0.6",
|
|
267546
|
-
"@settlemint/sdk-js": "1.0.3-
|
|
267547
|
-
"@settlemint/sdk-utils": "1.0.3-
|
|
267539
|
+
"@settlemint/sdk-js": "1.0.3-prdf0b77d6",
|
|
267540
|
+
"@settlemint/sdk-utils": "1.0.3-prdf0b77d6",
|
|
267548
267541
|
"get-tsconfig": "4.8.1",
|
|
267549
267542
|
giget: "1.2.3"
|
|
267550
267543
|
},
|
|
@@ -267844,7 +267837,7 @@ var et = l((Re, tt) => {
|
|
|
267844
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) => {
|
|
267845
267838
|
let n = e.colon || Bt, r = t.match(/\//) || g && t.match(/\\/) ? [""] : [
|
|
267846
267839
|
...g ? [process.cwd()] : [],
|
|
267847
|
-
...(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)
|
|
267848
267841
|
], s = g ? e.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", o = g ? s.split(n) : [""];
|
|
267849
267842
|
return g && t.indexOf(".") !== -1 && o[0] !== "" && o.unshift(""), {
|
|
267850
267843
|
pathEnv: r,
|
|
@@ -268354,20 +268347,14 @@ var intro2 = (msg) => {
|
|
|
268354
268347
|
console.log(magentaBright(maskTokens3(msg)));
|
|
268355
268348
|
console.log("");
|
|
268356
268349
|
};
|
|
268357
|
-
var note2 = (message, level = "info"
|
|
268358
|
-
console.log("");
|
|
268350
|
+
var note2 = (message, level = "info") => {
|
|
268359
268351
|
const maskedMessage = maskTokens3(message);
|
|
268360
|
-
|
|
268361
|
-
console.log(maskedMessage);
|
|
268362
|
-
return;
|
|
268363
|
-
}
|
|
268352
|
+
console.log("");
|
|
268364
268353
|
if (level === "warn") {
|
|
268365
268354
|
console.warn(yellowBright(maskedMessage));
|
|
268366
268355
|
return;
|
|
268367
268356
|
}
|
|
268368
|
-
|
|
268369
|
-
console.log(maskedMessage);
|
|
268370
|
-
}
|
|
268357
|
+
console.log(maskedMessage);
|
|
268371
268358
|
};
|
|
268372
268359
|
var ApplicationAccessTokenSchema2 = z.string().regex(/^sm_aat_.*$/);
|
|
268373
268360
|
var PersonalAccessTokenSchema2 = z.string().regex(/^sm_pat_.*$/);
|
|
@@ -268425,8 +268412,7 @@ var DotEnvSchema2 = z.object({
|
|
|
268425
268412
|
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: UrlSchema2.optional(),
|
|
268426
268413
|
SETTLEMINT_NEW_PROJECT_NAME: z.string().optional(),
|
|
268427
268414
|
SETTLEMINT_SMART_CONTRACT_ADDRESS: z.string().optional(),
|
|
268428
|
-
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z.string().optional()
|
|
268429
|
-
SETTLEMINT_DEBUG: z.boolean().optional().default(false)
|
|
268415
|
+
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z.string().optional()
|
|
268430
268416
|
});
|
|
268431
268417
|
var DotEnvSchemaPartial2 = DotEnvSchema2.partial();
|
|
268432
268418
|
var IdSchema2 = z.union([
|
|
@@ -268609,13 +268595,13 @@ async function storeCredentials(token, instance) {
|
|
|
268609
268595
|
}
|
|
268610
268596
|
async function getInstanceCredentials(instance, env2) {
|
|
268611
268597
|
const config4 = await readConfig();
|
|
268612
|
-
note(`Config from readConfig is ${JSON.stringify(config4, null, 2)}`, "debug", env2?.SETTLEMINT_DEBUG);
|
|
268613
268598
|
const instanceConfig = config4.instances[instance];
|
|
268614
|
-
note(`Instance config is ${instanceConfig ? JSON.stringify(instanceConfig, null, 2) : instanceConfig}`, "debug", env2?.SETTLEMINT_DEBUG);
|
|
268615
268599
|
if (!instanceConfig) {
|
|
268616
|
-
|
|
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
|
+
`)}` : ""}`);
|
|
268617
268604
|
}
|
|
268618
|
-
note(`Returning ${JSON.stringify({ personalAccessToken: instanceConfig.personalAccessToken })}`, "debug", env2?.SETTLEMINT_DEBUG);
|
|
268619
268605
|
return { personalAccessToken: instanceConfig.personalAccessToken };
|
|
268620
268606
|
}
|
|
268621
268607
|
async function getInstances() {
|
|
@@ -268654,10 +268640,6 @@ var getApplicationOrPersonalAccessToken = async ({
|
|
|
268654
268640
|
const preferredToken = prefer === "application" ? applicationAccessToken : personalAccessToken;
|
|
268655
268641
|
const fallbackToken = prefer === "application" ? personalAccessToken : applicationAccessToken;
|
|
268656
268642
|
const allowFallback = prefer === "application";
|
|
268657
|
-
note(`prefer is ${prefer}`, "debug", env2.SETTLEMINT_DEBUG);
|
|
268658
|
-
note(`preferredToken is ${preferredToken}`, "debug", env2.SETTLEMINT_DEBUG);
|
|
268659
|
-
note(`fallbackToken is ${fallbackToken}`, "debug", env2.SETTLEMINT_DEBUG);
|
|
268660
|
-
note(`allowFallback is ${allowFallback}`, "debug", env2.SETTLEMINT_DEBUG);
|
|
268661
268643
|
if (preferredToken) {
|
|
268662
268644
|
return preferredToken;
|
|
268663
268645
|
}
|
|
@@ -271228,8 +271210,7 @@ async function writeEnvSpinner(prod, env2) {
|
|
|
271228
271210
|
SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: env2.SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT,
|
|
271229
271211
|
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: env2.SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT,
|
|
271230
271212
|
SETTLEMINT_SMART_CONTRACT_ADDRESS: env2.SETTLEMINT_SMART_CONTRACT_ADDRESS,
|
|
271231
|
-
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: env2.SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID
|
|
271232
|
-
SETTLEMINT_DEBUG: env2.SETTLEMINT_DEBUG
|
|
271213
|
+
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: env2.SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID
|
|
271233
271214
|
}, false);
|
|
271234
271215
|
await writeEnv(prod, {
|
|
271235
271216
|
SETTLEMINT_ACCESS_TOKEN: env2.SETTLEMINT_ACCESS_TOKEN,
|
|
@@ -271387,8 +271368,7 @@ var DotEnvSchema3 = z.object({
|
|
|
271387
271368
|
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: UrlSchema3.optional(),
|
|
271388
271369
|
SETTLEMINT_NEW_PROJECT_NAME: z.string().optional(),
|
|
271389
271370
|
SETTLEMINT_SMART_CONTRACT_ADDRESS: z.string().optional(),
|
|
271390
|
-
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z.string().optional()
|
|
271391
|
-
SETTLEMINT_DEBUG: z.boolean().optional().default(false)
|
|
271371
|
+
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z.string().optional()
|
|
271392
271372
|
});
|
|
271393
271373
|
var DotEnvSchemaPartial3 = DotEnvSchema3.partial();
|
|
271394
271374
|
var IdSchema3 = z.union([
|
|
@@ -275318,13 +275298,12 @@ function getCreateCommand({
|
|
|
275318
275298
|
return nothingSelectedError("region");
|
|
275319
275299
|
}
|
|
275320
275300
|
}
|
|
275321
|
-
const
|
|
275301
|
+
const showSpinner = (task) => spinner({
|
|
275322
275302
|
startMessage: `Creating ${type4}`,
|
|
275323
|
-
task
|
|
275324
|
-
return createFunction(settlemint, env2);
|
|
275325
|
-
},
|
|
275303
|
+
task,
|
|
275326
275304
|
stopMessage: `${capitalizeFirstLetter(type4)} created`
|
|
275327
275305
|
});
|
|
275306
|
+
const { result, waitFor, mapDefaultEnv } = await createFunction(settlemint, env2, showSpinner);
|
|
275328
275307
|
if (wait) {
|
|
275329
275308
|
await waitForCompletion({
|
|
275330
275309
|
settlemint,
|
|
@@ -275390,12 +275369,12 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275390
275369
|
...defaultArgs,
|
|
275391
275370
|
provider,
|
|
275392
275371
|
region
|
|
275393
|
-
}, async (settlemint, env2) => {
|
|
275372
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275394
275373
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275395
275374
|
if (!applicationUniqueName) {
|
|
275396
275375
|
return missingApplication();
|
|
275397
275376
|
}
|
|
275398
|
-
const result = await settlemint.blockchainNetwork.create({
|
|
275377
|
+
const result = await showSpinner(() => settlemint.blockchainNetwork.create({
|
|
275399
275378
|
name: name2,
|
|
275400
275379
|
applicationUniqueName,
|
|
275401
275380
|
nodeName,
|
|
@@ -275410,7 +275389,7 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275410
275389
|
secondsPerBlock,
|
|
275411
275390
|
size,
|
|
275412
275391
|
type: type4
|
|
275413
|
-
});
|
|
275392
|
+
}));
|
|
275414
275393
|
const blockchainNode = result.blockchainNodes.find((item) => item.name === nodeName) ?? result.blockchainNodes[0];
|
|
275415
275394
|
return {
|
|
275416
275395
|
result,
|
|
@@ -275549,8 +275528,8 @@ function workspaceCreateCommand() {
|
|
|
275549
275528
|
addressLine1,
|
|
275550
275529
|
...defaultArgs
|
|
275551
275530
|
}) => {
|
|
275552
|
-
return baseAction(defaultArgs, async (settlemint) => {
|
|
275553
|
-
const result = await settlemint.workspace.create({
|
|
275531
|
+
return baseAction(defaultArgs, async (settlemint, _env, showSpinner) => {
|
|
275532
|
+
const result = await showSpinner(() => settlemint.workspace.create({
|
|
275554
275533
|
name: name2,
|
|
275555
275534
|
taxIdValue,
|
|
275556
275535
|
taxIdType,
|
|
@@ -275562,7 +275541,7 @@ function workspaceCreateCommand() {
|
|
|
275562
275541
|
city,
|
|
275563
275542
|
addressLine2,
|
|
275564
275543
|
addressLine1
|
|
275565
|
-
});
|
|
275544
|
+
}));
|
|
275566
275545
|
return {
|
|
275567
275546
|
result,
|
|
275568
275547
|
mapDefaultEnv: () => {
|
|
@@ -275600,12 +275579,12 @@ function applicationAccessTokenCreateCommand() {
|
|
|
275600
275579
|
alias: "aat",
|
|
275601
275580
|
execute: (cmd2, baseAction) => {
|
|
275602
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 }) => {
|
|
275603
|
-
return baseAction(defaultArgs, async (settlemint, env2) => {
|
|
275582
|
+
return baseAction(defaultArgs, async (settlemint, env2, showSpinner) => {
|
|
275604
275583
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275605
275584
|
if (!applicationUniqueName) {
|
|
275606
275585
|
return missingApplication();
|
|
275607
275586
|
}
|
|
275608
|
-
const aatToken = await settlemint.applicationAccessToken.create({
|
|
275587
|
+
const aatToken = await showSpinner(() => settlemint.applicationAccessToken.create({
|
|
275609
275588
|
applicationUniqueName,
|
|
275610
275589
|
name: name2,
|
|
275611
275590
|
blockchainNetworkScope: {
|
|
@@ -275649,7 +275628,7 @@ function applicationAccessTokenCreateCommand() {
|
|
|
275649
275628
|
values: []
|
|
275650
275629
|
},
|
|
275651
275630
|
validityPeriod
|
|
275652
|
-
});
|
|
275631
|
+
}));
|
|
275653
275632
|
return {
|
|
275654
275633
|
result: {
|
|
275655
275634
|
id: "",
|
|
@@ -275693,7 +275672,7 @@ function applicationCreateCommand() {
|
|
|
275693
275672
|
return baseAction({
|
|
275694
275673
|
...defaultArgs,
|
|
275695
275674
|
acceptDefaults
|
|
275696
|
-
}, async (settlemint, env2) => {
|
|
275675
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275697
275676
|
let workspaceUniqueName = workspace;
|
|
275698
275677
|
if (!workspaceUniqueName) {
|
|
275699
275678
|
const workspaces = await settlemint.workspace.list();
|
|
@@ -275703,10 +275682,10 @@ function applicationCreateCommand() {
|
|
|
275703
275682
|
}
|
|
275704
275683
|
workspaceUniqueName = workspace2.uniqueName;
|
|
275705
275684
|
}
|
|
275706
|
-
const result = await settlemint.application.create({
|
|
275685
|
+
const result = await showSpinner(() => settlemint.application.create({
|
|
275707
275686
|
name: name2,
|
|
275708
275687
|
workspaceUniqueName
|
|
275709
|
-
});
|
|
275688
|
+
}));
|
|
275710
275689
|
return {
|
|
275711
275690
|
result,
|
|
275712
275691
|
mapDefaultEnv: () => {
|
|
@@ -275784,7 +275763,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275784
275763
|
acceptDefaults,
|
|
275785
275764
|
provider,
|
|
275786
275765
|
region
|
|
275787
|
-
}, async (settlemint, env2) => {
|
|
275766
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275788
275767
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275789
275768
|
if (!applicationUniqueName) {
|
|
275790
275769
|
return missingApplication();
|
|
@@ -275803,7 +275782,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275803
275782
|
}
|
|
275804
275783
|
networkUniqueName = network?.uniqueName;
|
|
275805
275784
|
}
|
|
275806
|
-
const result = await settlemint.blockchainNode.create({
|
|
275785
|
+
const result = await showSpinner(() => settlemint.blockchainNode.create({
|
|
275807
275786
|
applicationUniqueName,
|
|
275808
275787
|
name: name2,
|
|
275809
275788
|
blockchainNetworkUniqueName: networkUniqueName,
|
|
@@ -275813,7 +275792,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275813
275792
|
region,
|
|
275814
275793
|
size,
|
|
275815
275794
|
type: type4
|
|
275816
|
-
});
|
|
275795
|
+
}));
|
|
275817
275796
|
return {
|
|
275818
275797
|
result,
|
|
275819
275798
|
mapDefaultEnv: () => {
|
|
@@ -275862,7 +275841,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275862
275841
|
acceptDefaults,
|
|
275863
275842
|
provider,
|
|
275864
275843
|
region
|
|
275865
|
-
}, async (settlemint, env2) => {
|
|
275844
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275866
275845
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275867
275846
|
if (!applicationUniqueName) {
|
|
275868
275847
|
return missingApplication();
|
|
@@ -275882,7 +275861,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275882
275861
|
}
|
|
275883
275862
|
blockchainNodeUniqueName = node.uniqueName;
|
|
275884
275863
|
}
|
|
275885
|
-
const result = await settlemint.insights.create({
|
|
275864
|
+
const result = await showSpinner(() => settlemint.insights.create({
|
|
275886
275865
|
name: name2,
|
|
275887
275866
|
applicationUniqueName,
|
|
275888
275867
|
insightsCategory: "BLOCKCHAIN_EXPLORER",
|
|
@@ -275892,7 +275871,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275892
275871
|
type: type4,
|
|
275893
275872
|
blockchainNodeUniqueName,
|
|
275894
275873
|
loadBalancerUniqueName
|
|
275895
|
-
});
|
|
275874
|
+
}));
|
|
275896
275875
|
return {
|
|
275897
275876
|
result,
|
|
275898
275877
|
mapDefaultEnv: async () => {
|
|
@@ -275939,12 +275918,12 @@ function hasuraIntegrationCreateCommand() {
|
|
|
275939
275918
|
...defaultArgs,
|
|
275940
275919
|
provider,
|
|
275941
275920
|
region
|
|
275942
|
-
}, async (settlemint, env2) => {
|
|
275921
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275943
275922
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275944
275923
|
if (!applicationUniqueName) {
|
|
275945
275924
|
return missingApplication();
|
|
275946
275925
|
}
|
|
275947
|
-
const result = await settlemint.integrationTool.create({
|
|
275926
|
+
const result = await showSpinner(() => settlemint.integrationTool.create({
|
|
275948
275927
|
name: name2,
|
|
275949
275928
|
applicationUniqueName,
|
|
275950
275929
|
integrationType: "HASURA",
|
|
@@ -275952,7 +275931,7 @@ function hasuraIntegrationCreateCommand() {
|
|
|
275952
275931
|
region,
|
|
275953
275932
|
size,
|
|
275954
275933
|
type: type4
|
|
275955
|
-
});
|
|
275934
|
+
}));
|
|
275956
275935
|
return {
|
|
275957
275936
|
result,
|
|
275958
275937
|
mapDefaultEnv: async () => {
|
|
@@ -276000,7 +275979,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
276000
275979
|
acceptDefaults,
|
|
276001
275980
|
provider,
|
|
276002
275981
|
region
|
|
276003
|
-
}, async (settlemint, env2) => {
|
|
275982
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276004
275983
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276005
275984
|
if (!applicationUniqueName) {
|
|
276006
275985
|
return missingApplication();
|
|
@@ -276019,7 +275998,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
276019
275998
|
}
|
|
276020
275999
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276021
276000
|
}
|
|
276022
|
-
const result = await settlemint.middleware.create({
|
|
276001
|
+
const result = await showSpinner(() => settlemint.middleware.create({
|
|
276023
276002
|
name: name2,
|
|
276024
276003
|
applicationUniqueName,
|
|
276025
276004
|
interface: "HA_GRAPH",
|
|
@@ -276028,7 +276007,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
276028
276007
|
region,
|
|
276029
276008
|
size,
|
|
276030
276009
|
type: type4
|
|
276031
|
-
});
|
|
276010
|
+
}));
|
|
276032
276011
|
return {
|
|
276033
276012
|
result,
|
|
276034
276013
|
mapDefaultEnv: async () => {
|
|
@@ -276083,7 +276062,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276083
276062
|
acceptDefaults,
|
|
276084
276063
|
provider,
|
|
276085
276064
|
region
|
|
276086
|
-
}, async (settlemint, env2) => {
|
|
276065
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276087
276066
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276088
276067
|
if (!applicationUniqueName) {
|
|
276089
276068
|
return missingApplication();
|
|
@@ -276124,7 +276103,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276124
276103
|
cancel3(`Invalid pre-deployed abis: '${invalidPredeployedAbis.join(", ")}'. Possible values: '${platformConfig.preDeployedContracts.sort().join(", ")}'`);
|
|
276125
276104
|
}
|
|
276126
276105
|
}
|
|
276127
|
-
const result = await settlemint.middleware.create({
|
|
276106
|
+
const result = await showSpinner(() => settlemint.middleware.create({
|
|
276128
276107
|
name: name2,
|
|
276129
276108
|
applicationUniqueName,
|
|
276130
276109
|
interface: "SMART_CONTRACT_PORTAL",
|
|
@@ -276136,7 +276115,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276136
276115
|
region,
|
|
276137
276116
|
size,
|
|
276138
276117
|
type: type4
|
|
276139
|
-
});
|
|
276118
|
+
}));
|
|
276140
276119
|
return {
|
|
276141
276120
|
result,
|
|
276142
276121
|
mapDefaultEnv: async () => {
|
|
@@ -276180,7 +276159,7 @@ function privateKeyAccessibleCreateCommand() {
|
|
|
276180
276159
|
return baseAction({
|
|
276181
276160
|
...defaultArgs,
|
|
276182
276161
|
acceptDefaults
|
|
276183
|
-
}, async (settlemint, env2) => {
|
|
276162
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276184
276163
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276185
276164
|
if (!applicationUniqueName) {
|
|
276186
276165
|
return missingApplication();
|
|
@@ -276199,12 +276178,12 @@ function privateKeyAccessibleCreateCommand() {
|
|
|
276199
276178
|
}
|
|
276200
276179
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276201
276180
|
}
|
|
276202
|
-
const result = await settlemint.privateKey.create({
|
|
276181
|
+
const result = await showSpinner(() => settlemint.privateKey.create({
|
|
276203
276182
|
name: name2,
|
|
276204
276183
|
applicationUniqueName,
|
|
276205
276184
|
privateKeyType: "ACCESSIBLE_ECDSA_P256",
|
|
276206
276185
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276207
|
-
});
|
|
276186
|
+
}));
|
|
276208
276187
|
return {
|
|
276209
276188
|
result
|
|
276210
276189
|
};
|
|
@@ -276240,7 +276219,7 @@ function privateKeyHdCreateCommand() {
|
|
|
276240
276219
|
return baseAction({
|
|
276241
276220
|
...defaultArgs,
|
|
276242
276221
|
acceptDefaults
|
|
276243
|
-
}, async (settlemint, env2) => {
|
|
276222
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276244
276223
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276245
276224
|
if (!applicationUniqueName) {
|
|
276246
276225
|
return missingApplication();
|
|
@@ -276259,12 +276238,12 @@ function privateKeyHdCreateCommand() {
|
|
|
276259
276238
|
}
|
|
276260
276239
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276261
276240
|
}
|
|
276262
|
-
const result = await settlemint.privateKey.create({
|
|
276241
|
+
const result = await showSpinner(() => settlemint.privateKey.create({
|
|
276263
276242
|
name: name2,
|
|
276264
276243
|
applicationUniqueName,
|
|
276265
276244
|
privateKeyType: "HD_ECDSA_P256",
|
|
276266
276245
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276267
|
-
});
|
|
276246
|
+
}));
|
|
276268
276247
|
return {
|
|
276269
276248
|
result,
|
|
276270
276249
|
mapDefaultEnv: () => {
|
|
@@ -276306,7 +276285,7 @@ function privateKeyHsmCreateCommand() {
|
|
|
276306
276285
|
return baseAction({
|
|
276307
276286
|
...defaultArgs,
|
|
276308
276287
|
acceptDefaults
|
|
276309
|
-
}, async (settlemint, env2) => {
|
|
276288
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276310
276289
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276311
276290
|
if (!applicationUniqueName) {
|
|
276312
276291
|
return missingApplication();
|
|
@@ -276325,12 +276304,12 @@ function privateKeyHsmCreateCommand() {
|
|
|
276325
276304
|
}
|
|
276326
276305
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276327
276306
|
}
|
|
276328
|
-
const result = await settlemint.privateKey.create({
|
|
276307
|
+
const result = await showSpinner(() => settlemint.privateKey.create({
|
|
276329
276308
|
name: name2,
|
|
276330
276309
|
applicationUniqueName,
|
|
276331
276310
|
privateKeyType: "HSM_ECDSA_P256",
|
|
276332
276311
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276333
|
-
});
|
|
276312
|
+
}));
|
|
276334
276313
|
return {
|
|
276335
276314
|
result
|
|
276336
276315
|
};
|
|
@@ -276372,12 +276351,12 @@ function ipfsStorageCreateCommand() {
|
|
|
276372
276351
|
...defaultArgs,
|
|
276373
276352
|
provider,
|
|
276374
276353
|
region
|
|
276375
|
-
}, async (settlemint, env2) => {
|
|
276354
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276376
276355
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276377
276356
|
if (!applicationUniqueName) {
|
|
276378
276357
|
return missingApplication();
|
|
276379
276358
|
}
|
|
276380
|
-
const result = await settlemint.storage.create({
|
|
276359
|
+
const result = await showSpinner(() => settlemint.storage.create({
|
|
276381
276360
|
name: name2,
|
|
276382
276361
|
applicationUniqueName,
|
|
276383
276362
|
storageProtocol: "IPFS",
|
|
@@ -276385,7 +276364,7 @@ function ipfsStorageCreateCommand() {
|
|
|
276385
276364
|
region,
|
|
276386
276365
|
size,
|
|
276387
276366
|
type: type4
|
|
276388
|
-
});
|
|
276367
|
+
}));
|
|
276389
276368
|
return {
|
|
276390
276369
|
result,
|
|
276391
276370
|
mapDefaultEnv: () => {
|
|
@@ -276425,12 +276404,12 @@ function minioStorageCreateCommand() {
|
|
|
276425
276404
|
...defaultArgs,
|
|
276426
276405
|
provider,
|
|
276427
276406
|
region
|
|
276428
|
-
}, async (settlemint, env2) => {
|
|
276407
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276429
276408
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276430
276409
|
if (!applicationUniqueName) {
|
|
276431
276410
|
return missingApplication();
|
|
276432
276411
|
}
|
|
276433
|
-
const result = await settlemint.storage.create({
|
|
276412
|
+
const result = await showSpinner(() => settlemint.storage.create({
|
|
276434
276413
|
name: name2,
|
|
276435
276414
|
applicationUniqueName,
|
|
276436
276415
|
storageProtocol: "MINIO",
|
|
@@ -276438,7 +276417,7 @@ function minioStorageCreateCommand() {
|
|
|
276438
276417
|
region,
|
|
276439
276418
|
size,
|
|
276440
276419
|
type: type4
|
|
276441
|
-
});
|
|
276420
|
+
}));
|
|
276442
276421
|
return {
|
|
276443
276422
|
result,
|
|
276444
276423
|
mapDefaultEnv: () => {
|
|
@@ -277262,7 +277241,6 @@ function hardhatDeployRemoteCommand() {
|
|
|
277262
277241
|
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
277263
277242
|
const env2 = await loadEnv2(false, !!prod);
|
|
277264
277243
|
const instance = await instancePrompt(env2, true);
|
|
277265
|
-
note2(`Instance is ${instance}`, "debug", env2.SETTLEMINT_DEBUG);
|
|
277266
277244
|
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
277267
277245
|
env: env2,
|
|
277268
277246
|
instance,
|
|
@@ -277848,4 +277826,4 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
277848
277826
|
ascii();
|
|
277849
277827
|
sdkCliCommand();
|
|
277850
277828
|
|
|
277851
|
-
//# debugId=
|
|
277829
|
+
//# debugId=941430E79CBECF0564756E2164756E21
|