@gitmyabi/erc1155lazypayableclaim 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2267 @@
1
+ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType } from 'viem';
2
+ import { getContract } from 'viem';
3
+
4
+
5
+ /**
6
+ * IERC1155LazyPayableClaim.Claim struct type
7
+ */
8
+ export type IERC1155LazyPayableClaim_Claim = {
9
+ total: bigint;
10
+ totalMax: bigint;
11
+ walletMax: bigint;
12
+ startDate: bigint;
13
+ endDate: bigint;
14
+ storageProtocol: bigint;
15
+ merkleRoot: `0x${string}`;
16
+ location: string;
17
+ tokenId: bigint;
18
+ cost: bigint;
19
+ paymentReceiver: `0x${string}`;
20
+ erc20: `0x${string}`;
21
+ signingAddress: `0x${string}`;
22
+ };
23
+
24
+ /**
25
+ * IERC1155LazyPayableClaim.ClaimParameters struct type
26
+ */
27
+ export type IERC1155LazyPayableClaim_ClaimParameters = {
28
+ totalMax: bigint;
29
+ walletMax: bigint;
30
+ startDate: bigint;
31
+ endDate: bigint;
32
+ storageProtocol: bigint;
33
+ merkleRoot: `0x${string}`;
34
+ location: string;
35
+ cost: bigint;
36
+ paymentReceiver: `0x${string}`;
37
+ erc20: `0x${string}`;
38
+ signingAddress: `0x${string}`;
39
+ };
40
+ /**
41
+ * ERC1155LazyPayableClaim_json ABI
42
+ *
43
+ * This ABI is typed using viem's type system for full type safety.
44
+ */
45
+ export const ERC1155LazyPayableClaim_jsonAbi = [
46
+ {
47
+ "inputs": [
48
+ {
49
+ "internalType": "address",
50
+ "name": "initialOwner",
51
+ "type": "address"
52
+ },
53
+ {
54
+ "internalType": "address",
55
+ "name": "delegationRegistry",
56
+ "type": "address"
57
+ },
58
+ {
59
+ "internalType": "address",
60
+ "name": "delegationRegistryV2",
61
+ "type": "address"
62
+ }
63
+ ],
64
+ "stateMutability": "nonpayable",
65
+ "type": "constructor"
66
+ },
67
+ {
68
+ "inputs": [],
69
+ "name": "ClaimInactive",
70
+ "type": "error"
71
+ },
72
+ {
73
+ "inputs": [],
74
+ "name": "ExpiredSignature",
75
+ "type": "error"
76
+ },
77
+ {
78
+ "inputs": [],
79
+ "name": "FailedToTransfer",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [],
84
+ "name": "InvalidInput",
85
+ "type": "error"
86
+ },
87
+ {
88
+ "inputs": [],
89
+ "name": "InvalidSignature",
90
+ "type": "error"
91
+ },
92
+ {
93
+ "inputs": [],
94
+ "name": "MustUseSignatureMinting",
95
+ "type": "error"
96
+ },
97
+ {
98
+ "inputs": [],
99
+ "name": "TooManyRequested",
100
+ "type": "error"
101
+ },
102
+ {
103
+ "anonymous": false,
104
+ "inputs": [
105
+ {
106
+ "indexed": true,
107
+ "internalType": "address",
108
+ "name": "account",
109
+ "type": "address"
110
+ },
111
+ {
112
+ "indexed": true,
113
+ "internalType": "address",
114
+ "name": "sender",
115
+ "type": "address"
116
+ }
117
+ ],
118
+ "name": "AdminApproved",
119
+ "type": "event"
120
+ },
121
+ {
122
+ "anonymous": false,
123
+ "inputs": [
124
+ {
125
+ "indexed": true,
126
+ "internalType": "address",
127
+ "name": "account",
128
+ "type": "address"
129
+ },
130
+ {
131
+ "indexed": true,
132
+ "internalType": "address",
133
+ "name": "sender",
134
+ "type": "address"
135
+ }
136
+ ],
137
+ "name": "AdminRevoked",
138
+ "type": "event"
139
+ },
140
+ {
141
+ "anonymous": false,
142
+ "inputs": [
143
+ {
144
+ "indexed": true,
145
+ "internalType": "address",
146
+ "name": "creatorContract",
147
+ "type": "address"
148
+ },
149
+ {
150
+ "indexed": true,
151
+ "internalType": "uint256",
152
+ "name": "instanceId",
153
+ "type": "uint256"
154
+ },
155
+ {
156
+ "indexed": false,
157
+ "internalType": "address",
158
+ "name": "initializer",
159
+ "type": "address"
160
+ }
161
+ ],
162
+ "name": "ClaimInitialized",
163
+ "type": "event"
164
+ },
165
+ {
166
+ "anonymous": false,
167
+ "inputs": [
168
+ {
169
+ "indexed": true,
170
+ "internalType": "address",
171
+ "name": "creatorContract",
172
+ "type": "address"
173
+ },
174
+ {
175
+ "indexed": true,
176
+ "internalType": "uint256",
177
+ "name": "instanceId",
178
+ "type": "uint256"
179
+ }
180
+ ],
181
+ "name": "ClaimMint",
182
+ "type": "event"
183
+ },
184
+ {
185
+ "anonymous": false,
186
+ "inputs": [
187
+ {
188
+ "indexed": true,
189
+ "internalType": "address",
190
+ "name": "creatorContract",
191
+ "type": "address"
192
+ },
193
+ {
194
+ "indexed": true,
195
+ "internalType": "uint256",
196
+ "name": "instanceId",
197
+ "type": "uint256"
198
+ },
199
+ {
200
+ "indexed": false,
201
+ "internalType": "uint16",
202
+ "name": "mintCount",
203
+ "type": "uint16"
204
+ }
205
+ ],
206
+ "name": "ClaimMintBatch",
207
+ "type": "event"
208
+ },
209
+ {
210
+ "anonymous": false,
211
+ "inputs": [
212
+ {
213
+ "indexed": true,
214
+ "internalType": "address",
215
+ "name": "creatorContract",
216
+ "type": "address"
217
+ },
218
+ {
219
+ "indexed": true,
220
+ "internalType": "uint256",
221
+ "name": "instanceId",
222
+ "type": "uint256"
223
+ },
224
+ {
225
+ "indexed": false,
226
+ "internalType": "uint16",
227
+ "name": "mintCount",
228
+ "type": "uint16"
229
+ },
230
+ {
231
+ "indexed": false,
232
+ "internalType": "address",
233
+ "name": "proxy",
234
+ "type": "address"
235
+ },
236
+ {
237
+ "indexed": false,
238
+ "internalType": "address",
239
+ "name": "mintFor",
240
+ "type": "address"
241
+ }
242
+ ],
243
+ "name": "ClaimMintProxy",
244
+ "type": "event"
245
+ },
246
+ {
247
+ "anonymous": false,
248
+ "inputs": [
249
+ {
250
+ "indexed": true,
251
+ "internalType": "address",
252
+ "name": "creatorContract",
253
+ "type": "address"
254
+ },
255
+ {
256
+ "indexed": true,
257
+ "internalType": "uint256",
258
+ "name": "instanceId",
259
+ "type": "uint256"
260
+ },
261
+ {
262
+ "indexed": false,
263
+ "internalType": "uint16",
264
+ "name": "mintCount",
265
+ "type": "uint16"
266
+ },
267
+ {
268
+ "indexed": false,
269
+ "internalType": "address",
270
+ "name": "proxy",
271
+ "type": "address"
272
+ },
273
+ {
274
+ "indexed": false,
275
+ "internalType": "address",
276
+ "name": "mintFor",
277
+ "type": "address"
278
+ },
279
+ {
280
+ "indexed": false,
281
+ "internalType": "bytes32",
282
+ "name": "nonce",
283
+ "type": "bytes32"
284
+ }
285
+ ],
286
+ "name": "ClaimMintSignature",
287
+ "type": "event"
288
+ },
289
+ {
290
+ "anonymous": false,
291
+ "inputs": [
292
+ {
293
+ "indexed": true,
294
+ "internalType": "address",
295
+ "name": "creatorContract",
296
+ "type": "address"
297
+ },
298
+ {
299
+ "indexed": true,
300
+ "internalType": "uint256",
301
+ "name": "instanceId",
302
+ "type": "uint256"
303
+ }
304
+ ],
305
+ "name": "ClaimUpdated",
306
+ "type": "event"
307
+ },
308
+ {
309
+ "anonymous": false,
310
+ "inputs": [
311
+ {
312
+ "indexed": true,
313
+ "internalType": "address",
314
+ "name": "previousOwner",
315
+ "type": "address"
316
+ },
317
+ {
318
+ "indexed": true,
319
+ "internalType": "address",
320
+ "name": "newOwner",
321
+ "type": "address"
322
+ }
323
+ ],
324
+ "name": "OwnershipTransferred",
325
+ "type": "event"
326
+ },
327
+ {
328
+ "inputs": [],
329
+ "name": "DELEGATION_REGISTRY",
330
+ "outputs": [
331
+ {
332
+ "internalType": "address",
333
+ "name": "",
334
+ "type": "address"
335
+ }
336
+ ],
337
+ "stateMutability": "view",
338
+ "type": "function"
339
+ },
340
+ {
341
+ "inputs": [],
342
+ "name": "DELEGATION_REGISTRY_V2",
343
+ "outputs": [
344
+ {
345
+ "internalType": "address",
346
+ "name": "",
347
+ "type": "address"
348
+ }
349
+ ],
350
+ "stateMutability": "view",
351
+ "type": "function"
352
+ },
353
+ {
354
+ "inputs": [],
355
+ "name": "MEMBERSHIP_ADDRESS",
356
+ "outputs": [
357
+ {
358
+ "internalType": "address",
359
+ "name": "",
360
+ "type": "address"
361
+ }
362
+ ],
363
+ "stateMutability": "view",
364
+ "type": "function"
365
+ },
366
+ {
367
+ "inputs": [],
368
+ "name": "MINT_FEE",
369
+ "outputs": [
370
+ {
371
+ "internalType": "uint256",
372
+ "name": "",
373
+ "type": "uint256"
374
+ }
375
+ ],
376
+ "stateMutability": "view",
377
+ "type": "function"
378
+ },
379
+ {
380
+ "inputs": [],
381
+ "name": "MINT_FEE_MERKLE",
382
+ "outputs": [
383
+ {
384
+ "internalType": "uint256",
385
+ "name": "",
386
+ "type": "uint256"
387
+ }
388
+ ],
389
+ "stateMutability": "view",
390
+ "type": "function"
391
+ },
392
+ {
393
+ "inputs": [
394
+ {
395
+ "internalType": "address",
396
+ "name": "creatorContractAddress",
397
+ "type": "address"
398
+ },
399
+ {
400
+ "internalType": "uint256",
401
+ "name": "instanceId",
402
+ "type": "uint256"
403
+ },
404
+ {
405
+ "internalType": "address[]",
406
+ "name": "recipients",
407
+ "type": "address[]"
408
+ },
409
+ {
410
+ "internalType": "uint256[]",
411
+ "name": "amounts",
412
+ "type": "uint256[]"
413
+ }
414
+ ],
415
+ "name": "airdrop",
416
+ "outputs": [],
417
+ "stateMutability": "nonpayable",
418
+ "type": "function"
419
+ },
420
+ {
421
+ "inputs": [
422
+ {
423
+ "internalType": "address",
424
+ "name": "admin",
425
+ "type": "address"
426
+ }
427
+ ],
428
+ "name": "approveAdmin",
429
+ "outputs": [],
430
+ "stateMutability": "nonpayable",
431
+ "type": "function"
432
+ },
433
+ {
434
+ "inputs": [
435
+ {
436
+ "internalType": "address",
437
+ "name": "creatorContractAddress",
438
+ "type": "address"
439
+ },
440
+ {
441
+ "internalType": "uint256",
442
+ "name": "instanceId",
443
+ "type": "uint256"
444
+ },
445
+ {
446
+ "internalType": "uint32",
447
+ "name": "mintIndex",
448
+ "type": "uint32"
449
+ }
450
+ ],
451
+ "name": "checkMintIndex",
452
+ "outputs": [
453
+ {
454
+ "internalType": "bool",
455
+ "name": "",
456
+ "type": "bool"
457
+ }
458
+ ],
459
+ "stateMutability": "view",
460
+ "type": "function"
461
+ },
462
+ {
463
+ "inputs": [
464
+ {
465
+ "internalType": "address",
466
+ "name": "creatorContractAddress",
467
+ "type": "address"
468
+ },
469
+ {
470
+ "internalType": "uint256",
471
+ "name": "instanceId",
472
+ "type": "uint256"
473
+ },
474
+ {
475
+ "internalType": "uint32[]",
476
+ "name": "mintIndices",
477
+ "type": "uint32[]"
478
+ }
479
+ ],
480
+ "name": "checkMintIndices",
481
+ "outputs": [
482
+ {
483
+ "internalType": "bool[]",
484
+ "name": "minted",
485
+ "type": "bool[]"
486
+ }
487
+ ],
488
+ "stateMutability": "view",
489
+ "type": "function"
490
+ },
491
+ {
492
+ "inputs": [
493
+ {
494
+ "internalType": "address",
495
+ "name": "creatorContractAddress",
496
+ "type": "address"
497
+ },
498
+ {
499
+ "internalType": "uint256",
500
+ "name": "instanceId",
501
+ "type": "uint256"
502
+ },
503
+ {
504
+ "internalType": "string",
505
+ "name": "locationChunk",
506
+ "type": "string"
507
+ }
508
+ ],
509
+ "name": "extendTokenURI",
510
+ "outputs": [],
511
+ "stateMutability": "nonpayable",
512
+ "type": "function"
513
+ },
514
+ {
515
+ "inputs": [],
516
+ "name": "getAdmins",
517
+ "outputs": [
518
+ {
519
+ "internalType": "address[]",
520
+ "name": "admins",
521
+ "type": "address[]"
522
+ }
523
+ ],
524
+ "stateMutability": "view",
525
+ "type": "function"
526
+ },
527
+ {
528
+ "inputs": [
529
+ {
530
+ "internalType": "address",
531
+ "name": "creatorContractAddress",
532
+ "type": "address"
533
+ },
534
+ {
535
+ "internalType": "uint256",
536
+ "name": "instanceId",
537
+ "type": "uint256"
538
+ }
539
+ ],
540
+ "name": "getClaim",
541
+ "outputs": [
542
+ {
543
+ "components": [
544
+ {
545
+ "internalType": "uint32",
546
+ "name": "total",
547
+ "type": "uint32"
548
+ },
549
+ {
550
+ "internalType": "uint32",
551
+ "name": "totalMax",
552
+ "type": "uint32"
553
+ },
554
+ {
555
+ "internalType": "uint32",
556
+ "name": "walletMax",
557
+ "type": "uint32"
558
+ },
559
+ {
560
+ "internalType": "uint48",
561
+ "name": "startDate",
562
+ "type": "uint48"
563
+ },
564
+ {
565
+ "internalType": "uint48",
566
+ "name": "endDate",
567
+ "type": "uint48"
568
+ },
569
+ {
570
+ "internalType": "enum ILazyPayableClaim.StorageProtocol",
571
+ "name": "storageProtocol",
572
+ "type": "uint8"
573
+ },
574
+ {
575
+ "internalType": "bytes32",
576
+ "name": "merkleRoot",
577
+ "type": "bytes32"
578
+ },
579
+ {
580
+ "internalType": "string",
581
+ "name": "location",
582
+ "type": "string"
583
+ },
584
+ {
585
+ "internalType": "uint256",
586
+ "name": "tokenId",
587
+ "type": "uint256"
588
+ },
589
+ {
590
+ "internalType": "uint256",
591
+ "name": "cost",
592
+ "type": "uint256"
593
+ },
594
+ {
595
+ "internalType": "address payable",
596
+ "name": "paymentReceiver",
597
+ "type": "address"
598
+ },
599
+ {
600
+ "internalType": "address",
601
+ "name": "erc20",
602
+ "type": "address"
603
+ },
604
+ {
605
+ "internalType": "address",
606
+ "name": "signingAddress",
607
+ "type": "address"
608
+ }
609
+ ],
610
+ "internalType": "struct IERC1155LazyPayableClaim.Claim",
611
+ "name": "claim",
612
+ "type": "tuple"
613
+ }
614
+ ],
615
+ "stateMutability": "view",
616
+ "type": "function"
617
+ },
618
+ {
619
+ "inputs": [
620
+ {
621
+ "internalType": "address",
622
+ "name": "creatorContractAddress",
623
+ "type": "address"
624
+ },
625
+ {
626
+ "internalType": "uint256",
627
+ "name": "tokenId",
628
+ "type": "uint256"
629
+ }
630
+ ],
631
+ "name": "getClaimForToken",
632
+ "outputs": [
633
+ {
634
+ "internalType": "uint256",
635
+ "name": "instanceId",
636
+ "type": "uint256"
637
+ },
638
+ {
639
+ "components": [
640
+ {
641
+ "internalType": "uint32",
642
+ "name": "total",
643
+ "type": "uint32"
644
+ },
645
+ {
646
+ "internalType": "uint32",
647
+ "name": "totalMax",
648
+ "type": "uint32"
649
+ },
650
+ {
651
+ "internalType": "uint32",
652
+ "name": "walletMax",
653
+ "type": "uint32"
654
+ },
655
+ {
656
+ "internalType": "uint48",
657
+ "name": "startDate",
658
+ "type": "uint48"
659
+ },
660
+ {
661
+ "internalType": "uint48",
662
+ "name": "endDate",
663
+ "type": "uint48"
664
+ },
665
+ {
666
+ "internalType": "enum ILazyPayableClaim.StorageProtocol",
667
+ "name": "storageProtocol",
668
+ "type": "uint8"
669
+ },
670
+ {
671
+ "internalType": "bytes32",
672
+ "name": "merkleRoot",
673
+ "type": "bytes32"
674
+ },
675
+ {
676
+ "internalType": "string",
677
+ "name": "location",
678
+ "type": "string"
679
+ },
680
+ {
681
+ "internalType": "uint256",
682
+ "name": "tokenId",
683
+ "type": "uint256"
684
+ },
685
+ {
686
+ "internalType": "uint256",
687
+ "name": "cost",
688
+ "type": "uint256"
689
+ },
690
+ {
691
+ "internalType": "address payable",
692
+ "name": "paymentReceiver",
693
+ "type": "address"
694
+ },
695
+ {
696
+ "internalType": "address",
697
+ "name": "erc20",
698
+ "type": "address"
699
+ },
700
+ {
701
+ "internalType": "address",
702
+ "name": "signingAddress",
703
+ "type": "address"
704
+ }
705
+ ],
706
+ "internalType": "struct IERC1155LazyPayableClaim.Claim",
707
+ "name": "claim",
708
+ "type": "tuple"
709
+ }
710
+ ],
711
+ "stateMutability": "view",
712
+ "type": "function"
713
+ },
714
+ {
715
+ "inputs": [
716
+ {
717
+ "internalType": "address",
718
+ "name": "minter",
719
+ "type": "address"
720
+ },
721
+ {
722
+ "internalType": "address",
723
+ "name": "creatorContractAddress",
724
+ "type": "address"
725
+ },
726
+ {
727
+ "internalType": "uint256",
728
+ "name": "instanceId",
729
+ "type": "uint256"
730
+ }
731
+ ],
732
+ "name": "getTotalMints",
733
+ "outputs": [
734
+ {
735
+ "internalType": "uint32",
736
+ "name": "",
737
+ "type": "uint32"
738
+ }
739
+ ],
740
+ "stateMutability": "view",
741
+ "type": "function"
742
+ },
743
+ {
744
+ "inputs": [
745
+ {
746
+ "internalType": "address",
747
+ "name": "creatorContractAddress",
748
+ "type": "address"
749
+ },
750
+ {
751
+ "internalType": "uint256",
752
+ "name": "instanceId",
753
+ "type": "uint256"
754
+ },
755
+ {
756
+ "components": [
757
+ {
758
+ "internalType": "uint32",
759
+ "name": "totalMax",
760
+ "type": "uint32"
761
+ },
762
+ {
763
+ "internalType": "uint32",
764
+ "name": "walletMax",
765
+ "type": "uint32"
766
+ },
767
+ {
768
+ "internalType": "uint48",
769
+ "name": "startDate",
770
+ "type": "uint48"
771
+ },
772
+ {
773
+ "internalType": "uint48",
774
+ "name": "endDate",
775
+ "type": "uint48"
776
+ },
777
+ {
778
+ "internalType": "enum ILazyPayableClaim.StorageProtocol",
779
+ "name": "storageProtocol",
780
+ "type": "uint8"
781
+ },
782
+ {
783
+ "internalType": "bytes32",
784
+ "name": "merkleRoot",
785
+ "type": "bytes32"
786
+ },
787
+ {
788
+ "internalType": "string",
789
+ "name": "location",
790
+ "type": "string"
791
+ },
792
+ {
793
+ "internalType": "uint256",
794
+ "name": "cost",
795
+ "type": "uint256"
796
+ },
797
+ {
798
+ "internalType": "address payable",
799
+ "name": "paymentReceiver",
800
+ "type": "address"
801
+ },
802
+ {
803
+ "internalType": "address",
804
+ "name": "erc20",
805
+ "type": "address"
806
+ },
807
+ {
808
+ "internalType": "address",
809
+ "name": "signingAddress",
810
+ "type": "address"
811
+ }
812
+ ],
813
+ "internalType": "struct IERC1155LazyPayableClaim.ClaimParameters",
814
+ "name": "claimParameters",
815
+ "type": "tuple"
816
+ }
817
+ ],
818
+ "name": "initializeClaim",
819
+ "outputs": [],
820
+ "stateMutability": "nonpayable",
821
+ "type": "function"
822
+ },
823
+ {
824
+ "inputs": [
825
+ {
826
+ "internalType": "address",
827
+ "name": "admin",
828
+ "type": "address"
829
+ }
830
+ ],
831
+ "name": "isAdmin",
832
+ "outputs": [
833
+ {
834
+ "internalType": "bool",
835
+ "name": "",
836
+ "type": "bool"
837
+ }
838
+ ],
839
+ "stateMutability": "view",
840
+ "type": "function"
841
+ },
842
+ {
843
+ "inputs": [
844
+ {
845
+ "internalType": "address",
846
+ "name": "creatorContractAddress",
847
+ "type": "address"
848
+ },
849
+ {
850
+ "internalType": "uint256",
851
+ "name": "instanceId",
852
+ "type": "uint256"
853
+ },
854
+ {
855
+ "internalType": "uint32",
856
+ "name": "mintIndex",
857
+ "type": "uint32"
858
+ },
859
+ {
860
+ "internalType": "bytes32[]",
861
+ "name": "merkleProof",
862
+ "type": "bytes32[]"
863
+ },
864
+ {
865
+ "internalType": "address",
866
+ "name": "mintFor",
867
+ "type": "address"
868
+ }
869
+ ],
870
+ "name": "mint",
871
+ "outputs": [],
872
+ "stateMutability": "payable",
873
+ "type": "function"
874
+ },
875
+ {
876
+ "inputs": [
877
+ {
878
+ "internalType": "address",
879
+ "name": "creatorContractAddress",
880
+ "type": "address"
881
+ },
882
+ {
883
+ "internalType": "uint256",
884
+ "name": "instanceId",
885
+ "type": "uint256"
886
+ },
887
+ {
888
+ "internalType": "uint16",
889
+ "name": "mintCount",
890
+ "type": "uint16"
891
+ },
892
+ {
893
+ "internalType": "uint32[]",
894
+ "name": "mintIndices",
895
+ "type": "uint32[]"
896
+ },
897
+ {
898
+ "internalType": "bytes32[][]",
899
+ "name": "merkleProofs",
900
+ "type": "bytes32[][]"
901
+ },
902
+ {
903
+ "internalType": "address",
904
+ "name": "mintFor",
905
+ "type": "address"
906
+ }
907
+ ],
908
+ "name": "mintBatch",
909
+ "outputs": [],
910
+ "stateMutability": "payable",
911
+ "type": "function"
912
+ },
913
+ {
914
+ "inputs": [
915
+ {
916
+ "internalType": "address",
917
+ "name": "creatorContractAddress",
918
+ "type": "address"
919
+ },
920
+ {
921
+ "internalType": "uint256",
922
+ "name": "instanceId",
923
+ "type": "uint256"
924
+ },
925
+ {
926
+ "internalType": "uint16",
927
+ "name": "mintCount",
928
+ "type": "uint16"
929
+ },
930
+ {
931
+ "internalType": "uint32[]",
932
+ "name": "mintIndices",
933
+ "type": "uint32[]"
934
+ },
935
+ {
936
+ "internalType": "bytes32[][]",
937
+ "name": "merkleProofs",
938
+ "type": "bytes32[][]"
939
+ },
940
+ {
941
+ "internalType": "address",
942
+ "name": "mintFor",
943
+ "type": "address"
944
+ }
945
+ ],
946
+ "name": "mintProxy",
947
+ "outputs": [],
948
+ "stateMutability": "payable",
949
+ "type": "function"
950
+ },
951
+ {
952
+ "inputs": [
953
+ {
954
+ "internalType": "address",
955
+ "name": "creatorContractAddress",
956
+ "type": "address"
957
+ },
958
+ {
959
+ "internalType": "uint256",
960
+ "name": "instanceId",
961
+ "type": "uint256"
962
+ },
963
+ {
964
+ "internalType": "uint16",
965
+ "name": "mintCount",
966
+ "type": "uint16"
967
+ },
968
+ {
969
+ "internalType": "bytes",
970
+ "name": "signature",
971
+ "type": "bytes"
972
+ },
973
+ {
974
+ "internalType": "bytes32",
975
+ "name": "message",
976
+ "type": "bytes32"
977
+ },
978
+ {
979
+ "internalType": "bytes32",
980
+ "name": "nonce",
981
+ "type": "bytes32"
982
+ },
983
+ {
984
+ "internalType": "address",
985
+ "name": "mintFor",
986
+ "type": "address"
987
+ },
988
+ {
989
+ "internalType": "uint256",
990
+ "name": "expiration",
991
+ "type": "uint256"
992
+ }
993
+ ],
994
+ "name": "mintSignature",
995
+ "outputs": [],
996
+ "stateMutability": "payable",
997
+ "type": "function"
998
+ },
999
+ {
1000
+ "inputs": [],
1001
+ "name": "owner",
1002
+ "outputs": [
1003
+ {
1004
+ "internalType": "address",
1005
+ "name": "",
1006
+ "type": "address"
1007
+ }
1008
+ ],
1009
+ "stateMutability": "view",
1010
+ "type": "function"
1011
+ },
1012
+ {
1013
+ "inputs": [],
1014
+ "name": "renounceOwnership",
1015
+ "outputs": [],
1016
+ "stateMutability": "nonpayable",
1017
+ "type": "function"
1018
+ },
1019
+ {
1020
+ "inputs": [
1021
+ {
1022
+ "internalType": "address",
1023
+ "name": "admin",
1024
+ "type": "address"
1025
+ }
1026
+ ],
1027
+ "name": "revokeAdmin",
1028
+ "outputs": [],
1029
+ "stateMutability": "nonpayable",
1030
+ "type": "function"
1031
+ },
1032
+ {
1033
+ "inputs": [
1034
+ {
1035
+ "internalType": "address",
1036
+ "name": "membershipAddress",
1037
+ "type": "address"
1038
+ }
1039
+ ],
1040
+ "name": "setMembershipAddress",
1041
+ "outputs": [],
1042
+ "stateMutability": "nonpayable",
1043
+ "type": "function"
1044
+ },
1045
+ {
1046
+ "inputs": [
1047
+ {
1048
+ "internalType": "bytes4",
1049
+ "name": "interfaceId",
1050
+ "type": "bytes4"
1051
+ }
1052
+ ],
1053
+ "name": "supportsInterface",
1054
+ "outputs": [
1055
+ {
1056
+ "internalType": "bool",
1057
+ "name": "",
1058
+ "type": "bool"
1059
+ }
1060
+ ],
1061
+ "stateMutability": "view",
1062
+ "type": "function"
1063
+ },
1064
+ {
1065
+ "inputs": [
1066
+ {
1067
+ "internalType": "address",
1068
+ "name": "creatorContractAddress",
1069
+ "type": "address"
1070
+ },
1071
+ {
1072
+ "internalType": "uint256",
1073
+ "name": "tokenId",
1074
+ "type": "uint256"
1075
+ }
1076
+ ],
1077
+ "name": "tokenURI",
1078
+ "outputs": [
1079
+ {
1080
+ "internalType": "string",
1081
+ "name": "uri",
1082
+ "type": "string"
1083
+ }
1084
+ ],
1085
+ "stateMutability": "view",
1086
+ "type": "function"
1087
+ },
1088
+ {
1089
+ "inputs": [
1090
+ {
1091
+ "internalType": "address",
1092
+ "name": "newOwner",
1093
+ "type": "address"
1094
+ }
1095
+ ],
1096
+ "name": "transferOwnership",
1097
+ "outputs": [],
1098
+ "stateMutability": "nonpayable",
1099
+ "type": "function"
1100
+ },
1101
+ {
1102
+ "inputs": [
1103
+ {
1104
+ "internalType": "address",
1105
+ "name": "creatorContractAddress",
1106
+ "type": "address"
1107
+ },
1108
+ {
1109
+ "internalType": "uint256",
1110
+ "name": "instanceId",
1111
+ "type": "uint256"
1112
+ },
1113
+ {
1114
+ "components": [
1115
+ {
1116
+ "internalType": "uint32",
1117
+ "name": "totalMax",
1118
+ "type": "uint32"
1119
+ },
1120
+ {
1121
+ "internalType": "uint32",
1122
+ "name": "walletMax",
1123
+ "type": "uint32"
1124
+ },
1125
+ {
1126
+ "internalType": "uint48",
1127
+ "name": "startDate",
1128
+ "type": "uint48"
1129
+ },
1130
+ {
1131
+ "internalType": "uint48",
1132
+ "name": "endDate",
1133
+ "type": "uint48"
1134
+ },
1135
+ {
1136
+ "internalType": "enum ILazyPayableClaim.StorageProtocol",
1137
+ "name": "storageProtocol",
1138
+ "type": "uint8"
1139
+ },
1140
+ {
1141
+ "internalType": "bytes32",
1142
+ "name": "merkleRoot",
1143
+ "type": "bytes32"
1144
+ },
1145
+ {
1146
+ "internalType": "string",
1147
+ "name": "location",
1148
+ "type": "string"
1149
+ },
1150
+ {
1151
+ "internalType": "uint256",
1152
+ "name": "cost",
1153
+ "type": "uint256"
1154
+ },
1155
+ {
1156
+ "internalType": "address payable",
1157
+ "name": "paymentReceiver",
1158
+ "type": "address"
1159
+ },
1160
+ {
1161
+ "internalType": "address",
1162
+ "name": "erc20",
1163
+ "type": "address"
1164
+ },
1165
+ {
1166
+ "internalType": "address",
1167
+ "name": "signingAddress",
1168
+ "type": "address"
1169
+ }
1170
+ ],
1171
+ "internalType": "struct IERC1155LazyPayableClaim.ClaimParameters",
1172
+ "name": "claimParameters",
1173
+ "type": "tuple"
1174
+ }
1175
+ ],
1176
+ "name": "updateClaim",
1177
+ "outputs": [],
1178
+ "stateMutability": "nonpayable",
1179
+ "type": "function"
1180
+ },
1181
+ {
1182
+ "inputs": [
1183
+ {
1184
+ "internalType": "address",
1185
+ "name": "creatorContractAddress",
1186
+ "type": "address"
1187
+ },
1188
+ {
1189
+ "internalType": "uint256",
1190
+ "name": "instanceId",
1191
+ "type": "uint256"
1192
+ },
1193
+ {
1194
+ "internalType": "enum ILazyPayableClaim.StorageProtocol",
1195
+ "name": "storageProtocol",
1196
+ "type": "uint8"
1197
+ },
1198
+ {
1199
+ "internalType": "string",
1200
+ "name": "location",
1201
+ "type": "string"
1202
+ }
1203
+ ],
1204
+ "name": "updateTokenURIParams",
1205
+ "outputs": [],
1206
+ "stateMutability": "nonpayable",
1207
+ "type": "function"
1208
+ },
1209
+ {
1210
+ "inputs": [
1211
+ {
1212
+ "internalType": "address payable",
1213
+ "name": "receiver",
1214
+ "type": "address"
1215
+ },
1216
+ {
1217
+ "internalType": "uint256",
1218
+ "name": "amount",
1219
+ "type": "uint256"
1220
+ }
1221
+ ],
1222
+ "name": "withdraw",
1223
+ "outputs": [],
1224
+ "stateMutability": "nonpayable",
1225
+ "type": "function"
1226
+ }
1227
+ ] as const satisfies Abi;
1228
+
1229
+ /**
1230
+ * Type-safe ABI for ERC1155LazyPayableClaim_json
1231
+ */
1232
+ export type ERC1155LazyPayableClaim_jsonAbi = typeof ERC1155LazyPayableClaim_jsonAbi;
1233
+
1234
+ /**
1235
+ * Contract instance type for ERC1155LazyPayableClaim_json
1236
+ */
1237
+ // Use any for contract type to avoid complex viem type issues
1238
+ // The runtime behavior is type-safe through viem's ABI typing
1239
+ export type ERC1155LazyPayableClaim_jsonContract = any;
1240
+
1241
+ /**
1242
+ * ERC1155LazyPayableClaim_json Contract Class
1243
+ *
1244
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
1245
+ *
1246
+ * @example
1247
+ * ```typescript
1248
+ * import { createPublicClient, createWalletClient, http } from 'viem';
1249
+ * import { mainnet } from 'viem/chains';
1250
+ * import { ERC1155LazyPayableClaim_json } from 'ERC1155LazyPayableClaim_json';
1251
+ *
1252
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
1253
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
1254
+ *
1255
+ * const contract = new ERC1155LazyPayableClaim_json('0x...', { publicClient, walletClient });
1256
+ *
1257
+ * // Read functions
1258
+ * const result = await contract.balanceOf('0x...');
1259
+ *
1260
+ * // Write functions
1261
+ * const hash = await contract.transfer('0x...', 1000n);
1262
+ *
1263
+ * // Simulate transactions (dry-run)
1264
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
1265
+ * console.log('Gas estimate:', simulation.request.gas);
1266
+ *
1267
+ * // Watch events
1268
+ * const unwatch = contract.watch.Transfer((event) => {
1269
+ * console.log('Transfer event:', event);
1270
+ * });
1271
+ * ```
1272
+ */
1273
+ export class ERC1155LazyPayableClaim_json {
1274
+ private contract: ERC1155LazyPayableClaim_jsonContract;
1275
+ private contractAddress: Address;
1276
+ private publicClient: PublicClient;
1277
+
1278
+ constructor(
1279
+ address: Address,
1280
+ clients: {
1281
+ publicClient: PublicClient;
1282
+ walletClient?: WalletClient;
1283
+ }
1284
+ ) {
1285
+ this.contractAddress = address;
1286
+ this.publicClient = clients.publicClient;
1287
+ this.contract = getContract({
1288
+ address,
1289
+ abi: ERC1155LazyPayableClaim_jsonAbi,
1290
+ client: {
1291
+ public: clients.publicClient,
1292
+ wallet: clients.walletClient,
1293
+ },
1294
+ });
1295
+ }
1296
+
1297
+ /**
1298
+ * Get the contract address
1299
+ */
1300
+ get address(): Address {
1301
+ return this.contractAddress;
1302
+ }
1303
+
1304
+ /**
1305
+ * Get the underlying viem contract instance
1306
+ */
1307
+ getContract(): ERC1155LazyPayableClaim_jsonContract {
1308
+ return this.contract;
1309
+ }
1310
+
1311
+ /**
1312
+ * DELEGATION_REGISTRY
1313
+ * view
1314
+ */
1315
+ async DELEGATION_REGISTRY(): Promise<`0x${string}`> {
1316
+ return this.contract.read.DELEGATION_REGISTRY() as Promise<`0x${string}`>;
1317
+ }
1318
+
1319
+ /**
1320
+ * DELEGATION_REGISTRY_V2
1321
+ * view
1322
+ */
1323
+ async DELEGATION_REGISTRY_V2(): Promise<`0x${string}`> {
1324
+ return this.contract.read.DELEGATION_REGISTRY_V2() as Promise<`0x${string}`>;
1325
+ }
1326
+
1327
+ /**
1328
+ * MEMBERSHIP_ADDRESS
1329
+ * view
1330
+ */
1331
+ async MEMBERSHIP_ADDRESS(): Promise<`0x${string}`> {
1332
+ return this.contract.read.MEMBERSHIP_ADDRESS() as Promise<`0x${string}`>;
1333
+ }
1334
+
1335
+ /**
1336
+ * MINT_FEE
1337
+ * view
1338
+ */
1339
+ async MINT_FEE(): Promise<bigint> {
1340
+ return this.contract.read.MINT_FEE() as Promise<bigint>;
1341
+ }
1342
+
1343
+ /**
1344
+ * MINT_FEE_MERKLE
1345
+ * view
1346
+ */
1347
+ async MINT_FEE_MERKLE(): Promise<bigint> {
1348
+ return this.contract.read.MINT_FEE_MERKLE() as Promise<bigint>;
1349
+ }
1350
+
1351
+ /**
1352
+ * checkMintIndex
1353
+ * view
1354
+ */
1355
+ async checkMintIndex(creatorContractAddress: `0x${string}`, instanceId: bigint, mintIndex: bigint): Promise<boolean> {
1356
+ return this.contract.read.checkMintIndex([creatorContractAddress, instanceId, mintIndex] as const) as Promise<boolean>;
1357
+ }
1358
+
1359
+ /**
1360
+ * checkMintIndices
1361
+ * view
1362
+ */
1363
+ async checkMintIndices(creatorContractAddress: `0x${string}`, instanceId: bigint, mintIndices: bigint[]): Promise<boolean[]> {
1364
+ return this.contract.read.checkMintIndices([creatorContractAddress, instanceId, mintIndices] as const) as Promise<boolean[]>;
1365
+ }
1366
+
1367
+ /**
1368
+ * getAdmins
1369
+ * view
1370
+ */
1371
+ async getAdmins(): Promise<`0x${string}`[]> {
1372
+ return this.contract.read.getAdmins() as Promise<`0x${string}`[]>;
1373
+ }
1374
+
1375
+ /**
1376
+ * getClaim
1377
+ * view
1378
+ */
1379
+ async getClaim(creatorContractAddress: `0x${string}`, instanceId: bigint): Promise<IERC1155LazyPayableClaim_Claim> {
1380
+ return this.contract.read.getClaim([creatorContractAddress, instanceId] as const) as Promise<IERC1155LazyPayableClaim_Claim>;
1381
+ }
1382
+
1383
+ /**
1384
+ * getClaimForToken
1385
+ * view
1386
+ */
1387
+ async getClaimForToken(creatorContractAddress: `0x${string}`, tokenId: bigint): Promise<[bigint, IERC1155LazyPayableClaim_Claim]> {
1388
+ return this.contract.read.getClaimForToken([creatorContractAddress, tokenId] as const) as Promise<[bigint, IERC1155LazyPayableClaim_Claim]>;
1389
+ }
1390
+
1391
+ /**
1392
+ * getTotalMints
1393
+ * view
1394
+ */
1395
+ async getTotalMints(minter: `0x${string}`, creatorContractAddress: `0x${string}`, instanceId: bigint): Promise<bigint> {
1396
+ return this.contract.read.getTotalMints([minter, creatorContractAddress, instanceId] as const) as Promise<bigint>;
1397
+ }
1398
+
1399
+ /**
1400
+ * isAdmin
1401
+ * view
1402
+ */
1403
+ async isAdmin(admin: `0x${string}`): Promise<boolean> {
1404
+ return this.contract.read.isAdmin([admin] as const) as Promise<boolean>;
1405
+ }
1406
+
1407
+ /**
1408
+ * owner
1409
+ * view
1410
+ */
1411
+ async owner(): Promise<`0x${string}`> {
1412
+ return this.contract.read.owner() as Promise<`0x${string}`>;
1413
+ }
1414
+
1415
+ /**
1416
+ * supportsInterface
1417
+ * view
1418
+ */
1419
+ async supportsInterface(interfaceId: `0x${string}`): Promise<boolean> {
1420
+ return this.contract.read.supportsInterface([interfaceId] as const) as Promise<boolean>;
1421
+ }
1422
+
1423
+ /**
1424
+ * tokenURI
1425
+ * view
1426
+ */
1427
+ async tokenURI(creatorContractAddress: `0x${string}`, tokenId: bigint): Promise<string> {
1428
+ return this.contract.read.tokenURI([creatorContractAddress, tokenId] as const) as Promise<string>;
1429
+ }
1430
+
1431
+ /**
1432
+ * airdrop
1433
+ * nonpayable
1434
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1435
+ */
1436
+ async airdrop(creatorContractAddress: `0x${string}`, instanceId: bigint, recipients: `0x${string}`[], amounts: bigint[], options?: {
1437
+ accessList?: import('viem').AccessList;
1438
+ authorizationList?: import('viem').AuthorizationList;
1439
+ chain?: import('viem').Chain | null;
1440
+ dataSuffix?: `0x${string}`;
1441
+ gas?: bigint;
1442
+ gasPrice?: bigint;
1443
+ maxFeePerGas?: bigint;
1444
+ maxPriorityFeePerGas?: bigint;
1445
+ nonce?: number;
1446
+ value?: bigint;
1447
+ }): Promise<`0x${string}`> {
1448
+ if (!this.contract.write) {
1449
+ throw new Error('Wallet client is required for write operations');
1450
+ }
1451
+ return this.contract.write.airdrop([creatorContractAddress, instanceId, recipients, amounts] as const, options) as Promise<`0x${string}`>;
1452
+ }
1453
+
1454
+ /**
1455
+ * approveAdmin
1456
+ * nonpayable
1457
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1458
+ */
1459
+ async approveAdmin(admin: `0x${string}`, options?: {
1460
+ accessList?: import('viem').AccessList;
1461
+ authorizationList?: import('viem').AuthorizationList;
1462
+ chain?: import('viem').Chain | null;
1463
+ dataSuffix?: `0x${string}`;
1464
+ gas?: bigint;
1465
+ gasPrice?: bigint;
1466
+ maxFeePerGas?: bigint;
1467
+ maxPriorityFeePerGas?: bigint;
1468
+ nonce?: number;
1469
+ value?: bigint;
1470
+ }): Promise<`0x${string}`> {
1471
+ if (!this.contract.write) {
1472
+ throw new Error('Wallet client is required for write operations');
1473
+ }
1474
+ return this.contract.write.approveAdmin([admin] as const, options) as Promise<`0x${string}`>;
1475
+ }
1476
+
1477
+ /**
1478
+ * extendTokenURI
1479
+ * nonpayable
1480
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1481
+ */
1482
+ async extendTokenURI(creatorContractAddress: `0x${string}`, instanceId: bigint, locationChunk: string, options?: {
1483
+ accessList?: import('viem').AccessList;
1484
+ authorizationList?: import('viem').AuthorizationList;
1485
+ chain?: import('viem').Chain | null;
1486
+ dataSuffix?: `0x${string}`;
1487
+ gas?: bigint;
1488
+ gasPrice?: bigint;
1489
+ maxFeePerGas?: bigint;
1490
+ maxPriorityFeePerGas?: bigint;
1491
+ nonce?: number;
1492
+ value?: bigint;
1493
+ }): Promise<`0x${string}`> {
1494
+ if (!this.contract.write) {
1495
+ throw new Error('Wallet client is required for write operations');
1496
+ }
1497
+ return this.contract.write.extendTokenURI([creatorContractAddress, instanceId, locationChunk] as const, options) as Promise<`0x${string}`>;
1498
+ }
1499
+
1500
+ /**
1501
+ * initializeClaim
1502
+ * nonpayable
1503
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1504
+ */
1505
+ async initializeClaim(creatorContractAddress: `0x${string}`, instanceId: bigint, claimParameters: IERC1155LazyPayableClaim_ClaimParameters, options?: {
1506
+ accessList?: import('viem').AccessList;
1507
+ authorizationList?: import('viem').AuthorizationList;
1508
+ chain?: import('viem').Chain | null;
1509
+ dataSuffix?: `0x${string}`;
1510
+ gas?: bigint;
1511
+ gasPrice?: bigint;
1512
+ maxFeePerGas?: bigint;
1513
+ maxPriorityFeePerGas?: bigint;
1514
+ nonce?: number;
1515
+ value?: bigint;
1516
+ }): Promise<`0x${string}`> {
1517
+ if (!this.contract.write) {
1518
+ throw new Error('Wallet client is required for write operations');
1519
+ }
1520
+ return this.contract.write.initializeClaim([creatorContractAddress, instanceId, claimParameters] as const, options) as Promise<`0x${string}`>;
1521
+ }
1522
+
1523
+ /**
1524
+ * mint
1525
+ * payable
1526
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1527
+ */
1528
+ async mint(creatorContractAddress: `0x${string}`, instanceId: bigint, mintIndex: bigint, merkleProof: `0x${string}`[], mintFor: `0x${string}`, options?: {
1529
+ accessList?: import('viem').AccessList;
1530
+ authorizationList?: import('viem').AuthorizationList;
1531
+ chain?: import('viem').Chain | null;
1532
+ dataSuffix?: `0x${string}`;
1533
+ gas?: bigint;
1534
+ gasPrice?: bigint;
1535
+ maxFeePerGas?: bigint;
1536
+ maxPriorityFeePerGas?: bigint;
1537
+ nonce?: number;
1538
+ value?: bigint;
1539
+ }): Promise<`0x${string}`> {
1540
+ if (!this.contract.write) {
1541
+ throw new Error('Wallet client is required for write operations');
1542
+ }
1543
+ return this.contract.write.mint([creatorContractAddress, instanceId, mintIndex, merkleProof, mintFor] as const, options) as Promise<`0x${string}`>;
1544
+ }
1545
+
1546
+ /**
1547
+ * mintBatch
1548
+ * payable
1549
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1550
+ */
1551
+ async mintBatch(creatorContractAddress: `0x${string}`, instanceId: bigint, mintCount: bigint, mintIndices: bigint[], merkleProofs: `0x${string}`[][], mintFor: `0x${string}`, options?: {
1552
+ accessList?: import('viem').AccessList;
1553
+ authorizationList?: import('viem').AuthorizationList;
1554
+ chain?: import('viem').Chain | null;
1555
+ dataSuffix?: `0x${string}`;
1556
+ gas?: bigint;
1557
+ gasPrice?: bigint;
1558
+ maxFeePerGas?: bigint;
1559
+ maxPriorityFeePerGas?: bigint;
1560
+ nonce?: number;
1561
+ value?: bigint;
1562
+ }): Promise<`0x${string}`> {
1563
+ if (!this.contract.write) {
1564
+ throw new Error('Wallet client is required for write operations');
1565
+ }
1566
+ return this.contract.write.mintBatch([creatorContractAddress, instanceId, mintCount, mintIndices, merkleProofs, mintFor] as const, options) as Promise<`0x${string}`>;
1567
+ }
1568
+
1569
+ /**
1570
+ * mintProxy
1571
+ * payable
1572
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1573
+ */
1574
+ async mintProxy(creatorContractAddress: `0x${string}`, instanceId: bigint, mintCount: bigint, mintIndices: bigint[], merkleProofs: `0x${string}`[][], mintFor: `0x${string}`, options?: {
1575
+ accessList?: import('viem').AccessList;
1576
+ authorizationList?: import('viem').AuthorizationList;
1577
+ chain?: import('viem').Chain | null;
1578
+ dataSuffix?: `0x${string}`;
1579
+ gas?: bigint;
1580
+ gasPrice?: bigint;
1581
+ maxFeePerGas?: bigint;
1582
+ maxPriorityFeePerGas?: bigint;
1583
+ nonce?: number;
1584
+ value?: bigint;
1585
+ }): Promise<`0x${string}`> {
1586
+ if (!this.contract.write) {
1587
+ throw new Error('Wallet client is required for write operations');
1588
+ }
1589
+ return this.contract.write.mintProxy([creatorContractAddress, instanceId, mintCount, mintIndices, merkleProofs, mintFor] as const, options) as Promise<`0x${string}`>;
1590
+ }
1591
+
1592
+ /**
1593
+ * mintSignature
1594
+ * payable
1595
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1596
+ */
1597
+ async mintSignature(creatorContractAddress: `0x${string}`, instanceId: bigint, mintCount: bigint, signature: `0x${string}`, message: `0x${string}`, nonce: `0x${string}`, mintFor: `0x${string}`, expiration: bigint, options?: {
1598
+ accessList?: import('viem').AccessList;
1599
+ authorizationList?: import('viem').AuthorizationList;
1600
+ chain?: import('viem').Chain | null;
1601
+ dataSuffix?: `0x${string}`;
1602
+ gas?: bigint;
1603
+ gasPrice?: bigint;
1604
+ maxFeePerGas?: bigint;
1605
+ maxPriorityFeePerGas?: bigint;
1606
+ nonce?: number;
1607
+ value?: bigint;
1608
+ }): Promise<`0x${string}`> {
1609
+ if (!this.contract.write) {
1610
+ throw new Error('Wallet client is required for write operations');
1611
+ }
1612
+ return this.contract.write.mintSignature([creatorContractAddress, instanceId, mintCount, signature, message, nonce, mintFor, expiration] as const, options) as Promise<`0x${string}`>;
1613
+ }
1614
+
1615
+ /**
1616
+ * renounceOwnership
1617
+ * nonpayable
1618
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1619
+ */
1620
+ async renounceOwnership(options?: {
1621
+ accessList?: import('viem').AccessList;
1622
+ authorizationList?: import('viem').AuthorizationList;
1623
+ chain?: import('viem').Chain | null;
1624
+ dataSuffix?: `0x${string}`;
1625
+ gas?: bigint;
1626
+ gasPrice?: bigint;
1627
+ maxFeePerGas?: bigint;
1628
+ maxPriorityFeePerGas?: bigint;
1629
+ nonce?: number;
1630
+ value?: bigint;
1631
+ }): Promise<`0x${string}`> {
1632
+ if (!this.contract.write) {
1633
+ throw new Error('Wallet client is required for write operations');
1634
+ }
1635
+ return this.contract.write.renounceOwnership(options) as Promise<`0x${string}`>;
1636
+ }
1637
+
1638
+ /**
1639
+ * revokeAdmin
1640
+ * nonpayable
1641
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1642
+ */
1643
+ async revokeAdmin(admin: `0x${string}`, options?: {
1644
+ accessList?: import('viem').AccessList;
1645
+ authorizationList?: import('viem').AuthorizationList;
1646
+ chain?: import('viem').Chain | null;
1647
+ dataSuffix?: `0x${string}`;
1648
+ gas?: bigint;
1649
+ gasPrice?: bigint;
1650
+ maxFeePerGas?: bigint;
1651
+ maxPriorityFeePerGas?: bigint;
1652
+ nonce?: number;
1653
+ value?: bigint;
1654
+ }): Promise<`0x${string}`> {
1655
+ if (!this.contract.write) {
1656
+ throw new Error('Wallet client is required for write operations');
1657
+ }
1658
+ return this.contract.write.revokeAdmin([admin] as const, options) as Promise<`0x${string}`>;
1659
+ }
1660
+
1661
+ /**
1662
+ * setMembershipAddress
1663
+ * nonpayable
1664
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1665
+ */
1666
+ async setMembershipAddress(membershipAddress: `0x${string}`, options?: {
1667
+ accessList?: import('viem').AccessList;
1668
+ authorizationList?: import('viem').AuthorizationList;
1669
+ chain?: import('viem').Chain | null;
1670
+ dataSuffix?: `0x${string}`;
1671
+ gas?: bigint;
1672
+ gasPrice?: bigint;
1673
+ maxFeePerGas?: bigint;
1674
+ maxPriorityFeePerGas?: bigint;
1675
+ nonce?: number;
1676
+ value?: bigint;
1677
+ }): Promise<`0x${string}`> {
1678
+ if (!this.contract.write) {
1679
+ throw new Error('Wallet client is required for write operations');
1680
+ }
1681
+ return this.contract.write.setMembershipAddress([membershipAddress] as const, options) as Promise<`0x${string}`>;
1682
+ }
1683
+
1684
+ /**
1685
+ * transferOwnership
1686
+ * nonpayable
1687
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1688
+ */
1689
+ async transferOwnership(newOwner: `0x${string}`, options?: {
1690
+ accessList?: import('viem').AccessList;
1691
+ authorizationList?: import('viem').AuthorizationList;
1692
+ chain?: import('viem').Chain | null;
1693
+ dataSuffix?: `0x${string}`;
1694
+ gas?: bigint;
1695
+ gasPrice?: bigint;
1696
+ maxFeePerGas?: bigint;
1697
+ maxPriorityFeePerGas?: bigint;
1698
+ nonce?: number;
1699
+ value?: bigint;
1700
+ }): Promise<`0x${string}`> {
1701
+ if (!this.contract.write) {
1702
+ throw new Error('Wallet client is required for write operations');
1703
+ }
1704
+ return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
1705
+ }
1706
+
1707
+ /**
1708
+ * updateClaim
1709
+ * nonpayable
1710
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1711
+ */
1712
+ async updateClaim(creatorContractAddress: `0x${string}`, instanceId: bigint, claimParameters: IERC1155LazyPayableClaim_ClaimParameters, options?: {
1713
+ accessList?: import('viem').AccessList;
1714
+ authorizationList?: import('viem').AuthorizationList;
1715
+ chain?: import('viem').Chain | null;
1716
+ dataSuffix?: `0x${string}`;
1717
+ gas?: bigint;
1718
+ gasPrice?: bigint;
1719
+ maxFeePerGas?: bigint;
1720
+ maxPriorityFeePerGas?: bigint;
1721
+ nonce?: number;
1722
+ value?: bigint;
1723
+ }): Promise<`0x${string}`> {
1724
+ if (!this.contract.write) {
1725
+ throw new Error('Wallet client is required for write operations');
1726
+ }
1727
+ return this.contract.write.updateClaim([creatorContractAddress, instanceId, claimParameters] as const, options) as Promise<`0x${string}`>;
1728
+ }
1729
+
1730
+ /**
1731
+ * updateTokenURIParams
1732
+ * nonpayable
1733
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1734
+ */
1735
+ async updateTokenURIParams(creatorContractAddress: `0x${string}`, instanceId: bigint, storageProtocol: bigint, location: string, options?: {
1736
+ accessList?: import('viem').AccessList;
1737
+ authorizationList?: import('viem').AuthorizationList;
1738
+ chain?: import('viem').Chain | null;
1739
+ dataSuffix?: `0x${string}`;
1740
+ gas?: bigint;
1741
+ gasPrice?: bigint;
1742
+ maxFeePerGas?: bigint;
1743
+ maxPriorityFeePerGas?: bigint;
1744
+ nonce?: number;
1745
+ value?: bigint;
1746
+ }): Promise<`0x${string}`> {
1747
+ if (!this.contract.write) {
1748
+ throw new Error('Wallet client is required for write operations');
1749
+ }
1750
+ return this.contract.write.updateTokenURIParams([creatorContractAddress, instanceId, storageProtocol, location] as const, options) as Promise<`0x${string}`>;
1751
+ }
1752
+
1753
+ /**
1754
+ * withdraw
1755
+ * nonpayable
1756
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1757
+ */
1758
+ async withdraw(receiver: `0x${string}`, amount: bigint, options?: {
1759
+ accessList?: import('viem').AccessList;
1760
+ authorizationList?: import('viem').AuthorizationList;
1761
+ chain?: import('viem').Chain | null;
1762
+ dataSuffix?: `0x${string}`;
1763
+ gas?: bigint;
1764
+ gasPrice?: bigint;
1765
+ maxFeePerGas?: bigint;
1766
+ maxPriorityFeePerGas?: bigint;
1767
+ nonce?: number;
1768
+ value?: bigint;
1769
+ }): Promise<`0x${string}`> {
1770
+ if (!this.contract.write) {
1771
+ throw new Error('Wallet client is required for write operations');
1772
+ }
1773
+ return this.contract.write.withdraw([receiver, amount] as const, options) as Promise<`0x${string}`>;
1774
+ }
1775
+
1776
+
1777
+
1778
+ /**
1779
+ * Simulate contract write operations (dry-run without sending transaction)
1780
+ *
1781
+ * @example
1782
+ * const result = await contract.simulate.transfer('0x...', 1000n);
1783
+ * console.log('Gas estimate:', result.request.gas);
1784
+ * console.log('Would succeed:', result.result);
1785
+ */
1786
+ get simulate() {
1787
+ const contract = this.contract;
1788
+ if (!contract.simulate) {
1789
+ throw new Error('Public client is required for simulation');
1790
+ }
1791
+ return {
1792
+ /**
1793
+ * Simulate airdrop
1794
+ * Returns gas estimate and result without sending transaction
1795
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1796
+ */
1797
+ async airdrop(creatorContractAddress: `0x${string}`, instanceId: bigint, recipients: `0x${string}`[], amounts: bigint[], options?: {
1798
+ accessList?: import('viem').AccessList;
1799
+ authorizationList?: import('viem').AuthorizationList;
1800
+ chain?: import('viem').Chain | null;
1801
+ dataSuffix?: `0x${string}`;
1802
+ gas?: bigint;
1803
+ gasPrice?: bigint;
1804
+ maxFeePerGas?: bigint;
1805
+ maxPriorityFeePerGas?: bigint;
1806
+ nonce?: number;
1807
+ value?: bigint;
1808
+ }): Promise<void> {
1809
+ return contract.simulate.airdrop([creatorContractAddress, instanceId, recipients, amounts] as const, options) as Promise<void>;
1810
+ },
1811
+ /**
1812
+ * Simulate approveAdmin
1813
+ * Returns gas estimate and result without sending transaction
1814
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1815
+ */
1816
+ async approveAdmin(admin: `0x${string}`, options?: {
1817
+ accessList?: import('viem').AccessList;
1818
+ authorizationList?: import('viem').AuthorizationList;
1819
+ chain?: import('viem').Chain | null;
1820
+ dataSuffix?: `0x${string}`;
1821
+ gas?: bigint;
1822
+ gasPrice?: bigint;
1823
+ maxFeePerGas?: bigint;
1824
+ maxPriorityFeePerGas?: bigint;
1825
+ nonce?: number;
1826
+ value?: bigint;
1827
+ }): Promise<void> {
1828
+ return contract.simulate.approveAdmin([admin] as const, options) as Promise<void>;
1829
+ },
1830
+ /**
1831
+ * Simulate extendTokenURI
1832
+ * Returns gas estimate and result without sending transaction
1833
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1834
+ */
1835
+ async extendTokenURI(creatorContractAddress: `0x${string}`, instanceId: bigint, locationChunk: string, options?: {
1836
+ accessList?: import('viem').AccessList;
1837
+ authorizationList?: import('viem').AuthorizationList;
1838
+ chain?: import('viem').Chain | null;
1839
+ dataSuffix?: `0x${string}`;
1840
+ gas?: bigint;
1841
+ gasPrice?: bigint;
1842
+ maxFeePerGas?: bigint;
1843
+ maxPriorityFeePerGas?: bigint;
1844
+ nonce?: number;
1845
+ value?: bigint;
1846
+ }): Promise<void> {
1847
+ return contract.simulate.extendTokenURI([creatorContractAddress, instanceId, locationChunk] as const, options) as Promise<void>;
1848
+ },
1849
+ /**
1850
+ * Simulate initializeClaim
1851
+ * Returns gas estimate and result without sending transaction
1852
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1853
+ */
1854
+ async initializeClaim(creatorContractAddress: `0x${string}`, instanceId: bigint, claimParameters: IERC1155LazyPayableClaim_ClaimParameters, options?: {
1855
+ accessList?: import('viem').AccessList;
1856
+ authorizationList?: import('viem').AuthorizationList;
1857
+ chain?: import('viem').Chain | null;
1858
+ dataSuffix?: `0x${string}`;
1859
+ gas?: bigint;
1860
+ gasPrice?: bigint;
1861
+ maxFeePerGas?: bigint;
1862
+ maxPriorityFeePerGas?: bigint;
1863
+ nonce?: number;
1864
+ value?: bigint;
1865
+ }): Promise<void> {
1866
+ return contract.simulate.initializeClaim([creatorContractAddress, instanceId, claimParameters] as const, options) as Promise<void>;
1867
+ },
1868
+ /**
1869
+ * Simulate mint
1870
+ * Returns gas estimate and result without sending transaction
1871
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1872
+ */
1873
+ async mint(creatorContractAddress: `0x${string}`, instanceId: bigint, mintIndex: bigint, merkleProof: `0x${string}`[], mintFor: `0x${string}`, options?: {
1874
+ accessList?: import('viem').AccessList;
1875
+ authorizationList?: import('viem').AuthorizationList;
1876
+ chain?: import('viem').Chain | null;
1877
+ dataSuffix?: `0x${string}`;
1878
+ gas?: bigint;
1879
+ gasPrice?: bigint;
1880
+ maxFeePerGas?: bigint;
1881
+ maxPriorityFeePerGas?: bigint;
1882
+ nonce?: number;
1883
+ value?: bigint;
1884
+ }): Promise<void> {
1885
+ return contract.simulate.mint([creatorContractAddress, instanceId, mintIndex, merkleProof, mintFor] as const, options) as Promise<void>;
1886
+ },
1887
+ /**
1888
+ * Simulate mintBatch
1889
+ * Returns gas estimate and result without sending transaction
1890
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1891
+ */
1892
+ async mintBatch(creatorContractAddress: `0x${string}`, instanceId: bigint, mintCount: bigint, mintIndices: bigint[], merkleProofs: `0x${string}`[][], mintFor: `0x${string}`, options?: {
1893
+ accessList?: import('viem').AccessList;
1894
+ authorizationList?: import('viem').AuthorizationList;
1895
+ chain?: import('viem').Chain | null;
1896
+ dataSuffix?: `0x${string}`;
1897
+ gas?: bigint;
1898
+ gasPrice?: bigint;
1899
+ maxFeePerGas?: bigint;
1900
+ maxPriorityFeePerGas?: bigint;
1901
+ nonce?: number;
1902
+ value?: bigint;
1903
+ }): Promise<void> {
1904
+ return contract.simulate.mintBatch([creatorContractAddress, instanceId, mintCount, mintIndices, merkleProofs, mintFor] as const, options) as Promise<void>;
1905
+ },
1906
+ /**
1907
+ * Simulate mintProxy
1908
+ * Returns gas estimate and result without sending transaction
1909
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1910
+ */
1911
+ async mintProxy(creatorContractAddress: `0x${string}`, instanceId: bigint, mintCount: bigint, mintIndices: bigint[], merkleProofs: `0x${string}`[][], mintFor: `0x${string}`, options?: {
1912
+ accessList?: import('viem').AccessList;
1913
+ authorizationList?: import('viem').AuthorizationList;
1914
+ chain?: import('viem').Chain | null;
1915
+ dataSuffix?: `0x${string}`;
1916
+ gas?: bigint;
1917
+ gasPrice?: bigint;
1918
+ maxFeePerGas?: bigint;
1919
+ maxPriorityFeePerGas?: bigint;
1920
+ nonce?: number;
1921
+ value?: bigint;
1922
+ }): Promise<void> {
1923
+ return contract.simulate.mintProxy([creatorContractAddress, instanceId, mintCount, mintIndices, merkleProofs, mintFor] as const, options) as Promise<void>;
1924
+ },
1925
+ /**
1926
+ * Simulate mintSignature
1927
+ * Returns gas estimate and result without sending transaction
1928
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1929
+ */
1930
+ async mintSignature(creatorContractAddress: `0x${string}`, instanceId: bigint, mintCount: bigint, signature: `0x${string}`, message: `0x${string}`, nonce: `0x${string}`, mintFor: `0x${string}`, expiration: bigint, options?: {
1931
+ accessList?: import('viem').AccessList;
1932
+ authorizationList?: import('viem').AuthorizationList;
1933
+ chain?: import('viem').Chain | null;
1934
+ dataSuffix?: `0x${string}`;
1935
+ gas?: bigint;
1936
+ gasPrice?: bigint;
1937
+ maxFeePerGas?: bigint;
1938
+ maxPriorityFeePerGas?: bigint;
1939
+ nonce?: number;
1940
+ value?: bigint;
1941
+ }): Promise<void> {
1942
+ return contract.simulate.mintSignature([creatorContractAddress, instanceId, mintCount, signature, message, nonce, mintFor, expiration] as const, options) as Promise<void>;
1943
+ },
1944
+ /**
1945
+ * Simulate renounceOwnership
1946
+ * Returns gas estimate and result without sending transaction
1947
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1948
+ */
1949
+ async renounceOwnership(options?: {
1950
+ accessList?: import('viem').AccessList;
1951
+ authorizationList?: import('viem').AuthorizationList;
1952
+ chain?: import('viem').Chain | null;
1953
+ dataSuffix?: `0x${string}`;
1954
+ gas?: bigint;
1955
+ gasPrice?: bigint;
1956
+ maxFeePerGas?: bigint;
1957
+ maxPriorityFeePerGas?: bigint;
1958
+ nonce?: number;
1959
+ value?: bigint;
1960
+ }): Promise<void> {
1961
+ return contract.simulate.renounceOwnership(options) as Promise<void>;
1962
+ },
1963
+ /**
1964
+ * Simulate revokeAdmin
1965
+ * Returns gas estimate and result without sending transaction
1966
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1967
+ */
1968
+ async revokeAdmin(admin: `0x${string}`, options?: {
1969
+ accessList?: import('viem').AccessList;
1970
+ authorizationList?: import('viem').AuthorizationList;
1971
+ chain?: import('viem').Chain | null;
1972
+ dataSuffix?: `0x${string}`;
1973
+ gas?: bigint;
1974
+ gasPrice?: bigint;
1975
+ maxFeePerGas?: bigint;
1976
+ maxPriorityFeePerGas?: bigint;
1977
+ nonce?: number;
1978
+ value?: bigint;
1979
+ }): Promise<void> {
1980
+ return contract.simulate.revokeAdmin([admin] as const, options) as Promise<void>;
1981
+ },
1982
+ /**
1983
+ * Simulate setMembershipAddress
1984
+ * Returns gas estimate and result without sending transaction
1985
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1986
+ */
1987
+ async setMembershipAddress(membershipAddress: `0x${string}`, options?: {
1988
+ accessList?: import('viem').AccessList;
1989
+ authorizationList?: import('viem').AuthorizationList;
1990
+ chain?: import('viem').Chain | null;
1991
+ dataSuffix?: `0x${string}`;
1992
+ gas?: bigint;
1993
+ gasPrice?: bigint;
1994
+ maxFeePerGas?: bigint;
1995
+ maxPriorityFeePerGas?: bigint;
1996
+ nonce?: number;
1997
+ value?: bigint;
1998
+ }): Promise<void> {
1999
+ return contract.simulate.setMembershipAddress([membershipAddress] as const, options) as Promise<void>;
2000
+ },
2001
+ /**
2002
+ * Simulate transferOwnership
2003
+ * Returns gas estimate and result without sending transaction
2004
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2005
+ */
2006
+ async transferOwnership(newOwner: `0x${string}`, options?: {
2007
+ accessList?: import('viem').AccessList;
2008
+ authorizationList?: import('viem').AuthorizationList;
2009
+ chain?: import('viem').Chain | null;
2010
+ dataSuffix?: `0x${string}`;
2011
+ gas?: bigint;
2012
+ gasPrice?: bigint;
2013
+ maxFeePerGas?: bigint;
2014
+ maxPriorityFeePerGas?: bigint;
2015
+ nonce?: number;
2016
+ value?: bigint;
2017
+ }): Promise<void> {
2018
+ return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
2019
+ },
2020
+ /**
2021
+ * Simulate updateClaim
2022
+ * Returns gas estimate and result without sending transaction
2023
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2024
+ */
2025
+ async updateClaim(creatorContractAddress: `0x${string}`, instanceId: bigint, claimParameters: IERC1155LazyPayableClaim_ClaimParameters, options?: {
2026
+ accessList?: import('viem').AccessList;
2027
+ authorizationList?: import('viem').AuthorizationList;
2028
+ chain?: import('viem').Chain | null;
2029
+ dataSuffix?: `0x${string}`;
2030
+ gas?: bigint;
2031
+ gasPrice?: bigint;
2032
+ maxFeePerGas?: bigint;
2033
+ maxPriorityFeePerGas?: bigint;
2034
+ nonce?: number;
2035
+ value?: bigint;
2036
+ }): Promise<void> {
2037
+ return contract.simulate.updateClaim([creatorContractAddress, instanceId, claimParameters] as const, options) as Promise<void>;
2038
+ },
2039
+ /**
2040
+ * Simulate updateTokenURIParams
2041
+ * Returns gas estimate and result without sending transaction
2042
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2043
+ */
2044
+ async updateTokenURIParams(creatorContractAddress: `0x${string}`, instanceId: bigint, storageProtocol: bigint, location: string, options?: {
2045
+ accessList?: import('viem').AccessList;
2046
+ authorizationList?: import('viem').AuthorizationList;
2047
+ chain?: import('viem').Chain | null;
2048
+ dataSuffix?: `0x${string}`;
2049
+ gas?: bigint;
2050
+ gasPrice?: bigint;
2051
+ maxFeePerGas?: bigint;
2052
+ maxPriorityFeePerGas?: bigint;
2053
+ nonce?: number;
2054
+ value?: bigint;
2055
+ }): Promise<void> {
2056
+ return contract.simulate.updateTokenURIParams([creatorContractAddress, instanceId, storageProtocol, location] as const, options) as Promise<void>;
2057
+ },
2058
+ /**
2059
+ * Simulate withdraw
2060
+ * Returns gas estimate and result without sending transaction
2061
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2062
+ */
2063
+ async withdraw(receiver: `0x${string}`, amount: bigint, options?: {
2064
+ accessList?: import('viem').AccessList;
2065
+ authorizationList?: import('viem').AuthorizationList;
2066
+ chain?: import('viem').Chain | null;
2067
+ dataSuffix?: `0x${string}`;
2068
+ gas?: bigint;
2069
+ gasPrice?: bigint;
2070
+ maxFeePerGas?: bigint;
2071
+ maxPriorityFeePerGas?: bigint;
2072
+ nonce?: number;
2073
+ value?: bigint;
2074
+ }): Promise<void> {
2075
+ return contract.simulate.withdraw([receiver, amount] as const, options) as Promise<void>;
2076
+ }
2077
+ };
2078
+ }
2079
+
2080
+ /**
2081
+ * Watch contract events
2082
+ *
2083
+ * @example
2084
+ * // Watch all Transfer events
2085
+ * const unwatch = contract.watch.Transfer((event) => {
2086
+ * console.log('Transfer:', event);
2087
+ * });
2088
+ *
2089
+ * // Stop watching
2090
+ * unwatch();
2091
+ */
2092
+ get watch() {
2093
+ return {
2094
+ /**
2095
+ * Watch AdminApproved events
2096
+ * @param callback Function to call when event is emitted
2097
+ * @param filter Optional filter for indexed parameters
2098
+ * @returns Unwatch function to stop listening
2099
+ */
2100
+ AdminApproved: (callback: (event: { account: `0x${string}`; sender: `0x${string}` }) => void, filter?: { account: `0x${string}`; sender: `0x${string}` }) => {
2101
+ return this.publicClient.watchContractEvent({
2102
+ address: this.contractAddress,
2103
+ abi: ERC1155LazyPayableClaim_jsonAbi,
2104
+ eventName: 'AdminApproved',
2105
+ args: filter,
2106
+ onLogs: (logs: any[]) => {
2107
+ logs.forEach((log: any) => {
2108
+ callback(log.args as any);
2109
+ });
2110
+ },
2111
+ }) as () => void;
2112
+ },
2113
+ /**
2114
+ * Watch AdminRevoked events
2115
+ * @param callback Function to call when event is emitted
2116
+ * @param filter Optional filter for indexed parameters
2117
+ * @returns Unwatch function to stop listening
2118
+ */
2119
+ AdminRevoked: (callback: (event: { account: `0x${string}`; sender: `0x${string}` }) => void, filter?: { account: `0x${string}`; sender: `0x${string}` }) => {
2120
+ return this.publicClient.watchContractEvent({
2121
+ address: this.contractAddress,
2122
+ abi: ERC1155LazyPayableClaim_jsonAbi,
2123
+ eventName: 'AdminRevoked',
2124
+ args: filter,
2125
+ onLogs: (logs: any[]) => {
2126
+ logs.forEach((log: any) => {
2127
+ callback(log.args as any);
2128
+ });
2129
+ },
2130
+ }) as () => void;
2131
+ },
2132
+ /**
2133
+ * Watch ClaimInitialized events
2134
+ * @param callback Function to call when event is emitted
2135
+ * @param filter Optional filter for indexed parameters
2136
+ * @returns Unwatch function to stop listening
2137
+ */
2138
+ ClaimInitialized: (callback: (event: { creatorContract: `0x${string}`; instanceId: bigint; initializer: `0x${string}` }) => void, filter?: { creatorContract: `0x${string}`; instanceId: bigint }) => {
2139
+ return this.publicClient.watchContractEvent({
2140
+ address: this.contractAddress,
2141
+ abi: ERC1155LazyPayableClaim_jsonAbi,
2142
+ eventName: 'ClaimInitialized',
2143
+ args: filter,
2144
+ onLogs: (logs: any[]) => {
2145
+ logs.forEach((log: any) => {
2146
+ callback(log.args as any);
2147
+ });
2148
+ },
2149
+ }) as () => void;
2150
+ },
2151
+ /**
2152
+ * Watch ClaimMint events
2153
+ * @param callback Function to call when event is emitted
2154
+ * @param filter Optional filter for indexed parameters
2155
+ * @returns Unwatch function to stop listening
2156
+ */
2157
+ ClaimMint: (callback: (event: { creatorContract: `0x${string}`; instanceId: bigint }) => void, filter?: { creatorContract: `0x${string}`; instanceId: bigint }) => {
2158
+ return this.publicClient.watchContractEvent({
2159
+ address: this.contractAddress,
2160
+ abi: ERC1155LazyPayableClaim_jsonAbi,
2161
+ eventName: 'ClaimMint',
2162
+ args: filter,
2163
+ onLogs: (logs: any[]) => {
2164
+ logs.forEach((log: any) => {
2165
+ callback(log.args as any);
2166
+ });
2167
+ },
2168
+ }) as () => void;
2169
+ },
2170
+ /**
2171
+ * Watch ClaimMintBatch events
2172
+ * @param callback Function to call when event is emitted
2173
+ * @param filter Optional filter for indexed parameters
2174
+ * @returns Unwatch function to stop listening
2175
+ */
2176
+ ClaimMintBatch: (callback: (event: { creatorContract: `0x${string}`; instanceId: bigint; mintCount: bigint }) => void, filter?: { creatorContract: `0x${string}`; instanceId: bigint }) => {
2177
+ return this.publicClient.watchContractEvent({
2178
+ address: this.contractAddress,
2179
+ abi: ERC1155LazyPayableClaim_jsonAbi,
2180
+ eventName: 'ClaimMintBatch',
2181
+ args: filter,
2182
+ onLogs: (logs: any[]) => {
2183
+ logs.forEach((log: any) => {
2184
+ callback(log.args as any);
2185
+ });
2186
+ },
2187
+ }) as () => void;
2188
+ },
2189
+ /**
2190
+ * Watch ClaimMintProxy events
2191
+ * @param callback Function to call when event is emitted
2192
+ * @param filter Optional filter for indexed parameters
2193
+ * @returns Unwatch function to stop listening
2194
+ */
2195
+ ClaimMintProxy: (callback: (event: { creatorContract: `0x${string}`; instanceId: bigint; mintCount: bigint; proxy: `0x${string}`; mintFor: `0x${string}` }) => void, filter?: { creatorContract: `0x${string}`; instanceId: bigint }) => {
2196
+ return this.publicClient.watchContractEvent({
2197
+ address: this.contractAddress,
2198
+ abi: ERC1155LazyPayableClaim_jsonAbi,
2199
+ eventName: 'ClaimMintProxy',
2200
+ args: filter,
2201
+ onLogs: (logs: any[]) => {
2202
+ logs.forEach((log: any) => {
2203
+ callback(log.args as any);
2204
+ });
2205
+ },
2206
+ }) as () => void;
2207
+ },
2208
+ /**
2209
+ * Watch ClaimMintSignature events
2210
+ * @param callback Function to call when event is emitted
2211
+ * @param filter Optional filter for indexed parameters
2212
+ * @returns Unwatch function to stop listening
2213
+ */
2214
+ ClaimMintSignature: (callback: (event: { creatorContract: `0x${string}`; instanceId: bigint; mintCount: bigint; proxy: `0x${string}`; mintFor: `0x${string}`; nonce: `0x${string}` }) => void, filter?: { creatorContract: `0x${string}`; instanceId: bigint }) => {
2215
+ return this.publicClient.watchContractEvent({
2216
+ address: this.contractAddress,
2217
+ abi: ERC1155LazyPayableClaim_jsonAbi,
2218
+ eventName: 'ClaimMintSignature',
2219
+ args: filter,
2220
+ onLogs: (logs: any[]) => {
2221
+ logs.forEach((log: any) => {
2222
+ callback(log.args as any);
2223
+ });
2224
+ },
2225
+ }) as () => void;
2226
+ },
2227
+ /**
2228
+ * Watch ClaimUpdated events
2229
+ * @param callback Function to call when event is emitted
2230
+ * @param filter Optional filter for indexed parameters
2231
+ * @returns Unwatch function to stop listening
2232
+ */
2233
+ ClaimUpdated: (callback: (event: { creatorContract: `0x${string}`; instanceId: bigint }) => void, filter?: { creatorContract: `0x${string}`; instanceId: bigint }) => {
2234
+ return this.publicClient.watchContractEvent({
2235
+ address: this.contractAddress,
2236
+ abi: ERC1155LazyPayableClaim_jsonAbi,
2237
+ eventName: 'ClaimUpdated',
2238
+ args: filter,
2239
+ onLogs: (logs: any[]) => {
2240
+ logs.forEach((log: any) => {
2241
+ callback(log.args as any);
2242
+ });
2243
+ },
2244
+ }) as () => void;
2245
+ },
2246
+ /**
2247
+ * Watch OwnershipTransferred events
2248
+ * @param callback Function to call when event is emitted
2249
+ * @param filter Optional filter for indexed parameters
2250
+ * @returns Unwatch function to stop listening
2251
+ */
2252
+ OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => {
2253
+ return this.publicClient.watchContractEvent({
2254
+ address: this.contractAddress,
2255
+ abi: ERC1155LazyPayableClaim_jsonAbi,
2256
+ eventName: 'OwnershipTransferred',
2257
+ args: filter,
2258
+ onLogs: (logs: any[]) => {
2259
+ logs.forEach((log: any) => {
2260
+ callback(log.args as any);
2261
+ });
2262
+ },
2263
+ }) as () => void;
2264
+ }
2265
+ };
2266
+ }
2267
+ }