@underscore-finance/sdk 1.1.2 → 1.2.2

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