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