@ripe-finance/sdk 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. package/LICENSE +41 -0
  2. package/README.md +44 -0
  3. package/dist/contracts/AddyRegistry.d.ts +1109 -0
  4. package/dist/contracts/AddyRegistry.d.ts.map +1 -0
  5. package/dist/contracts/AddyRegistry.js +1392 -0
  6. package/dist/contracts/AddyRegistry_v1.d.ts +473 -0
  7. package/dist/contracts/AddyRegistry_v1.d.ts.map +1 -0
  8. package/dist/contracts/AddyRegistry_v1.js +594 -0
  9. package/dist/contracts/AddyRegistry_v2.d.ts +1050 -0
  10. package/dist/contracts/AddyRegistry_v2.d.ts.map +1 -0
  11. package/dist/contracts/AddyRegistry_v2.js +1313 -0
  12. package/dist/contracts/Agent.d.ts +2709 -0
  13. package/dist/contracts/Agent.d.ts.map +1 -0
  14. package/dist/contracts/Agent.js +3458 -0
  15. package/dist/contracts/AgentFactory.d.ts +1665 -0
  16. package/dist/contracts/AgentFactory.d.ts.map +1 -0
  17. package/dist/contracts/AgentFactory.js +2078 -0
  18. package/dist/contracts/AgentFactory_v1.d.ts +1054 -0
  19. package/dist/contracts/AgentFactory_v1.d.ts.map +1 -0
  20. package/dist/contracts/AgentFactory_v1.js +1336 -0
  21. package/dist/contracts/AgentFactory_v2.d.ts +1275 -0
  22. package/dist/contracts/AgentFactory_v2.d.ts.map +1 -0
  23. package/dist/contracts/AgentFactory_v2.js +1609 -0
  24. package/dist/contracts/AgentTemplate.d.ts +2629 -0
  25. package/dist/contracts/AgentTemplate.d.ts.map +1 -0
  26. package/dist/contracts/AgentTemplate.js +3370 -0
  27. package/dist/contracts/Agent_v1.d.ts +2631 -0
  28. package/dist/contracts/Agent_v1.d.ts.map +1 -0
  29. package/dist/contracts/Agent_v1.js +3372 -0
  30. package/dist/contracts/Agent_v2.d.ts +2709 -0
  31. package/dist/contracts/Agent_v2.d.ts.map +1 -0
  32. package/dist/contracts/Agent_v2.js +3458 -0
  33. package/dist/contracts/AuctionHouse.d.ts +1566 -0
  34. package/dist/contracts/AuctionHouse.d.ts.map +1 -0
  35. package/dist/contracts/AuctionHouse.js +1814 -0
  36. package/dist/contracts/AuctionHouseNFT.d.ts +259 -0
  37. package/dist/contracts/AuctionHouseNFT.d.ts.map +1 -0
  38. package/dist/contracts/AuctionHouseNFT.js +295 -0
  39. package/dist/contracts/BlueChipYieldPrices.d.ts +1916 -0
  40. package/dist/contracts/BlueChipYieldPrices.d.ts.map +1 -0
  41. package/dist/contracts/BlueChipYieldPrices.js +2414 -0
  42. package/dist/contracts/Boardroom.d.ts +276 -0
  43. package/dist/contracts/Boardroom.d.ts.map +1 -0
  44. package/dist/contracts/Boardroom.js +317 -0
  45. package/dist/contracts/BondRoom.d.ts +539 -0
  46. package/dist/contracts/BondRoom.d.ts.map +1 -0
  47. package/dist/contracts/BondRoom.js +640 -0
  48. package/dist/contracts/ChainlinkFeeds.d.ts +706 -0
  49. package/dist/contracts/ChainlinkFeeds.d.ts.map +1 -0
  50. package/dist/contracts/ChainlinkFeeds.js +900 -0
  51. package/dist/contracts/ChainlinkPrices.d.ts +1594 -0
  52. package/dist/contracts/ChainlinkPrices.d.ts.map +1 -0
  53. package/dist/contracts/ChainlinkPrices.js +2023 -0
  54. package/dist/contracts/Contributor.d.ts +731 -0
  55. package/dist/contracts/Contributor.d.ts.map +1 -0
  56. package/dist/contracts/Contributor.js +896 -0
  57. package/dist/contracts/CreditEngine.d.ts +2295 -0
  58. package/dist/contracts/CreditEngine.d.ts.map +1 -0
  59. package/dist/contracts/CreditEngine.js +2662 -0
  60. package/dist/contracts/CurvePrices.d.ts +2041 -0
  61. package/dist/contracts/CurvePrices.d.ts.map +1 -0
  62. package/dist/contracts/CurvePrices.js +2523 -0
  63. package/dist/contracts/DefaultsBase.d.ts +470 -0
  64. package/dist/contracts/DefaultsBase.d.ts.map +1 -0
  65. package/dist/contracts/DefaultsBase.js +512 -0
  66. package/dist/contracts/ERC20.d.ts +271 -0
  67. package/dist/contracts/ERC20.d.ts.map +1 -0
  68. package/dist/contracts/ERC20.js +339 -0
  69. package/dist/contracts/Endaoment.d.ts +2208 -0
  70. package/dist/contracts/Endaoment.d.ts.map +1 -0
  71. package/dist/contracts/Endaoment.js +2877 -0
  72. package/dist/contracts/GreenPool.d.ts +1248 -0
  73. package/dist/contracts/GreenPool.d.ts.map +1 -0
  74. package/dist/contracts/GreenPool.js +1614 -0
  75. package/dist/contracts/GreenToken.d.ts +776 -0
  76. package/dist/contracts/GreenToken.d.ts.map +1 -0
  77. package/dist/contracts/GreenToken.js +990 -0
  78. package/dist/contracts/HumanResources.d.ts +1176 -0
  79. package/dist/contracts/HumanResources.d.ts.map +1 -0
  80. package/dist/contracts/HumanResources.js +1464 -0
  81. package/dist/contracts/Ledger.d.ts +2312 -0
  82. package/dist/contracts/Ledger.d.ts.map +1 -0
  83. package/dist/contracts/Ledger.js +2712 -0
  84. package/dist/contracts/LegoAaveV3.d.ts +1033 -0
  85. package/dist/contracts/LegoAaveV3.d.ts.map +1 -0
  86. package/dist/contracts/LegoAaveV3.js +1330 -0
  87. package/dist/contracts/LegoAeroClassic.d.ts +1204 -0
  88. package/dist/contracts/LegoAeroClassic.d.ts.map +1 -0
  89. package/dist/contracts/LegoAeroClassic.js +1546 -0
  90. package/dist/contracts/LegoAeroSlipstream.d.ts +1300 -0
  91. package/dist/contracts/LegoAeroSlipstream.d.ts.map +1 -0
  92. package/dist/contracts/LegoAeroSlipstream.js +1671 -0
  93. package/dist/contracts/LegoCommon.d.ts +164 -0
  94. package/dist/contracts/LegoCommon.d.ts.map +1 -0
  95. package/dist/contracts/LegoCommon.js +202 -0
  96. package/dist/contracts/LegoCompoundV3.d.ts +1060 -0
  97. package/dist/contracts/LegoCompoundV3.d.ts.map +1 -0
  98. package/dist/contracts/LegoCompoundV3.js +1365 -0
  99. package/dist/contracts/LegoCredit.d.ts +140 -0
  100. package/dist/contracts/LegoCredit.d.ts.map +1 -0
  101. package/dist/contracts/LegoCredit.js +179 -0
  102. package/dist/contracts/LegoCurve.d.ts +1189 -0
  103. package/dist/contracts/LegoCurve.d.ts.map +1 -0
  104. package/dist/contracts/LegoCurve.js +1519 -0
  105. package/dist/contracts/LegoDex.d.ts +587 -0
  106. package/dist/contracts/LegoDex.d.ts.map +1 -0
  107. package/dist/contracts/LegoDex.js +774 -0
  108. package/dist/contracts/LegoEuler.d.ts +1074 -0
  109. package/dist/contracts/LegoEuler.d.ts.map +1 -0
  110. package/dist/contracts/LegoEuler.js +1383 -0
  111. package/dist/contracts/LegoFluid.d.ts +1025 -0
  112. package/dist/contracts/LegoFluid.d.ts.map +1 -0
  113. package/dist/contracts/LegoFluid.js +1320 -0
  114. package/dist/contracts/LegoHelper.d.ts +1563 -0
  115. package/dist/contracts/LegoHelper.d.ts.map +1 -0
  116. package/dist/contracts/LegoHelper.js +1947 -0
  117. package/dist/contracts/LegoMoonwell.d.ts +1042 -0
  118. package/dist/contracts/LegoMoonwell.d.ts.map +1 -0
  119. package/dist/contracts/LegoMoonwell.js +1342 -0
  120. package/dist/contracts/LegoMorpho.d.ts +1074 -0
  121. package/dist/contracts/LegoMorpho.d.ts.map +1 -0
  122. package/dist/contracts/LegoMorpho.js +1383 -0
  123. package/dist/contracts/LegoRegistry.d.ts +1079 -0
  124. package/dist/contracts/LegoRegistry.d.ts.map +1 -0
  125. package/dist/contracts/LegoRegistry.js +1368 -0
  126. package/dist/contracts/LegoSky.d.ts +923 -0
  127. package/dist/contracts/LegoSky.d.ts.map +1 -0
  128. package/dist/contracts/LegoSky.js +1180 -0
  129. package/dist/contracts/LegoUniswapV2.d.ts +1204 -0
  130. package/dist/contracts/LegoUniswapV2.d.ts.map +1 -0
  131. package/dist/contracts/LegoUniswapV2.js +1546 -0
  132. package/dist/contracts/LegoUniswapV3.d.ts +1338 -0
  133. package/dist/contracts/LegoUniswapV3.d.ts.map +1 -0
  134. package/dist/contracts/LegoUniswapV3.js +1718 -0
  135. package/dist/contracts/LegoYield.d.ts +390 -0
  136. package/dist/contracts/LegoYield.d.ts.map +1 -0
  137. package/dist/contracts/LegoYield.js +511 -0
  138. package/dist/contracts/Lootbox.d.ts +1258 -0
  139. package/dist/contracts/Lootbox.d.ts.map +1 -0
  140. package/dist/contracts/Lootbox.js +1435 -0
  141. package/dist/contracts/MissionControl.d.ts +2642 -0
  142. package/dist/contracts/MissionControl.d.ts.map +1 -0
  143. package/dist/contracts/MissionControl.js +2957 -0
  144. package/dist/contracts/OracleParser.d.ts +207 -0
  145. package/dist/contracts/OracleParser.d.ts.map +1 -0
  146. package/dist/contracts/OracleParser.js +264 -0
  147. package/dist/contracts/OracleRegistry.d.ts +1221 -0
  148. package/dist/contracts/OracleRegistry.d.ts.map +1 -0
  149. package/dist/contracts/OracleRegistry.js +1562 -0
  150. package/dist/contracts/PriceDesk.d.ts +1581 -0
  151. package/dist/contracts/PriceDesk.d.ts.map +1 -0
  152. package/dist/contracts/PriceDesk.js +1993 -0
  153. package/dist/contracts/PriceSheets.d.ts +1127 -0
  154. package/dist/contracts/PriceSheets.d.ts.map +1 -0
  155. package/dist/contracts/PriceSheets.js +1383 -0
  156. package/dist/contracts/PythFeeds.d.ts +640 -0
  157. package/dist/contracts/PythFeeds.d.ts.map +1 -0
  158. package/dist/contracts/PythFeeds.js +813 -0
  159. package/dist/contracts/PythPrices.d.ts +1435 -0
  160. package/dist/contracts/PythPrices.d.ts.map +1 -0
  161. package/dist/contracts/PythPrices.js +1819 -0
  162. package/dist/contracts/RebaseErc20.d.ts +1080 -0
  163. package/dist/contracts/RebaseErc20.d.ts.map +1 -0
  164. package/dist/contracts/RebaseErc20.js +1312 -0
  165. package/dist/contracts/RipeGov.d.ts +2157 -0
  166. package/dist/contracts/RipeGov.d.ts.map +1 -0
  167. package/dist/contracts/RipeGov.js +2529 -0
  168. package/dist/contracts/RipeHq.d.ts +1612 -0
  169. package/dist/contracts/RipeHq.d.ts.map +1 -0
  170. package/dist/contracts/RipeHq.js +2029 -0
  171. package/dist/contracts/RipeToken.d.ts +776 -0
  172. package/dist/contracts/RipeToken.d.ts.map +1 -0
  173. package/dist/contracts/RipeToken.js +990 -0
  174. package/dist/contracts/SavingsGreen.d.ts +1160 -0
  175. package/dist/contracts/SavingsGreen.d.ts.map +1 -0
  176. package/dist/contracts/SavingsGreen.js +1505 -0
  177. package/dist/contracts/SimpleErc20.d.ts +1028 -0
  178. package/dist/contracts/SimpleErc20.d.ts.map +1 -0
  179. package/dist/contracts/SimpleErc20.js +1243 -0
  180. package/dist/contracts/StabilityPool.d.ts +1843 -0
  181. package/dist/contracts/StabilityPool.d.ts.map +1 -0
  182. package/dist/contracts/StabilityPool.js +2229 -0
  183. package/dist/contracts/StorkFeeds.d.ts +640 -0
  184. package/dist/contracts/StorkFeeds.d.ts.map +1 -0
  185. package/dist/contracts/StorkFeeds.js +813 -0
  186. package/dist/contracts/StorkPrices.d.ts +1435 -0
  187. package/dist/contracts/StorkPrices.d.ts.map +1 -0
  188. package/dist/contracts/StorkPrices.js +1819 -0
  189. package/dist/contracts/Switchboard.d.ts +1416 -0
  190. package/dist/contracts/Switchboard.d.ts.map +1 -0
  191. package/dist/contracts/Switchboard.js +1767 -0
  192. package/dist/contracts/SwitchboardAlpha.d.ts +2647 -0
  193. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -0
  194. package/dist/contracts/SwitchboardAlpha.js +3301 -0
  195. package/dist/contracts/SwitchboardBravo.d.ts +2833 -0
  196. package/dist/contracts/SwitchboardBravo.d.ts.map +1 -0
  197. package/dist/contracts/SwitchboardBravo.js +3640 -0
  198. package/dist/contracts/SwitchboardCharlie.d.ts +3651 -0
  199. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -0
  200. package/dist/contracts/SwitchboardCharlie.js +4642 -0
  201. package/dist/contracts/SwitchboardDelta.d.ts +1490 -0
  202. package/dist/contracts/SwitchboardDelta.d.ts.map +1 -0
  203. package/dist/contracts/SwitchboardDelta.js +1872 -0
  204. package/dist/contracts/Teller.d.ts +2664 -0
  205. package/dist/contracts/Teller.d.ts.map +1 -0
  206. package/dist/contracts/Teller.js +3518 -0
  207. package/dist/contracts/TrainingWheels.d.ts +321 -0
  208. package/dist/contracts/TrainingWheels.d.ts.map +1 -0
  209. package/dist/contracts/TrainingWheels.js +376 -0
  210. package/dist/contracts/UserWallet.d.ts +1975 -0
  211. package/dist/contracts/UserWallet.d.ts.map +1 -0
  212. package/dist/contracts/UserWallet.js +2577 -0
  213. package/dist/contracts/UserWalletConfig.d.ts +1852 -0
  214. package/dist/contracts/UserWalletConfig.d.ts.map +1 -0
  215. package/dist/contracts/UserWalletConfig.js +2263 -0
  216. package/dist/contracts/UserWalletConfig_v1.d.ts +1400 -0
  217. package/dist/contracts/UserWalletConfig_v1.d.ts.map +1 -0
  218. package/dist/contracts/UserWalletConfig_v1.js +1676 -0
  219. package/dist/contracts/UserWalletConfig_v2.d.ts +1468 -0
  220. package/dist/contracts/UserWalletConfig_v2.d.ts.map +1 -0
  221. package/dist/contracts/UserWalletConfig_v2.js +1764 -0
  222. package/dist/contracts/UserWallet_v1.d.ts +1980 -0
  223. package/dist/contracts/UserWallet_v1.d.ts.map +1 -0
  224. package/dist/contracts/UserWallet_v1.js +2581 -0
  225. package/dist/contracts/UserWallet_v2.d.ts +1958 -0
  226. package/dist/contracts/UserWallet_v2.d.ts.map +1 -0
  227. package/dist/contracts/UserWallet_v2.js +2553 -0
  228. package/dist/contracts/VaultBook.d.ts +1416 -0
  229. package/dist/contracts/VaultBook.d.ts.map +1 -0
  230. package/dist/contracts/VaultBook.js +1767 -0
  231. package/dist/contracts/WalletConfig.d.ts +1398 -0
  232. package/dist/contracts/WalletConfig.d.ts.map +1 -0
  233. package/dist/contracts/WalletConfig.js +1674 -0
  234. package/dist/contracts/WalletFunds.d.ts +1978 -0
  235. package/dist/contracts/WalletFunds.d.ts.map +1 -0
  236. package/dist/contracts/WalletFunds.js +2579 -0
  237. package/dist/contracts/index.d.ts +37 -0
  238. package/dist/contracts/index.d.ts.map +1 -0
  239. package/dist/contracts/index.js +40 -0
  240. package/dist/contracts/sdk.d.ts +77 -0
  241. package/dist/contracts/sdk.d.ts.map +1 -0
  242. package/dist/contracts/sdk.js +80 -0
  243. package/dist/index.d.ts +2907 -0
  244. package/dist/index.d.ts.map +1 -0
  245. package/dist/index.js +317 -0
  246. package/package.json +36 -0
@@ -0,0 +1,2712 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /* @ts-nocheck */
5
+ import { singleQuery, mutate } from '@dappql/async';
6
+ export const abi = [
7
+ {
8
+ name: 'DepartmentPauseModified',
9
+ inputs: [
10
+ {
11
+ name: 'isPaused',
12
+ type: 'bool',
13
+ indexed: false,
14
+ },
15
+ ],
16
+ anonymous: false,
17
+ type: 'event',
18
+ },
19
+ {
20
+ name: 'DepartmentFundsRecovered',
21
+ inputs: [
22
+ {
23
+ name: 'asset',
24
+ type: 'address',
25
+ indexed: true,
26
+ },
27
+ {
28
+ name: 'recipient',
29
+ type: 'address',
30
+ indexed: true,
31
+ },
32
+ {
33
+ name: 'balance',
34
+ type: 'uint256',
35
+ indexed: false,
36
+ },
37
+ ],
38
+ anonymous: false,
39
+ type: 'event',
40
+ },
41
+ {
42
+ stateMutability: 'view',
43
+ type: 'function',
44
+ name: 'getAddys',
45
+ inputs: [],
46
+ outputs: [
47
+ {
48
+ name: '',
49
+ type: 'tuple',
50
+ components: [
51
+ {
52
+ name: 'hq',
53
+ type: 'address',
54
+ },
55
+ {
56
+ name: 'greenToken',
57
+ type: 'address',
58
+ },
59
+ {
60
+ name: 'savingsGreen',
61
+ type: 'address',
62
+ },
63
+ {
64
+ name: 'ripeToken',
65
+ type: 'address',
66
+ },
67
+ {
68
+ name: 'ledger',
69
+ type: 'address',
70
+ },
71
+ {
72
+ name: 'missionControl',
73
+ type: 'address',
74
+ },
75
+ {
76
+ name: 'switchboard',
77
+ type: 'address',
78
+ },
79
+ {
80
+ name: 'priceDesk',
81
+ type: 'address',
82
+ },
83
+ {
84
+ name: 'vaultBook',
85
+ type: 'address',
86
+ },
87
+ {
88
+ name: 'auctionHouse',
89
+ type: 'address',
90
+ },
91
+ {
92
+ name: 'auctionHouseNft',
93
+ type: 'address',
94
+ },
95
+ {
96
+ name: 'boardroom',
97
+ type: 'address',
98
+ },
99
+ {
100
+ name: 'bondRoom',
101
+ type: 'address',
102
+ },
103
+ {
104
+ name: 'creditEngine',
105
+ type: 'address',
106
+ },
107
+ {
108
+ name: 'endaoment',
109
+ type: 'address',
110
+ },
111
+ {
112
+ name: 'humanResources',
113
+ type: 'address',
114
+ },
115
+ {
116
+ name: 'lootbox',
117
+ type: 'address',
118
+ },
119
+ {
120
+ name: 'teller',
121
+ type: 'address',
122
+ },
123
+ ],
124
+ },
125
+ ],
126
+ },
127
+ {
128
+ stateMutability: 'view',
129
+ type: 'function',
130
+ name: 'getRipeHq',
131
+ inputs: [],
132
+ outputs: [
133
+ {
134
+ name: '',
135
+ type: 'address',
136
+ },
137
+ ],
138
+ },
139
+ {
140
+ stateMutability: 'view',
141
+ type: 'function',
142
+ name: 'canMintGreen',
143
+ inputs: [],
144
+ outputs: [
145
+ {
146
+ name: '',
147
+ type: 'bool',
148
+ },
149
+ ],
150
+ },
151
+ {
152
+ stateMutability: 'view',
153
+ type: 'function',
154
+ name: 'canMintRipe',
155
+ inputs: [],
156
+ outputs: [
157
+ {
158
+ name: '',
159
+ type: 'bool',
160
+ },
161
+ ],
162
+ },
163
+ {
164
+ stateMutability: 'nonpayable',
165
+ type: 'function',
166
+ name: 'pause',
167
+ inputs: [
168
+ {
169
+ name: '_shouldPause',
170
+ type: 'bool',
171
+ },
172
+ ],
173
+ outputs: [],
174
+ },
175
+ {
176
+ stateMutability: 'nonpayable',
177
+ type: 'function',
178
+ name: 'recoverFunds',
179
+ inputs: [
180
+ {
181
+ name: '_recipient',
182
+ type: 'address',
183
+ },
184
+ {
185
+ name: '_asset',
186
+ type: 'address',
187
+ },
188
+ ],
189
+ outputs: [],
190
+ },
191
+ {
192
+ stateMutability: 'nonpayable',
193
+ type: 'function',
194
+ name: 'recoverFundsMany',
195
+ inputs: [
196
+ {
197
+ name: '_recipient',
198
+ type: 'address',
199
+ },
200
+ {
201
+ name: '_assets',
202
+ type: 'address[]',
203
+ },
204
+ ],
205
+ outputs: [],
206
+ },
207
+ {
208
+ stateMutability: 'view',
209
+ type: 'function',
210
+ name: 'isPaused',
211
+ inputs: [],
212
+ outputs: [
213
+ {
214
+ name: '',
215
+ type: 'bool',
216
+ },
217
+ ],
218
+ },
219
+ {
220
+ stateMutability: 'nonpayable',
221
+ type: 'function',
222
+ name: 'checkAndUpdateLastTouch',
223
+ inputs: [
224
+ {
225
+ name: '_user',
226
+ type: 'address',
227
+ },
228
+ {
229
+ name: '_shouldCheck',
230
+ type: 'bool',
231
+ },
232
+ ],
233
+ outputs: [],
234
+ },
235
+ {
236
+ stateMutability: 'nonpayable',
237
+ type: 'function',
238
+ name: 'checkAndUpdateLastTouch',
239
+ inputs: [
240
+ {
241
+ name: '_user',
242
+ type: 'address',
243
+ },
244
+ {
245
+ name: '_shouldCheck',
246
+ type: 'bool',
247
+ },
248
+ {
249
+ name: '_mc',
250
+ type: 'address',
251
+ },
252
+ ],
253
+ outputs: [],
254
+ },
255
+ {
256
+ stateMutability: 'nonpayable',
257
+ type: 'function',
258
+ name: 'setLockedAccount',
259
+ inputs: [
260
+ {
261
+ name: '_wallet',
262
+ type: 'address',
263
+ },
264
+ {
265
+ name: '_shouldLock',
266
+ type: 'bool',
267
+ },
268
+ ],
269
+ outputs: [],
270
+ },
271
+ {
272
+ stateMutability: 'view',
273
+ type: 'function',
274
+ name: 'isParticipatingInVault',
275
+ inputs: [
276
+ {
277
+ name: '_user',
278
+ type: 'address',
279
+ },
280
+ {
281
+ name: '_vaultId',
282
+ type: 'uint256',
283
+ },
284
+ ],
285
+ outputs: [
286
+ {
287
+ name: '',
288
+ type: 'bool',
289
+ },
290
+ ],
291
+ },
292
+ {
293
+ stateMutability: 'view',
294
+ type: 'function',
295
+ name: 'getNumUserVaults',
296
+ inputs: [
297
+ {
298
+ name: '_user',
299
+ type: 'address',
300
+ },
301
+ ],
302
+ outputs: [
303
+ {
304
+ name: '',
305
+ type: 'uint256',
306
+ },
307
+ ],
308
+ },
309
+ {
310
+ stateMutability: 'nonpayable',
311
+ type: 'function',
312
+ name: 'addVaultToUser',
313
+ inputs: [
314
+ {
315
+ name: '_user',
316
+ type: 'address',
317
+ },
318
+ {
319
+ name: '_vaultId',
320
+ type: 'uint256',
321
+ },
322
+ ],
323
+ outputs: [],
324
+ },
325
+ {
326
+ stateMutability: 'nonpayable',
327
+ type: 'function',
328
+ name: 'removeVaultFromUser',
329
+ inputs: [
330
+ {
331
+ name: '_user',
332
+ type: 'address',
333
+ },
334
+ {
335
+ name: '_vaultId',
336
+ type: 'uint256',
337
+ },
338
+ ],
339
+ outputs: [],
340
+ },
341
+ {
342
+ stateMutability: 'view',
343
+ type: 'function',
344
+ name: 'getDepositLedgerData',
345
+ inputs: [
346
+ {
347
+ name: '_user',
348
+ type: 'address',
349
+ },
350
+ {
351
+ name: '_vaultId',
352
+ type: 'uint256',
353
+ },
354
+ ],
355
+ outputs: [
356
+ {
357
+ name: '',
358
+ type: 'tuple',
359
+ components: [
360
+ {
361
+ name: 'isParticipatingInVault',
362
+ type: 'bool',
363
+ },
364
+ {
365
+ name: 'numUserVaults',
366
+ type: 'uint256',
367
+ },
368
+ ],
369
+ },
370
+ ],
371
+ },
372
+ {
373
+ stateMutability: 'nonpayable',
374
+ type: 'function',
375
+ name: 'setUserDebt',
376
+ inputs: [
377
+ {
378
+ name: '_user',
379
+ type: 'address',
380
+ },
381
+ {
382
+ name: '_userDebt',
383
+ type: 'tuple',
384
+ components: [
385
+ {
386
+ name: 'amount',
387
+ type: 'uint256',
388
+ },
389
+ {
390
+ name: 'principal',
391
+ type: 'uint256',
392
+ },
393
+ {
394
+ name: 'debtTerms',
395
+ type: 'tuple',
396
+ components: [
397
+ {
398
+ name: 'ltv',
399
+ type: 'uint256',
400
+ },
401
+ {
402
+ name: 'redemptionThreshold',
403
+ type: 'uint256',
404
+ },
405
+ {
406
+ name: 'liqThreshold',
407
+ type: 'uint256',
408
+ },
409
+ {
410
+ name: 'liqFee',
411
+ type: 'uint256',
412
+ },
413
+ {
414
+ name: 'borrowRate',
415
+ type: 'uint256',
416
+ },
417
+ {
418
+ name: 'daowry',
419
+ type: 'uint256',
420
+ },
421
+ ],
422
+ },
423
+ {
424
+ name: 'lastTimestamp',
425
+ type: 'uint256',
426
+ },
427
+ {
428
+ name: 'inLiquidation',
429
+ type: 'bool',
430
+ },
431
+ ],
432
+ },
433
+ {
434
+ name: '_newYield',
435
+ type: 'uint256',
436
+ },
437
+ {
438
+ name: '_interval',
439
+ type: 'tuple',
440
+ components: [
441
+ {
442
+ name: 'start',
443
+ type: 'uint256',
444
+ },
445
+ {
446
+ name: 'amount',
447
+ type: 'uint256',
448
+ },
449
+ ],
450
+ },
451
+ ],
452
+ outputs: [],
453
+ },
454
+ {
455
+ stateMutability: 'nonpayable',
456
+ type: 'function',
457
+ name: 'flushUnrealizedYield',
458
+ inputs: [],
459
+ outputs: [
460
+ {
461
+ name: '',
462
+ type: 'uint256',
463
+ },
464
+ ],
465
+ },
466
+ {
467
+ stateMutability: 'view',
468
+ type: 'function',
469
+ name: 'hasDebt',
470
+ inputs: [
471
+ {
472
+ name: '_user',
473
+ type: 'address',
474
+ },
475
+ ],
476
+ outputs: [
477
+ {
478
+ name: '',
479
+ type: 'bool',
480
+ },
481
+ ],
482
+ },
483
+ {
484
+ stateMutability: 'view',
485
+ type: 'function',
486
+ name: 'getNumBorrowers',
487
+ inputs: [],
488
+ outputs: [
489
+ {
490
+ name: '',
491
+ type: 'uint256',
492
+ },
493
+ ],
494
+ },
495
+ {
496
+ stateMutability: 'view',
497
+ type: 'function',
498
+ name: 'getBorrowDataBundle',
499
+ inputs: [
500
+ {
501
+ name: '_user',
502
+ type: 'address',
503
+ },
504
+ ],
505
+ outputs: [
506
+ {
507
+ name: '',
508
+ type: 'tuple',
509
+ components: [
510
+ {
511
+ name: 'userDebt',
512
+ type: 'tuple',
513
+ components: [
514
+ {
515
+ name: 'amount',
516
+ type: 'uint256',
517
+ },
518
+ {
519
+ name: 'principal',
520
+ type: 'uint256',
521
+ },
522
+ {
523
+ name: 'debtTerms',
524
+ type: 'tuple',
525
+ components: [
526
+ {
527
+ name: 'ltv',
528
+ type: 'uint256',
529
+ },
530
+ {
531
+ name: 'redemptionThreshold',
532
+ type: 'uint256',
533
+ },
534
+ {
535
+ name: 'liqThreshold',
536
+ type: 'uint256',
537
+ },
538
+ {
539
+ name: 'liqFee',
540
+ type: 'uint256',
541
+ },
542
+ {
543
+ name: 'borrowRate',
544
+ type: 'uint256',
545
+ },
546
+ {
547
+ name: 'daowry',
548
+ type: 'uint256',
549
+ },
550
+ ],
551
+ },
552
+ {
553
+ name: 'lastTimestamp',
554
+ type: 'uint256',
555
+ },
556
+ {
557
+ name: 'inLiquidation',
558
+ type: 'bool',
559
+ },
560
+ ],
561
+ },
562
+ {
563
+ name: 'userBorrowInterval',
564
+ type: 'tuple',
565
+ components: [
566
+ {
567
+ name: 'start',
568
+ type: 'uint256',
569
+ },
570
+ {
571
+ name: 'amount',
572
+ type: 'uint256',
573
+ },
574
+ ],
575
+ },
576
+ {
577
+ name: 'isUserBorrower',
578
+ type: 'bool',
579
+ },
580
+ {
581
+ name: 'numUserVaults',
582
+ type: 'uint256',
583
+ },
584
+ {
585
+ name: 'totalDebt',
586
+ type: 'uint256',
587
+ },
588
+ {
589
+ name: 'numBorrowers',
590
+ type: 'uint256',
591
+ },
592
+ ],
593
+ },
594
+ ],
595
+ },
596
+ {
597
+ stateMutability: 'view',
598
+ type: 'function',
599
+ name: 'getRepayDataBundle',
600
+ inputs: [
601
+ {
602
+ name: '_user',
603
+ type: 'address',
604
+ },
605
+ ],
606
+ outputs: [
607
+ {
608
+ name: '',
609
+ type: 'tuple',
610
+ components: [
611
+ {
612
+ name: 'userDebt',
613
+ type: 'tuple',
614
+ components: [
615
+ {
616
+ name: 'amount',
617
+ type: 'uint256',
618
+ },
619
+ {
620
+ name: 'principal',
621
+ type: 'uint256',
622
+ },
623
+ {
624
+ name: 'debtTerms',
625
+ type: 'tuple',
626
+ components: [
627
+ {
628
+ name: 'ltv',
629
+ type: 'uint256',
630
+ },
631
+ {
632
+ name: 'redemptionThreshold',
633
+ type: 'uint256',
634
+ },
635
+ {
636
+ name: 'liqThreshold',
637
+ type: 'uint256',
638
+ },
639
+ {
640
+ name: 'liqFee',
641
+ type: 'uint256',
642
+ },
643
+ {
644
+ name: 'borrowRate',
645
+ type: 'uint256',
646
+ },
647
+ {
648
+ name: 'daowry',
649
+ type: 'uint256',
650
+ },
651
+ ],
652
+ },
653
+ {
654
+ name: 'lastTimestamp',
655
+ type: 'uint256',
656
+ },
657
+ {
658
+ name: 'inLiquidation',
659
+ type: 'bool',
660
+ },
661
+ ],
662
+ },
663
+ {
664
+ name: 'numUserVaults',
665
+ type: 'uint256',
666
+ },
667
+ ],
668
+ },
669
+ ],
670
+ },
671
+ {
672
+ stateMutability: 'view',
673
+ type: 'function',
674
+ name: 'isBorrower',
675
+ inputs: [
676
+ {
677
+ name: '_user',
678
+ type: 'address',
679
+ },
680
+ ],
681
+ outputs: [
682
+ {
683
+ name: '',
684
+ type: 'bool',
685
+ },
686
+ ],
687
+ },
688
+ {
689
+ stateMutability: 'view',
690
+ type: 'function',
691
+ name: 'isUserInLiquidation',
692
+ inputs: [
693
+ {
694
+ name: '_user',
695
+ type: 'address',
696
+ },
697
+ ],
698
+ outputs: [
699
+ {
700
+ name: '',
701
+ type: 'bool',
702
+ },
703
+ ],
704
+ },
705
+ {
706
+ stateMutability: 'nonpayable',
707
+ type: 'function',
708
+ name: 'setRipeRewards',
709
+ inputs: [
710
+ {
711
+ name: '_ripeRewards',
712
+ type: 'tuple',
713
+ components: [
714
+ {
715
+ name: 'borrowers',
716
+ type: 'uint256',
717
+ },
718
+ {
719
+ name: 'stakers',
720
+ type: 'uint256',
721
+ },
722
+ {
723
+ name: 'voters',
724
+ type: 'uint256',
725
+ },
726
+ {
727
+ name: 'genDepositors',
728
+ type: 'uint256',
729
+ },
730
+ {
731
+ name: 'newRipeRewards',
732
+ type: 'uint256',
733
+ },
734
+ {
735
+ name: 'lastUpdate',
736
+ type: 'uint256',
737
+ },
738
+ ],
739
+ },
740
+ ],
741
+ outputs: [],
742
+ },
743
+ {
744
+ stateMutability: 'nonpayable',
745
+ type: 'function',
746
+ name: 'setRipeAvailForRewards',
747
+ inputs: [
748
+ {
749
+ name: '_amount',
750
+ type: 'uint256',
751
+ },
752
+ ],
753
+ outputs: [],
754
+ },
755
+ {
756
+ stateMutability: 'nonpayable',
757
+ type: 'function',
758
+ name: 'didGetRewardsFromStabClaims',
759
+ inputs: [
760
+ {
761
+ name: '_amount',
762
+ type: 'uint256',
763
+ },
764
+ ],
765
+ outputs: [],
766
+ },
767
+ {
768
+ stateMutability: 'nonpayable',
769
+ type: 'function',
770
+ name: 'setDepositPointsAndRipeRewards',
771
+ inputs: [
772
+ {
773
+ name: '_user',
774
+ type: 'address',
775
+ },
776
+ {
777
+ name: '_vaultId',
778
+ type: 'uint256',
779
+ },
780
+ {
781
+ name: '_asset',
782
+ type: 'address',
783
+ },
784
+ {
785
+ name: '_userPoints',
786
+ type: 'tuple',
787
+ components: [
788
+ {
789
+ name: 'balancePoints',
790
+ type: 'uint256',
791
+ },
792
+ {
793
+ name: 'lastBalance',
794
+ type: 'uint256',
795
+ },
796
+ {
797
+ name: 'lastUpdate',
798
+ type: 'uint256',
799
+ },
800
+ ],
801
+ },
802
+ {
803
+ name: '_assetPoints',
804
+ type: 'tuple',
805
+ components: [
806
+ {
807
+ name: 'balancePoints',
808
+ type: 'uint256',
809
+ },
810
+ {
811
+ name: 'lastBalance',
812
+ type: 'uint256',
813
+ },
814
+ {
815
+ name: 'lastUsdValue',
816
+ type: 'uint256',
817
+ },
818
+ {
819
+ name: 'ripeStakerPoints',
820
+ type: 'uint256',
821
+ },
822
+ {
823
+ name: 'ripeVotePoints',
824
+ type: 'uint256',
825
+ },
826
+ {
827
+ name: 'ripeGenPoints',
828
+ type: 'uint256',
829
+ },
830
+ {
831
+ name: 'lastUpdate',
832
+ type: 'uint256',
833
+ },
834
+ {
835
+ name: 'precision',
836
+ type: 'uint256',
837
+ },
838
+ ],
839
+ },
840
+ {
841
+ name: '_globalPoints',
842
+ type: 'tuple',
843
+ components: [
844
+ {
845
+ name: 'lastUsdValue',
846
+ type: 'uint256',
847
+ },
848
+ {
849
+ name: 'ripeStakerPoints',
850
+ type: 'uint256',
851
+ },
852
+ {
853
+ name: 'ripeVotePoints',
854
+ type: 'uint256',
855
+ },
856
+ {
857
+ name: 'ripeGenPoints',
858
+ type: 'uint256',
859
+ },
860
+ {
861
+ name: 'lastUpdate',
862
+ type: 'uint256',
863
+ },
864
+ ],
865
+ },
866
+ {
867
+ name: '_ripeRewards',
868
+ type: 'tuple',
869
+ components: [
870
+ {
871
+ name: 'borrowers',
872
+ type: 'uint256',
873
+ },
874
+ {
875
+ name: 'stakers',
876
+ type: 'uint256',
877
+ },
878
+ {
879
+ name: 'voters',
880
+ type: 'uint256',
881
+ },
882
+ {
883
+ name: 'genDepositors',
884
+ type: 'uint256',
885
+ },
886
+ {
887
+ name: 'newRipeRewards',
888
+ type: 'uint256',
889
+ },
890
+ {
891
+ name: 'lastUpdate',
892
+ type: 'uint256',
893
+ },
894
+ ],
895
+ },
896
+ ],
897
+ outputs: [],
898
+ },
899
+ {
900
+ stateMutability: 'nonpayable',
901
+ type: 'function',
902
+ name: 'setBorrowPointsAndRipeRewards',
903
+ inputs: [
904
+ {
905
+ name: '_user',
906
+ type: 'address',
907
+ },
908
+ {
909
+ name: '_userPoints',
910
+ type: 'tuple',
911
+ components: [
912
+ {
913
+ name: 'lastPrincipal',
914
+ type: 'uint256',
915
+ },
916
+ {
917
+ name: 'points',
918
+ type: 'uint256',
919
+ },
920
+ {
921
+ name: 'lastUpdate',
922
+ type: 'uint256',
923
+ },
924
+ ],
925
+ },
926
+ {
927
+ name: '_globalPoints',
928
+ type: 'tuple',
929
+ components: [
930
+ {
931
+ name: 'lastPrincipal',
932
+ type: 'uint256',
933
+ },
934
+ {
935
+ name: 'points',
936
+ type: 'uint256',
937
+ },
938
+ {
939
+ name: 'lastUpdate',
940
+ type: 'uint256',
941
+ },
942
+ ],
943
+ },
944
+ {
945
+ name: '_ripeRewards',
946
+ type: 'tuple',
947
+ components: [
948
+ {
949
+ name: 'borrowers',
950
+ type: 'uint256',
951
+ },
952
+ {
953
+ name: 'stakers',
954
+ type: 'uint256',
955
+ },
956
+ {
957
+ name: 'voters',
958
+ type: 'uint256',
959
+ },
960
+ {
961
+ name: 'genDepositors',
962
+ type: 'uint256',
963
+ },
964
+ {
965
+ name: 'newRipeRewards',
966
+ type: 'uint256',
967
+ },
968
+ {
969
+ name: 'lastUpdate',
970
+ type: 'uint256',
971
+ },
972
+ ],
973
+ },
974
+ ],
975
+ outputs: [],
976
+ },
977
+ {
978
+ stateMutability: 'view',
979
+ type: 'function',
980
+ name: 'getRipeRewardsBundle',
981
+ inputs: [],
982
+ outputs: [
983
+ {
984
+ name: '',
985
+ type: 'tuple',
986
+ components: [
987
+ {
988
+ name: 'ripeRewards',
989
+ type: 'tuple',
990
+ components: [
991
+ {
992
+ name: 'borrowers',
993
+ type: 'uint256',
994
+ },
995
+ {
996
+ name: 'stakers',
997
+ type: 'uint256',
998
+ },
999
+ {
1000
+ name: 'voters',
1001
+ type: 'uint256',
1002
+ },
1003
+ {
1004
+ name: 'genDepositors',
1005
+ type: 'uint256',
1006
+ },
1007
+ {
1008
+ name: 'newRipeRewards',
1009
+ type: 'uint256',
1010
+ },
1011
+ {
1012
+ name: 'lastUpdate',
1013
+ type: 'uint256',
1014
+ },
1015
+ ],
1016
+ },
1017
+ {
1018
+ name: 'ripeAvailForRewards',
1019
+ type: 'uint256',
1020
+ },
1021
+ ],
1022
+ },
1023
+ ],
1024
+ },
1025
+ {
1026
+ stateMutability: 'view',
1027
+ type: 'function',
1028
+ name: 'getBorrowPointsBundle',
1029
+ inputs: [
1030
+ {
1031
+ name: '_user',
1032
+ type: 'address',
1033
+ },
1034
+ ],
1035
+ outputs: [
1036
+ {
1037
+ name: '',
1038
+ type: 'tuple',
1039
+ components: [
1040
+ {
1041
+ name: 'userPoints',
1042
+ type: 'tuple',
1043
+ components: [
1044
+ {
1045
+ name: 'lastPrincipal',
1046
+ type: 'uint256',
1047
+ },
1048
+ {
1049
+ name: 'points',
1050
+ type: 'uint256',
1051
+ },
1052
+ {
1053
+ name: 'lastUpdate',
1054
+ type: 'uint256',
1055
+ },
1056
+ ],
1057
+ },
1058
+ {
1059
+ name: 'globalPoints',
1060
+ type: 'tuple',
1061
+ components: [
1062
+ {
1063
+ name: 'lastPrincipal',
1064
+ type: 'uint256',
1065
+ },
1066
+ {
1067
+ name: 'points',
1068
+ type: 'uint256',
1069
+ },
1070
+ {
1071
+ name: 'lastUpdate',
1072
+ type: 'uint256',
1073
+ },
1074
+ ],
1075
+ },
1076
+ {
1077
+ name: 'userDebtPrincipal',
1078
+ type: 'uint256',
1079
+ },
1080
+ ],
1081
+ },
1082
+ ],
1083
+ },
1084
+ {
1085
+ stateMutability: 'view',
1086
+ type: 'function',
1087
+ name: 'getDepositPointsBundle',
1088
+ inputs: [
1089
+ {
1090
+ name: '_user',
1091
+ type: 'address',
1092
+ },
1093
+ {
1094
+ name: '_vaultId',
1095
+ type: 'uint256',
1096
+ },
1097
+ {
1098
+ name: '_asset',
1099
+ type: 'address',
1100
+ },
1101
+ ],
1102
+ outputs: [
1103
+ {
1104
+ name: '',
1105
+ type: 'tuple',
1106
+ components: [
1107
+ {
1108
+ name: 'userPoints',
1109
+ type: 'tuple',
1110
+ components: [
1111
+ {
1112
+ name: 'balancePoints',
1113
+ type: 'uint256',
1114
+ },
1115
+ {
1116
+ name: 'lastBalance',
1117
+ type: 'uint256',
1118
+ },
1119
+ {
1120
+ name: 'lastUpdate',
1121
+ type: 'uint256',
1122
+ },
1123
+ ],
1124
+ },
1125
+ {
1126
+ name: 'assetPoints',
1127
+ type: 'tuple',
1128
+ components: [
1129
+ {
1130
+ name: 'balancePoints',
1131
+ type: 'uint256',
1132
+ },
1133
+ {
1134
+ name: 'lastBalance',
1135
+ type: 'uint256',
1136
+ },
1137
+ {
1138
+ name: 'lastUsdValue',
1139
+ type: 'uint256',
1140
+ },
1141
+ {
1142
+ name: 'ripeStakerPoints',
1143
+ type: 'uint256',
1144
+ },
1145
+ {
1146
+ name: 'ripeVotePoints',
1147
+ type: 'uint256',
1148
+ },
1149
+ {
1150
+ name: 'ripeGenPoints',
1151
+ type: 'uint256',
1152
+ },
1153
+ {
1154
+ name: 'lastUpdate',
1155
+ type: 'uint256',
1156
+ },
1157
+ {
1158
+ name: 'precision',
1159
+ type: 'uint256',
1160
+ },
1161
+ ],
1162
+ },
1163
+ {
1164
+ name: 'globalPoints',
1165
+ type: 'tuple',
1166
+ components: [
1167
+ {
1168
+ name: 'lastUsdValue',
1169
+ type: 'uint256',
1170
+ },
1171
+ {
1172
+ name: 'ripeStakerPoints',
1173
+ type: 'uint256',
1174
+ },
1175
+ {
1176
+ name: 'ripeVotePoints',
1177
+ type: 'uint256',
1178
+ },
1179
+ {
1180
+ name: 'ripeGenPoints',
1181
+ type: 'uint256',
1182
+ },
1183
+ {
1184
+ name: 'lastUpdate',
1185
+ type: 'uint256',
1186
+ },
1187
+ ],
1188
+ },
1189
+ ],
1190
+ },
1191
+ ],
1192
+ },
1193
+ {
1194
+ stateMutability: 'view',
1195
+ type: 'function',
1196
+ name: 'hasFungibleAuctions',
1197
+ inputs: [
1198
+ {
1199
+ name: '_liqUser',
1200
+ type: 'address',
1201
+ },
1202
+ ],
1203
+ outputs: [
1204
+ {
1205
+ name: '',
1206
+ type: 'bool',
1207
+ },
1208
+ ],
1209
+ },
1210
+ {
1211
+ stateMutability: 'nonpayable',
1212
+ type: 'function',
1213
+ name: 'createNewFungibleAuction',
1214
+ inputs: [
1215
+ {
1216
+ name: '_auc',
1217
+ type: 'tuple',
1218
+ components: [
1219
+ {
1220
+ name: 'liqUser',
1221
+ type: 'address',
1222
+ },
1223
+ {
1224
+ name: 'vaultId',
1225
+ type: 'uint256',
1226
+ },
1227
+ {
1228
+ name: 'asset',
1229
+ type: 'address',
1230
+ },
1231
+ {
1232
+ name: 'startDiscount',
1233
+ type: 'uint256',
1234
+ },
1235
+ {
1236
+ name: 'maxDiscount',
1237
+ type: 'uint256',
1238
+ },
1239
+ {
1240
+ name: 'startBlock',
1241
+ type: 'uint256',
1242
+ },
1243
+ {
1244
+ name: 'endBlock',
1245
+ type: 'uint256',
1246
+ },
1247
+ {
1248
+ name: 'isActive',
1249
+ type: 'bool',
1250
+ },
1251
+ ],
1252
+ },
1253
+ ],
1254
+ outputs: [
1255
+ {
1256
+ name: '',
1257
+ type: 'uint256',
1258
+ },
1259
+ ],
1260
+ },
1261
+ {
1262
+ stateMutability: 'nonpayable',
1263
+ type: 'function',
1264
+ name: 'removeFungibleAuction',
1265
+ inputs: [
1266
+ {
1267
+ name: '_liqUser',
1268
+ type: 'address',
1269
+ },
1270
+ {
1271
+ name: '_vaultId',
1272
+ type: 'uint256',
1273
+ },
1274
+ {
1275
+ name: '_asset',
1276
+ type: 'address',
1277
+ },
1278
+ ],
1279
+ outputs: [],
1280
+ },
1281
+ {
1282
+ stateMutability: 'nonpayable',
1283
+ type: 'function',
1284
+ name: 'setFungibleAuction',
1285
+ inputs: [
1286
+ {
1287
+ name: '_liqUser',
1288
+ type: 'address',
1289
+ },
1290
+ {
1291
+ name: '_vaultId',
1292
+ type: 'uint256',
1293
+ },
1294
+ {
1295
+ name: '_asset',
1296
+ type: 'address',
1297
+ },
1298
+ {
1299
+ name: '_auc',
1300
+ type: 'tuple',
1301
+ components: [
1302
+ {
1303
+ name: 'liqUser',
1304
+ type: 'address',
1305
+ },
1306
+ {
1307
+ name: 'vaultId',
1308
+ type: 'uint256',
1309
+ },
1310
+ {
1311
+ name: 'asset',
1312
+ type: 'address',
1313
+ },
1314
+ {
1315
+ name: 'startDiscount',
1316
+ type: 'uint256',
1317
+ },
1318
+ {
1319
+ name: 'maxDiscount',
1320
+ type: 'uint256',
1321
+ },
1322
+ {
1323
+ name: 'startBlock',
1324
+ type: 'uint256',
1325
+ },
1326
+ {
1327
+ name: 'endBlock',
1328
+ type: 'uint256',
1329
+ },
1330
+ {
1331
+ name: 'isActive',
1332
+ type: 'bool',
1333
+ },
1334
+ ],
1335
+ },
1336
+ ],
1337
+ outputs: [
1338
+ {
1339
+ name: '',
1340
+ type: 'bool',
1341
+ },
1342
+ ],
1343
+ },
1344
+ {
1345
+ stateMutability: 'nonpayable',
1346
+ type: 'function',
1347
+ name: 'removeAllFungibleAuctions',
1348
+ inputs: [
1349
+ {
1350
+ name: '_liqUser',
1351
+ type: 'address',
1352
+ },
1353
+ ],
1354
+ outputs: [],
1355
+ },
1356
+ {
1357
+ stateMutability: 'view',
1358
+ type: 'function',
1359
+ name: 'getFungibleAuction',
1360
+ inputs: [
1361
+ {
1362
+ name: '_liqUser',
1363
+ type: 'address',
1364
+ },
1365
+ {
1366
+ name: '_vaultId',
1367
+ type: 'uint256',
1368
+ },
1369
+ {
1370
+ name: '_asset',
1371
+ type: 'address',
1372
+ },
1373
+ ],
1374
+ outputs: [
1375
+ {
1376
+ name: '',
1377
+ type: 'tuple',
1378
+ components: [
1379
+ {
1380
+ name: 'liqUser',
1381
+ type: 'address',
1382
+ },
1383
+ {
1384
+ name: 'vaultId',
1385
+ type: 'uint256',
1386
+ },
1387
+ {
1388
+ name: 'asset',
1389
+ type: 'address',
1390
+ },
1391
+ {
1392
+ name: 'startDiscount',
1393
+ type: 'uint256',
1394
+ },
1395
+ {
1396
+ name: 'maxDiscount',
1397
+ type: 'uint256',
1398
+ },
1399
+ {
1400
+ name: 'startBlock',
1401
+ type: 'uint256',
1402
+ },
1403
+ {
1404
+ name: 'endBlock',
1405
+ type: 'uint256',
1406
+ },
1407
+ {
1408
+ name: 'isActive',
1409
+ type: 'bool',
1410
+ },
1411
+ ],
1412
+ },
1413
+ ],
1414
+ },
1415
+ {
1416
+ stateMutability: 'view',
1417
+ type: 'function',
1418
+ name: 'getFungibleAuctionDuringPurchase',
1419
+ inputs: [
1420
+ {
1421
+ name: '_liqUser',
1422
+ type: 'address',
1423
+ },
1424
+ {
1425
+ name: '_vaultId',
1426
+ type: 'uint256',
1427
+ },
1428
+ {
1429
+ name: '_asset',
1430
+ type: 'address',
1431
+ },
1432
+ ],
1433
+ outputs: [
1434
+ {
1435
+ name: '',
1436
+ type: 'tuple',
1437
+ components: [
1438
+ {
1439
+ name: 'liqUser',
1440
+ type: 'address',
1441
+ },
1442
+ {
1443
+ name: 'vaultId',
1444
+ type: 'uint256',
1445
+ },
1446
+ {
1447
+ name: 'asset',
1448
+ type: 'address',
1449
+ },
1450
+ {
1451
+ name: 'startDiscount',
1452
+ type: 'uint256',
1453
+ },
1454
+ {
1455
+ name: 'maxDiscount',
1456
+ type: 'uint256',
1457
+ },
1458
+ {
1459
+ name: 'startBlock',
1460
+ type: 'uint256',
1461
+ },
1462
+ {
1463
+ name: 'endBlock',
1464
+ type: 'uint256',
1465
+ },
1466
+ {
1467
+ name: 'isActive',
1468
+ type: 'bool',
1469
+ },
1470
+ ],
1471
+ },
1472
+ ],
1473
+ },
1474
+ {
1475
+ stateMutability: 'view',
1476
+ type: 'function',
1477
+ name: 'hasFungibleAuction',
1478
+ inputs: [
1479
+ {
1480
+ name: '_liqUser',
1481
+ type: 'address',
1482
+ },
1483
+ {
1484
+ name: '_vaultId',
1485
+ type: 'uint256',
1486
+ },
1487
+ {
1488
+ name: '_asset',
1489
+ type: 'address',
1490
+ },
1491
+ ],
1492
+ outputs: [
1493
+ {
1494
+ name: '',
1495
+ type: 'bool',
1496
+ },
1497
+ ],
1498
+ },
1499
+ {
1500
+ stateMutability: 'view',
1501
+ type: 'function',
1502
+ name: 'isHrContributor',
1503
+ inputs: [
1504
+ {
1505
+ name: '_contributor',
1506
+ type: 'address',
1507
+ },
1508
+ ],
1509
+ outputs: [
1510
+ {
1511
+ name: '',
1512
+ type: 'bool',
1513
+ },
1514
+ ],
1515
+ },
1516
+ {
1517
+ stateMutability: 'nonpayable',
1518
+ type: 'function',
1519
+ name: 'addHrContributor',
1520
+ inputs: [
1521
+ {
1522
+ name: '_contributor',
1523
+ type: 'address',
1524
+ },
1525
+ {
1526
+ name: '_compensation',
1527
+ type: 'uint256',
1528
+ },
1529
+ ],
1530
+ outputs: [],
1531
+ },
1532
+ {
1533
+ stateMutability: 'nonpayable',
1534
+ type: 'function',
1535
+ name: 'setRipeAvailForHr',
1536
+ inputs: [
1537
+ {
1538
+ name: '_amount',
1539
+ type: 'uint256',
1540
+ },
1541
+ ],
1542
+ outputs: [],
1543
+ },
1544
+ {
1545
+ stateMutability: 'nonpayable',
1546
+ type: 'function',
1547
+ name: 'refundRipeAfterCancelPaycheck',
1548
+ inputs: [
1549
+ {
1550
+ name: '_amount',
1551
+ type: 'uint256',
1552
+ },
1553
+ ],
1554
+ outputs: [],
1555
+ },
1556
+ {
1557
+ stateMutability: 'view',
1558
+ type: 'function',
1559
+ name: 'getEpochData',
1560
+ inputs: [],
1561
+ outputs: [
1562
+ {
1563
+ name: '',
1564
+ type: 'uint256',
1565
+ },
1566
+ {
1567
+ name: '',
1568
+ type: 'uint256',
1569
+ },
1570
+ ],
1571
+ },
1572
+ {
1573
+ stateMutability: 'view',
1574
+ type: 'function',
1575
+ name: 'getRipeBondData',
1576
+ inputs: [],
1577
+ outputs: [
1578
+ {
1579
+ name: '',
1580
+ type: 'tuple',
1581
+ components: [
1582
+ {
1583
+ name: 'paymentAmountAvailInEpoch',
1584
+ type: 'uint256',
1585
+ },
1586
+ {
1587
+ name: 'ripeAvailForBonds',
1588
+ type: 'uint256',
1589
+ },
1590
+ {
1591
+ name: 'badDebt',
1592
+ type: 'uint256',
1593
+ },
1594
+ ],
1595
+ },
1596
+ ],
1597
+ },
1598
+ {
1599
+ stateMutability: 'nonpayable',
1600
+ type: 'function',
1601
+ name: 'setRipeAvailForBonds',
1602
+ inputs: [
1603
+ {
1604
+ name: '_amount',
1605
+ type: 'uint256',
1606
+ },
1607
+ ],
1608
+ outputs: [],
1609
+ },
1610
+ {
1611
+ stateMutability: 'nonpayable',
1612
+ type: 'function',
1613
+ name: 'setBadDebt',
1614
+ inputs: [
1615
+ {
1616
+ name: '_amount',
1617
+ type: 'uint256',
1618
+ },
1619
+ ],
1620
+ outputs: [],
1621
+ },
1622
+ {
1623
+ stateMutability: 'nonpayable',
1624
+ type: 'function',
1625
+ name: 'didClearBadDebt',
1626
+ inputs: [
1627
+ {
1628
+ name: '_amount',
1629
+ type: 'uint256',
1630
+ },
1631
+ {
1632
+ name: '_ripeAmount',
1633
+ type: 'uint256',
1634
+ },
1635
+ ],
1636
+ outputs: [],
1637
+ },
1638
+ {
1639
+ stateMutability: 'nonpayable',
1640
+ type: 'function',
1641
+ name: 'didPurchaseRipeBond',
1642
+ inputs: [
1643
+ {
1644
+ name: '_amountPaid',
1645
+ type: 'uint256',
1646
+ },
1647
+ {
1648
+ name: '_ripePayout',
1649
+ type: 'uint256',
1650
+ },
1651
+ ],
1652
+ outputs: [],
1653
+ },
1654
+ {
1655
+ stateMutability: 'nonpayable',
1656
+ type: 'function',
1657
+ name: 'setEpochData',
1658
+ inputs: [
1659
+ {
1660
+ name: '_epochStart',
1661
+ type: 'uint256',
1662
+ },
1663
+ {
1664
+ name: '_epochEnd',
1665
+ type: 'uint256',
1666
+ },
1667
+ {
1668
+ name: '_amountAvailInEpoch',
1669
+ type: 'uint256',
1670
+ },
1671
+ ],
1672
+ outputs: [],
1673
+ },
1674
+ {
1675
+ stateMutability: 'nonpayable',
1676
+ type: 'function',
1677
+ name: 'updateGreenPoolDebt',
1678
+ inputs: [
1679
+ {
1680
+ name: '_pool',
1681
+ type: 'address',
1682
+ },
1683
+ {
1684
+ name: '_amount',
1685
+ type: 'uint256',
1686
+ },
1687
+ {
1688
+ name: '_isIncrement',
1689
+ type: 'bool',
1690
+ },
1691
+ ],
1692
+ outputs: [],
1693
+ },
1694
+ {
1695
+ stateMutability: 'view',
1696
+ type: 'function',
1697
+ name: 'lastTouch',
1698
+ inputs: [
1699
+ {
1700
+ name: 'arg0',
1701
+ type: 'address',
1702
+ },
1703
+ ],
1704
+ outputs: [
1705
+ {
1706
+ name: '',
1707
+ type: 'uint256',
1708
+ },
1709
+ ],
1710
+ },
1711
+ {
1712
+ stateMutability: 'view',
1713
+ type: 'function',
1714
+ name: 'isLockedAccount',
1715
+ inputs: [
1716
+ {
1717
+ name: 'arg0',
1718
+ type: 'address',
1719
+ },
1720
+ ],
1721
+ outputs: [
1722
+ {
1723
+ name: '',
1724
+ type: 'bool',
1725
+ },
1726
+ ],
1727
+ },
1728
+ {
1729
+ stateMutability: 'view',
1730
+ type: 'function',
1731
+ name: 'userVaults',
1732
+ inputs: [
1733
+ {
1734
+ name: 'arg0',
1735
+ type: 'address',
1736
+ },
1737
+ {
1738
+ name: 'arg1',
1739
+ type: 'uint256',
1740
+ },
1741
+ ],
1742
+ outputs: [
1743
+ {
1744
+ name: '',
1745
+ type: 'uint256',
1746
+ },
1747
+ ],
1748
+ },
1749
+ {
1750
+ stateMutability: 'view',
1751
+ type: 'function',
1752
+ name: 'indexOfVault',
1753
+ inputs: [
1754
+ {
1755
+ name: 'arg0',
1756
+ type: 'address',
1757
+ },
1758
+ {
1759
+ name: 'arg1',
1760
+ type: 'uint256',
1761
+ },
1762
+ ],
1763
+ outputs: [
1764
+ {
1765
+ name: '',
1766
+ type: 'uint256',
1767
+ },
1768
+ ],
1769
+ },
1770
+ {
1771
+ stateMutability: 'view',
1772
+ type: 'function',
1773
+ name: 'numUserVaults',
1774
+ inputs: [
1775
+ {
1776
+ name: 'arg0',
1777
+ type: 'address',
1778
+ },
1779
+ ],
1780
+ outputs: [
1781
+ {
1782
+ name: '',
1783
+ type: 'uint256',
1784
+ },
1785
+ ],
1786
+ },
1787
+ {
1788
+ stateMutability: 'view',
1789
+ type: 'function',
1790
+ name: 'userDebt',
1791
+ inputs: [
1792
+ {
1793
+ name: 'arg0',
1794
+ type: 'address',
1795
+ },
1796
+ ],
1797
+ outputs: [
1798
+ {
1799
+ name: '',
1800
+ type: 'tuple',
1801
+ components: [
1802
+ {
1803
+ name: 'amount',
1804
+ type: 'uint256',
1805
+ },
1806
+ {
1807
+ name: 'principal',
1808
+ type: 'uint256',
1809
+ },
1810
+ {
1811
+ name: 'debtTerms',
1812
+ type: 'tuple',
1813
+ components: [
1814
+ {
1815
+ name: 'ltv',
1816
+ type: 'uint256',
1817
+ },
1818
+ {
1819
+ name: 'redemptionThreshold',
1820
+ type: 'uint256',
1821
+ },
1822
+ {
1823
+ name: 'liqThreshold',
1824
+ type: 'uint256',
1825
+ },
1826
+ {
1827
+ name: 'liqFee',
1828
+ type: 'uint256',
1829
+ },
1830
+ {
1831
+ name: 'borrowRate',
1832
+ type: 'uint256',
1833
+ },
1834
+ {
1835
+ name: 'daowry',
1836
+ type: 'uint256',
1837
+ },
1838
+ ],
1839
+ },
1840
+ {
1841
+ name: 'lastTimestamp',
1842
+ type: 'uint256',
1843
+ },
1844
+ {
1845
+ name: 'inLiquidation',
1846
+ type: 'bool',
1847
+ },
1848
+ ],
1849
+ },
1850
+ ],
1851
+ },
1852
+ {
1853
+ stateMutability: 'view',
1854
+ type: 'function',
1855
+ name: 'totalDebt',
1856
+ inputs: [],
1857
+ outputs: [
1858
+ {
1859
+ name: '',
1860
+ type: 'uint256',
1861
+ },
1862
+ ],
1863
+ },
1864
+ {
1865
+ stateMutability: 'view',
1866
+ type: 'function',
1867
+ name: 'borrowers',
1868
+ inputs: [
1869
+ {
1870
+ name: 'arg0',
1871
+ type: 'uint256',
1872
+ },
1873
+ ],
1874
+ outputs: [
1875
+ {
1876
+ name: '',
1877
+ type: 'address',
1878
+ },
1879
+ ],
1880
+ },
1881
+ {
1882
+ stateMutability: 'view',
1883
+ type: 'function',
1884
+ name: 'indexOfBorrower',
1885
+ inputs: [
1886
+ {
1887
+ name: 'arg0',
1888
+ type: 'address',
1889
+ },
1890
+ ],
1891
+ outputs: [
1892
+ {
1893
+ name: '',
1894
+ type: 'uint256',
1895
+ },
1896
+ ],
1897
+ },
1898
+ {
1899
+ stateMutability: 'view',
1900
+ type: 'function',
1901
+ name: 'numBorrowers',
1902
+ inputs: [],
1903
+ outputs: [
1904
+ {
1905
+ name: '',
1906
+ type: 'uint256',
1907
+ },
1908
+ ],
1909
+ },
1910
+ {
1911
+ stateMutability: 'view',
1912
+ type: 'function',
1913
+ name: 'borrowIntervals',
1914
+ inputs: [
1915
+ {
1916
+ name: 'arg0',
1917
+ type: 'address',
1918
+ },
1919
+ ],
1920
+ outputs: [
1921
+ {
1922
+ name: '',
1923
+ type: 'tuple',
1924
+ components: [
1925
+ {
1926
+ name: 'start',
1927
+ type: 'uint256',
1928
+ },
1929
+ {
1930
+ name: 'amount',
1931
+ type: 'uint256',
1932
+ },
1933
+ ],
1934
+ },
1935
+ ],
1936
+ },
1937
+ {
1938
+ stateMutability: 'view',
1939
+ type: 'function',
1940
+ name: 'unrealizedYield',
1941
+ inputs: [],
1942
+ outputs: [
1943
+ {
1944
+ name: '',
1945
+ type: 'uint256',
1946
+ },
1947
+ ],
1948
+ },
1949
+ {
1950
+ stateMutability: 'view',
1951
+ type: 'function',
1952
+ name: 'ripeRewards',
1953
+ inputs: [],
1954
+ outputs: [
1955
+ {
1956
+ name: '',
1957
+ type: 'tuple',
1958
+ components: [
1959
+ {
1960
+ name: 'borrowers',
1961
+ type: 'uint256',
1962
+ },
1963
+ {
1964
+ name: 'stakers',
1965
+ type: 'uint256',
1966
+ },
1967
+ {
1968
+ name: 'voters',
1969
+ type: 'uint256',
1970
+ },
1971
+ {
1972
+ name: 'genDepositors',
1973
+ type: 'uint256',
1974
+ },
1975
+ {
1976
+ name: 'newRipeRewards',
1977
+ type: 'uint256',
1978
+ },
1979
+ {
1980
+ name: 'lastUpdate',
1981
+ type: 'uint256',
1982
+ },
1983
+ ],
1984
+ },
1985
+ ],
1986
+ },
1987
+ {
1988
+ stateMutability: 'view',
1989
+ type: 'function',
1990
+ name: 'ripeAvailForRewards',
1991
+ inputs: [],
1992
+ outputs: [
1993
+ {
1994
+ name: '',
1995
+ type: 'uint256',
1996
+ },
1997
+ ],
1998
+ },
1999
+ {
2000
+ stateMutability: 'view',
2001
+ type: 'function',
2002
+ name: 'globalDepositPoints',
2003
+ inputs: [],
2004
+ outputs: [
2005
+ {
2006
+ name: '',
2007
+ type: 'tuple',
2008
+ components: [
2009
+ {
2010
+ name: 'lastUsdValue',
2011
+ type: 'uint256',
2012
+ },
2013
+ {
2014
+ name: 'ripeStakerPoints',
2015
+ type: 'uint256',
2016
+ },
2017
+ {
2018
+ name: 'ripeVotePoints',
2019
+ type: 'uint256',
2020
+ },
2021
+ {
2022
+ name: 'ripeGenPoints',
2023
+ type: 'uint256',
2024
+ },
2025
+ {
2026
+ name: 'lastUpdate',
2027
+ type: 'uint256',
2028
+ },
2029
+ ],
2030
+ },
2031
+ ],
2032
+ },
2033
+ {
2034
+ stateMutability: 'view',
2035
+ type: 'function',
2036
+ name: 'assetDepositPoints',
2037
+ inputs: [
2038
+ {
2039
+ name: 'arg0',
2040
+ type: 'uint256',
2041
+ },
2042
+ {
2043
+ name: 'arg1',
2044
+ type: 'address',
2045
+ },
2046
+ ],
2047
+ outputs: [
2048
+ {
2049
+ name: '',
2050
+ type: 'tuple',
2051
+ components: [
2052
+ {
2053
+ name: 'balancePoints',
2054
+ type: 'uint256',
2055
+ },
2056
+ {
2057
+ name: 'lastBalance',
2058
+ type: 'uint256',
2059
+ },
2060
+ {
2061
+ name: 'lastUsdValue',
2062
+ type: 'uint256',
2063
+ },
2064
+ {
2065
+ name: 'ripeStakerPoints',
2066
+ type: 'uint256',
2067
+ },
2068
+ {
2069
+ name: 'ripeVotePoints',
2070
+ type: 'uint256',
2071
+ },
2072
+ {
2073
+ name: 'ripeGenPoints',
2074
+ type: 'uint256',
2075
+ },
2076
+ {
2077
+ name: 'lastUpdate',
2078
+ type: 'uint256',
2079
+ },
2080
+ {
2081
+ name: 'precision',
2082
+ type: 'uint256',
2083
+ },
2084
+ ],
2085
+ },
2086
+ ],
2087
+ },
2088
+ {
2089
+ stateMutability: 'view',
2090
+ type: 'function',
2091
+ name: 'userDepositPoints',
2092
+ inputs: [
2093
+ {
2094
+ name: 'arg0',
2095
+ type: 'address',
2096
+ },
2097
+ {
2098
+ name: 'arg1',
2099
+ type: 'uint256',
2100
+ },
2101
+ {
2102
+ name: 'arg2',
2103
+ type: 'address',
2104
+ },
2105
+ ],
2106
+ outputs: [
2107
+ {
2108
+ name: '',
2109
+ type: 'tuple',
2110
+ components: [
2111
+ {
2112
+ name: 'balancePoints',
2113
+ type: 'uint256',
2114
+ },
2115
+ {
2116
+ name: 'lastBalance',
2117
+ type: 'uint256',
2118
+ },
2119
+ {
2120
+ name: 'lastUpdate',
2121
+ type: 'uint256',
2122
+ },
2123
+ ],
2124
+ },
2125
+ ],
2126
+ },
2127
+ {
2128
+ stateMutability: 'view',
2129
+ type: 'function',
2130
+ name: 'userBorrowPoints',
2131
+ inputs: [
2132
+ {
2133
+ name: 'arg0',
2134
+ type: 'address',
2135
+ },
2136
+ ],
2137
+ outputs: [
2138
+ {
2139
+ name: '',
2140
+ type: 'tuple',
2141
+ components: [
2142
+ {
2143
+ name: 'lastPrincipal',
2144
+ type: 'uint256',
2145
+ },
2146
+ {
2147
+ name: 'points',
2148
+ type: 'uint256',
2149
+ },
2150
+ {
2151
+ name: 'lastUpdate',
2152
+ type: 'uint256',
2153
+ },
2154
+ ],
2155
+ },
2156
+ ],
2157
+ },
2158
+ {
2159
+ stateMutability: 'view',
2160
+ type: 'function',
2161
+ name: 'globalBorrowPoints',
2162
+ inputs: [],
2163
+ outputs: [
2164
+ {
2165
+ name: '',
2166
+ type: 'tuple',
2167
+ components: [
2168
+ {
2169
+ name: 'lastPrincipal',
2170
+ type: 'uint256',
2171
+ },
2172
+ {
2173
+ name: 'points',
2174
+ type: 'uint256',
2175
+ },
2176
+ {
2177
+ name: 'lastUpdate',
2178
+ type: 'uint256',
2179
+ },
2180
+ ],
2181
+ },
2182
+ ],
2183
+ },
2184
+ {
2185
+ stateMutability: 'view',
2186
+ type: 'function',
2187
+ name: 'fungibleAuctions',
2188
+ inputs: [
2189
+ {
2190
+ name: 'arg0',
2191
+ type: 'address',
2192
+ },
2193
+ {
2194
+ name: 'arg1',
2195
+ type: 'uint256',
2196
+ },
2197
+ ],
2198
+ outputs: [
2199
+ {
2200
+ name: '',
2201
+ type: 'tuple',
2202
+ components: [
2203
+ {
2204
+ name: 'liqUser',
2205
+ type: 'address',
2206
+ },
2207
+ {
2208
+ name: 'vaultId',
2209
+ type: 'uint256',
2210
+ },
2211
+ {
2212
+ name: 'asset',
2213
+ type: 'address',
2214
+ },
2215
+ {
2216
+ name: 'startDiscount',
2217
+ type: 'uint256',
2218
+ },
2219
+ {
2220
+ name: 'maxDiscount',
2221
+ type: 'uint256',
2222
+ },
2223
+ {
2224
+ name: 'startBlock',
2225
+ type: 'uint256',
2226
+ },
2227
+ {
2228
+ name: 'endBlock',
2229
+ type: 'uint256',
2230
+ },
2231
+ {
2232
+ name: 'isActive',
2233
+ type: 'bool',
2234
+ },
2235
+ ],
2236
+ },
2237
+ ],
2238
+ },
2239
+ {
2240
+ stateMutability: 'view',
2241
+ type: 'function',
2242
+ name: 'fungibleAuctionIndex',
2243
+ inputs: [
2244
+ {
2245
+ name: 'arg0',
2246
+ type: 'address',
2247
+ },
2248
+ {
2249
+ name: 'arg1',
2250
+ type: 'uint256',
2251
+ },
2252
+ {
2253
+ name: 'arg2',
2254
+ type: 'address',
2255
+ },
2256
+ ],
2257
+ outputs: [
2258
+ {
2259
+ name: '',
2260
+ type: 'uint256',
2261
+ },
2262
+ ],
2263
+ },
2264
+ {
2265
+ stateMutability: 'view',
2266
+ type: 'function',
2267
+ name: 'numFungibleAuctions',
2268
+ inputs: [
2269
+ {
2270
+ name: 'arg0',
2271
+ type: 'address',
2272
+ },
2273
+ ],
2274
+ outputs: [
2275
+ {
2276
+ name: '',
2277
+ type: 'uint256',
2278
+ },
2279
+ ],
2280
+ },
2281
+ {
2282
+ stateMutability: 'view',
2283
+ type: 'function',
2284
+ name: 'fungLiqUsers',
2285
+ inputs: [
2286
+ {
2287
+ name: 'arg0',
2288
+ type: 'uint256',
2289
+ },
2290
+ ],
2291
+ outputs: [
2292
+ {
2293
+ name: '',
2294
+ type: 'address',
2295
+ },
2296
+ ],
2297
+ },
2298
+ {
2299
+ stateMutability: 'view',
2300
+ type: 'function',
2301
+ name: 'indexOfFungLiqUser',
2302
+ inputs: [
2303
+ {
2304
+ name: 'arg0',
2305
+ type: 'address',
2306
+ },
2307
+ ],
2308
+ outputs: [
2309
+ {
2310
+ name: '',
2311
+ type: 'uint256',
2312
+ },
2313
+ ],
2314
+ },
2315
+ {
2316
+ stateMutability: 'view',
2317
+ type: 'function',
2318
+ name: 'numFungLiqUsers',
2319
+ inputs: [],
2320
+ outputs: [
2321
+ {
2322
+ name: '',
2323
+ type: 'uint256',
2324
+ },
2325
+ ],
2326
+ },
2327
+ {
2328
+ stateMutability: 'view',
2329
+ type: 'function',
2330
+ name: 'ripeAvailForHr',
2331
+ inputs: [],
2332
+ outputs: [
2333
+ {
2334
+ name: '',
2335
+ type: 'uint256',
2336
+ },
2337
+ ],
2338
+ },
2339
+ {
2340
+ stateMutability: 'view',
2341
+ type: 'function',
2342
+ name: 'contributors',
2343
+ inputs: [
2344
+ {
2345
+ name: 'arg0',
2346
+ type: 'uint256',
2347
+ },
2348
+ ],
2349
+ outputs: [
2350
+ {
2351
+ name: '',
2352
+ type: 'address',
2353
+ },
2354
+ ],
2355
+ },
2356
+ {
2357
+ stateMutability: 'view',
2358
+ type: 'function',
2359
+ name: 'indexOfContributor',
2360
+ inputs: [
2361
+ {
2362
+ name: 'arg0',
2363
+ type: 'address',
2364
+ },
2365
+ ],
2366
+ outputs: [
2367
+ {
2368
+ name: '',
2369
+ type: 'uint256',
2370
+ },
2371
+ ],
2372
+ },
2373
+ {
2374
+ stateMutability: 'view',
2375
+ type: 'function',
2376
+ name: 'numContributors',
2377
+ inputs: [],
2378
+ outputs: [
2379
+ {
2380
+ name: '',
2381
+ type: 'uint256',
2382
+ },
2383
+ ],
2384
+ },
2385
+ {
2386
+ stateMutability: 'view',
2387
+ type: 'function',
2388
+ name: 'epochStart',
2389
+ inputs: [],
2390
+ outputs: [
2391
+ {
2392
+ name: '',
2393
+ type: 'uint256',
2394
+ },
2395
+ ],
2396
+ },
2397
+ {
2398
+ stateMutability: 'view',
2399
+ type: 'function',
2400
+ name: 'epochEnd',
2401
+ inputs: [],
2402
+ outputs: [
2403
+ {
2404
+ name: '',
2405
+ type: 'uint256',
2406
+ },
2407
+ ],
2408
+ },
2409
+ {
2410
+ stateMutability: 'view',
2411
+ type: 'function',
2412
+ name: 'badDebt',
2413
+ inputs: [],
2414
+ outputs: [
2415
+ {
2416
+ name: '',
2417
+ type: 'uint256',
2418
+ },
2419
+ ],
2420
+ },
2421
+ {
2422
+ stateMutability: 'view',
2423
+ type: 'function',
2424
+ name: 'ripePaidOutForBadDebt',
2425
+ inputs: [],
2426
+ outputs: [
2427
+ {
2428
+ name: '',
2429
+ type: 'uint256',
2430
+ },
2431
+ ],
2432
+ },
2433
+ {
2434
+ stateMutability: 'view',
2435
+ type: 'function',
2436
+ name: 'paymentAmountAvailInEpoch',
2437
+ inputs: [],
2438
+ outputs: [
2439
+ {
2440
+ name: '',
2441
+ type: 'uint256',
2442
+ },
2443
+ ],
2444
+ },
2445
+ {
2446
+ stateMutability: 'view',
2447
+ type: 'function',
2448
+ name: 'ripeAvailForBonds',
2449
+ inputs: [],
2450
+ outputs: [
2451
+ {
2452
+ name: '',
2453
+ type: 'uint256',
2454
+ },
2455
+ ],
2456
+ },
2457
+ {
2458
+ stateMutability: 'view',
2459
+ type: 'function',
2460
+ name: 'greenPoolDebt',
2461
+ inputs: [
2462
+ {
2463
+ name: 'arg0',
2464
+ type: 'address',
2465
+ },
2466
+ ],
2467
+ outputs: [
2468
+ {
2469
+ name: '',
2470
+ type: 'uint256',
2471
+ },
2472
+ ],
2473
+ },
2474
+ {
2475
+ stateMutability: 'nonpayable',
2476
+ type: 'constructor',
2477
+ inputs: [
2478
+ {
2479
+ name: '_ripeHq',
2480
+ type: 'address',
2481
+ },
2482
+ {
2483
+ name: '_defaults',
2484
+ type: 'address',
2485
+ },
2486
+ ],
2487
+ outputs: [],
2488
+ },
2489
+ ];
2490
+ export const deployAddress = '0x365256e322a47Aa2015F6724783F326e9B24fA47';
2491
+ function getRequest(method, args, contractAddressOrOptions) {
2492
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2493
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
2494
+ const call = {
2495
+ contractName: 'Ledger',
2496
+ method,
2497
+ args,
2498
+ address,
2499
+ deployAddress,
2500
+ defaultValue,
2501
+ getAbi: () => abi,
2502
+ with: (options) => {
2503
+ call.address = options.contractAddress;
2504
+ call.defaultValue = options.defaultValue;
2505
+ return call;
2506
+ },
2507
+ defaultTo: (defaultValue) => {
2508
+ call.defaultValue = defaultValue;
2509
+ return call;
2510
+ },
2511
+ at: (address) => {
2512
+ call.address = address;
2513
+ return call;
2514
+ },
2515
+ };
2516
+ return call;
2517
+ }
2518
+ export const call = {
2519
+ getAddys: (...args) => getRequest('getAddys', args),
2520
+ getRipeHq: (...args) => getRequest('getRipeHq', args),
2521
+ canMintGreen: (...args) => getRequest('canMintGreen', args),
2522
+ canMintRipe: (...args) => getRequest('canMintRipe', args),
2523
+ isPaused: (...args) => getRequest('isPaused', args),
2524
+ isParticipatingInVault: (...args) => getRequest('isParticipatingInVault', args),
2525
+ getNumUserVaults: (...args) => getRequest('getNumUserVaults', args),
2526
+ getDepositLedgerData: (...args) => getRequest('getDepositLedgerData', args),
2527
+ hasDebt: (...args) => getRequest('hasDebt', args),
2528
+ getNumBorrowers: (...args) => getRequest('getNumBorrowers', args),
2529
+ getBorrowDataBundle: (...args) => getRequest('getBorrowDataBundle', args),
2530
+ getRepayDataBundle: (...args) => getRequest('getRepayDataBundle', args),
2531
+ isBorrower: (...args) => getRequest('isBorrower', args),
2532
+ isUserInLiquidation: (...args) => getRequest('isUserInLiquidation', args),
2533
+ getRipeRewardsBundle: (...args) => getRequest('getRipeRewardsBundle', args),
2534
+ getBorrowPointsBundle: (...args) => getRequest('getBorrowPointsBundle', args),
2535
+ getDepositPointsBundle: (...args) => getRequest('getDepositPointsBundle', args),
2536
+ hasFungibleAuctions: (...args) => getRequest('hasFungibleAuctions', args),
2537
+ getFungibleAuction: (...args) => getRequest('getFungibleAuction', args),
2538
+ getFungibleAuctionDuringPurchase: (...args) => getRequest('getFungibleAuctionDuringPurchase', args),
2539
+ hasFungibleAuction: (...args) => getRequest('hasFungibleAuction', args),
2540
+ isHrContributor: (...args) => getRequest('isHrContributor', args),
2541
+ getEpochData: (...args) => getRequest('getEpochData', args),
2542
+ getRipeBondData: (...args) => getRequest('getRipeBondData', args),
2543
+ lastTouch: (...args) => getRequest('lastTouch', args),
2544
+ isLockedAccount: (...args) => getRequest('isLockedAccount', args),
2545
+ userVaults: (...args) => getRequest('userVaults', args),
2546
+ indexOfVault: (...args) => getRequest('indexOfVault', args),
2547
+ numUserVaults: (...args) => getRequest('numUserVaults', args),
2548
+ userDebt: (...args) => getRequest('userDebt', args),
2549
+ totalDebt: (...args) => getRequest('totalDebt', args),
2550
+ borrowers: (...args) => getRequest('borrowers', args),
2551
+ indexOfBorrower: (...args) => getRequest('indexOfBorrower', args),
2552
+ numBorrowers: (...args) => getRequest('numBorrowers', args),
2553
+ borrowIntervals: (...args) => getRequest('borrowIntervals', args),
2554
+ unrealizedYield: (...args) => getRequest('unrealizedYield', args),
2555
+ ripeRewards: (...args) => getRequest('ripeRewards', args),
2556
+ ripeAvailForRewards: (...args) => getRequest('ripeAvailForRewards', args),
2557
+ globalDepositPoints: (...args) => getRequest('globalDepositPoints', args),
2558
+ assetDepositPoints: (...args) => getRequest('assetDepositPoints', args),
2559
+ userDepositPoints: (...args) => getRequest('userDepositPoints', args),
2560
+ userBorrowPoints: (...args) => getRequest('userBorrowPoints', args),
2561
+ globalBorrowPoints: (...args) => getRequest('globalBorrowPoints', args),
2562
+ fungibleAuctions: (...args) => getRequest('fungibleAuctions', args),
2563
+ fungibleAuctionIndex: (...args) => getRequest('fungibleAuctionIndex', args),
2564
+ numFungibleAuctions: (...args) => getRequest('numFungibleAuctions', args),
2565
+ fungLiqUsers: (...args) => getRequest('fungLiqUsers', args),
2566
+ indexOfFungLiqUser: (...args) => getRequest('indexOfFungLiqUser', args),
2567
+ numFungLiqUsers: (...args) => getRequest('numFungLiqUsers', args),
2568
+ ripeAvailForHr: (...args) => getRequest('ripeAvailForHr', args),
2569
+ contributors: (...args) => getRequest('contributors', args),
2570
+ indexOfContributor: (...args) => getRequest('indexOfContributor', args),
2571
+ numContributors: (...args) => getRequest('numContributors', args),
2572
+ epochStart: (...args) => getRequest('epochStart', args),
2573
+ epochEnd: (...args) => getRequest('epochEnd', args),
2574
+ badDebt: (...args) => getRequest('badDebt', args),
2575
+ ripePaidOutForBadDebt: (...args) => getRequest('ripePaidOutForBadDebt', args),
2576
+ paymentAmountAvailInEpoch: (...args) => getRequest('paymentAmountAvailInEpoch', args),
2577
+ ripeAvailForBonds: (...args) => getRequest('ripeAvailForBonds', args),
2578
+ greenPoolDebt: (...args) => getRequest('greenPoolDebt', args),
2579
+ };
2580
+ function getMutation(functionName) {
2581
+ return {
2582
+ contractName: 'Ledger',
2583
+ functionName,
2584
+ deployAddress,
2585
+ argsType: undefined,
2586
+ getAbi: () => abi,
2587
+ };
2588
+ }
2589
+ export const mutation = {
2590
+ pause: getMutation('pause'),
2591
+ recoverFunds: getMutation('recoverFunds'),
2592
+ recoverFundsMany: getMutation('recoverFundsMany'),
2593
+ checkAndUpdateLastTouch: getMutation('checkAndUpdateLastTouch'),
2594
+ setLockedAccount: getMutation('setLockedAccount'),
2595
+ addVaultToUser: getMutation('addVaultToUser'),
2596
+ removeVaultFromUser: getMutation('removeVaultFromUser'),
2597
+ setUserDebt: getMutation('setUserDebt'),
2598
+ flushUnrealizedYield: getMutation('flushUnrealizedYield'),
2599
+ setRipeRewards: getMutation('setRipeRewards'),
2600
+ setRipeAvailForRewards: getMutation('setRipeAvailForRewards'),
2601
+ didGetRewardsFromStabClaims: getMutation('didGetRewardsFromStabClaims'),
2602
+ setDepositPointsAndRipeRewards: getMutation('setDepositPointsAndRipeRewards'),
2603
+ setBorrowPointsAndRipeRewards: getMutation('setBorrowPointsAndRipeRewards'),
2604
+ createNewFungibleAuction: getMutation('createNewFungibleAuction'),
2605
+ removeFungibleAuction: getMutation('removeFungibleAuction'),
2606
+ setFungibleAuction: getMutation('setFungibleAuction'),
2607
+ removeAllFungibleAuctions: getMutation('removeAllFungibleAuctions'),
2608
+ addHrContributor: getMutation('addHrContributor'),
2609
+ setRipeAvailForHr: getMutation('setRipeAvailForHr'),
2610
+ refundRipeAfterCancelPaycheck: getMutation('refundRipeAfterCancelPaycheck'),
2611
+ setRipeAvailForBonds: getMutation('setRipeAvailForBonds'),
2612
+ setBadDebt: getMutation('setBadDebt'),
2613
+ didClearBadDebt: getMutation('didClearBadDebt'),
2614
+ didPurchaseRipeBond: getMutation('didPurchaseRipeBond'),
2615
+ setEpochData: getMutation('setEpochData'),
2616
+ updateGreenPoolDebt: getMutation('updateGreenPoolDebt'),
2617
+ };
2618
+ export function toSdk(publicClient, walletClient) {
2619
+ return {
2620
+ deployAddress,
2621
+ abi,
2622
+ // Queries
2623
+ getAddys: (...args) => singleQuery(publicClient, call.getAddys(...args)),
2624
+ getRipeHq: (...args) => singleQuery(publicClient, call.getRipeHq(...args)),
2625
+ canMintGreen: (...args) => singleQuery(publicClient, call.canMintGreen(...args)),
2626
+ canMintRipe: (...args) => singleQuery(publicClient, call.canMintRipe(...args)),
2627
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
2628
+ isParticipatingInVault: (...args) => singleQuery(publicClient, call.isParticipatingInVault(...args)),
2629
+ getNumUserVaults: (...args) => singleQuery(publicClient, call.getNumUserVaults(...args)),
2630
+ getDepositLedgerData: (...args) => singleQuery(publicClient, call.getDepositLedgerData(...args)),
2631
+ hasDebt: (...args) => singleQuery(publicClient, call.hasDebt(...args)),
2632
+ getNumBorrowers: (...args) => singleQuery(publicClient, call.getNumBorrowers(...args)),
2633
+ getBorrowDataBundle: (...args) => singleQuery(publicClient, call.getBorrowDataBundle(...args)),
2634
+ getRepayDataBundle: (...args) => singleQuery(publicClient, call.getRepayDataBundle(...args)),
2635
+ isBorrower: (...args) => singleQuery(publicClient, call.isBorrower(...args)),
2636
+ isUserInLiquidation: (...args) => singleQuery(publicClient, call.isUserInLiquidation(...args)),
2637
+ getRipeRewardsBundle: (...args) => singleQuery(publicClient, call.getRipeRewardsBundle(...args)),
2638
+ getBorrowPointsBundle: (...args) => singleQuery(publicClient, call.getBorrowPointsBundle(...args)),
2639
+ getDepositPointsBundle: (...args) => singleQuery(publicClient, call.getDepositPointsBundle(...args)),
2640
+ hasFungibleAuctions: (...args) => singleQuery(publicClient, call.hasFungibleAuctions(...args)),
2641
+ getFungibleAuction: (...args) => singleQuery(publicClient, call.getFungibleAuction(...args)),
2642
+ getFungibleAuctionDuringPurchase: (...args) => singleQuery(publicClient, call.getFungibleAuctionDuringPurchase(...args)),
2643
+ hasFungibleAuction: (...args) => singleQuery(publicClient, call.hasFungibleAuction(...args)),
2644
+ isHrContributor: (...args) => singleQuery(publicClient, call.isHrContributor(...args)),
2645
+ getEpochData: (...args) => singleQuery(publicClient, call.getEpochData(...args)),
2646
+ getRipeBondData: (...args) => singleQuery(publicClient, call.getRipeBondData(...args)),
2647
+ lastTouch: (...args) => singleQuery(publicClient, call.lastTouch(...args)),
2648
+ isLockedAccount: (...args) => singleQuery(publicClient, call.isLockedAccount(...args)),
2649
+ userVaults: (...args) => singleQuery(publicClient, call.userVaults(...args)),
2650
+ indexOfVault: (...args) => singleQuery(publicClient, call.indexOfVault(...args)),
2651
+ numUserVaults: (...args) => singleQuery(publicClient, call.numUserVaults(...args)),
2652
+ userDebt: (...args) => singleQuery(publicClient, call.userDebt(...args)),
2653
+ totalDebt: (...args) => singleQuery(publicClient, call.totalDebt(...args)),
2654
+ borrowers: (...args) => singleQuery(publicClient, call.borrowers(...args)),
2655
+ indexOfBorrower: (...args) => singleQuery(publicClient, call.indexOfBorrower(...args)),
2656
+ numBorrowers: (...args) => singleQuery(publicClient, call.numBorrowers(...args)),
2657
+ borrowIntervals: (...args) => singleQuery(publicClient, call.borrowIntervals(...args)),
2658
+ unrealizedYield: (...args) => singleQuery(publicClient, call.unrealizedYield(...args)),
2659
+ ripeRewards: (...args) => singleQuery(publicClient, call.ripeRewards(...args)),
2660
+ ripeAvailForRewards: (...args) => singleQuery(publicClient, call.ripeAvailForRewards(...args)),
2661
+ globalDepositPoints: (...args) => singleQuery(publicClient, call.globalDepositPoints(...args)),
2662
+ assetDepositPoints: (...args) => singleQuery(publicClient, call.assetDepositPoints(...args)),
2663
+ userDepositPoints: (...args) => singleQuery(publicClient, call.userDepositPoints(...args)),
2664
+ userBorrowPoints: (...args) => singleQuery(publicClient, call.userBorrowPoints(...args)),
2665
+ globalBorrowPoints: (...args) => singleQuery(publicClient, call.globalBorrowPoints(...args)),
2666
+ fungibleAuctions: (...args) => singleQuery(publicClient, call.fungibleAuctions(...args)),
2667
+ fungibleAuctionIndex: (...args) => singleQuery(publicClient, call.fungibleAuctionIndex(...args)),
2668
+ numFungibleAuctions: (...args) => singleQuery(publicClient, call.numFungibleAuctions(...args)),
2669
+ fungLiqUsers: (...args) => singleQuery(publicClient, call.fungLiqUsers(...args)),
2670
+ indexOfFungLiqUser: (...args) => singleQuery(publicClient, call.indexOfFungLiqUser(...args)),
2671
+ numFungLiqUsers: (...args) => singleQuery(publicClient, call.numFungLiqUsers(...args)),
2672
+ ripeAvailForHr: (...args) => singleQuery(publicClient, call.ripeAvailForHr(...args)),
2673
+ contributors: (...args) => singleQuery(publicClient, call.contributors(...args)),
2674
+ indexOfContributor: (...args) => singleQuery(publicClient, call.indexOfContributor(...args)),
2675
+ numContributors: (...args) => singleQuery(publicClient, call.numContributors(...args)),
2676
+ epochStart: (...args) => singleQuery(publicClient, call.epochStart(...args)),
2677
+ epochEnd: (...args) => singleQuery(publicClient, call.epochEnd(...args)),
2678
+ badDebt: (...args) => singleQuery(publicClient, call.badDebt(...args)),
2679
+ ripePaidOutForBadDebt: (...args) => singleQuery(publicClient, call.ripePaidOutForBadDebt(...args)),
2680
+ paymentAmountAvailInEpoch: (...args) => singleQuery(publicClient, call.paymentAmountAvailInEpoch(...args)),
2681
+ ripeAvailForBonds: (...args) => singleQuery(publicClient, call.ripeAvailForBonds(...args)),
2682
+ greenPoolDebt: (...args) => singleQuery(publicClient, call.greenPoolDebt(...args)),
2683
+ // Mutations
2684
+ pause: (...args) => mutate(walletClient, mutation.pause)(...args),
2685
+ recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
2686
+ recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
2687
+ checkAndUpdateLastTouch: (...args) => mutate(walletClient, mutation.checkAndUpdateLastTouch)(...args),
2688
+ setLockedAccount: (...args) => mutate(walletClient, mutation.setLockedAccount)(...args),
2689
+ addVaultToUser: (...args) => mutate(walletClient, mutation.addVaultToUser)(...args),
2690
+ removeVaultFromUser: (...args) => mutate(walletClient, mutation.removeVaultFromUser)(...args),
2691
+ setUserDebt: (...args) => mutate(walletClient, mutation.setUserDebt)(...args),
2692
+ flushUnrealizedYield: (...args) => mutate(walletClient, mutation.flushUnrealizedYield)(...args),
2693
+ setRipeRewards: (...args) => mutate(walletClient, mutation.setRipeRewards)(...args),
2694
+ setRipeAvailForRewards: (...args) => mutate(walletClient, mutation.setRipeAvailForRewards)(...args),
2695
+ didGetRewardsFromStabClaims: (...args) => mutate(walletClient, mutation.didGetRewardsFromStabClaims)(...args),
2696
+ setDepositPointsAndRipeRewards: (...args) => mutate(walletClient, mutation.setDepositPointsAndRipeRewards)(...args),
2697
+ setBorrowPointsAndRipeRewards: (...args) => mutate(walletClient, mutation.setBorrowPointsAndRipeRewards)(...args),
2698
+ createNewFungibleAuction: (...args) => mutate(walletClient, mutation.createNewFungibleAuction)(...args),
2699
+ removeFungibleAuction: (...args) => mutate(walletClient, mutation.removeFungibleAuction)(...args),
2700
+ setFungibleAuction: (...args) => mutate(walletClient, mutation.setFungibleAuction)(...args),
2701
+ removeAllFungibleAuctions: (...args) => mutate(walletClient, mutation.removeAllFungibleAuctions)(...args),
2702
+ addHrContributor: (...args) => mutate(walletClient, mutation.addHrContributor)(...args),
2703
+ setRipeAvailForHr: (...args) => mutate(walletClient, mutation.setRipeAvailForHr)(...args),
2704
+ refundRipeAfterCancelPaycheck: (...args) => mutate(walletClient, mutation.refundRipeAfterCancelPaycheck)(...args),
2705
+ setRipeAvailForBonds: (...args) => mutate(walletClient, mutation.setRipeAvailForBonds)(...args),
2706
+ setBadDebt: (...args) => mutate(walletClient, mutation.setBadDebt)(...args),
2707
+ didClearBadDebt: (...args) => mutate(walletClient, mutation.didClearBadDebt)(...args),
2708
+ didPurchaseRipeBond: (...args) => mutate(walletClient, mutation.didPurchaseRipeBond)(...args),
2709
+ setEpochData: (...args) => mutate(walletClient, mutation.setEpochData)(...args),
2710
+ updateGreenPoolDebt: (...args) => mutate(walletClient, mutation.updateGreenPoolDebt)(...args),
2711
+ };
2712
+ }