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