@meteora-ag/dlmm 1.6.0-rc.0 → 1.6.0-rc.10
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/index.d.ts +12 -46
- package/dist/index.js +316 -359
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +316 -359
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -10302,30 +10302,7 @@ declare class DLMM {
|
|
|
10302
10302
|
quoteCreatePosition({ strategy }: TQuoteCreatePositionParams): Promise<{
|
|
10303
10303
|
binArraysCount: number;
|
|
10304
10304
|
binArrayCost: number;
|
|
10305
|
-
|
|
10306
|
-
positionCost: number;
|
|
10307
|
-
}>;
|
|
10308
|
-
/**
|
|
10309
|
-
* Estimates the cost to create a new position based on the given strategy.
|
|
10310
|
-
*
|
|
10311
|
-
* This function calculates the costs associated with creating bin arrays, positions
|
|
10312
|
-
* and extending positions for a specified range of bins.
|
|
10313
|
-
*
|
|
10314
|
-
* @param {TQuoteCreatePositionParams} param0 - The settings of the requested new position,
|
|
10315
|
-
* including the strategy with minimum and maximum bin IDs.
|
|
10316
|
-
* @returns An object containing:
|
|
10317
|
-
* - binArraysCount: The number of bin arrays required.
|
|
10318
|
-
* - binArrayCost: The estimated cost for creating bin arrays.
|
|
10319
|
-
* - positionCount: The number of positions required.
|
|
10320
|
-
* - positionCost: The fee cost for creating positions.
|
|
10321
|
-
* - positionExtendCost: The rent cost in lamports for extending positions.
|
|
10322
|
-
*/
|
|
10323
|
-
quoteCreateMultiplePositions({ strategy, }: TQuoteCreatePositionParams): Promise<{
|
|
10324
|
-
binArraysCount: number;
|
|
10325
|
-
binArrayCost: Decimal;
|
|
10326
|
-
positionCount: number;
|
|
10327
|
-
positionCost: Decimal;
|
|
10328
|
-
positionExtendCost: Decimal;
|
|
10305
|
+
transactionCount: number;
|
|
10329
10306
|
}>;
|
|
10330
10307
|
/**
|
|
10331
10308
|
* Creates an empty position and initializes the corresponding bin arrays if needed.
|
|
@@ -10338,24 +10315,6 @@ declare class DLMM {
|
|
|
10338
10315
|
maxBinId: number;
|
|
10339
10316
|
user: PublicKey;
|
|
10340
10317
|
}): Promise<Transaction>;
|
|
10341
|
-
/**
|
|
10342
|
-
* Creates multiple empty positions for a user in specified bin ranges with necessary bin arrays.
|
|
10343
|
-
*
|
|
10344
|
-
* @param {number} minBinId - The minimum bin ID for the positions.
|
|
10345
|
-
* @param {number} maxBinId - The maximum bin ID for the positions.
|
|
10346
|
-
* @param {PublicKey} user - The public key of the user for whom the positions are created.
|
|
10347
|
-
*
|
|
10348
|
-
* @returns An object containing arrays of transactions for initializing positions, extending positions and initialzing bin arrays.
|
|
10349
|
-
*/
|
|
10350
|
-
createMultipleEmptyPositions({ minBinId, maxBinId, user, }: {
|
|
10351
|
-
minBinId: number;
|
|
10352
|
-
maxBinId: number;
|
|
10353
|
-
user: PublicKey;
|
|
10354
|
-
}): Promise<{
|
|
10355
|
-
positionKeypairs: Keypair[];
|
|
10356
|
-
initPositionTxs: Transaction[];
|
|
10357
|
-
initBinArrayTxs: Transaction[];
|
|
10358
|
-
}>;
|
|
10359
10318
|
/**
|
|
10360
10319
|
* The function `getPosition` retrieves position information for a given public key and processes it
|
|
10361
10320
|
* using various data to return a `LbPosition` object.
|
|
@@ -10721,10 +10680,17 @@ declare class DLMM {
|
|
|
10721
10680
|
*
|
|
10722
10681
|
* @returns An object containing the instructions to initialize new bin arrays and the instruction to rebalance the position.
|
|
10723
10682
|
*/
|
|
10724
|
-
rebalancePosition(rebalancePositionResponse: RebalancePositionResponse, maxActiveBinSlippage: BN$1, rentPayer?: PublicKey, slippage?: number): Promise<
|
|
10725
|
-
|
|
10726
|
-
|
|
10727
|
-
|
|
10683
|
+
rebalancePosition(rebalancePositionResponse: RebalancePositionResponse, maxActiveBinSlippage: BN$1, rentPayer?: PublicKey, slippage?: number): Promise<any[]>;
|
|
10684
|
+
/**
|
|
10685
|
+
* Create an extended empty position.
|
|
10686
|
+
*
|
|
10687
|
+
* @param lowerBinid The lowest bin of the position.
|
|
10688
|
+
* @param upperBinId The highest bin of the position.
|
|
10689
|
+
* @param position The public key of the position.
|
|
10690
|
+
* @param owner The owner of the position.
|
|
10691
|
+
* @returns The instructions to create the extended empty position.
|
|
10692
|
+
*/
|
|
10693
|
+
createExtendedEmptyPosition(lowerBinid: number, upperBinId: number, position: PublicKey, owner: PublicKey): Promise<Transaction>;
|
|
10728
10694
|
private createInitAndExtendPositionIx;
|
|
10729
10695
|
private increasePositionLengthIxs;
|
|
10730
10696
|
/** Private static method */
|