@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
@@ -134,6 +134,33 @@ export const abi = [
134
134
  anonymous: false,
135
135
  type: 'event',
136
136
  },
137
+ {
138
+ name: 'SnapShotPriceConfigSet',
139
+ inputs: [
140
+ {
141
+ name: 'minSnapshotDelay',
142
+ type: 'uint256',
143
+ indexed: false,
144
+ },
145
+ {
146
+ name: 'maxNumSnapshots',
147
+ type: 'uint256',
148
+ indexed: false,
149
+ },
150
+ {
151
+ name: 'maxUpsideDeviation',
152
+ type: 'uint256',
153
+ indexed: false,
154
+ },
155
+ {
156
+ name: 'staleTime',
157
+ type: 'uint256',
158
+ indexed: false,
159
+ },
160
+ ],
161
+ anonymous: false,
162
+ type: 'event',
163
+ },
137
164
  {
138
165
  name: 'AssetOpportunityAdded',
139
166
  inputs: [
@@ -168,6 +195,28 @@ export const abi = [
168
195
  anonymous: false,
169
196
  type: 'event',
170
197
  },
198
+ {
199
+ name: 'PricePerShareSnapShotAdded',
200
+ inputs: [
201
+ {
202
+ name: 'vaultToken',
203
+ type: 'address',
204
+ indexed: true,
205
+ },
206
+ {
207
+ name: 'totalSupply',
208
+ type: 'uint256',
209
+ indexed: false,
210
+ },
211
+ {
212
+ name: 'pricePerShare',
213
+ type: 'uint256',
214
+ indexed: false,
215
+ },
216
+ ],
217
+ anonymous: false,
218
+ type: 'event',
219
+ },
171
220
  {
172
221
  stateMutability: 'view',
173
222
  type: 'function',
@@ -222,6 +271,10 @@ export const abi = [
222
271
  name: 'billing',
223
272
  type: 'address',
224
273
  },
274
+ {
275
+ name: 'vaultRegistry',
276
+ type: 'address',
277
+ },
225
278
  ],
226
279
  },
227
280
  ],
@@ -364,40 +417,155 @@ export const abi = [
364
417
  {
365
418
  stateMutability: 'view',
366
419
  type: 'function',
367
- name: 'isPaused',
368
- inputs: [],
420
+ name: 'getWeightedPricePerShare',
421
+ inputs: [
422
+ {
423
+ name: '_vaultToken',
424
+ type: 'address',
425
+ },
426
+ ],
369
427
  outputs: [
370
428
  {
371
429
  name: '',
372
- type: 'bool',
430
+ type: 'uint256',
373
431
  },
374
432
  ],
375
433
  },
376
434
  {
377
435
  stateMutability: 'view',
378
436
  type: 'function',
379
- name: 'assetOpportunities',
437
+ name: 'getLatestSnapshot',
380
438
  inputs: [
381
439
  {
382
- name: 'arg0',
440
+ name: '_vaultToken',
383
441
  type: 'address',
384
442
  },
385
443
  {
386
- name: 'arg1',
444
+ name: '_pricePerShare',
387
445
  type: 'uint256',
388
446
  },
389
447
  ],
390
448
  outputs: [
391
449
  {
392
450
  name: '',
451
+ type: 'tuple',
452
+ components: [
453
+ {
454
+ name: 'totalSupply',
455
+ type: 'uint256',
456
+ },
457
+ {
458
+ name: 'pricePerShare',
459
+ type: 'uint256',
460
+ },
461
+ {
462
+ name: 'lastUpdate',
463
+ type: 'uint256',
464
+ },
465
+ ],
466
+ },
467
+ ],
468
+ },
469
+ {
470
+ stateMutability: 'nonpayable',
471
+ type: 'function',
472
+ name: 'setSnapShotPriceConfig',
473
+ inputs: [
474
+ {
475
+ name: '_config',
476
+ type: 'tuple',
477
+ components: [
478
+ {
479
+ name: 'minSnapshotDelay',
480
+ type: 'uint256',
481
+ },
482
+ {
483
+ name: 'maxNumSnapshots',
484
+ type: 'uint256',
485
+ },
486
+ {
487
+ name: 'maxUpsideDeviation',
488
+ type: 'uint256',
489
+ },
490
+ {
491
+ name: 'staleTime',
492
+ type: 'uint256',
493
+ },
494
+ ],
495
+ },
496
+ ],
497
+ outputs: [],
498
+ },
499
+ {
500
+ stateMutability: 'view',
501
+ type: 'function',
502
+ name: 'isValidPriceConfig',
503
+ inputs: [
504
+ {
505
+ name: '_config',
506
+ type: 'tuple',
507
+ components: [
508
+ {
509
+ name: 'minSnapshotDelay',
510
+ type: 'uint256',
511
+ },
512
+ {
513
+ name: 'maxNumSnapshots',
514
+ type: 'uint256',
515
+ },
516
+ {
517
+ name: 'maxUpsideDeviation',
518
+ type: 'uint256',
519
+ },
520
+ {
521
+ name: 'staleTime',
522
+ type: 'uint256',
523
+ },
524
+ ],
525
+ },
526
+ ],
527
+ outputs: [
528
+ {
529
+ name: '',
530
+ type: 'bool',
531
+ },
532
+ ],
533
+ },
534
+ {
535
+ stateMutability: 'view',
536
+ type: 'function',
537
+ name: 'vaultToAsset',
538
+ inputs: [
539
+ {
540
+ name: 'arg0',
393
541
  type: 'address',
394
542
  },
395
543
  ],
544
+ outputs: [
545
+ {
546
+ name: '',
547
+ type: 'tuple',
548
+ components: [
549
+ {
550
+ name: 'underlyingAsset',
551
+ type: 'address',
552
+ },
553
+ {
554
+ name: 'decimals',
555
+ type: 'uint256',
556
+ },
557
+ {
558
+ name: 'lastAveragePricePerShare',
559
+ type: 'uint256',
560
+ },
561
+ ],
562
+ },
563
+ ],
396
564
  },
397
565
  {
398
566
  stateMutability: 'view',
399
567
  type: 'function',
400
- name: 'indexOfAssetOpportunity',
568
+ name: 'assetOpportunities',
401
569
  inputs: [
402
570
  {
403
571
  name: 'arg0',
@@ -405,25 +573,29 @@ export const abi = [
405
573
  },
406
574
  {
407
575
  name: 'arg1',
408
- type: 'address',
576
+ type: 'uint256',
409
577
  },
410
578
  ],
411
579
  outputs: [
412
580
  {
413
581
  name: '',
414
- type: 'uint256',
582
+ type: 'address',
415
583
  },
416
584
  ],
417
585
  },
418
586
  {
419
587
  stateMutability: 'view',
420
588
  type: 'function',
421
- name: 'numAssetOpportunities',
589
+ name: 'indexOfAssetOpportunity',
422
590
  inputs: [
423
591
  {
424
592
  name: 'arg0',
425
593
  type: 'address',
426
594
  },
595
+ {
596
+ name: 'arg1',
597
+ type: 'address',
598
+ },
427
599
  ],
428
600
  outputs: [
429
601
  {
@@ -435,7 +607,7 @@ export const abi = [
435
607
  {
436
608
  stateMutability: 'view',
437
609
  type: 'function',
438
- name: 'vaultToAsset',
610
+ name: 'numAssetOpportunities',
439
611
  inputs: [
440
612
  {
441
613
  name: 'arg0',
@@ -445,7 +617,7 @@ export const abi = [
445
617
  outputs: [
446
618
  {
447
619
  name: '',
448
- type: 'address',
620
+ type: 'uint256',
449
621
  },
450
622
  ],
451
623
  },
@@ -498,48 +670,113 @@ export const abi = [
498
670
  {
499
671
  stateMutability: 'view',
500
672
  type: 'function',
501
- name: 'hasCapability',
673
+ name: 'snapShotData',
502
674
  inputs: [
503
675
  {
504
- name: '_action',
505
- type: 'uint256',
676
+ name: 'arg0',
677
+ type: 'address',
506
678
  },
507
679
  ],
508
680
  outputs: [
509
681
  {
510
682
  name: '',
511
- type: 'bool',
683
+ type: 'tuple',
684
+ components: [
685
+ {
686
+ name: 'lastSnapShot',
687
+ type: 'tuple',
688
+ components: [
689
+ {
690
+ name: 'totalSupply',
691
+ type: 'uint256',
692
+ },
693
+ {
694
+ name: 'pricePerShare',
695
+ type: 'uint256',
696
+ },
697
+ {
698
+ name: 'lastUpdate',
699
+ type: 'uint256',
700
+ },
701
+ ],
702
+ },
703
+ {
704
+ name: 'nextIndex',
705
+ type: 'uint256',
706
+ },
707
+ ],
512
708
  },
513
709
  ],
514
710
  },
515
711
  {
516
712
  stateMutability: 'view',
517
713
  type: 'function',
518
- name: 'getRegistries',
519
- inputs: [],
714
+ name: 'snapShots',
715
+ inputs: [
716
+ {
717
+ name: 'arg0',
718
+ type: 'address',
719
+ },
720
+ {
721
+ name: 'arg1',
722
+ type: 'uint256',
723
+ },
724
+ ],
520
725
  outputs: [
521
726
  {
522
727
  name: '',
523
- type: 'address[]',
728
+ type: 'tuple',
729
+ components: [
730
+ {
731
+ name: 'totalSupply',
732
+ type: 'uint256',
733
+ },
734
+ {
735
+ name: 'pricePerShare',
736
+ type: 'uint256',
737
+ },
738
+ {
739
+ name: 'lastUpdate',
740
+ type: 'uint256',
741
+ },
742
+ ],
524
743
  },
525
744
  ],
526
745
  },
527
746
  {
528
747
  stateMutability: 'view',
529
748
  type: 'function',
530
- name: 'isYieldLego',
749
+ name: 'snapShotPriceConfig',
531
750
  inputs: [],
532
751
  outputs: [
533
752
  {
534
753
  name: '',
535
- type: 'bool',
754
+ type: 'tuple',
755
+ components: [
756
+ {
757
+ name: 'minSnapshotDelay',
758
+ type: 'uint256',
759
+ },
760
+ {
761
+ name: 'maxNumSnapshots',
762
+ type: 'uint256',
763
+ },
764
+ {
765
+ name: 'maxUpsideDeviation',
766
+ type: 'uint256',
767
+ },
768
+ {
769
+ name: 'staleTime',
770
+ type: 'uint256',
771
+ },
772
+ ],
536
773
  },
537
774
  ],
538
775
  },
539
776
  {
540
777
  stateMutability: 'view',
541
778
  type: 'function',
542
- name: 'isDexLego',
779
+ name: 'isPaused',
543
780
  inputs: [],
544
781
  outputs: [
545
782
  {
@@ -551,8 +788,13 @@ export const abi = [
551
788
  {
552
789
  stateMutability: 'view',
553
790
  type: 'function',
554
- name: 'isRebasing',
555
- inputs: [],
791
+ name: 'hasCapability',
792
+ inputs: [
793
+ {
794
+ name: '_action',
795
+ type: 'uint256',
796
+ },
797
+ ],
556
798
  outputs: [
557
799
  {
558
800
  name: '',
@@ -563,17 +805,32 @@ export const abi = [
563
805
  {
564
806
  stateMutability: 'view',
565
807
  type: 'function',
566
- name: 'isEligibleVaultForTrialFunds',
567
- inputs: [
808
+ name: 'getRegistries',
809
+ inputs: [],
810
+ outputs: [
568
811
  {
569
- name: '_vaultToken',
570
- type: 'address',
812
+ name: '',
813
+ type: 'address[]',
571
814
  },
815
+ ],
816
+ },
817
+ {
818
+ stateMutability: 'view',
819
+ type: 'function',
820
+ name: 'isYieldLego',
821
+ inputs: [],
822
+ outputs: [
572
823
  {
573
- name: '_underlyingAsset',
574
- type: 'address',
824
+ name: '',
825
+ type: 'bool',
575
826
  },
576
827
  ],
828
+ },
829
+ {
830
+ stateMutability: 'view',
831
+ type: 'function',
832
+ name: 'isDexLego',
833
+ inputs: [],
577
834
  outputs: [
578
835
  {
579
836
  name: '',
@@ -584,59 +841,60 @@ export const abi = [
584
841
  {
585
842
  stateMutability: 'view',
586
843
  type: 'function',
587
- name: 'isEligibleForYieldBonus',
844
+ name: 'getUnderlyingAsset',
588
845
  inputs: [
589
846
  {
590
- name: '_asset',
847
+ name: '_vaultToken',
591
848
  type: 'address',
592
849
  },
593
850
  ],
594
851
  outputs: [
595
852
  {
596
853
  name: '',
597
- type: 'bool',
854
+ type: 'address',
598
855
  },
599
856
  ],
600
857
  },
601
858
  {
602
- stateMutability: 'nonpayable',
859
+ stateMutability: 'view',
603
860
  type: 'function',
604
- name: 'depositForYield',
861
+ name: 'getUnderlyingBalances',
605
862
  inputs: [
606
863
  {
607
- name: '_asset',
864
+ name: '_vaultToken',
608
865
  type: 'address',
609
866
  },
610
867
  {
611
- name: '_amount',
868
+ name: '_vaultTokenBalance',
612
869
  type: 'uint256',
613
870
  },
871
+ ],
872
+ outputs: [
614
873
  {
615
- name: '_vaultAddr',
616
- type: 'address',
874
+ name: '',
875
+ type: 'uint256',
617
876
  },
618
- {
619
- name: '_extraData',
620
- type: 'bytes32',
621
- },
622
- {
623
- name: '_recipient',
624
- type: 'address',
625
- },
626
- ],
627
- outputs: [
628
877
  {
629
878
  name: '',
630
879
  type: 'uint256',
631
880
  },
881
+ ],
882
+ },
883
+ {
884
+ stateMutability: 'view',
885
+ type: 'function',
886
+ name: 'getUnderlyingAmount',
887
+ inputs: [
632
888
  {
633
- name: '',
889
+ name: '_vaultToken',
634
890
  type: 'address',
635
891
  },
636
892
  {
637
- name: '',
893
+ name: '_vaultTokenAmount',
638
894
  type: 'uint256',
639
895
  },
896
+ ],
897
+ outputs: [
640
898
  {
641
899
  name: '',
642
900
  type: 'uint256',
@@ -644,58 +902,41 @@ export const abi = [
644
902
  ],
645
903
  },
646
904
  {
647
- stateMutability: 'nonpayable',
905
+ stateMutability: 'view',
648
906
  type: 'function',
649
- name: 'depositForYield',
907
+ name: 'getUnderlyingAmountSafe',
650
908
  inputs: [
651
909
  {
652
- name: '_asset',
910
+ name: '_vaultToken',
653
911
  type: 'address',
654
912
  },
655
913
  {
656
- name: '_amount',
914
+ name: '_vaultTokenBalance',
657
915
  type: 'uint256',
658
916
  },
917
+ ],
918
+ outputs: [
659
919
  {
660
- name: '_vaultAddr',
661
- type: 'address',
662
- },
663
- {
664
- name: '_extraData',
665
- type: 'bytes32',
920
+ name: '',
921
+ type: 'uint256',
666
922
  },
923
+ ],
924
+ },
925
+ {
926
+ stateMutability: 'view',
927
+ type: 'function',
928
+ name: 'getUnderlyingData',
929
+ inputs: [
667
930
  {
668
- name: '_recipient',
931
+ name: '_vaultToken',
669
932
  type: 'address',
670
933
  },
671
934
  {
672
- name: '_miniAddys',
673
- type: 'tuple',
674
- components: [
675
- {
676
- name: 'ledger',
677
- type: 'address',
678
- },
679
- {
680
- name: 'missionControl',
681
- type: 'address',
682
- },
683
- {
684
- name: 'legoBook',
685
- type: 'address',
686
- },
687
- {
688
- name: 'appraiser',
689
- type: 'address',
690
- },
691
- ],
935
+ name: '_vaultTokenAmount',
936
+ type: 'uint256',
692
937
  },
693
938
  ],
694
939
  outputs: [
695
- {
696
- name: '',
697
- type: 'uint256',
698
- },
699
940
  {
700
941
  name: '',
701
942
  type: 'address',
@@ -711,32 +952,24 @@ export const abi = [
711
952
  ],
712
953
  },
713
954
  {
714
- stateMutability: 'nonpayable',
955
+ stateMutability: 'view',
715
956
  type: 'function',
716
- name: 'withdrawFromYield',
957
+ name: 'getUnderlyingData',
717
958
  inputs: [
718
959
  {
719
960
  name: '_vaultToken',
720
961
  type: 'address',
721
962
  },
722
963
  {
723
- name: '_amount',
964
+ name: '_vaultTokenAmount',
724
965
  type: 'uint256',
725
966
  },
726
967
  {
727
- name: '_extraData',
728
- type: 'bytes32',
729
- },
730
- {
731
- name: '_recipient',
968
+ name: '_appraiser',
732
969
  type: 'address',
733
970
  },
734
971
  ],
735
972
  outputs: [
736
- {
737
- name: '',
738
- type: 'uint256',
739
- },
740
973
  {
741
974
  name: '',
742
975
  type: 'address',
@@ -752,47 +985,42 @@ export const abi = [
752
985
  ],
753
986
  },
754
987
  {
755
- stateMutability: 'nonpayable',
988
+ stateMutability: 'view',
756
989
  type: 'function',
757
- name: 'withdrawFromYield',
990
+ name: 'getUsdValueOfVaultToken',
758
991
  inputs: [
759
992
  {
760
993
  name: '_vaultToken',
761
994
  type: 'address',
762
995
  },
763
996
  {
764
- name: '_amount',
997
+ name: '_vaultTokenAmount',
765
998
  type: 'uint256',
766
999
  },
1000
+ ],
1001
+ outputs: [
767
1002
  {
768
- name: '_extraData',
769
- type: 'bytes32',
1003
+ name: '',
1004
+ type: 'uint256',
770
1005
  },
1006
+ ],
1007
+ },
1008
+ {
1009
+ stateMutability: 'view',
1010
+ type: 'function',
1011
+ name: 'getUsdValueOfVaultToken',
1012
+ inputs: [
771
1013
  {
772
- name: '_recipient',
1014
+ name: '_vaultToken',
773
1015
  type: 'address',
774
1016
  },
775
1017
  {
776
- name: '_miniAddys',
777
- type: 'tuple',
778
- components: [
779
- {
780
- name: 'ledger',
781
- type: 'address',
782
- },
783
- {
784
- name: 'missionControl',
785
- type: 'address',
786
- },
787
- {
788
- name: 'legoBook',
789
- type: 'address',
790
- },
791
- {
792
- name: 'appraiser',
793
- type: 'address',
794
- },
795
- ],
1018
+ name: '_vaultTokenAmount',
1019
+ type: 'uint256',
1020
+ },
1021
+ {
1022
+ name: '_appraiser',
1023
+ type: 'address',
796
1024
  },
797
1025
  ],
798
1026
  outputs: [
@@ -800,14 +1028,31 @@ export const abi = [
800
1028
  name: '',
801
1029
  type: 'uint256',
802
1030
  },
1031
+ ],
1032
+ },
1033
+ {
1034
+ stateMutability: 'view',
1035
+ type: 'function',
1036
+ name: 'isRebasing',
1037
+ inputs: [],
1038
+ outputs: [
803
1039
  {
804
1040
  name: '',
805
- type: 'address',
1041
+ type: 'bool',
806
1042
  },
1043
+ ],
1044
+ },
1045
+ {
1046
+ stateMutability: 'view',
1047
+ type: 'function',
1048
+ name: 'getPricePerShare',
1049
+ inputs: [
807
1050
  {
808
- name: '',
809
- type: 'uint256',
1051
+ name: '_vaultToken',
1052
+ type: 'address',
810
1053
  },
1054
+ ],
1055
+ outputs: [
811
1056
  {
812
1057
  name: '',
813
1058
  type: 'uint256',
@@ -815,32 +1060,45 @@ export const abi = [
815
1060
  ],
816
1061
  },
817
1062
  {
818
- stateMutability: 'nonpayable',
1063
+ stateMutability: 'view',
819
1064
  type: 'function',
820
- name: 'claimRewards',
1065
+ name: 'getPricePerShare',
821
1066
  inputs: [
822
1067
  {
823
- name: '_user',
1068
+ name: '_vaultToken',
824
1069
  type: 'address',
825
1070
  },
826
1071
  {
827
- name: '_rewardToken',
828
- type: 'address',
1072
+ name: '_decimals',
1073
+ type: 'uint256',
829
1074
  },
1075
+ ],
1076
+ outputs: [
830
1077
  {
831
- name: '_rewardAmount',
1078
+ name: '',
832
1079
  type: 'uint256',
833
1080
  },
1081
+ ],
1082
+ },
1083
+ {
1084
+ stateMutability: 'view',
1085
+ type: 'function',
1086
+ name: 'getVaultTokenAmount',
1087
+ inputs: [
834
1088
  {
835
- name: '_extraData',
836
- type: 'bytes32',
1089
+ name: '_asset',
1090
+ type: 'address',
837
1091
  },
838
- ],
839
- outputs: [
840
1092
  {
841
- name: '',
1093
+ name: '_assetAmount',
842
1094
  type: 'uint256',
843
1095
  },
1096
+ {
1097
+ name: '_vaultToken',
1098
+ type: 'address',
1099
+ },
1100
+ ],
1101
+ outputs: [
844
1102
  {
845
1103
  name: '',
846
1104
  type: 'uint256',
@@ -848,47 +1106,51 @@ export const abi = [
848
1106
  ],
849
1107
  },
850
1108
  {
851
- stateMutability: 'nonpayable',
1109
+ stateMutability: 'view',
852
1110
  type: 'function',
853
- name: 'claimRewards',
1111
+ name: 'isEligibleVaultForTrialFunds',
854
1112
  inputs: [
855
1113
  {
856
- name: '_user',
1114
+ name: '_vaultToken',
857
1115
  type: 'address',
858
1116
  },
859
1117
  {
860
- name: '_rewardToken',
1118
+ name: '_underlyingAsset',
861
1119
  type: 'address',
862
1120
  },
1121
+ ],
1122
+ outputs: [
863
1123
  {
864
- name: '_rewardAmount',
865
- type: 'uint256',
1124
+ name: '',
1125
+ type: 'bool',
866
1126
  },
1127
+ ],
1128
+ },
1129
+ {
1130
+ stateMutability: 'view',
1131
+ type: 'function',
1132
+ name: 'isEligibleForYieldBonus',
1133
+ inputs: [
867
1134
  {
868
- name: '_extraData',
869
- type: 'bytes32',
1135
+ name: '_asset',
1136
+ type: 'address',
870
1137
  },
1138
+ ],
1139
+ outputs: [
871
1140
  {
872
- name: '_miniAddys',
873
- type: 'tuple',
874
- components: [
875
- {
876
- name: 'ledger',
877
- type: 'address',
878
- },
879
- {
880
- name: 'missionControl',
881
- type: 'address',
882
- },
883
- {
884
- name: 'legoBook',
885
- type: 'address',
886
- },
887
- {
888
- name: 'appraiser',
889
- type: 'address',
890
- },
891
- ],
1141
+ name: '',
1142
+ type: 'bool',
1143
+ },
1144
+ ],
1145
+ },
1146
+ {
1147
+ stateMutability: 'view',
1148
+ type: 'function',
1149
+ name: 'totalAssets',
1150
+ inputs: [
1151
+ {
1152
+ name: '_vaultToken',
1153
+ type: 'address',
892
1154
  },
893
1155
  ],
894
1156
  outputs: [
@@ -896,6 +1158,19 @@ export const abi = [
896
1158
  name: '',
897
1159
  type: 'uint256',
898
1160
  },
1161
+ ],
1162
+ },
1163
+ {
1164
+ stateMutability: 'view',
1165
+ type: 'function',
1166
+ name: 'totalBorrows',
1167
+ inputs: [
1168
+ {
1169
+ name: '_vaultToken',
1170
+ type: 'address',
1171
+ },
1172
+ ],
1173
+ outputs: [
899
1174
  {
900
1175
  name: '',
901
1176
  type: 'uint256',
@@ -905,10 +1180,14 @@ export const abi = [
905
1180
  {
906
1181
  stateMutability: 'view',
907
1182
  type: 'function',
908
- name: 'hasClaimableRewards',
1183
+ name: 'canRegisterVaultToken',
909
1184
  inputs: [
910
1185
  {
911
- name: '_user',
1186
+ name: '_asset',
1187
+ type: 'address',
1188
+ },
1189
+ {
1190
+ name: '_vaultToken',
912
1191
  type: 'address',
913
1192
  },
914
1193
  ],
@@ -922,24 +1201,58 @@ export const abi = [
922
1201
  {
923
1202
  stateMutability: 'nonpayable',
924
1203
  type: 'function',
925
- name: 'setMorphoRewardsAddr',
1204
+ name: 'registerVaultTokenLocally',
926
1205
  inputs: [
927
1206
  {
928
- name: '_addr',
1207
+ name: '_asset',
1208
+ type: 'address',
1209
+ },
1210
+ {
1211
+ name: '_vaultAddr',
929
1212
  type: 'address',
930
1213
  },
931
1214
  ],
932
1215
  outputs: [
933
1216
  {
934
1217
  name: '',
935
- type: 'bool',
1218
+ type: 'tuple',
1219
+ components: [
1220
+ {
1221
+ name: 'underlyingAsset',
1222
+ type: 'address',
1223
+ },
1224
+ {
1225
+ name: 'decimals',
1226
+ type: 'uint256',
1227
+ },
1228
+ {
1229
+ name: 'lastAveragePricePerShare',
1230
+ type: 'uint256',
1231
+ },
1232
+ ],
936
1233
  },
937
1234
  ],
938
1235
  },
939
1236
  {
940
- stateMutability: 'view',
1237
+ stateMutability: 'nonpayable',
1238
+ type: 'function',
1239
+ name: 'deregisterVaultTokenLocally',
1240
+ inputs: [
1241
+ {
1242
+ name: '_asset',
1243
+ type: 'address',
1244
+ },
1245
+ {
1246
+ name: '_vaultAddr',
1247
+ type: 'address',
1248
+ },
1249
+ ],
1250
+ outputs: [],
1251
+ },
1252
+ {
1253
+ stateMutability: 'nonpayable',
941
1254
  type: 'function',
942
- name: 'isVaultToken',
1255
+ name: 'addPriceSnapshot',
943
1256
  inputs: [
944
1257
  {
945
1258
  name: '_vaultToken',
@@ -954,58 +1267,136 @@ export const abi = [
954
1267
  ],
955
1268
  },
956
1269
  {
957
- stateMutability: 'view',
1270
+ stateMutability: 'nonpayable',
958
1271
  type: 'function',
959
- name: 'getUnderlyingAsset',
1272
+ name: 'depositForYield',
960
1273
  inputs: [
961
1274
  {
962
- name: '_vaultToken',
1275
+ name: '_asset',
1276
+ type: 'address',
1277
+ },
1278
+ {
1279
+ name: '_amount',
1280
+ type: 'uint256',
1281
+ },
1282
+ {
1283
+ name: '_vaultAddr',
1284
+ type: 'address',
1285
+ },
1286
+ {
1287
+ name: '_extraData',
1288
+ type: 'bytes32',
1289
+ },
1290
+ {
1291
+ name: '_recipient',
963
1292
  type: 'address',
964
1293
  },
965
1294
  ],
966
1295
  outputs: [
1296
+ {
1297
+ name: '',
1298
+ type: 'uint256',
1299
+ },
967
1300
  {
968
1301
  name: '',
969
1302
  type: 'address',
970
1303
  },
1304
+ {
1305
+ name: '',
1306
+ type: 'uint256',
1307
+ },
1308
+ {
1309
+ name: '',
1310
+ type: 'uint256',
1311
+ },
971
1312
  ],
972
1313
  },
973
1314
  {
974
- stateMutability: 'view',
1315
+ stateMutability: 'nonpayable',
975
1316
  type: 'function',
976
- name: 'getUnderlyingAmount',
1317
+ name: 'depositForYield',
977
1318
  inputs: [
978
1319
  {
979
- name: '_vaultToken',
1320
+ name: '_asset',
980
1321
  type: 'address',
981
1322
  },
982
1323
  {
983
- name: '_vaultTokenAmount',
1324
+ name: '_amount',
984
1325
  type: 'uint256',
985
1326
  },
1327
+ {
1328
+ name: '_vaultAddr',
1329
+ type: 'address',
1330
+ },
1331
+ {
1332
+ name: '_extraData',
1333
+ type: 'bytes32',
1334
+ },
1335
+ {
1336
+ name: '_recipient',
1337
+ type: 'address',
1338
+ },
1339
+ {
1340
+ name: '_miniAddys',
1341
+ type: 'tuple',
1342
+ components: [
1343
+ {
1344
+ name: 'ledger',
1345
+ type: 'address',
1346
+ },
1347
+ {
1348
+ name: 'missionControl',
1349
+ type: 'address',
1350
+ },
1351
+ {
1352
+ name: 'legoBook',
1353
+ type: 'address',
1354
+ },
1355
+ {
1356
+ name: 'appraiser',
1357
+ type: 'address',
1358
+ },
1359
+ ],
1360
+ },
986
1361
  ],
987
1362
  outputs: [
988
1363
  {
989
1364
  name: '',
990
1365
  type: 'uint256',
991
1366
  },
1367
+ {
1368
+ name: '',
1369
+ type: 'address',
1370
+ },
1371
+ {
1372
+ name: '',
1373
+ type: 'uint256',
1374
+ },
1375
+ {
1376
+ name: '',
1377
+ type: 'uint256',
1378
+ },
992
1379
  ],
993
1380
  },
994
1381
  {
995
- stateMutability: 'view',
1382
+ stateMutability: 'nonpayable',
996
1383
  type: 'function',
997
- name: 'getVaultTokenAmount',
1384
+ name: 'withdrawFromYield',
998
1385
  inputs: [
999
1386
  {
1000
- name: '_asset',
1387
+ name: '_vaultToken',
1001
1388
  type: 'address',
1002
1389
  },
1003
1390
  {
1004
- name: '_assetAmount',
1391
+ name: '_amount',
1005
1392
  type: 'uint256',
1006
1393
  },
1007
1394
  {
1008
- name: '_vaultToken',
1395
+ name: '_extraData',
1396
+ type: 'bytes32',
1397
+ },
1398
+ {
1399
+ name: '_recipient',
1009
1400
  type: 'address',
1010
1401
  },
1011
1402
  ],
@@ -1014,23 +1405,14 @@ export const abi = [
1014
1405
  name: '',
1015
1406
  type: 'uint256',
1016
1407
  },
1017
- ],
1018
- },
1019
- {
1020
- stateMutability: 'view',
1021
- type: 'function',
1022
- name: 'getUsdValueOfVaultToken',
1023
- inputs: [
1024
1408
  {
1025
- name: '_vaultToken',
1409
+ name: '',
1026
1410
  type: 'address',
1027
1411
  },
1028
1412
  {
1029
- name: '_vaultTokenAmount',
1413
+ name: '',
1030
1414
  type: 'uint256',
1031
1415
  },
1032
- ],
1033
- outputs: [
1034
1416
  {
1035
1417
  name: '',
1036
1418
  type: 'uint256',
@@ -1038,49 +1420,91 @@ export const abi = [
1038
1420
  ],
1039
1421
  },
1040
1422
  {
1041
- stateMutability: 'view',
1423
+ stateMutability: 'nonpayable',
1042
1424
  type: 'function',
1043
- name: 'getUsdValueOfVaultToken',
1425
+ name: 'withdrawFromYield',
1044
1426
  inputs: [
1045
1427
  {
1046
1428
  name: '_vaultToken',
1047
1429
  type: 'address',
1048
1430
  },
1049
1431
  {
1050
- name: '_vaultTokenAmount',
1432
+ name: '_amount',
1051
1433
  type: 'uint256',
1052
1434
  },
1053
1435
  {
1054
- name: '_appraiser',
1436
+ name: '_extraData',
1437
+ type: 'bytes32',
1438
+ },
1439
+ {
1440
+ name: '_recipient',
1055
1441
  type: 'address',
1056
1442
  },
1443
+ {
1444
+ name: '_miniAddys',
1445
+ type: 'tuple',
1446
+ components: [
1447
+ {
1448
+ name: 'ledger',
1449
+ type: 'address',
1450
+ },
1451
+ {
1452
+ name: 'missionControl',
1453
+ type: 'address',
1454
+ },
1455
+ {
1456
+ name: 'legoBook',
1457
+ type: 'address',
1458
+ },
1459
+ {
1460
+ name: 'appraiser',
1461
+ type: 'address',
1462
+ },
1463
+ ],
1464
+ },
1057
1465
  ],
1058
1466
  outputs: [
1059
1467
  {
1060
1468
  name: '',
1061
1469
  type: 'uint256',
1062
1470
  },
1471
+ {
1472
+ name: '',
1473
+ type: 'address',
1474
+ },
1475
+ {
1476
+ name: '',
1477
+ type: 'uint256',
1478
+ },
1479
+ {
1480
+ name: '',
1481
+ type: 'uint256',
1482
+ },
1063
1483
  ],
1064
1484
  },
1065
1485
  {
1066
- stateMutability: 'view',
1486
+ stateMutability: 'nonpayable',
1067
1487
  type: 'function',
1068
- name: 'getUnderlyingData',
1488
+ name: 'claimRewards',
1069
1489
  inputs: [
1070
1490
  {
1071
- name: '_vaultToken',
1491
+ name: '_user',
1072
1492
  type: 'address',
1073
1493
  },
1074
1494
  {
1075
- name: '_vaultTokenAmount',
1495
+ name: '_rewardToken',
1496
+ type: 'address',
1497
+ },
1498
+ {
1499
+ name: '_rewardAmount',
1076
1500
  type: 'uint256',
1077
1501
  },
1078
- ],
1079
- outputs: [
1080
1502
  {
1081
- name: '',
1082
- type: 'address',
1503
+ name: '_extraData',
1504
+ type: 'bytes32',
1083
1505
  },
1506
+ ],
1507
+ outputs: [
1084
1508
  {
1085
1509
  name: '',
1086
1510
  type: 'uint256',
@@ -1092,28 +1516,50 @@ export const abi = [
1092
1516
  ],
1093
1517
  },
1094
1518
  {
1095
- stateMutability: 'view',
1519
+ stateMutability: 'nonpayable',
1096
1520
  type: 'function',
1097
- name: 'getUnderlyingData',
1521
+ name: 'claimRewards',
1098
1522
  inputs: [
1099
1523
  {
1100
- name: '_vaultToken',
1524
+ name: '_user',
1101
1525
  type: 'address',
1102
1526
  },
1103
1527
  {
1104
- name: '_vaultTokenAmount',
1528
+ name: '_rewardToken',
1529
+ type: 'address',
1530
+ },
1531
+ {
1532
+ name: '_rewardAmount',
1105
1533
  type: 'uint256',
1106
1534
  },
1107
1535
  {
1108
- name: '_appraiser',
1109
- type: 'address',
1536
+ name: '_extraData',
1537
+ type: 'bytes32',
1110
1538
  },
1111
- ],
1112
- outputs: [
1113
1539
  {
1114
- name: '',
1115
- type: 'address',
1540
+ name: '_miniAddys',
1541
+ type: 'tuple',
1542
+ components: [
1543
+ {
1544
+ name: 'ledger',
1545
+ type: 'address',
1546
+ },
1547
+ {
1548
+ name: 'missionControl',
1549
+ type: 'address',
1550
+ },
1551
+ {
1552
+ name: 'legoBook',
1553
+ type: 'address',
1554
+ },
1555
+ {
1556
+ name: 'appraiser',
1557
+ type: 'address',
1558
+ },
1559
+ ],
1116
1560
  },
1561
+ ],
1562
+ outputs: [
1117
1563
  {
1118
1564
  name: '',
1119
1565
  type: 'uint256',
@@ -1127,89 +1573,65 @@ export const abi = [
1127
1573
  {
1128
1574
  stateMutability: 'view',
1129
1575
  type: 'function',
1130
- name: 'totalAssets',
1576
+ name: 'hasClaimableRewards',
1131
1577
  inputs: [
1132
1578
  {
1133
- name: '_vaultToken',
1579
+ name: '_user',
1134
1580
  type: 'address',
1135
1581
  },
1136
1582
  ],
1137
1583
  outputs: [
1138
1584
  {
1139
1585
  name: '',
1140
- type: 'uint256',
1586
+ type: 'bool',
1141
1587
  },
1142
1588
  ],
1143
1589
  },
1144
1590
  {
1145
- stateMutability: 'view',
1591
+ stateMutability: 'nonpayable',
1146
1592
  type: 'function',
1147
- name: 'totalBorrows',
1593
+ name: 'setMorphoRewardsAddr',
1148
1594
  inputs: [
1149
1595
  {
1150
- name: '_vaultToken',
1596
+ name: '_addr',
1151
1597
  type: 'address',
1152
1598
  },
1153
1599
  ],
1154
1600
  outputs: [
1155
1601
  {
1156
1602
  name: '',
1157
- type: 'uint256',
1603
+ type: 'bool',
1158
1604
  },
1159
1605
  ],
1160
1606
  },
1161
1607
  {
1162
1608
  stateMutability: 'view',
1163
1609
  type: 'function',
1164
- name: 'getPricePerShare',
1610
+ name: 'getAccessForLego',
1165
1611
  inputs: [
1166
1612
  {
1167
- name: '_asset',
1613
+ name: '_user',
1168
1614
  type: 'address',
1169
1615
  },
1170
1616
  {
1171
- name: '_decimals',
1617
+ name: '_action',
1172
1618
  type: 'uint256',
1173
1619
  },
1174
1620
  ],
1175
1621
  outputs: [
1176
1622
  {
1177
1623
  name: '',
1178
- type: 'uint256',
1179
- },
1180
- ],
1181
- },
1182
- {
1183
- stateMutability: 'nonpayable',
1184
- type: 'function',
1185
- name: 'addAssetOpportunity',
1186
- inputs: [
1187
- {
1188
- name: '_asset',
1189
- type: 'address',
1190
- },
1191
- {
1192
- name: '_vaultAddr',
1193
1624
  type: 'address',
1194
1625
  },
1195
- ],
1196
- outputs: [],
1197
- },
1198
- {
1199
- stateMutability: 'nonpayable',
1200
- type: 'function',
1201
- name: 'removeAssetOpportunity',
1202
- inputs: [
1203
1626
  {
1204
- name: '_asset',
1205
- type: 'address',
1627
+ name: '',
1628
+ type: 'string',
1206
1629
  },
1207
1630
  {
1208
- name: '_vaultAddr',
1209
- type: 'address',
1631
+ name: '',
1632
+ type: 'uint256',
1210
1633
  },
1211
1634
  ],
1212
- outputs: [],
1213
1635
  },
1214
1636
  {
1215
1637
  stateMutability: 'nonpayable',
@@ -2507,56 +2929,6 @@ export const abi = [
2507
2929
  },
2508
2930
  ],
2509
2931
  },
2510
- {
2511
- stateMutability: 'view',
2512
- type: 'function',
2513
- name: 'getAccessForLego',
2514
- inputs: [
2515
- {
2516
- name: '_user',
2517
- type: 'address',
2518
- },
2519
- {
2520
- name: '_action',
2521
- type: 'uint256',
2522
- },
2523
- ],
2524
- outputs: [
2525
- {
2526
- name: '',
2527
- type: 'address',
2528
- },
2529
- {
2530
- name: '',
2531
- type: 'string',
2532
- },
2533
- {
2534
- name: '',
2535
- type: 'uint256',
2536
- },
2537
- ],
2538
- },
2539
- {
2540
- stateMutability: 'view',
2541
- type: 'function',
2542
- name: 'getPrice',
2543
- inputs: [
2544
- {
2545
- name: '_asset',
2546
- type: 'address',
2547
- },
2548
- {
2549
- name: '_decimals',
2550
- type: 'uint256',
2551
- },
2552
- ],
2553
- outputs: [
2554
- {
2555
- name: '',
2556
- type: 'uint256',
2557
- },
2558
- ],
2559
- },
2560
2932
  {
2561
2933
  stateMutability: 'view',
2562
2934
  type: 'function',
@@ -2617,7 +2989,7 @@ export const abi = [
2617
2989
  outputs: [],
2618
2990
  },
2619
2991
  ];
2620
- export const deployAddress = '0xd7a412C42c7430802e2A60F8145c36A4c6d0bA84';
2992
+ export const deployAddress = '0xfE7436BC8b1752d2975bEbc8Ced5e9E837d31d7F';
2621
2993
  function getRequest(method, args, contractAddressOrOptions) {
2622
2994
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2623
2995
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
@@ -2653,33 +3025,40 @@ export const call = {
2653
3025
  getAssets: (...args) => getRequest('getAssets', args),
2654
3026
  isAssetOpportunity: (...args) => getRequest('isAssetOpportunity', args),
2655
3027
  getNumLegoAssets: (...args) => getRequest('getNumLegoAssets', args),
2656
- isPaused: (...args) => getRequest('isPaused', args),
3028
+ getWeightedPricePerShare: (...args) => getRequest('getWeightedPricePerShare', args),
3029
+ getLatestSnapshot: (...args) => getRequest('getLatestSnapshot', args),
3030
+ isValidPriceConfig: (...args) => getRequest('isValidPriceConfig', args),
3031
+ vaultToAsset: (...args) => getRequest('vaultToAsset', args),
2657
3032
  assetOpportunities: (...args) => getRequest('assetOpportunities', args),
2658
3033
  indexOfAssetOpportunity: (...args) => getRequest('indexOfAssetOpportunity', args),
2659
3034
  numAssetOpportunities: (...args) => getRequest('numAssetOpportunities', args),
2660
- vaultToAsset: (...args) => getRequest('vaultToAsset', args),
2661
3035
  assets: (...args) => getRequest('assets', args),
2662
3036
  indexOfAsset: (...args) => getRequest('indexOfAsset', args),
2663
3037
  numAssets: (...args) => getRequest('numAssets', args),
3038
+ snapShotData: (...args) => getRequest('snapShotData', args),
3039
+ snapShots: (...args) => getRequest('snapShots', args),
3040
+ snapShotPriceConfig: (...args) => getRequest('snapShotPriceConfig', args),
3041
+ isPaused: (...args) => getRequest('isPaused', args),
2664
3042
  hasCapability: (...args) => getRequest('hasCapability', args),
2665
3043
  getRegistries: (...args) => getRequest('getRegistries', args),
2666
3044
  isYieldLego: (...args) => getRequest('isYieldLego', args),
2667
3045
  isDexLego: (...args) => getRequest('isDexLego', args),
2668
- isRebasing: (...args) => getRequest('isRebasing', args),
2669
- isEligibleVaultForTrialFunds: (...args) => getRequest('isEligibleVaultForTrialFunds', args),
2670
- isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
2671
- hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
2672
- isVaultToken: (...args) => getRequest('isVaultToken', args),
2673
3046
  getUnderlyingAsset: (...args) => getRequest('getUnderlyingAsset', args),
3047
+ getUnderlyingBalances: (...args) => getRequest('getUnderlyingBalances', args),
2674
3048
  getUnderlyingAmount: (...args) => getRequest('getUnderlyingAmount', args),
2675
- getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
2676
- getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
3049
+ getUnderlyingAmountSafe: (...args) => getRequest('getUnderlyingAmountSafe', args),
2677
3050
  getUnderlyingData: (...args) => getRequest('getUnderlyingData', args),
3051
+ getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
3052
+ isRebasing: (...args) => getRequest('isRebasing', args),
3053
+ getPricePerShare: (...args) => getRequest('getPricePerShare', args),
3054
+ getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
3055
+ isEligibleVaultForTrialFunds: (...args) => getRequest('isEligibleVaultForTrialFunds', args),
3056
+ isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
2678
3057
  totalAssets: (...args) => getRequest('totalAssets', args),
2679
3058
  totalBorrows: (...args) => getRequest('totalBorrows', args),
2680
- getPricePerShare: (...args) => getRequest('getPricePerShare', args),
3059
+ canRegisterVaultToken: (...args) => getRequest('canRegisterVaultToken', args),
3060
+ hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
2681
3061
  getAccessForLego: (...args) => getRequest('getAccessForLego', args),
2682
- getPrice: (...args) => getRequest('getPrice', args),
2683
3062
  morphoRewards: (...args) => getRequest('morphoRewards', args),
2684
3063
  MORPHO_FACTORY: (...args) => getRequest('MORPHO_FACTORY', args),
2685
3064
  MORPHO_FACTORY_LEGACY: (...args) => getRequest('MORPHO_FACTORY_LEGACY', args),
@@ -2697,12 +3076,14 @@ export const mutation = {
2697
3076
  pause: getMutation('pause'),
2698
3077
  recoverFunds: getMutation('recoverFunds'),
2699
3078
  recoverFundsMany: getMutation('recoverFundsMany'),
3079
+ setSnapShotPriceConfig: getMutation('setSnapShotPriceConfig'),
3080
+ registerVaultTokenLocally: getMutation('registerVaultTokenLocally'),
3081
+ deregisterVaultTokenLocally: getMutation('deregisterVaultTokenLocally'),
3082
+ addPriceSnapshot: getMutation('addPriceSnapshot'),
2700
3083
  depositForYield: getMutation('depositForYield'),
2701
3084
  withdrawFromYield: getMutation('withdrawFromYield'),
2702
3085
  claimRewards: getMutation('claimRewards'),
2703
3086
  setMorphoRewardsAddr: getMutation('setMorphoRewardsAddr'),
2704
- addAssetOpportunity: getMutation('addAssetOpportunity'),
2705
- removeAssetOpportunity: getMutation('removeAssetOpportunity'),
2706
3087
  swapTokens: getMutation('swapTokens'),
2707
3088
  mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
2708
3089
  confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
@@ -2727,33 +3108,40 @@ export function toSdk(publicClient, walletClient) {
2727
3108
  getAssets: (...args) => singleQuery(publicClient, call.getAssets(...args)),
2728
3109
  isAssetOpportunity: (...args) => singleQuery(publicClient, call.isAssetOpportunity(...args)),
2729
3110
  getNumLegoAssets: (...args) => singleQuery(publicClient, call.getNumLegoAssets(...args)),
2730
- isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
3111
+ getWeightedPricePerShare: (...args) => singleQuery(publicClient, call.getWeightedPricePerShare(...args)),
3112
+ getLatestSnapshot: (...args) => singleQuery(publicClient, call.getLatestSnapshot(...args)),
3113
+ isValidPriceConfig: (...args) => singleQuery(publicClient, call.isValidPriceConfig(...args)),
3114
+ vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
2731
3115
  assetOpportunities: (...args) => singleQuery(publicClient, call.assetOpportunities(...args)),
2732
3116
  indexOfAssetOpportunity: (...args) => singleQuery(publicClient, call.indexOfAssetOpportunity(...args)),
2733
3117
  numAssetOpportunities: (...args) => singleQuery(publicClient, call.numAssetOpportunities(...args)),
2734
- vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
2735
3118
  assets: (...args) => singleQuery(publicClient, call.assets(...args)),
2736
3119
  indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
2737
3120
  numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args)),
3121
+ snapShotData: (...args) => singleQuery(publicClient, call.snapShotData(...args)),
3122
+ snapShots: (...args) => singleQuery(publicClient, call.snapShots(...args)),
3123
+ snapShotPriceConfig: (...args) => singleQuery(publicClient, call.snapShotPriceConfig(...args)),
3124
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
2738
3125
  hasCapability: (...args) => singleQuery(publicClient, call.hasCapability(...args)),
2739
3126
  getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args)),
2740
3127
  isYieldLego: (...args) => singleQuery(publicClient, call.isYieldLego(...args)),
2741
3128
  isDexLego: (...args) => singleQuery(publicClient, call.isDexLego(...args)),
2742
- isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
2743
- isEligibleVaultForTrialFunds: (...args) => singleQuery(publicClient, call.isEligibleVaultForTrialFunds(...args)),
2744
- isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
2745
- hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
2746
- isVaultToken: (...args) => singleQuery(publicClient, call.isVaultToken(...args)),
2747
3129
  getUnderlyingAsset: (...args) => singleQuery(publicClient, call.getUnderlyingAsset(...args)),
3130
+ getUnderlyingBalances: (...args) => singleQuery(publicClient, call.getUnderlyingBalances(...args)),
2748
3131
  getUnderlyingAmount: (...args) => singleQuery(publicClient, call.getUnderlyingAmount(...args)),
2749
- getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
2750
- getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3132
+ getUnderlyingAmountSafe: (...args) => singleQuery(publicClient, call.getUnderlyingAmountSafe(...args)),
2751
3133
  getUnderlyingData: (...args) => singleQuery(publicClient, call.getUnderlyingData(...args)),
3134
+ getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3135
+ isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
3136
+ getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
3137
+ getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
3138
+ isEligibleVaultForTrialFunds: (...args) => singleQuery(publicClient, call.isEligibleVaultForTrialFunds(...args)),
3139
+ isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
2752
3140
  totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args)),
2753
3141
  totalBorrows: (...args) => singleQuery(publicClient, call.totalBorrows(...args)),
2754
- getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
3142
+ canRegisterVaultToken: (...args) => singleQuery(publicClient, call.canRegisterVaultToken(...args)),
3143
+ hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
2755
3144
  getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
2756
- getPrice: (...args) => singleQuery(publicClient, call.getPrice(...args)),
2757
3145
  morphoRewards: (...args) => singleQuery(publicClient, call.morphoRewards(...args)),
2758
3146
  MORPHO_FACTORY: (...args) => singleQuery(publicClient, call.MORPHO_FACTORY(...args)),
2759
3147
  MORPHO_FACTORY_LEGACY: (...args) => singleQuery(publicClient, call.MORPHO_FACTORY_LEGACY(...args)),
@@ -2761,12 +3149,14 @@ export function toSdk(publicClient, walletClient) {
2761
3149
  pause: (...args) => mutate(walletClient, mutation.pause)(...args),
2762
3150
  recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
2763
3151
  recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
3152
+ setSnapShotPriceConfig: (...args) => mutate(walletClient, mutation.setSnapShotPriceConfig)(...args),
3153
+ registerVaultTokenLocally: (...args) => mutate(walletClient, mutation.registerVaultTokenLocally)(...args),
3154
+ deregisterVaultTokenLocally: (...args) => mutate(walletClient, mutation.deregisterVaultTokenLocally)(...args),
3155
+ addPriceSnapshot: (...args) => mutate(walletClient, mutation.addPriceSnapshot)(...args),
2764
3156
  depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
2765
3157
  withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
2766
3158
  claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
2767
3159
  setMorphoRewardsAddr: (...args) => mutate(walletClient, mutation.setMorphoRewardsAddr)(...args),
2768
- addAssetOpportunity: (...args) => mutate(walletClient, mutation.addAssetOpportunity)(...args),
2769
- removeAssetOpportunity: (...args) => mutate(walletClient, mutation.removeAssetOpportunity)(...args),
2770
3160
  swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
2771
3161
  mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset)(...args),
2772
3162
  confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset)(...args),