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