@ripe-finance/sdk 0.0.9 → 0.1.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 (59) hide show
  1. package/dist/contracts/BlueChipYieldPrices.d.ts +21 -0
  2. package/dist/contracts/BlueChipYieldPrices.d.ts.map +1 -1
  3. package/dist/contracts/BlueChipYieldPrices.js +26 -1
  4. package/dist/contracts/BondBooster.d.ts +546 -0
  5. package/dist/contracts/BondBooster.d.ts.map +1 -0
  6. package/dist/contracts/BondBooster.js +643 -0
  7. package/dist/contracts/BondRoom.d.ts +40 -1
  8. package/dist/contracts/BondRoom.d.ts.map +1 -1
  9. package/dist/contracts/BondRoom.js +50 -1
  10. package/dist/contracts/ChainlinkPrices.d.ts +21 -0
  11. package/dist/contracts/ChainlinkPrices.d.ts.map +1 -1
  12. package/dist/contracts/ChainlinkPrices.js +26 -1
  13. package/dist/contracts/CurvePrices.d.ts +21 -0
  14. package/dist/contracts/CurvePrices.d.ts.map +1 -1
  15. package/dist/contracts/CurvePrices.js +26 -1
  16. package/dist/contracts/DefaultsBase.d.ts +3 -0
  17. package/dist/contracts/DefaultsBase.d.ts.map +1 -1
  18. package/dist/contracts/DefaultsBase.js +5 -1
  19. package/dist/contracts/Endaoment.d.ts +1009 -732
  20. package/dist/contracts/Endaoment.d.ts.map +1 -1
  21. package/dist/contracts/Endaoment.js +1280 -880
  22. package/dist/contracts/PriceDesk.d.ts +21 -0
  23. package/dist/contracts/PriceDesk.d.ts.map +1 -1
  24. package/dist/contracts/PriceDesk.js +26 -1
  25. package/dist/contracts/PythPrices.d.ts +21 -0
  26. package/dist/contracts/PythPrices.d.ts.map +1 -1
  27. package/dist/contracts/PythPrices.js +26 -1
  28. package/dist/contracts/StorkPrices.d.ts +21 -0
  29. package/dist/contracts/StorkPrices.d.ts.map +1 -1
  30. package/dist/contracts/StorkPrices.js +26 -1
  31. package/dist/contracts/Switchboard.d.ts +21 -0
  32. package/dist/contracts/Switchboard.d.ts.map +1 -1
  33. package/dist/contracts/Switchboard.js +26 -1
  34. package/dist/contracts/SwitchboardAlpha.d.ts +21 -0
  35. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
  36. package/dist/contracts/SwitchboardAlpha.js +26 -1
  37. package/dist/contracts/SwitchboardBravo.d.ts +21 -0
  38. package/dist/contracts/SwitchboardBravo.d.ts.map +1 -1
  39. package/dist/contracts/SwitchboardBravo.js +26 -1
  40. package/dist/contracts/SwitchboardCharlie.d.ts +235 -411
  41. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -1
  42. package/dist/contracts/SwitchboardCharlie.js +292 -527
  43. package/dist/contracts/SwitchboardDelta.d.ts +273 -0
  44. package/dist/contracts/SwitchboardDelta.d.ts.map +1 -1
  45. package/dist/contracts/SwitchboardDelta.js +337 -1
  46. package/dist/contracts/Teller.js +1 -1
  47. package/dist/contracts/VaultBook.d.ts +21 -0
  48. package/dist/contracts/VaultBook.d.ts.map +1 -1
  49. package/dist/contracts/VaultBook.js +26 -1
  50. package/dist/contracts/index.d.ts +1 -0
  51. package/dist/contracts/index.d.ts.map +1 -1
  52. package/dist/contracts/index.js +1 -0
  53. package/dist/contracts/sdk.d.ts +2 -0
  54. package/dist/contracts/sdk.d.ts.map +1 -1
  55. package/dist/contracts/sdk.js +2 -0
  56. package/dist/index.d.ts +87 -23
  57. package/dist/index.d.ts.map +1 -1
  58. package/dist/index.js +13 -1
  59. package/package.json +1 -1
@@ -2,66 +2,25 @@ import { PublicClient, WalletClient } from 'viem';
2
2
  type ExtractArgs<T> = T extends (...args: infer P) => any ? P : never;
3
3
  type Address = `0x${string}`;
4
4
  export declare const abi: readonly [{
5
- readonly name: "EndaomentDeposit";
5
+ readonly name: "WalletAction";
6
6
  readonly inputs: readonly [{
7
- readonly name: "asset";
8
- readonly type: "address";
9
- readonly indexed: true;
10
- }, {
11
- readonly name: "vaultToken";
12
- readonly type: "address";
13
- readonly indexed: true;
14
- }, {
15
- readonly name: "assetAmountDeposited";
16
- readonly type: "uint256";
17
- readonly indexed: false;
18
- }, {
19
- readonly name: "vaultTokenAmountReceived";
20
- readonly type: "uint256";
21
- readonly indexed: false;
22
- }, {
23
- readonly name: "refundAssetAmount";
24
- readonly type: "uint256";
25
- readonly indexed: false;
26
- }, {
27
- readonly name: "usdValue";
28
- readonly type: "uint256";
29
- readonly indexed: false;
30
- }, {
31
- readonly name: "legoId";
32
- readonly type: "uint256";
7
+ readonly name: "op";
8
+ readonly type: "uint8";
33
9
  readonly indexed: false;
34
10
  }, {
35
- readonly name: "legoAddr";
36
- readonly type: "address";
37
- readonly indexed: false;
38
- }];
39
- readonly anonymous: false;
40
- readonly type: "event";
41
- }, {
42
- readonly name: "EndaomentWithdrawal";
43
- readonly inputs: readonly [{
44
- readonly name: "asset";
11
+ readonly name: "asset1";
45
12
  readonly type: "address";
46
13
  readonly indexed: true;
47
14
  }, {
48
- readonly name: "vaultToken";
15
+ readonly name: "asset2";
49
16
  readonly type: "address";
50
17
  readonly indexed: true;
51
18
  }, {
52
- readonly name: "hasVaultToken";
53
- readonly type: "bool";
54
- readonly indexed: false;
55
- }, {
56
- readonly name: "assetAmountReceived";
57
- readonly type: "uint256";
58
- readonly indexed: false;
59
- }, {
60
- readonly name: "vaultTokenAmountBurned";
19
+ readonly name: "amount1";
61
20
  readonly type: "uint256";
62
21
  readonly indexed: false;
63
22
  }, {
64
- readonly name: "refundVaultTokenAmount";
23
+ readonly name: "amount2";
65
24
  readonly type: "uint256";
66
25
  readonly indexed: false;
67
26
  }, {
@@ -72,123 +31,33 @@ export declare const abi: readonly [{
72
31
  readonly name: "legoId";
73
32
  readonly type: "uint256";
74
33
  readonly indexed: false;
75
- }, {
76
- readonly name: "legoAddr";
77
- readonly type: "address";
78
- readonly indexed: false;
79
34
  }];
80
35
  readonly anonymous: false;
81
36
  readonly type: "event";
82
37
  }, {
83
- readonly name: "EndaomentSwap";
38
+ readonly name: "WalletActionExt";
84
39
  readonly inputs: readonly [{
85
- readonly name: "tokenIn";
86
- readonly type: "address";
87
- readonly indexed: true;
88
- }, {
89
- readonly name: "tokenOut";
90
- readonly type: "address";
91
- readonly indexed: true;
92
- }, {
93
- readonly name: "swapAmount";
94
- readonly type: "uint256";
95
- readonly indexed: false;
96
- }, {
97
- readonly name: "toAmount";
98
- readonly type: "uint256";
99
- readonly indexed: false;
100
- }, {
101
- readonly name: "refundAssetAmount";
102
- readonly type: "uint256";
103
- readonly indexed: false;
104
- }, {
105
- readonly name: "usdValue";
106
- readonly type: "uint256";
40
+ readonly name: "op";
41
+ readonly type: "uint8";
107
42
  readonly indexed: false;
108
43
  }, {
109
- readonly name: "numTokens";
110
- readonly type: "uint256";
111
- readonly indexed: false;
112
- }, {
113
- readonly name: "legoId";
114
- readonly type: "uint256";
115
- readonly indexed: false;
116
- }, {
117
- readonly name: "legoAddr";
118
- readonly type: "address";
119
- readonly indexed: false;
120
- }];
121
- readonly anonymous: false;
122
- readonly type: "event";
123
- }, {
124
- readonly name: "EndaomentLiquidityAdded";
125
- readonly inputs: readonly [{
126
- readonly name: "tokenA";
44
+ readonly name: "asset1";
127
45
  readonly type: "address";
128
46
  readonly indexed: true;
129
47
  }, {
130
- readonly name: "tokenB";
48
+ readonly name: "asset2";
131
49
  readonly type: "address";
132
50
  readonly indexed: true;
133
51
  }, {
134
- readonly name: "liqAmountA";
135
- readonly type: "uint256";
136
- readonly indexed: false;
137
- }, {
138
- readonly name: "liqAmountB";
139
- readonly type: "uint256";
140
- readonly indexed: false;
141
- }, {
142
- readonly name: "liquidityAdded";
143
- readonly type: "uint256";
144
- readonly indexed: false;
145
- }, {
146
- readonly name: "pool";
147
- readonly type: "address";
148
- readonly indexed: false;
149
- }, {
150
- readonly name: "usdValue";
151
- readonly type: "uint256";
152
- readonly indexed: false;
153
- }, {
154
- readonly name: "refundAssetAmountA";
155
- readonly type: "uint256";
156
- readonly indexed: false;
157
- }, {
158
- readonly name: "refundAssetAmountB";
159
- readonly type: "uint256";
160
- readonly indexed: false;
161
- }, {
162
- readonly name: "nftTokenId";
163
- readonly type: "uint256";
164
- readonly indexed: false;
165
- }, {
166
- readonly name: "legoId";
52
+ readonly name: "tokenId";
167
53
  readonly type: "uint256";
168
54
  readonly indexed: false;
169
55
  }, {
170
- readonly name: "legoAddr";
171
- readonly type: "address";
172
- readonly indexed: false;
173
- }];
174
- readonly anonymous: false;
175
- readonly type: "event";
176
- }, {
177
- readonly name: "EndaomentLiquidityRemoved";
178
- readonly inputs: readonly [{
179
- readonly name: "tokenA";
180
- readonly type: "address";
181
- readonly indexed: true;
182
- }, {
183
- readonly name: "tokenB";
184
- readonly type: "address";
185
- readonly indexed: false;
186
- }, {
187
- readonly name: "removedAmountA";
56
+ readonly name: "amount1";
188
57
  readonly type: "uint256";
189
58
  readonly indexed: false;
190
59
  }, {
191
- readonly name: "removedAmountB";
60
+ readonly name: "amount2";
192
61
  readonly type: "uint256";
193
62
  readonly indexed: false;
194
63
  }, {
@@ -196,88 +65,9 @@ export declare const abi: readonly [{
196
65
  readonly type: "uint256";
197
66
  readonly indexed: false;
198
67
  }, {
199
- readonly name: "isDepleted";
200
- readonly type: "bool";
201
- readonly indexed: false;
202
- }, {
203
- readonly name: "liquidityRemoved";
204
- readonly type: "uint256";
205
- readonly indexed: false;
206
- }, {
207
- readonly name: "lpToken";
208
- readonly type: "address";
209
- readonly indexed: true;
210
- }, {
211
- readonly name: "refundedLpAmount";
212
- readonly type: "uint256";
213
- readonly indexed: false;
214
- }, {
215
- readonly name: "legoId";
216
- readonly type: "uint256";
217
- readonly indexed: false;
218
- }, {
219
- readonly name: "legoAddr";
220
- readonly type: "address";
221
- readonly indexed: false;
222
- }];
223
- readonly anonymous: false;
224
- readonly type: "event";
225
- }, {
226
- readonly name: "EndaomentEthConvertedToWeth";
227
- readonly inputs: readonly [{
228
- readonly name: "amount";
229
- readonly type: "uint256";
230
- readonly indexed: false;
231
- }, {
232
- readonly name: "paidEth";
233
- readonly type: "uint256";
234
- readonly indexed: false;
235
- }, {
236
- readonly name: "weth";
237
- readonly type: "address";
238
- readonly indexed: true;
239
- }];
240
- readonly anonymous: false;
241
- readonly type: "event";
242
- }, {
243
- readonly name: "EndaomentWethConvertedToEth";
244
- readonly inputs: readonly [{
245
- readonly name: "amount";
246
- readonly type: "uint256";
247
- readonly indexed: false;
248
- }, {
249
- readonly name: "weth";
250
- readonly type: "address";
251
- readonly indexed: true;
252
- }];
253
- readonly anonymous: false;
254
- readonly type: "event";
255
- }, {
256
- readonly name: "EndaomentRewardsClaimed";
257
- readonly inputs: readonly [{
258
- readonly name: "market";
259
- readonly type: "address";
260
- readonly indexed: true;
261
- }, {
262
- readonly name: "rewardToken";
263
- readonly type: "address";
264
- readonly indexed: true;
265
- }, {
266
- readonly name: "rewardAmount";
267
- readonly type: "uint256";
268
- readonly indexed: false;
269
- }, {
270
- readonly name: "proof";
271
- readonly type: "bytes32";
272
- readonly indexed: false;
273
- }, {
274
- readonly name: "legoId";
68
+ readonly name: "extra";
275
69
  readonly type: "uint256";
276
70
  readonly indexed: false;
277
- }, {
278
- readonly name: "legoAddr";
279
- readonly type: "address";
280
- readonly indexed: false;
281
71
  }];
282
72
  readonly anonymous: false;
283
73
  readonly type: "event";
@@ -558,9 +348,6 @@ export declare const abi: readonly [{
558
348
  readonly name: "";
559
349
  readonly type: "bool";
560
350
  }];
561
- }, {
562
- readonly stateMutability: "payable";
563
- readonly type: "fallback";
564
351
  }, {
565
352
  readonly stateMutability: "view";
566
353
  readonly type: "function";
@@ -582,19 +369,19 @@ export declare const abi: readonly [{
582
369
  readonly name: "";
583
370
  readonly type: "bytes4";
584
371
  }];
372
+ }, {
373
+ readonly stateMutability: "payable";
374
+ readonly type: "fallback";
585
375
  }, {
586
376
  readonly stateMutability: "nonpayable";
587
377
  readonly type: "function";
588
- readonly name: "depositTokens";
378
+ readonly name: "depositForYield";
589
379
  readonly inputs: readonly [{
590
380
  readonly name: "_legoId";
591
381
  readonly type: "uint256";
592
382
  }, {
593
383
  readonly name: "_asset";
594
384
  readonly type: "address";
595
- }, {
596
- readonly name: "_vault";
597
- readonly type: "address";
598
385
  }];
599
386
  readonly outputs: readonly [{
600
387
  readonly name: "";
@@ -612,7 +399,7 @@ export declare const abi: readonly [{
612
399
  }, {
613
400
  readonly stateMutability: "nonpayable";
614
401
  readonly type: "function";
615
- readonly name: "depositTokens";
402
+ readonly name: "depositForYield";
616
403
  readonly inputs: readonly [{
617
404
  readonly name: "_legoId";
618
405
  readonly type: "uint256";
@@ -620,11 +407,8 @@ export declare const abi: readonly [{
620
407
  readonly name: "_asset";
621
408
  readonly type: "address";
622
409
  }, {
623
- readonly name: "_vault";
410
+ readonly name: "_vaultAddr";
624
411
  readonly type: "address";
625
- }, {
626
- readonly name: "_amount";
627
- readonly type: "uint256";
628
412
  }];
629
413
  readonly outputs: readonly [{
630
414
  readonly name: "";
@@ -642,7 +426,7 @@ export declare const abi: readonly [{
642
426
  }, {
643
427
  readonly stateMutability: "nonpayable";
644
428
  readonly type: "function";
645
- readonly name: "withdrawTokens";
429
+ readonly name: "depositForYield";
646
430
  readonly inputs: readonly [{
647
431
  readonly name: "_legoId";
648
432
  readonly type: "uint256";
@@ -652,10 +436,16 @@ export declare const abi: readonly [{
652
436
  }, {
653
437
  readonly name: "_vaultAddr";
654
438
  readonly type: "address";
439
+ }, {
440
+ readonly name: "_amount";
441
+ readonly type: "uint256";
655
442
  }];
656
443
  readonly outputs: readonly [{
657
444
  readonly name: "";
658
445
  readonly type: "uint256";
446
+ }, {
447
+ readonly name: "";
448
+ readonly type: "address";
659
449
  }, {
660
450
  readonly name: "";
661
451
  readonly type: "uint256";
@@ -666,7 +456,7 @@ export declare const abi: readonly [{
666
456
  }, {
667
457
  readonly stateMutability: "nonpayable";
668
458
  readonly type: "function";
669
- readonly name: "withdrawTokens";
459
+ readonly name: "depositForYield";
670
460
  readonly inputs: readonly [{
671
461
  readonly name: "_legoId";
672
462
  readonly type: "uint256";
@@ -677,12 +467,18 @@ export declare const abi: readonly [{
677
467
  readonly name: "_vaultAddr";
678
468
  readonly type: "address";
679
469
  }, {
680
- readonly name: "_withdrawAmount";
470
+ readonly name: "_amount";
681
471
  readonly type: "uint256";
472
+ }, {
473
+ readonly name: "_extraData";
474
+ readonly type: "bytes32";
682
475
  }];
683
476
  readonly outputs: readonly [{
684
477
  readonly name: "";
685
478
  readonly type: "uint256";
479
+ }, {
480
+ readonly name: "";
481
+ readonly type: "address";
686
482
  }, {
687
483
  readonly name: "";
688
484
  readonly type: "uint256";
@@ -693,26 +489,47 @@ export declare const abi: readonly [{
693
489
  }, {
694
490
  readonly stateMutability: "nonpayable";
695
491
  readonly type: "function";
696
- readonly name: "withdrawTokens";
492
+ readonly name: "withdrawFromYield";
697
493
  readonly inputs: readonly [{
698
494
  readonly name: "_legoId";
699
495
  readonly type: "uint256";
700
496
  }, {
701
- readonly name: "_asset";
497
+ readonly name: "_vaultToken";
702
498
  readonly type: "address";
499
+ }];
500
+ readonly outputs: readonly [{
501
+ readonly name: "";
502
+ readonly type: "uint256";
703
503
  }, {
704
- readonly name: "_vaultAddr";
504
+ readonly name: "";
705
505
  readonly type: "address";
706
506
  }, {
707
- readonly name: "_withdrawAmount";
507
+ readonly name: "";
708
508
  readonly type: "uint256";
709
509
  }, {
710
- readonly name: "_hasVaultToken";
711
- readonly type: "bool";
510
+ readonly name: "";
511
+ readonly type: "uint256";
512
+ }];
513
+ }, {
514
+ readonly stateMutability: "nonpayable";
515
+ readonly type: "function";
516
+ readonly name: "withdrawFromYield";
517
+ readonly inputs: readonly [{
518
+ readonly name: "_legoId";
519
+ readonly type: "uint256";
520
+ }, {
521
+ readonly name: "_vaultToken";
522
+ readonly type: "address";
523
+ }, {
524
+ readonly name: "_amount";
525
+ readonly type: "uint256";
712
526
  }];
713
527
  readonly outputs: readonly [{
714
528
  readonly name: "";
715
529
  readonly type: "uint256";
530
+ }, {
531
+ readonly name: "";
532
+ readonly type: "address";
716
533
  }, {
717
534
  readonly name: "";
718
535
  readonly type: "uint256";
@@ -723,22 +540,19 @@ export declare const abi: readonly [{
723
540
  }, {
724
541
  readonly stateMutability: "nonpayable";
725
542
  readonly type: "function";
726
- readonly name: "rebalance";
543
+ readonly name: "withdrawFromYield";
727
544
  readonly inputs: readonly [{
728
- readonly name: "_fromLegoId";
545
+ readonly name: "_legoId";
729
546
  readonly type: "uint256";
730
547
  }, {
731
- readonly name: "_fromAsset";
732
- readonly type: "address";
733
- }, {
734
- readonly name: "_fromVaultAddr";
548
+ readonly name: "_vaultToken";
735
549
  readonly type: "address";
736
550
  }, {
737
- readonly name: "_toLegoId";
551
+ readonly name: "_amount";
738
552
  readonly type: "uint256";
739
553
  }, {
740
- readonly name: "_toVaultAddr";
741
- readonly type: "address";
554
+ readonly name: "_extraData";
555
+ readonly type: "bytes32";
742
556
  }];
743
557
  readonly outputs: readonly [{
744
558
  readonly name: "";
@@ -756,25 +570,16 @@ export declare const abi: readonly [{
756
570
  }, {
757
571
  readonly stateMutability: "nonpayable";
758
572
  readonly type: "function";
759
- readonly name: "rebalance";
573
+ readonly name: "rebalanceYieldPosition";
760
574
  readonly inputs: readonly [{
761
575
  readonly name: "_fromLegoId";
762
576
  readonly type: "uint256";
763
577
  }, {
764
- readonly name: "_fromAsset";
765
- readonly type: "address";
766
- }, {
767
- readonly name: "_fromVaultAddr";
578
+ readonly name: "_fromVaultToken";
768
579
  readonly type: "address";
769
580
  }, {
770
581
  readonly name: "_toLegoId";
771
582
  readonly type: "uint256";
772
- }, {
773
- readonly name: "_toVaultAddr";
774
- readonly type: "address";
775
- }, {
776
- readonly name: "_fromVaultAmount";
777
- readonly type: "uint256";
778
583
  }];
779
584
  readonly outputs: readonly [{
780
585
  readonly name: "";
@@ -792,15 +597,12 @@ export declare const abi: readonly [{
792
597
  }, {
793
598
  readonly stateMutability: "nonpayable";
794
599
  readonly type: "function";
795
- readonly name: "rebalance";
600
+ readonly name: "rebalanceYieldPosition";
796
601
  readonly inputs: readonly [{
797
602
  readonly name: "_fromLegoId";
798
603
  readonly type: "uint256";
799
604
  }, {
800
- readonly name: "_fromAsset";
801
- readonly type: "address";
802
- }, {
803
- readonly name: "_fromVaultAddr";
605
+ readonly name: "_fromVaultToken";
804
606
  readonly type: "address";
805
607
  }, {
806
608
  readonly name: "_toLegoId";
@@ -808,12 +610,6 @@ export declare const abi: readonly [{
808
610
  }, {
809
611
  readonly name: "_toVaultAddr";
810
612
  readonly type: "address";
811
- }, {
812
- readonly name: "_fromVaultAmount";
813
- readonly type: "uint256";
814
- }, {
815
- readonly name: "_hasFromVaultToken";
816
- readonly type: "bool";
817
613
  }];
818
614
  readonly outputs: readonly [{
819
615
  readonly name: "";
@@ -831,15 +627,84 @@ export declare const abi: readonly [{
831
627
  }, {
832
628
  readonly stateMutability: "nonpayable";
833
629
  readonly type: "function";
834
- readonly name: "swapTokens";
630
+ readonly name: "rebalanceYieldPosition";
835
631
  readonly inputs: readonly [{
836
- readonly name: "_swapInstructions";
837
- readonly type: "tuple[]";
838
- readonly components: readonly [{
839
- readonly name: "legoId";
840
- readonly type: "uint256";
841
- }, {
842
- readonly name: "amountIn";
632
+ readonly name: "_fromLegoId";
633
+ readonly type: "uint256";
634
+ }, {
635
+ readonly name: "_fromVaultToken";
636
+ readonly type: "address";
637
+ }, {
638
+ readonly name: "_toLegoId";
639
+ readonly type: "uint256";
640
+ }, {
641
+ readonly name: "_toVaultAddr";
642
+ readonly type: "address";
643
+ }, {
644
+ readonly name: "_fromVaultAmount";
645
+ readonly type: "uint256";
646
+ }];
647
+ readonly outputs: readonly [{
648
+ readonly name: "";
649
+ readonly type: "uint256";
650
+ }, {
651
+ readonly name: "";
652
+ readonly type: "address";
653
+ }, {
654
+ readonly name: "";
655
+ readonly type: "uint256";
656
+ }, {
657
+ readonly name: "";
658
+ readonly type: "uint256";
659
+ }];
660
+ }, {
661
+ readonly stateMutability: "nonpayable";
662
+ readonly type: "function";
663
+ readonly name: "rebalanceYieldPosition";
664
+ readonly inputs: readonly [{
665
+ readonly name: "_fromLegoId";
666
+ readonly type: "uint256";
667
+ }, {
668
+ readonly name: "_fromVaultToken";
669
+ readonly type: "address";
670
+ }, {
671
+ readonly name: "_toLegoId";
672
+ readonly type: "uint256";
673
+ }, {
674
+ readonly name: "_toVaultAddr";
675
+ readonly type: "address";
676
+ }, {
677
+ readonly name: "_fromVaultAmount";
678
+ readonly type: "uint256";
679
+ }, {
680
+ readonly name: "_extraData";
681
+ readonly type: "bytes32";
682
+ }];
683
+ readonly outputs: readonly [{
684
+ readonly name: "";
685
+ readonly type: "uint256";
686
+ }, {
687
+ readonly name: "";
688
+ readonly type: "address";
689
+ }, {
690
+ readonly name: "";
691
+ readonly type: "uint256";
692
+ }, {
693
+ readonly name: "";
694
+ readonly type: "uint256";
695
+ }];
696
+ }, {
697
+ readonly stateMutability: "nonpayable";
698
+ readonly type: "function";
699
+ readonly name: "swapTokens";
700
+ readonly inputs: readonly [{
701
+ readonly name: "_instructions";
702
+ readonly type: "tuple[]";
703
+ readonly components: readonly [{
704
+ readonly name: "legoId";
705
+ readonly type: "uint256";
706
+ }, {
707
+ readonly name: "amountIn";
843
708
  readonly type: "uint256";
844
709
  }, {
845
710
  readonly name: "minAmountOut";
@@ -853,6 +718,696 @@ export declare const abi: readonly [{
853
718
  }];
854
719
  }];
855
720
  readonly outputs: readonly [{
721
+ readonly name: "";
722
+ readonly type: "address";
723
+ }, {
724
+ readonly name: "";
725
+ readonly type: "uint256";
726
+ }, {
727
+ readonly name: "";
728
+ readonly type: "address";
729
+ }, {
730
+ readonly name: "";
731
+ readonly type: "uint256";
732
+ }, {
733
+ readonly name: "";
734
+ readonly type: "uint256";
735
+ }];
736
+ }, {
737
+ readonly stateMutability: "nonpayable";
738
+ readonly type: "function";
739
+ readonly name: "mintOrRedeemAsset";
740
+ readonly inputs: readonly [{
741
+ readonly name: "_legoId";
742
+ readonly type: "uint256";
743
+ }, {
744
+ readonly name: "_tokenIn";
745
+ readonly type: "address";
746
+ }, {
747
+ readonly name: "_tokenOut";
748
+ readonly type: "address";
749
+ }];
750
+ readonly outputs: readonly [{
751
+ readonly name: "";
752
+ readonly type: "uint256";
753
+ }, {
754
+ readonly name: "";
755
+ readonly type: "uint256";
756
+ }, {
757
+ readonly name: "";
758
+ readonly type: "bool";
759
+ }, {
760
+ readonly name: "";
761
+ readonly type: "uint256";
762
+ }];
763
+ }, {
764
+ readonly stateMutability: "nonpayable";
765
+ readonly type: "function";
766
+ readonly name: "mintOrRedeemAsset";
767
+ readonly inputs: readonly [{
768
+ readonly name: "_legoId";
769
+ readonly type: "uint256";
770
+ }, {
771
+ readonly name: "_tokenIn";
772
+ readonly type: "address";
773
+ }, {
774
+ readonly name: "_tokenOut";
775
+ readonly type: "address";
776
+ }, {
777
+ readonly name: "_amountIn";
778
+ readonly type: "uint256";
779
+ }];
780
+ readonly outputs: readonly [{
781
+ readonly name: "";
782
+ readonly type: "uint256";
783
+ }, {
784
+ readonly name: "";
785
+ readonly type: "uint256";
786
+ }, {
787
+ readonly name: "";
788
+ readonly type: "bool";
789
+ }, {
790
+ readonly name: "";
791
+ readonly type: "uint256";
792
+ }];
793
+ }, {
794
+ readonly stateMutability: "nonpayable";
795
+ readonly type: "function";
796
+ readonly name: "mintOrRedeemAsset";
797
+ readonly inputs: readonly [{
798
+ readonly name: "_legoId";
799
+ readonly type: "uint256";
800
+ }, {
801
+ readonly name: "_tokenIn";
802
+ readonly type: "address";
803
+ }, {
804
+ readonly name: "_tokenOut";
805
+ readonly type: "address";
806
+ }, {
807
+ readonly name: "_amountIn";
808
+ readonly type: "uint256";
809
+ }, {
810
+ readonly name: "_minAmountOut";
811
+ readonly type: "uint256";
812
+ }];
813
+ readonly outputs: readonly [{
814
+ readonly name: "";
815
+ readonly type: "uint256";
816
+ }, {
817
+ readonly name: "";
818
+ readonly type: "uint256";
819
+ }, {
820
+ readonly name: "";
821
+ readonly type: "bool";
822
+ }, {
823
+ readonly name: "";
824
+ readonly type: "uint256";
825
+ }];
826
+ }, {
827
+ readonly stateMutability: "nonpayable";
828
+ readonly type: "function";
829
+ readonly name: "mintOrRedeemAsset";
830
+ readonly inputs: readonly [{
831
+ readonly name: "_legoId";
832
+ readonly type: "uint256";
833
+ }, {
834
+ readonly name: "_tokenIn";
835
+ readonly type: "address";
836
+ }, {
837
+ readonly name: "_tokenOut";
838
+ readonly type: "address";
839
+ }, {
840
+ readonly name: "_amountIn";
841
+ readonly type: "uint256";
842
+ }, {
843
+ readonly name: "_minAmountOut";
844
+ readonly type: "uint256";
845
+ }, {
846
+ readonly name: "_extraData";
847
+ readonly type: "bytes32";
848
+ }];
849
+ readonly outputs: readonly [{
850
+ readonly name: "";
851
+ readonly type: "uint256";
852
+ }, {
853
+ readonly name: "";
854
+ readonly type: "uint256";
855
+ }, {
856
+ readonly name: "";
857
+ readonly type: "bool";
858
+ }, {
859
+ readonly name: "";
860
+ readonly type: "uint256";
861
+ }];
862
+ }, {
863
+ readonly stateMutability: "nonpayable";
864
+ readonly type: "function";
865
+ readonly name: "confirmMintOrRedeemAsset";
866
+ readonly inputs: readonly [{
867
+ readonly name: "_legoId";
868
+ readonly type: "uint256";
869
+ }, {
870
+ readonly name: "_tokenIn";
871
+ readonly type: "address";
872
+ }, {
873
+ readonly name: "_tokenOut";
874
+ readonly type: "address";
875
+ }];
876
+ readonly outputs: readonly [{
877
+ readonly name: "";
878
+ readonly type: "uint256";
879
+ }, {
880
+ readonly name: "";
881
+ readonly type: "uint256";
882
+ }];
883
+ }, {
884
+ readonly stateMutability: "nonpayable";
885
+ readonly type: "function";
886
+ readonly name: "confirmMintOrRedeemAsset";
887
+ readonly inputs: readonly [{
888
+ readonly name: "_legoId";
889
+ readonly type: "uint256";
890
+ }, {
891
+ readonly name: "_tokenIn";
892
+ readonly type: "address";
893
+ }, {
894
+ readonly name: "_tokenOut";
895
+ readonly type: "address";
896
+ }, {
897
+ readonly name: "_extraData";
898
+ readonly type: "bytes32";
899
+ }];
900
+ readonly outputs: readonly [{
901
+ readonly name: "";
902
+ readonly type: "uint256";
903
+ }, {
904
+ readonly name: "";
905
+ readonly type: "uint256";
906
+ }];
907
+ }, {
908
+ readonly stateMutability: "nonpayable";
909
+ readonly type: "function";
910
+ readonly name: "claimRewards";
911
+ readonly inputs: readonly [{
912
+ readonly name: "_legoId";
913
+ readonly type: "uint256";
914
+ }];
915
+ readonly outputs: readonly [{
916
+ readonly name: "";
917
+ readonly type: "uint256";
918
+ }, {
919
+ readonly name: "";
920
+ readonly type: "uint256";
921
+ }];
922
+ }, {
923
+ readonly stateMutability: "nonpayable";
924
+ readonly type: "function";
925
+ readonly name: "claimRewards";
926
+ readonly inputs: readonly [{
927
+ readonly name: "_legoId";
928
+ readonly type: "uint256";
929
+ }, {
930
+ readonly name: "_rewardToken";
931
+ readonly type: "address";
932
+ }];
933
+ readonly outputs: readonly [{
934
+ readonly name: "";
935
+ readonly type: "uint256";
936
+ }, {
937
+ readonly name: "";
938
+ readonly type: "uint256";
939
+ }];
940
+ }, {
941
+ readonly stateMutability: "nonpayable";
942
+ readonly type: "function";
943
+ readonly name: "claimRewards";
944
+ readonly inputs: readonly [{
945
+ readonly name: "_legoId";
946
+ readonly type: "uint256";
947
+ }, {
948
+ readonly name: "_rewardToken";
949
+ readonly type: "address";
950
+ }, {
951
+ readonly name: "_rewardAmount";
952
+ readonly type: "uint256";
953
+ }];
954
+ readonly outputs: readonly [{
955
+ readonly name: "";
956
+ readonly type: "uint256";
957
+ }, {
958
+ readonly name: "";
959
+ readonly type: "uint256";
960
+ }];
961
+ }, {
962
+ readonly stateMutability: "nonpayable";
963
+ readonly type: "function";
964
+ readonly name: "claimRewards";
965
+ readonly inputs: readonly [{
966
+ readonly name: "_legoId";
967
+ readonly type: "uint256";
968
+ }, {
969
+ readonly name: "_rewardToken";
970
+ readonly type: "address";
971
+ }, {
972
+ readonly name: "_rewardAmount";
973
+ readonly type: "uint256";
974
+ }, {
975
+ readonly name: "_extraData";
976
+ readonly type: "bytes32";
977
+ }];
978
+ readonly outputs: readonly [{
979
+ readonly name: "";
980
+ readonly type: "uint256";
981
+ }, {
982
+ readonly name: "";
983
+ readonly type: "uint256";
984
+ }];
985
+ }, {
986
+ readonly stateMutability: "payable";
987
+ readonly type: "function";
988
+ readonly name: "convertEthToWeth";
989
+ readonly inputs: readonly [];
990
+ readonly outputs: readonly [{
991
+ readonly name: "";
992
+ readonly type: "uint256";
993
+ }, {
994
+ readonly name: "";
995
+ readonly type: "uint256";
996
+ }];
997
+ }, {
998
+ readonly stateMutability: "payable";
999
+ readonly type: "function";
1000
+ readonly name: "convertEthToWeth";
1001
+ readonly inputs: readonly [{
1002
+ readonly name: "_amount";
1003
+ readonly type: "uint256";
1004
+ }];
1005
+ readonly outputs: readonly [{
1006
+ readonly name: "";
1007
+ readonly type: "uint256";
1008
+ }, {
1009
+ readonly name: "";
1010
+ readonly type: "uint256";
1011
+ }];
1012
+ }, {
1013
+ readonly stateMutability: "nonpayable";
1014
+ readonly type: "function";
1015
+ readonly name: "convertWethToEth";
1016
+ readonly inputs: readonly [];
1017
+ readonly outputs: readonly [{
1018
+ readonly name: "";
1019
+ readonly type: "uint256";
1020
+ }, {
1021
+ readonly name: "";
1022
+ readonly type: "uint256";
1023
+ }];
1024
+ }, {
1025
+ readonly stateMutability: "nonpayable";
1026
+ readonly type: "function";
1027
+ readonly name: "convertWethToEth";
1028
+ readonly inputs: readonly [{
1029
+ readonly name: "_amount";
1030
+ readonly type: "uint256";
1031
+ }];
1032
+ readonly outputs: readonly [{
1033
+ readonly name: "";
1034
+ readonly type: "uint256";
1035
+ }, {
1036
+ readonly name: "";
1037
+ readonly type: "uint256";
1038
+ }];
1039
+ }, {
1040
+ readonly stateMutability: "nonpayable";
1041
+ readonly type: "function";
1042
+ readonly name: "addLiquidity";
1043
+ readonly inputs: readonly [{
1044
+ readonly name: "_legoId";
1045
+ readonly type: "uint256";
1046
+ }, {
1047
+ readonly name: "_pool";
1048
+ readonly type: "address";
1049
+ }, {
1050
+ readonly name: "_tokenA";
1051
+ readonly type: "address";
1052
+ }, {
1053
+ readonly name: "_tokenB";
1054
+ readonly type: "address";
1055
+ }];
1056
+ readonly outputs: readonly [{
1057
+ readonly name: "";
1058
+ readonly type: "uint256";
1059
+ }, {
1060
+ readonly name: "";
1061
+ readonly type: "uint256";
1062
+ }, {
1063
+ readonly name: "";
1064
+ readonly type: "uint256";
1065
+ }, {
1066
+ readonly name: "";
1067
+ readonly type: "uint256";
1068
+ }];
1069
+ }, {
1070
+ readonly stateMutability: "nonpayable";
1071
+ readonly type: "function";
1072
+ readonly name: "addLiquidity";
1073
+ readonly inputs: readonly [{
1074
+ readonly name: "_legoId";
1075
+ readonly type: "uint256";
1076
+ }, {
1077
+ readonly name: "_pool";
1078
+ readonly type: "address";
1079
+ }, {
1080
+ readonly name: "_tokenA";
1081
+ readonly type: "address";
1082
+ }, {
1083
+ readonly name: "_tokenB";
1084
+ readonly type: "address";
1085
+ }, {
1086
+ readonly name: "_amountA";
1087
+ readonly type: "uint256";
1088
+ }];
1089
+ readonly outputs: readonly [{
1090
+ readonly name: "";
1091
+ readonly type: "uint256";
1092
+ }, {
1093
+ readonly name: "";
1094
+ readonly type: "uint256";
1095
+ }, {
1096
+ readonly name: "";
1097
+ readonly type: "uint256";
1098
+ }, {
1099
+ readonly name: "";
1100
+ readonly type: "uint256";
1101
+ }];
1102
+ }, {
1103
+ readonly stateMutability: "nonpayable";
1104
+ readonly type: "function";
1105
+ readonly name: "addLiquidity";
1106
+ readonly inputs: readonly [{
1107
+ readonly name: "_legoId";
1108
+ readonly type: "uint256";
1109
+ }, {
1110
+ readonly name: "_pool";
1111
+ readonly type: "address";
1112
+ }, {
1113
+ readonly name: "_tokenA";
1114
+ readonly type: "address";
1115
+ }, {
1116
+ readonly name: "_tokenB";
1117
+ readonly type: "address";
1118
+ }, {
1119
+ readonly name: "_amountA";
1120
+ readonly type: "uint256";
1121
+ }, {
1122
+ readonly name: "_amountB";
1123
+ readonly type: "uint256";
1124
+ }];
1125
+ readonly outputs: readonly [{
1126
+ readonly name: "";
1127
+ readonly type: "uint256";
1128
+ }, {
1129
+ readonly name: "";
1130
+ readonly type: "uint256";
1131
+ }, {
1132
+ readonly name: "";
1133
+ readonly type: "uint256";
1134
+ }, {
1135
+ readonly name: "";
1136
+ readonly type: "uint256";
1137
+ }];
1138
+ }, {
1139
+ readonly stateMutability: "nonpayable";
1140
+ readonly type: "function";
1141
+ readonly name: "addLiquidity";
1142
+ readonly inputs: readonly [{
1143
+ readonly name: "_legoId";
1144
+ readonly type: "uint256";
1145
+ }, {
1146
+ readonly name: "_pool";
1147
+ readonly type: "address";
1148
+ }, {
1149
+ readonly name: "_tokenA";
1150
+ readonly type: "address";
1151
+ }, {
1152
+ readonly name: "_tokenB";
1153
+ readonly type: "address";
1154
+ }, {
1155
+ readonly name: "_amountA";
1156
+ readonly type: "uint256";
1157
+ }, {
1158
+ readonly name: "_amountB";
1159
+ readonly type: "uint256";
1160
+ }, {
1161
+ readonly name: "_minAmountA";
1162
+ readonly type: "uint256";
1163
+ }];
1164
+ readonly outputs: readonly [{
1165
+ readonly name: "";
1166
+ readonly type: "uint256";
1167
+ }, {
1168
+ readonly name: "";
1169
+ readonly type: "uint256";
1170
+ }, {
1171
+ readonly name: "";
1172
+ readonly type: "uint256";
1173
+ }, {
1174
+ readonly name: "";
1175
+ readonly type: "uint256";
1176
+ }];
1177
+ }, {
1178
+ readonly stateMutability: "nonpayable";
1179
+ readonly type: "function";
1180
+ readonly name: "addLiquidity";
1181
+ readonly inputs: readonly [{
1182
+ readonly name: "_legoId";
1183
+ readonly type: "uint256";
1184
+ }, {
1185
+ readonly name: "_pool";
1186
+ readonly type: "address";
1187
+ }, {
1188
+ readonly name: "_tokenA";
1189
+ readonly type: "address";
1190
+ }, {
1191
+ readonly name: "_tokenB";
1192
+ readonly type: "address";
1193
+ }, {
1194
+ readonly name: "_amountA";
1195
+ readonly type: "uint256";
1196
+ }, {
1197
+ readonly name: "_amountB";
1198
+ readonly type: "uint256";
1199
+ }, {
1200
+ readonly name: "_minAmountA";
1201
+ readonly type: "uint256";
1202
+ }, {
1203
+ readonly name: "_minAmountB";
1204
+ readonly type: "uint256";
1205
+ }];
1206
+ readonly outputs: readonly [{
1207
+ readonly name: "";
1208
+ readonly type: "uint256";
1209
+ }, {
1210
+ readonly name: "";
1211
+ readonly type: "uint256";
1212
+ }, {
1213
+ readonly name: "";
1214
+ readonly type: "uint256";
1215
+ }, {
1216
+ readonly name: "";
1217
+ readonly type: "uint256";
1218
+ }];
1219
+ }, {
1220
+ readonly stateMutability: "nonpayable";
1221
+ readonly type: "function";
1222
+ readonly name: "addLiquidity";
1223
+ readonly inputs: readonly [{
1224
+ readonly name: "_legoId";
1225
+ readonly type: "uint256";
1226
+ }, {
1227
+ readonly name: "_pool";
1228
+ readonly type: "address";
1229
+ }, {
1230
+ readonly name: "_tokenA";
1231
+ readonly type: "address";
1232
+ }, {
1233
+ readonly name: "_tokenB";
1234
+ readonly type: "address";
1235
+ }, {
1236
+ readonly name: "_amountA";
1237
+ readonly type: "uint256";
1238
+ }, {
1239
+ readonly name: "_amountB";
1240
+ readonly type: "uint256";
1241
+ }, {
1242
+ readonly name: "_minAmountA";
1243
+ readonly type: "uint256";
1244
+ }, {
1245
+ readonly name: "_minAmountB";
1246
+ readonly type: "uint256";
1247
+ }, {
1248
+ readonly name: "_minLpAmount";
1249
+ readonly type: "uint256";
1250
+ }];
1251
+ readonly outputs: readonly [{
1252
+ readonly name: "";
1253
+ readonly type: "uint256";
1254
+ }, {
1255
+ readonly name: "";
1256
+ readonly type: "uint256";
1257
+ }, {
1258
+ readonly name: "";
1259
+ readonly type: "uint256";
1260
+ }, {
1261
+ readonly name: "";
1262
+ readonly type: "uint256";
1263
+ }];
1264
+ }, {
1265
+ readonly stateMutability: "nonpayable";
1266
+ readonly type: "function";
1267
+ readonly name: "addLiquidity";
1268
+ readonly inputs: readonly [{
1269
+ readonly name: "_legoId";
1270
+ readonly type: "uint256";
1271
+ }, {
1272
+ readonly name: "_pool";
1273
+ readonly type: "address";
1274
+ }, {
1275
+ readonly name: "_tokenA";
1276
+ readonly type: "address";
1277
+ }, {
1278
+ readonly name: "_tokenB";
1279
+ readonly type: "address";
1280
+ }, {
1281
+ readonly name: "_amountA";
1282
+ readonly type: "uint256";
1283
+ }, {
1284
+ readonly name: "_amountB";
1285
+ readonly type: "uint256";
1286
+ }, {
1287
+ readonly name: "_minAmountA";
1288
+ readonly type: "uint256";
1289
+ }, {
1290
+ readonly name: "_minAmountB";
1291
+ readonly type: "uint256";
1292
+ }, {
1293
+ readonly name: "_minLpAmount";
1294
+ readonly type: "uint256";
1295
+ }, {
1296
+ readonly name: "_extraData";
1297
+ readonly type: "bytes32";
1298
+ }];
1299
+ readonly outputs: readonly [{
1300
+ readonly name: "";
1301
+ readonly type: "uint256";
1302
+ }, {
1303
+ readonly name: "";
1304
+ readonly type: "uint256";
1305
+ }, {
1306
+ readonly name: "";
1307
+ readonly type: "uint256";
1308
+ }, {
1309
+ readonly name: "";
1310
+ readonly type: "uint256";
1311
+ }];
1312
+ }, {
1313
+ readonly stateMutability: "nonpayable";
1314
+ readonly type: "function";
1315
+ readonly name: "removeLiquidity";
1316
+ readonly inputs: readonly [{
1317
+ readonly name: "_legoId";
1318
+ readonly type: "uint256";
1319
+ }, {
1320
+ readonly name: "_pool";
1321
+ readonly type: "address";
1322
+ }, {
1323
+ readonly name: "_tokenA";
1324
+ readonly type: "address";
1325
+ }, {
1326
+ readonly name: "_tokenB";
1327
+ readonly type: "address";
1328
+ }, {
1329
+ readonly name: "_lpToken";
1330
+ readonly type: "address";
1331
+ }];
1332
+ readonly outputs: readonly [{
1333
+ readonly name: "";
1334
+ readonly type: "uint256";
1335
+ }, {
1336
+ readonly name: "";
1337
+ readonly type: "uint256";
1338
+ }, {
1339
+ readonly name: "";
1340
+ readonly type: "uint256";
1341
+ }, {
1342
+ readonly name: "";
1343
+ readonly type: "uint256";
1344
+ }];
1345
+ }, {
1346
+ readonly stateMutability: "nonpayable";
1347
+ readonly type: "function";
1348
+ readonly name: "removeLiquidity";
1349
+ readonly inputs: readonly [{
1350
+ readonly name: "_legoId";
1351
+ readonly type: "uint256";
1352
+ }, {
1353
+ readonly name: "_pool";
1354
+ readonly type: "address";
1355
+ }, {
1356
+ readonly name: "_tokenA";
1357
+ readonly type: "address";
1358
+ }, {
1359
+ readonly name: "_tokenB";
1360
+ readonly type: "address";
1361
+ }, {
1362
+ readonly name: "_lpToken";
1363
+ readonly type: "address";
1364
+ }, {
1365
+ readonly name: "_lpAmount";
1366
+ readonly type: "uint256";
1367
+ }];
1368
+ readonly outputs: readonly [{
1369
+ readonly name: "";
1370
+ readonly type: "uint256";
1371
+ }, {
1372
+ readonly name: "";
1373
+ readonly type: "uint256";
1374
+ }, {
1375
+ readonly name: "";
1376
+ readonly type: "uint256";
1377
+ }, {
1378
+ readonly name: "";
1379
+ readonly type: "uint256";
1380
+ }];
1381
+ }, {
1382
+ readonly stateMutability: "nonpayable";
1383
+ readonly type: "function";
1384
+ readonly name: "removeLiquidity";
1385
+ readonly inputs: readonly [{
1386
+ readonly name: "_legoId";
1387
+ readonly type: "uint256";
1388
+ }, {
1389
+ readonly name: "_pool";
1390
+ readonly type: "address";
1391
+ }, {
1392
+ readonly name: "_tokenA";
1393
+ readonly type: "address";
1394
+ }, {
1395
+ readonly name: "_tokenB";
1396
+ readonly type: "address";
1397
+ }, {
1398
+ readonly name: "_lpToken";
1399
+ readonly type: "address";
1400
+ }, {
1401
+ readonly name: "_lpAmount";
1402
+ readonly type: "uint256";
1403
+ }, {
1404
+ readonly name: "_minAmountA";
1405
+ readonly type: "uint256";
1406
+ }];
1407
+ readonly outputs: readonly [{
1408
+ readonly name: "";
1409
+ readonly type: "uint256";
1410
+ }, {
856
1411
  readonly name: "";
857
1412
  readonly type: "uint256";
858
1413
  }, {
@@ -865,15 +1420,51 @@ export declare const abi: readonly [{
865
1420
  }, {
866
1421
  readonly stateMutability: "nonpayable";
867
1422
  readonly type: "function";
868
- readonly name: "addLiquidity";
1423
+ readonly name: "removeLiquidity";
869
1424
  readonly inputs: readonly [{
870
1425
  readonly name: "_legoId";
871
1426
  readonly type: "uint256";
872
1427
  }, {
873
- readonly name: "_nftAddr";
1428
+ readonly name: "_pool";
874
1429
  readonly type: "address";
875
1430
  }, {
876
- readonly name: "_nftTokenId";
1431
+ readonly name: "_tokenA";
1432
+ readonly type: "address";
1433
+ }, {
1434
+ readonly name: "_tokenB";
1435
+ readonly type: "address";
1436
+ }, {
1437
+ readonly name: "_lpToken";
1438
+ readonly type: "address";
1439
+ }, {
1440
+ readonly name: "_lpAmount";
1441
+ readonly type: "uint256";
1442
+ }, {
1443
+ readonly name: "_minAmountA";
1444
+ readonly type: "uint256";
1445
+ }, {
1446
+ readonly name: "_minAmountB";
1447
+ readonly type: "uint256";
1448
+ }];
1449
+ readonly outputs: readonly [{
1450
+ readonly name: "";
1451
+ readonly type: "uint256";
1452
+ }, {
1453
+ readonly name: "";
1454
+ readonly type: "uint256";
1455
+ }, {
1456
+ readonly name: "";
1457
+ readonly type: "uint256";
1458
+ }, {
1459
+ readonly name: "";
1460
+ readonly type: "uint256";
1461
+ }];
1462
+ }, {
1463
+ readonly stateMutability: "nonpayable";
1464
+ readonly type: "function";
1465
+ readonly name: "removeLiquidity";
1466
+ readonly inputs: readonly [{
1467
+ readonly name: "_legoId";
877
1468
  readonly type: "uint256";
878
1469
  }, {
879
1470
  readonly name: "_pool";
@@ -884,11 +1475,23 @@ export declare const abi: readonly [{
884
1475
  }, {
885
1476
  readonly name: "_tokenB";
886
1477
  readonly type: "address";
887
- }];
888
- readonly outputs: readonly [{
889
- readonly name: "";
1478
+ }, {
1479
+ readonly name: "_lpToken";
1480
+ readonly type: "address";
1481
+ }, {
1482
+ readonly name: "_lpAmount";
1483
+ readonly type: "uint256";
1484
+ }, {
1485
+ readonly name: "_minAmountA";
1486
+ readonly type: "uint256";
1487
+ }, {
1488
+ readonly name: "_minAmountB";
890
1489
  readonly type: "uint256";
891
1490
  }, {
1491
+ readonly name: "_extraData";
1492
+ readonly type: "bytes32";
1493
+ }];
1494
+ readonly outputs: readonly [{
892
1495
  readonly name: "";
893
1496
  readonly type: "uint256";
894
1497
  }, {
@@ -904,7 +1507,7 @@ export declare const abi: readonly [{
904
1507
  }, {
905
1508
  readonly stateMutability: "nonpayable";
906
1509
  readonly type: "function";
907
- readonly name: "addLiquidity";
1510
+ readonly name: "addLiquidityConcentrated";
908
1511
  readonly inputs: readonly [{
909
1512
  readonly name: "_legoId";
910
1513
  readonly type: "uint256";
@@ -923,9 +1526,6 @@ export declare const abi: readonly [{
923
1526
  }, {
924
1527
  readonly name: "_tokenB";
925
1528
  readonly type: "address";
926
- }, {
927
- readonly name: "_amountA";
928
- readonly type: "uint256";
929
1529
  }];
930
1530
  readonly outputs: readonly [{
931
1531
  readonly name: "";
@@ -946,7 +1546,7 @@ export declare const abi: readonly [{
946
1546
  }, {
947
1547
  readonly stateMutability: "nonpayable";
948
1548
  readonly type: "function";
949
- readonly name: "addLiquidity";
1549
+ readonly name: "addLiquidityConcentrated";
950
1550
  readonly inputs: readonly [{
951
1551
  readonly name: "_legoId";
952
1552
  readonly type: "uint256";
@@ -968,9 +1568,6 @@ export declare const abi: readonly [{
968
1568
  }, {
969
1569
  readonly name: "_amountA";
970
1570
  readonly type: "uint256";
971
- }, {
972
- readonly name: "_amountB";
973
- readonly type: "uint256";
974
1571
  }];
975
1572
  readonly outputs: readonly [{
976
1573
  readonly name: "";
@@ -991,7 +1588,7 @@ export declare const abi: readonly [{
991
1588
  }, {
992
1589
  readonly stateMutability: "nonpayable";
993
1590
  readonly type: "function";
994
- readonly name: "addLiquidity";
1591
+ readonly name: "addLiquidityConcentrated";
995
1592
  readonly inputs: readonly [{
996
1593
  readonly name: "_legoId";
997
1594
  readonly type: "uint256";
@@ -1016,9 +1613,6 @@ export declare const abi: readonly [{
1016
1613
  }, {
1017
1614
  readonly name: "_amountB";
1018
1615
  readonly type: "uint256";
1019
- }, {
1020
- readonly name: "_tickLower";
1021
- readonly type: "int24";
1022
1616
  }];
1023
1617
  readonly outputs: readonly [{
1024
1618
  readonly name: "";
@@ -1039,7 +1633,7 @@ export declare const abi: readonly [{
1039
1633
  }, {
1040
1634
  readonly stateMutability: "nonpayable";
1041
1635
  readonly type: "function";
1042
- readonly name: "addLiquidity";
1636
+ readonly name: "addLiquidityConcentrated";
1043
1637
  readonly inputs: readonly [{
1044
1638
  readonly name: "_legoId";
1045
1639
  readonly type: "uint256";
@@ -1067,9 +1661,6 @@ export declare const abi: readonly [{
1067
1661
  }, {
1068
1662
  readonly name: "_tickLower";
1069
1663
  readonly type: "int24";
1070
- }, {
1071
- readonly name: "_tickUpper";
1072
- readonly type: "int24";
1073
1664
  }];
1074
1665
  readonly outputs: readonly [{
1075
1666
  readonly name: "";
@@ -1090,7 +1681,7 @@ export declare const abi: readonly [{
1090
1681
  }, {
1091
1682
  readonly stateMutability: "nonpayable";
1092
1683
  readonly type: "function";
1093
- readonly name: "addLiquidity";
1684
+ readonly name: "addLiquidityConcentrated";
1094
1685
  readonly inputs: readonly [{
1095
1686
  readonly name: "_legoId";
1096
1687
  readonly type: "uint256";
@@ -1121,9 +1712,6 @@ export declare const abi: readonly [{
1121
1712
  }, {
1122
1713
  readonly name: "_tickUpper";
1123
1714
  readonly type: "int24";
1124
- }, {
1125
- readonly name: "_minAmountA";
1126
- readonly type: "uint256";
1127
1715
  }];
1128
1716
  readonly outputs: readonly [{
1129
1717
  readonly name: "";
@@ -1144,7 +1732,7 @@ export declare const abi: readonly [{
1144
1732
  }, {
1145
1733
  readonly stateMutability: "nonpayable";
1146
1734
  readonly type: "function";
1147
- readonly name: "addLiquidity";
1735
+ readonly name: "addLiquidityConcentrated";
1148
1736
  readonly inputs: readonly [{
1149
1737
  readonly name: "_legoId";
1150
1738
  readonly type: "uint256";
@@ -1178,9 +1766,6 @@ export declare const abi: readonly [{
1178
1766
  }, {
1179
1767
  readonly name: "_minAmountA";
1180
1768
  readonly type: "uint256";
1181
- }, {
1182
- readonly name: "_minAmountB";
1183
- readonly type: "uint256";
1184
1769
  }];
1185
1770
  readonly outputs: readonly [{
1186
1771
  readonly name: "";
@@ -1201,7 +1786,7 @@ export declare const abi: readonly [{
1201
1786
  }, {
1202
1787
  readonly stateMutability: "nonpayable";
1203
1788
  readonly type: "function";
1204
- readonly name: "addLiquidity";
1789
+ readonly name: "addLiquidityConcentrated";
1205
1790
  readonly inputs: readonly [{
1206
1791
  readonly name: "_legoId";
1207
1792
  readonly type: "uint256";
@@ -1238,9 +1823,6 @@ export declare const abi: readonly [{
1238
1823
  }, {
1239
1824
  readonly name: "_minAmountB";
1240
1825
  readonly type: "uint256";
1241
- }, {
1242
- readonly name: "_minLpAmount";
1243
- readonly type: "uint256";
1244
1826
  }];
1245
1827
  readonly outputs: readonly [{
1246
1828
  readonly name: "";
@@ -1261,7 +1843,7 @@ export declare const abi: readonly [{
1261
1843
  }, {
1262
1844
  readonly stateMutability: "nonpayable";
1263
1845
  readonly type: "function";
1264
- readonly name: "removeLiquidity";
1846
+ readonly name: "addLiquidityConcentrated";
1265
1847
  readonly inputs: readonly [{
1266
1848
  readonly name: "_legoId";
1267
1849
  readonly type: "uint256";
@@ -1280,6 +1862,27 @@ export declare const abi: readonly [{
1280
1862
  }, {
1281
1863
  readonly name: "_tokenB";
1282
1864
  readonly type: "address";
1865
+ }, {
1866
+ readonly name: "_amountA";
1867
+ readonly type: "uint256";
1868
+ }, {
1869
+ readonly name: "_amountB";
1870
+ readonly type: "uint256";
1871
+ }, {
1872
+ readonly name: "_tickLower";
1873
+ readonly type: "int24";
1874
+ }, {
1875
+ readonly name: "_tickUpper";
1876
+ readonly type: "int24";
1877
+ }, {
1878
+ readonly name: "_minAmountA";
1879
+ readonly type: "uint256";
1880
+ }, {
1881
+ readonly name: "_minAmountB";
1882
+ readonly type: "uint256";
1883
+ }, {
1884
+ readonly name: "_extraData";
1885
+ readonly type: "bytes32";
1283
1886
  }];
1284
1887
  readonly outputs: readonly [{
1285
1888
  readonly name: "";
@@ -1292,12 +1895,15 @@ export declare const abi: readonly [{
1292
1895
  readonly type: "uint256";
1293
1896
  }, {
1294
1897
  readonly name: "";
1295
- readonly type: "bool";
1898
+ readonly type: "uint256";
1899
+ }, {
1900
+ readonly name: "";
1901
+ readonly type: "uint256";
1296
1902
  }];
1297
1903
  }, {
1298
1904
  readonly stateMutability: "nonpayable";
1299
1905
  readonly type: "function";
1300
- readonly name: "removeLiquidity";
1906
+ readonly name: "removeLiquidityConcentrated";
1301
1907
  readonly inputs: readonly [{
1302
1908
  readonly name: "_legoId";
1303
1909
  readonly type: "uint256";
@@ -1316,9 +1922,6 @@ export declare const abi: readonly [{
1316
1922
  }, {
1317
1923
  readonly name: "_tokenB";
1318
1924
  readonly type: "address";
1319
- }, {
1320
- readonly name: "_liqToRemove";
1321
- readonly type: "uint256";
1322
1925
  }];
1323
1926
  readonly outputs: readonly [{
1324
1927
  readonly name: "";
@@ -1331,12 +1934,12 @@ export declare const abi: readonly [{
1331
1934
  readonly type: "uint256";
1332
1935
  }, {
1333
1936
  readonly name: "";
1334
- readonly type: "bool";
1937
+ readonly type: "uint256";
1335
1938
  }];
1336
1939
  }, {
1337
1940
  readonly stateMutability: "nonpayable";
1338
1941
  readonly type: "function";
1339
- readonly name: "removeLiquidity";
1942
+ readonly name: "removeLiquidityConcentrated";
1340
1943
  readonly inputs: readonly [{
1341
1944
  readonly name: "_legoId";
1342
1945
  readonly type: "uint256";
@@ -1358,9 +1961,6 @@ export declare const abi: readonly [{
1358
1961
  }, {
1359
1962
  readonly name: "_liqToRemove";
1360
1963
  readonly type: "uint256";
1361
- }, {
1362
- readonly name: "_minAmountA";
1363
- readonly type: "uint256";
1364
1964
  }];
1365
1965
  readonly outputs: readonly [{
1366
1966
  readonly name: "";
@@ -1373,12 +1973,12 @@ export declare const abi: readonly [{
1373
1973
  readonly type: "uint256";
1374
1974
  }, {
1375
1975
  readonly name: "";
1376
- readonly type: "bool";
1976
+ readonly type: "uint256";
1377
1977
  }];
1378
1978
  }, {
1379
1979
  readonly stateMutability: "nonpayable";
1380
1980
  readonly type: "function";
1381
- readonly name: "removeLiquidity";
1981
+ readonly name: "removeLiquidityConcentrated";
1382
1982
  readonly inputs: readonly [{
1383
1983
  readonly name: "_legoId";
1384
1984
  readonly type: "uint256";
@@ -1403,9 +2003,6 @@ export declare const abi: readonly [{
1403
2003
  }, {
1404
2004
  readonly name: "_minAmountA";
1405
2005
  readonly type: "uint256";
1406
- }, {
1407
- readonly name: "_minAmountB";
1408
- readonly type: "uint256";
1409
2006
  }];
1410
2007
  readonly outputs: readonly [{
1411
2008
  readonly name: "";
@@ -1416,262 +2013,103 @@ export declare const abi: readonly [{
1416
2013
  }, {
1417
2014
  readonly name: "";
1418
2015
  readonly type: "uint256";
1419
- }, {
1420
- readonly name: "";
1421
- readonly type: "bool";
1422
- }];
1423
- }, {
1424
- readonly stateMutability: "payable";
1425
- readonly type: "function";
1426
- readonly name: "convertEthToWeth";
1427
- readonly inputs: readonly [];
1428
- readonly outputs: readonly [{
1429
- readonly name: "";
1430
- readonly type: "uint256";
1431
- }, {
1432
- readonly name: "";
1433
- readonly type: "address";
1434
- }, {
1435
- readonly name: "";
1436
- readonly type: "uint256";
1437
- }];
1438
- }, {
1439
- readonly stateMutability: "payable";
1440
- readonly type: "function";
1441
- readonly name: "convertEthToWeth";
1442
- readonly inputs: readonly [{
1443
- readonly name: "_amount";
1444
- readonly type: "uint256";
1445
- }];
1446
- readonly outputs: readonly [{
1447
- readonly name: "";
1448
- readonly type: "uint256";
1449
- }, {
1450
- readonly name: "";
1451
- readonly type: "address";
1452
2016
  }, {
1453
2017
  readonly name: "";
1454
2018
  readonly type: "uint256";
1455
2019
  }];
1456
2020
  }, {
1457
- readonly stateMutability: "payable";
2021
+ readonly stateMutability: "nonpayable";
1458
2022
  readonly type: "function";
1459
- readonly name: "convertEthToWeth";
2023
+ readonly name: "removeLiquidityConcentrated";
1460
2024
  readonly inputs: readonly [{
1461
- readonly name: "_amount";
1462
- readonly type: "uint256";
1463
- }, {
1464
- readonly name: "_depositLegoId";
1465
- readonly type: "uint256";
1466
- }];
1467
- readonly outputs: readonly [{
1468
- readonly name: "";
2025
+ readonly name: "_legoId";
1469
2026
  readonly type: "uint256";
1470
2027
  }, {
1471
- readonly name: "";
2028
+ readonly name: "_nftAddr";
1472
2029
  readonly type: "address";
1473
2030
  }, {
1474
- readonly name: "";
1475
- readonly type: "uint256";
1476
- }];
1477
- }, {
1478
- readonly stateMutability: "payable";
1479
- readonly type: "function";
1480
- readonly name: "convertEthToWeth";
1481
- readonly inputs: readonly [{
1482
- readonly name: "_amount";
1483
- readonly type: "uint256";
1484
- }, {
1485
- readonly name: "_depositLegoId";
1486
- readonly type: "uint256";
1487
- }, {
1488
- readonly name: "_depositVault";
1489
- readonly type: "address";
1490
- }];
1491
- readonly outputs: readonly [{
1492
- readonly name: "";
2031
+ readonly name: "_nftTokenId";
1493
2032
  readonly type: "uint256";
1494
2033
  }, {
1495
- readonly name: "";
2034
+ readonly name: "_pool";
1496
2035
  readonly type: "address";
1497
2036
  }, {
1498
- readonly name: "";
1499
- readonly type: "uint256";
1500
- }];
1501
- }, {
1502
- readonly stateMutability: "nonpayable";
1503
- readonly type: "function";
1504
- readonly name: "convertWethToEth";
1505
- readonly inputs: readonly [];
1506
- readonly outputs: readonly [{
1507
- readonly name: "";
1508
- readonly type: "uint256";
1509
- }];
1510
- }, {
1511
- readonly stateMutability: "nonpayable";
1512
- readonly type: "function";
1513
- readonly name: "convertWethToEth";
1514
- readonly inputs: readonly [{
1515
- readonly name: "_amount";
1516
- readonly type: "uint256";
1517
- }];
1518
- readonly outputs: readonly [{
1519
- readonly name: "";
1520
- readonly type: "uint256";
1521
- }];
1522
- }, {
1523
- readonly stateMutability: "nonpayable";
1524
- readonly type: "function";
1525
- readonly name: "convertWethToEth";
1526
- readonly inputs: readonly [{
1527
- readonly name: "_amount";
1528
- readonly type: "uint256";
1529
- }, {
1530
- readonly name: "_recipient";
2037
+ readonly name: "_tokenA";
1531
2038
  readonly type: "address";
1532
- }];
1533
- readonly outputs: readonly [{
1534
- readonly name: "";
1535
- readonly type: "uint256";
1536
- }];
1537
- }, {
1538
- readonly stateMutability: "nonpayable";
1539
- readonly type: "function";
1540
- readonly name: "convertWethToEth";
1541
- readonly inputs: readonly [{
1542
- readonly name: "_amount";
1543
- readonly type: "uint256";
1544
2039
  }, {
1545
- readonly name: "_recipient";
2040
+ readonly name: "_tokenB";
1546
2041
  readonly type: "address";
1547
2042
  }, {
1548
- readonly name: "_withdrawLegoId";
1549
- readonly type: "uint256";
1550
- }];
1551
- readonly outputs: readonly [{
1552
- readonly name: "";
1553
- readonly type: "uint256";
1554
- }];
1555
- }, {
1556
- readonly stateMutability: "nonpayable";
1557
- readonly type: "function";
1558
- readonly name: "convertWethToEth";
1559
- readonly inputs: readonly [{
1560
- readonly name: "_amount";
1561
- readonly type: "uint256";
1562
- }, {
1563
- readonly name: "_recipient";
1564
- readonly type: "address";
2043
+ readonly name: "_liqToRemove";
2044
+ readonly type: "uint256";
1565
2045
  }, {
1566
- readonly name: "_withdrawLegoId";
2046
+ readonly name: "_minAmountA";
1567
2047
  readonly type: "uint256";
1568
2048
  }, {
1569
- readonly name: "_withdrawVaultAddr";
1570
- readonly type: "address";
2049
+ readonly name: "_minAmountB";
2050
+ readonly type: "uint256";
1571
2051
  }];
1572
2052
  readonly outputs: readonly [{
1573
2053
  readonly name: "";
1574
2054
  readonly type: "uint256";
1575
- }];
1576
- }, {
1577
- readonly stateMutability: "nonpayable";
1578
- readonly type: "function";
1579
- readonly name: "convertWethToEth";
1580
- readonly inputs: readonly [{
1581
- readonly name: "_amount";
1582
- readonly type: "uint256";
1583
- }, {
1584
- readonly name: "_recipient";
1585
- readonly type: "address";
1586
2055
  }, {
1587
- readonly name: "_withdrawLegoId";
2056
+ readonly name: "";
1588
2057
  readonly type: "uint256";
1589
2058
  }, {
1590
- readonly name: "_withdrawVaultAddr";
1591
- readonly type: "address";
1592
- }, {
1593
- readonly name: "_hasWithdrawVaultToken";
1594
- readonly type: "bool";
1595
- }];
1596
- readonly outputs: readonly [{
1597
2059
  readonly name: "";
1598
2060
  readonly type: "uint256";
1599
- }];
1600
- }, {
1601
- readonly stateMutability: "nonpayable";
1602
- readonly type: "function";
1603
- readonly name: "claimRewards";
1604
- readonly inputs: readonly [{
1605
- readonly name: "_legoId";
2061
+ }, {
2062
+ readonly name: "";
1606
2063
  readonly type: "uint256";
1607
2064
  }];
1608
- readonly outputs: readonly [];
1609
2065
  }, {
1610
2066
  readonly stateMutability: "nonpayable";
1611
2067
  readonly type: "function";
1612
- readonly name: "claimRewards";
2068
+ readonly name: "removeLiquidityConcentrated";
1613
2069
  readonly inputs: readonly [{
1614
2070
  readonly name: "_legoId";
1615
2071
  readonly type: "uint256";
1616
2072
  }, {
1617
- readonly name: "_market";
2073
+ readonly name: "_nftAddr";
1618
2074
  readonly type: "address";
1619
- }];
1620
- readonly outputs: readonly [];
1621
- }, {
1622
- readonly stateMutability: "nonpayable";
1623
- readonly type: "function";
1624
- readonly name: "claimRewards";
1625
- readonly inputs: readonly [{
1626
- readonly name: "_legoId";
2075
+ }, {
2076
+ readonly name: "_nftTokenId";
1627
2077
  readonly type: "uint256";
1628
2078
  }, {
1629
- readonly name: "_market";
2079
+ readonly name: "_pool";
1630
2080
  readonly type: "address";
1631
2081
  }, {
1632
- readonly name: "_rewardToken";
2082
+ readonly name: "_tokenA";
1633
2083
  readonly type: "address";
1634
- }];
1635
- readonly outputs: readonly [];
1636
- }, {
1637
- readonly stateMutability: "nonpayable";
1638
- readonly type: "function";
1639
- readonly name: "claimRewards";
1640
- readonly inputs: readonly [{
1641
- readonly name: "_legoId";
1642
- readonly type: "uint256";
1643
2084
  }, {
1644
- readonly name: "_market";
2085
+ readonly name: "_tokenB";
1645
2086
  readonly type: "address";
1646
2087
  }, {
1647
- readonly name: "_rewardToken";
1648
- readonly type: "address";
2088
+ readonly name: "_liqToRemove";
2089
+ readonly type: "uint256";
1649
2090
  }, {
1650
- readonly name: "_rewardAmount";
2091
+ readonly name: "_minAmountA";
1651
2092
  readonly type: "uint256";
1652
- }];
1653
- readonly outputs: readonly [];
1654
- }, {
1655
- readonly stateMutability: "nonpayable";
1656
- readonly type: "function";
1657
- readonly name: "claimRewards";
1658
- readonly inputs: readonly [{
1659
- readonly name: "_legoId";
2093
+ }, {
2094
+ readonly name: "_minAmountB";
1660
2095
  readonly type: "uint256";
1661
2096
  }, {
1662
- readonly name: "_market";
1663
- readonly type: "address";
2097
+ readonly name: "_extraData";
2098
+ readonly type: "bytes32";
2099
+ }];
2100
+ readonly outputs: readonly [{
2101
+ readonly name: "";
2102
+ readonly type: "uint256";
1664
2103
  }, {
1665
- readonly name: "_rewardToken";
1666
- readonly type: "address";
2104
+ readonly name: "";
2105
+ readonly type: "uint256";
1667
2106
  }, {
1668
- readonly name: "_rewardAmount";
2107
+ readonly name: "";
1669
2108
  readonly type: "uint256";
1670
2109
  }, {
1671
- readonly name: "_proof";
1672
- readonly type: "bytes32";
2110
+ readonly name: "";
2111
+ readonly type: "uint256";
1673
2112
  }];
1674
- readonly outputs: readonly [];
1675
2113
  }, {
1676
2114
  readonly stateMutability: "nonpayable";
1677
2115
  readonly type: "function";
@@ -1863,182 +2301,20 @@ export declare const abi: readonly [{
1863
2301
  readonly name: "_recipient";
1864
2302
  readonly type: "address";
1865
2303
  }];
1866
- readonly outputs: readonly [{
1867
- readonly name: "";
1868
- readonly type: "bool";
1869
- }];
1870
- }, {
1871
- readonly stateMutability: "nonpayable";
1872
- readonly type: "function";
1873
- readonly name: "borrow";
1874
- readonly inputs: readonly [{
1875
- readonly name: "_legoId";
1876
- readonly type: "uint256";
1877
- }];
1878
- readonly outputs: readonly [{
1879
- readonly name: "";
1880
- readonly type: "address";
1881
- }, {
1882
- readonly name: "";
1883
- readonly type: "uint256";
1884
- }, {
1885
- readonly name: "";
1886
- readonly type: "uint256";
1887
- }];
1888
- }, {
1889
- readonly stateMutability: "nonpayable";
1890
- readonly type: "function";
1891
- readonly name: "borrow";
1892
- readonly inputs: readonly [{
1893
- readonly name: "_legoId";
1894
- readonly type: "uint256";
1895
- }, {
1896
- readonly name: "_borrowAsset";
1897
- readonly type: "address";
1898
- }];
1899
- readonly outputs: readonly [{
1900
- readonly name: "";
1901
- readonly type: "address";
1902
- }, {
1903
- readonly name: "";
1904
- readonly type: "uint256";
1905
- }, {
1906
- readonly name: "";
1907
- readonly type: "uint256";
1908
- }];
1909
- }, {
1910
- readonly stateMutability: "nonpayable";
1911
- readonly type: "function";
1912
- readonly name: "borrow";
1913
- readonly inputs: readonly [{
1914
- readonly name: "_legoId";
1915
- readonly type: "uint256";
1916
- }, {
1917
- readonly name: "_borrowAsset";
1918
- readonly type: "address";
1919
- }, {
1920
- readonly name: "_amount";
1921
- readonly type: "uint256";
1922
- }];
1923
- readonly outputs: readonly [{
1924
- readonly name: "";
1925
- readonly type: "address";
1926
- }, {
1927
- readonly name: "";
1928
- readonly type: "uint256";
1929
- }, {
1930
- readonly name: "";
1931
- readonly type: "uint256";
1932
- }];
1933
- }, {
1934
- readonly stateMutability: "nonpayable";
1935
- readonly type: "function";
1936
- readonly name: "repayDebt";
1937
- readonly inputs: readonly [{
1938
- readonly name: "_legoId";
1939
- readonly type: "uint256";
1940
- }, {
1941
- readonly name: "_paymentAsset";
1942
- readonly type: "address";
1943
- }];
1944
- readonly outputs: readonly [{
1945
- readonly name: "";
1946
- readonly type: "address";
1947
- }, {
1948
- readonly name: "";
1949
- readonly type: "uint256";
1950
- }, {
1951
- readonly name: "";
1952
- readonly type: "uint256";
1953
- }, {
1954
- readonly name: "";
1955
- readonly type: "uint256";
1956
- }];
1957
- }, {
1958
- readonly stateMutability: "nonpayable";
1959
- readonly type: "function";
1960
- readonly name: "repayDebt";
1961
- readonly inputs: readonly [{
1962
- readonly name: "_legoId";
1963
- readonly type: "uint256";
1964
- }, {
1965
- readonly name: "_paymentAsset";
1966
- readonly type: "address";
1967
- }, {
1968
- readonly name: "_paymentAmount";
1969
- readonly type: "uint256";
1970
- }];
1971
- readonly outputs: readonly [{
1972
- readonly name: "";
1973
- readonly type: "address";
1974
- }, {
1975
- readonly name: "";
1976
- readonly type: "uint256";
1977
- }, {
1978
- readonly name: "";
1979
- readonly type: "uint256";
1980
- }, {
1981
- readonly name: "";
1982
- readonly type: "uint256";
1983
- }];
1984
- }, {
1985
- readonly stateMutability: "nonpayable";
1986
- readonly type: "function";
1987
- readonly name: "transferFunds";
1988
- readonly inputs: readonly [{
1989
- readonly name: "_recipient";
1990
- readonly type: "address";
1991
- }];
1992
- readonly outputs: readonly [{
1993
- readonly name: "";
1994
- readonly type: "uint256";
1995
- }, {
1996
- readonly name: "";
1997
- readonly type: "uint256";
1998
- }];
2304
+ readonly outputs: readonly [];
1999
2305
  }, {
2000
- readonly stateMutability: "nonpayable";
2306
+ readonly stateMutability: "view";
2001
2307
  readonly type: "function";
2002
- readonly name: "transferFunds";
2003
- readonly inputs: readonly [{
2004
- readonly name: "_recipient";
2005
- readonly type: "address";
2006
- }, {
2007
- readonly name: "_amount";
2008
- readonly type: "uint256";
2009
- }];
2308
+ readonly name: "WETH";
2309
+ readonly inputs: readonly [];
2010
2310
  readonly outputs: readonly [{
2011
2311
  readonly name: "";
2012
- readonly type: "uint256";
2013
- }, {
2014
- readonly name: "";
2015
- readonly type: "uint256";
2016
- }];
2017
- }, {
2018
- readonly stateMutability: "nonpayable";
2019
- readonly type: "function";
2020
- readonly name: "transferFunds";
2021
- readonly inputs: readonly [{
2022
- readonly name: "_recipient";
2023
- readonly type: "address";
2024
- }, {
2025
- readonly name: "_amount";
2026
- readonly type: "uint256";
2027
- }, {
2028
- readonly name: "_asset";
2029
2312
  readonly type: "address";
2030
2313
  }];
2031
- readonly outputs: readonly [{
2032
- readonly name: "";
2033
- readonly type: "uint256";
2034
- }, {
2035
- readonly name: "";
2036
- readonly type: "uint256";
2037
- }];
2038
2314
  }, {
2039
2315
  readonly stateMutability: "view";
2040
2316
  readonly type: "function";
2041
- readonly name: "WETH";
2317
+ readonly name: "ETH";
2042
2318
  readonly inputs: readonly [];
2043
2319
  readonly outputs: readonly [{
2044
2320
  readonly name: "";
@@ -2053,6 +2329,9 @@ export declare const abi: readonly [{
2053
2329
  }, {
2054
2330
  readonly name: "_weth";
2055
2331
  readonly type: "address";
2332
+ }, {
2333
+ readonly name: "_eth";
2334
+ readonly type: "address";
2056
2335
  }];
2057
2336
  readonly outputs: readonly [];
2058
2337
  }];
@@ -2087,44 +2366,40 @@ export type Contract = {
2087
2366
  getGreenAmountToAddInStabilizer: () => Promise<bigint>;
2088
2367
  getGreenAmountToRemoveInStabilizer: () => Promise<bigint>;
2089
2368
  WETH: () => Promise<`0x${string}`>;
2369
+ ETH: () => Promise<`0x${string}`>;
2090
2370
  };
2091
2371
  mutations: {
2092
2372
  pause: (shouldPause: boolean) => Promise<void>;
2093
2373
  recoverFunds: (recipient: `0x${string}`, asset: `0x${string}`) => Promise<void>;
2094
2374
  recoverFundsMany: (recipient: `0x${string}`, assets: `0x${string}`[]) => Promise<void>;
2095
- depositTokens: (legoId: bigint, asset: `0x${string}`, vault: `0x${string}`, amount?: bigint) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
2096
- withdrawTokens: (legoId: bigint, asset: `0x${string}`, vaultAddr: `0x${string}`, withdrawAmount?: bigint, hasVaultToken?: boolean) => Promise<[bigint, bigint, bigint]>;
2097
- rebalance: (fromLegoId: bigint, fromAsset: `0x${string}`, fromVaultAddr: `0x${string}`, toLegoId: bigint, toVaultAddr: `0x${string}`, fromVaultAmount?: bigint, hasFromVaultToken?: boolean) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
2098
- swapTokens: (swapInstructions: {
2375
+ depositForYield: (legoId: bigint, asset: `0x${string}`, vaultAddr?: `0x${string}`, amount?: bigint, extraData?: `0x${string}`) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
2376
+ withdrawFromYield: (legoId: bigint, vaultToken: `0x${string}`, amount?: bigint, extraData?: `0x${string}`) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
2377
+ rebalanceYieldPosition: (fromLegoId: bigint, fromVaultToken: `0x${string}`, toLegoId: bigint, toVaultAddr?: `0x${string}`, fromVaultAmount?: bigint, extraData?: `0x${string}`) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
2378
+ swapTokens: (instructions: {
2099
2379
  legoId: bigint;
2100
2380
  amountIn: bigint;
2101
2381
  minAmountOut: bigint;
2102
2382
  tokenPath: `0x${string}`[];
2103
2383
  poolPath: `0x${string}`[];
2104
- }[]) => Promise<[bigint, bigint, bigint]>;
2105
- addLiquidity: (legoId: bigint, nftAddr: `0x${string}`, nftTokenId: bigint, pool: `0x${string}`, tokenA: `0x${string}`, tokenB: `0x${string}`, amountA?: bigint, amountB?: bigint, tickLower?: unknown, tickUpper?: unknown, minAmountA?: bigint, minAmountB?: bigint, minLpAmount?: bigint) => Promise<[bigint, bigint, bigint, bigint, bigint]>;
2106
- removeLiquidity: (legoId: bigint, nftAddr: `0x${string}`, nftTokenId: bigint, pool: `0x${string}`, tokenA: `0x${string}`, tokenB: `0x${string}`, liqToRemove?: bigint, minAmountA?: bigint, minAmountB?: bigint) => Promise<[bigint, bigint, bigint, boolean]>;
2107
- convertEthToWeth: (amount?: bigint, depositLegoId?: bigint, depositVault?: `0x${string}`) => Promise<[bigint, `0x${string}`, bigint]>;
2108
- convertWethToEth: (amount?: bigint, recipient?: `0x${string}`, withdrawLegoId?: bigint, withdrawVaultAddr?: `0x${string}`, hasWithdrawVaultToken?: boolean) => Promise<bigint>;
2109
- claimRewards: (legoId: bigint, market?: `0x${string}`, rewardToken?: `0x${string}`, rewardAmount?: bigint, proof?: `0x${string}`) => Promise<void>;
2384
+ }[]) => Promise<[`0x${string}`, bigint, `0x${string}`, bigint, bigint]>;
2385
+ mintOrRedeemAsset: (legoId: bigint, tokenIn: `0x${string}`, tokenOut: `0x${string}`, amountIn?: bigint, minAmountOut?: bigint, extraData?: `0x${string}`) => Promise<[bigint, bigint, boolean, bigint]>;
2386
+ confirmMintOrRedeemAsset: (legoId: bigint, tokenIn: `0x${string}`, tokenOut: `0x${string}`, extraData?: `0x${string}`) => Promise<[bigint, bigint]>;
2387
+ claimRewards: (legoId: bigint, rewardToken?: `0x${string}`, rewardAmount?: bigint, extraData?: `0x${string}`) => Promise<[bigint, bigint]>;
2388
+ convertEthToWeth: (amount?: bigint) => Promise<[bigint, bigint]>;
2389
+ convertWethToEth: (amount?: bigint) => Promise<[bigint, bigint]>;
2390
+ addLiquidity: (legoId: bigint, pool: `0x${string}`, tokenA: `0x${string}`, tokenB: `0x${string}`, amountA?: bigint, amountB?: bigint, minAmountA?: bigint, minAmountB?: bigint, minLpAmount?: bigint, extraData?: `0x${string}`) => Promise<[bigint, bigint, bigint, bigint]>;
2391
+ removeLiquidity: (legoId: bigint, pool: `0x${string}`, tokenA: `0x${string}`, tokenB: `0x${string}`, lpToken: `0x${string}`, lpAmount?: bigint, minAmountA?: bigint, minAmountB?: bigint, extraData?: `0x${string}`) => Promise<[bigint, bigint, bigint, bigint]>;
2392
+ addLiquidityConcentrated: (legoId: bigint, nftAddr: `0x${string}`, nftTokenId: bigint, pool: `0x${string}`, tokenA: `0x${string}`, tokenB: `0x${string}`, amountA?: bigint, amountB?: bigint, tickLower?: unknown, tickUpper?: unknown, minAmountA?: bigint, minAmountB?: bigint, extraData?: `0x${string}`) => Promise<[bigint, bigint, bigint, bigint, bigint]>;
2393
+ removeLiquidityConcentrated: (legoId: bigint, nftAddr: `0x${string}`, nftTokenId: bigint, pool: `0x${string}`, tokenA: `0x${string}`, tokenB: `0x${string}`, liqToRemove?: bigint, minAmountA?: bigint, minAmountB?: bigint, extraData?: `0x${string}`) => Promise<[bigint, bigint, bigint, bigint]>;
2110
2394
  stabilizeGreenRefPool: () => Promise<boolean>;
2111
2395
  mintPartnerLiquidity: (partner: `0x${string}`, asset: `0x${string}`, amount?: bigint) => Promise<bigint>;
2112
2396
  addPartnerLiquidity: (legoId: bigint, pool: `0x${string}`, partner: `0x${string}`, asset: `0x${string}`, amount?: bigint, minLpAmount?: bigint) => Promise<[bigint, bigint, bigint]>;
2113
2397
  repayPoolDebt: (pool: `0x${string}`, amount?: bigint) => Promise<boolean>;
2114
- recoverNft: (collection: `0x${string}`, nftTokenId: bigint, recipient: `0x${string}`) => Promise<boolean>;
2115
- borrow: (legoId: bigint, borrowAsset?: `0x${string}`, amount?: bigint) => Promise<[`0x${string}`, bigint, bigint]>;
2116
- repayDebt: (legoId: bigint, paymentAsset: `0x${string}`, paymentAmount?: bigint) => Promise<[`0x${string}`, bigint, bigint, bigint]>;
2117
- transferFunds: (recipient: `0x${string}`, amount?: bigint, asset?: `0x${string}`) => Promise<[bigint, bigint]>;
2398
+ recoverNft: (collection: `0x${string}`, nftTokenId: bigint, recipient: `0x${string}`) => Promise<void>;
2118
2399
  };
2119
2400
  events: {
2120
- EndaomentDeposit: (asset: `0x${string}`, vaultToken: `0x${string}`, assetAmountDeposited: bigint, vaultTokenAmountReceived: bigint, refundAssetAmount: bigint, usdValue: bigint, legoId: bigint, legoAddr: `0x${string}`) => Promise<void>;
2121
- EndaomentWithdrawal: (asset: `0x${string}`, vaultToken: `0x${string}`, hasVaultToken: boolean, assetAmountReceived: bigint, vaultTokenAmountBurned: bigint, refundVaultTokenAmount: bigint, usdValue: bigint, legoId: bigint, legoAddr: `0x${string}`) => Promise<void>;
2122
- EndaomentSwap: (tokenIn: `0x${string}`, tokenOut: `0x${string}`, swapAmount: bigint, toAmount: bigint, refundAssetAmount: bigint, usdValue: bigint, numTokens: bigint, legoId: bigint, legoAddr: `0x${string}`) => Promise<void>;
2123
- EndaomentLiquidityAdded: (tokenA: `0x${string}`, tokenB: `0x${string}`, liqAmountA: bigint, liqAmountB: bigint, liquidityAdded: bigint, pool: `0x${string}`, usdValue: bigint, refundAssetAmountA: bigint, refundAssetAmountB: bigint, nftTokenId: bigint, legoId: bigint, legoAddr: `0x${string}`) => Promise<void>;
2124
- EndaomentLiquidityRemoved: (tokenA: `0x${string}`, tokenB: `0x${string}`, removedAmountA: bigint, removedAmountB: bigint, usdValue: bigint, isDepleted: boolean, liquidityRemoved: bigint, lpToken: `0x${string}`, refundedLpAmount: bigint, legoId: bigint, legoAddr: `0x${string}`) => Promise<void>;
2125
- EndaomentEthConvertedToWeth: (amount: bigint, paidEth: bigint, weth: `0x${string}`) => Promise<void>;
2126
- EndaomentWethConvertedToEth: (amount: bigint, weth: `0x${string}`) => Promise<void>;
2127
- EndaomentRewardsClaimed: (market: `0x${string}`, rewardToken: `0x${string}`, rewardAmount: bigint, proof: `0x${string}`, legoId: bigint, legoAddr: `0x${string}`) => Promise<void>;
2401
+ WalletAction: (op: number, asset1: `0x${string}`, asset2: `0x${string}`, amount1: bigint, amount2: bigint, usdValue: bigint, legoId: bigint) => Promise<void>;
2402
+ WalletActionExt: (op: number, asset1: `0x${string}`, asset2: `0x${string}`, tokenId: bigint, amount1: bigint, amount2: bigint, usdValue: bigint, extra: bigint) => Promise<void>;
2128
2403
  EndaomentNftRecovered: (collection: `0x${string}`, nftTokenId: bigint, recipient: `0x${string}`) => Promise<void>;
2129
2404
  StabilizerPoolLiqAdded: (pool: `0x${string}`, greenAmountAdded: bigint, lpReceived: bigint, poolDebtAdded: bigint) => Promise<void>;
2130
2405
  StabilizerPoolLiqRemoved: (pool: `0x${string}`, lpBurned: bigint, greenAmountRemoved: bigint, debtRepaid: bigint) => Promise<void>;
@@ -2182,26 +2457,28 @@ export type SDK = {
2182
2457
  getGreenAmountToAddInStabilizer: (...args: ExtractArgs<Contract['calls']['getGreenAmountToAddInStabilizer']>) => Promise<CallReturn<'getGreenAmountToAddInStabilizer'>>;
2183
2458
  getGreenAmountToRemoveInStabilizer: (...args: ExtractArgs<Contract['calls']['getGreenAmountToRemoveInStabilizer']>) => Promise<CallReturn<'getGreenAmountToRemoveInStabilizer'>>;
2184
2459
  WETH: (...args: ExtractArgs<Contract['calls']['WETH']>) => Promise<CallReturn<'WETH'>>;
2460
+ ETH: (...args: ExtractArgs<Contract['calls']['ETH']>) => Promise<CallReturn<'ETH'>>;
2185
2461
  pause: (...args: ExtractArgs<Contract['mutations']['pause']>) => Promise<Address>;
2186
2462
  recoverFunds: (...args: ExtractArgs<Contract['mutations']['recoverFunds']>) => Promise<Address>;
2187
2463
  recoverFundsMany: (...args: ExtractArgs<Contract['mutations']['recoverFundsMany']>) => Promise<Address>;
2188
- depositTokens: (...args: ExtractArgs<Contract['mutations']['depositTokens']>) => Promise<Address>;
2189
- withdrawTokens: (...args: ExtractArgs<Contract['mutations']['withdrawTokens']>) => Promise<Address>;
2190
- rebalance: (...args: ExtractArgs<Contract['mutations']['rebalance']>) => Promise<Address>;
2464
+ depositForYield: (...args: ExtractArgs<Contract['mutations']['depositForYield']>) => Promise<Address>;
2465
+ withdrawFromYield: (...args: ExtractArgs<Contract['mutations']['withdrawFromYield']>) => Promise<Address>;
2466
+ rebalanceYieldPosition: (...args: ExtractArgs<Contract['mutations']['rebalanceYieldPosition']>) => Promise<Address>;
2191
2467
  swapTokens: (...args: ExtractArgs<Contract['mutations']['swapTokens']>) => Promise<Address>;
2192
- addLiquidity: (...args: ExtractArgs<Contract['mutations']['addLiquidity']>) => Promise<Address>;
2193
- removeLiquidity: (...args: ExtractArgs<Contract['mutations']['removeLiquidity']>) => Promise<Address>;
2468
+ mintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['mintOrRedeemAsset']>) => Promise<Address>;
2469
+ confirmMintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['confirmMintOrRedeemAsset']>) => Promise<Address>;
2470
+ claimRewards: (...args: ExtractArgs<Contract['mutations']['claimRewards']>) => Promise<Address>;
2194
2471
  convertEthToWeth: (...args: ExtractArgs<Contract['mutations']['convertEthToWeth']>) => Promise<Address>;
2195
2472
  convertWethToEth: (...args: ExtractArgs<Contract['mutations']['convertWethToEth']>) => Promise<Address>;
2196
- claimRewards: (...args: ExtractArgs<Contract['mutations']['claimRewards']>) => Promise<Address>;
2473
+ addLiquidity: (...args: ExtractArgs<Contract['mutations']['addLiquidity']>) => Promise<Address>;
2474
+ removeLiquidity: (...args: ExtractArgs<Contract['mutations']['removeLiquidity']>) => Promise<Address>;
2475
+ addLiquidityConcentrated: (...args: ExtractArgs<Contract['mutations']['addLiquidityConcentrated']>) => Promise<Address>;
2476
+ removeLiquidityConcentrated: (...args: ExtractArgs<Contract['mutations']['removeLiquidityConcentrated']>) => Promise<Address>;
2197
2477
  stabilizeGreenRefPool: (...args: ExtractArgs<Contract['mutations']['stabilizeGreenRefPool']>) => Promise<Address>;
2198
2478
  mintPartnerLiquidity: (...args: ExtractArgs<Contract['mutations']['mintPartnerLiquidity']>) => Promise<Address>;
2199
2479
  addPartnerLiquidity: (...args: ExtractArgs<Contract['mutations']['addPartnerLiquidity']>) => Promise<Address>;
2200
2480
  repayPoolDebt: (...args: ExtractArgs<Contract['mutations']['repayPoolDebt']>) => Promise<Address>;
2201
2481
  recoverNft: (...args: ExtractArgs<Contract['mutations']['recoverNft']>) => Promise<Address>;
2202
- borrow: (...args: ExtractArgs<Contract['mutations']['borrow']>) => Promise<Address>;
2203
- repayDebt: (...args: ExtractArgs<Contract['mutations']['repayDebt']>) => Promise<Address>;
2204
- transferFunds: (...args: ExtractArgs<Contract['mutations']['transferFunds']>) => Promise<Address>;
2205
2482
  };
2206
2483
  export declare function toSdk(publicClient?: PublicClient, walletClient?: WalletClient): SDK;
2207
2484
  export {};