@paraswap/dex-lib 2.16.8-pancakeswapv3.0 → 2.17.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/.idea/aws.xml +17 -0
- package/.idea/codeStyles/Project.xml +19 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/paraswap-dex-lib.iml +9 -0
- package/.idea/vcs.xml +6 -0
- package/build/abi/woo-fi/WooFeeManager.abi.json +318 -0
- package/build/abi/woo-fi/WooPP.abi.json +548 -0
- package/build/abi/woo-fi/Wooracle.abi.json +260 -0
- package/build/config.js +4 -4
- package/build/dex/aave-v3/tokens/arbitrum.json +50 -0
- package/build/dex/aave-v3/tokens/avalanche.json +74 -0
- package/build/dex/aave-v3/tokens/fantom.json +62 -0
- package/build/dex/aave-v3/tokens/optimism.json +50 -0
- package/build/dex/aave-v3/tokens/polygon.json +116 -0
- package/build/dex/balancer-v2/balancer-v2.d.ts +14 -19
- package/build/dex/balancer-v2/balancer-v2.js +27 -22
- package/build/dex/balancer-v2/balancer-v2.js.map +1 -1
- package/build/dex/balancer-v2/config.d.ts +2 -7
- package/build/dex/balancer-v2/config.js +20 -30
- package/build/dex/balancer-v2/config.js.map +1 -1
- package/build/dex/balancer-v2/pools/balancer-v2-pool.d.ts +25 -0
- package/build/dex/balancer-v2/pools/balancer-v2-pool.js +107 -0
- package/build/dex/balancer-v2/pools/balancer-v2-pool.js.map +1 -0
- package/build/dex/balancer-v2/pools/linear/LinearMath.d.ts +20 -0
- package/build/dex/balancer-v2/pools/linear/LinearMath.js +179 -0
- package/build/dex/balancer-v2/pools/linear/LinearMath.js.map +1 -0
- package/build/dex/balancer-v2/pools/linear/LinearPool.d.ts +50 -0
- package/build/dex/balancer-v2/pools/linear/LinearPool.js +458 -0
- package/build/dex/balancer-v2/pools/linear/LinearPool.js.map +1 -0
- package/build/dex/balancer-v2/pools/phantom-stable/PhantomStableMath.d.ts +10 -0
- package/build/dex/balancer-v2/pools/phantom-stable/PhantomStableMath.js +314 -0
- package/build/dex/balancer-v2/pools/phantom-stable/PhantomStableMath.js.map +1 -0
- package/build/dex/balancer-v2/pools/phantom-stable/PhantomStablePool.d.ts +50 -0
- package/build/dex/balancer-v2/pools/phantom-stable/PhantomStablePool.js +367 -0
- package/build/dex/balancer-v2/pools/phantom-stable/PhantomStablePool.js.map +1 -0
- package/build/dex/balancer-v2/pools/stable/StableMath.d.ts +7 -0
- package/build/dex/balancer-v2/pools/stable/StableMath.js +111 -0
- package/build/dex/balancer-v2/pools/stable/StableMath.js.map +1 -0
- package/build/dex/balancer-v2/pools/stable/StablePool.d.ts +30 -0
- package/build/dex/balancer-v2/pools/stable/StablePool.js +129 -0
- package/build/dex/balancer-v2/pools/stable/StablePool.js.map +1 -0
- package/build/dex/balancer-v2/pools/weighted/WeightedMath.d.ts +6 -0
- package/build/dex/balancer-v2/pools/weighted/WeightedMath.js +61 -0
- package/build/dex/balancer-v2/pools/weighted/WeightedMath.js.map +1 -0
- package/build/dex/balancer-v2/pools/weighted/WeightedPool.d.ts +30 -0
- package/build/dex/balancer-v2/pools/weighted/WeightedPool.js +112 -0
- package/build/dex/balancer-v2/pools/weighted/WeightedPool.js.map +1 -0
- package/build/dex/balancer-v2/types.d.ts +1 -0
- package/build/dex/balancer-v2/types.js.map +1 -1
- package/build/dex/balancer-v2/utils.d.ts +3 -2
- package/build/dex/balancer-v2/utils.js +6 -4
- package/build/dex/balancer-v2/utils.js.map +1 -1
- package/build/dex/index.js +1 -1
- package/build/dex/index.js.map +1 -1
- package/build/dex/quickswap-v3.d.ts +21 -0
- package/build/dex/quickswap-v3.js +40 -0
- package/build/dex/quickswap-v3.js.map +1 -0
- package/build/dex/uniswap-v3/config.js +28 -0
- package/build/dex/uniswap-v3/config.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 +1 -1
- package/build/dex/uniswap-v3/uniswap-v3.js.map +1 -1
- package/build/dex/{pancakeswap-v3 → woo-fi}/config.d.ts +2 -2
- package/build/dex/woo-fi/config.js +141 -0
- package/build/dex/woo-fi/config.js.map +1 -0
- package/build/dex/woo-fi/constants.d.ts +5 -0
- package/build/dex/woo-fi/constants.js +20 -0
- package/build/dex/woo-fi/constants.js.map +1 -0
- package/build/dex/woo-fi/types.d.ts +48 -0
- package/build/dex/woo-fi/types.js +3 -0
- package/build/dex/woo-fi/types.js.map +1 -0
- package/build/dex/woo-fi/woo-fi-decimal-math.d.ts +14 -0
- package/build/dex/woo-fi/woo-fi-decimal-math.js +42 -0
- package/build/dex/woo-fi/woo-fi-decimal-math.js.map +1 -0
- package/build/dex/woo-fi/woo-fi-math.d.ts +31 -0
- package/build/dex/woo-fi/woo-fi-math.js +300 -0
- package/build/dex/woo-fi/woo-fi-math.js.map +1 -0
- package/build/dex/woo-fi/woo-fi.d.ts +65 -0
- package/build/dex/woo-fi/woo-fi.js +480 -0
- package/build/dex/woo-fi/woo-fi.js.map +1 -0
- package/package.json +1 -1
- package/src/config.ts +4 -4
- package/src/dex/balancer-v2/balancer-v2-e2e.test.ts +538 -225
- package/src/dex/balancer-v2/balancer-v2-integration.test.ts +305 -122
- package/src/dex/balancer-v2/balancer-v2.ts +60 -56
- package/src/dex/balancer-v2/config.ts +23 -35
- package/src/dex/balancer-v2/pools/balancer-v2-pool.ts +274 -0
- package/src/dex/balancer-v2/{LinearMath.ts → pools/linear/LinearMath.ts} +11 -10
- package/src/dex/balancer-v2/{LinearPool.ts → pools/linear/LinearPool.ts} +210 -6
- package/src/dex/balancer-v2/{StableMath.ts → pools/phantom-stable/PhantomStableMath.ts} +101 -21
- package/src/dex/balancer-v2/{PhantomStablePool.ts → pools/phantom-stable/PhantomStablePool.ts} +167 -12
- package/src/dex/balancer-v2/pools/stable/StableMath.ts +204 -0
- package/src/dex/balancer-v2/pools/stable/StablePool.ts +221 -0
- package/src/dex/balancer-v2/pools/weighted/WeightedMath.ts +84 -0
- package/src/dex/balancer-v2/pools/weighted/WeightedPool.ts +189 -0
- package/src/dex/balancer-v2/types.ts +1 -0
- package/src/dex/balancer-v2/utils.ts +7 -1
- package/src/dex/index.ts +1 -1
- package/src/dex/uniswap-v3/config.ts +32 -0
- package/src/dex/uniswap-v3/forks/pancakeswap-v3/pancakeswap-v3.ts +28 -0
- package/src/dex/uniswap-v3/uniswap-v3-e2e.test.ts +156 -0
- package/src/dex/uniswap-v3/uniswap-v3-events.test.ts +0 -4
- package/src/dex/uniswap-v3/uniswap-v3-pool.ts +2 -1
- package/src/dex/uniswap-v3/uniswap-v3.ts +1 -0
- package/tests/constants-e2e.ts +33 -8
- package/build/abi/pancakeswap-v3/PancakeV3StateMulticall.abi.json +0 -781
- package/build/abi/pancakeswap-v3/PancakeswapV3Pool.abi.json +0 -1039
- package/build/abi/pancakeswap-v3/PancakeswapV3Quoter.abi.json +0 -285
- package/build/abi/pancakeswap-v3/PancakeswapV3Router.abi.json +0 -583
- package/build/dex/pancakeswap-v3/config.js +0 -62
- package/build/dex/pancakeswap-v3/config.js.map +0 -1
- package/build/dex/pancakeswap-v3/constants.d.ts +0 -23
- package/build/dex/pancakeswap-v3/constants.js +0 -29
- package/build/dex/pancakeswap-v3/constants.js.map +0 -1
- package/build/dex/pancakeswap-v3/contract-math/BitMath.d.ts +0 -4
- package/build/dex/pancakeswap-v3/contract-math/BitMath.js +0 -93
- package/build/dex/pancakeswap-v3/contract-math/BitMath.js.map +0 -1
- package/build/dex/pancakeswap-v3/contract-math/FixedPoint128.d.ts +0 -3
- package/build/dex/pancakeswap-v3/contract-math/FixedPoint128.js +0 -8
- package/build/dex/pancakeswap-v3/contract-math/FixedPoint128.js.map +0 -1
- package/build/dex/pancakeswap-v3/contract-math/FixedPoint96.d.ts +0 -4
- package/build/dex/pancakeswap-v3/contract-math/FixedPoint96.js +0 -9
- package/build/dex/pancakeswap-v3/contract-math/FixedPoint96.js.map +0 -1
- package/build/dex/pancakeswap-v3/contract-math/FullMath.d.ts +0 -4
- package/build/dex/pancakeswap-v3/contract-math/FullMath.js +0 -19
- package/build/dex/pancakeswap-v3/contract-math/FullMath.js.map +0 -1
- package/build/dex/pancakeswap-v3/contract-math/LiquidityMath.d.ts +0 -3
- package/build/dex/pancakeswap-v3/contract-math/LiquidityMath.js +0 -22
- package/build/dex/pancakeswap-v3/contract-math/LiquidityMath.js.map +0 -1
- package/build/dex/pancakeswap-v3/contract-math/Oracle.d.ts +0 -10
- package/build/dex/pancakeswap-v3/contract-math/Oracle.js +0 -133
- package/build/dex/pancakeswap-v3/contract-math/Oracle.js.map +0 -1
- package/build/dex/pancakeswap-v3/contract-math/SqrtPriceMath.d.ts +0 -10
- package/build/dex/pancakeswap-v3/contract-math/SqrtPriceMath.js +0 -91
- package/build/dex/pancakeswap-v3/contract-math/SqrtPriceMath.js.map +0 -1
- package/build/dex/pancakeswap-v3/contract-math/SwapMath.d.ts +0 -8
- package/build/dex/pancakeswap-v3/contract-math/SwapMath.js +0 -70
- package/build/dex/pancakeswap-v3/contract-math/SwapMath.js.map +0 -1
- package/build/dex/pancakeswap-v3/contract-math/Tick.d.ts +0 -7
- package/build/dex/pancakeswap-v3/contract-math/Tick.js +0 -45
- package/build/dex/pancakeswap-v3/contract-math/Tick.js.map +0 -1
- package/build/dex/pancakeswap-v3/contract-math/TickBitMap.d.ts +0 -8
- package/build/dex/pancakeswap-v3/contract-math/TickBitMap.js +0 -87
- package/build/dex/pancakeswap-v3/contract-math/TickBitMap.js.map +0 -1
- package/build/dex/pancakeswap-v3/contract-math/TickMath.d.ts +0 -8
- package/build/dex/pancakeswap-v3/contract-math/TickMath.js +0 -162
- package/build/dex/pancakeswap-v3/contract-math/TickMath.js.map +0 -1
- package/build/dex/pancakeswap-v3/contract-math/UnsafeMath.d.ts +0 -3
- package/build/dex/pancakeswap-v3/contract-math/UnsafeMath.js +0 -10
- package/build/dex/pancakeswap-v3/contract-math/UnsafeMath.js.map +0 -1
- package/build/dex/pancakeswap-v3/contract-math/pancakeswap-v3-math.d.ts +0 -18
- package/build/dex/pancakeswap-v3/contract-math/pancakeswap-v3-math.js +0 -407
- package/build/dex/pancakeswap-v3/contract-math/pancakeswap-v3-math.js.map +0 -1
- package/build/dex/pancakeswap-v3/contract-math/utils.d.ts +0 -3
- package/build/dex/pancakeswap-v3/contract-math/utils.js +0 -16
- package/build/dex/pancakeswap-v3/contract-math/utils.js.map +0 -1
- package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.d.ts +0 -45
- package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.js +0 -340
- package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.js.map +0 -1
- package/build/dex/pancakeswap-v3/pancakeswap-v3.d.ts +0 -55
- package/build/dex/pancakeswap-v3/pancakeswap-v3.js +0 -605
- package/build/dex/pancakeswap-v3/pancakeswap-v3.js.map +0 -1
- package/build/dex/pancakeswap-v3/types.d.ts +0 -137
- package/build/dex/pancakeswap-v3/types.js +0 -9
- package/build/dex/pancakeswap-v3/types.js.map +0 -1
- package/build/dex/pancakeswap-v3/utils.d.ts +0 -6
- package/build/dex/pancakeswap-v3/utils.js +0 -65
- package/build/dex/pancakeswap-v3/utils.js.map +0 -1
- package/src/abi/pancakeswap-v3/PancakeV3StateMulticall.abi.json +0 -781
- package/src/abi/pancakeswap-v3/PancakeswapV3Pool.abi.json +0 -1039
- package/src/dex/balancer-v2/balancer-v2-pool.ts +0 -744
- package/src/dex/pancakeswap-v3/config.ts +0 -68
- package/src/dex/pancakeswap-v3/constants.ts +0 -35
- package/src/dex/pancakeswap-v3/contract-math/BitMath.ts +0 -90
- package/src/dex/pancakeswap-v3/contract-math/FixedPoint128.ts +0 -3
- package/src/dex/pancakeswap-v3/contract-math/FixedPoint96.ts +0 -4
- package/src/dex/pancakeswap-v3/contract-math/FullMath.ts +0 -30
- package/src/dex/pancakeswap-v3/contract-math/LiquidityMath.ts +0 -17
- package/src/dex/pancakeswap-v3/contract-math/Oracle.ts +0 -226
- package/src/dex/pancakeswap-v3/contract-math/SqrtPriceMath.ts +0 -226
- package/src/dex/pancakeswap-v3/contract-math/SwapMath.ts +0 -139
- package/src/dex/pancakeswap-v3/contract-math/Tick.ts +0 -82
- package/src/dex/pancakeswap-v3/contract-math/TickBitMap.ts +0 -128
- package/src/dex/pancakeswap-v3/contract-math/TickMath.ts +0 -211
- package/src/dex/pancakeswap-v3/contract-math/UnsafeMath.ts +0 -5
- package/src/dex/pancakeswap-v3/contract-math/pancakeswap-v3-math.ts +0 -691
- package/src/dex/pancakeswap-v3/contract-math/utils.ts +0 -11
- package/src/dex/pancakeswap-v3/pancakeswap-v3-e2e.test.ts +0 -168
- package/src/dex/pancakeswap-v3/pancakeswap-v3-events.test.ts +0 -124
- package/src/dex/pancakeswap-v3/pancakeswap-v3-integration.test.ts +0 -338
- package/src/dex/pancakeswap-v3/pancakeswap-v3-pool.ts +0 -554
- package/src/dex/pancakeswap-v3/pancakeswap-v3.ts +0 -1000
- /package/src/abi/{pancakeswap-v3/PancakeswapV3Quoter.abi.json → uniswap-v3/pancakeswap-v3/PancakeswapV3QuoterV2.abi.json} +0 -0
- /package/src/abi/{pancakeswap-v3 → uniswap-v3/pancakeswap-v3}/PancakeswapV3Router.abi.json +0 -0
|
@@ -1,583 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"inputs": [
|
|
4
|
-
{
|
|
5
|
-
"internalType": "address",
|
|
6
|
-
"name": "_deployer",
|
|
7
|
-
"type": "address"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"internalType": "address",
|
|
11
|
-
"name": "_factory",
|
|
12
|
-
"type": "address"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"internalType": "address",
|
|
16
|
-
"name": "_WETH9",
|
|
17
|
-
"type": "address"
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"stateMutability": "nonpayable",
|
|
21
|
-
"type": "constructor"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"inputs": [],
|
|
25
|
-
"name": "WETH9",
|
|
26
|
-
"outputs": [
|
|
27
|
-
{
|
|
28
|
-
"internalType": "address",
|
|
29
|
-
"name": "",
|
|
30
|
-
"type": "address"
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
"stateMutability": "view",
|
|
34
|
-
"type": "function"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"inputs": [],
|
|
38
|
-
"name": "deployer",
|
|
39
|
-
"outputs": [
|
|
40
|
-
{
|
|
41
|
-
"internalType": "address",
|
|
42
|
-
"name": "",
|
|
43
|
-
"type": "address"
|
|
44
|
-
}
|
|
45
|
-
],
|
|
46
|
-
"stateMutability": "view",
|
|
47
|
-
"type": "function"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"inputs": [
|
|
51
|
-
{
|
|
52
|
-
"components": [
|
|
53
|
-
{
|
|
54
|
-
"internalType": "bytes",
|
|
55
|
-
"name": "path",
|
|
56
|
-
"type": "bytes"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"internalType": "address",
|
|
60
|
-
"name": "recipient",
|
|
61
|
-
"type": "address"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"internalType": "uint256",
|
|
65
|
-
"name": "deadline",
|
|
66
|
-
"type": "uint256"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"internalType": "uint256",
|
|
70
|
-
"name": "amountIn",
|
|
71
|
-
"type": "uint256"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"internalType": "uint256",
|
|
75
|
-
"name": "amountOutMinimum",
|
|
76
|
-
"type": "uint256"
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
"internalType": "struct ISwapRouter.ExactInputParams",
|
|
80
|
-
"name": "params",
|
|
81
|
-
"type": "tuple"
|
|
82
|
-
}
|
|
83
|
-
],
|
|
84
|
-
"name": "exactInput",
|
|
85
|
-
"outputs": [
|
|
86
|
-
{
|
|
87
|
-
"internalType": "uint256",
|
|
88
|
-
"name": "amountOut",
|
|
89
|
-
"type": "uint256"
|
|
90
|
-
}
|
|
91
|
-
],
|
|
92
|
-
"stateMutability": "payable",
|
|
93
|
-
"type": "function"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"inputs": [
|
|
97
|
-
{
|
|
98
|
-
"components": [
|
|
99
|
-
{
|
|
100
|
-
"internalType": "address",
|
|
101
|
-
"name": "tokenIn",
|
|
102
|
-
"type": "address"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"internalType": "address",
|
|
106
|
-
"name": "tokenOut",
|
|
107
|
-
"type": "address"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"internalType": "uint24",
|
|
111
|
-
"name": "fee",
|
|
112
|
-
"type": "uint24"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"internalType": "address",
|
|
116
|
-
"name": "recipient",
|
|
117
|
-
"type": "address"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"internalType": "uint256",
|
|
121
|
-
"name": "deadline",
|
|
122
|
-
"type": "uint256"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"internalType": "uint256",
|
|
126
|
-
"name": "amountIn",
|
|
127
|
-
"type": "uint256"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"internalType": "uint256",
|
|
131
|
-
"name": "amountOutMinimum",
|
|
132
|
-
"type": "uint256"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"internalType": "uint160",
|
|
136
|
-
"name": "sqrtPriceLimitX96",
|
|
137
|
-
"type": "uint160"
|
|
138
|
-
}
|
|
139
|
-
],
|
|
140
|
-
"internalType": "struct ISwapRouter.ExactInputSingleParams",
|
|
141
|
-
"name": "params",
|
|
142
|
-
"type": "tuple"
|
|
143
|
-
}
|
|
144
|
-
],
|
|
145
|
-
"name": "exactInputSingle",
|
|
146
|
-
"outputs": [
|
|
147
|
-
{
|
|
148
|
-
"internalType": "uint256",
|
|
149
|
-
"name": "amountOut",
|
|
150
|
-
"type": "uint256"
|
|
151
|
-
}
|
|
152
|
-
],
|
|
153
|
-
"stateMutability": "payable",
|
|
154
|
-
"type": "function"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"inputs": [
|
|
158
|
-
{
|
|
159
|
-
"components": [
|
|
160
|
-
{
|
|
161
|
-
"internalType": "bytes",
|
|
162
|
-
"name": "path",
|
|
163
|
-
"type": "bytes"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"internalType": "address",
|
|
167
|
-
"name": "recipient",
|
|
168
|
-
"type": "address"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"internalType": "uint256",
|
|
172
|
-
"name": "deadline",
|
|
173
|
-
"type": "uint256"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
"internalType": "uint256",
|
|
177
|
-
"name": "amountOut",
|
|
178
|
-
"type": "uint256"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"internalType": "uint256",
|
|
182
|
-
"name": "amountInMaximum",
|
|
183
|
-
"type": "uint256"
|
|
184
|
-
}
|
|
185
|
-
],
|
|
186
|
-
"internalType": "struct ISwapRouter.ExactOutputParams",
|
|
187
|
-
"name": "params",
|
|
188
|
-
"type": "tuple"
|
|
189
|
-
}
|
|
190
|
-
],
|
|
191
|
-
"name": "exactOutput",
|
|
192
|
-
"outputs": [
|
|
193
|
-
{
|
|
194
|
-
"internalType": "uint256",
|
|
195
|
-
"name": "amountIn",
|
|
196
|
-
"type": "uint256"
|
|
197
|
-
}
|
|
198
|
-
],
|
|
199
|
-
"stateMutability": "payable",
|
|
200
|
-
"type": "function"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
"inputs": [
|
|
204
|
-
{
|
|
205
|
-
"components": [
|
|
206
|
-
{
|
|
207
|
-
"internalType": "address",
|
|
208
|
-
"name": "tokenIn",
|
|
209
|
-
"type": "address"
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
"internalType": "address",
|
|
213
|
-
"name": "tokenOut",
|
|
214
|
-
"type": "address"
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
"internalType": "uint24",
|
|
218
|
-
"name": "fee",
|
|
219
|
-
"type": "uint24"
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
"internalType": "address",
|
|
223
|
-
"name": "recipient",
|
|
224
|
-
"type": "address"
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
"internalType": "uint256",
|
|
228
|
-
"name": "deadline",
|
|
229
|
-
"type": "uint256"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"internalType": "uint256",
|
|
233
|
-
"name": "amountOut",
|
|
234
|
-
"type": "uint256"
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
"internalType": "uint256",
|
|
238
|
-
"name": "amountInMaximum",
|
|
239
|
-
"type": "uint256"
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
"internalType": "uint160",
|
|
243
|
-
"name": "sqrtPriceLimitX96",
|
|
244
|
-
"type": "uint160"
|
|
245
|
-
}
|
|
246
|
-
],
|
|
247
|
-
"internalType": "struct ISwapRouter.ExactOutputSingleParams",
|
|
248
|
-
"name": "params",
|
|
249
|
-
"type": "tuple"
|
|
250
|
-
}
|
|
251
|
-
],
|
|
252
|
-
"name": "exactOutputSingle",
|
|
253
|
-
"outputs": [
|
|
254
|
-
{
|
|
255
|
-
"internalType": "uint256",
|
|
256
|
-
"name": "amountIn",
|
|
257
|
-
"type": "uint256"
|
|
258
|
-
}
|
|
259
|
-
],
|
|
260
|
-
"stateMutability": "payable",
|
|
261
|
-
"type": "function"
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
"inputs": [],
|
|
265
|
-
"name": "factory",
|
|
266
|
-
"outputs": [
|
|
267
|
-
{
|
|
268
|
-
"internalType": "address",
|
|
269
|
-
"name": "",
|
|
270
|
-
"type": "address"
|
|
271
|
-
}
|
|
272
|
-
],
|
|
273
|
-
"stateMutability": "view",
|
|
274
|
-
"type": "function"
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
"inputs": [
|
|
278
|
-
{
|
|
279
|
-
"internalType": "bytes[]",
|
|
280
|
-
"name": "data",
|
|
281
|
-
"type": "bytes[]"
|
|
282
|
-
}
|
|
283
|
-
],
|
|
284
|
-
"name": "multicall",
|
|
285
|
-
"outputs": [
|
|
286
|
-
{
|
|
287
|
-
"internalType": "bytes[]",
|
|
288
|
-
"name": "results",
|
|
289
|
-
"type": "bytes[]"
|
|
290
|
-
}
|
|
291
|
-
],
|
|
292
|
-
"stateMutability": "payable",
|
|
293
|
-
"type": "function"
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
"inputs": [
|
|
297
|
-
{
|
|
298
|
-
"internalType": "int256",
|
|
299
|
-
"name": "amount0Delta",
|
|
300
|
-
"type": "int256"
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"internalType": "int256",
|
|
304
|
-
"name": "amount1Delta",
|
|
305
|
-
"type": "int256"
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
"internalType": "bytes",
|
|
309
|
-
"name": "_data",
|
|
310
|
-
"type": "bytes"
|
|
311
|
-
}
|
|
312
|
-
],
|
|
313
|
-
"name": "pancakeV3SwapCallback",
|
|
314
|
-
"outputs": [],
|
|
315
|
-
"stateMutability": "nonpayable",
|
|
316
|
-
"type": "function"
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
"inputs": [],
|
|
320
|
-
"name": "refundETH",
|
|
321
|
-
"outputs": [],
|
|
322
|
-
"stateMutability": "payable",
|
|
323
|
-
"type": "function"
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
"inputs": [
|
|
327
|
-
{
|
|
328
|
-
"internalType": "address",
|
|
329
|
-
"name": "token",
|
|
330
|
-
"type": "address"
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
"internalType": "uint256",
|
|
334
|
-
"name": "value",
|
|
335
|
-
"type": "uint256"
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
"internalType": "uint256",
|
|
339
|
-
"name": "deadline",
|
|
340
|
-
"type": "uint256"
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
"internalType": "uint8",
|
|
344
|
-
"name": "v",
|
|
345
|
-
"type": "uint8"
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
"internalType": "bytes32",
|
|
349
|
-
"name": "r",
|
|
350
|
-
"type": "bytes32"
|
|
351
|
-
},
|
|
352
|
-
{
|
|
353
|
-
"internalType": "bytes32",
|
|
354
|
-
"name": "s",
|
|
355
|
-
"type": "bytes32"
|
|
356
|
-
}
|
|
357
|
-
],
|
|
358
|
-
"name": "selfPermit",
|
|
359
|
-
"outputs": [],
|
|
360
|
-
"stateMutability": "payable",
|
|
361
|
-
"type": "function"
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
"inputs": [
|
|
365
|
-
{
|
|
366
|
-
"internalType": "address",
|
|
367
|
-
"name": "token",
|
|
368
|
-
"type": "address"
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
"internalType": "uint256",
|
|
372
|
-
"name": "nonce",
|
|
373
|
-
"type": "uint256"
|
|
374
|
-
},
|
|
375
|
-
{
|
|
376
|
-
"internalType": "uint256",
|
|
377
|
-
"name": "expiry",
|
|
378
|
-
"type": "uint256"
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
"internalType": "uint8",
|
|
382
|
-
"name": "v",
|
|
383
|
-
"type": "uint8"
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
"internalType": "bytes32",
|
|
387
|
-
"name": "r",
|
|
388
|
-
"type": "bytes32"
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
"internalType": "bytes32",
|
|
392
|
-
"name": "s",
|
|
393
|
-
"type": "bytes32"
|
|
394
|
-
}
|
|
395
|
-
],
|
|
396
|
-
"name": "selfPermitAllowed",
|
|
397
|
-
"outputs": [],
|
|
398
|
-
"stateMutability": "payable",
|
|
399
|
-
"type": "function"
|
|
400
|
-
},
|
|
401
|
-
{
|
|
402
|
-
"inputs": [
|
|
403
|
-
{
|
|
404
|
-
"internalType": "address",
|
|
405
|
-
"name": "token",
|
|
406
|
-
"type": "address"
|
|
407
|
-
},
|
|
408
|
-
{
|
|
409
|
-
"internalType": "uint256",
|
|
410
|
-
"name": "nonce",
|
|
411
|
-
"type": "uint256"
|
|
412
|
-
},
|
|
413
|
-
{
|
|
414
|
-
"internalType": "uint256",
|
|
415
|
-
"name": "expiry",
|
|
416
|
-
"type": "uint256"
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
"internalType": "uint8",
|
|
420
|
-
"name": "v",
|
|
421
|
-
"type": "uint8"
|
|
422
|
-
},
|
|
423
|
-
{
|
|
424
|
-
"internalType": "bytes32",
|
|
425
|
-
"name": "r",
|
|
426
|
-
"type": "bytes32"
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
"internalType": "bytes32",
|
|
430
|
-
"name": "s",
|
|
431
|
-
"type": "bytes32"
|
|
432
|
-
}
|
|
433
|
-
],
|
|
434
|
-
"name": "selfPermitAllowedIfNecessary",
|
|
435
|
-
"outputs": [],
|
|
436
|
-
"stateMutability": "payable",
|
|
437
|
-
"type": "function"
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
"inputs": [
|
|
441
|
-
{
|
|
442
|
-
"internalType": "address",
|
|
443
|
-
"name": "token",
|
|
444
|
-
"type": "address"
|
|
445
|
-
},
|
|
446
|
-
{
|
|
447
|
-
"internalType": "uint256",
|
|
448
|
-
"name": "value",
|
|
449
|
-
"type": "uint256"
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
"internalType": "uint256",
|
|
453
|
-
"name": "deadline",
|
|
454
|
-
"type": "uint256"
|
|
455
|
-
},
|
|
456
|
-
{
|
|
457
|
-
"internalType": "uint8",
|
|
458
|
-
"name": "v",
|
|
459
|
-
"type": "uint8"
|
|
460
|
-
},
|
|
461
|
-
{
|
|
462
|
-
"internalType": "bytes32",
|
|
463
|
-
"name": "r",
|
|
464
|
-
"type": "bytes32"
|
|
465
|
-
},
|
|
466
|
-
{
|
|
467
|
-
"internalType": "bytes32",
|
|
468
|
-
"name": "s",
|
|
469
|
-
"type": "bytes32"
|
|
470
|
-
}
|
|
471
|
-
],
|
|
472
|
-
"name": "selfPermitIfNecessary",
|
|
473
|
-
"outputs": [],
|
|
474
|
-
"stateMutability": "payable",
|
|
475
|
-
"type": "function"
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
"inputs": [
|
|
479
|
-
{
|
|
480
|
-
"internalType": "address",
|
|
481
|
-
"name": "token",
|
|
482
|
-
"type": "address"
|
|
483
|
-
},
|
|
484
|
-
{
|
|
485
|
-
"internalType": "uint256",
|
|
486
|
-
"name": "amountMinimum",
|
|
487
|
-
"type": "uint256"
|
|
488
|
-
},
|
|
489
|
-
{
|
|
490
|
-
"internalType": "address",
|
|
491
|
-
"name": "recipient",
|
|
492
|
-
"type": "address"
|
|
493
|
-
}
|
|
494
|
-
],
|
|
495
|
-
"name": "sweepToken",
|
|
496
|
-
"outputs": [],
|
|
497
|
-
"stateMutability": "payable",
|
|
498
|
-
"type": "function"
|
|
499
|
-
},
|
|
500
|
-
{
|
|
501
|
-
"inputs": [
|
|
502
|
-
{
|
|
503
|
-
"internalType": "address",
|
|
504
|
-
"name": "token",
|
|
505
|
-
"type": "address"
|
|
506
|
-
},
|
|
507
|
-
{
|
|
508
|
-
"internalType": "uint256",
|
|
509
|
-
"name": "amountMinimum",
|
|
510
|
-
"type": "uint256"
|
|
511
|
-
},
|
|
512
|
-
{
|
|
513
|
-
"internalType": "address",
|
|
514
|
-
"name": "recipient",
|
|
515
|
-
"type": "address"
|
|
516
|
-
},
|
|
517
|
-
{
|
|
518
|
-
"internalType": "uint256",
|
|
519
|
-
"name": "feeBips",
|
|
520
|
-
"type": "uint256"
|
|
521
|
-
},
|
|
522
|
-
{
|
|
523
|
-
"internalType": "address",
|
|
524
|
-
"name": "feeRecipient",
|
|
525
|
-
"type": "address"
|
|
526
|
-
}
|
|
527
|
-
],
|
|
528
|
-
"name": "sweepTokenWithFee",
|
|
529
|
-
"outputs": [],
|
|
530
|
-
"stateMutability": "payable",
|
|
531
|
-
"type": "function"
|
|
532
|
-
},
|
|
533
|
-
{
|
|
534
|
-
"inputs": [
|
|
535
|
-
{
|
|
536
|
-
"internalType": "uint256",
|
|
537
|
-
"name": "amountMinimum",
|
|
538
|
-
"type": "uint256"
|
|
539
|
-
},
|
|
540
|
-
{
|
|
541
|
-
"internalType": "address",
|
|
542
|
-
"name": "recipient",
|
|
543
|
-
"type": "address"
|
|
544
|
-
}
|
|
545
|
-
],
|
|
546
|
-
"name": "unwrapWETH9",
|
|
547
|
-
"outputs": [],
|
|
548
|
-
"stateMutability": "payable",
|
|
549
|
-
"type": "function"
|
|
550
|
-
},
|
|
551
|
-
{
|
|
552
|
-
"inputs": [
|
|
553
|
-
{
|
|
554
|
-
"internalType": "uint256",
|
|
555
|
-
"name": "amountMinimum",
|
|
556
|
-
"type": "uint256"
|
|
557
|
-
},
|
|
558
|
-
{
|
|
559
|
-
"internalType": "address",
|
|
560
|
-
"name": "recipient",
|
|
561
|
-
"type": "address"
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
"internalType": "uint256",
|
|
565
|
-
"name": "feeBips",
|
|
566
|
-
"type": "uint256"
|
|
567
|
-
},
|
|
568
|
-
{
|
|
569
|
-
"internalType": "address",
|
|
570
|
-
"name": "feeRecipient",
|
|
571
|
-
"type": "address"
|
|
572
|
-
}
|
|
573
|
-
],
|
|
574
|
-
"name": "unwrapWETH9WithFee",
|
|
575
|
-
"outputs": [],
|
|
576
|
-
"stateMutability": "payable",
|
|
577
|
-
"type": "function"
|
|
578
|
-
},
|
|
579
|
-
{
|
|
580
|
-
"stateMutability": "payable",
|
|
581
|
-
"type": "receive"
|
|
582
|
-
}
|
|
583
|
-
]
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Adapters = exports.PancakeswapV3Config = void 0;
|
|
4
|
-
const constants_1 = require("../../constants");
|
|
5
|
-
const PANCAKE_SUPPORTED_FEES = [10000n, 2500n, 500n, 100n];
|
|
6
|
-
// Pools that will be initialized on app startup
|
|
7
|
-
// They are added for testing
|
|
8
|
-
exports.PancakeswapV3Config = {
|
|
9
|
-
PancakeswapV3: {
|
|
10
|
-
[constants_1.Network.MAINNET]: {
|
|
11
|
-
factory: '0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865',
|
|
12
|
-
deployer: '0x41ff9AA7e16B8B1a8a8dc4f0eFacd93D02d071c9',
|
|
13
|
-
quoter: '0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997',
|
|
14
|
-
router: '0x1b81D678ffb9C0263b24A97847620C99d213eB14',
|
|
15
|
-
supportedFees: PANCAKE_SUPPORTED_FEES,
|
|
16
|
-
stateMulticall: '0x80898f80cFA3Fa3AbF410d90e69aDc432AE5D4c2',
|
|
17
|
-
uniswapMulticall: '0xac1cE734566f390A94b00eb9bf561c2625BF44ea',
|
|
18
|
-
chunksCount: 10,
|
|
19
|
-
initHash: '0x6ce8eb472fa82df5469c6ab6d485f17c3ad13c8cd7af59b3d4a8026c5ce0f7e2',
|
|
20
|
-
subgraphURL: 'https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-eth',
|
|
21
|
-
},
|
|
22
|
-
[constants_1.Network.BSC]: {
|
|
23
|
-
factory: '0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865',
|
|
24
|
-
deployer: '0x41ff9AA7e16B8B1a8a8dc4f0eFacd93D02d071c9',
|
|
25
|
-
quoter: '0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997',
|
|
26
|
-
router: '0x1b81D678ffb9C0263b24A97847620C99d213eB14',
|
|
27
|
-
supportedFees: PANCAKE_SUPPORTED_FEES,
|
|
28
|
-
stateMulticall: '0x9DAd2ED7ADc6eaacf81589Cd043579c9684E5C81',
|
|
29
|
-
uniswapMulticall: '0xac1cE734566f390A94b00eb9bf561c2625BF44ea',
|
|
30
|
-
chunksCount: 10,
|
|
31
|
-
initHash: '0x6ce8eb472fa82df5469c6ab6d485f17c3ad13c8cd7af59b3d4a8026c5ce0f7e2',
|
|
32
|
-
subgraphURL: 'https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-bsc',
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
exports.Adapters = {
|
|
37
|
-
[constants_1.Network.MAINNET]: {
|
|
38
|
-
[constants_1.SwapSide.SELL]: [{ name: 'Adapter01', index: 6 }],
|
|
39
|
-
[constants_1.SwapSide.BUY]: [{ name: 'BuyAdapter', index: 2 }],
|
|
40
|
-
},
|
|
41
|
-
[constants_1.Network.BSC]: {
|
|
42
|
-
[constants_1.SwapSide.SELL]: [{ name: 'BscAdapter02', index: 4 }],
|
|
43
|
-
[constants_1.SwapSide.BUY]: [{ name: 'BscBuyAdapter', index: 5 }],
|
|
44
|
-
},
|
|
45
|
-
[constants_1.Network.POLYGON]: {
|
|
46
|
-
[constants_1.SwapSide.SELL]: [{ name: 'PolygonAdapter01', index: 13 }],
|
|
47
|
-
[constants_1.SwapSide.BUY]: [{ name: 'PolygonBuyAdapter', index: 2 }],
|
|
48
|
-
},
|
|
49
|
-
[constants_1.Network.ARBITRUM]: {
|
|
50
|
-
[constants_1.SwapSide.SELL]: [{ name: 'ArbitrumAdapter01', index: 3 }],
|
|
51
|
-
[constants_1.SwapSide.BUY]: [{ name: 'ArbitrumBuyAdapter', index: 2 }],
|
|
52
|
-
},
|
|
53
|
-
[constants_1.Network.OPTIMISM]: {
|
|
54
|
-
[constants_1.SwapSide.SELL]: [{ name: 'OptimismAdapter01', index: 3 }],
|
|
55
|
-
[constants_1.SwapSide.BUY]: [{ name: 'OptimismBuyAdapter', index: 2 }],
|
|
56
|
-
},
|
|
57
|
-
[constants_1.Network.FANTOM]: {
|
|
58
|
-
[constants_1.SwapSide.SELL]: [{ name: 'FantomAdapter01', index: 11 }],
|
|
59
|
-
[constants_1.SwapSide.BUY]: [{ name: 'FantomBuyAdapter', index: 3 }],
|
|
60
|
-
},
|
|
61
|
-
};
|
|
62
|
-
//# sourceMappingURL=config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/dex/pancakeswap-v3/config.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare const PANCAKESWAP3_FUNCTION_CALL_GAS_COST = 21000;
|
|
2
|
-
export declare const PANCAKESWAPV3_TICK_GAS_COST = 24000;
|
|
3
|
-
export declare const TICK_BITMAP_TO_USE = 4n;
|
|
4
|
-
export declare const TICK_BITMAP_BUFFER = 8n;
|
|
5
|
-
export declare const MAX_PRICING_COMPUTATION_STEPS_ALLOWED = 128;
|
|
6
|
-
export declare const PANCAKESWAPV3_SUBGRAPH_URL = "https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v3";
|
|
7
|
-
export declare const PANCAKESWAPV3_EFFICIENCY_FACTOR = 3;
|
|
8
|
-
export declare const ZERO_TICK_INFO: {
|
|
9
|
-
liquidityGross: bigint;
|
|
10
|
-
liquidityNet: bigint;
|
|
11
|
-
tickCumulativeOutside: bigint;
|
|
12
|
-
secondsPerLiquidityOutsideX128: bigint;
|
|
13
|
-
secondsOutside: bigint;
|
|
14
|
-
initialized: boolean;
|
|
15
|
-
};
|
|
16
|
-
export declare const ZERO_ORACLE_OBSERVATION: {
|
|
17
|
-
blockTimestamp: bigint;
|
|
18
|
-
tickCumulative: bigint;
|
|
19
|
-
secondsPerLiquidityCumulativeX128: bigint;
|
|
20
|
-
initialized: boolean;
|
|
21
|
-
};
|
|
22
|
-
export declare const OUT_OF_RANGE_ERROR_POSTFIX = "INVALID_TICK_BIT_MAP_RANGES";
|
|
23
|
-
export declare const DEFAULT_POOL_INIT_CODE_HASH = "0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54";
|