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