@venusprotocol/venus-periphery 1.2.0-slim-dev.5 → 1.2.0-slim-dev.6

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,607 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IEBrake",
4
+ "sourceName": "contracts/EmergencyBrake/IEBrake.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "uint256",
10
+ "name": "expected",
11
+ "type": "uint256"
12
+ },
13
+ {
14
+ "internalType": "uint256",
15
+ "name": "actual",
16
+ "type": "uint256"
17
+ }
18
+ ],
19
+ "name": "ArrayLengthMismatch",
20
+ "type": "error"
21
+ },
22
+ {
23
+ "inputs": [
24
+ {
25
+ "internalType": "address",
26
+ "name": "market",
27
+ "type": "address"
28
+ },
29
+ {
30
+ "internalType": "uint96",
31
+ "name": "poolId",
32
+ "type": "uint96"
33
+ },
34
+ {
35
+ "internalType": "uint256",
36
+ "name": "currentCF",
37
+ "type": "uint256"
38
+ },
39
+ {
40
+ "internalType": "uint256",
41
+ "name": "requestedCF",
42
+ "type": "uint256"
43
+ }
44
+ ],
45
+ "name": "CFExceedsCurrent",
46
+ "type": "error"
47
+ },
48
+ {
49
+ "inputs": [
50
+ {
51
+ "internalType": "address",
52
+ "name": "market",
53
+ "type": "address"
54
+ },
55
+ {
56
+ "internalType": "uint256",
57
+ "name": "currentCap",
58
+ "type": "uint256"
59
+ },
60
+ {
61
+ "internalType": "uint256",
62
+ "name": "requestedCap",
63
+ "type": "uint256"
64
+ }
65
+ ],
66
+ "name": "CapExceedsCurrent",
67
+ "type": "error"
68
+ },
69
+ {
70
+ "inputs": [],
71
+ "name": "EmptyArray",
72
+ "type": "error"
73
+ },
74
+ {
75
+ "inputs": [
76
+ {
77
+ "internalType": "enum IComptroller.Action",
78
+ "name": "action",
79
+ "type": "uint8"
80
+ }
81
+ ],
82
+ "name": "ForbiddenAction",
83
+ "type": "error"
84
+ },
85
+ {
86
+ "inputs": [
87
+ {
88
+ "internalType": "uint96",
89
+ "name": "poolId",
90
+ "type": "uint96"
91
+ },
92
+ {
93
+ "internalType": "address",
94
+ "name": "market",
95
+ "type": "address"
96
+ }
97
+ ],
98
+ "name": "MarketNotListed",
99
+ "type": "error"
100
+ },
101
+ {
102
+ "inputs": [],
103
+ "name": "NotSupportedOnIsolatedPool",
104
+ "type": "error"
105
+ },
106
+ {
107
+ "inputs": [
108
+ {
109
+ "internalType": "uint256",
110
+ "name": "errorCode",
111
+ "type": "uint256"
112
+ }
113
+ ],
114
+ "name": "SetCollateralFactorFailed",
115
+ "type": "error"
116
+ },
117
+ {
118
+ "inputs": [],
119
+ "name": "ZeroAddress",
120
+ "type": "error"
121
+ },
122
+ {
123
+ "anonymous": false,
124
+ "inputs": [
125
+ {
126
+ "indexed": true,
127
+ "internalType": "address",
128
+ "name": "caller",
129
+ "type": "address"
130
+ },
131
+ {
132
+ "indexed": true,
133
+ "internalType": "address",
134
+ "name": "market",
135
+ "type": "address"
136
+ },
137
+ {
138
+ "indexed": false,
139
+ "internalType": "enum IComptroller.Action",
140
+ "name": "action",
141
+ "type": "uint8"
142
+ }
143
+ ],
144
+ "name": "ActionPaused",
145
+ "type": "event"
146
+ },
147
+ {
148
+ "anonymous": false,
149
+ "inputs": [
150
+ {
151
+ "indexed": true,
152
+ "internalType": "address",
153
+ "name": "caller",
154
+ "type": "address"
155
+ },
156
+ {
157
+ "indexed": false,
158
+ "internalType": "address[]",
159
+ "name": "markets",
160
+ "type": "address[]"
161
+ },
162
+ {
163
+ "indexed": false,
164
+ "internalType": "enum IComptroller.Action[]",
165
+ "name": "actions",
166
+ "type": "uint8[]"
167
+ }
168
+ ],
169
+ "name": "ActionsPaused",
170
+ "type": "event"
171
+ },
172
+ {
173
+ "anonymous": false,
174
+ "inputs": [
175
+ {
176
+ "indexed": true,
177
+ "internalType": "address",
178
+ "name": "market",
179
+ "type": "address"
180
+ }
181
+ ],
182
+ "name": "BorrowCapSnapshotReset",
183
+ "type": "event"
184
+ },
185
+ {
186
+ "anonymous": false,
187
+ "inputs": [
188
+ {
189
+ "indexed": true,
190
+ "internalType": "address",
191
+ "name": "caller",
192
+ "type": "address"
193
+ },
194
+ {
195
+ "indexed": false,
196
+ "internalType": "address[]",
197
+ "name": "markets",
198
+ "type": "address[]"
199
+ },
200
+ {
201
+ "indexed": false,
202
+ "internalType": "uint256[]",
203
+ "name": "newBorrowCaps",
204
+ "type": "uint256[]"
205
+ }
206
+ ],
207
+ "name": "BorrowCapsDecreased",
208
+ "type": "event"
209
+ },
210
+ {
211
+ "anonymous": false,
212
+ "inputs": [
213
+ {
214
+ "indexed": true,
215
+ "internalType": "address",
216
+ "name": "market",
217
+ "type": "address"
218
+ }
219
+ ],
220
+ "name": "CFSnapshotReset",
221
+ "type": "event"
222
+ },
223
+ {
224
+ "anonymous": false,
225
+ "inputs": [
226
+ {
227
+ "indexed": true,
228
+ "internalType": "address",
229
+ "name": "caller",
230
+ "type": "address"
231
+ },
232
+ {
233
+ "indexed": true,
234
+ "internalType": "address",
235
+ "name": "market",
236
+ "type": "address"
237
+ },
238
+ {
239
+ "indexed": true,
240
+ "internalType": "uint96",
241
+ "name": "poolId",
242
+ "type": "uint96"
243
+ },
244
+ {
245
+ "indexed": false,
246
+ "internalType": "uint256",
247
+ "name": "newCF",
248
+ "type": "uint256"
249
+ }
250
+ ],
251
+ "name": "CollateralFactorDecreased",
252
+ "type": "event"
253
+ },
254
+ {
255
+ "anonymous": false,
256
+ "inputs": [
257
+ {
258
+ "indexed": true,
259
+ "internalType": "address",
260
+ "name": "caller",
261
+ "type": "address"
262
+ },
263
+ {
264
+ "indexed": true,
265
+ "internalType": "address",
266
+ "name": "account",
267
+ "type": "address"
268
+ }
269
+ ],
270
+ "name": "FlashLoanAccessRevoked",
271
+ "type": "event"
272
+ },
273
+ {
274
+ "anonymous": false,
275
+ "inputs": [
276
+ {
277
+ "indexed": true,
278
+ "internalType": "address",
279
+ "name": "caller",
280
+ "type": "address"
281
+ }
282
+ ],
283
+ "name": "FlashLoanPaused",
284
+ "type": "event"
285
+ },
286
+ {
287
+ "anonymous": false,
288
+ "inputs": [
289
+ {
290
+ "indexed": true,
291
+ "internalType": "address",
292
+ "name": "caller",
293
+ "type": "address"
294
+ },
295
+ {
296
+ "indexed": true,
297
+ "internalType": "uint96",
298
+ "name": "poolId",
299
+ "type": "uint96"
300
+ },
301
+ {
302
+ "indexed": true,
303
+ "internalType": "address",
304
+ "name": "market",
305
+ "type": "address"
306
+ }
307
+ ],
308
+ "name": "PoolBorrowDisabled",
309
+ "type": "event"
310
+ },
311
+ {
312
+ "anonymous": false,
313
+ "inputs": [
314
+ {
315
+ "indexed": true,
316
+ "internalType": "address",
317
+ "name": "market",
318
+ "type": "address"
319
+ }
320
+ ],
321
+ "name": "SupplyCapSnapshotReset",
322
+ "type": "event"
323
+ },
324
+ {
325
+ "anonymous": false,
326
+ "inputs": [
327
+ {
328
+ "indexed": true,
329
+ "internalType": "address",
330
+ "name": "caller",
331
+ "type": "address"
332
+ },
333
+ {
334
+ "indexed": false,
335
+ "internalType": "address[]",
336
+ "name": "markets",
337
+ "type": "address[]"
338
+ },
339
+ {
340
+ "indexed": false,
341
+ "internalType": "uint256[]",
342
+ "name": "newSupplyCaps",
343
+ "type": "uint256[]"
344
+ }
345
+ ],
346
+ "name": "SupplyCapsDecreased",
347
+ "type": "event"
348
+ },
349
+ {
350
+ "inputs": [
351
+ {
352
+ "internalType": "address",
353
+ "name": "market",
354
+ "type": "address"
355
+ },
356
+ {
357
+ "internalType": "uint96",
358
+ "name": "poolId",
359
+ "type": "uint96"
360
+ },
361
+ {
362
+ "internalType": "uint256",
363
+ "name": "newCF",
364
+ "type": "uint256"
365
+ }
366
+ ],
367
+ "name": "decreaseCF",
368
+ "outputs": [],
369
+ "stateMutability": "nonpayable",
370
+ "type": "function"
371
+ },
372
+ {
373
+ "inputs": [
374
+ {
375
+ "internalType": "address",
376
+ "name": "market",
377
+ "type": "address"
378
+ },
379
+ {
380
+ "internalType": "uint256",
381
+ "name": "newCF",
382
+ "type": "uint256"
383
+ }
384
+ ],
385
+ "name": "decreaseCF",
386
+ "outputs": [],
387
+ "stateMutability": "nonpayable",
388
+ "type": "function"
389
+ },
390
+ {
391
+ "inputs": [
392
+ {
393
+ "internalType": "uint96",
394
+ "name": "poolId",
395
+ "type": "uint96"
396
+ },
397
+ {
398
+ "internalType": "address",
399
+ "name": "market",
400
+ "type": "address"
401
+ }
402
+ ],
403
+ "name": "disablePoolBorrow",
404
+ "outputs": [],
405
+ "stateMutability": "nonpayable",
406
+ "type": "function"
407
+ },
408
+ {
409
+ "inputs": [
410
+ {
411
+ "internalType": "address",
412
+ "name": "market",
413
+ "type": "address"
414
+ },
415
+ {
416
+ "internalType": "uint96",
417
+ "name": "poolId",
418
+ "type": "uint96"
419
+ }
420
+ ],
421
+ "name": "getMarketCFSnapshot",
422
+ "outputs": [
423
+ {
424
+ "internalType": "uint256",
425
+ "name": "cf",
426
+ "type": "uint256"
427
+ },
428
+ {
429
+ "internalType": "uint256",
430
+ "name": "lt",
431
+ "type": "uint256"
432
+ }
433
+ ],
434
+ "stateMutability": "view",
435
+ "type": "function"
436
+ },
437
+ {
438
+ "inputs": [
439
+ {
440
+ "internalType": "address[]",
441
+ "name": "markets",
442
+ "type": "address[]"
443
+ },
444
+ {
445
+ "internalType": "enum IComptroller.Action[]",
446
+ "name": "actions",
447
+ "type": "uint8[]"
448
+ }
449
+ ],
450
+ "name": "pauseActions",
451
+ "outputs": [],
452
+ "stateMutability": "nonpayable",
453
+ "type": "function"
454
+ },
455
+ {
456
+ "inputs": [
457
+ {
458
+ "internalType": "address",
459
+ "name": "market",
460
+ "type": "address"
461
+ }
462
+ ],
463
+ "name": "pauseBorrow",
464
+ "outputs": [],
465
+ "stateMutability": "nonpayable",
466
+ "type": "function"
467
+ },
468
+ {
469
+ "inputs": [],
470
+ "name": "pauseFlashLoan",
471
+ "outputs": [],
472
+ "stateMutability": "nonpayable",
473
+ "type": "function"
474
+ },
475
+ {
476
+ "inputs": [
477
+ {
478
+ "internalType": "address",
479
+ "name": "market",
480
+ "type": "address"
481
+ }
482
+ ],
483
+ "name": "pauseRedeem",
484
+ "outputs": [],
485
+ "stateMutability": "nonpayable",
486
+ "type": "function"
487
+ },
488
+ {
489
+ "inputs": [
490
+ {
491
+ "internalType": "address",
492
+ "name": "market",
493
+ "type": "address"
494
+ }
495
+ ],
496
+ "name": "pauseSupply",
497
+ "outputs": [],
498
+ "stateMutability": "nonpayable",
499
+ "type": "function"
500
+ },
501
+ {
502
+ "inputs": [
503
+ {
504
+ "internalType": "address",
505
+ "name": "market",
506
+ "type": "address"
507
+ }
508
+ ],
509
+ "name": "pauseTransfer",
510
+ "outputs": [],
511
+ "stateMutability": "nonpayable",
512
+ "type": "function"
513
+ },
514
+ {
515
+ "inputs": [
516
+ {
517
+ "internalType": "address",
518
+ "name": "market",
519
+ "type": "address"
520
+ }
521
+ ],
522
+ "name": "resetBorrowCapSnapshot",
523
+ "outputs": [],
524
+ "stateMutability": "nonpayable",
525
+ "type": "function"
526
+ },
527
+ {
528
+ "inputs": [
529
+ {
530
+ "internalType": "address",
531
+ "name": "market",
532
+ "type": "address"
533
+ }
534
+ ],
535
+ "name": "resetCFSnapshot",
536
+ "outputs": [],
537
+ "stateMutability": "nonpayable",
538
+ "type": "function"
539
+ },
540
+ {
541
+ "inputs": [
542
+ {
543
+ "internalType": "address",
544
+ "name": "market",
545
+ "type": "address"
546
+ }
547
+ ],
548
+ "name": "resetSupplyCapSnapshot",
549
+ "outputs": [],
550
+ "stateMutability": "nonpayable",
551
+ "type": "function"
552
+ },
553
+ {
554
+ "inputs": [
555
+ {
556
+ "internalType": "address",
557
+ "name": "account",
558
+ "type": "address"
559
+ }
560
+ ],
561
+ "name": "revokeFlashLoanAccess",
562
+ "outputs": [],
563
+ "stateMutability": "nonpayable",
564
+ "type": "function"
565
+ },
566
+ {
567
+ "inputs": [
568
+ {
569
+ "internalType": "address[]",
570
+ "name": "markets",
571
+ "type": "address[]"
572
+ },
573
+ {
574
+ "internalType": "uint256[]",
575
+ "name": "newBorrowCaps",
576
+ "type": "uint256[]"
577
+ }
578
+ ],
579
+ "name": "setMarketBorrowCaps",
580
+ "outputs": [],
581
+ "stateMutability": "nonpayable",
582
+ "type": "function"
583
+ },
584
+ {
585
+ "inputs": [
586
+ {
587
+ "internalType": "address[]",
588
+ "name": "markets",
589
+ "type": "address[]"
590
+ },
591
+ {
592
+ "internalType": "uint256[]",
593
+ "name": "newSupplyCaps",
594
+ "type": "uint256[]"
595
+ }
596
+ ],
597
+ "name": "setMarketSupplyCaps",
598
+ "outputs": [],
599
+ "stateMutability": "nonpayable",
600
+ "type": "function"
601
+ }
602
+ ],
603
+ "bytecode": "0x",
604
+ "deployedBytecode": "0x",
605
+ "linkReferences": {},
606
+ "deployedLinkReferences": {}
607
+ }
@@ -51,6 +51,25 @@
51
51
  "stateMutability": "view",
52
52
  "type": "function"
53
53
  },
54
+ {
55
+ "inputs": [
56
+ {
57
+ "internalType": "address",
58
+ "name": "vToken",
59
+ "type": "address"
60
+ }
61
+ ],
62
+ "name": "borrowCaps",
63
+ "outputs": [
64
+ {
65
+ "internalType": "uint256",
66
+ "name": "",
67
+ "type": "uint256"
68
+ }
69
+ ],
70
+ "stateMutability": "view",
71
+ "type": "function"
72
+ },
54
73
  {
55
74
  "inputs": [
56
75
  {
@@ -256,7 +275,7 @@
256
275
  "inputs": [
257
276
  {
258
277
  "internalType": "address",
259
- "name": "",
278
+ "name": "vToken",
260
279
  "type": "address"
261
280
  }
262
281
  ],
@@ -264,17 +283,17 @@
264
283
  "outputs": [
265
284
  {
266
285
  "internalType": "bool",
267
- "name": "",
286
+ "name": "isListed",
268
287
  "type": "bool"
269
288
  },
270
289
  {
271
290
  "internalType": "uint256",
272
- "name": "",
291
+ "name": "collateralFactorMantissa",
273
292
  "type": "uint256"
274
293
  },
275
294
  {
276
295
  "internalType": "bool",
277
- "name": "",
296
+ "name": "isComped",
278
297
  "type": "bool"
279
298
  }
280
299
  ],
@@ -353,6 +372,25 @@
353
372
  "stateMutability": "nonpayable",
354
373
  "type": "function"
355
374
  },
375
+ {
376
+ "inputs": [
377
+ {
378
+ "internalType": "address",
379
+ "name": "vToken",
380
+ "type": "address"
381
+ }
382
+ ],
383
+ "name": "supplyCaps",
384
+ "outputs": [
385
+ {
386
+ "internalType": "uint256",
387
+ "name": "",
388
+ "type": "uint256"
389
+ }
390
+ ],
391
+ "stateMutability": "view",
392
+ "type": "function"
393
+ },
356
394
  {
357
395
  "inputs": [],
358
396
  "name": "treasuryPercent",