@minswap/noodles-sdk 0.1.1-beta.1 → 0.1.1-beta.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/dist/index.cjs +1 -1
- package/dist/index.d.ts +17 -9
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -737,7 +737,7 @@ export declare class CetusAggregator {
|
|
|
737
737
|
* @param params.coinInAmount - Amount of input token to swap
|
|
738
738
|
* @param params.coinInType - Type/address of input token
|
|
739
739
|
* @param params.coinOutType - Type/address of output token
|
|
740
|
-
* @param params.metaAggregator - If true, only meta-supported protocols are used
|
|
740
|
+
* @param params.metaAggregator - If true, only meta-supported protocols are used and no extra overlay fee is applied
|
|
741
741
|
* @returns Promise resolving to router data with pricing and route information, or null if no route found
|
|
742
742
|
*/
|
|
743
743
|
getTradeRoute({ coinInAmount, coinInType, coinOutType, tradeFee, metaAggregator, supportedProtocols, }: GetTradeRouteRequest_5 & {
|
|
@@ -751,7 +751,7 @@ export declare class CetusAggregator {
|
|
|
751
751
|
* @param params.slippage - Maximum acceptable slippage (e.g., 0.01 for 1%)
|
|
752
752
|
* @returns Promise resolving to built transaction bytes ready for signing and execution
|
|
753
753
|
*/
|
|
754
|
-
getTransaction({ completeRoute: routers, walletAddress, slippage, tradeFee, }: GetTransactionRequest_4): Promise<Uint8Array>;
|
|
754
|
+
getTransaction({ completeRoute: routers, walletAddress, slippage, tradeFee, metaAggregator, }: GetTransactionRequest_4): Promise<Uint8Array>;
|
|
755
755
|
}
|
|
756
756
|
|
|
757
757
|
export declare namespace CetusAggregator {
|
|
@@ -1081,7 +1081,7 @@ export declare class FlowXAggregator {
|
|
|
1081
1081
|
* @param params.coinInAmount - Amount of input token to swap
|
|
1082
1082
|
* @param params.coinInType - Type/address of input token
|
|
1083
1083
|
* @param params.coinOutType - Type/address of output token
|
|
1084
|
-
* @param params.metaAggregator - If true, only meta-supported DEXs are used
|
|
1084
|
+
* @param params.metaAggregator - If true, only meta-supported DEXs are used and no extra commission is applied
|
|
1085
1085
|
* @returns Promise resolving to routes result with pricing and path information, or null if no route found
|
|
1086
1086
|
*/
|
|
1087
1087
|
getTradeRoute({ coinInAmount, coinInType, coinOutType, tradeFee, metaAggregator, supportedProtocols, }: GetTradeRouteRequest_6 & {
|
|
@@ -1095,7 +1095,7 @@ export declare class FlowXAggregator {
|
|
|
1095
1095
|
* @param params.slippage - Maximum acceptable slippage (e.g., 0.01 for 1%)
|
|
1096
1096
|
* @returns Promise resolving to built transaction bytes ready for signing and execution
|
|
1097
1097
|
*/
|
|
1098
|
-
getTransaction({ walletAddress, completeRoute, slippage, tradeFee, }: GetTransactionRequest_5): Promise<Uint8Array>;
|
|
1098
|
+
getTransaction({ walletAddress, completeRoute, slippage, tradeFee, metaAggregator, }: GetTransactionRequest_5): Promise<Uint8Array>;
|
|
1099
1099
|
}
|
|
1100
1100
|
|
|
1101
1101
|
export declare namespace FlowXAggregator {
|
|
@@ -1326,7 +1326,7 @@ export declare type GetTradeRouteRequest = {
|
|
|
1326
1326
|
coinOutType: string;
|
|
1327
1327
|
/** Custom trade fee for this request, if not provided, the default trade fee will be applied */
|
|
1328
1328
|
tradeFee?: TradeFeeOptions;
|
|
1329
|
-
/** If true, only meta-supported aggregators/protocols will be used */
|
|
1329
|
+
/** If true, only meta-supported aggregators/protocols will be used without extra aggregator fees */
|
|
1330
1330
|
metaAggregator?: boolean;
|
|
1331
1331
|
};
|
|
1332
1332
|
|
|
@@ -1342,7 +1342,7 @@ declare type GetTradeRouteRequest_2 = {
|
|
|
1342
1342
|
coinOutType: string;
|
|
1343
1343
|
/** Custom trade fee for this request, if not provided, the default trade fee will be applied */
|
|
1344
1344
|
tradeFee?: TradeFeeOptions;
|
|
1345
|
-
/** If true, only meta-supported DEXs will be used */
|
|
1345
|
+
/** If true, only meta-supported DEXs will be used and no extra commission should be applied */
|
|
1346
1346
|
metaAggregator?: boolean;
|
|
1347
1347
|
};
|
|
1348
1348
|
|
|
@@ -1429,7 +1429,7 @@ export declare type GetTradeTransactionRequest = {
|
|
|
1429
1429
|
slippage: number;
|
|
1430
1430
|
/** Custom trade fee for this request, if not provided, the default trade fee will be applied */
|
|
1431
1431
|
tradeFee?: TradeFeeOptions;
|
|
1432
|
-
/** If true, only meta-supported aggregators/protocols will be used */
|
|
1432
|
+
/** If true, only meta-supported aggregators/protocols will be used without extra aggregator fees */
|
|
1433
1433
|
metaAggregator?: boolean;
|
|
1434
1434
|
/** The bonding curve Pool ID */
|
|
1435
1435
|
poolId: string;
|
|
@@ -1459,6 +1459,8 @@ export declare type GetTransactionByRouteRequest = {
|
|
|
1459
1459
|
slippage: number;
|
|
1460
1460
|
/** Custom trade fee for this request, if not provided, the default trade fee will be applied */
|
|
1461
1461
|
tradeFee?: TradeFeeOptions;
|
|
1462
|
+
/** If true, no extra aggregator fee will be applied for Cetus, FlowX, and 7K routes */
|
|
1463
|
+
metaAggregator?: boolean;
|
|
1462
1464
|
};
|
|
1463
1465
|
|
|
1464
1466
|
/**
|
|
@@ -1473,6 +1475,8 @@ declare type GetTransactionRequest = {
|
|
|
1473
1475
|
slippage: number;
|
|
1474
1476
|
/** Custom trade fee for this request, if not provided, the default trade fee will be applied */
|
|
1475
1477
|
tradeFee?: TradeFeeOptions;
|
|
1478
|
+
/** If true, no extra commission should be applied */
|
|
1479
|
+
metaAggregator?: boolean;
|
|
1476
1480
|
};
|
|
1477
1481
|
|
|
1478
1482
|
/**
|
|
@@ -1513,6 +1517,8 @@ declare type GetTransactionRequest_4 = {
|
|
|
1513
1517
|
slippage: number;
|
|
1514
1518
|
/** Custom trade fee for this request, if not provided, the default trade fee will be applied */
|
|
1515
1519
|
tradeFee?: TradeFeeOptions;
|
|
1520
|
+
/** If true, no extra overlay fee should be applied */
|
|
1521
|
+
metaAggregator?: boolean;
|
|
1516
1522
|
};
|
|
1517
1523
|
|
|
1518
1524
|
/**
|
|
@@ -1527,6 +1533,8 @@ declare type GetTransactionRequest_5 = {
|
|
|
1527
1533
|
slippage: number;
|
|
1528
1534
|
/** Custom trade fee for this request, if not provided, the default trade fee will be applied */
|
|
1529
1535
|
tradeFee?: TradeFeeOptions;
|
|
1536
|
+
/** If true, no extra commission should be applied */
|
|
1537
|
+
metaAggregator?: boolean;
|
|
1530
1538
|
};
|
|
1531
1539
|
|
|
1532
1540
|
export declare function getTransactionResultDigest(result: SuiClientTypes.TransactionResult): string;
|
|
@@ -2077,7 +2085,7 @@ export declare class SevenKAggregator {
|
|
|
2077
2085
|
* @param params.coinInAmount - Amount of input token to swap
|
|
2078
2086
|
* @param params.coinInType - Type/address of input token
|
|
2079
2087
|
* @param params.coinOutType - Type/address of output token
|
|
2080
|
-
* @param params.metaAggregator - If true, only meta-supported DEXs are used
|
|
2088
|
+
* @param params.metaAggregator - If true, only meta-supported DEXs are used and no extra commission is applied
|
|
2081
2089
|
* @returns Promise resolving to quote response with pricing and route information, or null if no route found
|
|
2082
2090
|
*/
|
|
2083
2091
|
getTradeRoute({ coinInAmount, coinInType, coinOutType, tradeFee, metaAggregator, supportedProtocols, }: GetTradeRouteRequest_2 & {
|
|
@@ -2091,7 +2099,7 @@ export declare class SevenKAggregator {
|
|
|
2091
2099
|
* @param params.slippage - Maximum acceptable slippage (e.g., 0.01 for 1%)
|
|
2092
2100
|
* @returns Promise resolving to built transaction bytes ready for signing and execution
|
|
2093
2101
|
*/
|
|
2094
|
-
getTransaction({ walletAddress, completeRoute, slippage, tradeFee, }: GetTransactionRequest): Promise<Uint8Array>;
|
|
2102
|
+
getTransaction({ walletAddress, completeRoute, slippage, tradeFee, metaAggregator, }: GetTransactionRequest): Promise<Uint8Array>;
|
|
2095
2103
|
}
|
|
2096
2104
|
|
|
2097
2105
|
export declare namespace SevenKAggregator {
|