@meteora-ag/dlmm 1.0.13 → 1.0.14-abc1234.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import * as _solana_web3_js from '@solana/web3.js';
2
2
  import { PublicKey, TransactionInstruction, Connection, Transaction, Cluster, ConfirmOptions } from '@solana/web3.js';
3
- import * as _solana_buffer_layout from '@solana/buffer-layout';
4
3
  import { BN, Program, IdlAccounts, ProgramAccount, IdlTypes, EventParser } from '@coral-xyz/anchor';
5
4
  import Decimal from 'decimal.js';
6
5
 
@@ -2925,59 +2924,41 @@ type LbClmm = {
2925
2924
  };
2926
2925
  },
2927
2926
  {
2928
- "name": "ParabolicParameter";
2927
+ "name": "LiquidityOneSideParameter";
2929
2928
  "type": {
2930
2929
  "kind": "struct";
2931
2930
  "fields": [
2932
2931
  {
2933
- "name": "aRight";
2934
- "docs": [
2935
- "amplification in right side, from center_bin_id to max_bin_id"
2936
- ];
2937
- "type": "i16";
2938
- },
2939
- {
2940
- "name": "aLeft";
2932
+ "name": "amount";
2941
2933
  "docs": [
2942
- "amplification in left side, from min_bin_id to center_bin_id"
2934
+ "Amount of X token or Y token to deposit"
2943
2935
  ];
2944
- "type": "i16";
2936
+ "type": "u64";
2945
2937
  },
2946
2938
  {
2947
- "name": "centerBinId";
2939
+ "name": "activeId";
2948
2940
  "docs": [
2949
- "center bin id"
2941
+ "Active bin that integrator observe off-chain"
2950
2942
  ];
2951
2943
  "type": "i32";
2952
- }
2953
- ];
2954
- };
2955
- },
2956
- {
2957
- "name": "SpotParameter";
2958
- "type": {
2959
- "kind": "struct";
2960
- "fields": [
2961
- {
2962
- "name": "weightRight";
2963
- "docs": [
2964
- "weight in right side, from center_bin_id to max_bin_id"
2965
- ];
2966
- "type": "u16";
2967
2944
  },
2968
2945
  {
2969
- "name": "weightLeft";
2946
+ "name": "maxActiveBinSlippage";
2970
2947
  "docs": [
2971
- "weight in left side, from min_bin_id to center_bin_id"
2948
+ "max active bin slippage allowed"
2972
2949
  ];
2973
- "type": "u16";
2950
+ "type": "i32";
2974
2951
  },
2975
2952
  {
2976
- "name": "centerBinId";
2953
+ "name": "binLiquidityDist";
2977
2954
  "docs": [
2978
- "center bin id"
2955
+ "Liquidity distribution to each bins"
2979
2956
  ];
2980
- "type": "i32";
2957
+ "type": {
2958
+ "vec": {
2959
+ "defined": "BinLiquidityDistributionByWeight";
2960
+ };
2961
+ };
2981
2962
  }
2982
2963
  ];
2983
2964
  };
@@ -3051,46 +3032,6 @@ type LbClmm = {
3051
3032
  ];
3052
3033
  };
3053
3034
  },
3054
- {
3055
- "name": "LiquidityOneSideParameter";
3056
- "type": {
3057
- "kind": "struct";
3058
- "fields": [
3059
- {
3060
- "name": "amount";
3061
- "docs": [
3062
- "Amount of X token or Y token to deposit"
3063
- ];
3064
- "type": "u64";
3065
- },
3066
- {
3067
- "name": "activeId";
3068
- "docs": [
3069
- "Active bin that integrator observe off-chain"
3070
- ];
3071
- "type": "i32";
3072
- },
3073
- {
3074
- "name": "maxActiveBinSlippage";
3075
- "docs": [
3076
- "max active bin slippage allowed"
3077
- ];
3078
- "type": "i32";
3079
- },
3080
- {
3081
- "name": "binLiquidityDist";
3082
- "docs": [
3083
- "Liquidity distribution to each bins"
3084
- ];
3085
- "type": {
3086
- "vec": {
3087
- "defined": "BinLiquidityDistributionByWeight";
3088
- };
3089
- };
3090
- }
3091
- ];
3092
- };
3093
- },
3094
3035
  {
3095
3036
  "name": "BinLiquidityDistribution";
3096
3037
  "type": {
@@ -3663,13 +3604,31 @@ type LbClmm = {
3663
3604
  "kind": "enum";
3664
3605
  "variants": [
3665
3606
  {
3666
- "name": "Spot";
3607
+ "name": "SpotOneSide";
3608
+ },
3609
+ {
3610
+ "name": "CurveOneSide";
3611
+ },
3612
+ {
3613
+ "name": "BidAskOneSide";
3667
3614
  },
3668
3615
  {
3669
- "name": "Curve";
3616
+ "name": "SpotBalanced";
3670
3617
  },
3671
3618
  {
3672
- "name": "BidAsk";
3619
+ "name": "CurveBalanced";
3620
+ },
3621
+ {
3622
+ "name": "BidAskBalanced";
3623
+ },
3624
+ {
3625
+ "name": "SpotImBalanced";
3626
+ },
3627
+ {
3628
+ "name": "CurveImBalanced";
3629
+ },
3630
+ {
3631
+ "name": "BidAskImBalanced";
3673
3632
  }
3674
3633
  ];
3675
3634
  };
@@ -4447,6 +4406,11 @@ type LbClmm = {
4447
4406
  "code": 6047;
4448
4407
  "name": "MustWithdrawnIneligibleReward";
4449
4408
  "msg": "Must withdraw ineligible reward";
4409
+ },
4410
+ {
4411
+ "code": 6048;
4412
+ "name": "InvalidStrategyParameters";
4413
+ "msg": "Invalid strategy parameters";
4450
4414
  }
4451
4415
  ];
4452
4416
  };
@@ -4520,33 +4484,51 @@ declare enum PositionVersion {
4520
4484
  V1 = 0,
4521
4485
  V2 = 1
4522
4486
  }
4487
+ declare const Strategy: {
4488
+ SpotOneSide: {
4489
+ spotOneSide: {};
4490
+ };
4491
+ CurveOneSide: {
4492
+ curveOneSide: {};
4493
+ };
4494
+ BidAskOneSide: {
4495
+ bidAskOneSide: {};
4496
+ };
4497
+ SpotBalanced: {
4498
+ spotBalanced: {};
4499
+ };
4500
+ CurveBalanced: {
4501
+ curveBalanced: {};
4502
+ };
4503
+ BidAskBalanced: {
4504
+ bidAskBalanced: {};
4505
+ };
4506
+ SpotImBalanced: {
4507
+ spotImBalanced: {};
4508
+ };
4509
+ CurveImBalanced: {
4510
+ curveImBalanced: {};
4511
+ };
4512
+ BidAskImBalanced: {
4513
+ bidAskImBalanced: {};
4514
+ };
4515
+ };
4523
4516
  declare enum StrategyType {
4524
- Spot = 0,
4525
- Curve = 1,
4526
- BidAsk = 2
4517
+ SpotOneSide = 0,
4518
+ CurveOneSide = 1,
4519
+ BidAskOneSide = 2,
4520
+ SpotImBalanced = 3,
4521
+ CurveImBalanced = 4,
4522
+ BidAskImBalanced = 5,
4523
+ SpotBalanced = 6,
4524
+ CurveBalanced = 7,
4525
+ BidAskBalanced = 8
4527
4526
  }
4528
4527
  interface StrategyParameters {
4529
4528
  maxBinId: number;
4530
4529
  minBinId: number;
4531
4530
  strategyType: StrategyType;
4532
- aRight: number;
4533
- aLeft: number;
4534
- centerBinId: number;
4535
- weightRight: number;
4536
- weightLeft: number;
4537
4531
  }
4538
- type ParabolicParameter = IdlTypes<LbClmm>["ParabolicParameter"];
4539
- declare const parabolicParameter: _solana_buffer_layout.Structure<{
4540
- aRight: number;
4541
- aLeft: number;
4542
- centerBinId: number;
4543
- }>;
4544
- type SpotParameter = IdlTypes<LbClmm>["SpotParameter"];
4545
- declare const spotParameter: _solana_buffer_layout.Structure<{
4546
- weightRight: number;
4547
- weightLeft: number;
4548
- centerBinId: number;
4549
- }>;
4550
4532
  interface TInitializePositionAndAddLiquidityParams {
4551
4533
  lbPairPubKey: PublicKey;
4552
4534
  positionPubKey: PublicKey;
@@ -5096,38 +5078,6 @@ declare function calculateNormalDistribution(activeBin: number, binIds: number[]
5096
5078
  xAmountBpsOfTotal: BN;
5097
5079
  yAmountBpsOfTotal: BN;
5098
5080
  }[];
5099
- declare function fromStrategyParamsToWeightDistribution(strategyParameters: StrategyParameters): {
5100
- binId: number;
5101
- weight: number;
5102
- }[];
5103
- declare function toStrategyParameters(strategyParameters: StrategyParameters): {
5104
- minBinId: number;
5105
- maxBinId: number;
5106
- strategyType: {
5107
- spot: {};
5108
- curve?: undefined;
5109
- bidAsk?: undefined;
5110
- };
5111
- parameteres: number[];
5112
- } | {
5113
- minBinId: number;
5114
- maxBinId: number;
5115
- strategyType: {
5116
- curve: {};
5117
- spot?: undefined;
5118
- bidAsk?: undefined;
5119
- };
5120
- parameteres: number[];
5121
- } | {
5122
- minBinId: number;
5123
- maxBinId: number;
5124
- strategyType: {
5125
- bidAsk: {};
5126
- spot?: undefined;
5127
- curve?: undefined;
5128
- };
5129
- parameteres: number[];
5130
- };
5131
5081
  declare function fromWeightDistributionToAmountOneSide(amount: BN, distributions: {
5132
5082
  binId: number;
5133
5083
  weight: number;
@@ -5143,15 +5093,6 @@ declare function fromWeightDistributionToAmount(amountX: BN, amountY: BN, distri
5143
5093
  amountX: BN;
5144
5094
  amountY: BN;
5145
5095
  }[];
5146
- declare function calculateStrategyParameter({ minBinId, maxBinId, strategy, activeBinId, activeBinPrice, totalXAmount, totalYAmount, }: {
5147
- minBinId: number;
5148
- maxBinId: number;
5149
- strategy: StrategyType;
5150
- activeBinId: number;
5151
- activeBinPrice: string;
5152
- totalXAmount: BN;
5153
- totalYAmount: BN;
5154
- }): StrategyParameters;
5155
5096
 
5156
5097
  declare function getBaseFee(binStep: number, sParameter: sParameters): BN;
5157
5098
  declare function getVariableFee(binStep: number, sParameter: sParameters, vParameter: vParameters): BN;
@@ -5173,6 +5114,185 @@ declare function swapQuoteAtBin(bin: Bin, binStep: number, sParameter: sParamete
5173
5114
  protocolFee: BN;
5174
5115
  };
5175
5116
 
5117
+ declare function toAmountBidSide(activeId: number, totalAmount: BN, distributions: {
5118
+ binId: number;
5119
+ weight: number;
5120
+ }[]): {
5121
+ binId: number;
5122
+ amount: BN;
5123
+ }[];
5124
+ declare function toAmountAskSide(activeId: number, binStep: number, totalAmount: BN, distributions: {
5125
+ binId: number;
5126
+ weight: number;
5127
+ }[]): {
5128
+ binId: number;
5129
+ amount: BN;
5130
+ }[];
5131
+ declare function toAmountBothSide(activeId: number, binStep: number, amountX: BN, amountY: BN, amountXInActiveBin: BN, amountYInActiveBin: BN, distributions: {
5132
+ binId: number;
5133
+ weight: number;
5134
+ }[]): {
5135
+ binId: number;
5136
+ amountX: BN;
5137
+ amountY: BN;
5138
+ }[];
5139
+ declare function autoFillYByWeight(activeId: number, binStep: number, amountX: BN, amountXInActiveBin: BN, amountYInActiveBin: BN, distributions: {
5140
+ binId: number;
5141
+ weight: number;
5142
+ }[]): BN;
5143
+ declare function autoFillXByWeight(activeId: number, binStep: number, amountY: BN, amountXInActiveBin: BN, amountYInActiveBin: BN, distributions: {
5144
+ binId: number;
5145
+ weight: number;
5146
+ }[]): BN;
5147
+
5148
+ declare function toAmountsOneSideByStrategy(activeId: number, binStep: number, minBinId: number, maxBinId: number, amount: BN, strategyType: StrategyType, depositForY: boolean): {
5149
+ binId: number;
5150
+ amount: BN;
5151
+ }[];
5152
+ declare function toAmountsBothSideByStrategy(activeId: number, binStep: number, minBinId: number, maxBinId: number, amountX: BN, amountY: BN, amountXInActiveBin: BN, amountYInActiveBin: BN, strategyType: StrategyType): {
5153
+ binId: number;
5154
+ amountX: BN;
5155
+ amountY: BN;
5156
+ }[];
5157
+ declare function autoFillYByStrategy(activeId: number, binStep: number, amountX: BN, amountXInActiveBin: BN, amountYInActiveBin: BN, minBinId: number, maxBinId: number, strategyType: StrategyType): BN;
5158
+ declare function autoFillXByStrategy(activeId: number, binStep: number, amountY: BN, amountXInActiveBin: BN, amountYInActiveBin: BN, minBinId: number, maxBinId: number, strategyType: StrategyType): BN;
5159
+ declare function toStrategyParameters(strategyParameters: StrategyParameters): {
5160
+ minBinId: number;
5161
+ maxBinId: number;
5162
+ strategyType: {
5163
+ spotOneSide: {};
5164
+ curveOneSide?: undefined;
5165
+ bidAskOneSide?: undefined;
5166
+ spotBalanced?: undefined;
5167
+ curveBalanced?: undefined;
5168
+ bidAskBalanced?: undefined;
5169
+ spotImBalanced?: undefined;
5170
+ curveImBalanced?: undefined;
5171
+ bidAskImBalanced?: undefined;
5172
+ };
5173
+ parameteres: number[];
5174
+ } | {
5175
+ minBinId: number;
5176
+ maxBinId: number;
5177
+ strategyType: {
5178
+ curveOneSide: {};
5179
+ spotOneSide?: undefined;
5180
+ bidAskOneSide?: undefined;
5181
+ spotBalanced?: undefined;
5182
+ curveBalanced?: undefined;
5183
+ bidAskBalanced?: undefined;
5184
+ spotImBalanced?: undefined;
5185
+ curveImBalanced?: undefined;
5186
+ bidAskImBalanced?: undefined;
5187
+ };
5188
+ parameteres: number[];
5189
+ } | {
5190
+ minBinId: number;
5191
+ maxBinId: number;
5192
+ strategyType: {
5193
+ bidAskOneSide: {};
5194
+ spotOneSide?: undefined;
5195
+ curveOneSide?: undefined;
5196
+ spotBalanced?: undefined;
5197
+ curveBalanced?: undefined;
5198
+ bidAskBalanced?: undefined;
5199
+ spotImBalanced?: undefined;
5200
+ curveImBalanced?: undefined;
5201
+ bidAskImBalanced?: undefined;
5202
+ };
5203
+ parameteres: number[];
5204
+ } | {
5205
+ minBinId: number;
5206
+ maxBinId: number;
5207
+ strategyType: {
5208
+ spotBalanced: {};
5209
+ spotOneSide?: undefined;
5210
+ curveOneSide?: undefined;
5211
+ bidAskOneSide?: undefined;
5212
+ curveBalanced?: undefined;
5213
+ bidAskBalanced?: undefined;
5214
+ spotImBalanced?: undefined;
5215
+ curveImBalanced?: undefined;
5216
+ bidAskImBalanced?: undefined;
5217
+ };
5218
+ parameteres: number[];
5219
+ } | {
5220
+ minBinId: number;
5221
+ maxBinId: number;
5222
+ strategyType: {
5223
+ curveBalanced: {};
5224
+ spotOneSide?: undefined;
5225
+ curveOneSide?: undefined;
5226
+ bidAskOneSide?: undefined;
5227
+ spotBalanced?: undefined;
5228
+ bidAskBalanced?: undefined;
5229
+ spotImBalanced?: undefined;
5230
+ curveImBalanced?: undefined;
5231
+ bidAskImBalanced?: undefined;
5232
+ };
5233
+ parameteres: number[];
5234
+ } | {
5235
+ minBinId: number;
5236
+ maxBinId: number;
5237
+ strategyType: {
5238
+ bidAskBalanced: {};
5239
+ spotOneSide?: undefined;
5240
+ curveOneSide?: undefined;
5241
+ bidAskOneSide?: undefined;
5242
+ spotBalanced?: undefined;
5243
+ curveBalanced?: undefined;
5244
+ spotImBalanced?: undefined;
5245
+ curveImBalanced?: undefined;
5246
+ bidAskImBalanced?: undefined;
5247
+ };
5248
+ parameteres: number[];
5249
+ } | {
5250
+ minBinId: number;
5251
+ maxBinId: number;
5252
+ strategyType: {
5253
+ spotImBalanced: {};
5254
+ spotOneSide?: undefined;
5255
+ curveOneSide?: undefined;
5256
+ bidAskOneSide?: undefined;
5257
+ spotBalanced?: undefined;
5258
+ curveBalanced?: undefined;
5259
+ bidAskBalanced?: undefined;
5260
+ curveImBalanced?: undefined;
5261
+ bidAskImBalanced?: undefined;
5262
+ };
5263
+ parameteres: number[];
5264
+ } | {
5265
+ minBinId: number;
5266
+ maxBinId: number;
5267
+ strategyType: {
5268
+ curveImBalanced: {};
5269
+ spotOneSide?: undefined;
5270
+ curveOneSide?: undefined;
5271
+ bidAskOneSide?: undefined;
5272
+ spotBalanced?: undefined;
5273
+ curveBalanced?: undefined;
5274
+ bidAskBalanced?: undefined;
5275
+ spotImBalanced?: undefined;
5276
+ bidAskImBalanced?: undefined;
5277
+ };
5278
+ parameteres: number[];
5279
+ } | {
5280
+ minBinId: number;
5281
+ maxBinId: number;
5282
+ strategyType: {
5283
+ bidAskImBalanced: {};
5284
+ spotOneSide?: undefined;
5285
+ curveOneSide?: undefined;
5286
+ bidAskOneSide?: undefined;
5287
+ spotBalanced?: undefined;
5288
+ curveBalanced?: undefined;
5289
+ bidAskBalanced?: undefined;
5290
+ spotImBalanced?: undefined;
5291
+ curveImBalanced?: undefined;
5292
+ };
5293
+ parameteres: number[];
5294
+ };
5295
+
5176
5296
  declare function chunks<T>(array: T[], size: number): T[][];
5177
5297
  declare function chunkedFetchMultiplePoolAccount(program: ClmmProgram, pks: PublicKey[], chunkSize?: number): Promise<{
5178
5298
  parameters: {
@@ -5284,4 +5404,4 @@ declare const MAX_CLAIM_ALL_ALLOWED = 3;
5284
5404
  declare const MAX_BIN_LENGTH_ALLOWED_IN_ONE_TX = 26;
5285
5405
  declare const MAX_ACTIVE_BIN_SLIPPAGE = 3;
5286
5406
 
5287
- export { ADMIN, BASIS_POINT_MAX, BIN_ARRAY_BITMAP_SIZE, Bin, BinAndAmount, BinArray, BinArrayAccount, BinArrayBitmapExtension, BinArrayBitmapExtensionAccount, BinLiquidity, BinLiquidityDistribution, BinLiquidityReduction, BitmapType, ClmmProgram, DLMMError, EXTENSION_BINARRAY_BITMAP_SIZE, EmissionRate, FEE_PRECISION, FeeInfo, GetOrCreateATAResponse, IAccountsCache, IDL, 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_CLAIM_ALL_ALLOWED, MAX_FEE_RATE, Network, PRECISION, ParabolicParameter, Position, PositionBinData, PositionData, PositionInfo, PositionVersion, ProgramStrategyParameter, ProgramStrategyType, SCALE, SCALE_OFFSET, SIMULATION_USER, SpotParameter, StrategyParameters, StrategyType, SwapFee, SwapParams, SwapQuote, TInitializePositionAndAddLiquidityParams, TInitializePositionAndAddLiquidityParamsByStrategy, TokenReserve, binIdToBinArrayIndex, calculateBidAskDistribution, calculateNormalDistribution, calculateSpotDistribution, calculateStrategyParameter, chunkedFetchMultipleBinArrayBitmapExtensionAccount, chunkedFetchMultiplePoolAccount, chunkedGetMultipleAccountInfos, chunks, computeBudgetIx, computeFee, computeFeeFromAmount, computeProtocolFee, DLMM as default, deriveBinArray, deriveBinArrayBitmapExtension, deriveLbPair, deriveOracle, derivePosition, derivePresetParameter, deriveReserve, findNextBinArrayIndexWithLiquidity, findNextBinArrayWithLiquidity, fromStrategyParamsToWeightDistribution, fromWeightDistributionToAmount, fromWeightDistributionToAmountOneSide, getBaseFee, getBinArrayLowerUpperBinId, getBinFromBinArray, getOrCreateATAInstruction, getOutAmount, getPriceOfBinByBinId, getTokenBalance, getTokenDecimals, getTotalFee, getVariableFee, isBinIdWithinBinArray, isOverflowDefaultBinArrayBitmap, parabolicParameter, parseLogs, sParameters, spotParameter, swapQuoteAtBin, swapQuoteAtBinWithCap, toStrategyParameters, toWeightDistribution, unwrapSOLInstruction, vParameters, wrapSOLInstruction };
5407
+ export { ADMIN, BASIS_POINT_MAX, BIN_ARRAY_BITMAP_SIZE, Bin, BinAndAmount, BinArray, BinArrayAccount, BinArrayBitmapExtension, BinArrayBitmapExtensionAccount, BinLiquidity, BinLiquidityDistribution, BinLiquidityReduction, BitmapType, ClmmProgram, DLMMError, EXTENSION_BINARRAY_BITMAP_SIZE, EmissionRate, FEE_PRECISION, FeeInfo, GetOrCreateATAResponse, IAccountsCache, IDL, 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_CLAIM_ALL_ALLOWED, MAX_FEE_RATE, Network, PRECISION, Position, PositionBinData, PositionData, PositionInfo, PositionVersion, ProgramStrategyParameter, ProgramStrategyType, SCALE, SCALE_OFFSET, SIMULATION_USER, Strategy, StrategyParameters, StrategyType, SwapFee, SwapParams, SwapQuote, TInitializePositionAndAddLiquidityParams, TInitializePositionAndAddLiquidityParamsByStrategy, TokenReserve, autoFillXByStrategy, autoFillXByWeight, autoFillYByStrategy, autoFillYByWeight, binIdToBinArrayIndex, calculateBidAskDistribution, calculateNormalDistribution, calculateSpotDistribution, chunkedFetchMultipleBinArrayBitmapExtensionAccount, chunkedFetchMultiplePoolAccount, chunkedGetMultipleAccountInfos, chunks, computeBudgetIx, computeFee, computeFeeFromAmount, computeProtocolFee, DLMM as default, deriveBinArray, deriveBinArrayBitmapExtension, deriveLbPair, deriveOracle, derivePosition, derivePresetParameter, deriveReserve, findNextBinArrayIndexWithLiquidity, findNextBinArrayWithLiquidity, fromWeightDistributionToAmount, fromWeightDistributionToAmountOneSide, getBaseFee, getBinArrayLowerUpperBinId, getBinFromBinArray, getOrCreateATAInstruction, getOutAmount, getPriceOfBinByBinId, getTokenBalance, getTokenDecimals, getTotalFee, getVariableFee, isBinIdWithinBinArray, isOverflowDefaultBinArrayBitmap, parseLogs, sParameters, swapQuoteAtBin, swapQuoteAtBinWithCap, toAmountAskSide, toAmountBidSide, toAmountBothSide, toAmountsBothSideByStrategy, toAmountsOneSideByStrategy, toStrategyParameters, toWeightDistribution, unwrapSOLInstruction, vParameters, wrapSOLInstruction };