@settlemint/sdk-cli 0.8.6-pr09488183 → 0.8.6-pr145ce8dd
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 +217 -55
- package/dist/cli.js.map +27 -27
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -19645,7 +19645,7 @@ var require_lib4 = __commonJS((exports, module) => {
|
|
|
19645
19645
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
19646
19646
|
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
19647
19647
|
var getPathInfo = (cmd, {
|
|
19648
|
-
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.
|
|
19648
|
+
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.7MOmMJ7TtP:/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",
|
|
19649
19649
|
pathExt: optPathExt = process.env.PATHEXT,
|
|
19650
19650
|
delimiter: optDelimiter = delimiter
|
|
19651
19651
|
}) => {
|
|
@@ -19849,7 +19849,7 @@ var require_lib5 = __commonJS((exports, module) => {
|
|
|
19849
19849
|
let pathToInitial;
|
|
19850
19850
|
try {
|
|
19851
19851
|
pathToInitial = which.sync(initialCmd, {
|
|
19852
|
-
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.
|
|
19852
|
+
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.7MOmMJ7TtP:/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",
|
|
19853
19853
|
pathext: options.env && findInObject(options.env, "PATHEXT") || process.env.PATHEXT
|
|
19854
19854
|
}).toLowerCase();
|
|
19855
19855
|
} catch (err) {
|
|
@@ -20566,7 +20566,7 @@ var require_lib6 = __commonJS((exports, module) => {
|
|
|
20566
20566
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
20567
20567
|
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
20568
20568
|
var getPathInfo = (cmd, {
|
|
20569
|
-
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.
|
|
20569
|
+
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.7MOmMJ7TtP:/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",
|
|
20570
20570
|
pathExt: optPathExt = process.env.PATHEXT,
|
|
20571
20571
|
delimiter: optDelimiter = delimiter
|
|
20572
20572
|
}) => {
|
|
@@ -223340,7 +223340,7 @@ ${Bt.cyan(Yt)}
|
|
|
223340
223340
|
code: "ENOENT"
|
|
223341
223341
|
}), getPathInfo = (e9, t7) => {
|
|
223342
223342
|
var r6 = t7.colon || or;
|
|
223343
|
-
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.
|
|
223343
|
+
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.7MOmMJ7TtP:/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)];
|
|
223344
223344
|
var n6 = nr ? t7.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
223345
223345
|
var a5 = nr ? n6.split(r6) : [""];
|
|
223346
223346
|
if (nr) {
|
|
@@ -226477,7 +226477,7 @@ ${whileRunning(e9)}`;
|
|
|
226477
226477
|
};
|
|
226478
226478
|
ni = Object.assign(async function _main() {
|
|
226479
226479
|
var e9 = new Cli({
|
|
226480
|
-
binaryVersion: "0.8.6-
|
|
226480
|
+
binaryVersion: "0.8.6-pr145ce8dd",
|
|
226481
226481
|
binaryLabel: "gql.tada CLI",
|
|
226482
226482
|
binaryName: "gql.tada"
|
|
226483
226483
|
});
|
|
@@ -235213,7 +235213,7 @@ var require_which2 = __commonJS((exports, module) => {
|
|
|
235213
235213
|
const colon = opt2.colon || COLON;
|
|
235214
235214
|
const pathEnv = cmd2.match(/\//) || isWindows2 && cmd2.match(/\\/) ? [""] : [
|
|
235215
235215
|
...isWindows2 ? [process.cwd()] : [],
|
|
235216
|
-
...(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.
|
|
235216
|
+
...(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.7MOmMJ7TtP:/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)
|
|
235217
235217
|
];
|
|
235218
235218
|
const pathExtExe = isWindows2 ? opt2.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
235219
235219
|
const pathExt = isWindows2 ? pathExtExe.split(colon) : [""];
|
|
@@ -257033,7 +257033,7 @@ ${error.stack}`));
|
|
|
257033
257033
|
var package_default = {
|
|
257034
257034
|
name: "@settlemint/sdk-cli",
|
|
257035
257035
|
description: "SettleMint SDK, integrate SettleMint into your application with ease.",
|
|
257036
|
-
version: "0.8.6-
|
|
257036
|
+
version: "0.8.6-pr145ce8dd",
|
|
257037
257037
|
type: "module",
|
|
257038
257038
|
private: false,
|
|
257039
257039
|
license: "FSL-1.1-MIT",
|
|
@@ -257085,8 +257085,8 @@ var package_default = {
|
|
|
257085
257085
|
"@inquirer/input": "4.1.1",
|
|
257086
257086
|
"@inquirer/password": "4.0.4",
|
|
257087
257087
|
"@inquirer/select": "4.0.4",
|
|
257088
|
-
"@settlemint/sdk-js": "0.8.6-
|
|
257089
|
-
"@settlemint/sdk-utils": "0.8.6-
|
|
257088
|
+
"@settlemint/sdk-js": "0.8.6-pr145ce8dd",
|
|
257089
|
+
"@settlemint/sdk-utils": "0.8.6-pr145ce8dd",
|
|
257090
257090
|
"get-tsconfig": "4.8.1",
|
|
257091
257091
|
giget: "1.2.3"
|
|
257092
257092
|
},
|
|
@@ -270594,9 +270594,31 @@ export const { client } = createServerMinioClient({
|
|
|
270594
270594
|
await writeTemplate(clientTemplate, "/lib/settlemint", "minio.ts");
|
|
270595
270595
|
}
|
|
270596
270596
|
|
|
270597
|
+
// src/commands/platform/utils/create-examples.ts
|
|
270598
|
+
function createExamples(examples) {
|
|
270599
|
+
return `
|
|
270600
|
+
Examples:
|
|
270601
|
+
|
|
270602
|
+
${examples.map(({ description, command, commandPrefix }) => {
|
|
270603
|
+
return ` # ${description}
|
|
270604
|
+
$ ${commandPrefix ?? ""}settlemint ${command}`;
|
|
270605
|
+
}).join(`
|
|
270606
|
+
|
|
270607
|
+
`)}`;
|
|
270608
|
+
}
|
|
270609
|
+
|
|
270597
270610
|
// src/commands/codegen.ts
|
|
270598
270611
|
function codegenCommand() {
|
|
270599
|
-
return new Command("codegen").option("--prod", "Connect to your production environment").option("--thegraph-subgraph-names <subgraph-names...>", "The name(s) of the TheGraph subgraph(s) to generate (skip if you want to generate all)").description("Generate GraphQL and REST types and queries").
|
|
270612
|
+
return new Command("codegen").option("--prod", "Connect to your production environment").option("--thegraph-subgraph-names <subgraph-names...>", "The name(s) of the TheGraph subgraph(s) to generate (skip if you want to generate all)").description("Generate GraphQL and REST types and queries").usage(createExamples([
|
|
270613
|
+
{
|
|
270614
|
+
description: "Generate GraphQL types and queries for your dApp",
|
|
270615
|
+
command: "codegen"
|
|
270616
|
+
},
|
|
270617
|
+
{
|
|
270618
|
+
description: "Generate GraphQL types and queries for specific TheGraph subgraphs",
|
|
270619
|
+
command: "codegen --thegraph-subgraph-names subgraph1 subgraph2"
|
|
270620
|
+
}
|
|
270621
|
+
])).action(async ({ prod, thegraphSubgraphNames }) => {
|
|
270600
270622
|
intro("Generating GraphQL types and queries for your dApp");
|
|
270601
270623
|
const env2 = await loadEnv2(true, !!prod);
|
|
270602
270624
|
if (!Array.isArray(thegraphSubgraphNames)) {
|
|
@@ -274252,7 +274274,7 @@ async function downloadAndExtractNpmPackage(template, targetDir) {
|
|
|
274252
274274
|
|
|
274253
274275
|
// src/commands/create.ts
|
|
274254
274276
|
function createCommand2() {
|
|
274255
|
-
return new Command("create").description("Bootstrap your SettleMint project").option("-n, --project-name <name>", "The name for your SettleMint project").
|
|
274277
|
+
return new Command("create").description("Bootstrap your SettleMint project").option("-n, --project-name <name>", "The name for your SettleMint project").addOption(new Option("-t, --template <template>", "Thehe template for your SettleMint project").choices(templates.map((templates2) => templates2.value))).action(async ({ projectName, template }) => {
|
|
274256
274278
|
intro("Creating a new SettleMint project");
|
|
274257
274279
|
const env2 = await loadEnv2(false, false);
|
|
274258
274280
|
const name2 = await namePrompt(env2, projectName);
|
|
@@ -274298,19 +274320,6 @@ async function loginSpinner(settlemint) {
|
|
|
274298
274320
|
});
|
|
274299
274321
|
}
|
|
274300
274322
|
|
|
274301
|
-
// src/commands/platform/utils/create-examples.ts
|
|
274302
|
-
function createExamples(examples) {
|
|
274303
|
-
return `
|
|
274304
|
-
Examples:
|
|
274305
|
-
|
|
274306
|
-
${examples.map(({ description, command, commandPrefix }) => {
|
|
274307
|
-
return ` # ${description}
|
|
274308
|
-
$ ${commandPrefix ?? ""}settlemint ${command}`;
|
|
274309
|
-
}).join(`
|
|
274310
|
-
|
|
274311
|
-
`)}`;
|
|
274312
|
-
}
|
|
274313
|
-
|
|
274314
274323
|
// src/commands/connect/pat.prompt.ts
|
|
274315
274324
|
async function personalAccessTokenPrompt(env2, instance, accept) {
|
|
274316
274325
|
const existingConfig = await getInstanceCredentials(instance);
|
|
@@ -274536,9 +274545,13 @@ function getCreateCommand({
|
|
|
274536
274545
|
alias,
|
|
274537
274546
|
examples,
|
|
274538
274547
|
execute: execute2,
|
|
274539
|
-
usePersonalAccessToken = true
|
|
274548
|
+
usePersonalAccessToken = true,
|
|
274549
|
+
requiresDeployment = true
|
|
274540
274550
|
}) {
|
|
274541
|
-
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("
|
|
274551
|
+
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");
|
|
274552
|
+
if (requiresDeployment) {
|
|
274553
|
+
cmd2.option("-w, --wait", "Wait until deployed").option("-r, --restart-if-timeout", "Restart if wait time is exceeded");
|
|
274554
|
+
}
|
|
274542
274555
|
execute2(cmd2, async ({ acceptDefaults, prod, default: isDefault, wait, restartIfTimeout }, createFunction) => {
|
|
274543
274556
|
intro(`Creating ${type4} in the SettleMint platform`);
|
|
274544
274557
|
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
@@ -274814,7 +274827,8 @@ function workspaceCreateCommand() {
|
|
|
274814
274827
|
description: "Create a workspace and save as default",
|
|
274815
274828
|
command: "platform create workspace my-workspace -d"
|
|
274816
274829
|
}
|
|
274817
|
-
]
|
|
274830
|
+
],
|
|
274831
|
+
requiresDeployment: false
|
|
274818
274832
|
});
|
|
274819
274833
|
}
|
|
274820
274834
|
|
|
@@ -274899,7 +274913,8 @@ function applicationAccessTokenCreateCommand() {
|
|
|
274899
274913
|
description: "Create an application access token (shorthand)",
|
|
274900
274914
|
command: "platform create aat my-token"
|
|
274901
274915
|
}
|
|
274902
|
-
]
|
|
274916
|
+
],
|
|
274917
|
+
requiresDeployment: false
|
|
274903
274918
|
});
|
|
274904
274919
|
}
|
|
274905
274920
|
|
|
@@ -274940,7 +274955,8 @@ function applicationCreateCommand() {
|
|
|
274940
274955
|
description: "Create an application in a specific workspace",
|
|
274941
274956
|
command: "platform create application my-app --workspace my-workspace"
|
|
274942
274957
|
}
|
|
274943
|
-
]
|
|
274958
|
+
],
|
|
274959
|
+
requiresDeployment: false
|
|
274944
274960
|
});
|
|
274945
274961
|
}
|
|
274946
274962
|
|
|
@@ -275214,11 +275230,14 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
|
275214
275230
|
alias: "scp",
|
|
275215
275231
|
execute: (cmd2, baseAction) => {
|
|
275216
275232
|
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)").addOption(new Option("--include-predeployed-abis <includePredeployedAbis...>", "Include pre-deployed abis").choices([
|
|
275217
|
-
"
|
|
275218
|
-
"
|
|
275219
|
-
"
|
|
275220
|
-
"
|
|
275221
|
-
"
|
|
275233
|
+
"Bond",
|
|
275234
|
+
"BondFactory",
|
|
275235
|
+
"CryptoCurrency",
|
|
275236
|
+
"CryptoCurrencyFactory",
|
|
275237
|
+
"Equity",
|
|
275238
|
+
"EquityFactory",
|
|
275239
|
+
"StableCoin",
|
|
275240
|
+
"StableCoinFactory"
|
|
275222
275241
|
])).action(async (name2, {
|
|
275223
275242
|
application,
|
|
275224
275243
|
blockchainNode,
|
|
@@ -275535,7 +275554,7 @@ function getDeleteCommand({
|
|
|
275535
275554
|
description: `Force deletes the specified ${type4} without confirmation`,
|
|
275536
275555
|
command: `platform delete ${type4} <${type4}-unique-name> --force`
|
|
275537
275556
|
}
|
|
275538
|
-
])).argument("<
|
|
275557
|
+
])).argument("<unique-name>", `The unique name of the ${type4}, use 'default' to delete the default one from your .env file`).option("-a, --accept-defaults", "Accept the default and previously set values").option("--prod", "Connect to your production environment").option("-f, --force", `Force delete the ${type4} without confirmation`).action(async (uniqueName, { acceptDefaults, prod, force }) => {
|
|
275539
275558
|
intro2(`Deleting ${type4} in the SettleMint platform`);
|
|
275540
275559
|
if (!force) {
|
|
275541
275560
|
await deleteConfirmationPrompt(`this ${type4}`);
|
|
@@ -275573,9 +275592,6 @@ function getDeleteCommand({
|
|
|
275573
275592
|
await writeEnvSpinner(!!prod, newEnv);
|
|
275574
275593
|
note(`${capitalizeFirstLetter(type4)} removed as default`);
|
|
275575
275594
|
}
|
|
275576
|
-
if (wait) {
|
|
275577
|
-
await waitForCompletion({ settlemint, type: type4, uniqueName: serviceUniqueName, action: "destroy" });
|
|
275578
|
-
}
|
|
275579
275595
|
outro(`${capitalizeFirstLetter(type4)} ${result.name} deleted successfully`);
|
|
275580
275596
|
});
|
|
275581
275597
|
}
|
|
@@ -275636,7 +275652,7 @@ function getRestartCommand({
|
|
|
275636
275652
|
description: `Restarts the default ${type4} in the production environment`,
|
|
275637
275653
|
command: `platform restart ${commandName}${subType ? ` ${subType}` : ""} default --prod`
|
|
275638
275654
|
}
|
|
275639
|
-
])).argument("<
|
|
275655
|
+
])).argument("<unique-name>", `The unique name of the ${type4}, use 'default' to restart the default one from your .env file`).option("-a, --accept-defaults", "Accept the default and previously set values").option("--prod", "Connect to your production environment").option("-w, --wait", "Wait until restarted").action(async (uniqueName, { acceptDefaults, prod, wait }) => {
|
|
275640
275656
|
intro(`Restarting ${type4} in the SettleMint platform`);
|
|
275641
275657
|
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
275642
275658
|
const env2 = await loadEnv2(false, !!prod);
|
|
@@ -275825,7 +275841,7 @@ function restartCommand() {
|
|
|
275825
275841
|
|
|
275826
275842
|
// src/commands/platform/custom-deployments/update.ts
|
|
275827
275843
|
function customDeploymentsUpdateCommand() {
|
|
275828
|
-
return new Command("custom-deployment").alias("
|
|
275844
|
+
return new Command("custom-deployment").alias("cd").argument("<tag>", "The tag to update the custom deployment to").option("--unique-name <uniqueName>", "The unique name of the custom deployment to update. If not provided, will use SETTLEMINT_CUSTOM_DEPLOYMENT from env").option("--prod", "Connect to your production environment").option("--wait", "Wait for the custom deployment to be redeployed").description("Update a custom deployment in the SettleMint platform").action(async (tag, { uniqueName, prod, wait }) => {
|
|
275829
275845
|
intro("Updating custom deployment in the SettleMint platform");
|
|
275830
275846
|
const env2 = await loadEnv2(false, !!prod);
|
|
275831
275847
|
const customDeploymentUniqueName = uniqueName ?? env2.SETTLEMINT_CUSTOM_DEPLOYMENT;
|
|
@@ -276123,7 +276139,20 @@ function mapPassthroughOptions(options, command) {
|
|
|
276123
276139
|
|
|
276124
276140
|
// src/commands/smart-contract-set/foundry/build.ts
|
|
276125
276141
|
function foundryBuildCommand() {
|
|
276126
|
-
return new Command("build").description("Build the smart contracts using Foundry/forge").
|
|
276142
|
+
return new Command("build").description("Build the smart contracts using Foundry/forge").usage(createExamples([
|
|
276143
|
+
{
|
|
276144
|
+
description: "Build the smart contracts using Foundry",
|
|
276145
|
+
command: "scs foundry build"
|
|
276146
|
+
},
|
|
276147
|
+
{
|
|
276148
|
+
description: "Get list of possible Forge build options",
|
|
276149
|
+
command: "scs foundry build --help"
|
|
276150
|
+
},
|
|
276151
|
+
{
|
|
276152
|
+
description: "Build the smart contracts with additional Forge options",
|
|
276153
|
+
command: "scs foundry build --optimize --force"
|
|
276154
|
+
}
|
|
276155
|
+
])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
|
|
276127
276156
|
const forgeOptions = mapPassthroughOptions(passThroughOptions, cmd2);
|
|
276128
276157
|
await executeCommand("forge", ["build", ...forgeOptions]);
|
|
276129
276158
|
});
|
|
@@ -276131,7 +276160,20 @@ function foundryBuildCommand() {
|
|
|
276131
276160
|
|
|
276132
276161
|
// src/commands/smart-contract-set/foundry/format.ts
|
|
276133
276162
|
function foundryFormatCommand() {
|
|
276134
|
-
return new Command("format").description("Format the smart contracts using Foundry/forge").
|
|
276163
|
+
return new Command("format").description("Format the smart contracts using Foundry/forge").usage(createExamples([
|
|
276164
|
+
{
|
|
276165
|
+
description: "Format the smart contracts using Foundry",
|
|
276166
|
+
command: "scs foundry format"
|
|
276167
|
+
},
|
|
276168
|
+
{
|
|
276169
|
+
description: "Get list of possible Forge format options",
|
|
276170
|
+
command: "scs foundry format --help"
|
|
276171
|
+
},
|
|
276172
|
+
{
|
|
276173
|
+
description: "Format the smart contracts with additional Forge options",
|
|
276174
|
+
command: "scs foundry format --check"
|
|
276175
|
+
}
|
|
276176
|
+
])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
|
|
276135
276177
|
const forgeOptions = mapPassthroughOptions(passThroughOptions, cmd2);
|
|
276136
276178
|
await executeCommand("forge", ["fmt", ...forgeOptions]);
|
|
276137
276179
|
note("Smart contract set formatted successfully!");
|
|
@@ -276140,7 +276182,20 @@ function foundryFormatCommand() {
|
|
|
276140
276182
|
|
|
276141
276183
|
// src/commands/smart-contract-set/foundry/network.ts
|
|
276142
276184
|
function foundryNetworkCommand() {
|
|
276143
|
-
return new Command("network").description("Start a development network Foundry/anvil").
|
|
276185
|
+
return new Command("network").description("Start a development network Foundry/anvil").usage(createExamples([
|
|
276186
|
+
{
|
|
276187
|
+
description: "Start a development network using Foundry",
|
|
276188
|
+
command: "scs foundry network"
|
|
276189
|
+
},
|
|
276190
|
+
{
|
|
276191
|
+
description: "Get list of possible Anvil options",
|
|
276192
|
+
command: "scs foundry network --help"
|
|
276193
|
+
},
|
|
276194
|
+
{
|
|
276195
|
+
description: "Start a development network using Foundry with a specific port",
|
|
276196
|
+
command: "scs foundry network --port 3000"
|
|
276197
|
+
}
|
|
276198
|
+
])).helpOption(false).option("-h, --help", "Get list of possible anvil options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
|
|
276144
276199
|
const anvilOptions = mapPassthroughOptions(passThroughOptions, cmd2);
|
|
276145
276200
|
await executeCommand("anvil", anvilOptions);
|
|
276146
276201
|
});
|
|
@@ -276148,7 +276203,20 @@ function foundryNetworkCommand() {
|
|
|
276148
276203
|
|
|
276149
276204
|
// src/commands/smart-contract-set/foundry/test.ts
|
|
276150
276205
|
function foundryTestCommand() {
|
|
276151
|
-
return new Command("test").description("Test the smart contracts using Foundry/forge").
|
|
276206
|
+
return new Command("test").description("Test the smart contracts using Foundry/forge").usage(createExamples([
|
|
276207
|
+
{
|
|
276208
|
+
description: "Run tests using Foundry",
|
|
276209
|
+
command: "scs foundry test"
|
|
276210
|
+
},
|
|
276211
|
+
{
|
|
276212
|
+
description: "Get list of possible Forge test options",
|
|
276213
|
+
command: "scs foundry test --help"
|
|
276214
|
+
},
|
|
276215
|
+
{
|
|
276216
|
+
description: "Run a specific test function",
|
|
276217
|
+
command: "scs foundry test --match-test testToken"
|
|
276218
|
+
}
|
|
276219
|
+
])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
|
|
276152
276220
|
const forgeOptions = mapPassthroughOptions(passThroughOptions, cmd2);
|
|
276153
276221
|
await executeCommand("forge", ["test", ...forgeOptions]);
|
|
276154
276222
|
});
|
|
@@ -276156,7 +276224,20 @@ function foundryTestCommand() {
|
|
|
276156
276224
|
|
|
276157
276225
|
// src/commands/smart-contract-set/hardhat/build.ts
|
|
276158
276226
|
function hardhatBuildCommand() {
|
|
276159
|
-
return new Command("build").description("Build the smart contracts using Hardhat").
|
|
276227
|
+
return new Command("build").description("Build the smart contracts using Hardhat").usage(createExamples([
|
|
276228
|
+
{
|
|
276229
|
+
description: "Build the smart contracts using Hardhat",
|
|
276230
|
+
command: "scs hardhat build"
|
|
276231
|
+
},
|
|
276232
|
+
{
|
|
276233
|
+
description: "Get list of possible Hardhat compile options",
|
|
276234
|
+
command: "scs hardhat build --help"
|
|
276235
|
+
},
|
|
276236
|
+
{
|
|
276237
|
+
description: "Build the smart contracts using additional options to the Hardhat compile command",
|
|
276238
|
+
command: "scs hardhat build --concurrency 2"
|
|
276239
|
+
}
|
|
276240
|
+
])).helpOption(false).option("-h, --help", "Get list of possible hardhat compile options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
|
|
276160
276241
|
const hardhatOptions = mapPassthroughOptions(passThroughOptions, cmd2);
|
|
276161
276242
|
const { command, args } = await getPackageManagerExecutable();
|
|
276162
276243
|
await executeCommand(command, [...args, "hardhat", "compile", ...hardhatOptions]);
|
|
@@ -276165,7 +276246,24 @@ function hardhatBuildCommand() {
|
|
|
276165
276246
|
|
|
276166
276247
|
// src/commands/smart-contract-set/hardhat/deploy/local.ts
|
|
276167
276248
|
function hardhatDeployLocalCommand() {
|
|
276168
|
-
return new Command("local").description("Deploy the smart contracts using Hardhat/ignition to the local development network").
|
|
276249
|
+
return new Command("local").description("Deploy the smart contracts using Hardhat/ignition to the local development network").usage(createExamples([
|
|
276250
|
+
{
|
|
276251
|
+
description: "Deploy smart contracts to local network using Hardhat/Ignition",
|
|
276252
|
+
command: "scs hardhat deploy local"
|
|
276253
|
+
},
|
|
276254
|
+
{
|
|
276255
|
+
description: "Deploy a specific Ignition module",
|
|
276256
|
+
command: "scs hardhat deploy local --module ignition/modules/custom.ts"
|
|
276257
|
+
},
|
|
276258
|
+
{
|
|
276259
|
+
description: "Deploy with a clean deployment state",
|
|
276260
|
+
command: "scs hardhat deploy local --reset"
|
|
276261
|
+
},
|
|
276262
|
+
{
|
|
276263
|
+
description: "Deploy and verify contracts on Etherscan",
|
|
276264
|
+
command: "scs hardhat deploy local --verify"
|
|
276265
|
+
}
|
|
276266
|
+
])).option("-m, --module <ignitionmodule>", 'The module to deploy with Ignition, defaults to "ignition/modules/main.ts"').option("-r, --reset", "Wipes the existing deployment state before deploying").option("-v, --verify", "Verify the deployment on Etherscan").action(async ({ module, reset: reset2, verify }) => {
|
|
276169
276267
|
const { command, args } = await getPackageManagerExecutable();
|
|
276170
276268
|
await executeCommand(command, [
|
|
276171
276269
|
...args,
|
|
@@ -276244,7 +276342,32 @@ function isHardhatConfig(config4) {
|
|
|
276244
276342
|
|
|
276245
276343
|
// src/commands/smart-contract-set/hardhat/deploy/remote.ts
|
|
276246
276344
|
function hardhatDeployRemoteCommand() {
|
|
276247
|
-
const cmd2 = new Command("remote").description("Deploy the smart contracts using Hardhat/ignition to the remote network on the platform").
|
|
276345
|
+
const cmd2 = new Command("remote").description("Deploy the smart contracts using Hardhat/ignition to the remote network on the platform").usage(createExamples([
|
|
276346
|
+
{
|
|
276347
|
+
description: "Deploy smart contracts to remote network using Hardhat/Ignition",
|
|
276348
|
+
command: "scs hardhat deploy remote"
|
|
276349
|
+
},
|
|
276350
|
+
{
|
|
276351
|
+
description: "Deploy a specific Ignition module to remote network",
|
|
276352
|
+
command: "scs hardhat deploy remote --module ignition/modules/custom.ts"
|
|
276353
|
+
},
|
|
276354
|
+
{
|
|
276355
|
+
description: "Deploy with a clean deployment state to remote network",
|
|
276356
|
+
command: "scs hardhat deploy remote --reset"
|
|
276357
|
+
},
|
|
276358
|
+
{
|
|
276359
|
+
description: "Deploy and verify contracts on remote network",
|
|
276360
|
+
command: "scs hardhat deploy remote --verify"
|
|
276361
|
+
},
|
|
276362
|
+
{
|
|
276363
|
+
description: "Deploy to remote network with specific blockchain node",
|
|
276364
|
+
command: "scs hardhat deploy remote --blockchain-node my-node"
|
|
276365
|
+
},
|
|
276366
|
+
{
|
|
276367
|
+
description: "Deploy to production environment",
|
|
276368
|
+
command: "scs hardhat deploy remote --prod"
|
|
276369
|
+
}
|
|
276370
|
+
])).option("-m, --module <ignitionmodule>", 'The module to deploy with Ignition, defaults to "ignition/modules/main.ts"').option("--deployment-id <deploymentId>", "Set the id of the deployment").option("-r, --reset", "Wipes the existing deployment state before deploying").option("-v, --verify", "Verify the deployment on Etherscan").option("--default-sender <defaultSender>", "Set the default sender for the deployment").option("--parameters <parameters>", "A relative path to a JSON file to use for the module parameters").option("--strategy <strategy>", `Set the deployment strategy to use (default: "basic")`).option("--blockchain-node <blockchainNode>", "Blockchain Node unique name (optional, defaults to the blockchain node in the environment)").option("--prod", "Connect to your production environment").option("-a, --accept-defaults", "Accept the default and previously set values");
|
|
276248
276371
|
cmd2.action(async ({
|
|
276249
276372
|
module,
|
|
276250
276373
|
reset: reset2,
|
|
@@ -276324,7 +276447,7 @@ function hardhatDeployRemoteCommand() {
|
|
|
276324
276447
|
|
|
276325
276448
|
// src/commands/smart-contract-set/hardhat/deploy.ts
|
|
276326
276449
|
function hardhatDeployCommand() {
|
|
276327
|
-
const deploy = new Command("deploy");
|
|
276450
|
+
const deploy = new Command("deploy").description("Deploy the smart contracts using Hardhat");
|
|
276328
276451
|
deploy.addCommand(hardhatDeployLocalCommand());
|
|
276329
276452
|
deploy.addCommand(hardhatDeployRemoteCommand());
|
|
276330
276453
|
return deploy;
|
|
@@ -276332,7 +276455,20 @@ function hardhatDeployCommand() {
|
|
|
276332
276455
|
|
|
276333
276456
|
// src/commands/smart-contract-set/hardhat/network.ts
|
|
276334
276457
|
function hardhatNetworkCommand() {
|
|
276335
|
-
return new Command("network").description("Start a development network using Hardhat").
|
|
276458
|
+
return new Command("network").description("Start a development network using Hardhat").usage(createExamples([
|
|
276459
|
+
{
|
|
276460
|
+
description: "Start a development network using Hardhat",
|
|
276461
|
+
command: "scs hardhat network"
|
|
276462
|
+
},
|
|
276463
|
+
{
|
|
276464
|
+
description: "Get list of possible Hardhat node options",
|
|
276465
|
+
command: "scs hardhat network --help"
|
|
276466
|
+
},
|
|
276467
|
+
{
|
|
276468
|
+
description: "Start a development network using Hardhat with a specific port",
|
|
276469
|
+
command: "scs hardhat network --port 3000"
|
|
276470
|
+
}
|
|
276471
|
+
])).helpOption(false).option("-h, --help", "Get list of possible hardhat node options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
|
|
276336
276472
|
const hardhatOptions = mapPassthroughOptions(passThroughOptions, cmd2);
|
|
276337
276473
|
const { command, args } = await getPackageManagerExecutable();
|
|
276338
276474
|
await executeCommand(command, [...args, "hardhat", "node", ...hardhatOptions]);
|
|
@@ -276389,7 +276525,7 @@ function hardhatScriptRemoteCommand() {
|
|
|
276389
276525
|
|
|
276390
276526
|
// src/commands/smart-contract-set/hardhat/script.ts
|
|
276391
276527
|
function hardhatScriptCommand() {
|
|
276392
|
-
const script = new Command("script");
|
|
276528
|
+
const script = new Command("script").description("Run a script using Hardhat");
|
|
276393
276529
|
script.addCommand(hardhatScriptRemoteCommand());
|
|
276394
276530
|
script.addCommand(hardhatScriptLocalCommand());
|
|
276395
276531
|
return script;
|
|
@@ -276397,7 +276533,24 @@ function hardhatScriptCommand() {
|
|
|
276397
276533
|
|
|
276398
276534
|
// src/commands/smart-contract-set/hardhat/test.ts
|
|
276399
276535
|
function hardhatTestCommand() {
|
|
276400
|
-
return new Command("test").description("Test the smart contracts using Hardhat").
|
|
276536
|
+
return new Command("test").description("Test the smart contracts using Hardhat").usage(createExamples([
|
|
276537
|
+
{
|
|
276538
|
+
description: "Run tests using Hardhat",
|
|
276539
|
+
command: "scs hardhat test"
|
|
276540
|
+
},
|
|
276541
|
+
{
|
|
276542
|
+
description: "Get list of possible Hardhat test options",
|
|
276543
|
+
command: "scs hardhat test --help"
|
|
276544
|
+
},
|
|
276545
|
+
{
|
|
276546
|
+
description: "Run tests and stop on the first test that fails",
|
|
276547
|
+
command: "scs hardhat test --bail"
|
|
276548
|
+
},
|
|
276549
|
+
{
|
|
276550
|
+
description: "Run a specific test file",
|
|
276551
|
+
command: "scs hardhat test test/token.test.ts"
|
|
276552
|
+
}
|
|
276553
|
+
])).helpOption(false).option("-h, --help", "Get list of possible hardhat test options").passThroughOptions().allowUnknownOption().action(async (options, cmd2) => {
|
|
276401
276554
|
const hardhatOptions = mapPassthroughOptions(options, cmd2);
|
|
276402
276555
|
const { command, args } = await getPackageManagerExecutable();
|
|
276403
276556
|
await executeCommand(command, [...args, "hardhat", "test", ...hardhatOptions]);
|
|
@@ -276669,7 +276822,16 @@ async function saveSubgraphName(sanitizedSubgraphName, env2, prod) {
|
|
|
276669
276822
|
|
|
276670
276823
|
// src/commands/smart-contract-set/subgraph/deploy.ts
|
|
276671
276824
|
function subgraphDeployCommand() {
|
|
276672
|
-
return new Command("deploy").description("Deploy the subgraph").
|
|
276825
|
+
return new Command("deploy").description("Deploy the subgraph").usage(createExamples([
|
|
276826
|
+
{
|
|
276827
|
+
description: "Deploy the subgraph",
|
|
276828
|
+
command: "scs subgraph deploy"
|
|
276829
|
+
},
|
|
276830
|
+
{
|
|
276831
|
+
description: "Deploy the subgraph with a specific name",
|
|
276832
|
+
command: "scs subgraph deploy my-subgraph"
|
|
276833
|
+
}
|
|
276834
|
+
])).option("-a, --accept-defaults", "Accept the default and previously set values").option("--prod", "Connect to your production environment").argument("[subgraph-name]", "The name of the subgraph to deploy (defaults to value in .env if not provided)").action(async (subgraphName, { prod, acceptDefaults }) => {
|
|
276673
276835
|
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
|
276674
276836
|
const env2 = await loadEnv(false, !!prod);
|
|
276675
276837
|
const instance = await instancePrompt(env2, true);
|
|
@@ -276739,12 +276901,12 @@ async function updateSpecVersion(specVersion) {
|
|
|
276739
276901
|
|
|
276740
276902
|
// src/commands/smart-contract.set.ts
|
|
276741
276903
|
function smartContractSetCommand() {
|
|
276742
|
-
const foundry = new Command("foundry").alias("f").description("Foundry commands for building
|
|
276904
|
+
const foundry = new Command("foundry").alias("f").description("Foundry commands for building and testing smart contracts");
|
|
276743
276905
|
foundry.addCommand(foundryBuildCommand());
|
|
276744
276906
|
foundry.addCommand(foundryFormatCommand());
|
|
276745
276907
|
foundry.addCommand(foundryNetworkCommand());
|
|
276746
276908
|
foundry.addCommand(foundryTestCommand());
|
|
276747
|
-
const hardhat = new Command("hardhat").alias("h").description("Hardhat commands for
|
|
276909
|
+
const hardhat = new Command("hardhat").alias("h").description("Hardhat commands for building, testing and deploying smart contracts");
|
|
276748
276910
|
hardhat.addCommand(hardhatBuildCommand());
|
|
276749
276911
|
hardhat.addCommand(hardhatDeployCommand());
|
|
276750
276912
|
hardhat.addCommand(hardhatNetworkCommand());
|
|
@@ -276783,4 +276945,4 @@ function sdkCliCommand(exitOverride = undefined) {
|
|
|
276783
276945
|
ascii();
|
|
276784
276946
|
sdkCliCommand();
|
|
276785
276947
|
|
|
276786
|
-
//# debugId=
|
|
276948
|
+
//# debugId=FC42FB4F4A56794D64756E2164756E21
|