@settlemint/sdk-cli 2.2.0-pr26d1316a → 2.2.0-pr503fed4b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cli.js +160 -24
- package/dist/cli.js.map +24 -23
- package/package.json +3 -3
package/README.md
CHANGED
@@ -131,7 +131,7 @@ settlemint platform create --help
|
|
131
131
|
|
132
132
|
To use the SettleMint CLI, you first need to authenticate with the platform. Create a Personal Access Token (PAT) on the SettleMint platformand paste it when prompted by the login command.
|
133
133
|
|
134
|
-
Visit [the documentation](https://console.settlemint.com/documentation) to learn how to create a Personal Access Token.
|
134
|
+
Visit [the documentation](https://console.settlemint.com/documentation/platform-components/security-and-authentication/personal-access-tokens) to learn how to create a Personal Access Token.
|
135
135
|
|
136
136
|
Then run the login command and paste your token when prompted:
|
137
137
|
|
package/dist/cli.js
CHANGED
@@ -245345,7 +245345,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
245345
245345
|
var package_default = {
|
245346
245346
|
name: "@settlemint/sdk-cli",
|
245347
245347
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
245348
|
-
version: "2.2.0-
|
245348
|
+
version: "2.2.0-pr503fed4b",
|
245349
245349
|
type: "module",
|
245350
245350
|
private: false,
|
245351
245351
|
license: "FSL-1.1-MIT",
|
@@ -245394,8 +245394,8 @@ var package_default = {
|
|
245394
245394
|
"@inquirer/input": "4.1.9",
|
245395
245395
|
"@inquirer/password": "4.0.12",
|
245396
245396
|
"@inquirer/select": "4.2.0",
|
245397
|
-
"@settlemint/sdk-js": "2.2.0-
|
245398
|
-
"@settlemint/sdk-utils": "2.2.0-
|
245397
|
+
"@settlemint/sdk-js": "2.2.0-pr503fed4b",
|
245398
|
+
"@settlemint/sdk-utils": "2.2.0-pr503fed4b",
|
245399
245399
|
"@types/node": "22.15.3",
|
245400
245400
|
"@types/semver": "7.7.0",
|
245401
245401
|
"@types/which": "3.0.4",
|
@@ -253202,7 +253202,20 @@ async function blockchainNodeOrLoadBalancerPrompt({
|
|
253202
253202
|
|
253203
253203
|
// src/commands/connect.ts
|
253204
253204
|
function connectCommand() {
|
253205
|
-
return new Command("connect").option("--prod", "Connect to your production environment").option("-a, --accept-defaults", "Accept the default and previously set values").option("-i, --instance <instance>", "The instance to connect to (defaults to the instance in the .env file)").description("Connects your project to your application on SettleMint").
|
253205
|
+
return new Command("connect").option("--prod", "Connect to your production environment").option("-a, --accept-defaults", "Accept the default and previously set values").option("-i, --instance <instance>", "The instance to connect to (defaults to the instance in the .env file)").description("Connects your project to your application on SettleMint").usage(createExamples([
|
253206
|
+
{
|
253207
|
+
description: "Connect to your environment",
|
253208
|
+
command: "settlemint connect"
|
253209
|
+
},
|
253210
|
+
{
|
253211
|
+
description: "Connect to your environment using defaults from the .env file",
|
253212
|
+
command: "settlemint connect --accept-defaults"
|
253213
|
+
},
|
253214
|
+
{
|
253215
|
+
description: "Connect to your production environment",
|
253216
|
+
command: "settlemint connect --prod"
|
253217
|
+
}
|
253218
|
+
])).action(async ({ acceptDefaults, prod, instance }) => {
|
253206
253219
|
intro("Connecting your dApp to SettleMint");
|
253207
253220
|
const env2 = await loadEnv(false, !!prod);
|
253208
253221
|
const selectedInstance = instance ? sanitizeAndValidateInstanceUrl(instance) : await instancePrompt(env2, true);
|
@@ -256651,7 +256664,20 @@ async function downloadAndExtractNpmPackage({
|
|
256651
256664
|
|
256652
256665
|
// src/commands/create.ts
|
256653
256666
|
function createCommand2() {
|
256654
|
-
return new Command("create").description("
|
256667
|
+
return new Command("create").description("Create a new application from a template").option("-n, --project-name <name>", "The name for your SettleMint project").option("-t, --template <template>", "The template for your SettleMint project (run `settlemint platform config` to see available templates)").option("-v, --version <version>", "Specify the template version to use (defaults to latest stable version)").option("-i, --instance <instance>", "The instance to connect to").usage(createExamples([
|
256668
|
+
{
|
256669
|
+
description: "Create a new application from a template",
|
256670
|
+
command: "settlemint create"
|
256671
|
+
},
|
256672
|
+
{
|
256673
|
+
description: "Create a new asset tokenization application",
|
256674
|
+
command: "settlemint create --template asset-tokenization"
|
256675
|
+
},
|
256676
|
+
{
|
256677
|
+
description: "Create a new asset tokenization application from a specific version",
|
256678
|
+
command: "settlemint create --template asset-tokenization --version 1.0.0"
|
256679
|
+
}
|
256680
|
+
])).action(async ({ projectName, template, version, instance }) => {
|
256655
256681
|
intro("Creating a new SettleMint project");
|
256656
256682
|
const env2 = await loadEnv(false, false);
|
256657
256683
|
if (version && !template) {
|
@@ -256965,7 +256991,16 @@ function loginCommand() {
|
|
256965
256991
|
|
256966
256992
|
// src/commands/logout.ts
|
256967
256993
|
function logoutCommand() {
|
256968
|
-
return new Command("logout").description("Logout from your SettleMint account").option("--all", "Logout from all instances").
|
256994
|
+
return new Command("logout").description("Logout from your SettleMint account").option("--all", "Logout from all instances").usage(createExamples([
|
256995
|
+
{
|
256996
|
+
description: "Logout from your SettleMint account",
|
256997
|
+
command: "settlemint logout"
|
256998
|
+
},
|
256999
|
+
{
|
257000
|
+
description: "Logout from all instances",
|
257001
|
+
command: "settlemint logout --all"
|
257002
|
+
}
|
257003
|
+
])).action(async (options) => {
|
256969
257004
|
intro("Logging out from SettleMint");
|
256970
257005
|
const instances = await getInstances();
|
256971
257006
|
if (instances.length === 0) {
|
@@ -257021,7 +257056,16 @@ async function pincodeVerificationPrompt(verificationChallenges) {
|
|
257021
257056
|
|
257022
257057
|
// src/commands/pincode-verification-response.ts
|
257023
257058
|
function pincodeVerificationResponseCommand() {
|
257024
|
-
return new Command("pincode-verification-response").alias("pvr").description("Get pincode verification response for a blockchain node").requiredOption("--wallet-address <walletAddress>", "The wallet address to get pincode verification response for").option("-i, --instance <instance>", "The instance to connect to (defaults to the instance in the .env file)").option("--blockchain-node <blockchainNode>", "Blockchain Node unique name to get pincode verification response for").
|
257059
|
+
return new Command("pincode-verification-response").alias("pvr").description("Get pincode verification response for a blockchain node").requiredOption("--wallet-address <walletAddress>", "The wallet address to get pincode verification response for").option("-i, --instance <instance>", "The instance to connect to (defaults to the instance in the .env file)").option("--blockchain-node <blockchainNode>", "Blockchain Node unique name to get pincode verification response for").usage(createExamples([
|
257060
|
+
{
|
257061
|
+
description: "Get pincode verification response for a wallet address",
|
257062
|
+
command: "settlemint pincode-verification-response --wallet-address 0x1234567890123456789012345678901234567890"
|
257063
|
+
},
|
257064
|
+
{
|
257065
|
+
description: "Get pincode verification response for a wallet address and connect to a specific blockchain node",
|
257066
|
+
command: "settlemint pincode-verification-response --wallet-address 0x1234567890123456789012345678901234567890 --blockchain-node my-blockchain-node"
|
257067
|
+
}
|
257068
|
+
])).action(async ({ instance, blockchainNode, walletAddress }) => {
|
257025
257069
|
intro("Generating pincode verification response for wallet address");
|
257026
257070
|
const env2 = await loadEnv(false, false);
|
257027
257071
|
const applicationUniqueName = env2.SETTLEMINT_APPLICATION;
|
@@ -257890,6 +257934,14 @@ function blockscoutInsightsCreateCommand() {
|
|
257890
257934
|
{
|
257891
257935
|
description: "Create a Blockscout insights service in a different application",
|
257892
257936
|
command: "platform create insights blockscout my-blockscout --application app-123"
|
257937
|
+
},
|
257938
|
+
{
|
257939
|
+
description: "Create a Blockscout insights service and connect to a specific load balancer",
|
257940
|
+
command: "platform create insights blockscout my-blockscout --load-balancer my-load-balancer"
|
257941
|
+
},
|
257942
|
+
{
|
257943
|
+
description: "Create a Blockscout insights service and connect to a specific blockchain node",
|
257944
|
+
command: "platform create insights blockscout my-blockscout --blockchain-node my-blockchain-node"
|
257893
257945
|
}
|
257894
257946
|
]
|
257895
257947
|
});
|
@@ -258146,6 +258198,14 @@ function graphMiddlewareCreateCommand() {
|
|
258146
258198
|
{
|
258147
258199
|
description: "Create a graph middleware in a different application",
|
258148
258200
|
command: "platform create middleware graph my-graph --application my-app --blockchain-node node-123"
|
258201
|
+
},
|
258202
|
+
{
|
258203
|
+
description: "Create a graph middleware and connect to a specific load balancer",
|
258204
|
+
command: "platform create middleware graph my-graph --load-balancer my-load-balancer"
|
258205
|
+
},
|
258206
|
+
{
|
258207
|
+
description: "Create a graph middleware and connect to a specific blockchain node",
|
258208
|
+
command: "platform create middleware graph my-graph --blockchain-node my-blockchain-node"
|
258149
258209
|
}
|
258150
258210
|
]
|
258151
258211
|
});
|
@@ -258253,6 +258313,14 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
258253
258313
|
{
|
258254
258314
|
description: "Create a smart contract portal middleware in a different application",
|
258255
258315
|
command: "platform create middleware smart-contract-portal my-portal --application my-app --blockchain-node node-123"
|
258316
|
+
},
|
258317
|
+
{
|
258318
|
+
description: "Create a smart contract portal middleware and connect to a specific blockchain node",
|
258319
|
+
command: "platform create middleware smart-contract-portal my-portal --blockchain-node my-blockchain-node"
|
258320
|
+
},
|
258321
|
+
{
|
258322
|
+
description: "Create a smart contract portal middleware and connect to a specific load balancer",
|
258323
|
+
command: "platform create middleware smart-contract-portal my-portal --load-balancer my-load-balancer"
|
258256
258324
|
}
|
258257
258325
|
]
|
258258
258326
|
});
|
@@ -258567,7 +258635,7 @@ function storageCreateCommand() {
|
|
258567
258635
|
|
258568
258636
|
// src/commands/platform/create.ts
|
258569
258637
|
function createCommand3() {
|
258570
|
-
return new Command("create").alias("c").description("Create a resource in the SettleMint platform").addCommand(
|
258638
|
+
return new Command("create").alias("c").description("Create a resource in the SettleMint platform").addCommand(applicationAccessTokenCreateCommand()).addCommand(applicationCreateCommand()).addCommand(blockchainNetworkCreateCommand()).addCommand(blockchainNodeCreateCommand()).addCommand(insightsCreateCommand()).addCommand(integrationToolCreateCommand()).addCommand(loadBalancerCreateCommand()).addCommand(middlewareCreateCommand()).addCommand(privateKeyCreateCommand()).addCommand(storageCreateCommand()).addCommand(workspaceCreateCommand());
|
258571
258639
|
}
|
258572
258640
|
|
258573
258641
|
// src/prompts/delete-confirmation.prompt.ts
|
@@ -258687,7 +258755,7 @@ function applicationDeleteCommand() {
|
|
258687
258755
|
|
258688
258756
|
// src/commands/platform/delete.ts
|
258689
258757
|
function deleteCommand() {
|
258690
|
-
return new Command("delete").alias("d").description("Delete a resource in the SettleMint platform").addCommand(
|
258758
|
+
return new Command("delete").alias("d").description("Delete a resource in the SettleMint platform").addCommand(applicationDeleteCommand()).addCommand(workspaceDeleteCommand());
|
258691
258759
|
}
|
258692
258760
|
|
258693
258761
|
// src/commands/platform/common/restart-command.ts
|
@@ -258763,6 +258831,19 @@ function blockchainNetworkRestartCommand() {
|
|
258763
258831
|
});
|
258764
258832
|
}
|
258765
258833
|
|
258834
|
+
// src/commands/platform/blockchain-node/restart.ts
|
258835
|
+
function blockchainNodeRestartCommand() {
|
258836
|
+
return getRestartCommand({
|
258837
|
+
name: "blockchain-node",
|
258838
|
+
type: "blockchain node",
|
258839
|
+
alias: "bn",
|
258840
|
+
envKey: "SETTLEMINT_BLOCKCHAIN_NODE",
|
258841
|
+
restartFunction: async (settlemint, id) => {
|
258842
|
+
return settlemint.blockchainNode.restart(id);
|
258843
|
+
}
|
258844
|
+
});
|
258845
|
+
}
|
258846
|
+
|
258766
258847
|
// src/commands/platform/custom-deployments/restart.ts
|
258767
258848
|
function customDeploymentRestartCommand() {
|
258768
258849
|
return getRestartCommand({
|
@@ -258894,13 +258975,22 @@ function storageRestartCommand() {
|
|
258894
258975
|
|
258895
258976
|
// src/commands/platform/restart.ts
|
258896
258977
|
function restartCommand() {
|
258897
|
-
const cmd2 = new Command("restart").description("Restart a resource in the SettleMint platform").addCommand(blockchainNetworkRestartCommand()).addCommand(customDeploymentRestartCommand()).addCommand(insightsRestartCommand()).addCommand(integrationToolRestartCommand()).addCommand(
|
258978
|
+
const cmd2 = new Command("restart").description("Restart a resource in the SettleMint platform").addCommand(blockchainNetworkRestartCommand()).addCommand(blockchainNodeRestartCommand()).addCommand(customDeploymentRestartCommand()).addCommand(insightsRestartCommand()).addCommand(integrationToolRestartCommand()).addCommand(loadBalancerRestartCommand()).addCommand(middlewareRestartCommand()).addCommand(storageRestartCommand());
|
258898
258979
|
return cmd2;
|
258899
258980
|
}
|
258900
258981
|
|
258901
258982
|
// src/commands/platform/custom-deployments/update.ts
|
258902
258983
|
function customDeploymentsUpdateCommand() {
|
258903
|
-
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").
|
258984
|
+
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").usage(createExamples([
|
258985
|
+
{
|
258986
|
+
description: "Update a custom deployment",
|
258987
|
+
command: "settlemint custom-deployment update v1.0.0"
|
258988
|
+
},
|
258989
|
+
{
|
258990
|
+
description: "Update a custom deployment with a specific unique name",
|
258991
|
+
command: "settlemint custom-deployment update v1.0.0 --unique-name my-custom-deployment"
|
258992
|
+
}
|
258993
|
+
])).action(async (tag, { uniqueName, prod, wait }) => {
|
258904
258994
|
intro("Updating custom deployment in the SettleMint platform");
|
258905
258995
|
const env2 = await loadEnv(false, !!prod);
|
258906
258996
|
const customDeploymentUniqueName = uniqueName ?? env2.SETTLEMINT_CUSTOM_DEPLOYMENT;
|
@@ -258999,7 +259089,20 @@ function yamlOutput(data) {
|
|
258999
259089
|
|
259000
259090
|
// src/commands/platform/config.ts
|
259001
259091
|
function configCommand() {
|
259002
|
-
return new Command("config").alias("cfg").description("Get platform configuration").option("--prod", "Connect to your production environment").option("-i, --instance <instance>", "The instance to connect to (defaults to the instance in the .env file)").addOption(new Option("-o, --output <output>", "The output format").choices(["json", "yaml"])).
|
259092
|
+
return new Command("config").alias("cfg").description("Get platform configuration").option("--prod", "Connect to your production environment").option("-i, --instance <instance>", "The instance to connect to (defaults to the instance in the .env file)").addOption(new Option("-o, --output <output>", "The output format").choices(["json", "yaml"])).usage(createExamples([
|
259093
|
+
{
|
259094
|
+
description: "Get platform configuration",
|
259095
|
+
command: "settlemint config"
|
259096
|
+
},
|
259097
|
+
{
|
259098
|
+
description: "Get platform configuration in JSON format",
|
259099
|
+
command: "settlemint config -o json"
|
259100
|
+
},
|
259101
|
+
{
|
259102
|
+
description: "Get platform configuration in YAML format",
|
259103
|
+
command: "settlemint config -o yaml"
|
259104
|
+
}
|
259105
|
+
])).action(async ({ prod, instance, output }) => {
|
259003
259106
|
intro("Getting platform configuration");
|
259004
259107
|
const env2 = await loadEnv(false, !!prod);
|
259005
259108
|
const selectedInstance = instance ? sanitizeAndValidateInstanceUrl(instance) : await instancePrompt(env2, true);
|
@@ -259424,12 +259527,12 @@ function workspacesListCommand() {
|
|
259424
259527
|
|
259425
259528
|
// src/commands/platform/list.ts
|
259426
259529
|
function listCommand() {
|
259427
|
-
return new Command("list").alias("ls").description("List resources in the SettleMint platform").addCommand(
|
259530
|
+
return new Command("list").alias("ls").description("List resources in the SettleMint platform").addCommand(applicationsListCommand()).addCommand(servicesCommand()).addCommand(workspacesListCommand());
|
259428
259531
|
}
|
259429
259532
|
|
259430
259533
|
// src/commands/platform.ts
|
259431
259534
|
function platformCommand() {
|
259432
|
-
return new Command("platform").description("Manage SettleMint platform resources").addCommand(configCommand()).addCommand(createCommand3()).addCommand(
|
259535
|
+
return new Command("platform").description("Manage SettleMint platform resources").addCommand(configCommand()).addCommand(createCommand3()).addCommand(deleteCommand()).addCommand(listCommand()).addCommand(restartCommand()).addCommand(updateCommand());
|
259433
259536
|
}
|
259434
259537
|
|
259435
259538
|
// src/commands/smart-contract-set/create.ts
|
@@ -259487,7 +259590,12 @@ async function executeFoundryCommand(command, args) {
|
|
259487
259590
|
|
259488
259591
|
// src/commands/smart-contract-set/create.ts
|
259489
259592
|
function createCommand4() {
|
259490
|
-
return new Command("create").description("Bootstrap your smart contract set").option("-n, --project-name <name>", "The name for your smart contract set project").option("--use-case <useCase>", "Use case for the smart contract set (run `settlemint platform config` to see available use cases)").option("-i, --instance <instance>", "The instance to connect to").
|
259593
|
+
return new Command("create").description("Bootstrap your smart contract set").option("-n, --project-name <name>", "The name for your smart contract set project").option("--use-case <useCase>", "Use case for the smart contract set (run `settlemint platform config` to see available use cases)").option("-i, --instance <instance>", "The instance to connect to").usage(createExamples([
|
259594
|
+
{
|
259595
|
+
description: "Create a new solidity-token-erc20 smart contract set",
|
259596
|
+
command: "settlemint smart-contract-set create --project-name erc20-contracts --use-case solidity-token-erc20"
|
259597
|
+
}
|
259598
|
+
])).action(async ({ projectName, useCase, instance }) => {
|
259491
259599
|
intro("Creating a new smart contract set");
|
259492
259600
|
const env2 = await loadEnv(false, false);
|
259493
259601
|
const name3 = await projectNamePrompt(env2, projectName);
|
@@ -259982,7 +260090,12 @@ function hardhatNetworkCommand() {
|
|
259982
260090
|
|
259983
260091
|
// src/commands/smart-contract-set/hardhat/script/local.ts
|
259984
260092
|
function hardhatScriptLocalCommand() {
|
259985
|
-
return new Command("local").description("Run a Hardhat script
|
260093
|
+
return new Command("local").description("Run a Hardhat script on a local development network.").requiredOption("-s, --script <script>", 'The script to run with Hardhat , e.g. "scripts/deploy.ts"').option("--no-compile", "Don't compile before running this task").usage(createExamples([
|
260094
|
+
{
|
260095
|
+
description: "Run a Hardhat script on a local network",
|
260096
|
+
command: "settlemint hardhat script local --script scripts/deploy.ts"
|
260097
|
+
}
|
260098
|
+
])).action(async ({ script, compile }) => {
|
259986
260099
|
intro("Running Hardhat script on local network");
|
259987
260100
|
await validateIfRequiredPackagesAreInstalled(["hardhat"]);
|
259988
260101
|
const { command, args } = await getPackageManagerExecutable();
|
@@ -260001,7 +260114,20 @@ function hardhatScriptLocalCommand() {
|
|
260001
260114
|
|
260002
260115
|
// src/commands/smart-contract-set/hardhat/script/remote.ts
|
260003
260116
|
function hardhatScriptRemoteCommand() {
|
260004
|
-
const cmd2 = new Command("remote").description("Run a Hardhat script
|
260117
|
+
const cmd2 = new Command("remote").description("Run a Hardhat script on a remote network on the platform.").requiredOption("-s, --script <script>", 'The script to run with Hardhat , e.g. "scripts/deploy.ts"').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").option("--no-compile", "Don't compile before running this task").usage(createExamples([
|
260118
|
+
{
|
260119
|
+
description: "Run a Hardhat script on a remote network",
|
260120
|
+
command: "settlemint hardhat script remote --script scripts/deploy.ts"
|
260121
|
+
},
|
260122
|
+
{
|
260123
|
+
description: "Run a Hardhat script on a remote network with a specific blockchain node",
|
260124
|
+
command: "settlemint hardhat script remote --script scripts/deploy.ts --blockchain-node my-blockchain-node"
|
260125
|
+
},
|
260126
|
+
{
|
260127
|
+
description: "Run a Hardhat script on a remote network without compiling",
|
260128
|
+
command: "settlemint hardhat script remote --script scripts/deploy.ts --no-compile"
|
260129
|
+
}
|
260130
|
+
]));
|
260005
260131
|
cmd2.action(async ({ script, prod, blockchainNode: blockchainNodeUniqueName, acceptDefaults, compile }) => {
|
260006
260132
|
intro("Running Hardhat script on remote network");
|
260007
260133
|
await validateIfRequiredPackagesAreInstalled(["hardhat"]);
|
@@ -260216,7 +260342,12 @@ async function getNodeName({
|
|
260216
260342
|
|
260217
260343
|
// src/commands/smart-contract-set/subgraph/build.ts
|
260218
260344
|
function subgraphBuildCommand() {
|
260219
|
-
return new Command("build").description("Build the subgraph").
|
260345
|
+
return new Command("build").description("Build the subgraph").usage(createExamples([
|
260346
|
+
{
|
260347
|
+
description: "Build the subgraph",
|
260348
|
+
command: "settlemint subgraph build"
|
260349
|
+
}
|
260350
|
+
])).action(async () => {
|
260220
260351
|
intro("Building subgraph");
|
260221
260352
|
await validateIfRequiredPackagesAreInstalled(["@graphprotocol/graph-cli"]);
|
260222
260353
|
await subgraphSetup({
|
@@ -260234,7 +260365,12 @@ function subgraphBuildCommand() {
|
|
260234
260365
|
// src/commands/smart-contract-set/subgraph/codegen.ts
|
260235
260366
|
import { dirname as dirname11 } from "node:path";
|
260236
260367
|
function subgraphCodegenCommand() {
|
260237
|
-
return new Command("codegen").description("Codegen the subgraph types").
|
260368
|
+
return new Command("codegen").description("Codegen the subgraph types").usage(createExamples([
|
260369
|
+
{
|
260370
|
+
description: "Generate subgraph types",
|
260371
|
+
command: "settlemint subgraph codegen"
|
260372
|
+
}
|
260373
|
+
])).action(async () => {
|
260238
260374
|
intro("Generating subgraph types");
|
260239
260375
|
await validateIfRequiredPackagesAreInstalled(["@graphprotocol/graph-cli"]);
|
260240
260376
|
await subgraphSetup({
|
@@ -260532,15 +260668,15 @@ ${error5.stack}`));
|
|
260532
260668
|
function registerCommands() {
|
260533
260669
|
const sdkcli = new Command;
|
260534
260670
|
sdkcli.name("settlemint").usage("[command]").description(`CLI for SettleMint (v${package_default.version})`).version(package_default.version, "-v, --version", "Output the current version").helpOption("-h, --help", "Display help for command").allowUnknownOption().showSuggestionAfterError(true).showHelpAfterError().passThroughOptions();
|
260535
|
-
sdkcli.addCommand(connectCommand());
|
260536
260671
|
sdkcli.addCommand(codegenCommand());
|
260537
|
-
sdkcli.addCommand(
|
260538
|
-
sdkcli.addCommand(smartContractSetCommand());
|
260672
|
+
sdkcli.addCommand(connectCommand());
|
260539
260673
|
sdkcli.addCommand(createCommand2());
|
260674
|
+
sdkcli.addCommand(hasuraCommand());
|
260540
260675
|
sdkcli.addCommand(loginCommand());
|
260541
260676
|
sdkcli.addCommand(logoutCommand());
|
260542
260677
|
sdkcli.addCommand(pincodeVerificationResponseCommand());
|
260543
|
-
sdkcli.addCommand(
|
260678
|
+
sdkcli.addCommand(platformCommand());
|
260679
|
+
sdkcli.addCommand(smartContractSetCommand());
|
260544
260680
|
return sdkcli;
|
260545
260681
|
}
|
260546
260682
|
async function sdkCliCommand(argv = process.argv) {
|
@@ -260560,4 +260696,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
260560
260696
|
// src/cli.ts
|
260561
260697
|
sdkCliCommand();
|
260562
260698
|
|
260563
|
-
//# debugId=
|
260699
|
+
//# debugId=514072B03B4E8E4164756E2164756E21
|