@gitmyabi/gm-btc-usd-btc-btc 0.0.0-stage → 1.0.0

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