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