@permissionless-technologies/upp-sdk 0.2.1 → 0.3.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.
Files changed (68) hide show
  1. package/dist/chunk-3YZSIYJC.cjs +154 -0
  2. package/dist/chunk-3YZSIYJC.cjs.map +1 -0
  3. package/dist/{chunk-64RTC5ML.js → chunk-4EDTZQ44.js} +2 -2
  4. package/dist/{chunk-64RTC5ML.js.map → chunk-4EDTZQ44.js.map} +1 -1
  5. package/dist/{chunk-43U5RGYE.cjs → chunk-4EMXHMJ5.cjs} +2 -2
  6. package/dist/{chunk-43U5RGYE.cjs.map → chunk-4EMXHMJ5.cjs.map} +1 -1
  7. package/dist/{chunk-46GGZ3TC.cjs → chunk-4MOXKZSE.cjs} +17 -17
  8. package/dist/{chunk-46GGZ3TC.cjs.map → chunk-4MOXKZSE.cjs.map} +1 -1
  9. package/dist/{chunk-C7QQOJ7T.cjs → chunk-52PPS4AT.cjs} +4 -22
  10. package/dist/chunk-52PPS4AT.cjs.map +1 -0
  11. package/dist/{chunk-CZ23JMAQ.js → chunk-56LZ2RV6.js} +17 -17
  12. package/dist/{chunk-CZ23JMAQ.js.map → chunk-56LZ2RV6.js.map} +1 -1
  13. package/dist/{chunk-NUIQHTSA.js → chunk-7F75NGNB.js} +76 -3
  14. package/dist/chunk-7F75NGNB.js.map +1 -0
  15. package/dist/{chunk-SGZZL5AC.js → chunk-GS4UCMW4.js} +4 -20
  16. package/dist/chunk-GS4UCMW4.js.map +1 -0
  17. package/dist/{chunk-GXZ3MTCQ.cjs → chunk-IYOR5TCO.cjs} +77 -2
  18. package/dist/chunk-IYOR5TCO.cjs.map +1 -0
  19. package/dist/{chunk-GQV47S3N.cjs → chunk-PTDVGWHU.cjs} +2 -2
  20. package/dist/{chunk-GQV47S3N.cjs.map → chunk-PTDVGWHU.cjs.map} +1 -1
  21. package/dist/{chunk-NCW4AE7L.js → chunk-UAVWYXDN.js} +2 -2
  22. package/dist/chunk-UAVWYXDN.js.map +1 -0
  23. package/dist/chunk-XBNYAAMU.js +140 -0
  24. package/dist/chunk-XBNYAAMU.js.map +1 -0
  25. package/dist/core/index.cjs +68 -62
  26. package/dist/core/index.d.cts +3 -2
  27. package/dist/core/index.d.ts +3 -2
  28. package/dist/core/index.js +6 -4
  29. package/dist/{index-BGvapsJy.d.cts → index-B45-okum.d.cts} +19 -3
  30. package/dist/{index-ChGaGPzP.d.ts → index-BIcvNMPt.d.ts} +19 -3
  31. package/dist/{index-BBzvvrhG.d.ts → index-DwAJBoU7.d.ts} +122 -96
  32. package/dist/{index-C-jSNw6j.d.cts → index-o-Ds3YAq.d.cts} +122 -96
  33. package/dist/index.cjs +229 -176
  34. package/dist/index.cjs.map +1 -1
  35. package/dist/index.d.cts +4 -3
  36. package/dist/index.d.ts +4 -3
  37. package/dist/index.js +8 -7
  38. package/dist/index.js.map +1 -1
  39. package/dist/indexer/index.cjs +6 -6
  40. package/dist/indexer/index.d.cts +6 -5
  41. package/dist/indexer/index.d.ts +6 -5
  42. package/dist/indexer/index.js +1 -1
  43. package/dist/react/index.cjs +107 -102
  44. package/dist/react/index.cjs.map +1 -1
  45. package/dist/react/index.d.cts +2 -2
  46. package/dist/react/index.d.ts +2 -2
  47. package/dist/react/index.js +100 -95
  48. package/dist/react/index.js.map +1 -1
  49. package/dist/stark-BcTD1OaJ.d.cts +185 -0
  50. package/dist/stark-BcTD1OaJ.d.ts +185 -0
  51. package/dist/{transfer-4OF2JWXX.js → transfer-4GJJTWMH.js} +4 -4
  52. package/dist/{transfer-4OF2JWXX.js.map → transfer-4GJJTWMH.js.map} +1 -1
  53. package/dist/{transfer-DKZuJnRM.d.cts → transfer-BzyernBd.d.cts} +1 -3
  54. package/dist/{transfer-SA4NHNJ7.cjs → transfer-CLBDOA63.cjs} +10 -10
  55. package/dist/{transfer-SA4NHNJ7.cjs.map → transfer-CLBDOA63.cjs.map} +1 -1
  56. package/dist/{transfer-BlmbO-Rd.d.ts → transfer-sqS6mJko.d.ts} +1 -3
  57. package/dist/utils/index.cjs +54 -1
  58. package/dist/utils/index.d.cts +2 -0
  59. package/dist/utils/index.d.ts +2 -0
  60. package/dist/utils/index.js +2 -1
  61. package/package.json +2 -2
  62. package/src/deployments/11155111.json +13 -13
  63. package/src/deployments/31337.json +1 -1
  64. package/dist/chunk-C7QQOJ7T.cjs.map +0 -1
  65. package/dist/chunk-GXZ3MTCQ.cjs.map +0 -1
  66. package/dist/chunk-NCW4AE7L.js.map +0 -1
  67. package/dist/chunk-NUIQHTSA.js.map +0 -1
  68. package/dist/chunk-SGZZL5AC.js.map +0 -1
@@ -1,9 +1,10 @@
1
- import { R as RpcIndexerConfig, I as Indexer, A as ADDRESS_VERSION, k as ASPMembershipProof, D as DirectAccountAdapter, l as IASPProvider, m as IAccountAdapter, n as INoteStore, a as IndexedNote, N as NoteStatus, o as NoteStore, P as ProofSystem, p as STARK_ADDRESS_VERSION, q as STARK_STEALTH_ADDRESS_PREFIX, r as STEALTH_ADDRESS_PREFIX, s as ShieldedNote, S as StorageAdapter, c as SyncResult, U as UPPClient, t as UPPClientConfig, u as computeNoteEncryptionKey, v as createNote, w as createOneTimeKeys, x as createUPPClient, y as decodeStarkStealthAddress, z as decodeStealthAddress, B as decryptNote, E as detectAddressType, F as encodeStarkStealthAddress, G as encodeStealthAddress, H as encryptNote, J as generateStarkStealthAddress, K as generateStealthAddress, M as isValidStarkStealthAddress, O as isValidStealthAddress, Q as verifyOwnership } from './index-C-jSNw6j.cjs';
2
- import { A as ASPProof, a as ASPRoot, b as ASP_TREE_DEPTH, C as CircuitArtifacts, c as CircuitType, d as Commitment, D as DEMO_ASP_ID, e as DEMO_ASP_NAME, E as EncryptedNote, M as MergeParams, f as MergeRecord, g as MerkleProofWithNote, N as NOTE_VERSION, h as Note, i as NoteWithAmount, j as Nullifier, P as Proof, k as ProofResult, R as RATE_PRECISION, S as STARK_AMOUNT_SCALE, l as STATE_TREE_DEPTH, m as SWAP_EVENTS_ABI, n as SWAP_ORDER_CANCELLED_EVENT, o as SWAP_ORDER_CLAIMED_EVENT, p as SWAP_ORDER_FILLED_EVENT, q as SWAP_ORDER_PLACED_EVENT, r as ShieldParams, s as SpendableNote, t as StarkNote, u as StarkProof, v as StarkStealthMetaAddress, w as Stealth1x2CircuitInputs, x as Stealth2x2CircuitInputs, y as StealthAddress, z as StealthCircuitInputs, B as StealthCircuitType, F as StealthMetaAddress, G as SwapFillEvent, H as SwapFillParams, I as SwapOrder, J as SwapOrderEvent, K as SwapOrderParams, T as TransferBuildResult, L as TransferContext, O as TransferParams, Q as TransferStage, U as UPPCircuitInputs, V as UPPCircuitType, W as UPPTransferCircuitInputs, X as UPPWithdrawCircuitInputs, Y as WithdrawParams, Z as buildASPTree, _ as buildTransfer, $ as buildUPPTransferCircuitInputs, a0 as computeCancelKeyHash, a1 as computeFillPercentage, a2 as computeGiveAmount, a3 as computeMultiOriginASPRoot, a4 as computeNullifier, a5 as computeRate, a6 as computeSingleOriginASPRoot, a7 as computeTakeAmount, a8 as computeTotalBuyAmount, a9 as createDemoASPRoot, aa as filterOrdersByASP, ab as filterOrdersByTokenPair, ac as formatOutputForContract, ad as formatProofForContract, ae as formatRate, af as generateASPProof, ag as generateCancelSecret, ah as generateMultiOriginASPProof, ai as generateProof, aj as generateSingleOriginASPProof, ak as generateStealthProof, al as generateUPPProof, am as getCancelSecret, an as getMerkleProofsForNotes, ao as getOwnOrderIds, ap as getStealthCircuitArtifacts, aq as getUPPCircuitArtifacts, ar as isFillerASPAccepted, as as isOrderActive, at as removeCancelSecret, au as storeCancelSecret, av as syncMerkleTree, aw as verifyASPProof, ax as verifyProof } from './transfer-DKZuJnRM.cjs';
1
+ import { R as RpcIndexerConfig, I as Indexer, A as ADDRESS_VERSION, k as ASPMembershipProof, D as DirectAccountAdapter, l as IASPProvider, m as IAccountAdapter, n as INoteStore, a as IndexedNote, N as NoteStatus, o as NoteStore, P as ProofSystem, p as STARK_ADDRESS_VERSION, q as STARK_STEALTH_ADDRESS_PREFIX, r as STEALTH_ADDRESS_PREFIX, s as ShieldedNote, t as StorableAccountAdapter, S as StorageAdapter, c as SyncResult, U as UPPClient, u as UPPClientConfig, v as computeNoteEncryptionKey, w as createNote, x as createOneTimeKeys, y as createUPPClient, z as decodeStarkStealthAddress, B as decodeStealthAddress, E as decryptNote, F as detectAddressType, G as encodeStarkStealthAddress, H as encodeStealthAddress, J as encryptNote, K as generateStarkStealthAddress, M as generateStealthAddress, O as isValidStarkStealthAddress, Q as isValidStealthAddress, T as verifyOwnership } from './index-o-Ds3YAq.cjs';
2
+ import { A as ASPProof, a as ASPRoot, b as ASP_TREE_DEPTH, C as CircuitArtifacts, c as CircuitType, d as Commitment, D as DEMO_ASP_ID, e as DEMO_ASP_NAME, E as EncryptedNote, M as MergeParams, f as MergeRecord, g as MerkleProofWithNote, N as NOTE_VERSION, h as Note, i as NoteWithAmount, j as Nullifier, P as Proof, k as ProofResult, R as RATE_PRECISION, S as STATE_TREE_DEPTH, l as SWAP_EVENTS_ABI, m as SWAP_ORDER_CANCELLED_EVENT, n as SWAP_ORDER_CLAIMED_EVENT, o as SWAP_ORDER_FILLED_EVENT, p as SWAP_ORDER_PLACED_EVENT, q as ShieldParams, r as SpendableNote, s as StarkNote, t as StarkProof, u as StarkStealthMetaAddress, v as Stealth1x2CircuitInputs, w as Stealth2x2CircuitInputs, x as StealthAddress, y as StealthCircuitInputs, z as StealthCircuitType, B as StealthMetaAddress, F as SwapFillEvent, G as SwapFillParams, H as SwapOrder, I as SwapOrderEvent, J as SwapOrderParams, T as TransferBuildResult, K as TransferContext, L as TransferParams, O as TransferStage, U as UPPCircuitInputs, Q as UPPCircuitType, V as UPPTransferCircuitInputs, W as UPPWithdrawCircuitInputs, X as WithdrawParams, Y as buildASPTree, Z as buildTransfer, _ as buildUPPTransferCircuitInputs, $ as computeCancelKeyHash, a0 as computeFillPercentage, a1 as computeGiveAmount, a2 as computeMultiOriginASPRoot, a3 as computeNullifier, a4 as computeRate, a5 as computeSingleOriginASPRoot, a6 as computeTakeAmount, a7 as computeTotalBuyAmount, a8 as createDemoASPRoot, a9 as filterOrdersByASP, aa as filterOrdersByTokenPair, ab as formatOutputForContract, ac as formatProofForContract, ad as formatRate, ae as generateASPProof, af as generateCancelSecret, ag as generateMultiOriginASPProof, ah as generateProof, ai as generateSingleOriginASPProof, aj as generateStealthProof, ak as generateUPPProof, al as getCancelSecret, am as getMerkleProofsForNotes, an as getOwnOrderIds, ao as getStealthCircuitArtifacts, ap as getUPPCircuitArtifacts, aq as isFillerASPAccepted, ar as isOrderActive, as as removeCancelSecret, at as storeCancelSecret, au as syncMerkleTree, av as verifyASPProof, aw as verifyProof } from './transfer-BzyernBd.cjs';
3
3
  import { A as AuditKeyExport, D as DEFAULT_KEY_DERIVATION_CONFIG, a as DualMasterKeys, K as KeyDerivationConfig, M as MasterKeys, O as OneTimeKeys, P as ProvingSystem, S as SerializedKeys, b as StarkMasterKeys, c as StealthAddressComponents, T as TransactionViewingKey } from './types-CJSbxv4q.cjs';
4
4
  import { NoteReference, deriveDualKeysFromSignature, deriveKeysFromSignature, deriveNullifierKey, derivePerNoteKey, derivePerNoteKeyFromKeys, deriveStarkKeysFromSignature, deriveStarkPerNoteKey, deriveStarkPerNoteKeyFromKeys, exportViewingKeysForAudit, getKeyDerivationMessage, getViewingKeyFromExport, validateAuditKeyExport, verifyKeysMatchSignature } from './keys/index.cjs';
5
5
  import { BABYJUBJUB_SUBORDER, FIELD_PRIME, addressToField, bigintToBytes, bytesToBigint, bytesToHex, fieldToAddress, hexToBytes, isValidFieldElement, poseidon, poseidonHash, poseidonScalar, randomBytes, randomFieldElement, toFieldElement } from './utils/index.cjs';
6
6
  import { M as MAX_TREE_DEPTH, a as MerkleProof, b as MerkleTree, P as Point, c as addPoints, d as buildMerkleTree, e as computeSharedSecret, f as deriveDecryptionViewingKey, g as deriveEncryptionViewingKey, h as getBasePoint, i as getMerkleProof, j as getSubOrder, k as isOnCurve, m as mulPointScalar, p as packPoint, l as pointToTuple, n as privateToPublic, t as tupleToPoint, v as verifyMerkleProof } from './merkle-mteVOlDf.cjs';
7
+ import { S as STARK_AMOUNT_SCALE, a as STARK_ASP_TREE_DEPTH, b as STARK_STATE_TREE_DEPTH, c as StarkTransferWitness, d as StarkWithdrawWitness, e as addressToM31, f as buildStarkTransferWitness, g as buildStarkWithdrawWitness, h as computeTransferPublicInputsSeed, i as computeWithdrawPublicInputsSeed, j as isStarkAligned, p as packM31Digest, s as scaleAmountForStark, k as splitSecretToM31Limbs, t as truncateToM31 } from './stark-BcTD1OaJ.cjs';
7
8
  import { D as DIGEST_SIZE, a as M31Digest, M as M31Secret, b as M31_P, S as SECRET_LIMBS, c as computeStarkCommitment, d as computeStarkNullifier, e as computeStarkOwnerHash, k as keccakHashTwo, f as keccakM31, s as splitToM31Limbs } from './keccak-m31-B_AqBbRF.cjs';
8
9
  import { ASP_REGISTRY_HUB_ABI } from '@permissionless-technologies/upc-sdk';
9
10
  import { Address } from 'viem';
@@ -2651,6 +2652,8 @@ declare const ___index_js_RpcIndexerConfig: typeof RpcIndexerConfig;
2651
2652
  declare const ___index_js_SECRET_LIMBS: typeof SECRET_LIMBS;
2652
2653
  declare const ___index_js_STARK_ADDRESS_VERSION: typeof STARK_ADDRESS_VERSION;
2653
2654
  declare const ___index_js_STARK_AMOUNT_SCALE: typeof STARK_AMOUNT_SCALE;
2655
+ declare const ___index_js_STARK_ASP_TREE_DEPTH: typeof STARK_ASP_TREE_DEPTH;
2656
+ declare const ___index_js_STARK_STATE_TREE_DEPTH: typeof STARK_STATE_TREE_DEPTH;
2654
2657
  declare const ___index_js_STARK_STEALTH_ADDRESS_PREFIX: typeof STARK_STEALTH_ADDRESS_PREFIX;
2655
2658
  declare const ___index_js_STATE_TREE_DEPTH: typeof STATE_TREE_DEPTH;
2656
2659
  declare const ___index_js_STEALTH_ADDRESS_PREFIX: typeof STEALTH_ADDRESS_PREFIX;
@@ -2667,6 +2670,8 @@ declare const ___index_js_StarkMasterKeys: typeof StarkMasterKeys;
2667
2670
  declare const ___index_js_StarkNote: typeof StarkNote;
2668
2671
  declare const ___index_js_StarkProof: typeof StarkProof;
2669
2672
  declare const ___index_js_StarkStealthMetaAddress: typeof StarkStealthMetaAddress;
2673
+ declare const ___index_js_StarkTransferWitness: typeof StarkTransferWitness;
2674
+ declare const ___index_js_StarkWithdrawWitness: typeof StarkWithdrawWitness;
2670
2675
  declare const ___index_js_Stealth1x2CircuitInputs: typeof Stealth1x2CircuitInputs;
2671
2676
  declare const ___index_js_Stealth2x2CircuitInputs: typeof Stealth2x2CircuitInputs;
2672
2677
  declare const ___index_js_StealthAddress: typeof StealthAddress;
@@ -2674,6 +2679,7 @@ declare const ___index_js_StealthAddressComponents: typeof StealthAddressCompone
2674
2679
  declare const ___index_js_StealthCircuitInputs: typeof StealthCircuitInputs;
2675
2680
  declare const ___index_js_StealthCircuitType: typeof StealthCircuitType;
2676
2681
  declare const ___index_js_StealthMetaAddress: typeof StealthMetaAddress;
2682
+ declare const ___index_js_StorableAccountAdapter: typeof StorableAccountAdapter;
2677
2683
  declare const ___index_js_StorageAdapter: typeof StorageAdapter;
2678
2684
  declare const ___index_js_SwapFillEvent: typeof SwapFillEvent;
2679
2685
  declare const ___index_js_SwapFillParams: typeof SwapFillParams;
@@ -2699,9 +2705,12 @@ type ___index_js_VerifierAddresses = VerifierAddresses;
2699
2705
  declare const ___index_js_WithdrawParams: typeof WithdrawParams;
2700
2706
  declare const ___index_js_addPoints: typeof addPoints;
2701
2707
  declare const ___index_js_addressToField: typeof addressToField;
2708
+ declare const ___index_js_addressToM31: typeof addressToM31;
2702
2709
  declare const ___index_js_bigintToBytes: typeof bigintToBytes;
2703
2710
  declare const ___index_js_buildASPTree: typeof buildASPTree;
2704
2711
  declare const ___index_js_buildMerkleTree: typeof buildMerkleTree;
2712
+ declare const ___index_js_buildStarkTransferWitness: typeof buildStarkTransferWitness;
2713
+ declare const ___index_js_buildStarkWithdrawWitness: typeof buildStarkWithdrawWitness;
2705
2714
  declare const ___index_js_buildTransfer: typeof buildTransfer;
2706
2715
  declare const ___index_js_buildUPPTransferCircuitInputs: typeof buildUPPTransferCircuitInputs;
2707
2716
  declare const ___index_js_bytesToBigint: typeof bytesToBigint;
@@ -2720,6 +2729,8 @@ declare const ___index_js_computeStarkNullifier: typeof computeStarkNullifier;
2720
2729
  declare const ___index_js_computeStarkOwnerHash: typeof computeStarkOwnerHash;
2721
2730
  declare const ___index_js_computeTakeAmount: typeof computeTakeAmount;
2722
2731
  declare const ___index_js_computeTotalBuyAmount: typeof computeTotalBuyAmount;
2732
+ declare const ___index_js_computeTransferPublicInputsSeed: typeof computeTransferPublicInputsSeed;
2733
+ declare const ___index_js_computeWithdrawPublicInputsSeed: typeof computeWithdrawPublicInputsSeed;
2723
2734
  declare const ___index_js_createDemoASPRoot: typeof createDemoASPRoot;
2724
2735
  declare const ___index_js_createNote: typeof createNote;
2725
2736
  declare const ___index_js_createOneTimeKeys: typeof createOneTimeKeys;
@@ -2776,6 +2787,7 @@ declare const ___index_js_hexToBytes: typeof hexToBytes;
2776
2787
  declare const ___index_js_isFillerASPAccepted: typeof isFillerASPAccepted;
2777
2788
  declare const ___index_js_isOnCurve: typeof isOnCurve;
2778
2789
  declare const ___index_js_isOrderActive: typeof isOrderActive;
2790
+ declare const ___index_js_isStarkAligned: typeof isStarkAligned;
2779
2791
  declare const ___index_js_isValidFieldElement: typeof isValidFieldElement;
2780
2792
  declare const ___index_js_isValidStarkStealthAddress: typeof isValidStarkStealthAddress;
2781
2793
  declare const ___index_js_isValidStealthAddress: typeof isValidStealthAddress;
@@ -2783,6 +2795,7 @@ declare const ___index_js_keccakHashTwo: typeof keccakHashTwo;
2783
2795
  declare const ___index_js_keccakM31: typeof keccakM31;
2784
2796
  declare const ___index_js_makeRpcIndexer: typeof makeRpcIndexer;
2785
2797
  declare const ___index_js_mulPointScalar: typeof mulPointScalar;
2798
+ declare const ___index_js_packM31Digest: typeof packM31Digest;
2786
2799
  declare const ___index_js_packPoint: typeof packPoint;
2787
2800
  declare const ___index_js_pointToTuple: typeof pointToTuple;
2788
2801
  declare const ___index_js_poseidon: typeof poseidon;
@@ -2793,10 +2806,13 @@ declare const ___index_js_randomBytes: typeof randomBytes;
2793
2806
  declare const ___index_js_randomFieldElement: typeof randomFieldElement;
2794
2807
  declare const ___index_js_registerDeployment: typeof registerDeployment;
2795
2808
  declare const ___index_js_removeCancelSecret: typeof removeCancelSecret;
2809
+ declare const ___index_js_scaleAmountForStark: typeof scaleAmountForStark;
2810
+ declare const ___index_js_splitSecretToM31Limbs: typeof splitSecretToM31Limbs;
2796
2811
  declare const ___index_js_splitToM31Limbs: typeof splitToM31Limbs;
2797
2812
  declare const ___index_js_storeCancelSecret: typeof storeCancelSecret;
2798
2813
  declare const ___index_js_syncMerkleTree: typeof syncMerkleTree;
2799
2814
  declare const ___index_js_toFieldElement: typeof toFieldElement;
2815
+ declare const ___index_js_truncateToM31: typeof truncateToM31;
2800
2816
  declare const ___index_js_tupleToPoint: typeof tupleToPoint;
2801
2817
  declare const ___index_js_validateAuditKeyExport: typeof validateAuditKeyExport;
2802
2818
  declare const ___index_js_verifyASPProof: typeof verifyASPProof;
@@ -2805,7 +2821,7 @@ declare const ___index_js_verifyMerkleProof: typeof verifyMerkleProof;
2805
2821
  declare const ___index_js_verifyOwnership: typeof verifyOwnership;
2806
2822
  declare const ___index_js_verifyProof: typeof verifyProof;
2807
2823
  declare namespace ___index_js {
2808
- export { ___index_js_ADDRESS_VERSION as ADDRESS_VERSION, ___index_js_ASPMembershipProof as ASPMembershipProof, ___index_js_ASPProof as ASPProof, ___index_js_ASPRoot as ASPRoot, ___index_js_ASP_REGISTRY_HUB_ABI as ASP_REGISTRY_HUB_ABI, ___index_js_ASP_TREE_DEPTH as ASP_TREE_DEPTH, ___index_js_AuditKeyExport as AuditKeyExport, ___index_js_BABYJUBJUB_SUBORDER as BABYJUBJUB_SUBORDER, ___index_js_CircuitArtifacts as CircuitArtifacts, ___index_js_CircuitType as CircuitType, ___index_js_Commitment as Commitment, ___index_js_DEFAULT_KEY_DERIVATION_CONFIG as DEFAULT_KEY_DERIVATION_CONFIG, ___index_js_DEMO_ASP_ID as DEMO_ASP_ID, ___index_js_DEMO_ASP_NAME as DEMO_ASP_NAME, ___index_js_DIGEST_SIZE as DIGEST_SIZE, type ___index_js_DeploymentConfig as DeploymentConfig, ___index_js_DirectAccountAdapter as DirectAccountAdapter, ___index_js_DualMasterKeys as DualMasterKeys, ___index_js_EncryptedNote as EncryptedNote, ___index_js_FIELD_PRIME as FIELD_PRIME, ___index_js_IASPProvider as IASPProvider, ___index_js_IAccountAdapter as IAccountAdapter, ___index_js_INoteStore as INoteStore, ___index_js_IndexedNote as IndexedNote, ___index_js_Indexer as Indexer, ___index_js_KeyDerivationConfig as KeyDerivationConfig, ___index_js_M31Digest as M31Digest, ___index_js_M31Secret as M31Secret, ___index_js_M31_P as M31_P, ___index_js_MAX_TREE_DEPTH as MAX_TREE_DEPTH, ___index_js_MasterKeys as MasterKeys, ___index_js_MergeParams as MergeParams, ___index_js_MergeRecord as MergeRecord, ___index_js_MerkleProof as MerkleProof, ___index_js_MerkleProofWithNote as MerkleProofWithNote, ___index_js_MerkleTree as MerkleTree, ___index_js_NOTE_VERSION as NOTE_VERSION, ___index_js_Note as Note, ___index_js_NoteReference as NoteReference, ___index_js_NoteStatus as NoteStatus, ___index_js_NoteStore as NoteStore, ___index_js_NoteWithAmount as NoteWithAmount, ___index_js_Nullifier as Nullifier, ___index_js_OneTimeKeys as OneTimeKeys, ___index_js_Point as Point, ___index_js_Proof as Proof, ___index_js_ProofResult as ProofResult, ___index_js_ProofSystem as ProofSystem, ___index_js_ProvingSystem as ProvingSystem, ___index_js_RATE_PRECISION as RATE_PRECISION, ___index_js_RpcIndexerConfig as RpcIndexerConfig, ___index_js_SECRET_LIMBS as SECRET_LIMBS, ___index_js_STARK_ADDRESS_VERSION as STARK_ADDRESS_VERSION, ___index_js_STARK_AMOUNT_SCALE as STARK_AMOUNT_SCALE, ___index_js_STARK_STEALTH_ADDRESS_PREFIX as STARK_STEALTH_ADDRESS_PREFIX, ___index_js_STATE_TREE_DEPTH as STATE_TREE_DEPTH, ___index_js_STEALTH_ADDRESS_PREFIX as STEALTH_ADDRESS_PREFIX, ___index_js_SWAP_EVENTS_ABI as SWAP_EVENTS_ABI, ___index_js_SWAP_ORDER_CANCELLED_EVENT as SWAP_ORDER_CANCELLED_EVENT, ___index_js_SWAP_ORDER_CLAIMED_EVENT as SWAP_ORDER_CLAIMED_EVENT, ___index_js_SWAP_ORDER_FILLED_EVENT as SWAP_ORDER_FILLED_EVENT, ___index_js_SWAP_ORDER_PLACED_EVENT as SWAP_ORDER_PLACED_EVENT, ___index_js_SerializedKeys as SerializedKeys, ___index_js_ShieldParams as ShieldParams, ___index_js_ShieldedNote as ShieldedNote, ___index_js_SpendableNote as SpendableNote, ___index_js_StarkMasterKeys as StarkMasterKeys, ___index_js_StarkNote as StarkNote, ___index_js_StarkProof as StarkProof, ___index_js_StarkStealthMetaAddress as StarkStealthMetaAddress, ___index_js_Stealth1x2CircuitInputs as Stealth1x2CircuitInputs, ___index_js_Stealth2x2CircuitInputs as Stealth2x2CircuitInputs, ___index_js_StealthAddress as StealthAddress, ___index_js_StealthAddressComponents as StealthAddressComponents, ___index_js_StealthCircuitInputs as StealthCircuitInputs, ___index_js_StealthCircuitType as StealthCircuitType, ___index_js_StealthMetaAddress as StealthMetaAddress, ___index_js_StorageAdapter as StorageAdapter, ___index_js_SwapFillEvent as SwapFillEvent, ___index_js_SwapFillParams as SwapFillParams, ___index_js_SwapOrder as SwapOrder, ___index_js_SwapOrderEvent as SwapOrderEvent, ___index_js_SwapOrderParams as SwapOrderParams, ___index_js_SyncResult as SyncResult, ___index_js_TEST_STABLE_TOKEN_2_ABI as TEST_STABLE_TOKEN_2_ABI, ___index_js_TEST_STABLE_TOKEN_ABI as TEST_STABLE_TOKEN_ABI, ___index_js_TransactionViewingKey as TransactionViewingKey, ___index_js_TransferBuildResult as TransferBuildResult, ___index_js_TransferContext as TransferContext, ___index_js_TransferParams as TransferParams, ___index_js_TransferStage as TransferStage, ___index_js_UNIVERSAL_PRIVATE_POOL_ABI as UNIVERSAL_PRIVATE_POOL_ABI, ___index_js_UPPCircuitInputs as UPPCircuitInputs, ___index_js_UPPCircuitType as UPPCircuitType, ___index_js_UPPClient as UPPClient, ___index_js_UPPClientConfig as UPPClientConfig, ___index_js_UPPTransferCircuitInputs as UPPTransferCircuitInputs, ___index_js_UPPWithdrawCircuitInputs as UPPWithdrawCircuitInputs, type ___index_js_VerifierAddresses as VerifierAddresses, ___index_js_WithdrawParams as WithdrawParams, ___index_js_addPoints as addPoints, ___index_js_addressToField as addressToField, ___index_js_bigintToBytes as bigintToBytes, ___index_js_buildASPTree as buildASPTree, ___index_js_buildMerkleTree as buildMerkleTree, ___index_js_buildTransfer as buildTransfer, ___index_js_buildUPPTransferCircuitInputs as buildUPPTransferCircuitInputs, ___index_js_bytesToBigint as bytesToBigint, ___index_js_bytesToHex as bytesToHex, ___index_js_computeCancelKeyHash as computeCancelKeyHash, ___index_js_computeFillPercentage as computeFillPercentage, ___index_js_computeGiveAmount as computeGiveAmount, ___index_js_computeMultiOriginASPRoot as computeMultiOriginASPRoot, ___index_js_computeNoteEncryptionKey as computeNoteEncryptionKey, ___index_js_computeNullifier as computeNullifier, ___index_js_computeRate as computeRate, ___index_js_computeSharedSecret as computeSharedSecret, ___index_js_computeSingleOriginASPRoot as computeSingleOriginASPRoot, ___index_js_computeStarkCommitment as computeStarkCommitment, ___index_js_computeStarkNullifier as computeStarkNullifier, ___index_js_computeStarkOwnerHash as computeStarkOwnerHash, ___index_js_computeTakeAmount as computeTakeAmount, ___index_js_computeTotalBuyAmount as computeTotalBuyAmount, ___index_js_createDemoASPRoot as createDemoASPRoot, ___index_js_createNote as createNote, ___index_js_createOneTimeKeys as createOneTimeKeys, ___index_js_createUPPClient as createUPPClient, ___index_js_decodeStarkStealthAddress as decodeStarkStealthAddress, ___index_js_decodeStealthAddress as decodeStealthAddress, ___index_js_decryptNote as decryptNote, ___index_js_deriveDecryptionViewingKey as deriveDecryptionViewingKey, ___index_js_deriveDualKeysFromSignature as deriveDualKeysFromSignature, ___index_js_deriveEncryptionViewingKey as deriveEncryptionViewingKey, ___index_js_deriveKeysFromSignature as deriveKeysFromSignature, ___index_js_deriveNullifierKey as deriveNullifierKey, ___index_js_derivePerNoteKey as derivePerNoteKey, ___index_js_derivePerNoteKeyFromKeys as derivePerNoteKeyFromKeys, ___index_js_deriveStarkKeysFromSignature as deriveStarkKeysFromSignature, ___index_js_deriveStarkPerNoteKey as deriveStarkPerNoteKey, ___index_js_deriveStarkPerNoteKeyFromKeys as deriveStarkPerNoteKeyFromKeys, ___index_js_detectAddressType as detectAddressType, ___index_js_encodeStarkStealthAddress as encodeStarkStealthAddress, ___index_js_encodeStealthAddress as encodeStealthAddress, ___index_js_encryptNote as encryptNote, ___index_js_exportViewingKeysForAudit as exportViewingKeysForAudit, ___index_js_fieldToAddress as fieldToAddress, ___index_js_filterOrdersByASP as filterOrdersByASP, ___index_js_filterOrdersByTokenPair as filterOrdersByTokenPair, ___index_js_formatOutputForContract as formatOutputForContract, ___index_js_formatProofForContract as formatProofForContract, ___index_js_formatRate as formatRate, ___index_js_generateASPProof as generateASPProof, ___index_js_generateCancelSecret as generateCancelSecret, ___index_js_generateMultiOriginASPProof as generateMultiOriginASPProof, ___index_js_generateProof as generateProof, ___index_js_generateSingleOriginASPProof as generateSingleOriginASPProof, ___index_js_generateStarkStealthAddress as generateStarkStealthAddress, ___index_js_generateStealthAddress as generateStealthAddress, ___index_js_generateStealthProof as generateStealthProof, ___index_js_generateUPPProof as generateUPPProof, ___index_js_getBasePoint as getBasePoint, ___index_js_getCancelSecret as getCancelSecret, ___index_js_getDeployment as getDeployment, ___index_js_getDeploymentOrThrow as getDeploymentOrThrow, ___index_js_getKeyDerivationMessage as getKeyDerivationMessage, ___index_js_getMerkleProof as getMerkleProof, ___index_js_getMerkleProofsForNotes as getMerkleProofsForNotes, ___index_js_getOwnOrderIds as getOwnOrderIds, ___index_js_getStealthCircuitArtifacts as getStealthCircuitArtifacts, ___index_js_getSubOrder as getSubOrder, ___index_js_getSupportedChainIds as getSupportedChainIds, ___index_js_getTokenAddress as getTokenAddress, ___index_js_getUPPCircuitArtifacts as getUPPCircuitArtifacts, ___index_js_getViewingKeyFromExport as getViewingKeyFromExport, ___index_js_hasDeployment as hasDeployment, ___index_js_hexToBytes as hexToBytes, ___index_js_isFillerASPAccepted as isFillerASPAccepted, ___index_js_isOnCurve as isOnCurve, ___index_js_isOrderActive as isOrderActive, ___index_js_isValidFieldElement as isValidFieldElement, ___index_js_isValidStarkStealthAddress as isValidStarkStealthAddress, ___index_js_isValidStealthAddress as isValidStealthAddress, ___index_js_keccakHashTwo as keccakHashTwo, ___index_js_keccakM31 as keccakM31, ___index_js_makeRpcIndexer as makeRpcIndexer, ___index_js_mulPointScalar as mulPointScalar, ___index_js_packPoint as packPoint, ___index_js_pointToTuple as pointToTuple, ___index_js_poseidon as poseidon, ___index_js_poseidonHash as poseidonHash, ___index_js_poseidonScalar as poseidonScalar, ___index_js_privateToPublic as privateToPublic, ___index_js_randomBytes as randomBytes, ___index_js_randomFieldElement as randomFieldElement, ___index_js_registerDeployment as registerDeployment, ___index_js_removeCancelSecret as removeCancelSecret, ___index_js_splitToM31Limbs as splitToM31Limbs, ___index_js_storeCancelSecret as storeCancelSecret, ___index_js_syncMerkleTree as syncMerkleTree, ___index_js_toFieldElement as toFieldElement, ___index_js_tupleToPoint as tupleToPoint, ___index_js_validateAuditKeyExport as validateAuditKeyExport, ___index_js_verifyASPProof as verifyASPProof, ___index_js_verifyKeysMatchSignature as verifyKeysMatchSignature, ___index_js_verifyMerkleProof as verifyMerkleProof, ___index_js_verifyOwnership as verifyOwnership, ___index_js_verifyProof as verifyProof };
2824
+ export { ___index_js_ADDRESS_VERSION as ADDRESS_VERSION, ___index_js_ASPMembershipProof as ASPMembershipProof, ___index_js_ASPProof as ASPProof, ___index_js_ASPRoot as ASPRoot, ___index_js_ASP_REGISTRY_HUB_ABI as ASP_REGISTRY_HUB_ABI, ___index_js_ASP_TREE_DEPTH as ASP_TREE_DEPTH, ___index_js_AuditKeyExport as AuditKeyExport, ___index_js_BABYJUBJUB_SUBORDER as BABYJUBJUB_SUBORDER, ___index_js_CircuitArtifacts as CircuitArtifacts, ___index_js_CircuitType as CircuitType, ___index_js_Commitment as Commitment, ___index_js_DEFAULT_KEY_DERIVATION_CONFIG as DEFAULT_KEY_DERIVATION_CONFIG, ___index_js_DEMO_ASP_ID as DEMO_ASP_ID, ___index_js_DEMO_ASP_NAME as DEMO_ASP_NAME, ___index_js_DIGEST_SIZE as DIGEST_SIZE, type ___index_js_DeploymentConfig as DeploymentConfig, ___index_js_DirectAccountAdapter as DirectAccountAdapter, ___index_js_DualMasterKeys as DualMasterKeys, ___index_js_EncryptedNote as EncryptedNote, ___index_js_FIELD_PRIME as FIELD_PRIME, ___index_js_IASPProvider as IASPProvider, ___index_js_IAccountAdapter as IAccountAdapter, ___index_js_INoteStore as INoteStore, ___index_js_IndexedNote as IndexedNote, ___index_js_Indexer as Indexer, ___index_js_KeyDerivationConfig as KeyDerivationConfig, ___index_js_M31Digest as M31Digest, ___index_js_M31Secret as M31Secret, ___index_js_M31_P as M31_P, ___index_js_MAX_TREE_DEPTH as MAX_TREE_DEPTH, ___index_js_MasterKeys as MasterKeys, ___index_js_MergeParams as MergeParams, ___index_js_MergeRecord as MergeRecord, ___index_js_MerkleProof as MerkleProof, ___index_js_MerkleProofWithNote as MerkleProofWithNote, ___index_js_MerkleTree as MerkleTree, ___index_js_NOTE_VERSION as NOTE_VERSION, ___index_js_Note as Note, ___index_js_NoteReference as NoteReference, ___index_js_NoteStatus as NoteStatus, ___index_js_NoteStore as NoteStore, ___index_js_NoteWithAmount as NoteWithAmount, ___index_js_Nullifier as Nullifier, ___index_js_OneTimeKeys as OneTimeKeys, ___index_js_Point as Point, ___index_js_Proof as Proof, ___index_js_ProofResult as ProofResult, ___index_js_ProofSystem as ProofSystem, ___index_js_ProvingSystem as ProvingSystem, ___index_js_RATE_PRECISION as RATE_PRECISION, ___index_js_RpcIndexerConfig as RpcIndexerConfig, ___index_js_SECRET_LIMBS as SECRET_LIMBS, ___index_js_STARK_ADDRESS_VERSION as STARK_ADDRESS_VERSION, ___index_js_STARK_AMOUNT_SCALE as STARK_AMOUNT_SCALE, ___index_js_STARK_ASP_TREE_DEPTH as STARK_ASP_TREE_DEPTH, ___index_js_STARK_STATE_TREE_DEPTH as STARK_STATE_TREE_DEPTH, ___index_js_STARK_STEALTH_ADDRESS_PREFIX as STARK_STEALTH_ADDRESS_PREFIX, ___index_js_STATE_TREE_DEPTH as STATE_TREE_DEPTH, ___index_js_STEALTH_ADDRESS_PREFIX as STEALTH_ADDRESS_PREFIX, ___index_js_SWAP_EVENTS_ABI as SWAP_EVENTS_ABI, ___index_js_SWAP_ORDER_CANCELLED_EVENT as SWAP_ORDER_CANCELLED_EVENT, ___index_js_SWAP_ORDER_CLAIMED_EVENT as SWAP_ORDER_CLAIMED_EVENT, ___index_js_SWAP_ORDER_FILLED_EVENT as SWAP_ORDER_FILLED_EVENT, ___index_js_SWAP_ORDER_PLACED_EVENT as SWAP_ORDER_PLACED_EVENT, ___index_js_SerializedKeys as SerializedKeys, ___index_js_ShieldParams as ShieldParams, ___index_js_ShieldedNote as ShieldedNote, ___index_js_SpendableNote as SpendableNote, ___index_js_StarkMasterKeys as StarkMasterKeys, ___index_js_StarkNote as StarkNote, ___index_js_StarkProof as StarkProof, ___index_js_StarkStealthMetaAddress as StarkStealthMetaAddress, ___index_js_StarkTransferWitness as StarkTransferWitness, ___index_js_StarkWithdrawWitness as StarkWithdrawWitness, ___index_js_Stealth1x2CircuitInputs as Stealth1x2CircuitInputs, ___index_js_Stealth2x2CircuitInputs as Stealth2x2CircuitInputs, ___index_js_StealthAddress as StealthAddress, ___index_js_StealthAddressComponents as StealthAddressComponents, ___index_js_StealthCircuitInputs as StealthCircuitInputs, ___index_js_StealthCircuitType as StealthCircuitType, ___index_js_StealthMetaAddress as StealthMetaAddress, ___index_js_StorableAccountAdapter as StorableAccountAdapter, ___index_js_StorageAdapter as StorageAdapter, ___index_js_SwapFillEvent as SwapFillEvent, ___index_js_SwapFillParams as SwapFillParams, ___index_js_SwapOrder as SwapOrder, ___index_js_SwapOrderEvent as SwapOrderEvent, ___index_js_SwapOrderParams as SwapOrderParams, ___index_js_SyncResult as SyncResult, ___index_js_TEST_STABLE_TOKEN_2_ABI as TEST_STABLE_TOKEN_2_ABI, ___index_js_TEST_STABLE_TOKEN_ABI as TEST_STABLE_TOKEN_ABI, ___index_js_TransactionViewingKey as TransactionViewingKey, ___index_js_TransferBuildResult as TransferBuildResult, ___index_js_TransferContext as TransferContext, ___index_js_TransferParams as TransferParams, ___index_js_TransferStage as TransferStage, ___index_js_UNIVERSAL_PRIVATE_POOL_ABI as UNIVERSAL_PRIVATE_POOL_ABI, ___index_js_UPPCircuitInputs as UPPCircuitInputs, ___index_js_UPPCircuitType as UPPCircuitType, ___index_js_UPPClient as UPPClient, ___index_js_UPPClientConfig as UPPClientConfig, ___index_js_UPPTransferCircuitInputs as UPPTransferCircuitInputs, ___index_js_UPPWithdrawCircuitInputs as UPPWithdrawCircuitInputs, type ___index_js_VerifierAddresses as VerifierAddresses, ___index_js_WithdrawParams as WithdrawParams, ___index_js_addPoints as addPoints, ___index_js_addressToField as addressToField, ___index_js_addressToM31 as addressToM31, ___index_js_bigintToBytes as bigintToBytes, ___index_js_buildASPTree as buildASPTree, ___index_js_buildMerkleTree as buildMerkleTree, ___index_js_buildStarkTransferWitness as buildStarkTransferWitness, ___index_js_buildStarkWithdrawWitness as buildStarkWithdrawWitness, ___index_js_buildTransfer as buildTransfer, ___index_js_buildUPPTransferCircuitInputs as buildUPPTransferCircuitInputs, ___index_js_bytesToBigint as bytesToBigint, ___index_js_bytesToHex as bytesToHex, ___index_js_computeCancelKeyHash as computeCancelKeyHash, ___index_js_computeFillPercentage as computeFillPercentage, ___index_js_computeGiveAmount as computeGiveAmount, ___index_js_computeMultiOriginASPRoot as computeMultiOriginASPRoot, ___index_js_computeNoteEncryptionKey as computeNoteEncryptionKey, ___index_js_computeNullifier as computeNullifier, ___index_js_computeRate as computeRate, ___index_js_computeSharedSecret as computeSharedSecret, ___index_js_computeSingleOriginASPRoot as computeSingleOriginASPRoot, ___index_js_computeStarkCommitment as computeStarkCommitment, ___index_js_computeStarkNullifier as computeStarkNullifier, ___index_js_computeStarkOwnerHash as computeStarkOwnerHash, ___index_js_computeTakeAmount as computeTakeAmount, ___index_js_computeTotalBuyAmount as computeTotalBuyAmount, ___index_js_computeTransferPublicInputsSeed as computeTransferPublicInputsSeed, ___index_js_computeWithdrawPublicInputsSeed as computeWithdrawPublicInputsSeed, ___index_js_createDemoASPRoot as createDemoASPRoot, ___index_js_createNote as createNote, ___index_js_createOneTimeKeys as createOneTimeKeys, ___index_js_createUPPClient as createUPPClient, ___index_js_decodeStarkStealthAddress as decodeStarkStealthAddress, ___index_js_decodeStealthAddress as decodeStealthAddress, ___index_js_decryptNote as decryptNote, ___index_js_deriveDecryptionViewingKey as deriveDecryptionViewingKey, ___index_js_deriveDualKeysFromSignature as deriveDualKeysFromSignature, ___index_js_deriveEncryptionViewingKey as deriveEncryptionViewingKey, ___index_js_deriveKeysFromSignature as deriveKeysFromSignature, ___index_js_deriveNullifierKey as deriveNullifierKey, ___index_js_derivePerNoteKey as derivePerNoteKey, ___index_js_derivePerNoteKeyFromKeys as derivePerNoteKeyFromKeys, ___index_js_deriveStarkKeysFromSignature as deriveStarkKeysFromSignature, ___index_js_deriveStarkPerNoteKey as deriveStarkPerNoteKey, ___index_js_deriveStarkPerNoteKeyFromKeys as deriveStarkPerNoteKeyFromKeys, ___index_js_detectAddressType as detectAddressType, ___index_js_encodeStarkStealthAddress as encodeStarkStealthAddress, ___index_js_encodeStealthAddress as encodeStealthAddress, ___index_js_encryptNote as encryptNote, ___index_js_exportViewingKeysForAudit as exportViewingKeysForAudit, ___index_js_fieldToAddress as fieldToAddress, ___index_js_filterOrdersByASP as filterOrdersByASP, ___index_js_filterOrdersByTokenPair as filterOrdersByTokenPair, ___index_js_formatOutputForContract as formatOutputForContract, ___index_js_formatProofForContract as formatProofForContract, ___index_js_formatRate as formatRate, ___index_js_generateASPProof as generateASPProof, ___index_js_generateCancelSecret as generateCancelSecret, ___index_js_generateMultiOriginASPProof as generateMultiOriginASPProof, ___index_js_generateProof as generateProof, ___index_js_generateSingleOriginASPProof as generateSingleOriginASPProof, ___index_js_generateStarkStealthAddress as generateStarkStealthAddress, ___index_js_generateStealthAddress as generateStealthAddress, ___index_js_generateStealthProof as generateStealthProof, ___index_js_generateUPPProof as generateUPPProof, ___index_js_getBasePoint as getBasePoint, ___index_js_getCancelSecret as getCancelSecret, ___index_js_getDeployment as getDeployment, ___index_js_getDeploymentOrThrow as getDeploymentOrThrow, ___index_js_getKeyDerivationMessage as getKeyDerivationMessage, ___index_js_getMerkleProof as getMerkleProof, ___index_js_getMerkleProofsForNotes as getMerkleProofsForNotes, ___index_js_getOwnOrderIds as getOwnOrderIds, ___index_js_getStealthCircuitArtifacts as getStealthCircuitArtifacts, ___index_js_getSubOrder as getSubOrder, ___index_js_getSupportedChainIds as getSupportedChainIds, ___index_js_getTokenAddress as getTokenAddress, ___index_js_getUPPCircuitArtifacts as getUPPCircuitArtifacts, ___index_js_getViewingKeyFromExport as getViewingKeyFromExport, ___index_js_hasDeployment as hasDeployment, ___index_js_hexToBytes as hexToBytes, ___index_js_isFillerASPAccepted as isFillerASPAccepted, ___index_js_isOnCurve as isOnCurve, ___index_js_isOrderActive as isOrderActive, ___index_js_isStarkAligned as isStarkAligned, ___index_js_isValidFieldElement as isValidFieldElement, ___index_js_isValidStarkStealthAddress as isValidStarkStealthAddress, ___index_js_isValidStealthAddress as isValidStealthAddress, ___index_js_keccakHashTwo as keccakHashTwo, ___index_js_keccakM31 as keccakM31, ___index_js_makeRpcIndexer as makeRpcIndexer, ___index_js_mulPointScalar as mulPointScalar, ___index_js_packM31Digest as packM31Digest, ___index_js_packPoint as packPoint, ___index_js_pointToTuple as pointToTuple, ___index_js_poseidon as poseidon, ___index_js_poseidonHash as poseidonHash, ___index_js_poseidonScalar as poseidonScalar, ___index_js_privateToPublic as privateToPublic, ___index_js_randomBytes as randomBytes, ___index_js_randomFieldElement as randomFieldElement, ___index_js_registerDeployment as registerDeployment, ___index_js_removeCancelSecret as removeCancelSecret, ___index_js_scaleAmountForStark as scaleAmountForStark, ___index_js_splitSecretToM31Limbs as splitSecretToM31Limbs, ___index_js_splitToM31Limbs as splitToM31Limbs, ___index_js_storeCancelSecret as storeCancelSecret, ___index_js_syncMerkleTree as syncMerkleTree, ___index_js_toFieldElement as toFieldElement, ___index_js_truncateToM31 as truncateToM31, ___index_js_tupleToPoint as tupleToPoint, ___index_js_validateAuditKeyExport as validateAuditKeyExport, ___index_js_verifyASPProof as verifyASPProof, ___index_js_verifyKeysMatchSignature as verifyKeysMatchSignature, ___index_js_verifyMerkleProof as verifyMerkleProof, ___index_js_verifyOwnership as verifyOwnership, ___index_js_verifyProof as verifyProof };
2809
2825
  }
2810
2826
 
2811
2827
  export { type DeploymentConfig as D, TEST_STABLE_TOKEN_ABI as T, UNIVERSAL_PRIVATE_POOL_ABI as U, type VerifierAddresses as V, ___index_js as _, TEST_STABLE_TOKEN_2_ABI as a, getDeploymentOrThrow as b, getSupportedChainIds as c, getTokenAddress as d, getDeployment as g, hasDeployment as h, makeRpcIndexer as m, registerDeployment as r };
@@ -1,9 +1,10 @@
1
- import { R as RpcIndexerConfig, I as Indexer, A as ADDRESS_VERSION, k as ASPMembershipProof, D as DirectAccountAdapter, l as IASPProvider, m as IAccountAdapter, n as INoteStore, a as IndexedNote, N as NoteStatus, o as NoteStore, P as ProofSystem, p as STARK_ADDRESS_VERSION, q as STARK_STEALTH_ADDRESS_PREFIX, r as STEALTH_ADDRESS_PREFIX, s as ShieldedNote, S as StorageAdapter, c as SyncResult, U as UPPClient, t as UPPClientConfig, u as computeNoteEncryptionKey, v as createNote, w as createOneTimeKeys, x as createUPPClient, y as decodeStarkStealthAddress, z as decodeStealthAddress, B as decryptNote, E as detectAddressType, F as encodeStarkStealthAddress, G as encodeStealthAddress, H as encryptNote, J as generateStarkStealthAddress, K as generateStealthAddress, M as isValidStarkStealthAddress, O as isValidStealthAddress, Q as verifyOwnership } from './index-BBzvvrhG.js';
2
- import { A as ASPProof, a as ASPRoot, b as ASP_TREE_DEPTH, C as CircuitArtifacts, c as CircuitType, d as Commitment, D as DEMO_ASP_ID, e as DEMO_ASP_NAME, E as EncryptedNote, M as MergeParams, f as MergeRecord, g as MerkleProofWithNote, N as NOTE_VERSION, h as Note, i as NoteWithAmount, j as Nullifier, P as Proof, k as ProofResult, R as RATE_PRECISION, S as STARK_AMOUNT_SCALE, l as STATE_TREE_DEPTH, m as SWAP_EVENTS_ABI, n as SWAP_ORDER_CANCELLED_EVENT, o as SWAP_ORDER_CLAIMED_EVENT, p as SWAP_ORDER_FILLED_EVENT, q as SWAP_ORDER_PLACED_EVENT, r as ShieldParams, s as SpendableNote, t as StarkNote, u as StarkProof, v as StarkStealthMetaAddress, w as Stealth1x2CircuitInputs, x as Stealth2x2CircuitInputs, y as StealthAddress, z as StealthCircuitInputs, B as StealthCircuitType, F as StealthMetaAddress, G as SwapFillEvent, H as SwapFillParams, I as SwapOrder, J as SwapOrderEvent, K as SwapOrderParams, T as TransferBuildResult, L as TransferContext, O as TransferParams, Q as TransferStage, U as UPPCircuitInputs, V as UPPCircuitType, W as UPPTransferCircuitInputs, X as UPPWithdrawCircuitInputs, Y as WithdrawParams, Z as buildASPTree, _ as buildTransfer, $ as buildUPPTransferCircuitInputs, a0 as computeCancelKeyHash, a1 as computeFillPercentage, a2 as computeGiveAmount, a3 as computeMultiOriginASPRoot, a4 as computeNullifier, a5 as computeRate, a6 as computeSingleOriginASPRoot, a7 as computeTakeAmount, a8 as computeTotalBuyAmount, a9 as createDemoASPRoot, aa as filterOrdersByASP, ab as filterOrdersByTokenPair, ac as formatOutputForContract, ad as formatProofForContract, ae as formatRate, af as generateASPProof, ag as generateCancelSecret, ah as generateMultiOriginASPProof, ai as generateProof, aj as generateSingleOriginASPProof, ak as generateStealthProof, al as generateUPPProof, am as getCancelSecret, an as getMerkleProofsForNotes, ao as getOwnOrderIds, ap as getStealthCircuitArtifacts, aq as getUPPCircuitArtifacts, ar as isFillerASPAccepted, as as isOrderActive, at as removeCancelSecret, au as storeCancelSecret, av as syncMerkleTree, aw as verifyASPProof, ax as verifyProof } from './transfer-BlmbO-Rd.js';
1
+ import { R as RpcIndexerConfig, I as Indexer, A as ADDRESS_VERSION, k as ASPMembershipProof, D as DirectAccountAdapter, l as IASPProvider, m as IAccountAdapter, n as INoteStore, a as IndexedNote, N as NoteStatus, o as NoteStore, P as ProofSystem, p as STARK_ADDRESS_VERSION, q as STARK_STEALTH_ADDRESS_PREFIX, r as STEALTH_ADDRESS_PREFIX, s as ShieldedNote, t as StorableAccountAdapter, S as StorageAdapter, c as SyncResult, U as UPPClient, u as UPPClientConfig, v as computeNoteEncryptionKey, w as createNote, x as createOneTimeKeys, y as createUPPClient, z as decodeStarkStealthAddress, B as decodeStealthAddress, E as decryptNote, F as detectAddressType, G as encodeStarkStealthAddress, H as encodeStealthAddress, J as encryptNote, K as generateStarkStealthAddress, M as generateStealthAddress, O as isValidStarkStealthAddress, Q as isValidStealthAddress, T as verifyOwnership } from './index-DwAJBoU7.js';
2
+ import { A as ASPProof, a as ASPRoot, b as ASP_TREE_DEPTH, C as CircuitArtifacts, c as CircuitType, d as Commitment, D as DEMO_ASP_ID, e as DEMO_ASP_NAME, E as EncryptedNote, M as MergeParams, f as MergeRecord, g as MerkleProofWithNote, N as NOTE_VERSION, h as Note, i as NoteWithAmount, j as Nullifier, P as Proof, k as ProofResult, R as RATE_PRECISION, S as STATE_TREE_DEPTH, l as SWAP_EVENTS_ABI, m as SWAP_ORDER_CANCELLED_EVENT, n as SWAP_ORDER_CLAIMED_EVENT, o as SWAP_ORDER_FILLED_EVENT, p as SWAP_ORDER_PLACED_EVENT, q as ShieldParams, r as SpendableNote, s as StarkNote, t as StarkProof, u as StarkStealthMetaAddress, v as Stealth1x2CircuitInputs, w as Stealth2x2CircuitInputs, x as StealthAddress, y as StealthCircuitInputs, z as StealthCircuitType, B as StealthMetaAddress, F as SwapFillEvent, G as SwapFillParams, H as SwapOrder, I as SwapOrderEvent, J as SwapOrderParams, T as TransferBuildResult, K as TransferContext, L as TransferParams, O as TransferStage, U as UPPCircuitInputs, Q as UPPCircuitType, V as UPPTransferCircuitInputs, W as UPPWithdrawCircuitInputs, X as WithdrawParams, Y as buildASPTree, Z as buildTransfer, _ as buildUPPTransferCircuitInputs, $ as computeCancelKeyHash, a0 as computeFillPercentage, a1 as computeGiveAmount, a2 as computeMultiOriginASPRoot, a3 as computeNullifier, a4 as computeRate, a5 as computeSingleOriginASPRoot, a6 as computeTakeAmount, a7 as computeTotalBuyAmount, a8 as createDemoASPRoot, a9 as filterOrdersByASP, aa as filterOrdersByTokenPair, ab as formatOutputForContract, ac as formatProofForContract, ad as formatRate, ae as generateASPProof, af as generateCancelSecret, ag as generateMultiOriginASPProof, ah as generateProof, ai as generateSingleOriginASPProof, aj as generateStealthProof, ak as generateUPPProof, al as getCancelSecret, am as getMerkleProofsForNotes, an as getOwnOrderIds, ao as getStealthCircuitArtifacts, ap as getUPPCircuitArtifacts, aq as isFillerASPAccepted, ar as isOrderActive, as as removeCancelSecret, at as storeCancelSecret, au as syncMerkleTree, av as verifyASPProof, aw as verifyProof } from './transfer-sqS6mJko.js';
3
3
  import { A as AuditKeyExport, D as DEFAULT_KEY_DERIVATION_CONFIG, a as DualMasterKeys, K as KeyDerivationConfig, M as MasterKeys, O as OneTimeKeys, P as ProvingSystem, S as SerializedKeys, b as StarkMasterKeys, c as StealthAddressComponents, T as TransactionViewingKey } from './types-mLybMxNR.js';
4
4
  import { NoteReference, deriveDualKeysFromSignature, deriveKeysFromSignature, deriveNullifierKey, derivePerNoteKey, derivePerNoteKeyFromKeys, deriveStarkKeysFromSignature, deriveStarkPerNoteKey, deriveStarkPerNoteKeyFromKeys, exportViewingKeysForAudit, getKeyDerivationMessage, getViewingKeyFromExport, validateAuditKeyExport, verifyKeysMatchSignature } from './keys/index.js';
5
5
  import { BABYJUBJUB_SUBORDER, FIELD_PRIME, addressToField, bigintToBytes, bytesToBigint, bytesToHex, fieldToAddress, hexToBytes, isValidFieldElement, poseidon, poseidonHash, poseidonScalar, randomBytes, randomFieldElement, toFieldElement } from './utils/index.js';
6
6
  import { M as MAX_TREE_DEPTH, a as MerkleProof, b as MerkleTree, P as Point, c as addPoints, d as buildMerkleTree, e as computeSharedSecret, f as deriveDecryptionViewingKey, g as deriveEncryptionViewingKey, h as getBasePoint, i as getMerkleProof, j as getSubOrder, k as isOnCurve, m as mulPointScalar, p as packPoint, l as pointToTuple, n as privateToPublic, t as tupleToPoint, v as verifyMerkleProof } from './merkle-mteVOlDf.js';
7
+ import { S as STARK_AMOUNT_SCALE, a as STARK_ASP_TREE_DEPTH, b as STARK_STATE_TREE_DEPTH, c as StarkTransferWitness, d as StarkWithdrawWitness, e as addressToM31, f as buildStarkTransferWitness, g as buildStarkWithdrawWitness, h as computeTransferPublicInputsSeed, i as computeWithdrawPublicInputsSeed, j as isStarkAligned, p as packM31Digest, s as scaleAmountForStark, k as splitSecretToM31Limbs, t as truncateToM31 } from './stark-BcTD1OaJ.js';
7
8
  import { D as DIGEST_SIZE, a as M31Digest, M as M31Secret, b as M31_P, S as SECRET_LIMBS, c as computeStarkCommitment, d as computeStarkNullifier, e as computeStarkOwnerHash, k as keccakHashTwo, f as keccakM31, s as splitToM31Limbs } from './keccak-m31-B_AqBbRF.js';
8
9
  import { ASP_REGISTRY_HUB_ABI } from '@permissionless-technologies/upc-sdk';
9
10
  import { Address } from 'viem';
@@ -2651,6 +2652,8 @@ declare const ___index_js_RpcIndexerConfig: typeof RpcIndexerConfig;
2651
2652
  declare const ___index_js_SECRET_LIMBS: typeof SECRET_LIMBS;
2652
2653
  declare const ___index_js_STARK_ADDRESS_VERSION: typeof STARK_ADDRESS_VERSION;
2653
2654
  declare const ___index_js_STARK_AMOUNT_SCALE: typeof STARK_AMOUNT_SCALE;
2655
+ declare const ___index_js_STARK_ASP_TREE_DEPTH: typeof STARK_ASP_TREE_DEPTH;
2656
+ declare const ___index_js_STARK_STATE_TREE_DEPTH: typeof STARK_STATE_TREE_DEPTH;
2654
2657
  declare const ___index_js_STARK_STEALTH_ADDRESS_PREFIX: typeof STARK_STEALTH_ADDRESS_PREFIX;
2655
2658
  declare const ___index_js_STATE_TREE_DEPTH: typeof STATE_TREE_DEPTH;
2656
2659
  declare const ___index_js_STEALTH_ADDRESS_PREFIX: typeof STEALTH_ADDRESS_PREFIX;
@@ -2667,6 +2670,8 @@ declare const ___index_js_StarkMasterKeys: typeof StarkMasterKeys;
2667
2670
  declare const ___index_js_StarkNote: typeof StarkNote;
2668
2671
  declare const ___index_js_StarkProof: typeof StarkProof;
2669
2672
  declare const ___index_js_StarkStealthMetaAddress: typeof StarkStealthMetaAddress;
2673
+ declare const ___index_js_StarkTransferWitness: typeof StarkTransferWitness;
2674
+ declare const ___index_js_StarkWithdrawWitness: typeof StarkWithdrawWitness;
2670
2675
  declare const ___index_js_Stealth1x2CircuitInputs: typeof Stealth1x2CircuitInputs;
2671
2676
  declare const ___index_js_Stealth2x2CircuitInputs: typeof Stealth2x2CircuitInputs;
2672
2677
  declare const ___index_js_StealthAddress: typeof StealthAddress;
@@ -2674,6 +2679,7 @@ declare const ___index_js_StealthAddressComponents: typeof StealthAddressCompone
2674
2679
  declare const ___index_js_StealthCircuitInputs: typeof StealthCircuitInputs;
2675
2680
  declare const ___index_js_StealthCircuitType: typeof StealthCircuitType;
2676
2681
  declare const ___index_js_StealthMetaAddress: typeof StealthMetaAddress;
2682
+ declare const ___index_js_StorableAccountAdapter: typeof StorableAccountAdapter;
2677
2683
  declare const ___index_js_StorageAdapter: typeof StorageAdapter;
2678
2684
  declare const ___index_js_SwapFillEvent: typeof SwapFillEvent;
2679
2685
  declare const ___index_js_SwapFillParams: typeof SwapFillParams;
@@ -2699,9 +2705,12 @@ type ___index_js_VerifierAddresses = VerifierAddresses;
2699
2705
  declare const ___index_js_WithdrawParams: typeof WithdrawParams;
2700
2706
  declare const ___index_js_addPoints: typeof addPoints;
2701
2707
  declare const ___index_js_addressToField: typeof addressToField;
2708
+ declare const ___index_js_addressToM31: typeof addressToM31;
2702
2709
  declare const ___index_js_bigintToBytes: typeof bigintToBytes;
2703
2710
  declare const ___index_js_buildASPTree: typeof buildASPTree;
2704
2711
  declare const ___index_js_buildMerkleTree: typeof buildMerkleTree;
2712
+ declare const ___index_js_buildStarkTransferWitness: typeof buildStarkTransferWitness;
2713
+ declare const ___index_js_buildStarkWithdrawWitness: typeof buildStarkWithdrawWitness;
2705
2714
  declare const ___index_js_buildTransfer: typeof buildTransfer;
2706
2715
  declare const ___index_js_buildUPPTransferCircuitInputs: typeof buildUPPTransferCircuitInputs;
2707
2716
  declare const ___index_js_bytesToBigint: typeof bytesToBigint;
@@ -2720,6 +2729,8 @@ declare const ___index_js_computeStarkNullifier: typeof computeStarkNullifier;
2720
2729
  declare const ___index_js_computeStarkOwnerHash: typeof computeStarkOwnerHash;
2721
2730
  declare const ___index_js_computeTakeAmount: typeof computeTakeAmount;
2722
2731
  declare const ___index_js_computeTotalBuyAmount: typeof computeTotalBuyAmount;
2732
+ declare const ___index_js_computeTransferPublicInputsSeed: typeof computeTransferPublicInputsSeed;
2733
+ declare const ___index_js_computeWithdrawPublicInputsSeed: typeof computeWithdrawPublicInputsSeed;
2723
2734
  declare const ___index_js_createDemoASPRoot: typeof createDemoASPRoot;
2724
2735
  declare const ___index_js_createNote: typeof createNote;
2725
2736
  declare const ___index_js_createOneTimeKeys: typeof createOneTimeKeys;
@@ -2776,6 +2787,7 @@ declare const ___index_js_hexToBytes: typeof hexToBytes;
2776
2787
  declare const ___index_js_isFillerASPAccepted: typeof isFillerASPAccepted;
2777
2788
  declare const ___index_js_isOnCurve: typeof isOnCurve;
2778
2789
  declare const ___index_js_isOrderActive: typeof isOrderActive;
2790
+ declare const ___index_js_isStarkAligned: typeof isStarkAligned;
2779
2791
  declare const ___index_js_isValidFieldElement: typeof isValidFieldElement;
2780
2792
  declare const ___index_js_isValidStarkStealthAddress: typeof isValidStarkStealthAddress;
2781
2793
  declare const ___index_js_isValidStealthAddress: typeof isValidStealthAddress;
@@ -2783,6 +2795,7 @@ declare const ___index_js_keccakHashTwo: typeof keccakHashTwo;
2783
2795
  declare const ___index_js_keccakM31: typeof keccakM31;
2784
2796
  declare const ___index_js_makeRpcIndexer: typeof makeRpcIndexer;
2785
2797
  declare const ___index_js_mulPointScalar: typeof mulPointScalar;
2798
+ declare const ___index_js_packM31Digest: typeof packM31Digest;
2786
2799
  declare const ___index_js_packPoint: typeof packPoint;
2787
2800
  declare const ___index_js_pointToTuple: typeof pointToTuple;
2788
2801
  declare const ___index_js_poseidon: typeof poseidon;
@@ -2793,10 +2806,13 @@ declare const ___index_js_randomBytes: typeof randomBytes;
2793
2806
  declare const ___index_js_randomFieldElement: typeof randomFieldElement;
2794
2807
  declare const ___index_js_registerDeployment: typeof registerDeployment;
2795
2808
  declare const ___index_js_removeCancelSecret: typeof removeCancelSecret;
2809
+ declare const ___index_js_scaleAmountForStark: typeof scaleAmountForStark;
2810
+ declare const ___index_js_splitSecretToM31Limbs: typeof splitSecretToM31Limbs;
2796
2811
  declare const ___index_js_splitToM31Limbs: typeof splitToM31Limbs;
2797
2812
  declare const ___index_js_storeCancelSecret: typeof storeCancelSecret;
2798
2813
  declare const ___index_js_syncMerkleTree: typeof syncMerkleTree;
2799
2814
  declare const ___index_js_toFieldElement: typeof toFieldElement;
2815
+ declare const ___index_js_truncateToM31: typeof truncateToM31;
2800
2816
  declare const ___index_js_tupleToPoint: typeof tupleToPoint;
2801
2817
  declare const ___index_js_validateAuditKeyExport: typeof validateAuditKeyExport;
2802
2818
  declare const ___index_js_verifyASPProof: typeof verifyASPProof;
@@ -2805,7 +2821,7 @@ declare const ___index_js_verifyMerkleProof: typeof verifyMerkleProof;
2805
2821
  declare const ___index_js_verifyOwnership: typeof verifyOwnership;
2806
2822
  declare const ___index_js_verifyProof: typeof verifyProof;
2807
2823
  declare namespace ___index_js {
2808
- export { ___index_js_ADDRESS_VERSION as ADDRESS_VERSION, ___index_js_ASPMembershipProof as ASPMembershipProof, ___index_js_ASPProof as ASPProof, ___index_js_ASPRoot as ASPRoot, ___index_js_ASP_REGISTRY_HUB_ABI as ASP_REGISTRY_HUB_ABI, ___index_js_ASP_TREE_DEPTH as ASP_TREE_DEPTH, ___index_js_AuditKeyExport as AuditKeyExport, ___index_js_BABYJUBJUB_SUBORDER as BABYJUBJUB_SUBORDER, ___index_js_CircuitArtifacts as CircuitArtifacts, ___index_js_CircuitType as CircuitType, ___index_js_Commitment as Commitment, ___index_js_DEFAULT_KEY_DERIVATION_CONFIG as DEFAULT_KEY_DERIVATION_CONFIG, ___index_js_DEMO_ASP_ID as DEMO_ASP_ID, ___index_js_DEMO_ASP_NAME as DEMO_ASP_NAME, ___index_js_DIGEST_SIZE as DIGEST_SIZE, type ___index_js_DeploymentConfig as DeploymentConfig, ___index_js_DirectAccountAdapter as DirectAccountAdapter, ___index_js_DualMasterKeys as DualMasterKeys, ___index_js_EncryptedNote as EncryptedNote, ___index_js_FIELD_PRIME as FIELD_PRIME, ___index_js_IASPProvider as IASPProvider, ___index_js_IAccountAdapter as IAccountAdapter, ___index_js_INoteStore as INoteStore, ___index_js_IndexedNote as IndexedNote, ___index_js_Indexer as Indexer, ___index_js_KeyDerivationConfig as KeyDerivationConfig, ___index_js_M31Digest as M31Digest, ___index_js_M31Secret as M31Secret, ___index_js_M31_P as M31_P, ___index_js_MAX_TREE_DEPTH as MAX_TREE_DEPTH, ___index_js_MasterKeys as MasterKeys, ___index_js_MergeParams as MergeParams, ___index_js_MergeRecord as MergeRecord, ___index_js_MerkleProof as MerkleProof, ___index_js_MerkleProofWithNote as MerkleProofWithNote, ___index_js_MerkleTree as MerkleTree, ___index_js_NOTE_VERSION as NOTE_VERSION, ___index_js_Note as Note, ___index_js_NoteReference as NoteReference, ___index_js_NoteStatus as NoteStatus, ___index_js_NoteStore as NoteStore, ___index_js_NoteWithAmount as NoteWithAmount, ___index_js_Nullifier as Nullifier, ___index_js_OneTimeKeys as OneTimeKeys, ___index_js_Point as Point, ___index_js_Proof as Proof, ___index_js_ProofResult as ProofResult, ___index_js_ProofSystem as ProofSystem, ___index_js_ProvingSystem as ProvingSystem, ___index_js_RATE_PRECISION as RATE_PRECISION, ___index_js_RpcIndexerConfig as RpcIndexerConfig, ___index_js_SECRET_LIMBS as SECRET_LIMBS, ___index_js_STARK_ADDRESS_VERSION as STARK_ADDRESS_VERSION, ___index_js_STARK_AMOUNT_SCALE as STARK_AMOUNT_SCALE, ___index_js_STARK_STEALTH_ADDRESS_PREFIX as STARK_STEALTH_ADDRESS_PREFIX, ___index_js_STATE_TREE_DEPTH as STATE_TREE_DEPTH, ___index_js_STEALTH_ADDRESS_PREFIX as STEALTH_ADDRESS_PREFIX, ___index_js_SWAP_EVENTS_ABI as SWAP_EVENTS_ABI, ___index_js_SWAP_ORDER_CANCELLED_EVENT as SWAP_ORDER_CANCELLED_EVENT, ___index_js_SWAP_ORDER_CLAIMED_EVENT as SWAP_ORDER_CLAIMED_EVENT, ___index_js_SWAP_ORDER_FILLED_EVENT as SWAP_ORDER_FILLED_EVENT, ___index_js_SWAP_ORDER_PLACED_EVENT as SWAP_ORDER_PLACED_EVENT, ___index_js_SerializedKeys as SerializedKeys, ___index_js_ShieldParams as ShieldParams, ___index_js_ShieldedNote as ShieldedNote, ___index_js_SpendableNote as SpendableNote, ___index_js_StarkMasterKeys as StarkMasterKeys, ___index_js_StarkNote as StarkNote, ___index_js_StarkProof as StarkProof, ___index_js_StarkStealthMetaAddress as StarkStealthMetaAddress, ___index_js_Stealth1x2CircuitInputs as Stealth1x2CircuitInputs, ___index_js_Stealth2x2CircuitInputs as Stealth2x2CircuitInputs, ___index_js_StealthAddress as StealthAddress, ___index_js_StealthAddressComponents as StealthAddressComponents, ___index_js_StealthCircuitInputs as StealthCircuitInputs, ___index_js_StealthCircuitType as StealthCircuitType, ___index_js_StealthMetaAddress as StealthMetaAddress, ___index_js_StorageAdapter as StorageAdapter, ___index_js_SwapFillEvent as SwapFillEvent, ___index_js_SwapFillParams as SwapFillParams, ___index_js_SwapOrder as SwapOrder, ___index_js_SwapOrderEvent as SwapOrderEvent, ___index_js_SwapOrderParams as SwapOrderParams, ___index_js_SyncResult as SyncResult, ___index_js_TEST_STABLE_TOKEN_2_ABI as TEST_STABLE_TOKEN_2_ABI, ___index_js_TEST_STABLE_TOKEN_ABI as TEST_STABLE_TOKEN_ABI, ___index_js_TransactionViewingKey as TransactionViewingKey, ___index_js_TransferBuildResult as TransferBuildResult, ___index_js_TransferContext as TransferContext, ___index_js_TransferParams as TransferParams, ___index_js_TransferStage as TransferStage, ___index_js_UNIVERSAL_PRIVATE_POOL_ABI as UNIVERSAL_PRIVATE_POOL_ABI, ___index_js_UPPCircuitInputs as UPPCircuitInputs, ___index_js_UPPCircuitType as UPPCircuitType, ___index_js_UPPClient as UPPClient, ___index_js_UPPClientConfig as UPPClientConfig, ___index_js_UPPTransferCircuitInputs as UPPTransferCircuitInputs, ___index_js_UPPWithdrawCircuitInputs as UPPWithdrawCircuitInputs, type ___index_js_VerifierAddresses as VerifierAddresses, ___index_js_WithdrawParams as WithdrawParams, ___index_js_addPoints as addPoints, ___index_js_addressToField as addressToField, ___index_js_bigintToBytes as bigintToBytes, ___index_js_buildASPTree as buildASPTree, ___index_js_buildMerkleTree as buildMerkleTree, ___index_js_buildTransfer as buildTransfer, ___index_js_buildUPPTransferCircuitInputs as buildUPPTransferCircuitInputs, ___index_js_bytesToBigint as bytesToBigint, ___index_js_bytesToHex as bytesToHex, ___index_js_computeCancelKeyHash as computeCancelKeyHash, ___index_js_computeFillPercentage as computeFillPercentage, ___index_js_computeGiveAmount as computeGiveAmount, ___index_js_computeMultiOriginASPRoot as computeMultiOriginASPRoot, ___index_js_computeNoteEncryptionKey as computeNoteEncryptionKey, ___index_js_computeNullifier as computeNullifier, ___index_js_computeRate as computeRate, ___index_js_computeSharedSecret as computeSharedSecret, ___index_js_computeSingleOriginASPRoot as computeSingleOriginASPRoot, ___index_js_computeStarkCommitment as computeStarkCommitment, ___index_js_computeStarkNullifier as computeStarkNullifier, ___index_js_computeStarkOwnerHash as computeStarkOwnerHash, ___index_js_computeTakeAmount as computeTakeAmount, ___index_js_computeTotalBuyAmount as computeTotalBuyAmount, ___index_js_createDemoASPRoot as createDemoASPRoot, ___index_js_createNote as createNote, ___index_js_createOneTimeKeys as createOneTimeKeys, ___index_js_createUPPClient as createUPPClient, ___index_js_decodeStarkStealthAddress as decodeStarkStealthAddress, ___index_js_decodeStealthAddress as decodeStealthAddress, ___index_js_decryptNote as decryptNote, ___index_js_deriveDecryptionViewingKey as deriveDecryptionViewingKey, ___index_js_deriveDualKeysFromSignature as deriveDualKeysFromSignature, ___index_js_deriveEncryptionViewingKey as deriveEncryptionViewingKey, ___index_js_deriveKeysFromSignature as deriveKeysFromSignature, ___index_js_deriveNullifierKey as deriveNullifierKey, ___index_js_derivePerNoteKey as derivePerNoteKey, ___index_js_derivePerNoteKeyFromKeys as derivePerNoteKeyFromKeys, ___index_js_deriveStarkKeysFromSignature as deriveStarkKeysFromSignature, ___index_js_deriveStarkPerNoteKey as deriveStarkPerNoteKey, ___index_js_deriveStarkPerNoteKeyFromKeys as deriveStarkPerNoteKeyFromKeys, ___index_js_detectAddressType as detectAddressType, ___index_js_encodeStarkStealthAddress as encodeStarkStealthAddress, ___index_js_encodeStealthAddress as encodeStealthAddress, ___index_js_encryptNote as encryptNote, ___index_js_exportViewingKeysForAudit as exportViewingKeysForAudit, ___index_js_fieldToAddress as fieldToAddress, ___index_js_filterOrdersByASP as filterOrdersByASP, ___index_js_filterOrdersByTokenPair as filterOrdersByTokenPair, ___index_js_formatOutputForContract as formatOutputForContract, ___index_js_formatProofForContract as formatProofForContract, ___index_js_formatRate as formatRate, ___index_js_generateASPProof as generateASPProof, ___index_js_generateCancelSecret as generateCancelSecret, ___index_js_generateMultiOriginASPProof as generateMultiOriginASPProof, ___index_js_generateProof as generateProof, ___index_js_generateSingleOriginASPProof as generateSingleOriginASPProof, ___index_js_generateStarkStealthAddress as generateStarkStealthAddress, ___index_js_generateStealthAddress as generateStealthAddress, ___index_js_generateStealthProof as generateStealthProof, ___index_js_generateUPPProof as generateUPPProof, ___index_js_getBasePoint as getBasePoint, ___index_js_getCancelSecret as getCancelSecret, ___index_js_getDeployment as getDeployment, ___index_js_getDeploymentOrThrow as getDeploymentOrThrow, ___index_js_getKeyDerivationMessage as getKeyDerivationMessage, ___index_js_getMerkleProof as getMerkleProof, ___index_js_getMerkleProofsForNotes as getMerkleProofsForNotes, ___index_js_getOwnOrderIds as getOwnOrderIds, ___index_js_getStealthCircuitArtifacts as getStealthCircuitArtifacts, ___index_js_getSubOrder as getSubOrder, ___index_js_getSupportedChainIds as getSupportedChainIds, ___index_js_getTokenAddress as getTokenAddress, ___index_js_getUPPCircuitArtifacts as getUPPCircuitArtifacts, ___index_js_getViewingKeyFromExport as getViewingKeyFromExport, ___index_js_hasDeployment as hasDeployment, ___index_js_hexToBytes as hexToBytes, ___index_js_isFillerASPAccepted as isFillerASPAccepted, ___index_js_isOnCurve as isOnCurve, ___index_js_isOrderActive as isOrderActive, ___index_js_isValidFieldElement as isValidFieldElement, ___index_js_isValidStarkStealthAddress as isValidStarkStealthAddress, ___index_js_isValidStealthAddress as isValidStealthAddress, ___index_js_keccakHashTwo as keccakHashTwo, ___index_js_keccakM31 as keccakM31, ___index_js_makeRpcIndexer as makeRpcIndexer, ___index_js_mulPointScalar as mulPointScalar, ___index_js_packPoint as packPoint, ___index_js_pointToTuple as pointToTuple, ___index_js_poseidon as poseidon, ___index_js_poseidonHash as poseidonHash, ___index_js_poseidonScalar as poseidonScalar, ___index_js_privateToPublic as privateToPublic, ___index_js_randomBytes as randomBytes, ___index_js_randomFieldElement as randomFieldElement, ___index_js_registerDeployment as registerDeployment, ___index_js_removeCancelSecret as removeCancelSecret, ___index_js_splitToM31Limbs as splitToM31Limbs, ___index_js_storeCancelSecret as storeCancelSecret, ___index_js_syncMerkleTree as syncMerkleTree, ___index_js_toFieldElement as toFieldElement, ___index_js_tupleToPoint as tupleToPoint, ___index_js_validateAuditKeyExport as validateAuditKeyExport, ___index_js_verifyASPProof as verifyASPProof, ___index_js_verifyKeysMatchSignature as verifyKeysMatchSignature, ___index_js_verifyMerkleProof as verifyMerkleProof, ___index_js_verifyOwnership as verifyOwnership, ___index_js_verifyProof as verifyProof };
2824
+ export { ___index_js_ADDRESS_VERSION as ADDRESS_VERSION, ___index_js_ASPMembershipProof as ASPMembershipProof, ___index_js_ASPProof as ASPProof, ___index_js_ASPRoot as ASPRoot, ___index_js_ASP_REGISTRY_HUB_ABI as ASP_REGISTRY_HUB_ABI, ___index_js_ASP_TREE_DEPTH as ASP_TREE_DEPTH, ___index_js_AuditKeyExport as AuditKeyExport, ___index_js_BABYJUBJUB_SUBORDER as BABYJUBJUB_SUBORDER, ___index_js_CircuitArtifacts as CircuitArtifacts, ___index_js_CircuitType as CircuitType, ___index_js_Commitment as Commitment, ___index_js_DEFAULT_KEY_DERIVATION_CONFIG as DEFAULT_KEY_DERIVATION_CONFIG, ___index_js_DEMO_ASP_ID as DEMO_ASP_ID, ___index_js_DEMO_ASP_NAME as DEMO_ASP_NAME, ___index_js_DIGEST_SIZE as DIGEST_SIZE, type ___index_js_DeploymentConfig as DeploymentConfig, ___index_js_DirectAccountAdapter as DirectAccountAdapter, ___index_js_DualMasterKeys as DualMasterKeys, ___index_js_EncryptedNote as EncryptedNote, ___index_js_FIELD_PRIME as FIELD_PRIME, ___index_js_IASPProvider as IASPProvider, ___index_js_IAccountAdapter as IAccountAdapter, ___index_js_INoteStore as INoteStore, ___index_js_IndexedNote as IndexedNote, ___index_js_Indexer as Indexer, ___index_js_KeyDerivationConfig as KeyDerivationConfig, ___index_js_M31Digest as M31Digest, ___index_js_M31Secret as M31Secret, ___index_js_M31_P as M31_P, ___index_js_MAX_TREE_DEPTH as MAX_TREE_DEPTH, ___index_js_MasterKeys as MasterKeys, ___index_js_MergeParams as MergeParams, ___index_js_MergeRecord as MergeRecord, ___index_js_MerkleProof as MerkleProof, ___index_js_MerkleProofWithNote as MerkleProofWithNote, ___index_js_MerkleTree as MerkleTree, ___index_js_NOTE_VERSION as NOTE_VERSION, ___index_js_Note as Note, ___index_js_NoteReference as NoteReference, ___index_js_NoteStatus as NoteStatus, ___index_js_NoteStore as NoteStore, ___index_js_NoteWithAmount as NoteWithAmount, ___index_js_Nullifier as Nullifier, ___index_js_OneTimeKeys as OneTimeKeys, ___index_js_Point as Point, ___index_js_Proof as Proof, ___index_js_ProofResult as ProofResult, ___index_js_ProofSystem as ProofSystem, ___index_js_ProvingSystem as ProvingSystem, ___index_js_RATE_PRECISION as RATE_PRECISION, ___index_js_RpcIndexerConfig as RpcIndexerConfig, ___index_js_SECRET_LIMBS as SECRET_LIMBS, ___index_js_STARK_ADDRESS_VERSION as STARK_ADDRESS_VERSION, ___index_js_STARK_AMOUNT_SCALE as STARK_AMOUNT_SCALE, ___index_js_STARK_ASP_TREE_DEPTH as STARK_ASP_TREE_DEPTH, ___index_js_STARK_STATE_TREE_DEPTH as STARK_STATE_TREE_DEPTH, ___index_js_STARK_STEALTH_ADDRESS_PREFIX as STARK_STEALTH_ADDRESS_PREFIX, ___index_js_STATE_TREE_DEPTH as STATE_TREE_DEPTH, ___index_js_STEALTH_ADDRESS_PREFIX as STEALTH_ADDRESS_PREFIX, ___index_js_SWAP_EVENTS_ABI as SWAP_EVENTS_ABI, ___index_js_SWAP_ORDER_CANCELLED_EVENT as SWAP_ORDER_CANCELLED_EVENT, ___index_js_SWAP_ORDER_CLAIMED_EVENT as SWAP_ORDER_CLAIMED_EVENT, ___index_js_SWAP_ORDER_FILLED_EVENT as SWAP_ORDER_FILLED_EVENT, ___index_js_SWAP_ORDER_PLACED_EVENT as SWAP_ORDER_PLACED_EVENT, ___index_js_SerializedKeys as SerializedKeys, ___index_js_ShieldParams as ShieldParams, ___index_js_ShieldedNote as ShieldedNote, ___index_js_SpendableNote as SpendableNote, ___index_js_StarkMasterKeys as StarkMasterKeys, ___index_js_StarkNote as StarkNote, ___index_js_StarkProof as StarkProof, ___index_js_StarkStealthMetaAddress as StarkStealthMetaAddress, ___index_js_StarkTransferWitness as StarkTransferWitness, ___index_js_StarkWithdrawWitness as StarkWithdrawWitness, ___index_js_Stealth1x2CircuitInputs as Stealth1x2CircuitInputs, ___index_js_Stealth2x2CircuitInputs as Stealth2x2CircuitInputs, ___index_js_StealthAddress as StealthAddress, ___index_js_StealthAddressComponents as StealthAddressComponents, ___index_js_StealthCircuitInputs as StealthCircuitInputs, ___index_js_StealthCircuitType as StealthCircuitType, ___index_js_StealthMetaAddress as StealthMetaAddress, ___index_js_StorableAccountAdapter as StorableAccountAdapter, ___index_js_StorageAdapter as StorageAdapter, ___index_js_SwapFillEvent as SwapFillEvent, ___index_js_SwapFillParams as SwapFillParams, ___index_js_SwapOrder as SwapOrder, ___index_js_SwapOrderEvent as SwapOrderEvent, ___index_js_SwapOrderParams as SwapOrderParams, ___index_js_SyncResult as SyncResult, ___index_js_TEST_STABLE_TOKEN_2_ABI as TEST_STABLE_TOKEN_2_ABI, ___index_js_TEST_STABLE_TOKEN_ABI as TEST_STABLE_TOKEN_ABI, ___index_js_TransactionViewingKey as TransactionViewingKey, ___index_js_TransferBuildResult as TransferBuildResult, ___index_js_TransferContext as TransferContext, ___index_js_TransferParams as TransferParams, ___index_js_TransferStage as TransferStage, ___index_js_UNIVERSAL_PRIVATE_POOL_ABI as UNIVERSAL_PRIVATE_POOL_ABI, ___index_js_UPPCircuitInputs as UPPCircuitInputs, ___index_js_UPPCircuitType as UPPCircuitType, ___index_js_UPPClient as UPPClient, ___index_js_UPPClientConfig as UPPClientConfig, ___index_js_UPPTransferCircuitInputs as UPPTransferCircuitInputs, ___index_js_UPPWithdrawCircuitInputs as UPPWithdrawCircuitInputs, type ___index_js_VerifierAddresses as VerifierAddresses, ___index_js_WithdrawParams as WithdrawParams, ___index_js_addPoints as addPoints, ___index_js_addressToField as addressToField, ___index_js_addressToM31 as addressToM31, ___index_js_bigintToBytes as bigintToBytes, ___index_js_buildASPTree as buildASPTree, ___index_js_buildMerkleTree as buildMerkleTree, ___index_js_buildStarkTransferWitness as buildStarkTransferWitness, ___index_js_buildStarkWithdrawWitness as buildStarkWithdrawWitness, ___index_js_buildTransfer as buildTransfer, ___index_js_buildUPPTransferCircuitInputs as buildUPPTransferCircuitInputs, ___index_js_bytesToBigint as bytesToBigint, ___index_js_bytesToHex as bytesToHex, ___index_js_computeCancelKeyHash as computeCancelKeyHash, ___index_js_computeFillPercentage as computeFillPercentage, ___index_js_computeGiveAmount as computeGiveAmount, ___index_js_computeMultiOriginASPRoot as computeMultiOriginASPRoot, ___index_js_computeNoteEncryptionKey as computeNoteEncryptionKey, ___index_js_computeNullifier as computeNullifier, ___index_js_computeRate as computeRate, ___index_js_computeSharedSecret as computeSharedSecret, ___index_js_computeSingleOriginASPRoot as computeSingleOriginASPRoot, ___index_js_computeStarkCommitment as computeStarkCommitment, ___index_js_computeStarkNullifier as computeStarkNullifier, ___index_js_computeStarkOwnerHash as computeStarkOwnerHash, ___index_js_computeTakeAmount as computeTakeAmount, ___index_js_computeTotalBuyAmount as computeTotalBuyAmount, ___index_js_computeTransferPublicInputsSeed as computeTransferPublicInputsSeed, ___index_js_computeWithdrawPublicInputsSeed as computeWithdrawPublicInputsSeed, ___index_js_createDemoASPRoot as createDemoASPRoot, ___index_js_createNote as createNote, ___index_js_createOneTimeKeys as createOneTimeKeys, ___index_js_createUPPClient as createUPPClient, ___index_js_decodeStarkStealthAddress as decodeStarkStealthAddress, ___index_js_decodeStealthAddress as decodeStealthAddress, ___index_js_decryptNote as decryptNote, ___index_js_deriveDecryptionViewingKey as deriveDecryptionViewingKey, ___index_js_deriveDualKeysFromSignature as deriveDualKeysFromSignature, ___index_js_deriveEncryptionViewingKey as deriveEncryptionViewingKey, ___index_js_deriveKeysFromSignature as deriveKeysFromSignature, ___index_js_deriveNullifierKey as deriveNullifierKey, ___index_js_derivePerNoteKey as derivePerNoteKey, ___index_js_derivePerNoteKeyFromKeys as derivePerNoteKeyFromKeys, ___index_js_deriveStarkKeysFromSignature as deriveStarkKeysFromSignature, ___index_js_deriveStarkPerNoteKey as deriveStarkPerNoteKey, ___index_js_deriveStarkPerNoteKeyFromKeys as deriveStarkPerNoteKeyFromKeys, ___index_js_detectAddressType as detectAddressType, ___index_js_encodeStarkStealthAddress as encodeStarkStealthAddress, ___index_js_encodeStealthAddress as encodeStealthAddress, ___index_js_encryptNote as encryptNote, ___index_js_exportViewingKeysForAudit as exportViewingKeysForAudit, ___index_js_fieldToAddress as fieldToAddress, ___index_js_filterOrdersByASP as filterOrdersByASP, ___index_js_filterOrdersByTokenPair as filterOrdersByTokenPair, ___index_js_formatOutputForContract as formatOutputForContract, ___index_js_formatProofForContract as formatProofForContract, ___index_js_formatRate as formatRate, ___index_js_generateASPProof as generateASPProof, ___index_js_generateCancelSecret as generateCancelSecret, ___index_js_generateMultiOriginASPProof as generateMultiOriginASPProof, ___index_js_generateProof as generateProof, ___index_js_generateSingleOriginASPProof as generateSingleOriginASPProof, ___index_js_generateStarkStealthAddress as generateStarkStealthAddress, ___index_js_generateStealthAddress as generateStealthAddress, ___index_js_generateStealthProof as generateStealthProof, ___index_js_generateUPPProof as generateUPPProof, ___index_js_getBasePoint as getBasePoint, ___index_js_getCancelSecret as getCancelSecret, ___index_js_getDeployment as getDeployment, ___index_js_getDeploymentOrThrow as getDeploymentOrThrow, ___index_js_getKeyDerivationMessage as getKeyDerivationMessage, ___index_js_getMerkleProof as getMerkleProof, ___index_js_getMerkleProofsForNotes as getMerkleProofsForNotes, ___index_js_getOwnOrderIds as getOwnOrderIds, ___index_js_getStealthCircuitArtifacts as getStealthCircuitArtifacts, ___index_js_getSubOrder as getSubOrder, ___index_js_getSupportedChainIds as getSupportedChainIds, ___index_js_getTokenAddress as getTokenAddress, ___index_js_getUPPCircuitArtifacts as getUPPCircuitArtifacts, ___index_js_getViewingKeyFromExport as getViewingKeyFromExport, ___index_js_hasDeployment as hasDeployment, ___index_js_hexToBytes as hexToBytes, ___index_js_isFillerASPAccepted as isFillerASPAccepted, ___index_js_isOnCurve as isOnCurve, ___index_js_isOrderActive as isOrderActive, ___index_js_isStarkAligned as isStarkAligned, ___index_js_isValidFieldElement as isValidFieldElement, ___index_js_isValidStarkStealthAddress as isValidStarkStealthAddress, ___index_js_isValidStealthAddress as isValidStealthAddress, ___index_js_keccakHashTwo as keccakHashTwo, ___index_js_keccakM31 as keccakM31, ___index_js_makeRpcIndexer as makeRpcIndexer, ___index_js_mulPointScalar as mulPointScalar, ___index_js_packM31Digest as packM31Digest, ___index_js_packPoint as packPoint, ___index_js_pointToTuple as pointToTuple, ___index_js_poseidon as poseidon, ___index_js_poseidonHash as poseidonHash, ___index_js_poseidonScalar as poseidonScalar, ___index_js_privateToPublic as privateToPublic, ___index_js_randomBytes as randomBytes, ___index_js_randomFieldElement as randomFieldElement, ___index_js_registerDeployment as registerDeployment, ___index_js_removeCancelSecret as removeCancelSecret, ___index_js_scaleAmountForStark as scaleAmountForStark, ___index_js_splitSecretToM31Limbs as splitSecretToM31Limbs, ___index_js_splitToM31Limbs as splitToM31Limbs, ___index_js_storeCancelSecret as storeCancelSecret, ___index_js_syncMerkleTree as syncMerkleTree, ___index_js_toFieldElement as toFieldElement, ___index_js_truncateToM31 as truncateToM31, ___index_js_tupleToPoint as tupleToPoint, ___index_js_validateAuditKeyExport as validateAuditKeyExport, ___index_js_verifyASPProof as verifyASPProof, ___index_js_verifyKeysMatchSignature as verifyKeysMatchSignature, ___index_js_verifyMerkleProof as verifyMerkleProof, ___index_js_verifyOwnership as verifyOwnership, ___index_js_verifyProof as verifyProof };
2809
2825
  }
2810
2826
 
2811
2827
  export { type DeploymentConfig as D, TEST_STABLE_TOKEN_ABI as T, UNIVERSAL_PRIVATE_POOL_ABI as U, type VerifierAddresses as V, ___index_js as _, TEST_STABLE_TOKEN_2_ABI as a, getDeploymentOrThrow as b, getSupportedChainIds as c, getTokenAddress as d, getDeployment as g, hasDeployment as h, makeRpcIndexer as m, registerDeployment as r };
@@ -1,8 +1,9 @@
1
1
  import { PublicClient, WalletClient, Address, Hex } from 'viem';
2
- import { r as ShieldParams, h as Note, O as TransferParams, M as MergeParams, Y as WithdrawParams, E as EncryptedNote } from './transfer-BlmbO-Rd.js';
2
+ import { q as ShieldParams, h as Note, L as TransferParams, M as MergeParams, X as WithdrawParams, E as EncryptedNote } from './transfer-sqS6mJko.js';
3
3
  import { M as MasterKeys, O as OneTimeKeys, b as StarkMasterKeys } from './types-mLybMxNR.js';
4
4
  import { a as M31Digest } from './keccak-m31-B_AqBbRF.js';
5
5
  import { P as Point } from './merkle-mteVOlDf.js';
6
+ import './stark-BcTD1OaJ.js';
6
7
 
7
8
  /**
8
9
  * Main UPP Client
@@ -274,100 +275,6 @@ declare function generateStarkStealthAddress(keys: StarkMasterKeys, chainId?: nu
274
275
  */
275
276
  declare function detectAddressType(address: string): 'snark' | 'stark' | 'unknown';
276
277
 
277
- /**
278
- * Account Adapter — Pluggable account creation
279
- *
280
- * Abstracts how master keys are derived/loaded.
281
- * The SDK doesn't care if keys come from a wallet signature,
282
- * seed phrase, hardware wallet, or external KMS.
283
- */
284
-
285
- /**
286
- * Account adapter interface — pluggable key source.
287
- *
288
- * Implement this to bring your own key derivation:
289
- * - SignatureAccountAdapter: EIP-712 wallet signature (built-in)
290
- * - DirectAccountAdapter: pre-derived keys (built-in, for testing/KMS)
291
- * - SeedPhraseAccountAdapter: BIP-39 seed phrase (custom)
292
- * - HardwareWalletAccountAdapter: Ledger/Trezor (custom)
293
- */
294
- interface IAccountAdapter {
295
- /** Derive or load SNARK master keys */
296
- getKeys(): Promise<MasterKeys>;
297
- /** Derive or load STARK master keys (optional) */
298
- getStarkKeys?(): Promise<StarkMasterKeys>;
299
- /** Persist keys (adapter decides where/how) */
300
- save?(): Promise<void>;
301
- /** Clear persisted keys */
302
- clear?(): Promise<void>;
303
- }
304
- /**
305
- * Direct account adapter — accepts pre-derived keys.
306
- *
307
- * Use for testing, external KMS, or when keys are derived
308
- * outside the SDK (e.g., from a seed phrase).
309
- *
310
- * @example
311
- * ```ts
312
- * const adapter = new DirectAccountAdapter({
313
- * spendingSecret: 12345n,
314
- * ownerHash: await poseidon([12345n]),
315
- * viewingSecret: 67890n,
316
- * viewingHash: await poseidon([67890n]),
317
- * })
318
- * const keys = await adapter.getKeys()
319
- * ```
320
- */
321
- declare class DirectAccountAdapter implements IAccountAdapter {
322
- private keys;
323
- private starkKeys?;
324
- constructor(keys: MasterKeys, starkKeys?: StarkMasterKeys | undefined);
325
- getKeys(): Promise<MasterKeys>;
326
- getStarkKeys(): Promise<StarkMasterKeys>;
327
- }
328
-
329
- /**
330
- * ASP Provider — Pluggable compliance layer
331
- *
332
- * Abstracts where ASP membership proofs come from.
333
- * The pool protocol doesn't care which ASP you use —
334
- * it's the operator who makes the rules.
335
- *
336
- * Built-in: none (ASP is optional, ragequit always available)
337
- * Implementations:
338
- * - RestASPProvider: fetch from ASP service API (e.g., asp-whitelist.upd.io)
339
- * - LocalASPProvider: generate from local tree (via upc-sdk)
340
- * - Custom: any source that can provide Merkle proofs
341
- */
342
-
343
- interface ASPMembershipProof {
344
- /** Merkle root of the ASP tree */
345
- root: bigint;
346
- /** Path elements (siblings) */
347
- pathElements: bigint[];
348
- /** Path indices (0 = left, 1 = right) */
349
- pathIndices: number[];
350
- }
351
- /**
352
- * ASP provider interface — pluggable compliance.
353
- *
354
- * Implement this to bring your own ASP:
355
- * - Each operator runs their own ASP service
356
- * - Users are whitelisted by the operator's rules
357
- * - Proofs are fetched from the operator's service
358
- *
359
- * If no ASP is configured, users can always ragequit
360
- * (withdraw their own deposits without ASP approval).
361
- */
362
- interface IASPProvider {
363
- /** ASP ID registered on-chain */
364
- getASPId(): bigint;
365
- /** Fetch a membership proof for an address */
366
- getProof(address: Address): Promise<ASPMembershipProof | null>;
367
- /** Check if an address is whitelisted (without fetching full proof) */
368
- isWhitelisted(address: Address): Promise<boolean>;
369
- }
370
-
371
278
  /**
372
279
  * Indexer Types
373
280
  *
@@ -672,6 +579,125 @@ interface NullifiedArgs {
672
579
  nullifier: Hex;
673
580
  }
674
581
 
582
+ /**
583
+ * Account Adapter — Pluggable account creation and persistence
584
+ *
585
+ * Abstracts how master keys are derived/loaded/stored.
586
+ * The SDK doesn't care if keys come from a wallet signature,
587
+ * seed phrase, hardware wallet, or external KMS.
588
+ *
589
+ * Persistence is handled via StorageAdapter (IndexedDB, localStorage, etc.)
590
+ */
591
+
592
+ /**
593
+ * Account adapter interface — pluggable key source.
594
+ *
595
+ * Implement this to bring your own key derivation:
596
+ * - StorableAccountAdapter: persists keys via StorageAdapter (built-in)
597
+ * - DirectAccountAdapter: pre-derived keys, no persistence (built-in, for testing)
598
+ * - Custom: seed phrase, hardware wallet, external KMS
599
+ */
600
+ interface IAccountAdapter {
601
+ /** Load persisted keys (returns null if no saved account) */
602
+ load(): Promise<{
603
+ keys: MasterKeys;
604
+ starkKeys?: StarkMasterKeys;
605
+ } | null>;
606
+ /** Save keys to storage */
607
+ save(keys: MasterKeys, starkKeys?: StarkMasterKeys): Promise<void>;
608
+ /** Clear persisted keys */
609
+ clear(): Promise<void>;
610
+ }
611
+ /**
612
+ * Account adapter that persists keys via a pluggable StorageAdapter.
613
+ *
614
+ * Works with IndexedDB, localStorage, memory, Redis, Postgres — anything
615
+ * that implements StorageAdapter.
616
+ *
617
+ * @example
618
+ * ```ts
619
+ * const storage = createAutoAdapter('upp_account')
620
+ * const adapter = new StorableAccountAdapter(storage, ethAddress)
621
+ * const saved = await adapter.load()
622
+ * if (!saved) {
623
+ * const keys = await deriveKeysFromSignature(sig)
624
+ * await adapter.save(keys, starkKeys)
625
+ * }
626
+ * ```
627
+ */
628
+ declare class StorableAccountAdapter implements IAccountAdapter {
629
+ private storage;
630
+ private storageKey;
631
+ constructor(storage: StorageAdapter, ethAddress: string);
632
+ load(): Promise<{
633
+ keys: MasterKeys;
634
+ starkKeys?: StarkMasterKeys;
635
+ } | null>;
636
+ save(keys: MasterKeys, starkKeys?: StarkMasterKeys): Promise<void>;
637
+ clear(): Promise<void>;
638
+ }
639
+ /**
640
+ * Direct account adapter — accepts pre-derived keys, no persistence.
641
+ *
642
+ * @example
643
+ * ```ts
644
+ * const adapter = new DirectAccountAdapter(masterKeys, starkKeys)
645
+ * ```
646
+ */
647
+ declare class DirectAccountAdapter implements IAccountAdapter {
648
+ private keys;
649
+ private starkKeys?;
650
+ constructor(keys: MasterKeys, starkKeys?: StarkMasterKeys | undefined);
651
+ load(): Promise<{
652
+ keys: MasterKeys;
653
+ starkKeys: StarkMasterKeys | undefined;
654
+ }>;
655
+ save(): Promise<void>;
656
+ clear(): Promise<void>;
657
+ }
658
+
659
+ /**
660
+ * ASP Provider — Pluggable compliance layer
661
+ *
662
+ * Abstracts where ASP membership proofs come from.
663
+ * The pool protocol doesn't care which ASP you use —
664
+ * it's the operator who makes the rules.
665
+ *
666
+ * Built-in: none (ASP is optional, ragequit always available)
667
+ * Implementations:
668
+ * - RestASPProvider: fetch from ASP service API (e.g., asp-whitelist.upd.io)
669
+ * - LocalASPProvider: generate from local tree (via upc-sdk)
670
+ * - Custom: any source that can provide Merkle proofs
671
+ */
672
+
673
+ interface ASPMembershipProof {
674
+ /** Merkle root of the ASP tree */
675
+ root: bigint;
676
+ /** Path elements (siblings) */
677
+ pathElements: bigint[];
678
+ /** Path indices (0 = left, 1 = right) */
679
+ pathIndices: number[];
680
+ }
681
+ /**
682
+ * ASP provider interface — pluggable compliance.
683
+ *
684
+ * Implement this to bring your own ASP:
685
+ * - Each operator runs their own ASP service
686
+ * - Users are whitelisted by the operator's rules
687
+ * - Proofs are fetched from the operator's service
688
+ *
689
+ * If no ASP is configured, users can always ragequit
690
+ * (withdraw their own deposits without ASP approval).
691
+ */
692
+ interface IASPProvider {
693
+ /** ASP ID registered on-chain */
694
+ getASPId(): bigint;
695
+ /** Fetch a membership proof for an address */
696
+ getProof(address: Address): Promise<ASPMembershipProof | null>;
697
+ /** Check if an address is whitelisted (without fetching full proof) */
698
+ isWhitelisted(address: Address): Promise<boolean>;
699
+ }
700
+
675
701
  /**
676
702
  * NoteStore — Single source of truth for note state
677
703
  *
@@ -754,4 +780,4 @@ declare class NoteStore implements INoteStore {
754
780
  private notify;
755
781
  }
756
782
 
757
- export { ADDRESS_VERSION as A, decryptNote as B, type CommitmentInsertedArgs as C, DirectAccountAdapter as D, detectAddressType as E, encodeStarkStealthAddress as F, encodeStealthAddress as G, encryptNote as H, type Indexer as I, generateStarkStealthAddress as J, generateStealthAddress as K, type LiveSyncConfig as L, isValidStarkStealthAddress as M, type NoteStatus$1 as N, isValidStealthAddress as O, type ProofSystem as P, verifyOwnership as Q, type RpcIndexerConfig as R, type StorageAdapter as S, type NoteStatus as T, type UPPClient as U, type IndexedNote as a, type NoteFilters as b, type SyncResult as c, type SyncProgress as d, type SyncConfig as e, type IndexerState as f, type SyncState as g, type SerializedNote as h, type StealthTransactArgs as i, type NullifiedArgs as j, type ASPMembershipProof as k, type IASPProvider as l, type IAccountAdapter as m, type INoteStore as n, NoteStore as o, STARK_ADDRESS_VERSION as p, STARK_STEALTH_ADDRESS_PREFIX as q, STEALTH_ADDRESS_PREFIX as r, type ShieldedNote as s, type UPPClientConfig as t, computeNoteEncryptionKey as u, createNote as v, createOneTimeKeys as w, createUPPClient as x, decodeStarkStealthAddress as y, decodeStealthAddress as z };
783
+ export { ADDRESS_VERSION as A, decodeStealthAddress as B, type CommitmentInsertedArgs as C, DirectAccountAdapter as D, decryptNote as E, detectAddressType as F, encodeStarkStealthAddress as G, encodeStealthAddress as H, type Indexer as I, encryptNote as J, generateStarkStealthAddress as K, type LiveSyncConfig as L, generateStealthAddress as M, type NoteStatus$1 as N, isValidStarkStealthAddress as O, type ProofSystem as P, isValidStealthAddress as Q, type RpcIndexerConfig as R, type StorageAdapter as S, verifyOwnership as T, type UPPClient as U, type NoteStatus as V, type IndexedNote as a, type NoteFilters as b, type SyncResult as c, type SyncProgress as d, type SyncConfig as e, type IndexerState as f, type SyncState as g, type SerializedNote as h, type StealthTransactArgs as i, type NullifiedArgs as j, type ASPMembershipProof as k, type IASPProvider as l, type IAccountAdapter as m, type INoteStore as n, NoteStore as o, STARK_ADDRESS_VERSION as p, STARK_STEALTH_ADDRESS_PREFIX as q, STEALTH_ADDRESS_PREFIX as r, type ShieldedNote as s, StorableAccountAdapter as t, type UPPClientConfig as u, computeNoteEncryptionKey as v, createNote as w, createOneTimeKeys as x, createUPPClient as y, decodeStarkStealthAddress as z };