@venusprotocol/venus-periphery 1.2.0-slim-dev.8 → 1.2.0-slim-dev.10

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,327 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IExecutor",
4
+ "sourceName": "contracts/Executor/IExecutor.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "uint256",
10
+ "name": "adjustedCap",
11
+ "type": "uint256"
12
+ },
13
+ {
14
+ "internalType": "uint256",
15
+ "name": "minCap",
16
+ "type": "uint256"
17
+ }
18
+ ],
19
+ "name": "CapBelowMinimum",
20
+ "type": "error"
21
+ },
22
+ {
23
+ "inputs": [],
24
+ "name": "CapNotBreached",
25
+ "type": "error"
26
+ },
27
+ {
28
+ "inputs": [
29
+ {
30
+ "internalType": "address",
31
+ "name": "market",
32
+ "type": "address"
33
+ }
34
+ ],
35
+ "name": "MarketDisabled",
36
+ "type": "error"
37
+ },
38
+ {
39
+ "inputs": [
40
+ {
41
+ "internalType": "address",
42
+ "name": "market",
43
+ "type": "address"
44
+ }
45
+ ],
46
+ "name": "MarketNotConfigured",
47
+ "type": "error"
48
+ },
49
+ {
50
+ "inputs": [
51
+ {
52
+ "internalType": "address",
53
+ "name": "market",
54
+ "type": "address"
55
+ }
56
+ ],
57
+ "name": "MarketNotListed",
58
+ "type": "error"
59
+ },
60
+ {
61
+ "inputs": [],
62
+ "name": "ZeroAddress",
63
+ "type": "error"
64
+ },
65
+ {
66
+ "anonymous": false,
67
+ "inputs": [
68
+ {
69
+ "indexed": true,
70
+ "internalType": "address",
71
+ "name": "caller",
72
+ "type": "address"
73
+ },
74
+ {
75
+ "indexed": true,
76
+ "internalType": "address",
77
+ "name": "market",
78
+ "type": "address"
79
+ }
80
+ ],
81
+ "name": "BorrowCapExceeding",
82
+ "type": "event"
83
+ },
84
+ {
85
+ "anonymous": false,
86
+ "inputs": [
87
+ {
88
+ "indexed": true,
89
+ "internalType": "address",
90
+ "name": "caller",
91
+ "type": "address"
92
+ },
93
+ {
94
+ "indexed": true,
95
+ "internalType": "address",
96
+ "name": "market",
97
+ "type": "address"
98
+ },
99
+ {
100
+ "indexed": false,
101
+ "internalType": "enum IExecutor.CapType",
102
+ "name": "capType",
103
+ "type": "uint8"
104
+ },
105
+ {
106
+ "indexed": false,
107
+ "internalType": "uint256",
108
+ "name": "oldCap",
109
+ "type": "uint256"
110
+ },
111
+ {
112
+ "indexed": false,
113
+ "internalType": "uint256",
114
+ "name": "newCap",
115
+ "type": "uint256"
116
+ }
117
+ ],
118
+ "name": "CapAdjusted",
119
+ "type": "event"
120
+ },
121
+ {
122
+ "anonymous": false,
123
+ "inputs": [
124
+ {
125
+ "indexed": true,
126
+ "internalType": "address",
127
+ "name": "caller",
128
+ "type": "address"
129
+ },
130
+ {
131
+ "indexed": true,
132
+ "internalType": "address",
133
+ "name": "market",
134
+ "type": "address"
135
+ }
136
+ ],
137
+ "name": "HaltedWithoutCapCheck",
138
+ "type": "event"
139
+ },
140
+ {
141
+ "anonymous": false,
142
+ "inputs": [
143
+ {
144
+ "indexed": true,
145
+ "internalType": "address",
146
+ "name": "caller",
147
+ "type": "address"
148
+ },
149
+ {
150
+ "indexed": true,
151
+ "internalType": "address",
152
+ "name": "market",
153
+ "type": "address"
154
+ },
155
+ {
156
+ "indexed": false,
157
+ "internalType": "uint256",
158
+ "name": "newLTV",
159
+ "type": "uint256"
160
+ }
161
+ ],
162
+ "name": "LTVAdjusted",
163
+ "type": "event"
164
+ },
165
+ {
166
+ "anonymous": false,
167
+ "inputs": [
168
+ {
169
+ "indexed": true,
170
+ "internalType": "address",
171
+ "name": "market",
172
+ "type": "address"
173
+ },
174
+ {
175
+ "components": [
176
+ {
177
+ "internalType": "uint256",
178
+ "name": "minBorrowCap",
179
+ "type": "uint256"
180
+ },
181
+ {
182
+ "internalType": "uint256",
183
+ "name": "minSupplyCap",
184
+ "type": "uint256"
185
+ },
186
+ {
187
+ "internalType": "bool",
188
+ "name": "enabled",
189
+ "type": "bool"
190
+ }
191
+ ],
192
+ "indexed": false,
193
+ "internalType": "struct IExecutor.MarketConfig",
194
+ "name": "config",
195
+ "type": "tuple"
196
+ }
197
+ ],
198
+ "name": "MarketConfigSet",
199
+ "type": "event"
200
+ },
201
+ {
202
+ "anonymous": false,
203
+ "inputs": [
204
+ {
205
+ "indexed": true,
206
+ "internalType": "address",
207
+ "name": "caller",
208
+ "type": "address"
209
+ },
210
+ {
211
+ "indexed": true,
212
+ "internalType": "address",
213
+ "name": "market",
214
+ "type": "address"
215
+ }
216
+ ],
217
+ "name": "SupplyCapExceeding",
218
+ "type": "event"
219
+ },
220
+ {
221
+ "inputs": [
222
+ {
223
+ "internalType": "address",
224
+ "name": "market",
225
+ "type": "address"
226
+ }
227
+ ],
228
+ "name": "handleBorrowCapExceeding",
229
+ "outputs": [],
230
+ "stateMutability": "nonpayable",
231
+ "type": "function"
232
+ },
233
+ {
234
+ "inputs": [
235
+ {
236
+ "internalType": "address",
237
+ "name": "market",
238
+ "type": "address"
239
+ },
240
+ {
241
+ "internalType": "enum IExecutor.CapType",
242
+ "name": "capType",
243
+ "type": "uint8"
244
+ },
245
+ {
246
+ "internalType": "uint256",
247
+ "name": "adjustedCap",
248
+ "type": "uint256"
249
+ }
250
+ ],
251
+ "name": "handleCapAdjust",
252
+ "outputs": [],
253
+ "stateMutability": "nonpayable",
254
+ "type": "function"
255
+ },
256
+ {
257
+ "inputs": [
258
+ {
259
+ "internalType": "address",
260
+ "name": "market",
261
+ "type": "address"
262
+ },
263
+ {
264
+ "internalType": "uint256",
265
+ "name": "adjustedLTV",
266
+ "type": "uint256"
267
+ }
268
+ ],
269
+ "name": "handleLTVAdjust",
270
+ "outputs": [],
271
+ "stateMutability": "nonpayable",
272
+ "type": "function"
273
+ },
274
+ {
275
+ "inputs": [
276
+ {
277
+ "internalType": "address",
278
+ "name": "market",
279
+ "type": "address"
280
+ }
281
+ ],
282
+ "name": "handleSupplyCapExceeding",
283
+ "outputs": [],
284
+ "stateMutability": "nonpayable",
285
+ "type": "function"
286
+ },
287
+ {
288
+ "inputs": [
289
+ {
290
+ "internalType": "address",
291
+ "name": "market",
292
+ "type": "address"
293
+ },
294
+ {
295
+ "components": [
296
+ {
297
+ "internalType": "uint256",
298
+ "name": "minBorrowCap",
299
+ "type": "uint256"
300
+ },
301
+ {
302
+ "internalType": "uint256",
303
+ "name": "minSupplyCap",
304
+ "type": "uint256"
305
+ },
306
+ {
307
+ "internalType": "bool",
308
+ "name": "enabled",
309
+ "type": "bool"
310
+ }
311
+ ],
312
+ "internalType": "struct IExecutor.MarketConfig",
313
+ "name": "config",
314
+ "type": "tuple"
315
+ }
316
+ ],
317
+ "name": "setMarketConfig",
318
+ "outputs": [],
319
+ "stateMutability": "nonpayable",
320
+ "type": "function"
321
+ }
322
+ ],
323
+ "bytecode": "0x",
324
+ "deployedBytecode": "0x",
325
+ "linkReferences": {},
326
+ "deployedLinkReferences": {}
327
+ }
@@ -454,6 +454,32 @@
454
454
  "stateMutability": "nonpayable",
455
455
  "type": "function"
456
456
  },
457
+ {
458
+ "inputs": [],
459
+ "name": "totalBorrows",
460
+ "outputs": [
461
+ {
462
+ "internalType": "uint256",
463
+ "name": "",
464
+ "type": "uint256"
465
+ }
466
+ ],
467
+ "stateMutability": "view",
468
+ "type": "function"
469
+ },
470
+ {
471
+ "inputs": [],
472
+ "name": "totalBorrowsCurrent",
473
+ "outputs": [
474
+ {
475
+ "internalType": "uint256",
476
+ "name": "",
477
+ "type": "uint256"
478
+ }
479
+ ],
480
+ "stateMutability": "nonpayable",
481
+ "type": "function"
482
+ },
457
483
  {
458
484
  "inputs": [],
459
485
  "name": "totalSupply",
@@ -416,6 +416,32 @@
416
416
  "stateMutability": "nonpayable",
417
417
  "type": "function"
418
418
  },
419
+ {
420
+ "inputs": [],
421
+ "name": "totalBorrows",
422
+ "outputs": [
423
+ {
424
+ "internalType": "uint256",
425
+ "name": "",
426
+ "type": "uint256"
427
+ }
428
+ ],
429
+ "stateMutability": "view",
430
+ "type": "function"
431
+ },
432
+ {
433
+ "inputs": [],
434
+ "name": "totalBorrowsCurrent",
435
+ "outputs": [
436
+ {
437
+ "internalType": "uint256",
438
+ "name": "",
439
+ "type": "uint256"
440
+ }
441
+ ],
442
+ "stateMutability": "nonpayable",
443
+ "type": "function"
444
+ },
419
445
  {
420
446
  "inputs": [],
421
447
  "name": "totalSupply",
@@ -348,6 +348,31 @@
348
348
  "name": "SingleAssetLeverageExited",
349
349
  "type": "event"
350
350
  },
351
+ {
352
+ "anonymous": false,
353
+ "inputs": [
354
+ {
355
+ "indexed": true,
356
+ "internalType": "address",
357
+ "name": "token",
358
+ "type": "address"
359
+ },
360
+ {
361
+ "indexed": true,
362
+ "internalType": "address",
363
+ "name": "to",
364
+ "type": "address"
365
+ },
366
+ {
367
+ "indexed": false,
368
+ "internalType": "uint256",
369
+ "name": "amount",
370
+ "type": "uint256"
371
+ }
372
+ ],
373
+ "name": "TokensSwept",
374
+ "type": "event"
375
+ },
351
376
  {
352
377
  "inputs": [
353
378
  {
@@ -502,6 +527,19 @@
502
527
  "outputs": [],
503
528
  "stateMutability": "nonpayable",
504
529
  "type": "function"
530
+ },
531
+ {
532
+ "inputs": [
533
+ {
534
+ "internalType": "address",
535
+ "name": "token",
536
+ "type": "address"
537
+ }
538
+ ],
539
+ "name": "sweepToken",
540
+ "outputs": [],
541
+ "stateMutability": "nonpayable",
542
+ "type": "function"
505
543
  }
506
544
  ],
507
545
  "bytecode": "0x",