@settlemint/sdk-cli 2.4.0-prb7837cfe → 2.4.0-prbfb36448
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 +71 -95
- package/dist/cli.js.map +31 -31
- package/package.json +4 -4
package/dist/cli.js
CHANGED
@@ -263840,7 +263840,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
263840
263840
|
var package_default = {
|
263841
263841
|
name: "@settlemint/sdk-cli",
|
263842
263842
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
263843
|
-
version: "2.4.0-
|
263843
|
+
version: "2.4.0-prbfb36448",
|
263844
263844
|
type: "module",
|
263845
263845
|
private: false,
|
263846
263846
|
license: "FSL-1.1-MIT",
|
@@ -263891,9 +263891,9 @@ var package_default = {
|
|
263891
263891
|
"@inquirer/input": "4.1.12",
|
263892
263892
|
"@inquirer/password": "4.0.15",
|
263893
263893
|
"@inquirer/select": "4.2.3",
|
263894
|
-
"@settlemint/sdk-js": "2.4.0-
|
263895
|
-
"@settlemint/sdk-utils": "2.4.0-
|
263896
|
-
"@settlemint/sdk-viem": "2.4.0-
|
263894
|
+
"@settlemint/sdk-js": "2.4.0-prbfb36448",
|
263895
|
+
"@settlemint/sdk-utils": "2.4.0-prbfb36448",
|
263896
|
+
"@settlemint/sdk-viem": "2.4.0-prbfb36448",
|
263897
263897
|
"@types/node": "24.0.8",
|
263898
263898
|
"@types/semver": "7.7.0",
|
263899
263899
|
"@types/which": "3.0.4",
|
@@ -326494,7 +326494,8 @@ async function waitForCompletion({
|
|
326494
326494
|
uniqueName,
|
326495
326495
|
action,
|
326496
326496
|
maxTimeout = 10 * 60 * 1000,
|
326497
|
-
restartIfTimeout = false
|
326497
|
+
restartIfTimeout = false,
|
326498
|
+
restartOnError = false
|
326498
326499
|
}) {
|
326499
326500
|
const serviceType = SETTLEMINT_CLIENT_MAP[type4];
|
326500
326501
|
if (serviceType === "workspace" || serviceType === "application" || serviceType === "foundry" || serviceType === "applicationAccessToken" || serviceType === "platform" || serviceType === "wallet") {
|
@@ -326513,49 +326514,21 @@ async function waitForCompletion({
|
|
326513
326514
|
while (true) {
|
326514
326515
|
try {
|
326515
326516
|
const resource = await service.read(uniqueName);
|
326516
|
-
if (action === "pause" && (resource.status === "PAUSED" || resource.status === "AUTO_PAUSED")) {
|
326517
|
-
if (spinner2) {
|
326518
|
-
spinner2.text = `${capitalizeFirstLetter2(type4)} is ${getActionLabel(action)}`;
|
326519
|
-
} else {
|
326520
|
-
note(`${capitalizeFirstLetter2(type4)} is ${getActionLabel(action)}`);
|
326521
|
-
}
|
326522
|
-
return true;
|
326523
|
-
}
|
326524
|
-
if (action === "resume" && resource.status === "COMPLETED") {
|
326525
|
-
if (spinner2) {
|
326526
|
-
spinner2.text = `${capitalizeFirstLetter2(type4)} is ${getActionLabel(action)}`;
|
326527
|
-
} else {
|
326528
|
-
note(`${capitalizeFirstLetter2(type4)} is ${getActionLabel(action)}`);
|
326529
|
-
}
|
326530
|
-
return true;
|
326531
|
-
}
|
326532
|
-
if ((action === "deploy" || action === "destroy" || action === "restart") && resource.status === "COMPLETED") {
|
326533
|
-
if (spinner2) {
|
326534
|
-
spinner2.text = `${capitalizeFirstLetter2(type4)} is ${getActionLabel(action)}`;
|
326535
|
-
} else {
|
326536
|
-
note(`${capitalizeFirstLetter2(type4)} is ${getActionLabel(action)}`);
|
326537
|
-
}
|
326538
|
-
return true;
|
326539
|
-
}
|
326540
326517
|
if (resource.status === "FAILED") {
|
326541
|
-
|
326542
|
-
|
326543
|
-
|
326544
|
-
|
326518
|
+
updateStatus(spinner2, `${capitalizeFirstLetter2(type4)} failed to ${getActionLabel(action)}`);
|
326519
|
+
if (restartOnError) {
|
326520
|
+
note(`Restarting ${capitalizeFirstLetter2(type4)}`);
|
326521
|
+
await service.restart(uniqueName);
|
326545
326522
|
}
|
326546
326523
|
return false;
|
326547
326524
|
}
|
326548
|
-
if (
|
326549
|
-
spinner2
|
326550
|
-
|
326551
|
-
note(`${capitalizeFirstLetter2(type4)} is not ready yet (status: ${resource.status})`);
|
326525
|
+
if (isActionComplete(action, resource.status)) {
|
326526
|
+
updateStatus(spinner2, `${capitalizeFirstLetter2(type4)} is ${getActionLabel(action)}`);
|
326527
|
+
return true;
|
326552
326528
|
}
|
326529
|
+
updateStatus(spinner2, `${capitalizeFirstLetter2(type4)} is not ready yet (status: ${resource.status})`);
|
326553
326530
|
} catch (_error) {
|
326554
|
-
|
326555
|
-
spinner2.text = `${capitalizeFirstLetter2(type4)} is not ready yet (status: UNKNOWN)`;
|
326556
|
-
} else {
|
326557
|
-
note(`${capitalizeFirstLetter2(type4)} is not ready yet (status: UNKNOWN)`);
|
326558
|
-
}
|
326531
|
+
updateStatus(spinner2, `${capitalizeFirstLetter2(type4)} is not ready yet (status: UNKNOWN)`);
|
326559
326532
|
}
|
326560
326533
|
if (Date.now() - startTime > maxTimeout) {
|
326561
326534
|
throw new TimeoutError2(`Operation timed out after ${maxTimeout / 60000} minutes for ${type4} with unique name ${uniqueName}`);
|
@@ -326577,20 +326550,41 @@ async function waitForCompletion({
|
|
326577
326550
|
throw error45;
|
326578
326551
|
}
|
326579
326552
|
}
|
326580
|
-
function
|
326581
|
-
if (
|
326582
|
-
|
326583
|
-
}
|
326584
|
-
|
326585
|
-
|
326586
|
-
|
326587
|
-
|
326588
|
-
|
326553
|
+
function updateStatus(spinner2, message) {
|
326554
|
+
if (spinner2) {
|
326555
|
+
spinner2.text = message;
|
326556
|
+
} else {
|
326557
|
+
note(message);
|
326558
|
+
}
|
326559
|
+
}
|
326560
|
+
function isActionComplete(action, status) {
|
326561
|
+
switch (action) {
|
326562
|
+
case "pause":
|
326563
|
+
return status === "PAUSED" || status === "AUTO_PAUSED";
|
326564
|
+
case "resume":
|
326565
|
+
case "deploy":
|
326566
|
+
case "destroy":
|
326567
|
+
case "restart":
|
326568
|
+
return status === "COMPLETED";
|
326569
|
+
default:
|
326570
|
+
return false;
|
326589
326571
|
}
|
326590
|
-
|
326591
|
-
|
326572
|
+
}
|
326573
|
+
function getActionLabel(action) {
|
326574
|
+
switch (action) {
|
326575
|
+
case "restart":
|
326576
|
+
return "restarted";
|
326577
|
+
case "destroy":
|
326578
|
+
return "destroyed";
|
326579
|
+
case "pause":
|
326580
|
+
return "paused";
|
326581
|
+
case "resume":
|
326582
|
+
return "resumed";
|
326583
|
+
case "deploy":
|
326584
|
+
return "deployed";
|
326585
|
+
default:
|
326586
|
+
return "deployed";
|
326592
326587
|
}
|
326593
|
-
return "deployed";
|
326594
326588
|
}
|
326595
326589
|
|
326596
326590
|
// src/prompts/provider.prompt.ts
|
@@ -326671,9 +326665,9 @@ function getCreateCommand({
|
|
326671
326665
|
cmd2.alias(alias);
|
326672
326666
|
}
|
326673
326667
|
if (requiresDeployment) {
|
326674
|
-
cmd2.option("-w, --wait", "Wait until deployed").option("
|
326668
|
+
cmd2.option("-w, --wait", "Wait until deployed").option("--restart-if-timeout", "Restart if wait time is exceeded").option("--restart-on-error", "Restart if deployment fails");
|
326675
326669
|
}
|
326676
|
-
execute2(cmd2, async ({ acceptDefaults, prod, default: isDefault, wait: wait2, restartIfTimeout, provider, region }, createFunction) => {
|
326670
|
+
execute2(cmd2, async ({ acceptDefaults, prod, default: isDefault, wait: wait2, restartIfTimeout, restartOnError, provider, region }, createFunction) => {
|
326677
326671
|
intro(`Creating ${type4} in the SettleMint platform`);
|
326678
326672
|
const env2 = await loadEnv(false, !!prod);
|
326679
326673
|
const instance = await instancePrompt({ env: env2, accept: acceptDefaults });
|
@@ -326717,7 +326711,8 @@ function getCreateCommand({
|
|
326717
326711
|
type: waitFor?.resourceType ?? type4,
|
326718
326712
|
uniqueName: waitFor?.uniqueName ?? result.uniqueName,
|
326719
326713
|
action: "deploy",
|
326720
|
-
restartIfTimeout
|
326714
|
+
restartIfTimeout,
|
326715
|
+
restartOnError
|
326721
326716
|
});
|
326722
326717
|
if (!isDeployed) {
|
326723
326718
|
throw new Error(`Failed to deploy ${waitFor?.resourceType ?? type4} ${waitFor?.uniqueName ?? result.uniqueName}`);
|
@@ -328192,21 +328187,22 @@ function deleteCommand() {
|
|
328192
328187
|
function getPauseCommand({
|
328193
328188
|
name: name3,
|
328194
328189
|
type: type4,
|
328195
|
-
subType,
|
328196
328190
|
alias,
|
328197
328191
|
envKey,
|
328198
328192
|
pauseFunction,
|
328199
328193
|
usePersonalAccessToken = true
|
328200
328194
|
}) {
|
328201
328195
|
const commandName = sanitizeCommandName(name3);
|
328196
|
+
const typeCommandName = sanitizeCommandName(type4);
|
328197
|
+
const exampleCommandPrefix = `platform pause ${typeCommandName !== commandName ? `${typeCommandName} ` : ""}${commandName}`;
|
328202
328198
|
return new Command(commandName).alias(alias).description(`Pause a ${type4} in the SettleMint platform. Provide the ${type4} unique name or use 'default' to pause the default ${type4} from your .env file.`).usage(createExamples([
|
328203
328199
|
{
|
328204
|
-
description: `Pauses the specified ${type4} by
|
328205
|
-
command:
|
328200
|
+
description: `Pauses the specified ${type4} by unique name`,
|
328201
|
+
command: `${exampleCommandPrefix} <unique-name>`
|
328206
328202
|
},
|
328207
328203
|
{
|
328208
328204
|
description: `Pauses the default ${type4} in the production environment`,
|
328209
|
-
command:
|
328205
|
+
command: `${exampleCommandPrefix} default --prod`
|
328210
328206
|
}
|
328211
328207
|
])).argument("<unique-name>", `The unique name of the ${type4}, use 'default' to pause 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 paused").action(async (uniqueName, { acceptDefaults, prod, wait: wait2 }) => {
|
328212
328208
|
intro(`Pausing ${type4} in the SettleMint platform`);
|
@@ -328292,7 +328288,6 @@ function blockscoutPauseCommand() {
|
|
328292
328288
|
return getPauseCommand({
|
328293
328289
|
name: "blockscout",
|
328294
328290
|
type: "insights",
|
328295
|
-
subType: "blockscout",
|
328296
328291
|
alias: "bs",
|
328297
328292
|
envKey: "SETTLEMINT_BLOCKSCOUT",
|
328298
328293
|
pauseFunction: async (settlemint, id) => {
|
@@ -328306,7 +328301,6 @@ function hasuraPauseCommand() {
|
|
328306
328301
|
return getPauseCommand({
|
328307
328302
|
name: "hasura",
|
328308
328303
|
type: "integration tool",
|
328309
|
-
subType: "hasura",
|
328310
328304
|
alias: "ha",
|
328311
328305
|
envKey: "SETTLEMINT_HASURA",
|
328312
328306
|
pauseFunction: async (settlemint, id) => {
|
@@ -328320,7 +328314,6 @@ function evmLoadBalancerPauseCommand() {
|
|
328320
328314
|
return getPauseCommand({
|
328321
328315
|
name: "evm",
|
328322
328316
|
type: "load balancer",
|
328323
|
-
subType: "evm",
|
328324
328317
|
alias: "lb",
|
328325
328318
|
envKey: "SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER",
|
328326
328319
|
pauseFunction: async (settlemint, id) => {
|
@@ -328334,7 +328327,6 @@ function graphMiddlewarePauseCommand() {
|
|
328334
328327
|
return getPauseCommand({
|
328335
328328
|
name: "graph",
|
328336
328329
|
type: "middleware",
|
328337
|
-
subType: "graph",
|
328338
328330
|
alias: "gr",
|
328339
328331
|
envKey: "SETTLEMINT_THEGRAPH",
|
328340
328332
|
pauseFunction: async (settlemint, id) => {
|
@@ -328348,7 +328340,6 @@ function smartContractPortalMiddlewarePauseCommand() {
|
|
328348
328340
|
return getPauseCommand({
|
328349
328341
|
name: "smart-contract-portal",
|
328350
328342
|
type: "middleware",
|
328351
|
-
subType: "smart-contract-portal",
|
328352
328343
|
alias: "scp",
|
328353
328344
|
envKey: "SETTLEMINT_PORTAL",
|
328354
328345
|
pauseFunction: async (settlemint, id) => {
|
@@ -328362,7 +328353,6 @@ function accessibleEcdsaP256PrivateKeyPauseCommand() {
|
|
328362
328353
|
return getPauseCommand({
|
328363
328354
|
name: "accessible-ecdsa-p256",
|
328364
328355
|
type: "private key",
|
328365
|
-
subType: "accessible-ecdsa-p256",
|
328366
328356
|
alias: "acc",
|
328367
328357
|
envKey: "SETTLEMINT_ACCESSIBLE_PRIVATE_KEY",
|
328368
328358
|
pauseFunction: async (settlemint, id) => {
|
@@ -328376,7 +328366,6 @@ function hdEcdsaP256PrivateKeyPauseCommand() {
|
|
328376
328366
|
return getPauseCommand({
|
328377
328367
|
name: "hd-ecdsa-p256",
|
328378
328368
|
type: "private key",
|
328379
|
-
subType: "hd-ecdsa-p256",
|
328380
328369
|
alias: "hd",
|
328381
328370
|
envKey: "SETTLEMINT_HD_PRIVATE_KEY",
|
328382
328371
|
pauseFunction: async (settlemint, id) => {
|
@@ -328390,7 +328379,6 @@ function ipfsStoragePauseCommand() {
|
|
328390
328379
|
return getPauseCommand({
|
328391
328380
|
name: "ipfs",
|
328392
328381
|
type: "storage",
|
328393
|
-
subType: "ipfs",
|
328394
328382
|
alias: "ip",
|
328395
328383
|
envKey: "SETTLEMINT_IPFS",
|
328396
328384
|
pauseFunction: async (settlemint, id) => {
|
@@ -328404,7 +328392,6 @@ function minioStoragePauseCommand() {
|
|
328404
328392
|
return getPauseCommand({
|
328405
328393
|
name: "minio",
|
328406
328394
|
type: "storage",
|
328407
|
-
subType: "minio",
|
328408
328395
|
alias: "m",
|
328409
328396
|
envKey: "SETTLEMINT_MINIO",
|
328410
328397
|
pauseFunction: async (settlemint, id) => {
|
@@ -328423,21 +328410,22 @@ function pauseCommand() {
|
|
328423
328410
|
function getRestartCommand({
|
328424
328411
|
name: name3,
|
328425
328412
|
type: type4,
|
328426
|
-
subType,
|
328427
328413
|
alias,
|
328428
328414
|
envKey,
|
328429
328415
|
restartFunction,
|
328430
328416
|
usePersonalAccessToken = true
|
328431
328417
|
}) {
|
328432
328418
|
const commandName = sanitizeCommandName(name3);
|
328419
|
+
const typeCommandName = sanitizeCommandName(type4);
|
328420
|
+
const exampleCommandPrefix = `platform restart ${typeCommandName !== commandName ? `${typeCommandName} ` : ""}${commandName}`;
|
328433
328421
|
return new Command(commandName).alias(alias).description(`Restart a ${type4} in the SettleMint platform. Provide the ${type4} unique name or use 'default' to restart the default ${type4} from your .env file.`).usage(createExamples([
|
328434
328422
|
{
|
328435
|
-
description: `Restarts the specified ${type4} by
|
328436
|
-
command:
|
328423
|
+
description: `Restarts the specified ${type4} by unique name`,
|
328424
|
+
command: `${exampleCommandPrefix} <unique-name>`
|
328437
328425
|
},
|
328438
328426
|
{
|
328439
328427
|
description: `Restarts the default ${type4} in the production environment`,
|
328440
|
-
command:
|
328428
|
+
command: `${exampleCommandPrefix} default --prod`
|
328441
328429
|
}
|
328442
328430
|
])).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: wait2 }) => {
|
328443
328431
|
intro(`Restarting ${type4} in the SettleMint platform`);
|
@@ -328524,7 +328512,6 @@ function blockscoutRestartCommand() {
|
|
328524
328512
|
return getRestartCommand({
|
328525
328513
|
name: "blockscout",
|
328526
328514
|
type: "insights",
|
328527
|
-
subType: "blockscout",
|
328528
328515
|
alias: "bs",
|
328529
328516
|
envKey: "SETTLEMINT_BLOCKSCOUT",
|
328530
328517
|
restartFunction: async (settlemint, uniqueName) => {
|
@@ -328543,7 +328530,6 @@ function hasuraRestartCommand() {
|
|
328543
328530
|
return getRestartCommand({
|
328544
328531
|
name: "hasura",
|
328545
328532
|
type: "integration tool",
|
328546
|
-
subType: "hasura",
|
328547
328533
|
alias: "ha",
|
328548
328534
|
envKey: "SETTLEMINT_HASURA",
|
328549
328535
|
restartFunction: async (settlemint, uniqueName) => {
|
@@ -328575,7 +328561,6 @@ function graphRestartCommand() {
|
|
328575
328561
|
return getRestartCommand({
|
328576
328562
|
name: "graph",
|
328577
328563
|
type: "middleware",
|
328578
|
-
subType: "graph",
|
328579
328564
|
alias: "gr",
|
328580
328565
|
envKey: "SETTLEMINT_THEGRAPH",
|
328581
328566
|
restartFunction: async (settlemint, id) => {
|
@@ -328589,7 +328574,6 @@ function smartContractPortalRestartCommand() {
|
|
328589
328574
|
return getRestartCommand({
|
328590
328575
|
name: "smart-contract-portal",
|
328591
328576
|
type: "middleware",
|
328592
|
-
subType: "smart-contract-portal",
|
328593
328577
|
alias: "scp",
|
328594
328578
|
envKey: "SETTLEMINT_PORTAL",
|
328595
328579
|
restartFunction: async (settlemint, uniqueName) => {
|
@@ -328644,21 +328628,22 @@ function restartCommand() {
|
|
328644
328628
|
function getResumeCommand({
|
328645
328629
|
name: name3,
|
328646
328630
|
type: type4,
|
328647
|
-
subType,
|
328648
328631
|
alias,
|
328649
328632
|
envKey,
|
328650
328633
|
resumeFunction,
|
328651
328634
|
usePersonalAccessToken = true
|
328652
328635
|
}) {
|
328653
328636
|
const commandName = sanitizeCommandName(name3);
|
328637
|
+
const typeCommandName = sanitizeCommandName(type4);
|
328638
|
+
const exampleCommandPrefix = `platform resume ${typeCommandName !== commandName ? `${typeCommandName} ` : ""}${commandName}`;
|
328654
328639
|
return new Command(commandName).alias(alias).description(`Resume a ${type4} in the SettleMint platform. Provide the ${type4} unique name or use 'default' to resume the default ${type4} from your .env file.`).usage(createExamples([
|
328655
328640
|
{
|
328656
|
-
description: `Resumes the specified ${type4} by
|
328657
|
-
command:
|
328641
|
+
description: `Resumes the specified ${type4} by unique name`,
|
328642
|
+
command: `${exampleCommandPrefix} <unique-name>`
|
328658
328643
|
},
|
328659
328644
|
{
|
328660
328645
|
description: `Resumes the default ${type4} in the production environment`,
|
328661
|
-
command:
|
328646
|
+
command: `${exampleCommandPrefix} default --prod`
|
328662
328647
|
}
|
328663
328648
|
])).argument("<unique-name>", `The unique name of the ${type4}, use 'default' to resume 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 resumed").action(async (uniqueName, { acceptDefaults, prod, wait: wait2 }) => {
|
328664
328649
|
intro(`Resuming ${type4} in the SettleMint platform`);
|
@@ -328744,7 +328729,6 @@ function blockscoutResumeCommand() {
|
|
328744
328729
|
return getResumeCommand({
|
328745
328730
|
name: "blockscout",
|
328746
328731
|
type: "insights",
|
328747
|
-
subType: "blockscout",
|
328748
328732
|
alias: "bs",
|
328749
328733
|
envKey: "SETTLEMINT_BLOCKSCOUT",
|
328750
328734
|
resumeFunction: async (settlemint, id) => {
|
@@ -328758,7 +328742,6 @@ function hasuraResumeCommand() {
|
|
328758
328742
|
return getResumeCommand({
|
328759
328743
|
name: "hasura",
|
328760
328744
|
type: "integration tool",
|
328761
|
-
subType: "hasura",
|
328762
328745
|
alias: "ha",
|
328763
328746
|
envKey: "SETTLEMINT_HASURA",
|
328764
328747
|
resumeFunction: async (settlemint, id) => {
|
@@ -328772,7 +328755,6 @@ function evmLoadBalancerResumeCommand() {
|
|
328772
328755
|
return getResumeCommand({
|
328773
328756
|
name: "evm",
|
328774
328757
|
type: "load balancer",
|
328775
|
-
subType: "evm",
|
328776
328758
|
alias: "lb",
|
328777
328759
|
envKey: "SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER",
|
328778
328760
|
resumeFunction: async (settlemint, id) => {
|
@@ -328786,7 +328768,6 @@ function graphMiddlewareResumeCommand() {
|
|
328786
328768
|
return getResumeCommand({
|
328787
328769
|
name: "graph",
|
328788
328770
|
type: "middleware",
|
328789
|
-
subType: "graph",
|
328790
328771
|
alias: "gr",
|
328791
328772
|
envKey: "SETTLEMINT_THEGRAPH",
|
328792
328773
|
resumeFunction: async (settlemint, id) => {
|
@@ -328800,7 +328781,6 @@ function smartContractPortalMiddlewareResumeCommand() {
|
|
328800
328781
|
return getResumeCommand({
|
328801
328782
|
name: "smart-contract-portal",
|
328802
328783
|
type: "middleware",
|
328803
|
-
subType: "smart-contract-portal",
|
328804
328784
|
alias: "scp",
|
328805
328785
|
envKey: "SETTLEMINT_PORTAL",
|
328806
328786
|
resumeFunction: async (settlemint, id) => {
|
@@ -328814,7 +328794,6 @@ function accessibleEcdsaP256PrivateKeyResumeCommand() {
|
|
328814
328794
|
return getResumeCommand({
|
328815
328795
|
name: "accessible-ecdsa-p256",
|
328816
328796
|
type: "private key",
|
328817
|
-
subType: "accessible-ecdsa-p256",
|
328818
328797
|
alias: "acc",
|
328819
328798
|
envKey: "SETTLEMINT_ACCESSIBLE_PRIVATE_KEY",
|
328820
328799
|
resumeFunction: async (settlemint, id) => {
|
@@ -328828,7 +328807,6 @@ function hdEcdsaP256PrivateKeyResumeCommand() {
|
|
328828
328807
|
return getResumeCommand({
|
328829
328808
|
name: "hd-ecdsa-p256",
|
328830
328809
|
type: "private key",
|
328831
|
-
subType: "hd-ecdsa-p256",
|
328832
328810
|
alias: "hd",
|
328833
328811
|
envKey: "SETTLEMINT_HD_PRIVATE_KEY",
|
328834
328812
|
resumeFunction: async (settlemint, id) => {
|
@@ -328842,7 +328820,6 @@ function ipfsStorageResumeCommand() {
|
|
328842
328820
|
return getResumeCommand({
|
328843
328821
|
name: "ipfs",
|
328844
328822
|
type: "storage",
|
328845
|
-
subType: "ipfs",
|
328846
328823
|
alias: "ip",
|
328847
328824
|
envKey: "SETTLEMINT_IPFS",
|
328848
328825
|
resumeFunction: async (settlemint, id) => {
|
@@ -328856,7 +328833,6 @@ function minioStorageResumeCommand() {
|
|
328856
328833
|
return getResumeCommand({
|
328857
328834
|
name: "minio",
|
328858
328835
|
type: "storage",
|
328859
|
-
subType: "minio",
|
328860
328836
|
alias: "m",
|
328861
328837
|
envKey: "SETTLEMINT_MINIO",
|
328862
328838
|
resumeFunction: async (settlemint, id) => {
|
@@ -330382,12 +330358,12 @@ async function getNodeName({
|
|
330382
330358
|
|
330383
330359
|
// src/commands/smart-contract-set/subgraph/build.ts
|
330384
330360
|
function subgraphBuildCommand() {
|
330385
|
-
return new Command("build").description("Build the subgraph").usage(createExamples([
|
330361
|
+
return new Command("build").description("Build the subgraph").option("--ipfs <ipfs-url>", "The IPFS URL to use for the subgraph deployment").usage(createExamples([
|
330386
330362
|
{
|
330387
330363
|
description: "Build the subgraph",
|
330388
330364
|
command: "scs subgraph build"
|
330389
330365
|
}
|
330390
|
-
])).action(async () => {
|
330366
|
+
])).action(async ({ ipfs }) => {
|
330391
330367
|
intro("Building subgraph");
|
330392
330368
|
await validateIfRequiredPackagesAreInstalled(["@graphprotocol/graph-cli"]);
|
330393
330369
|
await subgraphSetup({
|
@@ -330396,7 +330372,7 @@ function subgraphBuildCommand() {
|
|
330396
330372
|
const { command, args } = await getPackageManagerExecutable();
|
330397
330373
|
const subgraphYamlFile = await getSubgraphYamlFile();
|
330398
330374
|
await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile]);
|
330399
|
-
await executeCommand(command, [...args, "graph", "build", subgraphYamlFile]);
|
330375
|
+
await executeCommand(command, [...args, "graph", "build", ...ipfs ? ["--ipfs", ipfs] : [], subgraphYamlFile]);
|
330400
330376
|
outro("Subgraph built successfully");
|
330401
330377
|
});
|
330402
330378
|
}
|
@@ -330792,4 +330768,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
330792
330768
|
// src/cli.ts
|
330793
330769
|
sdkCliCommand();
|
330794
330770
|
|
330795
|
-
//# debugId=
|
330771
|
+
//# debugId=4726156CD310F48C64756E2164756E21
|