@minswap/noodles-sdk 0.1.1-beta.0 → 0.1.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +9 -17
- 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
|
|
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,
|
|
754
|
+
getTransaction({ completeRoute: routers, walletAddress, slippage, tradeFee, }: 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
|
|
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,
|
|
1098
|
+
getTransaction({ walletAddress, completeRoute, slippage, tradeFee, }: 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,
|
|
1329
|
+
/** If true, only meta-supported aggregators/protocols will be used */
|
|
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,
|
|
1345
|
+
/** If true, only meta-supported DEXs will be used */
|
|
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,
|
|
1432
|
+
/** If true, only meta-supported aggregators/protocols will be used */
|
|
1433
1433
|
metaAggregator?: boolean;
|
|
1434
1434
|
/** The bonding curve Pool ID */
|
|
1435
1435
|
poolId: string;
|
|
@@ -1459,8 +1459,6 @@ 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;
|
|
1464
1462
|
};
|
|
1465
1463
|
|
|
1466
1464
|
/**
|
|
@@ -1475,8 +1473,6 @@ declare type GetTransactionRequest = {
|
|
|
1475
1473
|
slippage: number;
|
|
1476
1474
|
/** Custom trade fee for this request, if not provided, the default trade fee will be applied */
|
|
1477
1475
|
tradeFee?: TradeFeeOptions;
|
|
1478
|
-
/** If true, no extra commission should be applied */
|
|
1479
|
-
metaAggregator?: boolean;
|
|
1480
1476
|
};
|
|
1481
1477
|
|
|
1482
1478
|
/**
|
|
@@ -1517,8 +1513,6 @@ declare type GetTransactionRequest_4 = {
|
|
|
1517
1513
|
slippage: number;
|
|
1518
1514
|
/** Custom trade fee for this request, if not provided, the default trade fee will be applied */
|
|
1519
1515
|
tradeFee?: TradeFeeOptions;
|
|
1520
|
-
/** If true, no extra overlay fee should be applied */
|
|
1521
|
-
metaAggregator?: boolean;
|
|
1522
1516
|
};
|
|
1523
1517
|
|
|
1524
1518
|
/**
|
|
@@ -1533,8 +1527,6 @@ declare type GetTransactionRequest_5 = {
|
|
|
1533
1527
|
slippage: number;
|
|
1534
1528
|
/** Custom trade fee for this request, if not provided, the default trade fee will be applied */
|
|
1535
1529
|
tradeFee?: TradeFeeOptions;
|
|
1536
|
-
/** If true, no extra commission should be applied */
|
|
1537
|
-
metaAggregator?: boolean;
|
|
1538
1530
|
};
|
|
1539
1531
|
|
|
1540
1532
|
export declare function getTransactionResultDigest(result: SuiClientTypes.TransactionResult): string;
|
|
@@ -2085,7 +2077,7 @@ export declare class SevenKAggregator {
|
|
|
2085
2077
|
* @param params.coinInAmount - Amount of input token to swap
|
|
2086
2078
|
* @param params.coinInType - Type/address of input token
|
|
2087
2079
|
* @param params.coinOutType - Type/address of output token
|
|
2088
|
-
* @param params.metaAggregator - If true, only meta-supported DEXs are used
|
|
2080
|
+
* @param params.metaAggregator - If true, only meta-supported DEXs are used
|
|
2089
2081
|
* @returns Promise resolving to quote response with pricing and route information, or null if no route found
|
|
2090
2082
|
*/
|
|
2091
2083
|
getTradeRoute({ coinInAmount, coinInType, coinOutType, tradeFee, metaAggregator, supportedProtocols, }: GetTradeRouteRequest_2 & {
|
|
@@ -2099,7 +2091,7 @@ export declare class SevenKAggregator {
|
|
|
2099
2091
|
* @param params.slippage - Maximum acceptable slippage (e.g., 0.01 for 1%)
|
|
2100
2092
|
* @returns Promise resolving to built transaction bytes ready for signing and execution
|
|
2101
2093
|
*/
|
|
2102
|
-
getTransaction({ walletAddress, completeRoute, slippage, tradeFee,
|
|
2094
|
+
getTransaction({ walletAddress, completeRoute, slippage, tradeFee, }: GetTransactionRequest): Promise<Uint8Array>;
|
|
2103
2095
|
}
|
|
2104
2096
|
|
|
2105
2097
|
export declare namespace SevenKAggregator {
|