@curvefi/api 2.50.10 → 2.51.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,996 @@
1
+ [
2
+ {
3
+ "name": "BasePoolAdded",
4
+ "inputs": [
5
+ {
6
+ "name": "base_pool",
7
+ "type": "address",
8
+ "indexed": false
9
+ }
10
+ ],
11
+ "anonymous": false,
12
+ "type": "event"
13
+ },
14
+ {
15
+ "name": "PlainPoolDeployed",
16
+ "inputs": [
17
+ {
18
+ "name": "coins",
19
+ "type": "address[]",
20
+ "indexed": false
21
+ },
22
+ {
23
+ "name": "A",
24
+ "type": "uint256",
25
+ "indexed": false
26
+ },
27
+ {
28
+ "name": "fee",
29
+ "type": "uint256",
30
+ "indexed": false
31
+ },
32
+ {
33
+ "name": "deployer",
34
+ "type": "address",
35
+ "indexed": false
36
+ }
37
+ ],
38
+ "anonymous": false,
39
+ "type": "event"
40
+ },
41
+ {
42
+ "name": "MetaPoolDeployed",
43
+ "inputs": [
44
+ {
45
+ "name": "coin",
46
+ "type": "address",
47
+ "indexed": false
48
+ },
49
+ {
50
+ "name": "base_pool",
51
+ "type": "address",
52
+ "indexed": false
53
+ },
54
+ {
55
+ "name": "A",
56
+ "type": "uint256",
57
+ "indexed": false
58
+ },
59
+ {
60
+ "name": "fee",
61
+ "type": "uint256",
62
+ "indexed": false
63
+ },
64
+ {
65
+ "name": "deployer",
66
+ "type": "address",
67
+ "indexed": false
68
+ }
69
+ ],
70
+ "anonymous": false,
71
+ "type": "event"
72
+ },
73
+ {
74
+ "name": "LiquidityGaugeDeployed",
75
+ "inputs": [
76
+ {
77
+ "name": "pool",
78
+ "type": "address",
79
+ "indexed": false
80
+ },
81
+ {
82
+ "name": "gauge",
83
+ "type": "address",
84
+ "indexed": false
85
+ }
86
+ ],
87
+ "anonymous": false,
88
+ "type": "event"
89
+ },
90
+ {
91
+ "stateMutability": "nonpayable",
92
+ "type": "constructor",
93
+ "inputs": [
94
+ {
95
+ "name": "_fee_receiver",
96
+ "type": "address"
97
+ },
98
+ {
99
+ "name": "_owner",
100
+ "type": "address"
101
+ }
102
+ ],
103
+ "outputs": []
104
+ },
105
+ {
106
+ "stateMutability": "view",
107
+ "type": "function",
108
+ "name": "find_pool_for_coins",
109
+ "inputs": [
110
+ {
111
+ "name": "_from",
112
+ "type": "address"
113
+ },
114
+ {
115
+ "name": "_to",
116
+ "type": "address"
117
+ }
118
+ ],
119
+ "outputs": [
120
+ {
121
+ "name": "",
122
+ "type": "address"
123
+ }
124
+ ]
125
+ },
126
+ {
127
+ "stateMutability": "view",
128
+ "type": "function",
129
+ "name": "find_pool_for_coins",
130
+ "inputs": [
131
+ {
132
+ "name": "_from",
133
+ "type": "address"
134
+ },
135
+ {
136
+ "name": "_to",
137
+ "type": "address"
138
+ },
139
+ {
140
+ "name": "i",
141
+ "type": "uint256"
142
+ }
143
+ ],
144
+ "outputs": [
145
+ {
146
+ "name": "",
147
+ "type": "address"
148
+ }
149
+ ]
150
+ },
151
+ {
152
+ "stateMutability": "view",
153
+ "type": "function",
154
+ "name": "get_base_pool",
155
+ "inputs": [
156
+ {
157
+ "name": "_pool",
158
+ "type": "address"
159
+ }
160
+ ],
161
+ "outputs": [
162
+ {
163
+ "name": "",
164
+ "type": "address"
165
+ }
166
+ ]
167
+ },
168
+ {
169
+ "stateMutability": "view",
170
+ "type": "function",
171
+ "name": "get_n_coins",
172
+ "inputs": [
173
+ {
174
+ "name": "_pool",
175
+ "type": "address"
176
+ }
177
+ ],
178
+ "outputs": [
179
+ {
180
+ "name": "",
181
+ "type": "uint256"
182
+ }
183
+ ]
184
+ },
185
+ {
186
+ "stateMutability": "view",
187
+ "type": "function",
188
+ "name": "get_meta_n_coins",
189
+ "inputs": [
190
+ {
191
+ "name": "_pool",
192
+ "type": "address"
193
+ }
194
+ ],
195
+ "outputs": [
196
+ {
197
+ "name": "",
198
+ "type": "uint256"
199
+ },
200
+ {
201
+ "name": "",
202
+ "type": "uint256"
203
+ }
204
+ ]
205
+ },
206
+ {
207
+ "stateMutability": "view",
208
+ "type": "function",
209
+ "name": "get_coins",
210
+ "inputs": [
211
+ {
212
+ "name": "_pool",
213
+ "type": "address"
214
+ }
215
+ ],
216
+ "outputs": [
217
+ {
218
+ "name": "",
219
+ "type": "address[]"
220
+ }
221
+ ]
222
+ },
223
+ {
224
+ "stateMutability": "view",
225
+ "type": "function",
226
+ "name": "get_underlying_coins",
227
+ "inputs": [
228
+ {
229
+ "name": "_pool",
230
+ "type": "address"
231
+ }
232
+ ],
233
+ "outputs": [
234
+ {
235
+ "name": "",
236
+ "type": "address[]"
237
+ }
238
+ ]
239
+ },
240
+ {
241
+ "stateMutability": "view",
242
+ "type": "function",
243
+ "name": "get_decimals",
244
+ "inputs": [
245
+ {
246
+ "name": "_pool",
247
+ "type": "address"
248
+ }
249
+ ],
250
+ "outputs": [
251
+ {
252
+ "name": "",
253
+ "type": "uint256[]"
254
+ }
255
+ ]
256
+ },
257
+ {
258
+ "stateMutability": "view",
259
+ "type": "function",
260
+ "name": "get_underlying_decimals",
261
+ "inputs": [
262
+ {
263
+ "name": "_pool",
264
+ "type": "address"
265
+ }
266
+ ],
267
+ "outputs": [
268
+ {
269
+ "name": "",
270
+ "type": "uint256[]"
271
+ }
272
+ ]
273
+ },
274
+ {
275
+ "stateMutability": "view",
276
+ "type": "function",
277
+ "name": "get_metapool_rates",
278
+ "inputs": [
279
+ {
280
+ "name": "_pool",
281
+ "type": "address"
282
+ }
283
+ ],
284
+ "outputs": [
285
+ {
286
+ "name": "",
287
+ "type": "uint256[]"
288
+ }
289
+ ]
290
+ },
291
+ {
292
+ "stateMutability": "view",
293
+ "type": "function",
294
+ "name": "get_balances",
295
+ "inputs": [
296
+ {
297
+ "name": "_pool",
298
+ "type": "address"
299
+ }
300
+ ],
301
+ "outputs": [
302
+ {
303
+ "name": "",
304
+ "type": "uint256[]"
305
+ }
306
+ ]
307
+ },
308
+ {
309
+ "stateMutability": "view",
310
+ "type": "function",
311
+ "name": "get_underlying_balances",
312
+ "inputs": [
313
+ {
314
+ "name": "_pool",
315
+ "type": "address"
316
+ }
317
+ ],
318
+ "outputs": [
319
+ {
320
+ "name": "",
321
+ "type": "uint256[]"
322
+ }
323
+ ]
324
+ },
325
+ {
326
+ "stateMutability": "view",
327
+ "type": "function",
328
+ "name": "get_A",
329
+ "inputs": [
330
+ {
331
+ "name": "_pool",
332
+ "type": "address"
333
+ }
334
+ ],
335
+ "outputs": [
336
+ {
337
+ "name": "",
338
+ "type": "uint256"
339
+ }
340
+ ]
341
+ },
342
+ {
343
+ "stateMutability": "view",
344
+ "type": "function",
345
+ "name": "get_fees",
346
+ "inputs": [
347
+ {
348
+ "name": "_pool",
349
+ "type": "address"
350
+ }
351
+ ],
352
+ "outputs": [
353
+ {
354
+ "name": "",
355
+ "type": "uint256"
356
+ },
357
+ {
358
+ "name": "",
359
+ "type": "uint256"
360
+ }
361
+ ]
362
+ },
363
+ {
364
+ "stateMutability": "view",
365
+ "type": "function",
366
+ "name": "get_admin_balances",
367
+ "inputs": [
368
+ {
369
+ "name": "_pool",
370
+ "type": "address"
371
+ }
372
+ ],
373
+ "outputs": [
374
+ {
375
+ "name": "",
376
+ "type": "uint256[]"
377
+ }
378
+ ]
379
+ },
380
+ {
381
+ "stateMutability": "view",
382
+ "type": "function",
383
+ "name": "get_coin_indices",
384
+ "inputs": [
385
+ {
386
+ "name": "_pool",
387
+ "type": "address"
388
+ },
389
+ {
390
+ "name": "_from",
391
+ "type": "address"
392
+ },
393
+ {
394
+ "name": "_to",
395
+ "type": "address"
396
+ }
397
+ ],
398
+ "outputs": [
399
+ {
400
+ "name": "",
401
+ "type": "int128"
402
+ },
403
+ {
404
+ "name": "",
405
+ "type": "int128"
406
+ },
407
+ {
408
+ "name": "",
409
+ "type": "bool"
410
+ }
411
+ ]
412
+ },
413
+ {
414
+ "stateMutability": "view",
415
+ "type": "function",
416
+ "name": "get_gauge",
417
+ "inputs": [
418
+ {
419
+ "name": "_pool",
420
+ "type": "address"
421
+ }
422
+ ],
423
+ "outputs": [
424
+ {
425
+ "name": "",
426
+ "type": "address"
427
+ }
428
+ ]
429
+ },
430
+ {
431
+ "stateMutability": "view",
432
+ "type": "function",
433
+ "name": "get_implementation_address",
434
+ "inputs": [
435
+ {
436
+ "name": "_pool",
437
+ "type": "address"
438
+ }
439
+ ],
440
+ "outputs": [
441
+ {
442
+ "name": "",
443
+ "type": "address"
444
+ }
445
+ ]
446
+ },
447
+ {
448
+ "stateMutability": "view",
449
+ "type": "function",
450
+ "name": "is_meta",
451
+ "inputs": [
452
+ {
453
+ "name": "_pool",
454
+ "type": "address"
455
+ }
456
+ ],
457
+ "outputs": [
458
+ {
459
+ "name": "",
460
+ "type": "bool"
461
+ }
462
+ ]
463
+ },
464
+ {
465
+ "stateMutability": "view",
466
+ "type": "function",
467
+ "name": "get_pool_asset_types",
468
+ "inputs": [
469
+ {
470
+ "name": "_pool",
471
+ "type": "address"
472
+ }
473
+ ],
474
+ "outputs": [
475
+ {
476
+ "name": "",
477
+ "type": "uint8[]"
478
+ }
479
+ ]
480
+ },
481
+ {
482
+ "stateMutability": "nonpayable",
483
+ "type": "function",
484
+ "name": "deploy_plain_pool",
485
+ "inputs": [
486
+ {
487
+ "name": "_name",
488
+ "type": "string"
489
+ },
490
+ {
491
+ "name": "_symbol",
492
+ "type": "string"
493
+ },
494
+ {
495
+ "name": "_coins",
496
+ "type": "address[]"
497
+ },
498
+ {
499
+ "name": "_A",
500
+ "type": "uint256"
501
+ },
502
+ {
503
+ "name": "_fee",
504
+ "type": "uint256"
505
+ },
506
+ {
507
+ "name": "_offpeg_fee_multiplier",
508
+ "type": "uint256"
509
+ },
510
+ {
511
+ "name": "_ma_exp_time",
512
+ "type": "uint256"
513
+ },
514
+ {
515
+ "name": "_implementation_idx",
516
+ "type": "uint256"
517
+ },
518
+ {
519
+ "name": "_asset_types",
520
+ "type": "uint8[]"
521
+ },
522
+ {
523
+ "name": "_method_ids",
524
+ "type": "bytes4[]"
525
+ },
526
+ {
527
+ "name": "_oracles",
528
+ "type": "address[]"
529
+ }
530
+ ],
531
+ "outputs": [
532
+ {
533
+ "name": "",
534
+ "type": "address"
535
+ }
536
+ ]
537
+ },
538
+ {
539
+ "stateMutability": "nonpayable",
540
+ "type": "function",
541
+ "name": "deploy_metapool",
542
+ "inputs": [
543
+ {
544
+ "name": "_base_pool",
545
+ "type": "address"
546
+ },
547
+ {
548
+ "name": "_name",
549
+ "type": "string"
550
+ },
551
+ {
552
+ "name": "_symbol",
553
+ "type": "string"
554
+ },
555
+ {
556
+ "name": "_coin",
557
+ "type": "address"
558
+ },
559
+ {
560
+ "name": "_A",
561
+ "type": "uint256"
562
+ },
563
+ {
564
+ "name": "_fee",
565
+ "type": "uint256"
566
+ },
567
+ {
568
+ "name": "_offpeg_fee_multiplier",
569
+ "type": "uint256"
570
+ },
571
+ {
572
+ "name": "_ma_exp_time",
573
+ "type": "uint256"
574
+ },
575
+ {
576
+ "name": "_implementation_idx",
577
+ "type": "uint256"
578
+ },
579
+ {
580
+ "name": "_asset_type",
581
+ "type": "uint8"
582
+ },
583
+ {
584
+ "name": "_method_id",
585
+ "type": "bytes4"
586
+ },
587
+ {
588
+ "name": "_oracle",
589
+ "type": "address"
590
+ }
591
+ ],
592
+ "outputs": [
593
+ {
594
+ "name": "",
595
+ "type": "address"
596
+ }
597
+ ]
598
+ },
599
+ {
600
+ "stateMutability": "nonpayable",
601
+ "type": "function",
602
+ "name": "deploy_gauge",
603
+ "inputs": [
604
+ {
605
+ "name": "_pool",
606
+ "type": "address"
607
+ }
608
+ ],
609
+ "outputs": [
610
+ {
611
+ "name": "",
612
+ "type": "address"
613
+ }
614
+ ]
615
+ },
616
+ {
617
+ "stateMutability": "nonpayable",
618
+ "type": "function",
619
+ "name": "add_base_pool",
620
+ "inputs": [
621
+ {
622
+ "name": "_base_pool",
623
+ "type": "address"
624
+ },
625
+ {
626
+ "name": "_base_lp_token",
627
+ "type": "address"
628
+ },
629
+ {
630
+ "name": "_asset_types",
631
+ "type": "uint8[]"
632
+ },
633
+ {
634
+ "name": "_n_coins",
635
+ "type": "uint256"
636
+ }
637
+ ],
638
+ "outputs": []
639
+ },
640
+ {
641
+ "stateMutability": "nonpayable",
642
+ "type": "function",
643
+ "name": "set_pool_implementations",
644
+ "inputs": [
645
+ {
646
+ "name": "_implementation_index",
647
+ "type": "uint256"
648
+ },
649
+ {
650
+ "name": "_implementation",
651
+ "type": "address"
652
+ }
653
+ ],
654
+ "outputs": []
655
+ },
656
+ {
657
+ "stateMutability": "nonpayable",
658
+ "type": "function",
659
+ "name": "set_metapool_implementations",
660
+ "inputs": [
661
+ {
662
+ "name": "_implementation_index",
663
+ "type": "uint256"
664
+ },
665
+ {
666
+ "name": "_implementation",
667
+ "type": "address"
668
+ }
669
+ ],
670
+ "outputs": []
671
+ },
672
+ {
673
+ "stateMutability": "nonpayable",
674
+ "type": "function",
675
+ "name": "set_math_implementation",
676
+ "inputs": [
677
+ {
678
+ "name": "_math_implementation",
679
+ "type": "address"
680
+ }
681
+ ],
682
+ "outputs": []
683
+ },
684
+ {
685
+ "stateMutability": "nonpayable",
686
+ "type": "function",
687
+ "name": "set_gauge_implementation",
688
+ "inputs": [
689
+ {
690
+ "name": "_gauge_implementation",
691
+ "type": "address"
692
+ }
693
+ ],
694
+ "outputs": []
695
+ },
696
+ {
697
+ "stateMutability": "nonpayable",
698
+ "type": "function",
699
+ "name": "set_views_implementation",
700
+ "inputs": [
701
+ {
702
+ "name": "_views_implementation",
703
+ "type": "address"
704
+ }
705
+ ],
706
+ "outputs": []
707
+ },
708
+ {
709
+ "stateMutability": "nonpayable",
710
+ "type": "function",
711
+ "name": "commit_transfer_ownership",
712
+ "inputs": [
713
+ {
714
+ "name": "_addr",
715
+ "type": "address"
716
+ }
717
+ ],
718
+ "outputs": []
719
+ },
720
+ {
721
+ "stateMutability": "nonpayable",
722
+ "type": "function",
723
+ "name": "accept_transfer_ownership",
724
+ "inputs": [],
725
+ "outputs": []
726
+ },
727
+ {
728
+ "stateMutability": "nonpayable",
729
+ "type": "function",
730
+ "name": "set_fee_receiver",
731
+ "inputs": [
732
+ {
733
+ "name": "_pool",
734
+ "type": "address"
735
+ },
736
+ {
737
+ "name": "_fee_receiver",
738
+ "type": "address"
739
+ }
740
+ ],
741
+ "outputs": []
742
+ },
743
+ {
744
+ "stateMutability": "nonpayable",
745
+ "type": "function",
746
+ "name": "add_asset_type",
747
+ "inputs": [
748
+ {
749
+ "name": "_id",
750
+ "type": "uint8"
751
+ },
752
+ {
753
+ "name": "_name",
754
+ "type": "string"
755
+ }
756
+ ],
757
+ "outputs": []
758
+ },
759
+ {
760
+ "stateMutability": "view",
761
+ "type": "function",
762
+ "name": "admin",
763
+ "inputs": [],
764
+ "outputs": [
765
+ {
766
+ "name": "",
767
+ "type": "address"
768
+ }
769
+ ]
770
+ },
771
+ {
772
+ "stateMutability": "view",
773
+ "type": "function",
774
+ "name": "future_admin",
775
+ "inputs": [],
776
+ "outputs": [
777
+ {
778
+ "name": "",
779
+ "type": "address"
780
+ }
781
+ ]
782
+ },
783
+ {
784
+ "stateMutability": "view",
785
+ "type": "function",
786
+ "name": "asset_types",
787
+ "inputs": [
788
+ {
789
+ "name": "arg0",
790
+ "type": "uint8"
791
+ }
792
+ ],
793
+ "outputs": [
794
+ {
795
+ "name": "",
796
+ "type": "string"
797
+ }
798
+ ]
799
+ },
800
+ {
801
+ "stateMutability": "view",
802
+ "type": "function",
803
+ "name": "pool_list",
804
+ "inputs": [
805
+ {
806
+ "name": "arg0",
807
+ "type": "uint256"
808
+ }
809
+ ],
810
+ "outputs": [
811
+ {
812
+ "name": "",
813
+ "type": "address"
814
+ }
815
+ ]
816
+ },
817
+ {
818
+ "stateMutability": "view",
819
+ "type": "function",
820
+ "name": "pool_count",
821
+ "inputs": [],
822
+ "outputs": [
823
+ {
824
+ "name": "",
825
+ "type": "uint256"
826
+ }
827
+ ]
828
+ },
829
+ {
830
+ "stateMutability": "view",
831
+ "type": "function",
832
+ "name": "base_pool_list",
833
+ "inputs": [
834
+ {
835
+ "name": "arg0",
836
+ "type": "uint256"
837
+ }
838
+ ],
839
+ "outputs": [
840
+ {
841
+ "name": "",
842
+ "type": "address"
843
+ }
844
+ ]
845
+ },
846
+ {
847
+ "stateMutability": "view",
848
+ "type": "function",
849
+ "name": "base_pool_count",
850
+ "inputs": [],
851
+ "outputs": [
852
+ {
853
+ "name": "",
854
+ "type": "uint256"
855
+ }
856
+ ]
857
+ },
858
+ {
859
+ "stateMutability": "view",
860
+ "type": "function",
861
+ "name": "base_pool_data",
862
+ "inputs": [
863
+ {
864
+ "name": "arg0",
865
+ "type": "address"
866
+ }
867
+ ],
868
+ "outputs": [
869
+ {
870
+ "name": "",
871
+ "type": "tuple",
872
+ "components": [
873
+ {
874
+ "name": "lp_token",
875
+ "type": "address"
876
+ },
877
+ {
878
+ "name": "coins",
879
+ "type": "address[]"
880
+ },
881
+ {
882
+ "name": "decimals",
883
+ "type": "uint256"
884
+ },
885
+ {
886
+ "name": "n_coins",
887
+ "type": "uint256"
888
+ },
889
+ {
890
+ "name": "asset_types",
891
+ "type": "uint8[]"
892
+ }
893
+ ]
894
+ }
895
+ ]
896
+ },
897
+ {
898
+ "stateMutability": "view",
899
+ "type": "function",
900
+ "name": "base_pool_assets",
901
+ "inputs": [
902
+ {
903
+ "name": "arg0",
904
+ "type": "address"
905
+ }
906
+ ],
907
+ "outputs": [
908
+ {
909
+ "name": "",
910
+ "type": "bool"
911
+ }
912
+ ]
913
+ },
914
+ {
915
+ "stateMutability": "view",
916
+ "type": "function",
917
+ "name": "pool_implementations",
918
+ "inputs": [
919
+ {
920
+ "name": "arg0",
921
+ "type": "uint256"
922
+ }
923
+ ],
924
+ "outputs": [
925
+ {
926
+ "name": "",
927
+ "type": "address"
928
+ }
929
+ ]
930
+ },
931
+ {
932
+ "stateMutability": "view",
933
+ "type": "function",
934
+ "name": "metapool_implementations",
935
+ "inputs": [
936
+ {
937
+ "name": "arg0",
938
+ "type": "uint256"
939
+ }
940
+ ],
941
+ "outputs": [
942
+ {
943
+ "name": "",
944
+ "type": "address"
945
+ }
946
+ ]
947
+ },
948
+ {
949
+ "stateMutability": "view",
950
+ "type": "function",
951
+ "name": "math_implementation",
952
+ "inputs": [],
953
+ "outputs": [
954
+ {
955
+ "name": "",
956
+ "type": "address"
957
+ }
958
+ ]
959
+ },
960
+ {
961
+ "stateMutability": "view",
962
+ "type": "function",
963
+ "name": "gauge_implementation",
964
+ "inputs": [],
965
+ "outputs": [
966
+ {
967
+ "name": "",
968
+ "type": "address"
969
+ }
970
+ ]
971
+ },
972
+ {
973
+ "stateMutability": "view",
974
+ "type": "function",
975
+ "name": "views_implementation",
976
+ "inputs": [],
977
+ "outputs": [
978
+ {
979
+ "name": "",
980
+ "type": "address"
981
+ }
982
+ ]
983
+ },
984
+ {
985
+ "stateMutability": "view",
986
+ "type": "function",
987
+ "name": "fee_receiver",
988
+ "inputs": [],
989
+ "outputs": [
990
+ {
991
+ "name": "",
992
+ "type": "address"
993
+ }
994
+ ]
995
+ }
996
+ ]