@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,1180 +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: 'SkyDeposit',
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: 'SkyWithdrawal',
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: 'vaultToken',
102
- type: 'address',
103
- },
104
- ],
105
- name: 'AssetOpportunityAdded',
106
- type: 'event',
107
- },
108
- {
109
- anonymous: false,
110
- inputs: [
111
- {
112
- indexed: true,
113
- name: 'asset',
114
- type: 'address',
115
- },
116
- {
117
- indexed: true,
118
- name: 'vaultToken',
119
- type: 'address',
120
- },
121
- ],
122
- name: 'AssetOpportunityRemoved',
123
- type: 'event',
124
- },
125
- {
126
- anonymous: false,
127
- inputs: [
128
- {
129
- indexed: true,
130
- name: 'asset',
131
- type: 'address',
132
- },
133
- {
134
- indexed: true,
135
- name: 'recipient',
136
- type: 'address',
137
- },
138
- {
139
- indexed: false,
140
- name: 'amount',
141
- type: 'uint256',
142
- },
143
- ],
144
- name: 'SkyFundsRecovered',
145
- type: 'event',
146
- },
147
- {
148
- anonymous: false,
149
- inputs: [
150
- {
151
- indexed: false,
152
- name: 'legoId',
153
- type: 'uint256',
154
- },
155
- ],
156
- name: 'SkyLegoIdSet',
157
- type: 'event',
158
- },
159
- {
160
- anonymous: false,
161
- inputs: [
162
- {
163
- indexed: false,
164
- name: 'isActivated',
165
- type: 'bool',
166
- },
167
- ],
168
- name: 'SkyActivated',
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: 'confirmBlock',
187
- type: 'uint256',
188
- },
189
- ],
190
- name: 'GovChangeInitiated',
191
- type: 'event',
192
- },
193
- {
194
- anonymous: false,
195
- inputs: [
196
- {
197
- indexed: true,
198
- name: 'prevGov',
199
- type: 'address',
200
- },
201
- {
202
- indexed: true,
203
- name: 'newGov',
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: 'GovChangeConfirmed',
218
- type: 'event',
219
- },
220
- {
221
- anonymous: false,
222
- inputs: [
223
- {
224
- indexed: true,
225
- name: 'cancelledGov',
226
- type: 'address',
227
- },
228
- {
229
- indexed: false,
230
- name: 'initiatedBlock',
231
- type: 'uint256',
232
- },
233
- {
234
- indexed: false,
235
- name: 'confirmBlock',
236
- type: 'uint256',
237
- },
238
- ],
239
- name: 'GovChangeCancelled',
240
- type: 'event',
241
- },
242
- {
243
- anonymous: false,
244
- inputs: [
245
- {
246
- indexed: false,
247
- name: 'delayBlocks',
248
- type: 'uint256',
249
- },
250
- ],
251
- name: 'GovChangeDelaySet',
252
- type: 'event',
253
- },
254
- {
255
- inputs: [
256
- {
257
- name: '_address',
258
- type: 'address',
259
- },
260
- ],
261
- name: 'canGovern',
262
- outputs: [
263
- {
264
- name: '',
265
- type: 'bool',
266
- },
267
- ],
268
- stateMutability: 'view',
269
- type: 'function',
270
- },
271
- {
272
- inputs: [],
273
- name: 'hasPendingGovChange',
274
- outputs: [
275
- {
276
- name: '',
277
- type: 'bool',
278
- },
279
- ],
280
- stateMutability: 'view',
281
- type: 'function',
282
- },
283
- {
284
- inputs: [
285
- {
286
- name: '_newGov',
287
- type: 'address',
288
- },
289
- ],
290
- name: 'changeGovernance',
291
- outputs: [],
292
- stateMutability: 'nonpayable',
293
- type: 'function',
294
- },
295
- {
296
- inputs: [],
297
- name: 'confirmGovernanceChange',
298
- outputs: [],
299
- stateMutability: 'nonpayable',
300
- type: 'function',
301
- },
302
- {
303
- inputs: [],
304
- name: 'cancelGovernanceChange',
305
- outputs: [],
306
- stateMutability: 'nonpayable',
307
- type: 'function',
308
- },
309
- {
310
- inputs: [
311
- {
312
- name: '_numBlocks',
313
- type: 'uint256',
314
- },
315
- ],
316
- name: 'setGovernanceChangeDelay',
317
- outputs: [],
318
- stateMutability: 'nonpayable',
319
- type: 'function',
320
- },
321
- {
322
- inputs: [],
323
- name: 'governance',
324
- outputs: [
325
- {
326
- name: '',
327
- type: 'address',
328
- },
329
- ],
330
- stateMutability: 'view',
331
- type: 'function',
332
- },
333
- {
334
- inputs: [],
335
- name: 'pendingGov',
336
- outputs: [
337
- {
338
- components: [
339
- {
340
- name: 'newGov',
341
- type: 'address',
342
- },
343
- {
344
- name: 'initiatedBlock',
345
- type: 'uint256',
346
- },
347
- {
348
- name: 'confirmBlock',
349
- type: 'uint256',
350
- },
351
- ],
352
- name: '',
353
- type: 'tuple',
354
- },
355
- ],
356
- stateMutability: 'view',
357
- type: 'function',
358
- },
359
- {
360
- inputs: [],
361
- name: 'govChangeDelay',
362
- outputs: [
363
- {
364
- name: '',
365
- type: 'uint256',
366
- },
367
- ],
368
- stateMutability: 'view',
369
- type: 'function',
370
- },
371
- {
372
- inputs: [],
373
- name: 'MIN_GOV_CHANGE_DELAY',
374
- outputs: [
375
- {
376
- name: '',
377
- type: 'uint256',
378
- },
379
- ],
380
- stateMutability: 'view',
381
- type: 'function',
382
- },
383
- {
384
- inputs: [],
385
- name: 'MAX_GOV_CHANGE_DELAY',
386
- outputs: [
387
- {
388
- name: '',
389
- type: 'uint256',
390
- },
391
- ],
392
- stateMutability: 'view',
393
- type: 'function',
394
- },
395
- {
396
- inputs: [],
397
- name: 'getRegistries',
398
- outputs: [
399
- {
400
- name: '',
401
- type: 'address[]',
402
- },
403
- ],
404
- stateMutability: 'view',
405
- type: 'function',
406
- },
407
- {
408
- inputs: [
409
- {
410
- name: '_user',
411
- type: 'address',
412
- },
413
- ],
414
- name: 'getAccessForLego',
415
- outputs: [
416
- {
417
- name: '',
418
- type: 'address',
419
- },
420
- {
421
- name: '',
422
- type: 'string',
423
- },
424
- {
425
- name: '',
426
- type: 'uint256',
427
- },
428
- ],
429
- stateMutability: 'view',
430
- type: 'function',
431
- },
432
- {
433
- inputs: [
434
- {
435
- name: '_asset',
436
- type: 'address',
437
- },
438
- ],
439
- name: 'getAssetOpportunities',
440
- outputs: [
441
- {
442
- name: '',
443
- type: 'address[]',
444
- },
445
- ],
446
- stateMutability: 'view',
447
- type: 'function',
448
- },
449
- {
450
- inputs: [],
451
- name: 'getAssets',
452
- outputs: [
453
- {
454
- name: '',
455
- type: 'address[]',
456
- },
457
- ],
458
- stateMutability: 'view',
459
- type: 'function',
460
- },
461
- {
462
- inputs: [
463
- {
464
- name: '_vaultToken',
465
- type: 'address',
466
- },
467
- ],
468
- name: 'isVaultToken',
469
- outputs: [
470
- {
471
- name: '',
472
- type: 'bool',
473
- },
474
- ],
475
- stateMutability: 'view',
476
- type: 'function',
477
- },
478
- {
479
- inputs: [
480
- {
481
- name: '_vaultToken',
482
- type: 'address',
483
- },
484
- ],
485
- name: 'getUnderlyingAsset',
486
- outputs: [
487
- {
488
- name: '',
489
- type: 'address',
490
- },
491
- ],
492
- stateMutability: 'view',
493
- type: 'function',
494
- },
495
- {
496
- inputs: [
497
- {
498
- name: '_vaultToken',
499
- type: 'address',
500
- },
501
- {
502
- name: '_vaultTokenAmount',
503
- type: 'uint256',
504
- },
505
- ],
506
- name: 'getUnderlyingAmount',
507
- outputs: [
508
- {
509
- name: '',
510
- type: 'uint256',
511
- },
512
- ],
513
- stateMutability: 'view',
514
- type: 'function',
515
- },
516
- {
517
- inputs: [
518
- {
519
- name: '_asset',
520
- type: 'address',
521
- },
522
- {
523
- name: '_assetAmount',
524
- type: 'uint256',
525
- },
526
- {
527
- name: '_vaultToken',
528
- type: 'address',
529
- },
530
- ],
531
- name: 'getVaultTokenAmount',
532
- outputs: [
533
- {
534
- name: '',
535
- type: 'uint256',
536
- },
537
- ],
538
- stateMutability: 'view',
539
- type: 'function',
540
- },
541
- {
542
- inputs: [
543
- {
544
- name: '_vaultToken',
545
- type: 'address',
546
- },
547
- {
548
- name: '_vaultTokenAmount',
549
- type: 'uint256',
550
- },
551
- ],
552
- name: 'getUsdValueOfVaultToken',
553
- outputs: [
554
- {
555
- name: '',
556
- type: 'uint256',
557
- },
558
- ],
559
- stateMutability: 'view',
560
- type: 'function',
561
- },
562
- {
563
- inputs: [
564
- {
565
- name: '_vaultToken',
566
- type: 'address',
567
- },
568
- {
569
- name: '_vaultTokenAmount',
570
- type: 'uint256',
571
- },
572
- {
573
- name: '_oracleRegistry',
574
- type: 'address',
575
- },
576
- ],
577
- name: 'getUsdValueOfVaultToken',
578
- outputs: [
579
- {
580
- name: '',
581
- type: 'uint256',
582
- },
583
- ],
584
- stateMutability: 'view',
585
- type: 'function',
586
- },
587
- {
588
- inputs: [
589
- {
590
- name: '_vaultToken',
591
- type: 'address',
592
- },
593
- {
594
- name: '_vaultTokenAmount',
595
- type: 'uint256',
596
- },
597
- ],
598
- name: 'getUnderlyingData',
599
- outputs: [
600
- {
601
- name: '',
602
- type: 'address',
603
- },
604
- {
605
- name: '',
606
- type: 'uint256',
607
- },
608
- {
609
- name: '',
610
- type: 'uint256',
611
- },
612
- ],
613
- stateMutability: 'view',
614
- type: 'function',
615
- },
616
- {
617
- inputs: [
618
- {
619
- name: '_vaultToken',
620
- type: 'address',
621
- },
622
- {
623
- name: '_vaultTokenAmount',
624
- type: 'uint256',
625
- },
626
- {
627
- name: '_oracleRegistry',
628
- type: 'address',
629
- },
630
- ],
631
- name: 'getUnderlyingData',
632
- outputs: [
633
- {
634
- name: '',
635
- type: 'address',
636
- },
637
- {
638
- name: '',
639
- type: 'uint256',
640
- },
641
- {
642
- name: '',
643
- type: 'uint256',
644
- },
645
- ],
646
- stateMutability: 'view',
647
- type: 'function',
648
- },
649
- {
650
- inputs: [
651
- {
652
- name: '_vaultToken',
653
- type: 'address',
654
- },
655
- ],
656
- name: 'totalAssets',
657
- outputs: [
658
- {
659
- name: '',
660
- type: 'uint256',
661
- },
662
- ],
663
- stateMutability: 'view',
664
- type: 'function',
665
- },
666
- {
667
- inputs: [
668
- {
669
- name: '_vaultToken',
670
- type: 'address',
671
- },
672
- ],
673
- name: 'totalBorrows',
674
- outputs: [
675
- {
676
- name: '',
677
- type: 'uint256',
678
- },
679
- ],
680
- stateMutability: 'view',
681
- type: 'function',
682
- },
683
- {
684
- inputs: [
685
- {
686
- name: '_asset',
687
- type: 'address',
688
- },
689
- {
690
- name: '_amount',
691
- type: 'uint256',
692
- },
693
- {
694
- name: '_vault',
695
- type: 'address',
696
- },
697
- {
698
- name: '_recipient',
699
- type: 'address',
700
- },
701
- ],
702
- name: 'depositTokens',
703
- outputs: [
704
- {
705
- name: '',
706
- type: 'uint256',
707
- },
708
- {
709
- name: '',
710
- type: 'address',
711
- },
712
- {
713
- name: '',
714
- type: 'uint256',
715
- },
716
- {
717
- name: '',
718
- type: 'uint256',
719
- },
720
- {
721
- name: '',
722
- type: 'uint256',
723
- },
724
- ],
725
- stateMutability: 'nonpayable',
726
- type: 'function',
727
- },
728
- {
729
- inputs: [
730
- {
731
- name: '_asset',
732
- type: 'address',
733
- },
734
- {
735
- name: '_amount',
736
- type: 'uint256',
737
- },
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
- ],
751
- name: 'depositTokens',
752
- outputs: [
753
- {
754
- name: '',
755
- type: 'uint256',
756
- },
757
- {
758
- name: '',
759
- type: 'address',
760
- },
761
- {
762
- name: '',
763
- type: 'uint256',
764
- },
765
- {
766
- name: '',
767
- type: 'uint256',
768
- },
769
- {
770
- name: '',
771
- type: 'uint256',
772
- },
773
- ],
774
- stateMutability: 'nonpayable',
775
- type: 'function',
776
- },
777
- {
778
- inputs: [
779
- {
780
- name: '_asset',
781
- type: 'address',
782
- },
783
- {
784
- name: '_amount',
785
- type: 'uint256',
786
- },
787
- {
788
- name: '_vaultToken',
789
- type: 'address',
790
- },
791
- {
792
- name: '_recipient',
793
- type: 'address',
794
- },
795
- ],
796
- name: 'withdrawTokens',
797
- outputs: [
798
- {
799
- name: '',
800
- type: 'uint256',
801
- },
802
- {
803
- name: '',
804
- type: 'uint256',
805
- },
806
- {
807
- name: '',
808
- type: 'uint256',
809
- },
810
- {
811
- name: '',
812
- type: 'uint256',
813
- },
814
- ],
815
- stateMutability: 'nonpayable',
816
- type: 'function',
817
- },
818
- {
819
- inputs: [
820
- {
821
- name: '_asset',
822
- type: 'address',
823
- },
824
- {
825
- name: '_amount',
826
- type: 'uint256',
827
- },
828
- {
829
- name: '_vaultToken',
830
- type: 'address',
831
- },
832
- {
833
- name: '_recipient',
834
- type: 'address',
835
- },
836
- {
837
- name: '_oracleRegistry',
838
- type: 'address',
839
- },
840
- ],
841
- name: 'withdrawTokens',
842
- outputs: [
843
- {
844
- name: '',
845
- type: 'uint256',
846
- },
847
- {
848
- name: '',
849
- type: 'uint256',
850
- },
851
- {
852
- name: '',
853
- type: 'uint256',
854
- },
855
- {
856
- name: '',
857
- type: 'uint256',
858
- },
859
- ],
860
- stateMutability: 'nonpayable',
861
- type: 'function',
862
- },
863
- {
864
- inputs: [
865
- {
866
- name: '_user',
867
- type: 'address',
868
- },
869
- {
870
- name: '_market',
871
- type: 'address',
872
- },
873
- {
874
- name: '_rewardToken',
875
- type: 'address',
876
- },
877
- {
878
- name: '_rewardAmount',
879
- type: 'uint256',
880
- },
881
- {
882
- name: '_proof',
883
- type: 'bytes32',
884
- },
885
- ],
886
- name: 'claimRewards',
887
- outputs: [],
888
- stateMutability: 'nonpayable',
889
- type: 'function',
890
- },
891
- {
892
- inputs: [
893
- {
894
- name: '_user',
895
- type: 'address',
896
- },
897
- ],
898
- name: 'hasClaimableRewards',
899
- outputs: [
900
- {
901
- name: '',
902
- type: 'bool',
903
- },
904
- ],
905
- stateMutability: 'view',
906
- type: 'function',
907
- },
908
- {
909
- inputs: [
910
- {
911
- name: '_asset',
912
- type: 'address',
913
- },
914
- {
915
- name: '_recipient',
916
- type: 'address',
917
- },
918
- ],
919
- name: 'recoverFunds',
920
- outputs: [
921
- {
922
- name: '',
923
- type: 'bool',
924
- },
925
- ],
926
- stateMutability: 'nonpayable',
927
- type: 'function',
928
- },
929
- {
930
- inputs: [
931
- {
932
- name: '_legoId',
933
- type: 'uint256',
934
- },
935
- ],
936
- name: 'setLegoId',
937
- outputs: [
938
- {
939
- name: '',
940
- type: 'bool',
941
- },
942
- ],
943
- stateMutability: 'nonpayable',
944
- type: 'function',
945
- },
946
- {
947
- inputs: [
948
- {
949
- name: '_shouldActivate',
950
- type: 'bool',
951
- },
952
- ],
953
- name: 'activate',
954
- outputs: [],
955
- stateMutability: 'nonpayable',
956
- type: 'function',
957
- },
958
- {
959
- inputs: [],
960
- name: 'usdc',
961
- outputs: [
962
- {
963
- name: '',
964
- type: 'address',
965
- },
966
- ],
967
- stateMutability: 'view',
968
- type: 'function',
969
- },
970
- {
971
- inputs: [],
972
- name: 'usds',
973
- outputs: [
974
- {
975
- name: '',
976
- type: 'address',
977
- },
978
- ],
979
- stateMutability: 'view',
980
- type: 'function',
981
- },
982
- {
983
- inputs: [],
984
- name: 'susds',
985
- outputs: [
986
- {
987
- name: '',
988
- type: 'address',
989
- },
990
- ],
991
- stateMutability: 'view',
992
- type: 'function',
993
- },
994
- {
995
- inputs: [],
996
- name: 'SKY_PSM',
997
- outputs: [
998
- {
999
- name: '',
1000
- type: 'address',
1001
- },
1002
- ],
1003
- stateMutability: 'view',
1004
- type: 'function',
1005
- },
1006
- {
1007
- inputs: [],
1008
- name: 'legoId',
1009
- outputs: [
1010
- {
1011
- name: '',
1012
- type: 'uint256',
1013
- },
1014
- ],
1015
- stateMutability: 'view',
1016
- type: 'function',
1017
- },
1018
- {
1019
- inputs: [],
1020
- name: 'isActivated',
1021
- outputs: [
1022
- {
1023
- name: '',
1024
- type: 'bool',
1025
- },
1026
- ],
1027
- stateMutability: 'view',
1028
- type: 'function',
1029
- },
1030
- {
1031
- inputs: [],
1032
- name: 'ADDY_REGISTRY',
1033
- outputs: [
1034
- {
1035
- name: '',
1036
- type: 'address',
1037
- },
1038
- ],
1039
- stateMutability: 'view',
1040
- type: 'function',
1041
- },
1042
- {
1043
- inputs: [
1044
- {
1045
- name: '_skyPsm',
1046
- type: 'address',
1047
- },
1048
- {
1049
- name: '_addyRegistry',
1050
- type: 'address',
1051
- },
1052
- ],
1053
- outputs: [],
1054
- stateMutability: 'nonpayable',
1055
- type: 'constructor',
1056
- },
1057
- ];
1058
- export const deployAddress = '0x3514536163D5c0c5207A6A1230fc76bEe8CE8506';
1059
- function getRequest(method, args, contractAddressOrOptions) {
1060
- const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1061
- const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
1062
- const call = {
1063
- contractName: 'LegoSky',
1064
- method,
1065
- args,
1066
- address,
1067
- deployAddress,
1068
- defaultValue,
1069
- getAbi: () => abi,
1070
- with: (options) => {
1071
- call.address = options.contractAddress;
1072
- call.defaultValue = options.defaultValue;
1073
- return call;
1074
- },
1075
- defaultTo: (defaultValue) => {
1076
- call.defaultValue = defaultValue;
1077
- return call;
1078
- },
1079
- at: (address) => {
1080
- call.address = address;
1081
- return call;
1082
- },
1083
- };
1084
- return call;
1085
- }
1086
- 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),
1114
- };
1115
- function getMutation(functionName) {
1116
- return {
1117
- contractName: 'LegoSky',
1118
- functionName,
1119
- deployAddress,
1120
- argsType: undefined,
1121
- getAbi: () => abi,
1122
- };
1123
- }
1124
- 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'),
1135
- };
1136
- export function toSdk(publicClient, walletClient) {
1137
- return {
1138
- deployAddress,
1139
- abi,
1140
- // 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)),
1168
- // 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),
1179
- };
1180
- }