@settlemint/sdk-cli 1.0.2-praa69ee05 → 1.0.2-prd506b430
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 +138 -76
- package/dist/cli.js.map +30 -31
- 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.XfKZDE1ZxM:/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.XfKZDE1ZxM:/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.XfKZDE1ZxM:/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.XfKZDE1ZxM:/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-prd506b430",
|
|
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.XfKZDE1ZxM:/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-prd506b430",
|
|
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-prd506b430",
|
|
267539
|
+
"@settlemint/sdk-utils": "1.0.2-prd506b430",
|
|
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.XfKZDE1ZxM:/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
|
}
|
|
@@ -270847,8 +270855,8 @@ ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes2.default.cursor
|
|
|
270847
270855
|
|
|
270848
270856
|
// src/commands/codegen/subgraph-name.prompt.ts
|
|
270849
270857
|
var ALL = "All";
|
|
270850
|
-
async function subgraphNamePrompt(env2) {
|
|
270851
|
-
const autoAccept = is_in_ci_default;
|
|
270858
|
+
async function subgraphNamePrompt(env2, accept) {
|
|
270859
|
+
const autoAccept = is_in_ci_default || !!accept;
|
|
270852
270860
|
const subgraphNames = env2.SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?.map((endpoint) => endpoint.split("/").pop()).filter(Boolean) ?? [];
|
|
270853
270861
|
if (autoAccept) {
|
|
270854
270862
|
return subgraphNames;
|
|
@@ -270860,7 +270868,7 @@ async function subgraphNamePrompt(env2) {
|
|
|
270860
270868
|
return subgraphNames;
|
|
270861
270869
|
}
|
|
270862
270870
|
const subgraphName = await esm_default2({
|
|
270863
|
-
message: "Which
|
|
270871
|
+
message: "Which The Graph subgraph do you want to generate types for?",
|
|
270864
270872
|
choices: [ALL, ...subgraphNames].map((name2) => ({
|
|
270865
270873
|
name: name2,
|
|
270866
270874
|
value: name2
|
|
@@ -271115,7 +271123,7 @@ function codegenCommand() {
|
|
|
271115
271123
|
intro("Generating GraphQL types and queries for your dApp");
|
|
271116
271124
|
const env2 = await loadEnv(true, !!prod);
|
|
271117
271125
|
if (!Array.isArray(thegraphSubgraphNames)) {
|
|
271118
|
-
thegraphSubgraphNames = await subgraphNamePrompt(env2);
|
|
271126
|
+
thegraphSubgraphNames = await subgraphNamePrompt(env2, true);
|
|
271119
271127
|
}
|
|
271120
271128
|
const { hasura, portal, thegraph, blockscout } = await spinner({
|
|
271121
271129
|
startMessage: "Testing configured GraphQL schema",
|
|
@@ -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
|
};
|
|
@@ -273573,7 +273589,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
|
|
|
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) {
|
|
@@ -273776,12 +273792,12 @@ async function instancePrompt(env2, accept, freeTextInput = false, isCi = is_in_
|
|
|
273776
273792
|
const defaultInstance = env2.SETTLEMINT_INSTANCE;
|
|
273777
273793
|
const defaultPossible = autoAccept && defaultInstance;
|
|
273778
273794
|
if (defaultPossible) {
|
|
273779
|
-
return defaultInstance;
|
|
273795
|
+
return sanitizeInstanceUrl(defaultInstance);
|
|
273780
273796
|
}
|
|
273781
273797
|
const defaultLoginInstance = await getDefaultInstance();
|
|
273782
273798
|
const defaultPromptInstance = defaultInstance ?? defaultLoginInstance ?? "https://console.settlemint.com";
|
|
273783
273799
|
if (isCi) {
|
|
273784
|
-
return defaultPromptInstance;
|
|
273800
|
+
return sanitizeInstanceUrl(defaultPromptInstance);
|
|
273785
273801
|
}
|
|
273786
273802
|
if (freeTextInput) {
|
|
273787
273803
|
const instance = await esm_default4({
|
|
@@ -273804,17 +273820,17 @@ async function instancePrompt(env2, accept, freeTextInput = false, isCi = is_in_
|
|
|
273804
273820
|
cancel3("No instances found. Please run `settlemint login` to configure an instance.");
|
|
273805
273821
|
}
|
|
273806
273822
|
if (knownInstances.length === 1) {
|
|
273807
|
-
return knownInstances[0];
|
|
273823
|
+
return sanitizeInstanceUrl(knownInstances[0]);
|
|
273808
273824
|
}
|
|
273809
273825
|
return esm_default2({
|
|
273810
273826
|
message: "What SettleMint instance do you want to connect to?",
|
|
273811
273827
|
choices: [
|
|
273812
273828
|
...knownInstances.map((instance) => ({
|
|
273813
273829
|
name: instance,
|
|
273814
|
-
value: instance
|
|
273830
|
+
value: sanitizeInstanceUrl(instance)
|
|
273815
273831
|
}))
|
|
273816
273832
|
],
|
|
273817
|
-
default: defaultPromptInstance
|
|
273833
|
+
default: sanitizeInstanceUrl(defaultPromptInstance)
|
|
273818
273834
|
});
|
|
273819
273835
|
}
|
|
273820
273836
|
|
|
@@ -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
|
|
@@ -274967,7 +274983,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
|
|
|
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
|
});
|
|
@@ -275066,7 +275082,7 @@ function logoutCommand() {
|
|
|
275066
275082
|
|
|
275067
275083
|
// src/commands/platform/common/cluster-service.args.ts
|
|
275068
275084
|
function addClusterServiceArgs(cmd2) {
|
|
275069
|
-
return cmd2.
|
|
275085
|
+
return cmd2.option("--provider <provider>", "Network provider (run `settlemint platform config` to see available providers)").option("--region <region>", "Deployment region (run `settlemint platform config` to see available regions)").addOption(new Option("--size <size>", "Network size").choices(["CUSTOM", "LARGE", "MEDIUM", "SMALL"]).argParser((value4) => value4).default("SMALL")).addOption(new Option("--type <type>", "Network type").choices(["DEDICATED", "SHARED"]).argParser((value4) => value4).default("SHARED"));
|
|
275070
275086
|
}
|
|
275071
275087
|
|
|
275072
275088
|
// src/utils/parse-number.ts
|
|
@@ -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}`);
|
|
@@ -275247,7 +275279,7 @@ function getCreateCommand({
|
|
|
275247
275279
|
instance
|
|
275248
275280
|
});
|
|
275249
275281
|
const platformConfig = await settlemint.platform.config();
|
|
275250
|
-
if (
|
|
275282
|
+
if (cmd2.options.some((option) => option.long === "--provider")) {
|
|
275251
275283
|
const selectedProvider = await providerPrompt(platformConfig, provider);
|
|
275252
275284
|
if (!selectedProvider) {
|
|
275253
275285
|
return nothingSelectedError("provider");
|
|
@@ -275310,7 +275342,7 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275310
275342
|
subType: "Besu",
|
|
275311
275343
|
alias: "b",
|
|
275312
275344
|
execute: (cmd2, baseAction) => {
|
|
275313
|
-
addClusterServiceArgs(cmd2).option("-
|
|
275345
|
+
addClusterServiceArgs(cmd2).option("-app, --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, {
|
|
275314
275346
|
application,
|
|
275315
275347
|
chainId,
|
|
275316
275348
|
contractSizeLimit,
|
|
@@ -275538,7 +275570,7 @@ function applicationAccessTokenCreateCommand() {
|
|
|
275538
275570
|
type: "application access token",
|
|
275539
275571
|
alias: "aat",
|
|
275540
275572
|
execute: (cmd2, baseAction) => {
|
|
275541
|
-
cmd2.option("-
|
|
275573
|
+
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 }) => {
|
|
275542
275574
|
return baseAction(defaultArgs, async (settlemint, env2) => {
|
|
275543
275575
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275544
275576
|
if (!applicationUniqueName) {
|
|
@@ -275706,7 +275738,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275706
275738
|
subType: "Besu",
|
|
275707
275739
|
alias: "b",
|
|
275708
275740
|
execute: (cmd2, baseAction) => {
|
|
275709
|
-
addClusterServiceArgs(cmd2).option("-
|
|
275741
|
+
addClusterServiceArgs(cmd2).option("-app, --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, {
|
|
275710
275742
|
application,
|
|
275711
275743
|
provider,
|
|
275712
275744
|
region,
|
|
@@ -276107,6 +276139,66 @@ function middlewareCreateCommand() {
|
|
|
276107
276139
|
return new Command("middleware").alias("mw").description("Create a middleware service in the SettleMint platform").addCommand(graphMiddlewareCreateCommand()).addCommand(smartContractPortalMiddlewareCreateCommand());
|
|
276108
276140
|
}
|
|
276109
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
|
+
|
|
276110
276202
|
// src/commands/platform/private-key/hd-ecdsa-p256/create.ts
|
|
276111
276203
|
function privateKeyHdCreateCommand() {
|
|
276112
276204
|
return getCreateCommand({
|
|
@@ -276115,12 +276207,10 @@ function privateKeyHdCreateCommand() {
|
|
|
276115
276207
|
subType: "HD-ECDSA-P256",
|
|
276116
276208
|
alias: "hd",
|
|
276117
276209
|
execute: (cmd2, baseAction) => {
|
|
276118
|
-
|
|
276210
|
+
cmd2.option("--application <application>", "Application unique name").option("--blockchain-node <blockchainNode>", "Blockchain Node unique name").action(async (name2, { application, blockchainNode, acceptDefaults, ...defaultArgs }) => {
|
|
276119
276211
|
return baseAction({
|
|
276120
276212
|
...defaultArgs,
|
|
276121
|
-
acceptDefaults
|
|
276122
|
-
provider,
|
|
276123
|
-
region
|
|
276213
|
+
acceptDefaults
|
|
276124
276214
|
}, async (settlemint, env2) => {
|
|
276125
276215
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276126
276216
|
if (!applicationUniqueName) {
|
|
@@ -276144,11 +276234,7 @@ function privateKeyHdCreateCommand() {
|
|
|
276144
276234
|
name: name2,
|
|
276145
276235
|
applicationUniqueName,
|
|
276146
276236
|
privateKeyType: "HD_ECDSA_P256",
|
|
276147
|
-
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276148
|
-
provider,
|
|
276149
|
-
region,
|
|
276150
|
-
size,
|
|
276151
|
-
type: type4
|
|
276237
|
+
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276152
276238
|
});
|
|
276153
276239
|
return {
|
|
276154
276240
|
result,
|
|
@@ -276187,12 +276273,10 @@ function privateKeyHsmCreateCommand() {
|
|
|
276187
276273
|
subType: "HSM-ECDSA-P256",
|
|
276188
276274
|
alias: "hsm",
|
|
276189
276275
|
execute: (cmd2, baseAction) => {
|
|
276190
|
-
|
|
276276
|
+
cmd2.option("--application <application>", "Application unique name").option("--blockchain-node <blockchainNode>", "Blockchain Node unique name").action(async (name2, { application, blockchainNode, acceptDefaults, ...defaultArgs }) => {
|
|
276191
276277
|
return baseAction({
|
|
276192
276278
|
...defaultArgs,
|
|
276193
|
-
acceptDefaults
|
|
276194
|
-
provider,
|
|
276195
|
-
region
|
|
276279
|
+
acceptDefaults
|
|
276196
276280
|
}, async (settlemint, env2) => {
|
|
276197
276281
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276198
276282
|
if (!applicationUniqueName) {
|
|
@@ -276216,11 +276300,7 @@ function privateKeyHsmCreateCommand() {
|
|
|
276216
276300
|
name: name2,
|
|
276217
276301
|
applicationUniqueName,
|
|
276218
276302
|
privateKeyType: "HSM_ECDSA_P256",
|
|
276219
|
-
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276220
|
-
provider,
|
|
276221
|
-
region,
|
|
276222
|
-
size,
|
|
276223
|
-
type: type4
|
|
276303
|
+
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276224
276304
|
});
|
|
276225
276305
|
return {
|
|
276226
276306
|
result
|
|
@@ -276247,7 +276327,7 @@ function privateKeyHsmCreateCommand() {
|
|
|
276247
276327
|
|
|
276248
276328
|
// src/commands/platform/private-key/create.ts
|
|
276249
276329
|
function privateKeyCreateCommand() {
|
|
276250
|
-
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());
|
|
276251
276331
|
}
|
|
276252
276332
|
|
|
276253
276333
|
// src/commands/platform/storage/ipfs/create.ts
|
|
@@ -276636,25 +276716,6 @@ function middlewareRestartCommand() {
|
|
|
276636
276716
|
return new Command("middleware").alias("mw").description("Restart a middleware service in the SettleMint platform").addCommand(graphRestartCommand()).addCommand(smartContractPortalRestartCommand());
|
|
276637
276717
|
}
|
|
276638
276718
|
|
|
276639
|
-
// src/commands/platform/private-key/hd-ecdsa-p256/restart.ts
|
|
276640
|
-
function hdEcdsaP256RestartCommand() {
|
|
276641
|
-
return getRestartCommand({
|
|
276642
|
-
name: "hd-ecdsa-p256",
|
|
276643
|
-
type: "private key",
|
|
276644
|
-
subType: "hd-ecdsa-p256",
|
|
276645
|
-
alias: "hd",
|
|
276646
|
-
envKey: "SETTLEMINT_HD_PRIVATE_KEY",
|
|
276647
|
-
restartFunction: async (settlemint, uniqueName) => {
|
|
276648
|
-
return settlemint.privateKey.restart(uniqueName);
|
|
276649
|
-
}
|
|
276650
|
-
});
|
|
276651
|
-
}
|
|
276652
|
-
|
|
276653
|
-
// src/commands/platform/private-key/restart.ts
|
|
276654
|
-
function privateKeyRestartCommand() {
|
|
276655
|
-
return new Command("private-key").alias("pk").description("Restart a private key in the SettleMint platform").addCommand(hdEcdsaP256RestartCommand());
|
|
276656
|
-
}
|
|
276657
|
-
|
|
276658
276719
|
// src/commands/platform/storage/ipfs/restart.ts
|
|
276659
276720
|
function ipfsRestartCommand() {
|
|
276660
276721
|
return getRestartCommand({
|
|
@@ -276688,7 +276749,7 @@ function storageRestartCommand() {
|
|
|
276688
276749
|
|
|
276689
276750
|
// src/commands/platform/restart.ts
|
|
276690
276751
|
function restartCommand() {
|
|
276691
|
-
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());
|
|
276692
276753
|
return cmd2;
|
|
276693
276754
|
}
|
|
276694
276755
|
|
|
@@ -277172,6 +277233,7 @@ function hardhatDeployRemoteCommand() {
|
|
|
277172
277233
|
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
277173
277234
|
const env2 = await loadEnv2(false, !!prod);
|
|
277174
277235
|
const instance = await instancePrompt(env2, true);
|
|
277236
|
+
note2(`instance is ${instance}`, "info");
|
|
277175
277237
|
const accessToken = await getApplicationOrPersonalAccessToken({
|
|
277176
277238
|
env: env2,
|
|
277177
277239
|
instance,
|
|
@@ -277757,4 +277819,4 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
277757
277819
|
ascii();
|
|
277758
277820
|
sdkCliCommand();
|
|
277759
277821
|
|
|
277760
|
-
//# debugId=
|
|
277822
|
+
//# debugId=3F1F7675819DCA0864756E2164756E21
|