@meteora-ag/dlmm 1.3.13 → 1.3.14-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 +94 -177
- package/dist/index.js +537 -530
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +539 -532
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { PublicKey, TransactionInstruction, Connection, Transaction, Cluster } f
|
|
|
5
5
|
import Decimal from 'decimal.js';
|
|
6
6
|
|
|
7
7
|
type LbClmm = {
|
|
8
|
-
"version": "0.8.
|
|
8
|
+
"version": "0.8.2";
|
|
9
9
|
"name": "lb_clmm";
|
|
10
10
|
"constants": [
|
|
11
11
|
{
|
|
@@ -93,16 +93,6 @@ type LbClmm = {
|
|
|
93
93
|
};
|
|
94
94
|
"value": "15";
|
|
95
95
|
},
|
|
96
|
-
{
|
|
97
|
-
"name": "ILM_PROTOCOL_SHARE";
|
|
98
|
-
"type": "u16";
|
|
99
|
-
"value": "2000";
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"name": "PROTOCOL_SHARE";
|
|
103
|
-
"type": "u16";
|
|
104
|
-
"value": "500";
|
|
105
|
-
},
|
|
106
96
|
{
|
|
107
97
|
"name": "MAX_BIN_STEP";
|
|
108
98
|
"type": "u16";
|
|
@@ -375,7 +365,7 @@ type LbClmm = {
|
|
|
375
365
|
"isSigner": false;
|
|
376
366
|
},
|
|
377
367
|
{
|
|
378
|
-
"name": "
|
|
368
|
+
"name": "rent";
|
|
379
369
|
"isMut": false;
|
|
380
370
|
"isSigner": false;
|
|
381
371
|
},
|
|
@@ -1954,7 +1944,7 @@ type LbClmm = {
|
|
|
1954
1944
|
"args": [];
|
|
1955
1945
|
},
|
|
1956
1946
|
{
|
|
1957
|
-
"name": "
|
|
1947
|
+
"name": "updateFeeParameters";
|
|
1958
1948
|
"accounts": [
|
|
1959
1949
|
{
|
|
1960
1950
|
"name": "lbPair";
|
|
@@ -1981,40 +1971,7 @@ type LbClmm = {
|
|
|
1981
1971
|
{
|
|
1982
1972
|
"name": "feeParameter";
|
|
1983
1973
|
"type": {
|
|
1984
|
-
"defined": "
|
|
1985
|
-
};
|
|
1986
|
-
}
|
|
1987
|
-
];
|
|
1988
|
-
},
|
|
1989
|
-
{
|
|
1990
|
-
"name": "updateDynamicFeeParameters";
|
|
1991
|
-
"accounts": [
|
|
1992
|
-
{
|
|
1993
|
-
"name": "lbPair";
|
|
1994
|
-
"isMut": true;
|
|
1995
|
-
"isSigner": false;
|
|
1996
|
-
},
|
|
1997
|
-
{
|
|
1998
|
-
"name": "admin";
|
|
1999
|
-
"isMut": false;
|
|
2000
|
-
"isSigner": true;
|
|
2001
|
-
},
|
|
2002
|
-
{
|
|
2003
|
-
"name": "eventAuthority";
|
|
2004
|
-
"isMut": false;
|
|
2005
|
-
"isSigner": false;
|
|
2006
|
-
},
|
|
2007
|
-
{
|
|
2008
|
-
"name": "program";
|
|
2009
|
-
"isMut": false;
|
|
2010
|
-
"isSigner": false;
|
|
2011
|
-
}
|
|
2012
|
-
];
|
|
2013
|
-
"args": [
|
|
2014
|
-
{
|
|
2015
|
-
"name": "feeParameter";
|
|
2016
|
-
"type": {
|
|
2017
|
-
"defined": "DynamicFeeParameter";
|
|
1974
|
+
"defined": "FeeParameter";
|
|
2018
1975
|
};
|
|
2019
1976
|
}
|
|
2020
1977
|
];
|
|
@@ -2197,7 +2154,7 @@ type LbClmm = {
|
|
|
2197
2154
|
"args": [];
|
|
2198
2155
|
},
|
|
2199
2156
|
{
|
|
2200
|
-
"name": "
|
|
2157
|
+
"name": "togglePairStatus";
|
|
2201
2158
|
"accounts": [
|
|
2202
2159
|
{
|
|
2203
2160
|
"name": "lbPair";
|
|
@@ -2210,12 +2167,7 @@ type LbClmm = {
|
|
|
2210
2167
|
"isSigner": true;
|
|
2211
2168
|
}
|
|
2212
2169
|
];
|
|
2213
|
-
"args": [
|
|
2214
|
-
{
|
|
2215
|
-
"name": "status";
|
|
2216
|
-
"type": "u8";
|
|
2217
|
-
}
|
|
2218
|
-
];
|
|
2170
|
+
"args": [];
|
|
2219
2171
|
},
|
|
2220
2172
|
{
|
|
2221
2173
|
"name": "migratePosition";
|
|
@@ -3476,7 +3428,7 @@ type LbClmm = {
|
|
|
3476
3428
|
};
|
|
3477
3429
|
},
|
|
3478
3430
|
{
|
|
3479
|
-
"name": "
|
|
3431
|
+
"name": "FeeParameter";
|
|
3480
3432
|
"type": {
|
|
3481
3433
|
"kind": "struct";
|
|
3482
3434
|
"fields": [
|
|
@@ -3497,49 +3449,6 @@ type LbClmm = {
|
|
|
3497
3449
|
];
|
|
3498
3450
|
};
|
|
3499
3451
|
},
|
|
3500
|
-
{
|
|
3501
|
-
"name": "DynamicFeeParameter";
|
|
3502
|
-
"type": {
|
|
3503
|
-
"kind": "struct";
|
|
3504
|
-
"fields": [
|
|
3505
|
-
{
|
|
3506
|
-
"name": "filterPeriod";
|
|
3507
|
-
"docs": [
|
|
3508
|
-
"Filter period determine high frequency trading time window."
|
|
3509
|
-
];
|
|
3510
|
-
"type": "u16";
|
|
3511
|
-
},
|
|
3512
|
-
{
|
|
3513
|
-
"name": "decayPeriod";
|
|
3514
|
-
"docs": [
|
|
3515
|
-
"Decay period determine when the volatile fee start decay / decrease."
|
|
3516
|
-
];
|
|
3517
|
-
"type": "u16";
|
|
3518
|
-
},
|
|
3519
|
-
{
|
|
3520
|
-
"name": "reductionFactor";
|
|
3521
|
-
"docs": [
|
|
3522
|
-
"Reduction factor controls the volatile fee rate decrement rate."
|
|
3523
|
-
];
|
|
3524
|
-
"type": "u16";
|
|
3525
|
-
},
|
|
3526
|
-
{
|
|
3527
|
-
"name": "variableFeeControl";
|
|
3528
|
-
"docs": [
|
|
3529
|
-
"Used to scale the variable fee component depending on the dynamic of the market"
|
|
3530
|
-
];
|
|
3531
|
-
"type": "u32";
|
|
3532
|
-
},
|
|
3533
|
-
{
|
|
3534
|
-
"name": "maxVolatilityAccumulator";
|
|
3535
|
-
"docs": [
|
|
3536
|
-
"Maximum number of bin crossed can be accumulated. Used to cap volatile fee rate."
|
|
3537
|
-
];
|
|
3538
|
-
"type": "u32";
|
|
3539
|
-
}
|
|
3540
|
-
];
|
|
3541
|
-
};
|
|
3542
|
-
},
|
|
3543
3452
|
{
|
|
3544
3453
|
"name": "LiquidityParameterByStrategyOneSide";
|
|
3545
3454
|
"type": {
|
|
@@ -4905,41 +4814,6 @@ type LbClmm = {
|
|
|
4905
4814
|
}
|
|
4906
4815
|
];
|
|
4907
4816
|
},
|
|
4908
|
-
{
|
|
4909
|
-
"name": "DynamicFeeParameterUpdate";
|
|
4910
|
-
"fields": [
|
|
4911
|
-
{
|
|
4912
|
-
"name": "lbPair";
|
|
4913
|
-
"type": "publicKey";
|
|
4914
|
-
"index": false;
|
|
4915
|
-
},
|
|
4916
|
-
{
|
|
4917
|
-
"name": "filterPeriod";
|
|
4918
|
-
"type": "u16";
|
|
4919
|
-
"index": false;
|
|
4920
|
-
},
|
|
4921
|
-
{
|
|
4922
|
-
"name": "decayPeriod";
|
|
4923
|
-
"type": "u16";
|
|
4924
|
-
"index": false;
|
|
4925
|
-
},
|
|
4926
|
-
{
|
|
4927
|
-
"name": "reductionFactor";
|
|
4928
|
-
"type": "u16";
|
|
4929
|
-
"index": false;
|
|
4930
|
-
},
|
|
4931
|
-
{
|
|
4932
|
-
"name": "variableFeeControl";
|
|
4933
|
-
"type": "u32";
|
|
4934
|
-
"index": false;
|
|
4935
|
-
},
|
|
4936
|
-
{
|
|
4937
|
-
"name": "maxVolatilityAccumulator";
|
|
4938
|
-
"type": "u32";
|
|
4939
|
-
"index": false;
|
|
4940
|
-
}
|
|
4941
|
-
];
|
|
4942
|
-
},
|
|
4943
4817
|
{
|
|
4944
4818
|
"name": "IncreaseObservation";
|
|
4945
4819
|
"fields": [
|
|
@@ -5376,11 +5250,6 @@ type LbClmm = {
|
|
|
5376
5250
|
"code": 6065;
|
|
5377
5251
|
"name": "AlreadyPassPreActivationSwapPoint";
|
|
5378
5252
|
"msg": "Already pass pre-activation swap point";
|
|
5379
|
-
},
|
|
5380
|
-
{
|
|
5381
|
-
"code": 6066;
|
|
5382
|
-
"name": "InvalidStatus";
|
|
5383
|
-
"msg": "Invalid status";
|
|
5384
5253
|
}
|
|
5385
5254
|
];
|
|
5386
5255
|
};
|
|
@@ -5465,6 +5334,15 @@ declare enum PairType {
|
|
|
5465
5334
|
Permissioned = 1
|
|
5466
5335
|
}
|
|
5467
5336
|
declare const Strategy: {
|
|
5337
|
+
SpotOneSide: {
|
|
5338
|
+
spotOneSide: {};
|
|
5339
|
+
};
|
|
5340
|
+
CurveOneSide: {
|
|
5341
|
+
curveOneSide: {};
|
|
5342
|
+
};
|
|
5343
|
+
BidAskOneSide: {
|
|
5344
|
+
bidAskOneSide: {};
|
|
5345
|
+
};
|
|
5468
5346
|
SpotBalanced: {
|
|
5469
5347
|
spotBalanced: {};
|
|
5470
5348
|
};
|
|
@@ -5485,12 +5363,15 @@ declare const Strategy: {
|
|
|
5485
5363
|
};
|
|
5486
5364
|
};
|
|
5487
5365
|
declare enum StrategyType {
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5493
|
-
|
|
5366
|
+
SpotOneSide = 0,
|
|
5367
|
+
CurveOneSide = 1,
|
|
5368
|
+
BidAskOneSide = 2,
|
|
5369
|
+
SpotImBalanced = 3,
|
|
5370
|
+
CurveImBalanced = 4,
|
|
5371
|
+
BidAskImBalanced = 5,
|
|
5372
|
+
SpotBalanced = 6,
|
|
5373
|
+
CurveBalanced = 7,
|
|
5374
|
+
BidAskBalanced = 8
|
|
5494
5375
|
}
|
|
5495
5376
|
declare enum ActivationType {
|
|
5496
5377
|
Slot = 0,
|
|
@@ -5688,16 +5569,6 @@ declare enum PairStatus {
|
|
|
5688
5569
|
Enabled = 0,
|
|
5689
5570
|
Disabled = 1
|
|
5690
5571
|
}
|
|
5691
|
-
interface PairLockInfo {
|
|
5692
|
-
positions: Array<PositionLockInfo>;
|
|
5693
|
-
}
|
|
5694
|
-
interface PositionLockInfo {
|
|
5695
|
-
positionAddress: PublicKey;
|
|
5696
|
-
owner: PublicKey;
|
|
5697
|
-
tokenXAmount: string;
|
|
5698
|
-
tokenYAmount: string;
|
|
5699
|
-
lockReleasePoint: number;
|
|
5700
|
-
}
|
|
5701
5572
|
|
|
5702
5573
|
type Opt = {
|
|
5703
5574
|
cluster?: Cluster | "localhost";
|
|
@@ -5770,16 +5641,9 @@ declare class DLMM {
|
|
|
5770
5641
|
* Pair account, and the value is an object of PositionInfo
|
|
5771
5642
|
*/
|
|
5772
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[]>;
|
|
5773
5645
|
static getPricePerLamport(tokenXDecimal: number, tokenYDecimal: number, price: number): string;
|
|
5774
5646
|
static getBinIdFromPrice(price: string | number | Decimal, binStep: number, min: boolean): number;
|
|
5775
|
-
/**
|
|
5776
|
-
* The function `getLbPairLockInfo` retrieves all pair positions that has locked liquidity.
|
|
5777
|
-
* @param {number} [lockDurationOpt] - An optional value indicating the minimum position lock duration that the function should return.
|
|
5778
|
-
* Depending on the lbPair activationType, the param should be a number of seconds or a number of slots.
|
|
5779
|
-
* @returns The function `getLbPairLockInfo` returns a `Promise` that resolves to a `PairLockInfo`
|
|
5780
|
-
* object. The `PairLockInfo` object contains an array of `PositionLockInfo` objects.
|
|
5781
|
-
*/
|
|
5782
|
-
getLbPairLockInfo(lockDurationOpt?: number): Promise<PairLockInfo>;
|
|
5783
5647
|
/** Public methods */
|
|
5784
5648
|
static createPermissionLbPair(connection: Connection, binStep: BN, tokenX: PublicKey, tokenY: PublicKey, activeId: BN, baseKey: PublicKey, creatorKey: PublicKey, feeBps: BN, activationType: ActivationType, opt?: Opt): Promise<Transaction>;
|
|
5785
5649
|
static createCustomizablePermissionlessLbPair(connection: Connection, binStep: BN, tokenX: PublicKey, tokenY: PublicKey, activeId: BN, feeBps: BN, activationType: ActivationType, hasAlphaVault: boolean, creatorKey: PublicKey, activationPoint?: BN, opt?: Opt): Promise<Transaction>;
|
|
@@ -5931,19 +5795,6 @@ declare class DLMM {
|
|
|
5931
5795
|
maxBinId: number;
|
|
5932
5796
|
user: PublicKey;
|
|
5933
5797
|
}): Promise<Transaction>;
|
|
5934
|
-
/**
|
|
5935
|
-
* The function `getPosition` retrieves position information for a given public key and processes it
|
|
5936
|
-
* using various data to return a `LbPosition` object.
|
|
5937
|
-
* @param {PublicKey} positionPubKey - The `getPosition` function you provided is an asynchronous
|
|
5938
|
-
* function that fetches position information based on a given public key. Here's a breakdown of the
|
|
5939
|
-
* parameters used in the function:
|
|
5940
|
-
* @returns The `getPosition` function returns a Promise that resolves to an object of type
|
|
5941
|
-
* `LbPosition`. The object contains the following properties:
|
|
5942
|
-
* - `publicKey`: The public key of the position account
|
|
5943
|
-
* - `positionData`: Position Object
|
|
5944
|
-
* - `version`: The version of the position (in this case, `Position.V2`)
|
|
5945
|
-
*/
|
|
5946
|
-
getPosition(positionPubKey: PublicKey): Promise<LbPosition>;
|
|
5947
5798
|
/**
|
|
5948
5799
|
* The function `initializePositionAndAddLiquidityByStrategy` function is used to initializes a position and adds liquidity
|
|
5949
5800
|
* @param {TInitializePositionAndAddLiquidityParamsByStrategy}
|
|
@@ -6112,7 +5963,6 @@ declare class DLMM {
|
|
|
6112
5963
|
positions: LbPosition[];
|
|
6113
5964
|
}): Promise<Transaction[]>;
|
|
6114
5965
|
setActivationPoint(activationPoint: BN): Promise<Transaction>;
|
|
6115
|
-
setPairStatus(enabled: boolean): Promise<Transaction>;
|
|
6116
5966
|
/**
|
|
6117
5967
|
* The function `claimSwapFee` is used to claim swap fees for a specific position owned by a specific owner.
|
|
6118
5968
|
* @param
|
|
@@ -6389,6 +6239,10 @@ declare function autoFillXByWeight(activeId: number, binStep: number, amountY: B
|
|
|
6389
6239
|
weight: number;
|
|
6390
6240
|
}[]): BN;
|
|
6391
6241
|
|
|
6242
|
+
declare function toAmountsOneSideByStrategy(activeId: number, binStep: number, minBinId: number, maxBinId: number, amount: BN, strategyType: StrategyType, depositForY: boolean): {
|
|
6243
|
+
binId: number;
|
|
6244
|
+
amount: BN;
|
|
6245
|
+
}[];
|
|
6392
6246
|
declare function toAmountsBothSideByStrategy(activeId: number, binStep: number, minBinId: number, maxBinId: number, amountX: BN, amountY: BN, amountXInActiveBin: BN, amountYInActiveBin: BN, strategyType: StrategyType): {
|
|
6393
6247
|
binId: number;
|
|
6394
6248
|
amountX: BN;
|
|
@@ -6397,10 +6251,58 @@ declare function toAmountsBothSideByStrategy(activeId: number, binStep: number,
|
|
|
6397
6251
|
declare function autoFillYByStrategy(activeId: number, binStep: number, amountX: BN, amountXInActiveBin: BN, amountYInActiveBin: BN, minBinId: number, maxBinId: number, strategyType: StrategyType): BN;
|
|
6398
6252
|
declare function autoFillXByStrategy(activeId: number, binStep: number, amountY: BN, amountXInActiveBin: BN, amountYInActiveBin: BN, minBinId: number, maxBinId: number, strategyType: StrategyType): BN;
|
|
6399
6253
|
declare function toStrategyParameters({ maxBinId, minBinId, strategyType, singleSidedX, }: StrategyParameters): {
|
|
6254
|
+
minBinId: number;
|
|
6255
|
+
maxBinId: number;
|
|
6256
|
+
strategyType: {
|
|
6257
|
+
spotOneSide: {};
|
|
6258
|
+
curveOneSide?: undefined;
|
|
6259
|
+
bidAskOneSide?: undefined;
|
|
6260
|
+
spotBalanced?: undefined;
|
|
6261
|
+
curveBalanced?: undefined;
|
|
6262
|
+
bidAskBalanced?: undefined;
|
|
6263
|
+
spotImBalanced?: undefined;
|
|
6264
|
+
curveImBalanced?: undefined;
|
|
6265
|
+
bidAskImBalanced?: undefined;
|
|
6266
|
+
};
|
|
6267
|
+
parameteres: number[];
|
|
6268
|
+
} | {
|
|
6269
|
+
minBinId: number;
|
|
6270
|
+
maxBinId: number;
|
|
6271
|
+
strategyType: {
|
|
6272
|
+
curveOneSide: {};
|
|
6273
|
+
spotOneSide?: undefined;
|
|
6274
|
+
bidAskOneSide?: undefined;
|
|
6275
|
+
spotBalanced?: undefined;
|
|
6276
|
+
curveBalanced?: undefined;
|
|
6277
|
+
bidAskBalanced?: undefined;
|
|
6278
|
+
spotImBalanced?: undefined;
|
|
6279
|
+
curveImBalanced?: undefined;
|
|
6280
|
+
bidAskImBalanced?: undefined;
|
|
6281
|
+
};
|
|
6282
|
+
parameteres: number[];
|
|
6283
|
+
} | {
|
|
6284
|
+
minBinId: number;
|
|
6285
|
+
maxBinId: number;
|
|
6286
|
+
strategyType: {
|
|
6287
|
+
bidAskOneSide: {};
|
|
6288
|
+
spotOneSide?: undefined;
|
|
6289
|
+
curveOneSide?: undefined;
|
|
6290
|
+
spotBalanced?: undefined;
|
|
6291
|
+
curveBalanced?: undefined;
|
|
6292
|
+
bidAskBalanced?: undefined;
|
|
6293
|
+
spotImBalanced?: undefined;
|
|
6294
|
+
curveImBalanced?: undefined;
|
|
6295
|
+
bidAskImBalanced?: undefined;
|
|
6296
|
+
};
|
|
6297
|
+
parameteres: number[];
|
|
6298
|
+
} | {
|
|
6400
6299
|
minBinId: number;
|
|
6401
6300
|
maxBinId: number;
|
|
6402
6301
|
strategyType: {
|
|
6403
6302
|
spotBalanced: {};
|
|
6303
|
+
spotOneSide?: undefined;
|
|
6304
|
+
curveOneSide?: undefined;
|
|
6305
|
+
bidAskOneSide?: undefined;
|
|
6404
6306
|
curveBalanced?: undefined;
|
|
6405
6307
|
bidAskBalanced?: undefined;
|
|
6406
6308
|
spotImBalanced?: undefined;
|
|
@@ -6413,6 +6315,9 @@ declare function toStrategyParameters({ maxBinId, minBinId, strategyType, single
|
|
|
6413
6315
|
maxBinId: number;
|
|
6414
6316
|
strategyType: {
|
|
6415
6317
|
curveBalanced: {};
|
|
6318
|
+
spotOneSide?: undefined;
|
|
6319
|
+
curveOneSide?: undefined;
|
|
6320
|
+
bidAskOneSide?: undefined;
|
|
6416
6321
|
spotBalanced?: undefined;
|
|
6417
6322
|
bidAskBalanced?: undefined;
|
|
6418
6323
|
spotImBalanced?: undefined;
|
|
@@ -6425,6 +6330,9 @@ declare function toStrategyParameters({ maxBinId, minBinId, strategyType, single
|
|
|
6425
6330
|
maxBinId: number;
|
|
6426
6331
|
strategyType: {
|
|
6427
6332
|
bidAskBalanced: {};
|
|
6333
|
+
spotOneSide?: undefined;
|
|
6334
|
+
curveOneSide?: undefined;
|
|
6335
|
+
bidAskOneSide?: undefined;
|
|
6428
6336
|
spotBalanced?: undefined;
|
|
6429
6337
|
curveBalanced?: undefined;
|
|
6430
6338
|
spotImBalanced?: undefined;
|
|
@@ -6437,6 +6345,9 @@ declare function toStrategyParameters({ maxBinId, minBinId, strategyType, single
|
|
|
6437
6345
|
maxBinId: number;
|
|
6438
6346
|
strategyType: {
|
|
6439
6347
|
spotImBalanced: {};
|
|
6348
|
+
spotOneSide?: undefined;
|
|
6349
|
+
curveOneSide?: undefined;
|
|
6350
|
+
bidAskOneSide?: undefined;
|
|
6440
6351
|
spotBalanced?: undefined;
|
|
6441
6352
|
curveBalanced?: undefined;
|
|
6442
6353
|
bidAskBalanced?: undefined;
|
|
@@ -6449,6 +6360,9 @@ declare function toStrategyParameters({ maxBinId, minBinId, strategyType, single
|
|
|
6449
6360
|
maxBinId: number;
|
|
6450
6361
|
strategyType: {
|
|
6451
6362
|
curveImBalanced: {};
|
|
6363
|
+
spotOneSide?: undefined;
|
|
6364
|
+
curveOneSide?: undefined;
|
|
6365
|
+
bidAskOneSide?: undefined;
|
|
6452
6366
|
spotBalanced?: undefined;
|
|
6453
6367
|
curveBalanced?: undefined;
|
|
6454
6368
|
bidAskBalanced?: undefined;
|
|
@@ -6461,6 +6375,9 @@ declare function toStrategyParameters({ maxBinId, minBinId, strategyType, single
|
|
|
6461
6375
|
maxBinId: number;
|
|
6462
6376
|
strategyType: {
|
|
6463
6377
|
bidAskImBalanced: {};
|
|
6378
|
+
spotOneSide?: undefined;
|
|
6379
|
+
curveOneSide?: undefined;
|
|
6380
|
+
bidAskOneSide?: undefined;
|
|
6464
6381
|
spotBalanced?: undefined;
|
|
6465
6382
|
curveBalanced?: undefined;
|
|
6466
6383
|
bidAskBalanced?: undefined;
|
|
@@ -6629,4 +6546,4 @@ declare const MAX_BIN_PER_TX = 69;
|
|
|
6629
6546
|
declare const MAX_ACTIVE_BIN_SLIPPAGE = 3;
|
|
6630
6547
|
declare const ILM_BASE: PublicKey;
|
|
6631
6548
|
|
|
6632
|
-
export { ADMIN, ActivationType, BASIS_POINT_MAX, BIN_ARRAY_BITMAP_SIZE, BIN_ARRAY_FEE, Bin, BinAndAmount, BinArray, BinArrayAccount, BinArrayBitmapExtension, BinArrayBitmapExtensionAccount, BinLiquidity, BinLiquidityDistribution, BinLiquidityReduction, BitmapType, ClmmProgram, Clock, ClockLayout, CompressedBinDepositAmount, CompressedBinDepositAmounts, DLMMError, DlmmSdkError, EXTENSION_BINARRAY_BITMAP_SIZE, EmissionRate, FEE_PRECISION, FeeInfo, GetOrCreateATAResponse, IAccountsCache, IDL, ILM_BASE, InitCustomizablePermissionlessPairIx, InitPermissionPairIx, LBCLMM_PROGRAM_IDS, LMRewards, LbClmm, LbPair, LbPairAccount, LbPosition, LiquidityOneSideParameter, LiquidityParameter, LiquidityParameterByStrategy, LiquidityParameterByStrategyOneSide, LiquidityParameterByWeight, MAX_ACTIVE_BIN_SLIPPAGE, MAX_BIN_ARRAY_SIZE, MAX_BIN_LENGTH_ALLOWED_IN_ONE_TX, MAX_BIN_PER_POSITION, MAX_BIN_PER_TX, MAX_CLAIM_ALL_ALLOWED, MAX_FEE_RATE, Network, POSITION_FEE, PRECISION,
|
|
6549
|
+
export { ADMIN, ActivationType, BASIS_POINT_MAX, BIN_ARRAY_BITMAP_SIZE, BIN_ARRAY_FEE, Bin, BinAndAmount, BinArray, BinArrayAccount, BinArrayBitmapExtension, BinArrayBitmapExtensionAccount, BinLiquidity, BinLiquidityDistribution, BinLiquidityReduction, BitmapType, ClmmProgram, Clock, ClockLayout, CompressedBinDepositAmount, CompressedBinDepositAmounts, DLMMError, DlmmSdkError, EXTENSION_BINARRAY_BITMAP_SIZE, EmissionRate, FEE_PRECISION, FeeInfo, GetOrCreateATAResponse, IAccountsCache, IDL, ILM_BASE, InitCustomizablePermissionlessPairIx, InitPermissionPairIx, LBCLMM_PROGRAM_IDS, LMRewards, LbClmm, LbPair, LbPairAccount, LbPosition, LiquidityOneSideParameter, LiquidityParameter, LiquidityParameterByStrategy, LiquidityParameterByStrategyOneSide, LiquidityParameterByWeight, MAX_ACTIVE_BIN_SLIPPAGE, MAX_BIN_ARRAY_SIZE, MAX_BIN_LENGTH_ALLOWED_IN_ONE_TX, MAX_BIN_PER_POSITION, MAX_BIN_PER_TX, MAX_CLAIM_ALL_ALLOWED, MAX_FEE_RATE, Network, POSITION_FEE, PRECISION, PairStatus, PairType, Position, PositionBinData, PositionData, PositionInfo, PositionV2, PositionVersion, ProgramStrategyParameter, ProgramStrategyType, SCALE, SCALE_OFFSET, SIMULATION_USER, SeedLiquidityResponse, Strategy, StrategyParameters, StrategyType, SwapExactOutParams, SwapFee, SwapParams, SwapQuote, SwapQuoteExactOut, SwapWithPriceImpactParams, TInitializePositionAndAddLiquidityParams, TInitializePositionAndAddLiquidityParamsByStrategy, TQuoteCreatePositionParams, TokenReserve, autoFillXByStrategy, autoFillXByWeight, autoFillYByStrategy, autoFillYByWeight, binIdToBinArrayIndex, calculateBidAskDistribution, calculateNormalDistribution, calculateSpotDistribution, chunkedFetchMultipleBinArrayBitmapExtensionAccount, chunkedFetchMultiplePoolAccount, chunkedGetMultipleAccountInfos, chunks, computeFee, computeFeeFromAmount, computeProtocolFee, DLMM as default, deriveBinArray, deriveBinArrayBitmapExtension, deriveCustomizablePermissionlessLbPair, deriveLbPair, deriveLbPair2, deriveOracle, derivePermissionLbPair, derivePosition, derivePresetParameter, derivePresetParameter2, deriveReserve, enumerateBins, findNextBinArrayIndexWithLiquidity, findNextBinArrayWithLiquidity, fromWeightDistributionToAmount, fromWeightDistributionToAmountOneSide, getBaseFee, getBinArrayLowerUpperBinId, getBinArraysRequiredByPositionRange, getBinFromBinArray, getEstimatedComputeUnitIxWithBuffer, getEstimatedComputeUnitUsageWithBuffer, getOrCreateATAInstruction, getOutAmount, getPriceOfBinByBinId, getTokenBalance, getTokenDecimals, getTokensMintFromPoolAddress, getTotalFee, getVariableFee, isBinIdWithinBinArray, isOverflowDefaultBinArrayBitmap, parseLogs, range, sParameters, swapExactInQuoteAtBin, swapExactOutQuoteAtBin, toAmountAskSide, toAmountBidSide, toAmountBothSide, toAmountsBothSideByStrategy, toAmountsOneSideByStrategy, toStrategyParameters, toWeightDistribution, unwrapSOLInstruction, vParameters, wrapSOLInstruction };
|