@underscore-finance/sdk 1.0.12 → 1.1.2

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