@zircuit/ovault-evm 0.0.1 → 0.0.3

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.
@@ -1,723 +0,0 @@
1
- export const OVaultComposerSyncNativeAbi = [
2
- {
3
- type: 'constructor',
4
- inputs: [
5
- {
6
- name: '_vault',
7
- type: 'address',
8
- internalType: 'address',
9
- },
10
- {
11
- name: '_assetOFT',
12
- type: 'address',
13
- internalType: 'address',
14
- },
15
- {
16
- name: '_shareOFT',
17
- type: 'address',
18
- internalType: 'address',
19
- },
20
- ],
21
- stateMutability: 'nonpayable',
22
- },
23
- {
24
- type: 'receive',
25
- stateMutability: 'payable',
26
- },
27
- {
28
- type: 'function',
29
- name: 'ASSET_ERC20',
30
- inputs: [],
31
- outputs: [
32
- {
33
- name: '',
34
- type: 'address',
35
- internalType: 'address',
36
- },
37
- ],
38
- stateMutability: 'view',
39
- },
40
- {
41
- type: 'function',
42
- name: 'ASSET_OFT',
43
- inputs: [],
44
- outputs: [
45
- {
46
- name: '',
47
- type: 'address',
48
- internalType: 'address',
49
- },
50
- ],
51
- stateMutability: 'view',
52
- },
53
- {
54
- type: 'function',
55
- name: 'ENDPOINT',
56
- inputs: [],
57
- outputs: [
58
- {
59
- name: '',
60
- type: 'address',
61
- internalType: 'address',
62
- },
63
- ],
64
- stateMutability: 'view',
65
- },
66
- {
67
- type: 'function',
68
- name: 'SHARE_ERC20',
69
- inputs: [],
70
- outputs: [
71
- {
72
- name: '',
73
- type: 'address',
74
- internalType: 'address',
75
- },
76
- ],
77
- stateMutability: 'view',
78
- },
79
- {
80
- type: 'function',
81
- name: 'SHARE_OFT',
82
- inputs: [],
83
- outputs: [
84
- {
85
- name: '',
86
- type: 'address',
87
- internalType: 'address',
88
- },
89
- ],
90
- stateMutability: 'view',
91
- },
92
- {
93
- type: 'function',
94
- name: 'VAULT',
95
- inputs: [],
96
- outputs: [
97
- {
98
- name: '',
99
- type: 'address',
100
- internalType: 'contract IERC4626',
101
- },
102
- ],
103
- stateMutability: 'view',
104
- },
105
- {
106
- type: 'function',
107
- name: 'VAULT_EID',
108
- inputs: [],
109
- outputs: [
110
- {
111
- name: '',
112
- type: 'uint32',
113
- internalType: 'uint32',
114
- },
115
- ],
116
- stateMutability: 'view',
117
- },
118
- {
119
- type: 'function',
120
- name: 'depositAndSend',
121
- inputs: [
122
- {
123
- name: '_assetAmount',
124
- type: 'uint256',
125
- internalType: 'uint256',
126
- },
127
- {
128
- name: '_sendParam',
129
- type: 'tuple',
130
- internalType: 'struct SendParam',
131
- components: [
132
- {
133
- name: 'dstEid',
134
- type: 'uint32',
135
- internalType: 'uint32',
136
- },
137
- {
138
- name: 'to',
139
- type: 'bytes32',
140
- internalType: 'bytes32',
141
- },
142
- {
143
- name: 'amountLD',
144
- type: 'uint256',
145
- internalType: 'uint256',
146
- },
147
- {
148
- name: 'minAmountLD',
149
- type: 'uint256',
150
- internalType: 'uint256',
151
- },
152
- {
153
- name: 'extraOptions',
154
- type: 'bytes',
155
- internalType: 'bytes',
156
- },
157
- {
158
- name: 'composeMsg',
159
- type: 'bytes',
160
- internalType: 'bytes',
161
- },
162
- {
163
- name: 'oftCmd',
164
- type: 'bytes',
165
- internalType: 'bytes',
166
- },
167
- ],
168
- },
169
- {
170
- name: '_refundAddress',
171
- type: 'address',
172
- internalType: 'address',
173
- },
174
- ],
175
- outputs: [],
176
- stateMutability: 'payable',
177
- },
178
- {
179
- type: 'function',
180
- name: 'depositNativeAndSend',
181
- inputs: [
182
- {
183
- name: '_assetAmount',
184
- type: 'uint256',
185
- internalType: 'uint256',
186
- },
187
- {
188
- name: '_sendParam',
189
- type: 'tuple',
190
- internalType: 'struct SendParam',
191
- components: [
192
- {
193
- name: 'dstEid',
194
- type: 'uint32',
195
- internalType: 'uint32',
196
- },
197
- {
198
- name: 'to',
199
- type: 'bytes32',
200
- internalType: 'bytes32',
201
- },
202
- {
203
- name: 'amountLD',
204
- type: 'uint256',
205
- internalType: 'uint256',
206
- },
207
- {
208
- name: 'minAmountLD',
209
- type: 'uint256',
210
- internalType: 'uint256',
211
- },
212
- {
213
- name: 'extraOptions',
214
- type: 'bytes',
215
- internalType: 'bytes',
216
- },
217
- {
218
- name: 'composeMsg',
219
- type: 'bytes',
220
- internalType: 'bytes',
221
- },
222
- {
223
- name: 'oftCmd',
224
- type: 'bytes',
225
- internalType: 'bytes',
226
- },
227
- ],
228
- },
229
- {
230
- name: '_refundAddress',
231
- type: 'address',
232
- internalType: 'address',
233
- },
234
- ],
235
- outputs: [],
236
- stateMutability: 'payable',
237
- },
238
- {
239
- type: 'function',
240
- name: 'handleCompose',
241
- inputs: [
242
- {
243
- name: '_oftIn',
244
- type: 'address',
245
- internalType: 'address',
246
- },
247
- {
248
- name: '_composeFrom',
249
- type: 'bytes32',
250
- internalType: 'bytes32',
251
- },
252
- {
253
- name: '_composeMsg',
254
- type: 'bytes',
255
- internalType: 'bytes',
256
- },
257
- {
258
- name: '_amount',
259
- type: 'uint256',
260
- internalType: 'uint256',
261
- },
262
- ],
263
- outputs: [],
264
- stateMutability: 'payable',
265
- },
266
- {
267
- type: 'function',
268
- name: 'lzCompose',
269
- inputs: [
270
- {
271
- name: '_composeSender',
272
- type: 'address',
273
- internalType: 'address',
274
- },
275
- {
276
- name: '_guid',
277
- type: 'bytes32',
278
- internalType: 'bytes32',
279
- },
280
- {
281
- name: '_message',
282
- type: 'bytes',
283
- internalType: 'bytes',
284
- },
285
- {
286
- name: '',
287
- type: 'address',
288
- internalType: 'address',
289
- },
290
- {
291
- name: '',
292
- type: 'bytes',
293
- internalType: 'bytes',
294
- },
295
- ],
296
- outputs: [],
297
- stateMutability: 'payable',
298
- },
299
- {
300
- type: 'function',
301
- name: 'quoteSend',
302
- inputs: [
303
- {
304
- name: '_from',
305
- type: 'address',
306
- internalType: 'address',
307
- },
308
- {
309
- name: '_targetOFT',
310
- type: 'address',
311
- internalType: 'address',
312
- },
313
- {
314
- name: '_vaultInAmount',
315
- type: 'uint256',
316
- internalType: 'uint256',
317
- },
318
- {
319
- name: '_sendParam',
320
- type: 'tuple',
321
- internalType: 'struct SendParam',
322
- components: [
323
- {
324
- name: 'dstEid',
325
- type: 'uint32',
326
- internalType: 'uint32',
327
- },
328
- {
329
- name: 'to',
330
- type: 'bytes32',
331
- internalType: 'bytes32',
332
- },
333
- {
334
- name: 'amountLD',
335
- type: 'uint256',
336
- internalType: 'uint256',
337
- },
338
- {
339
- name: 'minAmountLD',
340
- type: 'uint256',
341
- internalType: 'uint256',
342
- },
343
- {
344
- name: 'extraOptions',
345
- type: 'bytes',
346
- internalType: 'bytes',
347
- },
348
- {
349
- name: 'composeMsg',
350
- type: 'bytes',
351
- internalType: 'bytes',
352
- },
353
- {
354
- name: 'oftCmd',
355
- type: 'bytes',
356
- internalType: 'bytes',
357
- },
358
- ],
359
- },
360
- ],
361
- outputs: [
362
- {
363
- name: '',
364
- type: 'tuple',
365
- internalType: 'struct MessagingFee',
366
- components: [
367
- {
368
- name: 'nativeFee',
369
- type: 'uint256',
370
- internalType: 'uint256',
371
- },
372
- {
373
- name: 'lzTokenFee',
374
- type: 'uint256',
375
- internalType: 'uint256',
376
- },
377
- ],
378
- },
379
- ],
380
- stateMutability: 'view',
381
- },
382
- {
383
- type: 'function',
384
- name: 'redeemAndSend',
385
- inputs: [
386
- {
387
- name: '_shareAmount',
388
- type: 'uint256',
389
- internalType: 'uint256',
390
- },
391
- {
392
- name: '_sendParam',
393
- type: 'tuple',
394
- internalType: 'struct SendParam',
395
- components: [
396
- {
397
- name: 'dstEid',
398
- type: 'uint32',
399
- internalType: 'uint32',
400
- },
401
- {
402
- name: 'to',
403
- type: 'bytes32',
404
- internalType: 'bytes32',
405
- },
406
- {
407
- name: 'amountLD',
408
- type: 'uint256',
409
- internalType: 'uint256',
410
- },
411
- {
412
- name: 'minAmountLD',
413
- type: 'uint256',
414
- internalType: 'uint256',
415
- },
416
- {
417
- name: 'extraOptions',
418
- type: 'bytes',
419
- internalType: 'bytes',
420
- },
421
- {
422
- name: 'composeMsg',
423
- type: 'bytes',
424
- internalType: 'bytes',
425
- },
426
- {
427
- name: 'oftCmd',
428
- type: 'bytes',
429
- internalType: 'bytes',
430
- },
431
- ],
432
- },
433
- {
434
- name: '_refundAddress',
435
- type: 'address',
436
- internalType: 'address',
437
- },
438
- ],
439
- outputs: [],
440
- stateMutability: 'payable',
441
- },
442
- {
443
- type: 'event',
444
- name: 'Deposited',
445
- inputs: [
446
- {
447
- name: 'sender',
448
- type: 'bytes32',
449
- indexed: false,
450
- internalType: 'bytes32',
451
- },
452
- {
453
- name: 'recipient',
454
- type: 'bytes32',
455
- indexed: false,
456
- internalType: 'bytes32',
457
- },
458
- {
459
- name: 'dstEid',
460
- type: 'uint32',
461
- indexed: false,
462
- internalType: 'uint32',
463
- },
464
- {
465
- name: 'assetAmt',
466
- type: 'uint256',
467
- indexed: false,
468
- internalType: 'uint256',
469
- },
470
- {
471
- name: 'shareAmt',
472
- type: 'uint256',
473
- indexed: false,
474
- internalType: 'uint256',
475
- },
476
- ],
477
- anonymous: false,
478
- },
479
- {
480
- type: 'event',
481
- name: 'Redeemed',
482
- inputs: [
483
- {
484
- name: 'sender',
485
- type: 'bytes32',
486
- indexed: false,
487
- internalType: 'bytes32',
488
- },
489
- {
490
- name: 'recipient',
491
- type: 'bytes32',
492
- indexed: false,
493
- internalType: 'bytes32',
494
- },
495
- {
496
- name: 'dstEid',
497
- type: 'uint32',
498
- indexed: false,
499
- internalType: 'uint32',
500
- },
501
- {
502
- name: 'shareAmt',
503
- type: 'uint256',
504
- indexed: false,
505
- internalType: 'uint256',
506
- },
507
- {
508
- name: 'assetAmt',
509
- type: 'uint256',
510
- indexed: false,
511
- internalType: 'uint256',
512
- },
513
- ],
514
- anonymous: false,
515
- },
516
- {
517
- type: 'event',
518
- name: 'Refunded',
519
- inputs: [
520
- {
521
- name: 'guid',
522
- type: 'bytes32',
523
- indexed: true,
524
- internalType: 'bytes32',
525
- },
526
- ],
527
- anonymous: false,
528
- },
529
- {
530
- type: 'event',
531
- name: 'Sent',
532
- inputs: [
533
- {
534
- name: 'guid',
535
- type: 'bytes32',
536
- indexed: true,
537
- internalType: 'bytes32',
538
- },
539
- ],
540
- anonymous: false,
541
- },
542
- {
543
- type: 'error',
544
- name: 'AmountExceedsMsgValue',
545
- inputs: [],
546
- },
547
- {
548
- type: 'error',
549
- name: 'AssetOFTTokenNotNative',
550
- inputs: [],
551
- },
552
- {
553
- type: 'error',
554
- name: 'AssetTokenNotVaultAsset',
555
- inputs: [
556
- {
557
- name: 'assetERC20',
558
- type: 'address',
559
- internalType: 'address',
560
- },
561
- {
562
- name: 'vaultAsset',
563
- type: 'address',
564
- internalType: 'address',
565
- },
566
- ],
567
- },
568
- {
569
- type: 'error',
570
- name: 'ERC4626ExceededMaxDeposit',
571
- inputs: [
572
- {
573
- name: 'receiver',
574
- type: 'address',
575
- internalType: 'address',
576
- },
577
- {
578
- name: 'assets',
579
- type: 'uint256',
580
- internalType: 'uint256',
581
- },
582
- {
583
- name: 'max',
584
- type: 'uint256',
585
- internalType: 'uint256',
586
- },
587
- ],
588
- },
589
- {
590
- type: 'error',
591
- name: 'ERC4626ExceededMaxRedeem',
592
- inputs: [
593
- {
594
- name: 'owner',
595
- type: 'address',
596
- internalType: 'address',
597
- },
598
- {
599
- name: 'shares',
600
- type: 'uint256',
601
- internalType: 'uint256',
602
- },
603
- {
604
- name: 'max',
605
- type: 'uint256',
606
- internalType: 'uint256',
607
- },
608
- ],
609
- },
610
- {
611
- type: 'error',
612
- name: 'InsufficientMsgValue',
613
- inputs: [
614
- {
615
- name: 'expectedMsgValue',
616
- type: 'uint256',
617
- internalType: 'uint256',
618
- },
619
- {
620
- name: 'actualMsgValue',
621
- type: 'uint256',
622
- internalType: 'uint256',
623
- },
624
- ],
625
- },
626
- {
627
- type: 'error',
628
- name: 'NoMsgValueExpected',
629
- inputs: [],
630
- },
631
- {
632
- type: 'error',
633
- name: 'OnlyEndpoint',
634
- inputs: [
635
- {
636
- name: 'caller',
637
- type: 'address',
638
- internalType: 'address',
639
- },
640
- ],
641
- },
642
- {
643
- type: 'error',
644
- name: 'OnlySelf',
645
- inputs: [
646
- {
647
- name: 'caller',
648
- type: 'address',
649
- internalType: 'address',
650
- },
651
- ],
652
- },
653
- {
654
- type: 'error',
655
- name: 'OnlyValidComposeCaller',
656
- inputs: [
657
- {
658
- name: 'caller',
659
- type: 'address',
660
- internalType: 'address',
661
- },
662
- ],
663
- },
664
- {
665
- type: 'error',
666
- name: 'ReentrancyGuardReentrantCall',
667
- inputs: [],
668
- },
669
- {
670
- type: 'error',
671
- name: 'SafeERC20FailedOperation',
672
- inputs: [
673
- {
674
- name: 'token',
675
- type: 'address',
676
- internalType: 'address',
677
- },
678
- ],
679
- },
680
- {
681
- type: 'error',
682
- name: 'ShareOFTNotAdapter',
683
- inputs: [
684
- {
685
- name: 'shareOFT',
686
- type: 'address',
687
- internalType: 'address',
688
- },
689
- ],
690
- },
691
- {
692
- type: 'error',
693
- name: 'ShareTokenNotVault',
694
- inputs: [
695
- {
696
- name: 'shareERC20',
697
- type: 'address',
698
- internalType: 'address',
699
- },
700
- {
701
- name: 'vault',
702
- type: 'address',
703
- internalType: 'address',
704
- },
705
- ],
706
- },
707
- {
708
- type: 'error',
709
- name: 'SlippageExceeded',
710
- inputs: [
711
- {
712
- name: 'amountLD',
713
- type: 'uint256',
714
- internalType: 'uint256',
715
- },
716
- {
717
- name: 'minAmountLD',
718
- type: 'uint256',
719
- internalType: 'uint256',
720
- },
721
- ],
722
- },
723
- ];