@gitmyabi/bzro 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2730 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BZROVault_json = exports.BZROVault_jsonAbi = void 0;
4
+ const viem_1 = require("viem");
5
+ /**
6
+ * BZROVault_json ABI
7
+ *
8
+ * This ABI is typed using viem's type system for full type safety.
9
+ */
10
+ exports.BZROVault_jsonAbi = [
11
+ {
12
+ "inputs": [
13
+ {
14
+ "internalType": "address",
15
+ "name": "initialOwner",
16
+ "type": "address"
17
+ },
18
+ {
19
+ "internalType": "address[]",
20
+ "name": "baseCollections_",
21
+ "type": "address[]"
22
+ }
23
+ ],
24
+ "stateMutability": "nonpayable",
25
+ "type": "constructor"
26
+ },
27
+ {
28
+ "inputs": [],
29
+ "name": "CollectionNotApproved",
30
+ "type": "error"
31
+ },
32
+ {
33
+ "inputs": [],
34
+ "name": "ECDSAInvalidSignature",
35
+ "type": "error"
36
+ },
37
+ {
38
+ "inputs": [
39
+ {
40
+ "internalType": "uint256",
41
+ "name": "length",
42
+ "type": "uint256"
43
+ }
44
+ ],
45
+ "name": "ECDSAInvalidSignatureLength",
46
+ "type": "error"
47
+ },
48
+ {
49
+ "inputs": [
50
+ {
51
+ "internalType": "bytes32",
52
+ "name": "s",
53
+ "type": "bytes32"
54
+ }
55
+ ],
56
+ "name": "ECDSAInvalidSignatureS",
57
+ "type": "error"
58
+ },
59
+ {
60
+ "inputs": [
61
+ {
62
+ "internalType": "address",
63
+ "name": "spender",
64
+ "type": "address"
65
+ },
66
+ {
67
+ "internalType": "uint256",
68
+ "name": "allowance",
69
+ "type": "uint256"
70
+ },
71
+ {
72
+ "internalType": "uint256",
73
+ "name": "needed",
74
+ "type": "uint256"
75
+ }
76
+ ],
77
+ "name": "ERC20InsufficientAllowance",
78
+ "type": "error"
79
+ },
80
+ {
81
+ "inputs": [
82
+ {
83
+ "internalType": "address",
84
+ "name": "sender",
85
+ "type": "address"
86
+ },
87
+ {
88
+ "internalType": "uint256",
89
+ "name": "balance",
90
+ "type": "uint256"
91
+ },
92
+ {
93
+ "internalType": "uint256",
94
+ "name": "needed",
95
+ "type": "uint256"
96
+ }
97
+ ],
98
+ "name": "ERC20InsufficientBalance",
99
+ "type": "error"
100
+ },
101
+ {
102
+ "inputs": [
103
+ {
104
+ "internalType": "address",
105
+ "name": "approver",
106
+ "type": "address"
107
+ }
108
+ ],
109
+ "name": "ERC20InvalidApprover",
110
+ "type": "error"
111
+ },
112
+ {
113
+ "inputs": [
114
+ {
115
+ "internalType": "address",
116
+ "name": "receiver",
117
+ "type": "address"
118
+ }
119
+ ],
120
+ "name": "ERC20InvalidReceiver",
121
+ "type": "error"
122
+ },
123
+ {
124
+ "inputs": [
125
+ {
126
+ "internalType": "address",
127
+ "name": "sender",
128
+ "type": "address"
129
+ }
130
+ ],
131
+ "name": "ERC20InvalidSender",
132
+ "type": "error"
133
+ },
134
+ {
135
+ "inputs": [
136
+ {
137
+ "internalType": "address",
138
+ "name": "spender",
139
+ "type": "address"
140
+ }
141
+ ],
142
+ "name": "ERC20InvalidSpender",
143
+ "type": "error"
144
+ },
145
+ {
146
+ "inputs": [
147
+ {
148
+ "internalType": "uint256",
149
+ "name": "deadline",
150
+ "type": "uint256"
151
+ }
152
+ ],
153
+ "name": "ERC2612ExpiredSignature",
154
+ "type": "error"
155
+ },
156
+ {
157
+ "inputs": [
158
+ {
159
+ "internalType": "address",
160
+ "name": "signer",
161
+ "type": "address"
162
+ },
163
+ {
164
+ "internalType": "address",
165
+ "name": "owner",
166
+ "type": "address"
167
+ }
168
+ ],
169
+ "name": "ERC2612InvalidSigner",
170
+ "type": "error"
171
+ },
172
+ {
173
+ "inputs": [
174
+ {
175
+ "internalType": "uint256",
176
+ "name": "currentStaked",
177
+ "type": "uint256"
178
+ },
179
+ {
180
+ "internalType": "uint256",
181
+ "name": "attempting",
182
+ "type": "uint256"
183
+ },
184
+ {
185
+ "internalType": "uint256",
186
+ "name": "approvedSize",
187
+ "type": "uint256"
188
+ }
189
+ ],
190
+ "name": "ExceedsApprovedCollectionSize",
191
+ "type": "error"
192
+ },
193
+ {
194
+ "inputs": [
195
+ {
196
+ "internalType": "uint256",
197
+ "name": "current",
198
+ "type": "uint256"
199
+ },
200
+ {
201
+ "internalType": "uint256",
202
+ "name": "attempted",
203
+ "type": "uint256"
204
+ },
205
+ {
206
+ "internalType": "uint256",
207
+ "name": "cap",
208
+ "type": "uint256"
209
+ }
210
+ ],
211
+ "name": "GlobalEmissionCapExceeded",
212
+ "type": "error"
213
+ },
214
+ {
215
+ "inputs": [],
216
+ "name": "GovernanceNotSet",
217
+ "type": "error"
218
+ },
219
+ {
220
+ "inputs": [
221
+ {
222
+ "internalType": "address",
223
+ "name": "account",
224
+ "type": "address"
225
+ },
226
+ {
227
+ "internalType": "uint256",
228
+ "name": "currentNonce",
229
+ "type": "uint256"
230
+ }
231
+ ],
232
+ "name": "InvalidAccountNonce",
233
+ "type": "error"
234
+ },
235
+ {
236
+ "inputs": [],
237
+ "name": "InvalidCollection",
238
+ "type": "error"
239
+ },
240
+ {
241
+ "inputs": [],
242
+ "name": "InvalidReceipt",
243
+ "type": "error"
244
+ },
245
+ {
246
+ "inputs": [],
247
+ "name": "InvalidShortString",
248
+ "type": "error"
249
+ },
250
+ {
251
+ "inputs": [],
252
+ "name": "NotTokenOwner",
253
+ "type": "error"
254
+ },
255
+ {
256
+ "inputs": [],
257
+ "name": "OnlyGovernance",
258
+ "type": "error"
259
+ },
260
+ {
261
+ "inputs": [
262
+ {
263
+ "internalType": "address",
264
+ "name": "owner",
265
+ "type": "address"
266
+ }
267
+ ],
268
+ "name": "OwnableInvalidOwner",
269
+ "type": "error"
270
+ },
271
+ {
272
+ "inputs": [
273
+ {
274
+ "internalType": "address",
275
+ "name": "account",
276
+ "type": "address"
277
+ }
278
+ ],
279
+ "name": "OwnableUnauthorizedAccount",
280
+ "type": "error"
281
+ },
282
+ {
283
+ "inputs": [],
284
+ "name": "ReceiptLocked",
285
+ "type": "error"
286
+ },
287
+ {
288
+ "inputs": [],
289
+ "name": "ReentrancyGuardReentrantCall",
290
+ "type": "error"
291
+ },
292
+ {
293
+ "inputs": [
294
+ {
295
+ "internalType": "string",
296
+ "name": "str",
297
+ "type": "string"
298
+ }
299
+ ],
300
+ "name": "StringTooLong",
301
+ "type": "error"
302
+ },
303
+ {
304
+ "inputs": [],
305
+ "name": "TokenAlreadyStaked",
306
+ "type": "error"
307
+ },
308
+ {
309
+ "inputs": [],
310
+ "name": "UnsupportedCollection",
311
+ "type": "error"
312
+ },
313
+ {
314
+ "anonymous": false,
315
+ "inputs": [
316
+ {
317
+ "indexed": true,
318
+ "internalType": "address",
319
+ "name": "owner",
320
+ "type": "address"
321
+ },
322
+ {
323
+ "indexed": true,
324
+ "internalType": "address",
325
+ "name": "spender",
326
+ "type": "address"
327
+ },
328
+ {
329
+ "indexed": false,
330
+ "internalType": "uint256",
331
+ "name": "value",
332
+ "type": "uint256"
333
+ }
334
+ ],
335
+ "name": "Approval",
336
+ "type": "event"
337
+ },
338
+ {
339
+ "anonymous": false,
340
+ "inputs": [
341
+ {
342
+ "indexed": true,
343
+ "internalType": "address",
344
+ "name": "account",
345
+ "type": "address"
346
+ },
347
+ {
348
+ "indexed": false,
349
+ "internalType": "uint256",
350
+ "name": "amount",
351
+ "type": "uint256"
352
+ }
353
+ ],
354
+ "name": "Burn",
355
+ "type": "event"
356
+ },
357
+ {
358
+ "anonymous": false,
359
+ "inputs": [
360
+ {
361
+ "indexed": true,
362
+ "internalType": "address",
363
+ "name": "claimer",
364
+ "type": "address"
365
+ },
366
+ {
367
+ "indexed": true,
368
+ "internalType": "uint256",
369
+ "name": "receiptId",
370
+ "type": "uint256"
371
+ },
372
+ {
373
+ "indexed": false,
374
+ "internalType": "uint256",
375
+ "name": "reward",
376
+ "type": "uint256"
377
+ }
378
+ ],
379
+ "name": "Claimed",
380
+ "type": "event"
381
+ },
382
+ {
383
+ "anonymous": false,
384
+ "inputs": [
385
+ {
386
+ "indexed": true,
387
+ "internalType": "address",
388
+ "name": "collection",
389
+ "type": "address"
390
+ },
391
+ {
392
+ "indexed": false,
393
+ "internalType": "enum BZROVault.CollectionOperation",
394
+ "name": "operation",
395
+ "type": "uint8"
396
+ },
397
+ {
398
+ "indexed": false,
399
+ "internalType": "uint256",
400
+ "name": "collectionSize",
401
+ "type": "uint256"
402
+ },
403
+ {
404
+ "indexed": false,
405
+ "internalType": "uint256",
406
+ "name": "emissionRate",
407
+ "type": "uint256"
408
+ },
409
+ {
410
+ "indexed": false,
411
+ "internalType": "bool",
412
+ "name": "useGenericImage",
413
+ "type": "bool"
414
+ },
415
+ {
416
+ "indexed": false,
417
+ "internalType": "string",
418
+ "name": "fallbackCollectionName",
419
+ "type": "string"
420
+ }
421
+ ],
422
+ "name": "CollectionConfigApplied",
423
+ "type": "event"
424
+ },
425
+ {
426
+ "anonymous": false,
427
+ "inputs": [],
428
+ "name": "EIP712DomainChanged",
429
+ "type": "event"
430
+ },
431
+ {
432
+ "anonymous": false,
433
+ "inputs": [
434
+ {
435
+ "indexed": true,
436
+ "internalType": "address",
437
+ "name": "oldGovernance",
438
+ "type": "address"
439
+ },
440
+ {
441
+ "indexed": true,
442
+ "internalType": "address",
443
+ "name": "newGovernance",
444
+ "type": "address"
445
+ }
446
+ ],
447
+ "name": "GovernanceUpdated",
448
+ "type": "event"
449
+ },
450
+ {
451
+ "anonymous": false,
452
+ "inputs": [
453
+ {
454
+ "indexed": true,
455
+ "internalType": "address",
456
+ "name": "previousOwner",
457
+ "type": "address"
458
+ },
459
+ {
460
+ "indexed": true,
461
+ "internalType": "address",
462
+ "name": "newOwner",
463
+ "type": "address"
464
+ }
465
+ ],
466
+ "name": "OwnershipTransferred",
467
+ "type": "event"
468
+ },
469
+ {
470
+ "anonymous": false,
471
+ "inputs": [
472
+ {
473
+ "indexed": true,
474
+ "internalType": "address",
475
+ "name": "newReceiptNFT",
476
+ "type": "address"
477
+ }
478
+ ],
479
+ "name": "ReceiptNFTUpdated",
480
+ "type": "event"
481
+ },
482
+ {
483
+ "anonymous": false,
484
+ "inputs": [
485
+ {
486
+ "indexed": false,
487
+ "internalType": "uint256",
488
+ "name": "receiptId",
489
+ "type": "uint256"
490
+ },
491
+ {
492
+ "indexed": false,
493
+ "internalType": "string",
494
+ "name": "reason",
495
+ "type": "string"
496
+ }
497
+ ],
498
+ "name": "ReceiptUnlockFailed",
499
+ "type": "event"
500
+ },
501
+ {
502
+ "anonymous": false,
503
+ "inputs": [
504
+ {
505
+ "indexed": true,
506
+ "internalType": "address",
507
+ "name": "proposer",
508
+ "type": "address"
509
+ },
510
+ {
511
+ "indexed": false,
512
+ "internalType": "uint256[]",
513
+ "name": "receiptIds",
514
+ "type": "uint256[]"
515
+ },
516
+ {
517
+ "indexed": false,
518
+ "internalType": "uint256",
519
+ "name": "proposalId",
520
+ "type": "uint256"
521
+ }
522
+ ],
523
+ "name": "ReceiptsLocked",
524
+ "type": "event"
525
+ },
526
+ {
527
+ "anonymous": false,
528
+ "inputs": [
529
+ {
530
+ "indexed": true,
531
+ "internalType": "address",
532
+ "name": "proposer",
533
+ "type": "address"
534
+ },
535
+ {
536
+ "indexed": false,
537
+ "internalType": "uint256[]",
538
+ "name": "receiptIds",
539
+ "type": "uint256[]"
540
+ },
541
+ {
542
+ "indexed": false,
543
+ "internalType": "string",
544
+ "name": "reason",
545
+ "type": "string"
546
+ }
547
+ ],
548
+ "name": "ReceiptsUnlocked",
549
+ "type": "event"
550
+ },
551
+ {
552
+ "anonymous": false,
553
+ "inputs": [
554
+ {
555
+ "indexed": true,
556
+ "internalType": "address",
557
+ "name": "staker",
558
+ "type": "address"
559
+ },
560
+ {
561
+ "indexed": true,
562
+ "internalType": "address",
563
+ "name": "collection",
564
+ "type": "address"
565
+ },
566
+ {
567
+ "indexed": true,
568
+ "internalType": "uint256",
569
+ "name": "tokenId",
570
+ "type": "uint256"
571
+ },
572
+ {
573
+ "indexed": false,
574
+ "internalType": "uint256",
575
+ "name": "receiptId",
576
+ "type": "uint256"
577
+ },
578
+ {
579
+ "indexed": false,
580
+ "internalType": "uint256",
581
+ "name": "stakedAt",
582
+ "type": "uint256"
583
+ }
584
+ ],
585
+ "name": "Staked",
586
+ "type": "event"
587
+ },
588
+ {
589
+ "anonymous": false,
590
+ "inputs": [
591
+ {
592
+ "indexed": true,
593
+ "internalType": "address",
594
+ "name": "from",
595
+ "type": "address"
596
+ },
597
+ {
598
+ "indexed": true,
599
+ "internalType": "address",
600
+ "name": "to",
601
+ "type": "address"
602
+ },
603
+ {
604
+ "indexed": false,
605
+ "internalType": "uint256",
606
+ "name": "value",
607
+ "type": "uint256"
608
+ }
609
+ ],
610
+ "name": "Transfer",
611
+ "type": "event"
612
+ },
613
+ {
614
+ "anonymous": false,
615
+ "inputs": [
616
+ {
617
+ "indexed": true,
618
+ "internalType": "address",
619
+ "name": "receiver",
620
+ "type": "address"
621
+ },
622
+ {
623
+ "indexed": true,
624
+ "internalType": "uint256",
625
+ "name": "receiptId",
626
+ "type": "uint256"
627
+ },
628
+ {
629
+ "indexed": true,
630
+ "internalType": "address",
631
+ "name": "collection",
632
+ "type": "address"
633
+ },
634
+ {
635
+ "indexed": false,
636
+ "internalType": "uint256",
637
+ "name": "tokenId",
638
+ "type": "uint256"
639
+ },
640
+ {
641
+ "indexed": false,
642
+ "internalType": "uint256",
643
+ "name": "reward",
644
+ "type": "uint256"
645
+ }
646
+ ],
647
+ "name": "Unstaked",
648
+ "type": "event"
649
+ },
650
+ {
651
+ "inputs": [],
652
+ "name": "BASE_EMISSION_RATE",
653
+ "outputs": [
654
+ {
655
+ "internalType": "uint256",
656
+ "name": "",
657
+ "type": "uint256"
658
+ }
659
+ ],
660
+ "stateMutability": "view",
661
+ "type": "function"
662
+ },
663
+ {
664
+ "inputs": [],
665
+ "name": "DOMAIN_SEPARATOR",
666
+ "outputs": [
667
+ {
668
+ "internalType": "bytes32",
669
+ "name": "",
670
+ "type": "bytes32"
671
+ }
672
+ ],
673
+ "stateMutability": "view",
674
+ "type": "function"
675
+ },
676
+ {
677
+ "inputs": [],
678
+ "name": "GLOBAL_EMISSION_CAP",
679
+ "outputs": [
680
+ {
681
+ "internalType": "uint256",
682
+ "name": "",
683
+ "type": "uint256"
684
+ }
685
+ ],
686
+ "stateMutability": "view",
687
+ "type": "function"
688
+ },
689
+ {
690
+ "inputs": [],
691
+ "name": "MAX_COLLECTION_EMISSION_RATE",
692
+ "outputs": [
693
+ {
694
+ "internalType": "uint256",
695
+ "name": "",
696
+ "type": "uint256"
697
+ }
698
+ ],
699
+ "stateMutability": "view",
700
+ "type": "function"
701
+ },
702
+ {
703
+ "inputs": [],
704
+ "name": "MAX_SECONDARY_PER_NFT_RATE",
705
+ "outputs": [
706
+ {
707
+ "internalType": "uint256",
708
+ "name": "",
709
+ "type": "uint256"
710
+ }
711
+ ],
712
+ "stateMutability": "view",
713
+ "type": "function"
714
+ },
715
+ {
716
+ "inputs": [],
717
+ "name": "SCALING_DENOMINATOR",
718
+ "outputs": [
719
+ {
720
+ "internalType": "uint256",
721
+ "name": "",
722
+ "type": "uint256"
723
+ }
724
+ ],
725
+ "stateMutability": "view",
726
+ "type": "function"
727
+ },
728
+ {
729
+ "inputs": [
730
+ {
731
+ "internalType": "address",
732
+ "name": "owner",
733
+ "type": "address"
734
+ },
735
+ {
736
+ "internalType": "address",
737
+ "name": "spender",
738
+ "type": "address"
739
+ }
740
+ ],
741
+ "name": "allowance",
742
+ "outputs": [
743
+ {
744
+ "internalType": "uint256",
745
+ "name": "",
746
+ "type": "uint256"
747
+ }
748
+ ],
749
+ "stateMutability": "view",
750
+ "type": "function"
751
+ },
752
+ {
753
+ "inputs": [
754
+ {
755
+ "internalType": "address",
756
+ "name": "collection",
757
+ "type": "address"
758
+ },
759
+ {
760
+ "internalType": "uint8",
761
+ "name": "operation",
762
+ "type": "uint8"
763
+ },
764
+ {
765
+ "internalType": "uint256",
766
+ "name": "collectionSize",
767
+ "type": "uint256"
768
+ },
769
+ {
770
+ "internalType": "uint256",
771
+ "name": "emissionRate",
772
+ "type": "uint256"
773
+ },
774
+ {
775
+ "internalType": "bool",
776
+ "name": "useGenericImage",
777
+ "type": "bool"
778
+ },
779
+ {
780
+ "internalType": "string",
781
+ "name": "fallbackCollectionName",
782
+ "type": "string"
783
+ }
784
+ ],
785
+ "name": "applyCollectionConfig",
786
+ "outputs": [],
787
+ "stateMutability": "nonpayable",
788
+ "type": "function"
789
+ },
790
+ {
791
+ "inputs": [
792
+ {
793
+ "internalType": "address",
794
+ "name": "spender",
795
+ "type": "address"
796
+ },
797
+ {
798
+ "internalType": "uint256",
799
+ "name": "value",
800
+ "type": "uint256"
801
+ }
802
+ ],
803
+ "name": "approve",
804
+ "outputs": [
805
+ {
806
+ "internalType": "bool",
807
+ "name": "",
808
+ "type": "bool"
809
+ }
810
+ ],
811
+ "stateMutability": "nonpayable",
812
+ "type": "function"
813
+ },
814
+ {
815
+ "inputs": [],
816
+ "name": "approvedEmissionTotal",
817
+ "outputs": [
818
+ {
819
+ "internalType": "uint256",
820
+ "name": "",
821
+ "type": "uint256"
822
+ }
823
+ ],
824
+ "stateMutability": "view",
825
+ "type": "function"
826
+ },
827
+ {
828
+ "inputs": [
829
+ {
830
+ "internalType": "address",
831
+ "name": "account",
832
+ "type": "address"
833
+ }
834
+ ],
835
+ "name": "balanceOf",
836
+ "outputs": [
837
+ {
838
+ "internalType": "uint256",
839
+ "name": "",
840
+ "type": "uint256"
841
+ }
842
+ ],
843
+ "stateMutability": "view",
844
+ "type": "function"
845
+ },
846
+ {
847
+ "inputs": [
848
+ {
849
+ "internalType": "uint256",
850
+ "name": "",
851
+ "type": "uint256"
852
+ }
853
+ ],
854
+ "name": "baseCollections",
855
+ "outputs": [
856
+ {
857
+ "internalType": "address",
858
+ "name": "",
859
+ "type": "address"
860
+ }
861
+ ],
862
+ "stateMutability": "view",
863
+ "type": "function"
864
+ },
865
+ {
866
+ "inputs": [
867
+ {
868
+ "internalType": "uint256",
869
+ "name": "amount",
870
+ "type": "uint256"
871
+ }
872
+ ],
873
+ "name": "burn",
874
+ "outputs": [],
875
+ "stateMutability": "nonpayable",
876
+ "type": "function"
877
+ },
878
+ {
879
+ "inputs": [
880
+ {
881
+ "internalType": "address",
882
+ "name": "account",
883
+ "type": "address"
884
+ },
885
+ {
886
+ "internalType": "uint256",
887
+ "name": "amount",
888
+ "type": "uint256"
889
+ }
890
+ ],
891
+ "name": "burnFrom",
892
+ "outputs": [],
893
+ "stateMutability": "nonpayable",
894
+ "type": "function"
895
+ },
896
+ {
897
+ "inputs": [
898
+ {
899
+ "internalType": "uint256[]",
900
+ "name": "receiptIds",
901
+ "type": "uint256[]"
902
+ }
903
+ ],
904
+ "name": "claim",
905
+ "outputs": [],
906
+ "stateMutability": "nonpayable",
907
+ "type": "function"
908
+ },
909
+ {
910
+ "inputs": [],
911
+ "name": "decimals",
912
+ "outputs": [
913
+ {
914
+ "internalType": "uint8",
915
+ "name": "",
916
+ "type": "uint8"
917
+ }
918
+ ],
919
+ "stateMutability": "view",
920
+ "type": "function"
921
+ },
922
+ {
923
+ "inputs": [],
924
+ "name": "eip712Domain",
925
+ "outputs": [
926
+ {
927
+ "internalType": "bytes1",
928
+ "name": "fields",
929
+ "type": "bytes1"
930
+ },
931
+ {
932
+ "internalType": "string",
933
+ "name": "name",
934
+ "type": "string"
935
+ },
936
+ {
937
+ "internalType": "string",
938
+ "name": "version",
939
+ "type": "string"
940
+ },
941
+ {
942
+ "internalType": "uint256",
943
+ "name": "chainId",
944
+ "type": "uint256"
945
+ },
946
+ {
947
+ "internalType": "address",
948
+ "name": "verifyingContract",
949
+ "type": "address"
950
+ },
951
+ {
952
+ "internalType": "bytes32",
953
+ "name": "salt",
954
+ "type": "bytes32"
955
+ },
956
+ {
957
+ "internalType": "uint256[]",
958
+ "name": "extensions",
959
+ "type": "uint256[]"
960
+ }
961
+ ],
962
+ "stateMutability": "view",
963
+ "type": "function"
964
+ },
965
+ {
966
+ "inputs": [],
967
+ "name": "getBaseCollections",
968
+ "outputs": [
969
+ {
970
+ "internalType": "address[]",
971
+ "name": "",
972
+ "type": "address[]"
973
+ }
974
+ ],
975
+ "stateMutability": "view",
976
+ "type": "function"
977
+ },
978
+ {
979
+ "inputs": [
980
+ {
981
+ "internalType": "address",
982
+ "name": "user",
983
+ "type": "address"
984
+ },
985
+ {
986
+ "internalType": "uint256",
987
+ "name": "timestamp",
988
+ "type": "uint256"
989
+ }
990
+ ],
991
+ "name": "getPastReceiptCount",
992
+ "outputs": [
993
+ {
994
+ "internalType": "uint256",
995
+ "name": "",
996
+ "type": "uint256"
997
+ }
998
+ ],
999
+ "stateMutability": "view",
1000
+ "type": "function"
1001
+ },
1002
+ {
1003
+ "inputs": [
1004
+ {
1005
+ "internalType": "uint256",
1006
+ "name": "receiptId",
1007
+ "type": "uint256"
1008
+ }
1009
+ ],
1010
+ "name": "getReceiptProposalEligibleSince",
1011
+ "outputs": [
1012
+ {
1013
+ "internalType": "uint256",
1014
+ "name": "",
1015
+ "type": "uint256"
1016
+ }
1017
+ ],
1018
+ "stateMutability": "view",
1019
+ "type": "function"
1020
+ },
1021
+ {
1022
+ "inputs": [
1023
+ {
1024
+ "internalType": "uint256",
1025
+ "name": "receiptId",
1026
+ "type": "uint256"
1027
+ }
1028
+ ],
1029
+ "name": "getReceiptStakeTimestamp",
1030
+ "outputs": [
1031
+ {
1032
+ "internalType": "uint256",
1033
+ "name": "",
1034
+ "type": "uint256"
1035
+ }
1036
+ ],
1037
+ "stateMutability": "view",
1038
+ "type": "function"
1039
+ },
1040
+ {
1041
+ "inputs": [
1042
+ {
1043
+ "internalType": "address",
1044
+ "name": "user",
1045
+ "type": "address"
1046
+ },
1047
+ {
1048
+ "internalType": "uint256",
1049
+ "name": "minDuration",
1050
+ "type": "uint256"
1051
+ }
1052
+ ],
1053
+ "name": "getUserEligibleReceiptCount",
1054
+ "outputs": [
1055
+ {
1056
+ "internalType": "uint256",
1057
+ "name": "",
1058
+ "type": "uint256"
1059
+ }
1060
+ ],
1061
+ "stateMutability": "view",
1062
+ "type": "function"
1063
+ },
1064
+ {
1065
+ "inputs": [
1066
+ {
1067
+ "internalType": "address",
1068
+ "name": "user",
1069
+ "type": "address"
1070
+ }
1071
+ ],
1072
+ "name": "getUserReceiptCount",
1073
+ "outputs": [
1074
+ {
1075
+ "internalType": "uint256",
1076
+ "name": "",
1077
+ "type": "uint256"
1078
+ }
1079
+ ],
1080
+ "stateMutability": "view",
1081
+ "type": "function"
1082
+ },
1083
+ {
1084
+ "inputs": [
1085
+ {
1086
+ "internalType": "address",
1087
+ "name": "user",
1088
+ "type": "address"
1089
+ }
1090
+ ],
1091
+ "name": "getUserReceipts",
1092
+ "outputs": [
1093
+ {
1094
+ "internalType": "uint256[]",
1095
+ "name": "",
1096
+ "type": "uint256[]"
1097
+ }
1098
+ ],
1099
+ "stateMutability": "view",
1100
+ "type": "function"
1101
+ },
1102
+ {
1103
+ "inputs": [
1104
+ {
1105
+ "internalType": "address",
1106
+ "name": "user",
1107
+ "type": "address"
1108
+ }
1109
+ ],
1110
+ "name": "getUserStakingSummary",
1111
+ "outputs": [
1112
+ {
1113
+ "internalType": "uint256",
1114
+ "name": "receiptCount",
1115
+ "type": "uint256"
1116
+ },
1117
+ {
1118
+ "internalType": "uint256",
1119
+ "name": "eligibleReceiptCount",
1120
+ "type": "uint256"
1121
+ },
1122
+ {
1123
+ "internalType": "uint256",
1124
+ "name": "totalPendingRewards",
1125
+ "type": "uint256"
1126
+ }
1127
+ ],
1128
+ "stateMutability": "view",
1129
+ "type": "function"
1130
+ },
1131
+ {
1132
+ "inputs": [],
1133
+ "name": "governance",
1134
+ "outputs": [
1135
+ {
1136
+ "internalType": "address",
1137
+ "name": "",
1138
+ "type": "address"
1139
+ }
1140
+ ],
1141
+ "stateMutability": "view",
1142
+ "type": "function"
1143
+ },
1144
+ {
1145
+ "inputs": [
1146
+ {
1147
+ "internalType": "address",
1148
+ "name": "collection",
1149
+ "type": "address"
1150
+ }
1151
+ ],
1152
+ "name": "isApprovedCollection",
1153
+ "outputs": [
1154
+ {
1155
+ "internalType": "bool",
1156
+ "name": "",
1157
+ "type": "bool"
1158
+ }
1159
+ ],
1160
+ "stateMutability": "view",
1161
+ "type": "function"
1162
+ },
1163
+ {
1164
+ "inputs": [
1165
+ {
1166
+ "internalType": "address",
1167
+ "name": "collection",
1168
+ "type": "address"
1169
+ }
1170
+ ],
1171
+ "name": "isBaseCollection",
1172
+ "outputs": [
1173
+ {
1174
+ "internalType": "bool",
1175
+ "name": "",
1176
+ "type": "bool"
1177
+ }
1178
+ ],
1179
+ "stateMutability": "view",
1180
+ "type": "function"
1181
+ },
1182
+ {
1183
+ "inputs": [
1184
+ {
1185
+ "internalType": "uint256",
1186
+ "name": "receiptId",
1187
+ "type": "uint256"
1188
+ }
1189
+ ],
1190
+ "name": "isReceiptLocked",
1191
+ "outputs": [
1192
+ {
1193
+ "internalType": "bool",
1194
+ "name": "",
1195
+ "type": "bool"
1196
+ }
1197
+ ],
1198
+ "stateMutability": "view",
1199
+ "type": "function"
1200
+ },
1201
+ {
1202
+ "inputs": [
1203
+ {
1204
+ "internalType": "address",
1205
+ "name": "user",
1206
+ "type": "address"
1207
+ }
1208
+ ],
1209
+ "name": "isUserActiveStaker",
1210
+ "outputs": [
1211
+ {
1212
+ "internalType": "bool",
1213
+ "name": "",
1214
+ "type": "bool"
1215
+ }
1216
+ ],
1217
+ "stateMutability": "view",
1218
+ "type": "function"
1219
+ },
1220
+ {
1221
+ "inputs": [
1222
+ {
1223
+ "internalType": "uint256[]",
1224
+ "name": "receiptIds",
1225
+ "type": "uint256[]"
1226
+ },
1227
+ {
1228
+ "internalType": "uint256",
1229
+ "name": "proposalId",
1230
+ "type": "uint256"
1231
+ },
1232
+ {
1233
+ "internalType": "address",
1234
+ "name": "proposer",
1235
+ "type": "address"
1236
+ }
1237
+ ],
1238
+ "name": "lockReceipts",
1239
+ "outputs": [],
1240
+ "stateMutability": "nonpayable",
1241
+ "type": "function"
1242
+ },
1243
+ {
1244
+ "inputs": [],
1245
+ "name": "name",
1246
+ "outputs": [
1247
+ {
1248
+ "internalType": "string",
1249
+ "name": "",
1250
+ "type": "string"
1251
+ }
1252
+ ],
1253
+ "stateMutability": "view",
1254
+ "type": "function"
1255
+ },
1256
+ {
1257
+ "inputs": [
1258
+ {
1259
+ "internalType": "address",
1260
+ "name": "owner",
1261
+ "type": "address"
1262
+ }
1263
+ ],
1264
+ "name": "nonces",
1265
+ "outputs": [
1266
+ {
1267
+ "internalType": "uint256",
1268
+ "name": "",
1269
+ "type": "uint256"
1270
+ }
1271
+ ],
1272
+ "stateMutability": "view",
1273
+ "type": "function"
1274
+ },
1275
+ {
1276
+ "inputs": [
1277
+ {
1278
+ "internalType": "address",
1279
+ "name": "",
1280
+ "type": "address"
1281
+ },
1282
+ {
1283
+ "internalType": "address",
1284
+ "name": "",
1285
+ "type": "address"
1286
+ },
1287
+ {
1288
+ "internalType": "uint256",
1289
+ "name": "",
1290
+ "type": "uint256"
1291
+ },
1292
+ {
1293
+ "internalType": "bytes",
1294
+ "name": "",
1295
+ "type": "bytes"
1296
+ }
1297
+ ],
1298
+ "name": "onERC721Received",
1299
+ "outputs": [
1300
+ {
1301
+ "internalType": "bytes4",
1302
+ "name": "",
1303
+ "type": "bytes4"
1304
+ }
1305
+ ],
1306
+ "stateMutability": "pure",
1307
+ "type": "function"
1308
+ },
1309
+ {
1310
+ "inputs": [],
1311
+ "name": "owner",
1312
+ "outputs": [
1313
+ {
1314
+ "internalType": "address",
1315
+ "name": "",
1316
+ "type": "address"
1317
+ }
1318
+ ],
1319
+ "stateMutability": "view",
1320
+ "type": "function"
1321
+ },
1322
+ {
1323
+ "inputs": [
1324
+ {
1325
+ "internalType": "uint256",
1326
+ "name": "receiptId",
1327
+ "type": "uint256"
1328
+ }
1329
+ ],
1330
+ "name": "pendingRewards",
1331
+ "outputs": [
1332
+ {
1333
+ "internalType": "uint256",
1334
+ "name": "",
1335
+ "type": "uint256"
1336
+ }
1337
+ ],
1338
+ "stateMutability": "view",
1339
+ "type": "function"
1340
+ },
1341
+ {
1342
+ "inputs": [
1343
+ {
1344
+ "internalType": "uint256[]",
1345
+ "name": "receiptIds",
1346
+ "type": "uint256[]"
1347
+ }
1348
+ ],
1349
+ "name": "pendingRewardsBatch",
1350
+ "outputs": [
1351
+ {
1352
+ "internalType": "uint256[]",
1353
+ "name": "rewards",
1354
+ "type": "uint256[]"
1355
+ }
1356
+ ],
1357
+ "stateMutability": "view",
1358
+ "type": "function"
1359
+ },
1360
+ {
1361
+ "inputs": [
1362
+ {
1363
+ "internalType": "address",
1364
+ "name": "owner",
1365
+ "type": "address"
1366
+ },
1367
+ {
1368
+ "internalType": "address",
1369
+ "name": "spender",
1370
+ "type": "address"
1371
+ },
1372
+ {
1373
+ "internalType": "uint256",
1374
+ "name": "value",
1375
+ "type": "uint256"
1376
+ },
1377
+ {
1378
+ "internalType": "uint256",
1379
+ "name": "deadline",
1380
+ "type": "uint256"
1381
+ },
1382
+ {
1383
+ "internalType": "uint8",
1384
+ "name": "v",
1385
+ "type": "uint8"
1386
+ },
1387
+ {
1388
+ "internalType": "bytes32",
1389
+ "name": "r",
1390
+ "type": "bytes32"
1391
+ },
1392
+ {
1393
+ "internalType": "bytes32",
1394
+ "name": "s",
1395
+ "type": "bytes32"
1396
+ }
1397
+ ],
1398
+ "name": "permit",
1399
+ "outputs": [],
1400
+ "stateMutability": "nonpayable",
1401
+ "type": "function"
1402
+ },
1403
+ {
1404
+ "inputs": [
1405
+ {
1406
+ "internalType": "address",
1407
+ "name": "",
1408
+ "type": "address"
1409
+ },
1410
+ {
1411
+ "internalType": "uint256",
1412
+ "name": "",
1413
+ "type": "uint256"
1414
+ }
1415
+ ],
1416
+ "name": "receiptCheckpoints",
1417
+ "outputs": [
1418
+ {
1419
+ "internalType": "uint256",
1420
+ "name": "timestamp",
1421
+ "type": "uint256"
1422
+ },
1423
+ {
1424
+ "internalType": "uint256",
1425
+ "name": "count",
1426
+ "type": "uint256"
1427
+ }
1428
+ ],
1429
+ "stateMutability": "view",
1430
+ "type": "function"
1431
+ },
1432
+ {
1433
+ "inputs": [
1434
+ {
1435
+ "internalType": "uint256",
1436
+ "name": "",
1437
+ "type": "uint256"
1438
+ }
1439
+ ],
1440
+ "name": "receiptLocked",
1441
+ "outputs": [
1442
+ {
1443
+ "internalType": "bool",
1444
+ "name": "",
1445
+ "type": "bool"
1446
+ }
1447
+ ],
1448
+ "stateMutability": "view",
1449
+ "type": "function"
1450
+ },
1451
+ {
1452
+ "inputs": [],
1453
+ "name": "receiptNFT",
1454
+ "outputs": [
1455
+ {
1456
+ "internalType": "contract IReceiptNFT",
1457
+ "name": "",
1458
+ "type": "address"
1459
+ }
1460
+ ],
1461
+ "stateMutability": "view",
1462
+ "type": "function"
1463
+ },
1464
+ {
1465
+ "inputs": [],
1466
+ "name": "renounceOwnership",
1467
+ "outputs": [],
1468
+ "stateMutability": "nonpayable",
1469
+ "type": "function"
1470
+ },
1471
+ {
1472
+ "inputs": [
1473
+ {
1474
+ "internalType": "address",
1475
+ "name": "governance_",
1476
+ "type": "address"
1477
+ }
1478
+ ],
1479
+ "name": "setGovernance",
1480
+ "outputs": [],
1481
+ "stateMutability": "nonpayable",
1482
+ "type": "function"
1483
+ },
1484
+ {
1485
+ "inputs": [
1486
+ {
1487
+ "internalType": "address",
1488
+ "name": "receiptNFT_",
1489
+ "type": "address"
1490
+ }
1491
+ ],
1492
+ "name": "setReceiptNFT",
1493
+ "outputs": [],
1494
+ "stateMutability": "nonpayable",
1495
+ "type": "function"
1496
+ },
1497
+ {
1498
+ "inputs": [
1499
+ {
1500
+ "internalType": "address",
1501
+ "name": "collection",
1502
+ "type": "address"
1503
+ },
1504
+ {
1505
+ "internalType": "uint256[]",
1506
+ "name": "tokenIds",
1507
+ "type": "uint256[]"
1508
+ }
1509
+ ],
1510
+ "name": "stake",
1511
+ "outputs": [],
1512
+ "stateMutability": "nonpayable",
1513
+ "type": "function"
1514
+ },
1515
+ {
1516
+ "inputs": [
1517
+ {
1518
+ "internalType": "address",
1519
+ "name": "collection",
1520
+ "type": "address"
1521
+ }
1522
+ ],
1523
+ "name": "stakedCount",
1524
+ "outputs": [
1525
+ {
1526
+ "internalType": "uint256",
1527
+ "name": "",
1528
+ "type": "uint256"
1529
+ }
1530
+ ],
1531
+ "stateMutability": "view",
1532
+ "type": "function"
1533
+ },
1534
+ {
1535
+ "inputs": [
1536
+ {
1537
+ "internalType": "address",
1538
+ "name": "owner",
1539
+ "type": "address"
1540
+ }
1541
+ ],
1542
+ "name": "stakedReceiptsOf",
1543
+ "outputs": [
1544
+ {
1545
+ "internalType": "uint256[]",
1546
+ "name": "",
1547
+ "type": "uint256[]"
1548
+ }
1549
+ ],
1550
+ "stateMutability": "view",
1551
+ "type": "function"
1552
+ },
1553
+ {
1554
+ "inputs": [
1555
+ {
1556
+ "internalType": "address",
1557
+ "name": "collection",
1558
+ "type": "address"
1559
+ },
1560
+ {
1561
+ "internalType": "uint256",
1562
+ "name": "offset",
1563
+ "type": "uint256"
1564
+ },
1565
+ {
1566
+ "internalType": "uint256",
1567
+ "name": "limit",
1568
+ "type": "uint256"
1569
+ }
1570
+ ],
1571
+ "name": "stakedTokensInCollection",
1572
+ "outputs": [
1573
+ {
1574
+ "internalType": "uint256[]",
1575
+ "name": "result",
1576
+ "type": "uint256[]"
1577
+ },
1578
+ {
1579
+ "internalType": "uint256",
1580
+ "name": "total",
1581
+ "type": "uint256"
1582
+ }
1583
+ ],
1584
+ "stateMutability": "view",
1585
+ "type": "function"
1586
+ },
1587
+ {
1588
+ "inputs": [],
1589
+ "name": "symbol",
1590
+ "outputs": [
1591
+ {
1592
+ "internalType": "string",
1593
+ "name": "",
1594
+ "type": "string"
1595
+ }
1596
+ ],
1597
+ "stateMutability": "view",
1598
+ "type": "function"
1599
+ },
1600
+ {
1601
+ "inputs": [
1602
+ {
1603
+ "internalType": "address",
1604
+ "name": "",
1605
+ "type": "address"
1606
+ },
1607
+ {
1608
+ "internalType": "uint256",
1609
+ "name": "",
1610
+ "type": "uint256"
1611
+ }
1612
+ ],
1613
+ "name": "tokenStaked",
1614
+ "outputs": [
1615
+ {
1616
+ "internalType": "bool",
1617
+ "name": "",
1618
+ "type": "bool"
1619
+ }
1620
+ ],
1621
+ "stateMutability": "view",
1622
+ "type": "function"
1623
+ },
1624
+ {
1625
+ "inputs": [],
1626
+ "name": "totalApprovedEmissionRate",
1627
+ "outputs": [
1628
+ {
1629
+ "internalType": "uint256",
1630
+ "name": "",
1631
+ "type": "uint256"
1632
+ }
1633
+ ],
1634
+ "stateMutability": "view",
1635
+ "type": "function"
1636
+ },
1637
+ {
1638
+ "inputs": [],
1639
+ "name": "totalSupply",
1640
+ "outputs": [
1641
+ {
1642
+ "internalType": "uint256",
1643
+ "name": "",
1644
+ "type": "uint256"
1645
+ }
1646
+ ],
1647
+ "stateMutability": "view",
1648
+ "type": "function"
1649
+ },
1650
+ {
1651
+ "inputs": [
1652
+ {
1653
+ "internalType": "address",
1654
+ "name": "to",
1655
+ "type": "address"
1656
+ },
1657
+ {
1658
+ "internalType": "uint256",
1659
+ "name": "value",
1660
+ "type": "uint256"
1661
+ }
1662
+ ],
1663
+ "name": "transfer",
1664
+ "outputs": [
1665
+ {
1666
+ "internalType": "bool",
1667
+ "name": "",
1668
+ "type": "bool"
1669
+ }
1670
+ ],
1671
+ "stateMutability": "nonpayable",
1672
+ "type": "function"
1673
+ },
1674
+ {
1675
+ "inputs": [
1676
+ {
1677
+ "internalType": "address",
1678
+ "name": "from",
1679
+ "type": "address"
1680
+ },
1681
+ {
1682
+ "internalType": "address",
1683
+ "name": "to",
1684
+ "type": "address"
1685
+ },
1686
+ {
1687
+ "internalType": "uint256",
1688
+ "name": "value",
1689
+ "type": "uint256"
1690
+ }
1691
+ ],
1692
+ "name": "transferFrom",
1693
+ "outputs": [
1694
+ {
1695
+ "internalType": "bool",
1696
+ "name": "",
1697
+ "type": "bool"
1698
+ }
1699
+ ],
1700
+ "stateMutability": "nonpayable",
1701
+ "type": "function"
1702
+ },
1703
+ {
1704
+ "inputs": [
1705
+ {
1706
+ "internalType": "address",
1707
+ "name": "newOwner",
1708
+ "type": "address"
1709
+ }
1710
+ ],
1711
+ "name": "transferOwnership",
1712
+ "outputs": [],
1713
+ "stateMutability": "nonpayable",
1714
+ "type": "function"
1715
+ },
1716
+ {
1717
+ "inputs": [
1718
+ {
1719
+ "internalType": "address",
1720
+ "name": "proposer",
1721
+ "type": "address"
1722
+ },
1723
+ {
1724
+ "internalType": "string",
1725
+ "name": "reason",
1726
+ "type": "string"
1727
+ }
1728
+ ],
1729
+ "name": "unlockProposerReceipts",
1730
+ "outputs": [],
1731
+ "stateMutability": "nonpayable",
1732
+ "type": "function"
1733
+ },
1734
+ {
1735
+ "inputs": [
1736
+ {
1737
+ "internalType": "uint256[]",
1738
+ "name": "receiptIds",
1739
+ "type": "uint256[]"
1740
+ },
1741
+ {
1742
+ "internalType": "string",
1743
+ "name": "reason",
1744
+ "type": "string"
1745
+ }
1746
+ ],
1747
+ "name": "unlockReceipts",
1748
+ "outputs": [],
1749
+ "stateMutability": "nonpayable",
1750
+ "type": "function"
1751
+ },
1752
+ {
1753
+ "inputs": [
1754
+ {
1755
+ "internalType": "uint256[]",
1756
+ "name": "receiptIds",
1757
+ "type": "uint256[]"
1758
+ }
1759
+ ],
1760
+ "name": "unstake",
1761
+ "outputs": [],
1762
+ "stateMutability": "nonpayable",
1763
+ "type": "function"
1764
+ }
1765
+ ];
1766
+ /**
1767
+ * BZROVault_json Contract Class
1768
+ *
1769
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
1770
+ *
1771
+ * @example
1772
+ * ```typescript
1773
+ * import { createPublicClient, createWalletClient, http } from 'viem';
1774
+ * import { mainnet } from 'viem/chains';
1775
+ * import { BZROVault_json } from 'BZROVault_json';
1776
+ *
1777
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
1778
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
1779
+ *
1780
+ * const contract = new BZROVault_json('0x...', { publicClient, walletClient });
1781
+ *
1782
+ * // Read functions
1783
+ * const result = await contract.balanceOf('0x...');
1784
+ *
1785
+ * // Write functions
1786
+ * const hash = await contract.transfer('0x...', 1000n);
1787
+ *
1788
+ * // Simulate transactions (dry-run)
1789
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
1790
+ * console.log('Gas estimate:', simulation.request.gas);
1791
+ *
1792
+ * // Watch events
1793
+ * const unwatch = contract.watch.Transfer((event) => {
1794
+ * console.log('Transfer event:', event);
1795
+ * });
1796
+ * ```
1797
+ */
1798
+ class BZROVault_json {
1799
+ constructor(address, clients) {
1800
+ this.contractAddress = address;
1801
+ this.publicClient = clients.publicClient;
1802
+ this.contract = (0, viem_1.getContract)({
1803
+ address,
1804
+ abi: exports.BZROVault_jsonAbi,
1805
+ client: {
1806
+ public: clients.publicClient,
1807
+ wallet: clients.walletClient,
1808
+ },
1809
+ });
1810
+ }
1811
+ /**
1812
+ * Get the contract address
1813
+ */
1814
+ get address() {
1815
+ return this.contractAddress;
1816
+ }
1817
+ /**
1818
+ * Get the underlying viem contract instance
1819
+ */
1820
+ getContract() {
1821
+ return this.contract;
1822
+ }
1823
+ /**
1824
+ * BASE_EMISSION_RATE
1825
+ * view
1826
+ */
1827
+ async BASE_EMISSION_RATE() {
1828
+ return this.contract.read.BASE_EMISSION_RATE();
1829
+ }
1830
+ /**
1831
+ * DOMAIN_SEPARATOR
1832
+ * view
1833
+ */
1834
+ async DOMAIN_SEPARATOR() {
1835
+ return this.contract.read.DOMAIN_SEPARATOR();
1836
+ }
1837
+ /**
1838
+ * GLOBAL_EMISSION_CAP
1839
+ * view
1840
+ */
1841
+ async GLOBAL_EMISSION_CAP() {
1842
+ return this.contract.read.GLOBAL_EMISSION_CAP();
1843
+ }
1844
+ /**
1845
+ * MAX_COLLECTION_EMISSION_RATE
1846
+ * view
1847
+ */
1848
+ async MAX_COLLECTION_EMISSION_RATE() {
1849
+ return this.contract.read.MAX_COLLECTION_EMISSION_RATE();
1850
+ }
1851
+ /**
1852
+ * MAX_SECONDARY_PER_NFT_RATE
1853
+ * view
1854
+ */
1855
+ async MAX_SECONDARY_PER_NFT_RATE() {
1856
+ return this.contract.read.MAX_SECONDARY_PER_NFT_RATE();
1857
+ }
1858
+ /**
1859
+ * SCALING_DENOMINATOR
1860
+ * view
1861
+ */
1862
+ async SCALING_DENOMINATOR() {
1863
+ return this.contract.read.SCALING_DENOMINATOR();
1864
+ }
1865
+ /**
1866
+ * allowance
1867
+ * view
1868
+ */
1869
+ async allowance(owner, spender) {
1870
+ return this.contract.read.allowance([owner, spender]);
1871
+ }
1872
+ /**
1873
+ * approvedEmissionTotal
1874
+ * view
1875
+ */
1876
+ async approvedEmissionTotal() {
1877
+ return this.contract.read.approvedEmissionTotal();
1878
+ }
1879
+ /**
1880
+ * balanceOf
1881
+ * view
1882
+ */
1883
+ async balanceOf(account) {
1884
+ return this.contract.read.balanceOf([account]);
1885
+ }
1886
+ /**
1887
+ * baseCollections
1888
+ * view
1889
+ */
1890
+ async baseCollections(arg0) {
1891
+ return this.contract.read.baseCollections([arg0]);
1892
+ }
1893
+ /**
1894
+ * decimals
1895
+ * view
1896
+ */
1897
+ async decimals() {
1898
+ return this.contract.read.decimals();
1899
+ }
1900
+ /**
1901
+ * eip712Domain
1902
+ * view
1903
+ */
1904
+ async eip712Domain() {
1905
+ return this.contract.read.eip712Domain();
1906
+ }
1907
+ /**
1908
+ * getBaseCollections
1909
+ * view
1910
+ */
1911
+ async getBaseCollections() {
1912
+ return this.contract.read.getBaseCollections();
1913
+ }
1914
+ /**
1915
+ * getPastReceiptCount
1916
+ * view
1917
+ */
1918
+ async getPastReceiptCount(user, timestamp) {
1919
+ return this.contract.read.getPastReceiptCount([user, timestamp]);
1920
+ }
1921
+ /**
1922
+ * getReceiptProposalEligibleSince
1923
+ * view
1924
+ */
1925
+ async getReceiptProposalEligibleSince(receiptId) {
1926
+ return this.contract.read.getReceiptProposalEligibleSince([receiptId]);
1927
+ }
1928
+ /**
1929
+ * getReceiptStakeTimestamp
1930
+ * view
1931
+ */
1932
+ async getReceiptStakeTimestamp(receiptId) {
1933
+ return this.contract.read.getReceiptStakeTimestamp([receiptId]);
1934
+ }
1935
+ /**
1936
+ * getUserEligibleReceiptCount
1937
+ * view
1938
+ */
1939
+ async getUserEligibleReceiptCount(user, minDuration) {
1940
+ return this.contract.read.getUserEligibleReceiptCount([user, minDuration]);
1941
+ }
1942
+ /**
1943
+ * getUserReceiptCount
1944
+ * view
1945
+ */
1946
+ async getUserReceiptCount(user) {
1947
+ return this.contract.read.getUserReceiptCount([user]);
1948
+ }
1949
+ /**
1950
+ * getUserReceipts
1951
+ * view
1952
+ */
1953
+ async getUserReceipts(user) {
1954
+ return this.contract.read.getUserReceipts([user]);
1955
+ }
1956
+ /**
1957
+ * getUserStakingSummary
1958
+ * view
1959
+ */
1960
+ async getUserStakingSummary(user) {
1961
+ return this.contract.read.getUserStakingSummary([user]);
1962
+ }
1963
+ /**
1964
+ * governance
1965
+ * view
1966
+ */
1967
+ async governance() {
1968
+ return this.contract.read.governance();
1969
+ }
1970
+ /**
1971
+ * isApprovedCollection
1972
+ * view
1973
+ */
1974
+ async isApprovedCollection(collection) {
1975
+ return this.contract.read.isApprovedCollection([collection]);
1976
+ }
1977
+ /**
1978
+ * isBaseCollection
1979
+ * view
1980
+ */
1981
+ async isBaseCollection(collection) {
1982
+ return this.contract.read.isBaseCollection([collection]);
1983
+ }
1984
+ /**
1985
+ * isReceiptLocked
1986
+ * view
1987
+ */
1988
+ async isReceiptLocked(receiptId) {
1989
+ return this.contract.read.isReceiptLocked([receiptId]);
1990
+ }
1991
+ /**
1992
+ * isUserActiveStaker
1993
+ * view
1994
+ */
1995
+ async isUserActiveStaker(user) {
1996
+ return this.contract.read.isUserActiveStaker([user]);
1997
+ }
1998
+ /**
1999
+ * name
2000
+ * view
2001
+ */
2002
+ async name() {
2003
+ return this.contract.read.name();
2004
+ }
2005
+ /**
2006
+ * nonces
2007
+ * view
2008
+ */
2009
+ async nonces(owner) {
2010
+ return this.contract.read.nonces([owner]);
2011
+ }
2012
+ /**
2013
+ * onERC721Received
2014
+ * pure
2015
+ */
2016
+ async onERC721Received(arg0, arg1, arg2, arg3) {
2017
+ return this.contract.read.onERC721Received([arg0, arg1, arg2, arg3]);
2018
+ }
2019
+ /**
2020
+ * owner
2021
+ * view
2022
+ */
2023
+ async owner() {
2024
+ return this.contract.read.owner();
2025
+ }
2026
+ /**
2027
+ * pendingRewards
2028
+ * view
2029
+ */
2030
+ async pendingRewards(receiptId) {
2031
+ return this.contract.read.pendingRewards([receiptId]);
2032
+ }
2033
+ /**
2034
+ * pendingRewardsBatch
2035
+ * view
2036
+ */
2037
+ async pendingRewardsBatch(receiptIds) {
2038
+ return this.contract.read.pendingRewardsBatch([receiptIds]);
2039
+ }
2040
+ /**
2041
+ * receiptCheckpoints
2042
+ * view
2043
+ */
2044
+ async receiptCheckpoints(arg0, arg1) {
2045
+ return this.contract.read.receiptCheckpoints([arg0, arg1]);
2046
+ }
2047
+ /**
2048
+ * receiptLocked
2049
+ * view
2050
+ */
2051
+ async receiptLocked(arg0) {
2052
+ return this.contract.read.receiptLocked([arg0]);
2053
+ }
2054
+ /**
2055
+ * receiptNFT
2056
+ * view
2057
+ */
2058
+ async receiptNFT() {
2059
+ return this.contract.read.receiptNFT();
2060
+ }
2061
+ /**
2062
+ * stakedCount
2063
+ * view
2064
+ */
2065
+ async stakedCount(collection) {
2066
+ return this.contract.read.stakedCount([collection]);
2067
+ }
2068
+ /**
2069
+ * stakedReceiptsOf
2070
+ * view
2071
+ */
2072
+ async stakedReceiptsOf(owner) {
2073
+ return this.contract.read.stakedReceiptsOf([owner]);
2074
+ }
2075
+ /**
2076
+ * stakedTokensInCollection
2077
+ * view
2078
+ */
2079
+ async stakedTokensInCollection(collection, offset, limit) {
2080
+ return this.contract.read.stakedTokensInCollection([collection, offset, limit]);
2081
+ }
2082
+ /**
2083
+ * symbol
2084
+ * view
2085
+ */
2086
+ async symbol() {
2087
+ return this.contract.read.symbol();
2088
+ }
2089
+ /**
2090
+ * tokenStaked
2091
+ * view
2092
+ */
2093
+ async tokenStaked(arg0, arg1) {
2094
+ return this.contract.read.tokenStaked([arg0, arg1]);
2095
+ }
2096
+ /**
2097
+ * totalApprovedEmissionRate
2098
+ * view
2099
+ */
2100
+ async totalApprovedEmissionRate() {
2101
+ return this.contract.read.totalApprovedEmissionRate();
2102
+ }
2103
+ /**
2104
+ * totalSupply
2105
+ * view
2106
+ */
2107
+ async totalSupply() {
2108
+ return this.contract.read.totalSupply();
2109
+ }
2110
+ /**
2111
+ * applyCollectionConfig
2112
+ * nonpayable
2113
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2114
+ */
2115
+ async applyCollectionConfig(collection, operation, collectionSize, emissionRate, useGenericImage, fallbackCollectionName, options) {
2116
+ if (!this.contract.write) {
2117
+ throw new Error('Wallet client is required for write operations');
2118
+ }
2119
+ return this.contract.write.applyCollectionConfig([collection, operation, collectionSize, emissionRate, useGenericImage, fallbackCollectionName], options);
2120
+ }
2121
+ /**
2122
+ * approve
2123
+ * nonpayable
2124
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2125
+ */
2126
+ async approve(spender, value, options) {
2127
+ if (!this.contract.write) {
2128
+ throw new Error('Wallet client is required for write operations');
2129
+ }
2130
+ return this.contract.write.approve([spender, value], options);
2131
+ }
2132
+ /**
2133
+ * burn
2134
+ * nonpayable
2135
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2136
+ */
2137
+ async burn(amount, options) {
2138
+ if (!this.contract.write) {
2139
+ throw new Error('Wallet client is required for write operations');
2140
+ }
2141
+ return this.contract.write.burn([amount], options);
2142
+ }
2143
+ /**
2144
+ * burnFrom
2145
+ * nonpayable
2146
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2147
+ */
2148
+ async burnFrom(account, amount, options) {
2149
+ if (!this.contract.write) {
2150
+ throw new Error('Wallet client is required for write operations');
2151
+ }
2152
+ return this.contract.write.burnFrom([account, amount], options);
2153
+ }
2154
+ /**
2155
+ * claim
2156
+ * nonpayable
2157
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2158
+ */
2159
+ async claim(receiptIds, options) {
2160
+ if (!this.contract.write) {
2161
+ throw new Error('Wallet client is required for write operations');
2162
+ }
2163
+ return this.contract.write.claim([receiptIds], options);
2164
+ }
2165
+ /**
2166
+ * lockReceipts
2167
+ * nonpayable
2168
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2169
+ */
2170
+ async lockReceipts(receiptIds, proposalId, proposer, options) {
2171
+ if (!this.contract.write) {
2172
+ throw new Error('Wallet client is required for write operations');
2173
+ }
2174
+ return this.contract.write.lockReceipts([receiptIds, proposalId, proposer], options);
2175
+ }
2176
+ /**
2177
+ * permit
2178
+ * nonpayable
2179
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2180
+ */
2181
+ async permit(owner, spender, value, deadline, v, r, s, options) {
2182
+ if (!this.contract.write) {
2183
+ throw new Error('Wallet client is required for write operations');
2184
+ }
2185
+ return this.contract.write.permit([owner, spender, value, deadline, v, r, s], options);
2186
+ }
2187
+ /**
2188
+ * renounceOwnership
2189
+ * nonpayable
2190
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2191
+ */
2192
+ async renounceOwnership(options) {
2193
+ if (!this.contract.write) {
2194
+ throw new Error('Wallet client is required for write operations');
2195
+ }
2196
+ return this.contract.write.renounceOwnership(options);
2197
+ }
2198
+ /**
2199
+ * setGovernance
2200
+ * nonpayable
2201
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2202
+ */
2203
+ async setGovernance(governance_, options) {
2204
+ if (!this.contract.write) {
2205
+ throw new Error('Wallet client is required for write operations');
2206
+ }
2207
+ return this.contract.write.setGovernance([governance_], options);
2208
+ }
2209
+ /**
2210
+ * setReceiptNFT
2211
+ * nonpayable
2212
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2213
+ */
2214
+ async setReceiptNFT(receiptNFT_, options) {
2215
+ if (!this.contract.write) {
2216
+ throw new Error('Wallet client is required for write operations');
2217
+ }
2218
+ return this.contract.write.setReceiptNFT([receiptNFT_], options);
2219
+ }
2220
+ /**
2221
+ * stake
2222
+ * nonpayable
2223
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2224
+ */
2225
+ async stake(collection, tokenIds, options) {
2226
+ if (!this.contract.write) {
2227
+ throw new Error('Wallet client is required for write operations');
2228
+ }
2229
+ return this.contract.write.stake([collection, tokenIds], options);
2230
+ }
2231
+ /**
2232
+ * transfer
2233
+ * nonpayable
2234
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2235
+ */
2236
+ async transfer(to, value, options) {
2237
+ if (!this.contract.write) {
2238
+ throw new Error('Wallet client is required for write operations');
2239
+ }
2240
+ return this.contract.write.transfer([to, value], options);
2241
+ }
2242
+ /**
2243
+ * transferFrom
2244
+ * nonpayable
2245
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2246
+ */
2247
+ async transferFrom(from, to, value, options) {
2248
+ if (!this.contract.write) {
2249
+ throw new Error('Wallet client is required for write operations');
2250
+ }
2251
+ return this.contract.write.transferFrom([from, to, value], options);
2252
+ }
2253
+ /**
2254
+ * transferOwnership
2255
+ * nonpayable
2256
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2257
+ */
2258
+ async transferOwnership(newOwner, options) {
2259
+ if (!this.contract.write) {
2260
+ throw new Error('Wallet client is required for write operations');
2261
+ }
2262
+ return this.contract.write.transferOwnership([newOwner], options);
2263
+ }
2264
+ /**
2265
+ * unlockProposerReceipts
2266
+ * nonpayable
2267
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2268
+ */
2269
+ async unlockProposerReceipts(proposer, reason, options) {
2270
+ if (!this.contract.write) {
2271
+ throw new Error('Wallet client is required for write operations');
2272
+ }
2273
+ return this.contract.write.unlockProposerReceipts([proposer, reason], options);
2274
+ }
2275
+ /**
2276
+ * unlockReceipts
2277
+ * nonpayable
2278
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2279
+ */
2280
+ async unlockReceipts(receiptIds, reason, options) {
2281
+ if (!this.contract.write) {
2282
+ throw new Error('Wallet client is required for write operations');
2283
+ }
2284
+ return this.contract.write.unlockReceipts([receiptIds, reason], options);
2285
+ }
2286
+ /**
2287
+ * unstake
2288
+ * nonpayable
2289
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2290
+ */
2291
+ async unstake(receiptIds, options) {
2292
+ if (!this.contract.write) {
2293
+ throw new Error('Wallet client is required for write operations');
2294
+ }
2295
+ return this.contract.write.unstake([receiptIds], options);
2296
+ }
2297
+ /**
2298
+ * Simulate contract write operations (dry-run without sending transaction)
2299
+ *
2300
+ * @example
2301
+ * const result = await contract.simulate.transfer('0x...', 1000n);
2302
+ * console.log('Gas estimate:', result.request.gas);
2303
+ * console.log('Would succeed:', result.result);
2304
+ */
2305
+ get simulate() {
2306
+ const contract = this.contract;
2307
+ if (!contract.simulate) {
2308
+ throw new Error('Public client is required for simulation');
2309
+ }
2310
+ return {
2311
+ /**
2312
+ * Simulate applyCollectionConfig
2313
+ * Returns gas estimate and result without sending transaction
2314
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2315
+ */
2316
+ async applyCollectionConfig(collection, operation, collectionSize, emissionRate, useGenericImage, fallbackCollectionName, options) {
2317
+ return contract.simulate.applyCollectionConfig([collection, operation, collectionSize, emissionRate, useGenericImage, fallbackCollectionName], options);
2318
+ },
2319
+ /**
2320
+ * Simulate approve
2321
+ * Returns gas estimate and result without sending transaction
2322
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2323
+ */
2324
+ async approve(spender, value, options) {
2325
+ return contract.simulate.approve([spender, value], options);
2326
+ },
2327
+ /**
2328
+ * Simulate burn
2329
+ * Returns gas estimate and result without sending transaction
2330
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2331
+ */
2332
+ async burn(amount, options) {
2333
+ return contract.simulate.burn([amount], options);
2334
+ },
2335
+ /**
2336
+ * Simulate burnFrom
2337
+ * Returns gas estimate and result without sending transaction
2338
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2339
+ */
2340
+ async burnFrom(account, amount, options) {
2341
+ return contract.simulate.burnFrom([account, amount], options);
2342
+ },
2343
+ /**
2344
+ * Simulate claim
2345
+ * Returns gas estimate and result without sending transaction
2346
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2347
+ */
2348
+ async claim(receiptIds, options) {
2349
+ return contract.simulate.claim([receiptIds], options);
2350
+ },
2351
+ /**
2352
+ * Simulate lockReceipts
2353
+ * Returns gas estimate and result without sending transaction
2354
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2355
+ */
2356
+ async lockReceipts(receiptIds, proposalId, proposer, options) {
2357
+ return contract.simulate.lockReceipts([receiptIds, proposalId, proposer], options);
2358
+ },
2359
+ /**
2360
+ * Simulate permit
2361
+ * Returns gas estimate and result without sending transaction
2362
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2363
+ */
2364
+ async permit(owner, spender, value, deadline, v, r, s, options) {
2365
+ return contract.simulate.permit([owner, spender, value, deadline, v, r, s], options);
2366
+ },
2367
+ /**
2368
+ * Simulate renounceOwnership
2369
+ * Returns gas estimate and result without sending transaction
2370
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2371
+ */
2372
+ async renounceOwnership(options) {
2373
+ return contract.simulate.renounceOwnership(options);
2374
+ },
2375
+ /**
2376
+ * Simulate setGovernance
2377
+ * Returns gas estimate and result without sending transaction
2378
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2379
+ */
2380
+ async setGovernance(governance_, options) {
2381
+ return contract.simulate.setGovernance([governance_], options);
2382
+ },
2383
+ /**
2384
+ * Simulate setReceiptNFT
2385
+ * Returns gas estimate and result without sending transaction
2386
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2387
+ */
2388
+ async setReceiptNFT(receiptNFT_, options) {
2389
+ return contract.simulate.setReceiptNFT([receiptNFT_], options);
2390
+ },
2391
+ /**
2392
+ * Simulate stake
2393
+ * Returns gas estimate and result without sending transaction
2394
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2395
+ */
2396
+ async stake(collection, tokenIds, options) {
2397
+ return contract.simulate.stake([collection, tokenIds], options);
2398
+ },
2399
+ /**
2400
+ * Simulate transfer
2401
+ * Returns gas estimate and result without sending transaction
2402
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2403
+ */
2404
+ async transfer(to, value, options) {
2405
+ return contract.simulate.transfer([to, value], options);
2406
+ },
2407
+ /**
2408
+ * Simulate transferFrom
2409
+ * Returns gas estimate and result without sending transaction
2410
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2411
+ */
2412
+ async transferFrom(from, to, value, options) {
2413
+ return contract.simulate.transferFrom([from, to, value], options);
2414
+ },
2415
+ /**
2416
+ * Simulate transferOwnership
2417
+ * Returns gas estimate and result without sending transaction
2418
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2419
+ */
2420
+ async transferOwnership(newOwner, options) {
2421
+ return contract.simulate.transferOwnership([newOwner], options);
2422
+ },
2423
+ /**
2424
+ * Simulate unlockProposerReceipts
2425
+ * Returns gas estimate and result without sending transaction
2426
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2427
+ */
2428
+ async unlockProposerReceipts(proposer, reason, options) {
2429
+ return contract.simulate.unlockProposerReceipts([proposer, reason], options);
2430
+ },
2431
+ /**
2432
+ * Simulate unlockReceipts
2433
+ * Returns gas estimate and result without sending transaction
2434
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2435
+ */
2436
+ async unlockReceipts(receiptIds, reason, options) {
2437
+ return contract.simulate.unlockReceipts([receiptIds, reason], options);
2438
+ },
2439
+ /**
2440
+ * Simulate unstake
2441
+ * Returns gas estimate and result without sending transaction
2442
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2443
+ */
2444
+ async unstake(receiptIds, options) {
2445
+ return contract.simulate.unstake([receiptIds], options);
2446
+ }
2447
+ };
2448
+ }
2449
+ /**
2450
+ * Watch contract events
2451
+ *
2452
+ * @example
2453
+ * // Watch all Transfer events
2454
+ * const unwatch = contract.watch.Transfer((event) => {
2455
+ * console.log('Transfer:', event);
2456
+ * });
2457
+ *
2458
+ * // Stop watching
2459
+ * unwatch();
2460
+ */
2461
+ get watch() {
2462
+ return {
2463
+ /**
2464
+ * Watch Approval events
2465
+ * @param callback Function to call when event is emitted
2466
+ * @param filter Optional filter for indexed parameters
2467
+ * @returns Unwatch function to stop listening
2468
+ */
2469
+ Approval: (callback, filter) => {
2470
+ return this.publicClient.watchContractEvent({
2471
+ address: this.contractAddress,
2472
+ abi: exports.BZROVault_jsonAbi,
2473
+ eventName: 'Approval',
2474
+ args: filter,
2475
+ onLogs: (logs) => {
2476
+ logs.forEach((log) => {
2477
+ callback(log.args);
2478
+ });
2479
+ },
2480
+ });
2481
+ },
2482
+ /**
2483
+ * Watch Burn events
2484
+ * @param callback Function to call when event is emitted
2485
+ * @param filter Optional filter for indexed parameters
2486
+ * @returns Unwatch function to stop listening
2487
+ */
2488
+ Burn: (callback, filter) => {
2489
+ return this.publicClient.watchContractEvent({
2490
+ address: this.contractAddress,
2491
+ abi: exports.BZROVault_jsonAbi,
2492
+ eventName: 'Burn',
2493
+ args: filter,
2494
+ onLogs: (logs) => {
2495
+ logs.forEach((log) => {
2496
+ callback(log.args);
2497
+ });
2498
+ },
2499
+ });
2500
+ },
2501
+ /**
2502
+ * Watch Claimed events
2503
+ * @param callback Function to call when event is emitted
2504
+ * @param filter Optional filter for indexed parameters
2505
+ * @returns Unwatch function to stop listening
2506
+ */
2507
+ Claimed: (callback, filter) => {
2508
+ return this.publicClient.watchContractEvent({
2509
+ address: this.contractAddress,
2510
+ abi: exports.BZROVault_jsonAbi,
2511
+ eventName: 'Claimed',
2512
+ args: filter,
2513
+ onLogs: (logs) => {
2514
+ logs.forEach((log) => {
2515
+ callback(log.args);
2516
+ });
2517
+ },
2518
+ });
2519
+ },
2520
+ /**
2521
+ * Watch CollectionConfigApplied events
2522
+ * @param callback Function to call when event is emitted
2523
+ * @param filter Optional filter for indexed parameters
2524
+ * @returns Unwatch function to stop listening
2525
+ */
2526
+ CollectionConfigApplied: (callback, filter) => {
2527
+ return this.publicClient.watchContractEvent({
2528
+ address: this.contractAddress,
2529
+ abi: exports.BZROVault_jsonAbi,
2530
+ eventName: 'CollectionConfigApplied',
2531
+ args: filter,
2532
+ onLogs: (logs) => {
2533
+ logs.forEach((log) => {
2534
+ callback(log.args);
2535
+ });
2536
+ },
2537
+ });
2538
+ },
2539
+ /**
2540
+ * Watch EIP712DomainChanged events
2541
+ * @param callback Function to call when event is emitted
2542
+ * @param filter Optional filter for indexed parameters
2543
+ * @returns Unwatch function to stop listening
2544
+ */
2545
+ EIP712DomainChanged: (callback) => {
2546
+ return this.publicClient.watchContractEvent({
2547
+ address: this.contractAddress,
2548
+ abi: exports.BZROVault_jsonAbi,
2549
+ eventName: 'EIP712DomainChanged',
2550
+ onLogs: (logs) => {
2551
+ logs.forEach((log) => {
2552
+ callback(log.args);
2553
+ });
2554
+ },
2555
+ });
2556
+ },
2557
+ /**
2558
+ * Watch GovernanceUpdated events
2559
+ * @param callback Function to call when event is emitted
2560
+ * @param filter Optional filter for indexed parameters
2561
+ * @returns Unwatch function to stop listening
2562
+ */
2563
+ GovernanceUpdated: (callback, filter) => {
2564
+ return this.publicClient.watchContractEvent({
2565
+ address: this.contractAddress,
2566
+ abi: exports.BZROVault_jsonAbi,
2567
+ eventName: 'GovernanceUpdated',
2568
+ args: filter,
2569
+ onLogs: (logs) => {
2570
+ logs.forEach((log) => {
2571
+ callback(log.args);
2572
+ });
2573
+ },
2574
+ });
2575
+ },
2576
+ /**
2577
+ * Watch OwnershipTransferred events
2578
+ * @param callback Function to call when event is emitted
2579
+ * @param filter Optional filter for indexed parameters
2580
+ * @returns Unwatch function to stop listening
2581
+ */
2582
+ OwnershipTransferred: (callback, filter) => {
2583
+ return this.publicClient.watchContractEvent({
2584
+ address: this.contractAddress,
2585
+ abi: exports.BZROVault_jsonAbi,
2586
+ eventName: 'OwnershipTransferred',
2587
+ args: filter,
2588
+ onLogs: (logs) => {
2589
+ logs.forEach((log) => {
2590
+ callback(log.args);
2591
+ });
2592
+ },
2593
+ });
2594
+ },
2595
+ /**
2596
+ * Watch ReceiptNFTUpdated events
2597
+ * @param callback Function to call when event is emitted
2598
+ * @param filter Optional filter for indexed parameters
2599
+ * @returns Unwatch function to stop listening
2600
+ */
2601
+ ReceiptNFTUpdated: (callback, filter) => {
2602
+ return this.publicClient.watchContractEvent({
2603
+ address: this.contractAddress,
2604
+ abi: exports.BZROVault_jsonAbi,
2605
+ eventName: 'ReceiptNFTUpdated',
2606
+ args: filter,
2607
+ onLogs: (logs) => {
2608
+ logs.forEach((log) => {
2609
+ callback(log.args);
2610
+ });
2611
+ },
2612
+ });
2613
+ },
2614
+ /**
2615
+ * Watch ReceiptUnlockFailed events
2616
+ * @param callback Function to call when event is emitted
2617
+ * @param filter Optional filter for indexed parameters
2618
+ * @returns Unwatch function to stop listening
2619
+ */
2620
+ ReceiptUnlockFailed: (callback) => {
2621
+ return this.publicClient.watchContractEvent({
2622
+ address: this.contractAddress,
2623
+ abi: exports.BZROVault_jsonAbi,
2624
+ eventName: 'ReceiptUnlockFailed',
2625
+ onLogs: (logs) => {
2626
+ logs.forEach((log) => {
2627
+ callback(log.args);
2628
+ });
2629
+ },
2630
+ });
2631
+ },
2632
+ /**
2633
+ * Watch ReceiptsLocked events
2634
+ * @param callback Function to call when event is emitted
2635
+ * @param filter Optional filter for indexed parameters
2636
+ * @returns Unwatch function to stop listening
2637
+ */
2638
+ ReceiptsLocked: (callback, filter) => {
2639
+ return this.publicClient.watchContractEvent({
2640
+ address: this.contractAddress,
2641
+ abi: exports.BZROVault_jsonAbi,
2642
+ eventName: 'ReceiptsLocked',
2643
+ args: filter,
2644
+ onLogs: (logs) => {
2645
+ logs.forEach((log) => {
2646
+ callback(log.args);
2647
+ });
2648
+ },
2649
+ });
2650
+ },
2651
+ /**
2652
+ * Watch ReceiptsUnlocked events
2653
+ * @param callback Function to call when event is emitted
2654
+ * @param filter Optional filter for indexed parameters
2655
+ * @returns Unwatch function to stop listening
2656
+ */
2657
+ ReceiptsUnlocked: (callback, filter) => {
2658
+ return this.publicClient.watchContractEvent({
2659
+ address: this.contractAddress,
2660
+ abi: exports.BZROVault_jsonAbi,
2661
+ eventName: 'ReceiptsUnlocked',
2662
+ args: filter,
2663
+ onLogs: (logs) => {
2664
+ logs.forEach((log) => {
2665
+ callback(log.args);
2666
+ });
2667
+ },
2668
+ });
2669
+ },
2670
+ /**
2671
+ * Watch Staked events
2672
+ * @param callback Function to call when event is emitted
2673
+ * @param filter Optional filter for indexed parameters
2674
+ * @returns Unwatch function to stop listening
2675
+ */
2676
+ Staked: (callback, filter) => {
2677
+ return this.publicClient.watchContractEvent({
2678
+ address: this.contractAddress,
2679
+ abi: exports.BZROVault_jsonAbi,
2680
+ eventName: 'Staked',
2681
+ args: filter,
2682
+ onLogs: (logs) => {
2683
+ logs.forEach((log) => {
2684
+ callback(log.args);
2685
+ });
2686
+ },
2687
+ });
2688
+ },
2689
+ /**
2690
+ * Watch Transfer events
2691
+ * @param callback Function to call when event is emitted
2692
+ * @param filter Optional filter for indexed parameters
2693
+ * @returns Unwatch function to stop listening
2694
+ */
2695
+ Transfer: (callback, filter) => {
2696
+ return this.publicClient.watchContractEvent({
2697
+ address: this.contractAddress,
2698
+ abi: exports.BZROVault_jsonAbi,
2699
+ eventName: 'Transfer',
2700
+ args: filter,
2701
+ onLogs: (logs) => {
2702
+ logs.forEach((log) => {
2703
+ callback(log.args);
2704
+ });
2705
+ },
2706
+ });
2707
+ },
2708
+ /**
2709
+ * Watch Unstaked events
2710
+ * @param callback Function to call when event is emitted
2711
+ * @param filter Optional filter for indexed parameters
2712
+ * @returns Unwatch function to stop listening
2713
+ */
2714
+ Unstaked: (callback, filter) => {
2715
+ return this.publicClient.watchContractEvent({
2716
+ address: this.contractAddress,
2717
+ abi: exports.BZROVault_jsonAbi,
2718
+ eventName: 'Unstaked',
2719
+ args: filter,
2720
+ onLogs: (logs) => {
2721
+ logs.forEach((log) => {
2722
+ callback(log.args);
2723
+ });
2724
+ },
2725
+ });
2726
+ }
2727
+ };
2728
+ }
2729
+ }
2730
+ exports.BZROVault_json = BZROVault_json;