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