@sip-protocol/sdk 0.2.8 → 0.2.10

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 (39) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +349 -0
  3. package/dist/browser.d.mts +100 -2
  4. package/dist/browser.d.ts +100 -2
  5. package/dist/browser.js +1362 -268
  6. package/dist/browser.mjs +502 -16
  7. package/dist/{chunk-UPTISVCY.mjs → chunk-AV37IZST.mjs} +731 -15
  8. package/dist/{chunk-VITVG25F.mjs → chunk-XLEPIR2P.mjs} +2 -100
  9. package/dist/index-BFOKTz2z.d.ts +6062 -0
  10. package/dist/index-CAhjA4kh.d.mts +6062 -0
  11. package/dist/index.d.mts +2 -5609
  12. package/dist/index.d.ts +2 -5609
  13. package/dist/index.js +588 -154
  14. package/dist/index.mjs +5 -1
  15. package/dist/{noir-BHQtFvRk.d.mts → noir-BTyLXLlZ.d.mts} +1 -1
  16. package/dist/{noir-BHQtFvRk.d.ts → noir-BTyLXLlZ.d.ts} +1 -1
  17. package/dist/proofs/noir.d.mts +1 -1
  18. package/dist/proofs/noir.d.ts +1 -1
  19. package/dist/proofs/noir.js +11 -112
  20. package/dist/proofs/noir.mjs +10 -13
  21. package/package.json +16 -16
  22. package/src/browser.ts +23 -0
  23. package/src/index.ts +12 -0
  24. package/src/proofs/browser-utils.ts +389 -0
  25. package/src/proofs/browser.ts +246 -19
  26. package/src/proofs/circuits/funding_proof.json +1 -1
  27. package/src/proofs/noir.ts +14 -14
  28. package/src/proofs/worker.ts +426 -0
  29. package/src/zcash/bridge.ts +738 -0
  30. package/src/zcash/index.ts +36 -1
  31. package/src/zcash/swap-service.ts +793 -0
  32. package/dist/chunk-4VJHI66K.mjs +0 -12120
  33. package/dist/chunk-5BAS4D44.mjs +0 -10283
  34. package/dist/chunk-6WOV2YNG.mjs +0 -10179
  35. package/dist/chunk-DU7LQDD2.mjs +0 -10148
  36. package/dist/chunk-MR7HRCRS.mjs +0 -10165
  37. package/dist/chunk-NDGUWOOZ.mjs +0 -10157
  38. package/dist/chunk-O4Y2ZUDL.mjs +0 -12721
  39. package/dist/chunk-VXSHK7US.mjs +0 -10158
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * Zcash Module
3
3
  *
4
- * Provides Zcash RPC client and shielded transaction support.
4
+ * Provides Zcash RPC client, shielded transaction support,
5
+ * and cross-chain swap service for ETH/SOL → ZEC routes.
5
6
  */
6
7
 
7
8
  // RPC Client
@@ -22,6 +23,40 @@ export type {
22
23
  ExportedViewingKey,
23
24
  } from './shielded-service'
24
25
 
26
+ // Swap Service (ETH/SOL → ZEC)
27
+ export {
28
+ ZcashSwapService,
29
+ createZcashSwapService,
30
+ } from './swap-service'
31
+
32
+ export type {
33
+ ZcashSwapServiceConfig,
34
+ ZcashSwapSourceChain,
35
+ ZcashSwapSourceToken,
36
+ ZcashQuoteParams,
37
+ ZcashQuote,
38
+ ZcashSwapParams,
39
+ ZcashSwapResult,
40
+ ZcashSwapStatus,
41
+ BridgeProvider,
42
+ BridgeQuoteParams,
43
+ BridgeQuote,
44
+ BridgeSwapParams,
45
+ BridgeSwapResult,
46
+ PriceFeed,
47
+ } from './swap-service'
48
+
49
+ // Bridge Module (ETH/SOL → ZEC with shielding)
50
+ export { ZcashBridge, createZcashBridge } from './bridge'
51
+
52
+ export type {
53
+ ZcashBridgeConfig,
54
+ BridgeRoute,
55
+ BridgeParams,
56
+ BridgeResult,
57
+ BridgeStatus,
58
+ } from './bridge'
59
+
25
60
  // Re-export types from types package
26
61
  export type {
27
62
  ZcashConfig,