@underscore-finance/sdk 1.2.5 → 1.2.7

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 (35) hide show
  1. package/dist/contracts/DefaultsBase.d.ts +41 -15
  2. package/dist/contracts/DefaultsBase.d.ts.map +1 -1
  3. package/dist/contracts/DefaultsBase.js +44 -15
  4. package/dist/contracts/EarnVaultAgent.js +1 -1
  5. package/dist/contracts/ExtraFi.d.ts +2596 -0
  6. package/dist/contracts/ExtraFi.d.ts.map +1 -0
  7. package/dist/contracts/ExtraFi.js +3297 -0
  8. package/dist/contracts/LevgVaultHelper.d.ts +97 -0
  9. package/dist/contracts/LevgVaultHelper.d.ts.map +1 -1
  10. package/dist/contracts/LevgVaultHelper.js +132 -1
  11. package/dist/contracts/LootDistributor.d.ts +0 -56
  12. package/dist/contracts/LootDistributor.d.ts.map +1 -1
  13. package/dist/contracts/LootDistributor.js +1 -72
  14. package/dist/contracts/MissionControl.d.ts +150 -9
  15. package/dist/contracts/MissionControl.d.ts.map +1 -1
  16. package/dist/contracts/MissionControl.js +186 -10
  17. package/dist/contracts/RipeLego.d.ts +29 -0
  18. package/dist/contracts/RipeLego.d.ts.map +1 -1
  19. package/dist/contracts/RipeLego.js +41 -1
  20. package/dist/contracts/SwitchboardAlpha.d.ts +502 -22
  21. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
  22. package/dist/contracts/SwitchboardAlpha.js +777 -124
  23. package/dist/contracts/UndyVirtual.d.ts +1705 -0
  24. package/dist/contracts/UndyVirtual.d.ts.map +1 -0
  25. package/dist/contracts/UndyVirtual.js +2237 -0
  26. package/dist/contracts/index.d.ts +2 -0
  27. package/dist/contracts/index.d.ts.map +1 -1
  28. package/dist/contracts/index.js +2 -0
  29. package/dist/contracts/sdk.d.ts +4 -0
  30. package/dist/contracts/sdk.d.ts.map +1 -1
  31. package/dist/contracts/sdk.js +4 -0
  32. package/dist/index.d.ts +4 -0
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +2 -0
  35. package/package.json +1 -1
@@ -0,0 +1,2237 @@
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
+ name: 'Deposit',
9
+ inputs: [
10
+ {
11
+ name: 'sender',
12
+ type: 'address',
13
+ indexed: true,
14
+ },
15
+ {
16
+ name: 'owner',
17
+ type: 'address',
18
+ indexed: true,
19
+ },
20
+ {
21
+ name: 'assets',
22
+ type: 'uint256',
23
+ indexed: false,
24
+ },
25
+ {
26
+ name: 'shares',
27
+ type: 'uint256',
28
+ indexed: false,
29
+ },
30
+ ],
31
+ anonymous: false,
32
+ type: 'event',
33
+ },
34
+ {
35
+ name: 'Withdraw',
36
+ inputs: [
37
+ {
38
+ name: 'sender',
39
+ type: 'address',
40
+ indexed: true,
41
+ },
42
+ {
43
+ name: 'receiver',
44
+ type: 'address',
45
+ indexed: true,
46
+ },
47
+ {
48
+ name: 'owner',
49
+ type: 'address',
50
+ indexed: true,
51
+ },
52
+ {
53
+ name: 'assets',
54
+ type: 'uint256',
55
+ indexed: false,
56
+ },
57
+ {
58
+ name: 'shares',
59
+ type: 'uint256',
60
+ indexed: false,
61
+ },
62
+ ],
63
+ anonymous: false,
64
+ type: 'event',
65
+ },
66
+ {
67
+ name: 'LeftoversSwept',
68
+ inputs: [
69
+ {
70
+ name: 'amount',
71
+ type: 'uint256',
72
+ indexed: false,
73
+ },
74
+ {
75
+ name: 'recipient',
76
+ type: 'address',
77
+ indexed: true,
78
+ },
79
+ ],
80
+ anonymous: false,
81
+ type: 'event',
82
+ },
83
+ {
84
+ name: 'Transfer',
85
+ inputs: [
86
+ {
87
+ name: 'sender',
88
+ type: 'address',
89
+ indexed: true,
90
+ },
91
+ {
92
+ name: 'recipient',
93
+ type: 'address',
94
+ indexed: true,
95
+ },
96
+ {
97
+ name: 'amount',
98
+ type: 'uint256',
99
+ indexed: false,
100
+ },
101
+ ],
102
+ anonymous: false,
103
+ type: 'event',
104
+ },
105
+ {
106
+ name: 'Approval',
107
+ inputs: [
108
+ {
109
+ name: 'owner',
110
+ type: 'address',
111
+ indexed: true,
112
+ },
113
+ {
114
+ name: 'spender',
115
+ type: 'address',
116
+ indexed: true,
117
+ },
118
+ {
119
+ name: 'amount',
120
+ type: 'uint256',
121
+ indexed: false,
122
+ },
123
+ ],
124
+ anonymous: false,
125
+ type: 'event',
126
+ },
127
+ {
128
+ name: 'BlacklistModified',
129
+ inputs: [
130
+ {
131
+ name: 'addr',
132
+ type: 'address',
133
+ indexed: true,
134
+ },
135
+ {
136
+ name: 'isBlacklisted',
137
+ type: 'bool',
138
+ indexed: false,
139
+ },
140
+ ],
141
+ anonymous: false,
142
+ type: 'event',
143
+ },
144
+ {
145
+ name: 'TokenPauseModified',
146
+ inputs: [
147
+ {
148
+ name: 'isPaused',
149
+ type: 'bool',
150
+ indexed: false,
151
+ },
152
+ ],
153
+ anonymous: false,
154
+ type: 'event',
155
+ },
156
+ {
157
+ name: 'EarnVaultDeposit',
158
+ inputs: [
159
+ {
160
+ name: 'asset',
161
+ type: 'address',
162
+ indexed: true,
163
+ },
164
+ {
165
+ name: 'assetAmountDeposited',
166
+ type: 'uint256',
167
+ indexed: false,
168
+ },
169
+ {
170
+ name: 'assetAmountAdjusted',
171
+ type: 'uint256',
172
+ indexed: false,
173
+ },
174
+ {
175
+ name: 'vaultToken',
176
+ type: 'address',
177
+ indexed: true,
178
+ },
179
+ {
180
+ name: 'vaultTokenReceived',
181
+ type: 'uint256',
182
+ indexed: false,
183
+ },
184
+ {
185
+ name: 'vaultTokenExpected',
186
+ type: 'uint256',
187
+ indexed: false,
188
+ },
189
+ {
190
+ name: 'usdValue',
191
+ type: 'uint256',
192
+ indexed: false,
193
+ },
194
+ {
195
+ name: 'legoId',
196
+ type: 'uint256',
197
+ indexed: false,
198
+ },
199
+ {
200
+ name: 'signer',
201
+ type: 'address',
202
+ indexed: true,
203
+ },
204
+ ],
205
+ anonymous: false,
206
+ type: 'event',
207
+ },
208
+ {
209
+ name: 'EarnVaultWithdrawal',
210
+ inputs: [
211
+ {
212
+ name: 'vaultToken',
213
+ type: 'address',
214
+ indexed: true,
215
+ },
216
+ {
217
+ name: 'vaultTokenBurned',
218
+ type: 'uint256',
219
+ indexed: false,
220
+ },
221
+ {
222
+ name: 'underlyingAsset',
223
+ type: 'address',
224
+ indexed: true,
225
+ },
226
+ {
227
+ name: 'underlyingAmountReceived',
228
+ type: 'uint256',
229
+ indexed: false,
230
+ },
231
+ {
232
+ name: 'usdValue',
233
+ type: 'uint256',
234
+ indexed: false,
235
+ },
236
+ {
237
+ name: 'legoId',
238
+ type: 'uint256',
239
+ indexed: false,
240
+ },
241
+ {
242
+ name: 'signer',
243
+ type: 'address',
244
+ indexed: true,
245
+ },
246
+ ],
247
+ anonymous: false,
248
+ type: 'event',
249
+ },
250
+ {
251
+ name: 'EarnVaultSwap',
252
+ inputs: [
253
+ {
254
+ name: 'tokenIn',
255
+ type: 'address',
256
+ indexed: true,
257
+ },
258
+ {
259
+ name: 'tokenInAmount',
260
+ type: 'uint256',
261
+ indexed: false,
262
+ },
263
+ {
264
+ name: 'tokenOut',
265
+ type: 'address',
266
+ indexed: true,
267
+ },
268
+ {
269
+ name: 'tokenOutAmount',
270
+ type: 'uint256',
271
+ indexed: false,
272
+ },
273
+ {
274
+ name: 'usdValue',
275
+ type: 'uint256',
276
+ indexed: false,
277
+ },
278
+ {
279
+ name: 'swapFee',
280
+ type: 'uint256',
281
+ indexed: false,
282
+ },
283
+ {
284
+ name: 'legoId',
285
+ type: 'uint256',
286
+ indexed: false,
287
+ },
288
+ {
289
+ name: 'signer',
290
+ type: 'address',
291
+ indexed: true,
292
+ },
293
+ ],
294
+ anonymous: false,
295
+ type: 'event',
296
+ },
297
+ {
298
+ name: 'EarnVaultRewardsClaim',
299
+ inputs: [
300
+ {
301
+ name: 'rewardToken',
302
+ type: 'address',
303
+ indexed: true,
304
+ },
305
+ {
306
+ name: 'rewardAmount',
307
+ type: 'uint256',
308
+ indexed: false,
309
+ },
310
+ {
311
+ name: 'usdValue',
312
+ type: 'uint256',
313
+ indexed: false,
314
+ },
315
+ {
316
+ name: 'legoId',
317
+ type: 'uint256',
318
+ indexed: false,
319
+ },
320
+ {
321
+ name: 'signer',
322
+ type: 'address',
323
+ indexed: true,
324
+ },
325
+ ],
326
+ anonymous: false,
327
+ type: 'event',
328
+ },
329
+ {
330
+ name: 'PerformanceFeesClaimed',
331
+ inputs: [
332
+ {
333
+ name: 'pendingFees',
334
+ type: 'uint256',
335
+ indexed: false,
336
+ },
337
+ ],
338
+ anonymous: false,
339
+ type: 'event',
340
+ },
341
+ {
342
+ stateMutability: 'view',
343
+ type: 'function',
344
+ name: 'name',
345
+ inputs: [],
346
+ outputs: [
347
+ {
348
+ name: '',
349
+ type: 'string',
350
+ },
351
+ ],
352
+ },
353
+ {
354
+ stateMutability: 'view',
355
+ type: 'function',
356
+ name: 'symbol',
357
+ inputs: [],
358
+ outputs: [
359
+ {
360
+ name: '',
361
+ type: 'string',
362
+ },
363
+ ],
364
+ },
365
+ {
366
+ stateMutability: 'view',
367
+ type: 'function',
368
+ name: 'decimals',
369
+ inputs: [],
370
+ outputs: [
371
+ {
372
+ name: '',
373
+ type: 'uint8',
374
+ },
375
+ ],
376
+ },
377
+ {
378
+ stateMutability: 'nonpayable',
379
+ type: 'function',
380
+ name: 'transfer',
381
+ inputs: [
382
+ {
383
+ name: '_recipient',
384
+ type: 'address',
385
+ },
386
+ {
387
+ name: '_amount',
388
+ type: 'uint256',
389
+ },
390
+ ],
391
+ outputs: [
392
+ {
393
+ name: '',
394
+ type: 'bool',
395
+ },
396
+ ],
397
+ },
398
+ {
399
+ stateMutability: 'nonpayable',
400
+ type: 'function',
401
+ name: 'transferFrom',
402
+ inputs: [
403
+ {
404
+ name: '_sender',
405
+ type: 'address',
406
+ },
407
+ {
408
+ name: '_recipient',
409
+ type: 'address',
410
+ },
411
+ {
412
+ name: '_amount',
413
+ type: 'uint256',
414
+ },
415
+ ],
416
+ outputs: [
417
+ {
418
+ name: '',
419
+ type: 'bool',
420
+ },
421
+ ],
422
+ },
423
+ {
424
+ stateMutability: 'nonpayable',
425
+ type: 'function',
426
+ name: 'approve',
427
+ inputs: [
428
+ {
429
+ name: '_spender',
430
+ type: 'address',
431
+ },
432
+ {
433
+ name: '_amount',
434
+ type: 'uint256',
435
+ },
436
+ ],
437
+ outputs: [
438
+ {
439
+ name: '',
440
+ type: 'bool',
441
+ },
442
+ ],
443
+ },
444
+ {
445
+ stateMutability: 'nonpayable',
446
+ type: 'function',
447
+ name: 'increaseAllowance',
448
+ inputs: [
449
+ {
450
+ name: '_spender',
451
+ type: 'address',
452
+ },
453
+ {
454
+ name: '_amount',
455
+ type: 'uint256',
456
+ },
457
+ ],
458
+ outputs: [
459
+ {
460
+ name: '',
461
+ type: 'bool',
462
+ },
463
+ ],
464
+ },
465
+ {
466
+ stateMutability: 'nonpayable',
467
+ type: 'function',
468
+ name: 'decreaseAllowance',
469
+ inputs: [
470
+ {
471
+ name: '_spender',
472
+ type: 'address',
473
+ },
474
+ {
475
+ name: '_amount',
476
+ type: 'uint256',
477
+ },
478
+ ],
479
+ outputs: [
480
+ {
481
+ name: '',
482
+ type: 'bool',
483
+ },
484
+ ],
485
+ },
486
+ {
487
+ stateMutability: 'nonpayable',
488
+ type: 'function',
489
+ name: 'burn',
490
+ inputs: [
491
+ {
492
+ name: '_amount',
493
+ type: 'uint256',
494
+ },
495
+ ],
496
+ outputs: [
497
+ {
498
+ name: '',
499
+ type: 'bool',
500
+ },
501
+ ],
502
+ },
503
+ {
504
+ stateMutability: 'view',
505
+ type: 'function',
506
+ name: 'DOMAIN_SEPARATOR',
507
+ inputs: [],
508
+ outputs: [
509
+ {
510
+ name: '',
511
+ type: 'bytes32',
512
+ },
513
+ ],
514
+ },
515
+ {
516
+ stateMutability: 'nonpayable',
517
+ type: 'function',
518
+ name: 'permit',
519
+ inputs: [
520
+ {
521
+ name: '_owner',
522
+ type: 'address',
523
+ },
524
+ {
525
+ name: '_spender',
526
+ type: 'address',
527
+ },
528
+ {
529
+ name: '_value',
530
+ type: 'uint256',
531
+ },
532
+ {
533
+ name: '_deadline',
534
+ type: 'uint256',
535
+ },
536
+ {
537
+ name: '_signature',
538
+ type: 'bytes',
539
+ },
540
+ ],
541
+ outputs: [
542
+ {
543
+ name: '',
544
+ type: 'bool',
545
+ },
546
+ ],
547
+ },
548
+ {
549
+ stateMutability: 'nonpayable',
550
+ type: 'function',
551
+ name: 'setBlacklist',
552
+ inputs: [
553
+ {
554
+ name: '_addr',
555
+ type: 'address',
556
+ },
557
+ {
558
+ name: '_shouldBlacklist',
559
+ type: 'bool',
560
+ },
561
+ ],
562
+ outputs: [
563
+ {
564
+ name: '',
565
+ type: 'bool',
566
+ },
567
+ ],
568
+ },
569
+ {
570
+ stateMutability: 'nonpayable',
571
+ type: 'function',
572
+ name: 'burnBlacklistTokens',
573
+ inputs: [
574
+ {
575
+ name: '_addr',
576
+ type: 'address',
577
+ },
578
+ ],
579
+ outputs: [
580
+ {
581
+ name: '',
582
+ type: 'bool',
583
+ },
584
+ ],
585
+ },
586
+ {
587
+ stateMutability: 'nonpayable',
588
+ type: 'function',
589
+ name: 'burnBlacklistTokens',
590
+ inputs: [
591
+ {
592
+ name: '_addr',
593
+ type: 'address',
594
+ },
595
+ {
596
+ name: '_amount',
597
+ type: 'uint256',
598
+ },
599
+ ],
600
+ outputs: [
601
+ {
602
+ name: '',
603
+ type: 'bool',
604
+ },
605
+ ],
606
+ },
607
+ {
608
+ stateMutability: 'nonpayable',
609
+ type: 'function',
610
+ name: 'pause',
611
+ inputs: [
612
+ {
613
+ name: '_shouldPause',
614
+ type: 'bool',
615
+ },
616
+ ],
617
+ outputs: [],
618
+ },
619
+ {
620
+ stateMutability: 'view',
621
+ type: 'function',
622
+ name: 'undyHq',
623
+ inputs: [],
624
+ outputs: [
625
+ {
626
+ name: '',
627
+ type: 'address',
628
+ },
629
+ ],
630
+ },
631
+ {
632
+ stateMutability: 'view',
633
+ type: 'function',
634
+ name: 'blacklisted',
635
+ inputs: [
636
+ {
637
+ name: 'arg0',
638
+ type: 'address',
639
+ },
640
+ ],
641
+ outputs: [
642
+ {
643
+ name: '',
644
+ type: 'bool',
645
+ },
646
+ ],
647
+ },
648
+ {
649
+ stateMutability: 'view',
650
+ type: 'function',
651
+ name: 'isPaused',
652
+ inputs: [],
653
+ outputs: [
654
+ {
655
+ name: '',
656
+ type: 'bool',
657
+ },
658
+ ],
659
+ },
660
+ {
661
+ stateMutability: 'view',
662
+ type: 'function',
663
+ name: 'balanceOf',
664
+ inputs: [
665
+ {
666
+ name: 'arg0',
667
+ type: 'address',
668
+ },
669
+ ],
670
+ outputs: [
671
+ {
672
+ name: '',
673
+ type: 'uint256',
674
+ },
675
+ ],
676
+ },
677
+ {
678
+ stateMutability: 'view',
679
+ type: 'function',
680
+ name: 'allowance',
681
+ inputs: [
682
+ {
683
+ name: 'arg0',
684
+ type: 'address',
685
+ },
686
+ {
687
+ name: 'arg1',
688
+ type: 'address',
689
+ },
690
+ ],
691
+ outputs: [
692
+ {
693
+ name: '',
694
+ type: 'uint256',
695
+ },
696
+ ],
697
+ },
698
+ {
699
+ stateMutability: 'view',
700
+ type: 'function',
701
+ name: 'totalSupply',
702
+ inputs: [],
703
+ outputs: [
704
+ {
705
+ name: '',
706
+ type: 'uint256',
707
+ },
708
+ ],
709
+ },
710
+ {
711
+ stateMutability: 'view',
712
+ type: 'function',
713
+ name: 'TOKEN_NAME',
714
+ inputs: [],
715
+ outputs: [
716
+ {
717
+ name: '',
718
+ type: 'string',
719
+ },
720
+ ],
721
+ },
722
+ {
723
+ stateMutability: 'view',
724
+ type: 'function',
725
+ name: 'TOKEN_SYMBOL',
726
+ inputs: [],
727
+ outputs: [
728
+ {
729
+ name: '',
730
+ type: 'string',
731
+ },
732
+ ],
733
+ },
734
+ {
735
+ stateMutability: 'view',
736
+ type: 'function',
737
+ name: 'TOKEN_DECIMALS',
738
+ inputs: [],
739
+ outputs: [
740
+ {
741
+ name: '',
742
+ type: 'uint8',
743
+ },
744
+ ],
745
+ },
746
+ {
747
+ stateMutability: 'view',
748
+ type: 'function',
749
+ name: 'VERSION',
750
+ inputs: [],
751
+ outputs: [
752
+ {
753
+ name: '',
754
+ type: 'string',
755
+ },
756
+ ],
757
+ },
758
+ {
759
+ stateMutability: 'view',
760
+ type: 'function',
761
+ name: 'nonces',
762
+ inputs: [
763
+ {
764
+ name: 'arg0',
765
+ type: 'address',
766
+ },
767
+ ],
768
+ outputs: [
769
+ {
770
+ name: '',
771
+ type: 'uint256',
772
+ },
773
+ ],
774
+ },
775
+ {
776
+ stateMutability: 'nonpayable',
777
+ type: 'function',
778
+ name: 'depositForYield',
779
+ inputs: [
780
+ {
781
+ name: '_legoId',
782
+ type: 'uint256',
783
+ },
784
+ {
785
+ name: '_asset',
786
+ type: 'address',
787
+ },
788
+ ],
789
+ outputs: [
790
+ {
791
+ name: '',
792
+ type: 'uint256',
793
+ },
794
+ {
795
+ name: '',
796
+ type: 'address',
797
+ },
798
+ {
799
+ name: '',
800
+ type: 'uint256',
801
+ },
802
+ {
803
+ name: '',
804
+ type: 'uint256',
805
+ },
806
+ ],
807
+ },
808
+ {
809
+ stateMutability: 'nonpayable',
810
+ type: 'function',
811
+ name: 'depositForYield',
812
+ inputs: [
813
+ {
814
+ name: '_legoId',
815
+ type: 'uint256',
816
+ },
817
+ {
818
+ name: '_asset',
819
+ type: 'address',
820
+ },
821
+ {
822
+ name: '_vaultAddr',
823
+ type: 'address',
824
+ },
825
+ ],
826
+ outputs: [
827
+ {
828
+ name: '',
829
+ type: 'uint256',
830
+ },
831
+ {
832
+ name: '',
833
+ type: 'address',
834
+ },
835
+ {
836
+ name: '',
837
+ type: 'uint256',
838
+ },
839
+ {
840
+ name: '',
841
+ type: 'uint256',
842
+ },
843
+ ],
844
+ },
845
+ {
846
+ stateMutability: 'nonpayable',
847
+ type: 'function',
848
+ name: 'depositForYield',
849
+ inputs: [
850
+ {
851
+ name: '_legoId',
852
+ type: 'uint256',
853
+ },
854
+ {
855
+ name: '_asset',
856
+ type: 'address',
857
+ },
858
+ {
859
+ name: '_vaultAddr',
860
+ type: 'address',
861
+ },
862
+ {
863
+ name: '_amount',
864
+ type: 'uint256',
865
+ },
866
+ ],
867
+ outputs: [
868
+ {
869
+ name: '',
870
+ type: 'uint256',
871
+ },
872
+ {
873
+ name: '',
874
+ type: 'address',
875
+ },
876
+ {
877
+ name: '',
878
+ type: 'uint256',
879
+ },
880
+ {
881
+ name: '',
882
+ type: 'uint256',
883
+ },
884
+ ],
885
+ },
886
+ {
887
+ stateMutability: 'nonpayable',
888
+ type: 'function',
889
+ name: 'depositForYield',
890
+ inputs: [
891
+ {
892
+ name: '_legoId',
893
+ type: 'uint256',
894
+ },
895
+ {
896
+ name: '_asset',
897
+ type: 'address',
898
+ },
899
+ {
900
+ name: '_vaultAddr',
901
+ type: 'address',
902
+ },
903
+ {
904
+ name: '_amount',
905
+ type: 'uint256',
906
+ },
907
+ {
908
+ name: '_extraData',
909
+ type: 'bytes32',
910
+ },
911
+ ],
912
+ outputs: [
913
+ {
914
+ name: '',
915
+ type: 'uint256',
916
+ },
917
+ {
918
+ name: '',
919
+ type: 'address',
920
+ },
921
+ {
922
+ name: '',
923
+ type: 'uint256',
924
+ },
925
+ {
926
+ name: '',
927
+ type: 'uint256',
928
+ },
929
+ ],
930
+ },
931
+ {
932
+ stateMutability: 'nonpayable',
933
+ type: 'function',
934
+ name: 'withdrawFromYield',
935
+ inputs: [
936
+ {
937
+ name: '_legoId',
938
+ type: 'uint256',
939
+ },
940
+ {
941
+ name: '_vaultToken',
942
+ type: 'address',
943
+ },
944
+ ],
945
+ outputs: [
946
+ {
947
+ name: '',
948
+ type: 'uint256',
949
+ },
950
+ {
951
+ name: '',
952
+ type: 'address',
953
+ },
954
+ {
955
+ name: '',
956
+ type: 'uint256',
957
+ },
958
+ {
959
+ name: '',
960
+ type: 'uint256',
961
+ },
962
+ ],
963
+ },
964
+ {
965
+ stateMutability: 'nonpayable',
966
+ type: 'function',
967
+ name: 'withdrawFromYield',
968
+ inputs: [
969
+ {
970
+ name: '_legoId',
971
+ type: 'uint256',
972
+ },
973
+ {
974
+ name: '_vaultToken',
975
+ type: 'address',
976
+ },
977
+ {
978
+ name: '_amount',
979
+ type: 'uint256',
980
+ },
981
+ ],
982
+ outputs: [
983
+ {
984
+ name: '',
985
+ type: 'uint256',
986
+ },
987
+ {
988
+ name: '',
989
+ type: 'address',
990
+ },
991
+ {
992
+ name: '',
993
+ type: 'uint256',
994
+ },
995
+ {
996
+ name: '',
997
+ type: 'uint256',
998
+ },
999
+ ],
1000
+ },
1001
+ {
1002
+ stateMutability: 'nonpayable',
1003
+ type: 'function',
1004
+ name: 'withdrawFromYield',
1005
+ inputs: [
1006
+ {
1007
+ name: '_legoId',
1008
+ type: 'uint256',
1009
+ },
1010
+ {
1011
+ name: '_vaultToken',
1012
+ type: 'address',
1013
+ },
1014
+ {
1015
+ name: '_amount',
1016
+ type: 'uint256',
1017
+ },
1018
+ {
1019
+ name: '_extraData',
1020
+ type: 'bytes32',
1021
+ },
1022
+ ],
1023
+ outputs: [
1024
+ {
1025
+ name: '',
1026
+ type: 'uint256',
1027
+ },
1028
+ {
1029
+ name: '',
1030
+ type: 'address',
1031
+ },
1032
+ {
1033
+ name: '',
1034
+ type: 'uint256',
1035
+ },
1036
+ {
1037
+ name: '',
1038
+ type: 'uint256',
1039
+ },
1040
+ ],
1041
+ },
1042
+ {
1043
+ stateMutability: 'nonpayable',
1044
+ type: 'function',
1045
+ name: 'withdrawFromYield',
1046
+ inputs: [
1047
+ {
1048
+ name: '_legoId',
1049
+ type: 'uint256',
1050
+ },
1051
+ {
1052
+ name: '_vaultToken',
1053
+ type: 'address',
1054
+ },
1055
+ {
1056
+ name: '_amount',
1057
+ type: 'uint256',
1058
+ },
1059
+ {
1060
+ name: '_extraData',
1061
+ type: 'bytes32',
1062
+ },
1063
+ {
1064
+ name: '_isSpecialTx',
1065
+ type: 'bool',
1066
+ },
1067
+ ],
1068
+ outputs: [
1069
+ {
1070
+ name: '',
1071
+ type: 'uint256',
1072
+ },
1073
+ {
1074
+ name: '',
1075
+ type: 'address',
1076
+ },
1077
+ {
1078
+ name: '',
1079
+ type: 'uint256',
1080
+ },
1081
+ {
1082
+ name: '',
1083
+ type: 'uint256',
1084
+ },
1085
+ ],
1086
+ },
1087
+ {
1088
+ stateMutability: 'nonpayable',
1089
+ type: 'function',
1090
+ name: 'swapTokens',
1091
+ inputs: [
1092
+ {
1093
+ name: '_instructions',
1094
+ type: 'tuple[]',
1095
+ components: [
1096
+ {
1097
+ name: 'legoId',
1098
+ type: 'uint256',
1099
+ },
1100
+ {
1101
+ name: 'amountIn',
1102
+ type: 'uint256',
1103
+ },
1104
+ {
1105
+ name: 'minAmountOut',
1106
+ type: 'uint256',
1107
+ },
1108
+ {
1109
+ name: 'tokenPath',
1110
+ type: 'address[]',
1111
+ },
1112
+ {
1113
+ name: 'poolPath',
1114
+ type: 'address[]',
1115
+ },
1116
+ ],
1117
+ },
1118
+ ],
1119
+ outputs: [
1120
+ {
1121
+ name: '',
1122
+ type: 'address',
1123
+ },
1124
+ {
1125
+ name: '',
1126
+ type: 'uint256',
1127
+ },
1128
+ {
1129
+ name: '',
1130
+ type: 'address',
1131
+ },
1132
+ {
1133
+ name: '',
1134
+ type: 'uint256',
1135
+ },
1136
+ {
1137
+ name: '',
1138
+ type: 'uint256',
1139
+ },
1140
+ ],
1141
+ },
1142
+ {
1143
+ stateMutability: 'nonpayable',
1144
+ type: 'function',
1145
+ name: 'claimIncentives',
1146
+ inputs: [
1147
+ {
1148
+ name: '_legoId',
1149
+ type: 'uint256',
1150
+ },
1151
+ ],
1152
+ outputs: [
1153
+ {
1154
+ name: '',
1155
+ type: 'uint256',
1156
+ },
1157
+ {
1158
+ name: '',
1159
+ type: 'uint256',
1160
+ },
1161
+ ],
1162
+ },
1163
+ {
1164
+ stateMutability: 'nonpayable',
1165
+ type: 'function',
1166
+ name: 'claimIncentives',
1167
+ inputs: [
1168
+ {
1169
+ name: '_legoId',
1170
+ type: 'uint256',
1171
+ },
1172
+ {
1173
+ name: '_rewardToken',
1174
+ type: 'address',
1175
+ },
1176
+ ],
1177
+ outputs: [
1178
+ {
1179
+ name: '',
1180
+ type: 'uint256',
1181
+ },
1182
+ {
1183
+ name: '',
1184
+ type: 'uint256',
1185
+ },
1186
+ ],
1187
+ },
1188
+ {
1189
+ stateMutability: 'nonpayable',
1190
+ type: 'function',
1191
+ name: 'claimIncentives',
1192
+ inputs: [
1193
+ {
1194
+ name: '_legoId',
1195
+ type: 'uint256',
1196
+ },
1197
+ {
1198
+ name: '_rewardToken',
1199
+ type: 'address',
1200
+ },
1201
+ {
1202
+ name: '_rewardAmount',
1203
+ type: 'uint256',
1204
+ },
1205
+ ],
1206
+ outputs: [
1207
+ {
1208
+ name: '',
1209
+ type: 'uint256',
1210
+ },
1211
+ {
1212
+ name: '',
1213
+ type: 'uint256',
1214
+ },
1215
+ ],
1216
+ },
1217
+ {
1218
+ stateMutability: 'nonpayable',
1219
+ type: 'function',
1220
+ name: 'claimIncentives',
1221
+ inputs: [
1222
+ {
1223
+ name: '_legoId',
1224
+ type: 'uint256',
1225
+ },
1226
+ {
1227
+ name: '_rewardToken',
1228
+ type: 'address',
1229
+ },
1230
+ {
1231
+ name: '_rewardAmount',
1232
+ type: 'uint256',
1233
+ },
1234
+ {
1235
+ name: '_proofs',
1236
+ type: 'bytes32[]',
1237
+ },
1238
+ ],
1239
+ outputs: [
1240
+ {
1241
+ name: '',
1242
+ type: 'uint256',
1243
+ },
1244
+ {
1245
+ name: '',
1246
+ type: 'uint256',
1247
+ },
1248
+ ],
1249
+ },
1250
+ {
1251
+ stateMutability: 'nonpayable',
1252
+ type: 'function',
1253
+ name: 'claimPerformanceFees',
1254
+ inputs: [],
1255
+ outputs: [
1256
+ {
1257
+ name: '',
1258
+ type: 'uint256',
1259
+ },
1260
+ ],
1261
+ },
1262
+ {
1263
+ stateMutability: 'view',
1264
+ type: 'function',
1265
+ name: 'getClaimablePerformanceFees',
1266
+ inputs: [],
1267
+ outputs: [
1268
+ {
1269
+ name: '',
1270
+ type: 'uint256',
1271
+ },
1272
+ ],
1273
+ },
1274
+ {
1275
+ stateMutability: 'nonpayable',
1276
+ type: 'function',
1277
+ name: 'updateYieldPosition',
1278
+ inputs: [
1279
+ {
1280
+ name: '_vaultToken',
1281
+ type: 'address',
1282
+ },
1283
+ ],
1284
+ outputs: [],
1285
+ },
1286
+ {
1287
+ stateMutability: 'nonpayable',
1288
+ type: 'function',
1289
+ name: 'addManager',
1290
+ inputs: [
1291
+ {
1292
+ name: '_manager',
1293
+ type: 'address',
1294
+ },
1295
+ ],
1296
+ outputs: [],
1297
+ },
1298
+ {
1299
+ stateMutability: 'nonpayable',
1300
+ type: 'function',
1301
+ name: 'removeManager',
1302
+ inputs: [
1303
+ {
1304
+ name: '_manager',
1305
+ type: 'address',
1306
+ },
1307
+ ],
1308
+ outputs: [],
1309
+ },
1310
+ {
1311
+ stateMutability: 'view',
1312
+ type: 'function',
1313
+ name: 'lastUnderlyingBal',
1314
+ inputs: [],
1315
+ outputs: [
1316
+ {
1317
+ name: '',
1318
+ type: 'uint256',
1319
+ },
1320
+ ],
1321
+ },
1322
+ {
1323
+ stateMutability: 'view',
1324
+ type: 'function',
1325
+ name: 'pendingYieldRealized',
1326
+ inputs: [],
1327
+ outputs: [
1328
+ {
1329
+ name: '',
1330
+ type: 'uint256',
1331
+ },
1332
+ ],
1333
+ },
1334
+ {
1335
+ stateMutability: 'view',
1336
+ type: 'function',
1337
+ name: 'vaultToLegoId',
1338
+ inputs: [
1339
+ {
1340
+ name: 'arg0',
1341
+ type: 'address',
1342
+ },
1343
+ ],
1344
+ outputs: [
1345
+ {
1346
+ name: '',
1347
+ type: 'uint256',
1348
+ },
1349
+ ],
1350
+ },
1351
+ {
1352
+ stateMutability: 'view',
1353
+ type: 'function',
1354
+ name: 'assets',
1355
+ inputs: [
1356
+ {
1357
+ name: 'arg0',
1358
+ type: 'uint256',
1359
+ },
1360
+ ],
1361
+ outputs: [
1362
+ {
1363
+ name: '',
1364
+ type: 'address',
1365
+ },
1366
+ ],
1367
+ },
1368
+ {
1369
+ stateMutability: 'view',
1370
+ type: 'function',
1371
+ name: 'indexOfAsset',
1372
+ inputs: [
1373
+ {
1374
+ name: 'arg0',
1375
+ type: 'address',
1376
+ },
1377
+ ],
1378
+ outputs: [
1379
+ {
1380
+ name: '',
1381
+ type: 'uint256',
1382
+ },
1383
+ ],
1384
+ },
1385
+ {
1386
+ stateMutability: 'view',
1387
+ type: 'function',
1388
+ name: 'numAssets',
1389
+ inputs: [],
1390
+ outputs: [
1391
+ {
1392
+ name: '',
1393
+ type: 'uint256',
1394
+ },
1395
+ ],
1396
+ },
1397
+ {
1398
+ stateMutability: 'view',
1399
+ type: 'function',
1400
+ name: 'managers',
1401
+ inputs: [
1402
+ {
1403
+ name: 'arg0',
1404
+ type: 'uint256',
1405
+ },
1406
+ ],
1407
+ outputs: [
1408
+ {
1409
+ name: '',
1410
+ type: 'address',
1411
+ },
1412
+ ],
1413
+ },
1414
+ {
1415
+ stateMutability: 'view',
1416
+ type: 'function',
1417
+ name: 'indexOfManager',
1418
+ inputs: [
1419
+ {
1420
+ name: 'arg0',
1421
+ type: 'address',
1422
+ },
1423
+ ],
1424
+ outputs: [
1425
+ {
1426
+ name: '',
1427
+ type: 'uint256',
1428
+ },
1429
+ ],
1430
+ },
1431
+ {
1432
+ stateMutability: 'view',
1433
+ type: 'function',
1434
+ name: 'numManagers',
1435
+ inputs: [],
1436
+ outputs: [
1437
+ {
1438
+ name: '',
1439
+ type: 'uint256',
1440
+ },
1441
+ ],
1442
+ },
1443
+ {
1444
+ stateMutability: 'view',
1445
+ type: 'function',
1446
+ name: 'asset',
1447
+ inputs: [],
1448
+ outputs: [
1449
+ {
1450
+ name: '',
1451
+ type: 'address',
1452
+ },
1453
+ ],
1454
+ },
1455
+ {
1456
+ stateMutability: 'view',
1457
+ type: 'function',
1458
+ name: 'totalAssets',
1459
+ inputs: [],
1460
+ outputs: [
1461
+ {
1462
+ name: '',
1463
+ type: 'uint256',
1464
+ },
1465
+ ],
1466
+ },
1467
+ {
1468
+ stateMutability: 'view',
1469
+ type: 'function',
1470
+ name: 'getTotalAssets',
1471
+ inputs: [
1472
+ {
1473
+ name: '_shouldGetMax',
1474
+ type: 'bool',
1475
+ },
1476
+ ],
1477
+ outputs: [
1478
+ {
1479
+ name: '',
1480
+ type: 'uint256',
1481
+ },
1482
+ ],
1483
+ },
1484
+ {
1485
+ stateMutability: 'view',
1486
+ type: 'function',
1487
+ name: 'maxDeposit',
1488
+ inputs: [
1489
+ {
1490
+ name: '_receiver',
1491
+ type: 'address',
1492
+ },
1493
+ ],
1494
+ outputs: [
1495
+ {
1496
+ name: '',
1497
+ type: 'uint256',
1498
+ },
1499
+ ],
1500
+ },
1501
+ {
1502
+ stateMutability: 'view',
1503
+ type: 'function',
1504
+ name: 'previewDeposit',
1505
+ inputs: [
1506
+ {
1507
+ name: '_assets',
1508
+ type: 'uint256',
1509
+ },
1510
+ ],
1511
+ outputs: [
1512
+ {
1513
+ name: '',
1514
+ type: 'uint256',
1515
+ },
1516
+ ],
1517
+ },
1518
+ {
1519
+ stateMutability: 'nonpayable',
1520
+ type: 'function',
1521
+ name: 'deposit',
1522
+ inputs: [
1523
+ {
1524
+ name: '_assets',
1525
+ type: 'uint256',
1526
+ },
1527
+ ],
1528
+ outputs: [
1529
+ {
1530
+ name: '',
1531
+ type: 'uint256',
1532
+ },
1533
+ ],
1534
+ },
1535
+ {
1536
+ stateMutability: 'nonpayable',
1537
+ type: 'function',
1538
+ name: 'deposit',
1539
+ inputs: [
1540
+ {
1541
+ name: '_assets',
1542
+ type: 'uint256',
1543
+ },
1544
+ {
1545
+ name: '_receiver',
1546
+ type: 'address',
1547
+ },
1548
+ ],
1549
+ outputs: [
1550
+ {
1551
+ name: '',
1552
+ type: 'uint256',
1553
+ },
1554
+ ],
1555
+ },
1556
+ {
1557
+ stateMutability: 'nonpayable',
1558
+ type: 'function',
1559
+ name: 'depositWithMinAmountOut',
1560
+ inputs: [
1561
+ {
1562
+ name: '_assets',
1563
+ type: 'uint256',
1564
+ },
1565
+ {
1566
+ name: '_minAmountOut',
1567
+ type: 'uint256',
1568
+ },
1569
+ ],
1570
+ outputs: [
1571
+ {
1572
+ name: '',
1573
+ type: 'uint256',
1574
+ },
1575
+ ],
1576
+ },
1577
+ {
1578
+ stateMutability: 'nonpayable',
1579
+ type: 'function',
1580
+ name: 'depositWithMinAmountOut',
1581
+ inputs: [
1582
+ {
1583
+ name: '_assets',
1584
+ type: 'uint256',
1585
+ },
1586
+ {
1587
+ name: '_minAmountOut',
1588
+ type: 'uint256',
1589
+ },
1590
+ {
1591
+ name: '_receiver',
1592
+ type: 'address',
1593
+ },
1594
+ ],
1595
+ outputs: [
1596
+ {
1597
+ name: '',
1598
+ type: 'uint256',
1599
+ },
1600
+ ],
1601
+ },
1602
+ {
1603
+ stateMutability: 'view',
1604
+ type: 'function',
1605
+ name: 'maxMint',
1606
+ inputs: [
1607
+ {
1608
+ name: '_receiver',
1609
+ type: 'address',
1610
+ },
1611
+ ],
1612
+ outputs: [
1613
+ {
1614
+ name: '',
1615
+ type: 'uint256',
1616
+ },
1617
+ ],
1618
+ },
1619
+ {
1620
+ stateMutability: 'view',
1621
+ type: 'function',
1622
+ name: 'previewMint',
1623
+ inputs: [
1624
+ {
1625
+ name: '_shares',
1626
+ type: 'uint256',
1627
+ },
1628
+ ],
1629
+ outputs: [
1630
+ {
1631
+ name: '',
1632
+ type: 'uint256',
1633
+ },
1634
+ ],
1635
+ },
1636
+ {
1637
+ stateMutability: 'nonpayable',
1638
+ type: 'function',
1639
+ name: 'mint',
1640
+ inputs: [
1641
+ {
1642
+ name: '_shares',
1643
+ type: 'uint256',
1644
+ },
1645
+ ],
1646
+ outputs: [
1647
+ {
1648
+ name: '',
1649
+ type: 'uint256',
1650
+ },
1651
+ ],
1652
+ },
1653
+ {
1654
+ stateMutability: 'nonpayable',
1655
+ type: 'function',
1656
+ name: 'mint',
1657
+ inputs: [
1658
+ {
1659
+ name: '_shares',
1660
+ type: 'uint256',
1661
+ },
1662
+ {
1663
+ name: '_receiver',
1664
+ type: 'address',
1665
+ },
1666
+ ],
1667
+ outputs: [
1668
+ {
1669
+ name: '',
1670
+ type: 'uint256',
1671
+ },
1672
+ ],
1673
+ },
1674
+ {
1675
+ stateMutability: 'view',
1676
+ type: 'function',
1677
+ name: 'maxWithdraw',
1678
+ inputs: [
1679
+ {
1680
+ name: '_owner',
1681
+ type: 'address',
1682
+ },
1683
+ ],
1684
+ outputs: [
1685
+ {
1686
+ name: '',
1687
+ type: 'uint256',
1688
+ },
1689
+ ],
1690
+ },
1691
+ {
1692
+ stateMutability: 'view',
1693
+ type: 'function',
1694
+ name: 'previewWithdraw',
1695
+ inputs: [
1696
+ {
1697
+ name: '_assets',
1698
+ type: 'uint256',
1699
+ },
1700
+ ],
1701
+ outputs: [
1702
+ {
1703
+ name: '',
1704
+ type: 'uint256',
1705
+ },
1706
+ ],
1707
+ },
1708
+ {
1709
+ stateMutability: 'nonpayable',
1710
+ type: 'function',
1711
+ name: 'withdraw',
1712
+ inputs: [
1713
+ {
1714
+ name: '_assets',
1715
+ type: 'uint256',
1716
+ },
1717
+ ],
1718
+ outputs: [
1719
+ {
1720
+ name: '',
1721
+ type: 'uint256',
1722
+ },
1723
+ ],
1724
+ },
1725
+ {
1726
+ stateMutability: 'nonpayable',
1727
+ type: 'function',
1728
+ name: 'withdraw',
1729
+ inputs: [
1730
+ {
1731
+ name: '_assets',
1732
+ type: 'uint256',
1733
+ },
1734
+ {
1735
+ name: '_receiver',
1736
+ type: 'address',
1737
+ },
1738
+ ],
1739
+ outputs: [
1740
+ {
1741
+ name: '',
1742
+ type: 'uint256',
1743
+ },
1744
+ ],
1745
+ },
1746
+ {
1747
+ stateMutability: 'nonpayable',
1748
+ type: 'function',
1749
+ name: 'withdraw',
1750
+ inputs: [
1751
+ {
1752
+ name: '_assets',
1753
+ type: 'uint256',
1754
+ },
1755
+ {
1756
+ name: '_receiver',
1757
+ type: 'address',
1758
+ },
1759
+ {
1760
+ name: '_owner',
1761
+ type: 'address',
1762
+ },
1763
+ ],
1764
+ outputs: [
1765
+ {
1766
+ name: '',
1767
+ type: 'uint256',
1768
+ },
1769
+ ],
1770
+ },
1771
+ {
1772
+ stateMutability: 'view',
1773
+ type: 'function',
1774
+ name: 'maxRedeem',
1775
+ inputs: [
1776
+ {
1777
+ name: '_owner',
1778
+ type: 'address',
1779
+ },
1780
+ ],
1781
+ outputs: [
1782
+ {
1783
+ name: '',
1784
+ type: 'uint256',
1785
+ },
1786
+ ],
1787
+ },
1788
+ {
1789
+ stateMutability: 'view',
1790
+ type: 'function',
1791
+ name: 'previewRedeem',
1792
+ inputs: [
1793
+ {
1794
+ name: '_shares',
1795
+ type: 'uint256',
1796
+ },
1797
+ ],
1798
+ outputs: [
1799
+ {
1800
+ name: '',
1801
+ type: 'uint256',
1802
+ },
1803
+ ],
1804
+ },
1805
+ {
1806
+ stateMutability: 'nonpayable',
1807
+ type: 'function',
1808
+ name: 'redeem',
1809
+ inputs: [
1810
+ {
1811
+ name: '_shares',
1812
+ type: 'uint256',
1813
+ },
1814
+ ],
1815
+ outputs: [
1816
+ {
1817
+ name: '',
1818
+ type: 'uint256',
1819
+ },
1820
+ ],
1821
+ },
1822
+ {
1823
+ stateMutability: 'nonpayable',
1824
+ type: 'function',
1825
+ name: 'redeem',
1826
+ inputs: [
1827
+ {
1828
+ name: '_shares',
1829
+ type: 'uint256',
1830
+ },
1831
+ {
1832
+ name: '_receiver',
1833
+ type: 'address',
1834
+ },
1835
+ ],
1836
+ outputs: [
1837
+ {
1838
+ name: '',
1839
+ type: 'uint256',
1840
+ },
1841
+ ],
1842
+ },
1843
+ {
1844
+ stateMutability: 'nonpayable',
1845
+ type: 'function',
1846
+ name: 'redeem',
1847
+ inputs: [
1848
+ {
1849
+ name: '_shares',
1850
+ type: 'uint256',
1851
+ },
1852
+ {
1853
+ name: '_receiver',
1854
+ type: 'address',
1855
+ },
1856
+ {
1857
+ name: '_owner',
1858
+ type: 'address',
1859
+ },
1860
+ ],
1861
+ outputs: [
1862
+ {
1863
+ name: '',
1864
+ type: 'uint256',
1865
+ },
1866
+ ],
1867
+ },
1868
+ {
1869
+ stateMutability: 'nonpayable',
1870
+ type: 'function',
1871
+ name: 'redeemWithMinAmountOut',
1872
+ inputs: [
1873
+ {
1874
+ name: '_shares',
1875
+ type: 'uint256',
1876
+ },
1877
+ {
1878
+ name: '_minAmountOut',
1879
+ type: 'uint256',
1880
+ },
1881
+ ],
1882
+ outputs: [
1883
+ {
1884
+ name: '',
1885
+ type: 'uint256',
1886
+ },
1887
+ ],
1888
+ },
1889
+ {
1890
+ stateMutability: 'nonpayable',
1891
+ type: 'function',
1892
+ name: 'redeemWithMinAmountOut',
1893
+ inputs: [
1894
+ {
1895
+ name: '_shares',
1896
+ type: 'uint256',
1897
+ },
1898
+ {
1899
+ name: '_minAmountOut',
1900
+ type: 'uint256',
1901
+ },
1902
+ {
1903
+ name: '_receiver',
1904
+ type: 'address',
1905
+ },
1906
+ ],
1907
+ outputs: [
1908
+ {
1909
+ name: '',
1910
+ type: 'uint256',
1911
+ },
1912
+ ],
1913
+ },
1914
+ {
1915
+ stateMutability: 'nonpayable',
1916
+ type: 'function',
1917
+ name: 'redeemWithMinAmountOut',
1918
+ inputs: [
1919
+ {
1920
+ name: '_shares',
1921
+ type: 'uint256',
1922
+ },
1923
+ {
1924
+ name: '_minAmountOut',
1925
+ type: 'uint256',
1926
+ },
1927
+ {
1928
+ name: '_receiver',
1929
+ type: 'address',
1930
+ },
1931
+ {
1932
+ name: '_owner',
1933
+ type: 'address',
1934
+ },
1935
+ ],
1936
+ outputs: [
1937
+ {
1938
+ name: '',
1939
+ type: 'uint256',
1940
+ },
1941
+ ],
1942
+ },
1943
+ {
1944
+ stateMutability: 'view',
1945
+ type: 'function',
1946
+ name: 'convertToShares',
1947
+ inputs: [
1948
+ {
1949
+ name: '_assets',
1950
+ type: 'uint256',
1951
+ },
1952
+ ],
1953
+ outputs: [
1954
+ {
1955
+ name: '',
1956
+ type: 'uint256',
1957
+ },
1958
+ ],
1959
+ },
1960
+ {
1961
+ stateMutability: 'view',
1962
+ type: 'function',
1963
+ name: 'convertToSharesSafe',
1964
+ inputs: [
1965
+ {
1966
+ name: '_assets',
1967
+ type: 'uint256',
1968
+ },
1969
+ ],
1970
+ outputs: [
1971
+ {
1972
+ name: '',
1973
+ type: 'uint256',
1974
+ },
1975
+ ],
1976
+ },
1977
+ {
1978
+ stateMutability: 'view',
1979
+ type: 'function',
1980
+ name: 'convertToAssets',
1981
+ inputs: [
1982
+ {
1983
+ name: '_shares',
1984
+ type: 'uint256',
1985
+ },
1986
+ ],
1987
+ outputs: [
1988
+ {
1989
+ name: '',
1990
+ type: 'uint256',
1991
+ },
1992
+ ],
1993
+ },
1994
+ {
1995
+ stateMutability: 'view',
1996
+ type: 'function',
1997
+ name: 'convertToAssetsSafe',
1998
+ inputs: [
1999
+ {
2000
+ name: '_shares',
2001
+ type: 'uint256',
2002
+ },
2003
+ ],
2004
+ outputs: [
2005
+ {
2006
+ name: '',
2007
+ type: 'uint256',
2008
+ },
2009
+ ],
2010
+ },
2011
+ {
2012
+ stateMutability: 'nonpayable',
2013
+ type: 'function',
2014
+ name: 'sweepLeftovers',
2015
+ inputs: [],
2016
+ outputs: [
2017
+ {
2018
+ name: '',
2019
+ type: 'uint256',
2020
+ },
2021
+ ],
2022
+ },
2023
+ {
2024
+ stateMutability: 'nonpayable',
2025
+ type: 'constructor',
2026
+ inputs: [
2027
+ {
2028
+ name: '_asset',
2029
+ type: 'address',
2030
+ },
2031
+ {
2032
+ name: '_tokenName',
2033
+ type: 'string',
2034
+ },
2035
+ {
2036
+ name: '_tokenSymbol',
2037
+ type: 'string',
2038
+ },
2039
+ {
2040
+ name: '_undyHq',
2041
+ type: 'address',
2042
+ },
2043
+ {
2044
+ name: '_minHqTimeLock',
2045
+ type: 'uint256',
2046
+ },
2047
+ {
2048
+ name: '_maxHqTimeLock',
2049
+ type: 'uint256',
2050
+ },
2051
+ {
2052
+ name: '_startingAgent',
2053
+ type: 'address',
2054
+ },
2055
+ ],
2056
+ outputs: [],
2057
+ },
2058
+ ];
2059
+ export const deployAddress = '0x26E36D3069c73d892feA8EF8140aDCDC4F7bf585';
2060
+ function getRequest(method, args, contractAddressOrOptions) {
2061
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2062
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
2063
+ const call = {
2064
+ contractName: 'UndyVirtual',
2065
+ method,
2066
+ args,
2067
+ address,
2068
+ deployAddress,
2069
+ defaultValue,
2070
+ getAbi: () => abi,
2071
+ with: (options) => {
2072
+ call.address = options.contractAddress;
2073
+ call.defaultValue = options.defaultValue;
2074
+ return call;
2075
+ },
2076
+ defaultTo: (defaultValue) => {
2077
+ call.defaultValue = defaultValue;
2078
+ return call;
2079
+ },
2080
+ at: (address) => {
2081
+ call.address = address;
2082
+ return call;
2083
+ },
2084
+ };
2085
+ return call;
2086
+ }
2087
+ export const call = {
2088
+ name: (...args) => getRequest('name', args),
2089
+ symbol: (...args) => getRequest('symbol', args),
2090
+ decimals: (...args) => getRequest('decimals', args),
2091
+ DOMAIN_SEPARATOR: (...args) => getRequest('DOMAIN_SEPARATOR', args),
2092
+ undyHq: (...args) => getRequest('undyHq', args),
2093
+ blacklisted: (...args) => getRequest('blacklisted', args),
2094
+ isPaused: (...args) => getRequest('isPaused', args),
2095
+ balanceOf: (...args) => getRequest('balanceOf', args),
2096
+ allowance: (...args) => getRequest('allowance', args),
2097
+ totalSupply: (...args) => getRequest('totalSupply', args),
2098
+ TOKEN_NAME: (...args) => getRequest('TOKEN_NAME', args),
2099
+ TOKEN_SYMBOL: (...args) => getRequest('TOKEN_SYMBOL', args),
2100
+ TOKEN_DECIMALS: (...args) => getRequest('TOKEN_DECIMALS', args),
2101
+ VERSION: (...args) => getRequest('VERSION', args),
2102
+ nonces: (...args) => getRequest('nonces', args),
2103
+ getClaimablePerformanceFees: (...args) => getRequest('getClaimablePerformanceFees', args),
2104
+ lastUnderlyingBal: (...args) => getRequest('lastUnderlyingBal', args),
2105
+ pendingYieldRealized: (...args) => getRequest('pendingYieldRealized', args),
2106
+ vaultToLegoId: (...args) => getRequest('vaultToLegoId', args),
2107
+ assets: (...args) => getRequest('assets', args),
2108
+ indexOfAsset: (...args) => getRequest('indexOfAsset', args),
2109
+ numAssets: (...args) => getRequest('numAssets', args),
2110
+ managers: (...args) => getRequest('managers', args),
2111
+ indexOfManager: (...args) => getRequest('indexOfManager', args),
2112
+ numManagers: (...args) => getRequest('numManagers', args),
2113
+ asset: (...args) => getRequest('asset', args),
2114
+ totalAssets: (...args) => getRequest('totalAssets', args),
2115
+ getTotalAssets: (...args) => getRequest('getTotalAssets', args),
2116
+ maxDeposit: (...args) => getRequest('maxDeposit', args),
2117
+ previewDeposit: (...args) => getRequest('previewDeposit', args),
2118
+ maxMint: (...args) => getRequest('maxMint', args),
2119
+ previewMint: (...args) => getRequest('previewMint', args),
2120
+ maxWithdraw: (...args) => getRequest('maxWithdraw', args),
2121
+ previewWithdraw: (...args) => getRequest('previewWithdraw', args),
2122
+ maxRedeem: (...args) => getRequest('maxRedeem', args),
2123
+ previewRedeem: (...args) => getRequest('previewRedeem', args),
2124
+ convertToShares: (...args) => getRequest('convertToShares', args),
2125
+ convertToSharesSafe: (...args) => getRequest('convertToSharesSafe', args),
2126
+ convertToAssets: (...args) => getRequest('convertToAssets', args),
2127
+ convertToAssetsSafe: (...args) => getRequest('convertToAssetsSafe', args),
2128
+ };
2129
+ function getMutation(functionName) {
2130
+ return {
2131
+ contractName: 'UndyVirtual',
2132
+ functionName,
2133
+ deployAddress,
2134
+ argsType: undefined,
2135
+ getAbi: () => abi,
2136
+ };
2137
+ }
2138
+ export const mutation = {
2139
+ transfer: getMutation('transfer'),
2140
+ transferFrom: getMutation('transferFrom'),
2141
+ approve: getMutation('approve'),
2142
+ increaseAllowance: getMutation('increaseAllowance'),
2143
+ decreaseAllowance: getMutation('decreaseAllowance'),
2144
+ burn: getMutation('burn'),
2145
+ permit: getMutation('permit'),
2146
+ setBlacklist: getMutation('setBlacklist'),
2147
+ burnBlacklistTokens: getMutation('burnBlacklistTokens'),
2148
+ pause: getMutation('pause'),
2149
+ depositForYield: getMutation('depositForYield'),
2150
+ withdrawFromYield: getMutation('withdrawFromYield'),
2151
+ swapTokens: getMutation('swapTokens'),
2152
+ claimIncentives: getMutation('claimIncentives'),
2153
+ claimPerformanceFees: getMutation('claimPerformanceFees'),
2154
+ updateYieldPosition: getMutation('updateYieldPosition'),
2155
+ addManager: getMutation('addManager'),
2156
+ removeManager: getMutation('removeManager'),
2157
+ deposit: getMutation('deposit'),
2158
+ depositWithMinAmountOut: getMutation('depositWithMinAmountOut'),
2159
+ mint: getMutation('mint'),
2160
+ withdraw: getMutation('withdraw'),
2161
+ redeem: getMutation('redeem'),
2162
+ redeemWithMinAmountOut: getMutation('redeemWithMinAmountOut'),
2163
+ sweepLeftovers: getMutation('sweepLeftovers'),
2164
+ };
2165
+ export function toSdk(publicClient, walletClient) {
2166
+ return {
2167
+ deployAddress,
2168
+ abi,
2169
+ // Queries
2170
+ name: (...args) => singleQuery(publicClient, call.name(...args)),
2171
+ symbol: (...args) => singleQuery(publicClient, call.symbol(...args)),
2172
+ decimals: (...args) => singleQuery(publicClient, call.decimals(...args)),
2173
+ DOMAIN_SEPARATOR: (...args) => singleQuery(publicClient, call.DOMAIN_SEPARATOR(...args)),
2174
+ undyHq: (...args) => singleQuery(publicClient, call.undyHq(...args)),
2175
+ blacklisted: (...args) => singleQuery(publicClient, call.blacklisted(...args)),
2176
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
2177
+ balanceOf: (...args) => singleQuery(publicClient, call.balanceOf(...args)),
2178
+ allowance: (...args) => singleQuery(publicClient, call.allowance(...args)),
2179
+ totalSupply: (...args) => singleQuery(publicClient, call.totalSupply(...args)),
2180
+ TOKEN_NAME: (...args) => singleQuery(publicClient, call.TOKEN_NAME(...args)),
2181
+ TOKEN_SYMBOL: (...args) => singleQuery(publicClient, call.TOKEN_SYMBOL(...args)),
2182
+ TOKEN_DECIMALS: (...args) => singleQuery(publicClient, call.TOKEN_DECIMALS(...args)),
2183
+ VERSION: (...args) => singleQuery(publicClient, call.VERSION(...args)),
2184
+ nonces: (...args) => singleQuery(publicClient, call.nonces(...args)),
2185
+ getClaimablePerformanceFees: (...args) => singleQuery(publicClient, call.getClaimablePerformanceFees(...args)),
2186
+ lastUnderlyingBal: (...args) => singleQuery(publicClient, call.lastUnderlyingBal(...args)),
2187
+ pendingYieldRealized: (...args) => singleQuery(publicClient, call.pendingYieldRealized(...args)),
2188
+ vaultToLegoId: (...args) => singleQuery(publicClient, call.vaultToLegoId(...args)),
2189
+ assets: (...args) => singleQuery(publicClient, call.assets(...args)),
2190
+ indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
2191
+ numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args)),
2192
+ managers: (...args) => singleQuery(publicClient, call.managers(...args)),
2193
+ indexOfManager: (...args) => singleQuery(publicClient, call.indexOfManager(...args)),
2194
+ numManagers: (...args) => singleQuery(publicClient, call.numManagers(...args)),
2195
+ asset: (...args) => singleQuery(publicClient, call.asset(...args)),
2196
+ totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args)),
2197
+ getTotalAssets: (...args) => singleQuery(publicClient, call.getTotalAssets(...args)),
2198
+ maxDeposit: (...args) => singleQuery(publicClient, call.maxDeposit(...args)),
2199
+ previewDeposit: (...args) => singleQuery(publicClient, call.previewDeposit(...args)),
2200
+ maxMint: (...args) => singleQuery(publicClient, call.maxMint(...args)),
2201
+ previewMint: (...args) => singleQuery(publicClient, call.previewMint(...args)),
2202
+ maxWithdraw: (...args) => singleQuery(publicClient, call.maxWithdraw(...args)),
2203
+ previewWithdraw: (...args) => singleQuery(publicClient, call.previewWithdraw(...args)),
2204
+ maxRedeem: (...args) => singleQuery(publicClient, call.maxRedeem(...args)),
2205
+ previewRedeem: (...args) => singleQuery(publicClient, call.previewRedeem(...args)),
2206
+ convertToShares: (...args) => singleQuery(publicClient, call.convertToShares(...args)),
2207
+ convertToSharesSafe: (...args) => singleQuery(publicClient, call.convertToSharesSafe(...args)),
2208
+ convertToAssets: (...args) => singleQuery(publicClient, call.convertToAssets(...args)),
2209
+ convertToAssetsSafe: (...args) => singleQuery(publicClient, call.convertToAssetsSafe(...args)),
2210
+ // Mutations
2211
+ transfer: (...args) => mutate(walletClient, mutation.transfer)(...args),
2212
+ transferFrom: (...args) => mutate(walletClient, mutation.transferFrom)(...args),
2213
+ approve: (...args) => mutate(walletClient, mutation.approve)(...args),
2214
+ increaseAllowance: (...args) => mutate(walletClient, mutation.increaseAllowance)(...args),
2215
+ decreaseAllowance: (...args) => mutate(walletClient, mutation.decreaseAllowance)(...args),
2216
+ burn: (...args) => mutate(walletClient, mutation.burn)(...args),
2217
+ permit: (...args) => mutate(walletClient, mutation.permit)(...args),
2218
+ setBlacklist: (...args) => mutate(walletClient, mutation.setBlacklist)(...args),
2219
+ burnBlacklistTokens: (...args) => mutate(walletClient, mutation.burnBlacklistTokens)(...args),
2220
+ pause: (...args) => mutate(walletClient, mutation.pause)(...args),
2221
+ depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
2222
+ withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
2223
+ swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
2224
+ claimIncentives: (...args) => mutate(walletClient, mutation.claimIncentives)(...args),
2225
+ claimPerformanceFees: (...args) => mutate(walletClient, mutation.claimPerformanceFees)(...args),
2226
+ updateYieldPosition: (...args) => mutate(walletClient, mutation.updateYieldPosition)(...args),
2227
+ addManager: (...args) => mutate(walletClient, mutation.addManager)(...args),
2228
+ removeManager: (...args) => mutate(walletClient, mutation.removeManager)(...args),
2229
+ deposit: (...args) => mutate(walletClient, mutation.deposit)(...args),
2230
+ depositWithMinAmountOut: (...args) => mutate(walletClient, mutation.depositWithMinAmountOut)(...args),
2231
+ mint: (...args) => mutate(walletClient, mutation.mint)(...args),
2232
+ withdraw: (...args) => mutate(walletClient, mutation.withdraw)(...args),
2233
+ redeem: (...args) => mutate(walletClient, mutation.redeem)(...args),
2234
+ redeemWithMinAmountOut: (...args) => mutate(walletClient, mutation.redeemWithMinAmountOut)(...args),
2235
+ sweepLeftovers: (...args) => mutate(walletClient, mutation.sweepLeftovers)(...args),
2236
+ };
2237
+ }