@underscore-finance/sdk 0.3.1 → 0.3.3

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 (130) hide show
  1. package/dist/contracts/AddyRegistry.d.ts +3 -1
  2. package/dist/contracts/AddyRegistry.d.ts.map +1 -1
  3. package/dist/contracts/AddyRegistry.js +50 -48
  4. package/dist/contracts/AddyRegistry_v1.d.ts +473 -0
  5. package/dist/contracts/AddyRegistry_v1.d.ts.map +1 -0
  6. package/dist/contracts/AddyRegistry_v1.js +594 -0
  7. package/dist/contracts/AddyRegistry_v2.d.ts +1050 -0
  8. package/dist/contracts/AddyRegistry_v2.d.ts.map +1 -0
  9. package/dist/contracts/AddyRegistry_v2.js +1313 -0
  10. package/dist/contracts/Agent.d.ts +3 -1
  11. package/dist/contracts/Agent.d.ts.map +1 -1
  12. package/dist/contracts/Agent.js +33 -31
  13. package/dist/contracts/AgentFactory.d.ts +3 -1
  14. package/dist/contracts/AgentFactory.d.ts.map +1 -1
  15. package/dist/contracts/AgentFactory.js +84 -82
  16. package/dist/contracts/AgentFactory_v1.d.ts +1054 -0
  17. package/dist/contracts/AgentFactory_v1.d.ts.map +1 -0
  18. package/dist/contracts/AgentFactory_v1.js +1336 -0
  19. package/dist/contracts/AgentFactory_v2.d.ts +19 -3
  20. package/dist/contracts/AgentFactory_v2.d.ts.map +1 -1
  21. package/dist/contracts/AgentFactory_v2.js +25 -4
  22. package/dist/contracts/Agent_v1.d.ts +3 -1
  23. package/dist/contracts/Agent_v1.d.ts.map +1 -1
  24. package/dist/contracts/Agent_v1.js +33 -31
  25. package/dist/contracts/Agent_v2.d.ts +2709 -0
  26. package/dist/contracts/Agent_v2.d.ts.map +1 -0
  27. package/dist/contracts/Agent_v2.js +3458 -0
  28. package/dist/contracts/ChainlinkFeeds.d.ts +2 -0
  29. package/dist/contracts/ChainlinkFeeds.d.ts.map +1 -1
  30. package/dist/contracts/ChainlinkFeeds.js +2 -0
  31. package/dist/contracts/ERC20.d.ts +3 -1
  32. package/dist/contracts/ERC20.d.ts.map +1 -1
  33. package/dist/contracts/ERC20.js +15 -13
  34. package/dist/contracts/LegoAaveV3.d.ts +2 -0
  35. package/dist/contracts/LegoAaveV3.d.ts.map +1 -1
  36. package/dist/contracts/LegoAaveV3.js +2 -0
  37. package/dist/contracts/LegoAeroClassic.d.ts +2 -0
  38. package/dist/contracts/LegoAeroClassic.d.ts.map +1 -1
  39. package/dist/contracts/LegoAeroClassic.js +2 -0
  40. package/dist/contracts/LegoAeroSlipstream.d.ts +2 -0
  41. package/dist/contracts/LegoAeroSlipstream.d.ts.map +1 -1
  42. package/dist/contracts/LegoAeroSlipstream.js +2 -0
  43. package/dist/contracts/LegoCommon.d.ts +3 -1
  44. package/dist/contracts/LegoCommon.d.ts.map +1 -1
  45. package/dist/contracts/LegoCommon.js +10 -8
  46. package/dist/contracts/LegoCompoundV3.d.ts +2 -0
  47. package/dist/contracts/LegoCompoundV3.d.ts.map +1 -1
  48. package/dist/contracts/LegoCompoundV3.js +2 -0
  49. package/dist/contracts/LegoCredit.d.ts +3 -1
  50. package/dist/contracts/LegoCredit.d.ts.map +1 -1
  51. package/dist/contracts/LegoCredit.js +5 -3
  52. package/dist/contracts/LegoCurve.d.ts +2 -0
  53. package/dist/contracts/LegoCurve.d.ts.map +1 -1
  54. package/dist/contracts/LegoCurve.js +2 -0
  55. package/dist/contracts/LegoDex.d.ts +3 -1
  56. package/dist/contracts/LegoDex.d.ts.map +1 -1
  57. package/dist/contracts/LegoDex.js +16 -14
  58. package/dist/contracts/LegoEuler.d.ts +2 -0
  59. package/dist/contracts/LegoEuler.d.ts.map +1 -1
  60. package/dist/contracts/LegoEuler.js +2 -0
  61. package/dist/contracts/LegoFluid.d.ts +2 -0
  62. package/dist/contracts/LegoFluid.d.ts.map +1 -1
  63. package/dist/contracts/LegoFluid.js +2 -0
  64. package/dist/contracts/LegoHelper.d.ts +3 -1
  65. package/dist/contracts/LegoHelper.d.ts.map +1 -1
  66. package/dist/contracts/LegoHelper.js +56 -54
  67. package/dist/contracts/LegoMoonwell.d.ts +2 -0
  68. package/dist/contracts/LegoMoonwell.d.ts.map +1 -1
  69. package/dist/contracts/LegoMoonwell.js +2 -0
  70. package/dist/contracts/LegoMorpho.d.ts +2 -0
  71. package/dist/contracts/LegoMorpho.d.ts.map +1 -1
  72. package/dist/contracts/LegoMorpho.js +2 -0
  73. package/dist/contracts/LegoRegistry.d.ts +3 -1
  74. package/dist/contracts/LegoRegistry.d.ts.map +1 -1
  75. package/dist/contracts/LegoRegistry.js +50 -48
  76. package/dist/contracts/LegoSky.d.ts +2 -0
  77. package/dist/contracts/LegoSky.d.ts.map +1 -1
  78. package/dist/contracts/LegoSky.js +2 -0
  79. package/dist/contracts/LegoUniswapV2.d.ts +2 -0
  80. package/dist/contracts/LegoUniswapV2.d.ts.map +1 -1
  81. package/dist/contracts/LegoUniswapV2.js +2 -0
  82. package/dist/contracts/LegoUniswapV3.d.ts +2 -0
  83. package/dist/contracts/LegoUniswapV3.d.ts.map +1 -1
  84. package/dist/contracts/LegoUniswapV3.js +2 -0
  85. package/dist/contracts/LegoYield.d.ts +3 -1
  86. package/dist/contracts/LegoYield.d.ts.map +1 -1
  87. package/dist/contracts/LegoYield.js +15 -13
  88. package/dist/contracts/OracleParser.d.ts +3 -1
  89. package/dist/contracts/OracleParser.d.ts.map +1 -1
  90. package/dist/contracts/OracleParser.js +9 -7
  91. package/dist/contracts/OracleRegistry.d.ts +3 -1
  92. package/dist/contracts/OracleRegistry.d.ts.map +1 -1
  93. package/dist/contracts/OracleRegistry.js +55 -53
  94. package/dist/contracts/PriceSheets.d.ts +3 -1
  95. package/dist/contracts/PriceSheets.d.ts.map +1 -1
  96. package/dist/contracts/PriceSheets.js +47 -45
  97. package/dist/contracts/PythFeeds.d.ts +2 -0
  98. package/dist/contracts/PythFeeds.d.ts.map +1 -1
  99. package/dist/contracts/PythFeeds.js +2 -0
  100. package/dist/contracts/StorkFeeds.d.ts +2 -0
  101. package/dist/contracts/StorkFeeds.d.ts.map +1 -1
  102. package/dist/contracts/StorkFeeds.js +2 -0
  103. package/dist/contracts/UserWallet.d.ts +3 -1
  104. package/dist/contracts/UserWallet.d.ts.map +1 -1
  105. package/dist/contracts/UserWallet.js +26 -24
  106. package/dist/contracts/UserWalletConfig.d.ts +3 -1
  107. package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
  108. package/dist/contracts/UserWalletConfig.js +65 -63
  109. package/dist/contracts/UserWalletConfig_v1.d.ts +1400 -0
  110. package/dist/contracts/UserWalletConfig_v1.d.ts.map +1 -0
  111. package/dist/contracts/UserWalletConfig_v1.js +1676 -0
  112. package/dist/contracts/UserWalletConfig_v2.d.ts +1468 -0
  113. package/dist/contracts/UserWalletConfig_v2.d.ts.map +1 -0
  114. package/dist/contracts/UserWalletConfig_v2.js +1764 -0
  115. package/dist/contracts/UserWallet_v1.d.ts +1980 -0
  116. package/dist/contracts/UserWallet_v1.d.ts.map +1 -0
  117. package/dist/contracts/UserWallet_v1.js +2581 -0
  118. package/dist/contracts/UserWallet_v2.d.ts +1958 -0
  119. package/dist/contracts/UserWallet_v2.d.ts.map +1 -0
  120. package/dist/contracts/UserWallet_v2.js +2553 -0
  121. package/dist/contracts/index.d.ts +8 -0
  122. package/dist/contracts/index.d.ts.map +1 -1
  123. package/dist/contracts/index.js +8 -0
  124. package/dist/contracts/sdk.d.ts +22 -6
  125. package/dist/contracts/sdk.d.ts.map +1 -1
  126. package/dist/contracts/sdk.js +22 -6
  127. package/dist/index.d.ts +405 -5
  128. package/dist/index.d.ts.map +1 -1
  129. package/dist/index.js +95 -7
  130. package/package.json +2 -1
@@ -0,0 +1,2553 @@
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: true,
12
+ name: 'signer',
13
+ type: 'address',
14
+ },
15
+ {
16
+ indexed: true,
17
+ name: 'asset',
18
+ type: 'address',
19
+ },
20
+ {
21
+ indexed: true,
22
+ name: 'vaultToken',
23
+ type: 'address',
24
+ },
25
+ {
26
+ indexed: false,
27
+ name: 'assetAmountDeposited',
28
+ type: 'uint256',
29
+ },
30
+ {
31
+ indexed: false,
32
+ name: 'vaultTokenAmountReceived',
33
+ type: 'uint256',
34
+ },
35
+ {
36
+ indexed: false,
37
+ name: 'refundAssetAmount',
38
+ type: 'uint256',
39
+ },
40
+ {
41
+ indexed: false,
42
+ name: 'usdValue',
43
+ type: 'uint256',
44
+ },
45
+ {
46
+ indexed: false,
47
+ name: 'legoId',
48
+ type: 'uint256',
49
+ },
50
+ {
51
+ indexed: false,
52
+ name: 'legoAddr',
53
+ type: 'address',
54
+ },
55
+ {
56
+ indexed: false,
57
+ name: 'isSignerAgent',
58
+ type: 'bool',
59
+ },
60
+ ],
61
+ name: 'UserWalletDeposit',
62
+ type: 'event',
63
+ },
64
+ {
65
+ anonymous: false,
66
+ inputs: [
67
+ {
68
+ indexed: true,
69
+ name: 'signer',
70
+ type: 'address',
71
+ },
72
+ {
73
+ indexed: true,
74
+ name: 'asset',
75
+ type: 'address',
76
+ },
77
+ {
78
+ indexed: true,
79
+ name: 'vaultToken',
80
+ type: 'address',
81
+ },
82
+ {
83
+ indexed: false,
84
+ name: 'assetAmountReceived',
85
+ type: 'uint256',
86
+ },
87
+ {
88
+ indexed: false,
89
+ name: 'vaultTokenAmountBurned',
90
+ type: 'uint256',
91
+ },
92
+ {
93
+ indexed: false,
94
+ name: 'refundVaultTokenAmount',
95
+ type: 'uint256',
96
+ },
97
+ {
98
+ indexed: false,
99
+ name: 'usdValue',
100
+ type: 'uint256',
101
+ },
102
+ {
103
+ indexed: false,
104
+ name: 'legoId',
105
+ type: 'uint256',
106
+ },
107
+ {
108
+ indexed: false,
109
+ name: 'legoAddr',
110
+ type: 'address',
111
+ },
112
+ {
113
+ indexed: false,
114
+ name: 'isSignerAgent',
115
+ type: 'bool',
116
+ },
117
+ ],
118
+ name: 'UserWalletWithdrawal',
119
+ type: 'event',
120
+ },
121
+ {
122
+ anonymous: false,
123
+ inputs: [
124
+ {
125
+ indexed: true,
126
+ name: 'signer',
127
+ type: 'address',
128
+ },
129
+ {
130
+ indexed: true,
131
+ name: 'tokenIn',
132
+ type: 'address',
133
+ },
134
+ {
135
+ indexed: true,
136
+ name: 'tokenOut',
137
+ type: 'address',
138
+ },
139
+ {
140
+ indexed: false,
141
+ name: 'swapAmount',
142
+ type: 'uint256',
143
+ },
144
+ {
145
+ indexed: false,
146
+ name: 'toAmount',
147
+ type: 'uint256',
148
+ },
149
+ {
150
+ indexed: false,
151
+ name: 'refundAssetAmount',
152
+ type: 'uint256',
153
+ },
154
+ {
155
+ indexed: false,
156
+ name: 'usdValue',
157
+ type: 'uint256',
158
+ },
159
+ {
160
+ indexed: false,
161
+ name: 'numTokens',
162
+ type: 'uint256',
163
+ },
164
+ {
165
+ indexed: false,
166
+ name: 'legoId',
167
+ type: 'uint256',
168
+ },
169
+ {
170
+ indexed: false,
171
+ name: 'legoAddr',
172
+ type: 'address',
173
+ },
174
+ {
175
+ indexed: false,
176
+ name: 'isSignerAgent',
177
+ type: 'bool',
178
+ },
179
+ ],
180
+ name: 'UserWalletSwap',
181
+ type: 'event',
182
+ },
183
+ {
184
+ anonymous: false,
185
+ inputs: [
186
+ {
187
+ indexed: true,
188
+ name: 'signer',
189
+ type: 'address',
190
+ },
191
+ {
192
+ indexed: true,
193
+ name: 'borrowAsset',
194
+ type: 'address',
195
+ },
196
+ {
197
+ indexed: false,
198
+ name: 'borrowAmount',
199
+ type: 'uint256',
200
+ },
201
+ {
202
+ indexed: false,
203
+ name: 'usdValue',
204
+ type: 'uint256',
205
+ },
206
+ {
207
+ indexed: false,
208
+ name: 'legoId',
209
+ type: 'uint256',
210
+ },
211
+ {
212
+ indexed: false,
213
+ name: 'legoAddr',
214
+ type: 'address',
215
+ },
216
+ {
217
+ indexed: false,
218
+ name: 'isSignerAgent',
219
+ type: 'bool',
220
+ },
221
+ ],
222
+ name: 'UserWalletBorrow',
223
+ type: 'event',
224
+ },
225
+ {
226
+ anonymous: false,
227
+ inputs: [
228
+ {
229
+ indexed: true,
230
+ name: 'signer',
231
+ type: 'address',
232
+ },
233
+ {
234
+ indexed: true,
235
+ name: 'paymentAsset',
236
+ type: 'address',
237
+ },
238
+ {
239
+ indexed: false,
240
+ name: 'paymentAmount',
241
+ type: 'uint256',
242
+ },
243
+ {
244
+ indexed: false,
245
+ name: 'usdValue',
246
+ type: 'uint256',
247
+ },
248
+ {
249
+ indexed: false,
250
+ name: 'remainingDebt',
251
+ type: 'uint256',
252
+ },
253
+ {
254
+ indexed: false,
255
+ name: 'legoId',
256
+ type: 'uint256',
257
+ },
258
+ {
259
+ indexed: true,
260
+ name: 'legoAddr',
261
+ type: 'address',
262
+ },
263
+ {
264
+ indexed: false,
265
+ name: 'isSignerAgent',
266
+ type: 'bool',
267
+ },
268
+ ],
269
+ name: 'UserWalletRepayDebt',
270
+ type: 'event',
271
+ },
272
+ {
273
+ anonymous: false,
274
+ inputs: [
275
+ {
276
+ indexed: true,
277
+ name: 'signer',
278
+ type: 'address',
279
+ },
280
+ {
281
+ indexed: true,
282
+ name: 'tokenA',
283
+ type: 'address',
284
+ },
285
+ {
286
+ indexed: true,
287
+ name: 'tokenB',
288
+ type: 'address',
289
+ },
290
+ {
291
+ indexed: false,
292
+ name: 'liqAmountA',
293
+ type: 'uint256',
294
+ },
295
+ {
296
+ indexed: false,
297
+ name: 'liqAmountB',
298
+ type: 'uint256',
299
+ },
300
+ {
301
+ indexed: false,
302
+ name: 'liquidityAdded',
303
+ type: 'uint256',
304
+ },
305
+ {
306
+ indexed: false,
307
+ name: 'pool',
308
+ type: 'address',
309
+ },
310
+ {
311
+ indexed: false,
312
+ name: 'usdValue',
313
+ type: 'uint256',
314
+ },
315
+ {
316
+ indexed: false,
317
+ name: 'refundAssetAmountA',
318
+ type: 'uint256',
319
+ },
320
+ {
321
+ indexed: false,
322
+ name: 'refundAssetAmountB',
323
+ type: 'uint256',
324
+ },
325
+ {
326
+ indexed: false,
327
+ name: 'nftTokenId',
328
+ type: 'uint256',
329
+ },
330
+ {
331
+ indexed: false,
332
+ name: 'legoId',
333
+ type: 'uint256',
334
+ },
335
+ {
336
+ indexed: false,
337
+ name: 'legoAddr',
338
+ type: 'address',
339
+ },
340
+ {
341
+ indexed: false,
342
+ name: 'isSignerAgent',
343
+ type: 'bool',
344
+ },
345
+ ],
346
+ name: 'UserWalletLiquidityAdded',
347
+ type: 'event',
348
+ },
349
+ {
350
+ anonymous: false,
351
+ inputs: [
352
+ {
353
+ indexed: true,
354
+ name: 'signer',
355
+ type: 'address',
356
+ },
357
+ {
358
+ indexed: true,
359
+ name: 'tokenA',
360
+ type: 'address',
361
+ },
362
+ {
363
+ indexed: false,
364
+ name: 'tokenB',
365
+ type: 'address',
366
+ },
367
+ {
368
+ indexed: false,
369
+ name: 'removedAmountA',
370
+ type: 'uint256',
371
+ },
372
+ {
373
+ indexed: false,
374
+ name: 'removedAmountB',
375
+ type: 'uint256',
376
+ },
377
+ {
378
+ indexed: false,
379
+ name: 'usdValue',
380
+ type: 'uint256',
381
+ },
382
+ {
383
+ indexed: false,
384
+ name: 'isDepleted',
385
+ type: 'bool',
386
+ },
387
+ {
388
+ indexed: false,
389
+ name: 'liquidityRemoved',
390
+ type: 'uint256',
391
+ },
392
+ {
393
+ indexed: true,
394
+ name: 'lpToken',
395
+ type: 'address',
396
+ },
397
+ {
398
+ indexed: false,
399
+ name: 'refundedLpAmount',
400
+ type: 'uint256',
401
+ },
402
+ {
403
+ indexed: false,
404
+ name: 'legoId',
405
+ type: 'uint256',
406
+ },
407
+ {
408
+ indexed: false,
409
+ name: 'legoAddr',
410
+ type: 'address',
411
+ },
412
+ {
413
+ indexed: false,
414
+ name: 'isSignerAgent',
415
+ type: 'bool',
416
+ },
417
+ ],
418
+ name: 'UserWalletLiquidityRemoved',
419
+ type: 'event',
420
+ },
421
+ {
422
+ anonymous: false,
423
+ inputs: [
424
+ {
425
+ indexed: true,
426
+ name: 'signer',
427
+ type: 'address',
428
+ },
429
+ {
430
+ indexed: true,
431
+ name: 'recipient',
432
+ type: 'address',
433
+ },
434
+ {
435
+ indexed: true,
436
+ name: 'asset',
437
+ type: 'address',
438
+ },
439
+ {
440
+ indexed: false,
441
+ name: 'amount',
442
+ type: 'uint256',
443
+ },
444
+ {
445
+ indexed: false,
446
+ name: 'usdValue',
447
+ type: 'uint256',
448
+ },
449
+ {
450
+ indexed: false,
451
+ name: 'isSignerAgent',
452
+ type: 'bool',
453
+ },
454
+ ],
455
+ name: 'UserWalletFundsTransferred',
456
+ type: 'event',
457
+ },
458
+ {
459
+ anonymous: false,
460
+ inputs: [
461
+ {
462
+ indexed: false,
463
+ name: 'signer',
464
+ type: 'address',
465
+ },
466
+ {
467
+ indexed: false,
468
+ name: 'market',
469
+ type: 'address',
470
+ },
471
+ {
472
+ indexed: false,
473
+ name: 'rewardToken',
474
+ type: 'address',
475
+ },
476
+ {
477
+ indexed: false,
478
+ name: 'rewardAmount',
479
+ type: 'uint256',
480
+ },
481
+ {
482
+ indexed: false,
483
+ name: 'usdValue',
484
+ type: 'uint256',
485
+ },
486
+ {
487
+ indexed: false,
488
+ name: 'proof',
489
+ type: 'bytes32',
490
+ },
491
+ {
492
+ indexed: false,
493
+ name: 'legoId',
494
+ type: 'uint256',
495
+ },
496
+ {
497
+ indexed: false,
498
+ name: 'legoAddr',
499
+ type: 'address',
500
+ },
501
+ {
502
+ indexed: false,
503
+ name: 'isSignerAgent',
504
+ type: 'bool',
505
+ },
506
+ ],
507
+ name: 'UserWalletRewardsClaimed',
508
+ type: 'event',
509
+ },
510
+ {
511
+ anonymous: false,
512
+ inputs: [
513
+ {
514
+ indexed: true,
515
+ name: 'signer',
516
+ type: 'address',
517
+ },
518
+ {
519
+ indexed: false,
520
+ name: 'amount',
521
+ type: 'uint256',
522
+ },
523
+ {
524
+ indexed: false,
525
+ name: 'paidEth',
526
+ type: 'uint256',
527
+ },
528
+ {
529
+ indexed: true,
530
+ name: 'weth',
531
+ type: 'address',
532
+ },
533
+ {
534
+ indexed: false,
535
+ name: 'isSignerAgent',
536
+ type: 'bool',
537
+ },
538
+ ],
539
+ name: 'UserWalletEthConvertedToWeth',
540
+ type: 'event',
541
+ },
542
+ {
543
+ anonymous: false,
544
+ inputs: [
545
+ {
546
+ indexed: true,
547
+ name: 'signer',
548
+ type: 'address',
549
+ },
550
+ {
551
+ indexed: false,
552
+ name: 'amount',
553
+ type: 'uint256',
554
+ },
555
+ {
556
+ indexed: true,
557
+ name: 'weth',
558
+ type: 'address',
559
+ },
560
+ {
561
+ indexed: false,
562
+ name: 'isSignerAgent',
563
+ type: 'bool',
564
+ },
565
+ ],
566
+ name: 'UserWalletWethConvertedToEth',
567
+ type: 'event',
568
+ },
569
+ {
570
+ anonymous: false,
571
+ inputs: [
572
+ {
573
+ indexed: true,
574
+ name: 'recipient',
575
+ type: 'address',
576
+ },
577
+ {
578
+ indexed: true,
579
+ name: 'asset',
580
+ type: 'address',
581
+ },
582
+ {
583
+ indexed: false,
584
+ name: 'amount',
585
+ type: 'uint256',
586
+ },
587
+ {
588
+ indexed: false,
589
+ name: 'usdValue',
590
+ type: 'uint256',
591
+ },
592
+ {
593
+ indexed: false,
594
+ name: 'paidThroughBlock',
595
+ type: 'uint256',
596
+ },
597
+ {
598
+ indexed: false,
599
+ name: 'isAgent',
600
+ type: 'bool',
601
+ },
602
+ ],
603
+ name: 'UserWalletSubscriptionPaid',
604
+ type: 'event',
605
+ },
606
+ {
607
+ anonymous: false,
608
+ inputs: [
609
+ {
610
+ indexed: true,
611
+ name: 'recipient',
612
+ type: 'address',
613
+ },
614
+ {
615
+ indexed: true,
616
+ name: 'asset',
617
+ type: 'address',
618
+ },
619
+ {
620
+ indexed: false,
621
+ name: 'amount',
622
+ type: 'uint256',
623
+ },
624
+ {
625
+ indexed: false,
626
+ name: 'fee',
627
+ type: 'uint256',
628
+ },
629
+ {
630
+ indexed: false,
631
+ name: 'action',
632
+ type: 'uint256',
633
+ },
634
+ ],
635
+ name: 'UserWalletTransactionFeePaid',
636
+ type: 'event',
637
+ },
638
+ {
639
+ anonymous: false,
640
+ inputs: [
641
+ {
642
+ indexed: true,
643
+ name: 'asset',
644
+ type: 'address',
645
+ },
646
+ {
647
+ indexed: false,
648
+ name: 'amountRecovered',
649
+ type: 'uint256',
650
+ },
651
+ {
652
+ indexed: false,
653
+ name: 'remainingAmount',
654
+ type: 'uint256',
655
+ },
656
+ ],
657
+ name: 'UserWalletTrialFundsRecovered',
658
+ type: 'event',
659
+ },
660
+ {
661
+ anonymous: false,
662
+ inputs: [
663
+ {
664
+ indexed: true,
665
+ name: 'collection',
666
+ type: 'address',
667
+ },
668
+ {
669
+ indexed: false,
670
+ name: 'nftTokenId',
671
+ type: 'uint256',
672
+ },
673
+ {
674
+ indexed: true,
675
+ name: 'owner',
676
+ type: 'address',
677
+ },
678
+ ],
679
+ name: 'UserWalletNftRecovered',
680
+ type: 'event',
681
+ },
682
+ {
683
+ stateMutability: 'payable',
684
+ type: 'fallback',
685
+ },
686
+ {
687
+ inputs: [
688
+ {
689
+ name: '_operator',
690
+ type: 'address',
691
+ },
692
+ {
693
+ name: '_owner',
694
+ type: 'address',
695
+ },
696
+ {
697
+ name: '_tokenId',
698
+ type: 'uint256',
699
+ },
700
+ {
701
+ name: '_data',
702
+ type: 'bytes',
703
+ },
704
+ ],
705
+ name: 'onERC721Received',
706
+ outputs: [
707
+ {
708
+ name: '',
709
+ type: 'bytes4',
710
+ },
711
+ ],
712
+ stateMutability: 'view',
713
+ type: 'function',
714
+ },
715
+ {
716
+ inputs: [],
717
+ name: 'apiVersion',
718
+ outputs: [
719
+ {
720
+ name: '',
721
+ type: 'string',
722
+ },
723
+ ],
724
+ stateMutability: 'pure',
725
+ type: 'function',
726
+ },
727
+ {
728
+ inputs: [
729
+ {
730
+ name: '_legoId',
731
+ type: 'uint256',
732
+ },
733
+ {
734
+ name: '_asset',
735
+ type: 'address',
736
+ },
737
+ {
738
+ name: '_vault',
739
+ type: 'address',
740
+ },
741
+ ],
742
+ name: 'depositTokens',
743
+ outputs: [
744
+ {
745
+ name: '',
746
+ type: 'uint256',
747
+ },
748
+ {
749
+ name: '',
750
+ type: 'address',
751
+ },
752
+ {
753
+ name: '',
754
+ type: 'uint256',
755
+ },
756
+ {
757
+ name: '',
758
+ type: 'uint256',
759
+ },
760
+ ],
761
+ stateMutability: 'nonpayable',
762
+ type: 'function',
763
+ },
764
+ {
765
+ inputs: [
766
+ {
767
+ name: '_legoId',
768
+ type: 'uint256',
769
+ },
770
+ {
771
+ name: '_asset',
772
+ type: 'address',
773
+ },
774
+ {
775
+ name: '_vault',
776
+ type: 'address',
777
+ },
778
+ {
779
+ name: '_amount',
780
+ type: 'uint256',
781
+ },
782
+ ],
783
+ name: 'depositTokens',
784
+ outputs: [
785
+ {
786
+ name: '',
787
+ type: 'uint256',
788
+ },
789
+ {
790
+ name: '',
791
+ type: 'address',
792
+ },
793
+ {
794
+ name: '',
795
+ type: 'uint256',
796
+ },
797
+ {
798
+ name: '',
799
+ type: 'uint256',
800
+ },
801
+ ],
802
+ stateMutability: 'nonpayable',
803
+ type: 'function',
804
+ },
805
+ {
806
+ inputs: [
807
+ {
808
+ name: '_legoId',
809
+ type: 'uint256',
810
+ },
811
+ {
812
+ name: '_asset',
813
+ type: 'address',
814
+ },
815
+ {
816
+ name: '_vaultToken',
817
+ type: 'address',
818
+ },
819
+ ],
820
+ name: 'withdrawTokens',
821
+ outputs: [
822
+ {
823
+ name: '',
824
+ type: 'uint256',
825
+ },
826
+ {
827
+ name: '',
828
+ type: 'uint256',
829
+ },
830
+ {
831
+ name: '',
832
+ type: 'uint256',
833
+ },
834
+ ],
835
+ stateMutability: 'nonpayable',
836
+ type: 'function',
837
+ },
838
+ {
839
+ inputs: [
840
+ {
841
+ name: '_legoId',
842
+ type: 'uint256',
843
+ },
844
+ {
845
+ name: '_asset',
846
+ type: 'address',
847
+ },
848
+ {
849
+ name: '_vaultToken',
850
+ type: 'address',
851
+ },
852
+ {
853
+ name: '_vaultTokenAmount',
854
+ type: 'uint256',
855
+ },
856
+ ],
857
+ name: 'withdrawTokens',
858
+ outputs: [
859
+ {
860
+ name: '',
861
+ type: 'uint256',
862
+ },
863
+ {
864
+ name: '',
865
+ type: 'uint256',
866
+ },
867
+ {
868
+ name: '',
869
+ type: 'uint256',
870
+ },
871
+ ],
872
+ stateMutability: 'nonpayable',
873
+ type: 'function',
874
+ },
875
+ {
876
+ inputs: [
877
+ {
878
+ name: '_fromLegoId',
879
+ type: 'uint256',
880
+ },
881
+ {
882
+ name: '_fromAsset',
883
+ type: 'address',
884
+ },
885
+ {
886
+ name: '_fromVaultToken',
887
+ type: 'address',
888
+ },
889
+ {
890
+ name: '_toLegoId',
891
+ type: 'uint256',
892
+ },
893
+ {
894
+ name: '_toVault',
895
+ type: 'address',
896
+ },
897
+ ],
898
+ name: 'rebalance',
899
+ outputs: [
900
+ {
901
+ name: '',
902
+ type: 'uint256',
903
+ },
904
+ {
905
+ name: '',
906
+ type: 'address',
907
+ },
908
+ {
909
+ name: '',
910
+ type: 'uint256',
911
+ },
912
+ {
913
+ name: '',
914
+ type: 'uint256',
915
+ },
916
+ ],
917
+ stateMutability: 'nonpayable',
918
+ type: 'function',
919
+ },
920
+ {
921
+ inputs: [
922
+ {
923
+ name: '_fromLegoId',
924
+ type: 'uint256',
925
+ },
926
+ {
927
+ name: '_fromAsset',
928
+ type: 'address',
929
+ },
930
+ {
931
+ name: '_fromVaultToken',
932
+ type: 'address',
933
+ },
934
+ {
935
+ name: '_toLegoId',
936
+ type: 'uint256',
937
+ },
938
+ {
939
+ name: '_toVault',
940
+ type: 'address',
941
+ },
942
+ {
943
+ name: '_fromVaultTokenAmount',
944
+ type: 'uint256',
945
+ },
946
+ ],
947
+ name: 'rebalance',
948
+ outputs: [
949
+ {
950
+ name: '',
951
+ type: 'uint256',
952
+ },
953
+ {
954
+ name: '',
955
+ type: 'address',
956
+ },
957
+ {
958
+ name: '',
959
+ type: 'uint256',
960
+ },
961
+ {
962
+ name: '',
963
+ type: 'uint256',
964
+ },
965
+ ],
966
+ stateMutability: 'nonpayable',
967
+ type: 'function',
968
+ },
969
+ {
970
+ inputs: [
971
+ {
972
+ components: [
973
+ {
974
+ name: 'legoId',
975
+ type: 'uint256',
976
+ },
977
+ {
978
+ name: 'amountIn',
979
+ type: 'uint256',
980
+ },
981
+ {
982
+ name: 'minAmountOut',
983
+ type: 'uint256',
984
+ },
985
+ {
986
+ name: 'tokenPath',
987
+ type: 'address[]',
988
+ },
989
+ {
990
+ name: 'poolPath',
991
+ type: 'address[]',
992
+ },
993
+ ],
994
+ name: '_swapInstructions',
995
+ type: 'tuple[]',
996
+ },
997
+ ],
998
+ name: 'swapTokens',
999
+ outputs: [
1000
+ {
1001
+ name: '',
1002
+ type: 'uint256',
1003
+ },
1004
+ {
1005
+ name: '',
1006
+ type: 'uint256',
1007
+ },
1008
+ {
1009
+ name: '',
1010
+ type: 'uint256',
1011
+ },
1012
+ ],
1013
+ stateMutability: 'nonpayable',
1014
+ type: 'function',
1015
+ },
1016
+ {
1017
+ inputs: [
1018
+ {
1019
+ name: '_legoId',
1020
+ type: 'uint256',
1021
+ },
1022
+ ],
1023
+ name: 'borrow',
1024
+ outputs: [
1025
+ {
1026
+ name: '',
1027
+ type: 'address',
1028
+ },
1029
+ {
1030
+ name: '',
1031
+ type: 'uint256',
1032
+ },
1033
+ {
1034
+ name: '',
1035
+ type: 'uint256',
1036
+ },
1037
+ ],
1038
+ stateMutability: 'nonpayable',
1039
+ type: 'function',
1040
+ },
1041
+ {
1042
+ inputs: [
1043
+ {
1044
+ name: '_legoId',
1045
+ type: 'uint256',
1046
+ },
1047
+ {
1048
+ name: '_borrowAsset',
1049
+ type: 'address',
1050
+ },
1051
+ ],
1052
+ name: 'borrow',
1053
+ outputs: [
1054
+ {
1055
+ name: '',
1056
+ type: 'address',
1057
+ },
1058
+ {
1059
+ name: '',
1060
+ type: 'uint256',
1061
+ },
1062
+ {
1063
+ name: '',
1064
+ type: 'uint256',
1065
+ },
1066
+ ],
1067
+ stateMutability: 'nonpayable',
1068
+ type: 'function',
1069
+ },
1070
+ {
1071
+ inputs: [
1072
+ {
1073
+ name: '_legoId',
1074
+ type: 'uint256',
1075
+ },
1076
+ {
1077
+ name: '_borrowAsset',
1078
+ type: 'address',
1079
+ },
1080
+ {
1081
+ name: '_amount',
1082
+ type: 'uint256',
1083
+ },
1084
+ ],
1085
+ name: 'borrow',
1086
+ outputs: [
1087
+ {
1088
+ name: '',
1089
+ type: 'address',
1090
+ },
1091
+ {
1092
+ name: '',
1093
+ type: 'uint256',
1094
+ },
1095
+ {
1096
+ name: '',
1097
+ type: 'uint256',
1098
+ },
1099
+ ],
1100
+ stateMutability: 'nonpayable',
1101
+ type: 'function',
1102
+ },
1103
+ {
1104
+ inputs: [
1105
+ {
1106
+ name: '_legoId',
1107
+ type: 'uint256',
1108
+ },
1109
+ {
1110
+ name: '_paymentAsset',
1111
+ type: 'address',
1112
+ },
1113
+ ],
1114
+ name: 'repayDebt',
1115
+ outputs: [
1116
+ {
1117
+ name: '',
1118
+ type: 'address',
1119
+ },
1120
+ {
1121
+ name: '',
1122
+ type: 'uint256',
1123
+ },
1124
+ {
1125
+ name: '',
1126
+ type: 'uint256',
1127
+ },
1128
+ {
1129
+ name: '',
1130
+ type: 'uint256',
1131
+ },
1132
+ ],
1133
+ stateMutability: 'nonpayable',
1134
+ type: 'function',
1135
+ },
1136
+ {
1137
+ inputs: [
1138
+ {
1139
+ name: '_legoId',
1140
+ type: 'uint256',
1141
+ },
1142
+ {
1143
+ name: '_paymentAsset',
1144
+ type: 'address',
1145
+ },
1146
+ {
1147
+ name: '_paymentAmount',
1148
+ type: 'uint256',
1149
+ },
1150
+ ],
1151
+ name: 'repayDebt',
1152
+ outputs: [
1153
+ {
1154
+ name: '',
1155
+ type: 'address',
1156
+ },
1157
+ {
1158
+ name: '',
1159
+ type: 'uint256',
1160
+ },
1161
+ {
1162
+ name: '',
1163
+ type: 'uint256',
1164
+ },
1165
+ {
1166
+ name: '',
1167
+ type: 'uint256',
1168
+ },
1169
+ ],
1170
+ stateMutability: 'nonpayable',
1171
+ type: 'function',
1172
+ },
1173
+ {
1174
+ inputs: [
1175
+ {
1176
+ name: '_legoId',
1177
+ type: 'uint256',
1178
+ },
1179
+ ],
1180
+ name: 'claimRewards',
1181
+ outputs: [],
1182
+ stateMutability: 'nonpayable',
1183
+ type: 'function',
1184
+ },
1185
+ {
1186
+ inputs: [
1187
+ {
1188
+ name: '_legoId',
1189
+ type: 'uint256',
1190
+ },
1191
+ {
1192
+ name: '_market',
1193
+ type: 'address',
1194
+ },
1195
+ ],
1196
+ name: 'claimRewards',
1197
+ outputs: [],
1198
+ stateMutability: 'nonpayable',
1199
+ type: 'function',
1200
+ },
1201
+ {
1202
+ inputs: [
1203
+ {
1204
+ name: '_legoId',
1205
+ type: 'uint256',
1206
+ },
1207
+ {
1208
+ name: '_market',
1209
+ type: 'address',
1210
+ },
1211
+ {
1212
+ name: '_rewardToken',
1213
+ type: 'address',
1214
+ },
1215
+ ],
1216
+ name: 'claimRewards',
1217
+ outputs: [],
1218
+ stateMutability: 'nonpayable',
1219
+ type: 'function',
1220
+ },
1221
+ {
1222
+ inputs: [
1223
+ {
1224
+ name: '_legoId',
1225
+ type: 'uint256',
1226
+ },
1227
+ {
1228
+ name: '_market',
1229
+ type: 'address',
1230
+ },
1231
+ {
1232
+ name: '_rewardToken',
1233
+ type: 'address',
1234
+ },
1235
+ {
1236
+ name: '_rewardAmount',
1237
+ type: 'uint256',
1238
+ },
1239
+ ],
1240
+ name: 'claimRewards',
1241
+ outputs: [],
1242
+ stateMutability: 'nonpayable',
1243
+ type: 'function',
1244
+ },
1245
+ {
1246
+ inputs: [
1247
+ {
1248
+ name: '_legoId',
1249
+ type: 'uint256',
1250
+ },
1251
+ {
1252
+ name: '_market',
1253
+ type: 'address',
1254
+ },
1255
+ {
1256
+ name: '_rewardToken',
1257
+ type: 'address',
1258
+ },
1259
+ {
1260
+ name: '_rewardAmount',
1261
+ type: 'uint256',
1262
+ },
1263
+ {
1264
+ name: '_proof',
1265
+ type: 'bytes32',
1266
+ },
1267
+ ],
1268
+ name: 'claimRewards',
1269
+ outputs: [],
1270
+ stateMutability: 'nonpayable',
1271
+ type: 'function',
1272
+ },
1273
+ {
1274
+ inputs: [
1275
+ {
1276
+ name: '_legoId',
1277
+ type: 'uint256',
1278
+ },
1279
+ {
1280
+ name: '_nftAddr',
1281
+ type: 'address',
1282
+ },
1283
+ {
1284
+ name: '_nftTokenId',
1285
+ type: 'uint256',
1286
+ },
1287
+ {
1288
+ name: '_pool',
1289
+ type: 'address',
1290
+ },
1291
+ {
1292
+ name: '_tokenA',
1293
+ type: 'address',
1294
+ },
1295
+ {
1296
+ name: '_tokenB',
1297
+ type: 'address',
1298
+ },
1299
+ ],
1300
+ name: 'addLiquidity',
1301
+ outputs: [
1302
+ {
1303
+ name: '',
1304
+ type: 'uint256',
1305
+ },
1306
+ {
1307
+ name: '',
1308
+ type: 'uint256',
1309
+ },
1310
+ {
1311
+ name: '',
1312
+ type: 'uint256',
1313
+ },
1314
+ {
1315
+ name: '',
1316
+ type: 'uint256',
1317
+ },
1318
+ {
1319
+ name: '',
1320
+ type: 'uint256',
1321
+ },
1322
+ ],
1323
+ stateMutability: 'nonpayable',
1324
+ type: 'function',
1325
+ },
1326
+ {
1327
+ inputs: [
1328
+ {
1329
+ name: '_legoId',
1330
+ type: 'uint256',
1331
+ },
1332
+ {
1333
+ name: '_nftAddr',
1334
+ type: 'address',
1335
+ },
1336
+ {
1337
+ name: '_nftTokenId',
1338
+ type: 'uint256',
1339
+ },
1340
+ {
1341
+ name: '_pool',
1342
+ type: 'address',
1343
+ },
1344
+ {
1345
+ name: '_tokenA',
1346
+ type: 'address',
1347
+ },
1348
+ {
1349
+ name: '_tokenB',
1350
+ type: 'address',
1351
+ },
1352
+ {
1353
+ name: '_amountA',
1354
+ type: 'uint256',
1355
+ },
1356
+ ],
1357
+ name: 'addLiquidity',
1358
+ outputs: [
1359
+ {
1360
+ name: '',
1361
+ type: 'uint256',
1362
+ },
1363
+ {
1364
+ name: '',
1365
+ type: 'uint256',
1366
+ },
1367
+ {
1368
+ name: '',
1369
+ type: 'uint256',
1370
+ },
1371
+ {
1372
+ name: '',
1373
+ type: 'uint256',
1374
+ },
1375
+ {
1376
+ name: '',
1377
+ type: 'uint256',
1378
+ },
1379
+ ],
1380
+ stateMutability: 'nonpayable',
1381
+ type: 'function',
1382
+ },
1383
+ {
1384
+ inputs: [
1385
+ {
1386
+ name: '_legoId',
1387
+ type: 'uint256',
1388
+ },
1389
+ {
1390
+ name: '_nftAddr',
1391
+ type: 'address',
1392
+ },
1393
+ {
1394
+ name: '_nftTokenId',
1395
+ type: 'uint256',
1396
+ },
1397
+ {
1398
+ name: '_pool',
1399
+ type: 'address',
1400
+ },
1401
+ {
1402
+ name: '_tokenA',
1403
+ type: 'address',
1404
+ },
1405
+ {
1406
+ name: '_tokenB',
1407
+ type: 'address',
1408
+ },
1409
+ {
1410
+ name: '_amountA',
1411
+ type: 'uint256',
1412
+ },
1413
+ {
1414
+ name: '_amountB',
1415
+ type: 'uint256',
1416
+ },
1417
+ ],
1418
+ name: 'addLiquidity',
1419
+ outputs: [
1420
+ {
1421
+ name: '',
1422
+ type: 'uint256',
1423
+ },
1424
+ {
1425
+ name: '',
1426
+ type: 'uint256',
1427
+ },
1428
+ {
1429
+ name: '',
1430
+ type: 'uint256',
1431
+ },
1432
+ {
1433
+ name: '',
1434
+ type: 'uint256',
1435
+ },
1436
+ {
1437
+ name: '',
1438
+ type: 'uint256',
1439
+ },
1440
+ ],
1441
+ stateMutability: 'nonpayable',
1442
+ type: 'function',
1443
+ },
1444
+ {
1445
+ inputs: [
1446
+ {
1447
+ name: '_legoId',
1448
+ type: 'uint256',
1449
+ },
1450
+ {
1451
+ name: '_nftAddr',
1452
+ type: 'address',
1453
+ },
1454
+ {
1455
+ name: '_nftTokenId',
1456
+ type: 'uint256',
1457
+ },
1458
+ {
1459
+ name: '_pool',
1460
+ type: 'address',
1461
+ },
1462
+ {
1463
+ name: '_tokenA',
1464
+ type: 'address',
1465
+ },
1466
+ {
1467
+ name: '_tokenB',
1468
+ type: 'address',
1469
+ },
1470
+ {
1471
+ name: '_amountA',
1472
+ type: 'uint256',
1473
+ },
1474
+ {
1475
+ name: '_amountB',
1476
+ type: 'uint256',
1477
+ },
1478
+ {
1479
+ name: '_tickLower',
1480
+ type: 'int24',
1481
+ },
1482
+ ],
1483
+ name: 'addLiquidity',
1484
+ outputs: [
1485
+ {
1486
+ name: '',
1487
+ type: 'uint256',
1488
+ },
1489
+ {
1490
+ name: '',
1491
+ type: 'uint256',
1492
+ },
1493
+ {
1494
+ name: '',
1495
+ type: 'uint256',
1496
+ },
1497
+ {
1498
+ name: '',
1499
+ type: 'uint256',
1500
+ },
1501
+ {
1502
+ name: '',
1503
+ type: 'uint256',
1504
+ },
1505
+ ],
1506
+ stateMutability: 'nonpayable',
1507
+ type: 'function',
1508
+ },
1509
+ {
1510
+ inputs: [
1511
+ {
1512
+ name: '_legoId',
1513
+ type: 'uint256',
1514
+ },
1515
+ {
1516
+ name: '_nftAddr',
1517
+ type: 'address',
1518
+ },
1519
+ {
1520
+ name: '_nftTokenId',
1521
+ type: 'uint256',
1522
+ },
1523
+ {
1524
+ name: '_pool',
1525
+ type: 'address',
1526
+ },
1527
+ {
1528
+ name: '_tokenA',
1529
+ type: 'address',
1530
+ },
1531
+ {
1532
+ name: '_tokenB',
1533
+ type: 'address',
1534
+ },
1535
+ {
1536
+ name: '_amountA',
1537
+ type: 'uint256',
1538
+ },
1539
+ {
1540
+ name: '_amountB',
1541
+ type: 'uint256',
1542
+ },
1543
+ {
1544
+ name: '_tickLower',
1545
+ type: 'int24',
1546
+ },
1547
+ {
1548
+ name: '_tickUpper',
1549
+ type: 'int24',
1550
+ },
1551
+ ],
1552
+ name: 'addLiquidity',
1553
+ outputs: [
1554
+ {
1555
+ name: '',
1556
+ type: 'uint256',
1557
+ },
1558
+ {
1559
+ name: '',
1560
+ type: 'uint256',
1561
+ },
1562
+ {
1563
+ name: '',
1564
+ type: 'uint256',
1565
+ },
1566
+ {
1567
+ name: '',
1568
+ type: 'uint256',
1569
+ },
1570
+ {
1571
+ name: '',
1572
+ type: 'uint256',
1573
+ },
1574
+ ],
1575
+ stateMutability: 'nonpayable',
1576
+ type: 'function',
1577
+ },
1578
+ {
1579
+ inputs: [
1580
+ {
1581
+ name: '_legoId',
1582
+ type: 'uint256',
1583
+ },
1584
+ {
1585
+ name: '_nftAddr',
1586
+ type: 'address',
1587
+ },
1588
+ {
1589
+ name: '_nftTokenId',
1590
+ type: 'uint256',
1591
+ },
1592
+ {
1593
+ name: '_pool',
1594
+ type: 'address',
1595
+ },
1596
+ {
1597
+ name: '_tokenA',
1598
+ type: 'address',
1599
+ },
1600
+ {
1601
+ name: '_tokenB',
1602
+ type: 'address',
1603
+ },
1604
+ {
1605
+ name: '_amountA',
1606
+ type: 'uint256',
1607
+ },
1608
+ {
1609
+ name: '_amountB',
1610
+ type: 'uint256',
1611
+ },
1612
+ {
1613
+ name: '_tickLower',
1614
+ type: 'int24',
1615
+ },
1616
+ {
1617
+ name: '_tickUpper',
1618
+ type: 'int24',
1619
+ },
1620
+ {
1621
+ name: '_minAmountA',
1622
+ type: 'uint256',
1623
+ },
1624
+ ],
1625
+ name: 'addLiquidity',
1626
+ outputs: [
1627
+ {
1628
+ name: '',
1629
+ type: 'uint256',
1630
+ },
1631
+ {
1632
+ name: '',
1633
+ type: 'uint256',
1634
+ },
1635
+ {
1636
+ name: '',
1637
+ type: 'uint256',
1638
+ },
1639
+ {
1640
+ name: '',
1641
+ type: 'uint256',
1642
+ },
1643
+ {
1644
+ name: '',
1645
+ type: 'uint256',
1646
+ },
1647
+ ],
1648
+ stateMutability: 'nonpayable',
1649
+ type: 'function',
1650
+ },
1651
+ {
1652
+ inputs: [
1653
+ {
1654
+ name: '_legoId',
1655
+ type: 'uint256',
1656
+ },
1657
+ {
1658
+ name: '_nftAddr',
1659
+ type: 'address',
1660
+ },
1661
+ {
1662
+ name: '_nftTokenId',
1663
+ type: 'uint256',
1664
+ },
1665
+ {
1666
+ name: '_pool',
1667
+ type: 'address',
1668
+ },
1669
+ {
1670
+ name: '_tokenA',
1671
+ type: 'address',
1672
+ },
1673
+ {
1674
+ name: '_tokenB',
1675
+ type: 'address',
1676
+ },
1677
+ {
1678
+ name: '_amountA',
1679
+ type: 'uint256',
1680
+ },
1681
+ {
1682
+ name: '_amountB',
1683
+ type: 'uint256',
1684
+ },
1685
+ {
1686
+ name: '_tickLower',
1687
+ type: 'int24',
1688
+ },
1689
+ {
1690
+ name: '_tickUpper',
1691
+ type: 'int24',
1692
+ },
1693
+ {
1694
+ name: '_minAmountA',
1695
+ type: 'uint256',
1696
+ },
1697
+ {
1698
+ name: '_minAmountB',
1699
+ type: 'uint256',
1700
+ },
1701
+ ],
1702
+ name: 'addLiquidity',
1703
+ outputs: [
1704
+ {
1705
+ name: '',
1706
+ type: 'uint256',
1707
+ },
1708
+ {
1709
+ name: '',
1710
+ type: 'uint256',
1711
+ },
1712
+ {
1713
+ name: '',
1714
+ type: 'uint256',
1715
+ },
1716
+ {
1717
+ name: '',
1718
+ type: 'uint256',
1719
+ },
1720
+ {
1721
+ name: '',
1722
+ type: 'uint256',
1723
+ },
1724
+ ],
1725
+ stateMutability: 'nonpayable',
1726
+ type: 'function',
1727
+ },
1728
+ {
1729
+ inputs: [
1730
+ {
1731
+ name: '_legoId',
1732
+ type: 'uint256',
1733
+ },
1734
+ {
1735
+ name: '_nftAddr',
1736
+ type: 'address',
1737
+ },
1738
+ {
1739
+ name: '_nftTokenId',
1740
+ type: 'uint256',
1741
+ },
1742
+ {
1743
+ name: '_pool',
1744
+ type: 'address',
1745
+ },
1746
+ {
1747
+ name: '_tokenA',
1748
+ type: 'address',
1749
+ },
1750
+ {
1751
+ name: '_tokenB',
1752
+ type: 'address',
1753
+ },
1754
+ {
1755
+ name: '_amountA',
1756
+ type: 'uint256',
1757
+ },
1758
+ {
1759
+ name: '_amountB',
1760
+ type: 'uint256',
1761
+ },
1762
+ {
1763
+ name: '_tickLower',
1764
+ type: 'int24',
1765
+ },
1766
+ {
1767
+ name: '_tickUpper',
1768
+ type: 'int24',
1769
+ },
1770
+ {
1771
+ name: '_minAmountA',
1772
+ type: 'uint256',
1773
+ },
1774
+ {
1775
+ name: '_minAmountB',
1776
+ type: 'uint256',
1777
+ },
1778
+ {
1779
+ name: '_minLpAmount',
1780
+ type: 'uint256',
1781
+ },
1782
+ ],
1783
+ name: 'addLiquidity',
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
+ name: '',
1803
+ type: 'uint256',
1804
+ },
1805
+ ],
1806
+ stateMutability: 'nonpayable',
1807
+ type: 'function',
1808
+ },
1809
+ {
1810
+ inputs: [
1811
+ {
1812
+ name: '_legoId',
1813
+ type: 'uint256',
1814
+ },
1815
+ {
1816
+ name: '_nftAddr',
1817
+ type: 'address',
1818
+ },
1819
+ {
1820
+ name: '_nftTokenId',
1821
+ type: 'uint256',
1822
+ },
1823
+ {
1824
+ name: '_pool',
1825
+ type: 'address',
1826
+ },
1827
+ {
1828
+ name: '_tokenA',
1829
+ type: 'address',
1830
+ },
1831
+ {
1832
+ name: '_tokenB',
1833
+ type: 'address',
1834
+ },
1835
+ ],
1836
+ name: 'removeLiquidity',
1837
+ outputs: [
1838
+ {
1839
+ name: '',
1840
+ type: 'uint256',
1841
+ },
1842
+ {
1843
+ name: '',
1844
+ type: 'uint256',
1845
+ },
1846
+ {
1847
+ name: '',
1848
+ type: 'uint256',
1849
+ },
1850
+ {
1851
+ name: '',
1852
+ type: 'bool',
1853
+ },
1854
+ ],
1855
+ stateMutability: 'nonpayable',
1856
+ type: 'function',
1857
+ },
1858
+ {
1859
+ inputs: [
1860
+ {
1861
+ name: '_legoId',
1862
+ type: 'uint256',
1863
+ },
1864
+ {
1865
+ name: '_nftAddr',
1866
+ type: 'address',
1867
+ },
1868
+ {
1869
+ name: '_nftTokenId',
1870
+ type: 'uint256',
1871
+ },
1872
+ {
1873
+ name: '_pool',
1874
+ type: 'address',
1875
+ },
1876
+ {
1877
+ name: '_tokenA',
1878
+ type: 'address',
1879
+ },
1880
+ {
1881
+ name: '_tokenB',
1882
+ type: 'address',
1883
+ },
1884
+ {
1885
+ name: '_liqToRemove',
1886
+ type: 'uint256',
1887
+ },
1888
+ ],
1889
+ name: 'removeLiquidity',
1890
+ outputs: [
1891
+ {
1892
+ name: '',
1893
+ type: 'uint256',
1894
+ },
1895
+ {
1896
+ name: '',
1897
+ type: 'uint256',
1898
+ },
1899
+ {
1900
+ name: '',
1901
+ type: 'uint256',
1902
+ },
1903
+ {
1904
+ name: '',
1905
+ type: 'bool',
1906
+ },
1907
+ ],
1908
+ stateMutability: 'nonpayable',
1909
+ type: 'function',
1910
+ },
1911
+ {
1912
+ inputs: [
1913
+ {
1914
+ name: '_legoId',
1915
+ type: 'uint256',
1916
+ },
1917
+ {
1918
+ name: '_nftAddr',
1919
+ type: 'address',
1920
+ },
1921
+ {
1922
+ name: '_nftTokenId',
1923
+ type: 'uint256',
1924
+ },
1925
+ {
1926
+ name: '_pool',
1927
+ type: 'address',
1928
+ },
1929
+ {
1930
+ name: '_tokenA',
1931
+ type: 'address',
1932
+ },
1933
+ {
1934
+ name: '_tokenB',
1935
+ type: 'address',
1936
+ },
1937
+ {
1938
+ name: '_liqToRemove',
1939
+ type: 'uint256',
1940
+ },
1941
+ {
1942
+ name: '_minAmountA',
1943
+ type: 'uint256',
1944
+ },
1945
+ ],
1946
+ name: 'removeLiquidity',
1947
+ outputs: [
1948
+ {
1949
+ name: '',
1950
+ type: 'uint256',
1951
+ },
1952
+ {
1953
+ name: '',
1954
+ type: 'uint256',
1955
+ },
1956
+ {
1957
+ name: '',
1958
+ type: 'uint256',
1959
+ },
1960
+ {
1961
+ name: '',
1962
+ type: 'bool',
1963
+ },
1964
+ ],
1965
+ stateMutability: 'nonpayable',
1966
+ type: 'function',
1967
+ },
1968
+ {
1969
+ inputs: [
1970
+ {
1971
+ name: '_legoId',
1972
+ type: 'uint256',
1973
+ },
1974
+ {
1975
+ name: '_nftAddr',
1976
+ type: 'address',
1977
+ },
1978
+ {
1979
+ name: '_nftTokenId',
1980
+ type: 'uint256',
1981
+ },
1982
+ {
1983
+ name: '_pool',
1984
+ type: 'address',
1985
+ },
1986
+ {
1987
+ name: '_tokenA',
1988
+ type: 'address',
1989
+ },
1990
+ {
1991
+ name: '_tokenB',
1992
+ type: 'address',
1993
+ },
1994
+ {
1995
+ name: '_liqToRemove',
1996
+ type: 'uint256',
1997
+ },
1998
+ {
1999
+ name: '_minAmountA',
2000
+ type: 'uint256',
2001
+ },
2002
+ {
2003
+ name: '_minAmountB',
2004
+ type: 'uint256',
2005
+ },
2006
+ ],
2007
+ name: 'removeLiquidity',
2008
+ outputs: [
2009
+ {
2010
+ name: '',
2011
+ type: 'uint256',
2012
+ },
2013
+ {
2014
+ name: '',
2015
+ type: 'uint256',
2016
+ },
2017
+ {
2018
+ name: '',
2019
+ type: 'uint256',
2020
+ },
2021
+ {
2022
+ name: '',
2023
+ type: 'bool',
2024
+ },
2025
+ ],
2026
+ stateMutability: 'nonpayable',
2027
+ type: 'function',
2028
+ },
2029
+ {
2030
+ inputs: [
2031
+ {
2032
+ name: '_recipient',
2033
+ type: 'address',
2034
+ },
2035
+ ],
2036
+ name: 'transferFunds',
2037
+ outputs: [
2038
+ {
2039
+ name: '',
2040
+ type: 'uint256',
2041
+ },
2042
+ {
2043
+ name: '',
2044
+ type: 'uint256',
2045
+ },
2046
+ ],
2047
+ stateMutability: 'nonpayable',
2048
+ type: 'function',
2049
+ },
2050
+ {
2051
+ inputs: [
2052
+ {
2053
+ name: '_recipient',
2054
+ type: 'address',
2055
+ },
2056
+ {
2057
+ name: '_amount',
2058
+ type: 'uint256',
2059
+ },
2060
+ ],
2061
+ name: 'transferFunds',
2062
+ outputs: [
2063
+ {
2064
+ name: '',
2065
+ type: 'uint256',
2066
+ },
2067
+ {
2068
+ name: '',
2069
+ type: 'uint256',
2070
+ },
2071
+ ],
2072
+ stateMutability: 'nonpayable',
2073
+ type: 'function',
2074
+ },
2075
+ {
2076
+ inputs: [
2077
+ {
2078
+ name: '_recipient',
2079
+ type: 'address',
2080
+ },
2081
+ {
2082
+ name: '_amount',
2083
+ type: 'uint256',
2084
+ },
2085
+ {
2086
+ name: '_asset',
2087
+ type: 'address',
2088
+ },
2089
+ ],
2090
+ name: 'transferFunds',
2091
+ outputs: [
2092
+ {
2093
+ name: '',
2094
+ type: 'uint256',
2095
+ },
2096
+ {
2097
+ name: '',
2098
+ type: 'uint256',
2099
+ },
2100
+ ],
2101
+ stateMutability: 'nonpayable',
2102
+ type: 'function',
2103
+ },
2104
+ {
2105
+ inputs: [],
2106
+ name: 'convertEthToWeth',
2107
+ outputs: [
2108
+ {
2109
+ name: '',
2110
+ type: 'uint256',
2111
+ },
2112
+ {
2113
+ name: '',
2114
+ type: 'address',
2115
+ },
2116
+ {
2117
+ name: '',
2118
+ type: 'uint256',
2119
+ },
2120
+ ],
2121
+ stateMutability: 'payable',
2122
+ type: 'function',
2123
+ },
2124
+ {
2125
+ inputs: [
2126
+ {
2127
+ name: '_amount',
2128
+ type: 'uint256',
2129
+ },
2130
+ ],
2131
+ name: 'convertEthToWeth',
2132
+ outputs: [
2133
+ {
2134
+ name: '',
2135
+ type: 'uint256',
2136
+ },
2137
+ {
2138
+ name: '',
2139
+ type: 'address',
2140
+ },
2141
+ {
2142
+ name: '',
2143
+ type: 'uint256',
2144
+ },
2145
+ ],
2146
+ stateMutability: 'payable',
2147
+ type: 'function',
2148
+ },
2149
+ {
2150
+ inputs: [
2151
+ {
2152
+ name: '_amount',
2153
+ type: 'uint256',
2154
+ },
2155
+ {
2156
+ name: '_depositLegoId',
2157
+ type: 'uint256',
2158
+ },
2159
+ ],
2160
+ name: 'convertEthToWeth',
2161
+ outputs: [
2162
+ {
2163
+ name: '',
2164
+ type: 'uint256',
2165
+ },
2166
+ {
2167
+ name: '',
2168
+ type: 'address',
2169
+ },
2170
+ {
2171
+ name: '',
2172
+ type: 'uint256',
2173
+ },
2174
+ ],
2175
+ stateMutability: 'payable',
2176
+ type: 'function',
2177
+ },
2178
+ {
2179
+ inputs: [
2180
+ {
2181
+ name: '_amount',
2182
+ type: 'uint256',
2183
+ },
2184
+ {
2185
+ name: '_depositLegoId',
2186
+ type: 'uint256',
2187
+ },
2188
+ {
2189
+ name: '_depositVault',
2190
+ type: 'address',
2191
+ },
2192
+ ],
2193
+ name: 'convertEthToWeth',
2194
+ outputs: [
2195
+ {
2196
+ name: '',
2197
+ type: 'uint256',
2198
+ },
2199
+ {
2200
+ name: '',
2201
+ type: 'address',
2202
+ },
2203
+ {
2204
+ name: '',
2205
+ type: 'uint256',
2206
+ },
2207
+ ],
2208
+ stateMutability: 'payable',
2209
+ type: 'function',
2210
+ },
2211
+ {
2212
+ inputs: [],
2213
+ name: 'convertWethToEth',
2214
+ outputs: [
2215
+ {
2216
+ name: '',
2217
+ type: 'uint256',
2218
+ },
2219
+ ],
2220
+ stateMutability: 'nonpayable',
2221
+ type: 'function',
2222
+ },
2223
+ {
2224
+ inputs: [
2225
+ {
2226
+ name: '_amount',
2227
+ type: 'uint256',
2228
+ },
2229
+ ],
2230
+ name: 'convertWethToEth',
2231
+ outputs: [
2232
+ {
2233
+ name: '',
2234
+ type: 'uint256',
2235
+ },
2236
+ ],
2237
+ stateMutability: 'nonpayable',
2238
+ type: 'function',
2239
+ },
2240
+ {
2241
+ inputs: [
2242
+ {
2243
+ name: '_amount',
2244
+ type: 'uint256',
2245
+ },
2246
+ {
2247
+ name: '_recipient',
2248
+ type: 'address',
2249
+ },
2250
+ ],
2251
+ name: 'convertWethToEth',
2252
+ outputs: [
2253
+ {
2254
+ name: '',
2255
+ type: 'uint256',
2256
+ },
2257
+ ],
2258
+ stateMutability: 'nonpayable',
2259
+ type: 'function',
2260
+ },
2261
+ {
2262
+ inputs: [
2263
+ {
2264
+ name: '_amount',
2265
+ type: 'uint256',
2266
+ },
2267
+ {
2268
+ name: '_recipient',
2269
+ type: 'address',
2270
+ },
2271
+ {
2272
+ name: '_withdrawLegoId',
2273
+ type: 'uint256',
2274
+ },
2275
+ ],
2276
+ name: 'convertWethToEth',
2277
+ outputs: [
2278
+ {
2279
+ name: '',
2280
+ type: 'uint256',
2281
+ },
2282
+ ],
2283
+ stateMutability: 'nonpayable',
2284
+ type: 'function',
2285
+ },
2286
+ {
2287
+ inputs: [
2288
+ {
2289
+ name: '_amount',
2290
+ type: 'uint256',
2291
+ },
2292
+ {
2293
+ name: '_recipient',
2294
+ type: 'address',
2295
+ },
2296
+ {
2297
+ name: '_withdrawLegoId',
2298
+ type: 'uint256',
2299
+ },
2300
+ {
2301
+ name: '_withdrawVaultToken',
2302
+ type: 'address',
2303
+ },
2304
+ ],
2305
+ name: 'convertWethToEth',
2306
+ outputs: [
2307
+ {
2308
+ name: '',
2309
+ type: 'uint256',
2310
+ },
2311
+ ],
2312
+ stateMutability: 'nonpayable',
2313
+ type: 'function',
2314
+ },
2315
+ {
2316
+ inputs: [],
2317
+ name: 'recoverTrialFunds',
2318
+ outputs: [
2319
+ {
2320
+ name: '',
2321
+ type: 'bool',
2322
+ },
2323
+ ],
2324
+ stateMutability: 'nonpayable',
2325
+ type: 'function',
2326
+ },
2327
+ {
2328
+ inputs: [
2329
+ {
2330
+ components: [
2331
+ {
2332
+ name: 'legoId',
2333
+ type: 'uint256',
2334
+ },
2335
+ {
2336
+ name: 'vaultToken',
2337
+ type: 'address',
2338
+ },
2339
+ ],
2340
+ name: '_opportunities',
2341
+ type: 'tuple[]',
2342
+ },
2343
+ ],
2344
+ name: 'recoverTrialFunds',
2345
+ outputs: [
2346
+ {
2347
+ name: '',
2348
+ type: 'bool',
2349
+ },
2350
+ ],
2351
+ stateMutability: 'nonpayable',
2352
+ type: 'function',
2353
+ },
2354
+ {
2355
+ inputs: [
2356
+ {
2357
+ name: '_collection',
2358
+ type: 'address',
2359
+ },
2360
+ {
2361
+ name: '_nftTokenId',
2362
+ type: 'uint256',
2363
+ },
2364
+ ],
2365
+ name: 'recoverNft',
2366
+ outputs: [
2367
+ {
2368
+ name: '',
2369
+ type: 'bool',
2370
+ },
2371
+ ],
2372
+ stateMutability: 'nonpayable',
2373
+ type: 'function',
2374
+ },
2375
+ {
2376
+ inputs: [],
2377
+ name: 'walletConfig',
2378
+ outputs: [
2379
+ {
2380
+ name: '',
2381
+ type: 'address',
2382
+ },
2383
+ ],
2384
+ stateMutability: 'view',
2385
+ type: 'function',
2386
+ },
2387
+ {
2388
+ inputs: [],
2389
+ name: 'trialFundsAsset',
2390
+ outputs: [
2391
+ {
2392
+ name: '',
2393
+ type: 'address',
2394
+ },
2395
+ ],
2396
+ stateMutability: 'view',
2397
+ type: 'function',
2398
+ },
2399
+ {
2400
+ inputs: [],
2401
+ name: 'trialFundsInitialAmount',
2402
+ outputs: [
2403
+ {
2404
+ name: '',
2405
+ type: 'uint256',
2406
+ },
2407
+ ],
2408
+ stateMutability: 'view',
2409
+ type: 'function',
2410
+ },
2411
+ {
2412
+ inputs: [],
2413
+ name: 'wethAddr',
2414
+ outputs: [
2415
+ {
2416
+ name: '',
2417
+ type: 'address',
2418
+ },
2419
+ ],
2420
+ stateMutability: 'view',
2421
+ type: 'function',
2422
+ },
2423
+ {
2424
+ inputs: [],
2425
+ name: 'ADDY_REGISTRY',
2426
+ outputs: [
2427
+ {
2428
+ name: '',
2429
+ type: 'address',
2430
+ },
2431
+ ],
2432
+ stateMutability: 'view',
2433
+ type: 'function',
2434
+ },
2435
+ {
2436
+ inputs: [
2437
+ {
2438
+ name: '_walletConfig',
2439
+ type: 'address',
2440
+ },
2441
+ {
2442
+ name: '_addyRegistry',
2443
+ type: 'address',
2444
+ },
2445
+ {
2446
+ name: '_wethAddr',
2447
+ type: 'address',
2448
+ },
2449
+ {
2450
+ name: '_trialFundsAsset',
2451
+ type: 'address',
2452
+ },
2453
+ {
2454
+ name: '_trialFundsInitialAmount',
2455
+ type: 'uint256',
2456
+ },
2457
+ ],
2458
+ outputs: [],
2459
+ stateMutability: 'nonpayable',
2460
+ type: 'constructor',
2461
+ },
2462
+ ];
2463
+ export const deployAddress = '0xf614Bb656a8B1B8646b25f3Ca4a9655E407D38e5';
2464
+ function getRequest(method, args, contractAddressOrOptions) {
2465
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2466
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
2467
+ const call = {
2468
+ contractName: 'UserWallet_v2',
2469
+ method,
2470
+ args,
2471
+ address,
2472
+ deployAddress,
2473
+ defaultValue,
2474
+ getAbi: () => abi,
2475
+ with: (options) => {
2476
+ call.address = options.contractAddress;
2477
+ call.defaultValue = options.defaultValue;
2478
+ return call;
2479
+ },
2480
+ defaultTo: (defaultValue) => {
2481
+ call.defaultValue = defaultValue;
2482
+ return call;
2483
+ },
2484
+ at: (address) => {
2485
+ call.address = address;
2486
+ return call;
2487
+ },
2488
+ };
2489
+ return call;
2490
+ }
2491
+ export const call = {
2492
+ onERC721Received: (...args) => getRequest('onERC721Received', args),
2493
+ apiVersion: (...args) => getRequest('apiVersion', args),
2494
+ walletConfig: (...args) => getRequest('walletConfig', args),
2495
+ trialFundsAsset: (...args) => getRequest('trialFundsAsset', args),
2496
+ trialFundsInitialAmount: (...args) => getRequest('trialFundsInitialAmount', args),
2497
+ wethAddr: (...args) => getRequest('wethAddr', args),
2498
+ ADDY_REGISTRY: (...args) => getRequest('ADDY_REGISTRY', args),
2499
+ };
2500
+ function getMutation(functionName) {
2501
+ return {
2502
+ contractName: 'UserWallet_v2',
2503
+ functionName,
2504
+ deployAddress,
2505
+ argsType: undefined,
2506
+ getAbi: () => abi,
2507
+ };
2508
+ }
2509
+ export const mutation = {
2510
+ depositTokens: getMutation('depositTokens'),
2511
+ withdrawTokens: getMutation('withdrawTokens'),
2512
+ rebalance: getMutation('rebalance'),
2513
+ swapTokens: getMutation('swapTokens'),
2514
+ borrow: getMutation('borrow'),
2515
+ repayDebt: getMutation('repayDebt'),
2516
+ claimRewards: getMutation('claimRewards'),
2517
+ addLiquidity: getMutation('addLiquidity'),
2518
+ removeLiquidity: getMutation('removeLiquidity'),
2519
+ transferFunds: getMutation('transferFunds'),
2520
+ convertEthToWeth: getMutation('convertEthToWeth'),
2521
+ convertWethToEth: getMutation('convertWethToEth'),
2522
+ recoverTrialFunds: getMutation('recoverTrialFunds'),
2523
+ recoverNft: getMutation('recoverNft'),
2524
+ };
2525
+ export function toSdk(deployAddress, publicClient, walletClient) {
2526
+ return {
2527
+ deployAddress,
2528
+ abi,
2529
+ // Queries
2530
+ onERC721Received: (...args) => singleQuery(publicClient, call.onERC721Received(...args).at(deployAddress)),
2531
+ apiVersion: (...args) => singleQuery(publicClient, call.apiVersion(...args).at(deployAddress)),
2532
+ walletConfig: (...args) => singleQuery(publicClient, call.walletConfig(...args).at(deployAddress)),
2533
+ trialFundsAsset: (...args) => singleQuery(publicClient, call.trialFundsAsset(...args).at(deployAddress)),
2534
+ trialFundsInitialAmount: (...args) => singleQuery(publicClient, call.trialFundsInitialAmount(...args).at(deployAddress)),
2535
+ wethAddr: (...args) => singleQuery(publicClient, call.wethAddr(...args).at(deployAddress)),
2536
+ ADDY_REGISTRY: (...args) => singleQuery(publicClient, call.ADDY_REGISTRY(...args).at(deployAddress)),
2537
+ // Mutations
2538
+ depositTokens: (...args) => mutate(walletClient, mutation.depositTokens, { address: deployAddress })(...args),
2539
+ withdrawTokens: (...args) => mutate(walletClient, mutation.withdrawTokens, { address: deployAddress })(...args),
2540
+ rebalance: (...args) => mutate(walletClient, mutation.rebalance, { address: deployAddress })(...args),
2541
+ swapTokens: (...args) => mutate(walletClient, mutation.swapTokens, { address: deployAddress })(...args),
2542
+ borrow: (...args) => mutate(walletClient, mutation.borrow, { address: deployAddress })(...args),
2543
+ repayDebt: (...args) => mutate(walletClient, mutation.repayDebt, { address: deployAddress })(...args),
2544
+ claimRewards: (...args) => mutate(walletClient, mutation.claimRewards, { address: deployAddress })(...args),
2545
+ addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity, { address: deployAddress })(...args),
2546
+ removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity, { address: deployAddress })(...args),
2547
+ transferFunds: (...args) => mutate(walletClient, mutation.transferFunds, { address: deployAddress })(...args),
2548
+ convertEthToWeth: (...args) => mutate(walletClient, mutation.convertEthToWeth, { address: deployAddress })(...args),
2549
+ convertWethToEth: (...args) => mutate(walletClient, mutation.convertWethToEth, { address: deployAddress })(...args),
2550
+ recoverTrialFunds: (...args) => mutate(walletClient, mutation.recoverTrialFunds, { address: deployAddress })(...args),
2551
+ recoverNft: (...args) => mutate(walletClient, mutation.recoverNft, { address: deployAddress })(...args),
2552
+ };
2553
+ }