@hawksightco/hawk-sdk
Advanced tools
Comparing version 0.0.69 to 0.0.70
@@ -66,2 +66,11 @@ import * as web3 from "@solana/web3.js"; | ||
/** | ||
* Creates meteora instruction that initializes bin arrays | ||
* | ||
* @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. | ||
*/ | ||
meteoraInitializeBinArrays(connection: web3.Connection, payer: string, params: _client.TxInitializeBinArraysBody): Promise<ResponseWithStatus<TransactionMetadata>>; | ||
/** | ||
* Creates orca instruction that opens new position | ||
@@ -68,0 +77,0 @@ * |
@@ -115,2 +115,19 @@ "use strict"; | ||
/** | ||
* Creates meteora instruction that initializes bin arrays | ||
* | ||
* @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. | ||
*/ | ||
meteoraInitializeBinArrays(connection, payer, params) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const result = yield this.client.meteoraDLMMInstructionsApi.meteoraDlmmTxInitializeBinArraysPost(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); })); | ||
}); | ||
} | ||
/** | ||
* Creates orca instruction that opens new position | ||
@@ -117,0 +134,0 @@ * |
{ | ||
"name": "@hawksightco/hawk-sdk", | ||
"version": "0.0.69", | ||
"version": "0.0.70", | ||
"description": "Hawksight v2 SDK", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
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
160576
2930