@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: [
@@ -210,6 +237,10 @@ export const abi = [
210
237
  name: 'billing',
211
238
  type: 'address',
212
239
  },
240
+ {
241
+ name: 'vaultRegistry',
242
+ type: 'address',
243
+ },
213
244
  ],
214
245
  },
215
246
  ],
@@ -352,40 +383,155 @@ export const abi = [
352
383
  {
353
384
  stateMutability: 'view',
354
385
  type: 'function',
355
- name: 'isPaused',
356
- inputs: [],
386
+ name: 'getWeightedPricePerShare',
387
+ inputs: [
388
+ {
389
+ name: '_vaultToken',
390
+ type: 'address',
391
+ },
392
+ ],
357
393
  outputs: [
358
394
  {
359
395
  name: '',
360
- type: 'bool',
396
+ type: 'uint256',
361
397
  },
362
398
  ],
363
399
  },
364
400
  {
365
401
  stateMutability: 'view',
366
402
  type: 'function',
367
- name: 'assetOpportunities',
403
+ name: 'getLatestSnapshot',
368
404
  inputs: [
369
405
  {
370
- name: 'arg0',
406
+ name: '_vaultToken',
371
407
  type: 'address',
372
408
  },
373
409
  {
374
- name: 'arg1',
410
+ name: '_pricePerShare',
375
411
  type: 'uint256',
376
412
  },
377
413
  ],
378
414
  outputs: [
379
415
  {
380
416
  name: '',
417
+ type: 'tuple',
418
+ components: [
419
+ {
420
+ name: 'totalSupply',
421
+ type: 'uint256',
422
+ },
423
+ {
424
+ name: 'pricePerShare',
425
+ type: 'uint256',
426
+ },
427
+ {
428
+ name: 'lastUpdate',
429
+ type: 'uint256',
430
+ },
431
+ ],
432
+ },
433
+ ],
434
+ },
435
+ {
436
+ stateMutability: 'nonpayable',
437
+ type: 'function',
438
+ name: 'setSnapShotPriceConfig',
439
+ inputs: [
440
+ {
441
+ name: '_config',
442
+ type: 'tuple',
443
+ components: [
444
+ {
445
+ name: 'minSnapshotDelay',
446
+ type: 'uint256',
447
+ },
448
+ {
449
+ name: 'maxNumSnapshots',
450
+ type: 'uint256',
451
+ },
452
+ {
453
+ name: 'maxUpsideDeviation',
454
+ type: 'uint256',
455
+ },
456
+ {
457
+ name: 'staleTime',
458
+ type: 'uint256',
459
+ },
460
+ ],
461
+ },
462
+ ],
463
+ outputs: [],
464
+ },
465
+ {
466
+ stateMutability: 'view',
467
+ type: 'function',
468
+ name: 'isValidPriceConfig',
469
+ inputs: [
470
+ {
471
+ name: '_config',
472
+ type: 'tuple',
473
+ components: [
474
+ {
475
+ name: 'minSnapshotDelay',
476
+ type: 'uint256',
477
+ },
478
+ {
479
+ name: 'maxNumSnapshots',
480
+ type: 'uint256',
481
+ },
482
+ {
483
+ name: 'maxUpsideDeviation',
484
+ type: 'uint256',
485
+ },
486
+ {
487
+ name: 'staleTime',
488
+ type: 'uint256',
489
+ },
490
+ ],
491
+ },
492
+ ],
493
+ outputs: [
494
+ {
495
+ name: '',
496
+ type: 'bool',
497
+ },
498
+ ],
499
+ },
500
+ {
501
+ stateMutability: 'view',
502
+ type: 'function',
503
+ name: 'vaultToAsset',
504
+ inputs: [
505
+ {
506
+ name: 'arg0',
381
507
  type: 'address',
382
508
  },
383
509
  ],
510
+ outputs: [
511
+ {
512
+ name: '',
513
+ type: 'tuple',
514
+ components: [
515
+ {
516
+ name: 'underlyingAsset',
517
+ type: 'address',
518
+ },
519
+ {
520
+ name: 'decimals',
521
+ type: 'uint256',
522
+ },
523
+ {
524
+ name: 'lastAveragePricePerShare',
525
+ type: 'uint256',
526
+ },
527
+ ],
528
+ },
529
+ ],
384
530
  },
385
531
  {
386
532
  stateMutability: 'view',
387
533
  type: 'function',
388
- name: 'indexOfAssetOpportunity',
534
+ name: 'assetOpportunities',
389
535
  inputs: [
390
536
  {
391
537
  name: 'arg0',
@@ -393,25 +539,29 @@ export const abi = [
393
539
  },
394
540
  {
395
541
  name: 'arg1',
396
- type: 'address',
542
+ type: 'uint256',
397
543
  },
398
544
  ],
399
545
  outputs: [
400
546
  {
401
547
  name: '',
402
- type: 'uint256',
548
+ type: 'address',
403
549
  },
404
550
  ],
405
551
  },
406
552
  {
407
553
  stateMutability: 'view',
408
554
  type: 'function',
409
- name: 'numAssetOpportunities',
555
+ name: 'indexOfAssetOpportunity',
410
556
  inputs: [
411
557
  {
412
558
  name: 'arg0',
413
559
  type: 'address',
414
560
  },
561
+ {
562
+ name: 'arg1',
563
+ type: 'address',
564
+ },
415
565
  ],
416
566
  outputs: [
417
567
  {
@@ -423,7 +573,7 @@ export const abi = [
423
573
  {
424
574
  stateMutability: 'view',
425
575
  type: 'function',
426
- name: 'vaultToAsset',
576
+ name: 'numAssetOpportunities',
427
577
  inputs: [
428
578
  {
429
579
  name: 'arg0',
@@ -433,7 +583,7 @@ export const abi = [
433
583
  outputs: [
434
584
  {
435
585
  name: '',
436
- type: 'address',
586
+ type: 'uint256',
437
587
  },
438
588
  ],
439
589
  },
@@ -486,48 +636,113 @@ export const abi = [
486
636
  {
487
637
  stateMutability: 'view',
488
638
  type: 'function',
489
- name: 'hasCapability',
639
+ name: 'snapShotData',
490
640
  inputs: [
491
641
  {
492
- name: '_action',
493
- type: 'uint256',
642
+ name: 'arg0',
643
+ type: 'address',
494
644
  },
495
645
  ],
496
646
  outputs: [
497
647
  {
498
648
  name: '',
499
- type: 'bool',
649
+ type: 'tuple',
650
+ components: [
651
+ {
652
+ name: 'lastSnapShot',
653
+ type: 'tuple',
654
+ components: [
655
+ {
656
+ name: 'totalSupply',
657
+ type: 'uint256',
658
+ },
659
+ {
660
+ name: 'pricePerShare',
661
+ type: 'uint256',
662
+ },
663
+ {
664
+ name: 'lastUpdate',
665
+ type: 'uint256',
666
+ },
667
+ ],
668
+ },
669
+ {
670
+ name: 'nextIndex',
671
+ type: 'uint256',
672
+ },
673
+ ],
500
674
  },
501
675
  ],
502
676
  },
503
677
  {
504
678
  stateMutability: 'view',
505
679
  type: 'function',
506
- name: 'getRegistries',
507
- inputs: [],
680
+ name: 'snapShots',
681
+ inputs: [
682
+ {
683
+ name: 'arg0',
684
+ type: 'address',
685
+ },
686
+ {
687
+ name: 'arg1',
688
+ type: 'uint256',
689
+ },
690
+ ],
508
691
  outputs: [
509
692
  {
510
693
  name: '',
511
- type: 'address[]',
694
+ type: 'tuple',
695
+ components: [
696
+ {
697
+ name: 'totalSupply',
698
+ type: 'uint256',
699
+ },
700
+ {
701
+ name: 'pricePerShare',
702
+ type: 'uint256',
703
+ },
704
+ {
705
+ name: 'lastUpdate',
706
+ type: 'uint256',
707
+ },
708
+ ],
512
709
  },
513
710
  ],
514
711
  },
515
712
  {
516
713
  stateMutability: 'view',
517
714
  type: 'function',
518
- name: 'isYieldLego',
715
+ name: 'snapShotPriceConfig',
519
716
  inputs: [],
520
717
  outputs: [
521
718
  {
522
719
  name: '',
523
- type: 'bool',
720
+ type: 'tuple',
721
+ components: [
722
+ {
723
+ name: 'minSnapshotDelay',
724
+ type: 'uint256',
725
+ },
726
+ {
727
+ name: 'maxNumSnapshots',
728
+ type: 'uint256',
729
+ },
730
+ {
731
+ name: 'maxUpsideDeviation',
732
+ type: 'uint256',
733
+ },
734
+ {
735
+ name: 'staleTime',
736
+ type: 'uint256',
737
+ },
738
+ ],
524
739
  },
525
740
  ],
526
741
  },
527
742
  {
528
743
  stateMutability: 'view',
529
744
  type: 'function',
530
- name: 'isDexLego',
745
+ name: 'isPaused',
531
746
  inputs: [],
532
747
  outputs: [
533
748
  {
@@ -539,15 +754,11 @@ export const abi = [
539
754
  {
540
755
  stateMutability: 'view',
541
756
  type: 'function',
542
- name: 'isEligibleVaultForTrialFunds',
757
+ name: 'hasCapability',
543
758
  inputs: [
544
759
  {
545
- name: '_vaultToken',
546
- type: 'address',
547
- },
548
- {
549
- name: '_underlyingAsset',
550
- type: 'address',
760
+ name: '_action',
761
+ type: 'uint256',
551
762
  },
552
763
  ],
553
764
  outputs: [
@@ -560,13 +771,20 @@ export const abi = [
560
771
  {
561
772
  stateMutability: 'view',
562
773
  type: 'function',
563
- name: 'isEligibleForYieldBonus',
564
- inputs: [
774
+ name: 'getRegistries',
775
+ inputs: [],
776
+ outputs: [
565
777
  {
566
- name: '_asset',
567
- type: 'address',
778
+ name: '',
779
+ type: 'address[]',
568
780
  },
569
781
  ],
782
+ },
783
+ {
784
+ stateMutability: 'view',
785
+ type: 'function',
786
+ name: 'isYieldLego',
787
+ inputs: [],
570
788
  outputs: [
571
789
  {
572
790
  name: '',
@@ -577,7 +795,7 @@ export const abi = [
577
795
  {
578
796
  stateMutability: 'view',
579
797
  type: 'function',
580
- name: 'isRebasing',
798
+ name: 'isDexLego',
581
799
  inputs: [],
582
800
  outputs: [
583
801
  {
@@ -587,29 +805,34 @@ export const abi = [
587
805
  ],
588
806
  },
589
807
  {
590
- stateMutability: 'nonpayable',
808
+ stateMutability: 'view',
591
809
  type: 'function',
592
- name: 'depositForYield',
810
+ name: 'getUnderlyingAsset',
593
811
  inputs: [
594
812
  {
595
- name: '_asset',
813
+ name: '_vaultToken',
596
814
  type: 'address',
597
815
  },
816
+ ],
817
+ outputs: [
598
818
  {
599
- name: '_amount',
600
- type: 'uint256',
601
- },
602
- {
603
- name: '_vaultAddr',
819
+ name: '',
604
820
  type: 'address',
605
821
  },
822
+ ],
823
+ },
824
+ {
825
+ stateMutability: 'view',
826
+ type: 'function',
827
+ name: 'getUnderlyingBalances',
828
+ inputs: [
606
829
  {
607
- name: '_extraData',
608
- type: 'bytes32',
830
+ name: '_vaultToken',
831
+ type: 'address',
609
832
  },
610
833
  {
611
- name: '_recipient',
612
- type: 'address',
834
+ name: '_vaultTokenBalance',
835
+ type: 'uint256',
613
836
  },
614
837
  ],
615
838
  outputs: [
@@ -619,12 +842,25 @@ export const abi = [
619
842
  },
620
843
  {
621
844
  name: '',
845
+ type: 'uint256',
846
+ },
847
+ ],
848
+ },
849
+ {
850
+ stateMutability: 'view',
851
+ type: 'function',
852
+ name: 'getUnderlyingAmount',
853
+ inputs: [
854
+ {
855
+ name: '_vaultToken',
622
856
  type: 'address',
623
857
  },
624
858
  {
625
- name: '',
859
+ name: '_vaultTokenAmount',
626
860
  type: 'uint256',
627
861
  },
862
+ ],
863
+ outputs: [
628
864
  {
629
865
  name: '',
630
866
  type: 'uint256',
@@ -632,58 +868,74 @@ export const abi = [
632
868
  ],
633
869
  },
634
870
  {
635
- stateMutability: 'nonpayable',
871
+ stateMutability: 'view',
636
872
  type: 'function',
637
- name: 'depositForYield',
873
+ name: 'getUnderlyingAmountSafe',
638
874
  inputs: [
639
875
  {
640
- name: '_asset',
876
+ name: '_vaultToken',
641
877
  type: 'address',
642
878
  },
643
879
  {
644
- name: '_amount',
880
+ name: '_vaultTokenBalance',
645
881
  type: 'uint256',
646
882
  },
883
+ ],
884
+ outputs: [
647
885
  {
648
- name: '_vaultAddr',
886
+ name: '',
887
+ type: 'uint256',
888
+ },
889
+ ],
890
+ },
891
+ {
892
+ stateMutability: 'view',
893
+ type: 'function',
894
+ name: 'getUnderlyingData',
895
+ inputs: [
896
+ {
897
+ name: '_vaultToken',
649
898
  type: 'address',
650
899
  },
651
900
  {
652
- name: '_extraData',
653
- type: 'bytes32',
901
+ name: '_vaultTokenAmount',
902
+ type: 'uint256',
654
903
  },
904
+ ],
905
+ outputs: [
655
906
  {
656
- name: '_recipient',
907
+ name: '',
657
908
  type: 'address',
658
909
  },
659
910
  {
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
- ],
911
+ name: '',
912
+ type: 'uint256',
680
913
  },
681
- ],
682
- outputs: [
683
914
  {
684
915
  name: '',
685
916
  type: 'uint256',
686
917
  },
918
+ ],
919
+ },
920
+ {
921
+ stateMutability: 'view',
922
+ type: 'function',
923
+ name: 'getUnderlyingData',
924
+ inputs: [
925
+ {
926
+ name: '_vaultToken',
927
+ type: 'address',
928
+ },
929
+ {
930
+ name: '_vaultTokenAmount',
931
+ type: 'uint256',
932
+ },
933
+ {
934
+ name: '_appraiser',
935
+ type: 'address',
936
+ },
937
+ ],
938
+ outputs: [
687
939
  {
688
940
  name: '',
689
941
  type: 'address',
@@ -699,88 +951,92 @@ export const abi = [
699
951
  ],
700
952
  },
701
953
  {
702
- stateMutability: 'nonpayable',
954
+ stateMutability: 'view',
703
955
  type: 'function',
704
- name: 'withdrawFromYield',
956
+ name: 'getUsdValueOfVaultToken',
705
957
  inputs: [
706
958
  {
707
959
  name: '_vaultToken',
708
960
  type: 'address',
709
961
  },
710
962
  {
711
- name: '_amount',
963
+ name: '_vaultTokenAmount',
712
964
  type: 'uint256',
713
965
  },
966
+ ],
967
+ outputs: [
714
968
  {
715
- name: '_extraData',
716
- type: 'bytes32',
969
+ name: '',
970
+ type: 'uint256',
717
971
  },
972
+ ],
973
+ },
974
+ {
975
+ stateMutability: 'view',
976
+ type: 'function',
977
+ name: 'getUsdValueOfVaultToken',
978
+ inputs: [
718
979
  {
719
- name: '_recipient',
980
+ name: '_vaultToken',
720
981
  type: 'address',
721
982
  },
722
- ],
723
- outputs: [
724
983
  {
725
- name: '',
984
+ name: '_vaultTokenAmount',
726
985
  type: 'uint256',
727
986
  },
728
987
  {
729
- name: '',
988
+ name: '_appraiser',
730
989
  type: 'address',
731
990
  },
991
+ ],
992
+ outputs: [
732
993
  {
733
994
  name: '',
734
995
  type: 'uint256',
735
996
  },
997
+ ],
998
+ },
999
+ {
1000
+ stateMutability: 'view',
1001
+ type: 'function',
1002
+ name: 'isRebasing',
1003
+ inputs: [],
1004
+ outputs: [
736
1005
  {
737
1006
  name: '',
738
- type: 'uint256',
1007
+ type: 'bool',
739
1008
  },
740
1009
  ],
741
1010
  },
742
1011
  {
743
- stateMutability: 'nonpayable',
1012
+ stateMutability: 'view',
744
1013
  type: 'function',
745
- name: 'withdrawFromYield',
1014
+ name: 'getPricePerShare',
746
1015
  inputs: [
747
1016
  {
748
1017
  name: '_vaultToken',
749
1018
  type: 'address',
750
1019
  },
1020
+ ],
1021
+ outputs: [
751
1022
  {
752
- name: '_amount',
1023
+ name: '',
753
1024
  type: 'uint256',
754
1025
  },
1026
+ ],
1027
+ },
1028
+ {
1029
+ stateMutability: 'view',
1030
+ type: 'function',
1031
+ name: 'getPricePerShare',
1032
+ inputs: [
755
1033
  {
756
- name: '_extraData',
757
- type: 'bytes32',
758
- },
759
- {
760
- name: '_recipient',
1034
+ name: '_vaultToken',
761
1035
  type: 'address',
762
1036
  },
763
1037
  {
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
- ],
1038
+ name: '_decimals',
1039
+ type: 'uint256',
784
1040
  },
785
1041
  ],
786
1042
  outputs: [
@@ -788,14 +1044,27 @@ export const abi = [
788
1044
  name: '',
789
1045
  type: 'uint256',
790
1046
  },
1047
+ ],
1048
+ },
1049
+ {
1050
+ stateMutability: 'view',
1051
+ type: 'function',
1052
+ name: 'getVaultTokenAmount',
1053
+ inputs: [
791
1054
  {
792
- name: '',
1055
+ name: '_asset',
793
1056
  type: 'address',
794
1057
  },
795
1058
  {
796
- name: '',
1059
+ name: '_assetAmount',
797
1060
  type: 'uint256',
798
1061
  },
1062
+ {
1063
+ name: '_vaultToken',
1064
+ type: 'address',
1065
+ },
1066
+ ],
1067
+ outputs: [
799
1068
  {
800
1069
  name: '',
801
1070
  type: 'uint256',
@@ -805,12 +1074,16 @@ export const abi = [
805
1074
  {
806
1075
  stateMutability: 'view',
807
1076
  type: 'function',
808
- name: 'isVaultToken',
1077
+ name: 'isEligibleVaultForTrialFunds',
809
1078
  inputs: [
810
1079
  {
811
1080
  name: '_vaultToken',
812
1081
  type: 'address',
813
1082
  },
1083
+ {
1084
+ name: '_underlyingAsset',
1085
+ type: 'address',
1086
+ },
814
1087
  ],
815
1088
  outputs: [
816
1089
  {
@@ -822,34 +1095,47 @@ export const abi = [
822
1095
  {
823
1096
  stateMutability: 'view',
824
1097
  type: 'function',
825
- name: 'getUnderlyingAsset',
1098
+ name: 'isEligibleForYieldBonus',
826
1099
  inputs: [
827
1100
  {
828
- name: '_vaultToken',
1101
+ name: '_asset',
829
1102
  type: 'address',
830
1103
  },
831
1104
  ],
832
1105
  outputs: [
833
1106
  {
834
1107
  name: '',
835
- type: 'address',
1108
+ type: 'bool',
836
1109
  },
837
1110
  ],
838
1111
  },
839
1112
  {
840
1113
  stateMutability: 'view',
841
1114
  type: 'function',
842
- name: 'getUnderlyingAmount',
1115
+ name: 'totalAssets',
843
1116
  inputs: [
844
1117
  {
845
1118
  name: '_vaultToken',
846
1119
  type: 'address',
847
1120
  },
1121
+ ],
1122
+ outputs: [
848
1123
  {
849
- name: '_vaultTokenAmount',
1124
+ name: '',
850
1125
  type: 'uint256',
851
1126
  },
852
1127
  ],
1128
+ },
1129
+ {
1130
+ stateMutability: 'view',
1131
+ type: 'function',
1132
+ name: 'totalBorrows',
1133
+ inputs: [
1134
+ {
1135
+ name: '_vaultToken',
1136
+ type: 'address',
1137
+ },
1138
+ ],
853
1139
  outputs: [
854
1140
  {
855
1141
  name: '',
@@ -860,89 +1146,214 @@ export const abi = [
860
1146
  {
861
1147
  stateMutability: 'view',
862
1148
  type: 'function',
863
- name: 'getVaultTokenAmount',
1149
+ name: 'canRegisterVaultToken',
864
1150
  inputs: [
865
1151
  {
866
1152
  name: '_asset',
867
1153
  type: 'address',
868
1154
  },
869
1155
  {
870
- name: '_assetAmount',
871
- type: 'uint256',
1156
+ name: '_vaultToken',
1157
+ type: 'address',
1158
+ },
1159
+ ],
1160
+ outputs: [
1161
+ {
1162
+ name: '',
1163
+ type: 'bool',
872
1164
  },
1165
+ ],
1166
+ },
1167
+ {
1168
+ stateMutability: 'nonpayable',
1169
+ type: 'function',
1170
+ name: 'registerVaultTokenLocally',
1171
+ inputs: [
873
1172
  {
874
- name: '_vaultToken',
1173
+ name: '_asset',
1174
+ type: 'address',
1175
+ },
1176
+ {
1177
+ name: '_vaultAddr',
875
1178
  type: 'address',
876
1179
  },
877
1180
  ],
878
1181
  outputs: [
879
1182
  {
880
1183
  name: '',
881
- type: 'uint256',
1184
+ type: 'tuple',
1185
+ components: [
1186
+ {
1187
+ name: 'underlyingAsset',
1188
+ type: 'address',
1189
+ },
1190
+ {
1191
+ name: 'decimals',
1192
+ type: 'uint256',
1193
+ },
1194
+ {
1195
+ name: 'lastAveragePricePerShare',
1196
+ type: 'uint256',
1197
+ },
1198
+ ],
882
1199
  },
883
1200
  ],
884
1201
  },
885
1202
  {
886
- stateMutability: 'view',
1203
+ stateMutability: 'nonpayable',
887
1204
  type: 'function',
888
- name: 'getUsdValueOfVaultToken',
1205
+ name: 'deregisterVaultTokenLocally',
889
1206
  inputs: [
890
1207
  {
891
- name: '_vaultToken',
1208
+ name: '_asset',
892
1209
  type: 'address',
893
1210
  },
894
1211
  {
895
- name: '_vaultTokenAmount',
1212
+ name: '_vaultAddr',
1213
+ type: 'address',
1214
+ },
1215
+ ],
1216
+ outputs: [],
1217
+ },
1218
+ {
1219
+ stateMutability: 'nonpayable',
1220
+ type: 'function',
1221
+ name: 'depositForYield',
1222
+ inputs: [
1223
+ {
1224
+ name: '_asset',
1225
+ type: 'address',
1226
+ },
1227
+ {
1228
+ name: '_amount',
896
1229
  type: 'uint256',
897
1230
  },
1231
+ {
1232
+ name: '_vaultAddr',
1233
+ type: 'address',
1234
+ },
1235
+ {
1236
+ name: '_extraData',
1237
+ type: 'bytes32',
1238
+ },
1239
+ {
1240
+ name: '_recipient',
1241
+ type: 'address',
1242
+ },
898
1243
  ],
899
1244
  outputs: [
900
1245
  {
901
1246
  name: '',
902
1247
  type: 'uint256',
903
1248
  },
1249
+ {
1250
+ name: '',
1251
+ type: 'address',
1252
+ },
1253
+ {
1254
+ name: '',
1255
+ type: 'uint256',
1256
+ },
1257
+ {
1258
+ name: '',
1259
+ type: 'uint256',
1260
+ },
904
1261
  ],
905
1262
  },
906
1263
  {
907
- stateMutability: 'view',
1264
+ stateMutability: 'nonpayable',
908
1265
  type: 'function',
909
- name: 'getUsdValueOfVaultToken',
1266
+ name: 'depositForYield',
910
1267
  inputs: [
911
1268
  {
912
- name: '_vaultToken',
1269
+ name: '_asset',
913
1270
  type: 'address',
914
1271
  },
915
1272
  {
916
- name: '_vaultTokenAmount',
1273
+ name: '_amount',
917
1274
  type: 'uint256',
918
1275
  },
919
1276
  {
920
- name: '_appraiser',
1277
+ name: '_vaultAddr',
921
1278
  type: 'address',
922
1279
  },
1280
+ {
1281
+ name: '_extraData',
1282
+ type: 'bytes32',
1283
+ },
1284
+ {
1285
+ name: '_recipient',
1286
+ type: 'address',
1287
+ },
1288
+ {
1289
+ name: '_miniAddys',
1290
+ type: 'tuple',
1291
+ components: [
1292
+ {
1293
+ name: 'ledger',
1294
+ type: 'address',
1295
+ },
1296
+ {
1297
+ name: 'missionControl',
1298
+ type: 'address',
1299
+ },
1300
+ {
1301
+ name: 'legoBook',
1302
+ type: 'address',
1303
+ },
1304
+ {
1305
+ name: 'appraiser',
1306
+ type: 'address',
1307
+ },
1308
+ ],
1309
+ },
923
1310
  ],
924
1311
  outputs: [
925
1312
  {
926
1313
  name: '',
927
1314
  type: 'uint256',
928
1315
  },
1316
+ {
1317
+ name: '',
1318
+ type: 'address',
1319
+ },
1320
+ {
1321
+ name: '',
1322
+ type: 'uint256',
1323
+ },
1324
+ {
1325
+ name: '',
1326
+ type: 'uint256',
1327
+ },
929
1328
  ],
930
1329
  },
931
1330
  {
932
- stateMutability: 'view',
1331
+ stateMutability: 'nonpayable',
933
1332
  type: 'function',
934
- name: 'getUnderlyingData',
1333
+ name: 'withdrawFromYield',
935
1334
  inputs: [
936
1335
  {
937
1336
  name: '_vaultToken',
938
1337
  type: 'address',
939
1338
  },
940
1339
  {
941
- name: '_vaultTokenAmount',
1340
+ name: '_amount',
942
1341
  type: 'uint256',
943
1342
  },
1343
+ {
1344
+ name: '_extraData',
1345
+ type: 'bytes32',
1346
+ },
1347
+ {
1348
+ name: '_recipient',
1349
+ type: 'address',
1350
+ },
944
1351
  ],
945
1352
  outputs: [
1353
+ {
1354
+ name: '',
1355
+ type: 'uint256',
1356
+ },
946
1357
  {
947
1358
  name: '',
948
1359
  type: 'address',
@@ -958,24 +1369,54 @@ export const abi = [
958
1369
  ],
959
1370
  },
960
1371
  {
961
- stateMutability: 'view',
1372
+ stateMutability: 'nonpayable',
962
1373
  type: 'function',
963
- name: 'getUnderlyingData',
1374
+ name: 'withdrawFromYield',
964
1375
  inputs: [
965
1376
  {
966
1377
  name: '_vaultToken',
967
1378
  type: 'address',
968
1379
  },
969
1380
  {
970
- name: '_vaultTokenAmount',
1381
+ name: '_amount',
971
1382
  type: 'uint256',
972
1383
  },
973
1384
  {
974
- name: '_appraiser',
1385
+ name: '_extraData',
1386
+ type: 'bytes32',
1387
+ },
1388
+ {
1389
+ name: '_recipient',
975
1390
  type: 'address',
976
1391
  },
1392
+ {
1393
+ name: '_miniAddys',
1394
+ type: 'tuple',
1395
+ components: [
1396
+ {
1397
+ name: 'ledger',
1398
+ type: 'address',
1399
+ },
1400
+ {
1401
+ name: 'missionControl',
1402
+ type: 'address',
1403
+ },
1404
+ {
1405
+ name: 'legoBook',
1406
+ type: 'address',
1407
+ },
1408
+ {
1409
+ name: 'appraiser',
1410
+ type: 'address',
1411
+ },
1412
+ ],
1413
+ },
977
1414
  ],
978
1415
  outputs: [
1416
+ {
1417
+ name: '',
1418
+ type: 'uint256',
1419
+ },
979
1420
  {
980
1421
  name: '',
981
1422
  type: 'address',
@@ -991,9 +1432,9 @@ export const abi = [
991
1432
  ],
992
1433
  },
993
1434
  {
994
- stateMutability: 'view',
1435
+ stateMutability: 'nonpayable',
995
1436
  type: 'function',
996
- name: 'totalAssets',
1437
+ name: 'addPriceSnapshot',
997
1438
  inputs: [
998
1439
  {
999
1440
  name: '_vaultToken',
@@ -1003,21 +1444,33 @@ export const abi = [
1003
1444
  outputs: [
1004
1445
  {
1005
1446
  name: '',
1006
- type: 'uint256',
1447
+ type: 'bool',
1007
1448
  },
1008
1449
  ],
1009
1450
  },
1010
1451
  {
1011
1452
  stateMutability: 'view',
1012
1453
  type: 'function',
1013
- name: 'totalBorrows',
1454
+ name: 'getAccessForLego',
1014
1455
  inputs: [
1015
1456
  {
1016
- name: '_vaultToken',
1457
+ name: '_user',
1458
+ type: 'address',
1459
+ },
1460
+ {
1461
+ name: '_action',
1462
+ type: 'uint256',
1463
+ },
1464
+ ],
1465
+ outputs: [
1466
+ {
1467
+ name: '',
1017
1468
  type: 'address',
1018
1469
  },
1019
- ],
1020
- outputs: [
1470
+ {
1471
+ name: '',
1472
+ type: 'string',
1473
+ },
1021
1474
  {
1022
1475
  name: '',
1023
1476
  type: 'uint256',
@@ -1025,57 +1478,109 @@ export const abi = [
1025
1478
  ],
1026
1479
  },
1027
1480
  {
1028
- stateMutability: 'view',
1481
+ stateMutability: 'nonpayable',
1029
1482
  type: 'function',
1030
- name: 'getPricePerShare',
1483
+ name: 'claimRewards',
1031
1484
  inputs: [
1032
1485
  {
1033
- name: '_asset',
1486
+ name: '_user',
1034
1487
  type: 'address',
1035
1488
  },
1036
1489
  {
1037
- name: '_decimals',
1490
+ name: '_rewardToken',
1491
+ type: 'address',
1492
+ },
1493
+ {
1494
+ name: '_rewardAmount',
1038
1495
  type: 'uint256',
1039
1496
  },
1497
+ {
1498
+ name: '_extraData',
1499
+ type: 'bytes32',
1500
+ },
1040
1501
  ],
1041
1502
  outputs: [
1042
1503
  {
1043
1504
  name: '',
1044
1505
  type: 'uint256',
1045
1506
  },
1507
+ {
1508
+ name: '',
1509
+ type: 'uint256',
1510
+ },
1046
1511
  ],
1047
1512
  },
1048
1513
  {
1049
1514
  stateMutability: 'nonpayable',
1050
1515
  type: 'function',
1051
- name: 'addAssetOpportunity',
1516
+ name: 'claimRewards',
1052
1517
  inputs: [
1053
1518
  {
1054
- name: '_asset',
1519
+ name: '_user',
1055
1520
  type: 'address',
1056
1521
  },
1057
1522
  {
1058
- name: '_vaultAddr',
1523
+ name: '_rewardToken',
1059
1524
  type: 'address',
1060
1525
  },
1526
+ {
1527
+ name: '_rewardAmount',
1528
+ type: 'uint256',
1529
+ },
1530
+ {
1531
+ name: '_extraData',
1532
+ type: 'bytes32',
1533
+ },
1534
+ {
1535
+ name: '_miniAddys',
1536
+ type: 'tuple',
1537
+ components: [
1538
+ {
1539
+ name: 'ledger',
1540
+ type: 'address',
1541
+ },
1542
+ {
1543
+ name: 'missionControl',
1544
+ type: 'address',
1545
+ },
1546
+ {
1547
+ name: 'legoBook',
1548
+ type: 'address',
1549
+ },
1550
+ {
1551
+ name: 'appraiser',
1552
+ type: 'address',
1553
+ },
1554
+ ],
1555
+ },
1556
+ ],
1557
+ outputs: [
1558
+ {
1559
+ name: '',
1560
+ type: 'uint256',
1561
+ },
1562
+ {
1563
+ name: '',
1564
+ type: 'uint256',
1565
+ },
1061
1566
  ],
1062
- outputs: [],
1063
1567
  },
1064
1568
  {
1065
- stateMutability: 'nonpayable',
1569
+ stateMutability: 'view',
1066
1570
  type: 'function',
1067
- name: 'removeAssetOpportunity',
1571
+ name: 'hasClaimableRewards',
1068
1572
  inputs: [
1069
1573
  {
1070
- name: '_asset',
1574
+ name: '_user',
1071
1575
  type: 'address',
1072
1576
  },
1577
+ ],
1578
+ outputs: [
1073
1579
  {
1074
- name: '_vaultAddr',
1075
- type: 'address',
1580
+ name: '',
1581
+ type: 'bool',
1076
1582
  },
1077
1583
  ],
1078
- outputs: [],
1079
1584
  },
1080
1585
  {
1081
1586
  stateMutability: 'nonpayable',
@@ -1741,94 +2246,6 @@ export const abi = [
1741
2246
  },
1742
2247
  ],
1743
2248
  },
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
2249
  {
1833
2250
  stateMutability: 'nonpayable',
1834
2251
  type: 'function',
@@ -2461,56 +2878,6 @@ export const abi = [
2461
2878
  },
2462
2879
  ],
2463
2880
  },
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
2881
  {
2515
2882
  stateMutability: 'view',
2516
2883
  type: 'function',
@@ -2555,7 +2922,7 @@ export const abi = [
2555
2922
  outputs: [],
2556
2923
  },
2557
2924
  ];
2558
- export const deployAddress = '0xb7401d91f1586474164B6c6Df328E3C3A5f24649';
2925
+ export const deployAddress = '0x826BD427D842E18d5FC60975983829F37f90f77b';
2559
2926
  function getRequest(method, args, contractAddressOrOptions) {
2560
2927
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2561
2928
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
@@ -2591,32 +2958,40 @@ export const call = {
2591
2958
  getAssets: (...args) => getRequest('getAssets', args),
2592
2959
  isAssetOpportunity: (...args) => getRequest('isAssetOpportunity', args),
2593
2960
  getNumLegoAssets: (...args) => getRequest('getNumLegoAssets', args),
2594
- isPaused: (...args) => getRequest('isPaused', args),
2961
+ getWeightedPricePerShare: (...args) => getRequest('getWeightedPricePerShare', args),
2962
+ getLatestSnapshot: (...args) => getRequest('getLatestSnapshot', args),
2963
+ isValidPriceConfig: (...args) => getRequest('isValidPriceConfig', args),
2964
+ vaultToAsset: (...args) => getRequest('vaultToAsset', args),
2595
2965
  assetOpportunities: (...args) => getRequest('assetOpportunities', args),
2596
2966
  indexOfAssetOpportunity: (...args) => getRequest('indexOfAssetOpportunity', args),
2597
2967
  numAssetOpportunities: (...args) => getRequest('numAssetOpportunities', args),
2598
- vaultToAsset: (...args) => getRequest('vaultToAsset', args),
2599
2968
  assets: (...args) => getRequest('assets', args),
2600
2969
  indexOfAsset: (...args) => getRequest('indexOfAsset', args),
2601
2970
  numAssets: (...args) => getRequest('numAssets', args),
2971
+ snapShotData: (...args) => getRequest('snapShotData', args),
2972
+ snapShots: (...args) => getRequest('snapShots', args),
2973
+ snapShotPriceConfig: (...args) => getRequest('snapShotPriceConfig', args),
2974
+ isPaused: (...args) => getRequest('isPaused', args),
2602
2975
  hasCapability: (...args) => getRequest('hasCapability', args),
2603
2976
  getRegistries: (...args) => getRequest('getRegistries', args),
2604
2977
  isYieldLego: (...args) => getRequest('isYieldLego', args),
2605
2978
  isDexLego: (...args) => getRequest('isDexLego', args),
2606
- isEligibleVaultForTrialFunds: (...args) => getRequest('isEligibleVaultForTrialFunds', args),
2607
- isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
2608
- isRebasing: (...args) => getRequest('isRebasing', args),
2609
- isVaultToken: (...args) => getRequest('isVaultToken', args),
2610
2979
  getUnderlyingAsset: (...args) => getRequest('getUnderlyingAsset', args),
2980
+ getUnderlyingBalances: (...args) => getRequest('getUnderlyingBalances', args),
2611
2981
  getUnderlyingAmount: (...args) => getRequest('getUnderlyingAmount', args),
2612
- getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
2613
- getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
2982
+ getUnderlyingAmountSafe: (...args) => getRequest('getUnderlyingAmountSafe', args),
2614
2983
  getUnderlyingData: (...args) => getRequest('getUnderlyingData', args),
2984
+ getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
2985
+ isRebasing: (...args) => getRequest('isRebasing', args),
2986
+ getPricePerShare: (...args) => getRequest('getPricePerShare', args),
2987
+ getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
2988
+ isEligibleVaultForTrialFunds: (...args) => getRequest('isEligibleVaultForTrialFunds', args),
2989
+ isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
2615
2990
  totalAssets: (...args) => getRequest('totalAssets', args),
2616
2991
  totalBorrows: (...args) => getRequest('totalBorrows', args),
2617
- getPricePerShare: (...args) => getRequest('getPricePerShare', args),
2992
+ canRegisterVaultToken: (...args) => getRequest('canRegisterVaultToken', args),
2618
2993
  getAccessForLego: (...args) => getRequest('getAccessForLego', args),
2619
- getPrice: (...args) => getRequest('getPrice', args),
2994
+ hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
2620
2995
  AAVE_V3_POOL: (...args) => getRequest('AAVE_V3_POOL', args),
2621
2996
  AAVE_V3_ADDRESS_PROVIDER: (...args) => getRequest('AAVE_V3_ADDRESS_PROVIDER', args),
2622
2997
  };
@@ -2633,10 +3008,13 @@ export const mutation = {
2633
3008
  pause: getMutation('pause'),
2634
3009
  recoverFunds: getMutation('recoverFunds'),
2635
3010
  recoverFundsMany: getMutation('recoverFundsMany'),
3011
+ setSnapShotPriceConfig: getMutation('setSnapShotPriceConfig'),
3012
+ registerVaultTokenLocally: getMutation('registerVaultTokenLocally'),
3013
+ deregisterVaultTokenLocally: getMutation('deregisterVaultTokenLocally'),
2636
3014
  depositForYield: getMutation('depositForYield'),
2637
3015
  withdrawFromYield: getMutation('withdrawFromYield'),
2638
- addAssetOpportunity: getMutation('addAssetOpportunity'),
2639
- removeAssetOpportunity: getMutation('removeAssetOpportunity'),
3016
+ addPriceSnapshot: getMutation('addPriceSnapshot'),
3017
+ claimRewards: getMutation('claimRewards'),
2640
3018
  swapTokens: getMutation('swapTokens'),
2641
3019
  mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
2642
3020
  confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
@@ -2644,7 +3022,6 @@ export const mutation = {
2644
3022
  removeCollateral: getMutation('removeCollateral'),
2645
3023
  borrow: getMutation('borrow'),
2646
3024
  repayDebt: getMutation('repayDebt'),
2647
- claimRewards: getMutation('claimRewards'),
2648
3025
  addLiquidity: getMutation('addLiquidity'),
2649
3026
  removeLiquidity: getMutation('removeLiquidity'),
2650
3027
  addLiquidityConcentrated: getMutation('addLiquidityConcentrated'),
@@ -2662,42 +3039,53 @@ export function toSdk(publicClient, walletClient) {
2662
3039
  getAssets: (...args) => singleQuery(publicClient, call.getAssets(...args)),
2663
3040
  isAssetOpportunity: (...args) => singleQuery(publicClient, call.isAssetOpportunity(...args)),
2664
3041
  getNumLegoAssets: (...args) => singleQuery(publicClient, call.getNumLegoAssets(...args)),
2665
- isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
3042
+ getWeightedPricePerShare: (...args) => singleQuery(publicClient, call.getWeightedPricePerShare(...args)),
3043
+ getLatestSnapshot: (...args) => singleQuery(publicClient, call.getLatestSnapshot(...args)),
3044
+ isValidPriceConfig: (...args) => singleQuery(publicClient, call.isValidPriceConfig(...args)),
3045
+ vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
2666
3046
  assetOpportunities: (...args) => singleQuery(publicClient, call.assetOpportunities(...args)),
2667
3047
  indexOfAssetOpportunity: (...args) => singleQuery(publicClient, call.indexOfAssetOpportunity(...args)),
2668
3048
  numAssetOpportunities: (...args) => singleQuery(publicClient, call.numAssetOpportunities(...args)),
2669
- vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
2670
3049
  assets: (...args) => singleQuery(publicClient, call.assets(...args)),
2671
3050
  indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
2672
3051
  numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args)),
3052
+ snapShotData: (...args) => singleQuery(publicClient, call.snapShotData(...args)),
3053
+ snapShots: (...args) => singleQuery(publicClient, call.snapShots(...args)),
3054
+ snapShotPriceConfig: (...args) => singleQuery(publicClient, call.snapShotPriceConfig(...args)),
3055
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
2673
3056
  hasCapability: (...args) => singleQuery(publicClient, call.hasCapability(...args)),
2674
3057
  getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args)),
2675
3058
  isYieldLego: (...args) => singleQuery(publicClient, call.isYieldLego(...args)),
2676
3059
  isDexLego: (...args) => singleQuery(publicClient, call.isDexLego(...args)),
2677
- isEligibleVaultForTrialFunds: (...args) => singleQuery(publicClient, call.isEligibleVaultForTrialFunds(...args)),
2678
- isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
2679
- isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
2680
- isVaultToken: (...args) => singleQuery(publicClient, call.isVaultToken(...args)),
2681
3060
  getUnderlyingAsset: (...args) => singleQuery(publicClient, call.getUnderlyingAsset(...args)),
3061
+ getUnderlyingBalances: (...args) => singleQuery(publicClient, call.getUnderlyingBalances(...args)),
2682
3062
  getUnderlyingAmount: (...args) => singleQuery(publicClient, call.getUnderlyingAmount(...args)),
2683
- getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
2684
- getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3063
+ getUnderlyingAmountSafe: (...args) => singleQuery(publicClient, call.getUnderlyingAmountSafe(...args)),
2685
3064
  getUnderlyingData: (...args) => singleQuery(publicClient, call.getUnderlyingData(...args)),
3065
+ getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3066
+ isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
3067
+ getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
3068
+ getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
3069
+ isEligibleVaultForTrialFunds: (...args) => singleQuery(publicClient, call.isEligibleVaultForTrialFunds(...args)),
3070
+ isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
2686
3071
  totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args)),
2687
3072
  totalBorrows: (...args) => singleQuery(publicClient, call.totalBorrows(...args)),
2688
- getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
3073
+ canRegisterVaultToken: (...args) => singleQuery(publicClient, call.canRegisterVaultToken(...args)),
2689
3074
  getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
2690
- getPrice: (...args) => singleQuery(publicClient, call.getPrice(...args)),
3075
+ hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
2691
3076
  AAVE_V3_POOL: (...args) => singleQuery(publicClient, call.AAVE_V3_POOL(...args)),
2692
3077
  AAVE_V3_ADDRESS_PROVIDER: (...args) => singleQuery(publicClient, call.AAVE_V3_ADDRESS_PROVIDER(...args)),
2693
3078
  // Mutations
2694
3079
  pause: (...args) => mutate(walletClient, mutation.pause)(...args),
2695
3080
  recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
2696
3081
  recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
3082
+ setSnapShotPriceConfig: (...args) => mutate(walletClient, mutation.setSnapShotPriceConfig)(...args),
3083
+ registerVaultTokenLocally: (...args) => mutate(walletClient, mutation.registerVaultTokenLocally)(...args),
3084
+ deregisterVaultTokenLocally: (...args) => mutate(walletClient, mutation.deregisterVaultTokenLocally)(...args),
2697
3085
  depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
2698
3086
  withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
2699
- addAssetOpportunity: (...args) => mutate(walletClient, mutation.addAssetOpportunity)(...args),
2700
- removeAssetOpportunity: (...args) => mutate(walletClient, mutation.removeAssetOpportunity)(...args),
3087
+ addPriceSnapshot: (...args) => mutate(walletClient, mutation.addPriceSnapshot)(...args),
3088
+ claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
2701
3089
  swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
2702
3090
  mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset)(...args),
2703
3091
  confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset)(...args),
@@ -2705,7 +3093,6 @@ export function toSdk(publicClient, walletClient) {
2705
3093
  removeCollateral: (...args) => mutate(walletClient, mutation.removeCollateral)(...args),
2706
3094
  borrow: (...args) => mutate(walletClient, mutation.borrow)(...args),
2707
3095
  repayDebt: (...args) => mutate(walletClient, mutation.repayDebt)(...args),
2708
- claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
2709
3096
  addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity)(...args),
2710
3097
  removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity)(...args),
2711
3098
  addLiquidityConcentrated: (...args) => mutate(walletClient, mutation.addLiquidityConcentrated)(...args),