@settlemint/sdk-cli 0.6.41-pr0ed5f08 → 0.6.41-pr99b2408

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-pr0ed5f08",
272340
+ version: "0.6.41-pr99b2408",
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-pr0ed5f08",
272391
- "@settlemint/sdk-utils": "0.6.41-pr0ed5f08",
272390
+ "@settlemint/sdk-js": "0.6.41-pr99b2408",
272391
+ "@settlemint/sdk-utils": "0.6.41-pr99b2408",
272392
272392
  "get-tsconfig": "4.8.1",
272393
272393
  giget: "1.2.3"
272394
272394
  },
@@ -273509,6 +273509,7 @@ async function executeCommand2(command, args, options) {
273509
273509
  child.on("error", (err) => reject(err));
273510
273510
  child.on("close", (code2) => {
273511
273511
  if (code2 === 0 || code2 === null || code2 === 143) {
273512
+ process.stdin.unpipe(child.stdin);
273512
273513
  resolve22();
273513
273514
  return;
273514
273515
  }
@@ -275330,17 +275331,9 @@ function hardhatDeployRemoteCommand() {
275330
275331
  accessToken,
275331
275332
  instance
275332
275333
  });
275333
- let nodeId = blockchainNodeId ?? env2.SETTLEMINT_BLOCKCHAIN_NODE;
275334
+ let nodeId = blockchainNodeId;
275334
275335
  if (!nodeId) {
275335
- const personalAccessToken = await getInstanceCredentials(instance);
275336
- if (!personalAccessToken) {
275337
- return missingPersonalAccessTokenError();
275338
- }
275339
- const settlemintPat = createSettleMintClient({
275340
- accessToken: personalAccessToken.personalAccessToken,
275341
- instance
275342
- });
275343
- const blockchainNodes = await settlemintPat.blockchainNode.list(env2.SETTLEMINT_APPLICATION);
275336
+ const blockchainNodes = await settlemint.blockchainNode.list(env2.SETTLEMINT_APPLICATION);
275344
275337
  const blockchainNode = await blockchainNodePrompt(env2, blockchainNodes, autoAccept);
275345
275338
  if (!blockchainNode) {
275346
275339
  cancel2("No Blockchain Node selected. Please select one to continue.");
@@ -275419,17 +275412,9 @@ function hardhatScriptRemoteCommand() {
275419
275412
  accessToken,
275420
275413
  instance
275421
275414
  });
275422
- let nodeId = blockchainNodeId ?? env2.SETTLEMINT_BLOCKCHAIN_NODE;
275415
+ let nodeId = blockchainNodeId;
275423
275416
  if (!nodeId) {
275424
- const personalAccessToken = await getInstanceCredentials(instance);
275425
- if (!personalAccessToken) {
275426
- return missingPersonalAccessTokenError();
275427
- }
275428
- const settlemintPat = createSettleMintClient({
275429
- accessToken: personalAccessToken.personalAccessToken,
275430
- instance
275431
- });
275432
- const blockchainNodes = await settlemintPat.blockchainNode.list(env2.SETTLEMINT_APPLICATION);
275417
+ const blockchainNodes = await settlemint.blockchainNode.list(env2.SETTLEMINT_APPLICATION);
275433
275418
  const blockchainNode = await blockchainNodePrompt(env2, blockchainNodes, autoAccept);
275434
275419
  if (!blockchainNode) {
275435
275420
  cancel2("No Blockchain Node selected. Please select one to continue.");
@@ -275615,24 +275600,16 @@ async function getTheGraphMiddleware({
275615
275600
  accessToken,
275616
275601
  autoAccept
275617
275602
  }) {
275603
+ const settlemintClient = createSettleMintClient({
275604
+ accessToken,
275605
+ instance
275606
+ });
275618
275607
  if (autoAccept && env2.SETTLEMINT_THEGRAPH) {
275619
- const settlemintClient2 = createSettleMintClient({
275620
- accessToken,
275621
- instance
275622
- });
275623
- const defaultTheGraphMiddleware = await settlemintClient2.middleware.read(env2.SETTLEMINT_THEGRAPH);
275608
+ const defaultTheGraphMiddleware = await settlemintClient.middleware.read(env2.SETTLEMINT_THEGRAPH);
275624
275609
  if (defaultTheGraphMiddleware && defaultTheGraphMiddleware.__typename === "HAGraphMiddleware") {
275625
275610
  return defaultTheGraphMiddleware;
275626
275611
  }
275627
275612
  }
275628
- const personalAccessToken = await getInstanceCredentials(instance);
275629
- if (!personalAccessToken) {
275630
- return missingPersonalAccessTokenError();
275631
- }
275632
- const settlemintClient = createSettleMintClient({
275633
- accessToken: personalAccessToken.personalAccessToken,
275634
- instance
275635
- });
275636
275613
  const middlewares = await settlemintClient.middleware.list(env2.SETTLEMINT_APPLICATION);
275637
275614
  return theGraphPrompt(env2, middlewares, autoAccept);
275638
275615
  }
@@ -275815,4 +275792,4 @@ sdkcli.parseAsync(process.argv).catch((reason) => {
275815
275792
  cancel2(reason);
275816
275793
  });
275817
275794
 
275818
- //# debugId=3DC3A60E66BF0CCC64756E2164756E21
275795
+ //# debugId=8901AC94B2DF5D2F64756E2164756E21