@settlemint/sdk-cli 1.0.3-pr40430c9a → 1.0.3-pr4b4c00a8
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 +57 -56
- package/dist/cli.js.map +17 -17
- 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.GUKLpUPMR6:/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.GUKLpUPMR6:/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.GUKLpUPMR6:/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.GUKLpUPMR6:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(r6)];
|
|
223331
223331
|
var n6 = nr ? t7.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
223332
223332
|
var a5 = nr ? n6.split(r6) : [""];
|
|
223333
223333
|
if (nr) {
|
|
@@ -226464,7 +226464,7 @@ ${whileRunning(e9)}`;
|
|
|
226464
226464
|
};
|
|
226465
226465
|
ni = Object.assign(async function _main() {
|
|
226466
226466
|
var e9 = new Cli({
|
|
226467
|
-
binaryVersion: "1.0.3-
|
|
226467
|
+
binaryVersion: "1.0.3-pr4b4c00a8",
|
|
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.GUKLpUPMR6:/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) : [""];
|
|
@@ -267492,7 +267492,7 @@ ${error.stack}`));
|
|
|
267492
267492
|
var package_default = {
|
|
267493
267493
|
name: "@settlemint/sdk-cli",
|
|
267494
267494
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
267495
|
-
version: "1.0.3-
|
|
267495
|
+
version: "1.0.3-pr4b4c00a8",
|
|
267496
267496
|
type: "module",
|
|
267497
267497
|
private: false,
|
|
267498
267498
|
license: "FSL-1.1-MIT",
|
|
@@ -267545,8 +267545,8 @@ var package_default = {
|
|
|
267545
267545
|
"@inquirer/input": "4.1.3",
|
|
267546
267546
|
"@inquirer/password": "4.0.6",
|
|
267547
267547
|
"@inquirer/select": "4.0.6",
|
|
267548
|
-
"@settlemint/sdk-js": "1.0.3-
|
|
267549
|
-
"@settlemint/sdk-utils": "1.0.3-
|
|
267548
|
+
"@settlemint/sdk-js": "1.0.3-pr4b4c00a8",
|
|
267549
|
+
"@settlemint/sdk-utils": "1.0.3-pr4b4c00a8",
|
|
267550
267550
|
"get-tsconfig": "4.8.1",
|
|
267551
267551
|
giget: "1.2.3"
|
|
267552
267552
|
},
|
|
@@ -267846,7 +267846,7 @@ var et = l((Re, tt) => {
|
|
|
267846
267846
|
var g = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", Y = h("path"), Bt = g ? ";" : ":", V = U(), J = (t) => Object.assign(new Error(`not found: ${t}`), { code: "ENOENT" }), Q = (t, e) => {
|
|
267847
267847
|
let n = e.colon || Bt, r = t.match(/\//) || g && t.match(/\\/) ? [""] : [
|
|
267848
267848
|
...g ? [process.cwd()] : [],
|
|
267849
|
-
...(e.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
267849
|
+
...(e.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.GUKLpUPMR6:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(n)
|
|
267850
267850
|
], s = g ? e.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", o = g ? s.split(n) : [""];
|
|
267851
267851
|
return g && t.indexOf(".") !== -1 && o[0] !== "" && o.unshift(""), {
|
|
267852
267852
|
pathEnv: r,
|
|
@@ -275322,12 +275322,13 @@ function getCreateCommand({
|
|
|
275322
275322
|
return nothingSelectedError("region");
|
|
275323
275323
|
}
|
|
275324
275324
|
}
|
|
275325
|
-
const
|
|
275325
|
+
const { result, waitFor, mapDefaultEnv } = await spinner({
|
|
275326
275326
|
startMessage: `Creating ${type4}`,
|
|
275327
|
-
task
|
|
275327
|
+
task: async () => {
|
|
275328
|
+
return createFunction(settlemint, env2);
|
|
275329
|
+
},
|
|
275328
275330
|
stopMessage: `${capitalizeFirstLetter(type4)} created`
|
|
275329
275331
|
});
|
|
275330
|
-
const { result, waitFor, mapDefaultEnv } = await createFunction(settlemint, env2, showSpinner);
|
|
275331
275332
|
if (wait) {
|
|
275332
275333
|
await waitForCompletion({
|
|
275333
275334
|
settlemint,
|
|
@@ -275393,12 +275394,12 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275393
275394
|
...defaultArgs,
|
|
275394
275395
|
provider,
|
|
275395
275396
|
region
|
|
275396
|
-
}, async (settlemint, env2
|
|
275397
|
+
}, async (settlemint, env2) => {
|
|
275397
275398
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275398
275399
|
if (!applicationUniqueName) {
|
|
275399
275400
|
return missingApplication();
|
|
275400
275401
|
}
|
|
275401
|
-
const result = await
|
|
275402
|
+
const result = await settlemint.blockchainNetwork.create({
|
|
275402
275403
|
name: name2,
|
|
275403
275404
|
applicationUniqueName,
|
|
275404
275405
|
nodeName,
|
|
@@ -275413,7 +275414,7 @@ function blockchainNetworkBesuCreateCommand() {
|
|
|
275413
275414
|
secondsPerBlock,
|
|
275414
275415
|
size,
|
|
275415
275416
|
type: type4
|
|
275416
|
-
})
|
|
275417
|
+
});
|
|
275417
275418
|
const blockchainNode = result.blockchainNodes.find((item) => item.name === nodeName) ?? result.blockchainNodes[0];
|
|
275418
275419
|
return {
|
|
275419
275420
|
result,
|
|
@@ -275552,8 +275553,8 @@ function workspaceCreateCommand() {
|
|
|
275552
275553
|
addressLine1,
|
|
275553
275554
|
...defaultArgs
|
|
275554
275555
|
}) => {
|
|
275555
|
-
return baseAction(defaultArgs, async (settlemint
|
|
275556
|
-
const result = await
|
|
275556
|
+
return baseAction(defaultArgs, async (settlemint) => {
|
|
275557
|
+
const result = await settlemint.workspace.create({
|
|
275557
275558
|
name: name2,
|
|
275558
275559
|
taxIdValue,
|
|
275559
275560
|
taxIdType,
|
|
@@ -275565,7 +275566,7 @@ function workspaceCreateCommand() {
|
|
|
275565
275566
|
city,
|
|
275566
275567
|
addressLine2,
|
|
275567
275568
|
addressLine1
|
|
275568
|
-
})
|
|
275569
|
+
});
|
|
275569
275570
|
return {
|
|
275570
275571
|
result,
|
|
275571
275572
|
mapDefaultEnv: () => {
|
|
@@ -275603,12 +275604,12 @@ function applicationAccessTokenCreateCommand() {
|
|
|
275603
275604
|
alias: "aat",
|
|
275604
275605
|
execute: (cmd2, baseAction) => {
|
|
275605
275606
|
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 }) => {
|
|
275606
|
-
return baseAction(defaultArgs, async (settlemint, env2
|
|
275607
|
+
return baseAction(defaultArgs, async (settlemint, env2) => {
|
|
275607
275608
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275608
275609
|
if (!applicationUniqueName) {
|
|
275609
275610
|
return missingApplication();
|
|
275610
275611
|
}
|
|
275611
|
-
const aatToken = await
|
|
275612
|
+
const aatToken = await settlemint.applicationAccessToken.create({
|
|
275612
275613
|
applicationUniqueName,
|
|
275613
275614
|
name: name2,
|
|
275614
275615
|
blockchainNetworkScope: {
|
|
@@ -275652,7 +275653,7 @@ function applicationAccessTokenCreateCommand() {
|
|
|
275652
275653
|
values: []
|
|
275653
275654
|
},
|
|
275654
275655
|
validityPeriod
|
|
275655
|
-
})
|
|
275656
|
+
});
|
|
275656
275657
|
return {
|
|
275657
275658
|
result: {
|
|
275658
275659
|
id: "",
|
|
@@ -275696,7 +275697,7 @@ function applicationCreateCommand() {
|
|
|
275696
275697
|
return baseAction({
|
|
275697
275698
|
...defaultArgs,
|
|
275698
275699
|
acceptDefaults
|
|
275699
|
-
}, async (settlemint, env2
|
|
275700
|
+
}, async (settlemint, env2) => {
|
|
275700
275701
|
let workspaceUniqueName = workspace;
|
|
275701
275702
|
if (!workspaceUniqueName) {
|
|
275702
275703
|
const workspaces = await settlemint.workspace.list();
|
|
@@ -275706,10 +275707,10 @@ function applicationCreateCommand() {
|
|
|
275706
275707
|
}
|
|
275707
275708
|
workspaceUniqueName = workspace2.uniqueName;
|
|
275708
275709
|
}
|
|
275709
|
-
const result = await
|
|
275710
|
+
const result = await settlemint.application.create({
|
|
275710
275711
|
name: name2,
|
|
275711
275712
|
workspaceUniqueName
|
|
275712
|
-
})
|
|
275713
|
+
});
|
|
275713
275714
|
return {
|
|
275714
275715
|
result,
|
|
275715
275716
|
mapDefaultEnv: () => {
|
|
@@ -275787,7 +275788,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275787
275788
|
acceptDefaults,
|
|
275788
275789
|
provider,
|
|
275789
275790
|
region
|
|
275790
|
-
}, async (settlemint, env2
|
|
275791
|
+
}, async (settlemint, env2) => {
|
|
275791
275792
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275792
275793
|
if (!applicationUniqueName) {
|
|
275793
275794
|
return missingApplication();
|
|
@@ -275806,7 +275807,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275806
275807
|
}
|
|
275807
275808
|
networkUniqueName = network?.uniqueName;
|
|
275808
275809
|
}
|
|
275809
|
-
const result = await
|
|
275810
|
+
const result = await settlemint.blockchainNode.create({
|
|
275810
275811
|
applicationUniqueName,
|
|
275811
275812
|
name: name2,
|
|
275812
275813
|
blockchainNetworkUniqueName: networkUniqueName,
|
|
@@ -275816,7 +275817,7 @@ function blockchainNodeBesuCreateCommand() {
|
|
|
275816
275817
|
region,
|
|
275817
275818
|
size,
|
|
275818
275819
|
type: type4
|
|
275819
|
-
})
|
|
275820
|
+
});
|
|
275820
275821
|
return {
|
|
275821
275822
|
result,
|
|
275822
275823
|
mapDefaultEnv: () => {
|
|
@@ -275865,7 +275866,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275865
275866
|
acceptDefaults,
|
|
275866
275867
|
provider,
|
|
275867
275868
|
region
|
|
275868
|
-
}, async (settlemint, env2
|
|
275869
|
+
}, async (settlemint, env2) => {
|
|
275869
275870
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275870
275871
|
if (!applicationUniqueName) {
|
|
275871
275872
|
return missingApplication();
|
|
@@ -275885,7 +275886,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275885
275886
|
}
|
|
275886
275887
|
blockchainNodeUniqueName = node.uniqueName;
|
|
275887
275888
|
}
|
|
275888
|
-
const result = await
|
|
275889
|
+
const result = await settlemint.insights.create({
|
|
275889
275890
|
name: name2,
|
|
275890
275891
|
applicationUniqueName,
|
|
275891
275892
|
insightsCategory: "BLOCKCHAIN_EXPLORER",
|
|
@@ -275895,7 +275896,7 @@ function blockscoutInsightsCreateCommand() {
|
|
|
275895
275896
|
type: type4,
|
|
275896
275897
|
blockchainNodeUniqueName,
|
|
275897
275898
|
loadBalancerUniqueName
|
|
275898
|
-
})
|
|
275899
|
+
});
|
|
275899
275900
|
return {
|
|
275900
275901
|
result,
|
|
275901
275902
|
mapDefaultEnv: async () => {
|
|
@@ -275942,12 +275943,12 @@ function hasuraIntegrationCreateCommand() {
|
|
|
275942
275943
|
...defaultArgs,
|
|
275943
275944
|
provider,
|
|
275944
275945
|
region
|
|
275945
|
-
}, async (settlemint, env2
|
|
275946
|
+
}, async (settlemint, env2) => {
|
|
275946
275947
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
275947
275948
|
if (!applicationUniqueName) {
|
|
275948
275949
|
return missingApplication();
|
|
275949
275950
|
}
|
|
275950
|
-
const result = await
|
|
275951
|
+
const result = await settlemint.integrationTool.create({
|
|
275951
275952
|
name: name2,
|
|
275952
275953
|
applicationUniqueName,
|
|
275953
275954
|
integrationType: "HASURA",
|
|
@@ -275955,7 +275956,7 @@ function hasuraIntegrationCreateCommand() {
|
|
|
275955
275956
|
region,
|
|
275956
275957
|
size,
|
|
275957
275958
|
type: type4
|
|
275958
|
-
})
|
|
275959
|
+
});
|
|
275959
275960
|
return {
|
|
275960
275961
|
result,
|
|
275961
275962
|
mapDefaultEnv: async () => {
|
|
@@ -276003,7 +276004,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
276003
276004
|
acceptDefaults,
|
|
276004
276005
|
provider,
|
|
276005
276006
|
region
|
|
276006
|
-
}, async (settlemint, env2
|
|
276007
|
+
}, async (settlemint, env2) => {
|
|
276007
276008
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276008
276009
|
if (!applicationUniqueName) {
|
|
276009
276010
|
return missingApplication();
|
|
@@ -276022,7 +276023,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
276022
276023
|
}
|
|
276023
276024
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276024
276025
|
}
|
|
276025
|
-
const result = await
|
|
276026
|
+
const result = await settlemint.middleware.create({
|
|
276026
276027
|
name: name2,
|
|
276027
276028
|
applicationUniqueName,
|
|
276028
276029
|
interface: "HA_GRAPH",
|
|
@@ -276031,7 +276032,7 @@ function graphMiddlewareCreateCommand() {
|
|
|
276031
276032
|
region,
|
|
276032
276033
|
size,
|
|
276033
276034
|
type: type4
|
|
276034
|
-
})
|
|
276035
|
+
});
|
|
276035
276036
|
return {
|
|
276036
276037
|
result,
|
|
276037
276038
|
mapDefaultEnv: async () => {
|
|
@@ -276086,7 +276087,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276086
276087
|
acceptDefaults,
|
|
276087
276088
|
provider,
|
|
276088
276089
|
region
|
|
276089
|
-
}, async (settlemint, env2
|
|
276090
|
+
}, async (settlemint, env2) => {
|
|
276090
276091
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276091
276092
|
if (!applicationUniqueName) {
|
|
276092
276093
|
return missingApplication();
|
|
@@ -276127,7 +276128,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276127
276128
|
cancel3(`Invalid pre-deployed abis: '${invalidPredeployedAbis.join(", ")}'. Possible values: '${platformConfig.preDeployedContracts.sort().join(", ")}'`);
|
|
276128
276129
|
}
|
|
276129
276130
|
}
|
|
276130
|
-
const result = await
|
|
276131
|
+
const result = await settlemint.middleware.create({
|
|
276131
276132
|
name: name2,
|
|
276132
276133
|
applicationUniqueName,
|
|
276133
276134
|
interface: "SMART_CONTRACT_PORTAL",
|
|
@@ -276139,7 +276140,7 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
276139
276140
|
region,
|
|
276140
276141
|
size,
|
|
276141
276142
|
type: type4
|
|
276142
|
-
})
|
|
276143
|
+
});
|
|
276143
276144
|
return {
|
|
276144
276145
|
result,
|
|
276145
276146
|
mapDefaultEnv: async () => {
|
|
@@ -276183,7 +276184,7 @@ function privateKeyAccessibleCreateCommand() {
|
|
|
276183
276184
|
return baseAction({
|
|
276184
276185
|
...defaultArgs,
|
|
276185
276186
|
acceptDefaults
|
|
276186
|
-
}, async (settlemint, env2
|
|
276187
|
+
}, async (settlemint, env2) => {
|
|
276187
276188
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276188
276189
|
if (!applicationUniqueName) {
|
|
276189
276190
|
return missingApplication();
|
|
@@ -276202,12 +276203,12 @@ function privateKeyAccessibleCreateCommand() {
|
|
|
276202
276203
|
}
|
|
276203
276204
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276204
276205
|
}
|
|
276205
|
-
const result = await
|
|
276206
|
+
const result = await settlemint.privateKey.create({
|
|
276206
276207
|
name: name2,
|
|
276207
276208
|
applicationUniqueName,
|
|
276208
276209
|
privateKeyType: "ACCESSIBLE_ECDSA_P256",
|
|
276209
276210
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276210
|
-
})
|
|
276211
|
+
});
|
|
276211
276212
|
return {
|
|
276212
276213
|
result
|
|
276213
276214
|
};
|
|
@@ -276243,7 +276244,7 @@ function privateKeyHdCreateCommand() {
|
|
|
276243
276244
|
return baseAction({
|
|
276244
276245
|
...defaultArgs,
|
|
276245
276246
|
acceptDefaults
|
|
276246
|
-
}, async (settlemint, env2
|
|
276247
|
+
}, async (settlemint, env2) => {
|
|
276247
276248
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276248
276249
|
if (!applicationUniqueName) {
|
|
276249
276250
|
return missingApplication();
|
|
@@ -276262,12 +276263,12 @@ function privateKeyHdCreateCommand() {
|
|
|
276262
276263
|
}
|
|
276263
276264
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276264
276265
|
}
|
|
276265
|
-
const result = await
|
|
276266
|
+
const result = await settlemint.privateKey.create({
|
|
276266
276267
|
name: name2,
|
|
276267
276268
|
applicationUniqueName,
|
|
276268
276269
|
privateKeyType: "HD_ECDSA_P256",
|
|
276269
276270
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276270
|
-
})
|
|
276271
|
+
});
|
|
276271
276272
|
return {
|
|
276272
276273
|
result,
|
|
276273
276274
|
mapDefaultEnv: () => {
|
|
@@ -276309,7 +276310,7 @@ function privateKeyHsmCreateCommand() {
|
|
|
276309
276310
|
return baseAction({
|
|
276310
276311
|
...defaultArgs,
|
|
276311
276312
|
acceptDefaults
|
|
276312
|
-
}, async (settlemint, env2
|
|
276313
|
+
}, async (settlemint, env2) => {
|
|
276313
276314
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276314
276315
|
if (!applicationUniqueName) {
|
|
276315
276316
|
return missingApplication();
|
|
@@ -276328,12 +276329,12 @@ function privateKeyHsmCreateCommand() {
|
|
|
276328
276329
|
}
|
|
276329
276330
|
blockchainNodeUniqueName = node.uniqueName;
|
|
276330
276331
|
}
|
|
276331
|
-
const result = await
|
|
276332
|
+
const result = await settlemint.privateKey.create({
|
|
276332
276333
|
name: name2,
|
|
276333
276334
|
applicationUniqueName,
|
|
276334
276335
|
privateKeyType: "HSM_ECDSA_P256",
|
|
276335
276336
|
blockchainNodeUniqueNames: blockchainNodeUniqueName ? [blockchainNodeUniqueName] : []
|
|
276336
|
-
})
|
|
276337
|
+
});
|
|
276337
276338
|
return {
|
|
276338
276339
|
result
|
|
276339
276340
|
};
|
|
@@ -276375,12 +276376,12 @@ function ipfsStorageCreateCommand() {
|
|
|
276375
276376
|
...defaultArgs,
|
|
276376
276377
|
provider,
|
|
276377
276378
|
region
|
|
276378
|
-
}, async (settlemint, env2
|
|
276379
|
+
}, async (settlemint, env2) => {
|
|
276379
276380
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276380
276381
|
if (!applicationUniqueName) {
|
|
276381
276382
|
return missingApplication();
|
|
276382
276383
|
}
|
|
276383
|
-
const result = await
|
|
276384
|
+
const result = await settlemint.storage.create({
|
|
276384
276385
|
name: name2,
|
|
276385
276386
|
applicationUniqueName,
|
|
276386
276387
|
storageProtocol: "IPFS",
|
|
@@ -276388,7 +276389,7 @@ function ipfsStorageCreateCommand() {
|
|
|
276388
276389
|
region,
|
|
276389
276390
|
size,
|
|
276390
276391
|
type: type4
|
|
276391
|
-
})
|
|
276392
|
+
});
|
|
276392
276393
|
return {
|
|
276393
276394
|
result,
|
|
276394
276395
|
mapDefaultEnv: () => {
|
|
@@ -276428,12 +276429,12 @@ function minioStorageCreateCommand() {
|
|
|
276428
276429
|
...defaultArgs,
|
|
276429
276430
|
provider,
|
|
276430
276431
|
region
|
|
276431
|
-
}, async (settlemint, env2
|
|
276432
|
+
}, async (settlemint, env2) => {
|
|
276432
276433
|
const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
|
|
276433
276434
|
if (!applicationUniqueName) {
|
|
276434
276435
|
return missingApplication();
|
|
276435
276436
|
}
|
|
276436
|
-
const result = await
|
|
276437
|
+
const result = await settlemint.storage.create({
|
|
276437
276438
|
name: name2,
|
|
276438
276439
|
applicationUniqueName,
|
|
276439
276440
|
storageProtocol: "MINIO",
|
|
@@ -276441,7 +276442,7 @@ function minioStorageCreateCommand() {
|
|
|
276441
276442
|
region,
|
|
276442
276443
|
size,
|
|
276443
276444
|
type: type4
|
|
276444
|
-
})
|
|
276445
|
+
});
|
|
276445
276446
|
return {
|
|
276446
276447
|
result,
|
|
276447
276448
|
mapDefaultEnv: () => {
|
|
@@ -277851,4 +277852,4 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
277851
277852
|
ascii();
|
|
277852
277853
|
sdkCliCommand();
|
|
277853
277854
|
|
|
277854
|
-
//# debugId=
|
|
277855
|
+
//# debugId=04FBC27D806D64D364756E2164756E21
|