@underscore-finance/sdk 0.3.4 → 1.0.1

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