@rhea-finance/cross-chain-aggregation-dex 2.0.5 → 2.0.7

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.
Files changed (42) hide show
  1. package/README.md +148 -71
  2. package/dist/executors/aptos.d.mts +1 -1
  3. package/dist/executors/aptos.d.ts +1 -1
  4. package/dist/executors/aptos.js.map +1 -1
  5. package/dist/executors/aptos.mjs.map +1 -1
  6. package/dist/executors/bitcoin.d.mts +1 -1
  7. package/dist/executors/bitcoin.d.ts +1 -1
  8. package/dist/executors/bitcoin.js.map +1 -1
  9. package/dist/executors/bitcoin.mjs.map +1 -1
  10. package/dist/executors/evm.d.mts +1 -1
  11. package/dist/executors/evm.d.ts +1 -1
  12. package/dist/executors/evm.js.map +1 -1
  13. package/dist/executors/evm.mjs.map +1 -1
  14. package/dist/executors/near.d.mts +1 -1
  15. package/dist/executors/near.d.ts +1 -1
  16. package/dist/executors/near.js.map +1 -1
  17. package/dist/executors/near.mjs.map +1 -1
  18. package/dist/executors/solana.d.mts +1 -1
  19. package/dist/executors/solana.d.ts +1 -1
  20. package/dist/executors/solana.js.map +1 -1
  21. package/dist/executors/solana.mjs.map +1 -1
  22. package/dist/executors/sui.d.mts +1 -1
  23. package/dist/executors/sui.d.ts +1 -1
  24. package/dist/executors/sui.js.map +1 -1
  25. package/dist/executors/sui.mjs.map +1 -1
  26. package/dist/executors/tron.d.mts +1 -1
  27. package/dist/executors/tron.d.ts +1 -1
  28. package/dist/executors/tron.js.map +1 -1
  29. package/dist/executors/tron.mjs.map +1 -1
  30. package/dist/executors/zcash.d.mts +1 -1
  31. package/dist/executors/zcash.d.ts +1 -1
  32. package/dist/executors/zcash.js.map +1 -1
  33. package/dist/executors/zcash.mjs.map +1 -1
  34. package/dist/index.d.mts +40 -6
  35. package/dist/index.d.ts +40 -6
  36. package/dist/index.js +266 -47
  37. package/dist/index.js.map +1 -1
  38. package/dist/index.mjs +265 -48
  39. package/dist/index.mjs.map +1 -1
  40. package/dist/{shared-DmMJXknE.d.mts → shared-COkGiqaz.d.mts} +30 -2
  41. package/dist/{shared-DmMJXknE.d.ts → shared-COkGiqaz.d.ts} +30 -2
  42. package/package.json +1 -1
@@ -8,6 +8,27 @@ interface SwapApiTokenMetaRaw {
8
8
  symbol: string;
9
9
  decimals: number;
10
10
  }
11
+ interface SwapTokenListRowRaw extends Record<string, unknown> {
12
+ address?: string | null;
13
+ assetId?: string | null;
14
+ blockchain?: string;
15
+ chainId?: number;
16
+ coinType?: string | null;
17
+ contractAddress?: string | null;
18
+ decimals?: number | string;
19
+ isNative?: boolean;
20
+ logoURI?: string;
21
+ name?: string;
22
+ platform?: string;
23
+ price?: string | number;
24
+ sources?: string[];
25
+ symbol?: string;
26
+ updated_at?: number;
27
+ }
28
+ type SwapFromTokensDataRaw = Record<string, SwapTokenListRowRaw>;
29
+ interface SwapCrossChainToTokensDataRaw {
30
+ tokens: SwapTokenListRowRaw[];
31
+ }
11
32
  interface SwapMcaSignerPayloadRaw {
12
33
  chain: string;
13
34
  identityKey: string;
@@ -46,6 +67,8 @@ interface SwapQuoteRequestRaw {
46
67
  amountIn: string;
47
68
  slippage?: number;
48
69
  quoteWaitingTimeMs?: number;
70
+ sameChainTimeoutMs?: number;
71
+ crossChainTimeoutMs?: number;
49
72
  /** Enables the confidential 1Click route. */
50
73
  confidentiality?: "basic";
51
74
  sender: string;
@@ -305,6 +328,7 @@ interface NearTransaction {
305
328
  actions: unknown[];
306
329
  }
307
330
  interface OrderReference {
331
+ /** Status-query key. Usually an order ID; confidential Near Intents may use the deposit address. */
308
332
  orderId: string;
309
333
  router: string;
310
334
  chainId?: string;
@@ -410,8 +434,12 @@ interface QuoteRequest {
410
434
  * Frontend-configurable Near Intents route-quote wait in milliseconds.
411
435
  * Must be a non-negative integer. Defaults to 3000 when omitted.
412
436
  * This is not an HTTP, wallet, settlement, or order-polling timeout.
413
- */
437
+ */
414
438
  quoteWaitingTimeMs?: number;
439
+ /** Same-chain route quote timeout in milliseconds. Defaults to 500. */
440
+ sameChainTimeoutMs?: number;
441
+ /** Cross-chain route quote timeout in milliseconds. Defaults to 3000. */
442
+ crossChainTimeoutMs?: number;
415
443
  /** Enables the confidential 1Click route. */
416
444
  confidentiality?: "basic";
417
445
  sender: string;
@@ -615,4 +643,4 @@ interface ExecutorErrorAdapter {
615
643
  signMessage?(message: string, options?: MessageSignOptions): Promise<string>;
616
644
  }
617
645
 
618
- export { assertBaseUnitAmount as $, type AssetRef as A, type BaseUnitAmount as B, type ChainRef as C, type SwapHistoryAuthProofRaw as D, ExecutorRegistry as E, type SwapMcaRelayerRequestRaw as F, type SwapApiResponse as G, type SwapApiTokenMetaRaw as H, type SwapMcaSignerPayloadRaw as I, type SwapSigningRequestRaw as J, type SwapBuildApproveRaw as K, type SwapHistoryWalletChainFamilyRaw as L, type SwapWarning as M, type NearTransaction as N, type OrderPollingOptions as O, type SignRequestPreview as P, type QuoteRequest as Q, type OrderStatus as R, type SwapQuoteRequestRaw as S, type TransactionConfirmation as T, normalizeOrderStatus as U, type ChainExecutionResult as V, type WaitMode as W, type ExecutionContext as X, type MessageSignOptions as Y, type ExecutorIdentityProvider as Z, type ExecutorMessageSigner as _, type SwapQuoteDataRaw as a, type EvmTx as a0, type EvmApproval as a1, type EvmSigningRequest as a2, type SolanaMetadata as a3, type OrderReference as a4, type DepositInfo as a5, type SwapReportContext as a6, type SwapExecution as a7, type RouteSummary as a8, type BuildContext as a9, type ExecutorErrorAdapter as aa, type TransactionSubmission as ab, type SwapBuildRequestRaw as b, type SwapBuildDataRaw as c, type SwapOrderSubmitRequestRaw as d, type SwapOrderSubmitDataRaw as e, type SwapOrderStatusParamsRaw as f, type SwapOrderStatusDataRaw as g, type SwapReportRequestRaw as h, type SwapReportDataRaw as i, type SwapHistoryParamsRaw as j, type SwapHistoryDataRaw as k, type SwapHistoryAuthChallengeRequestRaw as l, type SwapHistoryAuthChallengeRaw as m, type SwapHistoryAuthVerifyRequestRaw as n, type SwapHistoryAuthTokenRaw as o, type Quote as p, type SwapMcaPayloadRaw as q, type SwapLifecycleEvent as r, type SwapExecutionResult as s, type SwapHistoryRecordRaw as t, type ChainExecutor as u, type SwapBuild as v, type ExecuteSwapInput as w, type SwapInput as x, type OrderStatusResult as y, type WaitForOrderInput as z };
646
+ export { type MessageSignOptions as $, type AssetRef as A, type BaseUnitAmount as B, type ChainRef as C, type OrderStatusResult as D, ExecutorRegistry as E, type WaitForOrderInput as F, type SwapHistoryAuthProofRaw as G, type SwapMcaRelayerRequestRaw as H, type SwapApiResponse as I, type SwapApiTokenMetaRaw as J, type SwapTokenListRowRaw as K, type SwapMcaSignerPayloadRaw as L, type SwapSigningRequestRaw as M, type NearTransaction as N, type OrderPollingOptions as O, type SwapBuildApproveRaw as P, type QuoteRequest as Q, type SwapHistoryWalletChainFamilyRaw as R, type SwapQuoteRequestRaw as S, type TransactionConfirmation as T, type SwapWarning as U, type SignRequestPreview as V, type WaitMode as W, type OrderStatus as X, normalizeOrderStatus as Y, type ChainExecutionResult as Z, type ExecutionContext as _, type SwapQuoteDataRaw as a, type ExecutorIdentityProvider as a0, type ExecutorMessageSigner as a1, assertBaseUnitAmount as a2, type EvmTx as a3, type EvmApproval as a4, type EvmSigningRequest as a5, type SolanaMetadata as a6, type OrderReference as a7, type DepositInfo as a8, type SwapReportContext as a9, type SwapExecution as aa, type RouteSummary as ab, type BuildContext as ac, type ExecutorErrorAdapter as ad, type TransactionSubmission as ae, type SwapBuildRequestRaw as b, type SwapBuildDataRaw as c, type SwapOrderSubmitRequestRaw as d, type SwapOrderSubmitDataRaw as e, type SwapOrderStatusParamsRaw as f, type SwapOrderStatusDataRaw as g, type SwapReportRequestRaw as h, type SwapReportDataRaw as i, type SwapHistoryParamsRaw as j, type SwapHistoryDataRaw as k, type SwapHistoryAuthChallengeRequestRaw as l, type SwapHistoryAuthChallengeRaw as m, type SwapHistoryAuthVerifyRequestRaw as n, type SwapHistoryAuthTokenRaw as o, type SwapFromTokensDataRaw as p, type SwapCrossChainToTokensDataRaw as q, type Quote as r, type SwapMcaPayloadRaw as s, type SwapLifecycleEvent as t, type SwapExecutionResult as u, type SwapHistoryRecordRaw as v, type ChainExecutor as w, type SwapBuild as x, type ExecuteSwapInput as y, type SwapInput as z };
@@ -8,6 +8,27 @@ interface SwapApiTokenMetaRaw {
8
8
  symbol: string;
9
9
  decimals: number;
10
10
  }
11
+ interface SwapTokenListRowRaw extends Record<string, unknown> {
12
+ address?: string | null;
13
+ assetId?: string | null;
14
+ blockchain?: string;
15
+ chainId?: number;
16
+ coinType?: string | null;
17
+ contractAddress?: string | null;
18
+ decimals?: number | string;
19
+ isNative?: boolean;
20
+ logoURI?: string;
21
+ name?: string;
22
+ platform?: string;
23
+ price?: string | number;
24
+ sources?: string[];
25
+ symbol?: string;
26
+ updated_at?: number;
27
+ }
28
+ type SwapFromTokensDataRaw = Record<string, SwapTokenListRowRaw>;
29
+ interface SwapCrossChainToTokensDataRaw {
30
+ tokens: SwapTokenListRowRaw[];
31
+ }
11
32
  interface SwapMcaSignerPayloadRaw {
12
33
  chain: string;
13
34
  identityKey: string;
@@ -46,6 +67,8 @@ interface SwapQuoteRequestRaw {
46
67
  amountIn: string;
47
68
  slippage?: number;
48
69
  quoteWaitingTimeMs?: number;
70
+ sameChainTimeoutMs?: number;
71
+ crossChainTimeoutMs?: number;
49
72
  /** Enables the confidential 1Click route. */
50
73
  confidentiality?: "basic";
51
74
  sender: string;
@@ -305,6 +328,7 @@ interface NearTransaction {
305
328
  actions: unknown[];
306
329
  }
307
330
  interface OrderReference {
331
+ /** Status-query key. Usually an order ID; confidential Near Intents may use the deposit address. */
308
332
  orderId: string;
309
333
  router: string;
310
334
  chainId?: string;
@@ -410,8 +434,12 @@ interface QuoteRequest {
410
434
  * Frontend-configurable Near Intents route-quote wait in milliseconds.
411
435
  * Must be a non-negative integer. Defaults to 3000 when omitted.
412
436
  * This is not an HTTP, wallet, settlement, or order-polling timeout.
413
- */
437
+ */
414
438
  quoteWaitingTimeMs?: number;
439
+ /** Same-chain route quote timeout in milliseconds. Defaults to 500. */
440
+ sameChainTimeoutMs?: number;
441
+ /** Cross-chain route quote timeout in milliseconds. Defaults to 3000. */
442
+ crossChainTimeoutMs?: number;
415
443
  /** Enables the confidential 1Click route. */
416
444
  confidentiality?: "basic";
417
445
  sender: string;
@@ -615,4 +643,4 @@ interface ExecutorErrorAdapter {
615
643
  signMessage?(message: string, options?: MessageSignOptions): Promise<string>;
616
644
  }
617
645
 
618
- export { assertBaseUnitAmount as $, type AssetRef as A, type BaseUnitAmount as B, type ChainRef as C, type SwapHistoryAuthProofRaw as D, ExecutorRegistry as E, type SwapMcaRelayerRequestRaw as F, type SwapApiResponse as G, type SwapApiTokenMetaRaw as H, type SwapMcaSignerPayloadRaw as I, type SwapSigningRequestRaw as J, type SwapBuildApproveRaw as K, type SwapHistoryWalletChainFamilyRaw as L, type SwapWarning as M, type NearTransaction as N, type OrderPollingOptions as O, type SignRequestPreview as P, type QuoteRequest as Q, type OrderStatus as R, type SwapQuoteRequestRaw as S, type TransactionConfirmation as T, normalizeOrderStatus as U, type ChainExecutionResult as V, type WaitMode as W, type ExecutionContext as X, type MessageSignOptions as Y, type ExecutorIdentityProvider as Z, type ExecutorMessageSigner as _, type SwapQuoteDataRaw as a, type EvmTx as a0, type EvmApproval as a1, type EvmSigningRequest as a2, type SolanaMetadata as a3, type OrderReference as a4, type DepositInfo as a5, type SwapReportContext as a6, type SwapExecution as a7, type RouteSummary as a8, type BuildContext as a9, type ExecutorErrorAdapter as aa, type TransactionSubmission as ab, type SwapBuildRequestRaw as b, type SwapBuildDataRaw as c, type SwapOrderSubmitRequestRaw as d, type SwapOrderSubmitDataRaw as e, type SwapOrderStatusParamsRaw as f, type SwapOrderStatusDataRaw as g, type SwapReportRequestRaw as h, type SwapReportDataRaw as i, type SwapHistoryParamsRaw as j, type SwapHistoryDataRaw as k, type SwapHistoryAuthChallengeRequestRaw as l, type SwapHistoryAuthChallengeRaw as m, type SwapHistoryAuthVerifyRequestRaw as n, type SwapHistoryAuthTokenRaw as o, type Quote as p, type SwapMcaPayloadRaw as q, type SwapLifecycleEvent as r, type SwapExecutionResult as s, type SwapHistoryRecordRaw as t, type ChainExecutor as u, type SwapBuild as v, type ExecuteSwapInput as w, type SwapInput as x, type OrderStatusResult as y, type WaitForOrderInput as z };
646
+ export { type MessageSignOptions as $, type AssetRef as A, type BaseUnitAmount as B, type ChainRef as C, type OrderStatusResult as D, ExecutorRegistry as E, type WaitForOrderInput as F, type SwapHistoryAuthProofRaw as G, type SwapMcaRelayerRequestRaw as H, type SwapApiResponse as I, type SwapApiTokenMetaRaw as J, type SwapTokenListRowRaw as K, type SwapMcaSignerPayloadRaw as L, type SwapSigningRequestRaw as M, type NearTransaction as N, type OrderPollingOptions as O, type SwapBuildApproveRaw as P, type QuoteRequest as Q, type SwapHistoryWalletChainFamilyRaw as R, type SwapQuoteRequestRaw as S, type TransactionConfirmation as T, type SwapWarning as U, type SignRequestPreview as V, type WaitMode as W, type OrderStatus as X, normalizeOrderStatus as Y, type ChainExecutionResult as Z, type ExecutionContext as _, type SwapQuoteDataRaw as a, type ExecutorIdentityProvider as a0, type ExecutorMessageSigner as a1, assertBaseUnitAmount as a2, type EvmTx as a3, type EvmApproval as a4, type EvmSigningRequest as a5, type SolanaMetadata as a6, type OrderReference as a7, type DepositInfo as a8, type SwapReportContext as a9, type SwapExecution as aa, type RouteSummary as ab, type BuildContext as ac, type ExecutorErrorAdapter as ad, type TransactionSubmission as ae, type SwapBuildRequestRaw as b, type SwapBuildDataRaw as c, type SwapOrderSubmitRequestRaw as d, type SwapOrderSubmitDataRaw as e, type SwapOrderStatusParamsRaw as f, type SwapOrderStatusDataRaw as g, type SwapReportRequestRaw as h, type SwapReportDataRaw as i, type SwapHistoryParamsRaw as j, type SwapHistoryDataRaw as k, type SwapHistoryAuthChallengeRequestRaw as l, type SwapHistoryAuthChallengeRaw as m, type SwapHistoryAuthVerifyRequestRaw as n, type SwapHistoryAuthTokenRaw as o, type SwapFromTokensDataRaw as p, type SwapCrossChainToTokensDataRaw as q, type Quote as r, type SwapMcaPayloadRaw as s, type SwapLifecycleEvent as t, type SwapExecutionResult as u, type SwapHistoryRecordRaw as v, type ChainExecutor as w, type SwapBuild as x, type ExecuteSwapInput as y, type SwapInput as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhea-finance/cross-chain-aggregation-dex",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
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",