@rhea-finance/cross-chain-aggregation-dex 2.0.1 → 2.0.2

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 (46) hide show
  1. package/README.md +535 -208
  2. package/dist/executors/aptos.d.mts +2 -2
  3. package/dist/executors/aptos.d.ts +2 -2
  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 +2 -2
  7. package/dist/executors/bitcoin.d.ts +2 -2
  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 +2 -2
  11. package/dist/executors/evm.d.ts +2 -2
  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 +2 -2
  15. package/dist/executors/near.d.ts +2 -2
  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 +2 -2
  19. package/dist/executors/solana.d.ts +2 -2
  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 +2 -2
  23. package/dist/executors/sui.d.ts +2 -2
  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 +2 -2
  27. package/dist/executors/tron.d.ts +2 -2
  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 +3 -3
  31. package/dist/executors/zcash.d.ts +3 -3
  32. package/dist/executors/zcash.js +2 -8
  33. package/dist/executors/zcash.js.map +1 -1
  34. package/dist/executors/zcash.mjs +2 -8
  35. package/dist/executors/zcash.mjs.map +1 -1
  36. package/dist/index.d.mts +2 -2
  37. package/dist/index.d.ts +2 -2
  38. package/dist/index.js +8 -15
  39. package/dist/index.js.map +1 -1
  40. package/dist/index.mjs +8 -15
  41. package/dist/index.mjs.map +1 -1
  42. package/dist/{registry-DRYUqs7T.d.mts → registry-DjohbPPm.d.mts} +2 -5
  43. package/dist/{registry-DRYUqs7T.d.ts → registry-DjohbPPm.d.ts} +2 -5
  44. package/dist/{shared-BdH3hWuP.d.ts → shared-BbfGrWrJ.d.ts} +2 -7
  45. package/dist/{shared-BqpFeosz.d.mts → shared-BxJ0H20s.d.mts} +2 -7
  46. package/package.json +1 -1
@@ -430,9 +430,6 @@ type SwapLifecycleEvent = {
430
430
  } | {
431
431
  type: "completed";
432
432
  executionId: string;
433
- } | {
434
- type: "requires-user-action";
435
- executionId: string;
436
433
  } | {
437
434
  type: "warning";
438
435
  executionId: string;
@@ -444,7 +441,7 @@ type SwapLifecycleEvent = {
444
441
  };
445
442
  interface SwapExecutionResult {
446
443
  executionId: string;
447
- status: "submitted" | "source-confirmed" | "processing" | "completed" | "failed" | "refunded" | "expired" | "requires-user-action";
444
+ status: "submitted" | "source-confirmed" | "processing" | "completed" | "failed" | "refunded" | "expired";
448
445
  router: string;
449
446
  txHash?: string;
450
447
  txHashes?: string[];
@@ -481,7 +478,7 @@ interface WaitForOrderInput extends OrderReference {
481
478
  declare function normalizeOrderStatus(raw: SwapOrderStatusDataRaw): OrderStatus;
482
479
 
483
480
  interface ChainExecutionResult {
484
- status: "submitted" | "source-confirmed" | "requires-user-action";
481
+ status: "submitted" | "source-confirmed";
485
482
  txHash?: string;
486
483
  txHashes?: string[];
487
484
  orderId?: string;
@@ -430,9 +430,6 @@ type SwapLifecycleEvent = {
430
430
  } | {
431
431
  type: "completed";
432
432
  executionId: string;
433
- } | {
434
- type: "requires-user-action";
435
- executionId: string;
436
433
  } | {
437
434
  type: "warning";
438
435
  executionId: string;
@@ -444,7 +441,7 @@ type SwapLifecycleEvent = {
444
441
  };
445
442
  interface SwapExecutionResult {
446
443
  executionId: string;
447
- status: "submitted" | "source-confirmed" | "processing" | "completed" | "failed" | "refunded" | "expired" | "requires-user-action";
444
+ status: "submitted" | "source-confirmed" | "processing" | "completed" | "failed" | "refunded" | "expired";
448
445
  router: string;
449
446
  txHash?: string;
450
447
  txHashes?: string[];
@@ -481,7 +478,7 @@ interface WaitForOrderInput extends OrderReference {
481
478
  declare function normalizeOrderStatus(raw: SwapOrderStatusDataRaw): OrderStatus;
482
479
 
483
480
  interface ChainExecutionResult {
484
- status: "submitted" | "source-confirmed" | "requires-user-action";
481
+ status: "submitted" | "source-confirmed";
485
482
  txHash?: string;
486
483
  txHashes?: string[];
487
484
  orderId?: string;
@@ -1,14 +1,9 @@
1
- import { M as MessageSignOptions } from './registry-DRYUqs7T.js';
1
+ import { M as MessageSignOptions } from './registry-DjohbPPm.js';
2
2
 
3
3
  interface TransactionSubmission {
4
4
  txHash: string;
5
5
  raw?: unknown;
6
6
  }
7
- interface TransferSubmission {
8
- txHash?: string;
9
- requiresUserAction?: boolean;
10
- raw?: unknown;
11
- }
12
7
  interface ExecutorErrorAdapter {
13
8
  isUserRejection?(error: unknown): boolean;
14
9
  /** Identity serialized as `mca.signer.identityKey` for MCA quotes. */
@@ -20,4 +15,4 @@ interface ExecutorErrorAdapter {
20
15
  signMessage?(message: string, options?: MessageSignOptions): Promise<string>;
21
16
  }
22
17
 
23
- export type { ExecutorErrorAdapter as E, TransactionSubmission as T, TransferSubmission as a };
18
+ export type { ExecutorErrorAdapter as E, TransactionSubmission as T };
@@ -1,14 +1,9 @@
1
- import { M as MessageSignOptions } from './registry-DRYUqs7T.mjs';
1
+ import { M as MessageSignOptions } from './registry-DjohbPPm.mjs';
2
2
 
3
3
  interface TransactionSubmission {
4
4
  txHash: string;
5
5
  raw?: unknown;
6
6
  }
7
- interface TransferSubmission {
8
- txHash?: string;
9
- requiresUserAction?: boolean;
10
- raw?: unknown;
11
- }
12
7
  interface ExecutorErrorAdapter {
13
8
  isUserRejection?(error: unknown): boolean;
14
9
  /** Identity serialized as `mca.signer.identityKey` for MCA quotes. */
@@ -20,4 +15,4 @@ interface ExecutorErrorAdapter {
20
15
  signMessage?(message: string, options?: MessageSignOptions): Promise<string>;
21
16
  }
22
17
 
23
- export type { ExecutorErrorAdapter as E, TransactionSubmission as T, TransferSubmission as a };
18
+ export type { ExecutorErrorAdapter as E, TransactionSubmission as T };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhea-finance/cross-chain-aggregation-dex",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
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",