@paraswap/dex-lib 2.16.1 → 2.16.2-pancakeswapv3.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.
- package/build/abi/uniswap-v3/UniswapV3Pool.abi.json +363 -67
- package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +119 -23
- package/build/abi/uniswap-v3/pancakeswap-v3/PancakeswapV3QuoterV2.abi.json +285 -0
- package/build/abi/uniswap-v3/pancakeswap-v3/PancakeswapV3Router.abi.json +583 -0
- package/build/dex/index.js +2 -0
- package/build/dex/index.js.map +1 -1
- package/build/dex/uniswap-v3/config.js +38 -0
- package/build/dex/uniswap-v3/config.js.map +1 -1
- package/build/dex/uniswap-v3/forks/pancakeswap-v3/pancakeswap-v3.d.ts +12 -0
- package/build/dex/uniswap-v3/forks/pancakeswap-v3/pancakeswap-v3.js +23 -0
- package/build/dex/uniswap-v3/forks/pancakeswap-v3/pancakeswap-v3.js.map +1 -0
- package/build/dex/uniswap-v3/types.d.ts +3 -0
- package/build/dex/uniswap-v3/types.js.map +1 -1
- package/build/dex/uniswap-v3/uniswap-v3-pool.d.ts +2 -1
- package/build/dex/uniswap-v3/uniswap-v3-pool.js +3 -2
- package/build/dex/uniswap-v3/uniswap-v3-pool.js.map +1 -1
- package/build/dex/uniswap-v3/uniswap-v3.js +6 -3
- package/build/dex/uniswap-v3/uniswap-v3.js.map +1 -1
- package/package.json +1 -1
- package/src/abi/uniswap-v3/UniswapV3Pool.abi.json +363 -67
- package/src/abi/uniswap-v3/UniswapV3Quoter.abi.json +119 -23
- package/src/abi/uniswap-v3/pancakeswap-v3/PancakeswapV3QuoterV2.abi.json +285 -0
- package/src/abi/uniswap-v3/pancakeswap-v3/PancakeswapV3Router.abi.json +583 -0
- package/src/dex/index.ts +2 -0
- package/src/dex/uniswap-v3/config.ts +42 -0
- package/src/dex/uniswap-v3/forks/pancakeswap-v3/pancakeswap-v3.ts +28 -0
- package/src/dex/uniswap-v3/types.ts +3 -0
- package/src/dex/uniswap-v3/uniswap-v3-e2e.test.ts +156 -0
- package/src/dex/uniswap-v3/uniswap-v3-pool.ts +3 -2
- package/src/dex/uniswap-v3/uniswap-v3.ts +8 -2
- package/.idea/aws.xml +0 -17
- package/.idea/codeStyles/Project.xml +0 -19
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/paraswap-dex-lib.iml +0 -9
- package/.idea/runConfigurations.xml +0 -10
- package/.idea/vcs.xml +0 -6
- package/build/abi/woo-fi/WooFeeManager.abi.json +0 -318
- package/build/abi/woo-fi/WooPP.abi.json +0 -548
- package/build/abi/woo-fi/Wooracle.abi.json +0 -260
- package/build/dex/aave-v3/tokens/arbitrum.json +0 -50
- package/build/dex/aave-v3/tokens/avalanche.json +0 -74
- package/build/dex/aave-v3/tokens/fantom.json +0 -62
- package/build/dex/aave-v3/tokens/optimism.json +0 -50
- package/build/dex/aave-v3/tokens/polygon.json +0 -116
- package/build/dex/quickswap-v3.d.ts +0 -21
- package/build/dex/quickswap-v3.js +0 -40
- package/build/dex/quickswap-v3.js.map +0 -1
- package/build/dex/woo-fi/config.d.ts +0 -4
- package/build/dex/woo-fi/config.js +0 -141
- package/build/dex/woo-fi/config.js.map +0 -1
- package/build/dex/woo-fi/constants.d.ts +0 -5
- package/build/dex/woo-fi/constants.js +0 -20
- package/build/dex/woo-fi/constants.js.map +0 -1
- package/build/dex/woo-fi/types.d.ts +0 -48
- package/build/dex/woo-fi/types.js +0 -3
- package/build/dex/woo-fi/types.js.map +0 -1
- package/build/dex/woo-fi/woo-fi-decimal-math.d.ts +0 -14
- package/build/dex/woo-fi/woo-fi-decimal-math.js +0 -42
- package/build/dex/woo-fi/woo-fi-decimal-math.js.map +0 -1
- package/build/dex/woo-fi/woo-fi-math.d.ts +0 -31
- package/build/dex/woo-fi/woo-fi-math.js +0 -300
- package/build/dex/woo-fi/woo-fi-math.js.map +0 -1
- package/build/dex/woo-fi/woo-fi.d.ts +0 -65
- package/build/dex/woo-fi/woo-fi.js +0 -480
- package/build/dex/woo-fi/woo-fi.js.map +0 -1
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
[
|
|
2
|
-
{
|
|
2
|
+
{
|
|
3
|
+
"inputs": [],
|
|
4
|
+
"stateMutability": "nonpayable",
|
|
5
|
+
"type": "constructor"
|
|
6
|
+
},
|
|
3
7
|
{
|
|
4
8
|
"anonymous": false,
|
|
5
9
|
"inputs": [
|
|
@@ -329,23 +333,55 @@
|
|
|
329
333
|
},
|
|
330
334
|
{
|
|
331
335
|
"inputs": [
|
|
332
|
-
{
|
|
333
|
-
|
|
334
|
-
|
|
336
|
+
{
|
|
337
|
+
"internalType": "int24",
|
|
338
|
+
"name": "tickLower",
|
|
339
|
+
"type": "int24"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"internalType": "int24",
|
|
343
|
+
"name": "tickUpper",
|
|
344
|
+
"type": "int24"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"internalType": "uint128",
|
|
348
|
+
"name": "amount",
|
|
349
|
+
"type": "uint128"
|
|
350
|
+
}
|
|
335
351
|
],
|
|
336
352
|
"name": "burn",
|
|
337
353
|
"outputs": [
|
|
338
|
-
{
|
|
339
|
-
|
|
354
|
+
{
|
|
355
|
+
"internalType": "uint256",
|
|
356
|
+
"name": "amount0",
|
|
357
|
+
"type": "uint256"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"internalType": "uint256",
|
|
361
|
+
"name": "amount1",
|
|
362
|
+
"type": "uint256"
|
|
363
|
+
}
|
|
340
364
|
],
|
|
341
365
|
"stateMutability": "nonpayable",
|
|
342
366
|
"type": "function"
|
|
343
367
|
},
|
|
344
368
|
{
|
|
345
369
|
"inputs": [
|
|
346
|
-
{
|
|
347
|
-
|
|
348
|
-
|
|
370
|
+
{
|
|
371
|
+
"internalType": "address",
|
|
372
|
+
"name": "recipient",
|
|
373
|
+
"type": "address"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"internalType": "int24",
|
|
377
|
+
"name": "tickLower",
|
|
378
|
+
"type": "int24"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"internalType": "int24",
|
|
382
|
+
"name": "tickUpper",
|
|
383
|
+
"type": "int24"
|
|
384
|
+
},
|
|
349
385
|
{
|
|
350
386
|
"internalType": "uint128",
|
|
351
387
|
"name": "amount0Requested",
|
|
@@ -359,15 +395,27 @@
|
|
|
359
395
|
],
|
|
360
396
|
"name": "collect",
|
|
361
397
|
"outputs": [
|
|
362
|
-
{
|
|
363
|
-
|
|
398
|
+
{
|
|
399
|
+
"internalType": "uint128",
|
|
400
|
+
"name": "amount0",
|
|
401
|
+
"type": "uint128"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"internalType": "uint128",
|
|
405
|
+
"name": "amount1",
|
|
406
|
+
"type": "uint128"
|
|
407
|
+
}
|
|
364
408
|
],
|
|
365
409
|
"stateMutability": "nonpayable",
|
|
366
410
|
"type": "function"
|
|
367
411
|
},
|
|
368
412
|
{
|
|
369
413
|
"inputs": [
|
|
370
|
-
{
|
|
414
|
+
{
|
|
415
|
+
"internalType": "address",
|
|
416
|
+
"name": "recipient",
|
|
417
|
+
"type": "address"
|
|
418
|
+
},
|
|
371
419
|
{
|
|
372
420
|
"internalType": "uint128",
|
|
373
421
|
"name": "amount0Requested",
|
|
@@ -381,8 +429,16 @@
|
|
|
381
429
|
],
|
|
382
430
|
"name": "collectProtocol",
|
|
383
431
|
"outputs": [
|
|
384
|
-
{
|
|
385
|
-
|
|
432
|
+
{
|
|
433
|
+
"internalType": "uint128",
|
|
434
|
+
"name": "amount0",
|
|
435
|
+
"type": "uint128"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"internalType": "uint128",
|
|
439
|
+
"name": "amount1",
|
|
440
|
+
"type": "uint128"
|
|
441
|
+
}
|
|
386
442
|
],
|
|
387
443
|
"stateMutability": "nonpayable",
|
|
388
444
|
"type": "function"
|
|
@@ -390,37 +446,77 @@
|
|
|
390
446
|
{
|
|
391
447
|
"inputs": [],
|
|
392
448
|
"name": "factory",
|
|
393
|
-
"outputs": [
|
|
449
|
+
"outputs": [
|
|
450
|
+
{
|
|
451
|
+
"internalType": "address",
|
|
452
|
+
"name": "",
|
|
453
|
+
"type": "address"
|
|
454
|
+
}
|
|
455
|
+
],
|
|
394
456
|
"stateMutability": "view",
|
|
395
457
|
"type": "function"
|
|
396
458
|
},
|
|
397
459
|
{
|
|
398
460
|
"inputs": [],
|
|
399
461
|
"name": "fee",
|
|
400
|
-
"outputs": [
|
|
462
|
+
"outputs": [
|
|
463
|
+
{
|
|
464
|
+
"internalType": "uint24",
|
|
465
|
+
"name": "",
|
|
466
|
+
"type": "uint24"
|
|
467
|
+
}
|
|
468
|
+
],
|
|
401
469
|
"stateMutability": "view",
|
|
402
470
|
"type": "function"
|
|
403
471
|
},
|
|
404
472
|
{
|
|
405
473
|
"inputs": [],
|
|
406
474
|
"name": "feeGrowthGlobal0X128",
|
|
407
|
-
"outputs": [
|
|
475
|
+
"outputs": [
|
|
476
|
+
{
|
|
477
|
+
"internalType": "uint256",
|
|
478
|
+
"name": "",
|
|
479
|
+
"type": "uint256"
|
|
480
|
+
}
|
|
481
|
+
],
|
|
408
482
|
"stateMutability": "view",
|
|
409
483
|
"type": "function"
|
|
410
484
|
},
|
|
411
485
|
{
|
|
412
486
|
"inputs": [],
|
|
413
487
|
"name": "feeGrowthGlobal1X128",
|
|
414
|
-
"outputs": [
|
|
488
|
+
"outputs": [
|
|
489
|
+
{
|
|
490
|
+
"internalType": "uint256",
|
|
491
|
+
"name": "",
|
|
492
|
+
"type": "uint256"
|
|
493
|
+
}
|
|
494
|
+
],
|
|
415
495
|
"stateMutability": "view",
|
|
416
496
|
"type": "function"
|
|
417
497
|
},
|
|
418
498
|
{
|
|
419
499
|
"inputs": [
|
|
420
|
-
{
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
500
|
+
{
|
|
501
|
+
"internalType": "address",
|
|
502
|
+
"name": "recipient",
|
|
503
|
+
"type": "address"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"internalType": "uint256",
|
|
507
|
+
"name": "amount0",
|
|
508
|
+
"type": "uint256"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"internalType": "uint256",
|
|
512
|
+
"name": "amount1",
|
|
513
|
+
"type": "uint256"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"internalType": "bytes",
|
|
517
|
+
"name": "data",
|
|
518
|
+
"type": "bytes"
|
|
519
|
+
}
|
|
424
520
|
],
|
|
425
521
|
"name": "flash",
|
|
426
522
|
"outputs": [],
|
|
@@ -442,7 +538,11 @@
|
|
|
442
538
|
},
|
|
443
539
|
{
|
|
444
540
|
"inputs": [
|
|
445
|
-
{
|
|
541
|
+
{
|
|
542
|
+
"internalType": "uint160",
|
|
543
|
+
"name": "sqrtPriceX96",
|
|
544
|
+
"type": "uint160"
|
|
545
|
+
}
|
|
446
546
|
],
|
|
447
547
|
"name": "initialize",
|
|
448
548
|
"outputs": [],
|
|
@@ -452,52 +552,114 @@
|
|
|
452
552
|
{
|
|
453
553
|
"inputs": [],
|
|
454
554
|
"name": "liquidity",
|
|
455
|
-
"outputs": [
|
|
555
|
+
"outputs": [
|
|
556
|
+
{
|
|
557
|
+
"internalType": "uint128",
|
|
558
|
+
"name": "",
|
|
559
|
+
"type": "uint128"
|
|
560
|
+
}
|
|
561
|
+
],
|
|
456
562
|
"stateMutability": "view",
|
|
457
563
|
"type": "function"
|
|
458
564
|
},
|
|
459
565
|
{
|
|
460
566
|
"inputs": [],
|
|
461
567
|
"name": "maxLiquidityPerTick",
|
|
462
|
-
"outputs": [
|
|
568
|
+
"outputs": [
|
|
569
|
+
{
|
|
570
|
+
"internalType": "uint128",
|
|
571
|
+
"name": "",
|
|
572
|
+
"type": "uint128"
|
|
573
|
+
}
|
|
574
|
+
],
|
|
463
575
|
"stateMutability": "view",
|
|
464
576
|
"type": "function"
|
|
465
577
|
},
|
|
466
578
|
{
|
|
467
579
|
"inputs": [
|
|
468
|
-
{
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
580
|
+
{
|
|
581
|
+
"internalType": "address",
|
|
582
|
+
"name": "recipient",
|
|
583
|
+
"type": "address"
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"internalType": "int24",
|
|
587
|
+
"name": "tickLower",
|
|
588
|
+
"type": "int24"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"internalType": "int24",
|
|
592
|
+
"name": "tickUpper",
|
|
593
|
+
"type": "int24"
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
"internalType": "uint128",
|
|
597
|
+
"name": "amount",
|
|
598
|
+
"type": "uint128"
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
"internalType": "bytes",
|
|
602
|
+
"name": "data",
|
|
603
|
+
"type": "bytes"
|
|
604
|
+
}
|
|
473
605
|
],
|
|
474
606
|
"name": "mint",
|
|
475
607
|
"outputs": [
|
|
476
|
-
{
|
|
477
|
-
|
|
608
|
+
{
|
|
609
|
+
"internalType": "uint256",
|
|
610
|
+
"name": "amount0",
|
|
611
|
+
"type": "uint256"
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"internalType": "uint256",
|
|
615
|
+
"name": "amount1",
|
|
616
|
+
"type": "uint256"
|
|
617
|
+
}
|
|
478
618
|
],
|
|
479
619
|
"stateMutability": "nonpayable",
|
|
480
620
|
"type": "function"
|
|
481
621
|
},
|
|
482
622
|
{
|
|
483
|
-
"inputs": [
|
|
623
|
+
"inputs": [
|
|
624
|
+
{
|
|
625
|
+
"internalType": "uint256",
|
|
626
|
+
"name": "",
|
|
627
|
+
"type": "uint256"
|
|
628
|
+
}
|
|
629
|
+
],
|
|
484
630
|
"name": "observations",
|
|
485
631
|
"outputs": [
|
|
486
|
-
{
|
|
487
|
-
|
|
632
|
+
{
|
|
633
|
+
"internalType": "uint32",
|
|
634
|
+
"name": "blockTimestamp",
|
|
635
|
+
"type": "uint32"
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"internalType": "int56",
|
|
639
|
+
"name": "tickCumulative",
|
|
640
|
+
"type": "int56"
|
|
641
|
+
},
|
|
488
642
|
{
|
|
489
643
|
"internalType": "uint160",
|
|
490
644
|
"name": "secondsPerLiquidityCumulativeX128",
|
|
491
645
|
"type": "uint160"
|
|
492
646
|
},
|
|
493
|
-
{
|
|
647
|
+
{
|
|
648
|
+
"internalType": "bool",
|
|
649
|
+
"name": "initialized",
|
|
650
|
+
"type": "bool"
|
|
651
|
+
}
|
|
494
652
|
],
|
|
495
653
|
"stateMutability": "view",
|
|
496
654
|
"type": "function"
|
|
497
655
|
},
|
|
498
656
|
{
|
|
499
657
|
"inputs": [
|
|
500
|
-
{
|
|
658
|
+
{
|
|
659
|
+
"internalType": "uint32[]",
|
|
660
|
+
"name": "secondsAgos",
|
|
661
|
+
"type": "uint32[]"
|
|
662
|
+
}
|
|
501
663
|
],
|
|
502
664
|
"name": "observe",
|
|
503
665
|
"outputs": [
|
|
@@ -516,10 +678,20 @@
|
|
|
516
678
|
"type": "function"
|
|
517
679
|
},
|
|
518
680
|
{
|
|
519
|
-
"inputs": [
|
|
681
|
+
"inputs": [
|
|
682
|
+
{
|
|
683
|
+
"internalType": "bytes32",
|
|
684
|
+
"name": "",
|
|
685
|
+
"type": "bytes32"
|
|
686
|
+
}
|
|
687
|
+
],
|
|
520
688
|
"name": "positions",
|
|
521
689
|
"outputs": [
|
|
522
|
-
{
|
|
690
|
+
{
|
|
691
|
+
"internalType": "uint128",
|
|
692
|
+
"name": "liquidity",
|
|
693
|
+
"type": "uint128"
|
|
694
|
+
},
|
|
523
695
|
{
|
|
524
696
|
"internalType": "uint256",
|
|
525
697
|
"name": "feeGrowthInside0LastX128",
|
|
@@ -530,8 +702,16 @@
|
|
|
530
702
|
"name": "feeGrowthInside1LastX128",
|
|
531
703
|
"type": "uint256"
|
|
532
704
|
},
|
|
533
|
-
{
|
|
534
|
-
|
|
705
|
+
{
|
|
706
|
+
"internalType": "uint128",
|
|
707
|
+
"name": "tokensOwed0",
|
|
708
|
+
"type": "uint128"
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
"internalType": "uint128",
|
|
712
|
+
"name": "tokensOwed1",
|
|
713
|
+
"type": "uint128"
|
|
714
|
+
}
|
|
535
715
|
],
|
|
536
716
|
"stateMutability": "view",
|
|
537
717
|
"type": "function"
|
|
@@ -540,16 +720,32 @@
|
|
|
540
720
|
"inputs": [],
|
|
541
721
|
"name": "protocolFees",
|
|
542
722
|
"outputs": [
|
|
543
|
-
{
|
|
544
|
-
|
|
723
|
+
{
|
|
724
|
+
"internalType": "uint128",
|
|
725
|
+
"name": "token0",
|
|
726
|
+
"type": "uint128"
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
"internalType": "uint128",
|
|
730
|
+
"name": "token1",
|
|
731
|
+
"type": "uint128"
|
|
732
|
+
}
|
|
545
733
|
],
|
|
546
734
|
"stateMutability": "view",
|
|
547
735
|
"type": "function"
|
|
548
736
|
},
|
|
549
737
|
{
|
|
550
738
|
"inputs": [
|
|
551
|
-
{
|
|
552
|
-
|
|
739
|
+
{
|
|
740
|
+
"internalType": "uint8",
|
|
741
|
+
"name": "feeProtocol0",
|
|
742
|
+
"type": "uint8"
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
"internalType": "uint8",
|
|
746
|
+
"name": "feeProtocol1",
|
|
747
|
+
"type": "uint8"
|
|
748
|
+
}
|
|
553
749
|
],
|
|
554
750
|
"name": "setFeeProtocol",
|
|
555
751
|
"outputs": [],
|
|
@@ -560,8 +756,16 @@
|
|
|
560
756
|
"inputs": [],
|
|
561
757
|
"name": "slot0",
|
|
562
758
|
"outputs": [
|
|
563
|
-
{
|
|
564
|
-
|
|
759
|
+
{
|
|
760
|
+
"internalType": "uint160",
|
|
761
|
+
"name": "sqrtPriceX96",
|
|
762
|
+
"type": "uint160"
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
"internalType": "int24",
|
|
766
|
+
"name": "tick",
|
|
767
|
+
"type": "int24"
|
|
768
|
+
},
|
|
565
769
|
{
|
|
566
770
|
"internalType": "uint16",
|
|
567
771
|
"name": "observationIndex",
|
|
@@ -577,16 +781,32 @@
|
|
|
577
781
|
"name": "observationCardinalityNext",
|
|
578
782
|
"type": "uint16"
|
|
579
783
|
},
|
|
580
|
-
{
|
|
581
|
-
|
|
784
|
+
{
|
|
785
|
+
"internalType": "uint8",
|
|
786
|
+
"name": "feeProtocol",
|
|
787
|
+
"type": "uint8"
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"internalType": "bool",
|
|
791
|
+
"name": "unlocked",
|
|
792
|
+
"type": "bool"
|
|
793
|
+
}
|
|
582
794
|
],
|
|
583
795
|
"stateMutability": "view",
|
|
584
796
|
"type": "function"
|
|
585
797
|
},
|
|
586
798
|
{
|
|
587
799
|
"inputs": [
|
|
588
|
-
{
|
|
589
|
-
|
|
800
|
+
{
|
|
801
|
+
"internalType": "int24",
|
|
802
|
+
"name": "tickLower",
|
|
803
|
+
"type": "int24"
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
"internalType": "int24",
|
|
807
|
+
"name": "tickUpper",
|
|
808
|
+
"type": "int24"
|
|
809
|
+
}
|
|
590
810
|
],
|
|
591
811
|
"name": "snapshotCumulativesInside",
|
|
592
812
|
"outputs": [
|
|
@@ -600,47 +820,99 @@
|
|
|
600
820
|
"name": "secondsPerLiquidityInsideX128",
|
|
601
821
|
"type": "uint160"
|
|
602
822
|
},
|
|
603
|
-
{
|
|
823
|
+
{
|
|
824
|
+
"internalType": "uint32",
|
|
825
|
+
"name": "secondsInside",
|
|
826
|
+
"type": "uint32"
|
|
827
|
+
}
|
|
604
828
|
],
|
|
605
829
|
"stateMutability": "view",
|
|
606
830
|
"type": "function"
|
|
607
831
|
},
|
|
608
832
|
{
|
|
609
833
|
"inputs": [
|
|
610
|
-
{
|
|
611
|
-
|
|
612
|
-
|
|
834
|
+
{
|
|
835
|
+
"internalType": "address",
|
|
836
|
+
"name": "recipient",
|
|
837
|
+
"type": "address"
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
"internalType": "bool",
|
|
841
|
+
"name": "zeroForOne",
|
|
842
|
+
"type": "bool"
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
"internalType": "int256",
|
|
846
|
+
"name": "amountSpecified",
|
|
847
|
+
"type": "int256"
|
|
848
|
+
},
|
|
613
849
|
{
|
|
614
850
|
"internalType": "uint160",
|
|
615
851
|
"name": "sqrtPriceLimitX96",
|
|
616
852
|
"type": "uint160"
|
|
617
853
|
},
|
|
618
|
-
{
|
|
854
|
+
{
|
|
855
|
+
"internalType": "bytes",
|
|
856
|
+
"name": "data",
|
|
857
|
+
"type": "bytes"
|
|
858
|
+
}
|
|
619
859
|
],
|
|
620
860
|
"name": "swap",
|
|
621
861
|
"outputs": [
|
|
622
|
-
{
|
|
623
|
-
|
|
862
|
+
{
|
|
863
|
+
"internalType": "int256",
|
|
864
|
+
"name": "amount0",
|
|
865
|
+
"type": "int256"
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
"internalType": "int256",
|
|
869
|
+
"name": "amount1",
|
|
870
|
+
"type": "int256"
|
|
871
|
+
}
|
|
624
872
|
],
|
|
625
873
|
"stateMutability": "nonpayable",
|
|
626
874
|
"type": "function"
|
|
627
875
|
},
|
|
628
876
|
{
|
|
629
|
-
"inputs": [
|
|
877
|
+
"inputs": [
|
|
878
|
+
{
|
|
879
|
+
"internalType": "int16",
|
|
880
|
+
"name": "",
|
|
881
|
+
"type": "int16"
|
|
882
|
+
}
|
|
883
|
+
],
|
|
630
884
|
"name": "tickBitmap",
|
|
631
|
-
"outputs": [
|
|
885
|
+
"outputs": [
|
|
886
|
+
{
|
|
887
|
+
"internalType": "uint256",
|
|
888
|
+
"name": "",
|
|
889
|
+
"type": "uint256"
|
|
890
|
+
}
|
|
891
|
+
],
|
|
632
892
|
"stateMutability": "view",
|
|
633
893
|
"type": "function"
|
|
634
894
|
},
|
|
635
895
|
{
|
|
636
896
|
"inputs": [],
|
|
637
897
|
"name": "tickSpacing",
|
|
638
|
-
"outputs": [
|
|
898
|
+
"outputs": [
|
|
899
|
+
{
|
|
900
|
+
"internalType": "int24",
|
|
901
|
+
"name": "",
|
|
902
|
+
"type": "int24"
|
|
903
|
+
}
|
|
904
|
+
],
|
|
639
905
|
"stateMutability": "view",
|
|
640
906
|
"type": "function"
|
|
641
907
|
},
|
|
642
908
|
{
|
|
643
|
-
"inputs": [
|
|
909
|
+
"inputs": [
|
|
910
|
+
{
|
|
911
|
+
"internalType": "int24",
|
|
912
|
+
"name": "",
|
|
913
|
+
"type": "int24"
|
|
914
|
+
}
|
|
915
|
+
],
|
|
644
916
|
"name": "ticks",
|
|
645
917
|
"outputs": [
|
|
646
918
|
{
|
|
@@ -648,7 +920,11 @@
|
|
|
648
920
|
"name": "liquidityGross",
|
|
649
921
|
"type": "uint128"
|
|
650
922
|
},
|
|
651
|
-
{
|
|
923
|
+
{
|
|
924
|
+
"internalType": "int128",
|
|
925
|
+
"name": "liquidityNet",
|
|
926
|
+
"type": "int128"
|
|
927
|
+
},
|
|
652
928
|
{
|
|
653
929
|
"internalType": "uint256",
|
|
654
930
|
"name": "feeGrowthOutside0X128",
|
|
@@ -669,8 +945,16 @@
|
|
|
669
945
|
"name": "secondsPerLiquidityOutsideX128",
|
|
670
946
|
"type": "uint160"
|
|
671
947
|
},
|
|
672
|
-
{
|
|
673
|
-
|
|
948
|
+
{
|
|
949
|
+
"internalType": "uint32",
|
|
950
|
+
"name": "secondsOutside",
|
|
951
|
+
"type": "uint32"
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
"internalType": "bool",
|
|
955
|
+
"name": "initialized",
|
|
956
|
+
"type": "bool"
|
|
957
|
+
}
|
|
674
958
|
],
|
|
675
959
|
"stateMutability": "view",
|
|
676
960
|
"type": "function"
|
|
@@ -678,14 +962,26 @@
|
|
|
678
962
|
{
|
|
679
963
|
"inputs": [],
|
|
680
964
|
"name": "token0",
|
|
681
|
-
"outputs": [
|
|
965
|
+
"outputs": [
|
|
966
|
+
{
|
|
967
|
+
"internalType": "address",
|
|
968
|
+
"name": "",
|
|
969
|
+
"type": "address"
|
|
970
|
+
}
|
|
971
|
+
],
|
|
682
972
|
"stateMutability": "view",
|
|
683
973
|
"type": "function"
|
|
684
974
|
},
|
|
685
975
|
{
|
|
686
976
|
"inputs": [],
|
|
687
977
|
"name": "token1",
|
|
688
|
-
"outputs": [
|
|
978
|
+
"outputs": [
|
|
979
|
+
{
|
|
980
|
+
"internalType": "address",
|
|
981
|
+
"name": "",
|
|
982
|
+
"type": "address"
|
|
983
|
+
}
|
|
984
|
+
],
|
|
689
985
|
"stateMutability": "view",
|
|
690
986
|
"type": "function"
|
|
691
987
|
}
|