@settlemint/sdk-cli 1.0.3-pr4b4c00a8 → 1.0.3-pr68d5c388
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 +75 -98
- package/dist/cli.js.map +27 -27
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -19613,7 +19613,7 @@ var require_lib4 = __commonJS((exports, module) => {
|
|
|
19613
19613
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
19614
19614
|
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
19615
19615
|
var getPathInfo = (cmd, {
|
|
19616
|
-
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
19616
|
+
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.wJBWAemBal:/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.wJBWAemBal:/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.wJBWAemBal:/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.wJBWAemBal:/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-pr68d5c388",
|
|
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.wJBWAemBal:/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-pr68d5c388",
|
|
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-pr68d5c388",
|
|
267540
|
+
"@settlemint/sdk-utils": "1.0.3-pr68d5c388",
|
|
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.wJBWAemBal:/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([
|
|
@@ -268611,15 +268593,18 @@ async function storeCredentials(token, instance) {
|
|
|
268611
268593
|
}
|
|
268612
268594
|
await writeConfig(config4);
|
|
268613
268595
|
}
|
|
268614
|
-
async function getInstanceCredentials(instance,
|
|
268596
|
+
async function getInstanceCredentials(instance, throwOnMissingInstance = true) {
|
|
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
|
+
if (!throwOnMissingInstance) {
|
|
268601
|
+
return;
|
|
268602
|
+
}
|
|
268603
|
+
cancel2(`No configuration found for instance '${instance}'${Object.keys(config4.instances).length > 0 ? `
|
|
268604
|
+
Configured instances:
|
|
268605
|
+
${Object.keys(config4.instances).map((i) => `- '${i}'`).join(`
|
|
268606
|
+
`)}` : ""}`);
|
|
268621
268607
|
}
|
|
268622
|
-
note(`Returning ${JSON.stringify({ personalAccessToken: instanceConfig.personalAccessToken })}`, "debug", env2?.SETTLEMINT_DEBUG);
|
|
268623
268608
|
return { personalAccessToken: instanceConfig.personalAccessToken };
|
|
268624
268609
|
}
|
|
268625
268610
|
async function getInstances() {
|
|
@@ -268658,10 +268643,6 @@ var getApplicationOrPersonalAccessToken = async ({
|
|
|
268658
268643
|
const preferredToken = prefer === "application" ? applicationAccessToken : personalAccessToken;
|
|
268659
268644
|
const fallbackToken = prefer === "application" ? personalAccessToken : applicationAccessToken;
|
|
268660
268645
|
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
268646
|
if (preferredToken) {
|
|
268666
268647
|
return preferredToken;
|
|
268667
268648
|
}
|
|
@@ -271232,8 +271213,7 @@ async function writeEnvSpinner(prod, env2) {
|
|
|
271232
271213
|
SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: env2.SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT,
|
|
271233
271214
|
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: env2.SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT,
|
|
271234
271215
|
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
|
|
271216
|
+
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: env2.SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID
|
|
271237
271217
|
}, false);
|
|
271238
271218
|
await writeEnv(prod, {
|
|
271239
271219
|
SETTLEMINT_ACCESS_TOKEN: env2.SETTLEMINT_ACCESS_TOKEN,
|
|
@@ -271391,8 +271371,7 @@ var DotEnvSchema3 = z.object({
|
|
|
271391
271371
|
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: UrlSchema3.optional(),
|
|
271392
271372
|
SETTLEMINT_NEW_PROJECT_NAME: z.string().optional(),
|
|
271393
271373
|
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")
|
|
271374
|
+
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z.string().optional()
|
|
271396
271375
|
});
|
|
271397
271376
|
var DotEnvSchemaPartial3 = DotEnvSchema3.partial();
|
|
271398
271377
|
var IdSchema3 = z.union([
|
|
@@ -274994,7 +274973,7 @@ async function loginSpinner(settlemint) {
|
|
|
274994
274973
|
|
|
274995
274974
|
// src/commands/connect/pat.prompt.ts
|
|
274996
274975
|
async function personalAccessTokenPrompt(env2, instance, accept) {
|
|
274997
|
-
const existingConfig = await getInstanceCredentials(instance);
|
|
274976
|
+
const existingConfig = await getInstanceCredentials(instance, false);
|
|
274998
274977
|
const defaultPersonalAccessToken = env2.SETTLEMINT_PERSONAL_ACCESS_TOKEN || existingConfig?.personalAccessToken;
|
|
274999
274978
|
const defaultPossible = accept && defaultPersonalAccessToken;
|
|
275000
274979
|
if (defaultPossible) {
|
|
@@ -275322,13 +275301,12 @@ function getCreateCommand({
|
|
|
275322
275301
|
return nothingSelectedError("region");
|
|
275323
275302
|
}
|
|
275324
275303
|
}
|
|
275325
|
-
const
|
|
275304
|
+
const showSpinner = (task) => spinner({
|
|
275326
275305
|
startMessage: `Creating ${type4}`,
|
|
275327
|
-
task
|
|
275328
|
-
return createFunction(settlemint, env2);
|
|
275329
|
-
},
|
|
275306
|
+
task,
|
|
275330
275307
|
stopMessage: `${capitalizeFirstLetter(type4)} created`
|
|
275331
275308
|
});
|
|
275309
|
+
const { result, waitFor, mapDefaultEnv } = await createFunction(settlemint, env2, showSpinner);
|
|
275332
275310
|
if (wait) {
|
|
275333
275311
|
await waitForCompletion({
|
|
275334
275312
|
settlemint,
|
|
@@ -275394,12 +275372,12 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275394
275372
|
...defaultArgs,
|
|
275395
275373
|
provider,
|
|
275396
275374
|
region
|
|
275397
|
-
}, async (settlemint, env2) => {
|
|
275375
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275398
275376
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275399
275377
|
if (!applicationUniqueName) {
|
|
275400
275378
|
return missingApplication();
|
|
275401
275379
|
}
|
|
275402
|
-
const result = await settlemint.blockchainNetwork.create({
|
|
275380
|
+
const result = await showSpinner(() => settlemint.blockchainNetwork.create({
|
|
275403
275381
|
name: name2,
|
|
275404
275382
|
applicationUniqueName,
|
|
275405
275383
|
nodeName,
|
|
@@ -275414,7 +275392,7 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275414
275392
|
secondsPerBlock,
|
|
275415
275393
|
size,
|
|
275416
275394
|
type: type4
|
|
275417
|
-
});
|
|
275395
|
+
}));
|
|
275418
275396
|
const blockchainNode = result.blockchainNodes.find((item) => item.name === nodeName) ?? result.blockchainNodes[0];
|
|
275419
275397
|
return {
|
|
275420
275398
|
result,
|
|
@@ -275553,8 +275531,8 @@ function workspaceCreateCommand() {
|
|
|
275553
275531
|
addressLine1,
|
|
275554
275532
|
...defaultArgs
|
|
275555
275533
|
}) => {
|
|
275556
|
-
return baseAction(defaultArgs, async (settlemint) => {
|
|
275557
|
-
const result = await settlemint.workspace.create({
|
|
275534
|
+
return baseAction(defaultArgs, async (settlemint, _env, showSpinner) => {
|
|
275535
|
+
const result = await showSpinner(() => settlemint.workspace.create({
|
|
275558
275536
|
name: name2,
|
|
275559
275537
|
taxIdValue,
|
|
275560
275538
|
taxIdType,
|
|
@@ -275566,7 +275544,7 @@ function workspaceCreateCommand() {
|
|
|
275566
275544
|
city,
|
|
275567
275545
|
addressLine2,
|
|
275568
275546
|
addressLine1
|
|
275569
|
-
});
|
|
275547
|
+
}));
|
|
275570
275548
|
return {
|
|
275571
275549
|
result,
|
|
275572
275550
|
mapDefaultEnv: () => {
|
|
@@ -275604,12 +275582,12 @@ function applicationAccessTokenCreateCommand() {
|
|
|
275604
275582
|
alias: "aat",
|
|
275605
275583
|
execute: (cmd2, baseAction) => {
|
|
275606
275584
|
cmd2.option("-app, --application <application>", "The application unique name to create the application access token for (defaults to application from env)").addOption(new Option("-v, --validity-period <period>", "The validity period for the token").choices(["DAYS_7", "DAYS_30", "DAYS_60", "DAYS_90", "NONE"]).default("DAYS_7")).action(async (name2, { application, validityPeriod, ...defaultArgs }) => {
|
|
275607
|
-
return baseAction(defaultArgs, async (settlemint, env2) => {
|
|
275585
|
+
return baseAction(defaultArgs, async (settlemint, env2, showSpinner) => {
|
|
275608
275586
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275609
275587
|
if (!applicationUniqueName) {
|
|
275610
275588
|
return missingApplication();
|
|
275611
275589
|
}
|
|
275612
|
-
const aatToken = await settlemint.applicationAccessToken.create({
|
|
275590
|
+
const aatToken = await showSpinner(() => settlemint.applicationAccessToken.create({
|
|
275613
275591
|
applicationUniqueName,
|
|
275614
275592
|
name: name2,
|
|
275615
275593
|
blockchainNetworkScope: {
|
|
@@ -275653,7 +275631,7 @@ function applicationAccessTokenCreateCommand() {
|
|
|
275653
275631
|
values: []
|
|
275654
275632
|
},
|
|
275655
275633
|
validityPeriod
|
|
275656
|
-
});
|
|
275634
|
+
}));
|
|
275657
275635
|
return {
|
|
275658
275636
|
result: {
|
|
275659
275637
|
id: "",
|
|
@@ -275697,7 +275675,7 @@ function applicationCreateCommand() {
|
|
|
275697
275675
|
return baseAction({
|
|
275698
275676
|
...defaultArgs,
|
|
275699
275677
|
acceptDefaults
|
|
275700
|
-
}, async (settlemint, env2) => {
|
|
275678
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275701
275679
|
let workspaceUniqueName = workspace;
|
|
275702
275680
|
if (!workspaceUniqueName) {
|
|
275703
275681
|
const workspaces = await settlemint.workspace.list();
|
|
@@ -275707,10 +275685,10 @@ function applicationCreateCommand() {
|
|
|
275707
275685
|
}
|
|
275708
275686
|
workspaceUniqueName = workspace2.uniqueName;
|
|
275709
275687
|
}
|
|
275710
|
-
const result = await settlemint.application.create({
|
|
275688
|
+
const result = await showSpinner(() => settlemint.application.create({
|
|
275711
275689
|
name: name2,
|
|
275712
275690
|
workspaceUniqueName
|
|
275713
|
-
});
|
|
275691
|
+
}));
|
|
275714
275692
|
return {
|
|
275715
275693
|
result,
|
|
275716
275694
|
mapDefaultEnv: () => {
|
|
@@ -275788,7 +275766,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275788
275766
|
acceptDefaults,
|
|
275789
275767
|
provider,
|
|
275790
275768
|
region
|
|
275791
|
-
}, async (settlemint, env2) => {
|
|
275769
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275792
275770
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275793
275771
|
if (!applicationUniqueName) {
|
|
275794
275772
|
return missingApplication();
|
|
@@ -275807,7 +275785,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275807
275785
|
}
|
|
275808
275786
|
networkUniqueName = network?.uniqueName;
|
|
275809
275787
|
}
|
|
275810
|
-
const result = await settlemint.blockchainNode.create({
|
|
275788
|
+
const result = await showSpinner(() => settlemint.blockchainNode.create({
|
|
275811
275789
|
applicationUniqueName,
|
|
275812
275790
|
name: name2,
|
|
275813
275791
|
blockchainNetworkUniqueName: networkUniqueName,
|
|
@@ -275817,7 +275795,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275817
275795
|
region,
|
|
275818
275796
|
size,
|
|
275819
275797
|
type: type4
|
|
275820
|
-
});
|
|
275798
|
+
}));
|
|
275821
275799
|
return {
|
|
275822
275800
|
result,
|
|
275823
275801
|
mapDefaultEnv: () => {
|
|
@@ -275866,7 +275844,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275866
275844
|
acceptDefaults,
|
|
275867
275845
|
provider,
|
|
275868
275846
|
region
|
|
275869
|
-
}, async (settlemint, env2) => {
|
|
275847
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275870
275848
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275871
275849
|
if (!applicationUniqueName) {
|
|
275872
275850
|
return missingApplication();
|
|
@@ -275886,7 +275864,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275886
275864
|
}
|
|
275887
275865
|
blockchainNodeUniqueName = node.uniqueName;
|
|
275888
275866
|
}
|
|
275889
|
-
const result = await settlemint.insights.create({
|
|
275867
|
+
const result = await showSpinner(() => settlemint.insights.create({
|
|
275890
275868
|
name: name2,
|
|
275891
275869
|
applicationUniqueName,
|
|
275892
275870
|
insightsCategory: "BLOCKCHAIN_EXPLORER",
|
|
@@ -275896,7 +275874,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275896
275874
|
type: type4,
|
|
275897
275875
|
blockchainNodeUniqueName,
|
|
275898
275876
|
loadBalancerUniqueName
|
|
275899
|
-
});
|
|
275877
|
+
}));
|
|
275900
275878
|
return {
|
|
275901
275879
|
result,
|
|
275902
275880
|
mapDefaultEnv: async () => {
|
|
@@ -275943,12 +275921,12 @@ function hasuraIntegrationCreateCommand() {
|
|
|
275943
275921
|
...defaultArgs,
|
|
275944
275922
|
provider,
|
|
275945
275923
|
region
|
|
275946
|
-
}, async (settlemint, env2) => {
|
|
275924
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275947
275925
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275948
275926
|
if (!applicationUniqueName) {
|
|
275949
275927
|
return missingApplication();
|
|
275950
275928
|
}
|
|
275951
|
-
const result = await settlemint.integrationTool.create({
|
|
275929
|
+
const result = await showSpinner(() => settlemint.integrationTool.create({
|
|
275952
275930
|
name: name2,
|
|
275953
275931
|
applicationUniqueName,
|
|
275954
275932
|
integrationType: "HASURA",
|
|
@@ -275956,7 +275934,7 @@ function hasuraIntegrationCreateCommand() {
|
|
|
275956
275934
|
region,
|
|
275957
275935
|
size,
|
|
275958
275936
|
type: type4
|
|
275959
|
-
});
|
|
275937
|
+
}));
|
|
275960
275938
|
return {
|
|
275961
275939
|
result,
|
|
275962
275940
|
mapDefaultEnv: async () => {
|
|
@@ -276004,7 +275982,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
276004
275982
|
acceptDefaults,
|
|
276005
275983
|
provider,
|
|
276006
275984
|
region
|
|
276007
|
-
}, async (settlemint, env2) => {
|
|
275985
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276008
275986
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276009
275987
|
if (!applicationUniqueName) {
|
|
276010
275988
|
return missingApplication();
|
|
@@ -276023,7 +276001,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
276023
276001
|
}
|
|
276024
276002
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276025
276003
|
}
|
|
276026
|
-
const result = await settlemint.middleware.create({
|
|
276004
|
+
const result = await showSpinner(() => settlemint.middleware.create({
|
|
276027
276005
|
name: name2,
|
|
276028
276006
|
applicationUniqueName,
|
|
276029
276007
|
interface: "HA_GRAPH",
|
|
@@ -276032,7 +276010,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
276032
276010
|
region,
|
|
276033
276011
|
size,
|
|
276034
276012
|
type: type4
|
|
276035
|
-
});
|
|
276013
|
+
}));
|
|
276036
276014
|
return {
|
|
276037
276015
|
result,
|
|
276038
276016
|
mapDefaultEnv: async () => {
|
|
@@ -276087,7 +276065,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276087
276065
|
acceptDefaults,
|
|
276088
276066
|
provider,
|
|
276089
276067
|
region
|
|
276090
|
-
}, async (settlemint, env2) => {
|
|
276068
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276091
276069
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276092
276070
|
if (!applicationUniqueName) {
|
|
276093
276071
|
return missingApplication();
|
|
@@ -276128,7 +276106,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276128
276106
|
cancel3(`Invalid pre-deployed abis: '${invalidPredeployedAbis.join(", ")}'. Possible values: '${platformConfig.preDeployedContracts.sort().join(", ")}'`);
|
|
276129
276107
|
}
|
|
276130
276108
|
}
|
|
276131
|
-
const result = await settlemint.middleware.create({
|
|
276109
|
+
const result = await showSpinner(() => settlemint.middleware.create({
|
|
276132
276110
|
name: name2,
|
|
276133
276111
|
applicationUniqueName,
|
|
276134
276112
|
interface: "SMART_CONTRACT_PORTAL",
|
|
@@ -276140,7 +276118,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276140
276118
|
region,
|
|
276141
276119
|
size,
|
|
276142
276120
|
type: type4
|
|
276143
|
-
});
|
|
276121
|
+
}));
|
|
276144
276122
|
return {
|
|
276145
276123
|
result,
|
|
276146
276124
|
mapDefaultEnv: async () => {
|
|
@@ -276184,7 +276162,7 @@ function privateKeyAccessibleCreateCommand() {
|
|
|
276184
276162
|
return baseAction({
|
|
276185
276163
|
...defaultArgs,
|
|
276186
276164
|
acceptDefaults
|
|
276187
|
-
}, async (settlemint, env2) => {
|
|
276165
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276188
276166
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276189
276167
|
if (!applicationUniqueName) {
|
|
276190
276168
|
return missingApplication();
|
|
@@ -276203,12 +276181,12 @@ function privateKeyAccessibleCreateCommand() {
|
|
|
276203
276181
|
}
|
|
276204
276182
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276205
276183
|
}
|
|
276206
|
-
const result = await settlemint.privateKey.create({
|
|
276184
|
+
const result = await showSpinner(() => settlemint.privateKey.create({
|
|
276207
276185
|
name: name2,
|
|
276208
276186
|
applicationUniqueName,
|
|
276209
276187
|
privateKeyType: "ACCESSIBLE_ECDSA_P256",
|
|
276210
276188
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276211
|
-
});
|
|
276189
|
+
}));
|
|
276212
276190
|
return {
|
|
276213
276191
|
result
|
|
276214
276192
|
};
|
|
@@ -276244,7 +276222,7 @@ function privateKeyHdCreateCommand() {
|
|
|
276244
276222
|
return baseAction({
|
|
276245
276223
|
...defaultArgs,
|
|
276246
276224
|
acceptDefaults
|
|
276247
|
-
}, async (settlemint, env2) => {
|
|
276225
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276248
276226
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276249
276227
|
if (!applicationUniqueName) {
|
|
276250
276228
|
return missingApplication();
|
|
@@ -276263,12 +276241,12 @@ function privateKeyHdCreateCommand() {
|
|
|
276263
276241
|
}
|
|
276264
276242
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276265
276243
|
}
|
|
276266
|
-
const result = await settlemint.privateKey.create({
|
|
276244
|
+
const result = await showSpinner(() => settlemint.privateKey.create({
|
|
276267
276245
|
name: name2,
|
|
276268
276246
|
applicationUniqueName,
|
|
276269
276247
|
privateKeyType: "HD_ECDSA_P256",
|
|
276270
276248
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276271
|
-
});
|
|
276249
|
+
}));
|
|
276272
276250
|
return {
|
|
276273
276251
|
result,
|
|
276274
276252
|
mapDefaultEnv: () => {
|
|
@@ -276310,7 +276288,7 @@ function privateKeyHsmCreateCommand() {
|
|
|
276310
276288
|
return baseAction({
|
|
276311
276289
|
...defaultArgs,
|
|
276312
276290
|
acceptDefaults
|
|
276313
|
-
}, async (settlemint, env2) => {
|
|
276291
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276314
276292
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276315
276293
|
if (!applicationUniqueName) {
|
|
276316
276294
|
return missingApplication();
|
|
@@ -276329,12 +276307,12 @@ function privateKeyHsmCreateCommand() {
|
|
|
276329
276307
|
}
|
|
276330
276308
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276331
276309
|
}
|
|
276332
|
-
const result = await settlemint.privateKey.create({
|
|
276310
|
+
const result = await showSpinner(() => settlemint.privateKey.create({
|
|
276333
276311
|
name: name2,
|
|
276334
276312
|
applicationUniqueName,
|
|
276335
276313
|
privateKeyType: "HSM_ECDSA_P256",
|
|
276336
276314
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276337
|
-
});
|
|
276315
|
+
}));
|
|
276338
276316
|
return {
|
|
276339
276317
|
result
|
|
276340
276318
|
};
|
|
@@ -276376,12 +276354,12 @@ function ipfsStorageCreateCommand() {
|
|
|
276376
276354
|
...defaultArgs,
|
|
276377
276355
|
provider,
|
|
276378
276356
|
region
|
|
276379
|
-
}, async (settlemint, env2) => {
|
|
276357
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276380
276358
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276381
276359
|
if (!applicationUniqueName) {
|
|
276382
276360
|
return missingApplication();
|
|
276383
276361
|
}
|
|
276384
|
-
const result = await settlemint.storage.create({
|
|
276362
|
+
const result = await showSpinner(() => settlemint.storage.create({
|
|
276385
276363
|
name: name2,
|
|
276386
276364
|
applicationUniqueName,
|
|
276387
276365
|
storageProtocol: "IPFS",
|
|
@@ -276389,7 +276367,7 @@ function ipfsStorageCreateCommand() {
|
|
|
276389
276367
|
region,
|
|
276390
276368
|
size,
|
|
276391
276369
|
type: type4
|
|
276392
|
-
});
|
|
276370
|
+
}));
|
|
276393
276371
|
return {
|
|
276394
276372
|
result,
|
|
276395
276373
|
mapDefaultEnv: () => {
|
|
@@ -276429,12 +276407,12 @@ function minioStorageCreateCommand() {
|
|
|
276429
276407
|
...defaultArgs,
|
|
276430
276408
|
provider,
|
|
276431
276409
|
region
|
|
276432
|
-
}, async (settlemint, env2) => {
|
|
276410
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276433
276411
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276434
276412
|
if (!applicationUniqueName) {
|
|
276435
276413
|
return missingApplication();
|
|
276436
276414
|
}
|
|
276437
|
-
const result = await settlemint.storage.create({
|
|
276415
|
+
const result = await showSpinner(() => settlemint.storage.create({
|
|
276438
276416
|
name: name2,
|
|
276439
276417
|
applicationUniqueName,
|
|
276440
276418
|
storageProtocol: "MINIO",
|
|
@@ -276442,7 +276420,7 @@ function minioStorageCreateCommand() {
|
|
|
276442
276420
|
region,
|
|
276443
276421
|
size,
|
|
276444
276422
|
type: type4
|
|
276445
|
-
});
|
|
276423
|
+
}));
|
|
276446
276424
|
return {
|
|
276447
276425
|
result,
|
|
276448
276426
|
mapDefaultEnv: () => {
|
|
@@ -277266,7 +277244,6 @@ function hardhatDeployRemoteCommand() {
|
|
|
277266
277244
|
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
277267
277245
|
const env2 = await loadEnv2(false, !!prod);
|
|
277268
277246
|
const instance = await instancePrompt(env2, true);
|
|
277269
|
-
note2(`Instance is ${instance}`, "debug", env2.SETTLEMINT_DEBUG);
|
|
277270
277247
|
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
277271
277248
|
env: env2,
|
|
277272
277249
|
instance,
|
|
@@ -277852,4 +277829,4 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
277852
277829
|
ascii();
|
|
277853
277830
|
sdkCliCommand();
|
|
277854
277831
|
|
|
277855
|
-
//# debugId=
|
|
277832
|
+
//# debugId=6AE91838120C3DFB64756E2164756E21
|