@settlemint/sdk-cli 1.0.3-maina872577a → 1.0.3-mainaca8bb52
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 +100 -73
- 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.YFAKxkWUFO:/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.YFAKxkWUFO:/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.YFAKxkWUFO:/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.YFAKxkWUFO:/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-mainaca8bb52",
|
|
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.YFAKxkWUFO:/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,7 +267214,8 @@ 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()
|
|
267217
|
+
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z.string().optional(),
|
|
267218
|
+
SETTLEMINT_DEBUG: z.enum(["true", "false"]).transform((value) => value === "true")
|
|
267218
267219
|
});
|
|
267219
267220
|
var DotEnvSchemaPartial = DotEnvSchema.partial();
|
|
267220
267221
|
var IdSchema = z.union([
|
|
@@ -267448,12 +267449,20 @@ var intro = (msg) => {
|
|
|
267448
267449
|
console.log(magentaBright(maskTokens2(msg)));
|
|
267449
267450
|
console.log("");
|
|
267450
267451
|
};
|
|
267451
|
-
var note = (message, level = "info") => {
|
|
267452
|
-
console.log("");
|
|
267452
|
+
var note = (message, level = "info", debug = false) => {
|
|
267453
267453
|
const maskedMessage = maskTokens2(message);
|
|
267454
|
+
if (level === "info") {
|
|
267455
|
+
console.log("");
|
|
267456
|
+
console.log(maskedMessage);
|
|
267457
|
+
return;
|
|
267458
|
+
}
|
|
267454
267459
|
if (level === "warn") {
|
|
267460
|
+
console.log("");
|
|
267455
267461
|
console.warn(yellowBright(maskedMessage));
|
|
267456
|
-
|
|
267462
|
+
return;
|
|
267463
|
+
}
|
|
267464
|
+
if (level === "debug" && debug) {
|
|
267465
|
+
console.log("");
|
|
267457
267466
|
console.log(maskedMessage);
|
|
267458
267467
|
}
|
|
267459
267468
|
};
|
|
@@ -267483,7 +267492,7 @@ ${error.stack}`));
|
|
|
267483
267492
|
var package_default = {
|
|
267484
267493
|
name: "@settlemint/sdk-cli",
|
|
267485
267494
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
267486
|
-
version: "1.0.3-
|
|
267495
|
+
version: "1.0.3-mainaca8bb52",
|
|
267487
267496
|
type: "module",
|
|
267488
267497
|
private: false,
|
|
267489
267498
|
license: "FSL-1.1-MIT",
|
|
@@ -267536,8 +267545,8 @@ var package_default = {
|
|
|
267536
267545
|
"@inquirer/input": "4.1.3",
|
|
267537
267546
|
"@inquirer/password": "4.0.6",
|
|
267538
267547
|
"@inquirer/select": "4.0.6",
|
|
267539
|
-
"@settlemint/sdk-js": "1.0.3-
|
|
267540
|
-
"@settlemint/sdk-utils": "1.0.3-
|
|
267548
|
+
"@settlemint/sdk-js": "1.0.3-mainaca8bb52",
|
|
267549
|
+
"@settlemint/sdk-utils": "1.0.3-mainaca8bb52",
|
|
267541
267550
|
"get-tsconfig": "4.8.1",
|
|
267542
267551
|
giget: "1.2.3"
|
|
267543
267552
|
},
|
|
@@ -267837,7 +267846,7 @@ var et = l((Re, tt) => {
|
|
|
267837
267846
|
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) => {
|
|
267838
267847
|
let n = e.colon || Bt, r = t.match(/\//) || g && t.match(/\\/) ? [""] : [
|
|
267839
267848
|
...g ? [process.cwd()] : [],
|
|
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.
|
|
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.YFAKxkWUFO:/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)
|
|
267841
267850
|
], s = g ? e.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", o = g ? s.split(n) : [""];
|
|
267842
267851
|
return g && t.indexOf(".") !== -1 && o[0] !== "" && o.unshift(""), {
|
|
267843
267852
|
pathEnv: r,
|
|
@@ -268347,12 +268356,20 @@ var intro2 = (msg) => {
|
|
|
268347
268356
|
console.log(magentaBright(maskTokens3(msg)));
|
|
268348
268357
|
console.log("");
|
|
268349
268358
|
};
|
|
268350
|
-
var note2 = (message, level = "info") => {
|
|
268351
|
-
console.log("");
|
|
268359
|
+
var note2 = (message, level = "info", debug = false) => {
|
|
268352
268360
|
const maskedMessage = maskTokens3(message);
|
|
268361
|
+
if (level === "info") {
|
|
268362
|
+
console.log("");
|
|
268363
|
+
console.log(maskedMessage);
|
|
268364
|
+
return;
|
|
268365
|
+
}
|
|
268353
268366
|
if (level === "warn") {
|
|
268367
|
+
console.log("");
|
|
268354
268368
|
console.warn(yellowBright(maskedMessage));
|
|
268355
|
-
|
|
268369
|
+
return;
|
|
268370
|
+
}
|
|
268371
|
+
if (level === "debug" && debug) {
|
|
268372
|
+
console.log("");
|
|
268356
268373
|
console.log(maskedMessage);
|
|
268357
268374
|
}
|
|
268358
268375
|
};
|
|
@@ -268412,7 +268429,8 @@ var DotEnvSchema2 = z.object({
|
|
|
268412
268429
|
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: UrlSchema2.optional(),
|
|
268413
268430
|
SETTLEMINT_NEW_PROJECT_NAME: z.string().optional(),
|
|
268414
268431
|
SETTLEMINT_SMART_CONTRACT_ADDRESS: z.string().optional(),
|
|
268415
|
-
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z.string().optional()
|
|
268432
|
+
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z.string().optional(),
|
|
268433
|
+
SETTLEMINT_DEBUG: z.enum(["true", "false"]).transform((value) => value === "true")
|
|
268416
268434
|
});
|
|
268417
268435
|
var DotEnvSchemaPartial2 = DotEnvSchema2.partial();
|
|
268418
268436
|
var IdSchema2 = z.union([
|
|
@@ -268593,12 +268611,15 @@ async function storeCredentials(token, instance) {
|
|
|
268593
268611
|
}
|
|
268594
268612
|
await writeConfig(config4);
|
|
268595
268613
|
}
|
|
268596
|
-
async function getInstanceCredentials(instance) {
|
|
268614
|
+
async function getInstanceCredentials(instance, env2) {
|
|
268597
268615
|
const config4 = await readConfig();
|
|
268616
|
+
note(`Config from readConfig is ${JSON.stringify(config4, null, 2)}`, "debug", env2?.SETTLEMINT_DEBUG);
|
|
268598
268617
|
const instanceConfig = config4.instances[instance];
|
|
268618
|
+
note(`Instance config is ${instanceConfig ? JSON.stringify(instanceConfig, null, 2) : instanceConfig}`, "debug", env2?.SETTLEMINT_DEBUG);
|
|
268599
268619
|
if (!instanceConfig) {
|
|
268600
268620
|
return;
|
|
268601
268621
|
}
|
|
268622
|
+
note(`Returning ${JSON.stringify({ personalAccessToken: instanceConfig.personalAccessToken })}`, "debug", env2?.SETTLEMINT_DEBUG);
|
|
268602
268623
|
return { personalAccessToken: instanceConfig.personalAccessToken };
|
|
268603
268624
|
}
|
|
268604
268625
|
async function getInstances() {
|
|
@@ -268637,6 +268658,10 @@ var getApplicationOrPersonalAccessToken = async ({
|
|
|
268637
268658
|
const preferredToken = prefer === "application" ? applicationAccessToken : personalAccessToken;
|
|
268638
268659
|
const fallbackToken = prefer === "application" ? personalAccessToken : applicationAccessToken;
|
|
268639
268660
|
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);
|
|
268640
268665
|
if (preferredToken) {
|
|
268641
268666
|
return preferredToken;
|
|
268642
268667
|
}
|
|
@@ -271207,7 +271232,8 @@ async function writeEnvSpinner(prod, env2) {
|
|
|
271207
271232
|
SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: env2.SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT,
|
|
271208
271233
|
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: env2.SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT,
|
|
271209
271234
|
SETTLEMINT_SMART_CONTRACT_ADDRESS: env2.SETTLEMINT_SMART_CONTRACT_ADDRESS,
|
|
271210
|
-
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: env2.SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID
|
|
271235
|
+
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: env2.SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID,
|
|
271236
|
+
SETTLEMINT_DEBUG: env2.SETTLEMINT_DEBUG
|
|
271211
271237
|
}, false);
|
|
271212
271238
|
await writeEnv(prod, {
|
|
271213
271239
|
SETTLEMINT_ACCESS_TOKEN: env2.SETTLEMINT_ACCESS_TOKEN,
|
|
@@ -271365,7 +271391,8 @@ var DotEnvSchema3 = z.object({
|
|
|
271365
271391
|
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: UrlSchema3.optional(),
|
|
271366
271392
|
SETTLEMINT_NEW_PROJECT_NAME: z.string().optional(),
|
|
271367
271393
|
SETTLEMINT_SMART_CONTRACT_ADDRESS: z.string().optional(),
|
|
271368
|
-
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z.string().optional()
|
|
271394
|
+
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z.string().optional(),
|
|
271395
|
+
SETTLEMINT_DEBUG: z.enum(["true", "false"]).transform((value4) => value4 === "true")
|
|
271369
271396
|
});
|
|
271370
271397
|
var DotEnvSchemaPartial3 = DotEnvSchema3.partial();
|
|
271371
271398
|
var IdSchema3 = z.union([
|
|
@@ -273798,12 +273825,12 @@ async function instancePrompt(env2, accept, freeTextInput = false, isCi = is_in_
|
|
|
273798
273825
|
const defaultInstance = env2.SETTLEMINT_INSTANCE;
|
|
273799
273826
|
const defaultPossible = autoAccept && defaultInstance;
|
|
273800
273827
|
if (defaultPossible) {
|
|
273801
|
-
return defaultInstance;
|
|
273828
|
+
return sanitizeInstanceUrl(defaultInstance);
|
|
273802
273829
|
}
|
|
273803
273830
|
const defaultLoginInstance = await getDefaultInstance();
|
|
273804
273831
|
const defaultPromptInstance = defaultInstance ?? defaultLoginInstance ?? "https://console.settlemint.com";
|
|
273805
273832
|
if (isCi) {
|
|
273806
|
-
return defaultPromptInstance;
|
|
273833
|
+
return sanitizeInstanceUrl(defaultPromptInstance);
|
|
273807
273834
|
}
|
|
273808
273835
|
if (freeTextInput) {
|
|
273809
273836
|
const instance = await esm_default4({
|
|
@@ -273826,17 +273853,17 @@ async function instancePrompt(env2, accept, freeTextInput = false, isCi = is_in_
|
|
|
273826
273853
|
cancel3("No instances found. Please run `settlemint login` to configure an instance.");
|
|
273827
273854
|
}
|
|
273828
273855
|
if (knownInstances.length === 1) {
|
|
273829
|
-
return knownInstances[0];
|
|
273856
|
+
return sanitizeInstanceUrl(knownInstances[0]);
|
|
273830
273857
|
}
|
|
273831
273858
|
return esm_default2({
|
|
273832
273859
|
message: "What SettleMint instance do you want to connect to?",
|
|
273833
273860
|
choices: [
|
|
273834
273861
|
...knownInstances.map((instance) => ({
|
|
273835
273862
|
name: instance,
|
|
273836
|
-
value: instance
|
|
273863
|
+
value: sanitizeInstanceUrl(instance)
|
|
273837
273864
|
}))
|
|
273838
273865
|
],
|
|
273839
|
-
default: defaultPromptInstance
|
|
273866
|
+
default: sanitizeInstanceUrl(defaultPromptInstance)
|
|
273840
273867
|
});
|
|
273841
273868
|
}
|
|
273842
273869
|
|
|
@@ -275295,13 +275322,12 @@ function getCreateCommand({
|
|
|
275295
275322
|
return nothingSelectedError("region");
|
|
275296
275323
|
}
|
|
275297
275324
|
}
|
|
275298
|
-
const
|
|
275325
|
+
const showSpinner = (task) => spinner({
|
|
275299
275326
|
startMessage: `Creating ${type4}`,
|
|
275300
|
-
task
|
|
275301
|
-
return createFunction(settlemint, env2);
|
|
275302
|
-
},
|
|
275327
|
+
task,
|
|
275303
275328
|
stopMessage: `${capitalizeFirstLetter(type4)} created`
|
|
275304
275329
|
});
|
|
275330
|
+
const { result, waitFor, mapDefaultEnv } = await createFunction(settlemint, env2, showSpinner);
|
|
275305
275331
|
if (wait) {
|
|
275306
275332
|
await waitForCompletion({
|
|
275307
275333
|
settlemint,
|
|
@@ -275367,12 +275393,12 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275367
275393
|
...defaultArgs,
|
|
275368
275394
|
provider,
|
|
275369
275395
|
region
|
|
275370
|
-
}, async (settlemint, env2) => {
|
|
275396
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275371
275397
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275372
275398
|
if (!applicationUniqueName) {
|
|
275373
275399
|
return missingApplication();
|
|
275374
275400
|
}
|
|
275375
|
-
const result = await settlemint.blockchainNetwork.create({
|
|
275401
|
+
const result = await showSpinner(() => settlemint.blockchainNetwork.create({
|
|
275376
275402
|
name: name2,
|
|
275377
275403
|
applicationUniqueName,
|
|
275378
275404
|
nodeName,
|
|
@@ -275387,7 +275413,7 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275387
275413
|
secondsPerBlock,
|
|
275388
275414
|
size,
|
|
275389
275415
|
type: type4
|
|
275390
|
-
});
|
|
275416
|
+
}));
|
|
275391
275417
|
const blockchainNode = result.blockchainNodes.find((item) => item.name === nodeName) ?? result.blockchainNodes[0];
|
|
275392
275418
|
return {
|
|
275393
275419
|
result,
|
|
@@ -275526,8 +275552,8 @@ function workspaceCreateCommand() {
|
|
|
275526
275552
|
addressLine1,
|
|
275527
275553
|
...defaultArgs
|
|
275528
275554
|
}) => {
|
|
275529
|
-
return baseAction(defaultArgs, async (settlemint) => {
|
|
275530
|
-
const result = await settlemint.workspace.create({
|
|
275555
|
+
return baseAction(defaultArgs, async (settlemint, _env, showSpinner) => {
|
|
275556
|
+
const result = await showSpinner(() => settlemint.workspace.create({
|
|
275531
275557
|
name: name2,
|
|
275532
275558
|
taxIdValue,
|
|
275533
275559
|
taxIdType,
|
|
@@ -275539,7 +275565,7 @@ function workspaceCreateCommand() {
|
|
|
275539
275565
|
city,
|
|
275540
275566
|
addressLine2,
|
|
275541
275567
|
addressLine1
|
|
275542
|
-
});
|
|
275568
|
+
}));
|
|
275543
275569
|
return {
|
|
275544
275570
|
result,
|
|
275545
275571
|
mapDefaultEnv: () => {
|
|
@@ -275577,12 +275603,12 @@ function applicationAccessTokenCreateCommand() {
|
|
|
275577
275603
|
alias: "aat",
|
|
275578
275604
|
execute: (cmd2, baseAction) => {
|
|
275579
275605
|
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 }) => {
|
|
275580
|
-
return baseAction(defaultArgs, async (settlemint, env2) => {
|
|
275606
|
+
return baseAction(defaultArgs, async (settlemint, env2, showSpinner) => {
|
|
275581
275607
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275582
275608
|
if (!applicationUniqueName) {
|
|
275583
275609
|
return missingApplication();
|
|
275584
275610
|
}
|
|
275585
|
-
const aatToken = await settlemint.applicationAccessToken.create({
|
|
275611
|
+
const aatToken = await showSpinner(() => settlemint.applicationAccessToken.create({
|
|
275586
275612
|
applicationUniqueName,
|
|
275587
275613
|
name: name2,
|
|
275588
275614
|
blockchainNetworkScope: {
|
|
@@ -275626,7 +275652,7 @@ function applicationAccessTokenCreateCommand() {
|
|
|
275626
275652
|
values: []
|
|
275627
275653
|
},
|
|
275628
275654
|
validityPeriod
|
|
275629
|
-
});
|
|
275655
|
+
}));
|
|
275630
275656
|
return {
|
|
275631
275657
|
result: {
|
|
275632
275658
|
id: "",
|
|
@@ -275670,7 +275696,7 @@ function applicationCreateCommand() {
|
|
|
275670
275696
|
return baseAction({
|
|
275671
275697
|
...defaultArgs,
|
|
275672
275698
|
acceptDefaults
|
|
275673
|
-
}, async (settlemint, env2) => {
|
|
275699
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275674
275700
|
let workspaceUniqueName = workspace;
|
|
275675
275701
|
if (!workspaceUniqueName) {
|
|
275676
275702
|
const workspaces = await settlemint.workspace.list();
|
|
@@ -275680,10 +275706,10 @@ function applicationCreateCommand() {
|
|
|
275680
275706
|
}
|
|
275681
275707
|
workspaceUniqueName = workspace2.uniqueName;
|
|
275682
275708
|
}
|
|
275683
|
-
const result = await settlemint.application.create({
|
|
275709
|
+
const result = await showSpinner(() => settlemint.application.create({
|
|
275684
275710
|
name: name2,
|
|
275685
275711
|
workspaceUniqueName
|
|
275686
|
-
});
|
|
275712
|
+
}));
|
|
275687
275713
|
return {
|
|
275688
275714
|
result,
|
|
275689
275715
|
mapDefaultEnv: () => {
|
|
@@ -275761,7 +275787,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275761
275787
|
acceptDefaults,
|
|
275762
275788
|
provider,
|
|
275763
275789
|
region
|
|
275764
|
-
}, async (settlemint, env2) => {
|
|
275790
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275765
275791
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275766
275792
|
if (!applicationUniqueName) {
|
|
275767
275793
|
return missingApplication();
|
|
@@ -275780,7 +275806,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275780
275806
|
}
|
|
275781
275807
|
networkUniqueName = network?.uniqueName;
|
|
275782
275808
|
}
|
|
275783
|
-
const result = await settlemint.blockchainNode.create({
|
|
275809
|
+
const result = await showSpinner(() => settlemint.blockchainNode.create({
|
|
275784
275810
|
applicationUniqueName,
|
|
275785
275811
|
name: name2,
|
|
275786
275812
|
blockchainNetworkUniqueName: networkUniqueName,
|
|
@@ -275790,7 +275816,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275790
275816
|
region,
|
|
275791
275817
|
size,
|
|
275792
275818
|
type: type4
|
|
275793
|
-
});
|
|
275819
|
+
}));
|
|
275794
275820
|
return {
|
|
275795
275821
|
result,
|
|
275796
275822
|
mapDefaultEnv: () => {
|
|
@@ -275839,7 +275865,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275839
275865
|
acceptDefaults,
|
|
275840
275866
|
provider,
|
|
275841
275867
|
region
|
|
275842
|
-
}, async (settlemint, env2) => {
|
|
275868
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275843
275869
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275844
275870
|
if (!applicationUniqueName) {
|
|
275845
275871
|
return missingApplication();
|
|
@@ -275859,7 +275885,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275859
275885
|
}
|
|
275860
275886
|
blockchainNodeUniqueName = node.uniqueName;
|
|
275861
275887
|
}
|
|
275862
|
-
const result = await settlemint.insights.create({
|
|
275888
|
+
const result = await showSpinner(() => settlemint.insights.create({
|
|
275863
275889
|
name: name2,
|
|
275864
275890
|
applicationUniqueName,
|
|
275865
275891
|
insightsCategory: "BLOCKCHAIN_EXPLORER",
|
|
@@ -275869,7 +275895,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275869
275895
|
type: type4,
|
|
275870
275896
|
blockchainNodeUniqueName,
|
|
275871
275897
|
loadBalancerUniqueName
|
|
275872
|
-
});
|
|
275898
|
+
}));
|
|
275873
275899
|
return {
|
|
275874
275900
|
result,
|
|
275875
275901
|
mapDefaultEnv: async () => {
|
|
@@ -275916,12 +275942,12 @@ function hasuraIntegrationCreateCommand() {
|
|
|
275916
275942
|
...defaultArgs,
|
|
275917
275943
|
provider,
|
|
275918
275944
|
region
|
|
275919
|
-
}, async (settlemint, env2) => {
|
|
275945
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275920
275946
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275921
275947
|
if (!applicationUniqueName) {
|
|
275922
275948
|
return missingApplication();
|
|
275923
275949
|
}
|
|
275924
|
-
const result = await settlemint.integrationTool.create({
|
|
275950
|
+
const result = await showSpinner(() => settlemint.integrationTool.create({
|
|
275925
275951
|
name: name2,
|
|
275926
275952
|
applicationUniqueName,
|
|
275927
275953
|
integrationType: "HASURA",
|
|
@@ -275929,7 +275955,7 @@ function hasuraIntegrationCreateCommand() {
|
|
|
275929
275955
|
region,
|
|
275930
275956
|
size,
|
|
275931
275957
|
type: type4
|
|
275932
|
-
});
|
|
275958
|
+
}));
|
|
275933
275959
|
return {
|
|
275934
275960
|
result,
|
|
275935
275961
|
mapDefaultEnv: async () => {
|
|
@@ -275977,7 +276003,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
275977
276003
|
acceptDefaults,
|
|
275978
276004
|
provider,
|
|
275979
276005
|
region
|
|
275980
|
-
}, async (settlemint, env2) => {
|
|
276006
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
275981
276007
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275982
276008
|
if (!applicationUniqueName) {
|
|
275983
276009
|
return missingApplication();
|
|
@@ -275996,7 +276022,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
275996
276022
|
}
|
|
275997
276023
|
blockchainNodeUniqueName = node.uniqueName;
|
|
275998
276024
|
}
|
|
275999
|
-
const result = await settlemint.middleware.create({
|
|
276025
|
+
const result = await showSpinner(() => settlemint.middleware.create({
|
|
276000
276026
|
name: name2,
|
|
276001
276027
|
applicationUniqueName,
|
|
276002
276028
|
interface: "HA_GRAPH",
|
|
@@ -276005,7 +276031,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
276005
276031
|
region,
|
|
276006
276032
|
size,
|
|
276007
276033
|
type: type4
|
|
276008
|
-
});
|
|
276034
|
+
}));
|
|
276009
276035
|
return {
|
|
276010
276036
|
result,
|
|
276011
276037
|
mapDefaultEnv: async () => {
|
|
@@ -276060,7 +276086,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276060
276086
|
acceptDefaults,
|
|
276061
276087
|
provider,
|
|
276062
276088
|
region
|
|
276063
|
-
}, async (settlemint, env2) => {
|
|
276089
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276064
276090
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276065
276091
|
if (!applicationUniqueName) {
|
|
276066
276092
|
return missingApplication();
|
|
@@ -276101,7 +276127,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276101
276127
|
cancel3(`Invalid pre-deployed abis: '${invalidPredeployedAbis.join(", ")}'. Possible values: '${platformConfig.preDeployedContracts.sort().join(", ")}'`);
|
|
276102
276128
|
}
|
|
276103
276129
|
}
|
|
276104
|
-
const result = await settlemint.middleware.create({
|
|
276130
|
+
const result = await showSpinner(() => settlemint.middleware.create({
|
|
276105
276131
|
name: name2,
|
|
276106
276132
|
applicationUniqueName,
|
|
276107
276133
|
interface: "SMART_CONTRACT_PORTAL",
|
|
@@ -276113,7 +276139,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276113
276139
|
region,
|
|
276114
276140
|
size,
|
|
276115
276141
|
type: type4
|
|
276116
|
-
});
|
|
276142
|
+
}));
|
|
276117
276143
|
return {
|
|
276118
276144
|
result,
|
|
276119
276145
|
mapDefaultEnv: async () => {
|
|
@@ -276157,7 +276183,7 @@ function privateKeyAccessibleCreateCommand() {
|
|
|
276157
276183
|
return baseAction({
|
|
276158
276184
|
...defaultArgs,
|
|
276159
276185
|
acceptDefaults
|
|
276160
|
-
}, async (settlemint, env2) => {
|
|
276186
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276161
276187
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276162
276188
|
if (!applicationUniqueName) {
|
|
276163
276189
|
return missingApplication();
|
|
@@ -276176,12 +276202,12 @@ function privateKeyAccessibleCreateCommand() {
|
|
|
276176
276202
|
}
|
|
276177
276203
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276178
276204
|
}
|
|
276179
|
-
const result = await settlemint.privateKey.create({
|
|
276205
|
+
const result = await showSpinner(() => settlemint.privateKey.create({
|
|
276180
276206
|
name: name2,
|
|
276181
276207
|
applicationUniqueName,
|
|
276182
276208
|
privateKeyType: "ACCESSIBLE_ECDSA_P256",
|
|
276183
276209
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276184
|
-
});
|
|
276210
|
+
}));
|
|
276185
276211
|
return {
|
|
276186
276212
|
result
|
|
276187
276213
|
};
|
|
@@ -276217,7 +276243,7 @@ function privateKeyHdCreateCommand() {
|
|
|
276217
276243
|
return baseAction({
|
|
276218
276244
|
...defaultArgs,
|
|
276219
276245
|
acceptDefaults
|
|
276220
|
-
}, async (settlemint, env2) => {
|
|
276246
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276221
276247
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276222
276248
|
if (!applicationUniqueName) {
|
|
276223
276249
|
return missingApplication();
|
|
@@ -276236,12 +276262,12 @@ function privateKeyHdCreateCommand() {
|
|
|
276236
276262
|
}
|
|
276237
276263
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276238
276264
|
}
|
|
276239
|
-
const result = await settlemint.privateKey.create({
|
|
276265
|
+
const result = await showSpinner(() => settlemint.privateKey.create({
|
|
276240
276266
|
name: name2,
|
|
276241
276267
|
applicationUniqueName,
|
|
276242
276268
|
privateKeyType: "HD_ECDSA_P256",
|
|
276243
276269
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276244
|
-
});
|
|
276270
|
+
}));
|
|
276245
276271
|
return {
|
|
276246
276272
|
result,
|
|
276247
276273
|
mapDefaultEnv: () => {
|
|
@@ -276283,7 +276309,7 @@ function privateKeyHsmCreateCommand() {
|
|
|
276283
276309
|
return baseAction({
|
|
276284
276310
|
...defaultArgs,
|
|
276285
276311
|
acceptDefaults
|
|
276286
|
-
}, async (settlemint, env2) => {
|
|
276312
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276287
276313
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276288
276314
|
if (!applicationUniqueName) {
|
|
276289
276315
|
return missingApplication();
|
|
@@ -276302,12 +276328,12 @@ function privateKeyHsmCreateCommand() {
|
|
|
276302
276328
|
}
|
|
276303
276329
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276304
276330
|
}
|
|
276305
|
-
const result = await settlemint.privateKey.create({
|
|
276331
|
+
const result = await showSpinner(() => settlemint.privateKey.create({
|
|
276306
276332
|
name: name2,
|
|
276307
276333
|
applicationUniqueName,
|
|
276308
276334
|
privateKeyType: "HSM_ECDSA_P256",
|
|
276309
276335
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276310
|
-
});
|
|
276336
|
+
}));
|
|
276311
276337
|
return {
|
|
276312
276338
|
result
|
|
276313
276339
|
};
|
|
@@ -276349,12 +276375,12 @@ function ipfsStorageCreateCommand() {
|
|
|
276349
276375
|
...defaultArgs,
|
|
276350
276376
|
provider,
|
|
276351
276377
|
region
|
|
276352
|
-
}, async (settlemint, env2) => {
|
|
276378
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276353
276379
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276354
276380
|
if (!applicationUniqueName) {
|
|
276355
276381
|
return missingApplication();
|
|
276356
276382
|
}
|
|
276357
|
-
const result = await settlemint.storage.create({
|
|
276383
|
+
const result = await showSpinner(() => settlemint.storage.create({
|
|
276358
276384
|
name: name2,
|
|
276359
276385
|
applicationUniqueName,
|
|
276360
276386
|
storageProtocol: "IPFS",
|
|
@@ -276362,7 +276388,7 @@ function ipfsStorageCreateCommand() {
|
|
|
276362
276388
|
region,
|
|
276363
276389
|
size,
|
|
276364
276390
|
type: type4
|
|
276365
|
-
});
|
|
276391
|
+
}));
|
|
276366
276392
|
return {
|
|
276367
276393
|
result,
|
|
276368
276394
|
mapDefaultEnv: () => {
|
|
@@ -276402,12 +276428,12 @@ function minioStorageCreateCommand() {
|
|
|
276402
276428
|
...defaultArgs,
|
|
276403
276429
|
provider,
|
|
276404
276430
|
region
|
|
276405
|
-
}, async (settlemint, env2) => {
|
|
276431
|
+
}, async (settlemint, env2, showSpinner) => {
|
|
276406
276432
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276407
276433
|
if (!applicationUniqueName) {
|
|
276408
276434
|
return missingApplication();
|
|
276409
276435
|
}
|
|
276410
|
-
const result = await settlemint.storage.create({
|
|
276436
|
+
const result = await showSpinner(() => settlemint.storage.create({
|
|
276411
276437
|
name: name2,
|
|
276412
276438
|
applicationUniqueName,
|
|
276413
276439
|
storageProtocol: "MINIO",
|
|
@@ -276415,7 +276441,7 @@ function minioStorageCreateCommand() {
|
|
|
276415
276441
|
region,
|
|
276416
276442
|
size,
|
|
276417
276443
|
type: type4
|
|
276418
|
-
});
|
|
276444
|
+
}));
|
|
276419
276445
|
return {
|
|
276420
276446
|
result,
|
|
276421
276447
|
mapDefaultEnv: () => {
|
|
@@ -277239,6 +277265,7 @@ function hardhatDeployRemoteCommand() {
|
|
|
277239
277265
|
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
277240
277266
|
const env2 = await loadEnv2(false, !!prod);
|
|
277241
277267
|
const instance = await instancePrompt(env2, true);
|
|
277268
|
+
note2(`Instance is ${instance}`, "debug", env2.SETTLEMINT_DEBUG);
|
|
277242
277269
|
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
277243
277270
|
env: env2,
|
|
277244
277271
|
instance,
|
|
@@ -277824,4 +277851,4 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
277824
277851
|
ascii();
|
|
277825
277852
|
sdkCliCommand();
|
|
277826
277853
|
|
|
277827
|
-
//# debugId=
|
|
277854
|
+
//# debugId=6B479A90C20207E364756E2164756E21
|