@meteora-ag/dlmm 1.9.12 → 1.9.14-rc.1

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/README.md CHANGED
@@ -44,7 +44,7 @@ const dlmmPool = await DLMM.createMultiple(connection, [USDC_USDT_POOL, ...]);
44
44
  const activeBin = await dlmmPool.getActiveBin();
45
45
  const activeBinPriceLamport = activeBin.price;
46
46
  const activeBinPricePerToken = dlmmPool.fromPricePerLamport(
47
- Number(activeBin.price)
47
+ Number(activeBin.price),
48
48
  );
49
49
  ```
50
50
 
@@ -64,7 +64,7 @@ const totalYAmount = autoFillYByStrategy(
64
64
  activeBin.yAmount,
65
65
  minBinId,
66
66
  maxBinId,
67
- StrategyType.Spot // can be StrategyType.Spot, StrategyType.BidAsk, StrategyType.Curve
67
+ StrategyType.Spot, // can be StrategyType.Spot, StrategyType.BidAsk, StrategyType.Curve
68
68
  );
69
69
  const newBalancePosition = new Keypair();
70
70
 
@@ -86,7 +86,7 @@ try {
86
86
  const createBalancePositionTxHash = await sendAndConfirmTransaction(
87
87
  connection,
88
88
  createPositionTx,
89
- [user, newBalancePosition]
89
+ [user, newBalancePosition],
90
90
  );
91
91
  } catch (error) {}
92
92
  ```
@@ -120,7 +120,7 @@ try {
120
120
  const createBalancePositionTxHash = await sendAndConfirmTransaction(
121
121
  connection,
122
122
  createPositionTx,
123
- [user, newImbalancePosition]
123
+ [user, newImbalancePosition],
124
124
  );
125
125
  } catch (error) {}
126
126
  ```
@@ -154,7 +154,7 @@ try {
154
154
  const createOneSidePositionTxHash = await sendAndConfirmTransaction(
155
155
  connection,
156
156
  createPositionTx,
157
- [user, newOneSidePosition]
157
+ [user, newOneSidePosition],
158
158
  );
159
159
  } catch (error) {}
160
160
  ```
@@ -163,7 +163,7 @@ try {
163
163
 
164
164
  ```ts
165
165
  const { userPositions } = await dlmmPool.getPositionsByUserAndLbPair(
166
- user.publicKey
166
+ user.publicKey,
167
167
  );
168
168
  const binData = userPositions[0].positionData.positionBinData;
169
169
  ```
@@ -184,7 +184,7 @@ const totalYAmount = autoFillYByStrategy(
184
184
  activeBin.yAmount,
185
185
  minBinId,
186
186
  maxBinId,
187
- StrategyType.Spot // can be StrategyType.Spot, StrategyType.BidAsk, StrategyType.Curve
187
+ StrategyType.Spot, // can be StrategyType.Spot, StrategyType.BidAsk, StrategyType.Curve
188
188
  );
189
189
 
190
190
  // Add Liquidity to existing position
@@ -204,7 +204,7 @@ try {
204
204
  const addLiquidityTxHash = await sendAndConfirmTransaction(
205
205
  connection,
206
206
  addLiquidityTx,
207
- [user]
207
+ [user],
208
208
  );
209
209
  } catch (error) {}
210
210
  ```
@@ -213,11 +213,11 @@ try {
213
213
 
214
214
  ```ts
215
215
  const userPosition = userPositions.find(({ publicKey }) =>
216
- publicKey.equals(newBalancePosition.publicKey)
216
+ publicKey.equals(newBalancePosition.publicKey),
217
217
  );
218
218
  // Remove Liquidity
219
219
  const binIdsToRemove = userPosition.positionData.positionBinData.map(
220
- (bin) => bin.binId
220
+ (bin) => bin.binId,
221
221
  );
222
222
  const removeLiquidityTx = await dlmmPool.removeLiquidity({
223
223
  position: userPosition.publicKey,
@@ -225,7 +225,7 @@ const removeLiquidityTx = await dlmmPool.removeLiquidity({
225
225
  fromBinId: binIdsToRemove[0],
226
226
  toBinId: binIdsToRemove[binIdsToRemove.length - 1],
227
227
  liquiditiesBpsToRemove: new Array(binIdsToRemove.length).fill(
228
- new BN(100 * 100)
228
+ new BN(100 * 100),
229
229
  ), // 100% (range from 0 to 100)
230
230
  shouldClaimAndClose: true, // should claim swap fee and close position together
231
231
  });
@@ -238,7 +238,7 @@ try {
238
238
  connection,
239
239
  tx,
240
240
  [user],
241
- { skipPreflight: false, preflightCommitment: "singleGossip" }
241
+ { skipPreflight: false, preflightCommitment: "singleGossip" },
242
242
  );
243
243
  }
244
244
  } catch (error) {}
@@ -258,7 +258,7 @@ async function claimFee(dlmmPool: DLMM) {
258
258
  const claimFeeTxHash = await sendAndConfirmTransaction(
259
259
  connection,
260
260
  claimFeeTx,
261
- [user]
261
+ [user],
262
262
  );
263
263
  }
264
264
  } catch (error) {}
@@ -278,7 +278,7 @@ try {
278
278
  connection,
279
279
  closePositionTx,
280
280
  [user],
281
- { skipPreflight: false, preflightCommitment: "singleGossip" }
281
+ { skipPreflight: false, preflightCommitment: "singleGossip" },
282
282
  );
283
283
  } catch (error) {}
284
284
  ```
@@ -295,7 +295,7 @@ const swapQuote = await dlmmPool.swapQuote(
295
295
  swapAmount,
296
296
  swapYtoX,
297
297
  new BN(1),
298
- binArrays
298
+ binArrays,
299
299
  );
300
300
 
301
301
  // Swap
@@ -318,15 +318,17 @@ try {
318
318
 
319
319
  ## Static functions
320
320
 
321
- | Function | Description | Return |
322
- | ----------------------------- | ---------------------------------------------------------------------------------- | ------------------------------------ |
323
- | `create` | Given the DLMM address, create an instance to access the state and functions | `Promise<DLMM>` |
324
- | `createMultiple` | Given a list of DLMM addresses, create instances to access the state and functions | `Promise<Array<DLMM>>` |
325
- | `getAllPresetParameters` | Get all the preset params (use to create DLMM pool) | `Promise<PresetParams>` |
326
- | `createPermissionLbPair` | Create DLMM Pool | `Promise<Transcation>` |
327
- | `getClaimableLMReward` | Get Claimable LM reward for a position | `Promise<LMRewards>` |
328
- | `getClaimableSwapFee` | Get Claimable Swap Fee for a position | `Promise<SwapFee>` |
329
- | `getAllLbPairPositionsByUser` | Get user's all positions for all DLMM pools | `Promise<Map<string, PositionInfo>>` |
321
+ | Function | Description | Return |
322
+ | ----------------------------------- | ---------------------------------------------------------------------------------- | ------------------------------------ |
323
+ | `create` | Given the DLMM address, create an instance to access the state and functions | `Promise<DLMM>` |
324
+ | `createMultiple` | Given a list of DLMM addresses, create instances to access the state and functions | `Promise<Array<DLMM>>` |
325
+ | `getAllPresetParameters` | Get all the preset params (use to create DLMM pool) | `Promise<PresetParams>` |
326
+ | `createPermissionLbPair` | Create DLMM Pool | `Promise<Transcation>` |
327
+ | `getClaimableLMReward` | Get Claimable LM reward for a position | `Promise<LMRewards>` |
328
+ | `getClaimableSwapFee` | Get Claimable Swap Fee for a position | `Promise<SwapFee>` |
329
+ | `getAllLbPairPositionsByUser` | Get user's all positions for all DLMM pools | `Promise<Map<string, PositionInfo>>` |
330
+ | `getPositionsByUserAndTokenAddress` | Get user's positions across all DLMM pools that contain a given token mint | `Promise<Map<string, PositionInfo>>` |
331
+ | `getLimitOrdersByUserAndTokenAddress` | Get user's limit orders across all DLMM pools that contain a given token mint, grouped by LB pair | `Promise<Map<string, LimitOrderInfo>>` |
330
332
 
331
333
  ## DLMM instance functions
332
334
 
package/dist/index.d.ts CHANGED
@@ -12303,6 +12303,13 @@ interface PositionInfo {
12303
12303
  tokenY: TokenReserve;
12304
12304
  lbPairPositionsData: Array<LbPosition>;
12305
12305
  }
12306
+ interface LimitOrderInfo {
12307
+ publicKey: PublicKey;
12308
+ lbPair: LbPair;
12309
+ tokenX: TokenReserve;
12310
+ tokenY: TokenReserve;
12311
+ limitOrders: Array<ParsedLimitOrderWithPubkey>;
12312
+ }
12306
12313
  interface FeeInfo {
12307
12314
  baseFeeRatePercentage: Decimal;
12308
12315
  maxFeeRatePercentage: Decimal;
@@ -12450,8 +12457,8 @@ interface BinLiquidity {
12450
12457
  rewardPerTokenStored: BN[];
12451
12458
  }
12452
12459
  declare namespace BinLiquidity {
12453
- function fromBin(bin: Bin, binId: number, binStep: number, baseTokenDecimal: number, quoteTokenDecimal: number, version: number, lbPair: LbPair): BinLiquidity;
12454
- function empty(binId: number, binStep: number, baseTokenDecimal: number, quoteTokenDecimal: number, version: number): BinLiquidity;
12460
+ function fromBin(bin: Bin, binId: number, binStep: number, baseTokenDecimal: number, quoteTokenDecimal: number, version: number, lbPair: LbPair, baseMultiplier?: Decimal, quoteMultiplier?: Decimal): BinLiquidity;
12461
+ function empty(binId: number, binStep: number, baseTokenDecimal: number, quoteTokenDecimal: number, version: number, baseMultiplier?: Decimal, quoteMultiplier?: Decimal): BinLiquidity;
12455
12462
  }
12456
12463
  interface SwapQuote {
12457
12464
  consumedInAmount: BN;
@@ -12725,7 +12732,7 @@ declare function getBinArraysRequiredByPositionRange(pair: PublicKey, fromBinId:
12725
12732
  key: PublicKey;
12726
12733
  index: BN;
12727
12734
  }[];
12728
- declare function enumerateBins(binsById: Map<number, Bin>, lowerBinId: number, upperBinId: number, binStep: number, baseTokenDecimal: number, quoteTokenDecimal: number, version: number, lbPair: LbPair): Generator<BinLiquidity, void, unknown>;
12735
+ declare function enumerateBins(binsById: Map<number, Bin>, lowerBinId: number, upperBinId: number, binStep: number, baseTokenDecimal: number, quoteTokenDecimal: number, version: number, lbPair: LbPair, baseMultiplier?: Decimal, quoteMultiplier?: Decimal): Generator<BinLiquidity, void, unknown>;
12729
12736
  declare function getBinIdIndexInBinArray(binId: BN, lowerBinId: BN, upperBinId: BN): BN;
12730
12737
  declare function binDeltaToMinMaxBinId(binDelta: number, activeBinId: number): {
12731
12738
  minBinId: number;
@@ -13016,6 +13023,30 @@ interface TransferFeeExcludedAmount {
13016
13023
  transferFee: BN$1;
13017
13024
  }
13018
13025
  declare function calculateTransferFeeExcludedAmount(transferFeeIncludedAmount: BN$1, mint: Mint, currentEpoch: number): TransferFeeExcludedAmount;
13026
+ /**
13027
+ * Returns the Token-2022 ScaledUiAmount extension multiplier for a mint at the
13028
+ * given unix timestamp. Returns 1 when the mint has no ScaledUiAmount extension,
13029
+ * so callers can multiply unconditionally.
13030
+ *
13031
+ * The extension supports a scheduled multiplier switch: once the current time
13032
+ * reaches `newMultiplierEffectiveTimestamp`, `newMultiplier` takes over from
13033
+ * `multiplier`. This mirrors the on-chain UI amount computation.
13034
+ */
13035
+ declare function getScaledUiAmountMultiplier(mint: Mint, unixTimestamp: number): Decimal;
13036
+ /**
13037
+ * Scales a raw token amount by a ScaledUiAmount multiplier, flooring to the
13038
+ * nearest integer lamport. Returns the amount unchanged when the multiplier is 1.
13039
+ */
13040
+ declare function scaleAmountByMultiplier(amount: BN$1, multiplier: Decimal): BN$1;
13041
+ /**
13042
+ * Scales a decimals-adjusted price (`pricePerToken`, expressed as quote per base)
13043
+ * by the ScaledUiAmount multipliers of both mints:
13044
+ * `pricePerToken * quoteMultiplier / baseMultiplier`.
13045
+ *
13046
+ * Falls back to the unscaled price when `baseMultiplier` is zero (a pathological
13047
+ * mint configuration) to avoid producing `Infinity`.
13048
+ */
13049
+ declare function scalePricePerToken(pricePerToken: string, baseMultiplier: Decimal, quoteMultiplier: Decimal): string;
13019
13050
 
13020
13051
  declare function getPriceOfBinByBinId(binId: number, binStep: number): Decimal;
13021
13052
  /** private */
@@ -13225,7 +13256,7 @@ declare class Observation {
13225
13256
  constructor(cumulativeActiveBinId: BN$1, createdAt: BN$1, lastUpdatedAt: BN$1);
13226
13257
  isInitialized(): boolean;
13227
13258
  }
13228
- declare function wrapOracle(oracleAddress: PublicKey, data: Buffer, binStep: number, currentActiveBinId: BN$1, baseTokenDecimals: number, quoteTokenDecimals: number, program: Program<LbClmm>): DynamicOracle;
13259
+ declare function wrapOracle(oracleAddress: PublicKey, data: Buffer, binStep: number, currentActiveBinId: BN$1, baseTokenDecimals: number, quoteTokenDecimals: number, program: Program<LbClmm>, baseMultiplier?: Decimal, quoteMultiplier?: Decimal): DynamicOracle;
13229
13260
  declare class DynamicOracle implements IDynamicOracle {
13230
13261
  readonly oracleAddress: PublicKey;
13231
13262
  readonly metadata: Oracle;
@@ -13234,7 +13265,9 @@ declare class DynamicOracle implements IDynamicOracle {
13234
13265
  private currentActiveBinId;
13235
13266
  private baseTokenDecimals;
13236
13267
  private quoteTokenDecimals;
13237
- constructor(oracleAddress: PublicKey, metadata: Oracle, observations: Observation[], binStep: number, currentActiveBinId: BN$1, baseTokenDecimals: number, quoteTokenDecimals: number);
13268
+ private baseMultiplier;
13269
+ private quoteMultiplier;
13270
+ constructor(oracleAddress: PublicKey, metadata: Oracle, observations: Observation[], binStep: number, currentActiveBinId: BN$1, baseTokenDecimals: number, quoteTokenDecimals: number, baseMultiplier?: Decimal, quoteMultiplier?: Decimal);
13238
13271
  nextIndex(): number;
13239
13272
  getEarliestSample(): Observation;
13240
13273
  getLatestSample(): Observation;
@@ -13564,6 +13597,36 @@ declare class DLMM {
13564
13597
  * Pair account, and the value is an object of PositionInfo
13565
13598
  */
13566
13599
  static getAllLbPairPositionsByUser(connection: Connection, userPubKey: PublicKey, opt?: Opt, getPositionsOpt?: GetPositionsOpt): Promise<Map<string, PositionInfo>>;
13600
+ /**
13601
+ * The function `getPositionsByUserAndTokenAddress` retrieves all of a user's positions across every
13602
+ * DLMM pool that includes the given token mint as either the X or Y token.
13603
+ * @param {Connection} connection - The `connection` parameter is an instance of the `Connection`
13604
+ * class, which represents the connection to the Solana blockchain.
13605
+ * @param {PublicKey} userPubKey - The user's wallet public key.
13606
+ * @param {PublicKey} tokenMint - The token mint used to filter pools. Only positions in pools whose
13607
+ * `tokenXMint` or `tokenYMint` matches this mint are returned.
13608
+ * @param {Opt} [opt] - An optional object that contains additional options for the function.
13609
+ * @param {GetPositionsOpt} [getPositionsOpt] - Optional settings for chunked position fetching
13610
+ * @returns The function `getPositionsByUserAndTokenAddress` returns a `Promise` that resolves to a
13611
+ * `Map` object. The `Map` object contains key-value pairs, where the key is a string representing the
13612
+ * LB Pair account, and the value is an object of PositionInfo. Only pools containing `tokenMint` are
13613
+ * included.
13614
+ */
13615
+ static getPositionsByUserAndTokenAddress(connection: Connection, userPubKey: PublicKey, tokenMint: PublicKey, opt?: Opt, getPositionsOpt?: GetPositionsOpt): Promise<Map<string, PositionInfo>>;
13616
+ /**
13617
+ * The function `getLimitOrdersByUserAndTokenAddress` retrieves all of a user's limit orders across
13618
+ * every DLMM pool that includes the given token mint as either the X or Y token.
13619
+ * @param {Connection} connection - The `connection` parameter is an instance of the `Connection`
13620
+ * class, which represents the connection to the Solana blockchain.
13621
+ * @param {PublicKey} userPubKey - The user's wallet public key.
13622
+ * @param {PublicKey} tokenMint - The token mint used to filter pools. Only limit orders in pools
13623
+ * whose `tokenXMint` or `tokenYMint` matches this mint are returned.
13624
+ * @param {Opt} [opt] - An optional object that contains additional options for the function.
13625
+ * @returns The function `getLimitOrdersByUserAndTokenAddress` returns a `Promise` that resolves to a
13626
+ * `Map` object keyed by LB Pair account (base58), where each value is a `LimitOrderInfo` containing
13627
+ * the LB pair state, token reserves, and the parsed limit orders for that pool.
13628
+ */
13629
+ static getLimitOrdersByUserAndTokenAddress(connection: Connection, userPubKey: PublicKey, tokenMint: PublicKey, opt?: Opt): Promise<Map<string, LimitOrderInfo>>;
13567
13630
  static getPricePerLamport(tokenXDecimal: number, tokenYDecimal: number, price: number): string;
13568
13631
  static getBinIdFromPrice(price: string | number | Decimal, binStep: number, min: boolean): number;
13569
13632
  /**
@@ -26426,4 +26489,4 @@ declare const limitOrderFilter: () => GetProgramAccountsFilter;
26426
26489
  declare const limitOrderOwnerFilter: (owner: PublicKey) => GetProgramAccountsFilter;
26427
26490
  declare const limitOrderLbPairFilter: (lbPair: PublicKey) => GetProgramAccountsFilter;
26428
26491
 
26429
- export { ADMIN, ALT_ADDRESS, AccountName, ActionType, ActivationType, AmountIntoBin, BASIS_POINT_MAX, BIN_ARRAY_BITMAP_FEE, BIN_ARRAY_BITMAP_FEE_BN, BIN_ARRAY_BITMAP_SIZE, BIN_ARRAY_DEFAULT_VERSION, BIN_ARRAY_FEE, BIN_ARRAY_FEE_BN, BidAskParameters, Bin, BinAndAmount, BinArray, BinArrayAccount, BinArrayBitmapExtension, BinArrayBitmapExtensionAccount, BinLiquidity, BinLiquidityDistribution, BinLiquidityReduction, BitmapType, ChunkCallback, ChunkCallbackInfo, ClmmProgram, Clock, ClockLayout, CollectFeeMode, CompressedBinDepositAmount, CompressedBinDepositAmounts, ConcreteFunctionType, CreateRebalancePositionParams, DEFAULT_BIN_PER_POSITION, DLMMError, DlmmSdkError, DynamicOracle, EXTENSION_BINARRAY_BITMAP_SIZE, EmissionRate, ExtendedPositionBinData, FEE_PRECISION, FeeInfo, FeeMode, FunctionType, GetOrCreateATAResponse, GetPositionsOpt, IAccountsCache, IDL, IDynamicOracle, ILM_BASE, IPosition, InitCustomizablePermissionlessPairIx, InitPermissionPairIx, InitializeMultiplePositionAndAddLiquidityByStrategyResponse, InitializeMultiplePositionAndAddLiquidityByStrategyResponse2, LBCLMM_PROGRAM_IDS, LIMIT_ORDER_BIN_DATA_SIZE, LIMIT_ORDER_FEE_SHARE, LIMIT_ORDER_MIN_SIZE, LMRewards, LbClmm, LbPair, LbPairAccount, LbPosition, LimitOrder, LimitOrderBinData, LimitOrderStatus, LiquidityOneSideParameter, LiquidityParameter, LiquidityParameterByStrategy, LiquidityParameterByStrategyOneSide, LiquidityParameterByWeight, LiquidityStrategyParameterBuilder, LiquidityStrategyParameters, MAX_ACTIVE_BIN_SLIPPAGE, MAX_BINS_PER_POSITION, MAX_BIN_ARRAY_SIZE, MAX_BIN_ID_PER_BIN_STEP, MAX_BIN_LENGTH_ALLOWED_IN_ONE_TX, MAX_BIN_PER_LIMIT_ORDER, MAX_CLAIM_ALL_ALLOWED, MAX_EXTRA_BIN_ARRAYS, MAX_FEE_RATE, MAX_RESIZE_LENGTH, MEMO_PROGRAM_ID, Network, Observation, Opt, Oracle, POOL_FEE, POOL_FEE_BN, POSITION_BIN_DATA_SIZE, POSITION_FEE, POSITION_FEE_BN, POSITION_MAX_LENGTH, POSITION_MIN_SIZE, PRECISION, PairLockInfo, PairStatus, PairType, ParsedLimitOrderWithPubkey, PlaceLimitOrderParams, PositionBinData, PositionData, PositionInfo, PositionLockInfo, PositionPermission, PositionV2, PositionV2Wrapper, PositionVersion, PresetParameter, PresetParameter2, ProgramStrategyParameter, ProgramStrategyType, REBALANCE_POSITION_PADDING, RebalanceAddLiquidityParam, RebalancePosition, RebalancePositionBinArrayRentalCostQuote, RebalancePositionResponse, RebalanceRemoveLiquidityParam, RebalanceWithDeposit, RebalanceWithWithdraw, RemainingAccountInfo, RemainingAccountsInfoSlice, ResizeSide, ResizeSideEnum, RewardInfo, RewardInfos, Rounding, SCALE, SCALE_OFFSET, SIMULATION_USER, SeedLiquidityCostBreakdown, SeedLiquidityResponse, SeedLiquiditySingleBinResponse, ShrinkMode, SimulateRebalanceResp, Strategy, StrategyParameters, StrategyType, SwapExactOutParams, SwapFee, SwapParams, SwapQuote, SwapQuoteExactOut, SwapWithPriceImpactParams, TInitializeMultiplePositionAndAddLiquidityParamsByStrategy, TInitializePositionAndAddLiquidityParams, TInitializePositionAndAddLiquidityParamsByStrategy, TOKEN_ACCOUNT_FEE, TOKEN_ACCOUNT_FEE_BN, TQuoteCreatePositionParams, TokenReserve, TwapResult, U64_MAX, UserFeeInfo, UserRewardInfo, autoFillXByStrategy, autoFillXByWeight, autoFillYByStrategy, autoFillYByWeight, binArrayLbPairFilter, binDeltaToMinMaxBinId, binIdToBinArrayIndex, buildBitFlagAndNegateStrategyParameters, buildLiquidityStrategyParameters, calculateBidAskDistribution, calculateNormalDistribution, calculatePositionSize, calculateSpotDistribution, calculateTransferFeeExcludedAmount, calculateTransferFeeIncludedAmount, capSlippagePercentage, chunkBinRange, chunkBinRangeIntoExtendedPositions, chunkDepositWithRebalanceEndpoint, chunkPositionBinRange, chunkedFetchMultipleBinArrayBitmapExtensionAccount, chunkedFetchMultiplePoolAccount, chunkedGetMultipleAccountInfos, chunkedGetProgramAccounts, chunks, compressBinAmount, computeBaseFactorFromFeeBps, computeFee, computeFeeFromAmount, computeProtocolFee, createProgram, decodeAccount, decodeExtendedPosition, decodeRewardPerTokenStored, DLMM as default, deriveBinArray, deriveBinArrayBitmapExtension, deriveCustomizablePermissionlessLbPair, deriveEventAuthority, deriveLbPair, deriveLbPair2, deriveLbPairWithPresetParamWithIndexKey, deriveOperator, deriveOracle, derivePermissionLbPair, derivePlaceHolderAccountMeta, derivePosition, derivePresetParameter, derivePresetParameter2, derivePresetParameterWithIndex, deriveReserve, deriveRewardVault, deriveTokenBadge, distributeAmountToCompressedBinsByRatio, encodePositionPermissions, enumerateBins, findNextBinArrayIndexWithLiquidity, findNextBinArrayWithLiquidity, findOptimumDecompressMultiplier, fromWeightDistributionToAmount, fromWeightDistributionToAmountOneSide, generateAmountForBinRange, generateBinAmount, getAccountDiscriminator, getAmountIn, getAmountInBinsAskSide, getAmountInBinsBidSide, getAmountOut, getAndCapMaxActiveBinSlippage, getAutoFillAmountByRebalancedPosition, getBaseFee, getBinArrayAccountMetasCoverage, getBinArrayIndexesCoverage, getBinArrayInfoForNonContiguousBinIds, getBinArrayKeysCoverage, getBinArrayLowerUpperBinId, getBinArraysRequiredByPositionRange, getBinCount, getBinFromBinArray, getBinIdIndexInBinArray, getBinMaxAmountOut, getC, getEstimatedComputeUnitIxWithBuffer, getEstimatedComputeUnitUsageWithBuffer, getExcludedFeeAmount, getExtendedPositionBinCount, getExtraAccountMetasForTransferHook, getFeeMode, getIncludedFeeAmount, getLimitOrderLiquidity, getLiquidityStrategyParameterBuilder, getMultipleMintsExtraAccountMetasForTransferHook, getOrCreateATAInstruction, getPositionCount, getPositionCountByBinCount, getPositionExpandRentExemption, getPositionLowerUpperBinIdWithLiquidity, getPositionRentExemption, getPriceOfBinByBinId, getQPriceBaseFactor, getQPriceFromId, getRebalanceBinArrayIndexesAndBitmapCoverage, getSlippageMaxAmount, getSlippageMinAmount, getTokenBalance, getTokenDecimals, getTokenProgramId, getTokensMintFromPoolAddress, getTotalFee, getVariableFee, isBinIdWithinBinArray, isOverflowDefaultBinArrayBitmap, isPositionNoFee, isPositionNoReward, isSupportLimitOrder, limitOrderFilter, limitOrderLbPairFilter, limitOrderOwnerFilter, mulDiv, mulShr, parseLogs, positionLbPairFilter, positionOwnerFilter, positionV2Filter, presetParameter2BaseFactorFilter, presetParameter2BaseFeePowerFactor, presetParameter2BinStepFilter, range, resetUninvolvedLiquidityParams, sParameters, shlDiv, splitFee, suggestBalancedXParametersFromY, suggestBalancedYParametersFromX, swapExactInQuoteAtBin, swapExactOutQuoteAtBin, toAmountAskSide, toAmountBidSide, toAmountBothSide, toAmountIntoBins, toAmountsBothSideByStrategy, toStrategyParameters, toWeightDistribution, unwrapSOLInstruction, vParameters, wrapOracle, wrapPosition, wrapSOLInstruction };
26492
+ export { ADMIN, ALT_ADDRESS, AccountName, ActionType, ActivationType, AmountIntoBin, BASIS_POINT_MAX, BIN_ARRAY_BITMAP_FEE, BIN_ARRAY_BITMAP_FEE_BN, BIN_ARRAY_BITMAP_SIZE, BIN_ARRAY_DEFAULT_VERSION, BIN_ARRAY_FEE, BIN_ARRAY_FEE_BN, BidAskParameters, Bin, BinAndAmount, BinArray, BinArrayAccount, BinArrayBitmapExtension, BinArrayBitmapExtensionAccount, BinLiquidity, BinLiquidityDistribution, BinLiquidityReduction, BitmapType, ChunkCallback, ChunkCallbackInfo, ClmmProgram, Clock, ClockLayout, CollectFeeMode, CompressedBinDepositAmount, CompressedBinDepositAmounts, ConcreteFunctionType, CreateRebalancePositionParams, DEFAULT_BIN_PER_POSITION, DLMMError, DlmmSdkError, DynamicOracle, EXTENSION_BINARRAY_BITMAP_SIZE, EmissionRate, ExtendedPositionBinData, FEE_PRECISION, FeeInfo, FeeMode, FunctionType, GetOrCreateATAResponse, GetPositionsOpt, IAccountsCache, IDL, IDynamicOracle, ILM_BASE, IPosition, InitCustomizablePermissionlessPairIx, InitPermissionPairIx, InitializeMultiplePositionAndAddLiquidityByStrategyResponse, InitializeMultiplePositionAndAddLiquidityByStrategyResponse2, LBCLMM_PROGRAM_IDS, LIMIT_ORDER_BIN_DATA_SIZE, LIMIT_ORDER_FEE_SHARE, LIMIT_ORDER_MIN_SIZE, LMRewards, LbClmm, LbPair, LbPairAccount, LbPosition, LimitOrder, LimitOrderBinData, LimitOrderInfo, LimitOrderStatus, LiquidityOneSideParameter, LiquidityParameter, LiquidityParameterByStrategy, LiquidityParameterByStrategyOneSide, LiquidityParameterByWeight, LiquidityStrategyParameterBuilder, LiquidityStrategyParameters, MAX_ACTIVE_BIN_SLIPPAGE, MAX_BINS_PER_POSITION, MAX_BIN_ARRAY_SIZE, MAX_BIN_ID_PER_BIN_STEP, MAX_BIN_LENGTH_ALLOWED_IN_ONE_TX, MAX_BIN_PER_LIMIT_ORDER, MAX_CLAIM_ALL_ALLOWED, MAX_EXTRA_BIN_ARRAYS, MAX_FEE_RATE, MAX_RESIZE_LENGTH, MEMO_PROGRAM_ID, Network, Observation, Opt, Oracle, POOL_FEE, POOL_FEE_BN, POSITION_BIN_DATA_SIZE, POSITION_FEE, POSITION_FEE_BN, POSITION_MAX_LENGTH, POSITION_MIN_SIZE, PRECISION, PairLockInfo, PairStatus, PairType, ParsedLimitOrderWithPubkey, PlaceLimitOrderParams, PositionBinData, PositionData, PositionInfo, PositionLockInfo, PositionPermission, PositionV2, PositionV2Wrapper, PositionVersion, PresetParameter, PresetParameter2, ProgramStrategyParameter, ProgramStrategyType, REBALANCE_POSITION_PADDING, RebalanceAddLiquidityParam, RebalancePosition, RebalancePositionBinArrayRentalCostQuote, RebalancePositionResponse, RebalanceRemoveLiquidityParam, RebalanceWithDeposit, RebalanceWithWithdraw, RemainingAccountInfo, RemainingAccountsInfoSlice, ResizeSide, ResizeSideEnum, RewardInfo, RewardInfos, Rounding, SCALE, SCALE_OFFSET, SIMULATION_USER, SeedLiquidityCostBreakdown, SeedLiquidityResponse, SeedLiquiditySingleBinResponse, ShrinkMode, SimulateRebalanceResp, Strategy, StrategyParameters, StrategyType, SwapExactOutParams, SwapFee, SwapParams, SwapQuote, SwapQuoteExactOut, SwapWithPriceImpactParams, TInitializeMultiplePositionAndAddLiquidityParamsByStrategy, TInitializePositionAndAddLiquidityParams, TInitializePositionAndAddLiquidityParamsByStrategy, TOKEN_ACCOUNT_FEE, TOKEN_ACCOUNT_FEE_BN, TQuoteCreatePositionParams, TokenReserve, TwapResult, U64_MAX, UserFeeInfo, UserRewardInfo, autoFillXByStrategy, autoFillXByWeight, autoFillYByStrategy, autoFillYByWeight, binArrayLbPairFilter, binDeltaToMinMaxBinId, binIdToBinArrayIndex, buildBitFlagAndNegateStrategyParameters, buildLiquidityStrategyParameters, calculateBidAskDistribution, calculateNormalDistribution, calculatePositionSize, calculateSpotDistribution, calculateTransferFeeExcludedAmount, calculateTransferFeeIncludedAmount, capSlippagePercentage, chunkBinRange, chunkBinRangeIntoExtendedPositions, chunkDepositWithRebalanceEndpoint, chunkPositionBinRange, chunkedFetchMultipleBinArrayBitmapExtensionAccount, chunkedFetchMultiplePoolAccount, chunkedGetMultipleAccountInfos, chunkedGetProgramAccounts, chunks, compressBinAmount, computeBaseFactorFromFeeBps, computeFee, computeFeeFromAmount, computeProtocolFee, createProgram, decodeAccount, decodeExtendedPosition, decodeRewardPerTokenStored, DLMM as default, deriveBinArray, deriveBinArrayBitmapExtension, deriveCustomizablePermissionlessLbPair, deriveEventAuthority, deriveLbPair, deriveLbPair2, deriveLbPairWithPresetParamWithIndexKey, deriveOperator, deriveOracle, derivePermissionLbPair, derivePlaceHolderAccountMeta, derivePosition, derivePresetParameter, derivePresetParameter2, derivePresetParameterWithIndex, deriveReserve, deriveRewardVault, deriveTokenBadge, distributeAmountToCompressedBinsByRatio, encodePositionPermissions, enumerateBins, findNextBinArrayIndexWithLiquidity, findNextBinArrayWithLiquidity, findOptimumDecompressMultiplier, fromWeightDistributionToAmount, fromWeightDistributionToAmountOneSide, generateAmountForBinRange, generateBinAmount, getAccountDiscriminator, getAmountIn, getAmountInBinsAskSide, getAmountInBinsBidSide, getAmountOut, getAndCapMaxActiveBinSlippage, getAutoFillAmountByRebalancedPosition, getBaseFee, getBinArrayAccountMetasCoverage, getBinArrayIndexesCoverage, getBinArrayInfoForNonContiguousBinIds, getBinArrayKeysCoverage, getBinArrayLowerUpperBinId, getBinArraysRequiredByPositionRange, getBinCount, getBinFromBinArray, getBinIdIndexInBinArray, getBinMaxAmountOut, getC, getEstimatedComputeUnitIxWithBuffer, getEstimatedComputeUnitUsageWithBuffer, getExcludedFeeAmount, getExtendedPositionBinCount, getExtraAccountMetasForTransferHook, getFeeMode, getIncludedFeeAmount, getLimitOrderLiquidity, getLiquidityStrategyParameterBuilder, getMultipleMintsExtraAccountMetasForTransferHook, getOrCreateATAInstruction, getPositionCount, getPositionCountByBinCount, getPositionExpandRentExemption, getPositionLowerUpperBinIdWithLiquidity, getPositionRentExemption, getPriceOfBinByBinId, getQPriceBaseFactor, getQPriceFromId, getRebalanceBinArrayIndexesAndBitmapCoverage, getScaledUiAmountMultiplier, getSlippageMaxAmount, getSlippageMinAmount, getTokenBalance, getTokenDecimals, getTokenProgramId, getTokensMintFromPoolAddress, getTotalFee, getVariableFee, isBinIdWithinBinArray, isOverflowDefaultBinArrayBitmap, isPositionNoFee, isPositionNoReward, isSupportLimitOrder, limitOrderFilter, limitOrderLbPairFilter, limitOrderOwnerFilter, mulDiv, mulShr, parseLogs, positionLbPairFilter, positionOwnerFilter, positionV2Filter, presetParameter2BaseFactorFilter, presetParameter2BaseFeePowerFactor, presetParameter2BinStepFilter, range, resetUninvolvedLiquidityParams, sParameters, scaleAmountByMultiplier, scalePricePerToken, shlDiv, splitFee, suggestBalancedXParametersFromY, suggestBalancedYParametersFromX, swapExactInQuoteAtBin, swapExactOutQuoteAtBin, toAmountAskSide, toAmountBidSide, toAmountBothSide, toAmountIntoBins, toAmountsBothSideByStrategy, toStrategyParameters, toWeightDistribution, unwrapSOLInstruction, vParameters, wrapOracle, wrapPosition, wrapSOLInstruction };