@settlemint/sdk-cli 2.3.13 → 2.3.14-main79ecef1f

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.13/sdk/cli/docs/settlemint.md) for available commands.
252
+ See the [documentation](https://github.com/settlemint/sdk/tree/v2.3.14/sdk/cli/docs/settlemint.md) for available commands.
253
253
 
254
254
  ## Contributing
255
255
 
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.0";
231626
+ var version5 = "2.31.1";
231627
231627
 
231628
231628
  // ../../node_modules/viem/_esm/errors/base.js
231629
231629
  function walk(err, fn) {
@@ -263764,7 +263764,7 @@ function pruneCurrentEnv(currentEnv, env2) {
263764
263764
  var package_default = {
263765
263765
  name: "@settlemint/sdk-cli",
263766
263766
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
263767
- version: "2.3.13",
263767
+ version: "2.3.14-main79ecef1f",
263768
263768
  type: "module",
263769
263769
  private: false,
263770
263770
  license: "FSL-1.1-MIT",
@@ -263813,9 +263813,10 @@ var package_default = {
263813
263813
  "@inquirer/input": "4.1.12",
263814
263814
  "@inquirer/password": "4.0.15",
263815
263815
  "@inquirer/select": "4.2.3",
263816
- "@settlemint/sdk-js": "2.3.13",
263817
- "@settlemint/sdk-utils": "2.3.13",
263818
- "@types/node": "24.0.0",
263816
+ "@settlemint/sdk-js": "2.3.14-main79ecef1f",
263817
+ "@settlemint/sdk-utils": "2.3.14-main79ecef1f",
263818
+ "@settlemint/sdk-viem": "2.3.14-main79ecef1f",
263819
+ "@types/node": "24.0.1",
263819
263820
  "@types/semver": "7.7.0",
263820
263821
  "@types/which": "3.0.4",
263821
263822
  "get-tsconfig": "4.10.1",
@@ -263823,13 +263824,13 @@ var package_default = {
263823
263824
  "is-in-ci": "1.0.0",
263824
263825
  semver: "7.7.2",
263825
263826
  slugify: "1.6.6",
263826
- viem: "2.31.0",
263827
+ viem: "2.31.1",
263827
263828
  which: "5.0.0",
263828
263829
  yaml: "2.8.0",
263829
263830
  yoctocolors: "2.1.1"
263830
263831
  },
263831
263832
  peerDependencies: {
263832
- hardhat: "2.24.2"
263833
+ hardhat: "2.24.3"
263833
263834
  },
263834
263835
  peerDependenciesMeta: {
263835
263836
  hardhat: {
@@ -289281,11 +289282,11 @@ function getPincodeVerificationChallengeResponse({ verificationChallenge, pincod
289281
289282
  }
289282
289283
  function createSettleMintClient(options) {
289283
289284
  ensureServer();
289284
- if (options.instance === STANDALONE_INSTANCE2)
289285
+ if (options.instance === STANDALONE_INSTANCE2 || options.instance === LOCAL_INSTANCE2)
289285
289286
  if (options.anonymous)
289286
289287
  options.instance = "https://console.settlemint.com";
289287
289288
  else
289288
- throw new Error("Standalone instances cannot connect to the SettleMint platform");
289289
+ throw new Error("Standalone and local instances cannot connect to the SettleMint platform");
289289
289290
  const validatedOptions = options.anonymous ? validate2(exports_external.object({
289290
289291
  ...ClientOptionsSchema.shape,
289291
289292
  accessToken: exports_external.literal("")
@@ -301366,7 +301367,7 @@ async function validateSdkVersionFromCommand(command, interval = 5 * 60 * 1000)
301366
301367
  }
301367
301368
  await setLastSdkVersionCheck(new Date(now).toJSON());
301368
301369
  const instance = await getInstanceFromCommand(command);
301369
- if (instance !== STANDALONE_INSTANCE2) {
301370
+ if (instance !== STANDALONE_INSTANCE2 && instance !== LOCAL_INSTANCE2) {
301370
301371
  await validateSdkVersion(instance);
301371
301372
  }
301372
301373
  }
@@ -301498,7 +301499,7 @@ var PACKAGE_NAME = "@settlemint/sdk-hasura";
301498
301499
  async function codegenHasura(env2) {
301499
301500
  const gqlEndpoint = env2.SETTLEMINT_HASURA_ENDPOINT;
301500
301501
  const instance = env2.SETTLEMINT_INSTANCE;
301501
- const accessToken = instance === STANDALONE_INSTANCE2 ? undefined : await getApplicationOrPersonalAccessToken({
301502
+ const accessToken = instance === STANDALONE_INSTANCE2 || instance === LOCAL_INSTANCE2 ? undefined : await getApplicationOrPersonalAccessToken({
301502
301503
  env: env2,
301503
301504
  instance: env2.SETTLEMINT_INSTANCE,
301504
301505
  prefer: "application"
@@ -301570,7 +301571,7 @@ async function codegenPortal(env2) {
301570
301571
  return;
301571
301572
  }
301572
301573
  const instance = env2.SETTLEMINT_INSTANCE;
301573
- const accessToken = instance === STANDALONE_INSTANCE2 ? undefined : await getApplicationOrPersonalAccessToken({
301574
+ const accessToken = instance === STANDALONE_INSTANCE2 || instance === LOCAL_INSTANCE2 ? undefined : await getApplicationOrPersonalAccessToken({
301574
301575
  env: env2,
301575
301576
  instance: env2.SETTLEMINT_INSTANCE,
301576
301577
  prefer: "application"
@@ -301735,7 +301736,7 @@ async function codegenTheGraph(env2, subgraphNames) {
301735
301736
  return;
301736
301737
  }
301737
301738
  const instance = env2.SETTLEMINT_INSTANCE;
301738
- const accessToken = instance === STANDALONE_INSTANCE2 ? undefined : await getApplicationOrPersonalAccessToken({
301739
+ const accessToken = instance === STANDALONE_INSTANCE2 || instance === LOCAL_INSTANCE2 ? undefined : await getApplicationOrPersonalAccessToken({
301739
301740
  env: env2,
301740
301741
  instance: env2.SETTLEMINT_INSTANCE,
301741
301742
  prefer: "application"
@@ -302765,7 +302766,7 @@ async function codegenTsconfig(env2, thegraphSubgraphNames) {
302765
302766
  };
302766
302767
  }
302767
302768
  let accessToken;
302768
- if (env2.SETTLEMINT_INSTANCE !== STANDALONE_INSTANCE2) {
302769
+ if (env2.SETTLEMINT_INSTANCE !== STANDALONE_INSTANCE2 && env2.SETTLEMINT_INSTANCE !== LOCAL_INSTANCE2) {
302769
302770
  accessToken = await getApplicationOrPersonalAccessToken({
302770
302771
  env: env2,
302771
302772
  instance: env2.SETTLEMINT_INSTANCE,
@@ -303217,7 +303218,7 @@ async function codegenBlockscout(env2) {
303217
303218
  return;
303218
303219
  }
303219
303220
  const instance = env2.SETTLEMINT_INSTANCE;
303220
- const accessToken = instance === STANDALONE_INSTANCE2 ? undefined : await getApplicationOrPersonalAccessToken({
303221
+ const accessToken = instance === STANDALONE_INSTANCE2 || instance === LOCAL_INSTANCE2 ? undefined : await getApplicationOrPersonalAccessToken({
303221
303222
  env: env2,
303222
303223
  instance: env2.SETTLEMINT_INSTANCE,
303223
303224
  prefer: "application"
@@ -320925,6 +320926,10 @@ async function instancePrompt({
320925
320926
  {
320926
320927
  name: "Standalone (services run independently of SettleMint platform)",
320927
320928
  value: STANDALONE_INSTANCE2
320929
+ },
320930
+ {
320931
+ name: "Local (for local development mode)",
320932
+ value: LOCAL_INSTANCE2
320928
320933
  }
320929
320934
  ],
320930
320935
  default: sanitizeInstanceUrl(knownInstances.length > 0 ? defaultPromptInstance : STANDALONE_INSTANCE2)
@@ -329109,7 +329114,7 @@ function hardhatDeployRemoteCommand() {
329109
329114
  env: env2,
329110
329115
  accept: true
329111
329116
  });
329112
- if (instance === STANDALONE_INSTANCE2) {
329117
+ if (instance === STANDALONE_INSTANCE2 || instance === LOCAL_INSTANCE2) {
329113
329118
  envHardhatConfig.BTP_RPC_URL = env2.SETTLEMINT_BLOCKCHAIN_NODE_JSON_RPC_ENDPOINT ?? "";
329114
329119
  } else {
329115
329120
  const accessToken = await getApplicationOrPersonalAccessToken({
@@ -329250,7 +329255,7 @@ function hardhatScriptRemoteCommand() {
329250
329255
  env: env2,
329251
329256
  accept: true
329252
329257
  });
329253
- if (instance === STANDALONE_INSTANCE2) {
329258
+ if (instance === STANDALONE_INSTANCE2 || instance === LOCAL_INSTANCE2) {
329254
329259
  envHardhatConfig.BTP_RPC_URL = env2.SETTLEMINT_BLOCKCHAIN_NODE_JSON_RPC_ENDPOINT ?? "";
329255
329260
  } else {
329256
329261
  const accessToken = await getApplicationOrPersonalAccessToken({
@@ -329438,7 +329443,7 @@ async function getTheGraphNetwork({
329438
329443
  instance,
329439
329444
  accessToken = ""
329440
329445
  }) {
329441
- if (instance === STANDALONE_INSTANCE2) {
329446
+ if (instance === STANDALONE_INSTANCE2 || instance === LOCAL_INSTANCE2) {
329442
329447
  return SETTLEMINT_NETWORK;
329443
329448
  }
329444
329449
  const isFixedNetwork = (theGraphMiddleware?.entityVersion ?? 4) >= 4;
@@ -329523,7 +329528,7 @@ function subgraphDeployCommand() {
329523
329528
  });
329524
329529
  let theGraphMiddleware;
329525
329530
  let accessToken;
329526
- if (instance !== STANDALONE_INSTANCE2) {
329531
+ if (instance !== STANDALONE_INSTANCE2 && instance !== LOCAL_INSTANCE2) {
329527
329532
  accessToken = await getApplicationOrPersonalAccessToken({
329528
329533
  env: env2,
329529
329534
  instance,
@@ -329660,7 +329665,7 @@ function subgraphRemoveCommand() {
329660
329665
  });
329661
329666
  let theGraphMiddleware;
329662
329667
  let accessToken;
329663
- if (instance !== STANDALONE_INSTANCE2) {
329668
+ if (instance !== STANDALONE_INSTANCE2 && instance !== LOCAL_INSTANCE2) {
329664
329669
  accessToken = await getApplicationOrPersonalAccessToken({
329665
329670
  env: env2,
329666
329671
  instance,
@@ -329871,4 +329876,4 @@ async function sdkCliCommand(argv = process.argv) {
329871
329876
  // src/cli.ts
329872
329877
  sdkCliCommand();
329873
329878
 
329874
- //# debugId=EA5707B49750639B64756E2164756E21
329879
+ //# debugId=61AA22EB672E05D964756E2164756E21