@settlemint/sdk-cli 0.6.41-pr3ecf44f → 0.6.41-prdcd3c8e

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
@@ -272337,7 +272337,7 @@ function connectCommand() {
272337
272337
  var package_default = {
272338
272338
  name: "@settlemint/sdk-cli",
272339
272339
  description: "SettleMint SDK, integrate SettleMint into your application with ease.",
272340
- version: "0.6.41-pr3ecf44f",
272340
+ version: "0.6.41-prdcd3c8e",
272341
272341
  type: "module",
272342
272342
  private: false,
272343
272343
  license: "FSL-1.1-MIT",
@@ -272387,8 +272387,8 @@ var package_default = {
272387
272387
  "@inquirer/input": "4.1.0",
272388
272388
  "@inquirer/password": "4.0.3",
272389
272389
  "@inquirer/select": "4.0.3",
272390
- "@settlemint/sdk-js": "0.6.41-pr3ecf44f",
272391
- "@settlemint/sdk-utils": "0.6.41-pr3ecf44f",
272390
+ "@settlemint/sdk-js": "0.6.41-prdcd3c8e",
272391
+ "@settlemint/sdk-utils": "0.6.41-prdcd3c8e",
272392
272392
  "get-tsconfig": "4.8.1",
272393
272393
  giget: "1.2.3"
272394
272394
  },
@@ -275331,17 +275331,9 @@ function hardhatDeployRemoteCommand() {
275331
275331
  accessToken,
275332
275332
  instance
275333
275333
  });
275334
- let nodeId = blockchainNodeId ?? env2.SETTLEMINT_BLOCKCHAIN_NODE;
275334
+ let nodeId = blockchainNodeId;
275335
275335
  if (!nodeId) {
275336
- const personalAccessToken = await getInstanceCredentials(instance);
275337
- if (!personalAccessToken) {
275338
- return missingPersonalAccessTokenError();
275339
- }
275340
- const settlemintPat = createSettleMintClient({
275341
- accessToken: personalAccessToken.personalAccessToken,
275342
- instance
275343
- });
275344
- const blockchainNodes = await settlemintPat.blockchainNode.list(env2.SETTLEMINT_APPLICATION);
275336
+ const blockchainNodes = await settlemint.blockchainNode.list(env2.SETTLEMINT_APPLICATION);
275345
275337
  const blockchainNode = await blockchainNodePrompt(env2, blockchainNodes, autoAccept);
275346
275338
  if (!blockchainNode) {
275347
275339
  cancel2("No Blockchain Node selected. Please select one to continue.");
@@ -275420,17 +275412,9 @@ function hardhatScriptRemoteCommand() {
275420
275412
  accessToken,
275421
275413
  instance
275422
275414
  });
275423
- let nodeId = blockchainNodeId ?? env2.SETTLEMINT_BLOCKCHAIN_NODE;
275415
+ let nodeId = blockchainNodeId;
275424
275416
  if (!nodeId) {
275425
- const personalAccessToken = await getInstanceCredentials(instance);
275426
- if (!personalAccessToken) {
275427
- return missingPersonalAccessTokenError();
275428
- }
275429
- const settlemintPat = createSettleMintClient({
275430
- accessToken: personalAccessToken.personalAccessToken,
275431
- instance
275432
- });
275433
- const blockchainNodes = await settlemintPat.blockchainNode.list(env2.SETTLEMINT_APPLICATION);
275417
+ const blockchainNodes = await settlemint.blockchainNode.list(env2.SETTLEMINT_APPLICATION);
275434
275418
  const blockchainNode = await blockchainNodePrompt(env2, blockchainNodes, autoAccept);
275435
275419
  if (!blockchainNode) {
275436
275420
  cancel2("No Blockchain Node selected. Please select one to continue.");
@@ -275616,24 +275600,16 @@ async function getTheGraphMiddleware({
275616
275600
  accessToken,
275617
275601
  autoAccept
275618
275602
  }) {
275603
+ const settlemintClient = createSettleMintClient({
275604
+ accessToken,
275605
+ instance
275606
+ });
275619
275607
  if (autoAccept && env2.SETTLEMINT_THEGRAPH) {
275620
- const settlemintClient2 = createSettleMintClient({
275621
- accessToken,
275622
- instance
275623
- });
275624
- const defaultTheGraphMiddleware = await settlemintClient2.middleware.read(env2.SETTLEMINT_THEGRAPH);
275608
+ const defaultTheGraphMiddleware = await settlemintClient.middleware.read(env2.SETTLEMINT_THEGRAPH);
275625
275609
  if (defaultTheGraphMiddleware && defaultTheGraphMiddleware.__typename === "HAGraphMiddleware") {
275626
275610
  return defaultTheGraphMiddleware;
275627
275611
  }
275628
275612
  }
275629
- const personalAccessToken = await getInstanceCredentials(instance);
275630
- if (!personalAccessToken) {
275631
- return missingPersonalAccessTokenError();
275632
- }
275633
- const settlemintClient = createSettleMintClient({
275634
- accessToken: personalAccessToken.personalAccessToken,
275635
- instance
275636
- });
275637
275613
  const middlewares = await settlemintClient.middleware.list(env2.SETTLEMINT_APPLICATION);
275638
275614
  return theGraphPrompt(env2, middlewares, autoAccept);
275639
275615
  }
@@ -275816,4 +275792,4 @@ sdkcli.parseAsync(process.argv).catch((reason) => {
275816
275792
  cancel2(reason);
275817
275793
  });
275818
275794
 
275819
- //# debugId=BBF922F858E0CB5964756E2164756E21
275795
+ //# debugId=53A2C56A9F3C0D5164756E2164756E21