@sip-protocol/sdk 0.9.0 → 0.10.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/LICENSE +21 -0
- package/dist/{TransportWebUSB-YQMAGJAJ.mjs → TransportWebUSB-2KITI5HD.mjs} +24 -12
- package/dist/browser.d.mts +4 -4
- package/dist/browser.d.ts +4 -4
- package/dist/browser.js +1346 -838
- package/dist/browser.mjs +13 -3
- package/dist/{chunk-64AYA5F5.mjs → chunk-G3TBBG2K.mjs} +221 -146
- package/dist/{chunk-4GRJ5MAW.mjs → chunk-KXETSSKP.mjs} +4 -0
- package/dist/{chunk-6EU6WQFK.mjs → chunk-PT2DNA7E.mjs} +257 -235
- package/dist/{constants-LHAAUC2T.mjs → constants-DCJYTIU3.mjs} +5 -1
- package/dist/{dist-2OGQ7FED.mjs → dist-PYEXZNFD.mjs} +609 -221
- package/dist/{index-DeE1ZzA4.d.mts → index-B1d8pihL.d.mts} +117 -33
- package/dist/{index-DXh2IGkz.d.ts → index-UQhQJZbM.d.ts} +117 -33
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1339 -831
- package/dist/index.mjs +13 -3
- package/dist/{interface-Bf7w1PLW.d.mts → interface-CQi0-WfS.d.mts} +2 -2
- package/dist/{interface-Bf7w1PLW.d.ts → interface-CQi0-WfS.d.ts} +2 -2
- package/dist/{noir-kzbLVTei.d.mts → noir-CwPIyBLj.d.mts} +1 -1
- package/dist/{noir-kzbLVTei.d.ts → noir-CwPIyBLj.d.ts} +1 -1
- package/dist/proofs/halo2.d.mts +1 -1
- package/dist/proofs/halo2.d.ts +1 -1
- package/dist/proofs/kimchi.d.mts +1 -1
- package/dist/proofs/kimchi.d.ts +1 -1
- package/dist/proofs/noir.d.mts +1 -1
- package/dist/proofs/noir.d.ts +1 -1
- package/dist/{solana-U3MEGU7W.mjs → solana-ZWNIQTSU.mjs} +6 -6
- package/package.json +32 -32
- package/src/adapters/gelato-relay.ts +386 -0
- package/src/adapters/index.ts +28 -0
- package/src/adapters/oneinch.ts +126 -0
- package/src/chains/ethereum/privacy-adapter.ts +8 -5
- package/src/chains/ethereum/stealth.ts +17 -14
- package/src/chains/near/privacy-adapter.ts +8 -5
- package/src/chains/near/resolver.ts +22 -8
- package/src/chains/near/stealth.ts +9 -9
- package/src/chains/solana/constants.ts +13 -1
- package/src/chains/solana/ephemeral-keys.ts +3 -257
- package/src/chains/solana/index.ts +2 -3
- package/src/chains/solana/providers/helius-enhanced.ts +6 -6
- package/src/chains/solana/providers/webhook.ts +2 -2
- package/src/chains/solana/scan.ts +9 -8
- package/src/chains/solana/stealth-scanner.ts +3 -3
- package/src/chains/solana/types.ts +18 -4
- package/src/cosmos/ibc-stealth.ts +6 -6
- package/src/index.ts +6 -0
- package/src/move/aptos.ts +15 -9
- package/src/move/sui.ts +15 -9
- package/src/nft/private-nft.ts +10 -6
- package/src/privacy-backends/shadowwire.ts +13 -0
- package/src/stealth/ed25519.ts +173 -12
- package/src/stealth/index.ts +47 -4
- package/src/stealth/secp256k1.ts +144 -7
- package/src/stealth.ts +7 -0
- package/src/wallet/ethereum/privacy-adapter.ts +1 -1
- package/src/wallet/hardware/ledger-privacy.ts +2 -2
- package/src/wallet/near/adapter.ts +2 -2
- package/src/wallet/near/meteor-wallet.ts +2 -2
- package/src/wallet/near/my-near-wallet.ts +2 -2
- package/src/wallet/near/wallet-selector.ts +2 -2
- package/src/wallet/solana/privacy-adapter.ts +9 -9
- package/dist/chunk-5EKF243P.mjs +0 -33809
- package/dist/chunk-YWGJ77A2.mjs +0 -33806
package/dist/index.mjs
CHANGED
|
@@ -448,7 +448,7 @@ import {
|
|
|
448
448
|
verifyOracleSignature,
|
|
449
449
|
verifyOwnership,
|
|
450
450
|
walletRegistry
|
|
451
|
-
} from "./chunk-
|
|
451
|
+
} from "./chunk-PT2DNA7E.mjs";
|
|
452
452
|
import {
|
|
453
453
|
DEFAULT_NETWORK_CONFIG,
|
|
454
454
|
DEFAULT_PROXY_TIMEOUT,
|
|
@@ -463,7 +463,9 @@ import {
|
|
|
463
463
|
addBlindings,
|
|
464
464
|
addCommitments,
|
|
465
465
|
checkEd25519StealthAddress,
|
|
466
|
+
checkEd25519StealthAddressV1,
|
|
466
467
|
checkProxyAvailability,
|
|
468
|
+
checkSecp256k1StealthAddressV1,
|
|
467
469
|
checkStealthAddress,
|
|
468
470
|
claimStealthPayment,
|
|
469
471
|
commit,
|
|
@@ -477,7 +479,10 @@ import {
|
|
|
477
479
|
createWebhookHandler,
|
|
478
480
|
decodeStealthMetaAddress,
|
|
479
481
|
deriveEd25519StealthPrivateKey,
|
|
482
|
+
deriveEd25519StealthPrivateKeyV1,
|
|
483
|
+
deriveSecp256k1StealthPrivateKeyV1,
|
|
480
484
|
deriveStealthPrivateKey,
|
|
485
|
+
deriveStealthPrivateKeyV1,
|
|
481
486
|
detectTorPort,
|
|
482
487
|
ed25519PublicKeyToNearAddress,
|
|
483
488
|
ed25519PublicKeyToSolanaAddress,
|
|
@@ -535,7 +540,7 @@ import {
|
|
|
535
540
|
verifyWebhookSignature,
|
|
536
541
|
withSecureBuffer,
|
|
537
542
|
withSecureBufferSync
|
|
538
|
-
} from "./chunk-
|
|
543
|
+
} from "./chunk-G3TBBG2K.mjs";
|
|
539
544
|
import {
|
|
540
545
|
Halo2Provider,
|
|
541
546
|
KimchiProvider,
|
|
@@ -579,7 +584,7 @@ import {
|
|
|
579
584
|
getExplorerUrl,
|
|
580
585
|
getSolanaTokenDecimals,
|
|
581
586
|
getTokenMint
|
|
582
|
-
} from "./chunk-
|
|
587
|
+
} from "./chunk-KXETSSKP.mjs";
|
|
583
588
|
import "./chunk-XGB3TDIC.mjs";
|
|
584
589
|
export {
|
|
585
590
|
ATTESTATION_VERSION,
|
|
@@ -801,8 +806,10 @@ export {
|
|
|
801
806
|
calculateSIPComparison,
|
|
802
807
|
checkAptosStealthAddress,
|
|
803
808
|
checkEd25519StealthAddress,
|
|
809
|
+
checkEd25519StealthAddressV1,
|
|
804
810
|
checkNEARStealthAddress,
|
|
805
811
|
checkProxyAvailability,
|
|
812
|
+
checkSecp256k1StealthAddressV1,
|
|
806
813
|
checkStealthAddress,
|
|
807
814
|
checkSuiStealthAddress,
|
|
808
815
|
claimStealthPayment,
|
|
@@ -909,11 +916,14 @@ export {
|
|
|
909
916
|
defaultRegistry,
|
|
910
917
|
deriveAptosStealthPrivateKey,
|
|
911
918
|
deriveEd25519StealthPrivateKey,
|
|
919
|
+
deriveEd25519StealthPrivateKeyV1,
|
|
912
920
|
deriveNEARChildViewingKey,
|
|
913
921
|
deriveNEARStealthPrivateKey,
|
|
914
922
|
deriveObliviousNullifier,
|
|
915
923
|
deriveOracleId,
|
|
924
|
+
deriveSecp256k1StealthPrivateKeyV1,
|
|
916
925
|
deriveStealthPrivateKey,
|
|
926
|
+
deriveStealthPrivateKeyV1,
|
|
917
927
|
deriveSuiStealthPrivateKey,
|
|
918
928
|
deriveTraditionalNullifier,
|
|
919
929
|
deriveViewingKey,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SingleProof, ProofSystem, HexString, ProofProviderCapabilities, ProofAggregationStrategy, ProofCompositionConfig, CompositionEventListener, ComposedProof, ProofProviderStatus, CompositionResult, VerificationResult } from '@sip-protocol/types';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Proof Composer SDK Types
|
|
@@ -676,4 +676,4 @@ declare class IncompatibleSystemsError extends ProofCompositionError {
|
|
|
676
676
|
constructor(source: ProofSystem, target: ProofSystem);
|
|
677
677
|
}
|
|
678
678
|
|
|
679
|
-
export { type AggregateProofsOptions as A,
|
|
679
|
+
export { type AggregateProofsOptions as A, type CacheStats as C, type FallbackConfig as F, IncompatibleSystemsError as I, type ProofCacheEntry as P, type RegisterProviderOptions as R, type SystemCompatibility as S, type TelemetryCollector as T, type VerifyComposedProofOptions as V, type WorkerPoolConfig as W, type AggregationResult as a, type CompatibilityMatrix as b, type ComposableProofProvider as c, type ComposeProofsOptions as d, CompositionTimeoutError as e, type ConversionResult as f, type ConvertProofOptions as g, type ProofComposer as h, ProofCompositionError as i, type ProofGenerationRequest as j, type ProofGenerationResult as k, type ProofProviderFactory as l, type ProofProviderRegistration as m, type ProofProviderRegistry as n, type ProofTelemetry as o, type ProofTelemetryMetrics as p, ProviderNotFoundError as q, type WorkerPoolStatus as r };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SingleProof, ProofSystem, HexString, ProofProviderCapabilities, ProofAggregationStrategy, ProofCompositionConfig, CompositionEventListener, ComposedProof, ProofProviderStatus, CompositionResult, VerificationResult } from '@sip-protocol/types';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Proof Composer SDK Types
|
|
@@ -676,4 +676,4 @@ declare class IncompatibleSystemsError extends ProofCompositionError {
|
|
|
676
676
|
constructor(source: ProofSystem, target: ProofSystem);
|
|
677
677
|
}
|
|
678
678
|
|
|
679
|
-
export { type AggregateProofsOptions as A,
|
|
679
|
+
export { type AggregateProofsOptions as A, type CacheStats as C, type FallbackConfig as F, IncompatibleSystemsError as I, type ProofCacheEntry as P, type RegisterProviderOptions as R, type SystemCompatibility as S, type TelemetryCollector as T, type VerifyComposedProofOptions as V, type WorkerPoolConfig as W, type AggregationResult as a, type CompatibilityMatrix as b, type ComposableProofProvider as c, type ComposeProofsOptions as d, CompositionTimeoutError as e, type ConversionResult as f, type ConvertProofOptions as g, type ProofComposer as h, ProofCompositionError as i, type ProofGenerationRequest as j, type ProofGenerationResult as k, type ProofProviderFactory as l, type ProofProviderRegistration as m, type ProofProviderRegistry as n, type ProofTelemetry as o, type ProofTelemetryMetrics as p, ProviderNotFoundError as q, type WorkerPoolStatus as r };
|
|
@@ -489,4 +489,4 @@ declare class NoirProofProvider implements ProofProvider {
|
|
|
489
489
|
private getPublicKeyFromField;
|
|
490
490
|
}
|
|
491
491
|
|
|
492
|
-
export { type FundingProofParams as F, type NoirProviderConfig as N, type OracleAttestation as O, type ProofResult as P, type ValidityProofParams as V, type FulfillmentProofParams as a,
|
|
492
|
+
export { type FundingProofParams as F, type NoirProviderConfig as N, type OracleAttestation as O, type ProofResult as P, type ValidityProofParams as V, type FulfillmentProofParams as a, type ProofFramework as b, ProofGenerationError as c, type ProofProvider as d, NoirProofProvider as e, type PublicKeyCoordinates as f };
|
|
@@ -489,4 +489,4 @@ declare class NoirProofProvider implements ProofProvider {
|
|
|
489
489
|
private getPublicKeyFromField;
|
|
490
490
|
}
|
|
491
491
|
|
|
492
|
-
export { type FundingProofParams as F, type NoirProviderConfig as N, type OracleAttestation as O, type ProofResult as P, type ValidityProofParams as V, type FulfillmentProofParams as a,
|
|
492
|
+
export { type FundingProofParams as F, type NoirProviderConfig as N, type OracleAttestation as O, type ProofResult as P, type ValidityProofParams as V, type FulfillmentProofParams as a, type ProofFramework as b, ProofGenerationError as c, type ProofProvider as d, NoirProofProvider as e, type PublicKeyCoordinates as f };
|
package/dist/proofs/halo2.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as ComposableProofProvider, j as ProofGenerationRequest, k as ProofGenerationResult } from '../interface-CQi0-WfS.mjs';
|
|
2
2
|
import { ProofSystem, ProofProviderCapabilities, ProofProviderStatus, SingleProof } from '@sip-protocol/types';
|
|
3
3
|
export { ProofMetadata, ProofProviderCapabilities, ProofProviderStatus, ProofSystem, SingleProof } from '@sip-protocol/types';
|
|
4
4
|
|
package/dist/proofs/halo2.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as ComposableProofProvider, j as ProofGenerationRequest, k as ProofGenerationResult } from '../interface-CQi0-WfS.js';
|
|
2
2
|
import { ProofSystem, ProofProviderCapabilities, ProofProviderStatus, SingleProof } from '@sip-protocol/types';
|
|
3
3
|
export { ProofMetadata, ProofProviderCapabilities, ProofProviderStatus, ProofSystem, SingleProof } from '@sip-protocol/types';
|
|
4
4
|
|
package/dist/proofs/kimchi.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as ComposableProofProvider, j as ProofGenerationRequest, k as ProofGenerationResult } from '../interface-CQi0-WfS.mjs';
|
|
2
2
|
import { ProofSystem, ProofProviderCapabilities, ProofProviderStatus, SingleProof } from '@sip-protocol/types';
|
|
3
3
|
export { ProofMetadata, ProofProviderCapabilities, ProofProviderStatus, ProofSystem, SingleProof } from '@sip-protocol/types';
|
|
4
4
|
|
package/dist/proofs/kimchi.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as ComposableProofProvider, j as ProofGenerationRequest, k as ProofGenerationResult } from '../interface-CQi0-WfS.js';
|
|
2
2
|
import { ProofSystem, ProofProviderCapabilities, ProofProviderStatus, SingleProof } from '@sip-protocol/types';
|
|
3
3
|
export { ProofMetadata, ProofProviderCapabilities, ProofProviderStatus, ProofSystem, SingleProof } from '@sip-protocol/types';
|
|
4
4
|
|
package/dist/proofs/noir.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import '@sip-protocol/types';
|
|
2
|
-
export {
|
|
2
|
+
export { e as NoirProofProvider, N as NoirProviderConfig, f as PublicKeyCoordinates } from '../noir-CwPIyBLj.mjs';
|
package/dist/proofs/noir.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import '@sip-protocol/types';
|
|
2
|
-
export {
|
|
2
|
+
export { e as NoirProofProvider, N as NoirProviderConfig, f as PublicKeyCoordinates } from '../noir-CwPIyBLj.js';
|
|
@@ -63,7 +63,6 @@ import {
|
|
|
63
63
|
estimatePrivateTransferFee,
|
|
64
64
|
estimateSOLTransfer,
|
|
65
65
|
exportViewingKey,
|
|
66
|
-
formatEphemeralAnnouncement,
|
|
67
66
|
formatFundingInputs,
|
|
68
67
|
formatLamports,
|
|
69
68
|
formatOwnershipInputs,
|
|
@@ -91,7 +90,6 @@ import {
|
|
|
91
90
|
lamportsToSol,
|
|
92
91
|
normalizeAddress,
|
|
93
92
|
parseAnnouncement,
|
|
94
|
-
parseEphemeralAnnouncement,
|
|
95
93
|
parseSOLToLamports,
|
|
96
94
|
parseTokenAmount,
|
|
97
95
|
processWebhookTransaction,
|
|
@@ -124,13 +122,15 @@ import {
|
|
|
124
122
|
verifySPLTokenCommitment,
|
|
125
123
|
verifyWebhookSignature,
|
|
126
124
|
wipeEphemeralPrivateKey
|
|
127
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-G3TBBG2K.mjs";
|
|
128
126
|
import "./chunk-Z3K7W5S3.mjs";
|
|
129
127
|
import {
|
|
130
128
|
ATA_RENT_LAMPORTS,
|
|
131
129
|
ESTIMATED_TX_FEE_LAMPORTS,
|
|
132
130
|
MEMO_PROGRAM_ID,
|
|
133
131
|
SIP_MEMO_PREFIX,
|
|
132
|
+
SIP_MEMO_PREFIX_ANY,
|
|
133
|
+
SIP_MEMO_PREFIX_V2,
|
|
134
134
|
SOLANA_EXPLORER_URLS,
|
|
135
135
|
SOLANA_RPC_ENDPOINTS2 as SOLANA_RPC_ENDPOINTS,
|
|
136
136
|
SOLANA_TOKEN_DECIMALS,
|
|
@@ -138,7 +138,7 @@ import {
|
|
|
138
138
|
getExplorerUrl,
|
|
139
139
|
getSolanaTokenDecimals,
|
|
140
140
|
getTokenMint
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-KXETSSKP.mjs";
|
|
142
142
|
import "./chunk-XGB3TDIC.mjs";
|
|
143
143
|
export {
|
|
144
144
|
ATA_RENT_LAMPORTS,
|
|
@@ -162,6 +162,8 @@ export {
|
|
|
162
162
|
RPC_ENDPOINTS,
|
|
163
163
|
RpcHelpers,
|
|
164
164
|
SIP_MEMO_PREFIX,
|
|
165
|
+
SIP_MEMO_PREFIX_ANY,
|
|
166
|
+
SIP_MEMO_PREFIX_V2,
|
|
165
167
|
SIP_PRIVACY_PROGRAM_ID,
|
|
166
168
|
SOLANA_DEFAULT_PATH,
|
|
167
169
|
SOLANA_EXPLORER_URLS,
|
|
@@ -213,7 +215,6 @@ export {
|
|
|
213
215
|
estimatePrivateTransferFee,
|
|
214
216
|
estimateSOLTransfer,
|
|
215
217
|
exportViewingKey,
|
|
216
|
-
formatEphemeralAnnouncement,
|
|
217
218
|
formatFundingInputs,
|
|
218
219
|
formatLamports,
|
|
219
220
|
formatOwnershipInputs,
|
|
@@ -244,7 +245,6 @@ export {
|
|
|
244
245
|
lamportsToSol,
|
|
245
246
|
normalizeAddress,
|
|
246
247
|
parseAnnouncement,
|
|
247
|
-
parseEphemeralAnnouncement,
|
|
248
248
|
parseSOLToLamports,
|
|
249
249
|
parseTokenAmount,
|
|
250
250
|
processWebhookTransaction,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sip-protocol/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
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",
|
|
@@ -46,60 +46,48 @@
|
|
|
46
46
|
"dist",
|
|
47
47
|
"src"
|
|
48
48
|
],
|
|
49
|
-
"scripts": {
|
|
50
|
-
"build": "tsup src/index.ts src/browser.ts src/proofs/noir.ts src/proofs/halo2.ts src/proofs/kimchi.ts --format cjs,esm --dts",
|
|
51
|
-
"dev": "tsup src/index.ts src/browser.ts src/proofs/noir.ts src/proofs/halo2.ts src/proofs/kimchi.ts --format cjs,esm --dts --watch",
|
|
52
|
-
"lint": "eslint --ext .ts src/",
|
|
53
|
-
"typecheck": "tsc --noEmit",
|
|
54
|
-
"clean": "rm -rf dist",
|
|
55
|
-
"test": "vitest",
|
|
56
|
-
"test:coverage": "vitest run --coverage",
|
|
57
|
-
"bench": "vitest bench --config vitest.bench.config.ts",
|
|
58
|
-
"bench:json": "vitest bench --config vitest.bench.config.ts --outputJson benchmarks/results.json",
|
|
59
|
-
"example:auction": "tsx examples/auction-example.ts"
|
|
60
|
-
},
|
|
61
49
|
"optionalDependencies": {
|
|
62
50
|
"https-proxy-agent": "^7.0.0",
|
|
63
51
|
"socks-proxy-agent": "^8.0.0"
|
|
64
52
|
},
|
|
65
53
|
"dependencies": {
|
|
66
54
|
"@aztec/bb.js": "3.0.2",
|
|
67
|
-
"@ethereumjs/rlp": "^10.1.
|
|
55
|
+
"@ethereumjs/rlp": "^10.1.2",
|
|
68
56
|
"@jup-ag/api": "^6.0.48",
|
|
69
57
|
"@langchain/core": "^0.3.30",
|
|
70
58
|
"@langchain/openai": "^0.4.2",
|
|
71
|
-
"@magicblock-labs/ephemeral-rollups-sdk": "^0.
|
|
72
|
-
"@noble/ciphers": "^2.
|
|
59
|
+
"@magicblock-labs/ephemeral-rollups-sdk": "^0.14.4",
|
|
60
|
+
"@noble/ciphers": "^2.2.0",
|
|
73
61
|
"@noble/curves": "^1.3.0",
|
|
74
62
|
"@noble/hashes": "^1.3.3",
|
|
75
63
|
"@noir-lang/noir_js": "1.0.0-beta.18",
|
|
76
64
|
"@noir-lang/types": "1.0.0-beta.18",
|
|
77
|
-
"@radr/shadowwire": "^1.1.
|
|
78
|
-
"@scure/base": "^2.
|
|
79
|
-
"@scure/bip32": "^2.0
|
|
80
|
-
"@scure/bip39": "^2.0
|
|
65
|
+
"@radr/shadowwire": "^1.1.15",
|
|
66
|
+
"@scure/base": "^2.2.0",
|
|
67
|
+
"@scure/bip32": "^2.2.0",
|
|
68
|
+
"@scure/bip39": "^2.2.0",
|
|
81
69
|
"@sip-protocol/types": "^0.2.2",
|
|
82
|
-
"@solana-program/compute-budget": "^0.
|
|
83
|
-
"@solana-program/system": "^0.
|
|
70
|
+
"@solana-program/compute-budget": "^0.15.0",
|
|
71
|
+
"@solana-program/system": "^0.12.2",
|
|
84
72
|
"@solana/compat": "^5.4.0",
|
|
85
73
|
"@solana/kit": "^5.4.0",
|
|
86
74
|
"@solana/spl-token": "^0.4.14",
|
|
87
75
|
"@solana/web3.js": "^1.98.4",
|
|
88
76
|
"@triton-one/yellowstone-grpc": "^4.0.2",
|
|
89
|
-
"langchain": "^1.
|
|
90
|
-
"pino": "^10.
|
|
91
|
-
"zod": "^4.3
|
|
77
|
+
"langchain": "^1.4.4",
|
|
78
|
+
"pino": "^10.3.1",
|
|
79
|
+
"zod": "^4.4.3"
|
|
92
80
|
},
|
|
93
81
|
"devDependencies": {
|
|
94
|
-
"@grpc/grpc-js": "^1.14.
|
|
95
|
-
"@types/node": "^
|
|
96
|
-
"@vitest/coverage-v8": "1.
|
|
97
|
-
"fast-check": "^4.
|
|
82
|
+
"@grpc/grpc-js": "^1.14.4",
|
|
83
|
+
"@types/node": "^25.9.1",
|
|
84
|
+
"@vitest/coverage-v8": "^4.1.0",
|
|
85
|
+
"fast-check": "^4.8.0",
|
|
98
86
|
"https-proxy-agent": "^7.0.0",
|
|
99
87
|
"socks-proxy-agent": "^8.0.0",
|
|
100
88
|
"tsup": "^8.0.0",
|
|
101
89
|
"typescript": "^5.3.0",
|
|
102
|
-
"vitest": "^
|
|
90
|
+
"vitest": "^4.1.0"
|
|
103
91
|
},
|
|
104
92
|
"keywords": [
|
|
105
93
|
"sip",
|
|
@@ -109,5 +97,17 @@
|
|
|
109
97
|
"stealth-addresses",
|
|
110
98
|
"zcash"
|
|
111
99
|
],
|
|
112
|
-
"license": "MIT"
|
|
113
|
-
|
|
100
|
+
"license": "MIT",
|
|
101
|
+
"scripts": {
|
|
102
|
+
"build": "tsup src/index.ts src/browser.ts src/proofs/noir.ts src/proofs/halo2.ts src/proofs/kimchi.ts --format cjs,esm --dts",
|
|
103
|
+
"dev": "tsup src/index.ts src/browser.ts src/proofs/noir.ts src/proofs/halo2.ts src/proofs/kimchi.ts --format cjs,esm --dts --watch",
|
|
104
|
+
"lint": "eslint --ext .ts src/",
|
|
105
|
+
"typecheck": "tsc --noEmit",
|
|
106
|
+
"clean": "rm -rf dist",
|
|
107
|
+
"test": "vitest",
|
|
108
|
+
"test:coverage": "vitest run --coverage",
|
|
109
|
+
"bench": "vitest bench --config vitest.bench.config.ts",
|
|
110
|
+
"bench:json": "vitest bench --config vitest.bench.config.ts --outputJson benchmarks/results.json",
|
|
111
|
+
"example:auction": "tsx examples/auction-example.ts"
|
|
112
|
+
}
|
|
113
|
+
}
|