@paraswap/dex-lib 2.23.1-zkevm-quickswap.4 → 2.23.2

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.
Files changed (62) hide show
  1. package/build/abi/algebra/AlgebraPool.abi.json +727 -0
  2. package/build/abi/algebra/AlgebraQuoter.abi.json +138 -0
  3. package/build/abi/algebra/AlgebraStateMulticall.abi.json +801 -0
  4. package/build/constants.d.ts +0 -1
  5. package/build/constants.js +0 -1
  6. package/build/constants.js.map +1 -1
  7. package/build/dex/algebra/algebra-pool.d.ts +41 -0
  8. package/build/dex/algebra/algebra-pool.js +267 -0
  9. package/build/dex/algebra/algebra-pool.js.map +1 -0
  10. package/build/dex/algebra/algebra.d.ts +53 -0
  11. package/build/dex/algebra/algebra.js +457 -0
  12. package/build/dex/algebra/algebra.js.map +1 -0
  13. package/build/dex/algebra/config.d.ts +4 -0
  14. package/build/dex/algebra/config.js +41 -0
  15. package/build/dex/algebra/config.js.map +1 -0
  16. package/build/dex/algebra/lib/AlgebraMath.d.ts +14 -0
  17. package/build/dex/algebra/lib/AlgebraMath.js +274 -0
  18. package/build/dex/algebra/lib/AlgebraMath.js.map +1 -0
  19. package/build/dex/algebra/lib/AlgebraXUniV3.d.ts +5 -0
  20. package/build/dex/algebra/lib/AlgebraXUniV3.js +45 -0
  21. package/build/dex/algebra/lib/AlgebraXUniV3.js.map +1 -0
  22. package/build/dex/algebra/lib/Constants.d.ts +5 -0
  23. package/build/dex/algebra/lib/Constants.js +10 -0
  24. package/build/dex/algebra/lib/Constants.js.map +1 -0
  25. package/build/dex/algebra/lib/DataStorage.d.ts +24 -0
  26. package/build/dex/algebra/lib/DataStorage.js +388 -0
  27. package/build/dex/algebra/lib/DataStorage.js.map +1 -0
  28. package/build/dex/algebra/lib/DataStorageOperator.d.ts +9 -0
  29. package/build/dex/algebra/lib/DataStorageOperator.js +66 -0
  30. package/build/dex/algebra/lib/DataStorageOperator.js.map +1 -0
  31. package/build/dex/algebra/lib/Sqrt.d.ts +3 -0
  32. package/build/dex/algebra/lib/Sqrt.js +60 -0
  33. package/build/dex/algebra/lib/Sqrt.js.map +1 -0
  34. package/build/dex/algebra/lib/TickManager.d.ts +10 -0
  35. package/build/dex/algebra/lib/TickManager.js +3 -0
  36. package/build/dex/algebra/lib/TickManager.js.map +1 -0
  37. package/build/dex/algebra/types.d.ts +55 -0
  38. package/build/dex/algebra/types.js +3 -0
  39. package/build/dex/algebra/types.js.map +1 -0
  40. package/build/dex/camelot/camelot.d.ts +7 -6
  41. package/build/dex/camelot/camelot.js +4 -2
  42. package/build/dex/camelot/camelot.js.map +1 -1
  43. package/build/dex/camelot/config.js +1 -2
  44. package/build/dex/camelot/config.js.map +1 -1
  45. package/build/dex/camelot/types.d.ts +1 -2
  46. package/build/dex/quickswap/config.js +0 -6
  47. package/build/dex/quickswap/config.js.map +1 -1
  48. package/build/dex/uniswap-v3/config.js +0 -17
  49. package/build/dex/uniswap-v3/config.js.map +1 -1
  50. package/build/dex/uniswap-v3/uniswap-v3.js +2 -2
  51. package/build/dex/uniswap-v3/uniswap-v3.js.map +1 -1
  52. package/build/dex/weth/config.js +0 -3
  53. package/build/dex/weth/config.js.map +1 -1
  54. package/package.json +1 -1
  55. package/src/constants.ts +0 -1
  56. package/src/dex/camelot/camelot.ts +11 -22
  57. package/src/dex/camelot/config.ts +1 -2
  58. package/src/dex/camelot/types.ts +1 -7
  59. package/src/dex/quickswap/config.ts +0 -7
  60. package/src/dex/uniswap-v3/config.ts +0 -18
  61. package/src/dex/uniswap-v3/uniswap-v3.ts +2 -4
  62. package/src/dex/weth/config.ts +0 -3
@@ -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
+ ]