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