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