@meterio/sumer-js 0.1.3 → 0.1.5

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 (199) hide show
  1. package/dist/nodejs/abi.js +13 -0
  2. package/dist/nodejs/abi.js.map +1 -1
  3. package/dist/nodejs/typechain/contracts/CToken/Interfaces/index.d.ts +4 -0
  4. package/dist/nodejs/typechain/contracts/CToken/Interfaces/index.js.map +1 -0
  5. package/dist/nodejs/typechain/contracts/CToken/Test.sol/index.d.ts +1 -0
  6. package/dist/nodejs/typechain/contracts/CToken/Test.sol/index.js.map +1 -0
  7. package/dist/nodejs/typechain/contracts/CToken/index.d.ts +5 -0
  8. package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.d.ts +9 -1
  9. package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.sol/Comptroller.d.ts +1446 -0
  10. package/dist/nodejs/typechain/contracts/{ITimelock.js → Comptroller/Comptroller.sol/Comptroller.js} +1 -1
  11. package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.sol/Comptroller.js.map +1 -0
  12. package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.sol/index.d.ts +3 -0
  13. package/dist/nodejs/typechain/contracts/{Interface/ICErc20.js → Comptroller/Comptroller.sol/index.js} +1 -1
  14. package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.sol/index.js.map +1 -0
  15. package/dist/nodejs/typechain/contracts/Comptroller/Interfaces/index.d.ts +6 -0
  16. package/dist/nodejs/typechain/contracts/{Interface/ICToken.js → Comptroller/Interfaces/index.js} +1 -1
  17. package/dist/nodejs/typechain/contracts/Comptroller/Interfaces/index.js.map +1 -0
  18. package/dist/nodejs/typechain/contracts/Comptroller/index.d.ts +4 -1
  19. package/dist/nodejs/typechain/contracts/InterestRateModel/index.d.ts +1 -0
  20. package/dist/nodejs/typechain/contracts/Oracle/Interfaces/index.d.ts +4 -0
  21. package/dist/nodejs/typechain/contracts/Oracle/Interfaces/index.js +3 -0
  22. package/dist/nodejs/typechain/contracts/Oracle/Interfaces/index.js.map +1 -0
  23. package/dist/nodejs/typechain/contracts/Oracle/index.d.ts +3 -0
  24. package/dist/nodejs/typechain/contracts/index.d.ts +1 -0
  25. package/dist/nodejs/typechain/factories/contracts/CToken/Interfaces/index.d.ts +4 -0
  26. package/dist/nodejs/typechain/factories/contracts/CToken/Interfaces/index.js +15 -0
  27. package/dist/nodejs/typechain/factories/contracts/CToken/Interfaces/index.js.map +1 -0
  28. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +1 -1
  29. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +1 -1
  30. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
  31. package/dist/nodejs/typechain/factories/contracts/CToken/Test.sol/index.d.ts +1 -0
  32. package/dist/nodejs/typechain/factories/contracts/CToken/Test.sol/index.js +9 -0
  33. package/dist/nodejs/typechain/factories/contracts/CToken/Test.sol/index.js.map +1 -0
  34. package/dist/nodejs/typechain/factories/contracts/CToken/index.d.ts +3 -0
  35. package/dist/nodejs/typechain/factories/contracts/CToken/index.js +28 -1
  36. package/dist/nodejs/typechain/factories/contracts/CToken/index.js.map +1 -1
  37. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.d.ts +1 -1
  38. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +1 -1
  39. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js.map +1 -1
  40. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller.sol/Comptroller__factory.d.ts +2066 -0
  41. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller.sol/Comptroller__factory.js +2689 -0
  42. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller.sol/Comptroller__factory.js.map +1 -0
  43. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller.sol/index.d.ts +3 -0
  44. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller.sol/index.js +13 -0
  45. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller.sol/index.js.map +1 -0
  46. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.d.ts +11 -1
  47. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +14 -1
  48. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js.map +1 -1
  49. package/dist/nodejs/typechain/factories/contracts/Comptroller/Interfaces/index.d.ts +6 -0
  50. package/dist/nodejs/typechain/factories/contracts/Comptroller/Interfaces/index.js +19 -0
  51. package/dist/nodejs/typechain/factories/contracts/Comptroller/Interfaces/index.js.map +1 -0
  52. package/dist/nodejs/typechain/factories/contracts/Comptroller/index.d.ts +2 -1
  53. package/dist/nodejs/typechain/factories/contracts/Comptroller/index.js +26 -3
  54. package/dist/nodejs/typechain/factories/contracts/Comptroller/index.js.map +1 -1
  55. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.d.ts +1 -0
  56. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.js +3 -1
  57. package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.js.map +1 -1
  58. package/dist/nodejs/typechain/factories/contracts/Oracle/Interfaces/index.d.ts +4 -0
  59. package/dist/nodejs/typechain/factories/contracts/Oracle/Interfaces/index.js +15 -0
  60. package/dist/nodejs/typechain/factories/contracts/Oracle/Interfaces/index.js.map +1 -0
  61. package/dist/nodejs/typechain/factories/contracts/Oracle/index.d.ts +2 -0
  62. package/dist/nodejs/typechain/factories/contracts/Oracle/index.js +4 -1
  63. package/dist/nodejs/typechain/factories/contracts/Oracle/index.js.map +1 -1
  64. package/dist/nodejs/typechain/factories/contracts/index.d.ts +1 -0
  65. package/dist/nodejs/typechain/factories/contracts/index.js +3 -1
  66. package/dist/nodejs/typechain/factories/contracts/index.js.map +1 -1
  67. package/dist/nodejs/typechain/hardhat.d.ts +378 -0
  68. package/dist/nodejs/typechain/index.d.ts +32 -24
  69. package/dist/nodejs/typechain/index.js +33 -25
  70. package/dist/nodejs/typechain/index.js.map +1 -1
  71. package/package.json +1 -1
  72. package/dist/browser/compound.min.js +0 -18
  73. package/dist/browser/sumer.min.js +0 -18
  74. package/dist/nodejs/constants.d.ts +0 -29
  75. package/dist/nodejs/constants.js +0 -1109
  76. package/dist/nodejs/constants.js.map +0 -1
  77. package/dist/nodejs/typechain/contracts/ITimelock.d.ts +0 -184
  78. package/dist/nodejs/typechain/contracts/ITimelock.js.map +0 -1
  79. package/dist/nodejs/typechain/contracts/Interface/IAccountLiquidity.d.ts +0 -57
  80. package/dist/nodejs/typechain/contracts/Interface/IAccountLiquidity.js +0 -3
  81. package/dist/nodejs/typechain/contracts/Interface/IAccountLiquidity.js.map +0 -1
  82. package/dist/nodejs/typechain/contracts/Interface/ICErc20.d.ts +0 -99
  83. package/dist/nodejs/typechain/contracts/Interface/ICErc20.js.map +0 -1
  84. package/dist/nodejs/typechain/contracts/Interface/ICToken.d.ts +0 -611
  85. package/dist/nodejs/typechain/contracts/Interface/ICToken.js.map +0 -1
  86. package/dist/nodejs/typechain/contracts/Interface/ICTokenExternal.sol/ICToken.d.ts +0 -198
  87. package/dist/nodejs/typechain/contracts/Interface/ICTokenExternal.sol/ICToken.js +0 -3
  88. package/dist/nodejs/typechain/contracts/Interface/ICTokenExternal.sol/ICToken.js.map +0 -1
  89. package/dist/nodejs/typechain/contracts/Interface/ICTokenExternal.sol/index.d.ts +0 -1
  90. package/dist/nodejs/typechain/contracts/Interface/ICTokenExternal.sol/index.js.map +0 -1
  91. package/dist/nodejs/typechain/contracts/Interface/IChainlinkFeed.d.ts +0 -59
  92. package/dist/nodejs/typechain/contracts/Interface/IChainlinkFeed.js +0 -3
  93. package/dist/nodejs/typechain/contracts/Interface/IChainlinkFeed.js.map +0 -1
  94. package/dist/nodejs/typechain/contracts/Interface/ICompLogic.d.ts +0 -127
  95. package/dist/nodejs/typechain/contracts/Interface/ICompLogic.js +0 -3
  96. package/dist/nodejs/typechain/contracts/Interface/ICompLogic.js.map +0 -1
  97. package/dist/nodejs/typechain/contracts/Interface/IComptroller.d.ts +0 -562
  98. package/dist/nodejs/typechain/contracts/Interface/IComptroller.js +0 -3
  99. package/dist/nodejs/typechain/contracts/Interface/IComptroller.js.map +0 -1
  100. package/dist/nodejs/typechain/contracts/Interface/IEIP20NonStandard.d.ts +0 -161
  101. package/dist/nodejs/typechain/contracts/Interface/IEIP20NonStandard.js +0 -3
  102. package/dist/nodejs/typechain/contracts/Interface/IEIP20NonStandard.js.map +0 -1
  103. package/dist/nodejs/typechain/contracts/Interface/IGovernorAlpha.d.ts +0 -119
  104. package/dist/nodejs/typechain/contracts/Interface/IGovernorAlpha.js +0 -3
  105. package/dist/nodejs/typechain/contracts/Interface/IGovernorAlpha.js.map +0 -1
  106. package/dist/nodejs/typechain/contracts/Interface/IGovernorBravo.d.ts +0 -130
  107. package/dist/nodejs/typechain/contracts/Interface/IGovernorBravo.js +0 -3
  108. package/dist/nodejs/typechain/contracts/Interface/IGovernorBravo.js.map +0 -1
  109. package/dist/nodejs/typechain/contracts/Interface/IInterestRateModel.d.ts +0 -59
  110. package/dist/nodejs/typechain/contracts/Interface/IInterestRateModel.js +0 -3
  111. package/dist/nodejs/typechain/contracts/Interface/IInterestRateModel.js.map +0 -1
  112. package/dist/nodejs/typechain/contracts/Interface/IPriceOracle.d.ts +0 -37
  113. package/dist/nodejs/typechain/contracts/Interface/IPriceOracle.js +0 -3
  114. package/dist/nodejs/typechain/contracts/Interface/IPriceOracle.js.map +0 -1
  115. package/dist/nodejs/typechain/contracts/Interface/IRedemptionManager.d.ts +0 -103
  116. package/dist/nodejs/typechain/contracts/Interface/IRedemptionManager.js +0 -3
  117. package/dist/nodejs/typechain/contracts/Interface/IRedemptionManager.js.map +0 -1
  118. package/dist/nodejs/typechain/contracts/Interface/ISortedBorrows.d.ts +0 -210
  119. package/dist/nodejs/typechain/contracts/Interface/ISortedBorrows.js +0 -3
  120. package/dist/nodejs/typechain/contracts/Interface/ISortedBorrows.js.map +0 -1
  121. package/dist/nodejs/typechain/contracts/Interface/IStdReference.d.ts +0 -65
  122. package/dist/nodejs/typechain/contracts/Interface/IStdReference.js +0 -3
  123. package/dist/nodejs/typechain/contracts/Interface/IStdReference.js.map +0 -1
  124. package/dist/nodejs/typechain/contracts/Interface/IUnitroller.d.ts +0 -29
  125. package/dist/nodejs/typechain/contracts/Interface/IUnitroller.js +0 -3
  126. package/dist/nodejs/typechain/contracts/Interface/IUnitroller.js.map +0 -1
  127. package/dist/nodejs/typechain/contracts/Interface/IVoltPair.d.ts +0 -71
  128. package/dist/nodejs/typechain/contracts/Interface/IVoltPair.js +0 -3
  129. package/dist/nodejs/typechain/contracts/Interface/IVoltPair.js.map +0 -1
  130. package/dist/nodejs/typechain/contracts/Interface/IWitnetFeed.d.ts +0 -25
  131. package/dist/nodejs/typechain/contracts/Interface/IWitnetFeed.js +0 -3
  132. package/dist/nodejs/typechain/contracts/Interface/IWitnetFeed.js.map +0 -1
  133. package/dist/nodejs/typechain/contracts/Interface/index.d.ts +0 -19
  134. package/dist/nodejs/typechain/contracts/Interface/index.js.map +0 -1
  135. package/dist/nodejs/typechain/factories/contracts/ITimelock__factory.d.ts +0 -188
  136. package/dist/nodejs/typechain/factories/contracts/ITimelock__factory.js +0 -250
  137. package/dist/nodejs/typechain/factories/contracts/ITimelock__factory.js.map +0 -1
  138. package/dist/nodejs/typechain/factories/contracts/Interface/IAccountLiquidity__factory.d.ts +0 -67
  139. package/dist/nodejs/typechain/factories/contracts/Interface/IAccountLiquidity__factory.js +0 -98
  140. package/dist/nodejs/typechain/factories/contracts/Interface/IAccountLiquidity__factory.js.map +0 -1
  141. package/dist/nodejs/typechain/factories/contracts/Interface/ICErc20__factory.d.ts +0 -141
  142. package/dist/nodejs/typechain/factories/contracts/Interface/ICErc20__factory.js +0 -200
  143. package/dist/nodejs/typechain/factories/contracts/Interface/ICErc20__factory.js.map +0 -1
  144. package/dist/nodejs/typechain/factories/contracts/Interface/ICTokenExternal.sol/ICToken__factory.d.ts +0 -357
  145. package/dist/nodejs/typechain/factories/contracts/Interface/ICTokenExternal.sol/ICToken__factory.js +0 -481
  146. package/dist/nodejs/typechain/factories/contracts/Interface/ICTokenExternal.sol/ICToken__factory.js.map +0 -1
  147. package/dist/nodejs/typechain/factories/contracts/Interface/ICTokenExternal.sol/index.d.ts +0 -1
  148. package/dist/nodejs/typechain/factories/contracts/Interface/ICTokenExternal.sol/index.js +0 -9
  149. package/dist/nodejs/typechain/factories/contracts/Interface/ICTokenExternal.sol/index.js.map +0 -1
  150. package/dist/nodejs/typechain/factories/contracts/Interface/ICToken__factory.d.ts +0 -705
  151. package/dist/nodejs/typechain/factories/contracts/Interface/ICToken__factory.js +0 -922
  152. package/dist/nodejs/typechain/factories/contracts/Interface/ICToken__factory.js.map +0 -1
  153. package/dist/nodejs/typechain/factories/contracts/Interface/IChainlinkFeed__factory.d.ts +0 -43
  154. package/dist/nodejs/typechain/factories/contracts/Interface/IChainlinkFeed__factory.js +0 -66
  155. package/dist/nodejs/typechain/factories/contracts/Interface/IChainlinkFeed__factory.js.map +0 -1
  156. package/dist/nodejs/typechain/factories/contracts/Interface/ICompLogic__factory.d.ts +0 -133
  157. package/dist/nodejs/typechain/factories/contracts/Interface/ICompLogic__factory.js +0 -184
  158. package/dist/nodejs/typechain/factories/contracts/Interface/ICompLogic__factory.js.map +0 -1
  159. package/dist/nodejs/typechain/factories/contracts/Interface/IComptroller__factory.d.ts +0 -803
  160. package/dist/nodejs/typechain/factories/contracts/Interface/IComptroller__factory.js +0 -1052
  161. package/dist/nodejs/typechain/factories/contracts/Interface/IComptroller__factory.js.map +0 -1
  162. package/dist/nodejs/typechain/factories/contracts/Interface/IEIP20NonStandard__factory.d.ts +0 -177
  163. package/dist/nodejs/typechain/factories/contracts/Interface/IEIP20NonStandard__factory.js +0 -240
  164. package/dist/nodejs/typechain/factories/contracts/Interface/IEIP20NonStandard__factory.js.map +0 -1
  165. package/dist/nodejs/typechain/factories/contracts/Interface/IGovernorAlpha__factory.d.ts +0 -105
  166. package/dist/nodejs/typechain/factories/contracts/Interface/IGovernorAlpha__factory.js +0 -147
  167. package/dist/nodejs/typechain/factories/contracts/Interface/IGovernorAlpha__factory.js.map +0 -1
  168. package/dist/nodejs/typechain/factories/contracts/Interface/IGovernorBravo__factory.d.ts +0 -119
  169. package/dist/nodejs/typechain/factories/contracts/Interface/IGovernorBravo__factory.js +0 -166
  170. package/dist/nodejs/typechain/factories/contracts/Interface/IGovernorBravo__factory.js.map +0 -1
  171. package/dist/nodejs/typechain/factories/contracts/Interface/IInterestRateModel__factory.d.ts +0 -65
  172. package/dist/nodejs/typechain/factories/contracts/Interface/IInterestRateModel__factory.js +0 -96
  173. package/dist/nodejs/typechain/factories/contracts/Interface/IInterestRateModel__factory.js.map +0 -1
  174. package/dist/nodejs/typechain/factories/contracts/Interface/IPriceOracle__factory.d.ts +0 -35
  175. package/dist/nodejs/typechain/factories/contracts/Interface/IPriceOracle__factory.js +0 -58
  176. package/dist/nodejs/typechain/factories/contracts/Interface/IPriceOracle__factory.js.map +0 -1
  177. package/dist/nodejs/typechain/factories/contracts/Interface/IRedemptionManager__factory.d.ts +0 -147
  178. package/dist/nodejs/typechain/factories/contracts/Interface/IRedemptionManager__factory.js +0 -204
  179. package/dist/nodejs/typechain/factories/contracts/Interface/IRedemptionManager__factory.js.map +0 -1
  180. package/dist/nodejs/typechain/factories/contracts/Interface/ISortedBorrows__factory.d.ts +0 -284
  181. package/dist/nodejs/typechain/factories/contracts/Interface/ISortedBorrows__factory.js +0 -382
  182. package/dist/nodejs/typechain/factories/contracts/Interface/ISortedBorrows__factory.js.map +0 -1
  183. package/dist/nodejs/typechain/factories/contracts/Interface/IStdReference__factory.d.ts +0 -69
  184. package/dist/nodejs/typechain/factories/contracts/Interface/IStdReference__factory.js +0 -102
  185. package/dist/nodejs/typechain/factories/contracts/Interface/IStdReference__factory.js.map +0 -1
  186. package/dist/nodejs/typechain/factories/contracts/Interface/IUnitroller__factory.d.ts +0 -27
  187. package/dist/nodejs/typechain/factories/contracts/Interface/IUnitroller__factory.js +0 -46
  188. package/dist/nodejs/typechain/factories/contracts/Interface/IUnitroller__factory.js.map +0 -1
  189. package/dist/nodejs/typechain/factories/contracts/Interface/IVoltPair__factory.d.ts +0 -61
  190. package/dist/nodejs/typechain/factories/contracts/Interface/IVoltPair__factory.js +0 -89
  191. package/dist/nodejs/typechain/factories/contracts/Interface/IVoltPair__factory.js.map +0 -1
  192. package/dist/nodejs/typechain/factories/contracts/Interface/IWitnetFeed__factory.d.ts +0 -17
  193. package/dist/nodejs/typechain/factories/contracts/Interface/IWitnetFeed__factory.js +0 -33
  194. package/dist/nodejs/typechain/factories/contracts/Interface/IWitnetFeed__factory.js.map +0 -1
  195. package/dist/nodejs/typechain/factories/contracts/Interface/index.d.ts +0 -18
  196. package/dist/nodejs/typechain/factories/contracts/Interface/index.js +0 -65
  197. package/dist/nodejs/typechain/factories/contracts/Interface/index.js.map +0 -1
  198. /package/dist/nodejs/typechain/contracts/{Interface/ICTokenExternal.sol → CToken/Interfaces}/index.js +0 -0
  199. /package/dist/nodejs/typechain/contracts/{Interface → CToken/Test.sol}/index.js +0 -0
@@ -1,922 +0,0 @@
1
- "use strict";
2
- /* Autogenerated file. Do not edit manually. */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ICToken__factory = void 0;
7
- const ethers_1 = require("ethers");
8
- const _abi = [
9
- {
10
- anonymous: false,
11
- inputs: [
12
- {
13
- indexed: false,
14
- internalType: "uint256",
15
- name: "cashPrior",
16
- type: "uint256",
17
- },
18
- {
19
- indexed: false,
20
- internalType: "uint256",
21
- name: "interestAccumulated",
22
- type: "uint256",
23
- },
24
- {
25
- indexed: false,
26
- internalType: "uint256",
27
- name: "borrowIndex",
28
- type: "uint256",
29
- },
30
- {
31
- indexed: false,
32
- internalType: "uint256",
33
- name: "totalBorrows",
34
- type: "uint256",
35
- },
36
- ],
37
- name: "AccrueInterest",
38
- type: "event",
39
- },
40
- {
41
- anonymous: false,
42
- inputs: [
43
- {
44
- indexed: true,
45
- internalType: "address",
46
- name: "owner",
47
- type: "address",
48
- },
49
- {
50
- indexed: true,
51
- internalType: "address",
52
- name: "spender",
53
- type: "address",
54
- },
55
- {
56
- indexed: false,
57
- internalType: "uint256",
58
- name: "amount",
59
- type: "uint256",
60
- },
61
- ],
62
- name: "Approval",
63
- type: "event",
64
- },
65
- {
66
- anonymous: false,
67
- inputs: [
68
- {
69
- indexed: false,
70
- internalType: "address",
71
- name: "borrower",
72
- type: "address",
73
- },
74
- {
75
- indexed: false,
76
- internalType: "uint256",
77
- name: "borrowAmount",
78
- type: "uint256",
79
- },
80
- {
81
- indexed: false,
82
- internalType: "uint256",
83
- name: "accountBorrows",
84
- type: "uint256",
85
- },
86
- {
87
- indexed: false,
88
- internalType: "uint256",
89
- name: "totalBorrows",
90
- type: "uint256",
91
- },
92
- ],
93
- name: "Borrow",
94
- type: "event",
95
- },
96
- {
97
- anonymous: false,
98
- inputs: [
99
- {
100
- indexed: false,
101
- internalType: "address",
102
- name: "liquidator",
103
- type: "address",
104
- },
105
- {
106
- indexed: false,
107
- internalType: "address",
108
- name: "borrower",
109
- type: "address",
110
- },
111
- {
112
- indexed: false,
113
- internalType: "uint256",
114
- name: "repayAmount",
115
- type: "uint256",
116
- },
117
- {
118
- indexed: false,
119
- internalType: "address",
120
- name: "cTokenCollateral",
121
- type: "address",
122
- },
123
- {
124
- indexed: false,
125
- internalType: "uint256",
126
- name: "seizeTokens",
127
- type: "uint256",
128
- },
129
- ],
130
- name: "LiquidateBorrow",
131
- type: "event",
132
- },
133
- {
134
- anonymous: false,
135
- inputs: [
136
- {
137
- indexed: false,
138
- internalType: "address",
139
- name: "minter",
140
- type: "address",
141
- },
142
- {
143
- indexed: false,
144
- internalType: "uint256",
145
- name: "mintAmount",
146
- type: "uint256",
147
- },
148
- {
149
- indexed: false,
150
- internalType: "uint256",
151
- name: "mintTokens",
152
- type: "uint256",
153
- },
154
- ],
155
- name: "Mint",
156
- type: "event",
157
- },
158
- {
159
- anonymous: false,
160
- inputs: [
161
- {
162
- indexed: false,
163
- internalType: "address",
164
- name: "oldAdmin",
165
- type: "address",
166
- },
167
- {
168
- indexed: false,
169
- internalType: "address",
170
- name: "newAdmin",
171
- type: "address",
172
- },
173
- ],
174
- name: "NewAdmin",
175
- type: "event",
176
- },
177
- {
178
- anonymous: false,
179
- inputs: [
180
- {
181
- indexed: false,
182
- internalType: "address",
183
- name: "oldComptroller",
184
- type: "address",
185
- },
186
- {
187
- indexed: false,
188
- internalType: "address",
189
- name: "newComptroller",
190
- type: "address",
191
- },
192
- ],
193
- name: "NewComptroller",
194
- type: "event",
195
- },
196
- {
197
- anonymous: false,
198
- inputs: [
199
- {
200
- indexed: false,
201
- internalType: "uint256",
202
- name: "oldDiscountRateMantissa",
203
- type: "uint256",
204
- },
205
- {
206
- indexed: false,
207
- internalType: "uint256",
208
- name: "newDiscountRateMantissa",
209
- type: "uint256",
210
- },
211
- ],
212
- name: "NewDiscountRate",
213
- type: "event",
214
- },
215
- {
216
- anonymous: false,
217
- inputs: [
218
- {
219
- indexed: false,
220
- internalType: "address",
221
- name: "oldInterestRateModel",
222
- type: "address",
223
- },
224
- {
225
- indexed: false,
226
- internalType: "address",
227
- name: "newInterestRateModel",
228
- type: "address",
229
- },
230
- ],
231
- name: "NewMarketInterestRateModel",
232
- type: "event",
233
- },
234
- {
235
- anonymous: false,
236
- inputs: [
237
- {
238
- indexed: false,
239
- internalType: "address",
240
- name: "oldPendingAdmin",
241
- type: "address",
242
- },
243
- {
244
- indexed: false,
245
- internalType: "address",
246
- name: "newPendingAdmin",
247
- type: "address",
248
- },
249
- ],
250
- name: "NewPendingAdmin",
251
- type: "event",
252
- },
253
- {
254
- anonymous: false,
255
- inputs: [
256
- {
257
- indexed: false,
258
- internalType: "uint256",
259
- name: "oldReserveFactorMantissa",
260
- type: "uint256",
261
- },
262
- {
263
- indexed: false,
264
- internalType: "uint256",
265
- name: "newReserveFactorMantissa",
266
- type: "uint256",
267
- },
268
- ],
269
- name: "NewReserveFactor",
270
- type: "event",
271
- },
272
- {
273
- anonymous: false,
274
- inputs: [
275
- {
276
- indexed: false,
277
- internalType: "address",
278
- name: "redeemer",
279
- type: "address",
280
- },
281
- {
282
- indexed: false,
283
- internalType: "uint256",
284
- name: "redeemAmount",
285
- type: "uint256",
286
- },
287
- {
288
- indexed: false,
289
- internalType: "uint256",
290
- name: "redeemTokens",
291
- type: "uint256",
292
- },
293
- ],
294
- name: "Redeem",
295
- type: "event",
296
- },
297
- {
298
- anonymous: false,
299
- inputs: [
300
- {
301
- indexed: false,
302
- internalType: "address",
303
- name: "payer",
304
- type: "address",
305
- },
306
- {
307
- indexed: false,
308
- internalType: "address",
309
- name: "borrower",
310
- type: "address",
311
- },
312
- {
313
- indexed: false,
314
- internalType: "uint256",
315
- name: "repayAmount",
316
- type: "uint256",
317
- },
318
- {
319
- indexed: false,
320
- internalType: "uint256",
321
- name: "accountBorrows",
322
- type: "uint256",
323
- },
324
- {
325
- indexed: false,
326
- internalType: "uint256",
327
- name: "totalBorrows",
328
- type: "uint256",
329
- },
330
- ],
331
- name: "RepayBorrow",
332
- type: "event",
333
- },
334
- {
335
- anonymous: false,
336
- inputs: [
337
- {
338
- indexed: false,
339
- internalType: "address",
340
- name: "benefactor",
341
- type: "address",
342
- },
343
- {
344
- indexed: false,
345
- internalType: "uint256",
346
- name: "addAmount",
347
- type: "uint256",
348
- },
349
- {
350
- indexed: false,
351
- internalType: "uint256",
352
- name: "newTotalReserves",
353
- type: "uint256",
354
- },
355
- ],
356
- name: "ReservesAdded",
357
- type: "event",
358
- },
359
- {
360
- anonymous: false,
361
- inputs: [
362
- {
363
- indexed: false,
364
- internalType: "address",
365
- name: "admin",
366
- type: "address",
367
- },
368
- {
369
- indexed: false,
370
- internalType: "uint256",
371
- name: "reduceAmount",
372
- type: "uint256",
373
- },
374
- {
375
- indexed: false,
376
- internalType: "uint256",
377
- name: "newTotalReserves",
378
- type: "uint256",
379
- },
380
- ],
381
- name: "ReservesReduced",
382
- type: "event",
383
- },
384
- {
385
- anonymous: false,
386
- inputs: [
387
- {
388
- indexed: true,
389
- internalType: "address",
390
- name: "from",
391
- type: "address",
392
- },
393
- {
394
- indexed: true,
395
- internalType: "address",
396
- name: "to",
397
- type: "address",
398
- },
399
- {
400
- indexed: false,
401
- internalType: "uint256",
402
- name: "amount",
403
- type: "uint256",
404
- },
405
- ],
406
- name: "Transfer",
407
- type: "event",
408
- },
409
- {
410
- inputs: [],
411
- name: "_acceptAdmin",
412
- outputs: [
413
- {
414
- internalType: "uint256",
415
- name: "",
416
- type: "uint256",
417
- },
418
- ],
419
- stateMutability: "nonpayable",
420
- type: "function",
421
- },
422
- {
423
- inputs: [
424
- {
425
- internalType: "uint256",
426
- name: "reduceAmount",
427
- type: "uint256",
428
- },
429
- ],
430
- name: "_reduceReserves",
431
- outputs: [
432
- {
433
- internalType: "uint256",
434
- name: "",
435
- type: "uint256",
436
- },
437
- ],
438
- stateMutability: "nonpayable",
439
- type: "function",
440
- },
441
- {
442
- inputs: [
443
- {
444
- internalType: "address",
445
- name: "newComptroller",
446
- type: "address",
447
- },
448
- ],
449
- name: "_setComptroller",
450
- outputs: [
451
- {
452
- internalType: "uint256",
453
- name: "",
454
- type: "uint256",
455
- },
456
- ],
457
- stateMutability: "nonpayable",
458
- type: "function",
459
- },
460
- {
461
- inputs: [
462
- {
463
- internalType: "uint256",
464
- name: "discountRateMantissa",
465
- type: "uint256",
466
- },
467
- ],
468
- name: "_setDiscountRate",
469
- outputs: [
470
- {
471
- internalType: "uint256",
472
- name: "",
473
- type: "uint256",
474
- },
475
- ],
476
- stateMutability: "nonpayable",
477
- type: "function",
478
- },
479
- {
480
- inputs: [
481
- {
482
- internalType: "address",
483
- name: "newInterestRateModel",
484
- type: "address",
485
- },
486
- ],
487
- name: "_setInterestRateModel",
488
- outputs: [
489
- {
490
- internalType: "uint256",
491
- name: "",
492
- type: "uint256",
493
- },
494
- ],
495
- stateMutability: "nonpayable",
496
- type: "function",
497
- },
498
- {
499
- inputs: [
500
- {
501
- internalType: "address payable",
502
- name: "newPendingAdmin",
503
- type: "address",
504
- },
505
- ],
506
- name: "_setPendingAdmin",
507
- outputs: [
508
- {
509
- internalType: "uint256",
510
- name: "",
511
- type: "uint256",
512
- },
513
- ],
514
- stateMutability: "nonpayable",
515
- type: "function",
516
- },
517
- {
518
- inputs: [
519
- {
520
- internalType: "uint256",
521
- name: "newReserveFactorMantissa",
522
- type: "uint256",
523
- },
524
- ],
525
- name: "_setReserveFactor",
526
- outputs: [
527
- {
528
- internalType: "uint256",
529
- name: "",
530
- type: "uint256",
531
- },
532
- ],
533
- stateMutability: "nonpayable",
534
- type: "function",
535
- },
536
- {
537
- inputs: [],
538
- name: "accrualBlockNumber",
539
- outputs: [
540
- {
541
- internalType: "uint256",
542
- name: "",
543
- type: "uint256",
544
- },
545
- ],
546
- stateMutability: "nonpayable",
547
- type: "function",
548
- },
549
- {
550
- inputs: [],
551
- name: "accrueInterest",
552
- outputs: [
553
- {
554
- internalType: "uint256",
555
- name: "",
556
- type: "uint256",
557
- },
558
- ],
559
- stateMutability: "nonpayable",
560
- type: "function",
561
- },
562
- {
563
- inputs: [
564
- {
565
- internalType: "address",
566
- name: "owner",
567
- type: "address",
568
- },
569
- {
570
- internalType: "address",
571
- name: "spender",
572
- type: "address",
573
- },
574
- ],
575
- name: "allowance",
576
- outputs: [
577
- {
578
- internalType: "uint256",
579
- name: "",
580
- type: "uint256",
581
- },
582
- ],
583
- stateMutability: "view",
584
- type: "function",
585
- },
586
- {
587
- inputs: [
588
- {
589
- internalType: "address",
590
- name: "spender",
591
- type: "address",
592
- },
593
- {
594
- internalType: "uint256",
595
- name: "amount",
596
- type: "uint256",
597
- },
598
- ],
599
- name: "approve",
600
- outputs: [
601
- {
602
- internalType: "bool",
603
- name: "",
604
- type: "bool",
605
- },
606
- ],
607
- stateMutability: "nonpayable",
608
- type: "function",
609
- },
610
- {
611
- inputs: [
612
- {
613
- internalType: "address",
614
- name: "owner",
615
- type: "address",
616
- },
617
- ],
618
- name: "balanceOf",
619
- outputs: [
620
- {
621
- internalType: "uint256",
622
- name: "",
623
- type: "uint256",
624
- },
625
- ],
626
- stateMutability: "view",
627
- type: "function",
628
- },
629
- {
630
- inputs: [
631
- {
632
- internalType: "address",
633
- name: "owner",
634
- type: "address",
635
- },
636
- ],
637
- name: "balanceOfUnderlying",
638
- outputs: [
639
- {
640
- internalType: "uint256",
641
- name: "",
642
- type: "uint256",
643
- },
644
- ],
645
- stateMutability: "nonpayable",
646
- type: "function",
647
- },
648
- {
649
- inputs: [
650
- {
651
- internalType: "address",
652
- name: "account",
653
- type: "address",
654
- },
655
- ],
656
- name: "borrowBalanceCurrent",
657
- outputs: [
658
- {
659
- internalType: "uint256",
660
- name: "",
661
- type: "uint256",
662
- },
663
- ],
664
- stateMutability: "nonpayable",
665
- type: "function",
666
- },
667
- {
668
- inputs: [
669
- {
670
- internalType: "address",
671
- name: "account",
672
- type: "address",
673
- },
674
- ],
675
- name: "borrowBalanceStored",
676
- outputs: [
677
- {
678
- internalType: "uint256",
679
- name: "",
680
- type: "uint256",
681
- },
682
- ],
683
- stateMutability: "view",
684
- type: "function",
685
- },
686
- {
687
- inputs: [],
688
- name: "borrowRatePerBlock",
689
- outputs: [
690
- {
691
- internalType: "uint256",
692
- name: "",
693
- type: "uint256",
694
- },
695
- ],
696
- stateMutability: "view",
697
- type: "function",
698
- },
699
- {
700
- inputs: [],
701
- name: "discountRateMantissa",
702
- outputs: [
703
- {
704
- internalType: "uint256",
705
- name: "",
706
- type: "uint256",
707
- },
708
- ],
709
- stateMutability: "view",
710
- type: "function",
711
- },
712
- {
713
- inputs: [],
714
- name: "exchangeRateCurrent",
715
- outputs: [
716
- {
717
- internalType: "uint256",
718
- name: "",
719
- type: "uint256",
720
- },
721
- ],
722
- stateMutability: "nonpayable",
723
- type: "function",
724
- },
725
- {
726
- inputs: [],
727
- name: "exchangeRateStored",
728
- outputs: [
729
- {
730
- internalType: "uint256",
731
- name: "",
732
- type: "uint256",
733
- },
734
- ],
735
- stateMutability: "view",
736
- type: "function",
737
- },
738
- {
739
- inputs: [
740
- {
741
- internalType: "address",
742
- name: "account",
743
- type: "address",
744
- },
745
- ],
746
- name: "getAccountSnapshot",
747
- outputs: [
748
- {
749
- internalType: "uint256",
750
- name: "",
751
- type: "uint256",
752
- },
753
- {
754
- internalType: "uint256",
755
- name: "",
756
- type: "uint256",
757
- },
758
- {
759
- internalType: "uint256",
760
- name: "",
761
- type: "uint256",
762
- },
763
- {
764
- internalType: "uint256",
765
- name: "",
766
- type: "uint256",
767
- },
768
- ],
769
- stateMutability: "view",
770
- type: "function",
771
- },
772
- {
773
- inputs: [],
774
- name: "getCash",
775
- outputs: [
776
- {
777
- internalType: "uint256",
778
- name: "",
779
- type: "uint256",
780
- },
781
- ],
782
- stateMutability: "view",
783
- type: "function",
784
- },
785
- {
786
- inputs: [
787
- {
788
- internalType: "address",
789
- name: "liquidator",
790
- type: "address",
791
- },
792
- {
793
- internalType: "address",
794
- name: "borrower",
795
- type: "address",
796
- },
797
- {
798
- internalType: "uint256",
799
- name: "seizeTokens",
800
- type: "uint256",
801
- },
802
- {
803
- internalType: "uint256",
804
- name: "protocolShareMantissa",
805
- type: "uint256",
806
- },
807
- ],
808
- name: "seize",
809
- outputs: [
810
- {
811
- internalType: "uint256",
812
- name: "",
813
- type: "uint256",
814
- },
815
- ],
816
- stateMutability: "nonpayable",
817
- type: "function",
818
- },
819
- {
820
- inputs: [],
821
- name: "supplyRatePerBlock",
822
- outputs: [
823
- {
824
- internalType: "uint256",
825
- name: "",
826
- type: "uint256",
827
- },
828
- ],
829
- stateMutability: "view",
830
- type: "function",
831
- },
832
- {
833
- inputs: [],
834
- name: "totalBorrowsCurrent",
835
- outputs: [
836
- {
837
- internalType: "uint256",
838
- name: "",
839
- type: "uint256",
840
- },
841
- ],
842
- stateMutability: "nonpayable",
843
- type: "function",
844
- },
845
- {
846
- inputs: [],
847
- name: "totalSupply",
848
- outputs: [
849
- {
850
- internalType: "uint256",
851
- name: "",
852
- type: "uint256",
853
- },
854
- ],
855
- stateMutability: "view",
856
- type: "function",
857
- },
858
- {
859
- inputs: [
860
- {
861
- internalType: "address",
862
- name: "dst",
863
- type: "address",
864
- },
865
- {
866
- internalType: "uint256",
867
- name: "amount",
868
- type: "uint256",
869
- },
870
- ],
871
- name: "transfer",
872
- outputs: [
873
- {
874
- internalType: "bool",
875
- name: "",
876
- type: "bool",
877
- },
878
- ],
879
- stateMutability: "nonpayable",
880
- type: "function",
881
- },
882
- {
883
- inputs: [
884
- {
885
- internalType: "address",
886
- name: "src",
887
- type: "address",
888
- },
889
- {
890
- internalType: "address",
891
- name: "dst",
892
- type: "address",
893
- },
894
- {
895
- internalType: "uint256",
896
- name: "amount",
897
- type: "uint256",
898
- },
899
- ],
900
- name: "transferFrom",
901
- outputs: [
902
- {
903
- internalType: "bool",
904
- name: "",
905
- type: "bool",
906
- },
907
- ],
908
- stateMutability: "nonpayable",
909
- type: "function",
910
- },
911
- ];
912
- class ICToken__factory {
913
- static createInterface() {
914
- return new ethers_1.Interface(_abi);
915
- }
916
- static connect(address, runner) {
917
- return new ethers_1.Contract(address, _abi, runner);
918
- }
919
- }
920
- exports.ICToken__factory = ICToken__factory;
921
- ICToken__factory.abi = _abi;
922
- //# sourceMappingURL=ICToken__factory.js.map