@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
@@ -93,6 +93,27 @@ export declare const abi: readonly [{
93
93
  }];
94
94
  readonly anonymous: false;
95
95
  readonly type: "event";
96
+ }, {
97
+ readonly name: "SnapShotPriceConfigSet";
98
+ readonly inputs: readonly [{
99
+ readonly name: "minSnapshotDelay";
100
+ readonly type: "uint256";
101
+ readonly indexed: false;
102
+ }, {
103
+ readonly name: "maxNumSnapshots";
104
+ readonly type: "uint256";
105
+ readonly indexed: false;
106
+ }, {
107
+ readonly name: "maxUpsideDeviation";
108
+ readonly type: "uint256";
109
+ readonly indexed: false;
110
+ }, {
111
+ readonly name: "staleTime";
112
+ readonly type: "uint256";
113
+ readonly indexed: false;
114
+ }];
115
+ readonly anonymous: false;
116
+ readonly type: "event";
96
117
  }, {
97
118
  readonly name: "AssetOpportunityAdded";
98
119
  readonly inputs: readonly [{
@@ -119,6 +140,23 @@ export declare const abi: readonly [{
119
140
  }];
120
141
  readonly anonymous: false;
121
142
  readonly type: "event";
143
+ }, {
144
+ readonly name: "PricePerShareSnapShotAdded";
145
+ readonly inputs: readonly [{
146
+ readonly name: "vaultToken";
147
+ readonly type: "address";
148
+ readonly indexed: true;
149
+ }, {
150
+ readonly name: "totalSupply";
151
+ readonly type: "uint256";
152
+ readonly indexed: false;
153
+ }, {
154
+ readonly name: "pricePerShare";
155
+ readonly type: "uint256";
156
+ readonly indexed: false;
157
+ }];
158
+ readonly anonymous: false;
159
+ readonly type: "event";
122
160
  }, {
123
161
  readonly stateMutability: "view";
124
162
  readonly type: "function";
@@ -160,6 +198,9 @@ export declare const abi: readonly [{
160
198
  }, {
161
199
  readonly name: "billing";
162
200
  readonly type: "address";
201
+ }, {
202
+ readonly name: "vaultRegistry";
203
+ readonly type: "address";
163
204
  }];
164
205
  }];
165
206
  }, {
@@ -264,12 +305,109 @@ export declare const abi: readonly [{
264
305
  }, {
265
306
  readonly stateMutability: "view";
266
307
  readonly type: "function";
267
- readonly name: "isPaused";
268
- readonly inputs: readonly [];
308
+ readonly name: "getWeightedPricePerShare";
309
+ readonly inputs: readonly [{
310
+ readonly name: "_vaultToken";
311
+ readonly type: "address";
312
+ }];
313
+ readonly outputs: readonly [{
314
+ readonly name: "";
315
+ readonly type: "uint256";
316
+ }];
317
+ }, {
318
+ readonly stateMutability: "view";
319
+ readonly type: "function";
320
+ readonly name: "getLatestSnapshot";
321
+ readonly inputs: readonly [{
322
+ readonly name: "_vaultToken";
323
+ readonly type: "address";
324
+ }, {
325
+ readonly name: "_pricePerShare";
326
+ readonly type: "uint256";
327
+ }];
328
+ readonly outputs: readonly [{
329
+ readonly name: "";
330
+ readonly type: "tuple";
331
+ readonly components: readonly [{
332
+ readonly name: "totalSupply";
333
+ readonly type: "uint256";
334
+ }, {
335
+ readonly name: "pricePerShare";
336
+ readonly type: "uint256";
337
+ }, {
338
+ readonly name: "lastUpdate";
339
+ readonly type: "uint256";
340
+ }];
341
+ }];
342
+ }, {
343
+ readonly stateMutability: "nonpayable";
344
+ readonly type: "function";
345
+ readonly name: "setSnapShotPriceConfig";
346
+ readonly inputs: readonly [{
347
+ readonly name: "_config";
348
+ readonly type: "tuple";
349
+ readonly components: readonly [{
350
+ readonly name: "minSnapshotDelay";
351
+ readonly type: "uint256";
352
+ }, {
353
+ readonly name: "maxNumSnapshots";
354
+ readonly type: "uint256";
355
+ }, {
356
+ readonly name: "maxUpsideDeviation";
357
+ readonly type: "uint256";
358
+ }, {
359
+ readonly name: "staleTime";
360
+ readonly type: "uint256";
361
+ }];
362
+ }];
363
+ readonly outputs: readonly [];
364
+ }, {
365
+ readonly stateMutability: "view";
366
+ readonly type: "function";
367
+ readonly name: "isValidPriceConfig";
368
+ readonly inputs: readonly [{
369
+ readonly name: "_config";
370
+ readonly type: "tuple";
371
+ readonly components: readonly [{
372
+ readonly name: "minSnapshotDelay";
373
+ readonly type: "uint256";
374
+ }, {
375
+ readonly name: "maxNumSnapshots";
376
+ readonly type: "uint256";
377
+ }, {
378
+ readonly name: "maxUpsideDeviation";
379
+ readonly type: "uint256";
380
+ }, {
381
+ readonly name: "staleTime";
382
+ readonly type: "uint256";
383
+ }];
384
+ }];
269
385
  readonly outputs: readonly [{
270
386
  readonly name: "";
271
387
  readonly type: "bool";
272
388
  }];
389
+ }, {
390
+ readonly stateMutability: "view";
391
+ readonly type: "function";
392
+ readonly name: "vaultToAsset";
393
+ readonly inputs: readonly [{
394
+ readonly name: "arg0";
395
+ readonly type: "address";
396
+ }];
397
+ readonly outputs: readonly [{
398
+ readonly name: "";
399
+ readonly type: "tuple";
400
+ readonly components: readonly [{
401
+ readonly name: "underlyingAsset";
402
+ readonly type: "address";
403
+ }, {
404
+ readonly name: "decimals";
405
+ readonly type: "uint256";
406
+ }, {
407
+ readonly name: "lastAveragePricePerShare";
408
+ readonly type: "uint256";
409
+ }];
410
+ }];
273
411
  }, {
274
412
  readonly stateMutability: "view";
275
413
  readonly type: "function";
@@ -315,10 +453,10 @@ export declare const abi: readonly [{
315
453
  }, {
316
454
  readonly stateMutability: "view";
317
455
  readonly type: "function";
318
- readonly name: "vaultToAsset";
456
+ readonly name: "assets";
319
457
  readonly inputs: readonly [{
320
458
  readonly name: "arg0";
321
- readonly type: "address";
459
+ readonly type: "uint256";
322
460
  }];
323
461
  readonly outputs: readonly [{
324
462
  readonly name: "";
@@ -327,35 +465,108 @@ export declare const abi: readonly [{
327
465
  }, {
328
466
  readonly stateMutability: "view";
329
467
  readonly type: "function";
330
- readonly name: "assets";
468
+ readonly name: "indexOfAsset";
331
469
  readonly inputs: readonly [{
332
470
  readonly name: "arg0";
471
+ readonly type: "address";
472
+ }];
473
+ readonly outputs: readonly [{
474
+ readonly name: "";
333
475
  readonly type: "uint256";
334
476
  }];
477
+ }, {
478
+ readonly stateMutability: "view";
479
+ readonly type: "function";
480
+ readonly name: "numAssets";
481
+ readonly inputs: readonly [];
335
482
  readonly outputs: readonly [{
336
483
  readonly name: "";
337
- readonly type: "address";
484
+ readonly type: "uint256";
338
485
  }];
339
486
  }, {
340
487
  readonly stateMutability: "view";
341
488
  readonly type: "function";
342
- readonly name: "indexOfAsset";
489
+ readonly name: "snapShotData";
343
490
  readonly inputs: readonly [{
344
491
  readonly name: "arg0";
345
492
  readonly type: "address";
346
493
  }];
347
494
  readonly outputs: readonly [{
348
495
  readonly name: "";
496
+ readonly type: "tuple";
497
+ readonly components: readonly [{
498
+ readonly name: "lastSnapShot";
499
+ readonly type: "tuple";
500
+ readonly components: readonly [{
501
+ readonly name: "totalSupply";
502
+ readonly type: "uint256";
503
+ }, {
504
+ readonly name: "pricePerShare";
505
+ readonly type: "uint256";
506
+ }, {
507
+ readonly name: "lastUpdate";
508
+ readonly type: "uint256";
509
+ }];
510
+ }, {
511
+ readonly name: "nextIndex";
512
+ readonly type: "uint256";
513
+ }];
514
+ }];
515
+ }, {
516
+ readonly stateMutability: "view";
517
+ readonly type: "function";
518
+ readonly name: "snapShots";
519
+ readonly inputs: readonly [{
520
+ readonly name: "arg0";
521
+ readonly type: "address";
522
+ }, {
523
+ readonly name: "arg1";
349
524
  readonly type: "uint256";
350
525
  }];
526
+ readonly outputs: readonly [{
527
+ readonly name: "";
528
+ readonly type: "tuple";
529
+ readonly components: readonly [{
530
+ readonly name: "totalSupply";
531
+ readonly type: "uint256";
532
+ }, {
533
+ readonly name: "pricePerShare";
534
+ readonly type: "uint256";
535
+ }, {
536
+ readonly name: "lastUpdate";
537
+ readonly type: "uint256";
538
+ }];
539
+ }];
351
540
  }, {
352
541
  readonly stateMutability: "view";
353
542
  readonly type: "function";
354
- readonly name: "numAssets";
543
+ readonly name: "snapShotPriceConfig";
355
544
  readonly inputs: readonly [];
356
545
  readonly outputs: readonly [{
357
546
  readonly name: "";
358
- readonly type: "uint256";
547
+ readonly type: "tuple";
548
+ readonly components: readonly [{
549
+ readonly name: "minSnapshotDelay";
550
+ readonly type: "uint256";
551
+ }, {
552
+ readonly name: "maxNumSnapshots";
553
+ readonly type: "uint256";
554
+ }, {
555
+ readonly name: "maxUpsideDeviation";
556
+ readonly type: "uint256";
557
+ }, {
558
+ readonly name: "staleTime";
559
+ readonly type: "uint256";
560
+ }];
561
+ }];
562
+ }, {
563
+ readonly stateMutability: "view";
564
+ readonly type: "function";
565
+ readonly name: "isPaused";
566
+ readonly inputs: readonly [];
567
+ readonly outputs: readonly [{
568
+ readonly name: "";
569
+ readonly type: "bool";
359
570
  }];
360
571
  }, {
361
572
  readonly stateMutability: "view";
@@ -399,63 +610,75 @@ export declare const abi: readonly [{
399
610
  }, {
400
611
  readonly stateMutability: "view";
401
612
  readonly type: "function";
402
- readonly name: "isEligibleVaultForTrialFunds";
613
+ readonly name: "getUnderlyingAsset";
403
614
  readonly inputs: readonly [{
404
615
  readonly name: "_vaultToken";
405
616
  readonly type: "address";
406
- }, {
407
- readonly name: "_underlyingAsset";
408
- readonly type: "address";
409
617
  }];
410
618
  readonly outputs: readonly [{
411
619
  readonly name: "";
412
- readonly type: "bool";
620
+ readonly type: "address";
413
621
  }];
414
622
  }, {
415
623
  readonly stateMutability: "view";
416
624
  readonly type: "function";
417
- readonly name: "isEligibleForYieldBonus";
625
+ readonly name: "getUnderlyingBalances";
418
626
  readonly inputs: readonly [{
419
- readonly name: "_asset";
627
+ readonly name: "_vaultToken";
420
628
  readonly type: "address";
629
+ }, {
630
+ readonly name: "_vaultTokenBalance";
631
+ readonly type: "uint256";
421
632
  }];
422
633
  readonly outputs: readonly [{
423
634
  readonly name: "";
424
- readonly type: "bool";
635
+ readonly type: "uint256";
636
+ }, {
637
+ readonly name: "";
638
+ readonly type: "uint256";
425
639
  }];
426
640
  }, {
427
641
  readonly stateMutability: "view";
428
642
  readonly type: "function";
429
- readonly name: "isRebasing";
430
- readonly inputs: readonly [];
643
+ readonly name: "getUnderlyingAmount";
644
+ readonly inputs: readonly [{
645
+ readonly name: "_vaultToken";
646
+ readonly type: "address";
647
+ }, {
648
+ readonly name: "_vaultTokenAmount";
649
+ readonly type: "uint256";
650
+ }];
431
651
  readonly outputs: readonly [{
432
652
  readonly name: "";
433
- readonly type: "bool";
653
+ readonly type: "uint256";
434
654
  }];
435
655
  }, {
436
- readonly stateMutability: "nonpayable";
656
+ readonly stateMutability: "view";
437
657
  readonly type: "function";
438
- readonly name: "depositForYield";
658
+ readonly name: "getUnderlyingAmountSafe";
439
659
  readonly inputs: readonly [{
440
- readonly name: "_asset";
660
+ readonly name: "_vaultToken";
441
661
  readonly type: "address";
442
662
  }, {
443
- readonly name: "_amount";
663
+ readonly name: "_vaultTokenBalance";
444
664
  readonly type: "uint256";
445
- }, {
446
- readonly name: "_vaultAddr";
447
- readonly type: "address";
448
- }, {
449
- readonly name: "_extraData";
450
- readonly type: "bytes32";
451
- }, {
452
- readonly name: "_recipient";
453
- readonly type: "address";
454
665
  }];
455
666
  readonly outputs: readonly [{
456
667
  readonly name: "";
457
668
  readonly type: "uint256";
669
+ }];
670
+ }, {
671
+ readonly stateMutability: "view";
672
+ readonly type: "function";
673
+ readonly name: "getUnderlyingData";
674
+ readonly inputs: readonly [{
675
+ readonly name: "_vaultToken";
676
+ readonly type: "address";
458
677
  }, {
678
+ readonly name: "_vaultTokenAmount";
679
+ readonly type: "uint256";
680
+ }];
681
+ readonly outputs: readonly [{
459
682
  readonly name: "";
460
683
  readonly type: "address";
461
684
  }, {
@@ -466,45 +689,20 @@ export declare const abi: readonly [{
466
689
  readonly type: "uint256";
467
690
  }];
468
691
  }, {
469
- readonly stateMutability: "nonpayable";
692
+ readonly stateMutability: "view";
470
693
  readonly type: "function";
471
- readonly name: "depositForYield";
694
+ readonly name: "getUnderlyingData";
472
695
  readonly inputs: readonly [{
473
- readonly name: "_asset";
696
+ readonly name: "_vaultToken";
474
697
  readonly type: "address";
475
698
  }, {
476
- readonly name: "_amount";
699
+ readonly name: "_vaultTokenAmount";
477
700
  readonly type: "uint256";
478
701
  }, {
479
- readonly name: "_vaultAddr";
480
- readonly type: "address";
481
- }, {
482
- readonly name: "_extraData";
483
- readonly type: "bytes32";
484
- }, {
485
- readonly name: "_recipient";
702
+ readonly name: "_appraiser";
486
703
  readonly type: "address";
487
- }, {
488
- readonly name: "_miniAddys";
489
- readonly type: "tuple";
490
- readonly components: readonly [{
491
- readonly name: "ledger";
492
- readonly type: "address";
493
- }, {
494
- readonly name: "missionControl";
495
- readonly type: "address";
496
- }, {
497
- readonly name: "legoBook";
498
- readonly type: "address";
499
- }, {
500
- readonly name: "appraiser";
501
- readonly type: "address";
502
- }];
503
704
  }];
504
705
  readonly outputs: readonly [{
505
- readonly name: "";
506
- readonly type: "uint256";
507
- }, {
508
706
  readonly name: "";
509
707
  readonly type: "address";
510
708
  }, {
@@ -515,88 +713,102 @@ export declare const abi: readonly [{
515
713
  readonly type: "uint256";
516
714
  }];
517
715
  }, {
518
- readonly stateMutability: "nonpayable";
716
+ readonly stateMutability: "view";
519
717
  readonly type: "function";
520
- readonly name: "withdrawFromYield";
718
+ readonly name: "getUsdValueOfVaultToken";
521
719
  readonly inputs: readonly [{
522
720
  readonly name: "_vaultToken";
523
721
  readonly type: "address";
524
722
  }, {
525
- readonly name: "_amount";
723
+ readonly name: "_vaultTokenAmount";
526
724
  readonly type: "uint256";
527
- }, {
528
- readonly name: "_extraData";
529
- readonly type: "bytes32";
530
- }, {
531
- readonly name: "_recipient";
532
- readonly type: "address";
533
725
  }];
534
726
  readonly outputs: readonly [{
535
727
  readonly name: "";
536
728
  readonly type: "uint256";
537
- }, {
538
- readonly name: "";
729
+ }];
730
+ }, {
731
+ readonly stateMutability: "view";
732
+ readonly type: "function";
733
+ readonly name: "getUsdValueOfVaultToken";
734
+ readonly inputs: readonly [{
735
+ readonly name: "_vaultToken";
539
736
  readonly type: "address";
540
737
  }, {
541
- readonly name: "";
738
+ readonly name: "_vaultTokenAmount";
542
739
  readonly type: "uint256";
543
740
  }, {
741
+ readonly name: "_appraiser";
742
+ readonly type: "address";
743
+ }];
744
+ readonly outputs: readonly [{
544
745
  readonly name: "";
545
746
  readonly type: "uint256";
546
747
  }];
547
748
  }, {
548
- readonly stateMutability: "nonpayable";
749
+ readonly stateMutability: "view";
549
750
  readonly type: "function";
550
- readonly name: "withdrawFromYield";
751
+ readonly name: "isRebasing";
752
+ readonly inputs: readonly [];
753
+ readonly outputs: readonly [{
754
+ readonly name: "";
755
+ readonly type: "bool";
756
+ }];
757
+ }, {
758
+ readonly stateMutability: "view";
759
+ readonly type: "function";
760
+ readonly name: "getPricePerShare";
551
761
  readonly inputs: readonly [{
552
762
  readonly name: "_vaultToken";
553
763
  readonly type: "address";
554
- }, {
555
- readonly name: "_amount";
764
+ }];
765
+ readonly outputs: readonly [{
766
+ readonly name: "";
556
767
  readonly type: "uint256";
557
- }, {
558
- readonly name: "_extraData";
559
- readonly type: "bytes32";
560
- }, {
561
- readonly name: "_recipient";
768
+ }];
769
+ }, {
770
+ readonly stateMutability: "view";
771
+ readonly type: "function";
772
+ readonly name: "getPricePerShare";
773
+ readonly inputs: readonly [{
774
+ readonly name: "_vaultToken";
562
775
  readonly type: "address";
563
776
  }, {
564
- readonly name: "_miniAddys";
565
- readonly type: "tuple";
566
- readonly components: readonly [{
567
- readonly name: "ledger";
568
- readonly type: "address";
569
- }, {
570
- readonly name: "missionControl";
571
- readonly type: "address";
572
- }, {
573
- readonly name: "legoBook";
574
- readonly type: "address";
575
- }, {
576
- readonly name: "appraiser";
577
- readonly type: "address";
578
- }];
777
+ readonly name: "_decimals";
778
+ readonly type: "uint256";
579
779
  }];
580
780
  readonly outputs: readonly [{
581
781
  readonly name: "";
582
782
  readonly type: "uint256";
583
- }, {
584
- readonly name: "";
783
+ }];
784
+ }, {
785
+ readonly stateMutability: "view";
786
+ readonly type: "function";
787
+ readonly name: "getVaultTokenAmount";
788
+ readonly inputs: readonly [{
789
+ readonly name: "_asset";
585
790
  readonly type: "address";
586
791
  }, {
587
- readonly name: "";
792
+ readonly name: "_assetAmount";
588
793
  readonly type: "uint256";
589
794
  }, {
795
+ readonly name: "_vaultToken";
796
+ readonly type: "address";
797
+ }];
798
+ readonly outputs: readonly [{
590
799
  readonly name: "";
591
800
  readonly type: "uint256";
592
801
  }];
593
802
  }, {
594
803
  readonly stateMutability: "view";
595
804
  readonly type: "function";
596
- readonly name: "isVaultToken";
805
+ readonly name: "isEligibleVaultForTrialFunds";
597
806
  readonly inputs: readonly [{
598
807
  readonly name: "_vaultToken";
599
808
  readonly type: "address";
809
+ }, {
810
+ readonly name: "_underlyingAsset";
811
+ readonly type: "address";
600
812
  }];
601
813
  readonly outputs: readonly [{
602
814
  readonly name: "";
@@ -605,93 +817,252 @@ export declare const abi: readonly [{
605
817
  }, {
606
818
  readonly stateMutability: "view";
607
819
  readonly type: "function";
608
- readonly name: "getUnderlyingAsset";
820
+ readonly name: "isEligibleForYieldBonus";
821
+ readonly inputs: readonly [{
822
+ readonly name: "_asset";
823
+ readonly type: "address";
824
+ }];
825
+ readonly outputs: readonly [{
826
+ readonly name: "";
827
+ readonly type: "bool";
828
+ }];
829
+ }, {
830
+ readonly stateMutability: "view";
831
+ readonly type: "function";
832
+ readonly name: "totalAssets";
609
833
  readonly inputs: readonly [{
610
834
  readonly name: "_vaultToken";
611
835
  readonly type: "address";
612
836
  }];
613
837
  readonly outputs: readonly [{
614
838
  readonly name: "";
839
+ readonly type: "uint256";
840
+ }];
841
+ }, {
842
+ readonly stateMutability: "view";
843
+ readonly type: "function";
844
+ readonly name: "totalBorrows";
845
+ readonly inputs: readonly [{
846
+ readonly name: "_vaultToken";
615
847
  readonly type: "address";
616
848
  }];
849
+ readonly outputs: readonly [{
850
+ readonly name: "";
851
+ readonly type: "uint256";
852
+ }];
617
853
  }, {
618
854
  readonly stateMutability: "view";
619
855
  readonly type: "function";
620
- readonly name: "getUnderlyingAmount";
856
+ readonly name: "canRegisterVaultToken";
621
857
  readonly inputs: readonly [{
858
+ readonly name: "_asset";
859
+ readonly type: "address";
860
+ }, {
622
861
  readonly name: "_vaultToken";
623
862
  readonly type: "address";
863
+ }];
864
+ readonly outputs: readonly [{
865
+ readonly name: "";
866
+ readonly type: "bool";
867
+ }];
868
+ }, {
869
+ readonly stateMutability: "nonpayable";
870
+ readonly type: "function";
871
+ readonly name: "registerVaultTokenLocally";
872
+ readonly inputs: readonly [{
873
+ readonly name: "_asset";
874
+ readonly type: "address";
624
875
  }, {
625
- readonly name: "_vaultTokenAmount";
876
+ readonly name: "_vaultAddr";
877
+ readonly type: "address";
878
+ }];
879
+ readonly outputs: readonly [{
880
+ readonly name: "";
881
+ readonly type: "tuple";
882
+ readonly components: readonly [{
883
+ readonly name: "underlyingAsset";
884
+ readonly type: "address";
885
+ }, {
886
+ readonly name: "decimals";
887
+ readonly type: "uint256";
888
+ }, {
889
+ readonly name: "lastAveragePricePerShare";
890
+ readonly type: "uint256";
891
+ }];
892
+ }];
893
+ }, {
894
+ readonly stateMutability: "nonpayable";
895
+ readonly type: "function";
896
+ readonly name: "deregisterVaultTokenLocally";
897
+ readonly inputs: readonly [{
898
+ readonly name: "_asset";
899
+ readonly type: "address";
900
+ }, {
901
+ readonly name: "_vaultAddr";
902
+ readonly type: "address";
903
+ }];
904
+ readonly outputs: readonly [];
905
+ }, {
906
+ readonly stateMutability: "nonpayable";
907
+ readonly type: "function";
908
+ readonly name: "addPriceSnapshot";
909
+ readonly inputs: readonly [{
910
+ readonly name: "_vaultToken";
911
+ readonly type: "address";
912
+ }];
913
+ readonly outputs: readonly [{
914
+ readonly name: "";
915
+ readonly type: "bool";
916
+ }];
917
+ }, {
918
+ readonly stateMutability: "nonpayable";
919
+ readonly type: "function";
920
+ readonly name: "depositForYield";
921
+ readonly inputs: readonly [{
922
+ readonly name: "_asset";
923
+ readonly type: "address";
924
+ }, {
925
+ readonly name: "_amount";
626
926
  readonly type: "uint256";
927
+ }, {
928
+ readonly name: "_vaultAddr";
929
+ readonly type: "address";
930
+ }, {
931
+ readonly name: "_extraData";
932
+ readonly type: "bytes32";
933
+ }, {
934
+ readonly name: "_recipient";
935
+ readonly type: "address";
627
936
  }];
628
937
  readonly outputs: readonly [{
629
938
  readonly name: "";
630
939
  readonly type: "uint256";
940
+ }, {
941
+ readonly name: "";
942
+ readonly type: "address";
943
+ }, {
944
+ readonly name: "";
945
+ readonly type: "uint256";
946
+ }, {
947
+ readonly name: "";
948
+ readonly type: "uint256";
631
949
  }];
632
950
  }, {
633
- readonly stateMutability: "view";
951
+ readonly stateMutability: "nonpayable";
634
952
  readonly type: "function";
635
- readonly name: "getVaultTokenAmount";
953
+ readonly name: "depositForYield";
636
954
  readonly inputs: readonly [{
637
955
  readonly name: "_asset";
638
956
  readonly type: "address";
639
957
  }, {
640
- readonly name: "_assetAmount";
958
+ readonly name: "_amount";
641
959
  readonly type: "uint256";
642
960
  }, {
643
- readonly name: "_vaultToken";
961
+ readonly name: "_vaultAddr";
962
+ readonly type: "address";
963
+ }, {
964
+ readonly name: "_extraData";
965
+ readonly type: "bytes32";
966
+ }, {
967
+ readonly name: "_recipient";
644
968
  readonly type: "address";
969
+ }, {
970
+ readonly name: "_miniAddys";
971
+ readonly type: "tuple";
972
+ readonly components: readonly [{
973
+ readonly name: "ledger";
974
+ readonly type: "address";
975
+ }, {
976
+ readonly name: "missionControl";
977
+ readonly type: "address";
978
+ }, {
979
+ readonly name: "legoBook";
980
+ readonly type: "address";
981
+ }, {
982
+ readonly name: "appraiser";
983
+ readonly type: "address";
984
+ }];
645
985
  }];
646
986
  readonly outputs: readonly [{
647
987
  readonly name: "";
648
988
  readonly type: "uint256";
989
+ }, {
990
+ readonly name: "";
991
+ readonly type: "address";
992
+ }, {
993
+ readonly name: "";
994
+ readonly type: "uint256";
995
+ }, {
996
+ readonly name: "";
997
+ readonly type: "uint256";
649
998
  }];
650
999
  }, {
651
- readonly stateMutability: "view";
1000
+ readonly stateMutability: "nonpayable";
652
1001
  readonly type: "function";
653
- readonly name: "getUsdValueOfVaultToken";
1002
+ readonly name: "withdrawFromYield";
654
1003
  readonly inputs: readonly [{
655
1004
  readonly name: "_vaultToken";
656
1005
  readonly type: "address";
657
1006
  }, {
658
- readonly name: "_vaultTokenAmount";
1007
+ readonly name: "_amount";
659
1008
  readonly type: "uint256";
1009
+ }, {
1010
+ readonly name: "_extraData";
1011
+ readonly type: "bytes32";
1012
+ }, {
1013
+ readonly name: "_recipient";
1014
+ readonly type: "address";
660
1015
  }];
661
1016
  readonly outputs: readonly [{
662
1017
  readonly name: "";
663
1018
  readonly type: "uint256";
1019
+ }, {
1020
+ readonly name: "";
1021
+ readonly type: "address";
1022
+ }, {
1023
+ readonly name: "";
1024
+ readonly type: "uint256";
1025
+ }, {
1026
+ readonly name: "";
1027
+ readonly type: "uint256";
664
1028
  }];
665
1029
  }, {
666
- readonly stateMutability: "view";
1030
+ readonly stateMutability: "nonpayable";
667
1031
  readonly type: "function";
668
- readonly name: "getUsdValueOfVaultToken";
1032
+ readonly name: "withdrawFromYield";
669
1033
  readonly inputs: readonly [{
670
1034
  readonly name: "_vaultToken";
671
1035
  readonly type: "address";
672
1036
  }, {
673
- readonly name: "_vaultTokenAmount";
1037
+ readonly name: "_amount";
674
1038
  readonly type: "uint256";
675
1039
  }, {
676
- readonly name: "_appraiser";
1040
+ readonly name: "_extraData";
1041
+ readonly type: "bytes32";
1042
+ }, {
1043
+ readonly name: "_recipient";
677
1044
  readonly type: "address";
1045
+ }, {
1046
+ readonly name: "_miniAddys";
1047
+ readonly type: "tuple";
1048
+ readonly components: readonly [{
1049
+ readonly name: "ledger";
1050
+ readonly type: "address";
1051
+ }, {
1052
+ readonly name: "missionControl";
1053
+ readonly type: "address";
1054
+ }, {
1055
+ readonly name: "legoBook";
1056
+ readonly type: "address";
1057
+ }, {
1058
+ readonly name: "appraiser";
1059
+ readonly type: "address";
1060
+ }];
678
1061
  }];
679
1062
  readonly outputs: readonly [{
680
1063
  readonly name: "";
681
1064
  readonly type: "uint256";
682
- }];
683
- }, {
684
- readonly stateMutability: "view";
685
- readonly type: "function";
686
- readonly name: "getUnderlyingData";
687
- readonly inputs: readonly [{
688
- readonly name: "_vaultToken";
689
- readonly type: "address";
690
1065
  }, {
691
- readonly name: "_vaultTokenAmount";
692
- readonly type: "uint256";
693
- }];
694
- readonly outputs: readonly [{
695
1066
  readonly name: "";
696
1067
  readonly type: "address";
697
1068
  }, {
@@ -704,90 +1075,100 @@ export declare const abi: readonly [{
704
1075
  }, {
705
1076
  readonly stateMutability: "view";
706
1077
  readonly type: "function";
707
- readonly name: "getUnderlyingData";
1078
+ readonly name: "getAccessForLego";
708
1079
  readonly inputs: readonly [{
709
- readonly name: "_vaultToken";
1080
+ readonly name: "_user";
710
1081
  readonly type: "address";
711
1082
  }, {
712
- readonly name: "_vaultTokenAmount";
1083
+ readonly name: "_action";
713
1084
  readonly type: "uint256";
714
- }, {
715
- readonly name: "_appraiser";
716
- readonly type: "address";
717
1085
  }];
718
1086
  readonly outputs: readonly [{
719
1087
  readonly name: "";
720
1088
  readonly type: "address";
721
1089
  }, {
722
1090
  readonly name: "";
723
- readonly type: "uint256";
1091
+ readonly type: "string";
724
1092
  }, {
725
1093
  readonly name: "";
726
1094
  readonly type: "uint256";
727
1095
  }];
728
1096
  }, {
729
- readonly stateMutability: "view";
1097
+ readonly stateMutability: "nonpayable";
730
1098
  readonly type: "function";
731
- readonly name: "totalAssets";
1099
+ readonly name: "claimRewards";
732
1100
  readonly inputs: readonly [{
733
- readonly name: "_vaultToken";
1101
+ readonly name: "_user";
1102
+ readonly type: "address";
1103
+ }, {
1104
+ readonly name: "_rewardToken";
734
1105
  readonly type: "address";
1106
+ }, {
1107
+ readonly name: "_rewardAmount";
1108
+ readonly type: "uint256";
1109
+ }, {
1110
+ readonly name: "_extraData";
1111
+ readonly type: "bytes32";
735
1112
  }];
736
1113
  readonly outputs: readonly [{
737
1114
  readonly name: "";
738
1115
  readonly type: "uint256";
739
- }];
740
- }, {
741
- readonly stateMutability: "view";
742
- readonly type: "function";
743
- readonly name: "totalBorrows";
744
- readonly inputs: readonly [{
745
- readonly name: "_vaultToken";
746
- readonly type: "address";
747
- }];
748
- readonly outputs: readonly [{
1116
+ }, {
749
1117
  readonly name: "";
750
1118
  readonly type: "uint256";
751
1119
  }];
752
1120
  }, {
753
- readonly stateMutability: "view";
1121
+ readonly stateMutability: "nonpayable";
754
1122
  readonly type: "function";
755
- readonly name: "getPricePerShare";
1123
+ readonly name: "claimRewards";
756
1124
  readonly inputs: readonly [{
757
- readonly name: "_asset";
1125
+ readonly name: "_user";
758
1126
  readonly type: "address";
759
1127
  }, {
760
- readonly name: "_decimals";
1128
+ readonly name: "_rewardToken";
1129
+ readonly type: "address";
1130
+ }, {
1131
+ readonly name: "_rewardAmount";
761
1132
  readonly type: "uint256";
1133
+ }, {
1134
+ readonly name: "_extraData";
1135
+ readonly type: "bytes32";
1136
+ }, {
1137
+ readonly name: "_miniAddys";
1138
+ readonly type: "tuple";
1139
+ readonly components: readonly [{
1140
+ readonly name: "ledger";
1141
+ readonly type: "address";
1142
+ }, {
1143
+ readonly name: "missionControl";
1144
+ readonly type: "address";
1145
+ }, {
1146
+ readonly name: "legoBook";
1147
+ readonly type: "address";
1148
+ }, {
1149
+ readonly name: "appraiser";
1150
+ readonly type: "address";
1151
+ }];
762
1152
  }];
763
1153
  readonly outputs: readonly [{
764
1154
  readonly name: "";
765
1155
  readonly type: "uint256";
766
- }];
767
- }, {
768
- readonly stateMutability: "nonpayable";
769
- readonly type: "function";
770
- readonly name: "addAssetOpportunity";
771
- readonly inputs: readonly [{
772
- readonly name: "_asset";
773
- readonly type: "address";
774
1156
  }, {
775
- readonly name: "_vaultAddr";
776
- readonly type: "address";
1157
+ readonly name: "";
1158
+ readonly type: "uint256";
777
1159
  }];
778
- readonly outputs: readonly [];
779
1160
  }, {
780
- readonly stateMutability: "nonpayable";
1161
+ readonly stateMutability: "view";
781
1162
  readonly type: "function";
782
- readonly name: "removeAssetOpportunity";
1163
+ readonly name: "hasClaimableRewards";
783
1164
  readonly inputs: readonly [{
784
- readonly name: "_asset";
785
- readonly type: "address";
786
- }, {
787
- readonly name: "_vaultAddr";
1165
+ readonly name: "_user";
788
1166
  readonly type: "address";
789
1167
  }];
790
- readonly outputs: readonly [];
1168
+ readonly outputs: readonly [{
1169
+ readonly name: "";
1170
+ readonly type: "bool";
1171
+ }];
791
1172
  }, {
792
1173
  readonly stateMutability: "nonpayable";
793
1174
  readonly type: "function";
@@ -1272,70 +1653,6 @@ export declare const abi: readonly [{
1272
1653
  readonly name: "";
1273
1654
  readonly type: "uint256";
1274
1655
  }];
1275
- }, {
1276
- readonly stateMutability: "nonpayable";
1277
- readonly type: "function";
1278
- readonly name: "claimRewards";
1279
- readonly inputs: readonly [{
1280
- readonly name: "_user";
1281
- readonly type: "address";
1282
- }, {
1283
- readonly name: "_rewardToken";
1284
- readonly type: "address";
1285
- }, {
1286
- readonly name: "_rewardAmount";
1287
- readonly type: "uint256";
1288
- }, {
1289
- readonly name: "_extraData";
1290
- readonly type: "bytes32";
1291
- }];
1292
- readonly outputs: readonly [{
1293
- readonly name: "";
1294
- readonly type: "uint256";
1295
- }, {
1296
- readonly name: "";
1297
- readonly type: "uint256";
1298
- }];
1299
- }, {
1300
- readonly stateMutability: "nonpayable";
1301
- readonly type: "function";
1302
- readonly name: "claimRewards";
1303
- readonly inputs: readonly [{
1304
- readonly name: "_user";
1305
- readonly type: "address";
1306
- }, {
1307
- readonly name: "_rewardToken";
1308
- readonly type: "address";
1309
- }, {
1310
- readonly name: "_rewardAmount";
1311
- readonly type: "uint256";
1312
- }, {
1313
- readonly name: "_extraData";
1314
- readonly type: "bytes32";
1315
- }, {
1316
- readonly name: "_miniAddys";
1317
- readonly type: "tuple";
1318
- readonly components: readonly [{
1319
- readonly name: "ledger";
1320
- readonly type: "address";
1321
- }, {
1322
- readonly name: "missionControl";
1323
- readonly type: "address";
1324
- }, {
1325
- readonly name: "legoBook";
1326
- readonly type: "address";
1327
- }, {
1328
- readonly name: "appraiser";
1329
- readonly type: "address";
1330
- }];
1331
- }];
1332
- readonly outputs: readonly [{
1333
- readonly name: "";
1334
- readonly type: "uint256";
1335
- }, {
1336
- readonly name: "";
1337
- readonly type: "uint256";
1338
- }];
1339
1656
  }, {
1340
1657
  readonly stateMutability: "nonpayable";
1341
1658
  readonly type: "function";
@@ -1802,42 +2119,6 @@ export declare const abi: readonly [{
1802
2119
  readonly name: "";
1803
2120
  readonly type: "uint256";
1804
2121
  }];
1805
- }, {
1806
- readonly stateMutability: "view";
1807
- readonly type: "function";
1808
- readonly name: "getAccessForLego";
1809
- readonly inputs: readonly [{
1810
- readonly name: "_user";
1811
- readonly type: "address";
1812
- }, {
1813
- readonly name: "_action";
1814
- readonly type: "uint256";
1815
- }];
1816
- readonly outputs: readonly [{
1817
- readonly name: "";
1818
- readonly type: "address";
1819
- }, {
1820
- readonly name: "";
1821
- readonly type: "string";
1822
- }, {
1823
- readonly name: "";
1824
- readonly type: "uint256";
1825
- }];
1826
- }, {
1827
- readonly stateMutability: "view";
1828
- readonly type: "function";
1829
- readonly name: "getPrice";
1830
- readonly inputs: readonly [{
1831
- readonly name: "_asset";
1832
- readonly type: "address";
1833
- }, {
1834
- readonly name: "_decimals";
1835
- readonly type: "uint256";
1836
- }];
1837
- readonly outputs: readonly [{
1838
- readonly name: "";
1839
- readonly type: "uint256";
1840
- }];
1841
2122
  }, {
1842
2123
  readonly stateMutability: "view";
1843
2124
  readonly type: "function";
@@ -1874,6 +2155,7 @@ export type Contract = {
1874
2155
  appraiser: `0x${string}`;
1875
2156
  walletBackpack: `0x${string}`;
1876
2157
  billing: `0x${string}`;
2158
+ vaultRegistry: `0x${string}`;
1877
2159
  }>;
1878
2160
  getUndyHq: () => Promise<`0x${string}`>;
1879
2161
  isLegoAsset: (asset: `0x${string}`) => Promise<boolean>;
@@ -1881,38 +2163,88 @@ export type Contract = {
1881
2163
  getAssets: () => Promise<`0x${string}`[]>;
1882
2164
  isAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<boolean>;
1883
2165
  getNumLegoAssets: () => Promise<bigint>;
1884
- isPaused: () => Promise<boolean>;
2166
+ getWeightedPricePerShare: (vaultToken: `0x${string}`) => Promise<bigint>;
2167
+ getLatestSnapshot: (vaultToken: `0x${string}`, pricePerShare: bigint) => Promise<{
2168
+ totalSupply: bigint;
2169
+ pricePerShare: bigint;
2170
+ lastUpdate: bigint;
2171
+ }>;
2172
+ isValidPriceConfig: (config: {
2173
+ minSnapshotDelay: bigint;
2174
+ maxNumSnapshots: bigint;
2175
+ maxUpsideDeviation: bigint;
2176
+ staleTime: bigint;
2177
+ }) => Promise<boolean>;
2178
+ vaultToAsset: (arg0: `0x${string}`) => Promise<{
2179
+ underlyingAsset: `0x${string}`;
2180
+ decimals: bigint;
2181
+ lastAveragePricePerShare: bigint;
2182
+ }>;
1885
2183
  assetOpportunities: (arg0: `0x${string}`, arg1: bigint) => Promise<`0x${string}`>;
1886
2184
  indexOfAssetOpportunity: (arg0: `0x${string}`, arg1: `0x${string}`) => Promise<bigint>;
1887
2185
  numAssetOpportunities: (arg0: `0x${string}`) => Promise<bigint>;
1888
- vaultToAsset: (arg0: `0x${string}`) => Promise<`0x${string}`>;
1889
2186
  assets: (arg0: bigint) => Promise<`0x${string}`>;
1890
2187
  indexOfAsset: (arg0: `0x${string}`) => Promise<bigint>;
1891
2188
  numAssets: () => Promise<bigint>;
2189
+ snapShotData: (arg0: `0x${string}`) => Promise<{
2190
+ lastSnapShot: {
2191
+ totalSupply: bigint;
2192
+ pricePerShare: bigint;
2193
+ lastUpdate: bigint;
2194
+ };
2195
+ nextIndex: bigint;
2196
+ }>;
2197
+ snapShots: (arg0: `0x${string}`, arg1: bigint) => Promise<{
2198
+ totalSupply: bigint;
2199
+ pricePerShare: bigint;
2200
+ lastUpdate: bigint;
2201
+ }>;
2202
+ snapShotPriceConfig: () => Promise<{
2203
+ minSnapshotDelay: bigint;
2204
+ maxNumSnapshots: bigint;
2205
+ maxUpsideDeviation: bigint;
2206
+ staleTime: bigint;
2207
+ }>;
2208
+ isPaused: () => Promise<boolean>;
1892
2209
  hasCapability: (action: bigint) => Promise<boolean>;
1893
2210
  getRegistries: () => Promise<`0x${string}`[]>;
1894
2211
  isYieldLego: () => Promise<boolean>;
1895
2212
  isDexLego: () => Promise<boolean>;
1896
- isEligibleVaultForTrialFunds: (vaultToken: `0x${string}`, underlyingAsset: `0x${string}`) => Promise<boolean>;
1897
- isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
1898
- isRebasing: () => Promise<boolean>;
1899
- isVaultToken: (vaultToken: `0x${string}`) => Promise<boolean>;
1900
2213
  getUnderlyingAsset: (vaultToken: `0x${string}`) => Promise<`0x${string}`>;
2214
+ getUnderlyingBalances: (vaultToken: `0x${string}`, vaultTokenBalance: bigint) => Promise<[bigint, bigint]>;
1901
2215
  getUnderlyingAmount: (vaultToken: `0x${string}`, vaultTokenAmount: bigint) => Promise<bigint>;
1902
- getVaultTokenAmount: (asset: `0x${string}`, assetAmount: bigint, vaultToken: `0x${string}`) => Promise<bigint>;
1903
- getUsdValueOfVaultToken: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<bigint>;
2216
+ getUnderlyingAmountSafe: (vaultToken: `0x${string}`, vaultTokenBalance: bigint) => Promise<bigint>;
1904
2217
  getUnderlyingData: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<[`0x${string}`, bigint, bigint]>;
2218
+ getUsdValueOfVaultToken: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<bigint>;
2219
+ isRebasing: () => Promise<boolean>;
2220
+ getPricePerShare: (vaultToken: `0x${string}`, decimals?: bigint) => Promise<bigint>;
2221
+ getVaultTokenAmount: (asset: `0x${string}`, assetAmount: bigint, vaultToken: `0x${string}`) => Promise<bigint>;
2222
+ isEligibleVaultForTrialFunds: (vaultToken: `0x${string}`, underlyingAsset: `0x${string}`) => Promise<boolean>;
2223
+ isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
1905
2224
  totalAssets: (vaultToken: `0x${string}`) => Promise<bigint>;
1906
2225
  totalBorrows: (vaultToken: `0x${string}`) => Promise<bigint>;
1907
- getPricePerShare: (asset: `0x${string}`, decimals: bigint) => Promise<bigint>;
2226
+ canRegisterVaultToken: (asset: `0x${string}`, vaultToken: `0x${string}`) => Promise<boolean>;
1908
2227
  getAccessForLego: (user: `0x${string}`, action: bigint) => Promise<[`0x${string}`, string, bigint]>;
1909
- getPrice: (asset: `0x${string}`, decimals: bigint) => Promise<bigint>;
2228
+ hasClaimableRewards: (user: `0x${string}`) => Promise<boolean>;
1910
2229
  FLUID_RESOLVER: () => Promise<`0x${string}`>;
1911
2230
  };
1912
2231
  mutations: {
1913
2232
  pause: (shouldPause: boolean) => Promise<void>;
1914
2233
  recoverFunds: (recipient: `0x${string}`, asset: `0x${string}`) => Promise<void>;
1915
2234
  recoverFundsMany: (recipient: `0x${string}`, assets: `0x${string}`[]) => Promise<void>;
2235
+ setSnapShotPriceConfig: (config: {
2236
+ minSnapshotDelay: bigint;
2237
+ maxNumSnapshots: bigint;
2238
+ maxUpsideDeviation: bigint;
2239
+ staleTime: bigint;
2240
+ }) => Promise<void>;
2241
+ registerVaultTokenLocally: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<{
2242
+ underlyingAsset: `0x${string}`;
2243
+ decimals: bigint;
2244
+ lastAveragePricePerShare: bigint;
2245
+ }>;
2246
+ deregisterVaultTokenLocally: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2247
+ addPriceSnapshot: (vaultToken: `0x${string}`) => Promise<boolean>;
1916
2248
  depositForYield: (asset: `0x${string}`, amount: bigint, vaultAddr: `0x${string}`, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
1917
2249
  ledger: `0x${string}`;
1918
2250
  missionControl: `0x${string}`;
@@ -1925,8 +2257,12 @@ export type Contract = {
1925
2257
  legoBook: `0x${string}`;
1926
2258
  appraiser: `0x${string}`;
1927
2259
  }) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
1928
- addAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
1929
- removeAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2260
+ claimRewards: (user: `0x${string}`, rewardToken: `0x${string}`, rewardAmount: bigint, extraData: `0x${string}`, miniAddys?: {
2261
+ ledger: `0x${string}`;
2262
+ missionControl: `0x${string}`;
2263
+ legoBook: `0x${string}`;
2264
+ appraiser: `0x${string}`;
2265
+ }) => Promise<[bigint, bigint]>;
1930
2266
  swapTokens: (amountIn: bigint, minAmountOut: bigint, tokenPath: `0x${string}`[], poolPath: `0x${string}`[], recipient: `0x${string}`, miniAddys?: {
1931
2267
  ledger: `0x${string}`;
1932
2268
  missionControl: `0x${string}`;
@@ -1969,12 +2305,6 @@ export type Contract = {
1969
2305
  legoBook: `0x${string}`;
1970
2306
  appraiser: `0x${string}`;
1971
2307
  }) => Promise<[bigint, bigint]>;
1972
- claimRewards: (user: `0x${string}`, rewardToken: `0x${string}`, rewardAmount: bigint, extraData: `0x${string}`, miniAddys?: {
1973
- ledger: `0x${string}`;
1974
- missionControl: `0x${string}`;
1975
- legoBook: `0x${string}`;
1976
- appraiser: `0x${string}`;
1977
- }) => Promise<[bigint, bigint]>;
1978
2308
  addLiquidity: (pool: `0x${string}`, tokenA: `0x${string}`, tokenB: `0x${string}`, amountA: bigint, amountB: bigint, minAmountA: bigint, minAmountB: bigint, minLpAmount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
1979
2309
  ledger: `0x${string}`;
1980
2310
  missionControl: `0x${string}`;
@@ -2005,8 +2335,10 @@ export type Contract = {
2005
2335
  FluidWithdrawal: (sender: `0x${string}`, asset: `0x${string}`, vaultToken: `0x${string}`, assetAmountReceived: bigint, usdValue: bigint, vaultTokenAmountBurned: bigint, recipient: `0x${string}`) => Promise<void>;
2006
2336
  LegoPauseModified: (isPaused: boolean) => Promise<void>;
2007
2337
  LegoFundsRecovered: (asset: `0x${string}`, recipient: `0x${string}`, balance: bigint) => Promise<void>;
2338
+ SnapShotPriceConfigSet: (minSnapshotDelay: bigint, maxNumSnapshots: bigint, maxUpsideDeviation: bigint, staleTime: bigint) => Promise<void>;
2008
2339
  AssetOpportunityAdded: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2009
2340
  AssetOpportunityRemoved: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
2341
+ PricePerShareSnapShotAdded: (vaultToken: `0x${string}`, totalSupply: bigint, pricePerShare: bigint) => Promise<void>;
2010
2342
  };
2011
2343
  };
2012
2344
  export type Calls = keyof Contract['calls'];
@@ -2054,40 +2386,51 @@ export type SDK = {
2054
2386
  getAssets: (...args: ExtractArgs<Contract['calls']['getAssets']>) => Promise<CallReturn<'getAssets'>>;
2055
2387
  isAssetOpportunity: (...args: ExtractArgs<Contract['calls']['isAssetOpportunity']>) => Promise<CallReturn<'isAssetOpportunity'>>;
2056
2388
  getNumLegoAssets: (...args: ExtractArgs<Contract['calls']['getNumLegoAssets']>) => Promise<CallReturn<'getNumLegoAssets'>>;
2057
- isPaused: (...args: ExtractArgs<Contract['calls']['isPaused']>) => Promise<CallReturn<'isPaused'>>;
2389
+ getWeightedPricePerShare: (...args: ExtractArgs<Contract['calls']['getWeightedPricePerShare']>) => Promise<CallReturn<'getWeightedPricePerShare'>>;
2390
+ getLatestSnapshot: (...args: ExtractArgs<Contract['calls']['getLatestSnapshot']>) => Promise<CallReturn<'getLatestSnapshot'>>;
2391
+ isValidPriceConfig: (...args: ExtractArgs<Contract['calls']['isValidPriceConfig']>) => Promise<CallReturn<'isValidPriceConfig'>>;
2392
+ vaultToAsset: (...args: ExtractArgs<Contract['calls']['vaultToAsset']>) => Promise<CallReturn<'vaultToAsset'>>;
2058
2393
  assetOpportunities: (...args: ExtractArgs<Contract['calls']['assetOpportunities']>) => Promise<CallReturn<'assetOpportunities'>>;
2059
2394
  indexOfAssetOpportunity: (...args: ExtractArgs<Contract['calls']['indexOfAssetOpportunity']>) => Promise<CallReturn<'indexOfAssetOpportunity'>>;
2060
2395
  numAssetOpportunities: (...args: ExtractArgs<Contract['calls']['numAssetOpportunities']>) => Promise<CallReturn<'numAssetOpportunities'>>;
2061
- vaultToAsset: (...args: ExtractArgs<Contract['calls']['vaultToAsset']>) => Promise<CallReturn<'vaultToAsset'>>;
2062
2396
  assets: (...args: ExtractArgs<Contract['calls']['assets']>) => Promise<CallReturn<'assets'>>;
2063
2397
  indexOfAsset: (...args: ExtractArgs<Contract['calls']['indexOfAsset']>) => Promise<CallReturn<'indexOfAsset'>>;
2064
2398
  numAssets: (...args: ExtractArgs<Contract['calls']['numAssets']>) => Promise<CallReturn<'numAssets'>>;
2399
+ snapShotData: (...args: ExtractArgs<Contract['calls']['snapShotData']>) => Promise<CallReturn<'snapShotData'>>;
2400
+ snapShots: (...args: ExtractArgs<Contract['calls']['snapShots']>) => Promise<CallReturn<'snapShots'>>;
2401
+ snapShotPriceConfig: (...args: ExtractArgs<Contract['calls']['snapShotPriceConfig']>) => Promise<CallReturn<'snapShotPriceConfig'>>;
2402
+ isPaused: (...args: ExtractArgs<Contract['calls']['isPaused']>) => Promise<CallReturn<'isPaused'>>;
2065
2403
  hasCapability: (...args: ExtractArgs<Contract['calls']['hasCapability']>) => Promise<CallReturn<'hasCapability'>>;
2066
2404
  getRegistries: (...args: ExtractArgs<Contract['calls']['getRegistries']>) => Promise<CallReturn<'getRegistries'>>;
2067
2405
  isYieldLego: (...args: ExtractArgs<Contract['calls']['isYieldLego']>) => Promise<CallReturn<'isYieldLego'>>;
2068
2406
  isDexLego: (...args: ExtractArgs<Contract['calls']['isDexLego']>) => Promise<CallReturn<'isDexLego'>>;
2069
- isEligibleVaultForTrialFunds: (...args: ExtractArgs<Contract['calls']['isEligibleVaultForTrialFunds']>) => Promise<CallReturn<'isEligibleVaultForTrialFunds'>>;
2070
- isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
2071
- isRebasing: (...args: ExtractArgs<Contract['calls']['isRebasing']>) => Promise<CallReturn<'isRebasing'>>;
2072
- isVaultToken: (...args: ExtractArgs<Contract['calls']['isVaultToken']>) => Promise<CallReturn<'isVaultToken'>>;
2073
2407
  getUnderlyingAsset: (...args: ExtractArgs<Contract['calls']['getUnderlyingAsset']>) => Promise<CallReturn<'getUnderlyingAsset'>>;
2408
+ getUnderlyingBalances: (...args: ExtractArgs<Contract['calls']['getUnderlyingBalances']>) => Promise<CallReturn<'getUnderlyingBalances'>>;
2074
2409
  getUnderlyingAmount: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmount']>) => Promise<CallReturn<'getUnderlyingAmount'>>;
2075
- getVaultTokenAmount: (...args: ExtractArgs<Contract['calls']['getVaultTokenAmount']>) => Promise<CallReturn<'getVaultTokenAmount'>>;
2076
- getUsdValueOfVaultToken: (...args: ExtractArgs<Contract['calls']['getUsdValueOfVaultToken']>) => Promise<CallReturn<'getUsdValueOfVaultToken'>>;
2410
+ getUnderlyingAmountSafe: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmountSafe']>) => Promise<CallReturn<'getUnderlyingAmountSafe'>>;
2077
2411
  getUnderlyingData: (...args: ExtractArgs<Contract['calls']['getUnderlyingData']>) => Promise<CallReturn<'getUnderlyingData'>>;
2412
+ getUsdValueOfVaultToken: (...args: ExtractArgs<Contract['calls']['getUsdValueOfVaultToken']>) => Promise<CallReturn<'getUsdValueOfVaultToken'>>;
2413
+ isRebasing: (...args: ExtractArgs<Contract['calls']['isRebasing']>) => Promise<CallReturn<'isRebasing'>>;
2414
+ getPricePerShare: (...args: ExtractArgs<Contract['calls']['getPricePerShare']>) => Promise<CallReturn<'getPricePerShare'>>;
2415
+ getVaultTokenAmount: (...args: ExtractArgs<Contract['calls']['getVaultTokenAmount']>) => Promise<CallReturn<'getVaultTokenAmount'>>;
2416
+ isEligibleVaultForTrialFunds: (...args: ExtractArgs<Contract['calls']['isEligibleVaultForTrialFunds']>) => Promise<CallReturn<'isEligibleVaultForTrialFunds'>>;
2417
+ isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
2078
2418
  totalAssets: (...args: ExtractArgs<Contract['calls']['totalAssets']>) => Promise<CallReturn<'totalAssets'>>;
2079
2419
  totalBorrows: (...args: ExtractArgs<Contract['calls']['totalBorrows']>) => Promise<CallReturn<'totalBorrows'>>;
2080
- getPricePerShare: (...args: ExtractArgs<Contract['calls']['getPricePerShare']>) => Promise<CallReturn<'getPricePerShare'>>;
2420
+ canRegisterVaultToken: (...args: ExtractArgs<Contract['calls']['canRegisterVaultToken']>) => Promise<CallReturn<'canRegisterVaultToken'>>;
2081
2421
  getAccessForLego: (...args: ExtractArgs<Contract['calls']['getAccessForLego']>) => Promise<CallReturn<'getAccessForLego'>>;
2082
- getPrice: (...args: ExtractArgs<Contract['calls']['getPrice']>) => Promise<CallReturn<'getPrice'>>;
2422
+ hasClaimableRewards: (...args: ExtractArgs<Contract['calls']['hasClaimableRewards']>) => Promise<CallReturn<'hasClaimableRewards'>>;
2083
2423
  FLUID_RESOLVER: (...args: ExtractArgs<Contract['calls']['FLUID_RESOLVER']>) => Promise<CallReturn<'FLUID_RESOLVER'>>;
2084
2424
  pause: (...args: ExtractArgs<Contract['mutations']['pause']>) => Promise<Address>;
2085
2425
  recoverFunds: (...args: ExtractArgs<Contract['mutations']['recoverFunds']>) => Promise<Address>;
2086
2426
  recoverFundsMany: (...args: ExtractArgs<Contract['mutations']['recoverFundsMany']>) => Promise<Address>;
2427
+ setSnapShotPriceConfig: (...args: ExtractArgs<Contract['mutations']['setSnapShotPriceConfig']>) => Promise<Address>;
2428
+ registerVaultTokenLocally: (...args: ExtractArgs<Contract['mutations']['registerVaultTokenLocally']>) => Promise<Address>;
2429
+ deregisterVaultTokenLocally: (...args: ExtractArgs<Contract['mutations']['deregisterVaultTokenLocally']>) => Promise<Address>;
2430
+ addPriceSnapshot: (...args: ExtractArgs<Contract['mutations']['addPriceSnapshot']>) => Promise<Address>;
2087
2431
  depositForYield: (...args: ExtractArgs<Contract['mutations']['depositForYield']>) => Promise<Address>;
2088
2432
  withdrawFromYield: (...args: ExtractArgs<Contract['mutations']['withdrawFromYield']>) => Promise<Address>;
2089
- addAssetOpportunity: (...args: ExtractArgs<Contract['mutations']['addAssetOpportunity']>) => Promise<Address>;
2090
- removeAssetOpportunity: (...args: ExtractArgs<Contract['mutations']['removeAssetOpportunity']>) => Promise<Address>;
2433
+ claimRewards: (...args: ExtractArgs<Contract['mutations']['claimRewards']>) => Promise<Address>;
2091
2434
  swapTokens: (...args: ExtractArgs<Contract['mutations']['swapTokens']>) => Promise<Address>;
2092
2435
  mintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['mintOrRedeemAsset']>) => Promise<Address>;
2093
2436
  confirmMintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['confirmMintOrRedeemAsset']>) => Promise<Address>;
@@ -2095,7 +2438,6 @@ export type SDK = {
2095
2438
  removeCollateral: (...args: ExtractArgs<Contract['mutations']['removeCollateral']>) => Promise<Address>;
2096
2439
  borrow: (...args: ExtractArgs<Contract['mutations']['borrow']>) => Promise<Address>;
2097
2440
  repayDebt: (...args: ExtractArgs<Contract['mutations']['repayDebt']>) => Promise<Address>;
2098
- claimRewards: (...args: ExtractArgs<Contract['mutations']['claimRewards']>) => Promise<Address>;
2099
2441
  addLiquidity: (...args: ExtractArgs<Contract['mutations']['addLiquidity']>) => Promise<Address>;
2100
2442
  removeLiquidity: (...args: ExtractArgs<Contract['mutations']['removeLiquidity']>) => Promise<Address>;
2101
2443
  addLiquidityConcentrated: (...args: ExtractArgs<Contract['mutations']['addLiquidityConcentrated']>) => Promise<Address>;