@morpho-org/bundler-sdk-viem 4.1.4 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/lib/{actions.js → cjs/actions.js} +3 -0
  2. package/lib/cjs/package.json +1 -0
  3. package/lib/esm/ActionBundle.d.ts +37 -0
  4. package/lib/esm/ActionBundle.js +35 -0
  5. package/lib/esm/BundlerAction.d.ts +470 -0
  6. package/lib/esm/BundlerAction.js +1657 -0
  7. package/lib/esm/abis.d.ts +3014 -0
  8. package/lib/esm/abis.js +2047 -0
  9. package/lib/esm/actions.d.ts +10 -0
  10. package/lib/esm/actions.js +793 -0
  11. package/lib/esm/bundle.d.ts +12 -0
  12. package/lib/esm/bundle.js +11 -0
  13. package/lib/esm/errors.d.ts +30 -0
  14. package/lib/esm/errors.js +54 -0
  15. package/lib/esm/index.d.ts +8 -0
  16. package/lib/esm/index.js +8 -0
  17. package/lib/esm/operations.d.ts +78 -0
  18. package/lib/esm/operations.js +800 -0
  19. package/lib/esm/package.json +1 -0
  20. package/lib/esm/types/actions.d.ts +355 -0
  21. package/lib/esm/types/actions.js +1 -0
  22. package/lib/esm/types/index.d.ts +2 -0
  23. package/lib/esm/types/index.js +2 -0
  24. package/lib/esm/types/operations.d.ts +86 -0
  25. package/lib/esm/types/operations.js +55 -0
  26. package/package.json +25 -16
  27. package/src/index.ts +8 -0
  28. /package/lib/{ActionBundle.d.ts → cjs/ActionBundle.d.ts} +0 -0
  29. /package/lib/{ActionBundle.js → cjs/ActionBundle.js} +0 -0
  30. /package/lib/{BundlerAction.d.ts → cjs/BundlerAction.d.ts} +0 -0
  31. /package/lib/{BundlerAction.js → cjs/BundlerAction.js} +0 -0
  32. /package/lib/{abis.d.ts → cjs/abis.d.ts} +0 -0
  33. /package/lib/{abis.js → cjs/abis.js} +0 -0
  34. /package/lib/{actions.d.ts → cjs/actions.d.ts} +0 -0
  35. /package/lib/{bundle.d.ts → cjs/bundle.d.ts} +0 -0
  36. /package/lib/{bundle.js → cjs/bundle.js} +0 -0
  37. /package/lib/{errors.d.ts → cjs/errors.d.ts} +0 -0
  38. /package/lib/{errors.js → cjs/errors.js} +0 -0
  39. /package/lib/{index.d.ts → cjs/index.d.ts} +0 -0
  40. /package/lib/{index.js → cjs/index.js} +0 -0
  41. /package/lib/{operations.d.ts → cjs/operations.d.ts} +0 -0
  42. /package/lib/{operations.js → cjs/operations.js} +0 -0
  43. /package/lib/{types → cjs/types}/actions.d.ts +0 -0
  44. /package/lib/{types → cjs/types}/actions.js +0 -0
  45. /package/lib/{types → cjs/types}/index.d.ts +0 -0
  46. /package/lib/{types → cjs/types}/index.js +0 -0
  47. /package/lib/{types → cjs/types}/operations.d.ts +0 -0
  48. /package/lib/{types → cjs/types}/operations.js +0 -0
@@ -0,0 +1,2047 @@
1
+ export const universalRewardsDistributorAbi = [
2
+ {
3
+ inputs: [
4
+ { internalType: "address", name: "initialOwner", type: "address" },
5
+ { internalType: "uint256", name: "initialTimelock", type: "uint256" },
6
+ { internalType: "bytes32", name: "initialRoot", type: "bytes32" },
7
+ { internalType: "bytes32", name: "initialIpfsHash", type: "bytes32" },
8
+ ],
9
+ stateMutability: "nonpayable",
10
+ type: "constructor",
11
+ },
12
+ {
13
+ inputs: [],
14
+ name: "acceptRoot",
15
+ outputs: [],
16
+ stateMutability: "nonpayable",
17
+ type: "function",
18
+ },
19
+ {
20
+ inputs: [
21
+ { internalType: "address", name: "account", type: "address" },
22
+ { internalType: "address", name: "reward", type: "address" },
23
+ { internalType: "uint256", name: "claimable", type: "uint256" },
24
+ { internalType: "bytes32[]", name: "proof", type: "bytes32[]" },
25
+ ],
26
+ name: "claim",
27
+ outputs: [{ internalType: "uint256", name: "amount", type: "uint256" }],
28
+ stateMutability: "nonpayable",
29
+ type: "function",
30
+ },
31
+ {
32
+ inputs: [
33
+ { internalType: "address", name: "account", type: "address" },
34
+ { internalType: "address", name: "reward", type: "address" },
35
+ ],
36
+ name: "claimed",
37
+ outputs: [{ internalType: "uint256", name: "amount", type: "uint256" }],
38
+ stateMutability: "view",
39
+ type: "function",
40
+ },
41
+ {
42
+ inputs: [],
43
+ name: "ipfsHash",
44
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
45
+ stateMutability: "view",
46
+ type: "function",
47
+ },
48
+ {
49
+ inputs: [{ internalType: "address", name: "", type: "address" }],
50
+ name: "isUpdater",
51
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
52
+ stateMutability: "view",
53
+ type: "function",
54
+ },
55
+ {
56
+ inputs: [],
57
+ name: "owner",
58
+ outputs: [{ internalType: "address", name: "", type: "address" }],
59
+ stateMutability: "view",
60
+ type: "function",
61
+ },
62
+ {
63
+ inputs: [],
64
+ name: "pendingRoot",
65
+ outputs: [
66
+ { internalType: "bytes32", name: "root", type: "bytes32" },
67
+ { internalType: "bytes32", name: "ipfsHash", type: "bytes32" },
68
+ { internalType: "uint256", name: "validAt", type: "uint256" },
69
+ ],
70
+ stateMutability: "view",
71
+ type: "function",
72
+ },
73
+ {
74
+ inputs: [],
75
+ name: "revokePendingRoot",
76
+ outputs: [],
77
+ stateMutability: "nonpayable",
78
+ type: "function",
79
+ },
80
+ {
81
+ inputs: [],
82
+ name: "root",
83
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
84
+ stateMutability: "view",
85
+ type: "function",
86
+ },
87
+ {
88
+ inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
89
+ name: "setOwner",
90
+ outputs: [],
91
+ stateMutability: "nonpayable",
92
+ type: "function",
93
+ },
94
+ {
95
+ inputs: [
96
+ { internalType: "bytes32", name: "newRoot", type: "bytes32" },
97
+ { internalType: "bytes32", name: "newIpfsHash", type: "bytes32" },
98
+ ],
99
+ name: "setRoot",
100
+ outputs: [],
101
+ stateMutability: "nonpayable",
102
+ type: "function",
103
+ },
104
+ {
105
+ inputs: [
106
+ { internalType: "address", name: "updater", type: "address" },
107
+ { internalType: "bool", name: "active", type: "bool" },
108
+ ],
109
+ name: "setRootUpdater",
110
+ outputs: [],
111
+ stateMutability: "nonpayable",
112
+ type: "function",
113
+ },
114
+ {
115
+ inputs: [{ internalType: "uint256", name: "newTimelock", type: "uint256" }],
116
+ name: "setTimelock",
117
+ outputs: [],
118
+ stateMutability: "nonpayable",
119
+ type: "function",
120
+ },
121
+ {
122
+ inputs: [
123
+ { internalType: "bytes32", name: "newRoot", type: "bytes32" },
124
+ { internalType: "bytes32", name: "newIpfsHash", type: "bytes32" },
125
+ ],
126
+ name: "submitRoot",
127
+ outputs: [],
128
+ stateMutability: "nonpayable",
129
+ type: "function",
130
+ },
131
+ {
132
+ inputs: [],
133
+ name: "timelock",
134
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
135
+ stateMutability: "view",
136
+ type: "function",
137
+ },
138
+ ];
139
+ export const bundler3Abi = [
140
+ {
141
+ type: "function",
142
+ name: "initiator",
143
+ inputs: [],
144
+ outputs: [
145
+ {
146
+ name: "",
147
+ type: "address",
148
+ internalType: "address",
149
+ },
150
+ ],
151
+ stateMutability: "view",
152
+ },
153
+ {
154
+ type: "function",
155
+ name: "multicall",
156
+ inputs: [
157
+ {
158
+ name: "bundle",
159
+ type: "tuple[]",
160
+ internalType: "struct Call[]",
161
+ components: [
162
+ {
163
+ name: "to",
164
+ type: "address",
165
+ internalType: "address",
166
+ },
167
+ {
168
+ name: "data",
169
+ type: "bytes",
170
+ internalType: "bytes",
171
+ },
172
+ {
173
+ name: "value",
174
+ type: "uint256",
175
+ internalType: "uint256",
176
+ },
177
+ {
178
+ name: "skipRevert",
179
+ type: "bool",
180
+ internalType: "bool",
181
+ },
182
+ {
183
+ name: "callbackHash",
184
+ type: "bytes32",
185
+ internalType: "bytes32",
186
+ },
187
+ ],
188
+ },
189
+ ],
190
+ outputs: [],
191
+ stateMutability: "payable",
192
+ },
193
+ {
194
+ type: "function",
195
+ name: "reenter",
196
+ inputs: [
197
+ {
198
+ name: "bundle",
199
+ type: "tuple[]",
200
+ internalType: "struct Call[]",
201
+ components: [
202
+ {
203
+ name: "to",
204
+ type: "address",
205
+ internalType: "address",
206
+ },
207
+ {
208
+ name: "data",
209
+ type: "bytes",
210
+ internalType: "bytes",
211
+ },
212
+ {
213
+ name: "value",
214
+ type: "uint256",
215
+ internalType: "uint256",
216
+ },
217
+ {
218
+ name: "skipRevert",
219
+ type: "bool",
220
+ internalType: "bool",
221
+ },
222
+ {
223
+ name: "callbackHash",
224
+ type: "bytes32",
225
+ internalType: "bytes32",
226
+ },
227
+ ],
228
+ },
229
+ ],
230
+ outputs: [],
231
+ stateMutability: "nonpayable",
232
+ },
233
+ {
234
+ type: "function",
235
+ name: "reenterHash",
236
+ inputs: [],
237
+ outputs: [
238
+ {
239
+ name: "",
240
+ type: "bytes32",
241
+ internalType: "bytes32",
242
+ },
243
+ ],
244
+ stateMutability: "view",
245
+ },
246
+ {
247
+ type: "error",
248
+ name: "AlreadyInitiated",
249
+ inputs: [],
250
+ },
251
+ {
252
+ type: "error",
253
+ name: "EmptyBundle",
254
+ inputs: [],
255
+ },
256
+ {
257
+ type: "error",
258
+ name: "IncorrectReenterHash",
259
+ inputs: [],
260
+ },
261
+ {
262
+ type: "error",
263
+ name: "MissingExpectedReenter",
264
+ inputs: [],
265
+ },
266
+ ];
267
+ export const coreAdapterAbi = [
268
+ {
269
+ type: "receive",
270
+ stateMutability: "payable",
271
+ },
272
+ {
273
+ type: "function",
274
+ name: "BUNDLER3",
275
+ inputs: [],
276
+ outputs: [
277
+ {
278
+ name: "",
279
+ type: "address",
280
+ internalType: "address",
281
+ },
282
+ ],
283
+ stateMutability: "view",
284
+ },
285
+ {
286
+ type: "function",
287
+ name: "erc20Transfer",
288
+ inputs: [
289
+ {
290
+ name: "token",
291
+ type: "address",
292
+ internalType: "address",
293
+ },
294
+ {
295
+ name: "receiver",
296
+ type: "address",
297
+ internalType: "address",
298
+ },
299
+ {
300
+ name: "amount",
301
+ type: "uint256",
302
+ internalType: "uint256",
303
+ },
304
+ ],
305
+ outputs: [],
306
+ stateMutability: "nonpayable",
307
+ },
308
+ {
309
+ type: "function",
310
+ name: "nativeTransfer",
311
+ inputs: [
312
+ {
313
+ name: "receiver",
314
+ type: "address",
315
+ internalType: "address",
316
+ },
317
+ {
318
+ name: "amount",
319
+ type: "uint256",
320
+ internalType: "uint256",
321
+ },
322
+ ],
323
+ outputs: [],
324
+ stateMutability: "nonpayable",
325
+ },
326
+ {
327
+ type: "error",
328
+ name: "AdapterAddress",
329
+ inputs: [],
330
+ },
331
+ {
332
+ type: "error",
333
+ name: "FailedCall",
334
+ inputs: [],
335
+ },
336
+ {
337
+ type: "error",
338
+ name: "InsufficientBalance",
339
+ inputs: [
340
+ {
341
+ name: "balance",
342
+ type: "uint256",
343
+ internalType: "uint256",
344
+ },
345
+ {
346
+ name: "needed",
347
+ type: "uint256",
348
+ internalType: "uint256",
349
+ },
350
+ ],
351
+ },
352
+ {
353
+ type: "error",
354
+ name: "SafeERC20FailedOperation",
355
+ inputs: [
356
+ {
357
+ name: "token",
358
+ type: "address",
359
+ internalType: "address",
360
+ },
361
+ ],
362
+ },
363
+ {
364
+ type: "error",
365
+ name: "UnauthorizedSender",
366
+ inputs: [],
367
+ },
368
+ {
369
+ type: "error",
370
+ name: "ZeroAddress",
371
+ inputs: [],
372
+ },
373
+ {
374
+ type: "error",
375
+ name: "ZeroAmount",
376
+ inputs: [],
377
+ },
378
+ ];
379
+ export const generalAdapter1Abi = [
380
+ ...coreAdapterAbi,
381
+ {
382
+ type: "constructor",
383
+ inputs: [
384
+ {
385
+ name: "bundler3",
386
+ type: "address",
387
+ internalType: "address",
388
+ },
389
+ {
390
+ name: "morpho",
391
+ type: "address",
392
+ internalType: "address",
393
+ },
394
+ {
395
+ name: "wNative",
396
+ type: "address",
397
+ internalType: "address",
398
+ },
399
+ ],
400
+ stateMutability: "nonpayable",
401
+ },
402
+ {
403
+ type: "function",
404
+ name: "MORPHO",
405
+ inputs: [],
406
+ outputs: [
407
+ {
408
+ name: "",
409
+ type: "address",
410
+ internalType: "contract IMorpho",
411
+ },
412
+ ],
413
+ stateMutability: "view",
414
+ },
415
+ {
416
+ type: "function",
417
+ name: "WRAPPED_NATIVE",
418
+ inputs: [],
419
+ outputs: [
420
+ {
421
+ name: "",
422
+ type: "address",
423
+ internalType: "contract IWNative",
424
+ },
425
+ ],
426
+ stateMutability: "view",
427
+ },
428
+ {
429
+ type: "function",
430
+ name: "erc20TransferFrom",
431
+ inputs: [
432
+ {
433
+ name: "token",
434
+ type: "address",
435
+ internalType: "address",
436
+ },
437
+ {
438
+ name: "receiver",
439
+ type: "address",
440
+ internalType: "address",
441
+ },
442
+ {
443
+ name: "amount",
444
+ type: "uint256",
445
+ internalType: "uint256",
446
+ },
447
+ ],
448
+ outputs: [],
449
+ stateMutability: "nonpayable",
450
+ },
451
+ {
452
+ type: "function",
453
+ name: "erc4626Deposit",
454
+ inputs: [
455
+ {
456
+ name: "vault",
457
+ type: "address",
458
+ internalType: "address",
459
+ },
460
+ {
461
+ name: "assets",
462
+ type: "uint256",
463
+ internalType: "uint256",
464
+ },
465
+ {
466
+ name: "maxSharePriceE27",
467
+ type: "uint256",
468
+ internalType: "uint256",
469
+ },
470
+ {
471
+ name: "receiver",
472
+ type: "address",
473
+ internalType: "address",
474
+ },
475
+ ],
476
+ outputs: [],
477
+ stateMutability: "nonpayable",
478
+ },
479
+ {
480
+ type: "function",
481
+ name: "erc4626Mint",
482
+ inputs: [
483
+ {
484
+ name: "vault",
485
+ type: "address",
486
+ internalType: "address",
487
+ },
488
+ {
489
+ name: "shares",
490
+ type: "uint256",
491
+ internalType: "uint256",
492
+ },
493
+ {
494
+ name: "maxSharePriceE27",
495
+ type: "uint256",
496
+ internalType: "uint256",
497
+ },
498
+ {
499
+ name: "receiver",
500
+ type: "address",
501
+ internalType: "address",
502
+ },
503
+ ],
504
+ outputs: [],
505
+ stateMutability: "nonpayable",
506
+ },
507
+ {
508
+ type: "function",
509
+ name: "erc4626Redeem",
510
+ inputs: [
511
+ {
512
+ name: "vault",
513
+ type: "address",
514
+ internalType: "address",
515
+ },
516
+ {
517
+ name: "shares",
518
+ type: "uint256",
519
+ internalType: "uint256",
520
+ },
521
+ {
522
+ name: "minSharePriceE27",
523
+ type: "uint256",
524
+ internalType: "uint256",
525
+ },
526
+ {
527
+ name: "receiver",
528
+ type: "address",
529
+ internalType: "address",
530
+ },
531
+ {
532
+ name: "owner",
533
+ type: "address",
534
+ internalType: "address",
535
+ },
536
+ ],
537
+ outputs: [],
538
+ stateMutability: "nonpayable",
539
+ },
540
+ {
541
+ type: "function",
542
+ name: "erc4626Withdraw",
543
+ inputs: [
544
+ {
545
+ name: "vault",
546
+ type: "address",
547
+ internalType: "address",
548
+ },
549
+ {
550
+ name: "assets",
551
+ type: "uint256",
552
+ internalType: "uint256",
553
+ },
554
+ {
555
+ name: "minSharePriceE27",
556
+ type: "uint256",
557
+ internalType: "uint256",
558
+ },
559
+ {
560
+ name: "receiver",
561
+ type: "address",
562
+ internalType: "address",
563
+ },
564
+ {
565
+ name: "owner",
566
+ type: "address",
567
+ internalType: "address",
568
+ },
569
+ ],
570
+ outputs: [],
571
+ stateMutability: "nonpayable",
572
+ },
573
+ {
574
+ type: "function",
575
+ name: "morphoBorrow",
576
+ inputs: [
577
+ {
578
+ name: "marketParams",
579
+ type: "tuple",
580
+ internalType: "struct MarketParams",
581
+ components: [
582
+ {
583
+ name: "loanToken",
584
+ type: "address",
585
+ internalType: "address",
586
+ },
587
+ {
588
+ name: "collateralToken",
589
+ type: "address",
590
+ internalType: "address",
591
+ },
592
+ {
593
+ name: "oracle",
594
+ type: "address",
595
+ internalType: "address",
596
+ },
597
+ {
598
+ name: "irm",
599
+ type: "address",
600
+ internalType: "address",
601
+ },
602
+ {
603
+ name: "lltv",
604
+ type: "uint256",
605
+ internalType: "uint256",
606
+ },
607
+ ],
608
+ },
609
+ {
610
+ name: "assets",
611
+ type: "uint256",
612
+ internalType: "uint256",
613
+ },
614
+ {
615
+ name: "shares",
616
+ type: "uint256",
617
+ internalType: "uint256",
618
+ },
619
+ {
620
+ name: "minSharePriceE27",
621
+ type: "uint256",
622
+ internalType: "uint256",
623
+ },
624
+ {
625
+ name: "receiver",
626
+ type: "address",
627
+ internalType: "address",
628
+ },
629
+ ],
630
+ outputs: [],
631
+ stateMutability: "nonpayable",
632
+ },
633
+ {
634
+ type: "function",
635
+ name: "morphoFlashLoan",
636
+ inputs: [
637
+ {
638
+ name: "token",
639
+ type: "address",
640
+ internalType: "address",
641
+ },
642
+ {
643
+ name: "assets",
644
+ type: "uint256",
645
+ internalType: "uint256",
646
+ },
647
+ {
648
+ name: "data",
649
+ type: "bytes",
650
+ internalType: "bytes",
651
+ },
652
+ ],
653
+ outputs: [],
654
+ stateMutability: "nonpayable",
655
+ },
656
+ {
657
+ type: "function",
658
+ name: "morphoRepay",
659
+ inputs: [
660
+ {
661
+ name: "marketParams",
662
+ type: "tuple",
663
+ internalType: "struct MarketParams",
664
+ components: [
665
+ {
666
+ name: "loanToken",
667
+ type: "address",
668
+ internalType: "address",
669
+ },
670
+ {
671
+ name: "collateralToken",
672
+ type: "address",
673
+ internalType: "address",
674
+ },
675
+ {
676
+ name: "oracle",
677
+ type: "address",
678
+ internalType: "address",
679
+ },
680
+ {
681
+ name: "irm",
682
+ type: "address",
683
+ internalType: "address",
684
+ },
685
+ {
686
+ name: "lltv",
687
+ type: "uint256",
688
+ internalType: "uint256",
689
+ },
690
+ ],
691
+ },
692
+ {
693
+ name: "assets",
694
+ type: "uint256",
695
+ internalType: "uint256",
696
+ },
697
+ {
698
+ name: "shares",
699
+ type: "uint256",
700
+ internalType: "uint256",
701
+ },
702
+ {
703
+ name: "maxSharePriceE27",
704
+ type: "uint256",
705
+ internalType: "uint256",
706
+ },
707
+ {
708
+ name: "onBehalf",
709
+ type: "address",
710
+ internalType: "address",
711
+ },
712
+ {
713
+ name: "data",
714
+ type: "bytes",
715
+ internalType: "bytes",
716
+ },
717
+ ],
718
+ outputs: [],
719
+ stateMutability: "nonpayable",
720
+ },
721
+ {
722
+ type: "function",
723
+ name: "morphoSupply",
724
+ inputs: [
725
+ {
726
+ name: "marketParams",
727
+ type: "tuple",
728
+ internalType: "struct MarketParams",
729
+ components: [
730
+ {
731
+ name: "loanToken",
732
+ type: "address",
733
+ internalType: "address",
734
+ },
735
+ {
736
+ name: "collateralToken",
737
+ type: "address",
738
+ internalType: "address",
739
+ },
740
+ {
741
+ name: "oracle",
742
+ type: "address",
743
+ internalType: "address",
744
+ },
745
+ {
746
+ name: "irm",
747
+ type: "address",
748
+ internalType: "address",
749
+ },
750
+ {
751
+ name: "lltv",
752
+ type: "uint256",
753
+ internalType: "uint256",
754
+ },
755
+ ],
756
+ },
757
+ {
758
+ name: "assets",
759
+ type: "uint256",
760
+ internalType: "uint256",
761
+ },
762
+ {
763
+ name: "shares",
764
+ type: "uint256",
765
+ internalType: "uint256",
766
+ },
767
+ {
768
+ name: "maxSharePriceE27",
769
+ type: "uint256",
770
+ internalType: "uint256",
771
+ },
772
+ {
773
+ name: "onBehalf",
774
+ type: "address",
775
+ internalType: "address",
776
+ },
777
+ {
778
+ name: "data",
779
+ type: "bytes",
780
+ internalType: "bytes",
781
+ },
782
+ ],
783
+ outputs: [],
784
+ stateMutability: "nonpayable",
785
+ },
786
+ {
787
+ type: "function",
788
+ name: "morphoSupplyCollateral",
789
+ inputs: [
790
+ {
791
+ name: "marketParams",
792
+ type: "tuple",
793
+ internalType: "struct MarketParams",
794
+ components: [
795
+ {
796
+ name: "loanToken",
797
+ type: "address",
798
+ internalType: "address",
799
+ },
800
+ {
801
+ name: "collateralToken",
802
+ type: "address",
803
+ internalType: "address",
804
+ },
805
+ {
806
+ name: "oracle",
807
+ type: "address",
808
+ internalType: "address",
809
+ },
810
+ {
811
+ name: "irm",
812
+ type: "address",
813
+ internalType: "address",
814
+ },
815
+ {
816
+ name: "lltv",
817
+ type: "uint256",
818
+ internalType: "uint256",
819
+ },
820
+ ],
821
+ },
822
+ {
823
+ name: "assets",
824
+ type: "uint256",
825
+ internalType: "uint256",
826
+ },
827
+ {
828
+ name: "onBehalf",
829
+ type: "address",
830
+ internalType: "address",
831
+ },
832
+ {
833
+ name: "data",
834
+ type: "bytes",
835
+ internalType: "bytes",
836
+ },
837
+ ],
838
+ outputs: [],
839
+ stateMutability: "nonpayable",
840
+ },
841
+ {
842
+ type: "function",
843
+ name: "morphoWithdraw",
844
+ inputs: [
845
+ {
846
+ name: "marketParams",
847
+ type: "tuple",
848
+ internalType: "struct MarketParams",
849
+ components: [
850
+ {
851
+ name: "loanToken",
852
+ type: "address",
853
+ internalType: "address",
854
+ },
855
+ {
856
+ name: "collateralToken",
857
+ type: "address",
858
+ internalType: "address",
859
+ },
860
+ {
861
+ name: "oracle",
862
+ type: "address",
863
+ internalType: "address",
864
+ },
865
+ {
866
+ name: "irm",
867
+ type: "address",
868
+ internalType: "address",
869
+ },
870
+ {
871
+ name: "lltv",
872
+ type: "uint256",
873
+ internalType: "uint256",
874
+ },
875
+ ],
876
+ },
877
+ {
878
+ name: "assets",
879
+ type: "uint256",
880
+ internalType: "uint256",
881
+ },
882
+ {
883
+ name: "shares",
884
+ type: "uint256",
885
+ internalType: "uint256",
886
+ },
887
+ {
888
+ name: "minSharePriceE27",
889
+ type: "uint256",
890
+ internalType: "uint256",
891
+ },
892
+ {
893
+ name: "receiver",
894
+ type: "address",
895
+ internalType: "address",
896
+ },
897
+ ],
898
+ outputs: [],
899
+ stateMutability: "nonpayable",
900
+ },
901
+ {
902
+ type: "function",
903
+ name: "morphoWithdrawCollateral",
904
+ inputs: [
905
+ {
906
+ name: "marketParams",
907
+ type: "tuple",
908
+ internalType: "struct MarketParams",
909
+ components: [
910
+ {
911
+ name: "loanToken",
912
+ type: "address",
913
+ internalType: "address",
914
+ },
915
+ {
916
+ name: "collateralToken",
917
+ type: "address",
918
+ internalType: "address",
919
+ },
920
+ {
921
+ name: "oracle",
922
+ type: "address",
923
+ internalType: "address",
924
+ },
925
+ {
926
+ name: "irm",
927
+ type: "address",
928
+ internalType: "address",
929
+ },
930
+ {
931
+ name: "lltv",
932
+ type: "uint256",
933
+ internalType: "uint256",
934
+ },
935
+ ],
936
+ },
937
+ {
938
+ name: "assets",
939
+ type: "uint256",
940
+ internalType: "uint256",
941
+ },
942
+ {
943
+ name: "receiver",
944
+ type: "address",
945
+ internalType: "address",
946
+ },
947
+ ],
948
+ outputs: [],
949
+ stateMutability: "nonpayable",
950
+ },
951
+ {
952
+ type: "function",
953
+ name: "onMorphoFlashLoan",
954
+ inputs: [
955
+ {
956
+ name: "",
957
+ type: "uint256",
958
+ internalType: "uint256",
959
+ },
960
+ {
961
+ name: "data",
962
+ type: "bytes",
963
+ internalType: "bytes",
964
+ },
965
+ ],
966
+ outputs: [],
967
+ stateMutability: "nonpayable",
968
+ },
969
+ {
970
+ type: "function",
971
+ name: "onMorphoRepay",
972
+ inputs: [
973
+ {
974
+ name: "",
975
+ type: "uint256",
976
+ internalType: "uint256",
977
+ },
978
+ {
979
+ name: "data",
980
+ type: "bytes",
981
+ internalType: "bytes",
982
+ },
983
+ ],
984
+ outputs: [],
985
+ stateMutability: "nonpayable",
986
+ },
987
+ {
988
+ type: "function",
989
+ name: "onMorphoSupply",
990
+ inputs: [
991
+ {
992
+ name: "",
993
+ type: "uint256",
994
+ internalType: "uint256",
995
+ },
996
+ {
997
+ name: "data",
998
+ type: "bytes",
999
+ internalType: "bytes",
1000
+ },
1001
+ ],
1002
+ outputs: [],
1003
+ stateMutability: "nonpayable",
1004
+ },
1005
+ {
1006
+ type: "function",
1007
+ name: "onMorphoSupplyCollateral",
1008
+ inputs: [
1009
+ {
1010
+ name: "",
1011
+ type: "uint256",
1012
+ internalType: "uint256",
1013
+ },
1014
+ {
1015
+ name: "data",
1016
+ type: "bytes",
1017
+ internalType: "bytes",
1018
+ },
1019
+ ],
1020
+ outputs: [],
1021
+ stateMutability: "nonpayable",
1022
+ },
1023
+ {
1024
+ type: "function",
1025
+ name: "permit2TransferFrom",
1026
+ inputs: [
1027
+ {
1028
+ name: "token",
1029
+ type: "address",
1030
+ internalType: "address",
1031
+ },
1032
+ {
1033
+ name: "receiver",
1034
+ type: "address",
1035
+ internalType: "address",
1036
+ },
1037
+ {
1038
+ name: "amount",
1039
+ type: "uint256",
1040
+ internalType: "uint256",
1041
+ },
1042
+ ],
1043
+ outputs: [],
1044
+ stateMutability: "nonpayable",
1045
+ },
1046
+ {
1047
+ type: "function",
1048
+ name: "unwrapNative",
1049
+ inputs: [
1050
+ {
1051
+ name: "amount",
1052
+ type: "uint256",
1053
+ internalType: "uint256",
1054
+ },
1055
+ {
1056
+ name: "receiver",
1057
+ type: "address",
1058
+ internalType: "address",
1059
+ },
1060
+ ],
1061
+ outputs: [],
1062
+ stateMutability: "nonpayable",
1063
+ },
1064
+ {
1065
+ type: "function",
1066
+ name: "wrapNative",
1067
+ inputs: [
1068
+ {
1069
+ name: "amount",
1070
+ type: "uint256",
1071
+ internalType: "uint256",
1072
+ },
1073
+ {
1074
+ name: "receiver",
1075
+ type: "address",
1076
+ internalType: "address",
1077
+ },
1078
+ ],
1079
+ outputs: [],
1080
+ stateMutability: "nonpayable",
1081
+ },
1082
+ {
1083
+ type: "error",
1084
+ name: "SlippageExceeded",
1085
+ inputs: [],
1086
+ },
1087
+ {
1088
+ type: "error",
1089
+ name: "UnexpectedOwner",
1090
+ inputs: [],
1091
+ },
1092
+ {
1093
+ type: "error",
1094
+ name: "UnsafeCast",
1095
+ inputs: [],
1096
+ },
1097
+ {
1098
+ type: "error",
1099
+ name: "ZeroShares",
1100
+ inputs: [],
1101
+ },
1102
+ ];
1103
+ export const ethereumGeneralAdapter1Abi = [
1104
+ ...generalAdapter1Abi,
1105
+ {
1106
+ type: "constructor",
1107
+ inputs: [
1108
+ {
1109
+ name: "bundler3",
1110
+ type: "address",
1111
+ internalType: "address",
1112
+ },
1113
+ {
1114
+ name: "morpho",
1115
+ type: "address",
1116
+ internalType: "address",
1117
+ },
1118
+ {
1119
+ name: "weth",
1120
+ type: "address",
1121
+ internalType: "address",
1122
+ },
1123
+ {
1124
+ name: "wStEth",
1125
+ type: "address",
1126
+ internalType: "address",
1127
+ },
1128
+ {
1129
+ name: "morphoToken",
1130
+ type: "address",
1131
+ internalType: "address",
1132
+ },
1133
+ {
1134
+ name: "morphoWrapper",
1135
+ type: "address",
1136
+ internalType: "address",
1137
+ },
1138
+ ],
1139
+ stateMutability: "nonpayable",
1140
+ },
1141
+ {
1142
+ type: "function",
1143
+ name: "MORPHO_TOKEN",
1144
+ inputs: [],
1145
+ outputs: [
1146
+ {
1147
+ name: "",
1148
+ type: "address",
1149
+ internalType: "address",
1150
+ },
1151
+ ],
1152
+ stateMutability: "view",
1153
+ },
1154
+ {
1155
+ type: "function",
1156
+ name: "MORPHO_WRAPPER",
1157
+ inputs: [],
1158
+ outputs: [
1159
+ {
1160
+ name: "",
1161
+ type: "address",
1162
+ internalType: "address",
1163
+ },
1164
+ ],
1165
+ stateMutability: "view",
1166
+ },
1167
+ {
1168
+ type: "function",
1169
+ name: "ST_ETH",
1170
+ inputs: [],
1171
+ outputs: [
1172
+ {
1173
+ name: "",
1174
+ type: "address",
1175
+ internalType: "address",
1176
+ },
1177
+ ],
1178
+ stateMutability: "view",
1179
+ },
1180
+ {
1181
+ type: "function",
1182
+ name: "WST_ETH",
1183
+ inputs: [],
1184
+ outputs: [
1185
+ {
1186
+ name: "",
1187
+ type: "address",
1188
+ internalType: "address",
1189
+ },
1190
+ ],
1191
+ stateMutability: "view",
1192
+ },
1193
+ {
1194
+ type: "function",
1195
+ name: "morphoWrapperDepositFor",
1196
+ inputs: [
1197
+ {
1198
+ name: "receiver",
1199
+ type: "address",
1200
+ internalType: "address",
1201
+ },
1202
+ {
1203
+ name: "amount",
1204
+ type: "uint256",
1205
+ internalType: "uint256",
1206
+ },
1207
+ ],
1208
+ outputs: [],
1209
+ stateMutability: "nonpayable",
1210
+ },
1211
+ {
1212
+ type: "function",
1213
+ name: "morphoWrapperWithdrawTo",
1214
+ inputs: [
1215
+ {
1216
+ name: "receiver",
1217
+ type: "address",
1218
+ internalType: "address",
1219
+ },
1220
+ {
1221
+ name: "amount",
1222
+ type: "uint256",
1223
+ internalType: "uint256",
1224
+ },
1225
+ ],
1226
+ outputs: [],
1227
+ stateMutability: "nonpayable",
1228
+ },
1229
+ {
1230
+ type: "function",
1231
+ name: "stakeEth",
1232
+ inputs: [
1233
+ {
1234
+ name: "amount",
1235
+ type: "uint256",
1236
+ internalType: "uint256",
1237
+ },
1238
+ {
1239
+ name: "maxSharePriceE27",
1240
+ type: "uint256",
1241
+ internalType: "uint256",
1242
+ },
1243
+ {
1244
+ name: "referral",
1245
+ type: "address",
1246
+ internalType: "address",
1247
+ },
1248
+ {
1249
+ name: "receiver",
1250
+ type: "address",
1251
+ internalType: "address",
1252
+ },
1253
+ ],
1254
+ outputs: [],
1255
+ stateMutability: "nonpayable",
1256
+ },
1257
+ {
1258
+ type: "function",
1259
+ name: "unwrapStEth",
1260
+ inputs: [
1261
+ {
1262
+ name: "amount",
1263
+ type: "uint256",
1264
+ internalType: "uint256",
1265
+ },
1266
+ {
1267
+ name: "receiver",
1268
+ type: "address",
1269
+ internalType: "address",
1270
+ },
1271
+ ],
1272
+ outputs: [],
1273
+ stateMutability: "nonpayable",
1274
+ },
1275
+ {
1276
+ type: "function",
1277
+ name: "wrapStEth",
1278
+ inputs: [
1279
+ {
1280
+ name: "amount",
1281
+ type: "uint256",
1282
+ internalType: "uint256",
1283
+ },
1284
+ {
1285
+ name: "receiver",
1286
+ type: "address",
1287
+ internalType: "address",
1288
+ },
1289
+ ],
1290
+ outputs: [],
1291
+ stateMutability: "nonpayable",
1292
+ },
1293
+ ];
1294
+ export const paraswapAdapterAbi = [
1295
+ ...coreAdapterAbi,
1296
+ {
1297
+ type: "constructor",
1298
+ inputs: [
1299
+ {
1300
+ name: "bundler3",
1301
+ type: "address",
1302
+ internalType: "address",
1303
+ },
1304
+ {
1305
+ name: "morpho",
1306
+ type: "address",
1307
+ internalType: "address",
1308
+ },
1309
+ {
1310
+ name: "augustusRegistry",
1311
+ type: "address",
1312
+ internalType: "address",
1313
+ },
1314
+ ],
1315
+ stateMutability: "nonpayable",
1316
+ },
1317
+ {
1318
+ type: "function",
1319
+ name: "AUGUSTUS_REGISTRY",
1320
+ inputs: [],
1321
+ outputs: [
1322
+ {
1323
+ name: "",
1324
+ type: "address",
1325
+ internalType: "contract IAugustusRegistry",
1326
+ },
1327
+ ],
1328
+ stateMutability: "view",
1329
+ },
1330
+ {
1331
+ type: "function",
1332
+ name: "MORPHO",
1333
+ inputs: [],
1334
+ outputs: [
1335
+ {
1336
+ name: "",
1337
+ type: "address",
1338
+ internalType: "contract IMorpho",
1339
+ },
1340
+ ],
1341
+ stateMutability: "view",
1342
+ },
1343
+ {
1344
+ type: "function",
1345
+ name: "buy",
1346
+ inputs: [
1347
+ {
1348
+ name: "augustus",
1349
+ type: "address",
1350
+ internalType: "address",
1351
+ },
1352
+ {
1353
+ name: "callData",
1354
+ type: "bytes",
1355
+ internalType: "bytes",
1356
+ },
1357
+ {
1358
+ name: "srcToken",
1359
+ type: "address",
1360
+ internalType: "address",
1361
+ },
1362
+ {
1363
+ name: "destToken",
1364
+ type: "address",
1365
+ internalType: "address",
1366
+ },
1367
+ {
1368
+ name: "newDestAmount",
1369
+ type: "uint256",
1370
+ internalType: "uint256",
1371
+ },
1372
+ {
1373
+ name: "offsets",
1374
+ type: "tuple",
1375
+ internalType: "struct Offsets",
1376
+ components: [
1377
+ {
1378
+ name: "exactAmount",
1379
+ type: "uint256",
1380
+ internalType: "uint256",
1381
+ },
1382
+ {
1383
+ name: "limitAmount",
1384
+ type: "uint256",
1385
+ internalType: "uint256",
1386
+ },
1387
+ {
1388
+ name: "quotedAmount",
1389
+ type: "uint256",
1390
+ internalType: "uint256",
1391
+ },
1392
+ ],
1393
+ },
1394
+ {
1395
+ name: "receiver",
1396
+ type: "address",
1397
+ internalType: "address",
1398
+ },
1399
+ ],
1400
+ outputs: [],
1401
+ stateMutability: "nonpayable",
1402
+ },
1403
+ {
1404
+ type: "function",
1405
+ name: "buyMorphoDebt",
1406
+ inputs: [
1407
+ {
1408
+ name: "augustus",
1409
+ type: "address",
1410
+ internalType: "address",
1411
+ },
1412
+ {
1413
+ name: "callData",
1414
+ type: "bytes",
1415
+ internalType: "bytes",
1416
+ },
1417
+ {
1418
+ name: "srcToken",
1419
+ type: "address",
1420
+ internalType: "address",
1421
+ },
1422
+ {
1423
+ name: "marketParams",
1424
+ type: "tuple",
1425
+ internalType: "struct MarketParams",
1426
+ components: [
1427
+ {
1428
+ name: "loanToken",
1429
+ type: "address",
1430
+ internalType: "address",
1431
+ },
1432
+ {
1433
+ name: "collateralToken",
1434
+ type: "address",
1435
+ internalType: "address",
1436
+ },
1437
+ {
1438
+ name: "oracle",
1439
+ type: "address",
1440
+ internalType: "address",
1441
+ },
1442
+ {
1443
+ name: "irm",
1444
+ type: "address",
1445
+ internalType: "address",
1446
+ },
1447
+ {
1448
+ name: "lltv",
1449
+ type: "uint256",
1450
+ internalType: "uint256",
1451
+ },
1452
+ ],
1453
+ },
1454
+ {
1455
+ name: "offsets",
1456
+ type: "tuple",
1457
+ internalType: "struct Offsets",
1458
+ components: [
1459
+ {
1460
+ name: "exactAmount",
1461
+ type: "uint256",
1462
+ internalType: "uint256",
1463
+ },
1464
+ {
1465
+ name: "limitAmount",
1466
+ type: "uint256",
1467
+ internalType: "uint256",
1468
+ },
1469
+ {
1470
+ name: "quotedAmount",
1471
+ type: "uint256",
1472
+ internalType: "uint256",
1473
+ },
1474
+ ],
1475
+ },
1476
+ {
1477
+ name: "onBehalf",
1478
+ type: "address",
1479
+ internalType: "address",
1480
+ },
1481
+ {
1482
+ name: "receiver",
1483
+ type: "address",
1484
+ internalType: "address",
1485
+ },
1486
+ ],
1487
+ outputs: [],
1488
+ stateMutability: "nonpayable",
1489
+ },
1490
+ {
1491
+ type: "function",
1492
+ name: "sell",
1493
+ inputs: [
1494
+ {
1495
+ name: "augustus",
1496
+ type: "address",
1497
+ internalType: "address",
1498
+ },
1499
+ {
1500
+ name: "callData",
1501
+ type: "bytes",
1502
+ internalType: "bytes",
1503
+ },
1504
+ {
1505
+ name: "srcToken",
1506
+ type: "address",
1507
+ internalType: "address",
1508
+ },
1509
+ {
1510
+ name: "destToken",
1511
+ type: "address",
1512
+ internalType: "address",
1513
+ },
1514
+ {
1515
+ name: "sellEntireBalance",
1516
+ type: "bool",
1517
+ internalType: "bool",
1518
+ },
1519
+ {
1520
+ name: "offsets",
1521
+ type: "tuple",
1522
+ internalType: "struct Offsets",
1523
+ components: [
1524
+ {
1525
+ name: "exactAmount",
1526
+ type: "uint256",
1527
+ internalType: "uint256",
1528
+ },
1529
+ {
1530
+ name: "limitAmount",
1531
+ type: "uint256",
1532
+ internalType: "uint256",
1533
+ },
1534
+ {
1535
+ name: "quotedAmount",
1536
+ type: "uint256",
1537
+ internalType: "uint256",
1538
+ },
1539
+ ],
1540
+ },
1541
+ {
1542
+ name: "receiver",
1543
+ type: "address",
1544
+ internalType: "address",
1545
+ },
1546
+ ],
1547
+ outputs: [],
1548
+ stateMutability: "nonpayable",
1549
+ },
1550
+ {
1551
+ type: "error",
1552
+ name: "BuyAmountTooLow",
1553
+ inputs: [],
1554
+ },
1555
+ {
1556
+ type: "error",
1557
+ name: "InvalidAugustus",
1558
+ inputs: [],
1559
+ },
1560
+ {
1561
+ type: "error",
1562
+ name: "InvalidOffset",
1563
+ inputs: [],
1564
+ },
1565
+ {
1566
+ type: "error",
1567
+ name: "SellAmountTooHigh",
1568
+ inputs: [],
1569
+ },
1570
+ ];
1571
+ export const erc20WrapperAdapterAbi = [
1572
+ ...coreAdapterAbi,
1573
+ {
1574
+ type: "constructor",
1575
+ inputs: [
1576
+ {
1577
+ name: "bundler3",
1578
+ type: "address",
1579
+ internalType: "address",
1580
+ },
1581
+ ],
1582
+ stateMutability: "nonpayable",
1583
+ },
1584
+ {
1585
+ type: "function",
1586
+ name: "erc20WrapperDepositFor",
1587
+ inputs: [
1588
+ {
1589
+ name: "wrapper",
1590
+ type: "address",
1591
+ internalType: "address",
1592
+ },
1593
+ {
1594
+ name: "amount",
1595
+ type: "uint256",
1596
+ internalType: "uint256",
1597
+ },
1598
+ ],
1599
+ outputs: [],
1600
+ stateMutability: "nonpayable",
1601
+ },
1602
+ {
1603
+ type: "function",
1604
+ name: "erc20WrapperWithdrawTo",
1605
+ inputs: [
1606
+ {
1607
+ name: "wrapper",
1608
+ type: "address",
1609
+ internalType: "address",
1610
+ },
1611
+ {
1612
+ name: "receiver",
1613
+ type: "address",
1614
+ internalType: "address",
1615
+ },
1616
+ {
1617
+ name: "amount",
1618
+ type: "uint256",
1619
+ internalType: "uint256",
1620
+ },
1621
+ ],
1622
+ outputs: [],
1623
+ stateMutability: "nonpayable",
1624
+ },
1625
+ {
1626
+ type: "error",
1627
+ name: "DepositFailed",
1628
+ inputs: [],
1629
+ },
1630
+ {
1631
+ type: "error",
1632
+ name: "WithdrawFailed",
1633
+ inputs: [],
1634
+ },
1635
+ ];
1636
+ export const aaveV2MigrationAdapterAbi = [
1637
+ ...coreAdapterAbi,
1638
+ {
1639
+ type: "constructor",
1640
+ inputs: [
1641
+ {
1642
+ name: "bundler3",
1643
+ type: "address",
1644
+ internalType: "address",
1645
+ },
1646
+ {
1647
+ name: "aaveV2Pool",
1648
+ type: "address",
1649
+ internalType: "address",
1650
+ },
1651
+ ],
1652
+ stateMutability: "nonpayable",
1653
+ },
1654
+ {
1655
+ type: "function",
1656
+ name: "aaveV2Repay",
1657
+ inputs: [
1658
+ {
1659
+ name: "token",
1660
+ type: "address",
1661
+ internalType: "address",
1662
+ },
1663
+ {
1664
+ name: "amount",
1665
+ type: "uint256",
1666
+ internalType: "uint256",
1667
+ },
1668
+ {
1669
+ name: "interestRateMode",
1670
+ type: "uint256",
1671
+ internalType: "uint256",
1672
+ },
1673
+ {
1674
+ name: "onBehalf",
1675
+ type: "address",
1676
+ internalType: "address",
1677
+ },
1678
+ ],
1679
+ outputs: [],
1680
+ stateMutability: "nonpayable",
1681
+ },
1682
+ {
1683
+ type: "function",
1684
+ name: "aaveV2Withdraw",
1685
+ inputs: [
1686
+ {
1687
+ name: "token",
1688
+ type: "address",
1689
+ internalType: "address",
1690
+ },
1691
+ {
1692
+ name: "amount",
1693
+ type: "uint256",
1694
+ internalType: "uint256",
1695
+ },
1696
+ {
1697
+ name: "receiver",
1698
+ type: "address",
1699
+ internalType: "address",
1700
+ },
1701
+ ],
1702
+ outputs: [],
1703
+ stateMutability: "nonpayable",
1704
+ },
1705
+ ];
1706
+ export const aaveV3MigrationAdapterAbi = [
1707
+ ...coreAdapterAbi,
1708
+ {
1709
+ type: "constructor",
1710
+ inputs: [
1711
+ {
1712
+ name: "bundler3",
1713
+ type: "address",
1714
+ internalType: "address",
1715
+ },
1716
+ {
1717
+ name: "aaveV3Pool",
1718
+ type: "address",
1719
+ internalType: "address",
1720
+ },
1721
+ ],
1722
+ stateMutability: "nonpayable",
1723
+ },
1724
+ {
1725
+ type: "function",
1726
+ name: "aaveV3Repay",
1727
+ inputs: [
1728
+ {
1729
+ name: "token",
1730
+ type: "address",
1731
+ internalType: "address",
1732
+ },
1733
+ {
1734
+ name: "amount",
1735
+ type: "uint256",
1736
+ internalType: "uint256",
1737
+ },
1738
+ {
1739
+ name: "interestRateMode",
1740
+ type: "uint256",
1741
+ internalType: "uint256",
1742
+ },
1743
+ {
1744
+ name: "onBehalf",
1745
+ type: "address",
1746
+ internalType: "address",
1747
+ },
1748
+ ],
1749
+ outputs: [],
1750
+ stateMutability: "nonpayable",
1751
+ },
1752
+ {
1753
+ type: "function",
1754
+ name: "aaveV3Withdraw",
1755
+ inputs: [
1756
+ {
1757
+ name: "token",
1758
+ type: "address",
1759
+ internalType: "address",
1760
+ },
1761
+ {
1762
+ name: "amount",
1763
+ type: "uint256",
1764
+ internalType: "uint256",
1765
+ },
1766
+ {
1767
+ name: "receiver",
1768
+ type: "address",
1769
+ internalType: "address",
1770
+ },
1771
+ ],
1772
+ outputs: [],
1773
+ stateMutability: "nonpayable",
1774
+ },
1775
+ ];
1776
+ export const aaveV3OptimizerMigrationAdapterAbi = [
1777
+ ...coreAdapterAbi,
1778
+ {
1779
+ type: "constructor",
1780
+ inputs: [
1781
+ {
1782
+ name: "bundler3",
1783
+ type: "address",
1784
+ internalType: "address",
1785
+ },
1786
+ {
1787
+ name: "aaveV3Optimizer",
1788
+ type: "address",
1789
+ internalType: "address",
1790
+ },
1791
+ ],
1792
+ stateMutability: "nonpayable",
1793
+ },
1794
+ {
1795
+ type: "function",
1796
+ name: "aaveV3OptimizerRepay",
1797
+ inputs: [
1798
+ {
1799
+ name: "underlying",
1800
+ type: "address",
1801
+ internalType: "address",
1802
+ },
1803
+ {
1804
+ name: "amount",
1805
+ type: "uint256",
1806
+ internalType: "uint256",
1807
+ },
1808
+ {
1809
+ name: "onBehalf",
1810
+ type: "address",
1811
+ internalType: "address",
1812
+ },
1813
+ ],
1814
+ outputs: [],
1815
+ stateMutability: "nonpayable",
1816
+ },
1817
+ {
1818
+ type: "function",
1819
+ name: "aaveV3OptimizerWithdraw",
1820
+ inputs: [
1821
+ {
1822
+ name: "underlying",
1823
+ type: "address",
1824
+ internalType: "address",
1825
+ },
1826
+ {
1827
+ name: "amount",
1828
+ type: "uint256",
1829
+ internalType: "uint256",
1830
+ },
1831
+ {
1832
+ name: "maxIterations",
1833
+ type: "uint256",
1834
+ internalType: "uint256",
1835
+ },
1836
+ {
1837
+ name: "receiver",
1838
+ type: "address",
1839
+ internalType: "address",
1840
+ },
1841
+ ],
1842
+ outputs: [],
1843
+ stateMutability: "nonpayable",
1844
+ },
1845
+ {
1846
+ type: "function",
1847
+ name: "aaveV3OptimizerWithdrawCollateral",
1848
+ inputs: [
1849
+ {
1850
+ name: "underlying",
1851
+ type: "address",
1852
+ internalType: "address",
1853
+ },
1854
+ {
1855
+ name: "amount",
1856
+ type: "uint256",
1857
+ internalType: "uint256",
1858
+ },
1859
+ {
1860
+ name: "receiver",
1861
+ type: "address",
1862
+ internalType: "address",
1863
+ },
1864
+ ],
1865
+ outputs: [],
1866
+ stateMutability: "nonpayable",
1867
+ },
1868
+ ];
1869
+ export const compoundV2MigrationAdapterAbi = [
1870
+ ...coreAdapterAbi,
1871
+ {
1872
+ type: "constructor",
1873
+ inputs: [
1874
+ {
1875
+ name: "bundler3",
1876
+ type: "address",
1877
+ internalType: "address",
1878
+ },
1879
+ {
1880
+ name: "cEth",
1881
+ type: "address",
1882
+ internalType: "address",
1883
+ },
1884
+ ],
1885
+ stateMutability: "nonpayable",
1886
+ },
1887
+ {
1888
+ type: "function",
1889
+ name: "C_ETH",
1890
+ inputs: [],
1891
+ outputs: [
1892
+ {
1893
+ name: "",
1894
+ type: "address",
1895
+ internalType: "address",
1896
+ },
1897
+ ],
1898
+ stateMutability: "view",
1899
+ },
1900
+ {
1901
+ type: "function",
1902
+ name: "compoundV2RedeemErc20",
1903
+ inputs: [
1904
+ {
1905
+ name: "cToken",
1906
+ type: "address",
1907
+ internalType: "address",
1908
+ },
1909
+ {
1910
+ name: "amount",
1911
+ type: "uint256",
1912
+ internalType: "uint256",
1913
+ },
1914
+ {
1915
+ name: "receiver",
1916
+ type: "address",
1917
+ internalType: "address",
1918
+ },
1919
+ ],
1920
+ outputs: [],
1921
+ stateMutability: "nonpayable",
1922
+ },
1923
+ {
1924
+ type: "function",
1925
+ name: "compoundV2RedeemEth",
1926
+ inputs: [
1927
+ {
1928
+ name: "amount",
1929
+ type: "uint256",
1930
+ internalType: "uint256",
1931
+ },
1932
+ {
1933
+ name: "receiver",
1934
+ type: "address",
1935
+ internalType: "address",
1936
+ },
1937
+ ],
1938
+ outputs: [],
1939
+ stateMutability: "nonpayable",
1940
+ },
1941
+ {
1942
+ type: "function",
1943
+ name: "compoundV2RepayErc20",
1944
+ inputs: [
1945
+ {
1946
+ name: "cToken",
1947
+ type: "address",
1948
+ internalType: "address",
1949
+ },
1950
+ {
1951
+ name: "amount",
1952
+ type: "uint256",
1953
+ internalType: "uint256",
1954
+ },
1955
+ {
1956
+ name: "onBehalf",
1957
+ type: "address",
1958
+ internalType: "address",
1959
+ },
1960
+ ],
1961
+ outputs: [],
1962
+ stateMutability: "nonpayable",
1963
+ },
1964
+ {
1965
+ type: "function",
1966
+ name: "compoundV2RepayEth",
1967
+ inputs: [
1968
+ {
1969
+ name: "amount",
1970
+ type: "uint256",
1971
+ internalType: "uint256",
1972
+ },
1973
+ {
1974
+ name: "onBehalf",
1975
+ type: "address",
1976
+ internalType: "address",
1977
+ },
1978
+ ],
1979
+ outputs: [],
1980
+ stateMutability: "nonpayable",
1981
+ },
1982
+ ];
1983
+ export const compoundV3MigrationAdapterAbi = [
1984
+ ...coreAdapterAbi,
1985
+ {
1986
+ type: "constructor",
1987
+ inputs: [
1988
+ {
1989
+ name: "bundler3",
1990
+ type: "address",
1991
+ internalType: "address",
1992
+ },
1993
+ ],
1994
+ stateMutability: "nonpayable",
1995
+ },
1996
+ {
1997
+ type: "function",
1998
+ name: "compoundV3Repay",
1999
+ inputs: [
2000
+ {
2001
+ name: "instance",
2002
+ type: "address",
2003
+ internalType: "address",
2004
+ },
2005
+ {
2006
+ name: "amount",
2007
+ type: "uint256",
2008
+ internalType: "uint256",
2009
+ },
2010
+ {
2011
+ name: "onBehalf",
2012
+ type: "address",
2013
+ internalType: "address",
2014
+ },
2015
+ ],
2016
+ outputs: [],
2017
+ stateMutability: "nonpayable",
2018
+ },
2019
+ {
2020
+ type: "function",
2021
+ name: "compoundV3WithdrawFrom",
2022
+ inputs: [
2023
+ {
2024
+ name: "instance",
2025
+ type: "address",
2026
+ internalType: "address",
2027
+ },
2028
+ {
2029
+ name: "asset",
2030
+ type: "address",
2031
+ internalType: "address",
2032
+ },
2033
+ {
2034
+ name: "amount",
2035
+ type: "uint256",
2036
+ internalType: "uint256",
2037
+ },
2038
+ {
2039
+ name: "receiver",
2040
+ type: "address",
2041
+ internalType: "address",
2042
+ },
2043
+ ],
2044
+ outputs: [],
2045
+ stateMutability: "nonpayable",
2046
+ },
2047
+ ];