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