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