@umbra-privacy/sdk 1.0.0 → 2.0.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/README.md +104 -25
- package/dist/{addresses-Brzgurv_.d.ts → addresses-B7HybtbJ.d.ts} +2 -1
- package/dist/{addresses-D_0YAS6B.d.cts → addresses-CTVY1oi7.d.cts} +2 -1
- package/dist/arcium-BXXlryfe.d.cts +20 -0
- package/dist/arcium-BXXlryfe.d.ts +20 -0
- package/dist/chunk-4RHXVBNI.js +203 -0
- package/dist/chunk-4RHXVBNI.js.map +1 -0
- package/dist/chunk-4TZVXB5G.js +324 -0
- package/dist/chunk-4TZVXB5G.js.map +1 -0
- package/dist/chunk-5GUSMQ74.cjs +549 -0
- package/dist/chunk-5GUSMQ74.cjs.map +1 -0
- package/dist/chunk-5KPQXPQM.js +36 -0
- package/dist/chunk-5KPQXPQM.js.map +1 -0
- package/dist/chunk-AXD7LXYY.cjs +405 -0
- package/dist/chunk-AXD7LXYY.cjs.map +1 -0
- package/dist/{chunk-HOEXDXRC.cjs → chunk-BL6WXLPV.cjs} +32 -360
- package/dist/chunk-BL6WXLPV.cjs.map +1 -0
- package/dist/chunk-CFFLOE7D.cjs +598 -0
- package/dist/chunk-CFFLOE7D.cjs.map +1 -0
- package/dist/{chunk-BM7N6N7E.js → chunk-CFTW5WNG.js} +3 -325
- package/dist/chunk-CFTW5WNG.js.map +1 -0
- package/dist/chunk-DD2WCK4C.js +327 -0
- package/dist/chunk-DD2WCK4C.js.map +1 -0
- package/dist/chunk-DMPMQ74B.cjs +246 -0
- package/dist/chunk-DMPMQ74B.cjs.map +1 -0
- package/dist/{chunk-2Q75CQQJ.js → chunk-EEKF4553.js} +2 -2
- package/dist/chunk-EEKF4553.js.map +1 -0
- package/dist/chunk-ENVYYEM4.cjs +113 -0
- package/dist/chunk-ENVYYEM4.cjs.map +1 -0
- package/dist/chunk-FQX6ZYGJ.js +500 -0
- package/dist/chunk-FQX6ZYGJ.js.map +1 -0
- package/dist/chunk-FSK2ICMB.cjs +39 -0
- package/dist/chunk-FSK2ICMB.cjs.map +1 -0
- package/dist/chunk-FZYWLQAF.cjs +355 -0
- package/dist/chunk-FZYWLQAF.cjs.map +1 -0
- package/dist/chunk-GP26R377.js +436 -0
- package/dist/chunk-GP26R377.js.map +1 -0
- package/dist/chunk-HA5FLM63.js +393 -0
- package/dist/chunk-HA5FLM63.js.map +1 -0
- package/dist/chunk-INJ73LXQ.js +1107 -0
- package/dist/chunk-INJ73LXQ.js.map +1 -0
- package/dist/chunk-JPDF7BIT.cjs +10892 -0
- package/dist/chunk-JPDF7BIT.cjs.map +1 -0
- package/dist/{chunk-MDFSBU5W.cjs → chunk-LTCKPTZC.cjs} +2 -351
- package/dist/chunk-LTCKPTZC.cjs.map +1 -0
- package/dist/chunk-MKNCBUFA.js +564 -0
- package/dist/chunk-MKNCBUFA.js.map +1 -0
- package/dist/chunk-NKVMSABR.cjs +207 -0
- package/dist/chunk-NKVMSABR.cjs.map +1 -0
- package/dist/chunk-OFDWNWCL.js +70 -0
- package/dist/chunk-OFDWNWCL.js.map +1 -0
- package/dist/chunk-QJAUUYZU.cjs +331 -0
- package/dist/chunk-QJAUUYZU.cjs.map +1 -0
- package/dist/chunk-RVUYPKKD.js +10750 -0
- package/dist/chunk-RVUYPKKD.js.map +1 -0
- package/dist/chunk-TLR7A64G.js +103 -0
- package/dist/chunk-TLR7A64G.js.map +1 -0
- package/dist/{chunk-MVKTV3FT.cjs → chunk-TQQZGNOI.cjs} +2 -2
- package/dist/chunk-TQQZGNOI.cjs.map +1 -0
- package/dist/chunk-UOFYS6M3.js +219 -0
- package/dist/chunk-UOFYS6M3.js.map +1 -0
- package/dist/chunk-UXMQI6B7.js +2406 -0
- package/dist/chunk-UXMQI6B7.js.map +1 -0
- package/dist/chunk-WN75ORDT.js +571 -0
- package/dist/chunk-WN75ORDT.js.map +1 -0
- package/dist/chunk-Y55PYKXH.cjs +595 -0
- package/dist/chunk-Y55PYKXH.cjs.map +1 -0
- package/dist/chunk-YEZBTYCP.cjs +77 -0
- package/dist/chunk-YEZBTYCP.cjs.map +1 -0
- package/dist/chunk-ZQOIYCGA.cjs +1126 -0
- package/dist/chunk-ZQOIYCGA.cjs.map +1 -0
- package/dist/chunk-ZY3TSHMJ.cjs +2665 -0
- package/dist/chunk-ZY3TSHMJ.cjs.map +1 -0
- package/dist/client-DkVBHMWb.d.cts +2613 -0
- package/dist/client-V4AF6Bz9.d.ts +2613 -0
- package/dist/common/pda/index.cjs +145 -0
- package/dist/common/pda/index.cjs.map +1 -0
- package/dist/common/pda/index.d.cts +1250 -0
- package/dist/common/pda/index.d.ts +1250 -0
- package/dist/common/pda/index.js +8 -0
- package/dist/common/pda/index.js.map +1 -0
- package/dist/constants/index.cjs +38 -164
- package/dist/constants/index.cjs.map +1 -1
- package/dist/constants/index.d.cts +8 -425
- package/dist/constants/index.d.ts +8 -425
- package/dist/constants/index.js +15 -124
- package/dist/constants/index.js.map +1 -1
- package/dist/crypto/index.cjs +583 -0
- package/dist/crypto/index.cjs.map +1 -0
- package/dist/crypto/index.d.cts +6731 -0
- package/dist/crypto/index.d.ts +6731 -0
- package/dist/crypto/index.js +14 -0
- package/dist/crypto/index.js.map +1 -0
- package/dist/{cryptography-BTGC72u-.d.ts → cryptography-BFSJcvi6.d.ts} +3 -2465
- package/dist/{cryptography-BTGC72u-.d.cts → cryptography-D6tPDh-Y.d.cts} +3 -2465
- package/dist/errors/index.cjs +64 -54
- package/dist/errors/index.d.cts +7 -797
- package/dist/errors/index.d.ts +7 -797
- package/dist/errors/index.js +3 -1
- package/dist/errors-B9EoPeWV.d.cts +593 -0
- package/dist/errors-B9EoPeWV.d.ts +593 -0
- package/dist/errors-DAIrstEL.d.cts +300 -0
- package/dist/errors-DPNMfyh0.d.ts +300 -0
- package/dist/index-BG0yjL7C.d.cts +6006 -0
- package/dist/index-ByynoyBO.d.ts +6006 -0
- package/dist/index.cjs +5126 -16118
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1031 -7685
- package/dist/index.d.ts +1031 -7685
- package/dist/index.js +3219 -14905
- package/dist/index.js.map +1 -1
- package/dist/interfaces/index.d.cts +14 -6
- package/dist/interfaces/index.d.ts +14 -6
- package/dist/interfaces-43cReBcS.d.cts +3346 -0
- package/dist/interfaces-B8xKNl_6.d.ts +997 -0
- package/dist/interfaces-D2NO6kDD.d.cts +997 -0
- package/dist/interfaces-z_xYJlgV.d.ts +3346 -0
- package/dist/math/index.cjs +115 -0
- package/dist/math/index.cjs.map +1 -0
- package/dist/math/index.d.cts +1327 -0
- package/dist/math/index.d.ts +1327 -0
- package/dist/math/index.js +10 -0
- package/dist/math/index.js.map +1 -0
- package/dist/networks-RMd3abPE.d.ts +44 -0
- package/dist/networks-yAoO8peQ.d.cts +44 -0
- package/dist/relayer-NRRMSMNB.js +4 -0
- package/dist/relayer-NRRMSMNB.js.map +1 -0
- package/dist/relayer-RJHEIXJG.cjs +21 -0
- package/dist/relayer-RJHEIXJG.cjs.map +1 -0
- package/dist/solana/index.cjs +56 -0
- package/dist/solana/index.cjs.map +1 -0
- package/dist/solana/index.d.cts +105 -0
- package/dist/solana/index.d.ts +105 -0
- package/dist/solana/index.js +7 -0
- package/dist/solana/index.js.map +1 -0
- package/dist/{index-CLj_zWSD.d.ts → temporal-BbRaEPoO.d.ts} +1 -1
- package/dist/{index-CX6_pIRS.d.cts → temporal-oUj7iCaq.d.cts} +1 -1
- package/dist/transaction-forwarder-5mAMTjw6.d.ts +1155 -0
- package/dist/transaction-forwarder-C6gMUG7a.d.cts +1155 -0
- package/dist/types/index.cjs +232 -231
- package/dist/types/index.d.cts +15 -1485
- package/dist/types/index.d.ts +15 -1485
- package/dist/types/index.js +2 -1
- package/dist/types-BohhvPth.d.cts +87 -0
- package/dist/types-CW0oTT0j.d.ts +87 -0
- package/dist/types-C_V_CaKK.d.cts +2468 -0
- package/dist/types-C_V_CaKK.d.ts +2468 -0
- package/dist/types-Ca7frykr.d.ts +793 -0
- package/dist/types-CuKeoI19.d.cts +1296 -0
- package/dist/types-CxfTIpN9.d.ts +1052 -0
- package/dist/{types-n-sHFcgr.d.ts → types-D1jDUjfN.d.ts} +2 -2
- package/dist/types-DKEDUlH9.d.ts +1296 -0
- package/dist/types-EKuIfxTz.d.cts +1052 -0
- package/dist/{types-BBuELtY8.d.cts → types-IMGYmlv-.d.cts} +2 -2
- package/dist/types-PwNLi_2k.d.cts +793 -0
- package/dist/utils/index.cjs +823 -525
- package/dist/utils/index.d.cts +1711 -4021
- package/dist/utils/index.d.ts +1711 -4021
- package/dist/utils/index.js +9 -3
- package/dist/{versions-D9PqsEvj.d.cts → versions-BRlR36EA.d.cts} +1 -0
- package/dist/{versions-D9PqsEvj.d.ts → versions-BRlR36EA.d.ts} +1 -0
- package/package.json +79 -18
- package/dist/chunk-2Q75CQQJ.js.map +0 -1
- package/dist/chunk-BM7N6N7E.js.map +0 -1
- package/dist/chunk-GXKSUB2U.cjs +0 -4416
- package/dist/chunk-GXKSUB2U.cjs.map +0 -1
- package/dist/chunk-HOEXDXRC.cjs.map +0 -1
- package/dist/chunk-MDFSBU5W.cjs.map +0 -1
- package/dist/chunk-MQY7HDIA.js +0 -600
- package/dist/chunk-MQY7HDIA.js.map +0 -1
- package/dist/chunk-MVKTV3FT.cjs.map +0 -1
- package/dist/chunk-PG2J6V6Y.js +0 -4094
- package/dist/chunk-PG2J6V6Y.js.map +0 -1
- package/dist/chunk-VEGLTTYQ.cjs +0 -621
- package/dist/chunk-VEGLTTYQ.cjs.map +0 -1
- package/dist/chunk-WVHQ46DD.js +0 -758
- package/dist/chunk-WVHQ46DD.js.map +0 -1
- package/dist/index-B9pDY73x.d.ts +0 -12933
- package/dist/index-D33yo0qB.d.cts +0 -12933
- package/dist/networks-C-orpSFW.d.ts +0 -65
- package/dist/networks-FxYERGD1.d.cts +0 -65
package/dist/utils/index.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { bigintToBinaryArrayLSB, calculateNetAmountAfterFee, calculateTransferFee, convertBn254FieldElementToCurve25519FieldElement, convertBn254FieldElementToDailyViewingKey, convertBn254FieldElementToMasterViewingKey, convertBn254FieldElementToMintViewingKey, convertBn254FieldElementToMonthlyViewingKey, convertBn254FieldElementToPoseidonCiphertext, convertBn254FieldElementToPoseidonHash, convertBn254FieldElementToPoseidonKey, convertBn254FieldElementToPoseidonPlaintext, convertBn254FieldElementToU256, convertBn254FieldElementToYearlyViewingKey, convertCurve25519FieldElementToBn254FieldElement, convertCurve25519FieldElementToRcCiphertext, convertCurve25519FieldElementToRcCounter, convertCurve25519FieldElementToRcKey, convertCurve25519FieldElementToRcPlaintext, convertCurve25519FieldElementToU256, convertI1024ToI128, convertI1024ToI16, convertI1024ToI256, convertI1024ToI32, convertI1024ToI512, convertI1024ToI64, convertI1024ToI8, convertI1024ToNumber, convertI1024ToU1024, convertI128ToI1024, convertI128ToI16, convertI128ToI256, convertI128ToI32, convertI128ToI512, convertI128ToI64, convertI128ToI8, convertI128ToNumber, convertI128ToU128, convertI16ToI1024, convertI16ToI128, convertI16ToI256, convertI16ToI32, convertI16ToI512, convertI16ToI64, convertI16ToI8, convertI16ToNumber, convertI16ToU16, convertI256ToI1024, convertI256ToI128, convertI256ToI16, convertI256ToI32, convertI256ToI512, convertI256ToI64, convertI256ToI8, convertI256ToNumber, convertI256ToU256, convertI32ToI1024, convertI32ToI128, convertI32ToI16, convertI32ToI256, convertI32ToI512, convertI32ToI64, convertI32ToI8, convertI32ToNumber, convertI32ToU32, convertI512ToI1024, convertI512ToI128, convertI512ToI16, convertI512ToI256, convertI512ToI32, convertI512ToI64, convertI512ToI8, convertI512ToNumber, convertI512ToU512, convertI64ToI1024, convertI64ToI128, convertI64ToI16, convertI64ToI256, convertI64ToI32, convertI64ToI512, convertI64ToI8, convertI64ToNumber, convertI64ToU64, convertI8ToI1024, convertI8ToI128, convertI8ToI16, convertI8ToI256, convertI8ToI32, convertI8ToI512, convertI8ToI64, convertI8ToNumber, convertI8ToU8, convertNumberToI1024, convertNumberToI128, convertNumberToI16, convertNumberToI256, convertNumberToI32, convertNumberToI512, convertNumberToI64, convertNumberToI8, convertNumberToU1024, convertNumberToU128, convertNumberToU16, convertNumberToU256, convertNumberToU32, convertNumberToU512, convertNumberToU64, convertNumberToU8, convertPoseidonCiphertextToBn254FieldElement, convertPoseidonCiphertextToU256, convertPoseidonHashToBn254FieldElement, convertPoseidonHashToU256, convertPoseidonKeyToBn254FieldElement, convertPoseidonKeyToU256, convertPoseidonPlaintextToBn254FieldElement, convertPoseidonPlaintextToU256, convertRcCiphertextToCurve25519FieldElement, convertRcCiphertextToU256, convertRcCounterToCurve25519FieldElement, convertRcCounterToU256, convertRcEncryptionNonceToU128, convertRcKeyToCurve25519FieldElement, convertRcKeyToU256, convertRcPlaintextToCurve25519FieldElement, convertRcPlaintextToU256, convertSharedSecretToX25519Bytes, convertU1024ToI1024, convertU1024ToNumber, convertU1024ToU128, convertU1024ToU16, convertU1024ToU256, convertU1024ToU32, convertU1024ToU512, convertU1024ToU64, convertU1024ToU8, convertU128ToI128, convertU128ToNumber, convertU128ToRcEncryptionNonce, convertU128ToU1024, convertU128ToU16, convertU128ToU256, convertU128ToU32, convertU128ToU512, convertU128ToU64, convertU128ToU8, convertU16ToI16, convertU16ToNumber, convertU16ToU1024, convertU16ToU128, convertU16ToU256, convertU16ToU32, convertU16ToU512, convertU16ToU64, convertU16ToU8, convertU256ToBase85Limbs, convertU256ToBn254FieldElement, convertU256ToCurve25519FieldElement, convertU256ToI256, convertU256ToNumber, convertU256ToPoseidonCiphertext, convertU256ToPoseidonHash, convertU256ToPoseidonKey, convertU256ToPoseidonPlaintext, convertU256ToRcCiphertext, convertU256ToRcCounter, convertU256ToRcKey, convertU256ToRcPlaintext, convertU256ToU1024, convertU256ToU128, convertU256ToU16, convertU256ToU32, convertU256ToU512, convertU256ToU64, convertU256ToU8, convertU32ToI32, convertU32ToNumber, convertU32ToU1024, convertU32ToU128, convertU32ToU16, convertU32ToU256, convertU32ToU512, convertU32ToU64, convertU32ToU8, convertU512ToI512, convertU512ToNumber, convertU512ToU1024, convertU512ToU128, convertU512ToU16, convertU512ToU256, convertU512ToU32, convertU512ToU64, convertU512ToU8, convertU64ToI64, convertU64ToNumber, convertU64ToU1024, convertU64ToU128, convertU64ToU16, convertU64ToU256, convertU64ToU32, convertU64ToU512, convertU64ToU8, convertU8ToI8, convertU8ToNumber, convertU8ToU1024, convertU8ToU128, convertU8ToU16, convertU8ToU256, convertU8ToU32, convertU8ToU512, convertU8ToU64, convertX25519BytesToSharedSecret, convertX25519BytesToX25519PrivateKey, convertX25519BytesToX25519PublicKey, convertX25519PrivateKeyToX25519Bytes, convertX25519PublicKeyToX25519Bytes, createBase85Limb, createBn254FieldElement, createCurve25519FieldElement, createMicroLamportsPerAcu, createOptionalData32, createPoseidonKey, createRcCiphertext, createRcEncryptionNonce, createRcKey, createRcPlaintext, createU128, createU256, createU32, createU64, decodeBeBytesToBn254FieldElement, decodeBeBytesToCurve25519FieldElement, decodeBeBytesToRcEncryptionNonce, decodeLeBytesToBn254FieldElement, decodeLeBytesToCurve25519FieldElement, decodeLeBytesToRcEncryptionNonce, defaultExtractUtcComponents, defaultGetUtcNow, encodeBn254FieldElementToBeBytes, encodeBn254FieldElementToLeBytes, encodeCurve25519FieldElementToBeBytes, encodeCurve25519FieldElementToLeBytes, encodeRcEncryptionNonceToBeBytes, encodeRcEncryptionNonceToLeBytes, extractClusterOffsetFromMxeAccount, extractTransferFeeConfig, extractUtcComponents, generateComputationOffset, generateRandomNonce, generateRandomU128, generateRandomU256, generateRandomU64, getByteAt, getExtractUtcComponentsFunction, getUtcNow, getUtcNowFunction, splitAddressToLowHigh, splitU256IntoTwoU128s, splitX25519PublicKeyIntoTwoU128s } from '../chunk-UXMQI6B7.js';
|
|
2
|
+
export { TOKEN_POOL_SEED, computeCompDefOffset, computeStructSeed, findActiveStealthPoolPda, findArciumClusterPda, findArciumCompDefPda, findArciumComputationPda, findArciumExecutingPoolPda, findArciumInfrastructurePdas, findArciumMempoolPda, findArciumMxePda, findClaimInputBufferPda, findConfidentialNullifierBufferPda, findEncryptedTokenAccountPda, findEncryptedUserAccountPda, findFeeSchedulePda, findNetworkComplianceGrantPda, findNullifierSetPdas, findProtocolConfigPda, findProtocolFeeVaultPda, findPublicClaimComputationDataPda, findPublicClaimInputBufferPda, findPublicNullifierBufferPda, findPublicUtxoInputBufferPda, findRelayerFeeSchedulePda, findRelayerFeeVaultPda, findRelayerPda, findSharedComplianceGrantPda, findStealthPoolPda, findTokenPoolPda, findUserComplianceGrantPda, findUtxoInputBufferPda, findVerifyingKeyPda } from '../chunk-MKNCBUFA.js';
|
|
3
|
+
import '../chunk-EEKF4553.js';
|
|
4
|
+
export { ConversionError, assertBigintInRange, assertByteLength, assertNumberInRange, createBytes, createSharedSecret, createU1024BeBytes, createU1024LeBytes, createU128BeBytes, createU128LeBytes, createU16BeBytes, createU16LeBytes, createU256BeBytes, createU256LeBytes, createU32BeBytes, createU32LeBytes, createU512BeBytes, createU512LeBytes, createU64BeBytes, createU64LeBytes, createU8BeBytes, createU8LeBytes, createX25519Bytes, createX25519PrivateKey, createX25519PublicKey, isConversionError } from '../chunk-UOFYS6M3.js';
|
|
5
|
+
export { convertU1024BeBytesToU1024LeBytes, convertU1024LeBytesToU1024BeBytes, convertU128BeBytesToU128LeBytes, convertU128LeBytesToU128BeBytes, convertU16BeBytesToU16LeBytes, convertU16LeBytesToU16BeBytes, convertU256BeBytesToU256LeBytes, convertU256LeBytesToU256BeBytes, convertU32BeBytesToU32LeBytes, convertU32LeBytesToU32BeBytes, convertU512BeBytesToU512LeBytes, convertU512LeBytesToU512BeBytes, convertU64BeBytesToU64LeBytes, convertU64LeBytesToU64BeBytes, convertU8BeBytesToU8LeBytes, convertU8LeBytesToU8BeBytes, decodeU1024BeBytesToU1024, decodeU1024LeBytesToU1024, decodeU128BeBytesToU128, decodeU128LeBytesToU128, decodeU16BeBytesToU16, decodeU16LeBytesToU16, decodeU256BeBytesToU256, decodeU256LeBytesToU256, decodeU32BeBytesToU32, decodeU32LeBytesToU32, decodeU512BeBytesToU512, decodeU512LeBytesToU512, decodeU64BeBytesToU64, decodeU64LeBytesToU64, decodeU8BeBytesToU8, decodeU8LeBytesToU8, encodeU1024ToU1024BeBytes, encodeU1024ToU1024LeBytes, encodeU128ToU128BeBytes, encodeU128ToU128LeBytes, encodeU16ToU16BeBytes, encodeU16ToU16LeBytes, encodeU256ToU256BeBytes, encodeU256ToU256LeBytes, encodeU32ToU32BeBytes, encodeU32ToU32LeBytes, encodeU512ToU512BeBytes, encodeU512ToU512LeBytes, encodeU64ToU64BeBytes, encodeU64ToU64LeBytes, encodeU8ToU8BeBytes, encodeU8ToU8LeBytes } from '../chunk-FQX6ZYGJ.js';
|
|
6
|
+
import '../chunk-4TZVXB5G.js';
|
|
7
|
+
export { base64ToUint8Array, bytesToHex, decodeBeBytesToBigint, decodeLeBytesToBigint, encodeBigintToBeBytes, encodeBigintToLeBytes, hexToBytes, sleep, uint8ArrayToBase64 } from '../chunk-TLR7A64G.js';
|
|
8
|
+
export { DAY_MAX, DAY_MIN, HOUR_MAX, HOUR_MIN, MINUTE_MAX, MINUTE_MIN, MONTH_MAX, MONTH_MIN, SECOND_MAX, SECOND_MIN, TemporalAssertionError, YEAR_MAX, YEAR_MIN, assertDay, assertHour, assertMinute, assertMonth, assertSecond, assertTimestampComponent, assertYear } from '../chunk-DD2WCK4C.js';
|
|
9
|
+
import '../chunk-CFTW5WNG.js';
|
|
4
10
|
import '../chunk-7QVYU63E.js';
|
|
5
11
|
//# sourceMappingURL=index.js.map
|
|
6
12
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umbra-privacy/sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "A comprehensive TypeScript SDK for Umbra Privacy",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,6 +10,18 @@
|
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"typesVersions": {
|
|
12
12
|
"*": {
|
|
13
|
+
"crypto": [
|
|
14
|
+
"./dist/crypto/index.d.ts"
|
|
15
|
+
],
|
|
16
|
+
"pda": [
|
|
17
|
+
"./dist/common/pda/index.d.ts"
|
|
18
|
+
],
|
|
19
|
+
"solana": [
|
|
20
|
+
"./dist/solana/index.d.ts"
|
|
21
|
+
],
|
|
22
|
+
"math": [
|
|
23
|
+
"./dist/math/index.d.ts"
|
|
24
|
+
],
|
|
13
25
|
"types": [
|
|
14
26
|
"./dist/types/index.d.ts"
|
|
15
27
|
],
|
|
@@ -78,6 +90,46 @@
|
|
|
78
90
|
"default": "./dist/constants/index.cjs"
|
|
79
91
|
}
|
|
80
92
|
},
|
|
93
|
+
"./crypto": {
|
|
94
|
+
"import": {
|
|
95
|
+
"types": "./dist/crypto/index.d.ts",
|
|
96
|
+
"default": "./dist/crypto/index.js"
|
|
97
|
+
},
|
|
98
|
+
"require": {
|
|
99
|
+
"types": "./dist/crypto/index.d.cts",
|
|
100
|
+
"default": "./dist/crypto/index.cjs"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"./pda": {
|
|
104
|
+
"import": {
|
|
105
|
+
"types": "./dist/common/pda/index.d.ts",
|
|
106
|
+
"default": "./dist/common/pda/index.js"
|
|
107
|
+
},
|
|
108
|
+
"require": {
|
|
109
|
+
"types": "./dist/common/pda/index.d.cts",
|
|
110
|
+
"default": "./dist/common/pda/index.cjs"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"./solana": {
|
|
114
|
+
"import": {
|
|
115
|
+
"types": "./dist/solana/index.d.ts",
|
|
116
|
+
"default": "./dist/solana/index.js"
|
|
117
|
+
},
|
|
118
|
+
"require": {
|
|
119
|
+
"types": "./dist/solana/index.d.cts",
|
|
120
|
+
"default": "./dist/solana/index.cjs"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"./math": {
|
|
124
|
+
"import": {
|
|
125
|
+
"types": "./dist/math/index.d.ts",
|
|
126
|
+
"default": "./dist/math/index.js"
|
|
127
|
+
},
|
|
128
|
+
"require": {
|
|
129
|
+
"types": "./dist/math/index.d.cts",
|
|
130
|
+
"default": "./dist/math/index.cjs"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
81
133
|
"./errors": {
|
|
82
134
|
"import": {
|
|
83
135
|
"types": "./dist/errors/index.d.ts",
|
|
@@ -96,15 +148,28 @@
|
|
|
96
148
|
"LICENSE"
|
|
97
149
|
],
|
|
98
150
|
"sideEffects": false,
|
|
151
|
+
"scripts": {
|
|
152
|
+
"build": "tsup",
|
|
153
|
+
"build:watch": "tsup --watch",
|
|
154
|
+
"dev": "tsup --watch",
|
|
155
|
+
"clean": "rm -rf dist node_modules/.cache",
|
|
156
|
+
"typecheck": "tsc --noEmit",
|
|
157
|
+
"lint": "eslint . --max-warnings 0",
|
|
158
|
+
"lint:fix": "eslint . --fix",
|
|
159
|
+
"test": "vitest run",
|
|
160
|
+
"test:watch": "vitest",
|
|
161
|
+
"test:coverage": "vitest run --coverage"
|
|
162
|
+
},
|
|
99
163
|
"dependencies": {
|
|
100
164
|
"@noble/ciphers": "^2.1.1",
|
|
101
165
|
"@noble/curves": "^2.0.1",
|
|
102
166
|
"@noble/hashes": "^2.0.1",
|
|
103
167
|
"@solana/kit": "^6.0.1",
|
|
104
168
|
"@solana/wallet-standard-features": "^1.3.0",
|
|
105
|
-
"@
|
|
106
|
-
"@umbra-privacy/codama": "
|
|
107
|
-
"@umbra-privacy/indexer-read-service-client": "
|
|
169
|
+
"@umbra-privacy/arcium-codama": "workspace:*",
|
|
170
|
+
"@umbra-privacy/umbra-codama": "workspace:*",
|
|
171
|
+
"@umbra-privacy/indexer-read-service-client": "workspace:*",
|
|
172
|
+
"@wallet-standard/core": "^1.1.0"
|
|
108
173
|
},
|
|
109
174
|
"devDependencies": {
|
|
110
175
|
"@arcium-hq/client": "0.8.3",
|
|
@@ -121,6 +186,14 @@
|
|
|
121
186
|
"typescript-eslint": "^8.55.0",
|
|
122
187
|
"vitest": "^2.1.8"
|
|
123
188
|
},
|
|
189
|
+
"peerDependencies": {
|
|
190
|
+
"@wallet-standard/core": ">=1.0.0"
|
|
191
|
+
},
|
|
192
|
+
"peerDependenciesMeta": {
|
|
193
|
+
"@wallet-standard/core": {
|
|
194
|
+
"optional": true
|
|
195
|
+
}
|
|
196
|
+
},
|
|
124
197
|
"engines": {
|
|
125
198
|
"node": ">=18.0.0"
|
|
126
199
|
},
|
|
@@ -135,17 +208,5 @@
|
|
|
135
208
|
"typescript",
|
|
136
209
|
"solana",
|
|
137
210
|
"cryptography"
|
|
138
|
-
]
|
|
139
|
-
|
|
140
|
-
"build": "tsup",
|
|
141
|
-
"build:watch": "tsup --watch",
|
|
142
|
-
"dev": "tsup --watch",
|
|
143
|
-
"clean": "rm -rf dist node_modules/.cache",
|
|
144
|
-
"typecheck": "tsc --noEmit",
|
|
145
|
-
"lint": "eslint . --max-warnings 0",
|
|
146
|
-
"lint:fix": "eslint . --fix",
|
|
147
|
-
"test": "vitest run",
|
|
148
|
-
"test:watch": "vitest",
|
|
149
|
-
"test:coverage": "vitest run --coverage"
|
|
150
|
-
}
|
|
151
|
-
}
|
|
211
|
+
]
|
|
212
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/constants/arcium.ts"],"names":[],"mappings":";AAeO,IAAM,uBAAA,GAA0B;AAQhC,IAAM,mBAAA,GAAsB;AAQ5B,IAAM,qBAAA,GAAwB;AAQ9B,IAAM,uBAAA,GAA0B;AAQhC,IAAM,oBAAA,GAAuB;AAQ7B,IAAM,mBAAA,GAAsB;AAQ5B,IAAM,yBAAA,GAA4B","file":"chunk-2Q75CQQJ.js","sourcesContent":["/**\n * Arcium Protocol Constants\n *\n * This module contains constants for interacting with the Arcium protocol,\n * including the program address and PDA seed prefixes for various account types.\n *\n * @module constants/arcium\n */\n\n/**\n * Seed prefix for MXE account PDAs.\n *\n * @remarks\n * Used to derive the MXE account address for a given program.\n */\nexport const ARCIUM_MXE_ACCOUNT_SEED = \"MXEAccount\";\n\n/**\n * Seed prefix for mempool account PDAs.\n *\n * @remarks\n * The mempool stores pending computations for a cluster.\n */\nexport const ARCIUM_MEMPOOL_SEED = \"Mempool\";\n\n/**\n * Seed prefix for executing pool account PDAs.\n *\n * @remarks\n * The executing pool tracks computations currently being processed.\n */\nexport const ARCIUM_EXEC_POOL_SEED = \"Execpool\";\n\n/**\n * Seed prefix for computation account PDAs.\n *\n * @remarks\n * Each computation gets its own account to track state and results.\n */\nexport const ARCIUM_COMPUTATION_SEED = \"ComputationAccount\";\n\n/**\n * Seed prefix for computation definition account PDAs.\n *\n * @remarks\n * Computation definitions describe the circuit/program to be executed.\n */\nexport const ARCIUM_COMP_DEF_SEED = \"ComputationDefinitionAccount\";\n\n/**\n * Seed prefix for cluster account PDAs.\n *\n * @remarks\n * Clusters are groups of MXE nodes that process computations together.\n */\nexport const ARCIUM_CLUSTER_SEED = \"Cluster\";\n\n/**\n * Buffer size for cluster/computation offsets in bytes.\n *\n * @remarks\n * Offsets are encoded as 4-byte little-endian unsigned integers.\n */\nexport const ARCIUM_OFFSET_BUFFER_SIZE = 4;\n"]}
|