@meteora-ag/dlmm 1.0.53 → 1.0.55

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
@@ -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.7.0";
8
+ "version": "0.8.0";
9
9
  "name": "lb_clmm";
10
10
  "constants": [
11
11
  {
@@ -2303,7 +2303,7 @@ type LbClmm = {
2303
2303
  ];
2304
2304
  },
2305
2305
  {
2306
- "name": "setActivationSlot";
2306
+ "name": "setActivationPoint";
2307
2307
  "accounts": [
2308
2308
  {
2309
2309
  "name": "lbPair";
@@ -2318,13 +2318,13 @@ type LbClmm = {
2318
2318
  ];
2319
2319
  "args": [
2320
2320
  {
2321
- "name": "activationSlot";
2321
+ "name": "activationPoint";
2322
2322
  "type": "u64";
2323
2323
  }
2324
2324
  ];
2325
2325
  },
2326
2326
  {
2327
- "name": "setLockReleaseSlot";
2327
+ "name": "setLockReleasePoint";
2328
2328
  "accounts": [
2329
2329
  {
2330
2330
  "name": "position";
@@ -2354,7 +2354,7 @@ type LbClmm = {
2354
2354
  ];
2355
2355
  "args": [
2356
2356
  {
2357
- "name": "newLockReleaseSlot";
2357
+ "name": "newLockReleasePoint";
2358
2358
  "type": "u64";
2359
2359
  }
2360
2360
  ];
@@ -2578,7 +2578,7 @@ type LbClmm = {
2578
2578
  ];
2579
2579
  },
2580
2580
  {
2581
- "name": "setPreActivationSlotDuration";
2581
+ "name": "setPreActivationDuration";
2582
2582
  "accounts": [
2583
2583
  {
2584
2584
  "name": "lbPair";
@@ -2593,7 +2593,7 @@ type LbClmm = {
2593
2593
  ];
2594
2594
  "args": [
2595
2595
  {
2596
- "name": "preActivationSlotDuration";
2596
+ "name": "preActivationDuration";
2597
2597
  "type": "u16";
2598
2598
  }
2599
2599
  ];
@@ -2784,10 +2784,16 @@ type LbClmm = {
2784
2784
  },
2785
2785
  {
2786
2786
  "name": "requireBaseFactorSeed";
2787
+ "docs": [
2788
+ "Require base factor seed"
2789
+ ];
2787
2790
  "type": "u8";
2788
2791
  },
2789
2792
  {
2790
2793
  "name": "baseFactorSeed";
2794
+ "docs": [
2795
+ "Base factor seed"
2796
+ ];
2791
2797
  "type": {
2792
2798
  "array": [
2793
2799
  "u8",
@@ -2796,13 +2802,18 @@ type LbClmm = {
2796
2802
  };
2797
2803
  },
2798
2804
  {
2799
- "name": "padding1";
2800
- "type": {
2801
- "array": [
2802
- "u8",
2803
- 2
2804
- ];
2805
- };
2805
+ "name": "activationType";
2806
+ "docs": [
2807
+ "Activation type"
2808
+ ];
2809
+ "type": "u8";
2810
+ },
2811
+ {
2812
+ "name": "padding0";
2813
+ "docs": [
2814
+ "padding 0"
2815
+ ];
2816
+ "type": "u8";
2806
2817
  },
2807
2818
  {
2808
2819
  "name": "tokenXMint";
@@ -2842,11 +2853,16 @@ type LbClmm = {
2842
2853
  };
2843
2854
  },
2844
2855
  {
2845
- "name": "feeOwner";
2856
+ "name": "padding1";
2846
2857
  "docs": [
2847
- "Fee owner. Deprecated. Can be used as buffer in the future."
2858
+ "_padding_1, previous Fee owner, BE CAREFUL FOR TOMBSTONE WHEN REUSE !!"
2848
2859
  ];
2849
- "type": "publicKey";
2860
+ "type": {
2861
+ "array": [
2862
+ "u8",
2863
+ 32
2864
+ ];
2865
+ };
2850
2866
  },
2851
2867
  {
2852
2868
  "name": "rewardInfos";
@@ -2898,7 +2914,7 @@ type LbClmm = {
2898
2914
  {
2899
2915
  "name": "preActivationSwapAddress";
2900
2916
  "docs": [
2901
- "Address allowed to swap when the current slot is greater than or equal to the pre-activation slot. The pre-activation slot is calculated as `activation_slot - pre_activation_slot_duration`."
2917
+ "Address allowed to swap when the current point is greater than or equal to the pre-activation point. The pre-activation point is calculated as `activation_point - pre_activation_duration`."
2902
2918
  ];
2903
2919
  "type": "publicKey";
2904
2920
  },
@@ -2910,23 +2926,23 @@ type LbClmm = {
2910
2926
  "type": "publicKey";
2911
2927
  },
2912
2928
  {
2913
- "name": "activationSlot";
2929
+ "name": "activationPoint";
2914
2930
  "docs": [
2915
- "Slot to enable the pair. Only applicable for permission pair."
2931
+ "Time point to enable the pair. Only applicable for permission pair."
2916
2932
  ];
2917
2933
  "type": "u64";
2918
2934
  },
2919
2935
  {
2920
- "name": "preActivationSlotDuration";
2936
+ "name": "preActivationDuration";
2921
2937
  "docs": [
2922
- "Number of slot before activation slot. Used to calculate pre-activation slot for pre_activation_swap_address"
2938
+ "Duration before activation activation_point. Used to calculate pre-activation time point for pre_activation_swap_address"
2923
2939
  ];
2924
2940
  "type": "u64";
2925
2941
  },
2926
2942
  {
2927
2943
  "name": "padding2";
2928
2944
  "docs": [
2929
- "_padding2 is reclaimed free space from swap_cap_deactivate_slot and swap_cap_amount before, BE CAREFUL FOR TOMBSTONE WHEN REUSE !!"
2945
+ "_padding 2 is reclaimed free space from swap_cap_deactivate_point and swap_cap_amount before, BE CAREFUL FOR TOMBSTONE WHEN REUSE !!"
2930
2946
  ];
2931
2947
  "type": {
2932
2948
  "array": [
@@ -2936,7 +2952,7 @@ type LbClmm = {
2936
2952
  };
2937
2953
  },
2938
2954
  {
2939
- "name": "lockDurationsInSlot";
2955
+ "name": "lockDuration";
2940
2956
  "docs": [
2941
2957
  "Liquidity lock duration for positions which created before activate. Only applicable for permission pair."
2942
2958
  ];
@@ -2972,7 +2988,7 @@ type LbClmm = {
2972
2988
  {
2973
2989
  "name": "idx";
2974
2990
  "docs": [
2975
- "Index of latest observation slot"
2991
+ "Index of latest observation"
2976
2992
  ];
2977
2993
  "type": "u64";
2978
2994
  },
@@ -3228,9 +3244,9 @@ type LbClmm = {
3228
3244
  "type": "publicKey";
3229
3245
  },
3230
3246
  {
3231
- "name": "lockReleaseSlot";
3247
+ "name": "lockReleasePoint";
3232
3248
  "docs": [
3233
- "Slot which the locked liquidity can be withdraw"
3249
+ "Time point which the locked liquidity can be withdraw"
3234
3250
  ];
3235
3251
  "type": "u64";
3236
3252
  },
@@ -3702,8 +3718,12 @@ type LbClmm = {
3702
3718
  "type": "i32";
3703
3719
  },
3704
3720
  {
3705
- "name": "lockDurationInSlot";
3721
+ "name": "lockDuration";
3706
3722
  "type": "u64";
3723
+ },
3724
+ {
3725
+ "name": "activationType";
3726
+ "type": "u8";
3707
3727
  }
3708
3728
  ];
3709
3729
  };
@@ -4278,6 +4298,23 @@ type LbClmm = {
4278
4298
  ];
4279
4299
  };
4280
4300
  },
4301
+ {
4302
+ "name": "ActivationType";
4303
+ "docs": [
4304
+ "Type of the activation"
4305
+ ];
4306
+ "type": {
4307
+ "kind": "enum";
4308
+ "variants": [
4309
+ {
4310
+ "name": "Slot";
4311
+ },
4312
+ {
4313
+ "name": "Timestamp";
4314
+ }
4315
+ ];
4316
+ };
4317
+ },
4281
4318
  {
4282
4319
  "name": "PairType";
4283
4320
  "docs": [
@@ -4780,7 +4817,7 @@ type LbClmm = {
4780
4817
  ];
4781
4818
  },
4782
4819
  {
4783
- "name": "UpdatePositionLockReleaseSlot";
4820
+ "name": "UpdatePositionLockReleasePoint";
4784
4821
  "fields": [
4785
4822
  {
4786
4823
  "name": "position";
@@ -4788,17 +4825,17 @@ type LbClmm = {
4788
4825
  "index": false;
4789
4826
  },
4790
4827
  {
4791
- "name": "currentSlot";
4828
+ "name": "currentPoint";
4792
4829
  "type": "u64";
4793
4830
  "index": false;
4794
4831
  },
4795
4832
  {
4796
- "name": "newLockReleaseSlot";
4833
+ "name": "newLockReleasePoint";
4797
4834
  "type": "u64";
4798
4835
  "index": false;
4799
4836
  },
4800
4837
  {
4801
- "name": "oldLockReleaseSlot";
4838
+ "name": "oldLockReleasePoint";
4802
4839
  "type": "u64";
4803
4840
  "index": false;
4804
4841
  },
@@ -5093,43 +5130,38 @@ type LbClmm = {
5093
5130
  },
5094
5131
  {
5095
5132
  "code": 6052;
5096
- "name": "AlreadyPassActivationSlot";
5133
+ "name": "AlreadyPassActivationPoint";
5097
5134
  "msg": "Already activated";
5098
5135
  },
5099
5136
  {
5100
5137
  "code": 6053;
5101
- "name": "LastSlotCannotBeSmallerThanActivateSlot";
5102
- "msg": "Last slot cannot be smaller than activate slot";
5103
- },
5104
- {
5105
- "code": 6054;
5106
5138
  "name": "ExceedMaxSwappedAmount";
5107
5139
  "msg": "Swapped amount is exceeded max swapped amount";
5108
5140
  },
5109
5141
  {
5110
- "code": 6055;
5142
+ "code": 6054;
5111
5143
  "name": "InvalidStrategyParameters";
5112
5144
  "msg": "Invalid strategy parameters";
5113
5145
  },
5114
5146
  {
5115
- "code": 6056;
5147
+ "code": 6055;
5116
5148
  "name": "LiquidityLocked";
5117
5149
  "msg": "Liquidity locked";
5118
5150
  },
5119
5151
  {
5120
- "code": 6057;
5121
- "name": "InvalidLockReleaseSlot";
5122
- "msg": "Invalid lock release slot";
5123
- },
5124
- {
5125
- "code": 6058;
5152
+ "code": 6056;
5126
5153
  "name": "BinRangeIsNotEmpty";
5127
5154
  "msg": "Bin range is not empty";
5128
5155
  },
5129
5156
  {
5130
- "code": 6059;
5157
+ "code": 6057;
5131
5158
  "name": "NotExactAmountOut";
5132
5159
  "msg": "Amount out is not matched with exact amount out";
5160
+ },
5161
+ {
5162
+ "code": 6058;
5163
+ "name": "InvalidActivationType";
5164
+ "msg": "Invalid activation type";
5133
5165
  }
5134
5166
  ];
5135
5167
  };
@@ -5251,6 +5283,10 @@ declare enum StrategyType {
5251
5283
  CurveBalanced = 7,
5252
5284
  BidAskBalanced = 8
5253
5285
  }
5286
+ declare enum ActivationType {
5287
+ Slot = 0,
5288
+ Timestamp = 1
5289
+ }
5254
5290
  interface StrategyParameters {
5255
5291
  maxBinId: number;
5256
5292
  minBinId: number;
@@ -5427,6 +5463,18 @@ interface SeedLiquidityResponse {
5427
5463
  initializeBinArraysAndPositionIxs: TransactionInstruction[][];
5428
5464
  addLiquidityIxs: TransactionInstruction[][];
5429
5465
  }
5466
+ interface Clock {
5467
+ slot: BN;
5468
+ epochStartTimestamp: BN;
5469
+ epoch: BN;
5470
+ leaderScheduleEpoch: BN;
5471
+ unixTimestamp: BN;
5472
+ }
5473
+ declare const ClockLayout: any;
5474
+ declare enum PairStatus {
5475
+ Enabled = 0,
5476
+ Disabled = 1
5477
+ }
5430
5478
 
5431
5479
  type Opt = {
5432
5480
  cluster?: Cluster | "localhost";
@@ -5439,8 +5487,10 @@ declare class DLMM {
5439
5487
  binArrayBitmapExtension: BinArrayBitmapExtensionAccount | null;
5440
5488
  tokenX: TokenReserve;
5441
5489
  tokenY: TokenReserve;
5490
+ clock: Clock;
5442
5491
  private opt?;
5443
- constructor(pubkey: PublicKey, program: ClmmProgram, lbPair: LbPair, binArrayBitmapExtension: BinArrayBitmapExtensionAccount | null, tokenX: TokenReserve, tokenY: TokenReserve, opt?: Opt);
5492
+ constructor(pubkey: PublicKey, program: ClmmProgram, lbPair: LbPair, binArrayBitmapExtension: BinArrayBitmapExtensionAccount | null, tokenX: TokenReserve, tokenY: TokenReserve, clock: Clock, opt?: Opt);
5493
+ private validateSwapActivation;
5444
5494
  /** Static public method */
5445
5495
  /**
5446
5496
  * The function `getLbPairs` retrieves a list of LB pair accounts using a connection and optional
@@ -5502,7 +5552,7 @@ declare class DLMM {
5502
5552
  static getPricePerLamport(tokenXDecimal: number, tokenYDecimal: number, price: number): string;
5503
5553
  static getBinIdFromPrice(price: string | number | Decimal, binStep: number, min: boolean): number;
5504
5554
  /** Public methods */
5505
- static createPermissionLbPair(connection: Connection, binStep: BN, tokenX: PublicKey, tokenY: PublicKey, activeId: BN, baseKey: PublicKey, creatorKey: PublicKey, feeBps: BN, lockDurationInSlot: BN, opt?: Opt): Promise<Transaction>;
5555
+ static createPermissionLbPair(connection: Connection, binStep: BN, tokenX: PublicKey, tokenY: PublicKey, activeId: BN, baseKey: PublicKey, creatorKey: PublicKey, feeBps: BN, lockDuration: BN, activationType: ActivationType, opt?: Opt): Promise<Transaction>;
5506
5556
  static createLbPair(connection: Connection, funder: PublicKey, tokenX: PublicKey, tokenY: PublicKey, binStep: BN, baseFactor: BN, presetParameter: PublicKey, activeId: BN, opt?: Opt): Promise<Transaction>;
5507
5557
  /**
5508
5558
  * The function `refetchStates` retrieves and updates various states and data related to bin arrays
@@ -5810,9 +5860,9 @@ declare class DLMM {
5810
5860
  owner: PublicKey;
5811
5861
  positions: LbPosition[];
5812
5862
  }): Promise<Transaction[]>;
5813
- setActivationSlot(activationSlot: BN): Promise<Transaction>;
5863
+ setActivationPoint(activationPoint: BN): Promise<Transaction>;
5814
5864
  /**
5815
- * The function `updateWhitelistedWallet` is used to whitelist a wallet, enabling it to deposit into a permissioned pool before the activation slot.
5865
+ * The function `updateWhitelistedWallet` is used to whitelist a wallet, enabling it to deposit into a permissioned pool before the activation point.
5816
5866
  * @param
5817
5867
  * - `walletsToWhitelist`: The public key of the wallet.
5818
5868
  * - `overrideIndexes`: Index of the whitelisted wallet to be inserted. Check DLMM.lbPair.whitelistedWallet for the index
@@ -6260,7 +6310,8 @@ declare function chunkedFetchMultiplePoolAccount(program: ClmmProgram, pks: Publ
6260
6310
  status: number;
6261
6311
  requireBaseFactorSeed: number;
6262
6312
  baseFactorSeed: number[];
6263
- padding1: number[];
6313
+ activationType: number;
6314
+ padding0: number;
6264
6315
  tokenXMint: PublicKey;
6265
6316
  tokenYMint: PublicKey;
6266
6317
  reserveX: PublicKey;
@@ -6269,7 +6320,7 @@ declare function chunkedFetchMultiplePoolAccount(program: ClmmProgram, pks: Publ
6269
6320
  amountX: BN;
6270
6321
  amountY: BN;
6271
6322
  };
6272
- feeOwner: PublicKey;
6323
+ padding1: number[];
6273
6324
  rewardInfos: {
6274
6325
  mint: PublicKey;
6275
6326
  vault: PublicKey;
@@ -6286,10 +6337,10 @@ declare function chunkedFetchMultiplePoolAccount(program: ClmmProgram, pks: Publ
6286
6337
  whitelistedWallet: PublicKey;
6287
6338
  preActivationSwapAddress: PublicKey;
6288
6339
  baseKey: PublicKey;
6289
- activationSlot: BN;
6290
- preActivationSlotDuration: BN;
6340
+ activationPoint: BN;
6341
+ preActivationDuration: BN;
6291
6342
  padding2: number[];
6292
- lockDurationsInSlot: BN;
6343
+ lockDuration: BN;
6293
6344
  creator: PublicKey;
6294
6345
  reserved: number[];
6295
6346
  }[]>;
@@ -6349,4 +6400,4 @@ declare const MAX_BIN_LENGTH_ALLOWED_IN_ONE_TX = 26;
6349
6400
  declare const MAX_BIN_PER_TX = 69;
6350
6401
  declare const MAX_ACTIVE_BIN_SLIPPAGE = 3;
6351
6402
 
6352
- export { ADMIN, BASIS_POINT_MAX, BIN_ARRAY_BITMAP_SIZE, BIN_ARRAY_FEE, Bin, BinAndAmount, BinArray, BinArrayAccount, BinArrayBitmapExtension, BinArrayBitmapExtensionAccount, BinLiquidity, BinLiquidityDistribution, BinLiquidityReduction, BitmapType, ClmmProgram, CompressedBinDepositAmount, CompressedBinDepositAmounts, DLMMError, 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, 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 };
6403
+ 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, 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 };