@underscore-finance/sdk 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/LICENSE +41 -0
  2. package/README.md +131 -0
  3. package/dist/contracts/AddyRegistry.d.ts +471 -0
  4. package/dist/contracts/AddyRegistry.d.ts.map +1 -0
  5. package/dist/contracts/AddyRegistry.js +592 -0
  6. package/dist/contracts/AgentFactory.d.ts +966 -0
  7. package/dist/contracts/AgentFactory.d.ts.map +1 -0
  8. package/dist/contracts/AgentFactory.js +1227 -0
  9. package/dist/contracts/AgentTemplate.d.ts +2629 -0
  10. package/dist/contracts/AgentTemplate.d.ts.map +1 -0
  11. package/dist/contracts/AgentTemplate.js +3370 -0
  12. package/dist/contracts/ChainlinkFeeds.d.ts +567 -0
  13. package/dist/contracts/ChainlinkFeeds.d.ts.map +1 -0
  14. package/dist/contracts/ChainlinkFeeds.js +735 -0
  15. package/dist/contracts/LegoAaveV3.d.ts +894 -0
  16. package/dist/contracts/LegoAaveV3.d.ts.map +1 -0
  17. package/dist/contracts/LegoAaveV3.js +1165 -0
  18. package/dist/contracts/LegoAeroClassic.d.ts +1065 -0
  19. package/dist/contracts/LegoAeroClassic.d.ts.map +1 -0
  20. package/dist/contracts/LegoAeroClassic.js +1381 -0
  21. package/dist/contracts/LegoAeroSlipstream.d.ts +1161 -0
  22. package/dist/contracts/LegoAeroSlipstream.d.ts.map +1 -0
  23. package/dist/contracts/LegoAeroSlipstream.js +1506 -0
  24. package/dist/contracts/LegoCompoundV3.d.ts +921 -0
  25. package/dist/contracts/LegoCompoundV3.d.ts.map +1 -0
  26. package/dist/contracts/LegoCompoundV3.js +1200 -0
  27. package/dist/contracts/LegoCurve.d.ts +1050 -0
  28. package/dist/contracts/LegoCurve.d.ts.map +1 -0
  29. package/dist/contracts/LegoCurve.js +1354 -0
  30. package/dist/contracts/LegoEuler.d.ts +935 -0
  31. package/dist/contracts/LegoEuler.d.ts.map +1 -0
  32. package/dist/contracts/LegoEuler.js +1218 -0
  33. package/dist/contracts/LegoFluid.d.ts +875 -0
  34. package/dist/contracts/LegoFluid.d.ts.map +1 -0
  35. package/dist/contracts/LegoFluid.js +1141 -0
  36. package/dist/contracts/LegoHelper.d.ts +1555 -0
  37. package/dist/contracts/LegoHelper.d.ts.map +1 -0
  38. package/dist/contracts/LegoHelper.js +1945 -0
  39. package/dist/contracts/LegoMoonwell.d.ts +903 -0
  40. package/dist/contracts/LegoMoonwell.d.ts.map +1 -0
  41. package/dist/contracts/LegoMoonwell.js +1177 -0
  42. package/dist/contracts/LegoMorpho.d.ts +935 -0
  43. package/dist/contracts/LegoMorpho.d.ts.map +1 -0
  44. package/dist/contracts/LegoMorpho.js +1218 -0
  45. package/dist/contracts/LegoRegistry.d.ts +589 -0
  46. package/dist/contracts/LegoRegistry.d.ts.map +1 -0
  47. package/dist/contracts/LegoRegistry.js +746 -0
  48. package/dist/contracts/LegoSky.d.ts +784 -0
  49. package/dist/contracts/LegoSky.d.ts.map +1 -0
  50. package/dist/contracts/LegoSky.js +1015 -0
  51. package/dist/contracts/LegoUniswapV2.d.ts +1065 -0
  52. package/dist/contracts/LegoUniswapV2.d.ts.map +1 -0
  53. package/dist/contracts/LegoUniswapV2.js +1381 -0
  54. package/dist/contracts/LegoUniswapV3.d.ts +1199 -0
  55. package/dist/contracts/LegoUniswapV3.d.ts.map +1 -0
  56. package/dist/contracts/LegoUniswapV3.js +1553 -0
  57. package/dist/contracts/OracleRegistry.d.ts +811 -0
  58. package/dist/contracts/OracleRegistry.d.ts.map +1 -0
  59. package/dist/contracts/OracleRegistry.js +1049 -0
  60. package/dist/contracts/PriceSheets.d.ts +1053 -0
  61. package/dist/contracts/PriceSheets.d.ts.map +1 -0
  62. package/dist/contracts/PriceSheets.js +1296 -0
  63. package/dist/contracts/PythFeeds.d.ts +501 -0
  64. package/dist/contracts/PythFeeds.d.ts.map +1 -0
  65. package/dist/contracts/PythFeeds.js +648 -0
  66. package/dist/contracts/StorkFeeds.d.ts +501 -0
  67. package/dist/contracts/StorkFeeds.d.ts.map +1 -0
  68. package/dist/contracts/StorkFeeds.js +648 -0
  69. package/dist/contracts/WalletConfig.d.ts +1398 -0
  70. package/dist/contracts/WalletConfig.d.ts.map +1 -0
  71. package/dist/contracts/WalletConfig.js +1674 -0
  72. package/dist/contracts/WalletFunds.d.ts +1978 -0
  73. package/dist/contracts/WalletFunds.d.ts.map +1 -0
  74. package/dist/contracts/WalletFunds.js +2579 -0
  75. package/dist/contracts/index.d.ts +25 -0
  76. package/dist/contracts/index.d.ts.map +1 -0
  77. package/dist/contracts/index.js +28 -0
  78. package/dist/contracts/sdk.d.ts +53 -0
  79. package/dist/contracts/sdk.d.ts.map +1 -0
  80. package/dist/contracts/sdk.js +56 -0
  81. package/dist/index.d.ts +15 -0
  82. package/dist/index.d.ts.map +1 -0
  83. package/dist/index.js +16 -0
  84. package/package.json +31 -0
@@ -0,0 +1,1553 @@
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": "sender",
13
+ "type": "address"
14
+ },
15
+ {
16
+ "indexed": true,
17
+ "name": "tokenIn",
18
+ "type": "address"
19
+ },
20
+ {
21
+ "indexed": true,
22
+ "name": "tokenOut",
23
+ "type": "address"
24
+ },
25
+ {
26
+ "indexed": false,
27
+ "name": "amountIn",
28
+ "type": "uint256"
29
+ },
30
+ {
31
+ "indexed": false,
32
+ "name": "amountOut",
33
+ "type": "uint256"
34
+ },
35
+ {
36
+ "indexed": false,
37
+ "name": "usdValue",
38
+ "type": "uint256"
39
+ },
40
+ {
41
+ "indexed": false,
42
+ "name": "numTokens",
43
+ "type": "uint256"
44
+ },
45
+ {
46
+ "indexed": false,
47
+ "name": "recipient",
48
+ "type": "address"
49
+ }
50
+ ],
51
+ "name": "UniswapV3Swap",
52
+ "type": "event"
53
+ },
54
+ {
55
+ "anonymous": false,
56
+ "inputs": [
57
+ {
58
+ "indexed": true,
59
+ "name": "sender",
60
+ "type": "address"
61
+ },
62
+ {
63
+ "indexed": true,
64
+ "name": "pool",
65
+ "type": "address"
66
+ },
67
+ {
68
+ "indexed": true,
69
+ "name": "tokenIn",
70
+ "type": "address"
71
+ },
72
+ {
73
+ "indexed": false,
74
+ "name": "tokenOut",
75
+ "type": "address"
76
+ },
77
+ {
78
+ "indexed": false,
79
+ "name": "amountIn",
80
+ "type": "uint256"
81
+ },
82
+ {
83
+ "indexed": false,
84
+ "name": "amountOut",
85
+ "type": "uint256"
86
+ },
87
+ {
88
+ "indexed": false,
89
+ "name": "usdValue",
90
+ "type": "uint256"
91
+ },
92
+ {
93
+ "indexed": false,
94
+ "name": "recipient",
95
+ "type": "address"
96
+ }
97
+ ],
98
+ "name": "UniswapV3SwapInPool",
99
+ "type": "event"
100
+ },
101
+ {
102
+ "anonymous": false,
103
+ "inputs": [
104
+ {
105
+ "indexed": true,
106
+ "name": "sender",
107
+ "type": "address"
108
+ },
109
+ {
110
+ "indexed": true,
111
+ "name": "tokenA",
112
+ "type": "address"
113
+ },
114
+ {
115
+ "indexed": true,
116
+ "name": "tokenB",
117
+ "type": "address"
118
+ },
119
+ {
120
+ "indexed": false,
121
+ "name": "amountA",
122
+ "type": "uint256"
123
+ },
124
+ {
125
+ "indexed": false,
126
+ "name": "amountB",
127
+ "type": "uint256"
128
+ },
129
+ {
130
+ "indexed": false,
131
+ "name": "liquidityAdded",
132
+ "type": "uint256"
133
+ },
134
+ {
135
+ "indexed": false,
136
+ "name": "nftTokenId",
137
+ "type": "uint256"
138
+ },
139
+ {
140
+ "indexed": false,
141
+ "name": "usdValue",
142
+ "type": "uint256"
143
+ },
144
+ {
145
+ "indexed": false,
146
+ "name": "recipient",
147
+ "type": "address"
148
+ }
149
+ ],
150
+ "name": "UniswapV3LiquidityAdded",
151
+ "type": "event"
152
+ },
153
+ {
154
+ "anonymous": false,
155
+ "inputs": [
156
+ {
157
+ "indexed": false,
158
+ "name": "sender",
159
+ "type": "address"
160
+ },
161
+ {
162
+ "indexed": true,
163
+ "name": "pool",
164
+ "type": "address"
165
+ },
166
+ {
167
+ "indexed": false,
168
+ "name": "nftTokenId",
169
+ "type": "uint256"
170
+ },
171
+ {
172
+ "indexed": true,
173
+ "name": "tokenA",
174
+ "type": "address"
175
+ },
176
+ {
177
+ "indexed": true,
178
+ "name": "tokenB",
179
+ "type": "address"
180
+ },
181
+ {
182
+ "indexed": false,
183
+ "name": "amountA",
184
+ "type": "uint256"
185
+ },
186
+ {
187
+ "indexed": false,
188
+ "name": "amountB",
189
+ "type": "uint256"
190
+ },
191
+ {
192
+ "indexed": false,
193
+ "name": "liquidityRemoved",
194
+ "type": "uint256"
195
+ },
196
+ {
197
+ "indexed": false,
198
+ "name": "usdValue",
199
+ "type": "uint256"
200
+ },
201
+ {
202
+ "indexed": false,
203
+ "name": "recipient",
204
+ "type": "address"
205
+ }
206
+ ],
207
+ "name": "UniswapV3LiquidityRemoved",
208
+ "type": "event"
209
+ },
210
+ {
211
+ "anonymous": false,
212
+ "inputs": [
213
+ {
214
+ "indexed": true,
215
+ "name": "asset",
216
+ "type": "address"
217
+ },
218
+ {
219
+ "indexed": true,
220
+ "name": "recipient",
221
+ "type": "address"
222
+ },
223
+ {
224
+ "indexed": false,
225
+ "name": "amount",
226
+ "type": "uint256"
227
+ }
228
+ ],
229
+ "name": "UniV3FundsRecovered",
230
+ "type": "event"
231
+ },
232
+ {
233
+ "anonymous": false,
234
+ "inputs": [
235
+ {
236
+ "indexed": true,
237
+ "name": "pool",
238
+ "type": "address"
239
+ }
240
+ ],
241
+ "name": "UniV3CoreRouterPoolSet",
242
+ "type": "event"
243
+ },
244
+ {
245
+ "anonymous": false,
246
+ "inputs": [
247
+ {
248
+ "indexed": true,
249
+ "name": "collection",
250
+ "type": "address"
251
+ },
252
+ {
253
+ "indexed": false,
254
+ "name": "nftTokenId",
255
+ "type": "uint256"
256
+ },
257
+ {
258
+ "indexed": true,
259
+ "name": "recipient",
260
+ "type": "address"
261
+ }
262
+ ],
263
+ "name": "UniV3NftRecovered",
264
+ "type": "event"
265
+ },
266
+ {
267
+ "anonymous": false,
268
+ "inputs": [
269
+ {
270
+ "indexed": false,
271
+ "name": "legoId",
272
+ "type": "uint256"
273
+ }
274
+ ],
275
+ "name": "UniswapV3LegoIdSet",
276
+ "type": "event"
277
+ },
278
+ {
279
+ "anonymous": false,
280
+ "inputs": [
281
+ {
282
+ "indexed": false,
283
+ "name": "isActivated",
284
+ "type": "bool"
285
+ }
286
+ ],
287
+ "name": "UniswapV3Activated",
288
+ "type": "event"
289
+ },
290
+ {
291
+ "anonymous": false,
292
+ "inputs": [
293
+ {
294
+ "indexed": true,
295
+ "name": "addr",
296
+ "type": "address"
297
+ }
298
+ ],
299
+ "name": "LocalGovernorSet",
300
+ "type": "event"
301
+ },
302
+ {
303
+ "inputs": [
304
+ {
305
+ "name": "_address",
306
+ "type": "address"
307
+ }
308
+ ],
309
+ "name": "isGovernor",
310
+ "outputs": [
311
+ {
312
+ "name": "",
313
+ "type": "bool"
314
+ }
315
+ ],
316
+ "stateMutability": "view",
317
+ "type": "function"
318
+ },
319
+ {
320
+ "inputs": [
321
+ {
322
+ "name": "_newGovernor",
323
+ "type": "address"
324
+ }
325
+ ],
326
+ "name": "isValidLocalGovernor",
327
+ "outputs": [
328
+ {
329
+ "name": "",
330
+ "type": "bool"
331
+ }
332
+ ],
333
+ "stateMutability": "view",
334
+ "type": "function"
335
+ },
336
+ {
337
+ "inputs": [
338
+ {
339
+ "name": "_newGovernor",
340
+ "type": "address"
341
+ }
342
+ ],
343
+ "name": "setLocalGovernor",
344
+ "outputs": [
345
+ {
346
+ "name": "",
347
+ "type": "bool"
348
+ }
349
+ ],
350
+ "stateMutability": "nonpayable",
351
+ "type": "function"
352
+ },
353
+ {
354
+ "inputs": [],
355
+ "name": "localGovernor",
356
+ "outputs": [
357
+ {
358
+ "name": "",
359
+ "type": "address"
360
+ }
361
+ ],
362
+ "stateMutability": "view",
363
+ "type": "function"
364
+ },
365
+ {
366
+ "inputs": [
367
+ {
368
+ "name": "_operator",
369
+ "type": "address"
370
+ },
371
+ {
372
+ "name": "_owner",
373
+ "type": "address"
374
+ },
375
+ {
376
+ "name": "_tokenId",
377
+ "type": "uint256"
378
+ },
379
+ {
380
+ "name": "_data",
381
+ "type": "bytes"
382
+ }
383
+ ],
384
+ "name": "onERC721Received",
385
+ "outputs": [
386
+ {
387
+ "name": "",
388
+ "type": "bytes4"
389
+ }
390
+ ],
391
+ "stateMutability": "view",
392
+ "type": "function"
393
+ },
394
+ {
395
+ "inputs": [],
396
+ "name": "getRegistries",
397
+ "outputs": [
398
+ {
399
+ "name": "",
400
+ "type": "address[]"
401
+ }
402
+ ],
403
+ "stateMutability": "view",
404
+ "type": "function"
405
+ },
406
+ {
407
+ "inputs": [
408
+ {
409
+ "name": "_user",
410
+ "type": "address"
411
+ }
412
+ ],
413
+ "name": "getAccessForLego",
414
+ "outputs": [
415
+ {
416
+ "name": "",
417
+ "type": "address"
418
+ },
419
+ {
420
+ "name": "",
421
+ "type": "string"
422
+ },
423
+ {
424
+ "name": "",
425
+ "type": "uint256"
426
+ }
427
+ ],
428
+ "stateMutability": "view",
429
+ "type": "function"
430
+ },
431
+ {
432
+ "inputs": [
433
+ {
434
+ "name": "_amountIn",
435
+ "type": "uint256"
436
+ },
437
+ {
438
+ "name": "_minAmountOut",
439
+ "type": "uint256"
440
+ },
441
+ {
442
+ "name": "_tokenPath",
443
+ "type": "address[]"
444
+ },
445
+ {
446
+ "name": "_poolPath",
447
+ "type": "address[]"
448
+ },
449
+ {
450
+ "name": "_recipient",
451
+ "type": "address"
452
+ }
453
+ ],
454
+ "name": "swapTokens",
455
+ "outputs": [
456
+ {
457
+ "name": "",
458
+ "type": "uint256"
459
+ },
460
+ {
461
+ "name": "",
462
+ "type": "uint256"
463
+ },
464
+ {
465
+ "name": "",
466
+ "type": "uint256"
467
+ },
468
+ {
469
+ "name": "",
470
+ "type": "uint256"
471
+ }
472
+ ],
473
+ "stateMutability": "nonpayable",
474
+ "type": "function"
475
+ },
476
+ {
477
+ "inputs": [
478
+ {
479
+ "name": "_amountIn",
480
+ "type": "uint256"
481
+ },
482
+ {
483
+ "name": "_minAmountOut",
484
+ "type": "uint256"
485
+ },
486
+ {
487
+ "name": "_tokenPath",
488
+ "type": "address[]"
489
+ },
490
+ {
491
+ "name": "_poolPath",
492
+ "type": "address[]"
493
+ },
494
+ {
495
+ "name": "_recipient",
496
+ "type": "address"
497
+ },
498
+ {
499
+ "name": "_oracleRegistry",
500
+ "type": "address"
501
+ }
502
+ ],
503
+ "name": "swapTokens",
504
+ "outputs": [
505
+ {
506
+ "name": "",
507
+ "type": "uint256"
508
+ },
509
+ {
510
+ "name": "",
511
+ "type": "uint256"
512
+ },
513
+ {
514
+ "name": "",
515
+ "type": "uint256"
516
+ },
517
+ {
518
+ "name": "",
519
+ "type": "uint256"
520
+ }
521
+ ],
522
+ "stateMutability": "nonpayable",
523
+ "type": "function"
524
+ },
525
+ {
526
+ "inputs": [
527
+ {
528
+ "name": "_amount0Delta",
529
+ "type": "int256"
530
+ },
531
+ {
532
+ "name": "_amount1Delta",
533
+ "type": "int256"
534
+ },
535
+ {
536
+ "name": "_data",
537
+ "type": "bytes"
538
+ }
539
+ ],
540
+ "name": "uniswapV3SwapCallback",
541
+ "outputs": [],
542
+ "stateMutability": "nonpayable",
543
+ "type": "function"
544
+ },
545
+ {
546
+ "inputs": [
547
+ {
548
+ "name": "_nftTokenId",
549
+ "type": "uint256"
550
+ },
551
+ {
552
+ "name": "_pool",
553
+ "type": "address"
554
+ },
555
+ {
556
+ "name": "_tokenA",
557
+ "type": "address"
558
+ },
559
+ {
560
+ "name": "_tokenB",
561
+ "type": "address"
562
+ },
563
+ {
564
+ "name": "_tickLower",
565
+ "type": "int24"
566
+ },
567
+ {
568
+ "name": "_tickUpper",
569
+ "type": "int24"
570
+ },
571
+ {
572
+ "name": "_amountA",
573
+ "type": "uint256"
574
+ },
575
+ {
576
+ "name": "_amountB",
577
+ "type": "uint256"
578
+ },
579
+ {
580
+ "name": "_minAmountA",
581
+ "type": "uint256"
582
+ },
583
+ {
584
+ "name": "_minAmountB",
585
+ "type": "uint256"
586
+ },
587
+ {
588
+ "name": "_minLpAmount",
589
+ "type": "uint256"
590
+ },
591
+ {
592
+ "name": "_recipient",
593
+ "type": "address"
594
+ }
595
+ ],
596
+ "name": "addLiquidity",
597
+ "outputs": [
598
+ {
599
+ "name": "",
600
+ "type": "uint256"
601
+ },
602
+ {
603
+ "name": "",
604
+ "type": "uint256"
605
+ },
606
+ {
607
+ "name": "",
608
+ "type": "uint256"
609
+ },
610
+ {
611
+ "name": "",
612
+ "type": "uint256"
613
+ },
614
+ {
615
+ "name": "",
616
+ "type": "uint256"
617
+ },
618
+ {
619
+ "name": "",
620
+ "type": "uint256"
621
+ },
622
+ {
623
+ "name": "",
624
+ "type": "uint256"
625
+ }
626
+ ],
627
+ "stateMutability": "nonpayable",
628
+ "type": "function"
629
+ },
630
+ {
631
+ "inputs": [
632
+ {
633
+ "name": "_nftTokenId",
634
+ "type": "uint256"
635
+ },
636
+ {
637
+ "name": "_pool",
638
+ "type": "address"
639
+ },
640
+ {
641
+ "name": "_tokenA",
642
+ "type": "address"
643
+ },
644
+ {
645
+ "name": "_tokenB",
646
+ "type": "address"
647
+ },
648
+ {
649
+ "name": "_tickLower",
650
+ "type": "int24"
651
+ },
652
+ {
653
+ "name": "_tickUpper",
654
+ "type": "int24"
655
+ },
656
+ {
657
+ "name": "_amountA",
658
+ "type": "uint256"
659
+ },
660
+ {
661
+ "name": "_amountB",
662
+ "type": "uint256"
663
+ },
664
+ {
665
+ "name": "_minAmountA",
666
+ "type": "uint256"
667
+ },
668
+ {
669
+ "name": "_minAmountB",
670
+ "type": "uint256"
671
+ },
672
+ {
673
+ "name": "_minLpAmount",
674
+ "type": "uint256"
675
+ },
676
+ {
677
+ "name": "_recipient",
678
+ "type": "address"
679
+ },
680
+ {
681
+ "name": "_oracleRegistry",
682
+ "type": "address"
683
+ }
684
+ ],
685
+ "name": "addLiquidity",
686
+ "outputs": [
687
+ {
688
+ "name": "",
689
+ "type": "uint256"
690
+ },
691
+ {
692
+ "name": "",
693
+ "type": "uint256"
694
+ },
695
+ {
696
+ "name": "",
697
+ "type": "uint256"
698
+ },
699
+ {
700
+ "name": "",
701
+ "type": "uint256"
702
+ },
703
+ {
704
+ "name": "",
705
+ "type": "uint256"
706
+ },
707
+ {
708
+ "name": "",
709
+ "type": "uint256"
710
+ },
711
+ {
712
+ "name": "",
713
+ "type": "uint256"
714
+ }
715
+ ],
716
+ "stateMutability": "nonpayable",
717
+ "type": "function"
718
+ },
719
+ {
720
+ "inputs": [
721
+ {
722
+ "name": "_nftTokenId",
723
+ "type": "uint256"
724
+ },
725
+ {
726
+ "name": "_pool",
727
+ "type": "address"
728
+ },
729
+ {
730
+ "name": "_tokenA",
731
+ "type": "address"
732
+ },
733
+ {
734
+ "name": "_tokenB",
735
+ "type": "address"
736
+ },
737
+ {
738
+ "name": "_lpToken",
739
+ "type": "address"
740
+ },
741
+ {
742
+ "name": "_liqToRemove",
743
+ "type": "uint256"
744
+ },
745
+ {
746
+ "name": "_minAmountA",
747
+ "type": "uint256"
748
+ },
749
+ {
750
+ "name": "_minAmountB",
751
+ "type": "uint256"
752
+ },
753
+ {
754
+ "name": "_recipient",
755
+ "type": "address"
756
+ }
757
+ ],
758
+ "name": "removeLiquidity",
759
+ "outputs": [
760
+ {
761
+ "name": "",
762
+ "type": "uint256"
763
+ },
764
+ {
765
+ "name": "",
766
+ "type": "uint256"
767
+ },
768
+ {
769
+ "name": "",
770
+ "type": "uint256"
771
+ },
772
+ {
773
+ "name": "",
774
+ "type": "uint256"
775
+ },
776
+ {
777
+ "name": "",
778
+ "type": "uint256"
779
+ },
780
+ {
781
+ "name": "",
782
+ "type": "bool"
783
+ }
784
+ ],
785
+ "stateMutability": "nonpayable",
786
+ "type": "function"
787
+ },
788
+ {
789
+ "inputs": [
790
+ {
791
+ "name": "_nftTokenId",
792
+ "type": "uint256"
793
+ },
794
+ {
795
+ "name": "_pool",
796
+ "type": "address"
797
+ },
798
+ {
799
+ "name": "_tokenA",
800
+ "type": "address"
801
+ },
802
+ {
803
+ "name": "_tokenB",
804
+ "type": "address"
805
+ },
806
+ {
807
+ "name": "_lpToken",
808
+ "type": "address"
809
+ },
810
+ {
811
+ "name": "_liqToRemove",
812
+ "type": "uint256"
813
+ },
814
+ {
815
+ "name": "_minAmountA",
816
+ "type": "uint256"
817
+ },
818
+ {
819
+ "name": "_minAmountB",
820
+ "type": "uint256"
821
+ },
822
+ {
823
+ "name": "_recipient",
824
+ "type": "address"
825
+ },
826
+ {
827
+ "name": "_oracleRegistry",
828
+ "type": "address"
829
+ }
830
+ ],
831
+ "name": "removeLiquidity",
832
+ "outputs": [
833
+ {
834
+ "name": "",
835
+ "type": "uint256"
836
+ },
837
+ {
838
+ "name": "",
839
+ "type": "uint256"
840
+ },
841
+ {
842
+ "name": "",
843
+ "type": "uint256"
844
+ },
845
+ {
846
+ "name": "",
847
+ "type": "uint256"
848
+ },
849
+ {
850
+ "name": "",
851
+ "type": "uint256"
852
+ },
853
+ {
854
+ "name": "",
855
+ "type": "bool"
856
+ }
857
+ ],
858
+ "stateMutability": "nonpayable",
859
+ "type": "function"
860
+ },
861
+ {
862
+ "inputs": [
863
+ {
864
+ "name": "_user",
865
+ "type": "address"
866
+ },
867
+ {
868
+ "name": "_market",
869
+ "type": "address"
870
+ },
871
+ {
872
+ "name": "_rewardToken",
873
+ "type": "address"
874
+ },
875
+ {
876
+ "name": "_rewardAmount",
877
+ "type": "uint256"
878
+ },
879
+ {
880
+ "name": "_proof",
881
+ "type": "bytes32"
882
+ }
883
+ ],
884
+ "name": "claimRewards",
885
+ "outputs": [],
886
+ "stateMutability": "nonpayable",
887
+ "type": "function"
888
+ },
889
+ {
890
+ "inputs": [
891
+ {
892
+ "name": "_user",
893
+ "type": "address"
894
+ }
895
+ ],
896
+ "name": "hasClaimableRewards",
897
+ "outputs": [
898
+ {
899
+ "name": "",
900
+ "type": "bool"
901
+ }
902
+ ],
903
+ "stateMutability": "view",
904
+ "type": "function"
905
+ },
906
+ {
907
+ "inputs": [
908
+ {
909
+ "name": "_pool",
910
+ "type": "address"
911
+ }
912
+ ],
913
+ "name": "getLpToken",
914
+ "outputs": [
915
+ {
916
+ "name": "",
917
+ "type": "address"
918
+ }
919
+ ],
920
+ "stateMutability": "view",
921
+ "type": "function"
922
+ },
923
+ {
924
+ "inputs": [
925
+ {
926
+ "name": "_lpToken",
927
+ "type": "address"
928
+ }
929
+ ],
930
+ "name": "getPoolForLpToken",
931
+ "outputs": [
932
+ {
933
+ "name": "",
934
+ "type": "address"
935
+ }
936
+ ],
937
+ "stateMutability": "view",
938
+ "type": "function"
939
+ },
940
+ {
941
+ "inputs": [],
942
+ "name": "getCoreRouterPool",
943
+ "outputs": [
944
+ {
945
+ "name": "",
946
+ "type": "address"
947
+ }
948
+ ],
949
+ "stateMutability": "view",
950
+ "type": "function"
951
+ },
952
+ {
953
+ "inputs": [
954
+ {
955
+ "name": "_tokenA",
956
+ "type": "address"
957
+ },
958
+ {
959
+ "name": "_tokenB",
960
+ "type": "address"
961
+ }
962
+ ],
963
+ "name": "getDeepestLiqPool",
964
+ "outputs": [
965
+ {
966
+ "components": [
967
+ {
968
+ "name": "pool",
969
+ "type": "address"
970
+ },
971
+ {
972
+ "name": "fee",
973
+ "type": "uint256"
974
+ },
975
+ {
976
+ "name": "liquidity",
977
+ "type": "uint256"
978
+ },
979
+ {
980
+ "name": "numCoins",
981
+ "type": "uint256"
982
+ },
983
+ {
984
+ "name": "legoId",
985
+ "type": "uint256"
986
+ }
987
+ ],
988
+ "name": "",
989
+ "type": "tuple"
990
+ }
991
+ ],
992
+ "stateMutability": "view",
993
+ "type": "function"
994
+ },
995
+ {
996
+ "inputs": [
997
+ {
998
+ "name": "_tokenIn",
999
+ "type": "address"
1000
+ },
1001
+ {
1002
+ "name": "_tokenOut",
1003
+ "type": "address"
1004
+ },
1005
+ {
1006
+ "name": "_amountIn",
1007
+ "type": "uint256"
1008
+ }
1009
+ ],
1010
+ "name": "getBestSwapAmountOut",
1011
+ "outputs": [
1012
+ {
1013
+ "name": "",
1014
+ "type": "address"
1015
+ },
1016
+ {
1017
+ "name": "",
1018
+ "type": "uint256"
1019
+ }
1020
+ ],
1021
+ "stateMutability": "nonpayable",
1022
+ "type": "function"
1023
+ },
1024
+ {
1025
+ "inputs": [
1026
+ {
1027
+ "name": "_pool",
1028
+ "type": "address"
1029
+ },
1030
+ {
1031
+ "name": "_tokenIn",
1032
+ "type": "address"
1033
+ },
1034
+ {
1035
+ "name": "_tokenOut",
1036
+ "type": "address"
1037
+ },
1038
+ {
1039
+ "name": "_amountIn",
1040
+ "type": "uint256"
1041
+ }
1042
+ ],
1043
+ "name": "getSwapAmountOut",
1044
+ "outputs": [
1045
+ {
1046
+ "name": "",
1047
+ "type": "uint256"
1048
+ }
1049
+ ],
1050
+ "stateMutability": "nonpayable",
1051
+ "type": "function"
1052
+ },
1053
+ {
1054
+ "inputs": [
1055
+ {
1056
+ "name": "_tokenIn",
1057
+ "type": "address"
1058
+ },
1059
+ {
1060
+ "name": "_tokenOut",
1061
+ "type": "address"
1062
+ },
1063
+ {
1064
+ "name": "_amountOut",
1065
+ "type": "uint256"
1066
+ }
1067
+ ],
1068
+ "name": "getBestSwapAmountIn",
1069
+ "outputs": [
1070
+ {
1071
+ "name": "",
1072
+ "type": "address"
1073
+ },
1074
+ {
1075
+ "name": "",
1076
+ "type": "uint256"
1077
+ }
1078
+ ],
1079
+ "stateMutability": "nonpayable",
1080
+ "type": "function"
1081
+ },
1082
+ {
1083
+ "inputs": [
1084
+ {
1085
+ "name": "_pool",
1086
+ "type": "address"
1087
+ },
1088
+ {
1089
+ "name": "_tokenIn",
1090
+ "type": "address"
1091
+ },
1092
+ {
1093
+ "name": "_tokenOut",
1094
+ "type": "address"
1095
+ },
1096
+ {
1097
+ "name": "_amountOut",
1098
+ "type": "uint256"
1099
+ }
1100
+ ],
1101
+ "name": "getSwapAmountIn",
1102
+ "outputs": [
1103
+ {
1104
+ "name": "",
1105
+ "type": "uint256"
1106
+ }
1107
+ ],
1108
+ "stateMutability": "nonpayable",
1109
+ "type": "function"
1110
+ },
1111
+ {
1112
+ "inputs": [
1113
+ {
1114
+ "name": "_pool",
1115
+ "type": "address"
1116
+ },
1117
+ {
1118
+ "name": "_tokenA",
1119
+ "type": "address"
1120
+ },
1121
+ {
1122
+ "name": "_tokenB",
1123
+ "type": "address"
1124
+ },
1125
+ {
1126
+ "name": "_availAmountA",
1127
+ "type": "uint256"
1128
+ },
1129
+ {
1130
+ "name": "_availAmountB",
1131
+ "type": "uint256"
1132
+ }
1133
+ ],
1134
+ "name": "getAddLiqAmountsIn",
1135
+ "outputs": [
1136
+ {
1137
+ "name": "",
1138
+ "type": "uint256"
1139
+ },
1140
+ {
1141
+ "name": "",
1142
+ "type": "uint256"
1143
+ },
1144
+ {
1145
+ "name": "",
1146
+ "type": "uint256"
1147
+ }
1148
+ ],
1149
+ "stateMutability": "view",
1150
+ "type": "function"
1151
+ },
1152
+ {
1153
+ "inputs": [
1154
+ {
1155
+ "name": "_pool",
1156
+ "type": "address"
1157
+ },
1158
+ {
1159
+ "name": "_tokenA",
1160
+ "type": "address"
1161
+ },
1162
+ {
1163
+ "name": "_tokenB",
1164
+ "type": "address"
1165
+ },
1166
+ {
1167
+ "name": "_lpAmount",
1168
+ "type": "uint256"
1169
+ }
1170
+ ],
1171
+ "name": "getRemoveLiqAmountsOut",
1172
+ "outputs": [
1173
+ {
1174
+ "name": "",
1175
+ "type": "uint256"
1176
+ },
1177
+ {
1178
+ "name": "",
1179
+ "type": "uint256"
1180
+ }
1181
+ ],
1182
+ "stateMutability": "view",
1183
+ "type": "function"
1184
+ },
1185
+ {
1186
+ "inputs": [
1187
+ {
1188
+ "name": "_pool",
1189
+ "type": "address"
1190
+ },
1191
+ {
1192
+ "name": "_targetToken",
1193
+ "type": "address"
1194
+ }
1195
+ ],
1196
+ "name": "getPriceUnsafe",
1197
+ "outputs": [
1198
+ {
1199
+ "name": "",
1200
+ "type": "uint256"
1201
+ }
1202
+ ],
1203
+ "stateMutability": "view",
1204
+ "type": "function"
1205
+ },
1206
+ {
1207
+ "inputs": [
1208
+ {
1209
+ "name": "_pool",
1210
+ "type": "address"
1211
+ },
1212
+ {
1213
+ "name": "_targetToken",
1214
+ "type": "address"
1215
+ },
1216
+ {
1217
+ "name": "_oracleRegistry",
1218
+ "type": "address"
1219
+ }
1220
+ ],
1221
+ "name": "getPriceUnsafe",
1222
+ "outputs": [
1223
+ {
1224
+ "name": "",
1225
+ "type": "uint256"
1226
+ }
1227
+ ],
1228
+ "stateMutability": "view",
1229
+ "type": "function"
1230
+ },
1231
+ {
1232
+ "inputs": [
1233
+ {
1234
+ "name": "_addr",
1235
+ "type": "address"
1236
+ }
1237
+ ],
1238
+ "name": "setCoreRouterPool",
1239
+ "outputs": [
1240
+ {
1241
+ "name": "",
1242
+ "type": "bool"
1243
+ }
1244
+ ],
1245
+ "stateMutability": "nonpayable",
1246
+ "type": "function"
1247
+ },
1248
+ {
1249
+ "inputs": [
1250
+ {
1251
+ "name": "_asset",
1252
+ "type": "address"
1253
+ },
1254
+ {
1255
+ "name": "_recipient",
1256
+ "type": "address"
1257
+ }
1258
+ ],
1259
+ "name": "recoverFunds",
1260
+ "outputs": [
1261
+ {
1262
+ "name": "",
1263
+ "type": "bool"
1264
+ }
1265
+ ],
1266
+ "stateMutability": "nonpayable",
1267
+ "type": "function"
1268
+ },
1269
+ {
1270
+ "inputs": [
1271
+ {
1272
+ "name": "_collection",
1273
+ "type": "address"
1274
+ },
1275
+ {
1276
+ "name": "_nftTokenId",
1277
+ "type": "uint256"
1278
+ },
1279
+ {
1280
+ "name": "_recipient",
1281
+ "type": "address"
1282
+ }
1283
+ ],
1284
+ "name": "recoverNft",
1285
+ "outputs": [
1286
+ {
1287
+ "name": "",
1288
+ "type": "bool"
1289
+ }
1290
+ ],
1291
+ "stateMutability": "nonpayable",
1292
+ "type": "function"
1293
+ },
1294
+ {
1295
+ "inputs": [
1296
+ {
1297
+ "name": "_legoId",
1298
+ "type": "uint256"
1299
+ }
1300
+ ],
1301
+ "name": "setLegoId",
1302
+ "outputs": [
1303
+ {
1304
+ "name": "",
1305
+ "type": "bool"
1306
+ }
1307
+ ],
1308
+ "stateMutability": "nonpayable",
1309
+ "type": "function"
1310
+ },
1311
+ {
1312
+ "inputs": [
1313
+ {
1314
+ "name": "_shouldActivate",
1315
+ "type": "bool"
1316
+ }
1317
+ ],
1318
+ "name": "activate",
1319
+ "outputs": [],
1320
+ "stateMutability": "nonpayable",
1321
+ "type": "function"
1322
+ },
1323
+ {
1324
+ "inputs": [],
1325
+ "name": "coreRouterPool",
1326
+ "outputs": [
1327
+ {
1328
+ "name": "",
1329
+ "type": "address"
1330
+ }
1331
+ ],
1332
+ "stateMutability": "view",
1333
+ "type": "function"
1334
+ },
1335
+ {
1336
+ "inputs": [],
1337
+ "name": "UNIV3_FACTORY",
1338
+ "outputs": [
1339
+ {
1340
+ "name": "",
1341
+ "type": "address"
1342
+ }
1343
+ ],
1344
+ "stateMutability": "view",
1345
+ "type": "function"
1346
+ },
1347
+ {
1348
+ "inputs": [],
1349
+ "name": "UNIV3_NFT_MANAGER",
1350
+ "outputs": [
1351
+ {
1352
+ "name": "",
1353
+ "type": "address"
1354
+ }
1355
+ ],
1356
+ "stateMutability": "view",
1357
+ "type": "function"
1358
+ },
1359
+ {
1360
+ "inputs": [],
1361
+ "name": "UNIV3_QUOTER",
1362
+ "outputs": [
1363
+ {
1364
+ "name": "",
1365
+ "type": "address"
1366
+ }
1367
+ ],
1368
+ "stateMutability": "view",
1369
+ "type": "function"
1370
+ },
1371
+ {
1372
+ "inputs": [],
1373
+ "name": "legoId",
1374
+ "outputs": [
1375
+ {
1376
+ "name": "",
1377
+ "type": "uint256"
1378
+ }
1379
+ ],
1380
+ "stateMutability": "view",
1381
+ "type": "function"
1382
+ },
1383
+ {
1384
+ "inputs": [],
1385
+ "name": "isActivated",
1386
+ "outputs": [
1387
+ {
1388
+ "name": "",
1389
+ "type": "bool"
1390
+ }
1391
+ ],
1392
+ "stateMutability": "view",
1393
+ "type": "function"
1394
+ },
1395
+ {
1396
+ "inputs": [],
1397
+ "name": "ADDY_REGISTRY",
1398
+ "outputs": [
1399
+ {
1400
+ "name": "",
1401
+ "type": "address"
1402
+ }
1403
+ ],
1404
+ "stateMutability": "view",
1405
+ "type": "function"
1406
+ },
1407
+ {
1408
+ "inputs": [
1409
+ {
1410
+ "name": "_uniswapV3Factory",
1411
+ "type": "address"
1412
+ },
1413
+ {
1414
+ "name": "_uniNftPositionManager",
1415
+ "type": "address"
1416
+ },
1417
+ {
1418
+ "name": "_uniV3Quoter",
1419
+ "type": "address"
1420
+ },
1421
+ {
1422
+ "name": "_addyRegistry",
1423
+ "type": "address"
1424
+ },
1425
+ {
1426
+ "name": "_coreRouterPool",
1427
+ "type": "address"
1428
+ }
1429
+ ],
1430
+ "outputs": [],
1431
+ "stateMutability": "nonpayable",
1432
+ "type": "constructor"
1433
+ }
1434
+ ];
1435
+ export const deployAddress = undefined;
1436
+ function getRequest(method, args, contractAddressOrOptions) {
1437
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1438
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
1439
+ const call = {
1440
+ contractName: 'LegoUniswapV3',
1441
+ method,
1442
+ args,
1443
+ address,
1444
+ deployAddress,
1445
+ defaultValue,
1446
+ getAbi: () => abi,
1447
+ with: (options) => {
1448
+ call.address = options.contractAddress;
1449
+ call.defaultValue = options.defaultValue;
1450
+ return call;
1451
+ },
1452
+ defaultTo: (defaultValue) => {
1453
+ call.defaultValue = defaultValue;
1454
+ return call;
1455
+ },
1456
+ at: (address) => {
1457
+ call.address = address;
1458
+ return call;
1459
+ },
1460
+ };
1461
+ return call;
1462
+ }
1463
+ export const call = {
1464
+ isGovernor: (...args) => getRequest('isGovernor', args),
1465
+ isValidLocalGovernor: (...args) => getRequest('isValidLocalGovernor', args),
1466
+ localGovernor: (...args) => getRequest('localGovernor', args),
1467
+ onERC721Received: (...args) => getRequest('onERC721Received', args),
1468
+ getRegistries: (...args) => getRequest('getRegistries', args),
1469
+ getAccessForLego: (...args) => getRequest('getAccessForLego', args),
1470
+ hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
1471
+ getLpToken: (...args) => getRequest('getLpToken', args),
1472
+ getPoolForLpToken: (...args) => getRequest('getPoolForLpToken', args),
1473
+ getCoreRouterPool: (...args) => getRequest('getCoreRouterPool', args),
1474
+ getDeepestLiqPool: (...args) => getRequest('getDeepestLiqPool', args),
1475
+ getAddLiqAmountsIn: (...args) => getRequest('getAddLiqAmountsIn', args),
1476
+ getRemoveLiqAmountsOut: (...args) => getRequest('getRemoveLiqAmountsOut', args),
1477
+ getPriceUnsafe: (...args) => getRequest('getPriceUnsafe', args),
1478
+ coreRouterPool: (...args) => getRequest('coreRouterPool', args),
1479
+ UNIV3_FACTORY: (...args) => getRequest('UNIV3_FACTORY', args),
1480
+ UNIV3_NFT_MANAGER: (...args) => getRequest('UNIV3_NFT_MANAGER', args),
1481
+ UNIV3_QUOTER: (...args) => getRequest('UNIV3_QUOTER', args),
1482
+ legoId: (...args) => getRequest('legoId', args),
1483
+ isActivated: (...args) => getRequest('isActivated', args),
1484
+ ADDY_REGISTRY: (...args) => getRequest('ADDY_REGISTRY', args),
1485
+ };
1486
+ function getMutation(functionName) {
1487
+ return {
1488
+ contractName: 'LegoUniswapV3',
1489
+ functionName,
1490
+ deployAddress,
1491
+ argsType: undefined,
1492
+ getAbi: () => abi,
1493
+ };
1494
+ }
1495
+ export const mutation = {
1496
+ setLocalGovernor: getMutation('setLocalGovernor'),
1497
+ swapTokens: getMutation('swapTokens'),
1498
+ uniswapV3SwapCallback: getMutation('uniswapV3SwapCallback'),
1499
+ addLiquidity: getMutation('addLiquidity'),
1500
+ removeLiquidity: getMutation('removeLiquidity'),
1501
+ claimRewards: getMutation('claimRewards'),
1502
+ getBestSwapAmountOut: getMutation('getBestSwapAmountOut'),
1503
+ getSwapAmountOut: getMutation('getSwapAmountOut'),
1504
+ getBestSwapAmountIn: getMutation('getBestSwapAmountIn'),
1505
+ getSwapAmountIn: getMutation('getSwapAmountIn'),
1506
+ setCoreRouterPool: getMutation('setCoreRouterPool'),
1507
+ recoverFunds: getMutation('recoverFunds'),
1508
+ recoverNft: getMutation('recoverNft'),
1509
+ setLegoId: getMutation('setLegoId'),
1510
+ activate: getMutation('activate'),
1511
+ };
1512
+ export function toSdk(publicClient, walletClient) {
1513
+ return {
1514
+ // Queries
1515
+ isGovernor: (...args) => singleQuery(publicClient, call.isGovernor(...args)),
1516
+ isValidLocalGovernor: (...args) => singleQuery(publicClient, call.isValidLocalGovernor(...args)),
1517
+ localGovernor: (...args) => singleQuery(publicClient, call.localGovernor(...args)),
1518
+ onERC721Received: (...args) => singleQuery(publicClient, call.onERC721Received(...args)),
1519
+ getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args)),
1520
+ getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
1521
+ hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
1522
+ getLpToken: (...args) => singleQuery(publicClient, call.getLpToken(...args)),
1523
+ getPoolForLpToken: (...args) => singleQuery(publicClient, call.getPoolForLpToken(...args)),
1524
+ getCoreRouterPool: (...args) => singleQuery(publicClient, call.getCoreRouterPool(...args)),
1525
+ getDeepestLiqPool: (...args) => singleQuery(publicClient, call.getDeepestLiqPool(...args)),
1526
+ getAddLiqAmountsIn: (...args) => singleQuery(publicClient, call.getAddLiqAmountsIn(...args)),
1527
+ getRemoveLiqAmountsOut: (...args) => singleQuery(publicClient, call.getRemoveLiqAmountsOut(...args)),
1528
+ getPriceUnsafe: (...args) => singleQuery(publicClient, call.getPriceUnsafe(...args)),
1529
+ coreRouterPool: (...args) => singleQuery(publicClient, call.coreRouterPool(...args)),
1530
+ UNIV3_FACTORY: (...args) => singleQuery(publicClient, call.UNIV3_FACTORY(...args)),
1531
+ UNIV3_NFT_MANAGER: (...args) => singleQuery(publicClient, call.UNIV3_NFT_MANAGER(...args)),
1532
+ UNIV3_QUOTER: (...args) => singleQuery(publicClient, call.UNIV3_QUOTER(...args)),
1533
+ legoId: (...args) => singleQuery(publicClient, call.legoId(...args)),
1534
+ isActivated: (...args) => singleQuery(publicClient, call.isActivated(...args)),
1535
+ ADDY_REGISTRY: (...args) => singleQuery(publicClient, call.ADDY_REGISTRY(...args)),
1536
+ // Mutations
1537
+ setLocalGovernor: (...args) => mutate(walletClient, mutation.setLocalGovernor)(...args),
1538
+ swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
1539
+ uniswapV3SwapCallback: (...args) => mutate(walletClient, mutation.uniswapV3SwapCallback)(...args),
1540
+ addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity)(...args),
1541
+ removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity)(...args),
1542
+ claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
1543
+ getBestSwapAmountOut: (...args) => mutate(walletClient, mutation.getBestSwapAmountOut)(...args),
1544
+ getSwapAmountOut: (...args) => mutate(walletClient, mutation.getSwapAmountOut)(...args),
1545
+ getBestSwapAmountIn: (...args) => mutate(walletClient, mutation.getBestSwapAmountIn)(...args),
1546
+ getSwapAmountIn: (...args) => mutate(walletClient, mutation.getSwapAmountIn)(...args),
1547
+ setCoreRouterPool: (...args) => mutate(walletClient, mutation.setCoreRouterPool)(...args),
1548
+ recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
1549
+ recoverNft: (...args) => mutate(walletClient, mutation.recoverNft)(...args),
1550
+ setLegoId: (...args) => mutate(walletClient, mutation.setLegoId)(...args),
1551
+ activate: (...args) => mutate(walletClient, mutation.activate)(...args),
1552
+ };
1553
+ }