@paraswap/dex-lib 3.8.36 → 3.8.37

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,867 @@
1
+ [
2
+ {
3
+ "inputs": [],
4
+ "stateMutability": "nonpayable",
5
+ "type": "constructor"
6
+ },
7
+ {
8
+ "inputs": [
9
+ {
10
+ "internalType": "address",
11
+ "name": "target",
12
+ "type": "address"
13
+ }
14
+ ],
15
+ "name": "AddressEmptyCode",
16
+ "type": "error"
17
+ },
18
+ {
19
+ "inputs": [
20
+ {
21
+ "internalType": "address",
22
+ "name": "account",
23
+ "type": "address"
24
+ }
25
+ ],
26
+ "name": "AddressInsufficientBalance",
27
+ "type": "error"
28
+ },
29
+ {
30
+ "inputs": [],
31
+ "name": "AmountIsZero",
32
+ "type": "error"
33
+ },
34
+ {
35
+ "inputs": [],
36
+ "name": "BeginInPast",
37
+ "type": "error"
38
+ },
39
+ {
40
+ "inputs": [],
41
+ "name": "Blacklisted",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [],
46
+ "name": "BondFinished",
47
+ "type": "error"
48
+ },
49
+ {
50
+ "inputs": [],
51
+ "name": "BondNotFinished",
52
+ "type": "error"
53
+ },
54
+ {
55
+ "inputs": [],
56
+ "name": "BondNotStarted",
57
+ "type": "error"
58
+ },
59
+ {
60
+ "inputs": [],
61
+ "name": "ECDSAInvalidSignature",
62
+ "type": "error"
63
+ },
64
+ {
65
+ "inputs": [
66
+ {
67
+ "internalType": "uint256",
68
+ "name": "length",
69
+ "type": "uint256"
70
+ }
71
+ ],
72
+ "name": "ECDSAInvalidSignatureLength",
73
+ "type": "error"
74
+ },
75
+ {
76
+ "inputs": [
77
+ {
78
+ "internalType": "bytes32",
79
+ "name": "s",
80
+ "type": "bytes32"
81
+ }
82
+ ],
83
+ "name": "ECDSAInvalidSignatureS",
84
+ "type": "error"
85
+ },
86
+ {
87
+ "inputs": [
88
+ {
89
+ "internalType": "address",
90
+ "name": "spender",
91
+ "type": "address"
92
+ },
93
+ {
94
+ "internalType": "uint256",
95
+ "name": "allowance",
96
+ "type": "uint256"
97
+ },
98
+ {
99
+ "internalType": "uint256",
100
+ "name": "needed",
101
+ "type": "uint256"
102
+ }
103
+ ],
104
+ "name": "ERC20InsufficientAllowance",
105
+ "type": "error"
106
+ },
107
+ {
108
+ "inputs": [
109
+ {
110
+ "internalType": "address",
111
+ "name": "sender",
112
+ "type": "address"
113
+ },
114
+ {
115
+ "internalType": "uint256",
116
+ "name": "balance",
117
+ "type": "uint256"
118
+ },
119
+ {
120
+ "internalType": "uint256",
121
+ "name": "needed",
122
+ "type": "uint256"
123
+ }
124
+ ],
125
+ "name": "ERC20InsufficientBalance",
126
+ "type": "error"
127
+ },
128
+ {
129
+ "inputs": [
130
+ {
131
+ "internalType": "address",
132
+ "name": "approver",
133
+ "type": "address"
134
+ }
135
+ ],
136
+ "name": "ERC20InvalidApprover",
137
+ "type": "error"
138
+ },
139
+ {
140
+ "inputs": [
141
+ {
142
+ "internalType": "address",
143
+ "name": "receiver",
144
+ "type": "address"
145
+ }
146
+ ],
147
+ "name": "ERC20InvalidReceiver",
148
+ "type": "error"
149
+ },
150
+ {
151
+ "inputs": [
152
+ {
153
+ "internalType": "address",
154
+ "name": "sender",
155
+ "type": "address"
156
+ }
157
+ ],
158
+ "name": "ERC20InvalidSender",
159
+ "type": "error"
160
+ },
161
+ {
162
+ "inputs": [
163
+ {
164
+ "internalType": "address",
165
+ "name": "spender",
166
+ "type": "address"
167
+ }
168
+ ],
169
+ "name": "ERC20InvalidSpender",
170
+ "type": "error"
171
+ },
172
+ {
173
+ "inputs": [
174
+ {
175
+ "internalType": "uint256",
176
+ "name": "deadline",
177
+ "type": "uint256"
178
+ }
179
+ ],
180
+ "name": "ERC2612ExpiredSignature",
181
+ "type": "error"
182
+ },
183
+ {
184
+ "inputs": [
185
+ {
186
+ "internalType": "address",
187
+ "name": "signer",
188
+ "type": "address"
189
+ },
190
+ {
191
+ "internalType": "address",
192
+ "name": "owner",
193
+ "type": "address"
194
+ }
195
+ ],
196
+ "name": "ERC2612InvalidSigner",
197
+ "type": "error"
198
+ },
199
+ {
200
+ "inputs": [],
201
+ "name": "EnforcedPause",
202
+ "type": "error"
203
+ },
204
+ {
205
+ "inputs": [],
206
+ "name": "ExpectedPause",
207
+ "type": "error"
208
+ },
209
+ {
210
+ "inputs": [],
211
+ "name": "FailedInnerCall",
212
+ "type": "error"
213
+ },
214
+ {
215
+ "inputs": [
216
+ {
217
+ "internalType": "address",
218
+ "name": "account",
219
+ "type": "address"
220
+ },
221
+ {
222
+ "internalType": "uint256",
223
+ "name": "currentNonce",
224
+ "type": "uint256"
225
+ }
226
+ ],
227
+ "name": "InvalidAccountNonce",
228
+ "type": "error"
229
+ },
230
+ {
231
+ "inputs": [],
232
+ "name": "InvalidInitialization",
233
+ "type": "error"
234
+ },
235
+ {
236
+ "inputs": [],
237
+ "name": "InvalidName",
238
+ "type": "error"
239
+ },
240
+ {
241
+ "inputs": [],
242
+ "name": "InvalidSymbol",
243
+ "type": "error"
244
+ },
245
+ {
246
+ "inputs": [],
247
+ "name": "NotAuthorized",
248
+ "type": "error"
249
+ },
250
+ {
251
+ "inputs": [],
252
+ "name": "NotInitializing",
253
+ "type": "error"
254
+ },
255
+ {
256
+ "inputs": [],
257
+ "name": "ReentrancyGuardReentrantCall",
258
+ "type": "error"
259
+ },
260
+ {
261
+ "inputs": [
262
+ {
263
+ "internalType": "address",
264
+ "name": "token",
265
+ "type": "address"
266
+ }
267
+ ],
268
+ "name": "SafeERC20FailedOperation",
269
+ "type": "error"
270
+ },
271
+ {
272
+ "anonymous": false,
273
+ "inputs": [
274
+ {
275
+ "indexed": true,
276
+ "internalType": "address",
277
+ "name": "owner",
278
+ "type": "address"
279
+ },
280
+ {
281
+ "indexed": true,
282
+ "internalType": "address",
283
+ "name": "spender",
284
+ "type": "address"
285
+ },
286
+ {
287
+ "indexed": false,
288
+ "internalType": "uint256",
289
+ "name": "value",
290
+ "type": "uint256"
291
+ }
292
+ ],
293
+ "name": "Approval",
294
+ "type": "event"
295
+ },
296
+ {
297
+ "anonymous": false,
298
+ "inputs": [
299
+ {
300
+ "indexed": true,
301
+ "internalType": "address",
302
+ "name": "user",
303
+ "type": "address"
304
+ },
305
+ {
306
+ "indexed": false,
307
+ "internalType": "uint256",
308
+ "name": "amount",
309
+ "type": "uint256"
310
+ }
311
+ ],
312
+ "name": "BondUnwrapped",
313
+ "type": "event"
314
+ },
315
+ {
316
+ "anonymous": false,
317
+ "inputs": [],
318
+ "name": "EIP712DomainChanged",
319
+ "type": "event"
320
+ },
321
+ {
322
+ "anonymous": false,
323
+ "inputs": [
324
+ {
325
+ "indexed": true,
326
+ "internalType": "address",
327
+ "name": "account",
328
+ "type": "address"
329
+ },
330
+ {
331
+ "indexed": false,
332
+ "internalType": "uint256",
333
+ "name": "balance",
334
+ "type": "uint256"
335
+ }
336
+ ],
337
+ "name": "EmergencyWithdraw",
338
+ "type": "event"
339
+ },
340
+ {
341
+ "anonymous": false,
342
+ "inputs": [
343
+ {
344
+ "indexed": false,
345
+ "internalType": "uint64",
346
+ "name": "version",
347
+ "type": "uint64"
348
+ }
349
+ ],
350
+ "name": "Initialized",
351
+ "type": "event"
352
+ },
353
+ {
354
+ "anonymous": false,
355
+ "inputs": [
356
+ {
357
+ "indexed": false,
358
+ "internalType": "address",
359
+ "name": "account",
360
+ "type": "address"
361
+ }
362
+ ],
363
+ "name": "Paused",
364
+ "type": "event"
365
+ },
366
+ {
367
+ "anonymous": false,
368
+ "inputs": [
369
+ {
370
+ "indexed": true,
371
+ "internalType": "address",
372
+ "name": "from",
373
+ "type": "address"
374
+ },
375
+ {
376
+ "indexed": true,
377
+ "internalType": "address",
378
+ "name": "to",
379
+ "type": "address"
380
+ },
381
+ {
382
+ "indexed": false,
383
+ "internalType": "uint256",
384
+ "name": "value",
385
+ "type": "uint256"
386
+ }
387
+ ],
388
+ "name": "Transfer",
389
+ "type": "event"
390
+ },
391
+ {
392
+ "anonymous": false,
393
+ "inputs": [
394
+ {
395
+ "indexed": false,
396
+ "internalType": "address",
397
+ "name": "account",
398
+ "type": "address"
399
+ }
400
+ ],
401
+ "name": "Unpaused",
402
+ "type": "event"
403
+ },
404
+ {
405
+ "inputs": [],
406
+ "name": "DOMAIN_SEPARATOR",
407
+ "outputs": [
408
+ {
409
+ "internalType": "bytes32",
410
+ "name": "",
411
+ "type": "bytes32"
412
+ }
413
+ ],
414
+ "stateMutability": "view",
415
+ "type": "function"
416
+ },
417
+ {
418
+ "inputs": [],
419
+ "name": "Usd0PPStorageV0Location",
420
+ "outputs": [
421
+ {
422
+ "internalType": "bytes32",
423
+ "name": "",
424
+ "type": "bytes32"
425
+ }
426
+ ],
427
+ "stateMutability": "view",
428
+ "type": "function"
429
+ },
430
+ {
431
+ "inputs": [
432
+ {
433
+ "internalType": "address",
434
+ "name": "owner",
435
+ "type": "address"
436
+ },
437
+ {
438
+ "internalType": "address",
439
+ "name": "spender",
440
+ "type": "address"
441
+ }
442
+ ],
443
+ "name": "allowance",
444
+ "outputs": [
445
+ {
446
+ "internalType": "uint256",
447
+ "name": "",
448
+ "type": "uint256"
449
+ }
450
+ ],
451
+ "stateMutability": "view",
452
+ "type": "function"
453
+ },
454
+ {
455
+ "inputs": [
456
+ {
457
+ "internalType": "address",
458
+ "name": "spender",
459
+ "type": "address"
460
+ },
461
+ {
462
+ "internalType": "uint256",
463
+ "name": "value",
464
+ "type": "uint256"
465
+ }
466
+ ],
467
+ "name": "approve",
468
+ "outputs": [
469
+ {
470
+ "internalType": "bool",
471
+ "name": "",
472
+ "type": "bool"
473
+ }
474
+ ],
475
+ "stateMutability": "nonpayable",
476
+ "type": "function"
477
+ },
478
+ {
479
+ "inputs": [
480
+ {
481
+ "internalType": "address",
482
+ "name": "account",
483
+ "type": "address"
484
+ }
485
+ ],
486
+ "name": "balanceOf",
487
+ "outputs": [
488
+ {
489
+ "internalType": "uint256",
490
+ "name": "",
491
+ "type": "uint256"
492
+ }
493
+ ],
494
+ "stateMutability": "view",
495
+ "type": "function"
496
+ },
497
+ {
498
+ "inputs": [],
499
+ "name": "decimals",
500
+ "outputs": [
501
+ {
502
+ "internalType": "uint8",
503
+ "name": "",
504
+ "type": "uint8"
505
+ }
506
+ ],
507
+ "stateMutability": "view",
508
+ "type": "function"
509
+ },
510
+ {
511
+ "inputs": [],
512
+ "name": "eip712Domain",
513
+ "outputs": [
514
+ {
515
+ "internalType": "bytes1",
516
+ "name": "fields",
517
+ "type": "bytes1"
518
+ },
519
+ {
520
+ "internalType": "string",
521
+ "name": "name",
522
+ "type": "string"
523
+ },
524
+ {
525
+ "internalType": "string",
526
+ "name": "version",
527
+ "type": "string"
528
+ },
529
+ {
530
+ "internalType": "uint256",
531
+ "name": "chainId",
532
+ "type": "uint256"
533
+ },
534
+ {
535
+ "internalType": "address",
536
+ "name": "verifyingContract",
537
+ "type": "address"
538
+ },
539
+ {
540
+ "internalType": "bytes32",
541
+ "name": "salt",
542
+ "type": "bytes32"
543
+ },
544
+ {
545
+ "internalType": "uint256[]",
546
+ "name": "extensions",
547
+ "type": "uint256[]"
548
+ }
549
+ ],
550
+ "stateMutability": "view",
551
+ "type": "function"
552
+ },
553
+ {
554
+ "inputs": [
555
+ {
556
+ "internalType": "address",
557
+ "name": "safeAccount",
558
+ "type": "address"
559
+ }
560
+ ],
561
+ "name": "emergencyWithdraw",
562
+ "outputs": [],
563
+ "stateMutability": "nonpayable",
564
+ "type": "function"
565
+ },
566
+ {
567
+ "inputs": [],
568
+ "name": "getEndTime",
569
+ "outputs": [
570
+ {
571
+ "internalType": "uint256",
572
+ "name": "",
573
+ "type": "uint256"
574
+ }
575
+ ],
576
+ "stateMutability": "view",
577
+ "type": "function"
578
+ },
579
+ {
580
+ "inputs": [],
581
+ "name": "getStartTime",
582
+ "outputs": [
583
+ {
584
+ "internalType": "uint256",
585
+ "name": "",
586
+ "type": "uint256"
587
+ }
588
+ ],
589
+ "stateMutability": "view",
590
+ "type": "function"
591
+ },
592
+ {
593
+ "inputs": [
594
+ {
595
+ "internalType": "address",
596
+ "name": "registryContract",
597
+ "type": "address"
598
+ },
599
+ {
600
+ "internalType": "string",
601
+ "name": "name_",
602
+ "type": "string"
603
+ },
604
+ {
605
+ "internalType": "string",
606
+ "name": "symbol_",
607
+ "type": "string"
608
+ },
609
+ {
610
+ "internalType": "uint256",
611
+ "name": "startTime",
612
+ "type": "uint256"
613
+ }
614
+ ],
615
+ "name": "initialize",
616
+ "outputs": [],
617
+ "stateMutability": "nonpayable",
618
+ "type": "function"
619
+ },
620
+ {
621
+ "inputs": [
622
+ {
623
+ "internalType": "uint256",
624
+ "name": "amountUsd0",
625
+ "type": "uint256"
626
+ }
627
+ ],
628
+ "name": "mint",
629
+ "outputs": [],
630
+ "stateMutability": "nonpayable",
631
+ "type": "function"
632
+ },
633
+ {
634
+ "inputs": [
635
+ {
636
+ "internalType": "uint256",
637
+ "name": "amountUsd0",
638
+ "type": "uint256"
639
+ },
640
+ {
641
+ "internalType": "uint256",
642
+ "name": "deadline",
643
+ "type": "uint256"
644
+ },
645
+ {
646
+ "internalType": "uint8",
647
+ "name": "v",
648
+ "type": "uint8"
649
+ },
650
+ {
651
+ "internalType": "bytes32",
652
+ "name": "r",
653
+ "type": "bytes32"
654
+ },
655
+ {
656
+ "internalType": "bytes32",
657
+ "name": "s",
658
+ "type": "bytes32"
659
+ }
660
+ ],
661
+ "name": "mintWithPermit",
662
+ "outputs": [],
663
+ "stateMutability": "nonpayable",
664
+ "type": "function"
665
+ },
666
+ {
667
+ "inputs": [],
668
+ "name": "name",
669
+ "outputs": [
670
+ {
671
+ "internalType": "string",
672
+ "name": "",
673
+ "type": "string"
674
+ }
675
+ ],
676
+ "stateMutability": "view",
677
+ "type": "function"
678
+ },
679
+ {
680
+ "inputs": [
681
+ {
682
+ "internalType": "address",
683
+ "name": "owner",
684
+ "type": "address"
685
+ }
686
+ ],
687
+ "name": "nonces",
688
+ "outputs": [
689
+ {
690
+ "internalType": "uint256",
691
+ "name": "",
692
+ "type": "uint256"
693
+ }
694
+ ],
695
+ "stateMutability": "view",
696
+ "type": "function"
697
+ },
698
+ {
699
+ "inputs": [],
700
+ "name": "pause",
701
+ "outputs": [],
702
+ "stateMutability": "nonpayable",
703
+ "type": "function"
704
+ },
705
+ {
706
+ "inputs": [],
707
+ "name": "paused",
708
+ "outputs": [
709
+ {
710
+ "internalType": "bool",
711
+ "name": "",
712
+ "type": "bool"
713
+ }
714
+ ],
715
+ "stateMutability": "view",
716
+ "type": "function"
717
+ },
718
+ {
719
+ "inputs": [
720
+ {
721
+ "internalType": "address",
722
+ "name": "owner",
723
+ "type": "address"
724
+ },
725
+ {
726
+ "internalType": "address",
727
+ "name": "spender",
728
+ "type": "address"
729
+ },
730
+ {
731
+ "internalType": "uint256",
732
+ "name": "value",
733
+ "type": "uint256"
734
+ },
735
+ {
736
+ "internalType": "uint256",
737
+ "name": "deadline",
738
+ "type": "uint256"
739
+ },
740
+ {
741
+ "internalType": "uint8",
742
+ "name": "v",
743
+ "type": "uint8"
744
+ },
745
+ {
746
+ "internalType": "bytes32",
747
+ "name": "r",
748
+ "type": "bytes32"
749
+ },
750
+ {
751
+ "internalType": "bytes32",
752
+ "name": "s",
753
+ "type": "bytes32"
754
+ }
755
+ ],
756
+ "name": "permit",
757
+ "outputs": [],
758
+ "stateMutability": "nonpayable",
759
+ "type": "function"
760
+ },
761
+ {
762
+ "inputs": [],
763
+ "name": "symbol",
764
+ "outputs": [
765
+ {
766
+ "internalType": "string",
767
+ "name": "",
768
+ "type": "string"
769
+ }
770
+ ],
771
+ "stateMutability": "view",
772
+ "type": "function"
773
+ },
774
+ {
775
+ "inputs": [],
776
+ "name": "totalBondTimes",
777
+ "outputs": [
778
+ {
779
+ "internalType": "uint256",
780
+ "name": "",
781
+ "type": "uint256"
782
+ }
783
+ ],
784
+ "stateMutability": "pure",
785
+ "type": "function"
786
+ },
787
+ {
788
+ "inputs": [],
789
+ "name": "totalSupply",
790
+ "outputs": [
791
+ {
792
+ "internalType": "uint256",
793
+ "name": "",
794
+ "type": "uint256"
795
+ }
796
+ ],
797
+ "stateMutability": "view",
798
+ "type": "function"
799
+ },
800
+ {
801
+ "inputs": [
802
+ {
803
+ "internalType": "address",
804
+ "name": "recipient",
805
+ "type": "address"
806
+ },
807
+ {
808
+ "internalType": "uint256",
809
+ "name": "amount",
810
+ "type": "uint256"
811
+ }
812
+ ],
813
+ "name": "transfer",
814
+ "outputs": [
815
+ {
816
+ "internalType": "bool",
817
+ "name": "",
818
+ "type": "bool"
819
+ }
820
+ ],
821
+ "stateMutability": "nonpayable",
822
+ "type": "function"
823
+ },
824
+ {
825
+ "inputs": [
826
+ {
827
+ "internalType": "address",
828
+ "name": "sender",
829
+ "type": "address"
830
+ },
831
+ {
832
+ "internalType": "address",
833
+ "name": "recipient",
834
+ "type": "address"
835
+ },
836
+ {
837
+ "internalType": "uint256",
838
+ "name": "amount",
839
+ "type": "uint256"
840
+ }
841
+ ],
842
+ "name": "transferFrom",
843
+ "outputs": [
844
+ {
845
+ "internalType": "bool",
846
+ "name": "",
847
+ "type": "bool"
848
+ }
849
+ ],
850
+ "stateMutability": "nonpayable",
851
+ "type": "function"
852
+ },
853
+ {
854
+ "inputs": [],
855
+ "name": "unpause",
856
+ "outputs": [],
857
+ "stateMutability": "nonpayable",
858
+ "type": "function"
859
+ },
860
+ {
861
+ "inputs": [],
862
+ "name": "unwrap",
863
+ "outputs": [],
864
+ "stateMutability": "nonpayable",
865
+ "type": "function"
866
+ }
867
+ ]