@meteora-ag/dlmm 1.2.4-rc2.0 → 1.3.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 +333 -249
- package/dist/index.js +429 -289
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +420 -280
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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,6 +93,21 @@ type LbClmm = {
|
|
|
93
93
|
};
|
|
94
94
|
"value": "15";
|
|
95
95
|
},
|
|
96
|
+
{
|
|
97
|
+
"name": "MAX_BIN_STEP";
|
|
98
|
+
"type": "u16";
|
|
99
|
+
"value": "400";
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "MAX_BASE_FEE";
|
|
103
|
+
"type": "u128";
|
|
104
|
+
"value": "100_000_000";
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "MIN_BASE_FEE";
|
|
108
|
+
"type": "u128";
|
|
109
|
+
"value": "100_000";
|
|
110
|
+
},
|
|
96
111
|
{
|
|
97
112
|
"name": "BIN_ARRAY";
|
|
98
113
|
"type": "bytes";
|
|
@@ -290,6 +305,90 @@ type LbClmm = {
|
|
|
290
305
|
}
|
|
291
306
|
];
|
|
292
307
|
},
|
|
308
|
+
{
|
|
309
|
+
"name": "initializeCustomizablePermissionlessLbPair";
|
|
310
|
+
"accounts": [
|
|
311
|
+
{
|
|
312
|
+
"name": "lbPair";
|
|
313
|
+
"isMut": true;
|
|
314
|
+
"isSigner": false;
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"name": "binArrayBitmapExtension";
|
|
318
|
+
"isMut": true;
|
|
319
|
+
"isSigner": false;
|
|
320
|
+
"isOptional": true;
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"name": "tokenMintX";
|
|
324
|
+
"isMut": false;
|
|
325
|
+
"isSigner": false;
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"name": "tokenMintY";
|
|
329
|
+
"isMut": false;
|
|
330
|
+
"isSigner": false;
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"name": "reserveX";
|
|
334
|
+
"isMut": true;
|
|
335
|
+
"isSigner": false;
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"name": "reserveY";
|
|
339
|
+
"isMut": true;
|
|
340
|
+
"isSigner": false;
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"name": "oracle";
|
|
344
|
+
"isMut": true;
|
|
345
|
+
"isSigner": false;
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "userTokenX";
|
|
349
|
+
"isMut": false;
|
|
350
|
+
"isSigner": false;
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"name": "funder";
|
|
354
|
+
"isMut": true;
|
|
355
|
+
"isSigner": true;
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"name": "tokenProgram";
|
|
359
|
+
"isMut": false;
|
|
360
|
+
"isSigner": false;
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"name": "systemProgram";
|
|
364
|
+
"isMut": false;
|
|
365
|
+
"isSigner": false;
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"name": "rent";
|
|
369
|
+
"isMut": false;
|
|
370
|
+
"isSigner": false;
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"name": "eventAuthority";
|
|
374
|
+
"isMut": false;
|
|
375
|
+
"isSigner": false;
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"name": "program";
|
|
379
|
+
"isMut": false;
|
|
380
|
+
"isSigner": false;
|
|
381
|
+
}
|
|
382
|
+
];
|
|
383
|
+
"args": [
|
|
384
|
+
{
|
|
385
|
+
"name": "params";
|
|
386
|
+
"type": {
|
|
387
|
+
"defined": "CustomizableParams";
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
];
|
|
391
|
+
},
|
|
293
392
|
{
|
|
294
393
|
"name": "initializeBinArrayBitmapExtension";
|
|
295
394
|
"accounts": [
|
|
@@ -1022,6 +1121,11 @@ type LbClmm = {
|
|
|
1022
1121
|
"isMut": false;
|
|
1023
1122
|
"isSigner": false;
|
|
1024
1123
|
},
|
|
1124
|
+
{
|
|
1125
|
+
"name": "owner";
|
|
1126
|
+
"isMut": false;
|
|
1127
|
+
"isSigner": false;
|
|
1128
|
+
},
|
|
1025
1129
|
{
|
|
1026
1130
|
"name": "operator";
|
|
1027
1131
|
"isMut": false;
|
|
@@ -1031,12 +1135,17 @@ type LbClmm = {
|
|
|
1031
1135
|
];
|
|
1032
1136
|
},
|
|
1033
1137
|
{
|
|
1034
|
-
"name": "
|
|
1138
|
+
"name": "operatorTokenX";
|
|
1035
1139
|
"isMut": false;
|
|
1036
1140
|
"isSigner": false;
|
|
1037
1141
|
},
|
|
1038
1142
|
{
|
|
1039
|
-
"name": "
|
|
1143
|
+
"name": "ownerTokenX";
|
|
1144
|
+
"isMut": false;
|
|
1145
|
+
"isSigner": false;
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
"name": "systemProgram";
|
|
1040
1149
|
"isMut": false;
|
|
1041
1150
|
"isSigner": false;
|
|
1042
1151
|
},
|
|
@@ -1061,12 +1170,12 @@ type LbClmm = {
|
|
|
1061
1170
|
"type": "i32";
|
|
1062
1171
|
},
|
|
1063
1172
|
{
|
|
1064
|
-
"name": "
|
|
1173
|
+
"name": "feeOwner";
|
|
1065
1174
|
"type": "publicKey";
|
|
1066
1175
|
},
|
|
1067
1176
|
{
|
|
1068
|
-
"name": "
|
|
1069
|
-
"type": "
|
|
1177
|
+
"name": "lockReleasePoint";
|
|
1178
|
+
"type": "u64";
|
|
1070
1179
|
}
|
|
1071
1180
|
];
|
|
1072
1181
|
},
|
|
@@ -2044,73 +2153,6 @@ type LbClmm = {
|
|
|
2044
2153
|
];
|
|
2045
2154
|
"args": [];
|
|
2046
2155
|
},
|
|
2047
|
-
{
|
|
2048
|
-
"name": "removeLiquiditySingleSide";
|
|
2049
|
-
"accounts": [
|
|
2050
|
-
{
|
|
2051
|
-
"name": "position";
|
|
2052
|
-
"isMut": true;
|
|
2053
|
-
"isSigner": false;
|
|
2054
|
-
},
|
|
2055
|
-
{
|
|
2056
|
-
"name": "lbPair";
|
|
2057
|
-
"isMut": true;
|
|
2058
|
-
"isSigner": false;
|
|
2059
|
-
},
|
|
2060
|
-
{
|
|
2061
|
-
"name": "binArrayBitmapExtension";
|
|
2062
|
-
"isMut": true;
|
|
2063
|
-
"isSigner": false;
|
|
2064
|
-
"isOptional": true;
|
|
2065
|
-
},
|
|
2066
|
-
{
|
|
2067
|
-
"name": "userToken";
|
|
2068
|
-
"isMut": true;
|
|
2069
|
-
"isSigner": false;
|
|
2070
|
-
},
|
|
2071
|
-
{
|
|
2072
|
-
"name": "reserve";
|
|
2073
|
-
"isMut": true;
|
|
2074
|
-
"isSigner": false;
|
|
2075
|
-
},
|
|
2076
|
-
{
|
|
2077
|
-
"name": "tokenMint";
|
|
2078
|
-
"isMut": false;
|
|
2079
|
-
"isSigner": false;
|
|
2080
|
-
},
|
|
2081
|
-
{
|
|
2082
|
-
"name": "binArrayLower";
|
|
2083
|
-
"isMut": true;
|
|
2084
|
-
"isSigner": false;
|
|
2085
|
-
},
|
|
2086
|
-
{
|
|
2087
|
-
"name": "binArrayUpper";
|
|
2088
|
-
"isMut": true;
|
|
2089
|
-
"isSigner": false;
|
|
2090
|
-
},
|
|
2091
|
-
{
|
|
2092
|
-
"name": "sender";
|
|
2093
|
-
"isMut": false;
|
|
2094
|
-
"isSigner": true;
|
|
2095
|
-
},
|
|
2096
|
-
{
|
|
2097
|
-
"name": "tokenProgram";
|
|
2098
|
-
"isMut": false;
|
|
2099
|
-
"isSigner": false;
|
|
2100
|
-
},
|
|
2101
|
-
{
|
|
2102
|
-
"name": "eventAuthority";
|
|
2103
|
-
"isMut": false;
|
|
2104
|
-
"isSigner": false;
|
|
2105
|
-
},
|
|
2106
|
-
{
|
|
2107
|
-
"name": "program";
|
|
2108
|
-
"isMut": false;
|
|
2109
|
-
"isSigner": false;
|
|
2110
|
-
}
|
|
2111
|
-
];
|
|
2112
|
-
"args": [];
|
|
2113
|
-
},
|
|
2114
2156
|
{
|
|
2115
2157
|
"name": "togglePairStatus";
|
|
2116
2158
|
"accounts": [
|
|
@@ -2127,27 +2169,6 @@ type LbClmm = {
|
|
|
2127
2169
|
];
|
|
2128
2170
|
"args": [];
|
|
2129
2171
|
},
|
|
2130
|
-
{
|
|
2131
|
-
"name": "updateWhitelistedWallet";
|
|
2132
|
-
"accounts": [
|
|
2133
|
-
{
|
|
2134
|
-
"name": "lbPair";
|
|
2135
|
-
"isMut": true;
|
|
2136
|
-
"isSigner": false;
|
|
2137
|
-
},
|
|
2138
|
-
{
|
|
2139
|
-
"name": "creator";
|
|
2140
|
-
"isMut": false;
|
|
2141
|
-
"isSigner": true;
|
|
2142
|
-
}
|
|
2143
|
-
];
|
|
2144
|
-
"args": [
|
|
2145
|
-
{
|
|
2146
|
-
"name": "wallet";
|
|
2147
|
-
"type": "publicKey";
|
|
2148
|
-
}
|
|
2149
|
-
];
|
|
2150
|
-
},
|
|
2151
2172
|
{
|
|
2152
2173
|
"name": "migratePosition";
|
|
2153
2174
|
"accounts": [
|
|
@@ -2323,42 +2344,6 @@ type LbClmm = {
|
|
|
2323
2344
|
}
|
|
2324
2345
|
];
|
|
2325
2346
|
},
|
|
2326
|
-
{
|
|
2327
|
-
"name": "setLockReleasePoint";
|
|
2328
|
-
"accounts": [
|
|
2329
|
-
{
|
|
2330
|
-
"name": "position";
|
|
2331
|
-
"isMut": true;
|
|
2332
|
-
"isSigner": false;
|
|
2333
|
-
},
|
|
2334
|
-
{
|
|
2335
|
-
"name": "lbPair";
|
|
2336
|
-
"isMut": false;
|
|
2337
|
-
"isSigner": false;
|
|
2338
|
-
},
|
|
2339
|
-
{
|
|
2340
|
-
"name": "sender";
|
|
2341
|
-
"isMut": false;
|
|
2342
|
-
"isSigner": true;
|
|
2343
|
-
},
|
|
2344
|
-
{
|
|
2345
|
-
"name": "eventAuthority";
|
|
2346
|
-
"isMut": false;
|
|
2347
|
-
"isSigner": false;
|
|
2348
|
-
},
|
|
2349
|
-
{
|
|
2350
|
-
"name": "program";
|
|
2351
|
-
"isMut": false;
|
|
2352
|
-
"isSigner": false;
|
|
2353
|
-
}
|
|
2354
|
-
];
|
|
2355
|
-
"args": [
|
|
2356
|
-
{
|
|
2357
|
-
"name": "newLockReleasePoint";
|
|
2358
|
-
"type": "u64";
|
|
2359
|
-
}
|
|
2360
|
-
];
|
|
2361
|
-
},
|
|
2362
2347
|
{
|
|
2363
2348
|
"name": "removeLiquidityByRange";
|
|
2364
2349
|
"accounts": [
|
|
@@ -2594,7 +2579,7 @@ type LbClmm = {
|
|
|
2594
2579
|
"args": [
|
|
2595
2580
|
{
|
|
2596
2581
|
"name": "preActivationDuration";
|
|
2597
|
-
"type": "
|
|
2582
|
+
"type": "u64";
|
|
2598
2583
|
}
|
|
2599
2584
|
];
|
|
2600
2585
|
},
|
|
@@ -2905,11 +2890,16 @@ type LbClmm = {
|
|
|
2905
2890
|
"type": "i64";
|
|
2906
2891
|
},
|
|
2907
2892
|
{
|
|
2908
|
-
"name": "
|
|
2893
|
+
"name": "padding2";
|
|
2909
2894
|
"docs": [
|
|
2910
|
-
"
|
|
2895
|
+
"_padding_2, previous whitelisted_wallet, BE CAREFUL FOR TOMBSTONE WHEN REUSE !!"
|
|
2911
2896
|
];
|
|
2912
|
-
"type":
|
|
2897
|
+
"type": {
|
|
2898
|
+
"array": [
|
|
2899
|
+
"u8",
|
|
2900
|
+
32
|
|
2901
|
+
];
|
|
2902
|
+
};
|
|
2913
2903
|
},
|
|
2914
2904
|
{
|
|
2915
2905
|
"name": "preActivationSwapAddress";
|
|
@@ -2940,9 +2930,9 @@ type LbClmm = {
|
|
|
2940
2930
|
"type": "u64";
|
|
2941
2931
|
},
|
|
2942
2932
|
{
|
|
2943
|
-
"name": "
|
|
2933
|
+
"name": "padding3";
|
|
2944
2934
|
"docs": [
|
|
2945
|
-
"_padding
|
|
2935
|
+
"_padding 3 is reclaimed free space from swap_cap_deactivate_point and swap_cap_amount before, BE CAREFUL FOR TOMBSTONE WHEN REUSE !!"
|
|
2946
2936
|
];
|
|
2947
2937
|
"type": {
|
|
2948
2938
|
"array": [
|
|
@@ -2952,9 +2942,9 @@ type LbClmm = {
|
|
|
2952
2942
|
};
|
|
2953
2943
|
},
|
|
2954
2944
|
{
|
|
2955
|
-
"name": "
|
|
2945
|
+
"name": "padding4";
|
|
2956
2946
|
"docs": [
|
|
2957
|
-
"
|
|
2947
|
+
"_padding_4, previous lock_duration, BE CAREFUL FOR TOMBSTONE WHEN REUSE !!"
|
|
2958
2948
|
];
|
|
2959
2949
|
"type": "u64";
|
|
2960
2950
|
},
|
|
@@ -3251,9 +3241,9 @@ type LbClmm = {
|
|
|
3251
3241
|
"type": "u64";
|
|
3252
3242
|
},
|
|
3253
3243
|
{
|
|
3254
|
-
"name": "
|
|
3244
|
+
"name": "padding0";
|
|
3255
3245
|
"docs": [
|
|
3256
|
-
"
|
|
3246
|
+
"_padding_0, previous subjected_to_bootstrap_liquidity_locking, BE CAREFUL FOR TOMBSTONE WHEN REUSE !!"
|
|
3257
3247
|
];
|
|
3258
3248
|
"type": "u8";
|
|
3259
3249
|
},
|
|
@@ -3359,6 +3349,106 @@ type LbClmm = {
|
|
|
3359
3349
|
}
|
|
3360
3350
|
];
|
|
3361
3351
|
"types": [
|
|
3352
|
+
{
|
|
3353
|
+
"name": "InitPresetParametersIx";
|
|
3354
|
+
"type": {
|
|
3355
|
+
"kind": "struct";
|
|
3356
|
+
"fields": [
|
|
3357
|
+
{
|
|
3358
|
+
"name": "binStep";
|
|
3359
|
+
"docs": [
|
|
3360
|
+
"Bin step. Represent the price increment / decrement."
|
|
3361
|
+
];
|
|
3362
|
+
"type": "u16";
|
|
3363
|
+
},
|
|
3364
|
+
{
|
|
3365
|
+
"name": "baseFactor";
|
|
3366
|
+
"docs": [
|
|
3367
|
+
"Used for base fee calculation. base_fee_rate = base_factor * bin_step"
|
|
3368
|
+
];
|
|
3369
|
+
"type": "u16";
|
|
3370
|
+
},
|
|
3371
|
+
{
|
|
3372
|
+
"name": "filterPeriod";
|
|
3373
|
+
"docs": [
|
|
3374
|
+
"Filter period determine high frequency trading time window."
|
|
3375
|
+
];
|
|
3376
|
+
"type": "u16";
|
|
3377
|
+
},
|
|
3378
|
+
{
|
|
3379
|
+
"name": "decayPeriod";
|
|
3380
|
+
"docs": [
|
|
3381
|
+
"Decay period determine when the volatile fee start decay / decrease."
|
|
3382
|
+
];
|
|
3383
|
+
"type": "u16";
|
|
3384
|
+
},
|
|
3385
|
+
{
|
|
3386
|
+
"name": "reductionFactor";
|
|
3387
|
+
"docs": [
|
|
3388
|
+
"Reduction factor controls the volatile fee rate decrement rate."
|
|
3389
|
+
];
|
|
3390
|
+
"type": "u16";
|
|
3391
|
+
},
|
|
3392
|
+
{
|
|
3393
|
+
"name": "variableFeeControl";
|
|
3394
|
+
"docs": [
|
|
3395
|
+
"Used to scale the variable fee component depending on the dynamic of the market"
|
|
3396
|
+
];
|
|
3397
|
+
"type": "u32";
|
|
3398
|
+
},
|
|
3399
|
+
{
|
|
3400
|
+
"name": "maxVolatilityAccumulator";
|
|
3401
|
+
"docs": [
|
|
3402
|
+
"Maximum number of bin crossed can be accumulated. Used to cap volatile fee rate."
|
|
3403
|
+
];
|
|
3404
|
+
"type": "u32";
|
|
3405
|
+
},
|
|
3406
|
+
{
|
|
3407
|
+
"name": "minBinId";
|
|
3408
|
+
"docs": [
|
|
3409
|
+
"Min bin id supported by the pool based on the configured bin step."
|
|
3410
|
+
];
|
|
3411
|
+
"type": "i32";
|
|
3412
|
+
},
|
|
3413
|
+
{
|
|
3414
|
+
"name": "maxBinId";
|
|
3415
|
+
"docs": [
|
|
3416
|
+
"Max bin id supported by the pool based on the configured bin step."
|
|
3417
|
+
];
|
|
3418
|
+
"type": "i32";
|
|
3419
|
+
},
|
|
3420
|
+
{
|
|
3421
|
+
"name": "protocolShare";
|
|
3422
|
+
"docs": [
|
|
3423
|
+
"Portion of swap fees retained by the protocol by controlling protocol_share parameter. protocol_swap_fee = protocol_share * total_swap_fee"
|
|
3424
|
+
];
|
|
3425
|
+
"type": "u16";
|
|
3426
|
+
}
|
|
3427
|
+
];
|
|
3428
|
+
};
|
|
3429
|
+
},
|
|
3430
|
+
{
|
|
3431
|
+
"name": "FeeParameter";
|
|
3432
|
+
"type": {
|
|
3433
|
+
"kind": "struct";
|
|
3434
|
+
"fields": [
|
|
3435
|
+
{
|
|
3436
|
+
"name": "protocolShare";
|
|
3437
|
+
"docs": [
|
|
3438
|
+
"Portion of swap fees retained by the protocol by controlling protocol_share parameter. protocol_swap_fee = protocol_share * total_swap_fee"
|
|
3439
|
+
];
|
|
3440
|
+
"type": "u16";
|
|
3441
|
+
},
|
|
3442
|
+
{
|
|
3443
|
+
"name": "baseFactor";
|
|
3444
|
+
"docs": [
|
|
3445
|
+
"Base factor for base fee rate"
|
|
3446
|
+
];
|
|
3447
|
+
"type": "u16";
|
|
3448
|
+
}
|
|
3449
|
+
];
|
|
3450
|
+
};
|
|
3451
|
+
},
|
|
3362
3452
|
{
|
|
3363
3453
|
"name": "LiquidityParameterByStrategyOneSide";
|
|
3364
3454
|
"type": {
|
|
@@ -3693,137 +3783,97 @@ type LbClmm = {
|
|
|
3693
3783
|
};
|
|
3694
3784
|
},
|
|
3695
3785
|
{
|
|
3696
|
-
"name": "
|
|
3786
|
+
"name": "CustomizableParams";
|
|
3697
3787
|
"type": {
|
|
3698
3788
|
"kind": "struct";
|
|
3699
3789
|
"fields": [
|
|
3700
3790
|
{
|
|
3701
3791
|
"name": "activeId";
|
|
3792
|
+
"docs": [
|
|
3793
|
+
"Pool price"
|
|
3794
|
+
];
|
|
3702
3795
|
"type": "i32";
|
|
3703
3796
|
},
|
|
3704
|
-
{
|
|
3705
|
-
"name": "binStep";
|
|
3706
|
-
"type": "u16";
|
|
3707
|
-
},
|
|
3708
|
-
{
|
|
3709
|
-
"name": "baseFactor";
|
|
3710
|
-
"type": "u16";
|
|
3711
|
-
},
|
|
3712
|
-
{
|
|
3713
|
-
"name": "minBinId";
|
|
3714
|
-
"type": "i32";
|
|
3715
|
-
},
|
|
3716
|
-
{
|
|
3717
|
-
"name": "maxBinId";
|
|
3718
|
-
"type": "i32";
|
|
3719
|
-
},
|
|
3720
|
-
{
|
|
3721
|
-
"name": "lockDuration";
|
|
3722
|
-
"type": "u64";
|
|
3723
|
-
},
|
|
3724
|
-
{
|
|
3725
|
-
"name": "activationType";
|
|
3726
|
-
"type": "u8";
|
|
3727
|
-
}
|
|
3728
|
-
];
|
|
3729
|
-
};
|
|
3730
|
-
},
|
|
3731
|
-
{
|
|
3732
|
-
"name": "InitPresetParametersIx";
|
|
3733
|
-
"type": {
|
|
3734
|
-
"kind": "struct";
|
|
3735
|
-
"fields": [
|
|
3736
3797
|
{
|
|
3737
3798
|
"name": "binStep";
|
|
3738
3799
|
"docs": [
|
|
3739
|
-
"Bin step
|
|
3800
|
+
"Bin step"
|
|
3740
3801
|
];
|
|
3741
3802
|
"type": "u16";
|
|
3742
3803
|
},
|
|
3743
3804
|
{
|
|
3744
3805
|
"name": "baseFactor";
|
|
3745
3806
|
"docs": [
|
|
3746
|
-
"
|
|
3747
|
-
];
|
|
3748
|
-
"type": "u16";
|
|
3749
|
-
},
|
|
3750
|
-
{
|
|
3751
|
-
"name": "filterPeriod";
|
|
3752
|
-
"docs": [
|
|
3753
|
-
"Filter period determine high frequency trading time window."
|
|
3807
|
+
"Base factor"
|
|
3754
3808
|
];
|
|
3755
3809
|
"type": "u16";
|
|
3756
3810
|
},
|
|
3757
3811
|
{
|
|
3758
|
-
"name": "
|
|
3759
|
-
"docs": [
|
|
3760
|
-
"Decay period determine when the volatile fee start decay / decrease."
|
|
3761
|
-
];
|
|
3762
|
-
"type": "u16";
|
|
3763
|
-
},
|
|
3764
|
-
{
|
|
3765
|
-
"name": "reductionFactor";
|
|
3766
|
-
"docs": [
|
|
3767
|
-
"Reduction factor controls the volatile fee rate decrement rate."
|
|
3768
|
-
];
|
|
3769
|
-
"type": "u16";
|
|
3770
|
-
},
|
|
3771
|
-
{
|
|
3772
|
-
"name": "variableFeeControl";
|
|
3773
|
-
"docs": [
|
|
3774
|
-
"Used to scale the variable fee component depending on the dynamic of the market"
|
|
3775
|
-
];
|
|
3776
|
-
"type": "u32";
|
|
3777
|
-
},
|
|
3778
|
-
{
|
|
3779
|
-
"name": "maxVolatilityAccumulator";
|
|
3812
|
+
"name": "activationType";
|
|
3780
3813
|
"docs": [
|
|
3781
|
-
"
|
|
3814
|
+
"Activation type. 0 = Slot, 1 = Time. Check ActivationType enum"
|
|
3782
3815
|
];
|
|
3783
|
-
"type": "
|
|
3816
|
+
"type": "u8";
|
|
3784
3817
|
},
|
|
3785
3818
|
{
|
|
3786
|
-
"name": "
|
|
3819
|
+
"name": "hasAlphaVault";
|
|
3787
3820
|
"docs": [
|
|
3788
|
-
"
|
|
3821
|
+
"Whether the pool has an alpha vault"
|
|
3789
3822
|
];
|
|
3790
|
-
"type": "
|
|
3823
|
+
"type": "bool";
|
|
3791
3824
|
},
|
|
3792
3825
|
{
|
|
3793
|
-
"name": "
|
|
3826
|
+
"name": "activationPoint";
|
|
3794
3827
|
"docs": [
|
|
3795
|
-
"
|
|
3828
|
+
"Decide when does the pool start trade. None = Now"
|
|
3796
3829
|
];
|
|
3797
|
-
"type":
|
|
3830
|
+
"type": {
|
|
3831
|
+
"option": "u64";
|
|
3832
|
+
};
|
|
3798
3833
|
},
|
|
3799
3834
|
{
|
|
3800
|
-
"name": "
|
|
3835
|
+
"name": "padding";
|
|
3801
3836
|
"docs": [
|
|
3802
|
-
"
|
|
3837
|
+
"Padding, for future use"
|
|
3803
3838
|
];
|
|
3804
|
-
"type":
|
|
3839
|
+
"type": {
|
|
3840
|
+
"array": [
|
|
3841
|
+
"u8",
|
|
3842
|
+
64
|
|
3843
|
+
];
|
|
3844
|
+
};
|
|
3805
3845
|
}
|
|
3806
3846
|
];
|
|
3807
3847
|
};
|
|
3808
3848
|
},
|
|
3809
3849
|
{
|
|
3810
|
-
"name": "
|
|
3850
|
+
"name": "InitPermissionPairIx";
|
|
3811
3851
|
"type": {
|
|
3812
3852
|
"kind": "struct";
|
|
3813
3853
|
"fields": [
|
|
3814
3854
|
{
|
|
3815
|
-
"name": "
|
|
3816
|
-
"
|
|
3817
|
-
|
|
3818
|
-
|
|
3855
|
+
"name": "activeId";
|
|
3856
|
+
"type": "i32";
|
|
3857
|
+
},
|
|
3858
|
+
{
|
|
3859
|
+
"name": "binStep";
|
|
3819
3860
|
"type": "u16";
|
|
3820
3861
|
},
|
|
3821
3862
|
{
|
|
3822
3863
|
"name": "baseFactor";
|
|
3823
|
-
"docs": [
|
|
3824
|
-
"Base factor for base fee rate"
|
|
3825
|
-
];
|
|
3826
3864
|
"type": "u16";
|
|
3865
|
+
},
|
|
3866
|
+
{
|
|
3867
|
+
"name": "minBinId";
|
|
3868
|
+
"type": "i32";
|
|
3869
|
+
},
|
|
3870
|
+
{
|
|
3871
|
+
"name": "maxBinId";
|
|
3872
|
+
"type": "i32";
|
|
3873
|
+
},
|
|
3874
|
+
{
|
|
3875
|
+
"name": "activationType";
|
|
3876
|
+
"type": "u8";
|
|
3827
3877
|
}
|
|
3828
3878
|
];
|
|
3829
3879
|
};
|
|
@@ -4282,35 +4332,35 @@ type LbClmm = {
|
|
|
4282
4332
|
};
|
|
4283
4333
|
},
|
|
4284
4334
|
{
|
|
4285
|
-
"name": "
|
|
4335
|
+
"name": "ActivationType";
|
|
4286
4336
|
"docs": [
|
|
4287
|
-
"
|
|
4337
|
+
"Type of the activation"
|
|
4288
4338
|
];
|
|
4289
4339
|
"type": {
|
|
4290
4340
|
"kind": "enum";
|
|
4291
4341
|
"variants": [
|
|
4292
4342
|
{
|
|
4293
|
-
"name": "
|
|
4343
|
+
"name": "Slot";
|
|
4294
4344
|
},
|
|
4295
4345
|
{
|
|
4296
|
-
"name": "
|
|
4346
|
+
"name": "Timestamp";
|
|
4297
4347
|
}
|
|
4298
4348
|
];
|
|
4299
4349
|
};
|
|
4300
4350
|
},
|
|
4301
4351
|
{
|
|
4302
|
-
"name": "
|
|
4352
|
+
"name": "LayoutVersion";
|
|
4303
4353
|
"docs": [
|
|
4304
|
-
"
|
|
4354
|
+
"Layout version"
|
|
4305
4355
|
];
|
|
4306
4356
|
"type": {
|
|
4307
4357
|
"kind": "enum";
|
|
4308
4358
|
"variants": [
|
|
4309
4359
|
{
|
|
4310
|
-
"name": "
|
|
4360
|
+
"name": "V0";
|
|
4311
4361
|
},
|
|
4312
4362
|
{
|
|
4313
|
-
"name": "
|
|
4363
|
+
"name": "V1";
|
|
4314
4364
|
}
|
|
4315
4365
|
];
|
|
4316
4366
|
};
|
|
@@ -4318,7 +4368,7 @@ type LbClmm = {
|
|
|
4318
4368
|
{
|
|
4319
4369
|
"name": "PairType";
|
|
4320
4370
|
"docs": [
|
|
4321
|
-
"Type of the Pair. 0 = Permissionless, 1 = Permission. Putting 0 as permissionless for backward compatibility."
|
|
4371
|
+
"Type of the Pair. 0 = Permissionless, 1 = Permission, 2 = CustomizablePermissionless. Putting 0 as permissionless for backward compatibility."
|
|
4322
4372
|
];
|
|
4323
4373
|
"type": {
|
|
4324
4374
|
"kind": "enum";
|
|
@@ -4328,6 +4378,9 @@ type LbClmm = {
|
|
|
4328
4378
|
},
|
|
4329
4379
|
{
|
|
4330
4380
|
"name": "Permission";
|
|
4381
|
+
},
|
|
4382
|
+
{
|
|
4383
|
+
"name": "CustomizablePermissionless";
|
|
4331
4384
|
}
|
|
4332
4385
|
];
|
|
4333
4386
|
};
|
|
@@ -5162,6 +5215,41 @@ type LbClmm = {
|
|
|
5162
5215
|
"code": 6058;
|
|
5163
5216
|
"name": "InvalidActivationType";
|
|
5164
5217
|
"msg": "Invalid activation type";
|
|
5218
|
+
},
|
|
5219
|
+
{
|
|
5220
|
+
"code": 6059;
|
|
5221
|
+
"name": "InvalidActivationDuration";
|
|
5222
|
+
"msg": "Invalid activation duration";
|
|
5223
|
+
},
|
|
5224
|
+
{
|
|
5225
|
+
"code": 6060;
|
|
5226
|
+
"name": "MissingTokenAmountAsTokenLaunchProof";
|
|
5227
|
+
"msg": "Missing token amount as token launch owner proof";
|
|
5228
|
+
},
|
|
5229
|
+
{
|
|
5230
|
+
"code": 6061;
|
|
5231
|
+
"name": "InvalidQuoteToken";
|
|
5232
|
+
"msg": "Quote token must be SOL or USDC";
|
|
5233
|
+
},
|
|
5234
|
+
{
|
|
5235
|
+
"code": 6062;
|
|
5236
|
+
"name": "InvalidBinStep";
|
|
5237
|
+
"msg": "Invalid bin step";
|
|
5238
|
+
},
|
|
5239
|
+
{
|
|
5240
|
+
"code": 6063;
|
|
5241
|
+
"name": "InvalidBaseFee";
|
|
5242
|
+
"msg": "Invalid base fee";
|
|
5243
|
+
},
|
|
5244
|
+
{
|
|
5245
|
+
"code": 6064;
|
|
5246
|
+
"name": "InvalidPreActivationDuration";
|
|
5247
|
+
"msg": "Invalid pre-activation duration";
|
|
5248
|
+
},
|
|
5249
|
+
{
|
|
5250
|
+
"code": 6065;
|
|
5251
|
+
"name": "AlreadyPassPreActivationSwapPoint";
|
|
5252
|
+
"msg": "Already pass pre-activation swap point";
|
|
5165
5253
|
}
|
|
5166
5254
|
];
|
|
5167
5255
|
};
|
|
@@ -5189,6 +5277,7 @@ type PositionV2 = IdlAccounts<LbClmm>["positionV2"];
|
|
|
5189
5277
|
type vParameters = IdlAccounts<LbClmm>["lbPair"]["vParameters"];
|
|
5190
5278
|
type sParameters = IdlAccounts<LbClmm>["lbPair"]["parameters"];
|
|
5191
5279
|
type InitPermissionPairIx = IdlTypes<LbClmm>["InitPermissionPairIx"];
|
|
5280
|
+
type InitCustomizablePermissionlessPairIx = IdlTypes<LbClmm>["CustomizableParams"];
|
|
5192
5281
|
type BinLiquidityDistribution = IdlTypes<LbClmm>["BinLiquidityDistribution"];
|
|
5193
5282
|
type BinLiquidityReduction = IdlTypes<LbClmm>["BinLiquidityReduction"];
|
|
5194
5283
|
type BinArrayBitmapExtensionAccount = ProgramAccount<IdlAccounts<LbClmm>["binArrayBitmapExtension"]>;
|
|
@@ -5551,7 +5640,8 @@ declare class DLMM {
|
|
|
5551
5640
|
static getPricePerLamport(tokenXDecimal: number, tokenYDecimal: number, price: number): string;
|
|
5552
5641
|
static getBinIdFromPrice(price: string | number | Decimal, binStep: number, min: boolean): number;
|
|
5553
5642
|
/** Public methods */
|
|
5554
|
-
static createPermissionLbPair(connection: Connection, binStep: BN, tokenX: PublicKey, tokenY: PublicKey, activeId: BN, baseKey: PublicKey, creatorKey: PublicKey, feeBps: BN,
|
|
5643
|
+
static createPermissionLbPair(connection: Connection, binStep: BN, tokenX: PublicKey, tokenY: PublicKey, activeId: BN, baseKey: PublicKey, creatorKey: PublicKey, feeBps: BN, activationType: ActivationType, opt?: Opt): Promise<Transaction>;
|
|
5644
|
+
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>;
|
|
5555
5645
|
static createLbPair(connection: Connection, funder: PublicKey, tokenX: PublicKey, tokenY: PublicKey, binStep: BN, baseFactor: BN, presetParameter: PublicKey, activeId: BN, opt?: Opt): Promise<Transaction>;
|
|
5556
5646
|
/**
|
|
5557
5647
|
* The function `refetchStates` retrieves and updates various states and data related to bin arrays
|
|
@@ -5868,14 +5958,6 @@ declare class DLMM {
|
|
|
5868
5958
|
positions: LbPosition[];
|
|
5869
5959
|
}): Promise<Transaction[]>;
|
|
5870
5960
|
setActivationPoint(activationPoint: BN): Promise<Transaction>;
|
|
5871
|
-
/**
|
|
5872
|
-
* The function `updateWhitelistedWallet` is used to whitelist a wallet, enabling it to deposit into a permissioned pool before the activation point.
|
|
5873
|
-
* @param
|
|
5874
|
-
* - `walletsToWhitelist`: The public key of the wallet.
|
|
5875
|
-
* - `overrideIndexes`: Index of the whitelisted wallet to be inserted. Check DLMM.lbPair.whitelistedWallet for the index
|
|
5876
|
-
* @returns {Promise<Transaction>}
|
|
5877
|
-
*/
|
|
5878
|
-
updateWhitelistedWallet(walletsToWhitelist: PublicKey): Promise<Transaction>;
|
|
5879
5961
|
/**
|
|
5880
5962
|
* The function `claimSwapFee` is used to claim swap fees for a specific position owned by a specific owner.
|
|
5881
5963
|
* @param
|
|
@@ -5914,15 +5996,13 @@ declare class DLMM {
|
|
|
5914
5996
|
* The `seedLiquidity` function create multiple grouped instructions. The grouped instructions will be either [initialize bin array + initialize position instructions] or [deposit instruction] combination.
|
|
5915
5997
|
* @param
|
|
5916
5998
|
* - `owner`: The public key of the positions owner.
|
|
5917
|
-
* - `operator`: The public key of the operator. Operator can add liquidity for the position owner, withdraw on behalf of position owner (only can withdraw to position owner), and claim fee on behalf of position owner / fee owner (only can claim fee to position / fee owner)
|
|
5918
|
-
* - `feeOwner`: The public key to receive claimed fee.
|
|
5919
5999
|
* - `seedAmount`: Lamport amount to be seeded to the pool.
|
|
5920
6000
|
* - `minPrice`: Start price in UI format
|
|
5921
6001
|
* - `maxPrice`: End price in UI format
|
|
5922
6002
|
* - `base`: Base key
|
|
5923
6003
|
* @returns {Promise<SeedLiquidityResponse>}
|
|
5924
6004
|
*/
|
|
5925
|
-
seedLiquidity(owner: PublicKey,
|
|
6005
|
+
seedLiquidity(owner: PublicKey, seedAmount: BN, curvature: number, minPrice: number, maxPrice: number, base: PublicKey): Promise<SeedLiquidityResponse>;
|
|
5926
6006
|
/**
|
|
5927
6007
|
* Initializes bin arrays for the given bin array indexes if it wasn't initialized.
|
|
5928
6008
|
*
|
|
@@ -5941,9 +6021,10 @@ declare class DLMM {
|
|
|
5941
6021
|
* - `base`: Base key
|
|
5942
6022
|
* - `feeOwner`: Owner of the fees earned by the position.
|
|
5943
6023
|
* - `payer`: Payer for the position account rental.
|
|
6024
|
+
* - `lockReleasePoint`: The lock release point of the position.
|
|
5944
6025
|
* @returns
|
|
5945
6026
|
*/
|
|
5946
|
-
initializePositionByOperator({ lowerBinId, positionWidth, owner, feeOwner, base, operator, payer, }: {
|
|
6027
|
+
initializePositionByOperator({ lowerBinId, positionWidth, owner, feeOwner, base, operator, payer, lockReleasePoint, }: {
|
|
5947
6028
|
lowerBinId: BN;
|
|
5948
6029
|
positionWidth: BN;
|
|
5949
6030
|
owner: PublicKey;
|
|
@@ -5951,6 +6032,7 @@ declare class DLMM {
|
|
|
5951
6032
|
operator: PublicKey;
|
|
5952
6033
|
payer: PublicKey;
|
|
5953
6034
|
base: PublicKey;
|
|
6035
|
+
lockReleasePoint: BN;
|
|
5954
6036
|
}): Promise<Transaction>;
|
|
5955
6037
|
/**
|
|
5956
6038
|
* The `claimAllRewards` function to claim swap fees and LM rewards for multiple positions owned by a specific owner.
|
|
@@ -6013,6 +6095,7 @@ declare function deriveLbPair2(tokenX: PublicKey, tokenY: PublicKey, binStep: BN
|
|
|
6013
6095
|
* @deprecated Use deriveLbPair2
|
|
6014
6096
|
*/
|
|
6015
6097
|
declare function deriveLbPair(tokenX: PublicKey, tokenY: PublicKey, binStep: BN, programId: PublicKey): [PublicKey, number];
|
|
6098
|
+
declare function deriveCustomizablePermissionlessLbPair(tokenX: PublicKey, tokenY: PublicKey, programId: PublicKey): [PublicKey, number];
|
|
6016
6099
|
declare function derivePermissionLbPair(baseKey: PublicKey, tokenX: PublicKey, tokenY: PublicKey, binStep: BN, programId: PublicKey): [PublicKey, number];
|
|
6017
6100
|
declare function deriveOracle(lbPair: PublicKey, programId: PublicKey): [PublicKey, number];
|
|
6018
6101
|
declare function derivePosition(lbPair: PublicKey, base: PublicKey, lowerBinId: BN, width: BN, programId: PublicKey): [PublicKey, number];
|
|
@@ -6347,13 +6430,13 @@ declare function chunkedFetchMultiplePoolAccount(program: ClmmProgram, pks: Publ
|
|
|
6347
6430
|
oracle: PublicKey;
|
|
6348
6431
|
binArrayBitmap: BN[];
|
|
6349
6432
|
lastUpdatedAt: BN;
|
|
6350
|
-
|
|
6433
|
+
padding2: number[];
|
|
6351
6434
|
preActivationSwapAddress: PublicKey;
|
|
6352
6435
|
baseKey: PublicKey;
|
|
6353
6436
|
activationPoint: BN;
|
|
6354
6437
|
preActivationDuration: BN;
|
|
6355
|
-
|
|
6356
|
-
|
|
6438
|
+
padding3: number[];
|
|
6439
|
+
padding4: BN;
|
|
6357
6440
|
creator: PublicKey;
|
|
6358
6441
|
reserved: number[];
|
|
6359
6442
|
}[]>;
|
|
@@ -6418,5 +6501,6 @@ declare const MAX_CLAIM_ALL_ALLOWED = 3;
|
|
|
6418
6501
|
declare const MAX_BIN_LENGTH_ALLOWED_IN_ONE_TX = 26;
|
|
6419
6502
|
declare const MAX_BIN_PER_TX = 69;
|
|
6420
6503
|
declare const MAX_ACTIVE_BIN_SLIPPAGE = 3;
|
|
6504
|
+
declare const ILM_BASE: PublicKey;
|
|
6421
6505
|
|
|
6422
|
-
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, InitPermissionPairIx, LBCLMM_PROGRAM_IDS, LMRewards, LbClmm, LbPair, LbPairAccount, LbPosition, LiquidityOneSideParameter, 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, computeBudgetIx, computeFee, computeFeeFromAmount, computeProtocolFee, DLMM as default, deriveBinArray, deriveBinArrayBitmapExtension, deriveLbPair, deriveLbPair2, deriveOracle, derivePermissionLbPair, derivePosition, derivePresetParameter, derivePresetParameter2, deriveReserve, findNextBinArrayIndexWithLiquidity, findNextBinArrayWithLiquidity, fromWeightDistributionToAmount, fromWeightDistributionToAmountOneSide, getBaseFee, getBinArrayLowerUpperBinId, getBinArraysRequiredByPositionRange, getBinFromBinArray, getOrCreateATAInstruction, getOutAmount, getPriceOfBinByBinId, getTokenBalance, getTokenDecimals, getTokensMintFromPoolAddress, getTotalFee, getVariableFee, isBinIdWithinBinArray, isOverflowDefaultBinArrayBitmap, parseLogs, sParameters, swapExactInQuoteAtBin, swapExactOutQuoteAtBin, toAmountAskSide, toAmountBidSide, toAmountBothSide, toAmountsBothSideByStrategy, toAmountsOneSideByStrategy, toStrategyParameters, toWeightDistribution, unwrapSOLInstruction, vParameters, wrapSOLInstruction };
|
|
6506
|
+
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, 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, computeBudgetIx, computeFee, computeFeeFromAmount, computeProtocolFee, DLMM as default, deriveBinArray, deriveBinArrayBitmapExtension, deriveCustomizablePermissionlessLbPair, deriveLbPair, deriveLbPair2, deriveOracle, derivePermissionLbPair, derivePosition, derivePresetParameter, derivePresetParameter2, deriveReserve, findNextBinArrayIndexWithLiquidity, findNextBinArrayWithLiquidity, fromWeightDistributionToAmount, fromWeightDistributionToAmountOneSide, getBaseFee, getBinArrayLowerUpperBinId, getBinArraysRequiredByPositionRange, getBinFromBinArray, getOrCreateATAInstruction, getOutAmount, getPriceOfBinByBinId, getTokenBalance, getTokenDecimals, getTokensMintFromPoolAddress, getTotalFee, getVariableFee, isBinIdWithinBinArray, isOverflowDefaultBinArrayBitmap, parseLogs, sParameters, swapExactInQuoteAtBin, swapExactOutQuoteAtBin, toAmountAskSide, toAmountBidSide, toAmountBothSide, toAmountsBothSideByStrategy, toAmountsOneSideByStrategy, toStrategyParameters, toWeightDistribution, unwrapSOLInstruction, vParameters, wrapSOLInstruction };
|