@settlemint/sdk-cli 0.6.59 → 0.7.0-pre35cba1

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 +162 -92
  2. package/dist/cli.js.map +24 -22
  3. package/package.json +3 -3
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.I478p0f2o6:/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-pre35cba1",
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.I478p0f2o6:/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.I478p0f2o6:/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.I478p0f2o6:/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.I478p0f2o6:/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) : [""];
@@ -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() {
@@ -271288,6 +271298,7 @@ var applicationAccessTokenCreate = (gqlClient, options) => {
271288
271298
  var ApplicationFragment = graphql(`
271289
271299
  fragment Application on Application {
271290
271300
  id
271301
+ uniqueName
271291
271302
  name
271292
271303
  workspace { id }
271293
271304
  }
@@ -271383,6 +271394,7 @@ var BlockchainNetworkFragment = graphql(`
271383
271394
  fragment BlockchainNetwork on BlockchainNetwork {
271384
271395
  __typename
271385
271396
  id
271397
+ uniqueName
271386
271398
  name
271387
271399
  status
271388
271400
  blockchainNodes {
@@ -271525,8 +271537,8 @@ var BlockchainNodeFragment = graphql(`
271525
271537
  fragment BlockchainNode on BlockchainNode {
271526
271538
  __typename
271527
271539
  id
271528
- name
271529
271540
  uniqueName
271541
+ name
271530
271542
  status
271531
271543
  endpoints {
271532
271544
  id
@@ -271635,6 +271647,7 @@ var blockchainNodeRestart = (gqlClient, _options) => async (nodeId) => {
271635
271647
  var CustomDeploymentFragment = graphql(`
271636
271648
  fragment CustomDeployment on CustomDeployment {
271637
271649
  id
271650
+ uniqueName
271638
271651
  name
271639
271652
  status
271640
271653
  endpoints {
@@ -271756,6 +271769,7 @@ var InsightsFragment = graphql(`
271756
271769
  fragment Insights on Insights {
271757
271770
  __typename
271758
271771
  id
271772
+ uniqueName
271759
271773
  name
271760
271774
  status
271761
271775
  insightsCategory
@@ -271852,6 +271866,7 @@ var IntegrationFragment = graphql(`
271852
271866
  fragment Integration on Integration {
271853
271867
  __typename
271854
271868
  id
271869
+ uniqueName
271855
271870
  name
271856
271871
  status
271857
271872
  integrationType
@@ -271944,6 +271959,7 @@ var MiddlewareFragment = graphql(`
271944
271959
  fragment Middleware on Middleware {
271945
271960
  __typename
271946
271961
  id
271962
+ uniqueName
271947
271963
  name
271948
271964
  status
271949
271965
  interface
@@ -272061,8 +272077,8 @@ var PrivateKeyFragment = graphql(`
272061
272077
  fragment PrivateKey on PrivateKey {
272062
272078
  __typename
272063
272079
  id
272064
- name
272065
272080
  uniqueName
272081
+ name
272066
272082
  privateKeyType
272067
272083
  status
272068
272084
  }
@@ -272146,6 +272162,7 @@ var SmartContractSetFragment = graphql(`
272146
272162
  fragment SmartContractSet on SmartContractSet {
272147
272163
  __typename
272148
272164
  id
272165
+ uniqueName
272149
272166
  name
272150
272167
  application {
272151
272168
  id
@@ -272243,6 +272260,7 @@ var StorageFragment = graphql(`
272243
272260
  fragment Storage on Storage {
272244
272261
  __typename
272245
272262
  id
272263
+ uniqueName
272246
272264
  name
272247
272265
  status
272248
272266
  storageProtocol
@@ -272334,6 +272352,7 @@ var storageRestart = (gqlClient, _options) => async (storageId) => {
272334
272352
  var WorkspaceFragment = graphql(`
272335
272353
  fragment Workspace on Workspace {
272336
272354
  id
272355
+ uniqueName
272337
272356
  name
272338
272357
  applications {
272339
272358
  ...Application
@@ -273233,9 +273252,7 @@ function connectCommand() {
273233
273252
  ...getPortalEndpoints(portal),
273234
273253
  SETTLEMINT_HD_PRIVATE_KEY: hdPrivateKey?.uniqueName,
273235
273254
  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,
273255
+ ...getMinioEndpoints(minio),
273239
273256
  SETTLEMINT_IPFS: ipfs?.id,
273240
273257
  ...getIpfsEndpoints(ipfs),
273241
273258
  SETTLEMINT_CUSTOM_DEPLOYMENT: cDeployment?.id,
@@ -273250,7 +273267,7 @@ function connectCommand() {
273250
273267
  var package_default = {
273251
273268
  name: "@settlemint/sdk-cli",
273252
273269
  description: "SettleMint SDK, integrate SettleMint into your application with ease.",
273253
- version: "0.6.59",
273270
+ version: "0.7.0-pre35cba1",
273254
273271
  type: "module",
273255
273272
  private: false,
273256
273273
  license: "FSL-1.1-MIT",
@@ -273301,8 +273318,8 @@ var package_default = {
273301
273318
  "@inquirer/input": "4.1.0",
273302
273319
  "@inquirer/password": "4.0.3",
273303
273320
  "@inquirer/select": "4.0.3",
273304
- "@settlemint/sdk-js": "0.6.59",
273305
- "@settlemint/sdk-utils": "0.6.59",
273321
+ "@settlemint/sdk-js": "0.7.0-pre35cba1",
273322
+ "@settlemint/sdk-utils": "0.7.0-pre35cba1",
273306
273323
  "get-tsconfig": "4.8.1",
273307
273324
  giget: "1.2.3"
273308
273325
  },
@@ -274162,9 +274179,9 @@ function createExamples(examples) {
274162
274179
  return `
274163
274180
  Examples:
274164
274181
 
274165
- ${examples.map(({ description, command }) => {
274182
+ ${examples.map(({ description, command, commandPrefix }) => {
274166
274183
  return ` # ${description}
274167
- $ bunx @settlemint/sdk-cli@latest ${command}`;
274184
+ $ ${commandPrefix ?? ""}bunx @settlemint/sdk-cli@latest ${command}`;
274168
274185
  }).join(`
274169
274186
 
274170
274187
  `)}`;
@@ -274206,11 +274223,12 @@ function loginCommand() {
274206
274223
  ${createExamples([
274207
274224
  {
274208
274225
  description: "Login to your SettleMint account",
274209
- command: "settlemint login"
274226
+ command: "login"
274210
274227
  },
274211
274228
  {
274212
274229
  description: "Login to your SettleMint account using a token from STDIN",
274213
- command: "cat ~/my_token.txt | settlemint login --token-stdin --accept-defaults"
274230
+ command: "login --token-stdin --accept-defaults",
274231
+ commandPrefix: "cat ~/my_token.txt | "
274214
274232
  }
274215
274233
  ])}`).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
274234
  intro("Login to your SettleMint account");
@@ -275166,9 +275184,54 @@ function ipfsStorageCreateCommand() {
275166
275184
  });
275167
275185
  }
275168
275186
 
275187
+ // src/commands/platform/storage/minio/create.ts
275188
+ function minioStorageCreateCommand() {
275189
+ return getCreateCommand({
275190
+ name: "minio",
275191
+ type: "storage",
275192
+ alias: "m",
275193
+ execute: (cmd2, baseAction) => {
275194
+ addClusterServiceArgs(cmd2).option("--application-id <applicationId>", "Application ID").action(async (name2, { applicationId, provider, region, size, type: type4, ...defaultArgs }) => {
275195
+ return baseAction(defaultArgs, async (settlemint, env2) => {
275196
+ const application = applicationId ?? env2.SETTLEMINT_APPLICATION;
275197
+ const result = await settlemint.storage.create({
275198
+ name: name2,
275199
+ applicationId: application,
275200
+ storageProtocol: "MINIO",
275201
+ provider,
275202
+ region,
275203
+ size,
275204
+ type: type4
275205
+ });
275206
+ return {
275207
+ result,
275208
+ mapDefaultEnv: () => {
275209
+ return {
275210
+ SETTLEMINT_APPLICATION: application,
275211
+ SETTLEMINT_MINIO: result.id,
275212
+ ...getMinioEndpoints(result)
275213
+ };
275214
+ }
275215
+ };
275216
+ });
275217
+ });
275218
+ },
275219
+ examples: [
275220
+ {
275221
+ description: "Create a MinIO storage and save as default",
275222
+ command: "platform create storage minio my-storage --accept-defaults -d"
275223
+ },
275224
+ {
275225
+ description: "Create a MinIO storage in a different application",
275226
+ command: "platform create storage minio my-storage --application-id app-123"
275227
+ }
275228
+ ]
275229
+ });
275230
+ }
275231
+
275169
275232
  // src/commands/platform/storage/create.ts
275170
275233
  function storageCreateCommand() {
275171
- return new Command2("storage").alias("st").description("Create a storage service in the SettleMint platform").addCommand(ipfsStorageCreateCommand());
275234
+ return new Command2("storage").alias("st").description("Create a storage service in the SettleMint platform").addCommand(ipfsStorageCreateCommand()).addCommand(minioStorageCreateCommand());
275172
275235
  }
275173
275236
 
275174
275237
  // src/commands/platform/create.ts
@@ -275483,9 +275546,22 @@ function ipfsRestartCommand() {
275483
275546
  });
275484
275547
  }
275485
275548
 
275549
+ // src/commands/platform/storage/minio/restart.ts
275550
+ function minioRestartCommand() {
275551
+ return getRestartCommand({
275552
+ name: "minio",
275553
+ type: "storage",
275554
+ alias: "m",
275555
+ envKey: "SETTLEMINT_MINIO",
275556
+ restartFunction: async (settlemint, id) => {
275557
+ return settlemint.storage.restart(id);
275558
+ }
275559
+ });
275560
+ }
275561
+
275486
275562
  // src/commands/platform/storage/restart.ts
275487
275563
  function storageRestartCommand() {
275488
- return new Command2("storage").alias("st").description("Restart a storage service in the SettleMint platform").addCommand(ipfsRestartCommand());
275564
+ return new Command2("storage").alias("st").description("Restart a storage service in the SettleMint platform").addCommand(ipfsRestartCommand()).addCommand(minioRestartCommand());
275489
275565
  }
275490
275566
 
275491
275567
  // src/commands/platform/restart.ts
@@ -275775,62 +275851,62 @@ function createCommand4() {
275775
275851
  });
275776
275852
  }
275777
275853
 
275854
+ // src/utils/passthrough-options.ts
275855
+ function mapPassthroughOptions(options, command) {
275856
+ const optionArgs = Object.entries(options).map(([key2, value4]) => {
275857
+ if (value4 === true) {
275858
+ return `--${key2}`;
275859
+ }
275860
+ return `--${key2}=${value4}`;
275861
+ });
275862
+ return [...optionArgs, ...command.args];
275863
+ }
275864
+
275778
275865
  // src/commands/smart-contract-set/foundry/build.ts
275779
275866
  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"]);
275867
+ 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) => {
275868
+ const forgeOptions = mapPassthroughOptions(passThroughOptions, cmd2);
275869
+ await executeCommand("forge", ["build", ...forgeOptions]);
275784
275870
  });
275785
- return build;
275786
275871
  }
275787
275872
 
275788
275873
  // src/commands/smart-contract-set/foundry/format.ts
275789
275874
  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"]);
275875
+ 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) => {
275876
+ const forgeOptions = mapPassthroughOptions(passThroughOptions, cmd2);
275877
+ await executeCommand("forge", ["fmt", ...forgeOptions]);
275794
275878
  note("Smart contract set formatted successfully!");
275795
275879
  });
275796
- return format3;
275797
275880
  }
275798
275881
 
275799
275882
  // src/commands/smart-contract-set/foundry/network.ts
275800
275883
  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", []);
275884
+ 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) => {
275885
+ const anvilOptions = mapPassthroughOptions(passThroughOptions, cmd2);
275886
+ await executeCommand("anvil", anvilOptions);
275805
275887
  });
275806
- return network;
275807
275888
  }
275808
275889
 
275809
275890
  // src/commands/smart-contract-set/foundry/test.ts
275810
275891
  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"]);
275892
+ 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) => {
275893
+ const forgeOptions = mapPassthroughOptions(passThroughOptions, cmd2);
275894
+ await executeCommand("forge", ["test", ...forgeOptions]);
275815
275895
  });
275816
- return test;
275817
275896
  }
275818
275897
 
275819
275898
  // src/commands/smart-contract-set/hardhat/build.ts
275820
275899
  function hardhatBuildCommand() {
275821
- const build = new Command2("build");
275822
- build.description("Build the smart contracts using Hardhat");
275823
- build.action(async () => {
275900
+ 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) => {
275901
+ const hardhatOptions = mapPassthroughOptions(passThroughOptions, cmd2);
275824
275902
  const { command, args } = await getPackageManagerExecutable();
275825
- await executeCommand(command, [...args, "hardhat", "compile"]);
275903
+ await executeCommand(command, [...args, "hardhat", "compile", ...hardhatOptions]);
275826
275904
  });
275827
- return build;
275828
275905
  }
275829
275906
 
275830
275907
  // src/commands/smart-contract-set/hardhat/deploy/local.ts
275831
275908
  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 }) => {
275909
+ 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
275910
  const { command, args } = await getPackageManagerExecutable();
275835
275911
  await executeCommand(command, [
275836
275912
  ...args,
@@ -275844,7 +275920,6 @@ function hardhatDeployLocalCommand() {
275844
275920
  module ?? "ignition/modules/main.ts"
275845
275921
  ].filter(Boolean));
275846
275922
  });
275847
- return build;
275848
275923
  }
275849
275924
 
275850
275925
  // src/commands/smart-contract-set/prompts/address.prompt.ts
@@ -275881,26 +275956,6 @@ async function addressPrompt({
275881
275956
  return address;
275882
275957
  }
275883
275958
 
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
275959
  // src/utils/hardhat-config.ts
275905
275960
  async function getHardhatConfigData(envConfig) {
275906
275961
  try {
@@ -275930,8 +275985,19 @@ function isHardhatConfig(config4) {
275930
275985
 
275931
275986
  // src/commands/smart-contract-set/hardhat/deploy/remote.ts
275932
275987
  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 }) => {
275988
+ 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");
275989
+ cmd2.action(async ({
275990
+ module,
275991
+ reset: reset2,
275992
+ verify,
275993
+ deploymentId,
275994
+ defaultSender,
275995
+ parameters,
275996
+ strategy,
275997
+ prod,
275998
+ acceptDefaults,
275999
+ blockchainNodeId
276000
+ }) => {
275935
276001
  const autoAccept = !!acceptDefaults || is_in_ci_default;
275936
276002
  const env2 = await loadEnv(false, !!prod);
275937
276003
  const accessToken = env2.SETTLEMINT_ACCESS_TOKEN;
@@ -275971,7 +276037,6 @@ function hardhatDeployRemoteCommand() {
275971
276037
  if (!address) {
275972
276038
  cancel2("No private key selected. Please select one to continue.");
275973
276039
  }
275974
- const customDeploymentId = deploymentId ?? await deploymentIdPrompt(env2, autoAccept, prod);
275975
276040
  const { command, args } = await getPackageManagerExecutable();
275976
276041
  await executeCommand(command, [
275977
276042
  ...args,
@@ -275980,13 +276045,16 @@ function hardhatDeployRemoteCommand() {
275980
276045
  "deploy",
275981
276046
  ...reset2 ? ["--reset"] : [],
275982
276047
  ...verify ? ["--verify"] : [],
275983
- ...customDeploymentId ? ["--deployment-id", customDeploymentId] : [],
276048
+ ...deploymentId ? ["--deployment-id", deploymentId] : [],
276049
+ ...defaultSender ? ["--default-sender", defaultSender] : [],
276050
+ ...parameters ? ["--parameters", parameters] : [],
276051
+ ...strategy ? ["--strategy", strategy] : [],
275984
276052
  "--network",
275985
276053
  "btp",
275986
276054
  module ?? "ignition/modules/main.ts"
275987
276055
  ].filter(Boolean), { env: envConfig });
275988
276056
  });
275989
- return build;
276057
+ return cmd2;
275990
276058
  }
275991
276059
 
275992
276060
  // src/commands/smart-contract-set/hardhat/deploy.ts
@@ -275999,29 +276067,33 @@ function hardhatDeployCommand() {
275999
276067
 
276000
276068
  // src/commands/smart-contract-set/hardhat/network.ts
276001
276069
  function hardhatNetworkCommand() {
276002
- const network = new Command2("network");
276003
- network.description("Start a development network using Hardhat");
276004
- network.action(async () => {
276070
+ 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) => {
276071
+ const hardhatOptions = mapPassthroughOptions(passThroughOptions, cmd2);
276005
276072
  const { command, args } = await getPackageManagerExecutable();
276006
- await executeCommand(command, [...args, "hardhat", "node"]);
276073
+ await executeCommand(command, [...args, "hardhat", "node", ...hardhatOptions]);
276007
276074
  });
276008
- return network;
276009
276075
  }
276010
276076
 
276011
276077
  // src/commands/smart-contract-set/hardhat/script/local.ts
276012
276078
  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 }) => {
276079
+ 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
276080
  const { command, args } = await getPackageManagerExecutable();
276016
- await executeCommand(command, [...args, "hardhat", "run", script, "--network", "localhost"]);
276081
+ await executeCommand(command, [
276082
+ ...args,
276083
+ "hardhat",
276084
+ "run",
276085
+ script,
276086
+ "--network",
276087
+ "localhost",
276088
+ ...compile ? ["--no-compile"] : []
276089
+ ]);
276017
276090
  });
276018
- return build;
276019
276091
  }
276020
276092
 
276021
276093
  // src/commands/smart-contract-set/hardhat/script/remote.ts
276022
276094
  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 }) => {
276095
+ 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");
276096
+ cmd2.action(async ({ script, prod, blockchainNodeId, acceptDefaults, compile }) => {
276025
276097
  const autoAccept = !!acceptDefaults || is_in_ci_default;
276026
276098
  const env2 = await loadEnv(false, !!prod);
276027
276099
  const accessToken = env2.SETTLEMINT_ACCESS_TOKEN;
@@ -276044,9 +276116,9 @@ function hardhatScriptRemoteCommand() {
276044
276116
  }
276045
276117
  const envConfig = await settlemint.foundry.env(nodeId);
276046
276118
  const { command, args } = await getPackageManagerExecutable();
276047
- await executeCommand(command, [...args, "hardhat", "run", script, "--network", "btp"], { env: envConfig });
276119
+ await executeCommand(command, [...args, "hardhat", "run", script, "--network", "btp", ...compile ? ["--no-compile"] : []], { env: envConfig });
276048
276120
  });
276049
- return build;
276121
+ return cmd2;
276050
276122
  }
276051
276123
 
276052
276124
  // src/commands/smart-contract-set/hardhat/script.ts
@@ -276059,13 +276131,11 @@ function hardhatScriptCommand() {
276059
276131
 
276060
276132
  // src/commands/smart-contract-set/hardhat/test.ts
276061
276133
  function hardhatTestCommand() {
276062
- const test = new Command2("test");
276063
- test.description("Test the smart contracts using Hardhat");
276064
- test.action(async () => {
276134
+ 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) => {
276135
+ const hardhatOptions = mapPassthroughOptions(options, cmd2);
276065
276136
  const { command, args } = await getPackageManagerExecutable();
276066
- await executeCommand(command, [...args, "hardhat", "test"]);
276137
+ await executeCommand(command, [...args, "hardhat", "test", ...hardhatOptions]);
276067
276138
  });
276068
- return test;
276069
276139
  }
276070
276140
 
276071
276141
  // src/commands/smart-contract-set/subgraph/build.ts
@@ -276447,4 +276517,4 @@ sdkcli.parseAsync(process.argv).catch((reason) => {
276447
276517
  cancel2(reason);
276448
276518
  });
276449
276519
 
276450
- //# debugId=55E8F11C12DA3A4F64756E2164756E21
276520
+ //# debugId=C3B692550BA2DD6D64756E2164756E21