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