@paraswap/dex-lib 2.23.4 → 2.24.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/algebra/AlgebraPool.abi.json +727 -0
- package/build/abi/algebra/AlgebraQuoter.abi.json +138 -0
- package/build/abi/algebra/AlgebraStateMulticall.abi.json +801 -0
- package/build/config.js +2 -2
- package/build/dex/algebra/algebra-pool.d.ts +41 -0
- package/build/dex/algebra/algebra-pool.js +272 -0
- package/build/dex/algebra/algebra-pool.js.map +1 -0
- package/build/dex/algebra/algebra.d.ts +53 -0
- package/build/dex/algebra/algebra.js +460 -0
- package/build/dex/algebra/algebra.js.map +1 -0
- package/build/dex/algebra/config.d.ts +4 -0
- package/build/dex/algebra/config.js +41 -0
- package/build/dex/algebra/config.js.map +1 -0
- package/build/dex/algebra/lib/AlgebraMath.d.ts +13 -0
- package/build/dex/algebra/lib/AlgebraMath.js +440 -0
- package/build/dex/algebra/lib/AlgebraMath.js.map +1 -0
- package/build/dex/algebra/lib/AlgebraXUniV3.d.ts +5 -0
- package/build/dex/algebra/lib/AlgebraXUniV3.js +45 -0
- package/build/dex/algebra/lib/AlgebraXUniV3.js.map +1 -0
- package/build/dex/algebra/lib/Constants.d.ts +5 -0
- package/build/dex/algebra/lib/Constants.js +10 -0
- package/build/dex/algebra/lib/Constants.js.map +1 -0
- package/build/dex/algebra/lib/DataStorage.d.ts +19 -0
- package/build/dex/algebra/lib/DataStorage.js +466 -0
- package/build/dex/algebra/lib/DataStorage.js.map +1 -0
- package/build/dex/algebra/lib/DataStorageOperator.d.ts +10 -0
- package/build/dex/algebra/lib/DataStorageOperator.js +93 -0
- package/build/dex/algebra/lib/DataStorageOperator.js.map +1 -0
- package/build/dex/algebra/lib/Sqrt.d.ts +3 -0
- package/build/dex/algebra/lib/Sqrt.js +60 -0
- package/build/dex/algebra/lib/Sqrt.js.map +1 -0
- package/build/dex/algebra/lib/TickManager.d.ts +10 -0
- package/build/dex/algebra/lib/TickManager.js +3 -0
- package/build/dex/algebra/lib/TickManager.js.map +1 -0
- package/build/dex/algebra/types.d.ts +75 -0
- package/build/dex/{pancakeswap-v3 → algebra}/types.js.map +1 -1
- package/build/dex/algebra/utils.d.ts +4 -0
- package/build/dex/algebra/utils.js +60 -0
- package/build/dex/algebra/utils.js.map +1 -0
- package/build/dex/uniswap-v3/config.js +15 -0
- package/build/dex/uniswap-v3/config.js.map +1 -1
- package/package.json +1 -1
- package/src/config.ts +2 -2
- package/src/dex/uniswap-v3/config.ts +16 -0
- package/src/dex/uniswap-v3/uniswap-v3-e2e.test.ts +86 -0
- package/.idea/aws.xml +0 -17
- package/.idea/codeStyles/Project.xml +0 -19
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/paraswap-dex-lib.iml +0 -9
- package/.idea/vcs.xml +0 -6
- 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/pancakeswap-v3/types.d.ts +0 -14
- package/build/dex/solidly/forks-override/ramses.d.ts +0 -8
- package/build/dex/solidly/forks-override/ramses.js +0 -15
- package/build/dex/solidly/forks-override/ramses.js.map +0 -1
- /package/build/dex/{pancakeswap-v3 → algebra}/types.js +0 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"inputs": [
|
|
4
|
+
{
|
|
5
|
+
"internalType": "bytes",
|
|
6
|
+
"name": "path",
|
|
7
|
+
"type": "bytes"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"internalType": "uint256",
|
|
11
|
+
"name": "amountIn",
|
|
12
|
+
"type": "uint256"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"name": "quoteExactInput",
|
|
16
|
+
"outputs": [
|
|
17
|
+
{
|
|
18
|
+
"internalType": "uint256",
|
|
19
|
+
"name": "amountOut",
|
|
20
|
+
"type": "uint256"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"internalType": "uint16[]",
|
|
24
|
+
"name": "fees",
|
|
25
|
+
"type": "uint16[]"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"stateMutability": "nonpayable",
|
|
29
|
+
"type": "function"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"inputs": [
|
|
33
|
+
{
|
|
34
|
+
"internalType": "address",
|
|
35
|
+
"name": "tokenIn",
|
|
36
|
+
"type": "address"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"internalType": "address",
|
|
40
|
+
"name": "tokenOut",
|
|
41
|
+
"type": "address"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"internalType": "uint256",
|
|
45
|
+
"name": "amountIn",
|
|
46
|
+
"type": "uint256"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"internalType": "uint160",
|
|
50
|
+
"name": "limitSqrtPrice",
|
|
51
|
+
"type": "uint160"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"name": "quoteExactInputSingle",
|
|
55
|
+
"outputs": [
|
|
56
|
+
{
|
|
57
|
+
"internalType": "uint256",
|
|
58
|
+
"name": "amountOut",
|
|
59
|
+
"type": "uint256"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"internalType": "uint16",
|
|
63
|
+
"name": "fee",
|
|
64
|
+
"type": "uint16"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"stateMutability": "nonpayable",
|
|
68
|
+
"type": "function"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"inputs": [
|
|
72
|
+
{
|
|
73
|
+
"internalType": "bytes",
|
|
74
|
+
"name": "path",
|
|
75
|
+
"type": "bytes"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"internalType": "uint256",
|
|
79
|
+
"name": "amountOut",
|
|
80
|
+
"type": "uint256"
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"name": "quoteExactOutput",
|
|
84
|
+
"outputs": [
|
|
85
|
+
{
|
|
86
|
+
"internalType": "uint256",
|
|
87
|
+
"name": "amountIn",
|
|
88
|
+
"type": "uint256"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"internalType": "uint16[]",
|
|
92
|
+
"name": "fees",
|
|
93
|
+
"type": "uint16[]"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"stateMutability": "nonpayable",
|
|
97
|
+
"type": "function"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"inputs": [
|
|
101
|
+
{
|
|
102
|
+
"internalType": "address",
|
|
103
|
+
"name": "tokenIn",
|
|
104
|
+
"type": "address"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"internalType": "address",
|
|
108
|
+
"name": "tokenOut",
|
|
109
|
+
"type": "address"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"internalType": "uint256",
|
|
113
|
+
"name": "amountOut",
|
|
114
|
+
"type": "uint256"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"internalType": "uint160",
|
|
118
|
+
"name": "limitSqrtPrice",
|
|
119
|
+
"type": "uint160"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"name": "quoteExactOutputSingle",
|
|
123
|
+
"outputs": [
|
|
124
|
+
{
|
|
125
|
+
"internalType": "uint256",
|
|
126
|
+
"name": "amountIn",
|
|
127
|
+
"type": "uint256"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"internalType": "uint16",
|
|
131
|
+
"name": "fee",
|
|
132
|
+
"type": "uint16"
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"stateMutability": "nonpayable",
|
|
136
|
+
"type": "function"
|
|
137
|
+
}
|
|
138
|
+
]
|