@settlemint/sdk-cli 2.4.0-prcf35f1e3 → 2.4.0-prcf43b3a1

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
@@ -231623,7 +231623,7 @@ function size(value4) {
231623
231623
  var init_size = () => {};
231624
231624
 
231625
231625
  // ../../node_modules/viem/_esm/errors/version.js
231626
- var version5 = "2.31.2";
231626
+ var version5 = "2.31.4";
231627
231627
 
231628
231628
  // ../../node_modules/viem/_esm/errors/base.js
231629
231629
  function walk(err, fn) {
@@ -263840,7 +263840,7 @@ function pruneCurrentEnv(currentEnv, env2) {
263840
263840
  var package_default = {
263841
263841
  name: "@settlemint/sdk-cli",
263842
263842
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
263843
- version: "2.4.0-prcf35f1e3",
263843
+ version: "2.4.0-prcf43b3a1",
263844
263844
  type: "module",
263845
263845
  private: false,
263846
263846
  license: "FSL-1.1-MIT",
@@ -263889,10 +263889,10 @@ var package_default = {
263889
263889
  "@inquirer/input": "4.1.12",
263890
263890
  "@inquirer/password": "4.0.15",
263891
263891
  "@inquirer/select": "4.2.3",
263892
- "@settlemint/sdk-js": "2.4.0-prcf35f1e3",
263893
- "@settlemint/sdk-utils": "2.4.0-prcf35f1e3",
263894
- "@settlemint/sdk-viem": "2.4.0-prcf35f1e3",
263895
- "@types/node": "24.0.1",
263892
+ "@settlemint/sdk-js": "2.4.0-prcf43b3a1",
263893
+ "@settlemint/sdk-utils": "2.4.0-prcf43b3a1",
263894
+ "@settlemint/sdk-viem": "2.4.0-prcf43b3a1",
263895
+ "@types/node": "24.0.3",
263896
263896
  "@types/semver": "7.7.0",
263897
263897
  "@types/which": "3.0.4",
263898
263898
  "get-tsconfig": "4.10.1",
@@ -263900,13 +263900,13 @@ var package_default = {
263900
263900
  "is-in-ci": "1.0.0",
263901
263901
  semver: "7.7.2",
263902
263902
  slugify: "1.6.6",
263903
- viem: "2.31.2",
263903
+ viem: "2.31.4",
263904
263904
  which: "5.0.0",
263905
263905
  yaml: "2.8.0",
263906
263906
  yoctocolors: "2.1.1"
263907
263907
  },
263908
263908
  peerDependencies: {
263909
- hardhat: "2.24.3"
263909
+ hardhat: "2.25.0"
263910
263910
  },
263911
263911
  peerDependenciesMeta: {
263912
263912
  hardhat: {
@@ -305154,9 +305154,9 @@ function watchContractEvent(client, parameters) {
305154
305154
  return poll_;
305155
305155
  if (typeof fromBlock === "bigint")
305156
305156
  return true;
305157
- if (client.transport.type === "webSocket")
305157
+ if (client.transport.type === "webSocket" || client.transport.type === "ipc")
305158
305158
  return false;
305159
- if (client.transport.type === "fallback" && client.transport.transports[0].config.type === "webSocket")
305159
+ if (client.transport.type === "fallback" && (client.transport.transports[0].config.type === "webSocket" || client.transport.transports[0].config.type === "ipc"))
305160
305160
  return false;
305161
305161
  return true;
305162
305162
  })();
@@ -305257,7 +305257,7 @@ function watchContractEvent(client, parameters) {
305257
305257
  try {
305258
305258
  const transport = (() => {
305259
305259
  if (client.transport.type === "fallback") {
305260
- const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket");
305260
+ const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket" || transport3.config.type === "ipc");
305261
305261
  if (!transport2)
305262
305262
  return client.transport;
305263
305263
  return transport2.value;
@@ -307145,9 +307145,10 @@ async function simulateBlocks(client, parameters) {
307145
307145
  const calls = block2.calls.map((call_) => {
307146
307146
  const call2 = call_;
307147
307147
  const account = call2.account ? parseAccount(call2.account) : undefined;
307148
+ const data = call2.abi ? encodeFunctionData(call2) : call2.data;
307148
307149
  const request2 = {
307149
307150
  ...call2,
307150
- data: call2.abi ? encodeFunctionData(call2) : call2.data,
307151
+ data: call2.dataSuffix ? concat2([data || "0x", call2.dataSuffix]) : data,
307151
307152
  from: call2.from ?? account?.address
307152
307153
  };
307153
307154
  assertRequest(request2);
@@ -308417,9 +308418,9 @@ function watchBlockNumber(client, { emitOnBegin = false, emitMissed = false, onB
308417
308418
  const enablePolling = (() => {
308418
308419
  if (typeof poll_ !== "undefined")
308419
308420
  return poll_;
308420
- if (client.transport.type === "webSocket")
308421
+ if (client.transport.type === "webSocket" || client.transport.type === "ipc")
308421
308422
  return false;
308422
- if (client.transport.type === "fallback" && client.transport.transports[0].config.type === "webSocket")
308423
+ if (client.transport.type === "fallback" && (client.transport.transports[0].config.type === "webSocket" || client.transport.transports[0].config.type === "ipc"))
308423
308424
  return false;
308424
308425
  return true;
308425
308426
  })();
@@ -308471,7 +308472,7 @@ function watchBlockNumber(client, { emitOnBegin = false, emitMissed = false, onB
308471
308472
  try {
308472
308473
  const transport = (() => {
308473
308474
  if (client.transport.type === "fallback") {
308474
- const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket");
308475
+ const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket" || transport3.config.type === "ipc");
308475
308476
  if (!transport2)
308476
308477
  return client.transport;
308477
308478
  return transport2.value;
@@ -308624,9 +308625,9 @@ function watchBlocks(client, { blockTag = "latest", emitMissed = false, emitOnBe
308624
308625
  const enablePolling = (() => {
308625
308626
  if (typeof poll_ !== "undefined")
308626
308627
  return poll_;
308627
- if (client.transport.type === "webSocket")
308628
+ if (client.transport.type === "webSocket" || client.transport.type === "ipc")
308628
308629
  return false;
308629
- if (client.transport.type === "fallback" && client.transport.transports[0].config.type === "webSocket")
308630
+ if (client.transport.type === "fallback" && (client.transport.transports[0].config.type === "webSocket" || client.transport.transports[0].config.type === "ipc"))
308630
308631
  return false;
308631
308632
  return true;
308632
308633
  })();
@@ -308695,7 +308696,7 @@ function watchBlocks(client, { blockTag = "latest", emitMissed = false, emitOnBe
308695
308696
  }
308696
308697
  const transport = (() => {
308697
308698
  if (client.transport.type === "fallback") {
308698
- const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket");
308699
+ const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket" || transport3.config.type === "ipc");
308699
308700
  if (!transport2)
308700
308701
  return client.transport;
308701
308702
  return transport2.value;
@@ -308742,9 +308743,9 @@ function watchEvent(client, { address, args, batch = true, event, events, fromBl
308742
308743
  return poll_;
308743
308744
  if (typeof fromBlock === "bigint")
308744
308745
  return true;
308745
- if (client.transport.type === "webSocket")
308746
+ if (client.transport.type === "webSocket" || client.transport.type === "ipc")
308746
308747
  return false;
308747
- if (client.transport.type === "fallback" && client.transport.transports[0].config.type === "webSocket")
308748
+ if (client.transport.type === "fallback" && (client.transport.transports[0].config.type === "webSocket" || client.transport.transports[0].config.type === "ipc"))
308748
308749
  return false;
308749
308750
  return true;
308750
308751
  })();
@@ -308831,7 +308832,7 @@ function watchEvent(client, { address, args, batch = true, event, events, fromBl
308831
308832
  try {
308832
308833
  const transport = (() => {
308833
308834
  if (client.transport.type === "fallback") {
308834
- const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket");
308835
+ const transport2 = client.transport.transports.find((transport3) => transport3.config.type === "webSocket" || transport3.config.type === "ipc");
308835
308836
  if (!transport2)
308836
308837
  return client.transport;
308837
308838
  return transport2.value;
@@ -308898,7 +308899,7 @@ function watchEvent(client, { address, args, batch = true, event, events, fromBl
308898
308899
  }
308899
308900
  // ../../node_modules/viem/_esm/actions/public/watchPendingTransactions.js
308900
308901
  function watchPendingTransactions(client, { batch = true, onError, onTransactions, poll: poll_, pollingInterval = client.pollingInterval }) {
308901
- const enablePolling = typeof poll_ !== "undefined" ? poll_ : client.transport.type !== "webSocket";
308902
+ const enablePolling = typeof poll_ !== "undefined" ? poll_ : client.transport.type !== "webSocket" && client.transport.type !== "ipc";
308902
308903
  const pollPendingTransactions = () => {
308903
308904
  const observerId = stringify3([
308904
308905
  "watchPendingTransactions",
@@ -330089,4 +330090,4 @@ async function sdkCliCommand(argv = process.argv) {
330089
330090
  // src/cli.ts
330090
330091
  sdkCliCommand();
330091
330092
 
330092
- //# debugId=A282C20717F39CA264756E2164756E21
330093
+ //# debugId=E345D7610A32B65864756E2164756E21