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