@settlemint/sdk-cli 2.3.5-prc1c8dcb9 → 2.3.5-prd6cac981

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
@@ -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,
@@ -263120,7 +263121,7 @@ function pruneCurrentEnv(currentEnv, env2) {
263120
263121
  var package_default = {
263121
263122
  name: "@settlemint/sdk-cli",
263122
263123
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
263123
- version: "2.3.5-prc1c8dcb9",
263124
+ version: "2.3.5-prd6cac981",
263124
263125
  type: "module",
263125
263126
  private: false,
263126
263127
  license: "FSL-1.1-MIT",
@@ -263169,9 +263170,9 @@ var package_default = {
263169
263170
  "@inquirer/input": "4.1.12",
263170
263171
  "@inquirer/password": "4.0.15",
263171
263172
  "@inquirer/select": "4.2.3",
263172
- "@settlemint/sdk-js": "2.3.5-prc1c8dcb9",
263173
- "@settlemint/sdk-utils": "2.3.5-prc1c8dcb9",
263174
- "@types/node": "22.15.23",
263173
+ "@settlemint/sdk-js": "2.3.5-prd6cac981",
263174
+ "@settlemint/sdk-utils": "2.3.5-prd6cac981",
263175
+ "@types/node": "22.15.29",
263175
263176
  "@types/semver": "7.7.0",
263176
263177
  "@types/which": "3.0.4",
263177
263178
  "get-tsconfig": "4.10.1",
@@ -263179,13 +263180,13 @@ var package_default = {
263179
263180
  "is-in-ci": "1.0.0",
263180
263181
  semver: "7.7.2",
263181
263182
  slugify: "1.6.6",
263182
- viem: "2.30.1",
263183
+ viem: "2.30.6",
263183
263184
  which: "5.0.0",
263184
263185
  yaml: "2.8.0",
263185
263186
  yoctocolors: "2.1.1"
263186
263187
  },
263187
263188
  peerDependencies: {
263188
- hardhat: "2.24.1"
263189
+ hardhat: "2.24.2"
263189
263190
  },
263190
263191
  peerDependenciesMeta: {
263191
263192
  hardhat: {
@@ -302713,17 +302714,20 @@ function decodeEventLog(parameters) {
302713
302714
  throw new AbiEventSignatureNotFoundError(signature, { docsPath: docsPath3 });
302714
302715
  const { name: name3, inputs } = abiItem;
302715
302716
  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);
302717
+ const args = isUnnamed ? [] : {};
302718
+ const indexedInputs = inputs.map((x6, i6) => [x6, i6]).filter(([x6]) => ("indexed" in x6) && x6.indexed);
302718
302719
  for (let i6 = 0;i6 < indexedInputs.length; i6++) {
302719
- const param = indexedInputs[i6];
302720
+ const [param, argIndex] = indexedInputs[i6];
302720
302721
  const topic = argTopics[i6];
302721
302722
  if (!topic)
302722
302723
  throw new DecodeLogTopicsMismatch({
302723
302724
  abiItem,
302724
302725
  param
302725
302726
  });
302726
- args[isUnnamed ? i6 : param.name || i6] = decodeTopic({ param, value: topic });
302727
+ args[isUnnamed ? argIndex : param.name || argIndex] = decodeTopic({
302728
+ param,
302729
+ value: topic
302730
+ });
302727
302731
  }
302728
302732
  const nonIndexedInputs = inputs.filter((x6) => !(("indexed" in x6) && x6.indexed));
302729
302733
  if (nonIndexedInputs.length > 0) {
@@ -302732,12 +302736,11 @@ function decodeEventLog(parameters) {
302732
302736
  const decodedData = decodeAbiParameters(nonIndexedInputs, data);
302733
302737
  if (decodedData) {
302734
302738
  if (isUnnamed)
302735
- args = [...args, ...decodedData];
302736
- else {
302737
- for (let i6 = 0;i6 < nonIndexedInputs.length; i6++) {
302739
+ for (let i6 = 0;i6 < inputs.length; i6++)
302740
+ args[i6] = args[i6] ?? decodedData.shift();
302741
+ else
302742
+ for (let i6 = 0;i6 < nonIndexedInputs.length; i6++)
302738
302743
  args[nonIndexedInputs[i6].name] = decodedData[i6];
302739
- }
302740
- }
302741
302744
  }
302742
302745
  } catch (err) {
302743
302746
  if (strict) {
@@ -306719,7 +306722,7 @@ function watchBlocks(client, { blockTag = "latest", emitMissed = false, emitOnBe
306719
306722
  return;
306720
306723
  onBlock(block, undefined);
306721
306724
  emitFetched = false;
306722
- });
306725
+ }).catch(onError);
306723
306726
  }
306724
306727
  const transport = (() => {
306725
306728
  if (client.transport.type === "fallback") {
@@ -327374,4 +327377,4 @@ async function sdkCliCommand(argv = process.argv) {
327374
327377
  // src/cli.ts
327375
327378
  sdkCliCommand();
327376
327379
 
327377
- //# debugId=A6C83811D563C46D64756E2164756E21
327380
+ //# debugId=B21F8DF000FFD07664756E2164756E21