@minswap/noodles-sdk 0.0.66 → 0.1.0-beta.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/dist/index.d.ts CHANGED
@@ -722,7 +722,7 @@ export declare class CetusAggregator {
722
722
  * @param config - Aggregator configuration including fee settings and optional API credentials
723
723
  * @param suiClient - Sui client for blockchain interactions
724
724
  */
725
- constructor(config: CetusAggregatorConfig, suiClient: SuiJsonRpcClient);
725
+ constructor(config: CetusAggregatorConfig, suiClient: SuiGrpcClient);
726
726
  /**
727
727
  * Lazy-loads and returns the Cetus aggregator client, initializing it on first use
728
728
  * Configures the client with overlay fees, API credentials, and partner information
@@ -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, then only some supported protocols will be 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 {
@@ -787,7 +787,7 @@ export declare class CetusClient implements QuoteClient {
787
787
  private readonly options;
788
788
  readonly kind = SourceAggregatorRoute.CETUS;
789
789
  private readonly cetusClient;
790
- constructor(options: CetusClientOptions, metaOptions: MetaClientOptions, client: SuiJsonRpcClient);
790
+ constructor(options: CetusClientOptions, metaOptions: MetaClientOptions, client: SuiGrpcClient);
791
791
  quote(quoteOptions: MetaQuoteOptions): Promise<MetaQuote>;
792
792
  }
793
793
 
@@ -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, then only some supported DEXs will be 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 some supported DEXs/protocols will be used */
1329
+ /** If true, Cetus, FlowX, and 7K use meta-supported protocols without extra aggregator fees */
1330
1330
  metaAggregator?: boolean;
1331
1331
  };
1332
1332
 
@@ -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 some supported DEXs/protocols will be used */
1432
+ /** If true, Cetus, FlowX, and 7K use meta-supported protocols 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, then only some supported DEXs will be 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 {