@underscore-finance/sdk 1.0.11 → 1.1.2

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