@underscore-finance/sdk 1.0.12 → 1.2.1

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 (412) hide show
  1. package/dist/contracts/AaveV3.d.ts +688 -251
  2. package/dist/contracts/AaveV3.d.ts.map +1 -1
  3. package/dist/contracts/AaveV3.js +873 -340
  4. package/dist/contracts/AeroClassic.d.ts +85 -13
  5. package/dist/contracts/AeroClassic.d.ts.map +1 -1
  6. package/dist/contracts/AeroClassic.js +106 -17
  7. package/dist/contracts/AeroSlipstream.d.ts +120 -14
  8. package/dist/contracts/AeroSlipstream.d.ts.map +1 -1
  9. package/dist/contracts/AeroSlipstream.js +149 -18
  10. package/dist/contracts/{v0_2_Agent.d.ts → AgentSenderGeneric.d.ts} +2546 -1228
  11. package/dist/contracts/AgentSenderGeneric.d.ts.map +1 -0
  12. package/dist/contracts/{v0_2_Agent.js → AgentSenderGeneric.js} +3210 -1388
  13. package/dist/contracts/AgentSenderSpecial.d.ts +1968 -0
  14. package/dist/contracts/AgentSenderSpecial.d.ts.map +1 -0
  15. package/dist/contracts/AgentSenderSpecial.js +2509 -0
  16. package/dist/contracts/AgentWrapper.d.ts +170 -1462
  17. package/dist/contracts/AgentWrapper.d.ts.map +1 -1
  18. package/dist/contracts/AgentWrapper.js +262 -1869
  19. package/dist/contracts/{v0_3_Agent.d.ts → AgentWrapperV1.d.ts} +1983 -932
  20. package/dist/contracts/AgentWrapperV1.d.ts.map +1 -0
  21. package/dist/contracts/{Agent_v2.js → AgentWrapperV1.js} +2582 -1118
  22. package/dist/contracts/Appraiser.d.ts +22 -459
  23. package/dist/contracts/Appraiser.d.ts.map +1 -1
  24. package/dist/contracts/Appraiser.js +26 -596
  25. package/dist/contracts/Avantis.d.ts +2565 -0
  26. package/dist/contracts/Avantis.d.ts.map +1 -0
  27. package/dist/contracts/{v0_1_Agent.js → Avantis.js} +1674 -1790
  28. package/dist/contracts/Billing.d.ts +4 -68
  29. package/dist/contracts/Billing.d.ts.map +1 -1
  30. package/dist/contracts/Billing.js +5 -82
  31. package/dist/contracts/ChequeBook.d.ts +52 -1
  32. package/dist/contracts/ChequeBook.d.ts.map +1 -1
  33. package/dist/contracts/ChequeBook.js +53 -1
  34. package/dist/contracts/CompoundV3.d.ts +674 -251
  35. package/dist/contracts/CompoundV3.d.ts.map +1 -1
  36. package/dist/contracts/CompoundV3.js +819 -305
  37. package/dist/contracts/ConvertVaultToken.d.ts +63 -0
  38. package/dist/contracts/ConvertVaultToken.d.ts.map +1 -0
  39. package/dist/contracts/ConvertVaultToken.js +75 -0
  40. package/dist/contracts/Curve.d.ts +18 -17
  41. package/dist/contracts/Curve.d.ts.map +1 -1
  42. package/dist/contracts/Curve.js +23 -24
  43. package/dist/contracts/DefaultsBase.d.ts +45 -56
  44. package/dist/contracts/DefaultsBase.d.ts.map +1 -1
  45. package/dist/contracts/DefaultsBase.js +45 -59
  46. package/dist/contracts/EarnVault.d.ts +1680 -0
  47. package/dist/contracts/EarnVault.d.ts.map +1 -0
  48. package/dist/contracts/{UserWallet_v2.js → EarnVault.js} +898 -1245
  49. package/dist/contracts/EarnVaultAgent.d.ts +1004 -0
  50. package/dist/contracts/EarnVaultAgent.d.ts.map +1 -0
  51. package/dist/contracts/{v0_3_LegoSky.js → EarnVaultAgent.js} +640 -547
  52. package/dist/contracts/EarnVaultAgentSigHelper.d.ts +904 -0
  53. package/dist/contracts/EarnVaultAgentSigHelper.d.ts.map +1 -0
  54. package/dist/contracts/EarnVaultAgentSigHelper.js +1198 -0
  55. package/dist/contracts/Euler.d.ts +700 -255
  56. package/dist/contracts/Euler.d.ts.map +1 -1
  57. package/dist/contracts/Euler.js +834 -293
  58. package/dist/contracts/Fluid.d.ts +771 -284
  59. package/dist/contracts/Fluid.d.ts.map +1 -1
  60. package/dist/contracts/Fluid.js +925 -329
  61. package/dist/contracts/FortyAcres.d.ts +2579 -0
  62. package/dist/contracts/FortyAcres.d.ts.map +1 -0
  63. package/dist/contracts/FortyAcres.js +3274 -0
  64. package/dist/contracts/Hatchery.d.ts +6 -176
  65. package/dist/contracts/Hatchery.d.ts.map +1 -1
  66. package/dist/contracts/Hatchery.js +5 -225
  67. package/dist/contracts/HighCommand.d.ts +237 -1
  68. package/dist/contracts/HighCommand.d.ts.map +1 -1
  69. package/dist/contracts/HighCommand.js +259 -1
  70. package/dist/contracts/Kernel.d.ts +8 -0
  71. package/dist/contracts/Kernel.d.ts.map +1 -1
  72. package/dist/contracts/Kernel.js +9 -1
  73. package/dist/contracts/LegoBook.d.ts +7 -0
  74. package/dist/contracts/LegoBook.d.ts.map +1 -1
  75. package/dist/contracts/LegoBook.js +9 -1
  76. package/dist/contracts/LegoTools.d.ts +4 -0
  77. package/dist/contracts/LegoTools.d.ts.map +1 -1
  78. package/dist/contracts/LegoTools.js +5 -1
  79. package/dist/contracts/LevgVaultHelper.d.ts +1070 -0
  80. package/dist/contracts/LevgVaultHelper.d.ts.map +1 -0
  81. package/dist/contracts/{LegoCurve.js → LevgVaultHelper.js} +662 -767
  82. package/dist/contracts/LootDistributor.d.ts +49 -131
  83. package/dist/contracts/LootDistributor.d.ts.map +1 -1
  84. package/dist/contracts/LootDistributor.js +58 -157
  85. package/dist/contracts/Migrator.d.ts +4 -0
  86. package/dist/contracts/Migrator.d.ts.map +1 -1
  87. package/dist/contracts/Migrator.js +5 -1
  88. package/dist/contracts/MissionControl.d.ts +211 -295
  89. package/dist/contracts/MissionControl.d.ts.map +1 -1
  90. package/dist/contracts/MissionControl.js +216 -305
  91. package/dist/contracts/Moonwell.d.ts +696 -251
  92. package/dist/contracts/Moonwell.d.ts.map +1 -1
  93. package/dist/contracts/Moonwell.js +832 -291
  94. package/dist/contracts/Morpho.d.ts +719 -274
  95. package/dist/contracts/Morpho.d.ts.map +1 -1
  96. package/dist/contracts/Morpho.js +849 -308
  97. package/dist/contracts/Paymaster.d.ts +4 -0
  98. package/dist/contracts/Paymaster.d.ts.map +1 -1
  99. package/dist/contracts/Paymaster.js +5 -1
  100. package/dist/contracts/RipeLego.d.ts +920 -378
  101. package/dist/contracts/RipeLego.d.ts.map +1 -1
  102. package/dist/contracts/RipeLego.js +1123 -462
  103. package/dist/contracts/Sentinel.d.ts +275 -7
  104. package/dist/contracts/Sentinel.d.ts.map +1 -1
  105. package/dist/contracts/Sentinel.js +331 -7
  106. package/dist/contracts/SignatureHelperV1.d.ts +229 -229
  107. package/dist/contracts/SignatureHelperV1.js +333 -333
  108. package/dist/contracts/SkyPsm.d.ts +2622 -0
  109. package/dist/contracts/SkyPsm.d.ts.map +1 -0
  110. package/dist/contracts/SkyPsm.js +3329 -0
  111. package/dist/contracts/Switchboard.d.ts +7 -0
  112. package/dist/contracts/Switchboard.d.ts.map +1 -1
  113. package/dist/contracts/Switchboard.js +9 -1
  114. package/dist/contracts/SwitchboardAlpha.d.ts +499 -264
  115. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
  116. package/dist/contracts/SwitchboardAlpha.js +566 -282
  117. package/dist/contracts/SwitchboardBravo.d.ts +4 -24
  118. package/dist/contracts/SwitchboardBravo.d.ts.map +1 -1
  119. package/dist/contracts/SwitchboardBravo.js +5 -32
  120. package/dist/contracts/SwitchboardCharlie.d.ts +2923 -0
  121. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -0
  122. package/dist/contracts/SwitchboardCharlie.js +3635 -0
  123. package/dist/contracts/{Agent_v2.d.ts → UnderscoreLego.d.ts} +1605 -1763
  124. package/dist/contracts/UnderscoreLego.d.ts.map +1 -0
  125. package/dist/contracts/{AgentTemplate.js → UnderscoreLego.js} +1664 -1796
  126. package/dist/contracts/UndyAero.d.ts +1680 -0
  127. package/dist/contracts/UndyAero.d.ts.map +1 -0
  128. package/dist/contracts/{v0_2_UserWallet.js → UndyAero.js} +1056 -1403
  129. package/dist/contracts/UndyBtc.d.ts +1680 -0
  130. package/dist/contracts/UndyBtc.d.ts.map +1 -0
  131. package/dist/contracts/{WalletFunds.js → UndyBtc.js} +1063 -1436
  132. package/dist/contracts/UndyCbeth.d.ts +1680 -0
  133. package/dist/contracts/UndyCbeth.d.ts.map +1 -0
  134. package/dist/contracts/{UserWallet_v1.js → UndyCbeth.js} +1063 -1438
  135. package/dist/contracts/UndyEth.d.ts +1680 -0
  136. package/dist/contracts/UndyEth.d.ts.map +1 -0
  137. package/dist/contracts/UndyEth.js +2206 -0
  138. package/dist/contracts/UndyEurc.d.ts +1680 -0
  139. package/dist/contracts/UndyEurc.d.ts.map +1 -0
  140. package/dist/contracts/UndyEurc.js +2206 -0
  141. package/dist/contracts/UndyGho.d.ts +1680 -0
  142. package/dist/contracts/UndyGho.d.ts.map +1 -0
  143. package/dist/contracts/UndyGho.js +2206 -0
  144. package/dist/contracts/UndyRewardsLego.d.ts +3 -0
  145. package/dist/contracts/UndyRewardsLego.d.ts.map +1 -1
  146. package/dist/contracts/UndyRewardsLego.js +5 -1
  147. package/dist/contracts/UndyUsd.d.ts +1680 -0
  148. package/dist/contracts/UndyUsd.d.ts.map +1 -0
  149. package/dist/contracts/UndyUsd.js +2206 -0
  150. package/dist/contracts/UndyUsds.d.ts +1680 -0
  151. package/dist/contracts/UndyUsds.d.ts.map +1 -0
  152. package/dist/contracts/UndyUsds.js +2206 -0
  153. package/dist/contracts/UniswapV2.d.ts +85 -13
  154. package/dist/contracts/UniswapV2.d.ts.map +1 -1
  155. package/dist/contracts/UniswapV2.js +106 -17
  156. package/dist/contracts/UniswapV3.d.ts +120 -14
  157. package/dist/contracts/UniswapV3.d.ts.map +1 -1
  158. package/dist/contracts/UniswapV3.js +149 -18
  159. package/dist/contracts/UserWallet.d.ts +12 -8
  160. package/dist/contracts/UserWallet.d.ts.map +1 -1
  161. package/dist/contracts/UserWallet.js +13 -9
  162. package/dist/contracts/UserWalletConfig.d.ts +198 -56
  163. package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
  164. package/dist/contracts/UserWalletConfig.js +225 -72
  165. package/dist/contracts/UserWalletConfigV1.d.ts +3655 -0
  166. package/dist/contracts/UserWalletConfigV1.d.ts.map +1 -0
  167. package/dist/contracts/UserWalletConfigV1.js +4251 -0
  168. package/dist/contracts/{Agent_v1.d.ts → UserWalletV1.d.ts} +1178 -1176
  169. package/dist/contracts/UserWalletV1.d.ts.map +1 -0
  170. package/dist/contracts/{Agent_v1.js → UserWalletV1.js} +1468 -1340
  171. package/dist/contracts/VaultRegistry.d.ts +3028 -0
  172. package/dist/contracts/VaultRegistry.d.ts.map +1 -0
  173. package/dist/contracts/VaultRegistry.js +3843 -0
  174. package/dist/contracts/WalletBackpack.d.ts +4 -0
  175. package/dist/contracts/WalletBackpack.d.ts.map +1 -1
  176. package/dist/contracts/WalletBackpack.js +5 -1
  177. package/dist/contracts/Wasabi.d.ts +2579 -0
  178. package/dist/contracts/Wasabi.d.ts.map +1 -0
  179. package/dist/contracts/Wasabi.js +3274 -0
  180. package/dist/contracts/index.d.ts +25 -1
  181. package/dist/contracts/index.d.ts.map +1 -1
  182. package/dist/contracts/index.js +25 -1
  183. package/dist/contracts/sdk.d.ts +50 -2
  184. package/dist/contracts/sdk.d.ts.map +1 -1
  185. package/dist/contracts/sdk.js +50 -2
  186. package/dist/getSwapInstructions.js +1 -1
  187. package/dist/index.d.ts +33 -6
  188. package/dist/index.d.ts.map +1 -1
  189. package/dist/index.js +13 -7
  190. package/package.json +2 -2
  191. package/dist/contracts/AddyRegistry.d.ts +0 -1109
  192. package/dist/contracts/AddyRegistry.d.ts.map +0 -1
  193. package/dist/contracts/AddyRegistry.js +0 -1392
  194. package/dist/contracts/AddyRegistry_v1.d.ts +0 -473
  195. package/dist/contracts/AddyRegistry_v1.d.ts.map +0 -1
  196. package/dist/contracts/AddyRegistry_v1.js +0 -594
  197. package/dist/contracts/AddyRegistry_v2.d.ts +0 -1050
  198. package/dist/contracts/AddyRegistry_v2.d.ts.map +0 -1
  199. package/dist/contracts/AddyRegistry_v2.js +0 -1313
  200. package/dist/contracts/AgentFactory.d.ts +0 -1665
  201. package/dist/contracts/AgentFactory.d.ts.map +0 -1
  202. package/dist/contracts/AgentFactory.js +0 -2078
  203. package/dist/contracts/AgentFactory_v1.d.ts +0 -1054
  204. package/dist/contracts/AgentFactory_v1.d.ts.map +0 -1
  205. package/dist/contracts/AgentFactory_v1.js +0 -1336
  206. package/dist/contracts/AgentFactory_v2.d.ts +0 -1275
  207. package/dist/contracts/AgentFactory_v2.d.ts.map +0 -1
  208. package/dist/contracts/AgentFactory_v2.js +0 -1609
  209. package/dist/contracts/AgentTemplate.d.ts +0 -2629
  210. package/dist/contracts/AgentTemplate.d.ts.map +0 -1
  211. package/dist/contracts/Agent_v1.d.ts.map +0 -1
  212. package/dist/contracts/Agent_v2.d.ts.map +0 -1
  213. package/dist/contracts/ChainlinkFeeds.d.ts +0 -706
  214. package/dist/contracts/ChainlinkFeeds.d.ts.map +0 -1
  215. package/dist/contracts/ChainlinkFeeds.js +0 -900
  216. package/dist/contracts/LegoAaveV3.d.ts +0 -1033
  217. package/dist/contracts/LegoAaveV3.d.ts.map +0 -1
  218. package/dist/contracts/LegoAaveV3.js +0 -1330
  219. package/dist/contracts/LegoAeroClassic.d.ts +0 -1204
  220. package/dist/contracts/LegoAeroClassic.d.ts.map +0 -1
  221. package/dist/contracts/LegoAeroClassic.js +0 -1546
  222. package/dist/contracts/LegoAeroSlipstream.d.ts +0 -1300
  223. package/dist/contracts/LegoAeroSlipstream.d.ts.map +0 -1
  224. package/dist/contracts/LegoAeroSlipstream.js +0 -1671
  225. package/dist/contracts/LegoCommon.d.ts +0 -164
  226. package/dist/contracts/LegoCommon.d.ts.map +0 -1
  227. package/dist/contracts/LegoCommon.js +0 -202
  228. package/dist/contracts/LegoCompoundV3.d.ts +0 -1060
  229. package/dist/contracts/LegoCompoundV3.d.ts.map +0 -1
  230. package/dist/contracts/LegoCompoundV3.js +0 -1365
  231. package/dist/contracts/LegoCredit.d.ts +0 -140
  232. package/dist/contracts/LegoCredit.d.ts.map +0 -1
  233. package/dist/contracts/LegoCredit.js +0 -179
  234. package/dist/contracts/LegoCurve.d.ts +0 -1189
  235. package/dist/contracts/LegoCurve.d.ts.map +0 -1
  236. package/dist/contracts/LegoDex.d.ts +0 -587
  237. package/dist/contracts/LegoDex.d.ts.map +0 -1
  238. package/dist/contracts/LegoDex.js +0 -774
  239. package/dist/contracts/LegoEuler.d.ts +0 -1074
  240. package/dist/contracts/LegoEuler.d.ts.map +0 -1
  241. package/dist/contracts/LegoEuler.js +0 -1383
  242. package/dist/contracts/LegoFluid.d.ts +0 -1025
  243. package/dist/contracts/LegoFluid.d.ts.map +0 -1
  244. package/dist/contracts/LegoFluid.js +0 -1320
  245. package/dist/contracts/LegoHelper.d.ts +0 -1563
  246. package/dist/contracts/LegoHelper.d.ts.map +0 -1
  247. package/dist/contracts/LegoHelper.js +0 -1947
  248. package/dist/contracts/LegoMoonwell.d.ts +0 -1042
  249. package/dist/contracts/LegoMoonwell.d.ts.map +0 -1
  250. package/dist/contracts/LegoMoonwell.js +0 -1342
  251. package/dist/contracts/LegoMorpho.d.ts +0 -1074
  252. package/dist/contracts/LegoMorpho.d.ts.map +0 -1
  253. package/dist/contracts/LegoMorpho.js +0 -1383
  254. package/dist/contracts/LegoRegistry.d.ts +0 -1079
  255. package/dist/contracts/LegoRegistry.d.ts.map +0 -1
  256. package/dist/contracts/LegoRegistry.js +0 -1368
  257. package/dist/contracts/LegoSky.d.ts +0 -923
  258. package/dist/contracts/LegoSky.d.ts.map +0 -1
  259. package/dist/contracts/LegoSky.js +0 -1180
  260. package/dist/contracts/LegoUniswapV0_2.d.ts +0 -1204
  261. package/dist/contracts/LegoUniswapV0_2.d.ts.map +0 -1
  262. package/dist/contracts/LegoUniswapV0_2.js +0 -1546
  263. package/dist/contracts/LegoUniswapV2.d.ts +0 -1204
  264. package/dist/contracts/LegoUniswapV2.d.ts.map +0 -1
  265. package/dist/contracts/LegoUniswapV2.js +0 -1546
  266. package/dist/contracts/LegoUniswapV3.d.ts +0 -1338
  267. package/dist/contracts/LegoUniswapV3.d.ts.map +0 -1
  268. package/dist/contracts/LegoUniswapV3.js +0 -1718
  269. package/dist/contracts/LegoYield.d.ts +0 -390
  270. package/dist/contracts/LegoYield.d.ts.map +0 -1
  271. package/dist/contracts/LegoYield.js +0 -511
  272. package/dist/contracts/OracleParser.d.ts +0 -207
  273. package/dist/contracts/OracleParser.d.ts.map +0 -1
  274. package/dist/contracts/OracleParser.js +0 -264
  275. package/dist/contracts/OracleRegistry.d.ts +0 -1221
  276. package/dist/contracts/OracleRegistry.d.ts.map +0 -1
  277. package/dist/contracts/OracleRegistry.js +0 -1562
  278. package/dist/contracts/PriceSheets.d.ts +0 -1127
  279. package/dist/contracts/PriceSheets.d.ts.map +0 -1
  280. package/dist/contracts/PriceSheets.js +0 -1383
  281. package/dist/contracts/PythFeeds.d.ts +0 -640
  282. package/dist/contracts/PythFeeds.d.ts.map +0 -1
  283. package/dist/contracts/PythFeeds.js +0 -813
  284. package/dist/contracts/StorkFeeds.d.ts +0 -640
  285. package/dist/contracts/StorkFeeds.d.ts.map +0 -1
  286. package/dist/contracts/StorkFeeds.js +0 -813
  287. package/dist/contracts/UserWalletConfig_v1.d.ts +0 -1400
  288. package/dist/contracts/UserWalletConfig_v1.d.ts.map +0 -1
  289. package/dist/contracts/UserWalletConfig_v1.js +0 -1676
  290. package/dist/contracts/UserWalletConfig_v2.d.ts +0 -1468
  291. package/dist/contracts/UserWalletConfig_v2.d.ts.map +0 -1
  292. package/dist/contracts/UserWalletConfig_v2.js +0 -1764
  293. package/dist/contracts/UserWallet_v1.d.ts +0 -1980
  294. package/dist/contracts/UserWallet_v1.d.ts.map +0 -1
  295. package/dist/contracts/UserWallet_v2.d.ts +0 -1958
  296. package/dist/contracts/UserWallet_v2.d.ts.map +0 -1
  297. package/dist/contracts/WalletConfig.d.ts +0 -1398
  298. package/dist/contracts/WalletConfig.d.ts.map +0 -1
  299. package/dist/contracts/WalletConfig.js +0 -1674
  300. package/dist/contracts/WalletFunds.d.ts +0 -1978
  301. package/dist/contracts/WalletFunds.d.ts.map +0 -1
  302. package/dist/contracts/v0_1_AddyRegistry.d.ts +0 -473
  303. package/dist/contracts/v0_1_AddyRegistry.d.ts.map +0 -1
  304. package/dist/contracts/v0_1_AddyRegistry.js +0 -594
  305. package/dist/contracts/v0_1_Agent.d.ts +0 -2631
  306. package/dist/contracts/v0_1_Agent.d.ts.map +0 -1
  307. package/dist/contracts/v0_1_AgentFactory.d.ts +0 -1054
  308. package/dist/contracts/v0_1_AgentFactory.d.ts.map +0 -1
  309. package/dist/contracts/v0_1_AgentFactory.js +0 -1336
  310. package/dist/contracts/v0_1_UserWallet.d.ts +0 -1980
  311. package/dist/contracts/v0_1_UserWallet.d.ts.map +0 -1
  312. package/dist/contracts/v0_1_UserWallet.js +0 -2581
  313. package/dist/contracts/v0_1_UserWalletConfig.d.ts +0 -1400
  314. package/dist/contracts/v0_1_UserWalletConfig.d.ts.map +0 -1
  315. package/dist/contracts/v0_1_UserWalletConfig.js +0 -1676
  316. package/dist/contracts/v0_2_AddyRegistry.d.ts +0 -1050
  317. package/dist/contracts/v0_2_AddyRegistry.d.ts.map +0 -1
  318. package/dist/contracts/v0_2_AddyRegistry.js +0 -1313
  319. package/dist/contracts/v0_2_Agent.d.ts.map +0 -1
  320. package/dist/contracts/v0_2_AgentFactory.d.ts +0 -1275
  321. package/dist/contracts/v0_2_AgentFactory.d.ts.map +0 -1
  322. package/dist/contracts/v0_2_AgentFactory.js +0 -1609
  323. package/dist/contracts/v0_2_UserWallet.d.ts +0 -1958
  324. package/dist/contracts/v0_2_UserWallet.d.ts.map +0 -1
  325. package/dist/contracts/v0_2_UserWalletConfig.d.ts +0 -1468
  326. package/dist/contracts/v0_2_UserWalletConfig.d.ts.map +0 -1
  327. package/dist/contracts/v0_2_UserWalletConfig.js +0 -1764
  328. package/dist/contracts/v0_3_AddyRegistry.d.ts +0 -1109
  329. package/dist/contracts/v0_3_AddyRegistry.d.ts.map +0 -1
  330. package/dist/contracts/v0_3_AddyRegistry.js +0 -1392
  331. package/dist/contracts/v0_3_Agent.d.ts.map +0 -1
  332. package/dist/contracts/v0_3_Agent.js +0 -3458
  333. package/dist/contracts/v0_3_AgentFactory.d.ts +0 -1665
  334. package/dist/contracts/v0_3_AgentFactory.d.ts.map +0 -1
  335. package/dist/contracts/v0_3_AgentFactory.js +0 -2078
  336. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts +0 -706
  337. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts.map +0 -1
  338. package/dist/contracts/v0_3_ChainlinkFeeds.js +0 -900
  339. package/dist/contracts/v0_3_LegoAaveV3.d.ts +0 -1033
  340. package/dist/contracts/v0_3_LegoAaveV3.d.ts.map +0 -1
  341. package/dist/contracts/v0_3_LegoAaveV3.js +0 -1330
  342. package/dist/contracts/v0_3_LegoAeroClassic.d.ts +0 -1204
  343. package/dist/contracts/v0_3_LegoAeroClassic.d.ts.map +0 -1
  344. package/dist/contracts/v0_3_LegoAeroClassic.js +0 -1546
  345. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts +0 -1300
  346. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts.map +0 -1
  347. package/dist/contracts/v0_3_LegoAeroSlipstream.js +0 -1671
  348. package/dist/contracts/v0_3_LegoCommon.d.ts +0 -164
  349. package/dist/contracts/v0_3_LegoCommon.d.ts.map +0 -1
  350. package/dist/contracts/v0_3_LegoCommon.js +0 -202
  351. package/dist/contracts/v0_3_LegoCompoundV3.d.ts +0 -1060
  352. package/dist/contracts/v0_3_LegoCompoundV3.d.ts.map +0 -1
  353. package/dist/contracts/v0_3_LegoCompoundV3.js +0 -1365
  354. package/dist/contracts/v0_3_LegoCredit.d.ts +0 -140
  355. package/dist/contracts/v0_3_LegoCredit.d.ts.map +0 -1
  356. package/dist/contracts/v0_3_LegoCredit.js +0 -179
  357. package/dist/contracts/v0_3_LegoCurve.d.ts +0 -1189
  358. package/dist/contracts/v0_3_LegoCurve.d.ts.map +0 -1
  359. package/dist/contracts/v0_3_LegoCurve.js +0 -1519
  360. package/dist/contracts/v0_3_LegoDex.d.ts +0 -587
  361. package/dist/contracts/v0_3_LegoDex.d.ts.map +0 -1
  362. package/dist/contracts/v0_3_LegoDex.js +0 -774
  363. package/dist/contracts/v0_3_LegoEuler.d.ts +0 -1074
  364. package/dist/contracts/v0_3_LegoEuler.d.ts.map +0 -1
  365. package/dist/contracts/v0_3_LegoEuler.js +0 -1383
  366. package/dist/contracts/v0_3_LegoFluid.d.ts +0 -1025
  367. package/dist/contracts/v0_3_LegoFluid.d.ts.map +0 -1
  368. package/dist/contracts/v0_3_LegoFluid.js +0 -1320
  369. package/dist/contracts/v0_3_LegoHelper.d.ts +0 -1563
  370. package/dist/contracts/v0_3_LegoHelper.d.ts.map +0 -1
  371. package/dist/contracts/v0_3_LegoHelper.js +0 -1947
  372. package/dist/contracts/v0_3_LegoMoonwell.d.ts +0 -1042
  373. package/dist/contracts/v0_3_LegoMoonwell.d.ts.map +0 -1
  374. package/dist/contracts/v0_3_LegoMoonwell.js +0 -1342
  375. package/dist/contracts/v0_3_LegoMorpho.d.ts +0 -1074
  376. package/dist/contracts/v0_3_LegoMorpho.d.ts.map +0 -1
  377. package/dist/contracts/v0_3_LegoMorpho.js +0 -1383
  378. package/dist/contracts/v0_3_LegoRegistry.d.ts +0 -1079
  379. package/dist/contracts/v0_3_LegoRegistry.d.ts.map +0 -1
  380. package/dist/contracts/v0_3_LegoRegistry.js +0 -1368
  381. package/dist/contracts/v0_3_LegoSky.d.ts +0 -923
  382. package/dist/contracts/v0_3_LegoSky.d.ts.map +0 -1
  383. package/dist/contracts/v0_3_LegoUniswapV3.d.ts +0 -1338
  384. package/dist/contracts/v0_3_LegoUniswapV3.d.ts.map +0 -1
  385. package/dist/contracts/v0_3_LegoUniswapV3.js +0 -1718
  386. package/dist/contracts/v0_3_LegoYield.d.ts +0 -390
  387. package/dist/contracts/v0_3_LegoYield.d.ts.map +0 -1
  388. package/dist/contracts/v0_3_LegoYield.js +0 -511
  389. package/dist/contracts/v0_3_OracleParser.d.ts +0 -207
  390. package/dist/contracts/v0_3_OracleParser.d.ts.map +0 -1
  391. package/dist/contracts/v0_3_OracleParser.js +0 -264
  392. package/dist/contracts/v0_3_OracleRegistry.d.ts +0 -1221
  393. package/dist/contracts/v0_3_OracleRegistry.d.ts.map +0 -1
  394. package/dist/contracts/v0_3_OracleRegistry.js +0 -1562
  395. package/dist/contracts/v0_3_PriceSheets.d.ts +0 -1127
  396. package/dist/contracts/v0_3_PriceSheets.d.ts.map +0 -1
  397. package/dist/contracts/v0_3_PriceSheets.js +0 -1383
  398. package/dist/contracts/v0_3_PythFeeds.d.ts +0 -640
  399. package/dist/contracts/v0_3_PythFeeds.d.ts.map +0 -1
  400. package/dist/contracts/v0_3_PythFeeds.js +0 -813
  401. package/dist/contracts/v0_3_StorkFeeds.d.ts +0 -640
  402. package/dist/contracts/v0_3_StorkFeeds.d.ts.map +0 -1
  403. package/dist/contracts/v0_3_StorkFeeds.js +0 -813
  404. package/dist/contracts/v0_3_UserWallet.d.ts +0 -1975
  405. package/dist/contracts/v0_3_UserWallet.d.ts.map +0 -1
  406. package/dist/contracts/v0_3_UserWallet.js +0 -2577
  407. package/dist/contracts/v0_3_UserWalletConfig.d.ts +0 -1852
  408. package/dist/contracts/v0_3_UserWalletConfig.d.ts.map +0 -1
  409. package/dist/contracts/v0_3_UserWalletConfig.js +0 -2263
  410. package/dist/getLegacyContracts.d.ts +0 -69
  411. package/dist/getLegacyContracts.d.ts.map +0 -1
  412. package/dist/getLegacyContracts.js +0 -55
@@ -5,339 +5,201 @@
5
5
  import { singleQuery, mutate } from '@dappql/async';
6
6
  export const abi = [
7
7
  {
8
- anonymous: false,
8
+ name: 'NonceIncremented',
9
9
  inputs: [
10
10
  {
11
- indexed: true,
12
- name: 'sender',
13
- type: 'address',
14
- },
15
- {
16
- indexed: true,
17
- name: 'asset',
18
- type: 'address',
19
- },
20
- {
21
- indexed: true,
22
- name: 'vaultToken',
11
+ name: 'userWallet',
23
12
  type: 'address',
24
- },
25
- {
26
13
  indexed: false,
27
- name: 'assetAmountDeposited',
28
- type: 'uint256',
29
14
  },
30
15
  {
31
- indexed: false,
32
- name: 'usdValue',
16
+ name: 'oldNonce',
33
17
  type: 'uint256',
34
- },
35
- {
36
18
  indexed: false,
37
- name: 'vaultTokenAmountReceived',
38
- type: 'uint256',
39
19
  },
40
20
  {
21
+ name: 'newNonce',
22
+ type: 'uint256',
41
23
  indexed: false,
42
- name: 'recipient',
43
- type: 'address',
44
24
  },
45
25
  ],
46
- name: 'SkyDeposit',
26
+ anonymous: false,
47
27
  type: 'event',
48
28
  },
49
29
  {
50
- anonymous: false,
30
+ name: 'OwnershipChangeInitiated',
51
31
  inputs: [
52
32
  {
53
- indexed: true,
54
- name: 'sender',
33
+ name: 'prevOwner',
55
34
  type: 'address',
56
- },
57
- {
58
35
  indexed: true,
59
- name: 'asset',
60
- type: 'address',
61
36
  },
62
37
  {
63
- indexed: true,
64
- name: 'vaultToken',
38
+ name: 'newOwner',
65
39
  type: 'address',
40
+ indexed: true,
66
41
  },
67
42
  {
68
- indexed: false,
69
- name: 'assetAmountReceived',
70
- type: 'uint256',
71
- },
72
- {
73
- indexed: false,
74
- name: 'usdValue',
75
- type: 'uint256',
76
- },
77
- {
78
- indexed: false,
79
- name: 'vaultTokenAmountBurned',
43
+ name: 'confirmBlock',
80
44
  type: 'uint256',
81
- },
82
- {
83
45
  indexed: false,
84
- name: 'recipient',
85
- type: 'address',
86
46
  },
87
47
  ],
88
- name: 'SkyWithdrawal',
89
- type: 'event',
90
- },
91
- {
92
48
  anonymous: false,
93
- inputs: [
94
- {
95
- indexed: true,
96
- name: 'asset',
97
- type: 'address',
98
- },
99
- {
100
- indexed: true,
101
- name: 'vaultToken',
102
- type: 'address',
103
- },
104
- ],
105
- name: 'AssetOpportunityAdded',
106
49
  type: 'event',
107
50
  },
108
51
  {
109
- anonymous: false,
52
+ name: 'OwnershipChangeConfirmed',
110
53
  inputs: [
111
54
  {
112
- indexed: true,
113
- name: 'asset',
55
+ name: 'prevOwner',
114
56
  type: 'address',
115
- },
116
- {
117
57
  indexed: true,
118
- name: 'vaultToken',
119
- type: 'address',
120
58
  },
121
- ],
122
- name: 'AssetOpportunityRemoved',
123
- type: 'event',
124
- },
125
- {
126
- anonymous: false,
127
- inputs: [
128
59
  {
129
- indexed: true,
130
- name: 'asset',
60
+ name: 'newOwner',
131
61
  type: 'address',
132
- },
133
- {
134
62
  indexed: true,
135
- name: 'recipient',
136
- type: 'address',
137
63
  },
138
64
  {
139
- indexed: false,
140
- name: 'amount',
65
+ name: 'initiatedBlock',
141
66
  type: 'uint256',
142
- },
143
- ],
144
- name: 'SkyFundsRecovered',
145
- type: 'event',
146
- },
147
- {
148
- anonymous: false,
149
- inputs: [
150
- {
151
67
  indexed: false,
152
- name: 'legoId',
153
- type: 'uint256',
154
68
  },
155
- ],
156
- name: 'SkyLegoIdSet',
157
- type: 'event',
158
- },
159
- {
160
- anonymous: false,
161
- inputs: [
162
69
  {
70
+ name: 'confirmBlock',
71
+ type: 'uint256',
163
72
  indexed: false,
164
- name: 'isActivated',
165
- type: 'bool',
166
73
  },
167
74
  ],
168
- name: 'SkyActivated',
75
+ anonymous: false,
169
76
  type: 'event',
170
77
  },
171
78
  {
172
- anonymous: false,
79
+ name: 'OwnershipChangeCancelled',
173
80
  inputs: [
174
81
  {
175
- indexed: true,
176
- name: 'prevGov',
82
+ name: 'cancelledOwner',
177
83
  type: 'address',
178
- },
179
- {
180
84
  indexed: true,
181
- name: 'newGov',
182
- type: 'address',
183
- },
184
- {
185
- indexed: false,
186
- name: 'confirmBlock',
187
- type: 'uint256',
188
85
  },
189
- ],
190
- name: 'GovChangeInitiated',
191
- type: 'event',
192
- },
193
- {
194
- anonymous: false,
195
- inputs: [
196
86
  {
197
- indexed: true,
198
- name: 'prevGov',
87
+ name: 'cancelledBy',
199
88
  type: 'address',
200
- },
201
- {
202
89
  indexed: true,
203
- name: 'newGov',
204
- type: 'address',
205
90
  },
206
91
  {
207
- indexed: false,
208
92
  name: 'initiatedBlock',
209
93
  type: 'uint256',
94
+ indexed: false,
210
95
  },
211
96
  {
212
- indexed: false,
213
97
  name: 'confirmBlock',
214
98
  type: 'uint256',
99
+ indexed: false,
215
100
  },
216
101
  ],
217
- name: 'GovChangeConfirmed',
102
+ anonymous: false,
218
103
  type: 'event',
219
104
  },
220
105
  {
221
- anonymous: false,
106
+ name: 'OwnershipTimeLockSet',
222
107
  inputs: [
223
108
  {
224
- indexed: true,
225
- name: 'cancelledGov',
226
- type: 'address',
227
- },
228
- {
229
- indexed: false,
230
- name: 'initiatedBlock',
109
+ name: 'numBlocks',
231
110
  type: 'uint256',
232
- },
233
- {
234
111
  indexed: false,
235
- name: 'confirmBlock',
236
- type: 'uint256',
237
112
  },
238
113
  ],
239
- name: 'GovChangeCancelled',
240
- type: 'event',
241
- },
242
- {
243
114
  anonymous: false,
244
- inputs: [
245
- {
246
- indexed: false,
247
- name: 'delayBlocks',
248
- type: 'uint256',
249
- },
250
- ],
251
- name: 'GovChangeDelaySet',
252
115
  type: 'event',
253
116
  },
254
117
  {
118
+ stateMutability: 'nonpayable',
119
+ type: 'function',
120
+ name: 'changeOwnership',
255
121
  inputs: [
256
122
  {
257
- name: '_address',
123
+ name: '_newOwner',
258
124
  type: 'address',
259
125
  },
260
126
  ],
261
- name: 'canGovern',
262
- outputs: [
263
- {
264
- name: '',
265
- type: 'bool',
266
- },
267
- ],
268
- stateMutability: 'view',
269
- type: 'function',
127
+ outputs: [],
270
128
  },
271
129
  {
272
- inputs: [],
273
- name: 'hasPendingGovChange',
274
- outputs: [
275
- {
276
- name: '',
277
- type: 'bool',
278
- },
279
- ],
280
- stateMutability: 'view',
130
+ stateMutability: 'nonpayable',
281
131
  type: 'function',
132
+ name: 'confirmOwnershipChange',
133
+ inputs: [],
134
+ outputs: [],
282
135
  },
283
136
  {
284
- inputs: [
285
- {
286
- name: '_newGov',
287
- type: 'address',
288
- },
289
- ],
290
- name: 'changeGovernance',
291
- outputs: [],
292
137
  stateMutability: 'nonpayable',
293
138
  type: 'function',
294
- },
295
- {
139
+ name: 'cancelOwnershipChange',
296
140
  inputs: [],
297
- name: 'confirmGovernanceChange',
298
141
  outputs: [],
299
- stateMutability: 'nonpayable',
300
- type: 'function',
301
142
  },
302
143
  {
303
- inputs: [],
304
- name: 'cancelGovernanceChange',
305
- outputs: [],
306
- stateMutability: 'nonpayable',
144
+ stateMutability: 'view',
307
145
  type: 'function',
146
+ name: 'hasPendingOwnerChange',
147
+ inputs: [],
148
+ outputs: [
149
+ {
150
+ name: '',
151
+ type: 'bool',
152
+ },
153
+ ],
308
154
  },
309
155
  {
156
+ stateMutability: 'nonpayable',
157
+ type: 'function',
158
+ name: 'setOwnershipTimeLock',
310
159
  inputs: [
311
160
  {
312
161
  name: '_numBlocks',
313
162
  type: 'uint256',
314
163
  },
315
164
  ],
316
- name: 'setGovernanceChangeDelay',
317
165
  outputs: [],
318
- stateMutability: 'nonpayable',
319
- type: 'function',
320
166
  },
321
167
  {
168
+ stateMutability: 'view',
169
+ type: 'function',
170
+ name: 'owner',
322
171
  inputs: [],
323
- name: 'governance',
324
172
  outputs: [
325
173
  {
326
174
  name: '',
327
175
  type: 'address',
328
176
  },
329
177
  ],
178
+ },
179
+ {
330
180
  stateMutability: 'view',
331
181
  type: 'function',
182
+ name: 'ownershipTimeLock',
183
+ inputs: [],
184
+ outputs: [
185
+ {
186
+ name: '',
187
+ type: 'uint256',
188
+ },
189
+ ],
332
190
  },
333
191
  {
192
+ stateMutability: 'view',
193
+ type: 'function',
194
+ name: 'pendingOwner',
334
195
  inputs: [],
335
- name: 'pendingGov',
336
196
  outputs: [
337
197
  {
198
+ name: '',
199
+ type: 'tuple',
338
200
  components: [
339
201
  {
340
- name: 'newGov',
202
+ name: 'newOwner',
341
203
  type: 'address',
342
204
  },
343
205
  {
@@ -349,178 +211,283 @@ export const abi = [
349
211
  type: 'uint256',
350
212
  },
351
213
  ],
352
- name: '',
353
- type: 'tuple',
354
214
  },
355
215
  ],
356
- stateMutability: 'view',
357
- type: 'function',
358
216
  },
359
217
  {
360
- inputs: [],
361
- name: 'govChangeDelay',
362
- outputs: [
363
- {
364
- name: '',
365
- type: 'uint256',
366
- },
367
- ],
368
218
  stateMutability: 'view',
369
219
  type: 'function',
370
- },
371
- {
220
+ name: 'MIN_OWNERSHIP_TIMELOCK',
372
221
  inputs: [],
373
- name: 'MIN_GOV_CHANGE_DELAY',
374
222
  outputs: [
375
223
  {
376
224
  name: '',
377
225
  type: 'uint256',
378
226
  },
379
227
  ],
380
- stateMutability: 'view',
381
- type: 'function',
382
228
  },
383
229
  {
384
- inputs: [],
385
- name: 'MAX_GOV_CHANGE_DELAY',
386
- outputs: [
387
- {
388
- name: '',
389
- type: 'uint256',
390
- },
391
- ],
392
230
  stateMutability: 'view',
393
231
  type: 'function',
394
- },
395
- {
232
+ name: 'MAX_OWNERSHIP_TIMELOCK',
396
233
  inputs: [],
397
- name: 'getRegistries',
398
234
  outputs: [
399
235
  {
400
236
  name: '',
401
- type: 'address[]',
237
+ type: 'uint256',
402
238
  },
403
239
  ],
404
- stateMutability: 'view',
405
- type: 'function',
406
240
  },
407
241
  {
242
+ stateMutability: 'nonpayable',
243
+ type: 'function',
244
+ name: 'depositForYield',
408
245
  inputs: [
409
246
  {
410
- name: '_user',
247
+ name: '_userWallet',
248
+ type: 'address',
249
+ },
250
+ {
251
+ name: '_legoId',
252
+ type: 'uint256',
253
+ },
254
+ {
255
+ name: '_asset',
411
256
  type: 'address',
412
257
  },
413
258
  ],
414
- name: 'getAccessForLego',
415
259
  outputs: [
260
+ {
261
+ name: '',
262
+ type: 'uint256',
263
+ },
416
264
  {
417
265
  name: '',
418
266
  type: 'address',
419
267
  },
420
268
  {
421
269
  name: '',
422
- type: 'string',
270
+ type: 'uint256',
423
271
  },
424
272
  {
425
273
  name: '',
426
274
  type: 'uint256',
427
275
  },
428
276
  ],
429
- stateMutability: 'view',
430
- type: 'function',
431
277
  },
432
278
  {
279
+ stateMutability: 'nonpayable',
280
+ type: 'function',
281
+ name: 'depositForYield',
433
282
  inputs: [
283
+ {
284
+ name: '_userWallet',
285
+ type: 'address',
286
+ },
287
+ {
288
+ name: '_legoId',
289
+ type: 'uint256',
290
+ },
434
291
  {
435
292
  name: '_asset',
436
293
  type: 'address',
437
294
  },
295
+ {
296
+ name: '_vaultAddr',
297
+ type: 'address',
298
+ },
438
299
  ],
439
- name: 'getAssetOpportunities',
440
300
  outputs: [
441
301
  {
442
302
  name: '',
443
- type: 'address[]',
303
+ type: 'uint256',
304
+ },
305
+ {
306
+ name: '',
307
+ type: 'address',
308
+ },
309
+ {
310
+ name: '',
311
+ type: 'uint256',
444
312
  },
445
- ],
446
- stateMutability: 'view',
447
- type: 'function',
448
- },
449
- {
450
- inputs: [],
451
- name: 'getAssets',
452
- outputs: [
453
313
  {
454
314
  name: '',
455
- type: 'address[]',
315
+ type: 'uint256',
456
316
  },
457
317
  ],
458
- stateMutability: 'view',
459
- type: 'function',
460
318
  },
461
319
  {
320
+ stateMutability: 'nonpayable',
321
+ type: 'function',
322
+ name: 'depositForYield',
462
323
  inputs: [
463
324
  {
464
- name: '_vaultToken',
325
+ name: '_userWallet',
465
326
  type: 'address',
466
327
  },
328
+ {
329
+ name: '_legoId',
330
+ type: 'uint256',
331
+ },
332
+ {
333
+ name: '_asset',
334
+ type: 'address',
335
+ },
336
+ {
337
+ name: '_vaultAddr',
338
+ type: 'address',
339
+ },
340
+ {
341
+ name: '_amount',
342
+ type: 'uint256',
343
+ },
467
344
  ],
468
- name: 'isVaultToken',
469
345
  outputs: [
470
346
  {
471
347
  name: '',
472
- type: 'bool',
348
+ type: 'uint256',
349
+ },
350
+ {
351
+ name: '',
352
+ type: 'address',
353
+ },
354
+ {
355
+ name: '',
356
+ type: 'uint256',
357
+ },
358
+ {
359
+ name: '',
360
+ type: 'uint256',
473
361
  },
474
362
  ],
475
- stateMutability: 'view',
476
- type: 'function',
477
363
  },
478
364
  {
365
+ stateMutability: 'nonpayable',
366
+ type: 'function',
367
+ name: 'depositForYield',
479
368
  inputs: [
480
369
  {
481
- name: '_vaultToken',
370
+ name: '_userWallet',
371
+ type: 'address',
372
+ },
373
+ {
374
+ name: '_legoId',
375
+ type: 'uint256',
376
+ },
377
+ {
378
+ name: '_asset',
379
+ type: 'address',
380
+ },
381
+ {
382
+ name: '_vaultAddr',
482
383
  type: 'address',
483
384
  },
385
+ {
386
+ name: '_amount',
387
+ type: 'uint256',
388
+ },
389
+ {
390
+ name: '_extraData',
391
+ type: 'bytes32',
392
+ },
484
393
  ],
485
- name: 'getUnderlyingAsset',
486
394
  outputs: [
395
+ {
396
+ name: '',
397
+ type: 'uint256',
398
+ },
487
399
  {
488
400
  name: '',
489
401
  type: 'address',
490
402
  },
403
+ {
404
+ name: '',
405
+ type: 'uint256',
406
+ },
407
+ {
408
+ name: '',
409
+ type: 'uint256',
410
+ },
491
411
  ],
492
- stateMutability: 'view',
493
- type: 'function',
494
412
  },
495
413
  {
414
+ stateMutability: 'nonpayable',
415
+ type: 'function',
416
+ name: 'depositForYield',
496
417
  inputs: [
497
418
  {
498
- name: '_vaultToken',
419
+ name: '_userWallet',
420
+ type: 'address',
421
+ },
422
+ {
423
+ name: '_legoId',
424
+ type: 'uint256',
425
+ },
426
+ {
427
+ name: '_asset',
499
428
  type: 'address',
500
429
  },
501
430
  {
502
- name: '_vaultTokenAmount',
431
+ name: '_vaultAddr',
432
+ type: 'address',
433
+ },
434
+ {
435
+ name: '_amount',
503
436
  type: 'uint256',
504
437
  },
438
+ {
439
+ name: '_extraData',
440
+ type: 'bytes32',
441
+ },
442
+ {
443
+ name: '_sig',
444
+ type: 'tuple',
445
+ components: [
446
+ {
447
+ name: 'signature',
448
+ type: 'bytes',
449
+ },
450
+ {
451
+ name: 'nonce',
452
+ type: 'uint256',
453
+ },
454
+ {
455
+ name: 'expiration',
456
+ type: 'uint256',
457
+ },
458
+ ],
459
+ },
505
460
  ],
506
- name: 'getUnderlyingAmount',
507
461
  outputs: [
508
462
  {
509
463
  name: '',
510
464
  type: 'uint256',
511
465
  },
466
+ {
467
+ name: '',
468
+ type: 'address',
469
+ },
470
+ {
471
+ name: '',
472
+ type: 'uint256',
473
+ },
474
+ {
475
+ name: '',
476
+ type: 'uint256',
477
+ },
512
478
  ],
513
- stateMutability: 'view',
514
- type: 'function',
515
479
  },
516
480
  {
481
+ stateMutability: 'nonpayable',
482
+ type: 'function',
483
+ name: 'withdrawFromYield',
517
484
  inputs: [
518
485
  {
519
- name: '_asset',
486
+ name: '_userWallet',
520
487
  type: 'address',
521
488
  },
522
489
  {
523
- name: '_assetAmount',
490
+ name: '_legoId',
524
491
  type: 'uint256',
525
492
  },
526
493
  {
@@ -528,75 +495,97 @@ export const abi = [
528
495
  type: 'address',
529
496
  },
530
497
  ],
531
- name: 'getVaultTokenAmount',
532
498
  outputs: [
533
499
  {
534
500
  name: '',
535
501
  type: 'uint256',
536
502
  },
537
- ],
538
- stateMutability: 'view',
539
- type: 'function',
540
- },
541
- {
542
- inputs: [
543
503
  {
544
- name: '_vaultToken',
504
+ name: '',
545
505
  type: 'address',
546
506
  },
547
507
  {
548
- name: '_vaultTokenAmount',
508
+ name: '',
549
509
  type: 'uint256',
550
510
  },
551
- ],
552
- name: 'getUsdValueOfVaultToken',
553
- outputs: [
554
511
  {
555
512
  name: '',
556
513
  type: 'uint256',
557
514
  },
558
515
  ],
559
- stateMutability: 'view',
560
- type: 'function',
561
516
  },
562
517
  {
518
+ stateMutability: 'nonpayable',
519
+ type: 'function',
520
+ name: 'withdrawFromYield',
563
521
  inputs: [
564
522
  {
565
- name: '_vaultToken',
523
+ name: '_userWallet',
566
524
  type: 'address',
567
525
  },
568
526
  {
569
- name: '_vaultTokenAmount',
527
+ name: '_legoId',
570
528
  type: 'uint256',
571
529
  },
572
530
  {
573
- name: '_oracleRegistry',
531
+ name: '_vaultToken',
574
532
  type: 'address',
575
533
  },
534
+ {
535
+ name: '_amount',
536
+ type: 'uint256',
537
+ },
576
538
  ],
577
- name: 'getUsdValueOfVaultToken',
578
539
  outputs: [
579
540
  {
580
541
  name: '',
581
542
  type: 'uint256',
582
543
  },
544
+ {
545
+ name: '',
546
+ type: 'address',
547
+ },
548
+ {
549
+ name: '',
550
+ type: 'uint256',
551
+ },
552
+ {
553
+ name: '',
554
+ type: 'uint256',
555
+ },
583
556
  ],
584
- stateMutability: 'view',
585
- type: 'function',
586
557
  },
587
558
  {
559
+ stateMutability: 'nonpayable',
560
+ type: 'function',
561
+ name: 'withdrawFromYield',
588
562
  inputs: [
563
+ {
564
+ name: '_userWallet',
565
+ type: 'address',
566
+ },
567
+ {
568
+ name: '_legoId',
569
+ type: 'uint256',
570
+ },
589
571
  {
590
572
  name: '_vaultToken',
591
573
  type: 'address',
592
574
  },
593
575
  {
594
- name: '_vaultTokenAmount',
576
+ name: '_amount',
595
577
  type: 'uint256',
596
578
  },
579
+ {
580
+ name: '_extraData',
581
+ type: 'bytes32',
582
+ },
597
583
  ],
598
- name: 'getUnderlyingData',
599
584
  outputs: [
585
+ {
586
+ name: '',
587
+ type: 'uint256',
588
+ },
600
589
  {
601
590
  name: '',
602
591
  type: 'address',
@@ -610,26 +599,56 @@ export const abi = [
610
599
  type: 'uint256',
611
600
  },
612
601
  ],
613
- stateMutability: 'view',
614
- type: 'function',
615
602
  },
616
603
  {
604
+ stateMutability: 'nonpayable',
605
+ type: 'function',
606
+ name: 'withdrawFromYield',
617
607
  inputs: [
618
608
  {
619
- name: '_vaultToken',
609
+ name: '_userWallet',
620
610
  type: 'address',
621
611
  },
622
612
  {
623
- name: '_vaultTokenAmount',
613
+ name: '_legoId',
624
614
  type: 'uint256',
625
615
  },
626
616
  {
627
- name: '_oracleRegistry',
617
+ name: '_vaultToken',
628
618
  type: 'address',
629
619
  },
620
+ {
621
+ name: '_amount',
622
+ type: 'uint256',
623
+ },
624
+ {
625
+ name: '_extraData',
626
+ type: 'bytes32',
627
+ },
628
+ {
629
+ name: '_sig',
630
+ type: 'tuple',
631
+ components: [
632
+ {
633
+ name: 'signature',
634
+ type: 'bytes',
635
+ },
636
+ {
637
+ name: 'nonce',
638
+ type: 'uint256',
639
+ },
640
+ {
641
+ name: 'expiration',
642
+ type: 'uint256',
643
+ },
644
+ ],
645
+ },
630
646
  ],
631
- name: 'getUnderlyingData',
632
647
  outputs: [
648
+ {
649
+ name: '',
650
+ type: 'uint256',
651
+ },
633
652
  {
634
653
  name: '',
635
654
  type: 'address',
@@ -643,75 +662,132 @@ export const abi = [
643
662
  type: 'uint256',
644
663
  },
645
664
  ],
646
- stateMutability: 'view',
647
- type: 'function',
648
665
  },
649
666
  {
667
+ stateMutability: 'nonpayable',
668
+ type: 'function',
669
+ name: 'swapTokens',
650
670
  inputs: [
651
671
  {
652
- name: '_vaultToken',
672
+ name: '_userWallet',
653
673
  type: 'address',
654
674
  },
675
+ {
676
+ name: '_swapInstructions',
677
+ type: 'tuple[]',
678
+ components: [
679
+ {
680
+ name: 'legoId',
681
+ type: 'uint256',
682
+ },
683
+ {
684
+ name: 'amountIn',
685
+ type: 'uint256',
686
+ },
687
+ {
688
+ name: 'minAmountOut',
689
+ type: 'uint256',
690
+ },
691
+ {
692
+ name: 'tokenPath',
693
+ type: 'address[]',
694
+ },
695
+ {
696
+ name: 'poolPath',
697
+ type: 'address[]',
698
+ },
699
+ ],
700
+ },
655
701
  ],
656
- name: 'totalAssets',
657
702
  outputs: [
703
+ {
704
+ name: '',
705
+ type: 'address',
706
+ },
658
707
  {
659
708
  name: '',
660
709
  type: 'uint256',
661
710
  },
662
- ],
663
- stateMutability: 'view',
664
- type: 'function',
665
- },
666
- {
667
- inputs: [
668
711
  {
669
- name: '_vaultToken',
712
+ name: '',
670
713
  type: 'address',
671
714
  },
672
- ],
673
- name: 'totalBorrows',
674
- outputs: [
715
+ {
716
+ name: '',
717
+ type: 'uint256',
718
+ },
675
719
  {
676
720
  name: '',
677
721
  type: 'uint256',
678
722
  },
679
723
  ],
680
- stateMutability: 'view',
681
- type: 'function',
682
724
  },
683
725
  {
726
+ stateMutability: 'nonpayable',
727
+ type: 'function',
728
+ name: 'swapTokens',
684
729
  inputs: [
685
730
  {
686
- name: '_asset',
731
+ name: '_userWallet',
687
732
  type: 'address',
688
733
  },
689
734
  {
690
- name: '_amount',
691
- type: 'uint256',
692
- },
693
- {
694
- name: '_vault',
695
- type: 'address',
735
+ name: '_swapInstructions',
736
+ type: 'tuple[]',
737
+ components: [
738
+ {
739
+ name: 'legoId',
740
+ type: 'uint256',
741
+ },
742
+ {
743
+ name: 'amountIn',
744
+ type: 'uint256',
745
+ },
746
+ {
747
+ name: 'minAmountOut',
748
+ type: 'uint256',
749
+ },
750
+ {
751
+ name: 'tokenPath',
752
+ type: 'address[]',
753
+ },
754
+ {
755
+ name: 'poolPath',
756
+ type: 'address[]',
757
+ },
758
+ ],
696
759
  },
697
760
  {
698
- name: '_recipient',
699
- type: 'address',
761
+ name: '_sig',
762
+ type: 'tuple',
763
+ components: [
764
+ {
765
+ name: 'signature',
766
+ type: 'bytes',
767
+ },
768
+ {
769
+ name: 'nonce',
770
+ type: 'uint256',
771
+ },
772
+ {
773
+ name: 'expiration',
774
+ type: 'uint256',
775
+ },
776
+ ],
700
777
  },
701
778
  ],
702
- name: 'depositTokens',
703
779
  outputs: [
704
780
  {
705
781
  name: '',
706
- type: 'uint256',
782
+ type: 'address',
707
783
  },
708
784
  {
709
785
  name: '',
710
- type: 'address',
786
+ type: 'uint256',
711
787
  },
712
788
  {
713
789
  name: '',
714
- type: 'uint256',
790
+ type: 'address',
715
791
  },
716
792
  {
717
793
  name: '',
@@ -722,33 +798,21 @@ export const abi = [
722
798
  type: 'uint256',
723
799
  },
724
800
  ],
725
- stateMutability: 'nonpayable',
726
- type: 'function',
727
801
  },
728
802
  {
803
+ stateMutability: 'nonpayable',
804
+ type: 'function',
805
+ name: 'claimIncentives',
729
806
  inputs: [
730
807
  {
731
- name: '_asset',
808
+ name: '_userWallet',
732
809
  type: 'address',
733
810
  },
734
811
  {
735
- name: '_amount',
812
+ name: '_legoId',
736
813
  type: 'uint256',
737
814
  },
738
- {
739
- name: '_vault',
740
- type: 'address',
741
- },
742
- {
743
- name: '_recipient',
744
- type: 'address',
745
- },
746
- {
747
- name: '_oracleRegistry',
748
- type: 'address',
749
- },
750
815
  ],
751
- name: 'depositTokens',
752
816
  outputs: [
753
817
  {
754
818
  name: '',
@@ -756,12 +820,29 @@ export const abi = [
756
820
  },
757
821
  {
758
822
  name: '',
823
+ type: 'uint256',
824
+ },
825
+ ],
826
+ },
827
+ {
828
+ stateMutability: 'nonpayable',
829
+ type: 'function',
830
+ name: 'claimIncentives',
831
+ inputs: [
832
+ {
833
+ name: '_userWallet',
759
834
  type: 'address',
760
835
  },
761
836
  {
762
- name: '',
837
+ name: '_legoId',
763
838
  type: 'uint256',
764
839
  },
840
+ {
841
+ name: '_rewardToken',
842
+ type: 'address',
843
+ },
844
+ ],
845
+ outputs: [
765
846
  {
766
847
  name: '',
767
848
  type: 'uint256',
@@ -771,29 +852,29 @@ export const abi = [
771
852
  type: 'uint256',
772
853
  },
773
854
  ],
774
- stateMutability: 'nonpayable',
775
- type: 'function',
776
855
  },
777
856
  {
857
+ stateMutability: 'nonpayable',
858
+ type: 'function',
859
+ name: 'claimIncentives',
778
860
  inputs: [
779
861
  {
780
- name: '_asset',
862
+ name: '_userWallet',
781
863
  type: 'address',
782
864
  },
783
865
  {
784
- name: '_amount',
866
+ name: '_legoId',
785
867
  type: 'uint256',
786
868
  },
787
869
  {
788
- name: '_vaultToken',
870
+ name: '_rewardToken',
789
871
  type: 'address',
790
872
  },
791
873
  {
792
- name: '_recipient',
793
- type: 'address',
874
+ name: '_rewardAmount',
875
+ type: 'uint256',
794
876
  },
795
877
  ],
796
- name: 'withdrawTokens',
797
878
  outputs: [
798
879
  {
799
880
  name: '',
@@ -803,42 +884,34 @@ export const abi = [
803
884
  name: '',
804
885
  type: 'uint256',
805
886
  },
806
- {
807
- name: '',
808
- type: 'uint256',
809
- },
810
- {
811
- name: '',
812
- type: 'uint256',
813
- },
814
887
  ],
815
- stateMutability: 'nonpayable',
816
- type: 'function',
817
888
  },
818
889
  {
890
+ stateMutability: 'nonpayable',
891
+ type: 'function',
892
+ name: 'claimIncentives',
819
893
  inputs: [
820
894
  {
821
- name: '_asset',
895
+ name: '_userWallet',
822
896
  type: 'address',
823
897
  },
824
898
  {
825
- name: '_amount',
899
+ name: '_legoId',
826
900
  type: 'uint256',
827
901
  },
828
902
  {
829
- name: '_vaultToken',
903
+ name: '_rewardToken',
830
904
  type: 'address',
831
905
  },
832
906
  {
833
- name: '_recipient',
834
- type: 'address',
907
+ name: '_rewardAmount',
908
+ type: 'uint256',
835
909
  },
836
910
  {
837
- name: '_oracleRegistry',
838
- type: 'address',
911
+ name: '_proofs',
912
+ type: 'bytes32[]',
839
913
  },
840
914
  ],
841
- name: 'withdrawTokens',
842
915
  outputs: [
843
916
  {
844
917
  name: '',
@@ -848,27 +921,20 @@ export const abi = [
848
921
  name: '',
849
922
  type: 'uint256',
850
923
  },
851
- {
852
- name: '',
853
- type: 'uint256',
854
- },
855
- {
856
- name: '',
857
- type: 'uint256',
858
- },
859
924
  ],
860
- stateMutability: 'nonpayable',
861
- type: 'function',
862
925
  },
863
926
  {
927
+ stateMutability: 'nonpayable',
928
+ type: 'function',
929
+ name: 'claimIncentives',
864
930
  inputs: [
865
931
  {
866
- name: '_user',
932
+ name: '_userWallet',
867
933
  type: 'address',
868
934
  },
869
935
  {
870
- name: '_market',
871
- type: 'address',
936
+ name: '_legoId',
937
+ type: 'uint256',
872
938
  },
873
939
  {
874
940
  name: '_rewardToken',
@@ -879,188 +945,251 @@ export const abi = [
879
945
  type: 'uint256',
880
946
  },
881
947
  {
882
- name: '_proof',
883
- type: 'bytes32',
948
+ name: '_proofs',
949
+ type: 'bytes32[]',
884
950
  },
885
- ],
886
- name: 'claimRewards',
887
- outputs: [],
888
- stateMutability: 'nonpayable',
889
- type: 'function',
890
- },
891
- {
892
- inputs: [
893
951
  {
894
- name: '_user',
895
- type: 'address',
952
+ name: '_sig',
953
+ type: 'tuple',
954
+ components: [
955
+ {
956
+ name: 'signature',
957
+ type: 'bytes',
958
+ },
959
+ {
960
+ name: 'nonce',
961
+ type: 'uint256',
962
+ },
963
+ {
964
+ name: 'expiration',
965
+ type: 'uint256',
966
+ },
967
+ ],
896
968
  },
897
969
  ],
898
- name: 'hasClaimableRewards',
899
970
  outputs: [
900
971
  {
901
972
  name: '',
902
- type: 'bool',
973
+ type: 'uint256',
974
+ },
975
+ {
976
+ name: '',
977
+ type: 'uint256',
903
978
  },
904
979
  ],
905
- stateMutability: 'view',
906
- type: 'function',
907
980
  },
908
981
  {
982
+ stateMutability: 'nonpayable',
983
+ type: 'function',
984
+ name: 'performBatchActions',
909
985
  inputs: [
910
986
  {
911
- name: '_asset',
987
+ name: '_userWallet',
912
988
  type: 'address',
913
989
  },
914
990
  {
915
- name: '_recipient',
916
- type: 'address',
991
+ name: '_instructions',
992
+ type: 'tuple[]',
993
+ components: [
994
+ {
995
+ name: 'usePrevAmountOut',
996
+ type: 'bool',
997
+ },
998
+ {
999
+ name: 'action',
1000
+ type: 'uint8',
1001
+ },
1002
+ {
1003
+ name: 'legoId',
1004
+ type: 'uint16',
1005
+ },
1006
+ {
1007
+ name: 'asset',
1008
+ type: 'address',
1009
+ },
1010
+ {
1011
+ name: 'target',
1012
+ type: 'address',
1013
+ },
1014
+ {
1015
+ name: 'amount',
1016
+ type: 'uint256',
1017
+ },
1018
+ {
1019
+ name: 'extraData',
1020
+ type: 'bytes32',
1021
+ },
1022
+ ],
917
1023
  },
918
1024
  ],
919
- name: 'recoverFunds',
920
1025
  outputs: [
921
1026
  {
922
1027
  name: '',
923
1028
  type: 'bool',
924
1029
  },
925
1030
  ],
926
- stateMutability: 'nonpayable',
927
- type: 'function',
928
1031
  },
929
1032
  {
1033
+ stateMutability: 'nonpayable',
1034
+ type: 'function',
1035
+ name: 'performBatchActions',
930
1036
  inputs: [
931
1037
  {
932
- name: '_legoId',
933
- type: 'uint256',
1038
+ name: '_userWallet',
1039
+ type: 'address',
1040
+ },
1041
+ {
1042
+ name: '_instructions',
1043
+ type: 'tuple[]',
1044
+ components: [
1045
+ {
1046
+ name: 'usePrevAmountOut',
1047
+ type: 'bool',
1048
+ },
1049
+ {
1050
+ name: 'action',
1051
+ type: 'uint8',
1052
+ },
1053
+ {
1054
+ name: 'legoId',
1055
+ type: 'uint16',
1056
+ },
1057
+ {
1058
+ name: 'asset',
1059
+ type: 'address',
1060
+ },
1061
+ {
1062
+ name: 'target',
1063
+ type: 'address',
1064
+ },
1065
+ {
1066
+ name: 'amount',
1067
+ type: 'uint256',
1068
+ },
1069
+ {
1070
+ name: 'extraData',
1071
+ type: 'bytes32',
1072
+ },
1073
+ ],
1074
+ },
1075
+ {
1076
+ name: '_sig',
1077
+ type: 'tuple',
1078
+ components: [
1079
+ {
1080
+ name: 'signature',
1081
+ type: 'bytes',
1082
+ },
1083
+ {
1084
+ name: 'nonce',
1085
+ type: 'uint256',
1086
+ },
1087
+ {
1088
+ name: 'expiration',
1089
+ type: 'uint256',
1090
+ },
1091
+ ],
934
1092
  },
935
1093
  ],
936
- name: 'setLegoId',
937
1094
  outputs: [
938
1095
  {
939
1096
  name: '',
940
1097
  type: 'bool',
941
1098
  },
942
1099
  ],
943
- stateMutability: 'nonpayable',
944
- type: 'function',
945
1100
  },
946
1101
  {
1102
+ stateMutability: 'nonpayable',
1103
+ type: 'function',
1104
+ name: 'incrementNonce',
947
1105
  inputs: [
948
1106
  {
949
- name: '_shouldActivate',
950
- type: 'bool',
1107
+ name: '_userWallet',
1108
+ type: 'address',
951
1109
  },
952
1110
  ],
953
- name: 'activate',
954
1111
  outputs: [],
955
- stateMutability: 'nonpayable',
956
- type: 'function',
957
1112
  },
958
1113
  {
959
- inputs: [],
960
- name: 'usdc',
961
- outputs: [
962
- {
963
- name: '',
964
- type: 'address',
965
- },
966
- ],
967
1114
  stateMutability: 'view',
968
1115
  type: 'function',
969
- },
970
- {
971
- inputs: [],
972
- name: 'usds',
973
- outputs: [
1116
+ name: 'getNonce',
1117
+ inputs: [
974
1118
  {
975
- name: '',
1119
+ name: '_userWallet',
976
1120
  type: 'address',
977
1121
  },
978
1122
  ],
979
- stateMutability: 'view',
980
- type: 'function',
981
- },
982
- {
983
- inputs: [],
984
- name: 'susds',
985
1123
  outputs: [
986
1124
  {
987
1125
  name: '',
988
- type: 'address',
1126
+ type: 'uint256',
989
1127
  },
990
1128
  ],
991
- stateMutability: 'view',
992
- type: 'function',
993
1129
  },
994
1130
  {
995
- inputs: [],
996
- name: 'SKY_PSM',
997
- outputs: [
998
- {
999
- name: '',
1000
- type: 'address',
1001
- },
1002
- ],
1003
1131
  stateMutability: 'view',
1004
1132
  type: 'function',
1005
- },
1006
- {
1133
+ name: 'groupId',
1007
1134
  inputs: [],
1008
- name: 'legoId',
1009
1135
  outputs: [
1010
1136
  {
1011
1137
  name: '',
1012
1138
  type: 'uint256',
1013
1139
  },
1014
1140
  ],
1015
- stateMutability: 'view',
1016
- type: 'function',
1017
1141
  },
1018
1142
  {
1019
- inputs: [],
1020
- name: 'isActivated',
1021
- outputs: [
1143
+ stateMutability: 'view',
1144
+ type: 'function',
1145
+ name: 'currentNonce',
1146
+ inputs: [
1022
1147
  {
1023
- name: '',
1024
- type: 'bool',
1148
+ name: 'arg0',
1149
+ type: 'address',
1025
1150
  },
1026
1151
  ],
1027
- stateMutability: 'view',
1028
- type: 'function',
1029
- },
1030
- {
1031
- inputs: [],
1032
- name: 'ADDY_REGISTRY',
1033
1152
  outputs: [
1034
1153
  {
1035
1154
  name: '',
1036
- type: 'address',
1155
+ type: 'uint256',
1037
1156
  },
1038
1157
  ],
1039
- stateMutability: 'view',
1040
- type: 'function',
1041
1158
  },
1042
1159
  {
1160
+ stateMutability: 'nonpayable',
1161
+ type: 'constructor',
1043
1162
  inputs: [
1044
1163
  {
1045
- name: '_skyPsm',
1164
+ name: '_undyHq',
1046
1165
  type: 'address',
1047
1166
  },
1048
1167
  {
1049
- name: '_addyRegistry',
1168
+ name: '_owner',
1050
1169
  type: 'address',
1051
1170
  },
1171
+ {
1172
+ name: '_groupId',
1173
+ type: 'uint256',
1174
+ },
1175
+ {
1176
+ name: '_minTimeLock',
1177
+ type: 'uint256',
1178
+ },
1179
+ {
1180
+ name: '_maxTimeLock',
1181
+ type: 'uint256',
1182
+ },
1052
1183
  ],
1053
1184
  outputs: [],
1054
- stateMutability: 'nonpayable',
1055
- type: 'constructor',
1056
1185
  },
1057
1186
  ];
1058
- export const deployAddress = '0x3514536163D5c0c5207A6A1230fc76bEe8CE8506';
1187
+ export const deployAddress = '0x6B014c7BE0fCA7801133Db96737378CCE85230a7';
1059
1188
  function getRequest(method, args, contractAddressOrOptions) {
1060
1189
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1061
1190
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
1062
1191
  const call = {
1063
- contractName: 'v0_3_LegoSky',
1192
+ contractName: 'EarnVaultAgent',
1064
1193
  method,
1065
1194
  args,
1066
1195
  address,
@@ -1084,37 +1213,19 @@ function getRequest(method, args, contractAddressOrOptions) {
1084
1213
  return call;
1085
1214
  }
1086
1215
  export const call = {
1087
- canGovern: (...args) => getRequest('canGovern', args),
1088
- hasPendingGovChange: (...args) => getRequest('hasPendingGovChange', args),
1089
- governance: (...args) => getRequest('governance', args),
1090
- pendingGov: (...args) => getRequest('pendingGov', args),
1091
- govChangeDelay: (...args) => getRequest('govChangeDelay', args),
1092
- MIN_GOV_CHANGE_DELAY: (...args) => getRequest('MIN_GOV_CHANGE_DELAY', args),
1093
- MAX_GOV_CHANGE_DELAY: (...args) => getRequest('MAX_GOV_CHANGE_DELAY', args),
1094
- getRegistries: (...args) => getRequest('getRegistries', args),
1095
- getAccessForLego: (...args) => getRequest('getAccessForLego', args),
1096
- getAssetOpportunities: (...args) => getRequest('getAssetOpportunities', args),
1097
- getAssets: (...args) => getRequest('getAssets', args),
1098
- isVaultToken: (...args) => getRequest('isVaultToken', args),
1099
- getUnderlyingAsset: (...args) => getRequest('getUnderlyingAsset', args),
1100
- getUnderlyingAmount: (...args) => getRequest('getUnderlyingAmount', args),
1101
- getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
1102
- getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
1103
- getUnderlyingData: (...args) => getRequest('getUnderlyingData', args),
1104
- totalAssets: (...args) => getRequest('totalAssets', args),
1105
- totalBorrows: (...args) => getRequest('totalBorrows', args),
1106
- hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
1107
- usdc: (...args) => getRequest('usdc', args),
1108
- usds: (...args) => getRequest('usds', args),
1109
- susds: (...args) => getRequest('susds', args),
1110
- SKY_PSM: (...args) => getRequest('SKY_PSM', args),
1111
- legoId: (...args) => getRequest('legoId', args),
1112
- isActivated: (...args) => getRequest('isActivated', args),
1113
- ADDY_REGISTRY: (...args) => getRequest('ADDY_REGISTRY', args),
1216
+ hasPendingOwnerChange: (...args) => getRequest('hasPendingOwnerChange', args),
1217
+ owner: (...args) => getRequest('owner', args),
1218
+ ownershipTimeLock: (...args) => getRequest('ownershipTimeLock', args),
1219
+ pendingOwner: (...args) => getRequest('pendingOwner', args),
1220
+ MIN_OWNERSHIP_TIMELOCK: (...args) => getRequest('MIN_OWNERSHIP_TIMELOCK', args),
1221
+ MAX_OWNERSHIP_TIMELOCK: (...args) => getRequest('MAX_OWNERSHIP_TIMELOCK', args),
1222
+ getNonce: (...args) => getRequest('getNonce', args),
1223
+ groupId: (...args) => getRequest('groupId', args),
1224
+ currentNonce: (...args) => getRequest('currentNonce', args),
1114
1225
  };
1115
1226
  function getMutation(functionName) {
1116
1227
  return {
1117
- contractName: 'v0_3_LegoSky',
1228
+ contractName: 'EarnVaultAgent',
1118
1229
  functionName,
1119
1230
  deployAddress,
1120
1231
  argsType: undefined,
@@ -1122,59 +1233,41 @@ function getMutation(functionName) {
1122
1233
  };
1123
1234
  }
1124
1235
  export const mutation = {
1125
- changeGovernance: getMutation('changeGovernance'),
1126
- confirmGovernanceChange: getMutation('confirmGovernanceChange'),
1127
- cancelGovernanceChange: getMutation('cancelGovernanceChange'),
1128
- setGovernanceChangeDelay: getMutation('setGovernanceChangeDelay'),
1129
- depositTokens: getMutation('depositTokens'),
1130
- withdrawTokens: getMutation('withdrawTokens'),
1131
- claimRewards: getMutation('claimRewards'),
1132
- recoverFunds: getMutation('recoverFunds'),
1133
- setLegoId: getMutation('setLegoId'),
1134
- activate: getMutation('activate'),
1236
+ changeOwnership: getMutation('changeOwnership'),
1237
+ confirmOwnershipChange: getMutation('confirmOwnershipChange'),
1238
+ cancelOwnershipChange: getMutation('cancelOwnershipChange'),
1239
+ setOwnershipTimeLock: getMutation('setOwnershipTimeLock'),
1240
+ depositForYield: getMutation('depositForYield'),
1241
+ withdrawFromYield: getMutation('withdrawFromYield'),
1242
+ swapTokens: getMutation('swapTokens'),
1243
+ claimIncentives: getMutation('claimIncentives'),
1244
+ performBatchActions: getMutation('performBatchActions'),
1245
+ incrementNonce: getMutation('incrementNonce'),
1135
1246
  };
1136
1247
  export function toSdk(publicClient, walletClient) {
1137
1248
  return {
1138
1249
  deployAddress,
1139
1250
  abi,
1140
1251
  // Queries
1141
- canGovern: (...args) => singleQuery(publicClient, call.canGovern(...args)),
1142
- hasPendingGovChange: (...args) => singleQuery(publicClient, call.hasPendingGovChange(...args)),
1143
- governance: (...args) => singleQuery(publicClient, call.governance(...args)),
1144
- pendingGov: (...args) => singleQuery(publicClient, call.pendingGov(...args)),
1145
- govChangeDelay: (...args) => singleQuery(publicClient, call.govChangeDelay(...args)),
1146
- MIN_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_GOV_CHANGE_DELAY(...args)),
1147
- MAX_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_GOV_CHANGE_DELAY(...args)),
1148
- getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args)),
1149
- getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
1150
- getAssetOpportunities: (...args) => singleQuery(publicClient, call.getAssetOpportunities(...args)),
1151
- getAssets: (...args) => singleQuery(publicClient, call.getAssets(...args)),
1152
- isVaultToken: (...args) => singleQuery(publicClient, call.isVaultToken(...args)),
1153
- getUnderlyingAsset: (...args) => singleQuery(publicClient, call.getUnderlyingAsset(...args)),
1154
- getUnderlyingAmount: (...args) => singleQuery(publicClient, call.getUnderlyingAmount(...args)),
1155
- getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
1156
- getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
1157
- getUnderlyingData: (...args) => singleQuery(publicClient, call.getUnderlyingData(...args)),
1158
- totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args)),
1159
- totalBorrows: (...args) => singleQuery(publicClient, call.totalBorrows(...args)),
1160
- hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
1161
- usdc: (...args) => singleQuery(publicClient, call.usdc(...args)),
1162
- usds: (...args) => singleQuery(publicClient, call.usds(...args)),
1163
- susds: (...args) => singleQuery(publicClient, call.susds(...args)),
1164
- SKY_PSM: (...args) => singleQuery(publicClient, call.SKY_PSM(...args)),
1165
- legoId: (...args) => singleQuery(publicClient, call.legoId(...args)),
1166
- isActivated: (...args) => singleQuery(publicClient, call.isActivated(...args)),
1167
- ADDY_REGISTRY: (...args) => singleQuery(publicClient, call.ADDY_REGISTRY(...args)),
1252
+ hasPendingOwnerChange: (...args) => singleQuery(publicClient, call.hasPendingOwnerChange(...args)),
1253
+ owner: (...args) => singleQuery(publicClient, call.owner(...args)),
1254
+ ownershipTimeLock: (...args) => singleQuery(publicClient, call.ownershipTimeLock(...args)),
1255
+ pendingOwner: (...args) => singleQuery(publicClient, call.pendingOwner(...args)),
1256
+ MIN_OWNERSHIP_TIMELOCK: (...args) => singleQuery(publicClient, call.MIN_OWNERSHIP_TIMELOCK(...args)),
1257
+ MAX_OWNERSHIP_TIMELOCK: (...args) => singleQuery(publicClient, call.MAX_OWNERSHIP_TIMELOCK(...args)),
1258
+ getNonce: (...args) => singleQuery(publicClient, call.getNonce(...args)),
1259
+ groupId: (...args) => singleQuery(publicClient, call.groupId(...args)),
1260
+ currentNonce: (...args) => singleQuery(publicClient, call.currentNonce(...args)),
1168
1261
  // Mutations
1169
- changeGovernance: (...args) => mutate(walletClient, mutation.changeGovernance)(...args),
1170
- confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
1171
- cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange)(...args),
1172
- setGovernanceChangeDelay: (...args) => mutate(walletClient, mutation.setGovernanceChangeDelay)(...args),
1173
- depositTokens: (...args) => mutate(walletClient, mutation.depositTokens)(...args),
1174
- withdrawTokens: (...args) => mutate(walletClient, mutation.withdrawTokens)(...args),
1175
- claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
1176
- recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
1177
- setLegoId: (...args) => mutate(walletClient, mutation.setLegoId)(...args),
1178
- activate: (...args) => mutate(walletClient, mutation.activate)(...args),
1262
+ changeOwnership: (...args) => mutate(walletClient, mutation.changeOwnership)(...args),
1263
+ confirmOwnershipChange: (...args) => mutate(walletClient, mutation.confirmOwnershipChange)(...args),
1264
+ cancelOwnershipChange: (...args) => mutate(walletClient, mutation.cancelOwnershipChange)(...args),
1265
+ setOwnershipTimeLock: (...args) => mutate(walletClient, mutation.setOwnershipTimeLock)(...args),
1266
+ depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
1267
+ withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
1268
+ swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
1269
+ claimIncentives: (...args) => mutate(walletClient, mutation.claimIncentives)(...args),
1270
+ performBatchActions: (...args) => mutate(walletClient, mutation.performBatchActions)(...args),
1271
+ incrementNonce: (...args) => mutate(walletClient, mutation.incrementNonce)(...args),
1179
1272
  };
1180
1273
  }