@gitmyabi-stg/river 0.0.1

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