@settlemint/sdk-cli 2.3.6 → 2.3.8

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.6/sdk/cli/docs/settlemint.md) for available commands.
252
+ See the [documentation](https://github.com/settlemint/sdk/tree/v2.3.8/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.6";
231609
+ var version5 = "2.31.0";
231610
231610
 
231611
231611
  // ../../node_modules/viem/_esm/errors/base.js
231612
231612
  function walk(err, fn) {
@@ -263129,7 +263129,7 @@ function pruneCurrentEnv(currentEnv, env2) {
263129
263129
  var package_default = {
263130
263130
  name: "@settlemint/sdk-cli",
263131
263131
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
263132
- version: "2.3.6",
263132
+ version: "2.3.8",
263133
263133
  type: "module",
263134
263134
  private: false,
263135
263135
  license: "FSL-1.1-MIT",
@@ -263178,9 +263178,9 @@ var package_default = {
263178
263178
  "@inquirer/input": "4.1.12",
263179
263179
  "@inquirer/password": "4.0.15",
263180
263180
  "@inquirer/select": "4.2.3",
263181
- "@settlemint/sdk-js": "2.3.6",
263182
- "@settlemint/sdk-utils": "2.3.6",
263183
- "@types/node": "22.15.30",
263181
+ "@settlemint/sdk-js": "2.3.8",
263182
+ "@settlemint/sdk-utils": "2.3.8",
263183
+ "@types/node": "24.0.0",
263184
263184
  "@types/semver": "7.7.0",
263185
263185
  "@types/which": "3.0.4",
263186
263186
  "get-tsconfig": "4.10.1",
@@ -263188,7 +263188,7 @@ var package_default = {
263188
263188
  "is-in-ci": "1.0.0",
263189
263189
  semver: "7.7.2",
263190
263190
  slugify: "1.6.6",
263191
- viem: "2.30.6",
263191
+ viem: "2.31.0",
263192
263192
  which: "5.0.0",
263193
263193
  yaml: "2.8.0",
263194
263194
  yoctocolors: "2.1.1"
@@ -302714,11 +302714,7 @@ function decodeEventLog(parameters) {
302714
302714
  const [signature, ...argTopics] = topics;
302715
302715
  if (!signature)
302716
302716
  throw new AbiEventSignatureEmptyTopicsError({ docsPath: docsPath3 });
302717
- const abiItem = (() => {
302718
- if (abi.length === 1)
302719
- return abi[0];
302720
- return abi.find((x6) => x6.type === "event" && signature === toEventSelector(formatAbiItem2(x6)));
302721
- })();
302717
+ const abiItem = abi.find((x6) => x6.type === "event" && signature === toEventSelector(formatAbiItem2(x6)));
302722
302718
  if (!(abiItem && ("name" in abiItem)) || abiItem.type !== "event")
302723
302719
  throw new AbiEventSignatureNotFoundError(signature, { docsPath: docsPath3 });
302724
302720
  const { name: name3, inputs } = abiItem;
@@ -303405,8 +303401,11 @@ function uid(length = 11) {
303405
303401
 
303406
303402
  // ../../node_modules/viem/_esm/clients/createClient.js
303407
303403
  function createClient(parameters) {
303408
- const { batch, cacheTime = parameters.pollingInterval ?? 4000, ccipRead, key: key2 = "base", name: name3 = "Base Client", pollingInterval = 4000, type: type4 = "base" } = parameters;
303409
- const chain = parameters.chain;
303404
+ const { batch, chain, ccipRead, key: key2 = "base", name: name3 = "Base Client", type: type4 = "base" } = parameters;
303405
+ const blockTime = chain?.blockTime ?? 12000;
303406
+ const defaultPollingInterval = Math.min(Math.max(Math.floor(blockTime / 2), 500), 4000);
303407
+ const pollingInterval = parameters.pollingInterval ?? defaultPollingInterval;
303408
+ const cacheTime = parameters.cacheTime ?? pollingInterval;
303410
303409
  const account = parameters.account ? parseAccount(parameters.account) : undefined;
303411
303410
  const { config: config4, request: request2, value: value4 } = parameters.transport({
303412
303411
  chain,
@@ -318906,9 +318905,9 @@ function getUpdatedSubgraphEndpoints({
318906
318905
  if (!middlewareAdminUrl) {
318907
318906
  throw new Error("Middleware admin URL is required to add a new subgraph");
318908
318907
  }
318909
- const baseUrl = extractBaseUrlBeforeSegment2(middlewareAdminUrl, "/admin");
318908
+ const baseUrl = middlewareAdminUrl.replace(/\/admin\/?$/, "");
318910
318909
  if (baseUrl) {
318911
- const endpoint = `${getTheGraphSubgraphUrl(baseUrl, newSubgraphName)}`;
318910
+ const endpoint = getTheGraphSubgraphUrl(baseUrl, newSubgraphName);
318912
318911
  if (!existingEndpointsWithoutRemoved.includes(endpoint)) {
318913
318912
  existingEndpointsWithoutRemoved.push(endpoint);
318914
318913
  }
@@ -318929,7 +318928,12 @@ function getTheGraphSubgraphNames(subgraphUrls) {
318929
318928
  return [];
318930
318929
  }
318931
318930
  function getTheGraphSubgraphUrl(theGraphUrl, subgraphName) {
318932
- return `${theGraphUrl}/subgraphs/name/${subgraphName}`;
318931
+ const url5 = new URL(theGraphUrl);
318932
+ if (!url5.pathname.endsWith("/")) {
318933
+ url5.pathname += "/";
318934
+ }
318935
+ url5.pathname += `subgraphs/name/${subgraphName}`;
318936
+ return url5.toString();
318933
318937
  }
318934
318938
 
318935
318939
  // ../utils/dist/logging.js
@@ -327389,4 +327393,4 @@ async function sdkCliCommand(argv = process.argv) {
327389
327393
  // src/cli.ts
327390
327394
  sdkCliCommand();
327391
327395
 
327392
- //# debugId=944B1776CDF262E264756E2164756E21
327396
+ //# debugId=6008DA7567A68B3D64756E2164756E21