@settlemint/sdk-cli 1.0.2-prddc7e925 → 1.0.2-pre61785a5
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 +141 -68
- package/dist/cli.js.map +32 -33
- 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.uaoCd2ja9K:/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.uaoCd2ja9K:/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.uaoCd2ja9K:/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.uaoCd2ja9K:/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.2-
|
|
226467
|
+
binaryVersion: "1.0.2-pre61785a5",
|
|
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.uaoCd2ja9K:/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) : [""];
|
|
@@ -267198,6 +267198,7 @@ var DotEnvSchema = z.object({
|
|
|
267198
267198
|
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT: UrlSchema.optional(),
|
|
267199
267199
|
SETTLEMINT_PORTAL_REST_ENDPOINT: UrlSchema.optional(),
|
|
267200
267200
|
SETTLEMINT_HD_PRIVATE_KEY: UniqueNameSchema.optional(),
|
|
267201
|
+
SETTLEMINT_ACCESSIBLE_PRIVATE_KEY: UniqueNameSchema.optional(),
|
|
267201
267202
|
SETTLEMINT_MINIO: UniqueNameSchema.optional(),
|
|
267202
267203
|
SETTLEMINT_MINIO_ENDPOINT: UrlSchema.optional(),
|
|
267203
267204
|
SETTLEMINT_MINIO_ACCESS_KEY: z.string().optional(),
|
|
@@ -267467,7 +267468,7 @@ var spinner = async (options) => {
|
|
|
267467
267468
|
}
|
|
267468
267469
|
const spinner2 = yoctoSpinner().start(options.startMessage);
|
|
267469
267470
|
try {
|
|
267470
|
-
const result = await options.task();
|
|
267471
|
+
const result = await options.task(spinner2);
|
|
267471
267472
|
spinner2.success(options.stopMessage);
|
|
267472
267473
|
return result;
|
|
267473
267474
|
} catch (error) {
|
|
@@ -267481,7 +267482,7 @@ ${error.stack}`));
|
|
|
267481
267482
|
var package_default = {
|
|
267482
267483
|
name: "@settlemint/sdk-cli",
|
|
267483
267484
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
267484
|
-
version: "1.0.2-
|
|
267485
|
+
version: "1.0.2-pre61785a5",
|
|
267485
267486
|
type: "module",
|
|
267486
267487
|
private: false,
|
|
267487
267488
|
license: "FSL-1.1-MIT",
|
|
@@ -267534,8 +267535,8 @@ var package_default = {
|
|
|
267534
267535
|
"@inquirer/input": "4.1.3",
|
|
267535
267536
|
"@inquirer/password": "4.0.6",
|
|
267536
267537
|
"@inquirer/select": "4.0.6",
|
|
267537
|
-
"@settlemint/sdk-js": "1.0.2-
|
|
267538
|
-
"@settlemint/sdk-utils": "1.0.2-
|
|
267538
|
+
"@settlemint/sdk-js": "1.0.2-pre61785a5",
|
|
267539
|
+
"@settlemint/sdk-utils": "1.0.2-pre61785a5",
|
|
267539
267540
|
"get-tsconfig": "4.8.1",
|
|
267540
267541
|
giget: "1.2.3"
|
|
267541
267542
|
},
|
|
@@ -267835,7 +267836,7 @@ var et = l((Re, tt) => {
|
|
|
267835
267836
|
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) => {
|
|
267836
267837
|
let n = e.colon || Bt, r = t.match(/\//) || g && t.match(/\\/) ? [""] : [
|
|
267837
267838
|
...g ? [process.cwd()] : [],
|
|
267838
|
-
...(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.
|
|
267839
|
+
...(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.uaoCd2ja9K:/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)
|
|
267839
267840
|
], s = g ? e.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", o = g ? s.split(n) : [""];
|
|
267840
267841
|
return g && t.indexOf(".") !== -1 && o[0] !== "" && o.unshift(""), {
|
|
267841
267842
|
pathEnv: r,
|
|
@@ -268394,6 +268395,7 @@ var DotEnvSchema2 = z.object({
|
|
|
268394
268395
|
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT: UrlSchema2.optional(),
|
|
268395
268396
|
SETTLEMINT_PORTAL_REST_ENDPOINT: UrlSchema2.optional(),
|
|
268396
268397
|
SETTLEMINT_HD_PRIVATE_KEY: UniqueNameSchema2.optional(),
|
|
268398
|
+
SETTLEMINT_ACCESSIBLE_PRIVATE_KEY: UniqueNameSchema2.optional(),
|
|
268397
268399
|
SETTLEMINT_MINIO: UniqueNameSchema2.optional(),
|
|
268398
268400
|
SETTLEMINT_MINIO_ENDPOINT: UrlSchema2.optional(),
|
|
268399
268401
|
SETTLEMINT_MINIO_ACCESS_KEY: z.string().optional(),
|
|
@@ -268592,10 +268594,13 @@ async function storeCredentials(token, instance) {
|
|
|
268592
268594
|
}
|
|
268593
268595
|
async function getInstanceCredentials(instance) {
|
|
268594
268596
|
const config4 = await readConfig();
|
|
268597
|
+
note(`config is ${JSON.stringify(config4, null, 2)}`, "info");
|
|
268595
268598
|
const instanceConfig = config4.instances[instance];
|
|
268599
|
+
note(`instanceConfig is ${instanceConfig ? JSON.stringify(instanceConfig, null, 2) : instanceConfig}`, "info");
|
|
268596
268600
|
if (!instanceConfig) {
|
|
268597
268601
|
return;
|
|
268598
268602
|
}
|
|
268603
|
+
note(`returning ${JSON.stringify({ personalAccessToken: instanceConfig.personalAccessToken })}`, "info");
|
|
268599
268604
|
return { personalAccessToken: instanceConfig.personalAccessToken };
|
|
268600
268605
|
}
|
|
268601
268606
|
async function getInstances() {
|
|
@@ -268634,6 +268639,9 @@ var getApplicationOrPersonalAccessToken = async ({
|
|
|
268634
268639
|
const preferredToken = prefer === "application" ? applicationAccessToken : personalAccessToken;
|
|
268635
268640
|
const fallbackToken = prefer === "application" ? personalAccessToken : applicationAccessToken;
|
|
268636
268641
|
const allowFallback = prefer === "application";
|
|
268642
|
+
note(`preferredToken is ${preferredToken}`, "info");
|
|
268643
|
+
note(`fallbackToken is ${fallbackToken}`, "info");
|
|
268644
|
+
note(`allowFallback is ${allowFallback}`, "info");
|
|
268637
268645
|
if (preferredToken) {
|
|
268638
268646
|
return preferredToken;
|
|
268639
268647
|
}
|
|
@@ -271346,6 +271354,7 @@ var DotEnvSchema3 = z.object({
|
|
|
271346
271354
|
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT: UrlSchema3.optional(),
|
|
271347
271355
|
SETTLEMINT_PORTAL_REST_ENDPOINT: UrlSchema3.optional(),
|
|
271348
271356
|
SETTLEMINT_HD_PRIVATE_KEY: UniqueNameSchema3.optional(),
|
|
271357
|
+
SETTLEMINT_ACCESSIBLE_PRIVATE_KEY: UniqueNameSchema3.optional(),
|
|
271349
271358
|
SETTLEMINT_MINIO: UniqueNameSchema3.optional(),
|
|
271350
271359
|
SETTLEMINT_MINIO_ENDPOINT: UrlSchema3.optional(),
|
|
271351
271360
|
SETTLEMINT_MINIO_ACCESS_KEY: z.string().optional(),
|
|
@@ -273215,10 +273224,17 @@ var privateKeyCreate = (gqlClient) => {
|
|
|
273215
273224
|
const { applicationUniqueName, blockchainNodeUniqueNames, ...otherArgs } = args;
|
|
273216
273225
|
const application = await applicationRead(gqlClient)(applicationUniqueName);
|
|
273217
273226
|
const blockchainNodes = blockchainNodeUniqueNames ? await Promise.all(blockchainNodeUniqueNames.map((uniqueName) => blockchainNodeRead(gqlClient)(uniqueName))) : [];
|
|
273227
|
+
const platformConfig = await getPlatformConfig(gqlClient)();
|
|
273228
|
+
const defaultProvider = platformConfig.deploymentEngineTargets.find((target) => !target.disabled && target.clusters.some((cluster) => !cluster.disabled));
|
|
273229
|
+
const defaultRegion = defaultProvider?.clusters.find((cluster) => !cluster.disabled);
|
|
273218
273230
|
const { createPrivateKey: privateKey } = await gqlClient.request(createPrivateKey, {
|
|
273219
273231
|
...otherArgs,
|
|
273220
273232
|
applicationId: application.id,
|
|
273221
|
-
blockchainNodes: blockchainNodes.map((node) => node?.id)
|
|
273233
|
+
blockchainNodes: blockchainNodes.map((node) => node?.id),
|
|
273234
|
+
provider: defaultProvider?.id ?? "gke",
|
|
273235
|
+
region: defaultRegion?.id?.split("-")[1] ?? "europe",
|
|
273236
|
+
size: "SMALL",
|
|
273237
|
+
type: "SHARED"
|
|
273222
273238
|
});
|
|
273223
273239
|
return privateKey;
|
|
273224
273240
|
};
|
|
@@ -273567,13 +273583,13 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
|
|
|
273567
273583
|
}
|
|
273568
273584
|
}
|
|
273569
273585
|
return esm_default5({
|
|
273570
|
-
message: "What is the application access token for your application in SettleMint?",
|
|
273586
|
+
message: "What is the application access token for your application in SettleMint? (format: sm_aat_...)",
|
|
273571
273587
|
validate(value4) {
|
|
273572
273588
|
try {
|
|
273573
273589
|
validate3(ApplicationAccessTokenSchema3, value4);
|
|
273574
273590
|
return true;
|
|
273575
273591
|
} catch (error5) {
|
|
273576
|
-
return "Invalid application access token";
|
|
273592
|
+
return "Invalid application access token, it should start with sm_aat_...";
|
|
273577
273593
|
}
|
|
273578
273594
|
}
|
|
273579
273595
|
});
|
|
@@ -273601,7 +273617,7 @@ async function applicationPrompt(env2, applications, accept) {
|
|
|
273601
273617
|
const application = await esm_default2({
|
|
273602
273618
|
message: "Which application do you want to connect to?",
|
|
273603
273619
|
choices: applications.map((applications2) => ({
|
|
273604
|
-
name: applications2.name
|
|
273620
|
+
name: `${applications2.name} (${applications2.uniqueName})`,
|
|
273605
273621
|
value: applications2
|
|
273606
273622
|
})),
|
|
273607
273623
|
default: defaultApplication
|
|
@@ -273637,7 +273653,7 @@ async function servicePrompt({
|
|
|
273637
273653
|
return services[0];
|
|
273638
273654
|
}
|
|
273639
273655
|
const choices = services.map((service) => ({
|
|
273640
|
-
name: service.name
|
|
273656
|
+
name: `${service.name} (${service.uniqueName})`,
|
|
273641
273657
|
value: service
|
|
273642
273658
|
}));
|
|
273643
273659
|
if (!isRequired) {
|
|
@@ -273972,7 +273988,7 @@ async function workspacePrompt(env2, workspaces, accept) {
|
|
|
273972
273988
|
const workspace = await esm_default2({
|
|
273973
273989
|
message: "Which workspace do you want to connect to?",
|
|
273974
273990
|
choices: workspaces.map((workspace2) => ({
|
|
273975
|
-
name: workspace2.name
|
|
273991
|
+
name: `${workspace2.name} (${workspace2.uniqueName})`,
|
|
273976
273992
|
value: workspace2
|
|
273977
273993
|
})),
|
|
273978
273994
|
default: defaultWorkspace
|
|
@@ -274961,13 +274977,13 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
|
|
|
274961
274977
|
}
|
|
274962
274978
|
}
|
|
274963
274979
|
return esm_default5({
|
|
274964
|
-
message: "What is your personal access token in SettleMint?",
|
|
274980
|
+
message: "What is your personal access token in SettleMint? (format: sm_pat_...)",
|
|
274965
274981
|
validate(value4) {
|
|
274966
274982
|
try {
|
|
274967
274983
|
validate3(PersonalAccessTokenSchema3, value4);
|
|
274968
274984
|
return true;
|
|
274969
274985
|
} catch (error5) {
|
|
274970
|
-
return "Invalid personal access token";
|
|
274986
|
+
return "Invalid personal access token, it should start with sm_pat_...";
|
|
274971
274987
|
}
|
|
274972
274988
|
}
|
|
274973
274989
|
});
|
|
@@ -275110,22 +275126,38 @@ async function waitForCompletion({
|
|
|
275110
275126
|
return spinner({
|
|
275111
275127
|
startMessage: `Waiting for ${type4} to be ${getActionLabel(action)}`,
|
|
275112
275128
|
stopMessage: `Waiting for ${type4} to be ${getActionLabel(action)}`,
|
|
275113
|
-
task: async () => {
|
|
275129
|
+
task: async (spinner2) => {
|
|
275114
275130
|
const startTime = Date.now();
|
|
275115
275131
|
while (true) {
|
|
275116
275132
|
try {
|
|
275117
275133
|
const resource = await service.read(uniqueName);
|
|
275118
275134
|
if (resource.status === "COMPLETED") {
|
|
275119
|
-
|
|
275135
|
+
if (spinner2) {
|
|
275136
|
+
spinner2.text = `${capitalizeFirstLetter(type4)} is ${getActionLabel(action)}`;
|
|
275137
|
+
} else {
|
|
275138
|
+
note(`${capitalizeFirstLetter(type4)} is ${getActionLabel(action)}`);
|
|
275139
|
+
}
|
|
275120
275140
|
return true;
|
|
275121
275141
|
}
|
|
275122
275142
|
if (resource.status === "FAILED") {
|
|
275123
|
-
|
|
275143
|
+
if (spinner2) {
|
|
275144
|
+
spinner2.text = `${capitalizeFirstLetter(type4)} failed to ${getActionLabel(action)}`;
|
|
275145
|
+
} else {
|
|
275146
|
+
note(`${capitalizeFirstLetter(type4)} failed to ${getActionLabel(action)}`);
|
|
275147
|
+
}
|
|
275124
275148
|
return true;
|
|
275125
275149
|
}
|
|
275126
|
-
|
|
275150
|
+
if (spinner2) {
|
|
275151
|
+
spinner2.text = `${capitalizeFirstLetter(type4)} is not ready yet (status: ${resource.status})`;
|
|
275152
|
+
} else {
|
|
275153
|
+
note(`${capitalizeFirstLetter(type4)} is not ready yet (status: ${resource.status})`);
|
|
275154
|
+
}
|
|
275127
275155
|
} catch (error5) {
|
|
275128
|
-
|
|
275156
|
+
if (spinner2) {
|
|
275157
|
+
spinner2.text = `${capitalizeFirstLetter(type4)} is not ready yet (status: UNKNOWN)`;
|
|
275158
|
+
} else {
|
|
275159
|
+
note(`${capitalizeFirstLetter(type4)} is not ready yet (status: UNKNOWN)`);
|
|
275160
|
+
}
|
|
275129
275161
|
}
|
|
275130
275162
|
if (Date.now() - startTime > maxTimeout) {
|
|
275131
275163
|
throw new TimeoutError(`Operation timed out after ${maxTimeout / 60000} minutes for ${type4} with unique name ${uniqueName}`);
|
|
@@ -275222,13 +275254,14 @@ async function regionPrompt(provider, argument) {
|
|
|
275222
275254
|
function getCreateCommand({
|
|
275223
275255
|
name: name2,
|
|
275224
275256
|
type: type4,
|
|
275257
|
+
subType,
|
|
275225
275258
|
alias,
|
|
275226
275259
|
examples,
|
|
275227
275260
|
execute: execute2,
|
|
275228
275261
|
usePersonalAccessToken = true,
|
|
275229
275262
|
requiresDeployment = true
|
|
275230
275263
|
}) {
|
|
275231
|
-
const cmd2 = new Command(sanitizeCommandName(name2)).alias(alias).description(`Create a new ${type4} in the SettleMint platform.`).usage(createExamples(examples)).argument("<name>", `The ${type4} name`).option("-a, --accept-defaults", "Accept the default values").option("-d, --default", `Save as default ${type4}`).option("--prod", "Connect to production environment");
|
|
275264
|
+
const cmd2 = new Command(sanitizeCommandName(name2)).alias(alias).description(`Create a new ${subType ? `${subType} ${type4}` : type4} in the SettleMint platform.`).usage(createExamples(examples)).argument("<name>", `The ${subType ? `${subType} ${type4}` : type4} name`).option("-a, --accept-defaults", "Accept the default values").option("-d, --default", `Save as default ${type4}`).option("--prod", "Connect to production environment");
|
|
275232
275265
|
if (requiresDeployment) {
|
|
275233
275266
|
cmd2.option("-w, --wait", "Wait until deployed").option("-r, --restart-if-timeout", "Restart if wait time is exceeded");
|
|
275234
275267
|
}
|
|
@@ -275246,7 +275279,7 @@ function getCreateCommand({
|
|
|
275246
275279
|
instance
|
|
275247
275280
|
});
|
|
275248
275281
|
const platformConfig = await settlemint.platform.config();
|
|
275249
|
-
if (
|
|
275282
|
+
if (cmd2.options.some((option) => option.long === "--provider")) {
|
|
275250
275283
|
const selectedProvider = await providerPrompt(platformConfig, provider);
|
|
275251
275284
|
if (!selectedProvider) {
|
|
275252
275285
|
return nothingSelectedError("provider");
|
|
@@ -275306,6 +275339,7 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275306
275339
|
return getCreateCommand({
|
|
275307
275340
|
name: "besu",
|
|
275308
275341
|
type: "blockchain network",
|
|
275342
|
+
subType: "Besu",
|
|
275309
275343
|
alias: "b",
|
|
275310
275344
|
execute: (cmd2, baseAction) => {
|
|
275311
275345
|
addClusterServiceArgs(cmd2).option("-a, --application <application>", "The unique name of the application to create the network in (defaults to application from env)").requiredOption("--node-name <name>", "Name of the node").option("--chain-id <chainId>", "The chain ID for the network", parseNumber).option("--contract-size-limit <limit>", "Maximum contract size limit", parseNumber).option("--evm-stack-size <size>", "EVM stack size", parseNumber).option("--gas-limit <limit>", "Block gas limit").option("--gas-price <price>", "Gas price in wei", parseNumber).option("--seconds-per-block <seconds>", "Block time in seconds", parseNumber).action(async (name2, {
|
|
@@ -275701,6 +275735,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275701
275735
|
return getCreateCommand({
|
|
275702
275736
|
name: "besu",
|
|
275703
275737
|
type: "blockchain node",
|
|
275738
|
+
subType: "Besu",
|
|
275704
275739
|
alias: "b",
|
|
275705
275740
|
execute: (cmd2, baseAction) => {
|
|
275706
275741
|
addClusterServiceArgs(cmd2).option("-a, --application <application>", "The application unique name to create the node in (defaults to application from env)").option("--blockchain-network <blockchainNetwork>", "Blockchain network unique name to add this node to").option("--node-identity <nodeIdentity>", "EC DSA P256 private key to use as the node identity").addOption(new Option("--node-type <nodeType>", "Type of the node").choices(["VALIDATOR", "NON_VALIDATOR"]).makeOptionMandatory()).action(async (name2, {
|
|
@@ -275789,6 +275824,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275789
275824
|
return getCreateCommand({
|
|
275790
275825
|
name: "blockscout",
|
|
275791
275826
|
type: "insights",
|
|
275827
|
+
subType: "Blockscout",
|
|
275792
275828
|
alias: "bs",
|
|
275793
275829
|
execute: (cmd2, baseAction) => {
|
|
275794
275830
|
addClusterServiceArgs(cmd2).option("--application <application>", "Application unique name").option("--load-balancer <loadBalancer>", "Load Balancer unique name (mutually exclusive with blockchain-node)").option("--blockchain-node <blockchainNode>", "Blockchain Node unique name (mutually exclusive with load-balancer)").action(async (name2, { application, provider, region, size, type: type4, blockchainNode, loadBalancer, acceptDefaults, ...defaultArgs }) => {
|
|
@@ -275866,6 +275902,7 @@ function hasuraIntegrationCreateCommand() {
|
|
|
275866
275902
|
return getCreateCommand({
|
|
275867
275903
|
name: "hasura",
|
|
275868
275904
|
type: "integration tool",
|
|
275905
|
+
subType: "Hasura",
|
|
275869
275906
|
alias: "ha",
|
|
275870
275907
|
execute: (cmd2, baseAction) => {
|
|
275871
275908
|
addClusterServiceArgs(cmd2).option("--application <application>", "Application unique name").action(async (name2, { application, provider, region, size, type: type4, ...defaultArgs }) => {
|
|
@@ -275925,6 +275962,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
275925
275962
|
return getCreateCommand({
|
|
275926
275963
|
name: "graph",
|
|
275927
275964
|
type: "middleware",
|
|
275965
|
+
subType: "The Graph",
|
|
275928
275966
|
alias: "gr",
|
|
275929
275967
|
execute: (cmd2, baseAction) => {
|
|
275930
275968
|
addClusterServiceArgs(cmd2).option("--application <application>", "Application unique name").option("--blockchain-node <blockchainNode>", "Blockchain Node unique name").action(async (name2, { application, blockchainNode, provider, region, size, type: type4, acceptDefaults, ...defaultArgs }) => {
|
|
@@ -275995,6 +276033,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
275995
276033
|
return getCreateCommand({
|
|
275996
276034
|
name: "smart-contract-portal",
|
|
275997
276035
|
type: "middleware",
|
|
276036
|
+
subType: "Smart Contract Portal",
|
|
275998
276037
|
alias: "scp",
|
|
275999
276038
|
execute: (cmd2, baseAction) => {
|
|
276000
276039
|
addClusterServiceArgs(cmd2).option("--application <application>", "Application unique name").option("--load-balancer <loadBalancer>", "Load Balancer unique name (mutually exclusive with blockchain-node)").option("--blockchain-node <blockchainNode>", "Blockchain Node unique name (mutually exclusive with load-balancer)").option("--abis <abis...>", "Path to abi file(s)").option("--include-predeployed-abis <includePredeployedAbis...>", "Include pre-deployed abis (run `settlemint platform config` to see available pre-deployed abis)").action(async (name2, {
|
|
@@ -276100,19 +276139,78 @@ function middlewareCreateCommand() {
|
|
|
276100
276139
|
return new Command("middleware").alias("mw").description("Create a middleware service in the SettleMint platform").addCommand(graphMiddlewareCreateCommand()).addCommand(smartContractPortalMiddlewareCreateCommand());
|
|
276101
276140
|
}
|
|
276102
276141
|
|
|
276142
|
+
// src/commands/platform/private-key/accessible-ecdsa-p256/create.ts
|
|
276143
|
+
function privateKeyAccessibleCreateCommand() {
|
|
276144
|
+
return getCreateCommand({
|
|
276145
|
+
name: "ACCESSIBLE-ECDSA-P256",
|
|
276146
|
+
type: "private key",
|
|
276147
|
+
subType: "ACCESSIBLE-ECDSA-P256",
|
|
276148
|
+
alias: "acc",
|
|
276149
|
+
execute: (cmd2, baseAction) => {
|
|
276150
|
+
cmd2.option("--application <application>", "Application unique name").option("--blockchain-node <blockchainNode>", "Blockchain Node unique name").action(async (name2, { application, blockchainNode, acceptDefaults, ...defaultArgs }) => {
|
|
276151
|
+
return baseAction({
|
|
276152
|
+
...defaultArgs,
|
|
276153
|
+
acceptDefaults
|
|
276154
|
+
}, async (settlemint, env2) => {
|
|
276155
|
+
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276156
|
+
if (!applicationUniqueName) {
|
|
276157
|
+
return missingApplication();
|
|
276158
|
+
}
|
|
276159
|
+
let blockchainNodeUniqueName = blockchainNode;
|
|
276160
|
+
if (!blockchainNodeUniqueName) {
|
|
276161
|
+
const blockchainNodes = await settlemint.blockchainNode.list(applicationUniqueName);
|
|
276162
|
+
const node = await blockchainNodePrompt({
|
|
276163
|
+
env: env2,
|
|
276164
|
+
nodes: blockchainNodes,
|
|
276165
|
+
accept: acceptDefaults,
|
|
276166
|
+
isRequired: true
|
|
276167
|
+
});
|
|
276168
|
+
if (!node) {
|
|
276169
|
+
return nothingSelectedError("blockchain node");
|
|
276170
|
+
}
|
|
276171
|
+
blockchainNodeUniqueName = node.uniqueName;
|
|
276172
|
+
}
|
|
276173
|
+
const result = await settlemint.privateKey.create({
|
|
276174
|
+
name: name2,
|
|
276175
|
+
applicationUniqueName,
|
|
276176
|
+
privateKeyType: "ACCESSIBLE_ECDSA_P256",
|
|
276177
|
+
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276178
|
+
});
|
|
276179
|
+
return {
|
|
276180
|
+
result
|
|
276181
|
+
};
|
|
276182
|
+
});
|
|
276183
|
+
});
|
|
276184
|
+
},
|
|
276185
|
+
examples: [
|
|
276186
|
+
{
|
|
276187
|
+
description: "Create a private key and save as default",
|
|
276188
|
+
command: "platform create private-key accessible-ecdsa-p256 my-key --accept-defaults -d"
|
|
276189
|
+
},
|
|
276190
|
+
{
|
|
276191
|
+
description: "Create a private key in a different application",
|
|
276192
|
+
command: "platform create private-key accessible-ecdsa-p256 my-key --application my-app"
|
|
276193
|
+
},
|
|
276194
|
+
{
|
|
276195
|
+
description: "Create a private key linked to a blockchain node",
|
|
276196
|
+
command: "platform create private-key accessible-ecdsa-p256 my-key --blockchain-node node-123"
|
|
276197
|
+
}
|
|
276198
|
+
]
|
|
276199
|
+
});
|
|
276200
|
+
}
|
|
276201
|
+
|
|
276103
276202
|
// src/commands/platform/private-key/hd-ecdsa-p256/create.ts
|
|
276104
276203
|
function privateKeyHdCreateCommand() {
|
|
276105
276204
|
return getCreateCommand({
|
|
276106
276205
|
name: "HD-ECDSA-P256",
|
|
276107
276206
|
type: "private key",
|
|
276207
|
+
subType: "HD-ECDSA-P256",
|
|
276108
276208
|
alias: "hd",
|
|
276109
276209
|
execute: (cmd2, baseAction) => {
|
|
276110
|
-
|
|
276210
|
+
cmd2.option("--application <application>", "Application unique name").option("--blockchain-node <blockchainNode>", "Blockchain Node unique name").action(async (name2, { application, blockchainNode, acceptDefaults, ...defaultArgs }) => {
|
|
276111
276211
|
return baseAction({
|
|
276112
276212
|
...defaultArgs,
|
|
276113
|
-
acceptDefaults
|
|
276114
|
-
provider,
|
|
276115
|
-
region
|
|
276213
|
+
acceptDefaults
|
|
276116
276214
|
}, async (settlemint, env2) => {
|
|
276117
276215
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276118
276216
|
if (!applicationUniqueName) {
|
|
@@ -276136,11 +276234,7 @@ function privateKeyHdCreateCommand() {
|
|
|
276136
276234
|
name: name2,
|
|
276137
276235
|
applicationUniqueName,
|
|
276138
276236
|
privateKeyType: "HD_ECDSA_P256",
|
|
276139
|
-
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276140
|
-
provider,
|
|
276141
|
-
region,
|
|
276142
|
-
size,
|
|
276143
|
-
type: type4
|
|
276237
|
+
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276144
276238
|
});
|
|
276145
276239
|
return {
|
|
276146
276240
|
result,
|
|
@@ -276176,14 +276270,13 @@ function privateKeyHsmCreateCommand() {
|
|
|
276176
276270
|
return getCreateCommand({
|
|
276177
276271
|
name: "HSM-ECDSA-P256",
|
|
276178
276272
|
type: "private key",
|
|
276179
|
-
|
|
276273
|
+
subType: "HSM-ECDSA-P256",
|
|
276274
|
+
alias: "hsm",
|
|
276180
276275
|
execute: (cmd2, baseAction) => {
|
|
276181
|
-
|
|
276276
|
+
cmd2.option("--application <application>", "Application unique name").option("--blockchain-node <blockchainNode>", "Blockchain Node unique name").action(async (name2, { application, blockchainNode, acceptDefaults, ...defaultArgs }) => {
|
|
276182
276277
|
return baseAction({
|
|
276183
276278
|
...defaultArgs,
|
|
276184
|
-
acceptDefaults
|
|
276185
|
-
provider,
|
|
276186
|
-
region
|
|
276279
|
+
acceptDefaults
|
|
276187
276280
|
}, async (settlemint, env2) => {
|
|
276188
276281
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276189
276282
|
if (!applicationUniqueName) {
|
|
@@ -276207,11 +276300,7 @@ function privateKeyHsmCreateCommand() {
|
|
|
276207
276300
|
name: name2,
|
|
276208
276301
|
applicationUniqueName,
|
|
276209
276302
|
privateKeyType: "HSM_ECDSA_P256",
|
|
276210
|
-
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276211
|
-
provider,
|
|
276212
|
-
region,
|
|
276213
|
-
size,
|
|
276214
|
-
type: type4
|
|
276303
|
+
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276215
276304
|
});
|
|
276216
276305
|
return {
|
|
276217
276306
|
result
|
|
@@ -276238,7 +276327,7 @@ function privateKeyHsmCreateCommand() {
|
|
|
276238
276327
|
|
|
276239
276328
|
// src/commands/platform/private-key/create.ts
|
|
276240
276329
|
function privateKeyCreateCommand() {
|
|
276241
|
-
return new Command("private-key").alias("pk").description("Create a private key in the SettleMint platform").addCommand(privateKeyHdCreateCommand()).addCommand(privateKeyHsmCreateCommand());
|
|
276330
|
+
return new Command("private-key").alias("pk").description("Create a private key in the SettleMint platform").addCommand(privateKeyHdCreateCommand()).addCommand(privateKeyHsmCreateCommand()).addCommand(privateKeyAccessibleCreateCommand());
|
|
276242
276331
|
}
|
|
276243
276332
|
|
|
276244
276333
|
// src/commands/platform/storage/ipfs/create.ts
|
|
@@ -276246,6 +276335,7 @@ function ipfsStorageCreateCommand() {
|
|
|
276246
276335
|
return getCreateCommand({
|
|
276247
276336
|
name: "ipfs",
|
|
276248
276337
|
type: "storage",
|
|
276338
|
+
subType: "IPFS",
|
|
276249
276339
|
alias: "ip",
|
|
276250
276340
|
execute: (cmd2, baseAction) => {
|
|
276251
276341
|
addClusterServiceArgs(cmd2).option("--application <application>", "Application unique name").action(async (name2, { application, provider, region, size, type: type4, ...defaultArgs }) => {
|
|
@@ -276298,6 +276388,7 @@ function minioStorageCreateCommand() {
|
|
|
276298
276388
|
return getCreateCommand({
|
|
276299
276389
|
name: "minio",
|
|
276300
276390
|
type: "storage",
|
|
276391
|
+
subType: "MinIO",
|
|
276301
276392
|
alias: "m",
|
|
276302
276393
|
execute: (cmd2, baseAction) => {
|
|
276303
276394
|
addClusterServiceArgs(cmd2).option("--application <application>", "Application unique name").action(async (name2, { application, provider, region, size, type: type4, ...defaultArgs }) => {
|
|
@@ -276625,25 +276716,6 @@ function middlewareRestartCommand() {
|
|
|
276625
276716
|
return new Command("middleware").alias("mw").description("Restart a middleware service in the SettleMint platform").addCommand(graphRestartCommand()).addCommand(smartContractPortalRestartCommand());
|
|
276626
276717
|
}
|
|
276627
276718
|
|
|
276628
|
-
// src/commands/platform/private-key/hd-ecdsa-p256/restart.ts
|
|
276629
|
-
function hdEcdsaP256RestartCommand() {
|
|
276630
|
-
return getRestartCommand({
|
|
276631
|
-
name: "hd-ecdsa-p256",
|
|
276632
|
-
type: "private key",
|
|
276633
|
-
subType: "hd-ecdsa-p256",
|
|
276634
|
-
alias: "hd",
|
|
276635
|
-
envKey: "SETTLEMINT_HD_PRIVATE_KEY",
|
|
276636
|
-
restartFunction: async (settlemint, uniqueName) => {
|
|
276637
|
-
return settlemint.privateKey.restart(uniqueName);
|
|
276638
|
-
}
|
|
276639
|
-
});
|
|
276640
|
-
}
|
|
276641
|
-
|
|
276642
|
-
// src/commands/platform/private-key/restart.ts
|
|
276643
|
-
function privateKeyRestartCommand() {
|
|
276644
|
-
return new Command("private-key").alias("pk").description("Restart a private key in the SettleMint platform").addCommand(hdEcdsaP256RestartCommand());
|
|
276645
|
-
}
|
|
276646
|
-
|
|
276647
276719
|
// src/commands/platform/storage/ipfs/restart.ts
|
|
276648
276720
|
function ipfsRestartCommand() {
|
|
276649
276721
|
return getRestartCommand({
|
|
@@ -276677,7 +276749,7 @@ function storageRestartCommand() {
|
|
|
276677
276749
|
|
|
276678
276750
|
// src/commands/platform/restart.ts
|
|
276679
276751
|
function restartCommand() {
|
|
276680
|
-
const cmd2 = new Command("restart").description("Restart a resource in the SettleMint platform").addCommand(blockchainNetworkRestartCommand()).addCommand(customDeploymentRestartCommand()).addCommand(insightsRestartCommand()).addCommand(integrationToolRestartCommand()).addCommand(middlewareRestartCommand()).addCommand(
|
|
276752
|
+
const cmd2 = new Command("restart").description("Restart a resource in the SettleMint platform").addCommand(blockchainNetworkRestartCommand()).addCommand(customDeploymentRestartCommand()).addCommand(insightsRestartCommand()).addCommand(integrationToolRestartCommand()).addCommand(middlewareRestartCommand()).addCommand(storageRestartCommand());
|
|
276681
276753
|
return cmd2;
|
|
276682
276754
|
}
|
|
276683
276755
|
|
|
@@ -277072,7 +277144,7 @@ async function addressPrompt({
|
|
|
277072
277144
|
return defaultAddress;
|
|
277073
277145
|
}
|
|
277074
277146
|
if (possiblePrivateKeys.length === 0) {
|
|
277075
|
-
cancel3("No private key is activated on the node to sign the transaction.");
|
|
277147
|
+
cancel3("No ECDSA P256 or HSM ECDSA P256 private key is activated on the node to sign the transaction.");
|
|
277076
277148
|
}
|
|
277077
277149
|
const address = await esm_default2({
|
|
277078
277150
|
message: "Which private key do you want to deploy from?",
|
|
@@ -277161,6 +277233,7 @@ function hardhatDeployRemoteCommand() {
|
|
|
277161
277233
|
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
277162
277234
|
const env2 = await loadEnv2(false, !!prod);
|
|
277163
277235
|
const instance = await instancePrompt(env2, true);
|
|
277236
|
+
note2(`instance is ${instance}`, "info");
|
|
277164
277237
|
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
277165
277238
|
env: env2,
|
|
277166
277239
|
instance,
|
|
@@ -277746,4 +277819,4 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
277746
277819
|
ascii();
|
|
277747
277820
|
sdkCliCommand();
|
|
277748
277821
|
|
|
277749
|
-
//# debugId=
|
|
277822
|
+
//# debugId=5F15873D4450E49964756E2164756E21
|