@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,3297 @@
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: 'ExtraFiDeposit',
9
+ inputs: [
10
+ {
11
+ name: 'sender',
12
+ type: 'address',
13
+ indexed: true,
14
+ },
15
+ {
16
+ name: 'asset',
17
+ type: 'address',
18
+ indexed: true,
19
+ },
20
+ {
21
+ name: 'vaultToken',
22
+ type: 'address',
23
+ indexed: true,
24
+ },
25
+ {
26
+ name: 'assetAmountDeposited',
27
+ type: 'uint256',
28
+ indexed: false,
29
+ },
30
+ {
31
+ name: 'usdValue',
32
+ type: 'uint256',
33
+ indexed: false,
34
+ },
35
+ {
36
+ name: 'vaultTokenAmountReceived',
37
+ type: 'uint256',
38
+ indexed: false,
39
+ },
40
+ {
41
+ name: 'recipient',
42
+ type: 'address',
43
+ indexed: false,
44
+ },
45
+ ],
46
+ anonymous: false,
47
+ type: 'event',
48
+ },
49
+ {
50
+ name: 'ExtraFiWithdrawal',
51
+ inputs: [
52
+ {
53
+ name: 'sender',
54
+ type: 'address',
55
+ indexed: true,
56
+ },
57
+ {
58
+ name: 'asset',
59
+ type: 'address',
60
+ indexed: true,
61
+ },
62
+ {
63
+ name: 'vaultToken',
64
+ type: 'address',
65
+ indexed: true,
66
+ },
67
+ {
68
+ name: 'assetAmountReceived',
69
+ type: 'uint256',
70
+ indexed: false,
71
+ },
72
+ {
73
+ name: 'usdValue',
74
+ type: 'uint256',
75
+ indexed: false,
76
+ },
77
+ {
78
+ name: 'vaultTokenAmountBurned',
79
+ type: 'uint256',
80
+ indexed: false,
81
+ },
82
+ {
83
+ name: 'recipient',
84
+ type: 'address',
85
+ indexed: false,
86
+ },
87
+ ],
88
+ anonymous: false,
89
+ type: 'event',
90
+ },
91
+ {
92
+ name: 'AssetOpportunityAdded',
93
+ inputs: [
94
+ {
95
+ name: 'asset',
96
+ type: 'address',
97
+ indexed: true,
98
+ },
99
+ {
100
+ name: 'vaultAddr',
101
+ type: 'address',
102
+ indexed: true,
103
+ },
104
+ ],
105
+ anonymous: false,
106
+ type: 'event',
107
+ },
108
+ {
109
+ name: 'LegoPauseModified',
110
+ inputs: [
111
+ {
112
+ name: 'isPaused',
113
+ type: 'bool',
114
+ indexed: false,
115
+ },
116
+ ],
117
+ anonymous: false,
118
+ type: 'event',
119
+ },
120
+ {
121
+ name: 'LegoFundsRecovered',
122
+ inputs: [
123
+ {
124
+ name: 'asset',
125
+ type: 'address',
126
+ indexed: true,
127
+ },
128
+ {
129
+ name: 'recipient',
130
+ type: 'address',
131
+ indexed: true,
132
+ },
133
+ {
134
+ name: 'balance',
135
+ type: 'uint256',
136
+ indexed: false,
137
+ },
138
+ ],
139
+ anonymous: false,
140
+ type: 'event',
141
+ },
142
+ {
143
+ name: 'SnapShotPriceConfigSet',
144
+ inputs: [
145
+ {
146
+ name: 'minSnapshotDelay',
147
+ type: 'uint256',
148
+ indexed: false,
149
+ },
150
+ {
151
+ name: 'maxNumSnapshots',
152
+ type: 'uint256',
153
+ indexed: false,
154
+ },
155
+ {
156
+ name: 'maxUpsideDeviation',
157
+ type: 'uint256',
158
+ indexed: false,
159
+ },
160
+ {
161
+ name: 'staleTime',
162
+ type: 'uint256',
163
+ indexed: false,
164
+ },
165
+ ],
166
+ anonymous: false,
167
+ type: 'event',
168
+ },
169
+ {
170
+ name: 'AssetOpportunityRemoved',
171
+ inputs: [
172
+ {
173
+ name: 'asset',
174
+ type: 'address',
175
+ indexed: true,
176
+ },
177
+ {
178
+ name: 'vaultAddr',
179
+ type: 'address',
180
+ indexed: true,
181
+ },
182
+ ],
183
+ anonymous: false,
184
+ type: 'event',
185
+ },
186
+ {
187
+ name: 'PricePerShareSnapShotAdded',
188
+ inputs: [
189
+ {
190
+ name: 'vaultToken',
191
+ type: 'address',
192
+ indexed: true,
193
+ },
194
+ {
195
+ name: 'totalSupply',
196
+ type: 'uint256',
197
+ indexed: false,
198
+ },
199
+ {
200
+ name: 'pricePerShare',
201
+ type: 'uint256',
202
+ indexed: false,
203
+ },
204
+ {
205
+ name: 'lastAveragePricePerShare',
206
+ type: 'uint256',
207
+ indexed: false,
208
+ },
209
+ ],
210
+ anonymous: false,
211
+ type: 'event',
212
+ },
213
+ {
214
+ stateMutability: 'view',
215
+ type: 'function',
216
+ name: 'getAddys',
217
+ inputs: [],
218
+ outputs: [
219
+ {
220
+ name: '',
221
+ type: 'tuple',
222
+ components: [
223
+ {
224
+ name: 'hq',
225
+ type: 'address',
226
+ },
227
+ {
228
+ name: 'undyToken',
229
+ type: 'address',
230
+ },
231
+ {
232
+ name: 'ledger',
233
+ type: 'address',
234
+ },
235
+ {
236
+ name: 'missionControl',
237
+ type: 'address',
238
+ },
239
+ {
240
+ name: 'legoBook',
241
+ type: 'address',
242
+ },
243
+ {
244
+ name: 'switchboard',
245
+ type: 'address',
246
+ },
247
+ {
248
+ name: 'hatchery',
249
+ type: 'address',
250
+ },
251
+ {
252
+ name: 'lootDistributor',
253
+ type: 'address',
254
+ },
255
+ {
256
+ name: 'appraiser',
257
+ type: 'address',
258
+ },
259
+ {
260
+ name: 'walletBackpack',
261
+ type: 'address',
262
+ },
263
+ {
264
+ name: 'billing',
265
+ type: 'address',
266
+ },
267
+ {
268
+ name: 'vaultRegistry',
269
+ type: 'address',
270
+ },
271
+ ],
272
+ },
273
+ ],
274
+ },
275
+ {
276
+ stateMutability: 'view',
277
+ type: 'function',
278
+ name: 'getUndyHq',
279
+ inputs: [],
280
+ outputs: [
281
+ {
282
+ name: '',
283
+ type: 'address',
284
+ },
285
+ ],
286
+ },
287
+ {
288
+ stateMutability: 'view',
289
+ type: 'function',
290
+ name: 'isLegoAsset',
291
+ inputs: [
292
+ {
293
+ name: '_asset',
294
+ type: 'address',
295
+ },
296
+ ],
297
+ outputs: [
298
+ {
299
+ name: '',
300
+ type: 'bool',
301
+ },
302
+ ],
303
+ },
304
+ {
305
+ stateMutability: 'view',
306
+ type: 'function',
307
+ name: 'getAssetOpportunities',
308
+ inputs: [
309
+ {
310
+ name: '_asset',
311
+ type: 'address',
312
+ },
313
+ ],
314
+ outputs: [
315
+ {
316
+ name: '',
317
+ type: 'address[]',
318
+ },
319
+ ],
320
+ },
321
+ {
322
+ stateMutability: 'view',
323
+ type: 'function',
324
+ name: 'getAssets',
325
+ inputs: [],
326
+ outputs: [
327
+ {
328
+ name: '',
329
+ type: 'address[]',
330
+ },
331
+ ],
332
+ },
333
+ {
334
+ stateMutability: 'view',
335
+ type: 'function',
336
+ name: 'isAssetOpportunity',
337
+ inputs: [
338
+ {
339
+ name: '_asset',
340
+ type: 'address',
341
+ },
342
+ {
343
+ name: '_vaultAddr',
344
+ type: 'address',
345
+ },
346
+ ],
347
+ outputs: [
348
+ {
349
+ name: '',
350
+ type: 'bool',
351
+ },
352
+ ],
353
+ },
354
+ {
355
+ stateMutability: 'view',
356
+ type: 'function',
357
+ name: 'getNumLegoAssets',
358
+ inputs: [],
359
+ outputs: [
360
+ {
361
+ name: '',
362
+ type: 'uint256',
363
+ },
364
+ ],
365
+ },
366
+ {
367
+ stateMutability: 'nonpayable',
368
+ type: 'function',
369
+ name: 'pause',
370
+ inputs: [
371
+ {
372
+ name: '_shouldPause',
373
+ type: 'bool',
374
+ },
375
+ ],
376
+ outputs: [],
377
+ },
378
+ {
379
+ stateMutability: 'nonpayable',
380
+ type: 'function',
381
+ name: 'recoverFunds',
382
+ inputs: [
383
+ {
384
+ name: '_recipient',
385
+ type: 'address',
386
+ },
387
+ {
388
+ name: '_asset',
389
+ type: 'address',
390
+ },
391
+ ],
392
+ outputs: [],
393
+ },
394
+ {
395
+ stateMutability: 'nonpayable',
396
+ type: 'function',
397
+ name: 'recoverFundsMany',
398
+ inputs: [
399
+ {
400
+ name: '_recipient',
401
+ type: 'address',
402
+ },
403
+ {
404
+ name: '_assets',
405
+ type: 'address[]',
406
+ },
407
+ ],
408
+ outputs: [],
409
+ },
410
+ {
411
+ stateMutability: 'view',
412
+ type: 'function',
413
+ name: 'getWeightedPricePerShare',
414
+ inputs: [
415
+ {
416
+ name: '_vaultToken',
417
+ type: 'address',
418
+ },
419
+ ],
420
+ outputs: [
421
+ {
422
+ name: '',
423
+ type: 'uint256',
424
+ },
425
+ ],
426
+ },
427
+ {
428
+ stateMutability: 'view',
429
+ type: 'function',
430
+ name: 'getLatestSnapshot',
431
+ inputs: [
432
+ {
433
+ name: '_vaultToken',
434
+ type: 'address',
435
+ },
436
+ {
437
+ name: '_pricePerShare',
438
+ type: 'uint256',
439
+ },
440
+ ],
441
+ outputs: [
442
+ {
443
+ name: '',
444
+ type: 'tuple',
445
+ components: [
446
+ {
447
+ name: 'totalSupply',
448
+ type: 'uint256',
449
+ },
450
+ {
451
+ name: 'pricePerShare',
452
+ type: 'uint256',
453
+ },
454
+ {
455
+ name: 'lastUpdate',
456
+ type: 'uint256',
457
+ },
458
+ ],
459
+ },
460
+ ],
461
+ },
462
+ {
463
+ stateMutability: 'nonpayable',
464
+ type: 'function',
465
+ name: 'setSnapShotPriceConfig',
466
+ inputs: [
467
+ {
468
+ name: '_config',
469
+ type: 'tuple',
470
+ components: [
471
+ {
472
+ name: 'minSnapshotDelay',
473
+ type: 'uint256',
474
+ },
475
+ {
476
+ name: 'maxNumSnapshots',
477
+ type: 'uint256',
478
+ },
479
+ {
480
+ name: 'maxUpsideDeviation',
481
+ type: 'uint256',
482
+ },
483
+ {
484
+ name: 'staleTime',
485
+ type: 'uint256',
486
+ },
487
+ ],
488
+ },
489
+ ],
490
+ outputs: [],
491
+ },
492
+ {
493
+ stateMutability: 'view',
494
+ type: 'function',
495
+ name: 'isValidPriceConfig',
496
+ inputs: [
497
+ {
498
+ name: '_config',
499
+ type: 'tuple',
500
+ components: [
501
+ {
502
+ name: 'minSnapshotDelay',
503
+ type: 'uint256',
504
+ },
505
+ {
506
+ name: 'maxNumSnapshots',
507
+ type: 'uint256',
508
+ },
509
+ {
510
+ name: 'maxUpsideDeviation',
511
+ type: 'uint256',
512
+ },
513
+ {
514
+ name: 'staleTime',
515
+ type: 'uint256',
516
+ },
517
+ ],
518
+ },
519
+ ],
520
+ outputs: [
521
+ {
522
+ name: '',
523
+ type: 'bool',
524
+ },
525
+ ],
526
+ },
527
+ {
528
+ stateMutability: 'view',
529
+ type: 'function',
530
+ name: 'vaultToAsset',
531
+ inputs: [
532
+ {
533
+ name: 'arg0',
534
+ type: 'address',
535
+ },
536
+ ],
537
+ outputs: [
538
+ {
539
+ name: '',
540
+ type: 'tuple',
541
+ components: [
542
+ {
543
+ name: 'underlyingAsset',
544
+ type: 'address',
545
+ },
546
+ {
547
+ name: 'decimals',
548
+ type: 'uint256',
549
+ },
550
+ {
551
+ name: 'lastAveragePricePerShare',
552
+ type: 'uint256',
553
+ },
554
+ ],
555
+ },
556
+ ],
557
+ },
558
+ {
559
+ stateMutability: 'view',
560
+ type: 'function',
561
+ name: 'assetOpportunities',
562
+ inputs: [
563
+ {
564
+ name: 'arg0',
565
+ type: 'address',
566
+ },
567
+ {
568
+ name: 'arg1',
569
+ type: 'uint256',
570
+ },
571
+ ],
572
+ outputs: [
573
+ {
574
+ name: '',
575
+ type: 'address',
576
+ },
577
+ ],
578
+ },
579
+ {
580
+ stateMutability: 'view',
581
+ type: 'function',
582
+ name: 'indexOfAssetOpportunity',
583
+ inputs: [
584
+ {
585
+ name: 'arg0',
586
+ type: 'address',
587
+ },
588
+ {
589
+ name: 'arg1',
590
+ type: 'address',
591
+ },
592
+ ],
593
+ outputs: [
594
+ {
595
+ name: '',
596
+ type: 'uint256',
597
+ },
598
+ ],
599
+ },
600
+ {
601
+ stateMutability: 'view',
602
+ type: 'function',
603
+ name: 'numAssetOpportunities',
604
+ inputs: [
605
+ {
606
+ name: 'arg0',
607
+ type: 'address',
608
+ },
609
+ ],
610
+ outputs: [
611
+ {
612
+ name: '',
613
+ type: 'uint256',
614
+ },
615
+ ],
616
+ },
617
+ {
618
+ stateMutability: 'view',
619
+ type: 'function',
620
+ name: 'assets',
621
+ inputs: [
622
+ {
623
+ name: 'arg0',
624
+ type: 'uint256',
625
+ },
626
+ ],
627
+ outputs: [
628
+ {
629
+ name: '',
630
+ type: 'address',
631
+ },
632
+ ],
633
+ },
634
+ {
635
+ stateMutability: 'view',
636
+ type: 'function',
637
+ name: 'indexOfAsset',
638
+ inputs: [
639
+ {
640
+ name: 'arg0',
641
+ type: 'address',
642
+ },
643
+ ],
644
+ outputs: [
645
+ {
646
+ name: '',
647
+ type: 'uint256',
648
+ },
649
+ ],
650
+ },
651
+ {
652
+ stateMutability: 'view',
653
+ type: 'function',
654
+ name: 'numAssets',
655
+ inputs: [],
656
+ outputs: [
657
+ {
658
+ name: '',
659
+ type: 'uint256',
660
+ },
661
+ ],
662
+ },
663
+ {
664
+ stateMutability: 'view',
665
+ type: 'function',
666
+ name: 'snapShotData',
667
+ inputs: [
668
+ {
669
+ name: 'arg0',
670
+ type: 'address',
671
+ },
672
+ ],
673
+ outputs: [
674
+ {
675
+ name: '',
676
+ type: 'tuple',
677
+ components: [
678
+ {
679
+ name: 'lastSnapShot',
680
+ type: 'tuple',
681
+ components: [
682
+ {
683
+ name: 'totalSupply',
684
+ type: 'uint256',
685
+ },
686
+ {
687
+ name: 'pricePerShare',
688
+ type: 'uint256',
689
+ },
690
+ {
691
+ name: 'lastUpdate',
692
+ type: 'uint256',
693
+ },
694
+ ],
695
+ },
696
+ {
697
+ name: 'nextIndex',
698
+ type: 'uint256',
699
+ },
700
+ ],
701
+ },
702
+ ],
703
+ },
704
+ {
705
+ stateMutability: 'view',
706
+ type: 'function',
707
+ name: 'snapShots',
708
+ inputs: [
709
+ {
710
+ name: 'arg0',
711
+ type: 'address',
712
+ },
713
+ {
714
+ name: 'arg1',
715
+ type: 'uint256',
716
+ },
717
+ ],
718
+ outputs: [
719
+ {
720
+ name: '',
721
+ type: 'tuple',
722
+ components: [
723
+ {
724
+ name: 'totalSupply',
725
+ type: 'uint256',
726
+ },
727
+ {
728
+ name: 'pricePerShare',
729
+ type: 'uint256',
730
+ },
731
+ {
732
+ name: 'lastUpdate',
733
+ type: 'uint256',
734
+ },
735
+ ],
736
+ },
737
+ ],
738
+ },
739
+ {
740
+ stateMutability: 'view',
741
+ type: 'function',
742
+ name: 'snapShotPriceConfig',
743
+ inputs: [],
744
+ outputs: [
745
+ {
746
+ name: '',
747
+ type: 'tuple',
748
+ components: [
749
+ {
750
+ name: 'minSnapshotDelay',
751
+ type: 'uint256',
752
+ },
753
+ {
754
+ name: 'maxNumSnapshots',
755
+ type: 'uint256',
756
+ },
757
+ {
758
+ name: 'maxUpsideDeviation',
759
+ type: 'uint256',
760
+ },
761
+ {
762
+ name: 'staleTime',
763
+ type: 'uint256',
764
+ },
765
+ ],
766
+ },
767
+ ],
768
+ },
769
+ {
770
+ stateMutability: 'view',
771
+ type: 'function',
772
+ name: 'isPaused',
773
+ inputs: [],
774
+ outputs: [
775
+ {
776
+ name: '',
777
+ type: 'bool',
778
+ },
779
+ ],
780
+ },
781
+ {
782
+ stateMutability: 'view',
783
+ type: 'function',
784
+ name: 'hasCapability',
785
+ inputs: [
786
+ {
787
+ name: '_action',
788
+ type: 'uint256',
789
+ },
790
+ ],
791
+ outputs: [
792
+ {
793
+ name: '',
794
+ type: 'bool',
795
+ },
796
+ ],
797
+ },
798
+ {
799
+ stateMutability: 'view',
800
+ type: 'function',
801
+ name: 'getRegistries',
802
+ inputs: [],
803
+ outputs: [
804
+ {
805
+ name: '',
806
+ type: 'address[]',
807
+ },
808
+ ],
809
+ },
810
+ {
811
+ stateMutability: 'view',
812
+ type: 'function',
813
+ name: 'isYieldLego',
814
+ inputs: [],
815
+ outputs: [
816
+ {
817
+ name: '',
818
+ type: 'bool',
819
+ },
820
+ ],
821
+ },
822
+ {
823
+ stateMutability: 'view',
824
+ type: 'function',
825
+ name: 'isDexLego',
826
+ inputs: [],
827
+ outputs: [
828
+ {
829
+ name: '',
830
+ type: 'bool',
831
+ },
832
+ ],
833
+ },
834
+ {
835
+ stateMutability: 'view',
836
+ type: 'function',
837
+ name: 'getUnderlyingAsset',
838
+ inputs: [
839
+ {
840
+ name: '_vaultToken',
841
+ type: 'address',
842
+ },
843
+ ],
844
+ outputs: [
845
+ {
846
+ name: '',
847
+ type: 'address',
848
+ },
849
+ ],
850
+ },
851
+ {
852
+ stateMutability: 'view',
853
+ type: 'function',
854
+ name: 'getUnderlyingBalances',
855
+ inputs: [
856
+ {
857
+ name: '_vaultToken',
858
+ type: 'address',
859
+ },
860
+ {
861
+ name: '_vaultTokenBalance',
862
+ type: 'uint256',
863
+ },
864
+ ],
865
+ outputs: [
866
+ {
867
+ name: '',
868
+ type: 'uint256',
869
+ },
870
+ {
871
+ name: '',
872
+ type: 'uint256',
873
+ },
874
+ ],
875
+ },
876
+ {
877
+ stateMutability: 'view',
878
+ type: 'function',
879
+ name: 'getUnderlyingAmount',
880
+ inputs: [
881
+ {
882
+ name: '_vaultToken',
883
+ type: 'address',
884
+ },
885
+ {
886
+ name: '_vaultTokenAmount',
887
+ type: 'uint256',
888
+ },
889
+ ],
890
+ outputs: [
891
+ {
892
+ name: '',
893
+ type: 'uint256',
894
+ },
895
+ ],
896
+ },
897
+ {
898
+ stateMutability: 'view',
899
+ type: 'function',
900
+ name: 'getUnderlyingAmountSafe',
901
+ inputs: [
902
+ {
903
+ name: '_vaultToken',
904
+ type: 'address',
905
+ },
906
+ {
907
+ name: '_vaultTokenBalance',
908
+ type: 'uint256',
909
+ },
910
+ ],
911
+ outputs: [
912
+ {
913
+ name: '',
914
+ type: 'uint256',
915
+ },
916
+ ],
917
+ },
918
+ {
919
+ stateMutability: 'view',
920
+ type: 'function',
921
+ name: 'getUnderlyingData',
922
+ inputs: [
923
+ {
924
+ name: '_vaultToken',
925
+ type: 'address',
926
+ },
927
+ {
928
+ name: '_vaultTokenAmount',
929
+ type: 'uint256',
930
+ },
931
+ ],
932
+ outputs: [
933
+ {
934
+ name: '',
935
+ type: 'address',
936
+ },
937
+ {
938
+ name: '',
939
+ type: 'uint256',
940
+ },
941
+ {
942
+ name: '',
943
+ type: 'uint256',
944
+ },
945
+ ],
946
+ },
947
+ {
948
+ stateMutability: 'view',
949
+ type: 'function',
950
+ name: 'getUnderlyingData',
951
+ inputs: [
952
+ {
953
+ name: '_vaultToken',
954
+ type: 'address',
955
+ },
956
+ {
957
+ name: '_vaultTokenAmount',
958
+ type: 'uint256',
959
+ },
960
+ {
961
+ name: '_appraiser',
962
+ type: 'address',
963
+ },
964
+ ],
965
+ outputs: [
966
+ {
967
+ name: '',
968
+ type: 'address',
969
+ },
970
+ {
971
+ name: '',
972
+ type: 'uint256',
973
+ },
974
+ {
975
+ name: '',
976
+ type: 'uint256',
977
+ },
978
+ ],
979
+ },
980
+ {
981
+ stateMutability: 'view',
982
+ type: 'function',
983
+ name: 'getUsdValueOfVaultToken',
984
+ inputs: [
985
+ {
986
+ name: '_vaultToken',
987
+ type: 'address',
988
+ },
989
+ {
990
+ name: '_vaultTokenAmount',
991
+ type: 'uint256',
992
+ },
993
+ ],
994
+ outputs: [
995
+ {
996
+ name: '',
997
+ type: 'uint256',
998
+ },
999
+ ],
1000
+ },
1001
+ {
1002
+ stateMutability: 'view',
1003
+ type: 'function',
1004
+ name: 'getUsdValueOfVaultToken',
1005
+ inputs: [
1006
+ {
1007
+ name: '_vaultToken',
1008
+ type: 'address',
1009
+ },
1010
+ {
1011
+ name: '_vaultTokenAmount',
1012
+ type: 'uint256',
1013
+ },
1014
+ {
1015
+ name: '_appraiser',
1016
+ type: 'address',
1017
+ },
1018
+ ],
1019
+ outputs: [
1020
+ {
1021
+ name: '',
1022
+ type: 'uint256',
1023
+ },
1024
+ ],
1025
+ },
1026
+ {
1027
+ stateMutability: 'view',
1028
+ type: 'function',
1029
+ name: 'isRebasing',
1030
+ inputs: [],
1031
+ outputs: [
1032
+ {
1033
+ name: '',
1034
+ type: 'bool',
1035
+ },
1036
+ ],
1037
+ },
1038
+ {
1039
+ stateMutability: 'view',
1040
+ type: 'function',
1041
+ name: 'getPricePerShare',
1042
+ inputs: [
1043
+ {
1044
+ name: '_vaultToken',
1045
+ type: 'address',
1046
+ },
1047
+ ],
1048
+ outputs: [
1049
+ {
1050
+ name: '',
1051
+ type: 'uint256',
1052
+ },
1053
+ ],
1054
+ },
1055
+ {
1056
+ stateMutability: 'view',
1057
+ type: 'function',
1058
+ name: 'getPricePerShare',
1059
+ inputs: [
1060
+ {
1061
+ name: '_vaultToken',
1062
+ type: 'address',
1063
+ },
1064
+ {
1065
+ name: '_decimals',
1066
+ type: 'uint256',
1067
+ },
1068
+ ],
1069
+ outputs: [
1070
+ {
1071
+ name: '',
1072
+ type: 'uint256',
1073
+ },
1074
+ ],
1075
+ },
1076
+ {
1077
+ stateMutability: 'view',
1078
+ type: 'function',
1079
+ name: 'getVaultTokenAmount',
1080
+ inputs: [
1081
+ {
1082
+ name: '_asset',
1083
+ type: 'address',
1084
+ },
1085
+ {
1086
+ name: '_assetAmount',
1087
+ type: 'uint256',
1088
+ },
1089
+ {
1090
+ name: '_vaultToken',
1091
+ type: 'address',
1092
+ },
1093
+ ],
1094
+ outputs: [
1095
+ {
1096
+ name: '',
1097
+ type: 'uint256',
1098
+ },
1099
+ ],
1100
+ },
1101
+ {
1102
+ stateMutability: 'view',
1103
+ type: 'function',
1104
+ name: 'totalAssets',
1105
+ inputs: [
1106
+ {
1107
+ name: '_vaultToken',
1108
+ type: 'address',
1109
+ },
1110
+ ],
1111
+ outputs: [
1112
+ {
1113
+ name: '',
1114
+ type: 'uint256',
1115
+ },
1116
+ ],
1117
+ },
1118
+ {
1119
+ stateMutability: 'view',
1120
+ type: 'function',
1121
+ name: 'totalBorrows',
1122
+ inputs: [
1123
+ {
1124
+ name: '_vaultToken',
1125
+ type: 'address',
1126
+ },
1127
+ ],
1128
+ outputs: [
1129
+ {
1130
+ name: '',
1131
+ type: 'uint256',
1132
+ },
1133
+ ],
1134
+ },
1135
+ {
1136
+ stateMutability: 'view',
1137
+ type: 'function',
1138
+ name: 'getAvailLiquidity',
1139
+ inputs: [
1140
+ {
1141
+ name: '_vaultToken',
1142
+ type: 'address',
1143
+ },
1144
+ ],
1145
+ outputs: [
1146
+ {
1147
+ name: '',
1148
+ type: 'uint256',
1149
+ },
1150
+ ],
1151
+ },
1152
+ {
1153
+ stateMutability: 'view',
1154
+ type: 'function',
1155
+ name: 'getUtilizationRatio',
1156
+ inputs: [
1157
+ {
1158
+ name: '_vaultToken',
1159
+ type: 'address',
1160
+ },
1161
+ ],
1162
+ outputs: [
1163
+ {
1164
+ name: '',
1165
+ type: 'uint256',
1166
+ },
1167
+ ],
1168
+ },
1169
+ {
1170
+ stateMutability: 'view',
1171
+ type: 'function',
1172
+ name: 'isEligibleForYieldBonus',
1173
+ inputs: [
1174
+ {
1175
+ name: '_asset',
1176
+ type: 'address',
1177
+ },
1178
+ ],
1179
+ outputs: [
1180
+ {
1181
+ name: '',
1182
+ type: 'bool',
1183
+ },
1184
+ ],
1185
+ },
1186
+ {
1187
+ stateMutability: 'view',
1188
+ type: 'function',
1189
+ name: 'getWithdrawalFees',
1190
+ inputs: [
1191
+ {
1192
+ name: '_vaultToken',
1193
+ type: 'address',
1194
+ },
1195
+ {
1196
+ name: '_vaultTokenAmount',
1197
+ type: 'uint256',
1198
+ },
1199
+ ],
1200
+ outputs: [
1201
+ {
1202
+ name: '',
1203
+ type: 'uint256',
1204
+ },
1205
+ ],
1206
+ },
1207
+ {
1208
+ stateMutability: 'view',
1209
+ type: 'function',
1210
+ name: 'canRegisterVaultToken',
1211
+ inputs: [
1212
+ {
1213
+ name: '_asset',
1214
+ type: 'address',
1215
+ },
1216
+ {
1217
+ name: '_vaultToken',
1218
+ type: 'address',
1219
+ },
1220
+ ],
1221
+ outputs: [
1222
+ {
1223
+ name: '',
1224
+ type: 'bool',
1225
+ },
1226
+ ],
1227
+ },
1228
+ {
1229
+ stateMutability: 'nonpayable',
1230
+ type: 'function',
1231
+ name: 'registerVaultTokenLocally',
1232
+ inputs: [
1233
+ {
1234
+ name: '_asset',
1235
+ type: 'address',
1236
+ },
1237
+ {
1238
+ name: '_vaultAddr',
1239
+ type: 'address',
1240
+ },
1241
+ {
1242
+ name: '_reserveId',
1243
+ type: 'uint256',
1244
+ },
1245
+ ],
1246
+ outputs: [
1247
+ {
1248
+ name: '',
1249
+ type: 'tuple',
1250
+ components: [
1251
+ {
1252
+ name: 'underlyingAsset',
1253
+ type: 'address',
1254
+ },
1255
+ {
1256
+ name: 'decimals',
1257
+ type: 'uint256',
1258
+ },
1259
+ {
1260
+ name: 'lastAveragePricePerShare',
1261
+ type: 'uint256',
1262
+ },
1263
+ ],
1264
+ },
1265
+ ],
1266
+ },
1267
+ {
1268
+ stateMutability: 'nonpayable',
1269
+ type: 'function',
1270
+ name: 'deregisterVaultTokenLocally',
1271
+ inputs: [
1272
+ {
1273
+ name: '_asset',
1274
+ type: 'address',
1275
+ },
1276
+ {
1277
+ name: '_vaultAddr',
1278
+ type: 'address',
1279
+ },
1280
+ ],
1281
+ outputs: [],
1282
+ },
1283
+ {
1284
+ stateMutability: 'nonpayable',
1285
+ type: 'function',
1286
+ name: 'registerVaultTokensGlobally',
1287
+ inputs: [
1288
+ {
1289
+ name: '_vaultTokens',
1290
+ type: 'address[]',
1291
+ },
1292
+ ],
1293
+ outputs: [],
1294
+ },
1295
+ {
1296
+ stateMutability: 'nonpayable',
1297
+ type: 'function',
1298
+ name: 'addPriceSnapshot',
1299
+ inputs: [
1300
+ {
1301
+ name: '_vaultToken',
1302
+ type: 'address',
1303
+ },
1304
+ ],
1305
+ outputs: [
1306
+ {
1307
+ name: '',
1308
+ type: 'bool',
1309
+ },
1310
+ ],
1311
+ },
1312
+ {
1313
+ stateMutability: 'nonpayable',
1314
+ type: 'function',
1315
+ name: 'depositForYield',
1316
+ inputs: [
1317
+ {
1318
+ name: '_asset',
1319
+ type: 'address',
1320
+ },
1321
+ {
1322
+ name: '_amount',
1323
+ type: 'uint256',
1324
+ },
1325
+ {
1326
+ name: '_vaultAddr',
1327
+ type: 'address',
1328
+ },
1329
+ {
1330
+ name: '_extraData',
1331
+ type: 'bytes32',
1332
+ },
1333
+ {
1334
+ name: '_recipient',
1335
+ type: 'address',
1336
+ },
1337
+ ],
1338
+ outputs: [
1339
+ {
1340
+ name: '',
1341
+ type: 'uint256',
1342
+ },
1343
+ {
1344
+ name: '',
1345
+ type: 'address',
1346
+ },
1347
+ {
1348
+ name: '',
1349
+ type: 'uint256',
1350
+ },
1351
+ {
1352
+ name: '',
1353
+ type: 'uint256',
1354
+ },
1355
+ ],
1356
+ },
1357
+ {
1358
+ stateMutability: 'nonpayable',
1359
+ type: 'function',
1360
+ name: 'depositForYield',
1361
+ inputs: [
1362
+ {
1363
+ name: '_asset',
1364
+ type: 'address',
1365
+ },
1366
+ {
1367
+ name: '_amount',
1368
+ type: 'uint256',
1369
+ },
1370
+ {
1371
+ name: '_vaultAddr',
1372
+ type: 'address',
1373
+ },
1374
+ {
1375
+ name: '_extraData',
1376
+ type: 'bytes32',
1377
+ },
1378
+ {
1379
+ name: '_recipient',
1380
+ type: 'address',
1381
+ },
1382
+ {
1383
+ name: '_miniAddys',
1384
+ type: 'tuple',
1385
+ components: [
1386
+ {
1387
+ name: 'ledger',
1388
+ type: 'address',
1389
+ },
1390
+ {
1391
+ name: 'missionControl',
1392
+ type: 'address',
1393
+ },
1394
+ {
1395
+ name: 'legoBook',
1396
+ type: 'address',
1397
+ },
1398
+ {
1399
+ name: 'appraiser',
1400
+ type: 'address',
1401
+ },
1402
+ ],
1403
+ },
1404
+ ],
1405
+ outputs: [
1406
+ {
1407
+ name: '',
1408
+ type: 'uint256',
1409
+ },
1410
+ {
1411
+ name: '',
1412
+ type: 'address',
1413
+ },
1414
+ {
1415
+ name: '',
1416
+ type: 'uint256',
1417
+ },
1418
+ {
1419
+ name: '',
1420
+ type: 'uint256',
1421
+ },
1422
+ ],
1423
+ },
1424
+ {
1425
+ stateMutability: 'nonpayable',
1426
+ type: 'function',
1427
+ name: 'withdrawFromYield',
1428
+ inputs: [
1429
+ {
1430
+ name: '_vaultToken',
1431
+ type: 'address',
1432
+ },
1433
+ {
1434
+ name: '_amount',
1435
+ type: 'uint256',
1436
+ },
1437
+ {
1438
+ name: '_extraData',
1439
+ type: 'bytes32',
1440
+ },
1441
+ {
1442
+ name: '_recipient',
1443
+ type: 'address',
1444
+ },
1445
+ ],
1446
+ outputs: [
1447
+ {
1448
+ name: '',
1449
+ type: 'uint256',
1450
+ },
1451
+ {
1452
+ name: '',
1453
+ type: 'address',
1454
+ },
1455
+ {
1456
+ name: '',
1457
+ type: 'uint256',
1458
+ },
1459
+ {
1460
+ name: '',
1461
+ type: 'uint256',
1462
+ },
1463
+ ],
1464
+ },
1465
+ {
1466
+ stateMutability: 'nonpayable',
1467
+ type: 'function',
1468
+ name: 'withdrawFromYield',
1469
+ inputs: [
1470
+ {
1471
+ name: '_vaultToken',
1472
+ type: 'address',
1473
+ },
1474
+ {
1475
+ name: '_amount',
1476
+ type: 'uint256',
1477
+ },
1478
+ {
1479
+ name: '_extraData',
1480
+ type: 'bytes32',
1481
+ },
1482
+ {
1483
+ name: '_recipient',
1484
+ type: 'address',
1485
+ },
1486
+ {
1487
+ name: '_miniAddys',
1488
+ type: 'tuple',
1489
+ components: [
1490
+ {
1491
+ name: 'ledger',
1492
+ type: 'address',
1493
+ },
1494
+ {
1495
+ name: 'missionControl',
1496
+ type: 'address',
1497
+ },
1498
+ {
1499
+ name: 'legoBook',
1500
+ type: 'address',
1501
+ },
1502
+ {
1503
+ name: 'appraiser',
1504
+ type: 'address',
1505
+ },
1506
+ ],
1507
+ },
1508
+ ],
1509
+ outputs: [
1510
+ {
1511
+ name: '',
1512
+ type: 'uint256',
1513
+ },
1514
+ {
1515
+ name: '',
1516
+ type: 'address',
1517
+ },
1518
+ {
1519
+ name: '',
1520
+ type: 'uint256',
1521
+ },
1522
+ {
1523
+ name: '',
1524
+ type: 'uint256',
1525
+ },
1526
+ ],
1527
+ },
1528
+ {
1529
+ stateMutability: 'view',
1530
+ type: 'function',
1531
+ name: 'getAccessForLego',
1532
+ inputs: [
1533
+ {
1534
+ name: '_user',
1535
+ type: 'address',
1536
+ },
1537
+ {
1538
+ name: '_action',
1539
+ type: 'uint256',
1540
+ },
1541
+ ],
1542
+ outputs: [
1543
+ {
1544
+ name: '',
1545
+ type: 'address',
1546
+ },
1547
+ {
1548
+ name: '',
1549
+ type: 'string',
1550
+ },
1551
+ {
1552
+ name: '',
1553
+ type: 'uint256',
1554
+ },
1555
+ ],
1556
+ },
1557
+ {
1558
+ stateMutability: 'nonpayable',
1559
+ type: 'function',
1560
+ name: 'claimRewards',
1561
+ inputs: [
1562
+ {
1563
+ name: '_user',
1564
+ type: 'address',
1565
+ },
1566
+ {
1567
+ name: '_rewardToken',
1568
+ type: 'address',
1569
+ },
1570
+ {
1571
+ name: '_rewardAmount',
1572
+ type: 'uint256',
1573
+ },
1574
+ {
1575
+ name: '_extraData',
1576
+ type: 'bytes32',
1577
+ },
1578
+ ],
1579
+ outputs: [
1580
+ {
1581
+ name: '',
1582
+ type: 'uint256',
1583
+ },
1584
+ {
1585
+ name: '',
1586
+ type: 'uint256',
1587
+ },
1588
+ ],
1589
+ },
1590
+ {
1591
+ stateMutability: 'nonpayable',
1592
+ type: 'function',
1593
+ name: 'claimRewards',
1594
+ inputs: [
1595
+ {
1596
+ name: '_user',
1597
+ type: 'address',
1598
+ },
1599
+ {
1600
+ name: '_rewardToken',
1601
+ type: 'address',
1602
+ },
1603
+ {
1604
+ name: '_rewardAmount',
1605
+ type: 'uint256',
1606
+ },
1607
+ {
1608
+ name: '_extraData',
1609
+ type: 'bytes32',
1610
+ },
1611
+ {
1612
+ name: '_miniAddys',
1613
+ type: 'tuple',
1614
+ components: [
1615
+ {
1616
+ name: 'ledger',
1617
+ type: 'address',
1618
+ },
1619
+ {
1620
+ name: 'missionControl',
1621
+ type: 'address',
1622
+ },
1623
+ {
1624
+ name: 'legoBook',
1625
+ type: 'address',
1626
+ },
1627
+ {
1628
+ name: 'appraiser',
1629
+ type: 'address',
1630
+ },
1631
+ ],
1632
+ },
1633
+ ],
1634
+ outputs: [
1635
+ {
1636
+ name: '',
1637
+ type: 'uint256',
1638
+ },
1639
+ {
1640
+ name: '',
1641
+ type: 'uint256',
1642
+ },
1643
+ ],
1644
+ },
1645
+ {
1646
+ stateMutability: 'nonpayable',
1647
+ type: 'function',
1648
+ name: 'claimIncentives',
1649
+ inputs: [
1650
+ {
1651
+ name: '_user',
1652
+ type: 'address',
1653
+ },
1654
+ {
1655
+ name: '_rewardToken',
1656
+ type: 'address',
1657
+ },
1658
+ {
1659
+ name: '_rewardAmount',
1660
+ type: 'uint256',
1661
+ },
1662
+ {
1663
+ name: '_proofs',
1664
+ type: 'bytes32[]',
1665
+ },
1666
+ ],
1667
+ outputs: [
1668
+ {
1669
+ name: '',
1670
+ type: 'uint256',
1671
+ },
1672
+ {
1673
+ name: '',
1674
+ type: 'uint256',
1675
+ },
1676
+ ],
1677
+ },
1678
+ {
1679
+ stateMutability: 'nonpayable',
1680
+ type: 'function',
1681
+ name: 'claimIncentives',
1682
+ inputs: [
1683
+ {
1684
+ name: '_user',
1685
+ type: 'address',
1686
+ },
1687
+ {
1688
+ name: '_rewardToken',
1689
+ type: 'address',
1690
+ },
1691
+ {
1692
+ name: '_rewardAmount',
1693
+ type: 'uint256',
1694
+ },
1695
+ {
1696
+ name: '_proofs',
1697
+ type: 'bytes32[]',
1698
+ },
1699
+ {
1700
+ name: '_miniAddys',
1701
+ type: 'tuple',
1702
+ components: [
1703
+ {
1704
+ name: 'ledger',
1705
+ type: 'address',
1706
+ },
1707
+ {
1708
+ name: 'missionControl',
1709
+ type: 'address',
1710
+ },
1711
+ {
1712
+ name: 'legoBook',
1713
+ type: 'address',
1714
+ },
1715
+ {
1716
+ name: 'appraiser',
1717
+ type: 'address',
1718
+ },
1719
+ ],
1720
+ },
1721
+ ],
1722
+ outputs: [
1723
+ {
1724
+ name: '',
1725
+ type: 'uint256',
1726
+ },
1727
+ {
1728
+ name: '',
1729
+ type: 'uint256',
1730
+ },
1731
+ ],
1732
+ },
1733
+ {
1734
+ stateMutability: 'view',
1735
+ type: 'function',
1736
+ name: 'hasClaimableRewards',
1737
+ inputs: [
1738
+ {
1739
+ name: '_user',
1740
+ type: 'address',
1741
+ },
1742
+ ],
1743
+ outputs: [
1744
+ {
1745
+ name: '',
1746
+ type: 'bool',
1747
+ },
1748
+ ],
1749
+ },
1750
+ {
1751
+ stateMutability: 'nonpayable',
1752
+ type: 'function',
1753
+ name: 'swapTokens',
1754
+ inputs: [
1755
+ {
1756
+ name: '_amountIn',
1757
+ type: 'uint256',
1758
+ },
1759
+ {
1760
+ name: '_minAmountOut',
1761
+ type: 'uint256',
1762
+ },
1763
+ {
1764
+ name: '_tokenPath',
1765
+ type: 'address[]',
1766
+ },
1767
+ {
1768
+ name: '_poolPath',
1769
+ type: 'address[]',
1770
+ },
1771
+ {
1772
+ name: '_recipient',
1773
+ type: 'address',
1774
+ },
1775
+ ],
1776
+ outputs: [
1777
+ {
1778
+ name: '',
1779
+ type: 'uint256',
1780
+ },
1781
+ {
1782
+ name: '',
1783
+ type: 'uint256',
1784
+ },
1785
+ {
1786
+ name: '',
1787
+ type: 'uint256',
1788
+ },
1789
+ ],
1790
+ },
1791
+ {
1792
+ stateMutability: 'nonpayable',
1793
+ type: 'function',
1794
+ name: 'swapTokens',
1795
+ inputs: [
1796
+ {
1797
+ name: '_amountIn',
1798
+ type: 'uint256',
1799
+ },
1800
+ {
1801
+ name: '_minAmountOut',
1802
+ type: 'uint256',
1803
+ },
1804
+ {
1805
+ name: '_tokenPath',
1806
+ type: 'address[]',
1807
+ },
1808
+ {
1809
+ name: '_poolPath',
1810
+ type: 'address[]',
1811
+ },
1812
+ {
1813
+ name: '_recipient',
1814
+ type: 'address',
1815
+ },
1816
+ {
1817
+ name: '_miniAddys',
1818
+ type: 'tuple',
1819
+ components: [
1820
+ {
1821
+ name: 'ledger',
1822
+ type: 'address',
1823
+ },
1824
+ {
1825
+ name: 'missionControl',
1826
+ type: 'address',
1827
+ },
1828
+ {
1829
+ name: 'legoBook',
1830
+ type: 'address',
1831
+ },
1832
+ {
1833
+ name: 'appraiser',
1834
+ type: 'address',
1835
+ },
1836
+ ],
1837
+ },
1838
+ ],
1839
+ outputs: [
1840
+ {
1841
+ name: '',
1842
+ type: 'uint256',
1843
+ },
1844
+ {
1845
+ name: '',
1846
+ type: 'uint256',
1847
+ },
1848
+ {
1849
+ name: '',
1850
+ type: 'uint256',
1851
+ },
1852
+ ],
1853
+ },
1854
+ {
1855
+ stateMutability: 'nonpayable',
1856
+ type: 'function',
1857
+ name: 'mintOrRedeemAsset',
1858
+ inputs: [
1859
+ {
1860
+ name: '_tokenIn',
1861
+ type: 'address',
1862
+ },
1863
+ {
1864
+ name: '_tokenOut',
1865
+ type: 'address',
1866
+ },
1867
+ {
1868
+ name: '_tokenInAmount',
1869
+ type: 'uint256',
1870
+ },
1871
+ {
1872
+ name: '_minAmountOut',
1873
+ type: 'uint256',
1874
+ },
1875
+ {
1876
+ name: '_extraData',
1877
+ type: 'bytes32',
1878
+ },
1879
+ {
1880
+ name: '_recipient',
1881
+ type: 'address',
1882
+ },
1883
+ ],
1884
+ outputs: [
1885
+ {
1886
+ name: '',
1887
+ type: 'uint256',
1888
+ },
1889
+ {
1890
+ name: '',
1891
+ type: 'uint256',
1892
+ },
1893
+ {
1894
+ name: '',
1895
+ type: 'bool',
1896
+ },
1897
+ {
1898
+ name: '',
1899
+ type: 'uint256',
1900
+ },
1901
+ ],
1902
+ },
1903
+ {
1904
+ stateMutability: 'nonpayable',
1905
+ type: 'function',
1906
+ name: 'mintOrRedeemAsset',
1907
+ inputs: [
1908
+ {
1909
+ name: '_tokenIn',
1910
+ type: 'address',
1911
+ },
1912
+ {
1913
+ name: '_tokenOut',
1914
+ type: 'address',
1915
+ },
1916
+ {
1917
+ name: '_tokenInAmount',
1918
+ type: 'uint256',
1919
+ },
1920
+ {
1921
+ name: '_minAmountOut',
1922
+ type: 'uint256',
1923
+ },
1924
+ {
1925
+ name: '_extraData',
1926
+ type: 'bytes32',
1927
+ },
1928
+ {
1929
+ name: '_recipient',
1930
+ type: 'address',
1931
+ },
1932
+ {
1933
+ name: '_miniAddys',
1934
+ type: 'tuple',
1935
+ components: [
1936
+ {
1937
+ name: 'ledger',
1938
+ type: 'address',
1939
+ },
1940
+ {
1941
+ name: 'missionControl',
1942
+ type: 'address',
1943
+ },
1944
+ {
1945
+ name: 'legoBook',
1946
+ type: 'address',
1947
+ },
1948
+ {
1949
+ name: 'appraiser',
1950
+ type: 'address',
1951
+ },
1952
+ ],
1953
+ },
1954
+ ],
1955
+ outputs: [
1956
+ {
1957
+ name: '',
1958
+ type: 'uint256',
1959
+ },
1960
+ {
1961
+ name: '',
1962
+ type: 'uint256',
1963
+ },
1964
+ {
1965
+ name: '',
1966
+ type: 'bool',
1967
+ },
1968
+ {
1969
+ name: '',
1970
+ type: 'uint256',
1971
+ },
1972
+ ],
1973
+ },
1974
+ {
1975
+ stateMutability: 'nonpayable',
1976
+ type: 'function',
1977
+ name: 'confirmMintOrRedeemAsset',
1978
+ inputs: [
1979
+ {
1980
+ name: '_tokenIn',
1981
+ type: 'address',
1982
+ },
1983
+ {
1984
+ name: '_tokenOut',
1985
+ type: 'address',
1986
+ },
1987
+ {
1988
+ name: '_extraData',
1989
+ type: 'bytes32',
1990
+ },
1991
+ {
1992
+ name: '_recipient',
1993
+ type: 'address',
1994
+ },
1995
+ ],
1996
+ outputs: [
1997
+ {
1998
+ name: '',
1999
+ type: 'uint256',
2000
+ },
2001
+ {
2002
+ name: '',
2003
+ type: 'uint256',
2004
+ },
2005
+ ],
2006
+ },
2007
+ {
2008
+ stateMutability: 'nonpayable',
2009
+ type: 'function',
2010
+ name: 'confirmMintOrRedeemAsset',
2011
+ inputs: [
2012
+ {
2013
+ name: '_tokenIn',
2014
+ type: 'address',
2015
+ },
2016
+ {
2017
+ name: '_tokenOut',
2018
+ type: 'address',
2019
+ },
2020
+ {
2021
+ name: '_extraData',
2022
+ type: 'bytes32',
2023
+ },
2024
+ {
2025
+ name: '_recipient',
2026
+ type: 'address',
2027
+ },
2028
+ {
2029
+ name: '_miniAddys',
2030
+ type: 'tuple',
2031
+ components: [
2032
+ {
2033
+ name: 'ledger',
2034
+ type: 'address',
2035
+ },
2036
+ {
2037
+ name: 'missionControl',
2038
+ type: 'address',
2039
+ },
2040
+ {
2041
+ name: 'legoBook',
2042
+ type: 'address',
2043
+ },
2044
+ {
2045
+ name: 'appraiser',
2046
+ type: 'address',
2047
+ },
2048
+ ],
2049
+ },
2050
+ ],
2051
+ outputs: [
2052
+ {
2053
+ name: '',
2054
+ type: 'uint256',
2055
+ },
2056
+ {
2057
+ name: '',
2058
+ type: 'uint256',
2059
+ },
2060
+ ],
2061
+ },
2062
+ {
2063
+ stateMutability: 'nonpayable',
2064
+ type: 'function',
2065
+ name: 'addCollateral',
2066
+ inputs: [
2067
+ {
2068
+ name: '_asset',
2069
+ type: 'address',
2070
+ },
2071
+ {
2072
+ name: '_amount',
2073
+ type: 'uint256',
2074
+ },
2075
+ {
2076
+ name: '_extraData',
2077
+ type: 'bytes32',
2078
+ },
2079
+ {
2080
+ name: '_recipient',
2081
+ type: 'address',
2082
+ },
2083
+ ],
2084
+ outputs: [
2085
+ {
2086
+ name: '',
2087
+ type: 'uint256',
2088
+ },
2089
+ {
2090
+ name: '',
2091
+ type: 'uint256',
2092
+ },
2093
+ ],
2094
+ },
2095
+ {
2096
+ stateMutability: 'nonpayable',
2097
+ type: 'function',
2098
+ name: 'addCollateral',
2099
+ inputs: [
2100
+ {
2101
+ name: '_asset',
2102
+ type: 'address',
2103
+ },
2104
+ {
2105
+ name: '_amount',
2106
+ type: 'uint256',
2107
+ },
2108
+ {
2109
+ name: '_extraData',
2110
+ type: 'bytes32',
2111
+ },
2112
+ {
2113
+ name: '_recipient',
2114
+ type: 'address',
2115
+ },
2116
+ {
2117
+ name: '_miniAddys',
2118
+ type: 'tuple',
2119
+ components: [
2120
+ {
2121
+ name: 'ledger',
2122
+ type: 'address',
2123
+ },
2124
+ {
2125
+ name: 'missionControl',
2126
+ type: 'address',
2127
+ },
2128
+ {
2129
+ name: 'legoBook',
2130
+ type: 'address',
2131
+ },
2132
+ {
2133
+ name: 'appraiser',
2134
+ type: 'address',
2135
+ },
2136
+ ],
2137
+ },
2138
+ ],
2139
+ outputs: [
2140
+ {
2141
+ name: '',
2142
+ type: 'uint256',
2143
+ },
2144
+ {
2145
+ name: '',
2146
+ type: 'uint256',
2147
+ },
2148
+ ],
2149
+ },
2150
+ {
2151
+ stateMutability: 'nonpayable',
2152
+ type: 'function',
2153
+ name: 'removeCollateral',
2154
+ inputs: [
2155
+ {
2156
+ name: '_asset',
2157
+ type: 'address',
2158
+ },
2159
+ {
2160
+ name: '_amount',
2161
+ type: 'uint256',
2162
+ },
2163
+ {
2164
+ name: '_extraData',
2165
+ type: 'bytes32',
2166
+ },
2167
+ {
2168
+ name: '_recipient',
2169
+ type: 'address',
2170
+ },
2171
+ ],
2172
+ outputs: [
2173
+ {
2174
+ name: '',
2175
+ type: 'uint256',
2176
+ },
2177
+ {
2178
+ name: '',
2179
+ type: 'uint256',
2180
+ },
2181
+ ],
2182
+ },
2183
+ {
2184
+ stateMutability: 'nonpayable',
2185
+ type: 'function',
2186
+ name: 'removeCollateral',
2187
+ inputs: [
2188
+ {
2189
+ name: '_asset',
2190
+ type: 'address',
2191
+ },
2192
+ {
2193
+ name: '_amount',
2194
+ type: 'uint256',
2195
+ },
2196
+ {
2197
+ name: '_extraData',
2198
+ type: 'bytes32',
2199
+ },
2200
+ {
2201
+ name: '_recipient',
2202
+ type: 'address',
2203
+ },
2204
+ {
2205
+ name: '_miniAddys',
2206
+ type: 'tuple',
2207
+ components: [
2208
+ {
2209
+ name: 'ledger',
2210
+ type: 'address',
2211
+ },
2212
+ {
2213
+ name: 'missionControl',
2214
+ type: 'address',
2215
+ },
2216
+ {
2217
+ name: 'legoBook',
2218
+ type: 'address',
2219
+ },
2220
+ {
2221
+ name: 'appraiser',
2222
+ type: 'address',
2223
+ },
2224
+ ],
2225
+ },
2226
+ ],
2227
+ outputs: [
2228
+ {
2229
+ name: '',
2230
+ type: 'uint256',
2231
+ },
2232
+ {
2233
+ name: '',
2234
+ type: 'uint256',
2235
+ },
2236
+ ],
2237
+ },
2238
+ {
2239
+ stateMutability: 'nonpayable',
2240
+ type: 'function',
2241
+ name: 'borrow',
2242
+ inputs: [
2243
+ {
2244
+ name: '_borrowAsset',
2245
+ type: 'address',
2246
+ },
2247
+ {
2248
+ name: '_amount',
2249
+ type: 'uint256',
2250
+ },
2251
+ {
2252
+ name: '_extraData',
2253
+ type: 'bytes32',
2254
+ },
2255
+ {
2256
+ name: '_recipient',
2257
+ type: 'address',
2258
+ },
2259
+ ],
2260
+ outputs: [
2261
+ {
2262
+ name: '',
2263
+ type: 'uint256',
2264
+ },
2265
+ {
2266
+ name: '',
2267
+ type: 'uint256',
2268
+ },
2269
+ ],
2270
+ },
2271
+ {
2272
+ stateMutability: 'nonpayable',
2273
+ type: 'function',
2274
+ name: 'borrow',
2275
+ inputs: [
2276
+ {
2277
+ name: '_borrowAsset',
2278
+ type: 'address',
2279
+ },
2280
+ {
2281
+ name: '_amount',
2282
+ type: 'uint256',
2283
+ },
2284
+ {
2285
+ name: '_extraData',
2286
+ type: 'bytes32',
2287
+ },
2288
+ {
2289
+ name: '_recipient',
2290
+ type: 'address',
2291
+ },
2292
+ {
2293
+ name: '_miniAddys',
2294
+ type: 'tuple',
2295
+ components: [
2296
+ {
2297
+ name: 'ledger',
2298
+ type: 'address',
2299
+ },
2300
+ {
2301
+ name: 'missionControl',
2302
+ type: 'address',
2303
+ },
2304
+ {
2305
+ name: 'legoBook',
2306
+ type: 'address',
2307
+ },
2308
+ {
2309
+ name: 'appraiser',
2310
+ type: 'address',
2311
+ },
2312
+ ],
2313
+ },
2314
+ ],
2315
+ outputs: [
2316
+ {
2317
+ name: '',
2318
+ type: 'uint256',
2319
+ },
2320
+ {
2321
+ name: '',
2322
+ type: 'uint256',
2323
+ },
2324
+ ],
2325
+ },
2326
+ {
2327
+ stateMutability: 'nonpayable',
2328
+ type: 'function',
2329
+ name: 'repayDebt',
2330
+ inputs: [
2331
+ {
2332
+ name: '_paymentAsset',
2333
+ type: 'address',
2334
+ },
2335
+ {
2336
+ name: '_paymentAmount',
2337
+ type: 'uint256',
2338
+ },
2339
+ {
2340
+ name: '_extraData',
2341
+ type: 'bytes32',
2342
+ },
2343
+ {
2344
+ name: '_recipient',
2345
+ type: 'address',
2346
+ },
2347
+ ],
2348
+ outputs: [
2349
+ {
2350
+ name: '',
2351
+ type: 'uint256',
2352
+ },
2353
+ {
2354
+ name: '',
2355
+ type: 'uint256',
2356
+ },
2357
+ ],
2358
+ },
2359
+ {
2360
+ stateMutability: 'nonpayable',
2361
+ type: 'function',
2362
+ name: 'repayDebt',
2363
+ inputs: [
2364
+ {
2365
+ name: '_paymentAsset',
2366
+ type: 'address',
2367
+ },
2368
+ {
2369
+ name: '_paymentAmount',
2370
+ type: 'uint256',
2371
+ },
2372
+ {
2373
+ name: '_extraData',
2374
+ type: 'bytes32',
2375
+ },
2376
+ {
2377
+ name: '_recipient',
2378
+ type: 'address',
2379
+ },
2380
+ {
2381
+ name: '_miniAddys',
2382
+ type: 'tuple',
2383
+ components: [
2384
+ {
2385
+ name: 'ledger',
2386
+ type: 'address',
2387
+ },
2388
+ {
2389
+ name: 'missionControl',
2390
+ type: 'address',
2391
+ },
2392
+ {
2393
+ name: 'legoBook',
2394
+ type: 'address',
2395
+ },
2396
+ {
2397
+ name: 'appraiser',
2398
+ type: 'address',
2399
+ },
2400
+ ],
2401
+ },
2402
+ ],
2403
+ outputs: [
2404
+ {
2405
+ name: '',
2406
+ type: 'uint256',
2407
+ },
2408
+ {
2409
+ name: '',
2410
+ type: 'uint256',
2411
+ },
2412
+ ],
2413
+ },
2414
+ {
2415
+ stateMutability: 'nonpayable',
2416
+ type: 'function',
2417
+ name: 'addLiquidity',
2418
+ inputs: [
2419
+ {
2420
+ name: '_pool',
2421
+ type: 'address',
2422
+ },
2423
+ {
2424
+ name: '_tokenA',
2425
+ type: 'address',
2426
+ },
2427
+ {
2428
+ name: '_tokenB',
2429
+ type: 'address',
2430
+ },
2431
+ {
2432
+ name: '_amountA',
2433
+ type: 'uint256',
2434
+ },
2435
+ {
2436
+ name: '_amountB',
2437
+ type: 'uint256',
2438
+ },
2439
+ {
2440
+ name: '_minAmountA',
2441
+ type: 'uint256',
2442
+ },
2443
+ {
2444
+ name: '_minAmountB',
2445
+ type: 'uint256',
2446
+ },
2447
+ {
2448
+ name: '_minLpAmount',
2449
+ type: 'uint256',
2450
+ },
2451
+ {
2452
+ name: '_extraData',
2453
+ type: 'bytes32',
2454
+ },
2455
+ {
2456
+ name: '_recipient',
2457
+ type: 'address',
2458
+ },
2459
+ ],
2460
+ outputs: [
2461
+ {
2462
+ name: '',
2463
+ type: 'address',
2464
+ },
2465
+ {
2466
+ name: '',
2467
+ type: 'uint256',
2468
+ },
2469
+ {
2470
+ name: '',
2471
+ type: 'uint256',
2472
+ },
2473
+ {
2474
+ name: '',
2475
+ type: 'uint256',
2476
+ },
2477
+ {
2478
+ name: '',
2479
+ type: 'uint256',
2480
+ },
2481
+ ],
2482
+ },
2483
+ {
2484
+ stateMutability: 'nonpayable',
2485
+ type: 'function',
2486
+ name: 'addLiquidity',
2487
+ inputs: [
2488
+ {
2489
+ name: '_pool',
2490
+ type: 'address',
2491
+ },
2492
+ {
2493
+ name: '_tokenA',
2494
+ type: 'address',
2495
+ },
2496
+ {
2497
+ name: '_tokenB',
2498
+ type: 'address',
2499
+ },
2500
+ {
2501
+ name: '_amountA',
2502
+ type: 'uint256',
2503
+ },
2504
+ {
2505
+ name: '_amountB',
2506
+ type: 'uint256',
2507
+ },
2508
+ {
2509
+ name: '_minAmountA',
2510
+ type: 'uint256',
2511
+ },
2512
+ {
2513
+ name: '_minAmountB',
2514
+ type: 'uint256',
2515
+ },
2516
+ {
2517
+ name: '_minLpAmount',
2518
+ type: 'uint256',
2519
+ },
2520
+ {
2521
+ name: '_extraData',
2522
+ type: 'bytes32',
2523
+ },
2524
+ {
2525
+ name: '_recipient',
2526
+ type: 'address',
2527
+ },
2528
+ {
2529
+ name: '_miniAddys',
2530
+ type: 'tuple',
2531
+ components: [
2532
+ {
2533
+ name: 'ledger',
2534
+ type: 'address',
2535
+ },
2536
+ {
2537
+ name: 'missionControl',
2538
+ type: 'address',
2539
+ },
2540
+ {
2541
+ name: 'legoBook',
2542
+ type: 'address',
2543
+ },
2544
+ {
2545
+ name: 'appraiser',
2546
+ type: 'address',
2547
+ },
2548
+ ],
2549
+ },
2550
+ ],
2551
+ outputs: [
2552
+ {
2553
+ name: '',
2554
+ type: 'address',
2555
+ },
2556
+ {
2557
+ name: '',
2558
+ type: 'uint256',
2559
+ },
2560
+ {
2561
+ name: '',
2562
+ type: 'uint256',
2563
+ },
2564
+ {
2565
+ name: '',
2566
+ type: 'uint256',
2567
+ },
2568
+ {
2569
+ name: '',
2570
+ type: 'uint256',
2571
+ },
2572
+ ],
2573
+ },
2574
+ {
2575
+ stateMutability: 'nonpayable',
2576
+ type: 'function',
2577
+ name: 'removeLiquidity',
2578
+ inputs: [
2579
+ {
2580
+ name: '_pool',
2581
+ type: 'address',
2582
+ },
2583
+ {
2584
+ name: '_tokenA',
2585
+ type: 'address',
2586
+ },
2587
+ {
2588
+ name: '_tokenB',
2589
+ type: 'address',
2590
+ },
2591
+ {
2592
+ name: '_lpToken',
2593
+ type: 'address',
2594
+ },
2595
+ {
2596
+ name: '_lpAmount',
2597
+ type: 'uint256',
2598
+ },
2599
+ {
2600
+ name: '_minAmountA',
2601
+ type: 'uint256',
2602
+ },
2603
+ {
2604
+ name: '_minAmountB',
2605
+ type: 'uint256',
2606
+ },
2607
+ {
2608
+ name: '_extraData',
2609
+ type: 'bytes32',
2610
+ },
2611
+ {
2612
+ name: '_recipient',
2613
+ type: 'address',
2614
+ },
2615
+ ],
2616
+ outputs: [
2617
+ {
2618
+ name: '',
2619
+ type: 'uint256',
2620
+ },
2621
+ {
2622
+ name: '',
2623
+ type: 'uint256',
2624
+ },
2625
+ {
2626
+ name: '',
2627
+ type: 'uint256',
2628
+ },
2629
+ {
2630
+ name: '',
2631
+ type: 'uint256',
2632
+ },
2633
+ ],
2634
+ },
2635
+ {
2636
+ stateMutability: 'nonpayable',
2637
+ type: 'function',
2638
+ name: 'removeLiquidity',
2639
+ inputs: [
2640
+ {
2641
+ name: '_pool',
2642
+ type: 'address',
2643
+ },
2644
+ {
2645
+ name: '_tokenA',
2646
+ type: 'address',
2647
+ },
2648
+ {
2649
+ name: '_tokenB',
2650
+ type: 'address',
2651
+ },
2652
+ {
2653
+ name: '_lpToken',
2654
+ type: 'address',
2655
+ },
2656
+ {
2657
+ name: '_lpAmount',
2658
+ type: 'uint256',
2659
+ },
2660
+ {
2661
+ name: '_minAmountA',
2662
+ type: 'uint256',
2663
+ },
2664
+ {
2665
+ name: '_minAmountB',
2666
+ type: 'uint256',
2667
+ },
2668
+ {
2669
+ name: '_extraData',
2670
+ type: 'bytes32',
2671
+ },
2672
+ {
2673
+ name: '_recipient',
2674
+ type: 'address',
2675
+ },
2676
+ {
2677
+ name: '_miniAddys',
2678
+ type: 'tuple',
2679
+ components: [
2680
+ {
2681
+ name: 'ledger',
2682
+ type: 'address',
2683
+ },
2684
+ {
2685
+ name: 'missionControl',
2686
+ type: 'address',
2687
+ },
2688
+ {
2689
+ name: 'legoBook',
2690
+ type: 'address',
2691
+ },
2692
+ {
2693
+ name: 'appraiser',
2694
+ type: 'address',
2695
+ },
2696
+ ],
2697
+ },
2698
+ ],
2699
+ outputs: [
2700
+ {
2701
+ name: '',
2702
+ type: 'uint256',
2703
+ },
2704
+ {
2705
+ name: '',
2706
+ type: 'uint256',
2707
+ },
2708
+ {
2709
+ name: '',
2710
+ type: 'uint256',
2711
+ },
2712
+ {
2713
+ name: '',
2714
+ type: 'uint256',
2715
+ },
2716
+ ],
2717
+ },
2718
+ {
2719
+ stateMutability: 'nonpayable',
2720
+ type: 'function',
2721
+ name: 'addLiquidityConcentrated',
2722
+ inputs: [
2723
+ {
2724
+ name: '_nftTokenId',
2725
+ type: 'uint256',
2726
+ },
2727
+ {
2728
+ name: '_pool',
2729
+ type: 'address',
2730
+ },
2731
+ {
2732
+ name: '_tokenA',
2733
+ type: 'address',
2734
+ },
2735
+ {
2736
+ name: '_tokenB',
2737
+ type: 'address',
2738
+ },
2739
+ {
2740
+ name: '_tickLower',
2741
+ type: 'int24',
2742
+ },
2743
+ {
2744
+ name: '_tickUpper',
2745
+ type: 'int24',
2746
+ },
2747
+ {
2748
+ name: '_amountA',
2749
+ type: 'uint256',
2750
+ },
2751
+ {
2752
+ name: '_amountB',
2753
+ type: 'uint256',
2754
+ },
2755
+ {
2756
+ name: '_minAmountA',
2757
+ type: 'uint256',
2758
+ },
2759
+ {
2760
+ name: '_minAmountB',
2761
+ type: 'uint256',
2762
+ },
2763
+ {
2764
+ name: '_extraData',
2765
+ type: 'bytes32',
2766
+ },
2767
+ {
2768
+ name: '_recipient',
2769
+ type: 'address',
2770
+ },
2771
+ ],
2772
+ outputs: [
2773
+ {
2774
+ name: '',
2775
+ type: 'uint256',
2776
+ },
2777
+ {
2778
+ name: '',
2779
+ type: 'uint256',
2780
+ },
2781
+ {
2782
+ name: '',
2783
+ type: 'uint256',
2784
+ },
2785
+ {
2786
+ name: '',
2787
+ type: 'uint256',
2788
+ },
2789
+ {
2790
+ name: '',
2791
+ type: 'uint256',
2792
+ },
2793
+ ],
2794
+ },
2795
+ {
2796
+ stateMutability: 'nonpayable',
2797
+ type: 'function',
2798
+ name: 'addLiquidityConcentrated',
2799
+ inputs: [
2800
+ {
2801
+ name: '_nftTokenId',
2802
+ type: 'uint256',
2803
+ },
2804
+ {
2805
+ name: '_pool',
2806
+ type: 'address',
2807
+ },
2808
+ {
2809
+ name: '_tokenA',
2810
+ type: 'address',
2811
+ },
2812
+ {
2813
+ name: '_tokenB',
2814
+ type: 'address',
2815
+ },
2816
+ {
2817
+ name: '_tickLower',
2818
+ type: 'int24',
2819
+ },
2820
+ {
2821
+ name: '_tickUpper',
2822
+ type: 'int24',
2823
+ },
2824
+ {
2825
+ name: '_amountA',
2826
+ type: 'uint256',
2827
+ },
2828
+ {
2829
+ name: '_amountB',
2830
+ type: 'uint256',
2831
+ },
2832
+ {
2833
+ name: '_minAmountA',
2834
+ type: 'uint256',
2835
+ },
2836
+ {
2837
+ name: '_minAmountB',
2838
+ type: 'uint256',
2839
+ },
2840
+ {
2841
+ name: '_extraData',
2842
+ type: 'bytes32',
2843
+ },
2844
+ {
2845
+ name: '_recipient',
2846
+ type: 'address',
2847
+ },
2848
+ {
2849
+ name: '_miniAddys',
2850
+ type: 'tuple',
2851
+ components: [
2852
+ {
2853
+ name: 'ledger',
2854
+ type: 'address',
2855
+ },
2856
+ {
2857
+ name: 'missionControl',
2858
+ type: 'address',
2859
+ },
2860
+ {
2861
+ name: 'legoBook',
2862
+ type: 'address',
2863
+ },
2864
+ {
2865
+ name: 'appraiser',
2866
+ type: 'address',
2867
+ },
2868
+ ],
2869
+ },
2870
+ ],
2871
+ outputs: [
2872
+ {
2873
+ name: '',
2874
+ type: 'uint256',
2875
+ },
2876
+ {
2877
+ name: '',
2878
+ type: 'uint256',
2879
+ },
2880
+ {
2881
+ name: '',
2882
+ type: 'uint256',
2883
+ },
2884
+ {
2885
+ name: '',
2886
+ type: 'uint256',
2887
+ },
2888
+ {
2889
+ name: '',
2890
+ type: 'uint256',
2891
+ },
2892
+ ],
2893
+ },
2894
+ {
2895
+ stateMutability: 'nonpayable',
2896
+ type: 'function',
2897
+ name: 'removeLiquidityConcentrated',
2898
+ inputs: [
2899
+ {
2900
+ name: '_nftTokenId',
2901
+ type: 'uint256',
2902
+ },
2903
+ {
2904
+ name: '_pool',
2905
+ type: 'address',
2906
+ },
2907
+ {
2908
+ name: '_tokenA',
2909
+ type: 'address',
2910
+ },
2911
+ {
2912
+ name: '_tokenB',
2913
+ type: 'address',
2914
+ },
2915
+ {
2916
+ name: '_liqToRemove',
2917
+ type: 'uint256',
2918
+ },
2919
+ {
2920
+ name: '_minAmountA',
2921
+ type: 'uint256',
2922
+ },
2923
+ {
2924
+ name: '_minAmountB',
2925
+ type: 'uint256',
2926
+ },
2927
+ {
2928
+ name: '_extraData',
2929
+ type: 'bytes32',
2930
+ },
2931
+ {
2932
+ name: '_recipient',
2933
+ type: 'address',
2934
+ },
2935
+ ],
2936
+ outputs: [
2937
+ {
2938
+ name: '',
2939
+ type: 'uint256',
2940
+ },
2941
+ {
2942
+ name: '',
2943
+ type: 'uint256',
2944
+ },
2945
+ {
2946
+ name: '',
2947
+ type: 'uint256',
2948
+ },
2949
+ {
2950
+ name: '',
2951
+ type: 'bool',
2952
+ },
2953
+ {
2954
+ name: '',
2955
+ type: 'uint256',
2956
+ },
2957
+ ],
2958
+ },
2959
+ {
2960
+ stateMutability: 'nonpayable',
2961
+ type: 'function',
2962
+ name: 'removeLiquidityConcentrated',
2963
+ inputs: [
2964
+ {
2965
+ name: '_nftTokenId',
2966
+ type: 'uint256',
2967
+ },
2968
+ {
2969
+ name: '_pool',
2970
+ type: 'address',
2971
+ },
2972
+ {
2973
+ name: '_tokenA',
2974
+ type: 'address',
2975
+ },
2976
+ {
2977
+ name: '_tokenB',
2978
+ type: 'address',
2979
+ },
2980
+ {
2981
+ name: '_liqToRemove',
2982
+ type: 'uint256',
2983
+ },
2984
+ {
2985
+ name: '_minAmountA',
2986
+ type: 'uint256',
2987
+ },
2988
+ {
2989
+ name: '_minAmountB',
2990
+ type: 'uint256',
2991
+ },
2992
+ {
2993
+ name: '_extraData',
2994
+ type: 'bytes32',
2995
+ },
2996
+ {
2997
+ name: '_recipient',
2998
+ type: 'address',
2999
+ },
3000
+ {
3001
+ name: '_miniAddys',
3002
+ type: 'tuple',
3003
+ components: [
3004
+ {
3005
+ name: 'ledger',
3006
+ type: 'address',
3007
+ },
3008
+ {
3009
+ name: 'missionControl',
3010
+ type: 'address',
3011
+ },
3012
+ {
3013
+ name: 'legoBook',
3014
+ type: 'address',
3015
+ },
3016
+ {
3017
+ name: 'appraiser',
3018
+ type: 'address',
3019
+ },
3020
+ ],
3021
+ },
3022
+ ],
3023
+ outputs: [
3024
+ {
3025
+ name: '',
3026
+ type: 'uint256',
3027
+ },
3028
+ {
3029
+ name: '',
3030
+ type: 'uint256',
3031
+ },
3032
+ {
3033
+ name: '',
3034
+ type: 'uint256',
3035
+ },
3036
+ {
3037
+ name: '',
3038
+ type: 'bool',
3039
+ },
3040
+ {
3041
+ name: '',
3042
+ type: 'uint256',
3043
+ },
3044
+ ],
3045
+ },
3046
+ {
3047
+ stateMutability: 'view',
3048
+ type: 'function',
3049
+ name: 'vaultTokenToReserveId',
3050
+ inputs: [
3051
+ {
3052
+ name: 'arg0',
3053
+ type: 'address',
3054
+ },
3055
+ ],
3056
+ outputs: [
3057
+ {
3058
+ name: '',
3059
+ type: 'uint256',
3060
+ },
3061
+ ],
3062
+ },
3063
+ {
3064
+ stateMutability: 'view',
3065
+ type: 'function',
3066
+ name: 'EXTRAFI_POOL',
3067
+ inputs: [],
3068
+ outputs: [
3069
+ {
3070
+ name: '',
3071
+ type: 'address',
3072
+ },
3073
+ ],
3074
+ },
3075
+ {
3076
+ stateMutability: 'view',
3077
+ type: 'function',
3078
+ name: 'RIPE_REGISTRY',
3079
+ inputs: [],
3080
+ outputs: [
3081
+ {
3082
+ name: '',
3083
+ type: 'address',
3084
+ },
3085
+ ],
3086
+ },
3087
+ {
3088
+ stateMutability: 'nonpayable',
3089
+ type: 'constructor',
3090
+ inputs: [
3091
+ {
3092
+ name: '_undyHq',
3093
+ type: 'address',
3094
+ },
3095
+ {
3096
+ name: '_extraFiPool',
3097
+ type: 'address',
3098
+ },
3099
+ {
3100
+ name: '_ripeRegistry',
3101
+ type: 'address',
3102
+ },
3103
+ {
3104
+ name: '_reserveIds',
3105
+ type: 'uint256[]',
3106
+ },
3107
+ ],
3108
+ outputs: [],
3109
+ },
3110
+ ];
3111
+ export const deployAddress = '0x92D446F251D214c982c4371513355739634D4465';
3112
+ function getRequest(method, args, contractAddressOrOptions) {
3113
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
3114
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
3115
+ const call = {
3116
+ contractName: 'ExtraFi',
3117
+ method,
3118
+ args,
3119
+ address,
3120
+ deployAddress,
3121
+ defaultValue,
3122
+ getAbi: () => abi,
3123
+ with: (options) => {
3124
+ call.address = options.contractAddress;
3125
+ call.defaultValue = options.defaultValue;
3126
+ return call;
3127
+ },
3128
+ defaultTo: (defaultValue) => {
3129
+ call.defaultValue = defaultValue;
3130
+ return call;
3131
+ },
3132
+ at: (address) => {
3133
+ call.address = address;
3134
+ return call;
3135
+ },
3136
+ };
3137
+ return call;
3138
+ }
3139
+ export const call = {
3140
+ getAddys: (...args) => getRequest('getAddys', args),
3141
+ getUndyHq: (...args) => getRequest('getUndyHq', args),
3142
+ isLegoAsset: (...args) => getRequest('isLegoAsset', args),
3143
+ getAssetOpportunities: (...args) => getRequest('getAssetOpportunities', args),
3144
+ getAssets: (...args) => getRequest('getAssets', args),
3145
+ isAssetOpportunity: (...args) => getRequest('isAssetOpportunity', args),
3146
+ getNumLegoAssets: (...args) => getRequest('getNumLegoAssets', args),
3147
+ getWeightedPricePerShare: (...args) => getRequest('getWeightedPricePerShare', args),
3148
+ getLatestSnapshot: (...args) => getRequest('getLatestSnapshot', args),
3149
+ isValidPriceConfig: (...args) => getRequest('isValidPriceConfig', args),
3150
+ vaultToAsset: (...args) => getRequest('vaultToAsset', args),
3151
+ assetOpportunities: (...args) => getRequest('assetOpportunities', args),
3152
+ indexOfAssetOpportunity: (...args) => getRequest('indexOfAssetOpportunity', args),
3153
+ numAssetOpportunities: (...args) => getRequest('numAssetOpportunities', args),
3154
+ assets: (...args) => getRequest('assets', args),
3155
+ indexOfAsset: (...args) => getRequest('indexOfAsset', args),
3156
+ numAssets: (...args) => getRequest('numAssets', args),
3157
+ snapShotData: (...args) => getRequest('snapShotData', args),
3158
+ snapShots: (...args) => getRequest('snapShots', args),
3159
+ snapShotPriceConfig: (...args) => getRequest('snapShotPriceConfig', args),
3160
+ isPaused: (...args) => getRequest('isPaused', args),
3161
+ hasCapability: (...args) => getRequest('hasCapability', args),
3162
+ getRegistries: (...args) => getRequest('getRegistries', args),
3163
+ isYieldLego: (...args) => getRequest('isYieldLego', args),
3164
+ isDexLego: (...args) => getRequest('isDexLego', args),
3165
+ getUnderlyingAsset: (...args) => getRequest('getUnderlyingAsset', args),
3166
+ getUnderlyingBalances: (...args) => getRequest('getUnderlyingBalances', args),
3167
+ getUnderlyingAmount: (...args) => getRequest('getUnderlyingAmount', args),
3168
+ getUnderlyingAmountSafe: (...args) => getRequest('getUnderlyingAmountSafe', args),
3169
+ getUnderlyingData: (...args) => getRequest('getUnderlyingData', args),
3170
+ getUsdValueOfVaultToken: (...args) => getRequest('getUsdValueOfVaultToken', args),
3171
+ isRebasing: (...args) => getRequest('isRebasing', args),
3172
+ getPricePerShare: (...args) => getRequest('getPricePerShare', args),
3173
+ getVaultTokenAmount: (...args) => getRequest('getVaultTokenAmount', args),
3174
+ totalAssets: (...args) => getRequest('totalAssets', args),
3175
+ totalBorrows: (...args) => getRequest('totalBorrows', args),
3176
+ getAvailLiquidity: (...args) => getRequest('getAvailLiquidity', args),
3177
+ getUtilizationRatio: (...args) => getRequest('getUtilizationRatio', args),
3178
+ isEligibleForYieldBonus: (...args) => getRequest('isEligibleForYieldBonus', args),
3179
+ getWithdrawalFees: (...args) => getRequest('getWithdrawalFees', args),
3180
+ canRegisterVaultToken: (...args) => getRequest('canRegisterVaultToken', args),
3181
+ getAccessForLego: (...args) => getRequest('getAccessForLego', args),
3182
+ hasClaimableRewards: (...args) => getRequest('hasClaimableRewards', args),
3183
+ vaultTokenToReserveId: (...args) => getRequest('vaultTokenToReserveId', args),
3184
+ EXTRAFI_POOL: (...args) => getRequest('EXTRAFI_POOL', args),
3185
+ RIPE_REGISTRY: (...args) => getRequest('RIPE_REGISTRY', args),
3186
+ };
3187
+ function getMutation(functionName) {
3188
+ return {
3189
+ contractName: 'ExtraFi',
3190
+ functionName,
3191
+ deployAddress,
3192
+ argsType: undefined,
3193
+ getAbi: () => abi,
3194
+ };
3195
+ }
3196
+ export const mutation = {
3197
+ pause: getMutation('pause'),
3198
+ recoverFunds: getMutation('recoverFunds'),
3199
+ recoverFundsMany: getMutation('recoverFundsMany'),
3200
+ setSnapShotPriceConfig: getMutation('setSnapShotPriceConfig'),
3201
+ registerVaultTokenLocally: getMutation('registerVaultTokenLocally'),
3202
+ deregisterVaultTokenLocally: getMutation('deregisterVaultTokenLocally'),
3203
+ registerVaultTokensGlobally: getMutation('registerVaultTokensGlobally'),
3204
+ addPriceSnapshot: getMutation('addPriceSnapshot'),
3205
+ depositForYield: getMutation('depositForYield'),
3206
+ withdrawFromYield: getMutation('withdrawFromYield'),
3207
+ claimRewards: getMutation('claimRewards'),
3208
+ claimIncentives: getMutation('claimIncentives'),
3209
+ swapTokens: getMutation('swapTokens'),
3210
+ mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
3211
+ confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
3212
+ addCollateral: getMutation('addCollateral'),
3213
+ removeCollateral: getMutation('removeCollateral'),
3214
+ borrow: getMutation('borrow'),
3215
+ repayDebt: getMutation('repayDebt'),
3216
+ addLiquidity: getMutation('addLiquidity'),
3217
+ removeLiquidity: getMutation('removeLiquidity'),
3218
+ addLiquidityConcentrated: getMutation('addLiquidityConcentrated'),
3219
+ removeLiquidityConcentrated: getMutation('removeLiquidityConcentrated'),
3220
+ };
3221
+ export function toSdk(publicClient, walletClient) {
3222
+ return {
3223
+ deployAddress,
3224
+ abi,
3225
+ // Queries
3226
+ getAddys: (...args) => singleQuery(publicClient, call.getAddys(...args)),
3227
+ getUndyHq: (...args) => singleQuery(publicClient, call.getUndyHq(...args)),
3228
+ isLegoAsset: (...args) => singleQuery(publicClient, call.isLegoAsset(...args)),
3229
+ getAssetOpportunities: (...args) => singleQuery(publicClient, call.getAssetOpportunities(...args)),
3230
+ getAssets: (...args) => singleQuery(publicClient, call.getAssets(...args)),
3231
+ isAssetOpportunity: (...args) => singleQuery(publicClient, call.isAssetOpportunity(...args)),
3232
+ getNumLegoAssets: (...args) => singleQuery(publicClient, call.getNumLegoAssets(...args)),
3233
+ getWeightedPricePerShare: (...args) => singleQuery(publicClient, call.getWeightedPricePerShare(...args)),
3234
+ getLatestSnapshot: (...args) => singleQuery(publicClient, call.getLatestSnapshot(...args)),
3235
+ isValidPriceConfig: (...args) => singleQuery(publicClient, call.isValidPriceConfig(...args)),
3236
+ vaultToAsset: (...args) => singleQuery(publicClient, call.vaultToAsset(...args)),
3237
+ assetOpportunities: (...args) => singleQuery(publicClient, call.assetOpportunities(...args)),
3238
+ indexOfAssetOpportunity: (...args) => singleQuery(publicClient, call.indexOfAssetOpportunity(...args)),
3239
+ numAssetOpportunities: (...args) => singleQuery(publicClient, call.numAssetOpportunities(...args)),
3240
+ assets: (...args) => singleQuery(publicClient, call.assets(...args)),
3241
+ indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
3242
+ numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args)),
3243
+ snapShotData: (...args) => singleQuery(publicClient, call.snapShotData(...args)),
3244
+ snapShots: (...args) => singleQuery(publicClient, call.snapShots(...args)),
3245
+ snapShotPriceConfig: (...args) => singleQuery(publicClient, call.snapShotPriceConfig(...args)),
3246
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
3247
+ hasCapability: (...args) => singleQuery(publicClient, call.hasCapability(...args)),
3248
+ getRegistries: (...args) => singleQuery(publicClient, call.getRegistries(...args)),
3249
+ isYieldLego: (...args) => singleQuery(publicClient, call.isYieldLego(...args)),
3250
+ isDexLego: (...args) => singleQuery(publicClient, call.isDexLego(...args)),
3251
+ getUnderlyingAsset: (...args) => singleQuery(publicClient, call.getUnderlyingAsset(...args)),
3252
+ getUnderlyingBalances: (...args) => singleQuery(publicClient, call.getUnderlyingBalances(...args)),
3253
+ getUnderlyingAmount: (...args) => singleQuery(publicClient, call.getUnderlyingAmount(...args)),
3254
+ getUnderlyingAmountSafe: (...args) => singleQuery(publicClient, call.getUnderlyingAmountSafe(...args)),
3255
+ getUnderlyingData: (...args) => singleQuery(publicClient, call.getUnderlyingData(...args)),
3256
+ getUsdValueOfVaultToken: (...args) => singleQuery(publicClient, call.getUsdValueOfVaultToken(...args)),
3257
+ isRebasing: (...args) => singleQuery(publicClient, call.isRebasing(...args)),
3258
+ getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
3259
+ getVaultTokenAmount: (...args) => singleQuery(publicClient, call.getVaultTokenAmount(...args)),
3260
+ totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args)),
3261
+ totalBorrows: (...args) => singleQuery(publicClient, call.totalBorrows(...args)),
3262
+ getAvailLiquidity: (...args) => singleQuery(publicClient, call.getAvailLiquidity(...args)),
3263
+ getUtilizationRatio: (...args) => singleQuery(publicClient, call.getUtilizationRatio(...args)),
3264
+ isEligibleForYieldBonus: (...args) => singleQuery(publicClient, call.isEligibleForYieldBonus(...args)),
3265
+ getWithdrawalFees: (...args) => singleQuery(publicClient, call.getWithdrawalFees(...args)),
3266
+ canRegisterVaultToken: (...args) => singleQuery(publicClient, call.canRegisterVaultToken(...args)),
3267
+ getAccessForLego: (...args) => singleQuery(publicClient, call.getAccessForLego(...args)),
3268
+ hasClaimableRewards: (...args) => singleQuery(publicClient, call.hasClaimableRewards(...args)),
3269
+ vaultTokenToReserveId: (...args) => singleQuery(publicClient, call.vaultTokenToReserveId(...args)),
3270
+ EXTRAFI_POOL: (...args) => singleQuery(publicClient, call.EXTRAFI_POOL(...args)),
3271
+ RIPE_REGISTRY: (...args) => singleQuery(publicClient, call.RIPE_REGISTRY(...args)),
3272
+ // Mutations
3273
+ pause: (...args) => mutate(walletClient, mutation.pause)(...args),
3274
+ recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
3275
+ recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany)(...args),
3276
+ setSnapShotPriceConfig: (...args) => mutate(walletClient, mutation.setSnapShotPriceConfig)(...args),
3277
+ registerVaultTokenLocally: (...args) => mutate(walletClient, mutation.registerVaultTokenLocally)(...args),
3278
+ deregisterVaultTokenLocally: (...args) => mutate(walletClient, mutation.deregisterVaultTokenLocally)(...args),
3279
+ registerVaultTokensGlobally: (...args) => mutate(walletClient, mutation.registerVaultTokensGlobally)(...args),
3280
+ addPriceSnapshot: (...args) => mutate(walletClient, mutation.addPriceSnapshot)(...args),
3281
+ depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
3282
+ withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
3283
+ claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
3284
+ claimIncentives: (...args) => mutate(walletClient, mutation.claimIncentives)(...args),
3285
+ swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
3286
+ mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset)(...args),
3287
+ confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset)(...args),
3288
+ addCollateral: (...args) => mutate(walletClient, mutation.addCollateral)(...args),
3289
+ removeCollateral: (...args) => mutate(walletClient, mutation.removeCollateral)(...args),
3290
+ borrow: (...args) => mutate(walletClient, mutation.borrow)(...args),
3291
+ repayDebt: (...args) => mutate(walletClient, mutation.repayDebt)(...args),
3292
+ addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity)(...args),
3293
+ removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity)(...args),
3294
+ addLiquidityConcentrated: (...args) => mutate(walletClient, mutation.addLiquidityConcentrated)(...args),
3295
+ removeLiquidityConcentrated: (...args) => mutate(walletClient, mutation.removeLiquidityConcentrated)(...args),
3296
+ };
3297
+ }