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