@underscore-finance/sdk 1.0.11 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (310) hide show
  1. package/dist/contracts/AaveV3.d.ts +603 -279
  2. package/dist/contracts/AaveV3.d.ts.map +1 -1
  3. package/dist/contracts/AaveV3.js +718 -331
  4. package/dist/contracts/AeroClassic.d.ts +4 -17
  5. package/dist/contracts/AeroClassic.d.ts.map +1 -1
  6. package/dist/contracts/AeroClassic.js +5 -24
  7. package/dist/contracts/AeroSlipstream.d.ts +4 -17
  8. package/dist/contracts/AeroSlipstream.d.ts.map +1 -1
  9. package/dist/contracts/AeroSlipstream.js +5 -24
  10. package/dist/contracts/Appraiser.d.ts +4 -0
  11. package/dist/contracts/Appraiser.d.ts.map +1 -1
  12. package/dist/contracts/Appraiser.js +5 -1
  13. package/dist/contracts/CompoundV3.d.ts +556 -246
  14. package/dist/contracts/CompoundV3.d.ts.map +1 -1
  15. package/dist/contracts/CompoundV3.js +695 -327
  16. package/dist/contracts/Curve.d.ts +4 -17
  17. package/dist/contracts/Curve.d.ts.map +1 -1
  18. package/dist/contracts/Curve.js +5 -24
  19. package/dist/contracts/Euler.d.ts +581 -253
  20. package/dist/contracts/Euler.d.ts.map +1 -1
  21. package/dist/contracts/Euler.js +714 -324
  22. package/dist/contracts/Fluid.d.ts +644 -302
  23. package/dist/contracts/Fluid.d.ts.map +1 -1
  24. package/dist/contracts/Fluid.js +743 -334
  25. package/dist/contracts/{Agent_v1.d.ts → FortyAcres.d.ts} +1516 -1699
  26. package/dist/contracts/FortyAcres.d.ts.map +1 -0
  27. package/dist/contracts/{AgentTemplate.js → FortyAcres.js} +1681 -1946
  28. package/dist/contracts/LegoBook.d.ts +7 -0
  29. package/dist/contracts/LegoBook.d.ts.map +1 -1
  30. package/dist/contracts/LegoBook.js +9 -1
  31. package/dist/contracts/LegoTools.d.ts +4 -0
  32. package/dist/contracts/LegoTools.d.ts.map +1 -1
  33. package/dist/contracts/LegoTools.js +5 -1
  34. package/dist/contracts/Moonwell.d.ts +582 -254
  35. package/dist/contracts/Moonwell.d.ts.map +1 -1
  36. package/dist/contracts/Moonwell.js +705 -315
  37. package/dist/contracts/Morpho.d.ts +580 -252
  38. package/dist/contracts/Morpho.d.ts.map +1 -1
  39. package/dist/contracts/Morpho.js +723 -333
  40. package/dist/contracts/RipeLego.d.ts +719 -363
  41. package/dist/contracts/RipeLego.d.ts.map +1 -1
  42. package/dist/contracts/RipeLego.js +839 -413
  43. package/dist/contracts/SignatureHelperV1.d.ts +229 -229
  44. package/dist/contracts/SignatureHelperV1.js +333 -333
  45. package/dist/contracts/SwitchboardCharlie.d.ts +1470 -0
  46. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -0
  47. package/dist/contracts/{v0_3_OracleRegistry.js → SwitchboardCharlie.js} +954 -691
  48. package/dist/contracts/{v0_1_Agent.d.ts → UnderscoreLego.d.ts} +1469 -1663
  49. package/dist/contracts/UnderscoreLego.d.ts.map +1 -0
  50. package/dist/contracts/{Agent_v1.js → UnderscoreLego.js} +1601 -1882
  51. package/dist/contracts/UndyBtc.d.ts +1487 -0
  52. package/dist/contracts/UndyBtc.d.ts.map +1 -0
  53. package/dist/contracts/{LegoUniswapV3.js → UndyBtc.js} +991 -754
  54. package/dist/contracts/UndyEth.d.ts +1487 -0
  55. package/dist/contracts/UndyEth.d.ts.map +1 -0
  56. package/dist/contracts/{v0_3_LegoUniswapV3.js → UndyEth.js} +991 -754
  57. package/dist/contracts/UndyRewardsLego.d.ts +3 -0
  58. package/dist/contracts/UndyRewardsLego.d.ts.map +1 -1
  59. package/dist/contracts/UndyRewardsLego.js +5 -1
  60. package/dist/contracts/UndyUsd.d.ts +1487 -0
  61. package/dist/contracts/UndyUsd.d.ts.map +1 -0
  62. package/dist/contracts/{LegoAeroSlipstream.js → UndyUsd.js} +1009 -725
  63. package/dist/contracts/UniswapV2.d.ts +4 -17
  64. package/dist/contracts/UniswapV2.d.ts.map +1 -1
  65. package/dist/contracts/UniswapV2.js +5 -24
  66. package/dist/contracts/UniswapV3.d.ts +4 -17
  67. package/dist/contracts/UniswapV3.d.ts.map +1 -1
  68. package/dist/contracts/UniswapV3.js +5 -24
  69. package/dist/contracts/VaultRegistry.d.ts +2265 -0
  70. package/dist/contracts/VaultRegistry.d.ts.map +1 -0
  71. package/dist/contracts/VaultRegistry.js +2848 -0
  72. package/dist/contracts/index.d.ts +7 -0
  73. package/dist/contracts/index.d.ts.map +1 -1
  74. package/dist/contracts/index.js +7 -0
  75. package/dist/contracts/sdk.d.ts +14 -0
  76. package/dist/contracts/sdk.d.ts.map +1 -1
  77. package/dist/contracts/sdk.js +14 -0
  78. package/dist/getContracts.d.ts +1 -0
  79. package/dist/getContracts.d.ts.map +1 -1
  80. package/dist/getContracts.js +1 -0
  81. package/package.json +1 -1
  82. package/dist/contracts/AddyRegistry.d.ts +0 -1109
  83. package/dist/contracts/AddyRegistry.d.ts.map +0 -1
  84. package/dist/contracts/AddyRegistry.js +0 -1392
  85. package/dist/contracts/AddyRegistry_v1.d.ts +0 -473
  86. package/dist/contracts/AddyRegistry_v1.d.ts.map +0 -1
  87. package/dist/contracts/AddyRegistry_v1.js +0 -594
  88. package/dist/contracts/AddyRegistry_v2.d.ts +0 -1050
  89. package/dist/contracts/AddyRegistry_v2.d.ts.map +0 -1
  90. package/dist/contracts/AddyRegistry_v2.js +0 -1313
  91. package/dist/contracts/AgentFactory.d.ts +0 -1665
  92. package/dist/contracts/AgentFactory.d.ts.map +0 -1
  93. package/dist/contracts/AgentFactory.js +0 -2078
  94. package/dist/contracts/AgentFactory_v1.d.ts +0 -1054
  95. package/dist/contracts/AgentFactory_v1.d.ts.map +0 -1
  96. package/dist/contracts/AgentFactory_v1.js +0 -1336
  97. package/dist/contracts/AgentFactory_v2.d.ts +0 -1275
  98. package/dist/contracts/AgentFactory_v2.d.ts.map +0 -1
  99. package/dist/contracts/AgentFactory_v2.js +0 -1609
  100. package/dist/contracts/AgentTemplate.d.ts +0 -2629
  101. package/dist/contracts/AgentTemplate.d.ts.map +0 -1
  102. package/dist/contracts/Agent_v1.d.ts.map +0 -1
  103. package/dist/contracts/Agent_v2.d.ts +0 -2709
  104. package/dist/contracts/Agent_v2.d.ts.map +0 -1
  105. package/dist/contracts/Agent_v2.js +0 -3458
  106. package/dist/contracts/ChainlinkFeeds.d.ts +0 -706
  107. package/dist/contracts/ChainlinkFeeds.d.ts.map +0 -1
  108. package/dist/contracts/ChainlinkFeeds.js +0 -900
  109. package/dist/contracts/LegoAaveV3.d.ts +0 -1033
  110. package/dist/contracts/LegoAaveV3.d.ts.map +0 -1
  111. package/dist/contracts/LegoAaveV3.js +0 -1330
  112. package/dist/contracts/LegoAeroClassic.d.ts +0 -1204
  113. package/dist/contracts/LegoAeroClassic.d.ts.map +0 -1
  114. package/dist/contracts/LegoAeroClassic.js +0 -1546
  115. package/dist/contracts/LegoAeroSlipstream.d.ts +0 -1300
  116. package/dist/contracts/LegoAeroSlipstream.d.ts.map +0 -1
  117. package/dist/contracts/LegoCommon.d.ts +0 -164
  118. package/dist/contracts/LegoCommon.d.ts.map +0 -1
  119. package/dist/contracts/LegoCommon.js +0 -202
  120. package/dist/contracts/LegoCompoundV3.d.ts +0 -1060
  121. package/dist/contracts/LegoCompoundV3.d.ts.map +0 -1
  122. package/dist/contracts/LegoCompoundV3.js +0 -1365
  123. package/dist/contracts/LegoCredit.d.ts +0 -140
  124. package/dist/contracts/LegoCredit.d.ts.map +0 -1
  125. package/dist/contracts/LegoCredit.js +0 -179
  126. package/dist/contracts/LegoCurve.d.ts +0 -1189
  127. package/dist/contracts/LegoCurve.d.ts.map +0 -1
  128. package/dist/contracts/LegoCurve.js +0 -1519
  129. package/dist/contracts/LegoDex.d.ts +0 -587
  130. package/dist/contracts/LegoDex.d.ts.map +0 -1
  131. package/dist/contracts/LegoDex.js +0 -774
  132. package/dist/contracts/LegoEuler.d.ts +0 -1074
  133. package/dist/contracts/LegoEuler.d.ts.map +0 -1
  134. package/dist/contracts/LegoEuler.js +0 -1383
  135. package/dist/contracts/LegoFluid.d.ts +0 -1025
  136. package/dist/contracts/LegoFluid.d.ts.map +0 -1
  137. package/dist/contracts/LegoFluid.js +0 -1320
  138. package/dist/contracts/LegoHelper.d.ts +0 -1563
  139. package/dist/contracts/LegoHelper.d.ts.map +0 -1
  140. package/dist/contracts/LegoHelper.js +0 -1947
  141. package/dist/contracts/LegoMoonwell.d.ts +0 -1042
  142. package/dist/contracts/LegoMoonwell.d.ts.map +0 -1
  143. package/dist/contracts/LegoMoonwell.js +0 -1342
  144. package/dist/contracts/LegoMorpho.d.ts +0 -1074
  145. package/dist/contracts/LegoMorpho.d.ts.map +0 -1
  146. package/dist/contracts/LegoMorpho.js +0 -1383
  147. package/dist/contracts/LegoRegistry.d.ts +0 -1079
  148. package/dist/contracts/LegoRegistry.d.ts.map +0 -1
  149. package/dist/contracts/LegoRegistry.js +0 -1368
  150. package/dist/contracts/LegoSky.d.ts +0 -923
  151. package/dist/contracts/LegoSky.d.ts.map +0 -1
  152. package/dist/contracts/LegoSky.js +0 -1180
  153. package/dist/contracts/LegoUniswapV0_2.d.ts +0 -1204
  154. package/dist/contracts/LegoUniswapV0_2.d.ts.map +0 -1
  155. package/dist/contracts/LegoUniswapV0_2.js +0 -1546
  156. package/dist/contracts/LegoUniswapV2.d.ts +0 -1204
  157. package/dist/contracts/LegoUniswapV2.d.ts.map +0 -1
  158. package/dist/contracts/LegoUniswapV2.js +0 -1546
  159. package/dist/contracts/LegoUniswapV3.d.ts +0 -1338
  160. package/dist/contracts/LegoUniswapV3.d.ts.map +0 -1
  161. package/dist/contracts/LegoYield.d.ts +0 -390
  162. package/dist/contracts/LegoYield.d.ts.map +0 -1
  163. package/dist/contracts/LegoYield.js +0 -511
  164. package/dist/contracts/OracleParser.d.ts +0 -207
  165. package/dist/contracts/OracleParser.d.ts.map +0 -1
  166. package/dist/contracts/OracleParser.js +0 -264
  167. package/dist/contracts/OracleRegistry.d.ts +0 -1221
  168. package/dist/contracts/OracleRegistry.d.ts.map +0 -1
  169. package/dist/contracts/OracleRegistry.js +0 -1562
  170. package/dist/contracts/PriceSheets.d.ts +0 -1127
  171. package/dist/contracts/PriceSheets.d.ts.map +0 -1
  172. package/dist/contracts/PriceSheets.js +0 -1383
  173. package/dist/contracts/PythFeeds.d.ts +0 -640
  174. package/dist/contracts/PythFeeds.d.ts.map +0 -1
  175. package/dist/contracts/PythFeeds.js +0 -813
  176. package/dist/contracts/StorkFeeds.d.ts +0 -640
  177. package/dist/contracts/StorkFeeds.d.ts.map +0 -1
  178. package/dist/contracts/StorkFeeds.js +0 -813
  179. package/dist/contracts/UserWalletConfig_v1.d.ts +0 -1400
  180. package/dist/contracts/UserWalletConfig_v1.d.ts.map +0 -1
  181. package/dist/contracts/UserWalletConfig_v1.js +0 -1676
  182. package/dist/contracts/UserWalletConfig_v2.d.ts +0 -1468
  183. package/dist/contracts/UserWalletConfig_v2.d.ts.map +0 -1
  184. package/dist/contracts/UserWalletConfig_v2.js +0 -1764
  185. package/dist/contracts/UserWallet_v1.d.ts +0 -1980
  186. package/dist/contracts/UserWallet_v1.d.ts.map +0 -1
  187. package/dist/contracts/UserWallet_v1.js +0 -2581
  188. package/dist/contracts/UserWallet_v2.d.ts +0 -1958
  189. package/dist/contracts/UserWallet_v2.d.ts.map +0 -1
  190. package/dist/contracts/UserWallet_v2.js +0 -2553
  191. package/dist/contracts/WalletConfig.d.ts +0 -1398
  192. package/dist/contracts/WalletConfig.d.ts.map +0 -1
  193. package/dist/contracts/WalletConfig.js +0 -1674
  194. package/dist/contracts/WalletFunds.d.ts +0 -1978
  195. package/dist/contracts/WalletFunds.d.ts.map +0 -1
  196. package/dist/contracts/WalletFunds.js +0 -2579
  197. package/dist/contracts/v0_1_AddyRegistry.d.ts +0 -473
  198. package/dist/contracts/v0_1_AddyRegistry.d.ts.map +0 -1
  199. package/dist/contracts/v0_1_AddyRegistry.js +0 -594
  200. package/dist/contracts/v0_1_Agent.d.ts.map +0 -1
  201. package/dist/contracts/v0_1_Agent.js +0 -3372
  202. package/dist/contracts/v0_1_AgentFactory.d.ts +0 -1054
  203. package/dist/contracts/v0_1_AgentFactory.d.ts.map +0 -1
  204. package/dist/contracts/v0_1_AgentFactory.js +0 -1336
  205. package/dist/contracts/v0_1_UserWallet.d.ts +0 -1980
  206. package/dist/contracts/v0_1_UserWallet.d.ts.map +0 -1
  207. package/dist/contracts/v0_1_UserWallet.js +0 -2581
  208. package/dist/contracts/v0_1_UserWalletConfig.d.ts +0 -1400
  209. package/dist/contracts/v0_1_UserWalletConfig.d.ts.map +0 -1
  210. package/dist/contracts/v0_1_UserWalletConfig.js +0 -1676
  211. package/dist/contracts/v0_2_AddyRegistry.d.ts +0 -1050
  212. package/dist/contracts/v0_2_AddyRegistry.d.ts.map +0 -1
  213. package/dist/contracts/v0_2_AddyRegistry.js +0 -1313
  214. package/dist/contracts/v0_2_Agent.d.ts +0 -2709
  215. package/dist/contracts/v0_2_Agent.d.ts.map +0 -1
  216. package/dist/contracts/v0_2_Agent.js +0 -3458
  217. package/dist/contracts/v0_2_AgentFactory.d.ts +0 -1275
  218. package/dist/contracts/v0_2_AgentFactory.d.ts.map +0 -1
  219. package/dist/contracts/v0_2_AgentFactory.js +0 -1609
  220. package/dist/contracts/v0_2_UserWallet.d.ts +0 -1958
  221. package/dist/contracts/v0_2_UserWallet.d.ts.map +0 -1
  222. package/dist/contracts/v0_2_UserWallet.js +0 -2553
  223. package/dist/contracts/v0_2_UserWalletConfig.d.ts +0 -1468
  224. package/dist/contracts/v0_2_UserWalletConfig.d.ts.map +0 -1
  225. package/dist/contracts/v0_2_UserWalletConfig.js +0 -1764
  226. package/dist/contracts/v0_3_AddyRegistry.d.ts +0 -1109
  227. package/dist/contracts/v0_3_AddyRegistry.d.ts.map +0 -1
  228. package/dist/contracts/v0_3_AddyRegistry.js +0 -1392
  229. package/dist/contracts/v0_3_Agent.d.ts +0 -2709
  230. package/dist/contracts/v0_3_Agent.d.ts.map +0 -1
  231. package/dist/contracts/v0_3_Agent.js +0 -3458
  232. package/dist/contracts/v0_3_AgentFactory.d.ts +0 -1665
  233. package/dist/contracts/v0_3_AgentFactory.d.ts.map +0 -1
  234. package/dist/contracts/v0_3_AgentFactory.js +0 -2078
  235. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts +0 -706
  236. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts.map +0 -1
  237. package/dist/contracts/v0_3_ChainlinkFeeds.js +0 -900
  238. package/dist/contracts/v0_3_LegoAaveV3.d.ts +0 -1033
  239. package/dist/contracts/v0_3_LegoAaveV3.d.ts.map +0 -1
  240. package/dist/contracts/v0_3_LegoAaveV3.js +0 -1330
  241. package/dist/contracts/v0_3_LegoAeroClassic.d.ts +0 -1204
  242. package/dist/contracts/v0_3_LegoAeroClassic.d.ts.map +0 -1
  243. package/dist/contracts/v0_3_LegoAeroClassic.js +0 -1546
  244. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts +0 -1300
  245. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts.map +0 -1
  246. package/dist/contracts/v0_3_LegoAeroSlipstream.js +0 -1671
  247. package/dist/contracts/v0_3_LegoCommon.d.ts +0 -164
  248. package/dist/contracts/v0_3_LegoCommon.d.ts.map +0 -1
  249. package/dist/contracts/v0_3_LegoCommon.js +0 -202
  250. package/dist/contracts/v0_3_LegoCompoundV3.d.ts +0 -1060
  251. package/dist/contracts/v0_3_LegoCompoundV3.d.ts.map +0 -1
  252. package/dist/contracts/v0_3_LegoCompoundV3.js +0 -1365
  253. package/dist/contracts/v0_3_LegoCredit.d.ts +0 -140
  254. package/dist/contracts/v0_3_LegoCredit.d.ts.map +0 -1
  255. package/dist/contracts/v0_3_LegoCredit.js +0 -179
  256. package/dist/contracts/v0_3_LegoCurve.d.ts +0 -1189
  257. package/dist/contracts/v0_3_LegoCurve.d.ts.map +0 -1
  258. package/dist/contracts/v0_3_LegoCurve.js +0 -1519
  259. package/dist/contracts/v0_3_LegoDex.d.ts +0 -587
  260. package/dist/contracts/v0_3_LegoDex.d.ts.map +0 -1
  261. package/dist/contracts/v0_3_LegoDex.js +0 -774
  262. package/dist/contracts/v0_3_LegoEuler.d.ts +0 -1074
  263. package/dist/contracts/v0_3_LegoEuler.d.ts.map +0 -1
  264. package/dist/contracts/v0_3_LegoEuler.js +0 -1383
  265. package/dist/contracts/v0_3_LegoFluid.d.ts +0 -1025
  266. package/dist/contracts/v0_3_LegoFluid.d.ts.map +0 -1
  267. package/dist/contracts/v0_3_LegoFluid.js +0 -1320
  268. package/dist/contracts/v0_3_LegoHelper.d.ts +0 -1563
  269. package/dist/contracts/v0_3_LegoHelper.d.ts.map +0 -1
  270. package/dist/contracts/v0_3_LegoHelper.js +0 -1947
  271. package/dist/contracts/v0_3_LegoMoonwell.d.ts +0 -1042
  272. package/dist/contracts/v0_3_LegoMoonwell.d.ts.map +0 -1
  273. package/dist/contracts/v0_3_LegoMoonwell.js +0 -1342
  274. package/dist/contracts/v0_3_LegoMorpho.d.ts +0 -1074
  275. package/dist/contracts/v0_3_LegoMorpho.d.ts.map +0 -1
  276. package/dist/contracts/v0_3_LegoMorpho.js +0 -1383
  277. package/dist/contracts/v0_3_LegoRegistry.d.ts +0 -1079
  278. package/dist/contracts/v0_3_LegoRegistry.d.ts.map +0 -1
  279. package/dist/contracts/v0_3_LegoRegistry.js +0 -1368
  280. package/dist/contracts/v0_3_LegoSky.d.ts +0 -923
  281. package/dist/contracts/v0_3_LegoSky.d.ts.map +0 -1
  282. package/dist/contracts/v0_3_LegoSky.js +0 -1180
  283. package/dist/contracts/v0_3_LegoUniswapV3.d.ts +0 -1338
  284. package/dist/contracts/v0_3_LegoUniswapV3.d.ts.map +0 -1
  285. package/dist/contracts/v0_3_LegoYield.d.ts +0 -390
  286. package/dist/contracts/v0_3_LegoYield.d.ts.map +0 -1
  287. package/dist/contracts/v0_3_LegoYield.js +0 -511
  288. package/dist/contracts/v0_3_OracleParser.d.ts +0 -207
  289. package/dist/contracts/v0_3_OracleParser.d.ts.map +0 -1
  290. package/dist/contracts/v0_3_OracleParser.js +0 -264
  291. package/dist/contracts/v0_3_OracleRegistry.d.ts +0 -1221
  292. package/dist/contracts/v0_3_OracleRegistry.d.ts.map +0 -1
  293. package/dist/contracts/v0_3_PriceSheets.d.ts +0 -1127
  294. package/dist/contracts/v0_3_PriceSheets.d.ts.map +0 -1
  295. package/dist/contracts/v0_3_PriceSheets.js +0 -1383
  296. package/dist/contracts/v0_3_PythFeeds.d.ts +0 -640
  297. package/dist/contracts/v0_3_PythFeeds.d.ts.map +0 -1
  298. package/dist/contracts/v0_3_PythFeeds.js +0 -813
  299. package/dist/contracts/v0_3_StorkFeeds.d.ts +0 -640
  300. package/dist/contracts/v0_3_StorkFeeds.d.ts.map +0 -1
  301. package/dist/contracts/v0_3_StorkFeeds.js +0 -813
  302. package/dist/contracts/v0_3_UserWallet.d.ts +0 -1975
  303. package/dist/contracts/v0_3_UserWallet.d.ts.map +0 -1
  304. package/dist/contracts/v0_3_UserWallet.js +0 -2577
  305. package/dist/contracts/v0_3_UserWalletConfig.d.ts +0 -1852
  306. package/dist/contracts/v0_3_UserWalletConfig.d.ts.map +0 -1
  307. package/dist/contracts/v0_3_UserWalletConfig.js +0 -2263
  308. package/dist/getLegacyContracts.d.ts +0 -69
  309. package/dist/getLegacyContracts.d.ts.map +0 -1
  310. package/dist/getLegacyContracts.js +0 -55
@@ -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,41 +670,126 @@ 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',
676
+ name: 'arg0',
677
+ type: 'address',
678
+ },
679
+ ],
680
+ outputs: [
681
+ {
682
+ name: '',
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
+ ],
708
+ },
709
+ ],
710
+ },
711
+ {
712
+ stateMutability: 'view',
713
+ type: 'function',
714
+ name: 'snapShots',
715
+ inputs: [
716
+ {
717
+ name: 'arg0',
718
+ type: 'address',
719
+ },
720
+ {
721
+ name: 'arg1',
505
722
  type: 'uint256',
506
723
  },
507
724
  ],
508
725
  outputs: [
509
726
  {
510
727
  name: '',
511
- type: 'bool',
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
+ ],
512
743
  },
513
744
  ],
514
745
  },
515
746
  {
516
747
  stateMutability: 'view',
517
748
  type: 'function',
518
- name: 'getRegistries',
749
+ name: 'snapShotPriceConfig',
519
750
  inputs: [],
520
751
  outputs: [
521
752
  {
522
753
  name: '',
523
- type: 'address[]',
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
+ ],
524
773
  },
525
774
  ],
526
775
  },
527
776
  {
528
777
  stateMutability: 'view',
529
778
  type: 'function',
530
- name: 'getAccessForLego',
531
- inputs: [
779
+ name: 'isPaused',
780
+ inputs: [],
781
+ outputs: [
532
782
  {
533
- name: '_user',
534
- type: 'address',
783
+ name: '',
784
+ type: 'bool',
535
785
  },
786
+ ],
787
+ },
788
+ {
789
+ stateMutability: 'view',
790
+ type: 'function',
791
+ name: 'hasCapability',
792
+ inputs: [
536
793
  {
537
794
  name: '_action',
538
795
  type: 'uint256',
@@ -541,34 +798,26 @@ export const abi = [
541
798
  outputs: [
542
799
  {
543
800
  name: '',
544
- type: 'address',
545
- },
546
- {
547
- name: '',
548
- type: 'string',
549
- },
550
- {
551
- name: '',
552
- type: 'uint256',
801
+ type: 'bool',
553
802
  },
554
803
  ],
555
804
  },
556
805
  {
557
806
  stateMutability: 'view',
558
807
  type: 'function',
559
- name: 'isYieldLego',
808
+ name: 'getRegistries',
560
809
  inputs: [],
561
810
  outputs: [
562
811
  {
563
812
  name: '',
564
- type: 'bool',
813
+ type: 'address[]',
565
814
  },
566
815
  ],
567
816
  },
568
817
  {
569
818
  stateMutability: 'view',
570
819
  type: 'function',
571
- name: 'isDexLego',
820
+ name: 'isYieldLego',
572
821
  inputs: [],
573
822
  outputs: [
574
823
  {
@@ -580,7 +829,7 @@ export const abi = [
580
829
  {
581
830
  stateMutability: 'view',
582
831
  type: 'function',
583
- name: 'isRebasing',
832
+ name: 'isDexLego',
584
833
  inputs: [],
585
834
  outputs: [
586
835
  {
@@ -592,65 +841,78 @@ export const abi = [
592
841
  {
593
842
  stateMutability: 'view',
594
843
  type: 'function',
595
- name: 'isEligibleVaultForTrialFunds',
844
+ name: 'getUnderlyingAsset',
596
845
  inputs: [
597
846
  {
598
847
  name: '_vaultToken',
599
848
  type: 'address',
600
849
  },
601
- {
602
- name: '_underlyingAsset',
603
- type: 'address',
604
- },
605
850
  ],
606
851
  outputs: [
607
852
  {
608
853
  name: '',
609
- type: 'bool',
854
+ type: 'address',
610
855
  },
611
856
  ],
612
857
  },
613
858
  {
614
859
  stateMutability: 'view',
615
860
  type: 'function',
616
- name: 'isEligibleForYieldBonus',
861
+ name: 'getUnderlyingBalances',
617
862
  inputs: [
618
863
  {
619
- name: '_asset',
864
+ name: '_vaultToken',
620
865
  type: 'address',
621
866
  },
867
+ {
868
+ name: '_vaultTokenBalance',
869
+ type: 'uint256',
870
+ },
622
871
  ],
623
872
  outputs: [
624
873
  {
625
874
  name: '',
626
- type: 'bool',
875
+ type: 'uint256',
627
876
  },
628
- ],
629
- },
630
- {
631
- stateMutability: 'nonpayable',
877
+ {
878
+ name: '',
879
+ type: 'uint256',
880
+ },
881
+ ],
882
+ },
883
+ {
884
+ stateMutability: 'view',
632
885
  type: 'function',
633
- name: 'depositForYield',
886
+ name: 'getUnderlyingAmount',
634
887
  inputs: [
635
888
  {
636
- name: '_asset',
889
+ name: '_vaultToken',
637
890
  type: 'address',
638
891
  },
639
892
  {
640
- name: '_amount',
893
+ name: '_vaultTokenAmount',
641
894
  type: 'uint256',
642
895
  },
896
+ ],
897
+ outputs: [
643
898
  {
644
- name: '_vaultAddr',
645
- type: 'address',
899
+ name: '',
900
+ type: 'uint256',
646
901
  },
902
+ ],
903
+ },
904
+ {
905
+ stateMutability: 'view',
906
+ type: 'function',
907
+ name: 'getUnderlyingAmountSafe',
908
+ inputs: [
647
909
  {
648
- name: '_extraData',
649
- type: 'bytes32',
910
+ name: '_vaultToken',
911
+ type: 'address',
650
912
  },
651
913
  {
652
- name: '_recipient',
653
- type: 'address',
914
+ name: '_vaultTokenBalance',
915
+ type: 'uint256',
654
916
  },
655
917
  ],
656
918
  outputs: [
@@ -658,6 +920,23 @@ export const abi = [
658
920
  name: '',
659
921
  type: 'uint256',
660
922
  },
923
+ ],
924
+ },
925
+ {
926
+ stateMutability: 'view',
927
+ type: 'function',
928
+ name: 'getUnderlyingData',
929
+ inputs: [
930
+ {
931
+ name: '_vaultToken',
932
+ type: 'address',
933
+ },
934
+ {
935
+ name: '_vaultTokenAmount',
936
+ type: 'uint256',
937
+ },
938
+ ],
939
+ outputs: [
661
940
  {
662
941
  name: '',
663
942
  type: 'address',
@@ -673,66 +952,53 @@ export const abi = [
673
952
  ],
674
953
  },
675
954
  {
676
- stateMutability: 'nonpayable',
955
+ stateMutability: 'view',
677
956
  type: 'function',
678
- name: 'depositForYield',
957
+ name: 'getUnderlyingData',
679
958
  inputs: [
680
959
  {
681
- name: '_asset',
960
+ name: '_vaultToken',
682
961
  type: 'address',
683
962
  },
684
963
  {
685
- name: '_amount',
964
+ name: '_vaultTokenAmount',
686
965
  type: 'uint256',
687
966
  },
688
967
  {
689
- name: '_vaultAddr',
968
+ name: '_appraiser',
690
969
  type: 'address',
691
970
  },
971
+ ],
972
+ outputs: [
692
973
  {
693
- name: '_extraData',
694
- type: 'bytes32',
695
- },
696
- {
697
- name: '_recipient',
974
+ name: '',
698
975
  type: 'address',
699
976
  },
700
977
  {
701
- name: '_miniAddys',
702
- type: 'tuple',
703
- components: [
704
- {
705
- name: 'ledger',
706
- type: 'address',
707
- },
708
- {
709
- name: 'missionControl',
710
- type: 'address',
711
- },
712
- {
713
- name: 'legoBook',
714
- type: 'address',
715
- },
716
- {
717
- name: 'appraiser',
718
- type: 'address',
719
- },
720
- ],
978
+ name: '',
979
+ type: 'uint256',
721
980
  },
722
- ],
723
- outputs: [
724
981
  {
725
982
  name: '',
726
983
  type: 'uint256',
727
984
  },
985
+ ],
986
+ },
987
+ {
988
+ stateMutability: 'view',
989
+ type: 'function',
990
+ name: 'getUsdValueOfVaultToken',
991
+ inputs: [
728
992
  {
729
- name: '',
993
+ name: '_vaultToken',
730
994
  type: 'address',
731
995
  },
732
996
  {
733
- name: '',
997
+ name: '_vaultTokenAmount',
734
998
  type: 'uint256',
735
999
  },
1000
+ ],
1001
+ outputs: [
736
1002
  {
737
1003
  name: '',
738
1004
  type: 'uint256',
@@ -740,24 +1006,20 @@ export const abi = [
740
1006
  ],
741
1007
  },
742
1008
  {
743
- stateMutability: 'nonpayable',
1009
+ stateMutability: 'view',
744
1010
  type: 'function',
745
- name: 'withdrawFromYield',
1011
+ name: 'getUsdValueOfVaultToken',
746
1012
  inputs: [
747
1013
  {
748
1014
  name: '_vaultToken',
749
1015
  type: 'address',
750
1016
  },
751
1017
  {
752
- name: '_amount',
1018
+ name: '_vaultTokenAmount',
753
1019
  type: 'uint256',
754
1020
  },
755
1021
  {
756
- name: '_extraData',
757
- type: 'bytes32',
758
- },
759
- {
760
- name: '_recipient',
1022
+ name: '_appraiser',
761
1023
  type: 'address',
762
1024
  },
763
1025
  ],
@@ -766,14 +1028,31 @@ export const abi = [
766
1028
  name: '',
767
1029
  type: 'uint256',
768
1030
  },
1031
+ ],
1032
+ },
1033
+ {
1034
+ stateMutability: 'view',
1035
+ type: 'function',
1036
+ name: 'isRebasing',
1037
+ inputs: [],
1038
+ outputs: [
769
1039
  {
770
1040
  name: '',
771
- type: 'address',
1041
+ type: 'bool',
772
1042
  },
1043
+ ],
1044
+ },
1045
+ {
1046
+ stateMutability: 'view',
1047
+ type: 'function',
1048
+ name: 'getPricePerShare',
1049
+ inputs: [
773
1050
  {
774
- name: '',
775
- type: 'uint256',
1051
+ name: '_vaultToken',
1052
+ type: 'address',
776
1053
  },
1054
+ ],
1055
+ outputs: [
777
1056
  {
778
1057
  name: '',
779
1058
  type: 'uint256',
@@ -781,47 +1060,42 @@ export const abi = [
781
1060
  ],
782
1061
  },
783
1062
  {
784
- stateMutability: 'nonpayable',
1063
+ stateMutability: 'view',
785
1064
  type: 'function',
786
- name: 'withdrawFromYield',
1065
+ name: 'getPricePerShare',
787
1066
  inputs: [
788
1067
  {
789
1068
  name: '_vaultToken',
790
1069
  type: 'address',
791
1070
  },
792
1071
  {
793
- name: '_amount',
1072
+ name: '_decimals',
794
1073
  type: 'uint256',
795
1074
  },
1075
+ ],
1076
+ outputs: [
796
1077
  {
797
- name: '_extraData',
798
- type: 'bytes32',
1078
+ name: '',
1079
+ type: 'uint256',
799
1080
  },
1081
+ ],
1082
+ },
1083
+ {
1084
+ stateMutability: 'view',
1085
+ type: 'function',
1086
+ name: 'getVaultTokenAmount',
1087
+ inputs: [
800
1088
  {
801
- name: '_recipient',
1089
+ name: '_asset',
802
1090
  type: 'address',
803
1091
  },
804
1092
  {
805
- name: '_miniAddys',
806
- type: 'tuple',
807
- components: [
808
- {
809
- name: 'ledger',
810
- type: 'address',
811
- },
812
- {
813
- name: 'missionControl',
814
- type: 'address',
815
- },
816
- {
817
- name: 'legoBook',
818
- type: 'address',
819
- },
820
- {
821
- name: 'appraiser',
822
- type: 'address',
823
- },
824
- ],
1093
+ name: '_assetAmount',
1094
+ type: 'uint256',
1095
+ },
1096
+ {
1097
+ name: '_vaultToken',
1098
+ type: 'address',
825
1099
  },
826
1100
  ],
827
1101
  outputs: [
@@ -829,40 +1103,54 @@ export const abi = [
829
1103
  name: '',
830
1104
  type: 'uint256',
831
1105
  },
1106
+ ],
1107
+ },
1108
+ {
1109
+ stateMutability: 'view',
1110
+ type: 'function',
1111
+ name: 'isEligibleVaultForTrialFunds',
1112
+ inputs: [
832
1113
  {
833
- name: '',
1114
+ name: '_vaultToken',
834
1115
  type: 'address',
835
1116
  },
836
1117
  {
837
- name: '',
838
- type: 'uint256',
1118
+ name: '_underlyingAsset',
1119
+ type: 'address',
839
1120
  },
1121
+ ],
1122
+ outputs: [
840
1123
  {
841
1124
  name: '',
842
- type: 'uint256',
1125
+ type: 'bool',
843
1126
  },
844
1127
  ],
845
1128
  },
846
1129
  {
847
- stateMutability: 'nonpayable',
1130
+ stateMutability: 'view',
848
1131
  type: 'function',
849
- name: 'claimRewards',
1132
+ name: 'isEligibleForYieldBonus',
850
1133
  inputs: [
851
1134
  {
852
- name: '_user',
853
- type: 'address',
854
- },
855
- {
856
- name: '_rewardToken',
1135
+ name: '_asset',
857
1136
  type: 'address',
858
1137
  },
1138
+ ],
1139
+ outputs: [
859
1140
  {
860
- name: '_rewardAmount',
861
- type: 'uint256',
1141
+ name: '',
1142
+ type: 'bool',
862
1143
  },
1144
+ ],
1145
+ },
1146
+ {
1147
+ stateMutability: 'view',
1148
+ type: 'function',
1149
+ name: 'totalAssets',
1150
+ inputs: [
863
1151
  {
864
- name: '_extraData',
865
- type: 'bytes32',
1152
+ name: '_vaultToken',
1153
+ type: 'address',
866
1154
  },
867
1155
  ],
868
1156
  outputs: [
@@ -870,6 +1158,19 @@ export const abi = [
870
1158
  name: '',
871
1159
  type: 'uint256',
872
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: [
873
1174
  {
874
1175
  name: '',
875
1176
  type: 'uint256',
@@ -877,67 +1178,84 @@ export const abi = [
877
1178
  ],
878
1179
  },
879
1180
  {
880
- stateMutability: 'nonpayable',
1181
+ stateMutability: 'view',
881
1182
  type: 'function',
882
- name: 'claimRewards',
1183
+ name: 'canRegisterVaultToken',
883
1184
  inputs: [
884
1185
  {
885
- name: '_user',
1186
+ name: '_asset',
886
1187
  type: 'address',
887
1188
  },
888
1189
  {
889
- name: '_rewardToken',
1190
+ name: '_vaultToken',
890
1191
  type: 'address',
891
1192
  },
1193
+ ],
1194
+ outputs: [
892
1195
  {
893
- name: '_rewardAmount',
894
- type: 'uint256',
1196
+ name: '',
1197
+ type: 'bool',
895
1198
  },
1199
+ ],
1200
+ },
1201
+ {
1202
+ stateMutability: 'nonpayable',
1203
+ type: 'function',
1204
+ name: 'registerVaultTokenLocally',
1205
+ inputs: [
896
1206
  {
897
- name: '_extraData',
898
- type: 'bytes32',
1207
+ name: '_asset',
1208
+ type: 'address',
899
1209
  },
900
1210
  {
901
- name: '_miniAddys',
1211
+ name: '_vaultAddr',
1212
+ type: 'address',
1213
+ },
1214
+ ],
1215
+ outputs: [
1216
+ {
1217
+ name: '',
902
1218
  type: 'tuple',
903
1219
  components: [
904
1220
  {
905
- name: 'ledger',
906
- type: 'address',
907
- },
908
- {
909
- name: 'missionControl',
1221
+ name: 'underlyingAsset',
910
1222
  type: 'address',
911
1223
  },
912
1224
  {
913
- name: 'legoBook',
914
- type: 'address',
1225
+ name: 'decimals',
1226
+ type: 'uint256',
915
1227
  },
916
1228
  {
917
- name: 'appraiser',
918
- type: 'address',
1229
+ name: 'lastAveragePricePerShare',
1230
+ type: 'uint256',
919
1231
  },
920
1232
  ],
921
1233
  },
922
1234
  ],
923
- outputs: [
1235
+ },
1236
+ {
1237
+ stateMutability: 'nonpayable',
1238
+ type: 'function',
1239
+ name: 'deregisterVaultTokenLocally',
1240
+ inputs: [
924
1241
  {
925
- name: '',
926
- type: 'uint256',
1242
+ name: '_asset',
1243
+ type: 'address',
927
1244
  },
928
1245
  {
929
- name: '',
930
- type: 'uint256',
1246
+ name: '_vaultAddr',
1247
+ type: 'address',
931
1248
  },
932
1249
  ],
1250
+ outputs: [],
933
1251
  },
934
1252
  {
935
- stateMutability: 'view',
1253
+ stateMutability: 'nonpayable',
936
1254
  type: 'function',
937
- name: 'hasClaimableRewards',
1255
+ name: 'addPriceSnapshot',
938
1256
  inputs: [
939
1257
  {
940
- name: '_user',
1258
+ name: '_vaultToken',
941
1259
  type: 'address',
942
1260
  },
943
1261
  ],
@@ -951,69 +1269,109 @@ export const abi = [
951
1269
  {
952
1270
  stateMutability: 'nonpayable',
953
1271
  type: 'function',
954
- name: 'setEulerRewardsAddr',
1272
+ name: 'depositForYield',
955
1273
  inputs: [
956
1274
  {
957
- name: '_addr',
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',
958
1292
  type: 'address',
959
1293
  },
960
1294
  ],
961
1295
  outputs: [
962
1296
  {
963
1297
  name: '',
964
- type: 'bool',
1298
+ type: 'uint256',
965
1299
  },
966
- ],
967
- },
968
- {
969
- stateMutability: 'view',
970
- type: 'function',
971
- name: 'isVaultToken',
972
- inputs: [
973
1300
  {
974
- name: '_vaultToken',
1301
+ name: '',
975
1302
  type: 'address',
976
1303
  },
977
- ],
978
- outputs: [
979
1304
  {
980
1305
  name: '',
981
- type: 'bool',
1306
+ type: 'uint256',
1307
+ },
1308
+ {
1309
+ name: '',
1310
+ type: 'uint256',
982
1311
  },
983
1312
  ],
984
1313
  },
985
1314
  {
986
- stateMutability: 'view',
1315
+ stateMutability: 'nonpayable',
987
1316
  type: 'function',
988
- name: 'getUnderlyingAsset',
1317
+ name: 'depositForYield',
989
1318
  inputs: [
990
1319
  {
991
- name: '_vaultToken',
1320
+ name: '_asset',
992
1321
  type: 'address',
993
1322
  },
994
- ],
995
- outputs: [
996
1323
  {
997
- name: '',
1324
+ name: '_amount',
1325
+ type: 'uint256',
1326
+ },
1327
+ {
1328
+ name: '_vaultAddr',
998
1329
  type: 'address',
999
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
+ },
1000
1361
  ],
1001
- },
1002
- {
1003
- stateMutability: 'view',
1004
- type: 'function',
1005
- name: 'getUnderlyingAmount',
1006
- inputs: [
1362
+ outputs: [
1007
1363
  {
1008
- name: '_vaultToken',
1364
+ name: '',
1365
+ type: 'uint256',
1366
+ },
1367
+ {
1368
+ name: '',
1009
1369
  type: 'address',
1010
1370
  },
1011
1371
  {
1012
- name: '_vaultTokenAmount',
1372
+ name: '',
1013
1373
  type: 'uint256',
1014
1374
  },
1015
- ],
1016
- outputs: [
1017
1375
  {
1018
1376
  name: '',
1019
1377
  type: 'uint256',
@@ -1021,20 +1379,24 @@ export const abi = [
1021
1379
  ],
1022
1380
  },
1023
1381
  {
1024
- stateMutability: 'view',
1382
+ stateMutability: 'nonpayable',
1025
1383
  type: 'function',
1026
- name: 'getVaultTokenAmount',
1384
+ name: 'withdrawFromYield',
1027
1385
  inputs: [
1028
1386
  {
1029
- name: '_asset',
1387
+ name: '_vaultToken',
1030
1388
  type: 'address',
1031
1389
  },
1032
1390
  {
1033
- name: '_assetAmount',
1391
+ name: '_amount',
1034
1392
  type: 'uint256',
1035
1393
  },
1036
1394
  {
1037
- name: '_vaultToken',
1395
+ name: '_extraData',
1396
+ type: 'bytes32',
1397
+ },
1398
+ {
1399
+ name: '_recipient',
1038
1400
  type: 'address',
1039
1401
  },
1040
1402
  ],
@@ -1043,23 +1405,14 @@ export const abi = [
1043
1405
  name: '',
1044
1406
  type: 'uint256',
1045
1407
  },
1046
- ],
1047
- },
1048
- {
1049
- stateMutability: 'view',
1050
- type: 'function',
1051
- name: 'getUsdValueOfVaultToken',
1052
- inputs: [
1053
1408
  {
1054
- name: '_vaultToken',
1409
+ name: '',
1055
1410
  type: 'address',
1056
1411
  },
1057
1412
  {
1058
- name: '_vaultTokenAmount',
1413
+ name: '',
1059
1414
  type: 'uint256',
1060
1415
  },
1061
- ],
1062
- outputs: [
1063
1416
  {
1064
1417
  name: '',
1065
1418
  type: 'uint256',
@@ -1067,49 +1420,91 @@ export const abi = [
1067
1420
  ],
1068
1421
  },
1069
1422
  {
1070
- stateMutability: 'view',
1423
+ stateMutability: 'nonpayable',
1071
1424
  type: 'function',
1072
- name: 'getUsdValueOfVaultToken',
1425
+ name: 'withdrawFromYield',
1073
1426
  inputs: [
1074
1427
  {
1075
1428
  name: '_vaultToken',
1076
1429
  type: 'address',
1077
1430
  },
1078
1431
  {
1079
- name: '_vaultTokenAmount',
1432
+ name: '_amount',
1080
1433
  type: 'uint256',
1081
1434
  },
1082
1435
  {
1083
- name: '_appraiser',
1436
+ name: '_extraData',
1437
+ type: 'bytes32',
1438
+ },
1439
+ {
1440
+ name: '_recipient',
1084
1441
  type: 'address',
1085
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
+ },
1086
1465
  ],
1087
1466
  outputs: [
1088
1467
  {
1089
1468
  name: '',
1090
1469
  type: 'uint256',
1091
1470
  },
1471
+ {
1472
+ name: '',
1473
+ type: 'address',
1474
+ },
1475
+ {
1476
+ name: '',
1477
+ type: 'uint256',
1478
+ },
1479
+ {
1480
+ name: '',
1481
+ type: 'uint256',
1482
+ },
1092
1483
  ],
1093
1484
  },
1094
1485
  {
1095
- stateMutability: 'view',
1486
+ stateMutability: 'nonpayable',
1096
1487
  type: 'function',
1097
- name: 'getUnderlyingData',
1488
+ name: 'claimRewards',
1098
1489
  inputs: [
1099
1490
  {
1100
- name: '_vaultToken',
1491
+ name: '_user',
1101
1492
  type: 'address',
1102
1493
  },
1103
1494
  {
1104
- name: '_vaultTokenAmount',
1495
+ name: '_rewardToken',
1496
+ type: 'address',
1497
+ },
1498
+ {
1499
+ name: '_rewardAmount',
1105
1500
  type: 'uint256',
1106
1501
  },
1107
- ],
1108
- outputs: [
1109
1502
  {
1110
- name: '',
1111
- type: 'address',
1503
+ name: '_extraData',
1504
+ type: 'bytes32',
1112
1505
  },
1506
+ ],
1507
+ outputs: [
1113
1508
  {
1114
1509
  name: '',
1115
1510
  type: 'uint256',
@@ -1121,28 +1516,50 @@ export const abi = [
1121
1516
  ],
1122
1517
  },
1123
1518
  {
1124
- stateMutability: 'view',
1519
+ stateMutability: 'nonpayable',
1125
1520
  type: 'function',
1126
- name: 'getUnderlyingData',
1521
+ name: 'claimRewards',
1127
1522
  inputs: [
1128
1523
  {
1129
- name: '_vaultToken',
1524
+ name: '_user',
1130
1525
  type: 'address',
1131
1526
  },
1132
1527
  {
1133
- name: '_vaultTokenAmount',
1528
+ name: '_rewardToken',
1529
+ type: 'address',
1530
+ },
1531
+ {
1532
+ name: '_rewardAmount',
1134
1533
  type: 'uint256',
1135
1534
  },
1136
1535
  {
1137
- name: '_appraiser',
1138
- type: 'address',
1536
+ name: '_extraData',
1537
+ type: 'bytes32',
1139
1538
  },
1140
- ],
1141
- outputs: [
1142
1539
  {
1143
- name: '',
1144
- 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
+ ],
1145
1560
  },
1561
+ ],
1562
+ outputs: [
1146
1563
  {
1147
1564
  name: '',
1148
1565
  type: 'uint256',
@@ -1156,89 +1573,65 @@ export const abi = [
1156
1573
  {
1157
1574
  stateMutability: 'view',
1158
1575
  type: 'function',
1159
- name: 'totalAssets',
1576
+ name: 'hasClaimableRewards',
1160
1577
  inputs: [
1161
1578
  {
1162
- name: '_vaultToken',
1579
+ name: '_user',
1163
1580
  type: 'address',
1164
1581
  },
1165
1582
  ],
1166
1583
  outputs: [
1167
1584
  {
1168
1585
  name: '',
1169
- type: 'uint256',
1586
+ type: 'bool',
1170
1587
  },
1171
1588
  ],
1172
1589
  },
1173
1590
  {
1174
- stateMutability: 'view',
1591
+ stateMutability: 'nonpayable',
1175
1592
  type: 'function',
1176
- name: 'totalBorrows',
1593
+ name: 'setEulerRewardsAddr',
1177
1594
  inputs: [
1178
1595
  {
1179
- name: '_vaultToken',
1596
+ name: '_addr',
1180
1597
  type: 'address',
1181
1598
  },
1182
1599
  ],
1183
1600
  outputs: [
1184
1601
  {
1185
1602
  name: '',
1186
- type: 'uint256',
1603
+ type: 'bool',
1187
1604
  },
1188
1605
  ],
1189
1606
  },
1190
1607
  {
1191
1608
  stateMutability: 'view',
1192
1609
  type: 'function',
1193
- name: 'getPricePerShare',
1610
+ name: 'getAccessForLego',
1194
1611
  inputs: [
1195
1612
  {
1196
- name: '_asset',
1613
+ name: '_user',
1197
1614
  type: 'address',
1198
1615
  },
1199
1616
  {
1200
- name: '_decimals',
1617
+ name: '_action',
1201
1618
  type: 'uint256',
1202
1619
  },
1203
1620
  ],
1204
1621
  outputs: [
1205
1622
  {
1206
1623
  name: '',
1207
- type: 'uint256',
1208
- },
1209
- ],
1210
- },
1211
- {
1212
- stateMutability: 'nonpayable',
1213
- type: 'function',
1214
- name: 'addAssetOpportunity',
1215
- inputs: [
1216
- {
1217
- name: '_asset',
1218
1624
  type: 'address',
1219
1625
  },
1220
1626
  {
1221
- name: '_vaultAddr',
1222
- type: 'address',
1223
- },
1224
- ],
1225
- outputs: [],
1226
- },
1227
- {
1228
- stateMutability: 'nonpayable',
1229
- type: 'function',
1230
- name: 'removeAssetOpportunity',
1231
- inputs: [
1232
- {
1233
- name: '_asset',
1234
- type: 'address',
1627
+ name: '',
1628
+ type: 'string',
1235
1629
  },
1236
1630
  {
1237
- name: '_vaultAddr',
1238
- type: 'address',
1631
+ name: '',
1632
+ type: 'uint256',
1239
1633
  },
1240
1634
  ],
1241
- outputs: [],
1242
1635
  },
1243
1636
  {
1244
1637
  stateMutability: 'nonpayable',
@@ -2536,27 +2929,6 @@ export const abi = [
2536
2929
  },
2537
2930
  ],
2538
2931
  },
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 = '0x22D16D820c20492597caDb6e36db976Ca16c4156';
2992
+ export const deployAddress = '0x130aB5138f693dcd19AF078F3d74A08627EbCa0C';
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
- getAccessForLego: (...args) => getRequest('getAccessForLego', args),
2667
3044
  isYieldLego: (...args) => getRequest('isYieldLego', args),
2668
3045
  isDexLego: (...args) => getRequest('isDexLego', args),
2669
- isRebasing: (...args) => getRequest('isRebasing', args),
2670
- isEligibleVaultForTrialFunds: (...args) => getRequest('isEligibleVaultForTrialFunds', args),
2671
- isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
2672
- hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
2673
- isVaultToken: (...args) => getRequest('isVaultToken', args),
2674
3046
  getUnderlyingAsset: (...args) => getRequest('getUnderlyingAsset', args),
3047
+ getUnderlyingBalances: (...args) => getRequest('getUnderlyingBalances', args),
2675
3048
  getUnderlyingAmount: (...args) => getRequest('getUnderlyingAmount', args),
2676
- getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
2677
- getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
3049
+ getUnderlyingAmountSafe: (...args) => getRequest('getUnderlyingAmountSafe', args),
2678
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),
2679
3057
  totalAssets: (...args) => getRequest('totalAssets', args),
2680
3058
  totalBorrows: (...args) => getRequest('totalBorrows', args),
2681
- getPricePerShare: (...args) => getRequest('getPricePerShare', args),
2682
- getPrice: (...args) => getRequest('getPrice', args),
3059
+ canRegisterVaultToken: (...args) => getRequest('canRegisterVaultToken', args),
3060
+ hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
3061
+ getAccessForLego: (...args) => getRequest('getAccessForLego', args),
2683
3062
  eulerRewards: (...args) => getRequest('eulerRewards', args),
2684
3063
  EULER_EVAULT_FACTORY: (...args) => getRequest('EULER_EVAULT_FACTORY', args),
2685
3064
  EULER_EARN_FACTORY: (...args) => getRequest('EULER_EARN_FACTORY', 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
  setEulerRewardsAddr: getMutation('setEulerRewardsAddr'),
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
- getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
2741
3127
  isYieldLego: (...args) => singleQuery(publicClient, call.isYieldLego(...args)),
2742
3128
  isDexLego: (...args) => singleQuery(publicClient, call.isDexLego(...args)),
2743
- isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
2744
- isEligibleVaultForTrialFunds: (...args) => singleQuery(publicClient, call.isEligibleVaultForTrialFunds(...args)),
2745
- isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
2746
- hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
2747
- isVaultToken: (...args) => singleQuery(publicClient, call.isVaultToken(...args)),
2748
3129
  getUnderlyingAsset: (...args) => singleQuery(publicClient, call.getUnderlyingAsset(...args)),
3130
+ getUnderlyingBalances: (...args) => singleQuery(publicClient, call.getUnderlyingBalances(...args)),
2749
3131
  getUnderlyingAmount: (...args) => singleQuery(publicClient, call.getUnderlyingAmount(...args)),
2750
- getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
2751
- getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3132
+ getUnderlyingAmountSafe: (...args) => singleQuery(publicClient, call.getUnderlyingAmountSafe(...args)),
2752
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)),
2753
3140
  totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args)),
2754
3141
  totalBorrows: (...args) => singleQuery(publicClient, call.totalBorrows(...args)),
2755
- getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
2756
- getPrice: (...args) => singleQuery(publicClient, call.getPrice(...args)),
3142
+ canRegisterVaultToken: (...args) => singleQuery(publicClient, call.canRegisterVaultToken(...args)),
3143
+ hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
3144
+ getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
2757
3145
  eulerRewards: (...args) => singleQuery(publicClient, call.eulerRewards(...args)),
2758
3146
  EULER_EVAULT_FACTORY: (...args) => singleQuery(publicClient, call.EULER_EVAULT_FACTORY(...args)),
2759
3147
  EULER_EARN_FACTORY: (...args) => singleQuery(publicClient, call.EULER_EARN_FACTORY(...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
  setEulerRewardsAddr: (...args) => mutate(walletClient, mutation.setEulerRewardsAddr)(...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),