@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.
- package/README.md +148 -71
- package/dist/executors/aptos.d.mts +1 -1
- package/dist/executors/aptos.d.ts +1 -1
- package/dist/executors/aptos.js.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- package/dist/executors/zcash.mjs.map +1 -1
- package/dist/index.d.mts +40 -6
- package/dist/index.d.ts +40 -6
- package/dist/index.js +266 -47
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +265 -48
- package/dist/index.mjs.map +1 -1
- package/dist/{shared-DmMJXknE.d.mts → shared-COkGiqaz.d.mts} +30 -2
- package/dist/{shared-DmMJXknE.d.ts → shared-COkGiqaz.d.ts} +30 -2
- 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 {
|
|
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 {
|
|
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.
|
|
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",
|