@hawksightco/hawk-sdk
Advanced tools
Comparing version 0.0.66 to 0.0.67
@@ -52,3 +52,14 @@ import * as web3 from "@solana/web3.js"; | ||
meteoraRebalanceIxs(connection: web3.Connection, payer: string, params: _client.AutomationRebalanceAutomationIxBody): Promise<ResponseWithStatus<TransactionMetadata>>; | ||
/** | ||
* Creates meteora full withdraw and close position instructions | ||
* | ||
* NOTE: For hawksight devs only. | ||
* | ||
* @param connection The Solana web3 connection object for blockchain interactions. | ||
* @param payer The public key of the payer for transaction fees. | ||
* @param params Parameters required | ||
* @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata. | ||
*/ | ||
meteoraFullWithdrawAndClosePositionIxs(connection: web3.Connection, payer: string, params: _client.AutomationWithdrawAndCloseAutomationIxBody): Promise<ResponseWithStatus<TransactionMetadata>>; | ||
} | ||
//# sourceMappingURL=TxGeneratorAutomations.d.ts.map |
@@ -95,3 +95,22 @@ "use strict"; | ||
} | ||
/** | ||
* Creates meteora full withdraw and close position instructions | ||
* | ||
* NOTE: For hawksight devs only. | ||
* | ||
* @param connection The Solana web3 connection object for blockchain interactions. | ||
* @param payer The public key of the payer for transaction fees. | ||
* @param params Parameters required | ||
* @returns A ResponseWithStatus containing either TransactionMetadataResponse or TransactionMetadata. | ||
*/ | ||
meteoraFullWithdrawAndClosePositionIxs(connection, payer, params) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const result = yield this.client.meteoraDLMMAutomationInstructionsApi.meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(params).catch(e => e.response); | ||
return (0, functions_1.resultOrError)({ | ||
status: result.status, | ||
data: result.data, | ||
}, (data) => __awaiter(this, void 0, void 0, function* () { return yield (0, functions_1.createTxMetadata)(this.generalUtility, connection, payer, data); })); | ||
}); | ||
} | ||
} | ||
exports.TxGeneratorAutomations = TxGeneratorAutomations; |
{ | ||
"name": "@hawksightco/hawk-sdk", | ||
"version": "0.0.66", | ||
"version": "0.0.67", | ||
"description": "Hawksight v2 SDK", | ||
@@ -23,3 +23,3 @@ "main": "dist/src/index.js", | ||
"dependencies": { | ||
"@hawksightco/swagger-client": "^0.0.25", | ||
"@hawksightco/swagger-client": "^0.0.26", | ||
"@solana/web3.js": "^1.89.1", | ||
@@ -26,0 +26,0 @@ "bn.js": "^5.2.1" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
158838
2904
+ Added@hawksightco/swagger-client@0.0.26(transitive)
- Removed@hawksightco/swagger-client@0.0.25(transitive)