@underscore-finance/sdk 1.0.11 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (310) hide show
  1. package/dist/contracts/AaveV3.d.ts +603 -279
  2. package/dist/contracts/AaveV3.d.ts.map +1 -1
  3. package/dist/contracts/AaveV3.js +718 -331
  4. package/dist/contracts/AeroClassic.d.ts +4 -17
  5. package/dist/contracts/AeroClassic.d.ts.map +1 -1
  6. package/dist/contracts/AeroClassic.js +5 -24
  7. package/dist/contracts/AeroSlipstream.d.ts +4 -17
  8. package/dist/contracts/AeroSlipstream.d.ts.map +1 -1
  9. package/dist/contracts/AeroSlipstream.js +5 -24
  10. package/dist/contracts/Appraiser.d.ts +4 -0
  11. package/dist/contracts/Appraiser.d.ts.map +1 -1
  12. package/dist/contracts/Appraiser.js +5 -1
  13. package/dist/contracts/CompoundV3.d.ts +556 -246
  14. package/dist/contracts/CompoundV3.d.ts.map +1 -1
  15. package/dist/contracts/CompoundV3.js +695 -327
  16. package/dist/contracts/Curve.d.ts +4 -17
  17. package/dist/contracts/Curve.d.ts.map +1 -1
  18. package/dist/contracts/Curve.js +5 -24
  19. package/dist/contracts/Euler.d.ts +581 -253
  20. package/dist/contracts/Euler.d.ts.map +1 -1
  21. package/dist/contracts/Euler.js +714 -324
  22. package/dist/contracts/Fluid.d.ts +644 -302
  23. package/dist/contracts/Fluid.d.ts.map +1 -1
  24. package/dist/contracts/Fluid.js +743 -334
  25. package/dist/contracts/{Agent_v1.d.ts → FortyAcres.d.ts} +1516 -1699
  26. package/dist/contracts/FortyAcres.d.ts.map +1 -0
  27. package/dist/contracts/{AgentTemplate.js → FortyAcres.js} +1681 -1946
  28. package/dist/contracts/LegoBook.d.ts +7 -0
  29. package/dist/contracts/LegoBook.d.ts.map +1 -1
  30. package/dist/contracts/LegoBook.js +9 -1
  31. package/dist/contracts/LegoTools.d.ts +4 -0
  32. package/dist/contracts/LegoTools.d.ts.map +1 -1
  33. package/dist/contracts/LegoTools.js +5 -1
  34. package/dist/contracts/Moonwell.d.ts +582 -254
  35. package/dist/contracts/Moonwell.d.ts.map +1 -1
  36. package/dist/contracts/Moonwell.js +705 -315
  37. package/dist/contracts/Morpho.d.ts +580 -252
  38. package/dist/contracts/Morpho.d.ts.map +1 -1
  39. package/dist/contracts/Morpho.js +723 -333
  40. package/dist/contracts/RipeLego.d.ts +719 -363
  41. package/dist/contracts/RipeLego.d.ts.map +1 -1
  42. package/dist/contracts/RipeLego.js +839 -413
  43. package/dist/contracts/SignatureHelperV1.d.ts +229 -229
  44. package/dist/contracts/SignatureHelperV1.js +333 -333
  45. package/dist/contracts/SwitchboardCharlie.d.ts +1470 -0
  46. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -0
  47. package/dist/contracts/{v0_3_OracleRegistry.js → SwitchboardCharlie.js} +954 -691
  48. package/dist/contracts/{v0_1_Agent.d.ts → UnderscoreLego.d.ts} +1469 -1663
  49. package/dist/contracts/UnderscoreLego.d.ts.map +1 -0
  50. package/dist/contracts/{Agent_v1.js → UnderscoreLego.js} +1601 -1882
  51. package/dist/contracts/UndyBtc.d.ts +1487 -0
  52. package/dist/contracts/UndyBtc.d.ts.map +1 -0
  53. package/dist/contracts/{LegoUniswapV3.js → UndyBtc.js} +991 -754
  54. package/dist/contracts/UndyEth.d.ts +1487 -0
  55. package/dist/contracts/UndyEth.d.ts.map +1 -0
  56. package/dist/contracts/{v0_3_LegoUniswapV3.js → UndyEth.js} +991 -754
  57. package/dist/contracts/UndyRewardsLego.d.ts +3 -0
  58. package/dist/contracts/UndyRewardsLego.d.ts.map +1 -1
  59. package/dist/contracts/UndyRewardsLego.js +5 -1
  60. package/dist/contracts/UndyUsd.d.ts +1487 -0
  61. package/dist/contracts/UndyUsd.d.ts.map +1 -0
  62. package/dist/contracts/{LegoAeroSlipstream.js → UndyUsd.js} +1009 -725
  63. package/dist/contracts/UniswapV2.d.ts +4 -17
  64. package/dist/contracts/UniswapV2.d.ts.map +1 -1
  65. package/dist/contracts/UniswapV2.js +5 -24
  66. package/dist/contracts/UniswapV3.d.ts +4 -17
  67. package/dist/contracts/UniswapV3.d.ts.map +1 -1
  68. package/dist/contracts/UniswapV3.js +5 -24
  69. package/dist/contracts/VaultRegistry.d.ts +2265 -0
  70. package/dist/contracts/VaultRegistry.d.ts.map +1 -0
  71. package/dist/contracts/VaultRegistry.js +2848 -0
  72. package/dist/contracts/index.d.ts +7 -0
  73. package/dist/contracts/index.d.ts.map +1 -1
  74. package/dist/contracts/index.js +7 -0
  75. package/dist/contracts/sdk.d.ts +14 -0
  76. package/dist/contracts/sdk.d.ts.map +1 -1
  77. package/dist/contracts/sdk.js +14 -0
  78. package/dist/getContracts.d.ts +1 -0
  79. package/dist/getContracts.d.ts.map +1 -1
  80. package/dist/getContracts.js +1 -0
  81. package/package.json +1 -1
  82. package/dist/contracts/AddyRegistry.d.ts +0 -1109
  83. package/dist/contracts/AddyRegistry.d.ts.map +0 -1
  84. package/dist/contracts/AddyRegistry.js +0 -1392
  85. package/dist/contracts/AddyRegistry_v1.d.ts +0 -473
  86. package/dist/contracts/AddyRegistry_v1.d.ts.map +0 -1
  87. package/dist/contracts/AddyRegistry_v1.js +0 -594
  88. package/dist/contracts/AddyRegistry_v2.d.ts +0 -1050
  89. package/dist/contracts/AddyRegistry_v2.d.ts.map +0 -1
  90. package/dist/contracts/AddyRegistry_v2.js +0 -1313
  91. package/dist/contracts/AgentFactory.d.ts +0 -1665
  92. package/dist/contracts/AgentFactory.d.ts.map +0 -1
  93. package/dist/contracts/AgentFactory.js +0 -2078
  94. package/dist/contracts/AgentFactory_v1.d.ts +0 -1054
  95. package/dist/contracts/AgentFactory_v1.d.ts.map +0 -1
  96. package/dist/contracts/AgentFactory_v1.js +0 -1336
  97. package/dist/contracts/AgentFactory_v2.d.ts +0 -1275
  98. package/dist/contracts/AgentFactory_v2.d.ts.map +0 -1
  99. package/dist/contracts/AgentFactory_v2.js +0 -1609
  100. package/dist/contracts/AgentTemplate.d.ts +0 -2629
  101. package/dist/contracts/AgentTemplate.d.ts.map +0 -1
  102. package/dist/contracts/Agent_v1.d.ts.map +0 -1
  103. package/dist/contracts/Agent_v2.d.ts +0 -2709
  104. package/dist/contracts/Agent_v2.d.ts.map +0 -1
  105. package/dist/contracts/Agent_v2.js +0 -3458
  106. package/dist/contracts/ChainlinkFeeds.d.ts +0 -706
  107. package/dist/contracts/ChainlinkFeeds.d.ts.map +0 -1
  108. package/dist/contracts/ChainlinkFeeds.js +0 -900
  109. package/dist/contracts/LegoAaveV3.d.ts +0 -1033
  110. package/dist/contracts/LegoAaveV3.d.ts.map +0 -1
  111. package/dist/contracts/LegoAaveV3.js +0 -1330
  112. package/dist/contracts/LegoAeroClassic.d.ts +0 -1204
  113. package/dist/contracts/LegoAeroClassic.d.ts.map +0 -1
  114. package/dist/contracts/LegoAeroClassic.js +0 -1546
  115. package/dist/contracts/LegoAeroSlipstream.d.ts +0 -1300
  116. package/dist/contracts/LegoAeroSlipstream.d.ts.map +0 -1
  117. package/dist/contracts/LegoCommon.d.ts +0 -164
  118. package/dist/contracts/LegoCommon.d.ts.map +0 -1
  119. package/dist/contracts/LegoCommon.js +0 -202
  120. package/dist/contracts/LegoCompoundV3.d.ts +0 -1060
  121. package/dist/contracts/LegoCompoundV3.d.ts.map +0 -1
  122. package/dist/contracts/LegoCompoundV3.js +0 -1365
  123. package/dist/contracts/LegoCredit.d.ts +0 -140
  124. package/dist/contracts/LegoCredit.d.ts.map +0 -1
  125. package/dist/contracts/LegoCredit.js +0 -179
  126. package/dist/contracts/LegoCurve.d.ts +0 -1189
  127. package/dist/contracts/LegoCurve.d.ts.map +0 -1
  128. package/dist/contracts/LegoCurve.js +0 -1519
  129. package/dist/contracts/LegoDex.d.ts +0 -587
  130. package/dist/contracts/LegoDex.d.ts.map +0 -1
  131. package/dist/contracts/LegoDex.js +0 -774
  132. package/dist/contracts/LegoEuler.d.ts +0 -1074
  133. package/dist/contracts/LegoEuler.d.ts.map +0 -1
  134. package/dist/contracts/LegoEuler.js +0 -1383
  135. package/dist/contracts/LegoFluid.d.ts +0 -1025
  136. package/dist/contracts/LegoFluid.d.ts.map +0 -1
  137. package/dist/contracts/LegoFluid.js +0 -1320
  138. package/dist/contracts/LegoHelper.d.ts +0 -1563
  139. package/dist/contracts/LegoHelper.d.ts.map +0 -1
  140. package/dist/contracts/LegoHelper.js +0 -1947
  141. package/dist/contracts/LegoMoonwell.d.ts +0 -1042
  142. package/dist/contracts/LegoMoonwell.d.ts.map +0 -1
  143. package/dist/contracts/LegoMoonwell.js +0 -1342
  144. package/dist/contracts/LegoMorpho.d.ts +0 -1074
  145. package/dist/contracts/LegoMorpho.d.ts.map +0 -1
  146. package/dist/contracts/LegoMorpho.js +0 -1383
  147. package/dist/contracts/LegoRegistry.d.ts +0 -1079
  148. package/dist/contracts/LegoRegistry.d.ts.map +0 -1
  149. package/dist/contracts/LegoRegistry.js +0 -1368
  150. package/dist/contracts/LegoSky.d.ts +0 -923
  151. package/dist/contracts/LegoSky.d.ts.map +0 -1
  152. package/dist/contracts/LegoSky.js +0 -1180
  153. package/dist/contracts/LegoUniswapV0_2.d.ts +0 -1204
  154. package/dist/contracts/LegoUniswapV0_2.d.ts.map +0 -1
  155. package/dist/contracts/LegoUniswapV0_2.js +0 -1546
  156. package/dist/contracts/LegoUniswapV2.d.ts +0 -1204
  157. package/dist/contracts/LegoUniswapV2.d.ts.map +0 -1
  158. package/dist/contracts/LegoUniswapV2.js +0 -1546
  159. package/dist/contracts/LegoUniswapV3.d.ts +0 -1338
  160. package/dist/contracts/LegoUniswapV3.d.ts.map +0 -1
  161. package/dist/contracts/LegoYield.d.ts +0 -390
  162. package/dist/contracts/LegoYield.d.ts.map +0 -1
  163. package/dist/contracts/LegoYield.js +0 -511
  164. package/dist/contracts/OracleParser.d.ts +0 -207
  165. package/dist/contracts/OracleParser.d.ts.map +0 -1
  166. package/dist/contracts/OracleParser.js +0 -264
  167. package/dist/contracts/OracleRegistry.d.ts +0 -1221
  168. package/dist/contracts/OracleRegistry.d.ts.map +0 -1
  169. package/dist/contracts/OracleRegistry.js +0 -1562
  170. package/dist/contracts/PriceSheets.d.ts +0 -1127
  171. package/dist/contracts/PriceSheets.d.ts.map +0 -1
  172. package/dist/contracts/PriceSheets.js +0 -1383
  173. package/dist/contracts/PythFeeds.d.ts +0 -640
  174. package/dist/contracts/PythFeeds.d.ts.map +0 -1
  175. package/dist/contracts/PythFeeds.js +0 -813
  176. package/dist/contracts/StorkFeeds.d.ts +0 -640
  177. package/dist/contracts/StorkFeeds.d.ts.map +0 -1
  178. package/dist/contracts/StorkFeeds.js +0 -813
  179. package/dist/contracts/UserWalletConfig_v1.d.ts +0 -1400
  180. package/dist/contracts/UserWalletConfig_v1.d.ts.map +0 -1
  181. package/dist/contracts/UserWalletConfig_v1.js +0 -1676
  182. package/dist/contracts/UserWalletConfig_v2.d.ts +0 -1468
  183. package/dist/contracts/UserWalletConfig_v2.d.ts.map +0 -1
  184. package/dist/contracts/UserWalletConfig_v2.js +0 -1764
  185. package/dist/contracts/UserWallet_v1.d.ts +0 -1980
  186. package/dist/contracts/UserWallet_v1.d.ts.map +0 -1
  187. package/dist/contracts/UserWallet_v1.js +0 -2581
  188. package/dist/contracts/UserWallet_v2.d.ts +0 -1958
  189. package/dist/contracts/UserWallet_v2.d.ts.map +0 -1
  190. package/dist/contracts/UserWallet_v2.js +0 -2553
  191. package/dist/contracts/WalletConfig.d.ts +0 -1398
  192. package/dist/contracts/WalletConfig.d.ts.map +0 -1
  193. package/dist/contracts/WalletConfig.js +0 -1674
  194. package/dist/contracts/WalletFunds.d.ts +0 -1978
  195. package/dist/contracts/WalletFunds.d.ts.map +0 -1
  196. package/dist/contracts/WalletFunds.js +0 -2579
  197. package/dist/contracts/v0_1_AddyRegistry.d.ts +0 -473
  198. package/dist/contracts/v0_1_AddyRegistry.d.ts.map +0 -1
  199. package/dist/contracts/v0_1_AddyRegistry.js +0 -594
  200. package/dist/contracts/v0_1_Agent.d.ts.map +0 -1
  201. package/dist/contracts/v0_1_Agent.js +0 -3372
  202. package/dist/contracts/v0_1_AgentFactory.d.ts +0 -1054
  203. package/dist/contracts/v0_1_AgentFactory.d.ts.map +0 -1
  204. package/dist/contracts/v0_1_AgentFactory.js +0 -1336
  205. package/dist/contracts/v0_1_UserWallet.d.ts +0 -1980
  206. package/dist/contracts/v0_1_UserWallet.d.ts.map +0 -1
  207. package/dist/contracts/v0_1_UserWallet.js +0 -2581
  208. package/dist/contracts/v0_1_UserWalletConfig.d.ts +0 -1400
  209. package/dist/contracts/v0_1_UserWalletConfig.d.ts.map +0 -1
  210. package/dist/contracts/v0_1_UserWalletConfig.js +0 -1676
  211. package/dist/contracts/v0_2_AddyRegistry.d.ts +0 -1050
  212. package/dist/contracts/v0_2_AddyRegistry.d.ts.map +0 -1
  213. package/dist/contracts/v0_2_AddyRegistry.js +0 -1313
  214. package/dist/contracts/v0_2_Agent.d.ts +0 -2709
  215. package/dist/contracts/v0_2_Agent.d.ts.map +0 -1
  216. package/dist/contracts/v0_2_Agent.js +0 -3458
  217. package/dist/contracts/v0_2_AgentFactory.d.ts +0 -1275
  218. package/dist/contracts/v0_2_AgentFactory.d.ts.map +0 -1
  219. package/dist/contracts/v0_2_AgentFactory.js +0 -1609
  220. package/dist/contracts/v0_2_UserWallet.d.ts +0 -1958
  221. package/dist/contracts/v0_2_UserWallet.d.ts.map +0 -1
  222. package/dist/contracts/v0_2_UserWallet.js +0 -2553
  223. package/dist/contracts/v0_2_UserWalletConfig.d.ts +0 -1468
  224. package/dist/contracts/v0_2_UserWalletConfig.d.ts.map +0 -1
  225. package/dist/contracts/v0_2_UserWalletConfig.js +0 -1764
  226. package/dist/contracts/v0_3_AddyRegistry.d.ts +0 -1109
  227. package/dist/contracts/v0_3_AddyRegistry.d.ts.map +0 -1
  228. package/dist/contracts/v0_3_AddyRegistry.js +0 -1392
  229. package/dist/contracts/v0_3_Agent.d.ts +0 -2709
  230. package/dist/contracts/v0_3_Agent.d.ts.map +0 -1
  231. package/dist/contracts/v0_3_Agent.js +0 -3458
  232. package/dist/contracts/v0_3_AgentFactory.d.ts +0 -1665
  233. package/dist/contracts/v0_3_AgentFactory.d.ts.map +0 -1
  234. package/dist/contracts/v0_3_AgentFactory.js +0 -2078
  235. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts +0 -706
  236. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts.map +0 -1
  237. package/dist/contracts/v0_3_ChainlinkFeeds.js +0 -900
  238. package/dist/contracts/v0_3_LegoAaveV3.d.ts +0 -1033
  239. package/dist/contracts/v0_3_LegoAaveV3.d.ts.map +0 -1
  240. package/dist/contracts/v0_3_LegoAaveV3.js +0 -1330
  241. package/dist/contracts/v0_3_LegoAeroClassic.d.ts +0 -1204
  242. package/dist/contracts/v0_3_LegoAeroClassic.d.ts.map +0 -1
  243. package/dist/contracts/v0_3_LegoAeroClassic.js +0 -1546
  244. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts +0 -1300
  245. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts.map +0 -1
  246. package/dist/contracts/v0_3_LegoAeroSlipstream.js +0 -1671
  247. package/dist/contracts/v0_3_LegoCommon.d.ts +0 -164
  248. package/dist/contracts/v0_3_LegoCommon.d.ts.map +0 -1
  249. package/dist/contracts/v0_3_LegoCommon.js +0 -202
  250. package/dist/contracts/v0_3_LegoCompoundV3.d.ts +0 -1060
  251. package/dist/contracts/v0_3_LegoCompoundV3.d.ts.map +0 -1
  252. package/dist/contracts/v0_3_LegoCompoundV3.js +0 -1365
  253. package/dist/contracts/v0_3_LegoCredit.d.ts +0 -140
  254. package/dist/contracts/v0_3_LegoCredit.d.ts.map +0 -1
  255. package/dist/contracts/v0_3_LegoCredit.js +0 -179
  256. package/dist/contracts/v0_3_LegoCurve.d.ts +0 -1189
  257. package/dist/contracts/v0_3_LegoCurve.d.ts.map +0 -1
  258. package/dist/contracts/v0_3_LegoCurve.js +0 -1519
  259. package/dist/contracts/v0_3_LegoDex.d.ts +0 -587
  260. package/dist/contracts/v0_3_LegoDex.d.ts.map +0 -1
  261. package/dist/contracts/v0_3_LegoDex.js +0 -774
  262. package/dist/contracts/v0_3_LegoEuler.d.ts +0 -1074
  263. package/dist/contracts/v0_3_LegoEuler.d.ts.map +0 -1
  264. package/dist/contracts/v0_3_LegoEuler.js +0 -1383
  265. package/dist/contracts/v0_3_LegoFluid.d.ts +0 -1025
  266. package/dist/contracts/v0_3_LegoFluid.d.ts.map +0 -1
  267. package/dist/contracts/v0_3_LegoFluid.js +0 -1320
  268. package/dist/contracts/v0_3_LegoHelper.d.ts +0 -1563
  269. package/dist/contracts/v0_3_LegoHelper.d.ts.map +0 -1
  270. package/dist/contracts/v0_3_LegoHelper.js +0 -1947
  271. package/dist/contracts/v0_3_LegoMoonwell.d.ts +0 -1042
  272. package/dist/contracts/v0_3_LegoMoonwell.d.ts.map +0 -1
  273. package/dist/contracts/v0_3_LegoMoonwell.js +0 -1342
  274. package/dist/contracts/v0_3_LegoMorpho.d.ts +0 -1074
  275. package/dist/contracts/v0_3_LegoMorpho.d.ts.map +0 -1
  276. package/dist/contracts/v0_3_LegoMorpho.js +0 -1383
  277. package/dist/contracts/v0_3_LegoRegistry.d.ts +0 -1079
  278. package/dist/contracts/v0_3_LegoRegistry.d.ts.map +0 -1
  279. package/dist/contracts/v0_3_LegoRegistry.js +0 -1368
  280. package/dist/contracts/v0_3_LegoSky.d.ts +0 -923
  281. package/dist/contracts/v0_3_LegoSky.d.ts.map +0 -1
  282. package/dist/contracts/v0_3_LegoSky.js +0 -1180
  283. package/dist/contracts/v0_3_LegoUniswapV3.d.ts +0 -1338
  284. package/dist/contracts/v0_3_LegoUniswapV3.d.ts.map +0 -1
  285. package/dist/contracts/v0_3_LegoYield.d.ts +0 -390
  286. package/dist/contracts/v0_3_LegoYield.d.ts.map +0 -1
  287. package/dist/contracts/v0_3_LegoYield.js +0 -511
  288. package/dist/contracts/v0_3_OracleParser.d.ts +0 -207
  289. package/dist/contracts/v0_3_OracleParser.d.ts.map +0 -1
  290. package/dist/contracts/v0_3_OracleParser.js +0 -264
  291. package/dist/contracts/v0_3_OracleRegistry.d.ts +0 -1221
  292. package/dist/contracts/v0_3_OracleRegistry.d.ts.map +0 -1
  293. package/dist/contracts/v0_3_PriceSheets.d.ts +0 -1127
  294. package/dist/contracts/v0_3_PriceSheets.d.ts.map +0 -1
  295. package/dist/contracts/v0_3_PriceSheets.js +0 -1383
  296. package/dist/contracts/v0_3_PythFeeds.d.ts +0 -640
  297. package/dist/contracts/v0_3_PythFeeds.d.ts.map +0 -1
  298. package/dist/contracts/v0_3_PythFeeds.js +0 -813
  299. package/dist/contracts/v0_3_StorkFeeds.d.ts +0 -640
  300. package/dist/contracts/v0_3_StorkFeeds.d.ts.map +0 -1
  301. package/dist/contracts/v0_3_StorkFeeds.js +0 -813
  302. package/dist/contracts/v0_3_UserWallet.d.ts +0 -1975
  303. package/dist/contracts/v0_3_UserWallet.d.ts.map +0 -1
  304. package/dist/contracts/v0_3_UserWallet.js +0 -2577
  305. package/dist/contracts/v0_3_UserWalletConfig.d.ts +0 -1852
  306. package/dist/contracts/v0_3_UserWalletConfig.d.ts.map +0 -1
  307. package/dist/contracts/v0_3_UserWalletConfig.js +0 -2263
  308. package/dist/getLegacyContracts.d.ts +0 -69
  309. package/dist/getLegacyContracts.d.ts.map +0 -1
  310. package/dist/getLegacyContracts.js +0 -55
@@ -0,0 +1,2848 @@
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: 'CanDepositSet',
9
+ inputs: [
10
+ {
11
+ name: 'vaultAddr',
12
+ type: 'address',
13
+ indexed: true,
14
+ },
15
+ {
16
+ name: 'canDeposit',
17
+ type: 'bool',
18
+ indexed: false,
19
+ },
20
+ ],
21
+ anonymous: false,
22
+ type: 'event',
23
+ },
24
+ {
25
+ name: 'CanWithdrawSet',
26
+ inputs: [
27
+ {
28
+ name: 'vaultAddr',
29
+ type: 'address',
30
+ indexed: true,
31
+ },
32
+ {
33
+ name: 'canWithdraw',
34
+ type: 'bool',
35
+ indexed: false,
36
+ },
37
+ ],
38
+ anonymous: false,
39
+ type: 'event',
40
+ },
41
+ {
42
+ name: 'MaxDepositAmountSet',
43
+ inputs: [
44
+ {
45
+ name: 'vaultAddr',
46
+ type: 'address',
47
+ indexed: true,
48
+ },
49
+ {
50
+ name: 'maxDepositAmount',
51
+ type: 'uint256',
52
+ indexed: false,
53
+ },
54
+ ],
55
+ anonymous: false,
56
+ type: 'event',
57
+ },
58
+ {
59
+ name: 'VaultOpsFrozenSet',
60
+ inputs: [
61
+ {
62
+ name: 'vaultAddr',
63
+ type: 'address',
64
+ indexed: true,
65
+ },
66
+ {
67
+ name: 'isFrozen',
68
+ type: 'bool',
69
+ indexed: false,
70
+ },
71
+ ],
72
+ anonymous: false,
73
+ type: 'event',
74
+ },
75
+ {
76
+ name: 'RedemptionBufferSet',
77
+ inputs: [
78
+ {
79
+ name: 'vaultAddr',
80
+ type: 'address',
81
+ indexed: true,
82
+ },
83
+ {
84
+ name: 'buffer',
85
+ type: 'uint256',
86
+ indexed: false,
87
+ },
88
+ ],
89
+ anonymous: false,
90
+ type: 'event',
91
+ },
92
+ {
93
+ name: 'MinYieldWithdrawAmountSet',
94
+ inputs: [
95
+ {
96
+ name: 'vaultAddr',
97
+ type: 'address',
98
+ indexed: true,
99
+ },
100
+ {
101
+ name: 'amount',
102
+ type: 'uint256',
103
+ indexed: false,
104
+ },
105
+ ],
106
+ anonymous: false,
107
+ type: 'event',
108
+ },
109
+ {
110
+ name: 'PerformanceFeeSet',
111
+ inputs: [
112
+ {
113
+ name: 'vaultAddr',
114
+ type: 'address',
115
+ indexed: true,
116
+ },
117
+ {
118
+ name: 'performanceFee',
119
+ type: 'uint256',
120
+ indexed: false,
121
+ },
122
+ ],
123
+ anonymous: false,
124
+ type: 'event',
125
+ },
126
+ {
127
+ name: 'DefaultTargetVaultTokenSet',
128
+ inputs: [
129
+ {
130
+ name: 'vaultAddr',
131
+ type: 'address',
132
+ indexed: true,
133
+ },
134
+ {
135
+ name: 'targetVaultToken',
136
+ type: 'address',
137
+ indexed: true,
138
+ },
139
+ ],
140
+ anonymous: false,
141
+ type: 'event',
142
+ },
143
+ {
144
+ name: 'ShouldAutoDepositSet',
145
+ inputs: [
146
+ {
147
+ name: 'vaultAddr',
148
+ type: 'address',
149
+ indexed: true,
150
+ },
151
+ {
152
+ name: 'shouldAutoDeposit',
153
+ type: 'bool',
154
+ indexed: false,
155
+ },
156
+ ],
157
+ anonymous: false,
158
+ type: 'event',
159
+ },
160
+ {
161
+ name: 'ApprovedVaultTokenSet',
162
+ inputs: [
163
+ {
164
+ name: 'vaultAddr',
165
+ type: 'address',
166
+ indexed: true,
167
+ },
168
+ {
169
+ name: 'vaultToken',
170
+ type: 'address',
171
+ indexed: true,
172
+ },
173
+ {
174
+ name: 'isApproved',
175
+ type: 'bool',
176
+ indexed: false,
177
+ },
178
+ ],
179
+ anonymous: false,
180
+ type: 'event',
181
+ },
182
+ {
183
+ name: 'GovChangeTimeLockModified',
184
+ inputs: [
185
+ {
186
+ name: 'prevTimeLock',
187
+ type: 'uint256',
188
+ indexed: false,
189
+ },
190
+ {
191
+ name: 'newTimeLock',
192
+ type: 'uint256',
193
+ indexed: false,
194
+ },
195
+ ],
196
+ anonymous: false,
197
+ type: 'event',
198
+ },
199
+ {
200
+ name: 'RegistryTimeLockModified',
201
+ inputs: [
202
+ {
203
+ name: 'newTimeLock',
204
+ type: 'uint256',
205
+ indexed: false,
206
+ },
207
+ {
208
+ name: 'prevTimeLock',
209
+ type: 'uint256',
210
+ indexed: false,
211
+ },
212
+ {
213
+ name: 'registry',
214
+ type: 'string',
215
+ indexed: false,
216
+ },
217
+ ],
218
+ anonymous: false,
219
+ type: 'event',
220
+ },
221
+ {
222
+ name: 'GovChangeStarted',
223
+ inputs: [
224
+ {
225
+ name: 'prevGov',
226
+ type: 'address',
227
+ indexed: true,
228
+ },
229
+ {
230
+ name: 'newGov',
231
+ type: 'address',
232
+ indexed: true,
233
+ },
234
+ {
235
+ name: 'confirmBlock',
236
+ type: 'uint256',
237
+ indexed: false,
238
+ },
239
+ ],
240
+ anonymous: false,
241
+ type: 'event',
242
+ },
243
+ {
244
+ name: 'GovChangeConfirmed',
245
+ inputs: [
246
+ {
247
+ name: 'prevGov',
248
+ type: 'address',
249
+ indexed: true,
250
+ },
251
+ {
252
+ name: 'newGov',
253
+ type: 'address',
254
+ indexed: true,
255
+ },
256
+ {
257
+ name: 'initiatedBlock',
258
+ type: 'uint256',
259
+ indexed: false,
260
+ },
261
+ {
262
+ name: 'confirmBlock',
263
+ type: 'uint256',
264
+ indexed: false,
265
+ },
266
+ ],
267
+ anonymous: false,
268
+ type: 'event',
269
+ },
270
+ {
271
+ name: 'GovChangeCancelled',
272
+ inputs: [
273
+ {
274
+ name: 'cancelledGov',
275
+ type: 'address',
276
+ indexed: true,
277
+ },
278
+ {
279
+ name: 'initiatedBlock',
280
+ type: 'uint256',
281
+ indexed: false,
282
+ },
283
+ {
284
+ name: 'confirmBlock',
285
+ type: 'uint256',
286
+ indexed: false,
287
+ },
288
+ ],
289
+ anonymous: false,
290
+ type: 'event',
291
+ },
292
+ {
293
+ name: 'GovRelinquished',
294
+ inputs: [
295
+ {
296
+ name: 'prevGov',
297
+ type: 'address',
298
+ indexed: true,
299
+ },
300
+ ],
301
+ anonymous: false,
302
+ type: 'event',
303
+ },
304
+ {
305
+ name: 'UndyHqSetupFinished',
306
+ inputs: [
307
+ {
308
+ name: 'prevGov',
309
+ type: 'address',
310
+ indexed: true,
311
+ },
312
+ {
313
+ name: 'newGov',
314
+ type: 'address',
315
+ indexed: true,
316
+ },
317
+ {
318
+ name: 'timeLock',
319
+ type: 'uint256',
320
+ indexed: false,
321
+ },
322
+ ],
323
+ anonymous: false,
324
+ type: 'event',
325
+ },
326
+ {
327
+ name: 'DepartmentPauseModified',
328
+ inputs: [
329
+ {
330
+ name: 'isPaused',
331
+ type: 'bool',
332
+ indexed: false,
333
+ },
334
+ ],
335
+ anonymous: false,
336
+ type: 'event',
337
+ },
338
+ {
339
+ name: 'DepartmentFundsRecovered',
340
+ inputs: [
341
+ {
342
+ name: 'asset',
343
+ type: 'address',
344
+ indexed: true,
345
+ },
346
+ {
347
+ name: 'recipient',
348
+ type: 'address',
349
+ indexed: true,
350
+ },
351
+ {
352
+ name: 'balance',
353
+ type: 'uint256',
354
+ indexed: false,
355
+ },
356
+ ],
357
+ anonymous: false,
358
+ type: 'event',
359
+ },
360
+ {
361
+ name: 'NewAddressPending',
362
+ inputs: [
363
+ {
364
+ name: 'addr',
365
+ type: 'address',
366
+ indexed: true,
367
+ },
368
+ {
369
+ name: 'description',
370
+ type: 'string',
371
+ indexed: false,
372
+ },
373
+ {
374
+ name: 'confirmBlock',
375
+ type: 'uint256',
376
+ indexed: false,
377
+ },
378
+ {
379
+ name: 'registry',
380
+ type: 'string',
381
+ indexed: false,
382
+ },
383
+ ],
384
+ anonymous: false,
385
+ type: 'event',
386
+ },
387
+ {
388
+ name: 'NewAddressConfirmed',
389
+ inputs: [
390
+ {
391
+ name: 'addr',
392
+ type: 'address',
393
+ indexed: true,
394
+ },
395
+ {
396
+ name: 'regId',
397
+ type: 'uint256',
398
+ indexed: false,
399
+ },
400
+ {
401
+ name: 'description',
402
+ type: 'string',
403
+ indexed: false,
404
+ },
405
+ {
406
+ name: 'registry',
407
+ type: 'string',
408
+ indexed: false,
409
+ },
410
+ ],
411
+ anonymous: false,
412
+ type: 'event',
413
+ },
414
+ {
415
+ name: 'NewAddressCancelled',
416
+ inputs: [
417
+ {
418
+ name: 'description',
419
+ type: 'string',
420
+ indexed: false,
421
+ },
422
+ {
423
+ name: 'addr',
424
+ type: 'address',
425
+ indexed: true,
426
+ },
427
+ {
428
+ name: 'initiatedBlock',
429
+ type: 'uint256',
430
+ indexed: false,
431
+ },
432
+ {
433
+ name: 'confirmBlock',
434
+ type: 'uint256',
435
+ indexed: false,
436
+ },
437
+ {
438
+ name: 'registry',
439
+ type: 'string',
440
+ indexed: false,
441
+ },
442
+ ],
443
+ anonymous: false,
444
+ type: 'event',
445
+ },
446
+ {
447
+ stateMutability: 'view',
448
+ type: 'function',
449
+ name: 'getUndyHqFromGov',
450
+ inputs: [],
451
+ outputs: [
452
+ {
453
+ name: '',
454
+ type: 'address',
455
+ },
456
+ ],
457
+ },
458
+ {
459
+ stateMutability: 'view',
460
+ type: 'function',
461
+ name: 'canGovern',
462
+ inputs: [
463
+ {
464
+ name: '_addr',
465
+ type: 'address',
466
+ },
467
+ ],
468
+ outputs: [
469
+ {
470
+ name: '',
471
+ type: 'bool',
472
+ },
473
+ ],
474
+ },
475
+ {
476
+ stateMutability: 'view',
477
+ type: 'function',
478
+ name: 'getGovernors',
479
+ inputs: [],
480
+ outputs: [
481
+ {
482
+ name: '',
483
+ type: 'address[]',
484
+ },
485
+ ],
486
+ },
487
+ {
488
+ stateMutability: 'view',
489
+ type: 'function',
490
+ name: 'hasPendingGovChange',
491
+ inputs: [],
492
+ outputs: [
493
+ {
494
+ name: '',
495
+ type: 'bool',
496
+ },
497
+ ],
498
+ },
499
+ {
500
+ stateMutability: 'nonpayable',
501
+ type: 'function',
502
+ name: 'startGovernanceChange',
503
+ inputs: [
504
+ {
505
+ name: '_newGov',
506
+ type: 'address',
507
+ },
508
+ ],
509
+ outputs: [],
510
+ },
511
+ {
512
+ stateMutability: 'nonpayable',
513
+ type: 'function',
514
+ name: 'confirmGovernanceChange',
515
+ inputs: [],
516
+ outputs: [],
517
+ },
518
+ {
519
+ stateMutability: 'nonpayable',
520
+ type: 'function',
521
+ name: 'cancelGovernanceChange',
522
+ inputs: [],
523
+ outputs: [],
524
+ },
525
+ {
526
+ stateMutability: 'nonpayable',
527
+ type: 'function',
528
+ name: 'relinquishGov',
529
+ inputs: [],
530
+ outputs: [],
531
+ },
532
+ {
533
+ stateMutability: 'nonpayable',
534
+ type: 'function',
535
+ name: 'setGovTimeLock',
536
+ inputs: [
537
+ {
538
+ name: '_numBlocks',
539
+ type: 'uint256',
540
+ },
541
+ ],
542
+ outputs: [
543
+ {
544
+ name: '',
545
+ type: 'bool',
546
+ },
547
+ ],
548
+ },
549
+ {
550
+ stateMutability: 'view',
551
+ type: 'function',
552
+ name: 'isValidGovTimeLock',
553
+ inputs: [
554
+ {
555
+ name: '_newTimeLock',
556
+ type: 'uint256',
557
+ },
558
+ ],
559
+ outputs: [
560
+ {
561
+ name: '',
562
+ type: 'bool',
563
+ },
564
+ ],
565
+ },
566
+ {
567
+ stateMutability: 'view',
568
+ type: 'function',
569
+ name: 'minGovChangeTimeLock',
570
+ inputs: [],
571
+ outputs: [
572
+ {
573
+ name: '',
574
+ type: 'uint256',
575
+ },
576
+ ],
577
+ },
578
+ {
579
+ stateMutability: 'view',
580
+ type: 'function',
581
+ name: 'maxGovChangeTimeLock',
582
+ inputs: [],
583
+ outputs: [
584
+ {
585
+ name: '',
586
+ type: 'uint256',
587
+ },
588
+ ],
589
+ },
590
+ {
591
+ stateMutability: 'nonpayable',
592
+ type: 'function',
593
+ name: 'finishUndyHqSetup',
594
+ inputs: [
595
+ {
596
+ name: '_newGov',
597
+ type: 'address',
598
+ },
599
+ ],
600
+ outputs: [
601
+ {
602
+ name: '',
603
+ type: 'bool',
604
+ },
605
+ ],
606
+ },
607
+ {
608
+ stateMutability: 'nonpayable',
609
+ type: 'function',
610
+ name: 'finishUndyHqSetup',
611
+ inputs: [
612
+ {
613
+ name: '_newGov',
614
+ type: 'address',
615
+ },
616
+ {
617
+ name: '_timeLock',
618
+ type: 'uint256',
619
+ },
620
+ ],
621
+ outputs: [
622
+ {
623
+ name: '',
624
+ type: 'bool',
625
+ },
626
+ ],
627
+ },
628
+ {
629
+ stateMutability: 'view',
630
+ type: 'function',
631
+ name: 'governance',
632
+ inputs: [],
633
+ outputs: [
634
+ {
635
+ name: '',
636
+ type: 'address',
637
+ },
638
+ ],
639
+ },
640
+ {
641
+ stateMutability: 'view',
642
+ type: 'function',
643
+ name: 'pendingGov',
644
+ inputs: [],
645
+ outputs: [
646
+ {
647
+ name: '',
648
+ type: 'tuple',
649
+ components: [
650
+ {
651
+ name: 'newGov',
652
+ type: 'address',
653
+ },
654
+ {
655
+ name: 'initiatedBlock',
656
+ type: 'uint256',
657
+ },
658
+ {
659
+ name: 'confirmBlock',
660
+ type: 'uint256',
661
+ },
662
+ ],
663
+ },
664
+ ],
665
+ },
666
+ {
667
+ stateMutability: 'view',
668
+ type: 'function',
669
+ name: 'numGovChanges',
670
+ inputs: [],
671
+ outputs: [
672
+ {
673
+ name: '',
674
+ type: 'uint256',
675
+ },
676
+ ],
677
+ },
678
+ {
679
+ stateMutability: 'view',
680
+ type: 'function',
681
+ name: 'govChangeTimeLock',
682
+ inputs: [],
683
+ outputs: [
684
+ {
685
+ name: '',
686
+ type: 'uint256',
687
+ },
688
+ ],
689
+ },
690
+ {
691
+ stateMutability: 'view',
692
+ type: 'function',
693
+ name: 'getRegistryDescription',
694
+ inputs: [],
695
+ outputs: [
696
+ {
697
+ name: '',
698
+ type: 'string',
699
+ },
700
+ ],
701
+ },
702
+ {
703
+ stateMutability: 'view',
704
+ type: 'function',
705
+ name: 'isValidNewAddress',
706
+ inputs: [
707
+ {
708
+ name: '_addr',
709
+ type: 'address',
710
+ },
711
+ ],
712
+ outputs: [
713
+ {
714
+ name: '',
715
+ type: 'bool',
716
+ },
717
+ ],
718
+ },
719
+ {
720
+ stateMutability: 'view',
721
+ type: 'function',
722
+ name: 'isValidAddressUpdate',
723
+ inputs: [
724
+ {
725
+ name: '_regId',
726
+ type: 'uint256',
727
+ },
728
+ {
729
+ name: '_newAddr',
730
+ type: 'address',
731
+ },
732
+ ],
733
+ outputs: [
734
+ {
735
+ name: '',
736
+ type: 'bool',
737
+ },
738
+ ],
739
+ },
740
+ {
741
+ stateMutability: 'view',
742
+ type: 'function',
743
+ name: 'isValidAddressDisable',
744
+ inputs: [
745
+ {
746
+ name: '_regId',
747
+ type: 'uint256',
748
+ },
749
+ ],
750
+ outputs: [
751
+ {
752
+ name: '',
753
+ type: 'bool',
754
+ },
755
+ ],
756
+ },
757
+ {
758
+ stateMutability: 'nonpayable',
759
+ type: 'function',
760
+ name: 'setRegistryTimeLock',
761
+ inputs: [
762
+ {
763
+ name: '_numBlocks',
764
+ type: 'uint256',
765
+ },
766
+ ],
767
+ outputs: [
768
+ {
769
+ name: '',
770
+ type: 'bool',
771
+ },
772
+ ],
773
+ },
774
+ {
775
+ stateMutability: 'view',
776
+ type: 'function',
777
+ name: 'isValidRegistryTimeLock',
778
+ inputs: [
779
+ {
780
+ name: '_numBlocks',
781
+ type: 'uint256',
782
+ },
783
+ ],
784
+ outputs: [
785
+ {
786
+ name: '',
787
+ type: 'bool',
788
+ },
789
+ ],
790
+ },
791
+ {
792
+ stateMutability: 'nonpayable',
793
+ type: 'function',
794
+ name: 'setRegistryTimeLockAfterSetup',
795
+ inputs: [],
796
+ outputs: [
797
+ {
798
+ name: '',
799
+ type: 'bool',
800
+ },
801
+ ],
802
+ },
803
+ {
804
+ stateMutability: 'nonpayable',
805
+ type: 'function',
806
+ name: 'setRegistryTimeLockAfterSetup',
807
+ inputs: [
808
+ {
809
+ name: '_numBlocks',
810
+ type: 'uint256',
811
+ },
812
+ ],
813
+ outputs: [
814
+ {
815
+ name: '',
816
+ type: 'bool',
817
+ },
818
+ ],
819
+ },
820
+ {
821
+ stateMutability: 'view',
822
+ type: 'function',
823
+ name: 'minRegistryTimeLock',
824
+ inputs: [],
825
+ outputs: [
826
+ {
827
+ name: '',
828
+ type: 'uint256',
829
+ },
830
+ ],
831
+ },
832
+ {
833
+ stateMutability: 'view',
834
+ type: 'function',
835
+ name: 'maxRegistryTimeLock',
836
+ inputs: [],
837
+ outputs: [
838
+ {
839
+ name: '',
840
+ type: 'uint256',
841
+ },
842
+ ],
843
+ },
844
+ {
845
+ stateMutability: 'view',
846
+ type: 'function',
847
+ name: 'isValidAddr',
848
+ inputs: [
849
+ {
850
+ name: '_addr',
851
+ type: 'address',
852
+ },
853
+ ],
854
+ outputs: [
855
+ {
856
+ name: '',
857
+ type: 'bool',
858
+ },
859
+ ],
860
+ },
861
+ {
862
+ stateMutability: 'view',
863
+ type: 'function',
864
+ name: 'isValidRegId',
865
+ inputs: [
866
+ {
867
+ name: '_regId',
868
+ type: 'uint256',
869
+ },
870
+ ],
871
+ outputs: [
872
+ {
873
+ name: '',
874
+ type: 'bool',
875
+ },
876
+ ],
877
+ },
878
+ {
879
+ stateMutability: 'view',
880
+ type: 'function',
881
+ name: 'getRegId',
882
+ inputs: [
883
+ {
884
+ name: '_addr',
885
+ type: 'address',
886
+ },
887
+ ],
888
+ outputs: [
889
+ {
890
+ name: '',
891
+ type: 'uint256',
892
+ },
893
+ ],
894
+ },
895
+ {
896
+ stateMutability: 'view',
897
+ type: 'function',
898
+ name: 'getAddr',
899
+ inputs: [
900
+ {
901
+ name: '_regId',
902
+ type: 'uint256',
903
+ },
904
+ ],
905
+ outputs: [
906
+ {
907
+ name: '',
908
+ type: 'address',
909
+ },
910
+ ],
911
+ },
912
+ {
913
+ stateMutability: 'view',
914
+ type: 'function',
915
+ name: 'getAddrInfo',
916
+ inputs: [
917
+ {
918
+ name: '_regId',
919
+ type: 'uint256',
920
+ },
921
+ ],
922
+ outputs: [
923
+ {
924
+ name: '',
925
+ type: 'tuple',
926
+ components: [
927
+ {
928
+ name: 'addr',
929
+ type: 'address',
930
+ },
931
+ {
932
+ name: 'version',
933
+ type: 'uint256',
934
+ },
935
+ {
936
+ name: 'lastModified',
937
+ type: 'uint256',
938
+ },
939
+ {
940
+ name: 'description',
941
+ type: 'string',
942
+ },
943
+ ],
944
+ },
945
+ ],
946
+ },
947
+ {
948
+ stateMutability: 'view',
949
+ type: 'function',
950
+ name: 'getAddrDescription',
951
+ inputs: [
952
+ {
953
+ name: '_regId',
954
+ type: 'uint256',
955
+ },
956
+ ],
957
+ outputs: [
958
+ {
959
+ name: '',
960
+ type: 'string',
961
+ },
962
+ ],
963
+ },
964
+ {
965
+ stateMutability: 'view',
966
+ type: 'function',
967
+ name: 'getNumAddrs',
968
+ inputs: [],
969
+ outputs: [
970
+ {
971
+ name: '',
972
+ type: 'uint256',
973
+ },
974
+ ],
975
+ },
976
+ {
977
+ stateMutability: 'view',
978
+ type: 'function',
979
+ name: 'getLastAddr',
980
+ inputs: [],
981
+ outputs: [
982
+ {
983
+ name: '',
984
+ type: 'address',
985
+ },
986
+ ],
987
+ },
988
+ {
989
+ stateMutability: 'view',
990
+ type: 'function',
991
+ name: 'getLastRegId',
992
+ inputs: [],
993
+ outputs: [
994
+ {
995
+ name: '',
996
+ type: 'uint256',
997
+ },
998
+ ],
999
+ },
1000
+ {
1001
+ stateMutability: 'view',
1002
+ type: 'function',
1003
+ name: 'registryChangeTimeLock',
1004
+ inputs: [],
1005
+ outputs: [
1006
+ {
1007
+ name: '',
1008
+ type: 'uint256',
1009
+ },
1010
+ ],
1011
+ },
1012
+ {
1013
+ stateMutability: 'view',
1014
+ type: 'function',
1015
+ name: 'addrInfo',
1016
+ inputs: [
1017
+ {
1018
+ name: 'arg0',
1019
+ type: 'uint256',
1020
+ },
1021
+ ],
1022
+ outputs: [
1023
+ {
1024
+ name: '',
1025
+ type: 'tuple',
1026
+ components: [
1027
+ {
1028
+ name: 'addr',
1029
+ type: 'address',
1030
+ },
1031
+ {
1032
+ name: 'version',
1033
+ type: 'uint256',
1034
+ },
1035
+ {
1036
+ name: 'lastModified',
1037
+ type: 'uint256',
1038
+ },
1039
+ {
1040
+ name: 'description',
1041
+ type: 'string',
1042
+ },
1043
+ ],
1044
+ },
1045
+ ],
1046
+ },
1047
+ {
1048
+ stateMutability: 'view',
1049
+ type: 'function',
1050
+ name: 'addrToRegId',
1051
+ inputs: [
1052
+ {
1053
+ name: 'arg0',
1054
+ type: 'address',
1055
+ },
1056
+ ],
1057
+ outputs: [
1058
+ {
1059
+ name: '',
1060
+ type: 'uint256',
1061
+ },
1062
+ ],
1063
+ },
1064
+ {
1065
+ stateMutability: 'view',
1066
+ type: 'function',
1067
+ name: 'numAddrs',
1068
+ inputs: [],
1069
+ outputs: [
1070
+ {
1071
+ name: '',
1072
+ type: 'uint256',
1073
+ },
1074
+ ],
1075
+ },
1076
+ {
1077
+ stateMutability: 'view',
1078
+ type: 'function',
1079
+ name: 'pendingNewAddr',
1080
+ inputs: [
1081
+ {
1082
+ name: 'arg0',
1083
+ type: 'address',
1084
+ },
1085
+ ],
1086
+ outputs: [
1087
+ {
1088
+ name: '',
1089
+ type: 'tuple',
1090
+ components: [
1091
+ {
1092
+ name: 'description',
1093
+ type: 'string',
1094
+ },
1095
+ {
1096
+ name: 'initiatedBlock',
1097
+ type: 'uint256',
1098
+ },
1099
+ {
1100
+ name: 'confirmBlock',
1101
+ type: 'uint256',
1102
+ },
1103
+ ],
1104
+ },
1105
+ ],
1106
+ },
1107
+ {
1108
+ stateMutability: 'view',
1109
+ type: 'function',
1110
+ name: 'pendingAddrUpdate',
1111
+ inputs: [
1112
+ {
1113
+ name: 'arg0',
1114
+ type: 'uint256',
1115
+ },
1116
+ ],
1117
+ outputs: [
1118
+ {
1119
+ name: '',
1120
+ type: 'tuple',
1121
+ components: [
1122
+ {
1123
+ name: 'newAddr',
1124
+ type: 'address',
1125
+ },
1126
+ {
1127
+ name: 'initiatedBlock',
1128
+ type: 'uint256',
1129
+ },
1130
+ {
1131
+ name: 'confirmBlock',
1132
+ type: 'uint256',
1133
+ },
1134
+ ],
1135
+ },
1136
+ ],
1137
+ },
1138
+ {
1139
+ stateMutability: 'view',
1140
+ type: 'function',
1141
+ name: 'pendingAddrDisable',
1142
+ inputs: [
1143
+ {
1144
+ name: 'arg0',
1145
+ type: 'uint256',
1146
+ },
1147
+ ],
1148
+ outputs: [
1149
+ {
1150
+ name: '',
1151
+ type: 'tuple',
1152
+ components: [
1153
+ {
1154
+ name: 'initiatedBlock',
1155
+ type: 'uint256',
1156
+ },
1157
+ {
1158
+ name: 'confirmBlock',
1159
+ type: 'uint256',
1160
+ },
1161
+ ],
1162
+ },
1163
+ ],
1164
+ },
1165
+ {
1166
+ stateMutability: 'view',
1167
+ type: 'function',
1168
+ name: 'getAddys',
1169
+ inputs: [],
1170
+ outputs: [
1171
+ {
1172
+ name: '',
1173
+ type: 'tuple',
1174
+ components: [
1175
+ {
1176
+ name: 'hq',
1177
+ type: 'address',
1178
+ },
1179
+ {
1180
+ name: 'undyToken',
1181
+ type: 'address',
1182
+ },
1183
+ {
1184
+ name: 'ledger',
1185
+ type: 'address',
1186
+ },
1187
+ {
1188
+ name: 'missionControl',
1189
+ type: 'address',
1190
+ },
1191
+ {
1192
+ name: 'legoBook',
1193
+ type: 'address',
1194
+ },
1195
+ {
1196
+ name: 'switchboard',
1197
+ type: 'address',
1198
+ },
1199
+ {
1200
+ name: 'hatchery',
1201
+ type: 'address',
1202
+ },
1203
+ {
1204
+ name: 'lootDistributor',
1205
+ type: 'address',
1206
+ },
1207
+ {
1208
+ name: 'appraiser',
1209
+ type: 'address',
1210
+ },
1211
+ {
1212
+ name: 'walletBackpack',
1213
+ type: 'address',
1214
+ },
1215
+ {
1216
+ name: 'billing',
1217
+ type: 'address',
1218
+ },
1219
+ {
1220
+ name: 'vaultRegistry',
1221
+ type: 'address',
1222
+ },
1223
+ ],
1224
+ },
1225
+ ],
1226
+ },
1227
+ {
1228
+ stateMutability: 'view',
1229
+ type: 'function',
1230
+ name: 'getUndyHq',
1231
+ inputs: [],
1232
+ outputs: [
1233
+ {
1234
+ name: '',
1235
+ type: 'address',
1236
+ },
1237
+ ],
1238
+ },
1239
+ {
1240
+ stateMutability: 'view',
1241
+ type: 'function',
1242
+ name: 'canMintUndy',
1243
+ inputs: [],
1244
+ outputs: [
1245
+ {
1246
+ name: '',
1247
+ type: 'bool',
1248
+ },
1249
+ ],
1250
+ },
1251
+ {
1252
+ stateMutability: 'nonpayable',
1253
+ type: 'function',
1254
+ name: 'pause',
1255
+ inputs: [
1256
+ {
1257
+ name: '_shouldPause',
1258
+ type: 'bool',
1259
+ },
1260
+ ],
1261
+ outputs: [],
1262
+ },
1263
+ {
1264
+ stateMutability: 'nonpayable',
1265
+ type: 'function',
1266
+ name: 'recoverFunds',
1267
+ inputs: [
1268
+ {
1269
+ name: '_recipient',
1270
+ type: 'address',
1271
+ },
1272
+ {
1273
+ name: '_asset',
1274
+ type: 'address',
1275
+ },
1276
+ ],
1277
+ outputs: [],
1278
+ },
1279
+ {
1280
+ stateMutability: 'nonpayable',
1281
+ type: 'function',
1282
+ name: 'recoverFundsMany',
1283
+ inputs: [
1284
+ {
1285
+ name: '_recipient',
1286
+ type: 'address',
1287
+ },
1288
+ {
1289
+ name: '_assets',
1290
+ type: 'address[]',
1291
+ },
1292
+ ],
1293
+ outputs: [],
1294
+ },
1295
+ {
1296
+ stateMutability: 'view',
1297
+ type: 'function',
1298
+ name: 'isPaused',
1299
+ inputs: [],
1300
+ outputs: [
1301
+ {
1302
+ name: '',
1303
+ type: 'bool',
1304
+ },
1305
+ ],
1306
+ },
1307
+ {
1308
+ stateMutability: 'view',
1309
+ type: 'function',
1310
+ name: 'isEarnVault',
1311
+ inputs: [
1312
+ {
1313
+ name: '_vaultAddr',
1314
+ type: 'address',
1315
+ },
1316
+ ],
1317
+ outputs: [
1318
+ {
1319
+ name: '',
1320
+ type: 'bool',
1321
+ },
1322
+ ],
1323
+ },
1324
+ {
1325
+ stateMutability: 'nonpayable',
1326
+ type: 'function',
1327
+ name: 'startAddNewAddressToRegistry',
1328
+ inputs: [
1329
+ {
1330
+ name: '_vaultAddr',
1331
+ type: 'address',
1332
+ },
1333
+ {
1334
+ name: '_description',
1335
+ type: 'string',
1336
+ },
1337
+ ],
1338
+ outputs: [
1339
+ {
1340
+ name: '',
1341
+ type: 'bool',
1342
+ },
1343
+ ],
1344
+ },
1345
+ {
1346
+ stateMutability: 'nonpayable',
1347
+ type: 'function',
1348
+ name: 'confirmNewAddressToRegistry',
1349
+ inputs: [
1350
+ {
1351
+ name: '_vaultAddr',
1352
+ type: 'address',
1353
+ },
1354
+ ],
1355
+ outputs: [
1356
+ {
1357
+ name: '',
1358
+ type: 'uint256',
1359
+ },
1360
+ ],
1361
+ },
1362
+ {
1363
+ stateMutability: 'nonpayable',
1364
+ type: 'function',
1365
+ name: 'confirmNewAddressToRegistry',
1366
+ inputs: [
1367
+ {
1368
+ name: '_vaultAddr',
1369
+ type: 'address',
1370
+ },
1371
+ {
1372
+ name: '_approvedVaultTokens',
1373
+ type: 'address[]',
1374
+ },
1375
+ ],
1376
+ outputs: [
1377
+ {
1378
+ name: '',
1379
+ type: 'uint256',
1380
+ },
1381
+ ],
1382
+ },
1383
+ {
1384
+ stateMutability: 'nonpayable',
1385
+ type: 'function',
1386
+ name: 'confirmNewAddressToRegistry',
1387
+ inputs: [
1388
+ {
1389
+ name: '_vaultAddr',
1390
+ type: 'address',
1391
+ },
1392
+ {
1393
+ name: '_approvedVaultTokens',
1394
+ type: 'address[]',
1395
+ },
1396
+ {
1397
+ name: '_maxDepositAmount',
1398
+ type: 'uint256',
1399
+ },
1400
+ ],
1401
+ outputs: [
1402
+ {
1403
+ name: '',
1404
+ type: 'uint256',
1405
+ },
1406
+ ],
1407
+ },
1408
+ {
1409
+ stateMutability: 'nonpayable',
1410
+ type: 'function',
1411
+ name: 'confirmNewAddressToRegistry',
1412
+ inputs: [
1413
+ {
1414
+ name: '_vaultAddr',
1415
+ type: 'address',
1416
+ },
1417
+ {
1418
+ name: '_approvedVaultTokens',
1419
+ type: 'address[]',
1420
+ },
1421
+ {
1422
+ name: '_maxDepositAmount',
1423
+ type: 'uint256',
1424
+ },
1425
+ {
1426
+ name: '_minYieldWithdrawAmount',
1427
+ type: 'uint256',
1428
+ },
1429
+ ],
1430
+ outputs: [
1431
+ {
1432
+ name: '',
1433
+ type: 'uint256',
1434
+ },
1435
+ ],
1436
+ },
1437
+ {
1438
+ stateMutability: 'nonpayable',
1439
+ type: 'function',
1440
+ name: 'confirmNewAddressToRegistry',
1441
+ inputs: [
1442
+ {
1443
+ name: '_vaultAddr',
1444
+ type: 'address',
1445
+ },
1446
+ {
1447
+ name: '_approvedVaultTokens',
1448
+ type: 'address[]',
1449
+ },
1450
+ {
1451
+ name: '_maxDepositAmount',
1452
+ type: 'uint256',
1453
+ },
1454
+ {
1455
+ name: '_minYieldWithdrawAmount',
1456
+ type: 'uint256',
1457
+ },
1458
+ {
1459
+ name: '_performanceFee',
1460
+ type: 'uint256',
1461
+ },
1462
+ ],
1463
+ outputs: [
1464
+ {
1465
+ name: '',
1466
+ type: 'uint256',
1467
+ },
1468
+ ],
1469
+ },
1470
+ {
1471
+ stateMutability: 'nonpayable',
1472
+ type: 'function',
1473
+ name: 'confirmNewAddressToRegistry',
1474
+ inputs: [
1475
+ {
1476
+ name: '_vaultAddr',
1477
+ type: 'address',
1478
+ },
1479
+ {
1480
+ name: '_approvedVaultTokens',
1481
+ type: 'address[]',
1482
+ },
1483
+ {
1484
+ name: '_maxDepositAmount',
1485
+ type: 'uint256',
1486
+ },
1487
+ {
1488
+ name: '_minYieldWithdrawAmount',
1489
+ type: 'uint256',
1490
+ },
1491
+ {
1492
+ name: '_performanceFee',
1493
+ type: 'uint256',
1494
+ },
1495
+ {
1496
+ name: '_defaultTargetVaultToken',
1497
+ type: 'address',
1498
+ },
1499
+ ],
1500
+ outputs: [
1501
+ {
1502
+ name: '',
1503
+ type: 'uint256',
1504
+ },
1505
+ ],
1506
+ },
1507
+ {
1508
+ stateMutability: 'nonpayable',
1509
+ type: 'function',
1510
+ name: 'confirmNewAddressToRegistry',
1511
+ inputs: [
1512
+ {
1513
+ name: '_vaultAddr',
1514
+ type: 'address',
1515
+ },
1516
+ {
1517
+ name: '_approvedVaultTokens',
1518
+ type: 'address[]',
1519
+ },
1520
+ {
1521
+ name: '_maxDepositAmount',
1522
+ type: 'uint256',
1523
+ },
1524
+ {
1525
+ name: '_minYieldWithdrawAmount',
1526
+ type: 'uint256',
1527
+ },
1528
+ {
1529
+ name: '_performanceFee',
1530
+ type: 'uint256',
1531
+ },
1532
+ {
1533
+ name: '_defaultTargetVaultToken',
1534
+ type: 'address',
1535
+ },
1536
+ {
1537
+ name: '_shouldAutoDeposit',
1538
+ type: 'bool',
1539
+ },
1540
+ ],
1541
+ outputs: [
1542
+ {
1543
+ name: '',
1544
+ type: 'uint256',
1545
+ },
1546
+ ],
1547
+ },
1548
+ {
1549
+ stateMutability: 'nonpayable',
1550
+ type: 'function',
1551
+ name: 'confirmNewAddressToRegistry',
1552
+ inputs: [
1553
+ {
1554
+ name: '_vaultAddr',
1555
+ type: 'address',
1556
+ },
1557
+ {
1558
+ name: '_approvedVaultTokens',
1559
+ type: 'address[]',
1560
+ },
1561
+ {
1562
+ name: '_maxDepositAmount',
1563
+ type: 'uint256',
1564
+ },
1565
+ {
1566
+ name: '_minYieldWithdrawAmount',
1567
+ type: 'uint256',
1568
+ },
1569
+ {
1570
+ name: '_performanceFee',
1571
+ type: 'uint256',
1572
+ },
1573
+ {
1574
+ name: '_defaultTargetVaultToken',
1575
+ type: 'address',
1576
+ },
1577
+ {
1578
+ name: '_shouldAutoDeposit',
1579
+ type: 'bool',
1580
+ },
1581
+ {
1582
+ name: '_canDeposit',
1583
+ type: 'bool',
1584
+ },
1585
+ ],
1586
+ outputs: [
1587
+ {
1588
+ name: '',
1589
+ type: 'uint256',
1590
+ },
1591
+ ],
1592
+ },
1593
+ {
1594
+ stateMutability: 'nonpayable',
1595
+ type: 'function',
1596
+ name: 'confirmNewAddressToRegistry',
1597
+ inputs: [
1598
+ {
1599
+ name: '_vaultAddr',
1600
+ type: 'address',
1601
+ },
1602
+ {
1603
+ name: '_approvedVaultTokens',
1604
+ type: 'address[]',
1605
+ },
1606
+ {
1607
+ name: '_maxDepositAmount',
1608
+ type: 'uint256',
1609
+ },
1610
+ {
1611
+ name: '_minYieldWithdrawAmount',
1612
+ type: 'uint256',
1613
+ },
1614
+ {
1615
+ name: '_performanceFee',
1616
+ type: 'uint256',
1617
+ },
1618
+ {
1619
+ name: '_defaultTargetVaultToken',
1620
+ type: 'address',
1621
+ },
1622
+ {
1623
+ name: '_shouldAutoDeposit',
1624
+ type: 'bool',
1625
+ },
1626
+ {
1627
+ name: '_canDeposit',
1628
+ type: 'bool',
1629
+ },
1630
+ {
1631
+ name: '_canWithdraw',
1632
+ type: 'bool',
1633
+ },
1634
+ ],
1635
+ outputs: [
1636
+ {
1637
+ name: '',
1638
+ type: 'uint256',
1639
+ },
1640
+ ],
1641
+ },
1642
+ {
1643
+ stateMutability: 'nonpayable',
1644
+ type: 'function',
1645
+ name: 'confirmNewAddressToRegistry',
1646
+ inputs: [
1647
+ {
1648
+ name: '_vaultAddr',
1649
+ type: 'address',
1650
+ },
1651
+ {
1652
+ name: '_approvedVaultTokens',
1653
+ type: 'address[]',
1654
+ },
1655
+ {
1656
+ name: '_maxDepositAmount',
1657
+ type: 'uint256',
1658
+ },
1659
+ {
1660
+ name: '_minYieldWithdrawAmount',
1661
+ type: 'uint256',
1662
+ },
1663
+ {
1664
+ name: '_performanceFee',
1665
+ type: 'uint256',
1666
+ },
1667
+ {
1668
+ name: '_defaultTargetVaultToken',
1669
+ type: 'address',
1670
+ },
1671
+ {
1672
+ name: '_shouldAutoDeposit',
1673
+ type: 'bool',
1674
+ },
1675
+ {
1676
+ name: '_canDeposit',
1677
+ type: 'bool',
1678
+ },
1679
+ {
1680
+ name: '_canWithdraw',
1681
+ type: 'bool',
1682
+ },
1683
+ {
1684
+ name: '_isVaultOpsFrozen',
1685
+ type: 'bool',
1686
+ },
1687
+ ],
1688
+ outputs: [
1689
+ {
1690
+ name: '',
1691
+ type: 'uint256',
1692
+ },
1693
+ ],
1694
+ },
1695
+ {
1696
+ stateMutability: 'nonpayable',
1697
+ type: 'function',
1698
+ name: 'confirmNewAddressToRegistry',
1699
+ inputs: [
1700
+ {
1701
+ name: '_vaultAddr',
1702
+ type: 'address',
1703
+ },
1704
+ {
1705
+ name: '_approvedVaultTokens',
1706
+ type: 'address[]',
1707
+ },
1708
+ {
1709
+ name: '_maxDepositAmount',
1710
+ type: 'uint256',
1711
+ },
1712
+ {
1713
+ name: '_minYieldWithdrawAmount',
1714
+ type: 'uint256',
1715
+ },
1716
+ {
1717
+ name: '_performanceFee',
1718
+ type: 'uint256',
1719
+ },
1720
+ {
1721
+ name: '_defaultTargetVaultToken',
1722
+ type: 'address',
1723
+ },
1724
+ {
1725
+ name: '_shouldAutoDeposit',
1726
+ type: 'bool',
1727
+ },
1728
+ {
1729
+ name: '_canDeposit',
1730
+ type: 'bool',
1731
+ },
1732
+ {
1733
+ name: '_canWithdraw',
1734
+ type: 'bool',
1735
+ },
1736
+ {
1737
+ name: '_isVaultOpsFrozen',
1738
+ type: 'bool',
1739
+ },
1740
+ {
1741
+ name: '_redemptionBuffer',
1742
+ type: 'uint256',
1743
+ },
1744
+ ],
1745
+ outputs: [
1746
+ {
1747
+ name: '',
1748
+ type: 'uint256',
1749
+ },
1750
+ ],
1751
+ },
1752
+ {
1753
+ stateMutability: 'nonpayable',
1754
+ type: 'function',
1755
+ name: 'cancelNewAddressToRegistry',
1756
+ inputs: [
1757
+ {
1758
+ name: '_vaultAddr',
1759
+ type: 'address',
1760
+ },
1761
+ ],
1762
+ outputs: [
1763
+ {
1764
+ name: '',
1765
+ type: 'bool',
1766
+ },
1767
+ ],
1768
+ },
1769
+ {
1770
+ stateMutability: 'nonpayable',
1771
+ type: 'function',
1772
+ name: 'setCanDeposit',
1773
+ inputs: [
1774
+ {
1775
+ name: '_vaultAddr',
1776
+ type: 'address',
1777
+ },
1778
+ {
1779
+ name: '_canDeposit',
1780
+ type: 'bool',
1781
+ },
1782
+ ],
1783
+ outputs: [],
1784
+ },
1785
+ {
1786
+ stateMutability: 'nonpayable',
1787
+ type: 'function',
1788
+ name: 'setCanWithdraw',
1789
+ inputs: [
1790
+ {
1791
+ name: '_vaultAddr',
1792
+ type: 'address',
1793
+ },
1794
+ {
1795
+ name: '_canWithdraw',
1796
+ type: 'bool',
1797
+ },
1798
+ ],
1799
+ outputs: [],
1800
+ },
1801
+ {
1802
+ stateMutability: 'nonpayable',
1803
+ type: 'function',
1804
+ name: 'setMaxDepositAmount',
1805
+ inputs: [
1806
+ {
1807
+ name: '_vaultAddr',
1808
+ type: 'address',
1809
+ },
1810
+ {
1811
+ name: '_maxDepositAmount',
1812
+ type: 'uint256',
1813
+ },
1814
+ ],
1815
+ outputs: [],
1816
+ },
1817
+ {
1818
+ stateMutability: 'nonpayable',
1819
+ type: 'function',
1820
+ name: 'setVaultOpsFrozen',
1821
+ inputs: [
1822
+ {
1823
+ name: '_vaultAddr',
1824
+ type: 'address',
1825
+ },
1826
+ {
1827
+ name: '_isFrozen',
1828
+ type: 'bool',
1829
+ },
1830
+ ],
1831
+ outputs: [],
1832
+ },
1833
+ {
1834
+ stateMutability: 'nonpayable',
1835
+ type: 'function',
1836
+ name: 'setShouldAutoDeposit',
1837
+ inputs: [
1838
+ {
1839
+ name: '_vaultAddr',
1840
+ type: 'address',
1841
+ },
1842
+ {
1843
+ name: '_shouldAutoDeposit',
1844
+ type: 'bool',
1845
+ },
1846
+ ],
1847
+ outputs: [],
1848
+ },
1849
+ {
1850
+ stateMutability: 'nonpayable',
1851
+ type: 'function',
1852
+ name: 'setMinYieldWithdrawAmount',
1853
+ inputs: [
1854
+ {
1855
+ name: '_vaultAddr',
1856
+ type: 'address',
1857
+ },
1858
+ {
1859
+ name: '_amount',
1860
+ type: 'uint256',
1861
+ },
1862
+ ],
1863
+ outputs: [],
1864
+ },
1865
+ {
1866
+ stateMutability: 'nonpayable',
1867
+ type: 'function',
1868
+ name: 'setApprovedVaultToken',
1869
+ inputs: [
1870
+ {
1871
+ name: '_vaultAddr',
1872
+ type: 'address',
1873
+ },
1874
+ {
1875
+ name: '_vaultToken',
1876
+ type: 'address',
1877
+ },
1878
+ {
1879
+ name: '_isApproved',
1880
+ type: 'bool',
1881
+ },
1882
+ ],
1883
+ outputs: [],
1884
+ },
1885
+ {
1886
+ stateMutability: 'view',
1887
+ type: 'function',
1888
+ name: 'isValidVaultToken',
1889
+ inputs: [
1890
+ {
1891
+ name: '_vaultToken',
1892
+ type: 'address',
1893
+ },
1894
+ ],
1895
+ outputs: [
1896
+ {
1897
+ name: '',
1898
+ type: 'bool',
1899
+ },
1900
+ ],
1901
+ },
1902
+ {
1903
+ stateMutability: 'nonpayable',
1904
+ type: 'function',
1905
+ name: 'setDefaultTargetVaultToken',
1906
+ inputs: [
1907
+ {
1908
+ name: '_vaultAddr',
1909
+ type: 'address',
1910
+ },
1911
+ {
1912
+ name: '_targetVaultToken',
1913
+ type: 'address',
1914
+ },
1915
+ ],
1916
+ outputs: [],
1917
+ },
1918
+ {
1919
+ stateMutability: 'view',
1920
+ type: 'function',
1921
+ name: 'isValidDefaultTargetVaultToken',
1922
+ inputs: [
1923
+ {
1924
+ name: '_vaultAddr',
1925
+ type: 'address',
1926
+ },
1927
+ {
1928
+ name: '_targetVaultToken',
1929
+ type: 'address',
1930
+ },
1931
+ ],
1932
+ outputs: [
1933
+ {
1934
+ name: '',
1935
+ type: 'bool',
1936
+ },
1937
+ ],
1938
+ },
1939
+ {
1940
+ stateMutability: 'nonpayable',
1941
+ type: 'function',
1942
+ name: 'setPerformanceFee',
1943
+ inputs: [
1944
+ {
1945
+ name: '_vaultAddr',
1946
+ type: 'address',
1947
+ },
1948
+ {
1949
+ name: '_performanceFee',
1950
+ type: 'uint256',
1951
+ },
1952
+ ],
1953
+ outputs: [],
1954
+ },
1955
+ {
1956
+ stateMutability: 'view',
1957
+ type: 'function',
1958
+ name: 'isValidPerformanceFee',
1959
+ inputs: [
1960
+ {
1961
+ name: '_performanceFee',
1962
+ type: 'uint256',
1963
+ },
1964
+ ],
1965
+ outputs: [
1966
+ {
1967
+ name: '',
1968
+ type: 'bool',
1969
+ },
1970
+ ],
1971
+ },
1972
+ {
1973
+ stateMutability: 'nonpayable',
1974
+ type: 'function',
1975
+ name: 'setRedemptionBuffer',
1976
+ inputs: [
1977
+ {
1978
+ name: '_vaultAddr',
1979
+ type: 'address',
1980
+ },
1981
+ {
1982
+ name: '_buffer',
1983
+ type: 'uint256',
1984
+ },
1985
+ ],
1986
+ outputs: [],
1987
+ },
1988
+ {
1989
+ stateMutability: 'view',
1990
+ type: 'function',
1991
+ name: 'isValidRedemptionBuffer',
1992
+ inputs: [
1993
+ {
1994
+ name: '_buffer',
1995
+ type: 'uint256',
1996
+ },
1997
+ ],
1998
+ outputs: [
1999
+ {
2000
+ name: '',
2001
+ type: 'bool',
2002
+ },
2003
+ ],
2004
+ },
2005
+ {
2006
+ stateMutability: 'view',
2007
+ type: 'function',
2008
+ name: 'canDeposit',
2009
+ inputs: [
2010
+ {
2011
+ name: '_vaultAddr',
2012
+ type: 'address',
2013
+ },
2014
+ ],
2015
+ outputs: [
2016
+ {
2017
+ name: '',
2018
+ type: 'bool',
2019
+ },
2020
+ ],
2021
+ },
2022
+ {
2023
+ stateMutability: 'view',
2024
+ type: 'function',
2025
+ name: 'canWithdraw',
2026
+ inputs: [
2027
+ {
2028
+ name: '_vaultAddr',
2029
+ type: 'address',
2030
+ },
2031
+ ],
2032
+ outputs: [
2033
+ {
2034
+ name: '',
2035
+ type: 'bool',
2036
+ },
2037
+ ],
2038
+ },
2039
+ {
2040
+ stateMutability: 'view',
2041
+ type: 'function',
2042
+ name: 'maxDepositAmount',
2043
+ inputs: [
2044
+ {
2045
+ name: '_vaultAddr',
2046
+ type: 'address',
2047
+ },
2048
+ ],
2049
+ outputs: [
2050
+ {
2051
+ name: '',
2052
+ type: 'uint256',
2053
+ },
2054
+ ],
2055
+ },
2056
+ {
2057
+ stateMutability: 'view',
2058
+ type: 'function',
2059
+ name: 'isVaultOpsFrozen',
2060
+ inputs: [
2061
+ {
2062
+ name: '_vaultAddr',
2063
+ type: 'address',
2064
+ },
2065
+ ],
2066
+ outputs: [
2067
+ {
2068
+ name: '',
2069
+ type: 'bool',
2070
+ },
2071
+ ],
2072
+ },
2073
+ {
2074
+ stateMutability: 'view',
2075
+ type: 'function',
2076
+ name: 'redemptionBuffer',
2077
+ inputs: [
2078
+ {
2079
+ name: '_vaultAddr',
2080
+ type: 'address',
2081
+ },
2082
+ ],
2083
+ outputs: [
2084
+ {
2085
+ name: '',
2086
+ type: 'uint256',
2087
+ },
2088
+ ],
2089
+ },
2090
+ {
2091
+ stateMutability: 'view',
2092
+ type: 'function',
2093
+ name: 'minYieldWithdrawAmount',
2094
+ inputs: [
2095
+ {
2096
+ name: '_vaultAddr',
2097
+ type: 'address',
2098
+ },
2099
+ ],
2100
+ outputs: [
2101
+ {
2102
+ name: '',
2103
+ type: 'uint256',
2104
+ },
2105
+ ],
2106
+ },
2107
+ {
2108
+ stateMutability: 'view',
2109
+ type: 'function',
2110
+ name: 'redemptionConfig',
2111
+ inputs: [
2112
+ {
2113
+ name: '_vaultAddr',
2114
+ type: 'address',
2115
+ },
2116
+ ],
2117
+ outputs: [
2118
+ {
2119
+ name: '',
2120
+ type: 'uint256',
2121
+ },
2122
+ {
2123
+ name: '',
2124
+ type: 'uint256',
2125
+ },
2126
+ ],
2127
+ },
2128
+ {
2129
+ stateMutability: 'view',
2130
+ type: 'function',
2131
+ name: 'getPerformanceFee',
2132
+ inputs: [
2133
+ {
2134
+ name: '_vaultAddr',
2135
+ type: 'address',
2136
+ },
2137
+ ],
2138
+ outputs: [
2139
+ {
2140
+ name: '',
2141
+ type: 'uint256',
2142
+ },
2143
+ ],
2144
+ },
2145
+ {
2146
+ stateMutability: 'view',
2147
+ type: 'function',
2148
+ name: 'getDefaultTargetVaultToken',
2149
+ inputs: [
2150
+ {
2151
+ name: '_vaultAddr',
2152
+ type: 'address',
2153
+ },
2154
+ ],
2155
+ outputs: [
2156
+ {
2157
+ name: '',
2158
+ type: 'address',
2159
+ },
2160
+ ],
2161
+ },
2162
+ {
2163
+ stateMutability: 'view',
2164
+ type: 'function',
2165
+ name: 'shouldAutoDeposit',
2166
+ inputs: [
2167
+ {
2168
+ name: '_vaultAddr',
2169
+ type: 'address',
2170
+ },
2171
+ ],
2172
+ outputs: [
2173
+ {
2174
+ name: '',
2175
+ type: 'bool',
2176
+ },
2177
+ ],
2178
+ },
2179
+ {
2180
+ stateMutability: 'view',
2181
+ type: 'function',
2182
+ name: 'isApprovedVaultTokenByAddr',
2183
+ inputs: [
2184
+ {
2185
+ name: '_vaultAddr',
2186
+ type: 'address',
2187
+ },
2188
+ {
2189
+ name: '_vaultToken',
2190
+ type: 'address',
2191
+ },
2192
+ ],
2193
+ outputs: [
2194
+ {
2195
+ name: '',
2196
+ type: 'bool',
2197
+ },
2198
+ ],
2199
+ },
2200
+ {
2201
+ stateMutability: 'view',
2202
+ type: 'function',
2203
+ name: 'checkVaultApprovals',
2204
+ inputs: [
2205
+ {
2206
+ name: '_vaultAddr',
2207
+ type: 'address',
2208
+ },
2209
+ {
2210
+ name: '_vaultToken',
2211
+ type: 'address',
2212
+ },
2213
+ ],
2214
+ outputs: [
2215
+ {
2216
+ name: '',
2217
+ type: 'bool',
2218
+ },
2219
+ ],
2220
+ },
2221
+ {
2222
+ stateMutability: 'view',
2223
+ type: 'function',
2224
+ name: 'getVaultConfig',
2225
+ inputs: [
2226
+ {
2227
+ name: '_regId',
2228
+ type: 'uint256',
2229
+ },
2230
+ ],
2231
+ outputs: [
2232
+ {
2233
+ name: '',
2234
+ type: 'tuple',
2235
+ components: [
2236
+ {
2237
+ name: 'canDeposit',
2238
+ type: 'bool',
2239
+ },
2240
+ {
2241
+ name: 'canWithdraw',
2242
+ type: 'bool',
2243
+ },
2244
+ {
2245
+ name: 'maxDepositAmount',
2246
+ type: 'uint256',
2247
+ },
2248
+ {
2249
+ name: 'isVaultOpsFrozen',
2250
+ type: 'bool',
2251
+ },
2252
+ {
2253
+ name: 'redemptionBuffer',
2254
+ type: 'uint256',
2255
+ },
2256
+ {
2257
+ name: 'minYieldWithdrawAmount',
2258
+ type: 'uint256',
2259
+ },
2260
+ {
2261
+ name: 'performanceFee',
2262
+ type: 'uint256',
2263
+ },
2264
+ {
2265
+ name: 'shouldAutoDeposit',
2266
+ type: 'bool',
2267
+ },
2268
+ {
2269
+ name: 'defaultTargetVaultToken',
2270
+ type: 'address',
2271
+ },
2272
+ ],
2273
+ },
2274
+ ],
2275
+ },
2276
+ {
2277
+ stateMutability: 'view',
2278
+ type: 'function',
2279
+ name: 'getVaultConfigByAddr',
2280
+ inputs: [
2281
+ {
2282
+ name: '_vaultAddr',
2283
+ type: 'address',
2284
+ },
2285
+ ],
2286
+ outputs: [
2287
+ {
2288
+ name: '',
2289
+ type: 'tuple',
2290
+ components: [
2291
+ {
2292
+ name: 'canDeposit',
2293
+ type: 'bool',
2294
+ },
2295
+ {
2296
+ name: 'canWithdraw',
2297
+ type: 'bool',
2298
+ },
2299
+ {
2300
+ name: 'maxDepositAmount',
2301
+ type: 'uint256',
2302
+ },
2303
+ {
2304
+ name: 'isVaultOpsFrozen',
2305
+ type: 'bool',
2306
+ },
2307
+ {
2308
+ name: 'redemptionBuffer',
2309
+ type: 'uint256',
2310
+ },
2311
+ {
2312
+ name: 'minYieldWithdrawAmount',
2313
+ type: 'uint256',
2314
+ },
2315
+ {
2316
+ name: 'performanceFee',
2317
+ type: 'uint256',
2318
+ },
2319
+ {
2320
+ name: 'shouldAutoDeposit',
2321
+ type: 'bool',
2322
+ },
2323
+ {
2324
+ name: 'defaultTargetVaultToken',
2325
+ type: 'address',
2326
+ },
2327
+ ],
2328
+ },
2329
+ ],
2330
+ },
2331
+ {
2332
+ stateMutability: 'view',
2333
+ type: 'function',
2334
+ name: 'getVaultActionDataBundle',
2335
+ inputs: [
2336
+ {
2337
+ name: '_legoId',
2338
+ type: 'uint256',
2339
+ },
2340
+ {
2341
+ name: '_signer',
2342
+ type: 'address',
2343
+ },
2344
+ ],
2345
+ outputs: [
2346
+ {
2347
+ name: '',
2348
+ type: 'tuple',
2349
+ components: [
2350
+ {
2351
+ name: 'ledger',
2352
+ type: 'address',
2353
+ },
2354
+ {
2355
+ name: 'missionControl',
2356
+ type: 'address',
2357
+ },
2358
+ {
2359
+ name: 'legoBook',
2360
+ type: 'address',
2361
+ },
2362
+ {
2363
+ name: 'appraiser',
2364
+ type: 'address',
2365
+ },
2366
+ {
2367
+ name: 'vaultRegistry',
2368
+ type: 'address',
2369
+ },
2370
+ {
2371
+ name: 'vaultAsset',
2372
+ type: 'address',
2373
+ },
2374
+ {
2375
+ name: 'signer',
2376
+ type: 'address',
2377
+ },
2378
+ {
2379
+ name: 'legoId',
2380
+ type: 'uint256',
2381
+ },
2382
+ {
2383
+ name: 'legoAddr',
2384
+ type: 'address',
2385
+ },
2386
+ ],
2387
+ },
2388
+ ],
2389
+ },
2390
+ {
2391
+ stateMutability: 'view',
2392
+ type: 'function',
2393
+ name: 'getVaultActionDataWithFrozenStatus',
2394
+ inputs: [
2395
+ {
2396
+ name: '_legoId',
2397
+ type: 'uint256',
2398
+ },
2399
+ {
2400
+ name: '_signer',
2401
+ type: 'address',
2402
+ },
2403
+ {
2404
+ name: '_vaultAddr',
2405
+ type: 'address',
2406
+ },
2407
+ ],
2408
+ outputs: [
2409
+ {
2410
+ name: '',
2411
+ type: 'tuple',
2412
+ components: [
2413
+ {
2414
+ name: 'ledger',
2415
+ type: 'address',
2416
+ },
2417
+ {
2418
+ name: 'missionControl',
2419
+ type: 'address',
2420
+ },
2421
+ {
2422
+ name: 'legoBook',
2423
+ type: 'address',
2424
+ },
2425
+ {
2426
+ name: 'appraiser',
2427
+ type: 'address',
2428
+ },
2429
+ {
2430
+ name: 'vaultRegistry',
2431
+ type: 'address',
2432
+ },
2433
+ {
2434
+ name: 'vaultAsset',
2435
+ type: 'address',
2436
+ },
2437
+ {
2438
+ name: 'signer',
2439
+ type: 'address',
2440
+ },
2441
+ {
2442
+ name: 'legoId',
2443
+ type: 'uint256',
2444
+ },
2445
+ {
2446
+ name: 'legoAddr',
2447
+ type: 'address',
2448
+ },
2449
+ ],
2450
+ },
2451
+ {
2452
+ name: '',
2453
+ type: 'bool',
2454
+ },
2455
+ ],
2456
+ },
2457
+ {
2458
+ stateMutability: 'view',
2459
+ type: 'function',
2460
+ name: 'getLegoDataFromVaultToken',
2461
+ inputs: [
2462
+ {
2463
+ name: '_vaultToken',
2464
+ type: 'address',
2465
+ },
2466
+ ],
2467
+ outputs: [
2468
+ {
2469
+ name: '',
2470
+ type: 'uint256',
2471
+ },
2472
+ {
2473
+ name: '',
2474
+ type: 'address',
2475
+ },
2476
+ ],
2477
+ },
2478
+ {
2479
+ stateMutability: 'view',
2480
+ type: 'function',
2481
+ name: 'getLegoAddrFromVaultToken',
2482
+ inputs: [
2483
+ {
2484
+ name: '_vaultToken',
2485
+ type: 'address',
2486
+ },
2487
+ ],
2488
+ outputs: [
2489
+ {
2490
+ name: '',
2491
+ type: 'address',
2492
+ },
2493
+ ],
2494
+ },
2495
+ {
2496
+ stateMutability: 'view',
2497
+ type: 'function',
2498
+ name: 'getDepositConfig',
2499
+ inputs: [
2500
+ {
2501
+ name: '_vaultAddr',
2502
+ type: 'address',
2503
+ },
2504
+ ],
2505
+ outputs: [
2506
+ {
2507
+ name: '',
2508
+ type: 'bool',
2509
+ },
2510
+ {
2511
+ name: '',
2512
+ type: 'uint256',
2513
+ },
2514
+ {
2515
+ name: '',
2516
+ type: 'bool',
2517
+ },
2518
+ {
2519
+ name: '',
2520
+ type: 'address',
2521
+ },
2522
+ ],
2523
+ },
2524
+ {
2525
+ stateMutability: 'view',
2526
+ type: 'function',
2527
+ name: 'vaultConfigs',
2528
+ inputs: [
2529
+ {
2530
+ name: 'arg0',
2531
+ type: 'address',
2532
+ },
2533
+ ],
2534
+ outputs: [
2535
+ {
2536
+ name: '',
2537
+ type: 'tuple',
2538
+ components: [
2539
+ {
2540
+ name: 'canDeposit',
2541
+ type: 'bool',
2542
+ },
2543
+ {
2544
+ name: 'canWithdraw',
2545
+ type: 'bool',
2546
+ },
2547
+ {
2548
+ name: 'maxDepositAmount',
2549
+ type: 'uint256',
2550
+ },
2551
+ {
2552
+ name: 'isVaultOpsFrozen',
2553
+ type: 'bool',
2554
+ },
2555
+ {
2556
+ name: 'redemptionBuffer',
2557
+ type: 'uint256',
2558
+ },
2559
+ {
2560
+ name: 'minYieldWithdrawAmount',
2561
+ type: 'uint256',
2562
+ },
2563
+ {
2564
+ name: 'performanceFee',
2565
+ type: 'uint256',
2566
+ },
2567
+ {
2568
+ name: 'shouldAutoDeposit',
2569
+ type: 'bool',
2570
+ },
2571
+ {
2572
+ name: 'defaultTargetVaultToken',
2573
+ type: 'address',
2574
+ },
2575
+ ],
2576
+ },
2577
+ ],
2578
+ },
2579
+ {
2580
+ stateMutability: 'view',
2581
+ type: 'function',
2582
+ name: 'isApprovedVaultToken',
2583
+ inputs: [
2584
+ {
2585
+ name: 'arg0',
2586
+ type: 'address',
2587
+ },
2588
+ {
2589
+ name: 'arg1',
2590
+ type: 'address',
2591
+ },
2592
+ ],
2593
+ outputs: [
2594
+ {
2595
+ name: '',
2596
+ type: 'bool',
2597
+ },
2598
+ ],
2599
+ },
2600
+ {
2601
+ stateMutability: 'nonpayable',
2602
+ type: 'constructor',
2603
+ inputs: [
2604
+ {
2605
+ name: '_undyHq',
2606
+ type: 'address',
2607
+ },
2608
+ {
2609
+ name: '_tempGov',
2610
+ type: 'address',
2611
+ },
2612
+ {
2613
+ name: '_minRegistryTimeLock',
2614
+ type: 'uint256',
2615
+ },
2616
+ {
2617
+ name: '_maxRegistryTimeLock',
2618
+ type: 'uint256',
2619
+ },
2620
+ ],
2621
+ outputs: [],
2622
+ },
2623
+ ];
2624
+ export const deployAddress = '0x73388bD7f17CeCA0679604405A5d2C418Db2b702';
2625
+ function getRequest(method, args, contractAddressOrOptions) {
2626
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2627
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
2628
+ const call = {
2629
+ contractName: 'VaultRegistry',
2630
+ method,
2631
+ args,
2632
+ address,
2633
+ deployAddress,
2634
+ defaultValue,
2635
+ getAbi: () => abi,
2636
+ with: (options) => {
2637
+ call.address = options.contractAddress;
2638
+ call.defaultValue = options.defaultValue;
2639
+ return call;
2640
+ },
2641
+ defaultTo: (defaultValue) => {
2642
+ call.defaultValue = defaultValue;
2643
+ return call;
2644
+ },
2645
+ at: (address) => {
2646
+ call.address = address;
2647
+ return call;
2648
+ },
2649
+ };
2650
+ return call;
2651
+ }
2652
+ export const call = {
2653
+ getUndyHqFromGov: (...args) => getRequest('getUndyHqFromGov', args),
2654
+ canGovern: (...args) => getRequest('canGovern', args),
2655
+ getGovernors: (...args) => getRequest('getGovernors', args),
2656
+ hasPendingGovChange: (...args) => getRequest('hasPendingGovChange', args),
2657
+ isValidGovTimeLock: (...args) => getRequest('isValidGovTimeLock', args),
2658
+ minGovChangeTimeLock: (...args) => getRequest('minGovChangeTimeLock', args),
2659
+ maxGovChangeTimeLock: (...args) => getRequest('maxGovChangeTimeLock', args),
2660
+ governance: (...args) => getRequest('governance', args),
2661
+ pendingGov: (...args) => getRequest('pendingGov', args),
2662
+ numGovChanges: (...args) => getRequest('numGovChanges', args),
2663
+ govChangeTimeLock: (...args) => getRequest('govChangeTimeLock', args),
2664
+ getRegistryDescription: (...args) => getRequest('getRegistryDescription', args),
2665
+ isValidNewAddress: (...args) => getRequest('isValidNewAddress', args),
2666
+ isValidAddressUpdate: (...args) => getRequest('isValidAddressUpdate', args),
2667
+ isValidAddressDisable: (...args) => getRequest('isValidAddressDisable', args),
2668
+ isValidRegistryTimeLock: (...args) => getRequest('isValidRegistryTimeLock', args),
2669
+ minRegistryTimeLock: (...args) => getRequest('minRegistryTimeLock', args),
2670
+ maxRegistryTimeLock: (...args) => getRequest('maxRegistryTimeLock', args),
2671
+ isValidAddr: (...args) => getRequest('isValidAddr', args),
2672
+ isValidRegId: (...args) => getRequest('isValidRegId', args),
2673
+ getRegId: (...args) => getRequest('getRegId', args),
2674
+ getAddr: (...args) => getRequest('getAddr', args),
2675
+ getAddrInfo: (...args) => getRequest('getAddrInfo', args),
2676
+ getAddrDescription: (...args) => getRequest('getAddrDescription', args),
2677
+ getNumAddrs: (...args) => getRequest('getNumAddrs', args),
2678
+ getLastAddr: (...args) => getRequest('getLastAddr', args),
2679
+ getLastRegId: (...args) => getRequest('getLastRegId', args),
2680
+ registryChangeTimeLock: (...args) => getRequest('registryChangeTimeLock', args),
2681
+ addrInfo: (...args) => getRequest('addrInfo', args),
2682
+ addrToRegId: (...args) => getRequest('addrToRegId', args),
2683
+ numAddrs: (...args) => getRequest('numAddrs', args),
2684
+ pendingNewAddr: (...args) => getRequest('pendingNewAddr', args),
2685
+ pendingAddrUpdate: (...args) => getRequest('pendingAddrUpdate', args),
2686
+ pendingAddrDisable: (...args) => getRequest('pendingAddrDisable', args),
2687
+ getAddys: (...args) => getRequest('getAddys', args),
2688
+ getUndyHq: (...args) => getRequest('getUndyHq', args),
2689
+ canMintUndy: (...args) => getRequest('canMintUndy', args),
2690
+ isPaused: (...args) => getRequest('isPaused', args),
2691
+ isEarnVault: (...args) => getRequest('isEarnVault', args),
2692
+ isValidVaultToken: (...args) => getRequest('isValidVaultToken', args),
2693
+ isValidDefaultTargetVaultToken: (...args) => getRequest('isValidDefaultTargetVaultToken', args),
2694
+ isValidPerformanceFee: (...args) => getRequest('isValidPerformanceFee', args),
2695
+ isValidRedemptionBuffer: (...args) => getRequest('isValidRedemptionBuffer', args),
2696
+ canDeposit: (...args) => getRequest('canDeposit', args),
2697
+ canWithdraw: (...args) => getRequest('canWithdraw', args),
2698
+ maxDepositAmount: (...args) => getRequest('maxDepositAmount', args),
2699
+ isVaultOpsFrozen: (...args) => getRequest('isVaultOpsFrozen', args),
2700
+ redemptionBuffer: (...args) => getRequest('redemptionBuffer', args),
2701
+ minYieldWithdrawAmount: (...args) => getRequest('minYieldWithdrawAmount', args),
2702
+ redemptionConfig: (...args) => getRequest('redemptionConfig', args),
2703
+ getPerformanceFee: (...args) => getRequest('getPerformanceFee', args),
2704
+ getDefaultTargetVaultToken: (...args) => getRequest('getDefaultTargetVaultToken', args),
2705
+ shouldAutoDeposit: (...args) => getRequest('shouldAutoDeposit', args),
2706
+ isApprovedVaultTokenByAddr: (...args) => getRequest('isApprovedVaultTokenByAddr', args),
2707
+ checkVaultApprovals: (...args) => getRequest('checkVaultApprovals', args),
2708
+ getVaultConfig: (...args) => getRequest('getVaultConfig', args),
2709
+ getVaultConfigByAddr: (...args) => getRequest('getVaultConfigByAddr', args),
2710
+ getVaultActionDataBundle: (...args) => getRequest('getVaultActionDataBundle', args),
2711
+ getVaultActionDataWithFrozenStatus: (...args) => getRequest('getVaultActionDataWithFrozenStatus', args),
2712
+ getLegoDataFromVaultToken: (...args) => getRequest('getLegoDataFromVaultToken', args),
2713
+ getLegoAddrFromVaultToken: (...args) => getRequest('getLegoAddrFromVaultToken', args),
2714
+ getDepositConfig: (...args) => getRequest('getDepositConfig', args),
2715
+ vaultConfigs: (...args) => getRequest('vaultConfigs', args),
2716
+ isApprovedVaultToken: (...args) => getRequest('isApprovedVaultToken', args),
2717
+ };
2718
+ function getMutation(functionName) {
2719
+ return {
2720
+ contractName: 'VaultRegistry',
2721
+ functionName,
2722
+ deployAddress,
2723
+ argsType: undefined,
2724
+ getAbi: () => abi,
2725
+ };
2726
+ }
2727
+ export const mutation = {
2728
+ startGovernanceChange: getMutation('startGovernanceChange'),
2729
+ confirmGovernanceChange: getMutation('confirmGovernanceChange'),
2730
+ cancelGovernanceChange: getMutation('cancelGovernanceChange'),
2731
+ relinquishGov: getMutation('relinquishGov'),
2732
+ setGovTimeLock: getMutation('setGovTimeLock'),
2733
+ finishUndyHqSetup: getMutation('finishUndyHqSetup'),
2734
+ setRegistryTimeLock: getMutation('setRegistryTimeLock'),
2735
+ setRegistryTimeLockAfterSetup: getMutation('setRegistryTimeLockAfterSetup'),
2736
+ pause: getMutation('pause'),
2737
+ recoverFunds: getMutation('recoverFunds'),
2738
+ recoverFundsMany: getMutation('recoverFundsMany'),
2739
+ startAddNewAddressToRegistry: getMutation('startAddNewAddressToRegistry'),
2740
+ confirmNewAddressToRegistry: getMutation('confirmNewAddressToRegistry'),
2741
+ cancelNewAddressToRegistry: getMutation('cancelNewAddressToRegistry'),
2742
+ setCanDeposit: getMutation('setCanDeposit'),
2743
+ setCanWithdraw: getMutation('setCanWithdraw'),
2744
+ setMaxDepositAmount: getMutation('setMaxDepositAmount'),
2745
+ setVaultOpsFrozen: getMutation('setVaultOpsFrozen'),
2746
+ setShouldAutoDeposit: getMutation('setShouldAutoDeposit'),
2747
+ setMinYieldWithdrawAmount: getMutation('setMinYieldWithdrawAmount'),
2748
+ setApprovedVaultToken: getMutation('setApprovedVaultToken'),
2749
+ setDefaultTargetVaultToken: getMutation('setDefaultTargetVaultToken'),
2750
+ setPerformanceFee: getMutation('setPerformanceFee'),
2751
+ setRedemptionBuffer: getMutation('setRedemptionBuffer'),
2752
+ };
2753
+ export function toSdk(publicClient, walletClient) {
2754
+ return {
2755
+ deployAddress,
2756
+ abi,
2757
+ // Queries
2758
+ getUndyHqFromGov: (...args) => singleQuery(publicClient, call.getUndyHqFromGov(...args)),
2759
+ canGovern: (...args) => singleQuery(publicClient, call.canGovern(...args)),
2760
+ getGovernors: (...args) => singleQuery(publicClient, call.getGovernors(...args)),
2761
+ hasPendingGovChange: (...args) => singleQuery(publicClient, call.hasPendingGovChange(...args)),
2762
+ isValidGovTimeLock: (...args) => singleQuery(publicClient, call.isValidGovTimeLock(...args)),
2763
+ minGovChangeTimeLock: (...args) => singleQuery(publicClient, call.minGovChangeTimeLock(...args)),
2764
+ maxGovChangeTimeLock: (...args) => singleQuery(publicClient, call.maxGovChangeTimeLock(...args)),
2765
+ governance: (...args) => singleQuery(publicClient, call.governance(...args)),
2766
+ pendingGov: (...args) => singleQuery(publicClient, call.pendingGov(...args)),
2767
+ numGovChanges: (...args) => singleQuery(publicClient, call.numGovChanges(...args)),
2768
+ govChangeTimeLock: (...args) => singleQuery(publicClient, call.govChangeTimeLock(...args)),
2769
+ getRegistryDescription: (...args) => singleQuery(publicClient, call.getRegistryDescription(...args)),
2770
+ isValidNewAddress: (...args) => singleQuery(publicClient, call.isValidNewAddress(...args)),
2771
+ isValidAddressUpdate: (...args) => singleQuery(publicClient, call.isValidAddressUpdate(...args)),
2772
+ isValidAddressDisable: (...args) => singleQuery(publicClient, call.isValidAddressDisable(...args)),
2773
+ isValidRegistryTimeLock: (...args) => singleQuery(publicClient, call.isValidRegistryTimeLock(...args)),
2774
+ minRegistryTimeLock: (...args) => singleQuery(publicClient, call.minRegistryTimeLock(...args)),
2775
+ maxRegistryTimeLock: (...args) => singleQuery(publicClient, call.maxRegistryTimeLock(...args)),
2776
+ isValidAddr: (...args) => singleQuery(publicClient, call.isValidAddr(...args)),
2777
+ isValidRegId: (...args) => singleQuery(publicClient, call.isValidRegId(...args)),
2778
+ getRegId: (...args) => singleQuery(publicClient, call.getRegId(...args)),
2779
+ getAddr: (...args) => singleQuery(publicClient, call.getAddr(...args)),
2780
+ getAddrInfo: (...args) => singleQuery(publicClient, call.getAddrInfo(...args)),
2781
+ getAddrDescription: (...args) => singleQuery(publicClient, call.getAddrDescription(...args)),
2782
+ getNumAddrs: (...args) => singleQuery(publicClient, call.getNumAddrs(...args)),
2783
+ getLastAddr: (...args) => singleQuery(publicClient, call.getLastAddr(...args)),
2784
+ getLastRegId: (...args) => singleQuery(publicClient, call.getLastRegId(...args)),
2785
+ registryChangeTimeLock: (...args) => singleQuery(publicClient, call.registryChangeTimeLock(...args)),
2786
+ addrInfo: (...args) => singleQuery(publicClient, call.addrInfo(...args)),
2787
+ addrToRegId: (...args) => singleQuery(publicClient, call.addrToRegId(...args)),
2788
+ numAddrs: (...args) => singleQuery(publicClient, call.numAddrs(...args)),
2789
+ pendingNewAddr: (...args) => singleQuery(publicClient, call.pendingNewAddr(...args)),
2790
+ pendingAddrUpdate: (...args) => singleQuery(publicClient, call.pendingAddrUpdate(...args)),
2791
+ pendingAddrDisable: (...args) => singleQuery(publicClient, call.pendingAddrDisable(...args)),
2792
+ getAddys: (...args) => singleQuery(publicClient, call.getAddys(...args)),
2793
+ getUndyHq: (...args) => singleQuery(publicClient, call.getUndyHq(...args)),
2794
+ canMintUndy: (...args) => singleQuery(publicClient, call.canMintUndy(...args)),
2795
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
2796
+ isEarnVault: (...args) => singleQuery(publicClient, call.isEarnVault(...args)),
2797
+ isValidVaultToken: (...args) => singleQuery(publicClient, call.isValidVaultToken(...args)),
2798
+ isValidDefaultTargetVaultToken: (...args) => singleQuery(publicClient, call.isValidDefaultTargetVaultToken(...args)),
2799
+ isValidPerformanceFee: (...args) => singleQuery(publicClient, call.isValidPerformanceFee(...args)),
2800
+ isValidRedemptionBuffer: (...args) => singleQuery(publicClient, call.isValidRedemptionBuffer(...args)),
2801
+ canDeposit: (...args) => singleQuery(publicClient, call.canDeposit(...args)),
2802
+ canWithdraw: (...args) => singleQuery(publicClient, call.canWithdraw(...args)),
2803
+ maxDepositAmount: (...args) => singleQuery(publicClient, call.maxDepositAmount(...args)),
2804
+ isVaultOpsFrozen: (...args) => singleQuery(publicClient, call.isVaultOpsFrozen(...args)),
2805
+ redemptionBuffer: (...args) => singleQuery(publicClient, call.redemptionBuffer(...args)),
2806
+ minYieldWithdrawAmount: (...args) => singleQuery(publicClient, call.minYieldWithdrawAmount(...args)),
2807
+ redemptionConfig: (...args) => singleQuery(publicClient, call.redemptionConfig(...args)),
2808
+ getPerformanceFee: (...args) => singleQuery(publicClient, call.getPerformanceFee(...args)),
2809
+ getDefaultTargetVaultToken: (...args) => singleQuery(publicClient, call.getDefaultTargetVaultToken(...args)),
2810
+ shouldAutoDeposit: (...args) => singleQuery(publicClient, call.shouldAutoDeposit(...args)),
2811
+ isApprovedVaultTokenByAddr: (...args) => singleQuery(publicClient, call.isApprovedVaultTokenByAddr(...args)),
2812
+ checkVaultApprovals: (...args) => singleQuery(publicClient, call.checkVaultApprovals(...args)),
2813
+ getVaultConfig: (...args) => singleQuery(publicClient, call.getVaultConfig(...args)),
2814
+ getVaultConfigByAddr: (...args) => singleQuery(publicClient, call.getVaultConfigByAddr(...args)),
2815
+ getVaultActionDataBundle: (...args) => singleQuery(publicClient, call.getVaultActionDataBundle(...args)),
2816
+ getVaultActionDataWithFrozenStatus: (...args) => singleQuery(publicClient, call.getVaultActionDataWithFrozenStatus(...args)),
2817
+ getLegoDataFromVaultToken: (...args) => singleQuery(publicClient, call.getLegoDataFromVaultToken(...args)),
2818
+ getLegoAddrFromVaultToken: (...args) => singleQuery(publicClient, call.getLegoAddrFromVaultToken(...args)),
2819
+ getDepositConfig: (...args) => singleQuery(publicClient, call.getDepositConfig(...args)),
2820
+ vaultConfigs: (...args) => singleQuery(publicClient, call.vaultConfigs(...args)),
2821
+ isApprovedVaultToken: (...args) => singleQuery(publicClient, call.isApprovedVaultToken(...args)),
2822
+ // Mutations
2823
+ startGovernanceChange: (...args) => mutate(walletClient, mutation.startGovernanceChange)(...args),
2824
+ confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
2825
+ cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange)(...args),
2826
+ relinquishGov: (...args) => mutate(walletClient, mutation.relinquishGov)(...args),
2827
+ setGovTimeLock: (...args) => mutate(walletClient, mutation.setGovTimeLock)(...args),
2828
+ finishUndyHqSetup: (...args) => mutate(walletClient, mutation.finishUndyHqSetup)(...args),
2829
+ setRegistryTimeLock: (...args) => mutate(walletClient, mutation.setRegistryTimeLock)(...args),
2830
+ setRegistryTimeLockAfterSetup: (...args) => mutate(walletClient, mutation.setRegistryTimeLockAfterSetup)(...args),
2831
+ pause: (...args) => mutate(walletClient, mutation.pause)(...args),
2832
+ recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
2833
+ recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
2834
+ startAddNewAddressToRegistry: (...args) => mutate(walletClient, mutation.startAddNewAddressToRegistry)(...args),
2835
+ confirmNewAddressToRegistry: (...args) => mutate(walletClient, mutation.confirmNewAddressToRegistry)(...args),
2836
+ cancelNewAddressToRegistry: (...args) => mutate(walletClient, mutation.cancelNewAddressToRegistry)(...args),
2837
+ setCanDeposit: (...args) => mutate(walletClient, mutation.setCanDeposit)(...args),
2838
+ setCanWithdraw: (...args) => mutate(walletClient, mutation.setCanWithdraw)(...args),
2839
+ setMaxDepositAmount: (...args) => mutate(walletClient, mutation.setMaxDepositAmount)(...args),
2840
+ setVaultOpsFrozen: (...args) => mutate(walletClient, mutation.setVaultOpsFrozen)(...args),
2841
+ setShouldAutoDeposit: (...args) => mutate(walletClient, mutation.setShouldAutoDeposit)(...args),
2842
+ setMinYieldWithdrawAmount: (...args) => mutate(walletClient, mutation.setMinYieldWithdrawAmount)(...args),
2843
+ setApprovedVaultToken: (...args) => mutate(walletClient, mutation.setApprovedVaultToken)(...args),
2844
+ setDefaultTargetVaultToken: (...args) => mutate(walletClient, mutation.setDefaultTargetVaultToken)(...args),
2845
+ setPerformanceFee: (...args) => mutate(walletClient, mutation.setPerformanceFee)(...args),
2846
+ setRedemptionBuffer: (...args) => mutate(walletClient, mutation.setRedemptionBuffer)(...args),
2847
+ };
2848
+ }