@underscore-finance/sdk 1.0.11 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (310) hide show
  1. package/dist/contracts/AaveV3.d.ts +603 -279
  2. package/dist/contracts/AaveV3.d.ts.map +1 -1
  3. package/dist/contracts/AaveV3.js +718 -331
  4. package/dist/contracts/AeroClassic.d.ts +4 -17
  5. package/dist/contracts/AeroClassic.d.ts.map +1 -1
  6. package/dist/contracts/AeroClassic.js +5 -24
  7. package/dist/contracts/AeroSlipstream.d.ts +4 -17
  8. package/dist/contracts/AeroSlipstream.d.ts.map +1 -1
  9. package/dist/contracts/AeroSlipstream.js +5 -24
  10. package/dist/contracts/Appraiser.d.ts +4 -0
  11. package/dist/contracts/Appraiser.d.ts.map +1 -1
  12. package/dist/contracts/Appraiser.js +5 -1
  13. package/dist/contracts/CompoundV3.d.ts +556 -246
  14. package/dist/contracts/CompoundV3.d.ts.map +1 -1
  15. package/dist/contracts/CompoundV3.js +695 -327
  16. package/dist/contracts/Curve.d.ts +4 -17
  17. package/dist/contracts/Curve.d.ts.map +1 -1
  18. package/dist/contracts/Curve.js +5 -24
  19. package/dist/contracts/Euler.d.ts +581 -253
  20. package/dist/contracts/Euler.d.ts.map +1 -1
  21. package/dist/contracts/Euler.js +714 -324
  22. package/dist/contracts/Fluid.d.ts +644 -302
  23. package/dist/contracts/Fluid.d.ts.map +1 -1
  24. package/dist/contracts/Fluid.js +743 -334
  25. package/dist/contracts/{Agent_v1.d.ts → FortyAcres.d.ts} +1516 -1699
  26. package/dist/contracts/FortyAcres.d.ts.map +1 -0
  27. package/dist/contracts/{AgentTemplate.js → FortyAcres.js} +1681 -1946
  28. package/dist/contracts/LegoBook.d.ts +7 -0
  29. package/dist/contracts/LegoBook.d.ts.map +1 -1
  30. package/dist/contracts/LegoBook.js +9 -1
  31. package/dist/contracts/LegoTools.d.ts +4 -0
  32. package/dist/contracts/LegoTools.d.ts.map +1 -1
  33. package/dist/contracts/LegoTools.js +5 -1
  34. package/dist/contracts/Moonwell.d.ts +582 -254
  35. package/dist/contracts/Moonwell.d.ts.map +1 -1
  36. package/dist/contracts/Moonwell.js +705 -315
  37. package/dist/contracts/Morpho.d.ts +580 -252
  38. package/dist/contracts/Morpho.d.ts.map +1 -1
  39. package/dist/contracts/Morpho.js +723 -333
  40. package/dist/contracts/RipeLego.d.ts +719 -363
  41. package/dist/contracts/RipeLego.d.ts.map +1 -1
  42. package/dist/contracts/RipeLego.js +839 -413
  43. package/dist/contracts/SignatureHelperV1.d.ts +229 -229
  44. package/dist/contracts/SignatureHelperV1.js +333 -333
  45. package/dist/contracts/SwitchboardCharlie.d.ts +1470 -0
  46. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -0
  47. package/dist/contracts/{v0_3_OracleRegistry.js → SwitchboardCharlie.js} +954 -691
  48. package/dist/contracts/{v0_1_Agent.d.ts → UnderscoreLego.d.ts} +1469 -1663
  49. package/dist/contracts/UnderscoreLego.d.ts.map +1 -0
  50. package/dist/contracts/{Agent_v1.js → UnderscoreLego.js} +1601 -1882
  51. package/dist/contracts/UndyBtc.d.ts +1487 -0
  52. package/dist/contracts/UndyBtc.d.ts.map +1 -0
  53. package/dist/contracts/{LegoUniswapV3.js → UndyBtc.js} +991 -754
  54. package/dist/contracts/UndyEth.d.ts +1487 -0
  55. package/dist/contracts/UndyEth.d.ts.map +1 -0
  56. package/dist/contracts/{v0_3_LegoUniswapV3.js → UndyEth.js} +991 -754
  57. package/dist/contracts/UndyRewardsLego.d.ts +3 -0
  58. package/dist/contracts/UndyRewardsLego.d.ts.map +1 -1
  59. package/dist/contracts/UndyRewardsLego.js +5 -1
  60. package/dist/contracts/UndyUsd.d.ts +1487 -0
  61. package/dist/contracts/UndyUsd.d.ts.map +1 -0
  62. package/dist/contracts/{LegoAeroSlipstream.js → UndyUsd.js} +1009 -725
  63. package/dist/contracts/UniswapV2.d.ts +4 -17
  64. package/dist/contracts/UniswapV2.d.ts.map +1 -1
  65. package/dist/contracts/UniswapV2.js +5 -24
  66. package/dist/contracts/UniswapV3.d.ts +4 -17
  67. package/dist/contracts/UniswapV3.d.ts.map +1 -1
  68. package/dist/contracts/UniswapV3.js +5 -24
  69. package/dist/contracts/VaultRegistry.d.ts +2265 -0
  70. package/dist/contracts/VaultRegistry.d.ts.map +1 -0
  71. package/dist/contracts/VaultRegistry.js +2848 -0
  72. package/dist/contracts/index.d.ts +7 -0
  73. package/dist/contracts/index.d.ts.map +1 -1
  74. package/dist/contracts/index.js +7 -0
  75. package/dist/contracts/sdk.d.ts +14 -0
  76. package/dist/contracts/sdk.d.ts.map +1 -1
  77. package/dist/contracts/sdk.js +14 -0
  78. package/dist/getContracts.d.ts +1 -0
  79. package/dist/getContracts.d.ts.map +1 -1
  80. package/dist/getContracts.js +1 -0
  81. package/package.json +1 -1
  82. package/dist/contracts/AddyRegistry.d.ts +0 -1109
  83. package/dist/contracts/AddyRegistry.d.ts.map +0 -1
  84. package/dist/contracts/AddyRegistry.js +0 -1392
  85. package/dist/contracts/AddyRegistry_v1.d.ts +0 -473
  86. package/dist/contracts/AddyRegistry_v1.d.ts.map +0 -1
  87. package/dist/contracts/AddyRegistry_v1.js +0 -594
  88. package/dist/contracts/AddyRegistry_v2.d.ts +0 -1050
  89. package/dist/contracts/AddyRegistry_v2.d.ts.map +0 -1
  90. package/dist/contracts/AddyRegistry_v2.js +0 -1313
  91. package/dist/contracts/AgentFactory.d.ts +0 -1665
  92. package/dist/contracts/AgentFactory.d.ts.map +0 -1
  93. package/dist/contracts/AgentFactory.js +0 -2078
  94. package/dist/contracts/AgentFactory_v1.d.ts +0 -1054
  95. package/dist/contracts/AgentFactory_v1.d.ts.map +0 -1
  96. package/dist/contracts/AgentFactory_v1.js +0 -1336
  97. package/dist/contracts/AgentFactory_v2.d.ts +0 -1275
  98. package/dist/contracts/AgentFactory_v2.d.ts.map +0 -1
  99. package/dist/contracts/AgentFactory_v2.js +0 -1609
  100. package/dist/contracts/AgentTemplate.d.ts +0 -2629
  101. package/dist/contracts/AgentTemplate.d.ts.map +0 -1
  102. package/dist/contracts/Agent_v1.d.ts.map +0 -1
  103. package/dist/contracts/Agent_v2.d.ts +0 -2709
  104. package/dist/contracts/Agent_v2.d.ts.map +0 -1
  105. package/dist/contracts/Agent_v2.js +0 -3458
  106. package/dist/contracts/ChainlinkFeeds.d.ts +0 -706
  107. package/dist/contracts/ChainlinkFeeds.d.ts.map +0 -1
  108. package/dist/contracts/ChainlinkFeeds.js +0 -900
  109. package/dist/contracts/LegoAaveV3.d.ts +0 -1033
  110. package/dist/contracts/LegoAaveV3.d.ts.map +0 -1
  111. package/dist/contracts/LegoAaveV3.js +0 -1330
  112. package/dist/contracts/LegoAeroClassic.d.ts +0 -1204
  113. package/dist/contracts/LegoAeroClassic.d.ts.map +0 -1
  114. package/dist/contracts/LegoAeroClassic.js +0 -1546
  115. package/dist/contracts/LegoAeroSlipstream.d.ts +0 -1300
  116. package/dist/contracts/LegoAeroSlipstream.d.ts.map +0 -1
  117. package/dist/contracts/LegoCommon.d.ts +0 -164
  118. package/dist/contracts/LegoCommon.d.ts.map +0 -1
  119. package/dist/contracts/LegoCommon.js +0 -202
  120. package/dist/contracts/LegoCompoundV3.d.ts +0 -1060
  121. package/dist/contracts/LegoCompoundV3.d.ts.map +0 -1
  122. package/dist/contracts/LegoCompoundV3.js +0 -1365
  123. package/dist/contracts/LegoCredit.d.ts +0 -140
  124. package/dist/contracts/LegoCredit.d.ts.map +0 -1
  125. package/dist/contracts/LegoCredit.js +0 -179
  126. package/dist/contracts/LegoCurve.d.ts +0 -1189
  127. package/dist/contracts/LegoCurve.d.ts.map +0 -1
  128. package/dist/contracts/LegoCurve.js +0 -1519
  129. package/dist/contracts/LegoDex.d.ts +0 -587
  130. package/dist/contracts/LegoDex.d.ts.map +0 -1
  131. package/dist/contracts/LegoDex.js +0 -774
  132. package/dist/contracts/LegoEuler.d.ts +0 -1074
  133. package/dist/contracts/LegoEuler.d.ts.map +0 -1
  134. package/dist/contracts/LegoEuler.js +0 -1383
  135. package/dist/contracts/LegoFluid.d.ts +0 -1025
  136. package/dist/contracts/LegoFluid.d.ts.map +0 -1
  137. package/dist/contracts/LegoFluid.js +0 -1320
  138. package/dist/contracts/LegoHelper.d.ts +0 -1563
  139. package/dist/contracts/LegoHelper.d.ts.map +0 -1
  140. package/dist/contracts/LegoHelper.js +0 -1947
  141. package/dist/contracts/LegoMoonwell.d.ts +0 -1042
  142. package/dist/contracts/LegoMoonwell.d.ts.map +0 -1
  143. package/dist/contracts/LegoMoonwell.js +0 -1342
  144. package/dist/contracts/LegoMorpho.d.ts +0 -1074
  145. package/dist/contracts/LegoMorpho.d.ts.map +0 -1
  146. package/dist/contracts/LegoMorpho.js +0 -1383
  147. package/dist/contracts/LegoRegistry.d.ts +0 -1079
  148. package/dist/contracts/LegoRegistry.d.ts.map +0 -1
  149. package/dist/contracts/LegoRegistry.js +0 -1368
  150. package/dist/contracts/LegoSky.d.ts +0 -923
  151. package/dist/contracts/LegoSky.d.ts.map +0 -1
  152. package/dist/contracts/LegoSky.js +0 -1180
  153. package/dist/contracts/LegoUniswapV0_2.d.ts +0 -1204
  154. package/dist/contracts/LegoUniswapV0_2.d.ts.map +0 -1
  155. package/dist/contracts/LegoUniswapV0_2.js +0 -1546
  156. package/dist/contracts/LegoUniswapV2.d.ts +0 -1204
  157. package/dist/contracts/LegoUniswapV2.d.ts.map +0 -1
  158. package/dist/contracts/LegoUniswapV2.js +0 -1546
  159. package/dist/contracts/LegoUniswapV3.d.ts +0 -1338
  160. package/dist/contracts/LegoUniswapV3.d.ts.map +0 -1
  161. package/dist/contracts/LegoYield.d.ts +0 -390
  162. package/dist/contracts/LegoYield.d.ts.map +0 -1
  163. package/dist/contracts/LegoYield.js +0 -511
  164. package/dist/contracts/OracleParser.d.ts +0 -207
  165. package/dist/contracts/OracleParser.d.ts.map +0 -1
  166. package/dist/contracts/OracleParser.js +0 -264
  167. package/dist/contracts/OracleRegistry.d.ts +0 -1221
  168. package/dist/contracts/OracleRegistry.d.ts.map +0 -1
  169. package/dist/contracts/OracleRegistry.js +0 -1562
  170. package/dist/contracts/PriceSheets.d.ts +0 -1127
  171. package/dist/contracts/PriceSheets.d.ts.map +0 -1
  172. package/dist/contracts/PriceSheets.js +0 -1383
  173. package/dist/contracts/PythFeeds.d.ts +0 -640
  174. package/dist/contracts/PythFeeds.d.ts.map +0 -1
  175. package/dist/contracts/PythFeeds.js +0 -813
  176. package/dist/contracts/StorkFeeds.d.ts +0 -640
  177. package/dist/contracts/StorkFeeds.d.ts.map +0 -1
  178. package/dist/contracts/StorkFeeds.js +0 -813
  179. package/dist/contracts/UserWalletConfig_v1.d.ts +0 -1400
  180. package/dist/contracts/UserWalletConfig_v1.d.ts.map +0 -1
  181. package/dist/contracts/UserWalletConfig_v1.js +0 -1676
  182. package/dist/contracts/UserWalletConfig_v2.d.ts +0 -1468
  183. package/dist/contracts/UserWalletConfig_v2.d.ts.map +0 -1
  184. package/dist/contracts/UserWalletConfig_v2.js +0 -1764
  185. package/dist/contracts/UserWallet_v1.d.ts +0 -1980
  186. package/dist/contracts/UserWallet_v1.d.ts.map +0 -1
  187. package/dist/contracts/UserWallet_v1.js +0 -2581
  188. package/dist/contracts/UserWallet_v2.d.ts +0 -1958
  189. package/dist/contracts/UserWallet_v2.d.ts.map +0 -1
  190. package/dist/contracts/UserWallet_v2.js +0 -2553
  191. package/dist/contracts/WalletConfig.d.ts +0 -1398
  192. package/dist/contracts/WalletConfig.d.ts.map +0 -1
  193. package/dist/contracts/WalletConfig.js +0 -1674
  194. package/dist/contracts/WalletFunds.d.ts +0 -1978
  195. package/dist/contracts/WalletFunds.d.ts.map +0 -1
  196. package/dist/contracts/WalletFunds.js +0 -2579
  197. package/dist/contracts/v0_1_AddyRegistry.d.ts +0 -473
  198. package/dist/contracts/v0_1_AddyRegistry.d.ts.map +0 -1
  199. package/dist/contracts/v0_1_AddyRegistry.js +0 -594
  200. package/dist/contracts/v0_1_Agent.d.ts.map +0 -1
  201. package/dist/contracts/v0_1_Agent.js +0 -3372
  202. package/dist/contracts/v0_1_AgentFactory.d.ts +0 -1054
  203. package/dist/contracts/v0_1_AgentFactory.d.ts.map +0 -1
  204. package/dist/contracts/v0_1_AgentFactory.js +0 -1336
  205. package/dist/contracts/v0_1_UserWallet.d.ts +0 -1980
  206. package/dist/contracts/v0_1_UserWallet.d.ts.map +0 -1
  207. package/dist/contracts/v0_1_UserWallet.js +0 -2581
  208. package/dist/contracts/v0_1_UserWalletConfig.d.ts +0 -1400
  209. package/dist/contracts/v0_1_UserWalletConfig.d.ts.map +0 -1
  210. package/dist/contracts/v0_1_UserWalletConfig.js +0 -1676
  211. package/dist/contracts/v0_2_AddyRegistry.d.ts +0 -1050
  212. package/dist/contracts/v0_2_AddyRegistry.d.ts.map +0 -1
  213. package/dist/contracts/v0_2_AddyRegistry.js +0 -1313
  214. package/dist/contracts/v0_2_Agent.d.ts +0 -2709
  215. package/dist/contracts/v0_2_Agent.d.ts.map +0 -1
  216. package/dist/contracts/v0_2_Agent.js +0 -3458
  217. package/dist/contracts/v0_2_AgentFactory.d.ts +0 -1275
  218. package/dist/contracts/v0_2_AgentFactory.d.ts.map +0 -1
  219. package/dist/contracts/v0_2_AgentFactory.js +0 -1609
  220. package/dist/contracts/v0_2_UserWallet.d.ts +0 -1958
  221. package/dist/contracts/v0_2_UserWallet.d.ts.map +0 -1
  222. package/dist/contracts/v0_2_UserWallet.js +0 -2553
  223. package/dist/contracts/v0_2_UserWalletConfig.d.ts +0 -1468
  224. package/dist/contracts/v0_2_UserWalletConfig.d.ts.map +0 -1
  225. package/dist/contracts/v0_2_UserWalletConfig.js +0 -1764
  226. package/dist/contracts/v0_3_AddyRegistry.d.ts +0 -1109
  227. package/dist/contracts/v0_3_AddyRegistry.d.ts.map +0 -1
  228. package/dist/contracts/v0_3_AddyRegistry.js +0 -1392
  229. package/dist/contracts/v0_3_Agent.d.ts +0 -2709
  230. package/dist/contracts/v0_3_Agent.d.ts.map +0 -1
  231. package/dist/contracts/v0_3_Agent.js +0 -3458
  232. package/dist/contracts/v0_3_AgentFactory.d.ts +0 -1665
  233. package/dist/contracts/v0_3_AgentFactory.d.ts.map +0 -1
  234. package/dist/contracts/v0_3_AgentFactory.js +0 -2078
  235. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts +0 -706
  236. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts.map +0 -1
  237. package/dist/contracts/v0_3_ChainlinkFeeds.js +0 -900
  238. package/dist/contracts/v0_3_LegoAaveV3.d.ts +0 -1033
  239. package/dist/contracts/v0_3_LegoAaveV3.d.ts.map +0 -1
  240. package/dist/contracts/v0_3_LegoAaveV3.js +0 -1330
  241. package/dist/contracts/v0_3_LegoAeroClassic.d.ts +0 -1204
  242. package/dist/contracts/v0_3_LegoAeroClassic.d.ts.map +0 -1
  243. package/dist/contracts/v0_3_LegoAeroClassic.js +0 -1546
  244. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts +0 -1300
  245. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts.map +0 -1
  246. package/dist/contracts/v0_3_LegoAeroSlipstream.js +0 -1671
  247. package/dist/contracts/v0_3_LegoCommon.d.ts +0 -164
  248. package/dist/contracts/v0_3_LegoCommon.d.ts.map +0 -1
  249. package/dist/contracts/v0_3_LegoCommon.js +0 -202
  250. package/dist/contracts/v0_3_LegoCompoundV3.d.ts +0 -1060
  251. package/dist/contracts/v0_3_LegoCompoundV3.d.ts.map +0 -1
  252. package/dist/contracts/v0_3_LegoCompoundV3.js +0 -1365
  253. package/dist/contracts/v0_3_LegoCredit.d.ts +0 -140
  254. package/dist/contracts/v0_3_LegoCredit.d.ts.map +0 -1
  255. package/dist/contracts/v0_3_LegoCredit.js +0 -179
  256. package/dist/contracts/v0_3_LegoCurve.d.ts +0 -1189
  257. package/dist/contracts/v0_3_LegoCurve.d.ts.map +0 -1
  258. package/dist/contracts/v0_3_LegoCurve.js +0 -1519
  259. package/dist/contracts/v0_3_LegoDex.d.ts +0 -587
  260. package/dist/contracts/v0_3_LegoDex.d.ts.map +0 -1
  261. package/dist/contracts/v0_3_LegoDex.js +0 -774
  262. package/dist/contracts/v0_3_LegoEuler.d.ts +0 -1074
  263. package/dist/contracts/v0_3_LegoEuler.d.ts.map +0 -1
  264. package/dist/contracts/v0_3_LegoEuler.js +0 -1383
  265. package/dist/contracts/v0_3_LegoFluid.d.ts +0 -1025
  266. package/dist/contracts/v0_3_LegoFluid.d.ts.map +0 -1
  267. package/dist/contracts/v0_3_LegoFluid.js +0 -1320
  268. package/dist/contracts/v0_3_LegoHelper.d.ts +0 -1563
  269. package/dist/contracts/v0_3_LegoHelper.d.ts.map +0 -1
  270. package/dist/contracts/v0_3_LegoHelper.js +0 -1947
  271. package/dist/contracts/v0_3_LegoMoonwell.d.ts +0 -1042
  272. package/dist/contracts/v0_3_LegoMoonwell.d.ts.map +0 -1
  273. package/dist/contracts/v0_3_LegoMoonwell.js +0 -1342
  274. package/dist/contracts/v0_3_LegoMorpho.d.ts +0 -1074
  275. package/dist/contracts/v0_3_LegoMorpho.d.ts.map +0 -1
  276. package/dist/contracts/v0_3_LegoMorpho.js +0 -1383
  277. package/dist/contracts/v0_3_LegoRegistry.d.ts +0 -1079
  278. package/dist/contracts/v0_3_LegoRegistry.d.ts.map +0 -1
  279. package/dist/contracts/v0_3_LegoRegistry.js +0 -1368
  280. package/dist/contracts/v0_3_LegoSky.d.ts +0 -923
  281. package/dist/contracts/v0_3_LegoSky.d.ts.map +0 -1
  282. package/dist/contracts/v0_3_LegoSky.js +0 -1180
  283. package/dist/contracts/v0_3_LegoUniswapV3.d.ts +0 -1338
  284. package/dist/contracts/v0_3_LegoUniswapV3.d.ts.map +0 -1
  285. package/dist/contracts/v0_3_LegoYield.d.ts +0 -390
  286. package/dist/contracts/v0_3_LegoYield.d.ts.map +0 -1
  287. package/dist/contracts/v0_3_LegoYield.js +0 -511
  288. package/dist/contracts/v0_3_OracleParser.d.ts +0 -207
  289. package/dist/contracts/v0_3_OracleParser.d.ts.map +0 -1
  290. package/dist/contracts/v0_3_OracleParser.js +0 -264
  291. package/dist/contracts/v0_3_OracleRegistry.d.ts +0 -1221
  292. package/dist/contracts/v0_3_OracleRegistry.d.ts.map +0 -1
  293. package/dist/contracts/v0_3_PriceSheets.d.ts +0 -1127
  294. package/dist/contracts/v0_3_PriceSheets.d.ts.map +0 -1
  295. package/dist/contracts/v0_3_PriceSheets.js +0 -1383
  296. package/dist/contracts/v0_3_PythFeeds.d.ts +0 -640
  297. package/dist/contracts/v0_3_PythFeeds.d.ts.map +0 -1
  298. package/dist/contracts/v0_3_PythFeeds.js +0 -813
  299. package/dist/contracts/v0_3_StorkFeeds.d.ts +0 -640
  300. package/dist/contracts/v0_3_StorkFeeds.d.ts.map +0 -1
  301. package/dist/contracts/v0_3_StorkFeeds.js +0 -813
  302. package/dist/contracts/v0_3_UserWallet.d.ts +0 -1975
  303. package/dist/contracts/v0_3_UserWallet.d.ts.map +0 -1
  304. package/dist/contracts/v0_3_UserWallet.js +0 -2577
  305. package/dist/contracts/v0_3_UserWalletConfig.d.ts +0 -1852
  306. package/dist/contracts/v0_3_UserWalletConfig.d.ts.map +0 -1
  307. package/dist/contracts/v0_3_UserWalletConfig.js +0 -2263
  308. package/dist/getLegacyContracts.d.ts +0 -69
  309. package/dist/getLegacyContracts.d.ts.map +0 -1
  310. package/dist/getLegacyContracts.js +0 -55
@@ -102,6 +102,27 @@ export declare const abi: readonly [{
102
102
  }];
103
103
  readonly anonymous: false;
104
104
  readonly type: "event";
105
+ }, {
106
+ readonly name: "SnapShotPriceConfigSet";
107
+ readonly inputs: readonly [{
108
+ readonly name: "minSnapshotDelay";
109
+ readonly type: "uint256";
110
+ readonly indexed: false;
111
+ }, {
112
+ readonly name: "maxNumSnapshots";
113
+ readonly type: "uint256";
114
+ readonly indexed: false;
115
+ }, {
116
+ readonly name: "maxUpsideDeviation";
117
+ readonly type: "uint256";
118
+ readonly indexed: false;
119
+ }, {
120
+ readonly name: "staleTime";
121
+ readonly type: "uint256";
122
+ readonly indexed: false;
123
+ }];
124
+ readonly anonymous: false;
125
+ readonly type: "event";
105
126
  }, {
106
127
  readonly name: "AssetOpportunityAdded";
107
128
  readonly inputs: readonly [{
@@ -128,6 +149,23 @@ export declare const abi: readonly [{
128
149
  }];
129
150
  readonly anonymous: false;
130
151
  readonly type: "event";
152
+ }, {
153
+ readonly name: "PricePerShareSnapShotAdded";
154
+ readonly inputs: readonly [{
155
+ readonly name: "vaultToken";
156
+ readonly type: "address";
157
+ readonly indexed: true;
158
+ }, {
159
+ readonly name: "totalSupply";
160
+ readonly type: "uint256";
161
+ readonly indexed: false;
162
+ }, {
163
+ readonly name: "pricePerShare";
164
+ readonly type: "uint256";
165
+ readonly indexed: false;
166
+ }];
167
+ readonly anonymous: false;
168
+ readonly type: "event";
131
169
  }, {
132
170
  readonly stateMutability: "view";
133
171
  readonly type: "function";
@@ -169,6 +207,9 @@ export declare const abi: readonly [{
169
207
  }, {
170
208
  readonly name: "billing";
171
209
  readonly type: "address";
210
+ }, {
211
+ readonly name: "vaultRegistry";
212
+ readonly type: "address";
172
213
  }];
173
214
  }];
174
215
  }, {
@@ -273,12 +314,109 @@ export declare const abi: readonly [{
273
314
  }, {
274
315
  readonly stateMutability: "view";
275
316
  readonly type: "function";
276
- readonly name: "isPaused";
277
- readonly inputs: readonly [];
317
+ readonly name: "getWeightedPricePerShare";
318
+ readonly inputs: readonly [{
319
+ readonly name: "_vaultToken";
320
+ readonly type: "address";
321
+ }];
322
+ readonly outputs: readonly [{
323
+ readonly name: "";
324
+ readonly type: "uint256";
325
+ }];
326
+ }, {
327
+ readonly stateMutability: "view";
328
+ readonly type: "function";
329
+ readonly name: "getLatestSnapshot";
330
+ readonly inputs: readonly [{
331
+ readonly name: "_vaultToken";
332
+ readonly type: "address";
333
+ }, {
334
+ readonly name: "_pricePerShare";
335
+ readonly type: "uint256";
336
+ }];
337
+ readonly outputs: readonly [{
338
+ readonly name: "";
339
+ readonly type: "tuple";
340
+ readonly components: readonly [{
341
+ readonly name: "totalSupply";
342
+ readonly type: "uint256";
343
+ }, {
344
+ readonly name: "pricePerShare";
345
+ readonly type: "uint256";
346
+ }, {
347
+ readonly name: "lastUpdate";
348
+ readonly type: "uint256";
349
+ }];
350
+ }];
351
+ }, {
352
+ readonly stateMutability: "nonpayable";
353
+ readonly type: "function";
354
+ readonly name: "setSnapShotPriceConfig";
355
+ readonly inputs: readonly [{
356
+ readonly name: "_config";
357
+ readonly type: "tuple";
358
+ readonly components: readonly [{
359
+ readonly name: "minSnapshotDelay";
360
+ readonly type: "uint256";
361
+ }, {
362
+ readonly name: "maxNumSnapshots";
363
+ readonly type: "uint256";
364
+ }, {
365
+ readonly name: "maxUpsideDeviation";
366
+ readonly type: "uint256";
367
+ }, {
368
+ readonly name: "staleTime";
369
+ readonly type: "uint256";
370
+ }];
371
+ }];
372
+ readonly outputs: readonly [];
373
+ }, {
374
+ readonly stateMutability: "view";
375
+ readonly type: "function";
376
+ readonly name: "isValidPriceConfig";
377
+ readonly inputs: readonly [{
378
+ readonly name: "_config";
379
+ readonly type: "tuple";
380
+ readonly components: readonly [{
381
+ readonly name: "minSnapshotDelay";
382
+ readonly type: "uint256";
383
+ }, {
384
+ readonly name: "maxNumSnapshots";
385
+ readonly type: "uint256";
386
+ }, {
387
+ readonly name: "maxUpsideDeviation";
388
+ readonly type: "uint256";
389
+ }, {
390
+ readonly name: "staleTime";
391
+ readonly type: "uint256";
392
+ }];
393
+ }];
278
394
  readonly outputs: readonly [{
279
395
  readonly name: "";
280
396
  readonly type: "bool";
281
397
  }];
398
+ }, {
399
+ readonly stateMutability: "view";
400
+ readonly type: "function";
401
+ readonly name: "vaultToAsset";
402
+ readonly inputs: readonly [{
403
+ readonly name: "arg0";
404
+ readonly type: "address";
405
+ }];
406
+ readonly outputs: readonly [{
407
+ readonly name: "";
408
+ readonly type: "tuple";
409
+ readonly components: readonly [{
410
+ readonly name: "underlyingAsset";
411
+ readonly type: "address";
412
+ }, {
413
+ readonly name: "decimals";
414
+ readonly type: "uint256";
415
+ }, {
416
+ readonly name: "lastAveragePricePerShare";
417
+ readonly type: "uint256";
418
+ }];
419
+ }];
282
420
  }, {
283
421
  readonly stateMutability: "view";
284
422
  readonly type: "function";
@@ -324,10 +462,10 @@ export declare const abi: readonly [{
324
462
  }, {
325
463
  readonly stateMutability: "view";
326
464
  readonly type: "function";
327
- readonly name: "vaultToAsset";
465
+ readonly name: "assets";
328
466
  readonly inputs: readonly [{
329
467
  readonly name: "arg0";
330
- readonly type: "address";
468
+ readonly type: "uint256";
331
469
  }];
332
470
  readonly outputs: readonly [{
333
471
  readonly name: "";
@@ -336,35 +474,108 @@ export declare const abi: readonly [{
336
474
  }, {
337
475
  readonly stateMutability: "view";
338
476
  readonly type: "function";
339
- readonly name: "assets";
477
+ readonly name: "indexOfAsset";
340
478
  readonly inputs: readonly [{
341
479
  readonly name: "arg0";
480
+ readonly type: "address";
481
+ }];
482
+ readonly outputs: readonly [{
483
+ readonly name: "";
342
484
  readonly type: "uint256";
343
485
  }];
486
+ }, {
487
+ readonly stateMutability: "view";
488
+ readonly type: "function";
489
+ readonly name: "numAssets";
490
+ readonly inputs: readonly [];
344
491
  readonly outputs: readonly [{
345
492
  readonly name: "";
346
- readonly type: "address";
493
+ readonly type: "uint256";
347
494
  }];
348
495
  }, {
349
496
  readonly stateMutability: "view";
350
497
  readonly type: "function";
351
- readonly name: "indexOfAsset";
498
+ readonly name: "snapShotData";
352
499
  readonly inputs: readonly [{
353
500
  readonly name: "arg0";
354
501
  readonly type: "address";
355
502
  }];
356
503
  readonly outputs: readonly [{
357
504
  readonly name: "";
505
+ readonly type: "tuple";
506
+ readonly components: readonly [{
507
+ readonly name: "lastSnapShot";
508
+ readonly type: "tuple";
509
+ readonly components: readonly [{
510
+ readonly name: "totalSupply";
511
+ readonly type: "uint256";
512
+ }, {
513
+ readonly name: "pricePerShare";
514
+ readonly type: "uint256";
515
+ }, {
516
+ readonly name: "lastUpdate";
517
+ readonly type: "uint256";
518
+ }];
519
+ }, {
520
+ readonly name: "nextIndex";
521
+ readonly type: "uint256";
522
+ }];
523
+ }];
524
+ }, {
525
+ readonly stateMutability: "view";
526
+ readonly type: "function";
527
+ readonly name: "snapShots";
528
+ readonly inputs: readonly [{
529
+ readonly name: "arg0";
530
+ readonly type: "address";
531
+ }, {
532
+ readonly name: "arg1";
358
533
  readonly type: "uint256";
359
534
  }];
535
+ readonly outputs: readonly [{
536
+ readonly name: "";
537
+ readonly type: "tuple";
538
+ readonly components: readonly [{
539
+ readonly name: "totalSupply";
540
+ readonly type: "uint256";
541
+ }, {
542
+ readonly name: "pricePerShare";
543
+ readonly type: "uint256";
544
+ }, {
545
+ readonly name: "lastUpdate";
546
+ readonly type: "uint256";
547
+ }];
548
+ }];
360
549
  }, {
361
550
  readonly stateMutability: "view";
362
551
  readonly type: "function";
363
- readonly name: "numAssets";
552
+ readonly name: "snapShotPriceConfig";
364
553
  readonly inputs: readonly [];
365
554
  readonly outputs: readonly [{
366
555
  readonly name: "";
367
- readonly type: "uint256";
556
+ readonly type: "tuple";
557
+ readonly components: readonly [{
558
+ readonly name: "minSnapshotDelay";
559
+ readonly type: "uint256";
560
+ }, {
561
+ readonly name: "maxNumSnapshots";
562
+ readonly type: "uint256";
563
+ }, {
564
+ readonly name: "maxUpsideDeviation";
565
+ readonly type: "uint256";
566
+ }, {
567
+ readonly name: "staleTime";
568
+ readonly type: "uint256";
569
+ }];
570
+ }];
571
+ }, {
572
+ readonly stateMutability: "view";
573
+ readonly type: "function";
574
+ readonly name: "isPaused";
575
+ readonly inputs: readonly [];
576
+ readonly outputs: readonly [{
577
+ readonly name: "";
578
+ readonly type: "bool";
368
579
  }];
369
580
  }, {
370
581
  readonly stateMutability: "view";
@@ -405,6 +616,144 @@ export declare const abi: readonly [{
405
616
  readonly name: "";
406
617
  readonly type: "bool";
407
618
  }];
619
+ }, {
620
+ readonly stateMutability: "view";
621
+ readonly type: "function";
622
+ readonly name: "getUnderlyingAsset";
623
+ readonly inputs: readonly [{
624
+ readonly name: "_vaultToken";
625
+ readonly type: "address";
626
+ }];
627
+ readonly outputs: readonly [{
628
+ readonly name: "";
629
+ readonly type: "address";
630
+ }];
631
+ }, {
632
+ readonly stateMutability: "view";
633
+ readonly type: "function";
634
+ readonly name: "getUnderlyingBalances";
635
+ readonly inputs: readonly [{
636
+ readonly name: "_vaultToken";
637
+ readonly type: "address";
638
+ }, {
639
+ readonly name: "_vaultTokenBalance";
640
+ readonly type: "uint256";
641
+ }];
642
+ readonly outputs: readonly [{
643
+ readonly name: "";
644
+ readonly type: "uint256";
645
+ }, {
646
+ readonly name: "";
647
+ readonly type: "uint256";
648
+ }];
649
+ }, {
650
+ readonly stateMutability: "view";
651
+ readonly type: "function";
652
+ readonly name: "getUnderlyingAmount";
653
+ readonly inputs: readonly [{
654
+ readonly name: "_vaultToken";
655
+ readonly type: "address";
656
+ }, {
657
+ readonly name: "_vaultTokenAmount";
658
+ readonly type: "uint256";
659
+ }];
660
+ readonly outputs: readonly [{
661
+ readonly name: "";
662
+ readonly type: "uint256";
663
+ }];
664
+ }, {
665
+ readonly stateMutability: "view";
666
+ readonly type: "function";
667
+ readonly name: "getUnderlyingAmountSafe";
668
+ readonly inputs: readonly [{
669
+ readonly name: "_vaultToken";
670
+ readonly type: "address";
671
+ }, {
672
+ readonly name: "_vaultTokenBalance";
673
+ readonly type: "uint256";
674
+ }];
675
+ readonly outputs: readonly [{
676
+ readonly name: "";
677
+ readonly type: "uint256";
678
+ }];
679
+ }, {
680
+ readonly stateMutability: "view";
681
+ readonly type: "function";
682
+ readonly name: "getUnderlyingData";
683
+ readonly inputs: readonly [{
684
+ readonly name: "_vaultToken";
685
+ readonly type: "address";
686
+ }, {
687
+ readonly name: "_vaultTokenAmount";
688
+ readonly type: "uint256";
689
+ }];
690
+ readonly outputs: readonly [{
691
+ readonly name: "";
692
+ readonly type: "address";
693
+ }, {
694
+ readonly name: "";
695
+ readonly type: "uint256";
696
+ }, {
697
+ readonly name: "";
698
+ readonly type: "uint256";
699
+ }];
700
+ }, {
701
+ readonly stateMutability: "view";
702
+ readonly type: "function";
703
+ readonly name: "getUnderlyingData";
704
+ readonly inputs: readonly [{
705
+ readonly name: "_vaultToken";
706
+ readonly type: "address";
707
+ }, {
708
+ readonly name: "_vaultTokenAmount";
709
+ readonly type: "uint256";
710
+ }, {
711
+ readonly name: "_appraiser";
712
+ readonly type: "address";
713
+ }];
714
+ readonly outputs: readonly [{
715
+ readonly name: "";
716
+ readonly type: "address";
717
+ }, {
718
+ readonly name: "";
719
+ readonly type: "uint256";
720
+ }, {
721
+ readonly name: "";
722
+ readonly type: "uint256";
723
+ }];
724
+ }, {
725
+ readonly stateMutability: "view";
726
+ readonly type: "function";
727
+ readonly name: "getUsdValueOfVaultToken";
728
+ readonly inputs: readonly [{
729
+ readonly name: "_vaultToken";
730
+ readonly type: "address";
731
+ }, {
732
+ readonly name: "_vaultTokenAmount";
733
+ readonly type: "uint256";
734
+ }];
735
+ readonly outputs: readonly [{
736
+ readonly name: "";
737
+ readonly type: "uint256";
738
+ }];
739
+ }, {
740
+ readonly stateMutability: "view";
741
+ readonly type: "function";
742
+ readonly name: "getUsdValueOfVaultToken";
743
+ readonly inputs: readonly [{
744
+ readonly name: "_vaultToken";
745
+ readonly type: "address";
746
+ }, {
747
+ readonly name: "_vaultTokenAmount";
748
+ readonly type: "uint256";
749
+ }, {
750
+ readonly name: "_appraiser";
751
+ readonly type: "address";
752
+ }];
753
+ readonly outputs: readonly [{
754
+ readonly name: "";
755
+ readonly type: "uint256";
756
+ }];
408
757
  }, {
409
758
  readonly stateMutability: "view";
410
759
  readonly type: "function";
@@ -414,6 +763,51 @@ export declare const abi: readonly [{
414
763
  readonly name: "";
415
764
  readonly type: "bool";
416
765
  }];
766
+ }, {
767
+ readonly stateMutability: "view";
768
+ readonly type: "function";
769
+ readonly name: "getPricePerShare";
770
+ readonly inputs: readonly [{
771
+ readonly name: "_vaultToken";
772
+ readonly type: "address";
773
+ }];
774
+ readonly outputs: readonly [{
775
+ readonly name: "";
776
+ readonly type: "uint256";
777
+ }];
778
+ }, {
779
+ readonly stateMutability: "view";
780
+ readonly type: "function";
781
+ readonly name: "getPricePerShare";
782
+ readonly inputs: readonly [{
783
+ readonly name: "_vaultToken";
784
+ readonly type: "address";
785
+ }, {
786
+ readonly name: "_decimals";
787
+ readonly type: "uint256";
788
+ }];
789
+ readonly outputs: readonly [{
790
+ readonly name: "";
791
+ readonly type: "uint256";
792
+ }];
793
+ }, {
794
+ readonly stateMutability: "view";
795
+ readonly type: "function";
796
+ readonly name: "getVaultTokenAmount";
797
+ readonly inputs: readonly [{
798
+ readonly name: "_asset";
799
+ readonly type: "address";
800
+ }, {
801
+ readonly name: "_assetAmount";
802
+ readonly type: "uint256";
803
+ }, {
804
+ readonly name: "_vaultToken";
805
+ readonly type: "address";
806
+ }];
807
+ readonly outputs: readonly [{
808
+ readonly name: "";
809
+ readonly type: "uint256";
810
+ }];
417
811
  }, {
418
812
  readonly stateMutability: "view";
419
813
  readonly type: "function";
@@ -441,6 +835,94 @@ export declare const abi: readonly [{
441
835
  readonly name: "";
442
836
  readonly type: "bool";
443
837
  }];
838
+ }, {
839
+ readonly stateMutability: "view";
840
+ readonly type: "function";
841
+ readonly name: "totalAssets";
842
+ readonly inputs: readonly [{
843
+ readonly name: "_vaultToken";
844
+ readonly type: "address";
845
+ }];
846
+ readonly outputs: readonly [{
847
+ readonly name: "";
848
+ readonly type: "uint256";
849
+ }];
850
+ }, {
851
+ readonly stateMutability: "view";
852
+ readonly type: "function";
853
+ readonly name: "totalBorrows";
854
+ readonly inputs: readonly [{
855
+ readonly name: "_vaultToken";
856
+ readonly type: "address";
857
+ }];
858
+ readonly outputs: readonly [{
859
+ readonly name: "";
860
+ readonly type: "uint256";
861
+ }];
862
+ }, {
863
+ readonly stateMutability: "view";
864
+ readonly type: "function";
865
+ readonly name: "canRegisterVaultToken";
866
+ readonly inputs: readonly [{
867
+ readonly name: "_asset";
868
+ readonly type: "address";
869
+ }, {
870
+ readonly name: "_vaultToken";
871
+ readonly type: "address";
872
+ }];
873
+ readonly outputs: readonly [{
874
+ readonly name: "";
875
+ readonly type: "bool";
876
+ }];
877
+ }, {
878
+ readonly stateMutability: "nonpayable";
879
+ readonly type: "function";
880
+ readonly name: "registerVaultTokenLocally";
881
+ readonly inputs: readonly [{
882
+ readonly name: "_asset";
883
+ readonly type: "address";
884
+ }, {
885
+ readonly name: "_vaultAddr";
886
+ readonly type: "address";
887
+ }];
888
+ readonly outputs: readonly [{
889
+ readonly name: "";
890
+ readonly type: "tuple";
891
+ readonly components: readonly [{
892
+ readonly name: "underlyingAsset";
893
+ readonly type: "address";
894
+ }, {
895
+ readonly name: "decimals";
896
+ readonly type: "uint256";
897
+ }, {
898
+ readonly name: "lastAveragePricePerShare";
899
+ readonly type: "uint256";
900
+ }];
901
+ }];
902
+ }, {
903
+ readonly stateMutability: "nonpayable";
904
+ readonly type: "function";
905
+ readonly name: "deregisterVaultTokenLocally";
906
+ readonly inputs: readonly [{
907
+ readonly name: "_asset";
908
+ readonly type: "address";
909
+ }, {
910
+ readonly name: "_vaultAddr";
911
+ readonly type: "address";
912
+ }];
913
+ readonly outputs: readonly [];
914
+ }, {
915
+ readonly stateMutability: "nonpayable";
916
+ readonly type: "function";
917
+ readonly name: "addPriceSnapshot";
918
+ readonly inputs: readonly [{
919
+ readonly name: "_vaultToken";
920
+ readonly type: "address";
921
+ }];
922
+ readonly outputs: readonly [{
923
+ readonly name: "";
924
+ readonly type: "bool";
925
+ }];
444
926
  }, {
445
927
  readonly stateMutability: "nonpayable";
446
928
  readonly type: "function";
@@ -690,201 +1172,24 @@ export declare const abi: readonly [{
690
1172
  }, {
691
1173
  readonly stateMutability: "view";
692
1174
  readonly type: "function";
693
- readonly name: "isVaultToken";
694
- readonly inputs: readonly [{
695
- readonly name: "_vaultToken";
696
- readonly type: "address";
697
- }];
698
- readonly outputs: readonly [{
699
- readonly name: "";
700
- readonly type: "bool";
701
- }];
702
- }, {
703
- readonly stateMutability: "view";
704
- readonly type: "function";
705
- readonly name: "getUnderlyingAsset";
706
- readonly inputs: readonly [{
707
- readonly name: "_vaultToken";
708
- readonly type: "address";
709
- }];
710
- readonly outputs: readonly [{
711
- readonly name: "";
712
- readonly type: "address";
713
- }];
714
- }, {
715
- readonly stateMutability: "view";
716
- readonly type: "function";
717
- readonly name: "getUnderlyingAmount";
718
- readonly inputs: readonly [{
719
- readonly name: "_vaultToken";
720
- readonly type: "address";
721
- }, {
722
- readonly name: "_vaultTokenAmount";
723
- readonly type: "uint256";
724
- }];
725
- readonly outputs: readonly [{
726
- readonly name: "";
727
- readonly type: "uint256";
728
- }];
729
- }, {
730
- readonly stateMutability: "view";
731
- readonly type: "function";
732
- readonly name: "getVaultTokenAmount";
733
- readonly inputs: readonly [{
734
- readonly name: "_asset";
735
- readonly type: "address";
736
- }, {
737
- readonly name: "_assetAmount";
738
- readonly type: "uint256";
739
- }, {
740
- readonly name: "_vaultToken";
741
- readonly type: "address";
742
- }];
743
- readonly outputs: readonly [{
744
- readonly name: "";
745
- readonly type: "uint256";
746
- }];
747
- }, {
748
- readonly stateMutability: "view";
749
- readonly type: "function";
750
- readonly name: "getUsdValueOfVaultToken";
751
- readonly inputs: readonly [{
752
- readonly name: "_vaultToken";
753
- readonly type: "address";
754
- }, {
755
- readonly name: "_vaultTokenAmount";
756
- readonly type: "uint256";
757
- }];
758
- readonly outputs: readonly [{
759
- readonly name: "";
760
- readonly type: "uint256";
761
- }];
762
- }, {
763
- readonly stateMutability: "view";
764
- readonly type: "function";
765
- readonly name: "getUsdValueOfVaultToken";
766
- readonly inputs: readonly [{
767
- readonly name: "_vaultToken";
768
- readonly type: "address";
769
- }, {
770
- readonly name: "_vaultTokenAmount";
771
- readonly type: "uint256";
772
- }, {
773
- readonly name: "_appraiser";
774
- readonly type: "address";
775
- }];
776
- readonly outputs: readonly [{
777
- readonly name: "";
778
- readonly type: "uint256";
779
- }];
780
- }, {
781
- readonly stateMutability: "view";
782
- readonly type: "function";
783
- readonly name: "getUnderlyingData";
784
- readonly inputs: readonly [{
785
- readonly name: "_vaultToken";
786
- readonly type: "address";
787
- }, {
788
- readonly name: "_vaultTokenAmount";
789
- readonly type: "uint256";
790
- }];
791
- readonly outputs: readonly [{
792
- readonly name: "";
793
- readonly type: "address";
794
- }, {
795
- readonly name: "";
796
- readonly type: "uint256";
797
- }, {
798
- readonly name: "";
799
- readonly type: "uint256";
800
- }];
801
- }, {
802
- readonly stateMutability: "view";
803
- readonly type: "function";
804
- readonly name: "getUnderlyingData";
1175
+ readonly name: "getAccessForLego";
805
1176
  readonly inputs: readonly [{
806
- readonly name: "_vaultToken";
1177
+ readonly name: "_user";
807
1178
  readonly type: "address";
808
1179
  }, {
809
- readonly name: "_vaultTokenAmount";
1180
+ readonly name: "_action";
810
1181
  readonly type: "uint256";
811
- }, {
812
- readonly name: "_appraiser";
813
- readonly type: "address";
814
1182
  }];
815
1183
  readonly outputs: readonly [{
816
1184
  readonly name: "";
817
1185
  readonly type: "address";
818
1186
  }, {
819
1187
  readonly name: "";
820
- readonly type: "uint256";
821
- }, {
822
- readonly name: "";
823
- readonly type: "uint256";
824
- }];
825
- }, {
826
- readonly stateMutability: "view";
827
- readonly type: "function";
828
- readonly name: "totalAssets";
829
- readonly inputs: readonly [{
830
- readonly name: "_vaultToken";
831
- readonly type: "address";
832
- }];
833
- readonly outputs: readonly [{
834
- readonly name: "";
835
- readonly type: "uint256";
836
- }];
837
- }, {
838
- readonly stateMutability: "view";
839
- readonly type: "function";
840
- readonly name: "totalBorrows";
841
- readonly inputs: readonly [{
842
- readonly name: "_vaultToken";
843
- readonly type: "address";
844
- }];
845
- readonly outputs: readonly [{
846
- readonly name: "";
847
- readonly type: "uint256";
848
- }];
849
- }, {
850
- readonly stateMutability: "view";
851
- readonly type: "function";
852
- readonly name: "getPricePerShare";
853
- readonly inputs: readonly [{
854
- readonly name: "_asset";
855
- readonly type: "address";
1188
+ readonly type: "string";
856
1189
  }, {
857
- readonly name: "_decimals";
858
- readonly type: "uint256";
859
- }];
860
- readonly outputs: readonly [{
861
1190
  readonly name: "";
862
1191
  readonly type: "uint256";
863
1192
  }];
864
- }, {
865
- readonly stateMutability: "nonpayable";
866
- readonly type: "function";
867
- readonly name: "addAssetOpportunity";
868
- readonly inputs: readonly [{
869
- readonly name: "_asset";
870
- readonly type: "address";
871
- }, {
872
- readonly name: "_vaultAddr";
873
- readonly type: "address";
874
- }];
875
- readonly outputs: readonly [];
876
- }, {
877
- readonly stateMutability: "nonpayable";
878
- readonly type: "function";
879
- readonly name: "removeAssetOpportunity";
880
- readonly inputs: readonly [{
881
- readonly name: "_asset";
882
- readonly type: "address";
883
- }, {
884
- readonly name: "_vaultAddr";
885
- readonly type: "address";
886
- }];
887
- readonly outputs: readonly [];
888
1193
  }, {
889
1194
  readonly stateMutability: "nonpayable";
890
1195
  readonly type: "function";
@@ -1835,42 +2140,6 @@ export declare const abi: readonly [{
1835
2140
  readonly name: "";
1836
2141
  readonly type: "uint256";
1837
2142
  }];
1838
- }, {
1839
- readonly stateMutability: "view";
1840
- readonly type: "function";
1841
- readonly name: "getAccessForLego";
1842
- readonly inputs: readonly [{
1843
- readonly name: "_user";
1844
- readonly type: "address";
1845
- }, {
1846
- readonly name: "_action";
1847
- readonly type: "uint256";
1848
- }];
1849
- readonly outputs: readonly [{
1850
- readonly name: "";
1851
- readonly type: "address";
1852
- }, {
1853
- readonly name: "";
1854
- readonly type: "string";
1855
- }, {
1856
- readonly name: "";
1857
- readonly type: "uint256";
1858
- }];
1859
- }, {
1860
- readonly stateMutability: "view";
1861
- readonly type: "function";
1862
- readonly name: "getPrice";
1863
- readonly inputs: readonly [{
1864
- readonly name: "_asset";
1865
- readonly type: "address";
1866
- }, {
1867
- readonly name: "_decimals";
1868
- readonly type: "uint256";
1869
- }];
1870
- readonly outputs: readonly [{
1871
- readonly name: "";
1872
- readonly type: "uint256";
1873
- }];
1874
2143
  }, {
1875
2144
  readonly stateMutability: "view";
1876
2145
  readonly type: "function";
@@ -1931,6 +2200,7 @@ export type Contract = {
1931
2200
  appraiser: `0x${string}`;
1932
2201
  walletBackpack: `0x${string}`;
1933
2202
  billing: `0x${string}`;
2203
+ vaultRegistry: `0x${string}`;
1934
2204
  }>;
1935
2205
  getUndyHq: () => Promise<`0x${string}`>;
1936
2206
  isLegoAsset: (asset: `0x${string}`) => Promise<boolean>;
@@ -1938,33 +2208,69 @@ export type Contract = {
1938
2208
  getAssets: () => Promise<`0x${string}`[]>;
1939
2209
  isAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<boolean>;
1940
2210
  getNumLegoAssets: () => Promise<bigint>;
1941
- isPaused: () => Promise<boolean>;
2211
+ getWeightedPricePerShare: (vaultToken: `0x${string}`) => Promise<bigint>;
2212
+ getLatestSnapshot: (vaultToken: `0x${string}`, pricePerShare: bigint) => Promise<{
2213
+ totalSupply: bigint;
2214
+ pricePerShare: bigint;
2215
+ lastUpdate: bigint;
2216
+ }>;
2217
+ isValidPriceConfig: (config: {
2218
+ minSnapshotDelay: bigint;
2219
+ maxNumSnapshots: bigint;
2220
+ maxUpsideDeviation: bigint;
2221
+ staleTime: bigint;
2222
+ }) => Promise<boolean>;
2223
+ vaultToAsset: (arg0: `0x${string}`) => Promise<{
2224
+ underlyingAsset: `0x${string}`;
2225
+ decimals: bigint;
2226
+ lastAveragePricePerShare: bigint;
2227
+ }>;
1942
2228
  assetOpportunities: (arg0: `0x${string}`, arg1: bigint) => Promise<`0x${string}`>;
1943
2229
  indexOfAssetOpportunity: (arg0: `0x${string}`, arg1: `0x${string}`) => Promise<bigint>;
1944
2230
  numAssetOpportunities: (arg0: `0x${string}`) => Promise<bigint>;
1945
- vaultToAsset: (arg0: `0x${string}`) => Promise<`0x${string}`>;
1946
2231
  assets: (arg0: bigint) => Promise<`0x${string}`>;
1947
2232
  indexOfAsset: (arg0: `0x${string}`) => Promise<bigint>;
1948
2233
  numAssets: () => Promise<bigint>;
2234
+ snapShotData: (arg0: `0x${string}`) => Promise<{
2235
+ lastSnapShot: {
2236
+ totalSupply: bigint;
2237
+ pricePerShare: bigint;
2238
+ lastUpdate: bigint;
2239
+ };
2240
+ nextIndex: bigint;
2241
+ }>;
2242
+ snapShots: (arg0: `0x${string}`, arg1: bigint) => Promise<{
2243
+ totalSupply: bigint;
2244
+ pricePerShare: bigint;
2245
+ lastUpdate: bigint;
2246
+ }>;
2247
+ snapShotPriceConfig: () => Promise<{
2248
+ minSnapshotDelay: bigint;
2249
+ maxNumSnapshots: bigint;
2250
+ maxUpsideDeviation: bigint;
2251
+ staleTime: bigint;
2252
+ }>;
2253
+ isPaused: () => Promise<boolean>;
1949
2254
  hasCapability: (action: bigint) => Promise<boolean>;
1950
2255
  getRegistries: () => Promise<`0x${string}`[]>;
1951
2256
  isYieldLego: () => Promise<boolean>;
1952
2257
  isDexLego: () => Promise<boolean>;
1953
- isRebasing: () => Promise<boolean>;
1954
- isEligibleVaultForTrialFunds: (vaultToken: `0x${string}`, underlyingAsset: `0x${string}`) => Promise<boolean>;
1955
- isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
1956
- hasClaimableRewards: (user: `0x${string}`) => Promise<boolean>;
1957
- isVaultToken: (vaultToken: `0x${string}`) => Promise<boolean>;
1958
2258
  getUnderlyingAsset: (vaultToken: `0x${string}`) => Promise<`0x${string}`>;
2259
+ getUnderlyingBalances: (vaultToken: `0x${string}`, vaultTokenBalance: bigint) => Promise<[bigint, bigint]>;
1959
2260
  getUnderlyingAmount: (vaultToken: `0x${string}`, vaultTokenAmount: bigint) => Promise<bigint>;
1960
- getVaultTokenAmount: (asset: `0x${string}`, assetAmount: bigint, vaultToken: `0x${string}`) => Promise<bigint>;
1961
- getUsdValueOfVaultToken: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<bigint>;
2261
+ getUnderlyingAmountSafe: (vaultToken: `0x${string}`, vaultTokenBalance: bigint) => Promise<bigint>;
1962
2262
  getUnderlyingData: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<[`0x${string}`, bigint, bigint]>;
2263
+ getUsdValueOfVaultToken: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<bigint>;
2264
+ isRebasing: () => Promise<boolean>;
2265
+ getPricePerShare: (vaultToken: `0x${string}`, decimals?: bigint) => Promise<bigint>;
2266
+ getVaultTokenAmount: (asset: `0x${string}`, assetAmount: bigint, vaultToken: `0x${string}`) => Promise<bigint>;
2267
+ isEligibleVaultForTrialFunds: (vaultToken: `0x${string}`, underlyingAsset: `0x${string}`) => Promise<boolean>;
2268
+ isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
1963
2269
  totalAssets: (vaultToken: `0x${string}`) => Promise<bigint>;
1964
2270
  totalBorrows: (vaultToken: `0x${string}`) => Promise<bigint>;
1965
- getPricePerShare: (asset: `0x${string}`, decimals: bigint) => Promise<bigint>;
2271
+ canRegisterVaultToken: (asset: `0x${string}`, vaultToken: `0x${string}`) => Promise<boolean>;
2272
+ hasClaimableRewards: (user: `0x${string}`) => Promise<boolean>;
1966
2273
  getAccessForLego: (user: `0x${string}`, action: bigint) => Promise<[`0x${string}`, string, bigint]>;
1967
- getPrice: (asset: `0x${string}`, decimals: bigint) => Promise<bigint>;
1968
2274
  morphoRewards: () => Promise<`0x${string}`>;
1969
2275
  MORPHO_FACTORY: () => Promise<`0x${string}`>;
1970
2276
  MORPHO_FACTORY_LEGACY: () => Promise<`0x${string}`>;
@@ -1973,6 +2279,19 @@ export type Contract = {
1973
2279
  pause: (shouldPause: boolean) => Promise<void>;
1974
2280
  recoverFunds: (recipient: `0x${string}`, asset: `0x${string}`) => Promise<void>;
1975
2281
  recoverFundsMany: (recipient: `0x${string}`, assets: `0x${string}`[]) => Promise<void>;
2282
+ setSnapShotPriceConfig: (config: {
2283
+ minSnapshotDelay: bigint;
2284
+ maxNumSnapshots: bigint;
2285
+ maxUpsideDeviation: bigint;
2286
+ staleTime: bigint;
2287
+ }) => Promise<void>;
2288
+ registerVaultTokenLocally: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<{
2289
+ underlyingAsset: `0x${string}`;
2290
+ decimals: bigint;
2291
+ lastAveragePricePerShare: bigint;
2292
+ }>;
2293
+ deregisterVaultTokenLocally: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2294
+ addPriceSnapshot: (vaultToken: `0x${string}`) => Promise<boolean>;
1976
2295
  depositForYield: (asset: `0x${string}`, amount: bigint, vaultAddr: `0x${string}`, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
1977
2296
  ledger: `0x${string}`;
1978
2297
  missionControl: `0x${string}`;
@@ -1992,8 +2311,6 @@ export type Contract = {
1992
2311
  appraiser: `0x${string}`;
1993
2312
  }) => Promise<[bigint, bigint]>;
1994
2313
  setMorphoRewardsAddr: (addr: `0x${string}`) => Promise<boolean>;
1995
- addAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
1996
- removeAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
1997
2314
  swapTokens: (amountIn: bigint, minAmountOut: bigint, tokenPath: `0x${string}`[], poolPath: `0x${string}`[], recipient: `0x${string}`, miniAddys?: {
1998
2315
  ledger: `0x${string}`;
1999
2316
  missionControl: `0x${string}`;
@@ -2067,8 +2384,10 @@ export type Contract = {
2067
2384
  MorphoRewardsAddrSet: (addr: `0x${string}`) => Promise<void>;
2068
2385
  LegoPauseModified: (isPaused: boolean) => Promise<void>;
2069
2386
  LegoFundsRecovered: (asset: `0x${string}`, recipient: `0x${string}`, balance: bigint) => Promise<void>;
2387
+ SnapShotPriceConfigSet: (minSnapshotDelay: bigint, maxNumSnapshots: bigint, maxUpsideDeviation: bigint, staleTime: bigint) => Promise<void>;
2070
2388
  AssetOpportunityAdded: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2071
2389
  AssetOpportunityRemoved: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2390
+ PricePerShareSnapShotAdded: (vaultToken: `0x${string}`, totalSupply: bigint, pricePerShare: bigint) => Promise<void>;
2072
2391
  };
2073
2392
  };
2074
2393
  export type Calls = keyof Contract['calls'];
@@ -2116,45 +2435,54 @@ export type SDK = {
2116
2435
  getAssets: (...args: ExtractArgs<Contract['calls']['getAssets']>) => Promise<CallReturn<'getAssets'>>;
2117
2436
  isAssetOpportunity: (...args: ExtractArgs<Contract['calls']['isAssetOpportunity']>) => Promise<CallReturn<'isAssetOpportunity'>>;
2118
2437
  getNumLegoAssets: (...args: ExtractArgs<Contract['calls']['getNumLegoAssets']>) => Promise<CallReturn<'getNumLegoAssets'>>;
2119
- isPaused: (...args: ExtractArgs<Contract['calls']['isPaused']>) => Promise<CallReturn<'isPaused'>>;
2438
+ getWeightedPricePerShare: (...args: ExtractArgs<Contract['calls']['getWeightedPricePerShare']>) => Promise<CallReturn<'getWeightedPricePerShare'>>;
2439
+ getLatestSnapshot: (...args: ExtractArgs<Contract['calls']['getLatestSnapshot']>) => Promise<CallReturn<'getLatestSnapshot'>>;
2440
+ isValidPriceConfig: (...args: ExtractArgs<Contract['calls']['isValidPriceConfig']>) => Promise<CallReturn<'isValidPriceConfig'>>;
2441
+ vaultToAsset: (...args: ExtractArgs<Contract['calls']['vaultToAsset']>) => Promise<CallReturn<'vaultToAsset'>>;
2120
2442
  assetOpportunities: (...args: ExtractArgs<Contract['calls']['assetOpportunities']>) => Promise<CallReturn<'assetOpportunities'>>;
2121
2443
  indexOfAssetOpportunity: (...args: ExtractArgs<Contract['calls']['indexOfAssetOpportunity']>) => Promise<CallReturn<'indexOfAssetOpportunity'>>;
2122
2444
  numAssetOpportunities: (...args: ExtractArgs<Contract['calls']['numAssetOpportunities']>) => Promise<CallReturn<'numAssetOpportunities'>>;
2123
- vaultToAsset: (...args: ExtractArgs<Contract['calls']['vaultToAsset']>) => Promise<CallReturn<'vaultToAsset'>>;
2124
2445
  assets: (...args: ExtractArgs<Contract['calls']['assets']>) => Promise<CallReturn<'assets'>>;
2125
2446
  indexOfAsset: (...args: ExtractArgs<Contract['calls']['indexOfAsset']>) => Promise<CallReturn<'indexOfAsset'>>;
2126
2447
  numAssets: (...args: ExtractArgs<Contract['calls']['numAssets']>) => Promise<CallReturn<'numAssets'>>;
2448
+ snapShotData: (...args: ExtractArgs<Contract['calls']['snapShotData']>) => Promise<CallReturn<'snapShotData'>>;
2449
+ snapShots: (...args: ExtractArgs<Contract['calls']['snapShots']>) => Promise<CallReturn<'snapShots'>>;
2450
+ snapShotPriceConfig: (...args: ExtractArgs<Contract['calls']['snapShotPriceConfig']>) => Promise<CallReturn<'snapShotPriceConfig'>>;
2451
+ isPaused: (...args: ExtractArgs<Contract['calls']['isPaused']>) => Promise<CallReturn<'isPaused'>>;
2127
2452
  hasCapability: (...args: ExtractArgs<Contract['calls']['hasCapability']>) => Promise<CallReturn<'hasCapability'>>;
2128
2453
  getRegistries: (...args: ExtractArgs<Contract['calls']['getRegistries']>) => Promise<CallReturn<'getRegistries'>>;
2129
2454
  isYieldLego: (...args: ExtractArgs<Contract['calls']['isYieldLego']>) => Promise<CallReturn<'isYieldLego'>>;
2130
2455
  isDexLego: (...args: ExtractArgs<Contract['calls']['isDexLego']>) => Promise<CallReturn<'isDexLego'>>;
2131
- isRebasing: (...args: ExtractArgs<Contract['calls']['isRebasing']>) => Promise<CallReturn<'isRebasing'>>;
2132
- isEligibleVaultForTrialFunds: (...args: ExtractArgs<Contract['calls']['isEligibleVaultForTrialFunds']>) => Promise<CallReturn<'isEligibleVaultForTrialFunds'>>;
2133
- isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
2134
- hasClaimableRewards: (...args: ExtractArgs<Contract['calls']['hasClaimableRewards']>) => Promise<CallReturn<'hasClaimableRewards'>>;
2135
- isVaultToken: (...args: ExtractArgs<Contract['calls']['isVaultToken']>) => Promise<CallReturn<'isVaultToken'>>;
2136
2456
  getUnderlyingAsset: (...args: ExtractArgs<Contract['calls']['getUnderlyingAsset']>) => Promise<CallReturn<'getUnderlyingAsset'>>;
2457
+ getUnderlyingBalances: (...args: ExtractArgs<Contract['calls']['getUnderlyingBalances']>) => Promise<CallReturn<'getUnderlyingBalances'>>;
2137
2458
  getUnderlyingAmount: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmount']>) => Promise<CallReturn<'getUnderlyingAmount'>>;
2138
- getVaultTokenAmount: (...args: ExtractArgs<Contract['calls']['getVaultTokenAmount']>) => Promise<CallReturn<'getVaultTokenAmount'>>;
2139
- getUsdValueOfVaultToken: (...args: ExtractArgs<Contract['calls']['getUsdValueOfVaultToken']>) => Promise<CallReturn<'getUsdValueOfVaultToken'>>;
2459
+ getUnderlyingAmountSafe: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmountSafe']>) => Promise<CallReturn<'getUnderlyingAmountSafe'>>;
2140
2460
  getUnderlyingData: (...args: ExtractArgs<Contract['calls']['getUnderlyingData']>) => Promise<CallReturn<'getUnderlyingData'>>;
2461
+ getUsdValueOfVaultToken: (...args: ExtractArgs<Contract['calls']['getUsdValueOfVaultToken']>) => Promise<CallReturn<'getUsdValueOfVaultToken'>>;
2462
+ isRebasing: (...args: ExtractArgs<Contract['calls']['isRebasing']>) => Promise<CallReturn<'isRebasing'>>;
2463
+ getPricePerShare: (...args: ExtractArgs<Contract['calls']['getPricePerShare']>) => Promise<CallReturn<'getPricePerShare'>>;
2464
+ getVaultTokenAmount: (...args: ExtractArgs<Contract['calls']['getVaultTokenAmount']>) => Promise<CallReturn<'getVaultTokenAmount'>>;
2465
+ isEligibleVaultForTrialFunds: (...args: ExtractArgs<Contract['calls']['isEligibleVaultForTrialFunds']>) => Promise<CallReturn<'isEligibleVaultForTrialFunds'>>;
2466
+ isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
2141
2467
  totalAssets: (...args: ExtractArgs<Contract['calls']['totalAssets']>) => Promise<CallReturn<'totalAssets'>>;
2142
2468
  totalBorrows: (...args: ExtractArgs<Contract['calls']['totalBorrows']>) => Promise<CallReturn<'totalBorrows'>>;
2143
- getPricePerShare: (...args: ExtractArgs<Contract['calls']['getPricePerShare']>) => Promise<CallReturn<'getPricePerShare'>>;
2469
+ canRegisterVaultToken: (...args: ExtractArgs<Contract['calls']['canRegisterVaultToken']>) => Promise<CallReturn<'canRegisterVaultToken'>>;
2470
+ hasClaimableRewards: (...args: ExtractArgs<Contract['calls']['hasClaimableRewards']>) => Promise<CallReturn<'hasClaimableRewards'>>;
2144
2471
  getAccessForLego: (...args: ExtractArgs<Contract['calls']['getAccessForLego']>) => Promise<CallReturn<'getAccessForLego'>>;
2145
- getPrice: (...args: ExtractArgs<Contract['calls']['getPrice']>) => Promise<CallReturn<'getPrice'>>;
2146
2472
  morphoRewards: (...args: ExtractArgs<Contract['calls']['morphoRewards']>) => Promise<CallReturn<'morphoRewards'>>;
2147
2473
  MORPHO_FACTORY: (...args: ExtractArgs<Contract['calls']['MORPHO_FACTORY']>) => Promise<CallReturn<'MORPHO_FACTORY'>>;
2148
2474
  MORPHO_FACTORY_LEGACY: (...args: ExtractArgs<Contract['calls']['MORPHO_FACTORY_LEGACY']>) => Promise<CallReturn<'MORPHO_FACTORY_LEGACY'>>;
2149
2475
  pause: (...args: ExtractArgs<Contract['mutations']['pause']>) => Promise<Address>;
2150
2476
  recoverFunds: (...args: ExtractArgs<Contract['mutations']['recoverFunds']>) => Promise<Address>;
2151
2477
  recoverFundsMany: (...args: ExtractArgs<Contract['mutations']['recoverFundsMany']>) => Promise<Address>;
2478
+ setSnapShotPriceConfig: (...args: ExtractArgs<Contract['mutations']['setSnapShotPriceConfig']>) => Promise<Address>;
2479
+ registerVaultTokenLocally: (...args: ExtractArgs<Contract['mutations']['registerVaultTokenLocally']>) => Promise<Address>;
2480
+ deregisterVaultTokenLocally: (...args: ExtractArgs<Contract['mutations']['deregisterVaultTokenLocally']>) => Promise<Address>;
2481
+ addPriceSnapshot: (...args: ExtractArgs<Contract['mutations']['addPriceSnapshot']>) => Promise<Address>;
2152
2482
  depositForYield: (...args: ExtractArgs<Contract['mutations']['depositForYield']>) => Promise<Address>;
2153
2483
  withdrawFromYield: (...args: ExtractArgs<Contract['mutations']['withdrawFromYield']>) => Promise<Address>;
2154
2484
  claimRewards: (...args: ExtractArgs<Contract['mutations']['claimRewards']>) => Promise<Address>;
2155
2485
  setMorphoRewardsAddr: (...args: ExtractArgs<Contract['mutations']['setMorphoRewardsAddr']>) => Promise<Address>;
2156
- addAssetOpportunity: (...args: ExtractArgs<Contract['mutations']['addAssetOpportunity']>) => Promise<Address>;
2157
- removeAssetOpportunity: (...args: ExtractArgs<Contract['mutations']['removeAssetOpportunity']>) => Promise<Address>;
2158
2486
  swapTokens: (...args: ExtractArgs<Contract['mutations']['swapTokens']>) => Promise<Address>;
2159
2487
  mintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['mintOrRedeemAsset']>) => Promise<Address>;
2160
2488
  confirmMintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['confirmMintOrRedeemAsset']>) => Promise<Address>;