@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,3518 @@
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: 'TellerDeposit',
9
+ inputs: [
10
+ {
11
+ name: 'user',
12
+ type: 'address',
13
+ indexed: true,
14
+ },
15
+ {
16
+ name: 'depositor',
17
+ type: 'address',
18
+ indexed: true,
19
+ },
20
+ {
21
+ name: 'asset',
22
+ type: 'address',
23
+ indexed: true,
24
+ },
25
+ {
26
+ name: 'amount',
27
+ type: 'uint256',
28
+ indexed: false,
29
+ },
30
+ {
31
+ name: 'vaultAddr',
32
+ type: 'address',
33
+ indexed: false,
34
+ },
35
+ {
36
+ name: 'vaultId',
37
+ type: 'uint256',
38
+ indexed: false,
39
+ },
40
+ ],
41
+ anonymous: false,
42
+ type: 'event',
43
+ },
44
+ {
45
+ name: 'TellerWithdrawal',
46
+ inputs: [
47
+ {
48
+ name: 'user',
49
+ type: 'address',
50
+ indexed: true,
51
+ },
52
+ {
53
+ name: 'asset',
54
+ type: 'address',
55
+ indexed: true,
56
+ },
57
+ {
58
+ name: 'caller',
59
+ type: 'address',
60
+ indexed: true,
61
+ },
62
+ {
63
+ name: 'amount',
64
+ type: 'uint256',
65
+ indexed: false,
66
+ },
67
+ {
68
+ name: 'vaultAddr',
69
+ type: 'address',
70
+ indexed: false,
71
+ },
72
+ {
73
+ name: 'vaultId',
74
+ type: 'uint256',
75
+ indexed: false,
76
+ },
77
+ {
78
+ name: 'isDepleted',
79
+ type: 'bool',
80
+ indexed: false,
81
+ },
82
+ ],
83
+ anonymous: false,
84
+ type: 'event',
85
+ },
86
+ {
87
+ name: 'UserConfigSet',
88
+ inputs: [
89
+ {
90
+ name: 'user',
91
+ type: 'address',
92
+ indexed: true,
93
+ },
94
+ {
95
+ name: 'canAnyoneDeposit',
96
+ type: 'bool',
97
+ indexed: false,
98
+ },
99
+ {
100
+ name: 'canAnyoneRepayDebt',
101
+ type: 'bool',
102
+ indexed: false,
103
+ },
104
+ {
105
+ name: 'canAnyoneBondForUser',
106
+ type: 'bool',
107
+ indexed: false,
108
+ },
109
+ {
110
+ name: 'caller',
111
+ type: 'address',
112
+ indexed: true,
113
+ },
114
+ ],
115
+ anonymous: false,
116
+ type: 'event',
117
+ },
118
+ {
119
+ name: 'UserDelegationSet',
120
+ inputs: [
121
+ {
122
+ name: 'user',
123
+ type: 'address',
124
+ indexed: true,
125
+ },
126
+ {
127
+ name: 'delegate',
128
+ type: 'address',
129
+ indexed: true,
130
+ },
131
+ {
132
+ name: 'canWithdraw',
133
+ type: 'bool',
134
+ indexed: false,
135
+ },
136
+ {
137
+ name: 'canBorrow',
138
+ type: 'bool',
139
+ indexed: false,
140
+ },
141
+ {
142
+ name: 'canClaimFromStabPool',
143
+ type: 'bool',
144
+ indexed: false,
145
+ },
146
+ {
147
+ name: 'canClaimLoot',
148
+ type: 'bool',
149
+ indexed: false,
150
+ },
151
+ {
152
+ name: 'caller',
153
+ type: 'address',
154
+ indexed: true,
155
+ },
156
+ ],
157
+ anonymous: false,
158
+ type: 'event',
159
+ },
160
+ {
161
+ name: 'DepartmentPauseModified',
162
+ inputs: [
163
+ {
164
+ name: 'isPaused',
165
+ type: 'bool',
166
+ indexed: false,
167
+ },
168
+ ],
169
+ anonymous: false,
170
+ type: 'event',
171
+ },
172
+ {
173
+ name: 'DepartmentFundsRecovered',
174
+ inputs: [
175
+ {
176
+ name: 'asset',
177
+ type: 'address',
178
+ indexed: true,
179
+ },
180
+ {
181
+ name: 'recipient',
182
+ type: 'address',
183
+ indexed: true,
184
+ },
185
+ {
186
+ name: 'balance',
187
+ type: 'uint256',
188
+ indexed: false,
189
+ },
190
+ ],
191
+ anonymous: false,
192
+ type: 'event',
193
+ },
194
+ {
195
+ stateMutability: 'view',
196
+ type: 'function',
197
+ name: 'getAddys',
198
+ inputs: [],
199
+ outputs: [
200
+ {
201
+ name: '',
202
+ type: 'tuple',
203
+ components: [
204
+ {
205
+ name: 'hq',
206
+ type: 'address',
207
+ },
208
+ {
209
+ name: 'greenToken',
210
+ type: 'address',
211
+ },
212
+ {
213
+ name: 'savingsGreen',
214
+ type: 'address',
215
+ },
216
+ {
217
+ name: 'ripeToken',
218
+ type: 'address',
219
+ },
220
+ {
221
+ name: 'ledger',
222
+ type: 'address',
223
+ },
224
+ {
225
+ name: 'missionControl',
226
+ type: 'address',
227
+ },
228
+ {
229
+ name: 'switchboard',
230
+ type: 'address',
231
+ },
232
+ {
233
+ name: 'priceDesk',
234
+ type: 'address',
235
+ },
236
+ {
237
+ name: 'vaultBook',
238
+ type: 'address',
239
+ },
240
+ {
241
+ name: 'auctionHouse',
242
+ type: 'address',
243
+ },
244
+ {
245
+ name: 'auctionHouseNft',
246
+ type: 'address',
247
+ },
248
+ {
249
+ name: 'boardroom',
250
+ type: 'address',
251
+ },
252
+ {
253
+ name: 'bondRoom',
254
+ type: 'address',
255
+ },
256
+ {
257
+ name: 'creditEngine',
258
+ type: 'address',
259
+ },
260
+ {
261
+ name: 'endaoment',
262
+ type: 'address',
263
+ },
264
+ {
265
+ name: 'humanResources',
266
+ type: 'address',
267
+ },
268
+ {
269
+ name: 'lootbox',
270
+ type: 'address',
271
+ },
272
+ {
273
+ name: 'teller',
274
+ type: 'address',
275
+ },
276
+ ],
277
+ },
278
+ ],
279
+ },
280
+ {
281
+ stateMutability: 'view',
282
+ type: 'function',
283
+ name: 'getRipeHq',
284
+ inputs: [],
285
+ outputs: [
286
+ {
287
+ name: '',
288
+ type: 'address',
289
+ },
290
+ ],
291
+ },
292
+ {
293
+ stateMutability: 'view',
294
+ type: 'function',
295
+ name: 'canMintGreen',
296
+ inputs: [],
297
+ outputs: [
298
+ {
299
+ name: '',
300
+ type: 'bool',
301
+ },
302
+ ],
303
+ },
304
+ {
305
+ stateMutability: 'view',
306
+ type: 'function',
307
+ name: 'canMintRipe',
308
+ inputs: [],
309
+ outputs: [
310
+ {
311
+ name: '',
312
+ type: 'bool',
313
+ },
314
+ ],
315
+ },
316
+ {
317
+ stateMutability: 'nonpayable',
318
+ type: 'function',
319
+ name: 'pause',
320
+ inputs: [
321
+ {
322
+ name: '_shouldPause',
323
+ type: 'bool',
324
+ },
325
+ ],
326
+ outputs: [],
327
+ },
328
+ {
329
+ stateMutability: 'nonpayable',
330
+ type: 'function',
331
+ name: 'recoverFunds',
332
+ inputs: [
333
+ {
334
+ name: '_recipient',
335
+ type: 'address',
336
+ },
337
+ {
338
+ name: '_asset',
339
+ type: 'address',
340
+ },
341
+ ],
342
+ outputs: [],
343
+ },
344
+ {
345
+ stateMutability: 'nonpayable',
346
+ type: 'function',
347
+ name: 'recoverFundsMany',
348
+ inputs: [
349
+ {
350
+ name: '_recipient',
351
+ type: 'address',
352
+ },
353
+ {
354
+ name: '_assets',
355
+ type: 'address[]',
356
+ },
357
+ ],
358
+ outputs: [],
359
+ },
360
+ {
361
+ stateMutability: 'view',
362
+ type: 'function',
363
+ name: 'isPaused',
364
+ inputs: [],
365
+ outputs: [
366
+ {
367
+ name: '',
368
+ type: 'bool',
369
+ },
370
+ ],
371
+ },
372
+ {
373
+ stateMutability: 'nonpayable',
374
+ type: 'function',
375
+ name: 'deposit',
376
+ inputs: [
377
+ {
378
+ name: '_asset',
379
+ type: 'address',
380
+ },
381
+ ],
382
+ outputs: [
383
+ {
384
+ name: '',
385
+ type: 'uint256',
386
+ },
387
+ ],
388
+ },
389
+ {
390
+ stateMutability: 'nonpayable',
391
+ type: 'function',
392
+ name: 'deposit',
393
+ inputs: [
394
+ {
395
+ name: '_asset',
396
+ type: 'address',
397
+ },
398
+ {
399
+ name: '_amount',
400
+ type: 'uint256',
401
+ },
402
+ ],
403
+ outputs: [
404
+ {
405
+ name: '',
406
+ type: 'uint256',
407
+ },
408
+ ],
409
+ },
410
+ {
411
+ stateMutability: 'nonpayable',
412
+ type: 'function',
413
+ name: 'deposit',
414
+ inputs: [
415
+ {
416
+ name: '_asset',
417
+ type: 'address',
418
+ },
419
+ {
420
+ name: '_amount',
421
+ type: 'uint256',
422
+ },
423
+ {
424
+ name: '_user',
425
+ type: 'address',
426
+ },
427
+ ],
428
+ outputs: [
429
+ {
430
+ name: '',
431
+ type: 'uint256',
432
+ },
433
+ ],
434
+ },
435
+ {
436
+ stateMutability: 'nonpayable',
437
+ type: 'function',
438
+ name: 'deposit',
439
+ inputs: [
440
+ {
441
+ name: '_asset',
442
+ type: 'address',
443
+ },
444
+ {
445
+ name: '_amount',
446
+ type: 'uint256',
447
+ },
448
+ {
449
+ name: '_user',
450
+ type: 'address',
451
+ },
452
+ {
453
+ name: '_vaultAddr',
454
+ type: 'address',
455
+ },
456
+ ],
457
+ outputs: [
458
+ {
459
+ name: '',
460
+ type: 'uint256',
461
+ },
462
+ ],
463
+ },
464
+ {
465
+ stateMutability: 'nonpayable',
466
+ type: 'function',
467
+ name: 'deposit',
468
+ inputs: [
469
+ {
470
+ name: '_asset',
471
+ type: 'address',
472
+ },
473
+ {
474
+ name: '_amount',
475
+ type: 'uint256',
476
+ },
477
+ {
478
+ name: '_user',
479
+ type: 'address',
480
+ },
481
+ {
482
+ name: '_vaultAddr',
483
+ type: 'address',
484
+ },
485
+ {
486
+ name: '_vaultId',
487
+ type: 'uint256',
488
+ },
489
+ ],
490
+ outputs: [
491
+ {
492
+ name: '',
493
+ type: 'uint256',
494
+ },
495
+ ],
496
+ },
497
+ {
498
+ stateMutability: 'nonpayable',
499
+ type: 'function',
500
+ name: 'depositMany',
501
+ inputs: [
502
+ {
503
+ name: '_user',
504
+ type: 'address',
505
+ },
506
+ {
507
+ name: '_deposits',
508
+ type: 'tuple[]',
509
+ components: [
510
+ {
511
+ name: 'asset',
512
+ type: 'address',
513
+ },
514
+ {
515
+ name: 'amount',
516
+ type: 'uint256',
517
+ },
518
+ {
519
+ name: 'vaultAddr',
520
+ type: 'address',
521
+ },
522
+ {
523
+ name: 'vaultId',
524
+ type: 'uint256',
525
+ },
526
+ ],
527
+ },
528
+ ],
529
+ outputs: [
530
+ {
531
+ name: '',
532
+ type: 'uint256',
533
+ },
534
+ ],
535
+ },
536
+ {
537
+ stateMutability: 'nonpayable',
538
+ type: 'function',
539
+ name: 'depositFromTrusted',
540
+ inputs: [
541
+ {
542
+ name: '_user',
543
+ type: 'address',
544
+ },
545
+ {
546
+ name: '_vaultId',
547
+ type: 'uint256',
548
+ },
549
+ {
550
+ name: '_asset',
551
+ type: 'address',
552
+ },
553
+ {
554
+ name: '_amount',
555
+ type: 'uint256',
556
+ },
557
+ {
558
+ name: '_lockDuration',
559
+ type: 'uint256',
560
+ },
561
+ ],
562
+ outputs: [
563
+ {
564
+ name: '',
565
+ type: 'uint256',
566
+ },
567
+ ],
568
+ },
569
+ {
570
+ stateMutability: 'nonpayable',
571
+ type: 'function',
572
+ name: 'depositFromTrusted',
573
+ inputs: [
574
+ {
575
+ name: '_user',
576
+ type: 'address',
577
+ },
578
+ {
579
+ name: '_vaultId',
580
+ type: 'uint256',
581
+ },
582
+ {
583
+ name: '_asset',
584
+ type: 'address',
585
+ },
586
+ {
587
+ name: '_amount',
588
+ type: 'uint256',
589
+ },
590
+ {
591
+ name: '_lockDuration',
592
+ type: 'uint256',
593
+ },
594
+ {
595
+ name: '_a',
596
+ type: 'tuple',
597
+ components: [
598
+ {
599
+ name: 'hq',
600
+ type: 'address',
601
+ },
602
+ {
603
+ name: 'greenToken',
604
+ type: 'address',
605
+ },
606
+ {
607
+ name: 'savingsGreen',
608
+ type: 'address',
609
+ },
610
+ {
611
+ name: 'ripeToken',
612
+ type: 'address',
613
+ },
614
+ {
615
+ name: 'ledger',
616
+ type: 'address',
617
+ },
618
+ {
619
+ name: 'missionControl',
620
+ type: 'address',
621
+ },
622
+ {
623
+ name: 'switchboard',
624
+ type: 'address',
625
+ },
626
+ {
627
+ name: 'priceDesk',
628
+ type: 'address',
629
+ },
630
+ {
631
+ name: 'vaultBook',
632
+ type: 'address',
633
+ },
634
+ {
635
+ name: 'auctionHouse',
636
+ type: 'address',
637
+ },
638
+ {
639
+ name: 'auctionHouseNft',
640
+ type: 'address',
641
+ },
642
+ {
643
+ name: 'boardroom',
644
+ type: 'address',
645
+ },
646
+ {
647
+ name: 'bondRoom',
648
+ type: 'address',
649
+ },
650
+ {
651
+ name: 'creditEngine',
652
+ type: 'address',
653
+ },
654
+ {
655
+ name: 'endaoment',
656
+ type: 'address',
657
+ },
658
+ {
659
+ name: 'humanResources',
660
+ type: 'address',
661
+ },
662
+ {
663
+ name: 'lootbox',
664
+ type: 'address',
665
+ },
666
+ {
667
+ name: 'teller',
668
+ type: 'address',
669
+ },
670
+ ],
671
+ },
672
+ ],
673
+ outputs: [
674
+ {
675
+ name: '',
676
+ type: 'uint256',
677
+ },
678
+ ],
679
+ },
680
+ {
681
+ stateMutability: 'nonpayable',
682
+ type: 'function',
683
+ name: 'withdraw',
684
+ inputs: [
685
+ {
686
+ name: '_asset',
687
+ type: 'address',
688
+ },
689
+ ],
690
+ outputs: [
691
+ {
692
+ name: '',
693
+ type: 'uint256',
694
+ },
695
+ ],
696
+ },
697
+ {
698
+ stateMutability: 'nonpayable',
699
+ type: 'function',
700
+ name: 'withdraw',
701
+ inputs: [
702
+ {
703
+ name: '_asset',
704
+ type: 'address',
705
+ },
706
+ {
707
+ name: '_amount',
708
+ type: 'uint256',
709
+ },
710
+ ],
711
+ outputs: [
712
+ {
713
+ name: '',
714
+ type: 'uint256',
715
+ },
716
+ ],
717
+ },
718
+ {
719
+ stateMutability: 'nonpayable',
720
+ type: 'function',
721
+ name: 'withdraw',
722
+ inputs: [
723
+ {
724
+ name: '_asset',
725
+ type: 'address',
726
+ },
727
+ {
728
+ name: '_amount',
729
+ type: 'uint256',
730
+ },
731
+ {
732
+ name: '_user',
733
+ type: 'address',
734
+ },
735
+ ],
736
+ outputs: [
737
+ {
738
+ name: '',
739
+ type: 'uint256',
740
+ },
741
+ ],
742
+ },
743
+ {
744
+ stateMutability: 'nonpayable',
745
+ type: 'function',
746
+ name: 'withdraw',
747
+ inputs: [
748
+ {
749
+ name: '_asset',
750
+ type: 'address',
751
+ },
752
+ {
753
+ name: '_amount',
754
+ type: 'uint256',
755
+ },
756
+ {
757
+ name: '_user',
758
+ type: 'address',
759
+ },
760
+ {
761
+ name: '_vaultAddr',
762
+ type: 'address',
763
+ },
764
+ ],
765
+ outputs: [
766
+ {
767
+ name: '',
768
+ type: 'uint256',
769
+ },
770
+ ],
771
+ },
772
+ {
773
+ stateMutability: 'nonpayable',
774
+ type: 'function',
775
+ name: 'withdraw',
776
+ inputs: [
777
+ {
778
+ name: '_asset',
779
+ type: 'address',
780
+ },
781
+ {
782
+ name: '_amount',
783
+ type: 'uint256',
784
+ },
785
+ {
786
+ name: '_user',
787
+ type: 'address',
788
+ },
789
+ {
790
+ name: '_vaultAddr',
791
+ type: 'address',
792
+ },
793
+ {
794
+ name: '_vaultId',
795
+ type: 'uint256',
796
+ },
797
+ ],
798
+ outputs: [
799
+ {
800
+ name: '',
801
+ type: 'uint256',
802
+ },
803
+ ],
804
+ },
805
+ {
806
+ stateMutability: 'nonpayable',
807
+ type: 'function',
808
+ name: 'withdrawMany',
809
+ inputs: [
810
+ {
811
+ name: '_user',
812
+ type: 'address',
813
+ },
814
+ {
815
+ name: '_withdrawals',
816
+ type: 'tuple[]',
817
+ components: [
818
+ {
819
+ name: 'asset',
820
+ type: 'address',
821
+ },
822
+ {
823
+ name: 'amount',
824
+ type: 'uint256',
825
+ },
826
+ {
827
+ name: 'vaultAddr',
828
+ type: 'address',
829
+ },
830
+ {
831
+ name: 'vaultId',
832
+ type: 'uint256',
833
+ },
834
+ ],
835
+ },
836
+ ],
837
+ outputs: [
838
+ {
839
+ name: '',
840
+ type: 'uint256',
841
+ },
842
+ ],
843
+ },
844
+ {
845
+ stateMutability: 'nonpayable',
846
+ type: 'function',
847
+ name: 'borrow',
848
+ inputs: [],
849
+ outputs: [
850
+ {
851
+ name: '',
852
+ type: 'uint256',
853
+ },
854
+ ],
855
+ },
856
+ {
857
+ stateMutability: 'nonpayable',
858
+ type: 'function',
859
+ name: 'borrow',
860
+ inputs: [
861
+ {
862
+ name: '_greenAmount',
863
+ type: 'uint256',
864
+ },
865
+ ],
866
+ outputs: [
867
+ {
868
+ name: '',
869
+ type: 'uint256',
870
+ },
871
+ ],
872
+ },
873
+ {
874
+ stateMutability: 'nonpayable',
875
+ type: 'function',
876
+ name: 'borrow',
877
+ inputs: [
878
+ {
879
+ name: '_greenAmount',
880
+ type: 'uint256',
881
+ },
882
+ {
883
+ name: '_user',
884
+ type: 'address',
885
+ },
886
+ ],
887
+ outputs: [
888
+ {
889
+ name: '',
890
+ type: 'uint256',
891
+ },
892
+ ],
893
+ },
894
+ {
895
+ stateMutability: 'nonpayable',
896
+ type: 'function',
897
+ name: 'borrow',
898
+ inputs: [
899
+ {
900
+ name: '_greenAmount',
901
+ type: 'uint256',
902
+ },
903
+ {
904
+ name: '_user',
905
+ type: 'address',
906
+ },
907
+ {
908
+ name: '_wantsSavingsGreen',
909
+ type: 'bool',
910
+ },
911
+ ],
912
+ outputs: [
913
+ {
914
+ name: '',
915
+ type: 'uint256',
916
+ },
917
+ ],
918
+ },
919
+ {
920
+ stateMutability: 'nonpayable',
921
+ type: 'function',
922
+ name: 'borrow',
923
+ inputs: [
924
+ {
925
+ name: '_greenAmount',
926
+ type: 'uint256',
927
+ },
928
+ {
929
+ name: '_user',
930
+ type: 'address',
931
+ },
932
+ {
933
+ name: '_wantsSavingsGreen',
934
+ type: 'bool',
935
+ },
936
+ {
937
+ name: '_shouldEnterStabPool',
938
+ type: 'bool',
939
+ },
940
+ ],
941
+ outputs: [
942
+ {
943
+ name: '',
944
+ type: 'uint256',
945
+ },
946
+ ],
947
+ },
948
+ {
949
+ stateMutability: 'nonpayable',
950
+ type: 'function',
951
+ name: 'repay',
952
+ inputs: [],
953
+ outputs: [
954
+ {
955
+ name: '',
956
+ type: 'bool',
957
+ },
958
+ ],
959
+ },
960
+ {
961
+ stateMutability: 'nonpayable',
962
+ type: 'function',
963
+ name: 'repay',
964
+ inputs: [
965
+ {
966
+ name: '_paymentAmount',
967
+ type: 'uint256',
968
+ },
969
+ ],
970
+ outputs: [
971
+ {
972
+ name: '',
973
+ type: 'bool',
974
+ },
975
+ ],
976
+ },
977
+ {
978
+ stateMutability: 'nonpayable',
979
+ type: 'function',
980
+ name: 'repay',
981
+ inputs: [
982
+ {
983
+ name: '_paymentAmount',
984
+ type: 'uint256',
985
+ },
986
+ {
987
+ name: '_user',
988
+ type: 'address',
989
+ },
990
+ ],
991
+ outputs: [
992
+ {
993
+ name: '',
994
+ type: 'bool',
995
+ },
996
+ ],
997
+ },
998
+ {
999
+ stateMutability: 'nonpayable',
1000
+ type: 'function',
1001
+ name: 'repay',
1002
+ inputs: [
1003
+ {
1004
+ name: '_paymentAmount',
1005
+ type: 'uint256',
1006
+ },
1007
+ {
1008
+ name: '_user',
1009
+ type: 'address',
1010
+ },
1011
+ {
1012
+ name: '_isPaymentSavingsGreen',
1013
+ type: 'bool',
1014
+ },
1015
+ ],
1016
+ outputs: [
1017
+ {
1018
+ name: '',
1019
+ type: 'bool',
1020
+ },
1021
+ ],
1022
+ },
1023
+ {
1024
+ stateMutability: 'nonpayable',
1025
+ type: 'function',
1026
+ name: 'repay',
1027
+ inputs: [
1028
+ {
1029
+ name: '_paymentAmount',
1030
+ type: 'uint256',
1031
+ },
1032
+ {
1033
+ name: '_user',
1034
+ type: 'address',
1035
+ },
1036
+ {
1037
+ name: '_isPaymentSavingsGreen',
1038
+ type: 'bool',
1039
+ },
1040
+ {
1041
+ name: '_shouldRefundSavingsGreen',
1042
+ type: 'bool',
1043
+ },
1044
+ ],
1045
+ outputs: [
1046
+ {
1047
+ name: '',
1048
+ type: 'bool',
1049
+ },
1050
+ ],
1051
+ },
1052
+ {
1053
+ stateMutability: 'nonpayable',
1054
+ type: 'function',
1055
+ name: 'redeemCollateral',
1056
+ inputs: [
1057
+ {
1058
+ name: '_user',
1059
+ type: 'address',
1060
+ },
1061
+ {
1062
+ name: '_vaultId',
1063
+ type: 'uint256',
1064
+ },
1065
+ {
1066
+ name: '_asset',
1067
+ type: 'address',
1068
+ },
1069
+ ],
1070
+ outputs: [
1071
+ {
1072
+ name: '',
1073
+ type: 'uint256',
1074
+ },
1075
+ ],
1076
+ },
1077
+ {
1078
+ stateMutability: 'nonpayable',
1079
+ type: 'function',
1080
+ name: 'redeemCollateral',
1081
+ inputs: [
1082
+ {
1083
+ name: '_user',
1084
+ type: 'address',
1085
+ },
1086
+ {
1087
+ name: '_vaultId',
1088
+ type: 'uint256',
1089
+ },
1090
+ {
1091
+ name: '_asset',
1092
+ type: 'address',
1093
+ },
1094
+ {
1095
+ name: '_paymentAmount',
1096
+ type: 'uint256',
1097
+ },
1098
+ ],
1099
+ outputs: [
1100
+ {
1101
+ name: '',
1102
+ type: 'uint256',
1103
+ },
1104
+ ],
1105
+ },
1106
+ {
1107
+ stateMutability: 'nonpayable',
1108
+ type: 'function',
1109
+ name: 'redeemCollateral',
1110
+ inputs: [
1111
+ {
1112
+ name: '_user',
1113
+ type: 'address',
1114
+ },
1115
+ {
1116
+ name: '_vaultId',
1117
+ type: 'uint256',
1118
+ },
1119
+ {
1120
+ name: '_asset',
1121
+ type: 'address',
1122
+ },
1123
+ {
1124
+ name: '_paymentAmount',
1125
+ type: 'uint256',
1126
+ },
1127
+ {
1128
+ name: '_isPaymentSavingsGreen',
1129
+ type: 'bool',
1130
+ },
1131
+ ],
1132
+ outputs: [
1133
+ {
1134
+ name: '',
1135
+ type: 'uint256',
1136
+ },
1137
+ ],
1138
+ },
1139
+ {
1140
+ stateMutability: 'nonpayable',
1141
+ type: 'function',
1142
+ name: 'redeemCollateral',
1143
+ inputs: [
1144
+ {
1145
+ name: '_user',
1146
+ type: 'address',
1147
+ },
1148
+ {
1149
+ name: '_vaultId',
1150
+ type: 'uint256',
1151
+ },
1152
+ {
1153
+ name: '_asset',
1154
+ type: 'address',
1155
+ },
1156
+ {
1157
+ name: '_paymentAmount',
1158
+ type: 'uint256',
1159
+ },
1160
+ {
1161
+ name: '_isPaymentSavingsGreen',
1162
+ type: 'bool',
1163
+ },
1164
+ {
1165
+ name: '_shouldTransferBalance',
1166
+ type: 'bool',
1167
+ },
1168
+ ],
1169
+ outputs: [
1170
+ {
1171
+ name: '',
1172
+ type: 'uint256',
1173
+ },
1174
+ ],
1175
+ },
1176
+ {
1177
+ stateMutability: 'nonpayable',
1178
+ type: 'function',
1179
+ name: 'redeemCollateral',
1180
+ inputs: [
1181
+ {
1182
+ name: '_user',
1183
+ type: 'address',
1184
+ },
1185
+ {
1186
+ name: '_vaultId',
1187
+ type: 'uint256',
1188
+ },
1189
+ {
1190
+ name: '_asset',
1191
+ type: 'address',
1192
+ },
1193
+ {
1194
+ name: '_paymentAmount',
1195
+ type: 'uint256',
1196
+ },
1197
+ {
1198
+ name: '_isPaymentSavingsGreen',
1199
+ type: 'bool',
1200
+ },
1201
+ {
1202
+ name: '_shouldTransferBalance',
1203
+ type: 'bool',
1204
+ },
1205
+ {
1206
+ name: '_shouldRefundSavingsGreen',
1207
+ type: 'bool',
1208
+ },
1209
+ ],
1210
+ outputs: [
1211
+ {
1212
+ name: '',
1213
+ type: 'uint256',
1214
+ },
1215
+ ],
1216
+ },
1217
+ {
1218
+ stateMutability: 'nonpayable',
1219
+ type: 'function',
1220
+ name: 'redeemCollateral',
1221
+ inputs: [
1222
+ {
1223
+ name: '_user',
1224
+ type: 'address',
1225
+ },
1226
+ {
1227
+ name: '_vaultId',
1228
+ type: 'uint256',
1229
+ },
1230
+ {
1231
+ name: '_asset',
1232
+ type: 'address',
1233
+ },
1234
+ {
1235
+ name: '_paymentAmount',
1236
+ type: 'uint256',
1237
+ },
1238
+ {
1239
+ name: '_isPaymentSavingsGreen',
1240
+ type: 'bool',
1241
+ },
1242
+ {
1243
+ name: '_shouldTransferBalance',
1244
+ type: 'bool',
1245
+ },
1246
+ {
1247
+ name: '_shouldRefundSavingsGreen',
1248
+ type: 'bool',
1249
+ },
1250
+ {
1251
+ name: '_recipient',
1252
+ type: 'address',
1253
+ },
1254
+ ],
1255
+ outputs: [
1256
+ {
1257
+ name: '',
1258
+ type: 'uint256',
1259
+ },
1260
+ ],
1261
+ },
1262
+ {
1263
+ stateMutability: 'nonpayable',
1264
+ type: 'function',
1265
+ name: 'redeemCollateralFromMany',
1266
+ inputs: [
1267
+ {
1268
+ name: '_redemptions',
1269
+ type: 'tuple[]',
1270
+ components: [
1271
+ {
1272
+ name: 'user',
1273
+ type: 'address',
1274
+ },
1275
+ {
1276
+ name: 'vaultId',
1277
+ type: 'uint256',
1278
+ },
1279
+ {
1280
+ name: 'asset',
1281
+ type: 'address',
1282
+ },
1283
+ {
1284
+ name: 'maxGreenAmount',
1285
+ type: 'uint256',
1286
+ },
1287
+ ],
1288
+ },
1289
+ ],
1290
+ outputs: [
1291
+ {
1292
+ name: '',
1293
+ type: 'uint256',
1294
+ },
1295
+ ],
1296
+ },
1297
+ {
1298
+ stateMutability: 'nonpayable',
1299
+ type: 'function',
1300
+ name: 'redeemCollateralFromMany',
1301
+ inputs: [
1302
+ {
1303
+ name: '_redemptions',
1304
+ type: 'tuple[]',
1305
+ components: [
1306
+ {
1307
+ name: 'user',
1308
+ type: 'address',
1309
+ },
1310
+ {
1311
+ name: 'vaultId',
1312
+ type: 'uint256',
1313
+ },
1314
+ {
1315
+ name: 'asset',
1316
+ type: 'address',
1317
+ },
1318
+ {
1319
+ name: 'maxGreenAmount',
1320
+ type: 'uint256',
1321
+ },
1322
+ ],
1323
+ },
1324
+ {
1325
+ name: '_paymentAmount',
1326
+ type: 'uint256',
1327
+ },
1328
+ ],
1329
+ outputs: [
1330
+ {
1331
+ name: '',
1332
+ type: 'uint256',
1333
+ },
1334
+ ],
1335
+ },
1336
+ {
1337
+ stateMutability: 'nonpayable',
1338
+ type: 'function',
1339
+ name: 'redeemCollateralFromMany',
1340
+ inputs: [
1341
+ {
1342
+ name: '_redemptions',
1343
+ type: 'tuple[]',
1344
+ components: [
1345
+ {
1346
+ name: 'user',
1347
+ type: 'address',
1348
+ },
1349
+ {
1350
+ name: 'vaultId',
1351
+ type: 'uint256',
1352
+ },
1353
+ {
1354
+ name: 'asset',
1355
+ type: 'address',
1356
+ },
1357
+ {
1358
+ name: 'maxGreenAmount',
1359
+ type: 'uint256',
1360
+ },
1361
+ ],
1362
+ },
1363
+ {
1364
+ name: '_paymentAmount',
1365
+ type: 'uint256',
1366
+ },
1367
+ {
1368
+ name: '_isPaymentSavingsGreen',
1369
+ type: 'bool',
1370
+ },
1371
+ ],
1372
+ outputs: [
1373
+ {
1374
+ name: '',
1375
+ type: 'uint256',
1376
+ },
1377
+ ],
1378
+ },
1379
+ {
1380
+ stateMutability: 'nonpayable',
1381
+ type: 'function',
1382
+ name: 'redeemCollateralFromMany',
1383
+ inputs: [
1384
+ {
1385
+ name: '_redemptions',
1386
+ type: 'tuple[]',
1387
+ components: [
1388
+ {
1389
+ name: 'user',
1390
+ type: 'address',
1391
+ },
1392
+ {
1393
+ name: 'vaultId',
1394
+ type: 'uint256',
1395
+ },
1396
+ {
1397
+ name: 'asset',
1398
+ type: 'address',
1399
+ },
1400
+ {
1401
+ name: 'maxGreenAmount',
1402
+ type: 'uint256',
1403
+ },
1404
+ ],
1405
+ },
1406
+ {
1407
+ name: '_paymentAmount',
1408
+ type: 'uint256',
1409
+ },
1410
+ {
1411
+ name: '_isPaymentSavingsGreen',
1412
+ type: 'bool',
1413
+ },
1414
+ {
1415
+ name: '_shouldTransferBalance',
1416
+ type: 'bool',
1417
+ },
1418
+ ],
1419
+ outputs: [
1420
+ {
1421
+ name: '',
1422
+ type: 'uint256',
1423
+ },
1424
+ ],
1425
+ },
1426
+ {
1427
+ stateMutability: 'nonpayable',
1428
+ type: 'function',
1429
+ name: 'redeemCollateralFromMany',
1430
+ inputs: [
1431
+ {
1432
+ name: '_redemptions',
1433
+ type: 'tuple[]',
1434
+ components: [
1435
+ {
1436
+ name: 'user',
1437
+ type: 'address',
1438
+ },
1439
+ {
1440
+ name: 'vaultId',
1441
+ type: 'uint256',
1442
+ },
1443
+ {
1444
+ name: 'asset',
1445
+ type: 'address',
1446
+ },
1447
+ {
1448
+ name: 'maxGreenAmount',
1449
+ type: 'uint256',
1450
+ },
1451
+ ],
1452
+ },
1453
+ {
1454
+ name: '_paymentAmount',
1455
+ type: 'uint256',
1456
+ },
1457
+ {
1458
+ name: '_isPaymentSavingsGreen',
1459
+ type: 'bool',
1460
+ },
1461
+ {
1462
+ name: '_shouldTransferBalance',
1463
+ type: 'bool',
1464
+ },
1465
+ {
1466
+ name: '_shouldRefundSavingsGreen',
1467
+ type: 'bool',
1468
+ },
1469
+ ],
1470
+ outputs: [
1471
+ {
1472
+ name: '',
1473
+ type: 'uint256',
1474
+ },
1475
+ ],
1476
+ },
1477
+ {
1478
+ stateMutability: 'nonpayable',
1479
+ type: 'function',
1480
+ name: 'redeemCollateralFromMany',
1481
+ inputs: [
1482
+ {
1483
+ name: '_redemptions',
1484
+ type: 'tuple[]',
1485
+ components: [
1486
+ {
1487
+ name: 'user',
1488
+ type: 'address',
1489
+ },
1490
+ {
1491
+ name: 'vaultId',
1492
+ type: 'uint256',
1493
+ },
1494
+ {
1495
+ name: 'asset',
1496
+ type: 'address',
1497
+ },
1498
+ {
1499
+ name: 'maxGreenAmount',
1500
+ type: 'uint256',
1501
+ },
1502
+ ],
1503
+ },
1504
+ {
1505
+ name: '_paymentAmount',
1506
+ type: 'uint256',
1507
+ },
1508
+ {
1509
+ name: '_isPaymentSavingsGreen',
1510
+ type: 'bool',
1511
+ },
1512
+ {
1513
+ name: '_shouldTransferBalance',
1514
+ type: 'bool',
1515
+ },
1516
+ {
1517
+ name: '_shouldRefundSavingsGreen',
1518
+ type: 'bool',
1519
+ },
1520
+ {
1521
+ name: '_recipient',
1522
+ type: 'address',
1523
+ },
1524
+ ],
1525
+ outputs: [
1526
+ {
1527
+ name: '',
1528
+ type: 'uint256',
1529
+ },
1530
+ ],
1531
+ },
1532
+ {
1533
+ stateMutability: 'nonpayable',
1534
+ type: 'function',
1535
+ name: 'liquidateUser',
1536
+ inputs: [
1537
+ {
1538
+ name: '_liqUser',
1539
+ type: 'address',
1540
+ },
1541
+ ],
1542
+ outputs: [
1543
+ {
1544
+ name: '',
1545
+ type: 'uint256',
1546
+ },
1547
+ ],
1548
+ },
1549
+ {
1550
+ stateMutability: 'nonpayable',
1551
+ type: 'function',
1552
+ name: 'liquidateUser',
1553
+ inputs: [
1554
+ {
1555
+ name: '_liqUser',
1556
+ type: 'address',
1557
+ },
1558
+ {
1559
+ name: '_wantsSavingsGreen',
1560
+ type: 'bool',
1561
+ },
1562
+ ],
1563
+ outputs: [
1564
+ {
1565
+ name: '',
1566
+ type: 'uint256',
1567
+ },
1568
+ ],
1569
+ },
1570
+ {
1571
+ stateMutability: 'nonpayable',
1572
+ type: 'function',
1573
+ name: 'liquidateManyUsers',
1574
+ inputs: [
1575
+ {
1576
+ name: '_liqUsers',
1577
+ type: 'address[]',
1578
+ },
1579
+ ],
1580
+ outputs: [
1581
+ {
1582
+ name: '',
1583
+ type: 'uint256',
1584
+ },
1585
+ ],
1586
+ },
1587
+ {
1588
+ stateMutability: 'nonpayable',
1589
+ type: 'function',
1590
+ name: 'liquidateManyUsers',
1591
+ inputs: [
1592
+ {
1593
+ name: '_liqUsers',
1594
+ type: 'address[]',
1595
+ },
1596
+ {
1597
+ name: '_wantsSavingsGreen',
1598
+ type: 'bool',
1599
+ },
1600
+ ],
1601
+ outputs: [
1602
+ {
1603
+ name: '',
1604
+ type: 'uint256',
1605
+ },
1606
+ ],
1607
+ },
1608
+ {
1609
+ stateMutability: 'nonpayable',
1610
+ type: 'function',
1611
+ name: 'buyFungibleAuction',
1612
+ inputs: [
1613
+ {
1614
+ name: '_liqUser',
1615
+ type: 'address',
1616
+ },
1617
+ {
1618
+ name: '_vaultId',
1619
+ type: 'uint256',
1620
+ },
1621
+ {
1622
+ name: '_asset',
1623
+ type: 'address',
1624
+ },
1625
+ ],
1626
+ outputs: [
1627
+ {
1628
+ name: '',
1629
+ type: 'uint256',
1630
+ },
1631
+ ],
1632
+ },
1633
+ {
1634
+ stateMutability: 'nonpayable',
1635
+ type: 'function',
1636
+ name: 'buyFungibleAuction',
1637
+ inputs: [
1638
+ {
1639
+ name: '_liqUser',
1640
+ type: 'address',
1641
+ },
1642
+ {
1643
+ name: '_vaultId',
1644
+ type: 'uint256',
1645
+ },
1646
+ {
1647
+ name: '_asset',
1648
+ type: 'address',
1649
+ },
1650
+ {
1651
+ name: '_paymentAmount',
1652
+ type: 'uint256',
1653
+ },
1654
+ ],
1655
+ outputs: [
1656
+ {
1657
+ name: '',
1658
+ type: 'uint256',
1659
+ },
1660
+ ],
1661
+ },
1662
+ {
1663
+ stateMutability: 'nonpayable',
1664
+ type: 'function',
1665
+ name: 'buyFungibleAuction',
1666
+ inputs: [
1667
+ {
1668
+ name: '_liqUser',
1669
+ type: 'address',
1670
+ },
1671
+ {
1672
+ name: '_vaultId',
1673
+ type: 'uint256',
1674
+ },
1675
+ {
1676
+ name: '_asset',
1677
+ type: 'address',
1678
+ },
1679
+ {
1680
+ name: '_paymentAmount',
1681
+ type: 'uint256',
1682
+ },
1683
+ {
1684
+ name: '_isPaymentSavingsGreen',
1685
+ type: 'bool',
1686
+ },
1687
+ ],
1688
+ outputs: [
1689
+ {
1690
+ name: '',
1691
+ type: 'uint256',
1692
+ },
1693
+ ],
1694
+ },
1695
+ {
1696
+ stateMutability: 'nonpayable',
1697
+ type: 'function',
1698
+ name: 'buyFungibleAuction',
1699
+ inputs: [
1700
+ {
1701
+ name: '_liqUser',
1702
+ type: 'address',
1703
+ },
1704
+ {
1705
+ name: '_vaultId',
1706
+ type: 'uint256',
1707
+ },
1708
+ {
1709
+ name: '_asset',
1710
+ type: 'address',
1711
+ },
1712
+ {
1713
+ name: '_paymentAmount',
1714
+ type: 'uint256',
1715
+ },
1716
+ {
1717
+ name: '_isPaymentSavingsGreen',
1718
+ type: 'bool',
1719
+ },
1720
+ {
1721
+ name: '_shouldTransferBalance',
1722
+ type: 'bool',
1723
+ },
1724
+ ],
1725
+ outputs: [
1726
+ {
1727
+ name: '',
1728
+ type: 'uint256',
1729
+ },
1730
+ ],
1731
+ },
1732
+ {
1733
+ stateMutability: 'nonpayable',
1734
+ type: 'function',
1735
+ name: 'buyFungibleAuction',
1736
+ inputs: [
1737
+ {
1738
+ name: '_liqUser',
1739
+ type: 'address',
1740
+ },
1741
+ {
1742
+ name: '_vaultId',
1743
+ type: 'uint256',
1744
+ },
1745
+ {
1746
+ name: '_asset',
1747
+ type: 'address',
1748
+ },
1749
+ {
1750
+ name: '_paymentAmount',
1751
+ type: 'uint256',
1752
+ },
1753
+ {
1754
+ name: '_isPaymentSavingsGreen',
1755
+ type: 'bool',
1756
+ },
1757
+ {
1758
+ name: '_shouldTransferBalance',
1759
+ type: 'bool',
1760
+ },
1761
+ {
1762
+ name: '_shouldRefundSavingsGreen',
1763
+ type: 'bool',
1764
+ },
1765
+ ],
1766
+ outputs: [
1767
+ {
1768
+ name: '',
1769
+ type: 'uint256',
1770
+ },
1771
+ ],
1772
+ },
1773
+ {
1774
+ stateMutability: 'nonpayable',
1775
+ type: 'function',
1776
+ name: 'buyFungibleAuction',
1777
+ inputs: [
1778
+ {
1779
+ name: '_liqUser',
1780
+ type: 'address',
1781
+ },
1782
+ {
1783
+ name: '_vaultId',
1784
+ type: 'uint256',
1785
+ },
1786
+ {
1787
+ name: '_asset',
1788
+ type: 'address',
1789
+ },
1790
+ {
1791
+ name: '_paymentAmount',
1792
+ type: 'uint256',
1793
+ },
1794
+ {
1795
+ name: '_isPaymentSavingsGreen',
1796
+ type: 'bool',
1797
+ },
1798
+ {
1799
+ name: '_shouldTransferBalance',
1800
+ type: 'bool',
1801
+ },
1802
+ {
1803
+ name: '_shouldRefundSavingsGreen',
1804
+ type: 'bool',
1805
+ },
1806
+ {
1807
+ name: '_recipient',
1808
+ type: 'address',
1809
+ },
1810
+ ],
1811
+ outputs: [
1812
+ {
1813
+ name: '',
1814
+ type: 'uint256',
1815
+ },
1816
+ ],
1817
+ },
1818
+ {
1819
+ stateMutability: 'nonpayable',
1820
+ type: 'function',
1821
+ name: 'buyManyFungibleAuctions',
1822
+ inputs: [
1823
+ {
1824
+ name: '_purchases',
1825
+ type: 'tuple[]',
1826
+ components: [
1827
+ {
1828
+ name: 'liqUser',
1829
+ type: 'address',
1830
+ },
1831
+ {
1832
+ name: 'vaultId',
1833
+ type: 'uint256',
1834
+ },
1835
+ {
1836
+ name: 'asset',
1837
+ type: 'address',
1838
+ },
1839
+ {
1840
+ name: 'maxGreenAmount',
1841
+ type: 'uint256',
1842
+ },
1843
+ ],
1844
+ },
1845
+ ],
1846
+ outputs: [
1847
+ {
1848
+ name: '',
1849
+ type: 'uint256',
1850
+ },
1851
+ ],
1852
+ },
1853
+ {
1854
+ stateMutability: 'nonpayable',
1855
+ type: 'function',
1856
+ name: 'buyManyFungibleAuctions',
1857
+ inputs: [
1858
+ {
1859
+ name: '_purchases',
1860
+ type: 'tuple[]',
1861
+ components: [
1862
+ {
1863
+ name: 'liqUser',
1864
+ type: 'address',
1865
+ },
1866
+ {
1867
+ name: 'vaultId',
1868
+ type: 'uint256',
1869
+ },
1870
+ {
1871
+ name: 'asset',
1872
+ type: 'address',
1873
+ },
1874
+ {
1875
+ name: 'maxGreenAmount',
1876
+ type: 'uint256',
1877
+ },
1878
+ ],
1879
+ },
1880
+ {
1881
+ name: '_paymentAmount',
1882
+ type: 'uint256',
1883
+ },
1884
+ ],
1885
+ outputs: [
1886
+ {
1887
+ name: '',
1888
+ type: 'uint256',
1889
+ },
1890
+ ],
1891
+ },
1892
+ {
1893
+ stateMutability: 'nonpayable',
1894
+ type: 'function',
1895
+ name: 'buyManyFungibleAuctions',
1896
+ inputs: [
1897
+ {
1898
+ name: '_purchases',
1899
+ type: 'tuple[]',
1900
+ components: [
1901
+ {
1902
+ name: 'liqUser',
1903
+ type: 'address',
1904
+ },
1905
+ {
1906
+ name: 'vaultId',
1907
+ type: 'uint256',
1908
+ },
1909
+ {
1910
+ name: 'asset',
1911
+ type: 'address',
1912
+ },
1913
+ {
1914
+ name: 'maxGreenAmount',
1915
+ type: 'uint256',
1916
+ },
1917
+ ],
1918
+ },
1919
+ {
1920
+ name: '_paymentAmount',
1921
+ type: 'uint256',
1922
+ },
1923
+ {
1924
+ name: '_isPaymentSavingsGreen',
1925
+ type: 'bool',
1926
+ },
1927
+ ],
1928
+ outputs: [
1929
+ {
1930
+ name: '',
1931
+ type: 'uint256',
1932
+ },
1933
+ ],
1934
+ },
1935
+ {
1936
+ stateMutability: 'nonpayable',
1937
+ type: 'function',
1938
+ name: 'buyManyFungibleAuctions',
1939
+ inputs: [
1940
+ {
1941
+ name: '_purchases',
1942
+ type: 'tuple[]',
1943
+ components: [
1944
+ {
1945
+ name: 'liqUser',
1946
+ type: 'address',
1947
+ },
1948
+ {
1949
+ name: 'vaultId',
1950
+ type: 'uint256',
1951
+ },
1952
+ {
1953
+ name: 'asset',
1954
+ type: 'address',
1955
+ },
1956
+ {
1957
+ name: 'maxGreenAmount',
1958
+ type: 'uint256',
1959
+ },
1960
+ ],
1961
+ },
1962
+ {
1963
+ name: '_paymentAmount',
1964
+ type: 'uint256',
1965
+ },
1966
+ {
1967
+ name: '_isPaymentSavingsGreen',
1968
+ type: 'bool',
1969
+ },
1970
+ {
1971
+ name: '_shouldTransferBalance',
1972
+ type: 'bool',
1973
+ },
1974
+ ],
1975
+ outputs: [
1976
+ {
1977
+ name: '',
1978
+ type: 'uint256',
1979
+ },
1980
+ ],
1981
+ },
1982
+ {
1983
+ stateMutability: 'nonpayable',
1984
+ type: 'function',
1985
+ name: 'buyManyFungibleAuctions',
1986
+ inputs: [
1987
+ {
1988
+ name: '_purchases',
1989
+ type: 'tuple[]',
1990
+ components: [
1991
+ {
1992
+ name: 'liqUser',
1993
+ type: 'address',
1994
+ },
1995
+ {
1996
+ name: 'vaultId',
1997
+ type: 'uint256',
1998
+ },
1999
+ {
2000
+ name: 'asset',
2001
+ type: 'address',
2002
+ },
2003
+ {
2004
+ name: 'maxGreenAmount',
2005
+ type: 'uint256',
2006
+ },
2007
+ ],
2008
+ },
2009
+ {
2010
+ name: '_paymentAmount',
2011
+ type: 'uint256',
2012
+ },
2013
+ {
2014
+ name: '_isPaymentSavingsGreen',
2015
+ type: 'bool',
2016
+ },
2017
+ {
2018
+ name: '_shouldTransferBalance',
2019
+ type: 'bool',
2020
+ },
2021
+ {
2022
+ name: '_shouldRefundSavingsGreen',
2023
+ type: 'bool',
2024
+ },
2025
+ ],
2026
+ outputs: [
2027
+ {
2028
+ name: '',
2029
+ type: 'uint256',
2030
+ },
2031
+ ],
2032
+ },
2033
+ {
2034
+ stateMutability: 'nonpayable',
2035
+ type: 'function',
2036
+ name: 'buyManyFungibleAuctions',
2037
+ inputs: [
2038
+ {
2039
+ name: '_purchases',
2040
+ type: 'tuple[]',
2041
+ components: [
2042
+ {
2043
+ name: 'liqUser',
2044
+ type: 'address',
2045
+ },
2046
+ {
2047
+ name: 'vaultId',
2048
+ type: 'uint256',
2049
+ },
2050
+ {
2051
+ name: 'asset',
2052
+ type: 'address',
2053
+ },
2054
+ {
2055
+ name: 'maxGreenAmount',
2056
+ type: 'uint256',
2057
+ },
2058
+ ],
2059
+ },
2060
+ {
2061
+ name: '_paymentAmount',
2062
+ type: 'uint256',
2063
+ },
2064
+ {
2065
+ name: '_isPaymentSavingsGreen',
2066
+ type: 'bool',
2067
+ },
2068
+ {
2069
+ name: '_shouldTransferBalance',
2070
+ type: 'bool',
2071
+ },
2072
+ {
2073
+ name: '_shouldRefundSavingsGreen',
2074
+ type: 'bool',
2075
+ },
2076
+ {
2077
+ name: '_recipient',
2078
+ type: 'address',
2079
+ },
2080
+ ],
2081
+ outputs: [
2082
+ {
2083
+ name: '',
2084
+ type: 'uint256',
2085
+ },
2086
+ ],
2087
+ },
2088
+ {
2089
+ stateMutability: 'nonpayable',
2090
+ type: 'function',
2091
+ name: 'convertToSavingsGreenAndDepositIntoStabPool',
2092
+ inputs: [],
2093
+ outputs: [
2094
+ {
2095
+ name: '',
2096
+ type: 'uint256',
2097
+ },
2098
+ ],
2099
+ },
2100
+ {
2101
+ stateMutability: 'nonpayable',
2102
+ type: 'function',
2103
+ name: 'convertToSavingsGreenAndDepositIntoStabPool',
2104
+ inputs: [
2105
+ {
2106
+ name: '_user',
2107
+ type: 'address',
2108
+ },
2109
+ ],
2110
+ outputs: [
2111
+ {
2112
+ name: '',
2113
+ type: 'uint256',
2114
+ },
2115
+ ],
2116
+ },
2117
+ {
2118
+ stateMutability: 'nonpayable',
2119
+ type: 'function',
2120
+ name: 'convertToSavingsGreenAndDepositIntoStabPool',
2121
+ inputs: [
2122
+ {
2123
+ name: '_user',
2124
+ type: 'address',
2125
+ },
2126
+ {
2127
+ name: '_greenAmount',
2128
+ type: 'uint256',
2129
+ },
2130
+ ],
2131
+ outputs: [
2132
+ {
2133
+ name: '',
2134
+ type: 'uint256',
2135
+ },
2136
+ ],
2137
+ },
2138
+ {
2139
+ stateMutability: 'nonpayable',
2140
+ type: 'function',
2141
+ name: 'claimFromStabilityPool',
2142
+ inputs: [
2143
+ {
2144
+ name: '_vaultId',
2145
+ type: 'uint256',
2146
+ },
2147
+ {
2148
+ name: '_stabAsset',
2149
+ type: 'address',
2150
+ },
2151
+ {
2152
+ name: '_claimAsset',
2153
+ type: 'address',
2154
+ },
2155
+ ],
2156
+ outputs: [
2157
+ {
2158
+ name: '',
2159
+ type: 'uint256',
2160
+ },
2161
+ ],
2162
+ },
2163
+ {
2164
+ stateMutability: 'nonpayable',
2165
+ type: 'function',
2166
+ name: 'claimFromStabilityPool',
2167
+ inputs: [
2168
+ {
2169
+ name: '_vaultId',
2170
+ type: 'uint256',
2171
+ },
2172
+ {
2173
+ name: '_stabAsset',
2174
+ type: 'address',
2175
+ },
2176
+ {
2177
+ name: '_claimAsset',
2178
+ type: 'address',
2179
+ },
2180
+ {
2181
+ name: '_maxUsdValue',
2182
+ type: 'uint256',
2183
+ },
2184
+ ],
2185
+ outputs: [
2186
+ {
2187
+ name: '',
2188
+ type: 'uint256',
2189
+ },
2190
+ ],
2191
+ },
2192
+ {
2193
+ stateMutability: 'nonpayable',
2194
+ type: 'function',
2195
+ name: 'claimFromStabilityPool',
2196
+ inputs: [
2197
+ {
2198
+ name: '_vaultId',
2199
+ type: 'uint256',
2200
+ },
2201
+ {
2202
+ name: '_stabAsset',
2203
+ type: 'address',
2204
+ },
2205
+ {
2206
+ name: '_claimAsset',
2207
+ type: 'address',
2208
+ },
2209
+ {
2210
+ name: '_maxUsdValue',
2211
+ type: 'uint256',
2212
+ },
2213
+ {
2214
+ name: '_user',
2215
+ type: 'address',
2216
+ },
2217
+ ],
2218
+ outputs: [
2219
+ {
2220
+ name: '',
2221
+ type: 'uint256',
2222
+ },
2223
+ ],
2224
+ },
2225
+ {
2226
+ stateMutability: 'nonpayable',
2227
+ type: 'function',
2228
+ name: 'claimFromStabilityPool',
2229
+ inputs: [
2230
+ {
2231
+ name: '_vaultId',
2232
+ type: 'uint256',
2233
+ },
2234
+ {
2235
+ name: '_stabAsset',
2236
+ type: 'address',
2237
+ },
2238
+ {
2239
+ name: '_claimAsset',
2240
+ type: 'address',
2241
+ },
2242
+ {
2243
+ name: '_maxUsdValue',
2244
+ type: 'uint256',
2245
+ },
2246
+ {
2247
+ name: '_user',
2248
+ type: 'address',
2249
+ },
2250
+ {
2251
+ name: '_shouldAutoDeposit',
2252
+ type: 'bool',
2253
+ },
2254
+ ],
2255
+ outputs: [
2256
+ {
2257
+ name: '',
2258
+ type: 'uint256',
2259
+ },
2260
+ ],
2261
+ },
2262
+ {
2263
+ stateMutability: 'nonpayable',
2264
+ type: 'function',
2265
+ name: 'claimManyFromStabilityPool',
2266
+ inputs: [
2267
+ {
2268
+ name: '_vaultId',
2269
+ type: 'uint256',
2270
+ },
2271
+ {
2272
+ name: '_claims',
2273
+ type: 'tuple[]',
2274
+ components: [
2275
+ {
2276
+ name: 'stabAsset',
2277
+ type: 'address',
2278
+ },
2279
+ {
2280
+ name: 'claimAsset',
2281
+ type: 'address',
2282
+ },
2283
+ {
2284
+ name: 'maxUsdValue',
2285
+ type: 'uint256',
2286
+ },
2287
+ ],
2288
+ },
2289
+ ],
2290
+ outputs: [
2291
+ {
2292
+ name: '',
2293
+ type: 'uint256',
2294
+ },
2295
+ ],
2296
+ },
2297
+ {
2298
+ stateMutability: 'nonpayable',
2299
+ type: 'function',
2300
+ name: 'claimManyFromStabilityPool',
2301
+ inputs: [
2302
+ {
2303
+ name: '_vaultId',
2304
+ type: 'uint256',
2305
+ },
2306
+ {
2307
+ name: '_claims',
2308
+ type: 'tuple[]',
2309
+ components: [
2310
+ {
2311
+ name: 'stabAsset',
2312
+ type: 'address',
2313
+ },
2314
+ {
2315
+ name: 'claimAsset',
2316
+ type: 'address',
2317
+ },
2318
+ {
2319
+ name: 'maxUsdValue',
2320
+ type: 'uint256',
2321
+ },
2322
+ ],
2323
+ },
2324
+ {
2325
+ name: '_user',
2326
+ type: 'address',
2327
+ },
2328
+ ],
2329
+ outputs: [
2330
+ {
2331
+ name: '',
2332
+ type: 'uint256',
2333
+ },
2334
+ ],
2335
+ },
2336
+ {
2337
+ stateMutability: 'nonpayable',
2338
+ type: 'function',
2339
+ name: 'claimManyFromStabilityPool',
2340
+ inputs: [
2341
+ {
2342
+ name: '_vaultId',
2343
+ type: 'uint256',
2344
+ },
2345
+ {
2346
+ name: '_claims',
2347
+ type: 'tuple[]',
2348
+ components: [
2349
+ {
2350
+ name: 'stabAsset',
2351
+ type: 'address',
2352
+ },
2353
+ {
2354
+ name: 'claimAsset',
2355
+ type: 'address',
2356
+ },
2357
+ {
2358
+ name: 'maxUsdValue',
2359
+ type: 'uint256',
2360
+ },
2361
+ ],
2362
+ },
2363
+ {
2364
+ name: '_user',
2365
+ type: 'address',
2366
+ },
2367
+ {
2368
+ name: '_shouldAutoDeposit',
2369
+ type: 'bool',
2370
+ },
2371
+ ],
2372
+ outputs: [
2373
+ {
2374
+ name: '',
2375
+ type: 'uint256',
2376
+ },
2377
+ ],
2378
+ },
2379
+ {
2380
+ stateMutability: 'nonpayable',
2381
+ type: 'function',
2382
+ name: 'redeemFromStabilityPool',
2383
+ inputs: [
2384
+ {
2385
+ name: '_vaultId',
2386
+ type: 'uint256',
2387
+ },
2388
+ {
2389
+ name: '_claimAsset',
2390
+ type: 'address',
2391
+ },
2392
+ ],
2393
+ outputs: [
2394
+ {
2395
+ name: '',
2396
+ type: 'uint256',
2397
+ },
2398
+ ],
2399
+ },
2400
+ {
2401
+ stateMutability: 'nonpayable',
2402
+ type: 'function',
2403
+ name: 'redeemFromStabilityPool',
2404
+ inputs: [
2405
+ {
2406
+ name: '_vaultId',
2407
+ type: 'uint256',
2408
+ },
2409
+ {
2410
+ name: '_claimAsset',
2411
+ type: 'address',
2412
+ },
2413
+ {
2414
+ name: '_paymentAmount',
2415
+ type: 'uint256',
2416
+ },
2417
+ ],
2418
+ outputs: [
2419
+ {
2420
+ name: '',
2421
+ type: 'uint256',
2422
+ },
2423
+ ],
2424
+ },
2425
+ {
2426
+ stateMutability: 'nonpayable',
2427
+ type: 'function',
2428
+ name: 'redeemFromStabilityPool',
2429
+ inputs: [
2430
+ {
2431
+ name: '_vaultId',
2432
+ type: 'uint256',
2433
+ },
2434
+ {
2435
+ name: '_claimAsset',
2436
+ type: 'address',
2437
+ },
2438
+ {
2439
+ name: '_paymentAmount',
2440
+ type: 'uint256',
2441
+ },
2442
+ {
2443
+ name: '_recipient',
2444
+ type: 'address',
2445
+ },
2446
+ ],
2447
+ outputs: [
2448
+ {
2449
+ name: '',
2450
+ type: 'uint256',
2451
+ },
2452
+ ],
2453
+ },
2454
+ {
2455
+ stateMutability: 'nonpayable',
2456
+ type: 'function',
2457
+ name: 'redeemFromStabilityPool',
2458
+ inputs: [
2459
+ {
2460
+ name: '_vaultId',
2461
+ type: 'uint256',
2462
+ },
2463
+ {
2464
+ name: '_claimAsset',
2465
+ type: 'address',
2466
+ },
2467
+ {
2468
+ name: '_paymentAmount',
2469
+ type: 'uint256',
2470
+ },
2471
+ {
2472
+ name: '_recipient',
2473
+ type: 'address',
2474
+ },
2475
+ {
2476
+ name: '_shouldAutoDeposit',
2477
+ type: 'bool',
2478
+ },
2479
+ ],
2480
+ outputs: [
2481
+ {
2482
+ name: '',
2483
+ type: 'uint256',
2484
+ },
2485
+ ],
2486
+ },
2487
+ {
2488
+ stateMutability: 'nonpayable',
2489
+ type: 'function',
2490
+ name: 'redeemFromStabilityPool',
2491
+ inputs: [
2492
+ {
2493
+ name: '_vaultId',
2494
+ type: 'uint256',
2495
+ },
2496
+ {
2497
+ name: '_claimAsset',
2498
+ type: 'address',
2499
+ },
2500
+ {
2501
+ name: '_paymentAmount',
2502
+ type: 'uint256',
2503
+ },
2504
+ {
2505
+ name: '_recipient',
2506
+ type: 'address',
2507
+ },
2508
+ {
2509
+ name: '_shouldAutoDeposit',
2510
+ type: 'bool',
2511
+ },
2512
+ {
2513
+ name: '_isPaymentSavingsGreen',
2514
+ type: 'bool',
2515
+ },
2516
+ ],
2517
+ outputs: [
2518
+ {
2519
+ name: '',
2520
+ type: 'uint256',
2521
+ },
2522
+ ],
2523
+ },
2524
+ {
2525
+ stateMutability: 'nonpayable',
2526
+ type: 'function',
2527
+ name: 'redeemFromStabilityPool',
2528
+ inputs: [
2529
+ {
2530
+ name: '_vaultId',
2531
+ type: 'uint256',
2532
+ },
2533
+ {
2534
+ name: '_claimAsset',
2535
+ type: 'address',
2536
+ },
2537
+ {
2538
+ name: '_paymentAmount',
2539
+ type: 'uint256',
2540
+ },
2541
+ {
2542
+ name: '_recipient',
2543
+ type: 'address',
2544
+ },
2545
+ {
2546
+ name: '_shouldAutoDeposit',
2547
+ type: 'bool',
2548
+ },
2549
+ {
2550
+ name: '_isPaymentSavingsGreen',
2551
+ type: 'bool',
2552
+ },
2553
+ {
2554
+ name: '_shouldRefundSavingsGreen',
2555
+ type: 'bool',
2556
+ },
2557
+ ],
2558
+ outputs: [
2559
+ {
2560
+ name: '',
2561
+ type: 'uint256',
2562
+ },
2563
+ ],
2564
+ },
2565
+ {
2566
+ stateMutability: 'nonpayable',
2567
+ type: 'function',
2568
+ name: 'redeemManyFromStabilityPool',
2569
+ inputs: [
2570
+ {
2571
+ name: '_vaultId',
2572
+ type: 'uint256',
2573
+ },
2574
+ {
2575
+ name: '_redemptions',
2576
+ type: 'tuple[]',
2577
+ components: [
2578
+ {
2579
+ name: 'claimAsset',
2580
+ type: 'address',
2581
+ },
2582
+ {
2583
+ name: 'maxGreenAmount',
2584
+ type: 'uint256',
2585
+ },
2586
+ ],
2587
+ },
2588
+ ],
2589
+ outputs: [
2590
+ {
2591
+ name: '',
2592
+ type: 'uint256',
2593
+ },
2594
+ ],
2595
+ },
2596
+ {
2597
+ stateMutability: 'nonpayable',
2598
+ type: 'function',
2599
+ name: 'redeemManyFromStabilityPool',
2600
+ inputs: [
2601
+ {
2602
+ name: '_vaultId',
2603
+ type: 'uint256',
2604
+ },
2605
+ {
2606
+ name: '_redemptions',
2607
+ type: 'tuple[]',
2608
+ components: [
2609
+ {
2610
+ name: 'claimAsset',
2611
+ type: 'address',
2612
+ },
2613
+ {
2614
+ name: 'maxGreenAmount',
2615
+ type: 'uint256',
2616
+ },
2617
+ ],
2618
+ },
2619
+ {
2620
+ name: '_paymentAmount',
2621
+ type: 'uint256',
2622
+ },
2623
+ ],
2624
+ outputs: [
2625
+ {
2626
+ name: '',
2627
+ type: 'uint256',
2628
+ },
2629
+ ],
2630
+ },
2631
+ {
2632
+ stateMutability: 'nonpayable',
2633
+ type: 'function',
2634
+ name: 'redeemManyFromStabilityPool',
2635
+ inputs: [
2636
+ {
2637
+ name: '_vaultId',
2638
+ type: 'uint256',
2639
+ },
2640
+ {
2641
+ name: '_redemptions',
2642
+ type: 'tuple[]',
2643
+ components: [
2644
+ {
2645
+ name: 'claimAsset',
2646
+ type: 'address',
2647
+ },
2648
+ {
2649
+ name: 'maxGreenAmount',
2650
+ type: 'uint256',
2651
+ },
2652
+ ],
2653
+ },
2654
+ {
2655
+ name: '_paymentAmount',
2656
+ type: 'uint256',
2657
+ },
2658
+ {
2659
+ name: '_recipient',
2660
+ type: 'address',
2661
+ },
2662
+ ],
2663
+ outputs: [
2664
+ {
2665
+ name: '',
2666
+ type: 'uint256',
2667
+ },
2668
+ ],
2669
+ },
2670
+ {
2671
+ stateMutability: 'nonpayable',
2672
+ type: 'function',
2673
+ name: 'redeemManyFromStabilityPool',
2674
+ inputs: [
2675
+ {
2676
+ name: '_vaultId',
2677
+ type: 'uint256',
2678
+ },
2679
+ {
2680
+ name: '_redemptions',
2681
+ type: 'tuple[]',
2682
+ components: [
2683
+ {
2684
+ name: 'claimAsset',
2685
+ type: 'address',
2686
+ },
2687
+ {
2688
+ name: 'maxGreenAmount',
2689
+ type: 'uint256',
2690
+ },
2691
+ ],
2692
+ },
2693
+ {
2694
+ name: '_paymentAmount',
2695
+ type: 'uint256',
2696
+ },
2697
+ {
2698
+ name: '_recipient',
2699
+ type: 'address',
2700
+ },
2701
+ {
2702
+ name: '_shouldAutoDeposit',
2703
+ type: 'bool',
2704
+ },
2705
+ ],
2706
+ outputs: [
2707
+ {
2708
+ name: '',
2709
+ type: 'uint256',
2710
+ },
2711
+ ],
2712
+ },
2713
+ {
2714
+ stateMutability: 'nonpayable',
2715
+ type: 'function',
2716
+ name: 'redeemManyFromStabilityPool',
2717
+ inputs: [
2718
+ {
2719
+ name: '_vaultId',
2720
+ type: 'uint256',
2721
+ },
2722
+ {
2723
+ name: '_redemptions',
2724
+ type: 'tuple[]',
2725
+ components: [
2726
+ {
2727
+ name: 'claimAsset',
2728
+ type: 'address',
2729
+ },
2730
+ {
2731
+ name: 'maxGreenAmount',
2732
+ type: 'uint256',
2733
+ },
2734
+ ],
2735
+ },
2736
+ {
2737
+ name: '_paymentAmount',
2738
+ type: 'uint256',
2739
+ },
2740
+ {
2741
+ name: '_recipient',
2742
+ type: 'address',
2743
+ },
2744
+ {
2745
+ name: '_shouldAutoDeposit',
2746
+ type: 'bool',
2747
+ },
2748
+ {
2749
+ name: '_isPaymentSavingsGreen',
2750
+ type: 'bool',
2751
+ },
2752
+ ],
2753
+ outputs: [
2754
+ {
2755
+ name: '',
2756
+ type: 'uint256',
2757
+ },
2758
+ ],
2759
+ },
2760
+ {
2761
+ stateMutability: 'nonpayable',
2762
+ type: 'function',
2763
+ name: 'redeemManyFromStabilityPool',
2764
+ inputs: [
2765
+ {
2766
+ name: '_vaultId',
2767
+ type: 'uint256',
2768
+ },
2769
+ {
2770
+ name: '_redemptions',
2771
+ type: 'tuple[]',
2772
+ components: [
2773
+ {
2774
+ name: 'claimAsset',
2775
+ type: 'address',
2776
+ },
2777
+ {
2778
+ name: 'maxGreenAmount',
2779
+ type: 'uint256',
2780
+ },
2781
+ ],
2782
+ },
2783
+ {
2784
+ name: '_paymentAmount',
2785
+ type: 'uint256',
2786
+ },
2787
+ {
2788
+ name: '_recipient',
2789
+ type: 'address',
2790
+ },
2791
+ {
2792
+ name: '_shouldAutoDeposit',
2793
+ type: 'bool',
2794
+ },
2795
+ {
2796
+ name: '_isPaymentSavingsGreen',
2797
+ type: 'bool',
2798
+ },
2799
+ {
2800
+ name: '_shouldRefundSavingsGreen',
2801
+ type: 'bool',
2802
+ },
2803
+ ],
2804
+ outputs: [
2805
+ {
2806
+ name: '',
2807
+ type: 'uint256',
2808
+ },
2809
+ ],
2810
+ },
2811
+ {
2812
+ stateMutability: 'nonpayable',
2813
+ type: 'function',
2814
+ name: 'claimLoot',
2815
+ inputs: [],
2816
+ outputs: [
2817
+ {
2818
+ name: '',
2819
+ type: 'uint256',
2820
+ },
2821
+ ],
2822
+ },
2823
+ {
2824
+ stateMutability: 'nonpayable',
2825
+ type: 'function',
2826
+ name: 'claimLoot',
2827
+ inputs: [
2828
+ {
2829
+ name: '_user',
2830
+ type: 'address',
2831
+ },
2832
+ ],
2833
+ outputs: [
2834
+ {
2835
+ name: '',
2836
+ type: 'uint256',
2837
+ },
2838
+ ],
2839
+ },
2840
+ {
2841
+ stateMutability: 'nonpayable',
2842
+ type: 'function',
2843
+ name: 'claimLoot',
2844
+ inputs: [
2845
+ {
2846
+ name: '_user',
2847
+ type: 'address',
2848
+ },
2849
+ {
2850
+ name: '_shouldStake',
2851
+ type: 'bool',
2852
+ },
2853
+ ],
2854
+ outputs: [
2855
+ {
2856
+ name: '',
2857
+ type: 'uint256',
2858
+ },
2859
+ ],
2860
+ },
2861
+ {
2862
+ stateMutability: 'nonpayable',
2863
+ type: 'function',
2864
+ name: 'claimLootForManyUsers',
2865
+ inputs: [
2866
+ {
2867
+ name: '_users',
2868
+ type: 'address[]',
2869
+ },
2870
+ ],
2871
+ outputs: [
2872
+ {
2873
+ name: '',
2874
+ type: 'uint256',
2875
+ },
2876
+ ],
2877
+ },
2878
+ {
2879
+ stateMutability: 'nonpayable',
2880
+ type: 'function',
2881
+ name: 'claimLootForManyUsers',
2882
+ inputs: [
2883
+ {
2884
+ name: '_users',
2885
+ type: 'address[]',
2886
+ },
2887
+ {
2888
+ name: '_shouldStake',
2889
+ type: 'bool',
2890
+ },
2891
+ ],
2892
+ outputs: [
2893
+ {
2894
+ name: '',
2895
+ type: 'uint256',
2896
+ },
2897
+ ],
2898
+ },
2899
+ {
2900
+ stateMutability: 'nonpayable',
2901
+ type: 'function',
2902
+ name: 'adjustLock',
2903
+ inputs: [
2904
+ {
2905
+ name: '_asset',
2906
+ type: 'address',
2907
+ },
2908
+ {
2909
+ name: '_newLockDuration',
2910
+ type: 'uint256',
2911
+ },
2912
+ ],
2913
+ outputs: [],
2914
+ },
2915
+ {
2916
+ stateMutability: 'nonpayable',
2917
+ type: 'function',
2918
+ name: 'adjustLock',
2919
+ inputs: [
2920
+ {
2921
+ name: '_asset',
2922
+ type: 'address',
2923
+ },
2924
+ {
2925
+ name: '_newLockDuration',
2926
+ type: 'uint256',
2927
+ },
2928
+ {
2929
+ name: '_user',
2930
+ type: 'address',
2931
+ },
2932
+ ],
2933
+ outputs: [],
2934
+ },
2935
+ {
2936
+ stateMutability: 'nonpayable',
2937
+ type: 'function',
2938
+ name: 'releaseLock',
2939
+ inputs: [
2940
+ {
2941
+ name: '_asset',
2942
+ type: 'address',
2943
+ },
2944
+ ],
2945
+ outputs: [],
2946
+ },
2947
+ {
2948
+ stateMutability: 'nonpayable',
2949
+ type: 'function',
2950
+ name: 'releaseLock',
2951
+ inputs: [
2952
+ {
2953
+ name: '_asset',
2954
+ type: 'address',
2955
+ },
2956
+ {
2957
+ name: '_user',
2958
+ type: 'address',
2959
+ },
2960
+ ],
2961
+ outputs: [],
2962
+ },
2963
+ {
2964
+ stateMutability: 'nonpayable',
2965
+ type: 'function',
2966
+ name: 'purchaseRipeBond',
2967
+ inputs: [
2968
+ {
2969
+ name: '_paymentAsset',
2970
+ type: 'address',
2971
+ },
2972
+ ],
2973
+ outputs: [
2974
+ {
2975
+ name: '',
2976
+ type: 'uint256',
2977
+ },
2978
+ ],
2979
+ },
2980
+ {
2981
+ stateMutability: 'nonpayable',
2982
+ type: 'function',
2983
+ name: 'purchaseRipeBond',
2984
+ inputs: [
2985
+ {
2986
+ name: '_paymentAsset',
2987
+ type: 'address',
2988
+ },
2989
+ {
2990
+ name: '_paymentAmount',
2991
+ type: 'uint256',
2992
+ },
2993
+ ],
2994
+ outputs: [
2995
+ {
2996
+ name: '',
2997
+ type: 'uint256',
2998
+ },
2999
+ ],
3000
+ },
3001
+ {
3002
+ stateMutability: 'nonpayable',
3003
+ type: 'function',
3004
+ name: 'purchaseRipeBond',
3005
+ inputs: [
3006
+ {
3007
+ name: '_paymentAsset',
3008
+ type: 'address',
3009
+ },
3010
+ {
3011
+ name: '_paymentAmount',
3012
+ type: 'uint256',
3013
+ },
3014
+ {
3015
+ name: '_lockDuration',
3016
+ type: 'uint256',
3017
+ },
3018
+ ],
3019
+ outputs: [
3020
+ {
3021
+ name: '',
3022
+ type: 'uint256',
3023
+ },
3024
+ ],
3025
+ },
3026
+ {
3027
+ stateMutability: 'nonpayable',
3028
+ type: 'function',
3029
+ name: 'purchaseRipeBond',
3030
+ inputs: [
3031
+ {
3032
+ name: '_paymentAsset',
3033
+ type: 'address',
3034
+ },
3035
+ {
3036
+ name: '_paymentAmount',
3037
+ type: 'uint256',
3038
+ },
3039
+ {
3040
+ name: '_lockDuration',
3041
+ type: 'uint256',
3042
+ },
3043
+ {
3044
+ name: '_recipient',
3045
+ type: 'address',
3046
+ },
3047
+ ],
3048
+ outputs: [
3049
+ {
3050
+ name: '',
3051
+ type: 'uint256',
3052
+ },
3053
+ ],
3054
+ },
3055
+ {
3056
+ stateMutability: 'nonpayable',
3057
+ type: 'function',
3058
+ name: 'setUserConfig',
3059
+ inputs: [],
3060
+ outputs: [
3061
+ {
3062
+ name: '',
3063
+ type: 'bool',
3064
+ },
3065
+ ],
3066
+ },
3067
+ {
3068
+ stateMutability: 'nonpayable',
3069
+ type: 'function',
3070
+ name: 'setUserConfig',
3071
+ inputs: [
3072
+ {
3073
+ name: '_user',
3074
+ type: 'address',
3075
+ },
3076
+ ],
3077
+ outputs: [
3078
+ {
3079
+ name: '',
3080
+ type: 'bool',
3081
+ },
3082
+ ],
3083
+ },
3084
+ {
3085
+ stateMutability: 'nonpayable',
3086
+ type: 'function',
3087
+ name: 'setUserConfig',
3088
+ inputs: [
3089
+ {
3090
+ name: '_user',
3091
+ type: 'address',
3092
+ },
3093
+ {
3094
+ name: '_canAnyoneDeposit',
3095
+ type: 'bool',
3096
+ },
3097
+ ],
3098
+ outputs: [
3099
+ {
3100
+ name: '',
3101
+ type: 'bool',
3102
+ },
3103
+ ],
3104
+ },
3105
+ {
3106
+ stateMutability: 'nonpayable',
3107
+ type: 'function',
3108
+ name: 'setUserConfig',
3109
+ inputs: [
3110
+ {
3111
+ name: '_user',
3112
+ type: 'address',
3113
+ },
3114
+ {
3115
+ name: '_canAnyoneDeposit',
3116
+ type: 'bool',
3117
+ },
3118
+ {
3119
+ name: '_canAnyoneRepayDebt',
3120
+ type: 'bool',
3121
+ },
3122
+ ],
3123
+ outputs: [
3124
+ {
3125
+ name: '',
3126
+ type: 'bool',
3127
+ },
3128
+ ],
3129
+ },
3130
+ {
3131
+ stateMutability: 'nonpayable',
3132
+ type: 'function',
3133
+ name: 'setUserConfig',
3134
+ inputs: [
3135
+ {
3136
+ name: '_user',
3137
+ type: 'address',
3138
+ },
3139
+ {
3140
+ name: '_canAnyoneDeposit',
3141
+ type: 'bool',
3142
+ },
3143
+ {
3144
+ name: '_canAnyoneRepayDebt',
3145
+ type: 'bool',
3146
+ },
3147
+ {
3148
+ name: '_canAnyoneBondForUser',
3149
+ type: 'bool',
3150
+ },
3151
+ ],
3152
+ outputs: [
3153
+ {
3154
+ name: '',
3155
+ type: 'bool',
3156
+ },
3157
+ ],
3158
+ },
3159
+ {
3160
+ stateMutability: 'nonpayable',
3161
+ type: 'function',
3162
+ name: 'setUserDelegation',
3163
+ inputs: [
3164
+ {
3165
+ name: '_delegate',
3166
+ type: 'address',
3167
+ },
3168
+ ],
3169
+ outputs: [
3170
+ {
3171
+ name: '',
3172
+ type: 'bool',
3173
+ },
3174
+ ],
3175
+ },
3176
+ {
3177
+ stateMutability: 'nonpayable',
3178
+ type: 'function',
3179
+ name: 'setUserDelegation',
3180
+ inputs: [
3181
+ {
3182
+ name: '_delegate',
3183
+ type: 'address',
3184
+ },
3185
+ {
3186
+ name: '_user',
3187
+ type: 'address',
3188
+ },
3189
+ ],
3190
+ outputs: [
3191
+ {
3192
+ name: '',
3193
+ type: 'bool',
3194
+ },
3195
+ ],
3196
+ },
3197
+ {
3198
+ stateMutability: 'nonpayable',
3199
+ type: 'function',
3200
+ name: 'setUserDelegation',
3201
+ inputs: [
3202
+ {
3203
+ name: '_delegate',
3204
+ type: 'address',
3205
+ },
3206
+ {
3207
+ name: '_user',
3208
+ type: 'address',
3209
+ },
3210
+ {
3211
+ name: '_canWithdraw',
3212
+ type: 'bool',
3213
+ },
3214
+ ],
3215
+ outputs: [
3216
+ {
3217
+ name: '',
3218
+ type: 'bool',
3219
+ },
3220
+ ],
3221
+ },
3222
+ {
3223
+ stateMutability: 'nonpayable',
3224
+ type: 'function',
3225
+ name: 'setUserDelegation',
3226
+ inputs: [
3227
+ {
3228
+ name: '_delegate',
3229
+ type: 'address',
3230
+ },
3231
+ {
3232
+ name: '_user',
3233
+ type: 'address',
3234
+ },
3235
+ {
3236
+ name: '_canWithdraw',
3237
+ type: 'bool',
3238
+ },
3239
+ {
3240
+ name: '_canBorrow',
3241
+ type: 'bool',
3242
+ },
3243
+ ],
3244
+ outputs: [
3245
+ {
3246
+ name: '',
3247
+ type: 'bool',
3248
+ },
3249
+ ],
3250
+ },
3251
+ {
3252
+ stateMutability: 'nonpayable',
3253
+ type: 'function',
3254
+ name: 'setUserDelegation',
3255
+ inputs: [
3256
+ {
3257
+ name: '_delegate',
3258
+ type: 'address',
3259
+ },
3260
+ {
3261
+ name: '_user',
3262
+ type: 'address',
3263
+ },
3264
+ {
3265
+ name: '_canWithdraw',
3266
+ type: 'bool',
3267
+ },
3268
+ {
3269
+ name: '_canBorrow',
3270
+ type: 'bool',
3271
+ },
3272
+ {
3273
+ name: '_canClaimFromStabPool',
3274
+ type: 'bool',
3275
+ },
3276
+ ],
3277
+ outputs: [
3278
+ {
3279
+ name: '',
3280
+ type: 'bool',
3281
+ },
3282
+ ],
3283
+ },
3284
+ {
3285
+ stateMutability: 'nonpayable',
3286
+ type: 'function',
3287
+ name: 'setUserDelegation',
3288
+ inputs: [
3289
+ {
3290
+ name: '_delegate',
3291
+ type: 'address',
3292
+ },
3293
+ {
3294
+ name: '_user',
3295
+ type: 'address',
3296
+ },
3297
+ {
3298
+ name: '_canWithdraw',
3299
+ type: 'bool',
3300
+ },
3301
+ {
3302
+ name: '_canBorrow',
3303
+ type: 'bool',
3304
+ },
3305
+ {
3306
+ name: '_canClaimFromStabPool',
3307
+ type: 'bool',
3308
+ },
3309
+ {
3310
+ name: '_canClaimLoot',
3311
+ type: 'bool',
3312
+ },
3313
+ ],
3314
+ outputs: [
3315
+ {
3316
+ name: '',
3317
+ type: 'bool',
3318
+ },
3319
+ ],
3320
+ },
3321
+ {
3322
+ stateMutability: 'nonpayable',
3323
+ type: 'function',
3324
+ name: 'setUndyLegoAccess',
3325
+ inputs: [
3326
+ {
3327
+ name: '_legoAddr',
3328
+ type: 'address',
3329
+ },
3330
+ ],
3331
+ outputs: [
3332
+ {
3333
+ name: '',
3334
+ type: 'bool',
3335
+ },
3336
+ ],
3337
+ },
3338
+ {
3339
+ stateMutability: 'view',
3340
+ type: 'function',
3341
+ name: 'isUnderscoreWalletOwner',
3342
+ inputs: [
3343
+ {
3344
+ name: '_user',
3345
+ type: 'address',
3346
+ },
3347
+ {
3348
+ name: '_caller',
3349
+ type: 'address',
3350
+ },
3351
+ ],
3352
+ outputs: [
3353
+ {
3354
+ name: '',
3355
+ type: 'bool',
3356
+ },
3357
+ ],
3358
+ },
3359
+ {
3360
+ stateMutability: 'view',
3361
+ type: 'function',
3362
+ name: 'isUnderscoreWalletOwner',
3363
+ inputs: [
3364
+ {
3365
+ name: '_user',
3366
+ type: 'address',
3367
+ },
3368
+ {
3369
+ name: '_caller',
3370
+ type: 'address',
3371
+ },
3372
+ {
3373
+ name: '_mc',
3374
+ type: 'address',
3375
+ },
3376
+ ],
3377
+ outputs: [
3378
+ {
3379
+ name: '',
3380
+ type: 'bool',
3381
+ },
3382
+ ],
3383
+ },
3384
+ {
3385
+ stateMutability: 'nonpayable',
3386
+ type: 'constructor',
3387
+ inputs: [
3388
+ {
3389
+ name: '_ripeHq',
3390
+ type: 'address',
3391
+ },
3392
+ {
3393
+ name: '_shouldPause',
3394
+ type: 'bool',
3395
+ },
3396
+ ],
3397
+ outputs: [],
3398
+ },
3399
+ ];
3400
+ export const deployAddress = '0xc0a8Bf2A0688f8986f890729f3eDdba52AC635e3';
3401
+ function getRequest(method, args, contractAddressOrOptions) {
3402
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
3403
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
3404
+ const call = {
3405
+ contractName: 'Teller',
3406
+ method,
3407
+ args,
3408
+ address,
3409
+ deployAddress,
3410
+ defaultValue,
3411
+ getAbi: () => abi,
3412
+ with: (options) => {
3413
+ call.address = options.contractAddress;
3414
+ call.defaultValue = options.defaultValue;
3415
+ return call;
3416
+ },
3417
+ defaultTo: (defaultValue) => {
3418
+ call.defaultValue = defaultValue;
3419
+ return call;
3420
+ },
3421
+ at: (address) => {
3422
+ call.address = address;
3423
+ return call;
3424
+ },
3425
+ };
3426
+ return call;
3427
+ }
3428
+ export const call = {
3429
+ getAddys: (...args) => getRequest('getAddys', args),
3430
+ getRipeHq: (...args) => getRequest('getRipeHq', args),
3431
+ canMintGreen: (...args) => getRequest('canMintGreen', args),
3432
+ canMintRipe: (...args) => getRequest('canMintRipe', args),
3433
+ isPaused: (...args) => getRequest('isPaused', args),
3434
+ isUnderscoreWalletOwner: (...args) => getRequest('isUnderscoreWalletOwner', args),
3435
+ };
3436
+ function getMutation(functionName) {
3437
+ return {
3438
+ contractName: 'Teller',
3439
+ functionName,
3440
+ deployAddress,
3441
+ argsType: undefined,
3442
+ getAbi: () => abi,
3443
+ };
3444
+ }
3445
+ export const mutation = {
3446
+ pause: getMutation('pause'),
3447
+ recoverFunds: getMutation('recoverFunds'),
3448
+ recoverFundsMany: getMutation('recoverFundsMany'),
3449
+ deposit: getMutation('deposit'),
3450
+ depositMany: getMutation('depositMany'),
3451
+ depositFromTrusted: getMutation('depositFromTrusted'),
3452
+ withdraw: getMutation('withdraw'),
3453
+ withdrawMany: getMutation('withdrawMany'),
3454
+ borrow: getMutation('borrow'),
3455
+ repay: getMutation('repay'),
3456
+ redeemCollateral: getMutation('redeemCollateral'),
3457
+ redeemCollateralFromMany: getMutation('redeemCollateralFromMany'),
3458
+ liquidateUser: getMutation('liquidateUser'),
3459
+ liquidateManyUsers: getMutation('liquidateManyUsers'),
3460
+ buyFungibleAuction: getMutation('buyFungibleAuction'),
3461
+ buyManyFungibleAuctions: getMutation('buyManyFungibleAuctions'),
3462
+ convertToSavingsGreenAndDepositIntoStabPool: getMutation('convertToSavingsGreenAndDepositIntoStabPool'),
3463
+ claimFromStabilityPool: getMutation('claimFromStabilityPool'),
3464
+ claimManyFromStabilityPool: getMutation('claimManyFromStabilityPool'),
3465
+ redeemFromStabilityPool: getMutation('redeemFromStabilityPool'),
3466
+ redeemManyFromStabilityPool: getMutation('redeemManyFromStabilityPool'),
3467
+ claimLoot: getMutation('claimLoot'),
3468
+ claimLootForManyUsers: getMutation('claimLootForManyUsers'),
3469
+ adjustLock: getMutation('adjustLock'),
3470
+ releaseLock: getMutation('releaseLock'),
3471
+ purchaseRipeBond: getMutation('purchaseRipeBond'),
3472
+ setUserConfig: getMutation('setUserConfig'),
3473
+ setUserDelegation: getMutation('setUserDelegation'),
3474
+ setUndyLegoAccess: getMutation('setUndyLegoAccess'),
3475
+ };
3476
+ export function toSdk(publicClient, walletClient) {
3477
+ return {
3478
+ deployAddress,
3479
+ abi,
3480
+ // Queries
3481
+ getAddys: (...args) => singleQuery(publicClient, call.getAddys(...args)),
3482
+ getRipeHq: (...args) => singleQuery(publicClient, call.getRipeHq(...args)),
3483
+ canMintGreen: (...args) => singleQuery(publicClient, call.canMintGreen(...args)),
3484
+ canMintRipe: (...args) => singleQuery(publicClient, call.canMintRipe(...args)),
3485
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
3486
+ isUnderscoreWalletOwner: (...args) => singleQuery(publicClient, call.isUnderscoreWalletOwner(...args)),
3487
+ // Mutations
3488
+ pause: (...args) => mutate(walletClient, mutation.pause)(...args),
3489
+ recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
3490
+ recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
3491
+ deposit: (...args) => mutate(walletClient, mutation.deposit)(...args),
3492
+ depositMany: (...args) => mutate(walletClient, mutation.depositMany)(...args),
3493
+ depositFromTrusted: (...args) => mutate(walletClient, mutation.depositFromTrusted)(...args),
3494
+ withdraw: (...args) => mutate(walletClient, mutation.withdraw)(...args),
3495
+ withdrawMany: (...args) => mutate(walletClient, mutation.withdrawMany)(...args),
3496
+ borrow: (...args) => mutate(walletClient, mutation.borrow)(...args),
3497
+ repay: (...args) => mutate(walletClient, mutation.repay)(...args),
3498
+ redeemCollateral: (...args) => mutate(walletClient, mutation.redeemCollateral)(...args),
3499
+ redeemCollateralFromMany: (...args) => mutate(walletClient, mutation.redeemCollateralFromMany)(...args),
3500
+ liquidateUser: (...args) => mutate(walletClient, mutation.liquidateUser)(...args),
3501
+ liquidateManyUsers: (...args) => mutate(walletClient, mutation.liquidateManyUsers)(...args),
3502
+ buyFungibleAuction: (...args) => mutate(walletClient, mutation.buyFungibleAuction)(...args),
3503
+ buyManyFungibleAuctions: (...args) => mutate(walletClient, mutation.buyManyFungibleAuctions)(...args),
3504
+ convertToSavingsGreenAndDepositIntoStabPool: (...args) => mutate(walletClient, mutation.convertToSavingsGreenAndDepositIntoStabPool)(...args),
3505
+ claimFromStabilityPool: (...args) => mutate(walletClient, mutation.claimFromStabilityPool)(...args),
3506
+ claimManyFromStabilityPool: (...args) => mutate(walletClient, mutation.claimManyFromStabilityPool)(...args),
3507
+ redeemFromStabilityPool: (...args) => mutate(walletClient, mutation.redeemFromStabilityPool)(...args),
3508
+ redeemManyFromStabilityPool: (...args) => mutate(walletClient, mutation.redeemManyFromStabilityPool)(...args),
3509
+ claimLoot: (...args) => mutate(walletClient, mutation.claimLoot)(...args),
3510
+ claimLootForManyUsers: (...args) => mutate(walletClient, mutation.claimLootForManyUsers)(...args),
3511
+ adjustLock: (...args) => mutate(walletClient, mutation.adjustLock)(...args),
3512
+ releaseLock: (...args) => mutate(walletClient, mutation.releaseLock)(...args),
3513
+ purchaseRipeBond: (...args) => mutate(walletClient, mutation.purchaseRipeBond)(...args),
3514
+ setUserConfig: (...args) => mutate(walletClient, mutation.setUserConfig)(...args),
3515
+ setUserDelegation: (...args) => mutate(walletClient, mutation.setUserDelegation)(...args),
3516
+ setUndyLegoAccess: (...args) => mutate(walletClient, mutation.setUndyLegoAccess)(...args),
3517
+ };
3518
+ }