@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
@@ -1,1365 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /* @ts-nocheck */
5
- import { singleQuery, mutate } from '@dappql/async';
6
- export const abi = [
7
- {
8
- anonymous: false,
9
- inputs: [
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',
23
- type: 'address',
24
- },
25
- {
26
- indexed: false,
27
- name: 'assetAmountDeposited',
28
- type: 'uint256',
29
- },
30
- {
31
- indexed: false,
32
- name: 'usdValue',
33
- type: 'uint256',
34
- },
35
- {
36
- indexed: false,
37
- name: 'vaultTokenAmountReceived',
38
- type: 'uint256',
39
- },
40
- {
41
- indexed: false,
42
- name: 'recipient',
43
- type: 'address',
44
- },
45
- ],
46
- name: 'CompoundV3Deposit',
47
- type: 'event',
48
- },
49
- {
50
- anonymous: false,
51
- inputs: [
52
- {
53
- indexed: true,
54
- name: 'sender',
55
- type: 'address',
56
- },
57
- {
58
- indexed: true,
59
- name: 'asset',
60
- type: 'address',
61
- },
62
- {
63
- indexed: true,
64
- name: 'vaultToken',
65
- type: 'address',
66
- },
67
- {
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',
80
- type: 'uint256',
81
- },
82
- {
83
- indexed: false,
84
- name: 'recipient',
85
- type: 'address',
86
- },
87
- ],
88
- name: 'CompoundV3Withdrawal',
89
- type: 'event',
90
- },
91
- {
92
- anonymous: false,
93
- inputs: [
94
- {
95
- indexed: true,
96
- name: 'asset',
97
- type: 'address',
98
- },
99
- {
100
- indexed: true,
101
- name: 'recipient',
102
- type: 'address',
103
- },
104
- {
105
- indexed: false,
106
- name: 'amount',
107
- type: 'uint256',
108
- },
109
- ],
110
- name: 'CompoundV3FundsRecovered',
111
- type: 'event',
112
- },
113
- {
114
- anonymous: false,
115
- inputs: [
116
- {
117
- indexed: false,
118
- name: 'addr',
119
- type: 'address',
120
- },
121
- ],
122
- name: 'CompoundV3RewardsAddrSet',
123
- type: 'event',
124
- },
125
- {
126
- anonymous: false,
127
- inputs: [
128
- {
129
- indexed: false,
130
- name: 'legoId',
131
- type: 'uint256',
132
- },
133
- ],
134
- name: 'CompoundV3LegoIdSet',
135
- type: 'event',
136
- },
137
- {
138
- anonymous: false,
139
- inputs: [
140
- {
141
- indexed: false,
142
- name: 'isActivated',
143
- type: 'bool',
144
- },
145
- ],
146
- name: 'CompoundV3Activated',
147
- type: 'event',
148
- },
149
- {
150
- anonymous: false,
151
- inputs: [
152
- {
153
- indexed: true,
154
- name: 'prevGov',
155
- type: 'address',
156
- },
157
- {
158
- indexed: true,
159
- name: 'newGov',
160
- type: 'address',
161
- },
162
- {
163
- indexed: false,
164
- name: 'confirmBlock',
165
- type: 'uint256',
166
- },
167
- ],
168
- name: 'GovChangeInitiated',
169
- type: 'event',
170
- },
171
- {
172
- anonymous: false,
173
- inputs: [
174
- {
175
- indexed: true,
176
- name: 'prevGov',
177
- type: 'address',
178
- },
179
- {
180
- indexed: true,
181
- name: 'newGov',
182
- type: 'address',
183
- },
184
- {
185
- indexed: false,
186
- name: 'initiatedBlock',
187
- type: 'uint256',
188
- },
189
- {
190
- indexed: false,
191
- name: 'confirmBlock',
192
- type: 'uint256',
193
- },
194
- ],
195
- name: 'GovChangeConfirmed',
196
- type: 'event',
197
- },
198
- {
199
- anonymous: false,
200
- inputs: [
201
- {
202
- indexed: true,
203
- name: 'cancelledGov',
204
- type: 'address',
205
- },
206
- {
207
- indexed: false,
208
- name: 'initiatedBlock',
209
- type: 'uint256',
210
- },
211
- {
212
- indexed: false,
213
- name: 'confirmBlock',
214
- type: 'uint256',
215
- },
216
- ],
217
- name: 'GovChangeCancelled',
218
- type: 'event',
219
- },
220
- {
221
- anonymous: false,
222
- inputs: [
223
- {
224
- indexed: false,
225
- name: 'delayBlocks',
226
- type: 'uint256',
227
- },
228
- ],
229
- name: 'GovChangeDelaySet',
230
- type: 'event',
231
- },
232
- {
233
- anonymous: false,
234
- inputs: [
235
- {
236
- indexed: true,
237
- name: 'asset',
238
- type: 'address',
239
- },
240
- {
241
- indexed: true,
242
- name: 'vaultToken',
243
- type: 'address',
244
- },
245
- ],
246
- name: 'AssetOpportunityAdded',
247
- type: 'event',
248
- },
249
- {
250
- anonymous: false,
251
- inputs: [
252
- {
253
- indexed: true,
254
- name: 'asset',
255
- type: 'address',
256
- },
257
- {
258
- indexed: true,
259
- name: 'vaultToken',
260
- type: 'address',
261
- },
262
- ],
263
- name: 'AssetOpportunityRemoved',
264
- type: 'event',
265
- },
266
- {
267
- inputs: [
268
- {
269
- name: '_asset',
270
- type: 'address',
271
- },
272
- ],
273
- name: 'getAssetOpportunities',
274
- outputs: [
275
- {
276
- name: '',
277
- type: 'address[]',
278
- },
279
- ],
280
- stateMutability: 'view',
281
- type: 'function',
282
- },
283
- {
284
- inputs: [],
285
- name: 'getAssets',
286
- outputs: [
287
- {
288
- name: '',
289
- type: 'address[]',
290
- },
291
- ],
292
- stateMutability: 'view',
293
- type: 'function',
294
- },
295
- {
296
- inputs: [
297
- {
298
- name: 'arg0',
299
- type: 'address',
300
- },
301
- {
302
- name: 'arg1',
303
- type: 'uint256',
304
- },
305
- ],
306
- name: 'assetOpportunities',
307
- outputs: [
308
- {
309
- name: '',
310
- type: 'address',
311
- },
312
- ],
313
- stateMutability: 'view',
314
- type: 'function',
315
- },
316
- {
317
- inputs: [
318
- {
319
- name: 'arg0',
320
- type: 'address',
321
- },
322
- {
323
- name: 'arg1',
324
- type: 'address',
325
- },
326
- ],
327
- name: 'indexOfAssetOpportunity',
328
- outputs: [
329
- {
330
- name: '',
331
- type: 'uint256',
332
- },
333
- ],
334
- stateMutability: 'view',
335
- type: 'function',
336
- },
337
- {
338
- inputs: [
339
- {
340
- name: 'arg0',
341
- type: 'address',
342
- },
343
- ],
344
- name: 'numAssetOpportunities',
345
- outputs: [
346
- {
347
- name: '',
348
- type: 'uint256',
349
- },
350
- ],
351
- stateMutability: 'view',
352
- type: 'function',
353
- },
354
- {
355
- inputs: [
356
- {
357
- name: 'arg0',
358
- type: 'address',
359
- },
360
- ],
361
- name: 'vaultToAsset',
362
- outputs: [
363
- {
364
- name: '',
365
- type: 'address',
366
- },
367
- ],
368
- stateMutability: 'view',
369
- type: 'function',
370
- },
371
- {
372
- inputs: [
373
- {
374
- name: 'arg0',
375
- type: 'uint256',
376
- },
377
- ],
378
- name: 'assets',
379
- outputs: [
380
- {
381
- name: '',
382
- type: 'address',
383
- },
384
- ],
385
- stateMutability: 'view',
386
- type: 'function',
387
- },
388
- {
389
- inputs: [
390
- {
391
- name: 'arg0',
392
- type: 'address',
393
- },
394
- ],
395
- name: 'indexOfAsset',
396
- outputs: [
397
- {
398
- name: '',
399
- type: 'uint256',
400
- },
401
- ],
402
- stateMutability: 'view',
403
- type: 'function',
404
- },
405
- {
406
- inputs: [],
407
- name: 'numAssets',
408
- outputs: [
409
- {
410
- name: '',
411
- type: 'uint256',
412
- },
413
- ],
414
- stateMutability: 'view',
415
- type: 'function',
416
- },
417
- {
418
- inputs: [
419
- {
420
- name: '_address',
421
- type: 'address',
422
- },
423
- ],
424
- name: 'canGovern',
425
- outputs: [
426
- {
427
- name: '',
428
- type: 'bool',
429
- },
430
- ],
431
- stateMutability: 'view',
432
- type: 'function',
433
- },
434
- {
435
- inputs: [],
436
- name: 'hasPendingGovChange',
437
- outputs: [
438
- {
439
- name: '',
440
- type: 'bool',
441
- },
442
- ],
443
- stateMutability: 'view',
444
- type: 'function',
445
- },
446
- {
447
- inputs: [
448
- {
449
- name: '_newGov',
450
- type: 'address',
451
- },
452
- ],
453
- name: 'changeGovernance',
454
- outputs: [],
455
- stateMutability: 'nonpayable',
456
- type: 'function',
457
- },
458
- {
459
- inputs: [],
460
- name: 'confirmGovernanceChange',
461
- outputs: [],
462
- stateMutability: 'nonpayable',
463
- type: 'function',
464
- },
465
- {
466
- inputs: [],
467
- name: 'cancelGovernanceChange',
468
- outputs: [],
469
- stateMutability: 'nonpayable',
470
- type: 'function',
471
- },
472
- {
473
- inputs: [
474
- {
475
- name: '_numBlocks',
476
- type: 'uint256',
477
- },
478
- ],
479
- name: 'setGovernanceChangeDelay',
480
- outputs: [],
481
- stateMutability: 'nonpayable',
482
- type: 'function',
483
- },
484
- {
485
- inputs: [],
486
- name: 'governance',
487
- outputs: [
488
- {
489
- name: '',
490
- type: 'address',
491
- },
492
- ],
493
- stateMutability: 'view',
494
- type: 'function',
495
- },
496
- {
497
- inputs: [],
498
- name: 'pendingGov',
499
- outputs: [
500
- {
501
- components: [
502
- {
503
- name: 'newGov',
504
- type: 'address',
505
- },
506
- {
507
- name: 'initiatedBlock',
508
- type: 'uint256',
509
- },
510
- {
511
- name: 'confirmBlock',
512
- type: 'uint256',
513
- },
514
- ],
515
- name: '',
516
- type: 'tuple',
517
- },
518
- ],
519
- stateMutability: 'view',
520
- type: 'function',
521
- },
522
- {
523
- inputs: [],
524
- name: 'govChangeDelay',
525
- outputs: [
526
- {
527
- name: '',
528
- type: 'uint256',
529
- },
530
- ],
531
- stateMutability: 'view',
532
- type: 'function',
533
- },
534
- {
535
- inputs: [],
536
- name: 'MIN_GOV_CHANGE_DELAY',
537
- outputs: [
538
- {
539
- name: '',
540
- type: 'uint256',
541
- },
542
- ],
543
- stateMutability: 'view',
544
- type: 'function',
545
- },
546
- {
547
- inputs: [],
548
- name: 'MAX_GOV_CHANGE_DELAY',
549
- outputs: [
550
- {
551
- name: '',
552
- type: 'uint256',
553
- },
554
- ],
555
- stateMutability: 'view',
556
- type: 'function',
557
- },
558
- {
559
- inputs: [],
560
- name: 'getRegistries',
561
- outputs: [
562
- {
563
- name: '',
564
- type: 'address[]',
565
- },
566
- ],
567
- stateMutability: 'view',
568
- type: 'function',
569
- },
570
- {
571
- inputs: [
572
- {
573
- name: '_user',
574
- type: 'address',
575
- },
576
- ],
577
- name: 'getAccessForLego',
578
- outputs: [
579
- {
580
- name: '',
581
- type: 'address',
582
- },
583
- {
584
- name: '',
585
- type: 'string',
586
- },
587
- {
588
- name: '',
589
- type: 'uint256',
590
- },
591
- ],
592
- stateMutability: 'view',
593
- type: 'function',
594
- },
595
- {
596
- inputs: [
597
- {
598
- name: '_vaultToken',
599
- type: 'address',
600
- },
601
- ],
602
- name: 'isVaultToken',
603
- outputs: [
604
- {
605
- name: '',
606
- type: 'bool',
607
- },
608
- ],
609
- stateMutability: 'view',
610
- type: 'function',
611
- },
612
- {
613
- inputs: [
614
- {
615
- name: '_vaultToken',
616
- type: 'address',
617
- },
618
- ],
619
- name: 'getUnderlyingAsset',
620
- outputs: [
621
- {
622
- name: '',
623
- type: 'address',
624
- },
625
- ],
626
- stateMutability: 'view',
627
- type: 'function',
628
- },
629
- {
630
- inputs: [
631
- {
632
- name: '_vaultToken',
633
- type: 'address',
634
- },
635
- {
636
- name: '_vaultTokenAmount',
637
- type: 'uint256',
638
- },
639
- ],
640
- name: 'getUnderlyingAmount',
641
- outputs: [
642
- {
643
- name: '',
644
- type: 'uint256',
645
- },
646
- ],
647
- stateMutability: 'view',
648
- type: 'function',
649
- },
650
- {
651
- inputs: [
652
- {
653
- name: '_asset',
654
- type: 'address',
655
- },
656
- {
657
- name: '_assetAmount',
658
- type: 'uint256',
659
- },
660
- {
661
- name: '_vaultToken',
662
- type: 'address',
663
- },
664
- ],
665
- name: 'getVaultTokenAmount',
666
- outputs: [
667
- {
668
- name: '',
669
- type: 'uint256',
670
- },
671
- ],
672
- stateMutability: 'view',
673
- type: 'function',
674
- },
675
- {
676
- inputs: [
677
- {
678
- name: '_vaultToken',
679
- type: 'address',
680
- },
681
- {
682
- name: '_vaultTokenAmount',
683
- type: 'uint256',
684
- },
685
- ],
686
- name: 'getUsdValueOfVaultToken',
687
- outputs: [
688
- {
689
- name: '',
690
- type: 'uint256',
691
- },
692
- ],
693
- stateMutability: 'view',
694
- type: 'function',
695
- },
696
- {
697
- inputs: [
698
- {
699
- name: '_vaultToken',
700
- type: 'address',
701
- },
702
- {
703
- name: '_vaultTokenAmount',
704
- type: 'uint256',
705
- },
706
- {
707
- name: '_oracleRegistry',
708
- type: 'address',
709
- },
710
- ],
711
- name: 'getUsdValueOfVaultToken',
712
- outputs: [
713
- {
714
- name: '',
715
- type: 'uint256',
716
- },
717
- ],
718
- stateMutability: 'view',
719
- type: 'function',
720
- },
721
- {
722
- inputs: [
723
- {
724
- name: '_vaultToken',
725
- type: 'address',
726
- },
727
- {
728
- name: '_vaultTokenAmount',
729
- type: 'uint256',
730
- },
731
- ],
732
- name: 'getUnderlyingData',
733
- outputs: [
734
- {
735
- name: '',
736
- type: 'address',
737
- },
738
- {
739
- name: '',
740
- type: 'uint256',
741
- },
742
- {
743
- name: '',
744
- type: 'uint256',
745
- },
746
- ],
747
- stateMutability: 'view',
748
- type: 'function',
749
- },
750
- {
751
- inputs: [
752
- {
753
- name: '_vaultToken',
754
- type: 'address',
755
- },
756
- {
757
- name: '_vaultTokenAmount',
758
- type: 'uint256',
759
- },
760
- {
761
- name: '_oracleRegistry',
762
- type: 'address',
763
- },
764
- ],
765
- name: 'getUnderlyingData',
766
- outputs: [
767
- {
768
- name: '',
769
- type: 'address',
770
- },
771
- {
772
- name: '',
773
- type: 'uint256',
774
- },
775
- {
776
- name: '',
777
- type: 'uint256',
778
- },
779
- ],
780
- stateMutability: 'view',
781
- type: 'function',
782
- },
783
- {
784
- inputs: [
785
- {
786
- name: '_vaultToken',
787
- type: 'address',
788
- },
789
- ],
790
- name: 'totalAssets',
791
- outputs: [
792
- {
793
- name: '',
794
- type: 'uint256',
795
- },
796
- ],
797
- stateMutability: 'view',
798
- type: 'function',
799
- },
800
- {
801
- inputs: [
802
- {
803
- name: '_vaultToken',
804
- type: 'address',
805
- },
806
- ],
807
- name: 'totalBorrows',
808
- outputs: [
809
- {
810
- name: '',
811
- type: 'uint256',
812
- },
813
- ],
814
- stateMutability: 'view',
815
- type: 'function',
816
- },
817
- {
818
- inputs: [
819
- {
820
- name: '_asset',
821
- type: 'address',
822
- },
823
- {
824
- name: '_amount',
825
- type: 'uint256',
826
- },
827
- {
828
- name: '_vault',
829
- type: 'address',
830
- },
831
- {
832
- name: '_recipient',
833
- type: 'address',
834
- },
835
- ],
836
- name: 'depositTokens',
837
- outputs: [
838
- {
839
- name: '',
840
- type: 'uint256',
841
- },
842
- {
843
- name: '',
844
- type: 'address',
845
- },
846
- {
847
- name: '',
848
- type: 'uint256',
849
- },
850
- {
851
- name: '',
852
- type: 'uint256',
853
- },
854
- {
855
- name: '',
856
- type: 'uint256',
857
- },
858
- ],
859
- stateMutability: 'nonpayable',
860
- type: 'function',
861
- },
862
- {
863
- inputs: [
864
- {
865
- name: '_asset',
866
- type: 'address',
867
- },
868
- {
869
- name: '_amount',
870
- type: 'uint256',
871
- },
872
- {
873
- name: '_vault',
874
- type: 'address',
875
- },
876
- {
877
- name: '_recipient',
878
- type: 'address',
879
- },
880
- {
881
- name: '_oracleRegistry',
882
- type: 'address',
883
- },
884
- ],
885
- name: 'depositTokens',
886
- outputs: [
887
- {
888
- name: '',
889
- type: 'uint256',
890
- },
891
- {
892
- name: '',
893
- type: 'address',
894
- },
895
- {
896
- name: '',
897
- type: 'uint256',
898
- },
899
- {
900
- name: '',
901
- type: 'uint256',
902
- },
903
- {
904
- name: '',
905
- type: 'uint256',
906
- },
907
- ],
908
- stateMutability: 'nonpayable',
909
- type: 'function',
910
- },
911
- {
912
- inputs: [
913
- {
914
- name: '_asset',
915
- type: 'address',
916
- },
917
- {
918
- name: '_amount',
919
- type: 'uint256',
920
- },
921
- {
922
- name: '_vaultToken',
923
- type: 'address',
924
- },
925
- {
926
- name: '_recipient',
927
- type: 'address',
928
- },
929
- ],
930
- name: 'withdrawTokens',
931
- outputs: [
932
- {
933
- name: '',
934
- type: 'uint256',
935
- },
936
- {
937
- name: '',
938
- type: 'uint256',
939
- },
940
- {
941
- name: '',
942
- type: 'uint256',
943
- },
944
- {
945
- name: '',
946
- type: 'uint256',
947
- },
948
- ],
949
- stateMutability: 'nonpayable',
950
- type: 'function',
951
- },
952
- {
953
- inputs: [
954
- {
955
- name: '_asset',
956
- type: 'address',
957
- },
958
- {
959
- name: '_amount',
960
- type: 'uint256',
961
- },
962
- {
963
- name: '_vaultToken',
964
- type: 'address',
965
- },
966
- {
967
- name: '_recipient',
968
- type: 'address',
969
- },
970
- {
971
- name: '_oracleRegistry',
972
- type: 'address',
973
- },
974
- ],
975
- name: 'withdrawTokens',
976
- outputs: [
977
- {
978
- name: '',
979
- type: 'uint256',
980
- },
981
- {
982
- name: '',
983
- type: 'uint256',
984
- },
985
- {
986
- name: '',
987
- type: 'uint256',
988
- },
989
- {
990
- name: '',
991
- type: 'uint256',
992
- },
993
- ],
994
- stateMutability: 'nonpayable',
995
- type: 'function',
996
- },
997
- {
998
- inputs: [
999
- {
1000
- name: '_user',
1001
- type: 'address',
1002
- },
1003
- {
1004
- name: '_market',
1005
- type: 'address',
1006
- },
1007
- {
1008
- name: '_rewardToken',
1009
- type: 'address',
1010
- },
1011
- {
1012
- name: '_rewardAmount',
1013
- type: 'uint256',
1014
- },
1015
- {
1016
- name: '_proof',
1017
- type: 'bytes32',
1018
- },
1019
- ],
1020
- name: 'claimRewards',
1021
- outputs: [],
1022
- stateMutability: 'nonpayable',
1023
- type: 'function',
1024
- },
1025
- {
1026
- inputs: [
1027
- {
1028
- name: '_user',
1029
- type: 'address',
1030
- },
1031
- ],
1032
- name: 'hasClaimableRewards',
1033
- outputs: [
1034
- {
1035
- name: '',
1036
- type: 'bool',
1037
- },
1038
- ],
1039
- stateMutability: 'nonpayable',
1040
- type: 'function',
1041
- },
1042
- {
1043
- inputs: [
1044
- {
1045
- name: '_addr',
1046
- type: 'address',
1047
- },
1048
- ],
1049
- name: 'setCompRewardsAddr',
1050
- outputs: [
1051
- {
1052
- name: '',
1053
- type: 'bool',
1054
- },
1055
- ],
1056
- stateMutability: 'nonpayable',
1057
- type: 'function',
1058
- },
1059
- {
1060
- inputs: [
1061
- {
1062
- name: '_asset',
1063
- type: 'address',
1064
- },
1065
- {
1066
- name: '_vault',
1067
- type: 'address',
1068
- },
1069
- ],
1070
- name: 'addAssetOpportunity',
1071
- outputs: [
1072
- {
1073
- name: '',
1074
- type: 'bool',
1075
- },
1076
- ],
1077
- stateMutability: 'nonpayable',
1078
- type: 'function',
1079
- },
1080
- {
1081
- inputs: [
1082
- {
1083
- name: '_asset',
1084
- type: 'address',
1085
- },
1086
- {
1087
- name: '_vault',
1088
- type: 'address',
1089
- },
1090
- ],
1091
- name: 'removeAssetOpportunity',
1092
- outputs: [
1093
- {
1094
- name: '',
1095
- type: 'bool',
1096
- },
1097
- ],
1098
- stateMutability: 'nonpayable',
1099
- type: 'function',
1100
- },
1101
- {
1102
- inputs: [
1103
- {
1104
- name: '_asset',
1105
- type: 'address',
1106
- },
1107
- {
1108
- name: '_recipient',
1109
- type: 'address',
1110
- },
1111
- ],
1112
- name: 'recoverFunds',
1113
- outputs: [
1114
- {
1115
- name: '',
1116
- type: 'bool',
1117
- },
1118
- ],
1119
- stateMutability: 'nonpayable',
1120
- type: 'function',
1121
- },
1122
- {
1123
- inputs: [
1124
- {
1125
- name: '_legoId',
1126
- type: 'uint256',
1127
- },
1128
- ],
1129
- name: 'setLegoId',
1130
- outputs: [
1131
- {
1132
- name: '',
1133
- type: 'bool',
1134
- },
1135
- ],
1136
- stateMutability: 'nonpayable',
1137
- type: 'function',
1138
- },
1139
- {
1140
- inputs: [
1141
- {
1142
- name: '_shouldActivate',
1143
- type: 'bool',
1144
- },
1145
- ],
1146
- name: 'activate',
1147
- outputs: [],
1148
- stateMutability: 'nonpayable',
1149
- type: 'function',
1150
- },
1151
- {
1152
- inputs: [],
1153
- name: 'compoundRewards',
1154
- outputs: [
1155
- {
1156
- name: '',
1157
- type: 'address',
1158
- },
1159
- ],
1160
- stateMutability: 'view',
1161
- type: 'function',
1162
- },
1163
- {
1164
- inputs: [],
1165
- name: 'COMPOUND_V3_CONFIGURATOR',
1166
- outputs: [
1167
- {
1168
- name: '',
1169
- type: 'address',
1170
- },
1171
- ],
1172
- stateMutability: 'view',
1173
- type: 'function',
1174
- },
1175
- {
1176
- inputs: [],
1177
- name: 'legoId',
1178
- outputs: [
1179
- {
1180
- name: '',
1181
- type: 'uint256',
1182
- },
1183
- ],
1184
- stateMutability: 'view',
1185
- type: 'function',
1186
- },
1187
- {
1188
- inputs: [],
1189
- name: 'isActivated',
1190
- outputs: [
1191
- {
1192
- name: '',
1193
- type: 'bool',
1194
- },
1195
- ],
1196
- stateMutability: 'view',
1197
- type: 'function',
1198
- },
1199
- {
1200
- inputs: [],
1201
- name: 'ADDY_REGISTRY',
1202
- outputs: [
1203
- {
1204
- name: '',
1205
- type: 'address',
1206
- },
1207
- ],
1208
- stateMutability: 'view',
1209
- type: 'function',
1210
- },
1211
- {
1212
- inputs: [
1213
- {
1214
- name: '_configurator',
1215
- type: 'address',
1216
- },
1217
- {
1218
- name: '_addyRegistry',
1219
- type: 'address',
1220
- },
1221
- ],
1222
- outputs: [],
1223
- stateMutability: 'nonpayable',
1224
- type: 'constructor',
1225
- },
1226
- ];
1227
- export const deployAddress = '0xF86d1D68C951d163aBc383C508740df6ddED500C';
1228
- function getRequest(method, args, contractAddressOrOptions) {
1229
- const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1230
- const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
1231
- const call = {
1232
- contractName: 'LegoCompoundV3',
1233
- method,
1234
- args,
1235
- address,
1236
- deployAddress,
1237
- defaultValue,
1238
- getAbi: () => abi,
1239
- with: (options) => {
1240
- call.address = options.contractAddress;
1241
- call.defaultValue = options.defaultValue;
1242
- return call;
1243
- },
1244
- defaultTo: (defaultValue) => {
1245
- call.defaultValue = defaultValue;
1246
- return call;
1247
- },
1248
- at: (address) => {
1249
- call.address = address;
1250
- return call;
1251
- },
1252
- };
1253
- return call;
1254
- }
1255
- export const call = {
1256
- getAssetOpportunities: (...args) => getRequest('getAssetOpportunities', args),
1257
- getAssets: (...args) => getRequest('getAssets', args),
1258
- assetOpportunities: (...args) => getRequest('assetOpportunities', args),
1259
- indexOfAssetOpportunity: (...args) => getRequest('indexOfAssetOpportunity', args),
1260
- numAssetOpportunities: (...args) => getRequest('numAssetOpportunities', args),
1261
- vaultToAsset: (...args) => getRequest('vaultToAsset', args),
1262
- assets: (...args) => getRequest('assets', args),
1263
- indexOfAsset: (...args) => getRequest('indexOfAsset', args),
1264
- numAssets: (...args) => getRequest('numAssets', args),
1265
- canGovern: (...args) => getRequest('canGovern', args),
1266
- hasPendingGovChange: (...args) => getRequest('hasPendingGovChange', args),
1267
- governance: (...args) => getRequest('governance', args),
1268
- pendingGov: (...args) => getRequest('pendingGov', args),
1269
- govChangeDelay: (...args) => getRequest('govChangeDelay', args),
1270
- MIN_GOV_CHANGE_DELAY: (...args) => getRequest('MIN_GOV_CHANGE_DELAY', args),
1271
- MAX_GOV_CHANGE_DELAY: (...args) => getRequest('MAX_GOV_CHANGE_DELAY', args),
1272
- getRegistries: (...args) => getRequest('getRegistries', args),
1273
- getAccessForLego: (...args) => getRequest('getAccessForLego', args),
1274
- isVaultToken: (...args) => getRequest('isVaultToken', args),
1275
- getUnderlyingAsset: (...args) => getRequest('getUnderlyingAsset', args),
1276
- getUnderlyingAmount: (...args) => getRequest('getUnderlyingAmount', args),
1277
- getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
1278
- getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
1279
- getUnderlyingData: (...args) => getRequest('getUnderlyingData', args),
1280
- totalAssets: (...args) => getRequest('totalAssets', args),
1281
- totalBorrows: (...args) => getRequest('totalBorrows', args),
1282
- compoundRewards: (...args) => getRequest('compoundRewards', args),
1283
- COMPOUND_V3_CONFIGURATOR: (...args) => getRequest('COMPOUND_V3_CONFIGURATOR', args),
1284
- legoId: (...args) => getRequest('legoId', args),
1285
- isActivated: (...args) => getRequest('isActivated', args),
1286
- ADDY_REGISTRY: (...args) => getRequest('ADDY_REGISTRY', args),
1287
- };
1288
- function getMutation(functionName) {
1289
- return {
1290
- contractName: 'LegoCompoundV3',
1291
- functionName,
1292
- deployAddress,
1293
- argsType: undefined,
1294
- getAbi: () => abi,
1295
- };
1296
- }
1297
- export const mutation = {
1298
- changeGovernance: getMutation('changeGovernance'),
1299
- confirmGovernanceChange: getMutation('confirmGovernanceChange'),
1300
- cancelGovernanceChange: getMutation('cancelGovernanceChange'),
1301
- setGovernanceChangeDelay: getMutation('setGovernanceChangeDelay'),
1302
- depositTokens: getMutation('depositTokens'),
1303
- withdrawTokens: getMutation('withdrawTokens'),
1304
- claimRewards: getMutation('claimRewards'),
1305
- hasClaimableRewards: getMutation('hasClaimableRewards'),
1306
- setCompRewardsAddr: getMutation('setCompRewardsAddr'),
1307
- addAssetOpportunity: getMutation('addAssetOpportunity'),
1308
- removeAssetOpportunity: getMutation('removeAssetOpportunity'),
1309
- recoverFunds: getMutation('recoverFunds'),
1310
- setLegoId: getMutation('setLegoId'),
1311
- activate: getMutation('activate'),
1312
- };
1313
- export function toSdk(publicClient, walletClient) {
1314
- return {
1315
- deployAddress,
1316
- abi,
1317
- // Queries
1318
- getAssetOpportunities: (...args) => singleQuery(publicClient, call.getAssetOpportunities(...args)),
1319
- getAssets: (...args) => singleQuery(publicClient, call.getAssets(...args)),
1320
- assetOpportunities: (...args) => singleQuery(publicClient, call.assetOpportunities(...args)),
1321
- indexOfAssetOpportunity: (...args) => singleQuery(publicClient, call.indexOfAssetOpportunity(...args)),
1322
- numAssetOpportunities: (...args) => singleQuery(publicClient, call.numAssetOpportunities(...args)),
1323
- vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
1324
- assets: (...args) => singleQuery(publicClient, call.assets(...args)),
1325
- indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
1326
- numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args)),
1327
- canGovern: (...args) => singleQuery(publicClient, call.canGovern(...args)),
1328
- hasPendingGovChange: (...args) => singleQuery(publicClient, call.hasPendingGovChange(...args)),
1329
- governance: (...args) => singleQuery(publicClient, call.governance(...args)),
1330
- pendingGov: (...args) => singleQuery(publicClient, call.pendingGov(...args)),
1331
- govChangeDelay: (...args) => singleQuery(publicClient, call.govChangeDelay(...args)),
1332
- MIN_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_GOV_CHANGE_DELAY(...args)),
1333
- MAX_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_GOV_CHANGE_DELAY(...args)),
1334
- getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args)),
1335
- getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
1336
- isVaultToken: (...args) => singleQuery(publicClient, call.isVaultToken(...args)),
1337
- getUnderlyingAsset: (...args) => singleQuery(publicClient, call.getUnderlyingAsset(...args)),
1338
- getUnderlyingAmount: (...args) => singleQuery(publicClient, call.getUnderlyingAmount(...args)),
1339
- getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
1340
- getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
1341
- getUnderlyingData: (...args) => singleQuery(publicClient, call.getUnderlyingData(...args)),
1342
- totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args)),
1343
- totalBorrows: (...args) => singleQuery(publicClient, call.totalBorrows(...args)),
1344
- compoundRewards: (...args) => singleQuery(publicClient, call.compoundRewards(...args)),
1345
- COMPOUND_V3_CONFIGURATOR: (...args) => singleQuery(publicClient, call.COMPOUND_V3_CONFIGURATOR(...args)),
1346
- legoId: (...args) => singleQuery(publicClient, call.legoId(...args)),
1347
- isActivated: (...args) => singleQuery(publicClient, call.isActivated(...args)),
1348
- ADDY_REGISTRY: (...args) => singleQuery(publicClient, call.ADDY_REGISTRY(...args)),
1349
- // Mutations
1350
- changeGovernance: (...args) => mutate(walletClient, mutation.changeGovernance)(...args),
1351
- confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
1352
- cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange)(...args),
1353
- setGovernanceChangeDelay: (...args) => mutate(walletClient, mutation.setGovernanceChangeDelay)(...args),
1354
- depositTokens: (...args) => mutate(walletClient, mutation.depositTokens)(...args),
1355
- withdrawTokens: (...args) => mutate(walletClient, mutation.withdrawTokens)(...args),
1356
- claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
1357
- hasClaimableRewards: (...args) => mutate(walletClient, mutation.hasClaimableRewards)(...args),
1358
- setCompRewardsAddr: (...args) => mutate(walletClient, mutation.setCompRewardsAddr)(...args),
1359
- addAssetOpportunity: (...args) => mutate(walletClient, mutation.addAssetOpportunity)(...args),
1360
- removeAssetOpportunity: (...args) => mutate(walletClient, mutation.removeAssetOpportunity)(...args),
1361
- recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
1362
- setLegoId: (...args) => mutate(walletClient, mutation.setLegoId)(...args),
1363
- activate: (...args) => mutate(walletClient, mutation.activate)(...args),
1364
- };
1365
- }