@rhea-finance/cross-chain-aggregation-dex 2.0.3 → 2.0.4

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.
@@ -55,7 +55,8 @@ interface SwapQuoteDataRaw {
55
55
  isCrossChain: boolean;
56
56
  chainType: string;
57
57
  bestQuote: Record<string, unknown>;
58
- allQuotes: Record<string, unknown>[];
58
+ /** Optional route alternatives. Some quote responses only return bestQuote. */
59
+ allQuotes?: Record<string, unknown>[];
59
60
  errors?: unknown;
60
61
  nearDepositTx?: unknown;
61
62
  nearDepositTxError?: string;
@@ -353,7 +354,11 @@ interface QuoteRequest {
353
354
  tokenOut: AssetRef;
354
355
  amountIn: BaseUnitAmount;
355
356
  slippageBps: number;
356
- /** Near Intents quote waiting time in milliseconds. Defaults to 3000. */
357
+ /**
358
+ * Frontend-configurable Near Intents route-quote wait in milliseconds.
359
+ * Must be a non-negative integer. Defaults to 3000 when omitted.
360
+ * This is not an HTTP, wallet, settlement, or order-polling timeout.
361
+ */
357
362
  quoteWaitingTimeMs?: number;
358
363
  sender: string;
359
364
  recipient?: string;
@@ -55,7 +55,8 @@ interface SwapQuoteDataRaw {
55
55
  isCrossChain: boolean;
56
56
  chainType: string;
57
57
  bestQuote: Record<string, unknown>;
58
- allQuotes: Record<string, unknown>[];
58
+ /** Optional route alternatives. Some quote responses only return bestQuote. */
59
+ allQuotes?: Record<string, unknown>[];
59
60
  errors?: unknown;
60
61
  nearDepositTx?: unknown;
61
62
  nearDepositTxError?: string;
@@ -353,7 +354,11 @@ interface QuoteRequest {
353
354
  tokenOut: AssetRef;
354
355
  amountIn: BaseUnitAmount;
355
356
  slippageBps: number;
356
- /** Near Intents quote waiting time in milliseconds. Defaults to 3000. */
357
+ /**
358
+ * Frontend-configurable Near Intents route-quote wait in milliseconds.
359
+ * Must be a non-negative integer. Defaults to 3000 when omitted.
360
+ * This is not an HTTP, wallet, settlement, or order-polling timeout.
361
+ */
357
362
  quoteWaitingTimeMs?: number;
358
363
  sender: string;
359
364
  recipient?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhea-finance/cross-chain-aggregation-dex",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "TypeScript SDK for a unified multi-chain Swap API with quote, transaction building, execution adapters, status, reporting, and history.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",