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