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