@rhea-finance/cross-chain-aggregation-dex 2.1.8 → 2.1.9

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.
@@ -69,6 +69,8 @@ interface SwapQuoteRequestRaw {
69
69
  quoteWaitingTimeMs?: number;
70
70
  sameChainTimeoutMs?: number;
71
71
  crossChainTimeoutMs?: number;
72
+ /** Routing provider identifiers to exclude from quote selection. */
73
+ excludeDexs?: string[];
72
74
  /** Enables the confidential 1Click route. */
73
75
  confidentiality?: "basic";
74
76
  sender: string;
@@ -468,6 +470,8 @@ interface QuoteRequest {
468
470
  sameChainTimeoutMs?: number;
469
471
  /** Cross-chain route quote timeout in milliseconds. Defaults to 3000. */
470
472
  crossChainTimeoutMs?: number;
473
+ /** Routing provider identifiers to exclude, for example ["lifi", "rango"]. */
474
+ excludeDexs?: string[];
471
475
  /** Enables the confidential 1Click route. */
472
476
  confidentiality?: "basic";
473
477
  sender: string;
@@ -622,6 +626,13 @@ interface ExecutionContext {
622
626
  waitFor: WaitMode;
623
627
  emit(event: SwapLifecycleEvent): void;
624
628
  beforeSign?: (preview: SignRequestPreview) => void | Promise<void>;
629
+ /**
630
+ * After a Tron TRC20 approve is confirmed, rebuild the main `tron-transaction`
631
+ * (fresh ref block / expiration / Rango requestId). Provided by SwapClient.
632
+ */
633
+ refreshTronExecution?: () => Promise<Extract<SwapExecution, {
634
+ kind: "tron-transaction";
635
+ }>>;
625
636
  }
626
637
  interface MessageSignOptions {
627
638
  signal?: AbortSignal;
@@ -69,6 +69,8 @@ interface SwapQuoteRequestRaw {
69
69
  quoteWaitingTimeMs?: number;
70
70
  sameChainTimeoutMs?: number;
71
71
  crossChainTimeoutMs?: number;
72
+ /** Routing provider identifiers to exclude from quote selection. */
73
+ excludeDexs?: string[];
72
74
  /** Enables the confidential 1Click route. */
73
75
  confidentiality?: "basic";
74
76
  sender: string;
@@ -468,6 +470,8 @@ interface QuoteRequest {
468
470
  sameChainTimeoutMs?: number;
469
471
  /** Cross-chain route quote timeout in milliseconds. Defaults to 3000. */
470
472
  crossChainTimeoutMs?: number;
473
+ /** Routing provider identifiers to exclude, for example ["lifi", "rango"]. */
474
+ excludeDexs?: string[];
471
475
  /** Enables the confidential 1Click route. */
472
476
  confidentiality?: "basic";
473
477
  sender: string;
@@ -622,6 +626,13 @@ interface ExecutionContext {
622
626
  waitFor: WaitMode;
623
627
  emit(event: SwapLifecycleEvent): void;
624
628
  beforeSign?: (preview: SignRequestPreview) => void | Promise<void>;
629
+ /**
630
+ * After a Tron TRC20 approve is confirmed, rebuild the main `tron-transaction`
631
+ * (fresh ref block / expiration / Rango requestId). Provided by SwapClient.
632
+ */
633
+ refreshTronExecution?: () => Promise<Extract<SwapExecution, {
634
+ kind: "tron-transaction";
635
+ }>>;
625
636
  }
626
637
  interface MessageSignOptions {
627
638
  signal?: AbortSignal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhea-finance/cross-chain-aggregation-dex",
3
- "version": "2.1.8",
3
+ "version": "2.1.9",
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",