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