@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,2714 @@
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: 'AaveV3Deposit',
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: 'AaveV3Withdrawal',
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: 'view',
488
+ type: 'function',
489
+ name: 'hasCapability',
490
+ inputs: [
491
+ {
492
+ name: '_action',
493
+ type: 'uint256',
494
+ },
495
+ ],
496
+ outputs: [
497
+ {
498
+ name: '',
499
+ type: 'bool',
500
+ },
501
+ ],
502
+ },
503
+ {
504
+ stateMutability: 'view',
505
+ type: 'function',
506
+ name: 'getRegistries',
507
+ inputs: [],
508
+ outputs: [
509
+ {
510
+ name: '',
511
+ type: 'address[]',
512
+ },
513
+ ],
514
+ },
515
+ {
516
+ stateMutability: 'view',
517
+ type: 'function',
518
+ name: 'isYieldLego',
519
+ inputs: [],
520
+ outputs: [
521
+ {
522
+ name: '',
523
+ type: 'bool',
524
+ },
525
+ ],
526
+ },
527
+ {
528
+ stateMutability: 'view',
529
+ type: 'function',
530
+ name: 'isDexLego',
531
+ inputs: [],
532
+ outputs: [
533
+ {
534
+ name: '',
535
+ type: 'bool',
536
+ },
537
+ ],
538
+ },
539
+ {
540
+ stateMutability: 'view',
541
+ type: 'function',
542
+ name: 'isEligibleVaultForTrialFunds',
543
+ inputs: [
544
+ {
545
+ name: '_vaultToken',
546
+ type: 'address',
547
+ },
548
+ {
549
+ name: '_underlyingAsset',
550
+ type: 'address',
551
+ },
552
+ ],
553
+ outputs: [
554
+ {
555
+ name: '',
556
+ type: 'bool',
557
+ },
558
+ ],
559
+ },
560
+ {
561
+ stateMutability: 'view',
562
+ type: 'function',
563
+ name: 'isEligibleForYieldBonus',
564
+ inputs: [
565
+ {
566
+ name: '_asset',
567
+ type: 'address',
568
+ },
569
+ ],
570
+ outputs: [
571
+ {
572
+ name: '',
573
+ type: 'bool',
574
+ },
575
+ ],
576
+ },
577
+ {
578
+ stateMutability: 'view',
579
+ type: 'function',
580
+ name: 'isRebasing',
581
+ inputs: [],
582
+ outputs: [
583
+ {
584
+ name: '',
585
+ type: 'bool',
586
+ },
587
+ ],
588
+ },
589
+ {
590
+ stateMutability: 'nonpayable',
591
+ type: 'function',
592
+ name: 'depositForYield',
593
+ inputs: [
594
+ {
595
+ name: '_asset',
596
+ type: 'address',
597
+ },
598
+ {
599
+ name: '_amount',
600
+ type: 'uint256',
601
+ },
602
+ {
603
+ name: '_vaultAddr',
604
+ type: 'address',
605
+ },
606
+ {
607
+ name: '_extraData',
608
+ type: 'bytes32',
609
+ },
610
+ {
611
+ name: '_recipient',
612
+ type: 'address',
613
+ },
614
+ ],
615
+ outputs: [
616
+ {
617
+ name: '',
618
+ type: 'uint256',
619
+ },
620
+ {
621
+ name: '',
622
+ type: 'address',
623
+ },
624
+ {
625
+ name: '',
626
+ type: 'uint256',
627
+ },
628
+ {
629
+ name: '',
630
+ type: 'uint256',
631
+ },
632
+ ],
633
+ },
634
+ {
635
+ stateMutability: 'nonpayable',
636
+ type: 'function',
637
+ name: 'depositForYield',
638
+ inputs: [
639
+ {
640
+ name: '_asset',
641
+ type: 'address',
642
+ },
643
+ {
644
+ name: '_amount',
645
+ type: 'uint256',
646
+ },
647
+ {
648
+ name: '_vaultAddr',
649
+ type: 'address',
650
+ },
651
+ {
652
+ name: '_extraData',
653
+ type: 'bytes32',
654
+ },
655
+ {
656
+ name: '_recipient',
657
+ type: 'address',
658
+ },
659
+ {
660
+ name: '_miniAddys',
661
+ type: 'tuple',
662
+ components: [
663
+ {
664
+ name: 'ledger',
665
+ type: 'address',
666
+ },
667
+ {
668
+ name: 'missionControl',
669
+ type: 'address',
670
+ },
671
+ {
672
+ name: 'legoBook',
673
+ type: 'address',
674
+ },
675
+ {
676
+ name: 'appraiser',
677
+ type: 'address',
678
+ },
679
+ ],
680
+ },
681
+ ],
682
+ outputs: [
683
+ {
684
+ name: '',
685
+ type: 'uint256',
686
+ },
687
+ {
688
+ name: '',
689
+ type: 'address',
690
+ },
691
+ {
692
+ name: '',
693
+ type: 'uint256',
694
+ },
695
+ {
696
+ name: '',
697
+ type: 'uint256',
698
+ },
699
+ ],
700
+ },
701
+ {
702
+ stateMutability: 'nonpayable',
703
+ type: 'function',
704
+ name: 'withdrawFromYield',
705
+ inputs: [
706
+ {
707
+ name: '_vaultToken',
708
+ type: 'address',
709
+ },
710
+ {
711
+ name: '_amount',
712
+ type: 'uint256',
713
+ },
714
+ {
715
+ name: '_extraData',
716
+ type: 'bytes32',
717
+ },
718
+ {
719
+ name: '_recipient',
720
+ type: 'address',
721
+ },
722
+ ],
723
+ outputs: [
724
+ {
725
+ name: '',
726
+ type: 'uint256',
727
+ },
728
+ {
729
+ name: '',
730
+ type: 'address',
731
+ },
732
+ {
733
+ name: '',
734
+ type: 'uint256',
735
+ },
736
+ {
737
+ name: '',
738
+ type: 'uint256',
739
+ },
740
+ ],
741
+ },
742
+ {
743
+ stateMutability: 'nonpayable',
744
+ type: 'function',
745
+ name: 'withdrawFromYield',
746
+ inputs: [
747
+ {
748
+ name: '_vaultToken',
749
+ type: 'address',
750
+ },
751
+ {
752
+ name: '_amount',
753
+ type: 'uint256',
754
+ },
755
+ {
756
+ name: '_extraData',
757
+ type: 'bytes32',
758
+ },
759
+ {
760
+ name: '_recipient',
761
+ type: 'address',
762
+ },
763
+ {
764
+ name: '_miniAddys',
765
+ type: 'tuple',
766
+ components: [
767
+ {
768
+ name: 'ledger',
769
+ type: 'address',
770
+ },
771
+ {
772
+ name: 'missionControl',
773
+ type: 'address',
774
+ },
775
+ {
776
+ name: 'legoBook',
777
+ type: 'address',
778
+ },
779
+ {
780
+ name: 'appraiser',
781
+ type: 'address',
782
+ },
783
+ ],
784
+ },
785
+ ],
786
+ outputs: [
787
+ {
788
+ name: '',
789
+ type: 'uint256',
790
+ },
791
+ {
792
+ name: '',
793
+ type: 'address',
794
+ },
795
+ {
796
+ name: '',
797
+ type: 'uint256',
798
+ },
799
+ {
800
+ name: '',
801
+ type: 'uint256',
802
+ },
803
+ ],
804
+ },
805
+ {
806
+ stateMutability: 'view',
807
+ type: 'function',
808
+ name: 'isVaultToken',
809
+ inputs: [
810
+ {
811
+ name: '_vaultToken',
812
+ type: 'address',
813
+ },
814
+ ],
815
+ outputs: [
816
+ {
817
+ name: '',
818
+ type: 'bool',
819
+ },
820
+ ],
821
+ },
822
+ {
823
+ stateMutability: 'view',
824
+ type: 'function',
825
+ name: 'getUnderlyingAsset',
826
+ inputs: [
827
+ {
828
+ name: '_vaultToken',
829
+ type: 'address',
830
+ },
831
+ ],
832
+ outputs: [
833
+ {
834
+ name: '',
835
+ type: 'address',
836
+ },
837
+ ],
838
+ },
839
+ {
840
+ stateMutability: 'view',
841
+ type: 'function',
842
+ name: 'getUnderlyingAmount',
843
+ inputs: [
844
+ {
845
+ name: '_vaultToken',
846
+ type: 'address',
847
+ },
848
+ {
849
+ name: '_vaultTokenAmount',
850
+ type: 'uint256',
851
+ },
852
+ ],
853
+ outputs: [
854
+ {
855
+ name: '',
856
+ type: 'uint256',
857
+ },
858
+ ],
859
+ },
860
+ {
861
+ stateMutability: 'view',
862
+ type: 'function',
863
+ name: 'getVaultTokenAmount',
864
+ inputs: [
865
+ {
866
+ name: '_asset',
867
+ type: 'address',
868
+ },
869
+ {
870
+ name: '_assetAmount',
871
+ type: 'uint256',
872
+ },
873
+ {
874
+ name: '_vaultToken',
875
+ type: 'address',
876
+ },
877
+ ],
878
+ outputs: [
879
+ {
880
+ name: '',
881
+ type: 'uint256',
882
+ },
883
+ ],
884
+ },
885
+ {
886
+ stateMutability: 'view',
887
+ type: 'function',
888
+ name: 'getUsdValueOfVaultToken',
889
+ inputs: [
890
+ {
891
+ name: '_vaultToken',
892
+ type: 'address',
893
+ },
894
+ {
895
+ name: '_vaultTokenAmount',
896
+ type: 'uint256',
897
+ },
898
+ ],
899
+ outputs: [
900
+ {
901
+ name: '',
902
+ type: 'uint256',
903
+ },
904
+ ],
905
+ },
906
+ {
907
+ stateMutability: 'view',
908
+ type: 'function',
909
+ name: 'getUsdValueOfVaultToken',
910
+ inputs: [
911
+ {
912
+ name: '_vaultToken',
913
+ type: 'address',
914
+ },
915
+ {
916
+ name: '_vaultTokenAmount',
917
+ type: 'uint256',
918
+ },
919
+ {
920
+ name: '_appraiser',
921
+ type: 'address',
922
+ },
923
+ ],
924
+ outputs: [
925
+ {
926
+ name: '',
927
+ type: 'uint256',
928
+ },
929
+ ],
930
+ },
931
+ {
932
+ stateMutability: 'view',
933
+ type: 'function',
934
+ name: 'getUnderlyingData',
935
+ inputs: [
936
+ {
937
+ name: '_vaultToken',
938
+ type: 'address',
939
+ },
940
+ {
941
+ name: '_vaultTokenAmount',
942
+ type: 'uint256',
943
+ },
944
+ ],
945
+ outputs: [
946
+ {
947
+ name: '',
948
+ type: 'address',
949
+ },
950
+ {
951
+ name: '',
952
+ type: 'uint256',
953
+ },
954
+ {
955
+ name: '',
956
+ type: 'uint256',
957
+ },
958
+ ],
959
+ },
960
+ {
961
+ stateMutability: 'view',
962
+ type: 'function',
963
+ name: 'getUnderlyingData',
964
+ inputs: [
965
+ {
966
+ name: '_vaultToken',
967
+ type: 'address',
968
+ },
969
+ {
970
+ name: '_vaultTokenAmount',
971
+ type: 'uint256',
972
+ },
973
+ {
974
+ name: '_appraiser',
975
+ type: 'address',
976
+ },
977
+ ],
978
+ outputs: [
979
+ {
980
+ name: '',
981
+ type: 'address',
982
+ },
983
+ {
984
+ name: '',
985
+ type: 'uint256',
986
+ },
987
+ {
988
+ name: '',
989
+ type: 'uint256',
990
+ },
991
+ ],
992
+ },
993
+ {
994
+ stateMutability: 'view',
995
+ type: 'function',
996
+ name: 'totalAssets',
997
+ inputs: [
998
+ {
999
+ name: '_vaultToken',
1000
+ type: 'address',
1001
+ },
1002
+ ],
1003
+ outputs: [
1004
+ {
1005
+ name: '',
1006
+ type: 'uint256',
1007
+ },
1008
+ ],
1009
+ },
1010
+ {
1011
+ stateMutability: 'view',
1012
+ type: 'function',
1013
+ name: 'totalBorrows',
1014
+ inputs: [
1015
+ {
1016
+ name: '_vaultToken',
1017
+ type: 'address',
1018
+ },
1019
+ ],
1020
+ outputs: [
1021
+ {
1022
+ name: '',
1023
+ type: 'uint256',
1024
+ },
1025
+ ],
1026
+ },
1027
+ {
1028
+ stateMutability: 'view',
1029
+ type: 'function',
1030
+ name: 'getPricePerShare',
1031
+ inputs: [
1032
+ {
1033
+ name: '_asset',
1034
+ type: 'address',
1035
+ },
1036
+ {
1037
+ name: '_decimals',
1038
+ type: 'uint256',
1039
+ },
1040
+ ],
1041
+ outputs: [
1042
+ {
1043
+ name: '',
1044
+ type: 'uint256',
1045
+ },
1046
+ ],
1047
+ },
1048
+ {
1049
+ stateMutability: 'nonpayable',
1050
+ type: 'function',
1051
+ name: 'addAssetOpportunity',
1052
+ inputs: [
1053
+ {
1054
+ name: '_asset',
1055
+ type: 'address',
1056
+ },
1057
+ {
1058
+ name: '_vaultAddr',
1059
+ type: 'address',
1060
+ },
1061
+ ],
1062
+ outputs: [],
1063
+ },
1064
+ {
1065
+ stateMutability: 'nonpayable',
1066
+ type: 'function',
1067
+ name: 'removeAssetOpportunity',
1068
+ inputs: [
1069
+ {
1070
+ name: '_asset',
1071
+ type: 'address',
1072
+ },
1073
+ {
1074
+ name: '_vaultAddr',
1075
+ type: 'address',
1076
+ },
1077
+ ],
1078
+ outputs: [],
1079
+ },
1080
+ {
1081
+ stateMutability: 'nonpayable',
1082
+ type: 'function',
1083
+ name: 'swapTokens',
1084
+ inputs: [
1085
+ {
1086
+ name: '_amountIn',
1087
+ type: 'uint256',
1088
+ },
1089
+ {
1090
+ name: '_minAmountOut',
1091
+ type: 'uint256',
1092
+ },
1093
+ {
1094
+ name: '_tokenPath',
1095
+ type: 'address[]',
1096
+ },
1097
+ {
1098
+ name: '_poolPath',
1099
+ type: 'address[]',
1100
+ },
1101
+ {
1102
+ name: '_recipient',
1103
+ type: 'address',
1104
+ },
1105
+ ],
1106
+ outputs: [
1107
+ {
1108
+ name: '',
1109
+ type: 'uint256',
1110
+ },
1111
+ {
1112
+ name: '',
1113
+ type: 'uint256',
1114
+ },
1115
+ {
1116
+ name: '',
1117
+ type: 'uint256',
1118
+ },
1119
+ ],
1120
+ },
1121
+ {
1122
+ stateMutability: 'nonpayable',
1123
+ type: 'function',
1124
+ name: 'swapTokens',
1125
+ inputs: [
1126
+ {
1127
+ name: '_amountIn',
1128
+ type: 'uint256',
1129
+ },
1130
+ {
1131
+ name: '_minAmountOut',
1132
+ type: 'uint256',
1133
+ },
1134
+ {
1135
+ name: '_tokenPath',
1136
+ type: 'address[]',
1137
+ },
1138
+ {
1139
+ name: '_poolPath',
1140
+ type: 'address[]',
1141
+ },
1142
+ {
1143
+ name: '_recipient',
1144
+ type: 'address',
1145
+ },
1146
+ {
1147
+ name: '_miniAddys',
1148
+ type: 'tuple',
1149
+ components: [
1150
+ {
1151
+ name: 'ledger',
1152
+ type: 'address',
1153
+ },
1154
+ {
1155
+ name: 'missionControl',
1156
+ type: 'address',
1157
+ },
1158
+ {
1159
+ name: 'legoBook',
1160
+ type: 'address',
1161
+ },
1162
+ {
1163
+ name: 'appraiser',
1164
+ type: 'address',
1165
+ },
1166
+ ],
1167
+ },
1168
+ ],
1169
+ outputs: [
1170
+ {
1171
+ name: '',
1172
+ type: 'uint256',
1173
+ },
1174
+ {
1175
+ name: '',
1176
+ type: 'uint256',
1177
+ },
1178
+ {
1179
+ name: '',
1180
+ type: 'uint256',
1181
+ },
1182
+ ],
1183
+ },
1184
+ {
1185
+ stateMutability: 'nonpayable',
1186
+ type: 'function',
1187
+ name: 'mintOrRedeemAsset',
1188
+ inputs: [
1189
+ {
1190
+ name: '_tokenIn',
1191
+ type: 'address',
1192
+ },
1193
+ {
1194
+ name: '_tokenOut',
1195
+ type: 'address',
1196
+ },
1197
+ {
1198
+ name: '_tokenInAmount',
1199
+ type: 'uint256',
1200
+ },
1201
+ {
1202
+ name: '_minAmountOut',
1203
+ type: 'uint256',
1204
+ },
1205
+ {
1206
+ name: '_extraData',
1207
+ type: 'bytes32',
1208
+ },
1209
+ {
1210
+ name: '_recipient',
1211
+ type: 'address',
1212
+ },
1213
+ ],
1214
+ outputs: [
1215
+ {
1216
+ name: '',
1217
+ type: 'uint256',
1218
+ },
1219
+ {
1220
+ name: '',
1221
+ type: 'uint256',
1222
+ },
1223
+ {
1224
+ name: '',
1225
+ type: 'bool',
1226
+ },
1227
+ {
1228
+ name: '',
1229
+ type: 'uint256',
1230
+ },
1231
+ ],
1232
+ },
1233
+ {
1234
+ stateMutability: 'nonpayable',
1235
+ type: 'function',
1236
+ name: 'mintOrRedeemAsset',
1237
+ inputs: [
1238
+ {
1239
+ name: '_tokenIn',
1240
+ type: 'address',
1241
+ },
1242
+ {
1243
+ name: '_tokenOut',
1244
+ type: 'address',
1245
+ },
1246
+ {
1247
+ name: '_tokenInAmount',
1248
+ type: 'uint256',
1249
+ },
1250
+ {
1251
+ name: '_minAmountOut',
1252
+ type: 'uint256',
1253
+ },
1254
+ {
1255
+ name: '_extraData',
1256
+ type: 'bytes32',
1257
+ },
1258
+ {
1259
+ name: '_recipient',
1260
+ type: 'address',
1261
+ },
1262
+ {
1263
+ name: '_miniAddys',
1264
+ type: 'tuple',
1265
+ components: [
1266
+ {
1267
+ name: 'ledger',
1268
+ type: 'address',
1269
+ },
1270
+ {
1271
+ name: 'missionControl',
1272
+ type: 'address',
1273
+ },
1274
+ {
1275
+ name: 'legoBook',
1276
+ type: 'address',
1277
+ },
1278
+ {
1279
+ name: 'appraiser',
1280
+ type: 'address',
1281
+ },
1282
+ ],
1283
+ },
1284
+ ],
1285
+ outputs: [
1286
+ {
1287
+ name: '',
1288
+ type: 'uint256',
1289
+ },
1290
+ {
1291
+ name: '',
1292
+ type: 'uint256',
1293
+ },
1294
+ {
1295
+ name: '',
1296
+ type: 'bool',
1297
+ },
1298
+ {
1299
+ name: '',
1300
+ type: 'uint256',
1301
+ },
1302
+ ],
1303
+ },
1304
+ {
1305
+ stateMutability: 'nonpayable',
1306
+ type: 'function',
1307
+ name: 'confirmMintOrRedeemAsset',
1308
+ inputs: [
1309
+ {
1310
+ name: '_tokenIn',
1311
+ type: 'address',
1312
+ },
1313
+ {
1314
+ name: '_tokenOut',
1315
+ type: 'address',
1316
+ },
1317
+ {
1318
+ name: '_extraData',
1319
+ type: 'bytes32',
1320
+ },
1321
+ {
1322
+ name: '_recipient',
1323
+ type: 'address',
1324
+ },
1325
+ ],
1326
+ outputs: [
1327
+ {
1328
+ name: '',
1329
+ type: 'uint256',
1330
+ },
1331
+ {
1332
+ name: '',
1333
+ type: 'uint256',
1334
+ },
1335
+ ],
1336
+ },
1337
+ {
1338
+ stateMutability: 'nonpayable',
1339
+ type: 'function',
1340
+ name: 'confirmMintOrRedeemAsset',
1341
+ inputs: [
1342
+ {
1343
+ name: '_tokenIn',
1344
+ type: 'address',
1345
+ },
1346
+ {
1347
+ name: '_tokenOut',
1348
+ type: 'address',
1349
+ },
1350
+ {
1351
+ name: '_extraData',
1352
+ type: 'bytes32',
1353
+ },
1354
+ {
1355
+ name: '_recipient',
1356
+ type: 'address',
1357
+ },
1358
+ {
1359
+ name: '_miniAddys',
1360
+ type: 'tuple',
1361
+ components: [
1362
+ {
1363
+ name: 'ledger',
1364
+ type: 'address',
1365
+ },
1366
+ {
1367
+ name: 'missionControl',
1368
+ type: 'address',
1369
+ },
1370
+ {
1371
+ name: 'legoBook',
1372
+ type: 'address',
1373
+ },
1374
+ {
1375
+ name: 'appraiser',
1376
+ type: 'address',
1377
+ },
1378
+ ],
1379
+ },
1380
+ ],
1381
+ outputs: [
1382
+ {
1383
+ name: '',
1384
+ type: 'uint256',
1385
+ },
1386
+ {
1387
+ name: '',
1388
+ type: 'uint256',
1389
+ },
1390
+ ],
1391
+ },
1392
+ {
1393
+ stateMutability: 'nonpayable',
1394
+ type: 'function',
1395
+ name: 'addCollateral',
1396
+ inputs: [
1397
+ {
1398
+ name: '_asset',
1399
+ type: 'address',
1400
+ },
1401
+ {
1402
+ name: '_amount',
1403
+ type: 'uint256',
1404
+ },
1405
+ {
1406
+ name: '_extraData',
1407
+ type: 'bytes32',
1408
+ },
1409
+ {
1410
+ name: '_recipient',
1411
+ type: 'address',
1412
+ },
1413
+ ],
1414
+ outputs: [
1415
+ {
1416
+ name: '',
1417
+ type: 'uint256',
1418
+ },
1419
+ {
1420
+ name: '',
1421
+ type: 'uint256',
1422
+ },
1423
+ ],
1424
+ },
1425
+ {
1426
+ stateMutability: 'nonpayable',
1427
+ type: 'function',
1428
+ name: 'addCollateral',
1429
+ inputs: [
1430
+ {
1431
+ name: '_asset',
1432
+ type: 'address',
1433
+ },
1434
+ {
1435
+ name: '_amount',
1436
+ type: 'uint256',
1437
+ },
1438
+ {
1439
+ name: '_extraData',
1440
+ type: 'bytes32',
1441
+ },
1442
+ {
1443
+ name: '_recipient',
1444
+ type: 'address',
1445
+ },
1446
+ {
1447
+ name: '_miniAddys',
1448
+ type: 'tuple',
1449
+ components: [
1450
+ {
1451
+ name: 'ledger',
1452
+ type: 'address',
1453
+ },
1454
+ {
1455
+ name: 'missionControl',
1456
+ type: 'address',
1457
+ },
1458
+ {
1459
+ name: 'legoBook',
1460
+ type: 'address',
1461
+ },
1462
+ {
1463
+ name: 'appraiser',
1464
+ type: 'address',
1465
+ },
1466
+ ],
1467
+ },
1468
+ ],
1469
+ outputs: [
1470
+ {
1471
+ name: '',
1472
+ type: 'uint256',
1473
+ },
1474
+ {
1475
+ name: '',
1476
+ type: 'uint256',
1477
+ },
1478
+ ],
1479
+ },
1480
+ {
1481
+ stateMutability: 'nonpayable',
1482
+ type: 'function',
1483
+ name: 'removeCollateral',
1484
+ inputs: [
1485
+ {
1486
+ name: '_asset',
1487
+ type: 'address',
1488
+ },
1489
+ {
1490
+ name: '_amount',
1491
+ type: 'uint256',
1492
+ },
1493
+ {
1494
+ name: '_extraData',
1495
+ type: 'bytes32',
1496
+ },
1497
+ {
1498
+ name: '_recipient',
1499
+ type: 'address',
1500
+ },
1501
+ ],
1502
+ outputs: [
1503
+ {
1504
+ name: '',
1505
+ type: 'uint256',
1506
+ },
1507
+ {
1508
+ name: '',
1509
+ type: 'uint256',
1510
+ },
1511
+ ],
1512
+ },
1513
+ {
1514
+ stateMutability: 'nonpayable',
1515
+ type: 'function',
1516
+ name: 'removeCollateral',
1517
+ inputs: [
1518
+ {
1519
+ name: '_asset',
1520
+ type: 'address',
1521
+ },
1522
+ {
1523
+ name: '_amount',
1524
+ type: 'uint256',
1525
+ },
1526
+ {
1527
+ name: '_extraData',
1528
+ type: 'bytes32',
1529
+ },
1530
+ {
1531
+ name: '_recipient',
1532
+ type: 'address',
1533
+ },
1534
+ {
1535
+ name: '_miniAddys',
1536
+ type: 'tuple',
1537
+ components: [
1538
+ {
1539
+ name: 'ledger',
1540
+ type: 'address',
1541
+ },
1542
+ {
1543
+ name: 'missionControl',
1544
+ type: 'address',
1545
+ },
1546
+ {
1547
+ name: 'legoBook',
1548
+ type: 'address',
1549
+ },
1550
+ {
1551
+ name: 'appraiser',
1552
+ type: 'address',
1553
+ },
1554
+ ],
1555
+ },
1556
+ ],
1557
+ outputs: [
1558
+ {
1559
+ name: '',
1560
+ type: 'uint256',
1561
+ },
1562
+ {
1563
+ name: '',
1564
+ type: 'uint256',
1565
+ },
1566
+ ],
1567
+ },
1568
+ {
1569
+ stateMutability: 'nonpayable',
1570
+ type: 'function',
1571
+ name: 'borrow',
1572
+ inputs: [
1573
+ {
1574
+ name: '_borrowAsset',
1575
+ type: 'address',
1576
+ },
1577
+ {
1578
+ name: '_amount',
1579
+ type: 'uint256',
1580
+ },
1581
+ {
1582
+ name: '_extraData',
1583
+ type: 'bytes32',
1584
+ },
1585
+ {
1586
+ name: '_recipient',
1587
+ type: 'address',
1588
+ },
1589
+ ],
1590
+ outputs: [
1591
+ {
1592
+ name: '',
1593
+ type: 'uint256',
1594
+ },
1595
+ {
1596
+ name: '',
1597
+ type: 'uint256',
1598
+ },
1599
+ ],
1600
+ },
1601
+ {
1602
+ stateMutability: 'nonpayable',
1603
+ type: 'function',
1604
+ name: 'borrow',
1605
+ inputs: [
1606
+ {
1607
+ name: '_borrowAsset',
1608
+ type: 'address',
1609
+ },
1610
+ {
1611
+ name: '_amount',
1612
+ type: 'uint256',
1613
+ },
1614
+ {
1615
+ name: '_extraData',
1616
+ type: 'bytes32',
1617
+ },
1618
+ {
1619
+ name: '_recipient',
1620
+ type: 'address',
1621
+ },
1622
+ {
1623
+ name: '_miniAddys',
1624
+ type: 'tuple',
1625
+ components: [
1626
+ {
1627
+ name: 'ledger',
1628
+ type: 'address',
1629
+ },
1630
+ {
1631
+ name: 'missionControl',
1632
+ type: 'address',
1633
+ },
1634
+ {
1635
+ name: 'legoBook',
1636
+ type: 'address',
1637
+ },
1638
+ {
1639
+ name: 'appraiser',
1640
+ type: 'address',
1641
+ },
1642
+ ],
1643
+ },
1644
+ ],
1645
+ outputs: [
1646
+ {
1647
+ name: '',
1648
+ type: 'uint256',
1649
+ },
1650
+ {
1651
+ name: '',
1652
+ type: 'uint256',
1653
+ },
1654
+ ],
1655
+ },
1656
+ {
1657
+ stateMutability: 'nonpayable',
1658
+ type: 'function',
1659
+ name: 'repayDebt',
1660
+ inputs: [
1661
+ {
1662
+ name: '_paymentAsset',
1663
+ type: 'address',
1664
+ },
1665
+ {
1666
+ name: '_paymentAmount',
1667
+ type: 'uint256',
1668
+ },
1669
+ {
1670
+ name: '_extraData',
1671
+ type: 'bytes32',
1672
+ },
1673
+ {
1674
+ name: '_recipient',
1675
+ type: 'address',
1676
+ },
1677
+ ],
1678
+ outputs: [
1679
+ {
1680
+ name: '',
1681
+ type: 'uint256',
1682
+ },
1683
+ {
1684
+ name: '',
1685
+ type: 'uint256',
1686
+ },
1687
+ ],
1688
+ },
1689
+ {
1690
+ stateMutability: 'nonpayable',
1691
+ type: 'function',
1692
+ name: 'repayDebt',
1693
+ inputs: [
1694
+ {
1695
+ name: '_paymentAsset',
1696
+ type: 'address',
1697
+ },
1698
+ {
1699
+ name: '_paymentAmount',
1700
+ type: 'uint256',
1701
+ },
1702
+ {
1703
+ name: '_extraData',
1704
+ type: 'bytes32',
1705
+ },
1706
+ {
1707
+ name: '_recipient',
1708
+ type: 'address',
1709
+ },
1710
+ {
1711
+ name: '_miniAddys',
1712
+ type: 'tuple',
1713
+ components: [
1714
+ {
1715
+ name: 'ledger',
1716
+ type: 'address',
1717
+ },
1718
+ {
1719
+ name: 'missionControl',
1720
+ type: 'address',
1721
+ },
1722
+ {
1723
+ name: 'legoBook',
1724
+ type: 'address',
1725
+ },
1726
+ {
1727
+ name: 'appraiser',
1728
+ type: 'address',
1729
+ },
1730
+ ],
1731
+ },
1732
+ ],
1733
+ outputs: [
1734
+ {
1735
+ name: '',
1736
+ type: 'uint256',
1737
+ },
1738
+ {
1739
+ name: '',
1740
+ type: 'uint256',
1741
+ },
1742
+ ],
1743
+ },
1744
+ {
1745
+ stateMutability: 'nonpayable',
1746
+ type: 'function',
1747
+ name: 'claimRewards',
1748
+ inputs: [
1749
+ {
1750
+ name: '_user',
1751
+ type: 'address',
1752
+ },
1753
+ {
1754
+ name: '_rewardToken',
1755
+ type: 'address',
1756
+ },
1757
+ {
1758
+ name: '_rewardAmount',
1759
+ type: 'uint256',
1760
+ },
1761
+ {
1762
+ name: '_extraData',
1763
+ type: 'bytes32',
1764
+ },
1765
+ ],
1766
+ outputs: [
1767
+ {
1768
+ name: '',
1769
+ type: 'uint256',
1770
+ },
1771
+ {
1772
+ name: '',
1773
+ type: 'uint256',
1774
+ },
1775
+ ],
1776
+ },
1777
+ {
1778
+ stateMutability: 'nonpayable',
1779
+ type: 'function',
1780
+ name: 'claimRewards',
1781
+ inputs: [
1782
+ {
1783
+ name: '_user',
1784
+ type: 'address',
1785
+ },
1786
+ {
1787
+ name: '_rewardToken',
1788
+ type: 'address',
1789
+ },
1790
+ {
1791
+ name: '_rewardAmount',
1792
+ type: 'uint256',
1793
+ },
1794
+ {
1795
+ name: '_extraData',
1796
+ type: 'bytes32',
1797
+ },
1798
+ {
1799
+ name: '_miniAddys',
1800
+ type: 'tuple',
1801
+ components: [
1802
+ {
1803
+ name: 'ledger',
1804
+ type: 'address',
1805
+ },
1806
+ {
1807
+ name: 'missionControl',
1808
+ type: 'address',
1809
+ },
1810
+ {
1811
+ name: 'legoBook',
1812
+ type: 'address',
1813
+ },
1814
+ {
1815
+ name: 'appraiser',
1816
+ type: 'address',
1817
+ },
1818
+ ],
1819
+ },
1820
+ ],
1821
+ outputs: [
1822
+ {
1823
+ name: '',
1824
+ type: 'uint256',
1825
+ },
1826
+ {
1827
+ name: '',
1828
+ type: 'uint256',
1829
+ },
1830
+ ],
1831
+ },
1832
+ {
1833
+ stateMutability: 'nonpayable',
1834
+ type: 'function',
1835
+ name: 'addLiquidity',
1836
+ inputs: [
1837
+ {
1838
+ name: '_pool',
1839
+ type: 'address',
1840
+ },
1841
+ {
1842
+ name: '_tokenA',
1843
+ type: 'address',
1844
+ },
1845
+ {
1846
+ name: '_tokenB',
1847
+ type: 'address',
1848
+ },
1849
+ {
1850
+ name: '_amountA',
1851
+ type: 'uint256',
1852
+ },
1853
+ {
1854
+ name: '_amountB',
1855
+ type: 'uint256',
1856
+ },
1857
+ {
1858
+ name: '_minAmountA',
1859
+ type: 'uint256',
1860
+ },
1861
+ {
1862
+ name: '_minAmountB',
1863
+ type: 'uint256',
1864
+ },
1865
+ {
1866
+ name: '_minLpAmount',
1867
+ type: 'uint256',
1868
+ },
1869
+ {
1870
+ name: '_extraData',
1871
+ type: 'bytes32',
1872
+ },
1873
+ {
1874
+ name: '_recipient',
1875
+ type: 'address',
1876
+ },
1877
+ ],
1878
+ outputs: [
1879
+ {
1880
+ name: '',
1881
+ type: 'address',
1882
+ },
1883
+ {
1884
+ name: '',
1885
+ type: 'uint256',
1886
+ },
1887
+ {
1888
+ name: '',
1889
+ type: 'uint256',
1890
+ },
1891
+ {
1892
+ name: '',
1893
+ type: 'uint256',
1894
+ },
1895
+ {
1896
+ name: '',
1897
+ type: 'uint256',
1898
+ },
1899
+ ],
1900
+ },
1901
+ {
1902
+ stateMutability: 'nonpayable',
1903
+ type: 'function',
1904
+ name: 'addLiquidity',
1905
+ inputs: [
1906
+ {
1907
+ name: '_pool',
1908
+ type: 'address',
1909
+ },
1910
+ {
1911
+ name: '_tokenA',
1912
+ type: 'address',
1913
+ },
1914
+ {
1915
+ name: '_tokenB',
1916
+ type: 'address',
1917
+ },
1918
+ {
1919
+ name: '_amountA',
1920
+ type: 'uint256',
1921
+ },
1922
+ {
1923
+ name: '_amountB',
1924
+ type: 'uint256',
1925
+ },
1926
+ {
1927
+ name: '_minAmountA',
1928
+ type: 'uint256',
1929
+ },
1930
+ {
1931
+ name: '_minAmountB',
1932
+ type: 'uint256',
1933
+ },
1934
+ {
1935
+ name: '_minLpAmount',
1936
+ type: 'uint256',
1937
+ },
1938
+ {
1939
+ name: '_extraData',
1940
+ type: 'bytes32',
1941
+ },
1942
+ {
1943
+ name: '_recipient',
1944
+ type: 'address',
1945
+ },
1946
+ {
1947
+ name: '_miniAddys',
1948
+ type: 'tuple',
1949
+ components: [
1950
+ {
1951
+ name: 'ledger',
1952
+ type: 'address',
1953
+ },
1954
+ {
1955
+ name: 'missionControl',
1956
+ type: 'address',
1957
+ },
1958
+ {
1959
+ name: 'legoBook',
1960
+ type: 'address',
1961
+ },
1962
+ {
1963
+ name: 'appraiser',
1964
+ type: 'address',
1965
+ },
1966
+ ],
1967
+ },
1968
+ ],
1969
+ outputs: [
1970
+ {
1971
+ name: '',
1972
+ type: 'address',
1973
+ },
1974
+ {
1975
+ name: '',
1976
+ type: 'uint256',
1977
+ },
1978
+ {
1979
+ name: '',
1980
+ type: 'uint256',
1981
+ },
1982
+ {
1983
+ name: '',
1984
+ type: 'uint256',
1985
+ },
1986
+ {
1987
+ name: '',
1988
+ type: 'uint256',
1989
+ },
1990
+ ],
1991
+ },
1992
+ {
1993
+ stateMutability: 'nonpayable',
1994
+ type: 'function',
1995
+ name: 'removeLiquidity',
1996
+ inputs: [
1997
+ {
1998
+ name: '_pool',
1999
+ type: 'address',
2000
+ },
2001
+ {
2002
+ name: '_tokenA',
2003
+ type: 'address',
2004
+ },
2005
+ {
2006
+ name: '_tokenB',
2007
+ type: 'address',
2008
+ },
2009
+ {
2010
+ name: '_lpToken',
2011
+ type: 'address',
2012
+ },
2013
+ {
2014
+ name: '_lpAmount',
2015
+ type: 'uint256',
2016
+ },
2017
+ {
2018
+ name: '_minAmountA',
2019
+ type: 'uint256',
2020
+ },
2021
+ {
2022
+ name: '_minAmountB',
2023
+ type: 'uint256',
2024
+ },
2025
+ {
2026
+ name: '_extraData',
2027
+ type: 'bytes32',
2028
+ },
2029
+ {
2030
+ name: '_recipient',
2031
+ type: 'address',
2032
+ },
2033
+ ],
2034
+ outputs: [
2035
+ {
2036
+ name: '',
2037
+ type: 'uint256',
2038
+ },
2039
+ {
2040
+ name: '',
2041
+ type: 'uint256',
2042
+ },
2043
+ {
2044
+ name: '',
2045
+ type: 'uint256',
2046
+ },
2047
+ {
2048
+ name: '',
2049
+ type: 'uint256',
2050
+ },
2051
+ ],
2052
+ },
2053
+ {
2054
+ stateMutability: 'nonpayable',
2055
+ type: 'function',
2056
+ name: 'removeLiquidity',
2057
+ inputs: [
2058
+ {
2059
+ name: '_pool',
2060
+ type: 'address',
2061
+ },
2062
+ {
2063
+ name: '_tokenA',
2064
+ type: 'address',
2065
+ },
2066
+ {
2067
+ name: '_tokenB',
2068
+ type: 'address',
2069
+ },
2070
+ {
2071
+ name: '_lpToken',
2072
+ type: 'address',
2073
+ },
2074
+ {
2075
+ name: '_lpAmount',
2076
+ type: 'uint256',
2077
+ },
2078
+ {
2079
+ name: '_minAmountA',
2080
+ type: 'uint256',
2081
+ },
2082
+ {
2083
+ name: '_minAmountB',
2084
+ type: 'uint256',
2085
+ },
2086
+ {
2087
+ name: '_extraData',
2088
+ type: 'bytes32',
2089
+ },
2090
+ {
2091
+ name: '_recipient',
2092
+ type: 'address',
2093
+ },
2094
+ {
2095
+ name: '_miniAddys',
2096
+ type: 'tuple',
2097
+ components: [
2098
+ {
2099
+ name: 'ledger',
2100
+ type: 'address',
2101
+ },
2102
+ {
2103
+ name: 'missionControl',
2104
+ type: 'address',
2105
+ },
2106
+ {
2107
+ name: 'legoBook',
2108
+ type: 'address',
2109
+ },
2110
+ {
2111
+ name: 'appraiser',
2112
+ type: 'address',
2113
+ },
2114
+ ],
2115
+ },
2116
+ ],
2117
+ outputs: [
2118
+ {
2119
+ name: '',
2120
+ type: 'uint256',
2121
+ },
2122
+ {
2123
+ name: '',
2124
+ type: 'uint256',
2125
+ },
2126
+ {
2127
+ name: '',
2128
+ type: 'uint256',
2129
+ },
2130
+ {
2131
+ name: '',
2132
+ type: 'uint256',
2133
+ },
2134
+ ],
2135
+ },
2136
+ {
2137
+ stateMutability: 'nonpayable',
2138
+ type: 'function',
2139
+ name: 'addLiquidityConcentrated',
2140
+ inputs: [
2141
+ {
2142
+ name: '_nftTokenId',
2143
+ type: 'uint256',
2144
+ },
2145
+ {
2146
+ name: '_pool',
2147
+ type: 'address',
2148
+ },
2149
+ {
2150
+ name: '_tokenA',
2151
+ type: 'address',
2152
+ },
2153
+ {
2154
+ name: '_tokenB',
2155
+ type: 'address',
2156
+ },
2157
+ {
2158
+ name: '_tickLower',
2159
+ type: 'int24',
2160
+ },
2161
+ {
2162
+ name: '_tickUpper',
2163
+ type: 'int24',
2164
+ },
2165
+ {
2166
+ name: '_amountA',
2167
+ type: 'uint256',
2168
+ },
2169
+ {
2170
+ name: '_amountB',
2171
+ type: 'uint256',
2172
+ },
2173
+ {
2174
+ name: '_minAmountA',
2175
+ type: 'uint256',
2176
+ },
2177
+ {
2178
+ name: '_minAmountB',
2179
+ type: 'uint256',
2180
+ },
2181
+ {
2182
+ name: '_extraData',
2183
+ type: 'bytes32',
2184
+ },
2185
+ {
2186
+ name: '_recipient',
2187
+ type: 'address',
2188
+ },
2189
+ ],
2190
+ outputs: [
2191
+ {
2192
+ name: '',
2193
+ type: 'uint256',
2194
+ },
2195
+ {
2196
+ name: '',
2197
+ type: 'uint256',
2198
+ },
2199
+ {
2200
+ name: '',
2201
+ type: 'uint256',
2202
+ },
2203
+ {
2204
+ name: '',
2205
+ type: 'uint256',
2206
+ },
2207
+ {
2208
+ name: '',
2209
+ type: 'uint256',
2210
+ },
2211
+ ],
2212
+ },
2213
+ {
2214
+ stateMutability: 'nonpayable',
2215
+ type: 'function',
2216
+ name: 'addLiquidityConcentrated',
2217
+ inputs: [
2218
+ {
2219
+ name: '_nftTokenId',
2220
+ type: 'uint256',
2221
+ },
2222
+ {
2223
+ name: '_pool',
2224
+ type: 'address',
2225
+ },
2226
+ {
2227
+ name: '_tokenA',
2228
+ type: 'address',
2229
+ },
2230
+ {
2231
+ name: '_tokenB',
2232
+ type: 'address',
2233
+ },
2234
+ {
2235
+ name: '_tickLower',
2236
+ type: 'int24',
2237
+ },
2238
+ {
2239
+ name: '_tickUpper',
2240
+ type: 'int24',
2241
+ },
2242
+ {
2243
+ name: '_amountA',
2244
+ type: 'uint256',
2245
+ },
2246
+ {
2247
+ name: '_amountB',
2248
+ type: 'uint256',
2249
+ },
2250
+ {
2251
+ name: '_minAmountA',
2252
+ type: 'uint256',
2253
+ },
2254
+ {
2255
+ name: '_minAmountB',
2256
+ type: 'uint256',
2257
+ },
2258
+ {
2259
+ name: '_extraData',
2260
+ type: 'bytes32',
2261
+ },
2262
+ {
2263
+ name: '_recipient',
2264
+ type: 'address',
2265
+ },
2266
+ {
2267
+ name: '_miniAddys',
2268
+ type: 'tuple',
2269
+ components: [
2270
+ {
2271
+ name: 'ledger',
2272
+ type: 'address',
2273
+ },
2274
+ {
2275
+ name: 'missionControl',
2276
+ type: 'address',
2277
+ },
2278
+ {
2279
+ name: 'legoBook',
2280
+ type: 'address',
2281
+ },
2282
+ {
2283
+ name: 'appraiser',
2284
+ type: 'address',
2285
+ },
2286
+ ],
2287
+ },
2288
+ ],
2289
+ outputs: [
2290
+ {
2291
+ name: '',
2292
+ type: 'uint256',
2293
+ },
2294
+ {
2295
+ name: '',
2296
+ type: 'uint256',
2297
+ },
2298
+ {
2299
+ name: '',
2300
+ type: 'uint256',
2301
+ },
2302
+ {
2303
+ name: '',
2304
+ type: 'uint256',
2305
+ },
2306
+ {
2307
+ name: '',
2308
+ type: 'uint256',
2309
+ },
2310
+ ],
2311
+ },
2312
+ {
2313
+ stateMutability: 'nonpayable',
2314
+ type: 'function',
2315
+ name: 'removeLiquidityConcentrated',
2316
+ inputs: [
2317
+ {
2318
+ name: '_nftTokenId',
2319
+ type: 'uint256',
2320
+ },
2321
+ {
2322
+ name: '_pool',
2323
+ type: 'address',
2324
+ },
2325
+ {
2326
+ name: '_tokenA',
2327
+ type: 'address',
2328
+ },
2329
+ {
2330
+ name: '_tokenB',
2331
+ type: 'address',
2332
+ },
2333
+ {
2334
+ name: '_liqToRemove',
2335
+ type: 'uint256',
2336
+ },
2337
+ {
2338
+ name: '_minAmountA',
2339
+ type: 'uint256',
2340
+ },
2341
+ {
2342
+ name: '_minAmountB',
2343
+ type: 'uint256',
2344
+ },
2345
+ {
2346
+ name: '_extraData',
2347
+ type: 'bytes32',
2348
+ },
2349
+ {
2350
+ name: '_recipient',
2351
+ type: 'address',
2352
+ },
2353
+ ],
2354
+ outputs: [
2355
+ {
2356
+ name: '',
2357
+ type: 'uint256',
2358
+ },
2359
+ {
2360
+ name: '',
2361
+ type: 'uint256',
2362
+ },
2363
+ {
2364
+ name: '',
2365
+ type: 'uint256',
2366
+ },
2367
+ {
2368
+ name: '',
2369
+ type: 'bool',
2370
+ },
2371
+ {
2372
+ name: '',
2373
+ type: 'uint256',
2374
+ },
2375
+ ],
2376
+ },
2377
+ {
2378
+ stateMutability: 'nonpayable',
2379
+ type: 'function',
2380
+ name: 'removeLiquidityConcentrated',
2381
+ inputs: [
2382
+ {
2383
+ name: '_nftTokenId',
2384
+ type: 'uint256',
2385
+ },
2386
+ {
2387
+ name: '_pool',
2388
+ type: 'address',
2389
+ },
2390
+ {
2391
+ name: '_tokenA',
2392
+ type: 'address',
2393
+ },
2394
+ {
2395
+ name: '_tokenB',
2396
+ type: 'address',
2397
+ },
2398
+ {
2399
+ name: '_liqToRemove',
2400
+ type: 'uint256',
2401
+ },
2402
+ {
2403
+ name: '_minAmountA',
2404
+ type: 'uint256',
2405
+ },
2406
+ {
2407
+ name: '_minAmountB',
2408
+ type: 'uint256',
2409
+ },
2410
+ {
2411
+ name: '_extraData',
2412
+ type: 'bytes32',
2413
+ },
2414
+ {
2415
+ name: '_recipient',
2416
+ type: 'address',
2417
+ },
2418
+ {
2419
+ name: '_miniAddys',
2420
+ type: 'tuple',
2421
+ components: [
2422
+ {
2423
+ name: 'ledger',
2424
+ type: 'address',
2425
+ },
2426
+ {
2427
+ name: 'missionControl',
2428
+ type: 'address',
2429
+ },
2430
+ {
2431
+ name: 'legoBook',
2432
+ type: 'address',
2433
+ },
2434
+ {
2435
+ name: 'appraiser',
2436
+ type: 'address',
2437
+ },
2438
+ ],
2439
+ },
2440
+ ],
2441
+ outputs: [
2442
+ {
2443
+ name: '',
2444
+ type: 'uint256',
2445
+ },
2446
+ {
2447
+ name: '',
2448
+ type: 'uint256',
2449
+ },
2450
+ {
2451
+ name: '',
2452
+ type: 'uint256',
2453
+ },
2454
+ {
2455
+ name: '',
2456
+ type: 'bool',
2457
+ },
2458
+ {
2459
+ name: '',
2460
+ type: 'uint256',
2461
+ },
2462
+ ],
2463
+ },
2464
+ {
2465
+ stateMutability: 'view',
2466
+ type: 'function',
2467
+ name: 'getAccessForLego',
2468
+ inputs: [
2469
+ {
2470
+ name: '_user',
2471
+ type: 'address',
2472
+ },
2473
+ {
2474
+ name: '_action',
2475
+ type: 'uint256',
2476
+ },
2477
+ ],
2478
+ outputs: [
2479
+ {
2480
+ name: '',
2481
+ type: 'address',
2482
+ },
2483
+ {
2484
+ name: '',
2485
+ type: 'string',
2486
+ },
2487
+ {
2488
+ name: '',
2489
+ type: 'uint256',
2490
+ },
2491
+ ],
2492
+ },
2493
+ {
2494
+ stateMutability: 'view',
2495
+ type: 'function',
2496
+ name: 'getPrice',
2497
+ inputs: [
2498
+ {
2499
+ name: '_asset',
2500
+ type: 'address',
2501
+ },
2502
+ {
2503
+ name: '_decimals',
2504
+ type: 'uint256',
2505
+ },
2506
+ ],
2507
+ outputs: [
2508
+ {
2509
+ name: '',
2510
+ type: 'uint256',
2511
+ },
2512
+ ],
2513
+ },
2514
+ {
2515
+ stateMutability: 'view',
2516
+ type: 'function',
2517
+ name: 'AAVE_V3_POOL',
2518
+ inputs: [],
2519
+ outputs: [
2520
+ {
2521
+ name: '',
2522
+ type: 'address',
2523
+ },
2524
+ ],
2525
+ },
2526
+ {
2527
+ stateMutability: 'view',
2528
+ type: 'function',
2529
+ name: 'AAVE_V3_ADDRESS_PROVIDER',
2530
+ inputs: [],
2531
+ outputs: [
2532
+ {
2533
+ name: '',
2534
+ type: 'address',
2535
+ },
2536
+ ],
2537
+ },
2538
+ {
2539
+ stateMutability: 'nonpayable',
2540
+ type: 'constructor',
2541
+ inputs: [
2542
+ {
2543
+ name: '_undyHq',
2544
+ type: 'address',
2545
+ },
2546
+ {
2547
+ name: '_aaveV3',
2548
+ type: 'address',
2549
+ },
2550
+ {
2551
+ name: '_addressProvider',
2552
+ type: 'address',
2553
+ },
2554
+ ],
2555
+ outputs: [],
2556
+ },
2557
+ ];
2558
+ export const deployAddress = '0xb7401d91f1586474164B6c6Df328E3C3A5f24649';
2559
+ function getRequest(method, args, contractAddressOrOptions) {
2560
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2561
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
2562
+ const call = {
2563
+ contractName: 'AaveV3',
2564
+ method,
2565
+ args,
2566
+ address,
2567
+ deployAddress,
2568
+ defaultValue,
2569
+ getAbi: () => abi,
2570
+ with: (options) => {
2571
+ call.address = options.contractAddress;
2572
+ call.defaultValue = options.defaultValue;
2573
+ return call;
2574
+ },
2575
+ defaultTo: (defaultValue) => {
2576
+ call.defaultValue = defaultValue;
2577
+ return call;
2578
+ },
2579
+ at: (address) => {
2580
+ call.address = address;
2581
+ return call;
2582
+ },
2583
+ };
2584
+ return call;
2585
+ }
2586
+ export const call = {
2587
+ getAddys: (...args) => getRequest('getAddys', args),
2588
+ getUndyHq: (...args) => getRequest('getUndyHq', args),
2589
+ isLegoAsset: (...args) => getRequest('isLegoAsset', args),
2590
+ getAssetOpportunities: (...args) => getRequest('getAssetOpportunities', args),
2591
+ getAssets: (...args) => getRequest('getAssets', args),
2592
+ isAssetOpportunity: (...args) => getRequest('isAssetOpportunity', args),
2593
+ getNumLegoAssets: (...args) => getRequest('getNumLegoAssets', args),
2594
+ isPaused: (...args) => getRequest('isPaused', args),
2595
+ assetOpportunities: (...args) => getRequest('assetOpportunities', args),
2596
+ indexOfAssetOpportunity: (...args) => getRequest('indexOfAssetOpportunity', args),
2597
+ numAssetOpportunities: (...args) => getRequest('numAssetOpportunities', args),
2598
+ vaultToAsset: (...args) => getRequest('vaultToAsset', args),
2599
+ assets: (...args) => getRequest('assets', args),
2600
+ indexOfAsset: (...args) => getRequest('indexOfAsset', args),
2601
+ numAssets: (...args) => getRequest('numAssets', args),
2602
+ hasCapability: (...args) => getRequest('hasCapability', args),
2603
+ getRegistries: (...args) => getRequest('getRegistries', args),
2604
+ isYieldLego: (...args) => getRequest('isYieldLego', args),
2605
+ isDexLego: (...args) => getRequest('isDexLego', args),
2606
+ isEligibleVaultForTrialFunds: (...args) => getRequest('isEligibleVaultForTrialFunds', args),
2607
+ isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
2608
+ isRebasing: (...args) => getRequest('isRebasing', args),
2609
+ isVaultToken: (...args) => getRequest('isVaultToken', args),
2610
+ getUnderlyingAsset: (...args) => getRequest('getUnderlyingAsset', args),
2611
+ getUnderlyingAmount: (...args) => getRequest('getUnderlyingAmount', args),
2612
+ getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
2613
+ getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
2614
+ getUnderlyingData: (...args) => getRequest('getUnderlyingData', args),
2615
+ totalAssets: (...args) => getRequest('totalAssets', args),
2616
+ totalBorrows: (...args) => getRequest('totalBorrows', args),
2617
+ getPricePerShare: (...args) => getRequest('getPricePerShare', args),
2618
+ getAccessForLego: (...args) => getRequest('getAccessForLego', args),
2619
+ getPrice: (...args) => getRequest('getPrice', args),
2620
+ AAVE_V3_POOL: (...args) => getRequest('AAVE_V3_POOL', args),
2621
+ AAVE_V3_ADDRESS_PROVIDER: (...args) => getRequest('AAVE_V3_ADDRESS_PROVIDER', args),
2622
+ };
2623
+ function getMutation(functionName) {
2624
+ return {
2625
+ contractName: 'AaveV3',
2626
+ functionName,
2627
+ deployAddress,
2628
+ argsType: undefined,
2629
+ getAbi: () => abi,
2630
+ };
2631
+ }
2632
+ export const mutation = {
2633
+ pause: getMutation('pause'),
2634
+ recoverFunds: getMutation('recoverFunds'),
2635
+ recoverFundsMany: getMutation('recoverFundsMany'),
2636
+ depositForYield: getMutation('depositForYield'),
2637
+ withdrawFromYield: getMutation('withdrawFromYield'),
2638
+ addAssetOpportunity: getMutation('addAssetOpportunity'),
2639
+ removeAssetOpportunity: getMutation('removeAssetOpportunity'),
2640
+ swapTokens: getMutation('swapTokens'),
2641
+ mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
2642
+ confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
2643
+ addCollateral: getMutation('addCollateral'),
2644
+ removeCollateral: getMutation('removeCollateral'),
2645
+ borrow: getMutation('borrow'),
2646
+ repayDebt: getMutation('repayDebt'),
2647
+ claimRewards: getMutation('claimRewards'),
2648
+ addLiquidity: getMutation('addLiquidity'),
2649
+ removeLiquidity: getMutation('removeLiquidity'),
2650
+ addLiquidityConcentrated: getMutation('addLiquidityConcentrated'),
2651
+ removeLiquidityConcentrated: getMutation('removeLiquidityConcentrated'),
2652
+ };
2653
+ export function toSdk(publicClient, walletClient) {
2654
+ return {
2655
+ deployAddress,
2656
+ abi,
2657
+ // Queries
2658
+ getAddys: (...args) => singleQuery(publicClient, call.getAddys(...args)),
2659
+ getUndyHq: (...args) => singleQuery(publicClient, call.getUndyHq(...args)),
2660
+ isLegoAsset: (...args) => singleQuery(publicClient, call.isLegoAsset(...args)),
2661
+ getAssetOpportunities: (...args) => singleQuery(publicClient, call.getAssetOpportunities(...args)),
2662
+ getAssets: (...args) => singleQuery(publicClient, call.getAssets(...args)),
2663
+ isAssetOpportunity: (...args) => singleQuery(publicClient, call.isAssetOpportunity(...args)),
2664
+ getNumLegoAssets: (...args) => singleQuery(publicClient, call.getNumLegoAssets(...args)),
2665
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
2666
+ assetOpportunities: (...args) => singleQuery(publicClient, call.assetOpportunities(...args)),
2667
+ indexOfAssetOpportunity: (...args) => singleQuery(publicClient, call.indexOfAssetOpportunity(...args)),
2668
+ numAssetOpportunities: (...args) => singleQuery(publicClient, call.numAssetOpportunities(...args)),
2669
+ vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
2670
+ assets: (...args) => singleQuery(publicClient, call.assets(...args)),
2671
+ indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
2672
+ numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args)),
2673
+ hasCapability: (...args) => singleQuery(publicClient, call.hasCapability(...args)),
2674
+ getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args)),
2675
+ isYieldLego: (...args) => singleQuery(publicClient, call.isYieldLego(...args)),
2676
+ isDexLego: (...args) => singleQuery(publicClient, call.isDexLego(...args)),
2677
+ isEligibleVaultForTrialFunds: (...args) => singleQuery(publicClient, call.isEligibleVaultForTrialFunds(...args)),
2678
+ isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
2679
+ isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
2680
+ isVaultToken: (...args) => singleQuery(publicClient, call.isVaultToken(...args)),
2681
+ getUnderlyingAsset: (...args) => singleQuery(publicClient, call.getUnderlyingAsset(...args)),
2682
+ getUnderlyingAmount: (...args) => singleQuery(publicClient, call.getUnderlyingAmount(...args)),
2683
+ getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
2684
+ getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
2685
+ getUnderlyingData: (...args) => singleQuery(publicClient, call.getUnderlyingData(...args)),
2686
+ totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args)),
2687
+ totalBorrows: (...args) => singleQuery(publicClient, call.totalBorrows(...args)),
2688
+ getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
2689
+ getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
2690
+ getPrice: (...args) => singleQuery(publicClient, call.getPrice(...args)),
2691
+ AAVE_V3_POOL: (...args) => singleQuery(publicClient, call.AAVE_V3_POOL(...args)),
2692
+ AAVE_V3_ADDRESS_PROVIDER: (...args) => singleQuery(publicClient, call.AAVE_V3_ADDRESS_PROVIDER(...args)),
2693
+ // Mutations
2694
+ pause: (...args) => mutate(walletClient, mutation.pause)(...args),
2695
+ recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
2696
+ recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
2697
+ depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
2698
+ withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
2699
+ addAssetOpportunity: (...args) => mutate(walletClient, mutation.addAssetOpportunity)(...args),
2700
+ removeAssetOpportunity: (...args) => mutate(walletClient, mutation.removeAssetOpportunity)(...args),
2701
+ swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
2702
+ mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset)(...args),
2703
+ confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset)(...args),
2704
+ addCollateral: (...args) => mutate(walletClient, mutation.addCollateral)(...args),
2705
+ removeCollateral: (...args) => mutate(walletClient, mutation.removeCollateral)(...args),
2706
+ borrow: (...args) => mutate(walletClient, mutation.borrow)(...args),
2707
+ repayDebt: (...args) => mutate(walletClient, mutation.repayDebt)(...args),
2708
+ claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
2709
+ addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity)(...args),
2710
+ removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity)(...args),
2711
+ addLiquidityConcentrated: (...args) => mutate(walletClient, mutation.addLiquidityConcentrated)(...args),
2712
+ removeLiquidityConcentrated: (...args) => mutate(walletClient, mutation.removeLiquidityConcentrated)(...args),
2713
+ };
2714
+ }