@settlemint/sdk-cli 0.6.59-mainc846b52 → 0.6.59-pr9778e5f

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
@@ -197427,7 +197427,7 @@ ${Bt.cyan(Yt)}
197427
197427
  code: "ENOENT"
197428
197428
  }), getPathInfo = (e9, t7) => {
197429
197429
  var r6 = t7.colon || or;
197430
- var i6 = e9.match(/\//) || nr && e9.match(/\\/) ? [""] : [...nr ? [process.cwd()] : [], ...(t7.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.aCCpjpqaSm:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(r6)];
197430
+ var i6 = e9.match(/\//) || nr && e9.match(/\\/) ? [""] : [...nr ? [process.cwd()] : [], ...(t7.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.FpSPEYTW5j:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(r6)];
197431
197431
  var n6 = nr ? t7.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
197432
197432
  var a5 = nr ? n6.split(r6) : [""];
197433
197433
  if (nr) {
@@ -200564,7 +200564,7 @@ ${whileRunning(e9)}`;
200564
200564
  };
200565
200565
  ni = Object.assign(async function _main() {
200566
200566
  var e9 = new Cli({
200567
- binaryVersion: "0.6.59-mainc846b52",
200567
+ binaryVersion: "0.6.59-pr9778e5f",
200568
200568
  binaryLabel: "gql.tada CLI",
200569
200569
  binaryName: "gql.tada"
200570
200570
  });
@@ -218401,7 +218401,7 @@ var require_lib4 = __commonJS((exports, module) => {
218401
218401
  var rRel = new RegExp(`^\\.${rSlash.source}`);
218402
218402
  var getNotFoundError2 = (cmd2) => Object.assign(new Error(`not found: ${cmd2}`), { code: "ENOENT" });
218403
218403
  var getPathInfo2 = (cmd2, {
218404
- path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.aCCpjpqaSm:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
218404
+ path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.FpSPEYTW5j:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
218405
218405
  pathExt: optPathExt = process.env.PATHEXT,
218406
218406
  delimiter: optDelimiter = delimiter
218407
218407
  }) => {
@@ -218605,7 +218605,7 @@ var require_lib5 = __commonJS((exports, module) => {
218605
218605
  let pathToInitial;
218606
218606
  try {
218607
218607
  pathToInitial = which.sync(initialCmd, {
218608
- path: options.env && findInObject(options.env, "PATH") || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.aCCpjpqaSm:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
218608
+ path: options.env && findInObject(options.env, "PATH") || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.FpSPEYTW5j:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
218609
218609
  pathext: options.env && findInObject(options.env, "PATHEXT") || process.env.PATHEXT
218610
218610
  }).toLowerCase();
218611
218611
  } catch (err) {
@@ -219322,7 +219322,7 @@ var require_lib6 = __commonJS((exports, module) => {
219322
219322
  var rRel = new RegExp(`^\\.${rSlash.source}`);
219323
219323
  var getNotFoundError2 = (cmd2) => Object.assign(new Error(`not found: ${cmd2}`), { code: "ENOENT" });
219324
219324
  var getPathInfo2 = (cmd2, {
219325
- path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.aCCpjpqaSm:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
219325
+ path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.FpSPEYTW5j:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
219326
219326
  pathExt: optPathExt = process.env.PATHEXT,
219327
219327
  delimiter: optDelimiter = delimiter
219328
219328
  }) => {
@@ -235213,7 +235213,7 @@ var require_which2 = __commonJS((exports, module) => {
235213
235213
  const colon = opt2.colon || COLON;
235214
235214
  const pathEnv = cmd2.match(/\//) || isWindows2 && cmd2.match(/\\/) ? [""] : [
235215
235215
  ...isWindows2 ? [process.cwd()] : [],
235216
- ...(opt2.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.aCCpjpqaSm:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(colon)
235216
+ ...(opt2.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.FpSPEYTW5j:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(colon)
235217
235217
  ];
235218
235218
  const pathExtExe = isWindows2 ? opt2.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
235219
235219
  const pathExt = isWindows2 ? pathExtExe.split(colon) : [""];
@@ -273250,7 +273250,7 @@ function connectCommand() {
273250
273250
  var package_default = {
273251
273251
  name: "@settlemint/sdk-cli",
273252
273252
  description: "SettleMint SDK, integrate SettleMint into your application with ease.",
273253
- version: "0.6.59-mainc846b52",
273253
+ version: "0.6.59-pr9778e5f",
273254
273254
  type: "module",
273255
273255
  private: false,
273256
273256
  license: "FSL-1.1-MIT",
@@ -273301,8 +273301,8 @@ var package_default = {
273301
273301
  "@inquirer/input": "4.1.0",
273302
273302
  "@inquirer/password": "4.0.3",
273303
273303
  "@inquirer/select": "4.0.3",
273304
- "@settlemint/sdk-js": "0.6.59-mainc846b52",
273305
- "@settlemint/sdk-utils": "0.6.59-mainc846b52",
273304
+ "@settlemint/sdk-js": "0.6.59-pr9778e5f",
273305
+ "@settlemint/sdk-utils": "0.6.59-pr9778e5f",
273306
273306
  "get-tsconfig": "4.8.1",
273307
273307
  giget: "1.2.3"
273308
273308
  },
@@ -274162,9 +274162,9 @@ function createExamples(examples) {
274162
274162
  return `
274163
274163
  Examples:
274164
274164
 
274165
- ${examples.map(({ description, command }) => {
274165
+ ${examples.map(({ description, command, commandPrefix }) => {
274166
274166
  return ` # ${description}
274167
- $ bunx @settlemint/sdk-cli@latest ${command}`;
274167
+ $ ${commandPrefix ?? ""}bunx @settlemint/sdk-cli@latest ${command}`;
274168
274168
  }).join(`
274169
274169
 
274170
274170
  `)}`;
@@ -274206,11 +274206,12 @@ function loginCommand() {
274206
274206
  ${createExamples([
274207
274207
  {
274208
274208
  description: "Login to your SettleMint account",
274209
- command: "settlemint login"
274209
+ command: "login"
274210
274210
  },
274211
274211
  {
274212
274212
  description: "Login to your SettleMint account using a token from STDIN",
274213
- command: "cat ~/my_token.txt | settlemint login --token-stdin --accept-defaults"
274213
+ command: "login --token-stdin --accept-defaults",
274214
+ commandPrefix: "cat ~/my_token.txt | "
274214
274215
  }
274215
274216
  ])}`).option("-a, --accept-defaults", "Accept the default and previously set values").option("-d, --default", "Set this instance as the default").option("--token-stdin", "Provide a token using STDIN").action(async ({ acceptDefaults, default: isDefault, tokenStdin }) => {
274216
274217
  intro("Login to your SettleMint account");
@@ -275775,62 +275776,62 @@ function createCommand4() {
275775
275776
  });
275776
275777
  }
275777
275778
 
275779
+ // src/utils/passthrough-options.ts
275780
+ function mapPassthroughOptions(options, command) {
275781
+ const optionArgs = Object.entries(options).map(([key2, value4]) => {
275782
+ if (value4 === true) {
275783
+ return `--${key2}`;
275784
+ }
275785
+ return `--${key2}=${value4}`;
275786
+ });
275787
+ return [...optionArgs, ...command.args];
275788
+ }
275789
+
275778
275790
  // src/commands/smart-contract-set/foundry/build.ts
275779
275791
  function foundryBuildCommand() {
275780
- const build = new Command2("build");
275781
- build.description("Build the smart contracts using Foundry/forge");
275782
- build.action(async () => {
275783
- await executeCommand("forge", ["build"]);
275792
+ return new Command2("build").description("Build the smart contracts using Foundry/forge").helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
275793
+ const forgeOptions = mapPassthroughOptions(passThroughOptions, cmd2);
275794
+ await executeCommand("forge", ["build", ...forgeOptions]);
275784
275795
  });
275785
- return build;
275786
275796
  }
275787
275797
 
275788
275798
  // src/commands/smart-contract-set/foundry/format.ts
275789
275799
  function foundryFormatCommand() {
275790
- const format3 = new Command2("format");
275791
- format3.description("Format the smart contracts using Foundry/forge");
275792
- format3.action(async () => {
275793
- await executeCommand("forge", ["fmt"]);
275800
+ return new Command2("format").description("Format the smart contracts using Foundry/forge").helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
275801
+ const forgeOptions = mapPassthroughOptions(passThroughOptions, cmd2);
275802
+ await executeCommand("forge", ["fmt", ...forgeOptions]);
275794
275803
  note("Smart contract set formatted successfully!");
275795
275804
  });
275796
- return format3;
275797
275805
  }
275798
275806
 
275799
275807
  // src/commands/smart-contract-set/foundry/network.ts
275800
275808
  function foundryNetworkCommand() {
275801
- const network = new Command2("network");
275802
- network.description("Start a development network Foundry/anvil");
275803
- network.action(async () => {
275804
- await executeCommand("anvil", []);
275809
+ return new Command2("network").description("Start a development network Foundry/anvil").helpOption(false).option("-h, --help", "Get list of possible anvil options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
275810
+ const anvilOptions = mapPassthroughOptions(passThroughOptions, cmd2);
275811
+ await executeCommand("anvil", anvilOptions);
275805
275812
  });
275806
- return network;
275807
275813
  }
275808
275814
 
275809
275815
  // src/commands/smart-contract-set/foundry/test.ts
275810
275816
  function foundryTestCommand() {
275811
- const test = new Command2("test");
275812
- test.description("Test the smart contracts using Foundry/forge");
275813
- test.action(async () => {
275814
- await executeCommand("forge", ["test"]);
275817
+ return new Command2("test").description("Test the smart contracts using Foundry/forge").helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
275818
+ const forgeOptions = mapPassthroughOptions(passThroughOptions, cmd2);
275819
+ await executeCommand("forge", ["test", ...forgeOptions]);
275815
275820
  });
275816
- return test;
275817
275821
  }
275818
275822
 
275819
275823
  // src/commands/smart-contract-set/hardhat/build.ts
275820
275824
  function hardhatBuildCommand() {
275821
- const build = new Command2("build");
275822
- build.description("Build the smart contracts using Hardhat");
275823
- build.action(async () => {
275825
+ return new Command2("build").description("Build the smart contracts using Hardhat").helpOption(false).option("-h, --help", "Get list of possible hardhat compile options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
275826
+ const hardhatOptions = mapPassthroughOptions(passThroughOptions, cmd2);
275824
275827
  const { command, args } = await getPackageManagerExecutable();
275825
- await executeCommand(command, [...args, "hardhat", "compile"]);
275828
+ await executeCommand(command, [...args, "hardhat", "compile", ...hardhatOptions]);
275826
275829
  });
275827
- return build;
275828
275830
  }
275829
275831
 
275830
275832
  // src/commands/smart-contract-set/hardhat/deploy/local.ts
275831
275833
  function hardhatDeployLocalCommand() {
275832
- const build = new Command2("local").description("Deploy the smart contracts using Hardhat/ignition to the local development network").option("-m, --module <ignitionmodule>", 'The module to deploy with Ignition, defaults to "ignition/modules/main.ts"').option("-r, --reset", "Reset the deployment").option("--verify", "Verify the deployment");
275833
- build.action(async ({ module, reset: reset2, verify }) => {
275834
+ return new Command2("local").description("Deploy the smart contracts using Hardhat/ignition to the local development network").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 }) => {
275834
275835
  const { command, args } = await getPackageManagerExecutable();
275835
275836
  await executeCommand(command, [
275836
275837
  ...args,
@@ -275844,7 +275845,6 @@ function hardhatDeployLocalCommand() {
275844
275845
  module ?? "ignition/modules/main.ts"
275845
275846
  ].filter(Boolean));
275846
275847
  });
275847
- return build;
275848
275848
  }
275849
275849
 
275850
275850
  // src/commands/smart-contract-set/prompts/address.prompt.ts
@@ -275881,26 +275881,6 @@ async function addressPrompt({
275881
275881
  return address;
275882
275882
  }
275883
275883
 
275884
- // src/commands/smart-contract-set/prompts/deployment-id.prompt.ts
275885
- async function deploymentIdPrompt(env2, accept, prod) {
275886
- const defaultDeploymentId = env2.SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID;
275887
- if (accept) {
275888
- return defaultDeploymentId;
275889
- }
275890
- const deploymentId = await esm_default4({
275891
- message: "What is the deployment ID of your smart contract set (optional)?",
275892
- required: false,
275893
- default: defaultDeploymentId
275894
- });
275895
- if (deploymentId !== defaultDeploymentId) {
275896
- await writeEnvSpinner(!!prod, {
275897
- ...env2,
275898
- SETTLEMINT_SMART_CONTRACT_DEPLOYMENT_ID: deploymentId
275899
- });
275900
- }
275901
- return deploymentId;
275902
- }
275903
-
275904
275884
  // src/utils/hardhat-config.ts
275905
275885
  async function getHardhatConfigData(envConfig) {
275906
275886
  try {
@@ -275930,8 +275910,19 @@ function isHardhatConfig(config4) {
275930
275910
 
275931
275911
  // src/commands/smart-contract-set/hardhat/deploy/remote.ts
275932
275912
  function hardhatDeployRemoteCommand() {
275933
- const build = new Command2("remote").description("Deploy the smart contracts using Hardhat/ignition to the remote network on the platform").option("-m, --module <ignitionmodule>", 'The module to deploy with Ignition, defaults to "ignition/modules/main.ts"').option("--deployment-id <deploymentId>", "Set a custom deployment id").option("-r, --reset", "Reset the deployment").option("--verify", "Verify the deployment").option("--blockchain-node-id <blockchainNodeId>", "Blockchain Node ID (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");
275934
- build.action(async ({ module, reset: reset2, verify, deploymentId, prod, acceptDefaults, blockchainNodeId }) => {
275913
+ const cmd2 = new Command2("remote").description("Deploy the smart contracts using Hardhat/ignition to the remote network on the platform").option("-m, --module <ignitionmodule>", 'The module to deploy with Ignition, defaults to "ignition/modules/main.ts"').option("--deployment-id <deploymentId>", "Set the id of the deployment").option("-r, --reset", "Wipes the existing deployment state before deploying").option("-v, --verify", "Verify the deployment on Etherscan").option("--default-sender <defaultSender>", "Set the default sender for the deployment").option("--parameters <parameters>", "A relative path to a JSON file to use for the module parameters").option("--strategy <strategy>", `Set the deployment strategy to use (default: "basic")`).option("--blockchain-node-id <blockchainNodeId>", "Blockchain Node ID (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");
275914
+ cmd2.action(async ({
275915
+ module,
275916
+ reset: reset2,
275917
+ verify,
275918
+ deploymentId,
275919
+ defaultSender,
275920
+ parameters,
275921
+ strategy,
275922
+ prod,
275923
+ acceptDefaults,
275924
+ blockchainNodeId
275925
+ }) => {
275935
275926
  const autoAccept = !!acceptDefaults || is_in_ci_default;
275936
275927
  const env2 = await loadEnv(false, !!prod);
275937
275928
  const accessToken = env2.SETTLEMINT_ACCESS_TOKEN;
@@ -275971,7 +275962,6 @@ function hardhatDeployRemoteCommand() {
275971
275962
  if (!address) {
275972
275963
  cancel2("No private key selected. Please select one to continue.");
275973
275964
  }
275974
- const customDeploymentId = deploymentId ?? await deploymentIdPrompt(env2, autoAccept, prod);
275975
275965
  const { command, args } = await getPackageManagerExecutable();
275976
275966
  await executeCommand(command, [
275977
275967
  ...args,
@@ -275980,13 +275970,16 @@ function hardhatDeployRemoteCommand() {
275980
275970
  "deploy",
275981
275971
  ...reset2 ? ["--reset"] : [],
275982
275972
  ...verify ? ["--verify"] : [],
275983
- ...customDeploymentId ? ["--deployment-id", customDeploymentId] : [],
275973
+ ...deploymentId ? ["--deployment-id", deploymentId] : [],
275974
+ ...defaultSender ? ["--default-sender", defaultSender] : [],
275975
+ ...parameters ? ["--parameters", parameters] : [],
275976
+ ...strategy ? ["--strategy", strategy] : [],
275984
275977
  "--network",
275985
275978
  "btp",
275986
275979
  module ?? "ignition/modules/main.ts"
275987
275980
  ].filter(Boolean), { env: envConfig });
275988
275981
  });
275989
- return build;
275982
+ return cmd2;
275990
275983
  }
275991
275984
 
275992
275985
  // src/commands/smart-contract-set/hardhat/deploy.ts
@@ -275999,29 +275992,33 @@ function hardhatDeployCommand() {
275999
275992
 
276000
275993
  // src/commands/smart-contract-set/hardhat/network.ts
276001
275994
  function hardhatNetworkCommand() {
276002
- const network = new Command2("network");
276003
- network.description("Start a development network using Hardhat");
276004
- network.action(async () => {
275995
+ return new Command2("network").description("Start a development network using Hardhat").helpOption(false).option("-h, --help", "Get list of possible hardhat node options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
275996
+ const hardhatOptions = mapPassthroughOptions(passThroughOptions, cmd2);
276005
275997
  const { command, args } = await getPackageManagerExecutable();
276006
- await executeCommand(command, [...args, "hardhat", "node"]);
275998
+ await executeCommand(command, [...args, "hardhat", "node", ...hardhatOptions]);
276007
275999
  });
276008
- return network;
276009
276000
  }
276010
276001
 
276011
276002
  // src/commands/smart-contract-set/hardhat/script/local.ts
276012
276003
  function hardhatScriptLocalCommand() {
276013
- const build = new Command2("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"');
276014
- build.action(async ({ script }) => {
276004
+ return new Command2("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 }) => {
276015
276005
  const { command, args } = await getPackageManagerExecutable();
276016
- await executeCommand(command, [...args, "hardhat", "run", script, "--network", "localhost"]);
276006
+ await executeCommand(command, [
276007
+ ...args,
276008
+ "hardhat",
276009
+ "run",
276010
+ script,
276011
+ "--network",
276012
+ "localhost",
276013
+ ...compile ? ["--no-compile"] : []
276014
+ ]);
276017
276015
  });
276018
- return build;
276019
276016
  }
276020
276017
 
276021
276018
  // src/commands/smart-contract-set/hardhat/script/remote.ts
276022
276019
  function hardhatScriptRemoteCommand() {
276023
- const build = new Command2("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-id <blockchainNodeId>", "Blockchain Node ID (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");
276024
- build.action(async ({ script, prod, blockchainNodeId, acceptDefaults }) => {
276020
+ const cmd2 = new Command2("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-id <blockchainNodeId>", "Blockchain Node ID (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");
276021
+ cmd2.action(async ({ script, prod, blockchainNodeId, acceptDefaults, compile }) => {
276025
276022
  const autoAccept = !!acceptDefaults || is_in_ci_default;
276026
276023
  const env2 = await loadEnv(false, !!prod);
276027
276024
  const accessToken = env2.SETTLEMINT_ACCESS_TOKEN;
@@ -276044,9 +276041,9 @@ function hardhatScriptRemoteCommand() {
276044
276041
  }
276045
276042
  const envConfig = await settlemint.foundry.env(nodeId);
276046
276043
  const { command, args } = await getPackageManagerExecutable();
276047
- await executeCommand(command, [...args, "hardhat", "run", script, "--network", "btp"], { env: envConfig });
276044
+ await executeCommand(command, [...args, "hardhat", "run", script, "--network", "btp", ...compile ? ["--no-compile"] : []], { env: envConfig });
276048
276045
  });
276049
- return build;
276046
+ return cmd2;
276050
276047
  }
276051
276048
 
276052
276049
  // src/commands/smart-contract-set/hardhat/script.ts
@@ -276059,13 +276056,11 @@ function hardhatScriptCommand() {
276059
276056
 
276060
276057
  // src/commands/smart-contract-set/hardhat/test.ts
276061
276058
  function hardhatTestCommand() {
276062
- const test = new Command2("test");
276063
- test.description("Test the smart contracts using Hardhat");
276064
- test.action(async () => {
276059
+ return new Command2("test").description("Test the smart contracts using Hardhat").helpOption(false).option("-h, --help", "Get list of possible hardhat test options").passThroughOptions().allowUnknownOption().action(async (options, cmd2) => {
276060
+ const hardhatOptions = mapPassthroughOptions(options, cmd2);
276065
276061
  const { command, args } = await getPackageManagerExecutable();
276066
- await executeCommand(command, [...args, "hardhat", "test"]);
276062
+ await executeCommand(command, [...args, "hardhat", "test", ...hardhatOptions]);
276067
276063
  });
276068
- return test;
276069
276064
  }
276070
276065
 
276071
276066
  // src/commands/smart-contract-set/subgraph/build.ts
@@ -276447,4 +276442,4 @@ sdkcli.parseAsync(process.argv).catch((reason) => {
276447
276442
  cancel2(reason);
276448
276443
  });
276449
276444
 
276450
- //# debugId=53E14934F8BC830064756E2164756E21
276445
+ //# debugId=E20B7C81431A7A6564756E2164756E21