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