@rhea-finance/cross-chain-aggregation-dex 2.1.7 → 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.
- package/README.md +10 -0
- package/dist/executors/aptos.d.mts +1 -1
- package/dist/executors/aptos.d.ts +1 -1
- package/dist/executors/aptos.js +2 -0
- package/dist/executors/aptos.js.map +1 -1
- package/dist/executors/aptos.mjs +2 -0
- package/dist/executors/aptos.mjs.map +1 -1
- package/dist/executors/bitcoin.d.mts +1 -1
- package/dist/executors/bitcoin.d.ts +1 -1
- package/dist/executors/bitcoin.js +2 -0
- package/dist/executors/bitcoin.js.map +1 -1
- package/dist/executors/bitcoin.mjs +2 -0
- package/dist/executors/bitcoin.mjs.map +1 -1
- package/dist/executors/evm.d.mts +1 -1
- package/dist/executors/evm.d.ts +1 -1
- package/dist/executors/evm.js +2 -0
- package/dist/executors/evm.js.map +1 -1
- package/dist/executors/evm.mjs +2 -0
- package/dist/executors/evm.mjs.map +1 -1
- package/dist/executors/near.d.mts +1 -1
- package/dist/executors/near.d.ts +1 -1
- package/dist/executors/near.js +2 -0
- package/dist/executors/near.js.map +1 -1
- package/dist/executors/near.mjs +2 -0
- package/dist/executors/near.mjs.map +1 -1
- package/dist/executors/solana.d.mts +1 -1
- package/dist/executors/solana.d.ts +1 -1
- package/dist/executors/solana.js +2 -0
- package/dist/executors/solana.js.map +1 -1
- package/dist/executors/solana.mjs +2 -0
- package/dist/executors/solana.mjs.map +1 -1
- package/dist/executors/sui.d.mts +1 -1
- package/dist/executors/sui.d.ts +1 -1
- package/dist/executors/sui.js +2 -0
- package/dist/executors/sui.js.map +1 -1
- package/dist/executors/sui.mjs +2 -0
- package/dist/executors/sui.mjs.map +1 -1
- package/dist/executors/tron.d.mts +1 -1
- package/dist/executors/tron.d.ts +1 -1
- package/dist/executors/tron.js +52 -7
- package/dist/executors/tron.js.map +1 -1
- package/dist/executors/tron.mjs +52 -7
- package/dist/executors/tron.mjs.map +1 -1
- package/dist/executors/zcash.d.mts +1 -1
- package/dist/executors/zcash.d.ts +1 -1
- package/dist/executors/zcash.js +2 -0
- package/dist/executors/zcash.js.map +1 -1
- package/dist/executors/zcash.mjs +2 -0
- package/dist/executors/zcash.mjs.map +1 -1
- package/dist/index.d.mts +16 -3
- package/dist/index.d.ts +16 -3
- package/dist/index.js +154 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +152 -18
- package/dist/index.mjs.map +1 -1
- package/dist/{shared-v1w63b8X.d.mts → shared-D_BnU1oa.d.mts} +11 -0
- package/dist/{shared-v1w63b8X.d.ts → shared-D_BnU1oa.d.ts} +11 -0
- package/package.json +1 -1
|
@@ -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.
|
|
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",
|