@underscore-finance/sdk 1.0.12 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (412) hide show
  1. package/dist/contracts/AaveV3.d.ts +688 -251
  2. package/dist/contracts/AaveV3.d.ts.map +1 -1
  3. package/dist/contracts/AaveV3.js +873 -340
  4. package/dist/contracts/AeroClassic.d.ts +85 -13
  5. package/dist/contracts/AeroClassic.d.ts.map +1 -1
  6. package/dist/contracts/AeroClassic.js +106 -17
  7. package/dist/contracts/AeroSlipstream.d.ts +120 -14
  8. package/dist/contracts/AeroSlipstream.d.ts.map +1 -1
  9. package/dist/contracts/AeroSlipstream.js +149 -18
  10. package/dist/contracts/{v0_2_Agent.d.ts → AgentSenderGeneric.d.ts} +2546 -1228
  11. package/dist/contracts/AgentSenderGeneric.d.ts.map +1 -0
  12. package/dist/contracts/{v0_2_Agent.js → AgentSenderGeneric.js} +3210 -1388
  13. package/dist/contracts/AgentSenderSpecial.d.ts +1968 -0
  14. package/dist/contracts/AgentSenderSpecial.d.ts.map +1 -0
  15. package/dist/contracts/AgentSenderSpecial.js +2509 -0
  16. package/dist/contracts/AgentWrapper.d.ts +170 -1462
  17. package/dist/contracts/AgentWrapper.d.ts.map +1 -1
  18. package/dist/contracts/AgentWrapper.js +262 -1869
  19. package/dist/contracts/{v0_3_Agent.d.ts → AgentWrapperV1.d.ts} +1983 -932
  20. package/dist/contracts/AgentWrapperV1.d.ts.map +1 -0
  21. package/dist/contracts/{Agent_v2.js → AgentWrapperV1.js} +2582 -1118
  22. package/dist/contracts/Appraiser.d.ts +22 -459
  23. package/dist/contracts/Appraiser.d.ts.map +1 -1
  24. package/dist/contracts/Appraiser.js +26 -596
  25. package/dist/contracts/Avantis.d.ts +2565 -0
  26. package/dist/contracts/Avantis.d.ts.map +1 -0
  27. package/dist/contracts/{v0_1_Agent.js → Avantis.js} +1674 -1790
  28. package/dist/contracts/Billing.d.ts +4 -68
  29. package/dist/contracts/Billing.d.ts.map +1 -1
  30. package/dist/contracts/Billing.js +5 -82
  31. package/dist/contracts/ChequeBook.d.ts +52 -1
  32. package/dist/contracts/ChequeBook.d.ts.map +1 -1
  33. package/dist/contracts/ChequeBook.js +53 -1
  34. package/dist/contracts/CompoundV3.d.ts +674 -251
  35. package/dist/contracts/CompoundV3.d.ts.map +1 -1
  36. package/dist/contracts/CompoundV3.js +819 -305
  37. package/dist/contracts/ConvertVaultToken.d.ts +63 -0
  38. package/dist/contracts/ConvertVaultToken.d.ts.map +1 -0
  39. package/dist/contracts/ConvertVaultToken.js +75 -0
  40. package/dist/contracts/Curve.d.ts +18 -17
  41. package/dist/contracts/Curve.d.ts.map +1 -1
  42. package/dist/contracts/Curve.js +23 -24
  43. package/dist/contracts/DefaultsBase.d.ts +45 -56
  44. package/dist/contracts/DefaultsBase.d.ts.map +1 -1
  45. package/dist/contracts/DefaultsBase.js +45 -59
  46. package/dist/contracts/EarnVault.d.ts +1680 -0
  47. package/dist/contracts/EarnVault.d.ts.map +1 -0
  48. package/dist/contracts/{UserWallet_v2.js → EarnVault.js} +898 -1245
  49. package/dist/contracts/EarnVaultAgent.d.ts +1004 -0
  50. package/dist/contracts/EarnVaultAgent.d.ts.map +1 -0
  51. package/dist/contracts/{v0_3_LegoSky.js → EarnVaultAgent.js} +640 -547
  52. package/dist/contracts/EarnVaultAgentSigHelper.d.ts +904 -0
  53. package/dist/contracts/EarnVaultAgentSigHelper.d.ts.map +1 -0
  54. package/dist/contracts/EarnVaultAgentSigHelper.js +1198 -0
  55. package/dist/contracts/Euler.d.ts +700 -255
  56. package/dist/contracts/Euler.d.ts.map +1 -1
  57. package/dist/contracts/Euler.js +834 -293
  58. package/dist/contracts/Fluid.d.ts +771 -284
  59. package/dist/contracts/Fluid.d.ts.map +1 -1
  60. package/dist/contracts/Fluid.js +925 -329
  61. package/dist/contracts/FortyAcres.d.ts +2579 -0
  62. package/dist/contracts/FortyAcres.d.ts.map +1 -0
  63. package/dist/contracts/FortyAcres.js +3274 -0
  64. package/dist/contracts/Hatchery.d.ts +6 -176
  65. package/dist/contracts/Hatchery.d.ts.map +1 -1
  66. package/dist/contracts/Hatchery.js +5 -225
  67. package/dist/contracts/HighCommand.d.ts +237 -1
  68. package/dist/contracts/HighCommand.d.ts.map +1 -1
  69. package/dist/contracts/HighCommand.js +259 -1
  70. package/dist/contracts/Kernel.d.ts +8 -0
  71. package/dist/contracts/Kernel.d.ts.map +1 -1
  72. package/dist/contracts/Kernel.js +9 -1
  73. package/dist/contracts/LegoBook.d.ts +7 -0
  74. package/dist/contracts/LegoBook.d.ts.map +1 -1
  75. package/dist/contracts/LegoBook.js +9 -1
  76. package/dist/contracts/LegoTools.d.ts +4 -0
  77. package/dist/contracts/LegoTools.d.ts.map +1 -1
  78. package/dist/contracts/LegoTools.js +5 -1
  79. package/dist/contracts/LevgVaultHelper.d.ts +1070 -0
  80. package/dist/contracts/LevgVaultHelper.d.ts.map +1 -0
  81. package/dist/contracts/{LegoCurve.js → LevgVaultHelper.js} +662 -767
  82. package/dist/contracts/LootDistributor.d.ts +49 -131
  83. package/dist/contracts/LootDistributor.d.ts.map +1 -1
  84. package/dist/contracts/LootDistributor.js +58 -157
  85. package/dist/contracts/Migrator.d.ts +4 -0
  86. package/dist/contracts/Migrator.d.ts.map +1 -1
  87. package/dist/contracts/Migrator.js +5 -1
  88. package/dist/contracts/MissionControl.d.ts +211 -295
  89. package/dist/contracts/MissionControl.d.ts.map +1 -1
  90. package/dist/contracts/MissionControl.js +216 -305
  91. package/dist/contracts/Moonwell.d.ts +696 -251
  92. package/dist/contracts/Moonwell.d.ts.map +1 -1
  93. package/dist/contracts/Moonwell.js +832 -291
  94. package/dist/contracts/Morpho.d.ts +719 -274
  95. package/dist/contracts/Morpho.d.ts.map +1 -1
  96. package/dist/contracts/Morpho.js +849 -308
  97. package/dist/contracts/Paymaster.d.ts +4 -0
  98. package/dist/contracts/Paymaster.d.ts.map +1 -1
  99. package/dist/contracts/Paymaster.js +5 -1
  100. package/dist/contracts/RipeLego.d.ts +920 -378
  101. package/dist/contracts/RipeLego.d.ts.map +1 -1
  102. package/dist/contracts/RipeLego.js +1123 -462
  103. package/dist/contracts/Sentinel.d.ts +275 -7
  104. package/dist/contracts/Sentinel.d.ts.map +1 -1
  105. package/dist/contracts/Sentinel.js +331 -7
  106. package/dist/contracts/SignatureHelperV1.d.ts +229 -229
  107. package/dist/contracts/SignatureHelperV1.js +333 -333
  108. package/dist/contracts/SkyPsm.d.ts +2622 -0
  109. package/dist/contracts/SkyPsm.d.ts.map +1 -0
  110. package/dist/contracts/SkyPsm.js +3329 -0
  111. package/dist/contracts/Switchboard.d.ts +7 -0
  112. package/dist/contracts/Switchboard.d.ts.map +1 -1
  113. package/dist/contracts/Switchboard.js +9 -1
  114. package/dist/contracts/SwitchboardAlpha.d.ts +499 -264
  115. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
  116. package/dist/contracts/SwitchboardAlpha.js +566 -282
  117. package/dist/contracts/SwitchboardBravo.d.ts +4 -24
  118. package/dist/contracts/SwitchboardBravo.d.ts.map +1 -1
  119. package/dist/contracts/SwitchboardBravo.js +5 -32
  120. package/dist/contracts/SwitchboardCharlie.d.ts +2923 -0
  121. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -0
  122. package/dist/contracts/SwitchboardCharlie.js +3635 -0
  123. package/dist/contracts/{Agent_v2.d.ts → UnderscoreLego.d.ts} +1605 -1763
  124. package/dist/contracts/UnderscoreLego.d.ts.map +1 -0
  125. package/dist/contracts/{AgentTemplate.js → UnderscoreLego.js} +1664 -1796
  126. package/dist/contracts/UndyAero.d.ts +1680 -0
  127. package/dist/contracts/UndyAero.d.ts.map +1 -0
  128. package/dist/contracts/{v0_2_UserWallet.js → UndyAero.js} +1056 -1403
  129. package/dist/contracts/UndyBtc.d.ts +1680 -0
  130. package/dist/contracts/UndyBtc.d.ts.map +1 -0
  131. package/dist/contracts/{WalletFunds.js → UndyBtc.js} +1063 -1436
  132. package/dist/contracts/UndyCbeth.d.ts +1680 -0
  133. package/dist/contracts/UndyCbeth.d.ts.map +1 -0
  134. package/dist/contracts/{UserWallet_v1.js → UndyCbeth.js} +1063 -1438
  135. package/dist/contracts/UndyEth.d.ts +1680 -0
  136. package/dist/contracts/UndyEth.d.ts.map +1 -0
  137. package/dist/contracts/UndyEth.js +2206 -0
  138. package/dist/contracts/UndyEurc.d.ts +1680 -0
  139. package/dist/contracts/UndyEurc.d.ts.map +1 -0
  140. package/dist/contracts/UndyEurc.js +2206 -0
  141. package/dist/contracts/UndyGho.d.ts +1680 -0
  142. package/dist/contracts/UndyGho.d.ts.map +1 -0
  143. package/dist/contracts/UndyGho.js +2206 -0
  144. package/dist/contracts/UndyRewardsLego.d.ts +3 -0
  145. package/dist/contracts/UndyRewardsLego.d.ts.map +1 -1
  146. package/dist/contracts/UndyRewardsLego.js +5 -1
  147. package/dist/contracts/UndyUsd.d.ts +1680 -0
  148. package/dist/contracts/UndyUsd.d.ts.map +1 -0
  149. package/dist/contracts/UndyUsd.js +2206 -0
  150. package/dist/contracts/UndyUsds.d.ts +1680 -0
  151. package/dist/contracts/UndyUsds.d.ts.map +1 -0
  152. package/dist/contracts/UndyUsds.js +2206 -0
  153. package/dist/contracts/UniswapV2.d.ts +85 -13
  154. package/dist/contracts/UniswapV2.d.ts.map +1 -1
  155. package/dist/contracts/UniswapV2.js +106 -17
  156. package/dist/contracts/UniswapV3.d.ts +120 -14
  157. package/dist/contracts/UniswapV3.d.ts.map +1 -1
  158. package/dist/contracts/UniswapV3.js +149 -18
  159. package/dist/contracts/UserWallet.d.ts +12 -8
  160. package/dist/contracts/UserWallet.d.ts.map +1 -1
  161. package/dist/contracts/UserWallet.js +13 -9
  162. package/dist/contracts/UserWalletConfig.d.ts +198 -56
  163. package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
  164. package/dist/contracts/UserWalletConfig.js +225 -72
  165. package/dist/contracts/UserWalletConfigV1.d.ts +3655 -0
  166. package/dist/contracts/UserWalletConfigV1.d.ts.map +1 -0
  167. package/dist/contracts/UserWalletConfigV1.js +4251 -0
  168. package/dist/contracts/{Agent_v1.d.ts → UserWalletV1.d.ts} +1178 -1176
  169. package/dist/contracts/UserWalletV1.d.ts.map +1 -0
  170. package/dist/contracts/{Agent_v1.js → UserWalletV1.js} +1468 -1340
  171. package/dist/contracts/VaultRegistry.d.ts +3028 -0
  172. package/dist/contracts/VaultRegistry.d.ts.map +1 -0
  173. package/dist/contracts/VaultRegistry.js +3843 -0
  174. package/dist/contracts/WalletBackpack.d.ts +4 -0
  175. package/dist/contracts/WalletBackpack.d.ts.map +1 -1
  176. package/dist/contracts/WalletBackpack.js +5 -1
  177. package/dist/contracts/Wasabi.d.ts +2579 -0
  178. package/dist/contracts/Wasabi.d.ts.map +1 -0
  179. package/dist/contracts/Wasabi.js +3274 -0
  180. package/dist/contracts/index.d.ts +25 -1
  181. package/dist/contracts/index.d.ts.map +1 -1
  182. package/dist/contracts/index.js +25 -1
  183. package/dist/contracts/sdk.d.ts +50 -2
  184. package/dist/contracts/sdk.d.ts.map +1 -1
  185. package/dist/contracts/sdk.js +50 -2
  186. package/dist/getSwapInstructions.js +1 -1
  187. package/dist/index.d.ts +33 -6
  188. package/dist/index.d.ts.map +1 -1
  189. package/dist/index.js +13 -7
  190. package/package.json +2 -2
  191. package/dist/contracts/AddyRegistry.d.ts +0 -1109
  192. package/dist/contracts/AddyRegistry.d.ts.map +0 -1
  193. package/dist/contracts/AddyRegistry.js +0 -1392
  194. package/dist/contracts/AddyRegistry_v1.d.ts +0 -473
  195. package/dist/contracts/AddyRegistry_v1.d.ts.map +0 -1
  196. package/dist/contracts/AddyRegistry_v1.js +0 -594
  197. package/dist/contracts/AddyRegistry_v2.d.ts +0 -1050
  198. package/dist/contracts/AddyRegistry_v2.d.ts.map +0 -1
  199. package/dist/contracts/AddyRegistry_v2.js +0 -1313
  200. package/dist/contracts/AgentFactory.d.ts +0 -1665
  201. package/dist/contracts/AgentFactory.d.ts.map +0 -1
  202. package/dist/contracts/AgentFactory.js +0 -2078
  203. package/dist/contracts/AgentFactory_v1.d.ts +0 -1054
  204. package/dist/contracts/AgentFactory_v1.d.ts.map +0 -1
  205. package/dist/contracts/AgentFactory_v1.js +0 -1336
  206. package/dist/contracts/AgentFactory_v2.d.ts +0 -1275
  207. package/dist/contracts/AgentFactory_v2.d.ts.map +0 -1
  208. package/dist/contracts/AgentFactory_v2.js +0 -1609
  209. package/dist/contracts/AgentTemplate.d.ts +0 -2629
  210. package/dist/contracts/AgentTemplate.d.ts.map +0 -1
  211. package/dist/contracts/Agent_v1.d.ts.map +0 -1
  212. package/dist/contracts/Agent_v2.d.ts.map +0 -1
  213. package/dist/contracts/ChainlinkFeeds.d.ts +0 -706
  214. package/dist/contracts/ChainlinkFeeds.d.ts.map +0 -1
  215. package/dist/contracts/ChainlinkFeeds.js +0 -900
  216. package/dist/contracts/LegoAaveV3.d.ts +0 -1033
  217. package/dist/contracts/LegoAaveV3.d.ts.map +0 -1
  218. package/dist/contracts/LegoAaveV3.js +0 -1330
  219. package/dist/contracts/LegoAeroClassic.d.ts +0 -1204
  220. package/dist/contracts/LegoAeroClassic.d.ts.map +0 -1
  221. package/dist/contracts/LegoAeroClassic.js +0 -1546
  222. package/dist/contracts/LegoAeroSlipstream.d.ts +0 -1300
  223. package/dist/contracts/LegoAeroSlipstream.d.ts.map +0 -1
  224. package/dist/contracts/LegoAeroSlipstream.js +0 -1671
  225. package/dist/contracts/LegoCommon.d.ts +0 -164
  226. package/dist/contracts/LegoCommon.d.ts.map +0 -1
  227. package/dist/contracts/LegoCommon.js +0 -202
  228. package/dist/contracts/LegoCompoundV3.d.ts +0 -1060
  229. package/dist/contracts/LegoCompoundV3.d.ts.map +0 -1
  230. package/dist/contracts/LegoCompoundV3.js +0 -1365
  231. package/dist/contracts/LegoCredit.d.ts +0 -140
  232. package/dist/contracts/LegoCredit.d.ts.map +0 -1
  233. package/dist/contracts/LegoCredit.js +0 -179
  234. package/dist/contracts/LegoCurve.d.ts +0 -1189
  235. package/dist/contracts/LegoCurve.d.ts.map +0 -1
  236. package/dist/contracts/LegoDex.d.ts +0 -587
  237. package/dist/contracts/LegoDex.d.ts.map +0 -1
  238. package/dist/contracts/LegoDex.js +0 -774
  239. package/dist/contracts/LegoEuler.d.ts +0 -1074
  240. package/dist/contracts/LegoEuler.d.ts.map +0 -1
  241. package/dist/contracts/LegoEuler.js +0 -1383
  242. package/dist/contracts/LegoFluid.d.ts +0 -1025
  243. package/dist/contracts/LegoFluid.d.ts.map +0 -1
  244. package/dist/contracts/LegoFluid.js +0 -1320
  245. package/dist/contracts/LegoHelper.d.ts +0 -1563
  246. package/dist/contracts/LegoHelper.d.ts.map +0 -1
  247. package/dist/contracts/LegoHelper.js +0 -1947
  248. package/dist/contracts/LegoMoonwell.d.ts +0 -1042
  249. package/dist/contracts/LegoMoonwell.d.ts.map +0 -1
  250. package/dist/contracts/LegoMoonwell.js +0 -1342
  251. package/dist/contracts/LegoMorpho.d.ts +0 -1074
  252. package/dist/contracts/LegoMorpho.d.ts.map +0 -1
  253. package/dist/contracts/LegoMorpho.js +0 -1383
  254. package/dist/contracts/LegoRegistry.d.ts +0 -1079
  255. package/dist/contracts/LegoRegistry.d.ts.map +0 -1
  256. package/dist/contracts/LegoRegistry.js +0 -1368
  257. package/dist/contracts/LegoSky.d.ts +0 -923
  258. package/dist/contracts/LegoSky.d.ts.map +0 -1
  259. package/dist/contracts/LegoSky.js +0 -1180
  260. package/dist/contracts/LegoUniswapV0_2.d.ts +0 -1204
  261. package/dist/contracts/LegoUniswapV0_2.d.ts.map +0 -1
  262. package/dist/contracts/LegoUniswapV0_2.js +0 -1546
  263. package/dist/contracts/LegoUniswapV2.d.ts +0 -1204
  264. package/dist/contracts/LegoUniswapV2.d.ts.map +0 -1
  265. package/dist/contracts/LegoUniswapV2.js +0 -1546
  266. package/dist/contracts/LegoUniswapV3.d.ts +0 -1338
  267. package/dist/contracts/LegoUniswapV3.d.ts.map +0 -1
  268. package/dist/contracts/LegoUniswapV3.js +0 -1718
  269. package/dist/contracts/LegoYield.d.ts +0 -390
  270. package/dist/contracts/LegoYield.d.ts.map +0 -1
  271. package/dist/contracts/LegoYield.js +0 -511
  272. package/dist/contracts/OracleParser.d.ts +0 -207
  273. package/dist/contracts/OracleParser.d.ts.map +0 -1
  274. package/dist/contracts/OracleParser.js +0 -264
  275. package/dist/contracts/OracleRegistry.d.ts +0 -1221
  276. package/dist/contracts/OracleRegistry.d.ts.map +0 -1
  277. package/dist/contracts/OracleRegistry.js +0 -1562
  278. package/dist/contracts/PriceSheets.d.ts +0 -1127
  279. package/dist/contracts/PriceSheets.d.ts.map +0 -1
  280. package/dist/contracts/PriceSheets.js +0 -1383
  281. package/dist/contracts/PythFeeds.d.ts +0 -640
  282. package/dist/contracts/PythFeeds.d.ts.map +0 -1
  283. package/dist/contracts/PythFeeds.js +0 -813
  284. package/dist/contracts/StorkFeeds.d.ts +0 -640
  285. package/dist/contracts/StorkFeeds.d.ts.map +0 -1
  286. package/dist/contracts/StorkFeeds.js +0 -813
  287. package/dist/contracts/UserWalletConfig_v1.d.ts +0 -1400
  288. package/dist/contracts/UserWalletConfig_v1.d.ts.map +0 -1
  289. package/dist/contracts/UserWalletConfig_v1.js +0 -1676
  290. package/dist/contracts/UserWalletConfig_v2.d.ts +0 -1468
  291. package/dist/contracts/UserWalletConfig_v2.d.ts.map +0 -1
  292. package/dist/contracts/UserWalletConfig_v2.js +0 -1764
  293. package/dist/contracts/UserWallet_v1.d.ts +0 -1980
  294. package/dist/contracts/UserWallet_v1.d.ts.map +0 -1
  295. package/dist/contracts/UserWallet_v2.d.ts +0 -1958
  296. package/dist/contracts/UserWallet_v2.d.ts.map +0 -1
  297. package/dist/contracts/WalletConfig.d.ts +0 -1398
  298. package/dist/contracts/WalletConfig.d.ts.map +0 -1
  299. package/dist/contracts/WalletConfig.js +0 -1674
  300. package/dist/contracts/WalletFunds.d.ts +0 -1978
  301. package/dist/contracts/WalletFunds.d.ts.map +0 -1
  302. package/dist/contracts/v0_1_AddyRegistry.d.ts +0 -473
  303. package/dist/contracts/v0_1_AddyRegistry.d.ts.map +0 -1
  304. package/dist/contracts/v0_1_AddyRegistry.js +0 -594
  305. package/dist/contracts/v0_1_Agent.d.ts +0 -2631
  306. package/dist/contracts/v0_1_Agent.d.ts.map +0 -1
  307. package/dist/contracts/v0_1_AgentFactory.d.ts +0 -1054
  308. package/dist/contracts/v0_1_AgentFactory.d.ts.map +0 -1
  309. package/dist/contracts/v0_1_AgentFactory.js +0 -1336
  310. package/dist/contracts/v0_1_UserWallet.d.ts +0 -1980
  311. package/dist/contracts/v0_1_UserWallet.d.ts.map +0 -1
  312. package/dist/contracts/v0_1_UserWallet.js +0 -2581
  313. package/dist/contracts/v0_1_UserWalletConfig.d.ts +0 -1400
  314. package/dist/contracts/v0_1_UserWalletConfig.d.ts.map +0 -1
  315. package/dist/contracts/v0_1_UserWalletConfig.js +0 -1676
  316. package/dist/contracts/v0_2_AddyRegistry.d.ts +0 -1050
  317. package/dist/contracts/v0_2_AddyRegistry.d.ts.map +0 -1
  318. package/dist/contracts/v0_2_AddyRegistry.js +0 -1313
  319. package/dist/contracts/v0_2_Agent.d.ts.map +0 -1
  320. package/dist/contracts/v0_2_AgentFactory.d.ts +0 -1275
  321. package/dist/contracts/v0_2_AgentFactory.d.ts.map +0 -1
  322. package/dist/contracts/v0_2_AgentFactory.js +0 -1609
  323. package/dist/contracts/v0_2_UserWallet.d.ts +0 -1958
  324. package/dist/contracts/v0_2_UserWallet.d.ts.map +0 -1
  325. package/dist/contracts/v0_2_UserWalletConfig.d.ts +0 -1468
  326. package/dist/contracts/v0_2_UserWalletConfig.d.ts.map +0 -1
  327. package/dist/contracts/v0_2_UserWalletConfig.js +0 -1764
  328. package/dist/contracts/v0_3_AddyRegistry.d.ts +0 -1109
  329. package/dist/contracts/v0_3_AddyRegistry.d.ts.map +0 -1
  330. package/dist/contracts/v0_3_AddyRegistry.js +0 -1392
  331. package/dist/contracts/v0_3_Agent.d.ts.map +0 -1
  332. package/dist/contracts/v0_3_Agent.js +0 -3458
  333. package/dist/contracts/v0_3_AgentFactory.d.ts +0 -1665
  334. package/dist/contracts/v0_3_AgentFactory.d.ts.map +0 -1
  335. package/dist/contracts/v0_3_AgentFactory.js +0 -2078
  336. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts +0 -706
  337. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts.map +0 -1
  338. package/dist/contracts/v0_3_ChainlinkFeeds.js +0 -900
  339. package/dist/contracts/v0_3_LegoAaveV3.d.ts +0 -1033
  340. package/dist/contracts/v0_3_LegoAaveV3.d.ts.map +0 -1
  341. package/dist/contracts/v0_3_LegoAaveV3.js +0 -1330
  342. package/dist/contracts/v0_3_LegoAeroClassic.d.ts +0 -1204
  343. package/dist/contracts/v0_3_LegoAeroClassic.d.ts.map +0 -1
  344. package/dist/contracts/v0_3_LegoAeroClassic.js +0 -1546
  345. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts +0 -1300
  346. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts.map +0 -1
  347. package/dist/contracts/v0_3_LegoAeroSlipstream.js +0 -1671
  348. package/dist/contracts/v0_3_LegoCommon.d.ts +0 -164
  349. package/dist/contracts/v0_3_LegoCommon.d.ts.map +0 -1
  350. package/dist/contracts/v0_3_LegoCommon.js +0 -202
  351. package/dist/contracts/v0_3_LegoCompoundV3.d.ts +0 -1060
  352. package/dist/contracts/v0_3_LegoCompoundV3.d.ts.map +0 -1
  353. package/dist/contracts/v0_3_LegoCompoundV3.js +0 -1365
  354. package/dist/contracts/v0_3_LegoCredit.d.ts +0 -140
  355. package/dist/contracts/v0_3_LegoCredit.d.ts.map +0 -1
  356. package/dist/contracts/v0_3_LegoCredit.js +0 -179
  357. package/dist/contracts/v0_3_LegoCurve.d.ts +0 -1189
  358. package/dist/contracts/v0_3_LegoCurve.d.ts.map +0 -1
  359. package/dist/contracts/v0_3_LegoCurve.js +0 -1519
  360. package/dist/contracts/v0_3_LegoDex.d.ts +0 -587
  361. package/dist/contracts/v0_3_LegoDex.d.ts.map +0 -1
  362. package/dist/contracts/v0_3_LegoDex.js +0 -774
  363. package/dist/contracts/v0_3_LegoEuler.d.ts +0 -1074
  364. package/dist/contracts/v0_3_LegoEuler.d.ts.map +0 -1
  365. package/dist/contracts/v0_3_LegoEuler.js +0 -1383
  366. package/dist/contracts/v0_3_LegoFluid.d.ts +0 -1025
  367. package/dist/contracts/v0_3_LegoFluid.d.ts.map +0 -1
  368. package/dist/contracts/v0_3_LegoFluid.js +0 -1320
  369. package/dist/contracts/v0_3_LegoHelper.d.ts +0 -1563
  370. package/dist/contracts/v0_3_LegoHelper.d.ts.map +0 -1
  371. package/dist/contracts/v0_3_LegoHelper.js +0 -1947
  372. package/dist/contracts/v0_3_LegoMoonwell.d.ts +0 -1042
  373. package/dist/contracts/v0_3_LegoMoonwell.d.ts.map +0 -1
  374. package/dist/contracts/v0_3_LegoMoonwell.js +0 -1342
  375. package/dist/contracts/v0_3_LegoMorpho.d.ts +0 -1074
  376. package/dist/contracts/v0_3_LegoMorpho.d.ts.map +0 -1
  377. package/dist/contracts/v0_3_LegoMorpho.js +0 -1383
  378. package/dist/contracts/v0_3_LegoRegistry.d.ts +0 -1079
  379. package/dist/contracts/v0_3_LegoRegistry.d.ts.map +0 -1
  380. package/dist/contracts/v0_3_LegoRegistry.js +0 -1368
  381. package/dist/contracts/v0_3_LegoSky.d.ts +0 -923
  382. package/dist/contracts/v0_3_LegoSky.d.ts.map +0 -1
  383. package/dist/contracts/v0_3_LegoUniswapV3.d.ts +0 -1338
  384. package/dist/contracts/v0_3_LegoUniswapV3.d.ts.map +0 -1
  385. package/dist/contracts/v0_3_LegoUniswapV3.js +0 -1718
  386. package/dist/contracts/v0_3_LegoYield.d.ts +0 -390
  387. package/dist/contracts/v0_3_LegoYield.d.ts.map +0 -1
  388. package/dist/contracts/v0_3_LegoYield.js +0 -511
  389. package/dist/contracts/v0_3_OracleParser.d.ts +0 -207
  390. package/dist/contracts/v0_3_OracleParser.d.ts.map +0 -1
  391. package/dist/contracts/v0_3_OracleParser.js +0 -264
  392. package/dist/contracts/v0_3_OracleRegistry.d.ts +0 -1221
  393. package/dist/contracts/v0_3_OracleRegistry.d.ts.map +0 -1
  394. package/dist/contracts/v0_3_OracleRegistry.js +0 -1562
  395. package/dist/contracts/v0_3_PriceSheets.d.ts +0 -1127
  396. package/dist/contracts/v0_3_PriceSheets.d.ts.map +0 -1
  397. package/dist/contracts/v0_3_PriceSheets.js +0 -1383
  398. package/dist/contracts/v0_3_PythFeeds.d.ts +0 -640
  399. package/dist/contracts/v0_3_PythFeeds.d.ts.map +0 -1
  400. package/dist/contracts/v0_3_PythFeeds.js +0 -813
  401. package/dist/contracts/v0_3_StorkFeeds.d.ts +0 -640
  402. package/dist/contracts/v0_3_StorkFeeds.d.ts.map +0 -1
  403. package/dist/contracts/v0_3_StorkFeeds.js +0 -813
  404. package/dist/contracts/v0_3_UserWallet.d.ts +0 -1975
  405. package/dist/contracts/v0_3_UserWallet.d.ts.map +0 -1
  406. package/dist/contracts/v0_3_UserWallet.js +0 -2577
  407. package/dist/contracts/v0_3_UserWalletConfig.d.ts +0 -1852
  408. package/dist/contracts/v0_3_UserWalletConfig.d.ts.map +0 -1
  409. package/dist/contracts/v0_3_UserWalletConfig.js +0 -2263
  410. package/dist/getLegacyContracts.d.ts +0 -69
  411. package/dist/getLegacyContracts.d.ts.map +0 -1
  412. package/dist/getLegacyContracts.js +0 -55
@@ -1,1947 +0,0 @@
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: '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: '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(deployAddress, publicClient, walletClient) {
1888
- return {
1889
- deployAddress,
1890
- abi,
1891
- // Queries
1892
- aaveV3: (...args) => singleQuery(publicClient, call.aaveV3(...args).at(deployAddress)),
1893
- aaveV3Id: (...args) => singleQuery(publicClient, call.aaveV3Id(...args).at(deployAddress)),
1894
- compoundV3: (...args) => singleQuery(publicClient, call.compoundV3(...args).at(deployAddress)),
1895
- compoundV3Id: (...args) => singleQuery(publicClient, call.compoundV3Id(...args).at(deployAddress)),
1896
- euler: (...args) => singleQuery(publicClient, call.euler(...args).at(deployAddress)),
1897
- eulerId: (...args) => singleQuery(publicClient, call.eulerId(...args).at(deployAddress)),
1898
- fluid: (...args) => singleQuery(publicClient, call.fluid(...args).at(deployAddress)),
1899
- fluidId: (...args) => singleQuery(publicClient, call.fluidId(...args).at(deployAddress)),
1900
- moonwell: (...args) => singleQuery(publicClient, call.moonwell(...args).at(deployAddress)),
1901
- moonwellId: (...args) => singleQuery(publicClient, call.moonwellId(...args).at(deployAddress)),
1902
- morpho: (...args) => singleQuery(publicClient, call.morpho(...args).at(deployAddress)),
1903
- morphoId: (...args) => singleQuery(publicClient, call.morphoId(...args).at(deployAddress)),
1904
- sky: (...args) => singleQuery(publicClient, call.sky(...args).at(deployAddress)),
1905
- skyId: (...args) => singleQuery(publicClient, call.skyId(...args).at(deployAddress)),
1906
- uniswapV2: (...args) => singleQuery(publicClient, call.uniswapV2(...args).at(deployAddress)),
1907
- uniswapV2Id: (...args) => singleQuery(publicClient, call.uniswapV2Id(...args).at(deployAddress)),
1908
- uniswapV3: (...args) => singleQuery(publicClient, call.uniswapV3(...args).at(deployAddress)),
1909
- uniswapV3Id: (...args) => singleQuery(publicClient, call.uniswapV3Id(...args).at(deployAddress)),
1910
- aerodrome: (...args) => singleQuery(publicClient, call.aerodrome(...args).at(deployAddress)),
1911
- aerodromeId: (...args) => singleQuery(publicClient, call.aerodromeId(...args).at(deployAddress)),
1912
- aerodromeSlipstream: (...args) => singleQuery(publicClient, call.aerodromeSlipstream(...args).at(deployAddress)),
1913
- aerodromeSlipstreamId: (...args) => singleQuery(publicClient, call.aerodromeSlipstreamId(...args).at(deployAddress)),
1914
- curve: (...args) => singleQuery(publicClient, call.curve(...args).at(deployAddress)),
1915
- curveId: (...args) => singleQuery(publicClient, call.curveId(...args).at(deployAddress)),
1916
- getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args).at(deployAddress)),
1917
- getLegoFromVaultToken: (...args) => singleQuery(publicClient, call.getLegoFromVaultToken(...args).at(deployAddress)),
1918
- getUnderlyingData: (...args) => singleQuery(publicClient, call.getUnderlyingData(...args).at(deployAddress)),
1919
- ADDY_REGISTRY: (...args) => singleQuery(publicClient, call.ADDY_REGISTRY(...args).at(deployAddress)),
1920
- ROUTER_TOKENA: (...args) => singleQuery(publicClient, call.ROUTER_TOKENA(...args).at(deployAddress)),
1921
- ROUTER_TOKENB: (...args) => singleQuery(publicClient, call.ROUTER_TOKENB(...args).at(deployAddress)),
1922
- AAVE_V3_ID: (...args) => singleQuery(publicClient, call.AAVE_V3_ID(...args).at(deployAddress)),
1923
- COMPOUND_V3_ID: (...args) => singleQuery(publicClient, call.COMPOUND_V3_ID(...args).at(deployAddress)),
1924
- EULER_ID: (...args) => singleQuery(publicClient, call.EULER_ID(...args).at(deployAddress)),
1925
- FLUID_ID: (...args) => singleQuery(publicClient, call.FLUID_ID(...args).at(deployAddress)),
1926
- MOONWELL_ID: (...args) => singleQuery(publicClient, call.MOONWELL_ID(...args).at(deployAddress)),
1927
- MORPHO_ID: (...args) => singleQuery(publicClient, call.MORPHO_ID(...args).at(deployAddress)),
1928
- SKY_ID: (...args) => singleQuery(publicClient, call.SKY_ID(...args).at(deployAddress)),
1929
- UNISWAP_V2_ID: (...args) => singleQuery(publicClient, call.UNISWAP_V2_ID(...args).at(deployAddress)),
1930
- UNISWAP_V3_ID: (...args) => singleQuery(publicClient, call.UNISWAP_V3_ID(...args).at(deployAddress)),
1931
- AERODROME_ID: (...args) => singleQuery(publicClient, call.AERODROME_ID(...args).at(deployAddress)),
1932
- AERODROME_SLIPSTREAM_ID: (...args) => singleQuery(publicClient, call.AERODROME_SLIPSTREAM_ID(...args).at(deployAddress)),
1933
- CURVE_ID: (...args) => singleQuery(publicClient, call.CURVE_ID(...args).at(deployAddress)),
1934
- // Mutations
1935
- getRoutesAndSwapInstructionsAmountOut: (...args) => mutate(walletClient, mutation.getRoutesAndSwapInstructionsAmountOut, { address: deployAddress })(...args),
1936
- getRoutesAndSwapInstructionsAmountIn: (...args) => mutate(walletClient, mutation.getRoutesAndSwapInstructionsAmountIn, { address: deployAddress })(...args),
1937
- prepareSwapInstructionsAmountOut: (...args) => mutate(walletClient, mutation.prepareSwapInstructionsAmountOut, { address: deployAddress })(...args),
1938
- getBestSwapRoutesAmountOut: (...args) => mutate(walletClient, mutation.getBestSwapRoutesAmountOut, { address: deployAddress })(...args),
1939
- getBestSwapAmountOutWithRouterPool: (...args) => mutate(walletClient, mutation.getBestSwapAmountOutWithRouterPool, { address: deployAddress })(...args),
1940
- getBestSwapAmountOutSinglePool: (...args) => mutate(walletClient, mutation.getBestSwapAmountOutSinglePool, { address: deployAddress })(...args),
1941
- getSwapAmountOutViaRouterPool: (...args) => mutate(walletClient, mutation.getSwapAmountOutViaRouterPool, { address: deployAddress })(...args),
1942
- getBestSwapRoutesAmountIn: (...args) => mutate(walletClient, mutation.getBestSwapRoutesAmountIn, { address: deployAddress })(...args),
1943
- getBestSwapAmountInWithRouterPool: (...args) => mutate(walletClient, mutation.getBestSwapAmountInWithRouterPool, { address: deployAddress })(...args),
1944
- getBestSwapAmountInSinglePool: (...args) => mutate(walletClient, mutation.getBestSwapAmountInSinglePool, { address: deployAddress })(...args),
1945
- getSwapAmountInViaRouterPool: (...args) => mutate(walletClient, mutation.getSwapAmountInViaRouterPool, { address: deployAddress })(...args),
1946
- };
1947
- }