@venusprotocol/protocol-reserve 1.5.0 → 1.6.0-dev.1
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/package.json +3 -2
- package/typechain/AbstractTokenConverter.d.ts +1775 -0
- package/typechain/AccessControl.d.ts +388 -0
- package/typechain/AccessControlledV8.d.ts +341 -0
- package/typechain/BeaconProxy.d.ts +126 -0
- package/typechain/BoundValidatorInterface.d.ts +126 -0
- package/typechain/ContextUpgradeable.d.ts +92 -0
- package/typechain/ConverterNetwork.d.ts +723 -0
- package/typechain/ERC165.d.ts +116 -0
- package/typechain/ERC1967Proxy.d.ts +126 -0
- package/typechain/ERC1967Upgrade.d.ts +126 -0
- package/typechain/ERC20.d.ts +441 -0
- package/typechain/IAbstractTokenConverter.d.ts +773 -0
- package/typechain/IAccessControl.d.ts +333 -0
- package/typechain/IAccessControlManagerV8.d.ts +504 -0
- package/typechain/IBeacon.d.ts +101 -0
- package/typechain/IComptroller.d.ts +136 -0
- package/typechain/IConverterNetwork.d.ts +292 -0
- package/typechain/IERC165.d.ts +116 -0
- package/typechain/IERC1822Proxiable.d.ts +101 -0
- package/typechain/IERC1967.d.ts +126 -0
- package/typechain/IERC20.d.ts +324 -0
- package/typechain/IERC20Metadata.d.ts +363 -0
- package/typechain/IERC20PermitUpgradeable.d.ts +187 -0
- package/typechain/IERC20Upgradeable.d.ts +324 -0
- package/typechain/IIncomeDestination.d.ts +122 -0
- package/typechain/IPoolRegistry.d.ts +155 -0
- package/typechain/IProtocolShareReserve.d.ts +127 -0
- package/typechain/IRiskFund.d.ts +200 -0
- package/typechain/IRiskFundConverter.d.ts +138 -0
- package/typechain/IRiskFundGetters.d.ts +103 -0
- package/typechain/IShortfall.d.ts +110 -0
- package/typechain/ITransparentUpgradeableProxy.d.ts +256 -0
- package/typechain/IVToken.d.ts +98 -0
- package/typechain/IXVSVault.d.ts +95 -0
- package/typechain/Initializable.d.ts +92 -0
- package/typechain/MaxLoopsLimitHelper.d.ts +128 -0
- package/typechain/MaxLoopsLimitHelpersStorage.d.ts +101 -0
- package/typechain/MockACM.d.ts +615 -0
- package/typechain/MockArraySorter.d.ts +118 -0
- package/typechain/MockConverter.d.ts +1969 -0
- package/typechain/MockDeflatingToken.d.ts +486 -0
- package/typechain/MockRiskFundConverter.d.ts +2479 -0
- package/typechain/MockToken.d.ts +505 -0
- package/typechain/OracleInterface.d.ts +98 -0
- package/typechain/Ownable.d.ts +181 -0
- package/typechain/Ownable2StepUpgradeable.d.ts +261 -0
- package/typechain/OwnableUpgradeable.d.ts +193 -0
- package/typechain/PausableUpgradeable.d.ts +129 -0
- package/typechain/ProtocolShareReserve.d.ts +1214 -0
- package/typechain/Proxy.d.ts +78 -0
- package/typechain/ProxyAdmin.d.ts +357 -0
- package/typechain/ReentrancyGuardUpgradeable.d.ts +92 -0
- package/typechain/ReserveHelpersStorage.d.ts +300 -0
- package/typechain/ResilientOracle.d.ts +1034 -0
- package/typechain/ResilientOracleInterface.d.ts +192 -0
- package/typechain/RiskFundConverter.d.ts +2235 -0
- package/typechain/RiskFundV1Storage.d.ts +353 -0
- package/typechain/RiskFundV2.d.ts +965 -0
- package/typechain/RiskFundV2Storage.d.ts +372 -0
- package/typechain/SingleTokenConverter.d.ts +1944 -0
- package/typechain/TransparentUpgradeableProxy.d.ts +126 -0
- package/typechain/TwapInterface.d.ts +124 -0
- package/typechain/UpgradeableBeacon.d.ts +240 -0
- package/typechain/VBep20Interface.d.ts +379 -0
- package/typechain/XVSVaultTreasury.d.ts +515 -0
- package/typechain/common.d.ts +35 -0
- package/typechain/factories/AbstractTokenConverter__factory.ts +1297 -0
- package/typechain/factories/AccessControl__factory.ts +227 -0
- package/typechain/factories/AccessControlledV8__factory.ts +196 -0
- package/typechain/factories/BeaconProxy__factory.ts +133 -0
- package/typechain/factories/BoundValidatorInterface__factory.ts +59 -0
- package/typechain/factories/ContextUpgradeable__factory.ts +39 -0
- package/typechain/factories/ConverterNetwork__factory.ts +502 -0
- package/typechain/factories/ERC165__factory.ts +39 -0
- package/typechain/factories/ERC1967Proxy__factory.ts +137 -0
- package/typechain/factories/ERC1967Upgrade__factory.ts +71 -0
- package/typechain/factories/ERC20__factory.ts +340 -0
- package/typechain/factories/IAbstractTokenConverter__factory.ts +466 -0
- package/typechain/factories/IAccessControlManagerV8__factory.ts +301 -0
- package/typechain/factories/IAccessControl__factory.ts +198 -0
- package/typechain/factories/IBeacon__factory.ts +36 -0
- package/typechain/factories/IComptroller__factory.ts +68 -0
- package/typechain/factories/IConverterNetwork__factory.ts +142 -0
- package/typechain/factories/IERC165__factory.ts +42 -0
- package/typechain/factories/IERC1822Proxiable__factory.ts +39 -0
- package/typechain/factories/IERC1967__factory.ts +68 -0
- package/typechain/factories/IERC20Metadata__factory.ts +248 -0
- package/typechain/factories/IERC20PermitUpgradeable__factory.ts +105 -0
- package/typechain/factories/IERC20Upgradeable__factory.ts +209 -0
- package/typechain/factories/IERC20__factory.ts +203 -0
- package/typechain/factories/IIncomeDestination__factory.ts +44 -0
- package/typechain/factories/IPoolRegistry__factory.ts +66 -0
- package/typechain/factories/IProtocolShareReserve__factory.ts +53 -0
- package/typechain/factories/IRiskFundConverter__factory.ts +63 -0
- package/typechain/factories/IRiskFundGetters__factory.ts +39 -0
- package/typechain/factories/IRiskFund__factory.ts +89 -0
- package/typechain/factories/IShortfall__factory.ts +36 -0
- package/typechain/factories/ITransparentUpgradeableProxy__factory.ts +145 -0
- package/typechain/factories/IVToken__factory.ts +36 -0
- package/typechain/factories/IXVSVault__factory.ts +36 -0
- package/typechain/factories/Initializable__factory.ts +36 -0
- package/typechain/factories/MaxLoopsLimitHelper__factory.ts +74 -0
- package/typechain/factories/MaxLoopsLimitHelpersStorage__factory.ts +75 -0
- package/typechain/factories/MockACM__factory.ts +411 -0
- package/typechain/factories/MockArraySorter__factory.ts +85 -0
- package/typechain/factories/MockConverter__factory.ts +1439 -0
- package/typechain/factories/MockDeflatingToken__factory.ts +389 -0
- package/typechain/factories/MockRiskFundConverter__factory.ts +1828 -0
- package/typechain/factories/MockToken__factory.ts +398 -0
- package/typechain/factories/OracleInterface__factory.ts +45 -0
- package/typechain/factories/Ownable2StepUpgradeable__factory.ts +134 -0
- package/typechain/factories/OwnableUpgradeable__factory.ts +91 -0
- package/typechain/factories/Ownable__factory.ts +75 -0
- package/typechain/factories/PausableUpgradeable__factory.ts +78 -0
- package/typechain/factories/ProtocolShareReserve__factory.ts +874 -0
- package/typechain/factories/ProxyAdmin__factory.ts +202 -0
- package/typechain/factories/Proxy__factory.ts +28 -0
- package/typechain/factories/ReentrancyGuardUpgradeable__factory.ts +43 -0
- package/typechain/factories/ReserveHelpersStorage__factory.ts +188 -0
- package/typechain/factories/ResilientOracleInterface__factory.ts +94 -0
- package/typechain/factories/ResilientOracle__factory.ts +710 -0
- package/typechain/factories/RiskFundConverter__factory.ts +1694 -0
- package/typechain/factories/RiskFundV1Storage__factory.ts +223 -0
- package/typechain/factories/RiskFundV2Storage__factory.ts +236 -0
- package/typechain/factories/RiskFundV2__factory.ts +672 -0
- package/typechain/factories/SingleTokenConverter__factory.ts +1441 -0
- package/typechain/factories/TransparentUpgradeableProxy__factory.ts +152 -0
- package/typechain/factories/TwapInterface__factory.ts +61 -0
- package/typechain/factories/UpgradeableBeacon__factory.ts +163 -0
- package/typechain/factories/VBep20Interface__factory.ts +261 -0
- package/typechain/factories/XVSVaultTreasury__factory.ts +365 -0
- package/typechain/index.ts +134 -0
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
|
|
6
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
XVSVaultTreasury,
|
|
9
|
+
XVSVaultTreasuryInterface,
|
|
10
|
+
} from "../XVSVaultTreasury";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
internalType: "address",
|
|
17
|
+
name: "xvsAddress_",
|
|
18
|
+
type: "address",
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
stateMutability: "nonpayable",
|
|
22
|
+
type: "constructor",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
inputs: [],
|
|
26
|
+
name: "InsufficientBalance",
|
|
27
|
+
type: "error",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
inputs: [
|
|
31
|
+
{
|
|
32
|
+
internalType: "address",
|
|
33
|
+
name: "sender",
|
|
34
|
+
type: "address",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
internalType: "address",
|
|
38
|
+
name: "calledContract",
|
|
39
|
+
type: "address",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
internalType: "string",
|
|
43
|
+
name: "methodSignature",
|
|
44
|
+
type: "string",
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
name: "Unauthorized",
|
|
48
|
+
type: "error",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
inputs: [],
|
|
52
|
+
name: "ZeroAddressNotAllowed",
|
|
53
|
+
type: "error",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
inputs: [],
|
|
57
|
+
name: "ZeroValueNotAllowed",
|
|
58
|
+
type: "error",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
anonymous: false,
|
|
62
|
+
inputs: [
|
|
63
|
+
{
|
|
64
|
+
indexed: true,
|
|
65
|
+
internalType: "address",
|
|
66
|
+
name: "xvsStore",
|
|
67
|
+
type: "address",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
indexed: false,
|
|
71
|
+
internalType: "uint256",
|
|
72
|
+
name: "amountMantissa",
|
|
73
|
+
type: "uint256",
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
name: "FundsTransferredToXVSStore",
|
|
77
|
+
type: "event",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
anonymous: false,
|
|
81
|
+
inputs: [
|
|
82
|
+
{
|
|
83
|
+
indexed: false,
|
|
84
|
+
internalType: "uint8",
|
|
85
|
+
name: "version",
|
|
86
|
+
type: "uint8",
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
name: "Initialized",
|
|
90
|
+
type: "event",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
anonymous: false,
|
|
94
|
+
inputs: [
|
|
95
|
+
{
|
|
96
|
+
indexed: false,
|
|
97
|
+
internalType: "address",
|
|
98
|
+
name: "oldAccessControlManager",
|
|
99
|
+
type: "address",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
indexed: false,
|
|
103
|
+
internalType: "address",
|
|
104
|
+
name: "newAccessControlManager",
|
|
105
|
+
type: "address",
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
name: "NewAccessControlManager",
|
|
109
|
+
type: "event",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
anonymous: false,
|
|
113
|
+
inputs: [
|
|
114
|
+
{
|
|
115
|
+
indexed: true,
|
|
116
|
+
internalType: "address",
|
|
117
|
+
name: "previousOwner",
|
|
118
|
+
type: "address",
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
indexed: true,
|
|
122
|
+
internalType: "address",
|
|
123
|
+
name: "newOwner",
|
|
124
|
+
type: "address",
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
name: "OwnershipTransferStarted",
|
|
128
|
+
type: "event",
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
anonymous: false,
|
|
132
|
+
inputs: [
|
|
133
|
+
{
|
|
134
|
+
indexed: true,
|
|
135
|
+
internalType: "address",
|
|
136
|
+
name: "previousOwner",
|
|
137
|
+
type: "address",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
indexed: true,
|
|
141
|
+
internalType: "address",
|
|
142
|
+
name: "newOwner",
|
|
143
|
+
type: "address",
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
name: "OwnershipTransferred",
|
|
147
|
+
type: "event",
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
anonymous: false,
|
|
151
|
+
inputs: [
|
|
152
|
+
{
|
|
153
|
+
indexed: true,
|
|
154
|
+
internalType: "address",
|
|
155
|
+
name: "oldXVSVault",
|
|
156
|
+
type: "address",
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
indexed: true,
|
|
160
|
+
internalType: "address",
|
|
161
|
+
name: "newXVSVault",
|
|
162
|
+
type: "address",
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
name: "XVSVaultUpdated",
|
|
166
|
+
type: "event",
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
inputs: [],
|
|
170
|
+
name: "XVS_ADDRESS",
|
|
171
|
+
outputs: [
|
|
172
|
+
{
|
|
173
|
+
internalType: "address",
|
|
174
|
+
name: "",
|
|
175
|
+
type: "address",
|
|
176
|
+
},
|
|
177
|
+
],
|
|
178
|
+
stateMutability: "view",
|
|
179
|
+
type: "function",
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
inputs: [],
|
|
183
|
+
name: "acceptOwnership",
|
|
184
|
+
outputs: [],
|
|
185
|
+
stateMutability: "nonpayable",
|
|
186
|
+
type: "function",
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
inputs: [],
|
|
190
|
+
name: "accessControlManager",
|
|
191
|
+
outputs: [
|
|
192
|
+
{
|
|
193
|
+
internalType: "contract IAccessControlManagerV8",
|
|
194
|
+
name: "",
|
|
195
|
+
type: "address",
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
stateMutability: "view",
|
|
199
|
+
type: "function",
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
inputs: [
|
|
203
|
+
{
|
|
204
|
+
internalType: "uint256",
|
|
205
|
+
name: "amountMantissa",
|
|
206
|
+
type: "uint256",
|
|
207
|
+
},
|
|
208
|
+
],
|
|
209
|
+
name: "fundXVSVault",
|
|
210
|
+
outputs: [],
|
|
211
|
+
stateMutability: "nonpayable",
|
|
212
|
+
type: "function",
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
inputs: [
|
|
216
|
+
{
|
|
217
|
+
internalType: "address",
|
|
218
|
+
name: "accessControlManager_",
|
|
219
|
+
type: "address",
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
internalType: "address",
|
|
223
|
+
name: "xvsVault_",
|
|
224
|
+
type: "address",
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
name: "initialize",
|
|
228
|
+
outputs: [],
|
|
229
|
+
stateMutability: "nonpayable",
|
|
230
|
+
type: "function",
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
inputs: [],
|
|
234
|
+
name: "owner",
|
|
235
|
+
outputs: [
|
|
236
|
+
{
|
|
237
|
+
internalType: "address",
|
|
238
|
+
name: "",
|
|
239
|
+
type: "address",
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
stateMutability: "view",
|
|
243
|
+
type: "function",
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
inputs: [],
|
|
247
|
+
name: "pendingOwner",
|
|
248
|
+
outputs: [
|
|
249
|
+
{
|
|
250
|
+
internalType: "address",
|
|
251
|
+
name: "",
|
|
252
|
+
type: "address",
|
|
253
|
+
},
|
|
254
|
+
],
|
|
255
|
+
stateMutability: "view",
|
|
256
|
+
type: "function",
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
inputs: [],
|
|
260
|
+
name: "renounceOwnership",
|
|
261
|
+
outputs: [],
|
|
262
|
+
stateMutability: "nonpayable",
|
|
263
|
+
type: "function",
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
inputs: [
|
|
267
|
+
{
|
|
268
|
+
internalType: "address",
|
|
269
|
+
name: "accessControlManager_",
|
|
270
|
+
type: "address",
|
|
271
|
+
},
|
|
272
|
+
],
|
|
273
|
+
name: "setAccessControlManager",
|
|
274
|
+
outputs: [],
|
|
275
|
+
stateMutability: "nonpayable",
|
|
276
|
+
type: "function",
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
inputs: [
|
|
280
|
+
{
|
|
281
|
+
internalType: "address",
|
|
282
|
+
name: "xvsVault_",
|
|
283
|
+
type: "address",
|
|
284
|
+
},
|
|
285
|
+
],
|
|
286
|
+
name: "setXVSVault",
|
|
287
|
+
outputs: [],
|
|
288
|
+
stateMutability: "nonpayable",
|
|
289
|
+
type: "function",
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
inputs: [
|
|
293
|
+
{
|
|
294
|
+
internalType: "address",
|
|
295
|
+
name: "newOwner",
|
|
296
|
+
type: "address",
|
|
297
|
+
},
|
|
298
|
+
],
|
|
299
|
+
name: "transferOwnership",
|
|
300
|
+
outputs: [],
|
|
301
|
+
stateMutability: "nonpayable",
|
|
302
|
+
type: "function",
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
inputs: [],
|
|
306
|
+
name: "xvsVault",
|
|
307
|
+
outputs: [
|
|
308
|
+
{
|
|
309
|
+
internalType: "address",
|
|
310
|
+
name: "",
|
|
311
|
+
type: "address",
|
|
312
|
+
},
|
|
313
|
+
],
|
|
314
|
+
stateMutability: "view",
|
|
315
|
+
type: "function",
|
|
316
|
+
},
|
|
317
|
+
];
|
|
318
|
+
|
|
319
|
+
const _bytecode =
|
|
320
|
+
"0x60a06040523480156200001157600080fd5b506040516200165738038062001657833981016040819052620000349162000149565b6200003f816200005d565b6001600160a01b0381166080526200005662000088565b506200017b565b6001600160a01b03811662000085576040516342bcdf7f60e11b815260040160405180910390fd5b50565b600054610100900460ff1615620000f55760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff9081161462000147576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b6000602082840312156200015c57600080fd5b81516001600160a01b03811681146200017457600080fd5b9392505050565b6080516114b2620001a560003960008181610162015281816104f6015261066b01526114b26000f3fe608060405234801561001057600080fd5b50600436106100d45760003560e01c806379ba509711610081578063b4a0bdf31161005b578063b4a0bdf3146101c5578063e30c3978146101e3578063f2fde38b1461020157600080fd5b806379ba50971461018c5780638da5cb5b146101945780639a02c39a146101b257600080fd5b8063485cc955116100b2578063485cc9551461014a57806354a617ed1461015d578063715018a61461018457600080fd5b80630e32cb86146100d957806314d35a63146100ee5780631b9ce57514610101575b600080fd5b6100ec6100e7366004611294565b610214565b005b6100ec6100fc366004611294565b610228565b60fb546101219073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6100ec6101583660046112b8565b610239565b6101217f000000000000000000000000000000000000000000000000000000000000000081565b6100ec6103ca565b6100ec6103de565b60335473ffffffffffffffffffffffffffffffffffffffff16610121565b6100ec6101c03660046112f1565b610476565b60975473ffffffffffffffffffffffffffffffffffffffff16610121565b60655473ffffffffffffffffffffffffffffffffffffffff16610121565b6100ec61020f366004611294565b6106ee565b61021c61079e565b61022581610805565b50565b61023061079e565b61022581610914565b600054610100900460ff16158080156102595750600054600160ff909116105b806102735750303b158015610273575060005460ff166001145b6102ea5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084015b60405180910390fd5b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055801561034857600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b610351836109ab565b610359610a39565b61036282610914565b80156103c557600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050565b6103d261079e565b6103dc6000610abe565b565b606554339073ffffffffffffffffffffffffffffffffffffffff16811461046d5760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e6572000000000000000000000000000000000000000000000060648201526084016102e1565b61022581610abe565b61047e610aef565b6104bc6040518060400160405280601581526020017f66756e645856535661756c742875696e74323536290000000000000000000000815250610b48565b6104c581610c25565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015610552573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610576919061130a565b9050818110156105b2576040517ff4d678b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60fb54604080517f24f52bbf000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff16916324f52bbf9160048083019260209291908290030181865afa158015610622573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106469190611323565b905061065181610c5f565b61069273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168285610cac565b8073ffffffffffffffffffffffffffffffffffffffff167f15daab32014613a1f6e3f4500519c6ae9f7b172530faeac09157815d4f395381846040516106da91815260200190565b60405180910390a25050610225600160c955565b6106f661079e565b6065805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116811790915561075960335473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60335473ffffffffffffffffffffffffffffffffffffffff1633146103dc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102e1565b73ffffffffffffffffffffffffffffffffffffffff811661088e5760405162461bcd60e51b815260206004820152602560248201527f696e76616c696420616365737320636f6e74726f6c206d616e6167657220616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016102e1565b6097805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff000000000000000000000000000000000000000083168117909355604080519190921680825260208201939093527f66fd58e82f7b31a2a5c30e0888f3093efe4e111b00cd2b0c31fe014601293aa0910160405180910390a15050565b61091d81610c5f565b60fb5460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f3bf9abe00ba7558b8031adf12ba72290510a001068b251cd4931a4199a78068a90600090a360fb80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600054610100900460ff16610a285760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016102e1565b610a30610d40565b61022581610dc5565b600054610100900460ff16610ab65760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016102e1565b6103dc610e42565b606580547fffffffffffffffffffffffff000000000000000000000000000000000000000016905561022581610ebf565b600260c95403610b415760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102e1565b600260c955565b6097546040517f18c5e8ab00000000000000000000000000000000000000000000000000000000815260009173ffffffffffffffffffffffffffffffffffffffff16906318c5e8ab90610ba190339086906004016113ba565b602060405180830381865afa158015610bbe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be291906113e9565b905080610c21573330836040517f4a3fa2930000000000000000000000000000000000000000000000000000000081526004016102e19392919061140b565b5050565b80600003610225576040517f9cf8540c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116610225576040517f8579befe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526103c5908490610f36565b600160c955565b600054610100900460ff16610dbd5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016102e1565b6103dc61102b565b600054610100900460ff1661021c5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016102e1565b600054610100900460ff16610d395760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016102e1565b6033805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000610f98826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166110b19092919063ffffffff16565b9050805160001480610fb9575080806020019051810190610fb991906113e9565b6103c55760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016102e1565b600054610100900460ff166110a85760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016102e1565b6103dc33610abe565b60606110c084846000856110c8565b949350505050565b6060824710156111405760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016102e1565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611169919061144d565b60006040518083038185875af1925050503d80600081146111a6576040519150601f19603f3d011682016040523d82523d6000602084013e6111ab565b606091505b50915091506111bc878383876111c7565b979650505050505050565b6060831561124357825160000361123c5773ffffffffffffffffffffffffffffffffffffffff85163b61123c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102e1565b50816110c0565b6110c083838151156112585781518083602001fd5b8060405162461bcd60e51b81526004016102e19190611469565b73ffffffffffffffffffffffffffffffffffffffff8116811461022557600080fd5b6000602082840312156112a657600080fd5b81356112b181611272565b9392505050565b600080604083850312156112cb57600080fd5b82356112d681611272565b915060208301356112e681611272565b809150509250929050565b60006020828403121561130357600080fd5b5035919050565b60006020828403121561131c57600080fd5b5051919050565b60006020828403121561133557600080fd5b81516112b181611272565b60005b8381101561135b578181015183820152602001611343565b8381111561136a576000848401525b50505050565b60008151808452611388816020860160208601611340565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b73ffffffffffffffffffffffffffffffffffffffff831681526040602082015260006110c06040830184611370565b6000602082840312156113fb57600080fd5b815180151581146112b157600080fd5b600073ffffffffffffffffffffffffffffffffffffffff8086168352808516602084015250606060408301526114446060830184611370565b95945050505050565b6000825161145f818460208701611340565b9190910192915050565b6020815260006112b1602083018461137056fea26469706673582212208096a2f599f35293c5f19ed2d249b14d665c7fe0b66fa63c5fe6cf35720e1b0a64736f6c634300080d0033";
|
|
321
|
+
|
|
322
|
+
export class XVSVaultTreasury__factory extends ContractFactory {
|
|
323
|
+
constructor(
|
|
324
|
+
...args: [signer: Signer] | ConstructorParameters<typeof ContractFactory>
|
|
325
|
+
) {
|
|
326
|
+
if (args.length === 1) {
|
|
327
|
+
super(_abi, _bytecode, args[0]);
|
|
328
|
+
} else {
|
|
329
|
+
super(...args);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
deploy(
|
|
334
|
+
xvsAddress_: string,
|
|
335
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
336
|
+
): Promise<XVSVaultTreasury> {
|
|
337
|
+
return super.deploy(
|
|
338
|
+
xvsAddress_,
|
|
339
|
+
overrides || {}
|
|
340
|
+
) as Promise<XVSVaultTreasury>;
|
|
341
|
+
}
|
|
342
|
+
getDeployTransaction(
|
|
343
|
+
xvsAddress_: string,
|
|
344
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
345
|
+
): TransactionRequest {
|
|
346
|
+
return super.getDeployTransaction(xvsAddress_, overrides || {});
|
|
347
|
+
}
|
|
348
|
+
attach(address: string): XVSVaultTreasury {
|
|
349
|
+
return super.attach(address) as XVSVaultTreasury;
|
|
350
|
+
}
|
|
351
|
+
connect(signer: Signer): XVSVaultTreasury__factory {
|
|
352
|
+
return super.connect(signer) as XVSVaultTreasury__factory;
|
|
353
|
+
}
|
|
354
|
+
static readonly bytecode = _bytecode;
|
|
355
|
+
static readonly abi = _abi;
|
|
356
|
+
static createInterface(): XVSVaultTreasuryInterface {
|
|
357
|
+
return new utils.Interface(_abi) as XVSVaultTreasuryInterface;
|
|
358
|
+
}
|
|
359
|
+
static connect(
|
|
360
|
+
address: string,
|
|
361
|
+
signerOrProvider: Signer | Provider
|
|
362
|
+
): XVSVaultTreasury {
|
|
363
|
+
return new Contract(address, _abi, signerOrProvider) as XVSVaultTreasury;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export type { Ownable2StepUpgradeable } from "./Ownable2StepUpgradeable";
|
|
5
|
+
export type { OwnableUpgradeable } from "./OwnableUpgradeable";
|
|
6
|
+
export type { Initializable } from "./Initializable";
|
|
7
|
+
export type { PausableUpgradeable } from "./PausableUpgradeable";
|
|
8
|
+
export type { ReentrancyGuardUpgradeable } from "./ReentrancyGuardUpgradeable";
|
|
9
|
+
export type { IERC20PermitUpgradeable } from "./IERC20PermitUpgradeable";
|
|
10
|
+
export type { IERC20Upgradeable } from "./IERC20Upgradeable";
|
|
11
|
+
export type { ContextUpgradeable } from "./ContextUpgradeable";
|
|
12
|
+
export type { AccessControl } from "./AccessControl";
|
|
13
|
+
export type { IAccessControl } from "./IAccessControl";
|
|
14
|
+
export type { Ownable } from "./Ownable";
|
|
15
|
+
export type { IERC1822Proxiable } from "./IERC1822Proxiable";
|
|
16
|
+
export type { IERC1967 } from "./IERC1967";
|
|
17
|
+
export type { BeaconProxy } from "./BeaconProxy";
|
|
18
|
+
export type { IBeacon } from "./IBeacon";
|
|
19
|
+
export type { UpgradeableBeacon } from "./UpgradeableBeacon";
|
|
20
|
+
export type { ERC1967Proxy } from "./ERC1967Proxy";
|
|
21
|
+
export type { ERC1967Upgrade } from "./ERC1967Upgrade";
|
|
22
|
+
export type { Proxy } from "./Proxy";
|
|
23
|
+
export type { ProxyAdmin } from "./ProxyAdmin";
|
|
24
|
+
export type { ITransparentUpgradeableProxy } from "./ITransparentUpgradeableProxy";
|
|
25
|
+
export type { TransparentUpgradeableProxy } from "./TransparentUpgradeableProxy";
|
|
26
|
+
export type { ERC20 } from "./ERC20";
|
|
27
|
+
export type { IERC20Metadata } from "./IERC20Metadata";
|
|
28
|
+
export type { IERC20 } from "./IERC20";
|
|
29
|
+
export type { ERC165 } from "./ERC165";
|
|
30
|
+
export type { IERC165 } from "./IERC165";
|
|
31
|
+
export type { AccessControlledV8 } from "./AccessControlledV8";
|
|
32
|
+
export type { IAccessControlManagerV8 } from "./IAccessControlManagerV8";
|
|
33
|
+
export type { BoundValidatorInterface } from "./BoundValidatorInterface";
|
|
34
|
+
export type { OracleInterface } from "./OracleInterface";
|
|
35
|
+
export type { ResilientOracleInterface } from "./ResilientOracleInterface";
|
|
36
|
+
export type { TwapInterface } from "./TwapInterface";
|
|
37
|
+
export type { VBep20Interface } from "./VBep20Interface";
|
|
38
|
+
export type { ResilientOracle } from "./ResilientOracle";
|
|
39
|
+
export type { MaxLoopsLimitHelper } from "./MaxLoopsLimitHelper";
|
|
40
|
+
export type { IComptroller } from "./IComptroller";
|
|
41
|
+
export type { IConverterNetwork } from "./IConverterNetwork";
|
|
42
|
+
export type { IIncomeDestination } from "./IIncomeDestination";
|
|
43
|
+
export type { IPoolRegistry } from "./IPoolRegistry";
|
|
44
|
+
export type { IProtocolShareReserve } from "./IProtocolShareReserve";
|
|
45
|
+
export type { IRiskFund } from "./IRiskFund";
|
|
46
|
+
export type { IRiskFundGetters } from "./IRiskFundGetters";
|
|
47
|
+
export type { IRiskFundConverter } from "./IRiskFundConverter";
|
|
48
|
+
export type { IShortfall } from "./IShortfall";
|
|
49
|
+
export type { IVToken } from "./IVToken";
|
|
50
|
+
export type { IXVSVault } from "./IXVSVault";
|
|
51
|
+
export type { ProtocolShareReserve } from "./ProtocolShareReserve";
|
|
52
|
+
export type { MaxLoopsLimitHelpersStorage } from "./MaxLoopsLimitHelpersStorage";
|
|
53
|
+
export type { ReserveHelpersStorage } from "./ReserveHelpersStorage";
|
|
54
|
+
export type { RiskFundV1Storage } from "./RiskFundV1Storage";
|
|
55
|
+
export type { RiskFundV2Storage } from "./RiskFundV2Storage";
|
|
56
|
+
export type { RiskFundV2 } from "./RiskFundV2";
|
|
57
|
+
export type { XVSVaultTreasury } from "./XVSVaultTreasury";
|
|
58
|
+
export type { MockACM } from "./MockACM";
|
|
59
|
+
export type { MockArraySorter } from "./MockArraySorter";
|
|
60
|
+
export type { MockConverter } from "./MockConverter";
|
|
61
|
+
export type { MockDeflatingToken } from "./MockDeflatingToken";
|
|
62
|
+
export type { MockRiskFundConverter } from "./MockRiskFundConverter";
|
|
63
|
+
export type { MockToken } from "./MockToken";
|
|
64
|
+
export type { AbstractTokenConverter } from "./AbstractTokenConverter";
|
|
65
|
+
export type { ConverterNetwork } from "./ConverterNetwork";
|
|
66
|
+
export type { IAbstractTokenConverter } from "./IAbstractTokenConverter";
|
|
67
|
+
export type { RiskFundConverter } from "./RiskFundConverter";
|
|
68
|
+
export type { SingleTokenConverter } from "./SingleTokenConverter";
|
|
69
|
+
|
|
70
|
+
export { Ownable2StepUpgradeable__factory } from "./factories/Ownable2StepUpgradeable__factory";
|
|
71
|
+
export { OwnableUpgradeable__factory } from "./factories/OwnableUpgradeable__factory";
|
|
72
|
+
export { Initializable__factory } from "./factories/Initializable__factory";
|
|
73
|
+
export { PausableUpgradeable__factory } from "./factories/PausableUpgradeable__factory";
|
|
74
|
+
export { ReentrancyGuardUpgradeable__factory } from "./factories/ReentrancyGuardUpgradeable__factory";
|
|
75
|
+
export { IERC20PermitUpgradeable__factory } from "./factories/IERC20PermitUpgradeable__factory";
|
|
76
|
+
export { IERC20Upgradeable__factory } from "./factories/IERC20Upgradeable__factory";
|
|
77
|
+
export { ContextUpgradeable__factory } from "./factories/ContextUpgradeable__factory";
|
|
78
|
+
export { AccessControl__factory } from "./factories/AccessControl__factory";
|
|
79
|
+
export { IAccessControl__factory } from "./factories/IAccessControl__factory";
|
|
80
|
+
export { Ownable__factory } from "./factories/Ownable__factory";
|
|
81
|
+
export { IERC1822Proxiable__factory } from "./factories/IERC1822Proxiable__factory";
|
|
82
|
+
export { IERC1967__factory } from "./factories/IERC1967__factory";
|
|
83
|
+
export { BeaconProxy__factory } from "./factories/BeaconProxy__factory";
|
|
84
|
+
export { IBeacon__factory } from "./factories/IBeacon__factory";
|
|
85
|
+
export { UpgradeableBeacon__factory } from "./factories/UpgradeableBeacon__factory";
|
|
86
|
+
export { ERC1967Proxy__factory } from "./factories/ERC1967Proxy__factory";
|
|
87
|
+
export { ERC1967Upgrade__factory } from "./factories/ERC1967Upgrade__factory";
|
|
88
|
+
export { Proxy__factory } from "./factories/Proxy__factory";
|
|
89
|
+
export { ProxyAdmin__factory } from "./factories/ProxyAdmin__factory";
|
|
90
|
+
export { ITransparentUpgradeableProxy__factory } from "./factories/ITransparentUpgradeableProxy__factory";
|
|
91
|
+
export { TransparentUpgradeableProxy__factory } from "./factories/TransparentUpgradeableProxy__factory";
|
|
92
|
+
export { ERC20__factory } from "./factories/ERC20__factory";
|
|
93
|
+
export { IERC20Metadata__factory } from "./factories/IERC20Metadata__factory";
|
|
94
|
+
export { IERC20__factory } from "./factories/IERC20__factory";
|
|
95
|
+
export { ERC165__factory } from "./factories/ERC165__factory";
|
|
96
|
+
export { IERC165__factory } from "./factories/IERC165__factory";
|
|
97
|
+
export { AccessControlledV8__factory } from "./factories/AccessControlledV8__factory";
|
|
98
|
+
export { IAccessControlManagerV8__factory } from "./factories/IAccessControlManagerV8__factory";
|
|
99
|
+
export { BoundValidatorInterface__factory } from "./factories/BoundValidatorInterface__factory";
|
|
100
|
+
export { OracleInterface__factory } from "./factories/OracleInterface__factory";
|
|
101
|
+
export { ResilientOracleInterface__factory } from "./factories/ResilientOracleInterface__factory";
|
|
102
|
+
export { TwapInterface__factory } from "./factories/TwapInterface__factory";
|
|
103
|
+
export { VBep20Interface__factory } from "./factories/VBep20Interface__factory";
|
|
104
|
+
export { ResilientOracle__factory } from "./factories/ResilientOracle__factory";
|
|
105
|
+
export { MaxLoopsLimitHelper__factory } from "./factories/MaxLoopsLimitHelper__factory";
|
|
106
|
+
export { IComptroller__factory } from "./factories/IComptroller__factory";
|
|
107
|
+
export { IConverterNetwork__factory } from "./factories/IConverterNetwork__factory";
|
|
108
|
+
export { IIncomeDestination__factory } from "./factories/IIncomeDestination__factory";
|
|
109
|
+
export { IPoolRegistry__factory } from "./factories/IPoolRegistry__factory";
|
|
110
|
+
export { IProtocolShareReserve__factory } from "./factories/IProtocolShareReserve__factory";
|
|
111
|
+
export { IRiskFund__factory } from "./factories/IRiskFund__factory";
|
|
112
|
+
export { IRiskFundGetters__factory } from "./factories/IRiskFundGetters__factory";
|
|
113
|
+
export { IRiskFundConverter__factory } from "./factories/IRiskFundConverter__factory";
|
|
114
|
+
export { IShortfall__factory } from "./factories/IShortfall__factory";
|
|
115
|
+
export { IVToken__factory } from "./factories/IVToken__factory";
|
|
116
|
+
export { IXVSVault__factory } from "./factories/IXVSVault__factory";
|
|
117
|
+
export { ProtocolShareReserve__factory } from "./factories/ProtocolShareReserve__factory";
|
|
118
|
+
export { MaxLoopsLimitHelpersStorage__factory } from "./factories/MaxLoopsLimitHelpersStorage__factory";
|
|
119
|
+
export { ReserveHelpersStorage__factory } from "./factories/ReserveHelpersStorage__factory";
|
|
120
|
+
export { RiskFundV1Storage__factory } from "./factories/RiskFundV1Storage__factory";
|
|
121
|
+
export { RiskFundV2Storage__factory } from "./factories/RiskFundV2Storage__factory";
|
|
122
|
+
export { RiskFundV2__factory } from "./factories/RiskFundV2__factory";
|
|
123
|
+
export { XVSVaultTreasury__factory } from "./factories/XVSVaultTreasury__factory";
|
|
124
|
+
export { MockACM__factory } from "./factories/MockACM__factory";
|
|
125
|
+
export { MockArraySorter__factory } from "./factories/MockArraySorter__factory";
|
|
126
|
+
export { MockConverter__factory } from "./factories/MockConverter__factory";
|
|
127
|
+
export { MockDeflatingToken__factory } from "./factories/MockDeflatingToken__factory";
|
|
128
|
+
export { MockRiskFundConverter__factory } from "./factories/MockRiskFundConverter__factory";
|
|
129
|
+
export { MockToken__factory } from "./factories/MockToken__factory";
|
|
130
|
+
export { AbstractTokenConverter__factory } from "./factories/AbstractTokenConverter__factory";
|
|
131
|
+
export { ConverterNetwork__factory } from "./factories/ConverterNetwork__factory";
|
|
132
|
+
export { IAbstractTokenConverter__factory } from "./factories/IAbstractTokenConverter__factory";
|
|
133
|
+
export { RiskFundConverter__factory } from "./factories/RiskFundConverter__factory";
|
|
134
|
+
export { SingleTokenConverter__factory } from "./factories/SingleTokenConverter__factory";
|