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