@settlemint/sdk-cli 1.0.3-prac74e71e → 1.0.3-prc75111eb
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 +78 -86
- package/dist/cli.js.map +25 -25
- 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.PjRMq1uPL7:/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.PjRMq1uPL7:/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.PjRMq1uPL7:/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.PjRMq1uPL7:/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-prc75111eb",
|
|
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.PjRMq1uPL7:/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) : [""];
|
|
@@ -267215,7 +267215,7 @@ var DotEnvSchema = z.object({
|
|
|
267215
267215
|
SETTLEMINT_NEW_PROJECT_NAME: z.string().optional(),
|
|
267216
267216
|
SETTLEMINT_SMART_CONTRACT_ADDRESS: z.string().optional(),
|
|
267217
267217
|
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z.string().optional(),
|
|
267218
|
-
SETTLEMINT_DEBUG: z.
|
|
267218
|
+
SETTLEMINT_DEBUG: z.boolean().optional().default(false)
|
|
267219
267219
|
});
|
|
267220
267220
|
var DotEnvSchemaPartial = DotEnvSchema.partial();
|
|
267221
267221
|
var IdSchema = z.union([
|
|
@@ -267450,19 +267450,17 @@ var intro = (msg) => {
|
|
|
267450
267450
|
console.log("");
|
|
267451
267451
|
};
|
|
267452
267452
|
var note = (message, level = "info", debug = false) => {
|
|
267453
|
+
console.log("");
|
|
267453
267454
|
const maskedMessage = maskTokens2(message);
|
|
267454
267455
|
if (level === "info") {
|
|
267455
|
-
console.log("");
|
|
267456
267456
|
console.log(maskedMessage);
|
|
267457
267457
|
return;
|
|
267458
267458
|
}
|
|
267459
267459
|
if (level === "warn") {
|
|
267460
|
-
console.log("");
|
|
267461
267460
|
console.warn(yellowBright(maskedMessage));
|
|
267462
267461
|
return;
|
|
267463
267462
|
}
|
|
267464
267463
|
if (level === "debug" && debug) {
|
|
267465
|
-
console.log("");
|
|
267466
267464
|
console.log(maskedMessage);
|
|
267467
267465
|
}
|
|
267468
267466
|
};
|
|
@@ -267492,7 +267490,7 @@ ${error.stack}`));
|
|
|
267492
267490
|
var package_default = {
|
|
267493
267491
|
name: "@settlemint/sdk-cli",
|
|
267494
267492
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
267495
|
-
version: "1.0.3-
|
|
267493
|
+
version: "1.0.3-prc75111eb",
|
|
267496
267494
|
type: "module",
|
|
267497
267495
|
private: false,
|
|
267498
267496
|
license: "FSL-1.1-MIT",
|
|
@@ -267545,8 +267543,8 @@ var package_default = {
|
|
|
267545
267543
|
"@inquirer/input": "4.1.3",
|
|
267546
267544
|
"@inquirer/password": "4.0.6",
|
|
267547
267545
|
"@inquirer/select": "4.0.6",
|
|
267548
|
-
"@settlemint/sdk-js": "1.0.3-
|
|
267549
|
-
"@settlemint/sdk-utils": "1.0.3-
|
|
267546
|
+
"@settlemint/sdk-js": "1.0.3-prc75111eb",
|
|
267547
|
+
"@settlemint/sdk-utils": "1.0.3-prc75111eb",
|
|
267550
267548
|
"get-tsconfig": "4.8.1",
|
|
267551
267549
|
giget: "1.2.3"
|
|
267552
267550
|
},
|
|
@@ -267846,7 +267844,7 @@ var et = l((Re, tt) => {
|
|
|
267846
267844
|
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
267845
|
let n = e.colon || Bt, r = t.match(/\//) || g && t.match(/\\/) ? [""] : [
|
|
267848
267846
|
...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.
|
|
267847
|
+
...(e.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.PjRMq1uPL7:/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
267848
|
], s = g ? e.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", o = g ? s.split(n) : [""];
|
|
267851
267849
|
return g && t.indexOf(".") !== -1 && o[0] !== "" && o.unshift(""), {
|
|
267852
267850
|
pathEnv: r,
|
|
@@ -268357,19 +268355,17 @@ var intro2 = (msg) => {
|
|
|
268357
268355
|
console.log("");
|
|
268358
268356
|
};
|
|
268359
268357
|
var note2 = (message, level = "info", debug = false) => {
|
|
268358
|
+
console.log("");
|
|
268360
268359
|
const maskedMessage = maskTokens3(message);
|
|
268361
268360
|
if (level === "info") {
|
|
268362
|
-
console.log("");
|
|
268363
268361
|
console.log(maskedMessage);
|
|
268364
268362
|
return;
|
|
268365
268363
|
}
|
|
268366
268364
|
if (level === "warn") {
|
|
268367
|
-
console.log("");
|
|
268368
268365
|
console.warn(yellowBright(maskedMessage));
|
|
268369
268366
|
return;
|
|
268370
268367
|
}
|
|
268371
268368
|
if (level === "debug" && debug) {
|
|
268372
|
-
console.log("");
|
|
268373
268369
|
console.log(maskedMessage);
|
|
268374
268370
|
}
|
|
268375
268371
|
};
|
|
@@ -268430,7 +268426,7 @@ var DotEnvSchema2 = z.object({
|
|
|
268430
268426
|
SETTLEMINT_NEW_PROJECT_NAME: z.string().optional(),
|
|
268431
268427
|
SETTLEMINT_SMART_CONTRACT_ADDRESS: z.string().optional(),
|
|
268432
268428
|
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z.string().optional(),
|
|
268433
|
-
SETTLEMINT_DEBUG: z.
|
|
268429
|
+
SETTLEMINT_DEBUG: z.boolean().optional().default(false)
|
|
268434
268430
|
});
|
|
268435
268431
|
var DotEnvSchemaPartial2 = DotEnvSchema2.partial();
|
|
268436
268432
|
var IdSchema2 = z.union([
|
|
@@ -271246,27 +271242,22 @@ async function writeEnvSpinner(prod, env2) {
|
|
|
271246
271242
|
}
|
|
271247
271243
|
|
|
271248
271244
|
// src/utils/get-cluster-service-endpoint.ts
|
|
271249
|
-
async function getGraphEndpoint(settlemint, service, graphName) {
|
|
271245
|
+
async function getGraphEndpoint(settlemint, service, env2, graphName) {
|
|
271250
271246
|
if (!service || service.__typename !== "HAGraphMiddleware") {
|
|
271251
271247
|
return {};
|
|
271252
271248
|
}
|
|
271253
|
-
const
|
|
271254
|
-
|
|
271255
|
-
|
|
271256
|
-
|
|
271257
|
-
|
|
271258
|
-
|
|
271259
|
-
|
|
271260
|
-
|
|
271261
|
-
|
|
271262
|
-
|
|
271263
|
-
|
|
271264
|
-
|
|
271265
|
-
if (theGraphMiddleware.subgraphs.length === 1) {
|
|
271266
|
-
return true;
|
|
271267
|
-
}
|
|
271268
|
-
return !isStarterKit(subgraph.graphqlQueryEndpoint?.id);
|
|
271269
|
-
}).map(({ graphqlQueryEndpoint }) => graphqlQueryEndpoint?.displayValue);
|
|
271249
|
+
const middleware = await retryWhenFailed(() => settlemint.middleware.graphSubgraphs(service.uniqueName, !!graphName));
|
|
271250
|
+
if (!middleware || middleware.__typename !== "HAGraphMiddleware") {
|
|
271251
|
+
return {};
|
|
271252
|
+
}
|
|
271253
|
+
const isStarterKit = (id) => id.endsWith("-starterkits");
|
|
271254
|
+
const testEndpoint = middleware.subgraphs.find(({ graphqlQueryEndpoint }) => graphName ? graphqlQueryEndpoint?.id.endsWith(graphName) : !isStarterKit(graphqlQueryEndpoint?.id))?.graphqlQueryEndpoint?.displayValue;
|
|
271255
|
+
const starterKitEndpoint = middleware.subgraphs.find(({ graphqlQueryEndpoint }) => isStarterKit(graphqlQueryEndpoint?.id))?.graphqlQueryEndpoint?.displayValue;
|
|
271256
|
+
const hasEndpoint = testEndpoint && env2.SETTLEMINT_ACCESS_TOKEN ? await testGqlEndpoint({ accessToken: env2.SETTLEMINT_ACCESS_TOKEN, gqlEndpoint: testEndpoint }) : false;
|
|
271257
|
+
const endpoints = hasEndpoint ? middleware.subgraphs.map(({ graphqlQueryEndpoint }) => graphqlQueryEndpoint?.displayValue) : starterKitEndpoint ? [starterKitEndpoint] : [];
|
|
271258
|
+
if (endpoints.length === 0) {
|
|
271259
|
+
return {};
|
|
271260
|
+
}
|
|
271270
271261
|
return {
|
|
271271
271262
|
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS: endpoints
|
|
271272
271263
|
};
|
|
@@ -271397,7 +271388,7 @@ var DotEnvSchema3 = z.object({
|
|
|
271397
271388
|
SETTLEMINT_NEW_PROJECT_NAME: z.string().optional(),
|
|
271398
271389
|
SETTLEMINT_SMART_CONTRACT_ADDRESS: z.string().optional(),
|
|
271399
271390
|
SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: z.string().optional(),
|
|
271400
|
-
SETTLEMINT_DEBUG: z.
|
|
271391
|
+
SETTLEMINT_DEBUG: z.boolean().optional().default(false)
|
|
271401
271392
|
});
|
|
271402
271393
|
var DotEnvSchemaPartial3 = DotEnvSchema3.partial();
|
|
271403
271394
|
var IdSchema3 = z.union([
|
|
@@ -274132,7 +274123,7 @@ function connectCommand() {
|
|
|
274132
274123
|
SETTLEMINT_HASURA: hasura?.uniqueName,
|
|
274133
274124
|
...getHasuraEndpoints(hasura),
|
|
274134
274125
|
SETTLEMINT_THEGRAPH: thegraph?.uniqueName,
|
|
274135
|
-
...await getGraphEndpoint(settlemint, thegraph),
|
|
274126
|
+
...await getGraphEndpoint(settlemint, thegraph, env2),
|
|
274136
274127
|
SETTLEMINT_PORTAL: portal?.uniqueName,
|
|
274137
274128
|
...getPortalEndpoints(portal),
|
|
274138
274129
|
SETTLEMINT_HD_PRIVATE_KEY: hdPrivateKey?.uniqueName,
|
|
@@ -275327,12 +275318,13 @@ function getCreateCommand({
|
|
|
275327
275318
|
return nothingSelectedError("region");
|
|
275328
275319
|
}
|
|
275329
275320
|
}
|
|
275330
|
-
const
|
|
275321
|
+
const { result, waitFor, mapDefaultEnv } = await spinner({
|
|
275331
275322
|
startMessage: `Creating ${type4}`,
|
|
275332
|
-
task
|
|
275323
|
+
task: async () => {
|
|
275324
|
+
return createFunction(settlemint, env2);
|
|
275325
|
+
},
|
|
275333
275326
|
stopMessage: `${capitalizeFirstLetter(type4)} created`
|
|
275334
275327
|
});
|
|
275335
|
-
const { result, waitFor, mapDefaultEnv } = await createFunction(settlemint, env2, showSpinner);
|
|
275336
275328
|
if (wait) {
|
|
275337
275329
|
await waitForCompletion({
|
|
275338
275330
|
settlemint,
|
|
@@ -275398,12 +275390,12 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275398
275390
|
...defaultArgs,
|
|
275399
275391
|
provider,
|
|
275400
275392
|
region
|
|
275401
|
-
}, async (settlemint, env2
|
|
275393
|
+
}, async (settlemint, env2) => {
|
|
275402
275394
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275403
275395
|
if (!applicationUniqueName) {
|
|
275404
275396
|
return missingApplication();
|
|
275405
275397
|
}
|
|
275406
|
-
const result = await
|
|
275398
|
+
const result = await settlemint.blockchainNetwork.create({
|
|
275407
275399
|
name: name2,
|
|
275408
275400
|
applicationUniqueName,
|
|
275409
275401
|
nodeName,
|
|
@@ -275418,7 +275410,7 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275418
275410
|
secondsPerBlock,
|
|
275419
275411
|
size,
|
|
275420
275412
|
type: type4
|
|
275421
|
-
})
|
|
275413
|
+
});
|
|
275422
275414
|
const blockchainNode = result.blockchainNodes.find((item) => item.name === nodeName) ?? result.blockchainNodes[0];
|
|
275423
275415
|
return {
|
|
275424
275416
|
result,
|
|
@@ -275557,8 +275549,8 @@ function workspaceCreateCommand() {
|
|
|
275557
275549
|
addressLine1,
|
|
275558
275550
|
...defaultArgs
|
|
275559
275551
|
}) => {
|
|
275560
|
-
return baseAction(defaultArgs, async (settlemint
|
|
275561
|
-
const result = await
|
|
275552
|
+
return baseAction(defaultArgs, async (settlemint) => {
|
|
275553
|
+
const result = await settlemint.workspace.create({
|
|
275562
275554
|
name: name2,
|
|
275563
275555
|
taxIdValue,
|
|
275564
275556
|
taxIdType,
|
|
@@ -275570,7 +275562,7 @@ function workspaceCreateCommand() {
|
|
|
275570
275562
|
city,
|
|
275571
275563
|
addressLine2,
|
|
275572
275564
|
addressLine1
|
|
275573
|
-
})
|
|
275565
|
+
});
|
|
275574
275566
|
return {
|
|
275575
275567
|
result,
|
|
275576
275568
|
mapDefaultEnv: () => {
|
|
@@ -275608,12 +275600,12 @@ function applicationAccessTokenCreateCommand() {
|
|
|
275608
275600
|
alias: "aat",
|
|
275609
275601
|
execute: (cmd2, baseAction) => {
|
|
275610
275602
|
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 }) => {
|
|
275611
|
-
return baseAction(defaultArgs, async (settlemint, env2
|
|
275603
|
+
return baseAction(defaultArgs, async (settlemint, env2) => {
|
|
275612
275604
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275613
275605
|
if (!applicationUniqueName) {
|
|
275614
275606
|
return missingApplication();
|
|
275615
275607
|
}
|
|
275616
|
-
const aatToken = await
|
|
275608
|
+
const aatToken = await settlemint.applicationAccessToken.create({
|
|
275617
275609
|
applicationUniqueName,
|
|
275618
275610
|
name: name2,
|
|
275619
275611
|
blockchainNetworkScope: {
|
|
@@ -275657,7 +275649,7 @@ function applicationAccessTokenCreateCommand() {
|
|
|
275657
275649
|
values: []
|
|
275658
275650
|
},
|
|
275659
275651
|
validityPeriod
|
|
275660
|
-
})
|
|
275652
|
+
});
|
|
275661
275653
|
return {
|
|
275662
275654
|
result: {
|
|
275663
275655
|
id: "",
|
|
@@ -275701,7 +275693,7 @@ function applicationCreateCommand() {
|
|
|
275701
275693
|
return baseAction({
|
|
275702
275694
|
...defaultArgs,
|
|
275703
275695
|
acceptDefaults
|
|
275704
|
-
}, async (settlemint, env2
|
|
275696
|
+
}, async (settlemint, env2) => {
|
|
275705
275697
|
let workspaceUniqueName = workspace;
|
|
275706
275698
|
if (!workspaceUniqueName) {
|
|
275707
275699
|
const workspaces = await settlemint.workspace.list();
|
|
@@ -275711,10 +275703,10 @@ function applicationCreateCommand() {
|
|
|
275711
275703
|
}
|
|
275712
275704
|
workspaceUniqueName = workspace2.uniqueName;
|
|
275713
275705
|
}
|
|
275714
|
-
const result = await
|
|
275706
|
+
const result = await settlemint.application.create({
|
|
275715
275707
|
name: name2,
|
|
275716
275708
|
workspaceUniqueName
|
|
275717
|
-
})
|
|
275709
|
+
});
|
|
275718
275710
|
return {
|
|
275719
275711
|
result,
|
|
275720
275712
|
mapDefaultEnv: () => {
|
|
@@ -275792,7 +275784,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275792
275784
|
acceptDefaults,
|
|
275793
275785
|
provider,
|
|
275794
275786
|
region
|
|
275795
|
-
}, async (settlemint, env2
|
|
275787
|
+
}, async (settlemint, env2) => {
|
|
275796
275788
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275797
275789
|
if (!applicationUniqueName) {
|
|
275798
275790
|
return missingApplication();
|
|
@@ -275811,7 +275803,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275811
275803
|
}
|
|
275812
275804
|
networkUniqueName = network?.uniqueName;
|
|
275813
275805
|
}
|
|
275814
|
-
const result = await
|
|
275806
|
+
const result = await settlemint.blockchainNode.create({
|
|
275815
275807
|
applicationUniqueName,
|
|
275816
275808
|
name: name2,
|
|
275817
275809
|
blockchainNetworkUniqueName: networkUniqueName,
|
|
@@ -275821,7 +275813,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275821
275813
|
region,
|
|
275822
275814
|
size,
|
|
275823
275815
|
type: type4
|
|
275824
|
-
})
|
|
275816
|
+
});
|
|
275825
275817
|
return {
|
|
275826
275818
|
result,
|
|
275827
275819
|
mapDefaultEnv: () => {
|
|
@@ -275870,7 +275862,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275870
275862
|
acceptDefaults,
|
|
275871
275863
|
provider,
|
|
275872
275864
|
region
|
|
275873
|
-
}, async (settlemint, env2
|
|
275865
|
+
}, async (settlemint, env2) => {
|
|
275874
275866
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275875
275867
|
if (!applicationUniqueName) {
|
|
275876
275868
|
return missingApplication();
|
|
@@ -275890,7 +275882,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275890
275882
|
}
|
|
275891
275883
|
blockchainNodeUniqueName = node.uniqueName;
|
|
275892
275884
|
}
|
|
275893
|
-
const result = await
|
|
275885
|
+
const result = await settlemint.insights.create({
|
|
275894
275886
|
name: name2,
|
|
275895
275887
|
applicationUniqueName,
|
|
275896
275888
|
insightsCategory: "BLOCKCHAIN_EXPLORER",
|
|
@@ -275900,7 +275892,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275900
275892
|
type: type4,
|
|
275901
275893
|
blockchainNodeUniqueName,
|
|
275902
275894
|
loadBalancerUniqueName
|
|
275903
|
-
})
|
|
275895
|
+
});
|
|
275904
275896
|
return {
|
|
275905
275897
|
result,
|
|
275906
275898
|
mapDefaultEnv: async () => {
|
|
@@ -275947,12 +275939,12 @@ function hasuraIntegrationCreateCommand() {
|
|
|
275947
275939
|
...defaultArgs,
|
|
275948
275940
|
provider,
|
|
275949
275941
|
region
|
|
275950
|
-
}, async (settlemint, env2
|
|
275942
|
+
}, async (settlemint, env2) => {
|
|
275951
275943
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275952
275944
|
if (!applicationUniqueName) {
|
|
275953
275945
|
return missingApplication();
|
|
275954
275946
|
}
|
|
275955
|
-
const result = await
|
|
275947
|
+
const result = await settlemint.integrationTool.create({
|
|
275956
275948
|
name: name2,
|
|
275957
275949
|
applicationUniqueName,
|
|
275958
275950
|
integrationType: "HASURA",
|
|
@@ -275960,7 +275952,7 @@ function hasuraIntegrationCreateCommand() {
|
|
|
275960
275952
|
region,
|
|
275961
275953
|
size,
|
|
275962
275954
|
type: type4
|
|
275963
|
-
})
|
|
275955
|
+
});
|
|
275964
275956
|
return {
|
|
275965
275957
|
result,
|
|
275966
275958
|
mapDefaultEnv: async () => {
|
|
@@ -276008,7 +276000,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
276008
276000
|
acceptDefaults,
|
|
276009
276001
|
provider,
|
|
276010
276002
|
region
|
|
276011
|
-
}, async (settlemint, env2
|
|
276003
|
+
}, async (settlemint, env2) => {
|
|
276012
276004
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276013
276005
|
if (!applicationUniqueName) {
|
|
276014
276006
|
return missingApplication();
|
|
@@ -276027,7 +276019,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
276027
276019
|
}
|
|
276028
276020
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276029
276021
|
}
|
|
276030
|
-
const result = await
|
|
276022
|
+
const result = await settlemint.middleware.create({
|
|
276031
276023
|
name: name2,
|
|
276032
276024
|
applicationUniqueName,
|
|
276033
276025
|
interface: "HA_GRAPH",
|
|
@@ -276036,7 +276028,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
276036
276028
|
region,
|
|
276037
276029
|
size,
|
|
276038
276030
|
type: type4
|
|
276039
|
-
})
|
|
276031
|
+
});
|
|
276040
276032
|
return {
|
|
276041
276033
|
result,
|
|
276042
276034
|
mapDefaultEnv: async () => {
|
|
@@ -276044,7 +276036,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
276044
276036
|
return {
|
|
276045
276037
|
SETTLEMINT_APPLICATION: applicationUniqueName,
|
|
276046
276038
|
SETTLEMINT_THEGRAPH: result.uniqueName,
|
|
276047
|
-
...await getGraphEndpoint(settlemint, graphMiddleware)
|
|
276039
|
+
...await getGraphEndpoint(settlemint, graphMiddleware, env2)
|
|
276048
276040
|
};
|
|
276049
276041
|
}
|
|
276050
276042
|
};
|
|
@@ -276091,7 +276083,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276091
276083
|
acceptDefaults,
|
|
276092
276084
|
provider,
|
|
276093
276085
|
region
|
|
276094
|
-
}, async (settlemint, env2
|
|
276086
|
+
}, async (settlemint, env2) => {
|
|
276095
276087
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276096
276088
|
if (!applicationUniqueName) {
|
|
276097
276089
|
return missingApplication();
|
|
@@ -276132,7 +276124,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276132
276124
|
cancel3(`Invalid pre-deployed abis: '${invalidPredeployedAbis.join(", ")}'. Possible values: '${platformConfig.preDeployedContracts.sort().join(", ")}'`);
|
|
276133
276125
|
}
|
|
276134
276126
|
}
|
|
276135
|
-
const result = await
|
|
276127
|
+
const result = await settlemint.middleware.create({
|
|
276136
276128
|
name: name2,
|
|
276137
276129
|
applicationUniqueName,
|
|
276138
276130
|
interface: "SMART_CONTRACT_PORTAL",
|
|
@@ -276144,7 +276136,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276144
276136
|
region,
|
|
276145
276137
|
size,
|
|
276146
276138
|
type: type4
|
|
276147
|
-
})
|
|
276139
|
+
});
|
|
276148
276140
|
return {
|
|
276149
276141
|
result,
|
|
276150
276142
|
mapDefaultEnv: async () => {
|
|
@@ -276188,7 +276180,7 @@ function privateKeyAccessibleCreateCommand() {
|
|
|
276188
276180
|
return baseAction({
|
|
276189
276181
|
...defaultArgs,
|
|
276190
276182
|
acceptDefaults
|
|
276191
|
-
}, async (settlemint, env2
|
|
276183
|
+
}, async (settlemint, env2) => {
|
|
276192
276184
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276193
276185
|
if (!applicationUniqueName) {
|
|
276194
276186
|
return missingApplication();
|
|
@@ -276207,12 +276199,12 @@ function privateKeyAccessibleCreateCommand() {
|
|
|
276207
276199
|
}
|
|
276208
276200
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276209
276201
|
}
|
|
276210
|
-
const result = await
|
|
276202
|
+
const result = await settlemint.privateKey.create({
|
|
276211
276203
|
name: name2,
|
|
276212
276204
|
applicationUniqueName,
|
|
276213
276205
|
privateKeyType: "ACCESSIBLE_ECDSA_P256",
|
|
276214
276206
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276215
|
-
})
|
|
276207
|
+
});
|
|
276216
276208
|
return {
|
|
276217
276209
|
result
|
|
276218
276210
|
};
|
|
@@ -276248,7 +276240,7 @@ function privateKeyHdCreateCommand() {
|
|
|
276248
276240
|
return baseAction({
|
|
276249
276241
|
...defaultArgs,
|
|
276250
276242
|
acceptDefaults
|
|
276251
|
-
}, async (settlemint, env2
|
|
276243
|
+
}, async (settlemint, env2) => {
|
|
276252
276244
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276253
276245
|
if (!applicationUniqueName) {
|
|
276254
276246
|
return missingApplication();
|
|
@@ -276267,12 +276259,12 @@ function privateKeyHdCreateCommand() {
|
|
|
276267
276259
|
}
|
|
276268
276260
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276269
276261
|
}
|
|
276270
|
-
const result = await
|
|
276262
|
+
const result = await settlemint.privateKey.create({
|
|
276271
276263
|
name: name2,
|
|
276272
276264
|
applicationUniqueName,
|
|
276273
276265
|
privateKeyType: "HD_ECDSA_P256",
|
|
276274
276266
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276275
|
-
})
|
|
276267
|
+
});
|
|
276276
276268
|
return {
|
|
276277
276269
|
result,
|
|
276278
276270
|
mapDefaultEnv: () => {
|
|
@@ -276314,7 +276306,7 @@ function privateKeyHsmCreateCommand() {
|
|
|
276314
276306
|
return baseAction({
|
|
276315
276307
|
...defaultArgs,
|
|
276316
276308
|
acceptDefaults
|
|
276317
|
-
}, async (settlemint, env2
|
|
276309
|
+
}, async (settlemint, env2) => {
|
|
276318
276310
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276319
276311
|
if (!applicationUniqueName) {
|
|
276320
276312
|
return missingApplication();
|
|
@@ -276333,12 +276325,12 @@ function privateKeyHsmCreateCommand() {
|
|
|
276333
276325
|
}
|
|
276334
276326
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276335
276327
|
}
|
|
276336
|
-
const result = await
|
|
276328
|
+
const result = await settlemint.privateKey.create({
|
|
276337
276329
|
name: name2,
|
|
276338
276330
|
applicationUniqueName,
|
|
276339
276331
|
privateKeyType: "HSM_ECDSA_P256",
|
|
276340
276332
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276341
|
-
})
|
|
276333
|
+
});
|
|
276342
276334
|
return {
|
|
276343
276335
|
result
|
|
276344
276336
|
};
|
|
@@ -276380,12 +276372,12 @@ function ipfsStorageCreateCommand() {
|
|
|
276380
276372
|
...defaultArgs,
|
|
276381
276373
|
provider,
|
|
276382
276374
|
region
|
|
276383
|
-
}, async (settlemint, env2
|
|
276375
|
+
}, async (settlemint, env2) => {
|
|
276384
276376
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276385
276377
|
if (!applicationUniqueName) {
|
|
276386
276378
|
return missingApplication();
|
|
276387
276379
|
}
|
|
276388
|
-
const result = await
|
|
276380
|
+
const result = await settlemint.storage.create({
|
|
276389
276381
|
name: name2,
|
|
276390
276382
|
applicationUniqueName,
|
|
276391
276383
|
storageProtocol: "IPFS",
|
|
@@ -276393,7 +276385,7 @@ function ipfsStorageCreateCommand() {
|
|
|
276393
276385
|
region,
|
|
276394
276386
|
size,
|
|
276395
276387
|
type: type4
|
|
276396
|
-
})
|
|
276388
|
+
});
|
|
276397
276389
|
return {
|
|
276398
276390
|
result,
|
|
276399
276391
|
mapDefaultEnv: () => {
|
|
@@ -276433,12 +276425,12 @@ function minioStorageCreateCommand() {
|
|
|
276433
276425
|
...defaultArgs,
|
|
276434
276426
|
provider,
|
|
276435
276427
|
region
|
|
276436
|
-
}, async (settlemint, env2
|
|
276428
|
+
}, async (settlemint, env2) => {
|
|
276437
276429
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276438
276430
|
if (!applicationUniqueName) {
|
|
276439
276431
|
return missingApplication();
|
|
276440
276432
|
}
|
|
276441
|
-
const result = await
|
|
276433
|
+
const result = await settlemint.storage.create({
|
|
276442
276434
|
name: name2,
|
|
276443
276435
|
applicationUniqueName,
|
|
276444
276436
|
storageProtocol: "MINIO",
|
|
@@ -276446,7 +276438,7 @@ function minioStorageCreateCommand() {
|
|
|
276446
276438
|
region,
|
|
276447
276439
|
size,
|
|
276448
276440
|
type: type4
|
|
276449
|
-
})
|
|
276441
|
+
});
|
|
276450
276442
|
return {
|
|
276451
276443
|
result,
|
|
276452
276444
|
mapDefaultEnv: () => {
|
|
@@ -277753,7 +277745,7 @@ function subgraphDeployCommand() {
|
|
|
277753
277745
|
instance
|
|
277754
277746
|
});
|
|
277755
277747
|
const middleware = await settlemintClient.middleware.read(theGraphMiddleware.uniqueName);
|
|
277756
|
-
const graphEndpoints = await getGraphEndpoint(settlemintClient, middleware, graphName);
|
|
277748
|
+
const graphEndpoints = await getGraphEndpoint(settlemintClient, middleware, env2, graphName);
|
|
277757
277749
|
await writeEnvSpinner(!!prod, {
|
|
277758
277750
|
...env2,
|
|
277759
277751
|
SETTLEMINT_THEGRAPH: theGraphMiddleware.uniqueName,
|
|
@@ -277856,4 +277848,4 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
277856
277848
|
ascii();
|
|
277857
277849
|
sdkCliCommand();
|
|
277858
277850
|
|
|
277859
|
-
//# debugId=
|
|
277851
|
+
//# debugId=5A789F213BA4CFF864756E2164756E21
|