@curvefi/api 2.3.0 → 2.3.3

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,868 @@
1
+ [
2
+ {
3
+ "name": "TokenExchange",
4
+ "inputs": [
5
+ {
6
+ "name": "buyer",
7
+ "type": "address",
8
+ "indexed": true
9
+ },
10
+ {
11
+ "name": "sold_id",
12
+ "type": "int128",
13
+ "indexed": false
14
+ },
15
+ {
16
+ "name": "tokens_sold",
17
+ "type": "uint256",
18
+ "indexed": false
19
+ },
20
+ {
21
+ "name": "bought_id",
22
+ "type": "int128",
23
+ "indexed": false
24
+ },
25
+ {
26
+ "name": "tokens_bought",
27
+ "type": "uint256",
28
+ "indexed": false
29
+ }
30
+ ],
31
+ "anonymous": false,
32
+ "type": "event"
33
+ },
34
+ {
35
+ "name": "AddLiquidity",
36
+ "inputs": [
37
+ {
38
+ "name": "provider",
39
+ "type": "address",
40
+ "indexed": true
41
+ },
42
+ {
43
+ "name": "token_amounts",
44
+ "type": "uint256[2]",
45
+ "indexed": false
46
+ },
47
+ {
48
+ "name": "fees",
49
+ "type": "uint256[2]",
50
+ "indexed": false
51
+ },
52
+ {
53
+ "name": "invariant",
54
+ "type": "uint256",
55
+ "indexed": false
56
+ },
57
+ {
58
+ "name": "token_supply",
59
+ "type": "uint256",
60
+ "indexed": false
61
+ }
62
+ ],
63
+ "anonymous": false,
64
+ "type": "event"
65
+ },
66
+ {
67
+ "name": "RemoveLiquidity",
68
+ "inputs": [
69
+ {
70
+ "name": "provider",
71
+ "type": "address",
72
+ "indexed": true
73
+ },
74
+ {
75
+ "name": "token_amounts",
76
+ "type": "uint256[2]",
77
+ "indexed": false
78
+ },
79
+ {
80
+ "name": "fees",
81
+ "type": "uint256[2]",
82
+ "indexed": false
83
+ },
84
+ {
85
+ "name": "token_supply",
86
+ "type": "uint256",
87
+ "indexed": false
88
+ }
89
+ ],
90
+ "anonymous": false,
91
+ "type": "event"
92
+ },
93
+ {
94
+ "name": "RemoveLiquidityOne",
95
+ "inputs": [
96
+ {
97
+ "name": "provider",
98
+ "type": "address",
99
+ "indexed": true
100
+ },
101
+ {
102
+ "name": "token_amount",
103
+ "type": "uint256",
104
+ "indexed": false
105
+ },
106
+ {
107
+ "name": "coin_amount",
108
+ "type": "uint256",
109
+ "indexed": false
110
+ },
111
+ {
112
+ "name": "token_supply",
113
+ "type": "uint256",
114
+ "indexed": false
115
+ }
116
+ ],
117
+ "anonymous": false,
118
+ "type": "event"
119
+ },
120
+ {
121
+ "name": "RemoveLiquidityImbalance",
122
+ "inputs": [
123
+ {
124
+ "name": "provider",
125
+ "type": "address",
126
+ "indexed": true
127
+ },
128
+ {
129
+ "name": "token_amounts",
130
+ "type": "uint256[2]",
131
+ "indexed": false
132
+ },
133
+ {
134
+ "name": "fees",
135
+ "type": "uint256[2]",
136
+ "indexed": false
137
+ },
138
+ {
139
+ "name": "invariant",
140
+ "type": "uint256",
141
+ "indexed": false
142
+ },
143
+ {
144
+ "name": "token_supply",
145
+ "type": "uint256",
146
+ "indexed": false
147
+ }
148
+ ],
149
+ "anonymous": false,
150
+ "type": "event"
151
+ },
152
+ {
153
+ "name": "CommitNewAdmin",
154
+ "inputs": [
155
+ {
156
+ "name": "deadline",
157
+ "type": "uint256",
158
+ "indexed": true
159
+ },
160
+ {
161
+ "name": "admin",
162
+ "type": "address",
163
+ "indexed": true
164
+ }
165
+ ],
166
+ "anonymous": false,
167
+ "type": "event"
168
+ },
169
+ {
170
+ "name": "NewAdmin",
171
+ "inputs": [
172
+ {
173
+ "name": "admin",
174
+ "type": "address",
175
+ "indexed": true
176
+ }
177
+ ],
178
+ "anonymous": false,
179
+ "type": "event"
180
+ },
181
+ {
182
+ "name": "CommitNewFee",
183
+ "inputs": [
184
+ {
185
+ "name": "deadline",
186
+ "type": "uint256",
187
+ "indexed": true
188
+ },
189
+ {
190
+ "name": "fee",
191
+ "type": "uint256",
192
+ "indexed": false
193
+ },
194
+ {
195
+ "name": "admin_fee",
196
+ "type": "uint256",
197
+ "indexed": false
198
+ }
199
+ ],
200
+ "anonymous": false,
201
+ "type": "event"
202
+ },
203
+ {
204
+ "name": "NewFee",
205
+ "inputs": [
206
+ {
207
+ "name": "fee",
208
+ "type": "uint256",
209
+ "indexed": false
210
+ },
211
+ {
212
+ "name": "admin_fee",
213
+ "type": "uint256",
214
+ "indexed": false
215
+ }
216
+ ],
217
+ "anonymous": false,
218
+ "type": "event"
219
+ },
220
+ {
221
+ "name": "RampA",
222
+ "inputs": [
223
+ {
224
+ "name": "old_A",
225
+ "type": "uint256",
226
+ "indexed": false
227
+ },
228
+ {
229
+ "name": "new_A",
230
+ "type": "uint256",
231
+ "indexed": false
232
+ },
233
+ {
234
+ "name": "initial_time",
235
+ "type": "uint256",
236
+ "indexed": false
237
+ },
238
+ {
239
+ "name": "future_time",
240
+ "type": "uint256",
241
+ "indexed": false
242
+ }
243
+ ],
244
+ "anonymous": false,
245
+ "type": "event"
246
+ },
247
+ {
248
+ "name": "StopRampA",
249
+ "inputs": [
250
+ {
251
+ "name": "A",
252
+ "type": "uint256",
253
+ "indexed": false
254
+ },
255
+ {
256
+ "name": "t",
257
+ "type": "uint256",
258
+ "indexed": false
259
+ }
260
+ ],
261
+ "anonymous": false,
262
+ "type": "event"
263
+ },
264
+ {
265
+ "stateMutability": "nonpayable",
266
+ "type": "constructor",
267
+ "inputs": [
268
+ {
269
+ "name": "_owner",
270
+ "type": "address"
271
+ },
272
+ {
273
+ "name": "_coins",
274
+ "type": "address[2]"
275
+ },
276
+ {
277
+ "name": "_pool_token",
278
+ "type": "address"
279
+ },
280
+ {
281
+ "name": "_A",
282
+ "type": "uint256"
283
+ },
284
+ {
285
+ "name": "_fee",
286
+ "type": "uint256"
287
+ },
288
+ {
289
+ "name": "_admin_fee",
290
+ "type": "uint256"
291
+ }
292
+ ],
293
+ "outputs": []
294
+ },
295
+ {
296
+ "stateMutability": "view",
297
+ "type": "function",
298
+ "name": "A",
299
+ "inputs": [],
300
+ "outputs": [
301
+ {
302
+ "name": "",
303
+ "type": "uint256"
304
+ }
305
+ ],
306
+ "gas": "10058"
307
+ },
308
+ {
309
+ "stateMutability": "view",
310
+ "type": "function",
311
+ "name": "A_precise",
312
+ "inputs": [],
313
+ "outputs": [
314
+ {
315
+ "name": "",
316
+ "type": "uint256"
317
+ }
318
+ ],
319
+ "gas": "10058"
320
+ },
321
+ {
322
+ "stateMutability": "view",
323
+ "type": "function",
324
+ "name": "get_virtual_price",
325
+ "inputs": [],
326
+ "outputs": [
327
+ {
328
+ "name": "",
329
+ "type": "uint256"
330
+ }
331
+ ],
332
+ "gas": "804988"
333
+ },
334
+ {
335
+ "stateMutability": "view",
336
+ "type": "function",
337
+ "name": "calc_token_amount",
338
+ "inputs": [
339
+ {
340
+ "name": "_amounts",
341
+ "type": "uint256[2]"
342
+ },
343
+ {
344
+ "name": "_is_deposit",
345
+ "type": "bool"
346
+ }
347
+ ],
348
+ "outputs": [
349
+ {
350
+ "name": "",
351
+ "type": "uint256"
352
+ }
353
+ ],
354
+ "gas": "1593467"
355
+ },
356
+ {
357
+ "stateMutability": "nonpayable",
358
+ "type": "function",
359
+ "name": "add_liquidity",
360
+ "inputs": [
361
+ {
362
+ "name": "_amounts",
363
+ "type": "uint256[2]"
364
+ },
365
+ {
366
+ "name": "_min_mint_amount",
367
+ "type": "uint256"
368
+ }
369
+ ],
370
+ "outputs": [
371
+ {
372
+ "name": "",
373
+ "type": "uint256"
374
+ }
375
+ ],
376
+ "gas": "2546841"
377
+ },
378
+ {
379
+ "stateMutability": "view",
380
+ "type": "function",
381
+ "name": "get_dy",
382
+ "inputs": [
383
+ {
384
+ "name": "i",
385
+ "type": "int128"
386
+ },
387
+ {
388
+ "name": "j",
389
+ "type": "int128"
390
+ },
391
+ {
392
+ "name": "_dx",
393
+ "type": "uint256"
394
+ }
395
+ ],
396
+ "outputs": [
397
+ {
398
+ "name": "",
399
+ "type": "uint256"
400
+ }
401
+ ],
402
+ "gas": "1149036"
403
+ },
404
+ {
405
+ "stateMutability": "nonpayable",
406
+ "type": "function",
407
+ "name": "exchange",
408
+ "inputs": [
409
+ {
410
+ "name": "i",
411
+ "type": "int128"
412
+ },
413
+ {
414
+ "name": "j",
415
+ "type": "int128"
416
+ },
417
+ {
418
+ "name": "_dx",
419
+ "type": "uint256"
420
+ },
421
+ {
422
+ "name": "_min_dy",
423
+ "type": "uint256"
424
+ }
425
+ ],
426
+ "outputs": [
427
+ {
428
+ "name": "",
429
+ "type": "uint256"
430
+ }
431
+ ],
432
+ "gas": "1307513"
433
+ },
434
+ {
435
+ "stateMutability": "nonpayable",
436
+ "type": "function",
437
+ "name": "remove_liquidity",
438
+ "inputs": [
439
+ {
440
+ "name": "_amount",
441
+ "type": "uint256"
442
+ },
443
+ {
444
+ "name": "_min_amounts",
445
+ "type": "uint256[2]"
446
+ }
447
+ ],
448
+ "outputs": [
449
+ {
450
+ "name": "",
451
+ "type": "uint256[2]"
452
+ }
453
+ ],
454
+ "gas": "169716"
455
+ },
456
+ {
457
+ "stateMutability": "nonpayable",
458
+ "type": "function",
459
+ "name": "remove_liquidity_imbalance",
460
+ "inputs": [
461
+ {
462
+ "name": "_amounts",
463
+ "type": "uint256[2]"
464
+ },
465
+ {
466
+ "name": "_max_burn_amount",
467
+ "type": "uint256"
468
+ }
469
+ ],
470
+ "outputs": [
471
+ {
472
+ "name": "",
473
+ "type": "uint256"
474
+ }
475
+ ],
476
+ "gas": "2546560"
477
+ },
478
+ {
479
+ "stateMutability": "view",
480
+ "type": "function",
481
+ "name": "calc_withdraw_one_coin",
482
+ "inputs": [
483
+ {
484
+ "name": "_token_amount",
485
+ "type": "uint256"
486
+ },
487
+ {
488
+ "name": "i",
489
+ "type": "int128"
490
+ }
491
+ ],
492
+ "outputs": [
493
+ {
494
+ "name": "",
495
+ "type": "uint256"
496
+ }
497
+ ],
498
+ "gas": "989"
499
+ },
500
+ {
501
+ "stateMutability": "nonpayable",
502
+ "type": "function",
503
+ "name": "remove_liquidity_one_coin",
504
+ "inputs": [
505
+ {
506
+ "name": "_token_amount",
507
+ "type": "uint256"
508
+ },
509
+ {
510
+ "name": "i",
511
+ "type": "int128"
512
+ },
513
+ {
514
+ "name": "_min_amount",
515
+ "type": "uint256"
516
+ }
517
+ ],
518
+ "outputs": [
519
+ {
520
+ "name": "",
521
+ "type": "uint256"
522
+ }
523
+ ],
524
+ "gas": "1620521"
525
+ },
526
+ {
527
+ "stateMutability": "nonpayable",
528
+ "type": "function",
529
+ "name": "ramp_A",
530
+ "inputs": [
531
+ {
532
+ "name": "_future_A",
533
+ "type": "uint256"
534
+ },
535
+ {
536
+ "name": "_future_time",
537
+ "type": "uint256"
538
+ }
539
+ ],
540
+ "outputs": [],
541
+ "gas": "158394"
542
+ },
543
+ {
544
+ "stateMutability": "nonpayable",
545
+ "type": "function",
546
+ "name": "stop_ramp_A",
547
+ "inputs": [],
548
+ "outputs": [],
549
+ "gas": "154617"
550
+ },
551
+ {
552
+ "stateMutability": "nonpayable",
553
+ "type": "function",
554
+ "name": "commit_new_fee",
555
+ "inputs": [
556
+ {
557
+ "name": "_new_fee",
558
+ "type": "uint256"
559
+ },
560
+ {
561
+ "name": "_new_admin_fee",
562
+ "type": "uint256"
563
+ }
564
+ ],
565
+ "outputs": [],
566
+ "gas": "113298"
567
+ },
568
+ {
569
+ "stateMutability": "nonpayable",
570
+ "type": "function",
571
+ "name": "apply_new_fee",
572
+ "inputs": [],
573
+ "outputs": [],
574
+ "gas": "103621"
575
+ },
576
+ {
577
+ "stateMutability": "nonpayable",
578
+ "type": "function",
579
+ "name": "revert_new_parameters",
580
+ "inputs": [],
581
+ "outputs": [],
582
+ "gas": "22901"
583
+ },
584
+ {
585
+ "stateMutability": "nonpayable",
586
+ "type": "function",
587
+ "name": "commit_transfer_ownership",
588
+ "inputs": [
589
+ {
590
+ "name": "_owner",
591
+ "type": "address"
592
+ }
593
+ ],
594
+ "outputs": [],
595
+ "gas": "78536"
596
+ },
597
+ {
598
+ "stateMutability": "nonpayable",
599
+ "type": "function",
600
+ "name": "apply_transfer_ownership",
601
+ "inputs": [],
602
+ "outputs": [],
603
+ "gas": "66804"
604
+ },
605
+ {
606
+ "stateMutability": "nonpayable",
607
+ "type": "function",
608
+ "name": "revert_transfer_ownership",
609
+ "inputs": [],
610
+ "outputs": [],
611
+ "gas": "22991"
612
+ },
613
+ {
614
+ "stateMutability": "view",
615
+ "type": "function",
616
+ "name": "admin_balances",
617
+ "inputs": [
618
+ {
619
+ "name": "i",
620
+ "type": "uint256"
621
+ }
622
+ ],
623
+ "outputs": [
624
+ {
625
+ "name": "",
626
+ "type": "uint256"
627
+ }
628
+ ],
629
+ "gas": "7769"
630
+ },
631
+ {
632
+ "stateMutability": "nonpayable",
633
+ "type": "function",
634
+ "name": "withdraw_admin_fees",
635
+ "inputs": [],
636
+ "outputs": [],
637
+ "gas": "31496"
638
+ },
639
+ {
640
+ "stateMutability": "nonpayable",
641
+ "type": "function",
642
+ "name": "donate_admin_fees",
643
+ "inputs": [],
644
+ "outputs": [],
645
+ "gas": "82442"
646
+ },
647
+ {
648
+ "stateMutability": "nonpayable",
649
+ "type": "function",
650
+ "name": "kill_me",
651
+ "inputs": [],
652
+ "outputs": [],
653
+ "gas": "40304"
654
+ },
655
+ {
656
+ "stateMutability": "nonpayable",
657
+ "type": "function",
658
+ "name": "unkill_me",
659
+ "inputs": [],
660
+ "outputs": [],
661
+ "gas": "23141"
662
+ },
663
+ {
664
+ "stateMutability": "view",
665
+ "type": "function",
666
+ "name": "coins",
667
+ "inputs": [
668
+ {
669
+ "name": "arg0",
670
+ "type": "uint256"
671
+ }
672
+ ],
673
+ "outputs": [
674
+ {
675
+ "name": "",
676
+ "type": "address"
677
+ }
678
+ ],
679
+ "gas": "3225"
680
+ },
681
+ {
682
+ "stateMutability": "view",
683
+ "type": "function",
684
+ "name": "balances",
685
+ "inputs": [
686
+ {
687
+ "name": "arg0",
688
+ "type": "uint256"
689
+ }
690
+ ],
691
+ "outputs": [
692
+ {
693
+ "name": "",
694
+ "type": "uint256"
695
+ }
696
+ ],
697
+ "gas": "3255"
698
+ },
699
+ {
700
+ "stateMutability": "view",
701
+ "type": "function",
702
+ "name": "fee",
703
+ "inputs": [],
704
+ "outputs": [
705
+ {
706
+ "name": "",
707
+ "type": "uint256"
708
+ }
709
+ ],
710
+ "gas": "3240"
711
+ },
712
+ {
713
+ "stateMutability": "view",
714
+ "type": "function",
715
+ "name": "admin_fee",
716
+ "inputs": [],
717
+ "outputs": [
718
+ {
719
+ "name": "",
720
+ "type": "uint256"
721
+ }
722
+ ],
723
+ "gas": "3270"
724
+ },
725
+ {
726
+ "stateMutability": "view",
727
+ "type": "function",
728
+ "name": "owner",
729
+ "inputs": [],
730
+ "outputs": [
731
+ {
732
+ "name": "",
733
+ "type": "address"
734
+ }
735
+ ],
736
+ "gas": "3300"
737
+ },
738
+ {
739
+ "stateMutability": "view",
740
+ "type": "function",
741
+ "name": "lp_token",
742
+ "inputs": [],
743
+ "outputs": [
744
+ {
745
+ "name": "",
746
+ "type": "address"
747
+ }
748
+ ],
749
+ "gas": "3330"
750
+ },
751
+ {
752
+ "stateMutability": "view",
753
+ "type": "function",
754
+ "name": "initial_A",
755
+ "inputs": [],
756
+ "outputs": [
757
+ {
758
+ "name": "",
759
+ "type": "uint256"
760
+ }
761
+ ],
762
+ "gas": "3360"
763
+ },
764
+ {
765
+ "stateMutability": "view",
766
+ "type": "function",
767
+ "name": "future_A",
768
+ "inputs": [],
769
+ "outputs": [
770
+ {
771
+ "name": "",
772
+ "type": "uint256"
773
+ }
774
+ ],
775
+ "gas": "3390"
776
+ },
777
+ {
778
+ "stateMutability": "view",
779
+ "type": "function",
780
+ "name": "initial_A_time",
781
+ "inputs": [],
782
+ "outputs": [
783
+ {
784
+ "name": "",
785
+ "type": "uint256"
786
+ }
787
+ ],
788
+ "gas": "3420"
789
+ },
790
+ {
791
+ "stateMutability": "view",
792
+ "type": "function",
793
+ "name": "future_A_time",
794
+ "inputs": [],
795
+ "outputs": [
796
+ {
797
+ "name": "",
798
+ "type": "uint256"
799
+ }
800
+ ],
801
+ "gas": "3450"
802
+ },
803
+ {
804
+ "stateMutability": "view",
805
+ "type": "function",
806
+ "name": "admin_actions_deadline",
807
+ "inputs": [],
808
+ "outputs": [
809
+ {
810
+ "name": "",
811
+ "type": "uint256"
812
+ }
813
+ ],
814
+ "gas": "3480"
815
+ },
816
+ {
817
+ "stateMutability": "view",
818
+ "type": "function",
819
+ "name": "transfer_ownership_deadline",
820
+ "inputs": [],
821
+ "outputs": [
822
+ {
823
+ "name": "",
824
+ "type": "uint256"
825
+ }
826
+ ],
827
+ "gas": "3510"
828
+ },
829
+ {
830
+ "stateMutability": "view",
831
+ "type": "function",
832
+ "name": "future_fee",
833
+ "inputs": [],
834
+ "outputs": [
835
+ {
836
+ "name": "",
837
+ "type": "uint256"
838
+ }
839
+ ],
840
+ "gas": "3540"
841
+ },
842
+ {
843
+ "stateMutability": "view",
844
+ "type": "function",
845
+ "name": "future_admin_fee",
846
+ "inputs": [],
847
+ "outputs": [
848
+ {
849
+ "name": "",
850
+ "type": "uint256"
851
+ }
852
+ ],
853
+ "gas": "3570"
854
+ },
855
+ {
856
+ "stateMutability": "view",
857
+ "type": "function",
858
+ "name": "future_owner",
859
+ "inputs": [],
860
+ "outputs": [
861
+ {
862
+ "name": "",
863
+ "type": "address"
864
+ }
865
+ ],
866
+ "gas": "3600"
867
+ }
868
+ ]