@underscore-finance/sdk 1.2.20-next.0 → 1.2.20-next.1

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