@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,883 @@
1
+ export const AaveV2V3Abi = [
2
+ {
3
+ inputs: [
4
+ { internalType: 'contract IPoolAddressesProvider', name: 'provider', type: 'address' },
5
+ { internalType: 'contract IReserveInterestRateStrategy', name: 'interestRateStrategy_', type: 'address' },
6
+ ],
7
+ stateMutability: 'nonpayable',
8
+ type: 'constructor',
9
+ },
10
+ { inputs: [{ internalType: 'address', name: 'target', type: 'address' }], name: 'AddressEmptyCode', type: 'error' },
11
+ { inputs: [], name: 'AssetNotListed', type: 'error' },
12
+ { inputs: [], name: 'CallerNotAToken', type: 'error' },
13
+ { inputs: [], name: 'CallerNotPoolAdmin', type: 'error' },
14
+ { inputs: [], name: 'CallerNotPoolConfigurator', type: 'error' },
15
+ { inputs: [], name: 'CallerNotPositionManager', type: 'error' },
16
+ { inputs: [], name: 'CallerNotUmbrella', type: 'error' },
17
+ { inputs: [], name: 'EModeCategoryReserved', type: 'error' },
18
+ { inputs: [], name: 'FailedCall', type: 'error' },
19
+ { inputs: [], name: 'InvalidAddressesProvider', type: 'error' },
20
+ { inputs: [], name: 'ZeroAddressNotValid', type: 'error' },
21
+ {
22
+ anonymous: false,
23
+ inputs: [
24
+ { indexed: true, internalType: 'address', name: 'reserve', type: 'address' },
25
+ { indexed: false, internalType: 'address', name: 'user', type: 'address' },
26
+ { indexed: true, internalType: 'address', name: 'onBehalfOf', type: 'address' },
27
+ { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
28
+ { indexed: false, internalType: 'enum DataTypes.InterestRateMode', name: 'interestRateMode', type: 'uint8' },
29
+ { indexed: false, internalType: 'uint256', name: 'borrowRate', type: 'uint256' },
30
+ { indexed: true, internalType: 'uint16', name: 'referralCode', type: 'uint16' },
31
+ ],
32
+ name: 'Borrow',
33
+ type: 'event',
34
+ },
35
+ {
36
+ anonymous: false,
37
+ inputs: [
38
+ { indexed: true, internalType: 'address', name: 'reserve', type: 'address' },
39
+ { indexed: false, internalType: 'address', name: 'caller', type: 'address' },
40
+ { indexed: false, internalType: 'uint256', name: 'amountCovered', type: 'uint256' },
41
+ ],
42
+ name: 'DeficitCovered',
43
+ type: 'event',
44
+ },
45
+ {
46
+ anonymous: false,
47
+ inputs: [
48
+ { indexed: true, internalType: 'address', name: 'user', type: 'address' },
49
+ { indexed: true, internalType: 'address', name: 'debtAsset', type: 'address' },
50
+ { indexed: false, internalType: 'uint256', name: 'amountCreated', type: 'uint256' },
51
+ ],
52
+ name: 'DeficitCreated',
53
+ type: 'event',
54
+ },
55
+ {
56
+ anonymous: false,
57
+ inputs: [
58
+ { indexed: true, internalType: 'address', name: 'target', type: 'address' },
59
+ { indexed: false, internalType: 'address', name: 'initiator', type: 'address' },
60
+ { indexed: true, internalType: 'address', name: 'asset', type: 'address' },
61
+ { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
62
+ { indexed: false, internalType: 'enum DataTypes.InterestRateMode', name: 'interestRateMode', type: 'uint8' },
63
+ { indexed: false, internalType: 'uint256', name: 'premium', type: 'uint256' },
64
+ { indexed: true, internalType: 'uint16', name: 'referralCode', type: 'uint16' },
65
+ ],
66
+ name: 'FlashLoan',
67
+ type: 'event',
68
+ },
69
+ {
70
+ anonymous: false,
71
+ inputs: [
72
+ { indexed: true, internalType: 'address', name: 'asset', type: 'address' },
73
+ { indexed: false, internalType: 'uint256', name: 'totalDebt', type: 'uint256' },
74
+ ],
75
+ name: 'IsolationModeTotalDebtUpdated',
76
+ type: 'event',
77
+ },
78
+ {
79
+ anonymous: false,
80
+ inputs: [
81
+ { indexed: true, internalType: 'address', name: 'collateralAsset', type: 'address' },
82
+ { indexed: true, internalType: 'address', name: 'debtAsset', type: 'address' },
83
+ { indexed: true, internalType: 'address', name: 'user', type: 'address' },
84
+ { indexed: false, internalType: 'uint256', name: 'debtToCover', type: 'uint256' },
85
+ { indexed: false, internalType: 'uint256', name: 'liquidatedCollateralAmount', type: 'uint256' },
86
+ { indexed: false, internalType: 'address', name: 'liquidator', type: 'address' },
87
+ { indexed: false, internalType: 'bool', name: 'receiveAToken', type: 'bool' },
88
+ ],
89
+ name: 'LiquidationCall',
90
+ type: 'event',
91
+ },
92
+ {
93
+ anonymous: false,
94
+ inputs: [
95
+ { indexed: true, internalType: 'address', name: 'reserve', type: 'address' },
96
+ { indexed: false, internalType: 'uint256', name: 'amountMinted', type: 'uint256' },
97
+ ],
98
+ name: 'MintedToTreasury',
99
+ type: 'event',
100
+ },
101
+ {
102
+ anonymous: false,
103
+ inputs: [
104
+ { indexed: true, internalType: 'address', name: 'user', type: 'address' },
105
+ { indexed: true, internalType: 'address', name: 'positionManager', type: 'address' },
106
+ ],
107
+ name: 'PositionManagerApproved',
108
+ type: 'event',
109
+ },
110
+ {
111
+ anonymous: false,
112
+ inputs: [
113
+ { indexed: true, internalType: 'address', name: 'user', type: 'address' },
114
+ { indexed: true, internalType: 'address', name: 'positionManager', type: 'address' },
115
+ ],
116
+ name: 'PositionManagerRevoked',
117
+ type: 'event',
118
+ },
119
+ {
120
+ anonymous: false,
121
+ inputs: [
122
+ { indexed: true, internalType: 'address', name: 'reserve', type: 'address' },
123
+ { indexed: true, internalType: 'address', name: 'user', type: 'address' },
124
+ { indexed: true, internalType: 'address', name: 'repayer', type: 'address' },
125
+ { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
126
+ { indexed: false, internalType: 'bool', name: 'useATokens', type: 'bool' },
127
+ ],
128
+ name: 'Repay',
129
+ type: 'event',
130
+ },
131
+ {
132
+ anonymous: false,
133
+ inputs: [
134
+ { indexed: true, internalType: 'address', name: 'reserve', type: 'address' },
135
+ { indexed: false, internalType: 'uint256', name: 'liquidityRate', type: 'uint256' },
136
+ { indexed: false, internalType: 'uint256', name: 'stableBorrowRate', type: 'uint256' },
137
+ { indexed: false, internalType: 'uint256', name: 'variableBorrowRate', type: 'uint256' },
138
+ { indexed: false, internalType: 'uint256', name: 'liquidityIndex', type: 'uint256' },
139
+ { indexed: false, internalType: 'uint256', name: 'variableBorrowIndex', type: 'uint256' },
140
+ ],
141
+ name: 'ReserveDataUpdated',
142
+ type: 'event',
143
+ },
144
+ {
145
+ anonymous: false,
146
+ inputs: [
147
+ { indexed: true, internalType: 'address', name: 'reserve', type: 'address' },
148
+ { indexed: true, internalType: 'address', name: 'user', type: 'address' },
149
+ ],
150
+ name: 'ReserveUsedAsCollateralDisabled',
151
+ type: 'event',
152
+ },
153
+ {
154
+ anonymous: false,
155
+ inputs: [
156
+ { indexed: true, internalType: 'address', name: 'reserve', type: 'address' },
157
+ { indexed: true, internalType: 'address', name: 'user', type: 'address' },
158
+ ],
159
+ name: 'ReserveUsedAsCollateralEnabled',
160
+ type: 'event',
161
+ },
162
+ {
163
+ anonymous: false,
164
+ inputs: [
165
+ { indexed: true, internalType: 'address', name: 'reserve', type: 'address' },
166
+ { indexed: false, internalType: 'address', name: 'user', type: 'address' },
167
+ { indexed: true, internalType: 'address', name: 'onBehalfOf', type: 'address' },
168
+ { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
169
+ { indexed: true, internalType: 'uint16', name: 'referralCode', type: 'uint16' },
170
+ ],
171
+ name: 'Supply',
172
+ type: 'event',
173
+ },
174
+ {
175
+ anonymous: false,
176
+ inputs: [
177
+ { indexed: true, internalType: 'address', name: 'user', type: 'address' },
178
+ { indexed: false, internalType: 'uint8', name: 'categoryId', type: 'uint8' },
179
+ ],
180
+ name: 'UserEModeSet',
181
+ type: 'event',
182
+ },
183
+ {
184
+ anonymous: false,
185
+ inputs: [
186
+ { indexed: true, internalType: 'address', name: 'reserve', type: 'address' },
187
+ { indexed: true, internalType: 'address', name: 'user', type: 'address' },
188
+ { indexed: true, internalType: 'address', name: 'to', type: 'address' },
189
+ { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
190
+ ],
191
+ name: 'Withdraw',
192
+ type: 'event',
193
+ },
194
+ {
195
+ inputs: [],
196
+ name: 'ADDRESSES_PROVIDER',
197
+ outputs: [{ internalType: 'contract IPoolAddressesProvider', name: '', type: 'address' }],
198
+ stateMutability: 'view',
199
+ type: 'function',
200
+ },
201
+ {
202
+ inputs: [],
203
+ name: 'FLASHLOAN_PREMIUM_TOTAL',
204
+ outputs: [{ internalType: 'uint128', name: '', type: 'uint128' }],
205
+ stateMutability: 'view',
206
+ type: 'function',
207
+ },
208
+ {
209
+ inputs: [],
210
+ name: 'FLASHLOAN_PREMIUM_TO_PROTOCOL',
211
+ outputs: [{ internalType: 'uint128', name: '', type: 'uint128' }],
212
+ stateMutability: 'view',
213
+ type: 'function',
214
+ },
215
+ {
216
+ inputs: [],
217
+ name: 'MAX_NUMBER_RESERVES',
218
+ outputs: [{ internalType: 'uint16', name: '', type: 'uint16' }],
219
+ stateMutability: 'view',
220
+ type: 'function',
221
+ },
222
+ {
223
+ inputs: [],
224
+ name: 'POOL_REVISION',
225
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
226
+ stateMutability: 'view',
227
+ type: 'function',
228
+ },
229
+ {
230
+ inputs: [],
231
+ name: 'RESERVE_INTEREST_RATE_STRATEGY',
232
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
233
+ stateMutability: 'view',
234
+ type: 'function',
235
+ },
236
+ {
237
+ inputs: [],
238
+ name: 'UMBRELLA',
239
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
240
+ stateMutability: 'view',
241
+ type: 'function',
242
+ },
243
+ {
244
+ inputs: [
245
+ { internalType: 'address', name: 'positionManager', type: 'address' },
246
+ { internalType: 'bool', name: 'approve', type: 'bool' },
247
+ ],
248
+ name: 'approvePositionManager',
249
+ outputs: [],
250
+ stateMutability: 'nonpayable',
251
+ type: 'function',
252
+ },
253
+ {
254
+ inputs: [
255
+ { internalType: 'address', name: 'asset', type: 'address' },
256
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
257
+ { internalType: 'uint256', name: 'interestRateMode', type: 'uint256' },
258
+ { internalType: 'uint16', name: 'referralCode', type: 'uint16' },
259
+ { internalType: 'address', name: 'onBehalfOf', type: 'address' },
260
+ ],
261
+ name: 'borrow',
262
+ outputs: [],
263
+ stateMutability: 'nonpayable',
264
+ type: 'function',
265
+ },
266
+ {
267
+ inputs: [
268
+ { internalType: 'uint8', name: 'id', type: 'uint8' },
269
+ {
270
+ components: [
271
+ { internalType: 'uint16', name: 'ltv', type: 'uint16' },
272
+ { internalType: 'uint16', name: 'liquidationThreshold', type: 'uint16' },
273
+ { internalType: 'uint16', name: 'liquidationBonus', type: 'uint16' },
274
+ { internalType: 'string', name: 'label', type: 'string' },
275
+ ],
276
+ internalType: 'struct DataTypes.EModeCategoryBaseConfiguration',
277
+ name: 'category',
278
+ type: 'tuple',
279
+ },
280
+ ],
281
+ name: 'configureEModeCategory',
282
+ outputs: [],
283
+ stateMutability: 'nonpayable',
284
+ type: 'function',
285
+ },
286
+ {
287
+ inputs: [
288
+ { internalType: 'uint8', name: 'id', type: 'uint8' },
289
+ { internalType: 'uint128', name: 'borrowableBitmap', type: 'uint128' },
290
+ ],
291
+ name: 'configureEModeCategoryBorrowableBitmap',
292
+ outputs: [],
293
+ stateMutability: 'nonpayable',
294
+ type: 'function',
295
+ },
296
+ {
297
+ inputs: [
298
+ { internalType: 'uint8', name: 'id', type: 'uint8' },
299
+ { internalType: 'uint128', name: 'collateralBitmap', type: 'uint128' },
300
+ ],
301
+ name: 'configureEModeCategoryCollateralBitmap',
302
+ outputs: [],
303
+ stateMutability: 'nonpayable',
304
+ type: 'function',
305
+ },
306
+ {
307
+ inputs: [
308
+ { internalType: 'uint8', name: 'id', type: 'uint8' },
309
+ { internalType: 'uint128', name: 'ltvzeroBitmap', type: 'uint128' },
310
+ ],
311
+ name: 'configureEModeCategoryLtvzeroBitmap',
312
+ outputs: [],
313
+ stateMutability: 'nonpayable',
314
+ type: 'function',
315
+ },
316
+ {
317
+ inputs: [
318
+ { internalType: 'address', name: 'asset', type: 'address' },
319
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
320
+ { internalType: 'address', name: 'onBehalfOf', type: 'address' },
321
+ { internalType: 'uint16', name: 'referralCode', type: 'uint16' },
322
+ ],
323
+ name: 'deposit',
324
+ outputs: [],
325
+ stateMutability: 'nonpayable',
326
+ type: 'function',
327
+ },
328
+ {
329
+ inputs: [{ internalType: 'address', name: 'asset', type: 'address' }],
330
+ name: 'dropReserve',
331
+ outputs: [],
332
+ stateMutability: 'nonpayable',
333
+ type: 'function',
334
+ },
335
+ {
336
+ inputs: [
337
+ { internalType: 'address', name: 'asset', type: 'address' },
338
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
339
+ ],
340
+ name: 'eliminateReserveDeficit',
341
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
342
+ stateMutability: 'nonpayable',
343
+ type: 'function',
344
+ },
345
+ {
346
+ inputs: [
347
+ { internalType: 'address', name: 'asset', type: 'address' },
348
+ { internalType: 'address', name: 'from', type: 'address' },
349
+ { internalType: 'address', name: 'to', type: 'address' },
350
+ { internalType: 'uint256', name: 'scaledAmount', type: 'uint256' },
351
+ { internalType: 'uint256', name: 'scaledBalanceFromBefore', type: 'uint256' },
352
+ ],
353
+ name: 'finalizeTransfer',
354
+ outputs: [],
355
+ stateMutability: 'nonpayable',
356
+ type: 'function',
357
+ },
358
+ {
359
+ inputs: [
360
+ { internalType: 'address', name: 'receiverAddress', type: 'address' },
361
+ { internalType: 'address[]', name: 'assets', type: 'address[]' },
362
+ { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' },
363
+ { internalType: 'uint256[]', name: 'interestRateModes', type: 'uint256[]' },
364
+ { internalType: 'address', name: 'onBehalfOf', type: 'address' },
365
+ { internalType: 'bytes', name: 'params', type: 'bytes' },
366
+ { internalType: 'uint16', name: 'referralCode', type: 'uint16' },
367
+ ],
368
+ name: 'flashLoan',
369
+ outputs: [],
370
+ stateMutability: 'nonpayable',
371
+ type: 'function',
372
+ },
373
+ {
374
+ inputs: [
375
+ { internalType: 'address', name: 'receiverAddress', type: 'address' },
376
+ { internalType: 'address', name: 'asset', type: 'address' },
377
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
378
+ { internalType: 'bytes', name: 'params', type: 'bytes' },
379
+ { internalType: 'uint16', name: 'referralCode', type: 'uint16' },
380
+ ],
381
+ name: 'flashLoanSimple',
382
+ outputs: [],
383
+ stateMutability: 'nonpayable',
384
+ type: 'function',
385
+ },
386
+ {
387
+ inputs: [],
388
+ name: 'getBorrowLogic',
389
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
390
+ stateMutability: 'pure',
391
+ type: 'function',
392
+ },
393
+ {
394
+ inputs: [{ internalType: 'address', name: 'asset', type: 'address' }],
395
+ name: 'getConfiguration',
396
+ outputs: [
397
+ {
398
+ components: [{ internalType: 'uint256', name: 'data', type: 'uint256' }],
399
+ internalType: 'struct DataTypes.ReserveConfigurationMap',
400
+ name: '',
401
+ type: 'tuple',
402
+ },
403
+ ],
404
+ stateMutability: 'view',
405
+ type: 'function',
406
+ },
407
+ {
408
+ inputs: [{ internalType: 'uint8', name: 'id', type: 'uint8' }],
409
+ name: 'getEModeCategoryBorrowableBitmap',
410
+ outputs: [{ internalType: 'uint128', name: '', type: 'uint128' }],
411
+ stateMutability: 'view',
412
+ type: 'function',
413
+ },
414
+ {
415
+ inputs: [{ internalType: 'uint8', name: 'id', type: 'uint8' }],
416
+ name: 'getEModeCategoryCollateralBitmap',
417
+ outputs: [{ internalType: 'uint128', name: '', type: 'uint128' }],
418
+ stateMutability: 'view',
419
+ type: 'function',
420
+ },
421
+ {
422
+ inputs: [{ internalType: 'uint8', name: 'id', type: 'uint8' }],
423
+ name: 'getEModeCategoryCollateralConfig',
424
+ outputs: [
425
+ {
426
+ components: [
427
+ { internalType: 'uint16', name: 'ltv', type: 'uint16' },
428
+ { internalType: 'uint16', name: 'liquidationThreshold', type: 'uint16' },
429
+ { internalType: 'uint16', name: 'liquidationBonus', type: 'uint16' },
430
+ ],
431
+ internalType: 'struct DataTypes.CollateralConfig',
432
+ name: 'res',
433
+ type: 'tuple',
434
+ },
435
+ ],
436
+ stateMutability: 'view',
437
+ type: 'function',
438
+ },
439
+ {
440
+ inputs: [{ internalType: 'uint8', name: 'id', type: 'uint8' }],
441
+ name: 'getEModeCategoryData',
442
+ outputs: [
443
+ {
444
+ components: [
445
+ { internalType: 'uint16', name: 'ltv', type: 'uint16' },
446
+ { internalType: 'uint16', name: 'liquidationThreshold', type: 'uint16' },
447
+ { internalType: 'uint16', name: 'liquidationBonus', type: 'uint16' },
448
+ { internalType: 'address', name: 'priceSource', type: 'address' },
449
+ { internalType: 'string', name: 'label', type: 'string' },
450
+ ],
451
+ internalType: 'struct DataTypes.EModeCategoryLegacy',
452
+ name: '',
453
+ type: 'tuple',
454
+ },
455
+ ],
456
+ stateMutability: 'view',
457
+ type: 'function',
458
+ },
459
+ {
460
+ inputs: [{ internalType: 'uint8', name: 'id', type: 'uint8' }],
461
+ name: 'getEModeCategoryLabel',
462
+ outputs: [{ internalType: 'string', name: '', type: 'string' }],
463
+ stateMutability: 'view',
464
+ type: 'function',
465
+ },
466
+ {
467
+ inputs: [{ internalType: 'uint8', name: 'id', type: 'uint8' }],
468
+ name: 'getEModeCategoryLtvzeroBitmap',
469
+ outputs: [{ internalType: 'uint128', name: '', type: 'uint128' }],
470
+ stateMutability: 'view',
471
+ type: 'function',
472
+ },
473
+ {
474
+ inputs: [],
475
+ name: 'getFlashLoanLogic',
476
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
477
+ stateMutability: 'pure',
478
+ type: 'function',
479
+ },
480
+ {
481
+ inputs: [{ internalType: 'address', name: 'asset', type: 'address' }],
482
+ name: 'getLiquidationGracePeriod',
483
+ outputs: [{ internalType: 'uint40', name: '', type: 'uint40' }],
484
+ stateMutability: 'view',
485
+ type: 'function',
486
+ },
487
+ {
488
+ inputs: [],
489
+ name: 'getLiquidationLogic',
490
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
491
+ stateMutability: 'pure',
492
+ type: 'function',
493
+ },
494
+ {
495
+ inputs: [],
496
+ name: 'getPoolLogic',
497
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
498
+ stateMutability: 'pure',
499
+ type: 'function',
500
+ },
501
+ {
502
+ inputs: [{ internalType: 'address', name: 'asset', type: 'address' }],
503
+ name: 'getReserveAToken',
504
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
505
+ stateMutability: 'view',
506
+ type: 'function',
507
+ },
508
+ {
509
+ inputs: [{ internalType: 'uint16', name: 'id', type: 'uint16' }],
510
+ name: 'getReserveAddressById',
511
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
512
+ stateMutability: 'view',
513
+ type: 'function',
514
+ },
515
+ {
516
+ inputs: [{ internalType: 'address', name: 'asset', type: 'address' }],
517
+ name: 'getReserveData',
518
+ outputs: [
519
+ {
520
+ components: [
521
+ {
522
+ components: [{ internalType: 'uint256', name: 'data', type: 'uint256' }],
523
+ internalType: 'struct DataTypes.ReserveConfigurationMap',
524
+ name: 'configuration',
525
+ type: 'tuple',
526
+ },
527
+ { internalType: 'uint128', name: 'liquidityIndex', type: 'uint128' },
528
+ { internalType: 'uint128', name: 'currentLiquidityRate', type: 'uint128' },
529
+ { internalType: 'uint128', name: 'variableBorrowIndex', type: 'uint128' },
530
+ { internalType: 'uint128', name: 'currentVariableBorrowRate', type: 'uint128' },
531
+ { internalType: 'uint128', name: 'currentStableBorrowRate', type: 'uint128' },
532
+ { internalType: 'uint40', name: 'lastUpdateTimestamp', type: 'uint40' },
533
+ { internalType: 'uint16', name: 'id', type: 'uint16' },
534
+ { internalType: 'address', name: 'aTokenAddress', type: 'address' },
535
+ { internalType: 'address', name: 'stableDebtTokenAddress', type: 'address' },
536
+ { internalType: 'address', name: 'variableDebtTokenAddress', type: 'address' },
537
+ { internalType: 'address', name: 'interestRateStrategyAddress', type: 'address' },
538
+ { internalType: 'uint128', name: 'accruedToTreasury', type: 'uint128' },
539
+ { internalType: 'uint128', name: 'unbacked', type: 'uint128' },
540
+ { internalType: 'uint128', name: 'isolationModeTotalDebt', type: 'uint128' },
541
+ ],
542
+ internalType: 'struct DataTypes.ReserveDataLegacy',
543
+ name: 'res',
544
+ type: 'tuple',
545
+ },
546
+ ],
547
+ stateMutability: 'view',
548
+ type: 'function',
549
+ },
550
+ {
551
+ inputs: [{ internalType: 'address', name: 'asset', type: 'address' }],
552
+ name: 'getReserveDeficit',
553
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
554
+ stateMutability: 'view',
555
+ type: 'function',
556
+ },
557
+ {
558
+ inputs: [{ internalType: 'address', name: 'asset', type: 'address' }],
559
+ name: 'getReserveNormalizedIncome',
560
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
561
+ stateMutability: 'view',
562
+ type: 'function',
563
+ },
564
+ {
565
+ inputs: [{ internalType: 'address', name: 'asset', type: 'address' }],
566
+ name: 'getReserveNormalizedVariableDebt',
567
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
568
+ stateMutability: 'view',
569
+ type: 'function',
570
+ },
571
+ {
572
+ inputs: [{ internalType: 'address', name: 'asset', type: 'address' }],
573
+ name: 'getReserveVariableDebtToken',
574
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
575
+ stateMutability: 'view',
576
+ type: 'function',
577
+ },
578
+ {
579
+ inputs: [],
580
+ name: 'getReservesCount',
581
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
582
+ stateMutability: 'view',
583
+ type: 'function',
584
+ },
585
+ {
586
+ inputs: [],
587
+ name: 'getReservesList',
588
+ outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }],
589
+ stateMutability: 'view',
590
+ type: 'function',
591
+ },
592
+ {
593
+ inputs: [],
594
+ name: 'getSupplyLogic',
595
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
596
+ stateMutability: 'pure',
597
+ type: 'function',
598
+ },
599
+ {
600
+ inputs: [{ internalType: 'address', name: 'user', type: 'address' }],
601
+ name: 'getUserAccountData',
602
+ outputs: [
603
+ { internalType: 'uint256', name: 'totalCollateralBase', type: 'uint256' },
604
+ { internalType: 'uint256', name: 'totalDebtBase', type: 'uint256' },
605
+ { internalType: 'uint256', name: 'availableBorrowsBase', type: 'uint256' },
606
+ { internalType: 'uint256', name: 'currentLiquidationThreshold', type: 'uint256' },
607
+ { internalType: 'uint256', name: 'ltv', type: 'uint256' },
608
+ { internalType: 'uint256', name: 'healthFactor', type: 'uint256' },
609
+ ],
610
+ stateMutability: 'view',
611
+ type: 'function',
612
+ },
613
+ {
614
+ inputs: [{ internalType: 'address', name: 'user', type: 'address' }],
615
+ name: 'getUserConfiguration',
616
+ outputs: [
617
+ {
618
+ components: [{ internalType: 'uint256', name: 'data', type: 'uint256' }],
619
+ internalType: 'struct DataTypes.UserConfigurationMap',
620
+ name: '',
621
+ type: 'tuple',
622
+ },
623
+ ],
624
+ stateMutability: 'view',
625
+ type: 'function',
626
+ },
627
+ {
628
+ inputs: [{ internalType: 'address', name: 'user', type: 'address' }],
629
+ name: 'getUserEMode',
630
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
631
+ stateMutability: 'view',
632
+ type: 'function',
633
+ },
634
+ {
635
+ inputs: [{ internalType: 'address', name: 'asset', type: 'address' }],
636
+ name: 'getVirtualUnderlyingBalance',
637
+ outputs: [{ internalType: 'uint128', name: '', type: 'uint128' }],
638
+ stateMutability: 'view',
639
+ type: 'function',
640
+ },
641
+ {
642
+ inputs: [
643
+ { internalType: 'address', name: 'asset', type: 'address' },
644
+ { internalType: 'address', name: 'aTokenAddress', type: 'address' },
645
+ { internalType: 'address', name: 'variableDebtAddress', type: 'address' },
646
+ ],
647
+ name: 'initReserve',
648
+ outputs: [],
649
+ stateMutability: 'nonpayable',
650
+ type: 'function',
651
+ },
652
+ {
653
+ inputs: [{ internalType: 'contract IPoolAddressesProvider', name: 'provider', type: 'address' }],
654
+ name: 'initialize',
655
+ outputs: [],
656
+ stateMutability: 'nonpayable',
657
+ type: 'function',
658
+ },
659
+ {
660
+ inputs: [
661
+ { internalType: 'address', name: 'user', type: 'address' },
662
+ { internalType: 'address', name: 'positionManager', type: 'address' },
663
+ ],
664
+ name: 'isApprovedPositionManager',
665
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
666
+ stateMutability: 'view',
667
+ type: 'function',
668
+ },
669
+ {
670
+ inputs: [
671
+ { internalType: 'address', name: 'collateralAsset', type: 'address' },
672
+ { internalType: 'address', name: 'debtAsset', type: 'address' },
673
+ { internalType: 'address', name: 'borrower', type: 'address' },
674
+ { internalType: 'uint256', name: 'debtToCover', type: 'uint256' },
675
+ { internalType: 'bool', name: 'receiveAToken', type: 'bool' },
676
+ ],
677
+ name: 'liquidationCall',
678
+ outputs: [],
679
+ stateMutability: 'nonpayable',
680
+ type: 'function',
681
+ },
682
+ {
683
+ inputs: [{ internalType: 'address[]', name: 'assets', type: 'address[]' }],
684
+ name: 'mintToTreasury',
685
+ outputs: [],
686
+ stateMutability: 'nonpayable',
687
+ type: 'function',
688
+ },
689
+ {
690
+ inputs: [{ internalType: 'bytes[]', name: 'data', type: 'bytes[]' }],
691
+ name: 'multicall',
692
+ outputs: [{ internalType: 'bytes[]', name: 'results', type: 'bytes[]' }],
693
+ stateMutability: 'nonpayable',
694
+ type: 'function',
695
+ },
696
+ {
697
+ inputs: [{ internalType: 'address', name: 'user', type: 'address' }],
698
+ name: 'renouncePositionManagerRole',
699
+ outputs: [],
700
+ stateMutability: 'nonpayable',
701
+ type: 'function',
702
+ },
703
+ {
704
+ inputs: [
705
+ { internalType: 'address', name: 'asset', type: 'address' },
706
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
707
+ { internalType: 'uint256', name: 'interestRateMode', type: 'uint256' },
708
+ { internalType: 'address', name: 'onBehalfOf', type: 'address' },
709
+ ],
710
+ name: 'repay',
711
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
712
+ stateMutability: 'nonpayable',
713
+ type: 'function',
714
+ },
715
+ {
716
+ inputs: [
717
+ { internalType: 'address', name: 'asset', type: 'address' },
718
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
719
+ { internalType: 'uint256', name: 'interestRateMode', type: 'uint256' },
720
+ ],
721
+ name: 'repayWithATokens',
722
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
723
+ stateMutability: 'nonpayable',
724
+ type: 'function',
725
+ },
726
+ {
727
+ inputs: [
728
+ { internalType: 'address', name: 'asset', type: 'address' },
729
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
730
+ { internalType: 'uint256', name: 'interestRateMode', type: 'uint256' },
731
+ { internalType: 'address', name: 'onBehalfOf', type: 'address' },
732
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
733
+ { internalType: 'uint8', name: 'permitV', type: 'uint8' },
734
+ { internalType: 'bytes32', name: 'permitR', type: 'bytes32' },
735
+ { internalType: 'bytes32', name: 'permitS', type: 'bytes32' },
736
+ ],
737
+ name: 'repayWithPermit',
738
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
739
+ stateMutability: 'nonpayable',
740
+ type: 'function',
741
+ },
742
+ {
743
+ inputs: [
744
+ { internalType: 'address', name: 'token', type: 'address' },
745
+ { internalType: 'address', name: 'to', type: 'address' },
746
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
747
+ ],
748
+ name: 'rescueTokens',
749
+ outputs: [],
750
+ stateMutability: 'nonpayable',
751
+ type: 'function',
752
+ },
753
+ {
754
+ inputs: [{ internalType: 'address', name: 'asset', type: 'address' }],
755
+ name: 'resetIsolationModeTotalDebt',
756
+ outputs: [],
757
+ stateMutability: 'nonpayable',
758
+ type: 'function',
759
+ },
760
+ {
761
+ inputs: [
762
+ { internalType: 'address', name: 'asset', type: 'address' },
763
+ {
764
+ components: [{ internalType: 'uint256', name: 'data', type: 'uint256' }],
765
+ internalType: 'struct DataTypes.ReserveConfigurationMap',
766
+ name: 'configuration',
767
+ type: 'tuple',
768
+ },
769
+ ],
770
+ name: 'setConfiguration',
771
+ outputs: [],
772
+ stateMutability: 'nonpayable',
773
+ type: 'function',
774
+ },
775
+ {
776
+ inputs: [
777
+ { internalType: 'address', name: 'asset', type: 'address' },
778
+ { internalType: 'uint40', name: 'until', type: 'uint40' },
779
+ ],
780
+ name: 'setLiquidationGracePeriod',
781
+ outputs: [],
782
+ stateMutability: 'nonpayable',
783
+ type: 'function',
784
+ },
785
+ {
786
+ inputs: [{ internalType: 'uint8', name: 'categoryId', type: 'uint8' }],
787
+ name: 'setUserEMode',
788
+ outputs: [],
789
+ stateMutability: 'nonpayable',
790
+ type: 'function',
791
+ },
792
+ {
793
+ inputs: [
794
+ { internalType: 'uint8', name: 'categoryId', type: 'uint8' },
795
+ { internalType: 'address', name: 'onBehalfOf', type: 'address' },
796
+ ],
797
+ name: 'setUserEModeOnBehalfOf',
798
+ outputs: [],
799
+ stateMutability: 'nonpayable',
800
+ type: 'function',
801
+ },
802
+ {
803
+ inputs: [
804
+ { internalType: 'address', name: 'asset', type: 'address' },
805
+ { internalType: 'bool', name: 'useAsCollateral', type: 'bool' },
806
+ ],
807
+ name: 'setUserUseReserveAsCollateral',
808
+ outputs: [],
809
+ stateMutability: 'nonpayable',
810
+ type: 'function',
811
+ },
812
+ {
813
+ inputs: [
814
+ { internalType: 'address', name: 'asset', type: 'address' },
815
+ { internalType: 'bool', name: 'useAsCollateral', type: 'bool' },
816
+ { internalType: 'address', name: 'onBehalfOf', type: 'address' },
817
+ ],
818
+ name: 'setUserUseReserveAsCollateralOnBehalfOf',
819
+ outputs: [],
820
+ stateMutability: 'nonpayable',
821
+ type: 'function',
822
+ },
823
+ {
824
+ inputs: [
825
+ { internalType: 'address', name: 'asset', type: 'address' },
826
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
827
+ { internalType: 'address', name: 'onBehalfOf', type: 'address' },
828
+ { internalType: 'uint16', name: 'referralCode', type: 'uint16' },
829
+ ],
830
+ name: 'supply',
831
+ outputs: [],
832
+ stateMutability: 'nonpayable',
833
+ type: 'function',
834
+ },
835
+ {
836
+ inputs: [
837
+ { internalType: 'address', name: 'asset', type: 'address' },
838
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
839
+ { internalType: 'address', name: 'onBehalfOf', type: 'address' },
840
+ { internalType: 'uint16', name: 'referralCode', type: 'uint16' },
841
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
842
+ { internalType: 'uint8', name: 'permitV', type: 'uint8' },
843
+ { internalType: 'bytes32', name: 'permitR', type: 'bytes32' },
844
+ { internalType: 'bytes32', name: 'permitS', type: 'bytes32' },
845
+ ],
846
+ name: 'supplyWithPermit',
847
+ outputs: [],
848
+ stateMutability: 'nonpayable',
849
+ type: 'function',
850
+ },
851
+ {
852
+ inputs: [{ internalType: 'address', name: 'asset', type: 'address' }],
853
+ name: 'syncIndexesState',
854
+ outputs: [],
855
+ stateMutability: 'nonpayable',
856
+ type: 'function',
857
+ },
858
+ {
859
+ inputs: [{ internalType: 'address', name: 'asset', type: 'address' }],
860
+ name: 'syncRatesState',
861
+ outputs: [],
862
+ stateMutability: 'nonpayable',
863
+ type: 'function',
864
+ },
865
+ {
866
+ inputs: [{ internalType: 'uint128', name: 'flashLoanPremium', type: 'uint128' }],
867
+ name: 'updateFlashloanPremium',
868
+ outputs: [],
869
+ stateMutability: 'nonpayable',
870
+ type: 'function',
871
+ },
872
+ {
873
+ inputs: [
874
+ { internalType: 'address', name: 'asset', type: 'address' },
875
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
876
+ { internalType: 'address', name: 'to', type: 'address' },
877
+ ],
878
+ name: 'withdraw',
879
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
880
+ stateMutability: 'nonpayable',
881
+ type: 'function',
882
+ },
883
+ ] as const