@magmaprotocol/magma-clmm-sdk 0.5.129 → 0.6.1

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;
@@ -1919,6 +1924,188 @@ type EventCreatePair = {
1919
1924
  type Token = {
1920
1925
  name: string;
1921
1926
  };
1927
+ type MultiCoinInput = {
1928
+ amount_coin_array: {
1929
+ coin_object_id: TransactionObjectArgument;
1930
+ amount: string;
1931
+ used: boolean;
1932
+ }[];
1933
+ coin_type: string;
1934
+ remain_coins: CoinAsset[];
1935
+ };
1936
+
1937
+ declare const defaultSwapSlippage = 0.005;
1938
+ /**
1939
+ * Result of a swap operation containing amounts and price information
1940
+ */
1941
+ type SwapResultV2 = {
1942
+ swap_in_amount: string;
1943
+ swap_out_amount: string;
1944
+ route_obj?: any;
1945
+ after_sqrt_price: string;
1946
+ swap_price: string;
1947
+ };
1948
+ /**
1949
+ * Different modes for depositing liquidity into a pool
1950
+ */
1951
+ type DepositMode = 'FixedOneSide' | 'FlexibleBoth' | 'OnlyCoinA' | 'OnlyCoinB';
1952
+ /**
1953
+ * Options for depositing with a fixed amount on one side
1954
+ */
1955
+ type FixedOneSideOptions = {
1956
+ mode: 'FixedOneSide';
1957
+ fixed_amount: string;
1958
+ fixed_coin_a: boolean;
1959
+ };
1960
+ /**
1961
+ * Options for depositing with flexible amounts on both sides
1962
+ */
1963
+ type FlexibleBothOptions = {
1964
+ mode: 'FlexibleBoth';
1965
+ coin_amount_a: string;
1966
+ coin_amount_b: string;
1967
+ coin_type_a: string;
1968
+ coin_type_b: string;
1969
+ coin_decimal_a: number;
1970
+ coin_decimal_b: number;
1971
+ max_remain_rate?: number;
1972
+ };
1973
+ /**
1974
+ * Options for depositing only Coin A
1975
+ */
1976
+ type OnlyCoinAOptions = {
1977
+ mode: 'OnlyCoinA';
1978
+ coin_amount: string;
1979
+ coin_type_a: string;
1980
+ coin_type_b: string;
1981
+ coin_decimal_a: number;
1982
+ coin_decimal_b: number;
1983
+ max_remain_rate?: number;
1984
+ };
1985
+ /**
1986
+ * Options for depositing only Coin B
1987
+ */
1988
+ type OnlyCoinBOptions = {
1989
+ mode: 'OnlyCoinB';
1990
+ coin_amount: string;
1991
+ coin_type_a: string;
1992
+ coin_type_b: string;
1993
+ coin_decimal_a: number;
1994
+ coin_decimal_b: number;
1995
+ max_remain_rate?: number;
1996
+ };
1997
+ /**
1998
+ * Base options required for any deposit calculation
1999
+ */
2000
+ type BaseDepositOptions = {
2001
+ pool_id: string;
2002
+ tick_lower: number;
2003
+ tick_upper: number;
2004
+ current_sqrt_price: string;
2005
+ mark_price?: string;
2006
+ slippage: number;
2007
+ swap_slippage?: number;
2008
+ };
2009
+ /**
2010
+ * Result of a deposit calculation
2011
+ */
2012
+ type CalculationDepositResult = {
2013
+ liquidity: string;
2014
+ amount_a: string;
2015
+ amount_b: string;
2016
+ amount_limit_a: string;
2017
+ amount_limit_b: string;
2018
+ original_input_amount_a: string;
2019
+ original_input_amount_b: string;
2020
+ mode: DepositMode;
2021
+ fixed_liquidity_coin_a: boolean;
2022
+ swap_result?: SwapResultV2;
2023
+ sub_deposit_result?: CalculationDepositResult;
2024
+ };
2025
+ /**
2026
+ * Complete options for executing a deposit
2027
+ */
2028
+ type DepositOptions = {
2029
+ deposit_obj: CalculationDepositResult;
2030
+ pool_id: string;
2031
+ farms_pool_id?: string;
2032
+ coin_type_a: string;
2033
+ coin_type_b: string;
2034
+ tick_lower: number;
2035
+ tick_upper: number;
2036
+ slippage: number;
2037
+ swap_slippage?: number;
2038
+ pos_obj?: {
2039
+ pos_id: string | TransactionObjectArgument;
2040
+ collect_fee: boolean;
2041
+ collect_rewarder_types: string[];
2042
+ };
2043
+ };
2044
+ /**
2045
+ * Options for calculating withdrawal amounts
2046
+ */
2047
+ type WithdrawCalculationOptions = {
2048
+ pool_id: string;
2049
+ tick_lower: number;
2050
+ tick_upper: number;
2051
+ coin_decimal_a: number;
2052
+ coin_decimal_b: number;
2053
+ current_sqrt_price: string;
2054
+ mode: DepositMode;
2055
+ coin_type_a: string;
2056
+ coin_type_b: string;
2057
+ burn_liquidity?: string;
2058
+ } & ({
2059
+ mode: 'FixedOneSide';
2060
+ fixed_amount?: string;
2061
+ fixed_coin_a?: boolean;
2062
+ } | {
2063
+ mode: 'FlexibleBoth';
2064
+ receive_amount_a: string;
2065
+ receive_amount_b: string;
2066
+ available_liquidity: string;
2067
+ max_remain_rate?: number;
2068
+ } | {
2069
+ mode: 'OnlyCoinA';
2070
+ receive_amount_a?: string;
2071
+ available_liquidity: string;
2072
+ max_remain_rate?: number;
2073
+ } | {
2074
+ mode: 'OnlyCoinB';
2075
+ receive_amount_b?: string;
2076
+ available_liquidity: string;
2077
+ max_remain_rate?: number;
2078
+ });
2079
+ /**
2080
+ * Result of a withdrawal calculation
2081
+ */
2082
+ type CalculationWithdrawResult = {
2083
+ burn_liquidity: string;
2084
+ amount_a: string;
2085
+ amount_b: string;
2086
+ total_receive_amount?: string;
2087
+ mode: DepositMode;
2088
+ swap_result?: SwapResultV2;
2089
+ };
2090
+ /**
2091
+ * Complete options for executing a withdrawal
2092
+ */
2093
+ type WithdrawOptions = {
2094
+ withdraw_obj: CalculationWithdrawResult;
2095
+ pool_id: string;
2096
+ farms_pool_id?: string;
2097
+ pos_id: string;
2098
+ close_pos: boolean;
2099
+ collect_fee: boolean;
2100
+ collect_rewarder_types: string[];
2101
+ collect_farms_rewarder?: boolean;
2102
+ coin_type_a: string;
2103
+ coin_type_b: string;
2104
+ tick_lower: number;
2105
+ tick_upper: number;
2106
+ slippage: number;
2107
+ swap_slippage?: number;
2108
+ };
1922
2109
 
1923
2110
  type BigNumber = Decimal.Value | number | string;
1924
2111
 
@@ -2440,6 +2627,11 @@ declare class CoinAssist {
2440
2627
  * @returns The total balance of the CoinAsset objects.
2441
2628
  */
2442
2629
  static calculateTotalBalance(coins: CoinAsset[]): bigint;
2630
+ static getCoinAmountObjId(coin_input: MultiCoinInput, amount: string): TransactionObjectArgument;
2631
+ static buildCoinWithBalance(amount: bigint, coin_type: string, tx: Transaction): TransactionObjectArgument;
2632
+ static buildMultiCoinInput(tx: Transaction, all_coin_assets: CoinAsset[], coin_type: string, amount_arr: bigint[]): MultiCoinInput;
2633
+ static fromBalance(balance: TransactionObjectArgument, coin_type: string, tx: Transaction): TransactionObjectArgument;
2634
+ static intoBalance(coin_obj: TransactionObjectArgument | string, coin_type: string, tx: Transaction): TransactionObjectArgument;
2443
2635
  }
2444
2636
 
2445
2637
  /**
@@ -3001,20 +3193,20 @@ declare class PositionModule implements IModule {
3001
3193
  * @param {boolean} calculateRewarder Whether to calculate the rewarder of the position.
3002
3194
  * @returns {Promise<Position>} Position object.
3003
3195
  */
3004
- getPosition(positionHandle: string, positionID: string, calculateRewarder?: boolean, showDisplay?: boolean): Promise<Position>;
3196
+ getPosition(positionHandle: string, positionID: string, calculateRewarder?: boolean, showDisplay?: boolean, forceRefresh?: boolean): Promise<Position>;
3005
3197
  /**
3006
3198
  * Gets a position by its ID.
3007
3199
  * @param {string} positionID The ID of the position to get.
3008
3200
  * @param {boolean} calculateRewarder Whether to calculate the rewarder of the position.
3009
3201
  * @returns {Promise<Position>} Position object.
3010
3202
  */
3011
- getPositionById(positionID: string, calculateRewarder?: boolean, showDisplay?: boolean): Promise<Position>;
3203
+ getPositionById(positionID: string, calculateRewarder?: boolean, showDisplay?: boolean, forceRefresh?: boolean): Promise<Position>;
3012
3204
  /**
3013
3205
  * Gets a simple position for the given position ID.
3014
3206
  * @param {string} positionID The ID of the position to get.
3015
3207
  * @returns {Promise<Position>} Position object.
3016
3208
  */
3017
- getSimplePosition(positionID: string, showDisplay?: boolean): Promise<Position>;
3209
+ getSimplePosition(positionID: string, showDisplay?: boolean, forceRefresh?: boolean): Promise<Position>;
3018
3210
  /**
3019
3211
  * Gets a simple position for the given position ID.
3020
3212
  * @param {string} positionID Position object id
@@ -3794,11 +3986,11 @@ declare class AlmmModule implements IModule {
3794
3986
  getPoolInfo(pools: string[], forceRefresh?: boolean): Promise<AlmmPoolInfo[]>;
3795
3987
  fetchPairParams(params: FetchPairParams): Promise<EventPairParams>;
3796
3988
  createPairPayload(params: CreatePairParams): Promise<Transaction>;
3797
- mintByStrategy(params: MintByStrategyParams): Promise<Transaction>;
3798
- addLiquidityByStrategy(params: RaiseByStrategyParams): Promise<Transaction>;
3989
+ mintByStrategy(params: MintByStrategyParams, tx?: Transaction): Promise<Transaction>;
3990
+ addLiquidityByStrategy(params: RaiseByStrategyParams, tx?: Transaction): Promise<Transaction>;
3799
3991
  private _raisePositionByAmounts;
3800
3992
  private _raisePositionByAmountsReward;
3801
- burnPosition(params: AlmmBurnPositionParams): Promise<Transaction>;
3993
+ burnPosition(params: AlmmBurnPositionParams, tx?: Transaction): Promise<Transaction>;
3802
3994
  shrinkPosition(params: AlmmShrinkPosition): Promise<Transaction>;
3803
3995
  collectFeeAndRewardList(paramsList: AlmmCollectRewardParams[]): Promise<Transaction>;
3804
3996
  collectFeeAndReward(params: AlmmCollectRewardParams & AlmmCollectFeeParams, tx?: Transaction): Promise<Transaction>;
@@ -4086,34 +4278,6 @@ declare class CachedContent {
4086
4278
  isValid(): boolean;
4087
4279
  }
4088
4280
 
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
4281
  /**
4118
4282
  * Converts a secret key in string or Uint8Array format to an Ed25519 key pair.
4119
4283
  * @param {string|Uint8Array} secretKey - The secret key to convert.
@@ -4211,8 +4375,53 @@ declare function hexToNumber(binaryData: string): number;
4211
4375
  declare function utf8to16(str: string): string;
4212
4376
  declare function hexToString(str: string): string;
4213
4377
 
4378
+ /**
4379
+ * Creates a Decimal instance from a value
4380
+ * @param value - The value to convert to Decimal
4381
+ * @returns A Decimal instance
4382
+ */
4214
4383
  declare function d(value?: Decimal.Value): Decimal.Instance;
4384
+ /**
4385
+ * Calculates the multiplier for decimal places
4386
+ * @param decimals - The number of decimal places
4387
+ * @returns A Decimal instance representing the multiplier
4388
+ */
4215
4389
  declare function decimalsMultiplier(decimals?: Decimal.Value): Decimal.Instance;
4390
+ /**
4391
+ * Converts an amount to a decimal value, based on the number of decimals specified.
4392
+ * @param {number | string} amount - The amount to convert to decimal.
4393
+ * @param {number | string} decimals - The number of decimals to use in the conversion.
4394
+ * @returns {number} - Returns the converted amount as a number.
4395
+ */
4396
+ declare function toDecimalsAmount(amount: number | string, decimals: number | string, rounding?: 1): string;
4397
+ /**
4398
+ * Converts a bigint to an unsigned integer of the specified number of bits.
4399
+ * @param {bigint} int - The bigint to convert.
4400
+ * @param {number} bits - The number of bits to use in the conversion. Defaults to 32 bits.
4401
+ * @returns {string} - Returns the converted unsigned integer as a string.
4402
+ */
4403
+ declare function asUintN(int: bigint, bits?: number): string;
4404
+ /**
4405
+ * Converts a bigint to a signed integer of the specified number of bits.
4406
+ * @param {bigint} int - The bigint to convert.
4407
+ * @param {number} bits - The number of bits to use in the conversion. Defaults to 32 bits.
4408
+ * @returns {number} - Returns the converted signed integer as a number.
4409
+ */
4410
+ declare function asIntN(int: bigint, bits?: number): number;
4411
+ /**
4412
+ * Converts an amount in decimals to its corresponding numerical value.
4413
+ * @param {number|string} amount - The amount to convert.
4414
+ * @param {number|string} decimals - The number of decimal places used in the amount.
4415
+ * @returns {string} - Returns the converted numerical value.
4416
+ */
4417
+ declare function fromDecimalsAmount(amount: number | string, decimals: number | string): string;
4418
+ /**
4419
+ * Converts a scientific notation number string to decimal form
4420
+ * @param num_str - The number string to convert
4421
+ * @param precision - The precision (number of decimal places to keep)
4422
+ * @returns The decimal form string
4423
+ */
4424
+ declare function convertScientificToDecimal(num_str?: string, precision?: number): string;
4216
4425
 
4217
4426
  declare class TickUtil {
4218
4427
  /**
@@ -4594,4 +4803,4 @@ interface InitMagmaSDKOptions {
4594
4803
  */
4595
4804
  declare function initMagmaSDK(options: InitMagmaSDKOptions): MagmaClmmSDK;
4596
4805
 
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 };
4806
+ 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 };