@hawksightco/hawk-sdk 0.0.67 → 0.0.68
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.
|
@@ -50,7 +50,7 @@ export declare class TxGeneratorAutomations {
|
|
|
50
50
|
*/
|
|
51
51
|
meteoraRebalanceIxs(connection: web3.Connection, payer: string, params: _client.AutomationRebalanceAutomationIxBody): Promise<ResponseWithStatus<TransactionMetadata>>;
|
|
52
52
|
/**
|
|
53
|
-
* Creates meteora
|
|
53
|
+
* Creates meteora close limit instruction (combination of claim fees/rewards + remove liquidity + close position)
|
|
54
54
|
*
|
|
55
55
|
* NOTE: For hawksight devs only.
|
|
56
56
|
*
|
|
@@ -59,6 +59,6 @@ export declare class TxGeneratorAutomations {
|
|
|
59
59
|
* @param params Parameters required
|
|
60
60
|
* @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
|
|
61
61
|
*/
|
|
62
|
-
|
|
62
|
+
meteoraLimitCloseIxs(connection: web3.Connection, payer: string, params: _client.AutomationLimitCloseAutomationIxBody): Promise<ResponseWithStatus<TransactionMetadata>>;
|
|
63
63
|
}
|
|
64
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,sBAAsB;IAkB/B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,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EgB,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,oBAAoB,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,oCAAoC,GAAG,OAAO,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;CAU/K"}
|
|
@@ -93,7 +93,7 @@ class TxGeneratorAutomations {
|
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
/**
|
|
96
|
-
* Creates meteora
|
|
96
|
+
* Creates meteora close limit instruction (combination of claim fees/rewards + remove liquidity + close position)
|
|
97
97
|
*
|
|
98
98
|
* NOTE: For hawksight devs only.
|
|
99
99
|
*
|
|
@@ -102,9 +102,9 @@ class TxGeneratorAutomations {
|
|
|
102
102
|
* @param params Parameters required
|
|
103
103
|
* @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata.
|
|
104
104
|
*/
|
|
105
|
-
|
|
105
|
+
meteoraLimitCloseIxs(connection, payer, params) {
|
|
106
106
|
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
-
const result = yield this.client.meteoraDLMMAutomationInstructionsApi.
|
|
107
|
+
const result = yield this.client.meteoraDLMMAutomationInstructionsApi.meteoraDlmmAutomationLimitCloseAutomationIxPost(params).catch(e => e.response);
|
|
108
108
|
return (0, functions_1.resultOrError)({
|
|
109
109
|
status: result.status,
|
|
110
110
|
data: result.data,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hawksightco/hawk-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.68",
|
|
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.
|
|
23
|
+
"@hawksightco/swagger-client": "^0.0.27",
|
|
24
24
|
"@solana/web3.js": "^1.89.1",
|
|
25
25
|
"bn.js": "^5.2.1"
|
|
26
26
|
},
|