@gitmyabi/based 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,2228 @@
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
+ * BasedOFT_json ABI
81
+ *
82
+ * This ABI is typed using viem's type system for full type safety.
83
+ */
84
+ export declare const BasedOFT_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: "address";
562
+ readonly name: "from";
563
+ readonly type: "address";
564
+ }, {
565
+ readonly internalType: "uint256";
566
+ readonly name: "amount";
567
+ readonly type: "uint256";
568
+ }];
569
+ readonly name: "burn";
570
+ readonly outputs: readonly [{
571
+ readonly internalType: "bool";
572
+ readonly name: "";
573
+ readonly type: "bool";
574
+ }];
575
+ readonly stateMutability: "nonpayable";
576
+ readonly type: "function";
577
+ }, {
578
+ readonly inputs: readonly [{
579
+ readonly internalType: "uint32";
580
+ readonly name: "_eid";
581
+ readonly type: "uint32";
582
+ }, {
583
+ readonly internalType: "uint16";
584
+ readonly name: "_msgType";
585
+ readonly type: "uint16";
586
+ }, {
587
+ readonly internalType: "bytes";
588
+ readonly name: "_extraOptions";
589
+ readonly type: "bytes";
590
+ }];
591
+ readonly name: "combineOptions";
592
+ readonly outputs: readonly [{
593
+ readonly internalType: "bytes";
594
+ readonly name: "";
595
+ readonly type: "bytes";
596
+ }];
597
+ readonly stateMutability: "view";
598
+ readonly type: "function";
599
+ }, {
600
+ readonly inputs: readonly [];
601
+ readonly name: "decimalConversionRate";
602
+ readonly outputs: readonly [{
603
+ readonly internalType: "uint256";
604
+ readonly name: "";
605
+ readonly type: "uint256";
606
+ }];
607
+ readonly stateMutability: "view";
608
+ readonly type: "function";
609
+ }, {
610
+ readonly inputs: readonly [];
611
+ readonly name: "decimals";
612
+ readonly outputs: readonly [{
613
+ readonly internalType: "uint8";
614
+ readonly name: "";
615
+ readonly type: "uint8";
616
+ }];
617
+ readonly stateMutability: "view";
618
+ readonly type: "function";
619
+ }, {
620
+ readonly inputs: readonly [];
621
+ readonly name: "endpoint";
622
+ readonly outputs: readonly [{
623
+ readonly internalType: "contract ILayerZeroEndpointV2";
624
+ readonly name: "";
625
+ readonly type: "address";
626
+ }];
627
+ readonly stateMutability: "view";
628
+ readonly type: "function";
629
+ }, {
630
+ readonly inputs: readonly [{
631
+ readonly internalType: "uint32";
632
+ readonly name: "eid";
633
+ readonly type: "uint32";
634
+ }, {
635
+ readonly internalType: "uint16";
636
+ readonly name: "msgType";
637
+ readonly type: "uint16";
638
+ }];
639
+ readonly name: "enforcedOptions";
640
+ readonly outputs: readonly [{
641
+ readonly internalType: "bytes";
642
+ readonly name: "enforcedOption";
643
+ readonly type: "bytes";
644
+ }];
645
+ readonly stateMutability: "view";
646
+ readonly type: "function";
647
+ }, {
648
+ readonly inputs: readonly [{
649
+ readonly components: readonly [{
650
+ readonly internalType: "uint32";
651
+ readonly name: "srcEid";
652
+ readonly type: "uint32";
653
+ }, {
654
+ readonly internalType: "bytes32";
655
+ readonly name: "sender";
656
+ readonly type: "bytes32";
657
+ }, {
658
+ readonly internalType: "uint64";
659
+ readonly name: "nonce";
660
+ readonly type: "uint64";
661
+ }];
662
+ readonly internalType: "struct Origin";
663
+ readonly name: "";
664
+ readonly type: "tuple";
665
+ }, {
666
+ readonly internalType: "bytes";
667
+ readonly name: "";
668
+ readonly type: "bytes";
669
+ }, {
670
+ readonly internalType: "address";
671
+ readonly name: "_sender";
672
+ readonly type: "address";
673
+ }];
674
+ readonly name: "isComposeMsgSender";
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 internalType: "uint32";
685
+ readonly name: "_eid";
686
+ readonly type: "uint32";
687
+ }, {
688
+ readonly internalType: "bytes32";
689
+ readonly name: "_peer";
690
+ readonly type: "bytes32";
691
+ }];
692
+ readonly name: "isPeer";
693
+ readonly outputs: readonly [{
694
+ readonly internalType: "bool";
695
+ readonly name: "";
696
+ readonly type: "bool";
697
+ }];
698
+ readonly stateMutability: "view";
699
+ readonly type: "function";
700
+ }, {
701
+ readonly inputs: readonly [{
702
+ readonly components: readonly [{
703
+ readonly internalType: "uint32";
704
+ readonly name: "srcEid";
705
+ readonly type: "uint32";
706
+ }, {
707
+ readonly internalType: "bytes32";
708
+ readonly name: "sender";
709
+ readonly type: "bytes32";
710
+ }, {
711
+ readonly internalType: "uint64";
712
+ readonly name: "nonce";
713
+ readonly type: "uint64";
714
+ }];
715
+ readonly internalType: "struct Origin";
716
+ readonly name: "_origin";
717
+ readonly type: "tuple";
718
+ }, {
719
+ readonly internalType: "bytes32";
720
+ readonly name: "_guid";
721
+ readonly type: "bytes32";
722
+ }, {
723
+ readonly internalType: "bytes";
724
+ readonly name: "_message";
725
+ readonly type: "bytes";
726
+ }, {
727
+ readonly internalType: "address";
728
+ readonly name: "_executor";
729
+ readonly type: "address";
730
+ }, {
731
+ readonly internalType: "bytes";
732
+ readonly name: "_extraData";
733
+ readonly type: "bytes";
734
+ }];
735
+ readonly name: "lzReceive";
736
+ readonly outputs: readonly [];
737
+ readonly stateMutability: "payable";
738
+ readonly type: "function";
739
+ }, {
740
+ readonly inputs: readonly [{
741
+ readonly components: readonly [{
742
+ readonly components: readonly [{
743
+ readonly internalType: "uint32";
744
+ readonly name: "srcEid";
745
+ readonly type: "uint32";
746
+ }, {
747
+ readonly internalType: "bytes32";
748
+ readonly name: "sender";
749
+ readonly type: "bytes32";
750
+ }, {
751
+ readonly internalType: "uint64";
752
+ readonly name: "nonce";
753
+ readonly type: "uint64";
754
+ }];
755
+ readonly internalType: "struct Origin";
756
+ readonly name: "origin";
757
+ readonly type: "tuple";
758
+ }, {
759
+ readonly internalType: "uint32";
760
+ readonly name: "dstEid";
761
+ readonly type: "uint32";
762
+ }, {
763
+ readonly internalType: "address";
764
+ readonly name: "receiver";
765
+ readonly type: "address";
766
+ }, {
767
+ readonly internalType: "bytes32";
768
+ readonly name: "guid";
769
+ readonly type: "bytes32";
770
+ }, {
771
+ readonly internalType: "uint256";
772
+ readonly name: "value";
773
+ readonly type: "uint256";
774
+ }, {
775
+ readonly internalType: "address";
776
+ readonly name: "executor";
777
+ readonly type: "address";
778
+ }, {
779
+ readonly internalType: "bytes";
780
+ readonly name: "message";
781
+ readonly type: "bytes";
782
+ }, {
783
+ readonly internalType: "bytes";
784
+ readonly name: "extraData";
785
+ readonly type: "bytes";
786
+ }];
787
+ readonly internalType: "struct InboundPacket[]";
788
+ readonly name: "_packets";
789
+ readonly type: "tuple[]";
790
+ }];
791
+ readonly name: "lzReceiveAndRevert";
792
+ readonly outputs: readonly [];
793
+ readonly stateMutability: "payable";
794
+ readonly type: "function";
795
+ }, {
796
+ readonly inputs: readonly [{
797
+ readonly components: readonly [{
798
+ readonly internalType: "uint32";
799
+ readonly name: "srcEid";
800
+ readonly type: "uint32";
801
+ }, {
802
+ readonly internalType: "bytes32";
803
+ readonly name: "sender";
804
+ readonly type: "bytes32";
805
+ }, {
806
+ readonly internalType: "uint64";
807
+ readonly name: "nonce";
808
+ readonly type: "uint64";
809
+ }];
810
+ readonly internalType: "struct Origin";
811
+ readonly name: "_origin";
812
+ readonly type: "tuple";
813
+ }, {
814
+ readonly internalType: "bytes32";
815
+ readonly name: "_guid";
816
+ readonly type: "bytes32";
817
+ }, {
818
+ readonly internalType: "bytes";
819
+ readonly name: "_message";
820
+ readonly type: "bytes";
821
+ }, {
822
+ readonly internalType: "address";
823
+ readonly name: "_executor";
824
+ readonly type: "address";
825
+ }, {
826
+ readonly internalType: "bytes";
827
+ readonly name: "_extraData";
828
+ readonly type: "bytes";
829
+ }];
830
+ readonly name: "lzReceiveSimulate";
831
+ readonly outputs: readonly [];
832
+ readonly stateMutability: "payable";
833
+ readonly type: "function";
834
+ }, {
835
+ readonly inputs: readonly [{
836
+ readonly internalType: "address";
837
+ readonly name: "to";
838
+ readonly type: "address";
839
+ }, {
840
+ readonly internalType: "uint256";
841
+ readonly name: "amount";
842
+ readonly type: "uint256";
843
+ }];
844
+ readonly name: "mint";
845
+ readonly outputs: readonly [{
846
+ readonly internalType: "bool";
847
+ readonly name: "";
848
+ readonly type: "bool";
849
+ }];
850
+ readonly stateMutability: "nonpayable";
851
+ readonly type: "function";
852
+ }, {
853
+ readonly inputs: readonly [];
854
+ readonly name: "msgInspector";
855
+ readonly outputs: readonly [{
856
+ readonly internalType: "address";
857
+ readonly name: "";
858
+ readonly type: "address";
859
+ }];
860
+ readonly stateMutability: "view";
861
+ readonly type: "function";
862
+ }, {
863
+ readonly inputs: readonly [];
864
+ readonly name: "name";
865
+ readonly outputs: readonly [{
866
+ readonly internalType: "string";
867
+ readonly name: "";
868
+ readonly type: "string";
869
+ }];
870
+ readonly stateMutability: "view";
871
+ readonly type: "function";
872
+ }, {
873
+ readonly inputs: readonly [{
874
+ readonly internalType: "uint32";
875
+ readonly name: "";
876
+ readonly type: "uint32";
877
+ }, {
878
+ readonly internalType: "bytes32";
879
+ readonly name: "";
880
+ readonly type: "bytes32";
881
+ }];
882
+ readonly name: "nextNonce";
883
+ readonly outputs: readonly [{
884
+ readonly internalType: "uint64";
885
+ readonly name: "nonce";
886
+ readonly type: "uint64";
887
+ }];
888
+ readonly stateMutability: "view";
889
+ readonly type: "function";
890
+ }, {
891
+ readonly inputs: readonly [];
892
+ readonly name: "oApp";
893
+ readonly outputs: readonly [{
894
+ readonly internalType: "address";
895
+ readonly name: "";
896
+ readonly type: "address";
897
+ }];
898
+ readonly stateMutability: "view";
899
+ readonly type: "function";
900
+ }, {
901
+ readonly inputs: readonly [];
902
+ readonly name: "oAppVersion";
903
+ readonly outputs: readonly [{
904
+ readonly internalType: "uint64";
905
+ readonly name: "senderVersion";
906
+ readonly type: "uint64";
907
+ }, {
908
+ readonly internalType: "uint64";
909
+ readonly name: "receiverVersion";
910
+ readonly type: "uint64";
911
+ }];
912
+ readonly stateMutability: "pure";
913
+ readonly type: "function";
914
+ }, {
915
+ readonly inputs: readonly [];
916
+ readonly name: "oftVersion";
917
+ readonly outputs: readonly [{
918
+ readonly internalType: "bytes4";
919
+ readonly name: "interfaceId";
920
+ readonly type: "bytes4";
921
+ }, {
922
+ readonly internalType: "uint64";
923
+ readonly name: "version";
924
+ readonly type: "uint64";
925
+ }];
926
+ readonly stateMutability: "pure";
927
+ readonly type: "function";
928
+ }, {
929
+ readonly inputs: readonly [];
930
+ readonly name: "owner";
931
+ readonly outputs: readonly [{
932
+ readonly internalType: "address";
933
+ readonly name: "";
934
+ readonly type: "address";
935
+ }];
936
+ readonly stateMutability: "view";
937
+ readonly type: "function";
938
+ }, {
939
+ readonly inputs: readonly [{
940
+ readonly internalType: "uint32";
941
+ readonly name: "eid";
942
+ readonly type: "uint32";
943
+ }];
944
+ readonly name: "peers";
945
+ readonly outputs: readonly [{
946
+ readonly internalType: "bytes32";
947
+ readonly name: "peer";
948
+ readonly type: "bytes32";
949
+ }];
950
+ readonly stateMutability: "view";
951
+ readonly type: "function";
952
+ }, {
953
+ readonly inputs: readonly [];
954
+ readonly name: "preCrime";
955
+ readonly outputs: readonly [{
956
+ readonly internalType: "address";
957
+ readonly name: "";
958
+ readonly type: "address";
959
+ }];
960
+ readonly stateMutability: "view";
961
+ readonly type: "function";
962
+ }, {
963
+ readonly inputs: readonly [{
964
+ readonly components: readonly [{
965
+ readonly internalType: "uint32";
966
+ readonly name: "dstEid";
967
+ readonly type: "uint32";
968
+ }, {
969
+ readonly internalType: "bytes32";
970
+ readonly name: "to";
971
+ readonly type: "bytes32";
972
+ }, {
973
+ readonly internalType: "uint256";
974
+ readonly name: "amountLD";
975
+ readonly type: "uint256";
976
+ }, {
977
+ readonly internalType: "uint256";
978
+ readonly name: "minAmountLD";
979
+ readonly type: "uint256";
980
+ }, {
981
+ readonly internalType: "bytes";
982
+ readonly name: "extraOptions";
983
+ readonly type: "bytes";
984
+ }, {
985
+ readonly internalType: "bytes";
986
+ readonly name: "composeMsg";
987
+ readonly type: "bytes";
988
+ }, {
989
+ readonly internalType: "bytes";
990
+ readonly name: "oftCmd";
991
+ readonly type: "bytes";
992
+ }];
993
+ readonly internalType: "struct SendParam";
994
+ readonly name: "_sendParam";
995
+ readonly type: "tuple";
996
+ }];
997
+ readonly name: "quoteOFT";
998
+ readonly outputs: readonly [{
999
+ readonly components: readonly [{
1000
+ readonly internalType: "uint256";
1001
+ readonly name: "minAmountLD";
1002
+ readonly type: "uint256";
1003
+ }, {
1004
+ readonly internalType: "uint256";
1005
+ readonly name: "maxAmountLD";
1006
+ readonly type: "uint256";
1007
+ }];
1008
+ readonly internalType: "struct OFTLimit";
1009
+ readonly name: "oftLimit";
1010
+ readonly type: "tuple";
1011
+ }, {
1012
+ readonly components: readonly [{
1013
+ readonly internalType: "int256";
1014
+ readonly name: "feeAmountLD";
1015
+ readonly type: "int256";
1016
+ }, {
1017
+ readonly internalType: "string";
1018
+ readonly name: "description";
1019
+ readonly type: "string";
1020
+ }];
1021
+ readonly internalType: "struct OFTFeeDetail[]";
1022
+ readonly name: "oftFeeDetails";
1023
+ readonly type: "tuple[]";
1024
+ }, {
1025
+ readonly components: readonly [{
1026
+ readonly internalType: "uint256";
1027
+ readonly name: "amountSentLD";
1028
+ readonly type: "uint256";
1029
+ }, {
1030
+ readonly internalType: "uint256";
1031
+ readonly name: "amountReceivedLD";
1032
+ readonly type: "uint256";
1033
+ }];
1034
+ readonly internalType: "struct OFTReceipt";
1035
+ readonly name: "oftReceipt";
1036
+ readonly type: "tuple";
1037
+ }];
1038
+ readonly stateMutability: "view";
1039
+ readonly type: "function";
1040
+ }, {
1041
+ readonly inputs: readonly [{
1042
+ readonly components: readonly [{
1043
+ readonly internalType: "uint32";
1044
+ readonly name: "dstEid";
1045
+ readonly type: "uint32";
1046
+ }, {
1047
+ readonly internalType: "bytes32";
1048
+ readonly name: "to";
1049
+ readonly type: "bytes32";
1050
+ }, {
1051
+ readonly internalType: "uint256";
1052
+ readonly name: "amountLD";
1053
+ readonly type: "uint256";
1054
+ }, {
1055
+ readonly internalType: "uint256";
1056
+ readonly name: "minAmountLD";
1057
+ readonly type: "uint256";
1058
+ }, {
1059
+ readonly internalType: "bytes";
1060
+ readonly name: "extraOptions";
1061
+ readonly type: "bytes";
1062
+ }, {
1063
+ readonly internalType: "bytes";
1064
+ readonly name: "composeMsg";
1065
+ readonly type: "bytes";
1066
+ }, {
1067
+ readonly internalType: "bytes";
1068
+ readonly name: "oftCmd";
1069
+ readonly type: "bytes";
1070
+ }];
1071
+ readonly internalType: "struct SendParam";
1072
+ readonly name: "_sendParam";
1073
+ readonly type: "tuple";
1074
+ }, {
1075
+ readonly internalType: "bool";
1076
+ readonly name: "_payInLzToken";
1077
+ readonly type: "bool";
1078
+ }];
1079
+ readonly name: "quoteSend";
1080
+ readonly outputs: readonly [{
1081
+ readonly components: readonly [{
1082
+ readonly internalType: "uint256";
1083
+ readonly name: "nativeFee";
1084
+ readonly type: "uint256";
1085
+ }, {
1086
+ readonly internalType: "uint256";
1087
+ readonly name: "lzTokenFee";
1088
+ readonly type: "uint256";
1089
+ }];
1090
+ readonly internalType: "struct MessagingFee";
1091
+ readonly name: "msgFee";
1092
+ readonly type: "tuple";
1093
+ }];
1094
+ readonly stateMutability: "view";
1095
+ readonly type: "function";
1096
+ }, {
1097
+ readonly inputs: readonly [];
1098
+ readonly name: "renounceOwnership";
1099
+ readonly outputs: readonly [];
1100
+ readonly stateMutability: "nonpayable";
1101
+ readonly type: "function";
1102
+ }, {
1103
+ readonly inputs: readonly [{
1104
+ readonly components: readonly [{
1105
+ readonly internalType: "uint32";
1106
+ readonly name: "dstEid";
1107
+ readonly type: "uint32";
1108
+ }, {
1109
+ readonly internalType: "bytes32";
1110
+ readonly name: "to";
1111
+ readonly type: "bytes32";
1112
+ }, {
1113
+ readonly internalType: "uint256";
1114
+ readonly name: "amountLD";
1115
+ readonly type: "uint256";
1116
+ }, {
1117
+ readonly internalType: "uint256";
1118
+ readonly name: "minAmountLD";
1119
+ readonly type: "uint256";
1120
+ }, {
1121
+ readonly internalType: "bytes";
1122
+ readonly name: "extraOptions";
1123
+ readonly type: "bytes";
1124
+ }, {
1125
+ readonly internalType: "bytes";
1126
+ readonly name: "composeMsg";
1127
+ readonly type: "bytes";
1128
+ }, {
1129
+ readonly internalType: "bytes";
1130
+ readonly name: "oftCmd";
1131
+ readonly type: "bytes";
1132
+ }];
1133
+ readonly internalType: "struct SendParam";
1134
+ readonly name: "_sendParam";
1135
+ readonly type: "tuple";
1136
+ }, {
1137
+ readonly components: readonly [{
1138
+ readonly internalType: "uint256";
1139
+ readonly name: "nativeFee";
1140
+ readonly type: "uint256";
1141
+ }, {
1142
+ readonly internalType: "uint256";
1143
+ readonly name: "lzTokenFee";
1144
+ readonly type: "uint256";
1145
+ }];
1146
+ readonly internalType: "struct MessagingFee";
1147
+ readonly name: "_fee";
1148
+ readonly type: "tuple";
1149
+ }, {
1150
+ readonly internalType: "address";
1151
+ readonly name: "_refundAddress";
1152
+ readonly type: "address";
1153
+ }];
1154
+ readonly name: "send";
1155
+ readonly outputs: readonly [{
1156
+ readonly components: readonly [{
1157
+ readonly internalType: "bytes32";
1158
+ readonly name: "guid";
1159
+ readonly type: "bytes32";
1160
+ }, {
1161
+ readonly internalType: "uint64";
1162
+ readonly name: "nonce";
1163
+ readonly type: "uint64";
1164
+ }, {
1165
+ readonly components: readonly [{
1166
+ readonly internalType: "uint256";
1167
+ readonly name: "nativeFee";
1168
+ readonly type: "uint256";
1169
+ }, {
1170
+ readonly internalType: "uint256";
1171
+ readonly name: "lzTokenFee";
1172
+ readonly type: "uint256";
1173
+ }];
1174
+ readonly internalType: "struct MessagingFee";
1175
+ readonly name: "fee";
1176
+ readonly type: "tuple";
1177
+ }];
1178
+ readonly internalType: "struct MessagingReceipt";
1179
+ readonly name: "msgReceipt";
1180
+ readonly type: "tuple";
1181
+ }, {
1182
+ readonly components: readonly [{
1183
+ readonly internalType: "uint256";
1184
+ readonly name: "amountSentLD";
1185
+ readonly type: "uint256";
1186
+ }, {
1187
+ readonly internalType: "uint256";
1188
+ readonly name: "amountReceivedLD";
1189
+ readonly type: "uint256";
1190
+ }];
1191
+ readonly internalType: "struct OFTReceipt";
1192
+ readonly name: "oftReceipt";
1193
+ readonly type: "tuple";
1194
+ }];
1195
+ readonly stateMutability: "payable";
1196
+ readonly type: "function";
1197
+ }, {
1198
+ readonly inputs: readonly [{
1199
+ readonly internalType: "address";
1200
+ readonly name: "_delegate";
1201
+ readonly type: "address";
1202
+ }];
1203
+ readonly name: "setDelegate";
1204
+ readonly outputs: readonly [];
1205
+ readonly stateMutability: "nonpayable";
1206
+ readonly type: "function";
1207
+ }, {
1208
+ readonly inputs: readonly [{
1209
+ readonly components: readonly [{
1210
+ readonly internalType: "uint32";
1211
+ readonly name: "eid";
1212
+ readonly type: "uint32";
1213
+ }, {
1214
+ readonly internalType: "uint16";
1215
+ readonly name: "msgType";
1216
+ readonly type: "uint16";
1217
+ }, {
1218
+ readonly internalType: "bytes";
1219
+ readonly name: "options";
1220
+ readonly type: "bytes";
1221
+ }];
1222
+ readonly internalType: "struct EnforcedOptionParam[]";
1223
+ readonly name: "_enforcedOptions";
1224
+ readonly type: "tuple[]";
1225
+ }];
1226
+ readonly name: "setEnforcedOptions";
1227
+ readonly outputs: readonly [];
1228
+ readonly stateMutability: "nonpayable";
1229
+ readonly type: "function";
1230
+ }, {
1231
+ readonly inputs: readonly [{
1232
+ readonly internalType: "address";
1233
+ readonly name: "_msgInspector";
1234
+ readonly type: "address";
1235
+ }];
1236
+ readonly name: "setMsgInspector";
1237
+ readonly outputs: readonly [];
1238
+ readonly stateMutability: "nonpayable";
1239
+ readonly type: "function";
1240
+ }, {
1241
+ readonly inputs: readonly [{
1242
+ readonly internalType: "uint32";
1243
+ readonly name: "_eid";
1244
+ readonly type: "uint32";
1245
+ }, {
1246
+ readonly internalType: "bytes32";
1247
+ readonly name: "_peer";
1248
+ readonly type: "bytes32";
1249
+ }];
1250
+ readonly name: "setPeer";
1251
+ readonly outputs: readonly [];
1252
+ readonly stateMutability: "nonpayable";
1253
+ readonly type: "function";
1254
+ }, {
1255
+ readonly inputs: readonly [{
1256
+ readonly internalType: "address";
1257
+ readonly name: "_preCrime";
1258
+ readonly type: "address";
1259
+ }];
1260
+ readonly name: "setPreCrime";
1261
+ readonly outputs: readonly [];
1262
+ readonly stateMutability: "nonpayable";
1263
+ readonly type: "function";
1264
+ }, {
1265
+ readonly inputs: readonly [];
1266
+ readonly name: "sharedDecimals";
1267
+ readonly outputs: readonly [{
1268
+ readonly internalType: "uint8";
1269
+ readonly name: "";
1270
+ readonly type: "uint8";
1271
+ }];
1272
+ readonly stateMutability: "view";
1273
+ readonly type: "function";
1274
+ }, {
1275
+ readonly inputs: readonly [];
1276
+ readonly name: "symbol";
1277
+ readonly outputs: readonly [{
1278
+ readonly internalType: "string";
1279
+ readonly name: "";
1280
+ readonly type: "string";
1281
+ }];
1282
+ readonly stateMutability: "view";
1283
+ readonly type: "function";
1284
+ }, {
1285
+ readonly inputs: readonly [];
1286
+ readonly name: "token";
1287
+ readonly outputs: readonly [{
1288
+ readonly internalType: "address";
1289
+ readonly name: "";
1290
+ readonly type: "address";
1291
+ }];
1292
+ readonly stateMutability: "view";
1293
+ readonly type: "function";
1294
+ }, {
1295
+ readonly inputs: readonly [];
1296
+ readonly name: "totalSupply";
1297
+ readonly outputs: readonly [{
1298
+ readonly internalType: "uint256";
1299
+ readonly name: "";
1300
+ readonly type: "uint256";
1301
+ }];
1302
+ readonly stateMutability: "view";
1303
+ readonly type: "function";
1304
+ }, {
1305
+ readonly inputs: readonly [{
1306
+ readonly internalType: "address";
1307
+ readonly name: "to";
1308
+ readonly type: "address";
1309
+ }, {
1310
+ readonly internalType: "uint256";
1311
+ readonly name: "value";
1312
+ readonly type: "uint256";
1313
+ }];
1314
+ readonly name: "transfer";
1315
+ readonly outputs: readonly [{
1316
+ readonly internalType: "bool";
1317
+ readonly name: "";
1318
+ readonly type: "bool";
1319
+ }];
1320
+ readonly stateMutability: "nonpayable";
1321
+ readonly type: "function";
1322
+ }, {
1323
+ readonly inputs: readonly [{
1324
+ readonly internalType: "address";
1325
+ readonly name: "from";
1326
+ readonly type: "address";
1327
+ }, {
1328
+ readonly internalType: "address";
1329
+ readonly name: "to";
1330
+ readonly type: "address";
1331
+ }, {
1332
+ readonly internalType: "uint256";
1333
+ readonly name: "value";
1334
+ readonly type: "uint256";
1335
+ }];
1336
+ readonly name: "transferFrom";
1337
+ readonly outputs: readonly [{
1338
+ readonly internalType: "bool";
1339
+ readonly name: "";
1340
+ readonly type: "bool";
1341
+ }];
1342
+ readonly stateMutability: "nonpayable";
1343
+ readonly type: "function";
1344
+ }, {
1345
+ readonly inputs: readonly [{
1346
+ readonly internalType: "address";
1347
+ readonly name: "newOwner";
1348
+ readonly type: "address";
1349
+ }];
1350
+ readonly name: "transferOwnership";
1351
+ readonly outputs: readonly [];
1352
+ readonly stateMutability: "nonpayable";
1353
+ readonly type: "function";
1354
+ }];
1355
+ /**
1356
+ * Type-safe ABI for BasedOFT_json
1357
+ */
1358
+ export type BasedOFT_jsonAbi = typeof BasedOFT_jsonAbi;
1359
+ /**
1360
+ * Contract instance type for BasedOFT_json
1361
+ */
1362
+ export type BasedOFT_jsonContract = any;
1363
+ /**
1364
+ * BasedOFT_json Contract Class
1365
+ *
1366
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
1367
+ *
1368
+ * @example
1369
+ * ```typescript
1370
+ * import { createPublicClient, createWalletClient, http } from 'viem';
1371
+ * import { mainnet } from 'viem/chains';
1372
+ * import { BasedOFT_json } from 'BasedOFT_json';
1373
+ *
1374
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
1375
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
1376
+ *
1377
+ * const contract = new BasedOFT_json('0x...', { publicClient, walletClient });
1378
+ *
1379
+ * // Read functions
1380
+ * const result = await contract.balanceOf('0x...');
1381
+ *
1382
+ * // Write functions
1383
+ * const hash = await contract.transfer('0x...', 1000n);
1384
+ *
1385
+ * // Simulate transactions (dry-run)
1386
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
1387
+ * console.log('Gas estimate:', simulation.request.gas);
1388
+ *
1389
+ * // Watch events
1390
+ * const unwatch = contract.watch.Transfer((event) => {
1391
+ * console.log('Transfer event:', event);
1392
+ * });
1393
+ * ```
1394
+ */
1395
+ export declare class BasedOFT_json {
1396
+ private contract;
1397
+ private contractAddress;
1398
+ private publicClient;
1399
+ constructor(address: Address, clients: {
1400
+ publicClient: PublicClient;
1401
+ walletClient?: WalletClient;
1402
+ });
1403
+ /**
1404
+ * Get the contract address
1405
+ */
1406
+ get address(): Address;
1407
+ /**
1408
+ * Get the underlying viem contract instance
1409
+ */
1410
+ getContract(): BasedOFT_jsonContract;
1411
+ /**
1412
+ * SEND
1413
+ * view
1414
+ */
1415
+ SEND(): Promise<bigint>;
1416
+ /**
1417
+ * SEND_AND_CALL
1418
+ * view
1419
+ */
1420
+ SEND_AND_CALL(): Promise<bigint>;
1421
+ /**
1422
+ * allowInitializePath
1423
+ * view
1424
+ */
1425
+ allowInitializePath(origin: Origin): Promise<boolean>;
1426
+ /**
1427
+ * allowance
1428
+ * view
1429
+ */
1430
+ allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
1431
+ /**
1432
+ * approvalRequired
1433
+ * pure
1434
+ */
1435
+ approvalRequired(): Promise<boolean>;
1436
+ /**
1437
+ * balanceOf
1438
+ * view
1439
+ */
1440
+ balanceOf(account: `0x${string}`): Promise<bigint>;
1441
+ /**
1442
+ * combineOptions
1443
+ * view
1444
+ */
1445
+ combineOptions(_eid: bigint, _msgType: bigint, _extraOptions: `0x${string}`): Promise<`0x${string}`>;
1446
+ /**
1447
+ * decimalConversionRate
1448
+ * view
1449
+ */
1450
+ decimalConversionRate(): Promise<bigint>;
1451
+ /**
1452
+ * decimals
1453
+ * view
1454
+ */
1455
+ decimals(): Promise<bigint>;
1456
+ /**
1457
+ * endpoint
1458
+ * view
1459
+ */
1460
+ endpoint(): Promise<`0x${string}`>;
1461
+ /**
1462
+ * enforcedOptions
1463
+ * view
1464
+ */
1465
+ enforcedOptions(eid: bigint, msgType: bigint): Promise<`0x${string}`>;
1466
+ /**
1467
+ * isComposeMsgSender
1468
+ * view
1469
+ */
1470
+ isComposeMsgSender(arg0: Origin, arg1: `0x${string}`, _sender: `0x${string}`): Promise<boolean>;
1471
+ /**
1472
+ * isPeer
1473
+ * view
1474
+ */
1475
+ isPeer(_eid: bigint, _peer: `0x${string}`): Promise<boolean>;
1476
+ /**
1477
+ * msgInspector
1478
+ * view
1479
+ */
1480
+ msgInspector(): Promise<`0x${string}`>;
1481
+ /**
1482
+ * name
1483
+ * view
1484
+ */
1485
+ name(): Promise<string>;
1486
+ /**
1487
+ * nextNonce
1488
+ * view
1489
+ */
1490
+ nextNonce(arg0: bigint, arg1: `0x${string}`): Promise<bigint>;
1491
+ /**
1492
+ * oApp
1493
+ * view
1494
+ */
1495
+ oApp(): Promise<`0x${string}`>;
1496
+ /**
1497
+ * oAppVersion
1498
+ * pure
1499
+ */
1500
+ oAppVersion(): Promise<[bigint, bigint]>;
1501
+ /**
1502
+ * oftVersion
1503
+ * pure
1504
+ */
1505
+ oftVersion(): Promise<[`0x${string}`, bigint]>;
1506
+ /**
1507
+ * owner
1508
+ * view
1509
+ */
1510
+ owner(): Promise<`0x${string}`>;
1511
+ /**
1512
+ * peers
1513
+ * view
1514
+ */
1515
+ peers(eid: bigint): Promise<`0x${string}`>;
1516
+ /**
1517
+ * preCrime
1518
+ * view
1519
+ */
1520
+ preCrime(): Promise<`0x${string}`>;
1521
+ /**
1522
+ * quoteOFT
1523
+ * view
1524
+ */
1525
+ quoteOFT(_sendParam: SendParam): Promise<[OFTLimit, OFTFeeDetail[], OFTReceipt]>;
1526
+ /**
1527
+ * quoteSend
1528
+ * view
1529
+ */
1530
+ quoteSend(_sendParam: SendParam, _payInLzToken: boolean): Promise<MessagingFee>;
1531
+ /**
1532
+ * sharedDecimals
1533
+ * view
1534
+ */
1535
+ sharedDecimals(): Promise<bigint>;
1536
+ /**
1537
+ * symbol
1538
+ * view
1539
+ */
1540
+ symbol(): Promise<string>;
1541
+ /**
1542
+ * token
1543
+ * view
1544
+ */
1545
+ token(): Promise<`0x${string}`>;
1546
+ /**
1547
+ * totalSupply
1548
+ * view
1549
+ */
1550
+ totalSupply(): Promise<bigint>;
1551
+ /**
1552
+ * approve
1553
+ * nonpayable
1554
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1555
+ */
1556
+ approve(spender: `0x${string}`, value: bigint, options?: {
1557
+ accessList?: import('viem').AccessList;
1558
+ authorizationList?: import('viem').AuthorizationList;
1559
+ chain?: import('viem').Chain | null;
1560
+ dataSuffix?: `0x${string}`;
1561
+ gas?: bigint;
1562
+ gasPrice?: bigint;
1563
+ maxFeePerGas?: bigint;
1564
+ maxPriorityFeePerGas?: bigint;
1565
+ nonce?: number;
1566
+ value?: bigint;
1567
+ }): Promise<`0x${string}`>;
1568
+ /**
1569
+ * burn
1570
+ * nonpayable
1571
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1572
+ */
1573
+ burn(from: `0x${string}`, amount: bigint, options?: {
1574
+ accessList?: import('viem').AccessList;
1575
+ authorizationList?: import('viem').AuthorizationList;
1576
+ chain?: import('viem').Chain | null;
1577
+ dataSuffix?: `0x${string}`;
1578
+ gas?: bigint;
1579
+ gasPrice?: bigint;
1580
+ maxFeePerGas?: bigint;
1581
+ maxPriorityFeePerGas?: bigint;
1582
+ nonce?: number;
1583
+ value?: bigint;
1584
+ }): Promise<`0x${string}`>;
1585
+ /**
1586
+ * lzReceive
1587
+ * payable
1588
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1589
+ */
1590
+ lzReceive(_origin: Origin, _guid: `0x${string}`, _message: `0x${string}`, _executor: `0x${string}`, _extraData: `0x${string}`, options?: {
1591
+ accessList?: import('viem').AccessList;
1592
+ authorizationList?: import('viem').AuthorizationList;
1593
+ chain?: import('viem').Chain | null;
1594
+ dataSuffix?: `0x${string}`;
1595
+ gas?: bigint;
1596
+ gasPrice?: bigint;
1597
+ maxFeePerGas?: bigint;
1598
+ maxPriorityFeePerGas?: bigint;
1599
+ nonce?: number;
1600
+ value?: bigint;
1601
+ }): Promise<`0x${string}`>;
1602
+ /**
1603
+ * lzReceiveAndRevert
1604
+ * payable
1605
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1606
+ */
1607
+ lzReceiveAndRevert(_packets: InboundPacket[], options?: {
1608
+ accessList?: import('viem').AccessList;
1609
+ authorizationList?: import('viem').AuthorizationList;
1610
+ chain?: import('viem').Chain | null;
1611
+ dataSuffix?: `0x${string}`;
1612
+ gas?: bigint;
1613
+ gasPrice?: bigint;
1614
+ maxFeePerGas?: bigint;
1615
+ maxPriorityFeePerGas?: bigint;
1616
+ nonce?: number;
1617
+ value?: bigint;
1618
+ }): Promise<`0x${string}`>;
1619
+ /**
1620
+ * lzReceiveSimulate
1621
+ * payable
1622
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1623
+ */
1624
+ lzReceiveSimulate(_origin: Origin, _guid: `0x${string}`, _message: `0x${string}`, _executor: `0x${string}`, _extraData: `0x${string}`, options?: {
1625
+ accessList?: import('viem').AccessList;
1626
+ authorizationList?: import('viem').AuthorizationList;
1627
+ chain?: import('viem').Chain | null;
1628
+ dataSuffix?: `0x${string}`;
1629
+ gas?: bigint;
1630
+ gasPrice?: bigint;
1631
+ maxFeePerGas?: bigint;
1632
+ maxPriorityFeePerGas?: bigint;
1633
+ nonce?: number;
1634
+ value?: bigint;
1635
+ }): Promise<`0x${string}`>;
1636
+ /**
1637
+ * mint
1638
+ * nonpayable
1639
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1640
+ */
1641
+ mint(to: `0x${string}`, amount: bigint, options?: {
1642
+ accessList?: import('viem').AccessList;
1643
+ authorizationList?: import('viem').AuthorizationList;
1644
+ chain?: import('viem').Chain | null;
1645
+ dataSuffix?: `0x${string}`;
1646
+ gas?: bigint;
1647
+ gasPrice?: bigint;
1648
+ maxFeePerGas?: bigint;
1649
+ maxPriorityFeePerGas?: bigint;
1650
+ nonce?: number;
1651
+ value?: bigint;
1652
+ }): Promise<`0x${string}`>;
1653
+ /**
1654
+ * renounceOwnership
1655
+ * nonpayable
1656
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1657
+ */
1658
+ renounceOwnership(options?: {
1659
+ accessList?: import('viem').AccessList;
1660
+ authorizationList?: import('viem').AuthorizationList;
1661
+ chain?: import('viem').Chain | null;
1662
+ dataSuffix?: `0x${string}`;
1663
+ gas?: bigint;
1664
+ gasPrice?: bigint;
1665
+ maxFeePerGas?: bigint;
1666
+ maxPriorityFeePerGas?: bigint;
1667
+ nonce?: number;
1668
+ value?: bigint;
1669
+ }): Promise<`0x${string}`>;
1670
+ /**
1671
+ * send
1672
+ * payable
1673
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1674
+ */
1675
+ send(_sendParam: SendParam, _fee: MessagingFee, _refundAddress: `0x${string}`, options?: {
1676
+ accessList?: import('viem').AccessList;
1677
+ authorizationList?: import('viem').AuthorizationList;
1678
+ chain?: import('viem').Chain | null;
1679
+ dataSuffix?: `0x${string}`;
1680
+ gas?: bigint;
1681
+ gasPrice?: bigint;
1682
+ maxFeePerGas?: bigint;
1683
+ maxPriorityFeePerGas?: bigint;
1684
+ nonce?: number;
1685
+ value?: bigint;
1686
+ }): Promise<`0x${string}`>;
1687
+ /**
1688
+ * setDelegate
1689
+ * nonpayable
1690
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1691
+ */
1692
+ setDelegate(_delegate: `0x${string}`, options?: {
1693
+ accessList?: import('viem').AccessList;
1694
+ authorizationList?: import('viem').AuthorizationList;
1695
+ chain?: import('viem').Chain | null;
1696
+ dataSuffix?: `0x${string}`;
1697
+ gas?: bigint;
1698
+ gasPrice?: bigint;
1699
+ maxFeePerGas?: bigint;
1700
+ maxPriorityFeePerGas?: bigint;
1701
+ nonce?: number;
1702
+ value?: bigint;
1703
+ }): Promise<`0x${string}`>;
1704
+ /**
1705
+ * setEnforcedOptions
1706
+ * nonpayable
1707
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1708
+ */
1709
+ setEnforcedOptions(_enforcedOptions: EnforcedOptionParam[], options?: {
1710
+ accessList?: import('viem').AccessList;
1711
+ authorizationList?: import('viem').AuthorizationList;
1712
+ chain?: import('viem').Chain | null;
1713
+ dataSuffix?: `0x${string}`;
1714
+ gas?: bigint;
1715
+ gasPrice?: bigint;
1716
+ maxFeePerGas?: bigint;
1717
+ maxPriorityFeePerGas?: bigint;
1718
+ nonce?: number;
1719
+ value?: bigint;
1720
+ }): Promise<`0x${string}`>;
1721
+ /**
1722
+ * setMsgInspector
1723
+ * nonpayable
1724
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1725
+ */
1726
+ setMsgInspector(_msgInspector: `0x${string}`, options?: {
1727
+ accessList?: import('viem').AccessList;
1728
+ authorizationList?: import('viem').AuthorizationList;
1729
+ chain?: import('viem').Chain | null;
1730
+ dataSuffix?: `0x${string}`;
1731
+ gas?: bigint;
1732
+ gasPrice?: bigint;
1733
+ maxFeePerGas?: bigint;
1734
+ maxPriorityFeePerGas?: bigint;
1735
+ nonce?: number;
1736
+ value?: bigint;
1737
+ }): Promise<`0x${string}`>;
1738
+ /**
1739
+ * setPeer
1740
+ * nonpayable
1741
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1742
+ */
1743
+ setPeer(_eid: bigint, _peer: `0x${string}`, options?: {
1744
+ accessList?: import('viem').AccessList;
1745
+ authorizationList?: import('viem').AuthorizationList;
1746
+ chain?: import('viem').Chain | null;
1747
+ dataSuffix?: `0x${string}`;
1748
+ gas?: bigint;
1749
+ gasPrice?: bigint;
1750
+ maxFeePerGas?: bigint;
1751
+ maxPriorityFeePerGas?: bigint;
1752
+ nonce?: number;
1753
+ value?: bigint;
1754
+ }): Promise<`0x${string}`>;
1755
+ /**
1756
+ * setPreCrime
1757
+ * nonpayable
1758
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1759
+ */
1760
+ setPreCrime(_preCrime: `0x${string}`, options?: {
1761
+ accessList?: import('viem').AccessList;
1762
+ authorizationList?: import('viem').AuthorizationList;
1763
+ chain?: import('viem').Chain | null;
1764
+ dataSuffix?: `0x${string}`;
1765
+ gas?: bigint;
1766
+ gasPrice?: bigint;
1767
+ maxFeePerGas?: bigint;
1768
+ maxPriorityFeePerGas?: bigint;
1769
+ nonce?: number;
1770
+ value?: bigint;
1771
+ }): Promise<`0x${string}`>;
1772
+ /**
1773
+ * transfer
1774
+ * nonpayable
1775
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1776
+ */
1777
+ transfer(to: `0x${string}`, value: bigint, options?: {
1778
+ accessList?: import('viem').AccessList;
1779
+ authorizationList?: import('viem').AuthorizationList;
1780
+ chain?: import('viem').Chain | null;
1781
+ dataSuffix?: `0x${string}`;
1782
+ gas?: bigint;
1783
+ gasPrice?: bigint;
1784
+ maxFeePerGas?: bigint;
1785
+ maxPriorityFeePerGas?: bigint;
1786
+ nonce?: number;
1787
+ value?: bigint;
1788
+ }): Promise<`0x${string}`>;
1789
+ /**
1790
+ * transferFrom
1791
+ * nonpayable
1792
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1793
+ */
1794
+ transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
1795
+ accessList?: import('viem').AccessList;
1796
+ authorizationList?: import('viem').AuthorizationList;
1797
+ chain?: import('viem').Chain | null;
1798
+ dataSuffix?: `0x${string}`;
1799
+ gas?: bigint;
1800
+ gasPrice?: bigint;
1801
+ maxFeePerGas?: bigint;
1802
+ maxPriorityFeePerGas?: bigint;
1803
+ nonce?: number;
1804
+ value?: bigint;
1805
+ }): Promise<`0x${string}`>;
1806
+ /**
1807
+ * transferOwnership
1808
+ * nonpayable
1809
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1810
+ */
1811
+ transferOwnership(newOwner: `0x${string}`, options?: {
1812
+ accessList?: import('viem').AccessList;
1813
+ authorizationList?: import('viem').AuthorizationList;
1814
+ chain?: import('viem').Chain | null;
1815
+ dataSuffix?: `0x${string}`;
1816
+ gas?: bigint;
1817
+ gasPrice?: bigint;
1818
+ maxFeePerGas?: bigint;
1819
+ maxPriorityFeePerGas?: bigint;
1820
+ nonce?: number;
1821
+ value?: bigint;
1822
+ }): Promise<`0x${string}`>;
1823
+ /**
1824
+ * Simulate contract write operations (dry-run without sending transaction)
1825
+ *
1826
+ * @example
1827
+ * const result = await contract.simulate.transfer('0x...', 1000n);
1828
+ * console.log('Gas estimate:', result.request.gas);
1829
+ * console.log('Would succeed:', result.result);
1830
+ */
1831
+ get simulate(): {
1832
+ /**
1833
+ * Simulate approve
1834
+ * Returns gas estimate and result without sending transaction
1835
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1836
+ */
1837
+ approve(spender: `0x${string}`, value: bigint, options?: {
1838
+ accessList?: import("viem").AccessList;
1839
+ authorizationList?: import("viem").AuthorizationList;
1840
+ chain?: import("viem").Chain | null;
1841
+ dataSuffix?: `0x${string}`;
1842
+ gas?: bigint;
1843
+ gasPrice?: bigint;
1844
+ maxFeePerGas?: bigint;
1845
+ maxPriorityFeePerGas?: bigint;
1846
+ nonce?: number;
1847
+ value?: bigint;
1848
+ }): Promise<boolean>;
1849
+ /**
1850
+ * Simulate burn
1851
+ * Returns gas estimate and result without sending transaction
1852
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1853
+ */
1854
+ burn(from: `0x${string}`, amount: bigint, options?: {
1855
+ accessList?: import("viem").AccessList;
1856
+ authorizationList?: import("viem").AuthorizationList;
1857
+ chain?: import("viem").Chain | null;
1858
+ dataSuffix?: `0x${string}`;
1859
+ gas?: bigint;
1860
+ gasPrice?: bigint;
1861
+ maxFeePerGas?: bigint;
1862
+ maxPriorityFeePerGas?: bigint;
1863
+ nonce?: number;
1864
+ value?: bigint;
1865
+ }): Promise<boolean>;
1866
+ /**
1867
+ * Simulate lzReceive
1868
+ * Returns gas estimate and result without sending transaction
1869
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1870
+ */
1871
+ lzReceive(_origin: Origin, _guid: `0x${string}`, _message: `0x${string}`, _executor: `0x${string}`, _extraData: `0x${string}`, options?: {
1872
+ accessList?: import("viem").AccessList;
1873
+ authorizationList?: import("viem").AuthorizationList;
1874
+ chain?: import("viem").Chain | null;
1875
+ dataSuffix?: `0x${string}`;
1876
+ gas?: bigint;
1877
+ gasPrice?: bigint;
1878
+ maxFeePerGas?: bigint;
1879
+ maxPriorityFeePerGas?: bigint;
1880
+ nonce?: number;
1881
+ value?: bigint;
1882
+ }): Promise<void>;
1883
+ /**
1884
+ * Simulate lzReceiveAndRevert
1885
+ * Returns gas estimate and result without sending transaction
1886
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1887
+ */
1888
+ lzReceiveAndRevert(_packets: InboundPacket[], options?: {
1889
+ accessList?: import("viem").AccessList;
1890
+ authorizationList?: import("viem").AuthorizationList;
1891
+ chain?: import("viem").Chain | null;
1892
+ dataSuffix?: `0x${string}`;
1893
+ gas?: bigint;
1894
+ gasPrice?: bigint;
1895
+ maxFeePerGas?: bigint;
1896
+ maxPriorityFeePerGas?: bigint;
1897
+ nonce?: number;
1898
+ value?: bigint;
1899
+ }): Promise<void>;
1900
+ /**
1901
+ * Simulate lzReceiveSimulate
1902
+ * Returns gas estimate and result without sending transaction
1903
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1904
+ */
1905
+ lzReceiveSimulate(_origin: Origin, _guid: `0x${string}`, _message: `0x${string}`, _executor: `0x${string}`, _extraData: `0x${string}`, options?: {
1906
+ accessList?: import("viem").AccessList;
1907
+ authorizationList?: import("viem").AuthorizationList;
1908
+ chain?: import("viem").Chain | null;
1909
+ dataSuffix?: `0x${string}`;
1910
+ gas?: bigint;
1911
+ gasPrice?: bigint;
1912
+ maxFeePerGas?: bigint;
1913
+ maxPriorityFeePerGas?: bigint;
1914
+ nonce?: number;
1915
+ value?: bigint;
1916
+ }): Promise<void>;
1917
+ /**
1918
+ * Simulate mint
1919
+ * Returns gas estimate and result without sending transaction
1920
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1921
+ */
1922
+ mint(to: `0x${string}`, amount: bigint, options?: {
1923
+ accessList?: import("viem").AccessList;
1924
+ authorizationList?: import("viem").AuthorizationList;
1925
+ chain?: import("viem").Chain | null;
1926
+ dataSuffix?: `0x${string}`;
1927
+ gas?: bigint;
1928
+ gasPrice?: bigint;
1929
+ maxFeePerGas?: bigint;
1930
+ maxPriorityFeePerGas?: bigint;
1931
+ nonce?: number;
1932
+ value?: bigint;
1933
+ }): Promise<boolean>;
1934
+ /**
1935
+ * Simulate renounceOwnership
1936
+ * Returns gas estimate and result without sending transaction
1937
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1938
+ */
1939
+ renounceOwnership(options?: {
1940
+ accessList?: import("viem").AccessList;
1941
+ authorizationList?: import("viem").AuthorizationList;
1942
+ chain?: import("viem").Chain | null;
1943
+ dataSuffix?: `0x${string}`;
1944
+ gas?: bigint;
1945
+ gasPrice?: bigint;
1946
+ maxFeePerGas?: bigint;
1947
+ maxPriorityFeePerGas?: bigint;
1948
+ nonce?: number;
1949
+ value?: bigint;
1950
+ }): Promise<void>;
1951
+ /**
1952
+ * Simulate send
1953
+ * Returns gas estimate and result without sending transaction
1954
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1955
+ */
1956
+ send(_sendParam: SendParam, _fee: MessagingFee, _refundAddress: `0x${string}`, options?: {
1957
+ accessList?: import("viem").AccessList;
1958
+ authorizationList?: import("viem").AuthorizationList;
1959
+ chain?: import("viem").Chain | null;
1960
+ dataSuffix?: `0x${string}`;
1961
+ gas?: bigint;
1962
+ gasPrice?: bigint;
1963
+ maxFeePerGas?: bigint;
1964
+ maxPriorityFeePerGas?: bigint;
1965
+ nonce?: number;
1966
+ value?: bigint;
1967
+ }): Promise<[MessagingReceipt, OFTReceipt]>;
1968
+ /**
1969
+ * Simulate setDelegate
1970
+ * Returns gas estimate and result without sending transaction
1971
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1972
+ */
1973
+ setDelegate(_delegate: `0x${string}`, options?: {
1974
+ accessList?: import("viem").AccessList;
1975
+ authorizationList?: import("viem").AuthorizationList;
1976
+ chain?: import("viem").Chain | null;
1977
+ dataSuffix?: `0x${string}`;
1978
+ gas?: bigint;
1979
+ gasPrice?: bigint;
1980
+ maxFeePerGas?: bigint;
1981
+ maxPriorityFeePerGas?: bigint;
1982
+ nonce?: number;
1983
+ value?: bigint;
1984
+ }): Promise<void>;
1985
+ /**
1986
+ * Simulate setEnforcedOptions
1987
+ * Returns gas estimate and result without sending transaction
1988
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
1989
+ */
1990
+ setEnforcedOptions(_enforcedOptions: EnforcedOptionParam[], options?: {
1991
+ accessList?: import("viem").AccessList;
1992
+ authorizationList?: import("viem").AuthorizationList;
1993
+ chain?: import("viem").Chain | null;
1994
+ dataSuffix?: `0x${string}`;
1995
+ gas?: bigint;
1996
+ gasPrice?: bigint;
1997
+ maxFeePerGas?: bigint;
1998
+ maxPriorityFeePerGas?: bigint;
1999
+ nonce?: number;
2000
+ value?: bigint;
2001
+ }): Promise<void>;
2002
+ /**
2003
+ * Simulate setMsgInspector
2004
+ * Returns gas estimate and result without sending transaction
2005
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2006
+ */
2007
+ setMsgInspector(_msgInspector: `0x${string}`, options?: {
2008
+ accessList?: import("viem").AccessList;
2009
+ authorizationList?: import("viem").AuthorizationList;
2010
+ chain?: import("viem").Chain | null;
2011
+ dataSuffix?: `0x${string}`;
2012
+ gas?: bigint;
2013
+ gasPrice?: bigint;
2014
+ maxFeePerGas?: bigint;
2015
+ maxPriorityFeePerGas?: bigint;
2016
+ nonce?: number;
2017
+ value?: bigint;
2018
+ }): Promise<void>;
2019
+ /**
2020
+ * Simulate setPeer
2021
+ * Returns gas estimate and result without sending transaction
2022
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2023
+ */
2024
+ setPeer(_eid: bigint, _peer: `0x${string}`, options?: {
2025
+ accessList?: import("viem").AccessList;
2026
+ authorizationList?: import("viem").AuthorizationList;
2027
+ chain?: import("viem").Chain | null;
2028
+ dataSuffix?: `0x${string}`;
2029
+ gas?: bigint;
2030
+ gasPrice?: bigint;
2031
+ maxFeePerGas?: bigint;
2032
+ maxPriorityFeePerGas?: bigint;
2033
+ nonce?: number;
2034
+ value?: bigint;
2035
+ }): Promise<void>;
2036
+ /**
2037
+ * Simulate setPreCrime
2038
+ * Returns gas estimate and result without sending transaction
2039
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2040
+ */
2041
+ setPreCrime(_preCrime: `0x${string}`, options?: {
2042
+ accessList?: import("viem").AccessList;
2043
+ authorizationList?: import("viem").AuthorizationList;
2044
+ chain?: import("viem").Chain | null;
2045
+ dataSuffix?: `0x${string}`;
2046
+ gas?: bigint;
2047
+ gasPrice?: bigint;
2048
+ maxFeePerGas?: bigint;
2049
+ maxPriorityFeePerGas?: bigint;
2050
+ nonce?: number;
2051
+ value?: bigint;
2052
+ }): Promise<void>;
2053
+ /**
2054
+ * Simulate transfer
2055
+ * Returns gas estimate and result without sending transaction
2056
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2057
+ */
2058
+ transfer(to: `0x${string}`, value: bigint, options?: {
2059
+ accessList?: import("viem").AccessList;
2060
+ authorizationList?: import("viem").AuthorizationList;
2061
+ chain?: import("viem").Chain | null;
2062
+ dataSuffix?: `0x${string}`;
2063
+ gas?: bigint;
2064
+ gasPrice?: bigint;
2065
+ maxFeePerGas?: bigint;
2066
+ maxPriorityFeePerGas?: bigint;
2067
+ nonce?: number;
2068
+ value?: bigint;
2069
+ }): Promise<boolean>;
2070
+ /**
2071
+ * Simulate transferFrom
2072
+ * Returns gas estimate and result without sending transaction
2073
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2074
+ */
2075
+ transferFrom(from: `0x${string}`, to: `0x${string}`, value: bigint, options?: {
2076
+ accessList?: import("viem").AccessList;
2077
+ authorizationList?: import("viem").AuthorizationList;
2078
+ chain?: import("viem").Chain | null;
2079
+ dataSuffix?: `0x${string}`;
2080
+ gas?: bigint;
2081
+ gasPrice?: bigint;
2082
+ maxFeePerGas?: bigint;
2083
+ maxPriorityFeePerGas?: bigint;
2084
+ nonce?: number;
2085
+ value?: bigint;
2086
+ }): Promise<boolean>;
2087
+ /**
2088
+ * Simulate transferOwnership
2089
+ * Returns gas estimate and result without sending transaction
2090
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2091
+ */
2092
+ transferOwnership(newOwner: `0x${string}`, options?: {
2093
+ accessList?: import("viem").AccessList;
2094
+ authorizationList?: import("viem").AuthorizationList;
2095
+ chain?: import("viem").Chain | null;
2096
+ dataSuffix?: `0x${string}`;
2097
+ gas?: bigint;
2098
+ gasPrice?: bigint;
2099
+ maxFeePerGas?: bigint;
2100
+ maxPriorityFeePerGas?: bigint;
2101
+ nonce?: number;
2102
+ value?: bigint;
2103
+ }): Promise<void>;
2104
+ };
2105
+ /**
2106
+ * Watch contract events
2107
+ *
2108
+ * @example
2109
+ * // Watch all Transfer events
2110
+ * const unwatch = contract.watch.Transfer((event) => {
2111
+ * console.log('Transfer:', event);
2112
+ * });
2113
+ *
2114
+ * // Stop watching
2115
+ * unwatch();
2116
+ */
2117
+ get watch(): {
2118
+ /**
2119
+ * Watch Approval events
2120
+ * @param callback Function to call when event is emitted
2121
+ * @param filter Optional filter for indexed parameters
2122
+ * @returns Unwatch function to stop listening
2123
+ */
2124
+ Approval: (callback: (event: {
2125
+ owner: `0x${string}`;
2126
+ spender: `0x${string}`;
2127
+ value: bigint;
2128
+ }) => void, filter?: {
2129
+ owner: `0x${string}`;
2130
+ spender: `0x${string}`;
2131
+ }) => () => void;
2132
+ /**
2133
+ * Watch EnforcedOptionSet events
2134
+ * @param callback Function to call when event is emitted
2135
+ * @param filter Optional filter for indexed parameters
2136
+ * @returns Unwatch function to stop listening
2137
+ */
2138
+ EnforcedOptionSet: (callback: (event: {
2139
+ _enforcedOptions: EnforcedOptionParam[];
2140
+ }) => void) => () => void;
2141
+ /**
2142
+ * Watch MsgInspectorSet events
2143
+ * @param callback Function to call when event is emitted
2144
+ * @param filter Optional filter for indexed parameters
2145
+ * @returns Unwatch function to stop listening
2146
+ */
2147
+ MsgInspectorSet: (callback: (event: {
2148
+ inspector: `0x${string}`;
2149
+ }) => void) => () => void;
2150
+ /**
2151
+ * Watch OFTReceived events
2152
+ * @param callback Function to call when event is emitted
2153
+ * @param filter Optional filter for indexed parameters
2154
+ * @returns Unwatch function to stop listening
2155
+ */
2156
+ OFTReceived: (callback: (event: {
2157
+ guid: `0x${string}`;
2158
+ toAddress: `0x${string}`;
2159
+ srcEid: bigint;
2160
+ amountReceivedLD: bigint;
2161
+ }) => void, filter?: {
2162
+ guid: `0x${string}`;
2163
+ toAddress: `0x${string}`;
2164
+ }) => () => void;
2165
+ /**
2166
+ * Watch OFTSent events
2167
+ * @param callback Function to call when event is emitted
2168
+ * @param filter Optional filter for indexed parameters
2169
+ * @returns Unwatch function to stop listening
2170
+ */
2171
+ OFTSent: (callback: (event: {
2172
+ guid: `0x${string}`;
2173
+ fromAddress: `0x${string}`;
2174
+ dstEid: bigint;
2175
+ amountSentLD: bigint;
2176
+ amountReceivedLD: bigint;
2177
+ }) => void, filter?: {
2178
+ guid: `0x${string}`;
2179
+ fromAddress: `0x${string}`;
2180
+ }) => () => void;
2181
+ /**
2182
+ * Watch OwnershipTransferred events
2183
+ * @param callback Function to call when event is emitted
2184
+ * @param filter Optional filter for indexed parameters
2185
+ * @returns Unwatch function to stop listening
2186
+ */
2187
+ OwnershipTransferred: (callback: (event: {
2188
+ previousOwner: `0x${string}`;
2189
+ newOwner: `0x${string}`;
2190
+ }) => void, filter?: {
2191
+ previousOwner: `0x${string}`;
2192
+ newOwner: `0x${string}`;
2193
+ }) => () => void;
2194
+ /**
2195
+ * Watch PeerSet events
2196
+ * @param callback Function to call when event is emitted
2197
+ * @param filter Optional filter for indexed parameters
2198
+ * @returns Unwatch function to stop listening
2199
+ */
2200
+ PeerSet: (callback: (event: {
2201
+ eid: bigint;
2202
+ peer: `0x${string}`;
2203
+ }) => void) => () => void;
2204
+ /**
2205
+ * Watch PreCrimeSet events
2206
+ * @param callback Function to call when event is emitted
2207
+ * @param filter Optional filter for indexed parameters
2208
+ * @returns Unwatch function to stop listening
2209
+ */
2210
+ PreCrimeSet: (callback: (event: {
2211
+ preCrimeAddress: `0x${string}`;
2212
+ }) => void) => () => void;
2213
+ /**
2214
+ * Watch Transfer events
2215
+ * @param callback Function to call when event is emitted
2216
+ * @param filter Optional filter for indexed parameters
2217
+ * @returns Unwatch function to stop listening
2218
+ */
2219
+ Transfer: (callback: (event: {
2220
+ from: `0x${string}`;
2221
+ to: `0x${string}`;
2222
+ value: bigint;
2223
+ }) => void, filter?: {
2224
+ from: `0x${string}`;
2225
+ to: `0x${string}`;
2226
+ }) => () => void;
2227
+ };
2228
+ }