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