@venusprotocol/venus-periphery 1.2.0-slim-dev.4 → 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.
Files changed (27) hide show
  1. package/artifacts/contracts/DeviationSentinel/DeviationSentinel.sol/DeviationSentinel.json +15 -128
  2. package/artifacts/contracts/DeviationSentinel/Oracles/PancakeSwapOracle.sol/PancakeSwapOracle.json +2 -2
  3. package/artifacts/contracts/DeviationSentinel/Oracles/SentinelOracle.sol/SentinelOracle.json +2 -2
  4. package/artifacts/contracts/DeviationSentinel/Oracles/UniswapOracle.sol/UniswapOracle.json +2 -2
  5. package/artifacts/contracts/EmergencyBrake/EBrake.sol/EBrake.json +866 -0
  6. package/artifacts/contracts/EmergencyBrake/IEBrake.sol/IEBrake.json +607 -0
  7. package/artifacts/contracts/Interfaces/IComptroller.sol/IComptroller.json +79 -4
  8. package/artifacts/contracts/Interfaces/ICorePoolComptroller.sol/ICorePoolComptroller.json +165 -4
  9. package/artifacts/contracts/Interfaces/IILComptroller.sol/IILComptroller.json +2 -2
  10. package/artifacts/contracts/Interfaces/IVBNB.sol/IVBNB.json +37 -0
  11. package/artifacts/contracts/Interfaces/IVToken.sol/IVToken.json +37 -0
  12. package/artifacts/contracts/LeverageManager/LeverageStrategiesManager.sol/LeverageStrategiesManager.json +2 -2
  13. package/artifacts/contracts/Libraries/FixedPoint96.sol/FixedPoint96.json +2 -2
  14. package/artifacts/contracts/Libraries/FullMath.sol/FullMath.json +2 -2
  15. package/artifacts/contracts/PositionSwapper/PositionSwapper.sol/PositionSwapper.json +2 -2
  16. package/artifacts/contracts/RelativePositionManager/IPositionAccount.sol/IPositionAccount.json +250 -0
  17. package/artifacts/contracts/RelativePositionManager/IRelativePositionManager.sol/IRelativePositionManager.json +1580 -0
  18. package/artifacts/contracts/RelativePositionManager/PositionAccount.sol/PositionAccount.json +448 -0
  19. package/artifacts/contracts/RelativePositionManager/RelativePositionManager.sol/RelativePositionManager.json +2021 -0
  20. package/artifacts/contracts/SwapHelper/SwapHelper.sol/SwapHelper.json +2 -2
  21. package/artifacts/contracts/SwapRouter/SwapRouter.sol/SwapRouter.json +2 -2
  22. package/artifacts/contracts/pendle-pt-fixed-rate-vault/PendlePTVaultAdapter.sol/PendlePTVaultAdapter.json +2 -2
  23. package/artifacts/contracts/pendle-pt-fixed-rate-vault/test/AggregatorMock.sol/AggregatorMock.json +2 -2
  24. package/artifacts/contracts/test/MockTarget.sol/MockTarget.json +2 -2
  25. package/deployments/bscmainnet_addresses.json +8 -1
  26. package/deployments/bsctestnet_addresses.json +12 -2
  27. package/package.json +1 -1
@@ -0,0 +1,250 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IPositionAccount",
4
+ "sourceName": "contracts/RelativePositionManager/IPositionAccount.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [],
8
+ "name": "COMPTROLLER",
9
+ "outputs": [
10
+ {
11
+ "internalType": "contract IComptroller",
12
+ "name": "",
13
+ "type": "address"
14
+ }
15
+ ],
16
+ "stateMutability": "view",
17
+ "type": "function"
18
+ },
19
+ {
20
+ "inputs": [],
21
+ "name": "LEVERAGE_MANAGER",
22
+ "outputs": [
23
+ {
24
+ "internalType": "address",
25
+ "name": "",
26
+ "type": "address"
27
+ }
28
+ ],
29
+ "stateMutability": "view",
30
+ "type": "function"
31
+ },
32
+ {
33
+ "inputs": [],
34
+ "name": "RELATIVE_POSITION_MANAGER",
35
+ "outputs": [
36
+ {
37
+ "internalType": "address",
38
+ "name": "",
39
+ "type": "address"
40
+ }
41
+ ],
42
+ "stateMutability": "view",
43
+ "type": "function"
44
+ },
45
+ {
46
+ "inputs": [
47
+ {
48
+ "internalType": "contract IVToken",
49
+ "name": "collateralMarket",
50
+ "type": "address"
51
+ },
52
+ {
53
+ "internalType": "uint256",
54
+ "name": "collateralAmountSeed",
55
+ "type": "uint256"
56
+ },
57
+ {
58
+ "internalType": "contract IVToken",
59
+ "name": "borrowedMarket",
60
+ "type": "address"
61
+ },
62
+ {
63
+ "internalType": "uint256",
64
+ "name": "borrowedAmountToFlashLoan",
65
+ "type": "uint256"
66
+ },
67
+ {
68
+ "internalType": "uint256",
69
+ "name": "minAmountOutAfterSwap",
70
+ "type": "uint256"
71
+ },
72
+ {
73
+ "internalType": "bytes",
74
+ "name": "swapData",
75
+ "type": "bytes"
76
+ }
77
+ ],
78
+ "name": "enterLeverage",
79
+ "outputs": [],
80
+ "stateMutability": "nonpayable",
81
+ "type": "function"
82
+ },
83
+ {
84
+ "inputs": [
85
+ {
86
+ "internalType": "contract IVToken",
87
+ "name": "collateralMarket",
88
+ "type": "address"
89
+ },
90
+ {
91
+ "internalType": "uint256",
92
+ "name": "collateralAmountToRedeemForSwap",
93
+ "type": "uint256"
94
+ },
95
+ {
96
+ "internalType": "contract IVToken",
97
+ "name": "borrowedMarket",
98
+ "type": "address"
99
+ },
100
+ {
101
+ "internalType": "uint256",
102
+ "name": "borrowedAmountToFlashLoan",
103
+ "type": "uint256"
104
+ },
105
+ {
106
+ "internalType": "uint256",
107
+ "name": "minAmountOutAfterSwap",
108
+ "type": "uint256"
109
+ },
110
+ {
111
+ "internalType": "bytes",
112
+ "name": "swapData",
113
+ "type": "bytes"
114
+ }
115
+ ],
116
+ "name": "exitLeverage",
117
+ "outputs": [],
118
+ "stateMutability": "nonpayable",
119
+ "type": "function"
120
+ },
121
+ {
122
+ "inputs": [
123
+ {
124
+ "internalType": "address",
125
+ "name": "vTokenToExit",
126
+ "type": "address"
127
+ }
128
+ ],
129
+ "name": "exitMarket",
130
+ "outputs": [],
131
+ "stateMutability": "nonpayable",
132
+ "type": "function"
133
+ },
134
+ {
135
+ "inputs": [
136
+ {
137
+ "internalType": "contract IVToken",
138
+ "name": "collateralMarket",
139
+ "type": "address"
140
+ },
141
+ {
142
+ "internalType": "uint256",
143
+ "name": "collateralAmountToFlashLoan",
144
+ "type": "uint256"
145
+ }
146
+ ],
147
+ "name": "exitSingleAssetLeverage",
148
+ "outputs": [],
149
+ "stateMutability": "nonpayable",
150
+ "type": "function"
151
+ },
152
+ {
153
+ "inputs": [
154
+ {
155
+ "internalType": "address[]",
156
+ "name": "targets",
157
+ "type": "address[]"
158
+ },
159
+ {
160
+ "internalType": "bytes[]",
161
+ "name": "data",
162
+ "type": "bytes[]"
163
+ }
164
+ ],
165
+ "name": "genericCalls",
166
+ "outputs": [],
167
+ "stateMutability": "nonpayable",
168
+ "type": "function"
169
+ },
170
+ {
171
+ "inputs": [
172
+ {
173
+ "internalType": "address",
174
+ "name": "owner_",
175
+ "type": "address"
176
+ },
177
+ {
178
+ "internalType": "address",
179
+ "name": "longVToken_",
180
+ "type": "address"
181
+ },
182
+ {
183
+ "internalType": "address",
184
+ "name": "shortVToken_",
185
+ "type": "address"
186
+ }
187
+ ],
188
+ "name": "initialize",
189
+ "outputs": [],
190
+ "stateMutability": "nonpayable",
191
+ "type": "function"
192
+ },
193
+ {
194
+ "inputs": [],
195
+ "name": "longVToken",
196
+ "outputs": [
197
+ {
198
+ "internalType": "address",
199
+ "name": "longVToken",
200
+ "type": "address"
201
+ }
202
+ ],
203
+ "stateMutability": "view",
204
+ "type": "function"
205
+ },
206
+ {
207
+ "inputs": [],
208
+ "name": "owner",
209
+ "outputs": [
210
+ {
211
+ "internalType": "address",
212
+ "name": "owner",
213
+ "type": "address"
214
+ }
215
+ ],
216
+ "stateMutability": "view",
217
+ "type": "function"
218
+ },
219
+ {
220
+ "inputs": [],
221
+ "name": "shortVToken",
222
+ "outputs": [
223
+ {
224
+ "internalType": "address",
225
+ "name": "shortVToken",
226
+ "type": "address"
227
+ }
228
+ ],
229
+ "stateMutability": "view",
230
+ "type": "function"
231
+ },
232
+ {
233
+ "inputs": [
234
+ {
235
+ "internalType": "address",
236
+ "name": "token",
237
+ "type": "address"
238
+ }
239
+ ],
240
+ "name": "transferDustToOwner",
241
+ "outputs": [],
242
+ "stateMutability": "nonpayable",
243
+ "type": "function"
244
+ }
245
+ ],
246
+ "bytecode": "0x",
247
+ "deployedBytecode": "0x",
248
+ "linkReferences": {},
249
+ "deployedLinkReferences": {}
250
+ }