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