@sip-protocol/sdk 0.6.0 → 0.6.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 (63) hide show
  1. package/README.md +58 -0
  2. package/dist/browser.d.mts +4 -4
  3. package/dist/browser.d.ts +4 -4
  4. package/dist/browser.js +2752 -448
  5. package/dist/browser.mjs +31 -1
  6. package/dist/chunk-7QZPORY5.mjs +15604 -0
  7. package/dist/chunk-C2NPCUAJ.mjs +17010 -0
  8. package/dist/chunk-FCVLFUIC.mjs +16699 -0
  9. package/dist/chunk-G5UHXECN.mjs +16340 -0
  10. package/dist/chunk-GEDEIZHJ.mjs +16798 -0
  11. package/dist/chunk-GOOEOAMV.mjs +17026 -0
  12. package/dist/chunk-MTNYSNR7.mjs +16269 -0
  13. package/dist/chunk-O5PIB2EA.mjs +16698 -0
  14. package/dist/chunk-PCFM7FQO.mjs +17010 -0
  15. package/dist/chunk-QK464ARC.mjs +16946 -0
  16. package/dist/chunk-VNBMNGC3.mjs +16698 -0
  17. package/dist/chunk-W5TUELDQ.mjs +16947 -0
  18. package/dist/index-CD_zShu-.d.ts +10870 -0
  19. package/dist/index-CQBYdLYy.d.mts +10976 -0
  20. package/dist/index-Cg9TYEPv.d.mts +11321 -0
  21. package/dist/index-CqZJOO8C.d.mts +11323 -0
  22. package/dist/index-CywN9Bnp.d.ts +11321 -0
  23. package/dist/index-DHy5ZjCD.d.ts +10976 -0
  24. package/dist/index-DfsVsmxu.d.ts +11323 -0
  25. package/dist/index-ObjwyVDX.d.mts +10870 -0
  26. package/dist/index-m0xbSfmT.d.mts +11318 -0
  27. package/dist/index-rWLEgvhN.d.ts +11318 -0
  28. package/dist/index.d.mts +3 -3
  29. package/dist/index.d.ts +3 -3
  30. package/dist/index.js +2737 -427
  31. package/dist/index.mjs +31 -1
  32. package/dist/noir-DKfEzWy9.d.mts +482 -0
  33. package/dist/noir-DKfEzWy9.d.ts +482 -0
  34. package/dist/proofs/noir.d.mts +1 -1
  35. package/dist/proofs/noir.d.ts +1 -1
  36. package/dist/proofs/noir.js +12 -3
  37. package/dist/proofs/noir.mjs +12 -3
  38. package/package.json +16 -14
  39. package/src/adapters/near-intents.ts +13 -3
  40. package/src/auction/index.ts +20 -0
  41. package/src/auction/sealed-bid.ts +1037 -0
  42. package/src/compliance/derivation.ts +13 -3
  43. package/src/compliance/reports.ts +5 -4
  44. package/src/cosmos/ibc-stealth.ts +2 -2
  45. package/src/cosmos/stealth.ts +2 -2
  46. package/src/governance/index.ts +19 -0
  47. package/src/governance/private-vote.ts +1116 -0
  48. package/src/index.ts +50 -2
  49. package/src/intent.ts +145 -8
  50. package/src/nft/index.ts +27 -0
  51. package/src/nft/private-nft.ts +811 -0
  52. package/src/proofs/browser-utils.ts +1 -7
  53. package/src/proofs/noir.ts +34 -7
  54. package/src/settlement/backends/direct-chain.ts +14 -3
  55. package/src/stealth.ts +31 -13
  56. package/src/types/browser.d.ts +67 -0
  57. package/src/validation.ts +4 -2
  58. package/src/wallet/bitcoin/adapter.ts +159 -15
  59. package/src/wallet/bitcoin/types.ts +340 -15
  60. package/src/wallet/cosmos/mock.ts +16 -12
  61. package/src/wallet/hardware/ledger.ts +82 -12
  62. package/src/wallet/hardware/types.ts +2 -0
  63. package/LICENSE +0 -21
package/dist/browser.mjs CHANGED
@@ -39,6 +39,8 @@ import {
39
39
  PaymentBuilder,
40
40
  PaymentStatus,
41
41
  PrivacyLevel,
42
+ PrivateNFT,
43
+ PrivateVoting,
42
44
  ProposalStatus,
43
45
  ReportStatus,
44
46
  SIP,
@@ -46,10 +48,12 @@ import {
46
48
  STABLECOIN_ADDRESSES,
47
49
  STABLECOIN_DECIMALS,
48
50
  STABLECOIN_INFO,
51
+ SealedBidAuction,
49
52
  SettlementRegistry,
50
53
  SettlementRegistryError,
51
54
  SmartRouter,
52
55
  SolanaWalletAdapter,
56
+ SuiStealthService,
53
57
  SwapStatus,
54
58
  ThresholdViewingKey,
55
59
  Treasury,
@@ -73,6 +77,7 @@ import {
73
77
  checkEd25519StealthAddress,
74
78
  checkMobileWASMCompatibility,
75
79
  checkStealthAddress,
80
+ checkSuiStealthAddress,
76
81
  commit,
77
82
  commitZero,
78
83
  computeAttestationHash,
@@ -92,8 +97,11 @@ import {
92
97
  createNEARIntentsAdapter,
93
98
  createNEARIntentsBackend,
94
99
  createOracleRegistry,
100
+ createPrivateOwnership,
101
+ createPrivateVoting,
95
102
  createProductionSIP,
96
103
  createSIP,
104
+ createSealedBidAuction,
97
105
  createShieldedIntent,
98
106
  createShieldedPayment,
99
107
  createSmartRouter,
@@ -113,6 +121,7 @@ import {
113
121
  deriveEd25519StealthPrivateKey,
114
122
  deriveOracleId,
115
123
  deriveStealthPrivateKey,
124
+ deriveSuiStealthPrivateKey,
116
125
  deriveViewingKey,
117
126
  deserializeAttestationMessage,
118
127
  deserializeIntent,
@@ -124,6 +133,7 @@ import {
124
133
  ed25519PublicKeyToAptosAddress,
125
134
  ed25519PublicKeyToNearAddress,
126
135
  ed25519PublicKeyToSolanaAddress,
136
+ ed25519PublicKeyToSuiAddress,
127
137
  encodeStealthMetaAddress,
128
138
  encryptForViewing,
129
139
  featureNotSupportedError,
@@ -141,6 +151,7 @@ import {
141
151
  generateRandomBytes,
142
152
  generateStealthAddress,
143
153
  generateStealthMetaAddress,
154
+ generateSuiStealthAddress,
144
155
  generateViewingKey,
145
156
  getActiveOracles,
146
157
  getAvailableTransports,
@@ -198,10 +209,13 @@ import {
198
209
  isValidSlippage,
199
210
  isValidSolanaAddress,
200
211
  isValidStealthMetaAddress,
212
+ isValidSuiAddress,
201
213
  isValidTaprootAddress,
202
214
  nearAddressToEd25519PublicKey,
203
215
  normalizeAddress,
216
+ normalizeSuiAddress,
204
217
  notConnectedError,
218
+ proveOwnership,
205
219
  publicKeyToEthAddress,
206
220
  registerWallet,
207
221
  removeOracle,
@@ -245,10 +259,11 @@ import {
245
259
  verifyCommitment,
246
260
  verifyOpening,
247
261
  verifyOracleSignature,
262
+ verifyOwnership,
248
263
  walletRegistry,
249
264
  withSecureBuffer,
250
265
  withSecureBufferSync
251
- } from "./chunk-KBS3OMSZ.mjs";
266
+ } from "./chunk-GOOEOAMV.mjs";
252
267
  import {
253
268
  fulfillment_proof_default,
254
269
  funding_proof_default,
@@ -1617,6 +1632,8 @@ export {
1617
1632
  PaymentBuilder,
1618
1633
  PaymentStatus,
1619
1634
  PrivacyLevel,
1635
+ PrivateNFT,
1636
+ PrivateVoting,
1620
1637
  ProofError,
1621
1638
  ProofGenerationError,
1622
1639
  ProofNotImplementedError,
@@ -1629,10 +1646,12 @@ export {
1629
1646
  STABLECOIN_ADDRESSES,
1630
1647
  STABLECOIN_DECIMALS,
1631
1648
  STABLECOIN_INFO,
1649
+ SealedBidAuction,
1632
1650
  SettlementRegistry,
1633
1651
  SettlementRegistryError,
1634
1652
  SmartRouter,
1635
1653
  SolanaWalletAdapter,
1654
+ SuiStealthService,
1636
1655
  SwapStatus,
1637
1656
  ThresholdViewingKey,
1638
1657
  Treasury,
@@ -1658,6 +1677,7 @@ export {
1658
1677
  checkEd25519StealthAddress,
1659
1678
  checkMobileWASMCompatibility,
1660
1679
  checkStealthAddress,
1680
+ checkSuiStealthAddress,
1661
1681
  commit,
1662
1682
  commitZero,
1663
1683
  computeAttestationHash,
@@ -1677,8 +1697,11 @@ export {
1677
1697
  createNEARIntentsAdapter,
1678
1698
  createNEARIntentsBackend,
1679
1699
  createOracleRegistry,
1700
+ createPrivateOwnership,
1701
+ createPrivateVoting,
1680
1702
  createProductionSIP,
1681
1703
  createSIP,
1704
+ createSealedBidAuction,
1682
1705
  createShieldedIntent,
1683
1706
  createShieldedPayment,
1684
1707
  createSmartRouter,
@@ -1699,6 +1722,7 @@ export {
1699
1722
  deriveEd25519StealthPrivateKey,
1700
1723
  deriveOracleId,
1701
1724
  deriveStealthPrivateKey,
1725
+ deriveSuiStealthPrivateKey,
1702
1726
  deriveViewingKey,
1703
1727
  deserializeAttestationMessage,
1704
1728
  deserializeIntent,
@@ -1710,6 +1734,7 @@ export {
1710
1734
  ed25519PublicKeyToAptosAddress,
1711
1735
  ed25519PublicKeyToNearAddress,
1712
1736
  ed25519PublicKeyToSolanaAddress,
1737
+ ed25519PublicKeyToSuiAddress,
1713
1738
  encodeStealthMetaAddress,
1714
1739
  encryptForViewing,
1715
1740
  featureNotSupportedError,
@@ -1727,6 +1752,7 @@ export {
1727
1752
  generateRandomBytes,
1728
1753
  generateStealthAddress,
1729
1754
  generateStealthMetaAddress,
1755
+ generateSuiStealthAddress,
1730
1756
  generateViewingKey,
1731
1757
  getActiveOracles,
1732
1758
  getAvailableTransports,
@@ -1786,10 +1812,13 @@ export {
1786
1812
  isValidSlippage,
1787
1813
  isValidSolanaAddress,
1788
1814
  isValidStealthMetaAddress,
1815
+ isValidSuiAddress,
1789
1816
  isValidTaprootAddress,
1790
1817
  nearAddressToEd25519PublicKey,
1791
1818
  normalizeAddress,
1819
+ normalizeSuiAddress,
1792
1820
  notConnectedError,
1821
+ proveOwnership,
1793
1822
  publicKeyToEthAddress,
1794
1823
  registerWallet,
1795
1824
  removeOracle,
@@ -1833,6 +1862,7 @@ export {
1833
1862
  verifyCommitment,
1834
1863
  verifyOpening,
1835
1864
  verifyOracleSignature,
1865
+ verifyOwnership,
1836
1866
  walletRegistry,
1837
1867
  withSecureBuffer,
1838
1868
  withSecureBufferSync,