@gitmyabi/gm-btc-usd-btc-btc 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,2599 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MarketToken_OFT = exports.MarketToken_OFTAbi = void 0;
4
+ const viem_1 = require("viem");
5
+ /**
6
+ * MarketToken_OFT ABI
7
+ *
8
+ * This ABI is typed using viem's type system for full type safety.
9
+ */
10
+ exports.MarketToken_OFTAbi = [
11
+ {
12
+ "inputs": [
13
+ {
14
+ "internalType": "string",
15
+ "name": "_name",
16
+ "type": "string"
17
+ },
18
+ {
19
+ "internalType": "string",
20
+ "name": "_symbol",
21
+ "type": "string"
22
+ },
23
+ {
24
+ "internalType": "address",
25
+ "name": "_lzEndpoint",
26
+ "type": "address"
27
+ },
28
+ {
29
+ "internalType": "address",
30
+ "name": "_delegate",
31
+ "type": "address"
32
+ }
33
+ ],
34
+ "stateMutability": "nonpayable",
35
+ "type": "constructor"
36
+ },
37
+ {
38
+ "inputs": [],
39
+ "name": "ECDSAInvalidSignature",
40
+ "type": "error"
41
+ },
42
+ {
43
+ "inputs": [
44
+ {
45
+ "internalType": "uint256",
46
+ "name": "length",
47
+ "type": "uint256"
48
+ }
49
+ ],
50
+ "name": "ECDSAInvalidSignatureLength",
51
+ "type": "error"
52
+ },
53
+ {
54
+ "inputs": [
55
+ {
56
+ "internalType": "bytes32",
57
+ "name": "s",
58
+ "type": "bytes32"
59
+ }
60
+ ],
61
+ "name": "ECDSAInvalidSignatureS",
62
+ "type": "error"
63
+ },
64
+ {
65
+ "inputs": [
66
+ {
67
+ "internalType": "address",
68
+ "name": "spender",
69
+ "type": "address"
70
+ },
71
+ {
72
+ "internalType": "uint256",
73
+ "name": "allowance",
74
+ "type": "uint256"
75
+ },
76
+ {
77
+ "internalType": "uint256",
78
+ "name": "needed",
79
+ "type": "uint256"
80
+ }
81
+ ],
82
+ "name": "ERC20InsufficientAllowance",
83
+ "type": "error"
84
+ },
85
+ {
86
+ "inputs": [
87
+ {
88
+ "internalType": "address",
89
+ "name": "sender",
90
+ "type": "address"
91
+ },
92
+ {
93
+ "internalType": "uint256",
94
+ "name": "balance",
95
+ "type": "uint256"
96
+ },
97
+ {
98
+ "internalType": "uint256",
99
+ "name": "needed",
100
+ "type": "uint256"
101
+ }
102
+ ],
103
+ "name": "ERC20InsufficientBalance",
104
+ "type": "error"
105
+ },
106
+ {
107
+ "inputs": [
108
+ {
109
+ "internalType": "address",
110
+ "name": "approver",
111
+ "type": "address"
112
+ }
113
+ ],
114
+ "name": "ERC20InvalidApprover",
115
+ "type": "error"
116
+ },
117
+ {
118
+ "inputs": [
119
+ {
120
+ "internalType": "address",
121
+ "name": "receiver",
122
+ "type": "address"
123
+ }
124
+ ],
125
+ "name": "ERC20InvalidReceiver",
126
+ "type": "error"
127
+ },
128
+ {
129
+ "inputs": [
130
+ {
131
+ "internalType": "address",
132
+ "name": "sender",
133
+ "type": "address"
134
+ }
135
+ ],
136
+ "name": "ERC20InvalidSender",
137
+ "type": "error"
138
+ },
139
+ {
140
+ "inputs": [
141
+ {
142
+ "internalType": "address",
143
+ "name": "spender",
144
+ "type": "address"
145
+ }
146
+ ],
147
+ "name": "ERC20InvalidSpender",
148
+ "type": "error"
149
+ },
150
+ {
151
+ "inputs": [
152
+ {
153
+ "internalType": "uint256",
154
+ "name": "deadline",
155
+ "type": "uint256"
156
+ }
157
+ ],
158
+ "name": "ERC2612ExpiredSignature",
159
+ "type": "error"
160
+ },
161
+ {
162
+ "inputs": [
163
+ {
164
+ "internalType": "address",
165
+ "name": "signer",
166
+ "type": "address"
167
+ },
168
+ {
169
+ "internalType": "address",
170
+ "name": "owner",
171
+ "type": "address"
172
+ }
173
+ ],
174
+ "name": "ERC2612InvalidSigner",
175
+ "type": "error"
176
+ },
177
+ {
178
+ "inputs": [
179
+ {
180
+ "internalType": "address",
181
+ "name": "account",
182
+ "type": "address"
183
+ },
184
+ {
185
+ "internalType": "uint256",
186
+ "name": "currentNonce",
187
+ "type": "uint256"
188
+ }
189
+ ],
190
+ "name": "InvalidAccountNonce",
191
+ "type": "error"
192
+ },
193
+ {
194
+ "inputs": [],
195
+ "name": "InvalidDelegate",
196
+ "type": "error"
197
+ },
198
+ {
199
+ "inputs": [],
200
+ "name": "InvalidEndpointCall",
201
+ "type": "error"
202
+ },
203
+ {
204
+ "inputs": [],
205
+ "name": "InvalidLocalDecimals",
206
+ "type": "error"
207
+ },
208
+ {
209
+ "inputs": [
210
+ {
211
+ "internalType": "bytes",
212
+ "name": "options",
213
+ "type": "bytes"
214
+ }
215
+ ],
216
+ "name": "InvalidOptions",
217
+ "type": "error"
218
+ },
219
+ {
220
+ "inputs": [],
221
+ "name": "InvalidShortString",
222
+ "type": "error"
223
+ },
224
+ {
225
+ "inputs": [],
226
+ "name": "LzTokenUnavailable",
227
+ "type": "error"
228
+ },
229
+ {
230
+ "inputs": [
231
+ {
232
+ "internalType": "uint32",
233
+ "name": "eid",
234
+ "type": "uint32"
235
+ }
236
+ ],
237
+ "name": "NoPeer",
238
+ "type": "error"
239
+ },
240
+ {
241
+ "inputs": [
242
+ {
243
+ "internalType": "uint256",
244
+ "name": "msgValue",
245
+ "type": "uint256"
246
+ }
247
+ ],
248
+ "name": "NotEnoughNative",
249
+ "type": "error"
250
+ },
251
+ {
252
+ "inputs": [
253
+ {
254
+ "internalType": "address",
255
+ "name": "addr",
256
+ "type": "address"
257
+ }
258
+ ],
259
+ "name": "OnlyEndpoint",
260
+ "type": "error"
261
+ },
262
+ {
263
+ "inputs": [
264
+ {
265
+ "internalType": "uint32",
266
+ "name": "eid",
267
+ "type": "uint32"
268
+ },
269
+ {
270
+ "internalType": "bytes32",
271
+ "name": "sender",
272
+ "type": "bytes32"
273
+ }
274
+ ],
275
+ "name": "OnlyPeer",
276
+ "type": "error"
277
+ },
278
+ {
279
+ "inputs": [],
280
+ "name": "OnlySelf",
281
+ "type": "error"
282
+ },
283
+ {
284
+ "inputs": [
285
+ {
286
+ "internalType": "address",
287
+ "name": "owner",
288
+ "type": "address"
289
+ }
290
+ ],
291
+ "name": "OwnableInvalidOwner",
292
+ "type": "error"
293
+ },
294
+ {
295
+ "inputs": [
296
+ {
297
+ "internalType": "address",
298
+ "name": "account",
299
+ "type": "address"
300
+ }
301
+ ],
302
+ "name": "OwnableUnauthorizedAccount",
303
+ "type": "error"
304
+ },
305
+ {
306
+ "inputs": [
307
+ {
308
+ "internalType": "address",
309
+ "name": "token",
310
+ "type": "address"
311
+ }
312
+ ],
313
+ "name": "SafeERC20FailedOperation",
314
+ "type": "error"
315
+ },
316
+ {
317
+ "inputs": [
318
+ {
319
+ "internalType": "bytes",
320
+ "name": "result",
321
+ "type": "bytes"
322
+ }
323
+ ],
324
+ "name": "SimulationResult",
325
+ "type": "error"
326
+ },
327
+ {
328
+ "inputs": [
329
+ {
330
+ "internalType": "uint256",
331
+ "name": "amountLD",
332
+ "type": "uint256"
333
+ },
334
+ {
335
+ "internalType": "uint256",
336
+ "name": "minAmountLD",
337
+ "type": "uint256"
338
+ }
339
+ ],
340
+ "name": "SlippageExceeded",
341
+ "type": "error"
342
+ },
343
+ {
344
+ "inputs": [
345
+ {
346
+ "internalType": "string",
347
+ "name": "str",
348
+ "type": "string"
349
+ }
350
+ ],
351
+ "name": "StringTooLong",
352
+ "type": "error"
353
+ },
354
+ {
355
+ "anonymous": false,
356
+ "inputs": [
357
+ {
358
+ "indexed": true,
359
+ "internalType": "address",
360
+ "name": "owner",
361
+ "type": "address"
362
+ },
363
+ {
364
+ "indexed": true,
365
+ "internalType": "address",
366
+ "name": "spender",
367
+ "type": "address"
368
+ },
369
+ {
370
+ "indexed": false,
371
+ "internalType": "uint256",
372
+ "name": "value",
373
+ "type": "uint256"
374
+ }
375
+ ],
376
+ "name": "Approval",
377
+ "type": "event"
378
+ },
379
+ {
380
+ "anonymous": false,
381
+ "inputs": [],
382
+ "name": "EIP712DomainChanged",
383
+ "type": "event"
384
+ },
385
+ {
386
+ "anonymous": false,
387
+ "inputs": [
388
+ {
389
+ "components": [
390
+ {
391
+ "internalType": "uint32",
392
+ "name": "eid",
393
+ "type": "uint32"
394
+ },
395
+ {
396
+ "internalType": "uint16",
397
+ "name": "msgType",
398
+ "type": "uint16"
399
+ },
400
+ {
401
+ "internalType": "bytes",
402
+ "name": "options",
403
+ "type": "bytes"
404
+ }
405
+ ],
406
+ "indexed": false,
407
+ "internalType": "struct EnforcedOptionParam[]",
408
+ "name": "_enforcedOptions",
409
+ "type": "tuple[]"
410
+ }
411
+ ],
412
+ "name": "EnforcedOptionSet",
413
+ "type": "event"
414
+ },
415
+ {
416
+ "anonymous": false,
417
+ "inputs": [
418
+ {
419
+ "indexed": false,
420
+ "internalType": "address",
421
+ "name": "inspector",
422
+ "type": "address"
423
+ }
424
+ ],
425
+ "name": "MsgInspectorSet",
426
+ "type": "event"
427
+ },
428
+ {
429
+ "anonymous": false,
430
+ "inputs": [
431
+ {
432
+ "indexed": true,
433
+ "internalType": "bytes32",
434
+ "name": "guid",
435
+ "type": "bytes32"
436
+ },
437
+ {
438
+ "indexed": false,
439
+ "internalType": "uint32",
440
+ "name": "srcEid",
441
+ "type": "uint32"
442
+ },
443
+ {
444
+ "indexed": true,
445
+ "internalType": "address",
446
+ "name": "toAddress",
447
+ "type": "address"
448
+ },
449
+ {
450
+ "indexed": false,
451
+ "internalType": "uint256",
452
+ "name": "amountReceivedLD",
453
+ "type": "uint256"
454
+ }
455
+ ],
456
+ "name": "OFTReceived",
457
+ "type": "event"
458
+ },
459
+ {
460
+ "anonymous": false,
461
+ "inputs": [
462
+ {
463
+ "indexed": true,
464
+ "internalType": "bytes32",
465
+ "name": "guid",
466
+ "type": "bytes32"
467
+ },
468
+ {
469
+ "indexed": false,
470
+ "internalType": "uint32",
471
+ "name": "dstEid",
472
+ "type": "uint32"
473
+ },
474
+ {
475
+ "indexed": true,
476
+ "internalType": "address",
477
+ "name": "fromAddress",
478
+ "type": "address"
479
+ },
480
+ {
481
+ "indexed": false,
482
+ "internalType": "uint256",
483
+ "name": "amountSentLD",
484
+ "type": "uint256"
485
+ },
486
+ {
487
+ "indexed": false,
488
+ "internalType": "uint256",
489
+ "name": "amountReceivedLD",
490
+ "type": "uint256"
491
+ }
492
+ ],
493
+ "name": "OFTSent",
494
+ "type": "event"
495
+ },
496
+ {
497
+ "anonymous": false,
498
+ "inputs": [
499
+ {
500
+ "indexed": true,
501
+ "internalType": "address",
502
+ "name": "previousOwner",
503
+ "type": "address"
504
+ },
505
+ {
506
+ "indexed": true,
507
+ "internalType": "address",
508
+ "name": "newOwner",
509
+ "type": "address"
510
+ }
511
+ ],
512
+ "name": "OwnershipTransferred",
513
+ "type": "event"
514
+ },
515
+ {
516
+ "anonymous": false,
517
+ "inputs": [
518
+ {
519
+ "indexed": false,
520
+ "internalType": "uint32",
521
+ "name": "eid",
522
+ "type": "uint32"
523
+ },
524
+ {
525
+ "indexed": false,
526
+ "internalType": "bytes32",
527
+ "name": "peer",
528
+ "type": "bytes32"
529
+ }
530
+ ],
531
+ "name": "PeerSet",
532
+ "type": "event"
533
+ },
534
+ {
535
+ "anonymous": false,
536
+ "inputs": [
537
+ {
538
+ "indexed": false,
539
+ "internalType": "address",
540
+ "name": "preCrimeAddress",
541
+ "type": "address"
542
+ }
543
+ ],
544
+ "name": "PreCrimeSet",
545
+ "type": "event"
546
+ },
547
+ {
548
+ "anonymous": false,
549
+ "inputs": [
550
+ {
551
+ "indexed": true,
552
+ "internalType": "address",
553
+ "name": "from",
554
+ "type": "address"
555
+ },
556
+ {
557
+ "indexed": true,
558
+ "internalType": "address",
559
+ "name": "to",
560
+ "type": "address"
561
+ },
562
+ {
563
+ "indexed": false,
564
+ "internalType": "uint256",
565
+ "name": "value",
566
+ "type": "uint256"
567
+ }
568
+ ],
569
+ "name": "Transfer",
570
+ "type": "event"
571
+ },
572
+ {
573
+ "inputs": [],
574
+ "name": "DOMAIN_SEPARATOR",
575
+ "outputs": [
576
+ {
577
+ "internalType": "bytes32",
578
+ "name": "",
579
+ "type": "bytes32"
580
+ }
581
+ ],
582
+ "stateMutability": "view",
583
+ "type": "function"
584
+ },
585
+ {
586
+ "inputs": [],
587
+ "name": "SEND",
588
+ "outputs": [
589
+ {
590
+ "internalType": "uint16",
591
+ "name": "",
592
+ "type": "uint16"
593
+ }
594
+ ],
595
+ "stateMutability": "view",
596
+ "type": "function"
597
+ },
598
+ {
599
+ "inputs": [],
600
+ "name": "SEND_AND_CALL",
601
+ "outputs": [
602
+ {
603
+ "internalType": "uint16",
604
+ "name": "",
605
+ "type": "uint16"
606
+ }
607
+ ],
608
+ "stateMutability": "view",
609
+ "type": "function"
610
+ },
611
+ {
612
+ "inputs": [
613
+ {
614
+ "components": [
615
+ {
616
+ "internalType": "uint32",
617
+ "name": "srcEid",
618
+ "type": "uint32"
619
+ },
620
+ {
621
+ "internalType": "bytes32",
622
+ "name": "sender",
623
+ "type": "bytes32"
624
+ },
625
+ {
626
+ "internalType": "uint64",
627
+ "name": "nonce",
628
+ "type": "uint64"
629
+ }
630
+ ],
631
+ "internalType": "struct Origin",
632
+ "name": "origin",
633
+ "type": "tuple"
634
+ }
635
+ ],
636
+ "name": "allowInitializePath",
637
+ "outputs": [
638
+ {
639
+ "internalType": "bool",
640
+ "name": "",
641
+ "type": "bool"
642
+ }
643
+ ],
644
+ "stateMutability": "view",
645
+ "type": "function"
646
+ },
647
+ {
648
+ "inputs": [
649
+ {
650
+ "internalType": "address",
651
+ "name": "owner",
652
+ "type": "address"
653
+ },
654
+ {
655
+ "internalType": "address",
656
+ "name": "spender",
657
+ "type": "address"
658
+ }
659
+ ],
660
+ "name": "allowance",
661
+ "outputs": [
662
+ {
663
+ "internalType": "uint256",
664
+ "name": "",
665
+ "type": "uint256"
666
+ }
667
+ ],
668
+ "stateMutability": "view",
669
+ "type": "function"
670
+ },
671
+ {
672
+ "inputs": [],
673
+ "name": "approvalRequired",
674
+ "outputs": [
675
+ {
676
+ "internalType": "bool",
677
+ "name": "",
678
+ "type": "bool"
679
+ }
680
+ ],
681
+ "stateMutability": "pure",
682
+ "type": "function"
683
+ },
684
+ {
685
+ "inputs": [
686
+ {
687
+ "internalType": "address",
688
+ "name": "spender",
689
+ "type": "address"
690
+ },
691
+ {
692
+ "internalType": "uint256",
693
+ "name": "value",
694
+ "type": "uint256"
695
+ }
696
+ ],
697
+ "name": "approve",
698
+ "outputs": [
699
+ {
700
+ "internalType": "bool",
701
+ "name": "",
702
+ "type": "bool"
703
+ }
704
+ ],
705
+ "stateMutability": "nonpayable",
706
+ "type": "function"
707
+ },
708
+ {
709
+ "inputs": [
710
+ {
711
+ "internalType": "address",
712
+ "name": "account",
713
+ "type": "address"
714
+ }
715
+ ],
716
+ "name": "balanceOf",
717
+ "outputs": [
718
+ {
719
+ "internalType": "uint256",
720
+ "name": "",
721
+ "type": "uint256"
722
+ }
723
+ ],
724
+ "stateMutability": "view",
725
+ "type": "function"
726
+ },
727
+ {
728
+ "inputs": [
729
+ {
730
+ "internalType": "uint32",
731
+ "name": "_eid",
732
+ "type": "uint32"
733
+ },
734
+ {
735
+ "internalType": "uint16",
736
+ "name": "_msgType",
737
+ "type": "uint16"
738
+ },
739
+ {
740
+ "internalType": "bytes",
741
+ "name": "_extraOptions",
742
+ "type": "bytes"
743
+ }
744
+ ],
745
+ "name": "combineOptions",
746
+ "outputs": [
747
+ {
748
+ "internalType": "bytes",
749
+ "name": "",
750
+ "type": "bytes"
751
+ }
752
+ ],
753
+ "stateMutability": "view",
754
+ "type": "function"
755
+ },
756
+ {
757
+ "inputs": [],
758
+ "name": "decimalConversionRate",
759
+ "outputs": [
760
+ {
761
+ "internalType": "uint256",
762
+ "name": "",
763
+ "type": "uint256"
764
+ }
765
+ ],
766
+ "stateMutability": "view",
767
+ "type": "function"
768
+ },
769
+ {
770
+ "inputs": [],
771
+ "name": "decimals",
772
+ "outputs": [
773
+ {
774
+ "internalType": "uint8",
775
+ "name": "",
776
+ "type": "uint8"
777
+ }
778
+ ],
779
+ "stateMutability": "view",
780
+ "type": "function"
781
+ },
782
+ {
783
+ "inputs": [],
784
+ "name": "eip712Domain",
785
+ "outputs": [
786
+ {
787
+ "internalType": "bytes1",
788
+ "name": "fields",
789
+ "type": "bytes1"
790
+ },
791
+ {
792
+ "internalType": "string",
793
+ "name": "name",
794
+ "type": "string"
795
+ },
796
+ {
797
+ "internalType": "string",
798
+ "name": "version",
799
+ "type": "string"
800
+ },
801
+ {
802
+ "internalType": "uint256",
803
+ "name": "chainId",
804
+ "type": "uint256"
805
+ },
806
+ {
807
+ "internalType": "address",
808
+ "name": "verifyingContract",
809
+ "type": "address"
810
+ },
811
+ {
812
+ "internalType": "bytes32",
813
+ "name": "salt",
814
+ "type": "bytes32"
815
+ },
816
+ {
817
+ "internalType": "uint256[]",
818
+ "name": "extensions",
819
+ "type": "uint256[]"
820
+ }
821
+ ],
822
+ "stateMutability": "view",
823
+ "type": "function"
824
+ },
825
+ {
826
+ "inputs": [],
827
+ "name": "endpoint",
828
+ "outputs": [
829
+ {
830
+ "internalType": "contract ILayerZeroEndpointV2",
831
+ "name": "",
832
+ "type": "address"
833
+ }
834
+ ],
835
+ "stateMutability": "view",
836
+ "type": "function"
837
+ },
838
+ {
839
+ "inputs": [
840
+ {
841
+ "internalType": "uint32",
842
+ "name": "eid",
843
+ "type": "uint32"
844
+ },
845
+ {
846
+ "internalType": "uint16",
847
+ "name": "msgType",
848
+ "type": "uint16"
849
+ }
850
+ ],
851
+ "name": "enforcedOptions",
852
+ "outputs": [
853
+ {
854
+ "internalType": "bytes",
855
+ "name": "enforcedOption",
856
+ "type": "bytes"
857
+ }
858
+ ],
859
+ "stateMutability": "view",
860
+ "type": "function"
861
+ },
862
+ {
863
+ "inputs": [
864
+ {
865
+ "components": [
866
+ {
867
+ "internalType": "uint32",
868
+ "name": "srcEid",
869
+ "type": "uint32"
870
+ },
871
+ {
872
+ "internalType": "bytes32",
873
+ "name": "sender",
874
+ "type": "bytes32"
875
+ },
876
+ {
877
+ "internalType": "uint64",
878
+ "name": "nonce",
879
+ "type": "uint64"
880
+ }
881
+ ],
882
+ "internalType": "struct Origin",
883
+ "name": "",
884
+ "type": "tuple"
885
+ },
886
+ {
887
+ "internalType": "bytes",
888
+ "name": "",
889
+ "type": "bytes"
890
+ },
891
+ {
892
+ "internalType": "address",
893
+ "name": "_sender",
894
+ "type": "address"
895
+ }
896
+ ],
897
+ "name": "isComposeMsgSender",
898
+ "outputs": [
899
+ {
900
+ "internalType": "bool",
901
+ "name": "",
902
+ "type": "bool"
903
+ }
904
+ ],
905
+ "stateMutability": "view",
906
+ "type": "function"
907
+ },
908
+ {
909
+ "inputs": [
910
+ {
911
+ "internalType": "uint32",
912
+ "name": "_eid",
913
+ "type": "uint32"
914
+ },
915
+ {
916
+ "internalType": "bytes32",
917
+ "name": "_peer",
918
+ "type": "bytes32"
919
+ }
920
+ ],
921
+ "name": "isPeer",
922
+ "outputs": [
923
+ {
924
+ "internalType": "bool",
925
+ "name": "",
926
+ "type": "bool"
927
+ }
928
+ ],
929
+ "stateMutability": "view",
930
+ "type": "function"
931
+ },
932
+ {
933
+ "inputs": [
934
+ {
935
+ "components": [
936
+ {
937
+ "internalType": "uint32",
938
+ "name": "srcEid",
939
+ "type": "uint32"
940
+ },
941
+ {
942
+ "internalType": "bytes32",
943
+ "name": "sender",
944
+ "type": "bytes32"
945
+ },
946
+ {
947
+ "internalType": "uint64",
948
+ "name": "nonce",
949
+ "type": "uint64"
950
+ }
951
+ ],
952
+ "internalType": "struct Origin",
953
+ "name": "_origin",
954
+ "type": "tuple"
955
+ },
956
+ {
957
+ "internalType": "bytes32",
958
+ "name": "_guid",
959
+ "type": "bytes32"
960
+ },
961
+ {
962
+ "internalType": "bytes",
963
+ "name": "_message",
964
+ "type": "bytes"
965
+ },
966
+ {
967
+ "internalType": "address",
968
+ "name": "_executor",
969
+ "type": "address"
970
+ },
971
+ {
972
+ "internalType": "bytes",
973
+ "name": "_extraData",
974
+ "type": "bytes"
975
+ }
976
+ ],
977
+ "name": "lzReceive",
978
+ "outputs": [],
979
+ "stateMutability": "payable",
980
+ "type": "function"
981
+ },
982
+ {
983
+ "inputs": [
984
+ {
985
+ "components": [
986
+ {
987
+ "components": [
988
+ {
989
+ "internalType": "uint32",
990
+ "name": "srcEid",
991
+ "type": "uint32"
992
+ },
993
+ {
994
+ "internalType": "bytes32",
995
+ "name": "sender",
996
+ "type": "bytes32"
997
+ },
998
+ {
999
+ "internalType": "uint64",
1000
+ "name": "nonce",
1001
+ "type": "uint64"
1002
+ }
1003
+ ],
1004
+ "internalType": "struct Origin",
1005
+ "name": "origin",
1006
+ "type": "tuple"
1007
+ },
1008
+ {
1009
+ "internalType": "uint32",
1010
+ "name": "dstEid",
1011
+ "type": "uint32"
1012
+ },
1013
+ {
1014
+ "internalType": "address",
1015
+ "name": "receiver",
1016
+ "type": "address"
1017
+ },
1018
+ {
1019
+ "internalType": "bytes32",
1020
+ "name": "guid",
1021
+ "type": "bytes32"
1022
+ },
1023
+ {
1024
+ "internalType": "uint256",
1025
+ "name": "value",
1026
+ "type": "uint256"
1027
+ },
1028
+ {
1029
+ "internalType": "address",
1030
+ "name": "executor",
1031
+ "type": "address"
1032
+ },
1033
+ {
1034
+ "internalType": "bytes",
1035
+ "name": "message",
1036
+ "type": "bytes"
1037
+ },
1038
+ {
1039
+ "internalType": "bytes",
1040
+ "name": "extraData",
1041
+ "type": "bytes"
1042
+ }
1043
+ ],
1044
+ "internalType": "struct InboundPacket[]",
1045
+ "name": "_packets",
1046
+ "type": "tuple[]"
1047
+ }
1048
+ ],
1049
+ "name": "lzReceiveAndRevert",
1050
+ "outputs": [],
1051
+ "stateMutability": "payable",
1052
+ "type": "function"
1053
+ },
1054
+ {
1055
+ "inputs": [
1056
+ {
1057
+ "components": [
1058
+ {
1059
+ "internalType": "uint32",
1060
+ "name": "srcEid",
1061
+ "type": "uint32"
1062
+ },
1063
+ {
1064
+ "internalType": "bytes32",
1065
+ "name": "sender",
1066
+ "type": "bytes32"
1067
+ },
1068
+ {
1069
+ "internalType": "uint64",
1070
+ "name": "nonce",
1071
+ "type": "uint64"
1072
+ }
1073
+ ],
1074
+ "internalType": "struct Origin",
1075
+ "name": "_origin",
1076
+ "type": "tuple"
1077
+ },
1078
+ {
1079
+ "internalType": "bytes32",
1080
+ "name": "_guid",
1081
+ "type": "bytes32"
1082
+ },
1083
+ {
1084
+ "internalType": "bytes",
1085
+ "name": "_message",
1086
+ "type": "bytes"
1087
+ },
1088
+ {
1089
+ "internalType": "address",
1090
+ "name": "_executor",
1091
+ "type": "address"
1092
+ },
1093
+ {
1094
+ "internalType": "bytes",
1095
+ "name": "_extraData",
1096
+ "type": "bytes"
1097
+ }
1098
+ ],
1099
+ "name": "lzReceiveSimulate",
1100
+ "outputs": [],
1101
+ "stateMutability": "payable",
1102
+ "type": "function"
1103
+ },
1104
+ {
1105
+ "inputs": [],
1106
+ "name": "msgInspector",
1107
+ "outputs": [
1108
+ {
1109
+ "internalType": "address",
1110
+ "name": "",
1111
+ "type": "address"
1112
+ }
1113
+ ],
1114
+ "stateMutability": "view",
1115
+ "type": "function"
1116
+ },
1117
+ {
1118
+ "inputs": [],
1119
+ "name": "name",
1120
+ "outputs": [
1121
+ {
1122
+ "internalType": "string",
1123
+ "name": "",
1124
+ "type": "string"
1125
+ }
1126
+ ],
1127
+ "stateMutability": "view",
1128
+ "type": "function"
1129
+ },
1130
+ {
1131
+ "inputs": [
1132
+ {
1133
+ "internalType": "uint32",
1134
+ "name": "",
1135
+ "type": "uint32"
1136
+ },
1137
+ {
1138
+ "internalType": "bytes32",
1139
+ "name": "",
1140
+ "type": "bytes32"
1141
+ }
1142
+ ],
1143
+ "name": "nextNonce",
1144
+ "outputs": [
1145
+ {
1146
+ "internalType": "uint64",
1147
+ "name": "nonce",
1148
+ "type": "uint64"
1149
+ }
1150
+ ],
1151
+ "stateMutability": "view",
1152
+ "type": "function"
1153
+ },
1154
+ {
1155
+ "inputs": [
1156
+ {
1157
+ "internalType": "address",
1158
+ "name": "owner",
1159
+ "type": "address"
1160
+ }
1161
+ ],
1162
+ "name": "nonces",
1163
+ "outputs": [
1164
+ {
1165
+ "internalType": "uint256",
1166
+ "name": "",
1167
+ "type": "uint256"
1168
+ }
1169
+ ],
1170
+ "stateMutability": "view",
1171
+ "type": "function"
1172
+ },
1173
+ {
1174
+ "inputs": [],
1175
+ "name": "oApp",
1176
+ "outputs": [
1177
+ {
1178
+ "internalType": "address",
1179
+ "name": "",
1180
+ "type": "address"
1181
+ }
1182
+ ],
1183
+ "stateMutability": "view",
1184
+ "type": "function"
1185
+ },
1186
+ {
1187
+ "inputs": [],
1188
+ "name": "oAppVersion",
1189
+ "outputs": [
1190
+ {
1191
+ "internalType": "uint64",
1192
+ "name": "senderVersion",
1193
+ "type": "uint64"
1194
+ },
1195
+ {
1196
+ "internalType": "uint64",
1197
+ "name": "receiverVersion",
1198
+ "type": "uint64"
1199
+ }
1200
+ ],
1201
+ "stateMutability": "pure",
1202
+ "type": "function"
1203
+ },
1204
+ {
1205
+ "inputs": [],
1206
+ "name": "oftVersion",
1207
+ "outputs": [
1208
+ {
1209
+ "internalType": "bytes4",
1210
+ "name": "interfaceId",
1211
+ "type": "bytes4"
1212
+ },
1213
+ {
1214
+ "internalType": "uint64",
1215
+ "name": "version",
1216
+ "type": "uint64"
1217
+ }
1218
+ ],
1219
+ "stateMutability": "pure",
1220
+ "type": "function"
1221
+ },
1222
+ {
1223
+ "inputs": [],
1224
+ "name": "owner",
1225
+ "outputs": [
1226
+ {
1227
+ "internalType": "address",
1228
+ "name": "",
1229
+ "type": "address"
1230
+ }
1231
+ ],
1232
+ "stateMutability": "view",
1233
+ "type": "function"
1234
+ },
1235
+ {
1236
+ "inputs": [
1237
+ {
1238
+ "internalType": "uint32",
1239
+ "name": "eid",
1240
+ "type": "uint32"
1241
+ }
1242
+ ],
1243
+ "name": "peers",
1244
+ "outputs": [
1245
+ {
1246
+ "internalType": "bytes32",
1247
+ "name": "peer",
1248
+ "type": "bytes32"
1249
+ }
1250
+ ],
1251
+ "stateMutability": "view",
1252
+ "type": "function"
1253
+ },
1254
+ {
1255
+ "inputs": [
1256
+ {
1257
+ "internalType": "address",
1258
+ "name": "owner",
1259
+ "type": "address"
1260
+ },
1261
+ {
1262
+ "internalType": "address",
1263
+ "name": "spender",
1264
+ "type": "address"
1265
+ },
1266
+ {
1267
+ "internalType": "uint256",
1268
+ "name": "value",
1269
+ "type": "uint256"
1270
+ },
1271
+ {
1272
+ "internalType": "uint256",
1273
+ "name": "deadline",
1274
+ "type": "uint256"
1275
+ },
1276
+ {
1277
+ "internalType": "uint8",
1278
+ "name": "v",
1279
+ "type": "uint8"
1280
+ },
1281
+ {
1282
+ "internalType": "bytes32",
1283
+ "name": "r",
1284
+ "type": "bytes32"
1285
+ },
1286
+ {
1287
+ "internalType": "bytes32",
1288
+ "name": "s",
1289
+ "type": "bytes32"
1290
+ }
1291
+ ],
1292
+ "name": "permit",
1293
+ "outputs": [],
1294
+ "stateMutability": "nonpayable",
1295
+ "type": "function"
1296
+ },
1297
+ {
1298
+ "inputs": [],
1299
+ "name": "preCrime",
1300
+ "outputs": [
1301
+ {
1302
+ "internalType": "address",
1303
+ "name": "",
1304
+ "type": "address"
1305
+ }
1306
+ ],
1307
+ "stateMutability": "view",
1308
+ "type": "function"
1309
+ },
1310
+ {
1311
+ "inputs": [
1312
+ {
1313
+ "components": [
1314
+ {
1315
+ "internalType": "uint32",
1316
+ "name": "dstEid",
1317
+ "type": "uint32"
1318
+ },
1319
+ {
1320
+ "internalType": "bytes32",
1321
+ "name": "to",
1322
+ "type": "bytes32"
1323
+ },
1324
+ {
1325
+ "internalType": "uint256",
1326
+ "name": "amountLD",
1327
+ "type": "uint256"
1328
+ },
1329
+ {
1330
+ "internalType": "uint256",
1331
+ "name": "minAmountLD",
1332
+ "type": "uint256"
1333
+ },
1334
+ {
1335
+ "internalType": "bytes",
1336
+ "name": "extraOptions",
1337
+ "type": "bytes"
1338
+ },
1339
+ {
1340
+ "internalType": "bytes",
1341
+ "name": "composeMsg",
1342
+ "type": "bytes"
1343
+ },
1344
+ {
1345
+ "internalType": "bytes",
1346
+ "name": "oftCmd",
1347
+ "type": "bytes"
1348
+ }
1349
+ ],
1350
+ "internalType": "struct SendParam",
1351
+ "name": "_sendParam",
1352
+ "type": "tuple"
1353
+ }
1354
+ ],
1355
+ "name": "quoteOFT",
1356
+ "outputs": [
1357
+ {
1358
+ "components": [
1359
+ {
1360
+ "internalType": "uint256",
1361
+ "name": "minAmountLD",
1362
+ "type": "uint256"
1363
+ },
1364
+ {
1365
+ "internalType": "uint256",
1366
+ "name": "maxAmountLD",
1367
+ "type": "uint256"
1368
+ }
1369
+ ],
1370
+ "internalType": "struct OFTLimit",
1371
+ "name": "oftLimit",
1372
+ "type": "tuple"
1373
+ },
1374
+ {
1375
+ "components": [
1376
+ {
1377
+ "internalType": "int256",
1378
+ "name": "feeAmountLD",
1379
+ "type": "int256"
1380
+ },
1381
+ {
1382
+ "internalType": "string",
1383
+ "name": "description",
1384
+ "type": "string"
1385
+ }
1386
+ ],
1387
+ "internalType": "struct OFTFeeDetail[]",
1388
+ "name": "oftFeeDetails",
1389
+ "type": "tuple[]"
1390
+ },
1391
+ {
1392
+ "components": [
1393
+ {
1394
+ "internalType": "uint256",
1395
+ "name": "amountSentLD",
1396
+ "type": "uint256"
1397
+ },
1398
+ {
1399
+ "internalType": "uint256",
1400
+ "name": "amountReceivedLD",
1401
+ "type": "uint256"
1402
+ }
1403
+ ],
1404
+ "internalType": "struct OFTReceipt",
1405
+ "name": "oftReceipt",
1406
+ "type": "tuple"
1407
+ }
1408
+ ],
1409
+ "stateMutability": "view",
1410
+ "type": "function"
1411
+ },
1412
+ {
1413
+ "inputs": [
1414
+ {
1415
+ "components": [
1416
+ {
1417
+ "internalType": "uint32",
1418
+ "name": "dstEid",
1419
+ "type": "uint32"
1420
+ },
1421
+ {
1422
+ "internalType": "bytes32",
1423
+ "name": "to",
1424
+ "type": "bytes32"
1425
+ },
1426
+ {
1427
+ "internalType": "uint256",
1428
+ "name": "amountLD",
1429
+ "type": "uint256"
1430
+ },
1431
+ {
1432
+ "internalType": "uint256",
1433
+ "name": "minAmountLD",
1434
+ "type": "uint256"
1435
+ },
1436
+ {
1437
+ "internalType": "bytes",
1438
+ "name": "extraOptions",
1439
+ "type": "bytes"
1440
+ },
1441
+ {
1442
+ "internalType": "bytes",
1443
+ "name": "composeMsg",
1444
+ "type": "bytes"
1445
+ },
1446
+ {
1447
+ "internalType": "bytes",
1448
+ "name": "oftCmd",
1449
+ "type": "bytes"
1450
+ }
1451
+ ],
1452
+ "internalType": "struct SendParam",
1453
+ "name": "_sendParam",
1454
+ "type": "tuple"
1455
+ },
1456
+ {
1457
+ "internalType": "bool",
1458
+ "name": "_payInLzToken",
1459
+ "type": "bool"
1460
+ }
1461
+ ],
1462
+ "name": "quoteSend",
1463
+ "outputs": [
1464
+ {
1465
+ "components": [
1466
+ {
1467
+ "internalType": "uint256",
1468
+ "name": "nativeFee",
1469
+ "type": "uint256"
1470
+ },
1471
+ {
1472
+ "internalType": "uint256",
1473
+ "name": "lzTokenFee",
1474
+ "type": "uint256"
1475
+ }
1476
+ ],
1477
+ "internalType": "struct MessagingFee",
1478
+ "name": "msgFee",
1479
+ "type": "tuple"
1480
+ }
1481
+ ],
1482
+ "stateMutability": "view",
1483
+ "type": "function"
1484
+ },
1485
+ {
1486
+ "inputs": [],
1487
+ "name": "renounceOwnership",
1488
+ "outputs": [],
1489
+ "stateMutability": "nonpayable",
1490
+ "type": "function"
1491
+ },
1492
+ {
1493
+ "inputs": [
1494
+ {
1495
+ "components": [
1496
+ {
1497
+ "internalType": "uint32",
1498
+ "name": "dstEid",
1499
+ "type": "uint32"
1500
+ },
1501
+ {
1502
+ "internalType": "bytes32",
1503
+ "name": "to",
1504
+ "type": "bytes32"
1505
+ },
1506
+ {
1507
+ "internalType": "uint256",
1508
+ "name": "amountLD",
1509
+ "type": "uint256"
1510
+ },
1511
+ {
1512
+ "internalType": "uint256",
1513
+ "name": "minAmountLD",
1514
+ "type": "uint256"
1515
+ },
1516
+ {
1517
+ "internalType": "bytes",
1518
+ "name": "extraOptions",
1519
+ "type": "bytes"
1520
+ },
1521
+ {
1522
+ "internalType": "bytes",
1523
+ "name": "composeMsg",
1524
+ "type": "bytes"
1525
+ },
1526
+ {
1527
+ "internalType": "bytes",
1528
+ "name": "oftCmd",
1529
+ "type": "bytes"
1530
+ }
1531
+ ],
1532
+ "internalType": "struct SendParam",
1533
+ "name": "_sendParam",
1534
+ "type": "tuple"
1535
+ },
1536
+ {
1537
+ "components": [
1538
+ {
1539
+ "internalType": "uint256",
1540
+ "name": "nativeFee",
1541
+ "type": "uint256"
1542
+ },
1543
+ {
1544
+ "internalType": "uint256",
1545
+ "name": "lzTokenFee",
1546
+ "type": "uint256"
1547
+ }
1548
+ ],
1549
+ "internalType": "struct MessagingFee",
1550
+ "name": "_fee",
1551
+ "type": "tuple"
1552
+ },
1553
+ {
1554
+ "internalType": "address",
1555
+ "name": "_refundAddress",
1556
+ "type": "address"
1557
+ }
1558
+ ],
1559
+ "name": "send",
1560
+ "outputs": [
1561
+ {
1562
+ "components": [
1563
+ {
1564
+ "internalType": "bytes32",
1565
+ "name": "guid",
1566
+ "type": "bytes32"
1567
+ },
1568
+ {
1569
+ "internalType": "uint64",
1570
+ "name": "nonce",
1571
+ "type": "uint64"
1572
+ },
1573
+ {
1574
+ "components": [
1575
+ {
1576
+ "internalType": "uint256",
1577
+ "name": "nativeFee",
1578
+ "type": "uint256"
1579
+ },
1580
+ {
1581
+ "internalType": "uint256",
1582
+ "name": "lzTokenFee",
1583
+ "type": "uint256"
1584
+ }
1585
+ ],
1586
+ "internalType": "struct MessagingFee",
1587
+ "name": "fee",
1588
+ "type": "tuple"
1589
+ }
1590
+ ],
1591
+ "internalType": "struct MessagingReceipt",
1592
+ "name": "msgReceipt",
1593
+ "type": "tuple"
1594
+ },
1595
+ {
1596
+ "components": [
1597
+ {
1598
+ "internalType": "uint256",
1599
+ "name": "amountSentLD",
1600
+ "type": "uint256"
1601
+ },
1602
+ {
1603
+ "internalType": "uint256",
1604
+ "name": "amountReceivedLD",
1605
+ "type": "uint256"
1606
+ }
1607
+ ],
1608
+ "internalType": "struct OFTReceipt",
1609
+ "name": "oftReceipt",
1610
+ "type": "tuple"
1611
+ }
1612
+ ],
1613
+ "stateMutability": "payable",
1614
+ "type": "function"
1615
+ },
1616
+ {
1617
+ "inputs": [
1618
+ {
1619
+ "internalType": "address",
1620
+ "name": "_delegate",
1621
+ "type": "address"
1622
+ }
1623
+ ],
1624
+ "name": "setDelegate",
1625
+ "outputs": [],
1626
+ "stateMutability": "nonpayable",
1627
+ "type": "function"
1628
+ },
1629
+ {
1630
+ "inputs": [
1631
+ {
1632
+ "components": [
1633
+ {
1634
+ "internalType": "uint32",
1635
+ "name": "eid",
1636
+ "type": "uint32"
1637
+ },
1638
+ {
1639
+ "internalType": "uint16",
1640
+ "name": "msgType",
1641
+ "type": "uint16"
1642
+ },
1643
+ {
1644
+ "internalType": "bytes",
1645
+ "name": "options",
1646
+ "type": "bytes"
1647
+ }
1648
+ ],
1649
+ "internalType": "struct EnforcedOptionParam[]",
1650
+ "name": "_enforcedOptions",
1651
+ "type": "tuple[]"
1652
+ }
1653
+ ],
1654
+ "name": "setEnforcedOptions",
1655
+ "outputs": [],
1656
+ "stateMutability": "nonpayable",
1657
+ "type": "function"
1658
+ },
1659
+ {
1660
+ "inputs": [
1661
+ {
1662
+ "internalType": "address",
1663
+ "name": "_msgInspector",
1664
+ "type": "address"
1665
+ }
1666
+ ],
1667
+ "name": "setMsgInspector",
1668
+ "outputs": [],
1669
+ "stateMutability": "nonpayable",
1670
+ "type": "function"
1671
+ },
1672
+ {
1673
+ "inputs": [
1674
+ {
1675
+ "internalType": "uint32",
1676
+ "name": "_eid",
1677
+ "type": "uint32"
1678
+ },
1679
+ {
1680
+ "internalType": "bytes32",
1681
+ "name": "_peer",
1682
+ "type": "bytes32"
1683
+ }
1684
+ ],
1685
+ "name": "setPeer",
1686
+ "outputs": [],
1687
+ "stateMutability": "nonpayable",
1688
+ "type": "function"
1689
+ },
1690
+ {
1691
+ "inputs": [
1692
+ {
1693
+ "internalType": "address",
1694
+ "name": "_preCrime",
1695
+ "type": "address"
1696
+ }
1697
+ ],
1698
+ "name": "setPreCrime",
1699
+ "outputs": [],
1700
+ "stateMutability": "nonpayable",
1701
+ "type": "function"
1702
+ },
1703
+ {
1704
+ "inputs": [],
1705
+ "name": "sharedDecimals",
1706
+ "outputs": [
1707
+ {
1708
+ "internalType": "uint8",
1709
+ "name": "",
1710
+ "type": "uint8"
1711
+ }
1712
+ ],
1713
+ "stateMutability": "view",
1714
+ "type": "function"
1715
+ },
1716
+ {
1717
+ "inputs": [],
1718
+ "name": "symbol",
1719
+ "outputs": [
1720
+ {
1721
+ "internalType": "string",
1722
+ "name": "",
1723
+ "type": "string"
1724
+ }
1725
+ ],
1726
+ "stateMutability": "view",
1727
+ "type": "function"
1728
+ },
1729
+ {
1730
+ "inputs": [],
1731
+ "name": "token",
1732
+ "outputs": [
1733
+ {
1734
+ "internalType": "address",
1735
+ "name": "",
1736
+ "type": "address"
1737
+ }
1738
+ ],
1739
+ "stateMutability": "view",
1740
+ "type": "function"
1741
+ },
1742
+ {
1743
+ "inputs": [],
1744
+ "name": "totalSupply",
1745
+ "outputs": [
1746
+ {
1747
+ "internalType": "uint256",
1748
+ "name": "",
1749
+ "type": "uint256"
1750
+ }
1751
+ ],
1752
+ "stateMutability": "view",
1753
+ "type": "function"
1754
+ },
1755
+ {
1756
+ "inputs": [
1757
+ {
1758
+ "internalType": "address",
1759
+ "name": "to",
1760
+ "type": "address"
1761
+ },
1762
+ {
1763
+ "internalType": "uint256",
1764
+ "name": "value",
1765
+ "type": "uint256"
1766
+ }
1767
+ ],
1768
+ "name": "transfer",
1769
+ "outputs": [
1770
+ {
1771
+ "internalType": "bool",
1772
+ "name": "",
1773
+ "type": "bool"
1774
+ }
1775
+ ],
1776
+ "stateMutability": "nonpayable",
1777
+ "type": "function"
1778
+ },
1779
+ {
1780
+ "inputs": [
1781
+ {
1782
+ "internalType": "address",
1783
+ "name": "from",
1784
+ "type": "address"
1785
+ },
1786
+ {
1787
+ "internalType": "address",
1788
+ "name": "to",
1789
+ "type": "address"
1790
+ },
1791
+ {
1792
+ "internalType": "uint256",
1793
+ "name": "value",
1794
+ "type": "uint256"
1795
+ }
1796
+ ],
1797
+ "name": "transferFrom",
1798
+ "outputs": [
1799
+ {
1800
+ "internalType": "bool",
1801
+ "name": "",
1802
+ "type": "bool"
1803
+ }
1804
+ ],
1805
+ "stateMutability": "nonpayable",
1806
+ "type": "function"
1807
+ },
1808
+ {
1809
+ "inputs": [
1810
+ {
1811
+ "internalType": "address",
1812
+ "name": "newOwner",
1813
+ "type": "address"
1814
+ }
1815
+ ],
1816
+ "name": "transferOwnership",
1817
+ "outputs": [],
1818
+ "stateMutability": "nonpayable",
1819
+ "type": "function"
1820
+ }
1821
+ ];
1822
+ /**
1823
+ * MarketToken_OFT Contract Class
1824
+ *
1825
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
1826
+ *
1827
+ * @example
1828
+ * ```typescript
1829
+ * import { createPublicClient, createWalletClient, http } from 'viem';
1830
+ * import { mainnet } from 'viem/chains';
1831
+ * import { MarketToken_OFT } from 'MarketToken_OFT';
1832
+ *
1833
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
1834
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
1835
+ *
1836
+ * const contract = new MarketToken_OFT('0x...', { publicClient, walletClient });
1837
+ *
1838
+ * // Read functions
1839
+ * const result = await contract.balanceOf('0x...');
1840
+ *
1841
+ * // Write functions
1842
+ * const hash = await contract.transfer('0x...', 1000n);
1843
+ *
1844
+ * // Simulate transactions (dry-run)
1845
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
1846
+ * console.log('Gas estimate:', simulation.request.gas);
1847
+ *
1848
+ * // Watch events
1849
+ * const unwatch = contract.watch.Transfer((event) => {
1850
+ * console.log('Transfer event:', event);
1851
+ * });
1852
+ * ```
1853
+ */
1854
+ class MarketToken_OFT {
1855
+ constructor(address, clients) {
1856
+ this.contractAddress = address;
1857
+ this.publicClient = clients.publicClient;
1858
+ this.contract = (0, viem_1.getContract)({
1859
+ address,
1860
+ abi: exports.MarketToken_OFTAbi,
1861
+ client: {
1862
+ public: clients.publicClient,
1863
+ wallet: clients.walletClient,
1864
+ },
1865
+ });
1866
+ }
1867
+ /**
1868
+ * Get the contract address
1869
+ */
1870
+ get address() {
1871
+ return this.contractAddress;
1872
+ }
1873
+ /**
1874
+ * Get the underlying viem contract instance.
1875
+ */
1876
+ getContract() {
1877
+ return this.contract;
1878
+ }
1879
+ /**
1880
+ * DOMAIN_SEPARATOR
1881
+ * view
1882
+ */
1883
+ async DOMAIN_SEPARATOR() {
1884
+ return this.contract.read.DOMAIN_SEPARATOR();
1885
+ }
1886
+ /**
1887
+ * SEND
1888
+ * view
1889
+ */
1890
+ async SEND() {
1891
+ return this.contract.read.SEND();
1892
+ }
1893
+ /**
1894
+ * SEND_AND_CALL
1895
+ * view
1896
+ */
1897
+ async SEND_AND_CALL() {
1898
+ return this.contract.read.SEND_AND_CALL();
1899
+ }
1900
+ /**
1901
+ * allowInitializePath
1902
+ * view
1903
+ */
1904
+ async allowInitializePath(origin) {
1905
+ return this.contract.read.allowInitializePath([origin]);
1906
+ }
1907
+ /**
1908
+ * allowance
1909
+ * view
1910
+ */
1911
+ async allowance(owner, spender) {
1912
+ return this.contract.read.allowance([owner, spender]);
1913
+ }
1914
+ /**
1915
+ * approvalRequired
1916
+ * pure
1917
+ */
1918
+ async approvalRequired() {
1919
+ return this.contract.read.approvalRequired();
1920
+ }
1921
+ /**
1922
+ * balanceOf
1923
+ * view
1924
+ */
1925
+ async balanceOf(account) {
1926
+ return this.contract.read.balanceOf([account]);
1927
+ }
1928
+ /**
1929
+ * combineOptions
1930
+ * view
1931
+ */
1932
+ async combineOptions(_eid, _msgType, _extraOptions) {
1933
+ return this.contract.read.combineOptions([_eid, _msgType, _extraOptions]);
1934
+ }
1935
+ /**
1936
+ * decimalConversionRate
1937
+ * view
1938
+ */
1939
+ async decimalConversionRate() {
1940
+ return this.contract.read.decimalConversionRate();
1941
+ }
1942
+ /**
1943
+ * decimals
1944
+ * view
1945
+ */
1946
+ async decimals() {
1947
+ return this.contract.read.decimals();
1948
+ }
1949
+ /**
1950
+ * eip712Domain
1951
+ * view
1952
+ */
1953
+ async eip712Domain() {
1954
+ return this.contract.read.eip712Domain();
1955
+ }
1956
+ /**
1957
+ * endpoint
1958
+ * view
1959
+ */
1960
+ async endpoint() {
1961
+ return this.contract.read.endpoint();
1962
+ }
1963
+ /**
1964
+ * enforcedOptions
1965
+ * view
1966
+ */
1967
+ async enforcedOptions(eid, msgType) {
1968
+ return this.contract.read.enforcedOptions([eid, msgType]);
1969
+ }
1970
+ /**
1971
+ * isComposeMsgSender
1972
+ * view
1973
+ */
1974
+ async isComposeMsgSender(arg0, arg1, _sender) {
1975
+ return this.contract.read.isComposeMsgSender([arg0, arg1, _sender]);
1976
+ }
1977
+ /**
1978
+ * isPeer
1979
+ * view
1980
+ */
1981
+ async isPeer(_eid, _peer) {
1982
+ return this.contract.read.isPeer([_eid, _peer]);
1983
+ }
1984
+ /**
1985
+ * msgInspector
1986
+ * view
1987
+ */
1988
+ async msgInspector() {
1989
+ return this.contract.read.msgInspector();
1990
+ }
1991
+ /**
1992
+ * name
1993
+ * view
1994
+ */
1995
+ async name() {
1996
+ return this.contract.read.name();
1997
+ }
1998
+ /**
1999
+ * nextNonce
2000
+ * view
2001
+ */
2002
+ async nextNonce(arg0, arg1) {
2003
+ return this.contract.read.nextNonce([arg0, arg1]);
2004
+ }
2005
+ /**
2006
+ * nonces
2007
+ * view
2008
+ */
2009
+ async nonces(owner) {
2010
+ return this.contract.read.nonces([owner]);
2011
+ }
2012
+ /**
2013
+ * oApp
2014
+ * view
2015
+ */
2016
+ async oApp() {
2017
+ return this.contract.read.oApp();
2018
+ }
2019
+ /**
2020
+ * oAppVersion
2021
+ * pure
2022
+ */
2023
+ async oAppVersion() {
2024
+ return this.contract.read.oAppVersion();
2025
+ }
2026
+ /**
2027
+ * oftVersion
2028
+ * pure
2029
+ */
2030
+ async oftVersion() {
2031
+ return this.contract.read.oftVersion();
2032
+ }
2033
+ /**
2034
+ * owner
2035
+ * view
2036
+ */
2037
+ async owner() {
2038
+ return this.contract.read.owner();
2039
+ }
2040
+ /**
2041
+ * peers
2042
+ * view
2043
+ */
2044
+ async peers(eid) {
2045
+ return this.contract.read.peers([eid]);
2046
+ }
2047
+ /**
2048
+ * preCrime
2049
+ * view
2050
+ */
2051
+ async preCrime() {
2052
+ return this.contract.read.preCrime();
2053
+ }
2054
+ /**
2055
+ * quoteOFT
2056
+ * view
2057
+ */
2058
+ async quoteOFT(_sendParam) {
2059
+ return this.contract.read.quoteOFT([_sendParam]);
2060
+ }
2061
+ /**
2062
+ * quoteSend
2063
+ * view
2064
+ */
2065
+ async quoteSend(_sendParam, _payInLzToken) {
2066
+ return this.contract.read.quoteSend([_sendParam, _payInLzToken]);
2067
+ }
2068
+ /**
2069
+ * sharedDecimals
2070
+ * view
2071
+ */
2072
+ async sharedDecimals() {
2073
+ return this.contract.read.sharedDecimals();
2074
+ }
2075
+ /**
2076
+ * symbol
2077
+ * view
2078
+ */
2079
+ async symbol() {
2080
+ return this.contract.read.symbol();
2081
+ }
2082
+ /**
2083
+ * token
2084
+ * view
2085
+ */
2086
+ async token() {
2087
+ return this.contract.read.token();
2088
+ }
2089
+ /**
2090
+ * totalSupply
2091
+ * view
2092
+ */
2093
+ async totalSupply() {
2094
+ return this.contract.read.totalSupply();
2095
+ }
2096
+ /**
2097
+ * approve
2098
+ * nonpayable
2099
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2100
+ */
2101
+ async approve(spender, value, options) {
2102
+ if (!this.contract.write) {
2103
+ throw new Error('Wallet client is required for write operations');
2104
+ }
2105
+ return this.contract.write.approve([spender, value], options);
2106
+ }
2107
+ /**
2108
+ * lzReceive
2109
+ * payable
2110
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2111
+ */
2112
+ async lzReceive(_origin, _guid, _message, _executor, _extraData, options) {
2113
+ if (!this.contract.write) {
2114
+ throw new Error('Wallet client is required for write operations');
2115
+ }
2116
+ return this.contract.write.lzReceive([_origin, _guid, _message, _executor, _extraData], options);
2117
+ }
2118
+ /**
2119
+ * lzReceiveAndRevert
2120
+ * payable
2121
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2122
+ */
2123
+ async lzReceiveAndRevert(_packets, options) {
2124
+ if (!this.contract.write) {
2125
+ throw new Error('Wallet client is required for write operations');
2126
+ }
2127
+ return this.contract.write.lzReceiveAndRevert([_packets], options);
2128
+ }
2129
+ /**
2130
+ * lzReceiveSimulate
2131
+ * payable
2132
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2133
+ */
2134
+ async lzReceiveSimulate(_origin, _guid, _message, _executor, _extraData, options) {
2135
+ if (!this.contract.write) {
2136
+ throw new Error('Wallet client is required for write operations');
2137
+ }
2138
+ return this.contract.write.lzReceiveSimulate([_origin, _guid, _message, _executor, _extraData], options);
2139
+ }
2140
+ /**
2141
+ * permit
2142
+ * nonpayable
2143
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2144
+ */
2145
+ async permit(owner, spender, value, deadline, v, r, s, options) {
2146
+ if (!this.contract.write) {
2147
+ throw new Error('Wallet client is required for write operations');
2148
+ }
2149
+ return this.contract.write.permit([owner, spender, value, deadline, v, r, s], options);
2150
+ }
2151
+ /**
2152
+ * renounceOwnership
2153
+ * nonpayable
2154
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2155
+ */
2156
+ async renounceOwnership(options) {
2157
+ if (!this.contract.write) {
2158
+ throw new Error('Wallet client is required for write operations');
2159
+ }
2160
+ return this.contract.write.renounceOwnership(options);
2161
+ }
2162
+ /**
2163
+ * send
2164
+ * payable
2165
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2166
+ */
2167
+ async send(_sendParam, _fee, _refundAddress, options) {
2168
+ if (!this.contract.write) {
2169
+ throw new Error('Wallet client is required for write operations');
2170
+ }
2171
+ return this.contract.write.send([_sendParam, _fee, _refundAddress], options);
2172
+ }
2173
+ /**
2174
+ * setDelegate
2175
+ * nonpayable
2176
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2177
+ */
2178
+ async setDelegate(_delegate, options) {
2179
+ if (!this.contract.write) {
2180
+ throw new Error('Wallet client is required for write operations');
2181
+ }
2182
+ return this.contract.write.setDelegate([_delegate], options);
2183
+ }
2184
+ /**
2185
+ * setEnforcedOptions
2186
+ * nonpayable
2187
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2188
+ */
2189
+ async setEnforcedOptions(_enforcedOptions, options) {
2190
+ if (!this.contract.write) {
2191
+ throw new Error('Wallet client is required for write operations');
2192
+ }
2193
+ return this.contract.write.setEnforcedOptions([_enforcedOptions], options);
2194
+ }
2195
+ /**
2196
+ * setMsgInspector
2197
+ * nonpayable
2198
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2199
+ */
2200
+ async setMsgInspector(_msgInspector, options) {
2201
+ if (!this.contract.write) {
2202
+ throw new Error('Wallet client is required for write operations');
2203
+ }
2204
+ return this.contract.write.setMsgInspector([_msgInspector], options);
2205
+ }
2206
+ /**
2207
+ * setPeer
2208
+ * nonpayable
2209
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2210
+ */
2211
+ async setPeer(_eid, _peer, options) {
2212
+ if (!this.contract.write) {
2213
+ throw new Error('Wallet client is required for write operations');
2214
+ }
2215
+ return this.contract.write.setPeer([_eid, _peer], options);
2216
+ }
2217
+ /**
2218
+ * setPreCrime
2219
+ * nonpayable
2220
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2221
+ */
2222
+ async setPreCrime(_preCrime, options) {
2223
+ if (!this.contract.write) {
2224
+ throw new Error('Wallet client is required for write operations');
2225
+ }
2226
+ return this.contract.write.setPreCrime([_preCrime], options);
2227
+ }
2228
+ /**
2229
+ * transfer
2230
+ * nonpayable
2231
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2232
+ */
2233
+ async transfer(to, value, options) {
2234
+ if (!this.contract.write) {
2235
+ throw new Error('Wallet client is required for write operations');
2236
+ }
2237
+ return this.contract.write.transfer([to, value], options);
2238
+ }
2239
+ /**
2240
+ * transferFrom
2241
+ * nonpayable
2242
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2243
+ */
2244
+ async transferFrom(from, to, value, options) {
2245
+ if (!this.contract.write) {
2246
+ throw new Error('Wallet client is required for write operations');
2247
+ }
2248
+ return this.contract.write.transferFrom([from, to, value], options);
2249
+ }
2250
+ /**
2251
+ * transferOwnership
2252
+ * nonpayable
2253
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2254
+ */
2255
+ async transferOwnership(newOwner, options) {
2256
+ if (!this.contract.write) {
2257
+ throw new Error('Wallet client is required for write operations');
2258
+ }
2259
+ return this.contract.write.transferOwnership([newOwner], options);
2260
+ }
2261
+ /**
2262
+ * Simulate contract write operations (dry-run without sending transaction)
2263
+ *
2264
+ * @example
2265
+ * const result = await contract.simulate.transfer('0x...', 1000n);
2266
+ * console.log('Gas estimate:', result.request.gas);
2267
+ * console.log('Would succeed:', result.result);
2268
+ */
2269
+ get simulate() {
2270
+ const contract = this.contract;
2271
+ if (!contract.simulate) {
2272
+ throw new Error('Public client is required for simulation');
2273
+ }
2274
+ return {
2275
+ /**
2276
+ * Simulate approve
2277
+ * Returns gas estimate and result without sending transaction
2278
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2279
+ */
2280
+ async approve(spender, value, options) {
2281
+ return contract.simulate.approve([spender, value], options);
2282
+ },
2283
+ /**
2284
+ * Simulate lzReceive
2285
+ * Returns gas estimate and result without sending transaction
2286
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2287
+ */
2288
+ async lzReceive(_origin, _guid, _message, _executor, _extraData, options) {
2289
+ return contract.simulate.lzReceive([_origin, _guid, _message, _executor, _extraData], options);
2290
+ },
2291
+ /**
2292
+ * Simulate lzReceiveAndRevert
2293
+ * Returns gas estimate and result without sending transaction
2294
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2295
+ */
2296
+ async lzReceiveAndRevert(_packets, options) {
2297
+ return contract.simulate.lzReceiveAndRevert([_packets], options);
2298
+ },
2299
+ /**
2300
+ * Simulate lzReceiveSimulate
2301
+ * Returns gas estimate and result without sending transaction
2302
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2303
+ */
2304
+ async lzReceiveSimulate(_origin, _guid, _message, _executor, _extraData, options) {
2305
+ return contract.simulate.lzReceiveSimulate([_origin, _guid, _message, _executor, _extraData], options);
2306
+ },
2307
+ /**
2308
+ * Simulate permit
2309
+ * Returns gas estimate and result without sending transaction
2310
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2311
+ */
2312
+ async permit(owner, spender, value, deadline, v, r, s, options) {
2313
+ return contract.simulate.permit([owner, spender, value, deadline, v, r, s], options);
2314
+ },
2315
+ /**
2316
+ * Simulate renounceOwnership
2317
+ * Returns gas estimate and result without sending transaction
2318
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2319
+ */
2320
+ async renounceOwnership(options) {
2321
+ return contract.simulate.renounceOwnership(options);
2322
+ },
2323
+ /**
2324
+ * Simulate send
2325
+ * Returns gas estimate and result without sending transaction
2326
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2327
+ */
2328
+ async send(_sendParam, _fee, _refundAddress, options) {
2329
+ return contract.simulate.send([_sendParam, _fee, _refundAddress], options);
2330
+ },
2331
+ /**
2332
+ * Simulate setDelegate
2333
+ * Returns gas estimate and result without sending transaction
2334
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2335
+ */
2336
+ async setDelegate(_delegate, options) {
2337
+ return contract.simulate.setDelegate([_delegate], options);
2338
+ },
2339
+ /**
2340
+ * Simulate setEnforcedOptions
2341
+ * Returns gas estimate and result without sending transaction
2342
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2343
+ */
2344
+ async setEnforcedOptions(_enforcedOptions, options) {
2345
+ return contract.simulate.setEnforcedOptions([_enforcedOptions], options);
2346
+ },
2347
+ /**
2348
+ * Simulate setMsgInspector
2349
+ * Returns gas estimate and result without sending transaction
2350
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2351
+ */
2352
+ async setMsgInspector(_msgInspector, options) {
2353
+ return contract.simulate.setMsgInspector([_msgInspector], options);
2354
+ },
2355
+ /**
2356
+ * Simulate setPeer
2357
+ * Returns gas estimate and result without sending transaction
2358
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2359
+ */
2360
+ async setPeer(_eid, _peer, options) {
2361
+ return contract.simulate.setPeer([_eid, _peer], options);
2362
+ },
2363
+ /**
2364
+ * Simulate setPreCrime
2365
+ * Returns gas estimate and result without sending transaction
2366
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2367
+ */
2368
+ async setPreCrime(_preCrime, options) {
2369
+ return contract.simulate.setPreCrime([_preCrime], options);
2370
+ },
2371
+ /**
2372
+ * Simulate transfer
2373
+ * Returns gas estimate and result without sending transaction
2374
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2375
+ */
2376
+ async transfer(to, value, options) {
2377
+ return contract.simulate.transfer([to, value], options);
2378
+ },
2379
+ /**
2380
+ * Simulate transferFrom
2381
+ * Returns gas estimate and result without sending transaction
2382
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2383
+ */
2384
+ async transferFrom(from, to, value, options) {
2385
+ return contract.simulate.transferFrom([from, to, value], options);
2386
+ },
2387
+ /**
2388
+ * Simulate transferOwnership
2389
+ * Returns gas estimate and result without sending transaction
2390
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2391
+ */
2392
+ async transferOwnership(newOwner, options) {
2393
+ return contract.simulate.transferOwnership([newOwner], options);
2394
+ }
2395
+ };
2396
+ }
2397
+ /**
2398
+ * Watch contract events
2399
+ *
2400
+ * @example
2401
+ * // Watch all Transfer events
2402
+ * const unwatch = contract.watch.Transfer((event) => {
2403
+ * console.log('Transfer:', event);
2404
+ * });
2405
+ *
2406
+ * // Stop watching
2407
+ * unwatch();
2408
+ */
2409
+ get watch() {
2410
+ return {
2411
+ /**
2412
+ * Watch Approval events
2413
+ * @param callback Function to call when event is emitted
2414
+ * @param filter Optional filter for indexed parameters
2415
+ * @returns Unwatch function to stop listening
2416
+ */
2417
+ Approval: (callback, filter) => {
2418
+ return this.publicClient.watchContractEvent({
2419
+ address: this.contractAddress,
2420
+ abi: exports.MarketToken_OFTAbi,
2421
+ eventName: 'Approval',
2422
+ args: filter,
2423
+ onLogs: (logs) => {
2424
+ logs.forEach((log) => {
2425
+ callback(log.args);
2426
+ });
2427
+ },
2428
+ });
2429
+ },
2430
+ /**
2431
+ * Watch EIP712DomainChanged events
2432
+ * @param callback Function to call when event is emitted
2433
+ * @param filter Optional filter for indexed parameters
2434
+ * @returns Unwatch function to stop listening
2435
+ */
2436
+ EIP712DomainChanged: (callback) => {
2437
+ return this.publicClient.watchContractEvent({
2438
+ address: this.contractAddress,
2439
+ abi: exports.MarketToken_OFTAbi,
2440
+ eventName: 'EIP712DomainChanged',
2441
+ onLogs: (logs) => {
2442
+ logs.forEach((log) => {
2443
+ callback(log.args);
2444
+ });
2445
+ },
2446
+ });
2447
+ },
2448
+ /**
2449
+ * Watch EnforcedOptionSet events
2450
+ * @param callback Function to call when event is emitted
2451
+ * @param filter Optional filter for indexed parameters
2452
+ * @returns Unwatch function to stop listening
2453
+ */
2454
+ EnforcedOptionSet: (callback) => {
2455
+ return this.publicClient.watchContractEvent({
2456
+ address: this.contractAddress,
2457
+ abi: exports.MarketToken_OFTAbi,
2458
+ eventName: 'EnforcedOptionSet',
2459
+ onLogs: (logs) => {
2460
+ logs.forEach((log) => {
2461
+ callback(log.args);
2462
+ });
2463
+ },
2464
+ });
2465
+ },
2466
+ /**
2467
+ * Watch MsgInspectorSet events
2468
+ * @param callback Function to call when event is emitted
2469
+ * @param filter Optional filter for indexed parameters
2470
+ * @returns Unwatch function to stop listening
2471
+ */
2472
+ MsgInspectorSet: (callback) => {
2473
+ return this.publicClient.watchContractEvent({
2474
+ address: this.contractAddress,
2475
+ abi: exports.MarketToken_OFTAbi,
2476
+ eventName: 'MsgInspectorSet',
2477
+ onLogs: (logs) => {
2478
+ logs.forEach((log) => {
2479
+ callback(log.args);
2480
+ });
2481
+ },
2482
+ });
2483
+ },
2484
+ /**
2485
+ * Watch OFTReceived events
2486
+ * @param callback Function to call when event is emitted
2487
+ * @param filter Optional filter for indexed parameters
2488
+ * @returns Unwatch function to stop listening
2489
+ */
2490
+ OFTReceived: (callback, filter) => {
2491
+ return this.publicClient.watchContractEvent({
2492
+ address: this.contractAddress,
2493
+ abi: exports.MarketToken_OFTAbi,
2494
+ eventName: 'OFTReceived',
2495
+ args: filter,
2496
+ onLogs: (logs) => {
2497
+ logs.forEach((log) => {
2498
+ callback(log.args);
2499
+ });
2500
+ },
2501
+ });
2502
+ },
2503
+ /**
2504
+ * Watch OFTSent events
2505
+ * @param callback Function to call when event is emitted
2506
+ * @param filter Optional filter for indexed parameters
2507
+ * @returns Unwatch function to stop listening
2508
+ */
2509
+ OFTSent: (callback, filter) => {
2510
+ return this.publicClient.watchContractEvent({
2511
+ address: this.contractAddress,
2512
+ abi: exports.MarketToken_OFTAbi,
2513
+ eventName: 'OFTSent',
2514
+ args: filter,
2515
+ onLogs: (logs) => {
2516
+ logs.forEach((log) => {
2517
+ callback(log.args);
2518
+ });
2519
+ },
2520
+ });
2521
+ },
2522
+ /**
2523
+ * Watch OwnershipTransferred events
2524
+ * @param callback Function to call when event is emitted
2525
+ * @param filter Optional filter for indexed parameters
2526
+ * @returns Unwatch function to stop listening
2527
+ */
2528
+ OwnershipTransferred: (callback, filter) => {
2529
+ return this.publicClient.watchContractEvent({
2530
+ address: this.contractAddress,
2531
+ abi: exports.MarketToken_OFTAbi,
2532
+ eventName: 'OwnershipTransferred',
2533
+ args: filter,
2534
+ onLogs: (logs) => {
2535
+ logs.forEach((log) => {
2536
+ callback(log.args);
2537
+ });
2538
+ },
2539
+ });
2540
+ },
2541
+ /**
2542
+ * Watch PeerSet events
2543
+ * @param callback Function to call when event is emitted
2544
+ * @param filter Optional filter for indexed parameters
2545
+ * @returns Unwatch function to stop listening
2546
+ */
2547
+ PeerSet: (callback) => {
2548
+ return this.publicClient.watchContractEvent({
2549
+ address: this.contractAddress,
2550
+ abi: exports.MarketToken_OFTAbi,
2551
+ eventName: 'PeerSet',
2552
+ onLogs: (logs) => {
2553
+ logs.forEach((log) => {
2554
+ callback(log.args);
2555
+ });
2556
+ },
2557
+ });
2558
+ },
2559
+ /**
2560
+ * Watch PreCrimeSet events
2561
+ * @param callback Function to call when event is emitted
2562
+ * @param filter Optional filter for indexed parameters
2563
+ * @returns Unwatch function to stop listening
2564
+ */
2565
+ PreCrimeSet: (callback) => {
2566
+ return this.publicClient.watchContractEvent({
2567
+ address: this.contractAddress,
2568
+ abi: exports.MarketToken_OFTAbi,
2569
+ eventName: 'PreCrimeSet',
2570
+ onLogs: (logs) => {
2571
+ logs.forEach((log) => {
2572
+ callback(log.args);
2573
+ });
2574
+ },
2575
+ });
2576
+ },
2577
+ /**
2578
+ * Watch Transfer events
2579
+ * @param callback Function to call when event is emitted
2580
+ * @param filter Optional filter for indexed parameters
2581
+ * @returns Unwatch function to stop listening
2582
+ */
2583
+ Transfer: (callback, filter) => {
2584
+ return this.publicClient.watchContractEvent({
2585
+ address: this.contractAddress,
2586
+ abi: exports.MarketToken_OFTAbi,
2587
+ eventName: 'Transfer',
2588
+ args: filter,
2589
+ onLogs: (logs) => {
2590
+ logs.forEach((log) => {
2591
+ callback(log.args);
2592
+ });
2593
+ },
2594
+ });
2595
+ }
2596
+ };
2597
+ }
2598
+ }
2599
+ exports.MarketToken_OFT = MarketToken_OFT;