@meteora-ag/dlmm 1.3.4 → 1.3.6-rc.0
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 +13 -1
- package/dist/index.js +161 -354
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +147 -340
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5641,7 +5641,6 @@ declare class DLMM {
|
|
|
5641
5641
|
* Pair account, and the value is an object of PositionInfo
|
|
5642
5642
|
*/
|
|
5643
5643
|
static getAllLbPairPositionsByUser(connection: Connection, userPubKey: PublicKey, opt?: Opt): Promise<Map<string, PositionInfo>>;
|
|
5644
|
-
static migratePosition(connection: Connection, positions: PublicKey[], newPositions: PublicKey[], walletPubkey: PublicKey, opt?: Opt): Promise<Transaction[]>;
|
|
5645
5644
|
static getPricePerLamport(tokenXDecimal: number, tokenYDecimal: number, price: number): string;
|
|
5646
5645
|
static getBinIdFromPrice(price: string | number | Decimal, binStep: number, min: boolean): number;
|
|
5647
5646
|
/** Public methods */
|
|
@@ -5795,6 +5794,19 @@ declare class DLMM {
|
|
|
5795
5794
|
maxBinId: number;
|
|
5796
5795
|
user: PublicKey;
|
|
5797
5796
|
}): Promise<Transaction>;
|
|
5797
|
+
/**
|
|
5798
|
+
* The function `getPosition` retrieves position information for a given public key and processes it
|
|
5799
|
+
* using various data to return a `LbPosition` object.
|
|
5800
|
+
* @param {PublicKey} positionPubKey - The `getPosition` function you provided is an asynchronous
|
|
5801
|
+
* function that fetches position information based on a given public key. Here's a breakdown of the
|
|
5802
|
+
* parameters used in the function:
|
|
5803
|
+
* @returns The `getPosition` function returns a Promise that resolves to an object of type
|
|
5804
|
+
* `LbPosition`. The object contains the following properties:
|
|
5805
|
+
* - `publicKey`: The public key of the position account
|
|
5806
|
+
* - `positionData`: Position Object
|
|
5807
|
+
* - `version`: The version of the position (in this case, `Position.V2`)
|
|
5808
|
+
*/
|
|
5809
|
+
getPosition(positionPubKey: PublicKey): Promise<LbPosition>;
|
|
5798
5810
|
/**
|
|
5799
5811
|
* The function `initializePositionAndAddLiquidityByStrategy` function is used to initializes a position and adds liquidity
|
|
5800
5812
|
* @param {TInitializePositionAndAddLiquidityParamsByStrategy}
|