@sip-protocol/sdk 0.4.0 → 0.5.0
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/browser.d.mts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +1866 -153
- package/dist/browser.mjs +14 -2
- package/dist/chunk-DMHBKRWV.mjs +14712 -0
- package/dist/chunk-HGU6HZRC.mjs +231 -0
- package/dist/chunk-J4Q4NJ2U.mjs +13544 -0
- package/dist/chunk-W2B7T6WU.mjs +14714 -0
- package/dist/index-5jAdWMA-.d.ts +8973 -0
- package/dist/index-B9Vkpaao.d.mts +8973 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1851 -138
- package/dist/index.mjs +14 -2
- package/dist/proofs/noir.mjs +1 -1
- package/package.json +1 -1
- package/src/compliance/compliance-manager.ts +87 -0
- package/src/compliance/conditional-threshold.ts +379 -0
- package/src/compliance/conditional.ts +382 -0
- package/src/compliance/derivation.ts +489 -0
- package/src/compliance/index.ts +50 -8
- package/src/compliance/pdf.ts +365 -0
- package/src/compliance/reports.ts +644 -0
- package/src/compliance/threshold.ts +529 -0
- package/src/compliance/types.ts +223 -0
- package/src/errors.ts +8 -0
- package/src/index.ts +29 -1
package/dist/browser.mjs
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ATTESTATION_VERSION,
|
|
3
3
|
AptosStealthService,
|
|
4
|
+
AuditorKeyDerivation,
|
|
5
|
+
AuditorType,
|
|
4
6
|
BaseWalletAdapter,
|
|
5
7
|
CHAIN_NUMERIC_IDS,
|
|
6
8
|
CHAIN_PREFIXES,
|
|
7
9
|
ComplianceManager,
|
|
10
|
+
ComplianceReporter,
|
|
11
|
+
ConditionalDisclosure,
|
|
8
12
|
CosmosStealthService,
|
|
9
13
|
DEFAULT_THRESHOLD,
|
|
10
14
|
DEFAULT_TOTAL_ORACLES,
|
|
@@ -47,6 +51,7 @@ import {
|
|
|
47
51
|
SmartRouter,
|
|
48
52
|
SolanaWalletAdapter,
|
|
49
53
|
SwapStatus,
|
|
54
|
+
ThresholdViewingKey,
|
|
50
55
|
Treasury,
|
|
51
56
|
TrezorWalletAdapter,
|
|
52
57
|
WalletError,
|
|
@@ -132,6 +137,7 @@ import {
|
|
|
132
137
|
generateEd25519StealthAddress,
|
|
133
138
|
generateEd25519StealthMetaAddress,
|
|
134
139
|
generateIntentId,
|
|
140
|
+
generatePdfReport,
|
|
135
141
|
generateRandomBytes,
|
|
136
142
|
generateStealthAddress,
|
|
137
143
|
generateStealthMetaAddress,
|
|
@@ -242,7 +248,7 @@ import {
|
|
|
242
248
|
walletRegistry,
|
|
243
249
|
withSecureBuffer,
|
|
244
250
|
withSecureBufferSync
|
|
245
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-DMHBKRWV.mjs";
|
|
246
252
|
import {
|
|
247
253
|
fulfillment_proof_default,
|
|
248
254
|
funding_proof_default,
|
|
@@ -263,7 +269,7 @@ import {
|
|
|
263
269
|
hasErrorCode,
|
|
264
270
|
isSIPError,
|
|
265
271
|
wrapError
|
|
266
|
-
} from "./chunk-
|
|
272
|
+
} from "./chunk-HGU6HZRC.mjs";
|
|
267
273
|
|
|
268
274
|
// src/proofs/browser.ts
|
|
269
275
|
import { Noir } from "@noir-lang/noir_js";
|
|
@@ -1566,11 +1572,15 @@ var ProofWorker = class _ProofWorker {
|
|
|
1566
1572
|
export {
|
|
1567
1573
|
ATTESTATION_VERSION,
|
|
1568
1574
|
AptosStealthService,
|
|
1575
|
+
AuditorKeyDerivation,
|
|
1576
|
+
AuditorType,
|
|
1569
1577
|
BaseWalletAdapter,
|
|
1570
1578
|
BrowserNoirProvider,
|
|
1571
1579
|
CHAIN_NUMERIC_IDS,
|
|
1572
1580
|
CHAIN_PREFIXES as COSMOS_CHAIN_PREFIXES,
|
|
1573
1581
|
ComplianceManager,
|
|
1582
|
+
ComplianceReporter,
|
|
1583
|
+
ConditionalDisclosure,
|
|
1574
1584
|
CosmosStealthService,
|
|
1575
1585
|
CryptoError,
|
|
1576
1586
|
DEFAULT_THRESHOLD,
|
|
@@ -1623,6 +1633,7 @@ export {
|
|
|
1623
1633
|
SmartRouter,
|
|
1624
1634
|
SolanaWalletAdapter,
|
|
1625
1635
|
SwapStatus,
|
|
1636
|
+
ThresholdViewingKey,
|
|
1626
1637
|
Treasury,
|
|
1627
1638
|
TrezorWalletAdapter,
|
|
1628
1639
|
ValidationError,
|
|
@@ -1711,6 +1722,7 @@ export {
|
|
|
1711
1722
|
generateEd25519StealthAddress,
|
|
1712
1723
|
generateEd25519StealthMetaAddress,
|
|
1713
1724
|
generateIntentId,
|
|
1725
|
+
generatePdfReport,
|
|
1714
1726
|
generateRandomBytes,
|
|
1715
1727
|
generateStealthAddress,
|
|
1716
1728
|
generateStealthMetaAddress,
|