@settlemint/sdk-cli 2.3.5-pr8e810f59 → 2.3.5-pra3eb4e90

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.5";
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, authorizationList, batch = Boolean(client.batch?.multicall), blockNumber, blockTag = "pending", 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.");
@@ -239035,7 +239035,7 @@ function shouldPerformMulticall({ request: request2 }) {
239035
239035
  }
239036
239036
  async function scheduleMulticall(client, args) {
239037
239037
  const { batchSize = 1024, wait = 0 } = typeof client.batch?.multicall === "object" ? client.batch.multicall : {};
239038
- const { blockNumber, blockTag = "pending", data, multicallAddress: multicallAddress_, to } = args;
239038
+ const { blockNumber, blockTag = "latest", data, multicallAddress: multicallAddress_, to } = args;
239039
239039
  let multicallAddress = multicallAddress_;
239040
239040
  if (!multicallAddress) {
239041
239041
  if (!client.chain)
@@ -263121,7 +263121,7 @@ function pruneCurrentEnv(currentEnv, env2) {
263121
263121
  var package_default = {
263122
263122
  name: "@settlemint/sdk-cli",
263123
263123
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
263124
- version: "2.3.5-pr8e810f59",
263124
+ version: "2.3.5-pra3eb4e90",
263125
263125
  type: "module",
263126
263126
  private: false,
263127
263127
  license: "FSL-1.1-MIT",
@@ -263170,8 +263170,8 @@ var package_default = {
263170
263170
  "@inquirer/input": "4.1.12",
263171
263171
  "@inquirer/password": "4.0.15",
263172
263172
  "@inquirer/select": "4.2.3",
263173
- "@settlemint/sdk-js": "2.3.5-pr8e810f59",
263174
- "@settlemint/sdk-utils": "2.3.5-pr8e810f59",
263173
+ "@settlemint/sdk-js": "2.3.5-pra3eb4e90",
263174
+ "@settlemint/sdk-utils": "2.3.5-pra3eb4e90",
263175
263175
  "@types/node": "22.15.29",
263176
263176
  "@types/semver": "7.7.0",
263177
263177
  "@types/which": "3.0.4",
@@ -263180,13 +263180,13 @@ var package_default = {
263180
263180
  "is-in-ci": "1.0.0",
263181
263181
  semver: "7.7.2",
263182
263182
  slugify: "1.6.6",
263183
- viem: "2.30.5",
263183
+ viem: "2.30.6",
263184
263184
  which: "5.0.0",
263185
263185
  yaml: "2.8.0",
263186
263186
  yoctocolors: "2.1.1"
263187
263187
  },
263188
263188
  peerDependencies: {
263189
- hardhat: "2.24.1"
263189
+ hardhat: "2.24.2"
263190
263190
  },
263191
263191
  peerDependenciesMeta: {
263192
263192
  hardhat: {
@@ -302582,7 +302582,7 @@ async function estimateGas(client, args) {
302582
302582
  const { block: block2, request: request3, rpcStateOverride: rpcStateOverride2 } = parameters;
302583
302583
  return client.request({
302584
302584
  method: "eth_estimateGas",
302585
- params: rpcStateOverride2 ? [request3, block2 ?? "pending", rpcStateOverride2] : block2 ? [request3, block2] : [request3]
302585
+ params: rpcStateOverride2 ? [request3, block2 ?? "latest", rpcStateOverride2] : block2 ? [request3, block2] : [request3]
302586
302586
  });
302587
302587
  };
302588
302588
  const { accessList, authorizationList, blobs, blobVersionedHashes, blockNumber, blockTag, data, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, value: value4, stateOverride, ...rest } = await prepareTransactionRequest(client, {
@@ -302714,17 +302714,20 @@ function decodeEventLog(parameters) {
302714
302714
  throw new AbiEventSignatureNotFoundError(signature, { docsPath: docsPath3 });
302715
302715
  const { name: name3, inputs } = abiItem;
302716
302716
  const isUnnamed = inputs?.some((x6) => !(("name" in x6) && x6.name));
302717
- let args = isUnnamed ? [] : {};
302718
- 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);
302719
302719
  for (let i6 = 0;i6 < indexedInputs.length; i6++) {
302720
- const param = indexedInputs[i6];
302720
+ const [param, argIndex] = indexedInputs[i6];
302721
302721
  const topic = argTopics[i6];
302722
302722
  if (!topic)
302723
302723
  throw new DecodeLogTopicsMismatch({
302724
302724
  abiItem,
302725
302725
  param
302726
302726
  });
302727
- args[isUnnamed ? i6 : param.name || i6] = decodeTopic({ param, value: topic });
302727
+ args[isUnnamed ? argIndex : param.name || argIndex] = decodeTopic({
302728
+ param,
302729
+ value: topic
302730
+ });
302728
302731
  }
302729
302732
  const nonIndexedInputs = inputs.filter((x6) => !(("indexed" in x6) && x6.indexed));
302730
302733
  if (nonIndexedInputs.length > 0) {
@@ -302733,12 +302736,11 @@ function decodeEventLog(parameters) {
302733
302736
  const decodedData = decodeAbiParameters(nonIndexedInputs, data);
302734
302737
  if (decodedData) {
302735
302738
  if (isUnnamed)
302736
- args = [...args, ...decodedData];
302737
- else {
302738
- 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++)
302739
302743
  args[nonIndexedInputs[i6].name] = decodedData[i6];
302740
- }
302741
- }
302742
302744
  }
302743
302745
  } catch (err) {
302744
302746
  if (strict) {
@@ -305157,7 +305159,7 @@ init_transactionRequest();
305157
305159
  init_stateOverride2();
305158
305160
  init_assertRequest();
305159
305161
  async function simulateBlocks(client, parameters) {
305160
- const { blockNumber, blockTag = "pending", blocks, returnFullTransactions, traceTransfers, validation } = parameters;
305162
+ const { blockNumber, blockTag = "latest", blocks, returnFullTransactions, traceTransfers, validation } = parameters;
305161
305163
  try {
305162
305164
  const blockStateCalls = [];
305163
305165
  for (const block2 of blocks) {
@@ -327375,4 +327377,4 @@ async function sdkCliCommand(argv = process.argv) {
327375
327377
  // src/cli.ts
327376
327378
  sdkCliCommand();
327377
327379
 
327378
- //# debugId=5EAC19AFB4E3369164756E2164756E21
327380
+ //# debugId=6B930198B132F26A64756E2164756E21