@magmaprotocol/magma-clmm-sdk 0.5.33 → 0.5.35

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/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  <br />
8
8
  <div align="center">
9
9
  <a >
10
- <img src="./icon_color.svg" alt="Logo" width="100" height="100">
10
+ <img src="https://app.magmafinance.io/magma.svg" alt="Logo" width="100" height="100">
11
11
  </a>
12
12
 
13
13
  <h3 align="center">Magma-CLMM-SDK</h3>
package/dist/index.d.ts CHANGED
@@ -37,6 +37,7 @@ declare const Voter = "voter";
37
37
  declare const RewardDistributor = "reward_distributor";
38
38
  declare const Gauge = "gauge";
39
39
  declare const Minter = "minter";
40
+ declare const DlmmScript = "dlmm_script";
40
41
  /**
41
42
  * The address for CoinInfo module.
42
43
  */
@@ -451,6 +452,9 @@ type ClmmConfig = {
451
452
  */
452
453
  partners_id?: SuiObjectIdType;
453
454
  };
455
+ type DlmmConfig = {
456
+ factory: SuiObjectIdType;
457
+ };
454
458
  /**
455
459
  * Represents an event to create a liquidity mining partner.
456
460
  */
@@ -800,7 +804,7 @@ type CalculateRatesResult = {
800
804
  /**
801
805
  * Represents parameters for a swap operation.
802
806
  */
803
- type SwapParams = {
807
+ type SwapParams$1 = {
804
808
  /**
805
809
  * The identifier of the pool.
806
810
  */
@@ -2998,7 +3002,7 @@ declare class SwapModule implements IModule {
2998
3002
  * If this parameter is not passed, gas estimation is not performed
2999
3003
  * @returns
3000
3004
  */
3001
- createSwapTransactionPayload(params: SwapParams, gasEstimateArg?: {
3005
+ createSwapTransactionPayload(params: SwapParams$1, gasEstimateArg?: {
3002
3006
  byAmountIn: boolean;
3003
3007
  slippage: Percentage;
3004
3008
  decimalsA: number;
@@ -3013,7 +3017,7 @@ declare class SwapModule implements IModule {
3013
3017
  * If this parameter is not passed, gas estimation is not performed
3014
3018
  * @returns tx and coin ABs
3015
3019
  */
3016
- createSwapTransactionWithoutTransferCoinsPayload(params: SwapParams, gasEstimateArg?: {
3020
+ createSwapTransactionWithoutTransferCoinsPayload(params: SwapParams$1, gasEstimateArg?: {
3017
3021
  byAmountIn: boolean;
3018
3022
  slippage: Percentage;
3019
3023
  decimalsA: number;
@@ -3026,6 +3030,8 @@ declare class SwapModule implements IModule {
3026
3030
  }>;
3027
3031
  }
3028
3032
 
3033
+ type LockID = string;
3034
+ type PoolID = string;
3029
3035
  type LocksInfo = {
3030
3036
  owner: string;
3031
3037
  lockInfo: LockInfo[];
@@ -3100,15 +3106,33 @@ declare class LockModule implements IModule {
3100
3106
  claimVotingBribe(locks: string[], incentive_tokens: string[]): Promise<Transaction>;
3101
3107
  claimVotingFeeAndBribeForPool(lockId: string, poolId: string, feeTokens: string[], incentiveTokens: string[]): Promise<Transaction>;
3102
3108
  fastLocksOfUser(user: string): Promise<LocksInfo>;
3109
+ locksOfUserV2(user: string): Promise<LocksInfo>;
3103
3110
  locksOfUser(user: string): Promise<LocksInfo>;
3104
3111
  aLockInfo(lockId: string): Promise<LockInfo>;
3105
3112
  aLockSummary(lock_id: string): Promise<ALockSummary>;
3113
+ getAllLockSummary(lock_ids: string[]): Promise<Map<LockID, ALockSummary>>;
3114
+ _aLockSummary(lock_id: string, tx?: Transaction): Promise<Transaction>;
3115
+ _parseLockSummary(tx: Transaction): Promise<Map<LockID, ALockSummary>>;
3106
3116
  allLockSummary(): Promise<AllLockSummary>;
3107
3117
  poolWeights(pools: string[]): Promise<PoolWeight[]>;
3118
+ getAllVotingFeeRewardTokens(lock_ids: string[]): Promise<Map<LockID, string[]>>;
3119
+ _getVotingFeeRewardTokens(lock_id: string, tx?: Transaction): Promise<Transaction>;
3120
+ _parseVotingFeeRewardTokens(tx: Transaction): Promise<Map<LockID, string[]>>;
3108
3121
  getVotingFeeRewardTokens(lock_id: string): Promise<Map<string, string[]>>;
3122
+ getAllBribeRewardTokensOfLock(lock_ids: string[]): Promise<Map<LockID, string[]>>;
3123
+ _getVotingBribeRewardTokens(lock_id: string, tx?: Transaction): Promise<Transaction>;
3124
+ _parseVotingBribeRewardTokens(tx: Transaction): Promise<Map<LockID, string[]>>;
3109
3125
  getVotingBribeRewardTokens(lock_id: string): Promise<Map<string, string[]>>;
3110
- getPoolFeeRewards(lock_id: string, tokens: string[]): Promise<Map<string, Map<string, string>>>;
3126
+ getAllFeeRewards(fee_tokens: Map<LockID, string[]>): Promise<Map<LockID, Map<PoolID, Coin[]>>>;
3127
+ _getFeeRewards(lock_id: string, fee_tokens: string[], tx: Transaction): Transaction;
3128
+ _getFeeRewardsInner(lock_id: LockID, token_a: string, token_b: string, tx?: Transaction): Transaction;
3129
+ _parseFeeRewards(tx: Transaction): Promise<Map<LockID, Map<PoolID, Coin[]>>>;
3130
+ getPoolFeeRewards(lock_id: LockID, tokens: string[]): Promise<Map<string, Map<string, string>>>;
3111
3131
  _getPoolFeeRewards(lock_id: string, token_a: string, token_b: string, poolFeeRewardTokens: Map<string, Map<string, string>>): Promise<Map<string, Map<string, string>>>;
3132
+ getAllIncentiveRewards(lock_incentive_tokens: Map<LockID, string[]>): Promise<Map<LockID, Map<PoolID, Coin[]>>>;
3133
+ _getIncentiveRewards(lock_id: string, incentive_tokens: string[], tx?: Transaction): Transaction;
3134
+ _getIncentiveRewardsInner(locksId: string, incentive_tokens: string[], tx?: Transaction): Transaction;
3135
+ _parseIncentiveRewards(tx: Transaction): Promise<Map<LockID, Map<PoolID, Coin[]>>>;
3112
3136
  getPoolIncentiveRewards(lock_id: string, incentive_tokens: string[]): Promise<Map<string, Map<string, string>>>;
3113
3137
  _getPoolIncentiveRewards(locksId: string, incentive_tokens: string[], poolBribeRewardTokens: Map<string, Map<string, string>>): Promise<Map<string, Map<string, string>>>;
3114
3138
  getPoolBribeRewardTokens(pool_id: string): Promise<Map<string, string[]>>;
@@ -3352,9 +3376,138 @@ declare class GaugeModule implements IModule {
3352
3376
  getPoolCoins(pools: string[]): Promise<Map<string, string[]>>;
3353
3377
  getEmissions(): Promise<EpochEmission>;
3354
3378
  getRewardByPosition(params: GetRewardByPosition): Promise<Transaction>;
3379
+ getAllRewardByPositions(paramsList: GetRewardByPosition[]): Promise<Transaction>;
3355
3380
  getEpochRewardByPool(pool: string, incentive_tokens: string[]): Promise<Map<string, string>>;
3356
3381
  }
3357
3382
 
3383
+ type FetchPairParams = {
3384
+ pair: string;
3385
+ coinTypeA: string;
3386
+ coinTypeB: string;
3387
+ };
3388
+ type CreatePairParams = {
3389
+ bin_step: number;
3390
+ coinTypeA: string;
3391
+ coinTypeB: string;
3392
+ coinADecimal: number;
3393
+ coinBDecimal: number;
3394
+ priceTokenBPerTokenA: string;
3395
+ };
3396
+ type MintPercentParams = {
3397
+ pair: string;
3398
+ coinTypeA: string;
3399
+ coinTypeB: string;
3400
+ amountATotal: number;
3401
+ amountBTotal: number;
3402
+ storageIds: number[];
3403
+ binsAPercent: number[];
3404
+ binsBPercent: number[];
3405
+ to: string;
3406
+ };
3407
+ type MintAmountParams = {
3408
+ pair: string;
3409
+ coinTypeA: string;
3410
+ coinTypeB: string;
3411
+ amountATotal: number;
3412
+ amountBTotal: number;
3413
+ storageIds: number[];
3414
+ amountsA: number[];
3415
+ amountsB: number[];
3416
+ to: string;
3417
+ };
3418
+ type SwapParams = {
3419
+ pair: string;
3420
+ coinTypeA: string;
3421
+ coinTypeB: string;
3422
+ amountIn: number;
3423
+ minAmountOut: number;
3424
+ swapForY: boolean;
3425
+ to: string;
3426
+ };
3427
+ type FetchBinsParams = {
3428
+ pair: string;
3429
+ coinTypeA: string;
3430
+ coinTypeB: string;
3431
+ offset: number;
3432
+ limit: number;
3433
+ };
3434
+ type GetPositionLiquidityParams = {
3435
+ pair: string;
3436
+ coinTypeA: string;
3437
+ coinTypeB: string;
3438
+ positionId: string;
3439
+ };
3440
+ type GetPairLiquidityParams = {
3441
+ pair: string;
3442
+ coinTypeA: string;
3443
+ coinTypeB: string;
3444
+ };
3445
+ type EventPairParams = {
3446
+ base_factor: number;
3447
+ filter_period: number;
3448
+ decay_period: number;
3449
+ reduction_factor: number;
3450
+ variable_fee_control: number;
3451
+ protocol_share: number;
3452
+ max_volatility_accumulator: number;
3453
+ volatility_accumulator: number;
3454
+ volatility_reference: number;
3455
+ index_reference: number;
3456
+ time_of_last_update: number | string;
3457
+ oracle_index: number;
3458
+ active_index: number;
3459
+ };
3460
+ type EventBin = {
3461
+ storage_id: number | string;
3462
+ price_q128: number | string;
3463
+ reserve_x: number | string;
3464
+ reserve_y: number | string;
3465
+ staked_liquidity: number | string;
3466
+ staked_lp_amount: number | string;
3467
+ fee_x: number | string;
3468
+ fee_y: number | string;
3469
+ fee_growth_x: number | string;
3470
+ fee_growth_y: number | string;
3471
+ rewarder_growth: number[] | string[];
3472
+ distribution_growth: number | string;
3473
+ distribution_last_updated: number | string;
3474
+ };
3475
+ type EventPositionLiquidity = {
3476
+ shares: number | string;
3477
+ liquidity: number | string;
3478
+ x_equivalent: number | string;
3479
+ y_equivalent: number | string;
3480
+ bin_ids: number[] | string[];
3481
+ bin_x_eq: number[] | string[];
3482
+ bin_y_eq: number[] | string[];
3483
+ bin_liquidity: number[] | string[];
3484
+ };
3485
+ type EventPairLiquidity = {
3486
+ shares: number | string;
3487
+ liquidity: number | string;
3488
+ x: number | string;
3489
+ y: number | string;
3490
+ bin_ids: number[] | string[];
3491
+ bin_x: number[] | string[];
3492
+ bin_y: number[] | string[];
3493
+ };
3494
+
3495
+ declare class DlmmModule implements IModule {
3496
+ protected _sdk: MagmaClmmSDK;
3497
+ constructor(sdk: MagmaClmmSDK);
3498
+ get sdk(): MagmaClmmSDK;
3499
+ fetchPairParams(params: FetchPairParams): Promise<EventPairParams>;
3500
+ price_to_storage_id(price: string, bin_step: number, tokenADecimal: number, tokenBDecimal: number): number;
3501
+ createPairPayload(params: CreatePairParams): Promise<Transaction>;
3502
+ createAddLiquidityPayload(): Promise<Transaction>;
3503
+ mintPercent(params: MintPercentParams): Promise<Transaction>;
3504
+ createPositionByAmount(params: MintAmountParams): Promise<Transaction>;
3505
+ swap(params: SwapParams): Promise<Transaction>;
3506
+ fetchBins(params: FetchBinsParams): Promise<EventBin[]>;
3507
+ getPositionLiquidity(params: GetPositionLiquidityParams): Promise<EventPositionLiquidity>;
3508
+ getPairLiquidity(params: GetPairLiquidityParams): Promise<EventPairLiquidity>;
3509
+ }
3510
+
3358
3511
  /**
3359
3512
  * Represents options and configurations for an SDK.
3360
3513
  */
@@ -3392,6 +3545,7 @@ type SdkOptions = {
3392
3545
  * Package containing Cryptocurrency Liquidity Mining Module (CLMM) pool configurations.
3393
3546
  */
3394
3547
  clmm_pool: Package<ClmmConfig>;
3548
+ dlmm_pool: Package<DlmmConfig>;
3395
3549
  distribution: Package;
3396
3550
  /**
3397
3551
  * Package containing integration-related configurations.
@@ -3440,6 +3594,7 @@ declare class MagmaClmmSDK {
3440
3594
  */
3441
3595
  protected _lock: LockModule;
3442
3596
  protected _gauge: GaugeModule;
3597
+ protected _dlmm: DlmmModule;
3443
3598
  /**
3444
3599
  * Provide interact with a position rewarder interface.
3445
3600
  */
@@ -3487,6 +3642,7 @@ declare class MagmaClmmSDK {
3487
3642
  get Swap(): SwapModule;
3488
3643
  get Lock(): LockModule;
3489
3644
  get Gauge(): GaugeModule;
3645
+ get Dlmm(): DlmmModule;
3490
3646
  /**
3491
3647
  * Getter for the fullClient property.
3492
3648
  * @returns {RpcModule} The fullClient property value.
@@ -3818,7 +3974,7 @@ declare class TransactionUtil {
3818
3974
  * @param curSqrtPrice
3819
3975
  * @returns
3820
3976
  */
3821
- static buildSwapTransactionForGas(sdk: MagmaClmmSDK, params: SwapParams, allCoinAsset: CoinAsset[], gasEstimateArg: {
3977
+ static buildSwapTransactionForGas(sdk: MagmaClmmSDK, params: SwapParams$1, allCoinAsset: CoinAsset[], gasEstimateArg: {
3822
3978
  byAmountIn: boolean;
3823
3979
  slippage: Percentage;
3824
3980
  decimalsA: number;
@@ -3832,7 +3988,7 @@ declare class TransactionUtil {
3832
3988
  * @param packageId
3833
3989
  * @returns
3834
3990
  */
3835
- static buildSwapTransaction(sdk: MagmaClmmSDK, params: SwapParams, allCoinAsset: CoinAsset[]): Transaction;
3991
+ static buildSwapTransaction(sdk: MagmaClmmSDK, params: SwapParams$1, allCoinAsset: CoinAsset[]): Transaction;
3836
3992
  static buildCreateLockTransaction(sdk: MagmaClmmSDK, params: CreateLockParams, allCoinAsset: CoinAsset[]): Transaction;
3837
3993
  static buildCreateTransactionArgs(tx: Transaction, params: CreateLockParams, sdkOptions: SdkOptions, lockCoinInput: BuildCoinResult): Transaction;
3838
3994
  static buildIncreaseLockAmountTransaction(sdk: MagmaClmmSDK, params: IncreaseLockAmountParams, allCoinAsset: CoinAsset[]): Transaction;
@@ -3856,7 +4012,7 @@ declare class TransactionUtil {
3856
4012
  * @param packageId
3857
4013
  * @returns
3858
4014
  */
3859
- static buildSwapTransactionArgs(tx: Transaction, params: SwapParams, sdkOptions: SdkOptions, primaryCoinInputA: BuildCoinResult, primaryCoinInputB: BuildCoinResult): Transaction;
4015
+ static buildSwapTransactionArgs(tx: Transaction, params: SwapParams$1, sdkOptions: SdkOptions, primaryCoinInputA: BuildCoinResult, primaryCoinInputB: BuildCoinResult): Transaction;
3860
4016
  /**
3861
4017
  * build add liquidity transaction with out transfer coins
3862
4018
  * @param params
@@ -3864,7 +4020,7 @@ declare class TransactionUtil {
3864
4020
  * @param curSqrtPrice
3865
4021
  * @returns
3866
4022
  */
3867
- static buildSwapTransactionWithoutTransferCoinsForGas(sdk: MagmaClmmSDK, params: SwapParams, allCoinAsset: CoinAsset[], gasEstimateArg: {
4023
+ static buildSwapTransactionWithoutTransferCoinsForGas(sdk: MagmaClmmSDK, params: SwapParams$1, allCoinAsset: CoinAsset[], gasEstimateArg: {
3868
4024
  byAmountIn: boolean;
3869
4025
  slippage: Percentage;
3870
4026
  decimalsA: number;
@@ -3881,7 +4037,7 @@ declare class TransactionUtil {
3881
4037
  * @param packageId
3882
4038
  * @returns
3883
4039
  */
3884
- static buildSwapTransactionWithoutTransferCoins(sdk: MagmaClmmSDK, params: SwapParams, allCoinAsset: CoinAsset[]): {
4040
+ static buildSwapTransactionWithoutTransferCoins(sdk: MagmaClmmSDK, params: SwapParams$1, allCoinAsset: CoinAsset[]): {
3885
4041
  tx: Transaction;
3886
4042
  coinABs: TransactionObjectArgument[];
3887
4043
  };
@@ -3891,18 +4047,18 @@ declare class TransactionUtil {
3891
4047
  * @param packageId
3892
4048
  * @returns
3893
4049
  */
3894
- static buildSwapTransactionWithoutTransferCoinArgs(sdk: MagmaClmmSDK, tx: Transaction, params: SwapParams, sdkOptions: SdkOptions, primaryCoinInputA: BuildCoinResult, primaryCoinInputB: BuildCoinResult): {
4050
+ static buildSwapTransactionWithoutTransferCoinArgs(sdk: MagmaClmmSDK, tx: Transaction, params: SwapParams$1, sdkOptions: SdkOptions, primaryCoinInputA: BuildCoinResult, primaryCoinInputB: BuildCoinResult): {
3895
4051
  tx: Transaction;
3896
4052
  txRes: TransactionObjectArgument[];
3897
4053
  };
3898
- static fixSwapParams(sdk: MagmaClmmSDK, params: SwapParams, gasEstimateArg: {
4054
+ static fixSwapParams(sdk: MagmaClmmSDK, params: SwapParams$1, gasEstimateArg: {
3899
4055
  byAmountIn: boolean;
3900
4056
  slippage: Percentage;
3901
4057
  decimalsA: number;
3902
4058
  decimalsB: number;
3903
4059
  swapTicks: Array<TickData>;
3904
4060
  currentPool: Pool;
3905
- }): Promise<SwapParams>;
4061
+ }): Promise<SwapParams$1>;
3906
4062
  static syncBuildCoinInputForAmount(sdk: MagmaClmmSDK, tx: Transaction, amount: bigint, coinType: string, buildVector?: boolean, fixAmount?: boolean): Promise<TransactionObjectArgument | undefined>;
3907
4063
  static buildCoinForAmount(tx: Transaction, allCoins: CoinAsset[], amount: bigint, coinType: string, buildVector?: boolean, fixAmount?: boolean): BuildCoinResult;
3908
4064
  private static buildVectorCoin;
@@ -4082,4 +4238,4 @@ interface InitMagmaSDKOptions {
4082
4238
  */
4083
4239
  declare function initMagmaSDK(options: InitMagmaSDKOptions): MagmaClmmSDK;
4084
4240
 
4085
- export { AMM_SWAP_MODULE, AddBribeReward, AddLiquidityCommonParams, AddLiquidityFixTokenParams, AddLiquidityParams, AddLiquidityWithProtectionParams, AddressAndDirection, AdjustResult, AggregatorResult, AmountSpecified, BasePath, BigNumber, 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, 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, FEE_RATE_DENOMINATOR, FaucetCoin, FetchParams, GAS_SYMBOL, GAS_TYPE_ARG, GAS_TYPE_ARG_LONG, Gauge, GetRewardByPosition, IncreaseLockAmountParams, IncreaseUnlockTimeParams, LaunchpadPoolConfig, LiquidityInput, LockModule, LockPermanentParams, LockVoteEvent, MAX_SQRT_PRICE, MAX_TICK_INDEX, MIN_SQRT_PRICE, MIN_TICK_INDEX, MagmaClmmSDK, MagmaConfigs, MathUtil, MergeLockParams, Minter, NFT, ONE, OnePath, OpenPositionAddLiquidityWithProtectionParams, OpenPositionParams, Order, POOL_STRUCT, Package, PageQuery, PaginationArgs, PathLink, PathProvider, Percentage, PokeParams, Pool, PoolImmutables, PoolInfo, PoolModule, Position, PositionModule, PositionReward, PositionStatus, PositionUtil, PreRouterSwapParams, PreSwapLpChangeParams, PreSwapParams, PreSwapResult, PreSwapWithMultiPoolParams, PriceResult, RemoveLiquidityParams, RewardDistributor, Rewarder, RewarderAmountOwed, RouterModule, RouterModuleV2, RpcModule, SUI_SYSTEM_STATE_OBJECT_ID, SdkOptions, SplitPath, SplitSwap, SplitSwapResult, SplitUnit, StakedPositionOfPool, SuiAddressType, SuiBasicTypes, SuiInputTypes, SuiObjectDataWithContent, SuiObjectIdType, SuiResource, SuiStructTag, SuiTxArg, SwapDirection, SwapModule, SwapParams, SwapResult, SwapStepResult, SwapUtils, SwapWithRouterParams, TICK_ARRAY_SIZE, TWO, Tick, TickData, TickMath, TickUtil, TokenConfig, TokenConfigEvent, TokenInfo, TokenModule, TransPreSwapWithMultiPoolParams, TransactionUtil, TransferLockParams, TxBlock, U128, U128_MAX, U64_MAX, VoteParams, Voter, VotingEscrow, WithdrawPosition, ZERO, addHexPrefix, adjustForCoinSlippage, adjustForSlippage, asIntN, asUintN, 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, getDefaultSuiInputType, getDeltaA, getDeltaB, getDeltaDownFromOutput, getDeltaUpFromInput, getFutureTime, getLiquidityFromCoinA, getLiquidityFromCoinB, getLowerSqrtPriceFromCoinA, getLowerSqrtPriceFromCoinB, getMoveObject, getMoveObjectType, getMovePackageContent, getNearestTickByTick, getNextSqrtPriceAUp, getNextSqrtPriceBDown, getNextSqrtPriceFromInput, getNextSqrtPriceFromOutput, getObjectDeletedResponse, getObjectDisplay, getObjectFields, getObjectId, getObjectNotExistsResponse, getObjectOwner, getObjectPreviousTransactionDigest, getObjectReference, getObjectType, getObjectVersion, getPackagerConfigs, getRewardInTickRange, getSuiObjectData, getTickDataFromUrlData, getUpperSqrtPriceFromCoinA, getUpperSqrtPriceFromCoinB, hasPublicTransfer, hexToNumber, hexToString, initMagmaSDK, initMainnetSDK, initTestnetSDK, isSortedSymbols, isSuiObjectResponse, newBits, normalizeCoinType, patchFixSuiObjectId, printTransaction, removeHexPrefix, secretKeyToEd25519Keypair, secretKeyToSecp256k1Keypair, shortAddress, shortString, tickScore, toBuffer, toCoinAmount, toDecimalsAmount, transClmmpoolDataWithoutTicks, utf8to16 };
4241
+ export { AMM_SWAP_MODULE, AddBribeReward, AddLiquidityCommonParams, AddLiquidityFixTokenParams, AddLiquidityParams, AddLiquidityWithProtectionParams, AddressAndDirection, AdjustResult, AggregatorResult, AmountSpecified, BasePath, BigNumber, 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, 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, DlmmConfig, DlmmScript, EpochEmission, FEE_RATE_DENOMINATOR, FaucetCoin, FetchParams, GAS_SYMBOL, GAS_TYPE_ARG, GAS_TYPE_ARG_LONG, Gauge, GetRewardByPosition, IncreaseLockAmountParams, IncreaseUnlockTimeParams, LaunchpadPoolConfig, LiquidityInput, LockModule, LockPermanentParams, LockVoteEvent, MAX_SQRT_PRICE, MAX_TICK_INDEX, MIN_SQRT_PRICE, MIN_TICK_INDEX, MagmaClmmSDK, MagmaConfigs, MathUtil, MergeLockParams, Minter, NFT, ONE, OnePath, OpenPositionAddLiquidityWithProtectionParams, OpenPositionParams, Order, POOL_STRUCT, Package, PageQuery, PaginationArgs, PathLink, PathProvider, Percentage, PokeParams, Pool, PoolImmutables, PoolInfo, PoolModule, Position, PositionModule, PositionReward, PositionStatus, PositionUtil, PreRouterSwapParams, PreSwapLpChangeParams, PreSwapParams, PreSwapResult, PreSwapWithMultiPoolParams, PriceResult, RemoveLiquidityParams, RewardDistributor, Rewarder, RewarderAmountOwed, RouterModule, RouterModuleV2, RpcModule, SUI_SYSTEM_STATE_OBJECT_ID, SdkOptions, SplitPath, SplitSwap, SplitSwapResult, SplitUnit, StakedPositionOfPool, SuiAddressType, SuiBasicTypes, SuiInputTypes, SuiObjectDataWithContent, SuiObjectIdType, SuiResource, SuiStructTag, SuiTxArg, SwapDirection, SwapModule, SwapParams$1 as SwapParams, SwapResult, SwapStepResult, SwapUtils, SwapWithRouterParams, TICK_ARRAY_SIZE, TWO, Tick, TickData, TickMath, TickUtil, TokenConfig, TokenConfigEvent, TokenInfo, TokenModule, TransPreSwapWithMultiPoolParams, TransactionUtil, TransferLockParams, TxBlock, U128, U128_MAX, U64_MAX, VoteParams, Voter, VotingEscrow, WithdrawPosition, ZERO, addHexPrefix, adjustForCoinSlippage, adjustForSlippage, asIntN, asUintN, 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, getDefaultSuiInputType, getDeltaA, getDeltaB, getDeltaDownFromOutput, getDeltaUpFromInput, getFutureTime, getLiquidityFromCoinA, getLiquidityFromCoinB, getLowerSqrtPriceFromCoinA, getLowerSqrtPriceFromCoinB, getMoveObject, getMoveObjectType, getMovePackageContent, getNearestTickByTick, getNextSqrtPriceAUp, getNextSqrtPriceBDown, getNextSqrtPriceFromInput, getNextSqrtPriceFromOutput, getObjectDeletedResponse, getObjectDisplay, getObjectFields, getObjectId, getObjectNotExistsResponse, getObjectOwner, getObjectPreviousTransactionDigest, getObjectReference, getObjectType, getObjectVersion, getPackagerConfigs, getRewardInTickRange, getSuiObjectData, getTickDataFromUrlData, getUpperSqrtPriceFromCoinA, getUpperSqrtPriceFromCoinB, hasPublicTransfer, hexToNumber, hexToString, initMagmaSDK, initMainnetSDK, initTestnetSDK, isSortedSymbols, isSuiObjectResponse, newBits, normalizeCoinType, patchFixSuiObjectId, printTransaction, removeHexPrefix, secretKeyToEd25519Keypair, secretKeyToSecp256k1Keypair, shortAddress, shortString, tickScore, toBuffer, toCoinAmount, toDecimalsAmount, transClmmpoolDataWithoutTicks, utf8to16 };