@curvefi/api 2.69.9 → 2.69.10

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.
Files changed (62) hide show
  1. package/lib/constants/chainIds.d.ts +0 -1
  2. package/lib/constants/chainIds.js +0 -1
  3. package/lib/constants/coins/index.d.ts +1 -10
  4. package/lib/constants/coins/index.js +1 -10
  5. package/lib/constants/factory/crypto.d.ts +0 -45
  6. package/lib/constants/factory/crypto.js +0 -72
  7. package/lib/constants/factory/stable.d.ts +0 -9
  8. package/lib/constants/factory/stable.js +0 -119
  9. package/lib/constants/network_constants.js +2 -258
  10. package/lib/constants/pools/index.d.ts +1 -10
  11. package/lib/constants/pools/index.js +1 -10
  12. package/lib/constants/rewardNetworks.js +1 -1
  13. package/lib/constants/volumeNetworks.d.ts +0 -2
  14. package/lib/constants/volumeNetworks.js +1 -3
  15. package/lib/curve.js +1 -4
  16. package/lib/external-api.d.ts +0 -2
  17. package/lib/external-api.js +0 -41
  18. package/lib/pools/PoolTemplate.js +0 -2
  19. package/lib/pools/subClasses/statsPool.js +2 -2
  20. package/lib/pools/utils.js +2 -7
  21. package/lib/route-graph.worker.js +2 -3
  22. package/lib/utils.js +3 -55
  23. package/package.json +1 -1
  24. package/lib/constants/abis/avaxcrypto/swap.json +0 -1195
  25. package/lib/constants/abis/avaxcrypto/zap.json +0 -250
  26. package/lib/constants/abis/factory-v2/MetaUSDGeist.json +0 -932
  27. package/lib/constants/coins/aurora.d.ts +0 -3
  28. package/lib/constants/coins/aurora.js +0 -9
  29. package/lib/constants/coins/avalanche.d.ts +0 -4
  30. package/lib/constants/coins/avalanche.js +0 -34
  31. package/lib/constants/coins/celo.d.ts +0 -3
  32. package/lib/constants/coins/celo.js +0 -9
  33. package/lib/constants/coins/kava.d.ts +0 -3
  34. package/lib/constants/coins/kava.js +0 -9
  35. package/lib/constants/coins/mantle.d.ts +0 -2
  36. package/lib/constants/coins/mantle.js +0 -5
  37. package/lib/constants/coins/moonbeam.d.ts +0 -3
  38. package/lib/constants/coins/moonbeam.js +0 -9
  39. package/lib/constants/coins/sonic.d.ts +0 -2
  40. package/lib/constants/coins/sonic.js +0 -5
  41. package/lib/constants/coins/xlayer.d.ts +0 -2
  42. package/lib/constants/coins/xlayer.js +0 -5
  43. package/lib/constants/coins/zksync.d.ts +0 -2
  44. package/lib/constants/coins/zksync.js +0 -6
  45. package/lib/constants/pools/aurora.d.ts +0 -2
  46. package/lib/constants/pools/aurora.js +0 -31
  47. package/lib/constants/pools/avalanche.d.ts +0 -2
  48. package/lib/constants/pools/avalanche.js +0 -166
  49. package/lib/constants/pools/celo.d.ts +0 -2
  50. package/lib/constants/pools/celo.js +0 -2
  51. package/lib/constants/pools/kava.d.ts +0 -2
  52. package/lib/constants/pools/kava.js +0 -2
  53. package/lib/constants/pools/mantle.d.ts +0 -2
  54. package/lib/constants/pools/mantle.js +0 -2
  55. package/lib/constants/pools/moonbeam.d.ts +0 -2
  56. package/lib/constants/pools/moonbeam.js +0 -31
  57. package/lib/constants/pools/sonic.d.ts +0 -2
  58. package/lib/constants/pools/sonic.js +0 -2
  59. package/lib/constants/pools/xlayer.d.ts +0 -2
  60. package/lib/constants/pools/xlayer.js +0 -2
  61. package/lib/constants/pools/zksync.d.ts +0 -2
  62. package/lib/constants/pools/zksync.js +0 -2
@@ -1,932 +0,0 @@
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": "545069"
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": "318"
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": "91298"
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": "129233"
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": "39151"
393
- },
394
- {
395
- "stateMutability": "view",
396
- "type": "function",
397
- "name": "admin_fee",
398
- "inputs": [],
399
- "outputs": [
400
- {
401
- "name": "",
402
- "type": "uint256"
403
- }
404
- ],
405
- "gas": "438"
406
- },
407
- {
408
- "stateMutability": "view",
409
- "type": "function",
410
- "name": "A",
411
- "inputs": [],
412
- "outputs": [
413
- {
414
- "name": "",
415
- "type": "uint256"
416
- }
417
- ],
418
- "gas": "10704"
419
- },
420
- {
421
- "stateMutability": "view",
422
- "type": "function",
423
- "name": "A_precise",
424
- "inputs": [],
425
- "outputs": [
426
- {
427
- "name": "",
428
- "type": "uint256"
429
- }
430
- ],
431
- "gas": "10666"
432
- },
433
- {
434
- "stateMutability": "view",
435
- "type": "function",
436
- "name": "get_virtual_price",
437
- "inputs": [],
438
- "outputs": [
439
- {
440
- "name": "",
441
- "type": "uint256"
442
- }
443
- ],
444
- "gas": "1023280"
445
- },
446
- {
447
- "stateMutability": "view",
448
- "type": "function",
449
- "name": "calc_token_amount",
450
- "inputs": [
451
- {
452
- "name": "_amounts",
453
- "type": "uint256[2]"
454
- },
455
- {
456
- "name": "_is_deposit",
457
- "type": "bool"
458
- }
459
- ],
460
- "outputs": [
461
- {
462
- "name": "",
463
- "type": "uint256"
464
- }
465
- ],
466
- "gas": "4029742"
467
- },
468
- {
469
- "stateMutability": "nonpayable",
470
- "type": "function",
471
- "name": "add_liquidity",
472
- "inputs": [
473
- {
474
- "name": "_amounts",
475
- "type": "uint256[2]"
476
- },
477
- {
478
- "name": "_min_mint_amount",
479
- "type": "uint256"
480
- }
481
- ],
482
- "outputs": [
483
- {
484
- "name": "",
485
- "type": "uint256"
486
- }
487
- ]
488
- },
489
- {
490
- "stateMutability": "view",
491
- "type": "function",
492
- "name": "get_dy",
493
- "inputs": [
494
- {
495
- "name": "i",
496
- "type": "int128"
497
- },
498
- {
499
- "name": "j",
500
- "type": "int128"
501
- },
502
- {
503
- "name": "dx",
504
- "type": "uint256"
505
- }
506
- ],
507
- "outputs": [
508
- {
509
- "name": "",
510
- "type": "uint256"
511
- }
512
- ],
513
- "gas": "2466434"
514
- },
515
- {
516
- "stateMutability": "view",
517
- "type": "function",
518
- "name": "get_dy_underlying",
519
- "inputs": [
520
- {
521
- "name": "i",
522
- "type": "int128"
523
- },
524
- {
525
- "name": "j",
526
- "type": "int128"
527
- },
528
- {
529
- "name": "dx",
530
- "type": "uint256"
531
- }
532
- ],
533
- "outputs": [
534
- {
535
- "name": "",
536
- "type": "uint256"
537
- }
538
- ],
539
- "gas": "2474941"
540
- },
541
- {
542
- "stateMutability": "nonpayable",
543
- "type": "function",
544
- "name": "exchange",
545
- "inputs": [
546
- {
547
- "name": "i",
548
- "type": "int128"
549
- },
550
- {
551
- "name": "j",
552
- "type": "int128"
553
- },
554
- {
555
- "name": "_dx",
556
- "type": "uint256"
557
- },
558
- {
559
- "name": "_min_dy",
560
- "type": "uint256"
561
- }
562
- ],
563
- "outputs": [
564
- {
565
- "name": "",
566
- "type": "uint256"
567
- }
568
- ]
569
- },
570
- {
571
- "stateMutability": "nonpayable",
572
- "type": "function",
573
- "name": "exchange_underlying",
574
- "inputs": [
575
- {
576
- "name": "i",
577
- "type": "int128"
578
- },
579
- {
580
- "name": "j",
581
- "type": "int128"
582
- },
583
- {
584
- "name": "_dx",
585
- "type": "uint256"
586
- },
587
- {
588
- "name": "_min_dy",
589
- "type": "uint256"
590
- }
591
- ],
592
- "outputs": [
593
- {
594
- "name": "",
595
- "type": "uint256"
596
- }
597
- ]
598
- },
599
- {
600
- "stateMutability": "nonpayable",
601
- "type": "function",
602
- "name": "remove_liquidity",
603
- "inputs": [
604
- {
605
- "name": "_burn_amount",
606
- "type": "uint256"
607
- },
608
- {
609
- "name": "_min_amounts",
610
- "type": "uint256[2]"
611
- }
612
- ],
613
- "outputs": [
614
- {
615
- "name": "",
616
- "type": "uint256[2]"
617
- }
618
- ]
619
- },
620
- {
621
- "stateMutability": "nonpayable",
622
- "type": "function",
623
- "name": "remove_liquidity_imbalance",
624
- "inputs": [
625
- {
626
- "name": "_amounts",
627
- "type": "uint256[2]"
628
- },
629
- {
630
- "name": "_max_burn_amount",
631
- "type": "uint256"
632
- }
633
- ],
634
- "outputs": [
635
- {
636
- "name": "",
637
- "type": "uint256"
638
- }
639
- ]
640
- },
641
- {
642
- "stateMutability": "view",
643
- "type": "function",
644
- "name": "calc_withdraw_one_coin",
645
- "inputs": [
646
- {
647
- "name": "_burn_amount",
648
- "type": "uint256"
649
- },
650
- {
651
- "name": "i",
652
- "type": "int128"
653
- }
654
- ],
655
- "outputs": [
656
- {
657
- "name": "",
658
- "type": "uint256"
659
- }
660
- ],
661
- "gas": "1108"
662
- },
663
- {
664
- "stateMutability": "nonpayable",
665
- "type": "function",
666
- "name": "remove_liquidity_one_coin",
667
- "inputs": [
668
- {
669
- "name": "_burn_amount",
670
- "type": "uint256"
671
- },
672
- {
673
- "name": "i",
674
- "type": "int128"
675
- },
676
- {
677
- "name": "_min_received",
678
- "type": "uint256"
679
- }
680
- ],
681
- "outputs": [
682
- {
683
- "name": "",
684
- "type": "uint256"
685
- }
686
- ]
687
- },
688
- {
689
- "stateMutability": "nonpayable",
690
- "type": "function",
691
- "name": "ramp_A",
692
- "inputs": [
693
- {
694
- "name": "_future_A",
695
- "type": "uint256"
696
- },
697
- {
698
- "name": "_future_time",
699
- "type": "uint256"
700
- }
701
- ],
702
- "outputs": [],
703
- "gas": "161967"
704
- },
705
- {
706
- "stateMutability": "nonpayable",
707
- "type": "function",
708
- "name": "stop_ramp_A",
709
- "inputs": [],
710
- "outputs": [],
711
- "gas": "157887"
712
- },
713
- {
714
- "stateMutability": "view",
715
- "type": "function",
716
- "name": "admin_balances",
717
- "inputs": [
718
- {
719
- "name": "i",
720
- "type": "uint256"
721
- }
722
- ],
723
- "outputs": [
724
- {
725
- "name": "",
726
- "type": "uint256"
727
- }
728
- ],
729
- "gas": "7855"
730
- },
731
- {
732
- "stateMutability": "nonpayable",
733
- "type": "function",
734
- "name": "withdraw_admin_fees",
735
- "inputs": [],
736
- "outputs": [],
737
- "gas": "43650"
738
- },
739
- {
740
- "stateMutability": "view",
741
- "type": "function",
742
- "name": "coins",
743
- "inputs": [
744
- {
745
- "name": "arg0",
746
- "type": "uint256"
747
- }
748
- ],
749
- "outputs": [
750
- {
751
- "name": "",
752
- "type": "address"
753
- }
754
- ],
755
- "gas": "3123"
756
- },
757
- {
758
- "stateMutability": "view",
759
- "type": "function",
760
- "name": "balances",
761
- "inputs": [
762
- {
763
- "name": "arg0",
764
- "type": "uint256"
765
- }
766
- ],
767
- "outputs": [
768
- {
769
- "name": "",
770
- "type": "uint256"
771
- }
772
- ],
773
- "gas": "3153"
774
- },
775
- {
776
- "stateMutability": "view",
777
- "type": "function",
778
- "name": "fee",
779
- "inputs": [],
780
- "outputs": [
781
- {
782
- "name": "",
783
- "type": "uint256"
784
- }
785
- ],
786
- "gas": "3138"
787
- },
788
- {
789
- "stateMutability": "view",
790
- "type": "function",
791
- "name": "initial_A",
792
- "inputs": [],
793
- "outputs": [
794
- {
795
- "name": "",
796
- "type": "uint256"
797
- }
798
- ],
799
- "gas": "3168"
800
- },
801
- {
802
- "stateMutability": "view",
803
- "type": "function",
804
- "name": "future_A",
805
- "inputs": [],
806
- "outputs": [
807
- {
808
- "name": "",
809
- "type": "uint256"
810
- }
811
- ],
812
- "gas": "3198"
813
- },
814
- {
815
- "stateMutability": "view",
816
- "type": "function",
817
- "name": "initial_A_time",
818
- "inputs": [],
819
- "outputs": [
820
- {
821
- "name": "",
822
- "type": "uint256"
823
- }
824
- ],
825
- "gas": "3228"
826
- },
827
- {
828
- "stateMutability": "view",
829
- "type": "function",
830
- "name": "future_A_time",
831
- "inputs": [],
832
- "outputs": [
833
- {
834
- "name": "",
835
- "type": "uint256"
836
- }
837
- ],
838
- "gas": "3258"
839
- },
840
- {
841
- "stateMutability": "view",
842
- "type": "function",
843
- "name": "name",
844
- "inputs": [],
845
- "outputs": [
846
- {
847
- "name": "",
848
- "type": "string"
849
- }
850
- ],
851
- "gas": "13518"
852
- },
853
- {
854
- "stateMutability": "view",
855
- "type": "function",
856
- "name": "symbol",
857
- "inputs": [],
858
- "outputs": [
859
- {
860
- "name": "",
861
- "type": "string"
862
- }
863
- ],
864
- "gas": "11271"
865
- },
866
- {
867
- "stateMutability": "view",
868
- "type": "function",
869
- "name": "balanceOf",
870
- "inputs": [
871
- {
872
- "name": "arg0",
873
- "type": "address"
874
- }
875
- ],
876
- "outputs": [
877
- {
878
- "name": "",
879
- "type": "uint256"
880
- }
881
- ],
882
- "gas": "3563"
883
- },
884
- {
885
- "stateMutability": "view",
886
- "type": "function",
887
- "name": "allowance",
888
- "inputs": [
889
- {
890
- "name": "arg0",
891
- "type": "address"
892
- },
893
- {
894
- "name": "arg1",
895
- "type": "address"
896
- }
897
- ],
898
- "outputs": [
899
- {
900
- "name": "",
901
- "type": "uint256"
902
- }
903
- ],
904
- "gas": "3808"
905
- },
906
- {
907
- "stateMutability": "view",
908
- "type": "function",
909
- "name": "totalSupply",
910
- "inputs": [],
911
- "outputs": [
912
- {
913
- "name": "",
914
- "type": "uint256"
915
- }
916
- ],
917
- "gas": "3408"
918
- },
919
- {
920
- "stateMutability": "view",
921
- "type": "function",
922
- "name": "rewards_receiver",
923
- "inputs": [],
924
- "outputs": [
925
- {
926
- "name": "",
927
- "type": "address"
928
- }
929
- ],
930
- "gas": "3438"
931
- }
932
- ]