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