@sip-protocol/sdk 0.5.1 → 0.6.1
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 +58 -0
- package/dist/TransportWebUSB-TQ7WZ4LE.mjs +3098 -0
- package/dist/browser.d.mts +4 -4
- package/dist/browser.d.ts +4 -4
- package/dist/browser.js +10133 -4664
- package/dist/browser.mjs +32 -1
- package/dist/chunk-7QZPORY5.mjs +15604 -0
- package/dist/chunk-C2NPCUAJ.mjs +17010 -0
- package/dist/chunk-FCVLFUIC.mjs +16699 -0
- package/dist/chunk-G5UHXECN.mjs +16340 -0
- package/dist/chunk-GEDEIZHJ.mjs +16798 -0
- package/dist/chunk-KBS3OMSZ.mjs +14737 -0
- package/dist/chunk-MTNYSNR7.mjs +16269 -0
- package/dist/chunk-O5PIB2EA.mjs +16698 -0
- package/dist/chunk-PCFM7FQO.mjs +17010 -0
- package/dist/chunk-QK464ARC.mjs +16946 -0
- package/dist/chunk-TK3FWQNC.mjs +14737 -0
- package/dist/chunk-UJCSKKID.mjs +30 -0
- package/dist/chunk-VNBMNGC3.mjs +16698 -0
- package/dist/chunk-W5TUELDQ.mjs +16947 -0
- package/dist/index-05W_S8A7.d.mts +9237 -0
- package/dist/index-C5ehlFhR.d.mts +9443 -0
- package/dist/index-CD_zShu-.d.ts +10870 -0
- package/dist/index-CNzhx-WH.d.mts +9316 -0
- package/dist/index-CQBYdLYy.d.mts +10976 -0
- package/dist/index-Cg9TYEPv.d.mts +11321 -0
- package/dist/index-CqSppS4i.d.ts +9237 -0
- package/dist/index-CqZJOO8C.d.mts +11323 -0
- package/dist/index-CywN9Bnp.d.ts +11321 -0
- package/dist/index-DBa_jiZF.d.mts +9606 -0
- package/dist/index-DHy5ZjCD.d.ts +10976 -0
- package/dist/index-DLNdSQFQ.d.ts +9316 -0
- package/dist/index-DfsVsmxu.d.ts +11323 -0
- package/dist/index-Ink8HnKW.d.ts +9606 -0
- package/dist/index-ObjwyVDX.d.mts +10870 -0
- package/dist/index-h7B23m5b.d.ts +9443 -0
- package/dist/index-m0xbSfmT.d.mts +11318 -0
- package/dist/index-rWLEgvhN.d.ts +11318 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10112 -4637
- package/dist/index.mjs +32 -1
- package/dist/noir-DKfEzWy9.d.mts +482 -0
- package/dist/noir-DKfEzWy9.d.ts +482 -0
- package/dist/proofs/noir.d.mts +1 -1
- package/dist/proofs/noir.d.ts +1 -1
- package/dist/proofs/noir.js +12 -3
- package/dist/proofs/noir.mjs +13 -3
- package/package.json +5 -3
- package/src/adapters/near-intents.ts +13 -3
- package/src/auction/index.ts +20 -0
- package/src/auction/sealed-bid.ts +1037 -0
- package/src/compliance/derivation.ts +13 -3
- package/src/compliance/reports.ts +5 -4
- package/src/cosmos/ibc-stealth.ts +2 -2
- package/src/cosmos/stealth.ts +2 -2
- package/src/crypto.ts +79 -9
- package/src/governance/index.ts +19 -0
- package/src/governance/private-vote.ts +1116 -0
- package/src/index.ts +50 -2
- package/src/intent.ts +227 -12
- package/src/nft/index.ts +27 -0
- package/src/nft/private-nft.ts +811 -0
- package/src/privacy.ts +88 -2
- package/src/proofs/browser-utils.ts +1 -7
- package/src/proofs/noir.ts +34 -7
- package/src/settlement/backends/direct-chain.ts +14 -3
- package/src/sip.ts +324 -25
- package/src/stealth.ts +120 -9
- package/src/types/browser.d.ts +67 -0
- package/src/validation.ts +4 -2
- package/src/wallet/bitcoin/adapter.ts +159 -15
- package/src/wallet/bitcoin/types.ts +340 -15
- package/src/wallet/cosmos/mock.ts +16 -12
- package/src/wallet/hardware/ledger.ts +83 -14
- package/src/wallet/hardware/types.ts +2 -0
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-
|
|
266
|
+
} from "./chunk-PCFM7FQO.mjs";
|
|
252
267
|
import {
|
|
253
268
|
fulfillment_proof_default,
|
|
254
269
|
funding_proof_default,
|
|
@@ -270,6 +285,7 @@ import {
|
|
|
270
285
|
isSIPError,
|
|
271
286
|
wrapError
|
|
272
287
|
} from "./chunk-HGU6HZRC.mjs";
|
|
288
|
+
import "./chunk-UJCSKKID.mjs";
|
|
273
289
|
|
|
274
290
|
// src/proofs/browser.ts
|
|
275
291
|
import { Noir } from "@noir-lang/noir_js";
|
|
@@ -1616,6 +1632,8 @@ export {
|
|
|
1616
1632
|
PaymentBuilder,
|
|
1617
1633
|
PaymentStatus,
|
|
1618
1634
|
PrivacyLevel,
|
|
1635
|
+
PrivateNFT,
|
|
1636
|
+
PrivateVoting,
|
|
1619
1637
|
ProofError,
|
|
1620
1638
|
ProofGenerationError,
|
|
1621
1639
|
ProofNotImplementedError,
|
|
@@ -1628,10 +1646,12 @@ export {
|
|
|
1628
1646
|
STABLECOIN_ADDRESSES,
|
|
1629
1647
|
STABLECOIN_DECIMALS,
|
|
1630
1648
|
STABLECOIN_INFO,
|
|
1649
|
+
SealedBidAuction,
|
|
1631
1650
|
SettlementRegistry,
|
|
1632
1651
|
SettlementRegistryError,
|
|
1633
1652
|
SmartRouter,
|
|
1634
1653
|
SolanaWalletAdapter,
|
|
1654
|
+
SuiStealthService,
|
|
1635
1655
|
SwapStatus,
|
|
1636
1656
|
ThresholdViewingKey,
|
|
1637
1657
|
Treasury,
|
|
@@ -1657,6 +1677,7 @@ export {
|
|
|
1657
1677
|
checkEd25519StealthAddress,
|
|
1658
1678
|
checkMobileWASMCompatibility,
|
|
1659
1679
|
checkStealthAddress,
|
|
1680
|
+
checkSuiStealthAddress,
|
|
1660
1681
|
commit,
|
|
1661
1682
|
commitZero,
|
|
1662
1683
|
computeAttestationHash,
|
|
@@ -1676,8 +1697,11 @@ export {
|
|
|
1676
1697
|
createNEARIntentsAdapter,
|
|
1677
1698
|
createNEARIntentsBackend,
|
|
1678
1699
|
createOracleRegistry,
|
|
1700
|
+
createPrivateOwnership,
|
|
1701
|
+
createPrivateVoting,
|
|
1679
1702
|
createProductionSIP,
|
|
1680
1703
|
createSIP,
|
|
1704
|
+
createSealedBidAuction,
|
|
1681
1705
|
createShieldedIntent,
|
|
1682
1706
|
createShieldedPayment,
|
|
1683
1707
|
createSmartRouter,
|
|
@@ -1698,6 +1722,7 @@ export {
|
|
|
1698
1722
|
deriveEd25519StealthPrivateKey,
|
|
1699
1723
|
deriveOracleId,
|
|
1700
1724
|
deriveStealthPrivateKey,
|
|
1725
|
+
deriveSuiStealthPrivateKey,
|
|
1701
1726
|
deriveViewingKey,
|
|
1702
1727
|
deserializeAttestationMessage,
|
|
1703
1728
|
deserializeIntent,
|
|
@@ -1709,6 +1734,7 @@ export {
|
|
|
1709
1734
|
ed25519PublicKeyToAptosAddress,
|
|
1710
1735
|
ed25519PublicKeyToNearAddress,
|
|
1711
1736
|
ed25519PublicKeyToSolanaAddress,
|
|
1737
|
+
ed25519PublicKeyToSuiAddress,
|
|
1712
1738
|
encodeStealthMetaAddress,
|
|
1713
1739
|
encryptForViewing,
|
|
1714
1740
|
featureNotSupportedError,
|
|
@@ -1726,6 +1752,7 @@ export {
|
|
|
1726
1752
|
generateRandomBytes,
|
|
1727
1753
|
generateStealthAddress,
|
|
1728
1754
|
generateStealthMetaAddress,
|
|
1755
|
+
generateSuiStealthAddress,
|
|
1729
1756
|
generateViewingKey,
|
|
1730
1757
|
getActiveOracles,
|
|
1731
1758
|
getAvailableTransports,
|
|
@@ -1785,10 +1812,13 @@ export {
|
|
|
1785
1812
|
isValidSlippage,
|
|
1786
1813
|
isValidSolanaAddress,
|
|
1787
1814
|
isValidStealthMetaAddress,
|
|
1815
|
+
isValidSuiAddress,
|
|
1788
1816
|
isValidTaprootAddress,
|
|
1789
1817
|
nearAddressToEd25519PublicKey,
|
|
1790
1818
|
normalizeAddress,
|
|
1819
|
+
normalizeSuiAddress,
|
|
1791
1820
|
notConnectedError,
|
|
1821
|
+
proveOwnership,
|
|
1792
1822
|
publicKeyToEthAddress,
|
|
1793
1823
|
registerWallet,
|
|
1794
1824
|
removeOracle,
|
|
@@ -1832,6 +1862,7 @@ export {
|
|
|
1832
1862
|
verifyCommitment,
|
|
1833
1863
|
verifyOpening,
|
|
1834
1864
|
verifyOracleSignature,
|
|
1865
|
+
verifyOwnership,
|
|
1835
1866
|
walletRegistry,
|
|
1836
1867
|
withSecureBuffer,
|
|
1837
1868
|
withSecureBufferSync,
|