@magmaprotocol/magma-clmm-sdk 0.5.129 → 0.6.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,6 @@
1
1
  import { SuiTransactionBlockResponse, SuiMoveObject, SuiClient, SuiEventFilter, SuiObjectResponseQuery, SuiObjectDataOptions, SuiObjectResponse, DevInspectResults, CoinBalance, SuiObjectData, SuiObjectRef, OwnedObjectRef, ObjectOwner, DisplayFieldsResponse, SuiParsedData } from '@mysten/sui/client';
2
2
  import * as _mysten_sui_transactions from '@mysten/sui/transactions';
3
- import { TransactionArgument, Transaction, TransactionObjectArgument } from '@mysten/sui/transactions';
3
+ import { TransactionArgument, TransactionObjectArgument, Transaction } from '@mysten/sui/transactions';
4
4
  import BN from 'bn.js';
5
5
  import { Graph } from '@syntsugar/cc-graph';
6
6
  import Decimal, { Decimal as Decimal$1 } from 'decimal.js';
@@ -1833,6 +1833,7 @@ type BinDisplay = {
1833
1833
  binId: number;
1834
1834
  amountX: BN;
1835
1835
  amountY: BN;
1836
+ liquidity?: BN;
1836
1837
  };
1837
1838
  type AlmmCreatePairAddLiquidityParams = {
1838
1839
  baseFee: number;
@@ -1887,6 +1888,8 @@ type MintByStrategyParams = {
1887
1888
  * base 10000 = 100%
1888
1889
  */
1889
1890
  slippage: number;
1891
+ coin_object_id_a?: TransactionObjectArgument;
1892
+ coin_object_id_b?: TransactionObjectArgument;
1890
1893
  };
1891
1894
  type RaiseByStrategyParams = {
1892
1895
  pair: string;
@@ -1905,6 +1908,8 @@ type RaiseByStrategyParams = {
1905
1908
  slippage: number;
1906
1909
  receiver: string;
1907
1910
  rewards_token: string[];
1911
+ coin_object_id_a?: TransactionObjectArgument;
1912
+ coin_object_id_b?: TransactionObjectArgument;
1908
1913
  };
1909
1914
  type EventCreatePair = {
1910
1915
  pair_id: string;
@@ -1920,6 +1925,189 @@ type Token = {
1920
1925
  name: string;
1921
1926
  };
1922
1927
 
1928
+ type MultiCoinInput = {
1929
+ amount_coin_array: {
1930
+ coin_object_id: TransactionObjectArgument;
1931
+ amount: string;
1932
+ used: boolean;
1933
+ }[];
1934
+ coin_type: string;
1935
+ remain_coins: CoinAsset[];
1936
+ };
1937
+
1938
+ declare const defaultSwapSlippage = 0.005;
1939
+ /**
1940
+ * Result of a swap operation containing amounts and price information
1941
+ */
1942
+ type SwapResultV2 = {
1943
+ swap_in_amount: string;
1944
+ swap_out_amount: string;
1945
+ route_obj?: any;
1946
+ after_sqrt_price: string;
1947
+ swap_price: string;
1948
+ };
1949
+ /**
1950
+ * Different modes for depositing liquidity into a pool
1951
+ */
1952
+ type DepositMode = 'FixedOneSide' | 'FlexibleBoth' | 'OnlyCoinA' | 'OnlyCoinB';
1953
+ /**
1954
+ * Options for depositing with a fixed amount on one side
1955
+ */
1956
+ type FixedOneSideOptions = {
1957
+ mode: 'FixedOneSide';
1958
+ fixed_amount: string;
1959
+ fixed_coin_a: boolean;
1960
+ };
1961
+ /**
1962
+ * Options for depositing with flexible amounts on both sides
1963
+ */
1964
+ type FlexibleBothOptions = {
1965
+ mode: 'FlexibleBoth';
1966
+ coin_amount_a: string;
1967
+ coin_amount_b: string;
1968
+ coin_type_a: string;
1969
+ coin_type_b: string;
1970
+ coin_decimal_a: number;
1971
+ coin_decimal_b: number;
1972
+ max_remain_rate?: number;
1973
+ };
1974
+ /**
1975
+ * Options for depositing only Coin A
1976
+ */
1977
+ type OnlyCoinAOptions = {
1978
+ mode: 'OnlyCoinA';
1979
+ coin_amount: string;
1980
+ coin_type_a: string;
1981
+ coin_type_b: string;
1982
+ coin_decimal_a: number;
1983
+ coin_decimal_b: number;
1984
+ max_remain_rate?: number;
1985
+ };
1986
+ /**
1987
+ * Options for depositing only Coin B
1988
+ */
1989
+ type OnlyCoinBOptions = {
1990
+ mode: 'OnlyCoinB';
1991
+ coin_amount: string;
1992
+ coin_type_a: string;
1993
+ coin_type_b: string;
1994
+ coin_decimal_a: number;
1995
+ coin_decimal_b: number;
1996
+ max_remain_rate?: number;
1997
+ };
1998
+ /**
1999
+ * Base options required for any deposit calculation
2000
+ */
2001
+ type BaseDepositOptions = {
2002
+ pool_id: string;
2003
+ tick_lower: number;
2004
+ tick_upper: number;
2005
+ current_sqrt_price: string;
2006
+ mark_price?: string;
2007
+ slippage: number;
2008
+ swap_slippage?: number;
2009
+ };
2010
+ /**
2011
+ * Result of a deposit calculation
2012
+ */
2013
+ type CalculationDepositResult = {
2014
+ liquidity: string;
2015
+ amount_a: string;
2016
+ amount_b: string;
2017
+ amount_limit_a: string;
2018
+ amount_limit_b: string;
2019
+ original_input_amount_a: string;
2020
+ original_input_amount_b: string;
2021
+ mode: DepositMode;
2022
+ fixed_liquidity_coin_a: boolean;
2023
+ swap_result?: SwapResultV2;
2024
+ sub_deposit_result?: CalculationDepositResult;
2025
+ };
2026
+ /**
2027
+ * Complete options for executing a deposit
2028
+ */
2029
+ type DepositOptions = {
2030
+ deposit_obj: CalculationDepositResult;
2031
+ pool_id: string;
2032
+ farms_pool_id?: string;
2033
+ coin_type_a: string;
2034
+ coin_type_b: string;
2035
+ tick_lower: number;
2036
+ tick_upper: number;
2037
+ slippage: number;
2038
+ swap_slippage?: number;
2039
+ pos_obj?: {
2040
+ pos_id: string | TransactionObjectArgument;
2041
+ collect_fee: boolean;
2042
+ collect_rewarder_types: string[];
2043
+ };
2044
+ };
2045
+ /**
2046
+ * Options for calculating withdrawal amounts
2047
+ */
2048
+ type WithdrawCalculationOptions = {
2049
+ pool_id: string;
2050
+ tick_lower: number;
2051
+ tick_upper: number;
2052
+ coin_decimal_a: number;
2053
+ coin_decimal_b: number;
2054
+ current_sqrt_price: string;
2055
+ mode: DepositMode;
2056
+ coin_type_a: string;
2057
+ coin_type_b: string;
2058
+ burn_liquidity?: string;
2059
+ } & ({
2060
+ mode: 'FixedOneSide';
2061
+ fixed_amount?: string;
2062
+ fixed_coin_a?: boolean;
2063
+ } | {
2064
+ mode: 'FlexibleBoth';
2065
+ receive_amount_a: string;
2066
+ receive_amount_b: string;
2067
+ available_liquidity: string;
2068
+ max_remain_rate?: number;
2069
+ } | {
2070
+ mode: 'OnlyCoinA';
2071
+ receive_amount_a?: string;
2072
+ available_liquidity: string;
2073
+ max_remain_rate?: number;
2074
+ } | {
2075
+ mode: 'OnlyCoinB';
2076
+ receive_amount_b?: string;
2077
+ available_liquidity: string;
2078
+ max_remain_rate?: number;
2079
+ });
2080
+ /**
2081
+ * Result of a withdrawal calculation
2082
+ */
2083
+ type CalculationWithdrawResult = {
2084
+ burn_liquidity: string;
2085
+ amount_a: string;
2086
+ amount_b: string;
2087
+ total_receive_amount?: string;
2088
+ mode: DepositMode;
2089
+ swap_result?: SwapResultV2;
2090
+ };
2091
+ /**
2092
+ * Complete options for executing a withdrawal
2093
+ */
2094
+ type WithdrawOptions = {
2095
+ withdraw_obj: CalculationWithdrawResult;
2096
+ pool_id: string;
2097
+ farms_pool_id?: string;
2098
+ pos_id: string;
2099
+ close_pos: boolean;
2100
+ collect_fee: boolean;
2101
+ collect_rewarder_types: string[];
2102
+ collect_farms_rewarder?: boolean;
2103
+ coin_type_a: string;
2104
+ coin_type_b: string;
2105
+ tick_lower: number;
2106
+ tick_upper: number;
2107
+ slippage: number;
2108
+ swap_slippage?: number;
2109
+ };
2110
+
1923
2111
  type BigNumber = Decimal.Value | number | string;
1924
2112
 
1925
2113
  interface IModule {
@@ -2440,6 +2628,11 @@ declare class CoinAssist {
2440
2628
  * @returns The total balance of the CoinAsset objects.
2441
2629
  */
2442
2630
  static calculateTotalBalance(coins: CoinAsset[]): bigint;
2631
+ static getCoinAmountObjId(coin_input: MultiCoinInput, amount: string): TransactionObjectArgument;
2632
+ static buildCoinWithBalance(amount: bigint, coin_type: string, tx: Transaction): TransactionObjectArgument;
2633
+ static buildMultiCoinInput(tx: Transaction, all_coin_assets: CoinAsset[], coin_type: string, amount_arr: bigint[]): MultiCoinInput;
2634
+ static fromBalance(balance: TransactionObjectArgument, coin_type: string, tx: Transaction): TransactionObjectArgument;
2635
+ static intoBalance(coin_obj: TransactionObjectArgument | string, coin_type: string, tx: Transaction): TransactionObjectArgument;
2443
2636
  }
2444
2637
 
2445
2638
  /**
@@ -3001,20 +3194,20 @@ declare class PositionModule implements IModule {
3001
3194
  * @param {boolean} calculateRewarder Whether to calculate the rewarder of the position.
3002
3195
  * @returns {Promise<Position>} Position object.
3003
3196
  */
3004
- getPosition(positionHandle: string, positionID: string, calculateRewarder?: boolean, showDisplay?: boolean): Promise<Position>;
3197
+ getPosition(positionHandle: string, positionID: string, calculateRewarder?: boolean, showDisplay?: boolean, forceRefresh?: boolean): Promise<Position>;
3005
3198
  /**
3006
3199
  * Gets a position by its ID.
3007
3200
  * @param {string} positionID The ID of the position to get.
3008
3201
  * @param {boolean} calculateRewarder Whether to calculate the rewarder of the position.
3009
3202
  * @returns {Promise<Position>} Position object.
3010
3203
  */
3011
- getPositionById(positionID: string, calculateRewarder?: boolean, showDisplay?: boolean): Promise<Position>;
3204
+ getPositionById(positionID: string, calculateRewarder?: boolean, showDisplay?: boolean, forceRefresh?: boolean): Promise<Position>;
3012
3205
  /**
3013
3206
  * Gets a simple position for the given position ID.
3014
3207
  * @param {string} positionID The ID of the position to get.
3015
3208
  * @returns {Promise<Position>} Position object.
3016
3209
  */
3017
- getSimplePosition(positionID: string, showDisplay?: boolean): Promise<Position>;
3210
+ getSimplePosition(positionID: string, showDisplay?: boolean, forceRefresh?: boolean): Promise<Position>;
3018
3211
  /**
3019
3212
  * Gets a simple position for the given position ID.
3020
3213
  * @param {string} positionID Position object id
@@ -3794,11 +3987,11 @@ declare class AlmmModule implements IModule {
3794
3987
  getPoolInfo(pools: string[], forceRefresh?: boolean): Promise<AlmmPoolInfo[]>;
3795
3988
  fetchPairParams(params: FetchPairParams): Promise<EventPairParams>;
3796
3989
  createPairPayload(params: CreatePairParams): Promise<Transaction>;
3797
- mintByStrategy(params: MintByStrategyParams): Promise<Transaction>;
3798
- addLiquidityByStrategy(params: RaiseByStrategyParams): Promise<Transaction>;
3990
+ mintByStrategy(params: MintByStrategyParams, tx?: Transaction): Promise<Transaction>;
3991
+ addLiquidityByStrategy(params: RaiseByStrategyParams, tx?: Transaction): Promise<Transaction>;
3799
3992
  private _raisePositionByAmounts;
3800
3993
  private _raisePositionByAmountsReward;
3801
- burnPosition(params: AlmmBurnPositionParams): Promise<Transaction>;
3994
+ burnPosition(params: AlmmBurnPositionParams, tx?: Transaction): Promise<Transaction>;
3802
3995
  shrinkPosition(params: AlmmShrinkPosition): Promise<Transaction>;
3803
3996
  collectFeeAndRewardList(paramsList: AlmmCollectRewardParams[]): Promise<Transaction>;
3804
3997
  collectFeeAndReward(params: AlmmCollectRewardParams & AlmmCollectFeeParams, tx?: Transaction): Promise<Transaction>;
@@ -4086,34 +4279,6 @@ declare class CachedContent {
4086
4279
  isValid(): boolean;
4087
4280
  }
4088
4281
 
4089
- /**
4090
- * Converts an amount to a decimal value, based on the number of decimals specified.
4091
- * @param {number | string} amount - The amount to convert to decimal.
4092
- * @param {number | string} decimals - The number of decimals to use in the conversion.
4093
- * @returns {number} - Returns the converted amount as a number.
4094
- */
4095
- declare function toDecimalsAmount(amount: number | string, decimals: number | string): number;
4096
- /**
4097
- * Converts a bigint to an unsigned integer of the specified number of bits.
4098
- * @param {bigint} int - The bigint to convert.
4099
- * @param {number} bits - The number of bits to use in the conversion. Defaults to 32 bits.
4100
- * @returns {string} - Returns the converted unsigned integer as a string.
4101
- */
4102
- declare function asUintN(int: bigint, bits?: number): string;
4103
- /**
4104
- * Converts a bigint to a signed integer of the specified number of bits.
4105
- * @param {bigint} int - The bigint to convert.
4106
- * @param {number} bits - The number of bits to use in the conversion. Defaults to 32 bits.
4107
- * @returns {number} - Returns the converted signed integer as a number.
4108
- */
4109
- declare function asIntN(int: bigint, bits?: number): number;
4110
- /**
4111
- * Converts an amount in decimals to its corresponding numerical value.
4112
- * @param {number|string} amount - The amount to convert.
4113
- * @param {number|string} decimals - The number of decimal places used in the amount.
4114
- * @returns {number} - Returns the converted numerical value.
4115
- */
4116
- declare function fromDecimalsAmount(amount: number | string, decimals: number | string): number;
4117
4282
  /**
4118
4283
  * Converts a secret key in string or Uint8Array format to an Ed25519 key pair.
4119
4284
  * @param {string|Uint8Array} secretKey - The secret key to convert.
@@ -4211,8 +4376,53 @@ declare function hexToNumber(binaryData: string): number;
4211
4376
  declare function utf8to16(str: string): string;
4212
4377
  declare function hexToString(str: string): string;
4213
4378
 
4379
+ /**
4380
+ * Creates a Decimal instance from a value
4381
+ * @param value - The value to convert to Decimal
4382
+ * @returns A Decimal instance
4383
+ */
4214
4384
  declare function d(value?: Decimal.Value): Decimal.Instance;
4385
+ /**
4386
+ * Calculates the multiplier for decimal places
4387
+ * @param decimals - The number of decimal places
4388
+ * @returns A Decimal instance representing the multiplier
4389
+ */
4215
4390
  declare function decimalsMultiplier(decimals?: Decimal.Value): Decimal.Instance;
4391
+ /**
4392
+ * Converts an amount to a decimal value, based on the number of decimals specified.
4393
+ * @param {number | string} amount - The amount to convert to decimal.
4394
+ * @param {number | string} decimals - The number of decimals to use in the conversion.
4395
+ * @returns {number} - Returns the converted amount as a number.
4396
+ */
4397
+ declare function toDecimalsAmount(amount: number | string, decimals: number | string, rounding?: 1): string;
4398
+ /**
4399
+ * Converts a bigint to an unsigned integer of the specified number of bits.
4400
+ * @param {bigint} int - The bigint to convert.
4401
+ * @param {number} bits - The number of bits to use in the conversion. Defaults to 32 bits.
4402
+ * @returns {string} - Returns the converted unsigned integer as a string.
4403
+ */
4404
+ declare function asUintN(int: bigint, bits?: number): string;
4405
+ /**
4406
+ * Converts a bigint to a signed integer of the specified number of bits.
4407
+ * @param {bigint} int - The bigint to convert.
4408
+ * @param {number} bits - The number of bits to use in the conversion. Defaults to 32 bits.
4409
+ * @returns {number} - Returns the converted signed integer as a number.
4410
+ */
4411
+ declare function asIntN(int: bigint, bits?: number): number;
4412
+ /**
4413
+ * Converts an amount in decimals to its corresponding numerical value.
4414
+ * @param {number|string} amount - The amount to convert.
4415
+ * @param {number|string} decimals - The number of decimal places used in the amount.
4416
+ * @returns {string} - Returns the converted numerical value.
4417
+ */
4418
+ declare function fromDecimalsAmount(amount: number | string, decimals: number | string): string;
4419
+ /**
4420
+ * Converts a scientific notation number string to decimal form
4421
+ * @param num_str - The number string to convert
4422
+ * @param precision - The precision (number of decimal places to keep)
4423
+ * @returns The decimal form string
4424
+ */
4425
+ declare function convertScientificToDecimal(num_str?: string, precision?: number): string;
4216
4426
 
4217
4427
  declare class TickUtil {
4218
4428
  /**
@@ -4594,4 +4804,4 @@ interface InitMagmaSDKOptions {
4594
4804
  */
4595
4805
  declare function initMagmaSDK(options: InitMagmaSDKOptions): MagmaClmmSDK;
4596
4806
 
4597
- export { ALMMSwapParams, AMM_SWAP_MODULE, AddBribeReward, AddLiquidityCommonParams, AddLiquidityFixTokenParams, AddLiquidityParams, AddLiquidityWithProtectionParams, AddressAndDirection, AdjustResult, AggregatorResult, AlmmAddLiquidityParams, AlmmBurnPositionParams, AlmmCollectFeeParams, AlmmCollectRewardParams, AlmmConfig, AlmmCreatePairAddLiquidityParams, AlmmEventEarnedFees, AlmmEventEarnedRewards, AlmmEventPairRewardTypes, AlmmPoolInfo, AlmmPosition, AlmmPositionInfo, AlmmRewardsParams, AlmmScript, AlmmShrinkPosition, AmountSpecified, BasePath, BigNumber, BinDisplay, BinLiquidity, BinMath, Bits, BuildCoinResult, CLOCK_ADDRESS, CachedContent, CalculateRatesParams, CalculateRatesResult, ClaimAndLockParams, ClaimFeesParams, ClaimFeesPoolsParams, ClmmConfig, ClmmExpectSwapModule, ClmmFetcherModule, ClmmIntegratePoolModule, ClmmIntegratePoolV2Module, ClmmIntegratePoolV3Module, ClmmIntegrateRouterModule, ClmmIntegrateRouterWithPartnerModule, ClmmIntegrateUtilsModule, ClmmPartnerModule, ClmmPoolConfig, ClmmPoolUtil, ClmmPositionStatus, ClmmpoolData, ClosePositionParams, CoinAmounts, CoinAsset, CoinAssist, CoinConfig, CoinInfoAddress, CoinNode, CoinPairType, CoinProvider, CoinStoreAddress, CollectFeeParams, CollectFeesQuote, CollectFeesQuoteParam, CollectRewarderParams, ConfigModule, CreateLockParams, CreatePairParams, CreatePartnerEvent, CreatePoolAddLiquidityParams, CreatePoolParams, DEFAULT_GAS_BUDGET_FOR_MERGE, DEFAULT_GAS_BUDGET_FOR_SPLIT, DEFAULT_GAS_BUDGET_FOR_STAKE, DEFAULT_GAS_BUDGET_FOR_TRANSFER, DEFAULT_GAS_BUDGET_FOR_TRANSFER_SUI, DEFAULT_NFT_TRANSFER_GAS_FEE, DataPage, DeepbookClobV2Moudle, DeepbookCustodianV2Moudle, DeepbookEndpointsV2Moudle, DeepbookPool, DeepbookUtils, DepositPosition, EpochEmission, EventBin, EventCreatePair, EventPairLiquidity, EventPairParams, EventPositionLiquidity, FEE_RATE_DENOMINATOR, FaucetCoin, FetchBinsParams, FetchPairParams, FetchParams, GAS_SYMBOL, GAS_TYPE_ARG, GAS_TYPE_ARG_LONG, Gauge, GetPairLiquidityParams, GetPairRewarderParams, GetPositionLiquidityParams, GetRewardByPosition, IncreaseLockAmountParams, IncreaseUnlockTimeParams, LaunchpadPoolConfig, LiquidityAndCoinYResult, LiquidityInput, LockModule, LockPermanentParams, LockVoteEvent, MAX_SQRT_PRICE, MAX_TICK_INDEX, MIN_SQRT_PRICE, MIN_TICK_INDEX, MagmaClmmSDK, MagmaConfigs, MathUtil, MergeLockParams, MintAmountParams, MintByStrategyParams, MintPercentParams, Minter, NFT, ONE, OnePath, OpenPositionAddLiquidityWithProtectionParams, OpenPositionParams, Order, POOL_NO_LIQUIDITY, POOL_STRUCT, Package, PageQuery, PaginationArgs, PathLink, PathProvider, Percentage, PokeParams, Pool, PoolImmutables, PoolInfo, PoolModule, Position, PositionModule, PositionReward, PositionStatus, PositionUtil, PreRouterSwapParams, PreSwapLpChangeParams, PreSwapParams, PreSwapResult, PreSwapWithMultiPoolParams, PriceResult, RaiseByStrategyParams, RemoveLiquidityParams, RewardDistributor, Rewarder, RewarderAmountOwed, RewarderGrowth, RouterModule, RouterModuleV2, RpcModule, SUI_SYSTEM_STATE_OBJECT_ID, SdkOptions, SplitPath, SplitSwap, SplitSwapResult, SplitUnit, StakedPositionOfPool, StrategyType, SuiAddressType, SuiBasicTypes, SuiInputTypes, SuiObjectDataWithContent, SuiObjectIdType, SuiResource, SuiStructTag, SuiTxArg, SwapDirection, SwapModule, SwapParams, SwapResult, SwapStepResult, SwapUtils, SwapWithRouterParams, TICK_ARRAY_SIZE, TWO, Tick, TickData, TickMath, TickUtil, Token, TokenConfig, TokenConfigEvent, TokenInfo, TokenModule, TransPreSwapWithMultiPoolParams, TransactionUtil, TransferLockParams, TxBlock, U128, U128_MAX, U64_MAX, Ve33Config, VoteParams, Voter, VotingEscrow, WithdrawPosition, ZERO, addHexPrefix, adjustForCoinSlippage, adjustForSlippage, asIntN, asUintN, autoFillXByStrategy, autoFillXByWeight, autoFillYByStrategy, autoFillYByWeight, bufferToHex, buildClmmPositionName, buildNFT, buildPool, buildPosition, buildPositionReward, buildTickData, buildTickDataByEvent, cacheTime24h, cacheTime5min, checkAddress, checkInvalidSuiAddress, clmmMainnet, clmmTestnet, collectFeesQuote, composeType, computeSwap, computeSwapStep, createSplitAmountArray, createSplitArray, createTestTransferTxPayloadParams, d, decimalsMultiplier, MagmaClmmSDK as default, estPoolAPR, estPosAPRResult, estPositionAPRWithDeltaMethod, estPositionAPRWithMultiMethod, estimateLiquidityForCoinA, estimateLiquidityForCoinB, extractAddressFromType, extractStructTagFromType, findAdjustCoin, fixCoinType, fixSuiObjectId, fromDecimalsAmount, getAmountFixedDelta, getAmountUnfixedDelta, getCoinAFromLiquidity, getCoinBFromLiquidity, getCoinXYForLiquidity, getDefaultSuiInputType, getDeltaA, getDeltaB, getDeltaDownFromOutput, getDeltaUpFromInput, getFutureTime, getLiquidityAndCoinYByCoinX, getLiquidityFromCoinA, getLiquidityFromCoinB, getLowerSqrtPriceFromCoinA, getLowerSqrtPriceFromCoinB, getMoveObject, getMoveObjectType, getMovePackageContent, getNearestTickByTick, getNextSqrtPriceAUp, getNextSqrtPriceBDown, getNextSqrtPriceFromInput, getNextSqrtPriceFromOutput, getObjectDeletedResponse, getObjectDisplay, getObjectFields, getObjectId, getObjectNotExistsResponse, getObjectOwner, getObjectPreviousTransactionDigest, getObjectReference, getObjectType, getObjectVersion, getPackagerConfigs, getPriceOfBinByBinId, getRewardInTickRange, getSuiObjectData, getTickDataFromUrlData, getUpperSqrtPriceFromCoinA, getUpperSqrtPriceFromCoinB, hasPublicTransfer, hexToNumber, hexToString, initMagmaSDK, initMainnetSDK, initTestnetSDK, isSortedSymbols, isSuiObjectResponse, newBits, normalizeCoinType, patchFixSuiObjectId, printTransaction, removeHexPrefix, secretKeyToEd25519Keypair, secretKeyToSecp256k1Keypair, shortAddress, shortString, tickScore, toAmountAskSide, toAmountBidSide, toAmountBothSide, toAmountsBothSideByStrategy, toBuffer, toCoinAmount, toDecimalsAmount, transClmmpoolDataWithoutTicks, utf8to16, withLiquiditySlippage };
4807
+ export { ALMMSwapParams, AMM_SWAP_MODULE, AddBribeReward, AddLiquidityCommonParams, AddLiquidityFixTokenParams, AddLiquidityParams, AddLiquidityWithProtectionParams, AddressAndDirection, AdjustResult, AggregatorResult, AlmmAddLiquidityParams, AlmmBurnPositionParams, AlmmCollectFeeParams, AlmmCollectRewardParams, AlmmConfig, AlmmCreatePairAddLiquidityParams, AlmmEventEarnedFees, AlmmEventEarnedRewards, AlmmEventPairRewardTypes, AlmmPoolInfo, AlmmPosition, AlmmPositionInfo, AlmmRewardsParams, AlmmScript, AlmmShrinkPosition, AmountSpecified, BaseDepositOptions, BasePath, BigNumber, BinDisplay, BinLiquidity, BinMath, Bits, BuildCoinResult, CLOCK_ADDRESS, CachedContent, CalculateRatesParams, CalculateRatesResult, CalculationDepositResult, CalculationWithdrawResult, ClaimAndLockParams, ClaimFeesParams, ClaimFeesPoolsParams, ClmmConfig, ClmmExpectSwapModule, ClmmFetcherModule, ClmmIntegratePoolModule, ClmmIntegratePoolV2Module, ClmmIntegratePoolV3Module, ClmmIntegrateRouterModule, ClmmIntegrateRouterWithPartnerModule, ClmmIntegrateUtilsModule, ClmmPartnerModule, ClmmPoolConfig, ClmmPoolUtil, ClmmPositionStatus, ClmmpoolData, ClosePositionParams, CoinAmounts, CoinAsset, CoinAssist, CoinConfig, CoinInfoAddress, CoinNode, CoinPairType, CoinProvider, CoinStoreAddress, CollectFeeParams, CollectFeesQuote, CollectFeesQuoteParam, CollectRewarderParams, ConfigModule, CreateLockParams, CreatePairParams, CreatePartnerEvent, CreatePoolAddLiquidityParams, CreatePoolParams, DEFAULT_GAS_BUDGET_FOR_MERGE, DEFAULT_GAS_BUDGET_FOR_SPLIT, DEFAULT_GAS_BUDGET_FOR_STAKE, DEFAULT_GAS_BUDGET_FOR_TRANSFER, DEFAULT_GAS_BUDGET_FOR_TRANSFER_SUI, DEFAULT_NFT_TRANSFER_GAS_FEE, DataPage, DeepbookClobV2Moudle, DeepbookCustodianV2Moudle, DeepbookEndpointsV2Moudle, DeepbookPool, DeepbookUtils, DepositMode, DepositOptions, DepositPosition, EpochEmission, EventBin, EventCreatePair, EventPairLiquidity, EventPairParams, EventPositionLiquidity, FEE_RATE_DENOMINATOR, FaucetCoin, FetchBinsParams, FetchPairParams, FetchParams, FixedOneSideOptions, FlexibleBothOptions, GAS_SYMBOL, GAS_TYPE_ARG, GAS_TYPE_ARG_LONG, Gauge, GetPairLiquidityParams, GetPairRewarderParams, GetPositionLiquidityParams, GetRewardByPosition, IncreaseLockAmountParams, IncreaseUnlockTimeParams, LaunchpadPoolConfig, LiquidityAndCoinYResult, LiquidityInput, LockModule, LockPermanentParams, LockVoteEvent, MAX_SQRT_PRICE, MAX_TICK_INDEX, MIN_SQRT_PRICE, MIN_TICK_INDEX, MagmaClmmSDK, MagmaConfigs, MathUtil, MergeLockParams, MintAmountParams, MintByStrategyParams, MintPercentParams, Minter, MultiCoinInput, NFT, ONE, OnePath, OnlyCoinAOptions, OnlyCoinBOptions, OpenPositionAddLiquidityWithProtectionParams, OpenPositionParams, Order, POOL_NO_LIQUIDITY, POOL_STRUCT, Package, PageQuery, PaginationArgs, PathLink, PathProvider, Percentage, PokeParams, Pool, PoolImmutables, PoolInfo, PoolModule, Position, PositionModule, PositionReward, PositionStatus, PositionUtil, PreRouterSwapParams, PreSwapLpChangeParams, PreSwapParams, PreSwapResult, PreSwapWithMultiPoolParams, PriceResult, RaiseByStrategyParams, RemoveLiquidityParams, RewardDistributor, Rewarder, RewarderAmountOwed, RewarderGrowth, RouterModule, RouterModuleV2, RpcModule, SUI_SYSTEM_STATE_OBJECT_ID, SdkOptions, SplitPath, SplitSwap, SplitSwapResult, SplitUnit, StakedPositionOfPool, StrategyType, SuiAddressType, SuiBasicTypes, SuiInputTypes, SuiObjectDataWithContent, SuiObjectIdType, SuiResource, SuiStructTag, SuiTxArg, SwapDirection, SwapModule, SwapParams, SwapResult, SwapResultV2, SwapStepResult, SwapUtils, SwapWithRouterParams, TICK_ARRAY_SIZE, TWO, Tick, TickData, TickMath, TickUtil, Token, TokenConfig, TokenConfigEvent, TokenInfo, TokenModule, TransPreSwapWithMultiPoolParams, TransactionUtil, TransferLockParams, TxBlock, U128, U128_MAX, U64_MAX, Ve33Config, VoteParams, Voter, VotingEscrow, WithdrawCalculationOptions, WithdrawOptions, WithdrawPosition, ZERO, addHexPrefix, adjustForCoinSlippage, adjustForSlippage, asIntN, asUintN, autoFillXByStrategy, autoFillXByWeight, autoFillYByStrategy, autoFillYByWeight, bufferToHex, buildClmmPositionName, buildNFT, buildPool, buildPosition, buildPositionReward, buildTickData, buildTickDataByEvent, cacheTime24h, cacheTime5min, checkAddress, checkInvalidSuiAddress, clmmMainnet, clmmTestnet, collectFeesQuote, composeType, computeSwap, computeSwapStep, convertScientificToDecimal, createSplitAmountArray, createSplitArray, createTestTransferTxPayloadParams, d, decimalsMultiplier, MagmaClmmSDK as default, defaultSwapSlippage, estPoolAPR, estPosAPRResult, estPositionAPRWithDeltaMethod, estPositionAPRWithMultiMethod, estimateLiquidityForCoinA, estimateLiquidityForCoinB, extractAddressFromType, extractStructTagFromType, findAdjustCoin, fixCoinType, fixSuiObjectId, fromDecimalsAmount, getAmountFixedDelta, getAmountUnfixedDelta, getCoinAFromLiquidity, getCoinBFromLiquidity, getCoinXYForLiquidity, getDefaultSuiInputType, getDeltaA, getDeltaB, getDeltaDownFromOutput, getDeltaUpFromInput, getFutureTime, getLiquidityAndCoinYByCoinX, getLiquidityFromCoinA, getLiquidityFromCoinB, getLowerSqrtPriceFromCoinA, getLowerSqrtPriceFromCoinB, getMoveObject, getMoveObjectType, getMovePackageContent, getNearestTickByTick, getNextSqrtPriceAUp, getNextSqrtPriceBDown, getNextSqrtPriceFromInput, getNextSqrtPriceFromOutput, getObjectDeletedResponse, getObjectDisplay, getObjectFields, getObjectId, getObjectNotExistsResponse, getObjectOwner, getObjectPreviousTransactionDigest, getObjectReference, getObjectType, getObjectVersion, getPackagerConfigs, getPriceOfBinByBinId, getRewardInTickRange, getSuiObjectData, getTickDataFromUrlData, getUpperSqrtPriceFromCoinA, getUpperSqrtPriceFromCoinB, hasPublicTransfer, hexToNumber, hexToString, initMagmaSDK, initMainnetSDK, initTestnetSDK, isSortedSymbols, isSuiObjectResponse, newBits, normalizeCoinType, patchFixSuiObjectId, printTransaction, removeHexPrefix, secretKeyToEd25519Keypair, secretKeyToSecp256k1Keypair, shortAddress, shortString, tickScore, toAmountAskSide, toAmountBidSide, toAmountBothSide, toAmountsBothSideByStrategy, toBuffer, toCoinAmount, toDecimalsAmount, transClmmpoolDataWithoutTicks, utf8to16, withLiquiditySlippage };