@gitmyabi/rari 1.0.0 → 1.0.2

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