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