@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
@@ -16,7 +16,7 @@ export declare const abi: readonly [{
16
16
  readonly type: "uint256";
17
17
  readonly indexed: false;
18
18
  }, {
19
- readonly name: "vaultId";
19
+ readonly name: "vaultIdOrLock";
20
20
  readonly type: "uint256";
21
21
  readonly indexed: false;
22
22
  }, {
@@ -226,6 +226,27 @@ export declare const abi: readonly [{
226
226
  }];
227
227
  readonly anonymous: false;
228
228
  readonly type: "event";
229
+ }, {
230
+ readonly name: "SnapShotPriceConfigSet";
231
+ readonly inputs: readonly [{
232
+ readonly name: "minSnapshotDelay";
233
+ readonly type: "uint256";
234
+ readonly indexed: false;
235
+ }, {
236
+ readonly name: "maxNumSnapshots";
237
+ readonly type: "uint256";
238
+ readonly indexed: false;
239
+ }, {
240
+ readonly name: "maxUpsideDeviation";
241
+ readonly type: "uint256";
242
+ readonly indexed: false;
243
+ }, {
244
+ readonly name: "staleTime";
245
+ readonly type: "uint256";
246
+ readonly indexed: false;
247
+ }];
248
+ readonly anonymous: false;
249
+ readonly type: "event";
229
250
  }, {
230
251
  readonly name: "AssetOpportunityAdded";
231
252
  readonly inputs: readonly [{
@@ -239,6 +260,36 @@ export declare const abi: readonly [{
239
260
  }];
240
261
  readonly anonymous: false;
241
262
  readonly type: "event";
263
+ }, {
264
+ readonly name: "AssetOpportunityRemoved";
265
+ readonly inputs: readonly [{
266
+ readonly name: "asset";
267
+ readonly type: "address";
268
+ readonly indexed: true;
269
+ }, {
270
+ readonly name: "vaultAddr";
271
+ readonly type: "address";
272
+ readonly indexed: true;
273
+ }];
274
+ readonly anonymous: false;
275
+ readonly type: "event";
276
+ }, {
277
+ readonly name: "PricePerShareSnapShotAdded";
278
+ readonly inputs: readonly [{
279
+ readonly name: "vaultToken";
280
+ readonly type: "address";
281
+ readonly indexed: true;
282
+ }, {
283
+ readonly name: "totalSupply";
284
+ readonly type: "uint256";
285
+ readonly indexed: false;
286
+ }, {
287
+ readonly name: "pricePerShare";
288
+ readonly type: "uint256";
289
+ readonly indexed: false;
290
+ }];
291
+ readonly anonymous: false;
292
+ readonly type: "event";
242
293
  }, {
243
294
  readonly stateMutability: "view";
244
295
  readonly type: "function";
@@ -280,6 +331,9 @@ export declare const abi: readonly [{
280
331
  }, {
281
332
  readonly name: "billing";
282
333
  readonly type: "address";
334
+ }, {
335
+ readonly name: "vaultRegistry";
336
+ readonly type: "address";
283
337
  }];
284
338
  }];
285
339
  }, {
@@ -384,49 +438,134 @@ export declare const abi: readonly [{
384
438
  }, {
385
439
  readonly stateMutability: "view";
386
440
  readonly type: "function";
387
- readonly name: "isPaused";
388
- readonly inputs: readonly [];
441
+ readonly name: "getWeightedPricePerShare";
442
+ readonly inputs: readonly [{
443
+ readonly name: "_vaultToken";
444
+ readonly type: "address";
445
+ }];
389
446
  readonly outputs: readonly [{
390
447
  readonly name: "";
391
- readonly type: "bool";
448
+ readonly type: "uint256";
392
449
  }];
393
450
  }, {
394
451
  readonly stateMutability: "view";
395
452
  readonly type: "function";
396
- readonly name: "assetOpportunities";
453
+ readonly name: "getLatestSnapshot";
397
454
  readonly inputs: readonly [{
398
- readonly name: "arg0";
455
+ readonly name: "_vaultToken";
399
456
  readonly type: "address";
400
457
  }, {
401
- readonly name: "arg1";
458
+ readonly name: "_pricePerShare";
402
459
  readonly type: "uint256";
403
460
  }];
404
461
  readonly outputs: readonly [{
405
462
  readonly name: "";
463
+ readonly type: "tuple";
464
+ readonly components: readonly [{
465
+ readonly name: "totalSupply";
466
+ readonly type: "uint256";
467
+ }, {
468
+ readonly name: "pricePerShare";
469
+ readonly type: "uint256";
470
+ }, {
471
+ readonly name: "lastUpdate";
472
+ readonly type: "uint256";
473
+ }];
474
+ }];
475
+ }, {
476
+ readonly stateMutability: "nonpayable";
477
+ readonly type: "function";
478
+ readonly name: "setSnapShotPriceConfig";
479
+ readonly inputs: readonly [{
480
+ readonly name: "_config";
481
+ readonly type: "tuple";
482
+ readonly components: readonly [{
483
+ readonly name: "minSnapshotDelay";
484
+ readonly type: "uint256";
485
+ }, {
486
+ readonly name: "maxNumSnapshots";
487
+ readonly type: "uint256";
488
+ }, {
489
+ readonly name: "maxUpsideDeviation";
490
+ readonly type: "uint256";
491
+ }, {
492
+ readonly name: "staleTime";
493
+ readonly type: "uint256";
494
+ }];
495
+ }];
496
+ readonly outputs: readonly [];
497
+ }, {
498
+ readonly stateMutability: "view";
499
+ readonly type: "function";
500
+ readonly name: "isValidPriceConfig";
501
+ readonly inputs: readonly [{
502
+ readonly name: "_config";
503
+ readonly type: "tuple";
504
+ readonly components: readonly [{
505
+ readonly name: "minSnapshotDelay";
506
+ readonly type: "uint256";
507
+ }, {
508
+ readonly name: "maxNumSnapshots";
509
+ readonly type: "uint256";
510
+ }, {
511
+ readonly name: "maxUpsideDeviation";
512
+ readonly type: "uint256";
513
+ }, {
514
+ readonly name: "staleTime";
515
+ readonly type: "uint256";
516
+ }];
517
+ }];
518
+ readonly outputs: readonly [{
519
+ readonly name: "";
520
+ readonly type: "bool";
521
+ }];
522
+ }, {
523
+ readonly stateMutability: "view";
524
+ readonly type: "function";
525
+ readonly name: "vaultToAsset";
526
+ readonly inputs: readonly [{
527
+ readonly name: "arg0";
406
528
  readonly type: "address";
407
529
  }];
530
+ readonly outputs: readonly [{
531
+ readonly name: "";
532
+ readonly type: "tuple";
533
+ readonly components: readonly [{
534
+ readonly name: "underlyingAsset";
535
+ readonly type: "address";
536
+ }, {
537
+ readonly name: "decimals";
538
+ readonly type: "uint256";
539
+ }, {
540
+ readonly name: "lastAveragePricePerShare";
541
+ readonly type: "uint256";
542
+ }];
543
+ }];
408
544
  }, {
409
545
  readonly stateMutability: "view";
410
546
  readonly type: "function";
411
- readonly name: "indexOfAssetOpportunity";
547
+ readonly name: "assetOpportunities";
412
548
  readonly inputs: readonly [{
413
549
  readonly name: "arg0";
414
550
  readonly type: "address";
415
551
  }, {
416
552
  readonly name: "arg1";
417
- readonly type: "address";
553
+ readonly type: "uint256";
418
554
  }];
419
555
  readonly outputs: readonly [{
420
556
  readonly name: "";
421
- readonly type: "uint256";
557
+ readonly type: "address";
422
558
  }];
423
559
  }, {
424
560
  readonly stateMutability: "view";
425
561
  readonly type: "function";
426
- readonly name: "numAssetOpportunities";
562
+ readonly name: "indexOfAssetOpportunity";
427
563
  readonly inputs: readonly [{
428
564
  readonly name: "arg0";
429
565
  readonly type: "address";
566
+ }, {
567
+ readonly name: "arg1";
568
+ readonly type: "address";
430
569
  }];
431
570
  readonly outputs: readonly [{
432
571
  readonly name: "";
@@ -435,14 +574,14 @@ export declare const abi: readonly [{
435
574
  }, {
436
575
  readonly stateMutability: "view";
437
576
  readonly type: "function";
438
- readonly name: "vaultToAsset";
577
+ readonly name: "numAssetOpportunities";
439
578
  readonly inputs: readonly [{
440
579
  readonly name: "arg0";
441
580
  readonly type: "address";
442
581
  }];
443
582
  readonly outputs: readonly [{
444
583
  readonly name: "";
445
- readonly type: "address";
584
+ readonly type: "uint256";
446
585
  }];
447
586
  }, {
448
587
  readonly stateMutability: "view";
@@ -480,44 +619,108 @@ export declare const abi: readonly [{
480
619
  }, {
481
620
  readonly stateMutability: "view";
482
621
  readonly type: "function";
483
- readonly name: "hasCapability";
622
+ readonly name: "snapShotData";
484
623
  readonly inputs: readonly [{
485
- readonly name: "_action";
624
+ readonly name: "arg0";
625
+ readonly type: "address";
626
+ }];
627
+ readonly outputs: readonly [{
628
+ readonly name: "";
629
+ readonly type: "tuple";
630
+ readonly components: readonly [{
631
+ readonly name: "lastSnapShot";
632
+ readonly type: "tuple";
633
+ readonly components: readonly [{
634
+ readonly name: "totalSupply";
635
+ readonly type: "uint256";
636
+ }, {
637
+ readonly name: "pricePerShare";
638
+ readonly type: "uint256";
639
+ }, {
640
+ readonly name: "lastUpdate";
641
+ readonly type: "uint256";
642
+ }];
643
+ }, {
644
+ readonly name: "nextIndex";
645
+ readonly type: "uint256";
646
+ }];
647
+ }];
648
+ }, {
649
+ readonly stateMutability: "view";
650
+ readonly type: "function";
651
+ readonly name: "snapShots";
652
+ readonly inputs: readonly [{
653
+ readonly name: "arg0";
654
+ readonly type: "address";
655
+ }, {
656
+ readonly name: "arg1";
486
657
  readonly type: "uint256";
487
658
  }];
488
659
  readonly outputs: readonly [{
489
660
  readonly name: "";
490
- readonly type: "bool";
661
+ readonly type: "tuple";
662
+ readonly components: readonly [{
663
+ readonly name: "totalSupply";
664
+ readonly type: "uint256";
665
+ }, {
666
+ readonly name: "pricePerShare";
667
+ readonly type: "uint256";
668
+ }, {
669
+ readonly name: "lastUpdate";
670
+ readonly type: "uint256";
671
+ }];
491
672
  }];
492
673
  }, {
493
674
  readonly stateMutability: "view";
494
675
  readonly type: "function";
495
- readonly name: "getRegistries";
676
+ readonly name: "snapShotPriceConfig";
496
677
  readonly inputs: readonly [];
497
678
  readonly outputs: readonly [{
498
679
  readonly name: "";
499
- readonly type: "address[]";
680
+ readonly type: "tuple";
681
+ readonly components: readonly [{
682
+ readonly name: "minSnapshotDelay";
683
+ readonly type: "uint256";
684
+ }, {
685
+ readonly name: "maxNumSnapshots";
686
+ readonly type: "uint256";
687
+ }, {
688
+ readonly name: "maxUpsideDeviation";
689
+ readonly type: "uint256";
690
+ }, {
691
+ readonly name: "staleTime";
692
+ readonly type: "uint256";
693
+ }];
500
694
  }];
501
695
  }, {
502
696
  readonly stateMutability: "view";
503
697
  readonly type: "function";
504
- readonly name: "getAccessForLego";
698
+ readonly name: "isPaused";
699
+ readonly inputs: readonly [];
700
+ readonly outputs: readonly [{
701
+ readonly name: "";
702
+ readonly type: "bool";
703
+ }];
704
+ }, {
705
+ readonly stateMutability: "view";
706
+ readonly type: "function";
707
+ readonly name: "hasCapability";
505
708
  readonly inputs: readonly [{
506
- readonly name: "_user";
507
- readonly type: "address";
508
- }, {
509
709
  readonly name: "_action";
510
710
  readonly type: "uint256";
511
711
  }];
512
712
  readonly outputs: readonly [{
513
713
  readonly name: "";
514
- readonly type: "address";
515
- }, {
516
- readonly name: "";
517
- readonly type: "string";
518
- }, {
714
+ readonly type: "bool";
715
+ }];
716
+ }, {
717
+ readonly stateMutability: "view";
718
+ readonly type: "function";
719
+ readonly name: "getRegistries";
720
+ readonly inputs: readonly [];
721
+ readonly outputs: readonly [{
519
722
  readonly name: "";
520
- readonly type: "uint256";
723
+ readonly type: "address[]";
521
724
  }];
522
725
  }, {
523
726
  readonly stateMutability: "view";
@@ -538,61 +741,27 @@ export declare const abi: readonly [{
538
741
  readonly type: "bool";
539
742
  }];
540
743
  }, {
541
- readonly stateMutability: "nonpayable";
744
+ readonly stateMutability: "view";
542
745
  readonly type: "function";
543
- readonly name: "addCollateral";
746
+ readonly name: "getUnderlyingAsset";
544
747
  readonly inputs: readonly [{
545
- readonly name: "_asset";
546
- readonly type: "address";
547
- }, {
548
- readonly name: "_amount";
549
- readonly type: "uint256";
550
- }, {
551
- readonly name: "_extraData";
552
- readonly type: "bytes32";
553
- }, {
554
- readonly name: "_recipient";
748
+ readonly name: "_vaultToken";
555
749
  readonly type: "address";
556
750
  }];
557
751
  readonly outputs: readonly [{
558
752
  readonly name: "";
559
- readonly type: "uint256";
560
- }, {
561
- readonly name: "";
562
- readonly type: "uint256";
753
+ readonly type: "address";
563
754
  }];
564
755
  }, {
565
- readonly stateMutability: "nonpayable";
756
+ readonly stateMutability: "view";
566
757
  readonly type: "function";
567
- readonly name: "addCollateral";
758
+ readonly name: "getUnderlyingBalances";
568
759
  readonly inputs: readonly [{
569
- readonly name: "_asset";
760
+ readonly name: "_vaultToken";
570
761
  readonly type: "address";
571
762
  }, {
572
- readonly name: "_amount";
763
+ readonly name: "_vaultTokenBalance";
573
764
  readonly type: "uint256";
574
- }, {
575
- readonly name: "_extraData";
576
- readonly type: "bytes32";
577
- }, {
578
- readonly name: "_recipient";
579
- readonly type: "address";
580
- }, {
581
- readonly name: "_miniAddys";
582
- readonly type: "tuple";
583
- readonly components: readonly [{
584
- readonly name: "ledger";
585
- readonly type: "address";
586
- }, {
587
- readonly name: "missionControl";
588
- readonly type: "address";
589
- }, {
590
- readonly name: "legoBook";
591
- readonly type: "address";
592
- }, {
593
- readonly name: "appraiser";
594
- readonly type: "address";
595
- }];
596
765
  }];
597
766
  readonly outputs: readonly [{
598
767
  readonly name: "";
@@ -602,63 +771,50 @@ export declare const abi: readonly [{
602
771
  readonly type: "uint256";
603
772
  }];
604
773
  }, {
605
- readonly stateMutability: "nonpayable";
774
+ readonly stateMutability: "view";
606
775
  readonly type: "function";
607
- readonly name: "removeCollateral";
776
+ readonly name: "getUnderlyingAmount";
608
777
  readonly inputs: readonly [{
609
- readonly name: "_asset";
778
+ readonly name: "_vaultToken";
610
779
  readonly type: "address";
611
780
  }, {
612
- readonly name: "_amount";
781
+ readonly name: "_vaultTokenAmount";
613
782
  readonly type: "uint256";
614
- }, {
615
- readonly name: "_extraData";
616
- readonly type: "bytes32";
617
- }, {
618
- readonly name: "_recipient";
619
- readonly type: "address";
620
783
  }];
621
784
  readonly outputs: readonly [{
622
785
  readonly name: "";
623
786
  readonly type: "uint256";
624
- }, {
625
- readonly name: "";
626
- readonly type: "uint256";
627
787
  }];
628
788
  }, {
629
- readonly stateMutability: "nonpayable";
789
+ readonly stateMutability: "view";
630
790
  readonly type: "function";
631
- readonly name: "removeCollateral";
791
+ readonly name: "getUnderlyingAmountSafe";
632
792
  readonly inputs: readonly [{
633
- readonly name: "_asset";
793
+ readonly name: "_vaultToken";
634
794
  readonly type: "address";
635
795
  }, {
636
- readonly name: "_amount";
796
+ readonly name: "_vaultTokenBalance";
637
797
  readonly type: "uint256";
638
- }, {
639
- readonly name: "_extraData";
640
- readonly type: "bytes32";
641
- }, {
642
- readonly name: "_recipient";
798
+ }];
799
+ readonly outputs: readonly [{
800
+ readonly name: "";
801
+ readonly type: "uint256";
802
+ }];
803
+ }, {
804
+ readonly stateMutability: "view";
805
+ readonly type: "function";
806
+ readonly name: "getUnderlyingData";
807
+ readonly inputs: readonly [{
808
+ readonly name: "_vaultToken";
643
809
  readonly type: "address";
644
810
  }, {
645
- readonly name: "_miniAddys";
646
- readonly type: "tuple";
647
- readonly components: readonly [{
648
- readonly name: "ledger";
649
- readonly type: "address";
650
- }, {
651
- readonly name: "missionControl";
652
- readonly type: "address";
653
- }, {
654
- readonly name: "legoBook";
655
- readonly type: "address";
656
- }, {
657
- readonly name: "appraiser";
658
- readonly type: "address";
659
- }];
811
+ readonly name: "_vaultTokenAmount";
812
+ readonly type: "uint256";
660
813
  }];
661
814
  readonly outputs: readonly [{
815
+ readonly name: "";
816
+ readonly type: "address";
817
+ }, {
662
818
  readonly name: "";
663
819
  readonly type: "uint256";
664
820
  }, {
@@ -666,23 +822,23 @@ export declare const abi: readonly [{
666
822
  readonly type: "uint256";
667
823
  }];
668
824
  }, {
669
- readonly stateMutability: "nonpayable";
825
+ readonly stateMutability: "view";
670
826
  readonly type: "function";
671
- readonly name: "borrow";
827
+ readonly name: "getUnderlyingData";
672
828
  readonly inputs: readonly [{
673
- readonly name: "_borrowAsset";
829
+ readonly name: "_vaultToken";
674
830
  readonly type: "address";
675
831
  }, {
676
- readonly name: "_amount";
832
+ readonly name: "_vaultTokenAmount";
677
833
  readonly type: "uint256";
678
834
  }, {
679
- readonly name: "_extraData";
680
- readonly type: "bytes32";
681
- }, {
682
- readonly name: "_recipient";
835
+ readonly name: "_appraiser";
683
836
  readonly type: "address";
684
837
  }];
685
838
  readonly outputs: readonly [{
839
+ readonly name: "";
840
+ readonly type: "address";
841
+ }, {
686
842
  readonly name: "";
687
843
  readonly type: "uint256";
688
844
  }, {
@@ -690,172 +846,206 @@ export declare const abi: readonly [{
690
846
  readonly type: "uint256";
691
847
  }];
692
848
  }, {
693
- readonly stateMutability: "nonpayable";
849
+ readonly stateMutability: "view";
694
850
  readonly type: "function";
695
- readonly name: "borrow";
851
+ readonly name: "getUsdValueOfVaultToken";
696
852
  readonly inputs: readonly [{
697
- readonly name: "_borrowAsset";
853
+ readonly name: "_vaultToken";
698
854
  readonly type: "address";
699
855
  }, {
700
- readonly name: "_amount";
856
+ readonly name: "_vaultTokenAmount";
701
857
  readonly type: "uint256";
702
- }, {
703
- readonly name: "_extraData";
704
- readonly type: "bytes32";
705
- }, {
706
- readonly name: "_recipient";
707
- readonly type: "address";
708
- }, {
709
- readonly name: "_miniAddys";
710
- readonly type: "tuple";
711
- readonly components: readonly [{
712
- readonly name: "ledger";
713
- readonly type: "address";
714
- }, {
715
- readonly name: "missionControl";
716
- readonly type: "address";
717
- }, {
718
- readonly name: "legoBook";
719
- readonly type: "address";
720
- }, {
721
- readonly name: "appraiser";
722
- readonly type: "address";
723
- }];
724
858
  }];
725
859
  readonly outputs: readonly [{
726
860
  readonly name: "";
727
861
  readonly type: "uint256";
728
- }, {
729
- readonly name: "";
730
- readonly type: "uint256";
731
862
  }];
732
863
  }, {
733
- readonly stateMutability: "nonpayable";
864
+ readonly stateMutability: "view";
734
865
  readonly type: "function";
735
- readonly name: "repayDebt";
866
+ readonly name: "getUsdValueOfVaultToken";
736
867
  readonly inputs: readonly [{
737
- readonly name: "_paymentAsset";
868
+ readonly name: "_vaultToken";
738
869
  readonly type: "address";
739
870
  }, {
740
- readonly name: "_paymentAmount";
871
+ readonly name: "_vaultTokenAmount";
741
872
  readonly type: "uint256";
742
873
  }, {
743
- readonly name: "_extraData";
744
- readonly type: "bytes32";
745
- }, {
746
- readonly name: "_recipient";
874
+ readonly name: "_appraiser";
747
875
  readonly type: "address";
748
876
  }];
749
877
  readonly outputs: readonly [{
750
878
  readonly name: "";
751
879
  readonly type: "uint256";
752
- }, {
880
+ }];
881
+ }, {
882
+ readonly stateMutability: "view";
883
+ readonly type: "function";
884
+ readonly name: "isRebasing";
885
+ readonly inputs: readonly [];
886
+ readonly outputs: readonly [{
887
+ readonly name: "";
888
+ readonly type: "bool";
889
+ }];
890
+ }, {
891
+ readonly stateMutability: "view";
892
+ readonly type: "function";
893
+ readonly name: "getPricePerShare";
894
+ readonly inputs: readonly [{
895
+ readonly name: "_vaultToken";
896
+ readonly type: "address";
897
+ }];
898
+ readonly outputs: readonly [{
753
899
  readonly name: "";
754
900
  readonly type: "uint256";
755
901
  }];
756
902
  }, {
757
- readonly stateMutability: "nonpayable";
903
+ readonly stateMutability: "view";
758
904
  readonly type: "function";
759
- readonly name: "repayDebt";
905
+ readonly name: "getPricePerShare";
760
906
  readonly inputs: readonly [{
761
- readonly name: "_paymentAsset";
907
+ readonly name: "_vaultToken";
762
908
  readonly type: "address";
763
909
  }, {
764
- readonly name: "_paymentAmount";
910
+ readonly name: "_decimals";
911
+ readonly type: "uint256";
912
+ }];
913
+ readonly outputs: readonly [{
914
+ readonly name: "";
765
915
  readonly type: "uint256";
916
+ }];
917
+ }, {
918
+ readonly stateMutability: "view";
919
+ readonly type: "function";
920
+ readonly name: "getVaultTokenAmount";
921
+ readonly inputs: readonly [{
922
+ readonly name: "_asset";
923
+ readonly type: "address";
766
924
  }, {
767
- readonly name: "_extraData";
768
- readonly type: "bytes32";
925
+ readonly name: "_assetAmount";
926
+ readonly type: "uint256";
769
927
  }, {
770
- readonly name: "_recipient";
928
+ readonly name: "_vaultToken";
771
929
  readonly type: "address";
772
- }, {
773
- readonly name: "_miniAddys";
774
- readonly type: "tuple";
775
- readonly components: readonly [{
776
- readonly name: "ledger";
777
- readonly type: "address";
778
- }, {
779
- readonly name: "missionControl";
780
- readonly type: "address";
781
- }, {
782
- readonly name: "legoBook";
783
- readonly type: "address";
784
- }, {
785
- readonly name: "appraiser";
786
- readonly type: "address";
787
- }];
788
930
  }];
789
931
  readonly outputs: readonly [{
790
932
  readonly name: "";
791
933
  readonly type: "uint256";
934
+ }];
935
+ }, {
936
+ readonly stateMutability: "view";
937
+ readonly type: "function";
938
+ readonly name: "isEligibleVaultForTrialFunds";
939
+ readonly inputs: readonly [{
940
+ readonly name: "_vaultToken";
941
+ readonly type: "address";
792
942
  }, {
943
+ readonly name: "_underlyingAsset";
944
+ readonly type: "address";
945
+ }];
946
+ readonly outputs: readonly [{
793
947
  readonly name: "";
794
- readonly type: "uint256";
948
+ readonly type: "bool";
795
949
  }];
796
950
  }, {
797
- readonly stateMutability: "nonpayable";
951
+ readonly stateMutability: "view";
798
952
  readonly type: "function";
799
- readonly name: "claimRewards";
953
+ readonly name: "isEligibleForYieldBonus";
800
954
  readonly inputs: readonly [{
801
- readonly name: "_user";
955
+ readonly name: "_asset";
802
956
  readonly type: "address";
803
- }, {
804
- readonly name: "_rewardToken";
957
+ }];
958
+ readonly outputs: readonly [{
959
+ readonly name: "";
960
+ readonly type: "bool";
961
+ }];
962
+ }, {
963
+ readonly stateMutability: "view";
964
+ readonly type: "function";
965
+ readonly name: "totalAssets";
966
+ readonly inputs: readonly [{
967
+ readonly name: "_vaultToken";
805
968
  readonly type: "address";
806
- }, {
807
- readonly name: "_rewardAmount";
969
+ }];
970
+ readonly outputs: readonly [{
971
+ readonly name: "";
808
972
  readonly type: "uint256";
809
- }, {
810
- readonly name: "_extraData";
811
- readonly type: "bytes32";
973
+ }];
974
+ }, {
975
+ readonly stateMutability: "view";
976
+ readonly type: "function";
977
+ readonly name: "totalBorrows";
978
+ readonly inputs: readonly [{
979
+ readonly name: "_vaultToken";
980
+ readonly type: "address";
812
981
  }];
813
982
  readonly outputs: readonly [{
814
983
  readonly name: "";
815
984
  readonly type: "uint256";
985
+ }];
986
+ }, {
987
+ readonly stateMutability: "view";
988
+ readonly type: "function";
989
+ readonly name: "canRegisterVaultToken";
990
+ readonly inputs: readonly [{
991
+ readonly name: "_asset";
992
+ readonly type: "address";
816
993
  }, {
994
+ readonly name: "_vaultToken";
995
+ readonly type: "address";
996
+ }];
997
+ readonly outputs: readonly [{
817
998
  readonly name: "";
818
- readonly type: "uint256";
999
+ readonly type: "bool";
819
1000
  }];
820
1001
  }, {
821
1002
  readonly stateMutability: "nonpayable";
822
1003
  readonly type: "function";
823
- readonly name: "claimRewards";
1004
+ readonly name: "registerVaultTokenLocally";
824
1005
  readonly inputs: readonly [{
825
- readonly name: "_user";
1006
+ readonly name: "_asset";
826
1007
  readonly type: "address";
827
1008
  }, {
828
- readonly name: "_rewardToken";
1009
+ readonly name: "_vaultAddr";
829
1010
  readonly type: "address";
830
- }, {
831
- readonly name: "_rewardAmount";
832
- readonly type: "uint256";
833
- }, {
834
- readonly name: "_extraData";
835
- readonly type: "bytes32";
836
- }, {
837
- readonly name: "_miniAddys";
1011
+ }];
1012
+ readonly outputs: readonly [{
1013
+ readonly name: "";
838
1014
  readonly type: "tuple";
839
1015
  readonly components: readonly [{
840
- readonly name: "ledger";
1016
+ readonly name: "underlyingAsset";
841
1017
  readonly type: "address";
842
1018
  }, {
843
- readonly name: "missionControl";
844
- readonly type: "address";
845
- }, {
846
- readonly name: "legoBook";
847
- readonly type: "address";
1019
+ readonly name: "decimals";
1020
+ readonly type: "uint256";
848
1021
  }, {
849
- readonly name: "appraiser";
850
- readonly type: "address";
1022
+ readonly name: "lastAveragePricePerShare";
1023
+ readonly type: "uint256";
851
1024
  }];
852
1025
  }];
853
- readonly outputs: readonly [{
854
- readonly name: "";
855
- readonly type: "uint256";
1026
+ }, {
1027
+ readonly stateMutability: "nonpayable";
1028
+ readonly type: "function";
1029
+ readonly name: "deregisterVaultTokenLocally";
1030
+ readonly inputs: readonly [{
1031
+ readonly name: "_asset";
1032
+ readonly type: "address";
856
1033
  }, {
1034
+ readonly name: "_vaultAddr";
1035
+ readonly type: "address";
1036
+ }];
1037
+ readonly outputs: readonly [];
1038
+ }, {
1039
+ readonly stateMutability: "nonpayable";
1040
+ readonly type: "function";
1041
+ readonly name: "addPriceSnapshot";
1042
+ readonly inputs: readonly [{
1043
+ readonly name: "_vaultToken";
1044
+ readonly type: "address";
1045
+ }];
1046
+ readonly outputs: readonly [{
857
1047
  readonly name: "";
858
- readonly type: "uint256";
1048
+ readonly type: "bool";
859
1049
  }];
860
1050
  }, {
861
1051
  readonly stateMutability: "nonpayable";
@@ -1016,146 +1206,255 @@ export declare const abi: readonly [{
1016
1206
  readonly type: "uint256";
1017
1207
  }];
1018
1208
  }, {
1019
- readonly stateMutability: "view";
1020
- readonly type: "function";
1021
- readonly name: "isRebasing";
1022
- readonly inputs: readonly [];
1023
- readonly outputs: readonly [{
1024
- readonly name: "";
1025
- readonly type: "bool";
1026
- }];
1027
- }, {
1028
- readonly stateMutability: "view";
1209
+ readonly stateMutability: "nonpayable";
1029
1210
  readonly type: "function";
1030
- readonly name: "isEligibleVaultForTrialFunds";
1211
+ readonly name: "addCollateral";
1031
1212
  readonly inputs: readonly [{
1032
- readonly name: "_vaultToken";
1213
+ readonly name: "_asset";
1033
1214
  readonly type: "address";
1034
1215
  }, {
1035
- readonly name: "_underlyingAsset";
1216
+ readonly name: "_amount";
1217
+ readonly type: "uint256";
1218
+ }, {
1219
+ readonly name: "_extraData";
1220
+ readonly type: "bytes32";
1221
+ }, {
1222
+ readonly name: "_recipient";
1036
1223
  readonly type: "address";
1037
1224
  }];
1038
1225
  readonly outputs: readonly [{
1039
1226
  readonly name: "";
1040
- readonly type: "bool";
1227
+ readonly type: "uint256";
1228
+ }, {
1229
+ readonly name: "";
1230
+ readonly type: "uint256";
1041
1231
  }];
1042
1232
  }, {
1043
- readonly stateMutability: "view";
1233
+ readonly stateMutability: "nonpayable";
1044
1234
  readonly type: "function";
1045
- readonly name: "isEligibleForYieldBonus";
1235
+ readonly name: "addCollateral";
1046
1236
  readonly inputs: readonly [{
1047
1237
  readonly name: "_asset";
1048
1238
  readonly type: "address";
1049
- }];
1050
- readonly outputs: readonly [{
1051
- readonly name: "";
1052
- readonly type: "bool";
1053
- }];
1054
- }, {
1055
- readonly stateMutability: "view";
1056
- readonly type: "function";
1057
- readonly name: "isVaultToken";
1058
- readonly inputs: readonly [{
1059
- readonly name: "_vaultToken";
1239
+ }, {
1240
+ readonly name: "_amount";
1241
+ readonly type: "uint256";
1242
+ }, {
1243
+ readonly name: "_extraData";
1244
+ readonly type: "bytes32";
1245
+ }, {
1246
+ readonly name: "_recipient";
1060
1247
  readonly type: "address";
1248
+ }, {
1249
+ readonly name: "_miniAddys";
1250
+ readonly type: "tuple";
1251
+ readonly components: readonly [{
1252
+ readonly name: "ledger";
1253
+ readonly type: "address";
1254
+ }, {
1255
+ readonly name: "missionControl";
1256
+ readonly type: "address";
1257
+ }, {
1258
+ readonly name: "legoBook";
1259
+ readonly type: "address";
1260
+ }, {
1261
+ readonly name: "appraiser";
1262
+ readonly type: "address";
1263
+ }];
1061
1264
  }];
1062
1265
  readonly outputs: readonly [{
1063
1266
  readonly name: "";
1064
- readonly type: "bool";
1267
+ readonly type: "uint256";
1268
+ }, {
1269
+ readonly name: "";
1270
+ readonly type: "uint256";
1065
1271
  }];
1066
1272
  }, {
1067
- readonly stateMutability: "view";
1273
+ readonly stateMutability: "nonpayable";
1068
1274
  readonly type: "function";
1069
- readonly name: "getUnderlyingAsset";
1275
+ readonly name: "removeCollateral";
1070
1276
  readonly inputs: readonly [{
1071
- readonly name: "_vaultToken";
1277
+ readonly name: "_asset";
1278
+ readonly type: "address";
1279
+ }, {
1280
+ readonly name: "_amount";
1281
+ readonly type: "uint256";
1282
+ }, {
1283
+ readonly name: "_extraData";
1284
+ readonly type: "bytes32";
1285
+ }, {
1286
+ readonly name: "_recipient";
1072
1287
  readonly type: "address";
1073
1288
  }];
1074
1289
  readonly outputs: readonly [{
1075
1290
  readonly name: "";
1076
- readonly type: "address";
1291
+ readonly type: "uint256";
1292
+ }, {
1293
+ readonly name: "";
1294
+ readonly type: "uint256";
1077
1295
  }];
1078
1296
  }, {
1079
- readonly stateMutability: "view";
1297
+ readonly stateMutability: "nonpayable";
1080
1298
  readonly type: "function";
1081
- readonly name: "getUnderlyingAmount";
1299
+ readonly name: "removeCollateral";
1082
1300
  readonly inputs: readonly [{
1083
- readonly name: "_vaultToken";
1301
+ readonly name: "_asset";
1084
1302
  readonly type: "address";
1085
1303
  }, {
1086
- readonly name: "_vaultTokenAmount";
1304
+ readonly name: "_amount";
1087
1305
  readonly type: "uint256";
1306
+ }, {
1307
+ readonly name: "_extraData";
1308
+ readonly type: "bytes32";
1309
+ }, {
1310
+ readonly name: "_recipient";
1311
+ readonly type: "address";
1312
+ }, {
1313
+ readonly name: "_miniAddys";
1314
+ readonly type: "tuple";
1315
+ readonly components: readonly [{
1316
+ readonly name: "ledger";
1317
+ readonly type: "address";
1318
+ }, {
1319
+ readonly name: "missionControl";
1320
+ readonly type: "address";
1321
+ }, {
1322
+ readonly name: "legoBook";
1323
+ readonly type: "address";
1324
+ }, {
1325
+ readonly name: "appraiser";
1326
+ readonly type: "address";
1327
+ }];
1088
1328
  }];
1089
1329
  readonly outputs: readonly [{
1090
1330
  readonly name: "";
1091
1331
  readonly type: "uint256";
1332
+ }, {
1333
+ readonly name: "";
1334
+ readonly type: "uint256";
1092
1335
  }];
1093
1336
  }, {
1094
- readonly stateMutability: "view";
1337
+ readonly stateMutability: "nonpayable";
1095
1338
  readonly type: "function";
1096
- readonly name: "getVaultTokenAmount";
1339
+ readonly name: "borrow";
1097
1340
  readonly inputs: readonly [{
1098
- readonly name: "_asset";
1341
+ readonly name: "_borrowAsset";
1099
1342
  readonly type: "address";
1100
1343
  }, {
1101
- readonly name: "_assetAmount";
1344
+ readonly name: "_amount";
1102
1345
  readonly type: "uint256";
1103
1346
  }, {
1104
- readonly name: "_vaultToken";
1347
+ readonly name: "_extraData";
1348
+ readonly type: "bytes32";
1349
+ }, {
1350
+ readonly name: "_recipient";
1105
1351
  readonly type: "address";
1106
1352
  }];
1107
1353
  readonly outputs: readonly [{
1108
1354
  readonly name: "";
1109
1355
  readonly type: "uint256";
1356
+ }, {
1357
+ readonly name: "";
1358
+ readonly type: "uint256";
1110
1359
  }];
1111
1360
  }, {
1112
- readonly stateMutability: "view";
1361
+ readonly stateMutability: "nonpayable";
1113
1362
  readonly type: "function";
1114
- readonly name: "getUsdValueOfVaultToken";
1363
+ readonly name: "borrow";
1115
1364
  readonly inputs: readonly [{
1116
- readonly name: "_vaultToken";
1365
+ readonly name: "_borrowAsset";
1117
1366
  readonly type: "address";
1118
1367
  }, {
1119
- readonly name: "_vaultTokenAmount";
1368
+ readonly name: "_amount";
1120
1369
  readonly type: "uint256";
1370
+ }, {
1371
+ readonly name: "_extraData";
1372
+ readonly type: "bytes32";
1373
+ }, {
1374
+ readonly name: "_recipient";
1375
+ readonly type: "address";
1376
+ }, {
1377
+ readonly name: "_miniAddys";
1378
+ readonly type: "tuple";
1379
+ readonly components: readonly [{
1380
+ readonly name: "ledger";
1381
+ readonly type: "address";
1382
+ }, {
1383
+ readonly name: "missionControl";
1384
+ readonly type: "address";
1385
+ }, {
1386
+ readonly name: "legoBook";
1387
+ readonly type: "address";
1388
+ }, {
1389
+ readonly name: "appraiser";
1390
+ readonly type: "address";
1391
+ }];
1121
1392
  }];
1122
1393
  readonly outputs: readonly [{
1123
1394
  readonly name: "";
1124
1395
  readonly type: "uint256";
1396
+ }, {
1397
+ readonly name: "";
1398
+ readonly type: "uint256";
1125
1399
  }];
1126
1400
  }, {
1127
- readonly stateMutability: "view";
1401
+ readonly stateMutability: "nonpayable";
1128
1402
  readonly type: "function";
1129
- readonly name: "getUsdValueOfVaultToken";
1403
+ readonly name: "repayDebt";
1130
1404
  readonly inputs: readonly [{
1131
- readonly name: "_vaultToken";
1405
+ readonly name: "_paymentAsset";
1132
1406
  readonly type: "address";
1133
1407
  }, {
1134
- readonly name: "_vaultTokenAmount";
1408
+ readonly name: "_paymentAmount";
1135
1409
  readonly type: "uint256";
1136
1410
  }, {
1137
- readonly name: "_appraiser";
1411
+ readonly name: "_extraData";
1412
+ readonly type: "bytes32";
1413
+ }, {
1414
+ readonly name: "_recipient";
1138
1415
  readonly type: "address";
1139
1416
  }];
1140
1417
  readonly outputs: readonly [{
1141
1418
  readonly name: "";
1142
1419
  readonly type: "uint256";
1420
+ }, {
1421
+ readonly name: "";
1422
+ readonly type: "uint256";
1143
1423
  }];
1144
1424
  }, {
1145
- readonly stateMutability: "view";
1425
+ readonly stateMutability: "nonpayable";
1146
1426
  readonly type: "function";
1147
- readonly name: "getUnderlyingData";
1427
+ readonly name: "repayDebt";
1148
1428
  readonly inputs: readonly [{
1149
- readonly name: "_vaultToken";
1429
+ readonly name: "_paymentAsset";
1150
1430
  readonly type: "address";
1151
1431
  }, {
1152
- readonly name: "_vaultTokenAmount";
1432
+ readonly name: "_paymentAmount";
1153
1433
  readonly type: "uint256";
1154
- }];
1155
- readonly outputs: readonly [{
1156
- readonly name: "";
1434
+ }, {
1435
+ readonly name: "_extraData";
1436
+ readonly type: "bytes32";
1437
+ }, {
1438
+ readonly name: "_recipient";
1157
1439
  readonly type: "address";
1158
1440
  }, {
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
+ }];
1456
+ }];
1457
+ readonly outputs: readonly [{
1159
1458
  readonly name: "";
1160
1459
  readonly type: "uint256";
1161
1460
  }, {
@@ -1163,23 +1462,23 @@ export declare const abi: readonly [{
1163
1462
  readonly type: "uint256";
1164
1463
  }];
1165
1464
  }, {
1166
- readonly stateMutability: "view";
1465
+ readonly stateMutability: "nonpayable";
1167
1466
  readonly type: "function";
1168
- readonly name: "getUnderlyingData";
1467
+ readonly name: "claimRewards";
1169
1468
  readonly inputs: readonly [{
1170
- readonly name: "_vaultToken";
1469
+ readonly name: "_user";
1171
1470
  readonly type: "address";
1172
1471
  }, {
1173
- readonly name: "_vaultTokenAmount";
1472
+ readonly name: "_rewardToken";
1473
+ readonly type: "address";
1474
+ }, {
1475
+ readonly name: "_rewardAmount";
1174
1476
  readonly type: "uint256";
1175
1477
  }, {
1176
- readonly name: "_appraiser";
1177
- readonly type: "address";
1478
+ readonly name: "_extraData";
1479
+ readonly type: "bytes32";
1178
1480
  }];
1179
1481
  readonly outputs: readonly [{
1180
- readonly name: "";
1181
- readonly type: "address";
1182
- }, {
1183
1482
  readonly name: "";
1184
1483
  readonly type: "uint256";
1185
1484
  }, {
@@ -1187,68 +1486,78 @@ export declare const abi: readonly [{
1187
1486
  readonly type: "uint256";
1188
1487
  }];
1189
1488
  }, {
1190
- readonly stateMutability: "view";
1489
+ readonly stateMutability: "nonpayable";
1191
1490
  readonly type: "function";
1192
- readonly name: "totalAssets";
1491
+ readonly name: "claimRewards";
1193
1492
  readonly inputs: readonly [{
1194
- readonly name: "_vaultToken";
1493
+ readonly name: "_user";
1494
+ readonly type: "address";
1495
+ }, {
1496
+ readonly name: "_rewardToken";
1195
1497
  readonly type: "address";
1498
+ }, {
1499
+ readonly name: "_rewardAmount";
1500
+ readonly type: "uint256";
1501
+ }, {
1502
+ readonly name: "_extraData";
1503
+ readonly type: "bytes32";
1504
+ }, {
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
+ }];
1196
1520
  }];
1197
1521
  readonly outputs: readonly [{
1198
1522
  readonly name: "";
1199
1523
  readonly type: "uint256";
1524
+ }, {
1525
+ readonly name: "";
1526
+ readonly type: "uint256";
1200
1527
  }];
1201
1528
  }, {
1202
1529
  readonly stateMutability: "view";
1203
1530
  readonly type: "function";
1204
- readonly name: "totalBorrows";
1531
+ readonly name: "hasClaimableRewards";
1205
1532
  readonly inputs: readonly [{
1206
- readonly name: "_vaultToken";
1533
+ readonly name: "_user";
1207
1534
  readonly type: "address";
1208
1535
  }];
1209
1536
  readonly outputs: readonly [{
1210
1537
  readonly name: "";
1211
- readonly type: "uint256";
1538
+ readonly type: "bool";
1212
1539
  }];
1213
1540
  }, {
1214
1541
  readonly stateMutability: "view";
1215
1542
  readonly type: "function";
1216
- readonly name: "getPricePerShare";
1543
+ readonly name: "getAccessForLego";
1217
1544
  readonly inputs: readonly [{
1218
- readonly name: "_asset";
1545
+ readonly name: "_user";
1219
1546
  readonly type: "address";
1220
1547
  }, {
1221
- readonly name: "_decimals";
1548
+ readonly name: "_action";
1222
1549
  readonly type: "uint256";
1223
1550
  }];
1224
1551
  readonly outputs: readonly [{
1225
1552
  readonly name: "";
1226
- readonly type: "uint256";
1227
- }];
1228
- }, {
1229
- readonly stateMutability: "nonpayable";
1230
- readonly type: "function";
1231
- readonly name: "addAssetOpportunity";
1232
- readonly inputs: readonly [{
1233
- readonly name: "_asset";
1234
1553
  readonly type: "address";
1235
1554
  }, {
1236
- readonly name: "_vaultAddr";
1237
- readonly type: "address";
1238
- }];
1239
- readonly outputs: readonly [];
1240
- }, {
1241
- readonly stateMutability: "nonpayable";
1242
- readonly type: "function";
1243
- readonly name: "removeAssetOpportunity";
1244
- readonly inputs: readonly [{
1245
- readonly name: "_asset";
1246
- readonly type: "address";
1555
+ readonly name: "";
1556
+ readonly type: "string";
1247
1557
  }, {
1248
- readonly name: "_vaultAddr";
1249
- readonly type: "address";
1558
+ readonly name: "";
1559
+ readonly type: "uint256";
1250
1560
  }];
1251
- readonly outputs: readonly [];
1252
1561
  }, {
1253
1562
  readonly stateMutability: "nonpayable";
1254
1563
  readonly type: "function";
@@ -1943,21 +2252,6 @@ export declare const abi: readonly [{
1943
2252
  readonly name: "";
1944
2253
  readonly type: "uint256";
1945
2254
  }];
1946
- }, {
1947
- readonly stateMutability: "view";
1948
- readonly type: "function";
1949
- readonly name: "getPrice";
1950
- readonly inputs: readonly [{
1951
- readonly name: "_asset";
1952
- readonly type: "address";
1953
- }, {
1954
- readonly name: "_decimals";
1955
- readonly type: "uint256";
1956
- }];
1957
- readonly outputs: readonly [{
1958
- readonly name: "";
1959
- readonly type: "uint256";
1960
- }];
1961
2255
  }, {
1962
2256
  readonly stateMutability: "view";
1963
2257
  readonly type: "function";
@@ -2021,6 +2315,7 @@ export type Contract = {
2021
2315
  appraiser: `0x${string}`;
2022
2316
  walletBackpack: `0x${string}`;
2023
2317
  billing: `0x${string}`;
2318
+ vaultRegistry: `0x${string}`;
2024
2319
  }>;
2025
2320
  getUndyHq: () => Promise<`0x${string}`>;
2026
2321
  isLegoAsset: (asset: `0x${string}`) => Promise<boolean>;
@@ -2028,32 +2323,69 @@ export type Contract = {
2028
2323
  getAssets: () => Promise<`0x${string}`[]>;
2029
2324
  isAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<boolean>;
2030
2325
  getNumLegoAssets: () => Promise<bigint>;
2031
- isPaused: () => Promise<boolean>;
2326
+ getWeightedPricePerShare: (vaultToken: `0x${string}`) => Promise<bigint>;
2327
+ getLatestSnapshot: (vaultToken: `0x${string}`, pricePerShare: bigint) => Promise<{
2328
+ totalSupply: bigint;
2329
+ pricePerShare: bigint;
2330
+ lastUpdate: bigint;
2331
+ }>;
2332
+ isValidPriceConfig: (config: {
2333
+ minSnapshotDelay: bigint;
2334
+ maxNumSnapshots: bigint;
2335
+ maxUpsideDeviation: bigint;
2336
+ staleTime: bigint;
2337
+ }) => Promise<boolean>;
2338
+ vaultToAsset: (arg0: `0x${string}`) => Promise<{
2339
+ underlyingAsset: `0x${string}`;
2340
+ decimals: bigint;
2341
+ lastAveragePricePerShare: bigint;
2342
+ }>;
2032
2343
  assetOpportunities: (arg0: `0x${string}`, arg1: bigint) => Promise<`0x${string}`>;
2033
2344
  indexOfAssetOpportunity: (arg0: `0x${string}`, arg1: `0x${string}`) => Promise<bigint>;
2034
2345
  numAssetOpportunities: (arg0: `0x${string}`) => Promise<bigint>;
2035
- vaultToAsset: (arg0: `0x${string}`) => Promise<`0x${string}`>;
2036
2346
  assets: (arg0: bigint) => Promise<`0x${string}`>;
2037
2347
  indexOfAsset: (arg0: `0x${string}`) => Promise<bigint>;
2038
2348
  numAssets: () => Promise<bigint>;
2349
+ snapShotData: (arg0: `0x${string}`) => Promise<{
2350
+ lastSnapShot: {
2351
+ totalSupply: bigint;
2352
+ pricePerShare: bigint;
2353
+ lastUpdate: bigint;
2354
+ };
2355
+ nextIndex: bigint;
2356
+ }>;
2357
+ snapShots: (arg0: `0x${string}`, arg1: bigint) => Promise<{
2358
+ totalSupply: bigint;
2359
+ pricePerShare: bigint;
2360
+ lastUpdate: bigint;
2361
+ }>;
2362
+ snapShotPriceConfig: () => Promise<{
2363
+ minSnapshotDelay: bigint;
2364
+ maxNumSnapshots: bigint;
2365
+ maxUpsideDeviation: bigint;
2366
+ staleTime: bigint;
2367
+ }>;
2368
+ isPaused: () => Promise<boolean>;
2039
2369
  hasCapability: (action: bigint) => Promise<boolean>;
2040
2370
  getRegistries: () => Promise<`0x${string}`[]>;
2041
- getAccessForLego: (user: `0x${string}`, action: bigint) => Promise<[`0x${string}`, string, bigint]>;
2042
2371
  isYieldLego: () => Promise<boolean>;
2043
2372
  isDexLego: () => Promise<boolean>;
2044
- isRebasing: () => Promise<boolean>;
2045
- isEligibleVaultForTrialFunds: (vaultToken: `0x${string}`, underlyingAsset: `0x${string}`) => Promise<boolean>;
2046
- isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
2047
- isVaultToken: (vaultToken: `0x${string}`) => Promise<boolean>;
2048
2373
  getUnderlyingAsset: (vaultToken: `0x${string}`) => Promise<`0x${string}`>;
2374
+ getUnderlyingBalances: (vaultToken: `0x${string}`, vaultTokenBalance: bigint) => Promise<[bigint, bigint]>;
2049
2375
  getUnderlyingAmount: (vaultToken: `0x${string}`, vaultTokenAmount: bigint) => Promise<bigint>;
2050
- getVaultTokenAmount: (asset: `0x${string}`, assetAmount: bigint, vaultToken: `0x${string}`) => Promise<bigint>;
2051
- getUsdValueOfVaultToken: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<bigint>;
2376
+ getUnderlyingAmountSafe: (vaultToken: `0x${string}`, vaultTokenBalance: bigint) => Promise<bigint>;
2052
2377
  getUnderlyingData: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<[`0x${string}`, bigint, bigint]>;
2378
+ getUsdValueOfVaultToken: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<bigint>;
2379
+ isRebasing: () => Promise<boolean>;
2380
+ getPricePerShare: (vaultToken: `0x${string}`, decimals?: bigint) => Promise<bigint>;
2381
+ getVaultTokenAmount: (asset: `0x${string}`, assetAmount: bigint, vaultToken: `0x${string}`) => Promise<bigint>;
2382
+ isEligibleVaultForTrialFunds: (vaultToken: `0x${string}`, underlyingAsset: `0x${string}`) => Promise<boolean>;
2383
+ isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
2053
2384
  totalAssets: (vaultToken: `0x${string}`) => Promise<bigint>;
2054
2385
  totalBorrows: (vaultToken: `0x${string}`) => Promise<bigint>;
2055
- getPricePerShare: (asset: `0x${string}`, decimals: bigint) => Promise<bigint>;
2056
- getPrice: (asset: `0x${string}`, decimals: bigint) => Promise<bigint>;
2386
+ canRegisterVaultToken: (asset: `0x${string}`, vaultToken: `0x${string}`) => Promise<boolean>;
2387
+ hasClaimableRewards: (user: `0x${string}`) => Promise<boolean>;
2388
+ getAccessForLego: (user: `0x${string}`, action: bigint) => Promise<[`0x${string}`, string, bigint]>;
2057
2389
  RIPE_REGISTRY: () => Promise<`0x${string}`>;
2058
2390
  RIPE_GREEN_TOKEN: () => Promise<`0x${string}`>;
2059
2391
  RIPE_SAVINGS_GREEN: () => Promise<`0x${string}`>;
@@ -2063,50 +2395,61 @@ export type Contract = {
2063
2395
  pause: (shouldPause: boolean) => Promise<void>;
2064
2396
  recoverFunds: (recipient: `0x${string}`, asset: `0x${string}`) => Promise<void>;
2065
2397
  recoverFundsMany: (recipient: `0x${string}`, assets: `0x${string}`[]) => Promise<void>;
2066
- addCollateral: (asset: `0x${string}`, amount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2398
+ setSnapShotPriceConfig: (config: {
2399
+ minSnapshotDelay: bigint;
2400
+ maxNumSnapshots: bigint;
2401
+ maxUpsideDeviation: bigint;
2402
+ staleTime: bigint;
2403
+ }) => Promise<void>;
2404
+ registerVaultTokenLocally: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<{
2405
+ underlyingAsset: `0x${string}`;
2406
+ decimals: bigint;
2407
+ lastAveragePricePerShare: bigint;
2408
+ }>;
2409
+ deregisterVaultTokenLocally: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2410
+ addPriceSnapshot: (vaultToken: `0x${string}`) => Promise<boolean>;
2411
+ depositForYield: (asset: `0x${string}`, amount: bigint, vaultAddr: `0x${string}`, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2067
2412
  ledger: `0x${string}`;
2068
2413
  missionControl: `0x${string}`;
2069
2414
  legoBook: `0x${string}`;
2070
2415
  appraiser: `0x${string}`;
2071
- }) => Promise<[bigint, bigint]>;
2072
- removeCollateral: (asset: `0x${string}`, amount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2416
+ }) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
2417
+ withdrawFromYield: (vaultToken: `0x${string}`, amount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2073
2418
  ledger: `0x${string}`;
2074
2419
  missionControl: `0x${string}`;
2075
2420
  legoBook: `0x${string}`;
2076
2421
  appraiser: `0x${string}`;
2077
- }) => Promise<[bigint, bigint]>;
2078
- borrow: (borrowAsset: `0x${string}`, amount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2422
+ }) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
2423
+ addCollateral: (asset: `0x${string}`, amount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2079
2424
  ledger: `0x${string}`;
2080
2425
  missionControl: `0x${string}`;
2081
2426
  legoBook: `0x${string}`;
2082
2427
  appraiser: `0x${string}`;
2083
2428
  }) => Promise<[bigint, bigint]>;
2084
- repayDebt: (paymentAsset: `0x${string}`, paymentAmount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2429
+ removeCollateral: (asset: `0x${string}`, amount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2085
2430
  ledger: `0x${string}`;
2086
2431
  missionControl: `0x${string}`;
2087
2432
  legoBook: `0x${string}`;
2088
2433
  appraiser: `0x${string}`;
2089
2434
  }) => Promise<[bigint, bigint]>;
2090
- claimRewards: (user: `0x${string}`, rewardToken: `0x${string}`, rewardAmount: bigint, extraData: `0x${string}`, miniAddys?: {
2435
+ borrow: (borrowAsset: `0x${string}`, amount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2091
2436
  ledger: `0x${string}`;
2092
2437
  missionControl: `0x${string}`;
2093
2438
  legoBook: `0x${string}`;
2094
2439
  appraiser: `0x${string}`;
2095
2440
  }) => Promise<[bigint, bigint]>;
2096
- depositForYield: (asset: `0x${string}`, amount: bigint, vaultAddr: `0x${string}`, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2441
+ repayDebt: (paymentAsset: `0x${string}`, paymentAmount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2097
2442
  ledger: `0x${string}`;
2098
2443
  missionControl: `0x${string}`;
2099
2444
  legoBook: `0x${string}`;
2100
2445
  appraiser: `0x${string}`;
2101
- }) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
2102
- withdrawFromYield: (vaultToken: `0x${string}`, amount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
2446
+ }) => Promise<[bigint, bigint]>;
2447
+ claimRewards: (user: `0x${string}`, rewardToken: `0x${string}`, rewardAmount: bigint, extraData: `0x${string}`, miniAddys?: {
2103
2448
  ledger: `0x${string}`;
2104
2449
  missionControl: `0x${string}`;
2105
2450
  legoBook: `0x${string}`;
2106
2451
  appraiser: `0x${string}`;
2107
- }) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
2108
- addAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2109
- removeAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2452
+ }) => Promise<[bigint, bigint]>;
2110
2453
  swapTokens: (amountIn: bigint, minAmountOut: bigint, tokenPath: `0x${string}`[], poolPath: `0x${string}`[], recipient: `0x${string}`, miniAddys?: {
2111
2454
  ledger: `0x${string}`;
2112
2455
  missionControl: `0x${string}`;
@@ -2151,7 +2494,7 @@ export type Contract = {
2151
2494
  }) => Promise<[bigint, bigint, bigint, boolean, bigint]>;
2152
2495
  };
2153
2496
  events: {
2154
- RipeCollateralDeposit: (sender: `0x${string}`, asset: `0x${string}`, assetAmountDeposited: bigint, vaultId: bigint, usdValue: bigint, recipient: `0x${string}`) => Promise<void>;
2497
+ RipeCollateralDeposit: (sender: `0x${string}`, asset: `0x${string}`, assetAmountDeposited: bigint, vaultIdOrLock: bigint, usdValue: bigint, recipient: `0x${string}`) => Promise<void>;
2155
2498
  RipeCollateralWithdrawal: (sender: `0x${string}`, asset: `0x${string}`, assetAmountReceived: bigint, vaultId: bigint, usdValue: bigint, recipient: `0x${string}`) => Promise<void>;
2156
2499
  RipeBorrow: (sender: `0x${string}`, asset: `0x${string}`, assetAmountBorrowed: bigint, usdValue: bigint, recipient: `0x${string}`) => Promise<void>;
2157
2500
  RipeRepay: (sender: `0x${string}`, asset: `0x${string}`, assetAmountRepaid: bigint, usdValue: bigint, recipient: `0x${string}`) => Promise<void>;
@@ -2160,7 +2503,10 @@ export type Contract = {
2160
2503
  RipeSavingsGreenWithdrawal: (sender: `0x${string}`, asset: `0x${string}`, vaultToken: `0x${string}`, assetAmountReceived: bigint, usdValue: bigint, vaultTokenAmountBurned: bigint, recipient: `0x${string}`) => Promise<void>;
2161
2504
  LegoPauseModified: (isPaused: boolean) => Promise<void>;
2162
2505
  LegoFundsRecovered: (asset: `0x${string}`, recipient: `0x${string}`, balance: bigint) => Promise<void>;
2506
+ SnapShotPriceConfigSet: (minSnapshotDelay: bigint, maxNumSnapshots: bigint, maxUpsideDeviation: bigint, staleTime: bigint) => Promise<void>;
2163
2507
  AssetOpportunityAdded: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2508
+ AssetOpportunityRemoved: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2509
+ PricePerShareSnapShotAdded: (vaultToken: `0x${string}`, totalSupply: bigint, pricePerShare: bigint) => Promise<void>;
2164
2510
  };
2165
2511
  };
2166
2512
  export type Calls = keyof Contract['calls'];
@@ -2208,32 +2554,40 @@ export type SDK = {
2208
2554
  getAssets: (...args: ExtractArgs<Contract['calls']['getAssets']>) => Promise<CallReturn<'getAssets'>>;
2209
2555
  isAssetOpportunity: (...args: ExtractArgs<Contract['calls']['isAssetOpportunity']>) => Promise<CallReturn<'isAssetOpportunity'>>;
2210
2556
  getNumLegoAssets: (...args: ExtractArgs<Contract['calls']['getNumLegoAssets']>) => Promise<CallReturn<'getNumLegoAssets'>>;
2211
- isPaused: (...args: ExtractArgs<Contract['calls']['isPaused']>) => Promise<CallReturn<'isPaused'>>;
2557
+ getWeightedPricePerShare: (...args: ExtractArgs<Contract['calls']['getWeightedPricePerShare']>) => Promise<CallReturn<'getWeightedPricePerShare'>>;
2558
+ getLatestSnapshot: (...args: ExtractArgs<Contract['calls']['getLatestSnapshot']>) => Promise<CallReturn<'getLatestSnapshot'>>;
2559
+ isValidPriceConfig: (...args: ExtractArgs<Contract['calls']['isValidPriceConfig']>) => Promise<CallReturn<'isValidPriceConfig'>>;
2560
+ vaultToAsset: (...args: ExtractArgs<Contract['calls']['vaultToAsset']>) => Promise<CallReturn<'vaultToAsset'>>;
2212
2561
  assetOpportunities: (...args: ExtractArgs<Contract['calls']['assetOpportunities']>) => Promise<CallReturn<'assetOpportunities'>>;
2213
2562
  indexOfAssetOpportunity: (...args: ExtractArgs<Contract['calls']['indexOfAssetOpportunity']>) => Promise<CallReturn<'indexOfAssetOpportunity'>>;
2214
2563
  numAssetOpportunities: (...args: ExtractArgs<Contract['calls']['numAssetOpportunities']>) => Promise<CallReturn<'numAssetOpportunities'>>;
2215
- vaultToAsset: (...args: ExtractArgs<Contract['calls']['vaultToAsset']>) => Promise<CallReturn<'vaultToAsset'>>;
2216
2564
  assets: (...args: ExtractArgs<Contract['calls']['assets']>) => Promise<CallReturn<'assets'>>;
2217
2565
  indexOfAsset: (...args: ExtractArgs<Contract['calls']['indexOfAsset']>) => Promise<CallReturn<'indexOfAsset'>>;
2218
2566
  numAssets: (...args: ExtractArgs<Contract['calls']['numAssets']>) => Promise<CallReturn<'numAssets'>>;
2567
+ snapShotData: (...args: ExtractArgs<Contract['calls']['snapShotData']>) => Promise<CallReturn<'snapShotData'>>;
2568
+ snapShots: (...args: ExtractArgs<Contract['calls']['snapShots']>) => Promise<CallReturn<'snapShots'>>;
2569
+ snapShotPriceConfig: (...args: ExtractArgs<Contract['calls']['snapShotPriceConfig']>) => Promise<CallReturn<'snapShotPriceConfig'>>;
2570
+ isPaused: (...args: ExtractArgs<Contract['calls']['isPaused']>) => Promise<CallReturn<'isPaused'>>;
2219
2571
  hasCapability: (...args: ExtractArgs<Contract['calls']['hasCapability']>) => Promise<CallReturn<'hasCapability'>>;
2220
2572
  getRegistries: (...args: ExtractArgs<Contract['calls']['getRegistries']>) => Promise<CallReturn<'getRegistries'>>;
2221
- getAccessForLego: (...args: ExtractArgs<Contract['calls']['getAccessForLego']>) => Promise<CallReturn<'getAccessForLego'>>;
2222
2573
  isYieldLego: (...args: ExtractArgs<Contract['calls']['isYieldLego']>) => Promise<CallReturn<'isYieldLego'>>;
2223
2574
  isDexLego: (...args: ExtractArgs<Contract['calls']['isDexLego']>) => Promise<CallReturn<'isDexLego'>>;
2224
- isRebasing: (...args: ExtractArgs<Contract['calls']['isRebasing']>) => Promise<CallReturn<'isRebasing'>>;
2225
- isEligibleVaultForTrialFunds: (...args: ExtractArgs<Contract['calls']['isEligibleVaultForTrialFunds']>) => Promise<CallReturn<'isEligibleVaultForTrialFunds'>>;
2226
- isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
2227
- isVaultToken: (...args: ExtractArgs<Contract['calls']['isVaultToken']>) => Promise<CallReturn<'isVaultToken'>>;
2228
2575
  getUnderlyingAsset: (...args: ExtractArgs<Contract['calls']['getUnderlyingAsset']>) => Promise<CallReturn<'getUnderlyingAsset'>>;
2576
+ getUnderlyingBalances: (...args: ExtractArgs<Contract['calls']['getUnderlyingBalances']>) => Promise<CallReturn<'getUnderlyingBalances'>>;
2229
2577
  getUnderlyingAmount: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmount']>) => Promise<CallReturn<'getUnderlyingAmount'>>;
2230
- getVaultTokenAmount: (...args: ExtractArgs<Contract['calls']['getVaultTokenAmount']>) => Promise<CallReturn<'getVaultTokenAmount'>>;
2231
- getUsdValueOfVaultToken: (...args: ExtractArgs<Contract['calls']['getUsdValueOfVaultToken']>) => Promise<CallReturn<'getUsdValueOfVaultToken'>>;
2578
+ getUnderlyingAmountSafe: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmountSafe']>) => Promise<CallReturn<'getUnderlyingAmountSafe'>>;
2232
2579
  getUnderlyingData: (...args: ExtractArgs<Contract['calls']['getUnderlyingData']>) => Promise<CallReturn<'getUnderlyingData'>>;
2580
+ getUsdValueOfVaultToken: (...args: ExtractArgs<Contract['calls']['getUsdValueOfVaultToken']>) => Promise<CallReturn<'getUsdValueOfVaultToken'>>;
2581
+ isRebasing: (...args: ExtractArgs<Contract['calls']['isRebasing']>) => Promise<CallReturn<'isRebasing'>>;
2582
+ getPricePerShare: (...args: ExtractArgs<Contract['calls']['getPricePerShare']>) => Promise<CallReturn<'getPricePerShare'>>;
2583
+ getVaultTokenAmount: (...args: ExtractArgs<Contract['calls']['getVaultTokenAmount']>) => Promise<CallReturn<'getVaultTokenAmount'>>;
2584
+ isEligibleVaultForTrialFunds: (...args: ExtractArgs<Contract['calls']['isEligibleVaultForTrialFunds']>) => Promise<CallReturn<'isEligibleVaultForTrialFunds'>>;
2585
+ isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
2233
2586
  totalAssets: (...args: ExtractArgs<Contract['calls']['totalAssets']>) => Promise<CallReturn<'totalAssets'>>;
2234
2587
  totalBorrows: (...args: ExtractArgs<Contract['calls']['totalBorrows']>) => Promise<CallReturn<'totalBorrows'>>;
2235
- getPricePerShare: (...args: ExtractArgs<Contract['calls']['getPricePerShare']>) => Promise<CallReturn<'getPricePerShare'>>;
2236
- getPrice: (...args: ExtractArgs<Contract['calls']['getPrice']>) => Promise<CallReturn<'getPrice'>>;
2588
+ canRegisterVaultToken: (...args: ExtractArgs<Contract['calls']['canRegisterVaultToken']>) => Promise<CallReturn<'canRegisterVaultToken'>>;
2589
+ hasClaimableRewards: (...args: ExtractArgs<Contract['calls']['hasClaimableRewards']>) => Promise<CallReturn<'hasClaimableRewards'>>;
2590
+ getAccessForLego: (...args: ExtractArgs<Contract['calls']['getAccessForLego']>) => Promise<CallReturn<'getAccessForLego'>>;
2237
2591
  RIPE_REGISTRY: (...args: ExtractArgs<Contract['calls']['RIPE_REGISTRY']>) => Promise<CallReturn<'RIPE_REGISTRY'>>;
2238
2592
  RIPE_GREEN_TOKEN: (...args: ExtractArgs<Contract['calls']['RIPE_GREEN_TOKEN']>) => Promise<CallReturn<'RIPE_GREEN_TOKEN'>>;
2239
2593
  RIPE_SAVINGS_GREEN: (...args: ExtractArgs<Contract['calls']['RIPE_SAVINGS_GREEN']>) => Promise<CallReturn<'RIPE_SAVINGS_GREEN'>>;
@@ -2241,15 +2595,17 @@ export type SDK = {
2241
2595
  pause: (...args: ExtractArgs<Contract['mutations']['pause']>) => Promise<Address>;
2242
2596
  recoverFunds: (...args: ExtractArgs<Contract['mutations']['recoverFunds']>) => Promise<Address>;
2243
2597
  recoverFundsMany: (...args: ExtractArgs<Contract['mutations']['recoverFundsMany']>) => Promise<Address>;
2598
+ setSnapShotPriceConfig: (...args: ExtractArgs<Contract['mutations']['setSnapShotPriceConfig']>) => Promise<Address>;
2599
+ registerVaultTokenLocally: (...args: ExtractArgs<Contract['mutations']['registerVaultTokenLocally']>) => Promise<Address>;
2600
+ deregisterVaultTokenLocally: (...args: ExtractArgs<Contract['mutations']['deregisterVaultTokenLocally']>) => Promise<Address>;
2601
+ addPriceSnapshot: (...args: ExtractArgs<Contract['mutations']['addPriceSnapshot']>) => Promise<Address>;
2602
+ depositForYield: (...args: ExtractArgs<Contract['mutations']['depositForYield']>) => Promise<Address>;
2603
+ withdrawFromYield: (...args: ExtractArgs<Contract['mutations']['withdrawFromYield']>) => Promise<Address>;
2244
2604
  addCollateral: (...args: ExtractArgs<Contract['mutations']['addCollateral']>) => Promise<Address>;
2245
2605
  removeCollateral: (...args: ExtractArgs<Contract['mutations']['removeCollateral']>) => Promise<Address>;
2246
2606
  borrow: (...args: ExtractArgs<Contract['mutations']['borrow']>) => Promise<Address>;
2247
2607
  repayDebt: (...args: ExtractArgs<Contract['mutations']['repayDebt']>) => Promise<Address>;
2248
2608
  claimRewards: (...args: ExtractArgs<Contract['mutations']['claimRewards']>) => Promise<Address>;
2249
- depositForYield: (...args: ExtractArgs<Contract['mutations']['depositForYield']>) => Promise<Address>;
2250
- withdrawFromYield: (...args: ExtractArgs<Contract['mutations']['withdrawFromYield']>) => Promise<Address>;
2251
- addAssetOpportunity: (...args: ExtractArgs<Contract['mutations']['addAssetOpportunity']>) => Promise<Address>;
2252
- removeAssetOpportunity: (...args: ExtractArgs<Contract['mutations']['removeAssetOpportunity']>) => Promise<Address>;
2253
2609
  swapTokens: (...args: ExtractArgs<Contract['mutations']['swapTokens']>) => Promise<Address>;
2254
2610
  mintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['mintOrRedeemAsset']>) => Promise<Address>;
2255
2611
  confirmMintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['confirmMintOrRedeemAsset']>) => Promise<Address>;