@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,2957 @@
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: 'setGeneralConfig',
223
+ inputs: [
224
+ {
225
+ name: '_config',
226
+ type: 'tuple',
227
+ components: [
228
+ {
229
+ name: 'perUserMaxVaults',
230
+ type: 'uint256',
231
+ },
232
+ {
233
+ name: 'perUserMaxAssetsPerVault',
234
+ type: 'uint256',
235
+ },
236
+ {
237
+ name: 'priceStaleTime',
238
+ type: 'uint256',
239
+ },
240
+ {
241
+ name: 'canDeposit',
242
+ type: 'bool',
243
+ },
244
+ {
245
+ name: 'canWithdraw',
246
+ type: 'bool',
247
+ },
248
+ {
249
+ name: 'canBorrow',
250
+ type: 'bool',
251
+ },
252
+ {
253
+ name: 'canRepay',
254
+ type: 'bool',
255
+ },
256
+ {
257
+ name: 'canClaimLoot',
258
+ type: 'bool',
259
+ },
260
+ {
261
+ name: 'canLiquidate',
262
+ type: 'bool',
263
+ },
264
+ {
265
+ name: 'canRedeemCollateral',
266
+ type: 'bool',
267
+ },
268
+ {
269
+ name: 'canRedeemInStabPool',
270
+ type: 'bool',
271
+ },
272
+ {
273
+ name: 'canBuyInAuction',
274
+ type: 'bool',
275
+ },
276
+ {
277
+ name: 'canClaimInStabPool',
278
+ type: 'bool',
279
+ },
280
+ ],
281
+ },
282
+ ],
283
+ outputs: [],
284
+ },
285
+ {
286
+ stateMutability: 'nonpayable',
287
+ type: 'function',
288
+ name: 'setGeneralDebtConfig',
289
+ inputs: [
290
+ {
291
+ name: '_config',
292
+ type: 'tuple',
293
+ components: [
294
+ {
295
+ name: 'perUserDebtLimit',
296
+ type: 'uint256',
297
+ },
298
+ {
299
+ name: 'globalDebtLimit',
300
+ type: 'uint256',
301
+ },
302
+ {
303
+ name: 'minDebtAmount',
304
+ type: 'uint256',
305
+ },
306
+ {
307
+ name: 'numAllowedBorrowers',
308
+ type: 'uint256',
309
+ },
310
+ {
311
+ name: 'maxBorrowPerInterval',
312
+ type: 'uint256',
313
+ },
314
+ {
315
+ name: 'numBlocksPerInterval',
316
+ type: 'uint256',
317
+ },
318
+ {
319
+ name: 'minDynamicRateBoost',
320
+ type: 'uint256',
321
+ },
322
+ {
323
+ name: 'maxDynamicRateBoost',
324
+ type: 'uint256',
325
+ },
326
+ {
327
+ name: 'increasePerDangerBlock',
328
+ type: 'uint256',
329
+ },
330
+ {
331
+ name: 'maxBorrowRate',
332
+ type: 'uint256',
333
+ },
334
+ {
335
+ name: 'maxLtvDeviation',
336
+ type: 'uint256',
337
+ },
338
+ {
339
+ name: 'keeperFeeRatio',
340
+ type: 'uint256',
341
+ },
342
+ {
343
+ name: 'minKeeperFee',
344
+ type: 'uint256',
345
+ },
346
+ {
347
+ name: 'maxKeeperFee',
348
+ type: 'uint256',
349
+ },
350
+ {
351
+ name: 'isDaowryEnabled',
352
+ type: 'bool',
353
+ },
354
+ {
355
+ name: 'ltvPaybackBuffer',
356
+ type: 'uint256',
357
+ },
358
+ {
359
+ name: 'genAuctionParams',
360
+ type: 'tuple',
361
+ components: [
362
+ {
363
+ name: 'hasParams',
364
+ type: 'bool',
365
+ },
366
+ {
367
+ name: 'startDiscount',
368
+ type: 'uint256',
369
+ },
370
+ {
371
+ name: 'maxDiscount',
372
+ type: 'uint256',
373
+ },
374
+ {
375
+ name: 'delay',
376
+ type: 'uint256',
377
+ },
378
+ {
379
+ name: 'duration',
380
+ type: 'uint256',
381
+ },
382
+ ],
383
+ },
384
+ ],
385
+ },
386
+ ],
387
+ outputs: [],
388
+ },
389
+ {
390
+ stateMutability: 'nonpayable',
391
+ type: 'function',
392
+ name: 'setHrConfig',
393
+ inputs: [
394
+ {
395
+ name: '_config',
396
+ type: 'tuple',
397
+ components: [
398
+ {
399
+ name: 'contribTemplate',
400
+ type: 'address',
401
+ },
402
+ {
403
+ name: 'maxCompensation',
404
+ type: 'uint256',
405
+ },
406
+ {
407
+ name: 'minCliffLength',
408
+ type: 'uint256',
409
+ },
410
+ {
411
+ name: 'maxStartDelay',
412
+ type: 'uint256',
413
+ },
414
+ {
415
+ name: 'minVestingLength',
416
+ type: 'uint256',
417
+ },
418
+ {
419
+ name: 'maxVestingLength',
420
+ type: 'uint256',
421
+ },
422
+ ],
423
+ },
424
+ ],
425
+ outputs: [],
426
+ },
427
+ {
428
+ stateMutability: 'nonpayable',
429
+ type: 'function',
430
+ name: 'setRipeBondConfig',
431
+ inputs: [
432
+ {
433
+ name: '_config',
434
+ type: 'tuple',
435
+ components: [
436
+ {
437
+ name: 'asset',
438
+ type: 'address',
439
+ },
440
+ {
441
+ name: 'amountPerEpoch',
442
+ type: 'uint256',
443
+ },
444
+ {
445
+ name: 'canBond',
446
+ type: 'bool',
447
+ },
448
+ {
449
+ name: 'minRipePerUnit',
450
+ type: 'uint256',
451
+ },
452
+ {
453
+ name: 'maxRipePerUnit',
454
+ type: 'uint256',
455
+ },
456
+ {
457
+ name: 'maxRipePerUnitLockBonus',
458
+ type: 'uint256',
459
+ },
460
+ {
461
+ name: 'epochLength',
462
+ type: 'uint256',
463
+ },
464
+ {
465
+ name: 'shouldAutoRestart',
466
+ type: 'bool',
467
+ },
468
+ {
469
+ name: 'restartDelayBlocks',
470
+ type: 'uint256',
471
+ },
472
+ ],
473
+ },
474
+ ],
475
+ outputs: [],
476
+ },
477
+ {
478
+ stateMutability: 'nonpayable',
479
+ type: 'function',
480
+ name: 'setAssetConfig',
481
+ inputs: [
482
+ {
483
+ name: '_asset',
484
+ type: 'address',
485
+ },
486
+ {
487
+ name: '_config',
488
+ type: 'tuple',
489
+ components: [
490
+ {
491
+ name: 'vaultIds',
492
+ type: 'uint256[]',
493
+ },
494
+ {
495
+ name: 'stakersPointsAlloc',
496
+ type: 'uint256',
497
+ },
498
+ {
499
+ name: 'voterPointsAlloc',
500
+ type: 'uint256',
501
+ },
502
+ {
503
+ name: 'perUserDepositLimit',
504
+ type: 'uint256',
505
+ },
506
+ {
507
+ name: 'globalDepositLimit',
508
+ type: 'uint256',
509
+ },
510
+ {
511
+ name: 'minDepositBalance',
512
+ type: 'uint256',
513
+ },
514
+ {
515
+ name: 'debtTerms',
516
+ type: 'tuple',
517
+ components: [
518
+ {
519
+ name: 'ltv',
520
+ type: 'uint256',
521
+ },
522
+ {
523
+ name: 'redemptionThreshold',
524
+ type: 'uint256',
525
+ },
526
+ {
527
+ name: 'liqThreshold',
528
+ type: 'uint256',
529
+ },
530
+ {
531
+ name: 'liqFee',
532
+ type: 'uint256',
533
+ },
534
+ {
535
+ name: 'borrowRate',
536
+ type: 'uint256',
537
+ },
538
+ {
539
+ name: 'daowry',
540
+ type: 'uint256',
541
+ },
542
+ ],
543
+ },
544
+ {
545
+ name: 'shouldBurnAsPayment',
546
+ type: 'bool',
547
+ },
548
+ {
549
+ name: 'shouldTransferToEndaoment',
550
+ type: 'bool',
551
+ },
552
+ {
553
+ name: 'shouldSwapInStabPools',
554
+ type: 'bool',
555
+ },
556
+ {
557
+ name: 'shouldAuctionInstantly',
558
+ type: 'bool',
559
+ },
560
+ {
561
+ name: 'canDeposit',
562
+ type: 'bool',
563
+ },
564
+ {
565
+ name: 'canWithdraw',
566
+ type: 'bool',
567
+ },
568
+ {
569
+ name: 'canRedeemCollateral',
570
+ type: 'bool',
571
+ },
572
+ {
573
+ name: 'canRedeemInStabPool',
574
+ type: 'bool',
575
+ },
576
+ {
577
+ name: 'canBuyInAuction',
578
+ type: 'bool',
579
+ },
580
+ {
581
+ name: 'canClaimInStabPool',
582
+ type: 'bool',
583
+ },
584
+ {
585
+ name: 'specialStabPoolId',
586
+ type: 'uint256',
587
+ },
588
+ {
589
+ name: 'customAuctionParams',
590
+ type: 'tuple',
591
+ components: [
592
+ {
593
+ name: 'hasParams',
594
+ type: 'bool',
595
+ },
596
+ {
597
+ name: 'startDiscount',
598
+ type: 'uint256',
599
+ },
600
+ {
601
+ name: 'maxDiscount',
602
+ type: 'uint256',
603
+ },
604
+ {
605
+ name: 'delay',
606
+ type: 'uint256',
607
+ },
608
+ {
609
+ name: 'duration',
610
+ type: 'uint256',
611
+ },
612
+ ],
613
+ },
614
+ {
615
+ name: 'whitelist',
616
+ type: 'address',
617
+ },
618
+ {
619
+ name: 'isNft',
620
+ type: 'bool',
621
+ },
622
+ ],
623
+ },
624
+ ],
625
+ outputs: [],
626
+ },
627
+ {
628
+ stateMutability: 'nonpayable',
629
+ type: 'function',
630
+ name: 'deregisterAsset',
631
+ inputs: [
632
+ {
633
+ name: '_asset',
634
+ type: 'address',
635
+ },
636
+ ],
637
+ outputs: [
638
+ {
639
+ name: '',
640
+ type: 'bool',
641
+ },
642
+ ],
643
+ },
644
+ {
645
+ stateMutability: 'nonpayable',
646
+ type: 'function',
647
+ name: 'setUserConfig',
648
+ inputs: [
649
+ {
650
+ name: '_user',
651
+ type: 'address',
652
+ },
653
+ {
654
+ name: '_config',
655
+ type: 'tuple',
656
+ components: [
657
+ {
658
+ name: 'canAnyoneDeposit',
659
+ type: 'bool',
660
+ },
661
+ {
662
+ name: 'canAnyoneRepayDebt',
663
+ type: 'bool',
664
+ },
665
+ {
666
+ name: 'canAnyoneBondForUser',
667
+ type: 'bool',
668
+ },
669
+ ],
670
+ },
671
+ ],
672
+ outputs: [],
673
+ },
674
+ {
675
+ stateMutability: 'nonpayable',
676
+ type: 'function',
677
+ name: 'setUserDelegation',
678
+ inputs: [
679
+ {
680
+ name: '_user',
681
+ type: 'address',
682
+ },
683
+ {
684
+ name: '_delegate',
685
+ type: 'address',
686
+ },
687
+ {
688
+ name: '_config',
689
+ type: 'tuple',
690
+ components: [
691
+ {
692
+ name: 'canWithdraw',
693
+ type: 'bool',
694
+ },
695
+ {
696
+ name: 'canBorrow',
697
+ type: 'bool',
698
+ },
699
+ {
700
+ name: 'canClaimFromStabPool',
701
+ type: 'bool',
702
+ },
703
+ {
704
+ name: 'canClaimLoot',
705
+ type: 'bool',
706
+ },
707
+ ],
708
+ },
709
+ ],
710
+ outputs: [],
711
+ },
712
+ {
713
+ stateMutability: 'nonpayable',
714
+ type: 'function',
715
+ name: 'setRipeRewardsConfig',
716
+ inputs: [
717
+ {
718
+ name: '_config',
719
+ type: 'tuple',
720
+ components: [
721
+ {
722
+ name: 'arePointsEnabled',
723
+ type: 'bool',
724
+ },
725
+ {
726
+ name: 'ripePerBlock',
727
+ type: 'uint256',
728
+ },
729
+ {
730
+ name: 'borrowersAlloc',
731
+ type: 'uint256',
732
+ },
733
+ {
734
+ name: 'stakersAlloc',
735
+ type: 'uint256',
736
+ },
737
+ {
738
+ name: 'votersAlloc',
739
+ type: 'uint256',
740
+ },
741
+ {
742
+ name: 'genDepositorsAlloc',
743
+ type: 'uint256',
744
+ },
745
+ {
746
+ name: 'autoStakeRatio',
747
+ type: 'uint256',
748
+ },
749
+ {
750
+ name: 'autoStakeDurationRatio',
751
+ type: 'uint256',
752
+ },
753
+ {
754
+ name: 'stabPoolRipePerDollarClaimed',
755
+ type: 'uint256',
756
+ },
757
+ ],
758
+ },
759
+ ],
760
+ outputs: [],
761
+ },
762
+ {
763
+ stateMutability: 'nonpayable',
764
+ type: 'function',
765
+ name: 'setRipeGovVaultConfig',
766
+ inputs: [
767
+ {
768
+ name: '_asset',
769
+ type: 'address',
770
+ },
771
+ {
772
+ name: '_assetWeight',
773
+ type: 'uint256',
774
+ },
775
+ {
776
+ name: '_shouldFreezeWhenBadDebt',
777
+ type: 'bool',
778
+ },
779
+ {
780
+ name: '_lockTerms',
781
+ type: 'tuple',
782
+ components: [
783
+ {
784
+ name: 'minLockDuration',
785
+ type: 'uint256',
786
+ },
787
+ {
788
+ name: 'maxLockDuration',
789
+ type: 'uint256',
790
+ },
791
+ {
792
+ name: 'maxLockBoost',
793
+ type: 'uint256',
794
+ },
795
+ {
796
+ name: 'canExit',
797
+ type: 'bool',
798
+ },
799
+ {
800
+ name: 'exitFee',
801
+ type: 'uint256',
802
+ },
803
+ ],
804
+ },
805
+ ],
806
+ outputs: [],
807
+ },
808
+ {
809
+ stateMutability: 'nonpayable',
810
+ type: 'function',
811
+ name: 'setPriorityLiqAssetVaults',
812
+ inputs: [
813
+ {
814
+ name: '_priorityLiqAssetVaults',
815
+ type: 'tuple[]',
816
+ components: [
817
+ {
818
+ name: 'vaultId',
819
+ type: 'uint256',
820
+ },
821
+ {
822
+ name: 'asset',
823
+ type: 'address',
824
+ },
825
+ ],
826
+ },
827
+ ],
828
+ outputs: [],
829
+ },
830
+ {
831
+ stateMutability: 'nonpayable',
832
+ type: 'function',
833
+ name: 'setPriorityStabVaults',
834
+ inputs: [
835
+ {
836
+ name: '_priorityStabVaults',
837
+ type: 'tuple[]',
838
+ components: [
839
+ {
840
+ name: 'vaultId',
841
+ type: 'uint256',
842
+ },
843
+ {
844
+ name: 'asset',
845
+ type: 'address',
846
+ },
847
+ ],
848
+ },
849
+ ],
850
+ outputs: [],
851
+ },
852
+ {
853
+ stateMutability: 'nonpayable',
854
+ type: 'function',
855
+ name: 'setCanPerformLiteAction',
856
+ inputs: [
857
+ {
858
+ name: '_user',
859
+ type: 'address',
860
+ },
861
+ {
862
+ name: '_canDo',
863
+ type: 'bool',
864
+ },
865
+ ],
866
+ outputs: [],
867
+ },
868
+ {
869
+ stateMutability: 'nonpayable',
870
+ type: 'function',
871
+ name: 'setTrainingWheels',
872
+ inputs: [
873
+ {
874
+ name: '_trainingWheels',
875
+ type: 'address',
876
+ },
877
+ ],
878
+ outputs: [],
879
+ },
880
+ {
881
+ stateMutability: 'nonpayable',
882
+ type: 'function',
883
+ name: 'setUnderscoreRegistry',
884
+ inputs: [
885
+ {
886
+ name: '_underscoreRegistry',
887
+ type: 'address',
888
+ },
889
+ ],
890
+ outputs: [],
891
+ },
892
+ {
893
+ stateMutability: 'nonpayable',
894
+ type: 'function',
895
+ name: 'setPriorityPriceSourceIds',
896
+ inputs: [
897
+ {
898
+ name: '_priorityIds',
899
+ type: 'uint256[]',
900
+ },
901
+ ],
902
+ outputs: [],
903
+ },
904
+ {
905
+ stateMutability: 'nonpayable',
906
+ type: 'function',
907
+ name: 'setShouldCheckLastTouch',
908
+ inputs: [
909
+ {
910
+ name: '_shouldCheck',
911
+ type: 'bool',
912
+ },
913
+ ],
914
+ outputs: [],
915
+ },
916
+ {
917
+ stateMutability: 'view',
918
+ type: 'function',
919
+ name: 'isSupportedAsset',
920
+ inputs: [
921
+ {
922
+ name: '_asset',
923
+ type: 'address',
924
+ },
925
+ ],
926
+ outputs: [
927
+ {
928
+ name: '',
929
+ type: 'bool',
930
+ },
931
+ ],
932
+ },
933
+ {
934
+ stateMutability: 'view',
935
+ type: 'function',
936
+ name: 'isSupportedAssetInVault',
937
+ inputs: [
938
+ {
939
+ name: '_vaultId',
940
+ type: 'uint256',
941
+ },
942
+ {
943
+ name: '_asset',
944
+ type: 'address',
945
+ },
946
+ ],
947
+ outputs: [
948
+ {
949
+ name: '',
950
+ type: 'bool',
951
+ },
952
+ ],
953
+ },
954
+ {
955
+ stateMutability: 'view',
956
+ type: 'function',
957
+ name: 'getNumAssets',
958
+ inputs: [],
959
+ outputs: [
960
+ {
961
+ name: '',
962
+ type: 'uint256',
963
+ },
964
+ ],
965
+ },
966
+ {
967
+ stateMutability: 'view',
968
+ type: 'function',
969
+ name: 'getFirstVaultIdForAsset',
970
+ inputs: [
971
+ {
972
+ name: '_asset',
973
+ type: 'address',
974
+ },
975
+ ],
976
+ outputs: [
977
+ {
978
+ name: '',
979
+ type: 'uint256',
980
+ },
981
+ ],
982
+ },
983
+ {
984
+ stateMutability: 'view',
985
+ type: 'function',
986
+ name: 'getTellerDepositConfig',
987
+ inputs: [
988
+ {
989
+ name: '_vaultId',
990
+ type: 'uint256',
991
+ },
992
+ {
993
+ name: '_asset',
994
+ type: 'address',
995
+ },
996
+ {
997
+ name: '_user',
998
+ type: 'address',
999
+ },
1000
+ ],
1001
+ outputs: [
1002
+ {
1003
+ name: '',
1004
+ type: 'tuple',
1005
+ components: [
1006
+ {
1007
+ name: 'canDepositGeneral',
1008
+ type: 'bool',
1009
+ },
1010
+ {
1011
+ name: 'canDepositAsset',
1012
+ type: 'bool',
1013
+ },
1014
+ {
1015
+ name: 'doesVaultSupportAsset',
1016
+ type: 'bool',
1017
+ },
1018
+ {
1019
+ name: 'isUserAllowed',
1020
+ type: 'bool',
1021
+ },
1022
+ {
1023
+ name: 'perUserDepositLimit',
1024
+ type: 'uint256',
1025
+ },
1026
+ {
1027
+ name: 'globalDepositLimit',
1028
+ type: 'uint256',
1029
+ },
1030
+ {
1031
+ name: 'perUserMaxAssetsPerVault',
1032
+ type: 'uint256',
1033
+ },
1034
+ {
1035
+ name: 'perUserMaxVaults',
1036
+ type: 'uint256',
1037
+ },
1038
+ {
1039
+ name: 'canAnyoneDeposit',
1040
+ type: 'bool',
1041
+ },
1042
+ {
1043
+ name: 'minDepositBalance',
1044
+ type: 'uint256',
1045
+ },
1046
+ ],
1047
+ },
1048
+ ],
1049
+ },
1050
+ {
1051
+ stateMutability: 'view',
1052
+ type: 'function',
1053
+ name: 'getTellerWithdrawConfig',
1054
+ inputs: [
1055
+ {
1056
+ name: '_asset',
1057
+ type: 'address',
1058
+ },
1059
+ {
1060
+ name: '_user',
1061
+ type: 'address',
1062
+ },
1063
+ {
1064
+ name: '_caller',
1065
+ type: 'address',
1066
+ },
1067
+ ],
1068
+ outputs: [
1069
+ {
1070
+ name: '',
1071
+ type: 'tuple',
1072
+ components: [
1073
+ {
1074
+ name: 'canWithdrawGeneral',
1075
+ type: 'bool',
1076
+ },
1077
+ {
1078
+ name: 'canWithdrawAsset',
1079
+ type: 'bool',
1080
+ },
1081
+ {
1082
+ name: 'isUserAllowed',
1083
+ type: 'bool',
1084
+ },
1085
+ {
1086
+ name: 'canWithdrawForUser',
1087
+ type: 'bool',
1088
+ },
1089
+ {
1090
+ name: 'minDepositBalance',
1091
+ type: 'uint256',
1092
+ },
1093
+ ],
1094
+ },
1095
+ ],
1096
+ },
1097
+ {
1098
+ stateMutability: 'view',
1099
+ type: 'function',
1100
+ name: 'getDebtTerms',
1101
+ inputs: [
1102
+ {
1103
+ name: '_asset',
1104
+ type: 'address',
1105
+ },
1106
+ ],
1107
+ outputs: [
1108
+ {
1109
+ name: '',
1110
+ type: 'tuple',
1111
+ components: [
1112
+ {
1113
+ name: 'ltv',
1114
+ type: 'uint256',
1115
+ },
1116
+ {
1117
+ name: 'redemptionThreshold',
1118
+ type: 'uint256',
1119
+ },
1120
+ {
1121
+ name: 'liqThreshold',
1122
+ type: 'uint256',
1123
+ },
1124
+ {
1125
+ name: 'liqFee',
1126
+ type: 'uint256',
1127
+ },
1128
+ {
1129
+ name: 'borrowRate',
1130
+ type: 'uint256',
1131
+ },
1132
+ {
1133
+ name: 'daowry',
1134
+ type: 'uint256',
1135
+ },
1136
+ ],
1137
+ },
1138
+ ],
1139
+ },
1140
+ {
1141
+ stateMutability: 'view',
1142
+ type: 'function',
1143
+ name: 'getBorrowConfig',
1144
+ inputs: [
1145
+ {
1146
+ name: '_user',
1147
+ type: 'address',
1148
+ },
1149
+ {
1150
+ name: '_caller',
1151
+ type: 'address',
1152
+ },
1153
+ ],
1154
+ outputs: [
1155
+ {
1156
+ name: '',
1157
+ type: 'tuple',
1158
+ components: [
1159
+ {
1160
+ name: 'canBorrow',
1161
+ type: 'bool',
1162
+ },
1163
+ {
1164
+ name: 'canBorrowForUser',
1165
+ type: 'bool',
1166
+ },
1167
+ {
1168
+ name: 'numAllowedBorrowers',
1169
+ type: 'uint256',
1170
+ },
1171
+ {
1172
+ name: 'maxBorrowPerInterval',
1173
+ type: 'uint256',
1174
+ },
1175
+ {
1176
+ name: 'numBlocksPerInterval',
1177
+ type: 'uint256',
1178
+ },
1179
+ {
1180
+ name: 'perUserDebtLimit',
1181
+ type: 'uint256',
1182
+ },
1183
+ {
1184
+ name: 'globalDebtLimit',
1185
+ type: 'uint256',
1186
+ },
1187
+ {
1188
+ name: 'minDebtAmount',
1189
+ type: 'uint256',
1190
+ },
1191
+ {
1192
+ name: 'isDaowryEnabled',
1193
+ type: 'bool',
1194
+ },
1195
+ ],
1196
+ },
1197
+ ],
1198
+ },
1199
+ {
1200
+ stateMutability: 'view',
1201
+ type: 'function',
1202
+ name: 'maxLtvDeviation',
1203
+ inputs: [],
1204
+ outputs: [
1205
+ {
1206
+ name: '',
1207
+ type: 'uint256',
1208
+ },
1209
+ ],
1210
+ },
1211
+ {
1212
+ stateMutability: 'view',
1213
+ type: 'function',
1214
+ name: 'getRepayConfig',
1215
+ inputs: [
1216
+ {
1217
+ name: '_user',
1218
+ type: 'address',
1219
+ },
1220
+ ],
1221
+ outputs: [
1222
+ {
1223
+ name: '',
1224
+ type: 'tuple',
1225
+ components: [
1226
+ {
1227
+ name: 'canRepay',
1228
+ type: 'bool',
1229
+ },
1230
+ {
1231
+ name: 'canAnyoneRepayDebt',
1232
+ type: 'bool',
1233
+ },
1234
+ ],
1235
+ },
1236
+ ],
1237
+ },
1238
+ {
1239
+ stateMutability: 'view',
1240
+ type: 'function',
1241
+ name: 'getRedeemCollateralConfig',
1242
+ inputs: [
1243
+ {
1244
+ name: '_asset',
1245
+ type: 'address',
1246
+ },
1247
+ {
1248
+ name: '_recipient',
1249
+ type: 'address',
1250
+ },
1251
+ ],
1252
+ outputs: [
1253
+ {
1254
+ name: '',
1255
+ type: 'tuple',
1256
+ components: [
1257
+ {
1258
+ name: 'canRedeemCollateralGeneral',
1259
+ type: 'bool',
1260
+ },
1261
+ {
1262
+ name: 'canRedeemCollateralAsset',
1263
+ type: 'bool',
1264
+ },
1265
+ {
1266
+ name: 'isUserAllowed',
1267
+ type: 'bool',
1268
+ },
1269
+ {
1270
+ name: 'ltvPaybackBuffer',
1271
+ type: 'uint256',
1272
+ },
1273
+ {
1274
+ name: 'canAnyoneDeposit',
1275
+ type: 'bool',
1276
+ },
1277
+ ],
1278
+ },
1279
+ ],
1280
+ },
1281
+ {
1282
+ stateMutability: 'view',
1283
+ type: 'function',
1284
+ name: 'getLtvPaybackBuffer',
1285
+ inputs: [],
1286
+ outputs: [
1287
+ {
1288
+ name: '',
1289
+ type: 'uint256',
1290
+ },
1291
+ ],
1292
+ },
1293
+ {
1294
+ stateMutability: 'view',
1295
+ type: 'function',
1296
+ name: 'getAuctionBuyConfig',
1297
+ inputs: [
1298
+ {
1299
+ name: '_asset',
1300
+ type: 'address',
1301
+ },
1302
+ {
1303
+ name: '_recipient',
1304
+ type: 'address',
1305
+ },
1306
+ ],
1307
+ outputs: [
1308
+ {
1309
+ name: '',
1310
+ type: 'tuple',
1311
+ components: [
1312
+ {
1313
+ name: 'canBuyInAuctionGeneral',
1314
+ type: 'bool',
1315
+ },
1316
+ {
1317
+ name: 'canBuyInAuctionAsset',
1318
+ type: 'bool',
1319
+ },
1320
+ {
1321
+ name: 'isUserAllowed',
1322
+ type: 'bool',
1323
+ },
1324
+ {
1325
+ name: 'canAnyoneDeposit',
1326
+ type: 'bool',
1327
+ },
1328
+ ],
1329
+ },
1330
+ ],
1331
+ },
1332
+ {
1333
+ stateMutability: 'view',
1334
+ type: 'function',
1335
+ name: 'getGenLiqConfig',
1336
+ inputs: [],
1337
+ outputs: [
1338
+ {
1339
+ name: '',
1340
+ type: 'tuple',
1341
+ components: [
1342
+ {
1343
+ name: 'canLiquidate',
1344
+ type: 'bool',
1345
+ },
1346
+ {
1347
+ name: 'keeperFeeRatio',
1348
+ type: 'uint256',
1349
+ },
1350
+ {
1351
+ name: 'minKeeperFee',
1352
+ type: 'uint256',
1353
+ },
1354
+ {
1355
+ name: 'maxKeeperFee',
1356
+ type: 'uint256',
1357
+ },
1358
+ {
1359
+ name: 'ltvPaybackBuffer',
1360
+ type: 'uint256',
1361
+ },
1362
+ {
1363
+ name: 'genAuctionParams',
1364
+ type: 'tuple',
1365
+ components: [
1366
+ {
1367
+ name: 'hasParams',
1368
+ type: 'bool',
1369
+ },
1370
+ {
1371
+ name: 'startDiscount',
1372
+ type: 'uint256',
1373
+ },
1374
+ {
1375
+ name: 'maxDiscount',
1376
+ type: 'uint256',
1377
+ },
1378
+ {
1379
+ name: 'delay',
1380
+ type: 'uint256',
1381
+ },
1382
+ {
1383
+ name: 'duration',
1384
+ type: 'uint256',
1385
+ },
1386
+ ],
1387
+ },
1388
+ {
1389
+ name: 'priorityLiqAssetVaults',
1390
+ type: 'tuple[]',
1391
+ components: [
1392
+ {
1393
+ name: 'vaultId',
1394
+ type: 'uint256',
1395
+ },
1396
+ {
1397
+ name: 'vaultAddr',
1398
+ type: 'address',
1399
+ },
1400
+ {
1401
+ name: 'asset',
1402
+ type: 'address',
1403
+ },
1404
+ ],
1405
+ },
1406
+ {
1407
+ name: 'priorityStabVaults',
1408
+ type: 'tuple[]',
1409
+ components: [
1410
+ {
1411
+ name: 'vaultId',
1412
+ type: 'uint256',
1413
+ },
1414
+ {
1415
+ name: 'vaultAddr',
1416
+ type: 'address',
1417
+ },
1418
+ {
1419
+ name: 'asset',
1420
+ type: 'address',
1421
+ },
1422
+ ],
1423
+ },
1424
+ ],
1425
+ },
1426
+ ],
1427
+ },
1428
+ {
1429
+ stateMutability: 'view',
1430
+ type: 'function',
1431
+ name: 'getGenAuctionParams',
1432
+ inputs: [],
1433
+ outputs: [
1434
+ {
1435
+ name: '',
1436
+ type: 'tuple',
1437
+ components: [
1438
+ {
1439
+ name: 'hasParams',
1440
+ type: 'bool',
1441
+ },
1442
+ {
1443
+ name: 'startDiscount',
1444
+ type: 'uint256',
1445
+ },
1446
+ {
1447
+ name: 'maxDiscount',
1448
+ type: 'uint256',
1449
+ },
1450
+ {
1451
+ name: 'delay',
1452
+ type: 'uint256',
1453
+ },
1454
+ {
1455
+ name: 'duration',
1456
+ type: 'uint256',
1457
+ },
1458
+ ],
1459
+ },
1460
+ ],
1461
+ },
1462
+ {
1463
+ stateMutability: 'view',
1464
+ type: 'function',
1465
+ name: 'getAssetLiqConfig',
1466
+ inputs: [
1467
+ {
1468
+ name: '_asset',
1469
+ type: 'address',
1470
+ },
1471
+ ],
1472
+ outputs: [
1473
+ {
1474
+ name: '',
1475
+ type: 'tuple',
1476
+ components: [
1477
+ {
1478
+ name: 'hasConfig',
1479
+ type: 'bool',
1480
+ },
1481
+ {
1482
+ name: 'shouldBurnAsPayment',
1483
+ type: 'bool',
1484
+ },
1485
+ {
1486
+ name: 'shouldTransferToEndaoment',
1487
+ type: 'bool',
1488
+ },
1489
+ {
1490
+ name: 'shouldSwapInStabPools',
1491
+ type: 'bool',
1492
+ },
1493
+ {
1494
+ name: 'shouldAuctionInstantly',
1495
+ type: 'bool',
1496
+ },
1497
+ {
1498
+ name: 'customAuctionParams',
1499
+ type: 'tuple',
1500
+ components: [
1501
+ {
1502
+ name: 'hasParams',
1503
+ type: 'bool',
1504
+ },
1505
+ {
1506
+ name: 'startDiscount',
1507
+ type: 'uint256',
1508
+ },
1509
+ {
1510
+ name: 'maxDiscount',
1511
+ type: 'uint256',
1512
+ },
1513
+ {
1514
+ name: 'delay',
1515
+ type: 'uint256',
1516
+ },
1517
+ {
1518
+ name: 'duration',
1519
+ type: 'uint256',
1520
+ },
1521
+ ],
1522
+ },
1523
+ {
1524
+ name: 'specialStabPool',
1525
+ type: 'tuple',
1526
+ components: [
1527
+ {
1528
+ name: 'vaultId',
1529
+ type: 'uint256',
1530
+ },
1531
+ {
1532
+ name: 'vaultAddr',
1533
+ type: 'address',
1534
+ },
1535
+ {
1536
+ name: 'asset',
1537
+ type: 'address',
1538
+ },
1539
+ ],
1540
+ },
1541
+ ],
1542
+ },
1543
+ ],
1544
+ },
1545
+ {
1546
+ stateMutability: 'view',
1547
+ type: 'function',
1548
+ name: 'getStabPoolClaimsConfig',
1549
+ inputs: [
1550
+ {
1551
+ name: '_claimAsset',
1552
+ type: 'address',
1553
+ },
1554
+ {
1555
+ name: '_claimer',
1556
+ type: 'address',
1557
+ },
1558
+ {
1559
+ name: '_caller',
1560
+ type: 'address',
1561
+ },
1562
+ {
1563
+ name: '_ripeToken',
1564
+ type: 'address',
1565
+ },
1566
+ ],
1567
+ outputs: [
1568
+ {
1569
+ name: '',
1570
+ type: 'tuple',
1571
+ components: [
1572
+ {
1573
+ name: 'canClaimInStabPoolGeneral',
1574
+ type: 'bool',
1575
+ },
1576
+ {
1577
+ name: 'canClaimInStabPoolAsset',
1578
+ type: 'bool',
1579
+ },
1580
+ {
1581
+ name: 'canClaimFromStabPoolForUser',
1582
+ type: 'bool',
1583
+ },
1584
+ {
1585
+ name: 'isUserAllowed',
1586
+ type: 'bool',
1587
+ },
1588
+ {
1589
+ name: 'rewardsLockDuration',
1590
+ type: 'uint256',
1591
+ },
1592
+ {
1593
+ name: 'ripePerDollarClaimed',
1594
+ type: 'uint256',
1595
+ },
1596
+ ],
1597
+ },
1598
+ ],
1599
+ },
1600
+ {
1601
+ stateMutability: 'view',
1602
+ type: 'function',
1603
+ name: 'getStabPoolRedemptionsConfig',
1604
+ inputs: [
1605
+ {
1606
+ name: '_asset',
1607
+ type: 'address',
1608
+ },
1609
+ {
1610
+ name: '_recipient',
1611
+ type: 'address',
1612
+ },
1613
+ ],
1614
+ outputs: [
1615
+ {
1616
+ name: '',
1617
+ type: 'tuple',
1618
+ components: [
1619
+ {
1620
+ name: 'canRedeemInStabPoolGeneral',
1621
+ type: 'bool',
1622
+ },
1623
+ {
1624
+ name: 'canRedeemInStabPoolAsset',
1625
+ type: 'bool',
1626
+ },
1627
+ {
1628
+ name: 'isUserAllowed',
1629
+ type: 'bool',
1630
+ },
1631
+ {
1632
+ name: 'canAnyoneDeposit',
1633
+ type: 'bool',
1634
+ },
1635
+ ],
1636
+ },
1637
+ ],
1638
+ },
1639
+ {
1640
+ stateMutability: 'view',
1641
+ type: 'function',
1642
+ name: 'getClaimLootConfig',
1643
+ inputs: [
1644
+ {
1645
+ name: '_user',
1646
+ type: 'address',
1647
+ },
1648
+ {
1649
+ name: '_caller',
1650
+ type: 'address',
1651
+ },
1652
+ {
1653
+ name: '_ripeToken',
1654
+ type: 'address',
1655
+ },
1656
+ ],
1657
+ outputs: [
1658
+ {
1659
+ name: '',
1660
+ type: 'tuple',
1661
+ components: [
1662
+ {
1663
+ name: 'canClaimLoot',
1664
+ type: 'bool',
1665
+ },
1666
+ {
1667
+ name: 'canClaimLootForUser',
1668
+ type: 'bool',
1669
+ },
1670
+ {
1671
+ name: 'autoStakeRatio',
1672
+ type: 'uint256',
1673
+ },
1674
+ {
1675
+ name: 'rewardsLockDuration',
1676
+ type: 'uint256',
1677
+ },
1678
+ ],
1679
+ },
1680
+ ],
1681
+ },
1682
+ {
1683
+ stateMutability: 'view',
1684
+ type: 'function',
1685
+ name: 'getRewardsConfig',
1686
+ inputs: [],
1687
+ outputs: [
1688
+ {
1689
+ name: '',
1690
+ type: 'tuple',
1691
+ components: [
1692
+ {
1693
+ name: 'arePointsEnabled',
1694
+ type: 'bool',
1695
+ },
1696
+ {
1697
+ name: 'ripePerBlock',
1698
+ type: 'uint256',
1699
+ },
1700
+ {
1701
+ name: 'borrowersAlloc',
1702
+ type: 'uint256',
1703
+ },
1704
+ {
1705
+ name: 'stakersAlloc',
1706
+ type: 'uint256',
1707
+ },
1708
+ {
1709
+ name: 'votersAlloc',
1710
+ type: 'uint256',
1711
+ },
1712
+ {
1713
+ name: 'genDepositorsAlloc',
1714
+ type: 'uint256',
1715
+ },
1716
+ {
1717
+ name: 'stakersPointsAllocTotal',
1718
+ type: 'uint256',
1719
+ },
1720
+ {
1721
+ name: 'voterPointsAllocTotal',
1722
+ type: 'uint256',
1723
+ },
1724
+ ],
1725
+ },
1726
+ ],
1727
+ },
1728
+ {
1729
+ stateMutability: 'view',
1730
+ type: 'function',
1731
+ name: 'getDepositPointsConfig',
1732
+ inputs: [
1733
+ {
1734
+ name: '_asset',
1735
+ type: 'address',
1736
+ },
1737
+ ],
1738
+ outputs: [
1739
+ {
1740
+ name: '',
1741
+ type: 'tuple',
1742
+ components: [
1743
+ {
1744
+ name: 'stakersPointsAlloc',
1745
+ type: 'uint256',
1746
+ },
1747
+ {
1748
+ name: 'voterPointsAlloc',
1749
+ type: 'uint256',
1750
+ },
1751
+ {
1752
+ name: 'isNft',
1753
+ type: 'bool',
1754
+ },
1755
+ ],
1756
+ },
1757
+ ],
1758
+ },
1759
+ {
1760
+ stateMutability: 'view',
1761
+ type: 'function',
1762
+ name: 'getPriceConfig',
1763
+ inputs: [],
1764
+ outputs: [
1765
+ {
1766
+ name: '',
1767
+ type: 'tuple',
1768
+ components: [
1769
+ {
1770
+ name: 'staleTime',
1771
+ type: 'uint256',
1772
+ },
1773
+ {
1774
+ name: 'priorityPriceSourceIds',
1775
+ type: 'uint256[]',
1776
+ },
1777
+ ],
1778
+ },
1779
+ ],
1780
+ },
1781
+ {
1782
+ stateMutability: 'view',
1783
+ type: 'function',
1784
+ name: 'getPurchaseRipeBondConfig',
1785
+ inputs: [
1786
+ {
1787
+ name: '_user',
1788
+ type: 'address',
1789
+ },
1790
+ ],
1791
+ outputs: [
1792
+ {
1793
+ name: '',
1794
+ type: 'tuple',
1795
+ components: [
1796
+ {
1797
+ name: 'asset',
1798
+ type: 'address',
1799
+ },
1800
+ {
1801
+ name: 'amountPerEpoch',
1802
+ type: 'uint256',
1803
+ },
1804
+ {
1805
+ name: 'canBond',
1806
+ type: 'bool',
1807
+ },
1808
+ {
1809
+ name: 'minRipePerUnit',
1810
+ type: 'uint256',
1811
+ },
1812
+ {
1813
+ name: 'maxRipePerUnit',
1814
+ type: 'uint256',
1815
+ },
1816
+ {
1817
+ name: 'maxRipePerUnitLockBonus',
1818
+ type: 'uint256',
1819
+ },
1820
+ {
1821
+ name: 'epochLength',
1822
+ type: 'uint256',
1823
+ },
1824
+ {
1825
+ name: 'shouldAutoRestart',
1826
+ type: 'bool',
1827
+ },
1828
+ {
1829
+ name: 'restartDelayBlocks',
1830
+ type: 'uint256',
1831
+ },
1832
+ {
1833
+ name: 'minLockDuration',
1834
+ type: 'uint256',
1835
+ },
1836
+ {
1837
+ name: 'maxLockDuration',
1838
+ type: 'uint256',
1839
+ },
1840
+ {
1841
+ name: 'canAnyoneBondForUser',
1842
+ type: 'bool',
1843
+ },
1844
+ {
1845
+ name: 'isUserAllowed',
1846
+ type: 'bool',
1847
+ },
1848
+ ],
1849
+ },
1850
+ ],
1851
+ },
1852
+ {
1853
+ stateMutability: 'view',
1854
+ type: 'function',
1855
+ name: 'getDynamicBorrowRateConfig',
1856
+ inputs: [],
1857
+ outputs: [
1858
+ {
1859
+ name: '',
1860
+ type: 'tuple',
1861
+ components: [
1862
+ {
1863
+ name: 'minDynamicRateBoost',
1864
+ type: 'uint256',
1865
+ },
1866
+ {
1867
+ name: 'maxDynamicRateBoost',
1868
+ type: 'uint256',
1869
+ },
1870
+ {
1871
+ name: 'increasePerDangerBlock',
1872
+ type: 'uint256',
1873
+ },
1874
+ {
1875
+ name: 'maxBorrowRate',
1876
+ type: 'uint256',
1877
+ },
1878
+ ],
1879
+ },
1880
+ ],
1881
+ },
1882
+ {
1883
+ stateMutability: 'view',
1884
+ type: 'function',
1885
+ name: 'getPriceStaleTime',
1886
+ inputs: [],
1887
+ outputs: [
1888
+ {
1889
+ name: '',
1890
+ type: 'uint256',
1891
+ },
1892
+ ],
1893
+ },
1894
+ {
1895
+ stateMutability: 'view',
1896
+ type: 'function',
1897
+ name: 'getPriorityPriceSourceIds',
1898
+ inputs: [],
1899
+ outputs: [
1900
+ {
1901
+ name: '',
1902
+ type: 'uint256[]',
1903
+ },
1904
+ ],
1905
+ },
1906
+ {
1907
+ stateMutability: 'view',
1908
+ type: 'function',
1909
+ name: 'getPriorityLiqAssetVaults',
1910
+ inputs: [],
1911
+ outputs: [
1912
+ {
1913
+ name: '',
1914
+ type: 'tuple[]',
1915
+ components: [
1916
+ {
1917
+ name: 'vaultId',
1918
+ type: 'uint256',
1919
+ },
1920
+ {
1921
+ name: 'asset',
1922
+ type: 'address',
1923
+ },
1924
+ ],
1925
+ },
1926
+ ],
1927
+ },
1928
+ {
1929
+ stateMutability: 'view',
1930
+ type: 'function',
1931
+ name: 'getPriorityStabVaults',
1932
+ inputs: [],
1933
+ outputs: [
1934
+ {
1935
+ name: '',
1936
+ type: 'tuple[]',
1937
+ components: [
1938
+ {
1939
+ name: 'vaultId',
1940
+ type: 'uint256',
1941
+ },
1942
+ {
1943
+ name: 'asset',
1944
+ type: 'address',
1945
+ },
1946
+ ],
1947
+ },
1948
+ ],
1949
+ },
1950
+ {
1951
+ stateMutability: 'view',
1952
+ type: 'function',
1953
+ name: 'doesUndyLegoHaveAccess',
1954
+ inputs: [
1955
+ {
1956
+ name: '_wallet',
1957
+ type: 'address',
1958
+ },
1959
+ {
1960
+ name: '_legoAddr',
1961
+ type: 'address',
1962
+ },
1963
+ ],
1964
+ outputs: [
1965
+ {
1966
+ name: '',
1967
+ type: 'bool',
1968
+ },
1969
+ ],
1970
+ },
1971
+ {
1972
+ stateMutability: 'view',
1973
+ type: 'function',
1974
+ name: 'genConfig',
1975
+ inputs: [],
1976
+ outputs: [
1977
+ {
1978
+ name: '',
1979
+ type: 'tuple',
1980
+ components: [
1981
+ {
1982
+ name: 'perUserMaxVaults',
1983
+ type: 'uint256',
1984
+ },
1985
+ {
1986
+ name: 'perUserMaxAssetsPerVault',
1987
+ type: 'uint256',
1988
+ },
1989
+ {
1990
+ name: 'priceStaleTime',
1991
+ type: 'uint256',
1992
+ },
1993
+ {
1994
+ name: 'canDeposit',
1995
+ type: 'bool',
1996
+ },
1997
+ {
1998
+ name: 'canWithdraw',
1999
+ type: 'bool',
2000
+ },
2001
+ {
2002
+ name: 'canBorrow',
2003
+ type: 'bool',
2004
+ },
2005
+ {
2006
+ name: 'canRepay',
2007
+ type: 'bool',
2008
+ },
2009
+ {
2010
+ name: 'canClaimLoot',
2011
+ type: 'bool',
2012
+ },
2013
+ {
2014
+ name: 'canLiquidate',
2015
+ type: 'bool',
2016
+ },
2017
+ {
2018
+ name: 'canRedeemCollateral',
2019
+ type: 'bool',
2020
+ },
2021
+ {
2022
+ name: 'canRedeemInStabPool',
2023
+ type: 'bool',
2024
+ },
2025
+ {
2026
+ name: 'canBuyInAuction',
2027
+ type: 'bool',
2028
+ },
2029
+ {
2030
+ name: 'canClaimInStabPool',
2031
+ type: 'bool',
2032
+ },
2033
+ ],
2034
+ },
2035
+ ],
2036
+ },
2037
+ {
2038
+ stateMutability: 'view',
2039
+ type: 'function',
2040
+ name: 'genDebtConfig',
2041
+ inputs: [],
2042
+ outputs: [
2043
+ {
2044
+ name: '',
2045
+ type: 'tuple',
2046
+ components: [
2047
+ {
2048
+ name: 'perUserDebtLimit',
2049
+ type: 'uint256',
2050
+ },
2051
+ {
2052
+ name: 'globalDebtLimit',
2053
+ type: 'uint256',
2054
+ },
2055
+ {
2056
+ name: 'minDebtAmount',
2057
+ type: 'uint256',
2058
+ },
2059
+ {
2060
+ name: 'numAllowedBorrowers',
2061
+ type: 'uint256',
2062
+ },
2063
+ {
2064
+ name: 'maxBorrowPerInterval',
2065
+ type: 'uint256',
2066
+ },
2067
+ {
2068
+ name: 'numBlocksPerInterval',
2069
+ type: 'uint256',
2070
+ },
2071
+ {
2072
+ name: 'minDynamicRateBoost',
2073
+ type: 'uint256',
2074
+ },
2075
+ {
2076
+ name: 'maxDynamicRateBoost',
2077
+ type: 'uint256',
2078
+ },
2079
+ {
2080
+ name: 'increasePerDangerBlock',
2081
+ type: 'uint256',
2082
+ },
2083
+ {
2084
+ name: 'maxBorrowRate',
2085
+ type: 'uint256',
2086
+ },
2087
+ {
2088
+ name: 'maxLtvDeviation',
2089
+ type: 'uint256',
2090
+ },
2091
+ {
2092
+ name: 'keeperFeeRatio',
2093
+ type: 'uint256',
2094
+ },
2095
+ {
2096
+ name: 'minKeeperFee',
2097
+ type: 'uint256',
2098
+ },
2099
+ {
2100
+ name: 'maxKeeperFee',
2101
+ type: 'uint256',
2102
+ },
2103
+ {
2104
+ name: 'isDaowryEnabled',
2105
+ type: 'bool',
2106
+ },
2107
+ {
2108
+ name: 'ltvPaybackBuffer',
2109
+ type: 'uint256',
2110
+ },
2111
+ {
2112
+ name: 'genAuctionParams',
2113
+ type: 'tuple',
2114
+ components: [
2115
+ {
2116
+ name: 'hasParams',
2117
+ type: 'bool',
2118
+ },
2119
+ {
2120
+ name: 'startDiscount',
2121
+ type: 'uint256',
2122
+ },
2123
+ {
2124
+ name: 'maxDiscount',
2125
+ type: 'uint256',
2126
+ },
2127
+ {
2128
+ name: 'delay',
2129
+ type: 'uint256',
2130
+ },
2131
+ {
2132
+ name: 'duration',
2133
+ type: 'uint256',
2134
+ },
2135
+ ],
2136
+ },
2137
+ ],
2138
+ },
2139
+ ],
2140
+ },
2141
+ {
2142
+ stateMutability: 'view',
2143
+ type: 'function',
2144
+ name: 'hrConfig',
2145
+ inputs: [],
2146
+ outputs: [
2147
+ {
2148
+ name: '',
2149
+ type: 'tuple',
2150
+ components: [
2151
+ {
2152
+ name: 'contribTemplate',
2153
+ type: 'address',
2154
+ },
2155
+ {
2156
+ name: 'maxCompensation',
2157
+ type: 'uint256',
2158
+ },
2159
+ {
2160
+ name: 'minCliffLength',
2161
+ type: 'uint256',
2162
+ },
2163
+ {
2164
+ name: 'maxStartDelay',
2165
+ type: 'uint256',
2166
+ },
2167
+ {
2168
+ name: 'minVestingLength',
2169
+ type: 'uint256',
2170
+ },
2171
+ {
2172
+ name: 'maxVestingLength',
2173
+ type: 'uint256',
2174
+ },
2175
+ ],
2176
+ },
2177
+ ],
2178
+ },
2179
+ {
2180
+ stateMutability: 'view',
2181
+ type: 'function',
2182
+ name: 'ripeBondConfig',
2183
+ inputs: [],
2184
+ outputs: [
2185
+ {
2186
+ name: '',
2187
+ type: 'tuple',
2188
+ components: [
2189
+ {
2190
+ name: 'asset',
2191
+ type: 'address',
2192
+ },
2193
+ {
2194
+ name: 'amountPerEpoch',
2195
+ type: 'uint256',
2196
+ },
2197
+ {
2198
+ name: 'canBond',
2199
+ type: 'bool',
2200
+ },
2201
+ {
2202
+ name: 'minRipePerUnit',
2203
+ type: 'uint256',
2204
+ },
2205
+ {
2206
+ name: 'maxRipePerUnit',
2207
+ type: 'uint256',
2208
+ },
2209
+ {
2210
+ name: 'maxRipePerUnitLockBonus',
2211
+ type: 'uint256',
2212
+ },
2213
+ {
2214
+ name: 'epochLength',
2215
+ type: 'uint256',
2216
+ },
2217
+ {
2218
+ name: 'shouldAutoRestart',
2219
+ type: 'bool',
2220
+ },
2221
+ {
2222
+ name: 'restartDelayBlocks',
2223
+ type: 'uint256',
2224
+ },
2225
+ ],
2226
+ },
2227
+ ],
2228
+ },
2229
+ {
2230
+ stateMutability: 'view',
2231
+ type: 'function',
2232
+ name: 'assetConfig',
2233
+ inputs: [
2234
+ {
2235
+ name: 'arg0',
2236
+ type: 'address',
2237
+ },
2238
+ ],
2239
+ outputs: [
2240
+ {
2241
+ name: '',
2242
+ type: 'tuple',
2243
+ components: [
2244
+ {
2245
+ name: 'vaultIds',
2246
+ type: 'uint256[]',
2247
+ },
2248
+ {
2249
+ name: 'stakersPointsAlloc',
2250
+ type: 'uint256',
2251
+ },
2252
+ {
2253
+ name: 'voterPointsAlloc',
2254
+ type: 'uint256',
2255
+ },
2256
+ {
2257
+ name: 'perUserDepositLimit',
2258
+ type: 'uint256',
2259
+ },
2260
+ {
2261
+ name: 'globalDepositLimit',
2262
+ type: 'uint256',
2263
+ },
2264
+ {
2265
+ name: 'minDepositBalance',
2266
+ type: 'uint256',
2267
+ },
2268
+ {
2269
+ name: 'debtTerms',
2270
+ type: 'tuple',
2271
+ components: [
2272
+ {
2273
+ name: 'ltv',
2274
+ type: 'uint256',
2275
+ },
2276
+ {
2277
+ name: 'redemptionThreshold',
2278
+ type: 'uint256',
2279
+ },
2280
+ {
2281
+ name: 'liqThreshold',
2282
+ type: 'uint256',
2283
+ },
2284
+ {
2285
+ name: 'liqFee',
2286
+ type: 'uint256',
2287
+ },
2288
+ {
2289
+ name: 'borrowRate',
2290
+ type: 'uint256',
2291
+ },
2292
+ {
2293
+ name: 'daowry',
2294
+ type: 'uint256',
2295
+ },
2296
+ ],
2297
+ },
2298
+ {
2299
+ name: 'shouldBurnAsPayment',
2300
+ type: 'bool',
2301
+ },
2302
+ {
2303
+ name: 'shouldTransferToEndaoment',
2304
+ type: 'bool',
2305
+ },
2306
+ {
2307
+ name: 'shouldSwapInStabPools',
2308
+ type: 'bool',
2309
+ },
2310
+ {
2311
+ name: 'shouldAuctionInstantly',
2312
+ type: 'bool',
2313
+ },
2314
+ {
2315
+ name: 'canDeposit',
2316
+ type: 'bool',
2317
+ },
2318
+ {
2319
+ name: 'canWithdraw',
2320
+ type: 'bool',
2321
+ },
2322
+ {
2323
+ name: 'canRedeemCollateral',
2324
+ type: 'bool',
2325
+ },
2326
+ {
2327
+ name: 'canRedeemInStabPool',
2328
+ type: 'bool',
2329
+ },
2330
+ {
2331
+ name: 'canBuyInAuction',
2332
+ type: 'bool',
2333
+ },
2334
+ {
2335
+ name: 'canClaimInStabPool',
2336
+ type: 'bool',
2337
+ },
2338
+ {
2339
+ name: 'specialStabPoolId',
2340
+ type: 'uint256',
2341
+ },
2342
+ {
2343
+ name: 'customAuctionParams',
2344
+ type: 'tuple',
2345
+ components: [
2346
+ {
2347
+ name: 'hasParams',
2348
+ type: 'bool',
2349
+ },
2350
+ {
2351
+ name: 'startDiscount',
2352
+ type: 'uint256',
2353
+ },
2354
+ {
2355
+ name: 'maxDiscount',
2356
+ type: 'uint256',
2357
+ },
2358
+ {
2359
+ name: 'delay',
2360
+ type: 'uint256',
2361
+ },
2362
+ {
2363
+ name: 'duration',
2364
+ type: 'uint256',
2365
+ },
2366
+ ],
2367
+ },
2368
+ {
2369
+ name: 'whitelist',
2370
+ type: 'address',
2371
+ },
2372
+ {
2373
+ name: 'isNft',
2374
+ type: 'bool',
2375
+ },
2376
+ ],
2377
+ },
2378
+ ],
2379
+ },
2380
+ {
2381
+ stateMutability: 'view',
2382
+ type: 'function',
2383
+ name: 'assets',
2384
+ inputs: [
2385
+ {
2386
+ name: 'arg0',
2387
+ type: 'uint256',
2388
+ },
2389
+ ],
2390
+ outputs: [
2391
+ {
2392
+ name: '',
2393
+ type: 'address',
2394
+ },
2395
+ ],
2396
+ },
2397
+ {
2398
+ stateMutability: 'view',
2399
+ type: 'function',
2400
+ name: 'indexOfAsset',
2401
+ inputs: [
2402
+ {
2403
+ name: 'arg0',
2404
+ type: 'address',
2405
+ },
2406
+ ],
2407
+ outputs: [
2408
+ {
2409
+ name: '',
2410
+ type: 'uint256',
2411
+ },
2412
+ ],
2413
+ },
2414
+ {
2415
+ stateMutability: 'view',
2416
+ type: 'function',
2417
+ name: 'numAssets',
2418
+ inputs: [],
2419
+ outputs: [
2420
+ {
2421
+ name: '',
2422
+ type: 'uint256',
2423
+ },
2424
+ ],
2425
+ },
2426
+ {
2427
+ stateMutability: 'view',
2428
+ type: 'function',
2429
+ name: 'userConfig',
2430
+ inputs: [
2431
+ {
2432
+ name: 'arg0',
2433
+ type: 'address',
2434
+ },
2435
+ ],
2436
+ outputs: [
2437
+ {
2438
+ name: '',
2439
+ type: 'tuple',
2440
+ components: [
2441
+ {
2442
+ name: 'canAnyoneDeposit',
2443
+ type: 'bool',
2444
+ },
2445
+ {
2446
+ name: 'canAnyoneRepayDebt',
2447
+ type: 'bool',
2448
+ },
2449
+ {
2450
+ name: 'canAnyoneBondForUser',
2451
+ type: 'bool',
2452
+ },
2453
+ ],
2454
+ },
2455
+ ],
2456
+ },
2457
+ {
2458
+ stateMutability: 'view',
2459
+ type: 'function',
2460
+ name: 'userDelegation',
2461
+ inputs: [
2462
+ {
2463
+ name: 'arg0',
2464
+ type: 'address',
2465
+ },
2466
+ {
2467
+ name: 'arg1',
2468
+ type: 'address',
2469
+ },
2470
+ ],
2471
+ outputs: [
2472
+ {
2473
+ name: '',
2474
+ type: 'tuple',
2475
+ components: [
2476
+ {
2477
+ name: 'canWithdraw',
2478
+ type: 'bool',
2479
+ },
2480
+ {
2481
+ name: 'canBorrow',
2482
+ type: 'bool',
2483
+ },
2484
+ {
2485
+ name: 'canClaimFromStabPool',
2486
+ type: 'bool',
2487
+ },
2488
+ {
2489
+ name: 'canClaimLoot',
2490
+ type: 'bool',
2491
+ },
2492
+ ],
2493
+ },
2494
+ ],
2495
+ },
2496
+ {
2497
+ stateMutability: 'view',
2498
+ type: 'function',
2499
+ name: 'rewardsConfig',
2500
+ inputs: [],
2501
+ outputs: [
2502
+ {
2503
+ name: '',
2504
+ type: 'tuple',
2505
+ components: [
2506
+ {
2507
+ name: 'arePointsEnabled',
2508
+ type: 'bool',
2509
+ },
2510
+ {
2511
+ name: 'ripePerBlock',
2512
+ type: 'uint256',
2513
+ },
2514
+ {
2515
+ name: 'borrowersAlloc',
2516
+ type: 'uint256',
2517
+ },
2518
+ {
2519
+ name: 'stakersAlloc',
2520
+ type: 'uint256',
2521
+ },
2522
+ {
2523
+ name: 'votersAlloc',
2524
+ type: 'uint256',
2525
+ },
2526
+ {
2527
+ name: 'genDepositorsAlloc',
2528
+ type: 'uint256',
2529
+ },
2530
+ {
2531
+ name: 'autoStakeRatio',
2532
+ type: 'uint256',
2533
+ },
2534
+ {
2535
+ name: 'autoStakeDurationRatio',
2536
+ type: 'uint256',
2537
+ },
2538
+ {
2539
+ name: 'stabPoolRipePerDollarClaimed',
2540
+ type: 'uint256',
2541
+ },
2542
+ ],
2543
+ },
2544
+ ],
2545
+ },
2546
+ {
2547
+ stateMutability: 'view',
2548
+ type: 'function',
2549
+ name: 'totalPointsAllocs',
2550
+ inputs: [],
2551
+ outputs: [
2552
+ {
2553
+ name: '',
2554
+ type: 'tuple',
2555
+ components: [
2556
+ {
2557
+ name: 'stakersPointsAllocTotal',
2558
+ type: 'uint256',
2559
+ },
2560
+ {
2561
+ name: 'voterPointsAllocTotal',
2562
+ type: 'uint256',
2563
+ },
2564
+ ],
2565
+ },
2566
+ ],
2567
+ },
2568
+ {
2569
+ stateMutability: 'view',
2570
+ type: 'function',
2571
+ name: 'ripeGovVaultConfig',
2572
+ inputs: [
2573
+ {
2574
+ name: 'arg0',
2575
+ type: 'address',
2576
+ },
2577
+ ],
2578
+ outputs: [
2579
+ {
2580
+ name: '',
2581
+ type: 'tuple',
2582
+ components: [
2583
+ {
2584
+ name: 'lockTerms',
2585
+ type: 'tuple',
2586
+ components: [
2587
+ {
2588
+ name: 'minLockDuration',
2589
+ type: 'uint256',
2590
+ },
2591
+ {
2592
+ name: 'maxLockDuration',
2593
+ type: 'uint256',
2594
+ },
2595
+ {
2596
+ name: 'maxLockBoost',
2597
+ type: 'uint256',
2598
+ },
2599
+ {
2600
+ name: 'canExit',
2601
+ type: 'bool',
2602
+ },
2603
+ {
2604
+ name: 'exitFee',
2605
+ type: 'uint256',
2606
+ },
2607
+ ],
2608
+ },
2609
+ {
2610
+ name: 'assetWeight',
2611
+ type: 'uint256',
2612
+ },
2613
+ {
2614
+ name: 'shouldFreezeWhenBadDebt',
2615
+ type: 'bool',
2616
+ },
2617
+ ],
2618
+ },
2619
+ ],
2620
+ },
2621
+ {
2622
+ stateMutability: 'view',
2623
+ type: 'function',
2624
+ name: 'priorityLiqAssetVaults',
2625
+ inputs: [
2626
+ {
2627
+ name: 'arg0',
2628
+ type: 'uint256',
2629
+ },
2630
+ ],
2631
+ outputs: [
2632
+ {
2633
+ name: '',
2634
+ type: 'tuple',
2635
+ components: [
2636
+ {
2637
+ name: 'vaultId',
2638
+ type: 'uint256',
2639
+ },
2640
+ {
2641
+ name: 'asset',
2642
+ type: 'address',
2643
+ },
2644
+ ],
2645
+ },
2646
+ ],
2647
+ },
2648
+ {
2649
+ stateMutability: 'view',
2650
+ type: 'function',
2651
+ name: 'priorityStabVaults',
2652
+ inputs: [
2653
+ {
2654
+ name: 'arg0',
2655
+ type: 'uint256',
2656
+ },
2657
+ ],
2658
+ outputs: [
2659
+ {
2660
+ name: '',
2661
+ type: 'tuple',
2662
+ components: [
2663
+ {
2664
+ name: 'vaultId',
2665
+ type: 'uint256',
2666
+ },
2667
+ {
2668
+ name: 'asset',
2669
+ type: 'address',
2670
+ },
2671
+ ],
2672
+ },
2673
+ ],
2674
+ },
2675
+ {
2676
+ stateMutability: 'view',
2677
+ type: 'function',
2678
+ name: 'canPerformLiteAction',
2679
+ inputs: [
2680
+ {
2681
+ name: 'arg0',
2682
+ type: 'address',
2683
+ },
2684
+ ],
2685
+ outputs: [
2686
+ {
2687
+ name: '',
2688
+ type: 'bool',
2689
+ },
2690
+ ],
2691
+ },
2692
+ {
2693
+ stateMutability: 'view',
2694
+ type: 'function',
2695
+ name: 'priorityPriceSourceIds',
2696
+ inputs: [
2697
+ {
2698
+ name: 'arg0',
2699
+ type: 'uint256',
2700
+ },
2701
+ ],
2702
+ outputs: [
2703
+ {
2704
+ name: '',
2705
+ type: 'uint256',
2706
+ },
2707
+ ],
2708
+ },
2709
+ {
2710
+ stateMutability: 'view',
2711
+ type: 'function',
2712
+ name: 'underscoreRegistry',
2713
+ inputs: [],
2714
+ outputs: [
2715
+ {
2716
+ name: '',
2717
+ type: 'address',
2718
+ },
2719
+ ],
2720
+ },
2721
+ {
2722
+ stateMutability: 'view',
2723
+ type: 'function',
2724
+ name: 'trainingWheels',
2725
+ inputs: [],
2726
+ outputs: [
2727
+ {
2728
+ name: '',
2729
+ type: 'address',
2730
+ },
2731
+ ],
2732
+ },
2733
+ {
2734
+ stateMutability: 'view',
2735
+ type: 'function',
2736
+ name: 'shouldCheckLastTouch',
2737
+ inputs: [],
2738
+ outputs: [
2739
+ {
2740
+ name: '',
2741
+ type: 'bool',
2742
+ },
2743
+ ],
2744
+ },
2745
+ {
2746
+ stateMutability: 'nonpayable',
2747
+ type: 'constructor',
2748
+ inputs: [
2749
+ {
2750
+ name: '_ripeHq',
2751
+ type: 'address',
2752
+ },
2753
+ {
2754
+ name: '_defaults',
2755
+ type: 'address',
2756
+ },
2757
+ ],
2758
+ outputs: [],
2759
+ },
2760
+ ];
2761
+ export const deployAddress = '0xB59b84B526547b6dcb86CCF4004d48E619156CF3';
2762
+ function getRequest(method, args, contractAddressOrOptions) {
2763
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2764
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
2765
+ const call = {
2766
+ contractName: 'MissionControl',
2767
+ method,
2768
+ args,
2769
+ address,
2770
+ deployAddress,
2771
+ defaultValue,
2772
+ getAbi: () => abi,
2773
+ with: (options) => {
2774
+ call.address = options.contractAddress;
2775
+ call.defaultValue = options.defaultValue;
2776
+ return call;
2777
+ },
2778
+ defaultTo: (defaultValue) => {
2779
+ call.defaultValue = defaultValue;
2780
+ return call;
2781
+ },
2782
+ at: (address) => {
2783
+ call.address = address;
2784
+ return call;
2785
+ },
2786
+ };
2787
+ return call;
2788
+ }
2789
+ export const call = {
2790
+ getAddys: (...args) => getRequest('getAddys', args),
2791
+ getRipeHq: (...args) => getRequest('getRipeHq', args),
2792
+ canMintGreen: (...args) => getRequest('canMintGreen', args),
2793
+ canMintRipe: (...args) => getRequest('canMintRipe', args),
2794
+ isPaused: (...args) => getRequest('isPaused', args),
2795
+ isSupportedAsset: (...args) => getRequest('isSupportedAsset', args),
2796
+ isSupportedAssetInVault: (...args) => getRequest('isSupportedAssetInVault', args),
2797
+ getNumAssets: (...args) => getRequest('getNumAssets', args),
2798
+ getFirstVaultIdForAsset: (...args) => getRequest('getFirstVaultIdForAsset', args),
2799
+ getTellerDepositConfig: (...args) => getRequest('getTellerDepositConfig', args),
2800
+ getTellerWithdrawConfig: (...args) => getRequest('getTellerWithdrawConfig', args),
2801
+ getDebtTerms: (...args) => getRequest('getDebtTerms', args),
2802
+ getBorrowConfig: (...args) => getRequest('getBorrowConfig', args),
2803
+ maxLtvDeviation: (...args) => getRequest('maxLtvDeviation', args),
2804
+ getRepayConfig: (...args) => getRequest('getRepayConfig', args),
2805
+ getRedeemCollateralConfig: (...args) => getRequest('getRedeemCollateralConfig', args),
2806
+ getLtvPaybackBuffer: (...args) => getRequest('getLtvPaybackBuffer', args),
2807
+ getAuctionBuyConfig: (...args) => getRequest('getAuctionBuyConfig', args),
2808
+ getGenLiqConfig: (...args) => getRequest('getGenLiqConfig', args),
2809
+ getGenAuctionParams: (...args) => getRequest('getGenAuctionParams', args),
2810
+ getAssetLiqConfig: (...args) => getRequest('getAssetLiqConfig', args),
2811
+ getStabPoolClaimsConfig: (...args) => getRequest('getStabPoolClaimsConfig', args),
2812
+ getStabPoolRedemptionsConfig: (...args) => getRequest('getStabPoolRedemptionsConfig', args),
2813
+ getClaimLootConfig: (...args) => getRequest('getClaimLootConfig', args),
2814
+ getRewardsConfig: (...args) => getRequest('getRewardsConfig', args),
2815
+ getDepositPointsConfig: (...args) => getRequest('getDepositPointsConfig', args),
2816
+ getPriceConfig: (...args) => getRequest('getPriceConfig', args),
2817
+ getPurchaseRipeBondConfig: (...args) => getRequest('getPurchaseRipeBondConfig', args),
2818
+ getDynamicBorrowRateConfig: (...args) => getRequest('getDynamicBorrowRateConfig', args),
2819
+ getPriceStaleTime: (...args) => getRequest('getPriceStaleTime', args),
2820
+ getPriorityPriceSourceIds: (...args) => getRequest('getPriorityPriceSourceIds', args),
2821
+ getPriorityLiqAssetVaults: (...args) => getRequest('getPriorityLiqAssetVaults', args),
2822
+ getPriorityStabVaults: (...args) => getRequest('getPriorityStabVaults', args),
2823
+ doesUndyLegoHaveAccess: (...args) => getRequest('doesUndyLegoHaveAccess', args),
2824
+ genConfig: (...args) => getRequest('genConfig', args),
2825
+ genDebtConfig: (...args) => getRequest('genDebtConfig', args),
2826
+ hrConfig: (...args) => getRequest('hrConfig', args),
2827
+ ripeBondConfig: (...args) => getRequest('ripeBondConfig', args),
2828
+ assetConfig: (...args) => getRequest('assetConfig', args),
2829
+ assets: (...args) => getRequest('assets', args),
2830
+ indexOfAsset: (...args) => getRequest('indexOfAsset', args),
2831
+ numAssets: (...args) => getRequest('numAssets', args),
2832
+ userConfig: (...args) => getRequest('userConfig', args),
2833
+ userDelegation: (...args) => getRequest('userDelegation', args),
2834
+ rewardsConfig: (...args) => getRequest('rewardsConfig', args),
2835
+ totalPointsAllocs: (...args) => getRequest('totalPointsAllocs', args),
2836
+ ripeGovVaultConfig: (...args) => getRequest('ripeGovVaultConfig', args),
2837
+ priorityLiqAssetVaults: (...args) => getRequest('priorityLiqAssetVaults', args),
2838
+ priorityStabVaults: (...args) => getRequest('priorityStabVaults', args),
2839
+ canPerformLiteAction: (...args) => getRequest('canPerformLiteAction', args),
2840
+ priorityPriceSourceIds: (...args) => getRequest('priorityPriceSourceIds', args),
2841
+ underscoreRegistry: (...args) => getRequest('underscoreRegistry', args),
2842
+ trainingWheels: (...args) => getRequest('trainingWheels', args),
2843
+ shouldCheckLastTouch: (...args) => getRequest('shouldCheckLastTouch', args),
2844
+ };
2845
+ function getMutation(functionName) {
2846
+ return {
2847
+ contractName: 'MissionControl',
2848
+ functionName,
2849
+ deployAddress,
2850
+ argsType: undefined,
2851
+ getAbi: () => abi,
2852
+ };
2853
+ }
2854
+ export const mutation = {
2855
+ pause: getMutation('pause'),
2856
+ recoverFunds: getMutation('recoverFunds'),
2857
+ recoverFundsMany: getMutation('recoverFundsMany'),
2858
+ setGeneralConfig: getMutation('setGeneralConfig'),
2859
+ setGeneralDebtConfig: getMutation('setGeneralDebtConfig'),
2860
+ setHrConfig: getMutation('setHrConfig'),
2861
+ setRipeBondConfig: getMutation('setRipeBondConfig'),
2862
+ setAssetConfig: getMutation('setAssetConfig'),
2863
+ deregisterAsset: getMutation('deregisterAsset'),
2864
+ setUserConfig: getMutation('setUserConfig'),
2865
+ setUserDelegation: getMutation('setUserDelegation'),
2866
+ setRipeRewardsConfig: getMutation('setRipeRewardsConfig'),
2867
+ setRipeGovVaultConfig: getMutation('setRipeGovVaultConfig'),
2868
+ setPriorityLiqAssetVaults: getMutation('setPriorityLiqAssetVaults'),
2869
+ setPriorityStabVaults: getMutation('setPriorityStabVaults'),
2870
+ setCanPerformLiteAction: getMutation('setCanPerformLiteAction'),
2871
+ setTrainingWheels: getMutation('setTrainingWheels'),
2872
+ setUnderscoreRegistry: getMutation('setUnderscoreRegistry'),
2873
+ setPriorityPriceSourceIds: getMutation('setPriorityPriceSourceIds'),
2874
+ setShouldCheckLastTouch: getMutation('setShouldCheckLastTouch'),
2875
+ };
2876
+ export function toSdk(publicClient, walletClient) {
2877
+ return {
2878
+ deployAddress,
2879
+ abi,
2880
+ // Queries
2881
+ getAddys: (...args) => singleQuery(publicClient, call.getAddys(...args)),
2882
+ getRipeHq: (...args) => singleQuery(publicClient, call.getRipeHq(...args)),
2883
+ canMintGreen: (...args) => singleQuery(publicClient, call.canMintGreen(...args)),
2884
+ canMintRipe: (...args) => singleQuery(publicClient, call.canMintRipe(...args)),
2885
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
2886
+ isSupportedAsset: (...args) => singleQuery(publicClient, call.isSupportedAsset(...args)),
2887
+ isSupportedAssetInVault: (...args) => singleQuery(publicClient, call.isSupportedAssetInVault(...args)),
2888
+ getNumAssets: (...args) => singleQuery(publicClient, call.getNumAssets(...args)),
2889
+ getFirstVaultIdForAsset: (...args) => singleQuery(publicClient, call.getFirstVaultIdForAsset(...args)),
2890
+ getTellerDepositConfig: (...args) => singleQuery(publicClient, call.getTellerDepositConfig(...args)),
2891
+ getTellerWithdrawConfig: (...args) => singleQuery(publicClient, call.getTellerWithdrawConfig(...args)),
2892
+ getDebtTerms: (...args) => singleQuery(publicClient, call.getDebtTerms(...args)),
2893
+ getBorrowConfig: (...args) => singleQuery(publicClient, call.getBorrowConfig(...args)),
2894
+ maxLtvDeviation: (...args) => singleQuery(publicClient, call.maxLtvDeviation(...args)),
2895
+ getRepayConfig: (...args) => singleQuery(publicClient, call.getRepayConfig(...args)),
2896
+ getRedeemCollateralConfig: (...args) => singleQuery(publicClient, call.getRedeemCollateralConfig(...args)),
2897
+ getLtvPaybackBuffer: (...args) => singleQuery(publicClient, call.getLtvPaybackBuffer(...args)),
2898
+ getAuctionBuyConfig: (...args) => singleQuery(publicClient, call.getAuctionBuyConfig(...args)),
2899
+ getGenLiqConfig: (...args) => singleQuery(publicClient, call.getGenLiqConfig(...args)),
2900
+ getGenAuctionParams: (...args) => singleQuery(publicClient, call.getGenAuctionParams(...args)),
2901
+ getAssetLiqConfig: (...args) => singleQuery(publicClient, call.getAssetLiqConfig(...args)),
2902
+ getStabPoolClaimsConfig: (...args) => singleQuery(publicClient, call.getStabPoolClaimsConfig(...args)),
2903
+ getStabPoolRedemptionsConfig: (...args) => singleQuery(publicClient, call.getStabPoolRedemptionsConfig(...args)),
2904
+ getClaimLootConfig: (...args) => singleQuery(publicClient, call.getClaimLootConfig(...args)),
2905
+ getRewardsConfig: (...args) => singleQuery(publicClient, call.getRewardsConfig(...args)),
2906
+ getDepositPointsConfig: (...args) => singleQuery(publicClient, call.getDepositPointsConfig(...args)),
2907
+ getPriceConfig: (...args) => singleQuery(publicClient, call.getPriceConfig(...args)),
2908
+ getPurchaseRipeBondConfig: (...args) => singleQuery(publicClient, call.getPurchaseRipeBondConfig(...args)),
2909
+ getDynamicBorrowRateConfig: (...args) => singleQuery(publicClient, call.getDynamicBorrowRateConfig(...args)),
2910
+ getPriceStaleTime: (...args) => singleQuery(publicClient, call.getPriceStaleTime(...args)),
2911
+ getPriorityPriceSourceIds: (...args) => singleQuery(publicClient, call.getPriorityPriceSourceIds(...args)),
2912
+ getPriorityLiqAssetVaults: (...args) => singleQuery(publicClient, call.getPriorityLiqAssetVaults(...args)),
2913
+ getPriorityStabVaults: (...args) => singleQuery(publicClient, call.getPriorityStabVaults(...args)),
2914
+ doesUndyLegoHaveAccess: (...args) => singleQuery(publicClient, call.doesUndyLegoHaveAccess(...args)),
2915
+ genConfig: (...args) => singleQuery(publicClient, call.genConfig(...args)),
2916
+ genDebtConfig: (...args) => singleQuery(publicClient, call.genDebtConfig(...args)),
2917
+ hrConfig: (...args) => singleQuery(publicClient, call.hrConfig(...args)),
2918
+ ripeBondConfig: (...args) => singleQuery(publicClient, call.ripeBondConfig(...args)),
2919
+ assetConfig: (...args) => singleQuery(publicClient, call.assetConfig(...args)),
2920
+ assets: (...args) => singleQuery(publicClient, call.assets(...args)),
2921
+ indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
2922
+ numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args)),
2923
+ userConfig: (...args) => singleQuery(publicClient, call.userConfig(...args)),
2924
+ userDelegation: (...args) => singleQuery(publicClient, call.userDelegation(...args)),
2925
+ rewardsConfig: (...args) => singleQuery(publicClient, call.rewardsConfig(...args)),
2926
+ totalPointsAllocs: (...args) => singleQuery(publicClient, call.totalPointsAllocs(...args)),
2927
+ ripeGovVaultConfig: (...args) => singleQuery(publicClient, call.ripeGovVaultConfig(...args)),
2928
+ priorityLiqAssetVaults: (...args) => singleQuery(publicClient, call.priorityLiqAssetVaults(...args)),
2929
+ priorityStabVaults: (...args) => singleQuery(publicClient, call.priorityStabVaults(...args)),
2930
+ canPerformLiteAction: (...args) => singleQuery(publicClient, call.canPerformLiteAction(...args)),
2931
+ priorityPriceSourceIds: (...args) => singleQuery(publicClient, call.priorityPriceSourceIds(...args)),
2932
+ underscoreRegistry: (...args) => singleQuery(publicClient, call.underscoreRegistry(...args)),
2933
+ trainingWheels: (...args) => singleQuery(publicClient, call.trainingWheels(...args)),
2934
+ shouldCheckLastTouch: (...args) => singleQuery(publicClient, call.shouldCheckLastTouch(...args)),
2935
+ // Mutations
2936
+ pause: (...args) => mutate(walletClient, mutation.pause)(...args),
2937
+ recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
2938
+ recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
2939
+ setGeneralConfig: (...args) => mutate(walletClient, mutation.setGeneralConfig)(...args),
2940
+ setGeneralDebtConfig: (...args) => mutate(walletClient, mutation.setGeneralDebtConfig)(...args),
2941
+ setHrConfig: (...args) => mutate(walletClient, mutation.setHrConfig)(...args),
2942
+ setRipeBondConfig: (...args) => mutate(walletClient, mutation.setRipeBondConfig)(...args),
2943
+ setAssetConfig: (...args) => mutate(walletClient, mutation.setAssetConfig)(...args),
2944
+ deregisterAsset: (...args) => mutate(walletClient, mutation.deregisterAsset)(...args),
2945
+ setUserConfig: (...args) => mutate(walletClient, mutation.setUserConfig)(...args),
2946
+ setUserDelegation: (...args) => mutate(walletClient, mutation.setUserDelegation)(...args),
2947
+ setRipeRewardsConfig: (...args) => mutate(walletClient, mutation.setRipeRewardsConfig)(...args),
2948
+ setRipeGovVaultConfig: (...args) => mutate(walletClient, mutation.setRipeGovVaultConfig)(...args),
2949
+ setPriorityLiqAssetVaults: (...args) => mutate(walletClient, mutation.setPriorityLiqAssetVaults)(...args),
2950
+ setPriorityStabVaults: (...args) => mutate(walletClient, mutation.setPriorityStabVaults)(...args),
2951
+ setCanPerformLiteAction: (...args) => mutate(walletClient, mutation.setCanPerformLiteAction)(...args),
2952
+ setTrainingWheels: (...args) => mutate(walletClient, mutation.setTrainingWheels)(...args),
2953
+ setUnderscoreRegistry: (...args) => mutate(walletClient, mutation.setUnderscoreRegistry)(...args),
2954
+ setPriorityPriceSourceIds: (...args) => mutate(walletClient, mutation.setPriorityPriceSourceIds)(...args),
2955
+ setShouldCheckLastTouch: (...args) => mutate(walletClient, mutation.setShouldCheckLastTouch)(...args),
2956
+ };
2957
+ }