@meteora-ag/dlmm 1.3.0 → 1.3.1-sam.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 CHANGED
@@ -5636,7 +5636,6 @@ declare class DLMM {
5636
5636
  * Pair account, and the value is an object of PositionInfo
5637
5637
  */
5638
5638
  static getAllLbPairPositionsByUser(connection: Connection, userPubKey: PublicKey, opt?: Opt): Promise<Map<string, PositionInfo>>;
5639
- static migratePosition(connection: Connection, positions: PublicKey[], newPositions: PublicKey[], walletPubkey: PublicKey, opt?: Opt): Promise<Transaction[]>;
5640
5639
  static getPricePerLamport(tokenXDecimal: number, tokenYDecimal: number, price: number): string;
5641
5640
  static getBinIdFromPrice(price: string | number | Decimal, binStep: number, min: boolean): number;
5642
5641
  /** Public methods */
@@ -5790,6 +5789,19 @@ declare class DLMM {
5790
5789
  maxBinId: number;
5791
5790
  user: PublicKey;
5792
5791
  }): Promise<Transaction>;
5792
+ /**
5793
+ * The function `getPosition` retrieves position information for a given public key and processes it
5794
+ * using various data to return a `LbPosition` object.
5795
+ * @param {PublicKey} positionPubKey - The `getPosition` function you provided is an asynchronous
5796
+ * function that fetches position information based on a given public key. Here's a breakdown of the
5797
+ * parameters used in the function:
5798
+ * @returns The `getPosition` function returns a Promise that resolves to an object of type
5799
+ * `LbPosition`. The object contains the following properties:
5800
+ * - `publicKey`: The public key of the position account
5801
+ * - `positionData`: Position Object
5802
+ * - `version`: The version of the position (in this case, `Position.V2`)
5803
+ */
5804
+ getPosition(positionPubKey: PublicKey): Promise<LbPosition>;
5793
5805
  /**
5794
5806
  * The function `initializePositionAndAddLiquidityByStrategy` function is used to initializes a position and adds liquidity
5795
5807
  * @param {TInitializePositionAndAddLiquidityParamsByStrategy}