@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
@@ -7,125 +7,130 @@ export const abi = [
7
7
  {
8
8
  anonymous: false,
9
9
  inputs: [
10
+ {
11
+ indexed: false,
12
+ name: 'op',
13
+ type: 'uint8',
14
+ },
10
15
  {
11
16
  indexed: true,
12
- name: 'prevOwner',
17
+ name: 'asset1',
13
18
  type: 'address',
14
19
  },
15
20
  {
16
21
  indexed: true,
17
- name: 'newOwner',
22
+ name: 'asset2',
18
23
  type: 'address',
19
24
  },
20
25
  {
21
26
  indexed: false,
22
- name: 'confirmBlock',
27
+ name: 'amount1',
28
+ type: 'uint256',
29
+ },
30
+ {
31
+ indexed: false,
32
+ name: 'amount2',
33
+ type: 'uint256',
34
+ },
35
+ {
36
+ indexed: false,
37
+ name: 'usdValue',
38
+ type: 'uint256',
39
+ },
40
+ {
41
+ indexed: false,
42
+ name: 'legoId',
23
43
  type: 'uint256',
24
44
  },
45
+ {
46
+ indexed: true,
47
+ name: 'signer',
48
+ type: 'address',
49
+ },
25
50
  ],
26
- name: 'AgentOwnershipChangeInitiated',
51
+ name: 'WalletAction',
27
52
  type: 'event',
28
53
  },
29
54
  {
30
55
  anonymous: false,
31
56
  inputs: [
57
+ {
58
+ indexed: false,
59
+ name: 'op',
60
+ type: 'uint8',
61
+ },
32
62
  {
33
63
  indexed: true,
34
- name: 'prevOwner',
64
+ name: 'asset1',
35
65
  type: 'address',
36
66
  },
37
67
  {
38
68
  indexed: true,
39
- name: 'newOwner',
69
+ name: 'asset2',
40
70
  type: 'address',
41
71
  },
42
72
  {
43
73
  indexed: false,
44
- name: 'initiatedBlock',
74
+ name: 'tokenId',
45
75
  type: 'uint256',
46
76
  },
47
77
  {
48
78
  indexed: false,
49
- name: 'confirmBlock',
79
+ name: 'amount1',
50
80
  type: 'uint256',
51
81
  },
52
- ],
53
- name: 'AgentOwnershipChangeConfirmed',
54
- type: 'event',
55
- },
56
- {
57
- anonymous: false,
58
- inputs: [
59
- {
60
- indexed: true,
61
- name: 'cancelledOwner',
62
- type: 'address',
63
- },
64
82
  {
65
83
  indexed: false,
66
- name: 'initiatedBlock',
84
+ name: 'amount2',
67
85
  type: 'uint256',
68
86
  },
69
87
  {
70
88
  indexed: false,
71
- name: 'confirmBlock',
89
+ name: 'usdValue',
72
90
  type: 'uint256',
73
91
  },
74
- ],
75
- name: 'AgentOwnershipChangeCancelled',
76
- type: 'event',
77
- },
78
- {
79
- anonymous: false,
80
- inputs: [
81
92
  {
82
93
  indexed: false,
83
- name: 'delayBlocks',
94
+ name: 'extra',
84
95
  type: 'uint256',
85
96
  },
86
97
  ],
87
- name: 'AgentOwnershipChangeDelaySet',
98
+ name: 'WalletActionExt',
88
99
  type: 'event',
89
100
  },
90
101
  {
91
- anonymous: false,
92
102
  inputs: [
93
103
  {
94
- indexed: true,
95
- name: 'asset',
104
+ name: '_operator',
96
105
  type: 'address',
97
106
  },
98
107
  {
99
- indexed: true,
100
- name: 'recipient',
108
+ name: '_owner',
101
109
  type: 'address',
102
110
  },
103
111
  {
104
- indexed: false,
105
- name: 'balance',
112
+ name: '_tokenId',
106
113
  type: 'uint256',
107
114
  },
108
- ],
109
- name: 'AgentFundsRecovered',
110
- type: 'event',
111
- },
112
- {
113
- inputs: [
114
115
  {
115
- name: '_owner',
116
- type: 'address',
116
+ name: '_data',
117
+ type: 'bytes',
117
118
  },
118
119
  ],
119
- name: 'initialize',
120
+ name: 'onERC721Received',
120
121
  outputs: [
121
122
  {
122
123
  name: '',
123
- type: 'bool',
124
+ type: 'bytes4',
124
125
  },
125
126
  ],
126
- stateMutability: 'nonpayable',
127
+ stateMutability: 'view',
127
128
  type: 'function',
128
129
  },
130
+ {
131
+ stateMutability: 'payable',
132
+ type: 'fallback',
133
+ },
129
134
  {
130
135
  inputs: [],
131
136
  name: 'apiVersion',
@@ -141,23 +146,36 @@ export const abi = [
141
146
  {
142
147
  inputs: [
143
148
  {
144
- name: '_userWallet',
149
+ name: '_recipient',
145
150
  type: 'address',
146
151
  },
152
+ ],
153
+ name: 'transferFunds',
154
+ outputs: [
147
155
  {
148
- name: '_legoId',
156
+ name: '',
149
157
  type: 'uint256',
150
158
  },
151
159
  {
152
- name: '_asset',
160
+ name: '',
161
+ type: 'uint256',
162
+ },
163
+ ],
164
+ stateMutability: 'nonpayable',
165
+ type: 'function',
166
+ },
167
+ {
168
+ inputs: [
169
+ {
170
+ name: '_recipient',
153
171
  type: 'address',
154
172
  },
155
173
  {
156
- name: '_vault',
174
+ name: '_asset',
157
175
  type: 'address',
158
176
  },
159
177
  ],
160
- name: 'depositTokens',
178
+ name: 'transferFunds',
161
179
  outputs: [
162
180
  {
163
181
  name: '',
@@ -165,8 +183,29 @@ export const abi = [
165
183
  },
166
184
  {
167
185
  name: '',
186
+ type: 'uint256',
187
+ },
188
+ ],
189
+ stateMutability: 'nonpayable',
190
+ type: 'function',
191
+ },
192
+ {
193
+ inputs: [
194
+ {
195
+ name: '_recipient',
196
+ type: 'address',
197
+ },
198
+ {
199
+ name: '_asset',
168
200
  type: 'address',
169
201
  },
202
+ {
203
+ name: '_amount',
204
+ type: 'uint256',
205
+ },
206
+ ],
207
+ name: 'transferFunds',
208
+ outputs: [
170
209
  {
171
210
  name: '',
172
211
  type: 'uint256',
@@ -182,27 +221,23 @@ export const abi = [
182
221
  {
183
222
  inputs: [
184
223
  {
185
- name: '_userWallet',
224
+ name: '_recipient',
186
225
  type: 'address',
187
226
  },
188
- {
189
- name: '_legoId',
190
- type: 'uint256',
191
- },
192
227
  {
193
228
  name: '_asset',
194
229
  type: 'address',
195
230
  },
196
- {
197
- name: '_vault',
198
- type: 'address',
199
- },
200
231
  {
201
232
  name: '_amount',
202
233
  type: 'uint256',
203
234
  },
235
+ {
236
+ name: '_isCheque',
237
+ type: 'bool',
238
+ },
204
239
  ],
205
- name: 'depositTokens',
240
+ name: 'transferFunds',
206
241
  outputs: [
207
242
  {
208
243
  name: '',
@@ -210,8 +245,37 @@ export const abi = [
210
245
  },
211
246
  {
212
247
  name: '',
248
+ type: 'uint256',
249
+ },
250
+ ],
251
+ stateMutability: 'nonpayable',
252
+ type: 'function',
253
+ },
254
+ {
255
+ inputs: [
256
+ {
257
+ name: '_recipient',
258
+ type: 'address',
259
+ },
260
+ {
261
+ name: '_asset',
213
262
  type: 'address',
214
263
  },
264
+ {
265
+ name: '_amount',
266
+ type: 'uint256',
267
+ },
268
+ {
269
+ name: '_isCheque',
270
+ type: 'bool',
271
+ },
272
+ {
273
+ name: '_isSpecialTx',
274
+ type: 'bool',
275
+ },
276
+ ],
277
+ name: 'transferFunds',
278
+ outputs: [
215
279
  {
216
280
  name: '',
217
281
  type: 'uint256',
@@ -226,10 +290,6 @@ export const abi = [
226
290
  },
227
291
  {
228
292
  inputs: [
229
- {
230
- name: '_userWallet',
231
- type: 'address',
232
- },
233
293
  {
234
294
  name: '_legoId',
235
295
  type: 'uint256',
@@ -238,34 +298,8 @@ export const abi = [
238
298
  name: '_asset',
239
299
  type: 'address',
240
300
  },
241
- {
242
- name: '_vault',
243
- type: 'address',
244
- },
245
- {
246
- name: '_amount',
247
- type: 'uint256',
248
- },
249
- {
250
- components: [
251
- {
252
- name: 'signature',
253
- type: 'bytes',
254
- },
255
- {
256
- name: 'signer',
257
- type: 'address',
258
- },
259
- {
260
- name: 'expiration',
261
- type: 'uint256',
262
- },
263
- ],
264
- name: '_sig',
265
- type: 'tuple',
266
- },
267
301
  ],
268
- name: 'depositTokens',
302
+ name: 'depositForYield',
269
303
  outputs: [
270
304
  {
271
305
  name: '',
@@ -289,10 +323,6 @@ export const abi = [
289
323
  },
290
324
  {
291
325
  inputs: [
292
- {
293
- name: '_userWallet',
294
- type: 'address',
295
- },
296
326
  {
297
327
  name: '_legoId',
298
328
  type: 'uint256',
@@ -302,16 +332,20 @@ export const abi = [
302
332
  type: 'address',
303
333
  },
304
334
  {
305
- name: '_vaultToken',
335
+ name: '_vaultAddr',
306
336
  type: 'address',
307
337
  },
308
338
  ],
309
- name: 'withdrawTokens',
339
+ name: 'depositForYield',
310
340
  outputs: [
311
341
  {
312
342
  name: '',
313
343
  type: 'uint256',
314
344
  },
345
+ {
346
+ name: '',
347
+ type: 'address',
348
+ },
315
349
  {
316
350
  name: '',
317
351
  type: 'uint256',
@@ -326,10 +360,6 @@ export const abi = [
326
360
  },
327
361
  {
328
362
  inputs: [
329
- {
330
- name: '_userWallet',
331
- type: 'address',
332
- },
333
363
  {
334
364
  name: '_legoId',
335
365
  type: 'uint256',
@@ -339,20 +369,24 @@ export const abi = [
339
369
  type: 'address',
340
370
  },
341
371
  {
342
- name: '_vaultToken',
372
+ name: '_vaultAddr',
343
373
  type: 'address',
344
374
  },
345
375
  {
346
- name: '_vaultTokenAmount',
376
+ name: '_amount',
347
377
  type: 'uint256',
348
378
  },
349
379
  ],
350
- name: 'withdrawTokens',
380
+ name: 'depositForYield',
351
381
  outputs: [
352
382
  {
353
383
  name: '',
354
384
  type: 'uint256',
355
385
  },
386
+ {
387
+ name: '',
388
+ type: 'address',
389
+ },
356
390
  {
357
391
  name: '',
358
392
  type: 'uint256',
@@ -367,10 +401,6 @@ export const abi = [
367
401
  },
368
402
  {
369
403
  inputs: [
370
- {
371
- name: '_userWallet',
372
- type: 'address',
373
- },
374
404
  {
375
405
  name: '_legoId',
376
406
  type: 'uint256',
@@ -380,38 +410,28 @@ export const abi = [
380
410
  type: 'address',
381
411
  },
382
412
  {
383
- name: '_vaultToken',
413
+ name: '_vaultAddr',
384
414
  type: 'address',
385
415
  },
386
416
  {
387
- name: '_vaultTokenAmount',
417
+ name: '_amount',
388
418
  type: 'uint256',
389
419
  },
390
420
  {
391
- components: [
392
- {
393
- name: 'signature',
394
- type: 'bytes',
395
- },
396
- {
397
- name: 'signer',
398
- type: 'address',
399
- },
400
- {
401
- name: 'expiration',
402
- type: 'uint256',
403
- },
404
- ],
405
- name: '_sig',
406
- type: 'tuple',
421
+ name: '_extraData',
422
+ type: 'bytes32',
407
423
  },
408
424
  ],
409
- name: 'withdrawTokens',
425
+ name: 'depositForYield',
410
426
  outputs: [
411
427
  {
412
428
  name: '',
413
429
  type: 'uint256',
414
430
  },
431
+ {
432
+ name: '',
433
+ type: 'address',
434
+ },
415
435
  {
416
436
  name: '',
417
437
  type: 'uint256',
@@ -427,31 +447,52 @@ export const abi = [
427
447
  {
428
448
  inputs: [
429
449
  {
430
- name: '_userWallet',
450
+ name: '_legoId',
451
+ type: 'uint256',
452
+ },
453
+ {
454
+ name: '_vaultToken',
431
455
  type: 'address',
432
456
  },
457
+ ],
458
+ name: 'withdrawFromYield',
459
+ outputs: [
433
460
  {
434
- name: '_fromLegoId',
461
+ name: '',
435
462
  type: 'uint256',
436
463
  },
437
464
  {
438
- name: '_fromAsset',
465
+ name: '',
439
466
  type: 'address',
440
467
  },
441
468
  {
442
- name: '_fromVaultToken',
443
- type: 'address',
469
+ name: '',
470
+ type: 'uint256',
444
471
  },
445
472
  {
446
- name: '_toLegoId',
473
+ name: '',
474
+ type: 'uint256',
475
+ },
476
+ ],
477
+ stateMutability: 'nonpayable',
478
+ type: 'function',
479
+ },
480
+ {
481
+ inputs: [
482
+ {
483
+ name: '_legoId',
447
484
  type: 'uint256',
448
485
  },
449
486
  {
450
- name: '_toVault',
487
+ name: '_vaultToken',
451
488
  type: 'address',
452
489
  },
490
+ {
491
+ name: '_amount',
492
+ type: 'uint256',
493
+ },
453
494
  ],
454
- name: 'rebalance',
495
+ name: 'withdrawFromYield',
455
496
  outputs: [
456
497
  {
457
498
  name: '',
@@ -476,35 +517,23 @@ export const abi = [
476
517
  {
477
518
  inputs: [
478
519
  {
479
- name: '_userWallet',
480
- type: 'address',
481
- },
482
- {
483
- name: '_fromLegoId',
520
+ name: '_legoId',
484
521
  type: 'uint256',
485
522
  },
486
523
  {
487
- name: '_fromAsset',
488
- type: 'address',
489
- },
490
- {
491
- name: '_fromVaultToken',
524
+ name: '_vaultToken',
492
525
  type: 'address',
493
526
  },
494
527
  {
495
- name: '_toLegoId',
528
+ name: '_amount',
496
529
  type: 'uint256',
497
530
  },
498
531
  {
499
- name: '_toVault',
500
- type: 'address',
501
- },
502
- {
503
- name: '_fromVaultTokenAmount',
504
- type: 'uint256',
532
+ name: '_extraData',
533
+ type: 'bytes32',
505
534
  },
506
535
  ],
507
- name: 'rebalance',
536
+ name: 'withdrawFromYield',
508
537
  outputs: [
509
538
  {
510
539
  name: '',
@@ -529,53 +558,64 @@ export const abi = [
529
558
  {
530
559
  inputs: [
531
560
  {
532
- name: '_userWallet',
561
+ name: '_legoId',
562
+ type: 'uint256',
563
+ },
564
+ {
565
+ name: '_vaultToken',
533
566
  type: 'address',
534
567
  },
535
568
  {
536
- name: '_fromLegoId',
569
+ name: '_amount',
537
570
  type: 'uint256',
538
571
  },
539
572
  {
540
- name: '_fromAsset',
541
- type: 'address',
573
+ name: '_extraData',
574
+ type: 'bytes32',
542
575
  },
543
576
  {
544
- name: '_fromVaultToken',
545
- type: 'address',
577
+ name: '_isSpecialTx',
578
+ type: 'bool',
546
579
  },
580
+ ],
581
+ name: 'withdrawFromYield',
582
+ outputs: [
547
583
  {
548
- name: '_toLegoId',
584
+ name: '',
549
585
  type: 'uint256',
550
586
  },
551
587
  {
552
- name: '_toVault',
588
+ name: '',
553
589
  type: 'address',
554
590
  },
555
591
  {
556
- name: '_fromVaultTokenAmount',
592
+ name: '',
557
593
  type: 'uint256',
558
594
  },
559
595
  {
560
- components: [
561
- {
562
- name: 'signature',
563
- type: 'bytes',
564
- },
565
- {
566
- name: 'signer',
567
- type: 'address',
568
- },
569
- {
570
- name: 'expiration',
571
- type: 'uint256',
572
- },
573
- ],
574
- name: '_sig',
575
- type: 'tuple',
596
+ name: '',
597
+ type: 'uint256',
598
+ },
599
+ ],
600
+ stateMutability: 'nonpayable',
601
+ type: 'function',
602
+ },
603
+ {
604
+ inputs: [
605
+ {
606
+ name: '_fromLegoId',
607
+ type: 'uint256',
608
+ },
609
+ {
610
+ name: '_fromVaultToken',
611
+ type: 'address',
612
+ },
613
+ {
614
+ name: '_toLegoId',
615
+ type: 'uint256',
576
616
  },
577
617
  ],
578
- name: 'rebalance',
618
+ name: 'rebalanceYieldPosition',
579
619
  outputs: [
580
620
  {
581
621
  name: '',
@@ -600,42 +640,32 @@ export const abi = [
600
640
  {
601
641
  inputs: [
602
642
  {
603
- name: '_userWallet',
643
+ name: '_fromLegoId',
644
+ type: 'uint256',
645
+ },
646
+ {
647
+ name: '_fromVaultToken',
604
648
  type: 'address',
605
649
  },
606
650
  {
607
- components: [
608
- {
609
- name: 'legoId',
610
- type: 'uint256',
611
- },
612
- {
613
- name: 'amountIn',
614
- type: 'uint256',
615
- },
616
- {
617
- name: 'minAmountOut',
618
- type: 'uint256',
619
- },
620
- {
621
- name: 'tokenPath',
622
- type: 'address[]',
623
- },
624
- {
625
- name: 'poolPath',
626
- type: 'address[]',
627
- },
628
- ],
629
- name: '_swapInstructions',
630
- type: 'tuple[]',
651
+ name: '_toLegoId',
652
+ type: 'uint256',
653
+ },
654
+ {
655
+ name: '_toVaultAddr',
656
+ type: 'address',
631
657
  },
632
658
  ],
633
- name: 'swapTokens',
659
+ name: 'rebalanceYieldPosition',
634
660
  outputs: [
635
661
  {
636
662
  name: '',
637
663
  type: 'uint256',
638
664
  },
665
+ {
666
+ name: '',
667
+ type: 'address',
668
+ },
639
669
  {
640
670
  name: '',
641
671
  type: 'uint256',
@@ -651,60 +681,36 @@ export const abi = [
651
681
  {
652
682
  inputs: [
653
683
  {
654
- name: '_userWallet',
684
+ name: '_fromLegoId',
685
+ type: 'uint256',
686
+ },
687
+ {
688
+ name: '_fromVaultToken',
655
689
  type: 'address',
656
690
  },
657
691
  {
658
- components: [
659
- {
660
- name: 'legoId',
661
- type: 'uint256',
662
- },
663
- {
664
- name: 'amountIn',
665
- type: 'uint256',
666
- },
667
- {
668
- name: 'minAmountOut',
669
- type: 'uint256',
670
- },
671
- {
672
- name: 'tokenPath',
673
- type: 'address[]',
674
- },
675
- {
676
- name: 'poolPath',
677
- type: 'address[]',
678
- },
679
- ],
680
- name: '_swapInstructions',
681
- type: 'tuple[]',
692
+ name: '_toLegoId',
693
+ type: 'uint256',
682
694
  },
683
695
  {
684
- components: [
685
- {
686
- name: 'signature',
687
- type: 'bytes',
688
- },
689
- {
690
- name: 'signer',
691
- type: 'address',
692
- },
693
- {
694
- name: 'expiration',
695
- type: 'uint256',
696
- },
697
- ],
698
- name: '_sig',
699
- type: 'tuple',
696
+ name: '_toVaultAddr',
697
+ type: 'address',
698
+ },
699
+ {
700
+ name: '_fromVaultAmount',
701
+ type: 'uint256',
700
702
  },
701
703
  ],
702
- name: 'swapTokens',
704
+ name: 'rebalanceYieldPosition',
703
705
  outputs: [
704
706
  {
705
707
  name: '',
706
708
  type: 'uint256',
707
709
  },
710
+ {
711
+ name: '',
712
+ type: 'address',
713
+ },
708
714
  {
709
715
  name: '',
710
716
  type: 'uint256',
@@ -720,9 +726,54 @@ export const abi = [
720
726
  {
721
727
  inputs: [
722
728
  {
723
- name: '_userWallet',
729
+ name: '_fromLegoId',
730
+ type: 'uint256',
731
+ },
732
+ {
733
+ name: '_fromVaultToken',
734
+ type: 'address',
735
+ },
736
+ {
737
+ name: '_toLegoId',
738
+ type: 'uint256',
739
+ },
740
+ {
741
+ name: '_toVaultAddr',
742
+ type: 'address',
743
+ },
744
+ {
745
+ name: '_fromVaultAmount',
746
+ type: 'uint256',
747
+ },
748
+ {
749
+ name: '_extraData',
750
+ type: 'bytes32',
751
+ },
752
+ ],
753
+ name: 'rebalanceYieldPosition',
754
+ outputs: [
755
+ {
756
+ name: '',
757
+ type: 'uint256',
758
+ },
759
+ {
760
+ name: '',
724
761
  type: 'address',
725
762
  },
763
+ {
764
+ name: '',
765
+ type: 'uint256',
766
+ },
767
+ {
768
+ name: '',
769
+ type: 'uint256',
770
+ },
771
+ ],
772
+ stateMutability: 'nonpayable',
773
+ type: 'function',
774
+ },
775
+ {
776
+ inputs: [
726
777
  {
727
778
  components: [
728
779
  {
@@ -746,37 +797,20 @@ export const abi = [
746
797
  type: 'address[]',
747
798
  },
748
799
  ],
749
- name: '_swapInstructions',
800
+ name: '_instructions',
750
801
  type: 'tuple[]',
751
802
  },
752
- {
753
- name: '_expiration',
754
- type: 'uint256',
755
- },
756
803
  ],
757
- name: 'getSwapActionHash',
804
+ name: 'swapTokens',
758
805
  outputs: [
759
806
  {
760
807
  name: '',
761
- type: 'bytes32',
762
- },
763
- ],
764
- stateMutability: 'view',
765
- type: 'function',
766
- },
767
- {
768
- inputs: [
769
- {
770
- name: '_userWallet',
771
808
  type: 'address',
772
809
  },
773
810
  {
774
- name: '_legoId',
811
+ name: '',
775
812
  type: 'uint256',
776
813
  },
777
- ],
778
- name: 'borrow',
779
- outputs: [
780
814
  {
781
815
  name: '',
782
816
  type: 'address',
@@ -795,29 +829,33 @@ export const abi = [
795
829
  },
796
830
  {
797
831
  inputs: [
798
- {
799
- name: '_userWallet',
800
- type: 'address',
801
- },
802
832
  {
803
833
  name: '_legoId',
804
834
  type: 'uint256',
805
835
  },
806
836
  {
807
- name: '_borrowAsset',
837
+ name: '_tokenIn',
838
+ type: 'address',
839
+ },
840
+ {
841
+ name: '_tokenOut',
808
842
  type: 'address',
809
843
  },
810
844
  ],
811
- name: 'borrow',
845
+ name: 'mintOrRedeemAsset',
812
846
  outputs: [
813
847
  {
814
848
  name: '',
815
- type: 'address',
849
+ type: 'uint256',
816
850
  },
817
851
  {
818
852
  name: '',
819
853
  type: 'uint256',
820
854
  },
855
+ {
856
+ name: '',
857
+ type: 'bool',
858
+ },
821
859
  {
822
860
  name: '',
823
861
  type: 'uint256',
@@ -828,33 +866,37 @@ export const abi = [
828
866
  },
829
867
  {
830
868
  inputs: [
831
- {
832
- name: '_userWallet',
833
- type: 'address',
834
- },
835
869
  {
836
870
  name: '_legoId',
837
871
  type: 'uint256',
838
872
  },
839
873
  {
840
- name: '_borrowAsset',
874
+ name: '_tokenIn',
841
875
  type: 'address',
842
876
  },
843
877
  {
844
- name: '_amount',
878
+ name: '_tokenOut',
879
+ type: 'address',
880
+ },
881
+ {
882
+ name: '_amountIn',
845
883
  type: 'uint256',
846
884
  },
847
885
  ],
848
- name: 'borrow',
886
+ name: 'mintOrRedeemAsset',
849
887
  outputs: [
850
888
  {
851
889
  name: '',
852
- type: 'address',
890
+ type: 'uint256',
853
891
  },
854
892
  {
855
893
  name: '',
856
894
  type: 'uint256',
857
895
  },
896
+ {
897
+ name: '',
898
+ type: 'bool',
899
+ },
858
900
  {
859
901
  name: '',
860
902
  type: 'uint256',
@@ -865,51 +907,41 @@ export const abi = [
865
907
  },
866
908
  {
867
909
  inputs: [
868
- {
869
- name: '_userWallet',
870
- type: 'address',
871
- },
872
910
  {
873
911
  name: '_legoId',
874
912
  type: 'uint256',
875
913
  },
876
914
  {
877
- name: '_borrowAsset',
915
+ name: '_tokenIn',
878
916
  type: 'address',
879
917
  },
880
918
  {
881
- name: '_amount',
919
+ name: '_tokenOut',
920
+ type: 'address',
921
+ },
922
+ {
923
+ name: '_amountIn',
882
924
  type: 'uint256',
883
925
  },
884
926
  {
885
- components: [
886
- {
887
- name: 'signature',
888
- type: 'bytes',
889
- },
890
- {
891
- name: 'signer',
892
- type: 'address',
893
- },
894
- {
895
- name: 'expiration',
896
- type: 'uint256',
897
- },
898
- ],
899
- name: '_sig',
900
- type: 'tuple',
927
+ name: '_minAmountOut',
928
+ type: 'uint256',
901
929
  },
902
930
  ],
903
- name: 'borrow',
931
+ name: 'mintOrRedeemAsset',
904
932
  outputs: [
905
933
  {
906
934
  name: '',
907
- type: 'address',
935
+ type: 'uint256',
908
936
  },
909
937
  {
910
938
  name: '',
911
939
  type: 'uint256',
912
940
  },
941
+ {
942
+ name: '',
943
+ type: 'bool',
944
+ },
913
945
  {
914
946
  name: '',
915
947
  type: 'uint256',
@@ -920,25 +952,33 @@ export const abi = [
920
952
  },
921
953
  {
922
954
  inputs: [
923
- {
924
- name: '_userWallet',
925
- type: 'address',
926
- },
927
955
  {
928
956
  name: '_legoId',
929
957
  type: 'uint256',
930
958
  },
931
959
  {
932
- name: '_paymentAsset',
960
+ name: '_tokenIn',
933
961
  type: 'address',
934
962
  },
935
- ],
936
- name: 'repayDebt',
937
- outputs: [
938
963
  {
939
- name: '',
964
+ name: '_tokenOut',
940
965
  type: 'address',
941
966
  },
967
+ {
968
+ name: '_amountIn',
969
+ type: 'uint256',
970
+ },
971
+ {
972
+ name: '_minAmountOut',
973
+ type: 'uint256',
974
+ },
975
+ {
976
+ name: '_extraData',
977
+ type: 'bytes32',
978
+ },
979
+ ],
980
+ name: 'mintOrRedeemAsset',
981
+ outputs: [
942
982
  {
943
983
  name: '',
944
984
  type: 'uint256',
@@ -947,6 +987,10 @@ export const abi = [
947
987
  name: '',
948
988
  type: 'uint256',
949
989
  },
990
+ {
991
+ name: '',
992
+ type: 'bool',
993
+ },
950
994
  {
951
995
  name: '',
952
996
  type: 'uint256',
@@ -957,33 +1001,21 @@ export const abi = [
957
1001
  },
958
1002
  {
959
1003
  inputs: [
960
- {
961
- name: '_userWallet',
962
- type: 'address',
963
- },
964
1004
  {
965
1005
  name: '_legoId',
966
1006
  type: 'uint256',
967
1007
  },
968
1008
  {
969
- name: '_paymentAsset',
1009
+ name: '_tokenIn',
970
1010
  type: 'address',
971
1011
  },
972
1012
  {
973
- name: '_paymentAmount',
974
- type: 'uint256',
1013
+ name: '_tokenOut',
1014
+ type: 'address',
975
1015
  },
976
1016
  ],
977
- name: 'repayDebt',
1017
+ name: 'confirmMintOrRedeemAsset',
978
1018
  outputs: [
979
- {
980
- name: '',
981
- type: 'address',
982
- },
983
- {
984
- name: '',
985
- type: 'uint256',
986
- },
987
1019
  {
988
1020
  name: '',
989
1021
  type: 'uint256',
@@ -998,51 +1030,25 @@ export const abi = [
998
1030
  },
999
1031
  {
1000
1032
  inputs: [
1001
- {
1002
- name: '_userWallet',
1003
- type: 'address',
1004
- },
1005
1033
  {
1006
1034
  name: '_legoId',
1007
1035
  type: 'uint256',
1008
1036
  },
1009
1037
  {
1010
- name: '_paymentAsset',
1038
+ name: '_tokenIn',
1011
1039
  type: 'address',
1012
1040
  },
1013
1041
  {
1014
- name: '_paymentAmount',
1015
- type: 'uint256',
1042
+ name: '_tokenOut',
1043
+ type: 'address',
1016
1044
  },
1017
1045
  {
1018
- components: [
1019
- {
1020
- name: 'signature',
1021
- type: 'bytes',
1022
- },
1023
- {
1024
- name: 'signer',
1025
- type: 'address',
1026
- },
1027
- {
1028
- name: 'expiration',
1029
- type: 'uint256',
1030
- },
1031
- ],
1032
- name: '_sig',
1033
- type: 'tuple',
1046
+ name: '_extraData',
1047
+ type: 'bytes32',
1034
1048
  },
1035
1049
  ],
1036
- name: 'repayDebt',
1050
+ name: 'confirmMintOrRedeemAsset',
1037
1051
  outputs: [
1038
- {
1039
- name: '',
1040
- type: 'address',
1041
- },
1042
- {
1043
- name: '',
1044
- type: 'uint256',
1045
- },
1046
1052
  {
1047
1053
  name: '',
1048
1054
  type: 'uint256',
@@ -1057,206 +1063,165 @@ export const abi = [
1057
1063
  },
1058
1064
  {
1059
1065
  inputs: [
1060
- {
1061
- name: '_userWallet',
1062
- type: 'address',
1063
- },
1064
1066
  {
1065
1067
  name: '_legoId',
1066
1068
  type: 'uint256',
1067
1069
  },
1068
- ],
1069
- name: 'claimRewards',
1070
- outputs: [],
1071
- stateMutability: 'nonpayable',
1072
- type: 'function',
1073
- },
1074
- {
1075
- inputs: [
1076
1070
  {
1077
- name: '_userWallet',
1071
+ name: '_asset',
1078
1072
  type: 'address',
1079
1073
  },
1074
+ ],
1075
+ name: 'addCollateral',
1076
+ outputs: [
1080
1077
  {
1081
- name: '_legoId',
1078
+ name: '',
1082
1079
  type: 'uint256',
1083
1080
  },
1084
1081
  {
1085
- name: '_market',
1086
- type: 'address',
1082
+ name: '',
1083
+ type: 'uint256',
1087
1084
  },
1088
1085
  ],
1089
- name: 'claimRewards',
1090
- outputs: [],
1091
1086
  stateMutability: 'nonpayable',
1092
1087
  type: 'function',
1093
1088
  },
1094
1089
  {
1095
1090
  inputs: [
1096
1091
  {
1097
- name: '_userWallet',
1092
+ name: '_legoId',
1093
+ type: 'uint256',
1094
+ },
1095
+ {
1096
+ name: '_asset',
1098
1097
  type: 'address',
1099
1098
  },
1100
1099
  {
1101
- name: '_legoId',
1100
+ name: '_amount',
1102
1101
  type: 'uint256',
1103
1102
  },
1103
+ ],
1104
+ name: 'addCollateral',
1105
+ outputs: [
1104
1106
  {
1105
- name: '_market',
1106
- type: 'address',
1107
+ name: '',
1108
+ type: 'uint256',
1107
1109
  },
1108
1110
  {
1109
- name: '_rewardToken',
1110
- type: 'address',
1111
+ name: '',
1112
+ type: 'uint256',
1111
1113
  },
1112
1114
  ],
1113
- name: 'claimRewards',
1114
- outputs: [],
1115
1115
  stateMutability: 'nonpayable',
1116
1116
  type: 'function',
1117
1117
  },
1118
1118
  {
1119
1119
  inputs: [
1120
1120
  {
1121
- name: '_userWallet',
1121
+ name: '_legoId',
1122
+ type: 'uint256',
1123
+ },
1124
+ {
1125
+ name: '_asset',
1122
1126
  type: 'address',
1123
1127
  },
1124
1128
  {
1125
- name: '_legoId',
1129
+ name: '_amount',
1126
1130
  type: 'uint256',
1127
1131
  },
1128
1132
  {
1129
- name: '_market',
1130
- type: 'address',
1133
+ name: '_extraData',
1134
+ type: 'bytes32',
1131
1135
  },
1136
+ ],
1137
+ name: 'addCollateral',
1138
+ outputs: [
1132
1139
  {
1133
- name: '_rewardToken',
1134
- type: 'address',
1140
+ name: '',
1141
+ type: 'uint256',
1135
1142
  },
1136
1143
  {
1137
- name: '_rewardAmount',
1144
+ name: '',
1138
1145
  type: 'uint256',
1139
1146
  },
1140
1147
  ],
1141
- name: 'claimRewards',
1142
- outputs: [],
1143
1148
  stateMutability: 'nonpayable',
1144
1149
  type: 'function',
1145
1150
  },
1146
1151
  {
1147
1152
  inputs: [
1148
- {
1149
- name: '_userWallet',
1150
- type: 'address',
1151
- },
1152
1153
  {
1153
1154
  name: '_legoId',
1154
1155
  type: 'uint256',
1155
1156
  },
1156
1157
  {
1157
- name: '_market',
1158
- type: 'address',
1159
- },
1160
- {
1161
- name: '_rewardToken',
1158
+ name: '_asset',
1162
1159
  type: 'address',
1163
1160
  },
1161
+ ],
1162
+ name: 'removeCollateral',
1163
+ outputs: [
1164
1164
  {
1165
- name: '_rewardAmount',
1165
+ name: '',
1166
1166
  type: 'uint256',
1167
1167
  },
1168
1168
  {
1169
- name: '_proof',
1170
- type: 'bytes32',
1169
+ name: '',
1170
+ type: 'uint256',
1171
1171
  },
1172
1172
  ],
1173
- name: 'claimRewards',
1174
- outputs: [],
1175
1173
  stateMutability: 'nonpayable',
1176
1174
  type: 'function',
1177
1175
  },
1178
1176
  {
1179
1177
  inputs: [
1180
- {
1181
- name: '_userWallet',
1182
- type: 'address',
1183
- },
1184
1178
  {
1185
1179
  name: '_legoId',
1186
1180
  type: 'uint256',
1187
1181
  },
1188
1182
  {
1189
- name: '_market',
1190
- type: 'address',
1191
- },
1192
- {
1193
- name: '_rewardToken',
1183
+ name: '_asset',
1194
1184
  type: 'address',
1195
1185
  },
1196
1186
  {
1197
- name: '_rewardAmount',
1187
+ name: '_amount',
1198
1188
  type: 'uint256',
1199
1189
  },
1190
+ ],
1191
+ name: 'removeCollateral',
1192
+ outputs: [
1200
1193
  {
1201
- name: '_proof',
1202
- type: 'bytes32',
1194
+ name: '',
1195
+ type: 'uint256',
1203
1196
  },
1204
1197
  {
1205
- components: [
1206
- {
1207
- name: 'signature',
1208
- type: 'bytes',
1209
- },
1210
- {
1211
- name: 'signer',
1212
- type: 'address',
1213
- },
1214
- {
1215
- name: 'expiration',
1216
- type: 'uint256',
1217
- },
1218
- ],
1219
- name: '_sig',
1220
- type: 'tuple',
1198
+ name: '',
1199
+ type: 'uint256',
1221
1200
  },
1222
1201
  ],
1223
- name: 'claimRewards',
1224
- outputs: [],
1225
1202
  stateMutability: 'nonpayable',
1226
1203
  type: 'function',
1227
1204
  },
1228
1205
  {
1229
1206
  inputs: [
1230
- {
1231
- name: '_userWallet',
1232
- type: 'address',
1233
- },
1234
1207
  {
1235
1208
  name: '_legoId',
1236
1209
  type: 'uint256',
1237
1210
  },
1238
1211
  {
1239
- name: '_nftAddr',
1212
+ name: '_asset',
1240
1213
  type: 'address',
1241
1214
  },
1242
1215
  {
1243
- name: '_nftTokenId',
1216
+ name: '_amount',
1244
1217
  type: 'uint256',
1245
1218
  },
1246
1219
  {
1247
- name: '_pool',
1248
- type: 'address',
1249
- },
1250
- {
1251
- name: '_tokenA',
1252
- type: 'address',
1253
- },
1254
- {
1255
- name: '_tokenB',
1256
- type: 'address',
1220
+ name: '_extraData',
1221
+ type: 'bytes32',
1257
1222
  },
1258
1223
  ],
1259
- name: 'addLiquidity',
1224
+ name: 'removeCollateral',
1260
1225
  outputs: [
1261
1226
  {
1262
1227
  name: '',
@@ -1266,10 +1231,23 @@ export const abi = [
1266
1231
  name: '',
1267
1232
  type: 'uint256',
1268
1233
  },
1234
+ ],
1235
+ stateMutability: 'nonpayable',
1236
+ type: 'function',
1237
+ },
1238
+ {
1239
+ inputs: [
1269
1240
  {
1270
- name: '',
1241
+ name: '_legoId',
1271
1242
  type: 'uint256',
1272
1243
  },
1244
+ {
1245
+ name: '_borrowAsset',
1246
+ type: 'address',
1247
+ },
1248
+ ],
1249
+ name: 'borrow',
1250
+ outputs: [
1273
1251
  {
1274
1252
  name: '',
1275
1253
  type: 'uint256',
@@ -1284,40 +1262,53 @@ export const abi = [
1284
1262
  },
1285
1263
  {
1286
1264
  inputs: [
1287
- {
1288
- name: '_userWallet',
1289
- type: 'address',
1290
- },
1291
1265
  {
1292
1266
  name: '_legoId',
1293
1267
  type: 'uint256',
1294
1268
  },
1295
1269
  {
1296
- name: '_nftAddr',
1270
+ name: '_borrowAsset',
1297
1271
  type: 'address',
1298
1272
  },
1299
1273
  {
1300
- name: '_nftTokenId',
1274
+ name: '_amount',
1301
1275
  type: 'uint256',
1302
1276
  },
1277
+ ],
1278
+ name: 'borrow',
1279
+ outputs: [
1303
1280
  {
1304
- name: '_pool',
1305
- type: 'address',
1281
+ name: '',
1282
+ type: 'uint256',
1306
1283
  },
1307
1284
  {
1308
- name: '_tokenA',
1309
- type: 'address',
1285
+ name: '',
1286
+ type: 'uint256',
1287
+ },
1288
+ ],
1289
+ stateMutability: 'nonpayable',
1290
+ type: 'function',
1291
+ },
1292
+ {
1293
+ inputs: [
1294
+ {
1295
+ name: '_legoId',
1296
+ type: 'uint256',
1310
1297
  },
1311
1298
  {
1312
- name: '_tokenB',
1299
+ name: '_borrowAsset',
1313
1300
  type: 'address',
1314
1301
  },
1315
1302
  {
1316
- name: '_amountA',
1303
+ name: '_amount',
1317
1304
  type: 'uint256',
1318
1305
  },
1306
+ {
1307
+ name: '_extraData',
1308
+ type: 'bytes32',
1309
+ },
1319
1310
  ],
1320
- name: 'addLiquidity',
1311
+ name: 'borrow',
1321
1312
  outputs: [
1322
1313
  {
1323
1314
  name: '',
@@ -1327,10 +1318,23 @@ export const abi = [
1327
1318
  name: '',
1328
1319
  type: 'uint256',
1329
1320
  },
1321
+ ],
1322
+ stateMutability: 'nonpayable',
1323
+ type: 'function',
1324
+ },
1325
+ {
1326
+ inputs: [
1330
1327
  {
1331
- name: '',
1328
+ name: '_legoId',
1332
1329
  type: 'uint256',
1333
1330
  },
1331
+ {
1332
+ name: '_paymentAsset',
1333
+ type: 'address',
1334
+ },
1335
+ ],
1336
+ name: 'repayDebt',
1337
+ outputs: [
1334
1338
  {
1335
1339
  name: '',
1336
1340
  type: 'uint256',
@@ -1345,44 +1349,53 @@ export const abi = [
1345
1349
  },
1346
1350
  {
1347
1351
  inputs: [
1348
- {
1349
- name: '_userWallet',
1350
- type: 'address',
1351
- },
1352
1352
  {
1353
1353
  name: '_legoId',
1354
1354
  type: 'uint256',
1355
1355
  },
1356
1356
  {
1357
- name: '_nftAddr',
1357
+ name: '_paymentAsset',
1358
1358
  type: 'address',
1359
1359
  },
1360
1360
  {
1361
- name: '_nftTokenId',
1361
+ name: '_paymentAmount',
1362
1362
  type: 'uint256',
1363
1363
  },
1364
+ ],
1365
+ name: 'repayDebt',
1366
+ outputs: [
1364
1367
  {
1365
- name: '_pool',
1366
- type: 'address',
1368
+ name: '',
1369
+ type: 'uint256',
1367
1370
  },
1368
1371
  {
1369
- name: '_tokenA',
1370
- type: 'address',
1372
+ name: '',
1373
+ type: 'uint256',
1371
1374
  },
1375
+ ],
1376
+ stateMutability: 'nonpayable',
1377
+ type: 'function',
1378
+ },
1379
+ {
1380
+ inputs: [
1372
1381
  {
1373
- name: '_tokenB',
1382
+ name: '_legoId',
1383
+ type: 'uint256',
1384
+ },
1385
+ {
1386
+ name: '_paymentAsset',
1374
1387
  type: 'address',
1375
1388
  },
1376
1389
  {
1377
- name: '_amountA',
1390
+ name: '_paymentAmount',
1378
1391
  type: 'uint256',
1379
1392
  },
1380
1393
  {
1381
- name: '_amountB',
1382
- type: 'uint256',
1394
+ name: '_extraData',
1395
+ type: 'bytes32',
1383
1396
  },
1384
1397
  ],
1385
- name: 'addLiquidity',
1398
+ name: 'repayDebt',
1386
1399
  outputs: [
1387
1400
  {
1388
1401
  name: '',
@@ -1392,10 +1405,19 @@ export const abi = [
1392
1405
  name: '',
1393
1406
  type: 'uint256',
1394
1407
  },
1408
+ ],
1409
+ stateMutability: 'nonpayable',
1410
+ type: 'function',
1411
+ },
1412
+ {
1413
+ inputs: [
1395
1414
  {
1396
- name: '',
1415
+ name: '_legoId',
1397
1416
  type: 'uint256',
1398
1417
  },
1418
+ ],
1419
+ name: 'claimIncentives',
1420
+ outputs: [
1399
1421
  {
1400
1422
  name: '',
1401
1423
  type: 'uint256',
@@ -1411,47 +1433,93 @@ export const abi = [
1411
1433
  {
1412
1434
  inputs: [
1413
1435
  {
1414
- name: '_userWallet',
1436
+ name: '_legoId',
1437
+ type: 'uint256',
1438
+ },
1439
+ {
1440
+ name: '_rewardToken',
1415
1441
  type: 'address',
1416
1442
  },
1443
+ ],
1444
+ name: 'claimIncentives',
1445
+ outputs: [
1446
+ {
1447
+ name: '',
1448
+ type: 'uint256',
1449
+ },
1450
+ {
1451
+ name: '',
1452
+ type: 'uint256',
1453
+ },
1454
+ ],
1455
+ stateMutability: 'nonpayable',
1456
+ type: 'function',
1457
+ },
1458
+ {
1459
+ inputs: [
1417
1460
  {
1418
1461
  name: '_legoId',
1419
1462
  type: 'uint256',
1420
1463
  },
1421
1464
  {
1422
- name: '_nftAddr',
1465
+ name: '_rewardToken',
1423
1466
  type: 'address',
1424
1467
  },
1425
1468
  {
1426
- name: '_nftTokenId',
1469
+ name: '_rewardAmount',
1470
+ type: 'uint256',
1471
+ },
1472
+ ],
1473
+ name: 'claimIncentives',
1474
+ outputs: [
1475
+ {
1476
+ name: '',
1427
1477
  type: 'uint256',
1428
1478
  },
1429
1479
  {
1430
- name: '_pool',
1431
- type: 'address',
1480
+ name: '',
1481
+ type: 'uint256',
1432
1482
  },
1483
+ ],
1484
+ stateMutability: 'nonpayable',
1485
+ type: 'function',
1486
+ },
1487
+ {
1488
+ inputs: [
1433
1489
  {
1434
- name: '_tokenA',
1435
- type: 'address',
1490
+ name: '_legoId',
1491
+ type: 'uint256',
1436
1492
  },
1437
1493
  {
1438
- name: '_tokenB',
1494
+ name: '_rewardToken',
1439
1495
  type: 'address',
1440
1496
  },
1441
1497
  {
1442
- name: '_amountA',
1498
+ name: '_rewardAmount',
1443
1499
  type: 'uint256',
1444
1500
  },
1445
1501
  {
1446
- name: '_amountB',
1502
+ name: '_proofs',
1503
+ type: 'bytes32[]',
1504
+ },
1505
+ ],
1506
+ name: 'claimIncentives',
1507
+ outputs: [
1508
+ {
1509
+ name: '',
1447
1510
  type: 'uint256',
1448
1511
  },
1449
1512
  {
1450
- name: '_tickLower',
1451
- type: 'int24',
1513
+ name: '',
1514
+ type: 'uint256',
1452
1515
  },
1453
1516
  ],
1454
- name: 'addLiquidity',
1517
+ stateMutability: 'nonpayable',
1518
+ type: 'function',
1519
+ },
1520
+ {
1521
+ inputs: [],
1522
+ name: 'convertWethToEth',
1455
1523
  outputs: [
1456
1524
  {
1457
1525
  name: '',
@@ -1461,10 +1529,19 @@ export const abi = [
1461
1529
  name: '',
1462
1530
  type: 'uint256',
1463
1531
  },
1532
+ ],
1533
+ stateMutability: 'nonpayable',
1534
+ type: 'function',
1535
+ },
1536
+ {
1537
+ inputs: [
1464
1538
  {
1465
- name: '',
1539
+ name: '_amount',
1466
1540
  type: 'uint256',
1467
1541
  },
1542
+ ],
1543
+ name: 'convertWethToEth',
1544
+ outputs: [
1468
1545
  {
1469
1546
  name: '',
1470
1547
  type: 'uint256',
@@ -1477,22 +1554,47 @@ export const abi = [
1477
1554
  stateMutability: 'nonpayable',
1478
1555
  type: 'function',
1479
1556
  },
1557
+ {
1558
+ inputs: [],
1559
+ name: 'convertEthToWeth',
1560
+ outputs: [
1561
+ {
1562
+ name: '',
1563
+ type: 'uint256',
1564
+ },
1565
+ {
1566
+ name: '',
1567
+ type: 'uint256',
1568
+ },
1569
+ ],
1570
+ stateMutability: 'payable',
1571
+ type: 'function',
1572
+ },
1480
1573
  {
1481
1574
  inputs: [
1482
1575
  {
1483
- name: '_userWallet',
1484
- type: 'address',
1576
+ name: '_amount',
1577
+ type: 'uint256',
1485
1578
  },
1579
+ ],
1580
+ name: 'convertEthToWeth',
1581
+ outputs: [
1486
1582
  {
1487
- name: '_legoId',
1583
+ name: '',
1488
1584
  type: 'uint256',
1489
1585
  },
1490
1586
  {
1491
- name: '_nftAddr',
1492
- type: 'address',
1587
+ name: '',
1588
+ type: 'uint256',
1493
1589
  },
1590
+ ],
1591
+ stateMutability: 'payable',
1592
+ type: 'function',
1593
+ },
1594
+ {
1595
+ inputs: [
1494
1596
  {
1495
- name: '_nftTokenId',
1597
+ name: '_legoId',
1496
1598
  type: 'uint256',
1497
1599
  },
1498
1600
  {
@@ -1507,29 +1609,54 @@ export const abi = [
1507
1609
  name: '_tokenB',
1508
1610
  type: 'address',
1509
1611
  },
1612
+ ],
1613
+ name: 'addLiquidity',
1614
+ outputs: [
1510
1615
  {
1511
- name: '_amountA',
1616
+ name: '',
1512
1617
  type: 'uint256',
1513
1618
  },
1514
1619
  {
1515
- name: '_amountB',
1620
+ name: '',
1516
1621
  type: 'uint256',
1517
1622
  },
1518
1623
  {
1519
- name: '_tickLower',
1520
- type: 'int24',
1624
+ name: '',
1625
+ type: 'uint256',
1521
1626
  },
1522
1627
  {
1523
- name: '_tickUpper',
1524
- type: 'int24',
1628
+ name: '',
1629
+ type: 'uint256',
1525
1630
  },
1526
1631
  ],
1527
- name: 'addLiquidity',
1528
- outputs: [
1632
+ stateMutability: 'nonpayable',
1633
+ type: 'function',
1634
+ },
1635
+ {
1636
+ inputs: [
1529
1637
  {
1530
- name: '',
1638
+ name: '_legoId',
1639
+ type: 'uint256',
1640
+ },
1641
+ {
1642
+ name: '_pool',
1643
+ type: 'address',
1644
+ },
1645
+ {
1646
+ name: '_tokenA',
1647
+ type: 'address',
1648
+ },
1649
+ {
1650
+ name: '_tokenB',
1651
+ type: 'address',
1652
+ },
1653
+ {
1654
+ name: '_amountA',
1531
1655
  type: 'uint256',
1532
1656
  },
1657
+ ],
1658
+ name: 'addLiquidity',
1659
+ outputs: [
1533
1660
  {
1534
1661
  name: '',
1535
1662
  type: 'uint256',
@@ -1552,22 +1679,10 @@ export const abi = [
1552
1679
  },
1553
1680
  {
1554
1681
  inputs: [
1555
- {
1556
- name: '_userWallet',
1557
- type: 'address',
1558
- },
1559
1682
  {
1560
1683
  name: '_legoId',
1561
1684
  type: 'uint256',
1562
1685
  },
1563
- {
1564
- name: '_nftAddr',
1565
- type: 'address',
1566
- },
1567
- {
1568
- name: '_nftTokenId',
1569
- type: 'uint256',
1570
- },
1571
1686
  {
1572
1687
  name: '_pool',
1573
1688
  type: 'address',
@@ -1588,18 +1703,6 @@ export const abi = [
1588
1703
  name: '_amountB',
1589
1704
  type: 'uint256',
1590
1705
  },
1591
- {
1592
- name: '_tickLower',
1593
- type: 'int24',
1594
- },
1595
- {
1596
- name: '_tickUpper',
1597
- type: 'int24',
1598
- },
1599
- {
1600
- name: '_minAmountA',
1601
- type: 'uint256',
1602
- },
1603
1706
  ],
1604
1707
  name: 'addLiquidity',
1605
1708
  outputs: [
@@ -1619,32 +1722,16 @@ export const abi = [
1619
1722
  name: '',
1620
1723
  type: 'uint256',
1621
1724
  },
1622
- {
1623
- name: '',
1624
- type: 'uint256',
1625
- },
1626
1725
  ],
1627
1726
  stateMutability: 'nonpayable',
1628
1727
  type: 'function',
1629
1728
  },
1630
1729
  {
1631
1730
  inputs: [
1632
- {
1633
- name: '_userWallet',
1634
- type: 'address',
1635
- },
1636
1731
  {
1637
1732
  name: '_legoId',
1638
1733
  type: 'uint256',
1639
1734
  },
1640
- {
1641
- name: '_nftAddr',
1642
- type: 'address',
1643
- },
1644
- {
1645
- name: '_nftTokenId',
1646
- type: 'uint256',
1647
- },
1648
1735
  {
1649
1736
  name: '_pool',
1650
1737
  type: 'address',
@@ -1665,22 +1752,10 @@ export const abi = [
1665
1752
  name: '_amountB',
1666
1753
  type: 'uint256',
1667
1754
  },
1668
- {
1669
- name: '_tickLower',
1670
- type: 'int24',
1671
- },
1672
- {
1673
- name: '_tickUpper',
1674
- type: 'int24',
1675
- },
1676
1755
  {
1677
1756
  name: '_minAmountA',
1678
1757
  type: 'uint256',
1679
1758
  },
1680
- {
1681
- name: '_minAmountB',
1682
- type: 'uint256',
1683
- },
1684
1759
  ],
1685
1760
  name: 'addLiquidity',
1686
1761
  outputs: [
@@ -1700,32 +1775,16 @@ export const abi = [
1700
1775
  name: '',
1701
1776
  type: 'uint256',
1702
1777
  },
1703
- {
1704
- name: '',
1705
- type: 'uint256',
1706
- },
1707
1778
  ],
1708
1779
  stateMutability: 'nonpayable',
1709
1780
  type: 'function',
1710
1781
  },
1711
1782
  {
1712
1783
  inputs: [
1713
- {
1714
- name: '_userWallet',
1715
- type: 'address',
1716
- },
1717
1784
  {
1718
1785
  name: '_legoId',
1719
1786
  type: 'uint256',
1720
1787
  },
1721
- {
1722
- name: '_nftAddr',
1723
- type: 'address',
1724
- },
1725
- {
1726
- name: '_nftTokenId',
1727
- type: 'uint256',
1728
- },
1729
1788
  {
1730
1789
  name: '_pool',
1731
1790
  type: 'address',
@@ -1747,12 +1806,61 @@ export const abi = [
1747
1806
  type: 'uint256',
1748
1807
  },
1749
1808
  {
1750
- name: '_tickLower',
1751
- type: 'int24',
1809
+ name: '_minAmountA',
1810
+ type: 'uint256',
1752
1811
  },
1753
1812
  {
1754
- name: '_tickUpper',
1755
- type: 'int24',
1813
+ name: '_minAmountB',
1814
+ type: 'uint256',
1815
+ },
1816
+ ],
1817
+ name: 'addLiquidity',
1818
+ outputs: [
1819
+ {
1820
+ name: '',
1821
+ type: 'uint256',
1822
+ },
1823
+ {
1824
+ name: '',
1825
+ type: 'uint256',
1826
+ },
1827
+ {
1828
+ name: '',
1829
+ type: 'uint256',
1830
+ },
1831
+ {
1832
+ name: '',
1833
+ type: 'uint256',
1834
+ },
1835
+ ],
1836
+ stateMutability: 'nonpayable',
1837
+ type: 'function',
1838
+ },
1839
+ {
1840
+ inputs: [
1841
+ {
1842
+ name: '_legoId',
1843
+ type: 'uint256',
1844
+ },
1845
+ {
1846
+ name: '_pool',
1847
+ type: 'address',
1848
+ },
1849
+ {
1850
+ name: '_tokenA',
1851
+ type: 'address',
1852
+ },
1853
+ {
1854
+ name: '_tokenB',
1855
+ type: 'address',
1856
+ },
1857
+ {
1858
+ name: '_amountA',
1859
+ type: 'uint256',
1860
+ },
1861
+ {
1862
+ name: '_amountB',
1863
+ type: 'uint256',
1756
1864
  },
1757
1865
  {
1758
1866
  name: '_minAmountA',
@@ -1785,32 +1893,16 @@ export const abi = [
1785
1893
  name: '',
1786
1894
  type: 'uint256',
1787
1895
  },
1788
- {
1789
- name: '',
1790
- type: 'uint256',
1791
- },
1792
1896
  ],
1793
1897
  stateMutability: 'nonpayable',
1794
1898
  type: 'function',
1795
1899
  },
1796
1900
  {
1797
1901
  inputs: [
1798
- {
1799
- name: '_userWallet',
1800
- type: 'address',
1801
- },
1802
1902
  {
1803
1903
  name: '_legoId',
1804
1904
  type: 'uint256',
1805
1905
  },
1806
- {
1807
- name: '_nftAddr',
1808
- type: 'address',
1809
- },
1810
- {
1811
- name: '_nftTokenId',
1812
- type: 'uint256',
1813
- },
1814
1906
  {
1815
1907
  name: '_pool',
1816
1908
  type: 'address',
@@ -1831,14 +1923,6 @@ export const abi = [
1831
1923
  name: '_amountB',
1832
1924
  type: 'uint256',
1833
1925
  },
1834
- {
1835
- name: '_tickLower',
1836
- type: 'int24',
1837
- },
1838
- {
1839
- name: '_tickUpper',
1840
- type: 'int24',
1841
- },
1842
1926
  {
1843
1927
  name: '_minAmountA',
1844
1928
  type: 'uint256',
@@ -1852,22 +1936,8 @@ export const abi = [
1852
1936
  type: 'uint256',
1853
1937
  },
1854
1938
  {
1855
- components: [
1856
- {
1857
- name: 'signature',
1858
- type: 'bytes',
1859
- },
1860
- {
1861
- name: 'signer',
1862
- type: 'address',
1863
- },
1864
- {
1865
- name: 'expiration',
1866
- type: 'uint256',
1867
- },
1868
- ],
1869
- name: '_sig',
1870
- type: 'tuple',
1939
+ name: '_extraData',
1940
+ type: 'bytes32',
1871
1941
  },
1872
1942
  ],
1873
1943
  name: 'addLiquidity',
@@ -1888,32 +1958,16 @@ export const abi = [
1888
1958
  name: '',
1889
1959
  type: 'uint256',
1890
1960
  },
1891
- {
1892
- name: '',
1893
- type: 'uint256',
1894
- },
1895
1961
  ],
1896
1962
  stateMutability: 'nonpayable',
1897
1963
  type: 'function',
1898
1964
  },
1899
1965
  {
1900
1966
  inputs: [
1901
- {
1902
- name: '_userWallet',
1903
- type: 'address',
1904
- },
1905
1967
  {
1906
1968
  name: '_legoId',
1907
1969
  type: 'uint256',
1908
1970
  },
1909
- {
1910
- name: '_nftAddr',
1911
- type: 'address',
1912
- },
1913
- {
1914
- name: '_nftTokenId',
1915
- type: 'uint256',
1916
- },
1917
1971
  {
1918
1972
  name: '_pool',
1919
1973
  type: 'address',
@@ -1926,6 +1980,10 @@ export const abi = [
1926
1980
  name: '_tokenB',
1927
1981
  type: 'address',
1928
1982
  },
1983
+ {
1984
+ name: '_lpToken',
1985
+ type: 'address',
1986
+ },
1929
1987
  ],
1930
1988
  name: 'removeLiquidity',
1931
1989
  outputs: [
@@ -1943,7 +2001,7 @@ export const abi = [
1943
2001
  },
1944
2002
  {
1945
2003
  name: '',
1946
- type: 'bool',
2004
+ type: 'uint256',
1947
2005
  },
1948
2006
  ],
1949
2007
  stateMutability: 'nonpayable',
@@ -1951,22 +2009,10 @@ export const abi = [
1951
2009
  },
1952
2010
  {
1953
2011
  inputs: [
1954
- {
1955
- name: '_userWallet',
1956
- type: 'address',
1957
- },
1958
2012
  {
1959
2013
  name: '_legoId',
1960
2014
  type: 'uint256',
1961
2015
  },
1962
- {
1963
- name: '_nftAddr',
1964
- type: 'address',
1965
- },
1966
- {
1967
- name: '_nftTokenId',
1968
- type: 'uint256',
1969
- },
1970
2016
  {
1971
2017
  name: '_pool',
1972
2018
  type: 'address',
@@ -1980,7 +2026,11 @@ export const abi = [
1980
2026
  type: 'address',
1981
2027
  },
1982
2028
  {
1983
- name: '_liqToRemove',
2029
+ name: '_lpToken',
2030
+ type: 'address',
2031
+ },
2032
+ {
2033
+ name: '_lpAmount',
1984
2034
  type: 'uint256',
1985
2035
  },
1986
2036
  ],
@@ -2000,7 +2050,7 @@ export const abi = [
2000
2050
  },
2001
2051
  {
2002
2052
  name: '',
2003
- type: 'bool',
2053
+ type: 'uint256',
2004
2054
  },
2005
2055
  ],
2006
2056
  stateMutability: 'nonpayable',
@@ -2008,22 +2058,10 @@ export const abi = [
2008
2058
  },
2009
2059
  {
2010
2060
  inputs: [
2011
- {
2012
- name: '_userWallet',
2013
- type: 'address',
2014
- },
2015
2061
  {
2016
2062
  name: '_legoId',
2017
2063
  type: 'uint256',
2018
2064
  },
2019
- {
2020
- name: '_nftAddr',
2021
- type: 'address',
2022
- },
2023
- {
2024
- name: '_nftTokenId',
2025
- type: 'uint256',
2026
- },
2027
2065
  {
2028
2066
  name: '_pool',
2029
2067
  type: 'address',
@@ -2037,7 +2075,11 @@ export const abi = [
2037
2075
  type: 'address',
2038
2076
  },
2039
2077
  {
2040
- name: '_liqToRemove',
2078
+ name: '_lpToken',
2079
+ type: 'address',
2080
+ },
2081
+ {
2082
+ name: '_lpAmount',
2041
2083
  type: 'uint256',
2042
2084
  },
2043
2085
  {
@@ -2061,7 +2103,7 @@ export const abi = [
2061
2103
  },
2062
2104
  {
2063
2105
  name: '',
2064
- type: 'bool',
2106
+ type: 'uint256',
2065
2107
  },
2066
2108
  ],
2067
2109
  stateMutability: 'nonpayable',
@@ -2069,22 +2111,10 @@ export const abi = [
2069
2111
  },
2070
2112
  {
2071
2113
  inputs: [
2072
- {
2073
- name: '_userWallet',
2074
- type: 'address',
2075
- },
2076
2114
  {
2077
2115
  name: '_legoId',
2078
2116
  type: 'uint256',
2079
2117
  },
2080
- {
2081
- name: '_nftAddr',
2082
- type: 'address',
2083
- },
2084
- {
2085
- name: '_nftTokenId',
2086
- type: 'uint256',
2087
- },
2088
2118
  {
2089
2119
  name: '_pool',
2090
2120
  type: 'address',
@@ -2098,7 +2128,11 @@ export const abi = [
2098
2128
  type: 'address',
2099
2129
  },
2100
2130
  {
2101
- name: '_liqToRemove',
2131
+ name: '_lpToken',
2132
+ type: 'address',
2133
+ },
2134
+ {
2135
+ name: '_lpAmount',
2102
2136
  type: 'uint256',
2103
2137
  },
2104
2138
  {
@@ -2126,7 +2160,7 @@ export const abi = [
2126
2160
  },
2127
2161
  {
2128
2162
  name: '',
2129
- type: 'bool',
2163
+ type: 'uint256',
2130
2164
  },
2131
2165
  ],
2132
2166
  stateMutability: 'nonpayable',
@@ -2134,22 +2168,10 @@ export const abi = [
2134
2168
  },
2135
2169
  {
2136
2170
  inputs: [
2137
- {
2138
- name: '_userWallet',
2139
- type: 'address',
2140
- },
2141
2171
  {
2142
2172
  name: '_legoId',
2143
2173
  type: 'uint256',
2144
2174
  },
2145
- {
2146
- name: '_nftAddr',
2147
- type: 'address',
2148
- },
2149
- {
2150
- name: '_nftTokenId',
2151
- type: 'uint256',
2152
- },
2153
2175
  {
2154
2176
  name: '_pool',
2155
2177
  type: 'address',
@@ -2163,7 +2185,11 @@ export const abi = [
2163
2185
  type: 'address',
2164
2186
  },
2165
2187
  {
2166
- name: '_liqToRemove',
2188
+ name: '_lpToken',
2189
+ type: 'address',
2190
+ },
2191
+ {
2192
+ name: '_lpAmount',
2167
2193
  type: 'uint256',
2168
2194
  },
2169
2195
  {
@@ -2175,22 +2201,8 @@ export const abi = [
2175
2201
  type: 'uint256',
2176
2202
  },
2177
2203
  {
2178
- components: [
2179
- {
2180
- name: 'signature',
2181
- type: 'bytes',
2182
- },
2183
- {
2184
- name: 'signer',
2185
- type: 'address',
2186
- },
2187
- {
2188
- name: 'expiration',
2189
- type: 'uint256',
2190
- },
2191
- ],
2192
- name: '_sig',
2193
- type: 'tuple',
2204
+ name: '_extraData',
2205
+ type: 'bytes32',
2194
2206
  },
2195
2207
  ],
2196
2208
  name: 'removeLiquidity',
@@ -2209,7 +2221,7 @@ export const abi = [
2209
2221
  },
2210
2222
  {
2211
2223
  name: '',
2212
- type: 'bool',
2224
+ type: 'uint256',
2213
2225
  },
2214
2226
  ],
2215
2227
  stateMutability: 'nonpayable',
@@ -2218,44 +2230,31 @@ export const abi = [
2218
2230
  {
2219
2231
  inputs: [
2220
2232
  {
2221
- name: '_userWallet',
2222
- type: 'address',
2233
+ name: '_legoId',
2234
+ type: 'uint256',
2223
2235
  },
2224
2236
  {
2225
- name: '_recipient',
2237
+ name: '_nftAddr',
2226
2238
  type: 'address',
2227
2239
  },
2228
- ],
2229
- name: 'transferFunds',
2230
- outputs: [
2231
- {
2232
- name: '',
2233
- type: 'uint256',
2234
- },
2235
2240
  {
2236
- name: '',
2241
+ name: '_nftTokenId',
2237
2242
  type: 'uint256',
2238
2243
  },
2239
- ],
2240
- stateMutability: 'nonpayable',
2241
- type: 'function',
2242
- },
2243
- {
2244
- inputs: [
2245
2244
  {
2246
- name: '_userWallet',
2245
+ name: '_pool',
2247
2246
  type: 'address',
2248
2247
  },
2249
2248
  {
2250
- name: '_recipient',
2249
+ name: '_tokenA',
2251
2250
  type: 'address',
2252
2251
  },
2253
2252
  {
2254
- name: '_amount',
2255
- type: 'uint256',
2253
+ name: '_tokenB',
2254
+ type: 'address',
2256
2255
  },
2257
2256
  ],
2258
- name: 'transferFunds',
2257
+ name: 'addLiquidityConcentrated',
2259
2258
  outputs: [
2260
2259
  {
2261
2260
  name: '',
@@ -2265,31 +2264,10 @@ export const abi = [
2265
2264
  name: '',
2266
2265
  type: 'uint256',
2267
2266
  },
2268
- ],
2269
- stateMutability: 'nonpayable',
2270
- type: 'function',
2271
- },
2272
- {
2273
- inputs: [
2274
- {
2275
- name: '_userWallet',
2276
- type: 'address',
2277
- },
2278
- {
2279
- name: '_recipient',
2280
- type: 'address',
2281
- },
2282
2267
  {
2283
- name: '_amount',
2268
+ name: '',
2284
2269
  type: 'uint256',
2285
2270
  },
2286
- {
2287
- name: '_asset',
2288
- type: 'address',
2289
- },
2290
- ],
2291
- name: 'transferFunds',
2292
- outputs: [
2293
2271
  {
2294
2272
  name: '',
2295
2273
  type: 'uint256',
@@ -2305,41 +2283,35 @@ export const abi = [
2305
2283
  {
2306
2284
  inputs: [
2307
2285
  {
2308
- name: '_userWallet',
2309
- type: 'address',
2286
+ name: '_legoId',
2287
+ type: 'uint256',
2310
2288
  },
2311
2289
  {
2312
- name: '_recipient',
2290
+ name: '_nftAddr',
2313
2291
  type: 'address',
2314
2292
  },
2315
2293
  {
2316
- name: '_amount',
2294
+ name: '_nftTokenId',
2317
2295
  type: 'uint256',
2318
2296
  },
2319
2297
  {
2320
- name: '_asset',
2298
+ name: '_pool',
2321
2299
  type: 'address',
2322
2300
  },
2323
2301
  {
2324
- components: [
2325
- {
2326
- name: 'signature',
2327
- type: 'bytes',
2328
- },
2329
- {
2330
- name: 'signer',
2331
- type: 'address',
2332
- },
2333
- {
2334
- name: 'expiration',
2335
- type: 'uint256',
2336
- },
2337
- ],
2338
- name: '_sig',
2339
- type: 'tuple',
2302
+ name: '_tokenA',
2303
+ type: 'address',
2304
+ },
2305
+ {
2306
+ name: '_tokenB',
2307
+ type: 'address',
2308
+ },
2309
+ {
2310
+ name: '_amountA',
2311
+ type: 'uint256',
2340
2312
  },
2341
2313
  ],
2342
- name: 'transferFunds',
2314
+ name: 'addLiquidityConcentrated',
2343
2315
  outputs: [
2344
2316
  {
2345
2317
  name: '',
@@ -2349,26 +2321,13 @@ export const abi = [
2349
2321
  name: '',
2350
2322
  type: 'uint256',
2351
2323
  },
2352
- ],
2353
- stateMutability: 'nonpayable',
2354
- type: 'function',
2355
- },
2356
- {
2357
- inputs: [
2358
- {
2359
- name: '_userWallet',
2360
- type: 'address',
2361
- },
2362
- ],
2363
- name: 'convertEthToWeth',
2364
- outputs: [
2365
2324
  {
2366
2325
  name: '',
2367
2326
  type: 'uint256',
2368
2327
  },
2369
2328
  {
2370
2329
  name: '',
2371
- type: 'address',
2330
+ type: 'uint256',
2372
2331
  },
2373
2332
  {
2374
2333
  name: '',
@@ -2381,48 +2340,39 @@ export const abi = [
2381
2340
  {
2382
2341
  inputs: [
2383
2342
  {
2384
- name: '_userWallet',
2385
- type: 'address',
2343
+ name: '_legoId',
2344
+ type: 'uint256',
2386
2345
  },
2387
2346
  {
2388
- name: '_amount',
2389
- type: 'uint256',
2347
+ name: '_nftAddr',
2348
+ type: 'address',
2390
2349
  },
2391
- ],
2392
- name: 'convertEthToWeth',
2393
- outputs: [
2394
2350
  {
2395
- name: '',
2351
+ name: '_nftTokenId',
2396
2352
  type: 'uint256',
2397
2353
  },
2398
2354
  {
2399
- name: '',
2355
+ name: '_pool',
2400
2356
  type: 'address',
2401
2357
  },
2402
2358
  {
2403
- name: '',
2404
- type: 'uint256',
2359
+ name: '_tokenA',
2360
+ type: 'address',
2405
2361
  },
2406
- ],
2407
- stateMutability: 'nonpayable',
2408
- type: 'function',
2409
- },
2410
- {
2411
- inputs: [
2412
2362
  {
2413
- name: '_userWallet',
2363
+ name: '_tokenB',
2414
2364
  type: 'address',
2415
2365
  },
2416
2366
  {
2417
- name: '_amount',
2367
+ name: '_amountA',
2418
2368
  type: 'uint256',
2419
2369
  },
2420
2370
  {
2421
- name: '_depositLegoId',
2371
+ name: '_amountB',
2422
2372
  type: 'uint256',
2423
2373
  },
2424
2374
  ],
2425
- name: 'convertEthToWeth',
2375
+ name: 'addLiquidityConcentrated',
2426
2376
  outputs: [
2427
2377
  {
2428
2378
  name: '',
@@ -2430,7 +2380,15 @@ export const abi = [
2430
2380
  },
2431
2381
  {
2432
2382
  name: '',
2433
- type: 'address',
2383
+ type: 'uint256',
2384
+ },
2385
+ {
2386
+ name: '',
2387
+ type: 'uint256',
2388
+ },
2389
+ {
2390
+ name: '',
2391
+ type: 'uint256',
2434
2392
  },
2435
2393
  {
2436
2394
  name: '',
@@ -2443,23 +2401,43 @@ export const abi = [
2443
2401
  {
2444
2402
  inputs: [
2445
2403
  {
2446
- name: '_userWallet',
2404
+ name: '_legoId',
2405
+ type: 'uint256',
2406
+ },
2407
+ {
2408
+ name: '_nftAddr',
2447
2409
  type: 'address',
2448
2410
  },
2449
2411
  {
2450
- name: '_amount',
2412
+ name: '_nftTokenId',
2451
2413
  type: 'uint256',
2452
2414
  },
2453
2415
  {
2454
- name: '_depositLegoId',
2455
- type: 'uint256',
2416
+ name: '_pool',
2417
+ type: 'address',
2418
+ },
2419
+ {
2420
+ name: '_tokenA',
2421
+ type: 'address',
2456
2422
  },
2457
2423
  {
2458
- name: '_depositVault',
2424
+ name: '_tokenB',
2459
2425
  type: 'address',
2460
2426
  },
2427
+ {
2428
+ name: '_amountA',
2429
+ type: 'uint256',
2430
+ },
2431
+ {
2432
+ name: '_amountB',
2433
+ type: 'uint256',
2434
+ },
2435
+ {
2436
+ name: '_tickLower',
2437
+ type: 'int24',
2438
+ },
2461
2439
  ],
2462
- name: 'convertEthToWeth',
2440
+ name: 'addLiquidityConcentrated',
2463
2441
  outputs: [
2464
2442
  {
2465
2443
  name: '',
@@ -2467,7 +2445,15 @@ export const abi = [
2467
2445
  },
2468
2446
  {
2469
2447
  name: '',
2470
- type: 'address',
2448
+ type: 'uint256',
2449
+ },
2450
+ {
2451
+ name: '',
2452
+ type: 'uint256',
2453
+ },
2454
+ {
2455
+ name: '',
2456
+ type: 'uint256',
2471
2457
  },
2472
2458
  {
2473
2459
  name: '',
@@ -2480,88 +2466,64 @@ export const abi = [
2480
2466
  {
2481
2467
  inputs: [
2482
2468
  {
2483
- name: '_userWallet',
2469
+ name: '_legoId',
2470
+ type: 'uint256',
2471
+ },
2472
+ {
2473
+ name: '_nftAddr',
2484
2474
  type: 'address',
2485
2475
  },
2486
2476
  {
2487
- name: '_amount',
2477
+ name: '_nftTokenId',
2488
2478
  type: 'uint256',
2489
2479
  },
2490
2480
  {
2491
- name: '_depositLegoId',
2492
- type: 'uint256',
2481
+ name: '_pool',
2482
+ type: 'address',
2493
2483
  },
2494
2484
  {
2495
- name: '_depositVault',
2485
+ name: '_tokenA',
2496
2486
  type: 'address',
2497
2487
  },
2498
2488
  {
2499
- components: [
2500
- {
2501
- name: 'signature',
2502
- type: 'bytes',
2503
- },
2504
- {
2505
- name: 'signer',
2506
- type: 'address',
2507
- },
2508
- {
2509
- name: 'expiration',
2510
- type: 'uint256',
2511
- },
2512
- ],
2513
- name: '_sig',
2514
- type: 'tuple',
2489
+ name: '_tokenB',
2490
+ type: 'address',
2515
2491
  },
2516
- ],
2517
- name: 'convertEthToWeth',
2518
- outputs: [
2519
2492
  {
2520
- name: '',
2493
+ name: '_amountA',
2521
2494
  type: 'uint256',
2522
2495
  },
2523
2496
  {
2524
- name: '',
2525
- type: 'address',
2497
+ name: '_amountB',
2498
+ type: 'uint256',
2526
2499
  },
2527
2500
  {
2528
- name: '',
2529
- type: 'uint256',
2501
+ name: '_tickLower',
2502
+ type: 'int24',
2530
2503
  },
2531
- ],
2532
- stateMutability: 'nonpayable',
2533
- type: 'function',
2534
- },
2535
- {
2536
- inputs: [
2537
2504
  {
2538
- name: '_userWallet',
2539
- type: 'address',
2505
+ name: '_tickUpper',
2506
+ type: 'int24',
2540
2507
  },
2541
2508
  ],
2542
- name: 'convertWethToEth',
2509
+ name: 'addLiquidityConcentrated',
2543
2510
  outputs: [
2544
2511
  {
2545
2512
  name: '',
2546
2513
  type: 'uint256',
2547
2514
  },
2548
- ],
2549
- stateMutability: 'nonpayable',
2550
- type: 'function',
2551
- },
2552
- {
2553
- inputs: [
2554
2515
  {
2555
- name: '_userWallet',
2556
- type: 'address',
2516
+ name: '',
2517
+ type: 'uint256',
2557
2518
  },
2558
2519
  {
2559
- name: '_amount',
2520
+ name: '',
2521
+ type: 'uint256',
2522
+ },
2523
+ {
2524
+ name: '',
2560
2525
  type: 'uint256',
2561
2526
  },
2562
- ],
2563
- name: 'convertWethToEth',
2564
- outputs: [
2565
2527
  {
2566
2528
  name: '',
2567
2529
  type: 'uint256',
@@ -2573,82 +2535,68 @@ export const abi = [
2573
2535
  {
2574
2536
  inputs: [
2575
2537
  {
2576
- name: '_userWallet',
2538
+ name: '_legoId',
2539
+ type: 'uint256',
2540
+ },
2541
+ {
2542
+ name: '_nftAddr',
2577
2543
  type: 'address',
2578
2544
  },
2579
2545
  {
2580
- name: '_amount',
2546
+ name: '_nftTokenId',
2581
2547
  type: 'uint256',
2582
2548
  },
2583
2549
  {
2584
- name: '_recipient',
2550
+ name: '_pool',
2585
2551
  type: 'address',
2586
2552
  },
2587
- ],
2588
- name: 'convertWethToEth',
2589
- outputs: [
2590
2553
  {
2591
- name: '',
2592
- type: 'uint256',
2554
+ name: '_tokenA',
2555
+ type: 'address',
2593
2556
  },
2594
- ],
2595
- stateMutability: 'nonpayable',
2596
- type: 'function',
2597
- },
2598
- {
2599
- inputs: [
2600
2557
  {
2601
- name: '_userWallet',
2558
+ name: '_tokenB',
2602
2559
  type: 'address',
2603
2560
  },
2604
2561
  {
2605
- name: '_amount',
2562
+ name: '_amountA',
2606
2563
  type: 'uint256',
2607
2564
  },
2608
2565
  {
2609
- name: '_recipient',
2610
- type: 'address',
2566
+ name: '_amountB',
2567
+ type: 'uint256',
2568
+ },
2569
+ {
2570
+ name: '_tickLower',
2571
+ type: 'int24',
2572
+ },
2573
+ {
2574
+ name: '_tickUpper',
2575
+ type: 'int24',
2611
2576
  },
2612
2577
  {
2613
- name: '_withdrawLegoId',
2578
+ name: '_minAmountA',
2614
2579
  type: 'uint256',
2615
2580
  },
2616
2581
  ],
2617
- name: 'convertWethToEth',
2582
+ name: 'addLiquidityConcentrated',
2618
2583
  outputs: [
2619
2584
  {
2620
2585
  name: '',
2621
2586
  type: 'uint256',
2622
2587
  },
2623
- ],
2624
- stateMutability: 'nonpayable',
2625
- type: 'function',
2626
- },
2627
- {
2628
- inputs: [
2629
- {
2630
- name: '_userWallet',
2631
- type: 'address',
2632
- },
2633
2588
  {
2634
- name: '_amount',
2589
+ name: '',
2635
2590
  type: 'uint256',
2636
2591
  },
2637
2592
  {
2638
- name: '_recipient',
2639
- type: 'address',
2640
- },
2641
- {
2642
- name: '_withdrawLegoId',
2593
+ name: '',
2643
2594
  type: 'uint256',
2644
2595
  },
2645
2596
  {
2646
- name: '_withdrawVaultToken',
2647
- type: 'address',
2597
+ name: '',
2598
+ type: 'uint256',
2648
2599
  },
2649
- ],
2650
- name: 'convertWethToEth',
2651
- outputs: [
2652
2600
  {
2653
2601
  name: '',
2654
2602
  type: 'uint256',
@@ -2660,50 +2608,76 @@ export const abi = [
2660
2608
  {
2661
2609
  inputs: [
2662
2610
  {
2663
- name: '_userWallet',
2611
+ name: '_legoId',
2612
+ type: 'uint256',
2613
+ },
2614
+ {
2615
+ name: '_nftAddr',
2664
2616
  type: 'address',
2665
2617
  },
2666
2618
  {
2667
- name: '_amount',
2619
+ name: '_nftTokenId',
2668
2620
  type: 'uint256',
2669
2621
  },
2670
2622
  {
2671
- name: '_recipient',
2623
+ name: '_pool',
2672
2624
  type: 'address',
2673
2625
  },
2674
2626
  {
2675
- name: '_withdrawLegoId',
2676
- type: 'uint256',
2627
+ name: '_tokenA',
2628
+ type: 'address',
2677
2629
  },
2678
2630
  {
2679
- name: '_withdrawVaultToken',
2631
+ name: '_tokenB',
2680
2632
  type: 'address',
2681
2633
  },
2682
2634
  {
2683
- components: [
2684
- {
2685
- name: 'signature',
2686
- type: 'bytes',
2687
- },
2688
- {
2689
- name: 'signer',
2690
- type: 'address',
2691
- },
2692
- {
2693
- name: 'expiration',
2694
- type: 'uint256',
2695
- },
2696
- ],
2697
- name: '_sig',
2698
- type: 'tuple',
2635
+ name: '_amountA',
2636
+ type: 'uint256',
2637
+ },
2638
+ {
2639
+ name: '_amountB',
2640
+ type: 'uint256',
2641
+ },
2642
+ {
2643
+ name: '_tickLower',
2644
+ type: 'int24',
2645
+ },
2646
+ {
2647
+ name: '_tickUpper',
2648
+ type: 'int24',
2649
+ },
2650
+ {
2651
+ name: '_minAmountA',
2652
+ type: 'uint256',
2653
+ },
2654
+ {
2655
+ name: '_minAmountB',
2656
+ type: 'uint256',
2699
2657
  },
2700
2658
  ],
2701
- name: 'convertWethToEth',
2659
+ name: 'addLiquidityConcentrated',
2702
2660
  outputs: [
2703
2661
  {
2704
2662
  name: '',
2705
2663
  type: 'uint256',
2706
2664
  },
2665
+ {
2666
+ name: '',
2667
+ type: 'uint256',
2668
+ },
2669
+ {
2670
+ name: '',
2671
+ type: 'uint256',
2672
+ },
2673
+ {
2674
+ name: '',
2675
+ type: 'uint256',
2676
+ },
2677
+ {
2678
+ name: '',
2679
+ type: 'uint256',
2680
+ },
2707
2681
  ],
2708
2682
  stateMutability: 'nonpayable',
2709
2683
  type: 'function',
@@ -2711,113 +2685,393 @@ export const abi = [
2711
2685
  {
2712
2686
  inputs: [
2713
2687
  {
2714
- name: '_userWallet',
2688
+ name: '_legoId',
2689
+ type: 'uint256',
2690
+ },
2691
+ {
2692
+ name: '_nftAddr',
2715
2693
  type: 'address',
2716
2694
  },
2717
2695
  {
2718
- components: [
2719
- {
2720
- name: 'usePrevAmountOut',
2721
- type: 'bool',
2722
- },
2723
- {
2724
- name: 'action',
2725
- type: 'uint256',
2726
- },
2727
- {
2728
- name: 'legoId',
2729
- type: 'uint256',
2730
- },
2731
- {
2732
- name: 'asset',
2733
- type: 'address',
2734
- },
2735
- {
2736
- name: 'vault',
2737
- type: 'address',
2738
- },
2739
- {
2740
- name: 'amount',
2741
- type: 'uint256',
2742
- },
2743
- {
2744
- name: 'altLegoId',
2745
- type: 'uint256',
2746
- },
2747
- {
2748
- name: 'altAsset',
2749
- type: 'address',
2750
- },
2751
- {
2752
- name: 'altVault',
2753
- type: 'address',
2754
- },
2755
- {
2756
- name: 'altAmount',
2757
- type: 'uint256',
2758
- },
2759
- {
2760
- name: 'minAmountOut',
2761
- type: 'uint256',
2762
- },
2763
- {
2764
- name: 'pool',
2765
- type: 'address',
2766
- },
2767
- {
2768
- name: 'proof',
2769
- type: 'bytes32',
2770
- },
2771
- {
2772
- name: 'nftAddr',
2773
- type: 'address',
2774
- },
2775
- {
2776
- name: 'nftTokenId',
2777
- type: 'uint256',
2778
- },
2779
- {
2780
- name: 'tickLower',
2781
- type: 'int24',
2782
- },
2783
- {
2784
- name: 'tickUpper',
2785
- type: 'int24',
2786
- },
2787
- {
2788
- name: 'minAmountA',
2789
- type: 'uint256',
2790
- },
2791
- {
2792
- name: 'minAmountB',
2793
- type: 'uint256',
2794
- },
2795
- {
2796
- name: 'minLpAmount',
2797
- type: 'uint256',
2798
- },
2799
- {
2800
- name: 'liqToRemove',
2801
- type: 'uint256',
2802
- },
2803
- {
2804
- name: 'recipient',
2805
- type: 'address',
2806
- },
2807
- {
2808
- name: 'isWethToEthConversion',
2809
- type: 'bool',
2810
- },
2811
- ],
2812
- name: '_instructions',
2813
- type: 'tuple[]',
2696
+ name: '_nftTokenId',
2697
+ type: 'uint256',
2698
+ },
2699
+ {
2700
+ name: '_pool',
2701
+ type: 'address',
2702
+ },
2703
+ {
2704
+ name: '_tokenA',
2705
+ type: 'address',
2706
+ },
2707
+ {
2708
+ name: '_tokenB',
2709
+ type: 'address',
2710
+ },
2711
+ {
2712
+ name: '_amountA',
2713
+ type: 'uint256',
2714
+ },
2715
+ {
2716
+ name: '_amountB',
2717
+ type: 'uint256',
2718
+ },
2719
+ {
2720
+ name: '_tickLower',
2721
+ type: 'int24',
2722
+ },
2723
+ {
2724
+ name: '_tickUpper',
2725
+ type: 'int24',
2726
+ },
2727
+ {
2728
+ name: '_minAmountA',
2729
+ type: 'uint256',
2730
+ },
2731
+ {
2732
+ name: '_minAmountB',
2733
+ type: 'uint256',
2734
+ },
2735
+ {
2736
+ name: '_extraData',
2737
+ type: 'bytes32',
2738
+ },
2739
+ ],
2740
+ name: 'addLiquidityConcentrated',
2741
+ outputs: [
2742
+ {
2743
+ name: '',
2744
+ type: 'uint256',
2745
+ },
2746
+ {
2747
+ name: '',
2748
+ type: 'uint256',
2749
+ },
2750
+ {
2751
+ name: '',
2752
+ type: 'uint256',
2753
+ },
2754
+ {
2755
+ name: '',
2756
+ type: 'uint256',
2757
+ },
2758
+ {
2759
+ name: '',
2760
+ type: 'uint256',
2761
+ },
2762
+ ],
2763
+ stateMutability: 'nonpayable',
2764
+ type: 'function',
2765
+ },
2766
+ {
2767
+ inputs: [
2768
+ {
2769
+ name: '_legoId',
2770
+ type: 'uint256',
2771
+ },
2772
+ {
2773
+ name: '_nftAddr',
2774
+ type: 'address',
2775
+ },
2776
+ {
2777
+ name: '_nftTokenId',
2778
+ type: 'uint256',
2779
+ },
2780
+ {
2781
+ name: '_pool',
2782
+ type: 'address',
2783
+ },
2784
+ {
2785
+ name: '_tokenA',
2786
+ type: 'address',
2787
+ },
2788
+ {
2789
+ name: '_tokenB',
2790
+ type: 'address',
2791
+ },
2792
+ ],
2793
+ name: 'removeLiquidityConcentrated',
2794
+ outputs: [
2795
+ {
2796
+ name: '',
2797
+ type: 'uint256',
2798
+ },
2799
+ {
2800
+ name: '',
2801
+ type: 'uint256',
2802
+ },
2803
+ {
2804
+ name: '',
2805
+ type: 'uint256',
2806
+ },
2807
+ {
2808
+ name: '',
2809
+ type: 'uint256',
2810
+ },
2811
+ ],
2812
+ stateMutability: 'nonpayable',
2813
+ type: 'function',
2814
+ },
2815
+ {
2816
+ inputs: [
2817
+ {
2818
+ name: '_legoId',
2819
+ type: 'uint256',
2820
+ },
2821
+ {
2822
+ name: '_nftAddr',
2823
+ type: 'address',
2824
+ },
2825
+ {
2826
+ name: '_nftTokenId',
2827
+ type: 'uint256',
2828
+ },
2829
+ {
2830
+ name: '_pool',
2831
+ type: 'address',
2832
+ },
2833
+ {
2834
+ name: '_tokenA',
2835
+ type: 'address',
2836
+ },
2837
+ {
2838
+ name: '_tokenB',
2839
+ type: 'address',
2840
+ },
2841
+ {
2842
+ name: '_liqToRemove',
2843
+ type: 'uint256',
2844
+ },
2845
+ ],
2846
+ name: 'removeLiquidityConcentrated',
2847
+ outputs: [
2848
+ {
2849
+ name: '',
2850
+ type: 'uint256',
2851
+ },
2852
+ {
2853
+ name: '',
2854
+ type: 'uint256',
2855
+ },
2856
+ {
2857
+ name: '',
2858
+ type: 'uint256',
2859
+ },
2860
+ {
2861
+ name: '',
2862
+ type: 'uint256',
2863
+ },
2864
+ ],
2865
+ stateMutability: 'nonpayable',
2866
+ type: 'function',
2867
+ },
2868
+ {
2869
+ inputs: [
2870
+ {
2871
+ name: '_legoId',
2872
+ type: 'uint256',
2873
+ },
2874
+ {
2875
+ name: '_nftAddr',
2876
+ type: 'address',
2877
+ },
2878
+ {
2879
+ name: '_nftTokenId',
2880
+ type: 'uint256',
2881
+ },
2882
+ {
2883
+ name: '_pool',
2884
+ type: 'address',
2885
+ },
2886
+ {
2887
+ name: '_tokenA',
2888
+ type: 'address',
2889
+ },
2890
+ {
2891
+ name: '_tokenB',
2892
+ type: 'address',
2893
+ },
2894
+ {
2895
+ name: '_liqToRemove',
2896
+ type: 'uint256',
2897
+ },
2898
+ {
2899
+ name: '_minAmountA',
2900
+ type: 'uint256',
2901
+ },
2902
+ ],
2903
+ name: 'removeLiquidityConcentrated',
2904
+ outputs: [
2905
+ {
2906
+ name: '',
2907
+ type: 'uint256',
2908
+ },
2909
+ {
2910
+ name: '',
2911
+ type: 'uint256',
2912
+ },
2913
+ {
2914
+ name: '',
2915
+ type: 'uint256',
2916
+ },
2917
+ {
2918
+ name: '',
2919
+ type: 'uint256',
2920
+ },
2921
+ ],
2922
+ stateMutability: 'nonpayable',
2923
+ type: 'function',
2924
+ },
2925
+ {
2926
+ inputs: [
2927
+ {
2928
+ name: '_legoId',
2929
+ type: 'uint256',
2930
+ },
2931
+ {
2932
+ name: '_nftAddr',
2933
+ type: 'address',
2934
+ },
2935
+ {
2936
+ name: '_nftTokenId',
2937
+ type: 'uint256',
2938
+ },
2939
+ {
2940
+ name: '_pool',
2941
+ type: 'address',
2942
+ },
2943
+ {
2944
+ name: '_tokenA',
2945
+ type: 'address',
2946
+ },
2947
+ {
2948
+ name: '_tokenB',
2949
+ type: 'address',
2950
+ },
2951
+ {
2952
+ name: '_liqToRemove',
2953
+ type: 'uint256',
2954
+ },
2955
+ {
2956
+ name: '_minAmountA',
2957
+ type: 'uint256',
2958
+ },
2959
+ {
2960
+ name: '_minAmountB',
2961
+ type: 'uint256',
2962
+ },
2963
+ ],
2964
+ name: 'removeLiquidityConcentrated',
2965
+ outputs: [
2966
+ {
2967
+ name: '',
2968
+ type: 'uint256',
2969
+ },
2970
+ {
2971
+ name: '',
2972
+ type: 'uint256',
2973
+ },
2974
+ {
2975
+ name: '',
2976
+ type: 'uint256',
2977
+ },
2978
+ {
2979
+ name: '',
2980
+ type: 'uint256',
2981
+ },
2982
+ ],
2983
+ stateMutability: 'nonpayable',
2984
+ type: 'function',
2985
+ },
2986
+ {
2987
+ inputs: [
2988
+ {
2989
+ name: '_legoId',
2990
+ type: 'uint256',
2991
+ },
2992
+ {
2993
+ name: '_nftAddr',
2994
+ type: 'address',
2995
+ },
2996
+ {
2997
+ name: '_nftTokenId',
2998
+ type: 'uint256',
2999
+ },
3000
+ {
3001
+ name: '_pool',
3002
+ type: 'address',
3003
+ },
3004
+ {
3005
+ name: '_tokenA',
3006
+ type: 'address',
3007
+ },
3008
+ {
3009
+ name: '_tokenB',
3010
+ type: 'address',
3011
+ },
3012
+ {
3013
+ name: '_liqToRemove',
3014
+ type: 'uint256',
3015
+ },
3016
+ {
3017
+ name: '_minAmountA',
3018
+ type: 'uint256',
3019
+ },
3020
+ {
3021
+ name: '_minAmountB',
3022
+ type: 'uint256',
3023
+ },
3024
+ {
3025
+ name: '_extraData',
3026
+ type: 'bytes32',
3027
+ },
3028
+ ],
3029
+ name: 'removeLiquidityConcentrated',
3030
+ outputs: [
3031
+ {
3032
+ name: '',
3033
+ type: 'uint256',
3034
+ },
3035
+ {
3036
+ name: '',
3037
+ type: 'uint256',
3038
+ },
3039
+ {
3040
+ name: '',
3041
+ type: 'uint256',
3042
+ },
3043
+ {
3044
+ name: '',
3045
+ type: 'uint256',
3046
+ },
3047
+ ],
3048
+ stateMutability: 'nonpayable',
3049
+ type: 'function',
3050
+ },
3051
+ {
3052
+ inputs: [
3053
+ {
3054
+ name: '_legoId',
3055
+ type: 'uint256',
3056
+ },
3057
+ {
3058
+ name: '_asset',
3059
+ type: 'address',
3060
+ },
3061
+ {
3062
+ name: '_shouldCheckYield',
3063
+ type: 'bool',
3064
+ },
3065
+ {
3066
+ name: '_prevTotalUsdValue',
3067
+ type: 'uint256',
2814
3068
  },
2815
3069
  ],
2816
- name: 'performBatchActions',
3070
+ name: 'updateAssetData',
2817
3071
  outputs: [
2818
3072
  {
2819
3073
  name: '',
2820
- type: 'bool',
3074
+ type: 'uint256',
2821
3075
  },
2822
3076
  ],
2823
3077
  stateMutability: 'nonpayable',
@@ -2826,131 +3080,113 @@ export const abi = [
2826
3080
  {
2827
3081
  inputs: [
2828
3082
  {
2829
- name: '_userWallet',
3083
+ name: '_legoId',
3084
+ type: 'uint256',
3085
+ },
3086
+ {
3087
+ name: '_asset',
2830
3088
  type: 'address',
2831
3089
  },
3090
+ {
3091
+ name: '_shouldCheckYield',
3092
+ type: 'bool',
3093
+ },
3094
+ {
3095
+ name: '_prevTotalUsdValue',
3096
+ type: 'uint256',
3097
+ },
2832
3098
  {
2833
3099
  components: [
2834
3100
  {
2835
- name: 'usePrevAmountOut',
2836
- type: 'bool',
2837
- },
2838
- {
2839
- name: 'action',
2840
- type: 'uint256',
2841
- },
2842
- {
2843
- name: 'legoId',
2844
- type: 'uint256',
2845
- },
2846
- {
2847
- name: 'asset',
3101
+ name: 'ledger',
2848
3102
  type: 'address',
2849
3103
  },
2850
3104
  {
2851
- name: 'vault',
3105
+ name: 'missionControl',
2852
3106
  type: 'address',
2853
3107
  },
2854
3108
  {
2855
- name: 'amount',
2856
- type: 'uint256',
2857
- },
2858
- {
2859
- name: 'altLegoId',
2860
- type: 'uint256',
3109
+ name: 'legoBook',
3110
+ type: 'address',
2861
3111
  },
2862
3112
  {
2863
- name: 'altAsset',
3113
+ name: 'hatchery',
2864
3114
  type: 'address',
2865
3115
  },
2866
3116
  {
2867
- name: 'altVault',
3117
+ name: 'lootDistributor',
2868
3118
  type: 'address',
2869
3119
  },
2870
3120
  {
2871
- name: 'altAmount',
2872
- type: 'uint256',
3121
+ name: 'appraiser',
3122
+ type: 'address',
2873
3123
  },
2874
3124
  {
2875
- name: 'minAmountOut',
2876
- type: 'uint256',
3125
+ name: 'billing',
3126
+ type: 'address',
2877
3127
  },
2878
3128
  {
2879
- name: 'pool',
3129
+ name: 'vaultRegistry',
2880
3130
  type: 'address',
2881
3131
  },
2882
3132
  {
2883
- name: 'proof',
2884
- type: 'bytes32',
3133
+ name: 'wallet',
3134
+ type: 'address',
2885
3135
  },
2886
3136
  {
2887
- name: 'nftAddr',
3137
+ name: 'walletConfig',
2888
3138
  type: 'address',
2889
3139
  },
2890
3140
  {
2891
- name: 'nftTokenId',
2892
- type: 'uint256',
3141
+ name: 'walletOwner',
3142
+ type: 'address',
2893
3143
  },
2894
3144
  {
2895
- name: 'tickLower',
2896
- type: 'int24',
3145
+ name: 'inEjectMode',
3146
+ type: 'bool',
2897
3147
  },
2898
3148
  {
2899
- name: 'tickUpper',
2900
- type: 'int24',
3149
+ name: 'isFrozen',
3150
+ type: 'bool',
2901
3151
  },
2902
3152
  {
2903
- name: 'minAmountA',
3153
+ name: 'lastTotalUsdValue',
2904
3154
  type: 'uint256',
2905
3155
  },
2906
3156
  {
2907
- name: 'minAmountB',
2908
- type: 'uint256',
3157
+ name: 'signer',
3158
+ type: 'address',
2909
3159
  },
2910
3160
  {
2911
- name: 'minLpAmount',
2912
- type: 'uint256',
3161
+ name: 'isManager',
3162
+ type: 'bool',
2913
3163
  },
2914
3164
  {
2915
- name: 'liqToRemove',
3165
+ name: 'legoId',
2916
3166
  type: 'uint256',
2917
3167
  },
2918
3168
  {
2919
- name: 'recipient',
3169
+ name: 'legoAddr',
2920
3170
  type: 'address',
2921
3171
  },
2922
3172
  {
2923
- name: 'isWethToEthConversion',
2924
- type: 'bool',
2925
- },
2926
- ],
2927
- name: '_instructions',
2928
- type: 'tuple[]',
2929
- },
2930
- {
2931
- components: [
2932
- {
2933
- name: 'signature',
2934
- type: 'bytes',
2935
- },
2936
- {
2937
- name: 'signer',
3173
+ name: 'eth',
2938
3174
  type: 'address',
2939
3175
  },
2940
3176
  {
2941
- name: 'expiration',
2942
- type: 'uint256',
3177
+ name: 'weth',
3178
+ type: 'address',
2943
3179
  },
2944
3180
  ],
2945
- name: '_sig',
3181
+ name: '_ad',
2946
3182
  type: 'tuple',
2947
3183
  },
2948
3184
  ],
2949
- name: 'performBatchActions',
3185
+ name: 'updateAssetData',
2950
3186
  outputs: [
2951
3187
  {
2952
3188
  name: '',
2953
- type: 'bool',
3189
+ type: 'uint256',
2954
3190
  },
2955
3191
  ],
2956
3192
  stateMutability: 'nonpayable',
@@ -2959,168 +3195,36 @@ export const abi = [
2959
3195
  {
2960
3196
  inputs: [
2961
3197
  {
2962
- name: '_userWallet',
3198
+ name: '_asset',
2963
3199
  type: 'address',
2964
3200
  },
2965
- {
2966
- components: [
2967
- {
2968
- name: 'usePrevAmountOut',
2969
- type: 'bool',
2970
- },
2971
- {
2972
- name: 'action',
2973
- type: 'uint256',
2974
- },
2975
- {
2976
- name: 'legoId',
2977
- type: 'uint256',
2978
- },
2979
- {
2980
- name: 'asset',
2981
- type: 'address',
2982
- },
2983
- {
2984
- name: 'vault',
2985
- type: 'address',
2986
- },
2987
- {
2988
- name: 'amount',
2989
- type: 'uint256',
2990
- },
2991
- {
2992
- name: 'altLegoId',
2993
- type: 'uint256',
2994
- },
2995
- {
2996
- name: 'altAsset',
2997
- type: 'address',
2998
- },
2999
- {
3000
- name: 'altVault',
3001
- type: 'address',
3002
- },
3003
- {
3004
- name: 'altAmount',
3005
- type: 'uint256',
3006
- },
3007
- {
3008
- name: 'minAmountOut',
3009
- type: 'uint256',
3010
- },
3011
- {
3012
- name: 'pool',
3013
- type: 'address',
3014
- },
3015
- {
3016
- name: 'proof',
3017
- type: 'bytes32',
3018
- },
3019
- {
3020
- name: 'nftAddr',
3021
- type: 'address',
3022
- },
3023
- {
3024
- name: 'nftTokenId',
3025
- type: 'uint256',
3026
- },
3027
- {
3028
- name: 'tickLower',
3029
- type: 'int24',
3030
- },
3031
- {
3032
- name: 'tickUpper',
3033
- type: 'int24',
3034
- },
3035
- {
3036
- name: 'minAmountA',
3037
- type: 'uint256',
3038
- },
3039
- {
3040
- name: 'minAmountB',
3041
- type: 'uint256',
3042
- },
3043
- {
3044
- name: 'minLpAmount',
3045
- type: 'uint256',
3046
- },
3047
- {
3048
- name: 'liqToRemove',
3049
- type: 'uint256',
3050
- },
3051
- {
3052
- name: 'recipient',
3053
- type: 'address',
3054
- },
3055
- {
3056
- name: 'isWethToEthConversion',
3057
- type: 'bool',
3058
- },
3059
- ],
3060
- name: '_instructions',
3061
- type: 'tuple[]',
3062
- },
3063
- {
3064
- name: '_expiration',
3065
- type: 'uint256',
3066
- },
3067
- ],
3068
- name: 'getBatchActionHash',
3069
- outputs: [
3070
- {
3071
- name: '',
3072
- type: 'bytes32',
3073
- },
3074
3201
  ],
3075
- stateMutability: 'view',
3076
- type: 'function',
3077
- },
3078
- {
3079
- inputs: [],
3080
- name: 'DOMAIN_SEPARATOR',
3202
+ name: 'deregisterAsset',
3081
3203
  outputs: [
3082
3204
  {
3083
3205
  name: '',
3084
- type: 'bytes32',
3206
+ type: 'bool',
3085
3207
  },
3086
3208
  ],
3087
- stateMutability: 'view',
3209
+ stateMutability: 'nonpayable',
3088
3210
  type: 'function',
3089
3211
  },
3090
3212
  {
3091
3213
  inputs: [
3092
3214
  {
3093
- name: '_newOwner',
3215
+ name: '_collection',
3094
3216
  type: 'address',
3095
3217
  },
3096
- ],
3097
- name: 'changeOwnership',
3098
- outputs: [],
3099
- stateMutability: 'nonpayable',
3100
- type: 'function',
3101
- },
3102
- {
3103
- inputs: [],
3104
- name: 'confirmOwnershipChange',
3105
- outputs: [],
3106
- stateMutability: 'nonpayable',
3107
- type: 'function',
3108
- },
3109
- {
3110
- inputs: [],
3111
- name: 'cancelOwnershipChange',
3112
- outputs: [],
3113
- stateMutability: 'nonpayable',
3114
- type: 'function',
3115
- },
3116
- {
3117
- inputs: [
3118
3218
  {
3119
- name: '_numBlocks',
3219
+ name: '_nftTokenId',
3120
3220
  type: 'uint256',
3121
3221
  },
3222
+ {
3223
+ name: '_recipient',
3224
+ type: 'address',
3225
+ },
3122
3226
  ],
3123
- name: 'setOwnershipChangeDelay',
3227
+ name: 'recoverNft',
3124
3228
  outputs: [],
3125
3229
  stateMutability: 'nonpayable',
3126
3230
  type: 'function',
@@ -3128,11 +3232,15 @@ export const abi = [
3128
3232
  {
3129
3233
  inputs: [
3130
3234
  {
3131
- name: '_asset',
3235
+ name: '_legoAddr',
3132
3236
  type: 'address',
3133
3237
  },
3238
+ {
3239
+ name: '_action',
3240
+ type: 'uint256',
3241
+ },
3134
3242
  ],
3135
- name: 'recoverFunds',
3243
+ name: 'setLegoAccessForAction',
3136
3244
  outputs: [
3137
3245
  {
3138
3246
  name: '',
@@ -3144,11 +3252,11 @@ export const abi = [
3144
3252
  },
3145
3253
  {
3146
3254
  inputs: [],
3147
- name: 'initialized',
3255
+ name: 'walletConfig',
3148
3256
  outputs: [
3149
3257
  {
3150
3258
  name: '',
3151
- type: 'bool',
3259
+ type: 'address',
3152
3260
  },
3153
3261
  ],
3154
3262
  stateMutability: 'view',
@@ -3158,22 +3266,45 @@ export const abi = [
3158
3266
  inputs: [
3159
3267
  {
3160
3268
  name: 'arg0',
3161
- type: 'bytes',
3269
+ type: 'address',
3162
3270
  },
3163
3271
  ],
3164
- name: 'usedSignatures',
3272
+ name: 'assetData',
3165
3273
  outputs: [
3166
3274
  {
3275
+ components: [
3276
+ {
3277
+ name: 'assetBalance',
3278
+ type: 'uint256',
3279
+ },
3280
+ {
3281
+ name: 'usdValue',
3282
+ type: 'uint256',
3283
+ },
3284
+ {
3285
+ name: 'isYieldAsset',
3286
+ type: 'bool',
3287
+ },
3288
+ {
3289
+ name: 'lastPricePerShare',
3290
+ type: 'uint256',
3291
+ },
3292
+ ],
3167
3293
  name: '',
3168
- type: 'bool',
3294
+ type: 'tuple',
3169
3295
  },
3170
3296
  ],
3171
3297
  stateMutability: 'view',
3172
3298
  type: 'function',
3173
3299
  },
3174
3300
  {
3175
- inputs: [],
3176
- name: 'owner',
3301
+ inputs: [
3302
+ {
3303
+ name: 'arg0',
3304
+ type: 'uint256',
3305
+ },
3306
+ ],
3307
+ name: 'assets',
3177
3308
  outputs: [
3178
3309
  {
3179
3310
  name: '',
@@ -3184,26 +3315,17 @@ export const abi = [
3184
3315
  type: 'function',
3185
3316
  },
3186
3317
  {
3187
- inputs: [],
3188
- name: 'pendingOwner',
3318
+ inputs: [
3319
+ {
3320
+ name: 'arg0',
3321
+ type: 'address',
3322
+ },
3323
+ ],
3324
+ name: 'indexOfAsset',
3189
3325
  outputs: [
3190
3326
  {
3191
- components: [
3192
- {
3193
- name: 'newOwner',
3194
- type: 'address',
3195
- },
3196
- {
3197
- name: 'initiatedBlock',
3198
- type: 'uint256',
3199
- },
3200
- {
3201
- name: 'confirmBlock',
3202
- type: 'uint256',
3203
- },
3204
- ],
3205
3327
  name: '',
3206
- type: 'tuple',
3328
+ type: 'uint256',
3207
3329
  },
3208
3330
  ],
3209
3331
  stateMutability: 'view',
@@ -3211,7 +3333,7 @@ export const abi = [
3211
3333
  },
3212
3334
  {
3213
3335
  inputs: [],
3214
- name: 'ownershipChangeDelay',
3336
+ name: 'numAssets',
3215
3337
  outputs: [
3216
3338
  {
3217
3339
  name: '',
@@ -3223,11 +3345,11 @@ export const abi = [
3223
3345
  },
3224
3346
  {
3225
3347
  inputs: [],
3226
- name: 'MIN_OWNER_CHANGE_DELAY',
3348
+ name: 'WETH',
3227
3349
  outputs: [
3228
3350
  {
3229
3351
  name: '',
3230
- type: 'uint256',
3352
+ type: 'address',
3231
3353
  },
3232
3354
  ],
3233
3355
  stateMutability: 'view',
@@ -3235,11 +3357,11 @@ export const abi = [
3235
3357
  },
3236
3358
  {
3237
3359
  inputs: [],
3238
- name: 'MAX_OWNER_CHANGE_DELAY',
3360
+ name: 'ETH',
3239
3361
  outputs: [
3240
3362
  {
3241
3363
  name: '',
3242
- type: 'uint256',
3364
+ type: 'address',
3243
3365
  },
3244
3366
  ],
3245
3367
  stateMutability: 'view',
@@ -3248,12 +3370,16 @@ export const abi = [
3248
3370
  {
3249
3371
  inputs: [
3250
3372
  {
3251
- name: '_minOwnerChangeDelay',
3252
- type: 'uint256',
3373
+ name: '_wethAddr',
3374
+ type: 'address',
3253
3375
  },
3254
3376
  {
3255
- name: '_maxOwnerChangeDelay',
3256
- type: 'uint256',
3377
+ name: '_ethAddr',
3378
+ type: 'address',
3379
+ },
3380
+ {
3381
+ name: '_walletConfig',
3382
+ type: 'address',
3257
3383
  },
3258
3384
  ],
3259
3385
  outputs: [],
@@ -3261,12 +3387,12 @@ export const abi = [
3261
3387
  type: 'constructor',
3262
3388
  },
3263
3389
  ];
3264
- export const deployAddress = '0x70418b3AAa1044eC8bFF6a461B4E43460bb5699E';
3390
+ export const deployAddress = '0x880E453Ec494FB17bffba537BeaB4Cc6CD1B7C12';
3265
3391
  function getRequest(method, args, contractAddressOrOptions) {
3266
3392
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
3267
3393
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
3268
3394
  const call = {
3269
- contractName: 'Agent_v1',
3395
+ contractName: 'UserWalletV1',
3270
3396
  method,
3271
3397
  args,
3272
3398
  address,
@@ -3290,21 +3416,19 @@ function getRequest(method, args, contractAddressOrOptions) {
3290
3416
  return call;
3291
3417
  }
3292
3418
  export const call = {
3419
+ onERC721Received: (...args) => getRequest('onERC721Received', args),
3293
3420
  apiVersion: (...args) => getRequest('apiVersion', args),
3294
- getSwapActionHash: (...args) => getRequest('getSwapActionHash', args),
3295
- getBatchActionHash: (...args) => getRequest('getBatchActionHash', args),
3296
- DOMAIN_SEPARATOR: (...args) => getRequest('DOMAIN_SEPARATOR', args),
3297
- initialized: (...args) => getRequest('initialized', args),
3298
- usedSignatures: (...args) => getRequest('usedSignatures', args),
3299
- owner: (...args) => getRequest('owner', args),
3300
- pendingOwner: (...args) => getRequest('pendingOwner', args),
3301
- ownershipChangeDelay: (...args) => getRequest('ownershipChangeDelay', args),
3302
- MIN_OWNER_CHANGE_DELAY: (...args) => getRequest('MIN_OWNER_CHANGE_DELAY', args),
3303
- MAX_OWNER_CHANGE_DELAY: (...args) => getRequest('MAX_OWNER_CHANGE_DELAY', args),
3421
+ walletConfig: (...args) => getRequest('walletConfig', args),
3422
+ assetData: (...args) => getRequest('assetData', args),
3423
+ assets: (...args) => getRequest('assets', args),
3424
+ indexOfAsset: (...args) => getRequest('indexOfAsset', args),
3425
+ numAssets: (...args) => getRequest('numAssets', args),
3426
+ WETH: (...args) => getRequest('WETH', args),
3427
+ ETH: (...args) => getRequest('ETH', args),
3304
3428
  };
3305
3429
  function getMutation(functionName) {
3306
3430
  return {
3307
- contractName: 'Agent_v1',
3431
+ contractName: 'UserWalletV1',
3308
3432
  functionName,
3309
3433
  deployAddress,
3310
3434
  argsType: undefined,
@@ -3312,61 +3436,65 @@ function getMutation(functionName) {
3312
3436
  };
3313
3437
  }
3314
3438
  export const mutation = {
3315
- initialize: getMutation('initialize'),
3316
- depositTokens: getMutation('depositTokens'),
3317
- withdrawTokens: getMutation('withdrawTokens'),
3318
- rebalance: getMutation('rebalance'),
3439
+ transferFunds: getMutation('transferFunds'),
3440
+ depositForYield: getMutation('depositForYield'),
3441
+ withdrawFromYield: getMutation('withdrawFromYield'),
3442
+ rebalanceYieldPosition: getMutation('rebalanceYieldPosition'),
3319
3443
  swapTokens: getMutation('swapTokens'),
3444
+ mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
3445
+ confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
3446
+ addCollateral: getMutation('addCollateral'),
3447
+ removeCollateral: getMutation('removeCollateral'),
3320
3448
  borrow: getMutation('borrow'),
3321
3449
  repayDebt: getMutation('repayDebt'),
3322
- claimRewards: getMutation('claimRewards'),
3450
+ claimIncentives: getMutation('claimIncentives'),
3451
+ convertWethToEth: getMutation('convertWethToEth'),
3452
+ convertEthToWeth: getMutation('convertEthToWeth'),
3323
3453
  addLiquidity: getMutation('addLiquidity'),
3324
3454
  removeLiquidity: getMutation('removeLiquidity'),
3325
- transferFunds: getMutation('transferFunds'),
3326
- convertEthToWeth: getMutation('convertEthToWeth'),
3327
- convertWethToEth: getMutation('convertWethToEth'),
3328
- performBatchActions: getMutation('performBatchActions'),
3329
- changeOwnership: getMutation('changeOwnership'),
3330
- confirmOwnershipChange: getMutation('confirmOwnershipChange'),
3331
- cancelOwnershipChange: getMutation('cancelOwnershipChange'),
3332
- setOwnershipChangeDelay: getMutation('setOwnershipChangeDelay'),
3333
- recoverFunds: getMutation('recoverFunds'),
3455
+ addLiquidityConcentrated: getMutation('addLiquidityConcentrated'),
3456
+ removeLiquidityConcentrated: getMutation('removeLiquidityConcentrated'),
3457
+ updateAssetData: getMutation('updateAssetData'),
3458
+ deregisterAsset: getMutation('deregisterAsset'),
3459
+ recoverNft: getMutation('recoverNft'),
3460
+ setLegoAccessForAction: getMutation('setLegoAccessForAction'),
3334
3461
  };
3335
3462
  export function toSdk(deployAddress, publicClient, walletClient) {
3336
3463
  return {
3337
3464
  deployAddress,
3338
3465
  abi,
3339
3466
  // Queries
3467
+ onERC721Received: (...args) => singleQuery(publicClient, call.onERC721Received(...args).at(deployAddress)),
3340
3468
  apiVersion: (...args) => singleQuery(publicClient, call.apiVersion(...args).at(deployAddress)),
3341
- getSwapActionHash: (...args) => singleQuery(publicClient, call.getSwapActionHash(...args).at(deployAddress)),
3342
- getBatchActionHash: (...args) => singleQuery(publicClient, call.getBatchActionHash(...args).at(deployAddress)),
3343
- DOMAIN_SEPARATOR: (...args) => singleQuery(publicClient, call.DOMAIN_SEPARATOR(...args).at(deployAddress)),
3344
- initialized: (...args) => singleQuery(publicClient, call.initialized(...args).at(deployAddress)),
3345
- usedSignatures: (...args) => singleQuery(publicClient, call.usedSignatures(...args).at(deployAddress)),
3346
- owner: (...args) => singleQuery(publicClient, call.owner(...args).at(deployAddress)),
3347
- pendingOwner: (...args) => singleQuery(publicClient, call.pendingOwner(...args).at(deployAddress)),
3348
- ownershipChangeDelay: (...args) => singleQuery(publicClient, call.ownershipChangeDelay(...args).at(deployAddress)),
3349
- MIN_OWNER_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_OWNER_CHANGE_DELAY(...args).at(deployAddress)),
3350
- MAX_OWNER_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_OWNER_CHANGE_DELAY(...args).at(deployAddress)),
3469
+ walletConfig: (...args) => singleQuery(publicClient, call.walletConfig(...args).at(deployAddress)),
3470
+ assetData: (...args) => singleQuery(publicClient, call.assetData(...args).at(deployAddress)),
3471
+ assets: (...args) => singleQuery(publicClient, call.assets(...args).at(deployAddress)),
3472
+ indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args).at(deployAddress)),
3473
+ numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args).at(deployAddress)),
3474
+ WETH: (...args) => singleQuery(publicClient, call.WETH(...args).at(deployAddress)),
3475
+ ETH: (...args) => singleQuery(publicClient, call.ETH(...args).at(deployAddress)),
3351
3476
  // Mutations
3352
- initialize: (...args) => mutate(walletClient, mutation.initialize, { address: deployAddress })(...args),
3353
- depositTokens: (...args) => mutate(walletClient, mutation.depositTokens, { address: deployAddress })(...args),
3354
- withdrawTokens: (...args) => mutate(walletClient, mutation.withdrawTokens, { address: deployAddress })(...args),
3355
- rebalance: (...args) => mutate(walletClient, mutation.rebalance, { address: deployAddress })(...args),
3477
+ transferFunds: (...args) => mutate(walletClient, mutation.transferFunds, { address: deployAddress })(...args),
3478
+ depositForYield: (...args) => mutate(walletClient, mutation.depositForYield, { address: deployAddress })(...args),
3479
+ withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield, { address: deployAddress })(...args),
3480
+ rebalanceYieldPosition: (...args) => mutate(walletClient, mutation.rebalanceYieldPosition, { address: deployAddress })(...args),
3356
3481
  swapTokens: (...args) => mutate(walletClient, mutation.swapTokens, { address: deployAddress })(...args),
3482
+ mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset, { address: deployAddress })(...args),
3483
+ confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset, { address: deployAddress })(...args),
3484
+ addCollateral: (...args) => mutate(walletClient, mutation.addCollateral, { address: deployAddress })(...args),
3485
+ removeCollateral: (...args) => mutate(walletClient, mutation.removeCollateral, { address: deployAddress })(...args),
3357
3486
  borrow: (...args) => mutate(walletClient, mutation.borrow, { address: deployAddress })(...args),
3358
3487
  repayDebt: (...args) => mutate(walletClient, mutation.repayDebt, { address: deployAddress })(...args),
3359
- claimRewards: (...args) => mutate(walletClient, mutation.claimRewards, { address: deployAddress })(...args),
3488
+ claimIncentives: (...args) => mutate(walletClient, mutation.claimIncentives, { address: deployAddress })(...args),
3489
+ convertWethToEth: (...args) => mutate(walletClient, mutation.convertWethToEth, { address: deployAddress })(...args),
3490
+ convertEthToWeth: (...args) => mutate(walletClient, mutation.convertEthToWeth, { address: deployAddress })(...args),
3360
3491
  addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity, { address: deployAddress })(...args),
3361
3492
  removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity, { address: deployAddress })(...args),
3362
- transferFunds: (...args) => mutate(walletClient, mutation.transferFunds, { address: deployAddress })(...args),
3363
- convertEthToWeth: (...args) => mutate(walletClient, mutation.convertEthToWeth, { address: deployAddress })(...args),
3364
- convertWethToEth: (...args) => mutate(walletClient, mutation.convertWethToEth, { address: deployAddress })(...args),
3365
- performBatchActions: (...args) => mutate(walletClient, mutation.performBatchActions, { address: deployAddress })(...args),
3366
- changeOwnership: (...args) => mutate(walletClient, mutation.changeOwnership, { address: deployAddress })(...args),
3367
- confirmOwnershipChange: (...args) => mutate(walletClient, mutation.confirmOwnershipChange, { address: deployAddress })(...args),
3368
- cancelOwnershipChange: (...args) => mutate(walletClient, mutation.cancelOwnershipChange, { address: deployAddress })(...args),
3369
- setOwnershipChangeDelay: (...args) => mutate(walletClient, mutation.setOwnershipChangeDelay, { address: deployAddress })(...args),
3370
- recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds, { address: deployAddress })(...args),
3493
+ addLiquidityConcentrated: (...args) => mutate(walletClient, mutation.addLiquidityConcentrated, { address: deployAddress })(...args),
3494
+ removeLiquidityConcentrated: (...args) => mutate(walletClient, mutation.removeLiquidityConcentrated, { address: deployAddress })(...args),
3495
+ updateAssetData: (...args) => mutate(walletClient, mutation.updateAssetData, { address: deployAddress })(...args),
3496
+ deregisterAsset: (...args) => mutate(walletClient, mutation.deregisterAsset, { address: deployAddress })(...args),
3497
+ recoverNft: (...args) => mutate(walletClient, mutation.recoverNft, { address: deployAddress })(...args),
3498
+ setLegoAccessForAction: (...args) => mutate(walletClient, mutation.setLegoAccessForAction, { address: deployAddress })(...args),
3371
3499
  };
3372
3500
  }