@hawksightco/hawk-sdk 0.0.65 → 0.0.67

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.
@@ -79,7 +79,7 @@ class CreateTxMetadata {
79
79
  */
80
80
  load() {
81
81
  return __awaiter(this, void 0, void 0, function* () {
82
- this.updateAlts();
82
+ yield this.updateAlts();
83
83
  });
84
84
  }
85
85
  /**
@@ -49,5 +49,16 @@ export declare class TxGeneratorAutomations {
49
49
  * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
50
50
  */
51
51
  meteoraRebalanceIxs(connection: web3.Connection, payer: string, params: _client.AutomationRebalanceAutomationIxBody): Promise<ResponseWithStatus<TransactionMetadata>>;
52
+ /**
53
+ * Creates meteora full withdraw and close position instructions
54
+ *
55
+ * NOTE: For hawksight devs only.
56
+ *
57
+ * @param connection The Solana web3 connection object for blockchain interactions.
58
+ * @param payer The public key of the payer for transaction fees.
59
+ * @param params Parameters required
60
+ * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
61
+ */
62
+ meteoraFullWithdrawAndClosePositionIxs(connection: web3.Connection, payer: string, params: _client.AutomationWithdrawAndCloseAutomationIxBody): Promise<ResponseWithStatus<TransactionMetadata>>;
52
63
  }
53
64
  //# sourceMappingURL=TxGeneratorAutomations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TxGeneratorAutomations.d.ts","sourceRoot":"","sources":["../../../src/classes/TxGeneratorAutomations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAoD,MAAM,UAAU,CAAC;AACrH,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;;GAMG;AACH,qBAAa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AE,MAAM,CAAC;IAEjC;;;;OAIG;gBAEgB,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,cAAc;IAMjD;;;;;;;;;OASG;IACG,kBAAkB,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,kCAAkC,GAAG,OAAO,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;IAW1K;;;;;;;;;OASG;IACG,mBAAmB,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,mCAAmC,GAAG,OAAO,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;IAW5K;;;;;;;;;OASG;IACG,sCAAsC,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,0CAA0C,GAAG,OAAO,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;CAUvM"}
@@ -92,5 +92,24 @@ class TxGeneratorAutomations {
92
92
  }, (data) => __awaiter(this, void 0, void 0, function* () { return yield (0, functions_1.createTxMetadata)(this.generalUtility, connection, payer, data); }));
93
93
  });
94
94
  }
95
+ /**
96
+ * Creates meteora full withdraw and close position instructions
97
+ *
98
+ * NOTE: For hawksight devs only.
99
+ *
100
+ * @param connection The Solana web3 connection object for blockchain interactions.
101
+ * @param payer The public key of the payer for transaction fees.
102
+ * @param params Parameters required
103
+ * @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
104
+ */
105
+ meteoraFullWithdrawAndClosePositionIxs(connection, payer, params) {
106
+ return __awaiter(this, void 0, void 0, function* () {
107
+ const result = yield this.client.meteoraDLMMAutomationInstructionsApi.meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(params).catch(e => e.response);
108
+ return (0, functions_1.resultOrError)({
109
+ status: result.status,
110
+ data: result.data,
111
+ }, (data) => __awaiter(this, void 0, void 0, function* () { return yield (0, functions_1.createTxMetadata)(this.generalUtility, connection, payer, data); }));
112
+ });
113
+ }
95
114
  }
96
115
  exports.TxGeneratorAutomations = TxGeneratorAutomations;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hawksightco/hawk-sdk",
3
- "version": "0.0.65",
3
+ "version": "0.0.67",
4
4
  "description": "Hawksight v2 SDK",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": "https://github.com/ghabxph/hawk-api-client.git",
@@ -20,7 +20,7 @@
20
20
  "typescript": "^5.4.5"
21
21
  },
22
22
  "dependencies": {
23
- "@hawksightco/swagger-client": "^0.0.25",
23
+ "@hawksightco/swagger-client": "^0.0.26",
24
24
  "@solana/web3.js": "^1.89.1",
25
25
  "bn.js": "^5.2.1"
26
26
  },