@settlemint/sdk-cli 1.0.1 → 1.0.2-mainaa094ff5
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 +35 -29
- package/dist/cli.js.map +17 -17
- package/package.json +3 -3
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.3sEAr9XdmE:/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.3sEAr9XdmE:/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.3sEAr9XdmE:/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.3sEAr9XdmE:/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-mainaa094ff5",
|
|
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.3sEAr9XdmE:/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) : [""];
|
|
@@ -267481,7 +267481,7 @@ ${error.stack}`));
|
|
|
267481
267481
|
var package_default = {
|
|
267482
267482
|
name: "@settlemint/sdk-cli",
|
|
267483
267483
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
267484
|
-
version: "1.0.
|
|
267484
|
+
version: "1.0.2-mainaa094ff5",
|
|
267485
267485
|
type: "module",
|
|
267486
267486
|
private: false,
|
|
267487
267487
|
license: "FSL-1.1-MIT",
|
|
@@ -267534,8 +267534,8 @@ var package_default = {
|
|
|
267534
267534
|
"@inquirer/input": "4.1.3",
|
|
267535
267535
|
"@inquirer/password": "4.0.6",
|
|
267536
267536
|
"@inquirer/select": "4.0.6",
|
|
267537
|
-
"@settlemint/sdk-js": "1.0.
|
|
267538
|
-
"@settlemint/sdk-utils": "1.0.
|
|
267537
|
+
"@settlemint/sdk-js": "1.0.2-mainaa094ff5",
|
|
267538
|
+
"@settlemint/sdk-utils": "1.0.2-mainaa094ff5",
|
|
267539
267539
|
"get-tsconfig": "4.8.1",
|
|
267540
267540
|
giget: "1.2.3"
|
|
267541
267541
|
},
|
|
@@ -267835,7 +267835,7 @@ var et = l((Re, tt) => {
|
|
|
267835
267835
|
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
267836
|
let n = e.colon || Bt, r = t.match(/\//) || g && t.match(/\\/) ? [""] : [
|
|
267837
267837
|
...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.
|
|
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.3sEAr9XdmE:/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
267839
|
], s = g ? e.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", o = g ? s.split(n) : [""];
|
|
267840
267840
|
return g && t.indexOf(".") !== -1 && o[0] !== "" && o.unshift(""), {
|
|
267841
267841
|
pathEnv: r,
|
|
@@ -271124,34 +271124,29 @@ function codegenCommand() {
|
|
|
271124
271124
|
},
|
|
271125
271125
|
stopMessage: "Tested GraphQL schemas"
|
|
271126
271126
|
});
|
|
271127
|
-
const promises = [];
|
|
271128
271127
|
if (hasura) {
|
|
271129
271128
|
note("Generating Hasura resources");
|
|
271130
|
-
|
|
271129
|
+
await codegenHasura(env2);
|
|
271131
271130
|
}
|
|
271132
271131
|
if (portal) {
|
|
271133
271132
|
note("Generating Portal resources");
|
|
271134
|
-
|
|
271133
|
+
await codegenPortal(env2);
|
|
271135
271134
|
}
|
|
271136
271135
|
if (thegraph) {
|
|
271137
271136
|
note("Generating TheGraph resources");
|
|
271138
|
-
|
|
271137
|
+
await codegenTheGraph(env2, thegraphSubgraphNames);
|
|
271139
271138
|
}
|
|
271140
271139
|
if (blockscout) {
|
|
271141
271140
|
note("Generating Blockscout resources");
|
|
271142
|
-
|
|
271141
|
+
await codegenBlockscout(env2);
|
|
271143
271142
|
}
|
|
271144
271143
|
if (shouldCodegenMinio(env2)) {
|
|
271145
271144
|
note("Generating Minio resources");
|
|
271146
|
-
|
|
271145
|
+
await codegenMinio(env2);
|
|
271147
271146
|
}
|
|
271148
271147
|
if (shouldCodegenIpfs(env2)) {
|
|
271149
271148
|
note("Generating IPFS resources");
|
|
271150
|
-
|
|
271151
|
-
}
|
|
271152
|
-
const results = await Promise.allSettled(promises);
|
|
271153
|
-
if (results.some((r6) => r6.status === "rejected")) {
|
|
271154
|
-
cancel2("An error occurred while generating resources");
|
|
271149
|
+
await codegenIpfs(env2);
|
|
271155
271150
|
}
|
|
271156
271151
|
if (hasura || portal || thegraph || blockscout) {
|
|
271157
271152
|
await generateOutput({
|
|
@@ -273572,13 +273567,13 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
|
|
|
273572
273567
|
}
|
|
273573
273568
|
}
|
|
273574
273569
|
return esm_default5({
|
|
273575
|
-
message: "What is the application access token for your application in SettleMint?",
|
|
273570
|
+
message: "What is the application access token for your application in SettleMint? (format: sm_aat_...)",
|
|
273576
273571
|
validate(value4) {
|
|
273577
273572
|
try {
|
|
273578
273573
|
validate3(ApplicationAccessTokenSchema3, value4);
|
|
273579
273574
|
return true;
|
|
273580
273575
|
} catch (error5) {
|
|
273581
|
-
return "Invalid application access token";
|
|
273576
|
+
return "Invalid application access token, it should start with sm_aat_...";
|
|
273582
273577
|
}
|
|
273583
273578
|
}
|
|
273584
273579
|
});
|
|
@@ -274966,13 +274961,13 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
|
|
|
274966
274961
|
}
|
|
274967
274962
|
}
|
|
274968
274963
|
return esm_default5({
|
|
274969
|
-
message: "What is your personal access token in SettleMint?",
|
|
274964
|
+
message: "What is your personal access token in SettleMint? (format: sm_pat_...)",
|
|
274970
274965
|
validate(value4) {
|
|
274971
274966
|
try {
|
|
274972
274967
|
validate3(PersonalAccessTokenSchema3, value4);
|
|
274973
274968
|
return true;
|
|
274974
274969
|
} catch (error5) {
|
|
274975
|
-
return "Invalid personal access token";
|
|
274970
|
+
return "Invalid personal access token, it should start with sm_pat_...";
|
|
274976
274971
|
}
|
|
274977
274972
|
}
|
|
274978
274973
|
});
|
|
@@ -275227,13 +275222,14 @@ async function regionPrompt(provider, argument) {
|
|
|
275227
275222
|
function getCreateCommand({
|
|
275228
275223
|
name: name2,
|
|
275229
275224
|
type: type4,
|
|
275225
|
+
subType,
|
|
275230
275226
|
alias,
|
|
275231
275227
|
examples,
|
|
275232
275228
|
execute: execute2,
|
|
275233
275229
|
usePersonalAccessToken = true,
|
|
275234
275230
|
requiresDeployment = true
|
|
275235
275231
|
}) {
|
|
275236
|
-
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");
|
|
275232
|
+
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");
|
|
275237
275233
|
if (requiresDeployment) {
|
|
275238
275234
|
cmd2.option("-w, --wait", "Wait until deployed").option("-r, --restart-if-timeout", "Restart if wait time is exceeded");
|
|
275239
275235
|
}
|
|
@@ -275311,6 +275307,7 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275311
275307
|
return getCreateCommand({
|
|
275312
275308
|
name: "besu",
|
|
275313
275309
|
type: "blockchain network",
|
|
275310
|
+
subType: "Besu",
|
|
275314
275311
|
alias: "b",
|
|
275315
275312
|
execute: (cmd2, baseAction) => {
|
|
275316
275313
|
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, {
|
|
@@ -275706,6 +275703,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275706
275703
|
return getCreateCommand({
|
|
275707
275704
|
name: "besu",
|
|
275708
275705
|
type: "blockchain node",
|
|
275706
|
+
subType: "Besu",
|
|
275709
275707
|
alias: "b",
|
|
275710
275708
|
execute: (cmd2, baseAction) => {
|
|
275711
275709
|
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, {
|
|
@@ -275794,6 +275792,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275794
275792
|
return getCreateCommand({
|
|
275795
275793
|
name: "blockscout",
|
|
275796
275794
|
type: "insights",
|
|
275795
|
+
subType: "Blockscout",
|
|
275797
275796
|
alias: "bs",
|
|
275798
275797
|
execute: (cmd2, baseAction) => {
|
|
275799
275798
|
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 }) => {
|
|
@@ -275871,6 +275870,7 @@ function hasuraIntegrationCreateCommand() {
|
|
|
275871
275870
|
return getCreateCommand({
|
|
275872
275871
|
name: "hasura",
|
|
275873
275872
|
type: "integration tool",
|
|
275873
|
+
subType: "Hasura",
|
|
275874
275874
|
alias: "ha",
|
|
275875
275875
|
execute: (cmd2, baseAction) => {
|
|
275876
275876
|
addClusterServiceArgs(cmd2).option("--application <application>", "Application unique name").action(async (name2, { application, provider, region, size, type: type4, ...defaultArgs }) => {
|
|
@@ -275930,6 +275930,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
275930
275930
|
return getCreateCommand({
|
|
275931
275931
|
name: "graph",
|
|
275932
275932
|
type: "middleware",
|
|
275933
|
+
subType: "The Graph",
|
|
275933
275934
|
alias: "gr",
|
|
275934
275935
|
execute: (cmd2, baseAction) => {
|
|
275935
275936
|
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 }) => {
|
|
@@ -276000,6 +276001,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276000
276001
|
return getCreateCommand({
|
|
276001
276002
|
name: "smart-contract-portal",
|
|
276002
276003
|
type: "middleware",
|
|
276004
|
+
subType: "Smart Contract Portal",
|
|
276003
276005
|
alias: "scp",
|
|
276004
276006
|
execute: (cmd2, baseAction) => {
|
|
276005
276007
|
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, {
|
|
@@ -276110,6 +276112,7 @@ function privateKeyHdCreateCommand() {
|
|
|
276110
276112
|
return getCreateCommand({
|
|
276111
276113
|
name: "HD-ECDSA-P256",
|
|
276112
276114
|
type: "private key",
|
|
276115
|
+
subType: "HD-ECDSA-P256",
|
|
276113
276116
|
alias: "hd",
|
|
276114
276117
|
execute: (cmd2, baseAction) => {
|
|
276115
276118
|
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 }) => {
|
|
@@ -276181,7 +276184,8 @@ function privateKeyHsmCreateCommand() {
|
|
|
276181
276184
|
return getCreateCommand({
|
|
276182
276185
|
name: "HSM-ECDSA-P256",
|
|
276183
276186
|
type: "private key",
|
|
276184
|
-
|
|
276187
|
+
subType: "HSM-ECDSA-P256",
|
|
276188
|
+
alias: "hsm",
|
|
276185
276189
|
execute: (cmd2, baseAction) => {
|
|
276186
276190
|
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 }) => {
|
|
276187
276191
|
return baseAction({
|
|
@@ -276251,6 +276255,7 @@ function ipfsStorageCreateCommand() {
|
|
|
276251
276255
|
return getCreateCommand({
|
|
276252
276256
|
name: "ipfs",
|
|
276253
276257
|
type: "storage",
|
|
276258
|
+
subType: "IPFS",
|
|
276254
276259
|
alias: "ip",
|
|
276255
276260
|
execute: (cmd2, baseAction) => {
|
|
276256
276261
|
addClusterServiceArgs(cmd2).option("--application <application>", "Application unique name").action(async (name2, { application, provider, region, size, type: type4, ...defaultArgs }) => {
|
|
@@ -276303,6 +276308,7 @@ function minioStorageCreateCommand() {
|
|
|
276303
276308
|
return getCreateCommand({
|
|
276304
276309
|
name: "minio",
|
|
276305
276310
|
type: "storage",
|
|
276311
|
+
subType: "MinIO",
|
|
276306
276312
|
alias: "m",
|
|
276307
276313
|
execute: (cmd2, baseAction) => {
|
|
276308
276314
|
addClusterServiceArgs(cmd2).option("--application <application>", "Application unique name").action(async (name2, { application, provider, region, size, type: type4, ...defaultArgs }) => {
|
|
@@ -277077,7 +277083,7 @@ async function addressPrompt({
|
|
|
277077
277083
|
return defaultAddress;
|
|
277078
277084
|
}
|
|
277079
277085
|
if (possiblePrivateKeys.length === 0) {
|
|
277080
|
-
cancel3("No private key is activated on the node to sign the transaction.");
|
|
277086
|
+
cancel3("No ECDSA P256 or HSM ECDSA P256 private key is activated on the node to sign the transaction.");
|
|
277081
277087
|
}
|
|
277082
277088
|
const address = await esm_default2({
|
|
277083
277089
|
message: "Which private key do you want to deploy from?",
|
|
@@ -277751,4 +277757,4 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
277751
277757
|
ascii();
|
|
277752
277758
|
sdkCliCommand();
|
|
277753
277759
|
|
|
277754
|
-
//# debugId=
|
|
277760
|
+
//# debugId=C973433BE88F3A9F64756E2164756E21
|