@rhea-finance/cross-chain-aggregation-dex 2.1.6 → 2.1.8
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/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 +8 -2
- package/dist/executors/tron.d.ts +8 -2
- package/dist/executors/tron.js +157 -39
- package/dist/executors/tron.js.map +1 -1
- package/dist/executors/tron.mjs +157 -39
- 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 +175 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +173 -14
- package/dist/index.mjs.map +1 -1
- package/dist/{shared-DpC8G2U4.d.mts → shared-v1w63b8X.d.mts} +20 -1
- package/dist/{shared-DpC8G2U4.d.ts → shared-v1w63b8X.d.ts} +20 -1
- package/package.json +1 -1
|
@@ -332,6 +332,18 @@ interface NearTransaction {
|
|
|
332
332
|
receiverId: string;
|
|
333
333
|
actions: unknown[];
|
|
334
334
|
}
|
|
335
|
+
/** Unsigned Tron transaction as returned by node / wallet adapters (visible:false hex form). */
|
|
336
|
+
interface TronUnsignedTransaction {
|
|
337
|
+
txID: string;
|
|
338
|
+
raw_data: Record<string, unknown>;
|
|
339
|
+
raw_data_hex: string;
|
|
340
|
+
visible?: boolean;
|
|
341
|
+
/** Preserve router-specific fields (payload, fee metadata, etc.). */
|
|
342
|
+
[key: string]: unknown;
|
|
343
|
+
}
|
|
344
|
+
interface TronApproval {
|
|
345
|
+
transaction: TronUnsignedTransaction;
|
|
346
|
+
}
|
|
335
347
|
interface OrderReference {
|
|
336
348
|
/** Preferred status identifier returned by POST /api/swap/report. */
|
|
337
349
|
recordId?: string;
|
|
@@ -393,6 +405,13 @@ type SwapExecution = {
|
|
|
393
405
|
depositAddress: string;
|
|
394
406
|
tokenAddress?: string;
|
|
395
407
|
standard?: string;
|
|
408
|
+
} | {
|
|
409
|
+
/** RHEA / contract-call builds: unsigned TriggerSmartContract (+ optional TRC20 approve). */
|
|
410
|
+
kind: "tron-transaction";
|
|
411
|
+
chain: ChainRef;
|
|
412
|
+
format: string;
|
|
413
|
+
transaction: TronUnsignedTransaction;
|
|
414
|
+
approval?: TronApproval;
|
|
396
415
|
} | {
|
|
397
416
|
kind: "bitcoin-transfer";
|
|
398
417
|
chain: ChainRef;
|
|
@@ -656,4 +675,4 @@ interface ExecutorErrorAdapter {
|
|
|
656
675
|
signMessage?(message: string, options?: MessageSignOptions): Promise<string>;
|
|
657
676
|
}
|
|
658
677
|
|
|
659
|
-
export { type ExecutionContext as $, type AssetRef as A, type BaseUnitAmount as B, type ChainRef as C, type OrderReference as D, ExecutorRegistry as E, type OrderStatusResult as F, type WaitForOrderInput as G, type SwapHistoryAuthProofRaw as H, type SwapMcaRelayerRequestRaw as I, type SwapApiResponse as J, type SwapApiTokenMetaRaw as K, type SwapTokenListRowRaw as L, type SwapMcaSignerPayloadRaw as M, type NearTransaction as N, type OrderPollingOptions as O, type SwapSigningRequestRaw as P, type QuoteRequest as Q, type SwapBuildApproveRaw as R, type SwapQuoteRequestRaw as S, type TransactionConfirmation as T, type SwapHistoryWalletChainFamilyRaw as U, type SwapWarning as V, type WaitMode as W, type SignRequestPreview as X, type OrderStatus as Y, normalizeOrderStatus as Z, type ChainExecutionResult as _, type SwapQuoteDataRaw as a, type MessageSignOptions as a0, type ExecutorIdentityProvider as a1, type ExecutorMessageSigner as a2, assertBaseUnitAmount as a3, type EvmTx as a4, type EvmApproval as a5, type EvmSigningRequest as a6, type SolanaMetadata as a7, type
|
|
678
|
+
export { type ExecutionContext as $, type AssetRef as A, type BaseUnitAmount as B, type ChainRef as C, type OrderReference as D, ExecutorRegistry as E, type OrderStatusResult as F, type WaitForOrderInput as G, type SwapHistoryAuthProofRaw as H, type SwapMcaRelayerRequestRaw as I, type SwapApiResponse as J, type SwapApiTokenMetaRaw as K, type SwapTokenListRowRaw as L, type SwapMcaSignerPayloadRaw as M, type NearTransaction as N, type OrderPollingOptions as O, type SwapSigningRequestRaw as P, type QuoteRequest as Q, type SwapBuildApproveRaw as R, type SwapQuoteRequestRaw as S, type TransactionConfirmation as T, type SwapHistoryWalletChainFamilyRaw as U, type SwapWarning as V, type WaitMode as W, type SignRequestPreview as X, type OrderStatus as Y, normalizeOrderStatus as Z, type ChainExecutionResult as _, type SwapQuoteDataRaw as a, type MessageSignOptions as a0, type ExecutorIdentityProvider as a1, type ExecutorMessageSigner as a2, assertBaseUnitAmount as a3, type EvmTx as a4, type EvmApproval as a5, type EvmSigningRequest as a6, type SolanaMetadata as a7, type TronUnsignedTransaction as a8, type TronApproval as a9, type DepositInfo as aa, type SwapReportContext as ab, type SwapExecution as ac, type RouteSummary as ad, type BuildContext as ae, type ExecutorErrorAdapter as af, type TransactionSubmission as ag, 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 };
|
|
@@ -332,6 +332,18 @@ interface NearTransaction {
|
|
|
332
332
|
receiverId: string;
|
|
333
333
|
actions: unknown[];
|
|
334
334
|
}
|
|
335
|
+
/** Unsigned Tron transaction as returned by node / wallet adapters (visible:false hex form). */
|
|
336
|
+
interface TronUnsignedTransaction {
|
|
337
|
+
txID: string;
|
|
338
|
+
raw_data: Record<string, unknown>;
|
|
339
|
+
raw_data_hex: string;
|
|
340
|
+
visible?: boolean;
|
|
341
|
+
/** Preserve router-specific fields (payload, fee metadata, etc.). */
|
|
342
|
+
[key: string]: unknown;
|
|
343
|
+
}
|
|
344
|
+
interface TronApproval {
|
|
345
|
+
transaction: TronUnsignedTransaction;
|
|
346
|
+
}
|
|
335
347
|
interface OrderReference {
|
|
336
348
|
/** Preferred status identifier returned by POST /api/swap/report. */
|
|
337
349
|
recordId?: string;
|
|
@@ -393,6 +405,13 @@ type SwapExecution = {
|
|
|
393
405
|
depositAddress: string;
|
|
394
406
|
tokenAddress?: string;
|
|
395
407
|
standard?: string;
|
|
408
|
+
} | {
|
|
409
|
+
/** RHEA / contract-call builds: unsigned TriggerSmartContract (+ optional TRC20 approve). */
|
|
410
|
+
kind: "tron-transaction";
|
|
411
|
+
chain: ChainRef;
|
|
412
|
+
format: string;
|
|
413
|
+
transaction: TronUnsignedTransaction;
|
|
414
|
+
approval?: TronApproval;
|
|
396
415
|
} | {
|
|
397
416
|
kind: "bitcoin-transfer";
|
|
398
417
|
chain: ChainRef;
|
|
@@ -656,4 +675,4 @@ interface ExecutorErrorAdapter {
|
|
|
656
675
|
signMessage?(message: string, options?: MessageSignOptions): Promise<string>;
|
|
657
676
|
}
|
|
658
677
|
|
|
659
|
-
export { type ExecutionContext as $, type AssetRef as A, type BaseUnitAmount as B, type ChainRef as C, type OrderReference as D, ExecutorRegistry as E, type OrderStatusResult as F, type WaitForOrderInput as G, type SwapHistoryAuthProofRaw as H, type SwapMcaRelayerRequestRaw as I, type SwapApiResponse as J, type SwapApiTokenMetaRaw as K, type SwapTokenListRowRaw as L, type SwapMcaSignerPayloadRaw as M, type NearTransaction as N, type OrderPollingOptions as O, type SwapSigningRequestRaw as P, type QuoteRequest as Q, type SwapBuildApproveRaw as R, type SwapQuoteRequestRaw as S, type TransactionConfirmation as T, type SwapHistoryWalletChainFamilyRaw as U, type SwapWarning as V, type WaitMode as W, type SignRequestPreview as X, type OrderStatus as Y, normalizeOrderStatus as Z, type ChainExecutionResult as _, type SwapQuoteDataRaw as a, type MessageSignOptions as a0, type ExecutorIdentityProvider as a1, type ExecutorMessageSigner as a2, assertBaseUnitAmount as a3, type EvmTx as a4, type EvmApproval as a5, type EvmSigningRequest as a6, type SolanaMetadata as a7, type
|
|
678
|
+
export { type ExecutionContext as $, type AssetRef as A, type BaseUnitAmount as B, type ChainRef as C, type OrderReference as D, ExecutorRegistry as E, type OrderStatusResult as F, type WaitForOrderInput as G, type SwapHistoryAuthProofRaw as H, type SwapMcaRelayerRequestRaw as I, type SwapApiResponse as J, type SwapApiTokenMetaRaw as K, type SwapTokenListRowRaw as L, type SwapMcaSignerPayloadRaw as M, type NearTransaction as N, type OrderPollingOptions as O, type SwapSigningRequestRaw as P, type QuoteRequest as Q, type SwapBuildApproveRaw as R, type SwapQuoteRequestRaw as S, type TransactionConfirmation as T, type SwapHistoryWalletChainFamilyRaw as U, type SwapWarning as V, type WaitMode as W, type SignRequestPreview as X, type OrderStatus as Y, normalizeOrderStatus as Z, type ChainExecutionResult as _, type SwapQuoteDataRaw as a, type MessageSignOptions as a0, type ExecutorIdentityProvider as a1, type ExecutorMessageSigner as a2, assertBaseUnitAmount as a3, type EvmTx as a4, type EvmApproval as a5, type EvmSigningRequest as a6, type SolanaMetadata as a7, type TronUnsignedTransaction as a8, type TronApproval as a9, type DepositInfo as aa, type SwapReportContext as ab, type SwapExecution as ac, type RouteSummary as ad, type BuildContext as ae, type ExecutorErrorAdapter as af, type TransactionSubmission as ag, 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.1.
|
|
3
|
+
"version": "2.1.8",
|
|
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",
|