@settlemint/sdk-cli 0.6.59 → 0.7.0-main09d1937

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 +278 -109
  2. package/dist/cli.js.map +32 -27
  3. package/package.json +7 -7
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.ZAuPyP3mI6:/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.pNahGxK9aT:/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",
200567
+ binaryVersion: "0.7.0-main09d1937",
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.ZAuPyP3mI6:/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.pNahGxK9aT:/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.ZAuPyP3mI6:/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.pNahGxK9aT:/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.ZAuPyP3mI6:/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.pNahGxK9aT:/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.ZAuPyP3mI6:/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.pNahGxK9aT:/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) : [""];
@@ -267876,7 +267876,7 @@ export const { client: theGraphClient${nameSuffix}, graphql: theGraphGraphql${na
267876
267876
  Timestamp: string;
267877
267877
  };
267878
267878
  }>({
267879
- instances: JSON.parse(process.env.SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS!),
267879
+ instances: JSON.parse(process.env.SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS || '[]'),
267880
267880
  accessToken: process.env.SETTLEMINT_ACCESS_TOKEN!, // undefined in browser, by design to not leak the secrets
267881
267881
  subgraphName: "${name2}",
267882
267882
  });`
@@ -270594,6 +270594,16 @@ function getBlockscoutEndpoints(service) {
270594
270594
  SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: uiEndpoint
270595
270595
  };
270596
270596
  }
270597
+ function getMinioEndpoints(service) {
270598
+ if (!service || service.__typename !== "MinioStorage") {
270599
+ return {};
270600
+ }
270601
+ return {
270602
+ SETTLEMINT_MINIO_ENDPOINT: service?.endpoints.find((endpoint) => endpoint.id.includes("s3-api"))?.displayValue,
270603
+ SETTLEMINT_MINIO_ACCESS_KEY: service?.credentials.find((credential) => credential.id.includes("access-key"))?.displayValue,
270604
+ SETTLEMINT_MINIO_SECRET_KEY: service?.credentials.find((credential) => credential.id.includes("secret-key"))?.displayValue
270605
+ };
270606
+ }
270597
270607
 
270598
270608
  // ../utils/dist/runtime.mjs
270599
270609
  function ensureServer() {
@@ -271528,6 +271538,7 @@ var BlockchainNodeFragment = graphql(`
271528
271538
  name
271529
271539
  uniqueName
271530
271540
  status
271541
+ isEvm
271531
271542
  endpoints {
271532
271543
  id
271533
271544
  label
@@ -273233,9 +273244,7 @@ function connectCommand() {
273233
273244
  ...getPortalEndpoints(portal),
273234
273245
  SETTLEMINT_HD_PRIVATE_KEY: hdPrivateKey?.uniqueName,
273235
273246
  SETTLEMINT_MINIO: minio?.id,
273236
- SETTLEMINT_MINIO_ENDPOINT: minio?.endpoints.find((endpoint) => endpoint.id.includes("s3-api"))?.displayValue,
273237
- SETTLEMINT_MINIO_ACCESS_KEY: minio?.credentials.find((credential) => credential.id.includes("access-key"))?.displayValue,
273238
- SETTLEMINT_MINIO_SECRET_KEY: minio?.credentials.find((credential) => credential.id.includes("secret-key"))?.displayValue,
273247
+ ...getMinioEndpoints(minio),
273239
273248
  SETTLEMINT_IPFS: ipfs?.id,
273240
273249
  ...getIpfsEndpoints(ipfs),
273241
273250
  SETTLEMINT_CUSTOM_DEPLOYMENT: cDeployment?.id,
@@ -273250,7 +273259,7 @@ function connectCommand() {
273250
273259
  var package_default = {
273251
273260
  name: "@settlemint/sdk-cli",
273252
273261
  description: "SettleMint SDK, integrate SettleMint into your application with ease.",
273253
- version: "0.6.59",
273262
+ version: "0.7.0-main09d1937",
273254
273263
  type: "module",
273255
273264
  private: false,
273256
273265
  license: "FSL-1.1-MIT",
@@ -273297,12 +273306,12 @@ var package_default = {
273297
273306
  slugify: "1.6.6",
273298
273307
  yoctocolors: "2.1.1",
273299
273308
  "@commander-js/extra-typings": "12.1.0",
273300
- "@inquirer/confirm": "5.1.0",
273301
- "@inquirer/input": "4.1.0",
273302
- "@inquirer/password": "4.0.3",
273303
- "@inquirer/select": "4.0.3",
273304
- "@settlemint/sdk-js": "0.6.59",
273305
- "@settlemint/sdk-utils": "0.6.59",
273309
+ "@inquirer/confirm": "5.1.1",
273310
+ "@inquirer/input": "4.1.1",
273311
+ "@inquirer/password": "4.0.4",
273312
+ "@inquirer/select": "4.0.4",
273313
+ "@settlemint/sdk-js": "0.7.0-main09d1937",
273314
+ "@settlemint/sdk-utils": "0.7.0-main09d1937",
273306
273315
  "get-tsconfig": "4.8.1",
273307
273316
  giget: "1.2.3"
273308
273317
  },
@@ -274162,9 +274171,9 @@ function createExamples(examples) {
274162
274171
  return `
274163
274172
  Examples:
274164
274173
 
274165
- ${examples.map(({ description, command }) => {
274174
+ ${examples.map(({ description, command, commandPrefix }) => {
274166
274175
  return ` # ${description}
274167
- $ bunx @settlemint/sdk-cli@latest ${command}`;
274176
+ $ ${commandPrefix ?? ""}bunx @settlemint/sdk-cli@latest ${command}`;
274168
274177
  }).join(`
274169
274178
 
274170
274179
  `)}`;
@@ -274206,11 +274215,12 @@ function loginCommand() {
274206
274215
  ${createExamples([
274207
274216
  {
274208
274217
  description: "Login to your SettleMint account",
274209
- command: "settlemint login"
274218
+ command: "login"
274210
274219
  },
274211
274220
  {
274212
274221
  description: "Login to your SettleMint account using a token from STDIN",
274213
- command: "cat ~/my_token.txt | settlemint login --token-stdin --accept-defaults"
274222
+ command: "login --token-stdin --accept-defaults",
274223
+ commandPrefix: "cat ~/my_token.txt | "
274214
274224
  }
274215
274225
  ])}`).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
274226
  intro("Login to your SettleMint account");
@@ -274380,7 +274390,7 @@ ${createExamples(examples)}`).argument("<name>", `The ${type4} name`).option("-a
274380
274390
  intro(`Creating ${type4} in the SettleMint platform`);
274381
274391
  const autoAccept = !!acceptDefaults || is_in_ci_default;
274382
274392
  const env2 = await loadEnv2(false, !!prod);
274383
- const instance = await instancePrompt(env2, autoAccept);
274393
+ const instance = env2.SETTLEMINT_INSTANCE ?? await instancePrompt(env2, autoAccept);
274384
274394
  const accessToken = usePersonalAccessToken ? (await getInstanceCredentials(instance))?.personalAccessToken : env2.SETTLEMINT_ACCESS_TOKEN;
274385
274395
  if (!accessToken) {
274386
274396
  return missingAccessTokenError();
@@ -274506,7 +274516,7 @@ function blockchainNetworkBesuCreateCommand() {
274506
274516
 
274507
274517
  // src/commands/platform/blockchain-network/create.ts
274508
274518
  function blockchainNetworkCreateCommand() {
274509
- return new Command2("blockchain-network").alias("bn").description("Create a blockchain network in the SettleMint platform").addCommand(blockchainNetworkBesuCreateCommand());
274519
+ return new Command2("blockchain-network").alias("bnw").description("Create a blockchain network in the SettleMint platform").addCommand(blockchainNetworkBesuCreateCommand());
274510
274520
  }
274511
274521
 
274512
274522
  // src/commands/platform/workspace/create.ts
@@ -274778,6 +274788,110 @@ function applicationCreateCommand() {
274778
274788
  });
274779
274789
  }
274780
274790
 
274791
+ // src/commands/connect/blockchain-network.prompt.ts
274792
+ async function blockchainNetworkPrompt(env2, networks, accept) {
274793
+ if (networks.length === 0) {
274794
+ return;
274795
+ }
274796
+ const defaultNetwork = networks.find((network) => network.id === env2.SETTLEMINT_BLOCKCHAIN_NETWORK) ?? (networks.length === 1 ? networks[0] : undefined);
274797
+ const defaultPossible = accept;
274798
+ if (defaultPossible) {
274799
+ return defaultNetwork;
274800
+ }
274801
+ return esm_default2({
274802
+ message: "Which blockchain network do you want to connect to?",
274803
+ choices: [
274804
+ ...networks.map((network) => ({
274805
+ name: network.name,
274806
+ value: network
274807
+ })),
274808
+ {
274809
+ name: "None",
274810
+ value: undefined
274811
+ }
274812
+ ],
274813
+ default: defaultNetwork
274814
+ });
274815
+ }
274816
+
274817
+ // src/commands/platform/blockchain-node/besu/create.ts
274818
+ function blockchainNodeBesuCreateCommand() {
274819
+ return getCreateCommand({
274820
+ name: "besu",
274821
+ type: "blockchain node",
274822
+ alias: "b",
274823
+ execute: (cmd2, baseAction) => {
274824
+ addClusterServiceArgs(cmd2).option("-a, --application-id <applicationId>", "The application ID to create the node in (defaults to application from env)").option("--blockchain-network-id <blockchainNetworkId>", "Blockchain network to add this node to").option("--node-identity <nodeIdentity>", "EC DSA P256 private key to use as the node identity").addOption(new Option("--node-type <nodeType>", "Type of the node").choices(["VALIDATOR", "NON_VALIDATOR"]).makeOptionMandatory()).action(async (name2, {
274825
+ applicationId,
274826
+ provider,
274827
+ region,
274828
+ size,
274829
+ type: type4,
274830
+ blockchainNetworkId,
274831
+ nodeType,
274832
+ nodeIdentity,
274833
+ acceptDefaults,
274834
+ ...defaultArgs
274835
+ }) => {
274836
+ return baseAction(defaultArgs, async (settlemint, env2) => {
274837
+ const application = applicationId ?? env2.SETTLEMINT_APPLICATION;
274838
+ if (!application) {
274839
+ cancel2("No application found. Please specify an application or run `settlemint connect` to continue.");
274840
+ }
274841
+ let networkId = blockchainNetworkId ?? (acceptDefaults ? env2.SETTLEMINT_BLOCKCHAIN_NETWORK : undefined);
274842
+ if (!networkId) {
274843
+ const networks = await settlemint.blockchainNetwork.list(application);
274844
+ const network = await blockchainNetworkPrompt(env2, networks, acceptDefaults ?? false);
274845
+ if (!network) {
274846
+ cancel2("No network found. Please specify a network to continue.");
274847
+ }
274848
+ networkId = network?.id;
274849
+ }
274850
+ const result = await settlemint.blockchainNode.create({
274851
+ applicationId: application,
274852
+ name: name2,
274853
+ blockchainNetworkId: networkId,
274854
+ nodeType,
274855
+ keyMaterial: nodeIdentity,
274856
+ provider,
274857
+ region,
274858
+ size,
274859
+ type: type4
274860
+ });
274861
+ return {
274862
+ result,
274863
+ mapDefaultEnv: () => {
274864
+ return {
274865
+ SETTLEMINT_APPLICATION: application,
274866
+ SETTLEMINT_BLOCKCHAIN_NODE: result.id
274867
+ };
274868
+ }
274869
+ };
274870
+ });
274871
+ });
274872
+ },
274873
+ examples: [
274874
+ {
274875
+ description: "Create a Besu blockchain node and save as default",
274876
+ command: "platform create blockchain-node besu my-node --node-type VALIDATOR --accept-defaults -d"
274877
+ },
274878
+ {
274879
+ description: "Create a Besu blockchain node in a different network",
274880
+ command: "platform create blockchain-node besu my-node --blockchain-network-id 12345 --node-type NON_VALIDATOR --accept-defaults"
274881
+ },
274882
+ {
274883
+ description: "Create a Besu blockchain node in a different application",
274884
+ command: "platform create blockchain-node besu my-node --application-id 123456789 --node-type NON_VALIDATOR --accept-defaults"
274885
+ }
274886
+ ]
274887
+ });
274888
+ }
274889
+
274890
+ // src/commands/platform/blockchain-node/create.ts
274891
+ function blockchainNodeCreateCommand() {
274892
+ return new Command2("blockchain-node").alias("bn").description("Create a blockchain node in the SettleMint platform").addCommand(blockchainNodeBesuCreateCommand());
274893
+ }
274894
+
274781
274895
  // src/commands/platform/insights/blockscout/create.ts
274782
274896
  function blockscoutInsightsCreateCommand() {
274783
274897
  return getCreateCommand({
@@ -274893,16 +275007,14 @@ function graphMiddlewareCreateCommand() {
274893
275007
  type: "middleware",
274894
275008
  alias: "gr",
274895
275009
  execute: (cmd2, baseAction) => {
274896
- addClusterServiceArgs(cmd2).option("--application-id <applicationId>", "Application ID").option("--storage-id <storageId>", "Storage ID (IFPS)").option("--blockchain-node-id <blockchainNodeId>", "Blockchain Node ID").action(async (name2, { applicationId, storageId, blockchainNodeId, provider, region, size, type: type4, ...defaultArgs }) => {
275010
+ addClusterServiceArgs(cmd2).option("--application-id <applicationId>", "Application ID").option("--blockchain-node-id <blockchainNodeId>", "Blockchain Node ID").action(async (name2, { applicationId, blockchainNodeId, provider, region, size, type: type4, ...defaultArgs }) => {
274897
275011
  return baseAction(defaultArgs, async (settlemint, env2) => {
274898
275012
  const application = applicationId ?? env2.SETTLEMINT_APPLICATION;
274899
275013
  const blockchainNode = blockchainNodeId ?? env2.SETTLEMINT_BLOCKCHAIN_NODE;
274900
- const storage = storageId ?? env2.SETTLEMINT_IPFS;
274901
275014
  const result = await settlemint.middleware.create({
274902
275015
  name: name2,
274903
275016
  applicationId: application,
274904
275017
  interface: "HA_GRAPH",
274905
- storageId: storage,
274906
275018
  blockchainNodeId: blockchainNode,
274907
275019
  provider,
274908
275020
  region,
@@ -275166,14 +275278,59 @@ function ipfsStorageCreateCommand() {
275166
275278
  });
275167
275279
  }
275168
275280
 
275281
+ // src/commands/platform/storage/minio/create.ts
275282
+ function minioStorageCreateCommand() {
275283
+ return getCreateCommand({
275284
+ name: "minio",
275285
+ type: "storage",
275286
+ alias: "m",
275287
+ execute: (cmd2, baseAction) => {
275288
+ addClusterServiceArgs(cmd2).option("--application-id <applicationId>", "Application ID").action(async (name2, { applicationId, provider, region, size, type: type4, ...defaultArgs }) => {
275289
+ return baseAction(defaultArgs, async (settlemint, env2) => {
275290
+ const application = applicationId ?? env2.SETTLEMINT_APPLICATION;
275291
+ const result = await settlemint.storage.create({
275292
+ name: name2,
275293
+ applicationId: application,
275294
+ storageProtocol: "MINIO",
275295
+ provider,
275296
+ region,
275297
+ size,
275298
+ type: type4
275299
+ });
275300
+ return {
275301
+ result,
275302
+ mapDefaultEnv: () => {
275303
+ return {
275304
+ SETTLEMINT_APPLICATION: application,
275305
+ SETTLEMINT_MINIO: result.id,
275306
+ ...getMinioEndpoints(result)
275307
+ };
275308
+ }
275309
+ };
275310
+ });
275311
+ });
275312
+ },
275313
+ examples: [
275314
+ {
275315
+ description: "Create a MinIO storage and save as default",
275316
+ command: "platform create storage minio my-storage --accept-defaults -d"
275317
+ },
275318
+ {
275319
+ description: "Create a MinIO storage in a different application",
275320
+ command: "platform create storage minio my-storage --application-id app-123"
275321
+ }
275322
+ ]
275323
+ });
275324
+ }
275325
+
275169
275326
  // src/commands/platform/storage/create.ts
275170
275327
  function storageCreateCommand() {
275171
- return new Command2("storage").alias("st").description("Create a storage service in the SettleMint platform").addCommand(ipfsStorageCreateCommand());
275328
+ return new Command2("storage").alias("st").description("Create a storage service in the SettleMint platform").addCommand(ipfsStorageCreateCommand()).addCommand(minioStorageCreateCommand());
275172
275329
  }
275173
275330
 
275174
275331
  // src/commands/platform/create.ts
275175
275332
  function createCommand3() {
275176
- return new Command2("create").alias("c").description("Create a resource in the SettleMint platform").addCommand(workspaceCreateCommand()).addCommand(applicationCreateCommand()).addCommand(blockchainNetworkCreateCommand()).addCommand(privateKeyCreateCommand()).addCommand(middlewareCreateCommand()).addCommand(storageCreateCommand()).addCommand(integrationToolCreateCommand()).addCommand(insightsCreateCommand()).addCommand(applicationAccessTokenCreateCommand());
275333
+ return new Command2("create").alias("c").description("Create a resource in the SettleMint platform").addCommand(workspaceCreateCommand()).addCommand(applicationCreateCommand()).addCommand(blockchainNetworkCreateCommand()).addCommand(blockchainNodeCreateCommand()).addCommand(privateKeyCreateCommand()).addCommand(middlewareCreateCommand()).addCommand(storageCreateCommand()).addCommand(integrationToolCreateCommand()).addCommand(insightsCreateCommand()).addCommand(applicationAccessTokenCreateCommand());
275177
275334
  }
275178
275335
 
275179
275336
  // src/commands/platform/prompts/delete-confirmation.prompt.ts
@@ -275483,9 +275640,22 @@ function ipfsRestartCommand() {
275483
275640
  });
275484
275641
  }
275485
275642
 
275643
+ // src/commands/platform/storage/minio/restart.ts
275644
+ function minioRestartCommand() {
275645
+ return getRestartCommand({
275646
+ name: "minio",
275647
+ type: "storage",
275648
+ alias: "m",
275649
+ envKey: "SETTLEMINT_MINIO",
275650
+ restartFunction: async (settlemint, id) => {
275651
+ return settlemint.storage.restart(id);
275652
+ }
275653
+ });
275654
+ }
275655
+
275486
275656
  // src/commands/platform/storage/restart.ts
275487
275657
  function storageRestartCommand() {
275488
- return new Command2("storage").alias("st").description("Restart a storage service in the SettleMint platform").addCommand(ipfsRestartCommand());
275658
+ return new Command2("storage").alias("st").description("Restart a storage service in the SettleMint platform").addCommand(ipfsRestartCommand()).addCommand(minioRestartCommand());
275489
275659
  }
275490
275660
 
275491
275661
  // src/commands/platform/restart.ts
@@ -275775,62 +275945,62 @@ function createCommand4() {
275775
275945
  });
275776
275946
  }
275777
275947
 
275948
+ // src/utils/passthrough-options.ts
275949
+ function mapPassthroughOptions(options, command) {
275950
+ const optionArgs = Object.entries(options).map(([key2, value4]) => {
275951
+ if (value4 === true) {
275952
+ return `--${key2}`;
275953
+ }
275954
+ return `--${key2}=${value4}`;
275955
+ });
275956
+ return [...optionArgs, ...command.args];
275957
+ }
275958
+
275778
275959
  // src/commands/smart-contract-set/foundry/build.ts
275779
275960
  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"]);
275961
+ 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) => {
275962
+ const forgeOptions = mapPassthroughOptions(passThroughOptions, cmd2);
275963
+ await executeCommand("forge", ["build", ...forgeOptions]);
275784
275964
  });
275785
- return build;
275786
275965
  }
275787
275966
 
275788
275967
  // src/commands/smart-contract-set/foundry/format.ts
275789
275968
  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"]);
275969
+ 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) => {
275970
+ const forgeOptions = mapPassthroughOptions(passThroughOptions, cmd2);
275971
+ await executeCommand("forge", ["fmt", ...forgeOptions]);
275794
275972
  note("Smart contract set formatted successfully!");
275795
275973
  });
275796
- return format3;
275797
275974
  }
275798
275975
 
275799
275976
  // src/commands/smart-contract-set/foundry/network.ts
275800
275977
  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", []);
275978
+ 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) => {
275979
+ const anvilOptions = mapPassthroughOptions(passThroughOptions, cmd2);
275980
+ await executeCommand("anvil", anvilOptions);
275805
275981
  });
275806
- return network;
275807
275982
  }
275808
275983
 
275809
275984
  // src/commands/smart-contract-set/foundry/test.ts
275810
275985
  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"]);
275986
+ 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) => {
275987
+ const forgeOptions = mapPassthroughOptions(passThroughOptions, cmd2);
275988
+ await executeCommand("forge", ["test", ...forgeOptions]);
275815
275989
  });
275816
- return test;
275817
275990
  }
275818
275991
 
275819
275992
  // src/commands/smart-contract-set/hardhat/build.ts
275820
275993
  function hardhatBuildCommand() {
275821
- const build = new Command2("build");
275822
- build.description("Build the smart contracts using Hardhat");
275823
- build.action(async () => {
275994
+ 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) => {
275995
+ const hardhatOptions = mapPassthroughOptions(passThroughOptions, cmd2);
275824
275996
  const { command, args } = await getPackageManagerExecutable();
275825
- await executeCommand(command, [...args, "hardhat", "compile"]);
275997
+ await executeCommand(command, [...args, "hardhat", "compile", ...hardhatOptions]);
275826
275998
  });
275827
- return build;
275828
275999
  }
275829
276000
 
275830
276001
  // src/commands/smart-contract-set/hardhat/deploy/local.ts
275831
276002
  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 }) => {
276003
+ 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
276004
  const { command, args } = await getPackageManagerExecutable();
275835
276005
  await executeCommand(command, [
275836
276006
  ...args,
@@ -275844,7 +276014,6 @@ function hardhatDeployLocalCommand() {
275844
276014
  module ?? "ignition/modules/main.ts"
275845
276015
  ].filter(Boolean));
275846
276016
  });
275847
- return build;
275848
276017
  }
275849
276018
 
275850
276019
  // src/commands/smart-contract-set/prompts/address.prompt.ts
@@ -275881,26 +276050,6 @@ async function addressPrompt({
275881
276050
  return address;
275882
276051
  }
275883
276052
 
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
276053
  // src/utils/hardhat-config.ts
275905
276054
  async function getHardhatConfigData(envConfig) {
275906
276055
  try {
@@ -275930,8 +276079,19 @@ function isHardhatConfig(config4) {
275930
276079
 
275931
276080
  // src/commands/smart-contract-set/hardhat/deploy/remote.ts
275932
276081
  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 }) => {
276082
+ 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");
276083
+ cmd2.action(async ({
276084
+ module,
276085
+ reset: reset2,
276086
+ verify,
276087
+ deploymentId,
276088
+ defaultSender,
276089
+ parameters,
276090
+ strategy,
276091
+ prod,
276092
+ acceptDefaults,
276093
+ blockchainNodeId
276094
+ }) => {
275935
276095
  const autoAccept = !!acceptDefaults || is_in_ci_default;
275936
276096
  const env2 = await loadEnv(false, !!prod);
275937
276097
  const accessToken = env2.SETTLEMINT_ACCESS_TOKEN;
@@ -275943,24 +276103,29 @@ function hardhatDeployRemoteCommand() {
275943
276103
  accessToken,
275944
276104
  instance
275945
276105
  });
276106
+ const nodeId = autoAccept ? env2.SETTLEMINT_BLOCKCHAIN_NODE : blockchainNodeId;
275946
276107
  let node = undefined;
275947
- if (!blockchainNodeId) {
275948
- const blockchainNodes = await settlemint.blockchainNode.list(env2.SETTLEMINT_APPLICATION);
275949
- if (blockchainNodes.length === 0) {
275950
- cancel2("No blockchain nodes found. Please create a blockchain node and try again.");
276108
+ if (!nodeId) {
276109
+ const nodes = await settlemint.blockchainNode.list(env2.SETTLEMINT_APPLICATION);
276110
+ const evmNodes = nodes.filter((node2) => node2.isEvm);
276111
+ if (evmNodes.length === 0) {
276112
+ cancel2("No EVM blockchain nodes found. Please create an EVM blockchain node and try again.");
275951
276113
  }
275952
- const nodesWithPrivateKey = await Promise.all(blockchainNodes.map((node2) => settlemint.blockchainNode.read(node2.id)));
276114
+ const nodesWithPrivateKey = await Promise.all(evmNodes.map((node2) => settlemint.blockchainNode.read(node2.id)));
275953
276115
  const nodesWithActivePrivateKey = nodesWithPrivateKey.filter((node2) => node2.privateKeys && node2.privateKeys.length > 0);
275954
276116
  if (nodesWithActivePrivateKey.length === 0) {
275955
- cancel2("No blockchain nodes with private keys found. Please activate a private key on your blockchain node and try again.");
276117
+ cancel2("No EVM blockchain nodes with private keys found. Please activate a private key on your EVM blockchain node and try again.");
275956
276118
  }
275957
276119
  const blockchainNode = await blockchainNodePrompt(env2, nodesWithActivePrivateKey, autoAccept);
275958
276120
  if (!blockchainNode) {
275959
- cancel2("No Blockchain Node selected. Please select one to continue.");
276121
+ cancel2("No EVM blockchain node selected. Please select one to continue.");
275960
276122
  }
275961
276123
  node = blockchainNode;
275962
276124
  } else {
275963
- node = await settlemint.blockchainNode.read(blockchainNodeId);
276125
+ node = await settlemint.blockchainNode.read(nodeId);
276126
+ if (!node.isEvm) {
276127
+ cancel2("The specified blockchain node is not an EVM blockchain node. Please specify an EVM blockchain node to continue.");
276128
+ }
275964
276129
  }
275965
276130
  const envConfig = await settlemint.foundry.env(node.id);
275966
276131
  const hardhatConfig = await getHardhatConfigData(envConfig);
@@ -275971,7 +276136,6 @@ function hardhatDeployRemoteCommand() {
275971
276136
  if (!address) {
275972
276137
  cancel2("No private key selected. Please select one to continue.");
275973
276138
  }
275974
- const customDeploymentId = deploymentId ?? await deploymentIdPrompt(env2, autoAccept, prod);
275975
276139
  const { command, args } = await getPackageManagerExecutable();
275976
276140
  await executeCommand(command, [
275977
276141
  ...args,
@@ -275980,13 +276144,16 @@ function hardhatDeployRemoteCommand() {
275980
276144
  "deploy",
275981
276145
  ...reset2 ? ["--reset"] : [],
275982
276146
  ...verify ? ["--verify"] : [],
275983
- ...customDeploymentId ? ["--deployment-id", customDeploymentId] : [],
276147
+ ...deploymentId ? ["--deployment-id", deploymentId] : [],
276148
+ ...defaultSender ? ["--default-sender", defaultSender] : [],
276149
+ ...parameters ? ["--parameters", parameters] : [],
276150
+ ...strategy ? ["--strategy", strategy] : [],
275984
276151
  "--network",
275985
276152
  "btp",
275986
276153
  module ?? "ignition/modules/main.ts"
275987
276154
  ].filter(Boolean), { env: envConfig });
275988
276155
  });
275989
- return build;
276156
+ return cmd2;
275990
276157
  }
275991
276158
 
275992
276159
  // src/commands/smart-contract-set/hardhat/deploy.ts
@@ -275999,29 +276166,33 @@ function hardhatDeployCommand() {
275999
276166
 
276000
276167
  // src/commands/smart-contract-set/hardhat/network.ts
276001
276168
  function hardhatNetworkCommand() {
276002
- const network = new Command2("network");
276003
- network.description("Start a development network using Hardhat");
276004
- network.action(async () => {
276169
+ 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) => {
276170
+ const hardhatOptions = mapPassthroughOptions(passThroughOptions, cmd2);
276005
276171
  const { command, args } = await getPackageManagerExecutable();
276006
- await executeCommand(command, [...args, "hardhat", "node"]);
276172
+ await executeCommand(command, [...args, "hardhat", "node", ...hardhatOptions]);
276007
276173
  });
276008
- return network;
276009
276174
  }
276010
276175
 
276011
276176
  // src/commands/smart-contract-set/hardhat/script/local.ts
276012
276177
  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 }) => {
276178
+ 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
276179
  const { command, args } = await getPackageManagerExecutable();
276016
- await executeCommand(command, [...args, "hardhat", "run", script, "--network", "localhost"]);
276180
+ await executeCommand(command, [
276181
+ ...args,
276182
+ "hardhat",
276183
+ "run",
276184
+ script,
276185
+ "--network",
276186
+ "localhost",
276187
+ ...compile ? ["--no-compile"] : []
276188
+ ]);
276017
276189
  });
276018
- return build;
276019
276190
  }
276020
276191
 
276021
276192
  // src/commands/smart-contract-set/hardhat/script/remote.ts
276022
276193
  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 }) => {
276194
+ 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");
276195
+ cmd2.action(async ({ script, prod, blockchainNodeId, acceptDefaults, compile }) => {
276025
276196
  const autoAccept = !!acceptDefaults || is_in_ci_default;
276026
276197
  const env2 = await loadEnv(false, !!prod);
276027
276198
  const accessToken = env2.SETTLEMINT_ACCESS_TOKEN;
@@ -276044,9 +276215,9 @@ function hardhatScriptRemoteCommand() {
276044
276215
  }
276045
276216
  const envConfig = await settlemint.foundry.env(nodeId);
276046
276217
  const { command, args } = await getPackageManagerExecutable();
276047
- await executeCommand(command, [...args, "hardhat", "run", script, "--network", "btp"], { env: envConfig });
276218
+ await executeCommand(command, [...args, "hardhat", "run", script, "--network", "btp", ...compile ? ["--no-compile"] : []], { env: envConfig });
276048
276219
  });
276049
- return build;
276220
+ return cmd2;
276050
276221
  }
276051
276222
 
276052
276223
  // src/commands/smart-contract-set/hardhat/script.ts
@@ -276059,13 +276230,11 @@ function hardhatScriptCommand() {
276059
276230
 
276060
276231
  // src/commands/smart-contract-set/hardhat/test.ts
276061
276232
  function hardhatTestCommand() {
276062
- const test = new Command2("test");
276063
- test.description("Test the smart contracts using Hardhat");
276064
- test.action(async () => {
276233
+ 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) => {
276234
+ const hardhatOptions = mapPassthroughOptions(options, cmd2);
276065
276235
  const { command, args } = await getPackageManagerExecutable();
276066
- await executeCommand(command, [...args, "hardhat", "test"]);
276236
+ await executeCommand(command, [...args, "hardhat", "test", ...hardhatOptions]);
276067
276237
  });
276068
- return test;
276069
276238
  }
276070
276239
 
276071
276240
  // src/commands/smart-contract-set/subgraph/build.ts
@@ -276447,4 +276616,4 @@ sdkcli.parseAsync(process.argv).catch((reason) => {
276447
276616
  cancel2(reason);
276448
276617
  });
276449
276618
 
276450
- //# debugId=55E8F11C12DA3A4F64756E2164756E21
276619
+ //# debugId=0A05B3B8ED7D8AD964756E2164756E21