@paraswap/dex-lib 2.47.6 → 2.47.8-remove-univ3-poolconfigs.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.
Files changed (62) hide show
  1. package/build/abi/algebra/AlgebraPool.abi.json +727 -0
  2. package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +193 -0
  3. package/build/abi/wombat/pool.json +1289 -0
  4. package/build/constants.d.ts +1 -0
  5. package/build/constants.js +2 -1
  6. package/build/constants.js.map +1 -1
  7. package/build/dex/algebra/algebra-pool-v1_1.d.ts +4 -0
  8. package/build/dex/algebra/algebra-pool-v1_1.js +6 -0
  9. package/build/dex/algebra/algebra-pool-v1_1.js.map +1 -1
  10. package/build/dex/algebra/algebra-pool-v1_9.d.ts +4 -0
  11. package/build/dex/algebra/algebra-pool-v1_9.js +6 -0
  12. package/build/dex/algebra/algebra-pool-v1_9.js.map +1 -1
  13. package/build/dex/algebra/algebra-pool.d.ts +46 -0
  14. package/build/dex/algebra/algebra-pool.js +336 -0
  15. package/build/dex/algebra/algebra-pool.js.map +1 -0
  16. package/build/dex/algebra/algebra.js +3 -6
  17. package/build/dex/algebra/algebra.js.map +1 -1
  18. package/build/dex/balancer-v2/balancer-v2.d.ts +1 -1
  19. package/build/dex/balancer-v2/balancer-v2.js +5 -4
  20. package/build/dex/balancer-v2/balancer-v2.js.map +1 -1
  21. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.d.ts +5 -0
  22. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.js +7 -0
  23. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.js.map +1 -1
  24. package/build/dex/pancakeswap-v3/pancakeswap-v3.js +3 -7
  25. package/build/dex/pancakeswap-v3/pancakeswap-v3.js.map +1 -1
  26. package/build/dex/quickswap/camelot-v3.d.ts +6 -0
  27. package/build/dex/quickswap/camelot-v3.js +19 -0
  28. package/build/dex/quickswap/camelot-v3.js.map +1 -0
  29. package/build/dex/quickswap/zyberswap-v3.d.ts +6 -0
  30. package/build/dex/quickswap/zyberswap-v3.js +19 -0
  31. package/build/dex/quickswap/zyberswap-v3.js.map +1 -0
  32. package/build/dex/simple-exchange.d.ts +0 -1
  33. package/build/dex/simple-exchange.js +0 -2
  34. package/build/dex/simple-exchange.js.map +1 -1
  35. package/build/dex/solidly-v3/solidly-v3-pool.d.ts +5 -0
  36. package/build/dex/solidly-v3/solidly-v3-pool.js +7 -0
  37. package/build/dex/solidly-v3/solidly-v3-pool.js.map +1 -1
  38. package/build/dex/solidly-v3/solidly-v3.js +3 -7
  39. package/build/dex/solidly-v3/solidly-v3.js.map +1 -1
  40. package/build/dex/uniswap-v2/rebase-tokens.json +7 -0
  41. package/build/dex/uniswap-v3/uniswap-v3-pool.d.ts +5 -0
  42. package/build/dex/uniswap-v3/uniswap-v3-pool.js +7 -0
  43. package/build/dex/uniswap-v3/uniswap-v3-pool.js.map +1 -1
  44. package/build/dex/uniswap-v3/uniswap-v3.js +3 -7
  45. package/build/dex/uniswap-v3/uniswap-v3.js.map +1 -1
  46. package/build/stateful-event-subscriber.d.ts +1 -0
  47. package/build/stateful-event-subscriber.js +8 -1
  48. package/build/stateful-event-subscriber.js.map +1 -1
  49. package/package.json +2 -2
  50. package/src/constants.ts +2 -0
  51. package/src/dex/algebra/algebra-pool-v1_1.ts +7 -0
  52. package/src/dex/algebra/algebra-pool-v1_9.ts +7 -0
  53. package/src/dex/algebra/algebra.ts +14 -13
  54. package/src/dex/balancer-v2/balancer-v2.ts +8 -4
  55. package/src/dex/pancakeswap-v3/pancakeswap-v3-pool.ts +8 -0
  56. package/src/dex/pancakeswap-v3/pancakeswap-v3.ts +13 -13
  57. package/src/dex/simple-exchange.ts +0 -4
  58. package/src/dex/solidly-v3/solidly-v3-pool.ts +8 -0
  59. package/src/dex/solidly-v3/solidly-v3.ts +13 -13
  60. package/src/dex/uniswap-v3/uniswap-v3-pool.ts +8 -0
  61. package/src/dex/uniswap-v3/uniswap-v3.ts +13 -13
  62. package/src/stateful-event-subscriber.ts +13 -1
@@ -0,0 +1,193 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "_factory",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "address",
11
+ "name": "_WETH9",
12
+ "type": "address"
13
+ }
14
+ ],
15
+ "stateMutability": "nonpayable",
16
+ "type": "constructor"
17
+ },
18
+ {
19
+ "inputs": [],
20
+ "name": "WETH9",
21
+ "outputs": [
22
+ {
23
+ "internalType": "address",
24
+ "name": "",
25
+ "type": "address"
26
+ }
27
+ ],
28
+ "stateMutability": "view",
29
+ "type": "function"
30
+ },
31
+ {
32
+ "inputs": [],
33
+ "name": "factory",
34
+ "outputs": [
35
+ {
36
+ "internalType": "address",
37
+ "name": "",
38
+ "type": "address"
39
+ }
40
+ ],
41
+ "stateMutability": "view",
42
+ "type": "function"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "bytes",
48
+ "name": "path",
49
+ "type": "bytes"
50
+ },
51
+ {
52
+ "internalType": "uint256",
53
+ "name": "amountIn",
54
+ "type": "uint256"
55
+ }
56
+ ],
57
+ "name": "quoteExactInput",
58
+ "outputs": [
59
+ {
60
+ "internalType": "uint256",
61
+ "name": "amountOut",
62
+ "type": "uint256"
63
+ }
64
+ ],
65
+ "stateMutability": "nonpayable",
66
+ "type": "function"
67
+ },
68
+ {
69
+ "inputs": [
70
+ {
71
+ "internalType": "address",
72
+ "name": "tokenIn",
73
+ "type": "address"
74
+ },
75
+ {
76
+ "internalType": "address",
77
+ "name": "tokenOut",
78
+ "type": "address"
79
+ },
80
+ {
81
+ "internalType": "uint24",
82
+ "name": "fee",
83
+ "type": "uint24"
84
+ },
85
+ {
86
+ "internalType": "uint256",
87
+ "name": "amountIn",
88
+ "type": "uint256"
89
+ },
90
+ {
91
+ "internalType": "uint160",
92
+ "name": "sqrtPriceLimitX96",
93
+ "type": "uint160"
94
+ }
95
+ ],
96
+ "name": "quoteExactInputSingle",
97
+ "outputs": [
98
+ {
99
+ "internalType": "uint256",
100
+ "name": "amountOut",
101
+ "type": "uint256"
102
+ }
103
+ ],
104
+ "stateMutability": "nonpayable",
105
+ "type": "function"
106
+ },
107
+ {
108
+ "inputs": [
109
+ {
110
+ "internalType": "bytes",
111
+ "name": "path",
112
+ "type": "bytes"
113
+ },
114
+ {
115
+ "internalType": "uint256",
116
+ "name": "amountOut",
117
+ "type": "uint256"
118
+ }
119
+ ],
120
+ "name": "quoteExactOutput",
121
+ "outputs": [
122
+ {
123
+ "internalType": "uint256",
124
+ "name": "amountIn",
125
+ "type": "uint256"
126
+ }
127
+ ],
128
+ "stateMutability": "nonpayable",
129
+ "type": "function"
130
+ },
131
+ {
132
+ "inputs": [
133
+ {
134
+ "internalType": "address",
135
+ "name": "tokenIn",
136
+ "type": "address"
137
+ },
138
+ {
139
+ "internalType": "address",
140
+ "name": "tokenOut",
141
+ "type": "address"
142
+ },
143
+ {
144
+ "internalType": "uint24",
145
+ "name": "fee",
146
+ "type": "uint24"
147
+ },
148
+ {
149
+ "internalType": "uint256",
150
+ "name": "amountOut",
151
+ "type": "uint256"
152
+ },
153
+ {
154
+ "internalType": "uint160",
155
+ "name": "sqrtPriceLimitX96",
156
+ "type": "uint160"
157
+ }
158
+ ],
159
+ "name": "quoteExactOutputSingle",
160
+ "outputs": [
161
+ {
162
+ "internalType": "uint256",
163
+ "name": "amountIn",
164
+ "type": "uint256"
165
+ }
166
+ ],
167
+ "stateMutability": "nonpayable",
168
+ "type": "function"
169
+ },
170
+ {
171
+ "inputs": [
172
+ {
173
+ "internalType": "int256",
174
+ "name": "amount0Delta",
175
+ "type": "int256"
176
+ },
177
+ {
178
+ "internalType": "int256",
179
+ "name": "amount1Delta",
180
+ "type": "int256"
181
+ },
182
+ {
183
+ "internalType": "bytes",
184
+ "name": "path",
185
+ "type": "bytes"
186
+ }
187
+ ],
188
+ "name": "uniswapV3SwapCallback",
189
+ "outputs": [],
190
+ "stateMutability": "view",
191
+ "type": "function"
192
+ }
193
+ ]