@cetusprotocol/sui-clmm-sdk 1.4.0 → 1.4.2
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 +5 -1
- package/dist/index.d.ts +318 -84
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +15 -6
- package/dist/index.d.mts +0 -2438
- package/dist/index.mjs +0 -13
- package/dist/index.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -73,7 +73,11 @@ const wallet = 'YOUR_WALLET_ADDRESS'
|
|
|
73
73
|
const sdk = CetusClmmSDK.createSDK({ env })
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
<<<<<<< HEAD
|
|
77
|
+
If you wish to set your own full node URL or SuiGrpcClient, you can do so as follows:
|
|
78
|
+
=======
|
|
79
|
+
If you wish to set your own full node URL or SuiJsonRpcClient, you can do so as follows:
|
|
80
|
+
>>>>>>> dev_migrate_json_rpc
|
|
77
81
|
|
|
78
82
|
```typescript
|
|
79
83
|
const sdk = CetusClmmSDK.createSDK({ env, sui_client })
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { CoinPairType,
|
|
1
|
+
import { CoinPairType, SuiAddressType, SuiObjectIdType, NFT as NFT$1, Percentage, IModule, SuiResource, PaginationArgs, DataPage, PageQuery, CoinAsset, SdkWrapper, BaseSdkOptions, Package, BaseError } from '@cetusprotocol/common-sdk';
|
|
2
|
+
import * as _mysten_sui_bcs from '@mysten/sui/bcs';
|
|
3
|
+
import * as _mysten_sui_transactions from '@mysten/sui/transactions';
|
|
2
4
|
import { TransactionArgument, TransactionObjectArgument, Transaction } from '@mysten/sui/transactions';
|
|
3
5
|
import BN from 'bn.js';
|
|
4
6
|
import Decimal from 'decimal.js';
|
|
5
|
-
import {
|
|
6
|
-
import * as _mysten_sui_dist_cjs_transactions from '@mysten/sui/dist/cjs/transactions';
|
|
7
|
+
import { SuiTransactionBlockResponse } from '@mysten/sui/jsonRpc';
|
|
7
8
|
|
|
8
9
|
type BasePath = {
|
|
9
10
|
direction: boolean;
|
|
@@ -1423,6 +1424,100 @@ type GetPositionVestOption = {
|
|
|
1423
1424
|
|
|
1424
1425
|
type BigNumber = Decimal.Value | number | string;
|
|
1425
1426
|
|
|
1427
|
+
declare const Coin: _mysten_sui_bcs.BcsStruct<{
|
|
1428
|
+
name: _mysten_sui_bcs.BcsType<string, string, "string">;
|
|
1429
|
+
symbol: _mysten_sui_bcs.BcsType<string, string, "string">;
|
|
1430
|
+
coingecko_id: _mysten_sui_bcs.BcsType<string, string, "string">;
|
|
1431
|
+
pyth_id: _mysten_sui_bcs.BcsType<string, string, "string">;
|
|
1432
|
+
decimals: _mysten_sui_bcs.BcsType<number, number, "u8">;
|
|
1433
|
+
logo_url: _mysten_sui_bcs.BcsType<string, string, "string">;
|
|
1434
|
+
project_url: _mysten_sui_bcs.BcsType<string, string, "string">;
|
|
1435
|
+
coin_type: _mysten_sui_bcs.BcsStruct<{
|
|
1436
|
+
name: _mysten_sui_bcs.BcsType<string, string, "string">;
|
|
1437
|
+
}, string>;
|
|
1438
|
+
extension_fields: _mysten_sui_bcs.BcsStruct<{
|
|
1439
|
+
contents: _mysten_sui_bcs.BcsType<{
|
|
1440
|
+
key: string;
|
|
1441
|
+
value: string;
|
|
1442
|
+
}[], Iterable<{
|
|
1443
|
+
key: string;
|
|
1444
|
+
value: string;
|
|
1445
|
+
}> & {
|
|
1446
|
+
length: number;
|
|
1447
|
+
}, string>;
|
|
1448
|
+
}, string>;
|
|
1449
|
+
}, string>;
|
|
1450
|
+
declare const ClmmPool: _mysten_sui_bcs.BcsStruct<{
|
|
1451
|
+
pool_address: _mysten_sui_bcs.BcsType<string, string, "bytes[32]">;
|
|
1452
|
+
pool_type: _mysten_sui_bcs.BcsType<string, string, "string">;
|
|
1453
|
+
project_url: _mysten_sui_bcs.BcsType<string, string, "string">;
|
|
1454
|
+
is_closed: _mysten_sui_bcs.BcsType<boolean, boolean, "bool">;
|
|
1455
|
+
is_show_rewarder: _mysten_sui_bcs.BcsType<boolean, boolean, "bool">;
|
|
1456
|
+
show_rewarder_1: _mysten_sui_bcs.BcsType<boolean, boolean, "bool">;
|
|
1457
|
+
show_rewarder_2: _mysten_sui_bcs.BcsType<boolean, boolean, "bool">;
|
|
1458
|
+
show_rewarder_3: _mysten_sui_bcs.BcsType<boolean, boolean, "bool">;
|
|
1459
|
+
extension_fields: _mysten_sui_bcs.BcsStruct<{
|
|
1460
|
+
contents: _mysten_sui_bcs.BcsType<{
|
|
1461
|
+
key: string;
|
|
1462
|
+
value: string;
|
|
1463
|
+
}[], Iterable<{
|
|
1464
|
+
key: string;
|
|
1465
|
+
value: string;
|
|
1466
|
+
}> & {
|
|
1467
|
+
length: number;
|
|
1468
|
+
}, string>;
|
|
1469
|
+
}, string>;
|
|
1470
|
+
}, string>;
|
|
1471
|
+
declare const MediaInfo: _mysten_sui_bcs.BcsStruct<{
|
|
1472
|
+
name: _mysten_sui_bcs.BcsType<string, string, "string">;
|
|
1473
|
+
link: _mysten_sui_bcs.BcsType<string, string, "string">;
|
|
1474
|
+
}, string>;
|
|
1475
|
+
declare const LaunchpadPool: _mysten_sui_bcs.BcsStruct<{
|
|
1476
|
+
pool_address: _mysten_sui_bcs.BcsType<string, string, "bytes[32]">;
|
|
1477
|
+
is_closed: _mysten_sui_bcs.BcsType<boolean, boolean, "bool">;
|
|
1478
|
+
show_settle: _mysten_sui_bcs.BcsType<boolean, boolean, "bool">;
|
|
1479
|
+
coin_symbol: _mysten_sui_bcs.BcsType<string, string, "string">;
|
|
1480
|
+
coin_name: _mysten_sui_bcs.BcsType<string, string, "string">;
|
|
1481
|
+
coin_icon: _mysten_sui_bcs.BcsType<string, string, "string">;
|
|
1482
|
+
banners: _mysten_sui_bcs.BcsType<string[], Iterable<string> & {
|
|
1483
|
+
length: number;
|
|
1484
|
+
}, string>;
|
|
1485
|
+
introduction: _mysten_sui_bcs.BcsType<string, string, "string">;
|
|
1486
|
+
website: _mysten_sui_bcs.BcsType<string, string, "string">;
|
|
1487
|
+
tokenomics: _mysten_sui_bcs.BcsType<string, string, "string">;
|
|
1488
|
+
social_media: _mysten_sui_bcs.BcsStruct<{
|
|
1489
|
+
contents: _mysten_sui_bcs.BcsType<{
|
|
1490
|
+
key: string;
|
|
1491
|
+
value: {
|
|
1492
|
+
name: string;
|
|
1493
|
+
link: string;
|
|
1494
|
+
};
|
|
1495
|
+
}[], Iterable<{
|
|
1496
|
+
key: string;
|
|
1497
|
+
value: {
|
|
1498
|
+
name: string;
|
|
1499
|
+
link: string;
|
|
1500
|
+
};
|
|
1501
|
+
}> & {
|
|
1502
|
+
length: number;
|
|
1503
|
+
}, string>;
|
|
1504
|
+
}, string>;
|
|
1505
|
+
terms: _mysten_sui_bcs.BcsType<string, string, "string">;
|
|
1506
|
+
white_list_terms: _mysten_sui_bcs.BcsType<string, string, "string">;
|
|
1507
|
+
regulation: _mysten_sui_bcs.BcsType<string, string, "string">;
|
|
1508
|
+
project_details: _mysten_sui_bcs.BcsType<string, string, "string">;
|
|
1509
|
+
extension_fields: _mysten_sui_bcs.BcsStruct<{
|
|
1510
|
+
contents: _mysten_sui_bcs.BcsType<{
|
|
1511
|
+
key: string;
|
|
1512
|
+
value: string;
|
|
1513
|
+
}[], Iterable<{
|
|
1514
|
+
key: string;
|
|
1515
|
+
value: string;
|
|
1516
|
+
}> & {
|
|
1517
|
+
length: number;
|
|
1518
|
+
}, string>;
|
|
1519
|
+
}, string>;
|
|
1520
|
+
}, string>;
|
|
1426
1521
|
/**
|
|
1427
1522
|
* Helper class to help interact with clmm pool and coin and launchpad pool config.
|
|
1428
1523
|
*/
|
|
@@ -1459,7 +1554,6 @@ declare class ConfigModule implements IModule<CetusClmmSDK> {
|
|
|
1459
1554
|
getCoinConfig(coin_type: string, force_refresh?: boolean, transform_extensions?: boolean): Promise<CoinConfig>;
|
|
1460
1555
|
/**
|
|
1461
1556
|
* Build coin config.
|
|
1462
|
-
* @param {SuiObjectResponse} object Coin object.
|
|
1463
1557
|
* @param {boolean} transform_extensions Whether to transform extensions.
|
|
1464
1558
|
* @returns {CoinConfig} Coin config.
|
|
1465
1559
|
*/
|
|
@@ -1581,7 +1675,7 @@ declare class PoolModule implements IModule<CetusClmmSDK> {
|
|
|
1581
1675
|
* @returns the ClmmConfig object.
|
|
1582
1676
|
*/
|
|
1583
1677
|
getClmmConfigs(force_refresh?: boolean): Promise<ClmmConfig>;
|
|
1584
|
-
getPoolTransactionList({ pool_id, pagination_args,
|
|
1678
|
+
getPoolTransactionList({ pool_id, pagination_args, full_rpc_url, }: {
|
|
1585
1679
|
pool_id: string;
|
|
1586
1680
|
full_rpc_url?: string;
|
|
1587
1681
|
pagination_args: PageQuery;
|
|
@@ -1652,7 +1746,7 @@ declare class PoolModule implements IModule<CetusClmmSDK> {
|
|
|
1652
1746
|
* @param {string}partner Partner object id
|
|
1653
1747
|
* @returns {Promise<CoinAsset[]>} A promise that resolves to an array of coin asset.
|
|
1654
1748
|
*/
|
|
1655
|
-
getPartnerRefFeeAmount(partner: string
|
|
1749
|
+
getPartnerRefFeeAmount(partner: string): Promise<CoinAsset[]>;
|
|
1656
1750
|
/**
|
|
1657
1751
|
* Claim partner ref fee.
|
|
1658
1752
|
* @param {string} partner_cap partner cap id.
|
|
@@ -1718,24 +1812,22 @@ declare class PositionModule implements IModule<CetusClmmSDK> {
|
|
|
1718
1812
|
* if you want to get a position, you can use getPositionById method directly.
|
|
1719
1813
|
* @param {string} position_handle The handle of the position to get.
|
|
1720
1814
|
* @param {string} position_id The ID of the position to get.
|
|
1721
|
-
* @param {boolean} calculate_rewarder Whether to calculate the rewarder of the position.
|
|
1722
1815
|
* @returns {Promise<Position>} Position object.
|
|
1723
1816
|
*/
|
|
1724
|
-
getPosition(position_handle: string, position_id: string, calculate_rewarder?: boolean
|
|
1817
|
+
getPosition(position_handle: string, position_id: string, calculate_rewarder?: boolean): Promise<Position>;
|
|
1725
1818
|
/**
|
|
1726
1819
|
* Gets a position by its ID.
|
|
1727
1820
|
* @param {string} position_id The ID of the position to get.
|
|
1728
1821
|
* @param {boolean} calculate_rewarder Whether to calculate the rewarder of the position.
|
|
1729
|
-
* @param {boolean} show_display When some testnet rpc nodes can't return object's display data, you can set this option to false to avoid returning errors. Default is true.
|
|
1730
1822
|
* @returns {Promise<Position>} Position object.
|
|
1731
1823
|
*/
|
|
1732
|
-
getPositionById(position_id: string, calculate_rewarder?: boolean
|
|
1824
|
+
getPositionById(position_id: string, calculate_rewarder?: boolean): Promise<Position>;
|
|
1733
1825
|
/**
|
|
1734
1826
|
* Gets a simple position for the given position ID.
|
|
1735
1827
|
* @param {string} position_id The ID of the position to get.
|
|
1736
1828
|
* @returns {Promise<Position>} Position object.
|
|
1737
1829
|
*/
|
|
1738
|
-
getSimplePosition(position_id: string
|
|
1830
|
+
getSimplePosition(position_id: string): Promise<Position>;
|
|
1739
1831
|
/**
|
|
1740
1832
|
* Gets a simple position for the given position ID.
|
|
1741
1833
|
* @param {string} position_id Position object id
|
|
@@ -1764,7 +1856,7 @@ declare class PositionModule implements IModule<CetusClmmSDK> {
|
|
|
1764
1856
|
getPositionInfo(position_handle: string, position_id: string): Promise<PositionInfo>;
|
|
1765
1857
|
getPositionInfoList(options: GetPositionInfoListParams[]): Promise<PositionInfo[]>;
|
|
1766
1858
|
buildFetchPosFee(params: FetchPosFeeParams, tx: Transaction): void;
|
|
1767
|
-
parsedPosFeeData(simulate_res:
|
|
1859
|
+
parsedPosFeeData(simulate_res: any): Record<string, {
|
|
1768
1860
|
position_id: string;
|
|
1769
1861
|
fee_owned_a: string;
|
|
1770
1862
|
fee_owned_b: string;
|
|
@@ -1788,10 +1880,7 @@ declare class PositionModule implements IModule<CetusClmmSDK> {
|
|
|
1788
1880
|
* If this parameter is not passed, gas estimation is not performed
|
|
1789
1881
|
* @returns {Promise<TransactionBlock>}
|
|
1790
1882
|
*/
|
|
1791
|
-
createAddLiquidityFixTokenPayload(params: AddLiquidityFixTokenParams,
|
|
1792
|
-
slippage: number;
|
|
1793
|
-
cur_sqrt_price: BN;
|
|
1794
|
-
}, tx?: Transaction, input_coin_a?: TransactionObjectArgument, input_coin_b?: TransactionObjectArgument): Promise<Transaction>;
|
|
1883
|
+
createAddLiquidityFixTokenPayload(params: AddLiquidityFixTokenParams, tx?: Transaction, input_coin_a?: TransactionObjectArgument, input_coin_b?: TransactionObjectArgument): Promise<Transaction>;
|
|
1795
1884
|
/**
|
|
1796
1885
|
* create add liquidity transaction payload
|
|
1797
1886
|
* @param {AddLiquidityParams} params
|
|
@@ -1856,12 +1945,12 @@ declare class PositionModule implements IModule<CetusClmmSDK> {
|
|
|
1856
1945
|
createCollectFeeNoSendPayload(params: CollectFeeParams, tx: Transaction, primary_coin_a_input: TransactionObjectArgument, primary_coin_b_input: TransactionObjectArgument): Transaction;
|
|
1857
1946
|
createCollectFeeAndReturnCoinsPayload(params: CollectFeeParams, tx: Transaction): {
|
|
1858
1947
|
fee_a: {
|
|
1859
|
-
$kind: "NestedResult";
|
|
1860
1948
|
NestedResult: [number, number];
|
|
1949
|
+
$kind: "NestedResult";
|
|
1861
1950
|
};
|
|
1862
1951
|
fee_b: {
|
|
1863
|
-
$kind: "NestedResult";
|
|
1864
1952
|
NestedResult: [number, number];
|
|
1953
|
+
$kind: "NestedResult";
|
|
1865
1954
|
};
|
|
1866
1955
|
};
|
|
1867
1956
|
}
|
|
@@ -1917,7 +2006,7 @@ declare class RewarderModule implements IModule<CetusClmmSDK> {
|
|
|
1917
2006
|
* @returns
|
|
1918
2007
|
*/
|
|
1919
2008
|
fetchPosRewardersAmount(params: FetchPosRewardParams[]): Promise<PosRewarderResult[]>;
|
|
1920
|
-
parsedPosRewardData(simulate_res:
|
|
2009
|
+
parsedPosRewardData(simulate_res: any): Record<string, {
|
|
1921
2010
|
position_id: string;
|
|
1922
2011
|
rewarder_amount: string[];
|
|
1923
2012
|
}>;
|
|
@@ -1946,7 +2035,7 @@ declare class RewarderModule implements IModule<CetusClmmSDK> {
|
|
|
1946
2035
|
batchCollectRewardsPayload(params: CollectRewarderParams[], tx?: Transaction, input_coin_a?: TransactionObjectArgument, input_coin_b?: TransactionObjectArgument): Promise<Transaction>;
|
|
1947
2036
|
createCollectRewarderPayload(params: CollectRewarderParams, tx: Transaction, primary_coin_inputs: TransactionArgument[]): Transaction;
|
|
1948
2037
|
createCollectRewarderNoSendPayload(params: CollectRewarderParams, tx: Transaction, primary_coin_inputs: TransactionArgument[]): Transaction;
|
|
1949
|
-
createCollectRewarderAndReturnCoinPayload(params: CollectRewarderAndReturnCoinParams, tx: Transaction):
|
|
2038
|
+
createCollectRewarderAndReturnCoinPayload(params: CollectRewarderAndReturnCoinParams, tx: Transaction): _mysten_sui_transactions.TransactionResult;
|
|
1950
2039
|
}
|
|
1951
2040
|
|
|
1952
2041
|
declare const AMM_SWAP_MODULE = "amm_swap";
|
|
@@ -1989,10 +2078,10 @@ declare class SwapModule implements IModule<CetusClmmSDK> {
|
|
|
1989
2078
|
pool_address: string;
|
|
1990
2079
|
current_sqrt_price: number;
|
|
1991
2080
|
estimated_amount_in: string;
|
|
1992
|
-
estimated_amount_out:
|
|
1993
|
-
estimated_end_sqrt_price:
|
|
1994
|
-
estimated_fee_amount:
|
|
1995
|
-
is_exceed:
|
|
2081
|
+
estimated_amount_out: string;
|
|
2082
|
+
estimated_end_sqrt_price: string;
|
|
2083
|
+
estimated_fee_amount: string;
|
|
2084
|
+
is_exceed: boolean;
|
|
1996
2085
|
amount: string;
|
|
1997
2086
|
a2b: boolean;
|
|
1998
2087
|
by_amount_in: boolean;
|
|
@@ -2012,7 +2101,7 @@ declare class SwapModule implements IModule<CetusClmmSDK> {
|
|
|
2012
2101
|
* If this parameter is not passed, gas estimation is not performed
|
|
2013
2102
|
* @returns
|
|
2014
2103
|
*/
|
|
2015
|
-
createSwapPayload(params: SwapParams
|
|
2104
|
+
createSwapPayload(params: SwapParams): Promise<Transaction>;
|
|
2016
2105
|
/**
|
|
2017
2106
|
* create swap transaction without transfer coins payload
|
|
2018
2107
|
* @param params
|
|
@@ -2020,7 +2109,7 @@ declare class SwapModule implements IModule<CetusClmmSDK> {
|
|
|
2020
2109
|
* If this parameter is not passed, gas estimation is not performed
|
|
2021
2110
|
* @returns tx and coin ABs
|
|
2022
2111
|
*/
|
|
2023
|
-
createSwapWithoutTransferCoinsPayload(params: SwapParams
|
|
2112
|
+
createSwapWithoutTransferCoinsPayload(params: SwapParams): Promise<{
|
|
2024
2113
|
tx: Transaction;
|
|
2025
2114
|
coin_ab_s: TransactionObjectArgument[];
|
|
2026
2115
|
}>;
|
|
@@ -2145,12 +2234,12 @@ declare class CetusClmmSDK extends SdkWrapper<SdkOptions> {
|
|
|
2145
2234
|
* @param {SuiObjectResponse} objects - The SuiObjectResponse containing information about the pool.
|
|
2146
2235
|
* @returns {Pool} - The built Pool object.
|
|
2147
2236
|
*/
|
|
2148
|
-
declare function buildPool(objects:
|
|
2237
|
+
declare function buildPool(objects: any): Pool;
|
|
2149
2238
|
/** Builds a Position object based on a SuiObjectResponse.
|
|
2150
2239
|
* @param {SuiObjectResponse} object - The SuiObjectResponse containing information about the position.
|
|
2151
2240
|
* @returns {Position} - The built Position object.
|
|
2152
2241
|
*/
|
|
2153
|
-
declare function buildPosition(object:
|
|
2242
|
+
declare function buildPosition(object: any): Position;
|
|
2154
2243
|
/**
|
|
2155
2244
|
* Builds a PositionReward object based on a response containing information about the reward.
|
|
2156
2245
|
* @param {any} fields - The response containing information about the reward.
|
|
@@ -2163,7 +2252,7 @@ declare function buildPositionInfo(fields: any): PositionInfo;
|
|
|
2163
2252
|
* @param {SuiObjectResponse} objects - The response containing information about tick data.
|
|
2164
2253
|
* @returns {TickData} - The built TickData object.
|
|
2165
2254
|
*/
|
|
2166
|
-
declare function buildTickData(objects:
|
|
2255
|
+
declare function buildTickData(objects: any): TickData;
|
|
2167
2256
|
/**
|
|
2168
2257
|
* Builds a TickData object based on a given event's fields.
|
|
2169
2258
|
* @param {any} fields - The fields of an event.
|
|
@@ -2173,7 +2262,7 @@ declare function buildTickData(objects: SuiObjectResponse): TickData;
|
|
|
2173
2262
|
declare function buildTickDataByEvent(fields: any): TickData;
|
|
2174
2263
|
declare function buildClmmPositionName(pool_index: number, position_index: number): string;
|
|
2175
2264
|
declare function buildPositionTransactionInfo(data: SuiTransactionBlockResponse, txIndex: number, filterIds: string[]): PositionTransactionInfo[];
|
|
2176
|
-
declare function buildPoolTransactionInfo(
|
|
2265
|
+
declare function buildPoolTransactionInfo(rawData: any, txIndex: number, package_ids: string[], pool_id: string): PoolTransactionInfo[];
|
|
2177
2266
|
declare function buildTransferCoinToSender(sdk: CetusClmmSDK, tx: Transaction, coin: TransactionObjectArgument, coinType: string): void;
|
|
2178
2267
|
declare function buildTransferCoin(sdk: CetusClmmSDK, tx: Transaction, coin: TransactionObjectArgument, coinType: string, recipient?: string): void;
|
|
2179
2268
|
|
|
@@ -2188,46 +2277,14 @@ type AdjustResult = {
|
|
|
2188
2277
|
*/
|
|
2189
2278
|
declare function findAdjustCoin(coinPair: CoinPairType): AdjustResult;
|
|
2190
2279
|
declare class PositionUtils {
|
|
2191
|
-
static createCollectRewarderAndFeeParams(sdk: CetusClmmSDK, tx: Transaction, params: CollectRewarderParams
|
|
2192
|
-
/**
|
|
2193
|
-
* adjust transaction for gas
|
|
2194
|
-
* @param sdk
|
|
2195
|
-
* @param amount
|
|
2196
|
-
* @param tx
|
|
2197
|
-
* @returns
|
|
2198
|
-
*/
|
|
2199
|
-
static adjustTransactionForGas(sdk: CetusClmmSDK, all_coins: CoinAsset[], amount: bigint, tx: Transaction): Promise<{
|
|
2200
|
-
fixAmount: bigint;
|
|
2201
|
-
newTx?: Transaction;
|
|
2202
|
-
}>;
|
|
2203
|
-
/**
|
|
2204
|
-
* build add liquidity transaction
|
|
2205
|
-
* @param params
|
|
2206
|
-
* @param slippage
|
|
2207
|
-
* @param curSqrtPrice
|
|
2208
|
-
* @returns
|
|
2209
|
-
*/
|
|
2210
|
-
static buildAddLiquidityFixTokenForGas(sdk: CetusClmmSDK, all_coins: CoinAsset[], params: AddLiquidityFixTokenParams, gas_estimate_arg: {
|
|
2211
|
-
slippage: number;
|
|
2212
|
-
cur_sqrt_price: BN;
|
|
2213
|
-
}, tx?: Transaction, input_coin_a?: TransactionObjectArgument, input_coin_b?: TransactionObjectArgument): Promise<Transaction>;
|
|
2280
|
+
static createCollectRewarderAndFeeParams(sdk: CetusClmmSDK, tx: Transaction, params: CollectRewarderParams): Transaction;
|
|
2214
2281
|
/**
|
|
2215
2282
|
* build add liquidity transaction
|
|
2216
2283
|
* @param params
|
|
2217
2284
|
* @param packageId
|
|
2218
2285
|
* @returns
|
|
2219
2286
|
*/
|
|
2220
|
-
static buildAddLiquidityFixToken(sdk: CetusClmmSDK,
|
|
2221
|
-
static buildAddLiquidityFixTokenCoinInput(tx: Transaction, need_interval_amount: boolean, amount: number | string, slippage: number, coin_type: string, all_coins: CoinAsset[], build_vector?: boolean, fix_amount?: boolean): BuildCoinResult;
|
|
2222
|
-
/**
|
|
2223
|
-
* fix add liquidity fix token for coin amount
|
|
2224
|
-
* @param params
|
|
2225
|
-
* @param slippage
|
|
2226
|
-
* @param curSqrtPrice
|
|
2227
|
-
* @returns
|
|
2228
|
-
*/
|
|
2229
|
-
static fixAddLiquidityFixTokenParams(params: AddLiquidityFixTokenParams, slippage: number, curSqrtPrice: BN): AddLiquidityFixTokenParams;
|
|
2230
|
-
private static buildAddLiquidityFixTokenArgs;
|
|
2287
|
+
static buildAddLiquidityFixToken(sdk: CetusClmmSDK, params: AddLiquidityFixTokenParams, tx?: Transaction, input_coin_a?: TransactionObjectArgument, input_coin_b?: TransactionObjectArgument): Promise<Transaction>;
|
|
2231
2288
|
static checkCoinThreshold(sdk: CetusClmmSDK, by_amount_in: boolean, tx: Transaction, coin: TransactionObjectArgument, amount_limit: number, coin_type: string): void;
|
|
2232
2289
|
}
|
|
2233
2290
|
|
|
@@ -2246,21 +2303,13 @@ declare class SwapUtils {
|
|
|
2246
2303
|
* @returns The default values for the otherAmountThreshold parameter in a swap.
|
|
2247
2304
|
*/
|
|
2248
2305
|
static getDefaultOtherAmountThreshold(amount_specified_is_input: boolean): BN;
|
|
2249
|
-
/**
|
|
2250
|
-
* build add liquidity transaction
|
|
2251
|
-
* @param params
|
|
2252
|
-
* @param slippage
|
|
2253
|
-
* @param curSqrtPrice
|
|
2254
|
-
* @returns
|
|
2255
|
-
*/
|
|
2256
|
-
static buildSwapTransactionForGas(sdk: CetusClmmSDK, params: SwapParams, all_coin_asset: CoinAsset[], gas_estimate_arg: SwapGasEstimateArg): Promise<Transaction>;
|
|
2257
2306
|
/**
|
|
2258
2307
|
* build swap transaction
|
|
2259
2308
|
* @param params
|
|
2260
2309
|
* @param packageId
|
|
2261
2310
|
* @returns
|
|
2262
2311
|
*/
|
|
2263
|
-
static buildSwapTransactionArgs(tx: Transaction, params: SwapParams, sdk_options: SdkOptions, primary_coin_input_a:
|
|
2312
|
+
static buildSwapTransactionArgs(tx: Transaction, params: SwapParams, sdk_options: SdkOptions, primary_coin_input_a: TransactionObjectArgument, primary_coin_input_b: TransactionObjectArgument): Transaction;
|
|
2264
2313
|
/**
|
|
2265
2314
|
* adjust transaction for gas
|
|
2266
2315
|
* @param sdk
|
|
@@ -2278,19 +2327,15 @@ declare class SwapUtils {
|
|
|
2278
2327
|
* @param packageId
|
|
2279
2328
|
* @returns
|
|
2280
2329
|
*/
|
|
2281
|
-
static buildSwapTransaction(sdk: CetusClmmSDK, params: SwapParams
|
|
2330
|
+
static buildSwapTransaction(sdk: CetusClmmSDK, params: SwapParams): Transaction;
|
|
2282
2331
|
static fixSwapParams(sdk: CetusClmmSDK, params: SwapParams, gasEstimateArg: SwapGasEstimateArg): Promise<SwapParams>;
|
|
2283
|
-
static buildSwapTransactionWithoutTransferCoinsForGas(sdk: CetusClmmSDK, params: SwapParams, all_coin_asset: CoinAsset[], gas_estimate_arg: SwapGasEstimateArg): Promise<{
|
|
2284
|
-
tx: Transaction;
|
|
2285
|
-
coin_ab_s: TransactionObjectArgument[];
|
|
2286
|
-
}>;
|
|
2287
2332
|
/**
|
|
2288
2333
|
* build swap transaction and return swapped coin
|
|
2289
2334
|
* @param params
|
|
2290
2335
|
* @param packageId
|
|
2291
2336
|
* @returns
|
|
2292
2337
|
*/
|
|
2293
|
-
static buildSwapTransactionWithoutTransferCoins(sdk: CetusClmmSDK, params: SwapParams
|
|
2338
|
+
static buildSwapTransactionWithoutTransferCoins(sdk: CetusClmmSDK, params: SwapParams): {
|
|
2294
2339
|
tx: Transaction;
|
|
2295
2340
|
coin_ab_s: TransactionObjectArgument[];
|
|
2296
2341
|
};
|
|
@@ -2300,7 +2345,7 @@ declare class SwapUtils {
|
|
|
2300
2345
|
* @param packageId
|
|
2301
2346
|
* @returns
|
|
2302
2347
|
*/
|
|
2303
|
-
static buildSwapTransactionWithoutTransferCoinArgs(sdk: CetusClmmSDK, tx: Transaction, params: SwapParams, sdk_options: SdkOptions, primary_coin_input_a:
|
|
2348
|
+
static buildSwapTransactionWithoutTransferCoinArgs(sdk: CetusClmmSDK, tx: Transaction, params: SwapParams, sdk_options: SdkOptions, primary_coin_input_a: TransactionObjectArgument, primary_coin_input_b: TransactionObjectArgument): {
|
|
2304
2349
|
tx: Transaction;
|
|
2305
2350
|
txRes: TransactionObjectArgument[];
|
|
2306
2351
|
};
|
|
@@ -2344,12 +2389,201 @@ declare function getUpperSqrtPriceFromCoinB(amount: BN, liquidity: BN, sqrt_pric
|
|
|
2344
2389
|
|
|
2345
2390
|
declare const BPS = 10000;
|
|
2346
2391
|
declare class VestUtils {
|
|
2347
|
-
static parseClmmVestInfo(res:
|
|
2392
|
+
static parseClmmVestInfo(res: any): ClmmVestInfo;
|
|
2348
2393
|
static parsePositionVesting(fields: any): PositionVesting;
|
|
2349
|
-
static parsePoolLiquiditySnapshot(res:
|
|
2350
|
-
static parsePositionSnapshot(res:
|
|
2394
|
+
static parsePoolLiquiditySnapshot(res: any): PoolLiquiditySnapshot;
|
|
2395
|
+
static parsePositionSnapshot(res: any): PositionSnapshot;
|
|
2351
2396
|
}
|
|
2352
2397
|
|
|
2398
|
+
declare const PositionRewardRaw: _mysten_sui_bcs.BcsStruct<{
|
|
2399
|
+
growth_inside: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u128">;
|
|
2400
|
+
amount_owned: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
2401
|
+
}, string>;
|
|
2402
|
+
declare const PositionInfoRaw: _mysten_sui_bcs.BcsStruct<{
|
|
2403
|
+
position_id: _mysten_sui_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
2404
|
+
liquidity: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u128">;
|
|
2405
|
+
tick_lower_index: _mysten_sui_bcs.BcsType<number, number, "u32">;
|
|
2406
|
+
tick_upper_index: _mysten_sui_bcs.BcsType<number, number, "u32">;
|
|
2407
|
+
fee_growth_inside_a: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u128">;
|
|
2408
|
+
fee_growth_inside_b: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u128">;
|
|
2409
|
+
fee_owned_a: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
2410
|
+
fee_owned_b: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
2411
|
+
points_owned: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u128">;
|
|
2412
|
+
points_growth_inside: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u128">;
|
|
2413
|
+
rewards: _mysten_sui_bcs.BcsType<{
|
|
2414
|
+
growth_inside: string;
|
|
2415
|
+
amount_owned: string;
|
|
2416
|
+
}[], Iterable<{
|
|
2417
|
+
growth_inside: string | number | bigint;
|
|
2418
|
+
amount_owned: string | number | bigint;
|
|
2419
|
+
}> & {
|
|
2420
|
+
length: number;
|
|
2421
|
+
}, string>;
|
|
2422
|
+
}, string>;
|
|
2423
|
+
declare const NodeIDPositionInfo: _mysten_sui_bcs.BcsStruct<{
|
|
2424
|
+
prev: _mysten_sui_bcs.BcsType<Uint8Array<ArrayBufferLike> | null, Iterable<number> | null | undefined, "Option<bytes[32]>">;
|
|
2425
|
+
next: _mysten_sui_bcs.BcsType<Uint8Array<ArrayBufferLike> | null, Iterable<number> | null | undefined, "Option<bytes[32]>">;
|
|
2426
|
+
value: _mysten_sui_bcs.BcsStruct<{
|
|
2427
|
+
position_id: _mysten_sui_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
2428
|
+
liquidity: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u128">;
|
|
2429
|
+
tick_lower_index: _mysten_sui_bcs.BcsType<number, number, "u32">;
|
|
2430
|
+
tick_upper_index: _mysten_sui_bcs.BcsType<number, number, "u32">;
|
|
2431
|
+
fee_growth_inside_a: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u128">;
|
|
2432
|
+
fee_growth_inside_b: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u128">;
|
|
2433
|
+
fee_owned_a: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
2434
|
+
fee_owned_b: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
2435
|
+
points_owned: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u128">;
|
|
2436
|
+
points_growth_inside: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u128">;
|
|
2437
|
+
rewards: _mysten_sui_bcs.BcsType<{
|
|
2438
|
+
growth_inside: string;
|
|
2439
|
+
amount_owned: string;
|
|
2440
|
+
}[], Iterable<{
|
|
2441
|
+
growth_inside: string | number | bigint;
|
|
2442
|
+
amount_owned: string | number | bigint;
|
|
2443
|
+
}> & {
|
|
2444
|
+
length: number;
|
|
2445
|
+
}, string>;
|
|
2446
|
+
}, string>;
|
|
2447
|
+
}, string>;
|
|
2448
|
+
declare const FetchPositionsEventRaw: _mysten_sui_bcs.BcsStruct<{
|
|
2449
|
+
positions: _mysten_sui_bcs.BcsType<{
|
|
2450
|
+
position_id: string;
|
|
2451
|
+
liquidity: string;
|
|
2452
|
+
tick_lower_index: number;
|
|
2453
|
+
tick_upper_index: number;
|
|
2454
|
+
fee_growth_inside_a: string;
|
|
2455
|
+
fee_growth_inside_b: string;
|
|
2456
|
+
fee_owned_a: string;
|
|
2457
|
+
fee_owned_b: string;
|
|
2458
|
+
points_owned: string;
|
|
2459
|
+
points_growth_inside: string;
|
|
2460
|
+
rewards: {
|
|
2461
|
+
growth_inside: string;
|
|
2462
|
+
amount_owned: string;
|
|
2463
|
+
}[];
|
|
2464
|
+
}[], Iterable<{
|
|
2465
|
+
position_id: string | Uint8Array<ArrayBufferLike>;
|
|
2466
|
+
liquidity: string | number | bigint;
|
|
2467
|
+
tick_lower_index: number;
|
|
2468
|
+
tick_upper_index: number;
|
|
2469
|
+
fee_growth_inside_a: string | number | bigint;
|
|
2470
|
+
fee_growth_inside_b: string | number | bigint;
|
|
2471
|
+
fee_owned_a: string | number | bigint;
|
|
2472
|
+
fee_owned_b: string | number | bigint;
|
|
2473
|
+
points_owned: string | number | bigint;
|
|
2474
|
+
points_growth_inside: string | number | bigint;
|
|
2475
|
+
rewards: Iterable<{
|
|
2476
|
+
growth_inside: string | number | bigint;
|
|
2477
|
+
amount_owned: string | number | bigint;
|
|
2478
|
+
}> & {
|
|
2479
|
+
length: number;
|
|
2480
|
+
};
|
|
2481
|
+
}> & {
|
|
2482
|
+
length: number;
|
|
2483
|
+
}, string>;
|
|
2484
|
+
}, string>;
|
|
2485
|
+
declare const TickRaw: _mysten_sui_bcs.BcsStruct<{
|
|
2486
|
+
index: _mysten_sui_bcs.BcsType<number, number, "u32">;
|
|
2487
|
+
sqrt_price: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u128">;
|
|
2488
|
+
liquidity_net: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u128">;
|
|
2489
|
+
liquidity_gross: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u128">;
|
|
2490
|
+
fee_growth_outside_a: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u128">;
|
|
2491
|
+
fee_growth_outside_b: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u128">;
|
|
2492
|
+
points_growth_outside: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u128">;
|
|
2493
|
+
rewards_growth_outside: _mysten_sui_bcs.BcsType<string[], Iterable<string | number | bigint> & {
|
|
2494
|
+
length: number;
|
|
2495
|
+
}, string>;
|
|
2496
|
+
}, string>;
|
|
2497
|
+
declare const FetchTicksResultEventRaw: _mysten_sui_bcs.BcsStruct<{
|
|
2498
|
+
ticks: _mysten_sui_bcs.BcsType<{
|
|
2499
|
+
index: number;
|
|
2500
|
+
sqrt_price: string;
|
|
2501
|
+
liquidity_net: string;
|
|
2502
|
+
liquidity_gross: string;
|
|
2503
|
+
fee_growth_outside_a: string;
|
|
2504
|
+
fee_growth_outside_b: string;
|
|
2505
|
+
points_growth_outside: string;
|
|
2506
|
+
rewards_growth_outside: string[];
|
|
2507
|
+
}[], Iterable<{
|
|
2508
|
+
index: number;
|
|
2509
|
+
sqrt_price: string | number | bigint;
|
|
2510
|
+
liquidity_net: string | number | bigint;
|
|
2511
|
+
liquidity_gross: string | number | bigint;
|
|
2512
|
+
fee_growth_outside_a: string | number | bigint;
|
|
2513
|
+
fee_growth_outside_b: string | number | bigint;
|
|
2514
|
+
points_growth_outside: string | number | bigint;
|
|
2515
|
+
rewards_growth_outside: Iterable<string | number | bigint> & {
|
|
2516
|
+
length: number;
|
|
2517
|
+
};
|
|
2518
|
+
}> & {
|
|
2519
|
+
length: number;
|
|
2520
|
+
}, string>;
|
|
2521
|
+
}, string>;
|
|
2522
|
+
declare const FetchPositionRewardsEventRaw: _mysten_sui_bcs.BcsStruct<{
|
|
2523
|
+
data: _mysten_sui_bcs.BcsType<string[], Iterable<string | number | bigint> & {
|
|
2524
|
+
length: number;
|
|
2525
|
+
}, string>;
|
|
2526
|
+
position_id: _mysten_sui_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
2527
|
+
}, string>;
|
|
2528
|
+
declare const FetchPositionFeesEventRaw: _mysten_sui_bcs.BcsStruct<{
|
|
2529
|
+
position_id: _mysten_sui_bcs.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
2530
|
+
fee_owned_a: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
2531
|
+
fee_owned_b: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
2532
|
+
}, string>;
|
|
2533
|
+
declare const CalculatedSwapResultEventRaw: _mysten_sui_bcs.BcsStruct<{
|
|
2534
|
+
data: _mysten_sui_bcs.BcsStruct<{
|
|
2535
|
+
amount_in: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
2536
|
+
amount_out: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
2537
|
+
fee_amount: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
2538
|
+
fee_rate: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u64">;
|
|
2539
|
+
after_sqrt_price: _mysten_sui_bcs.BcsType<string, string | number | bigint, "u128">;
|
|
2540
|
+
is_exceed: _mysten_sui_bcs.BcsType<boolean, boolean, "bool">;
|
|
2541
|
+
}, string>;
|
|
2542
|
+
}, string>;
|
|
2543
|
+
declare const GetPositionsVestingEventRaw: _mysten_sui_bcs.BcsStruct<{
|
|
2544
|
+
data: _mysten_sui_bcs.BcsType<{
|
|
2545
|
+
position_id: string;
|
|
2546
|
+
cetus_amount: string;
|
|
2547
|
+
redeemed_amount: string;
|
|
2548
|
+
coin_a: {
|
|
2549
|
+
name: string;
|
|
2550
|
+
};
|
|
2551
|
+
coin_b: {
|
|
2552
|
+
name: string;
|
|
2553
|
+
};
|
|
2554
|
+
impaired_a: string;
|
|
2555
|
+
impaired_b: string;
|
|
2556
|
+
period_details: {
|
|
2557
|
+
period: string;
|
|
2558
|
+
cetus_amount: string;
|
|
2559
|
+
is_redeemed: boolean;
|
|
2560
|
+
}[];
|
|
2561
|
+
is_paused: boolean;
|
|
2562
|
+
}[], Iterable<{
|
|
2563
|
+
position_id: string | Uint8Array<ArrayBufferLike>;
|
|
2564
|
+
cetus_amount: string | number | bigint;
|
|
2565
|
+
redeemed_amount: string | number | bigint;
|
|
2566
|
+
coin_a: {
|
|
2567
|
+
name: string;
|
|
2568
|
+
};
|
|
2569
|
+
coin_b: {
|
|
2570
|
+
name: string;
|
|
2571
|
+
};
|
|
2572
|
+
impaired_a: string | number | bigint;
|
|
2573
|
+
impaired_b: string | number | bigint;
|
|
2574
|
+
period_details: Iterable<{
|
|
2575
|
+
period: string | number | bigint;
|
|
2576
|
+
cetus_amount: string | number | bigint;
|
|
2577
|
+
is_redeemed: boolean;
|
|
2578
|
+
}> & {
|
|
2579
|
+
length: number;
|
|
2580
|
+
};
|
|
2581
|
+
is_paused: boolean;
|
|
2582
|
+
}> & {
|
|
2583
|
+
length: number;
|
|
2584
|
+
}, string>;
|
|
2585
|
+
}, string>;
|
|
2586
|
+
|
|
2353
2587
|
declare function estPoolAPR(pre_block_reward: BN, reward_price: BN, total_trading_fee: BN, total_liquidity_value: BN): BN;
|
|
2354
2588
|
type estPosAPRResult = {
|
|
2355
2589
|
fee_apr: Decimal;
|
|
@@ -2435,4 +2669,4 @@ declare class ClmmError extends BaseError {
|
|
|
2435
2669
|
declare const handleError: (code: ClmmErrorCode, error: Error, details?: Record<string, any>) => never;
|
|
2436
2670
|
declare const handleMessageError: (code: ClmmErrorCode, message: string, details?: Record<string, any>) => never;
|
|
2437
2671
|
|
|
2438
|
-
export { AMM_SWAP_MODULE, type AddLiquidityCommonParams, type AddLiquidityFixTokenParams, type AddLiquidityParams, type AddLiquidityWithPriceRangeParams, type AdjustResult, BPS, type BasePath, type BigNumber, type Bits, type CalculateAddLiquidityFixCoinWithPriceParams, type CalculateAddLiquidityResult, type CalculateAddLiquidityWithPriceParams, type CalculateCreatePoolResult, type CalculateCreatePoolWithPriceParams, type CalculateRatesParams, type CalculateRatesResult, CetusClmmSDK, type CetusConfigs, type ClmmConfig, ClmmError, type ClmmErrorCode, ClmmExpectSwapModule, ClmmFetcherModule, ClmmIntegratePoolModule, ClmmIntegratePoolV2Module, ClmmIntegratePoolV3Module, ClmmIntegrateRouterModule, ClmmIntegrateRouterWithPartnerModule, ClmmIntegrateUtilsModule, ClmmPartnerModule, type ClmmPoolConfig, ClmmPositionStatus, type ClmmVestInfo, type ClmmpoolData, type ClosePositionParams, type CoinConfig, type CollectFeeParams, type CollectFeesQuote, type CollectRewarderAndReturnCoinParams, type CollectRewarderParams, ConfigErrorCode, ConfigModule, type CreatePartnerEvent, type CreatePoolAddLiquidityParams, type CreatePoolAddLiquidityWithPriceParams, type CreatePoolAndAddLiquidityRowResult, type CreatePoolCustomRangeParams, type CreatePoolParams, type CustomRangeParams, DeepbookClobV2Module, DeepbookCustodianV2Module, DeepbookEndpointsV2Module, type FetchParams, type FetchPosFeeParams, type FetchPosRewardParams, type FullRangeParams, type GetPositionInfoListParams, type GetPositionVestOption, type GlobalVestingPeriod, type LaunchpadPoolConfig, type NFT, type OpenPositionParams, type OpenPositionWithPriceParams, POOL_STRUCT, PartnerErrorCode, type PeriodDetail, type Pool, PoolErrorCode, type PoolImmutables, type PoolLiquiditySnapshot, PoolModule, type PoolStatus, type PoolTransactionInfo, type PosRewarderResult, type Position, PositionErrorCode, type PositionInfo, PositionModule, type PositionSnapshot, type PositionTransactionInfo, PositionUtils, type PositionVesting, type PreSwapLpChangeParams, type PreSwapParams, type PreSwapWithMultiPoolParams, type RedeemOption, type RemoveLiquidityParams, type Rewarder, type RewarderAmountOwned, RewarderModule, RouterErrorCode, type SdkOptions, type SplitPath, type SuiBasicTypes, type SuiInputTypes, type SuiStructTag, type SuiTxArg, SwapErrorCode, type SwapGasEstimateArg, SwapModule, type SwapParams, type SwapResult, type SwapStepResult, SwapUtils, type Tick, type TickData, type TransPreSwapWithMultiPoolParams, TypesErrorCode, UtilsErrorCode, type VestConfigs, VestErrorCode, VestModule, VestUtils, buildClmmPositionName, buildPool, buildPoolTransactionInfo, buildPosition, buildPositionInfo, buildPositionTransactionInfo, buildTickData, buildTickDataByEvent, buildTransferCoin, buildTransferCoinToSender, clmmMainnet, clmmTestnet, computeSwap, computeSwapStep, CetusClmmSDK as default, estPoolAPR, type estPosAPRResult, estPositionAPRWithDeltaMethod, estPositionAPRWithMultiMethod, eventMainnetContractMaps, eventTestnetContractMaps, findAdjustCoin, getDefaultSuiInputType, getLowerSqrtPriceFromCoinA, getLowerSqrtPriceFromCoinB, getUpperSqrtPriceFromCoinA, getUpperSqrtPriceFromCoinB, handleError, handleMessageError, newBits, poolFilterEvenTypes, poolLiquiditySnapshotType, transClmmpoolDataWithoutTicks };
|
|
2672
|
+
export { AMM_SWAP_MODULE, type AddLiquidityCommonParams, type AddLiquidityFixTokenParams, type AddLiquidityParams, type AddLiquidityWithPriceRangeParams, type AdjustResult, BPS, type BasePath, type BigNumber, type Bits, type CalculateAddLiquidityFixCoinWithPriceParams, type CalculateAddLiquidityResult, type CalculateAddLiquidityWithPriceParams, type CalculateCreatePoolResult, type CalculateCreatePoolWithPriceParams, type CalculateRatesParams, type CalculateRatesResult, CalculatedSwapResultEventRaw, CetusClmmSDK, type CetusConfigs, type ClmmConfig, ClmmError, type ClmmErrorCode, ClmmExpectSwapModule, ClmmFetcherModule, ClmmIntegratePoolModule, ClmmIntegratePoolV2Module, ClmmIntegratePoolV3Module, ClmmIntegrateRouterModule, ClmmIntegrateRouterWithPartnerModule, ClmmIntegrateUtilsModule, ClmmPartnerModule, ClmmPool, type ClmmPoolConfig, ClmmPositionStatus, type ClmmVestInfo, type ClmmpoolData, type ClosePositionParams, Coin, type CoinConfig, type CollectFeeParams, type CollectFeesQuote, type CollectRewarderAndReturnCoinParams, type CollectRewarderParams, ConfigErrorCode, ConfigModule, type CreatePartnerEvent, type CreatePoolAddLiquidityParams, type CreatePoolAddLiquidityWithPriceParams, type CreatePoolAndAddLiquidityRowResult, type CreatePoolCustomRangeParams, type CreatePoolParams, type CustomRangeParams, DeepbookClobV2Module, DeepbookCustodianV2Module, DeepbookEndpointsV2Module, type FetchParams, type FetchPosFeeParams, type FetchPosRewardParams, FetchPositionFeesEventRaw, FetchPositionRewardsEventRaw, FetchPositionsEventRaw, FetchTicksResultEventRaw, type FullRangeParams, type GetPositionInfoListParams, type GetPositionVestOption, GetPositionsVestingEventRaw, type GlobalVestingPeriod, LaunchpadPool, type LaunchpadPoolConfig, MediaInfo, type NFT, NodeIDPositionInfo, type OpenPositionParams, type OpenPositionWithPriceParams, POOL_STRUCT, PartnerErrorCode, type PeriodDetail, type Pool, PoolErrorCode, type PoolImmutables, type PoolLiquiditySnapshot, PoolModule, type PoolStatus, type PoolTransactionInfo, type PosRewarderResult, type Position, PositionErrorCode, type PositionInfo, PositionInfoRaw, PositionModule, PositionRewardRaw, type PositionSnapshot, type PositionTransactionInfo, PositionUtils, type PositionVesting, type PreSwapLpChangeParams, type PreSwapParams, type PreSwapWithMultiPoolParams, type RedeemOption, type RemoveLiquidityParams, type Rewarder, type RewarderAmountOwned, RewarderModule, RouterErrorCode, type SdkOptions, type SplitPath, type SuiBasicTypes, type SuiInputTypes, type SuiStructTag, type SuiTxArg, SwapErrorCode, type SwapGasEstimateArg, SwapModule, type SwapParams, type SwapResult, type SwapStepResult, SwapUtils, type Tick, type TickData, TickRaw, type TransPreSwapWithMultiPoolParams, TypesErrorCode, UtilsErrorCode, type VestConfigs, VestErrorCode, VestModule, VestUtils, buildClmmPositionName, buildPool, buildPoolTransactionInfo, buildPosition, buildPositionInfo, buildPositionTransactionInfo, buildTickData, buildTickDataByEvent, buildTransferCoin, buildTransferCoinToSender, clmmMainnet, clmmTestnet, computeSwap, computeSwapStep, CetusClmmSDK as default, estPoolAPR, type estPosAPRResult, estPositionAPRWithDeltaMethod, estPositionAPRWithMultiMethod, eventMainnetContractMaps, eventTestnetContractMaps, findAdjustCoin, getDefaultSuiInputType, getLowerSqrtPriceFromCoinA, getLowerSqrtPriceFromCoinB, getUpperSqrtPriceFromCoinA, getUpperSqrtPriceFromCoinB, handleError, handleMessageError, newBits, poolFilterEvenTypes, poolLiquiditySnapshotType, transClmmpoolDataWithoutTicks };
|