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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/package.json +3 -2
  2. package/typechain/AbstractTokenConverter.d.ts +1775 -0
  3. package/typechain/AccessControl.d.ts +388 -0
  4. package/typechain/AccessControlledV8.d.ts +341 -0
  5. package/typechain/BeaconProxy.d.ts +126 -0
  6. package/typechain/BoundValidatorInterface.d.ts +126 -0
  7. package/typechain/ContextUpgradeable.d.ts +92 -0
  8. package/typechain/ConverterNetwork.d.ts +723 -0
  9. package/typechain/ERC165.d.ts +116 -0
  10. package/typechain/ERC1967Proxy.d.ts +126 -0
  11. package/typechain/ERC1967Upgrade.d.ts +126 -0
  12. package/typechain/ERC20.d.ts +441 -0
  13. package/typechain/IAbstractTokenConverter.d.ts +773 -0
  14. package/typechain/IAccessControl.d.ts +333 -0
  15. package/typechain/IAccessControlManagerV8.d.ts +504 -0
  16. package/typechain/IBeacon.d.ts +101 -0
  17. package/typechain/IComptroller.d.ts +136 -0
  18. package/typechain/IConverterNetwork.d.ts +292 -0
  19. package/typechain/IERC165.d.ts +116 -0
  20. package/typechain/IERC1822Proxiable.d.ts +101 -0
  21. package/typechain/IERC1967.d.ts +126 -0
  22. package/typechain/IERC20.d.ts +324 -0
  23. package/typechain/IERC20Metadata.d.ts +363 -0
  24. package/typechain/IERC20PermitUpgradeable.d.ts +187 -0
  25. package/typechain/IERC20Upgradeable.d.ts +324 -0
  26. package/typechain/IIncomeDestination.d.ts +122 -0
  27. package/typechain/IPoolRegistry.d.ts +155 -0
  28. package/typechain/IProtocolShareReserve.d.ts +127 -0
  29. package/typechain/IRiskFund.d.ts +200 -0
  30. package/typechain/IRiskFundConverter.d.ts +138 -0
  31. package/typechain/IRiskFundGetters.d.ts +103 -0
  32. package/typechain/IShortfall.d.ts +110 -0
  33. package/typechain/ITransparentUpgradeableProxy.d.ts +256 -0
  34. package/typechain/IVToken.d.ts +98 -0
  35. package/typechain/IXVSVault.d.ts +95 -0
  36. package/typechain/Initializable.d.ts +92 -0
  37. package/typechain/MaxLoopsLimitHelper.d.ts +128 -0
  38. package/typechain/MaxLoopsLimitHelpersStorage.d.ts +101 -0
  39. package/typechain/MockACM.d.ts +615 -0
  40. package/typechain/MockArraySorter.d.ts +118 -0
  41. package/typechain/MockConverter.d.ts +1969 -0
  42. package/typechain/MockDeflatingToken.d.ts +486 -0
  43. package/typechain/MockRiskFundConverter.d.ts +2479 -0
  44. package/typechain/MockToken.d.ts +505 -0
  45. package/typechain/OracleInterface.d.ts +98 -0
  46. package/typechain/Ownable.d.ts +181 -0
  47. package/typechain/Ownable2StepUpgradeable.d.ts +261 -0
  48. package/typechain/OwnableUpgradeable.d.ts +193 -0
  49. package/typechain/PausableUpgradeable.d.ts +129 -0
  50. package/typechain/ProtocolShareReserve.d.ts +1214 -0
  51. package/typechain/Proxy.d.ts +78 -0
  52. package/typechain/ProxyAdmin.d.ts +357 -0
  53. package/typechain/ReentrancyGuardUpgradeable.d.ts +92 -0
  54. package/typechain/ReserveHelpersStorage.d.ts +300 -0
  55. package/typechain/ResilientOracle.d.ts +1034 -0
  56. package/typechain/ResilientOracleInterface.d.ts +192 -0
  57. package/typechain/RiskFundConverter.d.ts +2235 -0
  58. package/typechain/RiskFundV1Storage.d.ts +353 -0
  59. package/typechain/RiskFundV2.d.ts +965 -0
  60. package/typechain/RiskFundV2Storage.d.ts +372 -0
  61. package/typechain/SingleTokenConverter.d.ts +1944 -0
  62. package/typechain/TransparentUpgradeableProxy.d.ts +126 -0
  63. package/typechain/TwapInterface.d.ts +124 -0
  64. package/typechain/UpgradeableBeacon.d.ts +240 -0
  65. package/typechain/VBep20Interface.d.ts +379 -0
  66. package/typechain/XVSVaultTreasury.d.ts +515 -0
  67. package/typechain/common.d.ts +35 -0
  68. package/typechain/factories/AbstractTokenConverter__factory.ts +1297 -0
  69. package/typechain/factories/AccessControl__factory.ts +227 -0
  70. package/typechain/factories/AccessControlledV8__factory.ts +196 -0
  71. package/typechain/factories/BeaconProxy__factory.ts +133 -0
  72. package/typechain/factories/BoundValidatorInterface__factory.ts +59 -0
  73. package/typechain/factories/ContextUpgradeable__factory.ts +39 -0
  74. package/typechain/factories/ConverterNetwork__factory.ts +502 -0
  75. package/typechain/factories/ERC165__factory.ts +39 -0
  76. package/typechain/factories/ERC1967Proxy__factory.ts +137 -0
  77. package/typechain/factories/ERC1967Upgrade__factory.ts +71 -0
  78. package/typechain/factories/ERC20__factory.ts +340 -0
  79. package/typechain/factories/IAbstractTokenConverter__factory.ts +466 -0
  80. package/typechain/factories/IAccessControlManagerV8__factory.ts +301 -0
  81. package/typechain/factories/IAccessControl__factory.ts +198 -0
  82. package/typechain/factories/IBeacon__factory.ts +36 -0
  83. package/typechain/factories/IComptroller__factory.ts +68 -0
  84. package/typechain/factories/IConverterNetwork__factory.ts +142 -0
  85. package/typechain/factories/IERC165__factory.ts +42 -0
  86. package/typechain/factories/IERC1822Proxiable__factory.ts +39 -0
  87. package/typechain/factories/IERC1967__factory.ts +68 -0
  88. package/typechain/factories/IERC20Metadata__factory.ts +248 -0
  89. package/typechain/factories/IERC20PermitUpgradeable__factory.ts +105 -0
  90. package/typechain/factories/IERC20Upgradeable__factory.ts +209 -0
  91. package/typechain/factories/IERC20__factory.ts +203 -0
  92. package/typechain/factories/IIncomeDestination__factory.ts +44 -0
  93. package/typechain/factories/IPoolRegistry__factory.ts +66 -0
  94. package/typechain/factories/IProtocolShareReserve__factory.ts +53 -0
  95. package/typechain/factories/IRiskFundConverter__factory.ts +63 -0
  96. package/typechain/factories/IRiskFundGetters__factory.ts +39 -0
  97. package/typechain/factories/IRiskFund__factory.ts +89 -0
  98. package/typechain/factories/IShortfall__factory.ts +36 -0
  99. package/typechain/factories/ITransparentUpgradeableProxy__factory.ts +145 -0
  100. package/typechain/factories/IVToken__factory.ts +36 -0
  101. package/typechain/factories/IXVSVault__factory.ts +36 -0
  102. package/typechain/factories/Initializable__factory.ts +36 -0
  103. package/typechain/factories/MaxLoopsLimitHelper__factory.ts +74 -0
  104. package/typechain/factories/MaxLoopsLimitHelpersStorage__factory.ts +75 -0
  105. package/typechain/factories/MockACM__factory.ts +411 -0
  106. package/typechain/factories/MockArraySorter__factory.ts +85 -0
  107. package/typechain/factories/MockConverter__factory.ts +1439 -0
  108. package/typechain/factories/MockDeflatingToken__factory.ts +389 -0
  109. package/typechain/factories/MockRiskFundConverter__factory.ts +1828 -0
  110. package/typechain/factories/MockToken__factory.ts +398 -0
  111. package/typechain/factories/OracleInterface__factory.ts +45 -0
  112. package/typechain/factories/Ownable2StepUpgradeable__factory.ts +134 -0
  113. package/typechain/factories/OwnableUpgradeable__factory.ts +91 -0
  114. package/typechain/factories/Ownable__factory.ts +75 -0
  115. package/typechain/factories/PausableUpgradeable__factory.ts +78 -0
  116. package/typechain/factories/ProtocolShareReserve__factory.ts +874 -0
  117. package/typechain/factories/ProxyAdmin__factory.ts +202 -0
  118. package/typechain/factories/Proxy__factory.ts +28 -0
  119. package/typechain/factories/ReentrancyGuardUpgradeable__factory.ts +43 -0
  120. package/typechain/factories/ReserveHelpersStorage__factory.ts +188 -0
  121. package/typechain/factories/ResilientOracleInterface__factory.ts +94 -0
  122. package/typechain/factories/ResilientOracle__factory.ts +710 -0
  123. package/typechain/factories/RiskFundConverter__factory.ts +1694 -0
  124. package/typechain/factories/RiskFundV1Storage__factory.ts +223 -0
  125. package/typechain/factories/RiskFundV2Storage__factory.ts +236 -0
  126. package/typechain/factories/RiskFundV2__factory.ts +672 -0
  127. package/typechain/factories/SingleTokenConverter__factory.ts +1441 -0
  128. package/typechain/factories/TransparentUpgradeableProxy__factory.ts +152 -0
  129. package/typechain/factories/TwapInterface__factory.ts +61 -0
  130. package/typechain/factories/UpgradeableBeacon__factory.ts +163 -0
  131. package/typechain/factories/VBep20Interface__factory.ts +261 -0
  132. package/typechain/factories/XVSVaultTreasury__factory.ts +365 -0
  133. package/typechain/index.ts +134 -0
@@ -0,0 +1,209 @@
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
+ IERC20Upgradeable,
9
+ IERC20UpgradeableInterface,
10
+ } from "../IERC20Upgradeable";
11
+
12
+ const _abi = [
13
+ {
14
+ anonymous: false,
15
+ inputs: [
16
+ {
17
+ indexed: true,
18
+ internalType: "address",
19
+ name: "owner",
20
+ type: "address",
21
+ },
22
+ {
23
+ indexed: true,
24
+ internalType: "address",
25
+ name: "spender",
26
+ type: "address",
27
+ },
28
+ {
29
+ indexed: false,
30
+ internalType: "uint256",
31
+ name: "value",
32
+ type: "uint256",
33
+ },
34
+ ],
35
+ name: "Approval",
36
+ type: "event",
37
+ },
38
+ {
39
+ anonymous: false,
40
+ inputs: [
41
+ {
42
+ indexed: true,
43
+ internalType: "address",
44
+ name: "from",
45
+ type: "address",
46
+ },
47
+ {
48
+ indexed: true,
49
+ internalType: "address",
50
+ name: "to",
51
+ type: "address",
52
+ },
53
+ {
54
+ indexed: false,
55
+ internalType: "uint256",
56
+ name: "value",
57
+ type: "uint256",
58
+ },
59
+ ],
60
+ name: "Transfer",
61
+ type: "event",
62
+ },
63
+ {
64
+ inputs: [
65
+ {
66
+ internalType: "address",
67
+ name: "owner",
68
+ type: "address",
69
+ },
70
+ {
71
+ internalType: "address",
72
+ name: "spender",
73
+ type: "address",
74
+ },
75
+ ],
76
+ name: "allowance",
77
+ outputs: [
78
+ {
79
+ internalType: "uint256",
80
+ name: "",
81
+ type: "uint256",
82
+ },
83
+ ],
84
+ stateMutability: "view",
85
+ type: "function",
86
+ },
87
+ {
88
+ inputs: [
89
+ {
90
+ internalType: "address",
91
+ name: "spender",
92
+ type: "address",
93
+ },
94
+ {
95
+ internalType: "uint256",
96
+ name: "amount",
97
+ type: "uint256",
98
+ },
99
+ ],
100
+ name: "approve",
101
+ outputs: [
102
+ {
103
+ internalType: "bool",
104
+ name: "",
105
+ type: "bool",
106
+ },
107
+ ],
108
+ stateMutability: "nonpayable",
109
+ type: "function",
110
+ },
111
+ {
112
+ inputs: [
113
+ {
114
+ internalType: "address",
115
+ name: "account",
116
+ type: "address",
117
+ },
118
+ ],
119
+ name: "balanceOf",
120
+ outputs: [
121
+ {
122
+ internalType: "uint256",
123
+ name: "",
124
+ type: "uint256",
125
+ },
126
+ ],
127
+ stateMutability: "view",
128
+ type: "function",
129
+ },
130
+ {
131
+ inputs: [],
132
+ name: "totalSupply",
133
+ outputs: [
134
+ {
135
+ internalType: "uint256",
136
+ name: "",
137
+ type: "uint256",
138
+ },
139
+ ],
140
+ stateMutability: "view",
141
+ type: "function",
142
+ },
143
+ {
144
+ inputs: [
145
+ {
146
+ internalType: "address",
147
+ name: "to",
148
+ type: "address",
149
+ },
150
+ {
151
+ internalType: "uint256",
152
+ name: "amount",
153
+ type: "uint256",
154
+ },
155
+ ],
156
+ name: "transfer",
157
+ outputs: [
158
+ {
159
+ internalType: "bool",
160
+ name: "",
161
+ type: "bool",
162
+ },
163
+ ],
164
+ stateMutability: "nonpayable",
165
+ type: "function",
166
+ },
167
+ {
168
+ inputs: [
169
+ {
170
+ internalType: "address",
171
+ name: "from",
172
+ type: "address",
173
+ },
174
+ {
175
+ internalType: "address",
176
+ name: "to",
177
+ type: "address",
178
+ },
179
+ {
180
+ internalType: "uint256",
181
+ name: "amount",
182
+ type: "uint256",
183
+ },
184
+ ],
185
+ name: "transferFrom",
186
+ outputs: [
187
+ {
188
+ internalType: "bool",
189
+ name: "",
190
+ type: "bool",
191
+ },
192
+ ],
193
+ stateMutability: "nonpayable",
194
+ type: "function",
195
+ },
196
+ ];
197
+
198
+ export class IERC20Upgradeable__factory {
199
+ static readonly abi = _abi;
200
+ static createInterface(): IERC20UpgradeableInterface {
201
+ return new utils.Interface(_abi) as IERC20UpgradeableInterface;
202
+ }
203
+ static connect(
204
+ address: string,
205
+ signerOrProvider: Signer | Provider
206
+ ): IERC20Upgradeable {
207
+ return new Contract(address, _abi, signerOrProvider) as IERC20Upgradeable;
208
+ }
209
+ }
@@ -0,0 +1,203 @@
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 { IERC20, IERC20Interface } from "../IERC20";
8
+
9
+ const _abi = [
10
+ {
11
+ anonymous: false,
12
+ inputs: [
13
+ {
14
+ indexed: true,
15
+ internalType: "address",
16
+ name: "owner",
17
+ type: "address",
18
+ },
19
+ {
20
+ indexed: true,
21
+ internalType: "address",
22
+ name: "spender",
23
+ type: "address",
24
+ },
25
+ {
26
+ indexed: false,
27
+ internalType: "uint256",
28
+ name: "value",
29
+ type: "uint256",
30
+ },
31
+ ],
32
+ name: "Approval",
33
+ type: "event",
34
+ },
35
+ {
36
+ anonymous: false,
37
+ inputs: [
38
+ {
39
+ indexed: true,
40
+ internalType: "address",
41
+ name: "from",
42
+ type: "address",
43
+ },
44
+ {
45
+ indexed: true,
46
+ internalType: "address",
47
+ name: "to",
48
+ type: "address",
49
+ },
50
+ {
51
+ indexed: false,
52
+ internalType: "uint256",
53
+ name: "value",
54
+ type: "uint256",
55
+ },
56
+ ],
57
+ name: "Transfer",
58
+ type: "event",
59
+ },
60
+ {
61
+ inputs: [
62
+ {
63
+ internalType: "address",
64
+ name: "owner",
65
+ type: "address",
66
+ },
67
+ {
68
+ internalType: "address",
69
+ name: "spender",
70
+ type: "address",
71
+ },
72
+ ],
73
+ name: "allowance",
74
+ outputs: [
75
+ {
76
+ internalType: "uint256",
77
+ name: "",
78
+ type: "uint256",
79
+ },
80
+ ],
81
+ stateMutability: "view",
82
+ type: "function",
83
+ },
84
+ {
85
+ inputs: [
86
+ {
87
+ internalType: "address",
88
+ name: "spender",
89
+ type: "address",
90
+ },
91
+ {
92
+ internalType: "uint256",
93
+ name: "amount",
94
+ type: "uint256",
95
+ },
96
+ ],
97
+ name: "approve",
98
+ outputs: [
99
+ {
100
+ internalType: "bool",
101
+ name: "",
102
+ type: "bool",
103
+ },
104
+ ],
105
+ stateMutability: "nonpayable",
106
+ type: "function",
107
+ },
108
+ {
109
+ inputs: [
110
+ {
111
+ internalType: "address",
112
+ name: "account",
113
+ type: "address",
114
+ },
115
+ ],
116
+ name: "balanceOf",
117
+ outputs: [
118
+ {
119
+ internalType: "uint256",
120
+ name: "",
121
+ type: "uint256",
122
+ },
123
+ ],
124
+ stateMutability: "view",
125
+ type: "function",
126
+ },
127
+ {
128
+ inputs: [],
129
+ name: "totalSupply",
130
+ outputs: [
131
+ {
132
+ internalType: "uint256",
133
+ name: "",
134
+ type: "uint256",
135
+ },
136
+ ],
137
+ stateMutability: "view",
138
+ type: "function",
139
+ },
140
+ {
141
+ inputs: [
142
+ {
143
+ internalType: "address",
144
+ name: "to",
145
+ type: "address",
146
+ },
147
+ {
148
+ internalType: "uint256",
149
+ name: "amount",
150
+ type: "uint256",
151
+ },
152
+ ],
153
+ name: "transfer",
154
+ outputs: [
155
+ {
156
+ internalType: "bool",
157
+ name: "",
158
+ type: "bool",
159
+ },
160
+ ],
161
+ stateMutability: "nonpayable",
162
+ type: "function",
163
+ },
164
+ {
165
+ inputs: [
166
+ {
167
+ internalType: "address",
168
+ name: "from",
169
+ type: "address",
170
+ },
171
+ {
172
+ internalType: "address",
173
+ name: "to",
174
+ type: "address",
175
+ },
176
+ {
177
+ internalType: "uint256",
178
+ name: "amount",
179
+ type: "uint256",
180
+ },
181
+ ],
182
+ name: "transferFrom",
183
+ outputs: [
184
+ {
185
+ internalType: "bool",
186
+ name: "",
187
+ type: "bool",
188
+ },
189
+ ],
190
+ stateMutability: "nonpayable",
191
+ type: "function",
192
+ },
193
+ ];
194
+
195
+ export class IERC20__factory {
196
+ static readonly abi = _abi;
197
+ static createInterface(): IERC20Interface {
198
+ return new utils.Interface(_abi) as IERC20Interface;
199
+ }
200
+ static connect(address: string, signerOrProvider: Signer | Provider): IERC20 {
201
+ return new Contract(address, _abi, signerOrProvider) as IERC20;
202
+ }
203
+ }
@@ -0,0 +1,44 @@
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
+ IIncomeDestination,
9
+ IIncomeDestinationInterface,
10
+ } from "../IIncomeDestination";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "address",
17
+ name: "comptroller",
18
+ type: "address",
19
+ },
20
+ {
21
+ internalType: "address",
22
+ name: "asset",
23
+ type: "address",
24
+ },
25
+ ],
26
+ name: "updateAssetsState",
27
+ outputs: [],
28
+ stateMutability: "nonpayable",
29
+ type: "function",
30
+ },
31
+ ];
32
+
33
+ export class IIncomeDestination__factory {
34
+ static readonly abi = _abi;
35
+ static createInterface(): IIncomeDestinationInterface {
36
+ return new utils.Interface(_abi) as IIncomeDestinationInterface;
37
+ }
38
+ static connect(
39
+ address: string,
40
+ signerOrProvider: Signer | Provider
41
+ ): IIncomeDestination {
42
+ return new Contract(address, _abi, signerOrProvider) as IIncomeDestination;
43
+ }
44
+ }
@@ -0,0 +1,66 @@
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 { IPoolRegistry, IPoolRegistryInterface } from "../IPoolRegistry";
8
+
9
+ const _abi = [
10
+ {
11
+ inputs: [
12
+ {
13
+ internalType: "address",
14
+ name: "asset",
15
+ type: "address",
16
+ },
17
+ ],
18
+ name: "getPoolsSupportedByAsset",
19
+ outputs: [
20
+ {
21
+ internalType: "address[]",
22
+ name: "",
23
+ type: "address[]",
24
+ },
25
+ ],
26
+ stateMutability: "view",
27
+ type: "function",
28
+ },
29
+ {
30
+ inputs: [
31
+ {
32
+ internalType: "address",
33
+ name: "comptroller",
34
+ type: "address",
35
+ },
36
+ {
37
+ internalType: "address",
38
+ name: "asset",
39
+ type: "address",
40
+ },
41
+ ],
42
+ name: "getVTokenForAsset",
43
+ outputs: [
44
+ {
45
+ internalType: "address",
46
+ name: "",
47
+ type: "address",
48
+ },
49
+ ],
50
+ stateMutability: "view",
51
+ type: "function",
52
+ },
53
+ ];
54
+
55
+ export class IPoolRegistry__factory {
56
+ static readonly abi = _abi;
57
+ static createInterface(): IPoolRegistryInterface {
58
+ return new utils.Interface(_abi) as IPoolRegistryInterface;
59
+ }
60
+ static connect(
61
+ address: string,
62
+ signerOrProvider: Signer | Provider
63
+ ): IPoolRegistry {
64
+ return new Contract(address, _abi, signerOrProvider) as IPoolRegistry;
65
+ }
66
+ }
@@ -0,0 +1,53 @@
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
+ IProtocolShareReserve,
9
+ IProtocolShareReserveInterface,
10
+ } from "../IProtocolShareReserve";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "address",
17
+ name: "comptroller",
18
+ type: "address",
19
+ },
20
+ {
21
+ internalType: "address",
22
+ name: "asset",
23
+ type: "address",
24
+ },
25
+ {
26
+ internalType: "enum IProtocolShareReserve.IncomeType",
27
+ name: "incomeType",
28
+ type: "uint8",
29
+ },
30
+ ],
31
+ name: "updateAssetsState",
32
+ outputs: [],
33
+ stateMutability: "nonpayable",
34
+ type: "function",
35
+ },
36
+ ];
37
+
38
+ export class IProtocolShareReserve__factory {
39
+ static readonly abi = _abi;
40
+ static createInterface(): IProtocolShareReserveInterface {
41
+ return new utils.Interface(_abi) as IProtocolShareReserveInterface;
42
+ }
43
+ static connect(
44
+ address: string,
45
+ signerOrProvider: Signer | Provider
46
+ ): IProtocolShareReserve {
47
+ return new Contract(
48
+ address,
49
+ _abi,
50
+ signerOrProvider
51
+ ) as IProtocolShareReserve;
52
+ }
53
+ }
@@ -0,0 +1,63 @@
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
+ IRiskFundConverter,
9
+ IRiskFundConverterInterface,
10
+ } from "../IRiskFundConverter";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "address",
17
+ name: "asset",
18
+ type: "address",
19
+ },
20
+ ],
21
+ name: "getPools",
22
+ outputs: [
23
+ {
24
+ internalType: "address[]",
25
+ name: "",
26
+ type: "address[]",
27
+ },
28
+ ],
29
+ stateMutability: "view",
30
+ type: "function",
31
+ },
32
+ {
33
+ inputs: [
34
+ {
35
+ internalType: "address",
36
+ name: "comptroller",
37
+ type: "address",
38
+ },
39
+ {
40
+ internalType: "address",
41
+ name: "asset",
42
+ type: "address",
43
+ },
44
+ ],
45
+ name: "updateAssetsState",
46
+ outputs: [],
47
+ stateMutability: "nonpayable",
48
+ type: "function",
49
+ },
50
+ ];
51
+
52
+ export class IRiskFundConverter__factory {
53
+ static readonly abi = _abi;
54
+ static createInterface(): IRiskFundConverterInterface {
55
+ return new utils.Interface(_abi) as IRiskFundConverterInterface;
56
+ }
57
+ static connect(
58
+ address: string,
59
+ signerOrProvider: Signer | Provider
60
+ ): IRiskFundConverter {
61
+ return new Contract(address, _abi, signerOrProvider) as IRiskFundConverter;
62
+ }
63
+ }
@@ -0,0 +1,39 @@
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
+ IRiskFundGetters,
9
+ IRiskFundGettersInterface,
10
+ } from "../IRiskFundGetters";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [],
15
+ name: "convertibleBaseAsset",
16
+ outputs: [
17
+ {
18
+ internalType: "address",
19
+ name: "",
20
+ type: "address",
21
+ },
22
+ ],
23
+ stateMutability: "view",
24
+ type: "function",
25
+ },
26
+ ];
27
+
28
+ export class IRiskFundGetters__factory {
29
+ static readonly abi = _abi;
30
+ static createInterface(): IRiskFundGettersInterface {
31
+ return new utils.Interface(_abi) as IRiskFundGettersInterface;
32
+ }
33
+ static connect(
34
+ address: string,
35
+ signerOrProvider: Signer | Provider
36
+ ): IRiskFundGetters {
37
+ return new Contract(address, _abi, signerOrProvider) as IRiskFundGetters;
38
+ }
39
+ }