@settlemint/sdk-cli 1.0.3-pr271d75e6 → 1.0.3-pr4b4c00a8
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 +96 -68
- package/dist/cli.js.map +26 -26
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -19613,7 +19613,7 @@ var require_lib4 = __commonJS((exports, module) => {
|
|
|
19613
19613
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
19614
19614
|
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
19615
19615
|
var getPathInfo = (cmd, {
|
|
19616
|
-
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
19616
|
+
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.GUKLpUPMR6:/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.GUKLpUPMR6:/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.GUKLpUPMR6:/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.GUKLpUPMR6:/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-pr4b4c00a8",
|
|
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.GUKLpUPMR6:/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,14 +267449,22 @@ var intro = (msg) => {
|
|
|
267448
267449
|
console.log(magentaBright(maskTokens2(msg)));
|
|
267449
267450
|
console.log("");
|
|
267450
267451
|
};
|
|
267451
|
-
var note = (message, level = "info") => {
|
|
267452
|
+
var note = (message, level = "info", debug = false) => {
|
|
267452
267453
|
const maskedMessage = maskTokens2(message);
|
|
267453
|
-
|
|
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;
|
|
267457
267463
|
}
|
|
267458
|
-
|
|
267464
|
+
if (level === "debug" && debug) {
|
|
267465
|
+
console.log("");
|
|
267466
|
+
console.log(maskedMessage);
|
|
267467
|
+
}
|
|
267459
267468
|
};
|
|
267460
267469
|
var outro = (msg) => {
|
|
267461
267470
|
console.log("");
|
|
@@ -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-pr4b4c00a8",
|
|
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-pr4b4c00a8",
|
|
267549
|
+
"@settlemint/sdk-utils": "1.0.3-pr4b4c00a8",
|
|
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.GUKLpUPMR6:/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,14 +268356,22 @@ var intro2 = (msg) => {
|
|
|
268347
268356
|
console.log(magentaBright(maskTokens3(msg)));
|
|
268348
268357
|
console.log("");
|
|
268349
268358
|
};
|
|
268350
|
-
var note2 = (message, level = "info") => {
|
|
268359
|
+
var note2 = (message, level = "info", debug = false) => {
|
|
268351
268360
|
const maskedMessage = maskTokens3(message);
|
|
268352
|
-
|
|
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;
|
|
268356
268370
|
}
|
|
268357
|
-
|
|
268371
|
+
if (level === "debug" && debug) {
|
|
268372
|
+
console.log("");
|
|
268373
|
+
console.log(maskedMessage);
|
|
268374
|
+
}
|
|
268358
268375
|
};
|
|
268359
268376
|
var ApplicationAccessTokenSchema2 = z.string().regex(/^sm_aat_.*$/);
|
|
268360
268377
|
var PersonalAccessTokenSchema2 = z.string().regex(/^sm_pat_.*$/);
|
|
@@ -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([
|
|
@@ -268595,11 +268613,13 @@ async function storeCredentials(token, instance) {
|
|
|
268595
268613
|
}
|
|
268596
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
|
-
|
|
268601
|
-
`)}` : ""}`);
|
|
268620
|
+
return;
|
|
268602
268621
|
}
|
|
268622
|
+
note(`Returning ${JSON.stringify({ personalAccessToken: instanceConfig.personalAccessToken })}`, "debug", env2?.SETTLEMINT_DEBUG);
|
|
268603
268623
|
return { personalAccessToken: instanceConfig.personalAccessToken };
|
|
268604
268624
|
}
|
|
268605
268625
|
async function getInstances() {
|
|
@@ -268638,6 +268658,10 @@ var getApplicationOrPersonalAccessToken = async ({
|
|
|
268638
268658
|
const preferredToken = prefer === "application" ? applicationAccessToken : personalAccessToken;
|
|
268639
268659
|
const fallbackToken = prefer === "application" ? personalAccessToken : applicationAccessToken;
|
|
268640
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);
|
|
268641
268665
|
if (preferredToken) {
|
|
268642
268666
|
return preferredToken;
|
|
268643
268667
|
}
|
|
@@ -271208,7 +271232,8 @@ async function writeEnvSpinner(prod, env2) {
|
|
|
271208
271232
|
SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: env2.SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT,
|
|
271209
271233
|
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: env2.SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT,
|
|
271210
271234
|
SETTLEMINT_SMART_CONTRACT_ADDRESS: env2.SETTLEMINT_SMART_CONTRACT_ADDRESS,
|
|
271211
|
-
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
|
|
271212
271237
|
}, false);
|
|
271213
271238
|
await writeEnv(prod, {
|
|
271214
271239
|
SETTLEMINT_ACCESS_TOKEN: env2.SETTLEMINT_ACCESS_TOKEN,
|
|
@@ -271366,7 +271391,8 @@ var DotEnvSchema3 = z.object({
|
|
|
271366
271391
|
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: UrlSchema3.optional(),
|
|
271367
271392
|
SETTLEMINT_NEW_PROJECT_NAME: z.string().optional(),
|
|
271368
271393
|
SETTLEMINT_SMART_CONTRACT_ADDRESS: z.string().optional(),
|
|
271369
|
-
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")
|
|
271370
271396
|
});
|
|
271371
271397
|
var DotEnvSchemaPartial3 = DotEnvSchema3.partial();
|
|
271372
271398
|
var IdSchema3 = z.union([
|
|
@@ -275296,12 +275322,13 @@ function getCreateCommand({
|
|
|
275296
275322
|
return nothingSelectedError("region");
|
|
275297
275323
|
}
|
|
275298
275324
|
}
|
|
275299
|
-
const
|
|
275325
|
+
const { result, waitFor, mapDefaultEnv } = await spinner({
|
|
275300
275326
|
startMessage: `Creating ${type4}`,
|
|
275301
|
-
task
|
|
275327
|
+
task: async () => {
|
|
275328
|
+
return createFunction(settlemint, env2);
|
|
275329
|
+
},
|
|
275302
275330
|
stopMessage: `${capitalizeFirstLetter(type4)} created`
|
|
275303
275331
|
});
|
|
275304
|
-
const { result, waitFor, mapDefaultEnv } = await createFunction(settlemint, env2, showSpinner);
|
|
275305
275332
|
if (wait) {
|
|
275306
275333
|
await waitForCompletion({
|
|
275307
275334
|
settlemint,
|
|
@@ -275367,12 +275394,12 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275367
275394
|
...defaultArgs,
|
|
275368
275395
|
provider,
|
|
275369
275396
|
region
|
|
275370
|
-
}, async (settlemint, env2
|
|
275397
|
+
}, async (settlemint, env2) => {
|
|
275371
275398
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275372
275399
|
if (!applicationUniqueName) {
|
|
275373
275400
|
return missingApplication();
|
|
275374
275401
|
}
|
|
275375
|
-
const result = await
|
|
275402
|
+
const result = await settlemint.blockchainNetwork.create({
|
|
275376
275403
|
name: name2,
|
|
275377
275404
|
applicationUniqueName,
|
|
275378
275405
|
nodeName,
|
|
@@ -275387,7 +275414,7 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275387
275414
|
secondsPerBlock,
|
|
275388
275415
|
size,
|
|
275389
275416
|
type: type4
|
|
275390
|
-
})
|
|
275417
|
+
});
|
|
275391
275418
|
const blockchainNode = result.blockchainNodes.find((item) => item.name === nodeName) ?? result.blockchainNodes[0];
|
|
275392
275419
|
return {
|
|
275393
275420
|
result,
|
|
@@ -275526,8 +275553,8 @@ function workspaceCreateCommand() {
|
|
|
275526
275553
|
addressLine1,
|
|
275527
275554
|
...defaultArgs
|
|
275528
275555
|
}) => {
|
|
275529
|
-
return baseAction(defaultArgs, async (settlemint
|
|
275530
|
-
const result = await
|
|
275556
|
+
return baseAction(defaultArgs, async (settlemint) => {
|
|
275557
|
+
const result = await settlemint.workspace.create({
|
|
275531
275558
|
name: name2,
|
|
275532
275559
|
taxIdValue,
|
|
275533
275560
|
taxIdType,
|
|
@@ -275539,7 +275566,7 @@ function workspaceCreateCommand() {
|
|
|
275539
275566
|
city,
|
|
275540
275567
|
addressLine2,
|
|
275541
275568
|
addressLine1
|
|
275542
|
-
})
|
|
275569
|
+
});
|
|
275543
275570
|
return {
|
|
275544
275571
|
result,
|
|
275545
275572
|
mapDefaultEnv: () => {
|
|
@@ -275577,12 +275604,12 @@ function applicationAccessTokenCreateCommand() {
|
|
|
275577
275604
|
alias: "aat",
|
|
275578
275605
|
execute: (cmd2, baseAction) => {
|
|
275579
275606
|
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
|
|
275607
|
+
return baseAction(defaultArgs, async (settlemint, env2) => {
|
|
275581
275608
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275582
275609
|
if (!applicationUniqueName) {
|
|
275583
275610
|
return missingApplication();
|
|
275584
275611
|
}
|
|
275585
|
-
const aatToken = await
|
|
275612
|
+
const aatToken = await settlemint.applicationAccessToken.create({
|
|
275586
275613
|
applicationUniqueName,
|
|
275587
275614
|
name: name2,
|
|
275588
275615
|
blockchainNetworkScope: {
|
|
@@ -275626,7 +275653,7 @@ function applicationAccessTokenCreateCommand() {
|
|
|
275626
275653
|
values: []
|
|
275627
275654
|
},
|
|
275628
275655
|
validityPeriod
|
|
275629
|
-
})
|
|
275656
|
+
});
|
|
275630
275657
|
return {
|
|
275631
275658
|
result: {
|
|
275632
275659
|
id: "",
|
|
@@ -275670,7 +275697,7 @@ function applicationCreateCommand() {
|
|
|
275670
275697
|
return baseAction({
|
|
275671
275698
|
...defaultArgs,
|
|
275672
275699
|
acceptDefaults
|
|
275673
|
-
}, async (settlemint, env2
|
|
275700
|
+
}, async (settlemint, env2) => {
|
|
275674
275701
|
let workspaceUniqueName = workspace;
|
|
275675
275702
|
if (!workspaceUniqueName) {
|
|
275676
275703
|
const workspaces = await settlemint.workspace.list();
|
|
@@ -275680,10 +275707,10 @@ function applicationCreateCommand() {
|
|
|
275680
275707
|
}
|
|
275681
275708
|
workspaceUniqueName = workspace2.uniqueName;
|
|
275682
275709
|
}
|
|
275683
|
-
const result = await
|
|
275710
|
+
const result = await settlemint.application.create({
|
|
275684
275711
|
name: name2,
|
|
275685
275712
|
workspaceUniqueName
|
|
275686
|
-
})
|
|
275713
|
+
});
|
|
275687
275714
|
return {
|
|
275688
275715
|
result,
|
|
275689
275716
|
mapDefaultEnv: () => {
|
|
@@ -275761,7 +275788,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275761
275788
|
acceptDefaults,
|
|
275762
275789
|
provider,
|
|
275763
275790
|
region
|
|
275764
|
-
}, async (settlemint, env2
|
|
275791
|
+
}, async (settlemint, env2) => {
|
|
275765
275792
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275766
275793
|
if (!applicationUniqueName) {
|
|
275767
275794
|
return missingApplication();
|
|
@@ -275780,7 +275807,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275780
275807
|
}
|
|
275781
275808
|
networkUniqueName = network?.uniqueName;
|
|
275782
275809
|
}
|
|
275783
|
-
const result = await
|
|
275810
|
+
const result = await settlemint.blockchainNode.create({
|
|
275784
275811
|
applicationUniqueName,
|
|
275785
275812
|
name: name2,
|
|
275786
275813
|
blockchainNetworkUniqueName: networkUniqueName,
|
|
@@ -275790,7 +275817,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275790
275817
|
region,
|
|
275791
275818
|
size,
|
|
275792
275819
|
type: type4
|
|
275793
|
-
})
|
|
275820
|
+
});
|
|
275794
275821
|
return {
|
|
275795
275822
|
result,
|
|
275796
275823
|
mapDefaultEnv: () => {
|
|
@@ -275839,7 +275866,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275839
275866
|
acceptDefaults,
|
|
275840
275867
|
provider,
|
|
275841
275868
|
region
|
|
275842
|
-
}, async (settlemint, env2
|
|
275869
|
+
}, async (settlemint, env2) => {
|
|
275843
275870
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275844
275871
|
if (!applicationUniqueName) {
|
|
275845
275872
|
return missingApplication();
|
|
@@ -275859,7 +275886,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275859
275886
|
}
|
|
275860
275887
|
blockchainNodeUniqueName = node.uniqueName;
|
|
275861
275888
|
}
|
|
275862
|
-
const result = await
|
|
275889
|
+
const result = await settlemint.insights.create({
|
|
275863
275890
|
name: name2,
|
|
275864
275891
|
applicationUniqueName,
|
|
275865
275892
|
insightsCategory: "BLOCKCHAIN_EXPLORER",
|
|
@@ -275869,7 +275896,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275869
275896
|
type: type4,
|
|
275870
275897
|
blockchainNodeUniqueName,
|
|
275871
275898
|
loadBalancerUniqueName
|
|
275872
|
-
})
|
|
275899
|
+
});
|
|
275873
275900
|
return {
|
|
275874
275901
|
result,
|
|
275875
275902
|
mapDefaultEnv: async () => {
|
|
@@ -275916,12 +275943,12 @@ function hasuraIntegrationCreateCommand() {
|
|
|
275916
275943
|
...defaultArgs,
|
|
275917
275944
|
provider,
|
|
275918
275945
|
region
|
|
275919
|
-
}, async (settlemint, env2
|
|
275946
|
+
}, async (settlemint, env2) => {
|
|
275920
275947
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275921
275948
|
if (!applicationUniqueName) {
|
|
275922
275949
|
return missingApplication();
|
|
275923
275950
|
}
|
|
275924
|
-
const result = await
|
|
275951
|
+
const result = await settlemint.integrationTool.create({
|
|
275925
275952
|
name: name2,
|
|
275926
275953
|
applicationUniqueName,
|
|
275927
275954
|
integrationType: "HASURA",
|
|
@@ -275929,7 +275956,7 @@ function hasuraIntegrationCreateCommand() {
|
|
|
275929
275956
|
region,
|
|
275930
275957
|
size,
|
|
275931
275958
|
type: type4
|
|
275932
|
-
})
|
|
275959
|
+
});
|
|
275933
275960
|
return {
|
|
275934
275961
|
result,
|
|
275935
275962
|
mapDefaultEnv: async () => {
|
|
@@ -275977,7 +276004,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
275977
276004
|
acceptDefaults,
|
|
275978
276005
|
provider,
|
|
275979
276006
|
region
|
|
275980
|
-
}, async (settlemint, env2
|
|
276007
|
+
}, async (settlemint, env2) => {
|
|
275981
276008
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275982
276009
|
if (!applicationUniqueName) {
|
|
275983
276010
|
return missingApplication();
|
|
@@ -275996,7 +276023,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
275996
276023
|
}
|
|
275997
276024
|
blockchainNodeUniqueName = node.uniqueName;
|
|
275998
276025
|
}
|
|
275999
|
-
const result = await
|
|
276026
|
+
const result = await settlemint.middleware.create({
|
|
276000
276027
|
name: name2,
|
|
276001
276028
|
applicationUniqueName,
|
|
276002
276029
|
interface: "HA_GRAPH",
|
|
@@ -276005,7 +276032,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
276005
276032
|
region,
|
|
276006
276033
|
size,
|
|
276007
276034
|
type: type4
|
|
276008
|
-
})
|
|
276035
|
+
});
|
|
276009
276036
|
return {
|
|
276010
276037
|
result,
|
|
276011
276038
|
mapDefaultEnv: async () => {
|
|
@@ -276060,7 +276087,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276060
276087
|
acceptDefaults,
|
|
276061
276088
|
provider,
|
|
276062
276089
|
region
|
|
276063
|
-
}, async (settlemint, env2
|
|
276090
|
+
}, async (settlemint, env2) => {
|
|
276064
276091
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276065
276092
|
if (!applicationUniqueName) {
|
|
276066
276093
|
return missingApplication();
|
|
@@ -276101,7 +276128,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276101
276128
|
cancel3(`Invalid pre-deployed abis: '${invalidPredeployedAbis.join(", ")}'. Possible values: '${platformConfig.preDeployedContracts.sort().join(", ")}'`);
|
|
276102
276129
|
}
|
|
276103
276130
|
}
|
|
276104
|
-
const result = await
|
|
276131
|
+
const result = await settlemint.middleware.create({
|
|
276105
276132
|
name: name2,
|
|
276106
276133
|
applicationUniqueName,
|
|
276107
276134
|
interface: "SMART_CONTRACT_PORTAL",
|
|
@@ -276113,7 +276140,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276113
276140
|
region,
|
|
276114
276141
|
size,
|
|
276115
276142
|
type: type4
|
|
276116
|
-
})
|
|
276143
|
+
});
|
|
276117
276144
|
return {
|
|
276118
276145
|
result,
|
|
276119
276146
|
mapDefaultEnv: async () => {
|
|
@@ -276157,7 +276184,7 @@ function privateKeyAccessibleCreateCommand() {
|
|
|
276157
276184
|
return baseAction({
|
|
276158
276185
|
...defaultArgs,
|
|
276159
276186
|
acceptDefaults
|
|
276160
|
-
}, async (settlemint, env2
|
|
276187
|
+
}, async (settlemint, env2) => {
|
|
276161
276188
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276162
276189
|
if (!applicationUniqueName) {
|
|
276163
276190
|
return missingApplication();
|
|
@@ -276176,12 +276203,12 @@ function privateKeyAccessibleCreateCommand() {
|
|
|
276176
276203
|
}
|
|
276177
276204
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276178
276205
|
}
|
|
276179
|
-
const result = await
|
|
276206
|
+
const result = await settlemint.privateKey.create({
|
|
276180
276207
|
name: name2,
|
|
276181
276208
|
applicationUniqueName,
|
|
276182
276209
|
privateKeyType: "ACCESSIBLE_ECDSA_P256",
|
|
276183
276210
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276184
|
-
})
|
|
276211
|
+
});
|
|
276185
276212
|
return {
|
|
276186
276213
|
result
|
|
276187
276214
|
};
|
|
@@ -276217,7 +276244,7 @@ function privateKeyHdCreateCommand() {
|
|
|
276217
276244
|
return baseAction({
|
|
276218
276245
|
...defaultArgs,
|
|
276219
276246
|
acceptDefaults
|
|
276220
|
-
}, async (settlemint, env2
|
|
276247
|
+
}, async (settlemint, env2) => {
|
|
276221
276248
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276222
276249
|
if (!applicationUniqueName) {
|
|
276223
276250
|
return missingApplication();
|
|
@@ -276236,12 +276263,12 @@ function privateKeyHdCreateCommand() {
|
|
|
276236
276263
|
}
|
|
276237
276264
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276238
276265
|
}
|
|
276239
|
-
const result = await
|
|
276266
|
+
const result = await settlemint.privateKey.create({
|
|
276240
276267
|
name: name2,
|
|
276241
276268
|
applicationUniqueName,
|
|
276242
276269
|
privateKeyType: "HD_ECDSA_P256",
|
|
276243
276270
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276244
|
-
})
|
|
276271
|
+
});
|
|
276245
276272
|
return {
|
|
276246
276273
|
result,
|
|
276247
276274
|
mapDefaultEnv: () => {
|
|
@@ -276283,7 +276310,7 @@ function privateKeyHsmCreateCommand() {
|
|
|
276283
276310
|
return baseAction({
|
|
276284
276311
|
...defaultArgs,
|
|
276285
276312
|
acceptDefaults
|
|
276286
|
-
}, async (settlemint, env2
|
|
276313
|
+
}, async (settlemint, env2) => {
|
|
276287
276314
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276288
276315
|
if (!applicationUniqueName) {
|
|
276289
276316
|
return missingApplication();
|
|
@@ -276302,12 +276329,12 @@ function privateKeyHsmCreateCommand() {
|
|
|
276302
276329
|
}
|
|
276303
276330
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276304
276331
|
}
|
|
276305
|
-
const result = await
|
|
276332
|
+
const result = await settlemint.privateKey.create({
|
|
276306
276333
|
name: name2,
|
|
276307
276334
|
applicationUniqueName,
|
|
276308
276335
|
privateKeyType: "HSM_ECDSA_P256",
|
|
276309
276336
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276310
|
-
})
|
|
276337
|
+
});
|
|
276311
276338
|
return {
|
|
276312
276339
|
result
|
|
276313
276340
|
};
|
|
@@ -276349,12 +276376,12 @@ function ipfsStorageCreateCommand() {
|
|
|
276349
276376
|
...defaultArgs,
|
|
276350
276377
|
provider,
|
|
276351
276378
|
region
|
|
276352
|
-
}, async (settlemint, env2
|
|
276379
|
+
}, async (settlemint, env2) => {
|
|
276353
276380
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276354
276381
|
if (!applicationUniqueName) {
|
|
276355
276382
|
return missingApplication();
|
|
276356
276383
|
}
|
|
276357
|
-
const result = await
|
|
276384
|
+
const result = await settlemint.storage.create({
|
|
276358
276385
|
name: name2,
|
|
276359
276386
|
applicationUniqueName,
|
|
276360
276387
|
storageProtocol: "IPFS",
|
|
@@ -276362,7 +276389,7 @@ function ipfsStorageCreateCommand() {
|
|
|
276362
276389
|
region,
|
|
276363
276390
|
size,
|
|
276364
276391
|
type: type4
|
|
276365
|
-
})
|
|
276392
|
+
});
|
|
276366
276393
|
return {
|
|
276367
276394
|
result,
|
|
276368
276395
|
mapDefaultEnv: () => {
|
|
@@ -276402,12 +276429,12 @@ function minioStorageCreateCommand() {
|
|
|
276402
276429
|
...defaultArgs,
|
|
276403
276430
|
provider,
|
|
276404
276431
|
region
|
|
276405
|
-
}, async (settlemint, env2
|
|
276432
|
+
}, async (settlemint, env2) => {
|
|
276406
276433
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276407
276434
|
if (!applicationUniqueName) {
|
|
276408
276435
|
return missingApplication();
|
|
276409
276436
|
}
|
|
276410
|
-
const result = await
|
|
276437
|
+
const result = await settlemint.storage.create({
|
|
276411
276438
|
name: name2,
|
|
276412
276439
|
applicationUniqueName,
|
|
276413
276440
|
storageProtocol: "MINIO",
|
|
@@ -276415,7 +276442,7 @@ function minioStorageCreateCommand() {
|
|
|
276415
276442
|
region,
|
|
276416
276443
|
size,
|
|
276417
276444
|
type: type4
|
|
276418
|
-
})
|
|
276445
|
+
});
|
|
276419
276446
|
return {
|
|
276420
276447
|
result,
|
|
276421
276448
|
mapDefaultEnv: () => {
|
|
@@ -277239,6 +277266,7 @@ function hardhatDeployRemoteCommand() {
|
|
|
277239
277266
|
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
277240
277267
|
const env2 = await loadEnv2(false, !!prod);
|
|
277241
277268
|
const instance = await instancePrompt(env2, true);
|
|
277269
|
+
note2(`Instance is ${instance}`, "debug", env2.SETTLEMINT_DEBUG);
|
|
277242
277270
|
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
277243
277271
|
env: env2,
|
|
277244
277272
|
instance,
|
|
@@ -277824,4 +277852,4 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
277824
277852
|
ascii();
|
|
277825
277853
|
sdkCliCommand();
|
|
277826
277854
|
|
|
277827
|
-
//# debugId=
|
|
277855
|
+
//# debugId=04FBC27D806D64D364756E2164756E21
|