@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,2229 @@
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: 'StabilityPoolDeposit',
9
+ inputs: [
10
+ {
11
+ name: 'user',
12
+ type: 'address',
13
+ indexed: true,
14
+ },
15
+ {
16
+ name: 'asset',
17
+ type: 'address',
18
+ indexed: true,
19
+ },
20
+ {
21
+ name: 'amount',
22
+ type: 'uint256',
23
+ indexed: false,
24
+ },
25
+ {
26
+ name: 'shares',
27
+ type: 'uint256',
28
+ indexed: false,
29
+ },
30
+ ],
31
+ anonymous: false,
32
+ type: 'event',
33
+ },
34
+ {
35
+ name: 'StabilityPoolWithdrawal',
36
+ inputs: [
37
+ {
38
+ name: 'user',
39
+ type: 'address',
40
+ indexed: true,
41
+ },
42
+ {
43
+ name: 'asset',
44
+ type: 'address',
45
+ indexed: true,
46
+ },
47
+ {
48
+ name: 'amount',
49
+ type: 'uint256',
50
+ indexed: false,
51
+ },
52
+ {
53
+ name: 'isDepleted',
54
+ type: 'bool',
55
+ indexed: false,
56
+ },
57
+ {
58
+ name: 'shares',
59
+ type: 'uint256',
60
+ indexed: false,
61
+ },
62
+ ],
63
+ anonymous: false,
64
+ type: 'event',
65
+ },
66
+ {
67
+ name: 'StabilityPoolTransfer',
68
+ inputs: [
69
+ {
70
+ name: 'fromUser',
71
+ type: 'address',
72
+ indexed: true,
73
+ },
74
+ {
75
+ name: 'toUser',
76
+ type: 'address',
77
+ indexed: true,
78
+ },
79
+ {
80
+ name: 'asset',
81
+ type: 'address',
82
+ indexed: true,
83
+ },
84
+ {
85
+ name: 'transferAmount',
86
+ type: 'uint256',
87
+ indexed: false,
88
+ },
89
+ {
90
+ name: 'isFromUserDepleted',
91
+ type: 'bool',
92
+ indexed: false,
93
+ },
94
+ {
95
+ name: 'transferShares',
96
+ type: 'uint256',
97
+ indexed: false,
98
+ },
99
+ ],
100
+ anonymous: false,
101
+ type: 'event',
102
+ },
103
+ {
104
+ name: 'VaultPauseModified',
105
+ inputs: [
106
+ {
107
+ name: 'isPaused',
108
+ type: 'bool',
109
+ indexed: false,
110
+ },
111
+ ],
112
+ anonymous: false,
113
+ type: 'event',
114
+ },
115
+ {
116
+ name: 'VaultFundsRecovered',
117
+ inputs: [
118
+ {
119
+ name: 'asset',
120
+ type: 'address',
121
+ indexed: true,
122
+ },
123
+ {
124
+ name: 'recipient',
125
+ type: 'address',
126
+ indexed: true,
127
+ },
128
+ {
129
+ name: 'balance',
130
+ type: 'uint256',
131
+ indexed: false,
132
+ },
133
+ ],
134
+ anonymous: false,
135
+ type: 'event',
136
+ },
137
+ {
138
+ name: 'AssetClaimedInStabilityPool',
139
+ inputs: [
140
+ {
141
+ name: 'user',
142
+ type: 'address',
143
+ indexed: true,
144
+ },
145
+ {
146
+ name: 'stabAsset',
147
+ type: 'address',
148
+ indexed: true,
149
+ },
150
+ {
151
+ name: 'claimAsset',
152
+ type: 'address',
153
+ indexed: true,
154
+ },
155
+ {
156
+ name: 'claimAmount',
157
+ type: 'uint256',
158
+ indexed: false,
159
+ },
160
+ {
161
+ name: 'claimUsdValue',
162
+ type: 'uint256',
163
+ indexed: false,
164
+ },
165
+ {
166
+ name: 'claimShares',
167
+ type: 'uint256',
168
+ indexed: false,
169
+ },
170
+ {
171
+ name: 'isDepleted',
172
+ type: 'bool',
173
+ indexed: false,
174
+ },
175
+ ],
176
+ anonymous: false,
177
+ type: 'event',
178
+ },
179
+ {
180
+ stateMutability: 'view',
181
+ type: 'function',
182
+ name: 'getAddys',
183
+ inputs: [],
184
+ outputs: [
185
+ {
186
+ name: '',
187
+ type: 'tuple',
188
+ components: [
189
+ {
190
+ name: 'hq',
191
+ type: 'address',
192
+ },
193
+ {
194
+ name: 'greenToken',
195
+ type: 'address',
196
+ },
197
+ {
198
+ name: 'savingsGreen',
199
+ type: 'address',
200
+ },
201
+ {
202
+ name: 'ripeToken',
203
+ type: 'address',
204
+ },
205
+ {
206
+ name: 'ledger',
207
+ type: 'address',
208
+ },
209
+ {
210
+ name: 'missionControl',
211
+ type: 'address',
212
+ },
213
+ {
214
+ name: 'switchboard',
215
+ type: 'address',
216
+ },
217
+ {
218
+ name: 'priceDesk',
219
+ type: 'address',
220
+ },
221
+ {
222
+ name: 'vaultBook',
223
+ type: 'address',
224
+ },
225
+ {
226
+ name: 'auctionHouse',
227
+ type: 'address',
228
+ },
229
+ {
230
+ name: 'auctionHouseNft',
231
+ type: 'address',
232
+ },
233
+ {
234
+ name: 'boardroom',
235
+ type: 'address',
236
+ },
237
+ {
238
+ name: 'bondRoom',
239
+ type: 'address',
240
+ },
241
+ {
242
+ name: 'creditEngine',
243
+ type: 'address',
244
+ },
245
+ {
246
+ name: 'endaoment',
247
+ type: 'address',
248
+ },
249
+ {
250
+ name: 'humanResources',
251
+ type: 'address',
252
+ },
253
+ {
254
+ name: 'lootbox',
255
+ type: 'address',
256
+ },
257
+ {
258
+ name: 'teller',
259
+ type: 'address',
260
+ },
261
+ ],
262
+ },
263
+ ],
264
+ },
265
+ {
266
+ stateMutability: 'view',
267
+ type: 'function',
268
+ name: 'getRipeHq',
269
+ inputs: [],
270
+ outputs: [
271
+ {
272
+ name: '',
273
+ type: 'address',
274
+ },
275
+ ],
276
+ },
277
+ {
278
+ stateMutability: 'view',
279
+ type: 'function',
280
+ name: 'isUserInVaultAsset',
281
+ inputs: [
282
+ {
283
+ name: '_user',
284
+ type: 'address',
285
+ },
286
+ {
287
+ name: '_asset',
288
+ type: 'address',
289
+ },
290
+ ],
291
+ outputs: [
292
+ {
293
+ name: '',
294
+ type: 'bool',
295
+ },
296
+ ],
297
+ },
298
+ {
299
+ stateMutability: 'view',
300
+ type: 'function',
301
+ name: 'doesUserHaveBalance',
302
+ inputs: [
303
+ {
304
+ name: '_user',
305
+ type: 'address',
306
+ },
307
+ {
308
+ name: '_asset',
309
+ type: 'address',
310
+ },
311
+ ],
312
+ outputs: [
313
+ {
314
+ name: '',
315
+ type: 'bool',
316
+ },
317
+ ],
318
+ },
319
+ {
320
+ stateMutability: 'nonpayable',
321
+ type: 'function',
322
+ name: 'deregisterUserAsset',
323
+ inputs: [
324
+ {
325
+ name: '_user',
326
+ type: 'address',
327
+ },
328
+ {
329
+ name: '_asset',
330
+ type: 'address',
331
+ },
332
+ ],
333
+ outputs: [
334
+ {
335
+ name: '',
336
+ type: 'bool',
337
+ },
338
+ ],
339
+ },
340
+ {
341
+ stateMutability: 'view',
342
+ type: 'function',
343
+ name: 'isSupportedVaultAsset',
344
+ inputs: [
345
+ {
346
+ name: '_asset',
347
+ type: 'address',
348
+ },
349
+ ],
350
+ outputs: [
351
+ {
352
+ name: '',
353
+ type: 'bool',
354
+ },
355
+ ],
356
+ },
357
+ {
358
+ stateMutability: 'nonpayable',
359
+ type: 'function',
360
+ name: 'deregisterVaultAsset',
361
+ inputs: [
362
+ {
363
+ name: '_asset',
364
+ type: 'address',
365
+ },
366
+ ],
367
+ outputs: [
368
+ {
369
+ name: '',
370
+ type: 'bool',
371
+ },
372
+ ],
373
+ },
374
+ {
375
+ stateMutability: 'view',
376
+ type: 'function',
377
+ name: 'doesVaultHaveAnyFunds',
378
+ inputs: [],
379
+ outputs: [
380
+ {
381
+ name: '',
382
+ type: 'bool',
383
+ },
384
+ ],
385
+ },
386
+ {
387
+ stateMutability: 'view',
388
+ type: 'function',
389
+ name: 'getNumUserAssets',
390
+ inputs: [
391
+ {
392
+ name: '_user',
393
+ type: 'address',
394
+ },
395
+ ],
396
+ outputs: [
397
+ {
398
+ name: '',
399
+ type: 'uint256',
400
+ },
401
+ ],
402
+ },
403
+ {
404
+ stateMutability: 'view',
405
+ type: 'function',
406
+ name: 'getNumVaultAssets',
407
+ inputs: [],
408
+ outputs: [
409
+ {
410
+ name: '',
411
+ type: 'uint256',
412
+ },
413
+ ],
414
+ },
415
+ {
416
+ stateMutability: 'nonpayable',
417
+ type: 'function',
418
+ name: 'pause',
419
+ inputs: [
420
+ {
421
+ name: '_shouldPause',
422
+ type: 'bool',
423
+ },
424
+ ],
425
+ outputs: [],
426
+ },
427
+ {
428
+ stateMutability: 'nonpayable',
429
+ type: 'function',
430
+ name: 'recoverFunds',
431
+ inputs: [
432
+ {
433
+ name: '_recipient',
434
+ type: 'address',
435
+ },
436
+ {
437
+ name: '_asset',
438
+ type: 'address',
439
+ },
440
+ ],
441
+ outputs: [],
442
+ },
443
+ {
444
+ stateMutability: 'nonpayable',
445
+ type: 'function',
446
+ name: 'recoverFundsMany',
447
+ inputs: [
448
+ {
449
+ name: '_recipient',
450
+ type: 'address',
451
+ },
452
+ {
453
+ name: '_assets',
454
+ type: 'address[]',
455
+ },
456
+ ],
457
+ outputs: [],
458
+ },
459
+ {
460
+ stateMutability: 'view',
461
+ type: 'function',
462
+ name: 'isPaused',
463
+ inputs: [],
464
+ outputs: [
465
+ {
466
+ name: '',
467
+ type: 'bool',
468
+ },
469
+ ],
470
+ },
471
+ {
472
+ stateMutability: 'view',
473
+ type: 'function',
474
+ name: 'userBalances',
475
+ inputs: [
476
+ {
477
+ name: 'arg0',
478
+ type: 'address',
479
+ },
480
+ {
481
+ name: 'arg1',
482
+ type: 'address',
483
+ },
484
+ ],
485
+ outputs: [
486
+ {
487
+ name: '',
488
+ type: 'uint256',
489
+ },
490
+ ],
491
+ },
492
+ {
493
+ stateMutability: 'view',
494
+ type: 'function',
495
+ name: 'totalBalances',
496
+ inputs: [
497
+ {
498
+ name: 'arg0',
499
+ type: 'address',
500
+ },
501
+ ],
502
+ outputs: [
503
+ {
504
+ name: '',
505
+ type: 'uint256',
506
+ },
507
+ ],
508
+ },
509
+ {
510
+ stateMutability: 'view',
511
+ type: 'function',
512
+ name: 'userAssets',
513
+ inputs: [
514
+ {
515
+ name: 'arg0',
516
+ type: 'address',
517
+ },
518
+ {
519
+ name: 'arg1',
520
+ type: 'uint256',
521
+ },
522
+ ],
523
+ outputs: [
524
+ {
525
+ name: '',
526
+ type: 'address',
527
+ },
528
+ ],
529
+ },
530
+ {
531
+ stateMutability: 'view',
532
+ type: 'function',
533
+ name: 'indexOfUserAsset',
534
+ inputs: [
535
+ {
536
+ name: 'arg0',
537
+ type: 'address',
538
+ },
539
+ {
540
+ name: 'arg1',
541
+ type: 'address',
542
+ },
543
+ ],
544
+ outputs: [
545
+ {
546
+ name: '',
547
+ type: 'uint256',
548
+ },
549
+ ],
550
+ },
551
+ {
552
+ stateMutability: 'view',
553
+ type: 'function',
554
+ name: 'numUserAssets',
555
+ inputs: [
556
+ {
557
+ name: 'arg0',
558
+ type: 'address',
559
+ },
560
+ ],
561
+ outputs: [
562
+ {
563
+ name: '',
564
+ type: 'uint256',
565
+ },
566
+ ],
567
+ },
568
+ {
569
+ stateMutability: 'view',
570
+ type: 'function',
571
+ name: 'vaultAssets',
572
+ inputs: [
573
+ {
574
+ name: 'arg0',
575
+ type: 'uint256',
576
+ },
577
+ ],
578
+ outputs: [
579
+ {
580
+ name: '',
581
+ type: 'address',
582
+ },
583
+ ],
584
+ },
585
+ {
586
+ stateMutability: 'view',
587
+ type: 'function',
588
+ name: 'indexOfAsset',
589
+ inputs: [
590
+ {
591
+ name: 'arg0',
592
+ type: 'address',
593
+ },
594
+ ],
595
+ outputs: [
596
+ {
597
+ name: '',
598
+ type: 'uint256',
599
+ },
600
+ ],
601
+ },
602
+ {
603
+ stateMutability: 'view',
604
+ type: 'function',
605
+ name: 'numAssets',
606
+ inputs: [],
607
+ outputs: [
608
+ {
609
+ name: '',
610
+ type: 'uint256',
611
+ },
612
+ ],
613
+ },
614
+ {
615
+ stateMutability: 'view',
616
+ type: 'function',
617
+ name: 'valueToShares',
618
+ inputs: [
619
+ {
620
+ name: '_asset',
621
+ type: 'address',
622
+ },
623
+ {
624
+ name: '_usdValue',
625
+ type: 'uint256',
626
+ },
627
+ {
628
+ name: '_shouldRoundUp',
629
+ type: 'bool',
630
+ },
631
+ ],
632
+ outputs: [
633
+ {
634
+ name: '',
635
+ type: 'uint256',
636
+ },
637
+ ],
638
+ },
639
+ {
640
+ stateMutability: 'view',
641
+ type: 'function',
642
+ name: 'sharesToValue',
643
+ inputs: [
644
+ {
645
+ name: '_asset',
646
+ type: 'address',
647
+ },
648
+ {
649
+ name: '_shares',
650
+ type: 'uint256',
651
+ },
652
+ {
653
+ name: '_shouldRoundUp',
654
+ type: 'bool',
655
+ },
656
+ ],
657
+ outputs: [
658
+ {
659
+ name: '',
660
+ type: 'uint256',
661
+ },
662
+ ],
663
+ },
664
+ {
665
+ stateMutability: 'nonpayable',
666
+ type: 'function',
667
+ name: 'swapForLiquidatedCollateral',
668
+ inputs: [
669
+ {
670
+ name: '_stabAsset',
671
+ type: 'address',
672
+ },
673
+ {
674
+ name: '_stabAssetAmount',
675
+ type: 'uint256',
676
+ },
677
+ {
678
+ name: '_liqAsset',
679
+ type: 'address',
680
+ },
681
+ {
682
+ name: '_liqAmountSent',
683
+ type: 'uint256',
684
+ },
685
+ {
686
+ name: '_recipient',
687
+ type: 'address',
688
+ },
689
+ {
690
+ name: '_greenToken',
691
+ type: 'address',
692
+ },
693
+ {
694
+ name: '_savingsGreenToken',
695
+ type: 'address',
696
+ },
697
+ ],
698
+ outputs: [
699
+ {
700
+ name: '',
701
+ type: 'uint256',
702
+ },
703
+ ],
704
+ },
705
+ {
706
+ stateMutability: 'nonpayable',
707
+ type: 'function',
708
+ name: 'swapWithClaimableGreen',
709
+ inputs: [
710
+ {
711
+ name: '_stabAsset',
712
+ type: 'address',
713
+ },
714
+ {
715
+ name: '_greenAmount',
716
+ type: 'uint256',
717
+ },
718
+ {
719
+ name: '_liqAsset',
720
+ type: 'address',
721
+ },
722
+ {
723
+ name: '_liqAmountSent',
724
+ type: 'uint256',
725
+ },
726
+ {
727
+ name: '_greenToken',
728
+ type: 'address',
729
+ },
730
+ ],
731
+ outputs: [
732
+ {
733
+ name: '',
734
+ type: 'uint256',
735
+ },
736
+ ],
737
+ },
738
+ {
739
+ stateMutability: 'view',
740
+ type: 'function',
741
+ name: 'getTotalValue',
742
+ inputs: [
743
+ {
744
+ name: '_asset',
745
+ type: 'address',
746
+ },
747
+ ],
748
+ outputs: [
749
+ {
750
+ name: '',
751
+ type: 'uint256',
752
+ },
753
+ ],
754
+ },
755
+ {
756
+ stateMutability: 'view',
757
+ type: 'function',
758
+ name: 'getTotalUserValue',
759
+ inputs: [
760
+ {
761
+ name: '_user',
762
+ type: 'address',
763
+ },
764
+ {
765
+ name: '_asset',
766
+ type: 'address',
767
+ },
768
+ ],
769
+ outputs: [
770
+ {
771
+ name: '',
772
+ type: 'uint256',
773
+ },
774
+ ],
775
+ },
776
+ {
777
+ stateMutability: 'nonpayable',
778
+ type: 'function',
779
+ name: 'claimFromStabilityPool',
780
+ inputs: [
781
+ {
782
+ name: '_claimer',
783
+ type: 'address',
784
+ },
785
+ {
786
+ name: '_stabAsset',
787
+ type: 'address',
788
+ },
789
+ {
790
+ name: '_claimAsset',
791
+ type: 'address',
792
+ },
793
+ {
794
+ name: '_maxUsdValue',
795
+ type: 'uint256',
796
+ },
797
+ {
798
+ name: '_caller',
799
+ type: 'address',
800
+ },
801
+ {
802
+ name: '_shouldAutoDeposit',
803
+ type: 'bool',
804
+ },
805
+ ],
806
+ outputs: [
807
+ {
808
+ name: '',
809
+ type: 'uint256',
810
+ },
811
+ ],
812
+ },
813
+ {
814
+ stateMutability: 'nonpayable',
815
+ type: 'function',
816
+ name: 'claimFromStabilityPool',
817
+ inputs: [
818
+ {
819
+ name: '_claimer',
820
+ type: 'address',
821
+ },
822
+ {
823
+ name: '_stabAsset',
824
+ type: 'address',
825
+ },
826
+ {
827
+ name: '_claimAsset',
828
+ type: 'address',
829
+ },
830
+ {
831
+ name: '_maxUsdValue',
832
+ type: 'uint256',
833
+ },
834
+ {
835
+ name: '_caller',
836
+ type: 'address',
837
+ },
838
+ {
839
+ name: '_shouldAutoDeposit',
840
+ type: 'bool',
841
+ },
842
+ {
843
+ name: '_a',
844
+ type: 'tuple',
845
+ components: [
846
+ {
847
+ name: 'hq',
848
+ type: 'address',
849
+ },
850
+ {
851
+ name: 'greenToken',
852
+ type: 'address',
853
+ },
854
+ {
855
+ name: 'savingsGreen',
856
+ type: 'address',
857
+ },
858
+ {
859
+ name: 'ripeToken',
860
+ type: 'address',
861
+ },
862
+ {
863
+ name: 'ledger',
864
+ type: 'address',
865
+ },
866
+ {
867
+ name: 'missionControl',
868
+ type: 'address',
869
+ },
870
+ {
871
+ name: 'switchboard',
872
+ type: 'address',
873
+ },
874
+ {
875
+ name: 'priceDesk',
876
+ type: 'address',
877
+ },
878
+ {
879
+ name: 'vaultBook',
880
+ type: 'address',
881
+ },
882
+ {
883
+ name: 'auctionHouse',
884
+ type: 'address',
885
+ },
886
+ {
887
+ name: 'auctionHouseNft',
888
+ type: 'address',
889
+ },
890
+ {
891
+ name: 'boardroom',
892
+ type: 'address',
893
+ },
894
+ {
895
+ name: 'bondRoom',
896
+ type: 'address',
897
+ },
898
+ {
899
+ name: 'creditEngine',
900
+ type: 'address',
901
+ },
902
+ {
903
+ name: 'endaoment',
904
+ type: 'address',
905
+ },
906
+ {
907
+ name: 'humanResources',
908
+ type: 'address',
909
+ },
910
+ {
911
+ name: 'lootbox',
912
+ type: 'address',
913
+ },
914
+ {
915
+ name: 'teller',
916
+ type: 'address',
917
+ },
918
+ ],
919
+ },
920
+ ],
921
+ outputs: [
922
+ {
923
+ name: '',
924
+ type: 'uint256',
925
+ },
926
+ ],
927
+ },
928
+ {
929
+ stateMutability: 'nonpayable',
930
+ type: 'function',
931
+ name: 'claimManyFromStabilityPool',
932
+ inputs: [
933
+ {
934
+ name: '_claimer',
935
+ type: 'address',
936
+ },
937
+ {
938
+ name: '_claims',
939
+ type: 'tuple[]',
940
+ components: [
941
+ {
942
+ name: 'stabAsset',
943
+ type: 'address',
944
+ },
945
+ {
946
+ name: 'claimAsset',
947
+ type: 'address',
948
+ },
949
+ {
950
+ name: 'maxUsdValue',
951
+ type: 'uint256',
952
+ },
953
+ ],
954
+ },
955
+ {
956
+ name: '_caller',
957
+ type: 'address',
958
+ },
959
+ {
960
+ name: '_shouldAutoDeposit',
961
+ type: 'bool',
962
+ },
963
+ ],
964
+ outputs: [
965
+ {
966
+ name: '',
967
+ type: 'uint256',
968
+ },
969
+ ],
970
+ },
971
+ {
972
+ stateMutability: 'nonpayable',
973
+ type: 'function',
974
+ name: 'claimManyFromStabilityPool',
975
+ inputs: [
976
+ {
977
+ name: '_claimer',
978
+ type: 'address',
979
+ },
980
+ {
981
+ name: '_claims',
982
+ type: 'tuple[]',
983
+ components: [
984
+ {
985
+ name: 'stabAsset',
986
+ type: 'address',
987
+ },
988
+ {
989
+ name: 'claimAsset',
990
+ type: 'address',
991
+ },
992
+ {
993
+ name: 'maxUsdValue',
994
+ type: 'uint256',
995
+ },
996
+ ],
997
+ },
998
+ {
999
+ name: '_caller',
1000
+ type: 'address',
1001
+ },
1002
+ {
1003
+ name: '_shouldAutoDeposit',
1004
+ type: 'bool',
1005
+ },
1006
+ {
1007
+ name: '_a',
1008
+ type: 'tuple',
1009
+ components: [
1010
+ {
1011
+ name: 'hq',
1012
+ type: 'address',
1013
+ },
1014
+ {
1015
+ name: 'greenToken',
1016
+ type: 'address',
1017
+ },
1018
+ {
1019
+ name: 'savingsGreen',
1020
+ type: 'address',
1021
+ },
1022
+ {
1023
+ name: 'ripeToken',
1024
+ type: 'address',
1025
+ },
1026
+ {
1027
+ name: 'ledger',
1028
+ type: 'address',
1029
+ },
1030
+ {
1031
+ name: 'missionControl',
1032
+ type: 'address',
1033
+ },
1034
+ {
1035
+ name: 'switchboard',
1036
+ type: 'address',
1037
+ },
1038
+ {
1039
+ name: 'priceDesk',
1040
+ type: 'address',
1041
+ },
1042
+ {
1043
+ name: 'vaultBook',
1044
+ type: 'address',
1045
+ },
1046
+ {
1047
+ name: 'auctionHouse',
1048
+ type: 'address',
1049
+ },
1050
+ {
1051
+ name: 'auctionHouseNft',
1052
+ type: 'address',
1053
+ },
1054
+ {
1055
+ name: 'boardroom',
1056
+ type: 'address',
1057
+ },
1058
+ {
1059
+ name: 'bondRoom',
1060
+ type: 'address',
1061
+ },
1062
+ {
1063
+ name: 'creditEngine',
1064
+ type: 'address',
1065
+ },
1066
+ {
1067
+ name: 'endaoment',
1068
+ type: 'address',
1069
+ },
1070
+ {
1071
+ name: 'humanResources',
1072
+ type: 'address',
1073
+ },
1074
+ {
1075
+ name: 'lootbox',
1076
+ type: 'address',
1077
+ },
1078
+ {
1079
+ name: 'teller',
1080
+ type: 'address',
1081
+ },
1082
+ ],
1083
+ },
1084
+ ],
1085
+ outputs: [
1086
+ {
1087
+ name: '',
1088
+ type: 'uint256',
1089
+ },
1090
+ ],
1091
+ },
1092
+ {
1093
+ stateMutability: 'nonpayable',
1094
+ type: 'function',
1095
+ name: 'redeemFromStabilityPool',
1096
+ inputs: [
1097
+ {
1098
+ name: '_asset',
1099
+ type: 'address',
1100
+ },
1101
+ {
1102
+ name: '_greenAmount',
1103
+ type: 'uint256',
1104
+ },
1105
+ {
1106
+ name: '_recipient',
1107
+ type: 'address',
1108
+ },
1109
+ {
1110
+ name: '_caller',
1111
+ type: 'address',
1112
+ },
1113
+ {
1114
+ name: '_shouldAutoDeposit',
1115
+ type: 'bool',
1116
+ },
1117
+ {
1118
+ name: '_shouldRefundSavingsGreen',
1119
+ type: 'bool',
1120
+ },
1121
+ ],
1122
+ outputs: [
1123
+ {
1124
+ name: '',
1125
+ type: 'uint256',
1126
+ },
1127
+ ],
1128
+ },
1129
+ {
1130
+ stateMutability: 'nonpayable',
1131
+ type: 'function',
1132
+ name: 'redeemFromStabilityPool',
1133
+ inputs: [
1134
+ {
1135
+ name: '_asset',
1136
+ type: 'address',
1137
+ },
1138
+ {
1139
+ name: '_greenAmount',
1140
+ type: 'uint256',
1141
+ },
1142
+ {
1143
+ name: '_recipient',
1144
+ type: 'address',
1145
+ },
1146
+ {
1147
+ name: '_caller',
1148
+ type: 'address',
1149
+ },
1150
+ {
1151
+ name: '_shouldAutoDeposit',
1152
+ type: 'bool',
1153
+ },
1154
+ {
1155
+ name: '_shouldRefundSavingsGreen',
1156
+ type: 'bool',
1157
+ },
1158
+ {
1159
+ name: '_a',
1160
+ type: 'tuple',
1161
+ components: [
1162
+ {
1163
+ name: 'hq',
1164
+ type: 'address',
1165
+ },
1166
+ {
1167
+ name: 'greenToken',
1168
+ type: 'address',
1169
+ },
1170
+ {
1171
+ name: 'savingsGreen',
1172
+ type: 'address',
1173
+ },
1174
+ {
1175
+ name: 'ripeToken',
1176
+ type: 'address',
1177
+ },
1178
+ {
1179
+ name: 'ledger',
1180
+ type: 'address',
1181
+ },
1182
+ {
1183
+ name: 'missionControl',
1184
+ type: 'address',
1185
+ },
1186
+ {
1187
+ name: 'switchboard',
1188
+ type: 'address',
1189
+ },
1190
+ {
1191
+ name: 'priceDesk',
1192
+ type: 'address',
1193
+ },
1194
+ {
1195
+ name: 'vaultBook',
1196
+ type: 'address',
1197
+ },
1198
+ {
1199
+ name: 'auctionHouse',
1200
+ type: 'address',
1201
+ },
1202
+ {
1203
+ name: 'auctionHouseNft',
1204
+ type: 'address',
1205
+ },
1206
+ {
1207
+ name: 'boardroom',
1208
+ type: 'address',
1209
+ },
1210
+ {
1211
+ name: 'bondRoom',
1212
+ type: 'address',
1213
+ },
1214
+ {
1215
+ name: 'creditEngine',
1216
+ type: 'address',
1217
+ },
1218
+ {
1219
+ name: 'endaoment',
1220
+ type: 'address',
1221
+ },
1222
+ {
1223
+ name: 'humanResources',
1224
+ type: 'address',
1225
+ },
1226
+ {
1227
+ name: 'lootbox',
1228
+ type: 'address',
1229
+ },
1230
+ {
1231
+ name: 'teller',
1232
+ type: 'address',
1233
+ },
1234
+ ],
1235
+ },
1236
+ ],
1237
+ outputs: [
1238
+ {
1239
+ name: '',
1240
+ type: 'uint256',
1241
+ },
1242
+ ],
1243
+ },
1244
+ {
1245
+ stateMutability: 'nonpayable',
1246
+ type: 'function',
1247
+ name: 'redeemManyFromStabilityPool',
1248
+ inputs: [
1249
+ {
1250
+ name: '_redemptions',
1251
+ type: 'tuple[]',
1252
+ components: [
1253
+ {
1254
+ name: 'claimAsset',
1255
+ type: 'address',
1256
+ },
1257
+ {
1258
+ name: 'maxGreenAmount',
1259
+ type: 'uint256',
1260
+ },
1261
+ ],
1262
+ },
1263
+ {
1264
+ name: '_greenAmount',
1265
+ type: 'uint256',
1266
+ },
1267
+ {
1268
+ name: '_recipient',
1269
+ type: 'address',
1270
+ },
1271
+ {
1272
+ name: '_caller',
1273
+ type: 'address',
1274
+ },
1275
+ {
1276
+ name: '_shouldAutoDeposit',
1277
+ type: 'bool',
1278
+ },
1279
+ {
1280
+ name: '_shouldRefundSavingsGreen',
1281
+ type: 'bool',
1282
+ },
1283
+ ],
1284
+ outputs: [
1285
+ {
1286
+ name: '',
1287
+ type: 'uint256',
1288
+ },
1289
+ ],
1290
+ },
1291
+ {
1292
+ stateMutability: 'nonpayable',
1293
+ type: 'function',
1294
+ name: 'redeemManyFromStabilityPool',
1295
+ inputs: [
1296
+ {
1297
+ name: '_redemptions',
1298
+ type: 'tuple[]',
1299
+ components: [
1300
+ {
1301
+ name: 'claimAsset',
1302
+ type: 'address',
1303
+ },
1304
+ {
1305
+ name: 'maxGreenAmount',
1306
+ type: 'uint256',
1307
+ },
1308
+ ],
1309
+ },
1310
+ {
1311
+ name: '_greenAmount',
1312
+ type: 'uint256',
1313
+ },
1314
+ {
1315
+ name: '_recipient',
1316
+ type: 'address',
1317
+ },
1318
+ {
1319
+ name: '_caller',
1320
+ type: 'address',
1321
+ },
1322
+ {
1323
+ name: '_shouldAutoDeposit',
1324
+ type: 'bool',
1325
+ },
1326
+ {
1327
+ name: '_shouldRefundSavingsGreen',
1328
+ type: 'bool',
1329
+ },
1330
+ {
1331
+ name: '_a',
1332
+ type: 'tuple',
1333
+ components: [
1334
+ {
1335
+ name: 'hq',
1336
+ type: 'address',
1337
+ },
1338
+ {
1339
+ name: 'greenToken',
1340
+ type: 'address',
1341
+ },
1342
+ {
1343
+ name: 'savingsGreen',
1344
+ type: 'address',
1345
+ },
1346
+ {
1347
+ name: 'ripeToken',
1348
+ type: 'address',
1349
+ },
1350
+ {
1351
+ name: 'ledger',
1352
+ type: 'address',
1353
+ },
1354
+ {
1355
+ name: 'missionControl',
1356
+ type: 'address',
1357
+ },
1358
+ {
1359
+ name: 'switchboard',
1360
+ type: 'address',
1361
+ },
1362
+ {
1363
+ name: 'priceDesk',
1364
+ type: 'address',
1365
+ },
1366
+ {
1367
+ name: 'vaultBook',
1368
+ type: 'address',
1369
+ },
1370
+ {
1371
+ name: 'auctionHouse',
1372
+ type: 'address',
1373
+ },
1374
+ {
1375
+ name: 'auctionHouseNft',
1376
+ type: 'address',
1377
+ },
1378
+ {
1379
+ name: 'boardroom',
1380
+ type: 'address',
1381
+ },
1382
+ {
1383
+ name: 'bondRoom',
1384
+ type: 'address',
1385
+ },
1386
+ {
1387
+ name: 'creditEngine',
1388
+ type: 'address',
1389
+ },
1390
+ {
1391
+ name: 'endaoment',
1392
+ type: 'address',
1393
+ },
1394
+ {
1395
+ name: 'humanResources',
1396
+ type: 'address',
1397
+ },
1398
+ {
1399
+ name: 'lootbox',
1400
+ type: 'address',
1401
+ },
1402
+ {
1403
+ name: 'teller',
1404
+ type: 'address',
1405
+ },
1406
+ ],
1407
+ },
1408
+ ],
1409
+ outputs: [
1410
+ {
1411
+ name: '',
1412
+ type: 'uint256',
1413
+ },
1414
+ ],
1415
+ },
1416
+ {
1417
+ stateMutability: 'view',
1418
+ type: 'function',
1419
+ name: 'claimableBalances',
1420
+ inputs: [
1421
+ {
1422
+ name: 'arg0',
1423
+ type: 'address',
1424
+ },
1425
+ {
1426
+ name: 'arg1',
1427
+ type: 'address',
1428
+ },
1429
+ ],
1430
+ outputs: [
1431
+ {
1432
+ name: '',
1433
+ type: 'uint256',
1434
+ },
1435
+ ],
1436
+ },
1437
+ {
1438
+ stateMutability: 'view',
1439
+ type: 'function',
1440
+ name: 'totalClaimableBalances',
1441
+ inputs: [
1442
+ {
1443
+ name: 'arg0',
1444
+ type: 'address',
1445
+ },
1446
+ ],
1447
+ outputs: [
1448
+ {
1449
+ name: '',
1450
+ type: 'uint256',
1451
+ },
1452
+ ],
1453
+ },
1454
+ {
1455
+ stateMutability: 'view',
1456
+ type: 'function',
1457
+ name: 'claimableAssets',
1458
+ inputs: [
1459
+ {
1460
+ name: 'arg0',
1461
+ type: 'address',
1462
+ },
1463
+ {
1464
+ name: 'arg1',
1465
+ type: 'uint256',
1466
+ },
1467
+ ],
1468
+ outputs: [
1469
+ {
1470
+ name: '',
1471
+ type: 'address',
1472
+ },
1473
+ ],
1474
+ },
1475
+ {
1476
+ stateMutability: 'view',
1477
+ type: 'function',
1478
+ name: 'indexOfClaimableAsset',
1479
+ inputs: [
1480
+ {
1481
+ name: 'arg0',
1482
+ type: 'address',
1483
+ },
1484
+ {
1485
+ name: 'arg1',
1486
+ type: 'address',
1487
+ },
1488
+ ],
1489
+ outputs: [
1490
+ {
1491
+ name: '',
1492
+ type: 'uint256',
1493
+ },
1494
+ ],
1495
+ },
1496
+ {
1497
+ stateMutability: 'view',
1498
+ type: 'function',
1499
+ name: 'numClaimableAssets',
1500
+ inputs: [
1501
+ {
1502
+ name: 'arg0',
1503
+ type: 'address',
1504
+ },
1505
+ ],
1506
+ outputs: [
1507
+ {
1508
+ name: '',
1509
+ type: 'uint256',
1510
+ },
1511
+ ],
1512
+ },
1513
+ {
1514
+ stateMutability: 'nonpayable',
1515
+ type: 'function',
1516
+ name: 'depositTokensInVault',
1517
+ inputs: [
1518
+ {
1519
+ name: '_user',
1520
+ type: 'address',
1521
+ },
1522
+ {
1523
+ name: '_asset',
1524
+ type: 'address',
1525
+ },
1526
+ {
1527
+ name: '_amount',
1528
+ type: 'uint256',
1529
+ },
1530
+ ],
1531
+ outputs: [
1532
+ {
1533
+ name: '',
1534
+ type: 'uint256',
1535
+ },
1536
+ ],
1537
+ },
1538
+ {
1539
+ stateMutability: 'nonpayable',
1540
+ type: 'function',
1541
+ name: 'depositTokensInVault',
1542
+ inputs: [
1543
+ {
1544
+ name: '_user',
1545
+ type: 'address',
1546
+ },
1547
+ {
1548
+ name: '_asset',
1549
+ type: 'address',
1550
+ },
1551
+ {
1552
+ name: '_amount',
1553
+ type: 'uint256',
1554
+ },
1555
+ {
1556
+ name: '_a',
1557
+ type: 'tuple',
1558
+ components: [
1559
+ {
1560
+ name: 'hq',
1561
+ type: 'address',
1562
+ },
1563
+ {
1564
+ name: 'greenToken',
1565
+ type: 'address',
1566
+ },
1567
+ {
1568
+ name: 'savingsGreen',
1569
+ type: 'address',
1570
+ },
1571
+ {
1572
+ name: 'ripeToken',
1573
+ type: 'address',
1574
+ },
1575
+ {
1576
+ name: 'ledger',
1577
+ type: 'address',
1578
+ },
1579
+ {
1580
+ name: 'missionControl',
1581
+ type: 'address',
1582
+ },
1583
+ {
1584
+ name: 'switchboard',
1585
+ type: 'address',
1586
+ },
1587
+ {
1588
+ name: 'priceDesk',
1589
+ type: 'address',
1590
+ },
1591
+ {
1592
+ name: 'vaultBook',
1593
+ type: 'address',
1594
+ },
1595
+ {
1596
+ name: 'auctionHouse',
1597
+ type: 'address',
1598
+ },
1599
+ {
1600
+ name: 'auctionHouseNft',
1601
+ type: 'address',
1602
+ },
1603
+ {
1604
+ name: 'boardroom',
1605
+ type: 'address',
1606
+ },
1607
+ {
1608
+ name: 'bondRoom',
1609
+ type: 'address',
1610
+ },
1611
+ {
1612
+ name: 'creditEngine',
1613
+ type: 'address',
1614
+ },
1615
+ {
1616
+ name: 'endaoment',
1617
+ type: 'address',
1618
+ },
1619
+ {
1620
+ name: 'humanResources',
1621
+ type: 'address',
1622
+ },
1623
+ {
1624
+ name: 'lootbox',
1625
+ type: 'address',
1626
+ },
1627
+ {
1628
+ name: 'teller',
1629
+ type: 'address',
1630
+ },
1631
+ ],
1632
+ },
1633
+ ],
1634
+ outputs: [
1635
+ {
1636
+ name: '',
1637
+ type: 'uint256',
1638
+ },
1639
+ ],
1640
+ },
1641
+ {
1642
+ stateMutability: 'nonpayable',
1643
+ type: 'function',
1644
+ name: 'withdrawTokensFromVault',
1645
+ inputs: [
1646
+ {
1647
+ name: '_user',
1648
+ type: 'address',
1649
+ },
1650
+ {
1651
+ name: '_asset',
1652
+ type: 'address',
1653
+ },
1654
+ {
1655
+ name: '_amount',
1656
+ type: 'uint256',
1657
+ },
1658
+ {
1659
+ name: '_recipient',
1660
+ type: 'address',
1661
+ },
1662
+ ],
1663
+ outputs: [
1664
+ {
1665
+ name: '',
1666
+ type: 'uint256',
1667
+ },
1668
+ {
1669
+ name: '',
1670
+ type: 'bool',
1671
+ },
1672
+ ],
1673
+ },
1674
+ {
1675
+ stateMutability: 'nonpayable',
1676
+ type: 'function',
1677
+ name: 'withdrawTokensFromVault',
1678
+ inputs: [
1679
+ {
1680
+ name: '_user',
1681
+ type: 'address',
1682
+ },
1683
+ {
1684
+ name: '_asset',
1685
+ type: 'address',
1686
+ },
1687
+ {
1688
+ name: '_amount',
1689
+ type: 'uint256',
1690
+ },
1691
+ {
1692
+ name: '_recipient',
1693
+ type: 'address',
1694
+ },
1695
+ {
1696
+ name: '_a',
1697
+ type: 'tuple',
1698
+ components: [
1699
+ {
1700
+ name: 'hq',
1701
+ type: 'address',
1702
+ },
1703
+ {
1704
+ name: 'greenToken',
1705
+ type: 'address',
1706
+ },
1707
+ {
1708
+ name: 'savingsGreen',
1709
+ type: 'address',
1710
+ },
1711
+ {
1712
+ name: 'ripeToken',
1713
+ type: 'address',
1714
+ },
1715
+ {
1716
+ name: 'ledger',
1717
+ type: 'address',
1718
+ },
1719
+ {
1720
+ name: 'missionControl',
1721
+ type: 'address',
1722
+ },
1723
+ {
1724
+ name: 'switchboard',
1725
+ type: 'address',
1726
+ },
1727
+ {
1728
+ name: 'priceDesk',
1729
+ type: 'address',
1730
+ },
1731
+ {
1732
+ name: 'vaultBook',
1733
+ type: 'address',
1734
+ },
1735
+ {
1736
+ name: 'auctionHouse',
1737
+ type: 'address',
1738
+ },
1739
+ {
1740
+ name: 'auctionHouseNft',
1741
+ type: 'address',
1742
+ },
1743
+ {
1744
+ name: 'boardroom',
1745
+ type: 'address',
1746
+ },
1747
+ {
1748
+ name: 'bondRoom',
1749
+ type: 'address',
1750
+ },
1751
+ {
1752
+ name: 'creditEngine',
1753
+ type: 'address',
1754
+ },
1755
+ {
1756
+ name: 'endaoment',
1757
+ type: 'address',
1758
+ },
1759
+ {
1760
+ name: 'humanResources',
1761
+ type: 'address',
1762
+ },
1763
+ {
1764
+ name: 'lootbox',
1765
+ type: 'address',
1766
+ },
1767
+ {
1768
+ name: 'teller',
1769
+ type: 'address',
1770
+ },
1771
+ ],
1772
+ },
1773
+ ],
1774
+ outputs: [
1775
+ {
1776
+ name: '',
1777
+ type: 'uint256',
1778
+ },
1779
+ {
1780
+ name: '',
1781
+ type: 'bool',
1782
+ },
1783
+ ],
1784
+ },
1785
+ {
1786
+ stateMutability: 'nonpayable',
1787
+ type: 'function',
1788
+ name: 'transferBalanceWithinVault',
1789
+ inputs: [
1790
+ {
1791
+ name: '_asset',
1792
+ type: 'address',
1793
+ },
1794
+ {
1795
+ name: '_fromUser',
1796
+ type: 'address',
1797
+ },
1798
+ {
1799
+ name: '_toUser',
1800
+ type: 'address',
1801
+ },
1802
+ {
1803
+ name: '_transferAmount',
1804
+ type: 'uint256',
1805
+ },
1806
+ ],
1807
+ outputs: [
1808
+ {
1809
+ name: '',
1810
+ type: 'uint256',
1811
+ },
1812
+ {
1813
+ name: '',
1814
+ type: 'bool',
1815
+ },
1816
+ ],
1817
+ },
1818
+ {
1819
+ stateMutability: 'nonpayable',
1820
+ type: 'function',
1821
+ name: 'transferBalanceWithinVault',
1822
+ inputs: [
1823
+ {
1824
+ name: '_asset',
1825
+ type: 'address',
1826
+ },
1827
+ {
1828
+ name: '_fromUser',
1829
+ type: 'address',
1830
+ },
1831
+ {
1832
+ name: '_toUser',
1833
+ type: 'address',
1834
+ },
1835
+ {
1836
+ name: '_transferAmount',
1837
+ type: 'uint256',
1838
+ },
1839
+ {
1840
+ name: '_a',
1841
+ type: 'tuple',
1842
+ components: [
1843
+ {
1844
+ name: 'hq',
1845
+ type: 'address',
1846
+ },
1847
+ {
1848
+ name: 'greenToken',
1849
+ type: 'address',
1850
+ },
1851
+ {
1852
+ name: 'savingsGreen',
1853
+ type: 'address',
1854
+ },
1855
+ {
1856
+ name: 'ripeToken',
1857
+ type: 'address',
1858
+ },
1859
+ {
1860
+ name: 'ledger',
1861
+ type: 'address',
1862
+ },
1863
+ {
1864
+ name: 'missionControl',
1865
+ type: 'address',
1866
+ },
1867
+ {
1868
+ name: 'switchboard',
1869
+ type: 'address',
1870
+ },
1871
+ {
1872
+ name: 'priceDesk',
1873
+ type: 'address',
1874
+ },
1875
+ {
1876
+ name: 'vaultBook',
1877
+ type: 'address',
1878
+ },
1879
+ {
1880
+ name: 'auctionHouse',
1881
+ type: 'address',
1882
+ },
1883
+ {
1884
+ name: 'auctionHouseNft',
1885
+ type: 'address',
1886
+ },
1887
+ {
1888
+ name: 'boardroom',
1889
+ type: 'address',
1890
+ },
1891
+ {
1892
+ name: 'bondRoom',
1893
+ type: 'address',
1894
+ },
1895
+ {
1896
+ name: 'creditEngine',
1897
+ type: 'address',
1898
+ },
1899
+ {
1900
+ name: 'endaoment',
1901
+ type: 'address',
1902
+ },
1903
+ {
1904
+ name: 'humanResources',
1905
+ type: 'address',
1906
+ },
1907
+ {
1908
+ name: 'lootbox',
1909
+ type: 'address',
1910
+ },
1911
+ {
1912
+ name: 'teller',
1913
+ type: 'address',
1914
+ },
1915
+ ],
1916
+ },
1917
+ ],
1918
+ outputs: [
1919
+ {
1920
+ name: '',
1921
+ type: 'uint256',
1922
+ },
1923
+ {
1924
+ name: '',
1925
+ type: 'bool',
1926
+ },
1927
+ ],
1928
+ },
1929
+ {
1930
+ stateMutability: 'view',
1931
+ type: 'function',
1932
+ name: 'getVaultDataOnDeposit',
1933
+ inputs: [
1934
+ {
1935
+ name: '_user',
1936
+ type: 'address',
1937
+ },
1938
+ {
1939
+ name: '_asset',
1940
+ type: 'address',
1941
+ },
1942
+ ],
1943
+ outputs: [
1944
+ {
1945
+ name: '',
1946
+ type: 'tuple',
1947
+ components: [
1948
+ {
1949
+ name: 'hasPosition',
1950
+ type: 'bool',
1951
+ },
1952
+ {
1953
+ name: 'numAssets',
1954
+ type: 'uint256',
1955
+ },
1956
+ {
1957
+ name: 'userBalance',
1958
+ type: 'uint256',
1959
+ },
1960
+ {
1961
+ name: 'totalBalance',
1962
+ type: 'uint256',
1963
+ },
1964
+ ],
1965
+ },
1966
+ ],
1967
+ },
1968
+ {
1969
+ stateMutability: 'view',
1970
+ type: 'function',
1971
+ name: 'getUserLootBoxShare',
1972
+ inputs: [
1973
+ {
1974
+ name: '_user',
1975
+ type: 'address',
1976
+ },
1977
+ {
1978
+ name: '_asset',
1979
+ type: 'address',
1980
+ },
1981
+ ],
1982
+ outputs: [
1983
+ {
1984
+ name: '',
1985
+ type: 'uint256',
1986
+ },
1987
+ ],
1988
+ },
1989
+ {
1990
+ stateMutability: 'view',
1991
+ type: 'function',
1992
+ name: 'getUserAssetAndAmountAtIndex',
1993
+ inputs: [
1994
+ {
1995
+ name: '_user',
1996
+ type: 'address',
1997
+ },
1998
+ {
1999
+ name: '_index',
2000
+ type: 'uint256',
2001
+ },
2002
+ ],
2003
+ outputs: [
2004
+ {
2005
+ name: '',
2006
+ type: 'address',
2007
+ },
2008
+ {
2009
+ name: '',
2010
+ type: 'uint256',
2011
+ },
2012
+ ],
2013
+ },
2014
+ {
2015
+ stateMutability: 'view',
2016
+ type: 'function',
2017
+ name: 'getUserAssetAtIndexAndHasBalance',
2018
+ inputs: [
2019
+ {
2020
+ name: '_user',
2021
+ type: 'address',
2022
+ },
2023
+ {
2024
+ name: '_index',
2025
+ type: 'uint256',
2026
+ },
2027
+ ],
2028
+ outputs: [
2029
+ {
2030
+ name: '',
2031
+ type: 'address',
2032
+ },
2033
+ {
2034
+ name: '',
2035
+ type: 'bool',
2036
+ },
2037
+ ],
2038
+ },
2039
+ {
2040
+ stateMutability: 'view',
2041
+ type: 'function',
2042
+ name: 'getTotalAmountForUser',
2043
+ inputs: [
2044
+ {
2045
+ name: '_user',
2046
+ type: 'address',
2047
+ },
2048
+ {
2049
+ name: '_asset',
2050
+ type: 'address',
2051
+ },
2052
+ ],
2053
+ outputs: [
2054
+ {
2055
+ name: '',
2056
+ type: 'uint256',
2057
+ },
2058
+ ],
2059
+ },
2060
+ {
2061
+ stateMutability: 'view',
2062
+ type: 'function',
2063
+ name: 'getTotalAmountForVault',
2064
+ inputs: [
2065
+ {
2066
+ name: '_asset',
2067
+ type: 'address',
2068
+ },
2069
+ ],
2070
+ outputs: [
2071
+ {
2072
+ name: '',
2073
+ type: 'uint256',
2074
+ },
2075
+ ],
2076
+ },
2077
+ {
2078
+ stateMutability: 'nonpayable',
2079
+ type: 'constructor',
2080
+ inputs: [
2081
+ {
2082
+ name: '_ripeHq',
2083
+ type: 'address',
2084
+ },
2085
+ ],
2086
+ outputs: [],
2087
+ },
2088
+ ];
2089
+ export const deployAddress = '0x2a157096af6337b2b4bd47de435520572ed5a439';
2090
+ function getRequest(method, args, contractAddressOrOptions) {
2091
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2092
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
2093
+ const call = {
2094
+ contractName: 'StabilityPool',
2095
+ method,
2096
+ args,
2097
+ address,
2098
+ deployAddress,
2099
+ defaultValue,
2100
+ getAbi: () => abi,
2101
+ with: (options) => {
2102
+ call.address = options.contractAddress;
2103
+ call.defaultValue = options.defaultValue;
2104
+ return call;
2105
+ },
2106
+ defaultTo: (defaultValue) => {
2107
+ call.defaultValue = defaultValue;
2108
+ return call;
2109
+ },
2110
+ at: (address) => {
2111
+ call.address = address;
2112
+ return call;
2113
+ },
2114
+ };
2115
+ return call;
2116
+ }
2117
+ export const call = {
2118
+ getAddys: (...args) => getRequest('getAddys', args),
2119
+ getRipeHq: (...args) => getRequest('getRipeHq', args),
2120
+ isUserInVaultAsset: (...args) => getRequest('isUserInVaultAsset', args),
2121
+ doesUserHaveBalance: (...args) => getRequest('doesUserHaveBalance', args),
2122
+ isSupportedVaultAsset: (...args) => getRequest('isSupportedVaultAsset', args),
2123
+ doesVaultHaveAnyFunds: (...args) => getRequest('doesVaultHaveAnyFunds', args),
2124
+ getNumUserAssets: (...args) => getRequest('getNumUserAssets', args),
2125
+ getNumVaultAssets: (...args) => getRequest('getNumVaultAssets', args),
2126
+ isPaused: (...args) => getRequest('isPaused', args),
2127
+ userBalances: (...args) => getRequest('userBalances', args),
2128
+ totalBalances: (...args) => getRequest('totalBalances', args),
2129
+ userAssets: (...args) => getRequest('userAssets', args),
2130
+ indexOfUserAsset: (...args) => getRequest('indexOfUserAsset', args),
2131
+ numUserAssets: (...args) => getRequest('numUserAssets', args),
2132
+ vaultAssets: (...args) => getRequest('vaultAssets', args),
2133
+ indexOfAsset: (...args) => getRequest('indexOfAsset', args),
2134
+ numAssets: (...args) => getRequest('numAssets', args),
2135
+ valueToShares: (...args) => getRequest('valueToShares', args),
2136
+ sharesToValue: (...args) => getRequest('sharesToValue', args),
2137
+ getTotalValue: (...args) => getRequest('getTotalValue', args),
2138
+ getTotalUserValue: (...args) => getRequest('getTotalUserValue', args),
2139
+ claimableBalances: (...args) => getRequest('claimableBalances', args),
2140
+ totalClaimableBalances: (...args) => getRequest('totalClaimableBalances', args),
2141
+ claimableAssets: (...args) => getRequest('claimableAssets', args),
2142
+ indexOfClaimableAsset: (...args) => getRequest('indexOfClaimableAsset', args),
2143
+ numClaimableAssets: (...args) => getRequest('numClaimableAssets', args),
2144
+ getVaultDataOnDeposit: (...args) => getRequest('getVaultDataOnDeposit', args),
2145
+ getUserLootBoxShare: (...args) => getRequest('getUserLootBoxShare', args),
2146
+ getUserAssetAndAmountAtIndex: (...args) => getRequest('getUserAssetAndAmountAtIndex', args),
2147
+ getUserAssetAtIndexAndHasBalance: (...args) => getRequest('getUserAssetAtIndexAndHasBalance', args),
2148
+ getTotalAmountForUser: (...args) => getRequest('getTotalAmountForUser', args),
2149
+ getTotalAmountForVault: (...args) => getRequest('getTotalAmountForVault', args),
2150
+ };
2151
+ function getMutation(functionName) {
2152
+ return {
2153
+ contractName: 'StabilityPool',
2154
+ functionName,
2155
+ deployAddress,
2156
+ argsType: undefined,
2157
+ getAbi: () => abi,
2158
+ };
2159
+ }
2160
+ export const mutation = {
2161
+ deregisterUserAsset: getMutation('deregisterUserAsset'),
2162
+ deregisterVaultAsset: getMutation('deregisterVaultAsset'),
2163
+ pause: getMutation('pause'),
2164
+ recoverFunds: getMutation('recoverFunds'),
2165
+ recoverFundsMany: getMutation('recoverFundsMany'),
2166
+ swapForLiquidatedCollateral: getMutation('swapForLiquidatedCollateral'),
2167
+ swapWithClaimableGreen: getMutation('swapWithClaimableGreen'),
2168
+ claimFromStabilityPool: getMutation('claimFromStabilityPool'),
2169
+ claimManyFromStabilityPool: getMutation('claimManyFromStabilityPool'),
2170
+ redeemFromStabilityPool: getMutation('redeemFromStabilityPool'),
2171
+ redeemManyFromStabilityPool: getMutation('redeemManyFromStabilityPool'),
2172
+ depositTokensInVault: getMutation('depositTokensInVault'),
2173
+ withdrawTokensFromVault: getMutation('withdrawTokensFromVault'),
2174
+ transferBalanceWithinVault: getMutation('transferBalanceWithinVault'),
2175
+ };
2176
+ export function toSdk(publicClient, walletClient) {
2177
+ return {
2178
+ deployAddress,
2179
+ abi,
2180
+ // Queries
2181
+ getAddys: (...args) => singleQuery(publicClient, call.getAddys(...args)),
2182
+ getRipeHq: (...args) => singleQuery(publicClient, call.getRipeHq(...args)),
2183
+ isUserInVaultAsset: (...args) => singleQuery(publicClient, call.isUserInVaultAsset(...args)),
2184
+ doesUserHaveBalance: (...args) => singleQuery(publicClient, call.doesUserHaveBalance(...args)),
2185
+ isSupportedVaultAsset: (...args) => singleQuery(publicClient, call.isSupportedVaultAsset(...args)),
2186
+ doesVaultHaveAnyFunds: (...args) => singleQuery(publicClient, call.doesVaultHaveAnyFunds(...args)),
2187
+ getNumUserAssets: (...args) => singleQuery(publicClient, call.getNumUserAssets(...args)),
2188
+ getNumVaultAssets: (...args) => singleQuery(publicClient, call.getNumVaultAssets(...args)),
2189
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
2190
+ userBalances: (...args) => singleQuery(publicClient, call.userBalances(...args)),
2191
+ totalBalances: (...args) => singleQuery(publicClient, call.totalBalances(...args)),
2192
+ userAssets: (...args) => singleQuery(publicClient, call.userAssets(...args)),
2193
+ indexOfUserAsset: (...args) => singleQuery(publicClient, call.indexOfUserAsset(...args)),
2194
+ numUserAssets: (...args) => singleQuery(publicClient, call.numUserAssets(...args)),
2195
+ vaultAssets: (...args) => singleQuery(publicClient, call.vaultAssets(...args)),
2196
+ indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
2197
+ numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args)),
2198
+ valueToShares: (...args) => singleQuery(publicClient, call.valueToShares(...args)),
2199
+ sharesToValue: (...args) => singleQuery(publicClient, call.sharesToValue(...args)),
2200
+ getTotalValue: (...args) => singleQuery(publicClient, call.getTotalValue(...args)),
2201
+ getTotalUserValue: (...args) => singleQuery(publicClient, call.getTotalUserValue(...args)),
2202
+ claimableBalances: (...args) => singleQuery(publicClient, call.claimableBalances(...args)),
2203
+ totalClaimableBalances: (...args) => singleQuery(publicClient, call.totalClaimableBalances(...args)),
2204
+ claimableAssets: (...args) => singleQuery(publicClient, call.claimableAssets(...args)),
2205
+ indexOfClaimableAsset: (...args) => singleQuery(publicClient, call.indexOfClaimableAsset(...args)),
2206
+ numClaimableAssets: (...args) => singleQuery(publicClient, call.numClaimableAssets(...args)),
2207
+ getVaultDataOnDeposit: (...args) => singleQuery(publicClient, call.getVaultDataOnDeposit(...args)),
2208
+ getUserLootBoxShare: (...args) => singleQuery(publicClient, call.getUserLootBoxShare(...args)),
2209
+ getUserAssetAndAmountAtIndex: (...args) => singleQuery(publicClient, call.getUserAssetAndAmountAtIndex(...args)),
2210
+ getUserAssetAtIndexAndHasBalance: (...args) => singleQuery(publicClient, call.getUserAssetAtIndexAndHasBalance(...args)),
2211
+ getTotalAmountForUser: (...args) => singleQuery(publicClient, call.getTotalAmountForUser(...args)),
2212
+ getTotalAmountForVault: (...args) => singleQuery(publicClient, call.getTotalAmountForVault(...args)),
2213
+ // Mutations
2214
+ deregisterUserAsset: (...args) => mutate(walletClient, mutation.deregisterUserAsset)(...args),
2215
+ deregisterVaultAsset: (...args) => mutate(walletClient, mutation.deregisterVaultAsset)(...args),
2216
+ pause: (...args) => mutate(walletClient, mutation.pause)(...args),
2217
+ recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
2218
+ recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
2219
+ swapForLiquidatedCollateral: (...args) => mutate(walletClient, mutation.swapForLiquidatedCollateral)(...args),
2220
+ swapWithClaimableGreen: (...args) => mutate(walletClient, mutation.swapWithClaimableGreen)(...args),
2221
+ claimFromStabilityPool: (...args) => mutate(walletClient, mutation.claimFromStabilityPool)(...args),
2222
+ claimManyFromStabilityPool: (...args) => mutate(walletClient, mutation.claimManyFromStabilityPool)(...args),
2223
+ redeemFromStabilityPool: (...args) => mutate(walletClient, mutation.redeemFromStabilityPool)(...args),
2224
+ redeemManyFromStabilityPool: (...args) => mutate(walletClient, mutation.redeemManyFromStabilityPool)(...args),
2225
+ depositTokensInVault: (...args) => mutate(walletClient, mutation.depositTokensInVault)(...args),
2226
+ withdrawTokensFromVault: (...args) => mutate(walletClient, mutation.withdrawTokensFromVault)(...args),
2227
+ transferBalanceWithinVault: (...args) => mutate(walletClient, mutation.transferBalanceWithinVault)(...args),
2228
+ };
2229
+ }