@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,1629 @@
1
+ export const OVaultComposerAbi = [
2
+ {
3
+ inputs: [],
4
+ stateMutability: "nonpayable",
5
+ type: "constructor",
6
+ },
7
+ {
8
+ inputs: [],
9
+ name: "AccessControlBadConfirmation",
10
+ type: "error",
11
+ },
12
+ {
13
+ inputs: [
14
+ {
15
+ internalType: "address",
16
+ name: "account",
17
+ type: "address",
18
+ },
19
+ {
20
+ internalType: "bytes32",
21
+ name: "neededRole",
22
+ type: "bytes32",
23
+ },
24
+ ],
25
+ name: "AccessControlUnauthorizedAccount",
26
+ type: "error",
27
+ },
28
+ {
29
+ inputs: [
30
+ {
31
+ internalType: "address",
32
+ name: "target",
33
+ type: "address",
34
+ },
35
+ ],
36
+ name: "AddressEmptyCode",
37
+ type: "error",
38
+ },
39
+ {
40
+ inputs: [],
41
+ name: "AlreadyCanceled",
42
+ type: "error",
43
+ },
44
+ {
45
+ inputs: [],
46
+ name: "AlreadyFulfilled",
47
+ type: "error",
48
+ },
49
+ {
50
+ inputs: [
51
+ {
52
+ internalType: "address",
53
+ name: "assetERC20",
54
+ type: "address",
55
+ },
56
+ {
57
+ internalType: "address",
58
+ name: "vaultAsset",
59
+ type: "address",
60
+ },
61
+ ],
62
+ name: "AssetTokenNotVaultAsset",
63
+ type: "error",
64
+ },
65
+ {
66
+ inputs: [
67
+ {
68
+ internalType: "address",
69
+ name: "implementation",
70
+ type: "address",
71
+ },
72
+ ],
73
+ name: "ERC1967InvalidImplementation",
74
+ type: "error",
75
+ },
76
+ {
77
+ inputs: [],
78
+ name: "ERC1967NonPayable",
79
+ type: "error",
80
+ },
81
+ {
82
+ inputs: [
83
+ {
84
+ internalType: "address",
85
+ name: "receiver",
86
+ type: "address",
87
+ },
88
+ {
89
+ internalType: "uint256",
90
+ name: "assets",
91
+ type: "uint256",
92
+ },
93
+ {
94
+ internalType: "uint256",
95
+ name: "max",
96
+ type: "uint256",
97
+ },
98
+ ],
99
+ name: "ERC4626ExceededMaxDeposit",
100
+ type: "error",
101
+ },
102
+ {
103
+ inputs: [
104
+ {
105
+ internalType: "address",
106
+ name: "owner",
107
+ type: "address",
108
+ },
109
+ {
110
+ internalType: "uint256",
111
+ name: "shares",
112
+ type: "uint256",
113
+ },
114
+ {
115
+ internalType: "uint256",
116
+ name: "max",
117
+ type: "uint256",
118
+ },
119
+ ],
120
+ name: "ERC4626ExceededMaxRedeem",
121
+ type: "error",
122
+ },
123
+ {
124
+ inputs: [],
125
+ name: "EmptyArray",
126
+ type: "error",
127
+ },
128
+ {
129
+ inputs: [],
130
+ name: "ExtraFeesNotMatchingMsgValue",
131
+ type: "error",
132
+ },
133
+ {
134
+ inputs: [],
135
+ name: "FailedCall",
136
+ type: "error",
137
+ },
138
+ {
139
+ inputs: [],
140
+ name: "FeeNonZero",
141
+ type: "error",
142
+ },
143
+ {
144
+ inputs: [
145
+ {
146
+ internalType: "uint256",
147
+ name: "expectedMsgValue",
148
+ type: "uint256",
149
+ },
150
+ {
151
+ internalType: "uint256",
152
+ name: "actualMsgValue",
153
+ type: "uint256",
154
+ },
155
+ ],
156
+ name: "InsufficientMsgValue",
157
+ type: "error",
158
+ },
159
+ {
160
+ inputs: [],
161
+ name: "InvalidInitialization",
162
+ type: "error",
163
+ },
164
+ {
165
+ inputs: [],
166
+ name: "LengthMismatch",
167
+ type: "error",
168
+ },
169
+ {
170
+ inputs: [],
171
+ name: "NoMsgValueExpected",
172
+ type: "error",
173
+ },
174
+ {
175
+ inputs: [],
176
+ name: "NotEnoughValueToPayFees",
177
+ type: "error",
178
+ },
179
+ {
180
+ inputs: [],
181
+ name: "NotInitializing",
182
+ type: "error",
183
+ },
184
+ {
185
+ inputs: [],
186
+ name: "NotInitiatorRequest",
187
+ type: "error",
188
+ },
189
+ {
190
+ inputs: [
191
+ {
192
+ internalType: "address",
193
+ name: "caller",
194
+ type: "address",
195
+ },
196
+ ],
197
+ name: "OnlyEndpoint",
198
+ type: "error",
199
+ },
200
+ {
201
+ inputs: [
202
+ {
203
+ internalType: "address",
204
+ name: "caller",
205
+ type: "address",
206
+ },
207
+ ],
208
+ name: "OnlySelf",
209
+ type: "error",
210
+ },
211
+ {
212
+ inputs: [
213
+ {
214
+ internalType: "address",
215
+ name: "caller",
216
+ type: "address",
217
+ },
218
+ ],
219
+ name: "OnlyValidComposeCaller",
220
+ type: "error",
221
+ },
222
+ {
223
+ inputs: [],
224
+ name: "Paused",
225
+ type: "error",
226
+ },
227
+ {
228
+ inputs: [],
229
+ name: "ReentrancyGuardReentrantCall",
230
+ type: "error",
231
+ },
232
+ {
233
+ inputs: [],
234
+ name: "RefundFailed",
235
+ type: "error",
236
+ },
237
+ {
238
+ inputs: [
239
+ {
240
+ internalType: "address",
241
+ name: "token",
242
+ type: "address",
243
+ },
244
+ ],
245
+ name: "SafeERC20FailedOperation",
246
+ type: "error",
247
+ },
248
+ {
249
+ inputs: [
250
+ {
251
+ internalType: "address",
252
+ name: "shareOFT",
253
+ type: "address",
254
+ },
255
+ ],
256
+ name: "ShareOFTNotAdapter",
257
+ type: "error",
258
+ },
259
+ {
260
+ inputs: [
261
+ {
262
+ internalType: "address",
263
+ name: "shareERC20",
264
+ type: "address",
265
+ },
266
+ {
267
+ internalType: "address",
268
+ name: "vault",
269
+ type: "address",
270
+ },
271
+ ],
272
+ name: "ShareTokenNotVault",
273
+ type: "error",
274
+ },
275
+ {
276
+ inputs: [
277
+ {
278
+ internalType: "uint256",
279
+ name: "amountLD",
280
+ type: "uint256",
281
+ },
282
+ {
283
+ internalType: "uint256",
284
+ name: "minAmountLD",
285
+ type: "uint256",
286
+ },
287
+ ],
288
+ name: "SlippageExceeded",
289
+ type: "error",
290
+ },
291
+ {
292
+ inputs: [],
293
+ name: "UUPSUnauthorizedCallContext",
294
+ type: "error",
295
+ },
296
+ {
297
+ inputs: [
298
+ {
299
+ internalType: "bytes32",
300
+ name: "slot",
301
+ type: "bytes32",
302
+ },
303
+ ],
304
+ name: "UUPSUnsupportedProxiableUUID",
305
+ type: "error",
306
+ },
307
+ {
308
+ anonymous: false,
309
+ inputs: [
310
+ {
311
+ indexed: false,
312
+ internalType: "bytes32",
313
+ name: "sender",
314
+ type: "bytes32",
315
+ },
316
+ {
317
+ indexed: false,
318
+ internalType: "bytes32",
319
+ name: "recipient",
320
+ type: "bytes32",
321
+ },
322
+ {
323
+ indexed: false,
324
+ internalType: "uint32",
325
+ name: "dstEid",
326
+ type: "uint32",
327
+ },
328
+ {
329
+ indexed: false,
330
+ internalType: "uint256",
331
+ name: "assetAmt",
332
+ type: "uint256",
333
+ },
334
+ {
335
+ indexed: false,
336
+ internalType: "uint256",
337
+ name: "shareAmt",
338
+ type: "uint256",
339
+ },
340
+ ],
341
+ name: "Deposited",
342
+ type: "event",
343
+ },
344
+ {
345
+ anonymous: false,
346
+ inputs: [
347
+ {
348
+ indexed: false,
349
+ internalType: "uint64",
350
+ name: "version",
351
+ type: "uint64",
352
+ },
353
+ ],
354
+ name: "Initialized",
355
+ type: "event",
356
+ },
357
+ {
358
+ anonymous: false,
359
+ inputs: [
360
+ {
361
+ indexed: false,
362
+ internalType: "bytes32",
363
+ name: "sender",
364
+ type: "bytes32",
365
+ },
366
+ {
367
+ indexed: false,
368
+ internalType: "bytes32",
369
+ name: "recipient",
370
+ type: "bytes32",
371
+ },
372
+ {
373
+ indexed: false,
374
+ internalType: "uint32",
375
+ name: "dstEid",
376
+ type: "uint32",
377
+ },
378
+ {
379
+ indexed: false,
380
+ internalType: "uint256",
381
+ name: "shareAmt",
382
+ type: "uint256",
383
+ },
384
+ {
385
+ indexed: false,
386
+ internalType: "uint256",
387
+ name: "assetAmt",
388
+ type: "uint256",
389
+ },
390
+ ],
391
+ name: "Redeemed",
392
+ type: "event",
393
+ },
394
+ {
395
+ anonymous: false,
396
+ inputs: [
397
+ {
398
+ indexed: true,
399
+ internalType: "address",
400
+ name: "user",
401
+ type: "address",
402
+ },
403
+ {
404
+ indexed: true,
405
+ internalType: "bytes32",
406
+ name: "referralCode",
407
+ type: "bytes32",
408
+ },
409
+ {
410
+ indexed: false,
411
+ internalType: "uint256",
412
+ name: "amount",
413
+ type: "uint256",
414
+ },
415
+ ],
416
+ name: "ReferralInfo",
417
+ type: "event",
418
+ },
419
+ {
420
+ anonymous: false,
421
+ inputs: [
422
+ {
423
+ indexed: true,
424
+ internalType: "bytes32",
425
+ name: "guid",
426
+ type: "bytes32",
427
+ },
428
+ ],
429
+ name: "Refunded",
430
+ type: "event",
431
+ },
432
+ {
433
+ anonymous: false,
434
+ inputs: [
435
+ {
436
+ indexed: true,
437
+ internalType: "bytes32",
438
+ name: "role",
439
+ type: "bytes32",
440
+ },
441
+ {
442
+ indexed: true,
443
+ internalType: "bytes32",
444
+ name: "previousAdminRole",
445
+ type: "bytes32",
446
+ },
447
+ {
448
+ indexed: true,
449
+ internalType: "bytes32",
450
+ name: "newAdminRole",
451
+ type: "bytes32",
452
+ },
453
+ ],
454
+ name: "RoleAdminChanged",
455
+ type: "event",
456
+ },
457
+ {
458
+ anonymous: false,
459
+ inputs: [
460
+ {
461
+ indexed: true,
462
+ internalType: "bytes32",
463
+ name: "role",
464
+ type: "bytes32",
465
+ },
466
+ {
467
+ indexed: true,
468
+ internalType: "address",
469
+ name: "account",
470
+ type: "address",
471
+ },
472
+ {
473
+ indexed: true,
474
+ internalType: "address",
475
+ name: "sender",
476
+ type: "address",
477
+ },
478
+ ],
479
+ name: "RoleGranted",
480
+ type: "event",
481
+ },
482
+ {
483
+ anonymous: false,
484
+ inputs: [
485
+ {
486
+ indexed: true,
487
+ internalType: "bytes32",
488
+ name: "role",
489
+ type: "bytes32",
490
+ },
491
+ {
492
+ indexed: true,
493
+ internalType: "address",
494
+ name: "account",
495
+ type: "address",
496
+ },
497
+ {
498
+ indexed: true,
499
+ internalType: "address",
500
+ name: "sender",
501
+ type: "address",
502
+ },
503
+ ],
504
+ name: "RoleRevoked",
505
+ type: "event",
506
+ },
507
+ {
508
+ anonymous: false,
509
+ inputs: [
510
+ {
511
+ indexed: true,
512
+ internalType: "bytes32",
513
+ name: "guid",
514
+ type: "bytes32",
515
+ },
516
+ ],
517
+ name: "Sent",
518
+ type: "event",
519
+ },
520
+ {
521
+ anonymous: false,
522
+ inputs: [
523
+ {
524
+ indexed: true,
525
+ internalType: "address",
526
+ name: "implementation",
527
+ type: "address",
528
+ },
529
+ ],
530
+ name: "Upgraded",
531
+ type: "event",
532
+ },
533
+ {
534
+ anonymous: false,
535
+ inputs: [
536
+ {
537
+ indexed: true,
538
+ internalType: "uint256",
539
+ name: "index",
540
+ type: "uint256",
541
+ },
542
+ {
543
+ indexed: true,
544
+ internalType: "address",
545
+ name: "initiator",
546
+ type: "address",
547
+ },
548
+ {
549
+ indexed: false,
550
+ internalType: "uint256",
551
+ name: "timestamp",
552
+ type: "uint256",
553
+ },
554
+ ],
555
+ name: "WithdrawalCanceled",
556
+ type: "event",
557
+ },
558
+ {
559
+ anonymous: false,
560
+ inputs: [
561
+ {
562
+ indexed: true,
563
+ internalType: "uint256",
564
+ name: "index",
565
+ type: "uint256",
566
+ },
567
+ {
568
+ indexed: true,
569
+ internalType: "address",
570
+ name: "initiator",
571
+ type: "address",
572
+ },
573
+ {
574
+ indexed: false,
575
+ internalType: "uint256",
576
+ name: "timestamp",
577
+ type: "uint256",
578
+ },
579
+ ],
580
+ name: "WithdrawalProcessed",
581
+ type: "event",
582
+ },
583
+ {
584
+ anonymous: false,
585
+ inputs: [
586
+ {
587
+ indexed: true,
588
+ internalType: "uint256",
589
+ name: "index",
590
+ type: "uint256",
591
+ },
592
+ {
593
+ indexed: true,
594
+ internalType: "address",
595
+ name: "initiator",
596
+ type: "address",
597
+ },
598
+ {
599
+ indexed: false,
600
+ internalType: "uint256",
601
+ name: "timestamp",
602
+ type: "uint256",
603
+ },
604
+ ],
605
+ name: "WithdrawalRequest",
606
+ type: "event",
607
+ },
608
+ {
609
+ inputs: [],
610
+ name: "ALLOCATION_MANAGER",
611
+ outputs: [
612
+ {
613
+ internalType: "bytes32",
614
+ name: "",
615
+ type: "bytes32",
616
+ },
617
+ ],
618
+ stateMutability: "view",
619
+ type: "function",
620
+ },
621
+ {
622
+ inputs: [],
623
+ name: "BRIDGE_GATEWAY_OPERATOR",
624
+ outputs: [
625
+ {
626
+ internalType: "bytes32",
627
+ name: "",
628
+ type: "bytes32",
629
+ },
630
+ ],
631
+ stateMutability: "view",
632
+ type: "function",
633
+ },
634
+ {
635
+ inputs: [],
636
+ name: "BRIDGE_GATEWAY_SETTER",
637
+ outputs: [
638
+ {
639
+ internalType: "bytes32",
640
+ name: "",
641
+ type: "bytes32",
642
+ },
643
+ ],
644
+ stateMutability: "view",
645
+ type: "function",
646
+ },
647
+ {
648
+ inputs: [],
649
+ name: "DEFAULT_ADMIN_ROLE",
650
+ outputs: [
651
+ {
652
+ internalType: "bytes32",
653
+ name: "",
654
+ type: "bytes32",
655
+ },
656
+ ],
657
+ stateMutability: "view",
658
+ type: "function",
659
+ },
660
+ {
661
+ inputs: [],
662
+ name: "DEPLOYER_ROLE",
663
+ outputs: [
664
+ {
665
+ internalType: "bytes32",
666
+ name: "",
667
+ type: "bytes32",
668
+ },
669
+ ],
670
+ stateMutability: "view",
671
+ type: "function",
672
+ },
673
+ {
674
+ inputs: [],
675
+ name: "PAUSE_MANAGER",
676
+ outputs: [
677
+ {
678
+ internalType: "bytes32",
679
+ name: "",
680
+ type: "bytes32",
681
+ },
682
+ ],
683
+ stateMutability: "view",
684
+ type: "function",
685
+ },
686
+ {
687
+ inputs: [],
688
+ name: "REPORTING_MANAGER",
689
+ outputs: [
690
+ {
691
+ internalType: "bytes32",
692
+ name: "",
693
+ type: "bytes32",
694
+ },
695
+ ],
696
+ stateMutability: "view",
697
+ type: "function",
698
+ },
699
+ {
700
+ inputs: [],
701
+ name: "SETTER_ROLE",
702
+ outputs: [
703
+ {
704
+ internalType: "bytes32",
705
+ name: "",
706
+ type: "bytes32",
707
+ },
708
+ ],
709
+ stateMutability: "view",
710
+ type: "function",
711
+ },
712
+ {
713
+ inputs: [],
714
+ name: "STRATEGY_MANAGER",
715
+ outputs: [
716
+ {
717
+ internalType: "bytes32",
718
+ name: "",
719
+ type: "bytes32",
720
+ },
721
+ ],
722
+ stateMutability: "view",
723
+ type: "function",
724
+ },
725
+ {
726
+ inputs: [],
727
+ name: "UNPAUSE_MANAGER",
728
+ outputs: [
729
+ {
730
+ internalType: "bytes32",
731
+ name: "",
732
+ type: "bytes32",
733
+ },
734
+ ],
735
+ stateMutability: "view",
736
+ type: "function",
737
+ },
738
+ {
739
+ inputs: [],
740
+ name: "UPGRADE_INTERFACE_VERSION",
741
+ outputs: [
742
+ {
743
+ internalType: "string",
744
+ name: "",
745
+ type: "string",
746
+ },
747
+ ],
748
+ stateMutability: "view",
749
+ type: "function",
750
+ },
751
+ {
752
+ inputs: [],
753
+ name: "UPGRADE_MANAGER",
754
+ outputs: [
755
+ {
756
+ internalType: "bytes32",
757
+ name: "",
758
+ type: "bytes32",
759
+ },
760
+ ],
761
+ stateMutability: "view",
762
+ type: "function",
763
+ },
764
+ {
765
+ inputs: [],
766
+ name: "WITHDRAWAL_MANAGER",
767
+ outputs: [
768
+ {
769
+ internalType: "bytes32",
770
+ name: "",
771
+ type: "bytes32",
772
+ },
773
+ ],
774
+ stateMutability: "view",
775
+ type: "function",
776
+ },
777
+ {
778
+ inputs: [
779
+ {
780
+ internalType: "address",
781
+ name: "_vault",
782
+ type: "address",
783
+ },
784
+ {
785
+ internalType: "address",
786
+ name: "_underlyingOFT",
787
+ type: "address",
788
+ },
789
+ {
790
+ internalType: "address",
791
+ name: "_underlyingToken",
792
+ type: "address",
793
+ },
794
+ {
795
+ internalType: "address",
796
+ name: "_endpoint",
797
+ type: "address",
798
+ },
799
+ {
800
+ internalType: "uint32",
801
+ name: "_localEid",
802
+ type: "uint32",
803
+ },
804
+ ],
805
+ name: "__VaultComposerSync_init",
806
+ outputs: [],
807
+ stateMutability: "nonpayable",
808
+ type: "function",
809
+ },
810
+ {
811
+ inputs: [
812
+ {
813
+ internalType: "address",
814
+ name: "_vault",
815
+ type: "address",
816
+ },
817
+ {
818
+ internalType: "address",
819
+ name: "_underlyingOft",
820
+ type: "address",
821
+ },
822
+ {
823
+ internalType: "address",
824
+ name: "_underlyingToken",
825
+ type: "address",
826
+ },
827
+ {
828
+ internalType: "address",
829
+ name: "_endpoint",
830
+ type: "address",
831
+ },
832
+ {
833
+ internalType: "uint32",
834
+ name: "_localEid",
835
+ type: "uint32",
836
+ },
837
+ ],
838
+ name: "__VaultComposerSync_init_unchained",
839
+ outputs: [],
840
+ stateMutability: "nonpayable",
841
+ type: "function",
842
+ },
843
+ {
844
+ inputs: [
845
+ {
846
+ internalType: "uint256",
847
+ name: "_id",
848
+ type: "uint256",
849
+ },
850
+ ],
851
+ name: "cancelWithdrawal",
852
+ outputs: [],
853
+ stateMutability: "nonpayable",
854
+ type: "function",
855
+ },
856
+ {
857
+ inputs: [
858
+ {
859
+ internalType: "uint256",
860
+ name: "_underlyingAmount",
861
+ type: "uint256",
862
+ },
863
+ {
864
+ components: [
865
+ {
866
+ internalType: "uint32",
867
+ name: "dstEid",
868
+ type: "uint32",
869
+ },
870
+ {
871
+ internalType: "bytes32",
872
+ name: "to",
873
+ type: "bytes32",
874
+ },
875
+ {
876
+ internalType: "uint256",
877
+ name: "amountLD",
878
+ type: "uint256",
879
+ },
880
+ {
881
+ internalType: "uint256",
882
+ name: "minAmountLD",
883
+ type: "uint256",
884
+ },
885
+ {
886
+ internalType: "bytes",
887
+ name: "extraOptions",
888
+ type: "bytes",
889
+ },
890
+ {
891
+ internalType: "bytes",
892
+ name: "composeMsg",
893
+ type: "bytes",
894
+ },
895
+ {
896
+ internalType: "bytes",
897
+ name: "oftCmd",
898
+ type: "bytes",
899
+ },
900
+ ],
901
+ internalType: "struct SendParam",
902
+ name: "_sendParam",
903
+ type: "tuple",
904
+ },
905
+ {
906
+ internalType: "address",
907
+ name: "_refundAddress",
908
+ type: "address",
909
+ },
910
+ ],
911
+ name: "depositAndSend",
912
+ outputs: [
913
+ {
914
+ components: [
915
+ {
916
+ internalType: "bytes32",
917
+ name: "guid",
918
+ type: "bytes32",
919
+ },
920
+ {
921
+ internalType: "uint64",
922
+ name: "nonce",
923
+ type: "uint64",
924
+ },
925
+ {
926
+ components: [
927
+ {
928
+ internalType: "uint256",
929
+ name: "nativeFee",
930
+ type: "uint256",
931
+ },
932
+ {
933
+ internalType: "uint256",
934
+ name: "lzTokenFee",
935
+ type: "uint256",
936
+ },
937
+ ],
938
+ internalType: "struct MessagingFee",
939
+ name: "fee",
940
+ type: "tuple",
941
+ },
942
+ ],
943
+ internalType: "struct MessagingReceipt",
944
+ name: "msgReceipt",
945
+ type: "tuple",
946
+ },
947
+ {
948
+ components: [
949
+ {
950
+ internalType: "uint256",
951
+ name: "amountSentLD",
952
+ type: "uint256",
953
+ },
954
+ {
955
+ internalType: "uint256",
956
+ name: "amountReceivedLD",
957
+ type: "uint256",
958
+ },
959
+ ],
960
+ internalType: "struct OFTReceipt",
961
+ name: "oftReceipt",
962
+ type: "tuple",
963
+ },
964
+ ],
965
+ stateMutability: "payable",
966
+ type: "function",
967
+ },
968
+ {
969
+ inputs: [
970
+ {
971
+ internalType: "uint256",
972
+ name: "_underlyingAmount",
973
+ type: "uint256",
974
+ },
975
+ {
976
+ components: [
977
+ {
978
+ internalType: "uint32",
979
+ name: "dstEid",
980
+ type: "uint32",
981
+ },
982
+ {
983
+ internalType: "bytes32",
984
+ name: "to",
985
+ type: "bytes32",
986
+ },
987
+ {
988
+ internalType: "uint256",
989
+ name: "amountLD",
990
+ type: "uint256",
991
+ },
992
+ {
993
+ internalType: "uint256",
994
+ name: "minAmountLD",
995
+ type: "uint256",
996
+ },
997
+ {
998
+ internalType: "bytes",
999
+ name: "extraOptions",
1000
+ type: "bytes",
1001
+ },
1002
+ {
1003
+ internalType: "bytes",
1004
+ name: "composeMsg",
1005
+ type: "bytes",
1006
+ },
1007
+ {
1008
+ internalType: "bytes",
1009
+ name: "oftCmd",
1010
+ type: "bytes",
1011
+ },
1012
+ ],
1013
+ internalType: "struct SendParam",
1014
+ name: "_sendParam",
1015
+ type: "tuple",
1016
+ },
1017
+ {
1018
+ internalType: "address",
1019
+ name: "_refundAddress",
1020
+ type: "address",
1021
+ },
1022
+ {
1023
+ internalType: "uint256",
1024
+ name: "_deadline",
1025
+ type: "uint256",
1026
+ },
1027
+ {
1028
+ internalType: "uint8",
1029
+ name: "_v",
1030
+ type: "uint8",
1031
+ },
1032
+ {
1033
+ internalType: "bytes32",
1034
+ name: "_r",
1035
+ type: "bytes32",
1036
+ },
1037
+ {
1038
+ internalType: "bytes32",
1039
+ name: "_s",
1040
+ type: "bytes32",
1041
+ },
1042
+ ],
1043
+ name: "depositAndSendWithPermit",
1044
+ outputs: [
1045
+ {
1046
+ components: [
1047
+ {
1048
+ internalType: "bytes32",
1049
+ name: "guid",
1050
+ type: "bytes32",
1051
+ },
1052
+ {
1053
+ internalType: "uint64",
1054
+ name: "nonce",
1055
+ type: "uint64",
1056
+ },
1057
+ {
1058
+ components: [
1059
+ {
1060
+ internalType: "uint256",
1061
+ name: "nativeFee",
1062
+ type: "uint256",
1063
+ },
1064
+ {
1065
+ internalType: "uint256",
1066
+ name: "lzTokenFee",
1067
+ type: "uint256",
1068
+ },
1069
+ ],
1070
+ internalType: "struct MessagingFee",
1071
+ name: "fee",
1072
+ type: "tuple",
1073
+ },
1074
+ ],
1075
+ internalType: "struct MessagingReceipt",
1076
+ name: "receipt",
1077
+ type: "tuple",
1078
+ },
1079
+ {
1080
+ components: [
1081
+ {
1082
+ internalType: "uint256",
1083
+ name: "amountSentLD",
1084
+ type: "uint256",
1085
+ },
1086
+ {
1087
+ internalType: "uint256",
1088
+ name: "amountReceivedLD",
1089
+ type: "uint256",
1090
+ },
1091
+ ],
1092
+ internalType: "struct OFTReceipt",
1093
+ name: "oftReceipt",
1094
+ type: "tuple",
1095
+ },
1096
+ ],
1097
+ stateMutability: "payable",
1098
+ type: "function",
1099
+ },
1100
+ {
1101
+ inputs: [
1102
+ {
1103
+ internalType: "bytes32",
1104
+ name: "role",
1105
+ type: "bytes32",
1106
+ },
1107
+ ],
1108
+ name: "getRoleAdmin",
1109
+ outputs: [
1110
+ {
1111
+ internalType: "bytes32",
1112
+ name: "",
1113
+ type: "bytes32",
1114
+ },
1115
+ ],
1116
+ stateMutability: "view",
1117
+ type: "function",
1118
+ },
1119
+ {
1120
+ inputs: [
1121
+ {
1122
+ internalType: "uint256",
1123
+ name: "_index",
1124
+ type: "uint256",
1125
+ },
1126
+ ],
1127
+ name: "getWithdrawalQueueEntry",
1128
+ outputs: [
1129
+ {
1130
+ components: [
1131
+ {
1132
+ internalType: "address",
1133
+ name: "initiator",
1134
+ type: "address",
1135
+ },
1136
+ {
1137
+ internalType: "uint256",
1138
+ name: "shareAmount",
1139
+ type: "uint256",
1140
+ },
1141
+ {
1142
+ components: [
1143
+ {
1144
+ internalType: "uint32",
1145
+ name: "dstEid",
1146
+ type: "uint32",
1147
+ },
1148
+ {
1149
+ internalType: "bytes32",
1150
+ name: "to",
1151
+ type: "bytes32",
1152
+ },
1153
+ {
1154
+ internalType: "uint256",
1155
+ name: "amountLD",
1156
+ type: "uint256",
1157
+ },
1158
+ {
1159
+ internalType: "uint256",
1160
+ name: "minAmountLD",
1161
+ type: "uint256",
1162
+ },
1163
+ {
1164
+ internalType: "bytes",
1165
+ name: "extraOptions",
1166
+ type: "bytes",
1167
+ },
1168
+ {
1169
+ internalType: "bytes",
1170
+ name: "composeMsg",
1171
+ type: "bytes",
1172
+ },
1173
+ {
1174
+ internalType: "bytes",
1175
+ name: "oftCmd",
1176
+ type: "bytes",
1177
+ },
1178
+ ],
1179
+ internalType: "struct SendParam",
1180
+ name: "sendParam",
1181
+ type: "tuple",
1182
+ },
1183
+ {
1184
+ internalType: "uint256",
1185
+ name: "fee",
1186
+ type: "uint256",
1187
+ },
1188
+ {
1189
+ internalType: "uint256",
1190
+ name: "txFee",
1191
+ type: "uint256",
1192
+ },
1193
+ {
1194
+ internalType: "address",
1195
+ name: "refundAddress",
1196
+ type: "address",
1197
+ },
1198
+ {
1199
+ internalType: "bool",
1200
+ name: "fulfilled",
1201
+ type: "bool",
1202
+ },
1203
+ {
1204
+ internalType: "bool",
1205
+ name: "canceled",
1206
+ type: "bool",
1207
+ },
1208
+ ],
1209
+ internalType: "struct ComposerWithdrawalQueueEntry",
1210
+ name: "",
1211
+ type: "tuple",
1212
+ },
1213
+ ],
1214
+ stateMutability: "view",
1215
+ type: "function",
1216
+ },
1217
+ {
1218
+ inputs: [],
1219
+ name: "getWithdrawalQueueLength",
1220
+ outputs: [
1221
+ {
1222
+ internalType: "uint256",
1223
+ name: "",
1224
+ type: "uint256",
1225
+ },
1226
+ ],
1227
+ stateMutability: "view",
1228
+ type: "function",
1229
+ },
1230
+ {
1231
+ inputs: [
1232
+ {
1233
+ internalType: "bytes32",
1234
+ name: "role",
1235
+ type: "bytes32",
1236
+ },
1237
+ {
1238
+ internalType: "address",
1239
+ name: "account",
1240
+ type: "address",
1241
+ },
1242
+ ],
1243
+ name: "grantRole",
1244
+ outputs: [],
1245
+ stateMutability: "nonpayable",
1246
+ type: "function",
1247
+ },
1248
+ {
1249
+ inputs: [
1250
+ {
1251
+ internalType: "address",
1252
+ name: "_oftIn",
1253
+ type: "address",
1254
+ },
1255
+ {
1256
+ internalType: "bytes32",
1257
+ name: "_composeFrom",
1258
+ type: "bytes32",
1259
+ },
1260
+ {
1261
+ internalType: "bytes",
1262
+ name: "_composeMsg",
1263
+ type: "bytes",
1264
+ },
1265
+ {
1266
+ internalType: "uint256",
1267
+ name: "_amount",
1268
+ type: "uint256",
1269
+ },
1270
+ ],
1271
+ name: "handleCompose",
1272
+ outputs: [],
1273
+ stateMutability: "payable",
1274
+ type: "function",
1275
+ },
1276
+ {
1277
+ inputs: [
1278
+ {
1279
+ internalType: "bytes32",
1280
+ name: "role",
1281
+ type: "bytes32",
1282
+ },
1283
+ {
1284
+ internalType: "address",
1285
+ name: "account",
1286
+ type: "address",
1287
+ },
1288
+ ],
1289
+ name: "hasRole",
1290
+ outputs: [
1291
+ {
1292
+ internalType: "bool",
1293
+ name: "",
1294
+ type: "bool",
1295
+ },
1296
+ ],
1297
+ stateMutability: "view",
1298
+ type: "function",
1299
+ },
1300
+ {
1301
+ inputs: [
1302
+ {
1303
+ components: [
1304
+ {
1305
+ internalType: "address",
1306
+ name: "vault",
1307
+ type: "address",
1308
+ },
1309
+ {
1310
+ internalType: "address",
1311
+ name: "underlyingOFT",
1312
+ type: "address",
1313
+ },
1314
+ {
1315
+ internalType: "address",
1316
+ name: "underlyingToken",
1317
+ type: "address",
1318
+ },
1319
+ {
1320
+ internalType: "address",
1321
+ name: "endpoint",
1322
+ type: "address",
1323
+ },
1324
+ {
1325
+ internalType: "address",
1326
+ name: "defaultAdmin",
1327
+ type: "address",
1328
+ },
1329
+ {
1330
+ internalType: "uint32",
1331
+ name: "localEid",
1332
+ type: "uint32",
1333
+ },
1334
+ ],
1335
+ internalType: "struct VaultComposerParams",
1336
+ name: "_params",
1337
+ type: "tuple",
1338
+ },
1339
+ ],
1340
+ name: "initialize",
1341
+ outputs: [],
1342
+ stateMutability: "nonpayable",
1343
+ type: "function",
1344
+ },
1345
+ {
1346
+ inputs: [
1347
+ {
1348
+ internalType: "address",
1349
+ name: "_composeSender",
1350
+ type: "address",
1351
+ },
1352
+ {
1353
+ internalType: "bytes32",
1354
+ name: "_guid",
1355
+ type: "bytes32",
1356
+ },
1357
+ {
1358
+ internalType: "bytes",
1359
+ name: "_message",
1360
+ type: "bytes",
1361
+ },
1362
+ {
1363
+ internalType: "address",
1364
+ name: "",
1365
+ type: "address",
1366
+ },
1367
+ {
1368
+ internalType: "bytes",
1369
+ name: "",
1370
+ type: "bytes",
1371
+ },
1372
+ ],
1373
+ name: "lzCompose",
1374
+ outputs: [],
1375
+ stateMutability: "payable",
1376
+ type: "function",
1377
+ },
1378
+ {
1379
+ inputs: [
1380
+ {
1381
+ internalType: "uint256[]",
1382
+ name: "_ids",
1383
+ type: "uint256[]",
1384
+ },
1385
+ {
1386
+ internalType: "uint256[]",
1387
+ name: "_extraFees",
1388
+ type: "uint256[]",
1389
+ },
1390
+ ],
1391
+ name: "processWithdrawals",
1392
+ outputs: [],
1393
+ stateMutability: "payable",
1394
+ type: "function",
1395
+ },
1396
+ {
1397
+ inputs: [],
1398
+ name: "proxiableUUID",
1399
+ outputs: [
1400
+ {
1401
+ internalType: "bytes32",
1402
+ name: "",
1403
+ type: "bytes32",
1404
+ },
1405
+ ],
1406
+ stateMutability: "view",
1407
+ type: "function",
1408
+ },
1409
+ {
1410
+ inputs: [
1411
+ {
1412
+ internalType: "address",
1413
+ name: "_from",
1414
+ type: "address",
1415
+ },
1416
+ {
1417
+ internalType: "address",
1418
+ name: "_targetOFT",
1419
+ type: "address",
1420
+ },
1421
+ {
1422
+ internalType: "uint256",
1423
+ name: "_vaultInAmount",
1424
+ type: "uint256",
1425
+ },
1426
+ {
1427
+ components: [
1428
+ {
1429
+ internalType: "uint32",
1430
+ name: "dstEid",
1431
+ type: "uint32",
1432
+ },
1433
+ {
1434
+ internalType: "bytes32",
1435
+ name: "to",
1436
+ type: "bytes32",
1437
+ },
1438
+ {
1439
+ internalType: "uint256",
1440
+ name: "amountLD",
1441
+ type: "uint256",
1442
+ },
1443
+ {
1444
+ internalType: "uint256",
1445
+ name: "minAmountLD",
1446
+ type: "uint256",
1447
+ },
1448
+ {
1449
+ internalType: "bytes",
1450
+ name: "extraOptions",
1451
+ type: "bytes",
1452
+ },
1453
+ {
1454
+ internalType: "bytes",
1455
+ name: "composeMsg",
1456
+ type: "bytes",
1457
+ },
1458
+ {
1459
+ internalType: "bytes",
1460
+ name: "oftCmd",
1461
+ type: "bytes",
1462
+ },
1463
+ ],
1464
+ internalType: "struct SendParam",
1465
+ name: "_sendParam",
1466
+ type: "tuple",
1467
+ },
1468
+ ],
1469
+ name: "quoteSend",
1470
+ outputs: [
1471
+ {
1472
+ components: [
1473
+ {
1474
+ internalType: "uint256",
1475
+ name: "nativeFee",
1476
+ type: "uint256",
1477
+ },
1478
+ {
1479
+ internalType: "uint256",
1480
+ name: "lzTokenFee",
1481
+ type: "uint256",
1482
+ },
1483
+ ],
1484
+ internalType: "struct MessagingFee",
1485
+ name: "",
1486
+ type: "tuple",
1487
+ },
1488
+ ],
1489
+ stateMutability: "view",
1490
+ type: "function",
1491
+ },
1492
+ {
1493
+ inputs: [
1494
+ {
1495
+ internalType: "uint256",
1496
+ name: "_shareAmount",
1497
+ type: "uint256",
1498
+ },
1499
+ {
1500
+ components: [
1501
+ {
1502
+ internalType: "uint32",
1503
+ name: "dstEid",
1504
+ type: "uint32",
1505
+ },
1506
+ {
1507
+ internalType: "bytes32",
1508
+ name: "to",
1509
+ type: "bytes32",
1510
+ },
1511
+ {
1512
+ internalType: "uint256",
1513
+ name: "amountLD",
1514
+ type: "uint256",
1515
+ },
1516
+ {
1517
+ internalType: "uint256",
1518
+ name: "minAmountLD",
1519
+ type: "uint256",
1520
+ },
1521
+ {
1522
+ internalType: "bytes",
1523
+ name: "extraOptions",
1524
+ type: "bytes",
1525
+ },
1526
+ {
1527
+ internalType: "bytes",
1528
+ name: "composeMsg",
1529
+ type: "bytes",
1530
+ },
1531
+ {
1532
+ internalType: "bytes",
1533
+ name: "oftCmd",
1534
+ type: "bytes",
1535
+ },
1536
+ ],
1537
+ internalType: "struct SendParam",
1538
+ name: "_sendParam",
1539
+ type: "tuple",
1540
+ },
1541
+ {
1542
+ internalType: "address",
1543
+ name: "_refundAddress",
1544
+ type: "address",
1545
+ },
1546
+ ],
1547
+ name: "redeemAndSend",
1548
+ outputs: [],
1549
+ stateMutability: "payable",
1550
+ type: "function",
1551
+ },
1552
+ {
1553
+ inputs: [
1554
+ {
1555
+ internalType: "bytes32",
1556
+ name: "role",
1557
+ type: "bytes32",
1558
+ },
1559
+ {
1560
+ internalType: "address",
1561
+ name: "callerConfirmation",
1562
+ type: "address",
1563
+ },
1564
+ ],
1565
+ name: "renounceRole",
1566
+ outputs: [],
1567
+ stateMutability: "nonpayable",
1568
+ type: "function",
1569
+ },
1570
+ {
1571
+ inputs: [
1572
+ {
1573
+ internalType: "bytes32",
1574
+ name: "role",
1575
+ type: "bytes32",
1576
+ },
1577
+ {
1578
+ internalType: "address",
1579
+ name: "account",
1580
+ type: "address",
1581
+ },
1582
+ ],
1583
+ name: "revokeRole",
1584
+ outputs: [],
1585
+ stateMutability: "nonpayable",
1586
+ type: "function",
1587
+ },
1588
+ {
1589
+ inputs: [
1590
+ {
1591
+ internalType: "bytes4",
1592
+ name: "interfaceId",
1593
+ type: "bytes4",
1594
+ },
1595
+ ],
1596
+ name: "supportsInterface",
1597
+ outputs: [
1598
+ {
1599
+ internalType: "bool",
1600
+ name: "",
1601
+ type: "bool",
1602
+ },
1603
+ ],
1604
+ stateMutability: "view",
1605
+ type: "function",
1606
+ },
1607
+ {
1608
+ inputs: [
1609
+ {
1610
+ internalType: "address",
1611
+ name: "newImplementation",
1612
+ type: "address",
1613
+ },
1614
+ {
1615
+ internalType: "bytes",
1616
+ name: "data",
1617
+ type: "bytes",
1618
+ },
1619
+ ],
1620
+ name: "upgradeToAndCall",
1621
+ outputs: [],
1622
+ stateMutability: "payable",
1623
+ type: "function",
1624
+ },
1625
+ {
1626
+ stateMutability: "payable",
1627
+ type: "receive",
1628
+ },
1629
+ ];