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