@venusprotocol/venus-periphery 1.2.0-slim-dev.7 → 1.2.0-slim-dev.9

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.
Files changed (22) hide show
  1. package/artifacts/contracts/DeviationSentinel/DeviationSentinel.sol/DeviationSentinel.json +2 -2
  2. package/artifacts/contracts/DeviationSentinel/Oracles/AerodromeSlipstreamOracle.sol/AerodromeSlipstreamOracle.json +308 -0
  3. package/artifacts/contracts/DeviationSentinel/Oracles/CurveOracle.sol/CurveOracle.json +382 -0
  4. package/artifacts/contracts/EmergencyBrake/EBrake.sol/EBrake.json +2 -2
  5. package/artifacts/contracts/Executor/Executor.sol/Executor.json +580 -0
  6. package/artifacts/contracts/Executor/IExecutor.sol/IExecutor.json +308 -0
  7. package/artifacts/contracts/Interfaces/IAerodromeSlipstreamPool.sol/IAerodromeSlipstreamPool.json +75 -0
  8. package/artifacts/contracts/Interfaces/ICurveStableSwapNG.sol/ICurveStableSwapNG.json +59 -0
  9. package/artifacts/contracts/Interfaces/IVBNB.sol/IVBNB.json +26 -0
  10. package/artifacts/contracts/Interfaces/IVToken.sol/IVToken.json +26 -0
  11. package/artifacts/contracts/LeverageManager/LeverageStrategiesManager.sol/LeverageStrategiesManager.json +2 -2
  12. package/artifacts/contracts/PositionSwapper/PositionSwapper.sol/PositionSwapper.json +2 -2
  13. package/artifacts/contracts/RelativePositionManager/PositionAccount.sol/PositionAccount.json +2 -2
  14. package/artifacts/contracts/RelativePositionManager/RelativePositionManager.sol/RelativePositionManager.json +2 -2
  15. package/artifacts/contracts/SwapRouter/SwapRouter.sol/SwapRouter.json +2 -2
  16. package/deployments/arbitrumone_addresses.json +18 -1
  17. package/deployments/basemainnet_addresses.json +21 -1
  18. package/deployments/bscmainnet_addresses.json +3 -0
  19. package/deployments/bsctestnet_addresses.json +4 -1
  20. package/deployments/ethereum_addresses.json +21 -1
  21. package/deployments/sepolia_addresses.json +12 -1
  22. package/package.json +1 -1
@@ -0,0 +1,308 @@
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
+ "indexed": false,
138
+ "internalType": "uint256",
139
+ "name": "newLTV",
140
+ "type": "uint256"
141
+ }
142
+ ],
143
+ "name": "LTVAdjusted",
144
+ "type": "event"
145
+ },
146
+ {
147
+ "anonymous": false,
148
+ "inputs": [
149
+ {
150
+ "indexed": true,
151
+ "internalType": "address",
152
+ "name": "market",
153
+ "type": "address"
154
+ },
155
+ {
156
+ "components": [
157
+ {
158
+ "internalType": "uint256",
159
+ "name": "minBorrowCap",
160
+ "type": "uint256"
161
+ },
162
+ {
163
+ "internalType": "uint256",
164
+ "name": "minSupplyCap",
165
+ "type": "uint256"
166
+ },
167
+ {
168
+ "internalType": "bool",
169
+ "name": "enabled",
170
+ "type": "bool"
171
+ }
172
+ ],
173
+ "indexed": false,
174
+ "internalType": "struct IExecutor.MarketConfig",
175
+ "name": "config",
176
+ "type": "tuple"
177
+ }
178
+ ],
179
+ "name": "MarketConfigSet",
180
+ "type": "event"
181
+ },
182
+ {
183
+ "anonymous": false,
184
+ "inputs": [
185
+ {
186
+ "indexed": true,
187
+ "internalType": "address",
188
+ "name": "caller",
189
+ "type": "address"
190
+ },
191
+ {
192
+ "indexed": true,
193
+ "internalType": "address",
194
+ "name": "market",
195
+ "type": "address"
196
+ }
197
+ ],
198
+ "name": "SupplyCapExceeding",
199
+ "type": "event"
200
+ },
201
+ {
202
+ "inputs": [
203
+ {
204
+ "internalType": "address",
205
+ "name": "market",
206
+ "type": "address"
207
+ }
208
+ ],
209
+ "name": "handleBorrowCapExceeding",
210
+ "outputs": [],
211
+ "stateMutability": "nonpayable",
212
+ "type": "function"
213
+ },
214
+ {
215
+ "inputs": [
216
+ {
217
+ "internalType": "address",
218
+ "name": "market",
219
+ "type": "address"
220
+ },
221
+ {
222
+ "internalType": "enum IExecutor.CapType",
223
+ "name": "capType",
224
+ "type": "uint8"
225
+ },
226
+ {
227
+ "internalType": "uint256",
228
+ "name": "adjustedCap",
229
+ "type": "uint256"
230
+ }
231
+ ],
232
+ "name": "handleCapAdjust",
233
+ "outputs": [],
234
+ "stateMutability": "nonpayable",
235
+ "type": "function"
236
+ },
237
+ {
238
+ "inputs": [
239
+ {
240
+ "internalType": "address",
241
+ "name": "market",
242
+ "type": "address"
243
+ },
244
+ {
245
+ "internalType": "uint256",
246
+ "name": "adjustedLTV",
247
+ "type": "uint256"
248
+ }
249
+ ],
250
+ "name": "handleLTVAdjust",
251
+ "outputs": [],
252
+ "stateMutability": "nonpayable",
253
+ "type": "function"
254
+ },
255
+ {
256
+ "inputs": [
257
+ {
258
+ "internalType": "address",
259
+ "name": "market",
260
+ "type": "address"
261
+ }
262
+ ],
263
+ "name": "handleSupplyCapExceeding",
264
+ "outputs": [],
265
+ "stateMutability": "nonpayable",
266
+ "type": "function"
267
+ },
268
+ {
269
+ "inputs": [
270
+ {
271
+ "internalType": "address",
272
+ "name": "market",
273
+ "type": "address"
274
+ },
275
+ {
276
+ "components": [
277
+ {
278
+ "internalType": "uint256",
279
+ "name": "minBorrowCap",
280
+ "type": "uint256"
281
+ },
282
+ {
283
+ "internalType": "uint256",
284
+ "name": "minSupplyCap",
285
+ "type": "uint256"
286
+ },
287
+ {
288
+ "internalType": "bool",
289
+ "name": "enabled",
290
+ "type": "bool"
291
+ }
292
+ ],
293
+ "internalType": "struct IExecutor.MarketConfig",
294
+ "name": "config",
295
+ "type": "tuple"
296
+ }
297
+ ],
298
+ "name": "setMarketConfig",
299
+ "outputs": [],
300
+ "stateMutability": "nonpayable",
301
+ "type": "function"
302
+ }
303
+ ],
304
+ "bytecode": "0x",
305
+ "deployedBytecode": "0x",
306
+ "linkReferences": {},
307
+ "deployedLinkReferences": {}
308
+ }
@@ -0,0 +1,75 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IAerodromeSlipstreamPool",
4
+ "sourceName": "contracts/Interfaces/IAerodromeSlipstreamPool.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [],
8
+ "name": "slot0",
9
+ "outputs": [
10
+ {
11
+ "internalType": "uint160",
12
+ "name": "sqrtPriceX96",
13
+ "type": "uint160"
14
+ },
15
+ {
16
+ "internalType": "int24",
17
+ "name": "tick",
18
+ "type": "int24"
19
+ },
20
+ {
21
+ "internalType": "uint16",
22
+ "name": "observationIndex",
23
+ "type": "uint16"
24
+ },
25
+ {
26
+ "internalType": "uint16",
27
+ "name": "observationCardinality",
28
+ "type": "uint16"
29
+ },
30
+ {
31
+ "internalType": "uint16",
32
+ "name": "observationCardinalityNext",
33
+ "type": "uint16"
34
+ },
35
+ {
36
+ "internalType": "bool",
37
+ "name": "unlocked",
38
+ "type": "bool"
39
+ }
40
+ ],
41
+ "stateMutability": "view",
42
+ "type": "function"
43
+ },
44
+ {
45
+ "inputs": [],
46
+ "name": "token0",
47
+ "outputs": [
48
+ {
49
+ "internalType": "address",
50
+ "name": "",
51
+ "type": "address"
52
+ }
53
+ ],
54
+ "stateMutability": "view",
55
+ "type": "function"
56
+ },
57
+ {
58
+ "inputs": [],
59
+ "name": "token1",
60
+ "outputs": [
61
+ {
62
+ "internalType": "address",
63
+ "name": "",
64
+ "type": "address"
65
+ }
66
+ ],
67
+ "stateMutability": "view",
68
+ "type": "function"
69
+ }
70
+ ],
71
+ "bytecode": "0x",
72
+ "deployedBytecode": "0x",
73
+ "linkReferences": {},
74
+ "deployedLinkReferences": {}
75
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "ICurveStableSwapNG",
4
+ "sourceName": "contracts/Interfaces/ICurveStableSwapNG.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "uint256",
10
+ "name": "k",
11
+ "type": "uint256"
12
+ }
13
+ ],
14
+ "name": "coins",
15
+ "outputs": [
16
+ {
17
+ "internalType": "address",
18
+ "name": "",
19
+ "type": "address"
20
+ }
21
+ ],
22
+ "stateMutability": "view",
23
+ "type": "function"
24
+ },
25
+ {
26
+ "inputs": [
27
+ {
28
+ "internalType": "int128",
29
+ "name": "i",
30
+ "type": "int128"
31
+ },
32
+ {
33
+ "internalType": "int128",
34
+ "name": "j",
35
+ "type": "int128"
36
+ },
37
+ {
38
+ "internalType": "uint256",
39
+ "name": "dx",
40
+ "type": "uint256"
41
+ }
42
+ ],
43
+ "name": "get_dy",
44
+ "outputs": [
45
+ {
46
+ "internalType": "uint256",
47
+ "name": "",
48
+ "type": "uint256"
49
+ }
50
+ ],
51
+ "stateMutability": "view",
52
+ "type": "function"
53
+ }
54
+ ],
55
+ "bytecode": "0x",
56
+ "deployedBytecode": "0x",
57
+ "linkReferences": {},
58
+ "deployedLinkReferences": {}
59
+ }
@@ -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",