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