@venusprotocol/protocol-reserve 1.5.0-dev.1 → 1.5.0-dev.2

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