@permissionless-technologies/upp-sdk 0.4.2 → 0.4.4

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 (56) hide show
  1. package/dist/{chunk-6BHF4HOB.js → chunk-4UKH6LXH.js} +2 -2
  2. package/dist/{chunk-6BHF4HOB.js.map → chunk-4UKH6LXH.js.map} +1 -1
  3. package/dist/{chunk-UTAJSERA.cjs → chunk-5BLMSTFQ.cjs} +2 -2
  4. package/dist/chunk-5BLMSTFQ.cjs.map +1 -0
  5. package/dist/{chunk-Q2E432UK.cjs → chunk-A7EORZW7.cjs} +24 -24
  6. package/dist/{chunk-Q2E432UK.cjs.map → chunk-A7EORZW7.cjs.map} +1 -1
  7. package/dist/{chunk-W3HLIKC2.js → chunk-KRLRJ3HN.js} +46 -24
  8. package/dist/chunk-KRLRJ3HN.js.map +1 -0
  9. package/dist/{chunk-CEJN5ZE5.js → chunk-O6ALW7DB.js} +2 -2
  10. package/dist/chunk-O6ALW7DB.js.map +1 -0
  11. package/dist/{chunk-ZQ5LLJQC.cjs → chunk-ROV6WWIS.cjs} +2 -2
  12. package/dist/{chunk-ZQ5LLJQC.cjs.map → chunk-ROV6WWIS.cjs.map} +1 -1
  13. package/dist/{chunk-2G22R7AJ.cjs → chunk-RYEYGGE7.cjs} +46 -24
  14. package/dist/chunk-RYEYGGE7.cjs.map +1 -0
  15. package/dist/{chunk-OBBSIPEK.js → chunk-UC2QMWGS.js} +16 -16
  16. package/dist/{chunk-OBBSIPEK.js.map → chunk-UC2QMWGS.js.map} +1 -1
  17. package/dist/core/index.cjs +29 -29
  18. package/dist/core/index.d.cts +2 -2
  19. package/dist/core/index.d.ts +2 -2
  20. package/dist/core/index.js +5 -5
  21. package/dist/{index-D6nvfm59.d.ts → index--eNkOLiP.d.ts} +1 -1
  22. package/dist/{index-CL4vb3ej.d.cts → index-CRaFsQD3.d.cts} +1 -1
  23. package/dist/{index-CtcXgof_.d.ts → index-Cxm5E-J5.d.ts} +512 -46
  24. package/dist/{index-BgPdYxFS.d.cts → index-Mm_cz6Ie.d.cts} +512 -46
  25. package/dist/index.cjs +829 -231
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.cts +3 -3
  28. package/dist/index.d.ts +3 -3
  29. package/dist/index.js +646 -48
  30. package/dist/index.js.map +1 -1
  31. package/dist/indexer/index.cjs +6 -6
  32. package/dist/indexer/index.d.cts +5 -5
  33. package/dist/indexer/index.d.ts +5 -5
  34. package/dist/indexer/index.js +1 -1
  35. package/dist/{proof-XR6XE5PJ.cjs → proof-VINVGL4F.cjs} +13 -13
  36. package/dist/{proof-XR6XE5PJ.cjs.map → proof-VINVGL4F.cjs.map} +1 -1
  37. package/dist/{proof-JME3IZTX.js → proof-XQG5DN5N.js} +3 -3
  38. package/dist/{proof-JME3IZTX.js.map → proof-XQG5DN5N.js.map} +1 -1
  39. package/dist/react/index.cjs +10 -10
  40. package/dist/react/index.cjs.map +1 -1
  41. package/dist/react/index.d.cts +7 -7
  42. package/dist/react/index.d.ts +7 -7
  43. package/dist/react/index.js +10 -10
  44. package/dist/react/index.js.map +1 -1
  45. package/dist/{transfer-MQMGSXTH.js → transfer-4XBP4DPQ.js} +5 -5
  46. package/dist/{transfer-MQMGSXTH.js.map → transfer-4XBP4DPQ.js.map} +1 -1
  47. package/dist/{transfer-DvIXqHCr.d.ts → transfer-Crvdq4VN.d.ts} +30 -18
  48. package/dist/{transfer-D111ihqN.d.cts → transfer-CwwsNdGL.d.cts} +30 -18
  49. package/dist/{transfer-PB6D5VCW.cjs → transfer-Y2RSJS6Y.cjs} +11 -11
  50. package/dist/{transfer-PB6D5VCW.cjs.map → transfer-Y2RSJS6Y.cjs.map} +1 -1
  51. package/package.json +1 -1
  52. package/src/deployments/11155111.json +12 -12
  53. package/dist/chunk-2G22R7AJ.cjs.map +0 -1
  54. package/dist/chunk-CEJN5ZE5.js.map +0 -1
  55. package/dist/chunk-UTAJSERA.cjs.map +0 -1
  56. package/dist/chunk-W3HLIKC2.js.map +0 -1
@@ -1,5 +1,5 @@
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-CL4vb3ej.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-D111ihqN.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-CRaFsQD3.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-CwwsNdGL.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';
@@ -60,24 +60,12 @@ import { Address } from 'viem';
60
60
  */
61
61
  declare function makeRpcIndexer(config: RpcIndexerConfig): Indexer;
62
62
 
63
- /**
64
- * UniversalPrivatePool Contract ABI
65
- *
66
- * Auto-generated from Foundry compiled artifacts.
67
- * DO NOT EDIT MANUALLY.
68
- *
69
- * Generated by: scripts/generate-abis.js
70
- */
71
63
  declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
72
64
  readonly type: "constructor";
73
65
  readonly inputs: readonly [{
74
66
  readonly name: "_aspHub";
75
67
  readonly type: "address";
76
68
  readonly internalType: "address";
77
- }, {
78
- readonly name: "_shieldVerifier";
79
- readonly type: "address";
80
- readonly internalType: "address";
81
69
  }, {
82
70
  readonly name: "_transferVerifier";
83
71
  readonly type: "address";
@@ -261,8 +249,69 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
261
249
  readonly name: "joinSplit";
262
250
  readonly inputs: readonly [{
263
251
  readonly name: "proof";
264
- readonly type: "bytes";
265
- readonly internalType: "bytes";
252
+ readonly type: "tuple";
253
+ readonly internalType: "struct PlonkVerifierBLS12381.Proof";
254
+ readonly components: readonly [{
255
+ readonly name: "A";
256
+ readonly type: "bytes";
257
+ readonly internalType: "bytes";
258
+ }, {
259
+ readonly name: "B";
260
+ readonly type: "bytes";
261
+ readonly internalType: "bytes";
262
+ }, {
263
+ readonly name: "C";
264
+ readonly type: "bytes";
265
+ readonly internalType: "bytes";
266
+ }, {
267
+ readonly name: "Z";
268
+ readonly type: "bytes";
269
+ readonly internalType: "bytes";
270
+ }, {
271
+ readonly name: "T1";
272
+ readonly type: "bytes";
273
+ readonly internalType: "bytes";
274
+ }, {
275
+ readonly name: "T2";
276
+ readonly type: "bytes";
277
+ readonly internalType: "bytes";
278
+ }, {
279
+ readonly name: "T3";
280
+ readonly type: "bytes";
281
+ readonly internalType: "bytes";
282
+ }, {
283
+ readonly name: "eval_a";
284
+ readonly type: "uint256";
285
+ readonly internalType: "uint256";
286
+ }, {
287
+ readonly name: "eval_b";
288
+ readonly type: "uint256";
289
+ readonly internalType: "uint256";
290
+ }, {
291
+ readonly name: "eval_c";
292
+ readonly type: "uint256";
293
+ readonly internalType: "uint256";
294
+ }, {
295
+ readonly name: "eval_s1";
296
+ readonly type: "uint256";
297
+ readonly internalType: "uint256";
298
+ }, {
299
+ readonly name: "eval_s2";
300
+ readonly type: "uint256";
301
+ readonly internalType: "uint256";
302
+ }, {
303
+ readonly name: "eval_zw";
304
+ readonly type: "uint256";
305
+ readonly internalType: "uint256";
306
+ }, {
307
+ readonly name: "Wxi";
308
+ readonly type: "bytes";
309
+ readonly internalType: "bytes";
310
+ }, {
311
+ readonly name: "Wxiw";
312
+ readonly type: "bytes";
313
+ readonly internalType: "bytes";
314
+ }];
266
315
  }, {
267
316
  readonly name: "nullifiers";
268
317
  readonly type: "bytes32[4]";
@@ -309,7 +358,7 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
309
358
  readonly outputs: readonly [{
310
359
  readonly name: "";
311
360
  readonly type: "address";
312
- readonly internalType: "contract IJoinSplitVerifier";
361
+ readonly internalType: "contract IUPPVerifier";
313
362
  }];
314
363
  readonly stateMutability: "view";
315
364
  }, {
@@ -317,8 +366,69 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
317
366
  readonly name: "merge";
318
367
  readonly inputs: readonly [{
319
368
  readonly name: "proof";
320
- readonly type: "bytes";
321
- readonly internalType: "bytes";
369
+ readonly type: "tuple";
370
+ readonly internalType: "struct PlonkVerifierBLS12381.Proof";
371
+ readonly components: readonly [{
372
+ readonly name: "A";
373
+ readonly type: "bytes";
374
+ readonly internalType: "bytes";
375
+ }, {
376
+ readonly name: "B";
377
+ readonly type: "bytes";
378
+ readonly internalType: "bytes";
379
+ }, {
380
+ readonly name: "C";
381
+ readonly type: "bytes";
382
+ readonly internalType: "bytes";
383
+ }, {
384
+ readonly name: "Z";
385
+ readonly type: "bytes";
386
+ readonly internalType: "bytes";
387
+ }, {
388
+ readonly name: "T1";
389
+ readonly type: "bytes";
390
+ readonly internalType: "bytes";
391
+ }, {
392
+ readonly name: "T2";
393
+ readonly type: "bytes";
394
+ readonly internalType: "bytes";
395
+ }, {
396
+ readonly name: "T3";
397
+ readonly type: "bytes";
398
+ readonly internalType: "bytes";
399
+ }, {
400
+ readonly name: "eval_a";
401
+ readonly type: "uint256";
402
+ readonly internalType: "uint256";
403
+ }, {
404
+ readonly name: "eval_b";
405
+ readonly type: "uint256";
406
+ readonly internalType: "uint256";
407
+ }, {
408
+ readonly name: "eval_c";
409
+ readonly type: "uint256";
410
+ readonly internalType: "uint256";
411
+ }, {
412
+ readonly name: "eval_s1";
413
+ readonly type: "uint256";
414
+ readonly internalType: "uint256";
415
+ }, {
416
+ readonly name: "eval_s2";
417
+ readonly type: "uint256";
418
+ readonly internalType: "uint256";
419
+ }, {
420
+ readonly name: "eval_zw";
421
+ readonly type: "uint256";
422
+ readonly internalType: "uint256";
423
+ }, {
424
+ readonly name: "Wxi";
425
+ readonly type: "bytes";
426
+ readonly internalType: "bytes";
427
+ }, {
428
+ readonly name: "Wxiw";
429
+ readonly type: "bytes";
430
+ readonly internalType: "bytes";
431
+ }];
322
432
  }, {
323
433
  readonly name: "nullifier1";
324
434
  readonly type: "bytes32";
@@ -385,8 +495,69 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
385
495
  readonly name: "mergeTransfer2x2";
386
496
  readonly inputs: readonly [{
387
497
  readonly name: "proof";
388
- readonly type: "bytes";
389
- readonly internalType: "bytes";
498
+ readonly type: "tuple";
499
+ readonly internalType: "struct PlonkVerifierBLS12381.Proof";
500
+ readonly components: readonly [{
501
+ readonly name: "A";
502
+ readonly type: "bytes";
503
+ readonly internalType: "bytes";
504
+ }, {
505
+ readonly name: "B";
506
+ readonly type: "bytes";
507
+ readonly internalType: "bytes";
508
+ }, {
509
+ readonly name: "C";
510
+ readonly type: "bytes";
511
+ readonly internalType: "bytes";
512
+ }, {
513
+ readonly name: "Z";
514
+ readonly type: "bytes";
515
+ readonly internalType: "bytes";
516
+ }, {
517
+ readonly name: "T1";
518
+ readonly type: "bytes";
519
+ readonly internalType: "bytes";
520
+ }, {
521
+ readonly name: "T2";
522
+ readonly type: "bytes";
523
+ readonly internalType: "bytes";
524
+ }, {
525
+ readonly name: "T3";
526
+ readonly type: "bytes";
527
+ readonly internalType: "bytes";
528
+ }, {
529
+ readonly name: "eval_a";
530
+ readonly type: "uint256";
531
+ readonly internalType: "uint256";
532
+ }, {
533
+ readonly name: "eval_b";
534
+ readonly type: "uint256";
535
+ readonly internalType: "uint256";
536
+ }, {
537
+ readonly name: "eval_c";
538
+ readonly type: "uint256";
539
+ readonly internalType: "uint256";
540
+ }, {
541
+ readonly name: "eval_s1";
542
+ readonly type: "uint256";
543
+ readonly internalType: "uint256";
544
+ }, {
545
+ readonly name: "eval_s2";
546
+ readonly type: "uint256";
547
+ readonly internalType: "uint256";
548
+ }, {
549
+ readonly name: "eval_zw";
550
+ readonly type: "uint256";
551
+ readonly internalType: "uint256";
552
+ }, {
553
+ readonly name: "Wxi";
554
+ readonly type: "bytes";
555
+ readonly internalType: "bytes";
556
+ }, {
557
+ readonly name: "Wxiw";
558
+ readonly type: "bytes";
559
+ readonly internalType: "bytes";
560
+ }];
390
561
  }, {
391
562
  readonly name: "nullifier1";
392
563
  readonly type: "bytes32";
@@ -429,7 +600,7 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
429
600
  readonly outputs: readonly [{
430
601
  readonly name: "";
431
602
  readonly type: "address";
432
- readonly internalType: "contract IMergeTransfer2x2Verifier";
603
+ readonly internalType: "contract IUPPVerifier";
433
604
  }];
434
605
  readonly stateMutability: "view";
435
606
  }, {
@@ -437,8 +608,69 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
437
608
  readonly name: "mergeTransfer4x2";
438
609
  readonly inputs: readonly [{
439
610
  readonly name: "proof";
440
- readonly type: "bytes";
441
- readonly internalType: "bytes";
611
+ readonly type: "tuple";
612
+ readonly internalType: "struct PlonkVerifierBLS12381.Proof";
613
+ readonly components: readonly [{
614
+ readonly name: "A";
615
+ readonly type: "bytes";
616
+ readonly internalType: "bytes";
617
+ }, {
618
+ readonly name: "B";
619
+ readonly type: "bytes";
620
+ readonly internalType: "bytes";
621
+ }, {
622
+ readonly name: "C";
623
+ readonly type: "bytes";
624
+ readonly internalType: "bytes";
625
+ }, {
626
+ readonly name: "Z";
627
+ readonly type: "bytes";
628
+ readonly internalType: "bytes";
629
+ }, {
630
+ readonly name: "T1";
631
+ readonly type: "bytes";
632
+ readonly internalType: "bytes";
633
+ }, {
634
+ readonly name: "T2";
635
+ readonly type: "bytes";
636
+ readonly internalType: "bytes";
637
+ }, {
638
+ readonly name: "T3";
639
+ readonly type: "bytes";
640
+ readonly internalType: "bytes";
641
+ }, {
642
+ readonly name: "eval_a";
643
+ readonly type: "uint256";
644
+ readonly internalType: "uint256";
645
+ }, {
646
+ readonly name: "eval_b";
647
+ readonly type: "uint256";
648
+ readonly internalType: "uint256";
649
+ }, {
650
+ readonly name: "eval_c";
651
+ readonly type: "uint256";
652
+ readonly internalType: "uint256";
653
+ }, {
654
+ readonly name: "eval_s1";
655
+ readonly type: "uint256";
656
+ readonly internalType: "uint256";
657
+ }, {
658
+ readonly name: "eval_s2";
659
+ readonly type: "uint256";
660
+ readonly internalType: "uint256";
661
+ }, {
662
+ readonly name: "eval_zw";
663
+ readonly type: "uint256";
664
+ readonly internalType: "uint256";
665
+ }, {
666
+ readonly name: "Wxi";
667
+ readonly type: "bytes";
668
+ readonly internalType: "bytes";
669
+ }, {
670
+ readonly name: "Wxiw";
671
+ readonly type: "bytes";
672
+ readonly internalType: "bytes";
673
+ }];
442
674
  }, {
443
675
  readonly name: "nullifiers";
444
676
  readonly type: "bytes32[4]";
@@ -477,7 +709,7 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
477
709
  readonly outputs: readonly [{
478
710
  readonly name: "";
479
711
  readonly type: "address";
480
- readonly internalType: "contract IMergeTransfer4x2Verifier";
712
+ readonly internalType: "contract IUPPVerifier";
481
713
  }];
482
714
  readonly stateMutability: "view";
483
715
  }, {
@@ -487,7 +719,7 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
487
719
  readonly outputs: readonly [{
488
720
  readonly name: "";
489
721
  readonly type: "address";
490
- readonly internalType: "contract IMergeVerifier";
722
+ readonly internalType: "contract IUPPVerifier";
491
723
  }];
492
724
  readonly stateMutability: "view";
493
725
  }, {
@@ -618,16 +850,6 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
618
850
  }];
619
851
  readonly outputs: readonly [];
620
852
  readonly stateMutability: "nonpayable";
621
- }, {
622
- readonly type: "function";
623
- readonly name: "shieldVerifier";
624
- readonly inputs: readonly [];
625
- readonly outputs: readonly [{
626
- readonly name: "";
627
- readonly type: "address";
628
- readonly internalType: "contract IShieldVerifier";
629
- }];
630
- readonly stateMutability: "view";
631
853
  }, {
632
854
  readonly type: "function";
633
855
  readonly name: "shieldWithPermit";
@@ -795,8 +1017,69 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
795
1017
  readonly internalType: "bytes32";
796
1018
  }, {
797
1019
  readonly name: "proof";
798
- readonly type: "bytes";
799
- readonly internalType: "bytes";
1020
+ readonly type: "tuple";
1021
+ readonly internalType: "struct PlonkVerifierBLS12381.Proof";
1022
+ readonly components: readonly [{
1023
+ readonly name: "A";
1024
+ readonly type: "bytes";
1025
+ readonly internalType: "bytes";
1026
+ }, {
1027
+ readonly name: "B";
1028
+ readonly type: "bytes";
1029
+ readonly internalType: "bytes";
1030
+ }, {
1031
+ readonly name: "C";
1032
+ readonly type: "bytes";
1033
+ readonly internalType: "bytes";
1034
+ }, {
1035
+ readonly name: "Z";
1036
+ readonly type: "bytes";
1037
+ readonly internalType: "bytes";
1038
+ }, {
1039
+ readonly name: "T1";
1040
+ readonly type: "bytes";
1041
+ readonly internalType: "bytes";
1042
+ }, {
1043
+ readonly name: "T2";
1044
+ readonly type: "bytes";
1045
+ readonly internalType: "bytes";
1046
+ }, {
1047
+ readonly name: "T3";
1048
+ readonly type: "bytes";
1049
+ readonly internalType: "bytes";
1050
+ }, {
1051
+ readonly name: "eval_a";
1052
+ readonly type: "uint256";
1053
+ readonly internalType: "uint256";
1054
+ }, {
1055
+ readonly name: "eval_b";
1056
+ readonly type: "uint256";
1057
+ readonly internalType: "uint256";
1058
+ }, {
1059
+ readonly name: "eval_c";
1060
+ readonly type: "uint256";
1061
+ readonly internalType: "uint256";
1062
+ }, {
1063
+ readonly name: "eval_s1";
1064
+ readonly type: "uint256";
1065
+ readonly internalType: "uint256";
1066
+ }, {
1067
+ readonly name: "eval_s2";
1068
+ readonly type: "uint256";
1069
+ readonly internalType: "uint256";
1070
+ }, {
1071
+ readonly name: "eval_zw";
1072
+ readonly type: "uint256";
1073
+ readonly internalType: "uint256";
1074
+ }, {
1075
+ readonly name: "Wxi";
1076
+ readonly type: "bytes";
1077
+ readonly internalType: "bytes";
1078
+ }, {
1079
+ readonly name: "Wxiw";
1080
+ readonly type: "bytes";
1081
+ readonly internalType: "bytes";
1082
+ }];
800
1083
  }, {
801
1084
  readonly name: "nullifier";
802
1085
  readonly type: "bytes32";
@@ -833,8 +1116,69 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
833
1116
  readonly name: "swapOrder";
834
1117
  readonly inputs: readonly [{
835
1118
  readonly name: "proof";
836
- readonly type: "bytes";
837
- readonly internalType: "bytes";
1119
+ readonly type: "tuple";
1120
+ readonly internalType: "struct PlonkVerifierBLS12381.Proof";
1121
+ readonly components: readonly [{
1122
+ readonly name: "A";
1123
+ readonly type: "bytes";
1124
+ readonly internalType: "bytes";
1125
+ }, {
1126
+ readonly name: "B";
1127
+ readonly type: "bytes";
1128
+ readonly internalType: "bytes";
1129
+ }, {
1130
+ readonly name: "C";
1131
+ readonly type: "bytes";
1132
+ readonly internalType: "bytes";
1133
+ }, {
1134
+ readonly name: "Z";
1135
+ readonly type: "bytes";
1136
+ readonly internalType: "bytes";
1137
+ }, {
1138
+ readonly name: "T1";
1139
+ readonly type: "bytes";
1140
+ readonly internalType: "bytes";
1141
+ }, {
1142
+ readonly name: "T2";
1143
+ readonly type: "bytes";
1144
+ readonly internalType: "bytes";
1145
+ }, {
1146
+ readonly name: "T3";
1147
+ readonly type: "bytes";
1148
+ readonly internalType: "bytes";
1149
+ }, {
1150
+ readonly name: "eval_a";
1151
+ readonly type: "uint256";
1152
+ readonly internalType: "uint256";
1153
+ }, {
1154
+ readonly name: "eval_b";
1155
+ readonly type: "uint256";
1156
+ readonly internalType: "uint256";
1157
+ }, {
1158
+ readonly name: "eval_c";
1159
+ readonly type: "uint256";
1160
+ readonly internalType: "uint256";
1161
+ }, {
1162
+ readonly name: "eval_s1";
1163
+ readonly type: "uint256";
1164
+ readonly internalType: "uint256";
1165
+ }, {
1166
+ readonly name: "eval_s2";
1167
+ readonly type: "uint256";
1168
+ readonly internalType: "uint256";
1169
+ }, {
1170
+ readonly name: "eval_zw";
1171
+ readonly type: "uint256";
1172
+ readonly internalType: "uint256";
1173
+ }, {
1174
+ readonly name: "Wxi";
1175
+ readonly type: "bytes";
1176
+ readonly internalType: "bytes";
1177
+ }, {
1178
+ readonly name: "Wxiw";
1179
+ readonly type: "bytes";
1180
+ readonly internalType: "bytes";
1181
+ }];
838
1182
  }, {
839
1183
  readonly name: "nullifier";
840
1184
  readonly type: "bytes32";
@@ -945,8 +1289,69 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
945
1289
  readonly name: "transfer";
946
1290
  readonly inputs: readonly [{
947
1291
  readonly name: "proof";
948
- readonly type: "bytes";
949
- readonly internalType: "bytes";
1292
+ readonly type: "tuple";
1293
+ readonly internalType: "struct PlonkVerifierBLS12381.Proof";
1294
+ readonly components: readonly [{
1295
+ readonly name: "A";
1296
+ readonly type: "bytes";
1297
+ readonly internalType: "bytes";
1298
+ }, {
1299
+ readonly name: "B";
1300
+ readonly type: "bytes";
1301
+ readonly internalType: "bytes";
1302
+ }, {
1303
+ readonly name: "C";
1304
+ readonly type: "bytes";
1305
+ readonly internalType: "bytes";
1306
+ }, {
1307
+ readonly name: "Z";
1308
+ readonly type: "bytes";
1309
+ readonly internalType: "bytes";
1310
+ }, {
1311
+ readonly name: "T1";
1312
+ readonly type: "bytes";
1313
+ readonly internalType: "bytes";
1314
+ }, {
1315
+ readonly name: "T2";
1316
+ readonly type: "bytes";
1317
+ readonly internalType: "bytes";
1318
+ }, {
1319
+ readonly name: "T3";
1320
+ readonly type: "bytes";
1321
+ readonly internalType: "bytes";
1322
+ }, {
1323
+ readonly name: "eval_a";
1324
+ readonly type: "uint256";
1325
+ readonly internalType: "uint256";
1326
+ }, {
1327
+ readonly name: "eval_b";
1328
+ readonly type: "uint256";
1329
+ readonly internalType: "uint256";
1330
+ }, {
1331
+ readonly name: "eval_c";
1332
+ readonly type: "uint256";
1333
+ readonly internalType: "uint256";
1334
+ }, {
1335
+ readonly name: "eval_s1";
1336
+ readonly type: "uint256";
1337
+ readonly internalType: "uint256";
1338
+ }, {
1339
+ readonly name: "eval_s2";
1340
+ readonly type: "uint256";
1341
+ readonly internalType: "uint256";
1342
+ }, {
1343
+ readonly name: "eval_zw";
1344
+ readonly type: "uint256";
1345
+ readonly internalType: "uint256";
1346
+ }, {
1347
+ readonly name: "Wxi";
1348
+ readonly type: "bytes";
1349
+ readonly internalType: "bytes";
1350
+ }, {
1351
+ readonly name: "Wxiw";
1352
+ readonly type: "bytes";
1353
+ readonly internalType: "bytes";
1354
+ }];
950
1355
  }, {
951
1356
  readonly name: "nullifier";
952
1357
  readonly type: "bytes32";
@@ -1031,7 +1436,7 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
1031
1436
  readonly outputs: readonly [{
1032
1437
  readonly name: "";
1033
1438
  readonly type: "address";
1034
- readonly internalType: "contract ITransferVerifier";
1439
+ readonly internalType: "contract IUPPVerifier";
1035
1440
  }];
1036
1441
  readonly stateMutability: "view";
1037
1442
  }, {
@@ -1039,8 +1444,69 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
1039
1444
  readonly name: "withdraw";
1040
1445
  readonly inputs: readonly [{
1041
1446
  readonly name: "proof";
1042
- readonly type: "bytes";
1043
- readonly internalType: "bytes";
1447
+ readonly type: "tuple";
1448
+ readonly internalType: "struct PlonkVerifierBLS12381.Proof";
1449
+ readonly components: readonly [{
1450
+ readonly name: "A";
1451
+ readonly type: "bytes";
1452
+ readonly internalType: "bytes";
1453
+ }, {
1454
+ readonly name: "B";
1455
+ readonly type: "bytes";
1456
+ readonly internalType: "bytes";
1457
+ }, {
1458
+ readonly name: "C";
1459
+ readonly type: "bytes";
1460
+ readonly internalType: "bytes";
1461
+ }, {
1462
+ readonly name: "Z";
1463
+ readonly type: "bytes";
1464
+ readonly internalType: "bytes";
1465
+ }, {
1466
+ readonly name: "T1";
1467
+ readonly type: "bytes";
1468
+ readonly internalType: "bytes";
1469
+ }, {
1470
+ readonly name: "T2";
1471
+ readonly type: "bytes";
1472
+ readonly internalType: "bytes";
1473
+ }, {
1474
+ readonly name: "T3";
1475
+ readonly type: "bytes";
1476
+ readonly internalType: "bytes";
1477
+ }, {
1478
+ readonly name: "eval_a";
1479
+ readonly type: "uint256";
1480
+ readonly internalType: "uint256";
1481
+ }, {
1482
+ readonly name: "eval_b";
1483
+ readonly type: "uint256";
1484
+ readonly internalType: "uint256";
1485
+ }, {
1486
+ readonly name: "eval_c";
1487
+ readonly type: "uint256";
1488
+ readonly internalType: "uint256";
1489
+ }, {
1490
+ readonly name: "eval_s1";
1491
+ readonly type: "uint256";
1492
+ readonly internalType: "uint256";
1493
+ }, {
1494
+ readonly name: "eval_s2";
1495
+ readonly type: "uint256";
1496
+ readonly internalType: "uint256";
1497
+ }, {
1498
+ readonly name: "eval_zw";
1499
+ readonly type: "uint256";
1500
+ readonly internalType: "uint256";
1501
+ }, {
1502
+ readonly name: "Wxi";
1503
+ readonly type: "bytes";
1504
+ readonly internalType: "bytes";
1505
+ }, {
1506
+ readonly name: "Wxiw";
1507
+ readonly type: "bytes";
1508
+ readonly internalType: "bytes";
1509
+ }];
1044
1510
  }, {
1045
1511
  readonly name: "nullifier";
1046
1512
  readonly type: "bytes32";
@@ -1125,7 +1591,7 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
1125
1591
  readonly outputs: readonly [{
1126
1592
  readonly name: "";
1127
1593
  readonly type: "address";
1128
- readonly internalType: "contract IWithdrawVerifier";
1594
+ readonly internalType: "contract IUPPVerifier";
1129
1595
  }];
1130
1596
  readonly stateMutability: "view";
1131
1597
  }, {