@meteora-ag/dlmm 1.9.12-rc.1 → 1.9.13
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 +26 -24
- package/dist/index.d.ts +44 -9
- package/dist/index.js +253 -39
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +252 -38
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -12
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
|
|
322
|
-
|
|
|
323
|
-
| `create`
|
|
324
|
-
| `createMultiple`
|
|
325
|
-
| `getAllPresetParameters`
|
|
326
|
-
| `createPermissionLbPair`
|
|
327
|
-
| `getClaimableLMReward`
|
|
328
|
-
| `getClaimableSwapFee`
|
|
329
|
-
| `getAllLbPairPositionsByUser`
|
|
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
|
@@ -73,7 +73,6 @@ declare enum CollectFeeMode {
|
|
|
73
73
|
InputOnly = 0,
|
|
74
74
|
OnlyY = 1
|
|
75
75
|
}
|
|
76
|
-
declare const MAX_ALLOWED_REBALANCE_BIN_ARRAY_COUNT = 5;
|
|
77
76
|
|
|
78
77
|
/**
|
|
79
78
|
* Program IDL in camelCase format in order to be used in JS/TS.
|
|
@@ -12164,7 +12163,7 @@ interface SimulateRebalanceResp {
|
|
|
12164
12163
|
withdrawParams: RebalanceRemoveLiquidityParam[];
|
|
12165
12164
|
rentalCostLamports: BN$1;
|
|
12166
12165
|
}
|
|
12167
|
-
declare function getRebalanceBinArrayIndexesAndBitmapCoverage(adds: RebalanceAddLiquidityParam[], removes: RebalanceRemoveLiquidityParam[], activeId: number, pairAddress: PublicKey, programId: PublicKey
|
|
12166
|
+
declare function getRebalanceBinArrayIndexesAndBitmapCoverage(adds: RebalanceAddLiquidityParam[], removes: RebalanceRemoveLiquidityParam[], activeId: number, pairAddress: PublicKey, programId: PublicKey): {
|
|
12168
12167
|
binArrayIndexes: BN$1[];
|
|
12169
12168
|
binArrayBitmap: PublicKey;
|
|
12170
12169
|
};
|
|
@@ -12304,6 +12303,13 @@ interface PositionInfo {
|
|
|
12304
12303
|
tokenY: TokenReserve;
|
|
12305
12304
|
lbPairPositionsData: Array<LbPosition>;
|
|
12306
12305
|
}
|
|
12306
|
+
interface LimitOrderInfo {
|
|
12307
|
+
publicKey: PublicKey;
|
|
12308
|
+
lbPair: LbPair;
|
|
12309
|
+
tokenX: TokenReserve;
|
|
12310
|
+
tokenY: TokenReserve;
|
|
12311
|
+
limitOrders: Array<ParsedLimitOrderWithPubkey>;
|
|
12312
|
+
}
|
|
12307
12313
|
interface FeeInfo {
|
|
12308
12314
|
baseFeeRatePercentage: Decimal;
|
|
12309
12315
|
maxFeeRatePercentage: Decimal;
|
|
@@ -12399,7 +12405,6 @@ interface TInitializePositionAndAddLiquidityParamsByStrategy {
|
|
|
12399
12405
|
strategy: StrategyParameters;
|
|
12400
12406
|
user: PublicKey;
|
|
12401
12407
|
slippage?: number;
|
|
12402
|
-
includeSlippageForBinArray?: boolean;
|
|
12403
12408
|
}
|
|
12404
12409
|
interface InitializeMultiplePositionAndAddLiquidityByStrategyResponse {
|
|
12405
12410
|
instructionsByPositions: {
|
|
@@ -13452,7 +13457,7 @@ declare function resetUninvolvedLiquidityParams(minDeltaId: BN, maxDeltaId: BN,
|
|
|
13452
13457
|
deltaX: BN;
|
|
13453
13458
|
deltaY: BN;
|
|
13454
13459
|
};
|
|
13455
|
-
declare function chunkDepositWithRebalanceEndpoint(dlmm: DLMM, strategy: StrategyParameters, slippagePercentage: number, maxActiveBinSlippage: number, position: PublicKey, positionMinBinId: number, positionMaxBinId: number, liquidityStrategyParameters: LiquidityStrategyParameters, owner: PublicKey, payer: PublicKey, isParallel: boolean, skipSolWrappingOperation?: boolean
|
|
13460
|
+
declare function chunkDepositWithRebalanceEndpoint(dlmm: DLMM, strategy: StrategyParameters, slippagePercentage: number, maxActiveBinSlippage: number, position: PublicKey, positionMinBinId: number, positionMaxBinId: number, liquidityStrategyParameters: LiquidityStrategyParameters, owner: PublicKey, payer: PublicKey, isParallel: boolean, skipSolWrappingOperation?: boolean): Promise<TransactionInstruction[][]>;
|
|
13456
13461
|
declare function encodePositionPermissions(permissions: PositionPermission[]): number;
|
|
13457
13462
|
|
|
13458
13463
|
declare class DLMM {
|
|
@@ -13566,6 +13571,36 @@ declare class DLMM {
|
|
|
13566
13571
|
* Pair account, and the value is an object of PositionInfo
|
|
13567
13572
|
*/
|
|
13568
13573
|
static getAllLbPairPositionsByUser(connection: Connection, userPubKey: PublicKey, opt?: Opt, getPositionsOpt?: GetPositionsOpt): Promise<Map<string, PositionInfo>>;
|
|
13574
|
+
/**
|
|
13575
|
+
* The function `getPositionsByUserAndTokenAddress` retrieves all of a user's positions across every
|
|
13576
|
+
* DLMM pool that includes the given token mint as either the X or Y token.
|
|
13577
|
+
* @param {Connection} connection - The `connection` parameter is an instance of the `Connection`
|
|
13578
|
+
* class, which represents the connection to the Solana blockchain.
|
|
13579
|
+
* @param {PublicKey} userPubKey - The user's wallet public key.
|
|
13580
|
+
* @param {PublicKey} tokenMint - The token mint used to filter pools. Only positions in pools whose
|
|
13581
|
+
* `tokenXMint` or `tokenYMint` matches this mint are returned.
|
|
13582
|
+
* @param {Opt} [opt] - An optional object that contains additional options for the function.
|
|
13583
|
+
* @param {GetPositionsOpt} [getPositionsOpt] - Optional settings for chunked position fetching
|
|
13584
|
+
* @returns The function `getPositionsByUserAndTokenAddress` returns a `Promise` that resolves to a
|
|
13585
|
+
* `Map` object. The `Map` object contains key-value pairs, where the key is a string representing the
|
|
13586
|
+
* LB Pair account, and the value is an object of PositionInfo. Only pools containing `tokenMint` are
|
|
13587
|
+
* included.
|
|
13588
|
+
*/
|
|
13589
|
+
static getPositionsByUserAndTokenAddress(connection: Connection, userPubKey: PublicKey, tokenMint: PublicKey, opt?: Opt, getPositionsOpt?: GetPositionsOpt): Promise<Map<string, PositionInfo>>;
|
|
13590
|
+
/**
|
|
13591
|
+
* The function `getLimitOrdersByUserAndTokenAddress` retrieves all of a user's limit orders across
|
|
13592
|
+
* every DLMM pool that includes the given token mint as either the X or Y token.
|
|
13593
|
+
* @param {Connection} connection - The `connection` parameter is an instance of the `Connection`
|
|
13594
|
+
* class, which represents the connection to the Solana blockchain.
|
|
13595
|
+
* @param {PublicKey} userPubKey - The user's wallet public key.
|
|
13596
|
+
* @param {PublicKey} tokenMint - The token mint used to filter pools. Only limit orders in pools
|
|
13597
|
+
* whose `tokenXMint` or `tokenYMint` matches this mint are returned.
|
|
13598
|
+
* @param {Opt} [opt] - An optional object that contains additional options for the function.
|
|
13599
|
+
* @returns The function `getLimitOrdersByUserAndTokenAddress` returns a `Promise` that resolves to a
|
|
13600
|
+
* `Map` object keyed by LB Pair account (base58), where each value is a `LimitOrderInfo` containing
|
|
13601
|
+
* the LB pair state, token reserves, and the parsed limit orders for that pool.
|
|
13602
|
+
*/
|
|
13603
|
+
static getLimitOrdersByUserAndTokenAddress(connection: Connection, userPubKey: PublicKey, tokenMint: PublicKey, opt?: Opt): Promise<Map<string, LimitOrderInfo>>;
|
|
13569
13604
|
static getPricePerLamport(tokenXDecimal: number, tokenYDecimal: number, price: number): string;
|
|
13570
13605
|
static getBinIdFromPrice(price: string | number | Decimal, binStep: number, min: boolean): number;
|
|
13571
13606
|
/**
|
|
@@ -13887,7 +13922,7 @@ declare class DLMM {
|
|
|
13887
13922
|
* @param slippagePercentage The slippage percentage for adding liquidity.
|
|
13888
13923
|
* @returns An object with two properties: `initPositionIxs` and `addLiquidityIxs`.
|
|
13889
13924
|
*/
|
|
13890
|
-
initializeMultiplePositionAndAddLiquidityByStrategy2(positionKeypairGenerator: (count: number) => Promise<Keypair[]>, totalXAmount: BN, totalYAmount: BN, strategy: StrategyParameters, owner: PublicKey, payer: PublicKey, slippagePercentage: number, altAddress?: PublicKey
|
|
13925
|
+
initializeMultiplePositionAndAddLiquidityByStrategy2(positionKeypairGenerator: (count: number) => Promise<Keypair[]>, totalXAmount: BN, totalYAmount: BN, strategy: StrategyParameters, owner: PublicKey, payer: PublicKey, slippagePercentage: number, altAddress?: PublicKey): Promise<InitializeMultiplePositionAndAddLiquidityByStrategyResponse2>;
|
|
13891
13926
|
/**
|
|
13892
13927
|
* Creates multiple positions and adds liquidity by strategy without chainsaw issues.
|
|
13893
13928
|
* @param positionKeypairGenerator A function that generates a specified number of keypairs.
|
|
@@ -13899,7 +13934,7 @@ declare class DLMM {
|
|
|
13899
13934
|
* @param slippagePercentage The slippage percentage for adding liquidity.
|
|
13900
13935
|
* @returns An object with two properties: `initPositionIxs` and `addLiquidityIxs`.
|
|
13901
13936
|
*/
|
|
13902
|
-
initializeMultiplePositionAndAddLiquidityByStrategy(positionKeypairGenerator: (count: number) => Promise<Keypair[]>, totalXAmount: BN, totalYAmount: BN, strategy: StrategyParameters, owner: PublicKey, payer: PublicKey, slippagePercentage: number
|
|
13937
|
+
initializeMultiplePositionAndAddLiquidityByStrategy(positionKeypairGenerator: (count: number) => Promise<Keypair[]>, totalXAmount: BN, totalYAmount: BN, strategy: StrategyParameters, owner: PublicKey, payer: PublicKey, slippagePercentage: number): Promise<InitializeMultiplePositionAndAddLiquidityByStrategyResponse>;
|
|
13903
13938
|
/**
|
|
13904
13939
|
* Adds liquidity to an existing position using a specified strategy, allowing for chunkable transactions.
|
|
13905
13940
|
* If adding liquidity to bin out of position range, it will automatically expand. The limitation is 70 bins.
|
|
@@ -13914,7 +13949,7 @@ declare class DLMM {
|
|
|
13914
13949
|
*
|
|
13915
13950
|
* @returns {Promise<Transaction[]>} A promise that resolves to an array of transactions for adding liquidity.
|
|
13916
13951
|
*/
|
|
13917
|
-
addLiquidityByStrategyChunkable({ positionPubKey, totalXAmount, totalYAmount, strategy, user, slippage,
|
|
13952
|
+
addLiquidityByStrategyChunkable({ positionPubKey, totalXAmount, totalYAmount, strategy, user, slippage, }: TInitializePositionAndAddLiquidityParamsByStrategy): Promise<Transaction[]>;
|
|
13918
13953
|
/**
|
|
13919
13954
|
* The function `initializePositionAndAddLiquidityByStrategy` function is used to initializes a position and adds liquidity
|
|
13920
13955
|
* @param {TInitializePositionAndAddLiquidityParamsByStrategy}
|
|
@@ -14284,7 +14319,7 @@ declare class DLMM {
|
|
|
14284
14319
|
*
|
|
14285
14320
|
* @returns An object containing the instructions to initialize new bin arrays and the instruction to rebalance the position.
|
|
14286
14321
|
*/
|
|
14287
|
-
rebalancePosition(rebalancePositionResponse: RebalancePositionResponse, maxActiveBinSlippage: BN, rentPayer?: PublicKey, slippage?: number
|
|
14322
|
+
rebalancePosition(rebalancePositionResponse: RebalancePositionResponse, maxActiveBinSlippage: BN, rentPayer?: PublicKey, slippage?: number): Promise<{
|
|
14288
14323
|
initBinArrayInstructions: TransactionInstruction[];
|
|
14289
14324
|
rebalancePositionInstruction: TransactionInstruction[];
|
|
14290
14325
|
}>;
|
|
@@ -26428,4 +26463,4 @@ declare const limitOrderFilter: () => GetProgramAccountsFilter;
|
|
|
26428
26463
|
declare const limitOrderOwnerFilter: (owner: PublicKey) => GetProgramAccountsFilter;
|
|
26429
26464
|
declare const limitOrderLbPairFilter: (lbPair: PublicKey) => GetProgramAccountsFilter;
|
|
26430
26465
|
|
|
26431
|
-
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,
|
|
26466
|
+
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, 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 };
|