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