@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.
Files changed (120) hide show
  1. package/artifacts/@openzeppelin/contracts/access/IAccessControl.sol/IAccessControl.dbg.json +1 -1
  2. package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json +1 -1
  3. package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +1 -1
  4. package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json +1 -1
  5. package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +1 -1
  6. package/artifacts/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol/Ownable2StepUpgradeable.dbg.json +1 -1
  7. package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.dbg.json +1 -1
  8. package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.dbg.json +1 -1
  9. package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol/IERC20Upgradeable.dbg.json +1 -1
  10. package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.dbg.json +1 -1
  11. package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol/SafeERC20Upgradeable.dbg.json +1 -1
  12. package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json +1 -1
  13. package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.dbg.json +1 -1
  14. package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.sol/AccessControlledV8.dbg.json +1 -1
  15. package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.sol/IAccessControlManagerV8.dbg.json +1 -1
  16. package/artifacts/build-info/3320cd7a54f60491d1bcaf9577bfbaa8.json +1 -0
  17. package/artifacts/contracts/Interfaces/ComptrollerInterface.sol/ComptrollerInterface.dbg.json +1 -1
  18. package/artifacts/contracts/Interfaces/IIncomeDestination.sol/IIncomeDestination.dbg.json +1 -1
  19. package/artifacts/contracts/Interfaces/IPrime.sol/IPrime.dbg.json +1 -1
  20. package/artifacts/contracts/Interfaces/IProtocolShareReserve.sol/IProtocolShareReserve.dbg.json +1 -1
  21. package/artifacts/contracts/Interfaces/IVToken.sol/IVToken.dbg.json +1 -1
  22. package/artifacts/contracts/Interfaces/PoolRegistryInterface.sol/PoolRegistryInterface.dbg.json +1 -1
  23. package/artifacts/contracts/ProtocolReserve/ProtocolShareReserve.sol/ProtocolShareReserve.dbg.json +1 -1
  24. package/artifacts/contracts/ProtocolReserve/ProtocolShareReserve.sol/ProtocolShareReserve.json +2 -27
  25. package/artifacts/contracts/Test/Mocks/MockToken.sol/MockToken.dbg.json +1 -1
  26. package/contracts/ProtocolReserve/ProtocolShareReserve.sol +0 -3
  27. package/package.json +4 -7
  28. package/typechain/@openzeppelin/contracts/access/IAccessControl.ts +343 -0
  29. package/typechain/@openzeppelin/contracts/access/index.ts +4 -0
  30. package/typechain/@openzeppelin/contracts/index.ts +11 -0
  31. package/typechain/@openzeppelin/contracts/token/ERC20/ERC20.ts +466 -0
  32. package/typechain/@openzeppelin/contracts/token/ERC20/IERC20.ts +344 -0
  33. package/typechain/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.ts +386 -0
  34. package/typechain/@openzeppelin/contracts/token/ERC20/extensions/index.ts +4 -0
  35. package/typechain/@openzeppelin/contracts/token/ERC20/index.ts +10 -0
  36. package/typechain/@openzeppelin/contracts/token/index.ts +8 -0
  37. package/typechain/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.ts +264 -0
  38. package/typechain/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.ts +190 -0
  39. package/typechain/@openzeppelin/contracts-upgradeable/access/index.ts +5 -0
  40. package/typechain/@openzeppelin/contracts-upgradeable/index.ts +17 -0
  41. package/typechain/@openzeppelin/contracts-upgradeable/proxy/index.ts +8 -0
  42. package/typechain/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.ts +72 -0
  43. package/typechain/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +4 -0
  44. package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.ts +344 -0
  45. package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.ts +195 -0
  46. package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/index.ts +4 -0
  47. package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts +8 -0
  48. package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts +9 -0
  49. package/typechain/@openzeppelin/contracts-upgradeable/token/index.ts +8 -0
  50. package/typechain/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.ts +72 -0
  51. package/typechain/@openzeppelin/contracts-upgradeable/utils/index.ts +4 -0
  52. package/typechain/@openzeppelin/index.ts +11 -0
  53. package/typechain/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.ts +344 -0
  54. package/typechain/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.ts +530 -0
  55. package/typechain/@venusprotocol/governance-contracts/contracts/Governance/index.ts +5 -0
  56. package/typechain/@venusprotocol/governance-contracts/contracts/index.ts +8 -0
  57. package/typechain/@venusprotocol/governance-contracts/index.ts +8 -0
  58. package/typechain/@venusprotocol/index.ts +8 -0
  59. package/typechain/common.ts +48 -0
  60. package/typechain/contracts/Interfaces/ComptrollerInterface.ts +90 -0
  61. package/typechain/contracts/Interfaces/IIncomeDestination.ts +112 -0
  62. package/typechain/contracts/Interfaces/IPrime.ts +202 -0
  63. package/typechain/contracts/Interfaces/IProtocolShareReserve.ts +122 -0
  64. package/typechain/contracts/Interfaces/IVToken.ts +87 -0
  65. package/typechain/contracts/Interfaces/PoolRegistryInterface.ts +110 -0
  66. package/typechain/contracts/Interfaces/index.ts +9 -0
  67. package/typechain/contracts/ProtocolReserve/ProtocolShareReserve.ts +1074 -0
  68. package/typechain/contracts/ProtocolReserve/index.ts +4 -0
  69. package/typechain/contracts/Test/Mocks/MockToken.ts +498 -0
  70. package/typechain/contracts/Test/Mocks/index.ts +4 -0
  71. package/typechain/contracts/Test/index.ts +8 -0
  72. package/typechain/contracts/index.ts +14 -0
  73. package/typechain/factories/@openzeppelin/contracts/access/IAccessControl__factory.ts +199 -0
  74. package/typechain/factories/@openzeppelin/contracts/access/index.ts +4 -0
  75. package/typechain/factories/@openzeppelin/contracts/index.ts +5 -0
  76. package/typechain/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts +352 -0
  77. package/typechain/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts +207 -0
  78. package/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts +249 -0
  79. package/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts +4 -0
  80. package/typechain/factories/@openzeppelin/contracts/token/ERC20/index.ts +6 -0
  81. package/typechain/factories/@openzeppelin/contracts/token/index.ts +4 -0
  82. package/typechain/factories/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable__factory.ts +135 -0
  83. package/typechain/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.ts +92 -0
  84. package/typechain/factories/@openzeppelin/contracts-upgradeable/access/index.ts +5 -0
  85. package/typechain/factories/@openzeppelin/contracts-upgradeable/index.ts +7 -0
  86. package/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/index.ts +4 -0
  87. package/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.ts +40 -0
  88. package/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +4 -0
  89. package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable__factory.ts +210 -0
  90. package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable__factory.ts +106 -0
  91. package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/index.ts +4 -0
  92. package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts +4 -0
  93. package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts +5 -0
  94. package/typechain/factories/@openzeppelin/contracts-upgradeable/token/index.ts +4 -0
  95. package/typechain/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.ts +40 -0
  96. package/typechain/factories/@openzeppelin/contracts-upgradeable/utils/index.ts +4 -0
  97. package/typechain/factories/@openzeppelin/index.ts +5 -0
  98. package/typechain/factories/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8__factory.ts +197 -0
  99. package/typechain/factories/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8__factory.ts +302 -0
  100. package/typechain/factories/@venusprotocol/governance-contracts/contracts/Governance/index.ts +5 -0
  101. package/typechain/factories/@venusprotocol/governance-contracts/contracts/index.ts +4 -0
  102. package/typechain/factories/@venusprotocol/governance-contracts/index.ts +4 -0
  103. package/typechain/factories/@venusprotocol/index.ts +4 -0
  104. package/typechain/factories/contracts/Interfaces/ComptrollerInterface__factory.ts +44 -0
  105. package/typechain/factories/contracts/Interfaces/IIncomeDestination__factory.ts +45 -0
  106. package/typechain/factories/contracts/Interfaces/IPrime__factory.ts +87 -0
  107. package/typechain/factories/contracts/Interfaces/IProtocolShareReserve__factory.ts +54 -0
  108. package/typechain/factories/contracts/Interfaces/IVToken__factory.ts +40 -0
  109. package/typechain/factories/contracts/Interfaces/PoolRegistryInterface__factory.ts +55 -0
  110. package/typechain/factories/contracts/Interfaces/index.ts +9 -0
  111. package/typechain/factories/contracts/ProtocolReserve/ProtocolShareReserve__factory.ts +790 -0
  112. package/typechain/factories/contracts/ProtocolReserve/index.ts +4 -0
  113. package/typechain/factories/contracts/Test/Mocks/MockToken__factory.ts +392 -0
  114. package/typechain/factories/contracts/Test/Mocks/index.ts +4 -0
  115. package/typechain/factories/contracts/Test/index.ts +4 -0
  116. package/typechain/factories/contracts/index.ts +6 -0
  117. package/typechain/factories/index.ts +6 -0
  118. package/typechain/hardhat.d.ts +213 -0
  119. package/typechain/index.ts +55 -0
  120. package/artifacts/build-info/c112788394311939ef4c47b76cde5898.json +0 -1
@@ -0,0 +1,302 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+
3
+ /* tslint:disable */
4
+
5
+ /* eslint-disable */
6
+ import type {
7
+ IAccessControlManagerV8,
8
+ IAccessControlManagerV8Interface,
9
+ } from "../../../../../@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8";
10
+ import type { Provider } from "@ethersproject/providers";
11
+ import { Contract, Signer, utils } from "ethers";
12
+
13
+ const _abi = [
14
+ {
15
+ anonymous: false,
16
+ inputs: [
17
+ {
18
+ indexed: true,
19
+ internalType: "bytes32",
20
+ name: "role",
21
+ type: "bytes32",
22
+ },
23
+ {
24
+ indexed: true,
25
+ internalType: "bytes32",
26
+ name: "previousAdminRole",
27
+ type: "bytes32",
28
+ },
29
+ {
30
+ indexed: true,
31
+ internalType: "bytes32",
32
+ name: "newAdminRole",
33
+ type: "bytes32",
34
+ },
35
+ ],
36
+ name: "RoleAdminChanged",
37
+ type: "event",
38
+ },
39
+ {
40
+ anonymous: false,
41
+ inputs: [
42
+ {
43
+ indexed: true,
44
+ internalType: "bytes32",
45
+ name: "role",
46
+ type: "bytes32",
47
+ },
48
+ {
49
+ indexed: true,
50
+ internalType: "address",
51
+ name: "account",
52
+ type: "address",
53
+ },
54
+ {
55
+ indexed: true,
56
+ internalType: "address",
57
+ name: "sender",
58
+ type: "address",
59
+ },
60
+ ],
61
+ name: "RoleGranted",
62
+ type: "event",
63
+ },
64
+ {
65
+ anonymous: false,
66
+ inputs: [
67
+ {
68
+ indexed: true,
69
+ internalType: "bytes32",
70
+ name: "role",
71
+ type: "bytes32",
72
+ },
73
+ {
74
+ indexed: true,
75
+ internalType: "address",
76
+ name: "account",
77
+ type: "address",
78
+ },
79
+ {
80
+ indexed: true,
81
+ internalType: "address",
82
+ name: "sender",
83
+ type: "address",
84
+ },
85
+ ],
86
+ name: "RoleRevoked",
87
+ type: "event",
88
+ },
89
+ {
90
+ inputs: [
91
+ {
92
+ internalType: "bytes32",
93
+ name: "role",
94
+ type: "bytes32",
95
+ },
96
+ ],
97
+ name: "getRoleAdmin",
98
+ outputs: [
99
+ {
100
+ internalType: "bytes32",
101
+ name: "",
102
+ type: "bytes32",
103
+ },
104
+ ],
105
+ stateMutability: "view",
106
+ type: "function",
107
+ },
108
+ {
109
+ inputs: [
110
+ {
111
+ internalType: "address",
112
+ name: "contractAddress",
113
+ type: "address",
114
+ },
115
+ {
116
+ internalType: "string",
117
+ name: "functionSig",
118
+ type: "string",
119
+ },
120
+ {
121
+ internalType: "address",
122
+ name: "accountToPermit",
123
+ type: "address",
124
+ },
125
+ ],
126
+ name: "giveCallPermission",
127
+ outputs: [],
128
+ stateMutability: "nonpayable",
129
+ type: "function",
130
+ },
131
+ {
132
+ inputs: [
133
+ {
134
+ internalType: "bytes32",
135
+ name: "role",
136
+ type: "bytes32",
137
+ },
138
+ {
139
+ internalType: "address",
140
+ name: "account",
141
+ type: "address",
142
+ },
143
+ ],
144
+ name: "grantRole",
145
+ outputs: [],
146
+ stateMutability: "nonpayable",
147
+ type: "function",
148
+ },
149
+ {
150
+ inputs: [
151
+ {
152
+ internalType: "address",
153
+ name: "account",
154
+ type: "address",
155
+ },
156
+ {
157
+ internalType: "address",
158
+ name: "contractAddress",
159
+ type: "address",
160
+ },
161
+ {
162
+ internalType: "string",
163
+ name: "functionSig",
164
+ type: "string",
165
+ },
166
+ ],
167
+ name: "hasPermission",
168
+ outputs: [
169
+ {
170
+ internalType: "bool",
171
+ name: "",
172
+ type: "bool",
173
+ },
174
+ ],
175
+ stateMutability: "view",
176
+ type: "function",
177
+ },
178
+ {
179
+ inputs: [
180
+ {
181
+ internalType: "bytes32",
182
+ name: "role",
183
+ type: "bytes32",
184
+ },
185
+ {
186
+ internalType: "address",
187
+ name: "account",
188
+ type: "address",
189
+ },
190
+ ],
191
+ name: "hasRole",
192
+ outputs: [
193
+ {
194
+ internalType: "bool",
195
+ name: "",
196
+ type: "bool",
197
+ },
198
+ ],
199
+ stateMutability: "view",
200
+ type: "function",
201
+ },
202
+ {
203
+ inputs: [
204
+ {
205
+ internalType: "address",
206
+ name: "account",
207
+ type: "address",
208
+ },
209
+ {
210
+ internalType: "string",
211
+ name: "functionSig",
212
+ type: "string",
213
+ },
214
+ ],
215
+ name: "isAllowedToCall",
216
+ outputs: [
217
+ {
218
+ internalType: "bool",
219
+ name: "",
220
+ type: "bool",
221
+ },
222
+ ],
223
+ stateMutability: "view",
224
+ type: "function",
225
+ },
226
+ {
227
+ inputs: [
228
+ {
229
+ internalType: "bytes32",
230
+ name: "role",
231
+ type: "bytes32",
232
+ },
233
+ {
234
+ internalType: "address",
235
+ name: "account",
236
+ type: "address",
237
+ },
238
+ ],
239
+ name: "renounceRole",
240
+ outputs: [],
241
+ stateMutability: "nonpayable",
242
+ type: "function",
243
+ },
244
+ {
245
+ inputs: [
246
+ {
247
+ internalType: "address",
248
+ name: "contractAddress",
249
+ type: "address",
250
+ },
251
+ {
252
+ internalType: "string",
253
+ name: "functionSig",
254
+ type: "string",
255
+ },
256
+ {
257
+ internalType: "address",
258
+ name: "accountToRevoke",
259
+ type: "address",
260
+ },
261
+ ],
262
+ name: "revokeCallPermission",
263
+ outputs: [],
264
+ stateMutability: "nonpayable",
265
+ type: "function",
266
+ },
267
+ {
268
+ inputs: [
269
+ {
270
+ internalType: "bytes32",
271
+ name: "role",
272
+ type: "bytes32",
273
+ },
274
+ {
275
+ internalType: "address",
276
+ name: "account",
277
+ type: "address",
278
+ },
279
+ ],
280
+ name: "revokeRole",
281
+ outputs: [],
282
+ stateMutability: "nonpayable",
283
+ type: "function",
284
+ },
285
+ ] as const;
286
+
287
+ export class IAccessControlManagerV8__factory {
288
+ static readonly abi = _abi;
289
+ static createInterface(): IAccessControlManagerV8Interface {
290
+ return new utils.Interface(_abi) as IAccessControlManagerV8Interface;
291
+ }
292
+ static connect(
293
+ address: string,
294
+ signerOrProvider: Signer | Provider
295
+ ): IAccessControlManagerV8 {
296
+ return new Contract(
297
+ address,
298
+ _abi,
299
+ signerOrProvider
300
+ ) as IAccessControlManagerV8;
301
+ }
302
+ }
@@ -0,0 +1,5 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export { AccessControlledV8__factory } from "./AccessControlledV8__factory";
5
+ export { IAccessControlManagerV8__factory } from "./IAccessControlManagerV8__factory";
@@ -0,0 +1,4 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export * as governance from "./Governance";
@@ -0,0 +1,4 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export * as contracts from "./contracts";
@@ -0,0 +1,4 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export * as governanceContracts from "./governance-contracts";
@@ -0,0 +1,44 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+
3
+ /* tslint:disable */
4
+
5
+ /* eslint-disable */
6
+ import type {
7
+ ComptrollerInterface,
8
+ ComptrollerInterfaceInterface,
9
+ } from "../../../contracts/Interfaces/ComptrollerInterface";
10
+ import type { Provider } from "@ethersproject/providers";
11
+ import { Contract, Signer, utils } from "ethers";
12
+
13
+ const _abi = [
14
+ {
15
+ inputs: [],
16
+ name: "isComptroller",
17
+ outputs: [
18
+ {
19
+ internalType: "bool",
20
+ name: "",
21
+ type: "bool",
22
+ },
23
+ ],
24
+ stateMutability: "view",
25
+ type: "function",
26
+ },
27
+ ] as const;
28
+
29
+ export class ComptrollerInterface__factory {
30
+ static readonly abi = _abi;
31
+ static createInterface(): ComptrollerInterfaceInterface {
32
+ return new utils.Interface(_abi) as ComptrollerInterfaceInterface;
33
+ }
34
+ static connect(
35
+ address: string,
36
+ signerOrProvider: Signer | Provider
37
+ ): ComptrollerInterface {
38
+ return new Contract(
39
+ address,
40
+ _abi,
41
+ signerOrProvider
42
+ ) as ComptrollerInterface;
43
+ }
44
+ }
@@ -0,0 +1,45 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+
3
+ /* tslint:disable */
4
+
5
+ /* eslint-disable */
6
+ import type {
7
+ IIncomeDestination,
8
+ IIncomeDestinationInterface,
9
+ } from "../../../contracts/Interfaces/IIncomeDestination";
10
+ import type { Provider } from "@ethersproject/providers";
11
+ import { Contract, Signer, utils } from "ethers";
12
+
13
+ const _abi = [
14
+ {
15
+ inputs: [
16
+ {
17
+ internalType: "address",
18
+ name: "comptroller",
19
+ type: "address",
20
+ },
21
+ {
22
+ internalType: "address",
23
+ name: "asset",
24
+ type: "address",
25
+ },
26
+ ],
27
+ name: "updateAssetsState",
28
+ outputs: [],
29
+ stateMutability: "nonpayable",
30
+ type: "function",
31
+ },
32
+ ] as const;
33
+
34
+ export class IIncomeDestination__factory {
35
+ static readonly abi = _abi;
36
+ static createInterface(): IIncomeDestinationInterface {
37
+ return new utils.Interface(_abi) as IIncomeDestinationInterface;
38
+ }
39
+ static connect(
40
+ address: string,
41
+ signerOrProvider: Signer | Provider
42
+ ): IIncomeDestination {
43
+ return new Contract(address, _abi, signerOrProvider) as IIncomeDestination;
44
+ }
45
+ }
@@ -0,0 +1,87 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+
3
+ /* tslint:disable */
4
+
5
+ /* eslint-disable */
6
+ import type {
7
+ IPrime,
8
+ IPrimeInterface,
9
+ } from "../../../contracts/Interfaces/IPrime";
10
+ import type { Provider } from "@ethersproject/providers";
11
+ import { Contract, Signer, utils } from "ethers";
12
+
13
+ const _abi = [
14
+ {
15
+ inputs: [
16
+ {
17
+ internalType: "address",
18
+ name: "vToken",
19
+ type: "address",
20
+ },
21
+ ],
22
+ name: "accrueInterest",
23
+ outputs: [],
24
+ stateMutability: "nonpayable",
25
+ type: "function",
26
+ },
27
+ {
28
+ inputs: [],
29
+ name: "allMarkets",
30
+ outputs: [
31
+ {
32
+ internalType: "address[]",
33
+ name: "",
34
+ type: "address[]",
35
+ },
36
+ ],
37
+ stateMutability: "view",
38
+ type: "function",
39
+ },
40
+ {
41
+ inputs: [
42
+ {
43
+ internalType: "address",
44
+ name: "comptroller",
45
+ type: "address",
46
+ },
47
+ {
48
+ internalType: "address",
49
+ name: "asset",
50
+ type: "address",
51
+ },
52
+ ],
53
+ name: "updateAssetsState",
54
+ outputs: [],
55
+ stateMutability: "nonpayable",
56
+ type: "function",
57
+ },
58
+ {
59
+ inputs: [
60
+ {
61
+ internalType: "address",
62
+ name: "asset",
63
+ type: "address",
64
+ },
65
+ ],
66
+ name: "vTokenForAsset",
67
+ outputs: [
68
+ {
69
+ internalType: "address",
70
+ name: "",
71
+ type: "address",
72
+ },
73
+ ],
74
+ stateMutability: "view",
75
+ type: "function",
76
+ },
77
+ ] as const;
78
+
79
+ export class IPrime__factory {
80
+ static readonly abi = _abi;
81
+ static createInterface(): IPrimeInterface {
82
+ return new utils.Interface(_abi) as IPrimeInterface;
83
+ }
84
+ static connect(address: string, signerOrProvider: Signer | Provider): IPrime {
85
+ return new Contract(address, _abi, signerOrProvider) as IPrime;
86
+ }
87
+ }
@@ -0,0 +1,54 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+
3
+ /* tslint:disable */
4
+
5
+ /* eslint-disable */
6
+ import type {
7
+ IProtocolShareReserve,
8
+ IProtocolShareReserveInterface,
9
+ } from "../../../contracts/Interfaces/IProtocolShareReserve";
10
+ import type { Provider } from "@ethersproject/providers";
11
+ import { Contract, Signer, utils } from "ethers";
12
+
13
+ const _abi = [
14
+ {
15
+ inputs: [
16
+ {
17
+ internalType: "address",
18
+ name: "comptroller",
19
+ type: "address",
20
+ },
21
+ {
22
+ internalType: "address",
23
+ name: "asset",
24
+ type: "address",
25
+ },
26
+ {
27
+ internalType: "enum IProtocolShareReserve.IncomeType",
28
+ name: "incomeType",
29
+ type: "uint8",
30
+ },
31
+ ],
32
+ name: "updateAssetsState",
33
+ outputs: [],
34
+ stateMutability: "nonpayable",
35
+ type: "function",
36
+ },
37
+ ] as const;
38
+
39
+ export class IProtocolShareReserve__factory {
40
+ static readonly abi = _abi;
41
+ static createInterface(): IProtocolShareReserveInterface {
42
+ return new utils.Interface(_abi) as IProtocolShareReserveInterface;
43
+ }
44
+ static connect(
45
+ address: string,
46
+ signerOrProvider: Signer | Provider
47
+ ): IProtocolShareReserve {
48
+ return new Contract(
49
+ address,
50
+ _abi,
51
+ signerOrProvider
52
+ ) as IProtocolShareReserve;
53
+ }
54
+ }
@@ -0,0 +1,40 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+
3
+ /* tslint:disable */
4
+
5
+ /* eslint-disable */
6
+ import type {
7
+ IVToken,
8
+ IVTokenInterface,
9
+ } from "../../../contracts/Interfaces/IVToken";
10
+ import type { Provider } from "@ethersproject/providers";
11
+ import { Contract, Signer, utils } from "ethers";
12
+
13
+ const _abi = [
14
+ {
15
+ inputs: [],
16
+ name: "underlying",
17
+ outputs: [
18
+ {
19
+ internalType: "address",
20
+ name: "",
21
+ type: "address",
22
+ },
23
+ ],
24
+ stateMutability: "view",
25
+ type: "function",
26
+ },
27
+ ] as const;
28
+
29
+ export class IVToken__factory {
30
+ static readonly abi = _abi;
31
+ static createInterface(): IVTokenInterface {
32
+ return new utils.Interface(_abi) as IVTokenInterface;
33
+ }
34
+ static connect(
35
+ address: string,
36
+ signerOrProvider: Signer | Provider
37
+ ): IVToken {
38
+ return new Contract(address, _abi, signerOrProvider) as IVToken;
39
+ }
40
+ }
@@ -0,0 +1,55 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+
3
+ /* tslint:disable */
4
+
5
+ /* eslint-disable */
6
+ import type {
7
+ PoolRegistryInterface,
8
+ PoolRegistryInterfaceInterface,
9
+ } from "../../../contracts/Interfaces/PoolRegistryInterface";
10
+ import type { Provider } from "@ethersproject/providers";
11
+ import { Contract, Signer, utils } from "ethers";
12
+
13
+ const _abi = [
14
+ {
15
+ inputs: [
16
+ {
17
+ internalType: "address",
18
+ name: "comptroller",
19
+ type: "address",
20
+ },
21
+ {
22
+ internalType: "address",
23
+ name: "asset",
24
+ type: "address",
25
+ },
26
+ ],
27
+ name: "getVTokenForAsset",
28
+ outputs: [
29
+ {
30
+ internalType: "address",
31
+ name: "",
32
+ type: "address",
33
+ },
34
+ ],
35
+ stateMutability: "view",
36
+ type: "function",
37
+ },
38
+ ] as const;
39
+
40
+ export class PoolRegistryInterface__factory {
41
+ static readonly abi = _abi;
42
+ static createInterface(): PoolRegistryInterfaceInterface {
43
+ return new utils.Interface(_abi) as PoolRegistryInterfaceInterface;
44
+ }
45
+ static connect(
46
+ address: string,
47
+ signerOrProvider: Signer | Provider
48
+ ): PoolRegistryInterface {
49
+ return new Contract(
50
+ address,
51
+ _abi,
52
+ signerOrProvider
53
+ ) as PoolRegistryInterface;
54
+ }
55
+ }
@@ -0,0 +1,9 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export { ComptrollerInterface__factory } from "./ComptrollerInterface__factory";
5
+ export { IIncomeDestination__factory } from "./IIncomeDestination__factory";
6
+ export { IPrime__factory } from "./IPrime__factory";
7
+ export { IProtocolShareReserve__factory } from "./IProtocolShareReserve__factory";
8
+ export { IVToken__factory } from "./IVToken__factory";
9
+ export { PoolRegistryInterface__factory } from "./PoolRegistryInterface__factory";