@morpho-org/bundler-sdk-viem 3.4.0-next.1 → 4.1.0-next.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 (3) hide show
  1. package/lib/abis.d.ts +0 -6167
  2. package/lib/abis.js +1 -889
  3. package/package.json +10 -10
package/lib/abis.js CHANGED
@@ -1,894 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.compoundV3MigrationAdapterAbi = exports.compoundV2MigrationAdapterAbi = exports.aaveV3OptimizerMigrationAdapterAbi = exports.aaveV3MigrationAdapterAbi = exports.aaveV2MigrationAdapterAbi = exports.erc20WrapperAdapterAbi = exports.paraswapAdapterAbi = exports.ethereumGeneralAdapter1Abi = exports.generalAdapter1Abi = exports.coreAdapterAbi = exports.bundler3Abi = exports.universalRewardsDistributorAbi = exports.compoundV3MigrationBundlerAbi = exports.compoundV2MigrationBundlerAbi = exports.aaveV3OptimizerMigrationBundlerAbi = exports.aaveV3MigrationBundlerAbi = exports.aaveV2MigrationBundlerAbi = exports.stEthBundlerAbi = exports.wNativeBundlerAbi = exports.urdBundlerAbi = exports.morphoBundlerAbi = exports.erc4626BundlerAbi = exports.erc20WrapperBundlerAbi = exports.permit2BundlerAbi = exports.ethereumPermitBundlerAbi = exports.permitBundlerAbi = exports.transferBundlerAbi = exports.baseBundlerAbi = void 0;
4
- /**
5
- * @deprecated All bundles should be encoded using Bundler3 instead.
6
- */
7
- exports.baseBundlerAbi = [
8
- {
9
- type: "function",
10
- name: "initiator",
11
- inputs: [],
12
- outputs: [{ name: "", type: "address", internalType: "address" }],
13
- stateMutability: "view",
14
- },
15
- {
16
- type: "function",
17
- name: "multicall",
18
- inputs: [{ name: "data", type: "bytes[]", internalType: "bytes[]" }],
19
- outputs: [],
20
- stateMutability: "payable",
21
- },
22
- ];
23
- /**
24
- * @deprecated All bundles should be encoded using Bundler3 instead.
25
- */
26
- exports.transferBundlerAbi = [
27
- ...exports.baseBundlerAbi,
28
- {
29
- type: "function",
30
- name: "erc20Transfer",
31
- inputs: [
32
- { name: "asset", type: "address", internalType: "address" },
33
- { name: "recipient", type: "address", internalType: "address" },
34
- { name: "amount", type: "uint256", internalType: "uint256" },
35
- ],
36
- outputs: [],
37
- stateMutability: "payable",
38
- },
39
- {
40
- type: "function",
41
- name: "erc20TransferFrom",
42
- inputs: [
43
- { name: "asset", type: "address", internalType: "address" },
44
- { name: "amount", type: "uint256", internalType: "uint256" },
45
- ],
46
- outputs: [],
47
- stateMutability: "payable",
48
- },
49
- {
50
- type: "function",
51
- name: "nativeTransfer",
52
- inputs: [
53
- { name: "recipient", type: "address", internalType: "address" },
54
- { name: "amount", type: "uint256", internalType: "uint256" },
55
- ],
56
- outputs: [],
57
- stateMutability: "payable",
58
- },
59
- ];
60
- /**
61
- * @deprecated All bundles should be encoded using Bundler3 instead.
62
- */
63
- exports.permitBundlerAbi = [
64
- ...exports.baseBundlerAbi,
65
- {
66
- type: "function",
67
- name: "permit",
68
- inputs: [
69
- { name: "asset", type: "address", internalType: "address" },
70
- { name: "amount", type: "uint256", internalType: "uint256" },
71
- { name: "deadline", type: "uint256", internalType: "uint256" },
72
- { name: "v", type: "uint8", internalType: "uint8" },
73
- { name: "r", type: "bytes32", internalType: "bytes32" },
74
- { name: "s", type: "bytes32", internalType: "bytes32" },
75
- { name: "skipRevert", type: "bool", internalType: "bool" },
76
- ],
77
- outputs: [],
78
- stateMutability: "payable",
79
- },
80
- ];
81
- /**
82
- * @deprecated All bundles should be encoded using Bundler3 instead.
83
- */
84
- exports.ethereumPermitBundlerAbi = [
85
- ...exports.permitBundlerAbi,
86
- {
87
- type: "function",
88
- name: "permitDai",
89
- inputs: [
90
- { name: "nonce", type: "uint256", internalType: "uint256" },
91
- { name: "expiry", type: "uint256", internalType: "uint256" },
92
- { name: "allowed", type: "bool", internalType: "bool" },
93
- { name: "v", type: "uint8", internalType: "uint8" },
94
- { name: "r", type: "bytes32", internalType: "bytes32" },
95
- { name: "s", type: "bytes32", internalType: "bytes32" },
96
- { name: "skipRevert", type: "bool", internalType: "bool" },
97
- ],
98
- outputs: [],
99
- stateMutability: "payable",
100
- },
101
- ];
102
- /**
103
- * @deprecated All bundles should be encoded using Bundler3 instead.
104
- */
105
- exports.permit2BundlerAbi = [
106
- ...exports.baseBundlerAbi,
107
- {
108
- type: "function",
109
- name: "approve2",
110
- inputs: [
111
- {
112
- name: "permitSingle",
113
- type: "tuple",
114
- internalType: "struct IAllowanceTransfer.PermitSingle",
115
- components: [
116
- {
117
- name: "details",
118
- type: "tuple",
119
- internalType: "struct IAllowanceTransfer.PermitDetails",
120
- components: [
121
- { name: "token", type: "address", internalType: "address" },
122
- { name: "amount", type: "uint160", internalType: "uint160" },
123
- { name: "expiration", type: "uint48", internalType: "uint48" },
124
- { name: "nonce", type: "uint48", internalType: "uint48" },
125
- ],
126
- },
127
- { name: "spender", type: "address", internalType: "address" },
128
- { name: "sigDeadline", type: "uint256", internalType: "uint256" },
129
- ],
130
- },
131
- { name: "signature", type: "bytes", internalType: "bytes" },
132
- { name: "skipRevert", type: "bool", internalType: "bool" },
133
- ],
134
- outputs: [],
135
- stateMutability: "payable",
136
- },
137
- {
138
- type: "function",
139
- name: "transferFrom2",
140
- inputs: [
141
- { name: "asset", type: "address", internalType: "address" },
142
- { name: "amount", type: "uint256", internalType: "uint256" },
143
- ],
144
- outputs: [],
145
- stateMutability: "payable",
146
- },
147
- { type: "error", name: "UnsafeCast", inputs: [] },
148
- ];
149
- /**
150
- * @deprecated All bundles should be encoded using Bundler3 instead.
151
- */
152
- exports.erc20WrapperBundlerAbi = [
153
- ...exports.baseBundlerAbi,
154
- {
155
- type: "function",
156
- name: "erc20WrapperDepositFor",
157
- inputs: [
158
- { name: "wrapper", type: "address", internalType: "address" },
159
- { name: "amount", type: "uint256", internalType: "uint256" },
160
- ],
161
- outputs: [],
162
- stateMutability: "payable",
163
- },
164
- {
165
- type: "function",
166
- name: "erc20WrapperWithdrawTo",
167
- inputs: [
168
- { name: "wrapper", type: "address", internalType: "address" },
169
- { name: "account", type: "address", internalType: "address" },
170
- { name: "amount", type: "uint256", internalType: "uint256" },
171
- ],
172
- outputs: [],
173
- stateMutability: "payable",
174
- },
175
- ];
176
- /**
177
- * @deprecated All bundles should be encoded using Bundler3 instead.
178
- */
179
- exports.erc4626BundlerAbi = [
180
- ...exports.baseBundlerAbi,
181
- {
182
- type: "function",
183
- name: "erc4626Deposit",
184
- inputs: [
185
- { name: "vault", type: "address", internalType: "address" },
186
- { name: "assets", type: "uint256", internalType: "uint256" },
187
- { name: "minShares", type: "uint256", internalType: "uint256" },
188
- { name: "receiver", type: "address", internalType: "address" },
189
- ],
190
- outputs: [],
191
- stateMutability: "payable",
192
- },
193
- {
194
- type: "function",
195
- name: "erc4626Mint",
196
- inputs: [
197
- { name: "vault", type: "address", internalType: "address" },
198
- { name: "shares", type: "uint256", internalType: "uint256" },
199
- { name: "maxAssets", type: "uint256", internalType: "uint256" },
200
- { name: "receiver", type: "address", internalType: "address" },
201
- ],
202
- outputs: [],
203
- stateMutability: "payable",
204
- },
205
- {
206
- type: "function",
207
- name: "erc4626Redeem",
208
- inputs: [
209
- { name: "vault", type: "address", internalType: "address" },
210
- { name: "shares", type: "uint256", internalType: "uint256" },
211
- { name: "minAssets", type: "uint256", internalType: "uint256" },
212
- { name: "receiver", type: "address", internalType: "address" },
213
- { name: "owner", type: "address", internalType: "address" },
214
- ],
215
- outputs: [],
216
- stateMutability: "payable",
217
- },
218
- {
219
- type: "function",
220
- name: "erc4626Withdraw",
221
- inputs: [
222
- { name: "vault", type: "address", internalType: "address" },
223
- { name: "assets", type: "uint256", internalType: "uint256" },
224
- { name: "maxShares", type: "uint256", internalType: "uint256" },
225
- { name: "receiver", type: "address", internalType: "address" },
226
- { name: "owner", type: "address", internalType: "address" },
227
- ],
228
- outputs: [],
229
- stateMutability: "payable",
230
- },
231
- ];
232
- /**
233
- * @deprecated All bundles should be encoded using Bundler3 instead.
234
- */
235
- exports.morphoBundlerAbi = [
236
- ...exports.baseBundlerAbi,
237
- {
238
- type: "function",
239
- name: "MORPHO",
240
- inputs: [],
241
- outputs: [{ name: "", type: "address", internalType: "contract IMorpho" }],
242
- stateMutability: "view",
243
- },
244
- {
245
- type: "function",
246
- name: "morphoBorrow",
247
- inputs: [
248
- {
249
- name: "marketParams",
250
- type: "tuple",
251
- internalType: "struct MarketParams",
252
- components: [
253
- { name: "loanToken", type: "address", internalType: "address" },
254
- { name: "collateralToken", type: "address", internalType: "address" },
255
- { name: "oracle", type: "address", internalType: "address" },
256
- { name: "irm", type: "address", internalType: "address" },
257
- { name: "lltv", type: "uint256", internalType: "uint256" },
258
- ],
259
- },
260
- { name: "assets", type: "uint256", internalType: "uint256" },
261
- { name: "shares", type: "uint256", internalType: "uint256" },
262
- { name: "slippageAmount", type: "uint256", internalType: "uint256" },
263
- { name: "receiver", type: "address", internalType: "address" },
264
- ],
265
- outputs: [],
266
- stateMutability: "payable",
267
- },
268
- {
269
- type: "function",
270
- name: "morphoFlashLoan",
271
- inputs: [
272
- { name: "token", type: "address", internalType: "address" },
273
- { name: "assets", type: "uint256", internalType: "uint256" },
274
- { name: "data", type: "bytes", internalType: "bytes" },
275
- ],
276
- outputs: [],
277
- stateMutability: "payable",
278
- },
279
- {
280
- type: "function",
281
- name: "morphoRepay",
282
- inputs: [
283
- {
284
- name: "marketParams",
285
- type: "tuple",
286
- internalType: "struct MarketParams",
287
- components: [
288
- { name: "loanToken", type: "address", internalType: "address" },
289
- { name: "collateralToken", type: "address", internalType: "address" },
290
- { name: "oracle", type: "address", internalType: "address" },
291
- { name: "irm", type: "address", internalType: "address" },
292
- { name: "lltv", type: "uint256", internalType: "uint256" },
293
- ],
294
- },
295
- { name: "assets", type: "uint256", internalType: "uint256" },
296
- { name: "shares", type: "uint256", internalType: "uint256" },
297
- { name: "slippageAmount", type: "uint256", internalType: "uint256" },
298
- { name: "onBehalf", type: "address", internalType: "address" },
299
- { name: "data", type: "bytes", internalType: "bytes" },
300
- ],
301
- outputs: [],
302
- stateMutability: "payable",
303
- },
304
- {
305
- type: "function",
306
- name: "morphoSetAuthorizationWithSig",
307
- inputs: [
308
- {
309
- name: "authorization",
310
- type: "tuple",
311
- internalType: "struct Authorization",
312
- components: [
313
- { name: "authorizer", type: "address", internalType: "address" },
314
- { name: "authorized", type: "address", internalType: "address" },
315
- { name: "isAuthorized", type: "bool", internalType: "bool" },
316
- { name: "nonce", type: "uint256", internalType: "uint256" },
317
- { name: "deadline", type: "uint256", internalType: "uint256" },
318
- ],
319
- },
320
- {
321
- name: "signature",
322
- type: "tuple",
323
- internalType: "struct Signature",
324
- components: [
325
- { name: "v", type: "uint8", internalType: "uint8" },
326
- { name: "r", type: "bytes32", internalType: "bytes32" },
327
- { name: "s", type: "bytes32", internalType: "bytes32" },
328
- ],
329
- },
330
- { name: "skipRevert", type: "bool", internalType: "bool" },
331
- ],
332
- outputs: [],
333
- stateMutability: "payable",
334
- },
335
- {
336
- type: "function",
337
- name: "morphoSupply",
338
- inputs: [
339
- {
340
- name: "marketParams",
341
- type: "tuple",
342
- internalType: "struct MarketParams",
343
- components: [
344
- { name: "loanToken", type: "address", internalType: "address" },
345
- { name: "collateralToken", type: "address", internalType: "address" },
346
- { name: "oracle", type: "address", internalType: "address" },
347
- { name: "irm", type: "address", internalType: "address" },
348
- { name: "lltv", type: "uint256", internalType: "uint256" },
349
- ],
350
- },
351
- { name: "assets", type: "uint256", internalType: "uint256" },
352
- { name: "shares", type: "uint256", internalType: "uint256" },
353
- { name: "slippageAmount", type: "uint256", internalType: "uint256" },
354
- { name: "onBehalf", type: "address", internalType: "address" },
355
- { name: "data", type: "bytes", internalType: "bytes" },
356
- ],
357
- outputs: [],
358
- stateMutability: "payable",
359
- },
360
- {
361
- type: "function",
362
- name: "morphoSupplyCollateral",
363
- inputs: [
364
- {
365
- name: "marketParams",
366
- type: "tuple",
367
- internalType: "struct MarketParams",
368
- components: [
369
- { name: "loanToken", type: "address", internalType: "address" },
370
- { name: "collateralToken", type: "address", internalType: "address" },
371
- { name: "oracle", type: "address", internalType: "address" },
372
- { name: "irm", type: "address", internalType: "address" },
373
- { name: "lltv", type: "uint256", internalType: "uint256" },
374
- ],
375
- },
376
- { name: "assets", type: "uint256", internalType: "uint256" },
377
- { name: "onBehalf", type: "address", internalType: "address" },
378
- { name: "data", type: "bytes", internalType: "bytes" },
379
- ],
380
- outputs: [],
381
- stateMutability: "payable",
382
- },
383
- {
384
- type: "function",
385
- name: "morphoWithdraw",
386
- inputs: [
387
- {
388
- name: "marketParams",
389
- type: "tuple",
390
- internalType: "struct MarketParams",
391
- components: [
392
- { name: "loanToken", type: "address", internalType: "address" },
393
- { name: "collateralToken", type: "address", internalType: "address" },
394
- { name: "oracle", type: "address", internalType: "address" },
395
- { name: "irm", type: "address", internalType: "address" },
396
- { name: "lltv", type: "uint256", internalType: "uint256" },
397
- ],
398
- },
399
- { name: "assets", type: "uint256", internalType: "uint256" },
400
- { name: "shares", type: "uint256", internalType: "uint256" },
401
- { name: "slippageAmount", type: "uint256", internalType: "uint256" },
402
- { name: "receiver", type: "address", internalType: "address" },
403
- ],
404
- outputs: [],
405
- stateMutability: "payable",
406
- },
407
- {
408
- type: "function",
409
- name: "morphoWithdrawCollateral",
410
- inputs: [
411
- {
412
- name: "marketParams",
413
- type: "tuple",
414
- internalType: "struct MarketParams",
415
- components: [
416
- { name: "loanToken", type: "address", internalType: "address" },
417
- { name: "collateralToken", type: "address", internalType: "address" },
418
- { name: "oracle", type: "address", internalType: "address" },
419
- { name: "irm", type: "address", internalType: "address" },
420
- { name: "lltv", type: "uint256", internalType: "uint256" },
421
- ],
422
- },
423
- { name: "assets", type: "uint256", internalType: "uint256" },
424
- { name: "receiver", type: "address", internalType: "address" },
425
- ],
426
- outputs: [],
427
- stateMutability: "payable",
428
- },
429
- {
430
- type: "function",
431
- name: "onMorphoFlashLoan",
432
- inputs: [
433
- { name: "", type: "uint256", internalType: "uint256" },
434
- { name: "data", type: "bytes", internalType: "bytes" },
435
- ],
436
- outputs: [],
437
- stateMutability: "nonpayable",
438
- },
439
- {
440
- type: "function",
441
- name: "onMorphoRepay",
442
- inputs: [
443
- { name: "", type: "uint256", internalType: "uint256" },
444
- { name: "data", type: "bytes", internalType: "bytes" },
445
- ],
446
- outputs: [],
447
- stateMutability: "nonpayable",
448
- },
449
- {
450
- type: "function",
451
- name: "onMorphoSupply",
452
- inputs: [
453
- { name: "", type: "uint256", internalType: "uint256" },
454
- { name: "data", type: "bytes", internalType: "bytes" },
455
- ],
456
- outputs: [],
457
- stateMutability: "nonpayable",
458
- },
459
- {
460
- type: "function",
461
- name: "onMorphoSupplyCollateral",
462
- inputs: [
463
- { name: "", type: "uint256", internalType: "uint256" },
464
- { name: "data", type: "bytes", internalType: "bytes" },
465
- ],
466
- outputs: [],
467
- stateMutability: "nonpayable",
468
- },
469
- {
470
- type: "function",
471
- name: "reallocateTo",
472
- inputs: [
473
- { name: "publicAllocator", type: "address", internalType: "address" },
474
- { name: "vault", type: "address", internalType: "address" },
475
- { name: "value", type: "uint256", internalType: "uint256" },
476
- {
477
- name: "withdrawals",
478
- type: "tuple[]",
479
- internalType: "struct Withdrawal[]",
480
- components: [
481
- {
482
- name: "marketParams",
483
- type: "tuple",
484
- internalType: "struct MarketParams",
485
- components: [
486
- { name: "loanToken", type: "address", internalType: "address" },
487
- {
488
- name: "collateralToken",
489
- type: "address",
490
- internalType: "address",
491
- },
492
- { name: "oracle", type: "address", internalType: "address" },
493
- { name: "irm", type: "address", internalType: "address" },
494
- { name: "lltv", type: "uint256", internalType: "uint256" },
495
- ],
496
- },
497
- { name: "amount", type: "uint128", internalType: "uint128" },
498
- ],
499
- },
500
- {
501
- name: "supplyMarketParams",
502
- type: "tuple",
503
- internalType: "struct MarketParams",
504
- components: [
505
- { name: "loanToken", type: "address", internalType: "address" },
506
- { name: "collateralToken", type: "address", internalType: "address" },
507
- { name: "oracle", type: "address", internalType: "address" },
508
- { name: "irm", type: "address", internalType: "address" },
509
- { name: "lltv", type: "uint256", internalType: "uint256" },
510
- ],
511
- },
512
- ],
513
- outputs: [],
514
- stateMutability: "payable",
515
- },
516
- ];
517
- /**
518
- * @deprecated All bundles should be encoded using Bundler3 instead.
519
- */
520
- exports.urdBundlerAbi = [
521
- ...exports.baseBundlerAbi,
522
- {
523
- type: "function",
524
- name: "urdClaim",
525
- inputs: [
526
- { name: "distributor", type: "address", internalType: "address" },
527
- { name: "account", type: "address", internalType: "address" },
528
- { name: "reward", type: "address", internalType: "address" },
529
- { name: "amount", type: "uint256", internalType: "uint256" },
530
- { name: "proof", type: "bytes32[]", internalType: "bytes32[]" },
531
- { name: "skipRevert", type: "bool", internalType: "bool" },
532
- ],
533
- outputs: [],
534
- stateMutability: "payable",
535
- },
536
- ];
537
- /**
538
- * @deprecated All bundles should be encoded using Bundler3 instead.
539
- */
540
- exports.wNativeBundlerAbi = [
541
- ...exports.baseBundlerAbi,
542
- { type: "receive", stateMutability: "payable" },
543
- {
544
- type: "function",
545
- name: "WRAPPED_NATIVE",
546
- inputs: [],
547
- outputs: [{ name: "", type: "address", internalType: "address" }],
548
- stateMutability: "view",
549
- },
550
- {
551
- type: "function",
552
- name: "unwrapNative",
553
- inputs: [{ name: "amount", type: "uint256", internalType: "uint256" }],
554
- outputs: [],
555
- stateMutability: "payable",
556
- },
557
- {
558
- type: "function",
559
- name: "wrapNative",
560
- inputs: [{ name: "amount", type: "uint256", internalType: "uint256" }],
561
- outputs: [],
562
- stateMutability: "payable",
563
- },
564
- ];
565
- /**
566
- * @deprecated All bundles should be encoded using Bundler3 instead.
567
- */
568
- exports.stEthBundlerAbi = [
569
- ...exports.baseBundlerAbi,
570
- {
571
- type: "function",
572
- name: "ST_ETH",
573
- inputs: [],
574
- outputs: [{ name: "", type: "address", internalType: "address" }],
575
- stateMutability: "view",
576
- },
577
- {
578
- type: "function",
579
- name: "WST_ETH",
580
- inputs: [],
581
- outputs: [{ name: "", type: "address", internalType: "address" }],
582
- stateMutability: "view",
583
- },
584
- {
585
- type: "function",
586
- name: "stakeEth",
587
- inputs: [
588
- { name: "amount", type: "uint256", internalType: "uint256" },
589
- { name: "minShares", type: "uint256", internalType: "uint256" },
590
- { name: "referral", type: "address", internalType: "address" },
591
- ],
592
- outputs: [],
593
- stateMutability: "payable",
594
- },
595
- {
596
- type: "function",
597
- name: "unwrapStEth",
598
- inputs: [{ name: "amount", type: "uint256", internalType: "uint256" }],
599
- outputs: [],
600
- stateMutability: "payable",
601
- },
602
- {
603
- type: "function",
604
- name: "wrapStEth",
605
- inputs: [{ name: "amount", type: "uint256", internalType: "uint256" }],
606
- outputs: [],
607
- stateMutability: "payable",
608
- },
609
- ];
610
- /**
611
- * @deprecated All bundles should be encoded using Bundler3 instead.
612
- */
613
- exports.aaveV2MigrationBundlerAbi = [
614
- ...exports.transferBundlerAbi,
615
- ...exports.permitBundlerAbi,
616
- ...exports.permit2BundlerAbi,
617
- ...exports.stEthBundlerAbi,
618
- ...exports.erc4626BundlerAbi,
619
- ...exports.morphoBundlerAbi,
620
- {
621
- type: "constructor",
622
- inputs: [
623
- { name: "morpho", type: "address", internalType: "address" },
624
- { name: "aaveV2Pool", type: "address", internalType: "address" },
625
- { name: "wstEth", type: "address", internalType: "address" },
626
- ],
627
- stateMutability: "nonpayable",
628
- },
629
- {
630
- type: "function",
631
- name: "AAVE_V2_POOL",
632
- inputs: [],
633
- outputs: [{ name: "", type: "address", internalType: "contract IAaveV2" }],
634
- stateMutability: "view",
635
- },
636
- {
637
- type: "function",
638
- name: "aaveV2Repay",
639
- inputs: [
640
- { name: "asset", type: "address", internalType: "address" },
641
- { name: "amount", type: "uint256", internalType: "uint256" },
642
- { name: "interestRateMode", type: "uint256", internalType: "uint256" },
643
- ],
644
- outputs: [],
645
- stateMutability: "payable",
646
- },
647
- {
648
- type: "function",
649
- name: "aaveV2Withdraw",
650
- inputs: [
651
- { name: "asset", type: "address", internalType: "address" },
652
- { name: "amount", type: "uint256", internalType: "uint256" },
653
- ],
654
- outputs: [],
655
- stateMutability: "payable",
656
- },
657
- { type: "error", name: "UnsafeCast", inputs: [] },
658
- ];
659
- /**
660
- * @deprecated All bundles should be encoded using Bundler3 instead.
661
- */
662
- exports.aaveV3MigrationBundlerAbi = [
663
- ...exports.transferBundlerAbi,
664
- ...exports.permitBundlerAbi,
665
- ...exports.permit2BundlerAbi,
666
- ...exports.stEthBundlerAbi,
667
- ...exports.erc4626BundlerAbi,
668
- ...exports.morphoBundlerAbi,
669
- {
670
- type: "constructor",
671
- inputs: [
672
- { name: "morpho", type: "address", internalType: "address" },
673
- { name: "aaveV3Pool", type: "address", internalType: "address" },
674
- ],
675
- stateMutability: "nonpayable",
676
- },
677
- {
678
- type: "function",
679
- name: "AAVE_V3_POOL",
680
- inputs: [],
681
- outputs: [{ name: "", type: "address", internalType: "contract IAaveV3" }],
682
- stateMutability: "view",
683
- },
684
- {
685
- type: "function",
686
- name: "aaveV3Repay",
687
- inputs: [
688
- { name: "asset", type: "address", internalType: "address" },
689
- { name: "amount", type: "uint256", internalType: "uint256" },
690
- { name: "interestRateMode", type: "uint256", internalType: "uint256" },
691
- ],
692
- outputs: [],
693
- stateMutability: "payable",
694
- },
695
- {
696
- type: "function",
697
- name: "aaveV3Withdraw",
698
- inputs: [
699
- { name: "asset", type: "address", internalType: "address" },
700
- { name: "amount", type: "uint256", internalType: "uint256" },
701
- ],
702
- outputs: [],
703
- stateMutability: "payable",
704
- },
705
- { type: "error", name: "UnsafeCast", inputs: [] },
706
- ];
707
- /**
708
- * @deprecated All bundles should be encoded using Bundler3 instead.
709
- */
710
- exports.aaveV3OptimizerMigrationBundlerAbi = [
711
- ...exports.transferBundlerAbi,
712
- ...exports.permitBundlerAbi,
713
- ...exports.permit2BundlerAbi,
714
- ...exports.stEthBundlerAbi,
715
- ...exports.erc4626BundlerAbi,
716
- ...exports.morphoBundlerAbi,
717
- {
718
- type: "constructor",
719
- inputs: [
720
- { name: "morpho", type: "address", internalType: "address" },
721
- { name: "aaveV3Optimizer", type: "address", internalType: "address" },
722
- ],
723
- stateMutability: "nonpayable",
724
- },
725
- {
726
- type: "function",
727
- name: "AAVE_V3_OPTIMIZER",
728
- inputs: [],
729
- outputs: [
730
- { name: "", type: "address", internalType: "contract IAaveV3Optimizer" },
731
- ],
732
- stateMutability: "view",
733
- },
734
- {
735
- type: "function",
736
- name: "aaveV3OptimizerApproveManagerWithSig",
737
- inputs: [
738
- { name: "isApproved", type: "bool", internalType: "bool" },
739
- { name: "nonce", type: "uint256", internalType: "uint256" },
740
- { name: "deadline", type: "uint256", internalType: "uint256" },
741
- {
742
- name: "signature",
743
- type: "tuple",
744
- internalType: "struct Signature",
745
- components: [
746
- { name: "v", type: "uint8", internalType: "uint8" },
747
- { name: "r", type: "bytes32", internalType: "bytes32" },
748
- { name: "s", type: "bytes32", internalType: "bytes32" },
749
- ],
750
- },
751
- { name: "skipRevert", type: "bool", internalType: "bool" },
752
- ],
753
- outputs: [],
754
- stateMutability: "payable",
755
- },
756
- {
757
- type: "function",
758
- name: "aaveV3OptimizerRepay",
759
- inputs: [
760
- { name: "underlying", type: "address", internalType: "address" },
761
- { name: "amount", type: "uint256", internalType: "uint256" },
762
- ],
763
- outputs: [],
764
- stateMutability: "payable",
765
- },
766
- {
767
- type: "function",
768
- name: "aaveV3OptimizerWithdraw",
769
- inputs: [
770
- { name: "underlying", type: "address", internalType: "address" },
771
- { name: "amount", type: "uint256", internalType: "uint256" },
772
- { name: "maxIterations", type: "uint256", internalType: "uint256" },
773
- ],
774
- outputs: [],
775
- stateMutability: "payable",
776
- },
777
- {
778
- type: "function",
779
- name: "aaveV3OptimizerWithdrawCollateral",
780
- inputs: [
781
- { name: "underlying", type: "address", internalType: "address" },
782
- { name: "amount", type: "uint256", internalType: "uint256" },
783
- ],
784
- outputs: [],
785
- stateMutability: "payable",
786
- },
787
- { type: "error", name: "UnsafeCast", inputs: [] },
788
- ];
789
- /**
790
- * @deprecated All bundles should be encoded using Bundler3 instead.
791
- */
792
- exports.compoundV2MigrationBundlerAbi = [
793
- ...exports.transferBundlerAbi,
794
- ...exports.permitBundlerAbi,
795
- ...exports.permit2BundlerAbi,
796
- ...exports.stEthBundlerAbi,
797
- ...exports.erc4626BundlerAbi,
798
- ...exports.morphoBundlerAbi,
799
- {
800
- type: "constructor",
801
- inputs: [
802
- { name: "morpho", type: "address", internalType: "address" },
803
- { name: "wNative", type: "address", internalType: "address" },
804
- { name: "cEth", type: "address", internalType: "address" },
805
- ],
806
- stateMutability: "nonpayable",
807
- },
808
- { type: "receive", stateMutability: "payable" },
809
- {
810
- type: "function",
811
- name: "C_ETH",
812
- inputs: [],
813
- outputs: [{ name: "", type: "address", internalType: "address" }],
814
- stateMutability: "view",
815
- },
816
- {
817
- type: "function",
818
- name: "compoundV2Redeem",
819
- inputs: [
820
- { name: "cToken", type: "address", internalType: "address" },
821
- { name: "amount", type: "uint256", internalType: "uint256" },
822
- ],
823
- outputs: [],
824
- stateMutability: "payable",
825
- },
826
- {
827
- type: "function",
828
- name: "compoundV2Repay",
829
- inputs: [
830
- { name: "cToken", type: "address", internalType: "address" },
831
- { name: "amount", type: "uint256", internalType: "uint256" },
832
- ],
833
- outputs: [],
834
- stateMutability: "payable",
835
- },
836
- { type: "error", name: "UnsafeCast", inputs: [] },
837
- ];
838
- /**
839
- * @deprecated All bundles should be encoded using Bundler3 instead.
840
- */
841
- exports.compoundV3MigrationBundlerAbi = [
842
- ...exports.transferBundlerAbi,
843
- ...exports.permitBundlerAbi,
844
- ...exports.permit2BundlerAbi,
845
- ...exports.stEthBundlerAbi,
846
- ...exports.erc4626BundlerAbi,
847
- ...exports.morphoBundlerAbi,
848
- {
849
- type: "constructor",
850
- inputs: [{ name: "morpho", type: "address", internalType: "address" }],
851
- stateMutability: "nonpayable",
852
- },
853
- {
854
- type: "function",
855
- name: "compoundV3AllowBySig",
856
- inputs: [
857
- { name: "instance", type: "address", internalType: "address" },
858
- { name: "isAllowed", type: "bool", internalType: "bool" },
859
- { name: "nonce", type: "uint256", internalType: "uint256" },
860
- { name: "expiry", type: "uint256", internalType: "uint256" },
861
- { name: "v", type: "uint8", internalType: "uint8" },
862
- { name: "r", type: "bytes32", internalType: "bytes32" },
863
- { name: "s", type: "bytes32", internalType: "bytes32" },
864
- { name: "skipRevert", type: "bool", internalType: "bool" },
865
- ],
866
- outputs: [],
867
- stateMutability: "payable",
868
- },
869
- {
870
- type: "function",
871
- name: "compoundV3Repay",
872
- inputs: [
873
- { name: "instance", type: "address", internalType: "address" },
874
- { name: "amount", type: "uint256", internalType: "uint256" },
875
- ],
876
- outputs: [],
877
- stateMutability: "payable",
878
- },
879
- {
880
- type: "function",
881
- name: "compoundV3WithdrawFrom",
882
- inputs: [
883
- { name: "instance", type: "address", internalType: "address" },
884
- { name: "asset", type: "address", internalType: "address" },
885
- { name: "amount", type: "uint256", internalType: "uint256" },
886
- ],
887
- outputs: [],
888
- stateMutability: "payable",
889
- },
890
- { type: "error", name: "UnsafeCast", inputs: [] },
891
- ];
3
+ exports.compoundV3MigrationAdapterAbi = exports.compoundV2MigrationAdapterAbi = exports.aaveV3OptimizerMigrationAdapterAbi = exports.aaveV3MigrationAdapterAbi = exports.aaveV2MigrationAdapterAbi = exports.erc20WrapperAdapterAbi = exports.paraswapAdapterAbi = exports.ethereumGeneralAdapter1Abi = exports.generalAdapter1Abi = exports.coreAdapterAbi = exports.bundler3Abi = exports.universalRewardsDistributorAbi = void 0;
892
4
  exports.universalRewardsDistributorAbi = [
893
5
  {
894
6
  inputs: [