@magmaprotocol/magma-clmm-sdk 0.3.0 → 0.4.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/README.md +30 -24
- package/dist/index.d.ts +178 -1
- package/dist/index.js +745 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +735 -25
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
<a name="readme-top"></a>
|
|
2
2
|
|
|
3
|
-

|
|
4
3
|

|
|
5
|
-

|
|
6
5
|
|
|
7
6
|
<!-- PROJECT LOGO -->
|
|
8
7
|
<br />
|
|
9
8
|
<div align="center">
|
|
10
9
|
<a >
|
|
11
|
-
<img src="
|
|
10
|
+
<img src="./icon_color.svg" alt="Logo" width="100" height="100">
|
|
12
11
|
</a>
|
|
13
12
|
|
|
14
|
-
<h3 align="center">Magma-CLMM-
|
|
13
|
+
<h3 align="center">Magma-CLMM-SDK</h3>
|
|
15
14
|
|
|
16
15
|
<p align="center">
|
|
17
|
-
Integrating Magma-CLMM-
|
|
16
|
+
Integrating Magma-CLMM-SDK: A Comprehensive Guide, Please see details in document.
|
|
18
17
|
<br />
|
|
19
|
-
<a href="https://
|
|
18
|
+
<a href="https://github.com/MagmaFinanceIO/magma_sdk_doc"><strong>Explore the document »</strong></a>
|
|
20
19
|
<br />
|
|
21
20
|
<br />
|
|
22
21
|
</p>
|
|
@@ -24,38 +23,45 @@
|
|
|
24
23
|
|
|
25
24
|
## Introduction
|
|
26
25
|
|
|
27
|
-
Magma-CLMM-
|
|
26
|
+
Magma-CLMM-SDK is the official software development kit (SDK) specifically designed for seamless integration with Magma-CLMM. It provides developers with the necessary tools and resources to easily connect and interact with Magma-CLMM, enabling the development of robust and efficient applications.
|
|
28
27
|
|
|
29
28
|
## Getting Started
|
|
29
|
+
|
|
30
30
|
To integrate our SDK into your local project, please follow the example steps provided below.
|
|
31
31
|
Please see details in document.
|
|
32
|
+
|
|
32
33
|
### Prerequisites
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
npm i @magmaprotocol/magma-clmm-sdk
|
|
37
|
+
```
|
|
36
38
|
|
|
37
39
|
### Setting Up Configuration
|
|
40
|
+
|
|
38
41
|
Our SDK now includes a default initialization method that allows for quick generation of the Magma SDK configuration. You can utilize the src/config/initMagmaSDK method to swiftly initialize the configuration. You have the option to select either 'mainnet' or 'testnet' for the network.
|
|
39
|
-
```typescript
|
|
40
|
-
import { initMagmaSDK } from '@magmaprotocol/magma-clmm-sdk'
|
|
41
42
|
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
```typescript
|
|
44
|
+
import { initMagmaSDK } from '@magmaprotocol/magma-clmm-sdk'
|
|
45
|
+
|
|
46
|
+
const magmaClmmSDK = initMagmaSDK({network: 'mainnet'})
|
|
47
|
+
```
|
|
48
|
+
|
|
44
49
|
If you wish to set your own full node URL and simulate address, you can do so as follows:
|
|
45
|
-
```typescript
|
|
46
|
-
import { initMagmaSDK } from '@magmaprotocol/magma-clmm-sdk'
|
|
47
50
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
```typescript
|
|
52
|
+
import { initMagmaSDK } from '@magmaprotocol/magma-clmm-sdk'
|
|
53
|
+
|
|
54
|
+
const network = 'mainnnet';
|
|
55
|
+
const fullNodeUrl = "https://..."
|
|
56
|
+
const simulationAccount = "0x..."
|
|
57
|
+
const magmaClmmSDK = initMagmaSDK({network, fullNodeUrl, simulationAccount})
|
|
58
|
+
```
|
|
53
59
|
|
|
54
60
|
Now, you can start using Magma SDK.
|
|
55
61
|
|
|
56
62
|
### Typrscript Doc
|
|
57
63
|
You can view this typescript sdk in
|
|
58
|
-
<a href="https://
|
|
64
|
+
<a href="https://github.com/MagmaFinanceIO/magma_sdk_doc"><strong> Magma Development Documents. </strong></a>
|
|
59
65
|
<br />
|
|
60
66
|
|
|
61
67
|
## LICENSE
|
|
@@ -63,6 +69,6 @@ MAGMA-CLMM-SDK released under the Apache license. See the [LICENSE](./LICENSE) f
|
|
|
63
69
|
|
|
64
70
|
## More About Magma
|
|
65
71
|
Use the following links to learn more about Magma:
|
|
66
|
-
Learn more about working with Magma in the [Magma Documentation](
|
|
72
|
+
- [ ] Learn more about working with Magma in the [Magma Documentation]().
|
|
67
73
|
|
|
68
|
-
Join the Magma community on [Magma Discord](
|
|
74
|
+
- [ ] Join the Magma community on [Magma Discord]().
|
package/dist/index.d.ts
CHANGED
|
@@ -32,6 +32,9 @@ declare const ClmmIntegrateRouterWithPartnerModule = "router_with_partner";
|
|
|
32
32
|
declare const ClmmFetcherModule = "fetcher_script";
|
|
33
33
|
declare const ClmmExpectSwapModule = "expect_swap";
|
|
34
34
|
declare const ClmmIntegrateUtilsModule = "utils";
|
|
35
|
+
declare const VotingEscrow = "voting_escrow";
|
|
36
|
+
declare const Voter = "voter";
|
|
37
|
+
declare const RewardDistributor = "reward_distributor";
|
|
35
38
|
/**
|
|
36
39
|
* The address for CoinInfo module.
|
|
37
40
|
*/
|
|
@@ -1287,6 +1290,14 @@ type MagmaConfigs = {
|
|
|
1287
1290
|
* The object identifier of the global configuration.
|
|
1288
1291
|
*/
|
|
1289
1292
|
global_config_id: SuiObjectIdType;
|
|
1293
|
+
voter_id: SuiObjectIdType;
|
|
1294
|
+
/**
|
|
1295
|
+
* The object identifier of voting escrow
|
|
1296
|
+
*/
|
|
1297
|
+
voting_escrow_id: SuiObjectIdType;
|
|
1298
|
+
magma_token: SuiAddressType;
|
|
1299
|
+
reward_distributor_id: SuiObjectIdType;
|
|
1300
|
+
minter_id: SuiObjectIdType;
|
|
1290
1301
|
};
|
|
1291
1302
|
/**
|
|
1292
1303
|
* Represents configuration data for a cryptocurrency coin.
|
|
@@ -1479,6 +1490,82 @@ declare enum SwapDirection {
|
|
|
1479
1490
|
B2A = "b2a"
|
|
1480
1491
|
}
|
|
1481
1492
|
|
|
1493
|
+
type CreateLockParams = {
|
|
1494
|
+
/**
|
|
1495
|
+
* The swap amount.
|
|
1496
|
+
*/
|
|
1497
|
+
amount: string;
|
|
1498
|
+
/**
|
|
1499
|
+
* How long the lock will last. Should be in range [MIN_LOCK_TIME, MAX_LOCK_TIME]
|
|
1500
|
+
MAX_LOCK_TIME: u64 = 4 * 52 * WEEK;
|
|
1501
|
+
MIN_LOCK_TIME: u64 = WEEK;
|
|
1502
|
+
*/
|
|
1503
|
+
lockDurationDays: number;
|
|
1504
|
+
/**
|
|
1505
|
+
* If the lock is permanent.
|
|
1506
|
+
*/
|
|
1507
|
+
permanent: boolean;
|
|
1508
|
+
};
|
|
1509
|
+
type IncreaseLockAmountParams = {
|
|
1510
|
+
lockId: SuiObjectIdType;
|
|
1511
|
+
/**
|
|
1512
|
+
* The swap amount.
|
|
1513
|
+
*/
|
|
1514
|
+
amount: string;
|
|
1515
|
+
};
|
|
1516
|
+
type MergeLockParams = {
|
|
1517
|
+
fromLockId: SuiObjectIdType;
|
|
1518
|
+
toLockId: SuiObjectIdType;
|
|
1519
|
+
};
|
|
1520
|
+
type TransferLockParams = {
|
|
1521
|
+
lockId: SuiObjectIdType;
|
|
1522
|
+
to: string;
|
|
1523
|
+
};
|
|
1524
|
+
type IncreaseUnlockTimeParams = {
|
|
1525
|
+
lockId: SuiObjectIdType;
|
|
1526
|
+
/**
|
|
1527
|
+
* Timestamp when the lock will end.
|
|
1528
|
+
* Used for calc new lock duration
|
|
1529
|
+
*/
|
|
1530
|
+
newLockEndAt: number;
|
|
1531
|
+
};
|
|
1532
|
+
type LockPermanentParams = {
|
|
1533
|
+
lockId: SuiObjectIdType;
|
|
1534
|
+
};
|
|
1535
|
+
type VoteParams = {
|
|
1536
|
+
lockId: SuiObjectIdType;
|
|
1537
|
+
pools: SuiAddressType[];
|
|
1538
|
+
weights: number[];
|
|
1539
|
+
};
|
|
1540
|
+
type ClaimFeesParams = {
|
|
1541
|
+
/**
|
|
1542
|
+
* The address type of the coin A.
|
|
1543
|
+
*/
|
|
1544
|
+
coinAType: SuiAddressType;
|
|
1545
|
+
/**
|
|
1546
|
+
* The address type of the coin A.
|
|
1547
|
+
*/
|
|
1548
|
+
coinBType: SuiAddressType;
|
|
1549
|
+
locks: SuiObjectIdType;
|
|
1550
|
+
};
|
|
1551
|
+
type ClaimFeesPoolsParams = {
|
|
1552
|
+
/**
|
|
1553
|
+
* The address type of the coin A.
|
|
1554
|
+
*/
|
|
1555
|
+
coinAType: SuiAddressType;
|
|
1556
|
+
/**
|
|
1557
|
+
* The address type of the coin A.
|
|
1558
|
+
*/
|
|
1559
|
+
coinBType: SuiAddressType;
|
|
1560
|
+
locks: SuiObjectIdType[];
|
|
1561
|
+
};
|
|
1562
|
+
type ClaimAndLockParams = {
|
|
1563
|
+
lockId: SuiObjectIdType;
|
|
1564
|
+
};
|
|
1565
|
+
type PokeParams = {
|
|
1566
|
+
lockId: SuiObjectIdType;
|
|
1567
|
+
};
|
|
1568
|
+
|
|
1482
1569
|
type BigNumber = Decimal.Value | number | string;
|
|
1483
1570
|
|
|
1484
1571
|
interface IModule {
|
|
@@ -2866,6 +2953,75 @@ declare class SwapModule implements IModule {
|
|
|
2866
2953
|
}>;
|
|
2867
2954
|
}
|
|
2868
2955
|
|
|
2956
|
+
type LocksInfo = {
|
|
2957
|
+
owner: string;
|
|
2958
|
+
lockInfo: LockInfo[];
|
|
2959
|
+
};
|
|
2960
|
+
type AllLockSummary = {
|
|
2961
|
+
current_epoch_end: number;
|
|
2962
|
+
current_epoch_vote_end: number;
|
|
2963
|
+
rebase_apr: number;
|
|
2964
|
+
team_emission_rate: number;
|
|
2965
|
+
total_locked: number;
|
|
2966
|
+
total_voted_power: number;
|
|
2967
|
+
total_voting_power: number;
|
|
2968
|
+
};
|
|
2969
|
+
type LockInfo = {
|
|
2970
|
+
lock_id: string;
|
|
2971
|
+
amount: string;
|
|
2972
|
+
start: string;
|
|
2973
|
+
end: string;
|
|
2974
|
+
permanent: boolean;
|
|
2975
|
+
rebase_amount: Coin;
|
|
2976
|
+
voting_power: string;
|
|
2977
|
+
voting_rewards: Map<string, Coin[]>;
|
|
2978
|
+
};
|
|
2979
|
+
type Coin = {
|
|
2980
|
+
kind?: CoinType;
|
|
2981
|
+
token_addr: string;
|
|
2982
|
+
amount: string;
|
|
2983
|
+
};
|
|
2984
|
+
declare enum CoinType {
|
|
2985
|
+
RebaseCoin = "rebaseCoin",
|
|
2986
|
+
Fee = "fee",
|
|
2987
|
+
Incentive = "incentiveCoin"
|
|
2988
|
+
}
|
|
2989
|
+
type PoolWeight = {
|
|
2990
|
+
poolId: string;
|
|
2991
|
+
weight: string;
|
|
2992
|
+
};
|
|
2993
|
+
type ALockSummary = {
|
|
2994
|
+
fee_incentive_total: string;
|
|
2995
|
+
reward_distributor_claimable: string;
|
|
2996
|
+
voting_power: string;
|
|
2997
|
+
};
|
|
2998
|
+
declare class LockModule implements IModule {
|
|
2999
|
+
protected _sdk: MagmaClmmSDK;
|
|
3000
|
+
constructor(sdk: MagmaClmmSDK);
|
|
3001
|
+
get sdk(): MagmaClmmSDK;
|
|
3002
|
+
createLockTransactionPayload(params: CreateLockParams): Promise<Transaction>;
|
|
3003
|
+
increaseLockAmountTransactionPayload(params: IncreaseLockAmountParams): Promise<Transaction>;
|
|
3004
|
+
mergeLockTransactionPayload(params: MergeLockParams): Promise<Transaction>;
|
|
3005
|
+
transferLockTransactionPayload(params: TransferLockParams): Promise<Transaction>;
|
|
3006
|
+
increaseUnlockTimePayload(params: IncreaseUnlockTimeParams): Promise<Transaction>;
|
|
3007
|
+
lockPermanentPayload(params: LockPermanentParams): Promise<Transaction>;
|
|
3008
|
+
unlockPermanentPayload(params: LockPermanentParams): Promise<Transaction>;
|
|
3009
|
+
votePayload(params: VoteParams): Promise<Transaction>;
|
|
3010
|
+
claimVotingRewardsPayload(params: ClaimFeesParams): Promise<Transaction>;
|
|
3011
|
+
claimVotingRewardsPoolsPayload(params: ClaimFeesPoolsParams): Promise<Transaction>;
|
|
3012
|
+
claimAndLockRebasesPayload(params: ClaimAndLockParams): Promise<Transaction>;
|
|
3013
|
+
pokePayload(params: PokeParams): Promise<Transaction>;
|
|
3014
|
+
claimVotingBribe(locks: string[], incentive_tokens: string[]): Promise<Transaction>;
|
|
3015
|
+
locksOfUser(user: string): Promise<LocksInfo>;
|
|
3016
|
+
aLockSummary(lock_id: string): Promise<ALockSummary>;
|
|
3017
|
+
allLockSummary(): Promise<AllLockSummary>;
|
|
3018
|
+
poolWeights(pools: string[]): Promise<PoolWeight[]>;
|
|
3019
|
+
getVotingFeeRewardTokens(lock_id: string): Promise<Map<string, string[]>>;
|
|
3020
|
+
getVotingBribeRewardTokens(lock_id: string): Promise<Map<string, string[]>>;
|
|
3021
|
+
getPoolIncentiveRewrads(incentive_tokens: string[], locksId: string): Promise<Map<string, Map<string, string>>>;
|
|
3022
|
+
getPoolBribeRewardTokens(pool_id: string): Promise<Map<string, string[]>>;
|
|
3023
|
+
}
|
|
3024
|
+
|
|
2869
3025
|
/**
|
|
2870
3026
|
* Helper class to help interact with pool and token config
|
|
2871
3027
|
* @deprecated TokenModule is no longer maintained. Please use ConfigModule instead
|
|
@@ -3128,6 +3284,7 @@ type SdkOptions = {
|
|
|
3128
3284
|
* Package containing Cryptocurrency Liquidity Mining Module (CLMM) pool configurations.
|
|
3129
3285
|
*/
|
|
3130
3286
|
clmm_pool: Package<ClmmConfig>;
|
|
3287
|
+
distribution: Package;
|
|
3131
3288
|
/**
|
|
3132
3289
|
* Package containing integration-related configurations.
|
|
3133
3290
|
*/
|
|
@@ -3170,6 +3327,10 @@ declare class MagmaClmmSDK {
|
|
|
3170
3327
|
* Provide interact with a pool swap router interface.
|
|
3171
3328
|
*/
|
|
3172
3329
|
protected _swap: SwapModule;
|
|
3330
|
+
/**
|
|
3331
|
+
* Provide interact with a lock interface.
|
|
3332
|
+
*/
|
|
3333
|
+
protected _lock: LockModule;
|
|
3173
3334
|
/**
|
|
3174
3335
|
* Provide interact with a position rewarder interface.
|
|
3175
3336
|
*/
|
|
@@ -3215,6 +3376,7 @@ declare class MagmaClmmSDK {
|
|
|
3215
3376
|
* @returns {SwapModule} The Swap property value.
|
|
3216
3377
|
*/
|
|
3217
3378
|
get Swap(): SwapModule;
|
|
3379
|
+
get Lock(): LockModule;
|
|
3218
3380
|
/**
|
|
3219
3381
|
* Getter for the fullClient property.
|
|
3220
3382
|
* @returns {RpcModule} The fullClient property value.
|
|
@@ -3553,6 +3715,21 @@ declare class TransactionUtil {
|
|
|
3553
3715
|
* @returns
|
|
3554
3716
|
*/
|
|
3555
3717
|
static buildSwapTransaction(sdk: MagmaClmmSDK, params: SwapParams, allCoinAsset: CoinAsset[]): Transaction;
|
|
3718
|
+
static buildCreateLockTransaction(sdk: MagmaClmmSDK, params: CreateLockParams, allCoinAsset: CoinAsset[]): Transaction;
|
|
3719
|
+
static buildCreateTransactionArgs(tx: Transaction, params: CreateLockParams, sdkOptions: SdkOptions, lockCoinInput: BuildCoinResult): Transaction;
|
|
3720
|
+
static buildIncreaseLockAmountTransaction(sdk: MagmaClmmSDK, params: IncreaseLockAmountParams, allCoinAsset: CoinAsset[]): Transaction;
|
|
3721
|
+
static buildIncreaseLockAmountTransactionArgs(tx: Transaction, params: IncreaseLockAmountParams, sdkOptions: SdkOptions, increaseCoinInput: BuildCoinResult): Transaction;
|
|
3722
|
+
static buildMergeLockTransaction(sdk: MagmaClmmSDK, params: MergeLockParams): Transaction;
|
|
3723
|
+
static buildTransferLockTransaction(sdk: MagmaClmmSDK, params: TransferLockParams): Transaction;
|
|
3724
|
+
static buildIncreaseUnlockTimeTransaction(sdk: MagmaClmmSDK, params: IncreaseUnlockTimeParams): Transaction;
|
|
3725
|
+
static buildLockPermanentTransaction(sdk: MagmaClmmSDK, params: LockPermanentParams): Transaction;
|
|
3726
|
+
static buildUnlockPermanentTransaction(sdk: MagmaClmmSDK, params: LockPermanentParams): Transaction;
|
|
3727
|
+
static buildVoteTransaction(sdk: MagmaClmmSDK, params: VoteParams): Transaction;
|
|
3728
|
+
static buildClaimVotingRewardsTransaction(sdk: MagmaClmmSDK, params: ClaimFeesParams): Transaction;
|
|
3729
|
+
static buildClaimVotingRewardsPoolsTransaction(sdk: MagmaClmmSDK, params: ClaimFeesPoolsParams): Transaction;
|
|
3730
|
+
static buildClaimAndLockRebases(sdk: MagmaClmmSDK, params: ClaimAndLockParams): Transaction;
|
|
3731
|
+
static buildPoke(sdk: MagmaClmmSDK, params: PokeParams): Transaction;
|
|
3732
|
+
static buildClaimVotingBribe(sdk: MagmaClmmSDK, locks: string[], incentive_tokens: string[]): Transaction;
|
|
3556
3733
|
/**
|
|
3557
3734
|
* build swap transaction
|
|
3558
3735
|
* @param params
|
|
@@ -3782,4 +3959,4 @@ interface InitMagmaSDKOptions {
|
|
|
3782
3959
|
*/
|
|
3783
3960
|
declare function initMagmaSDK(options: InitMagmaSDKOptions): MagmaClmmSDK;
|
|
3784
3961
|
|
|
3785
|
-
export { AMM_SWAP_MODULE, AddLiquidityCommonParams, AddLiquidityFixTokenParams, AddLiquidityParams, AddressAndDirection, AdjustResult, AggregatorResult, AmountSpecified, BasePath, BigNumber, Bits, BuildCoinResult, CLOCK_ADDRESS, CachedContent, CalculateRatesParams, CalculateRatesResult, 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, 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, FEE_RATE_DENOMINATOR, FaucetCoin, FetchParams, GAS_SYMBOL, GAS_TYPE_ARG, GAS_TYPE_ARG_LONG, LaunchpadPoolConfig, LiquidityInput, MAX_SQRT_PRICE, MAX_TICK_INDEX, MIN_SQRT_PRICE, MIN_TICK_INDEX, MagmaClmmSDK, MagmaConfigs, MathUtil, NFT, ONE, OnePath, OpenPositionParams, Order, POOL_STRUCT, Package, PageQuery, PaginationArgs, PathLink, PathProvider, Percentage, Pool, PoolImmutables, PoolInfo, PoolModule, Position, PositionModule, PositionReward, PositionStatus, PositionUtil, PreRouterSwapParams, PreSwapLpChangeParams, PreSwapParams, PreSwapResult, PreSwapWithMultiPoolParams, PriceResult, RemoveLiquidityParams, Rewarder, RewarderAmountOwed, RouterModule, RouterModuleV2, RpcModule, SUI_SYSTEM_STATE_OBJECT_ID, SdkOptions, SplitPath, SplitSwap, SplitSwapResult, SplitUnit, 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, TxBlock, U128, U128_MAX, U64_MAX, 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 };
|
|
3962
|
+
export { AMM_SWAP_MODULE, AddLiquidityCommonParams, AddLiquidityFixTokenParams, AddLiquidityParams, 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, FEE_RATE_DENOMINATOR, FaucetCoin, FetchParams, GAS_SYMBOL, GAS_TYPE_ARG, GAS_TYPE_ARG_LONG, IncreaseLockAmountParams, IncreaseUnlockTimeParams, LaunchpadPoolConfig, LiquidityInput, LockModule, LockPermanentParams, MAX_SQRT_PRICE, MAX_TICK_INDEX, MIN_SQRT_PRICE, MIN_TICK_INDEX, MagmaClmmSDK, MagmaConfigs, MathUtil, MergeLockParams, NFT, ONE, OnePath, 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, 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, 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 };
|