@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,466 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
IAbstractTokenConverter,
|
|
9
|
+
IAbstractTokenConverterInterface,
|
|
10
|
+
} from "../IAbstractTokenConverter";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
internalType: "address",
|
|
17
|
+
name: "token",
|
|
18
|
+
type: "address",
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
name: "balanceOf",
|
|
22
|
+
outputs: [
|
|
23
|
+
{
|
|
24
|
+
internalType: "uint256",
|
|
25
|
+
name: "tokenBalance",
|
|
26
|
+
type: "uint256",
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
stateMutability: "view",
|
|
30
|
+
type: "function",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
inputs: [
|
|
34
|
+
{
|
|
35
|
+
internalType: "address",
|
|
36
|
+
name: "tokenAddressIn",
|
|
37
|
+
type: "address",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
internalType: "address",
|
|
41
|
+
name: "tokenAddressOut",
|
|
42
|
+
type: "address",
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
name: "conversionConfigurations",
|
|
46
|
+
outputs: [
|
|
47
|
+
{
|
|
48
|
+
internalType: "uint256",
|
|
49
|
+
name: "incentives",
|
|
50
|
+
type: "uint256",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
internalType: "enum IAbstractTokenConverter.ConversionAccessibility",
|
|
54
|
+
name: "conversionAccess",
|
|
55
|
+
type: "uint8",
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
stateMutability: "nonpayable",
|
|
59
|
+
type: "function",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
inputs: [
|
|
63
|
+
{
|
|
64
|
+
internalType: "uint256",
|
|
65
|
+
name: "amountInMantissa",
|
|
66
|
+
type: "uint256",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
internalType: "uint256",
|
|
70
|
+
name: "amountOutMinMantissa",
|
|
71
|
+
type: "uint256",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
internalType: "address",
|
|
75
|
+
name: "tokenAddressIn",
|
|
76
|
+
type: "address",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
internalType: "address",
|
|
80
|
+
name: "tokenAddressOut",
|
|
81
|
+
type: "address",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
internalType: "address",
|
|
85
|
+
name: "to",
|
|
86
|
+
type: "address",
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
name: "convertExactTokens",
|
|
90
|
+
outputs: [
|
|
91
|
+
{
|
|
92
|
+
internalType: "uint256",
|
|
93
|
+
name: "actualAmountIn",
|
|
94
|
+
type: "uint256",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
internalType: "uint256",
|
|
98
|
+
name: "actualAmountOut",
|
|
99
|
+
type: "uint256",
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
stateMutability: "nonpayable",
|
|
103
|
+
type: "function",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
inputs: [
|
|
107
|
+
{
|
|
108
|
+
internalType: "uint256",
|
|
109
|
+
name: "amountInMantissa",
|
|
110
|
+
type: "uint256",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
internalType: "uint256",
|
|
114
|
+
name: "amountOutMinMantissa",
|
|
115
|
+
type: "uint256",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
internalType: "address",
|
|
119
|
+
name: "tokenAddressIn",
|
|
120
|
+
type: "address",
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
internalType: "address",
|
|
124
|
+
name: "tokenAddressOut",
|
|
125
|
+
type: "address",
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
internalType: "address",
|
|
129
|
+
name: "to",
|
|
130
|
+
type: "address",
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
name: "convertExactTokensSupportingFeeOnTransferTokens",
|
|
134
|
+
outputs: [
|
|
135
|
+
{
|
|
136
|
+
internalType: "uint256",
|
|
137
|
+
name: "actualAmountIn",
|
|
138
|
+
type: "uint256",
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
internalType: "uint256",
|
|
142
|
+
name: "actualAmountOut",
|
|
143
|
+
type: "uint256",
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
stateMutability: "nonpayable",
|
|
147
|
+
type: "function",
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
inputs: [
|
|
151
|
+
{
|
|
152
|
+
internalType: "uint256",
|
|
153
|
+
name: "amountInMaxMantissa",
|
|
154
|
+
type: "uint256",
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
internalType: "uint256",
|
|
158
|
+
name: "amountOutMantissa",
|
|
159
|
+
type: "uint256",
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
internalType: "address",
|
|
163
|
+
name: "tokenAddressIn",
|
|
164
|
+
type: "address",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
internalType: "address",
|
|
168
|
+
name: "tokenAddressOut",
|
|
169
|
+
type: "address",
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
internalType: "address",
|
|
173
|
+
name: "to",
|
|
174
|
+
type: "address",
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
name: "convertForExactTokens",
|
|
178
|
+
outputs: [
|
|
179
|
+
{
|
|
180
|
+
internalType: "uint256",
|
|
181
|
+
name: "actualAmountIn",
|
|
182
|
+
type: "uint256",
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
internalType: "uint256",
|
|
186
|
+
name: "actualAmountOut",
|
|
187
|
+
type: "uint256",
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
stateMutability: "nonpayable",
|
|
191
|
+
type: "function",
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
inputs: [
|
|
195
|
+
{
|
|
196
|
+
internalType: "uint256",
|
|
197
|
+
name: "amountInMaxMantissa",
|
|
198
|
+
type: "uint256",
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
internalType: "uint256",
|
|
202
|
+
name: "amountOutMantissa",
|
|
203
|
+
type: "uint256",
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
internalType: "address",
|
|
207
|
+
name: "tokenAddressIn",
|
|
208
|
+
type: "address",
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
internalType: "address",
|
|
212
|
+
name: "tokenAddressOut",
|
|
213
|
+
type: "address",
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
internalType: "address",
|
|
217
|
+
name: "to",
|
|
218
|
+
type: "address",
|
|
219
|
+
},
|
|
220
|
+
],
|
|
221
|
+
name: "convertForExactTokensSupportingFeeOnTransferTokens",
|
|
222
|
+
outputs: [
|
|
223
|
+
{
|
|
224
|
+
internalType: "uint256",
|
|
225
|
+
name: "actualAmountIn",
|
|
226
|
+
type: "uint256",
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
internalType: "uint256",
|
|
230
|
+
name: "actualAmountOut",
|
|
231
|
+
type: "uint256",
|
|
232
|
+
},
|
|
233
|
+
],
|
|
234
|
+
stateMutability: "nonpayable",
|
|
235
|
+
type: "function",
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
inputs: [],
|
|
239
|
+
name: "converterNetwork",
|
|
240
|
+
outputs: [
|
|
241
|
+
{
|
|
242
|
+
internalType: "contract IConverterNetwork",
|
|
243
|
+
name: "converterNetwork",
|
|
244
|
+
type: "address",
|
|
245
|
+
},
|
|
246
|
+
],
|
|
247
|
+
stateMutability: "nonpayable",
|
|
248
|
+
type: "function",
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
inputs: [
|
|
252
|
+
{
|
|
253
|
+
internalType: "uint256",
|
|
254
|
+
name: "amountOutMantissa",
|
|
255
|
+
type: "uint256",
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
internalType: "address",
|
|
259
|
+
name: "tokenAddressIn",
|
|
260
|
+
type: "address",
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
internalType: "address",
|
|
264
|
+
name: "tokenAddressOut",
|
|
265
|
+
type: "address",
|
|
266
|
+
},
|
|
267
|
+
],
|
|
268
|
+
name: "getAmountIn",
|
|
269
|
+
outputs: [
|
|
270
|
+
{
|
|
271
|
+
internalType: "uint256",
|
|
272
|
+
name: "amountConvertedMantissa",
|
|
273
|
+
type: "uint256",
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
internalType: "uint256",
|
|
277
|
+
name: "amountInMantissa",
|
|
278
|
+
type: "uint256",
|
|
279
|
+
},
|
|
280
|
+
],
|
|
281
|
+
stateMutability: "view",
|
|
282
|
+
type: "function",
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
inputs: [
|
|
286
|
+
{
|
|
287
|
+
internalType: "uint256",
|
|
288
|
+
name: "amountInMantissa",
|
|
289
|
+
type: "uint256",
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
internalType: "address",
|
|
293
|
+
name: "tokenAddressIn",
|
|
294
|
+
type: "address",
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
internalType: "address",
|
|
298
|
+
name: "tokenAddressOut",
|
|
299
|
+
type: "address",
|
|
300
|
+
},
|
|
301
|
+
],
|
|
302
|
+
name: "getAmountOut",
|
|
303
|
+
outputs: [
|
|
304
|
+
{
|
|
305
|
+
internalType: "uint256",
|
|
306
|
+
name: "amountConvertedMantissa",
|
|
307
|
+
type: "uint256",
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
internalType: "uint256",
|
|
311
|
+
name: "amountOutMantissa",
|
|
312
|
+
type: "uint256",
|
|
313
|
+
},
|
|
314
|
+
],
|
|
315
|
+
stateMutability: "view",
|
|
316
|
+
type: "function",
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
inputs: [
|
|
320
|
+
{
|
|
321
|
+
internalType: "uint256",
|
|
322
|
+
name: "amountOutMantissa",
|
|
323
|
+
type: "uint256",
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
internalType: "address",
|
|
327
|
+
name: "tokenAddressIn",
|
|
328
|
+
type: "address",
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
internalType: "address",
|
|
332
|
+
name: "tokenAddressOut",
|
|
333
|
+
type: "address",
|
|
334
|
+
},
|
|
335
|
+
],
|
|
336
|
+
name: "getUpdatedAmountIn",
|
|
337
|
+
outputs: [
|
|
338
|
+
{
|
|
339
|
+
internalType: "uint256",
|
|
340
|
+
name: "amountConvertedMantissa",
|
|
341
|
+
type: "uint256",
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
internalType: "uint256",
|
|
345
|
+
name: "amountInMantissa",
|
|
346
|
+
type: "uint256",
|
|
347
|
+
},
|
|
348
|
+
],
|
|
349
|
+
stateMutability: "nonpayable",
|
|
350
|
+
type: "function",
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
inputs: [
|
|
354
|
+
{
|
|
355
|
+
internalType: "uint256",
|
|
356
|
+
name: "amountInMantissa",
|
|
357
|
+
type: "uint256",
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
internalType: "address",
|
|
361
|
+
name: "tokenAddressIn",
|
|
362
|
+
type: "address",
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
internalType: "address",
|
|
366
|
+
name: "tokenAddressOut",
|
|
367
|
+
type: "address",
|
|
368
|
+
},
|
|
369
|
+
],
|
|
370
|
+
name: "getUpdatedAmountOut",
|
|
371
|
+
outputs: [
|
|
372
|
+
{
|
|
373
|
+
internalType: "uint256",
|
|
374
|
+
name: "amountConvertedMantissa",
|
|
375
|
+
type: "uint256",
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
internalType: "uint256",
|
|
379
|
+
name: "amountOutMantissa",
|
|
380
|
+
type: "uint256",
|
|
381
|
+
},
|
|
382
|
+
],
|
|
383
|
+
stateMutability: "nonpayable",
|
|
384
|
+
type: "function",
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
inputs: [],
|
|
388
|
+
name: "pauseConversion",
|
|
389
|
+
outputs: [],
|
|
390
|
+
stateMutability: "nonpayable",
|
|
391
|
+
type: "function",
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
inputs: [],
|
|
395
|
+
name: "resumeConversion",
|
|
396
|
+
outputs: [],
|
|
397
|
+
stateMutability: "nonpayable",
|
|
398
|
+
type: "function",
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
inputs: [
|
|
402
|
+
{
|
|
403
|
+
internalType: "address",
|
|
404
|
+
name: "tokenAddressIn",
|
|
405
|
+
type: "address",
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
internalType: "address",
|
|
409
|
+
name: "tokenAddressOut",
|
|
410
|
+
type: "address",
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
components: [
|
|
414
|
+
{
|
|
415
|
+
internalType: "uint256",
|
|
416
|
+
name: "incentive",
|
|
417
|
+
type: "uint256",
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
internalType:
|
|
421
|
+
"enum IAbstractTokenConverter.ConversionAccessibility",
|
|
422
|
+
name: "conversionAccess",
|
|
423
|
+
type: "uint8",
|
|
424
|
+
},
|
|
425
|
+
],
|
|
426
|
+
internalType: "struct IAbstractTokenConverter.ConversionConfig",
|
|
427
|
+
name: "conversionConfig",
|
|
428
|
+
type: "tuple",
|
|
429
|
+
},
|
|
430
|
+
],
|
|
431
|
+
name: "setConversionConfig",
|
|
432
|
+
outputs: [],
|
|
433
|
+
stateMutability: "nonpayable",
|
|
434
|
+
type: "function",
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
inputs: [
|
|
438
|
+
{
|
|
439
|
+
internalType: "contract ResilientOracle",
|
|
440
|
+
name: "priceOracle_",
|
|
441
|
+
type: "address",
|
|
442
|
+
},
|
|
443
|
+
],
|
|
444
|
+
name: "setPriceOracle",
|
|
445
|
+
outputs: [],
|
|
446
|
+
stateMutability: "nonpayable",
|
|
447
|
+
type: "function",
|
|
448
|
+
},
|
|
449
|
+
];
|
|
450
|
+
|
|
451
|
+
export class IAbstractTokenConverter__factory {
|
|
452
|
+
static readonly abi = _abi;
|
|
453
|
+
static createInterface(): IAbstractTokenConverterInterface {
|
|
454
|
+
return new utils.Interface(_abi) as IAbstractTokenConverterInterface;
|
|
455
|
+
}
|
|
456
|
+
static connect(
|
|
457
|
+
address: string,
|
|
458
|
+
signerOrProvider: Signer | Provider
|
|
459
|
+
): IAbstractTokenConverter {
|
|
460
|
+
return new Contract(
|
|
461
|
+
address,
|
|
462
|
+
_abi,
|
|
463
|
+
signerOrProvider
|
|
464
|
+
) as IAbstractTokenConverter;
|
|
465
|
+
}
|
|
466
|
+
}
|