@sip-protocol/sdk 0.2.8 → 0.2.9
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 +349 -0
- package/dist/browser.d.mts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +588 -154
- package/dist/browser.mjs +5 -1
- package/dist/chunk-KXN6IWL5.mjs +10736 -0
- package/dist/index.d.mts +289 -1
- package/dist/index.d.ts +289 -1
- package/dist/index.js +588 -154
- package/dist/index.mjs +5 -1
- package/package.json +1 -1
- package/src/index.ts +12 -0
- package/src/zcash/bridge.ts +738 -0
- package/src/zcash/index.ts +36 -1
- package/src/zcash/swap-service.ts +793 -0
package/dist/index.mjs
CHANGED
|
@@ -47,6 +47,7 @@ import {
|
|
|
47
47
|
ZcashRPCClient,
|
|
48
48
|
ZcashRPCError,
|
|
49
49
|
ZcashShieldedService,
|
|
50
|
+
ZcashSwapService,
|
|
50
51
|
addBlindings,
|
|
51
52
|
addCommitments,
|
|
52
53
|
addOracle,
|
|
@@ -80,6 +81,7 @@ import {
|
|
|
80
81
|
createWalletFactory,
|
|
81
82
|
createZcashClient,
|
|
82
83
|
createZcashShieldedService,
|
|
84
|
+
createZcashSwapService,
|
|
83
85
|
decodeStealthMetaAddress,
|
|
84
86
|
decryptMemo,
|
|
85
87
|
decryptWithViewing,
|
|
@@ -197,7 +199,7 @@ import {
|
|
|
197
199
|
walletRegistry,
|
|
198
200
|
withSecureBuffer,
|
|
199
201
|
withSecureBufferSync
|
|
200
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-KXN6IWL5.mjs";
|
|
201
203
|
import {
|
|
202
204
|
CryptoError,
|
|
203
205
|
EncryptionNotImplementedError,
|
|
@@ -273,6 +275,7 @@ export {
|
|
|
273
275
|
ZcashRPCClient,
|
|
274
276
|
ZcashRPCError,
|
|
275
277
|
ZcashShieldedService,
|
|
278
|
+
ZcashSwapService,
|
|
276
279
|
addBlindings,
|
|
277
280
|
addCommitments,
|
|
278
281
|
addOracle,
|
|
@@ -307,6 +310,7 @@ export {
|
|
|
307
310
|
createWalletFactory,
|
|
308
311
|
createZcashClient,
|
|
309
312
|
createZcashShieldedService,
|
|
313
|
+
createZcashSwapService,
|
|
310
314
|
decodeStealthMetaAddress,
|
|
311
315
|
decryptMemo,
|
|
312
316
|
decryptWithViewing,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sip-protocol/sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "Core SDK for Shielded Intents Protocol - Privacy layer for cross-chain transactions",
|
|
5
5
|
"author": "SIP Protocol <hello@sip-protocol.org>",
|
|
6
6
|
"homepage": "https://sip-protocol.org",
|
package/src/index.ts
CHANGED
|
@@ -372,6 +372,8 @@ export {
|
|
|
372
372
|
createZcashClient,
|
|
373
373
|
ZcashShieldedService,
|
|
374
374
|
createZcashShieldedService,
|
|
375
|
+
ZcashSwapService,
|
|
376
|
+
createZcashSwapService,
|
|
375
377
|
} from './zcash'
|
|
376
378
|
export { ZcashErrorCode } from '@sip-protocol/types'
|
|
377
379
|
|
|
@@ -382,6 +384,16 @@ export type {
|
|
|
382
384
|
ReceivedNote,
|
|
383
385
|
ShieldedBalance,
|
|
384
386
|
ExportedViewingKey,
|
|
387
|
+
ZcashSwapServiceConfig,
|
|
388
|
+
ZcashSwapSourceChain,
|
|
389
|
+
ZcashSwapSourceToken,
|
|
390
|
+
ZcashQuoteParams,
|
|
391
|
+
ZcashQuote,
|
|
392
|
+
ZcashSwapParams,
|
|
393
|
+
ZcashSwapResult,
|
|
394
|
+
ZcashSwapStatus,
|
|
395
|
+
BridgeProvider,
|
|
396
|
+
PriceFeed,
|
|
385
397
|
} from './zcash'
|
|
386
398
|
|
|
387
399
|
export type {
|