@gitmyabi/yogapetz 0.0.0-stage → 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,3349 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Yogapetz = exports.YogapetzAbi = void 0;
4
+ const viem_1 = require("viem");
5
+ /**
6
+ * Yogapetz ABI
7
+ *
8
+ * This ABI is typed using viem's type system for full type safety.
9
+ */
10
+ exports.YogapetzAbi = [
11
+ {
12
+ "inputs": [],
13
+ "stateMutability": "nonpayable",
14
+ "type": "constructor"
15
+ },
16
+ {
17
+ "inputs": [],
18
+ "name": "ApprovalCallerNotOwnerNorApproved",
19
+ "type": "error"
20
+ },
21
+ {
22
+ "inputs": [],
23
+ "name": "ApprovalQueryForNonexistentToken",
24
+ "type": "error"
25
+ },
26
+ {
27
+ "inputs": [],
28
+ "name": "ApproveToCaller",
29
+ "type": "error"
30
+ },
31
+ {
32
+ "inputs": [],
33
+ "name": "BalanceQueryForZeroAddress",
34
+ "type": "error"
35
+ },
36
+ {
37
+ "inputs": [],
38
+ "name": "CreatorTokenBase__InvalidTransferValidatorContract",
39
+ "type": "error"
40
+ },
41
+ {
42
+ "inputs": [],
43
+ "name": "CreatorTokenBase__SetTransferValidatorFirst",
44
+ "type": "error"
45
+ },
46
+ {
47
+ "inputs": [],
48
+ "name": "InvalidQueryRange",
49
+ "type": "error"
50
+ },
51
+ {
52
+ "inputs": [],
53
+ "name": "MintERC2309QuantityExceedsLimit",
54
+ "type": "error"
55
+ },
56
+ {
57
+ "inputs": [],
58
+ "name": "MintToZeroAddress",
59
+ "type": "error"
60
+ },
61
+ {
62
+ "inputs": [],
63
+ "name": "MintZeroQuantity",
64
+ "type": "error"
65
+ },
66
+ {
67
+ "inputs": [
68
+ {
69
+ "internalType": "address",
70
+ "name": "operator",
71
+ "type": "address"
72
+ }
73
+ ],
74
+ "name": "OperatorNotAllowed",
75
+ "type": "error"
76
+ },
77
+ {
78
+ "inputs": [],
79
+ "name": "OwnerQueryForNonexistentToken",
80
+ "type": "error"
81
+ },
82
+ {
83
+ "inputs": [],
84
+ "name": "OwnershipNotInitializedForExtraData",
85
+ "type": "error"
86
+ },
87
+ {
88
+ "inputs": [],
89
+ "name": "ShouldNotMintToBurnAddress",
90
+ "type": "error"
91
+ },
92
+ {
93
+ "inputs": [],
94
+ "name": "TransferCallerNotOwnerNorApproved",
95
+ "type": "error"
96
+ },
97
+ {
98
+ "inputs": [],
99
+ "name": "TransferFromIncorrectOwner",
100
+ "type": "error"
101
+ },
102
+ {
103
+ "inputs": [],
104
+ "name": "TransferToNonERC721ReceiverImplementer",
105
+ "type": "error"
106
+ },
107
+ {
108
+ "inputs": [],
109
+ "name": "TransferToZeroAddress",
110
+ "type": "error"
111
+ },
112
+ {
113
+ "inputs": [],
114
+ "name": "URIQueryForNonexistentToken",
115
+ "type": "error"
116
+ },
117
+ {
118
+ "anonymous": false,
119
+ "inputs": [
120
+ {
121
+ "indexed": true,
122
+ "internalType": "address",
123
+ "name": "owner",
124
+ "type": "address"
125
+ },
126
+ {
127
+ "indexed": true,
128
+ "internalType": "address",
129
+ "name": "approved",
130
+ "type": "address"
131
+ },
132
+ {
133
+ "indexed": true,
134
+ "internalType": "uint256",
135
+ "name": "tokenId",
136
+ "type": "uint256"
137
+ }
138
+ ],
139
+ "name": "Approval",
140
+ "type": "event"
141
+ },
142
+ {
143
+ "anonymous": false,
144
+ "inputs": [
145
+ {
146
+ "indexed": true,
147
+ "internalType": "address",
148
+ "name": "owner",
149
+ "type": "address"
150
+ },
151
+ {
152
+ "indexed": true,
153
+ "internalType": "address",
154
+ "name": "operator",
155
+ "type": "address"
156
+ },
157
+ {
158
+ "indexed": false,
159
+ "internalType": "bool",
160
+ "name": "approved",
161
+ "type": "bool"
162
+ }
163
+ ],
164
+ "name": "ApprovalForAll",
165
+ "type": "event"
166
+ },
167
+ {
168
+ "anonymous": false,
169
+ "inputs": [
170
+ {
171
+ "indexed": true,
172
+ "internalType": "uint256",
173
+ "name": "tokenId",
174
+ "type": "uint256"
175
+ },
176
+ {
177
+ "indexed": false,
178
+ "internalType": "string",
179
+ "name": "bio",
180
+ "type": "string"
181
+ }
182
+ ],
183
+ "name": "BioChange",
184
+ "type": "event"
185
+ },
186
+ {
187
+ "anonymous": false,
188
+ "inputs": [
189
+ {
190
+ "indexed": true,
191
+ "internalType": "uint256",
192
+ "name": "fromTokenId",
193
+ "type": "uint256"
194
+ },
195
+ {
196
+ "indexed": false,
197
+ "internalType": "uint256",
198
+ "name": "toTokenId",
199
+ "type": "uint256"
200
+ },
201
+ {
202
+ "indexed": true,
203
+ "internalType": "address",
204
+ "name": "from",
205
+ "type": "address"
206
+ },
207
+ {
208
+ "indexed": true,
209
+ "internalType": "address",
210
+ "name": "to",
211
+ "type": "address"
212
+ }
213
+ ],
214
+ "name": "ConsecutiveTransfer",
215
+ "type": "event"
216
+ },
217
+ {
218
+ "anonymous": false,
219
+ "inputs": [
220
+ {
221
+ "indexed": false,
222
+ "internalType": "uint8",
223
+ "name": "version",
224
+ "type": "uint8"
225
+ }
226
+ ],
227
+ "name": "Initialized",
228
+ "type": "event"
229
+ },
230
+ {
231
+ "anonymous": false,
232
+ "inputs": [
233
+ {
234
+ "indexed": false,
235
+ "internalType": "address",
236
+ "name": "from",
237
+ "type": "address"
238
+ },
239
+ {
240
+ "indexed": false,
241
+ "internalType": "address",
242
+ "name": "to",
243
+ "type": "address"
244
+ },
245
+ {
246
+ "indexed": false,
247
+ "internalType": "uint256",
248
+ "name": "tokenId",
249
+ "type": "uint256"
250
+ }
251
+ ],
252
+ "name": "KeepTOLTransfer",
253
+ "type": "event"
254
+ },
255
+ {
256
+ "anonymous": false,
257
+ "inputs": [
258
+ {
259
+ "indexed": false,
260
+ "internalType": "uint256",
261
+ "name": "tokenId",
262
+ "type": "uint256"
263
+ }
264
+ ],
265
+ "name": "MNPLUnlockedUpgraded",
266
+ "type": "event"
267
+ },
268
+ {
269
+ "anonymous": false,
270
+ "inputs": [
271
+ {
272
+ "indexed": true,
273
+ "internalType": "uint256",
274
+ "name": "tokenId",
275
+ "type": "uint256"
276
+ },
277
+ {
278
+ "indexed": false,
279
+ "internalType": "string",
280
+ "name": "newName",
281
+ "type": "string"
282
+ }
283
+ ],
284
+ "name": "NameChange",
285
+ "type": "event"
286
+ },
287
+ {
288
+ "anonymous": false,
289
+ "inputs": [
290
+ {
291
+ "indexed": true,
292
+ "internalType": "address",
293
+ "name": "previousOwner",
294
+ "type": "address"
295
+ },
296
+ {
297
+ "indexed": true,
298
+ "internalType": "address",
299
+ "name": "newOwner",
300
+ "type": "address"
301
+ }
302
+ ],
303
+ "name": "OwnershipTransferred",
304
+ "type": "event"
305
+ },
306
+ {
307
+ "anonymous": false,
308
+ "inputs": [
309
+ {
310
+ "indexed": false,
311
+ "internalType": "uint256",
312
+ "name": "tokenId",
313
+ "type": "uint256"
314
+ },
315
+ {
316
+ "indexed": false,
317
+ "internalType": "uint256",
318
+ "name": "amount",
319
+ "type": "uint256"
320
+ }
321
+ ],
322
+ "name": "RoyaltyPaid",
323
+ "type": "event"
324
+ },
325
+ {
326
+ "anonymous": false,
327
+ "inputs": [
328
+ {
329
+ "indexed": true,
330
+ "internalType": "uint256",
331
+ "name": "tokenId",
332
+ "type": "uint256"
333
+ }
334
+ ],
335
+ "name": "Stake",
336
+ "type": "event"
337
+ },
338
+ {
339
+ "anonymous": false,
340
+ "inputs": [
341
+ {
342
+ "indexed": false,
343
+ "internalType": "uint256",
344
+ "name": "tokenId",
345
+ "type": "uint256"
346
+ },
347
+ {
348
+ "indexed": false,
349
+ "internalType": "bool",
350
+ "name": "isAdminLocked",
351
+ "type": "bool"
352
+ }
353
+ ],
354
+ "name": "TokenAdminLockedChanged",
355
+ "type": "event"
356
+ },
357
+ {
358
+ "anonymous": false,
359
+ "inputs": [
360
+ {
361
+ "indexed": true,
362
+ "internalType": "uint256",
363
+ "name": "tokenId",
364
+ "type": "uint256"
365
+ },
366
+ {
367
+ "indexed": true,
368
+ "internalType": "address",
369
+ "name": "approvedContract",
370
+ "type": "address"
371
+ }
372
+ ],
373
+ "name": "TokenLocked",
374
+ "type": "event"
375
+ },
376
+ {
377
+ "anonymous": false,
378
+ "inputs": [
379
+ {
380
+ "indexed": true,
381
+ "internalType": "uint256",
382
+ "name": "tokenId",
383
+ "type": "uint256"
384
+ },
385
+ {
386
+ "indexed": true,
387
+ "internalType": "address",
388
+ "name": "approvedContract",
389
+ "type": "address"
390
+ }
391
+ ],
392
+ "name": "TokenUnlocked",
393
+ "type": "event"
394
+ },
395
+ {
396
+ "anonymous": false,
397
+ "inputs": [
398
+ {
399
+ "indexed": true,
400
+ "internalType": "address",
401
+ "name": "from",
402
+ "type": "address"
403
+ },
404
+ {
405
+ "indexed": true,
406
+ "internalType": "address",
407
+ "name": "to",
408
+ "type": "address"
409
+ },
410
+ {
411
+ "indexed": true,
412
+ "internalType": "uint256",
413
+ "name": "tokenId",
414
+ "type": "uint256"
415
+ }
416
+ ],
417
+ "name": "Transfer",
418
+ "type": "event"
419
+ },
420
+ {
421
+ "anonymous": false,
422
+ "inputs": [
423
+ {
424
+ "indexed": false,
425
+ "internalType": "address",
426
+ "name": "oldValidator",
427
+ "type": "address"
428
+ },
429
+ {
430
+ "indexed": false,
431
+ "internalType": "address",
432
+ "name": "newValidator",
433
+ "type": "address"
434
+ }
435
+ ],
436
+ "name": "TransferValidatorUpdated",
437
+ "type": "event"
438
+ },
439
+ {
440
+ "anonymous": false,
441
+ "inputs": [
442
+ {
443
+ "indexed": true,
444
+ "internalType": "uint256",
445
+ "name": "tokenId",
446
+ "type": "uint256"
447
+ },
448
+ {
449
+ "indexed": false,
450
+ "internalType": "uint256",
451
+ "name": "stakedAtTimestamp",
452
+ "type": "uint256"
453
+ },
454
+ {
455
+ "indexed": false,
456
+ "internalType": "uint256",
457
+ "name": "removedFromStakeAtTimestamp",
458
+ "type": "uint256"
459
+ }
460
+ ],
461
+ "name": "Unstake",
462
+ "type": "event"
463
+ },
464
+ {
465
+ "inputs": [],
466
+ "name": "DEFAULT_OPERATOR_WHITELIST_ID",
467
+ "outputs": [
468
+ {
469
+ "internalType": "uint120",
470
+ "name": "",
471
+ "type": "uint120"
472
+ }
473
+ ],
474
+ "stateMutability": "view",
475
+ "type": "function"
476
+ },
477
+ {
478
+ "inputs": [],
479
+ "name": "DEFAULT_TRANSFER_SECURITY_LEVEL",
480
+ "outputs": [
481
+ {
482
+ "internalType": "enum TransferSecurityLevels",
483
+ "name": "",
484
+ "type": "uint8"
485
+ }
486
+ ],
487
+ "stateMutability": "view",
488
+ "type": "function"
489
+ },
490
+ {
491
+ "inputs": [],
492
+ "name": "DEFAULT_TRANSFER_VALIDATOR",
493
+ "outputs": [
494
+ {
495
+ "internalType": "address",
496
+ "name": "",
497
+ "type": "address"
498
+ }
499
+ ],
500
+ "stateMutability": "view",
501
+ "type": "function"
502
+ },
503
+ {
504
+ "inputs": [],
505
+ "name": "MAX_SUPPLY",
506
+ "outputs": [
507
+ {
508
+ "internalType": "uint256",
509
+ "name": "",
510
+ "type": "uint256"
511
+ }
512
+ ],
513
+ "stateMutability": "view",
514
+ "type": "function"
515
+ },
516
+ {
517
+ "inputs": [],
518
+ "name": "__DefaultOperatorFilterer_init",
519
+ "outputs": [],
520
+ "stateMutability": "nonpayable",
521
+ "type": "function"
522
+ },
523
+ {
524
+ "inputs": [
525
+ {
526
+ "internalType": "address",
527
+ "name": "subscriptionOrRegistrantToCopy",
528
+ "type": "address"
529
+ },
530
+ {
531
+ "internalType": "bool",
532
+ "name": "subscribe",
533
+ "type": "bool"
534
+ }
535
+ ],
536
+ "name": "__OperatorFilterer_init",
537
+ "outputs": [],
538
+ "stateMutability": "nonpayable",
539
+ "type": "function"
540
+ },
541
+ {
542
+ "inputs": [
543
+ {
544
+ "internalType": "uint256",
545
+ "name": "",
546
+ "type": "uint256"
547
+ }
548
+ ],
549
+ "name": "adminLocked",
550
+ "outputs": [
551
+ {
552
+ "internalType": "bool",
553
+ "name": "",
554
+ "type": "bool"
555
+ }
556
+ ],
557
+ "stateMutability": "view",
558
+ "type": "function"
559
+ },
560
+ {
561
+ "inputs": [
562
+ {
563
+ "internalType": "address[]",
564
+ "name": "receivers",
565
+ "type": "address[]"
566
+ },
567
+ {
568
+ "internalType": "uint256[]",
569
+ "name": "amounts",
570
+ "type": "uint256[]"
571
+ }
572
+ ],
573
+ "name": "airdropListWithAmounts",
574
+ "outputs": [],
575
+ "stateMutability": "nonpayable",
576
+ "type": "function"
577
+ },
578
+ {
579
+ "inputs": [
580
+ {
581
+ "internalType": "address",
582
+ "name": "to",
583
+ "type": "address"
584
+ },
585
+ {
586
+ "internalType": "uint256",
587
+ "name": "tokenId",
588
+ "type": "uint256"
589
+ }
590
+ ],
591
+ "name": "approve",
592
+ "outputs": [],
593
+ "stateMutability": "nonpayable",
594
+ "type": "function"
595
+ },
596
+ {
597
+ "inputs": [
598
+ {
599
+ "internalType": "address",
600
+ "name": "",
601
+ "type": "address"
602
+ }
603
+ ],
604
+ "name": "approvedContract",
605
+ "outputs": [
606
+ {
607
+ "internalType": "bool",
608
+ "name": "",
609
+ "type": "bool"
610
+ }
611
+ ],
612
+ "stateMutability": "view",
613
+ "type": "function"
614
+ },
615
+ {
616
+ "inputs": [
617
+ {
618
+ "internalType": "address",
619
+ "name": "owner",
620
+ "type": "address"
621
+ }
622
+ ],
623
+ "name": "balanceOf",
624
+ "outputs": [
625
+ {
626
+ "internalType": "uint256",
627
+ "name": "",
628
+ "type": "uint256"
629
+ }
630
+ ],
631
+ "stateMutability": "view",
632
+ "type": "function"
633
+ },
634
+ {
635
+ "inputs": [],
636
+ "name": "baseTokenURI",
637
+ "outputs": [
638
+ {
639
+ "internalType": "string",
640
+ "name": "",
641
+ "type": "string"
642
+ }
643
+ ],
644
+ "stateMutability": "view",
645
+ "type": "function"
646
+ },
647
+ {
648
+ "inputs": [
649
+ {
650
+ "internalType": "uint256",
651
+ "name": "",
652
+ "type": "uint256"
653
+ }
654
+ ],
655
+ "name": "bio",
656
+ "outputs": [
657
+ {
658
+ "internalType": "string",
659
+ "name": "",
660
+ "type": "string"
661
+ }
662
+ ],
663
+ "stateMutability": "view",
664
+ "type": "function"
665
+ },
666
+ {
667
+ "inputs": [],
668
+ "name": "canStake",
669
+ "outputs": [
670
+ {
671
+ "internalType": "bool",
672
+ "name": "",
673
+ "type": "bool"
674
+ }
675
+ ],
676
+ "stateMutability": "view",
677
+ "type": "function"
678
+ },
679
+ {
680
+ "inputs": [
681
+ {
682
+ "internalType": "uint256[]",
683
+ "name": "t2TokenIds",
684
+ "type": "uint256[]"
685
+ }
686
+ ],
687
+ "name": "confiscateT2",
688
+ "outputs": [],
689
+ "stateMutability": "nonpayable",
690
+ "type": "function"
691
+ },
692
+ {
693
+ "inputs": [
694
+ {
695
+ "internalType": "address[]",
696
+ "name": "markets",
697
+ "type": "address[]"
698
+ },
699
+ {
700
+ "internalType": "bool",
701
+ "name": "exempted",
702
+ "type": "bool"
703
+ }
704
+ ],
705
+ "name": "exemptMarketplaces",
706
+ "outputs": [],
707
+ "stateMutability": "nonpayable",
708
+ "type": "function"
709
+ },
710
+ {
711
+ "inputs": [
712
+ {
713
+ "internalType": "address",
714
+ "name": "",
715
+ "type": "address"
716
+ }
717
+ ],
718
+ "name": "exemptedMarketplaces",
719
+ "outputs": [
720
+ {
721
+ "internalType": "bool",
722
+ "name": "",
723
+ "type": "bool"
724
+ }
725
+ ],
726
+ "stateMutability": "view",
727
+ "type": "function"
728
+ },
729
+ {
730
+ "inputs": [
731
+ {
732
+ "internalType": "uint256",
733
+ "name": "tokenId",
734
+ "type": "uint256"
735
+ }
736
+ ],
737
+ "name": "explicitOwnershipOf",
738
+ "outputs": [
739
+ {
740
+ "components": [
741
+ {
742
+ "internalType": "address",
743
+ "name": "addr",
744
+ "type": "address"
745
+ },
746
+ {
747
+ "internalType": "uint64",
748
+ "name": "startTimestamp",
749
+ "type": "uint64"
750
+ },
751
+ {
752
+ "internalType": "bool",
753
+ "name": "burned",
754
+ "type": "bool"
755
+ },
756
+ {
757
+ "internalType": "uint24",
758
+ "name": "extraData",
759
+ "type": "uint24"
760
+ }
761
+ ],
762
+ "internalType": "struct IERC721AUpgradeable.TokenOwnership",
763
+ "name": "",
764
+ "type": "tuple"
765
+ }
766
+ ],
767
+ "stateMutability": "view",
768
+ "type": "function"
769
+ },
770
+ {
771
+ "inputs": [
772
+ {
773
+ "internalType": "uint256[]",
774
+ "name": "tokenIds",
775
+ "type": "uint256[]"
776
+ }
777
+ ],
778
+ "name": "explicitOwnershipsOf",
779
+ "outputs": [
780
+ {
781
+ "components": [
782
+ {
783
+ "internalType": "address",
784
+ "name": "addr",
785
+ "type": "address"
786
+ },
787
+ {
788
+ "internalType": "uint64",
789
+ "name": "startTimestamp",
790
+ "type": "uint64"
791
+ },
792
+ {
793
+ "internalType": "bool",
794
+ "name": "burned",
795
+ "type": "bool"
796
+ },
797
+ {
798
+ "internalType": "uint24",
799
+ "name": "extraData",
800
+ "type": "uint24"
801
+ }
802
+ ],
803
+ "internalType": "struct IERC721AUpgradeable.TokenOwnership[]",
804
+ "name": "",
805
+ "type": "tuple[]"
806
+ }
807
+ ],
808
+ "stateMutability": "view",
809
+ "type": "function"
810
+ },
811
+ {
812
+ "inputs": [
813
+ {
814
+ "internalType": "uint256",
815
+ "name": "_id",
816
+ "type": "uint256"
817
+ },
818
+ {
819
+ "internalType": "address",
820
+ "name": "_contract",
821
+ "type": "address"
822
+ }
823
+ ],
824
+ "name": "freeId",
825
+ "outputs": [],
826
+ "stateMutability": "nonpayable",
827
+ "type": "function"
828
+ },
829
+ {
830
+ "inputs": [
831
+ {
832
+ "internalType": "uint256",
833
+ "name": "tokenId",
834
+ "type": "uint256"
835
+ }
836
+ ],
837
+ "name": "getApproved",
838
+ "outputs": [
839
+ {
840
+ "internalType": "address",
841
+ "name": "",
842
+ "type": "address"
843
+ }
844
+ ],
845
+ "stateMutability": "view",
846
+ "type": "function"
847
+ },
848
+ {
849
+ "inputs": [],
850
+ "name": "getPermittedContractReceivers",
851
+ "outputs": [
852
+ {
853
+ "internalType": "address[]",
854
+ "name": "",
855
+ "type": "address[]"
856
+ }
857
+ ],
858
+ "stateMutability": "view",
859
+ "type": "function"
860
+ },
861
+ {
862
+ "inputs": [],
863
+ "name": "getSecurityPolicy",
864
+ "outputs": [
865
+ {
866
+ "components": [
867
+ {
868
+ "internalType": "enum TransferSecurityLevels",
869
+ "name": "transferSecurityLevel",
870
+ "type": "uint8"
871
+ },
872
+ {
873
+ "internalType": "uint120",
874
+ "name": "operatorWhitelistId",
875
+ "type": "uint120"
876
+ },
877
+ {
878
+ "internalType": "uint120",
879
+ "name": "permittedContractReceiversId",
880
+ "type": "uint120"
881
+ }
882
+ ],
883
+ "internalType": "struct CollectionSecurityPolicy",
884
+ "name": "",
885
+ "type": "tuple"
886
+ }
887
+ ],
888
+ "stateMutability": "view",
889
+ "type": "function"
890
+ },
891
+ {
892
+ "inputs": [
893
+ {
894
+ "internalType": "uint256",
895
+ "name": "tokenId",
896
+ "type": "uint256"
897
+ }
898
+ ],
899
+ "name": "getTier",
900
+ "outputs": [
901
+ {
902
+ "internalType": "uint256",
903
+ "name": "",
904
+ "type": "uint256"
905
+ }
906
+ ],
907
+ "stateMutability": "view",
908
+ "type": "function"
909
+ },
910
+ {
911
+ "inputs": [
912
+ {
913
+ "internalType": "uint256[]",
914
+ "name": "tokenIds",
915
+ "type": "uint256[]"
916
+ }
917
+ ],
918
+ "name": "getTierMultiple",
919
+ "outputs": [
920
+ {
921
+ "internalType": "uint256[]",
922
+ "name": "",
923
+ "type": "uint256[]"
924
+ }
925
+ ],
926
+ "stateMutability": "view",
927
+ "type": "function"
928
+ },
929
+ {
930
+ "inputs": [],
931
+ "name": "getTransferValidator",
932
+ "outputs": [
933
+ {
934
+ "internalType": "contract ICreatorTokenTransferValidator",
935
+ "name": "",
936
+ "type": "address"
937
+ }
938
+ ],
939
+ "stateMutability": "view",
940
+ "type": "function"
941
+ },
942
+ {
943
+ "inputs": [],
944
+ "name": "getWhitelistedOperators",
945
+ "outputs": [
946
+ {
947
+ "internalType": "address[]",
948
+ "name": "",
949
+ "type": "address[]"
950
+ }
951
+ ],
952
+ "stateMutability": "view",
953
+ "type": "function"
954
+ },
955
+ {
956
+ "inputs": [],
957
+ "name": "guardianContract",
958
+ "outputs": [
959
+ {
960
+ "internalType": "contract ITOLTransfer",
961
+ "name": "",
962
+ "type": "address"
963
+ }
964
+ ],
965
+ "stateMutability": "view",
966
+ "type": "function"
967
+ },
968
+ {
969
+ "inputs": [
970
+ {
971
+ "internalType": "string",
972
+ "name": "baseURI",
973
+ "type": "string"
974
+ }
975
+ ],
976
+ "name": "initialize",
977
+ "outputs": [],
978
+ "stateMutability": "nonpayable",
979
+ "type": "function"
980
+ },
981
+ {
982
+ "inputs": [],
983
+ "name": "initializeV3",
984
+ "outputs": [],
985
+ "stateMutability": "nonpayable",
986
+ "type": "function"
987
+ },
988
+ {
989
+ "inputs": [
990
+ {
991
+ "internalType": "uint256",
992
+ "name": "tokenId",
993
+ "type": "uint256"
994
+ }
995
+ ],
996
+ "name": "isAdminLocked",
997
+ "outputs": [
998
+ {
999
+ "internalType": "bool",
1000
+ "name": "",
1001
+ "type": "bool"
1002
+ }
1003
+ ],
1004
+ "stateMutability": "view",
1005
+ "type": "function"
1006
+ },
1007
+ {
1008
+ "inputs": [
1009
+ {
1010
+ "internalType": "address",
1011
+ "name": "tokenOwner",
1012
+ "type": "address"
1013
+ },
1014
+ {
1015
+ "internalType": "address",
1016
+ "name": "operator",
1017
+ "type": "address"
1018
+ }
1019
+ ],
1020
+ "name": "isApprovedForAll",
1021
+ "outputs": [
1022
+ {
1023
+ "internalType": "bool",
1024
+ "name": "",
1025
+ "type": "bool"
1026
+ }
1027
+ ],
1028
+ "stateMutability": "view",
1029
+ "type": "function"
1030
+ },
1031
+ {
1032
+ "inputs": [
1033
+ {
1034
+ "internalType": "address",
1035
+ "name": "receiver",
1036
+ "type": "address"
1037
+ }
1038
+ ],
1039
+ "name": "isContractReceiverPermitted",
1040
+ "outputs": [
1041
+ {
1042
+ "internalType": "bool",
1043
+ "name": "",
1044
+ "type": "bool"
1045
+ }
1046
+ ],
1047
+ "stateMutability": "view",
1048
+ "type": "function"
1049
+ },
1050
+ {
1051
+ "inputs": [
1052
+ {
1053
+ "internalType": "uint256",
1054
+ "name": "tokenId",
1055
+ "type": "uint256"
1056
+ }
1057
+ ],
1058
+ "name": "isMNPLTransferLocked",
1059
+ "outputs": [
1060
+ {
1061
+ "internalType": "bool",
1062
+ "name": "",
1063
+ "type": "bool"
1064
+ }
1065
+ ],
1066
+ "stateMutability": "view",
1067
+ "type": "function"
1068
+ },
1069
+ {
1070
+ "inputs": [
1071
+ {
1072
+ "internalType": "address",
1073
+ "name": "operator",
1074
+ "type": "address"
1075
+ }
1076
+ ],
1077
+ "name": "isOperatorWhitelisted",
1078
+ "outputs": [
1079
+ {
1080
+ "internalType": "bool",
1081
+ "name": "",
1082
+ "type": "bool"
1083
+ }
1084
+ ],
1085
+ "stateMutability": "view",
1086
+ "type": "function"
1087
+ },
1088
+ {
1089
+ "inputs": [
1090
+ {
1091
+ "internalType": "uint256",
1092
+ "name": "tokenId",
1093
+ "type": "uint256"
1094
+ }
1095
+ ],
1096
+ "name": "isOriginallyMNPL",
1097
+ "outputs": [
1098
+ {
1099
+ "internalType": "bool",
1100
+ "name": "",
1101
+ "type": "bool"
1102
+ }
1103
+ ],
1104
+ "stateMutability": "view",
1105
+ "type": "function"
1106
+ },
1107
+ {
1108
+ "inputs": [
1109
+ {
1110
+ "internalType": "address",
1111
+ "name": "caller",
1112
+ "type": "address"
1113
+ },
1114
+ {
1115
+ "internalType": "address",
1116
+ "name": "from",
1117
+ "type": "address"
1118
+ },
1119
+ {
1120
+ "internalType": "address",
1121
+ "name": "to",
1122
+ "type": "address"
1123
+ }
1124
+ ],
1125
+ "name": "isTransferAllowed",
1126
+ "outputs": [
1127
+ {
1128
+ "internalType": "bool",
1129
+ "name": "",
1130
+ "type": "bool"
1131
+ }
1132
+ ],
1133
+ "stateMutability": "view",
1134
+ "type": "function"
1135
+ },
1136
+ {
1137
+ "inputs": [
1138
+ {
1139
+ "internalType": "uint256",
1140
+ "name": "_id",
1141
+ "type": "uint256"
1142
+ }
1143
+ ],
1144
+ "name": "isUnlocked",
1145
+ "outputs": [
1146
+ {
1147
+ "internalType": "bool",
1148
+ "name": "",
1149
+ "type": "bool"
1150
+ }
1151
+ ],
1152
+ "stateMutability": "view",
1153
+ "type": "function"
1154
+ },
1155
+ {
1156
+ "inputs": [
1157
+ {
1158
+ "internalType": "uint256[]",
1159
+ "name": "tokenIds",
1160
+ "type": "uint256[]"
1161
+ }
1162
+ ],
1163
+ "name": "isUnlockedMultiple",
1164
+ "outputs": [
1165
+ {
1166
+ "internalType": "bool[]",
1167
+ "name": "",
1168
+ "type": "bool[]"
1169
+ }
1170
+ ],
1171
+ "stateMutability": "view",
1172
+ "type": "function"
1173
+ },
1174
+ {
1175
+ "inputs": [
1176
+ {
1177
+ "internalType": "address",
1178
+ "name": "from",
1179
+ "type": "address"
1180
+ },
1181
+ {
1182
+ "internalType": "address",
1183
+ "name": "to",
1184
+ "type": "address"
1185
+ },
1186
+ {
1187
+ "internalType": "uint256",
1188
+ "name": "tokenId",
1189
+ "type": "uint256"
1190
+ }
1191
+ ],
1192
+ "name": "keepTOLTransferFrom",
1193
+ "outputs": [],
1194
+ "stateMutability": "nonpayable",
1195
+ "type": "function"
1196
+ },
1197
+ {
1198
+ "inputs": [
1199
+ {
1200
+ "internalType": "uint256",
1201
+ "name": "",
1202
+ "type": "uint256"
1203
+ }
1204
+ ],
1205
+ "name": "lockCount",
1206
+ "outputs": [
1207
+ {
1208
+ "internalType": "uint256",
1209
+ "name": "",
1210
+ "type": "uint256"
1211
+ }
1212
+ ],
1213
+ "stateMutability": "view",
1214
+ "type": "function"
1215
+ },
1216
+ {
1217
+ "inputs": [
1218
+ {
1219
+ "internalType": "uint256",
1220
+ "name": "_id",
1221
+ "type": "uint256"
1222
+ }
1223
+ ],
1224
+ "name": "lockId",
1225
+ "outputs": [],
1226
+ "stateMutability": "nonpayable",
1227
+ "type": "function"
1228
+ },
1229
+ {
1230
+ "inputs": [
1231
+ {
1232
+ "internalType": "uint256",
1233
+ "name": "",
1234
+ "type": "uint256"
1235
+ },
1236
+ {
1237
+ "internalType": "uint256",
1238
+ "name": "",
1239
+ "type": "uint256"
1240
+ }
1241
+ ],
1242
+ "name": "lockMap",
1243
+ "outputs": [
1244
+ {
1245
+ "internalType": "address",
1246
+ "name": "",
1247
+ "type": "address"
1248
+ }
1249
+ ],
1250
+ "stateMutability": "view",
1251
+ "type": "function"
1252
+ },
1253
+ {
1254
+ "inputs": [
1255
+ {
1256
+ "internalType": "uint256",
1257
+ "name": "",
1258
+ "type": "uint256"
1259
+ },
1260
+ {
1261
+ "internalType": "address",
1262
+ "name": "",
1263
+ "type": "address"
1264
+ }
1265
+ ],
1266
+ "name": "lockMapIndex",
1267
+ "outputs": [
1268
+ {
1269
+ "internalType": "uint256",
1270
+ "name": "",
1271
+ "type": "uint256"
1272
+ }
1273
+ ],
1274
+ "stateMutability": "view",
1275
+ "type": "function"
1276
+ },
1277
+ {
1278
+ "inputs": [
1279
+ {
1280
+ "internalType": "uint256",
1281
+ "name": "",
1282
+ "type": "uint256"
1283
+ }
1284
+ ],
1285
+ "name": "mnplUnlocked",
1286
+ "outputs": [
1287
+ {
1288
+ "internalType": "bool",
1289
+ "name": "",
1290
+ "type": "bool"
1291
+ }
1292
+ ],
1293
+ "stateMutability": "view",
1294
+ "type": "function"
1295
+ },
1296
+ {
1297
+ "inputs": [
1298
+ {
1299
+ "internalType": "uint256",
1300
+ "name": "",
1301
+ "type": "uint256"
1302
+ }
1303
+ ],
1304
+ "name": "mnplUpgraded",
1305
+ "outputs": [
1306
+ {
1307
+ "internalType": "bool",
1308
+ "name": "",
1309
+ "type": "bool"
1310
+ }
1311
+ ],
1312
+ "stateMutability": "view",
1313
+ "type": "function"
1314
+ },
1315
+ {
1316
+ "inputs": [],
1317
+ "name": "name",
1318
+ "outputs": [
1319
+ {
1320
+ "internalType": "string",
1321
+ "name": "",
1322
+ "type": "string"
1323
+ }
1324
+ ],
1325
+ "stateMutability": "view",
1326
+ "type": "function"
1327
+ },
1328
+ {
1329
+ "inputs": [],
1330
+ "name": "owner",
1331
+ "outputs": [
1332
+ {
1333
+ "internalType": "address",
1334
+ "name": "",
1335
+ "type": "address"
1336
+ }
1337
+ ],
1338
+ "stateMutability": "view",
1339
+ "type": "function"
1340
+ },
1341
+ {
1342
+ "inputs": [
1343
+ {
1344
+ "internalType": "uint256",
1345
+ "name": "tokenId",
1346
+ "type": "uint256"
1347
+ }
1348
+ ],
1349
+ "name": "ownerOf",
1350
+ "outputs": [
1351
+ {
1352
+ "internalType": "address",
1353
+ "name": "",
1354
+ "type": "address"
1355
+ }
1356
+ ],
1357
+ "stateMutability": "view",
1358
+ "type": "function"
1359
+ },
1360
+ {
1361
+ "inputs": [
1362
+ {
1363
+ "internalType": "uint256[]",
1364
+ "name": "tokenIds",
1365
+ "type": "uint256[]"
1366
+ }
1367
+ ],
1368
+ "name": "ownerOfMultiple",
1369
+ "outputs": [
1370
+ {
1371
+ "internalType": "address[]",
1372
+ "name": "",
1373
+ "type": "address[]"
1374
+ }
1375
+ ],
1376
+ "stateMutability": "view",
1377
+ "type": "function"
1378
+ },
1379
+ {
1380
+ "inputs": [
1381
+ {
1382
+ "internalType": "uint256",
1383
+ "name": "tokenId",
1384
+ "type": "uint256"
1385
+ }
1386
+ ],
1387
+ "name": "payRoyalty",
1388
+ "outputs": [],
1389
+ "stateMutability": "payable",
1390
+ "type": "function"
1391
+ },
1392
+ {
1393
+ "inputs": [],
1394
+ "name": "renounceOwnership",
1395
+ "outputs": [],
1396
+ "stateMutability": "nonpayable",
1397
+ "type": "function"
1398
+ },
1399
+ {
1400
+ "inputs": [
1401
+ {
1402
+ "internalType": "address",
1403
+ "name": "from",
1404
+ "type": "address"
1405
+ },
1406
+ {
1407
+ "internalType": "address",
1408
+ "name": "to",
1409
+ "type": "address"
1410
+ },
1411
+ {
1412
+ "internalType": "uint256",
1413
+ "name": "tokenId",
1414
+ "type": "uint256"
1415
+ }
1416
+ ],
1417
+ "name": "safeTransferFrom",
1418
+ "outputs": [],
1419
+ "stateMutability": "nonpayable",
1420
+ "type": "function"
1421
+ },
1422
+ {
1423
+ "inputs": [
1424
+ {
1425
+ "internalType": "address",
1426
+ "name": "_from",
1427
+ "type": "address"
1428
+ },
1429
+ {
1430
+ "internalType": "address",
1431
+ "name": "_to",
1432
+ "type": "address"
1433
+ },
1434
+ {
1435
+ "internalType": "uint256",
1436
+ "name": "_tokenId",
1437
+ "type": "uint256"
1438
+ },
1439
+ {
1440
+ "internalType": "bytes",
1441
+ "name": "data",
1442
+ "type": "bytes"
1443
+ }
1444
+ ],
1445
+ "name": "safeTransferFrom",
1446
+ "outputs": [],
1447
+ "stateMutability": "nonpayable",
1448
+ "type": "function"
1449
+ },
1450
+ {
1451
+ "inputs": [
1452
+ {
1453
+ "internalType": "uint256",
1454
+ "name": "tokenId",
1455
+ "type": "uint256"
1456
+ },
1457
+ {
1458
+ "internalType": "bool",
1459
+ "name": "isLocked",
1460
+ "type": "bool"
1461
+ }
1462
+ ],
1463
+ "name": "setAdminLocked",
1464
+ "outputs": [],
1465
+ "stateMutability": "nonpayable",
1466
+ "type": "function"
1467
+ },
1468
+ {
1469
+ "inputs": [
1470
+ {
1471
+ "internalType": "uint256[]",
1472
+ "name": "tokenIds",
1473
+ "type": "uint256[]"
1474
+ },
1475
+ {
1476
+ "internalType": "bool[]",
1477
+ "name": "isLockeds",
1478
+ "type": "bool[]"
1479
+ }
1480
+ ],
1481
+ "name": "setAdminLockedMultiple",
1482
+ "outputs": [],
1483
+ "stateMutability": "nonpayable",
1484
+ "type": "function"
1485
+ },
1486
+ {
1487
+ "inputs": [
1488
+ {
1489
+ "internalType": "address",
1490
+ "name": "operator",
1491
+ "type": "address"
1492
+ },
1493
+ {
1494
+ "internalType": "bool",
1495
+ "name": "approved",
1496
+ "type": "bool"
1497
+ }
1498
+ ],
1499
+ "name": "setApprovalForAll",
1500
+ "outputs": [],
1501
+ "stateMutability": "nonpayable",
1502
+ "type": "function"
1503
+ },
1504
+ {
1505
+ "inputs": [
1506
+ {
1507
+ "internalType": "string",
1508
+ "name": "baseURI",
1509
+ "type": "string"
1510
+ }
1511
+ ],
1512
+ "name": "setBaseURI",
1513
+ "outputs": [],
1514
+ "stateMutability": "nonpayable",
1515
+ "type": "function"
1516
+ },
1517
+ {
1518
+ "inputs": [
1519
+ {
1520
+ "internalType": "enum TransferSecurityLevels",
1521
+ "name": "level",
1522
+ "type": "uint8"
1523
+ },
1524
+ {
1525
+ "internalType": "uint120",
1526
+ "name": "operatorWhitelistId",
1527
+ "type": "uint120"
1528
+ },
1529
+ {
1530
+ "internalType": "uint120",
1531
+ "name": "permittedContractReceiversAllowlistId",
1532
+ "type": "uint120"
1533
+ }
1534
+ ],
1535
+ "name": "setToCustomSecurityPolicy",
1536
+ "outputs": [],
1537
+ "stateMutability": "nonpayable",
1538
+ "type": "function"
1539
+ },
1540
+ {
1541
+ "inputs": [
1542
+ {
1543
+ "internalType": "address",
1544
+ "name": "validator",
1545
+ "type": "address"
1546
+ },
1547
+ {
1548
+ "internalType": "enum TransferSecurityLevels",
1549
+ "name": "level",
1550
+ "type": "uint8"
1551
+ },
1552
+ {
1553
+ "internalType": "uint120",
1554
+ "name": "operatorWhitelistId",
1555
+ "type": "uint120"
1556
+ },
1557
+ {
1558
+ "internalType": "uint120",
1559
+ "name": "permittedContractReceiversAllowlistId",
1560
+ "type": "uint120"
1561
+ }
1562
+ ],
1563
+ "name": "setToCustomValidatorAndSecurityPolicy",
1564
+ "outputs": [],
1565
+ "stateMutability": "nonpayable",
1566
+ "type": "function"
1567
+ },
1568
+ {
1569
+ "inputs": [],
1570
+ "name": "setToDefaultSecurityPolicy",
1571
+ "outputs": [],
1572
+ "stateMutability": "nonpayable",
1573
+ "type": "function"
1574
+ },
1575
+ {
1576
+ "inputs": [
1577
+ {
1578
+ "internalType": "uint256[]",
1579
+ "name": "tokenIds",
1580
+ "type": "uint256[]"
1581
+ },
1582
+ {
1583
+ "internalType": "bool",
1584
+ "name": "setStake",
1585
+ "type": "bool"
1586
+ }
1587
+ ],
1588
+ "name": "setTokensStakeStatus",
1589
+ "outputs": [],
1590
+ "stateMutability": "payable",
1591
+ "type": "function"
1592
+ },
1593
+ {
1594
+ "inputs": [
1595
+ {
1596
+ "internalType": "address",
1597
+ "name": "transferValidator_",
1598
+ "type": "address"
1599
+ }
1600
+ ],
1601
+ "name": "setTransferValidator",
1602
+ "outputs": [],
1603
+ "stateMutability": "nonpayable",
1604
+ "type": "function"
1605
+ },
1606
+ {
1607
+ "inputs": [
1608
+ {
1609
+ "internalType": "address",
1610
+ "name": "guardianAddress",
1611
+ "type": "address"
1612
+ },
1613
+ {
1614
+ "internalType": "uint256",
1615
+ "name": "_tokenIdOrUpIsMNPL",
1616
+ "type": "uint256"
1617
+ },
1618
+ {
1619
+ "internalType": "uint256",
1620
+ "name": "_unlockPrice",
1621
+ "type": "uint256"
1622
+ }
1623
+ ],
1624
+ "name": "setupGuardianAndMNPL",
1625
+ "outputs": [],
1626
+ "stateMutability": "nonpayable",
1627
+ "type": "function"
1628
+ },
1629
+ {
1630
+ "inputs": [
1631
+ {
1632
+ "internalType": "bool",
1633
+ "name": "b",
1634
+ "type": "bool"
1635
+ },
1636
+ {
1637
+ "internalType": "uint256",
1638
+ "name": "price",
1639
+ "type": "uint256"
1640
+ }
1641
+ ],
1642
+ "name": "setupStaking",
1643
+ "outputs": [],
1644
+ "stateMutability": "nonpayable",
1645
+ "type": "function"
1646
+ },
1647
+ {
1648
+ "inputs": [],
1649
+ "name": "stakePrice",
1650
+ "outputs": [
1651
+ {
1652
+ "internalType": "uint256",
1653
+ "name": "",
1654
+ "type": "uint256"
1655
+ }
1656
+ ],
1657
+ "stateMutability": "view",
1658
+ "type": "function"
1659
+ },
1660
+ {
1661
+ "inputs": [
1662
+ {
1663
+ "internalType": "bytes4",
1664
+ "name": "interfaceId",
1665
+ "type": "bytes4"
1666
+ }
1667
+ ],
1668
+ "name": "supportsInterface",
1669
+ "outputs": [
1670
+ {
1671
+ "internalType": "bool",
1672
+ "name": "",
1673
+ "type": "bool"
1674
+ }
1675
+ ],
1676
+ "stateMutability": "view",
1677
+ "type": "function"
1678
+ },
1679
+ {
1680
+ "inputs": [],
1681
+ "name": "symbol",
1682
+ "outputs": [
1683
+ {
1684
+ "internalType": "string",
1685
+ "name": "",
1686
+ "type": "string"
1687
+ }
1688
+ ],
1689
+ "stateMutability": "view",
1690
+ "type": "function"
1691
+ },
1692
+ {
1693
+ "inputs": [],
1694
+ "name": "tokenIdOrUpIsMNPL",
1695
+ "outputs": [
1696
+ {
1697
+ "internalType": "uint256",
1698
+ "name": "",
1699
+ "type": "uint256"
1700
+ }
1701
+ ],
1702
+ "stateMutability": "view",
1703
+ "type": "function"
1704
+ },
1705
+ {
1706
+ "inputs": [
1707
+ {
1708
+ "internalType": "uint256",
1709
+ "name": "tokenId",
1710
+ "type": "uint256"
1711
+ }
1712
+ ],
1713
+ "name": "tokenURI",
1714
+ "outputs": [
1715
+ {
1716
+ "internalType": "string",
1717
+ "name": "",
1718
+ "type": "string"
1719
+ }
1720
+ ],
1721
+ "stateMutability": "view",
1722
+ "type": "function"
1723
+ },
1724
+ {
1725
+ "inputs": [
1726
+ {
1727
+ "internalType": "uint256",
1728
+ "name": "",
1729
+ "type": "uint256"
1730
+ }
1731
+ ],
1732
+ "name": "tokensLastStakedAt",
1733
+ "outputs": [
1734
+ {
1735
+ "internalType": "uint256",
1736
+ "name": "",
1737
+ "type": "uint256"
1738
+ }
1739
+ ],
1740
+ "stateMutability": "view",
1741
+ "type": "function"
1742
+ },
1743
+ {
1744
+ "inputs": [
1745
+ {
1746
+ "internalType": "uint256[]",
1747
+ "name": "tokenIds",
1748
+ "type": "uint256[]"
1749
+ }
1750
+ ],
1751
+ "name": "tokensLastStakedAtMultiple",
1752
+ "outputs": [
1753
+ {
1754
+ "internalType": "uint256[]",
1755
+ "name": "",
1756
+ "type": "uint256[]"
1757
+ }
1758
+ ],
1759
+ "stateMutability": "view",
1760
+ "type": "function"
1761
+ },
1762
+ {
1763
+ "inputs": [
1764
+ {
1765
+ "internalType": "address",
1766
+ "name": "owner",
1767
+ "type": "address"
1768
+ }
1769
+ ],
1770
+ "name": "tokensOfOwner",
1771
+ "outputs": [
1772
+ {
1773
+ "internalType": "uint256[]",
1774
+ "name": "",
1775
+ "type": "uint256[]"
1776
+ }
1777
+ ],
1778
+ "stateMutability": "view",
1779
+ "type": "function"
1780
+ },
1781
+ {
1782
+ "inputs": [
1783
+ {
1784
+ "internalType": "address",
1785
+ "name": "owner",
1786
+ "type": "address"
1787
+ },
1788
+ {
1789
+ "internalType": "uint256",
1790
+ "name": "start",
1791
+ "type": "uint256"
1792
+ },
1793
+ {
1794
+ "internalType": "uint256",
1795
+ "name": "stop",
1796
+ "type": "uint256"
1797
+ }
1798
+ ],
1799
+ "name": "tokensOfOwnerIn",
1800
+ "outputs": [
1801
+ {
1802
+ "internalType": "uint256[]",
1803
+ "name": "",
1804
+ "type": "uint256[]"
1805
+ }
1806
+ ],
1807
+ "stateMutability": "view",
1808
+ "type": "function"
1809
+ },
1810
+ {
1811
+ "inputs": [],
1812
+ "name": "totalSupply",
1813
+ "outputs": [
1814
+ {
1815
+ "internalType": "uint256",
1816
+ "name": "",
1817
+ "type": "uint256"
1818
+ }
1819
+ ],
1820
+ "stateMutability": "view",
1821
+ "type": "function"
1822
+ },
1823
+ {
1824
+ "inputs": [
1825
+ {
1826
+ "internalType": "address",
1827
+ "name": "_from",
1828
+ "type": "address"
1829
+ },
1830
+ {
1831
+ "internalType": "address",
1832
+ "name": "_to",
1833
+ "type": "address"
1834
+ },
1835
+ {
1836
+ "internalType": "uint256",
1837
+ "name": "_tokenId",
1838
+ "type": "uint256"
1839
+ }
1840
+ ],
1841
+ "name": "transferFrom",
1842
+ "outputs": [],
1843
+ "stateMutability": "nonpayable",
1844
+ "type": "function"
1845
+ },
1846
+ {
1847
+ "inputs": [
1848
+ {
1849
+ "internalType": "address",
1850
+ "name": "newOwner",
1851
+ "type": "address"
1852
+ }
1853
+ ],
1854
+ "name": "transferOwnership",
1855
+ "outputs": [],
1856
+ "stateMutability": "nonpayable",
1857
+ "type": "function"
1858
+ },
1859
+ {
1860
+ "inputs": [
1861
+ {
1862
+ "internalType": "uint256",
1863
+ "name": "tokenId",
1864
+ "type": "uint256"
1865
+ }
1866
+ ],
1867
+ "name": "unlockAndUpgradeMNPL",
1868
+ "outputs": [],
1869
+ "stateMutability": "payable",
1870
+ "type": "function"
1871
+ },
1872
+ {
1873
+ "inputs": [
1874
+ {
1875
+ "internalType": "uint256",
1876
+ "name": "_id",
1877
+ "type": "uint256"
1878
+ }
1879
+ ],
1880
+ "name": "unlockId",
1881
+ "outputs": [],
1882
+ "stateMutability": "nonpayable",
1883
+ "type": "function"
1884
+ },
1885
+ {
1886
+ "inputs": [],
1887
+ "name": "unlockPrice",
1888
+ "outputs": [
1889
+ {
1890
+ "internalType": "uint256",
1891
+ "name": "",
1892
+ "type": "uint256"
1893
+ }
1894
+ ],
1895
+ "stateMutability": "view",
1896
+ "type": "function"
1897
+ },
1898
+ {
1899
+ "inputs": [
1900
+ {
1901
+ "internalType": "address[]",
1902
+ "name": "_contracts",
1903
+ "type": "address[]"
1904
+ },
1905
+ {
1906
+ "internalType": "bool[]",
1907
+ "name": "_values",
1908
+ "type": "bool[]"
1909
+ }
1910
+ ],
1911
+ "name": "updateApprovedContracts",
1912
+ "outputs": [],
1913
+ "stateMutability": "nonpayable",
1914
+ "type": "function"
1915
+ },
1916
+ {
1917
+ "inputs": [],
1918
+ "name": "upgradePrice",
1919
+ "outputs": [
1920
+ {
1921
+ "internalType": "uint256",
1922
+ "name": "",
1923
+ "type": "uint256"
1924
+ }
1925
+ ],
1926
+ "stateMutability": "view",
1927
+ "type": "function"
1928
+ },
1929
+ {
1930
+ "inputs": [
1931
+ {
1932
+ "internalType": "address[]",
1933
+ "name": "markets",
1934
+ "type": "address[]"
1935
+ },
1936
+ {
1937
+ "internalType": "bool",
1938
+ "name": "whitelisted",
1939
+ "type": "bool"
1940
+ }
1941
+ ],
1942
+ "name": "whitelistMarketplaces",
1943
+ "outputs": [],
1944
+ "stateMutability": "nonpayable",
1945
+ "type": "function"
1946
+ },
1947
+ {
1948
+ "inputs": [
1949
+ {
1950
+ "internalType": "address",
1951
+ "name": "",
1952
+ "type": "address"
1953
+ }
1954
+ ],
1955
+ "name": "whitelistedMarketplaces",
1956
+ "outputs": [
1957
+ {
1958
+ "internalType": "bool",
1959
+ "name": "",
1960
+ "type": "bool"
1961
+ }
1962
+ ],
1963
+ "stateMutability": "view",
1964
+ "type": "function"
1965
+ },
1966
+ {
1967
+ "inputs": [],
1968
+ "name": "withdrawSales",
1969
+ "outputs": [],
1970
+ "stateMutability": "nonpayable",
1971
+ "type": "function"
1972
+ }
1973
+ ];
1974
+ /**
1975
+ * Yogapetz Contract Class
1976
+ *
1977
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
1978
+ *
1979
+ * @example
1980
+ * ```typescript
1981
+ * import { createPublicClient, createWalletClient, http } from 'viem';
1982
+ * import { mainnet } from 'viem/chains';
1983
+ * import { Yogapetz } from 'Yogapetz';
1984
+ *
1985
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
1986
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
1987
+ *
1988
+ * const contract = new Yogapetz('0x...', { publicClient, walletClient });
1989
+ *
1990
+ * // Read functions
1991
+ * const result = await contract.balanceOf('0x...');
1992
+ *
1993
+ * // Write functions
1994
+ * const hash = await contract.transfer('0x...', 1000n);
1995
+ *
1996
+ * // Simulate transactions (dry-run)
1997
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
1998
+ * console.log('Gas estimate:', simulation.request.gas);
1999
+ *
2000
+ * // Watch events
2001
+ * const unwatch = contract.watch.Transfer((event) => {
2002
+ * console.log('Transfer event:', event);
2003
+ * });
2004
+ * ```
2005
+ */
2006
+ class Yogapetz {
2007
+ constructor(address, clients) {
2008
+ this.contractAddress = address;
2009
+ this.publicClient = clients.publicClient;
2010
+ this.contract = (0, viem_1.getContract)({
2011
+ address,
2012
+ abi: exports.YogapetzAbi,
2013
+ client: {
2014
+ public: clients.publicClient,
2015
+ wallet: clients.walletClient,
2016
+ },
2017
+ });
2018
+ }
2019
+ /**
2020
+ * Get the contract address
2021
+ */
2022
+ get address() {
2023
+ return this.contractAddress;
2024
+ }
2025
+ /**
2026
+ * Get the underlying viem contract instance.
2027
+ */
2028
+ getContract() {
2029
+ return this.contract;
2030
+ }
2031
+ /**
2032
+ * DEFAULT_OPERATOR_WHITELIST_ID
2033
+ * view
2034
+ */
2035
+ async DEFAULT_OPERATOR_WHITELIST_ID() {
2036
+ return this.contract.read.DEFAULT_OPERATOR_WHITELIST_ID();
2037
+ }
2038
+ /**
2039
+ * DEFAULT_TRANSFER_SECURITY_LEVEL
2040
+ * view
2041
+ */
2042
+ async DEFAULT_TRANSFER_SECURITY_LEVEL() {
2043
+ return this.contract.read.DEFAULT_TRANSFER_SECURITY_LEVEL();
2044
+ }
2045
+ /**
2046
+ * DEFAULT_TRANSFER_VALIDATOR
2047
+ * view
2048
+ */
2049
+ async DEFAULT_TRANSFER_VALIDATOR() {
2050
+ return this.contract.read.DEFAULT_TRANSFER_VALIDATOR();
2051
+ }
2052
+ /**
2053
+ * MAX_SUPPLY
2054
+ * view
2055
+ */
2056
+ async MAX_SUPPLY() {
2057
+ return this.contract.read.MAX_SUPPLY();
2058
+ }
2059
+ /**
2060
+ * adminLocked
2061
+ * view
2062
+ */
2063
+ async adminLocked(arg0) {
2064
+ return this.contract.read.adminLocked([arg0]);
2065
+ }
2066
+ /**
2067
+ * approvedContract
2068
+ * view
2069
+ */
2070
+ async approvedContract(arg0) {
2071
+ return this.contract.read.approvedContract([arg0]);
2072
+ }
2073
+ /**
2074
+ * balanceOf
2075
+ * view
2076
+ */
2077
+ async balanceOf(owner) {
2078
+ return this.contract.read.balanceOf([owner]);
2079
+ }
2080
+ /**
2081
+ * baseTokenURI
2082
+ * view
2083
+ */
2084
+ async baseTokenURI() {
2085
+ return this.contract.read.baseTokenURI();
2086
+ }
2087
+ /**
2088
+ * bio
2089
+ * view
2090
+ */
2091
+ async bio(arg0) {
2092
+ return this.contract.read.bio([arg0]);
2093
+ }
2094
+ /**
2095
+ * canStake
2096
+ * view
2097
+ */
2098
+ async canStake() {
2099
+ return this.contract.read.canStake();
2100
+ }
2101
+ /**
2102
+ * exemptedMarketplaces
2103
+ * view
2104
+ */
2105
+ async exemptedMarketplaces(arg0) {
2106
+ return this.contract.read.exemptedMarketplaces([arg0]);
2107
+ }
2108
+ /**
2109
+ * explicitOwnershipOf
2110
+ * view
2111
+ */
2112
+ async explicitOwnershipOf(tokenId) {
2113
+ return this.contract.read.explicitOwnershipOf([tokenId]);
2114
+ }
2115
+ /**
2116
+ * explicitOwnershipsOf
2117
+ * view
2118
+ */
2119
+ async explicitOwnershipsOf(tokenIds) {
2120
+ return this.contract.read.explicitOwnershipsOf([tokenIds]);
2121
+ }
2122
+ /**
2123
+ * getApproved
2124
+ * view
2125
+ */
2126
+ async getApproved(tokenId) {
2127
+ return this.contract.read.getApproved([tokenId]);
2128
+ }
2129
+ /**
2130
+ * getPermittedContractReceivers
2131
+ * view
2132
+ */
2133
+ async getPermittedContractReceivers() {
2134
+ return this.contract.read.getPermittedContractReceivers();
2135
+ }
2136
+ /**
2137
+ * getSecurityPolicy
2138
+ * view
2139
+ */
2140
+ async getSecurityPolicy() {
2141
+ return this.contract.read.getSecurityPolicy();
2142
+ }
2143
+ /**
2144
+ * getTier
2145
+ * view
2146
+ */
2147
+ async getTier(tokenId) {
2148
+ return this.contract.read.getTier([tokenId]);
2149
+ }
2150
+ /**
2151
+ * getTierMultiple
2152
+ * view
2153
+ */
2154
+ async getTierMultiple(tokenIds) {
2155
+ return this.contract.read.getTierMultiple([tokenIds]);
2156
+ }
2157
+ /**
2158
+ * getTransferValidator
2159
+ * view
2160
+ */
2161
+ async getTransferValidator() {
2162
+ return this.contract.read.getTransferValidator();
2163
+ }
2164
+ /**
2165
+ * getWhitelistedOperators
2166
+ * view
2167
+ */
2168
+ async getWhitelistedOperators() {
2169
+ return this.contract.read.getWhitelistedOperators();
2170
+ }
2171
+ /**
2172
+ * guardianContract
2173
+ * view
2174
+ */
2175
+ async guardianContract() {
2176
+ return this.contract.read.guardianContract();
2177
+ }
2178
+ /**
2179
+ * isAdminLocked
2180
+ * view
2181
+ */
2182
+ async isAdminLocked(tokenId) {
2183
+ return this.contract.read.isAdminLocked([tokenId]);
2184
+ }
2185
+ /**
2186
+ * isApprovedForAll
2187
+ * view
2188
+ */
2189
+ async isApprovedForAll(tokenOwner, operator) {
2190
+ return this.contract.read.isApprovedForAll([tokenOwner, operator]);
2191
+ }
2192
+ /**
2193
+ * isContractReceiverPermitted
2194
+ * view
2195
+ */
2196
+ async isContractReceiverPermitted(receiver) {
2197
+ return this.contract.read.isContractReceiverPermitted([receiver]);
2198
+ }
2199
+ /**
2200
+ * isMNPLTransferLocked
2201
+ * view
2202
+ */
2203
+ async isMNPLTransferLocked(tokenId) {
2204
+ return this.contract.read.isMNPLTransferLocked([tokenId]);
2205
+ }
2206
+ /**
2207
+ * isOperatorWhitelisted
2208
+ * view
2209
+ */
2210
+ async isOperatorWhitelisted(operator) {
2211
+ return this.contract.read.isOperatorWhitelisted([operator]);
2212
+ }
2213
+ /**
2214
+ * isOriginallyMNPL
2215
+ * view
2216
+ */
2217
+ async isOriginallyMNPL(tokenId) {
2218
+ return this.contract.read.isOriginallyMNPL([tokenId]);
2219
+ }
2220
+ /**
2221
+ * isTransferAllowed
2222
+ * view
2223
+ */
2224
+ async isTransferAllowed(caller, from, to) {
2225
+ return this.contract.read.isTransferAllowed([caller, from, to]);
2226
+ }
2227
+ /**
2228
+ * isUnlocked
2229
+ * view
2230
+ */
2231
+ async isUnlocked(_id) {
2232
+ return this.contract.read.isUnlocked([_id]);
2233
+ }
2234
+ /**
2235
+ * isUnlockedMultiple
2236
+ * view
2237
+ */
2238
+ async isUnlockedMultiple(tokenIds) {
2239
+ return this.contract.read.isUnlockedMultiple([tokenIds]);
2240
+ }
2241
+ /**
2242
+ * lockCount
2243
+ * view
2244
+ */
2245
+ async lockCount(arg0) {
2246
+ return this.contract.read.lockCount([arg0]);
2247
+ }
2248
+ /**
2249
+ * lockMap
2250
+ * view
2251
+ */
2252
+ async lockMap(arg0, arg1) {
2253
+ return this.contract.read.lockMap([arg0, arg1]);
2254
+ }
2255
+ /**
2256
+ * lockMapIndex
2257
+ * view
2258
+ */
2259
+ async lockMapIndex(arg0, arg1) {
2260
+ return this.contract.read.lockMapIndex([arg0, arg1]);
2261
+ }
2262
+ /**
2263
+ * mnplUnlocked
2264
+ * view
2265
+ */
2266
+ async mnplUnlocked(arg0) {
2267
+ return this.contract.read.mnplUnlocked([arg0]);
2268
+ }
2269
+ /**
2270
+ * mnplUpgraded
2271
+ * view
2272
+ */
2273
+ async mnplUpgraded(arg0) {
2274
+ return this.contract.read.mnplUpgraded([arg0]);
2275
+ }
2276
+ /**
2277
+ * name
2278
+ * view
2279
+ */
2280
+ async name() {
2281
+ return this.contract.read.name();
2282
+ }
2283
+ /**
2284
+ * owner
2285
+ * view
2286
+ */
2287
+ async owner() {
2288
+ return this.contract.read.owner();
2289
+ }
2290
+ /**
2291
+ * ownerOf
2292
+ * view
2293
+ */
2294
+ async ownerOf(tokenId) {
2295
+ return this.contract.read.ownerOf([tokenId]);
2296
+ }
2297
+ /**
2298
+ * ownerOfMultiple
2299
+ * view
2300
+ */
2301
+ async ownerOfMultiple(tokenIds) {
2302
+ return this.contract.read.ownerOfMultiple([tokenIds]);
2303
+ }
2304
+ /**
2305
+ * stakePrice
2306
+ * view
2307
+ */
2308
+ async stakePrice() {
2309
+ return this.contract.read.stakePrice();
2310
+ }
2311
+ /**
2312
+ * supportsInterface
2313
+ * view
2314
+ */
2315
+ async supportsInterface(interfaceId) {
2316
+ return this.contract.read.supportsInterface([interfaceId]);
2317
+ }
2318
+ /**
2319
+ * symbol
2320
+ * view
2321
+ */
2322
+ async symbol() {
2323
+ return this.contract.read.symbol();
2324
+ }
2325
+ /**
2326
+ * tokenIdOrUpIsMNPL
2327
+ * view
2328
+ */
2329
+ async tokenIdOrUpIsMNPL() {
2330
+ return this.contract.read.tokenIdOrUpIsMNPL();
2331
+ }
2332
+ /**
2333
+ * tokenURI
2334
+ * view
2335
+ */
2336
+ async tokenURI(tokenId) {
2337
+ return this.contract.read.tokenURI([tokenId]);
2338
+ }
2339
+ /**
2340
+ * tokensLastStakedAt
2341
+ * view
2342
+ */
2343
+ async tokensLastStakedAt(arg0) {
2344
+ return this.contract.read.tokensLastStakedAt([arg0]);
2345
+ }
2346
+ /**
2347
+ * tokensLastStakedAtMultiple
2348
+ * view
2349
+ */
2350
+ async tokensLastStakedAtMultiple(tokenIds) {
2351
+ return this.contract.read.tokensLastStakedAtMultiple([tokenIds]);
2352
+ }
2353
+ /**
2354
+ * tokensOfOwner
2355
+ * view
2356
+ */
2357
+ async tokensOfOwner(owner) {
2358
+ return this.contract.read.tokensOfOwner([owner]);
2359
+ }
2360
+ /**
2361
+ * tokensOfOwnerIn
2362
+ * view
2363
+ */
2364
+ async tokensOfOwnerIn(owner, start, stop) {
2365
+ return this.contract.read.tokensOfOwnerIn([owner, start, stop]);
2366
+ }
2367
+ /**
2368
+ * totalSupply
2369
+ * view
2370
+ */
2371
+ async totalSupply() {
2372
+ return this.contract.read.totalSupply();
2373
+ }
2374
+ /**
2375
+ * unlockPrice
2376
+ * view
2377
+ */
2378
+ async unlockPrice() {
2379
+ return this.contract.read.unlockPrice();
2380
+ }
2381
+ /**
2382
+ * upgradePrice
2383
+ * view
2384
+ */
2385
+ async upgradePrice() {
2386
+ return this.contract.read.upgradePrice();
2387
+ }
2388
+ /**
2389
+ * whitelistedMarketplaces
2390
+ * view
2391
+ */
2392
+ async whitelistedMarketplaces(arg0) {
2393
+ return this.contract.read.whitelistedMarketplaces([arg0]);
2394
+ }
2395
+ /**
2396
+ * __DefaultOperatorFilterer_init
2397
+ * nonpayable
2398
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2399
+ */
2400
+ async __DefaultOperatorFilterer_init(options) {
2401
+ if (!this.contract.write) {
2402
+ throw new Error('Wallet client is required for write operations');
2403
+ }
2404
+ return this.contract.write.__DefaultOperatorFilterer_init(options);
2405
+ }
2406
+ /**
2407
+ * __OperatorFilterer_init
2408
+ * nonpayable
2409
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2410
+ */
2411
+ async __OperatorFilterer_init(subscriptionOrRegistrantToCopy, subscribe, options) {
2412
+ if (!this.contract.write) {
2413
+ throw new Error('Wallet client is required for write operations');
2414
+ }
2415
+ return this.contract.write.__OperatorFilterer_init([subscriptionOrRegistrantToCopy, subscribe], options);
2416
+ }
2417
+ /**
2418
+ * airdropListWithAmounts
2419
+ * nonpayable
2420
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2421
+ */
2422
+ async airdropListWithAmounts(receivers, amounts, options) {
2423
+ if (!this.contract.write) {
2424
+ throw new Error('Wallet client is required for write operations');
2425
+ }
2426
+ return this.contract.write.airdropListWithAmounts([receivers, amounts], options);
2427
+ }
2428
+ /**
2429
+ * approve
2430
+ * nonpayable
2431
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2432
+ */
2433
+ async approve(to, tokenId, options) {
2434
+ if (!this.contract.write) {
2435
+ throw new Error('Wallet client is required for write operations');
2436
+ }
2437
+ return this.contract.write.approve([to, tokenId], options);
2438
+ }
2439
+ /**
2440
+ * confiscateT2
2441
+ * nonpayable
2442
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2443
+ */
2444
+ async confiscateT2(t2TokenIds, options) {
2445
+ if (!this.contract.write) {
2446
+ throw new Error('Wallet client is required for write operations');
2447
+ }
2448
+ return this.contract.write.confiscateT2([t2TokenIds], options);
2449
+ }
2450
+ /**
2451
+ * exemptMarketplaces
2452
+ * nonpayable
2453
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2454
+ */
2455
+ async exemptMarketplaces(markets, exempted, options) {
2456
+ if (!this.contract.write) {
2457
+ throw new Error('Wallet client is required for write operations');
2458
+ }
2459
+ return this.contract.write.exemptMarketplaces([markets, exempted], options);
2460
+ }
2461
+ /**
2462
+ * freeId
2463
+ * nonpayable
2464
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2465
+ */
2466
+ async freeId(_id, _contract, options) {
2467
+ if (!this.contract.write) {
2468
+ throw new Error('Wallet client is required for write operations');
2469
+ }
2470
+ return this.contract.write.freeId([_id, _contract], options);
2471
+ }
2472
+ /**
2473
+ * initialize
2474
+ * nonpayable
2475
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2476
+ */
2477
+ async initialize(baseURI, options) {
2478
+ if (!this.contract.write) {
2479
+ throw new Error('Wallet client is required for write operations');
2480
+ }
2481
+ return this.contract.write.initialize([baseURI], options);
2482
+ }
2483
+ /**
2484
+ * initializeV3
2485
+ * nonpayable
2486
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2487
+ */
2488
+ async initializeV3(options) {
2489
+ if (!this.contract.write) {
2490
+ throw new Error('Wallet client is required for write operations');
2491
+ }
2492
+ return this.contract.write.initializeV3(options);
2493
+ }
2494
+ /**
2495
+ * keepTOLTransferFrom
2496
+ * nonpayable
2497
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2498
+ */
2499
+ async keepTOLTransferFrom(from, to, tokenId, options) {
2500
+ if (!this.contract.write) {
2501
+ throw new Error('Wallet client is required for write operations');
2502
+ }
2503
+ return this.contract.write.keepTOLTransferFrom([from, to, tokenId], options);
2504
+ }
2505
+ /**
2506
+ * lockId
2507
+ * nonpayable
2508
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2509
+ */
2510
+ async lockId(_id, options) {
2511
+ if (!this.contract.write) {
2512
+ throw new Error('Wallet client is required for write operations');
2513
+ }
2514
+ return this.contract.write.lockId([_id], options);
2515
+ }
2516
+ /**
2517
+ * payRoyalty
2518
+ * payable
2519
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2520
+ */
2521
+ async payRoyalty(tokenId, options) {
2522
+ if (!this.contract.write) {
2523
+ throw new Error('Wallet client is required for write operations');
2524
+ }
2525
+ return this.contract.write.payRoyalty([tokenId], options);
2526
+ }
2527
+ /**
2528
+ * renounceOwnership
2529
+ * nonpayable
2530
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2531
+ */
2532
+ async renounceOwnership(options) {
2533
+ if (!this.contract.write) {
2534
+ throw new Error('Wallet client is required for write operations');
2535
+ }
2536
+ return this.contract.write.renounceOwnership(options);
2537
+ }
2538
+ async safeTransferFrom(...args) {
2539
+ if (!this.contract.write) {
2540
+ throw new Error('Wallet client is required for write operations');
2541
+ }
2542
+ return this.contract.write.safeTransferFrom(args);
2543
+ }
2544
+ /**
2545
+ * setAdminLocked
2546
+ * nonpayable
2547
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2548
+ */
2549
+ async setAdminLocked(tokenId, isLocked, options) {
2550
+ if (!this.contract.write) {
2551
+ throw new Error('Wallet client is required for write operations');
2552
+ }
2553
+ return this.contract.write.setAdminLocked([tokenId, isLocked], options);
2554
+ }
2555
+ /**
2556
+ * setAdminLockedMultiple
2557
+ * nonpayable
2558
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2559
+ */
2560
+ async setAdminLockedMultiple(tokenIds, isLockeds, options) {
2561
+ if (!this.contract.write) {
2562
+ throw new Error('Wallet client is required for write operations');
2563
+ }
2564
+ return this.contract.write.setAdminLockedMultiple([tokenIds, isLockeds], options);
2565
+ }
2566
+ /**
2567
+ * setApprovalForAll
2568
+ * nonpayable
2569
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2570
+ */
2571
+ async setApprovalForAll(operator, approved, options) {
2572
+ if (!this.contract.write) {
2573
+ throw new Error('Wallet client is required for write operations');
2574
+ }
2575
+ return this.contract.write.setApprovalForAll([operator, approved], options);
2576
+ }
2577
+ /**
2578
+ * setBaseURI
2579
+ * nonpayable
2580
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2581
+ */
2582
+ async setBaseURI(baseURI, options) {
2583
+ if (!this.contract.write) {
2584
+ throw new Error('Wallet client is required for write operations');
2585
+ }
2586
+ return this.contract.write.setBaseURI([baseURI], options);
2587
+ }
2588
+ /**
2589
+ * setToCustomSecurityPolicy
2590
+ * nonpayable
2591
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2592
+ */
2593
+ async setToCustomSecurityPolicy(level, operatorWhitelistId, permittedContractReceiversAllowlistId, options) {
2594
+ if (!this.contract.write) {
2595
+ throw new Error('Wallet client is required for write operations');
2596
+ }
2597
+ return this.contract.write.setToCustomSecurityPolicy([level, operatorWhitelistId, permittedContractReceiversAllowlistId], options);
2598
+ }
2599
+ /**
2600
+ * setToCustomValidatorAndSecurityPolicy
2601
+ * nonpayable
2602
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2603
+ */
2604
+ async setToCustomValidatorAndSecurityPolicy(validator, level, operatorWhitelistId, permittedContractReceiversAllowlistId, options) {
2605
+ if (!this.contract.write) {
2606
+ throw new Error('Wallet client is required for write operations');
2607
+ }
2608
+ return this.contract.write.setToCustomValidatorAndSecurityPolicy([validator, level, operatorWhitelistId, permittedContractReceiversAllowlistId], options);
2609
+ }
2610
+ /**
2611
+ * setToDefaultSecurityPolicy
2612
+ * nonpayable
2613
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2614
+ */
2615
+ async setToDefaultSecurityPolicy(options) {
2616
+ if (!this.contract.write) {
2617
+ throw new Error('Wallet client is required for write operations');
2618
+ }
2619
+ return this.contract.write.setToDefaultSecurityPolicy(options);
2620
+ }
2621
+ /**
2622
+ * setTokensStakeStatus
2623
+ * payable
2624
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2625
+ */
2626
+ async setTokensStakeStatus(tokenIds, setStake, options) {
2627
+ if (!this.contract.write) {
2628
+ throw new Error('Wallet client is required for write operations');
2629
+ }
2630
+ return this.contract.write.setTokensStakeStatus([tokenIds, setStake], options);
2631
+ }
2632
+ /**
2633
+ * setTransferValidator
2634
+ * nonpayable
2635
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2636
+ */
2637
+ async setTransferValidator(transferValidator_, options) {
2638
+ if (!this.contract.write) {
2639
+ throw new Error('Wallet client is required for write operations');
2640
+ }
2641
+ return this.contract.write.setTransferValidator([transferValidator_], options);
2642
+ }
2643
+ /**
2644
+ * setupGuardianAndMNPL
2645
+ * nonpayable
2646
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2647
+ */
2648
+ async setupGuardianAndMNPL(guardianAddress, _tokenIdOrUpIsMNPL, _unlockPrice, options) {
2649
+ if (!this.contract.write) {
2650
+ throw new Error('Wallet client is required for write operations');
2651
+ }
2652
+ return this.contract.write.setupGuardianAndMNPL([guardianAddress, _tokenIdOrUpIsMNPL, _unlockPrice], options);
2653
+ }
2654
+ /**
2655
+ * setupStaking
2656
+ * nonpayable
2657
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2658
+ */
2659
+ async setupStaking(b, price, options) {
2660
+ if (!this.contract.write) {
2661
+ throw new Error('Wallet client is required for write operations');
2662
+ }
2663
+ return this.contract.write.setupStaking([b, price], options);
2664
+ }
2665
+ /**
2666
+ * transferFrom
2667
+ * nonpayable
2668
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2669
+ */
2670
+ async transferFrom(_from, _to, _tokenId, options) {
2671
+ if (!this.contract.write) {
2672
+ throw new Error('Wallet client is required for write operations');
2673
+ }
2674
+ return this.contract.write.transferFrom([_from, _to, _tokenId], options);
2675
+ }
2676
+ /**
2677
+ * transferOwnership
2678
+ * nonpayable
2679
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2680
+ */
2681
+ async transferOwnership(newOwner, options) {
2682
+ if (!this.contract.write) {
2683
+ throw new Error('Wallet client is required for write operations');
2684
+ }
2685
+ return this.contract.write.transferOwnership([newOwner], options);
2686
+ }
2687
+ /**
2688
+ * unlockAndUpgradeMNPL
2689
+ * payable
2690
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2691
+ */
2692
+ async unlockAndUpgradeMNPL(tokenId, options) {
2693
+ if (!this.contract.write) {
2694
+ throw new Error('Wallet client is required for write operations');
2695
+ }
2696
+ return this.contract.write.unlockAndUpgradeMNPL([tokenId], options);
2697
+ }
2698
+ /**
2699
+ * unlockId
2700
+ * nonpayable
2701
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2702
+ */
2703
+ async unlockId(_id, options) {
2704
+ if (!this.contract.write) {
2705
+ throw new Error('Wallet client is required for write operations');
2706
+ }
2707
+ return this.contract.write.unlockId([_id], options);
2708
+ }
2709
+ /**
2710
+ * updateApprovedContracts
2711
+ * nonpayable
2712
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2713
+ */
2714
+ async updateApprovedContracts(_contracts, _values, options) {
2715
+ if (!this.contract.write) {
2716
+ throw new Error('Wallet client is required for write operations');
2717
+ }
2718
+ return this.contract.write.updateApprovedContracts([_contracts, _values], options);
2719
+ }
2720
+ /**
2721
+ * whitelistMarketplaces
2722
+ * nonpayable
2723
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2724
+ */
2725
+ async whitelistMarketplaces(markets, whitelisted, options) {
2726
+ if (!this.contract.write) {
2727
+ throw new Error('Wallet client is required for write operations');
2728
+ }
2729
+ return this.contract.write.whitelistMarketplaces([markets, whitelisted], options);
2730
+ }
2731
+ /**
2732
+ * withdrawSales
2733
+ * nonpayable
2734
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2735
+ */
2736
+ async withdrawSales(options) {
2737
+ if (!this.contract.write) {
2738
+ throw new Error('Wallet client is required for write operations');
2739
+ }
2740
+ return this.contract.write.withdrawSales(options);
2741
+ }
2742
+ /**
2743
+ * Simulate contract write operations (dry-run without sending transaction)
2744
+ *
2745
+ * @example
2746
+ * const result = await contract.simulate.transfer('0x...', 1000n);
2747
+ * console.log('Gas estimate:', result.request.gas);
2748
+ * console.log('Would succeed:', result.result);
2749
+ */
2750
+ get simulate() {
2751
+ const contract = this.contract;
2752
+ if (!contract.simulate) {
2753
+ throw new Error('Public client is required for simulation');
2754
+ }
2755
+ return {
2756
+ /**
2757
+ * Simulate __DefaultOperatorFilterer_init
2758
+ * Returns gas estimate and result without sending transaction
2759
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2760
+ */
2761
+ async __DefaultOperatorFilterer_init(options) {
2762
+ return contract.simulate.__DefaultOperatorFilterer_init(options);
2763
+ },
2764
+ /**
2765
+ * Simulate __OperatorFilterer_init
2766
+ * Returns gas estimate and result without sending transaction
2767
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2768
+ */
2769
+ async __OperatorFilterer_init(subscriptionOrRegistrantToCopy, subscribe, options) {
2770
+ return contract.simulate.__OperatorFilterer_init([subscriptionOrRegistrantToCopy, subscribe], options);
2771
+ },
2772
+ /**
2773
+ * Simulate airdropListWithAmounts
2774
+ * Returns gas estimate and result without sending transaction
2775
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2776
+ */
2777
+ async airdropListWithAmounts(receivers, amounts, options) {
2778
+ return contract.simulate.airdropListWithAmounts([receivers, amounts], options);
2779
+ },
2780
+ /**
2781
+ * Simulate approve
2782
+ * Returns gas estimate and result without sending transaction
2783
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2784
+ */
2785
+ async approve(to, tokenId, options) {
2786
+ return contract.simulate.approve([to, tokenId], options);
2787
+ },
2788
+ /**
2789
+ * Simulate confiscateT2
2790
+ * Returns gas estimate and result without sending transaction
2791
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2792
+ */
2793
+ async confiscateT2(t2TokenIds, options) {
2794
+ return contract.simulate.confiscateT2([t2TokenIds], options);
2795
+ },
2796
+ /**
2797
+ * Simulate exemptMarketplaces
2798
+ * Returns gas estimate and result without sending transaction
2799
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2800
+ */
2801
+ async exemptMarketplaces(markets, exempted, options) {
2802
+ return contract.simulate.exemptMarketplaces([markets, exempted], options);
2803
+ },
2804
+ /**
2805
+ * Simulate freeId
2806
+ * Returns gas estimate and result without sending transaction
2807
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2808
+ */
2809
+ async freeId(_id, _contract, options) {
2810
+ return contract.simulate.freeId([_id, _contract], options);
2811
+ },
2812
+ /**
2813
+ * Simulate initialize
2814
+ * Returns gas estimate and result without sending transaction
2815
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2816
+ */
2817
+ async initialize(baseURI, options) {
2818
+ return contract.simulate.initialize([baseURI], options);
2819
+ },
2820
+ /**
2821
+ * Simulate initializeV3
2822
+ * Returns gas estimate and result without sending transaction
2823
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2824
+ */
2825
+ async initializeV3(options) {
2826
+ return contract.simulate.initializeV3(options);
2827
+ },
2828
+ /**
2829
+ * Simulate keepTOLTransferFrom
2830
+ * Returns gas estimate and result without sending transaction
2831
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2832
+ */
2833
+ async keepTOLTransferFrom(from, to, tokenId, options) {
2834
+ return contract.simulate.keepTOLTransferFrom([from, to, tokenId], options);
2835
+ },
2836
+ /**
2837
+ * Simulate lockId
2838
+ * Returns gas estimate and result without sending transaction
2839
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2840
+ */
2841
+ async lockId(_id, options) {
2842
+ return contract.simulate.lockId([_id], options);
2843
+ },
2844
+ /**
2845
+ * Simulate payRoyalty
2846
+ * Returns gas estimate and result without sending transaction
2847
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2848
+ */
2849
+ async payRoyalty(tokenId, options) {
2850
+ return contract.simulate.payRoyalty([tokenId], options);
2851
+ },
2852
+ /**
2853
+ * Simulate renounceOwnership
2854
+ * Returns gas estimate and result without sending transaction
2855
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2856
+ */
2857
+ async renounceOwnership(options) {
2858
+ return contract.simulate.renounceOwnership(options);
2859
+ },
2860
+ /**
2861
+ * Simulate safeTransferFrom
2862
+ * Returns gas estimate and result without sending transaction
2863
+ * Supports multiple overloads: (address, address, uint256), (address, address, uint256, bytes)
2864
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2865
+ */
2866
+ async safeTransferFrom(...args) {
2867
+ return contract.simulate.safeTransferFrom(args);
2868
+ },
2869
+ /**
2870
+ * Simulate setAdminLocked
2871
+ * Returns gas estimate and result without sending transaction
2872
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2873
+ */
2874
+ async setAdminLocked(tokenId, isLocked, options) {
2875
+ return contract.simulate.setAdminLocked([tokenId, isLocked], options);
2876
+ },
2877
+ /**
2878
+ * Simulate setAdminLockedMultiple
2879
+ * Returns gas estimate and result without sending transaction
2880
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2881
+ */
2882
+ async setAdminLockedMultiple(tokenIds, isLockeds, options) {
2883
+ return contract.simulate.setAdminLockedMultiple([tokenIds, isLockeds], options);
2884
+ },
2885
+ /**
2886
+ * Simulate setApprovalForAll
2887
+ * Returns gas estimate and result without sending transaction
2888
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2889
+ */
2890
+ async setApprovalForAll(operator, approved, options) {
2891
+ return contract.simulate.setApprovalForAll([operator, approved], options);
2892
+ },
2893
+ /**
2894
+ * Simulate setBaseURI
2895
+ * Returns gas estimate and result without sending transaction
2896
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2897
+ */
2898
+ async setBaseURI(baseURI, options) {
2899
+ return contract.simulate.setBaseURI([baseURI], options);
2900
+ },
2901
+ /**
2902
+ * Simulate setToCustomSecurityPolicy
2903
+ * Returns gas estimate and result without sending transaction
2904
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2905
+ */
2906
+ async setToCustomSecurityPolicy(level, operatorWhitelistId, permittedContractReceiversAllowlistId, options) {
2907
+ return contract.simulate.setToCustomSecurityPolicy([level, operatorWhitelistId, permittedContractReceiversAllowlistId], options);
2908
+ },
2909
+ /**
2910
+ * Simulate setToCustomValidatorAndSecurityPolicy
2911
+ * Returns gas estimate and result without sending transaction
2912
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2913
+ */
2914
+ async setToCustomValidatorAndSecurityPolicy(validator, level, operatorWhitelistId, permittedContractReceiversAllowlistId, options) {
2915
+ return contract.simulate.setToCustomValidatorAndSecurityPolicy([validator, level, operatorWhitelistId, permittedContractReceiversAllowlistId], options);
2916
+ },
2917
+ /**
2918
+ * Simulate setToDefaultSecurityPolicy
2919
+ * Returns gas estimate and result without sending transaction
2920
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2921
+ */
2922
+ async setToDefaultSecurityPolicy(options) {
2923
+ return contract.simulate.setToDefaultSecurityPolicy(options);
2924
+ },
2925
+ /**
2926
+ * Simulate setTokensStakeStatus
2927
+ * Returns gas estimate and result without sending transaction
2928
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2929
+ */
2930
+ async setTokensStakeStatus(tokenIds, setStake, options) {
2931
+ return contract.simulate.setTokensStakeStatus([tokenIds, setStake], options);
2932
+ },
2933
+ /**
2934
+ * Simulate setTransferValidator
2935
+ * Returns gas estimate and result without sending transaction
2936
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2937
+ */
2938
+ async setTransferValidator(transferValidator_, options) {
2939
+ return contract.simulate.setTransferValidator([transferValidator_], options);
2940
+ },
2941
+ /**
2942
+ * Simulate setupGuardianAndMNPL
2943
+ * Returns gas estimate and result without sending transaction
2944
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2945
+ */
2946
+ async setupGuardianAndMNPL(guardianAddress, _tokenIdOrUpIsMNPL, _unlockPrice, options) {
2947
+ return contract.simulate.setupGuardianAndMNPL([guardianAddress, _tokenIdOrUpIsMNPL, _unlockPrice], options);
2948
+ },
2949
+ /**
2950
+ * Simulate setupStaking
2951
+ * Returns gas estimate and result without sending transaction
2952
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2953
+ */
2954
+ async setupStaking(b, price, options) {
2955
+ return contract.simulate.setupStaking([b, price], options);
2956
+ },
2957
+ /**
2958
+ * Simulate transferFrom
2959
+ * Returns gas estimate and result without sending transaction
2960
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2961
+ */
2962
+ async transferFrom(_from, _to, _tokenId, options) {
2963
+ return contract.simulate.transferFrom([_from, _to, _tokenId], options);
2964
+ },
2965
+ /**
2966
+ * Simulate transferOwnership
2967
+ * Returns gas estimate and result without sending transaction
2968
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2969
+ */
2970
+ async transferOwnership(newOwner, options) {
2971
+ return contract.simulate.transferOwnership([newOwner], options);
2972
+ },
2973
+ /**
2974
+ * Simulate unlockAndUpgradeMNPL
2975
+ * Returns gas estimate and result without sending transaction
2976
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2977
+ */
2978
+ async unlockAndUpgradeMNPL(tokenId, options) {
2979
+ return contract.simulate.unlockAndUpgradeMNPL([tokenId], options);
2980
+ },
2981
+ /**
2982
+ * Simulate unlockId
2983
+ * Returns gas estimate and result without sending transaction
2984
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2985
+ */
2986
+ async unlockId(_id, options) {
2987
+ return contract.simulate.unlockId([_id], options);
2988
+ },
2989
+ /**
2990
+ * Simulate updateApprovedContracts
2991
+ * Returns gas estimate and result without sending transaction
2992
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2993
+ */
2994
+ async updateApprovedContracts(_contracts, _values, options) {
2995
+ return contract.simulate.updateApprovedContracts([_contracts, _values], options);
2996
+ },
2997
+ /**
2998
+ * Simulate whitelistMarketplaces
2999
+ * Returns gas estimate and result without sending transaction
3000
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3001
+ */
3002
+ async whitelistMarketplaces(markets, whitelisted, options) {
3003
+ return contract.simulate.whitelistMarketplaces([markets, whitelisted], options);
3004
+ },
3005
+ /**
3006
+ * Simulate withdrawSales
3007
+ * Returns gas estimate and result without sending transaction
3008
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
3009
+ */
3010
+ async withdrawSales(options) {
3011
+ return contract.simulate.withdrawSales(options);
3012
+ }
3013
+ };
3014
+ }
3015
+ /**
3016
+ * Watch contract events
3017
+ *
3018
+ * @example
3019
+ * // Watch all Transfer events
3020
+ * const unwatch = contract.watch.Transfer((event) => {
3021
+ * console.log('Transfer:', event);
3022
+ * });
3023
+ *
3024
+ * // Stop watching
3025
+ * unwatch();
3026
+ */
3027
+ get watch() {
3028
+ return {
3029
+ /**
3030
+ * Watch Approval events
3031
+ * @param callback Function to call when event is emitted
3032
+ * @param filter Optional filter for indexed parameters
3033
+ * @returns Unwatch function to stop listening
3034
+ */
3035
+ Approval: (callback, filter) => {
3036
+ return this.publicClient.watchContractEvent({
3037
+ address: this.contractAddress,
3038
+ abi: exports.YogapetzAbi,
3039
+ eventName: 'Approval',
3040
+ args: filter,
3041
+ onLogs: (logs) => {
3042
+ logs.forEach((log) => {
3043
+ callback(log.args);
3044
+ });
3045
+ },
3046
+ });
3047
+ },
3048
+ /**
3049
+ * Watch ApprovalForAll events
3050
+ * @param callback Function to call when event is emitted
3051
+ * @param filter Optional filter for indexed parameters
3052
+ * @returns Unwatch function to stop listening
3053
+ */
3054
+ ApprovalForAll: (callback, filter) => {
3055
+ return this.publicClient.watchContractEvent({
3056
+ address: this.contractAddress,
3057
+ abi: exports.YogapetzAbi,
3058
+ eventName: 'ApprovalForAll',
3059
+ args: filter,
3060
+ onLogs: (logs) => {
3061
+ logs.forEach((log) => {
3062
+ callback(log.args);
3063
+ });
3064
+ },
3065
+ });
3066
+ },
3067
+ /**
3068
+ * Watch BioChange events
3069
+ * @param callback Function to call when event is emitted
3070
+ * @param filter Optional filter for indexed parameters
3071
+ * @returns Unwatch function to stop listening
3072
+ */
3073
+ BioChange: (callback, filter) => {
3074
+ return this.publicClient.watchContractEvent({
3075
+ address: this.contractAddress,
3076
+ abi: exports.YogapetzAbi,
3077
+ eventName: 'BioChange',
3078
+ args: filter,
3079
+ onLogs: (logs) => {
3080
+ logs.forEach((log) => {
3081
+ callback(log.args);
3082
+ });
3083
+ },
3084
+ });
3085
+ },
3086
+ /**
3087
+ * Watch ConsecutiveTransfer events
3088
+ * @param callback Function to call when event is emitted
3089
+ * @param filter Optional filter for indexed parameters
3090
+ * @returns Unwatch function to stop listening
3091
+ */
3092
+ ConsecutiveTransfer: (callback, filter) => {
3093
+ return this.publicClient.watchContractEvent({
3094
+ address: this.contractAddress,
3095
+ abi: exports.YogapetzAbi,
3096
+ eventName: 'ConsecutiveTransfer',
3097
+ args: filter,
3098
+ onLogs: (logs) => {
3099
+ logs.forEach((log) => {
3100
+ callback(log.args);
3101
+ });
3102
+ },
3103
+ });
3104
+ },
3105
+ /**
3106
+ * Watch Initialized events
3107
+ * @param callback Function to call when event is emitted
3108
+ * @param filter Optional filter for indexed parameters
3109
+ * @returns Unwatch function to stop listening
3110
+ */
3111
+ Initialized: (callback) => {
3112
+ return this.publicClient.watchContractEvent({
3113
+ address: this.contractAddress,
3114
+ abi: exports.YogapetzAbi,
3115
+ eventName: 'Initialized',
3116
+ onLogs: (logs) => {
3117
+ logs.forEach((log) => {
3118
+ callback(log.args);
3119
+ });
3120
+ },
3121
+ });
3122
+ },
3123
+ /**
3124
+ * Watch KeepTOLTransfer events
3125
+ * @param callback Function to call when event is emitted
3126
+ * @param filter Optional filter for indexed parameters
3127
+ * @returns Unwatch function to stop listening
3128
+ */
3129
+ KeepTOLTransfer: (callback) => {
3130
+ return this.publicClient.watchContractEvent({
3131
+ address: this.contractAddress,
3132
+ abi: exports.YogapetzAbi,
3133
+ eventName: 'KeepTOLTransfer',
3134
+ onLogs: (logs) => {
3135
+ logs.forEach((log) => {
3136
+ callback(log.args);
3137
+ });
3138
+ },
3139
+ });
3140
+ },
3141
+ /**
3142
+ * Watch MNPLUnlockedUpgraded events
3143
+ * @param callback Function to call when event is emitted
3144
+ * @param filter Optional filter for indexed parameters
3145
+ * @returns Unwatch function to stop listening
3146
+ */
3147
+ MNPLUnlockedUpgraded: (callback) => {
3148
+ return this.publicClient.watchContractEvent({
3149
+ address: this.contractAddress,
3150
+ abi: exports.YogapetzAbi,
3151
+ eventName: 'MNPLUnlockedUpgraded',
3152
+ onLogs: (logs) => {
3153
+ logs.forEach((log) => {
3154
+ callback(log.args);
3155
+ });
3156
+ },
3157
+ });
3158
+ },
3159
+ /**
3160
+ * Watch NameChange events
3161
+ * @param callback Function to call when event is emitted
3162
+ * @param filter Optional filter for indexed parameters
3163
+ * @returns Unwatch function to stop listening
3164
+ */
3165
+ NameChange: (callback, filter) => {
3166
+ return this.publicClient.watchContractEvent({
3167
+ address: this.contractAddress,
3168
+ abi: exports.YogapetzAbi,
3169
+ eventName: 'NameChange',
3170
+ args: filter,
3171
+ onLogs: (logs) => {
3172
+ logs.forEach((log) => {
3173
+ callback(log.args);
3174
+ });
3175
+ },
3176
+ });
3177
+ },
3178
+ /**
3179
+ * Watch OwnershipTransferred events
3180
+ * @param callback Function to call when event is emitted
3181
+ * @param filter Optional filter for indexed parameters
3182
+ * @returns Unwatch function to stop listening
3183
+ */
3184
+ OwnershipTransferred: (callback, filter) => {
3185
+ return this.publicClient.watchContractEvent({
3186
+ address: this.contractAddress,
3187
+ abi: exports.YogapetzAbi,
3188
+ eventName: 'OwnershipTransferred',
3189
+ args: filter,
3190
+ onLogs: (logs) => {
3191
+ logs.forEach((log) => {
3192
+ callback(log.args);
3193
+ });
3194
+ },
3195
+ });
3196
+ },
3197
+ /**
3198
+ * Watch RoyaltyPaid events
3199
+ * @param callback Function to call when event is emitted
3200
+ * @param filter Optional filter for indexed parameters
3201
+ * @returns Unwatch function to stop listening
3202
+ */
3203
+ RoyaltyPaid: (callback) => {
3204
+ return this.publicClient.watchContractEvent({
3205
+ address: this.contractAddress,
3206
+ abi: exports.YogapetzAbi,
3207
+ eventName: 'RoyaltyPaid',
3208
+ onLogs: (logs) => {
3209
+ logs.forEach((log) => {
3210
+ callback(log.args);
3211
+ });
3212
+ },
3213
+ });
3214
+ },
3215
+ /**
3216
+ * Watch Stake events
3217
+ * @param callback Function to call when event is emitted
3218
+ * @param filter Optional filter for indexed parameters
3219
+ * @returns Unwatch function to stop listening
3220
+ */
3221
+ Stake: (callback, filter) => {
3222
+ return this.publicClient.watchContractEvent({
3223
+ address: this.contractAddress,
3224
+ abi: exports.YogapetzAbi,
3225
+ eventName: 'Stake',
3226
+ args: filter,
3227
+ onLogs: (logs) => {
3228
+ logs.forEach((log) => {
3229
+ callback(log.args);
3230
+ });
3231
+ },
3232
+ });
3233
+ },
3234
+ /**
3235
+ * Watch TokenAdminLockedChanged events
3236
+ * @param callback Function to call when event is emitted
3237
+ * @param filter Optional filter for indexed parameters
3238
+ * @returns Unwatch function to stop listening
3239
+ */
3240
+ TokenAdminLockedChanged: (callback) => {
3241
+ return this.publicClient.watchContractEvent({
3242
+ address: this.contractAddress,
3243
+ abi: exports.YogapetzAbi,
3244
+ eventName: 'TokenAdminLockedChanged',
3245
+ onLogs: (logs) => {
3246
+ logs.forEach((log) => {
3247
+ callback(log.args);
3248
+ });
3249
+ },
3250
+ });
3251
+ },
3252
+ /**
3253
+ * Watch TokenLocked events
3254
+ * @param callback Function to call when event is emitted
3255
+ * @param filter Optional filter for indexed parameters
3256
+ * @returns Unwatch function to stop listening
3257
+ */
3258
+ TokenLocked: (callback, filter) => {
3259
+ return this.publicClient.watchContractEvent({
3260
+ address: this.contractAddress,
3261
+ abi: exports.YogapetzAbi,
3262
+ eventName: 'TokenLocked',
3263
+ args: filter,
3264
+ onLogs: (logs) => {
3265
+ logs.forEach((log) => {
3266
+ callback(log.args);
3267
+ });
3268
+ },
3269
+ });
3270
+ },
3271
+ /**
3272
+ * Watch TokenUnlocked events
3273
+ * @param callback Function to call when event is emitted
3274
+ * @param filter Optional filter for indexed parameters
3275
+ * @returns Unwatch function to stop listening
3276
+ */
3277
+ TokenUnlocked: (callback, filter) => {
3278
+ return this.publicClient.watchContractEvent({
3279
+ address: this.contractAddress,
3280
+ abi: exports.YogapetzAbi,
3281
+ eventName: 'TokenUnlocked',
3282
+ args: filter,
3283
+ onLogs: (logs) => {
3284
+ logs.forEach((log) => {
3285
+ callback(log.args);
3286
+ });
3287
+ },
3288
+ });
3289
+ },
3290
+ /**
3291
+ * Watch Transfer events
3292
+ * @param callback Function to call when event is emitted
3293
+ * @param filter Optional filter for indexed parameters
3294
+ * @returns Unwatch function to stop listening
3295
+ */
3296
+ Transfer: (callback, filter) => {
3297
+ return this.publicClient.watchContractEvent({
3298
+ address: this.contractAddress,
3299
+ abi: exports.YogapetzAbi,
3300
+ eventName: 'Transfer',
3301
+ args: filter,
3302
+ onLogs: (logs) => {
3303
+ logs.forEach((log) => {
3304
+ callback(log.args);
3305
+ });
3306
+ },
3307
+ });
3308
+ },
3309
+ /**
3310
+ * Watch TransferValidatorUpdated events
3311
+ * @param callback Function to call when event is emitted
3312
+ * @param filter Optional filter for indexed parameters
3313
+ * @returns Unwatch function to stop listening
3314
+ */
3315
+ TransferValidatorUpdated: (callback) => {
3316
+ return this.publicClient.watchContractEvent({
3317
+ address: this.contractAddress,
3318
+ abi: exports.YogapetzAbi,
3319
+ eventName: 'TransferValidatorUpdated',
3320
+ onLogs: (logs) => {
3321
+ logs.forEach((log) => {
3322
+ callback(log.args);
3323
+ });
3324
+ },
3325
+ });
3326
+ },
3327
+ /**
3328
+ * Watch Unstake events
3329
+ * @param callback Function to call when event is emitted
3330
+ * @param filter Optional filter for indexed parameters
3331
+ * @returns Unwatch function to stop listening
3332
+ */
3333
+ Unstake: (callback, filter) => {
3334
+ return this.publicClient.watchContractEvent({
3335
+ address: this.contractAddress,
3336
+ abi: exports.YogapetzAbi,
3337
+ eventName: 'Unstake',
3338
+ args: filter,
3339
+ onLogs: (logs) => {
3340
+ logs.forEach((log) => {
3341
+ callback(log.args);
3342
+ });
3343
+ },
3344
+ });
3345
+ }
3346
+ };
3347
+ }
3348
+ }
3349
+ exports.Yogapetz = Yogapetz;