@curvefi/api 1.7.0 → 1.9.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.
@@ -1,940 +0,0 @@
1
- [
2
- {
3
- "name": "PoolAdded",
4
- "inputs": [
5
- {
6
- "name": "pool",
7
- "type": "address",
8
- "indexed": true
9
- },
10
- {
11
- "name": "rate_method_id",
12
- "type": "bytes",
13
- "indexed": false
14
- }
15
- ],
16
- "anonymous": false,
17
- "type": "event"
18
- },
19
- {
20
- "name": "PoolRemoved",
21
- "inputs": [
22
- {
23
- "name": "pool",
24
- "type": "address",
25
- "indexed": true
26
- }
27
- ],
28
- "anonymous": false,
29
- "type": "event"
30
- },
31
- {
32
- "stateMutability": "nonpayable",
33
- "type": "constructor",
34
- "inputs": [
35
- {
36
- "name": "_address_provider",
37
- "type": "address"
38
- },
39
- {
40
- "name": "_gauge_controller",
41
- "type": "address"
42
- }
43
- ],
44
- "outputs": []
45
- },
46
- {
47
- "stateMutability": "view",
48
- "type": "function",
49
- "name": "find_pool_for_coins",
50
- "inputs": [
51
- {
52
- "name": "_from",
53
- "type": "address"
54
- },
55
- {
56
- "name": "_to",
57
- "type": "address"
58
- }
59
- ],
60
- "outputs": [
61
- {
62
- "name": "",
63
- "type": "address"
64
- }
65
- ]
66
- },
67
- {
68
- "stateMutability": "view",
69
- "type": "function",
70
- "name": "find_pool_for_coins",
71
- "inputs": [
72
- {
73
- "name": "_from",
74
- "type": "address"
75
- },
76
- {
77
- "name": "_to",
78
- "type": "address"
79
- },
80
- {
81
- "name": "i",
82
- "type": "uint256"
83
- }
84
- ],
85
- "outputs": [
86
- {
87
- "name": "",
88
- "type": "address"
89
- }
90
- ]
91
- },
92
- {
93
- "stateMutability": "view",
94
- "type": "function",
95
- "name": "get_n_coins",
96
- "inputs": [
97
- {
98
- "name": "_pool",
99
- "type": "address"
100
- }
101
- ],
102
- "outputs": [
103
- {
104
- "name": "",
105
- "type": "uint256[2]"
106
- }
107
- ],
108
- "gas": "1521"
109
- },
110
- {
111
- "stateMutability": "view",
112
- "type": "function",
113
- "name": "get_coins",
114
- "inputs": [
115
- {
116
- "name": "_pool",
117
- "type": "address"
118
- }
119
- ],
120
- "outputs": [
121
- {
122
- "name": "",
123
- "type": "address[8]"
124
- }
125
- ],
126
- "gas": "12102"
127
- },
128
- {
129
- "stateMutability": "view",
130
- "type": "function",
131
- "name": "get_underlying_coins",
132
- "inputs": [
133
- {
134
- "name": "_pool",
135
- "type": "address"
136
- }
137
- ],
138
- "outputs": [
139
- {
140
- "name": "",
141
- "type": "address[8]"
142
- }
143
- ],
144
- "gas": "12194"
145
- },
146
- {
147
- "stateMutability": "view",
148
- "type": "function",
149
- "name": "get_decimals",
150
- "inputs": [
151
- {
152
- "name": "_pool",
153
- "type": "address"
154
- }
155
- ],
156
- "outputs": [
157
- {
158
- "name": "",
159
- "type": "uint256[8]"
160
- }
161
- ],
162
- "gas": "7874"
163
- },
164
- {
165
- "stateMutability": "view",
166
- "type": "function",
167
- "name": "get_underlying_decimals",
168
- "inputs": [
169
- {
170
- "name": "_pool",
171
- "type": "address"
172
- }
173
- ],
174
- "outputs": [
175
- {
176
- "name": "",
177
- "type": "uint256[8]"
178
- }
179
- ],
180
- "gas": "7966"
181
- },
182
- {
183
- "stateMutability": "view",
184
- "type": "function",
185
- "name": "get_rates",
186
- "inputs": [
187
- {
188
- "name": "_pool",
189
- "type": "address"
190
- }
191
- ],
192
- "outputs": [
193
- {
194
- "name": "",
195
- "type": "uint256[8]"
196
- }
197
- ],
198
- "gas": "36992"
199
- },
200
- {
201
- "stateMutability": "view",
202
- "type": "function",
203
- "name": "get_gauges",
204
- "inputs": [
205
- {
206
- "name": "_pool",
207
- "type": "address"
208
- }
209
- ],
210
- "outputs": [
211
- {
212
- "name": "",
213
- "type": "address[10]"
214
- },
215
- {
216
- "name": "",
217
- "type": "int128[10]"
218
- }
219
- ],
220
- "gas": "20157"
221
- },
222
- {
223
- "stateMutability": "view",
224
- "type": "function",
225
- "name": "get_balances",
226
- "inputs": [
227
- {
228
- "name": "_pool",
229
- "type": "address"
230
- }
231
- ],
232
- "outputs": [
233
- {
234
- "name": "",
235
- "type": "uint256[8]"
236
- }
237
- ],
238
- "gas": "16583"
239
- },
240
- {
241
- "stateMutability": "view",
242
- "type": "function",
243
- "name": "get_underlying_balances",
244
- "inputs": [
245
- {
246
- "name": "_pool",
247
- "type": "address"
248
- }
249
- ],
250
- "outputs": [
251
- {
252
- "name": "",
253
- "type": "uint256[8]"
254
- }
255
- ],
256
- "gas": "162842"
257
- },
258
- {
259
- "stateMutability": "view",
260
- "type": "function",
261
- "name": "get_virtual_price_from_lp_token",
262
- "inputs": [
263
- {
264
- "name": "_token",
265
- "type": "address"
266
- }
267
- ],
268
- "outputs": [
269
- {
270
- "name": "",
271
- "type": "uint256"
272
- }
273
- ],
274
- "gas": "1927"
275
- },
276
- {
277
- "stateMutability": "view",
278
- "type": "function",
279
- "name": "get_A",
280
- "inputs": [
281
- {
282
- "name": "_pool",
283
- "type": "address"
284
- }
285
- ],
286
- "outputs": [
287
- {
288
- "name": "",
289
- "type": "uint256"
290
- }
291
- ],
292
- "gas": "1045"
293
- },
294
- {
295
- "stateMutability": "view",
296
- "type": "function",
297
- "name": "get_parameters",
298
- "inputs": [
299
- {
300
- "name": "_pool",
301
- "type": "address"
302
- }
303
- ],
304
- "outputs": [
305
- {
306
- "name": "A",
307
- "type": "uint256"
308
- },
309
- {
310
- "name": "future_A",
311
- "type": "uint256"
312
- },
313
- {
314
- "name": "fee",
315
- "type": "uint256"
316
- },
317
- {
318
- "name": "admin_fee",
319
- "type": "uint256"
320
- },
321
- {
322
- "name": "future_fee",
323
- "type": "uint256"
324
- },
325
- {
326
- "name": "future_admin_fee",
327
- "type": "uint256"
328
- },
329
- {
330
- "name": "future_owner",
331
- "type": "address"
332
- },
333
- {
334
- "name": "initial_A",
335
- "type": "uint256"
336
- },
337
- {
338
- "name": "initial_A_time",
339
- "type": "uint256"
340
- },
341
- {
342
- "name": "future_A_time",
343
- "type": "uint256"
344
- }
345
- ],
346
- "gas": "6305"
347
- },
348
- {
349
- "stateMutability": "view",
350
- "type": "function",
351
- "name": "get_fees",
352
- "inputs": [
353
- {
354
- "name": "_pool",
355
- "type": "address"
356
- }
357
- ],
358
- "outputs": [
359
- {
360
- "name": "",
361
- "type": "uint256[2]"
362
- }
363
- ],
364
- "gas": "1450"
365
- },
366
- {
367
- "stateMutability": "view",
368
- "type": "function",
369
- "name": "get_admin_balances",
370
- "inputs": [
371
- {
372
- "name": "_pool",
373
- "type": "address"
374
- }
375
- ],
376
- "outputs": [
377
- {
378
- "name": "",
379
- "type": "uint256[8]"
380
- }
381
- ],
382
- "gas": "36454"
383
- },
384
- {
385
- "stateMutability": "view",
386
- "type": "function",
387
- "name": "get_coin_indices",
388
- "inputs": [
389
- {
390
- "name": "_pool",
391
- "type": "address"
392
- },
393
- {
394
- "name": "_from",
395
- "type": "address"
396
- },
397
- {
398
- "name": "_to",
399
- "type": "address"
400
- }
401
- ],
402
- "outputs": [
403
- {
404
- "name": "",
405
- "type": "int128"
406
- },
407
- {
408
- "name": "",
409
- "type": "int128"
410
- },
411
- {
412
- "name": "",
413
- "type": "bool"
414
- }
415
- ],
416
- "gas": "27131"
417
- },
418
- {
419
- "stateMutability": "view",
420
- "type": "function",
421
- "name": "estimate_gas_used",
422
- "inputs": [
423
- {
424
- "name": "_pool",
425
- "type": "address"
426
- },
427
- {
428
- "name": "_from",
429
- "type": "address"
430
- },
431
- {
432
- "name": "_to",
433
- "type": "address"
434
- }
435
- ],
436
- "outputs": [
437
- {
438
- "name": "",
439
- "type": "uint256"
440
- }
441
- ],
442
- "gas": "32004"
443
- },
444
- {
445
- "stateMutability": "view",
446
- "type": "function",
447
- "name": "is_meta",
448
- "inputs": [
449
- {
450
- "name": "_pool",
451
- "type": "address"
452
- }
453
- ],
454
- "outputs": [
455
- {
456
- "name": "",
457
- "type": "bool"
458
- }
459
- ],
460
- "gas": "1900"
461
- },
462
- {
463
- "stateMutability": "view",
464
- "type": "function",
465
- "name": "get_pool_name",
466
- "inputs": [
467
- {
468
- "name": "_pool",
469
- "type": "address"
470
- }
471
- ],
472
- "outputs": [
473
- {
474
- "name": "",
475
- "type": "string"
476
- }
477
- ],
478
- "gas": "8323"
479
- },
480
- {
481
- "stateMutability": "view",
482
- "type": "function",
483
- "name": "get_coin_swap_count",
484
- "inputs": [
485
- {
486
- "name": "_coin",
487
- "type": "address"
488
- }
489
- ],
490
- "outputs": [
491
- {
492
- "name": "",
493
- "type": "uint256"
494
- }
495
- ],
496
- "gas": "1951"
497
- },
498
- {
499
- "stateMutability": "view",
500
- "type": "function",
501
- "name": "get_coin_swap_complement",
502
- "inputs": [
503
- {
504
- "name": "_coin",
505
- "type": "address"
506
- },
507
- {
508
- "name": "_index",
509
- "type": "uint256"
510
- }
511
- ],
512
- "outputs": [
513
- {
514
- "name": "",
515
- "type": "address"
516
- }
517
- ],
518
- "gas": "2090"
519
- },
520
- {
521
- "stateMutability": "view",
522
- "type": "function",
523
- "name": "get_pool_asset_type",
524
- "inputs": [
525
- {
526
- "name": "_pool",
527
- "type": "address"
528
- }
529
- ],
530
- "outputs": [
531
- {
532
- "name": "",
533
- "type": "uint256"
534
- }
535
- ],
536
- "gas": "2011"
537
- },
538
- {
539
- "stateMutability": "nonpayable",
540
- "type": "function",
541
- "name": "add_pool",
542
- "inputs": [
543
- {
544
- "name": "_pool",
545
- "type": "address"
546
- },
547
- {
548
- "name": "_n_coins",
549
- "type": "uint256"
550
- },
551
- {
552
- "name": "_lp_token",
553
- "type": "address"
554
- },
555
- {
556
- "name": "_rate_info",
557
- "type": "bytes32"
558
- },
559
- {
560
- "name": "_decimals",
561
- "type": "uint256"
562
- },
563
- {
564
- "name": "_underlying_decimals",
565
- "type": "uint256"
566
- },
567
- {
568
- "name": "_has_initial_A",
569
- "type": "bool"
570
- },
571
- {
572
- "name": "_is_v1",
573
- "type": "bool"
574
- },
575
- {
576
- "name": "_name",
577
- "type": "string"
578
- }
579
- ],
580
- "outputs": [],
581
- "gas": "61485845"
582
- },
583
- {
584
- "stateMutability": "nonpayable",
585
- "type": "function",
586
- "name": "add_pool_without_underlying",
587
- "inputs": [
588
- {
589
- "name": "_pool",
590
- "type": "address"
591
- },
592
- {
593
- "name": "_n_coins",
594
- "type": "uint256"
595
- },
596
- {
597
- "name": "_lp_token",
598
- "type": "address"
599
- },
600
- {
601
- "name": "_rate_info",
602
- "type": "bytes32"
603
- },
604
- {
605
- "name": "_decimals",
606
- "type": "uint256"
607
- },
608
- {
609
- "name": "_use_rates",
610
- "type": "uint256"
611
- },
612
- {
613
- "name": "_has_initial_A",
614
- "type": "bool"
615
- },
616
- {
617
- "name": "_is_v1",
618
- "type": "bool"
619
- },
620
- {
621
- "name": "_name",
622
- "type": "string"
623
- }
624
- ],
625
- "outputs": [],
626
- "gas": "31306062"
627
- },
628
- {
629
- "stateMutability": "nonpayable",
630
- "type": "function",
631
- "name": "add_metapool",
632
- "inputs": [
633
- {
634
- "name": "_pool",
635
- "type": "address"
636
- },
637
- {
638
- "name": "_n_coins",
639
- "type": "uint256"
640
- },
641
- {
642
- "name": "_lp_token",
643
- "type": "address"
644
- },
645
- {
646
- "name": "_decimals",
647
- "type": "uint256"
648
- },
649
- {
650
- "name": "_name",
651
- "type": "string"
652
- }
653
- ],
654
- "outputs": []
655
- },
656
- {
657
- "stateMutability": "nonpayable",
658
- "type": "function",
659
- "name": "add_metapool",
660
- "inputs": [
661
- {
662
- "name": "_pool",
663
- "type": "address"
664
- },
665
- {
666
- "name": "_n_coins",
667
- "type": "uint256"
668
- },
669
- {
670
- "name": "_lp_token",
671
- "type": "address"
672
- },
673
- {
674
- "name": "_decimals",
675
- "type": "uint256"
676
- },
677
- {
678
- "name": "_name",
679
- "type": "string"
680
- },
681
- {
682
- "name": "_base_pool",
683
- "type": "address"
684
- }
685
- ],
686
- "outputs": []
687
- },
688
- {
689
- "stateMutability": "nonpayable",
690
- "type": "function",
691
- "name": "remove_pool",
692
- "inputs": [
693
- {
694
- "name": "_pool",
695
- "type": "address"
696
- }
697
- ],
698
- "outputs": [],
699
- "gas": "779731418758"
700
- },
701
- {
702
- "stateMutability": "nonpayable",
703
- "type": "function",
704
- "name": "set_pool_gas_estimates",
705
- "inputs": [
706
- {
707
- "name": "_addr",
708
- "type": "address[5]"
709
- },
710
- {
711
- "name": "_amount",
712
- "type": "uint256[2][5]"
713
- }
714
- ],
715
- "outputs": [],
716
- "gas": "390460"
717
- },
718
- {
719
- "stateMutability": "nonpayable",
720
- "type": "function",
721
- "name": "set_coin_gas_estimates",
722
- "inputs": [
723
- {
724
- "name": "_addr",
725
- "type": "address[10]"
726
- },
727
- {
728
- "name": "_amount",
729
- "type": "uint256[10]"
730
- }
731
- ],
732
- "outputs": [],
733
- "gas": "392047"
734
- },
735
- {
736
- "stateMutability": "nonpayable",
737
- "type": "function",
738
- "name": "set_gas_estimate_contract",
739
- "inputs": [
740
- {
741
- "name": "_pool",
742
- "type": "address"
743
- },
744
- {
745
- "name": "_estimator",
746
- "type": "address"
747
- }
748
- ],
749
- "outputs": [],
750
- "gas": "72629"
751
- },
752
- {
753
- "stateMutability": "nonpayable",
754
- "type": "function",
755
- "name": "set_liquidity_gauges",
756
- "inputs": [
757
- {
758
- "name": "_pool",
759
- "type": "address"
760
- },
761
- {
762
- "name": "_liquidity_gauges",
763
- "type": "address[10]"
764
- }
765
- ],
766
- "outputs": [],
767
- "gas": "400675"
768
- },
769
- {
770
- "stateMutability": "nonpayable",
771
- "type": "function",
772
- "name": "set_pool_asset_type",
773
- "inputs": [
774
- {
775
- "name": "_pool",
776
- "type": "address"
777
- },
778
- {
779
- "name": "_asset_type",
780
- "type": "uint256"
781
- }
782
- ],
783
- "outputs": [],
784
- "gas": "72667"
785
- },
786
- {
787
- "stateMutability": "nonpayable",
788
- "type": "function",
789
- "name": "batch_set_pool_asset_type",
790
- "inputs": [
791
- {
792
- "name": "_pools",
793
- "type": "address[32]"
794
- },
795
- {
796
- "name": "_asset_types",
797
- "type": "uint256[32]"
798
- }
799
- ],
800
- "outputs": [],
801
- "gas": "1173447"
802
- },
803
- {
804
- "stateMutability": "view",
805
- "type": "function",
806
- "name": "address_provider",
807
- "inputs": [],
808
- "outputs": [
809
- {
810
- "name": "",
811
- "type": "address"
812
- }
813
- ],
814
- "gas": "2048"
815
- },
816
- {
817
- "stateMutability": "view",
818
- "type": "function",
819
- "name": "gauge_controller",
820
- "inputs": [],
821
- "outputs": [
822
- {
823
- "name": "",
824
- "type": "address"
825
- }
826
- ],
827
- "gas": "2078"
828
- },
829
- {
830
- "stateMutability": "view",
831
- "type": "function",
832
- "name": "pool_list",
833
- "inputs": [
834
- {
835
- "name": "arg0",
836
- "type": "uint256"
837
- }
838
- ],
839
- "outputs": [
840
- {
841
- "name": "",
842
- "type": "address"
843
- }
844
- ],
845
- "gas": "2217"
846
- },
847
- {
848
- "stateMutability": "view",
849
- "type": "function",
850
- "name": "pool_count",
851
- "inputs": [],
852
- "outputs": [
853
- {
854
- "name": "",
855
- "type": "uint256"
856
- }
857
- ],
858
- "gas": "2138"
859
- },
860
- {
861
- "stateMutability": "view",
862
- "type": "function",
863
- "name": "coin_count",
864
- "inputs": [],
865
- "outputs": [
866
- {
867
- "name": "",
868
- "type": "uint256"
869
- }
870
- ],
871
- "gas": "2168"
872
- },
873
- {
874
- "stateMutability": "view",
875
- "type": "function",
876
- "name": "get_coin",
877
- "inputs": [
878
- {
879
- "name": "arg0",
880
- "type": "uint256"
881
- }
882
- ],
883
- "outputs": [
884
- {
885
- "name": "",
886
- "type": "address"
887
- }
888
- ],
889
- "gas": "2307"
890
- },
891
- {
892
- "stateMutability": "view",
893
- "type": "function",
894
- "name": "get_pool_from_lp_token",
895
- "inputs": [
896
- {
897
- "name": "arg0",
898
- "type": "address"
899
- }
900
- ],
901
- "outputs": [
902
- {
903
- "name": "",
904
- "type": "address"
905
- }
906
- ],
907
- "gas": "2443"
908
- },
909
- {
910
- "stateMutability": "view",
911
- "type": "function",
912
- "name": "get_lp_token",
913
- "inputs": [
914
- {
915
- "name": "arg0",
916
- "type": "address"
917
- }
918
- ],
919
- "outputs": [
920
- {
921
- "name": "",
922
- "type": "address"
923
- }
924
- ],
925
- "gas": "2473"
926
- },
927
- {
928
- "stateMutability": "view",
929
- "type": "function",
930
- "name": "last_updated",
931
- "inputs": [],
932
- "outputs": [
933
- {
934
- "name": "",
935
- "type": "uint256"
936
- }
937
- ],
938
- "gas": "2288"
939
- }
940
- ]