bstest001 0.0.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.
@@ -0,0 +1,798 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "contract Verifier2",
6
+ "name": "_verifier2",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "uint32",
11
+ "name": "_levels",
12
+ "type": "uint32"
13
+ },
14
+ {
15
+ "internalType": "address",
16
+ "name": "_hasher",
17
+ "type": "address"
18
+ }
19
+ ],
20
+ "stateMutability": "nonpayable",
21
+ "type": "constructor"
22
+ },
23
+ {
24
+ "inputs": [
25
+ {
26
+ "internalType": "address",
27
+ "name": "target",
28
+ "type": "address"
29
+ }
30
+ ],
31
+ "name": "AddressEmptyCode",
32
+ "type": "error"
33
+ },
34
+ {
35
+ "inputs": [
36
+ {
37
+ "internalType": "address",
38
+ "name": "implementation",
39
+ "type": "address"
40
+ }
41
+ ],
42
+ "name": "ERC1967InvalidImplementation",
43
+ "type": "error"
44
+ },
45
+ {
46
+ "inputs": [],
47
+ "name": "ERC1967NonPayable",
48
+ "type": "error"
49
+ },
50
+ {
51
+ "inputs": [],
52
+ "name": "FailedCall",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [],
57
+ "name": "InvalidInitialization",
58
+ "type": "error"
59
+ },
60
+ {
61
+ "inputs": [],
62
+ "name": "NotInitializing",
63
+ "type": "error"
64
+ },
65
+ {
66
+ "inputs": [],
67
+ "name": "UUPSUnauthorizedCallContext",
68
+ "type": "error"
69
+ },
70
+ {
71
+ "inputs": [
72
+ {
73
+ "internalType": "bytes32",
74
+ "name": "slot",
75
+ "type": "bytes32"
76
+ }
77
+ ],
78
+ "name": "UUPSUnsupportedProxiableUUID",
79
+ "type": "error"
80
+ },
81
+ {
82
+ "anonymous": false,
83
+ "inputs": [
84
+ {
85
+ "indexed": true,
86
+ "internalType": "address",
87
+ "name": "oldAdmin",
88
+ "type": "address"
89
+ },
90
+ {
91
+ "indexed": true,
92
+ "internalType": "address",
93
+ "name": "newAdmin",
94
+ "type": "address"
95
+ }
96
+ ],
97
+ "name": "AdminChanged",
98
+ "type": "event"
99
+ },
100
+ {
101
+ "anonymous": false,
102
+ "inputs": [
103
+ {
104
+ "indexed": false,
105
+ "internalType": "uint64",
106
+ "name": "version",
107
+ "type": "uint64"
108
+ }
109
+ ],
110
+ "name": "Initialized",
111
+ "type": "event"
112
+ },
113
+ {
114
+ "anonymous": false,
115
+ "inputs": [
116
+ {
117
+ "indexed": false,
118
+ "internalType": "uint256",
119
+ "name": "maximumDepositAmount",
120
+ "type": "uint256"
121
+ }
122
+ ],
123
+ "name": "LimitsConfigured",
124
+ "type": "event"
125
+ },
126
+ {
127
+ "anonymous": false,
128
+ "inputs": [
129
+ {
130
+ "indexed": false,
131
+ "internalType": "bytes32",
132
+ "name": "commitment",
133
+ "type": "bytes32"
134
+ },
135
+ {
136
+ "indexed": false,
137
+ "internalType": "uint256",
138
+ "name": "index",
139
+ "type": "uint256"
140
+ },
141
+ {
142
+ "indexed": false,
143
+ "internalType": "bytes",
144
+ "name": "encryptedOutput",
145
+ "type": "bytes"
146
+ }
147
+ ],
148
+ "name": "NewCommitment",
149
+ "type": "event"
150
+ },
151
+ {
152
+ "anonymous": false,
153
+ "inputs": [
154
+ {
155
+ "indexed": false,
156
+ "internalType": "bytes32",
157
+ "name": "nullifier",
158
+ "type": "bytes32"
159
+ }
160
+ ],
161
+ "name": "NewNullifier",
162
+ "type": "event"
163
+ },
164
+ {
165
+ "anonymous": false,
166
+ "inputs": [
167
+ {
168
+ "indexed": true,
169
+ "internalType": "address",
170
+ "name": "owner",
171
+ "type": "address"
172
+ },
173
+ {
174
+ "indexed": false,
175
+ "internalType": "bytes",
176
+ "name": "key",
177
+ "type": "bytes"
178
+ }
179
+ ],
180
+ "name": "PublicKey",
181
+ "type": "event"
182
+ },
183
+ {
184
+ "anonymous": false,
185
+ "inputs": [
186
+ {
187
+ "indexed": true,
188
+ "internalType": "address",
189
+ "name": "implementation",
190
+ "type": "address"
191
+ }
192
+ ],
193
+ "name": "Upgraded",
194
+ "type": "event"
195
+ },
196
+ {
197
+ "inputs": [],
198
+ "name": "FIELD_SIZE",
199
+ "outputs": [
200
+ {
201
+ "internalType": "uint256",
202
+ "name": "",
203
+ "type": "uint256"
204
+ }
205
+ ],
206
+ "stateMutability": "view",
207
+ "type": "function"
208
+ },
209
+ {
210
+ "inputs": [],
211
+ "name": "MAX_EXT_AMOUNT",
212
+ "outputs": [
213
+ {
214
+ "internalType": "int256",
215
+ "name": "",
216
+ "type": "int256"
217
+ }
218
+ ],
219
+ "stateMutability": "view",
220
+ "type": "function"
221
+ },
222
+ {
223
+ "inputs": [],
224
+ "name": "MAX_FEE",
225
+ "outputs": [
226
+ {
227
+ "internalType": "uint256",
228
+ "name": "",
229
+ "type": "uint256"
230
+ }
231
+ ],
232
+ "stateMutability": "view",
233
+ "type": "function"
234
+ },
235
+ {
236
+ "inputs": [],
237
+ "name": "ROOT_HISTORY_SIZE",
238
+ "outputs": [
239
+ {
240
+ "internalType": "uint32",
241
+ "name": "",
242
+ "type": "uint32"
243
+ }
244
+ ],
245
+ "stateMutability": "view",
246
+ "type": "function"
247
+ },
248
+ {
249
+ "inputs": [],
250
+ "name": "UPGRADE_INTERFACE_VERSION",
251
+ "outputs": [
252
+ {
253
+ "internalType": "string",
254
+ "name": "",
255
+ "type": "string"
256
+ }
257
+ ],
258
+ "stateMutability": "view",
259
+ "type": "function"
260
+ },
261
+ {
262
+ "inputs": [],
263
+ "name": "admin",
264
+ "outputs": [
265
+ {
266
+ "internalType": "address",
267
+ "name": "",
268
+ "type": "address"
269
+ }
270
+ ],
271
+ "stateMutability": "view",
272
+ "type": "function"
273
+ },
274
+ {
275
+ "inputs": [
276
+ {
277
+ "internalType": "int256",
278
+ "name": "_extAmount",
279
+ "type": "int256"
280
+ },
281
+ {
282
+ "internalType": "uint256",
283
+ "name": "_fee",
284
+ "type": "uint256"
285
+ }
286
+ ],
287
+ "name": "calculatePublicAmount",
288
+ "outputs": [
289
+ {
290
+ "internalType": "uint256",
291
+ "name": "",
292
+ "type": "uint256"
293
+ }
294
+ ],
295
+ "stateMutability": "pure",
296
+ "type": "function"
297
+ },
298
+ {
299
+ "inputs": [],
300
+ "name": "claimAdmin",
301
+ "outputs": [],
302
+ "stateMutability": "nonpayable",
303
+ "type": "function"
304
+ },
305
+ {
306
+ "inputs": [
307
+ {
308
+ "internalType": "uint256",
309
+ "name": "_maximumDepositAmount",
310
+ "type": "uint256"
311
+ }
312
+ ],
313
+ "name": "configureLimits",
314
+ "outputs": [],
315
+ "stateMutability": "nonpayable",
316
+ "type": "function"
317
+ },
318
+ {
319
+ "inputs": [],
320
+ "name": "currentRootIndex",
321
+ "outputs": [
322
+ {
323
+ "internalType": "uint32",
324
+ "name": "",
325
+ "type": "uint32"
326
+ }
327
+ ],
328
+ "stateMutability": "view",
329
+ "type": "function"
330
+ },
331
+ {
332
+ "inputs": [
333
+ {
334
+ "internalType": "uint256",
335
+ "name": "",
336
+ "type": "uint256"
337
+ }
338
+ ],
339
+ "name": "filledSubtrees",
340
+ "outputs": [
341
+ {
342
+ "internalType": "bytes32",
343
+ "name": "",
344
+ "type": "bytes32"
345
+ }
346
+ ],
347
+ "stateMutability": "view",
348
+ "type": "function"
349
+ },
350
+ {
351
+ "inputs": [],
352
+ "name": "getLastRoot",
353
+ "outputs": [
354
+ {
355
+ "internalType": "bytes32",
356
+ "name": "",
357
+ "type": "bytes32"
358
+ }
359
+ ],
360
+ "stateMutability": "view",
361
+ "type": "function"
362
+ },
363
+ {
364
+ "inputs": [
365
+ {
366
+ "internalType": "bytes32",
367
+ "name": "_left",
368
+ "type": "bytes32"
369
+ },
370
+ {
371
+ "internalType": "bytes32",
372
+ "name": "_right",
373
+ "type": "bytes32"
374
+ }
375
+ ],
376
+ "name": "hashLeftRight",
377
+ "outputs": [
378
+ {
379
+ "internalType": "bytes32",
380
+ "name": "",
381
+ "type": "bytes32"
382
+ }
383
+ ],
384
+ "stateMutability": "view",
385
+ "type": "function"
386
+ },
387
+ {
388
+ "inputs": [],
389
+ "name": "hasher",
390
+ "outputs": [
391
+ {
392
+ "internalType": "contract IHasher",
393
+ "name": "",
394
+ "type": "address"
395
+ }
396
+ ],
397
+ "stateMutability": "view",
398
+ "type": "function"
399
+ },
400
+ {
401
+ "inputs": [
402
+ {
403
+ "internalType": "uint256",
404
+ "name": "_maximumDepositAmount",
405
+ "type": "uint256"
406
+ },
407
+ {
408
+ "internalType": "address",
409
+ "name": "_admin",
410
+ "type": "address"
411
+ }
412
+ ],
413
+ "name": "initialize",
414
+ "outputs": [],
415
+ "stateMutability": "nonpayable",
416
+ "type": "function"
417
+ },
418
+ {
419
+ "inputs": [
420
+ {
421
+ "internalType": "bytes32",
422
+ "name": "_root",
423
+ "type": "bytes32"
424
+ }
425
+ ],
426
+ "name": "isKnownRoot",
427
+ "outputs": [
428
+ {
429
+ "internalType": "bool",
430
+ "name": "",
431
+ "type": "bool"
432
+ }
433
+ ],
434
+ "stateMutability": "view",
435
+ "type": "function"
436
+ },
437
+ {
438
+ "inputs": [
439
+ {
440
+ "internalType": "bytes32",
441
+ "name": "_nullifierHash",
442
+ "type": "bytes32"
443
+ }
444
+ ],
445
+ "name": "isSpent",
446
+ "outputs": [
447
+ {
448
+ "internalType": "bool",
449
+ "name": "",
450
+ "type": "bool"
451
+ }
452
+ ],
453
+ "stateMutability": "view",
454
+ "type": "function"
455
+ },
456
+ {
457
+ "inputs": [
458
+ {
459
+ "internalType": "bytes32[]",
460
+ "name": "_nullifierHashes",
461
+ "type": "bytes32[]"
462
+ }
463
+ ],
464
+ "name": "isSpentArray",
465
+ "outputs": [
466
+ {
467
+ "internalType": "bool[]",
468
+ "name": "spent",
469
+ "type": "bool[]"
470
+ }
471
+ ],
472
+ "stateMutability": "view",
473
+ "type": "function"
474
+ },
475
+ {
476
+ "inputs": [],
477
+ "name": "levels",
478
+ "outputs": [
479
+ {
480
+ "internalType": "uint32",
481
+ "name": "",
482
+ "type": "uint32"
483
+ }
484
+ ],
485
+ "stateMutability": "view",
486
+ "type": "function"
487
+ },
488
+ {
489
+ "inputs": [],
490
+ "name": "maximumDepositAmount",
491
+ "outputs": [
492
+ {
493
+ "internalType": "uint256",
494
+ "name": "",
495
+ "type": "uint256"
496
+ }
497
+ ],
498
+ "stateMutability": "view",
499
+ "type": "function"
500
+ },
501
+ {
502
+ "inputs": [],
503
+ "name": "nextIndex",
504
+ "outputs": [
505
+ {
506
+ "internalType": "uint32",
507
+ "name": "",
508
+ "type": "uint32"
509
+ }
510
+ ],
511
+ "stateMutability": "view",
512
+ "type": "function"
513
+ },
514
+ {
515
+ "inputs": [
516
+ {
517
+ "internalType": "bytes32",
518
+ "name": "",
519
+ "type": "bytes32"
520
+ }
521
+ ],
522
+ "name": "nullifierHashes",
523
+ "outputs": [
524
+ {
525
+ "internalType": "bool",
526
+ "name": "",
527
+ "type": "bool"
528
+ }
529
+ ],
530
+ "stateMutability": "view",
531
+ "type": "function"
532
+ },
533
+ {
534
+ "inputs": [],
535
+ "name": "pendingAdmin",
536
+ "outputs": [
537
+ {
538
+ "internalType": "address",
539
+ "name": "",
540
+ "type": "address"
541
+ }
542
+ ],
543
+ "stateMutability": "view",
544
+ "type": "function"
545
+ },
546
+ {
547
+ "inputs": [],
548
+ "name": "proxiableUUID",
549
+ "outputs": [
550
+ {
551
+ "internalType": "bytes32",
552
+ "name": "",
553
+ "type": "bytes32"
554
+ }
555
+ ],
556
+ "stateMutability": "view",
557
+ "type": "function"
558
+ },
559
+ {
560
+ "inputs": [
561
+ {
562
+ "internalType": "uint256",
563
+ "name": "",
564
+ "type": "uint256"
565
+ }
566
+ ],
567
+ "name": "roots",
568
+ "outputs": [
569
+ {
570
+ "internalType": "bytes32",
571
+ "name": "",
572
+ "type": "bytes32"
573
+ }
574
+ ],
575
+ "stateMutability": "view",
576
+ "type": "function"
577
+ },
578
+ {
579
+ "inputs": [
580
+ {
581
+ "components": [
582
+ {
583
+ "internalType": "uint256[2]",
584
+ "name": "pA",
585
+ "type": "uint256[2]"
586
+ },
587
+ {
588
+ "internalType": "uint256[2][2]",
589
+ "name": "pB",
590
+ "type": "uint256[2][2]"
591
+ },
592
+ {
593
+ "internalType": "uint256[2]",
594
+ "name": "pC",
595
+ "type": "uint256[2]"
596
+ },
597
+ {
598
+ "internalType": "bytes32",
599
+ "name": "root",
600
+ "type": "bytes32"
601
+ },
602
+ {
603
+ "internalType": "bytes32[2]",
604
+ "name": "inputNullifiers",
605
+ "type": "bytes32[2]"
606
+ },
607
+ {
608
+ "internalType": "bytes32[2]",
609
+ "name": "outputCommitments",
610
+ "type": "bytes32[2]"
611
+ },
612
+ {
613
+ "internalType": "uint256",
614
+ "name": "publicAmount",
615
+ "type": "uint256"
616
+ },
617
+ {
618
+ "internalType": "bytes32",
619
+ "name": "extDataHash",
620
+ "type": "bytes32"
621
+ }
622
+ ],
623
+ "internalType": "struct EtherPool.Proof",
624
+ "name": "_args",
625
+ "type": "tuple"
626
+ },
627
+ {
628
+ "components": [
629
+ {
630
+ "internalType": "address",
631
+ "name": "recipient",
632
+ "type": "address"
633
+ },
634
+ {
635
+ "internalType": "int256",
636
+ "name": "extAmount",
637
+ "type": "int256"
638
+ },
639
+ {
640
+ "internalType": "address",
641
+ "name": "feeRecipient",
642
+ "type": "address"
643
+ },
644
+ {
645
+ "internalType": "uint256",
646
+ "name": "fee",
647
+ "type": "uint256"
648
+ },
649
+ {
650
+ "internalType": "bytes",
651
+ "name": "encryptedOutput1",
652
+ "type": "bytes"
653
+ },
654
+ {
655
+ "internalType": "bytes",
656
+ "name": "encryptedOutput2",
657
+ "type": "bytes"
658
+ }
659
+ ],
660
+ "internalType": "struct EtherPool.ExtData",
661
+ "name": "_extData",
662
+ "type": "tuple"
663
+ }
664
+ ],
665
+ "name": "transact",
666
+ "outputs": [],
667
+ "stateMutability": "payable",
668
+ "type": "function"
669
+ },
670
+ {
671
+ "inputs": [
672
+ {
673
+ "internalType": "address",
674
+ "name": "_newAdmin",
675
+ "type": "address"
676
+ }
677
+ ],
678
+ "name": "transferAdmin",
679
+ "outputs": [],
680
+ "stateMutability": "nonpayable",
681
+ "type": "function"
682
+ },
683
+ {
684
+ "inputs": [
685
+ {
686
+ "internalType": "address",
687
+ "name": "newImplementation",
688
+ "type": "address"
689
+ },
690
+ {
691
+ "internalType": "bytes",
692
+ "name": "data",
693
+ "type": "bytes"
694
+ }
695
+ ],
696
+ "name": "upgradeToAndCall",
697
+ "outputs": [],
698
+ "stateMutability": "payable",
699
+ "type": "function"
700
+ },
701
+ {
702
+ "inputs": [],
703
+ "name": "verifier2",
704
+ "outputs": [
705
+ {
706
+ "internalType": "contract Verifier2",
707
+ "name": "",
708
+ "type": "address"
709
+ }
710
+ ],
711
+ "stateMutability": "view",
712
+ "type": "function"
713
+ },
714
+ {
715
+ "inputs": [
716
+ {
717
+ "components": [
718
+ {
719
+ "internalType": "uint256[2]",
720
+ "name": "pA",
721
+ "type": "uint256[2]"
722
+ },
723
+ {
724
+ "internalType": "uint256[2][2]",
725
+ "name": "pB",
726
+ "type": "uint256[2][2]"
727
+ },
728
+ {
729
+ "internalType": "uint256[2]",
730
+ "name": "pC",
731
+ "type": "uint256[2]"
732
+ },
733
+ {
734
+ "internalType": "bytes32",
735
+ "name": "root",
736
+ "type": "bytes32"
737
+ },
738
+ {
739
+ "internalType": "bytes32[2]",
740
+ "name": "inputNullifiers",
741
+ "type": "bytes32[2]"
742
+ },
743
+ {
744
+ "internalType": "bytes32[2]",
745
+ "name": "outputCommitments",
746
+ "type": "bytes32[2]"
747
+ },
748
+ {
749
+ "internalType": "uint256",
750
+ "name": "publicAmount",
751
+ "type": "uint256"
752
+ },
753
+ {
754
+ "internalType": "bytes32",
755
+ "name": "extDataHash",
756
+ "type": "bytes32"
757
+ }
758
+ ],
759
+ "internalType": "struct EtherPool.Proof",
760
+ "name": "_args",
761
+ "type": "tuple"
762
+ }
763
+ ],
764
+ "name": "verifyProof",
765
+ "outputs": [
766
+ {
767
+ "internalType": "bool",
768
+ "name": "",
769
+ "type": "bool"
770
+ }
771
+ ],
772
+ "stateMutability": "view",
773
+ "type": "function"
774
+ },
775
+ {
776
+ "inputs": [
777
+ {
778
+ "internalType": "uint256",
779
+ "name": "i",
780
+ "type": "uint256"
781
+ }
782
+ ],
783
+ "name": "zeros",
784
+ "outputs": [
785
+ {
786
+ "internalType": "bytes32",
787
+ "name": "",
788
+ "type": "bytes32"
789
+ }
790
+ ],
791
+ "stateMutability": "pure",
792
+ "type": "function"
793
+ },
794
+ {
795
+ "stateMutability": "payable",
796
+ "type": "receive"
797
+ }
798
+ ]