@merkl/contracts 1.36.21 → 1.36.23
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.
- package/dist/src/AaveV4Hub.d.ts +89 -54
- package/dist/src/AaveV4Spoke.d.ts +214 -171
- package/dist/src/factories/AaveV4Hub__factory.d.ts +171 -96
- package/dist/src/factories/AaveV4Hub__factory.js +214 -117
- package/dist/src/factories/AaveV4Hub__factory.js.map +1 -1
- package/dist/src/factories/AaveV4Spoke__factory.d.ts +297 -126
- package/dist/src/factories/AaveV4Spoke__factory.js +362 -141
- package/dist/src/factories/AaveV4Spoke__factory.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,62 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { Contract, utils } from "ethers";
|
|
5
5
|
const _abi = [
|
|
6
|
+
{
|
|
7
|
+
inputs: [
|
|
8
|
+
{
|
|
9
|
+
internalType: "address",
|
|
10
|
+
name: "oracle_",
|
|
11
|
+
type: "address",
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
internalType: "uint16",
|
|
15
|
+
name: "maxUserReservesLimit_",
|
|
16
|
+
type: "uint16",
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
stateMutability: "nonpayable",
|
|
20
|
+
type: "constructor",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
inputs: [],
|
|
24
|
+
name: "AssetNotListed",
|
|
25
|
+
type: "error",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
inputs: [],
|
|
29
|
+
name: "ReserveNotListed",
|
|
30
|
+
type: "error",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
inputs: [],
|
|
34
|
+
name: "Unauthorized",
|
|
35
|
+
type: "error",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
anonymous: false,
|
|
39
|
+
inputs: [
|
|
40
|
+
{
|
|
41
|
+
indexed: true,
|
|
42
|
+
internalType: "uint256",
|
|
43
|
+
name: "reserveId",
|
|
44
|
+
type: "uint256",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
indexed: true,
|
|
48
|
+
internalType: "uint256",
|
|
49
|
+
name: "assetId",
|
|
50
|
+
type: "uint256",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
indexed: true,
|
|
54
|
+
internalType: "address",
|
|
55
|
+
name: "hub",
|
|
56
|
+
type: "address",
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
name: "AddReserve",
|
|
60
|
+
type: "event",
|
|
61
|
+
},
|
|
6
62
|
{
|
|
7
63
|
anonymous: false,
|
|
8
64
|
inputs: [
|
|
@@ -27,17 +83,17 @@ const _abi = [
|
|
|
27
83
|
{
|
|
28
84
|
indexed: false,
|
|
29
85
|
internalType: "uint256",
|
|
30
|
-
name: "
|
|
86
|
+
name: "drawnShares",
|
|
31
87
|
type: "uint256",
|
|
32
88
|
},
|
|
33
89
|
{
|
|
34
90
|
indexed: false,
|
|
35
91
|
internalType: "uint256",
|
|
36
|
-
name: "
|
|
92
|
+
name: "drawnAmount",
|
|
37
93
|
type: "uint256",
|
|
38
94
|
},
|
|
39
95
|
],
|
|
40
|
-
name: "
|
|
96
|
+
name: "Borrow",
|
|
41
97
|
type: "event",
|
|
42
98
|
},
|
|
43
99
|
{
|
|
@@ -46,14 +102,14 @@ const _abi = [
|
|
|
46
102
|
{
|
|
47
103
|
indexed: true,
|
|
48
104
|
internalType: "uint256",
|
|
49
|
-
name: "
|
|
105
|
+
name: "collateralReserveId",
|
|
50
106
|
type: "uint256",
|
|
51
107
|
},
|
|
52
108
|
{
|
|
53
109
|
indexed: true,
|
|
54
|
-
internalType: "
|
|
55
|
-
name: "
|
|
56
|
-
type: "
|
|
110
|
+
internalType: "uint256",
|
|
111
|
+
name: "debtReserveId",
|
|
112
|
+
type: "uint256",
|
|
57
113
|
},
|
|
58
114
|
{
|
|
59
115
|
indexed: true,
|
|
@@ -61,20 +117,73 @@ const _abi = [
|
|
|
61
117
|
name: "user",
|
|
62
118
|
type: "address",
|
|
63
119
|
},
|
|
120
|
+
{
|
|
121
|
+
indexed: false,
|
|
122
|
+
internalType: "address",
|
|
123
|
+
name: "liquidator",
|
|
124
|
+
type: "address",
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
indexed: false,
|
|
128
|
+
internalType: "bool",
|
|
129
|
+
name: "receiveShares",
|
|
130
|
+
type: "bool",
|
|
131
|
+
},
|
|
64
132
|
{
|
|
65
133
|
indexed: false,
|
|
66
134
|
internalType: "uint256",
|
|
67
|
-
name: "
|
|
135
|
+
name: "debtAmountRestored",
|
|
68
136
|
type: "uint256",
|
|
69
137
|
},
|
|
70
138
|
{
|
|
71
139
|
indexed: false,
|
|
72
140
|
internalType: "uint256",
|
|
73
|
-
name: "
|
|
141
|
+
name: "drawnSharesLiquidated",
|
|
142
|
+
type: "uint256",
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
components: [
|
|
146
|
+
{
|
|
147
|
+
internalType: "int256",
|
|
148
|
+
name: "sharesDelta",
|
|
149
|
+
type: "int256",
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
internalType: "int256",
|
|
153
|
+
name: "offsetRayDelta",
|
|
154
|
+
type: "int256",
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
internalType: "uint256",
|
|
158
|
+
name: "restoredPremiumRay",
|
|
159
|
+
type: "uint256",
|
|
160
|
+
},
|
|
161
|
+
],
|
|
162
|
+
indexed: false,
|
|
163
|
+
internalType: "struct IHubBase.PremiumDelta",
|
|
164
|
+
name: "premiumDelta",
|
|
165
|
+
type: "tuple",
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
indexed: false,
|
|
169
|
+
internalType: "uint256",
|
|
170
|
+
name: "collateralAmountRemoved",
|
|
171
|
+
type: "uint256",
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
indexed: false,
|
|
175
|
+
internalType: "uint256",
|
|
176
|
+
name: "collateralSharesLiquidated",
|
|
177
|
+
type: "uint256",
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
indexed: false,
|
|
181
|
+
internalType: "uint256",
|
|
182
|
+
name: "collateralSharesToLiquidator",
|
|
74
183
|
type: "uint256",
|
|
75
184
|
},
|
|
76
185
|
],
|
|
77
|
-
name: "
|
|
186
|
+
name: "LiquidationCall",
|
|
78
187
|
type: "event",
|
|
79
188
|
},
|
|
80
189
|
{
|
|
@@ -86,12 +195,6 @@ const _abi = [
|
|
|
86
195
|
name: "reserveId",
|
|
87
196
|
type: "uint256",
|
|
88
197
|
},
|
|
89
|
-
{
|
|
90
|
-
indexed: true,
|
|
91
|
-
internalType: "address",
|
|
92
|
-
name: "caller",
|
|
93
|
-
type: "address",
|
|
94
|
-
},
|
|
95
198
|
{
|
|
96
199
|
indexed: true,
|
|
97
200
|
internalType: "address",
|
|
@@ -99,19 +202,30 @@ const _abi = [
|
|
|
99
202
|
type: "address",
|
|
100
203
|
},
|
|
101
204
|
{
|
|
205
|
+
components: [
|
|
206
|
+
{
|
|
207
|
+
internalType: "int256",
|
|
208
|
+
name: "sharesDelta",
|
|
209
|
+
type: "int256",
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
internalType: "int256",
|
|
213
|
+
name: "offsetRayDelta",
|
|
214
|
+
type: "int256",
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
internalType: "uint256",
|
|
218
|
+
name: "restoredPremiumRay",
|
|
219
|
+
type: "uint256",
|
|
220
|
+
},
|
|
221
|
+
],
|
|
102
222
|
indexed: false,
|
|
103
|
-
internalType: "
|
|
104
|
-
name: "
|
|
105
|
-
type: "
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
indexed: false,
|
|
109
|
-
internalType: "uint256",
|
|
110
|
-
name: "drawnAmount",
|
|
111
|
-
type: "uint256",
|
|
223
|
+
internalType: "struct IHubBase.PremiumDelta",
|
|
224
|
+
name: "premiumDelta",
|
|
225
|
+
type: "tuple",
|
|
112
226
|
},
|
|
113
227
|
],
|
|
114
|
-
name: "
|
|
228
|
+
name: "RefreshPremiumDebt",
|
|
115
229
|
type: "event",
|
|
116
230
|
},
|
|
117
231
|
{
|
|
@@ -180,13 +294,7 @@ const _abi = [
|
|
|
180
294
|
{
|
|
181
295
|
indexed: true,
|
|
182
296
|
internalType: "uint256",
|
|
183
|
-
name: "
|
|
184
|
-
type: "uint256",
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
indexed: true,
|
|
188
|
-
internalType: "uint256",
|
|
189
|
-
name: "debtReserveId",
|
|
297
|
+
name: "reserveId",
|
|
190
298
|
type: "uint256",
|
|
191
299
|
},
|
|
192
300
|
{
|
|
@@ -195,28 +303,10 @@ const _abi = [
|
|
|
195
303
|
name: "user",
|
|
196
304
|
type: "address",
|
|
197
305
|
},
|
|
198
|
-
{
|
|
199
|
-
indexed: false,
|
|
200
|
-
internalType: "address",
|
|
201
|
-
name: "liquidator",
|
|
202
|
-
type: "address",
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
indexed: false,
|
|
206
|
-
internalType: "bool",
|
|
207
|
-
name: "receiveShares",
|
|
208
|
-
type: "bool",
|
|
209
|
-
},
|
|
210
306
|
{
|
|
211
307
|
indexed: false,
|
|
212
308
|
internalType: "uint256",
|
|
213
|
-
name: "
|
|
214
|
-
type: "uint256",
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
indexed: false,
|
|
218
|
-
internalType: "uint256",
|
|
219
|
-
name: "drawnSharesToLiquidate",
|
|
309
|
+
name: "drawnShares",
|
|
220
310
|
type: "uint256",
|
|
221
311
|
},
|
|
222
312
|
{
|
|
@@ -242,72 +332,133 @@ const _abi = [
|
|
|
242
332
|
name: "premiumDelta",
|
|
243
333
|
type: "tuple",
|
|
244
334
|
},
|
|
335
|
+
],
|
|
336
|
+
name: "ReportDeficit",
|
|
337
|
+
type: "event",
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
anonymous: false,
|
|
341
|
+
inputs: [
|
|
245
342
|
{
|
|
246
|
-
indexed:
|
|
343
|
+
indexed: true,
|
|
247
344
|
internalType: "uint256",
|
|
248
|
-
name: "
|
|
345
|
+
name: "reserveId",
|
|
249
346
|
type: "uint256",
|
|
250
347
|
},
|
|
348
|
+
{
|
|
349
|
+
indexed: true,
|
|
350
|
+
internalType: "address",
|
|
351
|
+
name: "caller",
|
|
352
|
+
type: "address",
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
indexed: true,
|
|
356
|
+
internalType: "address",
|
|
357
|
+
name: "user",
|
|
358
|
+
type: "address",
|
|
359
|
+
},
|
|
251
360
|
{
|
|
252
361
|
indexed: false,
|
|
253
362
|
internalType: "uint256",
|
|
254
|
-
name: "
|
|
363
|
+
name: "suppliedShares",
|
|
255
364
|
type: "uint256",
|
|
256
365
|
},
|
|
257
366
|
{
|
|
258
367
|
indexed: false,
|
|
259
368
|
internalType: "uint256",
|
|
260
|
-
name: "
|
|
369
|
+
name: "suppliedAmount",
|
|
261
370
|
type: "uint256",
|
|
262
371
|
},
|
|
263
372
|
],
|
|
264
|
-
name: "
|
|
373
|
+
name: "Supply",
|
|
265
374
|
type: "event",
|
|
266
375
|
},
|
|
267
376
|
{
|
|
377
|
+
anonymous: false,
|
|
268
378
|
inputs: [
|
|
269
379
|
{
|
|
380
|
+
indexed: true,
|
|
270
381
|
internalType: "uint256",
|
|
271
382
|
name: "reserveId",
|
|
272
383
|
type: "uint256",
|
|
273
384
|
},
|
|
274
385
|
{
|
|
386
|
+
indexed: true,
|
|
387
|
+
internalType: "address",
|
|
388
|
+
name: "caller",
|
|
389
|
+
type: "address",
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
indexed: true,
|
|
275
393
|
internalType: "address",
|
|
276
394
|
name: "user",
|
|
277
395
|
type: "address",
|
|
278
396
|
},
|
|
397
|
+
{
|
|
398
|
+
indexed: false,
|
|
399
|
+
internalType: "uint256",
|
|
400
|
+
name: "withdrawnShares",
|
|
401
|
+
type: "uint256",
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
indexed: false,
|
|
405
|
+
internalType: "uint256",
|
|
406
|
+
name: "withdrawnAmount",
|
|
407
|
+
type: "uint256",
|
|
408
|
+
},
|
|
279
409
|
],
|
|
280
|
-
name: "
|
|
410
|
+
name: "Withdraw",
|
|
411
|
+
type: "event",
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
inputs: [
|
|
415
|
+
{
|
|
416
|
+
internalType: "uint256",
|
|
417
|
+
name: "reserveId",
|
|
418
|
+
type: "uint256",
|
|
419
|
+
},
|
|
420
|
+
],
|
|
421
|
+
name: "getReserve",
|
|
281
422
|
outputs: [
|
|
282
423
|
{
|
|
283
424
|
components: [
|
|
284
425
|
{
|
|
285
|
-
internalType: "
|
|
286
|
-
name: "
|
|
287
|
-
type: "
|
|
426
|
+
internalType: "address",
|
|
427
|
+
name: "underlying",
|
|
428
|
+
type: "address",
|
|
288
429
|
},
|
|
289
430
|
{
|
|
290
|
-
internalType: "
|
|
291
|
-
name: "
|
|
292
|
-
type: "
|
|
431
|
+
internalType: "contract IHubBase",
|
|
432
|
+
name: "hub",
|
|
433
|
+
type: "address",
|
|
293
434
|
},
|
|
294
435
|
{
|
|
295
|
-
internalType: "
|
|
296
|
-
name: "
|
|
297
|
-
type: "
|
|
436
|
+
internalType: "uint16",
|
|
437
|
+
name: "assetId",
|
|
438
|
+
type: "uint16",
|
|
298
439
|
},
|
|
299
440
|
{
|
|
300
|
-
internalType: "
|
|
301
|
-
name: "
|
|
302
|
-
type: "
|
|
441
|
+
internalType: "uint8",
|
|
442
|
+
name: "decimals",
|
|
443
|
+
type: "uint8",
|
|
303
444
|
},
|
|
304
445
|
{
|
|
305
446
|
internalType: "uint24",
|
|
306
|
-
name: "
|
|
447
|
+
name: "collateralRisk",
|
|
307
448
|
type: "uint24",
|
|
308
449
|
},
|
|
450
|
+
{
|
|
451
|
+
internalType: "ReserveFlags",
|
|
452
|
+
name: "flags",
|
|
453
|
+
type: "uint8",
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
internalType: "uint32",
|
|
457
|
+
name: "dynamicConfigKey",
|
|
458
|
+
type: "uint32",
|
|
459
|
+
},
|
|
309
460
|
],
|
|
310
|
-
internalType: "struct ISpoke.
|
|
461
|
+
internalType: "struct ISpoke.Reserve",
|
|
311
462
|
name: "",
|
|
312
463
|
type: "tuple",
|
|
313
464
|
},
|
|
@@ -316,43 +467,56 @@ const _abi = [
|
|
|
316
467
|
type: "function",
|
|
317
468
|
},
|
|
318
469
|
{
|
|
319
|
-
inputs: [
|
|
470
|
+
inputs: [],
|
|
471
|
+
name: "getReserveCount",
|
|
472
|
+
outputs: [
|
|
320
473
|
{
|
|
321
474
|
internalType: "uint256",
|
|
322
|
-
name: "
|
|
475
|
+
name: "",
|
|
323
476
|
type: "uint256",
|
|
324
477
|
},
|
|
478
|
+
],
|
|
479
|
+
stateMutability: "view",
|
|
480
|
+
type: "function",
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
inputs: [
|
|
325
484
|
{
|
|
326
|
-
internalType: "
|
|
327
|
-
name: "
|
|
328
|
-
type: "
|
|
485
|
+
internalType: "uint256",
|
|
486
|
+
name: "reserveId",
|
|
487
|
+
type: "uint256",
|
|
329
488
|
},
|
|
330
489
|
],
|
|
331
|
-
name: "
|
|
490
|
+
name: "getReserveDebt",
|
|
332
491
|
outputs: [
|
|
333
492
|
{
|
|
334
493
|
internalType: "uint256",
|
|
335
494
|
name: "",
|
|
336
495
|
type: "uint256",
|
|
337
496
|
},
|
|
497
|
+
{
|
|
498
|
+
internalType: "uint256",
|
|
499
|
+
name: "",
|
|
500
|
+
type: "uint256",
|
|
501
|
+
},
|
|
338
502
|
],
|
|
339
503
|
stateMutability: "view",
|
|
340
504
|
type: "function",
|
|
341
505
|
},
|
|
342
506
|
{
|
|
343
507
|
inputs: [
|
|
344
|
-
{
|
|
345
|
-
internalType: "uint256",
|
|
346
|
-
name: "reserveId",
|
|
347
|
-
type: "uint256",
|
|
348
|
-
},
|
|
349
508
|
{
|
|
350
509
|
internalType: "address",
|
|
351
|
-
name: "
|
|
510
|
+
name: "hub",
|
|
352
511
|
type: "address",
|
|
353
512
|
},
|
|
513
|
+
{
|
|
514
|
+
internalType: "uint256",
|
|
515
|
+
name: "assetId",
|
|
516
|
+
type: "uint256",
|
|
517
|
+
},
|
|
354
518
|
],
|
|
355
|
-
name: "
|
|
519
|
+
name: "getReserveId",
|
|
356
520
|
outputs: [
|
|
357
521
|
{
|
|
358
522
|
internalType: "uint256",
|
|
@@ -370,22 +534,31 @@ const _abi = [
|
|
|
370
534
|
name: "reserveId",
|
|
371
535
|
type: "uint256",
|
|
372
536
|
},
|
|
537
|
+
],
|
|
538
|
+
name: "getReserveSuppliedAssets",
|
|
539
|
+
outputs: [
|
|
373
540
|
{
|
|
374
|
-
internalType: "
|
|
375
|
-
name: "
|
|
376
|
-
type: "
|
|
541
|
+
internalType: "uint256",
|
|
542
|
+
name: "",
|
|
543
|
+
type: "uint256",
|
|
377
544
|
},
|
|
378
545
|
],
|
|
379
|
-
|
|
380
|
-
|
|
546
|
+
stateMutability: "view",
|
|
547
|
+
type: "function",
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
inputs: [
|
|
381
551
|
{
|
|
382
552
|
internalType: "uint256",
|
|
383
|
-
name: "
|
|
553
|
+
name: "reserveId",
|
|
384
554
|
type: "uint256",
|
|
385
555
|
},
|
|
556
|
+
],
|
|
557
|
+
name: "getReserveSuppliedShares",
|
|
558
|
+
outputs: [
|
|
386
559
|
{
|
|
387
560
|
internalType: "uint256",
|
|
388
|
-
name: "
|
|
561
|
+
name: "",
|
|
389
562
|
type: "uint256",
|
|
390
563
|
},
|
|
391
564
|
],
|
|
@@ -400,49 +573,12 @@ const _abi = [
|
|
|
400
573
|
type: "uint256",
|
|
401
574
|
},
|
|
402
575
|
],
|
|
403
|
-
name: "
|
|
576
|
+
name: "getReserveTotalDebt",
|
|
404
577
|
outputs: [
|
|
405
578
|
{
|
|
406
|
-
|
|
407
|
-
{
|
|
408
|
-
internalType: "address",
|
|
409
|
-
name: "underlying",
|
|
410
|
-
type: "address",
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
internalType: "contract IHubBase",
|
|
414
|
-
name: "hub",
|
|
415
|
-
type: "address",
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
internalType: "uint16",
|
|
419
|
-
name: "assetId",
|
|
420
|
-
type: "uint16",
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
internalType: "uint8",
|
|
424
|
-
name: "decimals",
|
|
425
|
-
type: "uint8",
|
|
426
|
-
},
|
|
427
|
-
{
|
|
428
|
-
internalType: "uint24",
|
|
429
|
-
name: "dynamicConfigKey",
|
|
430
|
-
type: "uint24",
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
internalType: "uint24",
|
|
434
|
-
name: "collateralRisk",
|
|
435
|
-
type: "uint24",
|
|
436
|
-
},
|
|
437
|
-
{
|
|
438
|
-
internalType: "uint8",
|
|
439
|
-
name: "flags",
|
|
440
|
-
type: "uint8",
|
|
441
|
-
},
|
|
442
|
-
],
|
|
443
|
-
internalType: "struct ISpoke.Reserve",
|
|
579
|
+
internalType: "uint256",
|
|
444
580
|
name: "",
|
|
445
|
-
type: "
|
|
581
|
+
type: "uint256",
|
|
446
582
|
},
|
|
447
583
|
],
|
|
448
584
|
stateMutability: "view",
|
|
@@ -482,7 +618,7 @@ const _abi = [
|
|
|
482
618
|
},
|
|
483
619
|
{
|
|
484
620
|
internalType: "uint256",
|
|
485
|
-
name: "
|
|
621
|
+
name: "totalDebtValueRay",
|
|
486
622
|
type: "uint256",
|
|
487
623
|
},
|
|
488
624
|
{
|
|
@@ -492,7 +628,7 @@ const _abi = [
|
|
|
492
628
|
},
|
|
493
629
|
{
|
|
494
630
|
internalType: "uint256",
|
|
495
|
-
name: "
|
|
631
|
+
name: "borrowCount",
|
|
496
632
|
type: "uint256",
|
|
497
633
|
},
|
|
498
634
|
],
|
|
@@ -511,14 +647,24 @@ const _abi = [
|
|
|
511
647
|
name: "reserveId",
|
|
512
648
|
type: "uint256",
|
|
513
649
|
},
|
|
650
|
+
{
|
|
651
|
+
internalType: "address",
|
|
652
|
+
name: "user",
|
|
653
|
+
type: "address",
|
|
654
|
+
},
|
|
514
655
|
],
|
|
515
|
-
name: "
|
|
656
|
+
name: "getUserDebt",
|
|
516
657
|
outputs: [
|
|
517
658
|
{
|
|
518
659
|
internalType: "uint256",
|
|
519
660
|
name: "",
|
|
520
661
|
type: "uint256",
|
|
521
662
|
},
|
|
663
|
+
{
|
|
664
|
+
internalType: "uint256",
|
|
665
|
+
name: "",
|
|
666
|
+
type: "uint256",
|
|
667
|
+
},
|
|
522
668
|
],
|
|
523
669
|
stateMutability: "view",
|
|
524
670
|
type: "function",
|
|
@@ -530,17 +676,68 @@ const _abi = [
|
|
|
530
676
|
name: "reserveId",
|
|
531
677
|
type: "uint256",
|
|
532
678
|
},
|
|
679
|
+
{
|
|
680
|
+
internalType: "address",
|
|
681
|
+
name: "user",
|
|
682
|
+
type: "address",
|
|
683
|
+
},
|
|
533
684
|
],
|
|
534
|
-
name: "
|
|
685
|
+
name: "getUserPosition",
|
|
535
686
|
outputs: [
|
|
687
|
+
{
|
|
688
|
+
components: [
|
|
689
|
+
{
|
|
690
|
+
internalType: "uint120",
|
|
691
|
+
name: "drawnShares",
|
|
692
|
+
type: "uint120",
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
internalType: "uint120",
|
|
696
|
+
name: "premiumShares",
|
|
697
|
+
type: "uint120",
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
internalType: "int200",
|
|
701
|
+
name: "premiumOffsetRay",
|
|
702
|
+
type: "int200",
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
internalType: "uint120",
|
|
706
|
+
name: "suppliedShares",
|
|
707
|
+
type: "uint120",
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
internalType: "uint32",
|
|
711
|
+
name: "dynamicConfigKey",
|
|
712
|
+
type: "uint32",
|
|
713
|
+
},
|
|
714
|
+
],
|
|
715
|
+
internalType: "struct ISpoke.UserPosition",
|
|
716
|
+
name: "",
|
|
717
|
+
type: "tuple",
|
|
718
|
+
},
|
|
719
|
+
],
|
|
720
|
+
stateMutability: "view",
|
|
721
|
+
type: "function",
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
inputs: [
|
|
536
725
|
{
|
|
537
726
|
internalType: "uint256",
|
|
538
|
-
name: "
|
|
727
|
+
name: "reserveId",
|
|
539
728
|
type: "uint256",
|
|
540
729
|
},
|
|
730
|
+
{
|
|
731
|
+
internalType: "address",
|
|
732
|
+
name: "user",
|
|
733
|
+
type: "address",
|
|
734
|
+
},
|
|
735
|
+
],
|
|
736
|
+
name: "getUserSuppliedAssets",
|
|
737
|
+
outputs: [
|
|
541
738
|
{
|
|
542
739
|
internalType: "uint256",
|
|
543
|
-
name: "
|
|
740
|
+
name: "",
|
|
544
741
|
type: "uint256",
|
|
545
742
|
},
|
|
546
743
|
],
|
|
@@ -549,18 +746,42 @@ const _abi = [
|
|
|
549
746
|
},
|
|
550
747
|
{
|
|
551
748
|
inputs: [
|
|
749
|
+
{
|
|
750
|
+
internalType: "uint256",
|
|
751
|
+
name: "reserveId",
|
|
752
|
+
type: "uint256",
|
|
753
|
+
},
|
|
552
754
|
{
|
|
553
755
|
internalType: "address",
|
|
554
|
-
name: "
|
|
756
|
+
name: "user",
|
|
555
757
|
type: "address",
|
|
556
758
|
},
|
|
759
|
+
],
|
|
760
|
+
name: "getUserSuppliedShares",
|
|
761
|
+
outputs: [
|
|
557
762
|
{
|
|
558
763
|
internalType: "uint256",
|
|
559
|
-
name: "
|
|
764
|
+
name: "",
|
|
560
765
|
type: "uint256",
|
|
561
766
|
},
|
|
562
767
|
],
|
|
563
|
-
|
|
768
|
+
stateMutability: "view",
|
|
769
|
+
type: "function",
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
inputs: [
|
|
773
|
+
{
|
|
774
|
+
internalType: "uint256",
|
|
775
|
+
name: "reserveId",
|
|
776
|
+
type: "uint256",
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
internalType: "address",
|
|
780
|
+
name: "user",
|
|
781
|
+
type: "address",
|
|
782
|
+
},
|
|
783
|
+
],
|
|
784
|
+
name: "getUserTotalDebt",
|
|
564
785
|
outputs: [
|
|
565
786
|
{
|
|
566
787
|
internalType: "uint256",
|