@settlemint/sdk-cli 1.0.3-pr4b4c00a8 → 1.0.3-pr5bbddc18
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 +72 -101
- 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.xGHqQicM0u:/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.xGHqQicM0u:/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.xGHqQicM0u:/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.xGHqQicM0u:/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-pr5bbddc18",
|
|
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.xGHqQicM0u:/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,20 +267448,12 @@ 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") => {
|
|
267452
|
+
console.log("");
|
|
267453
267453
|
const maskedMessage = maskTokens2(message);
|
|
267454
|
-
if (level === "info") {
|
|
267455
|
-
console.log("");
|
|
267456
|
-
console.log(maskedMessage);
|
|
267457
|
-
return;
|
|
267458
|
-
}
|
|
267459
267454
|
if (level === "warn") {
|
|
267460
|
-
console.log("");
|
|
267461
267455
|
console.warn(yellowBright(maskedMessage));
|
|
267462
|
-
|
|
267463
|
-
}
|
|
267464
|
-
if (level === "debug" && debug) {
|
|
267465
|
-
console.log("");
|
|
267456
|
+
} else {
|
|
267466
267457
|
console.log(maskedMessage);
|
|
267467
267458
|
}
|
|
267468
267459
|
};
|
|
@@ -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-pr5bbddc18",
|
|
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-pr5bbddc18",
|
|
267540
|
+
"@settlemint/sdk-utils": "1.0.3-pr5bbddc18",
|
|
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.xGHqQicM0u:/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,20 +268347,12 @@ 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") => {
|
|
268351
|
+
console.log("");
|
|
268360
268352
|
const maskedMessage = maskTokens3(message);
|
|
268361
|
-
if (level === "info") {
|
|
268362
|
-
console.log("");
|
|
268363
|
-
console.log(maskedMessage);
|
|
268364
|
-
return;
|
|
268365
|
-
}
|
|
268366
268353
|
if (level === "warn") {
|
|
268367
|
-
console.log("");
|
|
268368
268354
|
console.warn(yellowBright(maskedMessage));
|
|
268369
|
-
|
|
268370
|
-
}
|
|
268371
|
-
if (level === "debug" && debug) {
|
|
268372
|
-
console.log("");
|
|
268355
|
+
} else {
|
|
268373
268356
|
console.log(maskedMessage);
|
|
268374
268357
|
}
|
|
268375
268358
|
};
|
|
@@ -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,12 @@ async function storeCredentials(token, instance) {
|
|
|
268611
268593
|
}
|
|
268612
268594
|
await writeConfig(config4);
|
|
268613
268595
|
}
|
|
268614
|
-
async function getInstanceCredentials(instance
|
|
268596
|
+
async function getInstanceCredentials(instance) {
|
|
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
|
return;
|
|
268621
268601
|
}
|
|
268622
|
-
note(`Returning ${JSON.stringify({ personalAccessToken: instanceConfig.personalAccessToken })}`, "debug", env2?.SETTLEMINT_DEBUG);
|
|
268623
268602
|
return { personalAccessToken: instanceConfig.personalAccessToken };
|
|
268624
268603
|
}
|
|
268625
268604
|
async function getInstances() {
|
|
@@ -268658,10 +268637,6 @@ var getApplicationOrPersonalAccessToken = async ({
|
|
|
268658
268637
|
const preferredToken = prefer === "application" ? applicationAccessToken : personalAccessToken;
|
|
268659
268638
|
const fallbackToken = prefer === "application" ? personalAccessToken : applicationAccessToken;
|
|
268660
268639
|
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
268640
|
if (preferredToken) {
|
|
268666
268641
|
return preferredToken;
|
|
268667
268642
|
}
|
|
@@ -271232,8 +271207,7 @@ async function writeEnvSpinner(prod, env2) {
|
|
|
271232
271207
|
SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: env2.SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT,
|
|
271233
271208
|
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: env2.SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT,
|
|
271234
271209
|
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
|
|
271210
|
+
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: env2.SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID
|
|
271237
271211
|
}, false);
|
|
271238
271212
|
await writeEnv(prod, {
|
|
271239
271213
|
SETTLEMINT_ACCESS_TOKEN: env2.SETTLEMINT_ACCESS_TOKEN,
|
|
@@ -271391,8 +271365,7 @@ var DotEnvSchema3 = z.object({
|
|
|
271391
271365
|
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: UrlSchema3.optional(),
|
|
271392
271366
|
SETTLEMINT_NEW_PROJECT_NAME: z.string().optional(),
|
|
271393
271367
|
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")
|
|
271368
|
+
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z.string().optional()
|
|
271396
271369
|
});
|
|
271397
271370
|
var DotEnvSchemaPartial3 = DotEnvSchema3.partial();
|
|
271398
271371
|
var IdSchema3 = z.union([
|
|
@@ -273825,12 +273798,12 @@ async function instancePrompt(env2, accept, freeTextInput = false, isCi = is_in_
|
|
|
273825
273798
|
const defaultInstance = env2.SETTLEMINT_INSTANCE;
|
|
273826
273799
|
const defaultPossible = autoAccept && defaultInstance;
|
|
273827
273800
|
if (defaultPossible) {
|
|
273828
|
-
return
|
|
273801
|
+
return defaultInstance;
|
|
273829
273802
|
}
|
|
273830
273803
|
const defaultLoginInstance = await getDefaultInstance();
|
|
273831
273804
|
const defaultPromptInstance = defaultInstance ?? defaultLoginInstance ?? "https://console.settlemint.com";
|
|
273832
273805
|
if (isCi) {
|
|
273833
|
-
return
|
|
273806
|
+
return defaultPromptInstance;
|
|
273834
273807
|
}
|
|
273835
273808
|
if (freeTextInput) {
|
|
273836
273809
|
const instance = await esm_default4({
|
|
@@ -273853,17 +273826,17 @@ async function instancePrompt(env2, accept, freeTextInput = false, isCi = is_in_
|
|
|
273853
273826
|
cancel3("No instances found. Please run `settlemint login` to configure an instance.");
|
|
273854
273827
|
}
|
|
273855
273828
|
if (knownInstances.length === 1) {
|
|
273856
|
-
return
|
|
273829
|
+
return knownInstances[0];
|
|
273857
273830
|
}
|
|
273858
273831
|
return esm_default2({
|
|
273859
273832
|
message: "What SettleMint instance do you want to connect to?",
|
|
273860
273833
|
choices: [
|
|
273861
273834
|
...knownInstances.map((instance) => ({
|
|
273862
273835
|
name: instance,
|
|
273863
|
-
value:
|
|
273836
|
+
value: instance
|
|
273864
273837
|
}))
|
|
273865
273838
|
],
|
|
273866
|
-
default:
|
|
273839
|
+
default: defaultPromptInstance
|
|
273867
273840
|
});
|
|
273868
273841
|
}
|
|
273869
273842
|
|
|
@@ -275322,13 +275295,12 @@ function getCreateCommand({
|
|
|
275322
275295
|
return nothingSelectedError("region");
|
|
275323
275296
|
}
|
|
275324
275297
|
}
|
|
275325
|
-
const
|
|
275298
|
+
const showSpinner = (task) => spinner({
|
|
275326
275299
|
startMessage: `Creating ${type4}`,
|
|
275327
|
-
task
|
|
275328
|
-
return createFunction(settlemint, env2);
|
|
275329
|
-
},
|
|
275300
|
+
task,
|
|
275330
275301
|
stopMessage: `${capitalizeFirstLetter(type4)} created`
|
|
275331
275302
|
});
|
|
275303
|
+
const { result, waitFor, mapDefaultEnv } = await createFunction(settlemint, env2, showSpinner);
|
|
275332
275304
|
if (wait) {
|
|
275333
275305
|
await waitForCompletion({
|
|
275334
275306
|
settlemint,
|
|
@@ -275394,12 +275366,12 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275394
275366
|
...defaultArgs,
|
|
275395
275367
|
provider,
|
|
275396
275368
|
region
|
|
275397
|
-
}, async (settlemint, env2) => {
|
|
275369
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275398
275370
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275399
275371
|
if (!applicationUniqueName) {
|
|
275400
275372
|
return missingApplication();
|
|
275401
275373
|
}
|
|
275402
|
-
const result = await settlemint.blockchainNetwork.create({
|
|
275374
|
+
const result = await showSpinner(() => settlemint.blockchainNetwork.create({
|
|
275403
275375
|
name: name2,
|
|
275404
275376
|
applicationUniqueName,
|
|
275405
275377
|
nodeName,
|
|
@@ -275414,7 +275386,7 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275414
275386
|
secondsPerBlock,
|
|
275415
275387
|
size,
|
|
275416
275388
|
type: type4
|
|
275417
|
-
});
|
|
275389
|
+
}));
|
|
275418
275390
|
const blockchainNode = result.blockchainNodes.find((item) => item.name === nodeName) ?? result.blockchainNodes[0];
|
|
275419
275391
|
return {
|
|
275420
275392
|
result,
|
|
@@ -275553,8 +275525,8 @@ function workspaceCreateCommand() {
|
|
|
275553
275525
|
addressLine1,
|
|
275554
275526
|
...defaultArgs
|
|
275555
275527
|
}) => {
|
|
275556
|
-
return baseAction(defaultArgs, async (settlemint) => {
|
|
275557
|
-
const result = await settlemint.workspace.create({
|
|
275528
|
+
return baseAction(defaultArgs, async (settlemint, _env, showSpinner) => {
|
|
275529
|
+
const result = await showSpinner(() => settlemint.workspace.create({
|
|
275558
275530
|
name: name2,
|
|
275559
275531
|
taxIdValue,
|
|
275560
275532
|
taxIdType,
|
|
@@ -275566,7 +275538,7 @@ function workspaceCreateCommand() {
|
|
|
275566
275538
|
city,
|
|
275567
275539
|
addressLine2,
|
|
275568
275540
|
addressLine1
|
|
275569
|
-
});
|
|
275541
|
+
}));
|
|
275570
275542
|
return {
|
|
275571
275543
|
result,
|
|
275572
275544
|
mapDefaultEnv: () => {
|
|
@@ -275604,12 +275576,12 @@ function applicationAccessTokenCreateCommand() {
|
|
|
275604
275576
|
alias: "aat",
|
|
275605
275577
|
execute: (cmd2, baseAction) => {
|
|
275606
275578
|
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) => {
|
|
275579
|
+
return baseAction(defaultArgs, async (settlemint, env2, showSpinner) => {
|
|
275608
275580
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275609
275581
|
if (!applicationUniqueName) {
|
|
275610
275582
|
return missingApplication();
|
|
275611
275583
|
}
|
|
275612
|
-
const aatToken = await settlemint.applicationAccessToken.create({
|
|
275584
|
+
const aatToken = await showSpinner(() => settlemint.applicationAccessToken.create({
|
|
275613
275585
|
applicationUniqueName,
|
|
275614
275586
|
name: name2,
|
|
275615
275587
|
blockchainNetworkScope: {
|
|
@@ -275653,7 +275625,7 @@ function applicationAccessTokenCreateCommand() {
|
|
|
275653
275625
|
values: []
|
|
275654
275626
|
},
|
|
275655
275627
|
validityPeriod
|
|
275656
|
-
});
|
|
275628
|
+
}));
|
|
275657
275629
|
return {
|
|
275658
275630
|
result: {
|
|
275659
275631
|
id: "",
|
|
@@ -275697,7 +275669,7 @@ function applicationCreateCommand() {
|
|
|
275697
275669
|
return baseAction({
|
|
275698
275670
|
...defaultArgs,
|
|
275699
275671
|
acceptDefaults
|
|
275700
|
-
}, async (settlemint, env2) => {
|
|
275672
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275701
275673
|
let workspaceUniqueName = workspace;
|
|
275702
275674
|
if (!workspaceUniqueName) {
|
|
275703
275675
|
const workspaces = await settlemint.workspace.list();
|
|
@@ -275707,10 +275679,10 @@ function applicationCreateCommand() {
|
|
|
275707
275679
|
}
|
|
275708
275680
|
workspaceUniqueName = workspace2.uniqueName;
|
|
275709
275681
|
}
|
|
275710
|
-
const result = await settlemint.application.create({
|
|
275682
|
+
const result = await showSpinner(() => settlemint.application.create({
|
|
275711
275683
|
name: name2,
|
|
275712
275684
|
workspaceUniqueName
|
|
275713
|
-
});
|
|
275685
|
+
}));
|
|
275714
275686
|
return {
|
|
275715
275687
|
result,
|
|
275716
275688
|
mapDefaultEnv: () => {
|
|
@@ -275788,7 +275760,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275788
275760
|
acceptDefaults,
|
|
275789
275761
|
provider,
|
|
275790
275762
|
region
|
|
275791
|
-
}, async (settlemint, env2) => {
|
|
275763
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275792
275764
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275793
275765
|
if (!applicationUniqueName) {
|
|
275794
275766
|
return missingApplication();
|
|
@@ -275807,7 +275779,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275807
275779
|
}
|
|
275808
275780
|
networkUniqueName = network?.uniqueName;
|
|
275809
275781
|
}
|
|
275810
|
-
const result = await settlemint.blockchainNode.create({
|
|
275782
|
+
const result = await showSpinner(() => settlemint.blockchainNode.create({
|
|
275811
275783
|
applicationUniqueName,
|
|
275812
275784
|
name: name2,
|
|
275813
275785
|
blockchainNetworkUniqueName: networkUniqueName,
|
|
@@ -275817,7 +275789,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275817
275789
|
region,
|
|
275818
275790
|
size,
|
|
275819
275791
|
type: type4
|
|
275820
|
-
});
|
|
275792
|
+
}));
|
|
275821
275793
|
return {
|
|
275822
275794
|
result,
|
|
275823
275795
|
mapDefaultEnv: () => {
|
|
@@ -275866,7 +275838,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275866
275838
|
acceptDefaults,
|
|
275867
275839
|
provider,
|
|
275868
275840
|
region
|
|
275869
|
-
}, async (settlemint, env2) => {
|
|
275841
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275870
275842
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275871
275843
|
if (!applicationUniqueName) {
|
|
275872
275844
|
return missingApplication();
|
|
@@ -275886,7 +275858,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275886
275858
|
}
|
|
275887
275859
|
blockchainNodeUniqueName = node.uniqueName;
|
|
275888
275860
|
}
|
|
275889
|
-
const result = await settlemint.insights.create({
|
|
275861
|
+
const result = await showSpinner(() => settlemint.insights.create({
|
|
275890
275862
|
name: name2,
|
|
275891
275863
|
applicationUniqueName,
|
|
275892
275864
|
insightsCategory: "BLOCKCHAIN_EXPLORER",
|
|
@@ -275896,7 +275868,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275896
275868
|
type: type4,
|
|
275897
275869
|
blockchainNodeUniqueName,
|
|
275898
275870
|
loadBalancerUniqueName
|
|
275899
|
-
});
|
|
275871
|
+
}));
|
|
275900
275872
|
return {
|
|
275901
275873
|
result,
|
|
275902
275874
|
mapDefaultEnv: async () => {
|
|
@@ -275943,12 +275915,12 @@ function hasuraIntegrationCreateCommand() {
|
|
|
275943
275915
|
...defaultArgs,
|
|
275944
275916
|
provider,
|
|
275945
275917
|
region
|
|
275946
|
-
}, async (settlemint, env2) => {
|
|
275918
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275947
275919
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275948
275920
|
if (!applicationUniqueName) {
|
|
275949
275921
|
return missingApplication();
|
|
275950
275922
|
}
|
|
275951
|
-
const result = await settlemint.integrationTool.create({
|
|
275923
|
+
const result = await showSpinner(() => settlemint.integrationTool.create({
|
|
275952
275924
|
name: name2,
|
|
275953
275925
|
applicationUniqueName,
|
|
275954
275926
|
integrationType: "HASURA",
|
|
@@ -275956,7 +275928,7 @@ function hasuraIntegrationCreateCommand() {
|
|
|
275956
275928
|
region,
|
|
275957
275929
|
size,
|
|
275958
275930
|
type: type4
|
|
275959
|
-
});
|
|
275931
|
+
}));
|
|
275960
275932
|
return {
|
|
275961
275933
|
result,
|
|
275962
275934
|
mapDefaultEnv: async () => {
|
|
@@ -276004,7 +275976,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
276004
275976
|
acceptDefaults,
|
|
276005
275977
|
provider,
|
|
276006
275978
|
region
|
|
276007
|
-
}, async (settlemint, env2) => {
|
|
275979
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276008
275980
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276009
275981
|
if (!applicationUniqueName) {
|
|
276010
275982
|
return missingApplication();
|
|
@@ -276023,7 +275995,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
276023
275995
|
}
|
|
276024
275996
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276025
275997
|
}
|
|
276026
|
-
const result = await settlemint.middleware.create({
|
|
275998
|
+
const result = await showSpinner(() => settlemint.middleware.create({
|
|
276027
275999
|
name: name2,
|
|
276028
276000
|
applicationUniqueName,
|
|
276029
276001
|
interface: "HA_GRAPH",
|
|
@@ -276032,7 +276004,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
276032
276004
|
region,
|
|
276033
276005
|
size,
|
|
276034
276006
|
type: type4
|
|
276035
|
-
});
|
|
276007
|
+
}));
|
|
276036
276008
|
return {
|
|
276037
276009
|
result,
|
|
276038
276010
|
mapDefaultEnv: async () => {
|
|
@@ -276087,7 +276059,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276087
276059
|
acceptDefaults,
|
|
276088
276060
|
provider,
|
|
276089
276061
|
region
|
|
276090
|
-
}, async (settlemint, env2) => {
|
|
276062
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276091
276063
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276092
276064
|
if (!applicationUniqueName) {
|
|
276093
276065
|
return missingApplication();
|
|
@@ -276128,7 +276100,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276128
276100
|
cancel3(`Invalid pre-deployed abis: '${invalidPredeployedAbis.join(", ")}'. Possible values: '${platformConfig.preDeployedContracts.sort().join(", ")}'`);
|
|
276129
276101
|
}
|
|
276130
276102
|
}
|
|
276131
|
-
const result = await settlemint.middleware.create({
|
|
276103
|
+
const result = await showSpinner(() => settlemint.middleware.create({
|
|
276132
276104
|
name: name2,
|
|
276133
276105
|
applicationUniqueName,
|
|
276134
276106
|
interface: "SMART_CONTRACT_PORTAL",
|
|
@@ -276140,7 +276112,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276140
276112
|
region,
|
|
276141
276113
|
size,
|
|
276142
276114
|
type: type4
|
|
276143
|
-
});
|
|
276115
|
+
}));
|
|
276144
276116
|
return {
|
|
276145
276117
|
result,
|
|
276146
276118
|
mapDefaultEnv: async () => {
|
|
@@ -276184,7 +276156,7 @@ function privateKeyAccessibleCreateCommand() {
|
|
|
276184
276156
|
return baseAction({
|
|
276185
276157
|
...defaultArgs,
|
|
276186
276158
|
acceptDefaults
|
|
276187
|
-
}, async (settlemint, env2) => {
|
|
276159
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276188
276160
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276189
276161
|
if (!applicationUniqueName) {
|
|
276190
276162
|
return missingApplication();
|
|
@@ -276203,12 +276175,12 @@ function privateKeyAccessibleCreateCommand() {
|
|
|
276203
276175
|
}
|
|
276204
276176
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276205
276177
|
}
|
|
276206
|
-
const result = await settlemint.privateKey.create({
|
|
276178
|
+
const result = await showSpinner(() => settlemint.privateKey.create({
|
|
276207
276179
|
name: name2,
|
|
276208
276180
|
applicationUniqueName,
|
|
276209
276181
|
privateKeyType: "ACCESSIBLE_ECDSA_P256",
|
|
276210
276182
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276211
|
-
});
|
|
276183
|
+
}));
|
|
276212
276184
|
return {
|
|
276213
276185
|
result
|
|
276214
276186
|
};
|
|
@@ -276244,7 +276216,7 @@ function privateKeyHdCreateCommand() {
|
|
|
276244
276216
|
return baseAction({
|
|
276245
276217
|
...defaultArgs,
|
|
276246
276218
|
acceptDefaults
|
|
276247
|
-
}, async (settlemint, env2) => {
|
|
276219
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276248
276220
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276249
276221
|
if (!applicationUniqueName) {
|
|
276250
276222
|
return missingApplication();
|
|
@@ -276263,12 +276235,12 @@ function privateKeyHdCreateCommand() {
|
|
|
276263
276235
|
}
|
|
276264
276236
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276265
276237
|
}
|
|
276266
|
-
const result = await settlemint.privateKey.create({
|
|
276238
|
+
const result = await showSpinner(() => settlemint.privateKey.create({
|
|
276267
276239
|
name: name2,
|
|
276268
276240
|
applicationUniqueName,
|
|
276269
276241
|
privateKeyType: "HD_ECDSA_P256",
|
|
276270
276242
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276271
|
-
});
|
|
276243
|
+
}));
|
|
276272
276244
|
return {
|
|
276273
276245
|
result,
|
|
276274
276246
|
mapDefaultEnv: () => {
|
|
@@ -276310,7 +276282,7 @@ function privateKeyHsmCreateCommand() {
|
|
|
276310
276282
|
return baseAction({
|
|
276311
276283
|
...defaultArgs,
|
|
276312
276284
|
acceptDefaults
|
|
276313
|
-
}, async (settlemint, env2) => {
|
|
276285
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276314
276286
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276315
276287
|
if (!applicationUniqueName) {
|
|
276316
276288
|
return missingApplication();
|
|
@@ -276329,12 +276301,12 @@ function privateKeyHsmCreateCommand() {
|
|
|
276329
276301
|
}
|
|
276330
276302
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276331
276303
|
}
|
|
276332
|
-
const result = await settlemint.privateKey.create({
|
|
276304
|
+
const result = await showSpinner(() => settlemint.privateKey.create({
|
|
276333
276305
|
name: name2,
|
|
276334
276306
|
applicationUniqueName,
|
|
276335
276307
|
privateKeyType: "HSM_ECDSA_P256",
|
|
276336
276308
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276337
|
-
});
|
|
276309
|
+
}));
|
|
276338
276310
|
return {
|
|
276339
276311
|
result
|
|
276340
276312
|
};
|
|
@@ -276376,12 +276348,12 @@ function ipfsStorageCreateCommand() {
|
|
|
276376
276348
|
...defaultArgs,
|
|
276377
276349
|
provider,
|
|
276378
276350
|
region
|
|
276379
|
-
}, async (settlemint, env2) => {
|
|
276351
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276380
276352
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276381
276353
|
if (!applicationUniqueName) {
|
|
276382
276354
|
return missingApplication();
|
|
276383
276355
|
}
|
|
276384
|
-
const result = await settlemint.storage.create({
|
|
276356
|
+
const result = await showSpinner(() => settlemint.storage.create({
|
|
276385
276357
|
name: name2,
|
|
276386
276358
|
applicationUniqueName,
|
|
276387
276359
|
storageProtocol: "IPFS",
|
|
@@ -276389,7 +276361,7 @@ function ipfsStorageCreateCommand() {
|
|
|
276389
276361
|
region,
|
|
276390
276362
|
size,
|
|
276391
276363
|
type: type4
|
|
276392
|
-
});
|
|
276364
|
+
}));
|
|
276393
276365
|
return {
|
|
276394
276366
|
result,
|
|
276395
276367
|
mapDefaultEnv: () => {
|
|
@@ -276429,12 +276401,12 @@ function minioStorageCreateCommand() {
|
|
|
276429
276401
|
...defaultArgs,
|
|
276430
276402
|
provider,
|
|
276431
276403
|
region
|
|
276432
|
-
}, async (settlemint, env2) => {
|
|
276404
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276433
276405
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276434
276406
|
if (!applicationUniqueName) {
|
|
276435
276407
|
return missingApplication();
|
|
276436
276408
|
}
|
|
276437
|
-
const result = await settlemint.storage.create({
|
|
276409
|
+
const result = await showSpinner(() => settlemint.storage.create({
|
|
276438
276410
|
name: name2,
|
|
276439
276411
|
applicationUniqueName,
|
|
276440
276412
|
storageProtocol: "MINIO",
|
|
@@ -276442,7 +276414,7 @@ function minioStorageCreateCommand() {
|
|
|
276442
276414
|
region,
|
|
276443
276415
|
size,
|
|
276444
276416
|
type: type4
|
|
276445
|
-
});
|
|
276417
|
+
}));
|
|
276446
276418
|
return {
|
|
276447
276419
|
result,
|
|
276448
276420
|
mapDefaultEnv: () => {
|
|
@@ -277266,7 +277238,6 @@ function hardhatDeployRemoteCommand() {
|
|
|
277266
277238
|
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
277267
277239
|
const env2 = await loadEnv2(false, !!prod);
|
|
277268
277240
|
const instance = await instancePrompt(env2, true);
|
|
277269
|
-
note2(`Instance is ${instance}`, "debug", env2.SETTLEMINT_DEBUG);
|
|
277270
277241
|
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
277271
277242
|
env: env2,
|
|
277272
277243
|
instance,
|
|
@@ -277852,4 +277823,4 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
277852
277823
|
ascii();
|
|
277853
277824
|
sdkCliCommand();
|
|
277854
277825
|
|
|
277855
|
-
//# debugId=
|
|
277826
|
+
//# debugId=8C2CFF9233F48A7B64756E2164756E21
|