@underscore-finance/sdk 1.2.20-next.1 → 1.2.20-next.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 (284) hide show
  1. package/AGENTS.md +172 -0
  2. package/README.md +17 -116
  3. package/abis.json +193056 -0
  4. package/addresses.json +76 -0
  5. package/dist/contracts/AaveV3.d.ts +2594 -0
  6. package/dist/contracts/AaveV3.d.ts.map +1 -0
  7. package/dist/contracts/AaveV3.js +3272 -0
  8. package/dist/contracts/Addys.d.ts +124 -0
  9. package/dist/contracts/Addys.d.ts.map +1 -0
  10. package/dist/contracts/Addys.js +134 -0
  11. package/dist/contracts/AeroClassic.d.ts +2118 -0
  12. package/dist/contracts/AeroClassic.d.ts.map +1 -0
  13. package/dist/contracts/AeroClassic.js +2679 -0
  14. package/dist/contracts/AeroSlipstream.d.ts +2256 -0
  15. package/dist/contracts/AeroSlipstream.d.ts.map +1 -0
  16. package/dist/contracts/AeroSlipstream.js +2848 -0
  17. package/dist/contracts/AgentSenderGeneric.d.ts +4771 -0
  18. package/dist/contracts/AgentSenderGeneric.d.ts.map +1 -0
  19. package/dist/contracts/AgentSenderGeneric.js +6192 -0
  20. package/dist/contracts/AgentSenderSpecial.d.ts +2124 -0
  21. package/dist/contracts/AgentSenderSpecial.d.ts.map +1 -0
  22. package/dist/contracts/AgentSenderSpecial.js +2671 -0
  23. package/dist/contracts/AgentSenderSpecialAdmin.d.ts +984 -0
  24. package/dist/contracts/AgentSenderSpecialAdmin.d.ts.map +1 -0
  25. package/dist/contracts/AgentSenderSpecialAdmin.js +1185 -0
  26. package/dist/contracts/AgentSenderSpecialSigHelper.d.ts +3180 -0
  27. package/dist/contracts/AgentSenderSpecialSigHelper.d.ts.map +1 -0
  28. package/dist/contracts/AgentSenderSpecialSigHelper.js +4211 -0
  29. package/dist/contracts/AgentWrapper.d.ts +2678 -0
  30. package/dist/contracts/AgentWrapper.d.ts.map +1 -0
  31. package/dist/contracts/AgentWrapper.js +3602 -0
  32. package/dist/contracts/AgentWrapperV1.d.ts +3789 -0
  33. package/dist/contracts/AgentWrapperV1.d.ts.map +1 -0
  34. package/dist/contracts/AgentWrapperV1.js +4945 -0
  35. package/dist/contracts/AgentWrapperV2.d.ts +2494 -0
  36. package/dist/contracts/AgentWrapperV2.d.ts.map +1 -0
  37. package/dist/contracts/AgentWrapperV2.js +3354 -0
  38. package/dist/contracts/Appraiser.d.ts +577 -0
  39. package/dist/contracts/Appraiser.d.ts.map +1 -0
  40. package/dist/contracts/Appraiser.js +735 -0
  41. package/dist/contracts/Avantis.d.ts +2606 -0
  42. package/dist/contracts/Avantis.d.ts.map +1 -0
  43. package/dist/contracts/Avantis.js +3282 -0
  44. package/dist/contracts/Billing.d.ts +381 -0
  45. package/dist/contracts/Billing.d.ts.map +1 -0
  46. package/dist/contracts/Billing.js +451 -0
  47. package/dist/contracts/ChequeBook.d.ts +1860 -0
  48. package/dist/contracts/ChequeBook.d.ts.map +1 -0
  49. package/dist/contracts/ChequeBook.js +2131 -0
  50. package/dist/contracts/CompoundV3.d.ts +2622 -0
  51. package/dist/contracts/CompoundV3.d.ts.map +1 -0
  52. package/dist/contracts/CompoundV3.js +3304 -0
  53. package/dist/contracts/ConvertVaultToken.d.ts +64 -0
  54. package/dist/contracts/ConvertVaultToken.d.ts.map +1 -0
  55. package/dist/contracts/ConvertVaultToken.js +75 -0
  56. package/dist/contracts/Curve.d.ts +1107 -0
  57. package/dist/contracts/Curve.d.ts.map +1 -0
  58. package/dist/contracts/Curve.js +1379 -0
  59. package/dist/contracts/DefaultsBase.d.ts +306 -0
  60. package/dist/contracts/DefaultsBase.d.ts.map +1 -0
  61. package/dist/contracts/DefaultsBase.js +331 -0
  62. package/dist/contracts/DefaultsLocal.d.ts +320 -0
  63. package/dist/contracts/DefaultsLocal.d.ts.map +1 -0
  64. package/dist/contracts/DefaultsLocal.js +350 -0
  65. package/dist/contracts/ERC20.d.ts +813 -0
  66. package/dist/contracts/ERC20.d.ts.map +1 -0
  67. package/dist/contracts/ERC20.js +1006 -0
  68. package/dist/contracts/EarnVault.d.ts +1762 -0
  69. package/dist/contracts/EarnVault.d.ts.map +1 -0
  70. package/dist/contracts/EarnVault.js +2267 -0
  71. package/dist/contracts/EarnVaultAgent.d.ts +1160 -0
  72. package/dist/contracts/EarnVaultAgent.d.ts.map +1 -0
  73. package/dist/contracts/EarnVaultAgent.js +1435 -0
  74. package/dist/contracts/EarnVaultAgentSigHelper.d.ts +905 -0
  75. package/dist/contracts/EarnVaultAgentSigHelper.d.ts.map +1 -0
  76. package/dist/contracts/EarnVaultAgentSigHelper.js +1198 -0
  77. package/dist/contracts/EarnVaultWallet.d.ts +777 -0
  78. package/dist/contracts/EarnVaultWallet.d.ts.map +1 -0
  79. package/dist/contracts/EarnVaultWallet.js +987 -0
  80. package/dist/contracts/Erc20Token.d.ts +813 -0
  81. package/dist/contracts/Erc20Token.d.ts.map +1 -0
  82. package/dist/contracts/Erc20Token.js +1006 -0
  83. package/dist/contracts/Euler.d.ts +2662 -0
  84. package/dist/contracts/Euler.d.ts.map +1 -0
  85. package/dist/contracts/Euler.js +3350 -0
  86. package/dist/contracts/ExtraFi.d.ts +2637 -0
  87. package/dist/contracts/ExtraFi.d.ts.map +1 -0
  88. package/dist/contracts/ExtraFi.js +3323 -0
  89. package/dist/contracts/Fluid.d.ts +2634 -0
  90. package/dist/contracts/Fluid.d.ts.map +1 -0
  91. package/dist/contracts/Fluid.js +3318 -0
  92. package/dist/contracts/FortyAcres.d.ts +2620 -0
  93. package/dist/contracts/FortyAcres.d.ts.map +1 -0
  94. package/dist/contracts/FortyAcres.js +3300 -0
  95. package/dist/contracts/Hatchery.d.ts +392 -0
  96. package/dist/contracts/Hatchery.d.ts.map +1 -0
  97. package/dist/contracts/Hatchery.js +472 -0
  98. package/dist/contracts/Helpers.d.ts +1463 -0
  99. package/dist/contracts/Helpers.d.ts.map +1 -0
  100. package/dist/contracts/Helpers.js +1763 -0
  101. package/dist/contracts/HighCommand.d.ts +2169 -0
  102. package/dist/contracts/HighCommand.d.ts.map +1 -0
  103. package/dist/contracts/HighCommand.js +2474 -0
  104. package/dist/contracts/Kernel.d.ts +391 -0
  105. package/dist/contracts/Kernel.d.ts.map +1 -0
  106. package/dist/contracts/Kernel.js +446 -0
  107. package/dist/contracts/Ledger.d.ts +637 -0
  108. package/dist/contracts/Ledger.d.ts.map +1 -0
  109. package/dist/contracts/Ledger.js +759 -0
  110. package/dist/contracts/LegoBook.d.ts +1463 -0
  111. package/dist/contracts/LegoBook.d.ts.map +1 -0
  112. package/dist/contracts/LegoBook.js +1763 -0
  113. package/dist/contracts/LegoTools.d.ts +1913 -0
  114. package/dist/contracts/LegoTools.d.ts.map +1 -0
  115. package/dist/contracts/LegoTools.js +2402 -0
  116. package/dist/contracts/LevgVault.d.ts +2115 -0
  117. package/dist/contracts/LevgVault.d.ts.map +1 -0
  118. package/dist/contracts/LevgVault.js +2733 -0
  119. package/dist/contracts/LevgVaultAgent.d.ts +2013 -0
  120. package/dist/contracts/LevgVaultAgent.d.ts.map +1 -0
  121. package/dist/contracts/LevgVaultAgent.js +2563 -0
  122. package/dist/contracts/LevgVaultAgentSigHelper.d.ts +2221 -0
  123. package/dist/contracts/LevgVaultAgentSigHelper.d.ts.map +1 -0
  124. package/dist/contracts/LevgVaultAgentSigHelper.js +2963 -0
  125. package/dist/contracts/LevgVaultHelper.d.ts +977 -0
  126. package/dist/contracts/LevgVaultHelper.d.ts.map +1 -0
  127. package/dist/contracts/LevgVaultHelper.js +1289 -0
  128. package/dist/contracts/LevgVaultTools.d.ts +2629 -0
  129. package/dist/contracts/LevgVaultTools.d.ts.map +1 -0
  130. package/dist/contracts/LevgVaultTools.js +3560 -0
  131. package/dist/contracts/LevgVaultWallet.d.ts +1119 -0
  132. package/dist/contracts/LevgVaultWallet.d.ts.map +1 -0
  133. package/dist/contracts/LevgVaultWallet.js +1439 -0
  134. package/dist/contracts/LocalGov.d.ts +427 -0
  135. package/dist/contracts/LocalGov.d.ts.map +1 -0
  136. package/dist/contracts/LocalGov.js +507 -0
  137. package/dist/contracts/LootDistributor.d.ts +1053 -0
  138. package/dist/contracts/LootDistributor.d.ts.map +1 -0
  139. package/dist/contracts/LootDistributor.js +1291 -0
  140. package/dist/contracts/Migrator.d.ts +449 -0
  141. package/dist/contracts/Migrator.d.ts.map +1 -0
  142. package/dist/contracts/Migrator.js +535 -0
  143. package/dist/contracts/MissionControl.d.ts +1405 -0
  144. package/dist/contracts/MissionControl.d.ts.map +1 -0
  145. package/dist/contracts/MissionControl.js +1592 -0
  146. package/dist/contracts/Moonwell.d.ts +2623 -0
  147. package/dist/contracts/Moonwell.d.ts.map +1 -0
  148. package/dist/contracts/Moonwell.js +3304 -0
  149. package/dist/contracts/Morpho.d.ts +2662 -0
  150. package/dist/contracts/Morpho.d.ts.map +1 -0
  151. package/dist/contracts/Morpho.js +3350 -0
  152. package/dist/contracts/Ownership.d.ts +414 -0
  153. package/dist/contracts/Ownership.d.ts.map +1 -0
  154. package/dist/contracts/Ownership.js +472 -0
  155. package/dist/contracts/Paymaster.d.ts +1511 -0
  156. package/dist/contracts/Paymaster.d.ts.map +1 -0
  157. package/dist/contracts/Paymaster.js +1812 -0
  158. package/dist/contracts/RipeLego.d.ts +2913 -0
  159. package/dist/contracts/RipeLego.d.ts.map +1 -0
  160. package/dist/contracts/RipeLego.js +3643 -0
  161. package/dist/contracts/Sentinel.d.ts +2067 -0
  162. package/dist/contracts/Sentinel.d.ts.map +1 -0
  163. package/dist/contracts/Sentinel.js +2480 -0
  164. package/dist/contracts/SignatureHelper.d.ts +4250 -0
  165. package/dist/contracts/SignatureHelper.d.ts.map +1 -0
  166. package/dist/contracts/SignatureHelper.js +5714 -0
  167. package/dist/contracts/SignatureHelperV1.d.ts +4250 -0
  168. package/dist/contracts/SignatureHelperV1.d.ts.map +1 -0
  169. package/dist/contracts/SignatureHelperV1.js +5714 -0
  170. package/dist/contracts/SkyPsm.d.ts +2667 -0
  171. package/dist/contracts/SkyPsm.d.ts.map +1 -0
  172. package/dist/contracts/SkyPsm.js +3356 -0
  173. package/dist/contracts/Switchboard.d.ts +1483 -0
  174. package/dist/contracts/Switchboard.d.ts.map +1 -0
  175. package/dist/contracts/Switchboard.js +1790 -0
  176. package/dist/contracts/SwitchboardAlpha.d.ts +3161 -0
  177. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -0
  178. package/dist/contracts/SwitchboardAlpha.js +3771 -0
  179. package/dist/contracts/SwitchboardBravo.d.ts +1591 -0
  180. package/dist/contracts/SwitchboardBravo.d.ts.map +1 -0
  181. package/dist/contracts/SwitchboardBravo.js +1872 -0
  182. package/dist/contracts/SwitchboardCharlie.d.ts +3172 -0
  183. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -0
  184. package/dist/contracts/SwitchboardCharlie.js +3713 -0
  185. package/dist/contracts/UnderscoreLego.d.ts +2592 -0
  186. package/dist/contracts/UnderscoreLego.d.ts.map +1 -0
  187. package/dist/contracts/UnderscoreLego.js +3264 -0
  188. package/dist/contracts/UndyAero.d.ts +1733 -0
  189. package/dist/contracts/UndyAero.d.ts.map +1 -0
  190. package/dist/contracts/UndyAero.js +2235 -0
  191. package/dist/contracts/UndyBtc.d.ts +1733 -0
  192. package/dist/contracts/UndyBtc.d.ts.map +1 -0
  193. package/dist/contracts/UndyBtc.js +2235 -0
  194. package/dist/contracts/UndyCbeth.d.ts +1733 -0
  195. package/dist/contracts/UndyCbeth.d.ts.map +1 -0
  196. package/dist/contracts/UndyCbeth.js +2235 -0
  197. package/dist/contracts/UndyEth.d.ts +1733 -0
  198. package/dist/contracts/UndyEth.d.ts.map +1 -0
  199. package/dist/contracts/UndyEth.js +2235 -0
  200. package/dist/contracts/UndyEurc.d.ts +1733 -0
  201. package/dist/contracts/UndyEurc.d.ts.map +1 -0
  202. package/dist/contracts/UndyEurc.js +2235 -0
  203. package/dist/contracts/UndyGho.d.ts +1733 -0
  204. package/dist/contracts/UndyGho.d.ts.map +1 -0
  205. package/dist/contracts/UndyGho.js +2235 -0
  206. package/dist/contracts/UndyHq.d.ts +1677 -0
  207. package/dist/contracts/UndyHq.d.ts.map +1 -0
  208. package/dist/contracts/UndyHq.js +2026 -0
  209. package/dist/contracts/UndyRewardsLego.d.ts +1572 -0
  210. package/dist/contracts/UndyRewardsLego.d.ts.map +1 -0
  211. package/dist/contracts/UndyRewardsLego.js +1994 -0
  212. package/dist/contracts/UndyToken.d.ts +821 -0
  213. package/dist/contracts/UndyToken.d.ts.map +1 -0
  214. package/dist/contracts/UndyToken.js +1017 -0
  215. package/dist/contracts/UndyUsd.d.ts +1733 -0
  216. package/dist/contracts/UndyUsd.d.ts.map +1 -0
  217. package/dist/contracts/UndyUsd.js +2235 -0
  218. package/dist/contracts/UndyUsdV2.d.ts +1762 -0
  219. package/dist/contracts/UndyUsdV2.d.ts.map +1 -0
  220. package/dist/contracts/UndyUsdV2.js +2267 -0
  221. package/dist/contracts/UndyUsds.d.ts +1733 -0
  222. package/dist/contracts/UndyUsds.d.ts.map +1 -0
  223. package/dist/contracts/UndyUsds.js +2235 -0
  224. package/dist/contracts/UndyVirtual.d.ts +1762 -0
  225. package/dist/contracts/UndyVirtual.d.ts.map +1 -0
  226. package/dist/contracts/UndyVirtual.js +2267 -0
  227. package/dist/contracts/UniswapV2.d.ts +2118 -0
  228. package/dist/contracts/UniswapV2.d.ts.map +1 -0
  229. package/dist/contracts/UniswapV2.js +2679 -0
  230. package/dist/contracts/UniswapV3.d.ts +2256 -0
  231. package/dist/contracts/UniswapV3.d.ts.map +1 -0
  232. package/dist/contracts/UniswapV3.js +2848 -0
  233. package/dist/contracts/UserWallet.d.ts +2650 -0
  234. package/dist/contracts/UserWallet.d.ts.map +1 -0
  235. package/dist/contracts/UserWallet.js +3520 -0
  236. package/dist/contracts/UserWalletConfig.d.ts +3918 -0
  237. package/dist/contracts/UserWalletConfig.d.ts.map +1 -0
  238. package/dist/contracts/UserWalletConfig.js +4527 -0
  239. package/dist/contracts/UserWalletConfigV1.d.ts +3692 -0
  240. package/dist/contracts/UserWalletConfigV1.d.ts.map +1 -0
  241. package/dist/contracts/UserWalletConfigV1.js +4276 -0
  242. package/dist/contracts/UserWalletSignatureHelper.d.ts +5558 -0
  243. package/dist/contracts/UserWalletSignatureHelper.d.ts.map +1 -0
  244. package/dist/contracts/UserWalletSignatureHelper.js +7480 -0
  245. package/dist/contracts/UserWalletV1.d.ts +2650 -0
  246. package/dist/contracts/UserWalletV1.d.ts.map +1 -0
  247. package/dist/contracts/UserWalletV1.js +3520 -0
  248. package/dist/contracts/VaultErc20Token.d.ts +522 -0
  249. package/dist/contracts/VaultErc20Token.d.ts.map +1 -0
  250. package/dist/contracts/VaultErc20Token.js +658 -0
  251. package/dist/contracts/VaultRegistry.d.ts +3162 -0
  252. package/dist/contracts/VaultRegistry.d.ts.map +1 -0
  253. package/dist/contracts/VaultRegistry.js +3893 -0
  254. package/dist/contracts/WalletBackpack.d.ts +1248 -0
  255. package/dist/contracts/WalletBackpack.d.ts.map +1 -0
  256. package/dist/contracts/WalletBackpack.js +1519 -0
  257. package/dist/contracts/Wasabi.d.ts +2620 -0
  258. package/dist/contracts/Wasabi.d.ts.map +1 -0
  259. package/dist/contracts/Wasabi.js +3300 -0
  260. package/dist/contracts/index.d.ts +86 -0
  261. package/dist/contracts/index.d.ts.map +1 -0
  262. package/dist/contracts/index.js +89 -0
  263. package/dist/contracts/sdk.d.ts +176 -0
  264. package/dist/contracts/sdk.d.ts.map +1 -0
  265. package/dist/contracts/sdk.js +178 -0
  266. package/dist/getSwapInstructions.d.ts +34 -0
  267. package/dist/getSwapInstructions.d.ts.map +1 -0
  268. package/dist/getSwapInstructions.js +21 -0
  269. package/dist/index.d.ts +135 -0
  270. package/dist/index.d.ts.map +1 -0
  271. package/dist/index.js +137 -0
  272. package/package.json +44 -17
  273. package/.claude/settings.local.json +0 -31
  274. package/.eslintrc.json +0 -27
  275. package/.prettierrc +0 -9
  276. package/.tool-versions +0 -1
  277. package/LICENSE +0 -41
  278. package/LICENSE_DATE.md +0 -34
  279. package/LICENSE_GRANTS.md +0 -33
  280. package/LICENSE_INFO.md +0 -90
  281. package/dapp.config.js +0 -154
  282. package/src/getSwapInstructions.ts +0 -55
  283. package/src/index.ts +0 -192
  284. package/tsconfig.json +0 -18
@@ -0,0 +1,2235 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /* @ts-nocheck */
5
+ import { singleQuery, mutate } from '@dappql/async';
6
+ import { encodeEventTopics, parseEventLogs } from 'viem';
7
+ export const abi = [
8
+ {
9
+ "name": "Deposit",
10
+ "inputs": [
11
+ {
12
+ "name": "sender",
13
+ "type": "address",
14
+ "indexed": true
15
+ },
16
+ {
17
+ "name": "owner",
18
+ "type": "address",
19
+ "indexed": true
20
+ },
21
+ {
22
+ "name": "assets",
23
+ "type": "uint256",
24
+ "indexed": false
25
+ },
26
+ {
27
+ "name": "shares",
28
+ "type": "uint256",
29
+ "indexed": false
30
+ }
31
+ ],
32
+ "anonymous": false,
33
+ "type": "event"
34
+ },
35
+ {
36
+ "name": "Withdraw",
37
+ "inputs": [
38
+ {
39
+ "name": "sender",
40
+ "type": "address",
41
+ "indexed": true
42
+ },
43
+ {
44
+ "name": "receiver",
45
+ "type": "address",
46
+ "indexed": true
47
+ },
48
+ {
49
+ "name": "owner",
50
+ "type": "address",
51
+ "indexed": true
52
+ },
53
+ {
54
+ "name": "assets",
55
+ "type": "uint256",
56
+ "indexed": false
57
+ },
58
+ {
59
+ "name": "shares",
60
+ "type": "uint256",
61
+ "indexed": false
62
+ }
63
+ ],
64
+ "anonymous": false,
65
+ "type": "event"
66
+ },
67
+ {
68
+ "name": "Transfer",
69
+ "inputs": [
70
+ {
71
+ "name": "sender",
72
+ "type": "address",
73
+ "indexed": true
74
+ },
75
+ {
76
+ "name": "recipient",
77
+ "type": "address",
78
+ "indexed": true
79
+ },
80
+ {
81
+ "name": "amount",
82
+ "type": "uint256",
83
+ "indexed": false
84
+ }
85
+ ],
86
+ "anonymous": false,
87
+ "type": "event"
88
+ },
89
+ {
90
+ "name": "Approval",
91
+ "inputs": [
92
+ {
93
+ "name": "owner",
94
+ "type": "address",
95
+ "indexed": true
96
+ },
97
+ {
98
+ "name": "spender",
99
+ "type": "address",
100
+ "indexed": true
101
+ },
102
+ {
103
+ "name": "amount",
104
+ "type": "uint256",
105
+ "indexed": false
106
+ }
107
+ ],
108
+ "anonymous": false,
109
+ "type": "event"
110
+ },
111
+ {
112
+ "name": "BlacklistModified",
113
+ "inputs": [
114
+ {
115
+ "name": "addr",
116
+ "type": "address",
117
+ "indexed": true
118
+ },
119
+ {
120
+ "name": "isBlacklisted",
121
+ "type": "bool",
122
+ "indexed": false
123
+ }
124
+ ],
125
+ "anonymous": false,
126
+ "type": "event"
127
+ },
128
+ {
129
+ "name": "TokenPauseModified",
130
+ "inputs": [
131
+ {
132
+ "name": "isPaused",
133
+ "type": "bool",
134
+ "indexed": false
135
+ }
136
+ ],
137
+ "anonymous": false,
138
+ "type": "event"
139
+ },
140
+ {
141
+ "name": "EarnVaultDeposit",
142
+ "inputs": [
143
+ {
144
+ "name": "asset",
145
+ "type": "address",
146
+ "indexed": true
147
+ },
148
+ {
149
+ "name": "assetAmountDeposited",
150
+ "type": "uint256",
151
+ "indexed": false
152
+ },
153
+ {
154
+ "name": "assetAmountAdjusted",
155
+ "type": "uint256",
156
+ "indexed": false
157
+ },
158
+ {
159
+ "name": "vaultToken",
160
+ "type": "address",
161
+ "indexed": true
162
+ },
163
+ {
164
+ "name": "vaultTokenReceived",
165
+ "type": "uint256",
166
+ "indexed": false
167
+ },
168
+ {
169
+ "name": "vaultTokenExpected",
170
+ "type": "uint256",
171
+ "indexed": false
172
+ },
173
+ {
174
+ "name": "usdValue",
175
+ "type": "uint256",
176
+ "indexed": false
177
+ },
178
+ {
179
+ "name": "legoId",
180
+ "type": "uint256",
181
+ "indexed": false
182
+ },
183
+ {
184
+ "name": "signer",
185
+ "type": "address",
186
+ "indexed": true
187
+ }
188
+ ],
189
+ "anonymous": false,
190
+ "type": "event"
191
+ },
192
+ {
193
+ "name": "EarnVaultWithdrawal",
194
+ "inputs": [
195
+ {
196
+ "name": "vaultToken",
197
+ "type": "address",
198
+ "indexed": true
199
+ },
200
+ {
201
+ "name": "vaultTokenBurned",
202
+ "type": "uint256",
203
+ "indexed": false
204
+ },
205
+ {
206
+ "name": "underlyingAsset",
207
+ "type": "address",
208
+ "indexed": true
209
+ },
210
+ {
211
+ "name": "underlyingAmountReceived",
212
+ "type": "uint256",
213
+ "indexed": false
214
+ },
215
+ {
216
+ "name": "usdValue",
217
+ "type": "uint256",
218
+ "indexed": false
219
+ },
220
+ {
221
+ "name": "legoId",
222
+ "type": "uint256",
223
+ "indexed": false
224
+ },
225
+ {
226
+ "name": "signer",
227
+ "type": "address",
228
+ "indexed": true
229
+ }
230
+ ],
231
+ "anonymous": false,
232
+ "type": "event"
233
+ },
234
+ {
235
+ "name": "EarnVaultSwap",
236
+ "inputs": [
237
+ {
238
+ "name": "tokenIn",
239
+ "type": "address",
240
+ "indexed": true
241
+ },
242
+ {
243
+ "name": "tokenInAmount",
244
+ "type": "uint256",
245
+ "indexed": false
246
+ },
247
+ {
248
+ "name": "tokenOut",
249
+ "type": "address",
250
+ "indexed": true
251
+ },
252
+ {
253
+ "name": "tokenOutAmount",
254
+ "type": "uint256",
255
+ "indexed": false
256
+ },
257
+ {
258
+ "name": "usdValue",
259
+ "type": "uint256",
260
+ "indexed": false
261
+ },
262
+ {
263
+ "name": "swapFee",
264
+ "type": "uint256",
265
+ "indexed": false
266
+ },
267
+ {
268
+ "name": "legoId",
269
+ "type": "uint256",
270
+ "indexed": false
271
+ },
272
+ {
273
+ "name": "signer",
274
+ "type": "address",
275
+ "indexed": true
276
+ }
277
+ ],
278
+ "anonymous": false,
279
+ "type": "event"
280
+ },
281
+ {
282
+ "name": "EarnVaultRewardsClaim",
283
+ "inputs": [
284
+ {
285
+ "name": "rewardToken",
286
+ "type": "address",
287
+ "indexed": true
288
+ },
289
+ {
290
+ "name": "rewardAmount",
291
+ "type": "uint256",
292
+ "indexed": false
293
+ },
294
+ {
295
+ "name": "usdValue",
296
+ "type": "uint256",
297
+ "indexed": false
298
+ },
299
+ {
300
+ "name": "legoId",
301
+ "type": "uint256",
302
+ "indexed": false
303
+ },
304
+ {
305
+ "name": "signer",
306
+ "type": "address",
307
+ "indexed": true
308
+ }
309
+ ],
310
+ "anonymous": false,
311
+ "type": "event"
312
+ },
313
+ {
314
+ "name": "PerformanceFeesClaimed",
315
+ "inputs": [
316
+ {
317
+ "name": "pendingFees",
318
+ "type": "uint256",
319
+ "indexed": false
320
+ }
321
+ ],
322
+ "anonymous": false,
323
+ "type": "event"
324
+ },
325
+ {
326
+ "stateMutability": "view",
327
+ "type": "function",
328
+ "name": "name",
329
+ "inputs": [],
330
+ "outputs": [
331
+ {
332
+ "name": "",
333
+ "type": "string"
334
+ }
335
+ ]
336
+ },
337
+ {
338
+ "stateMutability": "view",
339
+ "type": "function",
340
+ "name": "symbol",
341
+ "inputs": [],
342
+ "outputs": [
343
+ {
344
+ "name": "",
345
+ "type": "string"
346
+ }
347
+ ]
348
+ },
349
+ {
350
+ "stateMutability": "view",
351
+ "type": "function",
352
+ "name": "decimals",
353
+ "inputs": [],
354
+ "outputs": [
355
+ {
356
+ "name": "",
357
+ "type": "uint8"
358
+ }
359
+ ]
360
+ },
361
+ {
362
+ "stateMutability": "nonpayable",
363
+ "type": "function",
364
+ "name": "transfer",
365
+ "inputs": [
366
+ {
367
+ "name": "_recipient",
368
+ "type": "address"
369
+ },
370
+ {
371
+ "name": "_amount",
372
+ "type": "uint256"
373
+ }
374
+ ],
375
+ "outputs": [
376
+ {
377
+ "name": "",
378
+ "type": "bool"
379
+ }
380
+ ]
381
+ },
382
+ {
383
+ "stateMutability": "nonpayable",
384
+ "type": "function",
385
+ "name": "transferFrom",
386
+ "inputs": [
387
+ {
388
+ "name": "_sender",
389
+ "type": "address"
390
+ },
391
+ {
392
+ "name": "_recipient",
393
+ "type": "address"
394
+ },
395
+ {
396
+ "name": "_amount",
397
+ "type": "uint256"
398
+ }
399
+ ],
400
+ "outputs": [
401
+ {
402
+ "name": "",
403
+ "type": "bool"
404
+ }
405
+ ]
406
+ },
407
+ {
408
+ "stateMutability": "nonpayable",
409
+ "type": "function",
410
+ "name": "approve",
411
+ "inputs": [
412
+ {
413
+ "name": "_spender",
414
+ "type": "address"
415
+ },
416
+ {
417
+ "name": "_amount",
418
+ "type": "uint256"
419
+ }
420
+ ],
421
+ "outputs": [
422
+ {
423
+ "name": "",
424
+ "type": "bool"
425
+ }
426
+ ]
427
+ },
428
+ {
429
+ "stateMutability": "nonpayable",
430
+ "type": "function",
431
+ "name": "increaseAllowance",
432
+ "inputs": [
433
+ {
434
+ "name": "_spender",
435
+ "type": "address"
436
+ },
437
+ {
438
+ "name": "_amount",
439
+ "type": "uint256"
440
+ }
441
+ ],
442
+ "outputs": [
443
+ {
444
+ "name": "",
445
+ "type": "bool"
446
+ }
447
+ ]
448
+ },
449
+ {
450
+ "stateMutability": "nonpayable",
451
+ "type": "function",
452
+ "name": "decreaseAllowance",
453
+ "inputs": [
454
+ {
455
+ "name": "_spender",
456
+ "type": "address"
457
+ },
458
+ {
459
+ "name": "_amount",
460
+ "type": "uint256"
461
+ }
462
+ ],
463
+ "outputs": [
464
+ {
465
+ "name": "",
466
+ "type": "bool"
467
+ }
468
+ ]
469
+ },
470
+ {
471
+ "stateMutability": "nonpayable",
472
+ "type": "function",
473
+ "name": "burn",
474
+ "inputs": [
475
+ {
476
+ "name": "_amount",
477
+ "type": "uint256"
478
+ }
479
+ ],
480
+ "outputs": [
481
+ {
482
+ "name": "",
483
+ "type": "bool"
484
+ }
485
+ ]
486
+ },
487
+ {
488
+ "stateMutability": "view",
489
+ "type": "function",
490
+ "name": "DOMAIN_SEPARATOR",
491
+ "inputs": [],
492
+ "outputs": [
493
+ {
494
+ "name": "",
495
+ "type": "bytes32"
496
+ }
497
+ ]
498
+ },
499
+ {
500
+ "stateMutability": "nonpayable",
501
+ "type": "function",
502
+ "name": "permit",
503
+ "inputs": [
504
+ {
505
+ "name": "_owner",
506
+ "type": "address"
507
+ },
508
+ {
509
+ "name": "_spender",
510
+ "type": "address"
511
+ },
512
+ {
513
+ "name": "_value",
514
+ "type": "uint256"
515
+ },
516
+ {
517
+ "name": "_deadline",
518
+ "type": "uint256"
519
+ },
520
+ {
521
+ "name": "_signature",
522
+ "type": "bytes"
523
+ }
524
+ ],
525
+ "outputs": [
526
+ {
527
+ "name": "",
528
+ "type": "bool"
529
+ }
530
+ ]
531
+ },
532
+ {
533
+ "stateMutability": "nonpayable",
534
+ "type": "function",
535
+ "name": "setBlacklist",
536
+ "inputs": [
537
+ {
538
+ "name": "_addr",
539
+ "type": "address"
540
+ },
541
+ {
542
+ "name": "_shouldBlacklist",
543
+ "type": "bool"
544
+ }
545
+ ],
546
+ "outputs": [
547
+ {
548
+ "name": "",
549
+ "type": "bool"
550
+ }
551
+ ]
552
+ },
553
+ {
554
+ "stateMutability": "nonpayable",
555
+ "type": "function",
556
+ "name": "burnBlacklistTokens",
557
+ "inputs": [
558
+ {
559
+ "name": "_addr",
560
+ "type": "address"
561
+ }
562
+ ],
563
+ "outputs": [
564
+ {
565
+ "name": "",
566
+ "type": "bool"
567
+ }
568
+ ]
569
+ },
570
+ {
571
+ "stateMutability": "nonpayable",
572
+ "type": "function",
573
+ "name": "burnBlacklistTokens",
574
+ "inputs": [
575
+ {
576
+ "name": "_addr",
577
+ "type": "address"
578
+ },
579
+ {
580
+ "name": "_amount",
581
+ "type": "uint256"
582
+ }
583
+ ],
584
+ "outputs": [
585
+ {
586
+ "name": "",
587
+ "type": "bool"
588
+ }
589
+ ]
590
+ },
591
+ {
592
+ "stateMutability": "nonpayable",
593
+ "type": "function",
594
+ "name": "pause",
595
+ "inputs": [
596
+ {
597
+ "name": "_shouldPause",
598
+ "type": "bool"
599
+ }
600
+ ],
601
+ "outputs": []
602
+ },
603
+ {
604
+ "stateMutability": "view",
605
+ "type": "function",
606
+ "name": "undyHq",
607
+ "inputs": [],
608
+ "outputs": [
609
+ {
610
+ "name": "",
611
+ "type": "address"
612
+ }
613
+ ]
614
+ },
615
+ {
616
+ "stateMutability": "view",
617
+ "type": "function",
618
+ "name": "blacklisted",
619
+ "inputs": [
620
+ {
621
+ "name": "arg0",
622
+ "type": "address"
623
+ }
624
+ ],
625
+ "outputs": [
626
+ {
627
+ "name": "",
628
+ "type": "bool"
629
+ }
630
+ ]
631
+ },
632
+ {
633
+ "stateMutability": "view",
634
+ "type": "function",
635
+ "name": "isPaused",
636
+ "inputs": [],
637
+ "outputs": [
638
+ {
639
+ "name": "",
640
+ "type": "bool"
641
+ }
642
+ ]
643
+ },
644
+ {
645
+ "stateMutability": "view",
646
+ "type": "function",
647
+ "name": "balanceOf",
648
+ "inputs": [
649
+ {
650
+ "name": "arg0",
651
+ "type": "address"
652
+ }
653
+ ],
654
+ "outputs": [
655
+ {
656
+ "name": "",
657
+ "type": "uint256"
658
+ }
659
+ ]
660
+ },
661
+ {
662
+ "stateMutability": "view",
663
+ "type": "function",
664
+ "name": "allowance",
665
+ "inputs": [
666
+ {
667
+ "name": "arg0",
668
+ "type": "address"
669
+ },
670
+ {
671
+ "name": "arg1",
672
+ "type": "address"
673
+ }
674
+ ],
675
+ "outputs": [
676
+ {
677
+ "name": "",
678
+ "type": "uint256"
679
+ }
680
+ ]
681
+ },
682
+ {
683
+ "stateMutability": "view",
684
+ "type": "function",
685
+ "name": "totalSupply",
686
+ "inputs": [],
687
+ "outputs": [
688
+ {
689
+ "name": "",
690
+ "type": "uint256"
691
+ }
692
+ ]
693
+ },
694
+ {
695
+ "stateMutability": "view",
696
+ "type": "function",
697
+ "name": "TOKEN_NAME",
698
+ "inputs": [],
699
+ "outputs": [
700
+ {
701
+ "name": "",
702
+ "type": "string"
703
+ }
704
+ ]
705
+ },
706
+ {
707
+ "stateMutability": "view",
708
+ "type": "function",
709
+ "name": "TOKEN_SYMBOL",
710
+ "inputs": [],
711
+ "outputs": [
712
+ {
713
+ "name": "",
714
+ "type": "string"
715
+ }
716
+ ]
717
+ },
718
+ {
719
+ "stateMutability": "view",
720
+ "type": "function",
721
+ "name": "TOKEN_DECIMALS",
722
+ "inputs": [],
723
+ "outputs": [
724
+ {
725
+ "name": "",
726
+ "type": "uint8"
727
+ }
728
+ ]
729
+ },
730
+ {
731
+ "stateMutability": "view",
732
+ "type": "function",
733
+ "name": "VERSION",
734
+ "inputs": [],
735
+ "outputs": [
736
+ {
737
+ "name": "",
738
+ "type": "string"
739
+ }
740
+ ]
741
+ },
742
+ {
743
+ "stateMutability": "view",
744
+ "type": "function",
745
+ "name": "nonces",
746
+ "inputs": [
747
+ {
748
+ "name": "arg0",
749
+ "type": "address"
750
+ }
751
+ ],
752
+ "outputs": [
753
+ {
754
+ "name": "",
755
+ "type": "uint256"
756
+ }
757
+ ]
758
+ },
759
+ {
760
+ "stateMutability": "nonpayable",
761
+ "type": "function",
762
+ "name": "depositForYield",
763
+ "inputs": [
764
+ {
765
+ "name": "_legoId",
766
+ "type": "uint256"
767
+ },
768
+ {
769
+ "name": "_asset",
770
+ "type": "address"
771
+ }
772
+ ],
773
+ "outputs": [
774
+ {
775
+ "name": "",
776
+ "type": "uint256"
777
+ },
778
+ {
779
+ "name": "",
780
+ "type": "address"
781
+ },
782
+ {
783
+ "name": "",
784
+ "type": "uint256"
785
+ },
786
+ {
787
+ "name": "",
788
+ "type": "uint256"
789
+ }
790
+ ]
791
+ },
792
+ {
793
+ "stateMutability": "nonpayable",
794
+ "type": "function",
795
+ "name": "depositForYield",
796
+ "inputs": [
797
+ {
798
+ "name": "_legoId",
799
+ "type": "uint256"
800
+ },
801
+ {
802
+ "name": "_asset",
803
+ "type": "address"
804
+ },
805
+ {
806
+ "name": "_vaultAddr",
807
+ "type": "address"
808
+ }
809
+ ],
810
+ "outputs": [
811
+ {
812
+ "name": "",
813
+ "type": "uint256"
814
+ },
815
+ {
816
+ "name": "",
817
+ "type": "address"
818
+ },
819
+ {
820
+ "name": "",
821
+ "type": "uint256"
822
+ },
823
+ {
824
+ "name": "",
825
+ "type": "uint256"
826
+ }
827
+ ]
828
+ },
829
+ {
830
+ "stateMutability": "nonpayable",
831
+ "type": "function",
832
+ "name": "depositForYield",
833
+ "inputs": [
834
+ {
835
+ "name": "_legoId",
836
+ "type": "uint256"
837
+ },
838
+ {
839
+ "name": "_asset",
840
+ "type": "address"
841
+ },
842
+ {
843
+ "name": "_vaultAddr",
844
+ "type": "address"
845
+ },
846
+ {
847
+ "name": "_amount",
848
+ "type": "uint256"
849
+ }
850
+ ],
851
+ "outputs": [
852
+ {
853
+ "name": "",
854
+ "type": "uint256"
855
+ },
856
+ {
857
+ "name": "",
858
+ "type": "address"
859
+ },
860
+ {
861
+ "name": "",
862
+ "type": "uint256"
863
+ },
864
+ {
865
+ "name": "",
866
+ "type": "uint256"
867
+ }
868
+ ]
869
+ },
870
+ {
871
+ "stateMutability": "nonpayable",
872
+ "type": "function",
873
+ "name": "depositForYield",
874
+ "inputs": [
875
+ {
876
+ "name": "_legoId",
877
+ "type": "uint256"
878
+ },
879
+ {
880
+ "name": "_asset",
881
+ "type": "address"
882
+ },
883
+ {
884
+ "name": "_vaultAddr",
885
+ "type": "address"
886
+ },
887
+ {
888
+ "name": "_amount",
889
+ "type": "uint256"
890
+ },
891
+ {
892
+ "name": "_extraData",
893
+ "type": "bytes32"
894
+ }
895
+ ],
896
+ "outputs": [
897
+ {
898
+ "name": "",
899
+ "type": "uint256"
900
+ },
901
+ {
902
+ "name": "",
903
+ "type": "address"
904
+ },
905
+ {
906
+ "name": "",
907
+ "type": "uint256"
908
+ },
909
+ {
910
+ "name": "",
911
+ "type": "uint256"
912
+ }
913
+ ]
914
+ },
915
+ {
916
+ "stateMutability": "nonpayable",
917
+ "type": "function",
918
+ "name": "withdrawFromYield",
919
+ "inputs": [
920
+ {
921
+ "name": "_legoId",
922
+ "type": "uint256"
923
+ },
924
+ {
925
+ "name": "_vaultToken",
926
+ "type": "address"
927
+ }
928
+ ],
929
+ "outputs": [
930
+ {
931
+ "name": "",
932
+ "type": "uint256"
933
+ },
934
+ {
935
+ "name": "",
936
+ "type": "address"
937
+ },
938
+ {
939
+ "name": "",
940
+ "type": "uint256"
941
+ },
942
+ {
943
+ "name": "",
944
+ "type": "uint256"
945
+ }
946
+ ]
947
+ },
948
+ {
949
+ "stateMutability": "nonpayable",
950
+ "type": "function",
951
+ "name": "withdrawFromYield",
952
+ "inputs": [
953
+ {
954
+ "name": "_legoId",
955
+ "type": "uint256"
956
+ },
957
+ {
958
+ "name": "_vaultToken",
959
+ "type": "address"
960
+ },
961
+ {
962
+ "name": "_amount",
963
+ "type": "uint256"
964
+ }
965
+ ],
966
+ "outputs": [
967
+ {
968
+ "name": "",
969
+ "type": "uint256"
970
+ },
971
+ {
972
+ "name": "",
973
+ "type": "address"
974
+ },
975
+ {
976
+ "name": "",
977
+ "type": "uint256"
978
+ },
979
+ {
980
+ "name": "",
981
+ "type": "uint256"
982
+ }
983
+ ]
984
+ },
985
+ {
986
+ "stateMutability": "nonpayable",
987
+ "type": "function",
988
+ "name": "withdrawFromYield",
989
+ "inputs": [
990
+ {
991
+ "name": "_legoId",
992
+ "type": "uint256"
993
+ },
994
+ {
995
+ "name": "_vaultToken",
996
+ "type": "address"
997
+ },
998
+ {
999
+ "name": "_amount",
1000
+ "type": "uint256"
1001
+ },
1002
+ {
1003
+ "name": "_extraData",
1004
+ "type": "bytes32"
1005
+ }
1006
+ ],
1007
+ "outputs": [
1008
+ {
1009
+ "name": "",
1010
+ "type": "uint256"
1011
+ },
1012
+ {
1013
+ "name": "",
1014
+ "type": "address"
1015
+ },
1016
+ {
1017
+ "name": "",
1018
+ "type": "uint256"
1019
+ },
1020
+ {
1021
+ "name": "",
1022
+ "type": "uint256"
1023
+ }
1024
+ ]
1025
+ },
1026
+ {
1027
+ "stateMutability": "nonpayable",
1028
+ "type": "function",
1029
+ "name": "withdrawFromYield",
1030
+ "inputs": [
1031
+ {
1032
+ "name": "_legoId",
1033
+ "type": "uint256"
1034
+ },
1035
+ {
1036
+ "name": "_vaultToken",
1037
+ "type": "address"
1038
+ },
1039
+ {
1040
+ "name": "_amount",
1041
+ "type": "uint256"
1042
+ },
1043
+ {
1044
+ "name": "_extraData",
1045
+ "type": "bytes32"
1046
+ },
1047
+ {
1048
+ "name": "_isSpecialTx",
1049
+ "type": "bool"
1050
+ }
1051
+ ],
1052
+ "outputs": [
1053
+ {
1054
+ "name": "",
1055
+ "type": "uint256"
1056
+ },
1057
+ {
1058
+ "name": "",
1059
+ "type": "address"
1060
+ },
1061
+ {
1062
+ "name": "",
1063
+ "type": "uint256"
1064
+ },
1065
+ {
1066
+ "name": "",
1067
+ "type": "uint256"
1068
+ }
1069
+ ]
1070
+ },
1071
+ {
1072
+ "stateMutability": "nonpayable",
1073
+ "type": "function",
1074
+ "name": "swapTokens",
1075
+ "inputs": [
1076
+ {
1077
+ "name": "_instructions",
1078
+ "type": "tuple[]",
1079
+ "components": [
1080
+ {
1081
+ "name": "legoId",
1082
+ "type": "uint256"
1083
+ },
1084
+ {
1085
+ "name": "amountIn",
1086
+ "type": "uint256"
1087
+ },
1088
+ {
1089
+ "name": "minAmountOut",
1090
+ "type": "uint256"
1091
+ },
1092
+ {
1093
+ "name": "tokenPath",
1094
+ "type": "address[]"
1095
+ },
1096
+ {
1097
+ "name": "poolPath",
1098
+ "type": "address[]"
1099
+ }
1100
+ ]
1101
+ }
1102
+ ],
1103
+ "outputs": [
1104
+ {
1105
+ "name": "",
1106
+ "type": "address"
1107
+ },
1108
+ {
1109
+ "name": "",
1110
+ "type": "uint256"
1111
+ },
1112
+ {
1113
+ "name": "",
1114
+ "type": "address"
1115
+ },
1116
+ {
1117
+ "name": "",
1118
+ "type": "uint256"
1119
+ },
1120
+ {
1121
+ "name": "",
1122
+ "type": "uint256"
1123
+ }
1124
+ ]
1125
+ },
1126
+ {
1127
+ "stateMutability": "nonpayable",
1128
+ "type": "function",
1129
+ "name": "claimIncentives",
1130
+ "inputs": [
1131
+ {
1132
+ "name": "_legoId",
1133
+ "type": "uint256"
1134
+ }
1135
+ ],
1136
+ "outputs": [
1137
+ {
1138
+ "name": "",
1139
+ "type": "uint256"
1140
+ },
1141
+ {
1142
+ "name": "",
1143
+ "type": "uint256"
1144
+ }
1145
+ ]
1146
+ },
1147
+ {
1148
+ "stateMutability": "nonpayable",
1149
+ "type": "function",
1150
+ "name": "claimIncentives",
1151
+ "inputs": [
1152
+ {
1153
+ "name": "_legoId",
1154
+ "type": "uint256"
1155
+ },
1156
+ {
1157
+ "name": "_rewardToken",
1158
+ "type": "address"
1159
+ }
1160
+ ],
1161
+ "outputs": [
1162
+ {
1163
+ "name": "",
1164
+ "type": "uint256"
1165
+ },
1166
+ {
1167
+ "name": "",
1168
+ "type": "uint256"
1169
+ }
1170
+ ]
1171
+ },
1172
+ {
1173
+ "stateMutability": "nonpayable",
1174
+ "type": "function",
1175
+ "name": "claimIncentives",
1176
+ "inputs": [
1177
+ {
1178
+ "name": "_legoId",
1179
+ "type": "uint256"
1180
+ },
1181
+ {
1182
+ "name": "_rewardToken",
1183
+ "type": "address"
1184
+ },
1185
+ {
1186
+ "name": "_rewardAmount",
1187
+ "type": "uint256"
1188
+ }
1189
+ ],
1190
+ "outputs": [
1191
+ {
1192
+ "name": "",
1193
+ "type": "uint256"
1194
+ },
1195
+ {
1196
+ "name": "",
1197
+ "type": "uint256"
1198
+ }
1199
+ ]
1200
+ },
1201
+ {
1202
+ "stateMutability": "nonpayable",
1203
+ "type": "function",
1204
+ "name": "claimIncentives",
1205
+ "inputs": [
1206
+ {
1207
+ "name": "_legoId",
1208
+ "type": "uint256"
1209
+ },
1210
+ {
1211
+ "name": "_rewardToken",
1212
+ "type": "address"
1213
+ },
1214
+ {
1215
+ "name": "_rewardAmount",
1216
+ "type": "uint256"
1217
+ },
1218
+ {
1219
+ "name": "_proofs",
1220
+ "type": "bytes32[]"
1221
+ }
1222
+ ],
1223
+ "outputs": [
1224
+ {
1225
+ "name": "",
1226
+ "type": "uint256"
1227
+ },
1228
+ {
1229
+ "name": "",
1230
+ "type": "uint256"
1231
+ }
1232
+ ]
1233
+ },
1234
+ {
1235
+ "stateMutability": "nonpayable",
1236
+ "type": "function",
1237
+ "name": "claimPerformanceFees",
1238
+ "inputs": [],
1239
+ "outputs": [
1240
+ {
1241
+ "name": "",
1242
+ "type": "uint256"
1243
+ }
1244
+ ]
1245
+ },
1246
+ {
1247
+ "stateMutability": "view",
1248
+ "type": "function",
1249
+ "name": "getClaimablePerformanceFees",
1250
+ "inputs": [],
1251
+ "outputs": [
1252
+ {
1253
+ "name": "",
1254
+ "type": "uint256"
1255
+ }
1256
+ ]
1257
+ },
1258
+ {
1259
+ "stateMutability": "nonpayable",
1260
+ "type": "function",
1261
+ "name": "updateYieldPosition",
1262
+ "inputs": [
1263
+ {
1264
+ "name": "_vaultToken",
1265
+ "type": "address"
1266
+ }
1267
+ ],
1268
+ "outputs": []
1269
+ },
1270
+ {
1271
+ "stateMutability": "nonpayable",
1272
+ "type": "function",
1273
+ "name": "addManager",
1274
+ "inputs": [
1275
+ {
1276
+ "name": "_manager",
1277
+ "type": "address"
1278
+ }
1279
+ ],
1280
+ "outputs": []
1281
+ },
1282
+ {
1283
+ "stateMutability": "nonpayable",
1284
+ "type": "function",
1285
+ "name": "removeManager",
1286
+ "inputs": [
1287
+ {
1288
+ "name": "_manager",
1289
+ "type": "address"
1290
+ }
1291
+ ],
1292
+ "outputs": []
1293
+ },
1294
+ {
1295
+ "stateMutability": "view",
1296
+ "type": "function",
1297
+ "name": "lastUnderlyingBal",
1298
+ "inputs": [],
1299
+ "outputs": [
1300
+ {
1301
+ "name": "",
1302
+ "type": "uint256"
1303
+ }
1304
+ ]
1305
+ },
1306
+ {
1307
+ "stateMutability": "view",
1308
+ "type": "function",
1309
+ "name": "pendingYieldRealized",
1310
+ "inputs": [],
1311
+ "outputs": [
1312
+ {
1313
+ "name": "",
1314
+ "type": "uint256"
1315
+ }
1316
+ ]
1317
+ },
1318
+ {
1319
+ "stateMutability": "view",
1320
+ "type": "function",
1321
+ "name": "vaultToLegoId",
1322
+ "inputs": [
1323
+ {
1324
+ "name": "arg0",
1325
+ "type": "address"
1326
+ }
1327
+ ],
1328
+ "outputs": [
1329
+ {
1330
+ "name": "",
1331
+ "type": "uint256"
1332
+ }
1333
+ ]
1334
+ },
1335
+ {
1336
+ "stateMutability": "view",
1337
+ "type": "function",
1338
+ "name": "assets",
1339
+ "inputs": [
1340
+ {
1341
+ "name": "arg0",
1342
+ "type": "uint256"
1343
+ }
1344
+ ],
1345
+ "outputs": [
1346
+ {
1347
+ "name": "",
1348
+ "type": "address"
1349
+ }
1350
+ ]
1351
+ },
1352
+ {
1353
+ "stateMutability": "view",
1354
+ "type": "function",
1355
+ "name": "indexOfAsset",
1356
+ "inputs": [
1357
+ {
1358
+ "name": "arg0",
1359
+ "type": "address"
1360
+ }
1361
+ ],
1362
+ "outputs": [
1363
+ {
1364
+ "name": "",
1365
+ "type": "uint256"
1366
+ }
1367
+ ]
1368
+ },
1369
+ {
1370
+ "stateMutability": "view",
1371
+ "type": "function",
1372
+ "name": "numAssets",
1373
+ "inputs": [],
1374
+ "outputs": [
1375
+ {
1376
+ "name": "",
1377
+ "type": "uint256"
1378
+ }
1379
+ ]
1380
+ },
1381
+ {
1382
+ "stateMutability": "view",
1383
+ "type": "function",
1384
+ "name": "managers",
1385
+ "inputs": [
1386
+ {
1387
+ "name": "arg0",
1388
+ "type": "uint256"
1389
+ }
1390
+ ],
1391
+ "outputs": [
1392
+ {
1393
+ "name": "",
1394
+ "type": "address"
1395
+ }
1396
+ ]
1397
+ },
1398
+ {
1399
+ "stateMutability": "view",
1400
+ "type": "function",
1401
+ "name": "indexOfManager",
1402
+ "inputs": [
1403
+ {
1404
+ "name": "arg0",
1405
+ "type": "address"
1406
+ }
1407
+ ],
1408
+ "outputs": [
1409
+ {
1410
+ "name": "",
1411
+ "type": "uint256"
1412
+ }
1413
+ ]
1414
+ },
1415
+ {
1416
+ "stateMutability": "view",
1417
+ "type": "function",
1418
+ "name": "numManagers",
1419
+ "inputs": [],
1420
+ "outputs": [
1421
+ {
1422
+ "name": "",
1423
+ "type": "uint256"
1424
+ }
1425
+ ]
1426
+ },
1427
+ {
1428
+ "stateMutability": "view",
1429
+ "type": "function",
1430
+ "name": "asset",
1431
+ "inputs": [],
1432
+ "outputs": [
1433
+ {
1434
+ "name": "",
1435
+ "type": "address"
1436
+ }
1437
+ ]
1438
+ },
1439
+ {
1440
+ "stateMutability": "view",
1441
+ "type": "function",
1442
+ "name": "totalAssets",
1443
+ "inputs": [],
1444
+ "outputs": [
1445
+ {
1446
+ "name": "",
1447
+ "type": "uint256"
1448
+ }
1449
+ ]
1450
+ },
1451
+ {
1452
+ "stateMutability": "view",
1453
+ "type": "function",
1454
+ "name": "getTotalAssets",
1455
+ "inputs": [
1456
+ {
1457
+ "name": "_shouldGetMax",
1458
+ "type": "bool"
1459
+ }
1460
+ ],
1461
+ "outputs": [
1462
+ {
1463
+ "name": "",
1464
+ "type": "uint256"
1465
+ }
1466
+ ]
1467
+ },
1468
+ {
1469
+ "stateMutability": "view",
1470
+ "type": "function",
1471
+ "name": "maxDeposit",
1472
+ "inputs": [
1473
+ {
1474
+ "name": "_receiver",
1475
+ "type": "address"
1476
+ }
1477
+ ],
1478
+ "outputs": [
1479
+ {
1480
+ "name": "",
1481
+ "type": "uint256"
1482
+ }
1483
+ ]
1484
+ },
1485
+ {
1486
+ "stateMutability": "view",
1487
+ "type": "function",
1488
+ "name": "previewDeposit",
1489
+ "inputs": [
1490
+ {
1491
+ "name": "_assets",
1492
+ "type": "uint256"
1493
+ }
1494
+ ],
1495
+ "outputs": [
1496
+ {
1497
+ "name": "",
1498
+ "type": "uint256"
1499
+ }
1500
+ ]
1501
+ },
1502
+ {
1503
+ "stateMutability": "nonpayable",
1504
+ "type": "function",
1505
+ "name": "deposit",
1506
+ "inputs": [
1507
+ {
1508
+ "name": "_assets",
1509
+ "type": "uint256"
1510
+ }
1511
+ ],
1512
+ "outputs": [
1513
+ {
1514
+ "name": "",
1515
+ "type": "uint256"
1516
+ }
1517
+ ]
1518
+ },
1519
+ {
1520
+ "stateMutability": "nonpayable",
1521
+ "type": "function",
1522
+ "name": "deposit",
1523
+ "inputs": [
1524
+ {
1525
+ "name": "_assets",
1526
+ "type": "uint256"
1527
+ },
1528
+ {
1529
+ "name": "_receiver",
1530
+ "type": "address"
1531
+ }
1532
+ ],
1533
+ "outputs": [
1534
+ {
1535
+ "name": "",
1536
+ "type": "uint256"
1537
+ }
1538
+ ]
1539
+ },
1540
+ {
1541
+ "stateMutability": "nonpayable",
1542
+ "type": "function",
1543
+ "name": "depositWithMinAmountOut",
1544
+ "inputs": [
1545
+ {
1546
+ "name": "_assets",
1547
+ "type": "uint256"
1548
+ },
1549
+ {
1550
+ "name": "_minAmountOut",
1551
+ "type": "uint256"
1552
+ }
1553
+ ],
1554
+ "outputs": [
1555
+ {
1556
+ "name": "",
1557
+ "type": "uint256"
1558
+ }
1559
+ ]
1560
+ },
1561
+ {
1562
+ "stateMutability": "nonpayable",
1563
+ "type": "function",
1564
+ "name": "depositWithMinAmountOut",
1565
+ "inputs": [
1566
+ {
1567
+ "name": "_assets",
1568
+ "type": "uint256"
1569
+ },
1570
+ {
1571
+ "name": "_minAmountOut",
1572
+ "type": "uint256"
1573
+ },
1574
+ {
1575
+ "name": "_receiver",
1576
+ "type": "address"
1577
+ }
1578
+ ],
1579
+ "outputs": [
1580
+ {
1581
+ "name": "",
1582
+ "type": "uint256"
1583
+ }
1584
+ ]
1585
+ },
1586
+ {
1587
+ "stateMutability": "view",
1588
+ "type": "function",
1589
+ "name": "maxMint",
1590
+ "inputs": [
1591
+ {
1592
+ "name": "_receiver",
1593
+ "type": "address"
1594
+ }
1595
+ ],
1596
+ "outputs": [
1597
+ {
1598
+ "name": "",
1599
+ "type": "uint256"
1600
+ }
1601
+ ]
1602
+ },
1603
+ {
1604
+ "stateMutability": "view",
1605
+ "type": "function",
1606
+ "name": "previewMint",
1607
+ "inputs": [
1608
+ {
1609
+ "name": "_shares",
1610
+ "type": "uint256"
1611
+ }
1612
+ ],
1613
+ "outputs": [
1614
+ {
1615
+ "name": "",
1616
+ "type": "uint256"
1617
+ }
1618
+ ]
1619
+ },
1620
+ {
1621
+ "stateMutability": "nonpayable",
1622
+ "type": "function",
1623
+ "name": "mint",
1624
+ "inputs": [
1625
+ {
1626
+ "name": "_shares",
1627
+ "type": "uint256"
1628
+ }
1629
+ ],
1630
+ "outputs": [
1631
+ {
1632
+ "name": "",
1633
+ "type": "uint256"
1634
+ }
1635
+ ]
1636
+ },
1637
+ {
1638
+ "stateMutability": "nonpayable",
1639
+ "type": "function",
1640
+ "name": "mint",
1641
+ "inputs": [
1642
+ {
1643
+ "name": "_shares",
1644
+ "type": "uint256"
1645
+ },
1646
+ {
1647
+ "name": "_receiver",
1648
+ "type": "address"
1649
+ }
1650
+ ],
1651
+ "outputs": [
1652
+ {
1653
+ "name": "",
1654
+ "type": "uint256"
1655
+ }
1656
+ ]
1657
+ },
1658
+ {
1659
+ "stateMutability": "view",
1660
+ "type": "function",
1661
+ "name": "maxWithdraw",
1662
+ "inputs": [
1663
+ {
1664
+ "name": "_owner",
1665
+ "type": "address"
1666
+ }
1667
+ ],
1668
+ "outputs": [
1669
+ {
1670
+ "name": "",
1671
+ "type": "uint256"
1672
+ }
1673
+ ]
1674
+ },
1675
+ {
1676
+ "stateMutability": "view",
1677
+ "type": "function",
1678
+ "name": "previewWithdraw",
1679
+ "inputs": [
1680
+ {
1681
+ "name": "_assets",
1682
+ "type": "uint256"
1683
+ }
1684
+ ],
1685
+ "outputs": [
1686
+ {
1687
+ "name": "",
1688
+ "type": "uint256"
1689
+ }
1690
+ ]
1691
+ },
1692
+ {
1693
+ "stateMutability": "nonpayable",
1694
+ "type": "function",
1695
+ "name": "withdraw",
1696
+ "inputs": [
1697
+ {
1698
+ "name": "_assets",
1699
+ "type": "uint256"
1700
+ }
1701
+ ],
1702
+ "outputs": [
1703
+ {
1704
+ "name": "",
1705
+ "type": "uint256"
1706
+ }
1707
+ ]
1708
+ },
1709
+ {
1710
+ "stateMutability": "nonpayable",
1711
+ "type": "function",
1712
+ "name": "withdraw",
1713
+ "inputs": [
1714
+ {
1715
+ "name": "_assets",
1716
+ "type": "uint256"
1717
+ },
1718
+ {
1719
+ "name": "_receiver",
1720
+ "type": "address"
1721
+ }
1722
+ ],
1723
+ "outputs": [
1724
+ {
1725
+ "name": "",
1726
+ "type": "uint256"
1727
+ }
1728
+ ]
1729
+ },
1730
+ {
1731
+ "stateMutability": "nonpayable",
1732
+ "type": "function",
1733
+ "name": "withdraw",
1734
+ "inputs": [
1735
+ {
1736
+ "name": "_assets",
1737
+ "type": "uint256"
1738
+ },
1739
+ {
1740
+ "name": "_receiver",
1741
+ "type": "address"
1742
+ },
1743
+ {
1744
+ "name": "_owner",
1745
+ "type": "address"
1746
+ }
1747
+ ],
1748
+ "outputs": [
1749
+ {
1750
+ "name": "",
1751
+ "type": "uint256"
1752
+ }
1753
+ ]
1754
+ },
1755
+ {
1756
+ "stateMutability": "view",
1757
+ "type": "function",
1758
+ "name": "maxRedeem",
1759
+ "inputs": [
1760
+ {
1761
+ "name": "_owner",
1762
+ "type": "address"
1763
+ }
1764
+ ],
1765
+ "outputs": [
1766
+ {
1767
+ "name": "",
1768
+ "type": "uint256"
1769
+ }
1770
+ ]
1771
+ },
1772
+ {
1773
+ "stateMutability": "view",
1774
+ "type": "function",
1775
+ "name": "previewRedeem",
1776
+ "inputs": [
1777
+ {
1778
+ "name": "_shares",
1779
+ "type": "uint256"
1780
+ }
1781
+ ],
1782
+ "outputs": [
1783
+ {
1784
+ "name": "",
1785
+ "type": "uint256"
1786
+ }
1787
+ ]
1788
+ },
1789
+ {
1790
+ "stateMutability": "nonpayable",
1791
+ "type": "function",
1792
+ "name": "redeem",
1793
+ "inputs": [
1794
+ {
1795
+ "name": "_shares",
1796
+ "type": "uint256"
1797
+ }
1798
+ ],
1799
+ "outputs": [
1800
+ {
1801
+ "name": "",
1802
+ "type": "uint256"
1803
+ }
1804
+ ]
1805
+ },
1806
+ {
1807
+ "stateMutability": "nonpayable",
1808
+ "type": "function",
1809
+ "name": "redeem",
1810
+ "inputs": [
1811
+ {
1812
+ "name": "_shares",
1813
+ "type": "uint256"
1814
+ },
1815
+ {
1816
+ "name": "_receiver",
1817
+ "type": "address"
1818
+ }
1819
+ ],
1820
+ "outputs": [
1821
+ {
1822
+ "name": "",
1823
+ "type": "uint256"
1824
+ }
1825
+ ]
1826
+ },
1827
+ {
1828
+ "stateMutability": "nonpayable",
1829
+ "type": "function",
1830
+ "name": "redeem",
1831
+ "inputs": [
1832
+ {
1833
+ "name": "_shares",
1834
+ "type": "uint256"
1835
+ },
1836
+ {
1837
+ "name": "_receiver",
1838
+ "type": "address"
1839
+ },
1840
+ {
1841
+ "name": "_owner",
1842
+ "type": "address"
1843
+ }
1844
+ ],
1845
+ "outputs": [
1846
+ {
1847
+ "name": "",
1848
+ "type": "uint256"
1849
+ }
1850
+ ]
1851
+ },
1852
+ {
1853
+ "stateMutability": "nonpayable",
1854
+ "type": "function",
1855
+ "name": "redeemWithMinAmountOut",
1856
+ "inputs": [
1857
+ {
1858
+ "name": "_shares",
1859
+ "type": "uint256"
1860
+ },
1861
+ {
1862
+ "name": "_minAmountOut",
1863
+ "type": "uint256"
1864
+ }
1865
+ ],
1866
+ "outputs": [
1867
+ {
1868
+ "name": "",
1869
+ "type": "uint256"
1870
+ }
1871
+ ]
1872
+ },
1873
+ {
1874
+ "stateMutability": "nonpayable",
1875
+ "type": "function",
1876
+ "name": "redeemWithMinAmountOut",
1877
+ "inputs": [
1878
+ {
1879
+ "name": "_shares",
1880
+ "type": "uint256"
1881
+ },
1882
+ {
1883
+ "name": "_minAmountOut",
1884
+ "type": "uint256"
1885
+ },
1886
+ {
1887
+ "name": "_receiver",
1888
+ "type": "address"
1889
+ }
1890
+ ],
1891
+ "outputs": [
1892
+ {
1893
+ "name": "",
1894
+ "type": "uint256"
1895
+ }
1896
+ ]
1897
+ },
1898
+ {
1899
+ "stateMutability": "nonpayable",
1900
+ "type": "function",
1901
+ "name": "redeemWithMinAmountOut",
1902
+ "inputs": [
1903
+ {
1904
+ "name": "_shares",
1905
+ "type": "uint256"
1906
+ },
1907
+ {
1908
+ "name": "_minAmountOut",
1909
+ "type": "uint256"
1910
+ },
1911
+ {
1912
+ "name": "_receiver",
1913
+ "type": "address"
1914
+ },
1915
+ {
1916
+ "name": "_owner",
1917
+ "type": "address"
1918
+ }
1919
+ ],
1920
+ "outputs": [
1921
+ {
1922
+ "name": "",
1923
+ "type": "uint256"
1924
+ }
1925
+ ]
1926
+ },
1927
+ {
1928
+ "stateMutability": "view",
1929
+ "type": "function",
1930
+ "name": "convertToShares",
1931
+ "inputs": [
1932
+ {
1933
+ "name": "_assets",
1934
+ "type": "uint256"
1935
+ }
1936
+ ],
1937
+ "outputs": [
1938
+ {
1939
+ "name": "",
1940
+ "type": "uint256"
1941
+ }
1942
+ ]
1943
+ },
1944
+ {
1945
+ "stateMutability": "view",
1946
+ "type": "function",
1947
+ "name": "convertToSharesSafe",
1948
+ "inputs": [
1949
+ {
1950
+ "name": "_assets",
1951
+ "type": "uint256"
1952
+ }
1953
+ ],
1954
+ "outputs": [
1955
+ {
1956
+ "name": "",
1957
+ "type": "uint256"
1958
+ }
1959
+ ]
1960
+ },
1961
+ {
1962
+ "stateMutability": "view",
1963
+ "type": "function",
1964
+ "name": "convertToAssets",
1965
+ "inputs": [
1966
+ {
1967
+ "name": "_shares",
1968
+ "type": "uint256"
1969
+ }
1970
+ ],
1971
+ "outputs": [
1972
+ {
1973
+ "name": "",
1974
+ "type": "uint256"
1975
+ }
1976
+ ]
1977
+ },
1978
+ {
1979
+ "stateMutability": "view",
1980
+ "type": "function",
1981
+ "name": "convertToAssetsSafe",
1982
+ "inputs": [
1983
+ {
1984
+ "name": "_shares",
1985
+ "type": "uint256"
1986
+ }
1987
+ ],
1988
+ "outputs": [
1989
+ {
1990
+ "name": "",
1991
+ "type": "uint256"
1992
+ }
1993
+ ]
1994
+ },
1995
+ {
1996
+ "stateMutability": "nonpayable",
1997
+ "type": "constructor",
1998
+ "inputs": [
1999
+ {
2000
+ "name": "_asset",
2001
+ "type": "address"
2002
+ },
2003
+ {
2004
+ "name": "_tokenName",
2005
+ "type": "string"
2006
+ },
2007
+ {
2008
+ "name": "_tokenSymbol",
2009
+ "type": "string"
2010
+ },
2011
+ {
2012
+ "name": "_undyHq",
2013
+ "type": "address"
2014
+ },
2015
+ {
2016
+ "name": "_minHqTimeLock",
2017
+ "type": "uint256"
2018
+ },
2019
+ {
2020
+ "name": "_maxHqTimeLock",
2021
+ "type": "uint256"
2022
+ },
2023
+ {
2024
+ "name": "_startingAgent",
2025
+ "type": "address"
2026
+ }
2027
+ ],
2028
+ "outputs": []
2029
+ }
2030
+ ];
2031
+ export const deployAddress = '0x220b8B08c8CfD6975ed203AA26887c0AA5a8cf44';
2032
+ function getRequest(method, args, contractAddressOrOptions) {
2033
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2034
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
2035
+ const call = {
2036
+ contractName: 'UndyGho',
2037
+ method,
2038
+ args,
2039
+ address,
2040
+ deployAddress,
2041
+ defaultValue,
2042
+ getAbi: () => abi,
2043
+ with: (options) => {
2044
+ call.address = options.contractAddress;
2045
+ call.defaultValue = options.defaultValue;
2046
+ return call;
2047
+ },
2048
+ defaultTo: (defaultValue) => {
2049
+ call.defaultValue = defaultValue;
2050
+ return call;
2051
+ },
2052
+ at: (address) => {
2053
+ call.address = address;
2054
+ return call;
2055
+ },
2056
+ };
2057
+ return call;
2058
+ }
2059
+ export const call = {
2060
+ name: (...args) => getRequest('name', args),
2061
+ symbol: (...args) => getRequest('symbol', args),
2062
+ decimals: (...args) => getRequest('decimals', args),
2063
+ DOMAIN_SEPARATOR: (...args) => getRequest('DOMAIN_SEPARATOR', args),
2064
+ undyHq: (...args) => getRequest('undyHq', args),
2065
+ blacklisted: (...args) => getRequest('blacklisted', args),
2066
+ isPaused: (...args) => getRequest('isPaused', args),
2067
+ balanceOf: (...args) => getRequest('balanceOf', args),
2068
+ allowance: (...args) => getRequest('allowance', args),
2069
+ totalSupply: (...args) => getRequest('totalSupply', args),
2070
+ TOKEN_NAME: (...args) => getRequest('TOKEN_NAME', args),
2071
+ TOKEN_SYMBOL: (...args) => getRequest('TOKEN_SYMBOL', args),
2072
+ TOKEN_DECIMALS: (...args) => getRequest('TOKEN_DECIMALS', args),
2073
+ VERSION: (...args) => getRequest('VERSION', args),
2074
+ nonces: (...args) => getRequest('nonces', args),
2075
+ getClaimablePerformanceFees: (...args) => getRequest('getClaimablePerformanceFees', args),
2076
+ lastUnderlyingBal: (...args) => getRequest('lastUnderlyingBal', args),
2077
+ pendingYieldRealized: (...args) => getRequest('pendingYieldRealized', args),
2078
+ vaultToLegoId: (...args) => getRequest('vaultToLegoId', args),
2079
+ assets: (...args) => getRequest('assets', args),
2080
+ indexOfAsset: (...args) => getRequest('indexOfAsset', args),
2081
+ numAssets: (...args) => getRequest('numAssets', args),
2082
+ managers: (...args) => getRequest('managers', args),
2083
+ indexOfManager: (...args) => getRequest('indexOfManager', args),
2084
+ numManagers: (...args) => getRequest('numManagers', args),
2085
+ asset: (...args) => getRequest('asset', args),
2086
+ totalAssets: (...args) => getRequest('totalAssets', args),
2087
+ getTotalAssets: (...args) => getRequest('getTotalAssets', args),
2088
+ maxDeposit: (...args) => getRequest('maxDeposit', args),
2089
+ previewDeposit: (...args) => getRequest('previewDeposit', args),
2090
+ maxMint: (...args) => getRequest('maxMint', args),
2091
+ previewMint: (...args) => getRequest('previewMint', args),
2092
+ maxWithdraw: (...args) => getRequest('maxWithdraw', args),
2093
+ previewWithdraw: (...args) => getRequest('previewWithdraw', args),
2094
+ maxRedeem: (...args) => getRequest('maxRedeem', args),
2095
+ previewRedeem: (...args) => getRequest('previewRedeem', args),
2096
+ convertToShares: (...args) => getRequest('convertToShares', args),
2097
+ convertToSharesSafe: (...args) => getRequest('convertToSharesSafe', args),
2098
+ convertToAssets: (...args) => getRequest('convertToAssets', args),
2099
+ convertToAssetsSafe: (...args) => getRequest('convertToAssetsSafe', args),
2100
+ };
2101
+ function getMutation(functionName) {
2102
+ return {
2103
+ contractName: 'UndyGho',
2104
+ functionName,
2105
+ deployAddress,
2106
+ argsType: undefined,
2107
+ getAbi: () => abi,
2108
+ };
2109
+ }
2110
+ export const mutation = {
2111
+ transfer: getMutation('transfer'),
2112
+ transferFrom: getMutation('transferFrom'),
2113
+ approve: getMutation('approve'),
2114
+ increaseAllowance: getMutation('increaseAllowance'),
2115
+ decreaseAllowance: getMutation('decreaseAllowance'),
2116
+ burn: getMutation('burn'),
2117
+ permit: getMutation('permit'),
2118
+ setBlacklist: getMutation('setBlacklist'),
2119
+ burnBlacklistTokens: getMutation('burnBlacklistTokens'),
2120
+ pause: getMutation('pause'),
2121
+ depositForYield: getMutation('depositForYield'),
2122
+ withdrawFromYield: getMutation('withdrawFromYield'),
2123
+ swapTokens: getMutation('swapTokens'),
2124
+ claimIncentives: getMutation('claimIncentives'),
2125
+ claimPerformanceFees: getMutation('claimPerformanceFees'),
2126
+ updateYieldPosition: getMutation('updateYieldPosition'),
2127
+ addManager: getMutation('addManager'),
2128
+ removeManager: getMutation('removeManager'),
2129
+ deposit: getMutation('deposit'),
2130
+ depositWithMinAmountOut: getMutation('depositWithMinAmountOut'),
2131
+ mint: getMutation('mint'),
2132
+ withdraw: getMutation('withdraw'),
2133
+ redeem: getMutation('redeem'),
2134
+ redeemWithMinAmountOut: getMutation('redeemWithMinAmountOut'),
2135
+ };
2136
+ export function parseEvents(eventName, events) {
2137
+ return events.map((event) => {
2138
+ return {
2139
+ event,
2140
+ parsed: parseEventLogs({
2141
+ abi,
2142
+ eventName,
2143
+ logs: [event],
2144
+ }),
2145
+ };
2146
+ });
2147
+ }
2148
+ export function getEventTopic(eventName) {
2149
+ return encodeEventTopics({ abi, eventName })[0];
2150
+ }
2151
+ export function toSdk(publicClient, walletClient, addressResolver) {
2152
+ return {
2153
+ deployAddress,
2154
+ abi,
2155
+ events: {
2156
+ Deposit: { topic: getEventTopic('Deposit'), parse: (events) => parseEvents('Deposit', events) },
2157
+ Withdraw: { topic: getEventTopic('Withdraw'), parse: (events) => parseEvents('Withdraw', events) },
2158
+ Transfer: { topic: getEventTopic('Transfer'), parse: (events) => parseEvents('Transfer', events) },
2159
+ Approval: { topic: getEventTopic('Approval'), parse: (events) => parseEvents('Approval', events) },
2160
+ BlacklistModified: { topic: getEventTopic('BlacklistModified'), parse: (events) => parseEvents('BlacklistModified', events) },
2161
+ TokenPauseModified: { topic: getEventTopic('TokenPauseModified'), parse: (events) => parseEvents('TokenPauseModified', events) },
2162
+ EarnVaultDeposit: { topic: getEventTopic('EarnVaultDeposit'), parse: (events) => parseEvents('EarnVaultDeposit', events) },
2163
+ EarnVaultWithdrawal: { topic: getEventTopic('EarnVaultWithdrawal'), parse: (events) => parseEvents('EarnVaultWithdrawal', events) },
2164
+ EarnVaultSwap: { topic: getEventTopic('EarnVaultSwap'), parse: (events) => parseEvents('EarnVaultSwap', events) },
2165
+ EarnVaultRewardsClaim: { topic: getEventTopic('EarnVaultRewardsClaim'), parse: (events) => parseEvents('EarnVaultRewardsClaim', events) },
2166
+ PerformanceFeesClaimed: { topic: getEventTopic('PerformanceFeesClaimed'), parse: (events) => parseEvents('PerformanceFeesClaimed', events) },
2167
+ },
2168
+ // Queries
2169
+ name: (...args) => singleQuery(publicClient, call.name(...args), {}, addressResolver),
2170
+ symbol: (...args) => singleQuery(publicClient, call.symbol(...args), {}, addressResolver),
2171
+ decimals: (...args) => singleQuery(publicClient, call.decimals(...args), {}, addressResolver),
2172
+ DOMAIN_SEPARATOR: (...args) => singleQuery(publicClient, call.DOMAIN_SEPARATOR(...args), {}, addressResolver),
2173
+ undyHq: (...args) => singleQuery(publicClient, call.undyHq(...args), {}, addressResolver),
2174
+ blacklisted: (...args) => singleQuery(publicClient, call.blacklisted(...args), {}, addressResolver),
2175
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args), {}, addressResolver),
2176
+ balanceOf: (...args) => singleQuery(publicClient, call.balanceOf(...args), {}, addressResolver),
2177
+ allowance: (...args) => singleQuery(publicClient, call.allowance(...args), {}, addressResolver),
2178
+ totalSupply: (...args) => singleQuery(publicClient, call.totalSupply(...args), {}, addressResolver),
2179
+ TOKEN_NAME: (...args) => singleQuery(publicClient, call.TOKEN_NAME(...args), {}, addressResolver),
2180
+ TOKEN_SYMBOL: (...args) => singleQuery(publicClient, call.TOKEN_SYMBOL(...args), {}, addressResolver),
2181
+ TOKEN_DECIMALS: (...args) => singleQuery(publicClient, call.TOKEN_DECIMALS(...args), {}, addressResolver),
2182
+ VERSION: (...args) => singleQuery(publicClient, call.VERSION(...args), {}, addressResolver),
2183
+ nonces: (...args) => singleQuery(publicClient, call.nonces(...args), {}, addressResolver),
2184
+ getClaimablePerformanceFees: (...args) => singleQuery(publicClient, call.getClaimablePerformanceFees(...args), {}, addressResolver),
2185
+ lastUnderlyingBal: (...args) => singleQuery(publicClient, call.lastUnderlyingBal(...args), {}, addressResolver),
2186
+ pendingYieldRealized: (...args) => singleQuery(publicClient, call.pendingYieldRealized(...args), {}, addressResolver),
2187
+ vaultToLegoId: (...args) => singleQuery(publicClient, call.vaultToLegoId(...args), {}, addressResolver),
2188
+ assets: (...args) => singleQuery(publicClient, call.assets(...args), {}, addressResolver),
2189
+ indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args), {}, addressResolver),
2190
+ numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args), {}, addressResolver),
2191
+ managers: (...args) => singleQuery(publicClient, call.managers(...args), {}, addressResolver),
2192
+ indexOfManager: (...args) => singleQuery(publicClient, call.indexOfManager(...args), {}, addressResolver),
2193
+ numManagers: (...args) => singleQuery(publicClient, call.numManagers(...args), {}, addressResolver),
2194
+ asset: (...args) => singleQuery(publicClient, call.asset(...args), {}, addressResolver),
2195
+ totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args), {}, addressResolver),
2196
+ getTotalAssets: (...args) => singleQuery(publicClient, call.getTotalAssets(...args), {}, addressResolver),
2197
+ maxDeposit: (...args) => singleQuery(publicClient, call.maxDeposit(...args), {}, addressResolver),
2198
+ previewDeposit: (...args) => singleQuery(publicClient, call.previewDeposit(...args), {}, addressResolver),
2199
+ maxMint: (...args) => singleQuery(publicClient, call.maxMint(...args), {}, addressResolver),
2200
+ previewMint: (...args) => singleQuery(publicClient, call.previewMint(...args), {}, addressResolver),
2201
+ maxWithdraw: (...args) => singleQuery(publicClient, call.maxWithdraw(...args), {}, addressResolver),
2202
+ previewWithdraw: (...args) => singleQuery(publicClient, call.previewWithdraw(...args), {}, addressResolver),
2203
+ maxRedeem: (...args) => singleQuery(publicClient, call.maxRedeem(...args), {}, addressResolver),
2204
+ previewRedeem: (...args) => singleQuery(publicClient, call.previewRedeem(...args), {}, addressResolver),
2205
+ convertToShares: (...args) => singleQuery(publicClient, call.convertToShares(...args), {}, addressResolver),
2206
+ convertToSharesSafe: (...args) => singleQuery(publicClient, call.convertToSharesSafe(...args), {}, addressResolver),
2207
+ convertToAssets: (...args) => singleQuery(publicClient, call.convertToAssets(...args), {}, addressResolver),
2208
+ convertToAssetsSafe: (...args) => singleQuery(publicClient, call.convertToAssetsSafe(...args), {}, addressResolver),
2209
+ // Mutations
2210
+ transfer: (...args) => mutate(walletClient, mutation.transfer, { addressResolver })(...args),
2211
+ transferFrom: (...args) => mutate(walletClient, mutation.transferFrom, { addressResolver })(...args),
2212
+ approve: (...args) => mutate(walletClient, mutation.approve, { addressResolver })(...args),
2213
+ increaseAllowance: (...args) => mutate(walletClient, mutation.increaseAllowance, { addressResolver })(...args),
2214
+ decreaseAllowance: (...args) => mutate(walletClient, mutation.decreaseAllowance, { addressResolver })(...args),
2215
+ burn: (...args) => mutate(walletClient, mutation.burn, { addressResolver })(...args),
2216
+ permit: (...args) => mutate(walletClient, mutation.permit, { addressResolver })(...args),
2217
+ setBlacklist: (...args) => mutate(walletClient, mutation.setBlacklist, { addressResolver })(...args),
2218
+ burnBlacklistTokens: (...args) => mutate(walletClient, mutation.burnBlacklistTokens, { addressResolver })(...args),
2219
+ pause: (...args) => mutate(walletClient, mutation.pause, { addressResolver })(...args),
2220
+ depositForYield: (...args) => mutate(walletClient, mutation.depositForYield, { addressResolver })(...args),
2221
+ withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield, { addressResolver })(...args),
2222
+ swapTokens: (...args) => mutate(walletClient, mutation.swapTokens, { addressResolver })(...args),
2223
+ claimIncentives: (...args) => mutate(walletClient, mutation.claimIncentives, { addressResolver })(...args),
2224
+ claimPerformanceFees: (...args) => mutate(walletClient, mutation.claimPerformanceFees, { addressResolver })(...args),
2225
+ updateYieldPosition: (...args) => mutate(walletClient, mutation.updateYieldPosition, { addressResolver })(...args),
2226
+ addManager: (...args) => mutate(walletClient, mutation.addManager, { addressResolver })(...args),
2227
+ removeManager: (...args) => mutate(walletClient, mutation.removeManager, { addressResolver })(...args),
2228
+ deposit: (...args) => mutate(walletClient, mutation.deposit, { addressResolver })(...args),
2229
+ depositWithMinAmountOut: (...args) => mutate(walletClient, mutation.depositWithMinAmountOut, { addressResolver })(...args),
2230
+ mint: (...args) => mutate(walletClient, mutation.mint, { addressResolver })(...args),
2231
+ withdraw: (...args) => mutate(walletClient, mutation.withdraw, { addressResolver })(...args),
2232
+ redeem: (...args) => mutate(walletClient, mutation.redeem, { addressResolver })(...args),
2233
+ redeemWithMinAmountOut: (...args) => mutate(walletClient, mutation.redeemWithMinAmountOut, { addressResolver })(...args),
2234
+ };
2235
+ }