@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
package/dist/index.js CHANGED
@@ -1,17 +1,17 @@
1
- export { NOTE_VERSION, createNote, createUPPClient, decryptNote, encryptNote } from './chunk-CEJN5ZE5.js';
2
- export { buildTransfer, buildUPPTransferCircuitInputs, computeNullifier, formatOutputForContract, getDeployment, getDeploymentOrThrow, getMerkleProofsForNotes, getSupportedChainIds, getTokenAddress, hasDeployment, registerDeployment, syncMerkleTree } from './chunk-OBBSIPEK.js';
3
- export { makeRpcIndexer } from './chunk-6BHF4HOB.js';
4
- export { addPoints, computeSharedSecret, deriveDecryptionViewingKey, deriveEncryptionViewingKey, getBasePoint, getSubOrder, isOnCurve, mulPointScalar, packPoint, pointToTuple, privateToPublic, tupleToPoint } from './chunk-EHGH6TAW.js';
5
- export { STARK_AMOUNT_SCALE, STARK_ASP_TREE_DEPTH, STARK_STATE_TREE_DEPTH, addressToM31, buildStarkTransferWitness, buildStarkWithdrawWitness, computeTransferPublicInputsSeed, computeWithdrawPublicInputsSeed, isStarkAligned, packM31Digest, scaleAmountForStark, splitSecretToM31Limbs, truncateToM31 } from './chunk-7T4CUE6E.js';
6
- export { MAX_TREE_DEPTH, MerkleTree, buildMerkleTree, getMerkleProof, verifyMerkleProof } from './chunk-GPF72JFR.js';
1
+ export { NOTE_VERSION, createNote, createUPPClient, decryptNote, encryptNote } from './chunk-O6ALW7DB.js';
2
+ export { buildTransfer, buildUPPTransferCircuitInputs, computeNullifier, formatOutputForContract, getDeployment, getDeploymentOrThrow, getMerkleProofsForNotes, getSupportedChainIds, getTokenAddress, hasDeployment, registerDeployment, syncMerkleTree } from './chunk-UC2QMWGS.js';
3
+ export { makeRpcIndexer } from './chunk-4UKH6LXH.js';
7
4
  export { DEFAULT_KEY_DERIVATION_CONFIG, deriveDualKeysFromSignature, deriveKeysFromSignature, deriveNullifierKey, derivePerNoteKey, derivePerNoteKeyFromKeys, deriveStarkKeysFromSignature, deriveStarkPerNoteKey, deriveStarkPerNoteKeyFromKeys, exportViewingKeysForAudit, getKeyDerivationMessage, getViewingKeyFromExport, validateAuditKeyExport, verifyKeysMatchSignature } from './chunk-DTEAFJG7.js';
8
- export { DIGEST_SIZE, M31_P, SECRET_LIMBS, computeStarkCommitment, computeStarkNullifier, computeStarkOwnerHash, keccakHashTwo, keccakM31, splitToM31Limbs } from './chunk-6TFDBBAQ.js';
9
5
  export { ADDRESS_VERSION, DirectAccountAdapter, NoteStore, RATE_PRECISION, STARK_ADDRESS_VERSION, STARK_STEALTH_ADDRESS_PREFIX, STEALTH_ADDRESS_PREFIX, SWAP_EVENTS_ABI, SWAP_ORDER_CANCELLED_EVENT, SWAP_ORDER_CLAIMED_EVENT, SWAP_ORDER_FILLED_EVENT, SWAP_ORDER_PLACED_EVENT, StorableAccountAdapter, computeCancelKeyHash, computeFillPercentage, computeGiveAmount, computeNoteEncryptionKey, computeRate, computeTakeAmount, computeTotalBuyAmount, createOneTimeKeys, decodeStarkStealthAddress, decodeStealthAddress, detectAddressType, encodeStarkStealthAddress, encodeStealthAddress, filterOrdersByASP, filterOrdersByTokenPair, formatRate, generateCancelSecret, generateStarkStealthAddress, generateStealthAddress, getCancelSecret, getOwnOrderIds, isFillerASPAccepted, isOrderActive, isValidStarkStealthAddress, isValidStealthAddress, removeCancelSecret, storeCancelSecret, verifyOwnership } from './chunk-RNUG3EFC.js';
10
6
  export { DEMO_ASP_ID, DEMO_ASP_NAME, buildASPTree, computeMultiOriginASPRoot, computeSingleOriginASPRoot, createDemoASPRoot, generateASPProof, generateMultiOriginASPProof, generateSingleOriginASPProof, verifyASPProof } from './chunk-6IEYWJVS.js';
11
7
  import './chunk-XV72HNHN.js';
8
+ export { addPoints, computeSharedSecret, deriveDecryptionViewingKey, deriveEncryptionViewingKey, getBasePoint, getSubOrder, isOnCurve, mulPointScalar, packPoint, pointToTuple, privateToPublic, tupleToPoint } from './chunk-EHGH6TAW.js';
9
+ export { STARK_AMOUNT_SCALE, STARK_ASP_TREE_DEPTH, STARK_STATE_TREE_DEPTH, addressToM31, buildStarkTransferWitness, buildStarkWithdrawWitness, computeTransferPublicInputsSeed, computeWithdrawPublicInputsSeed, isStarkAligned, packM31Digest, scaleAmountForStark, splitSecretToM31Limbs, truncateToM31 } from './chunk-7T4CUE6E.js';
10
+ export { MAX_TREE_DEPTH, MerkleTree, buildMerkleTree, getMerkleProof, verifyMerkleProof } from './chunk-GPF72JFR.js';
11
+ export { DIGEST_SIZE, M31_P, SECRET_LIMBS, computeStarkCommitment, computeStarkNullifier, computeStarkOwnerHash, keccakHashTwo, keccakM31, splitToM31Limbs } from './chunk-6TFDBBAQ.js';
12
12
  export { bigintToBytes, bytesToBigint, bytesToHex, hexToBytes, randomBytes, randomFieldElement } from './chunk-UQIM2KT3.js';
13
13
  export { BABYJUBJUB_SUBORDER, FIELD_PRIME, addressToField, fieldToAddress, isValidFieldElement, poseidon, poseidonHash, poseidonScalar, toFieldElement } from './chunk-5QSSX3KR.js';
14
- export { ASP_TREE_DEPTH, STATE_TREE_DEPTH, formatProofForContract, generateProof, generateStealthProof, generateUPPProof, getStealthCircuitArtifacts, getUPPCircuitArtifacts, verifyProof } from './chunk-W3HLIKC2.js';
14
+ export { ASP_TREE_DEPTH, STATE_TREE_DEPTH, formatProofForContract, generateProof, generateStealthProof, generateUPPProof, getStealthCircuitArtifacts, getUPPCircuitArtifacts, verifyProof } from './chunk-KRLRJ3HN.js';
15
15
  import './chunk-Z6ZWNWWR.js';
16
16
  export { ASP_REGISTRY_HUB_ABI } from '@permissionless-technologies/upc-sdk';
17
17
 
@@ -25,11 +25,6 @@ var UNIVERSAL_PRIVATE_POOL_ABI = [
25
25
  "type": "address",
26
26
  "internalType": "address"
27
27
  },
28
- {
29
- "name": "_shieldVerifier",
30
- "type": "address",
31
- "internalType": "address"
32
- },
33
28
  {
34
29
  "name": "_transferVerifier",
35
30
  "type": "address",
@@ -269,8 +264,85 @@ var UNIVERSAL_PRIVATE_POOL_ABI = [
269
264
  "inputs": [
270
265
  {
271
266
  "name": "proof",
272
- "type": "bytes",
273
- "internalType": "bytes"
267
+ "type": "tuple",
268
+ "internalType": "struct PlonkVerifierBLS12381.Proof",
269
+ "components": [
270
+ {
271
+ "name": "A",
272
+ "type": "bytes",
273
+ "internalType": "bytes"
274
+ },
275
+ {
276
+ "name": "B",
277
+ "type": "bytes",
278
+ "internalType": "bytes"
279
+ },
280
+ {
281
+ "name": "C",
282
+ "type": "bytes",
283
+ "internalType": "bytes"
284
+ },
285
+ {
286
+ "name": "Z",
287
+ "type": "bytes",
288
+ "internalType": "bytes"
289
+ },
290
+ {
291
+ "name": "T1",
292
+ "type": "bytes",
293
+ "internalType": "bytes"
294
+ },
295
+ {
296
+ "name": "T2",
297
+ "type": "bytes",
298
+ "internalType": "bytes"
299
+ },
300
+ {
301
+ "name": "T3",
302
+ "type": "bytes",
303
+ "internalType": "bytes"
304
+ },
305
+ {
306
+ "name": "eval_a",
307
+ "type": "uint256",
308
+ "internalType": "uint256"
309
+ },
310
+ {
311
+ "name": "eval_b",
312
+ "type": "uint256",
313
+ "internalType": "uint256"
314
+ },
315
+ {
316
+ "name": "eval_c",
317
+ "type": "uint256",
318
+ "internalType": "uint256"
319
+ },
320
+ {
321
+ "name": "eval_s1",
322
+ "type": "uint256",
323
+ "internalType": "uint256"
324
+ },
325
+ {
326
+ "name": "eval_s2",
327
+ "type": "uint256",
328
+ "internalType": "uint256"
329
+ },
330
+ {
331
+ "name": "eval_zw",
332
+ "type": "uint256",
333
+ "internalType": "uint256"
334
+ },
335
+ {
336
+ "name": "Wxi",
337
+ "type": "bytes",
338
+ "internalType": "bytes"
339
+ },
340
+ {
341
+ "name": "Wxiw",
342
+ "type": "bytes",
343
+ "internalType": "bytes"
344
+ }
345
+ ]
274
346
  },
275
347
  {
276
348
  "name": "nullifiers",
@@ -329,7 +401,7 @@ var UNIVERSAL_PRIVATE_POOL_ABI = [
329
401
  {
330
402
  "name": "",
331
403
  "type": "address",
332
- "internalType": "contract IJoinSplitVerifier"
404
+ "internalType": "contract IUPPVerifier"
333
405
  }
334
406
  ],
335
407
  "stateMutability": "view"
@@ -340,8 +412,85 @@ var UNIVERSAL_PRIVATE_POOL_ABI = [
340
412
  "inputs": [
341
413
  {
342
414
  "name": "proof",
343
- "type": "bytes",
344
- "internalType": "bytes"
415
+ "type": "tuple",
416
+ "internalType": "struct PlonkVerifierBLS12381.Proof",
417
+ "components": [
418
+ {
419
+ "name": "A",
420
+ "type": "bytes",
421
+ "internalType": "bytes"
422
+ },
423
+ {
424
+ "name": "B",
425
+ "type": "bytes",
426
+ "internalType": "bytes"
427
+ },
428
+ {
429
+ "name": "C",
430
+ "type": "bytes",
431
+ "internalType": "bytes"
432
+ },
433
+ {
434
+ "name": "Z",
435
+ "type": "bytes",
436
+ "internalType": "bytes"
437
+ },
438
+ {
439
+ "name": "T1",
440
+ "type": "bytes",
441
+ "internalType": "bytes"
442
+ },
443
+ {
444
+ "name": "T2",
445
+ "type": "bytes",
446
+ "internalType": "bytes"
447
+ },
448
+ {
449
+ "name": "T3",
450
+ "type": "bytes",
451
+ "internalType": "bytes"
452
+ },
453
+ {
454
+ "name": "eval_a",
455
+ "type": "uint256",
456
+ "internalType": "uint256"
457
+ },
458
+ {
459
+ "name": "eval_b",
460
+ "type": "uint256",
461
+ "internalType": "uint256"
462
+ },
463
+ {
464
+ "name": "eval_c",
465
+ "type": "uint256",
466
+ "internalType": "uint256"
467
+ },
468
+ {
469
+ "name": "eval_s1",
470
+ "type": "uint256",
471
+ "internalType": "uint256"
472
+ },
473
+ {
474
+ "name": "eval_s2",
475
+ "type": "uint256",
476
+ "internalType": "uint256"
477
+ },
478
+ {
479
+ "name": "eval_zw",
480
+ "type": "uint256",
481
+ "internalType": "uint256"
482
+ },
483
+ {
484
+ "name": "Wxi",
485
+ "type": "bytes",
486
+ "internalType": "bytes"
487
+ },
488
+ {
489
+ "name": "Wxiw",
490
+ "type": "bytes",
491
+ "internalType": "bytes"
492
+ }
493
+ ]
345
494
  },
346
495
  {
347
496
  "name": "nullifier1",
@@ -427,8 +576,85 @@ var UNIVERSAL_PRIVATE_POOL_ABI = [
427
576
  "inputs": [
428
577
  {
429
578
  "name": "proof",
430
- "type": "bytes",
431
- "internalType": "bytes"
579
+ "type": "tuple",
580
+ "internalType": "struct PlonkVerifierBLS12381.Proof",
581
+ "components": [
582
+ {
583
+ "name": "A",
584
+ "type": "bytes",
585
+ "internalType": "bytes"
586
+ },
587
+ {
588
+ "name": "B",
589
+ "type": "bytes",
590
+ "internalType": "bytes"
591
+ },
592
+ {
593
+ "name": "C",
594
+ "type": "bytes",
595
+ "internalType": "bytes"
596
+ },
597
+ {
598
+ "name": "Z",
599
+ "type": "bytes",
600
+ "internalType": "bytes"
601
+ },
602
+ {
603
+ "name": "T1",
604
+ "type": "bytes",
605
+ "internalType": "bytes"
606
+ },
607
+ {
608
+ "name": "T2",
609
+ "type": "bytes",
610
+ "internalType": "bytes"
611
+ },
612
+ {
613
+ "name": "T3",
614
+ "type": "bytes",
615
+ "internalType": "bytes"
616
+ },
617
+ {
618
+ "name": "eval_a",
619
+ "type": "uint256",
620
+ "internalType": "uint256"
621
+ },
622
+ {
623
+ "name": "eval_b",
624
+ "type": "uint256",
625
+ "internalType": "uint256"
626
+ },
627
+ {
628
+ "name": "eval_c",
629
+ "type": "uint256",
630
+ "internalType": "uint256"
631
+ },
632
+ {
633
+ "name": "eval_s1",
634
+ "type": "uint256",
635
+ "internalType": "uint256"
636
+ },
637
+ {
638
+ "name": "eval_s2",
639
+ "type": "uint256",
640
+ "internalType": "uint256"
641
+ },
642
+ {
643
+ "name": "eval_zw",
644
+ "type": "uint256",
645
+ "internalType": "uint256"
646
+ },
647
+ {
648
+ "name": "Wxi",
649
+ "type": "bytes",
650
+ "internalType": "bytes"
651
+ },
652
+ {
653
+ "name": "Wxiw",
654
+ "type": "bytes",
655
+ "internalType": "bytes"
656
+ }
657
+ ]
432
658
  },
433
659
  {
434
660
  "name": "nullifier1",
@@ -482,7 +708,7 @@ var UNIVERSAL_PRIVATE_POOL_ABI = [
482
708
  {
483
709
  "name": "",
484
710
  "type": "address",
485
- "internalType": "contract IMergeTransfer2x2Verifier"
711
+ "internalType": "contract IUPPVerifier"
486
712
  }
487
713
  ],
488
714
  "stateMutability": "view"
@@ -493,8 +719,85 @@ var UNIVERSAL_PRIVATE_POOL_ABI = [
493
719
  "inputs": [
494
720
  {
495
721
  "name": "proof",
496
- "type": "bytes",
497
- "internalType": "bytes"
722
+ "type": "tuple",
723
+ "internalType": "struct PlonkVerifierBLS12381.Proof",
724
+ "components": [
725
+ {
726
+ "name": "A",
727
+ "type": "bytes",
728
+ "internalType": "bytes"
729
+ },
730
+ {
731
+ "name": "B",
732
+ "type": "bytes",
733
+ "internalType": "bytes"
734
+ },
735
+ {
736
+ "name": "C",
737
+ "type": "bytes",
738
+ "internalType": "bytes"
739
+ },
740
+ {
741
+ "name": "Z",
742
+ "type": "bytes",
743
+ "internalType": "bytes"
744
+ },
745
+ {
746
+ "name": "T1",
747
+ "type": "bytes",
748
+ "internalType": "bytes"
749
+ },
750
+ {
751
+ "name": "T2",
752
+ "type": "bytes",
753
+ "internalType": "bytes"
754
+ },
755
+ {
756
+ "name": "T3",
757
+ "type": "bytes",
758
+ "internalType": "bytes"
759
+ },
760
+ {
761
+ "name": "eval_a",
762
+ "type": "uint256",
763
+ "internalType": "uint256"
764
+ },
765
+ {
766
+ "name": "eval_b",
767
+ "type": "uint256",
768
+ "internalType": "uint256"
769
+ },
770
+ {
771
+ "name": "eval_c",
772
+ "type": "uint256",
773
+ "internalType": "uint256"
774
+ },
775
+ {
776
+ "name": "eval_s1",
777
+ "type": "uint256",
778
+ "internalType": "uint256"
779
+ },
780
+ {
781
+ "name": "eval_s2",
782
+ "type": "uint256",
783
+ "internalType": "uint256"
784
+ },
785
+ {
786
+ "name": "eval_zw",
787
+ "type": "uint256",
788
+ "internalType": "uint256"
789
+ },
790
+ {
791
+ "name": "Wxi",
792
+ "type": "bytes",
793
+ "internalType": "bytes"
794
+ },
795
+ {
796
+ "name": "Wxiw",
797
+ "type": "bytes",
798
+ "internalType": "bytes"
799
+ }
800
+ ]
498
801
  },
499
802
  {
500
803
  "name": "nullifiers",
@@ -543,7 +846,7 @@ var UNIVERSAL_PRIVATE_POOL_ABI = [
543
846
  {
544
847
  "name": "",
545
848
  "type": "address",
546
- "internalType": "contract IMergeTransfer4x2Verifier"
849
+ "internalType": "contract IUPPVerifier"
547
850
  }
548
851
  ],
549
852
  "stateMutability": "view"
@@ -556,7 +859,7 @@ var UNIVERSAL_PRIVATE_POOL_ABI = [
556
859
  {
557
860
  "name": "",
558
861
  "type": "address",
559
- "internalType": "contract IMergeVerifier"
862
+ "internalType": "contract IUPPVerifier"
560
863
  }
561
864
  ],
562
865
  "stateMutability": "view"
@@ -727,19 +1030,6 @@ var UNIVERSAL_PRIVATE_POOL_ABI = [
727
1030
  "outputs": [],
728
1031
  "stateMutability": "nonpayable"
729
1032
  },
730
- {
731
- "type": "function",
732
- "name": "shieldVerifier",
733
- "inputs": [],
734
- "outputs": [
735
- {
736
- "name": "",
737
- "type": "address",
738
- "internalType": "contract IShieldVerifier"
739
- }
740
- ],
741
- "stateMutability": "view"
742
- },
743
1033
  {
744
1034
  "type": "function",
745
1035
  "name": "shieldWithPermit",
@@ -955,8 +1245,85 @@ var UNIVERSAL_PRIVATE_POOL_ABI = [
955
1245
  },
956
1246
  {
957
1247
  "name": "proof",
958
- "type": "bytes",
959
- "internalType": "bytes"
1248
+ "type": "tuple",
1249
+ "internalType": "struct PlonkVerifierBLS12381.Proof",
1250
+ "components": [
1251
+ {
1252
+ "name": "A",
1253
+ "type": "bytes",
1254
+ "internalType": "bytes"
1255
+ },
1256
+ {
1257
+ "name": "B",
1258
+ "type": "bytes",
1259
+ "internalType": "bytes"
1260
+ },
1261
+ {
1262
+ "name": "C",
1263
+ "type": "bytes",
1264
+ "internalType": "bytes"
1265
+ },
1266
+ {
1267
+ "name": "Z",
1268
+ "type": "bytes",
1269
+ "internalType": "bytes"
1270
+ },
1271
+ {
1272
+ "name": "T1",
1273
+ "type": "bytes",
1274
+ "internalType": "bytes"
1275
+ },
1276
+ {
1277
+ "name": "T2",
1278
+ "type": "bytes",
1279
+ "internalType": "bytes"
1280
+ },
1281
+ {
1282
+ "name": "T3",
1283
+ "type": "bytes",
1284
+ "internalType": "bytes"
1285
+ },
1286
+ {
1287
+ "name": "eval_a",
1288
+ "type": "uint256",
1289
+ "internalType": "uint256"
1290
+ },
1291
+ {
1292
+ "name": "eval_b",
1293
+ "type": "uint256",
1294
+ "internalType": "uint256"
1295
+ },
1296
+ {
1297
+ "name": "eval_c",
1298
+ "type": "uint256",
1299
+ "internalType": "uint256"
1300
+ },
1301
+ {
1302
+ "name": "eval_s1",
1303
+ "type": "uint256",
1304
+ "internalType": "uint256"
1305
+ },
1306
+ {
1307
+ "name": "eval_s2",
1308
+ "type": "uint256",
1309
+ "internalType": "uint256"
1310
+ },
1311
+ {
1312
+ "name": "eval_zw",
1313
+ "type": "uint256",
1314
+ "internalType": "uint256"
1315
+ },
1316
+ {
1317
+ "name": "Wxi",
1318
+ "type": "bytes",
1319
+ "internalType": "bytes"
1320
+ },
1321
+ {
1322
+ "name": "Wxiw",
1323
+ "type": "bytes",
1324
+ "internalType": "bytes"
1325
+ }
1326
+ ]
960
1327
  },
961
1328
  {
962
1329
  "name": "nullifier",
@@ -1003,8 +1370,85 @@ var UNIVERSAL_PRIVATE_POOL_ABI = [
1003
1370
  "inputs": [
1004
1371
  {
1005
1372
  "name": "proof",
1006
- "type": "bytes",
1007
- "internalType": "bytes"
1373
+ "type": "tuple",
1374
+ "internalType": "struct PlonkVerifierBLS12381.Proof",
1375
+ "components": [
1376
+ {
1377
+ "name": "A",
1378
+ "type": "bytes",
1379
+ "internalType": "bytes"
1380
+ },
1381
+ {
1382
+ "name": "B",
1383
+ "type": "bytes",
1384
+ "internalType": "bytes"
1385
+ },
1386
+ {
1387
+ "name": "C",
1388
+ "type": "bytes",
1389
+ "internalType": "bytes"
1390
+ },
1391
+ {
1392
+ "name": "Z",
1393
+ "type": "bytes",
1394
+ "internalType": "bytes"
1395
+ },
1396
+ {
1397
+ "name": "T1",
1398
+ "type": "bytes",
1399
+ "internalType": "bytes"
1400
+ },
1401
+ {
1402
+ "name": "T2",
1403
+ "type": "bytes",
1404
+ "internalType": "bytes"
1405
+ },
1406
+ {
1407
+ "name": "T3",
1408
+ "type": "bytes",
1409
+ "internalType": "bytes"
1410
+ },
1411
+ {
1412
+ "name": "eval_a",
1413
+ "type": "uint256",
1414
+ "internalType": "uint256"
1415
+ },
1416
+ {
1417
+ "name": "eval_b",
1418
+ "type": "uint256",
1419
+ "internalType": "uint256"
1420
+ },
1421
+ {
1422
+ "name": "eval_c",
1423
+ "type": "uint256",
1424
+ "internalType": "uint256"
1425
+ },
1426
+ {
1427
+ "name": "eval_s1",
1428
+ "type": "uint256",
1429
+ "internalType": "uint256"
1430
+ },
1431
+ {
1432
+ "name": "eval_s2",
1433
+ "type": "uint256",
1434
+ "internalType": "uint256"
1435
+ },
1436
+ {
1437
+ "name": "eval_zw",
1438
+ "type": "uint256",
1439
+ "internalType": "uint256"
1440
+ },
1441
+ {
1442
+ "name": "Wxi",
1443
+ "type": "bytes",
1444
+ "internalType": "bytes"
1445
+ },
1446
+ {
1447
+ "name": "Wxiw",
1448
+ "type": "bytes",
1449
+ "internalType": "bytes"
1450
+ }
1451
+ ]
1008
1452
  },
1009
1453
  {
1010
1454
  "name": "nullifier",
@@ -1145,8 +1589,85 @@ var UNIVERSAL_PRIVATE_POOL_ABI = [
1145
1589
  "inputs": [
1146
1590
  {
1147
1591
  "name": "proof",
1148
- "type": "bytes",
1149
- "internalType": "bytes"
1592
+ "type": "tuple",
1593
+ "internalType": "struct PlonkVerifierBLS12381.Proof",
1594
+ "components": [
1595
+ {
1596
+ "name": "A",
1597
+ "type": "bytes",
1598
+ "internalType": "bytes"
1599
+ },
1600
+ {
1601
+ "name": "B",
1602
+ "type": "bytes",
1603
+ "internalType": "bytes"
1604
+ },
1605
+ {
1606
+ "name": "C",
1607
+ "type": "bytes",
1608
+ "internalType": "bytes"
1609
+ },
1610
+ {
1611
+ "name": "Z",
1612
+ "type": "bytes",
1613
+ "internalType": "bytes"
1614
+ },
1615
+ {
1616
+ "name": "T1",
1617
+ "type": "bytes",
1618
+ "internalType": "bytes"
1619
+ },
1620
+ {
1621
+ "name": "T2",
1622
+ "type": "bytes",
1623
+ "internalType": "bytes"
1624
+ },
1625
+ {
1626
+ "name": "T3",
1627
+ "type": "bytes",
1628
+ "internalType": "bytes"
1629
+ },
1630
+ {
1631
+ "name": "eval_a",
1632
+ "type": "uint256",
1633
+ "internalType": "uint256"
1634
+ },
1635
+ {
1636
+ "name": "eval_b",
1637
+ "type": "uint256",
1638
+ "internalType": "uint256"
1639
+ },
1640
+ {
1641
+ "name": "eval_c",
1642
+ "type": "uint256",
1643
+ "internalType": "uint256"
1644
+ },
1645
+ {
1646
+ "name": "eval_s1",
1647
+ "type": "uint256",
1648
+ "internalType": "uint256"
1649
+ },
1650
+ {
1651
+ "name": "eval_s2",
1652
+ "type": "uint256",
1653
+ "internalType": "uint256"
1654
+ },
1655
+ {
1656
+ "name": "eval_zw",
1657
+ "type": "uint256",
1658
+ "internalType": "uint256"
1659
+ },
1660
+ {
1661
+ "name": "Wxi",
1662
+ "type": "bytes",
1663
+ "internalType": "bytes"
1664
+ },
1665
+ {
1666
+ "name": "Wxiw",
1667
+ "type": "bytes",
1668
+ "internalType": "bytes"
1669
+ }
1670
+ ]
1150
1671
  },
1151
1672
  {
1152
1673
  "name": "nullifier",
@@ -1253,7 +1774,7 @@ var UNIVERSAL_PRIVATE_POOL_ABI = [
1253
1774
  {
1254
1775
  "name": "",
1255
1776
  "type": "address",
1256
- "internalType": "contract ITransferVerifier"
1777
+ "internalType": "contract IUPPVerifier"
1257
1778
  }
1258
1779
  ],
1259
1780
  "stateMutability": "view"
@@ -1264,8 +1785,85 @@ var UNIVERSAL_PRIVATE_POOL_ABI = [
1264
1785
  "inputs": [
1265
1786
  {
1266
1787
  "name": "proof",
1267
- "type": "bytes",
1268
- "internalType": "bytes"
1788
+ "type": "tuple",
1789
+ "internalType": "struct PlonkVerifierBLS12381.Proof",
1790
+ "components": [
1791
+ {
1792
+ "name": "A",
1793
+ "type": "bytes",
1794
+ "internalType": "bytes"
1795
+ },
1796
+ {
1797
+ "name": "B",
1798
+ "type": "bytes",
1799
+ "internalType": "bytes"
1800
+ },
1801
+ {
1802
+ "name": "C",
1803
+ "type": "bytes",
1804
+ "internalType": "bytes"
1805
+ },
1806
+ {
1807
+ "name": "Z",
1808
+ "type": "bytes",
1809
+ "internalType": "bytes"
1810
+ },
1811
+ {
1812
+ "name": "T1",
1813
+ "type": "bytes",
1814
+ "internalType": "bytes"
1815
+ },
1816
+ {
1817
+ "name": "T2",
1818
+ "type": "bytes",
1819
+ "internalType": "bytes"
1820
+ },
1821
+ {
1822
+ "name": "T3",
1823
+ "type": "bytes",
1824
+ "internalType": "bytes"
1825
+ },
1826
+ {
1827
+ "name": "eval_a",
1828
+ "type": "uint256",
1829
+ "internalType": "uint256"
1830
+ },
1831
+ {
1832
+ "name": "eval_b",
1833
+ "type": "uint256",
1834
+ "internalType": "uint256"
1835
+ },
1836
+ {
1837
+ "name": "eval_c",
1838
+ "type": "uint256",
1839
+ "internalType": "uint256"
1840
+ },
1841
+ {
1842
+ "name": "eval_s1",
1843
+ "type": "uint256",
1844
+ "internalType": "uint256"
1845
+ },
1846
+ {
1847
+ "name": "eval_s2",
1848
+ "type": "uint256",
1849
+ "internalType": "uint256"
1850
+ },
1851
+ {
1852
+ "name": "eval_zw",
1853
+ "type": "uint256",
1854
+ "internalType": "uint256"
1855
+ },
1856
+ {
1857
+ "name": "Wxi",
1858
+ "type": "bytes",
1859
+ "internalType": "bytes"
1860
+ },
1861
+ {
1862
+ "name": "Wxiw",
1863
+ "type": "bytes",
1864
+ "internalType": "bytes"
1865
+ }
1866
+ ]
1269
1867
  },
1270
1868
  {
1271
1869
  "name": "nullifier",
@@ -1372,7 +1970,7 @@ var UNIVERSAL_PRIVATE_POOL_ABI = [
1372
1970
  {
1373
1971
  "name": "",
1374
1972
  "type": "address",
1375
- "internalType": "contract IWithdrawVerifier"
1973
+ "internalType": "contract IUPPVerifier"
1376
1974
  }
1377
1975
  ],
1378
1976
  "stateMutability": "view"