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