@settlemint/sdk-cli 2.3.5 → 2.3.6

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/README.md CHANGED
@@ -249,7 +249,7 @@ settlemint scs subgraph deploy --accept-defaults <subgraph-name>
249
249
 
250
250
  ## API Reference
251
251
 
252
- See the [documentation](https://github.com/settlemint/sdk/tree/v2.3.5/sdk/cli/docs/settlemint.md) for available commands.
252
+ See the [documentation](https://github.com/settlemint/sdk/tree/v2.3.6/sdk/cli/docs/settlemint.md) for available commands.
253
253
 
254
254
  ## Contributing
255
255
 
package/dist/cli.js CHANGED
@@ -231606,7 +231606,7 @@ function size(value4) {
231606
231606
  var init_size = () => {};
231607
231607
 
231608
231608
  // ../../node_modules/viem/_esm/errors/version.js
231609
- var version5 = "2.30.1";
231609
+ var version5 = "2.30.6";
231610
231610
 
231611
231611
  // ../../node_modules/viem/_esm/errors/base.js
231612
231612
  function walk(err, fn) {
@@ -238927,7 +238927,7 @@ var init_ccip2 = __esm(() => {
238927
238927
 
238928
238928
  // ../../node_modules/viem/_esm/actions/public/call.js
238929
238929
  async function call(client, args) {
238930
- const { account: account_ = client.account, batch = Boolean(client.batch?.multicall), blockNumber, blockTag = "latest", accessList, blobs, blockOverrides, code: code2, data: data_, factory, factoryData, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value: value4, stateOverride, ...rest } = args;
238930
+ const { account: account_ = client.account, authorizationList, batch = Boolean(client.batch?.multicall), blockNumber, blockTag = "latest", accessList, blobs, blockOverrides, code: code2, data: data_, factory, factoryData, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value: value4, stateOverride, ...rest } = args;
238931
238931
  const account = account_ ? parseAccount(account_) : undefined;
238932
238932
  if (code2 && (factory || factoryData))
238933
238933
  throw new BaseError2("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
@@ -238963,6 +238963,7 @@ async function call(client, args) {
238963
238963
  ...extract2(rest, { format: chainFormat }),
238964
238964
  from: account?.address,
238965
238965
  accessList,
238966
+ authorizationList,
238966
238967
  blobs,
238967
238968
  data,
238968
238969
  gas,
@@ -246160,7 +246161,7 @@ var isInteractive = (stream) => Boolean(stream.isTTY && process2.env.TERM !== "d
246160
246161
  var infoSymbol = exports_base.blue(isUnicodeSupported ? "ℹ" : "i");
246161
246162
  var successSymbol = exports_base.green(isUnicodeSupported ? "✔" : "√");
246162
246163
  var warningSymbol = exports_base.yellow(isUnicodeSupported ? "⚠" : "‼");
246163
- var errorSymbol = exports_base.red(isUnicodeSupported ? "✖️" : "×");
246164
+ var errorSymbol = exports_base.red(isUnicodeSupported ? "" : "×");
246164
246165
  var defaultSpinner = {
246165
246166
  frames: isUnicodeSupported ? [
246166
246167
  "⠋",
@@ -246194,6 +246195,7 @@ class YoctoSpinner {
246194
246195
  #exitHandlerBound;
246195
246196
  #isInteractive;
246196
246197
  #lastSpinnerFrameTime = 0;
246198
+ #isSpinning = false;
246197
246199
  constructor(options = {}) {
246198
246200
  const spinner = options.spinner ?? defaultSpinner;
246199
246201
  this.#frames = spinner.frames;
@@ -246211,20 +246213,26 @@ class YoctoSpinner {
246211
246213
  if (this.isSpinning) {
246212
246214
  return this;
246213
246215
  }
246216
+ this.#isSpinning = true;
246214
246217
  this.#hideCursor();
246215
246218
  this.#render();
246216
246219
  this.#subscribeToProcessEvents();
246217
- this.#timer = setInterval(() => {
246218
- this.#render();
246219
- }, this.#interval);
246220
+ if (this.#isInteractive) {
246221
+ this.#timer = setInterval(() => {
246222
+ this.#render();
246223
+ }, this.#interval);
246224
+ }
246220
246225
  return this;
246221
246226
  }
246222
246227
  stop(finalText) {
246223
246228
  if (!this.isSpinning) {
246224
246229
  return this;
246225
246230
  }
246226
- clearInterval(this.#timer);
246227
- this.#timer = undefined;
246231
+ this.#isSpinning = false;
246232
+ if (this.#timer) {
246233
+ clearInterval(this.#timer);
246234
+ this.#timer = undefined;
246235
+ }
246228
246236
  this.#showCursor();
246229
246237
  this.clear();
246230
246238
  this.#unsubscribeFromProcessEvents();
@@ -246250,7 +246258,7 @@ class YoctoSpinner {
246250
246258
  return this.#symbolStop(infoSymbol, text);
246251
246259
  }
246252
246260
  get isSpinning() {
246253
- return this.#timer !== undefined;
246261
+ return this.#isSpinning;
246254
246262
  }
246255
246263
  get text() {
246256
246264
  return this.#text;
@@ -257479,7 +257487,8 @@ var DotEnvSchema = object({
257479
257487
  "warn",
257480
257488
  "error",
257481
257489
  "none"
257482
- ]).default("warn")
257490
+ ]).default("warn"),
257491
+ NODE_TLS_REJECT_UNAUTHORIZED: _enum(["0", "1"]).optional()
257483
257492
  });
257484
257493
  var DotEnvSchemaPartial = DotEnvSchema.partial();
257485
257494
  var IdSchema = union([string().uuid(), string().regex(/^[0-9a-fA-F]{24}$/)]);
@@ -263120,7 +263129,7 @@ function pruneCurrentEnv(currentEnv, env2) {
263120
263129
  var package_default = {
263121
263130
  name: "@settlemint/sdk-cli",
263122
263131
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
263123
- version: "2.3.5",
263132
+ version: "2.3.6",
263124
263133
  type: "module",
263125
263134
  private: false,
263126
263135
  license: "FSL-1.1-MIT",
@@ -263169,9 +263178,9 @@ var package_default = {
263169
263178
  "@inquirer/input": "4.1.12",
263170
263179
  "@inquirer/password": "4.0.15",
263171
263180
  "@inquirer/select": "4.2.3",
263172
- "@settlemint/sdk-js": "2.3.5",
263173
- "@settlemint/sdk-utils": "2.3.5",
263174
- "@types/node": "22.15.21",
263181
+ "@settlemint/sdk-js": "2.3.6",
263182
+ "@settlemint/sdk-utils": "2.3.6",
263183
+ "@types/node": "22.15.30",
263175
263184
  "@types/semver": "7.7.0",
263176
263185
  "@types/which": "3.0.4",
263177
263186
  "get-tsconfig": "4.10.1",
@@ -263179,13 +263188,13 @@ var package_default = {
263179
263188
  "is-in-ci": "1.0.0",
263180
263189
  semver: "7.7.2",
263181
263190
  slugify: "1.6.6",
263182
- viem: "2.30.1",
263191
+ viem: "2.30.6",
263183
263192
  which: "5.0.0",
263184
263193
  yaml: "2.8.0",
263185
263194
  yoctocolors: "2.1.1"
263186
263195
  },
263187
263196
  peerDependencies: {
263188
- hardhat: "2.24.1"
263197
+ hardhat: "2.24.2"
263189
263198
  },
263190
263199
  peerDependenciesMeta: {
263191
263200
  hardhat: {
@@ -275243,7 +275252,8 @@ var DotEnvSchema2 = object2({
275243
275252
  "warn",
275244
275253
  "error",
275245
275254
  "none"
275246
- ]).default("warn")
275255
+ ]).default("warn"),
275256
+ NODE_TLS_REJECT_UNAUTHORIZED: _enum2(["0", "1"]).optional()
275247
275257
  });
275248
275258
  var DotEnvSchemaPartial2 = DotEnvSchema2.partial();
275249
275259
  var IdSchema2 = union2([string2().uuid(), string2().regex(/^[0-9a-fA-F]{24}$/)]);
@@ -302713,17 +302723,20 @@ function decodeEventLog(parameters) {
302713
302723
  throw new AbiEventSignatureNotFoundError(signature, { docsPath: docsPath3 });
302714
302724
  const { name: name3, inputs } = abiItem;
302715
302725
  const isUnnamed = inputs?.some((x6) => !(("name" in x6) && x6.name));
302716
- let args = isUnnamed ? [] : {};
302717
- const indexedInputs = inputs.filter((x6) => ("indexed" in x6) && x6.indexed);
302726
+ const args = isUnnamed ? [] : {};
302727
+ const indexedInputs = inputs.map((x6, i6) => [x6, i6]).filter(([x6]) => ("indexed" in x6) && x6.indexed);
302718
302728
  for (let i6 = 0;i6 < indexedInputs.length; i6++) {
302719
- const param = indexedInputs[i6];
302729
+ const [param, argIndex] = indexedInputs[i6];
302720
302730
  const topic = argTopics[i6];
302721
302731
  if (!topic)
302722
302732
  throw new DecodeLogTopicsMismatch({
302723
302733
  abiItem,
302724
302734
  param
302725
302735
  });
302726
- args[isUnnamed ? i6 : param.name || i6] = decodeTopic({ param, value: topic });
302736
+ args[isUnnamed ? argIndex : param.name || argIndex] = decodeTopic({
302737
+ param,
302738
+ value: topic
302739
+ });
302727
302740
  }
302728
302741
  const nonIndexedInputs = inputs.filter((x6) => !(("indexed" in x6) && x6.indexed));
302729
302742
  if (nonIndexedInputs.length > 0) {
@@ -302732,12 +302745,11 @@ function decodeEventLog(parameters) {
302732
302745
  const decodedData = decodeAbiParameters(nonIndexedInputs, data);
302733
302746
  if (decodedData) {
302734
302747
  if (isUnnamed)
302735
- args = [...args, ...decodedData];
302736
- else {
302737
- for (let i6 = 0;i6 < nonIndexedInputs.length; i6++) {
302748
+ for (let i6 = 0;i6 < inputs.length; i6++)
302749
+ args[i6] = args[i6] ?? decodedData.shift();
302750
+ else
302751
+ for (let i6 = 0;i6 < nonIndexedInputs.length; i6++)
302738
302752
  args[nonIndexedInputs[i6].name] = decodedData[i6];
302739
- }
302740
- }
302741
302753
  }
302742
302754
  } catch (err) {
302743
302755
  if (strict) {
@@ -306719,7 +306731,7 @@ function watchBlocks(client, { blockTag = "latest", emitMissed = false, emitOnBe
306719
306731
  return;
306720
306732
  onBlock(block, undefined);
306721
306733
  emitFetched = false;
306722
- });
306734
+ }).catch(onError);
306723
306735
  }
306724
306736
  const transport = (() => {
306725
306737
  if (client.transport.type === "fallback") {
@@ -318659,7 +318671,8 @@ async function writeEnvSpinner(prod, env2) {
318659
318671
  SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: env2.SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT,
318660
318672
  SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: env2.SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT,
318661
318673
  SETTLEMINT_NEW_PROJECT_NAME: env2.SETTLEMINT_NEW_PROJECT_NAME,
318662
- SETTLEMINT_LOG_LEVEL: env2.SETTLEMINT_LOG_LEVEL
318674
+ SETTLEMINT_LOG_LEVEL: env2.SETTLEMINT_LOG_LEVEL,
318675
+ NODE_TLS_REJECT_UNAUTHORIZED: env2.NODE_TLS_REJECT_UNAUTHORIZED
318663
318676
  };
318664
318677
  await writeEnv({
318665
318678
  prod,
@@ -319216,7 +319229,8 @@ async function connectToPlatform(env2, selectedInstance, acceptDefaults, prod) {
319216
319229
  SETTLEMINT_CUSTOM_DEPLOYMENT: cDeployment?.uniqueName,
319217
319230
  ...getCustomDeploymentEnv(cDeployment),
319218
319231
  SETTLEMINT_BLOCKSCOUT: blockscout?.uniqueName,
319219
- ...getBlockscoutEnv(blockscout)
319232
+ ...getBlockscoutEnv(blockscout),
319233
+ NODE_TLS_REJECT_UNAUTHORIZED: "1"
319220
319234
  });
319221
319235
  }
319222
319236
  async function connectToStandalone(env2, acceptDefaults, prod) {
@@ -319375,7 +319389,8 @@ async function connectToStandalone(env2, acceptDefaults, prod) {
319375
319389
  SETTLEMINT_MINIO_ACCESS_KEY: selectedServices.minioAccessKey?.result,
319376
319390
  SETTLEMINT_MINIO_SECRET_KEY: selectedServices.minioSecretKey?.result,
319377
319391
  SETTLEMINT_IPFS_API_ENDPOINT: selectedServices.ipfsApiEndpoint?.result,
319378
- SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: selectedServices.blockscoutGraphqlEndpoint?.result
319392
+ SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: selectedServices.blockscoutGraphqlEndpoint?.result,
319393
+ NODE_TLS_REJECT_UNAUTHORIZED: "0"
319379
319394
  });
319380
319395
  }
319381
319396
 
@@ -327374,4 +327389,4 @@ async function sdkCliCommand(argv = process.argv) {
327374
327389
  // src/cli.ts
327375
327390
  sdkCliCommand();
327376
327391
 
327377
- //# debugId=5F041BA6E502C21464756E2164756E21
327392
+ //# debugId=944B1776CDF262E264756E2164756E21