@settlemint/sdk-cli 1.1.5-pr29ceadbe → 1.1.5-pr2e0c7976

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 CHANGED
@@ -274462,7 +274462,7 @@ function pruneCurrentEnv(currentEnv, env2) {
274462
274462
  var package_default = {
274463
274463
  name: "@settlemint/sdk-cli",
274464
274464
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
274465
- version: "1.1.5-pr29ceadbe",
274465
+ version: "1.1.5-pr2e0c7976",
274466
274466
  type: "module",
274467
274467
  private: false,
274468
274468
  license: "FSL-1.1-MIT",
@@ -274510,8 +274510,8 @@ var package_default = {
274510
274510
  "@inquirer/input": "4.1.5",
274511
274511
  "@inquirer/password": "4.0.8",
274512
274512
  "@inquirer/select": "4.0.8",
274513
- "@settlemint/sdk-js": "1.1.5-pr29ceadbe",
274514
- "@settlemint/sdk-utils": "1.1.5-pr29ceadbe",
274513
+ "@settlemint/sdk-js": "1.1.5-pr2e0c7976",
274514
+ "@settlemint/sdk-utils": "1.1.5-pr2e0c7976",
274515
274515
  "@types/node": "22.13.1",
274516
274516
  "@types/semver": "7.5.8",
274517
274517
  "@types/which": "3.0.4",
@@ -284676,10 +284676,8 @@ function foundryBuildCommand() {
284676
284676
  command: "scs foundry build --optimize --force"
284677
284677
  }
284678
284678
  ])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
284679
- intro("Building smart contracts using Foundry");
284680
284679
  const forgeOptions = mapPassthroughOptions(passThroughOptions, cmd2);
284681
284680
  await executeFoundryCommand("forge", ["build", ...forgeOptions]);
284682
- outro("Smart contracts built successfully");
284683
284681
  });
284684
284682
  }
284685
284683
 
@@ -284699,10 +284697,9 @@ function foundryFormatCommand() {
284699
284697
  command: "scs foundry format --check"
284700
284698
  }
284701
284699
  ])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
284702
- intro("Formatting smart contracts using Foundry");
284703
284700
  const forgeOptions = mapPassthroughOptions(passThroughOptions, cmd2);
284704
284701
  await executeFoundryCommand("forge", ["fmt", ...forgeOptions]);
284705
- outro("Smart contracts formatted successfully");
284702
+ note("Smart contract set formatted successfully!");
284706
284703
  });
284707
284704
  }
284708
284705
 
@@ -284743,10 +284740,8 @@ function foundryTestCommand() {
284743
284740
  command: "scs foundry test --match-test testToken"
284744
284741
  }
284745
284742
  ])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
284746
- intro("Running smart contract tests using Foundry");
284747
284743
  const forgeOptions = mapPassthroughOptions(passThroughOptions, cmd2);
284748
284744
  await executeFoundryCommand("forge", ["test", ...forgeOptions]);
284749
- outro("Smart contract tests completed");
284750
284745
  });
284751
284746
  }
284752
284747
 
@@ -284782,12 +284777,10 @@ function hardhatBuildCommand() {
284782
284777
  command: "scs hardhat build --concurrency 2"
284783
284778
  }
284784
284779
  ])).helpOption(false).option("-h, --help", "Get list of possible hardhat compile options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
284785
- intro("Building smart contracts using Hardhat");
284786
284780
  await validateIfRequiredPackagesAreInstalled(["hardhat"]);
284787
284781
  const hardhatOptions = mapPassthroughOptions(passThroughOptions, cmd2);
284788
284782
  const { command, args } = await getPackageManagerExecutable();
284789
284783
  await executeCommand(command, [...args, "hardhat", "compile", ...hardhatOptions]);
284790
- outro("Smart contracts built successfully");
284791
284784
  });
284792
284785
  }
284793
284786
 
@@ -284811,7 +284804,6 @@ function hardhatDeployLocalCommand() {
284811
284804
  command: "scs hardhat deploy local --verify"
284812
284805
  }
284813
284806
  ])).option("-m, --module <ignitionmodule>", 'The module to deploy with Ignition, defaults to "ignition/modules/main.ts"').option("-r, --reset", "Wipes the existing deployment state before deploying").option("-v, --verify", "Verify the deployment on Etherscan").action(async ({ module, reset: reset2, verify }) => {
284814
- intro("Deploying smart contracts to local network using Hardhat/Ignition");
284815
284807
  await validateIfRequiredPackagesAreInstalled(["hardhat"]);
284816
284808
  const { command, args } = await getPackageManagerExecutable();
284817
284809
  await executeCommand(command, [
@@ -284825,7 +284817,6 @@ function hardhatDeployLocalCommand() {
284825
284817
  "localhost",
284826
284818
  module ?? "ignition/modules/main.ts"
284827
284819
  ].filter(Boolean));
284828
- outro("Smart contracts deployed successfully to local network");
284829
284820
  });
284830
284821
  }
284831
284822
 
@@ -284990,7 +284981,6 @@ function hardhatDeployRemoteCommand() {
284990
284981
  acceptDefaults,
284991
284982
  blockchainNode: blockchainNodeUniqueName
284992
284983
  }) => {
284993
- intro("Deploying smart contracts to remote network using Hardhat/Ignition");
284994
284984
  await validateIfRequiredPackagesAreInstalled(["hardhat"]);
284995
284985
  const autoAccept = !!acceptDefaults || is_in_ci_default;
284996
284986
  const env2 = await loadEnv(false, !!prod);
@@ -285034,7 +285024,6 @@ function hardhatDeployRemoteCommand() {
285034
285024
  address,
285035
285025
  module ?? "ignition/modules/main.ts"
285036
285026
  ].filter(Boolean), { env: envConfig });
285037
- outro("Smart contracts deployed successfully to remote network");
285038
285027
  });
285039
285028
  return cmd2;
285040
285029
  }
@@ -285063,19 +285052,16 @@ function hardhatNetworkCommand() {
285063
285052
  command: "scs hardhat network --port 3000"
285064
285053
  }
285065
285054
  ])).helpOption(false).option("-h, --help", "Get list of possible hardhat node options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
285066
- intro("Starting development network using Hardhat");
285067
285055
  await validateIfRequiredPackagesAreInstalled(["hardhat"]);
285068
285056
  const hardhatOptions = mapPassthroughOptions(passThroughOptions, cmd2);
285069
285057
  const { command, args } = await getPackageManagerExecutable();
285070
285058
  await executeCommand(command, [...args, "hardhat", "node", ...hardhatOptions]);
285071
- outro("Development network started successfully");
285072
285059
  });
285073
285060
  }
285074
285061
 
285075
285062
  // src/commands/smart-contract-set/hardhat/script/local.ts
285076
285063
  function hardhatScriptLocalCommand() {
285077
285064
  return new Command("local").description("Run a Hardhat script to deploy a contract on the platform or interact with a deployed contract.").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").action(async ({ script, compile }) => {
285078
- intro("Running Hardhat script on local network");
285079
285065
  await validateIfRequiredPackagesAreInstalled(["hardhat"]);
285080
285066
  const { command, args } = await getPackageManagerExecutable();
285081
285067
  await executeCommand(command, [
@@ -285087,7 +285073,6 @@ function hardhatScriptLocalCommand() {
285087
285073
  "localhost",
285088
285074
  ...compile ? ["--no-compile"] : []
285089
285075
  ]);
285090
- outro("Script execution completed successfully");
285091
285076
  });
285092
285077
  }
285093
285078
 
@@ -285095,7 +285080,6 @@ function hardhatScriptLocalCommand() {
285095
285080
  function hardhatScriptRemoteCommand() {
285096
285081
  const cmd2 = new Command("remote").description("Run a Hardhat script to deploy a contract on the platform or interact with a deployed contract.").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");
285097
285082
  cmd2.action(async ({ script, prod, blockchainNode: blockchainNodeUniqueName, acceptDefaults, compile }) => {
285098
- intro("Running Hardhat script on remote network");
285099
285083
  await validateIfRequiredPackagesAreInstalled(["hardhat"]);
285100
285084
  const autoAccept = !!acceptDefaults || is_in_ci_default;
285101
285085
  const env2 = await loadEnv(false, !!prod);
@@ -285113,7 +285097,6 @@ function hardhatScriptRemoteCommand() {
285113
285097
  const envConfig = await settlemint.foundry.env(node.uniqueName);
285114
285098
  const { command, args } = await getPackageManagerExecutable();
285115
285099
  await executeCommand(command, [...args, "hardhat", "run", script, "--network", "btp", ...compile ? ["--no-compile"] : []], { env: envConfig });
285116
- outro("Script execution completed successfully");
285117
285100
  });
285118
285101
  return cmd2;
285119
285102
  }
@@ -285146,12 +285129,10 @@ function hardhatTestCommand() {
285146
285129
  command: "scs hardhat test test/token.test.ts"
285147
285130
  }
285148
285131
  ])).helpOption(false).option("-h, --help", "Get list of possible hardhat test options").passThroughOptions().allowUnknownOption().action(async (options, cmd2) => {
285149
- intro("Running smart contract tests using Hardhat");
285150
285132
  await validateIfRequiredPackagesAreInstalled(["hardhat"]);
285151
285133
  const hardhatOptions = mapPassthroughOptions(options, cmd2);
285152
285134
  const { command, args } = await getPackageManagerExecutable();
285153
285135
  await executeCommand(command, [...args, "hardhat", "test", ...hardhatOptions]);
285154
- outro("Smart contract tests completed");
285155
285136
  });
285156
285137
  }
285157
285138
 
@@ -285320,7 +285301,6 @@ async function getNodeName({
285320
285301
  // src/commands/smart-contract-set/subgraph/build.ts
285321
285302
  function subgraphBuildCommand() {
285322
285303
  return new Command("build").description("Build the subgraph").action(async () => {
285323
- intro("Building subgraph");
285324
285304
  await validateIfRequiredPackagesAreInstalled(["@graphprotocol/graph-cli"]);
285325
285305
  await subgraphSetup({
285326
285306
  network: SETTLEMINT_NETWORK
@@ -285330,7 +285310,6 @@ function subgraphBuildCommand() {
285330
285310
  const cwd2 = dirname10(subgraphYamlFile);
285331
285311
  await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile], { cwd: cwd2 });
285332
285312
  await executeCommand(command, [...args, "graph", "build", subgraphYamlFile], { cwd: cwd2 });
285333
- outro("Subgraph built successfully");
285334
285313
  });
285335
285314
  }
285336
285315
 
@@ -285338,7 +285317,6 @@ function subgraphBuildCommand() {
285338
285317
  import { dirname as dirname11 } from "node:path";
285339
285318
  function subgraphCodegenCommand() {
285340
285319
  return new Command("codegen").description("Codegen the subgraph types").action(async () => {
285341
- intro("Generating subgraph types");
285342
285320
  await validateIfRequiredPackagesAreInstalled(["@graphprotocol/graph-cli"]);
285343
285321
  await subgraphSetup({
285344
285322
  network: SETTLEMINT_NETWORK
@@ -285348,7 +285326,6 @@ function subgraphCodegenCommand() {
285348
285326
  await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile], {
285349
285327
  cwd: dirname11(subgraphYamlFile)
285350
285328
  });
285351
- outro("Subgraph types generated successfully");
285352
285329
  });
285353
285330
  }
285354
285331
 
@@ -285399,7 +285376,6 @@ function subgraphDeployCommand() {
285399
285376
  command: "scs subgraph deploy my-subgraph"
285400
285377
  }
285401
285378
  ])).option("-a, --accept-defaults", "Accept the default and previously set values").option("--prod", "Connect to your production environment").argument("[subgraph-name]", "The name of the subgraph to deploy (defaults to value in .env if not provided)").action(async (subgraphName, { prod, acceptDefaults }) => {
285402
- intro("Deploying subgraph");
285403
285379
  await validateIfRequiredPackagesAreInstalled(["@graphprotocol/graph-cli"]);
285404
285380
  const autoAccept = !!acceptDefaults || is_in_ci_default;
285405
285381
  const env2 = await loadEnv(false, !!prod);
@@ -285468,7 +285444,6 @@ function subgraphDeployCommand() {
285468
285444
  SETTLEMINT_THEGRAPH: theGraphMiddleware.uniqueName,
285469
285445
  ...graphEndpoints
285470
285446
  });
285471
- outro(`Subgraph ${graphName} deployed successfully`);
285472
285447
  });
285473
285448
  }
285474
285449
  async function updateSpecVersion(specVersion) {
@@ -285605,4 +285580,4 @@ async function sdkCliCommand(argv = process.argv) {
285605
285580
  // src/cli.ts
285606
285581
  sdkCliCommand();
285607
285582
 
285608
- //# debugId=FD37FECAF3A5E55A64756E2164756E21
285583
+ //# debugId=96279989B7E0795064756E2164756E21