@curvefi/api 2.23.0 → 2.24.0

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,1011 @@
1
+ [
2
+ {
3
+ "name": "Transfer",
4
+ "inputs": [
5
+ {
6
+ "name": "sender",
7
+ "type": "address",
8
+ "indexed": true
9
+ },
10
+ {
11
+ "name": "receiver",
12
+ "type": "address",
13
+ "indexed": true
14
+ },
15
+ {
16
+ "name": "value",
17
+ "type": "uint256",
18
+ "indexed": false
19
+ }
20
+ ],
21
+ "anonymous": false,
22
+ "type": "event"
23
+ },
24
+ {
25
+ "name": "Approval",
26
+ "inputs": [
27
+ {
28
+ "name": "owner",
29
+ "type": "address",
30
+ "indexed": true
31
+ },
32
+ {
33
+ "name": "spender",
34
+ "type": "address",
35
+ "indexed": true
36
+ },
37
+ {
38
+ "name": "value",
39
+ "type": "uint256",
40
+ "indexed": false
41
+ }
42
+ ],
43
+ "anonymous": false,
44
+ "type": "event"
45
+ },
46
+ {
47
+ "name": "TokenExchange",
48
+ "inputs": [
49
+ {
50
+ "name": "buyer",
51
+ "type": "address",
52
+ "indexed": true
53
+ },
54
+ {
55
+ "name": "sold_id",
56
+ "type": "int128",
57
+ "indexed": false
58
+ },
59
+ {
60
+ "name": "tokens_sold",
61
+ "type": "uint256",
62
+ "indexed": false
63
+ },
64
+ {
65
+ "name": "bought_id",
66
+ "type": "int128",
67
+ "indexed": false
68
+ },
69
+ {
70
+ "name": "tokens_bought",
71
+ "type": "uint256",
72
+ "indexed": false
73
+ }
74
+ ],
75
+ "anonymous": false,
76
+ "type": "event"
77
+ },
78
+ {
79
+ "name": "TokenExchangeUnderlying",
80
+ "inputs": [
81
+ {
82
+ "name": "buyer",
83
+ "type": "address",
84
+ "indexed": true
85
+ },
86
+ {
87
+ "name": "sold_id",
88
+ "type": "int128",
89
+ "indexed": false
90
+ },
91
+ {
92
+ "name": "tokens_sold",
93
+ "type": "uint256",
94
+ "indexed": false
95
+ },
96
+ {
97
+ "name": "bought_id",
98
+ "type": "int128",
99
+ "indexed": false
100
+ },
101
+ {
102
+ "name": "tokens_bought",
103
+ "type": "uint256",
104
+ "indexed": false
105
+ }
106
+ ],
107
+ "anonymous": false,
108
+ "type": "event"
109
+ },
110
+ {
111
+ "name": "AddLiquidity",
112
+ "inputs": [
113
+ {
114
+ "name": "provider",
115
+ "type": "address",
116
+ "indexed": true
117
+ },
118
+ {
119
+ "name": "token_amounts",
120
+ "type": "uint256[2]",
121
+ "indexed": false
122
+ },
123
+ {
124
+ "name": "fees",
125
+ "type": "uint256[2]",
126
+ "indexed": false
127
+ },
128
+ {
129
+ "name": "invariant",
130
+ "type": "uint256",
131
+ "indexed": false
132
+ },
133
+ {
134
+ "name": "token_supply",
135
+ "type": "uint256",
136
+ "indexed": false
137
+ }
138
+ ],
139
+ "anonymous": false,
140
+ "type": "event"
141
+ },
142
+ {
143
+ "name": "RemoveLiquidity",
144
+ "inputs": [
145
+ {
146
+ "name": "provider",
147
+ "type": "address",
148
+ "indexed": true
149
+ },
150
+ {
151
+ "name": "token_amounts",
152
+ "type": "uint256[2]",
153
+ "indexed": false
154
+ },
155
+ {
156
+ "name": "fees",
157
+ "type": "uint256[2]",
158
+ "indexed": false
159
+ },
160
+ {
161
+ "name": "token_supply",
162
+ "type": "uint256",
163
+ "indexed": false
164
+ }
165
+ ],
166
+ "anonymous": false,
167
+ "type": "event"
168
+ },
169
+ {
170
+ "name": "RemoveLiquidityOne",
171
+ "inputs": [
172
+ {
173
+ "name": "provider",
174
+ "type": "address",
175
+ "indexed": true
176
+ },
177
+ {
178
+ "name": "token_amount",
179
+ "type": "uint256",
180
+ "indexed": false
181
+ },
182
+ {
183
+ "name": "coin_amount",
184
+ "type": "uint256",
185
+ "indexed": false
186
+ },
187
+ {
188
+ "name": "token_supply",
189
+ "type": "uint256",
190
+ "indexed": false
191
+ }
192
+ ],
193
+ "anonymous": false,
194
+ "type": "event"
195
+ },
196
+ {
197
+ "name": "RemoveLiquidityImbalance",
198
+ "inputs": [
199
+ {
200
+ "name": "provider",
201
+ "type": "address",
202
+ "indexed": true
203
+ },
204
+ {
205
+ "name": "token_amounts",
206
+ "type": "uint256[2]",
207
+ "indexed": false
208
+ },
209
+ {
210
+ "name": "fees",
211
+ "type": "uint256[2]",
212
+ "indexed": false
213
+ },
214
+ {
215
+ "name": "invariant",
216
+ "type": "uint256",
217
+ "indexed": false
218
+ },
219
+ {
220
+ "name": "token_supply",
221
+ "type": "uint256",
222
+ "indexed": false
223
+ }
224
+ ],
225
+ "anonymous": false,
226
+ "type": "event"
227
+ },
228
+ {
229
+ "name": "RampA",
230
+ "inputs": [
231
+ {
232
+ "name": "old_A",
233
+ "type": "uint256",
234
+ "indexed": false
235
+ },
236
+ {
237
+ "name": "new_A",
238
+ "type": "uint256",
239
+ "indexed": false
240
+ },
241
+ {
242
+ "name": "initial_time",
243
+ "type": "uint256",
244
+ "indexed": false
245
+ },
246
+ {
247
+ "name": "future_time",
248
+ "type": "uint256",
249
+ "indexed": false
250
+ }
251
+ ],
252
+ "anonymous": false,
253
+ "type": "event"
254
+ },
255
+ {
256
+ "name": "StopRampA",
257
+ "inputs": [
258
+ {
259
+ "name": "A",
260
+ "type": "uint256",
261
+ "indexed": false
262
+ },
263
+ {
264
+ "name": "t",
265
+ "type": "uint256",
266
+ "indexed": false
267
+ }
268
+ ],
269
+ "anonymous": false,
270
+ "type": "event"
271
+ },
272
+ {
273
+ "stateMutability": "nonpayable",
274
+ "type": "constructor",
275
+ "inputs": [],
276
+ "outputs": []
277
+ },
278
+ {
279
+ "stateMutability": "nonpayable",
280
+ "type": "function",
281
+ "name": "initialize",
282
+ "inputs": [
283
+ {
284
+ "name": "_name",
285
+ "type": "string"
286
+ },
287
+ {
288
+ "name": "_symbol",
289
+ "type": "string"
290
+ },
291
+ {
292
+ "name": "_coin",
293
+ "type": "address"
294
+ },
295
+ {
296
+ "name": "_rate_multiplier",
297
+ "type": "uint256"
298
+ },
299
+ {
300
+ "name": "_A",
301
+ "type": "uint256"
302
+ },
303
+ {
304
+ "name": "_fee",
305
+ "type": "uint256"
306
+ }
307
+ ],
308
+ "outputs": [],
309
+ "gas": "491073"
310
+ },
311
+ {
312
+ "stateMutability": "view",
313
+ "type": "function",
314
+ "name": "decimals",
315
+ "inputs": [],
316
+ "outputs": [
317
+ {
318
+ "name": "",
319
+ "type": "uint256"
320
+ }
321
+ ],
322
+ "gas": "390"
323
+ },
324
+ {
325
+ "stateMutability": "nonpayable",
326
+ "type": "function",
327
+ "name": "transfer",
328
+ "inputs": [
329
+ {
330
+ "name": "_to",
331
+ "type": "address"
332
+ },
333
+ {
334
+ "name": "_value",
335
+ "type": "uint256"
336
+ }
337
+ ],
338
+ "outputs": [
339
+ {
340
+ "name": "",
341
+ "type": "bool"
342
+ }
343
+ ],
344
+ "gas": "79005"
345
+ },
346
+ {
347
+ "stateMutability": "nonpayable",
348
+ "type": "function",
349
+ "name": "transferFrom",
350
+ "inputs": [
351
+ {
352
+ "name": "_from",
353
+ "type": "address"
354
+ },
355
+ {
356
+ "name": "_to",
357
+ "type": "address"
358
+ },
359
+ {
360
+ "name": "_value",
361
+ "type": "uint256"
362
+ }
363
+ ],
364
+ "outputs": [
365
+ {
366
+ "name": "",
367
+ "type": "bool"
368
+ }
369
+ ],
370
+ "gas": "116985"
371
+ },
372
+ {
373
+ "stateMutability": "nonpayable",
374
+ "type": "function",
375
+ "name": "approve",
376
+ "inputs": [
377
+ {
378
+ "name": "_spender",
379
+ "type": "address"
380
+ },
381
+ {
382
+ "name": "_value",
383
+ "type": "uint256"
384
+ }
385
+ ],
386
+ "outputs": [
387
+ {
388
+ "name": "",
389
+ "type": "bool"
390
+ }
391
+ ],
392
+ "gas": "39211"
393
+ },
394
+ {
395
+ "stateMutability": "nonpayable",
396
+ "type": "function",
397
+ "name": "permit",
398
+ "inputs": [
399
+ {
400
+ "name": "_owner",
401
+ "type": "address"
402
+ },
403
+ {
404
+ "name": "_spender",
405
+ "type": "address"
406
+ },
407
+ {
408
+ "name": "_value",
409
+ "type": "uint256"
410
+ },
411
+ {
412
+ "name": "_deadline",
413
+ "type": "uint256"
414
+ },
415
+ {
416
+ "name": "_v",
417
+ "type": "uint8"
418
+ },
419
+ {
420
+ "name": "_r",
421
+ "type": "bytes32"
422
+ },
423
+ {
424
+ "name": "_s",
425
+ "type": "bytes32"
426
+ }
427
+ ],
428
+ "outputs": [
429
+ {
430
+ "name": "",
431
+ "type": "bool"
432
+ }
433
+ ],
434
+ "gas": "102281"
435
+ },
436
+ {
437
+ "stateMutability": "view",
438
+ "type": "function",
439
+ "name": "admin_fee",
440
+ "inputs": [],
441
+ "outputs": [
442
+ {
443
+ "name": "",
444
+ "type": "uint256"
445
+ }
446
+ ],
447
+ "gas": "540"
448
+ },
449
+ {
450
+ "stateMutability": "view",
451
+ "type": "function",
452
+ "name": "A",
453
+ "inputs": [],
454
+ "outputs": [
455
+ {
456
+ "name": "",
457
+ "type": "uint256"
458
+ }
459
+ ],
460
+ "gas": "10448"
461
+ },
462
+ {
463
+ "stateMutability": "view",
464
+ "type": "function",
465
+ "name": "A_precise",
466
+ "inputs": [],
467
+ "outputs": [
468
+ {
469
+ "name": "",
470
+ "type": "uint256"
471
+ }
472
+ ],
473
+ "gas": "10448"
474
+ },
475
+ {
476
+ "stateMutability": "view",
477
+ "type": "function",
478
+ "name": "get_virtual_price",
479
+ "inputs": [],
480
+ "outputs": [
481
+ {
482
+ "name": "",
483
+ "type": "uint256"
484
+ }
485
+ ],
486
+ "gas": "807920"
487
+ },
488
+ {
489
+ "stateMutability": "view",
490
+ "type": "function",
491
+ "name": "calc_token_amount",
492
+ "inputs": [
493
+ {
494
+ "name": "_amounts",
495
+ "type": "uint256[2]"
496
+ },
497
+ {
498
+ "name": "_is_deposit",
499
+ "type": "bool"
500
+ }
501
+ ],
502
+ "outputs": [
503
+ {
504
+ "name": "",
505
+ "type": "uint256"
506
+ }
507
+ ],
508
+ "gas": "1597346"
509
+ },
510
+ {
511
+ "stateMutability": "nonpayable",
512
+ "type": "function",
513
+ "name": "add_liquidity",
514
+ "inputs": [
515
+ {
516
+ "name": "_amounts",
517
+ "type": "uint256[2]"
518
+ },
519
+ {
520
+ "name": "_min_mint_amount",
521
+ "type": "uint256"
522
+ }
523
+ ],
524
+ "outputs": [
525
+ {
526
+ "name": "",
527
+ "type": "uint256"
528
+ }
529
+ ],
530
+ "gas": "2611832"
531
+ },
532
+ {
533
+ "stateMutability": "view",
534
+ "type": "function",
535
+ "name": "get_dy",
536
+ "inputs": [
537
+ {
538
+ "name": "i",
539
+ "type": "int128"
540
+ },
541
+ {
542
+ "name": "j",
543
+ "type": "int128"
544
+ },
545
+ {
546
+ "name": "dx",
547
+ "type": "uint256"
548
+ }
549
+ ],
550
+ "outputs": [
551
+ {
552
+ "name": "",
553
+ "type": "uint256"
554
+ }
555
+ ],
556
+ "gas": "1154525"
557
+ },
558
+ {
559
+ "stateMutability": "view",
560
+ "type": "function",
561
+ "name": "get_dy_underlying",
562
+ "inputs": [
563
+ {
564
+ "name": "i",
565
+ "type": "int128"
566
+ },
567
+ {
568
+ "name": "j",
569
+ "type": "int128"
570
+ },
571
+ {
572
+ "name": "dx",
573
+ "type": "uint256"
574
+ }
575
+ ],
576
+ "outputs": [
577
+ {
578
+ "name": "",
579
+ "type": "uint256"
580
+ }
581
+ ],
582
+ "gas": "1162775"
583
+ },
584
+ {
585
+ "stateMutability": "nonpayable",
586
+ "type": "function",
587
+ "name": "exchange",
588
+ "inputs": [
589
+ {
590
+ "name": "i",
591
+ "type": "int128"
592
+ },
593
+ {
594
+ "name": "j",
595
+ "type": "int128"
596
+ },
597
+ {
598
+ "name": "_dx",
599
+ "type": "uint256"
600
+ },
601
+ {
602
+ "name": "_min_dy",
603
+ "type": "uint256"
604
+ }
605
+ ],
606
+ "outputs": [
607
+ {
608
+ "name": "",
609
+ "type": "uint256"
610
+ }
611
+ ],
612
+ "gas": "1300799"
613
+ },
614
+ {
615
+ "stateMutability": "nonpayable",
616
+ "type": "function",
617
+ "name": "exchange_underlying",
618
+ "inputs": [
619
+ {
620
+ "name": "i",
621
+ "type": "int128"
622
+ },
623
+ {
624
+ "name": "j",
625
+ "type": "int128"
626
+ },
627
+ {
628
+ "name": "_dx",
629
+ "type": "uint256"
630
+ },
631
+ {
632
+ "name": "_min_dy",
633
+ "type": "uint256"
634
+ }
635
+ ],
636
+ "outputs": [
637
+ {
638
+ "name": "",
639
+ "type": "uint256"
640
+ }
641
+ ],
642
+ "gas": "1323223"
643
+ },
644
+ {
645
+ "stateMutability": "nonpayable",
646
+ "type": "function",
647
+ "name": "remove_liquidity",
648
+ "inputs": [
649
+ {
650
+ "name": "_burn_amount",
651
+ "type": "uint256"
652
+ },
653
+ {
654
+ "name": "_min_amounts",
655
+ "type": "uint256[2]"
656
+ }
657
+ ],
658
+ "outputs": [
659
+ {
660
+ "name": "",
661
+ "type": "uint256[2]"
662
+ }
663
+ ],
664
+ "gas": "229848"
665
+ },
666
+ {
667
+ "stateMutability": "nonpayable",
668
+ "type": "function",
669
+ "name": "remove_liquidity_imbalance",
670
+ "inputs": [
671
+ {
672
+ "name": "_amounts",
673
+ "type": "uint256[2]"
674
+ },
675
+ {
676
+ "name": "_max_burn_amount",
677
+ "type": "uint256"
678
+ }
679
+ ],
680
+ "outputs": [
681
+ {
682
+ "name": "",
683
+ "type": "uint256"
684
+ }
685
+ ],
686
+ "gas": "2612120"
687
+ },
688
+ {
689
+ "stateMutability": "view",
690
+ "type": "function",
691
+ "name": "calc_withdraw_one_coin",
692
+ "inputs": [
693
+ {
694
+ "name": "_burn_amount",
695
+ "type": "uint256"
696
+ },
697
+ {
698
+ "name": "i",
699
+ "type": "int128"
700
+ }
701
+ ],
702
+ "outputs": [
703
+ {
704
+ "name": "",
705
+ "type": "uint256"
706
+ }
707
+ ],
708
+ "gas": "1259"
709
+ },
710
+ {
711
+ "stateMutability": "nonpayable",
712
+ "type": "function",
713
+ "name": "remove_liquidity_one_coin",
714
+ "inputs": [
715
+ {
716
+ "name": "_burn_amount",
717
+ "type": "uint256"
718
+ },
719
+ {
720
+ "name": "i",
721
+ "type": "int128"
722
+ },
723
+ {
724
+ "name": "_min_received",
725
+ "type": "uint256"
726
+ }
727
+ ],
728
+ "outputs": [
729
+ {
730
+ "name": "",
731
+ "type": "uint256"
732
+ }
733
+ ],
734
+ "gas": "1688189"
735
+ },
736
+ {
737
+ "stateMutability": "nonpayable",
738
+ "type": "function",
739
+ "name": "ramp_A",
740
+ "inputs": [
741
+ {
742
+ "name": "_future_A",
743
+ "type": "uint256"
744
+ },
745
+ {
746
+ "name": "_future_time",
747
+ "type": "uint256"
748
+ }
749
+ ],
750
+ "outputs": [],
751
+ "gas": "161164"
752
+ },
753
+ {
754
+ "stateMutability": "nonpayable",
755
+ "type": "function",
756
+ "name": "stop_ramp_A",
757
+ "inputs": [],
758
+ "outputs": [],
759
+ "gas": "157387"
760
+ },
761
+ {
762
+ "stateMutability": "view",
763
+ "type": "function",
764
+ "name": "admin_balances",
765
+ "inputs": [
766
+ {
767
+ "name": "i",
768
+ "type": "uint256"
769
+ }
770
+ ],
771
+ "outputs": [
772
+ {
773
+ "name": "",
774
+ "type": "uint256"
775
+ }
776
+ ],
777
+ "gas": "7859"
778
+ },
779
+ {
780
+ "stateMutability": "nonpayable",
781
+ "type": "function",
782
+ "name": "withdraw_admin_fees",
783
+ "inputs": [],
784
+ "outputs": [],
785
+ "gas": "31294"
786
+ },
787
+ {
788
+ "stateMutability": "view",
789
+ "type": "function",
790
+ "name": "version",
791
+ "inputs": [],
792
+ "outputs": [
793
+ {
794
+ "name": "",
795
+ "type": "string"
796
+ }
797
+ ],
798
+ "gas": "6707"
799
+ },
800
+ {
801
+ "stateMutability": "view",
802
+ "type": "function",
803
+ "name": "coins",
804
+ "inputs": [
805
+ {
806
+ "name": "arg0",
807
+ "type": "uint256"
808
+ }
809
+ ],
810
+ "outputs": [
811
+ {
812
+ "name": "",
813
+ "type": "address"
814
+ }
815
+ ],
816
+ "gas": "3255"
817
+ },
818
+ {
819
+ "stateMutability": "view",
820
+ "type": "function",
821
+ "name": "balances",
822
+ "inputs": [
823
+ {
824
+ "name": "arg0",
825
+ "type": "uint256"
826
+ }
827
+ ],
828
+ "outputs": [
829
+ {
830
+ "name": "",
831
+ "type": "uint256"
832
+ }
833
+ ],
834
+ "gas": "3285"
835
+ },
836
+ {
837
+ "stateMutability": "view",
838
+ "type": "function",
839
+ "name": "fee",
840
+ "inputs": [],
841
+ "outputs": [
842
+ {
843
+ "name": "",
844
+ "type": "uint256"
845
+ }
846
+ ],
847
+ "gas": "3270"
848
+ },
849
+ {
850
+ "stateMutability": "view",
851
+ "type": "function",
852
+ "name": "initial_A",
853
+ "inputs": [],
854
+ "outputs": [
855
+ {
856
+ "name": "",
857
+ "type": "uint256"
858
+ }
859
+ ],
860
+ "gas": "3300"
861
+ },
862
+ {
863
+ "stateMutability": "view",
864
+ "type": "function",
865
+ "name": "future_A",
866
+ "inputs": [],
867
+ "outputs": [
868
+ {
869
+ "name": "",
870
+ "type": "uint256"
871
+ }
872
+ ],
873
+ "gas": "3330"
874
+ },
875
+ {
876
+ "stateMutability": "view",
877
+ "type": "function",
878
+ "name": "initial_A_time",
879
+ "inputs": [],
880
+ "outputs": [
881
+ {
882
+ "name": "",
883
+ "type": "uint256"
884
+ }
885
+ ],
886
+ "gas": "3360"
887
+ },
888
+ {
889
+ "stateMutability": "view",
890
+ "type": "function",
891
+ "name": "future_A_time",
892
+ "inputs": [],
893
+ "outputs": [
894
+ {
895
+ "name": "",
896
+ "type": "uint256"
897
+ }
898
+ ],
899
+ "gas": "3390"
900
+ },
901
+ {
902
+ "stateMutability": "view",
903
+ "type": "function",
904
+ "name": "name",
905
+ "inputs": [],
906
+ "outputs": [
907
+ {
908
+ "name": "",
909
+ "type": "string"
910
+ }
911
+ ],
912
+ "gas": "13709"
913
+ },
914
+ {
915
+ "stateMutability": "view",
916
+ "type": "function",
917
+ "name": "symbol",
918
+ "inputs": [],
919
+ "outputs": [
920
+ {
921
+ "name": "",
922
+ "type": "string"
923
+ }
924
+ ],
925
+ "gas": "11468"
926
+ },
927
+ {
928
+ "stateMutability": "view",
929
+ "type": "function",
930
+ "name": "balanceOf",
931
+ "inputs": [
932
+ {
933
+ "name": "arg0",
934
+ "type": "address"
935
+ }
936
+ ],
937
+ "outputs": [
938
+ {
939
+ "name": "",
940
+ "type": "uint256"
941
+ }
942
+ ],
943
+ "gas": "3746"
944
+ },
945
+ {
946
+ "stateMutability": "view",
947
+ "type": "function",
948
+ "name": "allowance",
949
+ "inputs": [
950
+ {
951
+ "name": "arg0",
952
+ "type": "address"
953
+ },
954
+ {
955
+ "name": "arg1",
956
+ "type": "address"
957
+ }
958
+ ],
959
+ "outputs": [
960
+ {
961
+ "name": "",
962
+ "type": "uint256"
963
+ }
964
+ ],
965
+ "gas": "4042"
966
+ },
967
+ {
968
+ "stateMutability": "view",
969
+ "type": "function",
970
+ "name": "totalSupply",
971
+ "inputs": [],
972
+ "outputs": [
973
+ {
974
+ "name": "",
975
+ "type": "uint256"
976
+ }
977
+ ],
978
+ "gas": "3540"
979
+ },
980
+ {
981
+ "stateMutability": "view",
982
+ "type": "function",
983
+ "name": "DOMAIN_SEPARATOR",
984
+ "inputs": [],
985
+ "outputs": [
986
+ {
987
+ "name": "",
988
+ "type": "bytes32"
989
+ }
990
+ ],
991
+ "gas": "3570"
992
+ },
993
+ {
994
+ "stateMutability": "view",
995
+ "type": "function",
996
+ "name": "nonces",
997
+ "inputs": [
998
+ {
999
+ "name": "arg0",
1000
+ "type": "address"
1001
+ }
1002
+ ],
1003
+ "outputs": [
1004
+ {
1005
+ "name": "",
1006
+ "type": "uint256"
1007
+ }
1008
+ ],
1009
+ "gas": "3866"
1010
+ }
1011
+ ]