@1delta/abis 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.
@@ -0,0 +1 @@
1
+ export { CompoundV3CometAbi } from './comet'
@@ -0,0 +1 @@
1
+ export { Erc20Abi, Eip2612Abi } from '../permissions'
package/src/index.ts ADDED
@@ -0,0 +1,10 @@
1
+ export { AaveV2V3Abi, AaveWethGatewayAbi } from './aave'
2
+ export {
3
+ venusCompoundV2ComptrollerAbi,
4
+ COmpoundV2CEtherAbi,
5
+ } from './compound-v2'
6
+ export { CompoundV3CometAbi } from './compound-v3'
7
+ export { MoprhoBlueAbi, MorphoBlueAbi, MorphoLensAbi } from './morpho'
8
+ export { SiloV2Abi } from './silo-v2'
9
+ export { Erc20Abi, Eip2612Abi } from './erc20'
10
+ export { Permit2Abi, VenusComptrollerAbi, LenderPermitAbi } from './permissions'
@@ -0,0 +1,612 @@
1
+ export const MoprhoBlueAbi = [
2
+ {
3
+ inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
4
+ stateMutability: 'nonpayable',
5
+ type: 'constructor',
6
+ },
7
+ {
8
+ anonymous: false,
9
+ inputs: [
10
+ { indexed: true, internalType: 'Id', name: 'id', type: 'bytes32' },
11
+ { indexed: false, internalType: 'uint256', name: 'prevBorrowRate', type: 'uint256' },
12
+ { indexed: false, internalType: 'uint256', name: 'interest', type: 'uint256' },
13
+ { indexed: false, internalType: 'uint256', name: 'feeShares', type: 'uint256' },
14
+ ],
15
+ name: 'AccrueInterest',
16
+ type: 'event',
17
+ },
18
+ {
19
+ anonymous: false,
20
+ inputs: [
21
+ { indexed: true, internalType: 'Id', name: 'id', type: 'bytes32' },
22
+ { indexed: false, internalType: 'address', name: 'caller', type: 'address' },
23
+ { indexed: true, internalType: 'address', name: 'onBehalf', type: 'address' },
24
+ { indexed: true, internalType: 'address', name: 'receiver', type: 'address' },
25
+ { indexed: false, internalType: 'uint256', name: 'assets', type: 'uint256' },
26
+ { indexed: false, internalType: 'uint256', name: 'shares', type: 'uint256' },
27
+ ],
28
+ name: 'Borrow',
29
+ type: 'event',
30
+ },
31
+ {
32
+ anonymous: false,
33
+ inputs: [
34
+ { indexed: true, internalType: 'Id', name: 'id', type: 'bytes32' },
35
+ {
36
+ components: [
37
+ { internalType: 'address', name: 'loanToken', type: 'address' },
38
+ { internalType: 'address', name: 'collateralToken', type: 'address' },
39
+ { internalType: 'address', name: 'oracle', type: 'address' },
40
+ { internalType: 'address', name: 'irm', type: 'address' },
41
+ { internalType: 'uint256', name: 'lltv', type: 'uint256' },
42
+ ],
43
+ indexed: false,
44
+ internalType: 'struct MarketParams',
45
+ name: 'marketParams',
46
+ type: 'tuple',
47
+ },
48
+ ],
49
+ name: 'CreateMarket',
50
+ type: 'event',
51
+ },
52
+ {
53
+ anonymous: false,
54
+ inputs: [{ indexed: true, internalType: 'address', name: 'irm', type: 'address' }],
55
+ name: 'EnableIrm',
56
+ type: 'event',
57
+ },
58
+ {
59
+ anonymous: false,
60
+ inputs: [{ indexed: false, internalType: 'uint256', name: 'lltv', type: 'uint256' }],
61
+ name: 'EnableLltv',
62
+ type: 'event',
63
+ },
64
+ {
65
+ anonymous: false,
66
+ inputs: [
67
+ { indexed: true, internalType: 'address', name: 'caller', type: 'address' },
68
+ { indexed: true, internalType: 'address', name: 'token', type: 'address' },
69
+ { indexed: false, internalType: 'uint256', name: 'assets', type: 'uint256' },
70
+ ],
71
+ name: 'FlashLoan',
72
+ type: 'event',
73
+ },
74
+ {
75
+ anonymous: false,
76
+ inputs: [
77
+ { indexed: true, internalType: 'address', name: 'caller', type: 'address' },
78
+ { indexed: true, internalType: 'address', name: 'authorizer', type: 'address' },
79
+ { indexed: false, internalType: 'uint256', name: 'usedNonce', type: 'uint256' },
80
+ ],
81
+ name: 'IncrementNonce',
82
+ type: 'event',
83
+ },
84
+ {
85
+ anonymous: false,
86
+ inputs: [
87
+ { indexed: true, internalType: 'Id', name: 'id', type: 'bytes32' },
88
+ { indexed: true, internalType: 'address', name: 'caller', type: 'address' },
89
+ { indexed: true, internalType: 'address', name: 'borrower', type: 'address' },
90
+ { indexed: false, internalType: 'uint256', name: 'repaidAssets', type: 'uint256' },
91
+ { indexed: false, internalType: 'uint256', name: 'repaidShares', type: 'uint256' },
92
+ { indexed: false, internalType: 'uint256', name: 'seizedAssets', type: 'uint256' },
93
+ { indexed: false, internalType: 'uint256', name: 'badDebtAssets', type: 'uint256' },
94
+ { indexed: false, internalType: 'uint256', name: 'badDebtShares', type: 'uint256' },
95
+ ],
96
+ name: 'Liquidate',
97
+ type: 'event',
98
+ },
99
+ {
100
+ anonymous: false,
101
+ inputs: [
102
+ { indexed: true, internalType: 'Id', name: 'id', type: 'bytes32' },
103
+ { indexed: true, internalType: 'address', name: 'caller', type: 'address' },
104
+ { indexed: true, internalType: 'address', name: 'onBehalf', type: 'address' },
105
+ { indexed: false, internalType: 'uint256', name: 'assets', type: 'uint256' },
106
+ { indexed: false, internalType: 'uint256', name: 'shares', type: 'uint256' },
107
+ ],
108
+ name: 'Repay',
109
+ type: 'event',
110
+ },
111
+ {
112
+ anonymous: false,
113
+ inputs: [
114
+ { indexed: true, internalType: 'address', name: 'caller', type: 'address' },
115
+ { indexed: true, internalType: 'address', name: 'authorizer', type: 'address' },
116
+ { indexed: true, internalType: 'address', name: 'authorized', type: 'address' },
117
+ { indexed: false, internalType: 'bool', name: 'newIsAuthorized', type: 'bool' },
118
+ ],
119
+ name: 'SetAuthorization',
120
+ type: 'event',
121
+ },
122
+ {
123
+ anonymous: false,
124
+ inputs: [
125
+ { indexed: true, internalType: 'Id', name: 'id', type: 'bytes32' },
126
+ { indexed: false, internalType: 'uint256', name: 'newFee', type: 'uint256' },
127
+ ],
128
+ name: 'SetFee',
129
+ type: 'event',
130
+ },
131
+ {
132
+ anonymous: false,
133
+ inputs: [{ indexed: true, internalType: 'address', name: 'newFeeRecipient', type: 'address' }],
134
+ name: 'SetFeeRecipient',
135
+ type: 'event',
136
+ },
137
+ {
138
+ anonymous: false,
139
+ inputs: [{ indexed: true, internalType: 'address', name: 'newOwner', type: 'address' }],
140
+ name: 'SetOwner',
141
+ type: 'event',
142
+ },
143
+ {
144
+ anonymous: false,
145
+ inputs: [
146
+ { indexed: true, internalType: 'Id', name: 'id', type: 'bytes32' },
147
+ { indexed: true, internalType: 'address', name: 'caller', type: 'address' },
148
+ { indexed: true, internalType: 'address', name: 'onBehalf', type: 'address' },
149
+ { indexed: false, internalType: 'uint256', name: 'assets', type: 'uint256' },
150
+ { indexed: false, internalType: 'uint256', name: 'shares', type: 'uint256' },
151
+ ],
152
+ name: 'Supply',
153
+ type: 'event',
154
+ },
155
+ {
156
+ anonymous: false,
157
+ inputs: [
158
+ { indexed: true, internalType: 'Id', name: 'id', type: 'bytes32' },
159
+ { indexed: true, internalType: 'address', name: 'caller', type: 'address' },
160
+ { indexed: true, internalType: 'address', name: 'onBehalf', type: 'address' },
161
+ { indexed: false, internalType: 'uint256', name: 'assets', type: 'uint256' },
162
+ ],
163
+ name: 'SupplyCollateral',
164
+ type: 'event',
165
+ },
166
+ {
167
+ anonymous: false,
168
+ inputs: [
169
+ { indexed: true, internalType: 'Id', name: 'id', type: 'bytes32' },
170
+ { indexed: false, internalType: 'address', name: 'caller', type: 'address' },
171
+ { indexed: true, internalType: 'address', name: 'onBehalf', type: 'address' },
172
+ { indexed: true, internalType: 'address', name: 'receiver', type: 'address' },
173
+ { indexed: false, internalType: 'uint256', name: 'assets', type: 'uint256' },
174
+ { indexed: false, internalType: 'uint256', name: 'shares', type: 'uint256' },
175
+ ],
176
+ name: 'Withdraw',
177
+ type: 'event',
178
+ },
179
+ {
180
+ anonymous: false,
181
+ inputs: [
182
+ { indexed: true, internalType: 'Id', name: 'id', type: 'bytes32' },
183
+ { indexed: false, internalType: 'address', name: 'caller', type: 'address' },
184
+ { indexed: true, internalType: 'address', name: 'onBehalf', type: 'address' },
185
+ { indexed: true, internalType: 'address', name: 'receiver', type: 'address' },
186
+ { indexed: false, internalType: 'uint256', name: 'assets', type: 'uint256' },
187
+ ],
188
+ name: 'WithdrawCollateral',
189
+ type: 'event',
190
+ },
191
+ {
192
+ inputs: [],
193
+ name: 'DOMAIN_SEPARATOR',
194
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
195
+ stateMutability: 'view',
196
+ type: 'function',
197
+ },
198
+ {
199
+ inputs: [
200
+ {
201
+ components: [
202
+ { internalType: 'address', name: 'loanToken', type: 'address' },
203
+ { internalType: 'address', name: 'collateralToken', type: 'address' },
204
+ { internalType: 'address', name: 'oracle', type: 'address' },
205
+ { internalType: 'address', name: 'irm', type: 'address' },
206
+ { internalType: 'uint256', name: 'lltv', type: 'uint256' },
207
+ ],
208
+ internalType: 'struct MarketParams',
209
+ name: 'marketParams',
210
+ type: 'tuple',
211
+ },
212
+ ],
213
+ name: 'accrueInterest',
214
+ outputs: [],
215
+ stateMutability: 'nonpayable',
216
+ type: 'function',
217
+ },
218
+ {
219
+ inputs: [
220
+ {
221
+ components: [
222
+ { internalType: 'address', name: 'loanToken', type: 'address' },
223
+ { internalType: 'address', name: 'collateralToken', type: 'address' },
224
+ { internalType: 'address', name: 'oracle', type: 'address' },
225
+ { internalType: 'address', name: 'irm', type: 'address' },
226
+ { internalType: 'uint256', name: 'lltv', type: 'uint256' },
227
+ ],
228
+ internalType: 'struct MarketParams',
229
+ name: 'marketParams',
230
+ type: 'tuple',
231
+ },
232
+ { internalType: 'uint256', name: 'assets', type: 'uint256' },
233
+ { internalType: 'uint256', name: 'shares', type: 'uint256' },
234
+ { internalType: 'address', name: 'onBehalf', type: 'address' },
235
+ { internalType: 'address', name: 'receiver', type: 'address' },
236
+ ],
237
+ name: 'borrow',
238
+ outputs: [
239
+ { internalType: 'uint256', name: '', type: 'uint256' },
240
+ { internalType: 'uint256', name: '', type: 'uint256' },
241
+ ],
242
+ stateMutability: 'nonpayable',
243
+ type: 'function',
244
+ },
245
+ {
246
+ inputs: [
247
+ {
248
+ components: [
249
+ { internalType: 'address', name: 'loanToken', type: 'address' },
250
+ { internalType: 'address', name: 'collateralToken', type: 'address' },
251
+ { internalType: 'address', name: 'oracle', type: 'address' },
252
+ { internalType: 'address', name: 'irm', type: 'address' },
253
+ { internalType: 'uint256', name: 'lltv', type: 'uint256' },
254
+ ],
255
+ internalType: 'struct MarketParams',
256
+ name: 'marketParams',
257
+ type: 'tuple',
258
+ },
259
+ ],
260
+ name: 'createMarket',
261
+ outputs: [],
262
+ stateMutability: 'nonpayable',
263
+ type: 'function',
264
+ },
265
+ {
266
+ inputs: [{ internalType: 'address', name: 'irm', type: 'address' }],
267
+ name: 'enableIrm',
268
+ outputs: [],
269
+ stateMutability: 'nonpayable',
270
+ type: 'function',
271
+ },
272
+ {
273
+ inputs: [{ internalType: 'uint256', name: 'lltv', type: 'uint256' }],
274
+ name: 'enableLltv',
275
+ outputs: [],
276
+ stateMutability: 'nonpayable',
277
+ type: 'function',
278
+ },
279
+ {
280
+ inputs: [{ internalType: 'bytes32[]', name: 'slots', type: 'bytes32[]' }],
281
+ name: 'extSloads',
282
+ outputs: [{ internalType: 'bytes32[]', name: 'res', type: 'bytes32[]' }],
283
+ stateMutability: 'view',
284
+ type: 'function',
285
+ },
286
+ {
287
+ inputs: [],
288
+ name: 'feeRecipient',
289
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
290
+ stateMutability: 'view',
291
+ type: 'function',
292
+ },
293
+ {
294
+ inputs: [
295
+ { internalType: 'address', name: 'token', type: 'address' },
296
+ { internalType: 'uint256', name: 'assets', type: 'uint256' },
297
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
298
+ ],
299
+ name: 'flashLoan',
300
+ outputs: [],
301
+ stateMutability: 'nonpayable',
302
+ type: 'function',
303
+ },
304
+ {
305
+ inputs: [{ internalType: 'Id', name: '', type: 'bytes32' }],
306
+ name: 'idToMarketParams',
307
+ outputs: [
308
+ { internalType: 'address', name: 'loanToken', type: 'address' },
309
+ { internalType: 'address', name: 'collateralToken', type: 'address' },
310
+ { internalType: 'address', name: 'oracle', type: 'address' },
311
+ { internalType: 'address', name: 'irm', type: 'address' },
312
+ { internalType: 'uint256', name: 'lltv', type: 'uint256' },
313
+ ],
314
+ stateMutability: 'view',
315
+ type: 'function',
316
+ },
317
+ {
318
+ inputs: [
319
+ { internalType: 'address', name: '', type: 'address' },
320
+ { internalType: 'address', name: '', type: 'address' },
321
+ ],
322
+ name: 'isAuthorized',
323
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
324
+ stateMutability: 'view',
325
+ type: 'function',
326
+ },
327
+ {
328
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
329
+ name: 'isIrmEnabled',
330
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
331
+ stateMutability: 'view',
332
+ type: 'function',
333
+ },
334
+ {
335
+ inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
336
+ name: 'isLltvEnabled',
337
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
338
+ stateMutability: 'view',
339
+ type: 'function',
340
+ },
341
+ {
342
+ inputs: [
343
+ {
344
+ components: [
345
+ { internalType: 'address', name: 'loanToken', type: 'address' },
346
+ { internalType: 'address', name: 'collateralToken', type: 'address' },
347
+ { internalType: 'address', name: 'oracle', type: 'address' },
348
+ { internalType: 'address', name: 'irm', type: 'address' },
349
+ { internalType: 'uint256', name: 'lltv', type: 'uint256' },
350
+ ],
351
+ internalType: 'struct MarketParams',
352
+ name: 'marketParams',
353
+ type: 'tuple',
354
+ },
355
+ { internalType: 'address', name: 'borrower', type: 'address' },
356
+ { internalType: 'uint256', name: 'seizedAssets', type: 'uint256' },
357
+ { internalType: 'uint256', name: 'repaidShares', type: 'uint256' },
358
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
359
+ ],
360
+ name: 'liquidate',
361
+ outputs: [
362
+ { internalType: 'uint256', name: '', type: 'uint256' },
363
+ { internalType: 'uint256', name: '', type: 'uint256' },
364
+ ],
365
+ stateMutability: 'nonpayable',
366
+ type: 'function',
367
+ },
368
+ {
369
+ inputs: [{ internalType: 'Id', name: '', type: 'bytes32' }],
370
+ name: 'market',
371
+ outputs: [
372
+ { internalType: 'uint128', name: 'totalSupplyAssets', type: 'uint128' },
373
+ { internalType: 'uint128', name: 'totalSupplyShares', type: 'uint128' },
374
+ { internalType: 'uint128', name: 'totalBorrowAssets', type: 'uint128' },
375
+ { internalType: 'uint128', name: 'totalBorrowShares', type: 'uint128' },
376
+ { internalType: 'uint128', name: 'lastUpdate', type: 'uint128' },
377
+ { internalType: 'uint128', name: 'fee', type: 'uint128' },
378
+ ],
379
+ stateMutability: 'view',
380
+ type: 'function',
381
+ },
382
+ {
383
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
384
+ name: 'nonce',
385
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
386
+ stateMutability: 'view',
387
+ type: 'function',
388
+ },
389
+ {
390
+ inputs: [],
391
+ name: 'owner',
392
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
393
+ stateMutability: 'view',
394
+ type: 'function',
395
+ },
396
+ {
397
+ inputs: [
398
+ { internalType: 'Id', name: '', type: 'bytes32' },
399
+ { internalType: 'address', name: '', type: 'address' },
400
+ ],
401
+ name: 'position',
402
+ outputs: [
403
+ { internalType: 'uint256', name: 'supplyShares', type: 'uint256' },
404
+ { internalType: 'uint128', name: 'borrowShares', type: 'uint128' },
405
+ { internalType: 'uint128', name: 'collateral', type: 'uint128' },
406
+ ],
407
+ stateMutability: 'view',
408
+ type: 'function',
409
+ },
410
+ {
411
+ inputs: [
412
+ {
413
+ components: [
414
+ { internalType: 'address', name: 'loanToken', type: 'address' },
415
+ { internalType: 'address', name: 'collateralToken', type: 'address' },
416
+ { internalType: 'address', name: 'oracle', type: 'address' },
417
+ { internalType: 'address', name: 'irm', type: 'address' },
418
+ { internalType: 'uint256', name: 'lltv', type: 'uint256' },
419
+ ],
420
+ internalType: 'struct MarketParams',
421
+ name: 'marketParams',
422
+ type: 'tuple',
423
+ },
424
+ { internalType: 'uint256', name: 'assets', type: 'uint256' },
425
+ { internalType: 'uint256', name: 'shares', type: 'uint256' },
426
+ { internalType: 'address', name: 'onBehalf', type: 'address' },
427
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
428
+ ],
429
+ name: 'repay',
430
+ outputs: [
431
+ { internalType: 'uint256', name: '', type: 'uint256' },
432
+ { internalType: 'uint256', name: '', type: 'uint256' },
433
+ ],
434
+ stateMutability: 'nonpayable',
435
+ type: 'function',
436
+ },
437
+ {
438
+ inputs: [
439
+ { internalType: 'address', name: 'authorized', type: 'address' },
440
+ { internalType: 'bool', name: 'newIsAuthorized', type: 'bool' },
441
+ ],
442
+ name: 'setAuthorization',
443
+ outputs: [],
444
+ stateMutability: 'nonpayable',
445
+ type: 'function',
446
+ },
447
+ {
448
+ inputs: [
449
+ {
450
+ components: [
451
+ { internalType: 'address', name: 'authorizer', type: 'address' },
452
+ { internalType: 'address', name: 'authorized', type: 'address' },
453
+ { internalType: 'bool', name: 'isAuthorized', type: 'bool' },
454
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
455
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
456
+ ],
457
+ internalType: 'struct Authorization',
458
+ name: 'authorization',
459
+ type: 'tuple',
460
+ },
461
+ {
462
+ components: [
463
+ { internalType: 'uint8', name: 'v', type: 'uint8' },
464
+ { internalType: 'bytes32', name: 'r', type: 'bytes32' },
465
+ { internalType: 'bytes32', name: 's', type: 'bytes32' },
466
+ ],
467
+ internalType: 'struct Signature',
468
+ name: 'signature',
469
+ type: 'tuple',
470
+ },
471
+ ],
472
+ name: 'setAuthorizationWithSig',
473
+ outputs: [],
474
+ stateMutability: 'nonpayable',
475
+ type: 'function',
476
+ },
477
+ {
478
+ inputs: [
479
+ {
480
+ components: [
481
+ { internalType: 'address', name: 'loanToken', type: 'address' },
482
+ { internalType: 'address', name: 'collateralToken', type: 'address' },
483
+ { internalType: 'address', name: 'oracle', type: 'address' },
484
+ { internalType: 'address', name: 'irm', type: 'address' },
485
+ { internalType: 'uint256', name: 'lltv', type: 'uint256' },
486
+ ],
487
+ internalType: 'struct MarketParams',
488
+ name: 'marketParams',
489
+ type: 'tuple',
490
+ },
491
+ { internalType: 'uint256', name: 'newFee', type: 'uint256' },
492
+ ],
493
+ name: 'setFee',
494
+ outputs: [],
495
+ stateMutability: 'nonpayable',
496
+ type: 'function',
497
+ },
498
+ {
499
+ inputs: [{ internalType: 'address', name: 'newFeeRecipient', type: 'address' }],
500
+ name: 'setFeeRecipient',
501
+ outputs: [],
502
+ stateMutability: 'nonpayable',
503
+ type: 'function',
504
+ },
505
+ {
506
+ inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
507
+ name: 'setOwner',
508
+ outputs: [],
509
+ stateMutability: 'nonpayable',
510
+ type: 'function',
511
+ },
512
+ {
513
+ inputs: [
514
+ {
515
+ components: [
516
+ { internalType: 'address', name: 'loanToken', type: 'address' },
517
+ { internalType: 'address', name: 'collateralToken', type: 'address' },
518
+ { internalType: 'address', name: 'oracle', type: 'address' },
519
+ { internalType: 'address', name: 'irm', type: 'address' },
520
+ { internalType: 'uint256', name: 'lltv', type: 'uint256' },
521
+ ],
522
+ internalType: 'struct MarketParams',
523
+ name: 'marketParams',
524
+ type: 'tuple',
525
+ },
526
+ { internalType: 'uint256', name: 'assets', type: 'uint256' },
527
+ { internalType: 'uint256', name: 'shares', type: 'uint256' },
528
+ { internalType: 'address', name: 'onBehalf', type: 'address' },
529
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
530
+ ],
531
+ name: 'supply',
532
+ outputs: [
533
+ { internalType: 'uint256', name: '', type: 'uint256' },
534
+ { internalType: 'uint256', name: '', type: 'uint256' },
535
+ ],
536
+ stateMutability: 'nonpayable',
537
+ type: 'function',
538
+ },
539
+ {
540
+ inputs: [
541
+ {
542
+ components: [
543
+ { internalType: 'address', name: 'loanToken', type: 'address' },
544
+ { internalType: 'address', name: 'collateralToken', type: 'address' },
545
+ { internalType: 'address', name: 'oracle', type: 'address' },
546
+ { internalType: 'address', name: 'irm', type: 'address' },
547
+ { internalType: 'uint256', name: 'lltv', type: 'uint256' },
548
+ ],
549
+ internalType: 'struct MarketParams',
550
+ name: 'marketParams',
551
+ type: 'tuple',
552
+ },
553
+ { internalType: 'uint256', name: 'assets', type: 'uint256' },
554
+ { internalType: 'address', name: 'onBehalf', type: 'address' },
555
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
556
+ ],
557
+ name: 'supplyCollateral',
558
+ outputs: [],
559
+ stateMutability: 'nonpayable',
560
+ type: 'function',
561
+ },
562
+ {
563
+ inputs: [
564
+ {
565
+ components: [
566
+ { internalType: 'address', name: 'loanToken', type: 'address' },
567
+ { internalType: 'address', name: 'collateralToken', type: 'address' },
568
+ { internalType: 'address', name: 'oracle', type: 'address' },
569
+ { internalType: 'address', name: 'irm', type: 'address' },
570
+ { internalType: 'uint256', name: 'lltv', type: 'uint256' },
571
+ ],
572
+ internalType: 'struct MarketParams',
573
+ name: 'marketParams',
574
+ type: 'tuple',
575
+ },
576
+ { internalType: 'uint256', name: 'assets', type: 'uint256' },
577
+ { internalType: 'uint256', name: 'shares', type: 'uint256' },
578
+ { internalType: 'address', name: 'onBehalf', type: 'address' },
579
+ { internalType: 'address', name: 'receiver', type: 'address' },
580
+ ],
581
+ name: 'withdraw',
582
+ outputs: [
583
+ { internalType: 'uint256', name: '', type: 'uint256' },
584
+ { internalType: 'uint256', name: '', type: 'uint256' },
585
+ ],
586
+ stateMutability: 'nonpayable',
587
+ type: 'function',
588
+ },
589
+ {
590
+ inputs: [
591
+ {
592
+ components: [
593
+ { internalType: 'address', name: 'loanToken', type: 'address' },
594
+ { internalType: 'address', name: 'collateralToken', type: 'address' },
595
+ { internalType: 'address', name: 'oracle', type: 'address' },
596
+ { internalType: 'address', name: 'irm', type: 'address' },
597
+ { internalType: 'uint256', name: 'lltv', type: 'uint256' },
598
+ ],
599
+ internalType: 'struct MarketParams',
600
+ name: 'marketParams',
601
+ type: 'tuple',
602
+ },
603
+ { internalType: 'uint256', name: 'assets', type: 'uint256' },
604
+ { internalType: 'address', name: 'onBehalf', type: 'address' },
605
+ { internalType: 'address', name: 'receiver', type: 'address' },
606
+ ],
607
+ name: 'withdrawCollateral',
608
+ outputs: [],
609
+ stateMutability: 'nonpayable',
610
+ type: 'function',
611
+ },
612
+ ] as const
@@ -0,0 +1,2 @@
1
+ export { MoprhoBlueAbi, MoprhoBlueAbi as MorphoBlueAbi } from './blue'
2
+ export { MorphoLensAbi } from './lens'