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