@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
@@ -0,0 +1,3635 @@
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
+ name: 'PendingRedemptionBufferChange',
9
+ inputs: [
10
+ {
11
+ name: 'vaultAddr',
12
+ type: 'address',
13
+ indexed: true,
14
+ },
15
+ {
16
+ name: 'buffer',
17
+ type: 'uint256',
18
+ indexed: false,
19
+ },
20
+ {
21
+ name: 'confirmationBlock',
22
+ type: 'uint256',
23
+ indexed: false,
24
+ },
25
+ {
26
+ name: 'actionId',
27
+ type: 'uint256',
28
+ indexed: false,
29
+ },
30
+ ],
31
+ anonymous: false,
32
+ type: 'event',
33
+ },
34
+ {
35
+ name: 'RedemptionBufferSet',
36
+ inputs: [
37
+ {
38
+ name: 'vaultAddr',
39
+ type: 'address',
40
+ indexed: true,
41
+ },
42
+ {
43
+ name: 'buffer',
44
+ type: 'uint256',
45
+ indexed: false,
46
+ },
47
+ ],
48
+ anonymous: false,
49
+ type: 'event',
50
+ },
51
+ {
52
+ name: 'PendingMinYieldWithdrawAmountChange',
53
+ inputs: [
54
+ {
55
+ name: 'vaultAddr',
56
+ type: 'address',
57
+ indexed: true,
58
+ },
59
+ {
60
+ name: 'amount',
61
+ type: 'uint256',
62
+ indexed: false,
63
+ },
64
+ {
65
+ name: 'confirmationBlock',
66
+ type: 'uint256',
67
+ indexed: false,
68
+ },
69
+ {
70
+ name: 'actionId',
71
+ type: 'uint256',
72
+ indexed: false,
73
+ },
74
+ ],
75
+ anonymous: false,
76
+ type: 'event',
77
+ },
78
+ {
79
+ name: 'MinYieldWithdrawAmountSet',
80
+ inputs: [
81
+ {
82
+ name: 'vaultAddr',
83
+ type: 'address',
84
+ indexed: true,
85
+ },
86
+ {
87
+ name: 'amount',
88
+ type: 'uint256',
89
+ indexed: false,
90
+ },
91
+ ],
92
+ anonymous: false,
93
+ type: 'event',
94
+ },
95
+ {
96
+ name: 'PendingSnapShotPriceConfigChange',
97
+ inputs: [
98
+ {
99
+ name: 'legoId',
100
+ type: 'uint256',
101
+ indexed: true,
102
+ },
103
+ {
104
+ name: 'minSnapshotDelay',
105
+ type: 'uint256',
106
+ indexed: false,
107
+ },
108
+ {
109
+ name: 'maxNumSnapshots',
110
+ type: 'uint256',
111
+ indexed: false,
112
+ },
113
+ {
114
+ name: 'maxUpsideDeviation',
115
+ type: 'uint256',
116
+ indexed: false,
117
+ },
118
+ {
119
+ name: 'staleTime',
120
+ type: 'uint256',
121
+ indexed: false,
122
+ },
123
+ {
124
+ name: 'confirmationBlock',
125
+ type: 'uint256',
126
+ indexed: false,
127
+ },
128
+ {
129
+ name: 'actionId',
130
+ type: 'uint256',
131
+ indexed: false,
132
+ },
133
+ ],
134
+ anonymous: false,
135
+ type: 'event',
136
+ },
137
+ {
138
+ name: 'SnapShotPriceConfigSet',
139
+ inputs: [
140
+ {
141
+ name: 'legoId',
142
+ type: 'uint256',
143
+ indexed: true,
144
+ },
145
+ {
146
+ name: 'legoAddr',
147
+ type: 'address',
148
+ indexed: true,
149
+ },
150
+ {
151
+ name: 'minSnapshotDelay',
152
+ type: 'uint256',
153
+ indexed: false,
154
+ },
155
+ {
156
+ name: 'maxNumSnapshots',
157
+ type: 'uint256',
158
+ indexed: false,
159
+ },
160
+ {
161
+ name: 'maxUpsideDeviation',
162
+ type: 'uint256',
163
+ indexed: false,
164
+ },
165
+ {
166
+ name: 'staleTime',
167
+ type: 'uint256',
168
+ indexed: false,
169
+ },
170
+ ],
171
+ anonymous: false,
172
+ type: 'event',
173
+ },
174
+ {
175
+ name: 'PendingApprovedVaultTokenChange',
176
+ inputs: [
177
+ {
178
+ name: 'vaultAddr',
179
+ type: 'address',
180
+ indexed: true,
181
+ },
182
+ {
183
+ name: 'vaultToken',
184
+ type: 'address',
185
+ indexed: true,
186
+ },
187
+ {
188
+ name: 'isApproved',
189
+ type: 'bool',
190
+ indexed: false,
191
+ },
192
+ {
193
+ name: 'confirmationBlock',
194
+ type: 'uint256',
195
+ indexed: false,
196
+ },
197
+ {
198
+ name: 'actionId',
199
+ type: 'uint256',
200
+ indexed: false,
201
+ },
202
+ ],
203
+ anonymous: false,
204
+ type: 'event',
205
+ },
206
+ {
207
+ name: 'ApprovedVaultTokenSet',
208
+ inputs: [
209
+ {
210
+ name: 'vaultAddr',
211
+ type: 'address',
212
+ indexed: true,
213
+ },
214
+ {
215
+ name: 'vaultToken',
216
+ type: 'address',
217
+ indexed: true,
218
+ },
219
+ {
220
+ name: 'isApproved',
221
+ type: 'bool',
222
+ indexed: false,
223
+ },
224
+ ],
225
+ anonymous: false,
226
+ type: 'event',
227
+ },
228
+ {
229
+ name: 'PendingApprovedVaultTokensChange',
230
+ inputs: [
231
+ {
232
+ name: 'vaultAddr',
233
+ type: 'address',
234
+ indexed: true,
235
+ },
236
+ {
237
+ name: 'numTokens',
238
+ type: 'uint256',
239
+ indexed: false,
240
+ },
241
+ {
242
+ name: 'isApproved',
243
+ type: 'bool',
244
+ indexed: false,
245
+ },
246
+ {
247
+ name: 'confirmationBlock',
248
+ type: 'uint256',
249
+ indexed: false,
250
+ },
251
+ {
252
+ name: 'actionId',
253
+ type: 'uint256',
254
+ indexed: false,
255
+ },
256
+ ],
257
+ anonymous: false,
258
+ type: 'event',
259
+ },
260
+ {
261
+ name: 'ApprovedVaultTokensSet',
262
+ inputs: [
263
+ {
264
+ name: 'vaultAddr',
265
+ type: 'address',
266
+ indexed: true,
267
+ },
268
+ {
269
+ name: 'numTokens',
270
+ type: 'uint256',
271
+ indexed: false,
272
+ },
273
+ {
274
+ name: 'isApproved',
275
+ type: 'bool',
276
+ indexed: false,
277
+ },
278
+ ],
279
+ anonymous: false,
280
+ type: 'event',
281
+ },
282
+ {
283
+ name: 'PendingPerformanceFeeChange',
284
+ inputs: [
285
+ {
286
+ name: 'vaultAddr',
287
+ type: 'address',
288
+ indexed: true,
289
+ },
290
+ {
291
+ name: 'performanceFee',
292
+ type: 'uint256',
293
+ indexed: false,
294
+ },
295
+ {
296
+ name: 'confirmationBlock',
297
+ type: 'uint256',
298
+ indexed: false,
299
+ },
300
+ {
301
+ name: 'actionId',
302
+ type: 'uint256',
303
+ indexed: false,
304
+ },
305
+ ],
306
+ anonymous: false,
307
+ type: 'event',
308
+ },
309
+ {
310
+ name: 'PerformanceFeeSet',
311
+ inputs: [
312
+ {
313
+ name: 'vaultAddr',
314
+ type: 'address',
315
+ indexed: true,
316
+ },
317
+ {
318
+ name: 'performanceFee',
319
+ type: 'uint256',
320
+ indexed: false,
321
+ },
322
+ ],
323
+ anonymous: false,
324
+ type: 'event',
325
+ },
326
+ {
327
+ name: 'PendingDefaultTargetVaultTokenChange',
328
+ inputs: [
329
+ {
330
+ name: 'vaultAddr',
331
+ type: 'address',
332
+ indexed: true,
333
+ },
334
+ {
335
+ name: 'targetVaultToken',
336
+ type: 'address',
337
+ indexed: true,
338
+ },
339
+ {
340
+ name: 'confirmationBlock',
341
+ type: 'uint256',
342
+ indexed: false,
343
+ },
344
+ {
345
+ name: 'actionId',
346
+ type: 'uint256',
347
+ indexed: false,
348
+ },
349
+ ],
350
+ anonymous: false,
351
+ type: 'event',
352
+ },
353
+ {
354
+ name: 'DefaultTargetVaultTokenSet',
355
+ inputs: [
356
+ {
357
+ name: 'vaultAddr',
358
+ type: 'address',
359
+ indexed: true,
360
+ },
361
+ {
362
+ name: 'targetVaultToken',
363
+ type: 'address',
364
+ indexed: true,
365
+ },
366
+ ],
367
+ anonymous: false,
368
+ type: 'event',
369
+ },
370
+ {
371
+ name: 'PendingMaxDepositAmountChange',
372
+ inputs: [
373
+ {
374
+ name: 'vaultAddr',
375
+ type: 'address',
376
+ indexed: true,
377
+ },
378
+ {
379
+ name: 'maxDepositAmount',
380
+ type: 'uint256',
381
+ indexed: false,
382
+ },
383
+ {
384
+ name: 'confirmationBlock',
385
+ type: 'uint256',
386
+ indexed: false,
387
+ },
388
+ {
389
+ name: 'actionId',
390
+ type: 'uint256',
391
+ indexed: false,
392
+ },
393
+ ],
394
+ anonymous: false,
395
+ type: 'event',
396
+ },
397
+ {
398
+ name: 'MaxDepositAmountSet',
399
+ inputs: [
400
+ {
401
+ name: 'vaultAddr',
402
+ type: 'address',
403
+ indexed: true,
404
+ },
405
+ {
406
+ name: 'maxDepositAmount',
407
+ type: 'uint256',
408
+ indexed: false,
409
+ },
410
+ ],
411
+ anonymous: false,
412
+ type: 'event',
413
+ },
414
+ {
415
+ name: 'PendingIsLeveragedVaultChange',
416
+ inputs: [
417
+ {
418
+ name: 'vaultAddr',
419
+ type: 'address',
420
+ indexed: true,
421
+ },
422
+ {
423
+ name: 'isLeveragedVault',
424
+ type: 'bool',
425
+ indexed: false,
426
+ },
427
+ {
428
+ name: 'confirmationBlock',
429
+ type: 'uint256',
430
+ indexed: false,
431
+ },
432
+ {
433
+ name: 'actionId',
434
+ type: 'uint256',
435
+ indexed: false,
436
+ },
437
+ ],
438
+ anonymous: false,
439
+ type: 'event',
440
+ },
441
+ {
442
+ name: 'IsLeveragedVaultSet',
443
+ inputs: [
444
+ {
445
+ name: 'vaultAddr',
446
+ type: 'address',
447
+ indexed: true,
448
+ },
449
+ {
450
+ name: 'isLeveragedVault',
451
+ type: 'bool',
452
+ indexed: false,
453
+ },
454
+ ],
455
+ anonymous: false,
456
+ type: 'event',
457
+ },
458
+ {
459
+ name: 'CanDepositSet',
460
+ inputs: [
461
+ {
462
+ name: 'vaultAddr',
463
+ type: 'address',
464
+ indexed: true,
465
+ },
466
+ {
467
+ name: 'canDeposit',
468
+ type: 'bool',
469
+ indexed: false,
470
+ },
471
+ {
472
+ name: 'caller',
473
+ type: 'address',
474
+ indexed: true,
475
+ },
476
+ ],
477
+ anonymous: false,
478
+ type: 'event',
479
+ },
480
+ {
481
+ name: 'CanWithdrawSet',
482
+ inputs: [
483
+ {
484
+ name: 'vaultAddr',
485
+ type: 'address',
486
+ indexed: true,
487
+ },
488
+ {
489
+ name: 'canWithdraw',
490
+ type: 'bool',
491
+ indexed: false,
492
+ },
493
+ {
494
+ name: 'caller',
495
+ type: 'address',
496
+ indexed: true,
497
+ },
498
+ ],
499
+ anonymous: false,
500
+ type: 'event',
501
+ },
502
+ {
503
+ name: 'VaultOpsFrozenSet',
504
+ inputs: [
505
+ {
506
+ name: 'vaultAddr',
507
+ type: 'address',
508
+ indexed: true,
509
+ },
510
+ {
511
+ name: 'isFrozen',
512
+ type: 'bool',
513
+ indexed: false,
514
+ },
515
+ {
516
+ name: 'caller',
517
+ type: 'address',
518
+ indexed: true,
519
+ },
520
+ ],
521
+ anonymous: false,
522
+ type: 'event',
523
+ },
524
+ {
525
+ name: 'ShouldAutoDepositSet',
526
+ inputs: [
527
+ {
528
+ name: 'vaultAddr',
529
+ type: 'address',
530
+ indexed: true,
531
+ },
532
+ {
533
+ name: 'shouldAutoDeposit',
534
+ type: 'bool',
535
+ indexed: false,
536
+ },
537
+ {
538
+ name: 'caller',
539
+ type: 'address',
540
+ indexed: true,
541
+ },
542
+ ],
543
+ anonymous: false,
544
+ type: 'event',
545
+ },
546
+ {
547
+ name: 'ShouldEnforceAllowlistSet',
548
+ inputs: [
549
+ {
550
+ name: 'vaultAddr',
551
+ type: 'address',
552
+ indexed: true,
553
+ },
554
+ {
555
+ name: 'shouldEnforce',
556
+ type: 'bool',
557
+ indexed: false,
558
+ },
559
+ {
560
+ name: 'caller',
561
+ type: 'address',
562
+ indexed: true,
563
+ },
564
+ ],
565
+ anonymous: false,
566
+ type: 'event',
567
+ },
568
+ {
569
+ name: 'AllowlistUserSet',
570
+ inputs: [
571
+ {
572
+ name: 'vaultAddr',
573
+ type: 'address',
574
+ indexed: true,
575
+ },
576
+ {
577
+ name: 'user',
578
+ type: 'address',
579
+ indexed: true,
580
+ },
581
+ {
582
+ name: 'isAllowed',
583
+ type: 'bool',
584
+ indexed: false,
585
+ },
586
+ {
587
+ name: 'caller',
588
+ type: 'address',
589
+ indexed: true,
590
+ },
591
+ ],
592
+ anonymous: false,
593
+ type: 'event',
594
+ },
595
+ {
596
+ name: 'AllowlistBatchSet',
597
+ inputs: [
598
+ {
599
+ name: 'vaultAddr',
600
+ type: 'address',
601
+ indexed: true,
602
+ },
603
+ {
604
+ name: 'numUsers',
605
+ type: 'uint256',
606
+ indexed: false,
607
+ },
608
+ {
609
+ name: 'isAllowed',
610
+ type: 'bool',
611
+ indexed: false,
612
+ },
613
+ {
614
+ name: 'caller',
615
+ type: 'address',
616
+ indexed: true,
617
+ },
618
+ ],
619
+ anonymous: false,
620
+ type: 'event',
621
+ },
622
+ {
623
+ name: 'PendingCollateralVaultChange',
624
+ inputs: [
625
+ {
626
+ name: 'vaultAddr',
627
+ type: 'address',
628
+ indexed: true,
629
+ },
630
+ {
631
+ name: 'vaultToken',
632
+ type: 'address',
633
+ indexed: true,
634
+ },
635
+ {
636
+ name: 'ripeVaultId',
637
+ type: 'uint256',
638
+ indexed: false,
639
+ },
640
+ {
641
+ name: 'legoId',
642
+ type: 'uint256',
643
+ indexed: false,
644
+ },
645
+ {
646
+ name: 'shouldMaxWithdraw',
647
+ type: 'bool',
648
+ indexed: false,
649
+ },
650
+ {
651
+ name: 'confirmationBlock',
652
+ type: 'uint256',
653
+ indexed: false,
654
+ },
655
+ {
656
+ name: 'actionId',
657
+ type: 'uint256',
658
+ indexed: false,
659
+ },
660
+ ],
661
+ anonymous: false,
662
+ type: 'event',
663
+ },
664
+ {
665
+ name: 'CollateralVaultSet',
666
+ inputs: [
667
+ {
668
+ name: 'vaultAddr',
669
+ type: 'address',
670
+ indexed: true,
671
+ },
672
+ {
673
+ name: 'vaultToken',
674
+ type: 'address',
675
+ indexed: true,
676
+ },
677
+ {
678
+ name: 'ripeVaultId',
679
+ type: 'uint256',
680
+ indexed: false,
681
+ },
682
+ {
683
+ name: 'legoId',
684
+ type: 'uint256',
685
+ indexed: false,
686
+ },
687
+ ],
688
+ anonymous: false,
689
+ type: 'event',
690
+ },
691
+ {
692
+ name: 'PendingLeverageVaultChange',
693
+ inputs: [
694
+ {
695
+ name: 'vaultAddr',
696
+ type: 'address',
697
+ indexed: true,
698
+ },
699
+ {
700
+ name: 'vaultToken',
701
+ type: 'address',
702
+ indexed: true,
703
+ },
704
+ {
705
+ name: 'legoId',
706
+ type: 'uint256',
707
+ indexed: false,
708
+ },
709
+ {
710
+ name: 'ripeVaultId',
711
+ type: 'uint256',
712
+ indexed: false,
713
+ },
714
+ {
715
+ name: 'shouldMaxWithdraw',
716
+ type: 'bool',
717
+ indexed: false,
718
+ },
719
+ {
720
+ name: 'confirmationBlock',
721
+ type: 'uint256',
722
+ indexed: false,
723
+ },
724
+ {
725
+ name: 'actionId',
726
+ type: 'uint256',
727
+ indexed: false,
728
+ },
729
+ ],
730
+ anonymous: false,
731
+ type: 'event',
732
+ },
733
+ {
734
+ name: 'LeverageVaultSet',
735
+ inputs: [
736
+ {
737
+ name: 'vaultAddr',
738
+ type: 'address',
739
+ indexed: true,
740
+ },
741
+ {
742
+ name: 'vaultToken',
743
+ type: 'address',
744
+ indexed: true,
745
+ },
746
+ {
747
+ name: 'legoId',
748
+ type: 'uint256',
749
+ indexed: false,
750
+ },
751
+ {
752
+ name: 'ripeVaultId',
753
+ type: 'uint256',
754
+ indexed: false,
755
+ },
756
+ ],
757
+ anonymous: false,
758
+ type: 'event',
759
+ },
760
+ {
761
+ name: 'PendingSlippagesChange',
762
+ inputs: [
763
+ {
764
+ name: 'vaultAddr',
765
+ type: 'address',
766
+ indexed: true,
767
+ },
768
+ {
769
+ name: 'usdcSlippage',
770
+ type: 'uint256',
771
+ indexed: false,
772
+ },
773
+ {
774
+ name: 'greenSlippage',
775
+ type: 'uint256',
776
+ indexed: false,
777
+ },
778
+ {
779
+ name: 'confirmationBlock',
780
+ type: 'uint256',
781
+ indexed: false,
782
+ },
783
+ {
784
+ name: 'actionId',
785
+ type: 'uint256',
786
+ indexed: false,
787
+ },
788
+ ],
789
+ anonymous: false,
790
+ type: 'event',
791
+ },
792
+ {
793
+ name: 'SlippagesSet',
794
+ inputs: [
795
+ {
796
+ name: 'vaultAddr',
797
+ type: 'address',
798
+ indexed: true,
799
+ },
800
+ {
801
+ name: 'usdcSlippage',
802
+ type: 'uint256',
803
+ indexed: false,
804
+ },
805
+ {
806
+ name: 'greenSlippage',
807
+ type: 'uint256',
808
+ indexed: false,
809
+ },
810
+ ],
811
+ anonymous: false,
812
+ type: 'event',
813
+ },
814
+ {
815
+ name: 'PendingLevgVaultHelperChange',
816
+ inputs: [
817
+ {
818
+ name: 'vaultAddr',
819
+ type: 'address',
820
+ indexed: true,
821
+ },
822
+ {
823
+ name: 'levgVaultHelper',
824
+ type: 'address',
825
+ indexed: true,
826
+ },
827
+ {
828
+ name: 'confirmationBlock',
829
+ type: 'uint256',
830
+ indexed: false,
831
+ },
832
+ {
833
+ name: 'actionId',
834
+ type: 'uint256',
835
+ indexed: false,
836
+ },
837
+ ],
838
+ anonymous: false,
839
+ type: 'event',
840
+ },
841
+ {
842
+ name: 'LevgVaultHelperSet',
843
+ inputs: [
844
+ {
845
+ name: 'vaultAddr',
846
+ type: 'address',
847
+ indexed: true,
848
+ },
849
+ {
850
+ name: 'levgVaultHelper',
851
+ type: 'address',
852
+ indexed: true,
853
+ },
854
+ ],
855
+ anonymous: false,
856
+ type: 'event',
857
+ },
858
+ {
859
+ name: 'PendingMaxDebtRatioChange',
860
+ inputs: [
861
+ {
862
+ name: 'vaultAddr',
863
+ type: 'address',
864
+ indexed: true,
865
+ },
866
+ {
867
+ name: 'ratio',
868
+ type: 'uint256',
869
+ indexed: false,
870
+ },
871
+ {
872
+ name: 'confirmationBlock',
873
+ type: 'uint256',
874
+ indexed: false,
875
+ },
876
+ {
877
+ name: 'actionId',
878
+ type: 'uint256',
879
+ indexed: false,
880
+ },
881
+ ],
882
+ anonymous: false,
883
+ type: 'event',
884
+ },
885
+ {
886
+ name: 'MaxDebtRatioSet',
887
+ inputs: [
888
+ {
889
+ name: 'vaultAddr',
890
+ type: 'address',
891
+ indexed: true,
892
+ },
893
+ {
894
+ name: 'ratio',
895
+ type: 'uint256',
896
+ indexed: false,
897
+ },
898
+ ],
899
+ anonymous: false,
900
+ type: 'event',
901
+ },
902
+ {
903
+ name: 'PendingAddManagerChange',
904
+ inputs: [
905
+ {
906
+ name: 'vaultAddr',
907
+ type: 'address',
908
+ indexed: true,
909
+ },
910
+ {
911
+ name: 'manager',
912
+ type: 'address',
913
+ indexed: true,
914
+ },
915
+ {
916
+ name: 'confirmationBlock',
917
+ type: 'uint256',
918
+ indexed: false,
919
+ },
920
+ {
921
+ name: 'actionId',
922
+ type: 'uint256',
923
+ indexed: false,
924
+ },
925
+ ],
926
+ anonymous: false,
927
+ type: 'event',
928
+ },
929
+ {
930
+ name: 'ManagerAdded',
931
+ inputs: [
932
+ {
933
+ name: 'vaultAddr',
934
+ type: 'address',
935
+ indexed: true,
936
+ },
937
+ {
938
+ name: 'manager',
939
+ type: 'address',
940
+ indexed: true,
941
+ },
942
+ ],
943
+ anonymous: false,
944
+ type: 'event',
945
+ },
946
+ {
947
+ name: 'PendingRemoveManagerChange',
948
+ inputs: [
949
+ {
950
+ name: 'vaultAddr',
951
+ type: 'address',
952
+ indexed: true,
953
+ },
954
+ {
955
+ name: 'manager',
956
+ type: 'address',
957
+ indexed: true,
958
+ },
959
+ {
960
+ name: 'confirmationBlock',
961
+ type: 'uint256',
962
+ indexed: false,
963
+ },
964
+ {
965
+ name: 'actionId',
966
+ type: 'uint256',
967
+ indexed: false,
968
+ },
969
+ ],
970
+ anonymous: false,
971
+ type: 'event',
972
+ },
973
+ {
974
+ name: 'ManagerRemoved',
975
+ inputs: [
976
+ {
977
+ name: 'vaultAddr',
978
+ type: 'address',
979
+ indexed: true,
980
+ },
981
+ {
982
+ name: 'manager',
983
+ type: 'address',
984
+ indexed: true,
985
+ },
986
+ ],
987
+ anonymous: false,
988
+ type: 'event',
989
+ },
990
+ {
991
+ name: 'PriceSnapshotAdded',
992
+ inputs: [
993
+ {
994
+ name: 'legoId',
995
+ type: 'uint256',
996
+ indexed: true,
997
+ },
998
+ {
999
+ name: 'legoAddr',
1000
+ type: 'address',
1001
+ indexed: true,
1002
+ },
1003
+ {
1004
+ name: 'vaultToken',
1005
+ type: 'address',
1006
+ indexed: true,
1007
+ },
1008
+ {
1009
+ name: 'success',
1010
+ type: 'bool',
1011
+ indexed: false,
1012
+ },
1013
+ {
1014
+ name: 'caller',
1015
+ type: 'address',
1016
+ indexed: false,
1017
+ },
1018
+ ],
1019
+ anonymous: false,
1020
+ type: 'event',
1021
+ },
1022
+ {
1023
+ name: 'YieldPositionUpdated',
1024
+ inputs: [
1025
+ {
1026
+ name: 'vaultAddr',
1027
+ type: 'address',
1028
+ indexed: true,
1029
+ },
1030
+ {
1031
+ name: 'vaultToken',
1032
+ type: 'address',
1033
+ indexed: true,
1034
+ },
1035
+ {
1036
+ name: 'caller',
1037
+ type: 'address',
1038
+ indexed: false,
1039
+ },
1040
+ ],
1041
+ anonymous: false,
1042
+ type: 'event',
1043
+ },
1044
+ {
1045
+ name: 'PerformanceFeesClaimed',
1046
+ inputs: [
1047
+ {
1048
+ name: 'vaultAddr',
1049
+ type: 'address',
1050
+ indexed: true,
1051
+ },
1052
+ {
1053
+ name: 'amount',
1054
+ type: 'uint256',
1055
+ indexed: false,
1056
+ },
1057
+ {
1058
+ name: 'caller',
1059
+ type: 'address',
1060
+ indexed: false,
1061
+ },
1062
+ ],
1063
+ anonymous: false,
1064
+ type: 'event',
1065
+ },
1066
+ {
1067
+ name: 'PendingRegisterVaultTokenOnLegoChange',
1068
+ inputs: [
1069
+ {
1070
+ name: 'legoId',
1071
+ type: 'uint256',
1072
+ indexed: true,
1073
+ },
1074
+ {
1075
+ name: 'asset',
1076
+ type: 'address',
1077
+ indexed: true,
1078
+ },
1079
+ {
1080
+ name: 'vaultToken',
1081
+ type: 'address',
1082
+ indexed: true,
1083
+ },
1084
+ {
1085
+ name: 'confirmationBlock',
1086
+ type: 'uint256',
1087
+ indexed: false,
1088
+ },
1089
+ {
1090
+ name: 'actionId',
1091
+ type: 'uint256',
1092
+ indexed: false,
1093
+ },
1094
+ ],
1095
+ anonymous: false,
1096
+ type: 'event',
1097
+ },
1098
+ {
1099
+ name: 'VaultTokenRegisteredOnLego',
1100
+ inputs: [
1101
+ {
1102
+ name: 'legoId',
1103
+ type: 'uint256',
1104
+ indexed: true,
1105
+ },
1106
+ {
1107
+ name: 'legoAddr',
1108
+ type: 'address',
1109
+ indexed: true,
1110
+ },
1111
+ {
1112
+ name: 'asset',
1113
+ type: 'address',
1114
+ indexed: true,
1115
+ },
1116
+ {
1117
+ name: 'vaultToken',
1118
+ type: 'address',
1119
+ indexed: false,
1120
+ },
1121
+ ],
1122
+ anonymous: false,
1123
+ type: 'event',
1124
+ },
1125
+ {
1126
+ name: 'VaultTokenDeregisteredOnLego',
1127
+ inputs: [
1128
+ {
1129
+ name: 'legoId',
1130
+ type: 'uint256',
1131
+ indexed: true,
1132
+ },
1133
+ {
1134
+ name: 'legoAddr',
1135
+ type: 'address',
1136
+ indexed: true,
1137
+ },
1138
+ {
1139
+ name: 'asset',
1140
+ type: 'address',
1141
+ indexed: true,
1142
+ },
1143
+ {
1144
+ name: 'vaultToken',
1145
+ type: 'address',
1146
+ indexed: false,
1147
+ },
1148
+ {
1149
+ name: 'caller',
1150
+ type: 'address',
1151
+ indexed: false,
1152
+ },
1153
+ ],
1154
+ anonymous: false,
1155
+ type: 'event',
1156
+ },
1157
+ {
1158
+ name: 'PendingMorphoRewardsAddrChange',
1159
+ inputs: [
1160
+ {
1161
+ name: 'legoId',
1162
+ type: 'uint256',
1163
+ indexed: true,
1164
+ },
1165
+ {
1166
+ name: 'rewardsAddr',
1167
+ type: 'address',
1168
+ indexed: true,
1169
+ },
1170
+ {
1171
+ name: 'confirmationBlock',
1172
+ type: 'uint256',
1173
+ indexed: false,
1174
+ },
1175
+ {
1176
+ name: 'actionId',
1177
+ type: 'uint256',
1178
+ indexed: false,
1179
+ },
1180
+ ],
1181
+ anonymous: false,
1182
+ type: 'event',
1183
+ },
1184
+ {
1185
+ name: 'MorphoRewardsAddrSet',
1186
+ inputs: [
1187
+ {
1188
+ name: 'legoId',
1189
+ type: 'uint256',
1190
+ indexed: true,
1191
+ },
1192
+ {
1193
+ name: 'legoAddr',
1194
+ type: 'address',
1195
+ indexed: true,
1196
+ },
1197
+ {
1198
+ name: 'rewardsAddr',
1199
+ type: 'address',
1200
+ indexed: true,
1201
+ },
1202
+ ],
1203
+ anonymous: false,
1204
+ type: 'event',
1205
+ },
1206
+ {
1207
+ name: 'PendingEulerRewardsAddrChange',
1208
+ inputs: [
1209
+ {
1210
+ name: 'legoId',
1211
+ type: 'uint256',
1212
+ indexed: true,
1213
+ },
1214
+ {
1215
+ name: 'rewardsAddr',
1216
+ type: 'address',
1217
+ indexed: true,
1218
+ },
1219
+ {
1220
+ name: 'confirmationBlock',
1221
+ type: 'uint256',
1222
+ indexed: false,
1223
+ },
1224
+ {
1225
+ name: 'actionId',
1226
+ type: 'uint256',
1227
+ indexed: false,
1228
+ },
1229
+ ],
1230
+ anonymous: false,
1231
+ type: 'event',
1232
+ },
1233
+ {
1234
+ name: 'EulerRewardsAddrSet',
1235
+ inputs: [
1236
+ {
1237
+ name: 'legoId',
1238
+ type: 'uint256',
1239
+ indexed: true,
1240
+ },
1241
+ {
1242
+ name: 'legoAddr',
1243
+ type: 'address',
1244
+ indexed: true,
1245
+ },
1246
+ {
1247
+ name: 'rewardsAddr',
1248
+ type: 'address',
1249
+ indexed: true,
1250
+ },
1251
+ ],
1252
+ anonymous: false,
1253
+ type: 'event',
1254
+ },
1255
+ {
1256
+ name: 'PendingCompRewardsAddrChange',
1257
+ inputs: [
1258
+ {
1259
+ name: 'legoId',
1260
+ type: 'uint256',
1261
+ indexed: true,
1262
+ },
1263
+ {
1264
+ name: 'rewardsAddr',
1265
+ type: 'address',
1266
+ indexed: true,
1267
+ },
1268
+ {
1269
+ name: 'confirmationBlock',
1270
+ type: 'uint256',
1271
+ indexed: false,
1272
+ },
1273
+ {
1274
+ name: 'actionId',
1275
+ type: 'uint256',
1276
+ indexed: false,
1277
+ },
1278
+ ],
1279
+ anonymous: false,
1280
+ type: 'event',
1281
+ },
1282
+ {
1283
+ name: 'CompRewardsAddrSet',
1284
+ inputs: [
1285
+ {
1286
+ name: 'legoId',
1287
+ type: 'uint256',
1288
+ indexed: true,
1289
+ },
1290
+ {
1291
+ name: 'legoAddr',
1292
+ type: 'address',
1293
+ indexed: true,
1294
+ },
1295
+ {
1296
+ name: 'rewardsAddr',
1297
+ type: 'address',
1298
+ indexed: true,
1299
+ },
1300
+ ],
1301
+ anonymous: false,
1302
+ type: 'event',
1303
+ },
1304
+ {
1305
+ name: 'LeftoversSwept',
1306
+ inputs: [
1307
+ {
1308
+ name: 'vaultAddr',
1309
+ type: 'address',
1310
+ indexed: true,
1311
+ },
1312
+ {
1313
+ name: 'amount',
1314
+ type: 'uint256',
1315
+ indexed: false,
1316
+ },
1317
+ {
1318
+ name: 'caller',
1319
+ type: 'address',
1320
+ indexed: false,
1321
+ },
1322
+ ],
1323
+ anonymous: false,
1324
+ type: 'event',
1325
+ },
1326
+ {
1327
+ name: 'GovChangeTimeLockModified',
1328
+ inputs: [
1329
+ {
1330
+ name: 'prevTimeLock',
1331
+ type: 'uint256',
1332
+ indexed: false,
1333
+ },
1334
+ {
1335
+ name: 'newTimeLock',
1336
+ type: 'uint256',
1337
+ indexed: false,
1338
+ },
1339
+ ],
1340
+ anonymous: false,
1341
+ type: 'event',
1342
+ },
1343
+ {
1344
+ name: 'ExpirationSet',
1345
+ inputs: [
1346
+ {
1347
+ name: 'expiration',
1348
+ type: 'uint256',
1349
+ indexed: false,
1350
+ },
1351
+ ],
1352
+ anonymous: false,
1353
+ type: 'event',
1354
+ },
1355
+ {
1356
+ name: 'ActionTimeLockSet',
1357
+ inputs: [
1358
+ {
1359
+ name: 'newTimeLock',
1360
+ type: 'uint256',
1361
+ indexed: false,
1362
+ },
1363
+ {
1364
+ name: 'prevTimeLock',
1365
+ type: 'uint256',
1366
+ indexed: false,
1367
+ },
1368
+ ],
1369
+ anonymous: false,
1370
+ type: 'event',
1371
+ },
1372
+ {
1373
+ name: 'GovChangeStarted',
1374
+ inputs: [
1375
+ {
1376
+ name: 'prevGov',
1377
+ type: 'address',
1378
+ indexed: true,
1379
+ },
1380
+ {
1381
+ name: 'newGov',
1382
+ type: 'address',
1383
+ indexed: true,
1384
+ },
1385
+ {
1386
+ name: 'confirmBlock',
1387
+ type: 'uint256',
1388
+ indexed: false,
1389
+ },
1390
+ ],
1391
+ anonymous: false,
1392
+ type: 'event',
1393
+ },
1394
+ {
1395
+ name: 'GovChangeConfirmed',
1396
+ inputs: [
1397
+ {
1398
+ name: 'prevGov',
1399
+ type: 'address',
1400
+ indexed: true,
1401
+ },
1402
+ {
1403
+ name: 'newGov',
1404
+ type: 'address',
1405
+ indexed: true,
1406
+ },
1407
+ {
1408
+ name: 'initiatedBlock',
1409
+ type: 'uint256',
1410
+ indexed: false,
1411
+ },
1412
+ {
1413
+ name: 'confirmBlock',
1414
+ type: 'uint256',
1415
+ indexed: false,
1416
+ },
1417
+ ],
1418
+ anonymous: false,
1419
+ type: 'event',
1420
+ },
1421
+ {
1422
+ name: 'GovChangeCancelled',
1423
+ inputs: [
1424
+ {
1425
+ name: 'cancelledGov',
1426
+ type: 'address',
1427
+ indexed: true,
1428
+ },
1429
+ {
1430
+ name: 'initiatedBlock',
1431
+ type: 'uint256',
1432
+ indexed: false,
1433
+ },
1434
+ {
1435
+ name: 'confirmBlock',
1436
+ type: 'uint256',
1437
+ indexed: false,
1438
+ },
1439
+ ],
1440
+ anonymous: false,
1441
+ type: 'event',
1442
+ },
1443
+ {
1444
+ name: 'GovRelinquished',
1445
+ inputs: [
1446
+ {
1447
+ name: 'prevGov',
1448
+ type: 'address',
1449
+ indexed: true,
1450
+ },
1451
+ ],
1452
+ anonymous: false,
1453
+ type: 'event',
1454
+ },
1455
+ {
1456
+ name: 'UndyHqSetupFinished',
1457
+ inputs: [
1458
+ {
1459
+ name: 'prevGov',
1460
+ type: 'address',
1461
+ indexed: true,
1462
+ },
1463
+ {
1464
+ name: 'newGov',
1465
+ type: 'address',
1466
+ indexed: true,
1467
+ },
1468
+ {
1469
+ name: 'timeLock',
1470
+ type: 'uint256',
1471
+ indexed: false,
1472
+ },
1473
+ ],
1474
+ anonymous: false,
1475
+ type: 'event',
1476
+ },
1477
+ {
1478
+ stateMutability: 'view',
1479
+ type: 'function',
1480
+ name: 'getAddys',
1481
+ inputs: [],
1482
+ outputs: [
1483
+ {
1484
+ name: '',
1485
+ type: 'tuple',
1486
+ components: [
1487
+ {
1488
+ name: 'hq',
1489
+ type: 'address',
1490
+ },
1491
+ {
1492
+ name: 'undyToken',
1493
+ type: 'address',
1494
+ },
1495
+ {
1496
+ name: 'ledger',
1497
+ type: 'address',
1498
+ },
1499
+ {
1500
+ name: 'missionControl',
1501
+ type: 'address',
1502
+ },
1503
+ {
1504
+ name: 'legoBook',
1505
+ type: 'address',
1506
+ },
1507
+ {
1508
+ name: 'switchboard',
1509
+ type: 'address',
1510
+ },
1511
+ {
1512
+ name: 'hatchery',
1513
+ type: 'address',
1514
+ },
1515
+ {
1516
+ name: 'lootDistributor',
1517
+ type: 'address',
1518
+ },
1519
+ {
1520
+ name: 'appraiser',
1521
+ type: 'address',
1522
+ },
1523
+ {
1524
+ name: 'walletBackpack',
1525
+ type: 'address',
1526
+ },
1527
+ {
1528
+ name: 'billing',
1529
+ type: 'address',
1530
+ },
1531
+ {
1532
+ name: 'vaultRegistry',
1533
+ type: 'address',
1534
+ },
1535
+ ],
1536
+ },
1537
+ ],
1538
+ },
1539
+ {
1540
+ stateMutability: 'view',
1541
+ type: 'function',
1542
+ name: 'getUndyHq',
1543
+ inputs: [],
1544
+ outputs: [
1545
+ {
1546
+ name: '',
1547
+ type: 'address',
1548
+ },
1549
+ ],
1550
+ },
1551
+ {
1552
+ stateMutability: 'view',
1553
+ type: 'function',
1554
+ name: 'getUndyHqFromGov',
1555
+ inputs: [],
1556
+ outputs: [
1557
+ {
1558
+ name: '',
1559
+ type: 'address',
1560
+ },
1561
+ ],
1562
+ },
1563
+ {
1564
+ stateMutability: 'view',
1565
+ type: 'function',
1566
+ name: 'canGovern',
1567
+ inputs: [
1568
+ {
1569
+ name: '_addr',
1570
+ type: 'address',
1571
+ },
1572
+ ],
1573
+ outputs: [
1574
+ {
1575
+ name: '',
1576
+ type: 'bool',
1577
+ },
1578
+ ],
1579
+ },
1580
+ {
1581
+ stateMutability: 'view',
1582
+ type: 'function',
1583
+ name: 'getGovernors',
1584
+ inputs: [],
1585
+ outputs: [
1586
+ {
1587
+ name: '',
1588
+ type: 'address[]',
1589
+ },
1590
+ ],
1591
+ },
1592
+ {
1593
+ stateMutability: 'view',
1594
+ type: 'function',
1595
+ name: 'hasPendingGovChange',
1596
+ inputs: [],
1597
+ outputs: [
1598
+ {
1599
+ name: '',
1600
+ type: 'bool',
1601
+ },
1602
+ ],
1603
+ },
1604
+ {
1605
+ stateMutability: 'nonpayable',
1606
+ type: 'function',
1607
+ name: 'startGovernanceChange',
1608
+ inputs: [
1609
+ {
1610
+ name: '_newGov',
1611
+ type: 'address',
1612
+ },
1613
+ ],
1614
+ outputs: [],
1615
+ },
1616
+ {
1617
+ stateMutability: 'nonpayable',
1618
+ type: 'function',
1619
+ name: 'confirmGovernanceChange',
1620
+ inputs: [],
1621
+ outputs: [],
1622
+ },
1623
+ {
1624
+ stateMutability: 'nonpayable',
1625
+ type: 'function',
1626
+ name: 'cancelGovernanceChange',
1627
+ inputs: [],
1628
+ outputs: [],
1629
+ },
1630
+ {
1631
+ stateMutability: 'nonpayable',
1632
+ type: 'function',
1633
+ name: 'relinquishGov',
1634
+ inputs: [],
1635
+ outputs: [],
1636
+ },
1637
+ {
1638
+ stateMutability: 'nonpayable',
1639
+ type: 'function',
1640
+ name: 'setGovTimeLock',
1641
+ inputs: [
1642
+ {
1643
+ name: '_numBlocks',
1644
+ type: 'uint256',
1645
+ },
1646
+ ],
1647
+ outputs: [
1648
+ {
1649
+ name: '',
1650
+ type: 'bool',
1651
+ },
1652
+ ],
1653
+ },
1654
+ {
1655
+ stateMutability: 'view',
1656
+ type: 'function',
1657
+ name: 'isValidGovTimeLock',
1658
+ inputs: [
1659
+ {
1660
+ name: '_newTimeLock',
1661
+ type: 'uint256',
1662
+ },
1663
+ ],
1664
+ outputs: [
1665
+ {
1666
+ name: '',
1667
+ type: 'bool',
1668
+ },
1669
+ ],
1670
+ },
1671
+ {
1672
+ stateMutability: 'view',
1673
+ type: 'function',
1674
+ name: 'minGovChangeTimeLock',
1675
+ inputs: [],
1676
+ outputs: [
1677
+ {
1678
+ name: '',
1679
+ type: 'uint256',
1680
+ },
1681
+ ],
1682
+ },
1683
+ {
1684
+ stateMutability: 'view',
1685
+ type: 'function',
1686
+ name: 'maxGovChangeTimeLock',
1687
+ inputs: [],
1688
+ outputs: [
1689
+ {
1690
+ name: '',
1691
+ type: 'uint256',
1692
+ },
1693
+ ],
1694
+ },
1695
+ {
1696
+ stateMutability: 'nonpayable',
1697
+ type: 'function',
1698
+ name: 'finishUndyHqSetup',
1699
+ inputs: [
1700
+ {
1701
+ name: '_newGov',
1702
+ type: 'address',
1703
+ },
1704
+ ],
1705
+ outputs: [
1706
+ {
1707
+ name: '',
1708
+ type: 'bool',
1709
+ },
1710
+ ],
1711
+ },
1712
+ {
1713
+ stateMutability: 'nonpayable',
1714
+ type: 'function',
1715
+ name: 'finishUndyHqSetup',
1716
+ inputs: [
1717
+ {
1718
+ name: '_newGov',
1719
+ type: 'address',
1720
+ },
1721
+ {
1722
+ name: '_timeLock',
1723
+ type: 'uint256',
1724
+ },
1725
+ ],
1726
+ outputs: [
1727
+ {
1728
+ name: '',
1729
+ type: 'bool',
1730
+ },
1731
+ ],
1732
+ },
1733
+ {
1734
+ stateMutability: 'view',
1735
+ type: 'function',
1736
+ name: 'governance',
1737
+ inputs: [],
1738
+ outputs: [
1739
+ {
1740
+ name: '',
1741
+ type: 'address',
1742
+ },
1743
+ ],
1744
+ },
1745
+ {
1746
+ stateMutability: 'view',
1747
+ type: 'function',
1748
+ name: 'pendingGov',
1749
+ inputs: [],
1750
+ outputs: [
1751
+ {
1752
+ name: '',
1753
+ type: 'tuple',
1754
+ components: [
1755
+ {
1756
+ name: 'newGov',
1757
+ type: 'address',
1758
+ },
1759
+ {
1760
+ name: 'initiatedBlock',
1761
+ type: 'uint256',
1762
+ },
1763
+ {
1764
+ name: 'confirmBlock',
1765
+ type: 'uint256',
1766
+ },
1767
+ ],
1768
+ },
1769
+ ],
1770
+ },
1771
+ {
1772
+ stateMutability: 'view',
1773
+ type: 'function',
1774
+ name: 'numGovChanges',
1775
+ inputs: [],
1776
+ outputs: [
1777
+ {
1778
+ name: '',
1779
+ type: 'uint256',
1780
+ },
1781
+ ],
1782
+ },
1783
+ {
1784
+ stateMutability: 'view',
1785
+ type: 'function',
1786
+ name: 'govChangeTimeLock',
1787
+ inputs: [],
1788
+ outputs: [
1789
+ {
1790
+ name: '',
1791
+ type: 'uint256',
1792
+ },
1793
+ ],
1794
+ },
1795
+ {
1796
+ stateMutability: 'view',
1797
+ type: 'function',
1798
+ name: 'canConfirmAction',
1799
+ inputs: [
1800
+ {
1801
+ name: '_actionId',
1802
+ type: 'uint256',
1803
+ },
1804
+ ],
1805
+ outputs: [
1806
+ {
1807
+ name: '',
1808
+ type: 'bool',
1809
+ },
1810
+ ],
1811
+ },
1812
+ {
1813
+ stateMutability: 'view',
1814
+ type: 'function',
1815
+ name: 'isExpired',
1816
+ inputs: [
1817
+ {
1818
+ name: '_actionId',
1819
+ type: 'uint256',
1820
+ },
1821
+ ],
1822
+ outputs: [
1823
+ {
1824
+ name: '',
1825
+ type: 'bool',
1826
+ },
1827
+ ],
1828
+ },
1829
+ {
1830
+ stateMutability: 'view',
1831
+ type: 'function',
1832
+ name: 'hasPendingAction',
1833
+ inputs: [
1834
+ {
1835
+ name: '_actionId',
1836
+ type: 'uint256',
1837
+ },
1838
+ ],
1839
+ outputs: [
1840
+ {
1841
+ name: '',
1842
+ type: 'bool',
1843
+ },
1844
+ ],
1845
+ },
1846
+ {
1847
+ stateMutability: 'view',
1848
+ type: 'function',
1849
+ name: 'getActionConfirmationBlock',
1850
+ inputs: [
1851
+ {
1852
+ name: '_actionId',
1853
+ type: 'uint256',
1854
+ },
1855
+ ],
1856
+ outputs: [
1857
+ {
1858
+ name: '',
1859
+ type: 'uint256',
1860
+ },
1861
+ ],
1862
+ },
1863
+ {
1864
+ stateMutability: 'nonpayable',
1865
+ type: 'function',
1866
+ name: 'setActionTimeLock',
1867
+ inputs: [
1868
+ {
1869
+ name: '_newTimeLock',
1870
+ type: 'uint256',
1871
+ },
1872
+ ],
1873
+ outputs: [
1874
+ {
1875
+ name: '',
1876
+ type: 'bool',
1877
+ },
1878
+ ],
1879
+ },
1880
+ {
1881
+ stateMutability: 'view',
1882
+ type: 'function',
1883
+ name: 'isValidActionTimeLock',
1884
+ inputs: [
1885
+ {
1886
+ name: '_newTimeLock',
1887
+ type: 'uint256',
1888
+ },
1889
+ ],
1890
+ outputs: [
1891
+ {
1892
+ name: '',
1893
+ type: 'bool',
1894
+ },
1895
+ ],
1896
+ },
1897
+ {
1898
+ stateMutability: 'view',
1899
+ type: 'function',
1900
+ name: 'minActionTimeLock',
1901
+ inputs: [],
1902
+ outputs: [
1903
+ {
1904
+ name: '',
1905
+ type: 'uint256',
1906
+ },
1907
+ ],
1908
+ },
1909
+ {
1910
+ stateMutability: 'view',
1911
+ type: 'function',
1912
+ name: 'maxActionTimeLock',
1913
+ inputs: [],
1914
+ outputs: [
1915
+ {
1916
+ name: '',
1917
+ type: 'uint256',
1918
+ },
1919
+ ],
1920
+ },
1921
+ {
1922
+ stateMutability: 'nonpayable',
1923
+ type: 'function',
1924
+ name: 'setExpiration',
1925
+ inputs: [
1926
+ {
1927
+ name: '_expiration',
1928
+ type: 'uint256',
1929
+ },
1930
+ ],
1931
+ outputs: [
1932
+ {
1933
+ name: '',
1934
+ type: 'bool',
1935
+ },
1936
+ ],
1937
+ },
1938
+ {
1939
+ stateMutability: 'nonpayable',
1940
+ type: 'function',
1941
+ name: 'setActionTimeLockAfterSetup',
1942
+ inputs: [],
1943
+ outputs: [
1944
+ {
1945
+ name: '',
1946
+ type: 'bool',
1947
+ },
1948
+ ],
1949
+ },
1950
+ {
1951
+ stateMutability: 'nonpayable',
1952
+ type: 'function',
1953
+ name: 'setActionTimeLockAfterSetup',
1954
+ inputs: [
1955
+ {
1956
+ name: '_newTimeLock',
1957
+ type: 'uint256',
1958
+ },
1959
+ ],
1960
+ outputs: [
1961
+ {
1962
+ name: '',
1963
+ type: 'bool',
1964
+ },
1965
+ ],
1966
+ },
1967
+ {
1968
+ stateMutability: 'view',
1969
+ type: 'function',
1970
+ name: 'pendingActions',
1971
+ inputs: [
1972
+ {
1973
+ name: 'arg0',
1974
+ type: 'uint256',
1975
+ },
1976
+ ],
1977
+ outputs: [
1978
+ {
1979
+ name: '',
1980
+ type: 'tuple',
1981
+ components: [
1982
+ {
1983
+ name: 'initiatedBlock',
1984
+ type: 'uint256',
1985
+ },
1986
+ {
1987
+ name: 'confirmBlock',
1988
+ type: 'uint256',
1989
+ },
1990
+ {
1991
+ name: 'expiration',
1992
+ type: 'uint256',
1993
+ },
1994
+ ],
1995
+ },
1996
+ ],
1997
+ },
1998
+ {
1999
+ stateMutability: 'view',
2000
+ type: 'function',
2001
+ name: 'actionId',
2002
+ inputs: [],
2003
+ outputs: [
2004
+ {
2005
+ name: '',
2006
+ type: 'uint256',
2007
+ },
2008
+ ],
2009
+ },
2010
+ {
2011
+ stateMutability: 'view',
2012
+ type: 'function',
2013
+ name: 'actionTimeLock',
2014
+ inputs: [],
2015
+ outputs: [
2016
+ {
2017
+ name: '',
2018
+ type: 'uint256',
2019
+ },
2020
+ ],
2021
+ },
2022
+ {
2023
+ stateMutability: 'view',
2024
+ type: 'function',
2025
+ name: 'expiration',
2026
+ inputs: [],
2027
+ outputs: [
2028
+ {
2029
+ name: '',
2030
+ type: 'uint256',
2031
+ },
2032
+ ],
2033
+ },
2034
+ {
2035
+ stateMutability: 'nonpayable',
2036
+ type: 'function',
2037
+ name: 'setCanDeposit',
2038
+ inputs: [
2039
+ {
2040
+ name: '_vaultAddr',
2041
+ type: 'address',
2042
+ },
2043
+ {
2044
+ name: '_canDeposit',
2045
+ type: 'bool',
2046
+ },
2047
+ ],
2048
+ outputs: [],
2049
+ },
2050
+ {
2051
+ stateMutability: 'nonpayable',
2052
+ type: 'function',
2053
+ name: 'setCanWithdraw',
2054
+ inputs: [
2055
+ {
2056
+ name: '_vaultAddr',
2057
+ type: 'address',
2058
+ },
2059
+ {
2060
+ name: '_canWithdraw',
2061
+ type: 'bool',
2062
+ },
2063
+ ],
2064
+ outputs: [],
2065
+ },
2066
+ {
2067
+ stateMutability: 'nonpayable',
2068
+ type: 'function',
2069
+ name: 'setVaultOpsFrozen',
2070
+ inputs: [
2071
+ {
2072
+ name: '_vaultAddr',
2073
+ type: 'address',
2074
+ },
2075
+ {
2076
+ name: '_isFrozen',
2077
+ type: 'bool',
2078
+ },
2079
+ ],
2080
+ outputs: [],
2081
+ },
2082
+ {
2083
+ stateMutability: 'nonpayable',
2084
+ type: 'function',
2085
+ name: 'setShouldAutoDeposit',
2086
+ inputs: [
2087
+ {
2088
+ name: '_vaultAddr',
2089
+ type: 'address',
2090
+ },
2091
+ {
2092
+ name: '_shouldAutoDeposit',
2093
+ type: 'bool',
2094
+ },
2095
+ ],
2096
+ outputs: [],
2097
+ },
2098
+ {
2099
+ stateMutability: 'nonpayable',
2100
+ type: 'function',
2101
+ name: 'setShouldEnforceAllowlist',
2102
+ inputs: [
2103
+ {
2104
+ name: '_vaultAddr',
2105
+ type: 'address',
2106
+ },
2107
+ {
2108
+ name: '_shouldEnforce',
2109
+ type: 'bool',
2110
+ },
2111
+ ],
2112
+ outputs: [],
2113
+ },
2114
+ {
2115
+ stateMutability: 'nonpayable',
2116
+ type: 'function',
2117
+ name: 'setAllowed',
2118
+ inputs: [
2119
+ {
2120
+ name: '_vaultAddr',
2121
+ type: 'address',
2122
+ },
2123
+ {
2124
+ name: '_user',
2125
+ type: 'address',
2126
+ },
2127
+ {
2128
+ name: '_isAllowed',
2129
+ type: 'bool',
2130
+ },
2131
+ ],
2132
+ outputs: [],
2133
+ },
2134
+ {
2135
+ stateMutability: 'nonpayable',
2136
+ type: 'function',
2137
+ name: 'setAllowedBatch',
2138
+ inputs: [
2139
+ {
2140
+ name: '_vaultAddr',
2141
+ type: 'address',
2142
+ },
2143
+ {
2144
+ name: '_users',
2145
+ type: 'address[]',
2146
+ },
2147
+ {
2148
+ name: '_isAllowed',
2149
+ type: 'bool',
2150
+ },
2151
+ ],
2152
+ outputs: [],
2153
+ },
2154
+ {
2155
+ stateMutability: 'nonpayable',
2156
+ type: 'function',
2157
+ name: 'addPriceSnapshot',
2158
+ inputs: [
2159
+ {
2160
+ name: '_legoId',
2161
+ type: 'uint256',
2162
+ },
2163
+ {
2164
+ name: '_vaultToken',
2165
+ type: 'address',
2166
+ },
2167
+ ],
2168
+ outputs: [
2169
+ {
2170
+ name: '',
2171
+ type: 'bool',
2172
+ },
2173
+ ],
2174
+ },
2175
+ {
2176
+ stateMutability: 'nonpayable',
2177
+ type: 'function',
2178
+ name: 'deregisterVaultTokenOnLego',
2179
+ inputs: [
2180
+ {
2181
+ name: '_legoId',
2182
+ type: 'uint256',
2183
+ },
2184
+ {
2185
+ name: '_asset',
2186
+ type: 'address',
2187
+ },
2188
+ {
2189
+ name: '_vaultToken',
2190
+ type: 'address',
2191
+ },
2192
+ ],
2193
+ outputs: [
2194
+ {
2195
+ name: '',
2196
+ type: 'uint256',
2197
+ },
2198
+ ],
2199
+ },
2200
+ {
2201
+ stateMutability: 'nonpayable',
2202
+ type: 'function',
2203
+ name: 'updateYieldPosition',
2204
+ inputs: [
2205
+ {
2206
+ name: '_vaultAddr',
2207
+ type: 'address',
2208
+ },
2209
+ {
2210
+ name: '_vaultToken',
2211
+ type: 'address',
2212
+ },
2213
+ ],
2214
+ outputs: [],
2215
+ },
2216
+ {
2217
+ stateMutability: 'nonpayable',
2218
+ type: 'function',
2219
+ name: 'claimPerformanceFees',
2220
+ inputs: [
2221
+ {
2222
+ name: '_vaultAddr',
2223
+ type: 'address',
2224
+ },
2225
+ ],
2226
+ outputs: [
2227
+ {
2228
+ name: '',
2229
+ type: 'uint256',
2230
+ },
2231
+ ],
2232
+ },
2233
+ {
2234
+ stateMutability: 'nonpayable',
2235
+ type: 'function',
2236
+ name: 'sweepLeftovers',
2237
+ inputs: [
2238
+ {
2239
+ name: '_vaultAddr',
2240
+ type: 'address',
2241
+ },
2242
+ ],
2243
+ outputs: [
2244
+ {
2245
+ name: '',
2246
+ type: 'uint256',
2247
+ },
2248
+ ],
2249
+ },
2250
+ {
2251
+ stateMutability: 'nonpayable',
2252
+ type: 'function',
2253
+ name: 'setRedemptionBuffer',
2254
+ inputs: [
2255
+ {
2256
+ name: '_vaultAddr',
2257
+ type: 'address',
2258
+ },
2259
+ {
2260
+ name: '_buffer',
2261
+ type: 'uint256',
2262
+ },
2263
+ ],
2264
+ outputs: [
2265
+ {
2266
+ name: '',
2267
+ type: 'uint256',
2268
+ },
2269
+ ],
2270
+ },
2271
+ {
2272
+ stateMutability: 'nonpayable',
2273
+ type: 'function',
2274
+ name: 'setMinYieldWithdrawAmount',
2275
+ inputs: [
2276
+ {
2277
+ name: '_vaultAddr',
2278
+ type: 'address',
2279
+ },
2280
+ {
2281
+ name: '_amount',
2282
+ type: 'uint256',
2283
+ },
2284
+ ],
2285
+ outputs: [
2286
+ {
2287
+ name: '',
2288
+ type: 'uint256',
2289
+ },
2290
+ ],
2291
+ },
2292
+ {
2293
+ stateMutability: 'nonpayable',
2294
+ type: 'function',
2295
+ name: 'setSnapShotPriceConfig',
2296
+ inputs: [
2297
+ {
2298
+ name: '_legoId',
2299
+ type: 'uint256',
2300
+ },
2301
+ {
2302
+ name: '_minSnapshotDelay',
2303
+ type: 'uint256',
2304
+ },
2305
+ {
2306
+ name: '_maxNumSnapshots',
2307
+ type: 'uint256',
2308
+ },
2309
+ {
2310
+ name: '_maxUpsideDeviation',
2311
+ type: 'uint256',
2312
+ },
2313
+ {
2314
+ name: '_staleTime',
2315
+ type: 'uint256',
2316
+ },
2317
+ ],
2318
+ outputs: [
2319
+ {
2320
+ name: '',
2321
+ type: 'uint256',
2322
+ },
2323
+ ],
2324
+ },
2325
+ {
2326
+ stateMutability: 'nonpayable',
2327
+ type: 'function',
2328
+ name: 'setApprovedVaultToken',
2329
+ inputs: [
2330
+ {
2331
+ name: '_undyVaultAddr',
2332
+ type: 'address',
2333
+ },
2334
+ {
2335
+ name: '_vaultToken',
2336
+ type: 'address',
2337
+ },
2338
+ {
2339
+ name: '_isApproved',
2340
+ type: 'bool',
2341
+ },
2342
+ {
2343
+ name: '_shouldMaxWithdraw',
2344
+ type: 'bool',
2345
+ },
2346
+ ],
2347
+ outputs: [
2348
+ {
2349
+ name: '',
2350
+ type: 'uint256',
2351
+ },
2352
+ ],
2353
+ },
2354
+ {
2355
+ stateMutability: 'nonpayable',
2356
+ type: 'function',
2357
+ name: 'setApprovedVaultTokens',
2358
+ inputs: [
2359
+ {
2360
+ name: '_undyVaultAddr',
2361
+ type: 'address',
2362
+ },
2363
+ {
2364
+ name: '_vaultTokens',
2365
+ type: 'address[]',
2366
+ },
2367
+ {
2368
+ name: '_isApproved',
2369
+ type: 'bool',
2370
+ },
2371
+ {
2372
+ name: '_shouldMaxWithdraw',
2373
+ type: 'bool',
2374
+ },
2375
+ ],
2376
+ outputs: [
2377
+ {
2378
+ name: '',
2379
+ type: 'uint256',
2380
+ },
2381
+ ],
2382
+ },
2383
+ {
2384
+ stateMutability: 'nonpayable',
2385
+ type: 'function',
2386
+ name: 'setPerformanceFee',
2387
+ inputs: [
2388
+ {
2389
+ name: '_vaultAddr',
2390
+ type: 'address',
2391
+ },
2392
+ {
2393
+ name: '_performanceFee',
2394
+ type: 'uint256',
2395
+ },
2396
+ ],
2397
+ outputs: [
2398
+ {
2399
+ name: '',
2400
+ type: 'uint256',
2401
+ },
2402
+ ],
2403
+ },
2404
+ {
2405
+ stateMutability: 'nonpayable',
2406
+ type: 'function',
2407
+ name: 'setDefaultTargetVaultToken',
2408
+ inputs: [
2409
+ {
2410
+ name: '_vaultAddr',
2411
+ type: 'address',
2412
+ },
2413
+ {
2414
+ name: '_targetVaultToken',
2415
+ type: 'address',
2416
+ },
2417
+ ],
2418
+ outputs: [
2419
+ {
2420
+ name: '',
2421
+ type: 'uint256',
2422
+ },
2423
+ ],
2424
+ },
2425
+ {
2426
+ stateMutability: 'nonpayable',
2427
+ type: 'function',
2428
+ name: 'setMaxDepositAmount',
2429
+ inputs: [
2430
+ {
2431
+ name: '_vaultAddr',
2432
+ type: 'address',
2433
+ },
2434
+ {
2435
+ name: '_maxDepositAmount',
2436
+ type: 'uint256',
2437
+ },
2438
+ ],
2439
+ outputs: [
2440
+ {
2441
+ name: '',
2442
+ type: 'uint256',
2443
+ },
2444
+ ],
2445
+ },
2446
+ {
2447
+ stateMutability: 'nonpayable',
2448
+ type: 'function',
2449
+ name: 'setIsLeveragedVault',
2450
+ inputs: [
2451
+ {
2452
+ name: '_vaultAddr',
2453
+ type: 'address',
2454
+ },
2455
+ {
2456
+ name: '_isLeveragedVault',
2457
+ type: 'bool',
2458
+ },
2459
+ ],
2460
+ outputs: [
2461
+ {
2462
+ name: '',
2463
+ type: 'uint256',
2464
+ },
2465
+ ],
2466
+ },
2467
+ {
2468
+ stateMutability: 'nonpayable',
2469
+ type: 'function',
2470
+ name: 'setCollateralVault',
2471
+ inputs: [
2472
+ {
2473
+ name: '_vaultAddr',
2474
+ type: 'address',
2475
+ },
2476
+ {
2477
+ name: '_vaultToken',
2478
+ type: 'address',
2479
+ },
2480
+ {
2481
+ name: '_legoId',
2482
+ type: 'uint256',
2483
+ },
2484
+ {
2485
+ name: '_ripeVaultId',
2486
+ type: 'uint256',
2487
+ },
2488
+ {
2489
+ name: '_shouldMaxWithdraw',
2490
+ type: 'bool',
2491
+ },
2492
+ ],
2493
+ outputs: [
2494
+ {
2495
+ name: '',
2496
+ type: 'uint256',
2497
+ },
2498
+ ],
2499
+ },
2500
+ {
2501
+ stateMutability: 'nonpayable',
2502
+ type: 'function',
2503
+ name: 'setLeverageVault',
2504
+ inputs: [
2505
+ {
2506
+ name: '_vaultAddr',
2507
+ type: 'address',
2508
+ },
2509
+ {
2510
+ name: '_vaultToken',
2511
+ type: 'address',
2512
+ },
2513
+ {
2514
+ name: '_legoId',
2515
+ type: 'uint256',
2516
+ },
2517
+ {
2518
+ name: '_ripeVaultId',
2519
+ type: 'uint256',
2520
+ },
2521
+ {
2522
+ name: '_shouldMaxWithdraw',
2523
+ type: 'bool',
2524
+ },
2525
+ ],
2526
+ outputs: [
2527
+ {
2528
+ name: '',
2529
+ type: 'uint256',
2530
+ },
2531
+ ],
2532
+ },
2533
+ {
2534
+ stateMutability: 'nonpayable',
2535
+ type: 'function',
2536
+ name: 'setSlippagesAllowed',
2537
+ inputs: [
2538
+ {
2539
+ name: '_vaultAddr',
2540
+ type: 'address',
2541
+ },
2542
+ {
2543
+ name: '_usdcSlippage',
2544
+ type: 'uint256',
2545
+ },
2546
+ {
2547
+ name: '_greenSlippage',
2548
+ type: 'uint256',
2549
+ },
2550
+ ],
2551
+ outputs: [
2552
+ {
2553
+ name: '',
2554
+ type: 'uint256',
2555
+ },
2556
+ ],
2557
+ },
2558
+ {
2559
+ stateMutability: 'nonpayable',
2560
+ type: 'function',
2561
+ name: 'setLevgVaultHelper',
2562
+ inputs: [
2563
+ {
2564
+ name: '_vaultAddr',
2565
+ type: 'address',
2566
+ },
2567
+ {
2568
+ name: '_levgVaultHelper',
2569
+ type: 'address',
2570
+ },
2571
+ ],
2572
+ outputs: [
2573
+ {
2574
+ name: '',
2575
+ type: 'uint256',
2576
+ },
2577
+ ],
2578
+ },
2579
+ {
2580
+ stateMutability: 'nonpayable',
2581
+ type: 'function',
2582
+ name: 'setMaxDebtRatio',
2583
+ inputs: [
2584
+ {
2585
+ name: '_vaultAddr',
2586
+ type: 'address',
2587
+ },
2588
+ {
2589
+ name: '_ratio',
2590
+ type: 'uint256',
2591
+ },
2592
+ ],
2593
+ outputs: [
2594
+ {
2595
+ name: '',
2596
+ type: 'uint256',
2597
+ },
2598
+ ],
2599
+ },
2600
+ {
2601
+ stateMutability: 'nonpayable',
2602
+ type: 'function',
2603
+ name: 'addVaultManager',
2604
+ inputs: [
2605
+ {
2606
+ name: '_vaultAddr',
2607
+ type: 'address',
2608
+ },
2609
+ {
2610
+ name: '_manager',
2611
+ type: 'address',
2612
+ },
2613
+ ],
2614
+ outputs: [
2615
+ {
2616
+ name: '',
2617
+ type: 'uint256',
2618
+ },
2619
+ ],
2620
+ },
2621
+ {
2622
+ stateMutability: 'nonpayable',
2623
+ type: 'function',
2624
+ name: 'removeVaultManager',
2625
+ inputs: [
2626
+ {
2627
+ name: '_vaultAddr',
2628
+ type: 'address',
2629
+ },
2630
+ {
2631
+ name: '_manager',
2632
+ type: 'address',
2633
+ },
2634
+ ],
2635
+ outputs: [
2636
+ {
2637
+ name: '',
2638
+ type: 'uint256',
2639
+ },
2640
+ ],
2641
+ },
2642
+ {
2643
+ stateMutability: 'nonpayable',
2644
+ type: 'function',
2645
+ name: 'registerVaultTokenOnLego',
2646
+ inputs: [
2647
+ {
2648
+ name: '_legoId',
2649
+ type: 'uint256',
2650
+ },
2651
+ {
2652
+ name: '_asset',
2653
+ type: 'address',
2654
+ },
2655
+ {
2656
+ name: '_vaultToken',
2657
+ type: 'address',
2658
+ },
2659
+ ],
2660
+ outputs: [
2661
+ {
2662
+ name: '',
2663
+ type: 'uint256',
2664
+ },
2665
+ ],
2666
+ },
2667
+ {
2668
+ stateMutability: 'nonpayable',
2669
+ type: 'function',
2670
+ name: 'setMorphoRewardsAddr',
2671
+ inputs: [
2672
+ {
2673
+ name: '_legoId',
2674
+ type: 'uint256',
2675
+ },
2676
+ {
2677
+ name: '_rewardsAddr',
2678
+ type: 'address',
2679
+ },
2680
+ ],
2681
+ outputs: [
2682
+ {
2683
+ name: '',
2684
+ type: 'uint256',
2685
+ },
2686
+ ],
2687
+ },
2688
+ {
2689
+ stateMutability: 'nonpayable',
2690
+ type: 'function',
2691
+ name: 'setEulerRewardsAddr',
2692
+ inputs: [
2693
+ {
2694
+ name: '_legoId',
2695
+ type: 'uint256',
2696
+ },
2697
+ {
2698
+ name: '_rewardsAddr',
2699
+ type: 'address',
2700
+ },
2701
+ ],
2702
+ outputs: [
2703
+ {
2704
+ name: '',
2705
+ type: 'uint256',
2706
+ },
2707
+ ],
2708
+ },
2709
+ {
2710
+ stateMutability: 'nonpayable',
2711
+ type: 'function',
2712
+ name: 'setCompRewardsAddr',
2713
+ inputs: [
2714
+ {
2715
+ name: '_legoId',
2716
+ type: 'uint256',
2717
+ },
2718
+ {
2719
+ name: '_rewardsAddr',
2720
+ type: 'address',
2721
+ },
2722
+ ],
2723
+ outputs: [
2724
+ {
2725
+ name: '',
2726
+ type: 'uint256',
2727
+ },
2728
+ ],
2729
+ },
2730
+ {
2731
+ stateMutability: 'nonpayable',
2732
+ type: 'function',
2733
+ name: 'executePendingAction',
2734
+ inputs: [
2735
+ {
2736
+ name: '_aid',
2737
+ type: 'uint256',
2738
+ },
2739
+ ],
2740
+ outputs: [
2741
+ {
2742
+ name: '',
2743
+ type: 'bool',
2744
+ },
2745
+ ],
2746
+ },
2747
+ {
2748
+ stateMutability: 'nonpayable',
2749
+ type: 'function',
2750
+ name: 'cancelPendingAction',
2751
+ inputs: [
2752
+ {
2753
+ name: '_aid',
2754
+ type: 'uint256',
2755
+ },
2756
+ ],
2757
+ outputs: [
2758
+ {
2759
+ name: '',
2760
+ type: 'bool',
2761
+ },
2762
+ ],
2763
+ },
2764
+ {
2765
+ stateMutability: 'view',
2766
+ type: 'function',
2767
+ name: 'actionType',
2768
+ inputs: [
2769
+ {
2770
+ name: 'arg0',
2771
+ type: 'uint256',
2772
+ },
2773
+ ],
2774
+ outputs: [
2775
+ {
2776
+ name: '',
2777
+ type: 'uint256',
2778
+ },
2779
+ ],
2780
+ },
2781
+ {
2782
+ stateMutability: 'view',
2783
+ type: 'function',
2784
+ name: 'pendingRedemptionBuffer',
2785
+ inputs: [
2786
+ {
2787
+ name: 'arg0',
2788
+ type: 'uint256',
2789
+ },
2790
+ ],
2791
+ outputs: [
2792
+ {
2793
+ name: '',
2794
+ type: 'tuple',
2795
+ components: [
2796
+ {
2797
+ name: 'vaultAddr',
2798
+ type: 'address',
2799
+ },
2800
+ {
2801
+ name: 'buffer',
2802
+ type: 'uint256',
2803
+ },
2804
+ ],
2805
+ },
2806
+ ],
2807
+ },
2808
+ {
2809
+ stateMutability: 'view',
2810
+ type: 'function',
2811
+ name: 'pendingMinYieldWithdrawAmount',
2812
+ inputs: [
2813
+ {
2814
+ name: 'arg0',
2815
+ type: 'uint256',
2816
+ },
2817
+ ],
2818
+ outputs: [
2819
+ {
2820
+ name: '',
2821
+ type: 'tuple',
2822
+ components: [
2823
+ {
2824
+ name: 'vaultAddr',
2825
+ type: 'address',
2826
+ },
2827
+ {
2828
+ name: 'amount',
2829
+ type: 'uint256',
2830
+ },
2831
+ ],
2832
+ },
2833
+ ],
2834
+ },
2835
+ {
2836
+ stateMutability: 'view',
2837
+ type: 'function',
2838
+ name: 'pendingSnapShotPriceConfig',
2839
+ inputs: [
2840
+ {
2841
+ name: 'arg0',
2842
+ type: 'uint256',
2843
+ },
2844
+ ],
2845
+ outputs: [
2846
+ {
2847
+ name: '',
2848
+ type: 'tuple',
2849
+ components: [
2850
+ {
2851
+ name: 'legoId',
2852
+ type: 'uint256',
2853
+ },
2854
+ {
2855
+ name: 'config',
2856
+ type: 'tuple',
2857
+ components: [
2858
+ {
2859
+ name: 'minSnapshotDelay',
2860
+ type: 'uint256',
2861
+ },
2862
+ {
2863
+ name: 'maxNumSnapshots',
2864
+ type: 'uint256',
2865
+ },
2866
+ {
2867
+ name: 'maxUpsideDeviation',
2868
+ type: 'uint256',
2869
+ },
2870
+ {
2871
+ name: 'staleTime',
2872
+ type: 'uint256',
2873
+ },
2874
+ ],
2875
+ },
2876
+ ],
2877
+ },
2878
+ ],
2879
+ },
2880
+ {
2881
+ stateMutability: 'view',
2882
+ type: 'function',
2883
+ name: 'pendingApprovedVaultToken',
2884
+ inputs: [
2885
+ {
2886
+ name: 'arg0',
2887
+ type: 'uint256',
2888
+ },
2889
+ ],
2890
+ outputs: [
2891
+ {
2892
+ name: '',
2893
+ type: 'tuple',
2894
+ components: [
2895
+ {
2896
+ name: 'vaultAddr',
2897
+ type: 'address',
2898
+ },
2899
+ {
2900
+ name: 'vaultToken',
2901
+ type: 'address',
2902
+ },
2903
+ {
2904
+ name: 'isApproved',
2905
+ type: 'bool',
2906
+ },
2907
+ {
2908
+ name: 'shouldMaxWithdraw',
2909
+ type: 'bool',
2910
+ },
2911
+ ],
2912
+ },
2913
+ ],
2914
+ },
2915
+ {
2916
+ stateMutability: 'view',
2917
+ type: 'function',
2918
+ name: 'pendingApprovedVaultTokens',
2919
+ inputs: [
2920
+ {
2921
+ name: 'arg0',
2922
+ type: 'uint256',
2923
+ },
2924
+ ],
2925
+ outputs: [
2926
+ {
2927
+ name: '',
2928
+ type: 'tuple',
2929
+ components: [
2930
+ {
2931
+ name: 'vaultAddr',
2932
+ type: 'address',
2933
+ },
2934
+ {
2935
+ name: 'vaultTokens',
2936
+ type: 'address[]',
2937
+ },
2938
+ {
2939
+ name: 'isApproved',
2940
+ type: 'bool',
2941
+ },
2942
+ {
2943
+ name: 'shouldMaxWithdraw',
2944
+ type: 'bool',
2945
+ },
2946
+ ],
2947
+ },
2948
+ ],
2949
+ },
2950
+ {
2951
+ stateMutability: 'view',
2952
+ type: 'function',
2953
+ name: 'pendingPerformanceFee',
2954
+ inputs: [
2955
+ {
2956
+ name: 'arg0',
2957
+ type: 'uint256',
2958
+ },
2959
+ ],
2960
+ outputs: [
2961
+ {
2962
+ name: '',
2963
+ type: 'tuple',
2964
+ components: [
2965
+ {
2966
+ name: 'vaultAddr',
2967
+ type: 'address',
2968
+ },
2969
+ {
2970
+ name: 'performanceFee',
2971
+ type: 'uint256',
2972
+ },
2973
+ ],
2974
+ },
2975
+ ],
2976
+ },
2977
+ {
2978
+ stateMutability: 'view',
2979
+ type: 'function',
2980
+ name: 'pendingDefaultTargetVaultToken',
2981
+ inputs: [
2982
+ {
2983
+ name: 'arg0',
2984
+ type: 'uint256',
2985
+ },
2986
+ ],
2987
+ outputs: [
2988
+ {
2989
+ name: '',
2990
+ type: 'tuple',
2991
+ components: [
2992
+ {
2993
+ name: 'vaultAddr',
2994
+ type: 'address',
2995
+ },
2996
+ {
2997
+ name: 'targetVaultToken',
2998
+ type: 'address',
2999
+ },
3000
+ ],
3001
+ },
3002
+ ],
3003
+ },
3004
+ {
3005
+ stateMutability: 'view',
3006
+ type: 'function',
3007
+ name: 'pendingMaxDepositAmount',
3008
+ inputs: [
3009
+ {
3010
+ name: 'arg0',
3011
+ type: 'uint256',
3012
+ },
3013
+ ],
3014
+ outputs: [
3015
+ {
3016
+ name: '',
3017
+ type: 'tuple',
3018
+ components: [
3019
+ {
3020
+ name: 'vaultAddr',
3021
+ type: 'address',
3022
+ },
3023
+ {
3024
+ name: 'maxDepositAmount',
3025
+ type: 'uint256',
3026
+ },
3027
+ ],
3028
+ },
3029
+ ],
3030
+ },
3031
+ {
3032
+ stateMutability: 'view',
3033
+ type: 'function',
3034
+ name: 'pendingIsLeveragedVault',
3035
+ inputs: [
3036
+ {
3037
+ name: 'arg0',
3038
+ type: 'uint256',
3039
+ },
3040
+ ],
3041
+ outputs: [
3042
+ {
3043
+ name: '',
3044
+ type: 'tuple',
3045
+ components: [
3046
+ {
3047
+ name: 'vaultAddr',
3048
+ type: 'address',
3049
+ },
3050
+ {
3051
+ name: 'isLeveragedVault',
3052
+ type: 'bool',
3053
+ },
3054
+ ],
3055
+ },
3056
+ ],
3057
+ },
3058
+ {
3059
+ stateMutability: 'view',
3060
+ type: 'function',
3061
+ name: 'pendingCollateralVault',
3062
+ inputs: [
3063
+ {
3064
+ name: 'arg0',
3065
+ type: 'uint256',
3066
+ },
3067
+ ],
3068
+ outputs: [
3069
+ {
3070
+ name: '',
3071
+ type: 'tuple',
3072
+ components: [
3073
+ {
3074
+ name: 'vaultAddr',
3075
+ type: 'address',
3076
+ },
3077
+ {
3078
+ name: 'vaultToken',
3079
+ type: 'address',
3080
+ },
3081
+ {
3082
+ name: 'ripeVaultId',
3083
+ type: 'uint256',
3084
+ },
3085
+ {
3086
+ name: 'legoId',
3087
+ type: 'uint256',
3088
+ },
3089
+ {
3090
+ name: 'shouldMaxWithdraw',
3091
+ type: 'bool',
3092
+ },
3093
+ ],
3094
+ },
3095
+ ],
3096
+ },
3097
+ {
3098
+ stateMutability: 'view',
3099
+ type: 'function',
3100
+ name: 'pendingLeverageVault',
3101
+ inputs: [
3102
+ {
3103
+ name: 'arg0',
3104
+ type: 'uint256',
3105
+ },
3106
+ ],
3107
+ outputs: [
3108
+ {
3109
+ name: '',
3110
+ type: 'tuple',
3111
+ components: [
3112
+ {
3113
+ name: 'vaultAddr',
3114
+ type: 'address',
3115
+ },
3116
+ {
3117
+ name: 'vaultToken',
3118
+ type: 'address',
3119
+ },
3120
+ {
3121
+ name: 'legoId',
3122
+ type: 'uint256',
3123
+ },
3124
+ {
3125
+ name: 'ripeVaultId',
3126
+ type: 'uint256',
3127
+ },
3128
+ {
3129
+ name: 'shouldMaxWithdraw',
3130
+ type: 'bool',
3131
+ },
3132
+ ],
3133
+ },
3134
+ ],
3135
+ },
3136
+ {
3137
+ stateMutability: 'view',
3138
+ type: 'function',
3139
+ name: 'pendingSlippages',
3140
+ inputs: [
3141
+ {
3142
+ name: 'arg0',
3143
+ type: 'uint256',
3144
+ },
3145
+ ],
3146
+ outputs: [
3147
+ {
3148
+ name: '',
3149
+ type: 'tuple',
3150
+ components: [
3151
+ {
3152
+ name: 'vaultAddr',
3153
+ type: 'address',
3154
+ },
3155
+ {
3156
+ name: 'usdcSlippage',
3157
+ type: 'uint256',
3158
+ },
3159
+ {
3160
+ name: 'greenSlippage',
3161
+ type: 'uint256',
3162
+ },
3163
+ ],
3164
+ },
3165
+ ],
3166
+ },
3167
+ {
3168
+ stateMutability: 'view',
3169
+ type: 'function',
3170
+ name: 'pendingLevgVaultHelper',
3171
+ inputs: [
3172
+ {
3173
+ name: 'arg0',
3174
+ type: 'uint256',
3175
+ },
3176
+ ],
3177
+ outputs: [
3178
+ {
3179
+ name: '',
3180
+ type: 'tuple',
3181
+ components: [
3182
+ {
3183
+ name: 'vaultAddr',
3184
+ type: 'address',
3185
+ },
3186
+ {
3187
+ name: 'levgVaultHelper',
3188
+ type: 'address',
3189
+ },
3190
+ ],
3191
+ },
3192
+ ],
3193
+ },
3194
+ {
3195
+ stateMutability: 'view',
3196
+ type: 'function',
3197
+ name: 'pendingMaxDebtRatio',
3198
+ inputs: [
3199
+ {
3200
+ name: 'arg0',
3201
+ type: 'uint256',
3202
+ },
3203
+ ],
3204
+ outputs: [
3205
+ {
3206
+ name: '',
3207
+ type: 'tuple',
3208
+ components: [
3209
+ {
3210
+ name: 'vaultAddr',
3211
+ type: 'address',
3212
+ },
3213
+ {
3214
+ name: 'ratio',
3215
+ type: 'uint256',
3216
+ },
3217
+ ],
3218
+ },
3219
+ ],
3220
+ },
3221
+ {
3222
+ stateMutability: 'view',
3223
+ type: 'function',
3224
+ name: 'pendingAddManager',
3225
+ inputs: [
3226
+ {
3227
+ name: 'arg0',
3228
+ type: 'uint256',
3229
+ },
3230
+ ],
3231
+ outputs: [
3232
+ {
3233
+ name: '',
3234
+ type: 'tuple',
3235
+ components: [
3236
+ {
3237
+ name: 'vaultAddr',
3238
+ type: 'address',
3239
+ },
3240
+ {
3241
+ name: 'manager',
3242
+ type: 'address',
3243
+ },
3244
+ ],
3245
+ },
3246
+ ],
3247
+ },
3248
+ {
3249
+ stateMutability: 'view',
3250
+ type: 'function',
3251
+ name: 'pendingRemoveManager',
3252
+ inputs: [
3253
+ {
3254
+ name: 'arg0',
3255
+ type: 'uint256',
3256
+ },
3257
+ ],
3258
+ outputs: [
3259
+ {
3260
+ name: '',
3261
+ type: 'tuple',
3262
+ components: [
3263
+ {
3264
+ name: 'vaultAddr',
3265
+ type: 'address',
3266
+ },
3267
+ {
3268
+ name: 'manager',
3269
+ type: 'address',
3270
+ },
3271
+ ],
3272
+ },
3273
+ ],
3274
+ },
3275
+ {
3276
+ stateMutability: 'view',
3277
+ type: 'function',
3278
+ name: 'pendingRegisterVaultTokenOnLego',
3279
+ inputs: [
3280
+ {
3281
+ name: 'arg0',
3282
+ type: 'uint256',
3283
+ },
3284
+ ],
3285
+ outputs: [
3286
+ {
3287
+ name: '',
3288
+ type: 'tuple',
3289
+ components: [
3290
+ {
3291
+ name: 'legoId',
3292
+ type: 'uint256',
3293
+ },
3294
+ {
3295
+ name: 'asset',
3296
+ type: 'address',
3297
+ },
3298
+ {
3299
+ name: 'vaultToken',
3300
+ type: 'address',
3301
+ },
3302
+ ],
3303
+ },
3304
+ ],
3305
+ },
3306
+ {
3307
+ stateMutability: 'view',
3308
+ type: 'function',
3309
+ name: 'pendingMorphoRewardsAddr',
3310
+ inputs: [
3311
+ {
3312
+ name: 'arg0',
3313
+ type: 'uint256',
3314
+ },
3315
+ ],
3316
+ outputs: [
3317
+ {
3318
+ name: '',
3319
+ type: 'tuple',
3320
+ components: [
3321
+ {
3322
+ name: 'legoId',
3323
+ type: 'uint256',
3324
+ },
3325
+ {
3326
+ name: 'rewardsAddr',
3327
+ type: 'address',
3328
+ },
3329
+ ],
3330
+ },
3331
+ ],
3332
+ },
3333
+ {
3334
+ stateMutability: 'view',
3335
+ type: 'function',
3336
+ name: 'pendingEulerRewardsAddr',
3337
+ inputs: [
3338
+ {
3339
+ name: 'arg0',
3340
+ type: 'uint256',
3341
+ },
3342
+ ],
3343
+ outputs: [
3344
+ {
3345
+ name: '',
3346
+ type: 'tuple',
3347
+ components: [
3348
+ {
3349
+ name: 'legoId',
3350
+ type: 'uint256',
3351
+ },
3352
+ {
3353
+ name: 'rewardsAddr',
3354
+ type: 'address',
3355
+ },
3356
+ ],
3357
+ },
3358
+ ],
3359
+ },
3360
+ {
3361
+ stateMutability: 'view',
3362
+ type: 'function',
3363
+ name: 'pendingCompRewardsAddr',
3364
+ inputs: [
3365
+ {
3366
+ name: 'arg0',
3367
+ type: 'uint256',
3368
+ },
3369
+ ],
3370
+ outputs: [
3371
+ {
3372
+ name: '',
3373
+ type: 'tuple',
3374
+ components: [
3375
+ {
3376
+ name: 'legoId',
3377
+ type: 'uint256',
3378
+ },
3379
+ {
3380
+ name: 'rewardsAddr',
3381
+ type: 'address',
3382
+ },
3383
+ ],
3384
+ },
3385
+ ],
3386
+ },
3387
+ {
3388
+ stateMutability: 'nonpayable',
3389
+ type: 'constructor',
3390
+ inputs: [
3391
+ {
3392
+ name: '_undyHq',
3393
+ type: 'address',
3394
+ },
3395
+ {
3396
+ name: '_tempGov',
3397
+ type: 'address',
3398
+ },
3399
+ {
3400
+ name: '_minConfigTimeLock',
3401
+ type: 'uint256',
3402
+ },
3403
+ {
3404
+ name: '_maxConfigTimeLock',
3405
+ type: 'uint256',
3406
+ },
3407
+ ],
3408
+ outputs: [],
3409
+ },
3410
+ ];
3411
+ export const deployAddress = '0xDd7507f7FC1845Ba0f07C3f0164D7b114C150117';
3412
+ function getRequest(method, args, contractAddressOrOptions) {
3413
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
3414
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
3415
+ const call = {
3416
+ contractName: 'SwitchboardCharlie',
3417
+ method,
3418
+ args,
3419
+ address,
3420
+ deployAddress,
3421
+ defaultValue,
3422
+ getAbi: () => abi,
3423
+ with: (options) => {
3424
+ call.address = options.contractAddress;
3425
+ call.defaultValue = options.defaultValue;
3426
+ return call;
3427
+ },
3428
+ defaultTo: (defaultValue) => {
3429
+ call.defaultValue = defaultValue;
3430
+ return call;
3431
+ },
3432
+ at: (address) => {
3433
+ call.address = address;
3434
+ return call;
3435
+ },
3436
+ };
3437
+ return call;
3438
+ }
3439
+ export const call = {
3440
+ getAddys: (...args) => getRequest('getAddys', args),
3441
+ getUndyHq: (...args) => getRequest('getUndyHq', args),
3442
+ getUndyHqFromGov: (...args) => getRequest('getUndyHqFromGov', args),
3443
+ canGovern: (...args) => getRequest('canGovern', args),
3444
+ getGovernors: (...args) => getRequest('getGovernors', args),
3445
+ hasPendingGovChange: (...args) => getRequest('hasPendingGovChange', args),
3446
+ isValidGovTimeLock: (...args) => getRequest('isValidGovTimeLock', args),
3447
+ minGovChangeTimeLock: (...args) => getRequest('minGovChangeTimeLock', args),
3448
+ maxGovChangeTimeLock: (...args) => getRequest('maxGovChangeTimeLock', args),
3449
+ governance: (...args) => getRequest('governance', args),
3450
+ pendingGov: (...args) => getRequest('pendingGov', args),
3451
+ numGovChanges: (...args) => getRequest('numGovChanges', args),
3452
+ govChangeTimeLock: (...args) => getRequest('govChangeTimeLock', args),
3453
+ canConfirmAction: (...args) => getRequest('canConfirmAction', args),
3454
+ isExpired: (...args) => getRequest('isExpired', args),
3455
+ hasPendingAction: (...args) => getRequest('hasPendingAction', args),
3456
+ getActionConfirmationBlock: (...args) => getRequest('getActionConfirmationBlock', args),
3457
+ isValidActionTimeLock: (...args) => getRequest('isValidActionTimeLock', args),
3458
+ minActionTimeLock: (...args) => getRequest('minActionTimeLock', args),
3459
+ maxActionTimeLock: (...args) => getRequest('maxActionTimeLock', args),
3460
+ pendingActions: (...args) => getRequest('pendingActions', args),
3461
+ actionId: (...args) => getRequest('actionId', args),
3462
+ actionTimeLock: (...args) => getRequest('actionTimeLock', args),
3463
+ expiration: (...args) => getRequest('expiration', args),
3464
+ actionType: (...args) => getRequest('actionType', args),
3465
+ pendingRedemptionBuffer: (...args) => getRequest('pendingRedemptionBuffer', args),
3466
+ pendingMinYieldWithdrawAmount: (...args) => getRequest('pendingMinYieldWithdrawAmount', args),
3467
+ pendingSnapShotPriceConfig: (...args) => getRequest('pendingSnapShotPriceConfig', args),
3468
+ pendingApprovedVaultToken: (...args) => getRequest('pendingApprovedVaultToken', args),
3469
+ pendingApprovedVaultTokens: (...args) => getRequest('pendingApprovedVaultTokens', args),
3470
+ pendingPerformanceFee: (...args) => getRequest('pendingPerformanceFee', args),
3471
+ pendingDefaultTargetVaultToken: (...args) => getRequest('pendingDefaultTargetVaultToken', args),
3472
+ pendingMaxDepositAmount: (...args) => getRequest('pendingMaxDepositAmount', args),
3473
+ pendingIsLeveragedVault: (...args) => getRequest('pendingIsLeveragedVault', args),
3474
+ pendingCollateralVault: (...args) => getRequest('pendingCollateralVault', args),
3475
+ pendingLeverageVault: (...args) => getRequest('pendingLeverageVault', args),
3476
+ pendingSlippages: (...args) => getRequest('pendingSlippages', args),
3477
+ pendingLevgVaultHelper: (...args) => getRequest('pendingLevgVaultHelper', args),
3478
+ pendingMaxDebtRatio: (...args) => getRequest('pendingMaxDebtRatio', args),
3479
+ pendingAddManager: (...args) => getRequest('pendingAddManager', args),
3480
+ pendingRemoveManager: (...args) => getRequest('pendingRemoveManager', args),
3481
+ pendingRegisterVaultTokenOnLego: (...args) => getRequest('pendingRegisterVaultTokenOnLego', args),
3482
+ pendingMorphoRewardsAddr: (...args) => getRequest('pendingMorphoRewardsAddr', args),
3483
+ pendingEulerRewardsAddr: (...args) => getRequest('pendingEulerRewardsAddr', args),
3484
+ pendingCompRewardsAddr: (...args) => getRequest('pendingCompRewardsAddr', args),
3485
+ };
3486
+ function getMutation(functionName) {
3487
+ return {
3488
+ contractName: 'SwitchboardCharlie',
3489
+ functionName,
3490
+ deployAddress,
3491
+ argsType: undefined,
3492
+ getAbi: () => abi,
3493
+ };
3494
+ }
3495
+ export const mutation = {
3496
+ startGovernanceChange: getMutation('startGovernanceChange'),
3497
+ confirmGovernanceChange: getMutation('confirmGovernanceChange'),
3498
+ cancelGovernanceChange: getMutation('cancelGovernanceChange'),
3499
+ relinquishGov: getMutation('relinquishGov'),
3500
+ setGovTimeLock: getMutation('setGovTimeLock'),
3501
+ finishUndyHqSetup: getMutation('finishUndyHqSetup'),
3502
+ setActionTimeLock: getMutation('setActionTimeLock'),
3503
+ setExpiration: getMutation('setExpiration'),
3504
+ setActionTimeLockAfterSetup: getMutation('setActionTimeLockAfterSetup'),
3505
+ setCanDeposit: getMutation('setCanDeposit'),
3506
+ setCanWithdraw: getMutation('setCanWithdraw'),
3507
+ setVaultOpsFrozen: getMutation('setVaultOpsFrozen'),
3508
+ setShouldAutoDeposit: getMutation('setShouldAutoDeposit'),
3509
+ setShouldEnforceAllowlist: getMutation('setShouldEnforceAllowlist'),
3510
+ setAllowed: getMutation('setAllowed'),
3511
+ setAllowedBatch: getMutation('setAllowedBatch'),
3512
+ addPriceSnapshot: getMutation('addPriceSnapshot'),
3513
+ deregisterVaultTokenOnLego: getMutation('deregisterVaultTokenOnLego'),
3514
+ updateYieldPosition: getMutation('updateYieldPosition'),
3515
+ claimPerformanceFees: getMutation('claimPerformanceFees'),
3516
+ sweepLeftovers: getMutation('sweepLeftovers'),
3517
+ setRedemptionBuffer: getMutation('setRedemptionBuffer'),
3518
+ setMinYieldWithdrawAmount: getMutation('setMinYieldWithdrawAmount'),
3519
+ setSnapShotPriceConfig: getMutation('setSnapShotPriceConfig'),
3520
+ setApprovedVaultToken: getMutation('setApprovedVaultToken'),
3521
+ setApprovedVaultTokens: getMutation('setApprovedVaultTokens'),
3522
+ setPerformanceFee: getMutation('setPerformanceFee'),
3523
+ setDefaultTargetVaultToken: getMutation('setDefaultTargetVaultToken'),
3524
+ setMaxDepositAmount: getMutation('setMaxDepositAmount'),
3525
+ setIsLeveragedVault: getMutation('setIsLeveragedVault'),
3526
+ setCollateralVault: getMutation('setCollateralVault'),
3527
+ setLeverageVault: getMutation('setLeverageVault'),
3528
+ setSlippagesAllowed: getMutation('setSlippagesAllowed'),
3529
+ setLevgVaultHelper: getMutation('setLevgVaultHelper'),
3530
+ setMaxDebtRatio: getMutation('setMaxDebtRatio'),
3531
+ addVaultManager: getMutation('addVaultManager'),
3532
+ removeVaultManager: getMutation('removeVaultManager'),
3533
+ registerVaultTokenOnLego: getMutation('registerVaultTokenOnLego'),
3534
+ setMorphoRewardsAddr: getMutation('setMorphoRewardsAddr'),
3535
+ setEulerRewardsAddr: getMutation('setEulerRewardsAddr'),
3536
+ setCompRewardsAddr: getMutation('setCompRewardsAddr'),
3537
+ executePendingAction: getMutation('executePendingAction'),
3538
+ cancelPendingAction: getMutation('cancelPendingAction'),
3539
+ };
3540
+ export function toSdk(publicClient, walletClient) {
3541
+ return {
3542
+ deployAddress,
3543
+ abi,
3544
+ // Queries
3545
+ getAddys: (...args) => singleQuery(publicClient, call.getAddys(...args)),
3546
+ getUndyHq: (...args) => singleQuery(publicClient, call.getUndyHq(...args)),
3547
+ getUndyHqFromGov: (...args) => singleQuery(publicClient, call.getUndyHqFromGov(...args)),
3548
+ canGovern: (...args) => singleQuery(publicClient, call.canGovern(...args)),
3549
+ getGovernors: (...args) => singleQuery(publicClient, call.getGovernors(...args)),
3550
+ hasPendingGovChange: (...args) => singleQuery(publicClient, call.hasPendingGovChange(...args)),
3551
+ isValidGovTimeLock: (...args) => singleQuery(publicClient, call.isValidGovTimeLock(...args)),
3552
+ minGovChangeTimeLock: (...args) => singleQuery(publicClient, call.minGovChangeTimeLock(...args)),
3553
+ maxGovChangeTimeLock: (...args) => singleQuery(publicClient, call.maxGovChangeTimeLock(...args)),
3554
+ governance: (...args) => singleQuery(publicClient, call.governance(...args)),
3555
+ pendingGov: (...args) => singleQuery(publicClient, call.pendingGov(...args)),
3556
+ numGovChanges: (...args) => singleQuery(publicClient, call.numGovChanges(...args)),
3557
+ govChangeTimeLock: (...args) => singleQuery(publicClient, call.govChangeTimeLock(...args)),
3558
+ canConfirmAction: (...args) => singleQuery(publicClient, call.canConfirmAction(...args)),
3559
+ isExpired: (...args) => singleQuery(publicClient, call.isExpired(...args)),
3560
+ hasPendingAction: (...args) => singleQuery(publicClient, call.hasPendingAction(...args)),
3561
+ getActionConfirmationBlock: (...args) => singleQuery(publicClient, call.getActionConfirmationBlock(...args)),
3562
+ isValidActionTimeLock: (...args) => singleQuery(publicClient, call.isValidActionTimeLock(...args)),
3563
+ minActionTimeLock: (...args) => singleQuery(publicClient, call.minActionTimeLock(...args)),
3564
+ maxActionTimeLock: (...args) => singleQuery(publicClient, call.maxActionTimeLock(...args)),
3565
+ pendingActions: (...args) => singleQuery(publicClient, call.pendingActions(...args)),
3566
+ actionId: (...args) => singleQuery(publicClient, call.actionId(...args)),
3567
+ actionTimeLock: (...args) => singleQuery(publicClient, call.actionTimeLock(...args)),
3568
+ expiration: (...args) => singleQuery(publicClient, call.expiration(...args)),
3569
+ actionType: (...args) => singleQuery(publicClient, call.actionType(...args)),
3570
+ pendingRedemptionBuffer: (...args) => singleQuery(publicClient, call.pendingRedemptionBuffer(...args)),
3571
+ pendingMinYieldWithdrawAmount: (...args) => singleQuery(publicClient, call.pendingMinYieldWithdrawAmount(...args)),
3572
+ pendingSnapShotPriceConfig: (...args) => singleQuery(publicClient, call.pendingSnapShotPriceConfig(...args)),
3573
+ pendingApprovedVaultToken: (...args) => singleQuery(publicClient, call.pendingApprovedVaultToken(...args)),
3574
+ pendingApprovedVaultTokens: (...args) => singleQuery(publicClient, call.pendingApprovedVaultTokens(...args)),
3575
+ pendingPerformanceFee: (...args) => singleQuery(publicClient, call.pendingPerformanceFee(...args)),
3576
+ pendingDefaultTargetVaultToken: (...args) => singleQuery(publicClient, call.pendingDefaultTargetVaultToken(...args)),
3577
+ pendingMaxDepositAmount: (...args) => singleQuery(publicClient, call.pendingMaxDepositAmount(...args)),
3578
+ pendingIsLeveragedVault: (...args) => singleQuery(publicClient, call.pendingIsLeveragedVault(...args)),
3579
+ pendingCollateralVault: (...args) => singleQuery(publicClient, call.pendingCollateralVault(...args)),
3580
+ pendingLeverageVault: (...args) => singleQuery(publicClient, call.pendingLeverageVault(...args)),
3581
+ pendingSlippages: (...args) => singleQuery(publicClient, call.pendingSlippages(...args)),
3582
+ pendingLevgVaultHelper: (...args) => singleQuery(publicClient, call.pendingLevgVaultHelper(...args)),
3583
+ pendingMaxDebtRatio: (...args) => singleQuery(publicClient, call.pendingMaxDebtRatio(...args)),
3584
+ pendingAddManager: (...args) => singleQuery(publicClient, call.pendingAddManager(...args)),
3585
+ pendingRemoveManager: (...args) => singleQuery(publicClient, call.pendingRemoveManager(...args)),
3586
+ pendingRegisterVaultTokenOnLego: (...args) => singleQuery(publicClient, call.pendingRegisterVaultTokenOnLego(...args)),
3587
+ pendingMorphoRewardsAddr: (...args) => singleQuery(publicClient, call.pendingMorphoRewardsAddr(...args)),
3588
+ pendingEulerRewardsAddr: (...args) => singleQuery(publicClient, call.pendingEulerRewardsAddr(...args)),
3589
+ pendingCompRewardsAddr: (...args) => singleQuery(publicClient, call.pendingCompRewardsAddr(...args)),
3590
+ // Mutations
3591
+ startGovernanceChange: (...args) => mutate(walletClient, mutation.startGovernanceChange)(...args),
3592
+ confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
3593
+ cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange)(...args),
3594
+ relinquishGov: (...args) => mutate(walletClient, mutation.relinquishGov)(...args),
3595
+ setGovTimeLock: (...args) => mutate(walletClient, mutation.setGovTimeLock)(...args),
3596
+ finishUndyHqSetup: (...args) => mutate(walletClient, mutation.finishUndyHqSetup)(...args),
3597
+ setActionTimeLock: (...args) => mutate(walletClient, mutation.setActionTimeLock)(...args),
3598
+ setExpiration: (...args) => mutate(walletClient, mutation.setExpiration)(...args),
3599
+ setActionTimeLockAfterSetup: (...args) => mutate(walletClient, mutation.setActionTimeLockAfterSetup)(...args),
3600
+ setCanDeposit: (...args) => mutate(walletClient, mutation.setCanDeposit)(...args),
3601
+ setCanWithdraw: (...args) => mutate(walletClient, mutation.setCanWithdraw)(...args),
3602
+ setVaultOpsFrozen: (...args) => mutate(walletClient, mutation.setVaultOpsFrozen)(...args),
3603
+ setShouldAutoDeposit: (...args) => mutate(walletClient, mutation.setShouldAutoDeposit)(...args),
3604
+ setShouldEnforceAllowlist: (...args) => mutate(walletClient, mutation.setShouldEnforceAllowlist)(...args),
3605
+ setAllowed: (...args) => mutate(walletClient, mutation.setAllowed)(...args),
3606
+ setAllowedBatch: (...args) => mutate(walletClient, mutation.setAllowedBatch)(...args),
3607
+ addPriceSnapshot: (...args) => mutate(walletClient, mutation.addPriceSnapshot)(...args),
3608
+ deregisterVaultTokenOnLego: (...args) => mutate(walletClient, mutation.deregisterVaultTokenOnLego)(...args),
3609
+ updateYieldPosition: (...args) => mutate(walletClient, mutation.updateYieldPosition)(...args),
3610
+ claimPerformanceFees: (...args) => mutate(walletClient, mutation.claimPerformanceFees)(...args),
3611
+ sweepLeftovers: (...args) => mutate(walletClient, mutation.sweepLeftovers)(...args),
3612
+ setRedemptionBuffer: (...args) => mutate(walletClient, mutation.setRedemptionBuffer)(...args),
3613
+ setMinYieldWithdrawAmount: (...args) => mutate(walletClient, mutation.setMinYieldWithdrawAmount)(...args),
3614
+ setSnapShotPriceConfig: (...args) => mutate(walletClient, mutation.setSnapShotPriceConfig)(...args),
3615
+ setApprovedVaultToken: (...args) => mutate(walletClient, mutation.setApprovedVaultToken)(...args),
3616
+ setApprovedVaultTokens: (...args) => mutate(walletClient, mutation.setApprovedVaultTokens)(...args),
3617
+ setPerformanceFee: (...args) => mutate(walletClient, mutation.setPerformanceFee)(...args),
3618
+ setDefaultTargetVaultToken: (...args) => mutate(walletClient, mutation.setDefaultTargetVaultToken)(...args),
3619
+ setMaxDepositAmount: (...args) => mutate(walletClient, mutation.setMaxDepositAmount)(...args),
3620
+ setIsLeveragedVault: (...args) => mutate(walletClient, mutation.setIsLeveragedVault)(...args),
3621
+ setCollateralVault: (...args) => mutate(walletClient, mutation.setCollateralVault)(...args),
3622
+ setLeverageVault: (...args) => mutate(walletClient, mutation.setLeverageVault)(...args),
3623
+ setSlippagesAllowed: (...args) => mutate(walletClient, mutation.setSlippagesAllowed)(...args),
3624
+ setLevgVaultHelper: (...args) => mutate(walletClient, mutation.setLevgVaultHelper)(...args),
3625
+ setMaxDebtRatio: (...args) => mutate(walletClient, mutation.setMaxDebtRatio)(...args),
3626
+ addVaultManager: (...args) => mutate(walletClient, mutation.addVaultManager)(...args),
3627
+ removeVaultManager: (...args) => mutate(walletClient, mutation.removeVaultManager)(...args),
3628
+ registerVaultTokenOnLego: (...args) => mutate(walletClient, mutation.registerVaultTokenOnLego)(...args),
3629
+ setMorphoRewardsAddr: (...args) => mutate(walletClient, mutation.setMorphoRewardsAddr)(...args),
3630
+ setEulerRewardsAddr: (...args) => mutate(walletClient, mutation.setEulerRewardsAddr)(...args),
3631
+ setCompRewardsAddr: (...args) => mutate(walletClient, mutation.setCompRewardsAddr)(...args),
3632
+ executePendingAction: (...args) => mutate(walletClient, mutation.executePendingAction)(...args),
3633
+ cancelPendingAction: (...args) => mutate(walletClient, mutation.cancelPendingAction)(...args),
3634
+ };
3635
+ }