@underscore-finance/sdk 0.3.5 → 1.0.2

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