@settlemint/sdk-cli 2.2.0-prc00b96af → 2.2.0-prd03e197f
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 +173 -27
- package/dist/cli.js.map +27 -26
- 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-prd03e197f",
|
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-prd03e197f",
|
245398
|
+
"@settlemint/sdk-utils": "2.2.0-prd03e197f",
|
245399
245399
|
"@types/node": "22.15.3",
|
245400
245400
|
"@types/semver": "7.7.0",
|
245401
245401
|
"@types/which": "3.0.4",
|
@@ -246587,20 +246587,21 @@ var CommandError = class extends Error {
|
|
246587
246587
|
}
|
246588
246588
|
};
|
246589
246589
|
async function executeCommand(command, args, options) {
|
246590
|
-
const
|
246590
|
+
const { silent, ...spawnOptions } = options ?? {};
|
246591
|
+
const child = spawn(command, args, { ...spawnOptions, env: { ...process.env, ...options?.env } });
|
246591
246592
|
process.stdin.pipe(child.stdin);
|
246592
246593
|
const output = [];
|
246593
246594
|
return new Promise((resolve, reject) => {
|
246594
246595
|
child.stdout.on("data", (data) => {
|
246595
246596
|
const maskedData = maskTokens2(data.toString());
|
246596
|
-
if (!
|
246597
|
+
if (!silent) {
|
246597
246598
|
process.stdout.write(maskedData);
|
246598
246599
|
}
|
246599
246600
|
output.push(maskedData);
|
246600
246601
|
});
|
246601
246602
|
child.stderr.on("data", (data) => {
|
246602
246603
|
const maskedData = maskTokens2(data.toString());
|
246603
|
-
if (!
|
246604
|
+
if (!silent) {
|
246604
246605
|
process.stderr.write(maskedData);
|
246605
246606
|
}
|
246606
246607
|
output.push(maskedData);
|
@@ -248851,6 +248852,14 @@ var PrivateKeyFragment = graphql(`
|
|
248851
248852
|
healthStatus
|
248852
248853
|
provider
|
248853
248854
|
region
|
248855
|
+
address
|
248856
|
+
blockchainNodes {
|
248857
|
+
... on BlockchainNode {
|
248858
|
+
id
|
248859
|
+
name
|
248860
|
+
uniqueName
|
248861
|
+
}
|
248862
|
+
}
|
248854
248863
|
}
|
248855
248864
|
`);
|
248856
248865
|
var getPrivateKeys = graphql(`
|
@@ -251522,6 +251531,7 @@ var Xe2 = o7(({ config: e10, path: t8 }, s7 = ze2()) => {
|
|
251522
251531
|
async function codegenTsconfig(env2, thegraphSubgraphNames) {
|
251523
251532
|
const tsconfig = he4();
|
251524
251533
|
if (!tsconfig?.config) {
|
251534
|
+
note("No tsconfig found, skipping codegen for hasura, portal, thegraph and blockscout", "warn");
|
251525
251535
|
return {
|
251526
251536
|
hasura: false,
|
251527
251537
|
portal: false,
|
@@ -253202,7 +253212,20 @@ async function blockchainNodeOrLoadBalancerPrompt({
|
|
253202
253212
|
|
253203
253213
|
// src/commands/connect.ts
|
253204
253214
|
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").
|
253215
|
+
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([
|
253216
|
+
{
|
253217
|
+
description: "Connect to your environment",
|
253218
|
+
command: "settlemint connect"
|
253219
|
+
},
|
253220
|
+
{
|
253221
|
+
description: "Connect to your environment using defaults from the .env file",
|
253222
|
+
command: "settlemint connect --accept-defaults"
|
253223
|
+
},
|
253224
|
+
{
|
253225
|
+
description: "Connect to your production environment",
|
253226
|
+
command: "settlemint connect --prod"
|
253227
|
+
}
|
253228
|
+
])).action(async ({ acceptDefaults, prod, instance }) => {
|
253206
253229
|
intro("Connecting your dApp to SettleMint");
|
253207
253230
|
const env2 = await loadEnv(false, !!prod);
|
253208
253231
|
const selectedInstance = instance ? sanitizeAndValidateInstanceUrl(instance) : await instancePrompt(env2, true);
|
@@ -256651,7 +256674,20 @@ async function downloadAndExtractNpmPackage({
|
|
256651
256674
|
|
256652
256675
|
// src/commands/create.ts
|
256653
256676
|
function createCommand2() {
|
256654
|
-
return new Command("create").description("
|
256677
|
+
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([
|
256678
|
+
{
|
256679
|
+
description: "Create a new application from a template",
|
256680
|
+
command: "settlemint create"
|
256681
|
+
},
|
256682
|
+
{
|
256683
|
+
description: "Create a new asset tokenization application",
|
256684
|
+
command: "settlemint create --template asset-tokenization"
|
256685
|
+
},
|
256686
|
+
{
|
256687
|
+
description: "Create a new asset tokenization application from a specific version",
|
256688
|
+
command: "settlemint create --template asset-tokenization --version 1.0.0"
|
256689
|
+
}
|
256690
|
+
])).action(async ({ projectName, template, version, instance }) => {
|
256655
256691
|
intro("Creating a new SettleMint project");
|
256656
256692
|
const env2 = await loadEnv(false, false);
|
256657
256693
|
if (version && !template) {
|
@@ -256965,7 +257001,16 @@ function loginCommand() {
|
|
256965
257001
|
|
256966
257002
|
// src/commands/logout.ts
|
256967
257003
|
function logoutCommand() {
|
256968
|
-
return new Command("logout").description("Logout from your SettleMint account").option("--all", "Logout from all instances").
|
257004
|
+
return new Command("logout").description("Logout from your SettleMint account").option("--all", "Logout from all instances").usage(createExamples([
|
257005
|
+
{
|
257006
|
+
description: "Logout from your SettleMint account",
|
257007
|
+
command: "settlemint logout"
|
257008
|
+
},
|
257009
|
+
{
|
257010
|
+
description: "Logout from all instances",
|
257011
|
+
command: "settlemint logout --all"
|
257012
|
+
}
|
257013
|
+
])).action(async (options) => {
|
256969
257014
|
intro("Logging out from SettleMint");
|
256970
257015
|
const instances = await getInstances();
|
256971
257016
|
if (instances.length === 0) {
|
@@ -257021,7 +257066,16 @@ async function pincodeVerificationPrompt(verificationChallenges) {
|
|
257021
257066
|
|
257022
257067
|
// src/commands/pincode-verification-response.ts
|
257023
257068
|
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").
|
257069
|
+
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([
|
257070
|
+
{
|
257071
|
+
description: "Get pincode verification response for a wallet address",
|
257072
|
+
command: "settlemint pincode-verification-response --wallet-address 0x1234567890123456789012345678901234567890"
|
257073
|
+
},
|
257074
|
+
{
|
257075
|
+
description: "Get pincode verification response for a wallet address and connect to a specific blockchain node",
|
257076
|
+
command: "settlemint pincode-verification-response --wallet-address 0x1234567890123456789012345678901234567890 --blockchain-node my-blockchain-node"
|
257077
|
+
}
|
257078
|
+
])).action(async ({ instance, blockchainNode, walletAddress }) => {
|
257025
257079
|
intro("Generating pincode verification response for wallet address");
|
257026
257080
|
const env2 = await loadEnv(false, false);
|
257027
257081
|
const applicationUniqueName = env2.SETTLEMINT_APPLICATION;
|
@@ -257890,6 +257944,14 @@ function blockscoutInsightsCreateCommand() {
|
|
257890
257944
|
{
|
257891
257945
|
description: "Create a Blockscout insights service in a different application",
|
257892
257946
|
command: "platform create insights blockscout my-blockscout --application app-123"
|
257947
|
+
},
|
257948
|
+
{
|
257949
|
+
description: "Create a Blockscout insights service and connect to a specific load balancer",
|
257950
|
+
command: "platform create insights blockscout my-blockscout --load-balancer my-load-balancer"
|
257951
|
+
},
|
257952
|
+
{
|
257953
|
+
description: "Create a Blockscout insights service and connect to a specific blockchain node",
|
257954
|
+
command: "platform create insights blockscout my-blockscout --blockchain-node my-blockchain-node"
|
257893
257955
|
}
|
257894
257956
|
]
|
257895
257957
|
});
|
@@ -258146,6 +258208,14 @@ function graphMiddlewareCreateCommand() {
|
|
258146
258208
|
{
|
258147
258209
|
description: "Create a graph middleware in a different application",
|
258148
258210
|
command: "platform create middleware graph my-graph --application my-app --blockchain-node node-123"
|
258211
|
+
},
|
258212
|
+
{
|
258213
|
+
description: "Create a graph middleware and connect to a specific load balancer",
|
258214
|
+
command: "platform create middleware graph my-graph --load-balancer my-load-balancer"
|
258215
|
+
},
|
258216
|
+
{
|
258217
|
+
description: "Create a graph middleware and connect to a specific blockchain node",
|
258218
|
+
command: "platform create middleware graph my-graph --blockchain-node my-blockchain-node"
|
258149
258219
|
}
|
258150
258220
|
]
|
258151
258221
|
});
|
@@ -258253,6 +258323,14 @@ function smartContractPortalMiddlewareCreateCommand() {
|
|
258253
258323
|
{
|
258254
258324
|
description: "Create a smart contract portal middleware in a different application",
|
258255
258325
|
command: "platform create middleware smart-contract-portal my-portal --application my-app --blockchain-node node-123"
|
258326
|
+
},
|
258327
|
+
{
|
258328
|
+
description: "Create a smart contract portal middleware and connect to a specific blockchain node",
|
258329
|
+
command: "platform create middleware smart-contract-portal my-portal --blockchain-node my-blockchain-node"
|
258330
|
+
},
|
258331
|
+
{
|
258332
|
+
description: "Create a smart contract portal middleware and connect to a specific load balancer",
|
258333
|
+
command: "platform create middleware smart-contract-portal my-portal --load-balancer my-load-balancer"
|
258256
258334
|
}
|
258257
258335
|
]
|
258258
258336
|
});
|
@@ -258567,7 +258645,7 @@ function storageCreateCommand() {
|
|
258567
258645
|
|
258568
258646
|
// src/commands/platform/create.ts
|
258569
258647
|
function createCommand3() {
|
258570
|
-
return new Command("create").alias("c").description("Create a resource in the SettleMint platform").addCommand(
|
258648
|
+
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
258649
|
}
|
258572
258650
|
|
258573
258651
|
// src/prompts/delete-confirmation.prompt.ts
|
@@ -258687,7 +258765,7 @@ function applicationDeleteCommand() {
|
|
258687
258765
|
|
258688
258766
|
// src/commands/platform/delete.ts
|
258689
258767
|
function deleteCommand() {
|
258690
|
-
return new Command("delete").alias("d").description("Delete a resource in the SettleMint platform").addCommand(
|
258768
|
+
return new Command("delete").alias("d").description("Delete a resource in the SettleMint platform").addCommand(applicationDeleteCommand()).addCommand(workspaceDeleteCommand());
|
258691
258769
|
}
|
258692
258770
|
|
258693
258771
|
// src/commands/platform/common/restart-command.ts
|
@@ -258763,6 +258841,19 @@ function blockchainNetworkRestartCommand() {
|
|
258763
258841
|
});
|
258764
258842
|
}
|
258765
258843
|
|
258844
|
+
// src/commands/platform/blockchain-node/restart.ts
|
258845
|
+
function blockchainNodeRestartCommand() {
|
258846
|
+
return getRestartCommand({
|
258847
|
+
name: "blockchain-node",
|
258848
|
+
type: "blockchain node",
|
258849
|
+
alias: "bn",
|
258850
|
+
envKey: "SETTLEMINT_BLOCKCHAIN_NODE",
|
258851
|
+
restartFunction: async (settlemint, id) => {
|
258852
|
+
return settlemint.blockchainNode.restart(id);
|
258853
|
+
}
|
258854
|
+
});
|
258855
|
+
}
|
258856
|
+
|
258766
258857
|
// src/commands/platform/custom-deployments/restart.ts
|
258767
258858
|
function customDeploymentRestartCommand() {
|
258768
258859
|
return getRestartCommand({
|
@@ -258894,13 +258985,22 @@ function storageRestartCommand() {
|
|
258894
258985
|
|
258895
258986
|
// src/commands/platform/restart.ts
|
258896
258987
|
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(
|
258988
|
+
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
258989
|
return cmd2;
|
258899
258990
|
}
|
258900
258991
|
|
258901
258992
|
// src/commands/platform/custom-deployments/update.ts
|
258902
258993
|
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").
|
258994
|
+
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([
|
258995
|
+
{
|
258996
|
+
description: "Update a custom deployment",
|
258997
|
+
command: "settlemint custom-deployment update v1.0.0"
|
258998
|
+
},
|
258999
|
+
{
|
259000
|
+
description: "Update a custom deployment with a specific unique name",
|
259001
|
+
command: "settlemint custom-deployment update v1.0.0 --unique-name my-custom-deployment"
|
259002
|
+
}
|
259003
|
+
])).action(async (tag, { uniqueName, prod, wait }) => {
|
258904
259004
|
intro("Updating custom deployment in the SettleMint platform");
|
258905
259005
|
const env2 = await loadEnv(false, !!prod);
|
258906
259006
|
const customDeploymentUniqueName = uniqueName ?? env2.SETTLEMINT_CUSTOM_DEPLOYMENT;
|
@@ -258999,7 +259099,20 @@ function yamlOutput(data) {
|
|
258999
259099
|
|
259000
259100
|
// src/commands/platform/config.ts
|
259001
259101
|
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"])).
|
259102
|
+
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([
|
259103
|
+
{
|
259104
|
+
description: "Get platform configuration",
|
259105
|
+
command: "settlemint config"
|
259106
|
+
},
|
259107
|
+
{
|
259108
|
+
description: "Get platform configuration in JSON format",
|
259109
|
+
command: "settlemint config -o json"
|
259110
|
+
},
|
259111
|
+
{
|
259112
|
+
description: "Get platform configuration in YAML format",
|
259113
|
+
command: "settlemint config -o yaml"
|
259114
|
+
}
|
259115
|
+
])).action(async ({ prod, instance, output }) => {
|
259003
259116
|
intro("Getting platform configuration");
|
259004
259117
|
const env2 = await loadEnv(false, !!prod);
|
259005
259118
|
const selectedInstance = instance ? sanitizeAndValidateInstanceUrl(instance) : await instancePrompt(env2, true);
|
@@ -259424,12 +259537,12 @@ function workspacesListCommand() {
|
|
259424
259537
|
|
259425
259538
|
// src/commands/platform/list.ts
|
259426
259539
|
function listCommand() {
|
259427
|
-
return new Command("list").alias("ls").description("List resources in the SettleMint platform").addCommand(
|
259540
|
+
return new Command("list").alias("ls").description("List resources in the SettleMint platform").addCommand(applicationsListCommand()).addCommand(servicesCommand()).addCommand(workspacesListCommand());
|
259428
259541
|
}
|
259429
259542
|
|
259430
259543
|
// src/commands/platform.ts
|
259431
259544
|
function platformCommand() {
|
259432
|
-
return new Command("platform").description("Manage SettleMint platform resources").addCommand(configCommand()).addCommand(createCommand3()).addCommand(
|
259545
|
+
return new Command("platform").description("Manage SettleMint platform resources").addCommand(configCommand()).addCommand(createCommand3()).addCommand(deleteCommand()).addCommand(listCommand()).addCommand(restartCommand()).addCommand(updateCommand());
|
259433
259546
|
}
|
259434
259547
|
|
259435
259548
|
// src/commands/smart-contract-set/create.ts
|
@@ -259487,7 +259600,12 @@ async function executeFoundryCommand(command, args) {
|
|
259487
259600
|
|
259488
259601
|
// src/commands/smart-contract-set/create.ts
|
259489
259602
|
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").
|
259603
|
+
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([
|
259604
|
+
{
|
259605
|
+
description: "Create a new solidity-token-erc20 smart contract set",
|
259606
|
+
command: "settlemint smart-contract-set create --project-name erc20-contracts --use-case solidity-token-erc20"
|
259607
|
+
}
|
259608
|
+
])).action(async ({ projectName, useCase, instance }) => {
|
259491
259609
|
intro("Creating a new smart contract set");
|
259492
259610
|
const env2 = await loadEnv(false, false);
|
259493
259611
|
const name3 = await projectNamePrompt(env2, projectName);
|
@@ -259982,7 +260100,12 @@ function hardhatNetworkCommand() {
|
|
259982
260100
|
|
259983
260101
|
// src/commands/smart-contract-set/hardhat/script/local.ts
|
259984
260102
|
function hardhatScriptLocalCommand() {
|
259985
|
-
return new Command("local").description("Run a Hardhat script
|
260103
|
+
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([
|
260104
|
+
{
|
260105
|
+
description: "Run a Hardhat script on a local network",
|
260106
|
+
command: "settlemint hardhat script local --script scripts/deploy.ts"
|
260107
|
+
}
|
260108
|
+
])).action(async ({ script, compile }) => {
|
259986
260109
|
intro("Running Hardhat script on local network");
|
259987
260110
|
await validateIfRequiredPackagesAreInstalled(["hardhat"]);
|
259988
260111
|
const { command, args } = await getPackageManagerExecutable();
|
@@ -260001,7 +260124,20 @@ function hardhatScriptLocalCommand() {
|
|
260001
260124
|
|
260002
260125
|
// src/commands/smart-contract-set/hardhat/script/remote.ts
|
260003
260126
|
function hardhatScriptRemoteCommand() {
|
260004
|
-
const cmd2 = new Command("remote").description("Run a Hardhat script
|
260127
|
+
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([
|
260128
|
+
{
|
260129
|
+
description: "Run a Hardhat script on a remote network",
|
260130
|
+
command: "settlemint hardhat script remote --script scripts/deploy.ts"
|
260131
|
+
},
|
260132
|
+
{
|
260133
|
+
description: "Run a Hardhat script on a remote network with a specific blockchain node",
|
260134
|
+
command: "settlemint hardhat script remote --script scripts/deploy.ts --blockchain-node my-blockchain-node"
|
260135
|
+
},
|
260136
|
+
{
|
260137
|
+
description: "Run a Hardhat script on a remote network without compiling",
|
260138
|
+
command: "settlemint hardhat script remote --script scripts/deploy.ts --no-compile"
|
260139
|
+
}
|
260140
|
+
]));
|
260005
260141
|
cmd2.action(async ({ script, prod, blockchainNode: blockchainNodeUniqueName, acceptDefaults, compile }) => {
|
260006
260142
|
intro("Running Hardhat script on remote network");
|
260007
260143
|
await validateIfRequiredPackagesAreInstalled(["hardhat"]);
|
@@ -260216,7 +260352,12 @@ async function getNodeName({
|
|
260216
260352
|
|
260217
260353
|
// src/commands/smart-contract-set/subgraph/build.ts
|
260218
260354
|
function subgraphBuildCommand() {
|
260219
|
-
return new Command("build").description("Build the subgraph").
|
260355
|
+
return new Command("build").description("Build the subgraph").usage(createExamples([
|
260356
|
+
{
|
260357
|
+
description: "Build the subgraph",
|
260358
|
+
command: "settlemint subgraph build"
|
260359
|
+
}
|
260360
|
+
])).action(async () => {
|
260220
260361
|
intro("Building subgraph");
|
260221
260362
|
await validateIfRequiredPackagesAreInstalled(["@graphprotocol/graph-cli"]);
|
260222
260363
|
await subgraphSetup({
|
@@ -260234,7 +260375,12 @@ function subgraphBuildCommand() {
|
|
260234
260375
|
// src/commands/smart-contract-set/subgraph/codegen.ts
|
260235
260376
|
import { dirname as dirname11 } from "node:path";
|
260236
260377
|
function subgraphCodegenCommand() {
|
260237
|
-
return new Command("codegen").description("Codegen the subgraph types").
|
260378
|
+
return new Command("codegen").description("Codegen the subgraph types").usage(createExamples([
|
260379
|
+
{
|
260380
|
+
description: "Generate subgraph types",
|
260381
|
+
command: "settlemint subgraph codegen"
|
260382
|
+
}
|
260383
|
+
])).action(async () => {
|
260238
260384
|
intro("Generating subgraph types");
|
260239
260385
|
await validateIfRequiredPackagesAreInstalled(["@graphprotocol/graph-cli"]);
|
260240
260386
|
await subgraphSetup({
|
@@ -260532,15 +260678,15 @@ ${error5.stack}`));
|
|
260532
260678
|
function registerCommands() {
|
260533
260679
|
const sdkcli = new Command;
|
260534
260680
|
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
260681
|
sdkcli.addCommand(codegenCommand());
|
260537
|
-
sdkcli.addCommand(
|
260538
|
-
sdkcli.addCommand(smartContractSetCommand());
|
260682
|
+
sdkcli.addCommand(connectCommand());
|
260539
260683
|
sdkcli.addCommand(createCommand2());
|
260684
|
+
sdkcli.addCommand(hasuraCommand());
|
260540
260685
|
sdkcli.addCommand(loginCommand());
|
260541
260686
|
sdkcli.addCommand(logoutCommand());
|
260542
260687
|
sdkcli.addCommand(pincodeVerificationResponseCommand());
|
260543
|
-
sdkcli.addCommand(
|
260688
|
+
sdkcli.addCommand(platformCommand());
|
260689
|
+
sdkcli.addCommand(smartContractSetCommand());
|
260544
260690
|
return sdkcli;
|
260545
260691
|
}
|
260546
260692
|
async function sdkCliCommand(argv = process.argv) {
|
@@ -260560,4 +260706,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
260560
260706
|
// src/cli.ts
|
260561
260707
|
sdkCliCommand();
|
260562
260708
|
|
260563
|
-
//# debugId=
|
260709
|
+
//# debugId=7BA8B358F01474DA64756E2164756E21
|