@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
@@ -23,7 +23,7 @@ export const abi = [
23
23
  indexed: false,
24
24
  },
25
25
  {
26
- name: 'vaultId',
26
+ name: 'vaultIdOrLock',
27
27
  type: 'uint256',
28
28
  indexed: false,
29
29
  },
@@ -292,6 +292,33 @@ export const abi = [
292
292
  anonymous: false,
293
293
  type: 'event',
294
294
  },
295
+ {
296
+ name: 'SnapShotPriceConfigSet',
297
+ inputs: [
298
+ {
299
+ name: 'minSnapshotDelay',
300
+ type: 'uint256',
301
+ indexed: false,
302
+ },
303
+ {
304
+ name: 'maxNumSnapshots',
305
+ type: 'uint256',
306
+ indexed: false,
307
+ },
308
+ {
309
+ name: 'maxUpsideDeviation',
310
+ type: 'uint256',
311
+ indexed: false,
312
+ },
313
+ {
314
+ name: 'staleTime',
315
+ type: 'uint256',
316
+ indexed: false,
317
+ },
318
+ ],
319
+ anonymous: false,
320
+ type: 'event',
321
+ },
295
322
  {
296
323
  name: 'AssetOpportunityAdded',
297
324
  inputs: [
@@ -309,6 +336,45 @@ export const abi = [
309
336
  anonymous: false,
310
337
  type: 'event',
311
338
  },
339
+ {
340
+ name: 'AssetOpportunityRemoved',
341
+ inputs: [
342
+ {
343
+ name: 'asset',
344
+ type: 'address',
345
+ indexed: true,
346
+ },
347
+ {
348
+ name: 'vaultAddr',
349
+ type: 'address',
350
+ indexed: true,
351
+ },
352
+ ],
353
+ anonymous: false,
354
+ type: 'event',
355
+ },
356
+ {
357
+ name: 'PricePerShareSnapShotAdded',
358
+ inputs: [
359
+ {
360
+ name: 'vaultToken',
361
+ type: 'address',
362
+ indexed: true,
363
+ },
364
+ {
365
+ name: 'totalSupply',
366
+ type: 'uint256',
367
+ indexed: false,
368
+ },
369
+ {
370
+ name: 'pricePerShare',
371
+ type: 'uint256',
372
+ indexed: false,
373
+ },
374
+ ],
375
+ anonymous: false,
376
+ type: 'event',
377
+ },
312
378
  {
313
379
  stateMutability: 'view',
314
380
  type: 'function',
@@ -363,6 +429,10 @@ export const abi = [
363
429
  name: 'billing',
364
430
  type: 'address',
365
431
  },
432
+ {
433
+ name: 'vaultRegistry',
434
+ type: 'address',
435
+ },
366
436
  ],
367
437
  },
368
438
  ],
@@ -505,40 +575,155 @@ export const abi = [
505
575
  {
506
576
  stateMutability: 'view',
507
577
  type: 'function',
508
- name: 'isPaused',
509
- inputs: [],
578
+ name: 'getWeightedPricePerShare',
579
+ inputs: [
580
+ {
581
+ name: '_vaultToken',
582
+ type: 'address',
583
+ },
584
+ ],
510
585
  outputs: [
511
586
  {
512
587
  name: '',
513
- type: 'bool',
588
+ type: 'uint256',
514
589
  },
515
590
  ],
516
591
  },
517
592
  {
518
593
  stateMutability: 'view',
519
594
  type: 'function',
520
- name: 'assetOpportunities',
595
+ name: 'getLatestSnapshot',
521
596
  inputs: [
522
597
  {
523
- name: 'arg0',
598
+ name: '_vaultToken',
524
599
  type: 'address',
525
600
  },
526
601
  {
527
- name: 'arg1',
602
+ name: '_pricePerShare',
528
603
  type: 'uint256',
529
604
  },
530
605
  ],
531
606
  outputs: [
532
607
  {
533
608
  name: '',
609
+ type: 'tuple',
610
+ components: [
611
+ {
612
+ name: 'totalSupply',
613
+ type: 'uint256',
614
+ },
615
+ {
616
+ name: 'pricePerShare',
617
+ type: 'uint256',
618
+ },
619
+ {
620
+ name: 'lastUpdate',
621
+ type: 'uint256',
622
+ },
623
+ ],
624
+ },
625
+ ],
626
+ },
627
+ {
628
+ stateMutability: 'nonpayable',
629
+ type: 'function',
630
+ name: 'setSnapShotPriceConfig',
631
+ inputs: [
632
+ {
633
+ name: '_config',
634
+ type: 'tuple',
635
+ components: [
636
+ {
637
+ name: 'minSnapshotDelay',
638
+ type: 'uint256',
639
+ },
640
+ {
641
+ name: 'maxNumSnapshots',
642
+ type: 'uint256',
643
+ },
644
+ {
645
+ name: 'maxUpsideDeviation',
646
+ type: 'uint256',
647
+ },
648
+ {
649
+ name: 'staleTime',
650
+ type: 'uint256',
651
+ },
652
+ ],
653
+ },
654
+ ],
655
+ outputs: [],
656
+ },
657
+ {
658
+ stateMutability: 'view',
659
+ type: 'function',
660
+ name: 'isValidPriceConfig',
661
+ inputs: [
662
+ {
663
+ name: '_config',
664
+ type: 'tuple',
665
+ components: [
666
+ {
667
+ name: 'minSnapshotDelay',
668
+ type: 'uint256',
669
+ },
670
+ {
671
+ name: 'maxNumSnapshots',
672
+ type: 'uint256',
673
+ },
674
+ {
675
+ name: 'maxUpsideDeviation',
676
+ type: 'uint256',
677
+ },
678
+ {
679
+ name: 'staleTime',
680
+ type: 'uint256',
681
+ },
682
+ ],
683
+ },
684
+ ],
685
+ outputs: [
686
+ {
687
+ name: '',
688
+ type: 'bool',
689
+ },
690
+ ],
691
+ },
692
+ {
693
+ stateMutability: 'view',
694
+ type: 'function',
695
+ name: 'vaultToAsset',
696
+ inputs: [
697
+ {
698
+ name: 'arg0',
534
699
  type: 'address',
535
700
  },
536
701
  ],
702
+ outputs: [
703
+ {
704
+ name: '',
705
+ type: 'tuple',
706
+ components: [
707
+ {
708
+ name: 'underlyingAsset',
709
+ type: 'address',
710
+ },
711
+ {
712
+ name: 'decimals',
713
+ type: 'uint256',
714
+ },
715
+ {
716
+ name: 'lastAveragePricePerShare',
717
+ type: 'uint256',
718
+ },
719
+ ],
720
+ },
721
+ ],
537
722
  },
538
723
  {
539
724
  stateMutability: 'view',
540
725
  type: 'function',
541
- name: 'indexOfAssetOpportunity',
726
+ name: 'assetOpportunities',
542
727
  inputs: [
543
728
  {
544
729
  name: 'arg0',
@@ -546,25 +731,29 @@ export const abi = [
546
731
  },
547
732
  {
548
733
  name: 'arg1',
549
- type: 'address',
734
+ type: 'uint256',
550
735
  },
551
736
  ],
552
737
  outputs: [
553
738
  {
554
739
  name: '',
555
- type: 'uint256',
740
+ type: 'address',
556
741
  },
557
742
  ],
558
743
  },
559
744
  {
560
745
  stateMutability: 'view',
561
746
  type: 'function',
562
- name: 'numAssetOpportunities',
747
+ name: 'indexOfAssetOpportunity',
563
748
  inputs: [
564
749
  {
565
750
  name: 'arg0',
566
751
  type: 'address',
567
752
  },
753
+ {
754
+ name: 'arg1',
755
+ type: 'address',
756
+ },
568
757
  ],
569
758
  outputs: [
570
759
  {
@@ -576,7 +765,7 @@ export const abi = [
576
765
  {
577
766
  stateMutability: 'view',
578
767
  type: 'function',
579
- name: 'vaultToAsset',
768
+ name: 'numAssetOpportunities',
580
769
  inputs: [
581
770
  {
582
771
  name: 'arg0',
@@ -586,7 +775,7 @@ export const abi = [
586
775
  outputs: [
587
776
  {
588
777
  name: '',
589
- type: 'address',
778
+ type: 'uint256',
590
779
  },
591
780
  ],
592
781
  },
@@ -639,41 +828,126 @@ export const abi = [
639
828
  {
640
829
  stateMutability: 'view',
641
830
  type: 'function',
642
- name: 'hasCapability',
831
+ name: 'snapShotData',
643
832
  inputs: [
644
833
  {
645
- name: '_action',
834
+ name: 'arg0',
835
+ type: 'address',
836
+ },
837
+ ],
838
+ outputs: [
839
+ {
840
+ name: '',
841
+ type: 'tuple',
842
+ components: [
843
+ {
844
+ name: 'lastSnapShot',
845
+ type: 'tuple',
846
+ components: [
847
+ {
848
+ name: 'totalSupply',
849
+ type: 'uint256',
850
+ },
851
+ {
852
+ name: 'pricePerShare',
853
+ type: 'uint256',
854
+ },
855
+ {
856
+ name: 'lastUpdate',
857
+ type: 'uint256',
858
+ },
859
+ ],
860
+ },
861
+ {
862
+ name: 'nextIndex',
863
+ type: 'uint256',
864
+ },
865
+ ],
866
+ },
867
+ ],
868
+ },
869
+ {
870
+ stateMutability: 'view',
871
+ type: 'function',
872
+ name: 'snapShots',
873
+ inputs: [
874
+ {
875
+ name: 'arg0',
876
+ type: 'address',
877
+ },
878
+ {
879
+ name: 'arg1',
646
880
  type: 'uint256',
647
881
  },
648
882
  ],
649
883
  outputs: [
650
884
  {
651
885
  name: '',
652
- type: 'bool',
886
+ type: 'tuple',
887
+ components: [
888
+ {
889
+ name: 'totalSupply',
890
+ type: 'uint256',
891
+ },
892
+ {
893
+ name: 'pricePerShare',
894
+ type: 'uint256',
895
+ },
896
+ {
897
+ name: 'lastUpdate',
898
+ type: 'uint256',
899
+ },
900
+ ],
653
901
  },
654
902
  ],
655
903
  },
656
904
  {
657
905
  stateMutability: 'view',
658
906
  type: 'function',
659
- name: 'getRegistries',
907
+ name: 'snapShotPriceConfig',
660
908
  inputs: [],
661
909
  outputs: [
662
910
  {
663
911
  name: '',
664
- type: 'address[]',
912
+ type: 'tuple',
913
+ components: [
914
+ {
915
+ name: 'minSnapshotDelay',
916
+ type: 'uint256',
917
+ },
918
+ {
919
+ name: 'maxNumSnapshots',
920
+ type: 'uint256',
921
+ },
922
+ {
923
+ name: 'maxUpsideDeviation',
924
+ type: 'uint256',
925
+ },
926
+ {
927
+ name: 'staleTime',
928
+ type: 'uint256',
929
+ },
930
+ ],
665
931
  },
666
932
  ],
667
933
  },
668
934
  {
669
935
  stateMutability: 'view',
670
936
  type: 'function',
671
- name: 'getAccessForLego',
672
- inputs: [
937
+ name: 'isPaused',
938
+ inputs: [],
939
+ outputs: [
673
940
  {
674
- name: '_user',
675
- type: 'address',
941
+ name: '',
942
+ type: 'bool',
676
943
  },
944
+ ],
945
+ },
946
+ {
947
+ stateMutability: 'view',
948
+ type: 'function',
949
+ name: 'hasCapability',
950
+ inputs: [
677
951
  {
678
952
  name: '_action',
679
953
  type: 'uint256',
@@ -682,15 +956,19 @@ export const abi = [
682
956
  outputs: [
683
957
  {
684
958
  name: '',
685
- type: 'address',
686
- },
687
- {
688
- name: '',
689
- type: 'string',
959
+ type: 'bool',
690
960
  },
961
+ ],
962
+ },
963
+ {
964
+ stateMutability: 'view',
965
+ type: 'function',
966
+ name: 'getRegistries',
967
+ inputs: [],
968
+ outputs: [
691
969
  {
692
970
  name: '',
693
- type: 'uint256',
971
+ type: 'address[]',
694
972
  },
695
973
  ],
696
974
  },
@@ -719,32 +997,83 @@ export const abi = [
719
997
  ],
720
998
  },
721
999
  {
722
- stateMutability: 'nonpayable',
1000
+ stateMutability: 'view',
723
1001
  type: 'function',
724
- name: 'addCollateral',
1002
+ name: 'getUnderlyingAsset',
725
1003
  inputs: [
726
1004
  {
727
- name: '_asset',
1005
+ name: '_vaultToken',
728
1006
  type: 'address',
729
1007
  },
1008
+ ],
1009
+ outputs: [
730
1010
  {
731
- name: '_amount',
1011
+ name: '',
1012
+ type: 'address',
1013
+ },
1014
+ ],
1015
+ },
1016
+ {
1017
+ stateMutability: 'view',
1018
+ type: 'function',
1019
+ name: 'getUnderlyingBalances',
1020
+ inputs: [
1021
+ {
1022
+ name: '_vaultToken',
1023
+ type: 'address',
1024
+ },
1025
+ {
1026
+ name: '_vaultTokenBalance',
732
1027
  type: 'uint256',
733
1028
  },
1029
+ ],
1030
+ outputs: [
734
1031
  {
735
- name: '_extraData',
736
- type: 'bytes32',
1032
+ name: '',
1033
+ type: 'uint256',
737
1034
  },
738
1035
  {
739
- name: '_recipient',
1036
+ name: '',
1037
+ type: 'uint256',
1038
+ },
1039
+ ],
1040
+ },
1041
+ {
1042
+ stateMutability: 'view',
1043
+ type: 'function',
1044
+ name: 'getUnderlyingAmount',
1045
+ inputs: [
1046
+ {
1047
+ name: '_vaultToken',
740
1048
  type: 'address',
741
1049
  },
1050
+ {
1051
+ name: '_vaultTokenAmount',
1052
+ type: 'uint256',
1053
+ },
742
1054
  ],
743
1055
  outputs: [
744
1056
  {
745
1057
  name: '',
746
1058
  type: 'uint256',
747
1059
  },
1060
+ ],
1061
+ },
1062
+ {
1063
+ stateMutability: 'view',
1064
+ type: 'function',
1065
+ name: 'getUnderlyingAmountSafe',
1066
+ inputs: [
1067
+ {
1068
+ name: '_vaultToken',
1069
+ type: 'address',
1070
+ },
1071
+ {
1072
+ name: '_vaultTokenBalance',
1073
+ type: 'uint256',
1074
+ },
1075
+ ],
1076
+ outputs: [
748
1077
  {
749
1078
  name: '',
750
1079
  type: 'uint256',
@@ -752,50 +1081,57 @@ export const abi = [
752
1081
  ],
753
1082
  },
754
1083
  {
755
- stateMutability: 'nonpayable',
1084
+ stateMutability: 'view',
756
1085
  type: 'function',
757
- name: 'addCollateral',
1086
+ name: 'getUnderlyingData',
758
1087
  inputs: [
759
1088
  {
760
- name: '_asset',
1089
+ name: '_vaultToken',
761
1090
  type: 'address',
762
1091
  },
763
1092
  {
764
- name: '_amount',
1093
+ name: '_vaultTokenAmount',
765
1094
  type: 'uint256',
766
1095
  },
1096
+ ],
1097
+ outputs: [
767
1098
  {
768
- name: '_extraData',
769
- type: 'bytes32',
1099
+ name: '',
1100
+ type: 'address',
770
1101
  },
771
1102
  {
772
- name: '_recipient',
1103
+ name: '',
1104
+ type: 'uint256',
1105
+ },
1106
+ {
1107
+ name: '',
1108
+ type: 'uint256',
1109
+ },
1110
+ ],
1111
+ },
1112
+ {
1113
+ stateMutability: 'view',
1114
+ type: 'function',
1115
+ name: 'getUnderlyingData',
1116
+ inputs: [
1117
+ {
1118
+ name: '_vaultToken',
773
1119
  type: 'address',
774
1120
  },
775
1121
  {
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
- ],
1122
+ name: '_vaultTokenAmount',
1123
+ type: 'uint256',
1124
+ },
1125
+ {
1126
+ name: '_appraiser',
1127
+ type: 'address',
796
1128
  },
797
1129
  ],
798
1130
  outputs: [
1131
+ {
1132
+ name: '',
1133
+ type: 'address',
1134
+ },
799
1135
  {
800
1136
  name: '',
801
1137
  type: 'uint256',
@@ -807,24 +1143,70 @@ export const abi = [
807
1143
  ],
808
1144
  },
809
1145
  {
810
- stateMutability: 'nonpayable',
1146
+ stateMutability: 'view',
811
1147
  type: 'function',
812
- name: 'removeCollateral',
1148
+ name: 'getUsdValueOfVaultToken',
813
1149
  inputs: [
814
1150
  {
815
- name: '_asset',
1151
+ name: '_vaultToken',
816
1152
  type: 'address',
817
1153
  },
818
1154
  {
819
- name: '_amount',
1155
+ name: '_vaultTokenAmount',
820
1156
  type: 'uint256',
821
1157
  },
1158
+ ],
1159
+ outputs: [
822
1160
  {
823
- name: '_extraData',
824
- type: 'bytes32',
1161
+ name: '',
1162
+ type: 'uint256',
825
1163
  },
1164
+ ],
1165
+ },
1166
+ {
1167
+ stateMutability: 'view',
1168
+ type: 'function',
1169
+ name: 'getUsdValueOfVaultToken',
1170
+ inputs: [
826
1171
  {
827
- name: '_recipient',
1172
+ name: '_vaultToken',
1173
+ type: 'address',
1174
+ },
1175
+ {
1176
+ name: '_vaultTokenAmount',
1177
+ type: 'uint256',
1178
+ },
1179
+ {
1180
+ name: '_appraiser',
1181
+ type: 'address',
1182
+ },
1183
+ ],
1184
+ outputs: [
1185
+ {
1186
+ name: '',
1187
+ type: 'uint256',
1188
+ },
1189
+ ],
1190
+ },
1191
+ {
1192
+ stateMutability: 'view',
1193
+ type: 'function',
1194
+ name: 'isRebasing',
1195
+ inputs: [],
1196
+ outputs: [
1197
+ {
1198
+ name: '',
1199
+ type: 'bool',
1200
+ },
1201
+ ],
1202
+ },
1203
+ {
1204
+ stateMutability: 'view',
1205
+ type: 'function',
1206
+ name: 'getPricePerShare',
1207
+ inputs: [
1208
+ {
1209
+ name: '_vaultToken',
828
1210
  type: 'address',
829
1211
  },
830
1212
  ],
@@ -833,6 +1215,23 @@ export const abi = [
833
1215
  name: '',
834
1216
  type: 'uint256',
835
1217
  },
1218
+ ],
1219
+ },
1220
+ {
1221
+ stateMutability: 'view',
1222
+ type: 'function',
1223
+ name: 'getPricePerShare',
1224
+ inputs: [
1225
+ {
1226
+ name: '_vaultToken',
1227
+ type: 'address',
1228
+ },
1229
+ {
1230
+ name: '_decimals',
1231
+ type: 'uint256',
1232
+ },
1233
+ ],
1234
+ outputs: [
836
1235
  {
837
1236
  name: '',
838
1237
  type: 'uint256',
@@ -840,73 +1239,208 @@ export const abi = [
840
1239
  ],
841
1240
  },
842
1241
  {
843
- stateMutability: 'nonpayable',
1242
+ stateMutability: 'view',
844
1243
  type: 'function',
845
- name: 'removeCollateral',
1244
+ name: 'getVaultTokenAmount',
846
1245
  inputs: [
847
1246
  {
848
1247
  name: '_asset',
849
1248
  type: 'address',
850
1249
  },
851
1250
  {
852
- name: '_amount',
1251
+ name: '_assetAmount',
853
1252
  type: 'uint256',
854
1253
  },
855
1254
  {
856
- name: '_extraData',
857
- type: 'bytes32',
1255
+ name: '_vaultToken',
1256
+ type: 'address',
858
1257
  },
1258
+ ],
1259
+ outputs: [
859
1260
  {
860
- name: '_recipient',
1261
+ name: '',
1262
+ type: 'uint256',
1263
+ },
1264
+ ],
1265
+ },
1266
+ {
1267
+ stateMutability: 'view',
1268
+ type: 'function',
1269
+ name: 'isEligibleVaultForTrialFunds',
1270
+ inputs: [
1271
+ {
1272
+ name: '_vaultToken',
861
1273
  type: 'address',
862
1274
  },
863
1275
  {
864
- name: '_miniAddys',
1276
+ name: '_underlyingAsset',
1277
+ type: 'address',
1278
+ },
1279
+ ],
1280
+ outputs: [
1281
+ {
1282
+ name: '',
1283
+ type: 'bool',
1284
+ },
1285
+ ],
1286
+ },
1287
+ {
1288
+ stateMutability: 'view',
1289
+ type: 'function',
1290
+ name: 'isEligibleForYieldBonus',
1291
+ inputs: [
1292
+ {
1293
+ name: '_asset',
1294
+ type: 'address',
1295
+ },
1296
+ ],
1297
+ outputs: [
1298
+ {
1299
+ name: '',
1300
+ type: 'bool',
1301
+ },
1302
+ ],
1303
+ },
1304
+ {
1305
+ stateMutability: 'view',
1306
+ type: 'function',
1307
+ name: 'totalAssets',
1308
+ inputs: [
1309
+ {
1310
+ name: '_vaultToken',
1311
+ type: 'address',
1312
+ },
1313
+ ],
1314
+ outputs: [
1315
+ {
1316
+ name: '',
1317
+ type: 'uint256',
1318
+ },
1319
+ ],
1320
+ },
1321
+ {
1322
+ stateMutability: 'view',
1323
+ type: 'function',
1324
+ name: 'totalBorrows',
1325
+ inputs: [
1326
+ {
1327
+ name: '_vaultToken',
1328
+ type: 'address',
1329
+ },
1330
+ ],
1331
+ outputs: [
1332
+ {
1333
+ name: '',
1334
+ type: 'uint256',
1335
+ },
1336
+ ],
1337
+ },
1338
+ {
1339
+ stateMutability: 'view',
1340
+ type: 'function',
1341
+ name: 'canRegisterVaultToken',
1342
+ inputs: [
1343
+ {
1344
+ name: '_asset',
1345
+ type: 'address',
1346
+ },
1347
+ {
1348
+ name: '_vaultToken',
1349
+ type: 'address',
1350
+ },
1351
+ ],
1352
+ outputs: [
1353
+ {
1354
+ name: '',
1355
+ type: 'bool',
1356
+ },
1357
+ ],
1358
+ },
1359
+ {
1360
+ stateMutability: 'nonpayable',
1361
+ type: 'function',
1362
+ name: 'registerVaultTokenLocally',
1363
+ inputs: [
1364
+ {
1365
+ name: '_asset',
1366
+ type: 'address',
1367
+ },
1368
+ {
1369
+ name: '_vaultAddr',
1370
+ type: 'address',
1371
+ },
1372
+ ],
1373
+ outputs: [
1374
+ {
1375
+ name: '',
865
1376
  type: 'tuple',
866
1377
  components: [
867
1378
  {
868
- name: 'ledger',
1379
+ name: 'underlyingAsset',
869
1380
  type: 'address',
870
1381
  },
871
1382
  {
872
- name: 'missionControl',
873
- type: 'address',
1383
+ name: 'decimals',
1384
+ type: 'uint256',
874
1385
  },
875
1386
  {
876
- name: 'legoBook',
877
- type: 'address',
878
- },
879
- {
880
- name: 'appraiser',
881
- type: 'address',
1387
+ name: 'lastAveragePricePerShare',
1388
+ type: 'uint256',
882
1389
  },
883
1390
  ],
884
1391
  },
885
1392
  ],
1393
+ },
1394
+ {
1395
+ stateMutability: 'nonpayable',
1396
+ type: 'function',
1397
+ name: 'deregisterVaultTokenLocally',
1398
+ inputs: [
1399
+ {
1400
+ name: '_asset',
1401
+ type: 'address',
1402
+ },
1403
+ {
1404
+ name: '_vaultAddr',
1405
+ type: 'address',
1406
+ },
1407
+ ],
1408
+ outputs: [],
1409
+ },
1410
+ {
1411
+ stateMutability: 'nonpayable',
1412
+ type: 'function',
1413
+ name: 'addPriceSnapshot',
1414
+ inputs: [
1415
+ {
1416
+ name: '_vaultToken',
1417
+ type: 'address',
1418
+ },
1419
+ ],
886
1420
  outputs: [
887
1421
  {
888
1422
  name: '',
889
- type: 'uint256',
890
- },
891
- {
892
- name: '',
893
- type: 'uint256',
1423
+ type: 'bool',
894
1424
  },
895
1425
  ],
896
1426
  },
897
1427
  {
898
1428
  stateMutability: 'nonpayable',
899
1429
  type: 'function',
900
- name: 'borrow',
1430
+ name: 'depositForYield',
901
1431
  inputs: [
902
1432
  {
903
- name: '_borrowAsset',
1433
+ name: '_asset',
904
1434
  type: 'address',
905
1435
  },
906
1436
  {
907
1437
  name: '_amount',
908
1438
  type: 'uint256',
909
1439
  },
1440
+ {
1441
+ name: '_vaultAddr',
1442
+ type: 'address',
1443
+ },
910
1444
  {
911
1445
  name: '_extraData',
912
1446
  type: 'bytes32',
@@ -917,6 +1451,14 @@ export const abi = [
917
1451
  },
918
1452
  ],
919
1453
  outputs: [
1454
+ {
1455
+ name: '',
1456
+ type: 'uint256',
1457
+ },
1458
+ {
1459
+ name: '',
1460
+ type: 'address',
1461
+ },
920
1462
  {
921
1463
  name: '',
922
1464
  type: 'uint256',
@@ -930,16 +1472,20 @@ export const abi = [
930
1472
  {
931
1473
  stateMutability: 'nonpayable',
932
1474
  type: 'function',
933
- name: 'borrow',
1475
+ name: 'depositForYield',
934
1476
  inputs: [
935
1477
  {
936
- name: '_borrowAsset',
1478
+ name: '_asset',
937
1479
  type: 'address',
938
1480
  },
939
1481
  {
940
1482
  name: '_amount',
941
1483
  type: 'uint256',
942
1484
  },
1485
+ {
1486
+ name: '_vaultAddr',
1487
+ type: 'address',
1488
+ },
943
1489
  {
944
1490
  name: '_extraData',
945
1491
  type: 'bytes32',
@@ -972,6 +1518,14 @@ export const abi = [
972
1518
  },
973
1519
  ],
974
1520
  outputs: [
1521
+ {
1522
+ name: '',
1523
+ type: 'uint256',
1524
+ },
1525
+ {
1526
+ name: '',
1527
+ type: 'address',
1528
+ },
975
1529
  {
976
1530
  name: '',
977
1531
  type: 'uint256',
@@ -985,14 +1539,14 @@ export const abi = [
985
1539
  {
986
1540
  stateMutability: 'nonpayable',
987
1541
  type: 'function',
988
- name: 'repayDebt',
1542
+ name: 'withdrawFromYield',
989
1543
  inputs: [
990
1544
  {
991
- name: '_paymentAsset',
1545
+ name: '_vaultToken',
992
1546
  type: 'address',
993
1547
  },
994
1548
  {
995
- name: '_paymentAmount',
1549
+ name: '_amount',
996
1550
  type: 'uint256',
997
1551
  },
998
1552
  {
@@ -1005,6 +1559,14 @@ export const abi = [
1005
1559
  },
1006
1560
  ],
1007
1561
  outputs: [
1562
+ {
1563
+ name: '',
1564
+ type: 'uint256',
1565
+ },
1566
+ {
1567
+ name: '',
1568
+ type: 'address',
1569
+ },
1008
1570
  {
1009
1571
  name: '',
1010
1572
  type: 'uint256',
@@ -1018,14 +1580,14 @@ export const abi = [
1018
1580
  {
1019
1581
  stateMutability: 'nonpayable',
1020
1582
  type: 'function',
1021
- name: 'repayDebt',
1583
+ name: 'withdrawFromYield',
1022
1584
  inputs: [
1023
1585
  {
1024
- name: '_paymentAsset',
1586
+ name: '_vaultToken',
1025
1587
  type: 'address',
1026
1588
  },
1027
1589
  {
1028
- name: '_paymentAmount',
1590
+ name: '_amount',
1029
1591
  type: 'uint256',
1030
1592
  },
1031
1593
  {
@@ -1060,6 +1622,14 @@ export const abi = [
1060
1622
  },
1061
1623
  ],
1062
1624
  outputs: [
1625
+ {
1626
+ name: '',
1627
+ type: 'uint256',
1628
+ },
1629
+ {
1630
+ name: '',
1631
+ type: 'address',
1632
+ },
1063
1633
  {
1064
1634
  name: '',
1065
1635
  type: 'uint256',
@@ -1073,24 +1643,24 @@ export const abi = [
1073
1643
  {
1074
1644
  stateMutability: 'nonpayable',
1075
1645
  type: 'function',
1076
- name: 'claimRewards',
1646
+ name: 'addCollateral',
1077
1647
  inputs: [
1078
1648
  {
1079
- name: '_user',
1080
- type: 'address',
1081
- },
1082
- {
1083
- name: '_rewardToken',
1649
+ name: '_asset',
1084
1650
  type: 'address',
1085
1651
  },
1086
1652
  {
1087
- name: '_rewardAmount',
1653
+ name: '_amount',
1088
1654
  type: 'uint256',
1089
1655
  },
1090
1656
  {
1091
1657
  name: '_extraData',
1092
1658
  type: 'bytes32',
1093
1659
  },
1660
+ {
1661
+ name: '_recipient',
1662
+ type: 'address',
1663
+ },
1094
1664
  ],
1095
1665
  outputs: [
1096
1666
  {
@@ -1106,24 +1676,24 @@ export const abi = [
1106
1676
  {
1107
1677
  stateMutability: 'nonpayable',
1108
1678
  type: 'function',
1109
- name: 'claimRewards',
1679
+ name: 'addCollateral',
1110
1680
  inputs: [
1111
1681
  {
1112
- name: '_user',
1113
- type: 'address',
1114
- },
1115
- {
1116
- name: '_rewardToken',
1682
+ name: '_asset',
1117
1683
  type: 'address',
1118
1684
  },
1119
1685
  {
1120
- name: '_rewardAmount',
1686
+ name: '_amount',
1121
1687
  type: 'uint256',
1122
1688
  },
1123
1689
  {
1124
1690
  name: '_extraData',
1125
1691
  type: 'bytes32',
1126
1692
  },
1693
+ {
1694
+ name: '_recipient',
1695
+ type: 'address',
1696
+ },
1127
1697
  {
1128
1698
  name: '_miniAddys',
1129
1699
  type: 'tuple',
@@ -1161,7 +1731,7 @@ export const abi = [
1161
1731
  {
1162
1732
  stateMutability: 'nonpayable',
1163
1733
  type: 'function',
1164
- name: 'depositForYield',
1734
+ name: 'removeCollateral',
1165
1735
  inputs: [
1166
1736
  {
1167
1737
  name: '_asset',
@@ -1171,10 +1741,6 @@ export const abi = [
1171
1741
  name: '_amount',
1172
1742
  type: 'uint256',
1173
1743
  },
1174
- {
1175
- name: '_vaultAddr',
1176
- type: 'address',
1177
- },
1178
1744
  {
1179
1745
  name: '_extraData',
1180
1746
  type: 'bytes32',
@@ -1185,14 +1751,6 @@ export const abi = [
1185
1751
  },
1186
1752
  ],
1187
1753
  outputs: [
1188
- {
1189
- name: '',
1190
- type: 'uint256',
1191
- },
1192
- {
1193
- name: '',
1194
- type: 'address',
1195
- },
1196
1754
  {
1197
1755
  name: '',
1198
1756
  type: 'uint256',
@@ -1206,7 +1764,7 @@ export const abi = [
1206
1764
  {
1207
1765
  stateMutability: 'nonpayable',
1208
1766
  type: 'function',
1209
- name: 'depositForYield',
1767
+ name: 'removeCollateral',
1210
1768
  inputs: [
1211
1769
  {
1212
1770
  name: '_asset',
@@ -1216,10 +1774,6 @@ export const abi = [
1216
1774
  name: '_amount',
1217
1775
  type: 'uint256',
1218
1776
  },
1219
- {
1220
- name: '_vaultAddr',
1221
- type: 'address',
1222
- },
1223
1777
  {
1224
1778
  name: '_extraData',
1225
1779
  type: 'bytes32',
@@ -1252,14 +1806,6 @@ export const abi = [
1252
1806
  },
1253
1807
  ],
1254
1808
  outputs: [
1255
- {
1256
- name: '',
1257
- type: 'uint256',
1258
- },
1259
- {
1260
- name: '',
1261
- type: 'address',
1262
- },
1263
1809
  {
1264
1810
  name: '',
1265
1811
  type: 'uint256',
@@ -1273,10 +1819,10 @@ export const abi = [
1273
1819
  {
1274
1820
  stateMutability: 'nonpayable',
1275
1821
  type: 'function',
1276
- name: 'withdrawFromYield',
1822
+ name: 'borrow',
1277
1823
  inputs: [
1278
1824
  {
1279
- name: '_vaultToken',
1825
+ name: '_borrowAsset',
1280
1826
  type: 'address',
1281
1827
  },
1282
1828
  {
@@ -1293,14 +1839,6 @@ export const abi = [
1293
1839
  },
1294
1840
  ],
1295
1841
  outputs: [
1296
- {
1297
- name: '',
1298
- type: 'uint256',
1299
- },
1300
- {
1301
- name: '',
1302
- type: 'address',
1303
- },
1304
1842
  {
1305
1843
  name: '',
1306
1844
  type: 'uint256',
@@ -1314,10 +1852,10 @@ export const abi = [
1314
1852
  {
1315
1853
  stateMutability: 'nonpayable',
1316
1854
  type: 'function',
1317
- name: 'withdrawFromYield',
1855
+ name: 'borrow',
1318
1856
  inputs: [
1319
1857
  {
1320
- name: '_vaultToken',
1858
+ name: '_borrowAsset',
1321
1859
  type: 'address',
1322
1860
  },
1323
1861
  {
@@ -1357,122 +1895,9 @@ export const abi = [
1357
1895
  ],
1358
1896
  outputs: [
1359
1897
  {
1360
- name: '',
1361
- type: 'uint256',
1362
- },
1363
- {
1364
- name: '',
1365
- type: 'address',
1366
- },
1367
- {
1368
- name: '',
1369
- type: 'uint256',
1370
- },
1371
- {
1372
- name: '',
1373
- type: 'uint256',
1374
- },
1375
- ],
1376
- },
1377
- {
1378
- stateMutability: 'view',
1379
- type: 'function',
1380
- name: 'isRebasing',
1381
- inputs: [],
1382
- outputs: [
1383
- {
1384
- name: '',
1385
- type: 'bool',
1386
- },
1387
- ],
1388
- },
1389
- {
1390
- stateMutability: 'view',
1391
- type: 'function',
1392
- name: 'isEligibleVaultForTrialFunds',
1393
- inputs: [
1394
- {
1395
- name: '_vaultToken',
1396
- type: 'address',
1397
- },
1398
- {
1399
- name: '_underlyingAsset',
1400
- type: 'address',
1401
- },
1402
- ],
1403
- outputs: [
1404
- {
1405
- name: '',
1406
- type: 'bool',
1407
- },
1408
- ],
1409
- },
1410
- {
1411
- stateMutability: 'view',
1412
- type: 'function',
1413
- name: 'isEligibleForYieldBonus',
1414
- inputs: [
1415
- {
1416
- name: '_asset',
1417
- type: 'address',
1418
- },
1419
- ],
1420
- outputs: [
1421
- {
1422
- name: '',
1423
- type: 'bool',
1424
- },
1425
- ],
1426
- },
1427
- {
1428
- stateMutability: 'view',
1429
- type: 'function',
1430
- name: 'isVaultToken',
1431
- inputs: [
1432
- {
1433
- name: '_vaultToken',
1434
- type: 'address',
1435
- },
1436
- ],
1437
- outputs: [
1438
- {
1439
- name: '',
1440
- type: 'bool',
1441
- },
1442
- ],
1443
- },
1444
- {
1445
- stateMutability: 'view',
1446
- type: 'function',
1447
- name: 'getUnderlyingAsset',
1448
- inputs: [
1449
- {
1450
- name: '_vaultToken',
1451
- type: 'address',
1452
- },
1453
- ],
1454
- outputs: [
1455
- {
1456
- name: '',
1457
- type: 'address',
1458
- },
1459
- ],
1460
- },
1461
- {
1462
- stateMutability: 'view',
1463
- type: 'function',
1464
- name: 'getUnderlyingAmount',
1465
- inputs: [
1466
- {
1467
- name: '_vaultToken',
1468
- type: 'address',
1469
- },
1470
- {
1471
- name: '_vaultTokenAmount',
1898
+ name: '',
1472
1899
  type: 'uint256',
1473
1900
  },
1474
- ],
1475
- outputs: [
1476
1901
  {
1477
1902
  name: '',
1478
1903
  type: 'uint256',
@@ -1480,20 +1905,24 @@ export const abi = [
1480
1905
  ],
1481
1906
  },
1482
1907
  {
1483
- stateMutability: 'view',
1908
+ stateMutability: 'nonpayable',
1484
1909
  type: 'function',
1485
- name: 'getVaultTokenAmount',
1910
+ name: 'repayDebt',
1486
1911
  inputs: [
1487
1912
  {
1488
- name: '_asset',
1913
+ name: '_paymentAsset',
1489
1914
  type: 'address',
1490
1915
  },
1491
1916
  {
1492
- name: '_assetAmount',
1917
+ name: '_paymentAmount',
1493
1918
  type: 'uint256',
1494
1919
  },
1495
1920
  {
1496
- name: '_vaultToken',
1921
+ name: '_extraData',
1922
+ type: 'bytes32',
1923
+ },
1924
+ {
1925
+ name: '_recipient',
1497
1926
  type: 'address',
1498
1927
  },
1499
1928
  ],
@@ -1502,23 +1931,6 @@ export const abi = [
1502
1931
  name: '',
1503
1932
  type: 'uint256',
1504
1933
  },
1505
- ],
1506
- },
1507
- {
1508
- stateMutability: 'view',
1509
- type: 'function',
1510
- name: 'getUsdValueOfVaultToken',
1511
- inputs: [
1512
- {
1513
- name: '_vaultToken',
1514
- type: 'address',
1515
- },
1516
- {
1517
- name: '_vaultTokenAmount',
1518
- type: 'uint256',
1519
- },
1520
- ],
1521
- outputs: [
1522
1934
  {
1523
1935
  name: '',
1524
1936
  type: 'uint256',
@@ -1526,49 +1938,50 @@ export const abi = [
1526
1938
  ],
1527
1939
  },
1528
1940
  {
1529
- stateMutability: 'view',
1941
+ stateMutability: 'nonpayable',
1530
1942
  type: 'function',
1531
- name: 'getUsdValueOfVaultToken',
1943
+ name: 'repayDebt',
1532
1944
  inputs: [
1533
1945
  {
1534
- name: '_vaultToken',
1946
+ name: '_paymentAsset',
1535
1947
  type: 'address',
1536
1948
  },
1537
1949
  {
1538
- name: '_vaultTokenAmount',
1950
+ name: '_paymentAmount',
1539
1951
  type: 'uint256',
1540
1952
  },
1541
1953
  {
1542
- name: '_appraiser',
1543
- type: 'address',
1544
- },
1545
- ],
1546
- outputs: [
1547
- {
1548
- name: '',
1549
- type: 'uint256',
1954
+ name: '_extraData',
1955
+ type: 'bytes32',
1550
1956
  },
1551
- ],
1552
- },
1553
- {
1554
- stateMutability: 'view',
1555
- type: 'function',
1556
- name: 'getUnderlyingData',
1557
- inputs: [
1558
1957
  {
1559
- name: '_vaultToken',
1958
+ name: '_recipient',
1560
1959
  type: 'address',
1561
1960
  },
1562
1961
  {
1563
- name: '_vaultTokenAmount',
1564
- type: 'uint256',
1962
+ name: '_miniAddys',
1963
+ type: 'tuple',
1964
+ components: [
1965
+ {
1966
+ name: 'ledger',
1967
+ type: 'address',
1968
+ },
1969
+ {
1970
+ name: 'missionControl',
1971
+ type: 'address',
1972
+ },
1973
+ {
1974
+ name: 'legoBook',
1975
+ type: 'address',
1976
+ },
1977
+ {
1978
+ name: 'appraiser',
1979
+ type: 'address',
1980
+ },
1981
+ ],
1565
1982
  },
1566
1983
  ],
1567
1984
  outputs: [
1568
- {
1569
- name: '',
1570
- type: 'address',
1571
- },
1572
1985
  {
1573
1986
  name: '',
1574
1987
  type: 'uint256',
@@ -1580,28 +1993,28 @@ export const abi = [
1580
1993
  ],
1581
1994
  },
1582
1995
  {
1583
- stateMutability: 'view',
1996
+ stateMutability: 'nonpayable',
1584
1997
  type: 'function',
1585
- name: 'getUnderlyingData',
1998
+ name: 'claimRewards',
1586
1999
  inputs: [
1587
2000
  {
1588
- name: '_vaultToken',
2001
+ name: '_user',
1589
2002
  type: 'address',
1590
2003
  },
1591
2004
  {
1592
- name: '_vaultTokenAmount',
2005
+ name: '_rewardToken',
2006
+ type: 'address',
2007
+ },
2008
+ {
2009
+ name: '_rewardAmount',
1593
2010
  type: 'uint256',
1594
2011
  },
1595
2012
  {
1596
- name: '_appraiser',
1597
- type: 'address',
2013
+ name: '_extraData',
2014
+ type: 'bytes32',
1598
2015
  },
1599
2016
  ],
1600
2017
  outputs: [
1601
- {
1602
- name: '',
1603
- type: 'address',
1604
- },
1605
2018
  {
1606
2019
  name: '',
1607
2020
  type: 'uint256',
@@ -1613,91 +2026,105 @@ export const abi = [
1613
2026
  ],
1614
2027
  },
1615
2028
  {
1616
- stateMutability: 'view',
2029
+ stateMutability: 'nonpayable',
1617
2030
  type: 'function',
1618
- name: 'totalAssets',
2031
+ name: 'claimRewards',
1619
2032
  inputs: [
1620
2033
  {
1621
- name: '_vaultToken',
2034
+ name: '_user',
2035
+ type: 'address',
2036
+ },
2037
+ {
2038
+ name: '_rewardToken',
1622
2039
  type: 'address',
1623
2040
  },
2041
+ {
2042
+ name: '_rewardAmount',
2043
+ type: 'uint256',
2044
+ },
2045
+ {
2046
+ name: '_extraData',
2047
+ type: 'bytes32',
2048
+ },
2049
+ {
2050
+ name: '_miniAddys',
2051
+ type: 'tuple',
2052
+ components: [
2053
+ {
2054
+ name: 'ledger',
2055
+ type: 'address',
2056
+ },
2057
+ {
2058
+ name: 'missionControl',
2059
+ type: 'address',
2060
+ },
2061
+ {
2062
+ name: 'legoBook',
2063
+ type: 'address',
2064
+ },
2065
+ {
2066
+ name: 'appraiser',
2067
+ type: 'address',
2068
+ },
2069
+ ],
2070
+ },
1624
2071
  ],
1625
2072
  outputs: [
1626
2073
  {
1627
2074
  name: '',
1628
2075
  type: 'uint256',
1629
2076
  },
2077
+ {
2078
+ name: '',
2079
+ type: 'uint256',
2080
+ },
1630
2081
  ],
1631
2082
  },
1632
2083
  {
1633
2084
  stateMutability: 'view',
1634
2085
  type: 'function',
1635
- name: 'totalBorrows',
2086
+ name: 'hasClaimableRewards',
1636
2087
  inputs: [
1637
2088
  {
1638
- name: '_vaultToken',
2089
+ name: '_user',
1639
2090
  type: 'address',
1640
2091
  },
1641
2092
  ],
1642
2093
  outputs: [
1643
2094
  {
1644
2095
  name: '',
1645
- type: 'uint256',
2096
+ type: 'bool',
1646
2097
  },
1647
2098
  ],
1648
2099
  },
1649
2100
  {
1650
2101
  stateMutability: 'view',
1651
2102
  type: 'function',
1652
- name: 'getPricePerShare',
2103
+ name: 'getAccessForLego',
1653
2104
  inputs: [
1654
2105
  {
1655
- name: '_asset',
2106
+ name: '_user',
1656
2107
  type: 'address',
1657
2108
  },
1658
2109
  {
1659
- name: '_decimals',
2110
+ name: '_action',
1660
2111
  type: 'uint256',
1661
2112
  },
1662
2113
  ],
1663
2114
  outputs: [
1664
2115
  {
1665
2116
  name: '',
1666
- type: 'uint256',
1667
- },
1668
- ],
1669
- },
1670
- {
1671
- stateMutability: 'nonpayable',
1672
- type: 'function',
1673
- name: 'addAssetOpportunity',
1674
- inputs: [
1675
- {
1676
- name: '_asset',
1677
- type: 'address',
1678
- },
1679
- {
1680
- name: '_vaultAddr',
1681
2117
  type: 'address',
1682
2118
  },
1683
- ],
1684
- outputs: [],
1685
- },
1686
- {
1687
- stateMutability: 'nonpayable',
1688
- type: 'function',
1689
- name: 'removeAssetOpportunity',
1690
- inputs: [
1691
2119
  {
1692
- name: '_asset',
1693
- type: 'address',
2120
+ name: '',
2121
+ type: 'string',
1694
2122
  },
1695
2123
  {
1696
- name: '_vaultAddr',
1697
- type: 'address',
2124
+ name: '',
2125
+ type: 'uint256',
1698
2126
  },
1699
2127
  ],
1700
- outputs: [],
1701
2128
  },
1702
2129
  {
1703
2130
  stateMutability: 'nonpayable',
@@ -2643,27 +3070,6 @@ export const abi = [
2643
3070
  },
2644
3071
  ],
2645
3072
  },
2646
- {
2647
- stateMutability: 'view',
2648
- type: 'function',
2649
- name: 'getPrice',
2650
- inputs: [
2651
- {
2652
- name: '_asset',
2653
- type: 'address',
2654
- },
2655
- {
2656
- name: '_decimals',
2657
- type: 'uint256',
2658
- },
2659
- ],
2660
- outputs: [
2661
- {
2662
- name: '',
2663
- type: 'uint256',
2664
- },
2665
- ],
2666
- },
2667
3073
  {
2668
3074
  stateMutability: 'view',
2669
3075
  type: 'function',
@@ -2728,7 +3134,7 @@ export const abi = [
2728
3134
  outputs: [],
2729
3135
  },
2730
3136
  ];
2731
- export const deployAddress = '0xC402449F5Dd3781d08cb357D9709505fDa8F3696';
3137
+ export const deployAddress = '0xAFb801435960932B563Ab1047b8eb0d9C77FFb9B';
2732
3138
  function getRequest(method, args, contractAddressOrOptions) {
2733
3139
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2734
3140
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
@@ -2764,32 +3170,40 @@ export const call = {
2764
3170
  getAssets: (...args) => getRequest('getAssets', args),
2765
3171
  isAssetOpportunity: (...args) => getRequest('isAssetOpportunity', args),
2766
3172
  getNumLegoAssets: (...args) => getRequest('getNumLegoAssets', args),
2767
- isPaused: (...args) => getRequest('isPaused', args),
3173
+ getWeightedPricePerShare: (...args) => getRequest('getWeightedPricePerShare', args),
3174
+ getLatestSnapshot: (...args) => getRequest('getLatestSnapshot', args),
3175
+ isValidPriceConfig: (...args) => getRequest('isValidPriceConfig', args),
3176
+ vaultToAsset: (...args) => getRequest('vaultToAsset', args),
2768
3177
  assetOpportunities: (...args) => getRequest('assetOpportunities', args),
2769
3178
  indexOfAssetOpportunity: (...args) => getRequest('indexOfAssetOpportunity', args),
2770
3179
  numAssetOpportunities: (...args) => getRequest('numAssetOpportunities', args),
2771
- vaultToAsset: (...args) => getRequest('vaultToAsset', args),
2772
3180
  assets: (...args) => getRequest('assets', args),
2773
3181
  indexOfAsset: (...args) => getRequest('indexOfAsset', args),
2774
3182
  numAssets: (...args) => getRequest('numAssets', args),
3183
+ snapShotData: (...args) => getRequest('snapShotData', args),
3184
+ snapShots: (...args) => getRequest('snapShots', args),
3185
+ snapShotPriceConfig: (...args) => getRequest('snapShotPriceConfig', args),
3186
+ isPaused: (...args) => getRequest('isPaused', args),
2775
3187
  hasCapability: (...args) => getRequest('hasCapability', args),
2776
3188
  getRegistries: (...args) => getRequest('getRegistries', args),
2777
- getAccessForLego: (...args) => getRequest('getAccessForLego', args),
2778
3189
  isYieldLego: (...args) => getRequest('isYieldLego', args),
2779
3190
  isDexLego: (...args) => getRequest('isDexLego', args),
2780
- isRebasing: (...args) => getRequest('isRebasing', args),
2781
- isEligibleVaultForTrialFunds: (...args) => getRequest('isEligibleVaultForTrialFunds', args),
2782
- isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
2783
- isVaultToken: (...args) => getRequest('isVaultToken', args),
2784
3191
  getUnderlyingAsset: (...args) => getRequest('getUnderlyingAsset', args),
3192
+ getUnderlyingBalances: (...args) => getRequest('getUnderlyingBalances', args),
2785
3193
  getUnderlyingAmount: (...args) => getRequest('getUnderlyingAmount', args),
2786
- getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
2787
- getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
3194
+ getUnderlyingAmountSafe: (...args) => getRequest('getUnderlyingAmountSafe', args),
2788
3195
  getUnderlyingData: (...args) => getRequest('getUnderlyingData', args),
3196
+ getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
3197
+ isRebasing: (...args) => getRequest('isRebasing', args),
3198
+ getPricePerShare: (...args) => getRequest('getPricePerShare', args),
3199
+ getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
3200
+ isEligibleVaultForTrialFunds: (...args) => getRequest('isEligibleVaultForTrialFunds', args),
3201
+ isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
2789
3202
  totalAssets: (...args) => getRequest('totalAssets', args),
2790
3203
  totalBorrows: (...args) => getRequest('totalBorrows', args),
2791
- getPricePerShare: (...args) => getRequest('getPricePerShare', args),
2792
- getPrice: (...args) => getRequest('getPrice', args),
3204
+ canRegisterVaultToken: (...args) => getRequest('canRegisterVaultToken', args),
3205
+ hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
3206
+ getAccessForLego: (...args) => getRequest('getAccessForLego', args),
2793
3207
  RIPE_REGISTRY: (...args) => getRequest('RIPE_REGISTRY', args),
2794
3208
  RIPE_GREEN_TOKEN: (...args) => getRequest('RIPE_GREEN_TOKEN', args),
2795
3209
  RIPE_SAVINGS_GREEN: (...args) => getRequest('RIPE_SAVINGS_GREEN', args),
@@ -2808,15 +3222,17 @@ export const mutation = {
2808
3222
  pause: getMutation('pause'),
2809
3223
  recoverFunds: getMutation('recoverFunds'),
2810
3224
  recoverFundsMany: getMutation('recoverFundsMany'),
3225
+ setSnapShotPriceConfig: getMutation('setSnapShotPriceConfig'),
3226
+ registerVaultTokenLocally: getMutation('registerVaultTokenLocally'),
3227
+ deregisterVaultTokenLocally: getMutation('deregisterVaultTokenLocally'),
3228
+ addPriceSnapshot: getMutation('addPriceSnapshot'),
3229
+ depositForYield: getMutation('depositForYield'),
3230
+ withdrawFromYield: getMutation('withdrawFromYield'),
2811
3231
  addCollateral: getMutation('addCollateral'),
2812
3232
  removeCollateral: getMutation('removeCollateral'),
2813
3233
  borrow: getMutation('borrow'),
2814
3234
  repayDebt: getMutation('repayDebt'),
2815
3235
  claimRewards: getMutation('claimRewards'),
2816
- depositForYield: getMutation('depositForYield'),
2817
- withdrawFromYield: getMutation('withdrawFromYield'),
2818
- addAssetOpportunity: getMutation('addAssetOpportunity'),
2819
- removeAssetOpportunity: getMutation('removeAssetOpportunity'),
2820
3236
  swapTokens: getMutation('swapTokens'),
2821
3237
  mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
2822
3238
  confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
@@ -2837,32 +3253,40 @@ export function toSdk(publicClient, walletClient) {
2837
3253
  getAssets: (...args) => singleQuery(publicClient, call.getAssets(...args)),
2838
3254
  isAssetOpportunity: (...args) => singleQuery(publicClient, call.isAssetOpportunity(...args)),
2839
3255
  getNumLegoAssets: (...args) => singleQuery(publicClient, call.getNumLegoAssets(...args)),
2840
- isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
3256
+ getWeightedPricePerShare: (...args) => singleQuery(publicClient, call.getWeightedPricePerShare(...args)),
3257
+ getLatestSnapshot: (...args) => singleQuery(publicClient, call.getLatestSnapshot(...args)),
3258
+ isValidPriceConfig: (...args) => singleQuery(publicClient, call.isValidPriceConfig(...args)),
3259
+ vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
2841
3260
  assetOpportunities: (...args) => singleQuery(publicClient, call.assetOpportunities(...args)),
2842
3261
  indexOfAssetOpportunity: (...args) => singleQuery(publicClient, call.indexOfAssetOpportunity(...args)),
2843
3262
  numAssetOpportunities: (...args) => singleQuery(publicClient, call.numAssetOpportunities(...args)),
2844
- vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
2845
3263
  assets: (...args) => singleQuery(publicClient, call.assets(...args)),
2846
3264
  indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
2847
3265
  numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args)),
3266
+ snapShotData: (...args) => singleQuery(publicClient, call.snapShotData(...args)),
3267
+ snapShots: (...args) => singleQuery(publicClient, call.snapShots(...args)),
3268
+ snapShotPriceConfig: (...args) => singleQuery(publicClient, call.snapShotPriceConfig(...args)),
3269
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
2848
3270
  hasCapability: (...args) => singleQuery(publicClient, call.hasCapability(...args)),
2849
3271
  getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args)),
2850
- getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
2851
3272
  isYieldLego: (...args) => singleQuery(publicClient, call.isYieldLego(...args)),
2852
3273
  isDexLego: (...args) => singleQuery(publicClient, call.isDexLego(...args)),
2853
- isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
2854
- isEligibleVaultForTrialFunds: (...args) => singleQuery(publicClient, call.isEligibleVaultForTrialFunds(...args)),
2855
- isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
2856
- isVaultToken: (...args) => singleQuery(publicClient, call.isVaultToken(...args)),
2857
3274
  getUnderlyingAsset: (...args) => singleQuery(publicClient, call.getUnderlyingAsset(...args)),
3275
+ getUnderlyingBalances: (...args) => singleQuery(publicClient, call.getUnderlyingBalances(...args)),
2858
3276
  getUnderlyingAmount: (...args) => singleQuery(publicClient, call.getUnderlyingAmount(...args)),
2859
- getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
2860
- getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3277
+ getUnderlyingAmountSafe: (...args) => singleQuery(publicClient, call.getUnderlyingAmountSafe(...args)),
2861
3278
  getUnderlyingData: (...args) => singleQuery(publicClient, call.getUnderlyingData(...args)),
3279
+ getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3280
+ isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
3281
+ getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
3282
+ getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
3283
+ isEligibleVaultForTrialFunds: (...args) => singleQuery(publicClient, call.isEligibleVaultForTrialFunds(...args)),
3284
+ isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
2862
3285
  totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args)),
2863
3286
  totalBorrows: (...args) => singleQuery(publicClient, call.totalBorrows(...args)),
2864
- getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
2865
- getPrice: (...args) => singleQuery(publicClient, call.getPrice(...args)),
3287
+ canRegisterVaultToken: (...args) => singleQuery(publicClient, call.canRegisterVaultToken(...args)),
3288
+ hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
3289
+ getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
2866
3290
  RIPE_REGISTRY: (...args) => singleQuery(publicClient, call.RIPE_REGISTRY(...args)),
2867
3291
  RIPE_GREEN_TOKEN: (...args) => singleQuery(publicClient, call.RIPE_GREEN_TOKEN(...args)),
2868
3292
  RIPE_SAVINGS_GREEN: (...args) => singleQuery(publicClient, call.RIPE_SAVINGS_GREEN(...args)),
@@ -2871,15 +3295,17 @@ export function toSdk(publicClient, walletClient) {
2871
3295
  pause: (...args) => mutate(walletClient, mutation.pause)(...args),
2872
3296
  recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
2873
3297
  recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
3298
+ setSnapShotPriceConfig: (...args) => mutate(walletClient, mutation.setSnapShotPriceConfig)(...args),
3299
+ registerVaultTokenLocally: (...args) => mutate(walletClient, mutation.registerVaultTokenLocally)(...args),
3300
+ deregisterVaultTokenLocally: (...args) => mutate(walletClient, mutation.deregisterVaultTokenLocally)(...args),
3301
+ addPriceSnapshot: (...args) => mutate(walletClient, mutation.addPriceSnapshot)(...args),
3302
+ depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
3303
+ withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
2874
3304
  addCollateral: (...args) => mutate(walletClient, mutation.addCollateral)(...args),
2875
3305
  removeCollateral: (...args) => mutate(walletClient, mutation.removeCollateral)(...args),
2876
3306
  borrow: (...args) => mutate(walletClient, mutation.borrow)(...args),
2877
3307
  repayDebt: (...args) => mutate(walletClient, mutation.repayDebt)(...args),
2878
3308
  claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
2879
- depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
2880
- withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
2881
- addAssetOpportunity: (...args) => mutate(walletClient, mutation.addAssetOpportunity)(...args),
2882
- removeAssetOpportunity: (...args) => mutate(walletClient, mutation.removeAssetOpportunity)(...args),
2883
3309
  swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
2884
3310
  mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset)(...args),
2885
3311
  confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset)(...args),