@underscore-finance/sdk 1.0.12 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (307) hide show
  1. package/dist/contracts/AaveV3.d.ts +603 -279
  2. package/dist/contracts/AaveV3.d.ts.map +1 -1
  3. package/dist/contracts/AaveV3.js +718 -331
  4. package/dist/contracts/AeroClassic.d.ts +4 -17
  5. package/dist/contracts/AeroClassic.d.ts.map +1 -1
  6. package/dist/contracts/AeroClassic.js +5 -24
  7. package/dist/contracts/AeroSlipstream.d.ts +4 -17
  8. package/dist/contracts/AeroSlipstream.d.ts.map +1 -1
  9. package/dist/contracts/AeroSlipstream.js +5 -24
  10. package/dist/contracts/Appraiser.d.ts +4 -0
  11. package/dist/contracts/Appraiser.d.ts.map +1 -1
  12. package/dist/contracts/Appraiser.js +5 -1
  13. package/dist/contracts/CompoundV3.d.ts +556 -246
  14. package/dist/contracts/CompoundV3.d.ts.map +1 -1
  15. package/dist/contracts/CompoundV3.js +695 -327
  16. package/dist/contracts/Curve.d.ts +4 -17
  17. package/dist/contracts/Curve.d.ts.map +1 -1
  18. package/dist/contracts/Curve.js +5 -24
  19. package/dist/contracts/Euler.d.ts +581 -253
  20. package/dist/contracts/Euler.d.ts.map +1 -1
  21. package/dist/contracts/Euler.js +714 -324
  22. package/dist/contracts/Fluid.d.ts +644 -302
  23. package/dist/contracts/Fluid.d.ts.map +1 -1
  24. package/dist/contracts/Fluid.js +743 -334
  25. package/dist/contracts/{Agent_v1.d.ts → FortyAcres.d.ts} +1516 -1699
  26. package/dist/contracts/FortyAcres.d.ts.map +1 -0
  27. package/dist/contracts/{AgentTemplate.js → FortyAcres.js} +1681 -1946
  28. package/dist/contracts/LegoBook.d.ts +7 -0
  29. package/dist/contracts/LegoBook.d.ts.map +1 -1
  30. package/dist/contracts/LegoBook.js +9 -1
  31. package/dist/contracts/LegoTools.d.ts +4 -0
  32. package/dist/contracts/LegoTools.d.ts.map +1 -1
  33. package/dist/contracts/LegoTools.js +5 -1
  34. package/dist/contracts/Moonwell.d.ts +582 -254
  35. package/dist/contracts/Moonwell.d.ts.map +1 -1
  36. package/dist/contracts/Moonwell.js +705 -315
  37. package/dist/contracts/Morpho.d.ts +580 -252
  38. package/dist/contracts/Morpho.d.ts.map +1 -1
  39. package/dist/contracts/Morpho.js +723 -333
  40. package/dist/contracts/RipeLego.d.ts +719 -363
  41. package/dist/contracts/RipeLego.d.ts.map +1 -1
  42. package/dist/contracts/RipeLego.js +839 -413
  43. package/dist/contracts/SignatureHelperV1.d.ts +229 -229
  44. package/dist/contracts/SignatureHelperV1.js +333 -333
  45. package/dist/contracts/SwitchboardCharlie.d.ts +1470 -0
  46. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -0
  47. package/dist/contracts/{v0_3_OracleRegistry.js → SwitchboardCharlie.js} +954 -691
  48. package/dist/contracts/{v0_1_Agent.d.ts → UnderscoreLego.d.ts} +1469 -1663
  49. package/dist/contracts/UnderscoreLego.d.ts.map +1 -0
  50. package/dist/contracts/{Agent_v1.js → UnderscoreLego.js} +1601 -1882
  51. package/dist/contracts/UndyBtc.d.ts +1487 -0
  52. package/dist/contracts/UndyBtc.d.ts.map +1 -0
  53. package/dist/contracts/{LegoUniswapV3.js → UndyBtc.js} +991 -754
  54. package/dist/contracts/UndyEth.d.ts +1487 -0
  55. package/dist/contracts/UndyEth.d.ts.map +1 -0
  56. package/dist/contracts/{v0_3_LegoUniswapV3.js → UndyEth.js} +991 -754
  57. package/dist/contracts/UndyRewardsLego.d.ts +3 -0
  58. package/dist/contracts/UndyRewardsLego.d.ts.map +1 -1
  59. package/dist/contracts/UndyRewardsLego.js +5 -1
  60. package/dist/contracts/UndyUsd.d.ts +1487 -0
  61. package/dist/contracts/UndyUsd.d.ts.map +1 -0
  62. package/dist/contracts/{LegoAeroSlipstream.js → UndyUsd.js} +1009 -725
  63. package/dist/contracts/UniswapV2.d.ts +4 -17
  64. package/dist/contracts/UniswapV2.d.ts.map +1 -1
  65. package/dist/contracts/UniswapV2.js +5 -24
  66. package/dist/contracts/UniswapV3.d.ts +4 -17
  67. package/dist/contracts/UniswapV3.d.ts.map +1 -1
  68. package/dist/contracts/UniswapV3.js +5 -24
  69. package/dist/contracts/VaultRegistry.d.ts +2265 -0
  70. package/dist/contracts/VaultRegistry.d.ts.map +1 -0
  71. package/dist/contracts/VaultRegistry.js +2848 -0
  72. package/dist/contracts/index.d.ts +7 -0
  73. package/dist/contracts/index.d.ts.map +1 -1
  74. package/dist/contracts/index.js +7 -0
  75. package/dist/contracts/sdk.d.ts +14 -0
  76. package/dist/contracts/sdk.d.ts.map +1 -1
  77. package/dist/contracts/sdk.js +14 -0
  78. package/package.json +1 -1
  79. package/dist/contracts/AddyRegistry.d.ts +0 -1109
  80. package/dist/contracts/AddyRegistry.d.ts.map +0 -1
  81. package/dist/contracts/AddyRegistry.js +0 -1392
  82. package/dist/contracts/AddyRegistry_v1.d.ts +0 -473
  83. package/dist/contracts/AddyRegistry_v1.d.ts.map +0 -1
  84. package/dist/contracts/AddyRegistry_v1.js +0 -594
  85. package/dist/contracts/AddyRegistry_v2.d.ts +0 -1050
  86. package/dist/contracts/AddyRegistry_v2.d.ts.map +0 -1
  87. package/dist/contracts/AddyRegistry_v2.js +0 -1313
  88. package/dist/contracts/AgentFactory.d.ts +0 -1665
  89. package/dist/contracts/AgentFactory.d.ts.map +0 -1
  90. package/dist/contracts/AgentFactory.js +0 -2078
  91. package/dist/contracts/AgentFactory_v1.d.ts +0 -1054
  92. package/dist/contracts/AgentFactory_v1.d.ts.map +0 -1
  93. package/dist/contracts/AgentFactory_v1.js +0 -1336
  94. package/dist/contracts/AgentFactory_v2.d.ts +0 -1275
  95. package/dist/contracts/AgentFactory_v2.d.ts.map +0 -1
  96. package/dist/contracts/AgentFactory_v2.js +0 -1609
  97. package/dist/contracts/AgentTemplate.d.ts +0 -2629
  98. package/dist/contracts/AgentTemplate.d.ts.map +0 -1
  99. package/dist/contracts/Agent_v1.d.ts.map +0 -1
  100. package/dist/contracts/Agent_v2.d.ts +0 -2709
  101. package/dist/contracts/Agent_v2.d.ts.map +0 -1
  102. package/dist/contracts/Agent_v2.js +0 -3458
  103. package/dist/contracts/ChainlinkFeeds.d.ts +0 -706
  104. package/dist/contracts/ChainlinkFeeds.d.ts.map +0 -1
  105. package/dist/contracts/ChainlinkFeeds.js +0 -900
  106. package/dist/contracts/LegoAaveV3.d.ts +0 -1033
  107. package/dist/contracts/LegoAaveV3.d.ts.map +0 -1
  108. package/dist/contracts/LegoAaveV3.js +0 -1330
  109. package/dist/contracts/LegoAeroClassic.d.ts +0 -1204
  110. package/dist/contracts/LegoAeroClassic.d.ts.map +0 -1
  111. package/dist/contracts/LegoAeroClassic.js +0 -1546
  112. package/dist/contracts/LegoAeroSlipstream.d.ts +0 -1300
  113. package/dist/contracts/LegoAeroSlipstream.d.ts.map +0 -1
  114. package/dist/contracts/LegoCommon.d.ts +0 -164
  115. package/dist/contracts/LegoCommon.d.ts.map +0 -1
  116. package/dist/contracts/LegoCommon.js +0 -202
  117. package/dist/contracts/LegoCompoundV3.d.ts +0 -1060
  118. package/dist/contracts/LegoCompoundV3.d.ts.map +0 -1
  119. package/dist/contracts/LegoCompoundV3.js +0 -1365
  120. package/dist/contracts/LegoCredit.d.ts +0 -140
  121. package/dist/contracts/LegoCredit.d.ts.map +0 -1
  122. package/dist/contracts/LegoCredit.js +0 -179
  123. package/dist/contracts/LegoCurve.d.ts +0 -1189
  124. package/dist/contracts/LegoCurve.d.ts.map +0 -1
  125. package/dist/contracts/LegoCurve.js +0 -1519
  126. package/dist/contracts/LegoDex.d.ts +0 -587
  127. package/dist/contracts/LegoDex.d.ts.map +0 -1
  128. package/dist/contracts/LegoDex.js +0 -774
  129. package/dist/contracts/LegoEuler.d.ts +0 -1074
  130. package/dist/contracts/LegoEuler.d.ts.map +0 -1
  131. package/dist/contracts/LegoEuler.js +0 -1383
  132. package/dist/contracts/LegoFluid.d.ts +0 -1025
  133. package/dist/contracts/LegoFluid.d.ts.map +0 -1
  134. package/dist/contracts/LegoFluid.js +0 -1320
  135. package/dist/contracts/LegoHelper.d.ts +0 -1563
  136. package/dist/contracts/LegoHelper.d.ts.map +0 -1
  137. package/dist/contracts/LegoHelper.js +0 -1947
  138. package/dist/contracts/LegoMoonwell.d.ts +0 -1042
  139. package/dist/contracts/LegoMoonwell.d.ts.map +0 -1
  140. package/dist/contracts/LegoMoonwell.js +0 -1342
  141. package/dist/contracts/LegoMorpho.d.ts +0 -1074
  142. package/dist/contracts/LegoMorpho.d.ts.map +0 -1
  143. package/dist/contracts/LegoMorpho.js +0 -1383
  144. package/dist/contracts/LegoRegistry.d.ts +0 -1079
  145. package/dist/contracts/LegoRegistry.d.ts.map +0 -1
  146. package/dist/contracts/LegoRegistry.js +0 -1368
  147. package/dist/contracts/LegoSky.d.ts +0 -923
  148. package/dist/contracts/LegoSky.d.ts.map +0 -1
  149. package/dist/contracts/LegoSky.js +0 -1180
  150. package/dist/contracts/LegoUniswapV0_2.d.ts +0 -1204
  151. package/dist/contracts/LegoUniswapV0_2.d.ts.map +0 -1
  152. package/dist/contracts/LegoUniswapV0_2.js +0 -1546
  153. package/dist/contracts/LegoUniswapV2.d.ts +0 -1204
  154. package/dist/contracts/LegoUniswapV2.d.ts.map +0 -1
  155. package/dist/contracts/LegoUniswapV2.js +0 -1546
  156. package/dist/contracts/LegoUniswapV3.d.ts +0 -1338
  157. package/dist/contracts/LegoUniswapV3.d.ts.map +0 -1
  158. package/dist/contracts/LegoYield.d.ts +0 -390
  159. package/dist/contracts/LegoYield.d.ts.map +0 -1
  160. package/dist/contracts/LegoYield.js +0 -511
  161. package/dist/contracts/OracleParser.d.ts +0 -207
  162. package/dist/contracts/OracleParser.d.ts.map +0 -1
  163. package/dist/contracts/OracleParser.js +0 -264
  164. package/dist/contracts/OracleRegistry.d.ts +0 -1221
  165. package/dist/contracts/OracleRegistry.d.ts.map +0 -1
  166. package/dist/contracts/OracleRegistry.js +0 -1562
  167. package/dist/contracts/PriceSheets.d.ts +0 -1127
  168. package/dist/contracts/PriceSheets.d.ts.map +0 -1
  169. package/dist/contracts/PriceSheets.js +0 -1383
  170. package/dist/contracts/PythFeeds.d.ts +0 -640
  171. package/dist/contracts/PythFeeds.d.ts.map +0 -1
  172. package/dist/contracts/PythFeeds.js +0 -813
  173. package/dist/contracts/StorkFeeds.d.ts +0 -640
  174. package/dist/contracts/StorkFeeds.d.ts.map +0 -1
  175. package/dist/contracts/StorkFeeds.js +0 -813
  176. package/dist/contracts/UserWalletConfig_v1.d.ts +0 -1400
  177. package/dist/contracts/UserWalletConfig_v1.d.ts.map +0 -1
  178. package/dist/contracts/UserWalletConfig_v1.js +0 -1676
  179. package/dist/contracts/UserWalletConfig_v2.d.ts +0 -1468
  180. package/dist/contracts/UserWalletConfig_v2.d.ts.map +0 -1
  181. package/dist/contracts/UserWalletConfig_v2.js +0 -1764
  182. package/dist/contracts/UserWallet_v1.d.ts +0 -1980
  183. package/dist/contracts/UserWallet_v1.d.ts.map +0 -1
  184. package/dist/contracts/UserWallet_v1.js +0 -2581
  185. package/dist/contracts/UserWallet_v2.d.ts +0 -1958
  186. package/dist/contracts/UserWallet_v2.d.ts.map +0 -1
  187. package/dist/contracts/UserWallet_v2.js +0 -2553
  188. package/dist/contracts/WalletConfig.d.ts +0 -1398
  189. package/dist/contracts/WalletConfig.d.ts.map +0 -1
  190. package/dist/contracts/WalletConfig.js +0 -1674
  191. package/dist/contracts/WalletFunds.d.ts +0 -1978
  192. package/dist/contracts/WalletFunds.d.ts.map +0 -1
  193. package/dist/contracts/WalletFunds.js +0 -2579
  194. package/dist/contracts/v0_1_AddyRegistry.d.ts +0 -473
  195. package/dist/contracts/v0_1_AddyRegistry.d.ts.map +0 -1
  196. package/dist/contracts/v0_1_AddyRegistry.js +0 -594
  197. package/dist/contracts/v0_1_Agent.d.ts.map +0 -1
  198. package/dist/contracts/v0_1_Agent.js +0 -3372
  199. package/dist/contracts/v0_1_AgentFactory.d.ts +0 -1054
  200. package/dist/contracts/v0_1_AgentFactory.d.ts.map +0 -1
  201. package/dist/contracts/v0_1_AgentFactory.js +0 -1336
  202. package/dist/contracts/v0_1_UserWallet.d.ts +0 -1980
  203. package/dist/contracts/v0_1_UserWallet.d.ts.map +0 -1
  204. package/dist/contracts/v0_1_UserWallet.js +0 -2581
  205. package/dist/contracts/v0_1_UserWalletConfig.d.ts +0 -1400
  206. package/dist/contracts/v0_1_UserWalletConfig.d.ts.map +0 -1
  207. package/dist/contracts/v0_1_UserWalletConfig.js +0 -1676
  208. package/dist/contracts/v0_2_AddyRegistry.d.ts +0 -1050
  209. package/dist/contracts/v0_2_AddyRegistry.d.ts.map +0 -1
  210. package/dist/contracts/v0_2_AddyRegistry.js +0 -1313
  211. package/dist/contracts/v0_2_Agent.d.ts +0 -2709
  212. package/dist/contracts/v0_2_Agent.d.ts.map +0 -1
  213. package/dist/contracts/v0_2_Agent.js +0 -3458
  214. package/dist/contracts/v0_2_AgentFactory.d.ts +0 -1275
  215. package/dist/contracts/v0_2_AgentFactory.d.ts.map +0 -1
  216. package/dist/contracts/v0_2_AgentFactory.js +0 -1609
  217. package/dist/contracts/v0_2_UserWallet.d.ts +0 -1958
  218. package/dist/contracts/v0_2_UserWallet.d.ts.map +0 -1
  219. package/dist/contracts/v0_2_UserWallet.js +0 -2553
  220. package/dist/contracts/v0_2_UserWalletConfig.d.ts +0 -1468
  221. package/dist/contracts/v0_2_UserWalletConfig.d.ts.map +0 -1
  222. package/dist/contracts/v0_2_UserWalletConfig.js +0 -1764
  223. package/dist/contracts/v0_3_AddyRegistry.d.ts +0 -1109
  224. package/dist/contracts/v0_3_AddyRegistry.d.ts.map +0 -1
  225. package/dist/contracts/v0_3_AddyRegistry.js +0 -1392
  226. package/dist/contracts/v0_3_Agent.d.ts +0 -2709
  227. package/dist/contracts/v0_3_Agent.d.ts.map +0 -1
  228. package/dist/contracts/v0_3_Agent.js +0 -3458
  229. package/dist/contracts/v0_3_AgentFactory.d.ts +0 -1665
  230. package/dist/contracts/v0_3_AgentFactory.d.ts.map +0 -1
  231. package/dist/contracts/v0_3_AgentFactory.js +0 -2078
  232. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts +0 -706
  233. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts.map +0 -1
  234. package/dist/contracts/v0_3_ChainlinkFeeds.js +0 -900
  235. package/dist/contracts/v0_3_LegoAaveV3.d.ts +0 -1033
  236. package/dist/contracts/v0_3_LegoAaveV3.d.ts.map +0 -1
  237. package/dist/contracts/v0_3_LegoAaveV3.js +0 -1330
  238. package/dist/contracts/v0_3_LegoAeroClassic.d.ts +0 -1204
  239. package/dist/contracts/v0_3_LegoAeroClassic.d.ts.map +0 -1
  240. package/dist/contracts/v0_3_LegoAeroClassic.js +0 -1546
  241. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts +0 -1300
  242. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts.map +0 -1
  243. package/dist/contracts/v0_3_LegoAeroSlipstream.js +0 -1671
  244. package/dist/contracts/v0_3_LegoCommon.d.ts +0 -164
  245. package/dist/contracts/v0_3_LegoCommon.d.ts.map +0 -1
  246. package/dist/contracts/v0_3_LegoCommon.js +0 -202
  247. package/dist/contracts/v0_3_LegoCompoundV3.d.ts +0 -1060
  248. package/dist/contracts/v0_3_LegoCompoundV3.d.ts.map +0 -1
  249. package/dist/contracts/v0_3_LegoCompoundV3.js +0 -1365
  250. package/dist/contracts/v0_3_LegoCredit.d.ts +0 -140
  251. package/dist/contracts/v0_3_LegoCredit.d.ts.map +0 -1
  252. package/dist/contracts/v0_3_LegoCredit.js +0 -179
  253. package/dist/contracts/v0_3_LegoCurve.d.ts +0 -1189
  254. package/dist/contracts/v0_3_LegoCurve.d.ts.map +0 -1
  255. package/dist/contracts/v0_3_LegoCurve.js +0 -1519
  256. package/dist/contracts/v0_3_LegoDex.d.ts +0 -587
  257. package/dist/contracts/v0_3_LegoDex.d.ts.map +0 -1
  258. package/dist/contracts/v0_3_LegoDex.js +0 -774
  259. package/dist/contracts/v0_3_LegoEuler.d.ts +0 -1074
  260. package/dist/contracts/v0_3_LegoEuler.d.ts.map +0 -1
  261. package/dist/contracts/v0_3_LegoEuler.js +0 -1383
  262. package/dist/contracts/v0_3_LegoFluid.d.ts +0 -1025
  263. package/dist/contracts/v0_3_LegoFluid.d.ts.map +0 -1
  264. package/dist/contracts/v0_3_LegoFluid.js +0 -1320
  265. package/dist/contracts/v0_3_LegoHelper.d.ts +0 -1563
  266. package/dist/contracts/v0_3_LegoHelper.d.ts.map +0 -1
  267. package/dist/contracts/v0_3_LegoHelper.js +0 -1947
  268. package/dist/contracts/v0_3_LegoMoonwell.d.ts +0 -1042
  269. package/dist/contracts/v0_3_LegoMoonwell.d.ts.map +0 -1
  270. package/dist/contracts/v0_3_LegoMoonwell.js +0 -1342
  271. package/dist/contracts/v0_3_LegoMorpho.d.ts +0 -1074
  272. package/dist/contracts/v0_3_LegoMorpho.d.ts.map +0 -1
  273. package/dist/contracts/v0_3_LegoMorpho.js +0 -1383
  274. package/dist/contracts/v0_3_LegoRegistry.d.ts +0 -1079
  275. package/dist/contracts/v0_3_LegoRegistry.d.ts.map +0 -1
  276. package/dist/contracts/v0_3_LegoRegistry.js +0 -1368
  277. package/dist/contracts/v0_3_LegoSky.d.ts +0 -923
  278. package/dist/contracts/v0_3_LegoSky.d.ts.map +0 -1
  279. package/dist/contracts/v0_3_LegoSky.js +0 -1180
  280. package/dist/contracts/v0_3_LegoUniswapV3.d.ts +0 -1338
  281. package/dist/contracts/v0_3_LegoUniswapV3.d.ts.map +0 -1
  282. package/dist/contracts/v0_3_LegoYield.d.ts +0 -390
  283. package/dist/contracts/v0_3_LegoYield.d.ts.map +0 -1
  284. package/dist/contracts/v0_3_LegoYield.js +0 -511
  285. package/dist/contracts/v0_3_OracleParser.d.ts +0 -207
  286. package/dist/contracts/v0_3_OracleParser.d.ts.map +0 -1
  287. package/dist/contracts/v0_3_OracleParser.js +0 -264
  288. package/dist/contracts/v0_3_OracleRegistry.d.ts +0 -1221
  289. package/dist/contracts/v0_3_OracleRegistry.d.ts.map +0 -1
  290. package/dist/contracts/v0_3_PriceSheets.d.ts +0 -1127
  291. package/dist/contracts/v0_3_PriceSheets.d.ts.map +0 -1
  292. package/dist/contracts/v0_3_PriceSheets.js +0 -1383
  293. package/dist/contracts/v0_3_PythFeeds.d.ts +0 -640
  294. package/dist/contracts/v0_3_PythFeeds.d.ts.map +0 -1
  295. package/dist/contracts/v0_3_PythFeeds.js +0 -813
  296. package/dist/contracts/v0_3_StorkFeeds.d.ts +0 -640
  297. package/dist/contracts/v0_3_StorkFeeds.d.ts.map +0 -1
  298. package/dist/contracts/v0_3_StorkFeeds.js +0 -813
  299. package/dist/contracts/v0_3_UserWallet.d.ts +0 -1975
  300. package/dist/contracts/v0_3_UserWallet.d.ts.map +0 -1
  301. package/dist/contracts/v0_3_UserWallet.js +0 -2577
  302. package/dist/contracts/v0_3_UserWalletConfig.d.ts +0 -1852
  303. package/dist/contracts/v0_3_UserWalletConfig.d.ts.map +0 -1
  304. package/dist/contracts/v0_3_UserWalletConfig.js +0 -2263
  305. package/dist/getLegacyContracts.d.ts +0 -69
  306. package/dist/getLegacyContracts.d.ts.map +0 -1
  307. package/dist/getLegacyContracts.js +0 -55
@@ -122,6 +122,33 @@ export const abi = [
122
122
  anonymous: false,
123
123
  type: 'event',
124
124
  },
125
+ {
126
+ name: 'SnapShotPriceConfigSet',
127
+ inputs: [
128
+ {
129
+ name: 'minSnapshotDelay',
130
+ type: 'uint256',
131
+ indexed: false,
132
+ },
133
+ {
134
+ name: 'maxNumSnapshots',
135
+ type: 'uint256',
136
+ indexed: false,
137
+ },
138
+ {
139
+ name: 'maxUpsideDeviation',
140
+ type: 'uint256',
141
+ indexed: false,
142
+ },
143
+ {
144
+ name: 'staleTime',
145
+ type: 'uint256',
146
+ indexed: false,
147
+ },
148
+ ],
149
+ anonymous: false,
150
+ type: 'event',
151
+ },
125
152
  {
126
153
  name: 'AssetOpportunityAdded',
127
154
  inputs: [
@@ -156,6 +183,28 @@ export const abi = [
156
183
  anonymous: false,
157
184
  type: 'event',
158
185
  },
186
+ {
187
+ name: 'PricePerShareSnapShotAdded',
188
+ inputs: [
189
+ {
190
+ name: 'vaultToken',
191
+ type: 'address',
192
+ indexed: true,
193
+ },
194
+ {
195
+ name: 'totalSupply',
196
+ type: 'uint256',
197
+ indexed: false,
198
+ },
199
+ {
200
+ name: 'pricePerShare',
201
+ type: 'uint256',
202
+ indexed: false,
203
+ },
204
+ ],
205
+ anonymous: false,
206
+ type: 'event',
207
+ },
159
208
  {
160
209
  stateMutability: 'view',
161
210
  type: 'function',
@@ -210,6 +259,10 @@ export const abi = [
210
259
  name: 'billing',
211
260
  type: 'address',
212
261
  },
262
+ {
263
+ name: 'vaultRegistry',
264
+ type: 'address',
265
+ },
213
266
  ],
214
267
  },
215
268
  ],
@@ -352,40 +405,155 @@ export const abi = [
352
405
  {
353
406
  stateMutability: 'view',
354
407
  type: 'function',
355
- name: 'isPaused',
356
- inputs: [],
408
+ name: 'getWeightedPricePerShare',
409
+ inputs: [
410
+ {
411
+ name: '_vaultToken',
412
+ type: 'address',
413
+ },
414
+ ],
357
415
  outputs: [
358
416
  {
359
417
  name: '',
360
- type: 'bool',
418
+ type: 'uint256',
361
419
  },
362
420
  ],
363
421
  },
364
422
  {
365
423
  stateMutability: 'view',
366
424
  type: 'function',
367
- name: 'assetOpportunities',
425
+ name: 'getLatestSnapshot',
368
426
  inputs: [
369
427
  {
370
- name: 'arg0',
428
+ name: '_vaultToken',
371
429
  type: 'address',
372
430
  },
373
431
  {
374
- name: 'arg1',
432
+ name: '_pricePerShare',
375
433
  type: 'uint256',
376
434
  },
377
435
  ],
378
436
  outputs: [
379
437
  {
380
438
  name: '',
439
+ type: 'tuple',
440
+ components: [
441
+ {
442
+ name: 'totalSupply',
443
+ type: 'uint256',
444
+ },
445
+ {
446
+ name: 'pricePerShare',
447
+ type: 'uint256',
448
+ },
449
+ {
450
+ name: 'lastUpdate',
451
+ type: 'uint256',
452
+ },
453
+ ],
454
+ },
455
+ ],
456
+ },
457
+ {
458
+ stateMutability: 'nonpayable',
459
+ type: 'function',
460
+ name: 'setSnapShotPriceConfig',
461
+ inputs: [
462
+ {
463
+ name: '_config',
464
+ type: 'tuple',
465
+ components: [
466
+ {
467
+ name: 'minSnapshotDelay',
468
+ type: 'uint256',
469
+ },
470
+ {
471
+ name: 'maxNumSnapshots',
472
+ type: 'uint256',
473
+ },
474
+ {
475
+ name: 'maxUpsideDeviation',
476
+ type: 'uint256',
477
+ },
478
+ {
479
+ name: 'staleTime',
480
+ type: 'uint256',
481
+ },
482
+ ],
483
+ },
484
+ ],
485
+ outputs: [],
486
+ },
487
+ {
488
+ stateMutability: 'view',
489
+ type: 'function',
490
+ name: 'isValidPriceConfig',
491
+ inputs: [
492
+ {
493
+ name: '_config',
494
+ type: 'tuple',
495
+ components: [
496
+ {
497
+ name: 'minSnapshotDelay',
498
+ type: 'uint256',
499
+ },
500
+ {
501
+ name: 'maxNumSnapshots',
502
+ type: 'uint256',
503
+ },
504
+ {
505
+ name: 'maxUpsideDeviation',
506
+ type: 'uint256',
507
+ },
508
+ {
509
+ name: 'staleTime',
510
+ type: 'uint256',
511
+ },
512
+ ],
513
+ },
514
+ ],
515
+ outputs: [
516
+ {
517
+ name: '',
518
+ type: 'bool',
519
+ },
520
+ ],
521
+ },
522
+ {
523
+ stateMutability: 'view',
524
+ type: 'function',
525
+ name: 'vaultToAsset',
526
+ inputs: [
527
+ {
528
+ name: 'arg0',
381
529
  type: 'address',
382
530
  },
383
531
  ],
532
+ outputs: [
533
+ {
534
+ name: '',
535
+ type: 'tuple',
536
+ components: [
537
+ {
538
+ name: 'underlyingAsset',
539
+ type: 'address',
540
+ },
541
+ {
542
+ name: 'decimals',
543
+ type: 'uint256',
544
+ },
545
+ {
546
+ name: 'lastAveragePricePerShare',
547
+ type: 'uint256',
548
+ },
549
+ ],
550
+ },
551
+ ],
384
552
  },
385
553
  {
386
554
  stateMutability: 'view',
387
555
  type: 'function',
388
- name: 'indexOfAssetOpportunity',
556
+ name: 'assetOpportunities',
389
557
  inputs: [
390
558
  {
391
559
  name: 'arg0',
@@ -393,25 +561,29 @@ export const abi = [
393
561
  },
394
562
  {
395
563
  name: 'arg1',
396
- type: 'address',
564
+ type: 'uint256',
397
565
  },
398
566
  ],
399
567
  outputs: [
400
568
  {
401
569
  name: '',
402
- type: 'uint256',
570
+ type: 'address',
403
571
  },
404
572
  ],
405
573
  },
406
574
  {
407
575
  stateMutability: 'view',
408
576
  type: 'function',
409
- name: 'numAssetOpportunities',
577
+ name: 'indexOfAssetOpportunity',
410
578
  inputs: [
411
579
  {
412
580
  name: 'arg0',
413
581
  type: 'address',
414
582
  },
583
+ {
584
+ name: 'arg1',
585
+ type: 'address',
586
+ },
415
587
  ],
416
588
  outputs: [
417
589
  {
@@ -423,7 +595,7 @@ export const abi = [
423
595
  {
424
596
  stateMutability: 'view',
425
597
  type: 'function',
426
- name: 'vaultToAsset',
598
+ name: 'numAssetOpportunities',
427
599
  inputs: [
428
600
  {
429
601
  name: 'arg0',
@@ -433,7 +605,7 @@ export const abi = [
433
605
  outputs: [
434
606
  {
435
607
  name: '',
436
- type: 'address',
608
+ type: 'uint256',
437
609
  },
438
610
  ],
439
611
  },
@@ -486,48 +658,113 @@ export const abi = [
486
658
  {
487
659
  stateMutability: 'view',
488
660
  type: 'function',
489
- name: 'hasCapability',
661
+ name: 'snapShotData',
490
662
  inputs: [
491
663
  {
492
- name: '_action',
493
- type: 'uint256',
664
+ name: 'arg0',
665
+ type: 'address',
494
666
  },
495
667
  ],
496
668
  outputs: [
497
669
  {
498
670
  name: '',
499
- type: 'bool',
671
+ type: 'tuple',
672
+ components: [
673
+ {
674
+ name: 'lastSnapShot',
675
+ type: 'tuple',
676
+ components: [
677
+ {
678
+ name: 'totalSupply',
679
+ type: 'uint256',
680
+ },
681
+ {
682
+ name: 'pricePerShare',
683
+ type: 'uint256',
684
+ },
685
+ {
686
+ name: 'lastUpdate',
687
+ type: 'uint256',
688
+ },
689
+ ],
690
+ },
691
+ {
692
+ name: 'nextIndex',
693
+ type: 'uint256',
694
+ },
695
+ ],
500
696
  },
501
697
  ],
502
698
  },
503
699
  {
504
700
  stateMutability: 'view',
505
701
  type: 'function',
506
- name: 'getRegistries',
507
- inputs: [],
702
+ name: 'snapShots',
703
+ inputs: [
704
+ {
705
+ name: 'arg0',
706
+ type: 'address',
707
+ },
708
+ {
709
+ name: 'arg1',
710
+ type: 'uint256',
711
+ },
712
+ ],
508
713
  outputs: [
509
714
  {
510
715
  name: '',
511
- type: 'address[]',
716
+ type: 'tuple',
717
+ components: [
718
+ {
719
+ name: 'totalSupply',
720
+ type: 'uint256',
721
+ },
722
+ {
723
+ name: 'pricePerShare',
724
+ type: 'uint256',
725
+ },
726
+ {
727
+ name: 'lastUpdate',
728
+ type: 'uint256',
729
+ },
730
+ ],
512
731
  },
513
732
  ],
514
733
  },
515
734
  {
516
735
  stateMutability: 'view',
517
736
  type: 'function',
518
- name: 'isYieldLego',
737
+ name: 'snapShotPriceConfig',
519
738
  inputs: [],
520
739
  outputs: [
521
740
  {
522
741
  name: '',
523
- type: 'bool',
742
+ type: 'tuple',
743
+ components: [
744
+ {
745
+ name: 'minSnapshotDelay',
746
+ type: 'uint256',
747
+ },
748
+ {
749
+ name: 'maxNumSnapshots',
750
+ type: 'uint256',
751
+ },
752
+ {
753
+ name: 'maxUpsideDeviation',
754
+ type: 'uint256',
755
+ },
756
+ {
757
+ name: 'staleTime',
758
+ type: 'uint256',
759
+ },
760
+ ],
524
761
  },
525
762
  ],
526
763
  },
527
764
  {
528
765
  stateMutability: 'view',
529
766
  type: 'function',
530
- name: 'isDexLego',
767
+ name: 'isPaused',
531
768
  inputs: [],
532
769
  outputs: [
533
770
  {
@@ -539,15 +776,11 @@ export const abi = [
539
776
  {
540
777
  stateMutability: 'view',
541
778
  type: 'function',
542
- name: 'isEligibleVaultForTrialFunds',
779
+ name: 'hasCapability',
543
780
  inputs: [
544
781
  {
545
- name: '_vaultToken',
546
- type: 'address',
547
- },
548
- {
549
- name: '_underlyingAsset',
550
- type: 'address',
782
+ name: '_action',
783
+ type: 'uint256',
551
784
  },
552
785
  ],
553
786
  outputs: [
@@ -560,13 +793,20 @@ export const abi = [
560
793
  {
561
794
  stateMutability: 'view',
562
795
  type: 'function',
563
- name: 'isEligibleForYieldBonus',
564
- inputs: [
796
+ name: 'getRegistries',
797
+ inputs: [],
798
+ outputs: [
565
799
  {
566
- name: '_asset',
567
- type: 'address',
800
+ name: '',
801
+ type: 'address[]',
568
802
  },
569
803
  ],
804
+ },
805
+ {
806
+ stateMutability: 'view',
807
+ type: 'function',
808
+ name: 'isYieldLego',
809
+ inputs: [],
570
810
  outputs: [
571
811
  {
572
812
  name: '',
@@ -577,7 +817,7 @@ export const abi = [
577
817
  {
578
818
  stateMutability: 'view',
579
819
  type: 'function',
580
- name: 'isRebasing',
820
+ name: 'isDexLego',
581
821
  inputs: [],
582
822
  outputs: [
583
823
  {
@@ -587,29 +827,34 @@ export const abi = [
587
827
  ],
588
828
  },
589
829
  {
590
- stateMutability: 'nonpayable',
830
+ stateMutability: 'view',
591
831
  type: 'function',
592
- name: 'depositForYield',
832
+ name: 'getUnderlyingAsset',
593
833
  inputs: [
594
834
  {
595
- name: '_asset',
835
+ name: '_vaultToken',
596
836
  type: 'address',
597
837
  },
838
+ ],
839
+ outputs: [
598
840
  {
599
- name: '_amount',
600
- type: 'uint256',
601
- },
602
- {
603
- name: '_vaultAddr',
841
+ name: '',
604
842
  type: 'address',
605
843
  },
844
+ ],
845
+ },
846
+ {
847
+ stateMutability: 'view',
848
+ type: 'function',
849
+ name: 'getUnderlyingBalances',
850
+ inputs: [
606
851
  {
607
- name: '_extraData',
608
- type: 'bytes32',
852
+ name: '_vaultToken',
853
+ type: 'address',
609
854
  },
610
855
  {
611
- name: '_recipient',
612
- type: 'address',
856
+ name: '_vaultTokenBalance',
857
+ type: 'uint256',
613
858
  },
614
859
  ],
615
860
  outputs: [
@@ -619,12 +864,25 @@ export const abi = [
619
864
  },
620
865
  {
621
866
  name: '',
622
- type: 'address',
867
+ type: 'uint256',
868
+ },
869
+ ],
870
+ },
871
+ {
872
+ stateMutability: 'view',
873
+ type: 'function',
874
+ name: 'getUnderlyingAmount',
875
+ inputs: [
876
+ {
877
+ name: '_vaultToken',
878
+ type: 'address',
623
879
  },
624
880
  {
625
- name: '',
881
+ name: '_vaultTokenAmount',
626
882
  type: 'uint256',
627
883
  },
884
+ ],
885
+ outputs: [
628
886
  {
629
887
  name: '',
630
888
  type: 'uint256',
@@ -632,58 +890,74 @@ export const abi = [
632
890
  ],
633
891
  },
634
892
  {
635
- stateMutability: 'nonpayable',
893
+ stateMutability: 'view',
636
894
  type: 'function',
637
- name: 'depositForYield',
895
+ name: 'getUnderlyingAmountSafe',
638
896
  inputs: [
639
897
  {
640
- name: '_asset',
898
+ name: '_vaultToken',
641
899
  type: 'address',
642
900
  },
643
901
  {
644
- name: '_amount',
902
+ name: '_vaultTokenBalance',
645
903
  type: 'uint256',
646
904
  },
905
+ ],
906
+ outputs: [
647
907
  {
648
- name: '_vaultAddr',
908
+ name: '',
909
+ type: 'uint256',
910
+ },
911
+ ],
912
+ },
913
+ {
914
+ stateMutability: 'view',
915
+ type: 'function',
916
+ name: 'getUnderlyingData',
917
+ inputs: [
918
+ {
919
+ name: '_vaultToken',
649
920
  type: 'address',
650
921
  },
651
922
  {
652
- name: '_extraData',
653
- type: 'bytes32',
923
+ name: '_vaultTokenAmount',
924
+ type: 'uint256',
654
925
  },
926
+ ],
927
+ outputs: [
655
928
  {
656
- name: '_recipient',
929
+ name: '',
657
930
  type: 'address',
658
931
  },
659
932
  {
660
- name: '_miniAddys',
661
- type: 'tuple',
662
- components: [
663
- {
664
- name: 'ledger',
665
- type: 'address',
666
- },
667
- {
668
- name: 'missionControl',
669
- type: 'address',
670
- },
671
- {
672
- name: 'legoBook',
673
- type: 'address',
674
- },
675
- {
676
- name: 'appraiser',
677
- type: 'address',
678
- },
679
- ],
933
+ name: '',
934
+ type: 'uint256',
680
935
  },
681
- ],
682
- outputs: [
683
936
  {
684
937
  name: '',
685
938
  type: 'uint256',
686
939
  },
940
+ ],
941
+ },
942
+ {
943
+ stateMutability: 'view',
944
+ type: 'function',
945
+ name: 'getUnderlyingData',
946
+ inputs: [
947
+ {
948
+ name: '_vaultToken',
949
+ type: 'address',
950
+ },
951
+ {
952
+ name: '_vaultTokenAmount',
953
+ type: 'uint256',
954
+ },
955
+ {
956
+ name: '_appraiser',
957
+ type: 'address',
958
+ },
959
+ ],
960
+ outputs: [
687
961
  {
688
962
  name: '',
689
963
  type: 'address',
@@ -699,88 +973,92 @@ export const abi = [
699
973
  ],
700
974
  },
701
975
  {
702
- stateMutability: 'nonpayable',
976
+ stateMutability: 'view',
703
977
  type: 'function',
704
- name: 'withdrawFromYield',
978
+ name: 'getUsdValueOfVaultToken',
705
979
  inputs: [
706
980
  {
707
981
  name: '_vaultToken',
708
982
  type: 'address',
709
983
  },
710
984
  {
711
- name: '_amount',
985
+ name: '_vaultTokenAmount',
712
986
  type: 'uint256',
713
987
  },
988
+ ],
989
+ outputs: [
714
990
  {
715
- name: '_extraData',
716
- type: 'bytes32',
991
+ name: '',
992
+ type: 'uint256',
717
993
  },
994
+ ],
995
+ },
996
+ {
997
+ stateMutability: 'view',
998
+ type: 'function',
999
+ name: 'getUsdValueOfVaultToken',
1000
+ inputs: [
718
1001
  {
719
- name: '_recipient',
1002
+ name: '_vaultToken',
720
1003
  type: 'address',
721
1004
  },
722
- ],
723
- outputs: [
724
1005
  {
725
- name: '',
1006
+ name: '_vaultTokenAmount',
726
1007
  type: 'uint256',
727
1008
  },
728
1009
  {
729
- name: '',
1010
+ name: '_appraiser',
730
1011
  type: 'address',
731
1012
  },
1013
+ ],
1014
+ outputs: [
732
1015
  {
733
1016
  name: '',
734
1017
  type: 'uint256',
735
1018
  },
1019
+ ],
1020
+ },
1021
+ {
1022
+ stateMutability: 'view',
1023
+ type: 'function',
1024
+ name: 'isRebasing',
1025
+ inputs: [],
1026
+ outputs: [
736
1027
  {
737
1028
  name: '',
738
- type: 'uint256',
1029
+ type: 'bool',
739
1030
  },
740
1031
  ],
741
1032
  },
742
1033
  {
743
- stateMutability: 'nonpayable',
1034
+ stateMutability: 'view',
744
1035
  type: 'function',
745
- name: 'withdrawFromYield',
1036
+ name: 'getPricePerShare',
746
1037
  inputs: [
747
1038
  {
748
1039
  name: '_vaultToken',
749
1040
  type: 'address',
750
1041
  },
1042
+ ],
1043
+ outputs: [
751
1044
  {
752
- name: '_amount',
1045
+ name: '',
753
1046
  type: 'uint256',
754
1047
  },
1048
+ ],
1049
+ },
1050
+ {
1051
+ stateMutability: 'view',
1052
+ type: 'function',
1053
+ name: 'getPricePerShare',
1054
+ inputs: [
755
1055
  {
756
- name: '_extraData',
757
- type: 'bytes32',
758
- },
759
- {
760
- name: '_recipient',
1056
+ name: '_vaultToken',
761
1057
  type: 'address',
762
1058
  },
763
1059
  {
764
- name: '_miniAddys',
765
- type: 'tuple',
766
- components: [
767
- {
768
- name: 'ledger',
769
- type: 'address',
770
- },
771
- {
772
- name: 'missionControl',
773
- type: 'address',
774
- },
775
- {
776
- name: 'legoBook',
777
- type: 'address',
778
- },
779
- {
780
- name: 'appraiser',
781
- type: 'address',
782
- },
783
- ],
1060
+ name: '_decimals',
1061
+ type: 'uint256',
784
1062
  },
785
1063
  ],
786
1064
  outputs: [
@@ -788,14 +1066,27 @@ export const abi = [
788
1066
  name: '',
789
1067
  type: 'uint256',
790
1068
  },
1069
+ ],
1070
+ },
1071
+ {
1072
+ stateMutability: 'view',
1073
+ type: 'function',
1074
+ name: 'getVaultTokenAmount',
1075
+ inputs: [
791
1076
  {
792
- name: '',
1077
+ name: '_asset',
793
1078
  type: 'address',
794
1079
  },
795
1080
  {
796
- name: '',
1081
+ name: '_assetAmount',
797
1082
  type: 'uint256',
798
1083
  },
1084
+ {
1085
+ name: '_vaultToken',
1086
+ type: 'address',
1087
+ },
1088
+ ],
1089
+ outputs: [
799
1090
  {
800
1091
  name: '',
801
1092
  type: 'uint256',
@@ -805,12 +1096,16 @@ export const abi = [
805
1096
  {
806
1097
  stateMutability: 'view',
807
1098
  type: 'function',
808
- name: 'isVaultToken',
1099
+ name: 'isEligibleVaultForTrialFunds',
809
1100
  inputs: [
810
1101
  {
811
1102
  name: '_vaultToken',
812
1103
  type: 'address',
813
1104
  },
1105
+ {
1106
+ name: '_underlyingAsset',
1107
+ type: 'address',
1108
+ },
814
1109
  ],
815
1110
  outputs: [
816
1111
  {
@@ -822,34 +1117,47 @@ export const abi = [
822
1117
  {
823
1118
  stateMutability: 'view',
824
1119
  type: 'function',
825
- name: 'getUnderlyingAsset',
1120
+ name: 'isEligibleForYieldBonus',
826
1121
  inputs: [
827
1122
  {
828
- name: '_vaultToken',
1123
+ name: '_asset',
829
1124
  type: 'address',
830
1125
  },
831
1126
  ],
832
1127
  outputs: [
833
1128
  {
834
1129
  name: '',
835
- type: 'address',
1130
+ type: 'bool',
836
1131
  },
837
1132
  ],
838
1133
  },
839
1134
  {
840
1135
  stateMutability: 'view',
841
1136
  type: 'function',
842
- name: 'getUnderlyingAmount',
1137
+ name: 'totalAssets',
843
1138
  inputs: [
844
1139
  {
845
1140
  name: '_vaultToken',
846
1141
  type: 'address',
847
1142
  },
1143
+ ],
1144
+ outputs: [
848
1145
  {
849
- name: '_vaultTokenAmount',
1146
+ name: '',
850
1147
  type: 'uint256',
851
1148
  },
852
1149
  ],
1150
+ },
1151
+ {
1152
+ stateMutability: 'view',
1153
+ type: 'function',
1154
+ name: 'totalBorrows',
1155
+ inputs: [
1156
+ {
1157
+ name: '_vaultToken',
1158
+ type: 'address',
1159
+ },
1160
+ ],
853
1161
  outputs: [
854
1162
  {
855
1163
  name: '',
@@ -860,16 +1168,12 @@ export const abi = [
860
1168
  {
861
1169
  stateMutability: 'view',
862
1170
  type: 'function',
863
- name: 'getVaultTokenAmount',
1171
+ name: 'canRegisterVaultToken',
864
1172
  inputs: [
865
1173
  {
866
1174
  name: '_asset',
867
1175
  type: 'address',
868
1176
  },
869
- {
870
- name: '_assetAmount',
871
- type: 'uint256',
872
- },
873
1177
  {
874
1178
  name: '_vaultToken',
875
1179
  type: 'address',
@@ -878,46 +1182,101 @@ export const abi = [
878
1182
  outputs: [
879
1183
  {
880
1184
  name: '',
881
- type: 'uint256',
1185
+ type: 'bool',
882
1186
  },
883
1187
  ],
884
1188
  },
885
1189
  {
886
- stateMutability: 'view',
1190
+ stateMutability: 'nonpayable',
887
1191
  type: 'function',
888
- name: 'getUsdValueOfVaultToken',
1192
+ name: 'registerVaultTokenLocally',
889
1193
  inputs: [
890
1194
  {
891
- name: '_vaultToken',
1195
+ name: '_asset',
892
1196
  type: 'address',
893
1197
  },
894
1198
  {
895
- name: '_vaultTokenAmount',
896
- type: 'uint256',
1199
+ name: '_vaultAddr',
1200
+ type: 'address',
897
1201
  },
898
1202
  ],
899
1203
  outputs: [
900
1204
  {
901
1205
  name: '',
902
- type: 'uint256',
1206
+ type: 'tuple',
1207
+ components: [
1208
+ {
1209
+ name: 'underlyingAsset',
1210
+ type: 'address',
1211
+ },
1212
+ {
1213
+ name: 'decimals',
1214
+ type: 'uint256',
1215
+ },
1216
+ {
1217
+ name: 'lastAveragePricePerShare',
1218
+ type: 'uint256',
1219
+ },
1220
+ ],
903
1221
  },
904
1222
  ],
905
1223
  },
906
1224
  {
907
- stateMutability: 'view',
1225
+ stateMutability: 'nonpayable',
908
1226
  type: 'function',
909
- name: 'getUsdValueOfVaultToken',
1227
+ name: 'deregisterVaultTokenLocally',
1228
+ inputs: [
1229
+ {
1230
+ name: '_asset',
1231
+ type: 'address',
1232
+ },
1233
+ {
1234
+ name: '_vaultAddr',
1235
+ type: 'address',
1236
+ },
1237
+ ],
1238
+ outputs: [],
1239
+ },
1240
+ {
1241
+ stateMutability: 'nonpayable',
1242
+ type: 'function',
1243
+ name: 'addPriceSnapshot',
910
1244
  inputs: [
911
1245
  {
912
1246
  name: '_vaultToken',
913
1247
  type: 'address',
914
1248
  },
1249
+ ],
1250
+ outputs: [
915
1251
  {
916
- name: '_vaultTokenAmount',
1252
+ name: '',
1253
+ type: 'bool',
1254
+ },
1255
+ ],
1256
+ },
1257
+ {
1258
+ stateMutability: 'nonpayable',
1259
+ type: 'function',
1260
+ name: 'depositForYield',
1261
+ inputs: [
1262
+ {
1263
+ name: '_asset',
1264
+ type: 'address',
1265
+ },
1266
+ {
1267
+ name: '_amount',
917
1268
  type: 'uint256',
918
1269
  },
919
1270
  {
920
- name: '_appraiser',
1271
+ name: '_vaultAddr',
1272
+ type: 'address',
1273
+ },
1274
+ {
1275
+ name: '_extraData',
1276
+ type: 'bytes32',
1277
+ },
1278
+ {
1279
+ name: '_recipient',
921
1280
  type: 'address',
922
1281
  },
923
1282
  ],
@@ -926,23 +1285,73 @@ export const abi = [
926
1285
  name: '',
927
1286
  type: 'uint256',
928
1287
  },
1288
+ {
1289
+ name: '',
1290
+ type: 'address',
1291
+ },
1292
+ {
1293
+ name: '',
1294
+ type: 'uint256',
1295
+ },
1296
+ {
1297
+ name: '',
1298
+ type: 'uint256',
1299
+ },
929
1300
  ],
930
1301
  },
931
1302
  {
932
- stateMutability: 'view',
1303
+ stateMutability: 'nonpayable',
933
1304
  type: 'function',
934
- name: 'getUnderlyingData',
1305
+ name: 'depositForYield',
935
1306
  inputs: [
936
1307
  {
937
- name: '_vaultToken',
1308
+ name: '_asset',
938
1309
  type: 'address',
939
1310
  },
940
1311
  {
941
- name: '_vaultTokenAmount',
1312
+ name: '_amount',
942
1313
  type: 'uint256',
943
1314
  },
1315
+ {
1316
+ name: '_vaultAddr',
1317
+ type: 'address',
1318
+ },
1319
+ {
1320
+ name: '_extraData',
1321
+ type: 'bytes32',
1322
+ },
1323
+ {
1324
+ name: '_recipient',
1325
+ type: 'address',
1326
+ },
1327
+ {
1328
+ name: '_miniAddys',
1329
+ type: 'tuple',
1330
+ components: [
1331
+ {
1332
+ name: 'ledger',
1333
+ type: 'address',
1334
+ },
1335
+ {
1336
+ name: 'missionControl',
1337
+ type: 'address',
1338
+ },
1339
+ {
1340
+ name: 'legoBook',
1341
+ type: 'address',
1342
+ },
1343
+ {
1344
+ name: 'appraiser',
1345
+ type: 'address',
1346
+ },
1347
+ ],
1348
+ },
944
1349
  ],
945
1350
  outputs: [
1351
+ {
1352
+ name: '',
1353
+ type: 'uint256',
1354
+ },
946
1355
  {
947
1356
  name: '',
948
1357
  type: 'address',
@@ -958,24 +1367,32 @@ export const abi = [
958
1367
  ],
959
1368
  },
960
1369
  {
961
- stateMutability: 'view',
1370
+ stateMutability: 'nonpayable',
962
1371
  type: 'function',
963
- name: 'getUnderlyingData',
1372
+ name: 'withdrawFromYield',
964
1373
  inputs: [
965
1374
  {
966
1375
  name: '_vaultToken',
967
1376
  type: 'address',
968
1377
  },
969
1378
  {
970
- name: '_vaultTokenAmount',
1379
+ name: '_amount',
971
1380
  type: 'uint256',
972
1381
  },
973
1382
  {
974
- name: '_appraiser',
1383
+ name: '_extraData',
1384
+ type: 'bytes32',
1385
+ },
1386
+ {
1387
+ name: '_recipient',
975
1388
  type: 'address',
976
1389
  },
977
1390
  ],
978
1391
  outputs: [
1392
+ {
1393
+ name: '',
1394
+ type: 'uint256',
1395
+ },
979
1396
  {
980
1397
  name: '',
981
1398
  type: 'address',
@@ -991,33 +1408,91 @@ export const abi = [
991
1408
  ],
992
1409
  },
993
1410
  {
994
- stateMutability: 'view',
1411
+ stateMutability: 'nonpayable',
995
1412
  type: 'function',
996
- name: 'totalAssets',
1413
+ name: 'withdrawFromYield',
997
1414
  inputs: [
998
1415
  {
999
1416
  name: '_vaultToken',
1000
1417
  type: 'address',
1001
1418
  },
1419
+ {
1420
+ name: '_amount',
1421
+ type: 'uint256',
1422
+ },
1423
+ {
1424
+ name: '_extraData',
1425
+ type: 'bytes32',
1426
+ },
1427
+ {
1428
+ name: '_recipient',
1429
+ type: 'address',
1430
+ },
1431
+ {
1432
+ name: '_miniAddys',
1433
+ type: 'tuple',
1434
+ components: [
1435
+ {
1436
+ name: 'ledger',
1437
+ type: 'address',
1438
+ },
1439
+ {
1440
+ name: 'missionControl',
1441
+ type: 'address',
1442
+ },
1443
+ {
1444
+ name: 'legoBook',
1445
+ type: 'address',
1446
+ },
1447
+ {
1448
+ name: 'appraiser',
1449
+ type: 'address',
1450
+ },
1451
+ ],
1452
+ },
1002
1453
  ],
1003
1454
  outputs: [
1004
1455
  {
1005
1456
  name: '',
1006
1457
  type: 'uint256',
1007
1458
  },
1459
+ {
1460
+ name: '',
1461
+ type: 'address',
1462
+ },
1463
+ {
1464
+ name: '',
1465
+ type: 'uint256',
1466
+ },
1467
+ {
1468
+ name: '',
1469
+ type: 'uint256',
1470
+ },
1008
1471
  ],
1009
1472
  },
1010
1473
  {
1011
1474
  stateMutability: 'view',
1012
1475
  type: 'function',
1013
- name: 'totalBorrows',
1476
+ name: 'getAccessForLego',
1014
1477
  inputs: [
1015
1478
  {
1016
- name: '_vaultToken',
1479
+ name: '_user',
1480
+ type: 'address',
1481
+ },
1482
+ {
1483
+ name: '_action',
1484
+ type: 'uint256',
1485
+ },
1486
+ ],
1487
+ outputs: [
1488
+ {
1489
+ name: '',
1017
1490
  type: 'address',
1018
1491
  },
1019
- ],
1020
- outputs: [
1492
+ {
1493
+ name: '',
1494
+ type: 'string',
1495
+ },
1021
1496
  {
1022
1497
  name: '',
1023
1498
  type: 'uint256',
@@ -1025,57 +1500,109 @@ export const abi = [
1025
1500
  ],
1026
1501
  },
1027
1502
  {
1028
- stateMutability: 'view',
1503
+ stateMutability: 'nonpayable',
1029
1504
  type: 'function',
1030
- name: 'getPricePerShare',
1505
+ name: 'claimRewards',
1031
1506
  inputs: [
1032
1507
  {
1033
- name: '_asset',
1508
+ name: '_user',
1034
1509
  type: 'address',
1035
1510
  },
1036
1511
  {
1037
- name: '_decimals',
1512
+ name: '_rewardToken',
1513
+ type: 'address',
1514
+ },
1515
+ {
1516
+ name: '_rewardAmount',
1038
1517
  type: 'uint256',
1039
1518
  },
1519
+ {
1520
+ name: '_extraData',
1521
+ type: 'bytes32',
1522
+ },
1040
1523
  ],
1041
1524
  outputs: [
1042
1525
  {
1043
1526
  name: '',
1044
1527
  type: 'uint256',
1045
1528
  },
1529
+ {
1530
+ name: '',
1531
+ type: 'uint256',
1532
+ },
1046
1533
  ],
1047
1534
  },
1048
1535
  {
1049
1536
  stateMutability: 'nonpayable',
1050
1537
  type: 'function',
1051
- name: 'addAssetOpportunity',
1538
+ name: 'claimRewards',
1052
1539
  inputs: [
1053
1540
  {
1054
- name: '_asset',
1541
+ name: '_user',
1055
1542
  type: 'address',
1056
1543
  },
1057
1544
  {
1058
- name: '_vaultAddr',
1545
+ name: '_rewardToken',
1059
1546
  type: 'address',
1060
1547
  },
1548
+ {
1549
+ name: '_rewardAmount',
1550
+ type: 'uint256',
1551
+ },
1552
+ {
1553
+ name: '_extraData',
1554
+ type: 'bytes32',
1555
+ },
1556
+ {
1557
+ name: '_miniAddys',
1558
+ type: 'tuple',
1559
+ components: [
1560
+ {
1561
+ name: 'ledger',
1562
+ type: 'address',
1563
+ },
1564
+ {
1565
+ name: 'missionControl',
1566
+ type: 'address',
1567
+ },
1568
+ {
1569
+ name: 'legoBook',
1570
+ type: 'address',
1571
+ },
1572
+ {
1573
+ name: 'appraiser',
1574
+ type: 'address',
1575
+ },
1576
+ ],
1577
+ },
1578
+ ],
1579
+ outputs: [
1580
+ {
1581
+ name: '',
1582
+ type: 'uint256',
1583
+ },
1584
+ {
1585
+ name: '',
1586
+ type: 'uint256',
1587
+ },
1061
1588
  ],
1062
- outputs: [],
1063
1589
  },
1064
1590
  {
1065
- stateMutability: 'nonpayable',
1591
+ stateMutability: 'view',
1066
1592
  type: 'function',
1067
- name: 'removeAssetOpportunity',
1593
+ name: 'hasClaimableRewards',
1068
1594
  inputs: [
1069
1595
  {
1070
- name: '_asset',
1596
+ name: '_user',
1071
1597
  type: 'address',
1072
1598
  },
1599
+ ],
1600
+ outputs: [
1073
1601
  {
1074
- name: '_vaultAddr',
1075
- type: 'address',
1602
+ name: '',
1603
+ type: 'bool',
1076
1604
  },
1077
1605
  ],
1078
- outputs: [],
1079
1606
  },
1080
1607
  {
1081
1608
  stateMutability: 'nonpayable',
@@ -1741,94 +2268,6 @@ export const abi = [
1741
2268
  },
1742
2269
  ],
1743
2270
  },
1744
- {
1745
- stateMutability: 'nonpayable',
1746
- type: 'function',
1747
- name: 'claimRewards',
1748
- inputs: [
1749
- {
1750
- name: '_user',
1751
- type: 'address',
1752
- },
1753
- {
1754
- name: '_rewardToken',
1755
- type: 'address',
1756
- },
1757
- {
1758
- name: '_rewardAmount',
1759
- type: 'uint256',
1760
- },
1761
- {
1762
- name: '_extraData',
1763
- type: 'bytes32',
1764
- },
1765
- ],
1766
- outputs: [
1767
- {
1768
- name: '',
1769
- type: 'uint256',
1770
- },
1771
- {
1772
- name: '',
1773
- type: 'uint256',
1774
- },
1775
- ],
1776
- },
1777
- {
1778
- stateMutability: 'nonpayable',
1779
- type: 'function',
1780
- name: 'claimRewards',
1781
- inputs: [
1782
- {
1783
- name: '_user',
1784
- type: 'address',
1785
- },
1786
- {
1787
- name: '_rewardToken',
1788
- type: 'address',
1789
- },
1790
- {
1791
- name: '_rewardAmount',
1792
- type: 'uint256',
1793
- },
1794
- {
1795
- name: '_extraData',
1796
- type: 'bytes32',
1797
- },
1798
- {
1799
- name: '_miniAddys',
1800
- type: 'tuple',
1801
- components: [
1802
- {
1803
- name: 'ledger',
1804
- type: 'address',
1805
- },
1806
- {
1807
- name: 'missionControl',
1808
- type: 'address',
1809
- },
1810
- {
1811
- name: 'legoBook',
1812
- type: 'address',
1813
- },
1814
- {
1815
- name: 'appraiser',
1816
- type: 'address',
1817
- },
1818
- ],
1819
- },
1820
- ],
1821
- outputs: [
1822
- {
1823
- name: '',
1824
- type: 'uint256',
1825
- },
1826
- {
1827
- name: '',
1828
- type: 'uint256',
1829
- },
1830
- ],
1831
- },
1832
2271
  {
1833
2272
  stateMutability: 'nonpayable',
1834
2273
  type: 'function',
@@ -2461,56 +2900,6 @@ export const abi = [
2461
2900
  },
2462
2901
  ],
2463
2902
  },
2464
- {
2465
- stateMutability: 'view',
2466
- type: 'function',
2467
- name: 'getAccessForLego',
2468
- inputs: [
2469
- {
2470
- name: '_user',
2471
- type: 'address',
2472
- },
2473
- {
2474
- name: '_action',
2475
- type: 'uint256',
2476
- },
2477
- ],
2478
- outputs: [
2479
- {
2480
- name: '',
2481
- type: 'address',
2482
- },
2483
- {
2484
- name: '',
2485
- type: 'string',
2486
- },
2487
- {
2488
- name: '',
2489
- type: 'uint256',
2490
- },
2491
- ],
2492
- },
2493
- {
2494
- stateMutability: 'view',
2495
- type: 'function',
2496
- name: 'getPrice',
2497
- inputs: [
2498
- {
2499
- name: '_asset',
2500
- type: 'address',
2501
- },
2502
- {
2503
- name: '_decimals',
2504
- type: 'uint256',
2505
- },
2506
- ],
2507
- outputs: [
2508
- {
2509
- name: '',
2510
- type: 'uint256',
2511
- },
2512
- ],
2513
- },
2514
2903
  {
2515
2904
  stateMutability: 'view',
2516
2905
  type: 'function',
@@ -2539,7 +2928,7 @@ export const abi = [
2539
2928
  outputs: [],
2540
2929
  },
2541
2930
  ];
2542
- export const deployAddress = '0x4719731fC7c8A3e17CB3e1EadD4412692432B404';
2931
+ export const deployAddress = '0x90d0758cD90BCcCeCa70dF0639516423c8440230';
2543
2932
  function getRequest(method, args, contractAddressOrOptions) {
2544
2933
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2545
2934
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
@@ -2575,32 +2964,40 @@ export const call = {
2575
2964
  getAssets: (...args) => getRequest('getAssets', args),
2576
2965
  isAssetOpportunity: (...args) => getRequest('isAssetOpportunity', args),
2577
2966
  getNumLegoAssets: (...args) => getRequest('getNumLegoAssets', args),
2578
- isPaused: (...args) => getRequest('isPaused', args),
2967
+ getWeightedPricePerShare: (...args) => getRequest('getWeightedPricePerShare', args),
2968
+ getLatestSnapshot: (...args) => getRequest('getLatestSnapshot', args),
2969
+ isValidPriceConfig: (...args) => getRequest('isValidPriceConfig', args),
2970
+ vaultToAsset: (...args) => getRequest('vaultToAsset', args),
2579
2971
  assetOpportunities: (...args) => getRequest('assetOpportunities', args),
2580
2972
  indexOfAssetOpportunity: (...args) => getRequest('indexOfAssetOpportunity', args),
2581
2973
  numAssetOpportunities: (...args) => getRequest('numAssetOpportunities', args),
2582
- vaultToAsset: (...args) => getRequest('vaultToAsset', args),
2583
2974
  assets: (...args) => getRequest('assets', args),
2584
2975
  indexOfAsset: (...args) => getRequest('indexOfAsset', args),
2585
2976
  numAssets: (...args) => getRequest('numAssets', args),
2977
+ snapShotData: (...args) => getRequest('snapShotData', args),
2978
+ snapShots: (...args) => getRequest('snapShots', args),
2979
+ snapShotPriceConfig: (...args) => getRequest('snapShotPriceConfig', args),
2980
+ isPaused: (...args) => getRequest('isPaused', args),
2586
2981
  hasCapability: (...args) => getRequest('hasCapability', args),
2587
2982
  getRegistries: (...args) => getRequest('getRegistries', args),
2588
2983
  isYieldLego: (...args) => getRequest('isYieldLego', args),
2589
2984
  isDexLego: (...args) => getRequest('isDexLego', args),
2590
- isEligibleVaultForTrialFunds: (...args) => getRequest('isEligibleVaultForTrialFunds', args),
2591
- isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
2592
- isRebasing: (...args) => getRequest('isRebasing', args),
2593
- isVaultToken: (...args) => getRequest('isVaultToken', args),
2594
2985
  getUnderlyingAsset: (...args) => getRequest('getUnderlyingAsset', args),
2986
+ getUnderlyingBalances: (...args) => getRequest('getUnderlyingBalances', args),
2595
2987
  getUnderlyingAmount: (...args) => getRequest('getUnderlyingAmount', args),
2596
- getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
2597
- getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
2988
+ getUnderlyingAmountSafe: (...args) => getRequest('getUnderlyingAmountSafe', args),
2598
2989
  getUnderlyingData: (...args) => getRequest('getUnderlyingData', args),
2990
+ getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
2991
+ isRebasing: (...args) => getRequest('isRebasing', args),
2992
+ getPricePerShare: (...args) => getRequest('getPricePerShare', args),
2993
+ getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
2994
+ isEligibleVaultForTrialFunds: (...args) => getRequest('isEligibleVaultForTrialFunds', args),
2995
+ isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
2599
2996
  totalAssets: (...args) => getRequest('totalAssets', args),
2600
2997
  totalBorrows: (...args) => getRequest('totalBorrows', args),
2601
- getPricePerShare: (...args) => getRequest('getPricePerShare', args),
2998
+ canRegisterVaultToken: (...args) => getRequest('canRegisterVaultToken', args),
2602
2999
  getAccessForLego: (...args) => getRequest('getAccessForLego', args),
2603
- getPrice: (...args) => getRequest('getPrice', args),
3000
+ hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
2604
3001
  FLUID_RESOLVER: (...args) => getRequest('FLUID_RESOLVER', args),
2605
3002
  };
2606
3003
  function getMutation(functionName) {
@@ -2616,10 +3013,13 @@ export const mutation = {
2616
3013
  pause: getMutation('pause'),
2617
3014
  recoverFunds: getMutation('recoverFunds'),
2618
3015
  recoverFundsMany: getMutation('recoverFundsMany'),
3016
+ setSnapShotPriceConfig: getMutation('setSnapShotPriceConfig'),
3017
+ registerVaultTokenLocally: getMutation('registerVaultTokenLocally'),
3018
+ deregisterVaultTokenLocally: getMutation('deregisterVaultTokenLocally'),
3019
+ addPriceSnapshot: getMutation('addPriceSnapshot'),
2619
3020
  depositForYield: getMutation('depositForYield'),
2620
3021
  withdrawFromYield: getMutation('withdrawFromYield'),
2621
- addAssetOpportunity: getMutation('addAssetOpportunity'),
2622
- removeAssetOpportunity: getMutation('removeAssetOpportunity'),
3022
+ claimRewards: getMutation('claimRewards'),
2623
3023
  swapTokens: getMutation('swapTokens'),
2624
3024
  mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
2625
3025
  confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
@@ -2627,7 +3027,6 @@ export const mutation = {
2627
3027
  removeCollateral: getMutation('removeCollateral'),
2628
3028
  borrow: getMutation('borrow'),
2629
3029
  repayDebt: getMutation('repayDebt'),
2630
- claimRewards: getMutation('claimRewards'),
2631
3030
  addLiquidity: getMutation('addLiquidity'),
2632
3031
  removeLiquidity: getMutation('removeLiquidity'),
2633
3032
  addLiquidityConcentrated: getMutation('addLiquidityConcentrated'),
@@ -2645,41 +3044,52 @@ export function toSdk(publicClient, walletClient) {
2645
3044
  getAssets: (...args) => singleQuery(publicClient, call.getAssets(...args)),
2646
3045
  isAssetOpportunity: (...args) => singleQuery(publicClient, call.isAssetOpportunity(...args)),
2647
3046
  getNumLegoAssets: (...args) => singleQuery(publicClient, call.getNumLegoAssets(...args)),
2648
- isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
3047
+ getWeightedPricePerShare: (...args) => singleQuery(publicClient, call.getWeightedPricePerShare(...args)),
3048
+ getLatestSnapshot: (...args) => singleQuery(publicClient, call.getLatestSnapshot(...args)),
3049
+ isValidPriceConfig: (...args) => singleQuery(publicClient, call.isValidPriceConfig(...args)),
3050
+ vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
2649
3051
  assetOpportunities: (...args) => singleQuery(publicClient, call.assetOpportunities(...args)),
2650
3052
  indexOfAssetOpportunity: (...args) => singleQuery(publicClient, call.indexOfAssetOpportunity(...args)),
2651
3053
  numAssetOpportunities: (...args) => singleQuery(publicClient, call.numAssetOpportunities(...args)),
2652
- vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
2653
3054
  assets: (...args) => singleQuery(publicClient, call.assets(...args)),
2654
3055
  indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
2655
3056
  numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args)),
3057
+ snapShotData: (...args) => singleQuery(publicClient, call.snapShotData(...args)),
3058
+ snapShots: (...args) => singleQuery(publicClient, call.snapShots(...args)),
3059
+ snapShotPriceConfig: (...args) => singleQuery(publicClient, call.snapShotPriceConfig(...args)),
3060
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
2656
3061
  hasCapability: (...args) => singleQuery(publicClient, call.hasCapability(...args)),
2657
3062
  getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args)),
2658
3063
  isYieldLego: (...args) => singleQuery(publicClient, call.isYieldLego(...args)),
2659
3064
  isDexLego: (...args) => singleQuery(publicClient, call.isDexLego(...args)),
2660
- isEligibleVaultForTrialFunds: (...args) => singleQuery(publicClient, call.isEligibleVaultForTrialFunds(...args)),
2661
- isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
2662
- isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
2663
- isVaultToken: (...args) => singleQuery(publicClient, call.isVaultToken(...args)),
2664
3065
  getUnderlyingAsset: (...args) => singleQuery(publicClient, call.getUnderlyingAsset(...args)),
3066
+ getUnderlyingBalances: (...args) => singleQuery(publicClient, call.getUnderlyingBalances(...args)),
2665
3067
  getUnderlyingAmount: (...args) => singleQuery(publicClient, call.getUnderlyingAmount(...args)),
2666
- getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
2667
- getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3068
+ getUnderlyingAmountSafe: (...args) => singleQuery(publicClient, call.getUnderlyingAmountSafe(...args)),
2668
3069
  getUnderlyingData: (...args) => singleQuery(publicClient, call.getUnderlyingData(...args)),
3070
+ getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3071
+ isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
3072
+ getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
3073
+ getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
3074
+ isEligibleVaultForTrialFunds: (...args) => singleQuery(publicClient, call.isEligibleVaultForTrialFunds(...args)),
3075
+ isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
2669
3076
  totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args)),
2670
3077
  totalBorrows: (...args) => singleQuery(publicClient, call.totalBorrows(...args)),
2671
- getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
3078
+ canRegisterVaultToken: (...args) => singleQuery(publicClient, call.canRegisterVaultToken(...args)),
2672
3079
  getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
2673
- getPrice: (...args) => singleQuery(publicClient, call.getPrice(...args)),
3080
+ hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
2674
3081
  FLUID_RESOLVER: (...args) => singleQuery(publicClient, call.FLUID_RESOLVER(...args)),
2675
3082
  // Mutations
2676
3083
  pause: (...args) => mutate(walletClient, mutation.pause)(...args),
2677
3084
  recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
2678
3085
  recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
3086
+ setSnapShotPriceConfig: (...args) => mutate(walletClient, mutation.setSnapShotPriceConfig)(...args),
3087
+ registerVaultTokenLocally: (...args) => mutate(walletClient, mutation.registerVaultTokenLocally)(...args),
3088
+ deregisterVaultTokenLocally: (...args) => mutate(walletClient, mutation.deregisterVaultTokenLocally)(...args),
3089
+ addPriceSnapshot: (...args) => mutate(walletClient, mutation.addPriceSnapshot)(...args),
2679
3090
  depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
2680
3091
  withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
2681
- addAssetOpportunity: (...args) => mutate(walletClient, mutation.addAssetOpportunity)(...args),
2682
- removeAssetOpportunity: (...args) => mutate(walletClient, mutation.removeAssetOpportunity)(...args),
3092
+ claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
2683
3093
  swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
2684
3094
  mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset)(...args),
2685
3095
  confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset)(...args),
@@ -2687,7 +3097,6 @@ export function toSdk(publicClient, walletClient) {
2687
3097
  removeCollateral: (...args) => mutate(walletClient, mutation.removeCollateral)(...args),
2688
3098
  borrow: (...args) => mutate(walletClient, mutation.borrow)(...args),
2689
3099
  repayDebt: (...args) => mutate(walletClient, mutation.repayDebt)(...args),
2690
- claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
2691
3100
  addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity)(...args),
2692
3101
  removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity)(...args),
2693
3102
  addLiquidityConcentrated: (...args) => mutate(walletClient, mutation.addLiquidityConcentrated)(...args),