@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,1947 @@
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
+ inputs: [],
9
+ name: 'aaveV3',
10
+ outputs: [
11
+ {
12
+ name: '',
13
+ type: 'address',
14
+ },
15
+ ],
16
+ stateMutability: 'view',
17
+ type: 'function',
18
+ },
19
+ {
20
+ inputs: [],
21
+ name: 'aaveV3Id',
22
+ outputs: [
23
+ {
24
+ name: '',
25
+ type: 'uint256',
26
+ },
27
+ ],
28
+ stateMutability: 'view',
29
+ type: 'function',
30
+ },
31
+ {
32
+ inputs: [],
33
+ name: 'compoundV3',
34
+ outputs: [
35
+ {
36
+ name: '',
37
+ type: 'address',
38
+ },
39
+ ],
40
+ stateMutability: 'view',
41
+ type: 'function',
42
+ },
43
+ {
44
+ inputs: [],
45
+ name: 'compoundV3Id',
46
+ outputs: [
47
+ {
48
+ name: '',
49
+ type: 'uint256',
50
+ },
51
+ ],
52
+ stateMutability: 'view',
53
+ type: 'function',
54
+ },
55
+ {
56
+ inputs: [],
57
+ name: 'euler',
58
+ outputs: [
59
+ {
60
+ name: '',
61
+ type: 'address',
62
+ },
63
+ ],
64
+ stateMutability: 'view',
65
+ type: 'function',
66
+ },
67
+ {
68
+ inputs: [],
69
+ name: 'eulerId',
70
+ outputs: [
71
+ {
72
+ name: '',
73
+ type: 'uint256',
74
+ },
75
+ ],
76
+ stateMutability: 'view',
77
+ type: 'function',
78
+ },
79
+ {
80
+ inputs: [],
81
+ name: 'fluid',
82
+ outputs: [
83
+ {
84
+ name: '',
85
+ type: 'address',
86
+ },
87
+ ],
88
+ stateMutability: 'view',
89
+ type: 'function',
90
+ },
91
+ {
92
+ inputs: [],
93
+ name: 'fluidId',
94
+ outputs: [
95
+ {
96
+ name: '',
97
+ type: 'uint256',
98
+ },
99
+ ],
100
+ stateMutability: 'view',
101
+ type: 'function',
102
+ },
103
+ {
104
+ inputs: [],
105
+ name: 'moonwell',
106
+ outputs: [
107
+ {
108
+ name: '',
109
+ type: 'address',
110
+ },
111
+ ],
112
+ stateMutability: 'view',
113
+ type: 'function',
114
+ },
115
+ {
116
+ inputs: [],
117
+ name: 'moonwellId',
118
+ outputs: [
119
+ {
120
+ name: '',
121
+ type: 'uint256',
122
+ },
123
+ ],
124
+ stateMutability: 'view',
125
+ type: 'function',
126
+ },
127
+ {
128
+ inputs: [],
129
+ name: 'morpho',
130
+ outputs: [
131
+ {
132
+ name: '',
133
+ type: 'address',
134
+ },
135
+ ],
136
+ stateMutability: 'view',
137
+ type: 'function',
138
+ },
139
+ {
140
+ inputs: [],
141
+ name: 'morphoId',
142
+ outputs: [
143
+ {
144
+ name: '',
145
+ type: 'uint256',
146
+ },
147
+ ],
148
+ stateMutability: 'view',
149
+ type: 'function',
150
+ },
151
+ {
152
+ inputs: [],
153
+ name: 'sky',
154
+ outputs: [
155
+ {
156
+ name: '',
157
+ type: 'address',
158
+ },
159
+ ],
160
+ stateMutability: 'view',
161
+ type: 'function',
162
+ },
163
+ {
164
+ inputs: [],
165
+ name: 'skyId',
166
+ outputs: [
167
+ {
168
+ name: '',
169
+ type: 'uint256',
170
+ },
171
+ ],
172
+ stateMutability: 'view',
173
+ type: 'function',
174
+ },
175
+ {
176
+ inputs: [],
177
+ name: 'uniswapV2',
178
+ outputs: [
179
+ {
180
+ name: '',
181
+ type: 'address',
182
+ },
183
+ ],
184
+ stateMutability: 'view',
185
+ type: 'function',
186
+ },
187
+ {
188
+ inputs: [],
189
+ name: 'uniswapV2Id',
190
+ outputs: [
191
+ {
192
+ name: '',
193
+ type: 'uint256',
194
+ },
195
+ ],
196
+ stateMutability: 'view',
197
+ type: 'function',
198
+ },
199
+ {
200
+ inputs: [],
201
+ name: 'uniswapV3',
202
+ outputs: [
203
+ {
204
+ name: '',
205
+ type: 'address',
206
+ },
207
+ ],
208
+ stateMutability: 'view',
209
+ type: 'function',
210
+ },
211
+ {
212
+ inputs: [],
213
+ name: 'uniswapV3Id',
214
+ outputs: [
215
+ {
216
+ name: '',
217
+ type: 'uint256',
218
+ },
219
+ ],
220
+ stateMutability: 'view',
221
+ type: 'function',
222
+ },
223
+ {
224
+ inputs: [],
225
+ name: 'aerodrome',
226
+ outputs: [
227
+ {
228
+ name: '',
229
+ type: 'address',
230
+ },
231
+ ],
232
+ stateMutability: 'view',
233
+ type: 'function',
234
+ },
235
+ {
236
+ inputs: [],
237
+ name: 'aerodromeId',
238
+ outputs: [
239
+ {
240
+ name: '',
241
+ type: 'uint256',
242
+ },
243
+ ],
244
+ stateMutability: 'view',
245
+ type: 'function',
246
+ },
247
+ {
248
+ inputs: [],
249
+ name: 'aerodromeSlipstream',
250
+ outputs: [
251
+ {
252
+ name: '',
253
+ type: 'address',
254
+ },
255
+ ],
256
+ stateMutability: 'view',
257
+ type: 'function',
258
+ },
259
+ {
260
+ inputs: [],
261
+ name: 'aerodromeSlipstreamId',
262
+ outputs: [
263
+ {
264
+ name: '',
265
+ type: 'uint256',
266
+ },
267
+ ],
268
+ stateMutability: 'view',
269
+ type: 'function',
270
+ },
271
+ {
272
+ inputs: [],
273
+ name: 'curve',
274
+ outputs: [
275
+ {
276
+ name: '',
277
+ type: 'address',
278
+ },
279
+ ],
280
+ stateMutability: 'view',
281
+ type: 'function',
282
+ },
283
+ {
284
+ inputs: [],
285
+ name: 'curveId',
286
+ outputs: [
287
+ {
288
+ name: '',
289
+ type: 'uint256',
290
+ },
291
+ ],
292
+ stateMutability: 'view',
293
+ type: 'function',
294
+ },
295
+ {
296
+ inputs: [
297
+ {
298
+ name: '_asset',
299
+ type: 'address',
300
+ },
301
+ {
302
+ name: '_assetAmount',
303
+ type: 'uint256',
304
+ },
305
+ {
306
+ name: '_vaultToken',
307
+ type: 'address',
308
+ },
309
+ ],
310
+ name: 'getVaultTokenAmount',
311
+ outputs: [
312
+ {
313
+ name: '',
314
+ type: 'uint256',
315
+ },
316
+ ],
317
+ stateMutability: 'view',
318
+ type: 'function',
319
+ },
320
+ {
321
+ inputs: [
322
+ {
323
+ name: '_vaultToken',
324
+ type: 'address',
325
+ },
326
+ ],
327
+ name: 'getLegoFromVaultToken',
328
+ outputs: [
329
+ {
330
+ name: '',
331
+ type: 'uint256',
332
+ },
333
+ {
334
+ name: '',
335
+ type: 'address',
336
+ },
337
+ {
338
+ name: '',
339
+ type: 'string',
340
+ },
341
+ ],
342
+ stateMutability: 'view',
343
+ type: 'function',
344
+ },
345
+ {
346
+ inputs: [
347
+ {
348
+ name: '_asset',
349
+ type: 'address',
350
+ },
351
+ {
352
+ name: '_amount',
353
+ type: 'uint256',
354
+ },
355
+ ],
356
+ name: 'getUnderlyingData',
357
+ outputs: [
358
+ {
359
+ components: [
360
+ {
361
+ name: 'asset',
362
+ type: 'address',
363
+ },
364
+ {
365
+ name: 'amount',
366
+ type: 'uint256',
367
+ },
368
+ {
369
+ name: 'usdValue',
370
+ type: 'uint256',
371
+ },
372
+ {
373
+ name: 'legoId',
374
+ type: 'uint256',
375
+ },
376
+ {
377
+ name: 'legoAddr',
378
+ type: 'address',
379
+ },
380
+ {
381
+ name: 'legoDesc',
382
+ type: 'string',
383
+ },
384
+ ],
385
+ name: '',
386
+ type: 'tuple',
387
+ },
388
+ ],
389
+ stateMutability: 'view',
390
+ type: 'function',
391
+ },
392
+ {
393
+ inputs: [
394
+ {
395
+ name: '_tokenIn',
396
+ type: 'address',
397
+ },
398
+ {
399
+ name: '_tokenOut',
400
+ type: 'address',
401
+ },
402
+ {
403
+ name: '_amountIn',
404
+ type: 'uint256',
405
+ },
406
+ {
407
+ name: '_slippage',
408
+ type: 'uint256',
409
+ },
410
+ ],
411
+ name: 'getRoutesAndSwapInstructionsAmountOut',
412
+ outputs: [
413
+ {
414
+ components: [
415
+ {
416
+ name: 'legoId',
417
+ type: 'uint256',
418
+ },
419
+ {
420
+ name: 'amountIn',
421
+ type: 'uint256',
422
+ },
423
+ {
424
+ name: 'minAmountOut',
425
+ type: 'uint256',
426
+ },
427
+ {
428
+ name: 'tokenPath',
429
+ type: 'address[]',
430
+ },
431
+ {
432
+ name: 'poolPath',
433
+ type: 'address[]',
434
+ },
435
+ ],
436
+ name: '',
437
+ type: 'tuple[]',
438
+ },
439
+ ],
440
+ stateMutability: 'nonpayable',
441
+ type: 'function',
442
+ },
443
+ {
444
+ inputs: [
445
+ {
446
+ name: '_tokenIn',
447
+ type: 'address',
448
+ },
449
+ {
450
+ name: '_tokenOut',
451
+ type: 'address',
452
+ },
453
+ {
454
+ name: '_amountIn',
455
+ type: 'uint256',
456
+ },
457
+ {
458
+ name: '_slippage',
459
+ type: 'uint256',
460
+ },
461
+ {
462
+ name: '_includeLegoIds',
463
+ type: 'uint256[]',
464
+ },
465
+ ],
466
+ name: 'getRoutesAndSwapInstructionsAmountOut',
467
+ outputs: [
468
+ {
469
+ components: [
470
+ {
471
+ name: 'legoId',
472
+ type: 'uint256',
473
+ },
474
+ {
475
+ name: 'amountIn',
476
+ type: 'uint256',
477
+ },
478
+ {
479
+ name: 'minAmountOut',
480
+ type: 'uint256',
481
+ },
482
+ {
483
+ name: 'tokenPath',
484
+ type: 'address[]',
485
+ },
486
+ {
487
+ name: 'poolPath',
488
+ type: 'address[]',
489
+ },
490
+ ],
491
+ name: '',
492
+ type: 'tuple[]',
493
+ },
494
+ ],
495
+ stateMutability: 'nonpayable',
496
+ type: 'function',
497
+ },
498
+ {
499
+ inputs: [
500
+ {
501
+ name: '_tokenIn',
502
+ type: 'address',
503
+ },
504
+ {
505
+ name: '_tokenOut',
506
+ type: 'address',
507
+ },
508
+ {
509
+ name: '_amountOut',
510
+ type: 'uint256',
511
+ },
512
+ {
513
+ name: '_amountInAvailable',
514
+ type: 'uint256',
515
+ },
516
+ {
517
+ name: '_slippage',
518
+ type: 'uint256',
519
+ },
520
+ ],
521
+ name: 'getRoutesAndSwapInstructionsAmountIn',
522
+ outputs: [
523
+ {
524
+ components: [
525
+ {
526
+ name: 'legoId',
527
+ type: 'uint256',
528
+ },
529
+ {
530
+ name: 'amountIn',
531
+ type: 'uint256',
532
+ },
533
+ {
534
+ name: 'minAmountOut',
535
+ type: 'uint256',
536
+ },
537
+ {
538
+ name: 'tokenPath',
539
+ type: 'address[]',
540
+ },
541
+ {
542
+ name: 'poolPath',
543
+ type: 'address[]',
544
+ },
545
+ ],
546
+ name: '',
547
+ type: 'tuple[]',
548
+ },
549
+ ],
550
+ stateMutability: 'nonpayable',
551
+ type: 'function',
552
+ },
553
+ {
554
+ inputs: [
555
+ {
556
+ name: '_tokenIn',
557
+ type: 'address',
558
+ },
559
+ {
560
+ name: '_tokenOut',
561
+ type: 'address',
562
+ },
563
+ {
564
+ name: '_amountOut',
565
+ type: 'uint256',
566
+ },
567
+ {
568
+ name: '_amountInAvailable',
569
+ type: 'uint256',
570
+ },
571
+ {
572
+ name: '_slippage',
573
+ type: 'uint256',
574
+ },
575
+ {
576
+ name: '_includeLegoIds',
577
+ type: 'uint256[]',
578
+ },
579
+ ],
580
+ name: 'getRoutesAndSwapInstructionsAmountIn',
581
+ outputs: [
582
+ {
583
+ components: [
584
+ {
585
+ name: 'legoId',
586
+ type: 'uint256',
587
+ },
588
+ {
589
+ name: 'amountIn',
590
+ type: 'uint256',
591
+ },
592
+ {
593
+ name: 'minAmountOut',
594
+ type: 'uint256',
595
+ },
596
+ {
597
+ name: 'tokenPath',
598
+ type: 'address[]',
599
+ },
600
+ {
601
+ name: 'poolPath',
602
+ type: 'address[]',
603
+ },
604
+ ],
605
+ name: '',
606
+ type: 'tuple[]',
607
+ },
608
+ ],
609
+ stateMutability: 'nonpayable',
610
+ type: 'function',
611
+ },
612
+ {
613
+ inputs: [
614
+ {
615
+ name: '_slippage',
616
+ type: 'uint256',
617
+ },
618
+ {
619
+ components: [
620
+ {
621
+ name: 'legoId',
622
+ type: 'uint256',
623
+ },
624
+ {
625
+ name: 'pool',
626
+ type: 'address',
627
+ },
628
+ {
629
+ name: 'tokenIn',
630
+ type: 'address',
631
+ },
632
+ {
633
+ name: 'tokenOut',
634
+ type: 'address',
635
+ },
636
+ {
637
+ name: 'amountIn',
638
+ type: 'uint256',
639
+ },
640
+ {
641
+ name: 'amountOut',
642
+ type: 'uint256',
643
+ },
644
+ ],
645
+ name: '_routes',
646
+ type: 'tuple[]',
647
+ },
648
+ ],
649
+ name: 'prepareSwapInstructionsAmountOut',
650
+ outputs: [
651
+ {
652
+ components: [
653
+ {
654
+ name: 'legoId',
655
+ type: 'uint256',
656
+ },
657
+ {
658
+ name: 'amountIn',
659
+ type: 'uint256',
660
+ },
661
+ {
662
+ name: 'minAmountOut',
663
+ type: 'uint256',
664
+ },
665
+ {
666
+ name: 'tokenPath',
667
+ type: 'address[]',
668
+ },
669
+ {
670
+ name: 'poolPath',
671
+ type: 'address[]',
672
+ },
673
+ ],
674
+ name: '',
675
+ type: 'tuple[]',
676
+ },
677
+ ],
678
+ stateMutability: 'nonpayable',
679
+ type: 'function',
680
+ },
681
+ {
682
+ inputs: [
683
+ {
684
+ name: '_tokenIn',
685
+ type: 'address',
686
+ },
687
+ {
688
+ name: '_tokenOut',
689
+ type: 'address',
690
+ },
691
+ {
692
+ name: '_amountIn',
693
+ type: 'uint256',
694
+ },
695
+ ],
696
+ name: 'getBestSwapRoutesAmountOut',
697
+ outputs: [
698
+ {
699
+ components: [
700
+ {
701
+ name: 'legoId',
702
+ type: 'uint256',
703
+ },
704
+ {
705
+ name: 'pool',
706
+ type: 'address',
707
+ },
708
+ {
709
+ name: 'tokenIn',
710
+ type: 'address',
711
+ },
712
+ {
713
+ name: 'tokenOut',
714
+ type: 'address',
715
+ },
716
+ {
717
+ name: 'amountIn',
718
+ type: 'uint256',
719
+ },
720
+ {
721
+ name: 'amountOut',
722
+ type: 'uint256',
723
+ },
724
+ ],
725
+ name: '',
726
+ type: 'tuple[]',
727
+ },
728
+ ],
729
+ stateMutability: 'nonpayable',
730
+ type: 'function',
731
+ },
732
+ {
733
+ inputs: [
734
+ {
735
+ name: '_tokenIn',
736
+ type: 'address',
737
+ },
738
+ {
739
+ name: '_tokenOut',
740
+ type: 'address',
741
+ },
742
+ {
743
+ name: '_amountIn',
744
+ type: 'uint256',
745
+ },
746
+ {
747
+ name: '_includeLegoIds',
748
+ type: 'uint256[]',
749
+ },
750
+ ],
751
+ name: 'getBestSwapRoutesAmountOut',
752
+ outputs: [
753
+ {
754
+ components: [
755
+ {
756
+ name: 'legoId',
757
+ type: 'uint256',
758
+ },
759
+ {
760
+ name: 'pool',
761
+ type: 'address',
762
+ },
763
+ {
764
+ name: 'tokenIn',
765
+ type: 'address',
766
+ },
767
+ {
768
+ name: 'tokenOut',
769
+ type: 'address',
770
+ },
771
+ {
772
+ name: 'amountIn',
773
+ type: 'uint256',
774
+ },
775
+ {
776
+ name: 'amountOut',
777
+ type: 'uint256',
778
+ },
779
+ ],
780
+ name: '',
781
+ type: 'tuple[]',
782
+ },
783
+ ],
784
+ stateMutability: 'nonpayable',
785
+ type: 'function',
786
+ },
787
+ {
788
+ inputs: [
789
+ {
790
+ name: '_tokenIn',
791
+ type: 'address',
792
+ },
793
+ {
794
+ name: '_tokenOut',
795
+ type: 'address',
796
+ },
797
+ {
798
+ name: '_amountIn',
799
+ type: 'uint256',
800
+ },
801
+ ],
802
+ name: 'getBestSwapAmountOutWithRouterPool',
803
+ outputs: [
804
+ {
805
+ name: '',
806
+ type: 'uint256',
807
+ },
808
+ {
809
+ components: [
810
+ {
811
+ name: 'legoId',
812
+ type: 'uint256',
813
+ },
814
+ {
815
+ name: 'pool',
816
+ type: 'address',
817
+ },
818
+ {
819
+ name: 'tokenIn',
820
+ type: 'address',
821
+ },
822
+ {
823
+ name: 'tokenOut',
824
+ type: 'address',
825
+ },
826
+ {
827
+ name: 'amountIn',
828
+ type: 'uint256',
829
+ },
830
+ {
831
+ name: 'amountOut',
832
+ type: 'uint256',
833
+ },
834
+ ],
835
+ name: '',
836
+ type: 'tuple[]',
837
+ },
838
+ ],
839
+ stateMutability: 'nonpayable',
840
+ type: 'function',
841
+ },
842
+ {
843
+ inputs: [
844
+ {
845
+ name: '_tokenIn',
846
+ type: 'address',
847
+ },
848
+ {
849
+ name: '_tokenOut',
850
+ type: 'address',
851
+ },
852
+ {
853
+ name: '_amountIn',
854
+ type: 'uint256',
855
+ },
856
+ {
857
+ name: '_includeLegoIds',
858
+ type: 'uint256[]',
859
+ },
860
+ ],
861
+ name: 'getBestSwapAmountOutWithRouterPool',
862
+ outputs: [
863
+ {
864
+ name: '',
865
+ type: 'uint256',
866
+ },
867
+ {
868
+ components: [
869
+ {
870
+ name: 'legoId',
871
+ type: 'uint256',
872
+ },
873
+ {
874
+ name: 'pool',
875
+ type: 'address',
876
+ },
877
+ {
878
+ name: 'tokenIn',
879
+ type: 'address',
880
+ },
881
+ {
882
+ name: 'tokenOut',
883
+ type: 'address',
884
+ },
885
+ {
886
+ name: 'amountIn',
887
+ type: 'uint256',
888
+ },
889
+ {
890
+ name: 'amountOut',
891
+ type: 'uint256',
892
+ },
893
+ ],
894
+ name: '',
895
+ type: 'tuple[]',
896
+ },
897
+ ],
898
+ stateMutability: 'nonpayable',
899
+ type: 'function',
900
+ },
901
+ {
902
+ inputs: [
903
+ {
904
+ name: '_tokenIn',
905
+ type: 'address',
906
+ },
907
+ {
908
+ name: '_tokenOut',
909
+ type: 'address',
910
+ },
911
+ {
912
+ name: '_amountIn',
913
+ type: 'uint256',
914
+ },
915
+ ],
916
+ name: 'getBestSwapAmountOutSinglePool',
917
+ outputs: [
918
+ {
919
+ components: [
920
+ {
921
+ name: 'legoId',
922
+ type: 'uint256',
923
+ },
924
+ {
925
+ name: 'pool',
926
+ type: 'address',
927
+ },
928
+ {
929
+ name: 'tokenIn',
930
+ type: 'address',
931
+ },
932
+ {
933
+ name: 'tokenOut',
934
+ type: 'address',
935
+ },
936
+ {
937
+ name: 'amountIn',
938
+ type: 'uint256',
939
+ },
940
+ {
941
+ name: 'amountOut',
942
+ type: 'uint256',
943
+ },
944
+ ],
945
+ name: '',
946
+ type: 'tuple',
947
+ },
948
+ ],
949
+ stateMutability: 'nonpayable',
950
+ type: 'function',
951
+ },
952
+ {
953
+ inputs: [
954
+ {
955
+ name: '_tokenIn',
956
+ type: 'address',
957
+ },
958
+ {
959
+ name: '_tokenOut',
960
+ type: 'address',
961
+ },
962
+ {
963
+ name: '_amountIn',
964
+ type: 'uint256',
965
+ },
966
+ {
967
+ name: '_includeLegoIds',
968
+ type: 'uint256[]',
969
+ },
970
+ ],
971
+ name: 'getBestSwapAmountOutSinglePool',
972
+ outputs: [
973
+ {
974
+ components: [
975
+ {
976
+ name: 'legoId',
977
+ type: 'uint256',
978
+ },
979
+ {
980
+ name: 'pool',
981
+ type: 'address',
982
+ },
983
+ {
984
+ name: 'tokenIn',
985
+ type: 'address',
986
+ },
987
+ {
988
+ name: 'tokenOut',
989
+ type: 'address',
990
+ },
991
+ {
992
+ name: 'amountIn',
993
+ type: 'uint256',
994
+ },
995
+ {
996
+ name: 'amountOut',
997
+ type: 'uint256',
998
+ },
999
+ ],
1000
+ name: '',
1001
+ type: 'tuple',
1002
+ },
1003
+ ],
1004
+ stateMutability: 'nonpayable',
1005
+ type: 'function',
1006
+ },
1007
+ {
1008
+ inputs: [
1009
+ {
1010
+ name: '_tokenIn',
1011
+ type: 'address',
1012
+ },
1013
+ {
1014
+ name: '_tokenOut',
1015
+ type: 'address',
1016
+ },
1017
+ {
1018
+ name: '_amountIn',
1019
+ type: 'uint256',
1020
+ },
1021
+ ],
1022
+ name: 'getSwapAmountOutViaRouterPool',
1023
+ outputs: [
1024
+ {
1025
+ components: [
1026
+ {
1027
+ name: 'legoId',
1028
+ type: 'uint256',
1029
+ },
1030
+ {
1031
+ name: 'pool',
1032
+ type: 'address',
1033
+ },
1034
+ {
1035
+ name: 'tokenIn',
1036
+ type: 'address',
1037
+ },
1038
+ {
1039
+ name: 'tokenOut',
1040
+ type: 'address',
1041
+ },
1042
+ {
1043
+ name: 'amountIn',
1044
+ type: 'uint256',
1045
+ },
1046
+ {
1047
+ name: 'amountOut',
1048
+ type: 'uint256',
1049
+ },
1050
+ ],
1051
+ name: '',
1052
+ type: 'tuple',
1053
+ },
1054
+ ],
1055
+ stateMutability: 'nonpayable',
1056
+ type: 'function',
1057
+ },
1058
+ {
1059
+ inputs: [
1060
+ {
1061
+ name: '_tokenIn',
1062
+ type: 'address',
1063
+ },
1064
+ {
1065
+ name: '_tokenOut',
1066
+ type: 'address',
1067
+ },
1068
+ {
1069
+ name: '_amountIn',
1070
+ type: 'uint256',
1071
+ },
1072
+ {
1073
+ name: '_includeLegoIds',
1074
+ type: 'uint256[]',
1075
+ },
1076
+ ],
1077
+ name: 'getSwapAmountOutViaRouterPool',
1078
+ outputs: [
1079
+ {
1080
+ components: [
1081
+ {
1082
+ name: 'legoId',
1083
+ type: 'uint256',
1084
+ },
1085
+ {
1086
+ name: 'pool',
1087
+ type: 'address',
1088
+ },
1089
+ {
1090
+ name: 'tokenIn',
1091
+ type: 'address',
1092
+ },
1093
+ {
1094
+ name: 'tokenOut',
1095
+ type: 'address',
1096
+ },
1097
+ {
1098
+ name: 'amountIn',
1099
+ type: 'uint256',
1100
+ },
1101
+ {
1102
+ name: 'amountOut',
1103
+ type: 'uint256',
1104
+ },
1105
+ ],
1106
+ name: '',
1107
+ type: 'tuple',
1108
+ },
1109
+ ],
1110
+ stateMutability: 'nonpayable',
1111
+ type: 'function',
1112
+ },
1113
+ {
1114
+ inputs: [
1115
+ {
1116
+ name: '_tokenIn',
1117
+ type: 'address',
1118
+ },
1119
+ {
1120
+ name: '_tokenOut',
1121
+ type: 'address',
1122
+ },
1123
+ {
1124
+ name: '_amountOut',
1125
+ type: 'uint256',
1126
+ },
1127
+ ],
1128
+ name: 'getBestSwapRoutesAmountIn',
1129
+ outputs: [
1130
+ {
1131
+ components: [
1132
+ {
1133
+ name: 'legoId',
1134
+ type: 'uint256',
1135
+ },
1136
+ {
1137
+ name: 'pool',
1138
+ type: 'address',
1139
+ },
1140
+ {
1141
+ name: 'tokenIn',
1142
+ type: 'address',
1143
+ },
1144
+ {
1145
+ name: 'tokenOut',
1146
+ type: 'address',
1147
+ },
1148
+ {
1149
+ name: 'amountIn',
1150
+ type: 'uint256',
1151
+ },
1152
+ {
1153
+ name: 'amountOut',
1154
+ type: 'uint256',
1155
+ },
1156
+ ],
1157
+ name: '',
1158
+ type: 'tuple[]',
1159
+ },
1160
+ ],
1161
+ stateMutability: 'nonpayable',
1162
+ type: 'function',
1163
+ },
1164
+ {
1165
+ inputs: [
1166
+ {
1167
+ name: '_tokenIn',
1168
+ type: 'address',
1169
+ },
1170
+ {
1171
+ name: '_tokenOut',
1172
+ type: 'address',
1173
+ },
1174
+ {
1175
+ name: '_amountOut',
1176
+ type: 'uint256',
1177
+ },
1178
+ {
1179
+ name: '_includeLegoIds',
1180
+ type: 'uint256[]',
1181
+ },
1182
+ ],
1183
+ name: 'getBestSwapRoutesAmountIn',
1184
+ outputs: [
1185
+ {
1186
+ components: [
1187
+ {
1188
+ name: 'legoId',
1189
+ type: 'uint256',
1190
+ },
1191
+ {
1192
+ name: 'pool',
1193
+ type: 'address',
1194
+ },
1195
+ {
1196
+ name: 'tokenIn',
1197
+ type: 'address',
1198
+ },
1199
+ {
1200
+ name: 'tokenOut',
1201
+ type: 'address',
1202
+ },
1203
+ {
1204
+ name: 'amountIn',
1205
+ type: 'uint256',
1206
+ },
1207
+ {
1208
+ name: 'amountOut',
1209
+ type: 'uint256',
1210
+ },
1211
+ ],
1212
+ name: '',
1213
+ type: 'tuple[]',
1214
+ },
1215
+ ],
1216
+ stateMutability: 'nonpayable',
1217
+ type: 'function',
1218
+ },
1219
+ {
1220
+ inputs: [
1221
+ {
1222
+ name: '_tokenIn',
1223
+ type: 'address',
1224
+ },
1225
+ {
1226
+ name: '_tokenOut',
1227
+ type: 'address',
1228
+ },
1229
+ {
1230
+ name: '_amountOut',
1231
+ type: 'uint256',
1232
+ },
1233
+ ],
1234
+ name: 'getBestSwapAmountInWithRouterPool',
1235
+ outputs: [
1236
+ {
1237
+ name: '',
1238
+ type: 'uint256',
1239
+ },
1240
+ {
1241
+ components: [
1242
+ {
1243
+ name: 'legoId',
1244
+ type: 'uint256',
1245
+ },
1246
+ {
1247
+ name: 'pool',
1248
+ type: 'address',
1249
+ },
1250
+ {
1251
+ name: 'tokenIn',
1252
+ type: 'address',
1253
+ },
1254
+ {
1255
+ name: 'tokenOut',
1256
+ type: 'address',
1257
+ },
1258
+ {
1259
+ name: 'amountIn',
1260
+ type: 'uint256',
1261
+ },
1262
+ {
1263
+ name: 'amountOut',
1264
+ type: 'uint256',
1265
+ },
1266
+ ],
1267
+ name: '',
1268
+ type: 'tuple[]',
1269
+ },
1270
+ ],
1271
+ stateMutability: 'nonpayable',
1272
+ type: 'function',
1273
+ },
1274
+ {
1275
+ inputs: [
1276
+ {
1277
+ name: '_tokenIn',
1278
+ type: 'address',
1279
+ },
1280
+ {
1281
+ name: '_tokenOut',
1282
+ type: 'address',
1283
+ },
1284
+ {
1285
+ name: '_amountOut',
1286
+ type: 'uint256',
1287
+ },
1288
+ {
1289
+ name: '_includeLegoIds',
1290
+ type: 'uint256[]',
1291
+ },
1292
+ ],
1293
+ name: 'getBestSwapAmountInWithRouterPool',
1294
+ outputs: [
1295
+ {
1296
+ name: '',
1297
+ type: 'uint256',
1298
+ },
1299
+ {
1300
+ components: [
1301
+ {
1302
+ name: 'legoId',
1303
+ type: 'uint256',
1304
+ },
1305
+ {
1306
+ name: 'pool',
1307
+ type: 'address',
1308
+ },
1309
+ {
1310
+ name: 'tokenIn',
1311
+ type: 'address',
1312
+ },
1313
+ {
1314
+ name: 'tokenOut',
1315
+ type: 'address',
1316
+ },
1317
+ {
1318
+ name: 'amountIn',
1319
+ type: 'uint256',
1320
+ },
1321
+ {
1322
+ name: 'amountOut',
1323
+ type: 'uint256',
1324
+ },
1325
+ ],
1326
+ name: '',
1327
+ type: 'tuple[]',
1328
+ },
1329
+ ],
1330
+ stateMutability: 'nonpayable',
1331
+ type: 'function',
1332
+ },
1333
+ {
1334
+ inputs: [
1335
+ {
1336
+ name: '_tokenIn',
1337
+ type: 'address',
1338
+ },
1339
+ {
1340
+ name: '_tokenOut',
1341
+ type: 'address',
1342
+ },
1343
+ {
1344
+ name: '_amountOut',
1345
+ type: 'uint256',
1346
+ },
1347
+ ],
1348
+ name: 'getBestSwapAmountInSinglePool',
1349
+ outputs: [
1350
+ {
1351
+ components: [
1352
+ {
1353
+ name: 'legoId',
1354
+ type: 'uint256',
1355
+ },
1356
+ {
1357
+ name: 'pool',
1358
+ type: 'address',
1359
+ },
1360
+ {
1361
+ name: 'tokenIn',
1362
+ type: 'address',
1363
+ },
1364
+ {
1365
+ name: 'tokenOut',
1366
+ type: 'address',
1367
+ },
1368
+ {
1369
+ name: 'amountIn',
1370
+ type: 'uint256',
1371
+ },
1372
+ {
1373
+ name: 'amountOut',
1374
+ type: 'uint256',
1375
+ },
1376
+ ],
1377
+ name: '',
1378
+ type: 'tuple',
1379
+ },
1380
+ ],
1381
+ stateMutability: 'nonpayable',
1382
+ type: 'function',
1383
+ },
1384
+ {
1385
+ inputs: [
1386
+ {
1387
+ name: '_tokenIn',
1388
+ type: 'address',
1389
+ },
1390
+ {
1391
+ name: '_tokenOut',
1392
+ type: 'address',
1393
+ },
1394
+ {
1395
+ name: '_amountOut',
1396
+ type: 'uint256',
1397
+ },
1398
+ {
1399
+ name: '_includeLegoIds',
1400
+ type: 'uint256[]',
1401
+ },
1402
+ ],
1403
+ name: 'getBestSwapAmountInSinglePool',
1404
+ outputs: [
1405
+ {
1406
+ components: [
1407
+ {
1408
+ name: 'legoId',
1409
+ type: 'uint256',
1410
+ },
1411
+ {
1412
+ name: 'pool',
1413
+ type: 'address',
1414
+ },
1415
+ {
1416
+ name: 'tokenIn',
1417
+ type: 'address',
1418
+ },
1419
+ {
1420
+ name: 'tokenOut',
1421
+ type: 'address',
1422
+ },
1423
+ {
1424
+ name: 'amountIn',
1425
+ type: 'uint256',
1426
+ },
1427
+ {
1428
+ name: 'amountOut',
1429
+ type: 'uint256',
1430
+ },
1431
+ ],
1432
+ name: '',
1433
+ type: 'tuple',
1434
+ },
1435
+ ],
1436
+ stateMutability: 'nonpayable',
1437
+ type: 'function',
1438
+ },
1439
+ {
1440
+ inputs: [
1441
+ {
1442
+ name: '_tokenIn',
1443
+ type: 'address',
1444
+ },
1445
+ {
1446
+ name: '_tokenOut',
1447
+ type: 'address',
1448
+ },
1449
+ {
1450
+ name: '_amountOut',
1451
+ type: 'uint256',
1452
+ },
1453
+ ],
1454
+ name: 'getSwapAmountInViaRouterPool',
1455
+ outputs: [
1456
+ {
1457
+ components: [
1458
+ {
1459
+ name: 'legoId',
1460
+ type: 'uint256',
1461
+ },
1462
+ {
1463
+ name: 'pool',
1464
+ type: 'address',
1465
+ },
1466
+ {
1467
+ name: 'tokenIn',
1468
+ type: 'address',
1469
+ },
1470
+ {
1471
+ name: 'tokenOut',
1472
+ type: 'address',
1473
+ },
1474
+ {
1475
+ name: 'amountIn',
1476
+ type: 'uint256',
1477
+ },
1478
+ {
1479
+ name: 'amountOut',
1480
+ type: 'uint256',
1481
+ },
1482
+ ],
1483
+ name: '',
1484
+ type: 'tuple',
1485
+ },
1486
+ ],
1487
+ stateMutability: 'nonpayable',
1488
+ type: 'function',
1489
+ },
1490
+ {
1491
+ inputs: [
1492
+ {
1493
+ name: '_tokenIn',
1494
+ type: 'address',
1495
+ },
1496
+ {
1497
+ name: '_tokenOut',
1498
+ type: 'address',
1499
+ },
1500
+ {
1501
+ name: '_amountOut',
1502
+ type: 'uint256',
1503
+ },
1504
+ {
1505
+ name: '_includeLegoIds',
1506
+ type: 'uint256[]',
1507
+ },
1508
+ ],
1509
+ name: 'getSwapAmountInViaRouterPool',
1510
+ outputs: [
1511
+ {
1512
+ components: [
1513
+ {
1514
+ name: 'legoId',
1515
+ type: 'uint256',
1516
+ },
1517
+ {
1518
+ name: 'pool',
1519
+ type: 'address',
1520
+ },
1521
+ {
1522
+ name: 'tokenIn',
1523
+ type: 'address',
1524
+ },
1525
+ {
1526
+ name: 'tokenOut',
1527
+ type: 'address',
1528
+ },
1529
+ {
1530
+ name: 'amountIn',
1531
+ type: 'uint256',
1532
+ },
1533
+ {
1534
+ name: 'amountOut',
1535
+ type: 'uint256',
1536
+ },
1537
+ ],
1538
+ name: '',
1539
+ type: 'tuple',
1540
+ },
1541
+ ],
1542
+ stateMutability: 'nonpayable',
1543
+ type: 'function',
1544
+ },
1545
+ {
1546
+ inputs: [],
1547
+ name: 'ADDY_REGISTRY',
1548
+ outputs: [
1549
+ {
1550
+ name: '',
1551
+ type: 'address',
1552
+ },
1553
+ ],
1554
+ stateMutability: 'view',
1555
+ type: 'function',
1556
+ },
1557
+ {
1558
+ inputs: [],
1559
+ name: 'ROUTER_TOKENA',
1560
+ outputs: [
1561
+ {
1562
+ name: '',
1563
+ type: 'address',
1564
+ },
1565
+ ],
1566
+ stateMutability: 'view',
1567
+ type: 'function',
1568
+ },
1569
+ {
1570
+ inputs: [],
1571
+ name: 'ROUTER_TOKENB',
1572
+ outputs: [
1573
+ {
1574
+ name: '',
1575
+ type: 'address',
1576
+ },
1577
+ ],
1578
+ stateMutability: 'view',
1579
+ type: 'function',
1580
+ },
1581
+ {
1582
+ inputs: [],
1583
+ name: 'AAVE_V3_ID',
1584
+ outputs: [
1585
+ {
1586
+ name: '',
1587
+ type: 'uint256',
1588
+ },
1589
+ ],
1590
+ stateMutability: 'view',
1591
+ type: 'function',
1592
+ },
1593
+ {
1594
+ inputs: [],
1595
+ name: 'COMPOUND_V3_ID',
1596
+ outputs: [
1597
+ {
1598
+ name: '',
1599
+ type: 'uint256',
1600
+ },
1601
+ ],
1602
+ stateMutability: 'view',
1603
+ type: 'function',
1604
+ },
1605
+ {
1606
+ inputs: [],
1607
+ name: 'EULER_ID',
1608
+ outputs: [
1609
+ {
1610
+ name: '',
1611
+ type: 'uint256',
1612
+ },
1613
+ ],
1614
+ stateMutability: 'view',
1615
+ type: 'function',
1616
+ },
1617
+ {
1618
+ inputs: [],
1619
+ name: 'FLUID_ID',
1620
+ outputs: [
1621
+ {
1622
+ name: '',
1623
+ type: 'uint256',
1624
+ },
1625
+ ],
1626
+ stateMutability: 'view',
1627
+ type: 'function',
1628
+ },
1629
+ {
1630
+ inputs: [],
1631
+ name: 'MOONWELL_ID',
1632
+ outputs: [
1633
+ {
1634
+ name: '',
1635
+ type: 'uint256',
1636
+ },
1637
+ ],
1638
+ stateMutability: 'view',
1639
+ type: 'function',
1640
+ },
1641
+ {
1642
+ inputs: [],
1643
+ name: 'MORPHO_ID',
1644
+ outputs: [
1645
+ {
1646
+ name: '',
1647
+ type: 'uint256',
1648
+ },
1649
+ ],
1650
+ stateMutability: 'view',
1651
+ type: 'function',
1652
+ },
1653
+ {
1654
+ inputs: [],
1655
+ name: 'SKY_ID',
1656
+ outputs: [
1657
+ {
1658
+ name: '',
1659
+ type: 'uint256',
1660
+ },
1661
+ ],
1662
+ stateMutability: 'view',
1663
+ type: 'function',
1664
+ },
1665
+ {
1666
+ inputs: [],
1667
+ name: 'UNISWAP_V2_ID',
1668
+ outputs: [
1669
+ {
1670
+ name: '',
1671
+ type: 'uint256',
1672
+ },
1673
+ ],
1674
+ stateMutability: 'view',
1675
+ type: 'function',
1676
+ },
1677
+ {
1678
+ inputs: [],
1679
+ name: 'UNISWAP_V3_ID',
1680
+ outputs: [
1681
+ {
1682
+ name: '',
1683
+ type: 'uint256',
1684
+ },
1685
+ ],
1686
+ stateMutability: 'view',
1687
+ type: 'function',
1688
+ },
1689
+ {
1690
+ inputs: [],
1691
+ name: 'AERODROME_ID',
1692
+ outputs: [
1693
+ {
1694
+ name: '',
1695
+ type: 'uint256',
1696
+ },
1697
+ ],
1698
+ stateMutability: 'view',
1699
+ type: 'function',
1700
+ },
1701
+ {
1702
+ inputs: [],
1703
+ name: 'AERODROME_SLIPSTREAM_ID',
1704
+ outputs: [
1705
+ {
1706
+ name: '',
1707
+ type: 'uint256',
1708
+ },
1709
+ ],
1710
+ stateMutability: 'view',
1711
+ type: 'function',
1712
+ },
1713
+ {
1714
+ inputs: [],
1715
+ name: 'CURVE_ID',
1716
+ outputs: [
1717
+ {
1718
+ name: '',
1719
+ type: 'uint256',
1720
+ },
1721
+ ],
1722
+ stateMutability: 'view',
1723
+ type: 'function',
1724
+ },
1725
+ {
1726
+ inputs: [
1727
+ {
1728
+ name: '_addyRegistry',
1729
+ type: 'address',
1730
+ },
1731
+ {
1732
+ name: '_routerTokenA',
1733
+ type: 'address',
1734
+ },
1735
+ {
1736
+ name: '_routerTokenB',
1737
+ type: 'address',
1738
+ },
1739
+ {
1740
+ name: '_aaveV3Id',
1741
+ type: 'uint256',
1742
+ },
1743
+ {
1744
+ name: '_compoundV3Id',
1745
+ type: 'uint256',
1746
+ },
1747
+ {
1748
+ name: '_eulerId',
1749
+ type: 'uint256',
1750
+ },
1751
+ {
1752
+ name: '_fluidId',
1753
+ type: 'uint256',
1754
+ },
1755
+ {
1756
+ name: '_moonwellId',
1757
+ type: 'uint256',
1758
+ },
1759
+ {
1760
+ name: '_morphoId',
1761
+ type: 'uint256',
1762
+ },
1763
+ {
1764
+ name: '_skyId',
1765
+ type: 'uint256',
1766
+ },
1767
+ {
1768
+ name: '_uniswapV2Id',
1769
+ type: 'uint256',
1770
+ },
1771
+ {
1772
+ name: '_uniswapV3Id',
1773
+ type: 'uint256',
1774
+ },
1775
+ {
1776
+ name: '_aerodromeId',
1777
+ type: 'uint256',
1778
+ },
1779
+ {
1780
+ name: '_aerodromeSlipstreamId',
1781
+ type: 'uint256',
1782
+ },
1783
+ {
1784
+ name: '_curveId',
1785
+ type: 'uint256',
1786
+ },
1787
+ ],
1788
+ outputs: [],
1789
+ stateMutability: 'nonpayable',
1790
+ type: 'constructor',
1791
+ },
1792
+ ];
1793
+ export const deployAddress = '0xF80b87DD1096f9E68739f55B9807Df1CB21422E3';
1794
+ function getRequest(method, args, contractAddressOrOptions) {
1795
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1796
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
1797
+ const call = {
1798
+ contractName: 'v0_3_LegoHelper',
1799
+ method,
1800
+ args,
1801
+ address,
1802
+ deployAddress,
1803
+ defaultValue,
1804
+ getAbi: () => abi,
1805
+ with: (options) => {
1806
+ call.address = options.contractAddress;
1807
+ call.defaultValue = options.defaultValue;
1808
+ return call;
1809
+ },
1810
+ defaultTo: (defaultValue) => {
1811
+ call.defaultValue = defaultValue;
1812
+ return call;
1813
+ },
1814
+ at: (address) => {
1815
+ call.address = address;
1816
+ return call;
1817
+ },
1818
+ };
1819
+ return call;
1820
+ }
1821
+ export const call = {
1822
+ aaveV3: (...args) => getRequest('aaveV3', args),
1823
+ aaveV3Id: (...args) => getRequest('aaveV3Id', args),
1824
+ compoundV3: (...args) => getRequest('compoundV3', args),
1825
+ compoundV3Id: (...args) => getRequest('compoundV3Id', args),
1826
+ euler: (...args) => getRequest('euler', args),
1827
+ eulerId: (...args) => getRequest('eulerId', args),
1828
+ fluid: (...args) => getRequest('fluid', args),
1829
+ fluidId: (...args) => getRequest('fluidId', args),
1830
+ moonwell: (...args) => getRequest('moonwell', args),
1831
+ moonwellId: (...args) => getRequest('moonwellId', args),
1832
+ morpho: (...args) => getRequest('morpho', args),
1833
+ morphoId: (...args) => getRequest('morphoId', args),
1834
+ sky: (...args) => getRequest('sky', args),
1835
+ skyId: (...args) => getRequest('skyId', args),
1836
+ uniswapV2: (...args) => getRequest('uniswapV2', args),
1837
+ uniswapV2Id: (...args) => getRequest('uniswapV2Id', args),
1838
+ uniswapV3: (...args) => getRequest('uniswapV3', args),
1839
+ uniswapV3Id: (...args) => getRequest('uniswapV3Id', args),
1840
+ aerodrome: (...args) => getRequest('aerodrome', args),
1841
+ aerodromeId: (...args) => getRequest('aerodromeId', args),
1842
+ aerodromeSlipstream: (...args) => getRequest('aerodromeSlipstream', args),
1843
+ aerodromeSlipstreamId: (...args) => getRequest('aerodromeSlipstreamId', args),
1844
+ curve: (...args) => getRequest('curve', args),
1845
+ curveId: (...args) => getRequest('curveId', args),
1846
+ getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
1847
+ getLegoFromVaultToken: (...args) => getRequest('getLegoFromVaultToken', args),
1848
+ getUnderlyingData: (...args) => getRequest('getUnderlyingData', args),
1849
+ ADDY_REGISTRY: (...args) => getRequest('ADDY_REGISTRY', args),
1850
+ ROUTER_TOKENA: (...args) => getRequest('ROUTER_TOKENA', args),
1851
+ ROUTER_TOKENB: (...args) => getRequest('ROUTER_TOKENB', args),
1852
+ AAVE_V3_ID: (...args) => getRequest('AAVE_V3_ID', args),
1853
+ COMPOUND_V3_ID: (...args) => getRequest('COMPOUND_V3_ID', args),
1854
+ EULER_ID: (...args) => getRequest('EULER_ID', args),
1855
+ FLUID_ID: (...args) => getRequest('FLUID_ID', args),
1856
+ MOONWELL_ID: (...args) => getRequest('MOONWELL_ID', args),
1857
+ MORPHO_ID: (...args) => getRequest('MORPHO_ID', args),
1858
+ SKY_ID: (...args) => getRequest('SKY_ID', args),
1859
+ UNISWAP_V2_ID: (...args) => getRequest('UNISWAP_V2_ID', args),
1860
+ UNISWAP_V3_ID: (...args) => getRequest('UNISWAP_V3_ID', args),
1861
+ AERODROME_ID: (...args) => getRequest('AERODROME_ID', args),
1862
+ AERODROME_SLIPSTREAM_ID: (...args) => getRequest('AERODROME_SLIPSTREAM_ID', args),
1863
+ CURVE_ID: (...args) => getRequest('CURVE_ID', args),
1864
+ };
1865
+ function getMutation(functionName) {
1866
+ return {
1867
+ contractName: 'v0_3_LegoHelper',
1868
+ functionName,
1869
+ deployAddress,
1870
+ argsType: undefined,
1871
+ getAbi: () => abi,
1872
+ };
1873
+ }
1874
+ export const mutation = {
1875
+ getRoutesAndSwapInstructionsAmountOut: getMutation('getRoutesAndSwapInstructionsAmountOut'),
1876
+ getRoutesAndSwapInstructionsAmountIn: getMutation('getRoutesAndSwapInstructionsAmountIn'),
1877
+ prepareSwapInstructionsAmountOut: getMutation('prepareSwapInstructionsAmountOut'),
1878
+ getBestSwapRoutesAmountOut: getMutation('getBestSwapRoutesAmountOut'),
1879
+ getBestSwapAmountOutWithRouterPool: getMutation('getBestSwapAmountOutWithRouterPool'),
1880
+ getBestSwapAmountOutSinglePool: getMutation('getBestSwapAmountOutSinglePool'),
1881
+ getSwapAmountOutViaRouterPool: getMutation('getSwapAmountOutViaRouterPool'),
1882
+ getBestSwapRoutesAmountIn: getMutation('getBestSwapRoutesAmountIn'),
1883
+ getBestSwapAmountInWithRouterPool: getMutation('getBestSwapAmountInWithRouterPool'),
1884
+ getBestSwapAmountInSinglePool: getMutation('getBestSwapAmountInSinglePool'),
1885
+ getSwapAmountInViaRouterPool: getMutation('getSwapAmountInViaRouterPool'),
1886
+ };
1887
+ export function toSdk(publicClient, walletClient) {
1888
+ return {
1889
+ deployAddress,
1890
+ abi,
1891
+ // Queries
1892
+ aaveV3: (...args) => singleQuery(publicClient, call.aaveV3(...args)),
1893
+ aaveV3Id: (...args) => singleQuery(publicClient, call.aaveV3Id(...args)),
1894
+ compoundV3: (...args) => singleQuery(publicClient, call.compoundV3(...args)),
1895
+ compoundV3Id: (...args) => singleQuery(publicClient, call.compoundV3Id(...args)),
1896
+ euler: (...args) => singleQuery(publicClient, call.euler(...args)),
1897
+ eulerId: (...args) => singleQuery(publicClient, call.eulerId(...args)),
1898
+ fluid: (...args) => singleQuery(publicClient, call.fluid(...args)),
1899
+ fluidId: (...args) => singleQuery(publicClient, call.fluidId(...args)),
1900
+ moonwell: (...args) => singleQuery(publicClient, call.moonwell(...args)),
1901
+ moonwellId: (...args) => singleQuery(publicClient, call.moonwellId(...args)),
1902
+ morpho: (...args) => singleQuery(publicClient, call.morpho(...args)),
1903
+ morphoId: (...args) => singleQuery(publicClient, call.morphoId(...args)),
1904
+ sky: (...args) => singleQuery(publicClient, call.sky(...args)),
1905
+ skyId: (...args) => singleQuery(publicClient, call.skyId(...args)),
1906
+ uniswapV2: (...args) => singleQuery(publicClient, call.uniswapV2(...args)),
1907
+ uniswapV2Id: (...args) => singleQuery(publicClient, call.uniswapV2Id(...args)),
1908
+ uniswapV3: (...args) => singleQuery(publicClient, call.uniswapV3(...args)),
1909
+ uniswapV3Id: (...args) => singleQuery(publicClient, call.uniswapV3Id(...args)),
1910
+ aerodrome: (...args) => singleQuery(publicClient, call.aerodrome(...args)),
1911
+ aerodromeId: (...args) => singleQuery(publicClient, call.aerodromeId(...args)),
1912
+ aerodromeSlipstream: (...args) => singleQuery(publicClient, call.aerodromeSlipstream(...args)),
1913
+ aerodromeSlipstreamId: (...args) => singleQuery(publicClient, call.aerodromeSlipstreamId(...args)),
1914
+ curve: (...args) => singleQuery(publicClient, call.curve(...args)),
1915
+ curveId: (...args) => singleQuery(publicClient, call.curveId(...args)),
1916
+ getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
1917
+ getLegoFromVaultToken: (...args) => singleQuery(publicClient, call.getLegoFromVaultToken(...args)),
1918
+ getUnderlyingData: (...args) => singleQuery(publicClient, call.getUnderlyingData(...args)),
1919
+ ADDY_REGISTRY: (...args) => singleQuery(publicClient, call.ADDY_REGISTRY(...args)),
1920
+ ROUTER_TOKENA: (...args) => singleQuery(publicClient, call.ROUTER_TOKENA(...args)),
1921
+ ROUTER_TOKENB: (...args) => singleQuery(publicClient, call.ROUTER_TOKENB(...args)),
1922
+ AAVE_V3_ID: (...args) => singleQuery(publicClient, call.AAVE_V3_ID(...args)),
1923
+ COMPOUND_V3_ID: (...args) => singleQuery(publicClient, call.COMPOUND_V3_ID(...args)),
1924
+ EULER_ID: (...args) => singleQuery(publicClient, call.EULER_ID(...args)),
1925
+ FLUID_ID: (...args) => singleQuery(publicClient, call.FLUID_ID(...args)),
1926
+ MOONWELL_ID: (...args) => singleQuery(publicClient, call.MOONWELL_ID(...args)),
1927
+ MORPHO_ID: (...args) => singleQuery(publicClient, call.MORPHO_ID(...args)),
1928
+ SKY_ID: (...args) => singleQuery(publicClient, call.SKY_ID(...args)),
1929
+ UNISWAP_V2_ID: (...args) => singleQuery(publicClient, call.UNISWAP_V2_ID(...args)),
1930
+ UNISWAP_V3_ID: (...args) => singleQuery(publicClient, call.UNISWAP_V3_ID(...args)),
1931
+ AERODROME_ID: (...args) => singleQuery(publicClient, call.AERODROME_ID(...args)),
1932
+ AERODROME_SLIPSTREAM_ID: (...args) => singleQuery(publicClient, call.AERODROME_SLIPSTREAM_ID(...args)),
1933
+ CURVE_ID: (...args) => singleQuery(publicClient, call.CURVE_ID(...args)),
1934
+ // Mutations
1935
+ getRoutesAndSwapInstructionsAmountOut: (...args) => mutate(walletClient, mutation.getRoutesAndSwapInstructionsAmountOut)(...args),
1936
+ getRoutesAndSwapInstructionsAmountIn: (...args) => mutate(walletClient, mutation.getRoutesAndSwapInstructionsAmountIn)(...args),
1937
+ prepareSwapInstructionsAmountOut: (...args) => mutate(walletClient, mutation.prepareSwapInstructionsAmountOut)(...args),
1938
+ getBestSwapRoutesAmountOut: (...args) => mutate(walletClient, mutation.getBestSwapRoutesAmountOut)(...args),
1939
+ getBestSwapAmountOutWithRouterPool: (...args) => mutate(walletClient, mutation.getBestSwapAmountOutWithRouterPool)(...args),
1940
+ getBestSwapAmountOutSinglePool: (...args) => mutate(walletClient, mutation.getBestSwapAmountOutSinglePool)(...args),
1941
+ getSwapAmountOutViaRouterPool: (...args) => mutate(walletClient, mutation.getSwapAmountOutViaRouterPool)(...args),
1942
+ getBestSwapRoutesAmountIn: (...args) => mutate(walletClient, mutation.getBestSwapRoutesAmountIn)(...args),
1943
+ getBestSwapAmountInWithRouterPool: (...args) => mutate(walletClient, mutation.getBestSwapAmountInWithRouterPool)(...args),
1944
+ getBestSwapAmountInSinglePool: (...args) => mutate(walletClient, mutation.getBestSwapAmountInSinglePool)(...args),
1945
+ getSwapAmountInViaRouterPool: (...args) => mutate(walletClient, mutation.getSwapAmountInViaRouterPool)(...args),
1946
+ };
1947
+ }