@settlemint/sdk-cli 2.2.0-pr26d1316a → 2.2.0-pr3ff07d18
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 +148 -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-pr3ff07d18",
|
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-pr3ff07d18",
|
245398
|
+
"@settlemint/sdk-utils": "2.2.0-pr3ff07d18",
|
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,12 @@ 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
|
+
])).action(async (options) => {
|
256969
257000
|
intro("Logging out from SettleMint");
|
256970
257001
|
const instances = await getInstances();
|
256971
257002
|
if (instances.length === 0) {
|
@@ -257021,7 +257052,16 @@ async function pincodeVerificationPrompt(verificationChallenges) {
|
|
257021
257052
|
|
257022
257053
|
// src/commands/pincode-verification-response.ts
|
257023
257054
|
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
|
257055
|
+
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([
|
257056
|
+
{
|
257057
|
+
description: "Get pincode verification response for a wallet address",
|
257058
|
+
command: "settlemint pincode-verification-response --wallet-address 0x1234567890123456789012345678901234567890"
|
257059
|
+
},
|
257060
|
+
{
|
257061
|
+
description: "Get pincode verification response for a wallet address and connect to a specific blockchain node",
|
257062
|
+
command: "settlemint pincode-verification-response --wallet-address 0x1234567890123456789012345678901234567890 --blockchain-node my-blockchain-node"
|
257063
|
+
}
|
257064
|
+
])).action(async ({ instance, blockchainNode, walletAddress }) => {
|
257025
257065
|
intro("Generating pincode verification response for wallet address");
|
257026
257066
|
const env2 = await loadEnv(false, false);
|
257027
257067
|
const applicationUniqueName = env2.SETTLEMINT_APPLICATION;
|
@@ -257890,6 +257930,14 @@ function blockscoutInsightsCreateCommand() {
|
|
257890
257930
|
{
|
257891
257931
|
description: "Create a Blockscout insights service in a different application",
|
257892
257932
|
command: "platform create insights blockscout my-blockscout --application app-123"
|
257933
|
+
},
|
257934
|
+
{
|
257935
|
+
description: "Create a Blockscout insights service and connect to a specific load balancer",
|
257936
|
+
command: "platform create insights blockscout my-blockscout --load-balancer my-load-balancer"
|
257937
|
+
},
|
257938
|
+
{
|
257939
|
+
description: "Create a Blockscout insights service and connect to a specific blockchain node",
|
257940
|
+
command: "platform create insights blockscout my-blockscout --blockchain-node my-blockchain-node"
|
257893
257941
|
}
|
257894
257942
|
]
|
257895
257943
|
});
|
@@ -258146,6 +258194,14 @@ function graphMiddlewareCreateCommand() {
|
|
258146
258194
|
{
|
258147
258195
|
description: "Create a graph middleware in a different application",
|
258148
258196
|
command: "platform create middleware graph my-graph --application my-app --blockchain-node node-123"
|
258197
|
+
},
|
258198
|
+
{
|
258199
|
+
description: "Create a graph middleware and connect to a specific load balancer",
|
258200
|
+
command: "platform create middleware graph my-graph --load-balancer my-load-balancer"
|
258201
|
+
},
|
258202
|
+
{
|
258203
|
+
description: "Create a graph middleware and connect to a specific blockchain node",
|
258204
|
+
command: "platform create middleware graph my-graph --blockchain-node my-blockchain-node"
|
258149
258205
|
}
|
258150
258206
|
]
|
258151
258207
|
});
|
@@ -258253,6 +258309,14 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
258253
258309
|
{
|
258254
258310
|
description: "Create a smart contract portal middleware in a different application",
|
258255
258311
|
command: "platform create middleware smart-contract-portal my-portal --application my-app --blockchain-node node-123"
|
258312
|
+
},
|
258313
|
+
{
|
258314
|
+
description: "Create a smart contract portal middleware and connect to a specific blockchain node",
|
258315
|
+
command: "platform create middleware smart-contract-portal my-portal --blockchain-node my-blockchain-node"
|
258316
|
+
},
|
258317
|
+
{
|
258318
|
+
description: "Create a smart contract portal middleware and connect to a specific load balancer",
|
258319
|
+
command: "platform create middleware smart-contract-portal my-portal --load-balancer my-load-balancer"
|
258256
258320
|
}
|
258257
258321
|
]
|
258258
258322
|
});
|
@@ -258567,7 +258631,7 @@ function storageCreateCommand() {
|
|
258567
258631
|
|
258568
258632
|
// src/commands/platform/create.ts
|
258569
258633
|
function createCommand3() {
|
258570
|
-
return new Command("create").alias("c").description("Create a resource in the SettleMint platform").addCommand(
|
258634
|
+
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
258635
|
}
|
258572
258636
|
|
258573
258637
|
// src/prompts/delete-confirmation.prompt.ts
|
@@ -258687,7 +258751,7 @@ function applicationDeleteCommand() {
|
|
258687
258751
|
|
258688
258752
|
// src/commands/platform/delete.ts
|
258689
258753
|
function deleteCommand() {
|
258690
|
-
return new Command("delete").alias("d").description("Delete a resource in the SettleMint platform").addCommand(
|
258754
|
+
return new Command("delete").alias("d").description("Delete a resource in the SettleMint platform").addCommand(applicationDeleteCommand()).addCommand(workspaceDeleteCommand());
|
258691
258755
|
}
|
258692
258756
|
|
258693
258757
|
// src/commands/platform/common/restart-command.ts
|
@@ -258763,6 +258827,19 @@ function blockchainNetworkRestartCommand() {
|
|
258763
258827
|
});
|
258764
258828
|
}
|
258765
258829
|
|
258830
|
+
// src/commands/platform/blockchain-node/restart.ts
|
258831
|
+
function blockchainNodeRestartCommand() {
|
258832
|
+
return getRestartCommand({
|
258833
|
+
name: "blockchain-node",
|
258834
|
+
type: "blockchain node",
|
258835
|
+
alias: "bn",
|
258836
|
+
envKey: "SETTLEMINT_BLOCKCHAIN_NODE",
|
258837
|
+
restartFunction: async (settlemint, id) => {
|
258838
|
+
return settlemint.blockchainNode.restart(id);
|
258839
|
+
}
|
258840
|
+
});
|
258841
|
+
}
|
258842
|
+
|
258766
258843
|
// src/commands/platform/custom-deployments/restart.ts
|
258767
258844
|
function customDeploymentRestartCommand() {
|
258768
258845
|
return getRestartCommand({
|
@@ -258894,13 +258971,22 @@ function storageRestartCommand() {
|
|
258894
258971
|
|
258895
258972
|
// src/commands/platform/restart.ts
|
258896
258973
|
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(
|
258974
|
+
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
258975
|
return cmd2;
|
258899
258976
|
}
|
258900
258977
|
|
258901
258978
|
// src/commands/platform/custom-deployments/update.ts
|
258902
258979
|
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").
|
258980
|
+
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([
|
258981
|
+
{
|
258982
|
+
description: "Update a custom deployment",
|
258983
|
+
command: "settlemint custom-deployment update v1.0.0"
|
258984
|
+
},
|
258985
|
+
{
|
258986
|
+
description: "Update a custom deployment with a specific unique name",
|
258987
|
+
command: "settlemint custom-deployment update v1.0.0 --unique-name my-custom-deployment"
|
258988
|
+
}
|
258989
|
+
])).action(async (tag, { uniqueName, prod, wait }) => {
|
258904
258990
|
intro("Updating custom deployment in the SettleMint platform");
|
258905
258991
|
const env2 = await loadEnv(false, !!prod);
|
258906
258992
|
const customDeploymentUniqueName = uniqueName ?? env2.SETTLEMINT_CUSTOM_DEPLOYMENT;
|
@@ -258999,7 +259085,12 @@ function yamlOutput(data) {
|
|
258999
259085
|
|
259000
259086
|
// src/commands/platform/config.ts
|
259001
259087
|
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"])).
|
259088
|
+
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([
|
259089
|
+
{
|
259090
|
+
description: "Get platform configuration",
|
259091
|
+
command: "settlemint config"
|
259092
|
+
}
|
259093
|
+
])).action(async ({ prod, instance, output }) => {
|
259003
259094
|
intro("Getting platform configuration");
|
259004
259095
|
const env2 = await loadEnv(false, !!prod);
|
259005
259096
|
const selectedInstance = instance ? sanitizeAndValidateInstanceUrl(instance) : await instancePrompt(env2, true);
|
@@ -259424,12 +259515,12 @@ function workspacesListCommand() {
|
|
259424
259515
|
|
259425
259516
|
// src/commands/platform/list.ts
|
259426
259517
|
function listCommand() {
|
259427
|
-
return new Command("list").alias("ls").description("List resources in the SettleMint platform").addCommand(
|
259518
|
+
return new Command("list").alias("ls").description("List resources in the SettleMint platform").addCommand(applicationsListCommand()).addCommand(servicesCommand()).addCommand(workspacesListCommand());
|
259428
259519
|
}
|
259429
259520
|
|
259430
259521
|
// src/commands/platform.ts
|
259431
259522
|
function platformCommand() {
|
259432
|
-
return new Command("platform").description("Manage SettleMint platform resources").addCommand(configCommand()).addCommand(createCommand3()).addCommand(
|
259523
|
+
return new Command("platform").description("Manage SettleMint platform resources").addCommand(configCommand()).addCommand(createCommand3()).addCommand(deleteCommand()).addCommand(listCommand()).addCommand(restartCommand()).addCommand(updateCommand());
|
259433
259524
|
}
|
259434
259525
|
|
259435
259526
|
// src/commands/smart-contract-set/create.ts
|
@@ -259487,7 +259578,12 @@ async function executeFoundryCommand(command, args) {
|
|
259487
259578
|
|
259488
259579
|
// src/commands/smart-contract-set/create.ts
|
259489
259580
|
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").
|
259581
|
+
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([
|
259582
|
+
{
|
259583
|
+
description: "Create a new solidity-token-erc20 smart contract set",
|
259584
|
+
command: "settlemint smart-contract-set create --project-name erc20-contracts --use-case solidity-token-erc20"
|
259585
|
+
}
|
259586
|
+
])).action(async ({ projectName, useCase, instance }) => {
|
259491
259587
|
intro("Creating a new smart contract set");
|
259492
259588
|
const env2 = await loadEnv(false, false);
|
259493
259589
|
const name3 = await projectNamePrompt(env2, projectName);
|
@@ -259982,7 +260078,12 @@ function hardhatNetworkCommand() {
|
|
259982
260078
|
|
259983
260079
|
// src/commands/smart-contract-set/hardhat/script/local.ts
|
259984
260080
|
function hardhatScriptLocalCommand() {
|
259985
|
-
return new Command("local").description("Run a Hardhat script to deploy a contract on
|
260081
|
+
return new Command("local").description("Run a Hardhat script to deploy a contract 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([
|
260082
|
+
{
|
260083
|
+
description: "Run a Hardhat script on a local network",
|
260084
|
+
command: "settlemint hardhat script local --script scripts/deploy.ts"
|
260085
|
+
}
|
260086
|
+
])).action(async ({ script, compile }) => {
|
259986
260087
|
intro("Running Hardhat script on local network");
|
259987
260088
|
await validateIfRequiredPackagesAreInstalled(["hardhat"]);
|
259988
260089
|
const { command, args } = await getPackageManagerExecutable();
|
@@ -260001,7 +260102,20 @@ function hardhatScriptLocalCommand() {
|
|
260001
260102
|
|
260002
260103
|
// src/commands/smart-contract-set/hardhat/script/remote.ts
|
260003
260104
|
function hardhatScriptRemoteCommand() {
|
260004
|
-
const cmd2 = new Command("remote").description("Run a Hardhat script
|
260105
|
+
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([
|
260106
|
+
{
|
260107
|
+
description: "Run a Hardhat script on a remote network",
|
260108
|
+
command: "settlemint hardhat script remote --script scripts/deploy.ts"
|
260109
|
+
},
|
260110
|
+
{
|
260111
|
+
description: "Run a Hardhat script on a remote network with a specific blockchain node",
|
260112
|
+
command: "settlemint hardhat script remote --script scripts/deploy.ts --blockchain-node my-blockchain-node"
|
260113
|
+
},
|
260114
|
+
{
|
260115
|
+
description: "Run a Hardhat script on a remote network without compiling",
|
260116
|
+
command: "settlemint hardhat script remote --script scripts/deploy.ts --no-compile"
|
260117
|
+
}
|
260118
|
+
]));
|
260005
260119
|
cmd2.action(async ({ script, prod, blockchainNode: blockchainNodeUniqueName, acceptDefaults, compile }) => {
|
260006
260120
|
intro("Running Hardhat script on remote network");
|
260007
260121
|
await validateIfRequiredPackagesAreInstalled(["hardhat"]);
|
@@ -260216,7 +260330,12 @@ async function getNodeName({
|
|
260216
260330
|
|
260217
260331
|
// src/commands/smart-contract-set/subgraph/build.ts
|
260218
260332
|
function subgraphBuildCommand() {
|
260219
|
-
return new Command("build").description("Build the subgraph").
|
260333
|
+
return new Command("build").description("Build the subgraph").usage(createExamples([
|
260334
|
+
{
|
260335
|
+
description: "Build the subgraph",
|
260336
|
+
command: "settlemint subgraph build"
|
260337
|
+
}
|
260338
|
+
])).action(async () => {
|
260220
260339
|
intro("Building subgraph");
|
260221
260340
|
await validateIfRequiredPackagesAreInstalled(["@graphprotocol/graph-cli"]);
|
260222
260341
|
await subgraphSetup({
|
@@ -260234,7 +260353,12 @@ function subgraphBuildCommand() {
|
|
260234
260353
|
// src/commands/smart-contract-set/subgraph/codegen.ts
|
260235
260354
|
import { dirname as dirname11 } from "node:path";
|
260236
260355
|
function subgraphCodegenCommand() {
|
260237
|
-
return new Command("codegen").description("Codegen the subgraph types").
|
260356
|
+
return new Command("codegen").description("Codegen the subgraph types").usage(createExamples([
|
260357
|
+
{
|
260358
|
+
description: "Generate subgraph types",
|
260359
|
+
command: "settlemint subgraph codegen"
|
260360
|
+
}
|
260361
|
+
])).action(async () => {
|
260238
260362
|
intro("Generating subgraph types");
|
260239
260363
|
await validateIfRequiredPackagesAreInstalled(["@graphprotocol/graph-cli"]);
|
260240
260364
|
await subgraphSetup({
|
@@ -260532,15 +260656,15 @@ ${error5.stack}`));
|
|
260532
260656
|
function registerCommands() {
|
260533
260657
|
const sdkcli = new Command;
|
260534
260658
|
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
260659
|
sdkcli.addCommand(codegenCommand());
|
260537
|
-
sdkcli.addCommand(
|
260538
|
-
sdkcli.addCommand(smartContractSetCommand());
|
260660
|
+
sdkcli.addCommand(connectCommand());
|
260539
260661
|
sdkcli.addCommand(createCommand2());
|
260662
|
+
sdkcli.addCommand(hasuraCommand());
|
260540
260663
|
sdkcli.addCommand(loginCommand());
|
260541
260664
|
sdkcli.addCommand(logoutCommand());
|
260542
260665
|
sdkcli.addCommand(pincodeVerificationResponseCommand());
|
260543
|
-
sdkcli.addCommand(
|
260666
|
+
sdkcli.addCommand(platformCommand());
|
260667
|
+
sdkcli.addCommand(smartContractSetCommand());
|
260544
260668
|
return sdkcli;
|
260545
260669
|
}
|
260546
260670
|
async function sdkCliCommand(argv = process.argv) {
|
@@ -260560,4 +260684,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
260560
260684
|
// src/cli.ts
|
260561
260685
|
sdkCliCommand();
|
260562
260686
|
|
260563
|
-
//# debugId=
|
260687
|
+
//# debugId=B961FAFC5AC23AEC64756E2164756E21
|