@gitmyabi-stg/una 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,2012 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * OFT ABI
4
+ *
5
+ * This ABI is typed using viem's type system for full type safety.
6
+ */
7
+ export declare const OFTAbi: readonly [{
8
+ readonly inputs: readonly [{
9
+ readonly internalType: "string";
10
+ readonly name: "_name";
11
+ readonly type: "string";
12
+ }, {
13
+ readonly internalType: "string";
14
+ readonly name: "_symbol";
15
+ readonly type: "string";
16
+ }, {
17
+ readonly internalType: "uint256";
18
+ readonly name: "_initialSupply";
19
+ readonly type: "uint256";
20
+ }, {
21
+ readonly internalType: "uint256";
22
+ readonly name: "_cap";
23
+ readonly type: "uint256";
24
+ }, {
25
+ readonly internalType: "address";
26
+ readonly name: "_lzEndpoint";
27
+ readonly type: "address";
28
+ }];
29
+ readonly stateMutability: "nonpayable";
30
+ readonly type: "constructor";
31
+ }, {
32
+ readonly anonymous: false;
33
+ readonly inputs: readonly [{
34
+ readonly indexed: true;
35
+ readonly internalType: "address";
36
+ readonly name: "owner";
37
+ readonly type: "address";
38
+ }, {
39
+ readonly indexed: true;
40
+ readonly internalType: "address";
41
+ readonly name: "spender";
42
+ readonly type: "address";
43
+ }, {
44
+ readonly indexed: false;
45
+ readonly internalType: "uint256";
46
+ readonly name: "value";
47
+ readonly type: "uint256";
48
+ }];
49
+ readonly name: "Approval";
50
+ readonly type: "event";
51
+ }, {
52
+ readonly anonymous: false;
53
+ readonly inputs: readonly [{
54
+ readonly indexed: false;
55
+ readonly internalType: "uint16";
56
+ readonly name: "_srcChainId";
57
+ readonly type: "uint16";
58
+ }, {
59
+ readonly indexed: false;
60
+ readonly internalType: "bytes";
61
+ readonly name: "_srcAddress";
62
+ readonly type: "bytes";
63
+ }, {
64
+ readonly indexed: false;
65
+ readonly internalType: "uint64";
66
+ readonly name: "_nonce";
67
+ readonly type: "uint64";
68
+ }, {
69
+ readonly indexed: false;
70
+ readonly internalType: "bytes";
71
+ readonly name: "_payload";
72
+ readonly type: "bytes";
73
+ }, {
74
+ readonly indexed: false;
75
+ readonly internalType: "bytes";
76
+ readonly name: "_reason";
77
+ readonly type: "bytes";
78
+ }];
79
+ readonly name: "MessageFailed";
80
+ readonly type: "event";
81
+ }, {
82
+ readonly anonymous: false;
83
+ readonly inputs: readonly [{
84
+ readonly indexed: true;
85
+ readonly internalType: "address";
86
+ readonly name: "previousOwner";
87
+ readonly type: "address";
88
+ }, {
89
+ readonly indexed: true;
90
+ readonly internalType: "address";
91
+ readonly name: "newOwner";
92
+ readonly type: "address";
93
+ }];
94
+ readonly name: "OwnershipTransferred";
95
+ readonly type: "event";
96
+ }, {
97
+ readonly anonymous: false;
98
+ readonly inputs: readonly [{
99
+ readonly indexed: true;
100
+ readonly internalType: "uint16";
101
+ readonly name: "_srcChainId";
102
+ readonly type: "uint16";
103
+ }, {
104
+ readonly indexed: true;
105
+ readonly internalType: "address";
106
+ readonly name: "_to";
107
+ readonly type: "address";
108
+ }, {
109
+ readonly indexed: false;
110
+ readonly internalType: "uint256";
111
+ readonly name: "_amount";
112
+ readonly type: "uint256";
113
+ }];
114
+ readonly name: "ReceiveFromChain";
115
+ readonly type: "event";
116
+ }, {
117
+ readonly anonymous: false;
118
+ readonly inputs: readonly [{
119
+ readonly indexed: false;
120
+ readonly internalType: "uint16";
121
+ readonly name: "_srcChainId";
122
+ readonly type: "uint16";
123
+ }, {
124
+ readonly indexed: false;
125
+ readonly internalType: "bytes";
126
+ readonly name: "_srcAddress";
127
+ readonly type: "bytes";
128
+ }, {
129
+ readonly indexed: false;
130
+ readonly internalType: "uint64";
131
+ readonly name: "_nonce";
132
+ readonly type: "uint64";
133
+ }, {
134
+ readonly indexed: false;
135
+ readonly internalType: "bytes32";
136
+ readonly name: "_payloadHash";
137
+ readonly type: "bytes32";
138
+ }];
139
+ readonly name: "RetryMessageSuccess";
140
+ readonly type: "event";
141
+ }, {
142
+ readonly anonymous: false;
143
+ readonly inputs: readonly [{
144
+ readonly indexed: true;
145
+ readonly internalType: "uint16";
146
+ readonly name: "_dstChainId";
147
+ readonly type: "uint16";
148
+ }, {
149
+ readonly indexed: true;
150
+ readonly internalType: "address";
151
+ readonly name: "_from";
152
+ readonly type: "address";
153
+ }, {
154
+ readonly indexed: false;
155
+ readonly internalType: "bytes";
156
+ readonly name: "_toAddress";
157
+ readonly type: "bytes";
158
+ }, {
159
+ readonly indexed: false;
160
+ readonly internalType: "uint256";
161
+ readonly name: "_amount";
162
+ readonly type: "uint256";
163
+ }];
164
+ readonly name: "SendToChain";
165
+ readonly type: "event";
166
+ }, {
167
+ readonly anonymous: false;
168
+ readonly inputs: readonly [{
169
+ readonly indexed: false;
170
+ readonly internalType: "uint16";
171
+ readonly name: "_dstChainId";
172
+ readonly type: "uint16";
173
+ }, {
174
+ readonly indexed: false;
175
+ readonly internalType: "uint16";
176
+ readonly name: "_type";
177
+ readonly type: "uint16";
178
+ }, {
179
+ readonly indexed: false;
180
+ readonly internalType: "uint256";
181
+ readonly name: "_minDstGas";
182
+ readonly type: "uint256";
183
+ }];
184
+ readonly name: "SetMinDstGas";
185
+ readonly type: "event";
186
+ }, {
187
+ readonly anonymous: false;
188
+ readonly inputs: readonly [{
189
+ readonly indexed: false;
190
+ readonly internalType: "address";
191
+ readonly name: "precrime";
192
+ readonly type: "address";
193
+ }];
194
+ readonly name: "SetPrecrime";
195
+ readonly type: "event";
196
+ }, {
197
+ readonly anonymous: false;
198
+ readonly inputs: readonly [{
199
+ readonly indexed: false;
200
+ readonly internalType: "uint16";
201
+ readonly name: "_remoteChainId";
202
+ readonly type: "uint16";
203
+ }, {
204
+ readonly indexed: false;
205
+ readonly internalType: "bytes";
206
+ readonly name: "_path";
207
+ readonly type: "bytes";
208
+ }];
209
+ readonly name: "SetTrustedRemote";
210
+ readonly type: "event";
211
+ }, {
212
+ readonly anonymous: false;
213
+ readonly inputs: readonly [{
214
+ readonly indexed: false;
215
+ readonly internalType: "uint16";
216
+ readonly name: "_remoteChainId";
217
+ readonly type: "uint16";
218
+ }, {
219
+ readonly indexed: false;
220
+ readonly internalType: "bytes";
221
+ readonly name: "_remoteAddress";
222
+ readonly type: "bytes";
223
+ }];
224
+ readonly name: "SetTrustedRemoteAddress";
225
+ readonly type: "event";
226
+ }, {
227
+ readonly anonymous: false;
228
+ readonly inputs: readonly [{
229
+ readonly indexed: false;
230
+ readonly internalType: "bool";
231
+ readonly name: "_useCustomAdapterParams";
232
+ readonly type: "bool";
233
+ }];
234
+ readonly name: "SetUseCustomAdapterParams";
235
+ readonly type: "event";
236
+ }, {
237
+ readonly anonymous: false;
238
+ readonly inputs: readonly [{
239
+ readonly indexed: true;
240
+ readonly internalType: "address";
241
+ readonly name: "from";
242
+ readonly type: "address";
243
+ }, {
244
+ readonly indexed: true;
245
+ readonly internalType: "address";
246
+ readonly name: "to";
247
+ readonly type: "address";
248
+ }, {
249
+ readonly indexed: false;
250
+ readonly internalType: "uint256";
251
+ readonly name: "value";
252
+ readonly type: "uint256";
253
+ }];
254
+ readonly name: "Transfer";
255
+ readonly type: "event";
256
+ }, {
257
+ readonly inputs: readonly [];
258
+ readonly name: "DEFAULT_PAYLOAD_SIZE_LIMIT";
259
+ readonly outputs: readonly [{
260
+ readonly internalType: "uint256";
261
+ readonly name: "";
262
+ readonly type: "uint256";
263
+ }];
264
+ readonly stateMutability: "view";
265
+ readonly type: "function";
266
+ }, {
267
+ readonly inputs: readonly [];
268
+ readonly name: "NO_EXTRA_GAS";
269
+ readonly outputs: readonly [{
270
+ readonly internalType: "uint256";
271
+ readonly name: "";
272
+ readonly type: "uint256";
273
+ }];
274
+ readonly stateMutability: "view";
275
+ readonly type: "function";
276
+ }, {
277
+ readonly inputs: readonly [];
278
+ readonly name: "PT_SEND";
279
+ readonly outputs: readonly [{
280
+ readonly internalType: "uint16";
281
+ readonly name: "";
282
+ readonly type: "uint16";
283
+ }];
284
+ readonly stateMutability: "view";
285
+ readonly type: "function";
286
+ }, {
287
+ readonly inputs: readonly [{
288
+ readonly internalType: "address";
289
+ readonly name: "owner";
290
+ readonly type: "address";
291
+ }, {
292
+ readonly internalType: "address";
293
+ readonly name: "spender";
294
+ readonly type: "address";
295
+ }];
296
+ readonly name: "allowance";
297
+ readonly outputs: readonly [{
298
+ readonly internalType: "uint256";
299
+ readonly name: "";
300
+ readonly type: "uint256";
301
+ }];
302
+ readonly stateMutability: "view";
303
+ readonly type: "function";
304
+ }, {
305
+ readonly inputs: readonly [{
306
+ readonly internalType: "address";
307
+ readonly name: "spender";
308
+ readonly type: "address";
309
+ }, {
310
+ readonly internalType: "uint256";
311
+ readonly name: "amount";
312
+ readonly type: "uint256";
313
+ }];
314
+ readonly name: "approve";
315
+ readonly outputs: readonly [{
316
+ readonly internalType: "bool";
317
+ readonly name: "";
318
+ readonly type: "bool";
319
+ }];
320
+ readonly stateMutability: "nonpayable";
321
+ readonly type: "function";
322
+ }, {
323
+ readonly inputs: readonly [{
324
+ readonly internalType: "address";
325
+ readonly name: "account";
326
+ readonly type: "address";
327
+ }];
328
+ readonly name: "balanceOf";
329
+ readonly outputs: readonly [{
330
+ readonly internalType: "uint256";
331
+ readonly name: "";
332
+ readonly type: "uint256";
333
+ }];
334
+ readonly stateMutability: "view";
335
+ readonly type: "function";
336
+ }, {
337
+ readonly inputs: readonly [];
338
+ readonly name: "cap";
339
+ readonly outputs: readonly [{
340
+ readonly internalType: "uint256";
341
+ readonly name: "";
342
+ readonly type: "uint256";
343
+ }];
344
+ readonly stateMutability: "view";
345
+ readonly type: "function";
346
+ }, {
347
+ readonly inputs: readonly [];
348
+ readonly name: "circulatingSupply";
349
+ readonly outputs: readonly [{
350
+ readonly internalType: "uint256";
351
+ readonly name: "";
352
+ readonly type: "uint256";
353
+ }];
354
+ readonly stateMutability: "view";
355
+ readonly type: "function";
356
+ }, {
357
+ readonly inputs: readonly [];
358
+ readonly name: "decimals";
359
+ readonly outputs: readonly [{
360
+ readonly internalType: "uint8";
361
+ readonly name: "";
362
+ readonly type: "uint8";
363
+ }];
364
+ readonly stateMutability: "view";
365
+ readonly type: "function";
366
+ }, {
367
+ readonly inputs: readonly [{
368
+ readonly internalType: "address";
369
+ readonly name: "spender";
370
+ readonly type: "address";
371
+ }, {
372
+ readonly internalType: "uint256";
373
+ readonly name: "subtractedValue";
374
+ readonly type: "uint256";
375
+ }];
376
+ readonly name: "decreaseAllowance";
377
+ readonly outputs: readonly [{
378
+ readonly internalType: "bool";
379
+ readonly name: "";
380
+ readonly type: "bool";
381
+ }];
382
+ readonly stateMutability: "nonpayable";
383
+ readonly type: "function";
384
+ }, {
385
+ readonly inputs: readonly [{
386
+ readonly internalType: "uint16";
387
+ readonly name: "_dstChainId";
388
+ readonly type: "uint16";
389
+ }, {
390
+ readonly internalType: "bytes";
391
+ readonly name: "_toAddress";
392
+ readonly type: "bytes";
393
+ }, {
394
+ readonly internalType: "uint256";
395
+ readonly name: "_amount";
396
+ readonly type: "uint256";
397
+ }, {
398
+ readonly internalType: "bool";
399
+ readonly name: "_useZro";
400
+ readonly type: "bool";
401
+ }, {
402
+ readonly internalType: "bytes";
403
+ readonly name: "_adapterParams";
404
+ readonly type: "bytes";
405
+ }];
406
+ readonly name: "estimateSendFee";
407
+ readonly outputs: readonly [{
408
+ readonly internalType: "uint256";
409
+ readonly name: "nativeFee";
410
+ readonly type: "uint256";
411
+ }, {
412
+ readonly internalType: "uint256";
413
+ readonly name: "zroFee";
414
+ readonly type: "uint256";
415
+ }];
416
+ readonly stateMutability: "view";
417
+ readonly type: "function";
418
+ }, {
419
+ readonly inputs: readonly [{
420
+ readonly internalType: "uint16";
421
+ readonly name: "";
422
+ readonly type: "uint16";
423
+ }, {
424
+ readonly internalType: "bytes";
425
+ readonly name: "";
426
+ readonly type: "bytes";
427
+ }, {
428
+ readonly internalType: "uint64";
429
+ readonly name: "";
430
+ readonly type: "uint64";
431
+ }];
432
+ readonly name: "failedMessages";
433
+ readonly outputs: readonly [{
434
+ readonly internalType: "bytes32";
435
+ readonly name: "";
436
+ readonly type: "bytes32";
437
+ }];
438
+ readonly stateMutability: "view";
439
+ readonly type: "function";
440
+ }, {
441
+ readonly inputs: readonly [{
442
+ readonly internalType: "uint16";
443
+ readonly name: "_srcChainId";
444
+ readonly type: "uint16";
445
+ }, {
446
+ readonly internalType: "bytes";
447
+ readonly name: "_srcAddress";
448
+ readonly type: "bytes";
449
+ }];
450
+ readonly name: "forceResumeReceive";
451
+ readonly outputs: readonly [];
452
+ readonly stateMutability: "nonpayable";
453
+ readonly type: "function";
454
+ }, {
455
+ readonly inputs: readonly [{
456
+ readonly internalType: "uint16";
457
+ readonly name: "_version";
458
+ readonly type: "uint16";
459
+ }, {
460
+ readonly internalType: "uint16";
461
+ readonly name: "_chainId";
462
+ readonly type: "uint16";
463
+ }, {
464
+ readonly internalType: "address";
465
+ readonly name: "";
466
+ readonly type: "address";
467
+ }, {
468
+ readonly internalType: "uint256";
469
+ readonly name: "_configType";
470
+ readonly type: "uint256";
471
+ }];
472
+ readonly name: "getConfig";
473
+ readonly outputs: readonly [{
474
+ readonly internalType: "bytes";
475
+ readonly name: "";
476
+ readonly type: "bytes";
477
+ }];
478
+ readonly stateMutability: "view";
479
+ readonly type: "function";
480
+ }, {
481
+ readonly inputs: readonly [{
482
+ readonly internalType: "uint16";
483
+ readonly name: "_remoteChainId";
484
+ readonly type: "uint16";
485
+ }];
486
+ readonly name: "getTrustedRemoteAddress";
487
+ readonly outputs: readonly [{
488
+ readonly internalType: "bytes";
489
+ readonly name: "";
490
+ readonly type: "bytes";
491
+ }];
492
+ readonly stateMutability: "view";
493
+ readonly type: "function";
494
+ }, {
495
+ readonly inputs: readonly [{
496
+ readonly internalType: "address";
497
+ readonly name: "spender";
498
+ readonly type: "address";
499
+ }, {
500
+ readonly internalType: "uint256";
501
+ readonly name: "addedValue";
502
+ readonly type: "uint256";
503
+ }];
504
+ readonly name: "increaseAllowance";
505
+ readonly outputs: readonly [{
506
+ readonly internalType: "bool";
507
+ readonly name: "";
508
+ readonly type: "bool";
509
+ }];
510
+ readonly stateMutability: "nonpayable";
511
+ readonly type: "function";
512
+ }, {
513
+ readonly inputs: readonly [{
514
+ readonly internalType: "uint16";
515
+ readonly name: "_srcChainId";
516
+ readonly type: "uint16";
517
+ }, {
518
+ readonly internalType: "bytes";
519
+ readonly name: "_srcAddress";
520
+ readonly type: "bytes";
521
+ }];
522
+ readonly name: "isTrustedRemote";
523
+ readonly outputs: readonly [{
524
+ readonly internalType: "bool";
525
+ readonly name: "";
526
+ readonly type: "bool";
527
+ }];
528
+ readonly stateMutability: "view";
529
+ readonly type: "function";
530
+ }, {
531
+ readonly inputs: readonly [];
532
+ readonly name: "lzEndpoint";
533
+ readonly outputs: readonly [{
534
+ readonly internalType: "contract ILayerZeroEndpoint";
535
+ readonly name: "";
536
+ readonly type: "address";
537
+ }];
538
+ readonly stateMutability: "view";
539
+ readonly type: "function";
540
+ }, {
541
+ readonly inputs: readonly [{
542
+ readonly internalType: "uint16";
543
+ readonly name: "_srcChainId";
544
+ readonly type: "uint16";
545
+ }, {
546
+ readonly internalType: "bytes";
547
+ readonly name: "_srcAddress";
548
+ readonly type: "bytes";
549
+ }, {
550
+ readonly internalType: "uint64";
551
+ readonly name: "_nonce";
552
+ readonly type: "uint64";
553
+ }, {
554
+ readonly internalType: "bytes";
555
+ readonly name: "_payload";
556
+ readonly type: "bytes";
557
+ }];
558
+ readonly name: "lzReceive";
559
+ readonly outputs: readonly [];
560
+ readonly stateMutability: "nonpayable";
561
+ readonly type: "function";
562
+ }, {
563
+ readonly inputs: readonly [{
564
+ readonly internalType: "uint16";
565
+ readonly name: "";
566
+ readonly type: "uint16";
567
+ }, {
568
+ readonly internalType: "uint16";
569
+ readonly name: "";
570
+ readonly type: "uint16";
571
+ }];
572
+ readonly name: "minDstGasLookup";
573
+ readonly outputs: readonly [{
574
+ readonly internalType: "uint256";
575
+ readonly name: "";
576
+ readonly type: "uint256";
577
+ }];
578
+ readonly stateMutability: "view";
579
+ readonly type: "function";
580
+ }, {
581
+ readonly inputs: readonly [];
582
+ readonly name: "name";
583
+ readonly outputs: readonly [{
584
+ readonly internalType: "string";
585
+ readonly name: "";
586
+ readonly type: "string";
587
+ }];
588
+ readonly stateMutability: "view";
589
+ readonly type: "function";
590
+ }, {
591
+ readonly inputs: readonly [{
592
+ readonly internalType: "uint16";
593
+ readonly name: "_srcChainId";
594
+ readonly type: "uint16";
595
+ }, {
596
+ readonly internalType: "bytes";
597
+ readonly name: "_srcAddress";
598
+ readonly type: "bytes";
599
+ }, {
600
+ readonly internalType: "uint64";
601
+ readonly name: "_nonce";
602
+ readonly type: "uint64";
603
+ }, {
604
+ readonly internalType: "bytes";
605
+ readonly name: "_payload";
606
+ readonly type: "bytes";
607
+ }];
608
+ readonly name: "nonblockingLzReceive";
609
+ readonly outputs: readonly [];
610
+ readonly stateMutability: "nonpayable";
611
+ readonly type: "function";
612
+ }, {
613
+ readonly inputs: readonly [];
614
+ readonly name: "owner";
615
+ readonly outputs: readonly [{
616
+ readonly internalType: "address";
617
+ readonly name: "";
618
+ readonly type: "address";
619
+ }];
620
+ readonly stateMutability: "view";
621
+ readonly type: "function";
622
+ }, {
623
+ readonly inputs: readonly [{
624
+ readonly internalType: "uint16";
625
+ readonly name: "";
626
+ readonly type: "uint16";
627
+ }];
628
+ readonly name: "payloadSizeLimitLookup";
629
+ readonly outputs: readonly [{
630
+ readonly internalType: "uint256";
631
+ readonly name: "";
632
+ readonly type: "uint256";
633
+ }];
634
+ readonly stateMutability: "view";
635
+ readonly type: "function";
636
+ }, {
637
+ readonly inputs: readonly [];
638
+ readonly name: "precrime";
639
+ readonly outputs: readonly [{
640
+ readonly internalType: "address";
641
+ readonly name: "";
642
+ readonly type: "address";
643
+ }];
644
+ readonly stateMutability: "view";
645
+ readonly type: "function";
646
+ }, {
647
+ readonly inputs: readonly [];
648
+ readonly name: "renounceOwnership";
649
+ readonly outputs: readonly [];
650
+ readonly stateMutability: "nonpayable";
651
+ readonly type: "function";
652
+ }, {
653
+ readonly inputs: readonly [{
654
+ readonly internalType: "uint16";
655
+ readonly name: "_srcChainId";
656
+ readonly type: "uint16";
657
+ }, {
658
+ readonly internalType: "bytes";
659
+ readonly name: "_srcAddress";
660
+ readonly type: "bytes";
661
+ }, {
662
+ readonly internalType: "uint64";
663
+ readonly name: "_nonce";
664
+ readonly type: "uint64";
665
+ }, {
666
+ readonly internalType: "bytes";
667
+ readonly name: "_payload";
668
+ readonly type: "bytes";
669
+ }];
670
+ readonly name: "retryMessage";
671
+ readonly outputs: readonly [];
672
+ readonly stateMutability: "payable";
673
+ readonly type: "function";
674
+ }, {
675
+ readonly inputs: readonly [{
676
+ readonly internalType: "address";
677
+ readonly name: "_from";
678
+ readonly type: "address";
679
+ }, {
680
+ readonly internalType: "uint16";
681
+ readonly name: "_dstChainId";
682
+ readonly type: "uint16";
683
+ }, {
684
+ readonly internalType: "bytes";
685
+ readonly name: "_toAddress";
686
+ readonly type: "bytes";
687
+ }, {
688
+ readonly internalType: "uint256";
689
+ readonly name: "_amount";
690
+ readonly type: "uint256";
691
+ }, {
692
+ readonly internalType: "address payable";
693
+ readonly name: "_refundAddress";
694
+ readonly type: "address";
695
+ }, {
696
+ readonly internalType: "address";
697
+ readonly name: "_zroPaymentAddress";
698
+ readonly type: "address";
699
+ }, {
700
+ readonly internalType: "bytes";
701
+ readonly name: "_adapterParams";
702
+ readonly type: "bytes";
703
+ }];
704
+ readonly name: "sendFrom";
705
+ readonly outputs: readonly [];
706
+ readonly stateMutability: "payable";
707
+ readonly type: "function";
708
+ }, {
709
+ readonly inputs: readonly [{
710
+ readonly internalType: "uint16";
711
+ readonly name: "_version";
712
+ readonly type: "uint16";
713
+ }, {
714
+ readonly internalType: "uint16";
715
+ readonly name: "_chainId";
716
+ readonly type: "uint16";
717
+ }, {
718
+ readonly internalType: "uint256";
719
+ readonly name: "_configType";
720
+ readonly type: "uint256";
721
+ }, {
722
+ readonly internalType: "bytes";
723
+ readonly name: "_config";
724
+ readonly type: "bytes";
725
+ }];
726
+ readonly name: "setConfig";
727
+ readonly outputs: readonly [];
728
+ readonly stateMutability: "nonpayable";
729
+ readonly type: "function";
730
+ }, {
731
+ readonly inputs: readonly [{
732
+ readonly internalType: "uint16";
733
+ readonly name: "_dstChainId";
734
+ readonly type: "uint16";
735
+ }, {
736
+ readonly internalType: "uint16";
737
+ readonly name: "_packetType";
738
+ readonly type: "uint16";
739
+ }, {
740
+ readonly internalType: "uint256";
741
+ readonly name: "_minGas";
742
+ readonly type: "uint256";
743
+ }];
744
+ readonly name: "setMinDstGas";
745
+ readonly outputs: readonly [];
746
+ readonly stateMutability: "nonpayable";
747
+ readonly type: "function";
748
+ }, {
749
+ readonly inputs: readonly [{
750
+ readonly internalType: "uint16";
751
+ readonly name: "_dstChainId";
752
+ readonly type: "uint16";
753
+ }, {
754
+ readonly internalType: "uint256";
755
+ readonly name: "_size";
756
+ readonly type: "uint256";
757
+ }];
758
+ readonly name: "setPayloadSizeLimit";
759
+ readonly outputs: readonly [];
760
+ readonly stateMutability: "nonpayable";
761
+ readonly type: "function";
762
+ }, {
763
+ readonly inputs: readonly [{
764
+ readonly internalType: "address";
765
+ readonly name: "_precrime";
766
+ readonly type: "address";
767
+ }];
768
+ readonly name: "setPrecrime";
769
+ readonly outputs: readonly [];
770
+ readonly stateMutability: "nonpayable";
771
+ readonly type: "function";
772
+ }, {
773
+ readonly inputs: readonly [{
774
+ readonly internalType: "uint16";
775
+ readonly name: "_version";
776
+ readonly type: "uint16";
777
+ }];
778
+ readonly name: "setReceiveVersion";
779
+ readonly outputs: readonly [];
780
+ readonly stateMutability: "nonpayable";
781
+ readonly type: "function";
782
+ }, {
783
+ readonly inputs: readonly [{
784
+ readonly internalType: "uint16";
785
+ readonly name: "_version";
786
+ readonly type: "uint16";
787
+ }];
788
+ readonly name: "setSendVersion";
789
+ readonly outputs: readonly [];
790
+ readonly stateMutability: "nonpayable";
791
+ readonly type: "function";
792
+ }, {
793
+ readonly inputs: readonly [{
794
+ readonly internalType: "uint16";
795
+ readonly name: "_remoteChainId";
796
+ readonly type: "uint16";
797
+ }, {
798
+ readonly internalType: "bytes";
799
+ readonly name: "_path";
800
+ readonly type: "bytes";
801
+ }];
802
+ readonly name: "setTrustedRemote";
803
+ readonly outputs: readonly [];
804
+ readonly stateMutability: "nonpayable";
805
+ readonly type: "function";
806
+ }, {
807
+ readonly inputs: readonly [{
808
+ readonly internalType: "uint16";
809
+ readonly name: "_remoteChainId";
810
+ readonly type: "uint16";
811
+ }, {
812
+ readonly internalType: "bytes";
813
+ readonly name: "_remoteAddress";
814
+ readonly type: "bytes";
815
+ }];
816
+ readonly name: "setTrustedRemoteAddress";
817
+ readonly outputs: readonly [];
818
+ readonly stateMutability: "nonpayable";
819
+ readonly type: "function";
820
+ }, {
821
+ readonly inputs: readonly [{
822
+ readonly internalType: "bool";
823
+ readonly name: "_useCustomAdapterParams";
824
+ readonly type: "bool";
825
+ }];
826
+ readonly name: "setUseCustomAdapterParams";
827
+ readonly outputs: readonly [];
828
+ readonly stateMutability: "nonpayable";
829
+ readonly type: "function";
830
+ }, {
831
+ readonly inputs: readonly [{
832
+ readonly internalType: "bytes4";
833
+ readonly name: "interfaceId";
834
+ readonly type: "bytes4";
835
+ }];
836
+ readonly name: "supportsInterface";
837
+ readonly outputs: readonly [{
838
+ readonly internalType: "bool";
839
+ readonly name: "";
840
+ readonly type: "bool";
841
+ }];
842
+ readonly stateMutability: "view";
843
+ readonly type: "function";
844
+ }, {
845
+ readonly inputs: readonly [];
846
+ readonly name: "symbol";
847
+ readonly outputs: readonly [{
848
+ readonly internalType: "string";
849
+ readonly name: "";
850
+ readonly type: "string";
851
+ }];
852
+ readonly stateMutability: "view";
853
+ readonly type: "function";
854
+ }, {
855
+ readonly inputs: readonly [];
856
+ readonly name: "token";
857
+ readonly outputs: readonly [{
858
+ readonly internalType: "address";
859
+ readonly name: "";
860
+ readonly type: "address";
861
+ }];
862
+ readonly stateMutability: "view";
863
+ readonly type: "function";
864
+ }, {
865
+ readonly inputs: readonly [];
866
+ readonly name: "totalSupply";
867
+ readonly outputs: readonly [{
868
+ readonly internalType: "uint256";
869
+ readonly name: "";
870
+ readonly type: "uint256";
871
+ }];
872
+ readonly stateMutability: "view";
873
+ readonly type: "function";
874
+ }, {
875
+ readonly inputs: readonly [{
876
+ readonly internalType: "address";
877
+ readonly name: "to";
878
+ readonly type: "address";
879
+ }, {
880
+ readonly internalType: "uint256";
881
+ readonly name: "amount";
882
+ readonly type: "uint256";
883
+ }];
884
+ readonly name: "transfer";
885
+ readonly outputs: readonly [{
886
+ readonly internalType: "bool";
887
+ readonly name: "";
888
+ readonly type: "bool";
889
+ }];
890
+ readonly stateMutability: "nonpayable";
891
+ readonly type: "function";
892
+ }, {
893
+ readonly inputs: readonly [{
894
+ readonly internalType: "address";
895
+ readonly name: "from";
896
+ readonly type: "address";
897
+ }, {
898
+ readonly internalType: "address";
899
+ readonly name: "to";
900
+ readonly type: "address";
901
+ }, {
902
+ readonly internalType: "uint256";
903
+ readonly name: "amount";
904
+ readonly type: "uint256";
905
+ }];
906
+ readonly name: "transferFrom";
907
+ readonly outputs: readonly [{
908
+ readonly internalType: "bool";
909
+ readonly name: "";
910
+ readonly type: "bool";
911
+ }];
912
+ readonly stateMutability: "nonpayable";
913
+ readonly type: "function";
914
+ }, {
915
+ readonly inputs: readonly [{
916
+ readonly internalType: "address";
917
+ readonly name: "newOwner";
918
+ readonly type: "address";
919
+ }];
920
+ readonly name: "transferOwnership";
921
+ readonly outputs: readonly [];
922
+ readonly stateMutability: "nonpayable";
923
+ readonly type: "function";
924
+ }, {
925
+ readonly inputs: readonly [{
926
+ readonly internalType: "uint16";
927
+ readonly name: "";
928
+ readonly type: "uint16";
929
+ }];
930
+ readonly name: "trustedRemoteLookup";
931
+ readonly outputs: readonly [{
932
+ readonly internalType: "bytes";
933
+ readonly name: "";
934
+ readonly type: "bytes";
935
+ }];
936
+ readonly stateMutability: "view";
937
+ readonly type: "function";
938
+ }, {
939
+ readonly inputs: readonly [];
940
+ readonly name: "useCustomAdapterParams";
941
+ readonly outputs: readonly [{
942
+ readonly internalType: "bool";
943
+ readonly name: "";
944
+ readonly type: "bool";
945
+ }];
946
+ readonly stateMutability: "view";
947
+ readonly type: "function";
948
+ }];
949
+ /**
950
+ * Type-safe ABI for OFT
951
+ */
952
+ export type OFTAbi = typeof OFTAbi;
953
+ /**
954
+ * Contract instance type for OFT
955
+ */
956
+ export type OFTContract = any;
957
+ /**
958
+ * OFT Contract Class
959
+ *
960
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
961
+ *
962
+ * @example
963
+ * ```typescript
964
+ * import { createPublicClient, createWalletClient, http } from 'viem';
965
+ * import { mainnet } from 'viem/chains';
966
+ * import { OFT } from 'OFT';
967
+ *
968
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
969
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
970
+ *
971
+ * const contract = new OFT('0x...', { publicClient, walletClient });
972
+ *
973
+ * // Read functions
974
+ * const result = await contract.balanceOf('0x...');
975
+ *
976
+ * // Write functions
977
+ * const hash = await contract.transfer('0x...', 1000n);
978
+ *
979
+ * // Simulate transactions (dry-run)
980
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
981
+ * console.log('Gas estimate:', simulation.request.gas);
982
+ *
983
+ * // Watch events
984
+ * const unwatch = contract.watch.Transfer((event) => {
985
+ * console.log('Transfer event:', event);
986
+ * });
987
+ * ```
988
+ */
989
+ export declare class OFT {
990
+ private contract;
991
+ private contractAddress;
992
+ private publicClient;
993
+ constructor(address: Address, clients: {
994
+ publicClient: PublicClient;
995
+ walletClient?: WalletClient;
996
+ });
997
+ /**
998
+ * Get the contract address
999
+ */
1000
+ get address(): Address;
1001
+ /**
1002
+ * Get the underlying viem contract instance.
1003
+ */
1004
+ getContract(): OFTContract;
1005
+ /**
1006
+ * DEFAULT_PAYLOAD_SIZE_LIMIT
1007
+ * view
1008
+ */
1009
+ DEFAULT_PAYLOAD_SIZE_LIMIT(): Promise<bigint>;
1010
+ /**
1011
+ * NO_EXTRA_GAS
1012
+ * view
1013
+ */
1014
+ NO_EXTRA_GAS(): Promise<bigint>;
1015
+ /**
1016
+ * PT_SEND
1017
+ * view
1018
+ */
1019
+ PT_SEND(): Promise<bigint>;
1020
+ /**
1021
+ * allowance
1022
+ * view
1023
+ */
1024
+ allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
1025
+ /**
1026
+ * balanceOf
1027
+ * view
1028
+ */
1029
+ balanceOf(account: `0x${string}`): Promise<bigint>;
1030
+ /**
1031
+ * cap
1032
+ * view
1033
+ */
1034
+ cap(): Promise<bigint>;
1035
+ /**
1036
+ * circulatingSupply
1037
+ * view
1038
+ */
1039
+ circulatingSupply(): Promise<bigint>;
1040
+ /**
1041
+ * decimals
1042
+ * view
1043
+ */
1044
+ decimals(): Promise<bigint>;
1045
+ /**
1046
+ * estimateSendFee
1047
+ * view
1048
+ */
1049
+ estimateSendFee(_dstChainId: bigint, _toAddress: `0x${string}`, _amount: bigint, _useZro: boolean, _adapterParams: `0x${string}`): Promise<[bigint, bigint]>;
1050
+ /**
1051
+ * failedMessages
1052
+ * view
1053
+ */
1054
+ failedMessages(arg0: bigint, arg1: `0x${string}`, arg2: bigint): Promise<`0x${string}`>;
1055
+ /**
1056
+ * getConfig
1057
+ * view
1058
+ */
1059
+ getConfig(_version: bigint, _chainId: bigint, arg2: `0x${string}`, _configType: bigint): Promise<`0x${string}`>;
1060
+ /**
1061
+ * getTrustedRemoteAddress
1062
+ * view
1063
+ */
1064
+ getTrustedRemoteAddress(_remoteChainId: bigint): Promise<`0x${string}`>;
1065
+ /**
1066
+ * isTrustedRemote
1067
+ * view
1068
+ */
1069
+ isTrustedRemote(_srcChainId: bigint, _srcAddress: `0x${string}`): Promise<boolean>;
1070
+ /**
1071
+ * lzEndpoint
1072
+ * view
1073
+ */
1074
+ lzEndpoint(): Promise<`0x${string}`>;
1075
+ /**
1076
+ * minDstGasLookup
1077
+ * view
1078
+ */
1079
+ minDstGasLookup(arg0: bigint, arg1: bigint): Promise<bigint>;
1080
+ /**
1081
+ * name
1082
+ * view
1083
+ */
1084
+ name(): Promise<string>;
1085
+ /**
1086
+ * owner
1087
+ * view
1088
+ */
1089
+ owner(): Promise<`0x${string}`>;
1090
+ /**
1091
+ * payloadSizeLimitLookup
1092
+ * view
1093
+ */
1094
+ payloadSizeLimitLookup(arg0: bigint): Promise<bigint>;
1095
+ /**
1096
+ * precrime
1097
+ * view
1098
+ */
1099
+ precrime(): Promise<`0x${string}`>;
1100
+ /**
1101
+ * supportsInterface
1102
+ * view
1103
+ */
1104
+ supportsInterface(interfaceId: `0x${string}`): Promise<boolean>;
1105
+ /**
1106
+ * symbol
1107
+ * view
1108
+ */
1109
+ symbol(): Promise<string>;
1110
+ /**
1111
+ * token
1112
+ * view
1113
+ */
1114
+ token(): Promise<`0x${string}`>;
1115
+ /**
1116
+ * totalSupply
1117
+ * view
1118
+ */
1119
+ totalSupply(): Promise<bigint>;
1120
+ /**
1121
+ * trustedRemoteLookup
1122
+ * view
1123
+ */
1124
+ trustedRemoteLookup(arg0: bigint): Promise<`0x${string}`>;
1125
+ /**
1126
+ * useCustomAdapterParams
1127
+ * view
1128
+ */
1129
+ useCustomAdapterParams(): Promise<boolean>;
1130
+ /**
1131
+ * approve
1132
+ * nonpayable
1133
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1134
+ */
1135
+ approve(spender: `0x${string}`, amount: bigint, options?: {
1136
+ accessList?: import('viem').AccessList;
1137
+ authorizationList?: import('viem').AuthorizationList;
1138
+ chain?: import('viem').Chain | null;
1139
+ dataSuffix?: `0x${string}`;
1140
+ gas?: bigint;
1141
+ gasPrice?: bigint;
1142
+ maxFeePerGas?: bigint;
1143
+ maxPriorityFeePerGas?: bigint;
1144
+ nonce?: number;
1145
+ value?: bigint;
1146
+ }): Promise<`0x${string}`>;
1147
+ /**
1148
+ * decreaseAllowance
1149
+ * nonpayable
1150
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1151
+ */
1152
+ decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
1153
+ accessList?: import('viem').AccessList;
1154
+ authorizationList?: import('viem').AuthorizationList;
1155
+ chain?: import('viem').Chain | null;
1156
+ dataSuffix?: `0x${string}`;
1157
+ gas?: bigint;
1158
+ gasPrice?: bigint;
1159
+ maxFeePerGas?: bigint;
1160
+ maxPriorityFeePerGas?: bigint;
1161
+ nonce?: number;
1162
+ value?: bigint;
1163
+ }): Promise<`0x${string}`>;
1164
+ /**
1165
+ * forceResumeReceive
1166
+ * nonpayable
1167
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1168
+ */
1169
+ forceResumeReceive(_srcChainId: bigint, _srcAddress: `0x${string}`, options?: {
1170
+ accessList?: import('viem').AccessList;
1171
+ authorizationList?: import('viem').AuthorizationList;
1172
+ chain?: import('viem').Chain | null;
1173
+ dataSuffix?: `0x${string}`;
1174
+ gas?: bigint;
1175
+ gasPrice?: bigint;
1176
+ maxFeePerGas?: bigint;
1177
+ maxPriorityFeePerGas?: bigint;
1178
+ nonce?: number;
1179
+ value?: bigint;
1180
+ }): Promise<`0x${string}`>;
1181
+ /**
1182
+ * increaseAllowance
1183
+ * nonpayable
1184
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1185
+ */
1186
+ increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
1187
+ accessList?: import('viem').AccessList;
1188
+ authorizationList?: import('viem').AuthorizationList;
1189
+ chain?: import('viem').Chain | null;
1190
+ dataSuffix?: `0x${string}`;
1191
+ gas?: bigint;
1192
+ gasPrice?: bigint;
1193
+ maxFeePerGas?: bigint;
1194
+ maxPriorityFeePerGas?: bigint;
1195
+ nonce?: number;
1196
+ value?: bigint;
1197
+ }): Promise<`0x${string}`>;
1198
+ /**
1199
+ * lzReceive
1200
+ * nonpayable
1201
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1202
+ */
1203
+ lzReceive(_srcChainId: bigint, _srcAddress: `0x${string}`, _nonce: bigint, _payload: `0x${string}`, options?: {
1204
+ accessList?: import('viem').AccessList;
1205
+ authorizationList?: import('viem').AuthorizationList;
1206
+ chain?: import('viem').Chain | null;
1207
+ dataSuffix?: `0x${string}`;
1208
+ gas?: bigint;
1209
+ gasPrice?: bigint;
1210
+ maxFeePerGas?: bigint;
1211
+ maxPriorityFeePerGas?: bigint;
1212
+ nonce?: number;
1213
+ value?: bigint;
1214
+ }): Promise<`0x${string}`>;
1215
+ /**
1216
+ * nonblockingLzReceive
1217
+ * nonpayable
1218
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1219
+ */
1220
+ nonblockingLzReceive(_srcChainId: bigint, _srcAddress: `0x${string}`, _nonce: bigint, _payload: `0x${string}`, options?: {
1221
+ accessList?: import('viem').AccessList;
1222
+ authorizationList?: import('viem').AuthorizationList;
1223
+ chain?: import('viem').Chain | null;
1224
+ dataSuffix?: `0x${string}`;
1225
+ gas?: bigint;
1226
+ gasPrice?: bigint;
1227
+ maxFeePerGas?: bigint;
1228
+ maxPriorityFeePerGas?: bigint;
1229
+ nonce?: number;
1230
+ value?: bigint;
1231
+ }): Promise<`0x${string}`>;
1232
+ /**
1233
+ * renounceOwnership
1234
+ * nonpayable
1235
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1236
+ */
1237
+ renounceOwnership(options?: {
1238
+ accessList?: import('viem').AccessList;
1239
+ authorizationList?: import('viem').AuthorizationList;
1240
+ chain?: import('viem').Chain | null;
1241
+ dataSuffix?: `0x${string}`;
1242
+ gas?: bigint;
1243
+ gasPrice?: bigint;
1244
+ maxFeePerGas?: bigint;
1245
+ maxPriorityFeePerGas?: bigint;
1246
+ nonce?: number;
1247
+ value?: bigint;
1248
+ }): Promise<`0x${string}`>;
1249
+ /**
1250
+ * retryMessage
1251
+ * payable
1252
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1253
+ */
1254
+ retryMessage(_srcChainId: bigint, _srcAddress: `0x${string}`, _nonce: bigint, _payload: `0x${string}`, options?: {
1255
+ accessList?: import('viem').AccessList;
1256
+ authorizationList?: import('viem').AuthorizationList;
1257
+ chain?: import('viem').Chain | null;
1258
+ dataSuffix?: `0x${string}`;
1259
+ gas?: bigint;
1260
+ gasPrice?: bigint;
1261
+ maxFeePerGas?: bigint;
1262
+ maxPriorityFeePerGas?: bigint;
1263
+ nonce?: number;
1264
+ value?: bigint;
1265
+ }): Promise<`0x${string}`>;
1266
+ /**
1267
+ * sendFrom
1268
+ * payable
1269
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1270
+ */
1271
+ sendFrom(_from: `0x${string}`, _dstChainId: bigint, _toAddress: `0x${string}`, _amount: bigint, _refundAddress: `0x${string}`, _zroPaymentAddress: `0x${string}`, _adapterParams: `0x${string}`, options?: {
1272
+ accessList?: import('viem').AccessList;
1273
+ authorizationList?: import('viem').AuthorizationList;
1274
+ chain?: import('viem').Chain | null;
1275
+ dataSuffix?: `0x${string}`;
1276
+ gas?: bigint;
1277
+ gasPrice?: bigint;
1278
+ maxFeePerGas?: bigint;
1279
+ maxPriorityFeePerGas?: bigint;
1280
+ nonce?: number;
1281
+ value?: bigint;
1282
+ }): Promise<`0x${string}`>;
1283
+ /**
1284
+ * setConfig
1285
+ * nonpayable
1286
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1287
+ */
1288
+ setConfig(_version: bigint, _chainId: bigint, _configType: bigint, _config: `0x${string}`, options?: {
1289
+ accessList?: import('viem').AccessList;
1290
+ authorizationList?: import('viem').AuthorizationList;
1291
+ chain?: import('viem').Chain | null;
1292
+ dataSuffix?: `0x${string}`;
1293
+ gas?: bigint;
1294
+ gasPrice?: bigint;
1295
+ maxFeePerGas?: bigint;
1296
+ maxPriorityFeePerGas?: bigint;
1297
+ nonce?: number;
1298
+ value?: bigint;
1299
+ }): Promise<`0x${string}`>;
1300
+ /**
1301
+ * setMinDstGas
1302
+ * nonpayable
1303
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1304
+ */
1305
+ setMinDstGas(_dstChainId: bigint, _packetType: bigint, _minGas: bigint, options?: {
1306
+ accessList?: import('viem').AccessList;
1307
+ authorizationList?: import('viem').AuthorizationList;
1308
+ chain?: import('viem').Chain | null;
1309
+ dataSuffix?: `0x${string}`;
1310
+ gas?: bigint;
1311
+ gasPrice?: bigint;
1312
+ maxFeePerGas?: bigint;
1313
+ maxPriorityFeePerGas?: bigint;
1314
+ nonce?: number;
1315
+ value?: bigint;
1316
+ }): Promise<`0x${string}`>;
1317
+ /**
1318
+ * setPayloadSizeLimit
1319
+ * nonpayable
1320
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1321
+ */
1322
+ setPayloadSizeLimit(_dstChainId: bigint, _size: bigint, options?: {
1323
+ accessList?: import('viem').AccessList;
1324
+ authorizationList?: import('viem').AuthorizationList;
1325
+ chain?: import('viem').Chain | null;
1326
+ dataSuffix?: `0x${string}`;
1327
+ gas?: bigint;
1328
+ gasPrice?: bigint;
1329
+ maxFeePerGas?: bigint;
1330
+ maxPriorityFeePerGas?: bigint;
1331
+ nonce?: number;
1332
+ value?: bigint;
1333
+ }): Promise<`0x${string}`>;
1334
+ /**
1335
+ * setPrecrime
1336
+ * nonpayable
1337
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1338
+ */
1339
+ setPrecrime(_precrime: `0x${string}`, options?: {
1340
+ accessList?: import('viem').AccessList;
1341
+ authorizationList?: import('viem').AuthorizationList;
1342
+ chain?: import('viem').Chain | null;
1343
+ dataSuffix?: `0x${string}`;
1344
+ gas?: bigint;
1345
+ gasPrice?: bigint;
1346
+ maxFeePerGas?: bigint;
1347
+ maxPriorityFeePerGas?: bigint;
1348
+ nonce?: number;
1349
+ value?: bigint;
1350
+ }): Promise<`0x${string}`>;
1351
+ /**
1352
+ * setReceiveVersion
1353
+ * nonpayable
1354
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1355
+ */
1356
+ setReceiveVersion(_version: bigint, options?: {
1357
+ accessList?: import('viem').AccessList;
1358
+ authorizationList?: import('viem').AuthorizationList;
1359
+ chain?: import('viem').Chain | null;
1360
+ dataSuffix?: `0x${string}`;
1361
+ gas?: bigint;
1362
+ gasPrice?: bigint;
1363
+ maxFeePerGas?: bigint;
1364
+ maxPriorityFeePerGas?: bigint;
1365
+ nonce?: number;
1366
+ value?: bigint;
1367
+ }): Promise<`0x${string}`>;
1368
+ /**
1369
+ * setSendVersion
1370
+ * nonpayable
1371
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1372
+ */
1373
+ setSendVersion(_version: bigint, options?: {
1374
+ accessList?: import('viem').AccessList;
1375
+ authorizationList?: import('viem').AuthorizationList;
1376
+ chain?: import('viem').Chain | null;
1377
+ dataSuffix?: `0x${string}`;
1378
+ gas?: bigint;
1379
+ gasPrice?: bigint;
1380
+ maxFeePerGas?: bigint;
1381
+ maxPriorityFeePerGas?: bigint;
1382
+ nonce?: number;
1383
+ value?: bigint;
1384
+ }): Promise<`0x${string}`>;
1385
+ /**
1386
+ * setTrustedRemote
1387
+ * nonpayable
1388
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1389
+ */
1390
+ setTrustedRemote(_remoteChainId: bigint, _path: `0x${string}`, options?: {
1391
+ accessList?: import('viem').AccessList;
1392
+ authorizationList?: import('viem').AuthorizationList;
1393
+ chain?: import('viem').Chain | null;
1394
+ dataSuffix?: `0x${string}`;
1395
+ gas?: bigint;
1396
+ gasPrice?: bigint;
1397
+ maxFeePerGas?: bigint;
1398
+ maxPriorityFeePerGas?: bigint;
1399
+ nonce?: number;
1400
+ value?: bigint;
1401
+ }): Promise<`0x${string}`>;
1402
+ /**
1403
+ * setTrustedRemoteAddress
1404
+ * nonpayable
1405
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1406
+ */
1407
+ setTrustedRemoteAddress(_remoteChainId: bigint, _remoteAddress: `0x${string}`, options?: {
1408
+ accessList?: import('viem').AccessList;
1409
+ authorizationList?: import('viem').AuthorizationList;
1410
+ chain?: import('viem').Chain | null;
1411
+ dataSuffix?: `0x${string}`;
1412
+ gas?: bigint;
1413
+ gasPrice?: bigint;
1414
+ maxFeePerGas?: bigint;
1415
+ maxPriorityFeePerGas?: bigint;
1416
+ nonce?: number;
1417
+ value?: bigint;
1418
+ }): Promise<`0x${string}`>;
1419
+ /**
1420
+ * setUseCustomAdapterParams
1421
+ * nonpayable
1422
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1423
+ */
1424
+ setUseCustomAdapterParams(_useCustomAdapterParams: boolean, options?: {
1425
+ accessList?: import('viem').AccessList;
1426
+ authorizationList?: import('viem').AuthorizationList;
1427
+ chain?: import('viem').Chain | null;
1428
+ dataSuffix?: `0x${string}`;
1429
+ gas?: bigint;
1430
+ gasPrice?: bigint;
1431
+ maxFeePerGas?: bigint;
1432
+ maxPriorityFeePerGas?: bigint;
1433
+ nonce?: number;
1434
+ value?: bigint;
1435
+ }): Promise<`0x${string}`>;
1436
+ /**
1437
+ * transfer
1438
+ * nonpayable
1439
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1440
+ */
1441
+ transfer(to: `0x${string}`, amount: bigint, options?: {
1442
+ accessList?: import('viem').AccessList;
1443
+ authorizationList?: import('viem').AuthorizationList;
1444
+ chain?: import('viem').Chain | null;
1445
+ dataSuffix?: `0x${string}`;
1446
+ gas?: bigint;
1447
+ gasPrice?: bigint;
1448
+ maxFeePerGas?: bigint;
1449
+ maxPriorityFeePerGas?: bigint;
1450
+ nonce?: number;
1451
+ value?: bigint;
1452
+ }): Promise<`0x${string}`>;
1453
+ /**
1454
+ * transferFrom
1455
+ * nonpayable
1456
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1457
+ */
1458
+ transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
1459
+ accessList?: import('viem').AccessList;
1460
+ authorizationList?: import('viem').AuthorizationList;
1461
+ chain?: import('viem').Chain | null;
1462
+ dataSuffix?: `0x${string}`;
1463
+ gas?: bigint;
1464
+ gasPrice?: bigint;
1465
+ maxFeePerGas?: bigint;
1466
+ maxPriorityFeePerGas?: bigint;
1467
+ nonce?: number;
1468
+ value?: bigint;
1469
+ }): Promise<`0x${string}`>;
1470
+ /**
1471
+ * transferOwnership
1472
+ * nonpayable
1473
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1474
+ */
1475
+ transferOwnership(newOwner: `0x${string}`, options?: {
1476
+ accessList?: import('viem').AccessList;
1477
+ authorizationList?: import('viem').AuthorizationList;
1478
+ chain?: import('viem').Chain | null;
1479
+ dataSuffix?: `0x${string}`;
1480
+ gas?: bigint;
1481
+ gasPrice?: bigint;
1482
+ maxFeePerGas?: bigint;
1483
+ maxPriorityFeePerGas?: bigint;
1484
+ nonce?: number;
1485
+ value?: bigint;
1486
+ }): Promise<`0x${string}`>;
1487
+ /**
1488
+ * Simulate contract write operations (dry-run without sending transaction)
1489
+ *
1490
+ * @example
1491
+ * const result = await contract.simulate.transfer('0x...', 1000n);
1492
+ * console.log('Gas estimate:', result.request.gas);
1493
+ * console.log('Would succeed:', result.result);
1494
+ */
1495
+ get simulate(): {
1496
+ /**
1497
+ * Simulate approve
1498
+ * Returns gas estimate and result without sending transaction
1499
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1500
+ */
1501
+ approve(spender: `0x${string}`, amount: bigint, options?: {
1502
+ accessList?: import("viem").AccessList;
1503
+ authorizationList?: import("viem").AuthorizationList;
1504
+ chain?: import("viem").Chain | null;
1505
+ dataSuffix?: `0x${string}`;
1506
+ gas?: bigint;
1507
+ gasPrice?: bigint;
1508
+ maxFeePerGas?: bigint;
1509
+ maxPriorityFeePerGas?: bigint;
1510
+ nonce?: number;
1511
+ value?: bigint;
1512
+ }): Promise<boolean>;
1513
+ /**
1514
+ * Simulate decreaseAllowance
1515
+ * Returns gas estimate and result without sending transaction
1516
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1517
+ */
1518
+ decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
1519
+ accessList?: import("viem").AccessList;
1520
+ authorizationList?: import("viem").AuthorizationList;
1521
+ chain?: import("viem").Chain | null;
1522
+ dataSuffix?: `0x${string}`;
1523
+ gas?: bigint;
1524
+ gasPrice?: bigint;
1525
+ maxFeePerGas?: bigint;
1526
+ maxPriorityFeePerGas?: bigint;
1527
+ nonce?: number;
1528
+ value?: bigint;
1529
+ }): Promise<boolean>;
1530
+ /**
1531
+ * Simulate forceResumeReceive
1532
+ * Returns gas estimate and result without sending transaction
1533
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1534
+ */
1535
+ forceResumeReceive(_srcChainId: bigint, _srcAddress: `0x${string}`, options?: {
1536
+ accessList?: import("viem").AccessList;
1537
+ authorizationList?: import("viem").AuthorizationList;
1538
+ chain?: import("viem").Chain | null;
1539
+ dataSuffix?: `0x${string}`;
1540
+ gas?: bigint;
1541
+ gasPrice?: bigint;
1542
+ maxFeePerGas?: bigint;
1543
+ maxPriorityFeePerGas?: bigint;
1544
+ nonce?: number;
1545
+ value?: bigint;
1546
+ }): Promise<void>;
1547
+ /**
1548
+ * Simulate increaseAllowance
1549
+ * Returns gas estimate and result without sending transaction
1550
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1551
+ */
1552
+ increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
1553
+ accessList?: import("viem").AccessList;
1554
+ authorizationList?: import("viem").AuthorizationList;
1555
+ chain?: import("viem").Chain | null;
1556
+ dataSuffix?: `0x${string}`;
1557
+ gas?: bigint;
1558
+ gasPrice?: bigint;
1559
+ maxFeePerGas?: bigint;
1560
+ maxPriorityFeePerGas?: bigint;
1561
+ nonce?: number;
1562
+ value?: bigint;
1563
+ }): Promise<boolean>;
1564
+ /**
1565
+ * Simulate lzReceive
1566
+ * Returns gas estimate and result without sending transaction
1567
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1568
+ */
1569
+ lzReceive(_srcChainId: bigint, _srcAddress: `0x${string}`, _nonce: bigint, _payload: `0x${string}`, options?: {
1570
+ accessList?: import("viem").AccessList;
1571
+ authorizationList?: import("viem").AuthorizationList;
1572
+ chain?: import("viem").Chain | null;
1573
+ dataSuffix?: `0x${string}`;
1574
+ gas?: bigint;
1575
+ gasPrice?: bigint;
1576
+ maxFeePerGas?: bigint;
1577
+ maxPriorityFeePerGas?: bigint;
1578
+ nonce?: number;
1579
+ value?: bigint;
1580
+ }): Promise<void>;
1581
+ /**
1582
+ * Simulate nonblockingLzReceive
1583
+ * Returns gas estimate and result without sending transaction
1584
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1585
+ */
1586
+ nonblockingLzReceive(_srcChainId: bigint, _srcAddress: `0x${string}`, _nonce: bigint, _payload: `0x${string}`, options?: {
1587
+ accessList?: import("viem").AccessList;
1588
+ authorizationList?: import("viem").AuthorizationList;
1589
+ chain?: import("viem").Chain | null;
1590
+ dataSuffix?: `0x${string}`;
1591
+ gas?: bigint;
1592
+ gasPrice?: bigint;
1593
+ maxFeePerGas?: bigint;
1594
+ maxPriorityFeePerGas?: bigint;
1595
+ nonce?: number;
1596
+ value?: bigint;
1597
+ }): Promise<void>;
1598
+ /**
1599
+ * Simulate renounceOwnership
1600
+ * Returns gas estimate and result without sending transaction
1601
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1602
+ */
1603
+ renounceOwnership(options?: {
1604
+ accessList?: import("viem").AccessList;
1605
+ authorizationList?: import("viem").AuthorizationList;
1606
+ chain?: import("viem").Chain | null;
1607
+ dataSuffix?: `0x${string}`;
1608
+ gas?: bigint;
1609
+ gasPrice?: bigint;
1610
+ maxFeePerGas?: bigint;
1611
+ maxPriorityFeePerGas?: bigint;
1612
+ nonce?: number;
1613
+ value?: bigint;
1614
+ }): Promise<void>;
1615
+ /**
1616
+ * Simulate retryMessage
1617
+ * Returns gas estimate and result without sending transaction
1618
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1619
+ */
1620
+ retryMessage(_srcChainId: bigint, _srcAddress: `0x${string}`, _nonce: bigint, _payload: `0x${string}`, options?: {
1621
+ accessList?: import("viem").AccessList;
1622
+ authorizationList?: import("viem").AuthorizationList;
1623
+ chain?: import("viem").Chain | null;
1624
+ dataSuffix?: `0x${string}`;
1625
+ gas?: bigint;
1626
+ gasPrice?: bigint;
1627
+ maxFeePerGas?: bigint;
1628
+ maxPriorityFeePerGas?: bigint;
1629
+ nonce?: number;
1630
+ value?: bigint;
1631
+ }): Promise<void>;
1632
+ /**
1633
+ * Simulate sendFrom
1634
+ * Returns gas estimate and result without sending transaction
1635
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1636
+ */
1637
+ sendFrom(_from: `0x${string}`, _dstChainId: bigint, _toAddress: `0x${string}`, _amount: bigint, _refundAddress: `0x${string}`, _zroPaymentAddress: `0x${string}`, _adapterParams: `0x${string}`, options?: {
1638
+ accessList?: import("viem").AccessList;
1639
+ authorizationList?: import("viem").AuthorizationList;
1640
+ chain?: import("viem").Chain | null;
1641
+ dataSuffix?: `0x${string}`;
1642
+ gas?: bigint;
1643
+ gasPrice?: bigint;
1644
+ maxFeePerGas?: bigint;
1645
+ maxPriorityFeePerGas?: bigint;
1646
+ nonce?: number;
1647
+ value?: bigint;
1648
+ }): Promise<void>;
1649
+ /**
1650
+ * Simulate setConfig
1651
+ * Returns gas estimate and result without sending transaction
1652
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1653
+ */
1654
+ setConfig(_version: bigint, _chainId: bigint, _configType: bigint, _config: `0x${string}`, options?: {
1655
+ accessList?: import("viem").AccessList;
1656
+ authorizationList?: import("viem").AuthorizationList;
1657
+ chain?: import("viem").Chain | null;
1658
+ dataSuffix?: `0x${string}`;
1659
+ gas?: bigint;
1660
+ gasPrice?: bigint;
1661
+ maxFeePerGas?: bigint;
1662
+ maxPriorityFeePerGas?: bigint;
1663
+ nonce?: number;
1664
+ value?: bigint;
1665
+ }): Promise<void>;
1666
+ /**
1667
+ * Simulate setMinDstGas
1668
+ * Returns gas estimate and result without sending transaction
1669
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1670
+ */
1671
+ setMinDstGas(_dstChainId: bigint, _packetType: bigint, _minGas: bigint, options?: {
1672
+ accessList?: import("viem").AccessList;
1673
+ authorizationList?: import("viem").AuthorizationList;
1674
+ chain?: import("viem").Chain | null;
1675
+ dataSuffix?: `0x${string}`;
1676
+ gas?: bigint;
1677
+ gasPrice?: bigint;
1678
+ maxFeePerGas?: bigint;
1679
+ maxPriorityFeePerGas?: bigint;
1680
+ nonce?: number;
1681
+ value?: bigint;
1682
+ }): Promise<void>;
1683
+ /**
1684
+ * Simulate setPayloadSizeLimit
1685
+ * Returns gas estimate and result without sending transaction
1686
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1687
+ */
1688
+ setPayloadSizeLimit(_dstChainId: bigint, _size: bigint, options?: {
1689
+ accessList?: import("viem").AccessList;
1690
+ authorizationList?: import("viem").AuthorizationList;
1691
+ chain?: import("viem").Chain | null;
1692
+ dataSuffix?: `0x${string}`;
1693
+ gas?: bigint;
1694
+ gasPrice?: bigint;
1695
+ maxFeePerGas?: bigint;
1696
+ maxPriorityFeePerGas?: bigint;
1697
+ nonce?: number;
1698
+ value?: bigint;
1699
+ }): Promise<void>;
1700
+ /**
1701
+ * Simulate setPrecrime
1702
+ * Returns gas estimate and result without sending transaction
1703
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1704
+ */
1705
+ setPrecrime(_precrime: `0x${string}`, options?: {
1706
+ accessList?: import("viem").AccessList;
1707
+ authorizationList?: import("viem").AuthorizationList;
1708
+ chain?: import("viem").Chain | null;
1709
+ dataSuffix?: `0x${string}`;
1710
+ gas?: bigint;
1711
+ gasPrice?: bigint;
1712
+ maxFeePerGas?: bigint;
1713
+ maxPriorityFeePerGas?: bigint;
1714
+ nonce?: number;
1715
+ value?: bigint;
1716
+ }): Promise<void>;
1717
+ /**
1718
+ * Simulate setReceiveVersion
1719
+ * Returns gas estimate and result without sending transaction
1720
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1721
+ */
1722
+ setReceiveVersion(_version: bigint, options?: {
1723
+ accessList?: import("viem").AccessList;
1724
+ authorizationList?: import("viem").AuthorizationList;
1725
+ chain?: import("viem").Chain | null;
1726
+ dataSuffix?: `0x${string}`;
1727
+ gas?: bigint;
1728
+ gasPrice?: bigint;
1729
+ maxFeePerGas?: bigint;
1730
+ maxPriorityFeePerGas?: bigint;
1731
+ nonce?: number;
1732
+ value?: bigint;
1733
+ }): Promise<void>;
1734
+ /**
1735
+ * Simulate setSendVersion
1736
+ * Returns gas estimate and result without sending transaction
1737
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1738
+ */
1739
+ setSendVersion(_version: bigint, options?: {
1740
+ accessList?: import("viem").AccessList;
1741
+ authorizationList?: import("viem").AuthorizationList;
1742
+ chain?: import("viem").Chain | null;
1743
+ dataSuffix?: `0x${string}`;
1744
+ gas?: bigint;
1745
+ gasPrice?: bigint;
1746
+ maxFeePerGas?: bigint;
1747
+ maxPriorityFeePerGas?: bigint;
1748
+ nonce?: number;
1749
+ value?: bigint;
1750
+ }): Promise<void>;
1751
+ /**
1752
+ * Simulate setTrustedRemote
1753
+ * Returns gas estimate and result without sending transaction
1754
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1755
+ */
1756
+ setTrustedRemote(_remoteChainId: bigint, _path: `0x${string}`, options?: {
1757
+ accessList?: import("viem").AccessList;
1758
+ authorizationList?: import("viem").AuthorizationList;
1759
+ chain?: import("viem").Chain | null;
1760
+ dataSuffix?: `0x${string}`;
1761
+ gas?: bigint;
1762
+ gasPrice?: bigint;
1763
+ maxFeePerGas?: bigint;
1764
+ maxPriorityFeePerGas?: bigint;
1765
+ nonce?: number;
1766
+ value?: bigint;
1767
+ }): Promise<void>;
1768
+ /**
1769
+ * Simulate setTrustedRemoteAddress
1770
+ * Returns gas estimate and result without sending transaction
1771
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1772
+ */
1773
+ setTrustedRemoteAddress(_remoteChainId: bigint, _remoteAddress: `0x${string}`, options?: {
1774
+ accessList?: import("viem").AccessList;
1775
+ authorizationList?: import("viem").AuthorizationList;
1776
+ chain?: import("viem").Chain | null;
1777
+ dataSuffix?: `0x${string}`;
1778
+ gas?: bigint;
1779
+ gasPrice?: bigint;
1780
+ maxFeePerGas?: bigint;
1781
+ maxPriorityFeePerGas?: bigint;
1782
+ nonce?: number;
1783
+ value?: bigint;
1784
+ }): Promise<void>;
1785
+ /**
1786
+ * Simulate setUseCustomAdapterParams
1787
+ * Returns gas estimate and result without sending transaction
1788
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1789
+ */
1790
+ setUseCustomAdapterParams(_useCustomAdapterParams: boolean, options?: {
1791
+ accessList?: import("viem").AccessList;
1792
+ authorizationList?: import("viem").AuthorizationList;
1793
+ chain?: import("viem").Chain | null;
1794
+ dataSuffix?: `0x${string}`;
1795
+ gas?: bigint;
1796
+ gasPrice?: bigint;
1797
+ maxFeePerGas?: bigint;
1798
+ maxPriorityFeePerGas?: bigint;
1799
+ nonce?: number;
1800
+ value?: bigint;
1801
+ }): Promise<void>;
1802
+ /**
1803
+ * Simulate transfer
1804
+ * Returns gas estimate and result without sending transaction
1805
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1806
+ */
1807
+ transfer(to: `0x${string}`, amount: bigint, options?: {
1808
+ accessList?: import("viem").AccessList;
1809
+ authorizationList?: import("viem").AuthorizationList;
1810
+ chain?: import("viem").Chain | null;
1811
+ dataSuffix?: `0x${string}`;
1812
+ gas?: bigint;
1813
+ gasPrice?: bigint;
1814
+ maxFeePerGas?: bigint;
1815
+ maxPriorityFeePerGas?: bigint;
1816
+ nonce?: number;
1817
+ value?: bigint;
1818
+ }): Promise<boolean>;
1819
+ /**
1820
+ * Simulate transferFrom
1821
+ * Returns gas estimate and result without sending transaction
1822
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1823
+ */
1824
+ transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
1825
+ accessList?: import("viem").AccessList;
1826
+ authorizationList?: import("viem").AuthorizationList;
1827
+ chain?: import("viem").Chain | null;
1828
+ dataSuffix?: `0x${string}`;
1829
+ gas?: bigint;
1830
+ gasPrice?: bigint;
1831
+ maxFeePerGas?: bigint;
1832
+ maxPriorityFeePerGas?: bigint;
1833
+ nonce?: number;
1834
+ value?: bigint;
1835
+ }): Promise<boolean>;
1836
+ /**
1837
+ * Simulate transferOwnership
1838
+ * Returns gas estimate and result without sending transaction
1839
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1840
+ */
1841
+ transferOwnership(newOwner: `0x${string}`, options?: {
1842
+ accessList?: import("viem").AccessList;
1843
+ authorizationList?: import("viem").AuthorizationList;
1844
+ chain?: import("viem").Chain | null;
1845
+ dataSuffix?: `0x${string}`;
1846
+ gas?: bigint;
1847
+ gasPrice?: bigint;
1848
+ maxFeePerGas?: bigint;
1849
+ maxPriorityFeePerGas?: bigint;
1850
+ nonce?: number;
1851
+ value?: bigint;
1852
+ }): Promise<void>;
1853
+ };
1854
+ /**
1855
+ * Watch contract events
1856
+ *
1857
+ * @example
1858
+ * // Watch all Transfer events
1859
+ * const unwatch = contract.watch.Transfer((event) => {
1860
+ * console.log('Transfer:', event);
1861
+ * });
1862
+ *
1863
+ * // Stop watching
1864
+ * unwatch();
1865
+ */
1866
+ get watch(): {
1867
+ /**
1868
+ * Watch Approval events
1869
+ * @param callback Function to call when event is emitted
1870
+ * @param filter Optional filter for indexed parameters
1871
+ * @returns Unwatch function to stop listening
1872
+ */
1873
+ Approval: (callback: (event: {
1874
+ owner: `0x${string}`;
1875
+ spender: `0x${string}`;
1876
+ value: bigint;
1877
+ }) => void, filter?: {
1878
+ owner?: `0x${string}` | `0x${string}`[] | null;
1879
+ spender?: `0x${string}` | `0x${string}`[] | null;
1880
+ }) => () => void;
1881
+ /**
1882
+ * Watch MessageFailed events
1883
+ * @param callback Function to call when event is emitted
1884
+ * @param filter Optional filter for indexed parameters
1885
+ * @returns Unwatch function to stop listening
1886
+ */
1887
+ MessageFailed: (callback: (event: {
1888
+ _srcChainId: bigint;
1889
+ _srcAddress: `0x${string}`;
1890
+ _nonce: bigint;
1891
+ _payload: `0x${string}`;
1892
+ _reason: `0x${string}`;
1893
+ }) => void) => () => void;
1894
+ /**
1895
+ * Watch OwnershipTransferred events
1896
+ * @param callback Function to call when event is emitted
1897
+ * @param filter Optional filter for indexed parameters
1898
+ * @returns Unwatch function to stop listening
1899
+ */
1900
+ OwnershipTransferred: (callback: (event: {
1901
+ previousOwner: `0x${string}`;
1902
+ newOwner: `0x${string}`;
1903
+ }) => void, filter?: {
1904
+ previousOwner?: `0x${string}` | `0x${string}`[] | null;
1905
+ newOwner?: `0x${string}` | `0x${string}`[] | null;
1906
+ }) => () => void;
1907
+ /**
1908
+ * Watch ReceiveFromChain events
1909
+ * @param callback Function to call when event is emitted
1910
+ * @param filter Optional filter for indexed parameters
1911
+ * @returns Unwatch function to stop listening
1912
+ */
1913
+ ReceiveFromChain: (callback: (event: {
1914
+ _srcChainId: bigint;
1915
+ _to: `0x${string}`;
1916
+ _amount: bigint;
1917
+ }) => void, filter?: {
1918
+ _srcChainId?: number | number[] | null;
1919
+ _to?: `0x${string}` | `0x${string}`[] | null;
1920
+ }) => () => void;
1921
+ /**
1922
+ * Watch RetryMessageSuccess events
1923
+ * @param callback Function to call when event is emitted
1924
+ * @param filter Optional filter for indexed parameters
1925
+ * @returns Unwatch function to stop listening
1926
+ */
1927
+ RetryMessageSuccess: (callback: (event: {
1928
+ _srcChainId: bigint;
1929
+ _srcAddress: `0x${string}`;
1930
+ _nonce: bigint;
1931
+ _payloadHash: `0x${string}`;
1932
+ }) => void) => () => void;
1933
+ /**
1934
+ * Watch SendToChain events
1935
+ * @param callback Function to call when event is emitted
1936
+ * @param filter Optional filter for indexed parameters
1937
+ * @returns Unwatch function to stop listening
1938
+ */
1939
+ SendToChain: (callback: (event: {
1940
+ _dstChainId: bigint;
1941
+ _from: `0x${string}`;
1942
+ _toAddress: `0x${string}`;
1943
+ _amount: bigint;
1944
+ }) => void, filter?: {
1945
+ _dstChainId?: number | number[] | null;
1946
+ _from?: `0x${string}` | `0x${string}`[] | null;
1947
+ }) => () => void;
1948
+ /**
1949
+ * Watch SetMinDstGas events
1950
+ * @param callback Function to call when event is emitted
1951
+ * @param filter Optional filter for indexed parameters
1952
+ * @returns Unwatch function to stop listening
1953
+ */
1954
+ SetMinDstGas: (callback: (event: {
1955
+ _dstChainId: bigint;
1956
+ _type: bigint;
1957
+ _minDstGas: bigint;
1958
+ }) => void) => () => void;
1959
+ /**
1960
+ * Watch SetPrecrime events
1961
+ * @param callback Function to call when event is emitted
1962
+ * @param filter Optional filter for indexed parameters
1963
+ * @returns Unwatch function to stop listening
1964
+ */
1965
+ SetPrecrime: (callback: (event: {
1966
+ precrime: `0x${string}`;
1967
+ }) => void) => () => void;
1968
+ /**
1969
+ * Watch SetTrustedRemote events
1970
+ * @param callback Function to call when event is emitted
1971
+ * @param filter Optional filter for indexed parameters
1972
+ * @returns Unwatch function to stop listening
1973
+ */
1974
+ SetTrustedRemote: (callback: (event: {
1975
+ _remoteChainId: bigint;
1976
+ _path: `0x${string}`;
1977
+ }) => void) => () => void;
1978
+ /**
1979
+ * Watch SetTrustedRemoteAddress events
1980
+ * @param callback Function to call when event is emitted
1981
+ * @param filter Optional filter for indexed parameters
1982
+ * @returns Unwatch function to stop listening
1983
+ */
1984
+ SetTrustedRemoteAddress: (callback: (event: {
1985
+ _remoteChainId: bigint;
1986
+ _remoteAddress: `0x${string}`;
1987
+ }) => void) => () => void;
1988
+ /**
1989
+ * Watch SetUseCustomAdapterParams events
1990
+ * @param callback Function to call when event is emitted
1991
+ * @param filter Optional filter for indexed parameters
1992
+ * @returns Unwatch function to stop listening
1993
+ */
1994
+ SetUseCustomAdapterParams: (callback: (event: {
1995
+ _useCustomAdapterParams: boolean;
1996
+ }) => void) => () => void;
1997
+ /**
1998
+ * Watch Transfer events
1999
+ * @param callback Function to call when event is emitted
2000
+ * @param filter Optional filter for indexed parameters
2001
+ * @returns Unwatch function to stop listening
2002
+ */
2003
+ Transfer: (callback: (event: {
2004
+ from: `0x${string}`;
2005
+ to: `0x${string}`;
2006
+ value: bigint;
2007
+ }) => void, filter?: {
2008
+ from?: `0x${string}` | `0x${string}`[] | null;
2009
+ to?: `0x${string}` | `0x${string}`[] | null;
2010
+ }) => () => void;
2011
+ };
2012
+ }