@settlemint/sdk-cli 0.8.0-pr75749b2e → 0.8.0-pr8af944df

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -197427,7 +197427,7 @@ ${Bt.cyan(Yt)}
197427
197427
  code: "ENOENT"
197428
197428
  }), getPathInfo = (e9, t7) => {
197429
197429
  var r6 = t7.colon || or;
197430
- var i6 = e9.match(/\//) || nr && e9.match(/\\/) ? [""] : [...nr ? [process.cwd()] : [], ...(t7.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.5MW4QAuq9u:/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.G7MxrNW5VN:/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.8.0-pr75749b2e",
200567
+ binaryVersion: "0.8.0-pr8af944df",
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.5MW4QAuq9u:/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.G7MxrNW5VN:/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.5MW4QAuq9u:/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.G7MxrNW5VN:/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.5MW4QAuq9u:/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.G7MxrNW5VN:/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.5MW4QAuq9u:/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.G7MxrNW5VN:/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) : [""];
@@ -249846,17 +249846,17 @@ var require_visit = __commonJS((exports) => {
249846
249846
  visit2.BREAK = BREAK;
249847
249847
  visit2.SKIP = SKIP;
249848
249848
  visit2.REMOVE = REMOVE;
249849
- function visit_(key2, node, visitor, path8) {
249850
- const ctrl = callVisitor(key2, node, visitor, path8);
249849
+ function visit_(key2, node, visitor, path9) {
249850
+ const ctrl = callVisitor(key2, node, visitor, path9);
249851
249851
  if (identity3.isNode(ctrl) || identity3.isPair(ctrl)) {
249852
- replaceNode(key2, path8, ctrl);
249853
- return visit_(key2, ctrl, visitor, path8);
249852
+ replaceNode(key2, path9, ctrl);
249853
+ return visit_(key2, ctrl, visitor, path9);
249854
249854
  }
249855
249855
  if (typeof ctrl !== "symbol") {
249856
249856
  if (identity3.isCollection(node)) {
249857
- path8 = Object.freeze(path8.concat(node));
249857
+ path9 = Object.freeze(path9.concat(node));
249858
249858
  for (let i6 = 0;i6 < node.items.length; ++i6) {
249859
- const ci = visit_(i6, node.items[i6], visitor, path8);
249859
+ const ci = visit_(i6, node.items[i6], visitor, path9);
249860
249860
  if (typeof ci === "number")
249861
249861
  i6 = ci - 1;
249862
249862
  else if (ci === BREAK)
@@ -249867,13 +249867,13 @@ var require_visit = __commonJS((exports) => {
249867
249867
  }
249868
249868
  }
249869
249869
  } else if (identity3.isPair(node)) {
249870
- path8 = Object.freeze(path8.concat(node));
249871
- const ck = visit_("key", node.key, visitor, path8);
249870
+ path9 = Object.freeze(path9.concat(node));
249871
+ const ck = visit_("key", node.key, visitor, path9);
249872
249872
  if (ck === BREAK)
249873
249873
  return BREAK;
249874
249874
  else if (ck === REMOVE)
249875
249875
  node.key = null;
249876
- const cv = visit_("value", node.value, visitor, path8);
249876
+ const cv = visit_("value", node.value, visitor, path9);
249877
249877
  if (cv === BREAK)
249878
249878
  return BREAK;
249879
249879
  else if (cv === REMOVE)
@@ -249894,17 +249894,17 @@ var require_visit = __commonJS((exports) => {
249894
249894
  visitAsync.BREAK = BREAK;
249895
249895
  visitAsync.SKIP = SKIP;
249896
249896
  visitAsync.REMOVE = REMOVE;
249897
- async function visitAsync_(key2, node, visitor, path8) {
249898
- const ctrl = await callVisitor(key2, node, visitor, path8);
249897
+ async function visitAsync_(key2, node, visitor, path9) {
249898
+ const ctrl = await callVisitor(key2, node, visitor, path9);
249899
249899
  if (identity3.isNode(ctrl) || identity3.isPair(ctrl)) {
249900
- replaceNode(key2, path8, ctrl);
249901
- return visitAsync_(key2, ctrl, visitor, path8);
249900
+ replaceNode(key2, path9, ctrl);
249901
+ return visitAsync_(key2, ctrl, visitor, path9);
249902
249902
  }
249903
249903
  if (typeof ctrl !== "symbol") {
249904
249904
  if (identity3.isCollection(node)) {
249905
- path8 = Object.freeze(path8.concat(node));
249905
+ path9 = Object.freeze(path9.concat(node));
249906
249906
  for (let i6 = 0;i6 < node.items.length; ++i6) {
249907
- const ci = await visitAsync_(i6, node.items[i6], visitor, path8);
249907
+ const ci = await visitAsync_(i6, node.items[i6], visitor, path9);
249908
249908
  if (typeof ci === "number")
249909
249909
  i6 = ci - 1;
249910
249910
  else if (ci === BREAK)
@@ -249915,13 +249915,13 @@ var require_visit = __commonJS((exports) => {
249915
249915
  }
249916
249916
  }
249917
249917
  } else if (identity3.isPair(node)) {
249918
- path8 = Object.freeze(path8.concat(node));
249919
- const ck = await visitAsync_("key", node.key, visitor, path8);
249918
+ path9 = Object.freeze(path9.concat(node));
249919
+ const ck = await visitAsync_("key", node.key, visitor, path9);
249920
249920
  if (ck === BREAK)
249921
249921
  return BREAK;
249922
249922
  else if (ck === REMOVE)
249923
249923
  node.key = null;
249924
- const cv = await visitAsync_("value", node.value, visitor, path8);
249924
+ const cv = await visitAsync_("value", node.value, visitor, path9);
249925
249925
  if (cv === BREAK)
249926
249926
  return BREAK;
249927
249927
  else if (cv === REMOVE)
@@ -249948,23 +249948,23 @@ var require_visit = __commonJS((exports) => {
249948
249948
  }
249949
249949
  return visitor;
249950
249950
  }
249951
- function callVisitor(key2, node, visitor, path8) {
249951
+ function callVisitor(key2, node, visitor, path9) {
249952
249952
  if (typeof visitor === "function")
249953
- return visitor(key2, node, path8);
249953
+ return visitor(key2, node, path9);
249954
249954
  if (identity3.isMap(node))
249955
- return visitor.Map?.(key2, node, path8);
249955
+ return visitor.Map?.(key2, node, path9);
249956
249956
  if (identity3.isSeq(node))
249957
- return visitor.Seq?.(key2, node, path8);
249957
+ return visitor.Seq?.(key2, node, path9);
249958
249958
  if (identity3.isPair(node))
249959
- return visitor.Pair?.(key2, node, path8);
249959
+ return visitor.Pair?.(key2, node, path9);
249960
249960
  if (identity3.isScalar(node))
249961
- return visitor.Scalar?.(key2, node, path8);
249961
+ return visitor.Scalar?.(key2, node, path9);
249962
249962
  if (identity3.isAlias(node))
249963
- return visitor.Alias?.(key2, node, path8);
249963
+ return visitor.Alias?.(key2, node, path9);
249964
249964
  return;
249965
249965
  }
249966
- function replaceNode(key2, path8, node) {
249967
- const parent = path8[path8.length - 1];
249966
+ function replaceNode(key2, path9, node) {
249967
+ const parent = path9[path9.length - 1];
249968
249968
  if (identity3.isCollection(parent)) {
249969
249969
  parent.items[key2] = node;
249970
249970
  } else if (identity3.isPair(parent)) {
@@ -250511,10 +250511,10 @@ var require_Collection = __commonJS((exports) => {
250511
250511
  var createNode = require_createNode();
250512
250512
  var identity3 = require_identity();
250513
250513
  var Node2 = require_Node();
250514
- function collectionFromPath(schema, path8, value4) {
250514
+ function collectionFromPath(schema, path9, value4) {
250515
250515
  let v7 = value4;
250516
- for (let i6 = path8.length - 1;i6 >= 0; --i6) {
250517
- const k5 = path8[i6];
250516
+ for (let i6 = path9.length - 1;i6 >= 0; --i6) {
250517
+ const k5 = path9[i6];
250518
250518
  if (typeof k5 === "number" && Number.isInteger(k5) && k5 >= 0) {
250519
250519
  const a8 = [];
250520
250520
  a8[k5] = v7;
@@ -250533,7 +250533,7 @@ var require_Collection = __commonJS((exports) => {
250533
250533
  sourceObjects: new Map
250534
250534
  });
250535
250535
  }
250536
- var isEmptyPath = (path8) => path8 == null || typeof path8 === "object" && !!path8[Symbol.iterator]().next().done;
250536
+ var isEmptyPath = (path9) => path9 == null || typeof path9 === "object" && !!path9[Symbol.iterator]().next().done;
250537
250537
 
250538
250538
  class Collection extends Node2.NodeBase {
250539
250539
  constructor(type4, schema) {
@@ -250554,11 +250554,11 @@ var require_Collection = __commonJS((exports) => {
250554
250554
  copy.range = this.range.slice();
250555
250555
  return copy;
250556
250556
  }
250557
- addIn(path8, value4) {
250558
- if (isEmptyPath(path8))
250557
+ addIn(path9, value4) {
250558
+ if (isEmptyPath(path9))
250559
250559
  this.add(value4);
250560
250560
  else {
250561
- const [key2, ...rest] = path8;
250561
+ const [key2, ...rest] = path9;
250562
250562
  const node = this.get(key2, true);
250563
250563
  if (identity3.isCollection(node))
250564
250564
  node.addIn(rest, value4);
@@ -250568,8 +250568,8 @@ var require_Collection = __commonJS((exports) => {
250568
250568
  throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
250569
250569
  }
250570
250570
  }
250571
- deleteIn(path8) {
250572
- const [key2, ...rest] = path8;
250571
+ deleteIn(path9) {
250572
+ const [key2, ...rest] = path9;
250573
250573
  if (rest.length === 0)
250574
250574
  return this.delete(key2);
250575
250575
  const node = this.get(key2, true);
@@ -250578,8 +250578,8 @@ var require_Collection = __commonJS((exports) => {
250578
250578
  else
250579
250579
  throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
250580
250580
  }
250581
- getIn(path8, keepScalar) {
250582
- const [key2, ...rest] = path8;
250581
+ getIn(path9, keepScalar) {
250582
+ const [key2, ...rest] = path9;
250583
250583
  const node = this.get(key2, true);
250584
250584
  if (rest.length === 0)
250585
250585
  return !keepScalar && identity3.isScalar(node) ? node.value : node;
@@ -250594,15 +250594,15 @@ var require_Collection = __commonJS((exports) => {
250594
250594
  return n6 == null || allowScalar && identity3.isScalar(n6) && n6.value == null && !n6.commentBefore && !n6.comment && !n6.tag;
250595
250595
  });
250596
250596
  }
250597
- hasIn(path8) {
250598
- const [key2, ...rest] = path8;
250597
+ hasIn(path9) {
250598
+ const [key2, ...rest] = path9;
250599
250599
  if (rest.length === 0)
250600
250600
  return this.has(key2);
250601
250601
  const node = this.get(key2, true);
250602
250602
  return identity3.isCollection(node) ? node.hasIn(rest) : false;
250603
250603
  }
250604
- setIn(path8, value4) {
250605
- const [key2, ...rest] = path8;
250604
+ setIn(path9, value4) {
250605
+ const [key2, ...rest] = path9;
250606
250606
  if (rest.length === 0) {
250607
250607
  this.set(key2, value4);
250608
250608
  } else {
@@ -252982,9 +252982,9 @@ var require_Document = __commonJS((exports) => {
252982
252982
  if (assertCollection(this.contents))
252983
252983
  this.contents.add(value4);
252984
252984
  }
252985
- addIn(path8, value4) {
252985
+ addIn(path9, value4) {
252986
252986
  if (assertCollection(this.contents))
252987
- this.contents.addIn(path8, value4);
252987
+ this.contents.addIn(path9, value4);
252988
252988
  }
252989
252989
  createAlias(node, name2) {
252990
252990
  if (!node.anchor) {
@@ -253033,30 +253033,30 @@ var require_Document = __commonJS((exports) => {
253033
253033
  delete(key2) {
253034
253034
  return assertCollection(this.contents) ? this.contents.delete(key2) : false;
253035
253035
  }
253036
- deleteIn(path8) {
253037
- if (Collection.isEmptyPath(path8)) {
253036
+ deleteIn(path9) {
253037
+ if (Collection.isEmptyPath(path9)) {
253038
253038
  if (this.contents == null)
253039
253039
  return false;
253040
253040
  this.contents = null;
253041
253041
  return true;
253042
253042
  }
253043
- return assertCollection(this.contents) ? this.contents.deleteIn(path8) : false;
253043
+ return assertCollection(this.contents) ? this.contents.deleteIn(path9) : false;
253044
253044
  }
253045
253045
  get(key2, keepScalar) {
253046
253046
  return identity3.isCollection(this.contents) ? this.contents.get(key2, keepScalar) : undefined;
253047
253047
  }
253048
- getIn(path8, keepScalar) {
253049
- if (Collection.isEmptyPath(path8))
253048
+ getIn(path9, keepScalar) {
253049
+ if (Collection.isEmptyPath(path9))
253050
253050
  return !keepScalar && identity3.isScalar(this.contents) ? this.contents.value : this.contents;
253051
- return identity3.isCollection(this.contents) ? this.contents.getIn(path8, keepScalar) : undefined;
253051
+ return identity3.isCollection(this.contents) ? this.contents.getIn(path9, keepScalar) : undefined;
253052
253052
  }
253053
253053
  has(key2) {
253054
253054
  return identity3.isCollection(this.contents) ? this.contents.has(key2) : false;
253055
253055
  }
253056
- hasIn(path8) {
253057
- if (Collection.isEmptyPath(path8))
253056
+ hasIn(path9) {
253057
+ if (Collection.isEmptyPath(path9))
253058
253058
  return this.contents !== undefined;
253059
- return identity3.isCollection(this.contents) ? this.contents.hasIn(path8) : false;
253059
+ return identity3.isCollection(this.contents) ? this.contents.hasIn(path9) : false;
253060
253060
  }
253061
253061
  set(key2, value4) {
253062
253062
  if (this.contents == null) {
@@ -253065,13 +253065,13 @@ var require_Document = __commonJS((exports) => {
253065
253065
  this.contents.set(key2, value4);
253066
253066
  }
253067
253067
  }
253068
- setIn(path8, value4) {
253069
- if (Collection.isEmptyPath(path8)) {
253068
+ setIn(path9, value4) {
253069
+ if (Collection.isEmptyPath(path9)) {
253070
253070
  this.contents = value4;
253071
253071
  } else if (this.contents == null) {
253072
- this.contents = Collection.collectionFromPath(this.schema, Array.from(path8), value4);
253072
+ this.contents = Collection.collectionFromPath(this.schema, Array.from(path9), value4);
253073
253073
  } else if (assertCollection(this.contents)) {
253074
- this.contents.setIn(path8, value4);
253074
+ this.contents.setIn(path9, value4);
253075
253075
  }
253076
253076
  }
253077
253077
  setSchema(version, options = {}) {
@@ -254962,9 +254962,9 @@ var require_cst_visit = __commonJS((exports) => {
254962
254962
  visit2.BREAK = BREAK;
254963
254963
  visit2.SKIP = SKIP;
254964
254964
  visit2.REMOVE = REMOVE;
254965
- visit2.itemAtPath = (cst, path8) => {
254965
+ visit2.itemAtPath = (cst, path9) => {
254966
254966
  let item = cst;
254967
- for (const [field2, index] of path8) {
254967
+ for (const [field2, index] of path9) {
254968
254968
  const tok = item?.[field2];
254969
254969
  if (tok && "items" in tok) {
254970
254970
  item = tok.items[index];
@@ -254973,23 +254973,23 @@ var require_cst_visit = __commonJS((exports) => {
254973
254973
  }
254974
254974
  return item;
254975
254975
  };
254976
- visit2.parentCollection = (cst, path8) => {
254977
- const parent = visit2.itemAtPath(cst, path8.slice(0, -1));
254978
- const field2 = path8[path8.length - 1][0];
254976
+ visit2.parentCollection = (cst, path9) => {
254977
+ const parent = visit2.itemAtPath(cst, path9.slice(0, -1));
254978
+ const field2 = path9[path9.length - 1][0];
254979
254979
  const coll = parent?.[field2];
254980
254980
  if (coll && "items" in coll)
254981
254981
  return coll;
254982
254982
  throw new Error("Parent collection not found");
254983
254983
  };
254984
- function _visit(path8, item, visitor) {
254985
- let ctrl = visitor(item, path8);
254984
+ function _visit(path9, item, visitor) {
254985
+ let ctrl = visitor(item, path9);
254986
254986
  if (typeof ctrl === "symbol")
254987
254987
  return ctrl;
254988
254988
  for (const field2 of ["key", "value"]) {
254989
254989
  const token = item[field2];
254990
254990
  if (token && "items" in token) {
254991
254991
  for (let i6 = 0;i6 < token.items.length; ++i6) {
254992
- const ci = _visit(Object.freeze(path8.concat([[field2, i6]])), token.items[i6], visitor);
254992
+ const ci = _visit(Object.freeze(path9.concat([[field2, i6]])), token.items[i6], visitor);
254993
254993
  if (typeof ci === "number")
254994
254994
  i6 = ci - 1;
254995
254995
  else if (ci === BREAK)
@@ -255000,10 +255000,10 @@ var require_cst_visit = __commonJS((exports) => {
255000
255000
  }
255001
255001
  }
255002
255002
  if (typeof ctrl === "function" && field2 === "key")
255003
- ctrl = ctrl(item, path8);
255003
+ ctrl = ctrl(item, path9);
255004
255004
  }
255005
255005
  }
255006
- return typeof ctrl === "function" ? ctrl(item, path8) : ctrl;
255006
+ return typeof ctrl === "function" ? ctrl(item, path9) : ctrl;
255007
255007
  }
255008
255008
  exports.visit = visit2;
255009
255009
  });
@@ -273273,7 +273273,7 @@ function connectCommand() {
273273
273273
  var package_default = {
273274
273274
  name: "@settlemint/sdk-cli",
273275
273275
  description: "SettleMint SDK, integrate SettleMint into your application with ease.",
273276
- version: "0.8.0-pr75749b2e",
273276
+ version: "0.8.0-pr8af944df",
273277
273277
  type: "module",
273278
273278
  private: false,
273279
273279
  license: "FSL-1.1-MIT",
@@ -273324,8 +273324,8 @@ var package_default = {
273324
273324
  "@inquirer/input": "4.1.1",
273325
273325
  "@inquirer/password": "4.0.4",
273326
273326
  "@inquirer/select": "4.0.4",
273327
- "@settlemint/sdk-js": "0.8.0-pr75749b2e",
273328
- "@settlemint/sdk-utils": "0.8.0-pr75749b2e",
273327
+ "@settlemint/sdk-js": "0.8.0-pr8af944df",
273328
+ "@settlemint/sdk-utils": "0.8.0-pr8af944df",
273329
273329
  "get-tsconfig": "4.8.1",
273330
273330
  giget: "1.2.3"
273331
273331
  },
@@ -275772,6 +275772,52 @@ function platformCommand() {
275772
275772
  return new Command2("platform").description("Manage SettleMint platform resources").addCommand(createCommand3()).addCommand(updateCommand()).addCommand(deleteCommand()).addCommand(restartCommand());
275773
275773
  }
275774
275774
 
275775
+ // src/commands/smart-contract-set/chaincode/package.ts
275776
+ import { copyFile, mkdir as mkdir7, unlink as unlink2 } from "node:fs/promises";
275777
+ import path8, { dirname as dirname7 } from "node:path";
275778
+ function packageChaincodeCommand() {
275779
+ const cmd2 = new Command2("package").description("Package a chaincode").argument("<name>", "Name of the chaincode").requiredOption("--version <version>", "Version of the chaincode").requiredOption("--path <path>", "Path to the chaincode").requiredOption("--lang <language>", "Language the chaincode is written in");
275780
+ cmd2.action(async function packageAction(name2, options) {
275781
+ note(`Packaging chaincode ${name2}...`);
275782
+ try {
275783
+ const { version, path: ccPath, lang } = options;
275784
+ const ccPackageJsonPath = path8.join(ccPath, "package.json");
275785
+ await ensureCcPackageJsonExists(ccPath);
275786
+ await executeCommand("peer", [
275787
+ "lifecycle",
275788
+ "chaincode",
275789
+ "package",
275790
+ `./${name2}.tar.gz`,
275791
+ "--path",
275792
+ ccPath,
275793
+ "--lang",
275794
+ lang,
275795
+ "--label",
275796
+ `${name2}_${version}`
275797
+ ]);
275798
+ if (await exists2(ccPackageJsonPath)) {
275799
+ await unlink2(ccPackageJsonPath);
275800
+ }
275801
+ outro(`Chaincode ${name2} is packaged successfully`);
275802
+ } catch (error5) {
275803
+ cancel2(`Chaincode ${name2} packaging failed: ${error5 instanceof Error ? error5.message : String(error5)}`);
275804
+ }
275805
+ });
275806
+ return cmd2;
275807
+ }
275808
+ async function ensureCcPackageJsonExists(ccPath) {
275809
+ const rootPackageJsonPath = path8.join(process.cwd(), "package.json");
275810
+ const ccPackageJsonPath = path8.join(ccPath, "package.json");
275811
+ if (await exists2(ccPackageJsonPath)) {
275812
+ return;
275813
+ }
275814
+ const hasRootPackageJson = await exists2(rootPackageJsonPath);
275815
+ if (hasRootPackageJson) {
275816
+ await mkdir7(dirname7(ccPackageJsonPath), { recursive: true });
275817
+ await copyFile(rootPackageJsonPath, ccPackageJsonPath);
275818
+ }
275819
+ }
275820
+
275775
275821
  // src/commands/smart-contract-set/create.ts
275776
275822
  import { rmdir } from "node:fs/promises";
275777
275823
  import { join as join7 } from "node:path";
@@ -276308,7 +276354,7 @@ function hardhatTestCommand() {
276308
276354
  }
276309
276355
 
276310
276356
  // src/commands/smart-contract-set/subgraph/build.ts
276311
- import { dirname as dirname7 } from "node:path";
276357
+ import { dirname as dirname8 } from "node:path";
276312
276358
 
276313
276359
  // src/commands/smart-contract-set/subgraph/utils/setup.ts
276314
276360
  import { rm as rm4 } from "node:fs/promises";
@@ -276376,22 +276422,22 @@ var $visitAsync = visit2.visitAsync;
276376
276422
 
276377
276423
  // src/commands/smart-contract-set/subgraph/utils/subgraph-config.ts
276378
276424
  var CONFIG_FILE_PATH = "./subgraph/subgraph.config.json";
276379
- var isGenerated = (path8 = process.cwd()) => exists2(join8(path8, CONFIG_FILE_PATH));
276380
- var getSubgraphYamlFile = async (path8 = process.cwd()) => {
276381
- const generated = await isGenerated(path8);
276382
- if (generated && await exists2(join8(path8, "generated/scs.subgraph.yaml"))) {
276383
- return join8(path8, "generated/scs.subgraph.yaml");
276425
+ var isGenerated = (path9 = process.cwd()) => exists2(join8(path9, CONFIG_FILE_PATH));
276426
+ var getSubgraphYamlFile = async (path9 = process.cwd()) => {
276427
+ const generated = await isGenerated(path9);
276428
+ if (generated && await exists2(join8(path9, "generated/scs.subgraph.yaml"))) {
276429
+ return join8(path9, "generated/scs.subgraph.yaml");
276384
276430
  }
276385
- if (await exists2(join8(path8, "subgraph/subgraph.yaml"))) {
276386
- return join8(path8, "subgraph/subgraph.yaml");
276431
+ if (await exists2(join8(path9, "subgraph/subgraph.yaml"))) {
276432
+ return join8(path9, "subgraph/subgraph.yaml");
276387
276433
  }
276388
- if (await exists2(join8(path8, "subgraph.yaml"))) {
276389
- return join8(path8, "subgraph.yaml");
276434
+ if (await exists2(join8(path9, "subgraph.yaml"))) {
276435
+ return join8(path9, "subgraph.yaml");
276390
276436
  }
276391
276437
  throw new Error("Subgraph configuration file not found");
276392
276438
  };
276393
- var getSubgraphYamlConfig = async (path8 = process.cwd()) => {
276394
- const subgraphYamlFile = await getSubgraphYamlFile(path8);
276439
+ var getSubgraphYamlConfig = async (path9 = process.cwd()) => {
276440
+ const subgraphYamlFile = await getSubgraphYamlFile(path9);
276395
276441
  const rawYamlConfig = await readFile7(subgraphYamlFile);
276396
276442
  return $parse(rawYamlConfig.toString());
276397
276443
  };
@@ -276399,9 +276445,9 @@ var updateSubgraphYamlConfig = async (config4, cwd2 = process.cwd()) => {
276399
276445
  const subgraphYamlFile = await getSubgraphYamlFile(cwd2);
276400
276446
  await writeFile8(subgraphYamlFile, $stringify(config4));
276401
276447
  };
276402
- var getSubgraphConfig = async (path8 = process.cwd()) => {
276448
+ var getSubgraphConfig = async (path9 = process.cwd()) => {
276403
276449
  try {
276404
- const configContents = await readFile7(join8(path8, CONFIG_FILE_PATH));
276450
+ const configContents = await readFile7(join8(path9, CONFIG_FILE_PATH));
276405
276451
  const currentConfig = tryParseJson(configContents.toString());
276406
276452
  return currentConfig;
276407
276453
  } catch (err) {
@@ -276526,14 +276572,14 @@ function subgraphBuildCommand() {
276526
276572
  });
276527
276573
  const { command, args } = await getPackageManagerExecutable();
276528
276574
  const subgraphYamlFile = await getSubgraphYamlFile();
276529
- const cwd2 = dirname7(subgraphYamlFile);
276575
+ const cwd2 = dirname8(subgraphYamlFile);
276530
276576
  await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile], { cwd: cwd2 });
276531
276577
  await executeCommand(command, [...args, "graph", "build", subgraphYamlFile], { cwd: cwd2 });
276532
276578
  });
276533
276579
  }
276534
276580
 
276535
276581
  // src/commands/smart-contract-set/subgraph/codegen.ts
276536
- import { dirname as dirname8 } from "node:path";
276582
+ import { dirname as dirname9 } from "node:path";
276537
276583
  function subgraphCodegenCommand() {
276538
276584
  return new Command2("codegen").option("-a, --accept-defaults", "Accept the default and previously set values").option("--prod", "Connect to your production environment").description("Codegen the subgraph types").action(async ({ acceptDefaults, prod }) => {
276539
276585
  const autoAccept = !!acceptDefaults || is_in_ci_default;
@@ -276554,13 +276600,13 @@ function subgraphCodegenCommand() {
276554
276600
  const { command, args } = await getPackageManagerExecutable();
276555
276601
  const subgraphYamlFile = await getSubgraphYamlFile();
276556
276602
  await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile], {
276557
- cwd: dirname8(subgraphYamlFile)
276603
+ cwd: dirname9(subgraphYamlFile)
276558
276604
  });
276559
276605
  });
276560
276606
  }
276561
276607
 
276562
276608
  // src/commands/smart-contract-set/subgraph/deploy.ts
276563
- import { dirname as dirname9 } from "node:path";
276609
+ import { dirname as dirname10 } from "node:path";
276564
276610
 
276565
276611
  // src/commands/smart-contract-set/prompts/subgraph-name.prompt.ts
276566
276612
  async function subgraphNamePrompt2(defaultName, env2, accept, prod) {
@@ -276611,7 +276657,7 @@ function subgraphDeployCommand() {
276611
276657
  await updateSpecVersion(theGraphMiddleware.specVersion);
276612
276658
  const { command, args } = await getPackageManagerExecutable();
276613
276659
  await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile], {
276614
- cwd: dirname9(subgraphYamlFile)
276660
+ cwd: dirname10(subgraphYamlFile)
276615
276661
  });
276616
276662
  const generated = await isGenerated();
276617
276663
  if (generated) {
@@ -276674,7 +276720,9 @@ function smartContractSetCommand() {
276674
276720
  subgraph.addCommand(subgraphBuildCommand());
276675
276721
  subgraph.addCommand(subgraphCodegenCommand());
276676
276722
  subgraph.addCommand(subgraphDeployCommand());
276677
- return new Command2("smart-contract-set").alias("scs").description("Manage smart contract sets").addCommand(createCommand4()).addCommand(foundry).addCommand(hardhat).addCommand(subgraph);
276723
+ const chaincode = new Command2("chaincode").alias("cc");
276724
+ chaincode.addCommand(packageChaincodeCommand());
276725
+ return new Command2("smart-contract-set").alias("scs").description("Manage smart contract sets").addCommand(createCommand4()).addCommand(foundry).addCommand(hardhat).addCommand(subgraph).addCommand(chaincode);
276678
276726
  }
276679
276727
 
276680
276728
  // src/cli.ts
@@ -276692,4 +276740,4 @@ sdkcli.parseAsync(process.argv).catch((reason) => {
276692
276740
  cancel2(reason);
276693
276741
  });
276694
276742
 
276695
- //# debugId=01BFAC97B13C573C64756E2164756E21
276743
+ //# debugId=D42AEA0EE2646C7C64756E2164756E21