@settlemint/sdk-cli 1.0.1-pr24ad0af0 → 1.0.2-main1ddf4c2d
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/README.md +1 -1
- package/dist/cli.js +143 -79
- package/dist/cli.js.map +33 -34
- package/package.json +4 -6
package/README.md
CHANGED
|
@@ -229,7 +229,7 @@ settlemint scs subgraph deploy --accept-defaults <subgraph-name>
|
|
|
229
229
|
|
|
230
230
|
## API Reference
|
|
231
231
|
|
|
232
|
-
See the [documentation](https://github.com/settlemint/sdk/tree/v1.0.
|
|
232
|
+
See the [documentation](https://github.com/settlemint/sdk/tree/v1.0.2/sdk/cli/docs/settlemint.md) for available commands.
|
|
233
233
|
|
|
234
234
|
## Contributing
|
|
235
235
|
|
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.zjzfaMP7Oe:/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.zjzfaMP7Oe:/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.zjzfaMP7Oe:/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.zjzfaMP7Oe:/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.
|
|
226467
|
+
binaryVersion: "1.0.2-main1ddf4c2d",
|
|
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.zjzfaMP7Oe:/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.
|
|
267485
|
+
version: "1.0.2-main1ddf4c2d",
|
|
267485
267486
|
type: "module",
|
|
267486
267487
|
private: false,
|
|
267487
267488
|
license: "FSL-1.1-MIT",
|
|
@@ -267500,9 +267501,7 @@ var package_default = {
|
|
|
267500
267501
|
url: "https://github.com/settlemint/sdk/issues",
|
|
267501
267502
|
email: "support@settlemint.com"
|
|
267502
267503
|
},
|
|
267503
|
-
files: [
|
|
267504
|
-
"dist"
|
|
267505
|
-
],
|
|
267504
|
+
files: ["dist"],
|
|
267506
267505
|
exports: {
|
|
267507
267506
|
"./*": {
|
|
267508
267507
|
types: "./dist/*.d.ts",
|
|
@@ -267536,8 +267535,8 @@ var package_default = {
|
|
|
267536
267535
|
"@inquirer/input": "4.1.3",
|
|
267537
267536
|
"@inquirer/password": "4.0.6",
|
|
267538
267537
|
"@inquirer/select": "4.0.6",
|
|
267539
|
-
"@settlemint/sdk-js": "1.0.
|
|
267540
|
-
"@settlemint/sdk-utils": "1.0.
|
|
267538
|
+
"@settlemint/sdk-js": "1.0.2-main1ddf4c2d",
|
|
267539
|
+
"@settlemint/sdk-utils": "1.0.2-main1ddf4c2d",
|
|
267541
267540
|
"get-tsconfig": "4.8.1",
|
|
267542
267541
|
giget: "1.2.3"
|
|
267543
267542
|
},
|
|
@@ -267837,7 +267836,7 @@ var et = l((Re, tt) => {
|
|
|
267837
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) => {
|
|
267838
267837
|
let n = e.colon || Bt, r = t.match(/\//) || g && t.match(/\\/) ? [""] : [
|
|
267839
267838
|
...g ? [process.cwd()] : [],
|
|
267840
|
-
...(e.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
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.zjzfaMP7Oe:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(n)
|
|
267841
267840
|
], s = g ? e.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", o = g ? s.split(n) : [""];
|
|
267842
267841
|
return g && t.indexOf(".") !== -1 && o[0] !== "" && o.unshift(""), {
|
|
267843
267842
|
pathEnv: r,
|
|
@@ -268396,6 +268395,7 @@ var DotEnvSchema2 = z.object({
|
|
|
268396
268395
|
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT: UrlSchema2.optional(),
|
|
268397
268396
|
SETTLEMINT_PORTAL_REST_ENDPOINT: UrlSchema2.optional(),
|
|
268398
268397
|
SETTLEMINT_HD_PRIVATE_KEY: UniqueNameSchema2.optional(),
|
|
268398
|
+
SETTLEMINT_ACCESSIBLE_PRIVATE_KEY: UniqueNameSchema2.optional(),
|
|
268399
268399
|
SETTLEMINT_MINIO: UniqueNameSchema2.optional(),
|
|
268400
268400
|
SETTLEMINT_MINIO_ENDPOINT: UrlSchema2.optional(),
|
|
268401
268401
|
SETTLEMINT_MINIO_ACCESS_KEY: z.string().optional(),
|
|
@@ -270849,8 +270849,8 @@ ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes2.default.cursor
|
|
|
270849
270849
|
|
|
270850
270850
|
// src/commands/codegen/subgraph-name.prompt.ts
|
|
270851
270851
|
var ALL = "All";
|
|
270852
|
-
async function subgraphNamePrompt(env2) {
|
|
270853
|
-
const autoAccept = is_in_ci_default;
|
|
270852
|
+
async function subgraphNamePrompt(env2, accept) {
|
|
270853
|
+
const autoAccept = is_in_ci_default || !!accept;
|
|
270854
270854
|
const subgraphNames = env2.SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?.map((endpoint) => endpoint.split("/").pop()).filter(Boolean) ?? [];
|
|
270855
270855
|
if (autoAccept) {
|
|
270856
270856
|
return subgraphNames;
|
|
@@ -270862,7 +270862,7 @@ async function subgraphNamePrompt(env2) {
|
|
|
270862
270862
|
return subgraphNames;
|
|
270863
270863
|
}
|
|
270864
270864
|
const subgraphName = await esm_default2({
|
|
270865
|
-
message: "Which
|
|
270865
|
+
message: "Which The Graph subgraph do you want to generate types for?",
|
|
270866
270866
|
choices: [ALL, ...subgraphNames].map((name2) => ({
|
|
270867
270867
|
name: name2,
|
|
270868
270868
|
value: name2
|
|
@@ -271117,7 +271117,7 @@ function codegenCommand() {
|
|
|
271117
271117
|
intro("Generating GraphQL types and queries for your dApp");
|
|
271118
271118
|
const env2 = await loadEnv(true, !!prod);
|
|
271119
271119
|
if (!Array.isArray(thegraphSubgraphNames)) {
|
|
271120
|
-
thegraphSubgraphNames = await subgraphNamePrompt(env2);
|
|
271120
|
+
thegraphSubgraphNames = await subgraphNamePrompt(env2, true);
|
|
271121
271121
|
}
|
|
271122
271122
|
const { hasura, portal, thegraph, blockscout } = await spinner({
|
|
271123
271123
|
startMessage: "Testing configured GraphQL schema",
|
|
@@ -271348,6 +271348,7 @@ var DotEnvSchema3 = z.object({
|
|
|
271348
271348
|
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT: UrlSchema3.optional(),
|
|
271349
271349
|
SETTLEMINT_PORTAL_REST_ENDPOINT: UrlSchema3.optional(),
|
|
271350
271350
|
SETTLEMINT_HD_PRIVATE_KEY: UniqueNameSchema3.optional(),
|
|
271351
|
+
SETTLEMINT_ACCESSIBLE_PRIVATE_KEY: UniqueNameSchema3.optional(),
|
|
271351
271352
|
SETTLEMINT_MINIO: UniqueNameSchema3.optional(),
|
|
271352
271353
|
SETTLEMINT_MINIO_ENDPOINT: UrlSchema3.optional(),
|
|
271353
271354
|
SETTLEMINT_MINIO_ACCESS_KEY: z.string().optional(),
|
|
@@ -273217,10 +273218,17 @@ var privateKeyCreate = (gqlClient) => {
|
|
|
273217
273218
|
const { applicationUniqueName, blockchainNodeUniqueNames, ...otherArgs } = args;
|
|
273218
273219
|
const application = await applicationRead(gqlClient)(applicationUniqueName);
|
|
273219
273220
|
const blockchainNodes = blockchainNodeUniqueNames ? await Promise.all(blockchainNodeUniqueNames.map((uniqueName) => blockchainNodeRead(gqlClient)(uniqueName))) : [];
|
|
273221
|
+
const platformConfig = await getPlatformConfig(gqlClient)();
|
|
273222
|
+
const defaultProvider = platformConfig.deploymentEngineTargets.find((target) => !target.disabled && target.clusters.some((cluster) => !cluster.disabled));
|
|
273223
|
+
const defaultRegion = defaultProvider?.clusters.find((cluster) => !cluster.disabled);
|
|
273220
273224
|
const { createPrivateKey: privateKey } = await gqlClient.request(createPrivateKey, {
|
|
273221
273225
|
...otherArgs,
|
|
273222
273226
|
applicationId: application.id,
|
|
273223
|
-
blockchainNodes: blockchainNodes.map((node) => node?.id)
|
|
273227
|
+
blockchainNodes: blockchainNodes.map((node) => node?.id),
|
|
273228
|
+
provider: defaultProvider?.id ?? "gke",
|
|
273229
|
+
region: defaultRegion?.id?.split("-")[1] ?? "europe",
|
|
273230
|
+
size: "SMALL",
|
|
273231
|
+
type: "SHARED"
|
|
273224
273232
|
});
|
|
273225
273233
|
return privateKey;
|
|
273226
273234
|
};
|
|
@@ -273569,13 +273577,13 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
|
|
|
273569
273577
|
}
|
|
273570
273578
|
}
|
|
273571
273579
|
return esm_default5({
|
|
273572
|
-
message: "What is the application access token for your application in SettleMint?",
|
|
273580
|
+
message: "What is the application access token for your application in SettleMint? (format: sm_aat_...)",
|
|
273573
273581
|
validate(value4) {
|
|
273574
273582
|
try {
|
|
273575
273583
|
validate3(ApplicationAccessTokenSchema3, value4);
|
|
273576
273584
|
return true;
|
|
273577
273585
|
} catch (error5) {
|
|
273578
|
-
return "Invalid application access token";
|
|
273586
|
+
return "Invalid application access token, it should start with sm_aat_...";
|
|
273579
273587
|
}
|
|
273580
273588
|
}
|
|
273581
273589
|
});
|
|
@@ -273603,7 +273611,7 @@ async function applicationPrompt(env2, applications, accept) {
|
|
|
273603
273611
|
const application = await esm_default2({
|
|
273604
273612
|
message: "Which application do you want to connect to?",
|
|
273605
273613
|
choices: applications.map((applications2) => ({
|
|
273606
|
-
name: applications2.name
|
|
273614
|
+
name: `${applications2.name} (${applications2.uniqueName})`,
|
|
273607
273615
|
value: applications2
|
|
273608
273616
|
})),
|
|
273609
273617
|
default: defaultApplication
|
|
@@ -273639,7 +273647,7 @@ async function servicePrompt({
|
|
|
273639
273647
|
return services[0];
|
|
273640
273648
|
}
|
|
273641
273649
|
const choices = services.map((service) => ({
|
|
273642
|
-
name: service.name
|
|
273650
|
+
name: `${service.name} (${service.uniqueName})`,
|
|
273643
273651
|
value: service
|
|
273644
273652
|
}));
|
|
273645
273653
|
if (!isRequired) {
|
|
@@ -273974,7 +273982,7 @@ async function workspacePrompt(env2, workspaces, accept) {
|
|
|
273974
273982
|
const workspace = await esm_default2({
|
|
273975
273983
|
message: "Which workspace do you want to connect to?",
|
|
273976
273984
|
choices: workspaces.map((workspace2) => ({
|
|
273977
|
-
name: workspace2.name
|
|
273985
|
+
name: `${workspace2.name} (${workspace2.uniqueName})`,
|
|
273978
273986
|
value: workspace2
|
|
273979
273987
|
})),
|
|
273980
273988
|
default: defaultWorkspace
|
|
@@ -274963,13 +274971,13 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
|
|
|
274963
274971
|
}
|
|
274964
274972
|
}
|
|
274965
274973
|
return esm_default5({
|
|
274966
|
-
message: "What is your personal access token in SettleMint?",
|
|
274974
|
+
message: "What is your personal access token in SettleMint? (format: sm_pat_...)",
|
|
274967
274975
|
validate(value4) {
|
|
274968
274976
|
try {
|
|
274969
274977
|
validate3(PersonalAccessTokenSchema3, value4);
|
|
274970
274978
|
return true;
|
|
274971
274979
|
} catch (error5) {
|
|
274972
|
-
return "Invalid personal access token";
|
|
274980
|
+
return "Invalid personal access token, it should start with sm_pat_...";
|
|
274973
274981
|
}
|
|
274974
274982
|
}
|
|
274975
274983
|
});
|
|
@@ -275068,7 +275076,7 @@ function logoutCommand() {
|
|
|
275068
275076
|
|
|
275069
275077
|
// src/commands/platform/common/cluster-service.args.ts
|
|
275070
275078
|
function addClusterServiceArgs(cmd2) {
|
|
275071
|
-
return cmd2.
|
|
275079
|
+
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"));
|
|
275072
275080
|
}
|
|
275073
275081
|
|
|
275074
275082
|
// src/utils/parse-number.ts
|
|
@@ -275112,22 +275120,38 @@ async function waitForCompletion({
|
|
|
275112
275120
|
return spinner({
|
|
275113
275121
|
startMessage: `Waiting for ${type4} to be ${getActionLabel(action)}`,
|
|
275114
275122
|
stopMessage: `Waiting for ${type4} to be ${getActionLabel(action)}`,
|
|
275115
|
-
task: async () => {
|
|
275123
|
+
task: async (spinner2) => {
|
|
275116
275124
|
const startTime = Date.now();
|
|
275117
275125
|
while (true) {
|
|
275118
275126
|
try {
|
|
275119
275127
|
const resource = await service.read(uniqueName);
|
|
275120
275128
|
if (resource.status === "COMPLETED") {
|
|
275121
|
-
|
|
275129
|
+
if (spinner2) {
|
|
275130
|
+
spinner2.text = `${capitalizeFirstLetter(type4)} is ${getActionLabel(action)}`;
|
|
275131
|
+
} else {
|
|
275132
|
+
note(`${capitalizeFirstLetter(type4)} is ${getActionLabel(action)}`);
|
|
275133
|
+
}
|
|
275122
275134
|
return true;
|
|
275123
275135
|
}
|
|
275124
275136
|
if (resource.status === "FAILED") {
|
|
275125
|
-
|
|
275137
|
+
if (spinner2) {
|
|
275138
|
+
spinner2.text = `${capitalizeFirstLetter(type4)} failed to ${getActionLabel(action)}`;
|
|
275139
|
+
} else {
|
|
275140
|
+
note(`${capitalizeFirstLetter(type4)} failed to ${getActionLabel(action)}`);
|
|
275141
|
+
}
|
|
275126
275142
|
return true;
|
|
275127
275143
|
}
|
|
275128
|
-
|
|
275144
|
+
if (spinner2) {
|
|
275145
|
+
spinner2.text = `${capitalizeFirstLetter(type4)} is not ready yet (status: ${resource.status})`;
|
|
275146
|
+
} else {
|
|
275147
|
+
note(`${capitalizeFirstLetter(type4)} is not ready yet (status: ${resource.status})`);
|
|
275148
|
+
}
|
|
275129
275149
|
} catch (error5) {
|
|
275130
|
-
|
|
275150
|
+
if (spinner2) {
|
|
275151
|
+
spinner2.text = `${capitalizeFirstLetter(type4)} is not ready yet (status: UNKNOWN)`;
|
|
275152
|
+
} else {
|
|
275153
|
+
note(`${capitalizeFirstLetter(type4)} is not ready yet (status: UNKNOWN)`);
|
|
275154
|
+
}
|
|
275131
275155
|
}
|
|
275132
275156
|
if (Date.now() - startTime > maxTimeout) {
|
|
275133
275157
|
throw new TimeoutError(`Operation timed out after ${maxTimeout / 60000} minutes for ${type4} with unique name ${uniqueName}`);
|
|
@@ -275224,13 +275248,14 @@ async function regionPrompt(provider, argument) {
|
|
|
275224
275248
|
function getCreateCommand({
|
|
275225
275249
|
name: name2,
|
|
275226
275250
|
type: type4,
|
|
275251
|
+
subType,
|
|
275227
275252
|
alias,
|
|
275228
275253
|
examples,
|
|
275229
275254
|
execute: execute2,
|
|
275230
275255
|
usePersonalAccessToken = true,
|
|
275231
275256
|
requiresDeployment = true
|
|
275232
275257
|
}) {
|
|
275233
|
-
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");
|
|
275258
|
+
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");
|
|
275234
275259
|
if (requiresDeployment) {
|
|
275235
275260
|
cmd2.option("-w, --wait", "Wait until deployed").option("-r, --restart-if-timeout", "Restart if wait time is exceeded");
|
|
275236
275261
|
}
|
|
@@ -275248,7 +275273,7 @@ function getCreateCommand({
|
|
|
275248
275273
|
instance
|
|
275249
275274
|
});
|
|
275250
275275
|
const platformConfig = await settlemint.platform.config();
|
|
275251
|
-
if (
|
|
275276
|
+
if (cmd2.options.some((option) => option.long === "--provider")) {
|
|
275252
275277
|
const selectedProvider = await providerPrompt(platformConfig, provider);
|
|
275253
275278
|
if (!selectedProvider) {
|
|
275254
275279
|
return nothingSelectedError("provider");
|
|
@@ -275308,9 +275333,10 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275308
275333
|
return getCreateCommand({
|
|
275309
275334
|
name: "besu",
|
|
275310
275335
|
type: "blockchain network",
|
|
275336
|
+
subType: "Besu",
|
|
275311
275337
|
alias: "b",
|
|
275312
275338
|
execute: (cmd2, baseAction) => {
|
|
275313
|
-
addClusterServiceArgs(cmd2).option("-
|
|
275339
|
+
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
275340
|
application,
|
|
275315
275341
|
chainId,
|
|
275316
275342
|
contractSizeLimit,
|
|
@@ -275538,7 +275564,7 @@ function applicationAccessTokenCreateCommand() {
|
|
|
275538
275564
|
type: "application access token",
|
|
275539
275565
|
alias: "aat",
|
|
275540
275566
|
execute: (cmd2, baseAction) => {
|
|
275541
|
-
cmd2.option("-
|
|
275567
|
+
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
275568
|
return baseAction(defaultArgs, async (settlemint, env2) => {
|
|
275543
275569
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275544
275570
|
if (!applicationUniqueName) {
|
|
@@ -275703,9 +275729,10 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275703
275729
|
return getCreateCommand({
|
|
275704
275730
|
name: "besu",
|
|
275705
275731
|
type: "blockchain node",
|
|
275732
|
+
subType: "Besu",
|
|
275706
275733
|
alias: "b",
|
|
275707
275734
|
execute: (cmd2, baseAction) => {
|
|
275708
|
-
addClusterServiceArgs(cmd2).option("-
|
|
275735
|
+
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, {
|
|
275709
275736
|
application,
|
|
275710
275737
|
provider,
|
|
275711
275738
|
region,
|
|
@@ -275791,6 +275818,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275791
275818
|
return getCreateCommand({
|
|
275792
275819
|
name: "blockscout",
|
|
275793
275820
|
type: "insights",
|
|
275821
|
+
subType: "Blockscout",
|
|
275794
275822
|
alias: "bs",
|
|
275795
275823
|
execute: (cmd2, baseAction) => {
|
|
275796
275824
|
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 }) => {
|
|
@@ -275868,6 +275896,7 @@ function hasuraIntegrationCreateCommand() {
|
|
|
275868
275896
|
return getCreateCommand({
|
|
275869
275897
|
name: "hasura",
|
|
275870
275898
|
type: "integration tool",
|
|
275899
|
+
subType: "Hasura",
|
|
275871
275900
|
alias: "ha",
|
|
275872
275901
|
execute: (cmd2, baseAction) => {
|
|
275873
275902
|
addClusterServiceArgs(cmd2).option("--application <application>", "Application unique name").action(async (name2, { application, provider, region, size, type: type4, ...defaultArgs }) => {
|
|
@@ -275927,6 +275956,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
275927
275956
|
return getCreateCommand({
|
|
275928
275957
|
name: "graph",
|
|
275929
275958
|
type: "middleware",
|
|
275959
|
+
subType: "The Graph",
|
|
275930
275960
|
alias: "gr",
|
|
275931
275961
|
execute: (cmd2, baseAction) => {
|
|
275932
275962
|
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 }) => {
|
|
@@ -275997,6 +276027,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
275997
276027
|
return getCreateCommand({
|
|
275998
276028
|
name: "smart-contract-portal",
|
|
275999
276029
|
type: "middleware",
|
|
276030
|
+
subType: "Smart Contract Portal",
|
|
276000
276031
|
alias: "scp",
|
|
276001
276032
|
execute: (cmd2, baseAction) => {
|
|
276002
276033
|
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, {
|
|
@@ -276102,19 +276133,78 @@ function middlewareCreateCommand() {
|
|
|
276102
276133
|
return new Command("middleware").alias("mw").description("Create a middleware service in the SettleMint platform").addCommand(graphMiddlewareCreateCommand()).addCommand(smartContractPortalMiddlewareCreateCommand());
|
|
276103
276134
|
}
|
|
276104
276135
|
|
|
276136
|
+
// src/commands/platform/private-key/accessible-ecdsa-p256/create.ts
|
|
276137
|
+
function privateKeyAccessibleCreateCommand() {
|
|
276138
|
+
return getCreateCommand({
|
|
276139
|
+
name: "ACCESSIBLE-ECDSA-P256",
|
|
276140
|
+
type: "private key",
|
|
276141
|
+
subType: "ACCESSIBLE-ECDSA-P256",
|
|
276142
|
+
alias: "acc",
|
|
276143
|
+
execute: (cmd2, baseAction) => {
|
|
276144
|
+
cmd2.option("--application <application>", "Application unique name").option("--blockchain-node <blockchainNode>", "Blockchain Node unique name").action(async (name2, { application, blockchainNode, acceptDefaults, ...defaultArgs }) => {
|
|
276145
|
+
return baseAction({
|
|
276146
|
+
...defaultArgs,
|
|
276147
|
+
acceptDefaults
|
|
276148
|
+
}, async (settlemint, env2) => {
|
|
276149
|
+
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276150
|
+
if (!applicationUniqueName) {
|
|
276151
|
+
return missingApplication();
|
|
276152
|
+
}
|
|
276153
|
+
let blockchainNodeUniqueName = blockchainNode;
|
|
276154
|
+
if (!blockchainNodeUniqueName) {
|
|
276155
|
+
const blockchainNodes = await settlemint.blockchainNode.list(applicationUniqueName);
|
|
276156
|
+
const node = await blockchainNodePrompt({
|
|
276157
|
+
env: env2,
|
|
276158
|
+
nodes: blockchainNodes,
|
|
276159
|
+
accept: acceptDefaults,
|
|
276160
|
+
isRequired: true
|
|
276161
|
+
});
|
|
276162
|
+
if (!node) {
|
|
276163
|
+
return nothingSelectedError("blockchain node");
|
|
276164
|
+
}
|
|
276165
|
+
blockchainNodeUniqueName = node.uniqueName;
|
|
276166
|
+
}
|
|
276167
|
+
const result = await settlemint.privateKey.create({
|
|
276168
|
+
name: name2,
|
|
276169
|
+
applicationUniqueName,
|
|
276170
|
+
privateKeyType: "ACCESSIBLE_ECDSA_P256",
|
|
276171
|
+
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276172
|
+
});
|
|
276173
|
+
return {
|
|
276174
|
+
result
|
|
276175
|
+
};
|
|
276176
|
+
});
|
|
276177
|
+
});
|
|
276178
|
+
},
|
|
276179
|
+
examples: [
|
|
276180
|
+
{
|
|
276181
|
+
description: "Create a private key and save as default",
|
|
276182
|
+
command: "platform create private-key accessible-ecdsa-p256 my-key --accept-defaults -d"
|
|
276183
|
+
},
|
|
276184
|
+
{
|
|
276185
|
+
description: "Create a private key in a different application",
|
|
276186
|
+
command: "platform create private-key accessible-ecdsa-p256 my-key --application my-app"
|
|
276187
|
+
},
|
|
276188
|
+
{
|
|
276189
|
+
description: "Create a private key linked to a blockchain node",
|
|
276190
|
+
command: "platform create private-key accessible-ecdsa-p256 my-key --blockchain-node node-123"
|
|
276191
|
+
}
|
|
276192
|
+
]
|
|
276193
|
+
});
|
|
276194
|
+
}
|
|
276195
|
+
|
|
276105
276196
|
// src/commands/platform/private-key/hd-ecdsa-p256/create.ts
|
|
276106
276197
|
function privateKeyHdCreateCommand() {
|
|
276107
276198
|
return getCreateCommand({
|
|
276108
276199
|
name: "HD-ECDSA-P256",
|
|
276109
276200
|
type: "private key",
|
|
276201
|
+
subType: "HD-ECDSA-P256",
|
|
276110
276202
|
alias: "hd",
|
|
276111
276203
|
execute: (cmd2, baseAction) => {
|
|
276112
|
-
|
|
276204
|
+
cmd2.option("--application <application>", "Application unique name").option("--blockchain-node <blockchainNode>", "Blockchain Node unique name").action(async (name2, { application, blockchainNode, acceptDefaults, ...defaultArgs }) => {
|
|
276113
276205
|
return baseAction({
|
|
276114
276206
|
...defaultArgs,
|
|
276115
|
-
acceptDefaults
|
|
276116
|
-
provider,
|
|
276117
|
-
region
|
|
276207
|
+
acceptDefaults
|
|
276118
276208
|
}, async (settlemint, env2) => {
|
|
276119
276209
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276120
276210
|
if (!applicationUniqueName) {
|
|
@@ -276138,11 +276228,7 @@ function privateKeyHdCreateCommand() {
|
|
|
276138
276228
|
name: name2,
|
|
276139
276229
|
applicationUniqueName,
|
|
276140
276230
|
privateKeyType: "HD_ECDSA_P256",
|
|
276141
|
-
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276142
|
-
provider,
|
|
276143
|
-
region,
|
|
276144
|
-
size,
|
|
276145
|
-
type: type4
|
|
276231
|
+
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276146
276232
|
});
|
|
276147
276233
|
return {
|
|
276148
276234
|
result,
|
|
@@ -276178,14 +276264,13 @@ function privateKeyHsmCreateCommand() {
|
|
|
276178
276264
|
return getCreateCommand({
|
|
276179
276265
|
name: "HSM-ECDSA-P256",
|
|
276180
276266
|
type: "private key",
|
|
276181
|
-
|
|
276267
|
+
subType: "HSM-ECDSA-P256",
|
|
276268
|
+
alias: "hsm",
|
|
276182
276269
|
execute: (cmd2, baseAction) => {
|
|
276183
|
-
|
|
276270
|
+
cmd2.option("--application <application>", "Application unique name").option("--blockchain-node <blockchainNode>", "Blockchain Node unique name").action(async (name2, { application, blockchainNode, acceptDefaults, ...defaultArgs }) => {
|
|
276184
276271
|
return baseAction({
|
|
276185
276272
|
...defaultArgs,
|
|
276186
|
-
acceptDefaults
|
|
276187
|
-
provider,
|
|
276188
|
-
region
|
|
276273
|
+
acceptDefaults
|
|
276189
276274
|
}, async (settlemint, env2) => {
|
|
276190
276275
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276191
276276
|
if (!applicationUniqueName) {
|
|
@@ -276209,11 +276294,7 @@ function privateKeyHsmCreateCommand() {
|
|
|
276209
276294
|
name: name2,
|
|
276210
276295
|
applicationUniqueName,
|
|
276211
276296
|
privateKeyType: "HSM_ECDSA_P256",
|
|
276212
|
-
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276213
|
-
provider,
|
|
276214
|
-
region,
|
|
276215
|
-
size,
|
|
276216
|
-
type: type4
|
|
276297
|
+
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276217
276298
|
});
|
|
276218
276299
|
return {
|
|
276219
276300
|
result
|
|
@@ -276240,7 +276321,7 @@ function privateKeyHsmCreateCommand() {
|
|
|
276240
276321
|
|
|
276241
276322
|
// src/commands/platform/private-key/create.ts
|
|
276242
276323
|
function privateKeyCreateCommand() {
|
|
276243
|
-
return new Command("private-key").alias("pk").description("Create a private key in the SettleMint platform").addCommand(privateKeyHdCreateCommand()).addCommand(privateKeyHsmCreateCommand());
|
|
276324
|
+
return new Command("private-key").alias("pk").description("Create a private key in the SettleMint platform").addCommand(privateKeyHdCreateCommand()).addCommand(privateKeyHsmCreateCommand()).addCommand(privateKeyAccessibleCreateCommand());
|
|
276244
276325
|
}
|
|
276245
276326
|
|
|
276246
276327
|
// src/commands/platform/storage/ipfs/create.ts
|
|
@@ -276248,6 +276329,7 @@ function ipfsStorageCreateCommand() {
|
|
|
276248
276329
|
return getCreateCommand({
|
|
276249
276330
|
name: "ipfs",
|
|
276250
276331
|
type: "storage",
|
|
276332
|
+
subType: "IPFS",
|
|
276251
276333
|
alias: "ip",
|
|
276252
276334
|
execute: (cmd2, baseAction) => {
|
|
276253
276335
|
addClusterServiceArgs(cmd2).option("--application <application>", "Application unique name").action(async (name2, { application, provider, region, size, type: type4, ...defaultArgs }) => {
|
|
@@ -276300,6 +276382,7 @@ function minioStorageCreateCommand() {
|
|
|
276300
276382
|
return getCreateCommand({
|
|
276301
276383
|
name: "minio",
|
|
276302
276384
|
type: "storage",
|
|
276385
|
+
subType: "MinIO",
|
|
276303
276386
|
alias: "m",
|
|
276304
276387
|
execute: (cmd2, baseAction) => {
|
|
276305
276388
|
addClusterServiceArgs(cmd2).option("--application <application>", "Application unique name").action(async (name2, { application, provider, region, size, type: type4, ...defaultArgs }) => {
|
|
@@ -276627,25 +276710,6 @@ function middlewareRestartCommand() {
|
|
|
276627
276710
|
return new Command("middleware").alias("mw").description("Restart a middleware service in the SettleMint platform").addCommand(graphRestartCommand()).addCommand(smartContractPortalRestartCommand());
|
|
276628
276711
|
}
|
|
276629
276712
|
|
|
276630
|
-
// src/commands/platform/private-key/hd-ecdsa-p256/restart.ts
|
|
276631
|
-
function hdEcdsaP256RestartCommand() {
|
|
276632
|
-
return getRestartCommand({
|
|
276633
|
-
name: "hd-ecdsa-p256",
|
|
276634
|
-
type: "private key",
|
|
276635
|
-
subType: "hd-ecdsa-p256",
|
|
276636
|
-
alias: "hd",
|
|
276637
|
-
envKey: "SETTLEMINT_HD_PRIVATE_KEY",
|
|
276638
|
-
restartFunction: async (settlemint, uniqueName) => {
|
|
276639
|
-
return settlemint.privateKey.restart(uniqueName);
|
|
276640
|
-
}
|
|
276641
|
-
});
|
|
276642
|
-
}
|
|
276643
|
-
|
|
276644
|
-
// src/commands/platform/private-key/restart.ts
|
|
276645
|
-
function privateKeyRestartCommand() {
|
|
276646
|
-
return new Command("private-key").alias("pk").description("Restart a private key in the SettleMint platform").addCommand(hdEcdsaP256RestartCommand());
|
|
276647
|
-
}
|
|
276648
|
-
|
|
276649
276713
|
// src/commands/platform/storage/ipfs/restart.ts
|
|
276650
276714
|
function ipfsRestartCommand() {
|
|
276651
276715
|
return getRestartCommand({
|
|
@@ -276679,7 +276743,7 @@ function storageRestartCommand() {
|
|
|
276679
276743
|
|
|
276680
276744
|
// src/commands/platform/restart.ts
|
|
276681
276745
|
function restartCommand() {
|
|
276682
|
-
const cmd2 = new Command("restart").description("Restart a resource in the SettleMint platform").addCommand(blockchainNetworkRestartCommand()).addCommand(customDeploymentRestartCommand()).addCommand(insightsRestartCommand()).addCommand(integrationToolRestartCommand()).addCommand(middlewareRestartCommand()).addCommand(
|
|
276746
|
+
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());
|
|
276683
276747
|
return cmd2;
|
|
276684
276748
|
}
|
|
276685
276749
|
|
|
@@ -277074,7 +277138,7 @@ async function addressPrompt({
|
|
|
277074
277138
|
return defaultAddress;
|
|
277075
277139
|
}
|
|
277076
277140
|
if (possiblePrivateKeys.length === 0) {
|
|
277077
|
-
cancel3("No private key is activated on the node to sign the transaction.");
|
|
277141
|
+
cancel3("No ECDSA P256 or HSM ECDSA P256 private key is activated on the node to sign the transaction.");
|
|
277078
277142
|
}
|
|
277079
277143
|
const address = await esm_default2({
|
|
277080
277144
|
message: "Which private key do you want to deploy from?",
|
|
@@ -277748,4 +277812,4 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
277748
277812
|
ascii();
|
|
277749
277813
|
sdkCliCommand();
|
|
277750
277814
|
|
|
277751
|
-
//# debugId=
|
|
277815
|
+
//# debugId=160DE4A410A4BA0164756E2164756E21
|