@underscore-finance/sdk 1.0.11 → 1.1.2

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 (310) hide show
  1. package/dist/contracts/AaveV3.d.ts +603 -279
  2. package/dist/contracts/AaveV3.d.ts.map +1 -1
  3. package/dist/contracts/AaveV3.js +718 -331
  4. package/dist/contracts/AeroClassic.d.ts +4 -17
  5. package/dist/contracts/AeroClassic.d.ts.map +1 -1
  6. package/dist/contracts/AeroClassic.js +5 -24
  7. package/dist/contracts/AeroSlipstream.d.ts +4 -17
  8. package/dist/contracts/AeroSlipstream.d.ts.map +1 -1
  9. package/dist/contracts/AeroSlipstream.js +5 -24
  10. package/dist/contracts/Appraiser.d.ts +4 -0
  11. package/dist/contracts/Appraiser.d.ts.map +1 -1
  12. package/dist/contracts/Appraiser.js +5 -1
  13. package/dist/contracts/CompoundV3.d.ts +556 -246
  14. package/dist/contracts/CompoundV3.d.ts.map +1 -1
  15. package/dist/contracts/CompoundV3.js +695 -327
  16. package/dist/contracts/Curve.d.ts +4 -17
  17. package/dist/contracts/Curve.d.ts.map +1 -1
  18. package/dist/contracts/Curve.js +5 -24
  19. package/dist/contracts/Euler.d.ts +581 -253
  20. package/dist/contracts/Euler.d.ts.map +1 -1
  21. package/dist/contracts/Euler.js +714 -324
  22. package/dist/contracts/Fluid.d.ts +644 -302
  23. package/dist/contracts/Fluid.d.ts.map +1 -1
  24. package/dist/contracts/Fluid.js +743 -334
  25. package/dist/contracts/{Agent_v1.d.ts → FortyAcres.d.ts} +1516 -1699
  26. package/dist/contracts/FortyAcres.d.ts.map +1 -0
  27. package/dist/contracts/{AgentTemplate.js → FortyAcres.js} +1681 -1946
  28. package/dist/contracts/LegoBook.d.ts +7 -0
  29. package/dist/contracts/LegoBook.d.ts.map +1 -1
  30. package/dist/contracts/LegoBook.js +9 -1
  31. package/dist/contracts/LegoTools.d.ts +4 -0
  32. package/dist/contracts/LegoTools.d.ts.map +1 -1
  33. package/dist/contracts/LegoTools.js +5 -1
  34. package/dist/contracts/Moonwell.d.ts +582 -254
  35. package/dist/contracts/Moonwell.d.ts.map +1 -1
  36. package/dist/contracts/Moonwell.js +705 -315
  37. package/dist/contracts/Morpho.d.ts +580 -252
  38. package/dist/contracts/Morpho.d.ts.map +1 -1
  39. package/dist/contracts/Morpho.js +723 -333
  40. package/dist/contracts/RipeLego.d.ts +719 -363
  41. package/dist/contracts/RipeLego.d.ts.map +1 -1
  42. package/dist/contracts/RipeLego.js +839 -413
  43. package/dist/contracts/SignatureHelperV1.d.ts +229 -229
  44. package/dist/contracts/SignatureHelperV1.js +333 -333
  45. package/dist/contracts/SwitchboardCharlie.d.ts +1470 -0
  46. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -0
  47. package/dist/contracts/{v0_3_OracleRegistry.js → SwitchboardCharlie.js} +954 -691
  48. package/dist/contracts/{v0_1_Agent.d.ts → UnderscoreLego.d.ts} +1469 -1663
  49. package/dist/contracts/UnderscoreLego.d.ts.map +1 -0
  50. package/dist/contracts/{Agent_v1.js → UnderscoreLego.js} +1601 -1882
  51. package/dist/contracts/UndyBtc.d.ts +1487 -0
  52. package/dist/contracts/UndyBtc.d.ts.map +1 -0
  53. package/dist/contracts/{LegoUniswapV3.js → UndyBtc.js} +991 -754
  54. package/dist/contracts/UndyEth.d.ts +1487 -0
  55. package/dist/contracts/UndyEth.d.ts.map +1 -0
  56. package/dist/contracts/{v0_3_LegoUniswapV3.js → UndyEth.js} +991 -754
  57. package/dist/contracts/UndyRewardsLego.d.ts +3 -0
  58. package/dist/contracts/UndyRewardsLego.d.ts.map +1 -1
  59. package/dist/contracts/UndyRewardsLego.js +5 -1
  60. package/dist/contracts/UndyUsd.d.ts +1487 -0
  61. package/dist/contracts/UndyUsd.d.ts.map +1 -0
  62. package/dist/contracts/{LegoAeroSlipstream.js → UndyUsd.js} +1009 -725
  63. package/dist/contracts/UniswapV2.d.ts +4 -17
  64. package/dist/contracts/UniswapV2.d.ts.map +1 -1
  65. package/dist/contracts/UniswapV2.js +5 -24
  66. package/dist/contracts/UniswapV3.d.ts +4 -17
  67. package/dist/contracts/UniswapV3.d.ts.map +1 -1
  68. package/dist/contracts/UniswapV3.js +5 -24
  69. package/dist/contracts/VaultRegistry.d.ts +2265 -0
  70. package/dist/contracts/VaultRegistry.d.ts.map +1 -0
  71. package/dist/contracts/VaultRegistry.js +2848 -0
  72. package/dist/contracts/index.d.ts +7 -0
  73. package/dist/contracts/index.d.ts.map +1 -1
  74. package/dist/contracts/index.js +7 -0
  75. package/dist/contracts/sdk.d.ts +14 -0
  76. package/dist/contracts/sdk.d.ts.map +1 -1
  77. package/dist/contracts/sdk.js +14 -0
  78. package/dist/getContracts.d.ts +1 -0
  79. package/dist/getContracts.d.ts.map +1 -1
  80. package/dist/getContracts.js +1 -0
  81. package/package.json +1 -1
  82. package/dist/contracts/AddyRegistry.d.ts +0 -1109
  83. package/dist/contracts/AddyRegistry.d.ts.map +0 -1
  84. package/dist/contracts/AddyRegistry.js +0 -1392
  85. package/dist/contracts/AddyRegistry_v1.d.ts +0 -473
  86. package/dist/contracts/AddyRegistry_v1.d.ts.map +0 -1
  87. package/dist/contracts/AddyRegistry_v1.js +0 -594
  88. package/dist/contracts/AddyRegistry_v2.d.ts +0 -1050
  89. package/dist/contracts/AddyRegistry_v2.d.ts.map +0 -1
  90. package/dist/contracts/AddyRegistry_v2.js +0 -1313
  91. package/dist/contracts/AgentFactory.d.ts +0 -1665
  92. package/dist/contracts/AgentFactory.d.ts.map +0 -1
  93. package/dist/contracts/AgentFactory.js +0 -2078
  94. package/dist/contracts/AgentFactory_v1.d.ts +0 -1054
  95. package/dist/contracts/AgentFactory_v1.d.ts.map +0 -1
  96. package/dist/contracts/AgentFactory_v1.js +0 -1336
  97. package/dist/contracts/AgentFactory_v2.d.ts +0 -1275
  98. package/dist/contracts/AgentFactory_v2.d.ts.map +0 -1
  99. package/dist/contracts/AgentFactory_v2.js +0 -1609
  100. package/dist/contracts/AgentTemplate.d.ts +0 -2629
  101. package/dist/contracts/AgentTemplate.d.ts.map +0 -1
  102. package/dist/contracts/Agent_v1.d.ts.map +0 -1
  103. package/dist/contracts/Agent_v2.d.ts +0 -2709
  104. package/dist/contracts/Agent_v2.d.ts.map +0 -1
  105. package/dist/contracts/Agent_v2.js +0 -3458
  106. package/dist/contracts/ChainlinkFeeds.d.ts +0 -706
  107. package/dist/contracts/ChainlinkFeeds.d.ts.map +0 -1
  108. package/dist/contracts/ChainlinkFeeds.js +0 -900
  109. package/dist/contracts/LegoAaveV3.d.ts +0 -1033
  110. package/dist/contracts/LegoAaveV3.d.ts.map +0 -1
  111. package/dist/contracts/LegoAaveV3.js +0 -1330
  112. package/dist/contracts/LegoAeroClassic.d.ts +0 -1204
  113. package/dist/contracts/LegoAeroClassic.d.ts.map +0 -1
  114. package/dist/contracts/LegoAeroClassic.js +0 -1546
  115. package/dist/contracts/LegoAeroSlipstream.d.ts +0 -1300
  116. package/dist/contracts/LegoAeroSlipstream.d.ts.map +0 -1
  117. package/dist/contracts/LegoCommon.d.ts +0 -164
  118. package/dist/contracts/LegoCommon.d.ts.map +0 -1
  119. package/dist/contracts/LegoCommon.js +0 -202
  120. package/dist/contracts/LegoCompoundV3.d.ts +0 -1060
  121. package/dist/contracts/LegoCompoundV3.d.ts.map +0 -1
  122. package/dist/contracts/LegoCompoundV3.js +0 -1365
  123. package/dist/contracts/LegoCredit.d.ts +0 -140
  124. package/dist/contracts/LegoCredit.d.ts.map +0 -1
  125. package/dist/contracts/LegoCredit.js +0 -179
  126. package/dist/contracts/LegoCurve.d.ts +0 -1189
  127. package/dist/contracts/LegoCurve.d.ts.map +0 -1
  128. package/dist/contracts/LegoCurve.js +0 -1519
  129. package/dist/contracts/LegoDex.d.ts +0 -587
  130. package/dist/contracts/LegoDex.d.ts.map +0 -1
  131. package/dist/contracts/LegoDex.js +0 -774
  132. package/dist/contracts/LegoEuler.d.ts +0 -1074
  133. package/dist/contracts/LegoEuler.d.ts.map +0 -1
  134. package/dist/contracts/LegoEuler.js +0 -1383
  135. package/dist/contracts/LegoFluid.d.ts +0 -1025
  136. package/dist/contracts/LegoFluid.d.ts.map +0 -1
  137. package/dist/contracts/LegoFluid.js +0 -1320
  138. package/dist/contracts/LegoHelper.d.ts +0 -1563
  139. package/dist/contracts/LegoHelper.d.ts.map +0 -1
  140. package/dist/contracts/LegoHelper.js +0 -1947
  141. package/dist/contracts/LegoMoonwell.d.ts +0 -1042
  142. package/dist/contracts/LegoMoonwell.d.ts.map +0 -1
  143. package/dist/contracts/LegoMoonwell.js +0 -1342
  144. package/dist/contracts/LegoMorpho.d.ts +0 -1074
  145. package/dist/contracts/LegoMorpho.d.ts.map +0 -1
  146. package/dist/contracts/LegoMorpho.js +0 -1383
  147. package/dist/contracts/LegoRegistry.d.ts +0 -1079
  148. package/dist/contracts/LegoRegistry.d.ts.map +0 -1
  149. package/dist/contracts/LegoRegistry.js +0 -1368
  150. package/dist/contracts/LegoSky.d.ts +0 -923
  151. package/dist/contracts/LegoSky.d.ts.map +0 -1
  152. package/dist/contracts/LegoSky.js +0 -1180
  153. package/dist/contracts/LegoUniswapV0_2.d.ts +0 -1204
  154. package/dist/contracts/LegoUniswapV0_2.d.ts.map +0 -1
  155. package/dist/contracts/LegoUniswapV0_2.js +0 -1546
  156. package/dist/contracts/LegoUniswapV2.d.ts +0 -1204
  157. package/dist/contracts/LegoUniswapV2.d.ts.map +0 -1
  158. package/dist/contracts/LegoUniswapV2.js +0 -1546
  159. package/dist/contracts/LegoUniswapV3.d.ts +0 -1338
  160. package/dist/contracts/LegoUniswapV3.d.ts.map +0 -1
  161. package/dist/contracts/LegoYield.d.ts +0 -390
  162. package/dist/contracts/LegoYield.d.ts.map +0 -1
  163. package/dist/contracts/LegoYield.js +0 -511
  164. package/dist/contracts/OracleParser.d.ts +0 -207
  165. package/dist/contracts/OracleParser.d.ts.map +0 -1
  166. package/dist/contracts/OracleParser.js +0 -264
  167. package/dist/contracts/OracleRegistry.d.ts +0 -1221
  168. package/dist/contracts/OracleRegistry.d.ts.map +0 -1
  169. package/dist/contracts/OracleRegistry.js +0 -1562
  170. package/dist/contracts/PriceSheets.d.ts +0 -1127
  171. package/dist/contracts/PriceSheets.d.ts.map +0 -1
  172. package/dist/contracts/PriceSheets.js +0 -1383
  173. package/dist/contracts/PythFeeds.d.ts +0 -640
  174. package/dist/contracts/PythFeeds.d.ts.map +0 -1
  175. package/dist/contracts/PythFeeds.js +0 -813
  176. package/dist/contracts/StorkFeeds.d.ts +0 -640
  177. package/dist/contracts/StorkFeeds.d.ts.map +0 -1
  178. package/dist/contracts/StorkFeeds.js +0 -813
  179. package/dist/contracts/UserWalletConfig_v1.d.ts +0 -1400
  180. package/dist/contracts/UserWalletConfig_v1.d.ts.map +0 -1
  181. package/dist/contracts/UserWalletConfig_v1.js +0 -1676
  182. package/dist/contracts/UserWalletConfig_v2.d.ts +0 -1468
  183. package/dist/contracts/UserWalletConfig_v2.d.ts.map +0 -1
  184. package/dist/contracts/UserWalletConfig_v2.js +0 -1764
  185. package/dist/contracts/UserWallet_v1.d.ts +0 -1980
  186. package/dist/contracts/UserWallet_v1.d.ts.map +0 -1
  187. package/dist/contracts/UserWallet_v1.js +0 -2581
  188. package/dist/contracts/UserWallet_v2.d.ts +0 -1958
  189. package/dist/contracts/UserWallet_v2.d.ts.map +0 -1
  190. package/dist/contracts/UserWallet_v2.js +0 -2553
  191. package/dist/contracts/WalletConfig.d.ts +0 -1398
  192. package/dist/contracts/WalletConfig.d.ts.map +0 -1
  193. package/dist/contracts/WalletConfig.js +0 -1674
  194. package/dist/contracts/WalletFunds.d.ts +0 -1978
  195. package/dist/contracts/WalletFunds.d.ts.map +0 -1
  196. package/dist/contracts/WalletFunds.js +0 -2579
  197. package/dist/contracts/v0_1_AddyRegistry.d.ts +0 -473
  198. package/dist/contracts/v0_1_AddyRegistry.d.ts.map +0 -1
  199. package/dist/contracts/v0_1_AddyRegistry.js +0 -594
  200. package/dist/contracts/v0_1_Agent.d.ts.map +0 -1
  201. package/dist/contracts/v0_1_Agent.js +0 -3372
  202. package/dist/contracts/v0_1_AgentFactory.d.ts +0 -1054
  203. package/dist/contracts/v0_1_AgentFactory.d.ts.map +0 -1
  204. package/dist/contracts/v0_1_AgentFactory.js +0 -1336
  205. package/dist/contracts/v0_1_UserWallet.d.ts +0 -1980
  206. package/dist/contracts/v0_1_UserWallet.d.ts.map +0 -1
  207. package/dist/contracts/v0_1_UserWallet.js +0 -2581
  208. package/dist/contracts/v0_1_UserWalletConfig.d.ts +0 -1400
  209. package/dist/contracts/v0_1_UserWalletConfig.d.ts.map +0 -1
  210. package/dist/contracts/v0_1_UserWalletConfig.js +0 -1676
  211. package/dist/contracts/v0_2_AddyRegistry.d.ts +0 -1050
  212. package/dist/contracts/v0_2_AddyRegistry.d.ts.map +0 -1
  213. package/dist/contracts/v0_2_AddyRegistry.js +0 -1313
  214. package/dist/contracts/v0_2_Agent.d.ts +0 -2709
  215. package/dist/contracts/v0_2_Agent.d.ts.map +0 -1
  216. package/dist/contracts/v0_2_Agent.js +0 -3458
  217. package/dist/contracts/v0_2_AgentFactory.d.ts +0 -1275
  218. package/dist/contracts/v0_2_AgentFactory.d.ts.map +0 -1
  219. package/dist/contracts/v0_2_AgentFactory.js +0 -1609
  220. package/dist/contracts/v0_2_UserWallet.d.ts +0 -1958
  221. package/dist/contracts/v0_2_UserWallet.d.ts.map +0 -1
  222. package/dist/contracts/v0_2_UserWallet.js +0 -2553
  223. package/dist/contracts/v0_2_UserWalletConfig.d.ts +0 -1468
  224. package/dist/contracts/v0_2_UserWalletConfig.d.ts.map +0 -1
  225. package/dist/contracts/v0_2_UserWalletConfig.js +0 -1764
  226. package/dist/contracts/v0_3_AddyRegistry.d.ts +0 -1109
  227. package/dist/contracts/v0_3_AddyRegistry.d.ts.map +0 -1
  228. package/dist/contracts/v0_3_AddyRegistry.js +0 -1392
  229. package/dist/contracts/v0_3_Agent.d.ts +0 -2709
  230. package/dist/contracts/v0_3_Agent.d.ts.map +0 -1
  231. package/dist/contracts/v0_3_Agent.js +0 -3458
  232. package/dist/contracts/v0_3_AgentFactory.d.ts +0 -1665
  233. package/dist/contracts/v0_3_AgentFactory.d.ts.map +0 -1
  234. package/dist/contracts/v0_3_AgentFactory.js +0 -2078
  235. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts +0 -706
  236. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts.map +0 -1
  237. package/dist/contracts/v0_3_ChainlinkFeeds.js +0 -900
  238. package/dist/contracts/v0_3_LegoAaveV3.d.ts +0 -1033
  239. package/dist/contracts/v0_3_LegoAaveV3.d.ts.map +0 -1
  240. package/dist/contracts/v0_3_LegoAaveV3.js +0 -1330
  241. package/dist/contracts/v0_3_LegoAeroClassic.d.ts +0 -1204
  242. package/dist/contracts/v0_3_LegoAeroClassic.d.ts.map +0 -1
  243. package/dist/contracts/v0_3_LegoAeroClassic.js +0 -1546
  244. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts +0 -1300
  245. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts.map +0 -1
  246. package/dist/contracts/v0_3_LegoAeroSlipstream.js +0 -1671
  247. package/dist/contracts/v0_3_LegoCommon.d.ts +0 -164
  248. package/dist/contracts/v0_3_LegoCommon.d.ts.map +0 -1
  249. package/dist/contracts/v0_3_LegoCommon.js +0 -202
  250. package/dist/contracts/v0_3_LegoCompoundV3.d.ts +0 -1060
  251. package/dist/contracts/v0_3_LegoCompoundV3.d.ts.map +0 -1
  252. package/dist/contracts/v0_3_LegoCompoundV3.js +0 -1365
  253. package/dist/contracts/v0_3_LegoCredit.d.ts +0 -140
  254. package/dist/contracts/v0_3_LegoCredit.d.ts.map +0 -1
  255. package/dist/contracts/v0_3_LegoCredit.js +0 -179
  256. package/dist/contracts/v0_3_LegoCurve.d.ts +0 -1189
  257. package/dist/contracts/v0_3_LegoCurve.d.ts.map +0 -1
  258. package/dist/contracts/v0_3_LegoCurve.js +0 -1519
  259. package/dist/contracts/v0_3_LegoDex.d.ts +0 -587
  260. package/dist/contracts/v0_3_LegoDex.d.ts.map +0 -1
  261. package/dist/contracts/v0_3_LegoDex.js +0 -774
  262. package/dist/contracts/v0_3_LegoEuler.d.ts +0 -1074
  263. package/dist/contracts/v0_3_LegoEuler.d.ts.map +0 -1
  264. package/dist/contracts/v0_3_LegoEuler.js +0 -1383
  265. package/dist/contracts/v0_3_LegoFluid.d.ts +0 -1025
  266. package/dist/contracts/v0_3_LegoFluid.d.ts.map +0 -1
  267. package/dist/contracts/v0_3_LegoFluid.js +0 -1320
  268. package/dist/contracts/v0_3_LegoHelper.d.ts +0 -1563
  269. package/dist/contracts/v0_3_LegoHelper.d.ts.map +0 -1
  270. package/dist/contracts/v0_3_LegoHelper.js +0 -1947
  271. package/dist/contracts/v0_3_LegoMoonwell.d.ts +0 -1042
  272. package/dist/contracts/v0_3_LegoMoonwell.d.ts.map +0 -1
  273. package/dist/contracts/v0_3_LegoMoonwell.js +0 -1342
  274. package/dist/contracts/v0_3_LegoMorpho.d.ts +0 -1074
  275. package/dist/contracts/v0_3_LegoMorpho.d.ts.map +0 -1
  276. package/dist/contracts/v0_3_LegoMorpho.js +0 -1383
  277. package/dist/contracts/v0_3_LegoRegistry.d.ts +0 -1079
  278. package/dist/contracts/v0_3_LegoRegistry.d.ts.map +0 -1
  279. package/dist/contracts/v0_3_LegoRegistry.js +0 -1368
  280. package/dist/contracts/v0_3_LegoSky.d.ts +0 -923
  281. package/dist/contracts/v0_3_LegoSky.d.ts.map +0 -1
  282. package/dist/contracts/v0_3_LegoSky.js +0 -1180
  283. package/dist/contracts/v0_3_LegoUniswapV3.d.ts +0 -1338
  284. package/dist/contracts/v0_3_LegoUniswapV3.d.ts.map +0 -1
  285. package/dist/contracts/v0_3_LegoYield.d.ts +0 -390
  286. package/dist/contracts/v0_3_LegoYield.d.ts.map +0 -1
  287. package/dist/contracts/v0_3_LegoYield.js +0 -511
  288. package/dist/contracts/v0_3_OracleParser.d.ts +0 -207
  289. package/dist/contracts/v0_3_OracleParser.d.ts.map +0 -1
  290. package/dist/contracts/v0_3_OracleParser.js +0 -264
  291. package/dist/contracts/v0_3_OracleRegistry.d.ts +0 -1221
  292. package/dist/contracts/v0_3_OracleRegistry.d.ts.map +0 -1
  293. package/dist/contracts/v0_3_PriceSheets.d.ts +0 -1127
  294. package/dist/contracts/v0_3_PriceSheets.d.ts.map +0 -1
  295. package/dist/contracts/v0_3_PriceSheets.js +0 -1383
  296. package/dist/contracts/v0_3_PythFeeds.d.ts +0 -640
  297. package/dist/contracts/v0_3_PythFeeds.d.ts.map +0 -1
  298. package/dist/contracts/v0_3_PythFeeds.js +0 -813
  299. package/dist/contracts/v0_3_StorkFeeds.d.ts +0 -640
  300. package/dist/contracts/v0_3_StorkFeeds.d.ts.map +0 -1
  301. package/dist/contracts/v0_3_StorkFeeds.js +0 -813
  302. package/dist/contracts/v0_3_UserWallet.d.ts +0 -1975
  303. package/dist/contracts/v0_3_UserWallet.d.ts.map +0 -1
  304. package/dist/contracts/v0_3_UserWallet.js +0 -2577
  305. package/dist/contracts/v0_3_UserWalletConfig.d.ts +0 -1852
  306. package/dist/contracts/v0_3_UserWalletConfig.d.ts.map +0 -1
  307. package/dist/contracts/v0_3_UserWalletConfig.js +0 -2263
  308. package/dist/getLegacyContracts.d.ts +0 -69
  309. package/dist/getLegacyContracts.d.ts.map +0 -1
  310. package/dist/getLegacyContracts.js +0 -55
@@ -5,602 +5,644 @@
5
5
  import { singleQuery, mutate } from '@dappql/async';
6
6
  export const abi = [
7
7
  {
8
- anonymous: false,
8
+ name: 'Deposit',
9
9
  inputs: [
10
10
  {
11
- indexed: true,
12
11
  name: 'sender',
13
12
  type: 'address',
14
- },
15
- {
16
13
  indexed: true,
17
- name: 'tokenIn',
18
- type: 'address',
19
14
  },
20
15
  {
21
- indexed: true,
22
- name: 'tokenOut',
16
+ name: 'owner',
23
17
  type: 'address',
18
+ indexed: true,
24
19
  },
25
20
  {
26
- indexed: false,
27
- name: 'amountIn',
28
- type: 'uint256',
29
- },
30
- {
31
- indexed: false,
32
- name: 'amountOut',
21
+ name: 'assets',
33
22
  type: 'uint256',
34
- },
35
- {
36
23
  indexed: false,
37
- name: 'usdValue',
38
- type: 'uint256',
39
24
  },
40
25
  {
41
- indexed: false,
42
- name: 'numTokens',
26
+ name: 'shares',
43
27
  type: 'uint256',
44
- },
45
- {
46
28
  indexed: false,
47
- name: 'recipient',
48
- type: 'address',
49
29
  },
50
30
  ],
51
- name: 'UniswapV3Swap',
31
+ anonymous: false,
52
32
  type: 'event',
53
33
  },
54
34
  {
55
- anonymous: false,
35
+ name: 'Withdraw',
56
36
  inputs: [
57
37
  {
58
- indexed: true,
59
38
  name: 'sender',
60
39
  type: 'address',
61
- },
62
- {
63
40
  indexed: true,
64
- name: 'pool',
65
- type: 'address',
66
41
  },
67
42
  {
68
- indexed: true,
69
- name: 'tokenIn',
43
+ name: 'receiver',
70
44
  type: 'address',
45
+ indexed: true,
71
46
  },
72
47
  {
73
- indexed: false,
74
- name: 'tokenOut',
48
+ name: 'owner',
75
49
  type: 'address',
50
+ indexed: true,
76
51
  },
77
52
  {
78
- indexed: false,
79
- name: 'amountIn',
53
+ name: 'assets',
80
54
  type: 'uint256',
81
- },
82
- {
83
55
  indexed: false,
84
- name: 'amountOut',
85
- type: 'uint256',
86
56
  },
87
57
  {
88
- indexed: false,
89
- name: 'usdValue',
58
+ name: 'shares',
90
59
  type: 'uint256',
91
- },
92
- {
93
60
  indexed: false,
94
- name: 'recipient',
95
- type: 'address',
96
61
  },
97
62
  ],
98
- name: 'UniswapV3SwapInPool',
63
+ anonymous: false,
99
64
  type: 'event',
100
65
  },
101
66
  {
102
- anonymous: false,
67
+ name: 'Transfer',
103
68
  inputs: [
104
69
  {
105
- indexed: true,
106
70
  name: 'sender',
107
71
  type: 'address',
108
- },
109
- {
110
72
  indexed: true,
111
- name: 'tokenA',
112
- type: 'address',
113
73
  },
114
74
  {
115
- indexed: true,
116
- name: 'tokenB',
75
+ name: 'recipient',
117
76
  type: 'address',
77
+ indexed: true,
118
78
  },
119
79
  {
120
- indexed: false,
121
- name: 'amountA',
80
+ name: 'amount',
122
81
  type: 'uint256',
82
+ indexed: false,
123
83
  },
84
+ ],
85
+ anonymous: false,
86
+ type: 'event',
87
+ },
88
+ {
89
+ name: 'Approval',
90
+ inputs: [
124
91
  {
125
- indexed: false,
126
- name: 'amountB',
127
- type: 'uint256',
92
+ name: 'owner',
93
+ type: 'address',
94
+ indexed: true,
128
95
  },
129
96
  {
130
- indexed: false,
131
- name: 'liquidityAdded',
132
- type: 'uint256',
97
+ name: 'spender',
98
+ type: 'address',
99
+ indexed: true,
133
100
  },
134
101
  {
135
- indexed: false,
136
- name: 'nftTokenId',
102
+ name: 'amount',
137
103
  type: 'uint256',
104
+ indexed: false,
138
105
  },
106
+ ],
107
+ anonymous: false,
108
+ type: 'event',
109
+ },
110
+ {
111
+ name: 'BlacklistModified',
112
+ inputs: [
139
113
  {
140
- indexed: false,
141
- name: 'usdValue',
142
- type: 'uint256',
114
+ name: 'addr',
115
+ type: 'address',
116
+ indexed: true,
143
117
  },
144
118
  {
119
+ name: 'isBlacklisted',
120
+ type: 'bool',
145
121
  indexed: false,
146
- name: 'recipient',
147
- type: 'address',
148
122
  },
149
123
  ],
150
- name: 'UniswapV3LiquidityAdded',
124
+ anonymous: false,
151
125
  type: 'event',
152
126
  },
153
127
  {
154
- anonymous: false,
128
+ name: 'TokenPauseModified',
155
129
  inputs: [
156
130
  {
131
+ name: 'isPaused',
132
+ type: 'bool',
157
133
  indexed: false,
158
- name: 'sender',
159
- type: 'address',
160
- },
161
- {
162
- indexed: true,
163
- name: 'pool',
164
- type: 'address',
165
134
  },
135
+ ],
136
+ anonymous: false,
137
+ type: 'event',
138
+ },
139
+ {
140
+ name: 'EarnVaultAction',
141
+ inputs: [
166
142
  {
143
+ name: 'op',
144
+ type: 'uint8',
167
145
  indexed: false,
168
- name: 'nftTokenId',
169
- type: 'uint256',
170
146
  },
171
147
  {
172
- indexed: true,
173
- name: 'tokenA',
148
+ name: 'asset1',
174
149
  type: 'address',
150
+ indexed: true,
175
151
  },
176
152
  {
177
- indexed: true,
178
- name: 'tokenB',
153
+ name: 'asset2',
179
154
  type: 'address',
155
+ indexed: true,
180
156
  },
181
157
  {
182
- indexed: false,
183
- name: 'amountA',
158
+ name: 'amount1',
184
159
  type: 'uint256',
185
- },
186
- {
187
160
  indexed: false,
188
- name: 'amountB',
189
- type: 'uint256',
190
161
  },
191
162
  {
192
- indexed: false,
193
- name: 'liquidityRemoved',
163
+ name: 'amount2',
194
164
  type: 'uint256',
165
+ indexed: false,
195
166
  },
196
167
  {
197
- indexed: false,
198
168
  name: 'usdValue',
199
169
  type: 'uint256',
170
+ indexed: false,
200
171
  },
201
172
  {
173
+ name: 'legoId',
174
+ type: 'uint256',
202
175
  indexed: false,
203
- name: 'recipient',
176
+ },
177
+ {
178
+ name: 'signer',
204
179
  type: 'address',
180
+ indexed: true,
205
181
  },
206
182
  ],
207
- name: 'UniswapV3LiquidityRemoved',
183
+ anonymous: false,
208
184
  type: 'event',
209
185
  },
210
186
  {
211
- anonymous: false,
187
+ name: 'PerformanceFeesClaimed',
212
188
  inputs: [
213
189
  {
214
- indexed: true,
215
- name: 'asset',
216
- type: 'address',
217
- },
218
- {
219
- indexed: true,
220
- name: 'recipient',
221
- type: 'address',
222
- },
223
- {
224
- indexed: false,
225
- name: 'amount',
190
+ name: 'pendingFees',
226
191
  type: 'uint256',
192
+ indexed: false,
227
193
  },
228
194
  ],
229
- name: 'UniV3FundsRecovered',
195
+ anonymous: false,
230
196
  type: 'event',
231
197
  },
232
198
  {
233
- anonymous: false,
234
- inputs: [
199
+ stateMutability: 'view',
200
+ type: 'function',
201
+ name: 'name',
202
+ inputs: [],
203
+ outputs: [
235
204
  {
236
- indexed: true,
237
- name: 'pool',
238
- type: 'address',
205
+ name: '',
206
+ type: 'string',
239
207
  },
240
208
  ],
241
- name: 'UniV3CoreRouterPoolSet',
242
- type: 'event',
243
209
  },
244
210
  {
245
- anonymous: false,
246
- inputs: [
247
- {
248
- indexed: true,
249
- name: 'collection',
250
- type: 'address',
251
- },
211
+ stateMutability: 'view',
212
+ type: 'function',
213
+ name: 'symbol',
214
+ inputs: [],
215
+ outputs: [
252
216
  {
253
- indexed: false,
254
- name: 'nftTokenId',
255
- type: 'uint256',
217
+ name: '',
218
+ type: 'string',
256
219
  },
220
+ ],
221
+ },
222
+ {
223
+ stateMutability: 'view',
224
+ type: 'function',
225
+ name: 'decimals',
226
+ inputs: [],
227
+ outputs: [
257
228
  {
258
- indexed: true,
259
- name: 'recipient',
260
- type: 'address',
229
+ name: '',
230
+ type: 'uint8',
261
231
  },
262
232
  ],
263
- name: 'UniV3NftRecovered',
264
- type: 'event',
265
233
  },
266
234
  {
267
- anonymous: false,
235
+ stateMutability: 'nonpayable',
236
+ type: 'function',
237
+ name: 'transfer',
268
238
  inputs: [
269
239
  {
270
- indexed: false,
271
- name: 'legoId',
240
+ name: '_recipient',
241
+ type: 'address',
242
+ },
243
+ {
244
+ name: '_amount',
272
245
  type: 'uint256',
273
246
  },
274
247
  ],
275
- name: 'UniswapV3LegoIdSet',
276
- type: 'event',
277
- },
278
- {
279
- anonymous: false,
280
- inputs: [
248
+ outputs: [
281
249
  {
282
- indexed: false,
283
- name: 'isActivated',
250
+ name: '',
284
251
  type: 'bool',
285
252
  },
286
253
  ],
287
- name: 'UniswapV3Activated',
288
- type: 'event',
289
254
  },
290
255
  {
291
- anonymous: false,
256
+ stateMutability: 'nonpayable',
257
+ type: 'function',
258
+ name: 'transferFrom',
292
259
  inputs: [
293
260
  {
294
- indexed: true,
295
- name: 'prevGov',
261
+ name: '_sender',
296
262
  type: 'address',
297
263
  },
298
264
  {
299
- indexed: true,
300
- name: 'newGov',
265
+ name: '_recipient',
301
266
  type: 'address',
302
267
  },
303
268
  {
304
- indexed: false,
305
- name: 'confirmBlock',
269
+ name: '_amount',
306
270
  type: 'uint256',
307
271
  },
308
272
  ],
309
- name: 'GovChangeInitiated',
310
- type: 'event',
273
+ outputs: [
274
+ {
275
+ name: '',
276
+ type: 'bool',
277
+ },
278
+ ],
311
279
  },
312
280
  {
313
- anonymous: false,
281
+ stateMutability: 'nonpayable',
282
+ type: 'function',
283
+ name: 'approve',
314
284
  inputs: [
315
285
  {
316
- indexed: true,
317
- name: 'prevGov',
318
- type: 'address',
319
- },
320
- {
321
- indexed: true,
322
- name: 'newGov',
286
+ name: '_spender',
323
287
  type: 'address',
324
288
  },
325
289
  {
326
- indexed: false,
327
- name: 'initiatedBlock',
290
+ name: '_amount',
328
291
  type: 'uint256',
329
292
  },
293
+ ],
294
+ outputs: [
330
295
  {
331
- indexed: false,
332
- name: 'confirmBlock',
333
- type: 'uint256',
296
+ name: '',
297
+ type: 'bool',
334
298
  },
335
299
  ],
336
- name: 'GovChangeConfirmed',
337
- type: 'event',
338
300
  },
339
301
  {
340
- anonymous: false,
302
+ stateMutability: 'nonpayable',
303
+ type: 'function',
304
+ name: 'increaseAllowance',
341
305
  inputs: [
342
306
  {
343
- indexed: true,
344
- name: 'cancelledGov',
307
+ name: '_spender',
345
308
  type: 'address',
346
309
  },
347
310
  {
348
- indexed: false,
349
- name: 'initiatedBlock',
311
+ name: '_amount',
350
312
  type: 'uint256',
351
313
  },
314
+ ],
315
+ outputs: [
352
316
  {
353
- indexed: false,
354
- name: 'confirmBlock',
355
- type: 'uint256',
317
+ name: '',
318
+ type: 'bool',
356
319
  },
357
320
  ],
358
- name: 'GovChangeCancelled',
359
- type: 'event',
360
321
  },
361
322
  {
362
- anonymous: false,
323
+ stateMutability: 'nonpayable',
324
+ type: 'function',
325
+ name: 'decreaseAllowance',
363
326
  inputs: [
364
327
  {
365
- indexed: false,
366
- name: 'delayBlocks',
328
+ name: '_spender',
329
+ type: 'address',
330
+ },
331
+ {
332
+ name: '_amount',
367
333
  type: 'uint256',
368
334
  },
369
335
  ],
370
- name: 'GovChangeDelaySet',
371
- type: 'event',
336
+ outputs: [
337
+ {
338
+ name: '',
339
+ type: 'bool',
340
+ },
341
+ ],
372
342
  },
373
343
  {
344
+ stateMutability: 'nonpayable',
345
+ type: 'function',
346
+ name: 'burn',
374
347
  inputs: [
375
348
  {
376
- name: '_address',
377
- type: 'address',
349
+ name: '_amount',
350
+ type: 'uint256',
378
351
  },
379
352
  ],
380
- name: 'canGovern',
381
353
  outputs: [
382
354
  {
383
355
  name: '',
384
356
  type: 'bool',
385
357
  },
386
358
  ],
387
- stateMutability: 'view',
388
- type: 'function',
389
359
  },
390
360
  {
361
+ stateMutability: 'view',
362
+ type: 'function',
363
+ name: 'DOMAIN_SEPARATOR',
391
364
  inputs: [],
392
- name: 'hasPendingGovChange',
393
365
  outputs: [
394
366
  {
395
367
  name: '',
396
- type: 'bool',
368
+ type: 'bytes32',
397
369
  },
398
370
  ],
399
- stateMutability: 'view',
400
- type: 'function',
401
371
  },
402
372
  {
373
+ stateMutability: 'nonpayable',
374
+ type: 'function',
375
+ name: 'permit',
403
376
  inputs: [
404
377
  {
405
- name: '_newGov',
378
+ name: '_owner',
379
+ type: 'address',
380
+ },
381
+ {
382
+ name: '_spender',
406
383
  type: 'address',
407
384
  },
385
+ {
386
+ name: '_value',
387
+ type: 'uint256',
388
+ },
389
+ {
390
+ name: '_deadline',
391
+ type: 'uint256',
392
+ },
393
+ {
394
+ name: '_signature',
395
+ type: 'bytes',
396
+ },
397
+ ],
398
+ outputs: [
399
+ {
400
+ name: '',
401
+ type: 'bool',
402
+ },
408
403
  ],
409
- name: 'changeGovernance',
410
- outputs: [],
411
- stateMutability: 'nonpayable',
412
- type: 'function',
413
404
  },
414
405
  {
415
- inputs: [],
416
- name: 'confirmGovernanceChange',
417
- outputs: [],
418
406
  stateMutability: 'nonpayable',
419
407
  type: 'function',
408
+ name: 'setBlacklist',
409
+ inputs: [
410
+ {
411
+ name: '_addr',
412
+ type: 'address',
413
+ },
414
+ {
415
+ name: '_shouldBlacklist',
416
+ type: 'bool',
417
+ },
418
+ ],
419
+ outputs: [
420
+ {
421
+ name: '',
422
+ type: 'bool',
423
+ },
424
+ ],
420
425
  },
421
426
  {
422
- inputs: [],
423
- name: 'cancelGovernanceChange',
424
- outputs: [],
425
427
  stateMutability: 'nonpayable',
426
428
  type: 'function',
429
+ name: 'burnBlacklistTokens',
430
+ inputs: [
431
+ {
432
+ name: '_addr',
433
+ type: 'address',
434
+ },
435
+ ],
436
+ outputs: [
437
+ {
438
+ name: '',
439
+ type: 'bool',
440
+ },
441
+ ],
427
442
  },
428
443
  {
444
+ stateMutability: 'nonpayable',
445
+ type: 'function',
446
+ name: 'burnBlacklistTokens',
429
447
  inputs: [
430
448
  {
431
- name: '_numBlocks',
449
+ name: '_addr',
450
+ type: 'address',
451
+ },
452
+ {
453
+ name: '_amount',
432
454
  type: 'uint256',
433
455
  },
434
456
  ],
435
- name: 'setGovernanceChangeDelay',
436
- outputs: [],
437
- stateMutability: 'nonpayable',
438
- type: 'function',
439
- },
440
- {
441
- inputs: [],
442
- name: 'governance',
443
457
  outputs: [
444
458
  {
445
459
  name: '',
446
- type: 'address',
460
+ type: 'bool',
447
461
  },
448
462
  ],
449
- stateMutability: 'view',
463
+ },
464
+ {
465
+ stateMutability: 'nonpayable',
450
466
  type: 'function',
467
+ name: 'pause',
468
+ inputs: [
469
+ {
470
+ name: '_shouldPause',
471
+ type: 'bool',
472
+ },
473
+ ],
474
+ outputs: [],
451
475
  },
452
476
  {
477
+ stateMutability: 'view',
478
+ type: 'function',
479
+ name: 'undyHq',
453
480
  inputs: [],
454
- name: 'pendingGov',
455
481
  outputs: [
456
482
  {
457
- components: [
458
- {
459
- name: 'newGov',
460
- type: 'address',
461
- },
462
- {
463
- name: 'initiatedBlock',
464
- type: 'uint256',
465
- },
466
- {
467
- name: 'confirmBlock',
468
- type: 'uint256',
469
- },
470
- ],
471
483
  name: '',
472
- type: 'tuple',
484
+ type: 'address',
473
485
  },
474
486
  ],
475
- stateMutability: 'view',
476
- type: 'function',
477
487
  },
478
488
  {
479
- inputs: [],
480
- name: 'govChangeDelay',
489
+ stateMutability: 'view',
490
+ type: 'function',
491
+ name: 'blacklisted',
492
+ inputs: [
493
+ {
494
+ name: 'arg0',
495
+ type: 'address',
496
+ },
497
+ ],
481
498
  outputs: [
482
499
  {
483
500
  name: '',
484
- type: 'uint256',
501
+ type: 'bool',
485
502
  },
486
503
  ],
487
- stateMutability: 'view',
488
- type: 'function',
489
504
  },
490
505
  {
506
+ stateMutability: 'view',
507
+ type: 'function',
508
+ name: 'isPaused',
491
509
  inputs: [],
492
- name: 'MIN_GOV_CHANGE_DELAY',
493
510
  outputs: [
494
511
  {
495
512
  name: '',
496
- type: 'uint256',
513
+ type: 'bool',
497
514
  },
498
515
  ],
499
- stateMutability: 'view',
500
- type: 'function',
501
516
  },
502
517
  {
503
- inputs: [],
504
- name: 'MAX_GOV_CHANGE_DELAY',
518
+ stateMutability: 'view',
519
+ type: 'function',
520
+ name: 'balanceOf',
521
+ inputs: [
522
+ {
523
+ name: 'arg0',
524
+ type: 'address',
525
+ },
526
+ ],
505
527
  outputs: [
506
528
  {
507
529
  name: '',
508
530
  type: 'uint256',
509
531
  },
510
532
  ],
511
- stateMutability: 'view',
512
- type: 'function',
513
533
  },
514
534
  {
535
+ stateMutability: 'view',
536
+ type: 'function',
537
+ name: 'allowance',
515
538
  inputs: [
516
539
  {
517
- name: '_operator',
540
+ name: 'arg0',
518
541
  type: 'address',
519
542
  },
520
543
  {
521
- name: '_owner',
544
+ name: 'arg1',
522
545
  type: 'address',
523
546
  },
547
+ ],
548
+ outputs: [
524
549
  {
525
- name: '_tokenId',
550
+ name: '',
526
551
  type: 'uint256',
527
552
  },
553
+ ],
554
+ },
555
+ {
556
+ stateMutability: 'view',
557
+ type: 'function',
558
+ name: 'totalSupply',
559
+ inputs: [],
560
+ outputs: [
528
561
  {
529
- name: '_data',
530
- type: 'bytes',
562
+ name: '',
563
+ type: 'uint256',
531
564
  },
532
565
  ],
533
- name: 'onERC721Received',
566
+ },
567
+ {
568
+ stateMutability: 'view',
569
+ type: 'function',
570
+ name: 'TOKEN_NAME',
571
+ inputs: [],
534
572
  outputs: [
535
573
  {
536
574
  name: '',
537
- type: 'bytes4',
575
+ type: 'string',
538
576
  },
539
577
  ],
578
+ },
579
+ {
540
580
  stateMutability: 'view',
541
581
  type: 'function',
582
+ name: 'TOKEN_SYMBOL',
583
+ inputs: [],
584
+ outputs: [
585
+ {
586
+ name: '',
587
+ type: 'string',
588
+ },
589
+ ],
542
590
  },
543
591
  {
592
+ stateMutability: 'view',
593
+ type: 'function',
594
+ name: 'TOKEN_DECIMALS',
544
595
  inputs: [],
545
- name: 'getRegistries',
546
596
  outputs: [
547
597
  {
548
598
  name: '',
549
- type: 'address[]',
599
+ type: 'uint8',
550
600
  },
551
601
  ],
602
+ },
603
+ {
552
604
  stateMutability: 'view',
553
605
  type: 'function',
606
+ name: 'VERSION',
607
+ inputs: [],
608
+ outputs: [
609
+ {
610
+ name: '',
611
+ type: 'string',
612
+ },
613
+ ],
554
614
  },
555
615
  {
616
+ stateMutability: 'view',
617
+ type: 'function',
618
+ name: 'nonces',
556
619
  inputs: [
557
620
  {
558
- name: '_user',
621
+ name: 'arg0',
559
622
  type: 'address',
560
623
  },
561
624
  ],
562
- name: 'getAccessForLego',
563
625
  outputs: [
564
- {
565
- name: '',
566
- type: 'address',
567
- },
568
- {
569
- name: '',
570
- type: 'string',
571
- },
572
626
  {
573
627
  name: '',
574
628
  type: 'uint256',
575
629
  },
576
630
  ],
577
- stateMutability: 'view',
578
- type: 'function',
579
631
  },
580
632
  {
633
+ stateMutability: 'nonpayable',
634
+ type: 'function',
635
+ name: 'depositForYield',
581
636
  inputs: [
582
637
  {
583
- name: '_amountIn',
584
- type: 'uint256',
585
- },
586
- {
587
- name: '_minAmountOut',
638
+ name: '_legoId',
588
639
  type: 'uint256',
589
640
  },
590
641
  {
591
- name: '_tokenPath',
592
- type: 'address[]',
593
- },
594
- {
595
- name: '_poolPath',
596
- type: 'address[]',
597
- },
598
- {
599
- name: '_recipient',
642
+ name: '_asset',
600
643
  type: 'address',
601
644
  },
602
645
  ],
603
- name: 'swapTokens',
604
646
  outputs: [
605
647
  {
606
648
  name: '',
@@ -608,7 +650,7 @@ export const abi = [
608
650
  },
609
651
  {
610
652
  name: '',
611
- type: 'uint256',
653
+ type: 'address',
612
654
  },
613
655
  {
614
656
  name: '',
@@ -619,37 +661,25 @@ export const abi = [
619
661
  type: 'uint256',
620
662
  },
621
663
  ],
622
- stateMutability: 'nonpayable',
623
- type: 'function',
624
664
  },
625
665
  {
666
+ stateMutability: 'nonpayable',
667
+ type: 'function',
668
+ name: 'depositForYield',
626
669
  inputs: [
627
670
  {
628
- name: '_amountIn',
629
- type: 'uint256',
630
- },
631
- {
632
- name: '_minAmountOut',
671
+ name: '_legoId',
633
672
  type: 'uint256',
634
673
  },
635
674
  {
636
- name: '_tokenPath',
637
- type: 'address[]',
638
- },
639
- {
640
- name: '_poolPath',
641
- type: 'address[]',
642
- },
643
- {
644
- name: '_recipient',
675
+ name: '_asset',
645
676
  type: 'address',
646
677
  },
647
678
  {
648
- name: '_oracleRegistry',
679
+ name: '_vaultAddr',
649
680
  type: 'address',
650
681
  },
651
682
  ],
652
- name: 'swapTokens',
653
683
  outputs: [
654
684
  {
655
685
  name: '',
@@ -657,7 +687,7 @@ export const abi = [
657
687
  },
658
688
  {
659
689
  name: '',
660
- type: 'uint256',
690
+ type: 'address',
661
691
  },
662
692
  {
663
693
  name: '',
@@ -668,81 +698,74 @@ export const abi = [
668
698
  type: 'uint256',
669
699
  },
670
700
  ],
671
- stateMutability: 'nonpayable',
672
- type: 'function',
673
701
  },
674
702
  {
675
- inputs: [
676
- {
677
- name: '_amount0Delta',
678
- type: 'int256',
679
- },
680
- {
681
- name: '_amount1Delta',
682
- type: 'int256',
683
- },
684
- {
685
- name: '_data',
686
- type: 'bytes',
687
- },
688
- ],
689
- name: 'uniswapV3SwapCallback',
690
- outputs: [],
691
703
  stateMutability: 'nonpayable',
692
704
  type: 'function',
693
- },
694
- {
705
+ name: 'depositForYield',
695
706
  inputs: [
696
707
  {
697
- name: '_nftTokenId',
708
+ name: '_legoId',
698
709
  type: 'uint256',
699
710
  },
700
711
  {
701
- name: '_pool',
712
+ name: '_asset',
702
713
  type: 'address',
703
714
  },
704
715
  {
705
- name: '_tokenA',
716
+ name: '_vaultAddr',
706
717
  type: 'address',
707
718
  },
708
719
  {
709
- name: '_tokenB',
710
- type: 'address',
720
+ name: '_amount',
721
+ type: 'uint256',
711
722
  },
723
+ ],
724
+ outputs: [
712
725
  {
713
- name: '_tickLower',
714
- type: 'int24',
726
+ name: '',
727
+ type: 'uint256',
715
728
  },
716
729
  {
717
- name: '_tickUpper',
718
- type: 'int24',
730
+ name: '',
731
+ type: 'address',
719
732
  },
720
733
  {
721
- name: '_amountA',
734
+ name: '',
722
735
  type: 'uint256',
723
736
  },
724
737
  {
725
- name: '_amountB',
738
+ name: '',
726
739
  type: 'uint256',
727
740
  },
741
+ ],
742
+ },
743
+ {
744
+ stateMutability: 'nonpayable',
745
+ type: 'function',
746
+ name: 'depositForYield',
747
+ inputs: [
728
748
  {
729
- name: '_minAmountA',
749
+ name: '_legoId',
730
750
  type: 'uint256',
731
751
  },
732
752
  {
733
- name: '_minAmountB',
734
- type: 'uint256',
753
+ name: '_asset',
754
+ type: 'address',
735
755
  },
736
756
  {
737
- name: '_minLpAmount',
757
+ name: '_vaultAddr',
758
+ type: 'address',
759
+ },
760
+ {
761
+ name: '_amount',
738
762
  type: 'uint256',
739
763
  },
740
764
  {
741
- name: '_recipient',
742
- type: 'address',
765
+ name: '_extraData',
766
+ type: 'bytes32',
743
767
  },
744
768
  ],
745
- name: 'addLiquidity',
746
769
  outputs: [
747
770
  {
748
771
  name: '',
@@ -750,19 +773,7 @@ export const abi = [
750
773
  },
751
774
  {
752
775
  name: '',
753
- type: 'uint256',
754
- },
755
- {
756
- name: '',
757
- type: 'uint256',
758
- },
759
- {
760
- name: '',
761
- type: 'uint256',
762
- },
763
- {
764
- name: '',
765
- type: 'uint256',
776
+ type: 'address',
766
777
  },
767
778
  {
768
779
  name: '',
@@ -773,85 +784,107 @@ export const abi = [
773
784
  type: 'uint256',
774
785
  },
775
786
  ],
776
- stateMutability: 'nonpayable',
777
- type: 'function',
778
787
  },
779
788
  {
789
+ stateMutability: 'nonpayable',
790
+ type: 'function',
791
+ name: 'withdrawFromYield',
780
792
  inputs: [
781
793
  {
782
- name: '_nftTokenId',
794
+ name: '_legoId',
783
795
  type: 'uint256',
784
796
  },
785
797
  {
786
- name: '_pool',
798
+ name: '_vaultToken',
787
799
  type: 'address',
788
800
  },
801
+ ],
802
+ outputs: [
789
803
  {
790
- name: '_tokenA',
791
- type: 'address',
804
+ name: '',
805
+ type: 'uint256',
792
806
  },
793
807
  {
794
- name: '_tokenB',
808
+ name: '',
795
809
  type: 'address',
796
810
  },
797
811
  {
798
- name: '_tickLower',
799
- type: 'int24',
800
- },
801
- {
802
- name: '_tickUpper',
803
- type: 'int24',
812
+ name: '',
813
+ type: 'uint256',
804
814
  },
805
815
  {
806
- name: '_amountA',
816
+ name: '',
807
817
  type: 'uint256',
808
818
  },
819
+ ],
820
+ },
821
+ {
822
+ stateMutability: 'nonpayable',
823
+ type: 'function',
824
+ name: 'withdrawFromYield',
825
+ inputs: [
809
826
  {
810
- name: '_amountB',
827
+ name: '_legoId',
811
828
  type: 'uint256',
812
829
  },
813
830
  {
814
- name: '_minAmountA',
815
- type: 'uint256',
831
+ name: '_vaultToken',
832
+ type: 'address',
816
833
  },
817
834
  {
818
- name: '_minAmountB',
835
+ name: '_amount',
819
836
  type: 'uint256',
820
837
  },
838
+ ],
839
+ outputs: [
821
840
  {
822
- name: '_minLpAmount',
841
+ name: '',
823
842
  type: 'uint256',
824
843
  },
825
844
  {
826
- name: '_recipient',
845
+ name: '',
827
846
  type: 'address',
828
847
  },
829
848
  {
830
- name: '_oracleRegistry',
831
- type: 'address',
849
+ name: '',
850
+ type: 'uint256',
832
851
  },
833
- ],
834
- name: 'addLiquidity',
835
- outputs: [
836
852
  {
837
853
  name: '',
838
854
  type: 'uint256',
839
855
  },
856
+ ],
857
+ },
858
+ {
859
+ stateMutability: 'nonpayable',
860
+ type: 'function',
861
+ name: 'withdrawFromYield',
862
+ inputs: [
840
863
  {
841
- name: '',
864
+ name: '_legoId',
842
865
  type: 'uint256',
843
866
  },
844
867
  {
845
- name: '',
868
+ name: '_vaultToken',
869
+ type: 'address',
870
+ },
871
+ {
872
+ name: '_amount',
846
873
  type: 'uint256',
847
874
  },
875
+ {
876
+ name: '_extraData',
877
+ type: 'bytes32',
878
+ },
879
+ ],
880
+ outputs: [
848
881
  {
849
882
  name: '',
850
883
  type: 'uint256',
851
884
  },
852
885
  {
853
886
  name: '',
854
- type: 'uint256',
887
+ type: 'address',
855
888
  },
856
889
  {
857
890
  name: '',
@@ -862,53 +895,88 @@ export const abi = [
862
895
  type: 'uint256',
863
896
  },
864
897
  ],
865
- stateMutability: 'nonpayable',
866
- type: 'function',
867
898
  },
868
899
  {
900
+ stateMutability: 'nonpayable',
901
+ type: 'function',
902
+ name: 'withdrawFromYield',
869
903
  inputs: [
870
904
  {
871
- name: '_nftTokenId',
905
+ name: '_legoId',
872
906
  type: 'uint256',
873
907
  },
874
908
  {
875
- name: '_pool',
909
+ name: '_vaultToken',
876
910
  type: 'address',
877
911
  },
878
912
  {
879
- name: '_tokenA',
880
- type: 'address',
913
+ name: '_amount',
914
+ type: 'uint256',
881
915
  },
882
916
  {
883
- name: '_tokenB',
884
- type: 'address',
917
+ name: '_extraData',
918
+ type: 'bytes32',
885
919
  },
886
920
  {
887
- name: '_lpToken',
888
- type: 'address',
921
+ name: '_isSpecialTx',
922
+ type: 'bool',
889
923
  },
924
+ ],
925
+ outputs: [
890
926
  {
891
- name: '_liqToRemove',
927
+ name: '',
892
928
  type: 'uint256',
893
929
  },
894
930
  {
895
- name: '_minAmountA',
931
+ name: '',
932
+ type: 'address',
933
+ },
934
+ {
935
+ name: '',
896
936
  type: 'uint256',
897
937
  },
898
938
  {
899
- name: '_minAmountB',
939
+ name: '',
900
940
  type: 'uint256',
901
941
  },
942
+ ],
943
+ },
944
+ {
945
+ stateMutability: 'nonpayable',
946
+ type: 'function',
947
+ name: 'swapTokens',
948
+ inputs: [
902
949
  {
903
- name: '_recipient',
904
- type: 'address',
950
+ name: '_instructions',
951
+ type: 'tuple[]',
952
+ components: [
953
+ {
954
+ name: 'legoId',
955
+ type: 'uint256',
956
+ },
957
+ {
958
+ name: 'amountIn',
959
+ type: 'uint256',
960
+ },
961
+ {
962
+ name: 'minAmountOut',
963
+ type: 'uint256',
964
+ },
965
+ {
966
+ name: 'tokenPath',
967
+ type: 'address[]',
968
+ },
969
+ {
970
+ name: 'poolPath',
971
+ type: 'address[]',
972
+ },
973
+ ],
905
974
  },
906
975
  ],
907
- name: 'removeLiquidity',
908
976
  outputs: [
909
977
  {
910
978
  name: '',
911
- type: 'uint256',
979
+ type: 'address',
912
980
  },
913
981
  {
914
982
  name: '',
@@ -916,7 +984,7 @@ export const abi = [
916
984
  },
917
985
  {
918
986
  name: '',
919
- type: 'uint256',
987
+ type: 'address',
920
988
  },
921
989
  {
922
990
  name: '',
@@ -926,58 +994,72 @@ export const abi = [
926
994
  name: '',
927
995
  type: 'uint256',
928
996
  },
929
- {
930
- name: '',
931
- type: 'bool',
932
- },
933
997
  ],
934
- stateMutability: 'nonpayable',
935
- type: 'function',
936
998
  },
937
999
  {
1000
+ stateMutability: 'nonpayable',
1001
+ type: 'function',
1002
+ name: 'claimRewards',
938
1003
  inputs: [
939
1004
  {
940
- name: '_nftTokenId',
1005
+ name: '_legoId',
941
1006
  type: 'uint256',
942
1007
  },
1008
+ ],
1009
+ outputs: [
943
1010
  {
944
- name: '_pool',
945
- type: 'address',
1011
+ name: '',
1012
+ type: 'uint256',
946
1013
  },
947
1014
  {
948
- name: '_tokenA',
949
- type: 'address',
1015
+ name: '',
1016
+ type: 'uint256',
950
1017
  },
1018
+ ],
1019
+ },
1020
+ {
1021
+ stateMutability: 'nonpayable',
1022
+ type: 'function',
1023
+ name: 'claimRewards',
1024
+ inputs: [
951
1025
  {
952
- name: '_tokenB',
953
- type: 'address',
1026
+ name: '_legoId',
1027
+ type: 'uint256',
954
1028
  },
955
1029
  {
956
- name: '_lpToken',
1030
+ name: '_rewardToken',
957
1031
  type: 'address',
958
1032
  },
1033
+ ],
1034
+ outputs: [
959
1035
  {
960
- name: '_liqToRemove',
1036
+ name: '',
961
1037
  type: 'uint256',
962
1038
  },
963
1039
  {
964
- name: '_minAmountA',
1040
+ name: '',
965
1041
  type: 'uint256',
966
1042
  },
1043
+ ],
1044
+ },
1045
+ {
1046
+ stateMutability: 'nonpayable',
1047
+ type: 'function',
1048
+ name: 'claimRewards',
1049
+ inputs: [
967
1050
  {
968
- name: '_minAmountB',
1051
+ name: '_legoId',
969
1052
  type: 'uint256',
970
1053
  },
971
1054
  {
972
- name: '_recipient',
1055
+ name: '_rewardToken',
973
1056
  type: 'address',
974
1057
  },
975
1058
  {
976
- name: '_oracleRegistry',
977
- type: 'address',
1059
+ name: '_rewardAmount',
1060
+ type: 'uint256',
978
1061
  },
979
1062
  ],
980
- name: 'removeLiquidity',
981
1063
  outputs: [
982
1064
  {
983
1065
  name: '',
@@ -987,606 +1069,723 @@ export const abi = [
987
1069
  name: '',
988
1070
  type: 'uint256',
989
1071
  },
1072
+ ],
1073
+ },
1074
+ {
1075
+ stateMutability: 'nonpayable',
1076
+ type: 'function',
1077
+ name: 'claimRewards',
1078
+ inputs: [
990
1079
  {
991
- name: '',
1080
+ name: '_legoId',
992
1081
  type: 'uint256',
993
1082
  },
994
1083
  {
995
- name: '',
1084
+ name: '_rewardToken',
1085
+ type: 'address',
1086
+ },
1087
+ {
1088
+ name: '_rewardAmount',
996
1089
  type: 'uint256',
997
1090
  },
1091
+ {
1092
+ name: '_extraData',
1093
+ type: 'bytes32',
1094
+ },
1095
+ ],
1096
+ outputs: [
998
1097
  {
999
1098
  name: '',
1000
1099
  type: 'uint256',
1001
1100
  },
1002
1101
  {
1003
1102
  name: '',
1004
- type: 'bool',
1103
+ type: 'uint256',
1005
1104
  },
1006
1105
  ],
1106
+ },
1107
+ {
1007
1108
  stateMutability: 'nonpayable',
1008
1109
  type: 'function',
1110
+ name: 'claimPerformanceFees',
1111
+ inputs: [],
1112
+ outputs: [
1113
+ {
1114
+ name: '',
1115
+ type: 'uint256',
1116
+ },
1117
+ ],
1009
1118
  },
1010
1119
  {
1120
+ stateMutability: 'view',
1121
+ type: 'function',
1122
+ name: 'getClaimablePerformanceFees',
1123
+ inputs: [],
1124
+ outputs: [
1125
+ {
1126
+ name: '',
1127
+ type: 'uint256',
1128
+ },
1129
+ ],
1130
+ },
1131
+ {
1132
+ stateMutability: 'nonpayable',
1133
+ type: 'function',
1134
+ name: 'updateYieldPosition',
1011
1135
  inputs: [
1012
1136
  {
1013
- name: '_user',
1137
+ name: '_vaultToken',
1014
1138
  type: 'address',
1015
1139
  },
1140
+ ],
1141
+ outputs: [],
1142
+ },
1143
+ {
1144
+ stateMutability: 'nonpayable',
1145
+ type: 'function',
1146
+ name: 'addManager',
1147
+ inputs: [
1016
1148
  {
1017
- name: '_market',
1149
+ name: '_manager',
1018
1150
  type: 'address',
1019
1151
  },
1152
+ ],
1153
+ outputs: [],
1154
+ },
1155
+ {
1156
+ stateMutability: 'nonpayable',
1157
+ type: 'function',
1158
+ name: 'removeManager',
1159
+ inputs: [
1020
1160
  {
1021
- name: '_rewardToken',
1161
+ name: '_manager',
1022
1162
  type: 'address',
1023
1163
  },
1164
+ ],
1165
+ outputs: [],
1166
+ },
1167
+ {
1168
+ stateMutability: 'view',
1169
+ type: 'function',
1170
+ name: 'lastUnderlyingBal',
1171
+ inputs: [],
1172
+ outputs: [
1024
1173
  {
1025
- name: '_rewardAmount',
1174
+ name: '',
1026
1175
  type: 'uint256',
1027
1176
  },
1177
+ ],
1178
+ },
1179
+ {
1180
+ stateMutability: 'view',
1181
+ type: 'function',
1182
+ name: 'pendingYieldRealized',
1183
+ inputs: [],
1184
+ outputs: [
1028
1185
  {
1029
- name: '_proof',
1030
- type: 'bytes32',
1186
+ name: '',
1187
+ type: 'uint256',
1031
1188
  },
1032
1189
  ],
1033
- name: 'claimRewards',
1034
- outputs: [],
1035
- stateMutability: 'nonpayable',
1036
- type: 'function',
1037
1190
  },
1038
1191
  {
1192
+ stateMutability: 'view',
1193
+ type: 'function',
1194
+ name: 'vaultToLegoId',
1039
1195
  inputs: [
1040
1196
  {
1041
- name: '_user',
1197
+ name: 'arg0',
1042
1198
  type: 'address',
1043
1199
  },
1044
1200
  ],
1045
- name: 'hasClaimableRewards',
1046
1201
  outputs: [
1047
1202
  {
1048
1203
  name: '',
1049
- type: 'bool',
1204
+ type: 'uint256',
1050
1205
  },
1051
1206
  ],
1207
+ },
1208
+ {
1052
1209
  stateMutability: 'view',
1053
1210
  type: 'function',
1211
+ name: 'assets',
1212
+ inputs: [
1213
+ {
1214
+ name: 'arg0',
1215
+ type: 'uint256',
1216
+ },
1217
+ ],
1218
+ outputs: [
1219
+ {
1220
+ name: '',
1221
+ type: 'address',
1222
+ },
1223
+ ],
1054
1224
  },
1055
1225
  {
1226
+ stateMutability: 'view',
1227
+ type: 'function',
1228
+ name: 'indexOfAsset',
1056
1229
  inputs: [
1057
1230
  {
1058
- name: '_pool',
1231
+ name: 'arg0',
1059
1232
  type: 'address',
1060
1233
  },
1061
1234
  ],
1062
- name: 'getLpToken',
1063
1235
  outputs: [
1064
1236
  {
1065
1237
  name: '',
1066
- type: 'address',
1238
+ type: 'uint256',
1239
+ },
1240
+ ],
1241
+ },
1242
+ {
1243
+ stateMutability: 'view',
1244
+ type: 'function',
1245
+ name: 'numAssets',
1246
+ inputs: [],
1247
+ outputs: [
1248
+ {
1249
+ name: '',
1250
+ type: 'uint256',
1067
1251
  },
1068
1252
  ],
1253
+ },
1254
+ {
1069
1255
  stateMutability: 'view',
1070
1256
  type: 'function',
1257
+ name: 'managers',
1258
+ inputs: [
1259
+ {
1260
+ name: 'arg0',
1261
+ type: 'uint256',
1262
+ },
1263
+ ],
1264
+ outputs: [
1265
+ {
1266
+ name: '',
1267
+ type: 'address',
1268
+ },
1269
+ ],
1071
1270
  },
1072
1271
  {
1272
+ stateMutability: 'view',
1273
+ type: 'function',
1274
+ name: 'indexOfManager',
1073
1275
  inputs: [
1074
1276
  {
1075
- name: '_lpToken',
1277
+ name: 'arg0',
1076
1278
  type: 'address',
1077
1279
  },
1078
1280
  ],
1079
- name: 'getPoolForLpToken',
1080
1281
  outputs: [
1081
1282
  {
1082
1283
  name: '',
1083
- type: 'address',
1284
+ type: 'uint256',
1084
1285
  },
1085
1286
  ],
1287
+ },
1288
+ {
1086
1289
  stateMutability: 'view',
1087
1290
  type: 'function',
1291
+ name: 'numManagers',
1292
+ inputs: [],
1293
+ outputs: [
1294
+ {
1295
+ name: '',
1296
+ type: 'uint256',
1297
+ },
1298
+ ],
1088
1299
  },
1089
1300
  {
1301
+ stateMutability: 'view',
1302
+ type: 'function',
1303
+ name: 'asset',
1090
1304
  inputs: [],
1091
- name: 'getCoreRouterPool',
1092
1305
  outputs: [
1093
1306
  {
1094
1307
  name: '',
1095
1308
  type: 'address',
1096
1309
  },
1097
1310
  ],
1311
+ },
1312
+ {
1098
1313
  stateMutability: 'view',
1099
1314
  type: 'function',
1315
+ name: 'totalAssets',
1316
+ inputs: [],
1317
+ outputs: [
1318
+ {
1319
+ name: '',
1320
+ type: 'uint256',
1321
+ },
1322
+ ],
1100
1323
  },
1101
1324
  {
1325
+ stateMutability: 'view',
1326
+ type: 'function',
1327
+ name: 'getTotalAssets',
1102
1328
  inputs: [
1103
1329
  {
1104
- name: '_tokenA',
1105
- type: 'address',
1330
+ name: '_shouldGetMax',
1331
+ type: 'bool',
1106
1332
  },
1333
+ ],
1334
+ outputs: [
1335
+ {
1336
+ name: '',
1337
+ type: 'uint256',
1338
+ },
1339
+ ],
1340
+ },
1341
+ {
1342
+ stateMutability: 'view',
1343
+ type: 'function',
1344
+ name: 'maxDeposit',
1345
+ inputs: [
1107
1346
  {
1108
- name: '_tokenB',
1347
+ name: '_receiver',
1109
1348
  type: 'address',
1110
1349
  },
1111
1350
  ],
1112
- name: 'getDeepestLiqPool',
1113
1351
  outputs: [
1114
1352
  {
1115
- components: [
1116
- {
1117
- name: 'pool',
1118
- type: 'address',
1119
- },
1120
- {
1121
- name: 'fee',
1122
- type: 'uint256',
1123
- },
1124
- {
1125
- name: 'liquidity',
1126
- type: 'uint256',
1127
- },
1128
- {
1129
- name: 'numCoins',
1130
- type: 'uint256',
1131
- },
1132
- {
1133
- name: 'legoId',
1134
- type: 'uint256',
1135
- },
1136
- ],
1137
1353
  name: '',
1138
- type: 'tuple',
1354
+ type: 'uint256',
1355
+ },
1356
+ ],
1357
+ },
1358
+ {
1359
+ stateMutability: 'view',
1360
+ type: 'function',
1361
+ name: 'previewDeposit',
1362
+ inputs: [
1363
+ {
1364
+ name: '_assets',
1365
+ type: 'uint256',
1366
+ },
1367
+ ],
1368
+ outputs: [
1369
+ {
1370
+ name: '',
1371
+ type: 'uint256',
1139
1372
  },
1140
1373
  ],
1141
- stateMutability: 'view',
1142
- type: 'function',
1143
1374
  },
1144
1375
  {
1376
+ stateMutability: 'nonpayable',
1377
+ type: 'function',
1378
+ name: 'deposit',
1145
1379
  inputs: [
1146
1380
  {
1147
- name: '_tokenIn',
1148
- type: 'address',
1149
- },
1150
- {
1151
- name: '_tokenOut',
1152
- type: 'address',
1153
- },
1154
- {
1155
- name: '_amountIn',
1381
+ name: '_assets',
1156
1382
  type: 'uint256',
1157
1383
  },
1158
1384
  ],
1159
- name: 'getBestSwapAmountOut',
1160
1385
  outputs: [
1161
- {
1162
- name: '',
1163
- type: 'address',
1164
- },
1165
1386
  {
1166
1387
  name: '',
1167
1388
  type: 'uint256',
1168
1389
  },
1169
1390
  ],
1170
- stateMutability: 'nonpayable',
1171
- type: 'function',
1172
1391
  },
1173
1392
  {
1393
+ stateMutability: 'nonpayable',
1394
+ type: 'function',
1395
+ name: 'deposit',
1174
1396
  inputs: [
1175
1397
  {
1176
- name: '_pool',
1177
- type: 'address',
1178
- },
1179
- {
1180
- name: '_tokenIn',
1181
- type: 'address',
1398
+ name: '_assets',
1399
+ type: 'uint256',
1182
1400
  },
1183
1401
  {
1184
- name: '_tokenOut',
1402
+ name: '_receiver',
1185
1403
  type: 'address',
1186
1404
  },
1187
- {
1188
- name: '_amountIn',
1189
- type: 'uint256',
1190
- },
1191
1405
  ],
1192
- name: 'getSwapAmountOut',
1193
1406
  outputs: [
1194
1407
  {
1195
1408
  name: '',
1196
1409
  type: 'uint256',
1197
1410
  },
1198
1411
  ],
1199
- stateMutability: 'nonpayable',
1200
- type: 'function',
1201
1412
  },
1202
1413
  {
1414
+ stateMutability: 'view',
1415
+ type: 'function',
1416
+ name: 'maxMint',
1203
1417
  inputs: [
1204
1418
  {
1205
- name: '_tokenIn',
1419
+ name: '_receiver',
1206
1420
  type: 'address',
1207
1421
  },
1422
+ ],
1423
+ outputs: [
1208
1424
  {
1209
- name: '_tokenOut',
1210
- type: 'address',
1425
+ name: '',
1426
+ type: 'uint256',
1211
1427
  },
1428
+ ],
1429
+ },
1430
+ {
1431
+ stateMutability: 'view',
1432
+ type: 'function',
1433
+ name: 'previewMint',
1434
+ inputs: [
1212
1435
  {
1213
- name: '_amountOut',
1436
+ name: '_shares',
1214
1437
  type: 'uint256',
1215
1438
  },
1216
1439
  ],
1217
- name: 'getBestSwapAmountIn',
1218
1440
  outputs: [
1219
- {
1220
- name: '',
1221
- type: 'address',
1222
- },
1223
1441
  {
1224
1442
  name: '',
1225
1443
  type: 'uint256',
1226
1444
  },
1227
1445
  ],
1228
- stateMutability: 'nonpayable',
1229
- type: 'function',
1230
1446
  },
1231
1447
  {
1448
+ stateMutability: 'nonpayable',
1449
+ type: 'function',
1450
+ name: 'mint',
1232
1451
  inputs: [
1233
1452
  {
1234
- name: '_pool',
1235
- type: 'address',
1236
- },
1237
- {
1238
- name: '_tokenIn',
1239
- type: 'address',
1240
- },
1241
- {
1242
- name: '_tokenOut',
1243
- type: 'address',
1244
- },
1245
- {
1246
- name: '_amountOut',
1453
+ name: '_shares',
1247
1454
  type: 'uint256',
1248
1455
  },
1249
1456
  ],
1250
- name: 'getSwapAmountIn',
1251
1457
  outputs: [
1252
1458
  {
1253
1459
  name: '',
1254
1460
  type: 'uint256',
1255
1461
  },
1256
1462
  ],
1257
- stateMutability: 'nonpayable',
1258
- type: 'function',
1259
1463
  },
1260
1464
  {
1465
+ stateMutability: 'nonpayable',
1466
+ type: 'function',
1467
+ name: 'mint',
1261
1468
  inputs: [
1262
1469
  {
1263
- name: '_pool',
1264
- type: 'address',
1265
- },
1266
- {
1267
- name: '_tokenA',
1268
- type: 'address',
1470
+ name: '_shares',
1471
+ type: 'uint256',
1269
1472
  },
1270
1473
  {
1271
- name: '_tokenB',
1474
+ name: '_receiver',
1272
1475
  type: 'address',
1273
1476
  },
1477
+ ],
1478
+ outputs: [
1274
1479
  {
1275
- name: '_availAmountA',
1480
+ name: '',
1276
1481
  type: 'uint256',
1277
1482
  },
1483
+ ],
1484
+ },
1485
+ {
1486
+ stateMutability: 'view',
1487
+ type: 'function',
1488
+ name: 'maxWithdraw',
1489
+ inputs: [
1278
1490
  {
1279
- name: '_availAmountB',
1280
- type: 'uint256',
1491
+ name: '_owner',
1492
+ type: 'address',
1281
1493
  },
1282
1494
  ],
1283
- name: 'getAddLiqAmountsIn',
1284
1495
  outputs: [
1285
1496
  {
1286
1497
  name: '',
1287
1498
  type: 'uint256',
1288
1499
  },
1500
+ ],
1501
+ },
1502
+ {
1503
+ stateMutability: 'view',
1504
+ type: 'function',
1505
+ name: 'previewWithdraw',
1506
+ inputs: [
1289
1507
  {
1290
- name: '',
1508
+ name: '_assets',
1291
1509
  type: 'uint256',
1292
1510
  },
1511
+ ],
1512
+ outputs: [
1293
1513
  {
1294
1514
  name: '',
1295
1515
  type: 'uint256',
1296
1516
  },
1297
1517
  ],
1298
- stateMutability: 'view',
1299
- type: 'function',
1300
1518
  },
1301
1519
  {
1520
+ stateMutability: 'nonpayable',
1521
+ type: 'function',
1522
+ name: 'withdraw',
1302
1523
  inputs: [
1303
1524
  {
1304
- name: '_pool',
1305
- type: 'address',
1306
- },
1307
- {
1308
- name: '_tokenA',
1309
- type: 'address',
1310
- },
1311
- {
1312
- name: '_tokenB',
1313
- type: 'address',
1314
- },
1315
- {
1316
- name: '_lpAmount',
1525
+ name: '_assets',
1317
1526
  type: 'uint256',
1318
1527
  },
1319
1528
  ],
1320
- name: 'getRemoveLiqAmountsOut',
1321
1529
  outputs: [
1322
1530
  {
1323
1531
  name: '',
1324
1532
  type: 'uint256',
1325
1533
  },
1326
- {
1327
- name: '',
1328
- type: 'uint256',
1329
- },
1330
1534
  ],
1331
- stateMutability: 'view',
1332
- type: 'function',
1333
1535
  },
1334
1536
  {
1537
+ stateMutability: 'nonpayable',
1538
+ type: 'function',
1539
+ name: 'withdraw',
1335
1540
  inputs: [
1336
1541
  {
1337
- name: '_pool',
1338
- type: 'address',
1542
+ name: '_assets',
1543
+ type: 'uint256',
1339
1544
  },
1340
1545
  {
1341
- name: '_targetToken',
1546
+ name: '_receiver',
1342
1547
  type: 'address',
1343
1548
  },
1344
1549
  ],
1345
- name: 'getPriceUnsafe',
1346
1550
  outputs: [
1347
1551
  {
1348
1552
  name: '',
1349
1553
  type: 'uint256',
1350
1554
  },
1351
1555
  ],
1352
- stateMutability: 'view',
1353
- type: 'function',
1354
1556
  },
1355
1557
  {
1558
+ stateMutability: 'nonpayable',
1559
+ type: 'function',
1560
+ name: 'withdraw',
1356
1561
  inputs: [
1357
1562
  {
1358
- name: '_pool',
1359
- type: 'address',
1563
+ name: '_assets',
1564
+ type: 'uint256',
1360
1565
  },
1361
1566
  {
1362
- name: '_targetToken',
1567
+ name: '_receiver',
1363
1568
  type: 'address',
1364
1569
  },
1365
1570
  {
1366
- name: '_oracleRegistry',
1571
+ name: '_owner',
1367
1572
  type: 'address',
1368
1573
  },
1369
1574
  ],
1370
- name: 'getPriceUnsafe',
1371
1575
  outputs: [
1372
1576
  {
1373
1577
  name: '',
1374
1578
  type: 'uint256',
1375
1579
  },
1376
1580
  ],
1377
- stateMutability: 'view',
1378
- type: 'function',
1379
1581
  },
1380
1582
  {
1583
+ stateMutability: 'view',
1584
+ type: 'function',
1585
+ name: 'maxRedeem',
1381
1586
  inputs: [
1382
1587
  {
1383
- name: '_addr',
1588
+ name: '_owner',
1384
1589
  type: 'address',
1385
1590
  },
1386
1591
  ],
1387
- name: 'setCoreRouterPool',
1388
1592
  outputs: [
1389
1593
  {
1390
1594
  name: '',
1391
- type: 'bool',
1595
+ type: 'uint256',
1392
1596
  },
1393
1597
  ],
1394
- stateMutability: 'nonpayable',
1395
- type: 'function',
1396
1598
  },
1397
1599
  {
1600
+ stateMutability: 'view',
1601
+ type: 'function',
1602
+ name: 'previewRedeem',
1398
1603
  inputs: [
1399
1604
  {
1400
- name: '_asset',
1401
- type: 'address',
1402
- },
1403
- {
1404
- name: '_recipient',
1405
- type: 'address',
1605
+ name: '_shares',
1606
+ type: 'uint256',
1406
1607
  },
1407
1608
  ],
1408
- name: 'recoverFunds',
1409
1609
  outputs: [
1410
1610
  {
1411
1611
  name: '',
1412
- type: 'bool',
1612
+ type: 'uint256',
1413
1613
  },
1414
1614
  ],
1415
- stateMutability: 'nonpayable',
1416
- type: 'function',
1417
1615
  },
1418
1616
  {
1617
+ stateMutability: 'nonpayable',
1618
+ type: 'function',
1619
+ name: 'redeem',
1419
1620
  inputs: [
1420
1621
  {
1421
- name: '_collection',
1422
- type: 'address',
1622
+ name: '_shares',
1623
+ type: 'uint256',
1624
+ },
1625
+ ],
1626
+ outputs: [
1627
+ {
1628
+ name: '',
1629
+ type: 'uint256',
1423
1630
  },
1631
+ ],
1632
+ },
1633
+ {
1634
+ stateMutability: 'nonpayable',
1635
+ type: 'function',
1636
+ name: 'redeem',
1637
+ inputs: [
1424
1638
  {
1425
- name: '_nftTokenId',
1639
+ name: '_shares',
1426
1640
  type: 'uint256',
1427
1641
  },
1428
1642
  {
1429
- name: '_recipient',
1643
+ name: '_receiver',
1430
1644
  type: 'address',
1431
1645
  },
1432
1646
  ],
1433
- name: 'recoverNft',
1434
1647
  outputs: [
1435
1648
  {
1436
1649
  name: '',
1437
- type: 'bool',
1650
+ type: 'uint256',
1438
1651
  },
1439
1652
  ],
1440
- stateMutability: 'nonpayable',
1441
- type: 'function',
1442
1653
  },
1443
1654
  {
1655
+ stateMutability: 'nonpayable',
1656
+ type: 'function',
1657
+ name: 'redeem',
1444
1658
  inputs: [
1445
1659
  {
1446
- name: '_legoId',
1660
+ name: '_shares',
1447
1661
  type: 'uint256',
1448
1662
  },
1663
+ {
1664
+ name: '_receiver',
1665
+ type: 'address',
1666
+ },
1667
+ {
1668
+ name: '_owner',
1669
+ type: 'address',
1670
+ },
1449
1671
  ],
1450
- name: 'setLegoId',
1451
1672
  outputs: [
1452
1673
  {
1453
1674
  name: '',
1454
- type: 'bool',
1675
+ type: 'uint256',
1455
1676
  },
1456
1677
  ],
1457
- stateMutability: 'nonpayable',
1458
- type: 'function',
1459
1678
  },
1460
1679
  {
1680
+ stateMutability: 'view',
1681
+ type: 'function',
1682
+ name: 'convertToShares',
1461
1683
  inputs: [
1462
1684
  {
1463
- name: '_shouldActivate',
1464
- type: 'bool',
1685
+ name: '_assets',
1686
+ type: 'uint256',
1465
1687
  },
1466
1688
  ],
1467
- name: 'activate',
1468
- outputs: [],
1469
- stateMutability: 'nonpayable',
1470
- type: 'function',
1471
- },
1472
- {
1473
- inputs: [],
1474
- name: 'coreRouterPool',
1475
1689
  outputs: [
1476
1690
  {
1477
1691
  name: '',
1478
- type: 'address',
1692
+ type: 'uint256',
1479
1693
  },
1480
1694
  ],
1481
- stateMutability: 'view',
1482
- type: 'function',
1483
1695
  },
1484
1696
  {
1485
- inputs: [],
1486
- name: 'UNIV3_FACTORY',
1487
- outputs: [
1697
+ stateMutability: 'view',
1698
+ type: 'function',
1699
+ name: 'convertToSharesSafe',
1700
+ inputs: [
1488
1701
  {
1489
- name: '',
1490
- type: 'address',
1702
+ name: '_assets',
1703
+ type: 'uint256',
1491
1704
  },
1492
1705
  ],
1493
- stateMutability: 'view',
1494
- type: 'function',
1495
- },
1496
- {
1497
- inputs: [],
1498
- name: 'UNIV3_NFT_MANAGER',
1499
1706
  outputs: [
1500
1707
  {
1501
1708
  name: '',
1502
- type: 'address',
1709
+ type: 'uint256',
1503
1710
  },
1504
1711
  ],
1505
- stateMutability: 'view',
1506
- type: 'function',
1507
1712
  },
1508
1713
  {
1509
- inputs: [],
1510
- name: 'UNIV3_QUOTER',
1511
- outputs: [
1714
+ stateMutability: 'view',
1715
+ type: 'function',
1716
+ name: 'convertToAssets',
1717
+ inputs: [
1512
1718
  {
1513
- name: '',
1514
- type: 'address',
1719
+ name: '_shares',
1720
+ type: 'uint256',
1515
1721
  },
1516
1722
  ],
1517
- stateMutability: 'view',
1518
- type: 'function',
1519
- },
1520
- {
1521
- inputs: [],
1522
- name: 'legoId',
1523
1723
  outputs: [
1524
1724
  {
1525
1725
  name: '',
1526
1726
  type: 'uint256',
1527
1727
  },
1528
1728
  ],
1529
- stateMutability: 'view',
1530
- type: 'function',
1531
1729
  },
1532
1730
  {
1533
- inputs: [],
1534
- name: 'isActivated',
1535
- outputs: [
1731
+ stateMutability: 'view',
1732
+ type: 'function',
1733
+ name: 'convertToAssetsSafe',
1734
+ inputs: [
1536
1735
  {
1537
- name: '',
1538
- type: 'bool',
1736
+ name: '_shares',
1737
+ type: 'uint256',
1539
1738
  },
1540
1739
  ],
1541
- stateMutability: 'view',
1542
- type: 'function',
1543
- },
1544
- {
1545
- inputs: [],
1546
- name: 'ADDY_REGISTRY',
1547
1740
  outputs: [
1548
1741
  {
1549
1742
  name: '',
1550
- type: 'address',
1743
+ type: 'uint256',
1551
1744
  },
1552
1745
  ],
1553
- stateMutability: 'view',
1554
- type: 'function',
1555
1746
  },
1556
1747
  {
1748
+ stateMutability: 'nonpayable',
1749
+ type: 'constructor',
1557
1750
  inputs: [
1558
1751
  {
1559
- name: '_uniswapV3Factory',
1752
+ name: '_asset',
1560
1753
  type: 'address',
1561
1754
  },
1562
1755
  {
1563
- name: '_uniNftPositionManager',
1564
- type: 'address',
1756
+ name: '_tokenName',
1757
+ type: 'string',
1565
1758
  },
1566
1759
  {
1567
- name: '_uniV3Quoter',
1568
- type: 'address',
1760
+ name: '_tokenSymbol',
1761
+ type: 'string',
1569
1762
  },
1570
1763
  {
1571
- name: '_addyRegistry',
1764
+ name: '_undyHq',
1572
1765
  type: 'address',
1573
1766
  },
1574
1767
  {
1575
- name: '_coreRouterPool',
1768
+ name: '_minHqTimeLock',
1769
+ type: 'uint256',
1770
+ },
1771
+ {
1772
+ name: '_maxHqTimeLock',
1773
+ type: 'uint256',
1774
+ },
1775
+ {
1776
+ name: '_startingAgent',
1576
1777
  type: 'address',
1577
1778
  },
1578
1779
  ],
1579
1780
  outputs: [],
1580
- stateMutability: 'nonpayable',
1581
- type: 'constructor',
1582
1781
  },
1583
1782
  ];
1584
- export const deployAddress = '0x6bfd82031a968685358DA84ebB797c3C068EC704';
1783
+ export const deployAddress = '0x16a36ccBe56cA080D522CEC2f8769B82c134D663';
1585
1784
  function getRequest(method, args, contractAddressOrOptions) {
1586
1785
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1587
1786
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
1588
1787
  const call = {
1589
- contractName: 'v0_3_LegoUniswapV3',
1788
+ contractName: 'UndyEth',
1590
1789
  method,
1591
1790
  args,
1592
1791
  address,
@@ -1610,35 +1809,50 @@ function getRequest(method, args, contractAddressOrOptions) {
1610
1809
  return call;
1611
1810
  }
1612
1811
  export const call = {
1613
- canGovern: (...args) => getRequest('canGovern', args),
1614
- hasPendingGovChange: (...args) => getRequest('hasPendingGovChange', args),
1615
- governance: (...args) => getRequest('governance', args),
1616
- pendingGov: (...args) => getRequest('pendingGov', args),
1617
- govChangeDelay: (...args) => getRequest('govChangeDelay', args),
1618
- MIN_GOV_CHANGE_DELAY: (...args) => getRequest('MIN_GOV_CHANGE_DELAY', args),
1619
- MAX_GOV_CHANGE_DELAY: (...args) => getRequest('MAX_GOV_CHANGE_DELAY', args),
1620
- onERC721Received: (...args) => getRequest('onERC721Received', args),
1621
- getRegistries: (...args) => getRequest('getRegistries', args),
1622
- getAccessForLego: (...args) => getRequest('getAccessForLego', args),
1623
- hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
1624
- getLpToken: (...args) => getRequest('getLpToken', args),
1625
- getPoolForLpToken: (...args) => getRequest('getPoolForLpToken', args),
1626
- getCoreRouterPool: (...args) => getRequest('getCoreRouterPool', args),
1627
- getDeepestLiqPool: (...args) => getRequest('getDeepestLiqPool', args),
1628
- getAddLiqAmountsIn: (...args) => getRequest('getAddLiqAmountsIn', args),
1629
- getRemoveLiqAmountsOut: (...args) => getRequest('getRemoveLiqAmountsOut', args),
1630
- getPriceUnsafe: (...args) => getRequest('getPriceUnsafe', args),
1631
- coreRouterPool: (...args) => getRequest('coreRouterPool', args),
1632
- UNIV3_FACTORY: (...args) => getRequest('UNIV3_FACTORY', args),
1633
- UNIV3_NFT_MANAGER: (...args) => getRequest('UNIV3_NFT_MANAGER', args),
1634
- UNIV3_QUOTER: (...args) => getRequest('UNIV3_QUOTER', args),
1635
- legoId: (...args) => getRequest('legoId', args),
1636
- isActivated: (...args) => getRequest('isActivated', args),
1637
- ADDY_REGISTRY: (...args) => getRequest('ADDY_REGISTRY', args),
1812
+ name: (...args) => getRequest('name', args),
1813
+ symbol: (...args) => getRequest('symbol', args),
1814
+ decimals: (...args) => getRequest('decimals', args),
1815
+ DOMAIN_SEPARATOR: (...args) => getRequest('DOMAIN_SEPARATOR', args),
1816
+ undyHq: (...args) => getRequest('undyHq', args),
1817
+ blacklisted: (...args) => getRequest('blacklisted', args),
1818
+ isPaused: (...args) => getRequest('isPaused', args),
1819
+ balanceOf: (...args) => getRequest('balanceOf', args),
1820
+ allowance: (...args) => getRequest('allowance', args),
1821
+ totalSupply: (...args) => getRequest('totalSupply', args),
1822
+ TOKEN_NAME: (...args) => getRequest('TOKEN_NAME', args),
1823
+ TOKEN_SYMBOL: (...args) => getRequest('TOKEN_SYMBOL', args),
1824
+ TOKEN_DECIMALS: (...args) => getRequest('TOKEN_DECIMALS', args),
1825
+ VERSION: (...args) => getRequest('VERSION', args),
1826
+ nonces: (...args) => getRequest('nonces', args),
1827
+ getClaimablePerformanceFees: (...args) => getRequest('getClaimablePerformanceFees', args),
1828
+ lastUnderlyingBal: (...args) => getRequest('lastUnderlyingBal', args),
1829
+ pendingYieldRealized: (...args) => getRequest('pendingYieldRealized', args),
1830
+ vaultToLegoId: (...args) => getRequest('vaultToLegoId', args),
1831
+ assets: (...args) => getRequest('assets', args),
1832
+ indexOfAsset: (...args) => getRequest('indexOfAsset', args),
1833
+ numAssets: (...args) => getRequest('numAssets', args),
1834
+ managers: (...args) => getRequest('managers', args),
1835
+ indexOfManager: (...args) => getRequest('indexOfManager', args),
1836
+ numManagers: (...args) => getRequest('numManagers', args),
1837
+ asset: (...args) => getRequest('asset', args),
1838
+ totalAssets: (...args) => getRequest('totalAssets', args),
1839
+ getTotalAssets: (...args) => getRequest('getTotalAssets', args),
1840
+ maxDeposit: (...args) => getRequest('maxDeposit', args),
1841
+ previewDeposit: (...args) => getRequest('previewDeposit', args),
1842
+ maxMint: (...args) => getRequest('maxMint', args),
1843
+ previewMint: (...args) => getRequest('previewMint', args),
1844
+ maxWithdraw: (...args) => getRequest('maxWithdraw', args),
1845
+ previewWithdraw: (...args) => getRequest('previewWithdraw', args),
1846
+ maxRedeem: (...args) => getRequest('maxRedeem', args),
1847
+ previewRedeem: (...args) => getRequest('previewRedeem', args),
1848
+ convertToShares: (...args) => getRequest('convertToShares', args),
1849
+ convertToSharesSafe: (...args) => getRequest('convertToSharesSafe', args),
1850
+ convertToAssets: (...args) => getRequest('convertToAssets', args),
1851
+ convertToAssetsSafe: (...args) => getRequest('convertToAssetsSafe', args),
1638
1852
  };
1639
1853
  function getMutation(functionName) {
1640
1854
  return {
1641
- contractName: 'v0_3_LegoUniswapV3',
1855
+ contractName: 'UndyEth',
1642
1856
  functionName,
1643
1857
  deployAddress,
1644
1858
  argsType: undefined,
@@ -1646,73 +1860,96 @@ function getMutation(functionName) {
1646
1860
  };
1647
1861
  }
1648
1862
  export const mutation = {
1649
- changeGovernance: getMutation('changeGovernance'),
1650
- confirmGovernanceChange: getMutation('confirmGovernanceChange'),
1651
- cancelGovernanceChange: getMutation('cancelGovernanceChange'),
1652
- setGovernanceChangeDelay: getMutation('setGovernanceChangeDelay'),
1863
+ transfer: getMutation('transfer'),
1864
+ transferFrom: getMutation('transferFrom'),
1865
+ approve: getMutation('approve'),
1866
+ increaseAllowance: getMutation('increaseAllowance'),
1867
+ decreaseAllowance: getMutation('decreaseAllowance'),
1868
+ burn: getMutation('burn'),
1869
+ permit: getMutation('permit'),
1870
+ setBlacklist: getMutation('setBlacklist'),
1871
+ burnBlacklistTokens: getMutation('burnBlacklistTokens'),
1872
+ pause: getMutation('pause'),
1873
+ depositForYield: getMutation('depositForYield'),
1874
+ withdrawFromYield: getMutation('withdrawFromYield'),
1653
1875
  swapTokens: getMutation('swapTokens'),
1654
- uniswapV3SwapCallback: getMutation('uniswapV3SwapCallback'),
1655
- addLiquidity: getMutation('addLiquidity'),
1656
- removeLiquidity: getMutation('removeLiquidity'),
1657
1876
  claimRewards: getMutation('claimRewards'),
1658
- getBestSwapAmountOut: getMutation('getBestSwapAmountOut'),
1659
- getSwapAmountOut: getMutation('getSwapAmountOut'),
1660
- getBestSwapAmountIn: getMutation('getBestSwapAmountIn'),
1661
- getSwapAmountIn: getMutation('getSwapAmountIn'),
1662
- setCoreRouterPool: getMutation('setCoreRouterPool'),
1663
- recoverFunds: getMutation('recoverFunds'),
1664
- recoverNft: getMutation('recoverNft'),
1665
- setLegoId: getMutation('setLegoId'),
1666
- activate: getMutation('activate'),
1877
+ claimPerformanceFees: getMutation('claimPerformanceFees'),
1878
+ updateYieldPosition: getMutation('updateYieldPosition'),
1879
+ addManager: getMutation('addManager'),
1880
+ removeManager: getMutation('removeManager'),
1881
+ deposit: getMutation('deposit'),
1882
+ mint: getMutation('mint'),
1883
+ withdraw: getMutation('withdraw'),
1884
+ redeem: getMutation('redeem'),
1667
1885
  };
1668
1886
  export function toSdk(publicClient, walletClient) {
1669
1887
  return {
1670
1888
  deployAddress,
1671
1889
  abi,
1672
1890
  // Queries
1673
- canGovern: (...args) => singleQuery(publicClient, call.canGovern(...args)),
1674
- hasPendingGovChange: (...args) => singleQuery(publicClient, call.hasPendingGovChange(...args)),
1675
- governance: (...args) => singleQuery(publicClient, call.governance(...args)),
1676
- pendingGov: (...args) => singleQuery(publicClient, call.pendingGov(...args)),
1677
- govChangeDelay: (...args) => singleQuery(publicClient, call.govChangeDelay(...args)),
1678
- MIN_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_GOV_CHANGE_DELAY(...args)),
1679
- MAX_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_GOV_CHANGE_DELAY(...args)),
1680
- onERC721Received: (...args) => singleQuery(publicClient, call.onERC721Received(...args)),
1681
- getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args)),
1682
- getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
1683
- hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
1684
- getLpToken: (...args) => singleQuery(publicClient, call.getLpToken(...args)),
1685
- getPoolForLpToken: (...args) => singleQuery(publicClient, call.getPoolForLpToken(...args)),
1686
- getCoreRouterPool: (...args) => singleQuery(publicClient, call.getCoreRouterPool(...args)),
1687
- getDeepestLiqPool: (...args) => singleQuery(publicClient, call.getDeepestLiqPool(...args)),
1688
- getAddLiqAmountsIn: (...args) => singleQuery(publicClient, call.getAddLiqAmountsIn(...args)),
1689
- getRemoveLiqAmountsOut: (...args) => singleQuery(publicClient, call.getRemoveLiqAmountsOut(...args)),
1690
- getPriceUnsafe: (...args) => singleQuery(publicClient, call.getPriceUnsafe(...args)),
1691
- coreRouterPool: (...args) => singleQuery(publicClient, call.coreRouterPool(...args)),
1692
- UNIV3_FACTORY: (...args) => singleQuery(publicClient, call.UNIV3_FACTORY(...args)),
1693
- UNIV3_NFT_MANAGER: (...args) => singleQuery(publicClient, call.UNIV3_NFT_MANAGER(...args)),
1694
- UNIV3_QUOTER: (...args) => singleQuery(publicClient, call.UNIV3_QUOTER(...args)),
1695
- legoId: (...args) => singleQuery(publicClient, call.legoId(...args)),
1696
- isActivated: (...args) => singleQuery(publicClient, call.isActivated(...args)),
1697
- ADDY_REGISTRY: (...args) => singleQuery(publicClient, call.ADDY_REGISTRY(...args)),
1891
+ name: (...args) => singleQuery(publicClient, call.name(...args)),
1892
+ symbol: (...args) => singleQuery(publicClient, call.symbol(...args)),
1893
+ decimals: (...args) => singleQuery(publicClient, call.decimals(...args)),
1894
+ DOMAIN_SEPARATOR: (...args) => singleQuery(publicClient, call.DOMAIN_SEPARATOR(...args)),
1895
+ undyHq: (...args) => singleQuery(publicClient, call.undyHq(...args)),
1896
+ blacklisted: (...args) => singleQuery(publicClient, call.blacklisted(...args)),
1897
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
1898
+ balanceOf: (...args) => singleQuery(publicClient, call.balanceOf(...args)),
1899
+ allowance: (...args) => singleQuery(publicClient, call.allowance(...args)),
1900
+ totalSupply: (...args) => singleQuery(publicClient, call.totalSupply(...args)),
1901
+ TOKEN_NAME: (...args) => singleQuery(publicClient, call.TOKEN_NAME(...args)),
1902
+ TOKEN_SYMBOL: (...args) => singleQuery(publicClient, call.TOKEN_SYMBOL(...args)),
1903
+ TOKEN_DECIMALS: (...args) => singleQuery(publicClient, call.TOKEN_DECIMALS(...args)),
1904
+ VERSION: (...args) => singleQuery(publicClient, call.VERSION(...args)),
1905
+ nonces: (...args) => singleQuery(publicClient, call.nonces(...args)),
1906
+ getClaimablePerformanceFees: (...args) => singleQuery(publicClient, call.getClaimablePerformanceFees(...args)),
1907
+ lastUnderlyingBal: (...args) => singleQuery(publicClient, call.lastUnderlyingBal(...args)),
1908
+ pendingYieldRealized: (...args) => singleQuery(publicClient, call.pendingYieldRealized(...args)),
1909
+ vaultToLegoId: (...args) => singleQuery(publicClient, call.vaultToLegoId(...args)),
1910
+ assets: (...args) => singleQuery(publicClient, call.assets(...args)),
1911
+ indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
1912
+ numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args)),
1913
+ managers: (...args) => singleQuery(publicClient, call.managers(...args)),
1914
+ indexOfManager: (...args) => singleQuery(publicClient, call.indexOfManager(...args)),
1915
+ numManagers: (...args) => singleQuery(publicClient, call.numManagers(...args)),
1916
+ asset: (...args) => singleQuery(publicClient, call.asset(...args)),
1917
+ totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args)),
1918
+ getTotalAssets: (...args) => singleQuery(publicClient, call.getTotalAssets(...args)),
1919
+ maxDeposit: (...args) => singleQuery(publicClient, call.maxDeposit(...args)),
1920
+ previewDeposit: (...args) => singleQuery(publicClient, call.previewDeposit(...args)),
1921
+ maxMint: (...args) => singleQuery(publicClient, call.maxMint(...args)),
1922
+ previewMint: (...args) => singleQuery(publicClient, call.previewMint(...args)),
1923
+ maxWithdraw: (...args) => singleQuery(publicClient, call.maxWithdraw(...args)),
1924
+ previewWithdraw: (...args) => singleQuery(publicClient, call.previewWithdraw(...args)),
1925
+ maxRedeem: (...args) => singleQuery(publicClient, call.maxRedeem(...args)),
1926
+ previewRedeem: (...args) => singleQuery(publicClient, call.previewRedeem(...args)),
1927
+ convertToShares: (...args) => singleQuery(publicClient, call.convertToShares(...args)),
1928
+ convertToSharesSafe: (...args) => singleQuery(publicClient, call.convertToSharesSafe(...args)),
1929
+ convertToAssets: (...args) => singleQuery(publicClient, call.convertToAssets(...args)),
1930
+ convertToAssetsSafe: (...args) => singleQuery(publicClient, call.convertToAssetsSafe(...args)),
1698
1931
  // Mutations
1699
- changeGovernance: (...args) => mutate(walletClient, mutation.changeGovernance)(...args),
1700
- confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
1701
- cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange)(...args),
1702
- setGovernanceChangeDelay: (...args) => mutate(walletClient, mutation.setGovernanceChangeDelay)(...args),
1932
+ transfer: (...args) => mutate(walletClient, mutation.transfer)(...args),
1933
+ transferFrom: (...args) => mutate(walletClient, mutation.transferFrom)(...args),
1934
+ approve: (...args) => mutate(walletClient, mutation.approve)(...args),
1935
+ increaseAllowance: (...args) => mutate(walletClient, mutation.increaseAllowance)(...args),
1936
+ decreaseAllowance: (...args) => mutate(walletClient, mutation.decreaseAllowance)(...args),
1937
+ burn: (...args) => mutate(walletClient, mutation.burn)(...args),
1938
+ permit: (...args) => mutate(walletClient, mutation.permit)(...args),
1939
+ setBlacklist: (...args) => mutate(walletClient, mutation.setBlacklist)(...args),
1940
+ burnBlacklistTokens: (...args) => mutate(walletClient, mutation.burnBlacklistTokens)(...args),
1941
+ pause: (...args) => mutate(walletClient, mutation.pause)(...args),
1942
+ depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
1943
+ withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
1703
1944
  swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
1704
- uniswapV3SwapCallback: (...args) => mutate(walletClient, mutation.uniswapV3SwapCallback)(...args),
1705
- addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity)(...args),
1706
- removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity)(...args),
1707
1945
  claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
1708
- getBestSwapAmountOut: (...args) => mutate(walletClient, mutation.getBestSwapAmountOut)(...args),
1709
- getSwapAmountOut: (...args) => mutate(walletClient, mutation.getSwapAmountOut)(...args),
1710
- getBestSwapAmountIn: (...args) => mutate(walletClient, mutation.getBestSwapAmountIn)(...args),
1711
- getSwapAmountIn: (...args) => mutate(walletClient, mutation.getSwapAmountIn)(...args),
1712
- setCoreRouterPool: (...args) => mutate(walletClient, mutation.setCoreRouterPool)(...args),
1713
- recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
1714
- recoverNft: (...args) => mutate(walletClient, mutation.recoverNft)(...args),
1715
- setLegoId: (...args) => mutate(walletClient, mutation.setLegoId)(...args),
1716
- activate: (...args) => mutate(walletClient, mutation.activate)(...args),
1946
+ claimPerformanceFees: (...args) => mutate(walletClient, mutation.claimPerformanceFees)(...args),
1947
+ updateYieldPosition: (...args) => mutate(walletClient, mutation.updateYieldPosition)(...args),
1948
+ addManager: (...args) => mutate(walletClient, mutation.addManager)(...args),
1949
+ removeManager: (...args) => mutate(walletClient, mutation.removeManager)(...args),
1950
+ deposit: (...args) => mutate(walletClient, mutation.deposit)(...args),
1951
+ mint: (...args) => mutate(walletClient, mutation.mint)(...args),
1952
+ withdraw: (...args) => mutate(walletClient, mutation.withdraw)(...args),
1953
+ redeem: (...args) => mutate(walletClient, mutation.redeem)(...args),
1717
1954
  };
1718
1955
  }