@venusprotocol/protocol-reserve 1.0.0-dev.1 → 1.0.0-dev.3
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/artifacts/@openzeppelin/contracts/access/IAccessControl.sol/IAccessControl.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol/Ownable2StepUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol/IERC20Upgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol/SafeERC20Upgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.dbg.json +1 -1
- package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.sol/AccessControlledV8.dbg.json +1 -1
- package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.sol/IAccessControlManagerV8.dbg.json +1 -1
- package/artifacts/build-info/3320cd7a54f60491d1bcaf9577bfbaa8.json +1 -0
- package/artifacts/contracts/Interfaces/ComptrollerInterface.sol/ComptrollerInterface.dbg.json +1 -1
- package/artifacts/contracts/Interfaces/IIncomeDestination.sol/IIncomeDestination.dbg.json +1 -1
- package/artifacts/contracts/Interfaces/IPrime.sol/IPrime.dbg.json +1 -1
- package/artifacts/contracts/Interfaces/IProtocolShareReserve.sol/IProtocolShareReserve.dbg.json +1 -1
- package/artifacts/contracts/Interfaces/IVToken.sol/IVToken.dbg.json +1 -1
- package/artifacts/contracts/Interfaces/PoolRegistryInterface.sol/PoolRegistryInterface.dbg.json +1 -1
- package/artifacts/contracts/ProtocolReserve/ProtocolShareReserve.sol/ProtocolShareReserve.dbg.json +1 -1
- package/artifacts/contracts/ProtocolReserve/ProtocolShareReserve.sol/ProtocolShareReserve.json +2 -27
- package/artifacts/contracts/Test/Mocks/MockToken.sol/MockToken.dbg.json +1 -1
- package/contracts/ProtocolReserve/ProtocolShareReserve.sol +0 -3
- package/package.json +4 -7
- package/typechain/@openzeppelin/contracts/access/IAccessControl.ts +343 -0
- package/typechain/@openzeppelin/contracts/access/index.ts +4 -0
- package/typechain/@openzeppelin/contracts/index.ts +11 -0
- package/typechain/@openzeppelin/contracts/token/ERC20/ERC20.ts +466 -0
- package/typechain/@openzeppelin/contracts/token/ERC20/IERC20.ts +344 -0
- package/typechain/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.ts +386 -0
- package/typechain/@openzeppelin/contracts/token/ERC20/extensions/index.ts +4 -0
- package/typechain/@openzeppelin/contracts/token/ERC20/index.ts +10 -0
- package/typechain/@openzeppelin/contracts/token/index.ts +8 -0
- package/typechain/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.ts +264 -0
- package/typechain/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.ts +190 -0
- package/typechain/@openzeppelin/contracts-upgradeable/access/index.ts +5 -0
- package/typechain/@openzeppelin/contracts-upgradeable/index.ts +17 -0
- package/typechain/@openzeppelin/contracts-upgradeable/proxy/index.ts +8 -0
- package/typechain/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.ts +72 -0
- package/typechain/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +4 -0
- package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.ts +344 -0
- package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.ts +195 -0
- package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/index.ts +4 -0
- package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts +8 -0
- package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts +9 -0
- package/typechain/@openzeppelin/contracts-upgradeable/token/index.ts +8 -0
- package/typechain/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.ts +72 -0
- package/typechain/@openzeppelin/contracts-upgradeable/utils/index.ts +4 -0
- package/typechain/@openzeppelin/index.ts +11 -0
- package/typechain/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.ts +344 -0
- package/typechain/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.ts +530 -0
- package/typechain/@venusprotocol/governance-contracts/contracts/Governance/index.ts +5 -0
- package/typechain/@venusprotocol/governance-contracts/contracts/index.ts +8 -0
- package/typechain/@venusprotocol/governance-contracts/index.ts +8 -0
- package/typechain/@venusprotocol/index.ts +8 -0
- package/typechain/common.ts +48 -0
- package/typechain/contracts/Interfaces/ComptrollerInterface.ts +90 -0
- package/typechain/contracts/Interfaces/IIncomeDestination.ts +112 -0
- package/typechain/contracts/Interfaces/IPrime.ts +202 -0
- package/typechain/contracts/Interfaces/IProtocolShareReserve.ts +122 -0
- package/typechain/contracts/Interfaces/IVToken.ts +87 -0
- package/typechain/contracts/Interfaces/PoolRegistryInterface.ts +110 -0
- package/typechain/contracts/Interfaces/index.ts +9 -0
- package/typechain/contracts/ProtocolReserve/ProtocolShareReserve.ts +1074 -0
- package/typechain/contracts/ProtocolReserve/index.ts +4 -0
- package/typechain/contracts/Test/Mocks/MockToken.ts +498 -0
- package/typechain/contracts/Test/Mocks/index.ts +4 -0
- package/typechain/contracts/Test/index.ts +8 -0
- package/typechain/contracts/index.ts +14 -0
- package/typechain/factories/@openzeppelin/contracts/access/IAccessControl__factory.ts +199 -0
- package/typechain/factories/@openzeppelin/contracts/access/index.ts +4 -0
- package/typechain/factories/@openzeppelin/contracts/index.ts +5 -0
- package/typechain/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts +352 -0
- package/typechain/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts +207 -0
- package/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts +249 -0
- package/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts +4 -0
- package/typechain/factories/@openzeppelin/contracts/token/ERC20/index.ts +6 -0
- package/typechain/factories/@openzeppelin/contracts/token/index.ts +4 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable__factory.ts +135 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.ts +92 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/access/index.ts +5 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/index.ts +7 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/index.ts +4 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.ts +40 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +4 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable__factory.ts +210 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable__factory.ts +106 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/index.ts +4 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts +4 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts +5 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/token/index.ts +4 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.ts +40 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/utils/index.ts +4 -0
- package/typechain/factories/@openzeppelin/index.ts +5 -0
- package/typechain/factories/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8__factory.ts +197 -0
- package/typechain/factories/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8__factory.ts +302 -0
- package/typechain/factories/@venusprotocol/governance-contracts/contracts/Governance/index.ts +5 -0
- package/typechain/factories/@venusprotocol/governance-contracts/contracts/index.ts +4 -0
- package/typechain/factories/@venusprotocol/governance-contracts/index.ts +4 -0
- package/typechain/factories/@venusprotocol/index.ts +4 -0
- package/typechain/factories/contracts/Interfaces/ComptrollerInterface__factory.ts +44 -0
- package/typechain/factories/contracts/Interfaces/IIncomeDestination__factory.ts +45 -0
- package/typechain/factories/contracts/Interfaces/IPrime__factory.ts +87 -0
- package/typechain/factories/contracts/Interfaces/IProtocolShareReserve__factory.ts +54 -0
- package/typechain/factories/contracts/Interfaces/IVToken__factory.ts +40 -0
- package/typechain/factories/contracts/Interfaces/PoolRegistryInterface__factory.ts +55 -0
- package/typechain/factories/contracts/Interfaces/index.ts +9 -0
- package/typechain/factories/contracts/ProtocolReserve/ProtocolShareReserve__factory.ts +790 -0
- package/typechain/factories/contracts/ProtocolReserve/index.ts +4 -0
- package/typechain/factories/contracts/Test/Mocks/MockToken__factory.ts +392 -0
- package/typechain/factories/contracts/Test/Mocks/index.ts +4 -0
- package/typechain/factories/contracts/Test/index.ts +4 -0
- package/typechain/factories/contracts/index.ts +6 -0
- package/typechain/factories/index.ts +6 -0
- package/typechain/hardhat.d.ts +213 -0
- package/typechain/index.ts +55 -0
- package/artifacts/build-info/c112788394311939ef4c47b76cde5898.json +0 -1
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
import type { PromiseOrValue } from "../../../../common";
|
|
7
|
+
import type {
|
|
8
|
+
MockToken,
|
|
9
|
+
MockTokenInterface,
|
|
10
|
+
} from "../../../../contracts/Test/Mocks/MockToken";
|
|
11
|
+
import type { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
12
|
+
import {
|
|
13
|
+
Signer,
|
|
14
|
+
utils,
|
|
15
|
+
Contract,
|
|
16
|
+
ContractFactory,
|
|
17
|
+
BigNumberish,
|
|
18
|
+
Overrides,
|
|
19
|
+
} from "ethers";
|
|
20
|
+
|
|
21
|
+
const _abi = [
|
|
22
|
+
{
|
|
23
|
+
inputs: [
|
|
24
|
+
{
|
|
25
|
+
internalType: "string",
|
|
26
|
+
name: "name_",
|
|
27
|
+
type: "string",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
internalType: "string",
|
|
31
|
+
name: "symbol_",
|
|
32
|
+
type: "string",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
internalType: "uint8",
|
|
36
|
+
name: "decimals_",
|
|
37
|
+
type: "uint8",
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
stateMutability: "nonpayable",
|
|
41
|
+
type: "constructor",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
anonymous: false,
|
|
45
|
+
inputs: [
|
|
46
|
+
{
|
|
47
|
+
indexed: true,
|
|
48
|
+
internalType: "address",
|
|
49
|
+
name: "owner",
|
|
50
|
+
type: "address",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
indexed: true,
|
|
54
|
+
internalType: "address",
|
|
55
|
+
name: "spender",
|
|
56
|
+
type: "address",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
indexed: false,
|
|
60
|
+
internalType: "uint256",
|
|
61
|
+
name: "value",
|
|
62
|
+
type: "uint256",
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
name: "Approval",
|
|
66
|
+
type: "event",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
anonymous: false,
|
|
70
|
+
inputs: [
|
|
71
|
+
{
|
|
72
|
+
indexed: true,
|
|
73
|
+
internalType: "address",
|
|
74
|
+
name: "from",
|
|
75
|
+
type: "address",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
indexed: true,
|
|
79
|
+
internalType: "address",
|
|
80
|
+
name: "to",
|
|
81
|
+
type: "address",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
indexed: false,
|
|
85
|
+
internalType: "uint256",
|
|
86
|
+
name: "value",
|
|
87
|
+
type: "uint256",
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
name: "Transfer",
|
|
91
|
+
type: "event",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
inputs: [
|
|
95
|
+
{
|
|
96
|
+
internalType: "address",
|
|
97
|
+
name: "owner",
|
|
98
|
+
type: "address",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
internalType: "address",
|
|
102
|
+
name: "spender",
|
|
103
|
+
type: "address",
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
name: "allowance",
|
|
107
|
+
outputs: [
|
|
108
|
+
{
|
|
109
|
+
internalType: "uint256",
|
|
110
|
+
name: "",
|
|
111
|
+
type: "uint256",
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
stateMutability: "view",
|
|
115
|
+
type: "function",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
inputs: [
|
|
119
|
+
{
|
|
120
|
+
internalType: "address",
|
|
121
|
+
name: "spender",
|
|
122
|
+
type: "address",
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
internalType: "uint256",
|
|
126
|
+
name: "amount",
|
|
127
|
+
type: "uint256",
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
name: "approve",
|
|
131
|
+
outputs: [
|
|
132
|
+
{
|
|
133
|
+
internalType: "bool",
|
|
134
|
+
name: "",
|
|
135
|
+
type: "bool",
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
stateMutability: "nonpayable",
|
|
139
|
+
type: "function",
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
inputs: [
|
|
143
|
+
{
|
|
144
|
+
internalType: "address",
|
|
145
|
+
name: "account",
|
|
146
|
+
type: "address",
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
name: "balanceOf",
|
|
150
|
+
outputs: [
|
|
151
|
+
{
|
|
152
|
+
internalType: "uint256",
|
|
153
|
+
name: "",
|
|
154
|
+
type: "uint256",
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
stateMutability: "view",
|
|
158
|
+
type: "function",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
inputs: [],
|
|
162
|
+
name: "decimals",
|
|
163
|
+
outputs: [
|
|
164
|
+
{
|
|
165
|
+
internalType: "uint8",
|
|
166
|
+
name: "",
|
|
167
|
+
type: "uint8",
|
|
168
|
+
},
|
|
169
|
+
],
|
|
170
|
+
stateMutability: "view",
|
|
171
|
+
type: "function",
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
inputs: [
|
|
175
|
+
{
|
|
176
|
+
internalType: "address",
|
|
177
|
+
name: "spender",
|
|
178
|
+
type: "address",
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
internalType: "uint256",
|
|
182
|
+
name: "subtractedValue",
|
|
183
|
+
type: "uint256",
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
name: "decreaseAllowance",
|
|
187
|
+
outputs: [
|
|
188
|
+
{
|
|
189
|
+
internalType: "bool",
|
|
190
|
+
name: "",
|
|
191
|
+
type: "bool",
|
|
192
|
+
},
|
|
193
|
+
],
|
|
194
|
+
stateMutability: "nonpayable",
|
|
195
|
+
type: "function",
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
inputs: [
|
|
199
|
+
{
|
|
200
|
+
internalType: "uint256",
|
|
201
|
+
name: "amount",
|
|
202
|
+
type: "uint256",
|
|
203
|
+
},
|
|
204
|
+
],
|
|
205
|
+
name: "faucet",
|
|
206
|
+
outputs: [],
|
|
207
|
+
stateMutability: "nonpayable",
|
|
208
|
+
type: "function",
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
inputs: [
|
|
212
|
+
{
|
|
213
|
+
internalType: "address",
|
|
214
|
+
name: "spender",
|
|
215
|
+
type: "address",
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
internalType: "uint256",
|
|
219
|
+
name: "addedValue",
|
|
220
|
+
type: "uint256",
|
|
221
|
+
},
|
|
222
|
+
],
|
|
223
|
+
name: "increaseAllowance",
|
|
224
|
+
outputs: [
|
|
225
|
+
{
|
|
226
|
+
internalType: "bool",
|
|
227
|
+
name: "",
|
|
228
|
+
type: "bool",
|
|
229
|
+
},
|
|
230
|
+
],
|
|
231
|
+
stateMutability: "nonpayable",
|
|
232
|
+
type: "function",
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
inputs: [],
|
|
236
|
+
name: "name",
|
|
237
|
+
outputs: [
|
|
238
|
+
{
|
|
239
|
+
internalType: "string",
|
|
240
|
+
name: "",
|
|
241
|
+
type: "string",
|
|
242
|
+
},
|
|
243
|
+
],
|
|
244
|
+
stateMutability: "view",
|
|
245
|
+
type: "function",
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
inputs: [],
|
|
249
|
+
name: "symbol",
|
|
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: "totalSupply",
|
|
263
|
+
outputs: [
|
|
264
|
+
{
|
|
265
|
+
internalType: "uint256",
|
|
266
|
+
name: "",
|
|
267
|
+
type: "uint256",
|
|
268
|
+
},
|
|
269
|
+
],
|
|
270
|
+
stateMutability: "view",
|
|
271
|
+
type: "function",
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
inputs: [
|
|
275
|
+
{
|
|
276
|
+
internalType: "address",
|
|
277
|
+
name: "to",
|
|
278
|
+
type: "address",
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
internalType: "uint256",
|
|
282
|
+
name: "amount",
|
|
283
|
+
type: "uint256",
|
|
284
|
+
},
|
|
285
|
+
],
|
|
286
|
+
name: "transfer",
|
|
287
|
+
outputs: [
|
|
288
|
+
{
|
|
289
|
+
internalType: "bool",
|
|
290
|
+
name: "",
|
|
291
|
+
type: "bool",
|
|
292
|
+
},
|
|
293
|
+
],
|
|
294
|
+
stateMutability: "nonpayable",
|
|
295
|
+
type: "function",
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
inputs: [
|
|
299
|
+
{
|
|
300
|
+
internalType: "address",
|
|
301
|
+
name: "from",
|
|
302
|
+
type: "address",
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
internalType: "address",
|
|
306
|
+
name: "to",
|
|
307
|
+
type: "address",
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
internalType: "uint256",
|
|
311
|
+
name: "amount",
|
|
312
|
+
type: "uint256",
|
|
313
|
+
},
|
|
314
|
+
],
|
|
315
|
+
name: "transferFrom",
|
|
316
|
+
outputs: [
|
|
317
|
+
{
|
|
318
|
+
internalType: "bool",
|
|
319
|
+
name: "",
|
|
320
|
+
type: "bool",
|
|
321
|
+
},
|
|
322
|
+
],
|
|
323
|
+
stateMutability: "nonpayable",
|
|
324
|
+
type: "function",
|
|
325
|
+
},
|
|
326
|
+
] as const;
|
|
327
|
+
|
|
328
|
+
const _bytecode =
|
|
329
|
+
"0x60a06040523480156200001157600080fd5b5060405162000f4538038062000f458339810160408190526200003491620001e8565b8251839083906200004d90600390602085019062000075565b5080516200006390600490602084019062000075565b50505060ff1660805250620002a99050565b82805462000083906200026d565b90600052602060002090601f016020900481019282620000a75760008555620000f2565b82601f10620000c257805160ff1916838001178555620000f2565b82800160010185558215620000f2579182015b82811115620000f2578251825591602001919060010190620000d5565b506200010092915062000104565b5090565b5b8082111562000100576000815560010162000105565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200014357600080fd5b81516001600160401b03808211156200016057620001606200011b565b604051601f8301601f19908116603f011681019082821181831017156200018b576200018b6200011b565b81604052838152602092508683858801011115620001a857600080fd5b600091505b83821015620001cc5785820183015181830184015290820190620001ad565b83821115620001de5760008385830101525b9695505050505050565b600080600060608486031215620001fe57600080fd5b83516001600160401b03808211156200021657600080fd5b620002248783880162000131565b945060208601519150808211156200023b57600080fd5b506200024a8682870162000131565b925050604084015160ff811681146200026257600080fd5b809150509250925092565b600181811c908216806200028257607f821691505b602082108103620002a357634e487b7160e01b600052602260045260246000fd5b50919050565b608051610c80620002c560003960006101460152610c806000f3fe608060405234801561001057600080fd5b50600436106100d45760003560e01c80635791589711610081578063a457c2d71161005b578063a457c2d7146101d6578063a9059cbb146101e9578063dd62ed3e146101fc57600080fd5b8063579158971461018357806370a082311461019857806395d89b41146101ce57600080fd5b806323b872dd116100b257806323b872dd1461012c578063313ce5671461013f578063395093511461017057600080fd5b806306fdde03146100d9578063095ea7b3146100f757806318160ddd1461011a575b600080fd5b6100e1610242565b6040516100ee9190610a48565b60405180910390f35b61010a610105366004610ae4565b6102d4565b60405190151581526020016100ee565b6002545b6040519081526020016100ee565b61010a61013a366004610b0e565b6102ec565b60405160ff7f00000000000000000000000000000000000000000000000000000000000000001681526020016100ee565b61010a61017e366004610ae4565b610310565b610196610191366004610b4a565b61035c565b005b61011e6101a6366004610b63565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6100e1610369565b61010a6101e4366004610ae4565b610378565b61010a6101f7366004610ae4565b61044e565b61011e61020a366004610b85565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b60606003805461025190610bb8565b80601f016020809104026020016040519081016040528092919081815260200182805461027d90610bb8565b80156102ca5780601f1061029f576101008083540402835291602001916102ca565b820191906000526020600020905b8154815290600101906020018083116102ad57829003601f168201915b5050505050905090565b6000336102e281858561045c565b5060019392505050565b6000336102fa85828561060f565b6103058585856106e6565b506001949350505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091906102e29082908690610357908790610c0b565b61045c565b6103663382610955565b50565b60606004805461025190610bb8565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919083811015610441576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610305828686840361045c565b6000336102e28185856106e6565b73ffffffffffffffffffffffffffffffffffffffff83166104fe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610438565b73ffffffffffffffffffffffffffffffffffffffff82166105a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610438565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146106e057818110156106d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610438565b6106e0848484840361045c565b50505050565b73ffffffffffffffffffffffffffffffffffffffff8316610789576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610438565b73ffffffffffffffffffffffffffffffffffffffff821661082c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610438565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040902054818110156108e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610438565b73ffffffffffffffffffffffffffffffffffffffff848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36106e0565b73ffffffffffffffffffffffffffffffffffffffff82166109d2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610438565b80600260008282546109e49190610c0b565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600060208083528351808285015260005b81811015610a7557858101830151858201604001528201610a59565b81811115610a87576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610adf57600080fd5b919050565b60008060408385031215610af757600080fd5b610b0083610abb565b946020939093013593505050565b600080600060608486031215610b2357600080fd5b610b2c84610abb565b9250610b3a60208501610abb565b9150604084013590509250925092565b600060208284031215610b5c57600080fd5b5035919050565b600060208284031215610b7557600080fd5b610b7e82610abb565b9392505050565b60008060408385031215610b9857600080fd5b610ba183610abb565b9150610baf60208401610abb565b90509250929050565b600181811c90821680610bcc57607f821691505b602082108103610c05577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60008219821115610c45577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b50019056fea26469706673582212209d4dbf50a33e22dd44012d38496fb2e02548961e1e8b3ef04a606cb97aaf2f3164736f6c634300080d0033";
|
|
330
|
+
|
|
331
|
+
type MockTokenConstructorParams =
|
|
332
|
+
| [signer?: Signer]
|
|
333
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
334
|
+
|
|
335
|
+
const isSuperArgs = (
|
|
336
|
+
xs: MockTokenConstructorParams
|
|
337
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
338
|
+
|
|
339
|
+
export class MockToken__factory extends ContractFactory {
|
|
340
|
+
constructor(...args: MockTokenConstructorParams) {
|
|
341
|
+
if (isSuperArgs(args)) {
|
|
342
|
+
super(...args);
|
|
343
|
+
} else {
|
|
344
|
+
super(_abi, _bytecode, args[0]);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
override deploy(
|
|
349
|
+
name_: PromiseOrValue<string>,
|
|
350
|
+
symbol_: PromiseOrValue<string>,
|
|
351
|
+
decimals_: PromiseOrValue<BigNumberish>,
|
|
352
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
353
|
+
): Promise<MockToken> {
|
|
354
|
+
return super.deploy(
|
|
355
|
+
name_,
|
|
356
|
+
symbol_,
|
|
357
|
+
decimals_,
|
|
358
|
+
overrides || {}
|
|
359
|
+
) as Promise<MockToken>;
|
|
360
|
+
}
|
|
361
|
+
override getDeployTransaction(
|
|
362
|
+
name_: PromiseOrValue<string>,
|
|
363
|
+
symbol_: PromiseOrValue<string>,
|
|
364
|
+
decimals_: PromiseOrValue<BigNumberish>,
|
|
365
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
366
|
+
): TransactionRequest {
|
|
367
|
+
return super.getDeployTransaction(
|
|
368
|
+
name_,
|
|
369
|
+
symbol_,
|
|
370
|
+
decimals_,
|
|
371
|
+
overrides || {}
|
|
372
|
+
);
|
|
373
|
+
}
|
|
374
|
+
override attach(address: string): MockToken {
|
|
375
|
+
return super.attach(address) as MockToken;
|
|
376
|
+
}
|
|
377
|
+
override connect(signer: Signer): MockToken__factory {
|
|
378
|
+
return super.connect(signer) as MockToken__factory;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
static readonly bytecode = _bytecode;
|
|
382
|
+
static readonly abi = _abi;
|
|
383
|
+
static createInterface(): MockTokenInterface {
|
|
384
|
+
return new utils.Interface(_abi) as MockTokenInterface;
|
|
385
|
+
}
|
|
386
|
+
static connect(
|
|
387
|
+
address: string,
|
|
388
|
+
signerOrProvider: Signer | Provider
|
|
389
|
+
): MockToken {
|
|
390
|
+
return new Contract(address, _abi, signerOrProvider) as MockToken;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
import * as Contracts from ".";
|
|
7
|
+
import {
|
|
8
|
+
FactoryOptions,
|
|
9
|
+
HardhatEthersHelpers as HardhatEthersHelpersBase,
|
|
10
|
+
} from "@nomiclabs/hardhat-ethers/types";
|
|
11
|
+
import { ethers } from "ethers";
|
|
12
|
+
|
|
13
|
+
declare module "hardhat/types/runtime" {
|
|
14
|
+
interface HardhatEthersHelpers extends HardhatEthersHelpersBase {
|
|
15
|
+
getContractFactory(
|
|
16
|
+
name: "Ownable2StepUpgradeable",
|
|
17
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
18
|
+
): Promise<Contracts.Ownable2StepUpgradeable__factory>;
|
|
19
|
+
getContractFactory(
|
|
20
|
+
name: "OwnableUpgradeable",
|
|
21
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
22
|
+
): Promise<Contracts.OwnableUpgradeable__factory>;
|
|
23
|
+
getContractFactory(
|
|
24
|
+
name: "Initializable",
|
|
25
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
26
|
+
): Promise<Contracts.Initializable__factory>;
|
|
27
|
+
getContractFactory(
|
|
28
|
+
name: "IERC20PermitUpgradeable",
|
|
29
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
30
|
+
): Promise<Contracts.IERC20PermitUpgradeable__factory>;
|
|
31
|
+
getContractFactory(
|
|
32
|
+
name: "IERC20Upgradeable",
|
|
33
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
34
|
+
): Promise<Contracts.IERC20Upgradeable__factory>;
|
|
35
|
+
getContractFactory(
|
|
36
|
+
name: "ContextUpgradeable",
|
|
37
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
38
|
+
): Promise<Contracts.ContextUpgradeable__factory>;
|
|
39
|
+
getContractFactory(
|
|
40
|
+
name: "IAccessControl",
|
|
41
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
42
|
+
): Promise<Contracts.IAccessControl__factory>;
|
|
43
|
+
getContractFactory(
|
|
44
|
+
name: "ERC20",
|
|
45
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
46
|
+
): Promise<Contracts.ERC20__factory>;
|
|
47
|
+
getContractFactory(
|
|
48
|
+
name: "IERC20Metadata",
|
|
49
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
50
|
+
): Promise<Contracts.IERC20Metadata__factory>;
|
|
51
|
+
getContractFactory(
|
|
52
|
+
name: "IERC20",
|
|
53
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
54
|
+
): Promise<Contracts.IERC20__factory>;
|
|
55
|
+
getContractFactory(
|
|
56
|
+
name: "AccessControlledV8",
|
|
57
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
58
|
+
): Promise<Contracts.AccessControlledV8__factory>;
|
|
59
|
+
getContractFactory(
|
|
60
|
+
name: "IAccessControlManagerV8",
|
|
61
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
62
|
+
): Promise<Contracts.IAccessControlManagerV8__factory>;
|
|
63
|
+
getContractFactory(
|
|
64
|
+
name: "ComptrollerInterface",
|
|
65
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
66
|
+
): Promise<Contracts.ComptrollerInterface__factory>;
|
|
67
|
+
getContractFactory(
|
|
68
|
+
name: "IIncomeDestination",
|
|
69
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
70
|
+
): Promise<Contracts.IIncomeDestination__factory>;
|
|
71
|
+
getContractFactory(
|
|
72
|
+
name: "IPrime",
|
|
73
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
74
|
+
): Promise<Contracts.IPrime__factory>;
|
|
75
|
+
getContractFactory(
|
|
76
|
+
name: "IProtocolShareReserve",
|
|
77
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
78
|
+
): Promise<Contracts.IProtocolShareReserve__factory>;
|
|
79
|
+
getContractFactory(
|
|
80
|
+
name: "IVToken",
|
|
81
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
82
|
+
): Promise<Contracts.IVToken__factory>;
|
|
83
|
+
getContractFactory(
|
|
84
|
+
name: "PoolRegistryInterface",
|
|
85
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
86
|
+
): Promise<Contracts.PoolRegistryInterface__factory>;
|
|
87
|
+
getContractFactory(
|
|
88
|
+
name: "ProtocolShareReserve",
|
|
89
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
90
|
+
): Promise<Contracts.ProtocolShareReserve__factory>;
|
|
91
|
+
getContractFactory(
|
|
92
|
+
name: "MockToken",
|
|
93
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
94
|
+
): Promise<Contracts.MockToken__factory>;
|
|
95
|
+
|
|
96
|
+
getContractAt(
|
|
97
|
+
name: "Ownable2StepUpgradeable",
|
|
98
|
+
address: string,
|
|
99
|
+
signer?: ethers.Signer
|
|
100
|
+
): Promise<Contracts.Ownable2StepUpgradeable>;
|
|
101
|
+
getContractAt(
|
|
102
|
+
name: "OwnableUpgradeable",
|
|
103
|
+
address: string,
|
|
104
|
+
signer?: ethers.Signer
|
|
105
|
+
): Promise<Contracts.OwnableUpgradeable>;
|
|
106
|
+
getContractAt(
|
|
107
|
+
name: "Initializable",
|
|
108
|
+
address: string,
|
|
109
|
+
signer?: ethers.Signer
|
|
110
|
+
): Promise<Contracts.Initializable>;
|
|
111
|
+
getContractAt(
|
|
112
|
+
name: "IERC20PermitUpgradeable",
|
|
113
|
+
address: string,
|
|
114
|
+
signer?: ethers.Signer
|
|
115
|
+
): Promise<Contracts.IERC20PermitUpgradeable>;
|
|
116
|
+
getContractAt(
|
|
117
|
+
name: "IERC20Upgradeable",
|
|
118
|
+
address: string,
|
|
119
|
+
signer?: ethers.Signer
|
|
120
|
+
): Promise<Contracts.IERC20Upgradeable>;
|
|
121
|
+
getContractAt(
|
|
122
|
+
name: "ContextUpgradeable",
|
|
123
|
+
address: string,
|
|
124
|
+
signer?: ethers.Signer
|
|
125
|
+
): Promise<Contracts.ContextUpgradeable>;
|
|
126
|
+
getContractAt(
|
|
127
|
+
name: "IAccessControl",
|
|
128
|
+
address: string,
|
|
129
|
+
signer?: ethers.Signer
|
|
130
|
+
): Promise<Contracts.IAccessControl>;
|
|
131
|
+
getContractAt(
|
|
132
|
+
name: "ERC20",
|
|
133
|
+
address: string,
|
|
134
|
+
signer?: ethers.Signer
|
|
135
|
+
): Promise<Contracts.ERC20>;
|
|
136
|
+
getContractAt(
|
|
137
|
+
name: "IERC20Metadata",
|
|
138
|
+
address: string,
|
|
139
|
+
signer?: ethers.Signer
|
|
140
|
+
): Promise<Contracts.IERC20Metadata>;
|
|
141
|
+
getContractAt(
|
|
142
|
+
name: "IERC20",
|
|
143
|
+
address: string,
|
|
144
|
+
signer?: ethers.Signer
|
|
145
|
+
): Promise<Contracts.IERC20>;
|
|
146
|
+
getContractAt(
|
|
147
|
+
name: "AccessControlledV8",
|
|
148
|
+
address: string,
|
|
149
|
+
signer?: ethers.Signer
|
|
150
|
+
): Promise<Contracts.AccessControlledV8>;
|
|
151
|
+
getContractAt(
|
|
152
|
+
name: "IAccessControlManagerV8",
|
|
153
|
+
address: string,
|
|
154
|
+
signer?: ethers.Signer
|
|
155
|
+
): Promise<Contracts.IAccessControlManagerV8>;
|
|
156
|
+
getContractAt(
|
|
157
|
+
name: "ComptrollerInterface",
|
|
158
|
+
address: string,
|
|
159
|
+
signer?: ethers.Signer
|
|
160
|
+
): Promise<Contracts.ComptrollerInterface>;
|
|
161
|
+
getContractAt(
|
|
162
|
+
name: "IIncomeDestination",
|
|
163
|
+
address: string,
|
|
164
|
+
signer?: ethers.Signer
|
|
165
|
+
): Promise<Contracts.IIncomeDestination>;
|
|
166
|
+
getContractAt(
|
|
167
|
+
name: "IPrime",
|
|
168
|
+
address: string,
|
|
169
|
+
signer?: ethers.Signer
|
|
170
|
+
): Promise<Contracts.IPrime>;
|
|
171
|
+
getContractAt(
|
|
172
|
+
name: "IProtocolShareReserve",
|
|
173
|
+
address: string,
|
|
174
|
+
signer?: ethers.Signer
|
|
175
|
+
): Promise<Contracts.IProtocolShareReserve>;
|
|
176
|
+
getContractAt(
|
|
177
|
+
name: "IVToken",
|
|
178
|
+
address: string,
|
|
179
|
+
signer?: ethers.Signer
|
|
180
|
+
): Promise<Contracts.IVToken>;
|
|
181
|
+
getContractAt(
|
|
182
|
+
name: "PoolRegistryInterface",
|
|
183
|
+
address: string,
|
|
184
|
+
signer?: ethers.Signer
|
|
185
|
+
): Promise<Contracts.PoolRegistryInterface>;
|
|
186
|
+
getContractAt(
|
|
187
|
+
name: "ProtocolShareReserve",
|
|
188
|
+
address: string,
|
|
189
|
+
signer?: ethers.Signer
|
|
190
|
+
): Promise<Contracts.ProtocolShareReserve>;
|
|
191
|
+
getContractAt(
|
|
192
|
+
name: "MockToken",
|
|
193
|
+
address: string,
|
|
194
|
+
signer?: ethers.Signer
|
|
195
|
+
): Promise<Contracts.MockToken>;
|
|
196
|
+
|
|
197
|
+
// default types
|
|
198
|
+
getContractFactory(
|
|
199
|
+
name: string,
|
|
200
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
201
|
+
): Promise<ethers.ContractFactory>;
|
|
202
|
+
getContractFactory(
|
|
203
|
+
abi: any[],
|
|
204
|
+
bytecode: ethers.utils.BytesLike,
|
|
205
|
+
signer?: ethers.Signer
|
|
206
|
+
): Promise<ethers.ContractFactory>;
|
|
207
|
+
getContractAt(
|
|
208
|
+
nameOrAbi: string | any[],
|
|
209
|
+
address: string,
|
|
210
|
+
signer?: ethers.Signer
|
|
211
|
+
): Promise<ethers.Contract>;
|
|
212
|
+
}
|
|
213
|
+
}
|