@settlemint/sdk-cli 2.4.0-prf263ce2b → 2.4.0-prf9d91e91

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.
Files changed (3) hide show
  1. package/dist/cli.js +73 -71
  2. package/dist/cli.js.map +39 -39
  3. package/package.json +10 -8
package/dist/cli.js CHANGED
@@ -231623,7 +231623,7 @@ function size(value4) {
231623
231623
  var init_size = () => {};
231624
231624
 
231625
231625
  // ../../node_modules/viem/_esm/errors/version.js
231626
- var version5 = "2.31.3";
231626
+ var version5 = "2.31.4";
231627
231627
 
231628
231628
  // ../../node_modules/viem/_esm/errors/base.js
231629
231629
  function walk(err, fn) {
@@ -258129,9 +258129,9 @@ ${formattedErrors}`);
258129
258129
  throw error$37;
258130
258130
  }
258131
258131
  }
258132
- var ApplicationAccessTokenSchema = string$1().regex(/^sm_aat_.*$/);
258133
- var PersonalAccessTokenSchema = string$1().regex(/^sm_pat_.*$/);
258134
- var AccessTokenSchema = string$1().regex(/^sm_pat_.*|sm_aat_.*$/);
258132
+ var ApplicationAccessTokenSchema = string$1().regex(/^sm_aat_.+$/);
258133
+ var PersonalAccessTokenSchema = string$1().regex(/^sm_pat_.+$/);
258134
+ var AccessTokenSchema = string$1().regex(/^(sm_pat_.+|sm_aat_.+)$/);
258135
258135
  function tryParseJson(value, defaultValue = null) {
258136
258136
  try {
258137
258137
  const parsed = JSON.parse(value);
@@ -258139,7 +258139,7 @@ function tryParseJson(value, defaultValue = null) {
258139
258139
  return defaultValue;
258140
258140
  }
258141
258141
  return parsed;
258142
- } catch (err) {
258142
+ } catch (_err) {
258143
258143
  return defaultValue;
258144
258144
  }
258145
258145
  }
@@ -263769,7 +263769,7 @@ async function findMonoRepoPackages(projectDir) {
263769
263769
  }));
263770
263770
  const allPaths = packagePaths.flat();
263771
263771
  return allPaths.length === 0 ? [projectDir] : [monoRepoRoot, ...allPaths];
263772
- } catch (error$37) {
263772
+ } catch (_error) {
263773
263773
  return [projectDir];
263774
263774
  }
263775
263775
  }
@@ -263840,7 +263840,7 @@ function pruneCurrentEnv(currentEnv, env2) {
263840
263840
  var package_default = {
263841
263841
  name: "@settlemint/sdk-cli",
263842
263842
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
263843
- version: "2.4.0-prf263ce2b",
263843
+ version: "2.4.0-prf9d91e91",
263844
263844
  type: "module",
263845
263845
  private: false,
263846
263846
  license: "FSL-1.1-MIT",
@@ -263859,7 +263859,9 @@ var package_default = {
263859
263859
  url: "https://github.com/settlemint/sdk/issues",
263860
263860
  email: "support@settlemint.com"
263861
263861
  },
263862
- files: ["dist"],
263862
+ files: [
263863
+ "dist"
263864
+ ],
263863
263865
  exports: {
263864
263866
  "./*": {
263865
263867
  types: "./dist/*.d.ts",
@@ -263889,10 +263891,10 @@ var package_default = {
263889
263891
  "@inquirer/input": "4.1.12",
263890
263892
  "@inquirer/password": "4.0.15",
263891
263893
  "@inquirer/select": "4.2.3",
263892
- "@settlemint/sdk-js": "2.4.0-prf263ce2b",
263893
- "@settlemint/sdk-utils": "2.4.0-prf263ce2b",
263894
- "@settlemint/sdk-viem": "2.4.0-prf263ce2b",
263895
- "@types/node": "24.0.3",
263894
+ "@settlemint/sdk-js": "2.4.0-prf9d91e91",
263895
+ "@settlemint/sdk-utils": "2.4.0-prf9d91e91",
263896
+ "@settlemint/sdk-viem": "2.4.0-prf9d91e91",
263897
+ "@types/node": "24.0.7",
263896
263898
  "@types/semver": "7.7.0",
263897
263899
  "@types/which": "3.0.4",
263898
263900
  "get-tsconfig": "4.10.1",
@@ -263900,13 +263902,13 @@ var package_default = {
263900
263902
  "is-in-ci": "1.0.0",
263901
263903
  semver: "7.7.2",
263902
263904
  slugify: "1.6.6",
263903
- viem: "2.31.3",
263905
+ viem: "2.31.4",
263904
263906
  which: "5.0.0",
263905
263907
  yaml: "2.8.0",
263906
263908
  yoctocolors: "2.1.1"
263907
263909
  },
263908
263910
  peerDependencies: {
263909
- hardhat: "2.24.3"
263911
+ hardhat: "2.25.0"
263910
263912
  },
263911
263913
  peerDependenciesMeta: {
263912
263914
  hardhat: {
@@ -263961,7 +263963,7 @@ async function telemetry(data) {
263961
263963
  signal: controller.signal
263962
263964
  });
263963
263965
  clearTimeout(timeout);
263964
- } catch (error2) {}
263966
+ } catch (_error) {}
263965
263967
  }
263966
263968
 
263967
263969
  // ../../node_modules/@commander-js/extra-typings/esm.mjs
@@ -276513,9 +276515,9 @@ ${formattedErrors}`);
276513
276515
  throw error$372;
276514
276516
  }
276515
276517
  }
276516
- var ApplicationAccessTokenSchema2 = string$12().regex(/^sm_aat_.*$/);
276517
- var PersonalAccessTokenSchema2 = string$12().regex(/^sm_pat_.*$/);
276518
- var AccessTokenSchema2 = string$12().regex(/^sm_pat_.*|sm_aat_.*$/);
276518
+ var ApplicationAccessTokenSchema2 = string$12().regex(/^sm_aat_.+$/);
276519
+ var PersonalAccessTokenSchema2 = string$12().regex(/^sm_pat_.+$/);
276520
+ var AccessTokenSchema2 = string$12().regex(/^(sm_pat_.+|sm_aat_.+)$/);
276519
276521
  function tryParseJson2(value, defaultValue = null) {
276520
276522
  try {
276521
276523
  const parsed = JSON.parse(value);
@@ -276523,7 +276525,7 @@ function tryParseJson2(value, defaultValue = null) {
276523
276525
  return defaultValue;
276524
276526
  }
276525
276527
  return parsed;
276526
- } catch (err) {
276528
+ } catch (_err) {
276527
276529
  return defaultValue;
276528
276530
  }
276529
276531
  }
@@ -295869,17 +295871,6 @@ async function exists3(path$1) {
295869
295871
  return false;
295870
295872
  }
295871
295873
  }
295872
- function tryParseJson3(value2, defaultValue = null) {
295873
- try {
295874
- const parsed = JSON.parse(value2);
295875
- if (parsed === undefined || parsed === null) {
295876
- return defaultValue;
295877
- }
295878
- return parsed;
295879
- } catch (err) {
295880
- return defaultValue;
295881
- }
295882
- }
295883
295874
  var require_balanced_match4 = __commonJS4({ "../../node_modules/balanced-match/index.js"(exports, module) {
295884
295875
  module.exports = balanced$1;
295885
295876
  function balanced$1(a3, b, str) {
@@ -301358,6 +301349,17 @@ var glob3 = Object.assign(glob_3, {
301358
301349
  unescape: unescape4
301359
301350
  });
301360
301351
  glob3.glob = glob3;
301352
+ function tryParseJson3(value2, defaultValue = null) {
301353
+ try {
301354
+ const parsed = JSON.parse(value2);
301355
+ if (parsed === undefined || parsed === null) {
301356
+ return defaultValue;
301357
+ }
301358
+ return parsed;
301359
+ } catch (_err) {
301360
+ return defaultValue;
301361
+ }
301362
+ }
301361
301363
  async function findMonoRepoRoot2(startDir) {
301362
301364
  const lockFilePath = await findUp([
301363
301365
  "package-lock.json",
@@ -301403,7 +301405,7 @@ function tryParseJson4(value2, defaultValue = null) {
301403
301405
  return defaultValue;
301404
301406
  }
301405
301407
  return parsed;
301406
- } catch (err) {
301408
+ } catch (_err) {
301407
301409
  return defaultValue;
301408
301410
  }
301409
301411
  }
@@ -301431,7 +301433,7 @@ async function readConfig() {
301431
301433
  try {
301432
301434
  const content = await readFile4(CONFIG_FILE, "utf-8");
301433
301435
  return tryParseJson4(content, { instances: {} });
301434
- } catch (error41) {
301436
+ } catch (_error) {
301435
301437
  return { instances: {} };
301436
301438
  }
301437
301439
  }
@@ -305154,9 +305156,9 @@ function watchContractEvent(client, parameters) {
305154
305156
  return poll_;
305155
305157
  if (typeof fromBlock === "bigint")
305156
305158
  return true;
305157
- if (client.transport.type === "webSocket")
305159
+ if (client.transport.type === "webSocket" || client.transport.type === "ipc")
305158
305160
  return false;
305159
- if (client.transport.type === "fallback" && client.transport.transports[0].config.type === "webSocket")
305161
+ if (client.transport.type === "fallback" && (client.transport.transports[0].config.type === "webSocket" || client.transport.transports[0].config.type === "ipc"))
305160
305162
  return false;
305161
305163
  return true;
305162
305164
  })();
@@ -305257,7 +305259,7 @@ function watchContractEvent(client, parameters) {
305257
305259
  try {
305258
305260
  const transport = (() => {
305259
305261
  if (client.transport.type === "fallback") {
305260
- const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket");
305262
+ const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket" || transport3.config.type === "ipc");
305261
305263
  if (!transport2)
305262
305264
  return client.transport;
305263
305265
  return transport2.value;
@@ -308418,9 +308420,9 @@ function watchBlockNumber(client, { emitOnBegin = false, emitMissed = false, onB
308418
308420
  const enablePolling = (() => {
308419
308421
  if (typeof poll_ !== "undefined")
308420
308422
  return poll_;
308421
- if (client.transport.type === "webSocket")
308423
+ if (client.transport.type === "webSocket" || client.transport.type === "ipc")
308422
308424
  return false;
308423
- if (client.transport.type === "fallback" && client.transport.transports[0].config.type === "webSocket")
308425
+ if (client.transport.type === "fallback" && (client.transport.transports[0].config.type === "webSocket" || client.transport.transports[0].config.type === "ipc"))
308424
308426
  return false;
308425
308427
  return true;
308426
308428
  })();
@@ -308472,7 +308474,7 @@ function watchBlockNumber(client, { emitOnBegin = false, emitMissed = false, onB
308472
308474
  try {
308473
308475
  const transport = (() => {
308474
308476
  if (client.transport.type === "fallback") {
308475
- const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket");
308477
+ const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket" || transport3.config.type === "ipc");
308476
308478
  if (!transport2)
308477
308479
  return client.transport;
308478
308480
  return transport2.value;
@@ -308625,9 +308627,9 @@ function watchBlocks(client, { blockTag = "latest", emitMissed = false, emitOnBe
308625
308627
  const enablePolling = (() => {
308626
308628
  if (typeof poll_ !== "undefined")
308627
308629
  return poll_;
308628
- if (client.transport.type === "webSocket")
308630
+ if (client.transport.type === "webSocket" || client.transport.type === "ipc")
308629
308631
  return false;
308630
- if (client.transport.type === "fallback" && client.transport.transports[0].config.type === "webSocket")
308632
+ if (client.transport.type === "fallback" && (client.transport.transports[0].config.type === "webSocket" || client.transport.transports[0].config.type === "ipc"))
308631
308633
  return false;
308632
308634
  return true;
308633
308635
  })();
@@ -308696,7 +308698,7 @@ function watchBlocks(client, { blockTag = "latest", emitMissed = false, emitOnBe
308696
308698
  }
308697
308699
  const transport = (() => {
308698
308700
  if (client.transport.type === "fallback") {
308699
- const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket");
308701
+ const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket" || transport3.config.type === "ipc");
308700
308702
  if (!transport2)
308701
308703
  return client.transport;
308702
308704
  return transport2.value;
@@ -308743,9 +308745,9 @@ function watchEvent(client, { address, args, batch = true, event, events, fromBl
308743
308745
  return poll_;
308744
308746
  if (typeof fromBlock === "bigint")
308745
308747
  return true;
308746
- if (client.transport.type === "webSocket")
308748
+ if (client.transport.type === "webSocket" || client.transport.type === "ipc")
308747
308749
  return false;
308748
- if (client.transport.type === "fallback" && client.transport.transports[0].config.type === "webSocket")
308750
+ if (client.transport.type === "fallback" && (client.transport.transports[0].config.type === "webSocket" || client.transport.transports[0].config.type === "ipc"))
308749
308751
  return false;
308750
308752
  return true;
308751
308753
  })();
@@ -308832,7 +308834,7 @@ function watchEvent(client, { address, args, batch = true, event, events, fromBl
308832
308834
  try {
308833
308835
  const transport = (() => {
308834
308836
  if (client.transport.type === "fallback") {
308835
- const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket");
308837
+ const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket" || transport3.config.type === "ipc");
308836
308838
  if (!transport2)
308837
308839
  return client.transport;
308838
308840
  return transport2.value;
@@ -308899,7 +308901,7 @@ function watchEvent(client, { address, args, batch = true, event, events, fromBl
308899
308901
  }
308900
308902
  // ../../node_modules/viem/_esm/actions/public/watchPendingTransactions.js
308901
308903
  function watchPendingTransactions(client, { batch = true, onError, onTransactions, poll: poll_, pollingInterval = client.pollingInterval }) {
308902
- const enablePolling = typeof poll_ !== "undefined" ? poll_ : client.transport.type !== "webSocket";
308904
+ const enablePolling = typeof poll_ !== "undefined" ? poll_ : client.transport.type !== "webSocket" && client.transport.type !== "ipc";
308903
308905
  const pollPendingTransactions = () => {
308904
308906
  const observerId = stringify3([
308905
308907
  "watchPendingTransactions",
@@ -320557,7 +320559,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
320557
320559
  try {
320558
320560
  validate2(exports_external.string(), value4);
320559
320561
  return true;
320560
- } catch (error45) {
320562
+ } catch (_error) {
320561
320563
  return "Invalid token name";
320562
320564
  }
320563
320565
  }
@@ -320610,7 +320612,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
320610
320612
  try {
320611
320613
  validate2(ApplicationAccessTokenSchema2, aat);
320612
320614
  return aat;
320613
- } catch (error45) {}
320615
+ } catch (_error) {}
320614
320616
  }
320615
320617
  return esm_default5({
320616
320618
  message: "What is the application access token for your application in SettleMint? (format: sm_aat_...)",
@@ -320618,7 +320620,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
320618
320620
  try {
320619
320621
  validate2(ApplicationAccessTokenSchema2, value4);
320620
320622
  return true;
320621
- } catch (error45) {
320623
+ } catch (_error) {
320622
320624
  return "Invalid application access token, it should start with sm_aat_...";
320623
320625
  }
320624
320626
  }
@@ -321023,7 +321025,7 @@ async function instancePrompt({
321023
321025
  try {
321024
321026
  validate2(UrlSchema2, value4);
321025
321027
  return true;
321026
- } catch (error45) {
321028
+ } catch (_error) {
321027
321029
  return "Invalid URL";
321028
321030
  }
321029
321031
  },
@@ -321107,7 +321109,7 @@ async function serviceUrlPrompt({
321107
321109
  try {
321108
321110
  validate2(UrlSchema2, value4);
321109
321111
  return true;
321110
- } catch (error45) {
321112
+ } catch (_error) {
321111
321113
  return "Invalid URL";
321112
321114
  }
321113
321115
  },
@@ -322051,7 +322053,7 @@ async function projectNamePrompt(env2, argument) {
322051
322053
  try {
322052
322054
  validate2(exports_external.string(), value4);
322053
322055
  return true;
322054
- } catch (error45) {
322056
+ } catch (_error) {
322055
322057
  return "Invalid projectname";
322056
322058
  }
322057
322059
  }
@@ -326039,7 +326041,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
326039
326041
  try {
326040
326042
  validate2(PersonalAccessTokenSchema2, value4);
326041
326043
  return true;
326042
- } catch (error45) {
326044
+ } catch (_error) {
326043
326045
  return "Invalid personal access token, it should start with sm_pat_...";
326044
326046
  }
326045
326047
  }
@@ -326120,7 +326122,7 @@ function loginCommand() {
326120
326122
  });
326121
326123
  try {
326122
326124
  await loginSpinner(client);
326123
- } catch (error45) {
326125
+ } catch (_error) {
326124
326126
  cancel2(`Invalid personal access token for instance ${selectedInstance}`);
326125
326127
  }
326126
326128
  await storeCredentials(personalAccessToken, selectedInstance);
@@ -326316,7 +326318,7 @@ async function waitForCompletion({
326316
326318
  } else {
326317
326319
  note(`${capitalizeFirstLetter2(type4)} is not ready yet (status: ${resource.status})`);
326318
326320
  }
326319
- } catch (error45) {
326321
+ } catch (_error) {
326320
326322
  if (spinner2) {
326321
326323
  spinner2.text = `${capitalizeFirstLetter2(type4)} is not ready yet (status: UNKNOWN)`;
326322
326324
  } else {
@@ -326447,8 +326449,8 @@ function getCreateCommand({
326447
326449
  instance
326448
326450
  });
326449
326451
  const platformConfig = await settlemint.platform.config();
326450
- let selectedProvider = undefined;
326451
- let selectedRegion = undefined;
326452
+ let selectedProvider;
326453
+ let selectedRegion;
326452
326454
  if (cmd2.options.some((option) => option.long === "--provider")) {
326453
326455
  selectedProvider = await providerPrompt(platformConfig, provider);
326454
326456
  if (!selectedProvider) {
@@ -327659,7 +327661,7 @@ function privateKeyHsmCreateCommand() {
327659
327661
  return baseAction({
327660
327662
  ...defaultArgs,
327661
327663
  acceptDefaults
327662
- }, async ({ settlemint, env: env2, showSpinner, provider, region }) => {
327664
+ }, async ({ settlemint, env: env2, showSpinner, provider: _provider, region: _region }) => {
327663
327665
  const applicationUniqueName = application ?? env2.SETTLEMINT_APPLICATION;
327664
327666
  if (!applicationUniqueName) {
327665
327667
  return missingApplication();
@@ -328559,7 +328561,7 @@ function servicesCommand() {
328559
328561
  if (!applicationUniqueName) {
328560
328562
  return nothingSelectedError("application");
328561
328563
  }
328562
- let effectiveTypes = undefined;
328564
+ let effectiveTypes;
328563
328565
  if (options.type && options.type.length > 0) {
328564
328566
  effectiveTypes = options.type;
328565
328567
  } else if (typeOperands && typeOperands.length > 0) {
@@ -328617,7 +328619,7 @@ async function getServicesAndMapResults({
328617
328619
  const application = await settlemint.application.read(applicationUniqueName);
328618
328620
  const services = await servicesSpinner(settlemint, applicationUniqueName, types4);
328619
328621
  const results = (types4 ?? SERVICE_TYPES).filter((serviceType) => !types4 || types4.includes(serviceType)).map((serviceType) => {
328620
- const [_6, labels] = Object.entries(LABELS_MAP).find(([key2, value4]) => value4.command === serviceType) ?? [
328622
+ const [_6, labels] = Object.entries(LABELS_MAP).find(([_key, value4]) => value4.command === serviceType) ?? [
328621
328623
  null,
328622
328624
  { plural: serviceType }
328623
328625
  ];
@@ -328794,7 +328796,7 @@ var import_which = __toESM(require_lib5(), 1);
328794
328796
  async function executeFoundryCommand(command, args) {
328795
328797
  try {
328796
328798
  await import_which.default(command);
328797
- } catch (error45) {
328799
+ } catch (_error) {
328798
328800
  cancel2("Foundry is not installed. Instructions to install Foundry can be found here: https://book.getfoundry.sh/getting-started/installation");
328799
328801
  }
328800
328802
  return executeCommand(command, args);
@@ -328882,7 +328884,7 @@ function foundryBuildCommand() {
328882
328884
  description: "Build the smart contracts with additional Forge options",
328883
328885
  command: "scs foundry build --optimize --force"
328884
328886
  }
328885
- ])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, cmd2) => {
328887
+ ])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, _cmd) => {
328886
328888
  intro("Building smart contracts using Foundry");
328887
328889
  const forgeOptions = mapPassthroughOptions(options, { args: operands });
328888
328890
  await executeFoundryCommand("forge", ["build", ...forgeOptions]);
@@ -328905,7 +328907,7 @@ function foundryFormatCommand() {
328905
328907
  description: "Format the smart contracts with additional Forge options",
328906
328908
  command: "scs foundry format --check"
328907
328909
  }
328908
- ])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, cmd2) => {
328910
+ ])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, _cmd) => {
328909
328911
  intro("Formatting smart contracts using Foundry");
328910
328912
  const forgeOptions = mapPassthroughOptions(options, { args: operands });
328911
328913
  await executeFoundryCommand("forge", ["fmt", ...forgeOptions]);
@@ -328928,7 +328930,7 @@ function foundryNetworkCommand() {
328928
328930
  description: "Start a development network using Foundry with a specific port",
328929
328931
  command: "scs foundry network --port 3000"
328930
328932
  }
328931
- ])).helpOption(false).option("-h, --help", "Get list of possible anvil options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, cmd2) => {
328933
+ ])).helpOption(false).option("-h, --help", "Get list of possible anvil options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, _cmd) => {
328932
328934
  const anvilOptions = mapPassthroughOptions(options, { args: operands });
328933
328935
  await executeFoundryCommand("anvil", anvilOptions);
328934
328936
  });
@@ -328949,7 +328951,7 @@ function foundryTestCommand() {
328949
328951
  description: "Run a specific test function",
328950
328952
  command: "scs foundry test --match-test testToken"
328951
328953
  }
328952
- ])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, cmd2) => {
328954
+ ])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, _cmd) => {
328953
328955
  intro("Running smart contract tests using Foundry");
328954
328956
  const forgeOptions = mapPassthroughOptions(options, { args: operands });
328955
328957
  await executeFoundryCommand("forge", ["test", ...forgeOptions]);
@@ -328963,7 +328965,7 @@ var validateIfRequiredPackagesAreInstalled = async (packages, cwd2) => {
328963
328965
  try {
328964
328966
  const isInstalled = await isPackageInstalled(pkg, cwd2);
328965
328967
  return { packageName: pkg, isInstalled };
328966
- } catch (err) {
328968
+ } catch (_err) {
328967
328969
  return { packageName: pkg, isInstalled: false };
328968
328970
  }
328969
328971
  }));
@@ -328988,7 +328990,7 @@ function hardhatBuildCommand() {
328988
328990
  description: "Build the smart contracts using additional options to the Hardhat compile command",
328989
328991
  command: "scs hardhat build --concurrency 2"
328990
328992
  }
328991
- ])).helpOption(false).option("-h, --help", "Get list of possible hardhat compile options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, cmd2) => {
328993
+ ])).helpOption(false).option("-h, --help", "Get list of possible hardhat compile options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, _cmd) => {
328992
328994
  intro("Building smart contracts using Hardhat");
328993
328995
  await validateIfRequiredPackagesAreInstalled(["hardhat"]);
328994
328996
  const hardhatOptions = mapPassthroughOptions(options, { args: operands });
@@ -329059,7 +329061,7 @@ async function selectTargetNode({
329059
329061
  settlemint
329060
329062
  }) {
329061
329063
  const nodeUniqueName = blockchainNodeUniqueName ?? (autoAccept ? env2.SETTLEMINT_BLOCKCHAIN_NODE : undefined);
329062
- let node = undefined;
329064
+ let node;
329063
329065
  if (!nodeUniqueName) {
329064
329066
  if (!env2.SETTLEMINT_APPLICATION) {
329065
329067
  return missingApplication();
@@ -329283,7 +329285,7 @@ function hardhatDeployRemoteCommand() {
329283
329285
  } else {
329284
329286
  note("Smart contract deployment was cancelled");
329285
329287
  }
329286
- } catch (error45) {
329288
+ } catch (_error) {
329287
329289
  cancel2("The smart contract deployment was unsuccessful. Please check the error details above and try again. You may need to review your contract code or deployment configuration.");
329288
329290
  }
329289
329291
  });
@@ -329313,7 +329315,7 @@ function hardhatNetworkCommand() {
329313
329315
  description: "Start a development network using Hardhat with a specific port",
329314
329316
  command: "scs hardhat network --port 3000"
329315
329317
  }
329316
- ])).helpOption(false).option("-h, --help", "Get list of possible hardhat node options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, cmd2) => {
329318
+ ])).helpOption(false).option("-h, --help", "Get list of possible hardhat node options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, _cmd) => {
329317
329319
  intro("Starting development network using Hardhat");
329318
329320
  await validateIfRequiredPackagesAreInstalled(["hardhat"]);
329319
329321
  const hardhatOptions = mapPassthroughOptions(options, { args: operands });
@@ -329422,7 +329424,7 @@ function hardhatTestCommand() {
329422
329424
  description: "Run a specific test file",
329423
329425
  command: "scs hardhat test test/token.test.ts"
329424
329426
  }
329425
- ])).helpOption(false).option("-h, --help", "Get list of possible hardhat test options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, cmd2) => {
329427
+ ])).helpOption(false).option("-h, --help", "Get list of possible hardhat test options").passThroughOptions().allowUnknownOption(true).arguments("[operands...]").action(async (operands, options, _cmd) => {
329426
329428
  intro("Running smart contract tests using Hardhat");
329427
329429
  await validateIfRequiredPackagesAreInstalled(["hardhat"]);
329428
329430
  const hardhatOptions = mapPassthroughOptions(options, { args: operands });
@@ -330090,4 +330092,4 @@ async function sdkCliCommand(argv = process.argv) {
330090
330092
  // src/cli.ts
330091
330093
  sdkCliCommand();
330092
330094
 
330093
- //# debugId=8D42BB191ECD719864756E2164756E21
330095
+ //# debugId=3AEA18581823397864756E2164756E21