@paraswap/dex-lib 2.42.4-baseswap.2 → 2.42.4

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 (194) hide show
  1. package/.vscode/launch.json +16 -0
  2. package/build/dex/uniswap-v3/config.js +0 -14
  3. package/build/dex/uniswap-v3/config.js.map +1 -1
  4. package/build/test.js +26 -0
  5. package/package.json +1 -1
  6. package/src/dex/uniswap-v3/config.ts +0 -14
  7. package/src/dex/uniswap-v3/uniswap-v3-e2e.test.ts +0 -24
  8. package/src/dex/uniswap-v3/uniswap-v3-integration.test.ts +0 -375
  9. package/build/abi/kyberswap-elastic/IAntiSnipAttackPositionManager.json +0 -1276
  10. package/build/abi/kyberswap-elastic/IFactory.json +0 -550
  11. package/build/abi/kyberswap-elastic/IPool.json +0 -1042
  12. package/build/abi/kyberswap-elastic/IQuoterV2.json +0 -226
  13. package/build/abi/kyberswap-elastic/IRouter.json +0 -239
  14. package/build/abi/kyberswap-elastic/TicksFeesReader.json +0 -142
  15. package/build/abi/wombat/asset.json +0 -769
  16. package/build/abi/wombat/bmw.json +0 -1247
  17. package/build/abi/wombat/pool.json +0 -1364
  18. package/build/dex/baseswap-v3/baseswap-v3-factory.d.ts +0 -26
  19. package/build/dex/baseswap-v3/baseswap-v3-factory.js +0 -44
  20. package/build/dex/baseswap-v3/baseswap-v3-factory.js.map +0 -1
  21. package/build/dex/baseswap-v3/baseswap-v3-pool.d.ts +0 -46
  22. package/build/dex/baseswap-v3/baseswap-v3-pool.js +0 -312
  23. package/build/dex/baseswap-v3/baseswap-v3-pool.js.map +0 -1
  24. package/build/dex/baseswap-v3/baseswap-v3.d.ts +0 -71
  25. package/build/dex/baseswap-v3/baseswap-v3.js +0 -752
  26. package/build/dex/baseswap-v3/baseswap-v3.js.map +0 -1
  27. package/build/dex/baseswap-v3/config.d.ts +0 -9
  28. package/build/dex/baseswap-v3/config.js +0 -48
  29. package/build/dex/baseswap-v3/config.js.map +0 -1
  30. package/build/dex/baseswap-v3/constants.d.ts +0 -28
  31. package/build/dex/baseswap-v3/constants.js +0 -35
  32. package/build/dex/baseswap-v3/constants.js.map +0 -1
  33. package/build/dex/baseswap-v3/contract-math/BitMath.d.ts +0 -4
  34. package/build/dex/baseswap-v3/contract-math/BitMath.js +0 -93
  35. package/build/dex/baseswap-v3/contract-math/BitMath.js.map +0 -1
  36. package/build/dex/baseswap-v3/contract-math/FixedPoint128.d.ts +0 -3
  37. package/build/dex/baseswap-v3/contract-math/FixedPoint128.js +0 -8
  38. package/build/dex/baseswap-v3/contract-math/FixedPoint128.js.map +0 -1
  39. package/build/dex/baseswap-v3/contract-math/FixedPoint96.d.ts +0 -4
  40. package/build/dex/baseswap-v3/contract-math/FixedPoint96.js +0 -9
  41. package/build/dex/baseswap-v3/contract-math/FixedPoint96.js.map +0 -1
  42. package/build/dex/baseswap-v3/contract-math/FullMath.d.ts +0 -4
  43. package/build/dex/baseswap-v3/contract-math/FullMath.js +0 -19
  44. package/build/dex/baseswap-v3/contract-math/FullMath.js.map +0 -1
  45. package/build/dex/baseswap-v3/contract-math/LiquidityMath.d.ts +0 -3
  46. package/build/dex/baseswap-v3/contract-math/LiquidityMath.js +0 -22
  47. package/build/dex/baseswap-v3/contract-math/LiquidityMath.js.map +0 -1
  48. package/build/dex/baseswap-v3/contract-math/Oracle.d.ts +0 -10
  49. package/build/dex/baseswap-v3/contract-math/Oracle.js +0 -133
  50. package/build/dex/baseswap-v3/contract-math/Oracle.js.map +0 -1
  51. package/build/dex/baseswap-v3/contract-math/SqrtPriceMath.d.ts +0 -10
  52. package/build/dex/baseswap-v3/contract-math/SqrtPriceMath.js +0 -91
  53. package/build/dex/baseswap-v3/contract-math/SqrtPriceMath.js.map +0 -1
  54. package/build/dex/baseswap-v3/contract-math/SwapMath.d.ts +0 -8
  55. package/build/dex/baseswap-v3/contract-math/SwapMath.js +0 -70
  56. package/build/dex/baseswap-v3/contract-math/SwapMath.js.map +0 -1
  57. package/build/dex/baseswap-v3/contract-math/Tick.d.ts +0 -7
  58. package/build/dex/baseswap-v3/contract-math/Tick.js +0 -45
  59. package/build/dex/baseswap-v3/contract-math/Tick.js.map +0 -1
  60. package/build/dex/baseswap-v3/contract-math/TickBitMap.d.ts +0 -7
  61. package/build/dex/baseswap-v3/contract-math/TickBitMap.js +0 -84
  62. package/build/dex/baseswap-v3/contract-math/TickBitMap.js.map +0 -1
  63. package/build/dex/baseswap-v3/contract-math/TickMath.d.ts +0 -8
  64. package/build/dex/baseswap-v3/contract-math/TickMath.js +0 -162
  65. package/build/dex/baseswap-v3/contract-math/TickMath.js.map +0 -1
  66. package/build/dex/baseswap-v3/contract-math/UnsafeMath.d.ts +0 -3
  67. package/build/dex/baseswap-v3/contract-math/UnsafeMath.js +0 -10
  68. package/build/dex/baseswap-v3/contract-math/UnsafeMath.js.map +0 -1
  69. package/build/dex/baseswap-v3/contract-math/uniswap-v3-math.d.ts +0 -37
  70. package/build/dex/baseswap-v3/contract-math/uniswap-v3-math.js +0 -393
  71. package/build/dex/baseswap-v3/contract-math/uniswap-v3-math.js.map +0 -1
  72. package/build/dex/baseswap-v3/contract-math/utils.d.ts +0 -7
  73. package/build/dex/baseswap-v3/contract-math/utils.js +0 -42
  74. package/build/dex/baseswap-v3/contract-math/utils.js.map +0 -1
  75. package/build/dex/baseswap-v3/types.d.ts +0 -164
  76. package/build/dex/baseswap-v3/types.js +0 -9
  77. package/build/dex/baseswap-v3/types.js.map +0 -1
  78. package/build/dex/baseswap-v3/utils.d.ts +0 -6
  79. package/build/dex/baseswap-v3/utils.js +0 -65
  80. package/build/dex/baseswap-v3/utils.js.map +0 -1
  81. package/build/dex/hello/config.d.ts +0 -4
  82. package/build/dex/hello/config.js +0 -15
  83. package/build/dex/hello/config.js.map +0 -1
  84. package/build/dex/hello/hello-pool.d.ts +0 -39
  85. package/build/dex/hello/hello-pool.js +0 -64
  86. package/build/dex/hello/hello-pool.js.map +0 -1
  87. package/build/dex/hello/hello.d.ts +0 -37
  88. package/build/dex/hello/hello.js +0 -126
  89. package/build/dex/hello/hello.js.map +0 -1
  90. package/build/dex/hello/types.d.ts +0 -6
  91. package/build/dex/hello/types.js +0 -3
  92. package/build/dex/hello/types.js.map +0 -1
  93. package/build/dex/kyberswap-elastic/config.d.ts +0 -4
  94. package/build/dex/kyberswap-elastic/config.js +0 -80
  95. package/build/dex/kyberswap-elastic/config.js.map +0 -1
  96. package/build/dex/kyberswap-elastic/constants.d.ts +0 -17
  97. package/build/dex/kyberswap-elastic/constants.js +0 -42
  98. package/build/dex/kyberswap-elastic/constants.js.map +0 -1
  99. package/build/dex/kyberswap-elastic/contract-math/FixedPoint96.d.ts +0 -4
  100. package/build/dex/kyberswap-elastic/contract-math/FixedPoint96.js +0 -9
  101. package/build/dex/kyberswap-elastic/contract-math/FixedPoint96.js.map +0 -1
  102. package/build/dex/kyberswap-elastic/contract-math/FullMath.d.ts +0 -5
  103. package/build/dex/kyberswap-elastic/contract-math/FullMath.js +0 -22
  104. package/build/dex/kyberswap-elastic/contract-math/FullMath.js.map +0 -1
  105. package/build/dex/kyberswap-elastic/contract-math/LiqDeltaMath.d.ts +0 -3
  106. package/build/dex/kyberswap-elastic/contract-math/LiqDeltaMath.js +0 -12
  107. package/build/dex/kyberswap-elastic/contract-math/LiqDeltaMath.js.map +0 -1
  108. package/build/dex/kyberswap-elastic/contract-math/LiquidityMath.d.ts +0 -3
  109. package/build/dex/kyberswap-elastic/contract-math/LiquidityMath.js +0 -22
  110. package/build/dex/kyberswap-elastic/contract-math/LiquidityMath.js.map +0 -1
  111. package/build/dex/kyberswap-elastic/contract-math/QtyDeltaMath.d.ts +0 -5
  112. package/build/dex/kyberswap-elastic/contract-math/QtyDeltaMath.js +0 -25
  113. package/build/dex/kyberswap-elastic/contract-math/QtyDeltaMath.js.map +0 -1
  114. package/build/dex/kyberswap-elastic/contract-math/QuadMath.d.ts +0 -4
  115. package/build/dex/kyberswap-elastic/contract-math/QuadMath.js +0 -27
  116. package/build/dex/kyberswap-elastic/contract-math/QuadMath.js.map +0 -1
  117. package/build/dex/kyberswap-elastic/contract-math/ReinvestmentMath.d.ts +0 -3
  118. package/build/dex/kyberswap-elastic/contract-math/ReinvestmentMath.js +0 -14
  119. package/build/dex/kyberswap-elastic/contract-math/ReinvestmentMath.js.map +0 -1
  120. package/build/dex/kyberswap-elastic/contract-math/SafeCast.d.ts +0 -8
  121. package/build/dex/kyberswap-elastic/contract-math/SafeCast.js +0 -30
  122. package/build/dex/kyberswap-elastic/contract-math/SafeCast.js.map +0 -1
  123. package/build/dex/kyberswap-elastic/contract-math/SqrtPriceMath.d.ts +0 -10
  124. package/build/dex/kyberswap-elastic/contract-math/SqrtPriceMath.js +0 -91
  125. package/build/dex/kyberswap-elastic/contract-math/SqrtPriceMath.js.map +0 -1
  126. package/build/dex/kyberswap-elastic/contract-math/SwapMath.d.ts +0 -13
  127. package/build/dex/kyberswap-elastic/contract-math/SwapMath.js +0 -188
  128. package/build/dex/kyberswap-elastic/contract-math/SwapMath.js.map +0 -1
  129. package/build/dex/kyberswap-elastic/contract-math/TickLinkedList.d.ts +0 -6
  130. package/build/dex/kyberswap-elastic/contract-math/TickLinkedList.js +0 -41
  131. package/build/dex/kyberswap-elastic/contract-math/TickLinkedList.js.map +0 -1
  132. package/build/dex/kyberswap-elastic/contract-math/TickMath.d.ts +0 -9
  133. package/build/dex/kyberswap-elastic/contract-math/TickMath.js +0 -165
  134. package/build/dex/kyberswap-elastic/contract-math/TickMath.js.map +0 -1
  135. package/build/dex/kyberswap-elastic/contract-math/UnsafeMath.d.ts +0 -3
  136. package/build/dex/kyberswap-elastic/contract-math/UnsafeMath.js +0 -10
  137. package/build/dex/kyberswap-elastic/contract-math/UnsafeMath.js.map +0 -1
  138. package/build/dex/kyberswap-elastic/contract-math/kyberswap-elastic-math.d.ts +0 -28
  139. package/build/dex/kyberswap-elastic/contract-math/kyberswap-elastic-math.js +0 -502
  140. package/build/dex/kyberswap-elastic/contract-math/kyberswap-elastic-math.js.map +0 -1
  141. package/build/dex/kyberswap-elastic/contract-math/utils.d.ts +0 -3
  142. package/build/dex/kyberswap-elastic/contract-math/utils.js +0 -16
  143. package/build/dex/kyberswap-elastic/contract-math/utils.js.map +0 -1
  144. package/build/dex/kyberswap-elastic/errors.d.ts +0 -2
  145. package/build/dex/kyberswap-elastic/errors.js +0 -6
  146. package/build/dex/kyberswap-elastic/errors.js.map +0 -1
  147. package/build/dex/kyberswap-elastic/kyberswap-elastic-pool.d.ts +0 -80
  148. package/build/dex/kyberswap-elastic/kyberswap-elastic-pool.js +0 -458
  149. package/build/dex/kyberswap-elastic/kyberswap-elastic-pool.js.map +0 -1
  150. package/build/dex/kyberswap-elastic/kyberswap-elastic.d.ts +0 -53
  151. package/build/dex/kyberswap-elastic/kyberswap-elastic.js +0 -610
  152. package/build/dex/kyberswap-elastic/kyberswap-elastic.js.map +0 -1
  153. package/build/dex/kyberswap-elastic/types.d.ts +0 -134
  154. package/build/dex/kyberswap-elastic/types.js +0 -9
  155. package/build/dex/kyberswap-elastic/types.js.map +0 -1
  156. package/build/dex/kyberswap-elastic/utils/decoders.d.ts +0 -9
  157. package/build/dex/kyberswap-elastic/utils/decoders.js +0 -78
  158. package/build/dex/kyberswap-elastic/utils/decoders.js.map +0 -1
  159. package/build/dex/my-test-dex/config.d.ts +0 -4
  160. package/build/dex/my-test-dex/config.js +0 -15
  161. package/build/dex/my-test-dex/config.js.map +0 -1
  162. package/build/dex/my-test-dex/my-test-dex-pool.d.ts +0 -39
  163. package/build/dex/my-test-dex/my-test-dex-pool.js +0 -64
  164. package/build/dex/my-test-dex/my-test-dex-pool.js.map +0 -1
  165. package/build/dex/my-test-dex/my-test-dex.d.ts +0 -37
  166. package/build/dex/my-test-dex/my-test-dex.js +0 -126
  167. package/build/dex/my-test-dex/my-test-dex.js.map +0 -1
  168. package/build/dex/my-test-dex/types.d.ts +0 -6
  169. package/build/dex/my-test-dex/types.js +0 -3
  170. package/build/dex/my-test-dex/types.js.map +0 -1
  171. package/build/dex/solidly/forks-override/fvm.d.ts +0 -20
  172. package/build/dex/solidly/forks-override/fvm.js +0 -42
  173. package/build/dex/solidly/forks-override/fvm.js.map +0 -1
  174. package/build/dex/wombat/config.d.ts +0 -5
  175. package/build/dex/wombat/config.js +0 -36
  176. package/build/dex/wombat/config.js.map +0 -1
  177. package/build/dex/wombat/types.d.ts +0 -33
  178. package/build/dex/wombat/types.js +0 -3
  179. package/build/dex/wombat/types.js.map +0 -1
  180. package/build/dex/wombat/utils.d.ts +0 -9
  181. package/build/dex/wombat/utils.js +0 -66
  182. package/build/dex/wombat/utils.js.map +0 -1
  183. package/build/dex/wombat/wombat-bmw.d.ts +0 -40
  184. package/build/dex/wombat/wombat-bmw.js +0 -145
  185. package/build/dex/wombat/wombat-bmw.js.map +0 -1
  186. package/build/dex/wombat/wombat-pool.d.ts +0 -22
  187. package/build/dex/wombat/wombat-pool.js +0 -161
  188. package/build/dex/wombat/wombat-pool.js.map +0 -1
  189. package/build/dex/wombat/wombat-quoter.d.ts +0 -16
  190. package/build/dex/wombat/wombat-quoter.js +0 -176
  191. package/build/dex/wombat/wombat-quoter.js.map +0 -1
  192. package/build/dex/wombat/wombat.d.ts +0 -55
  193. package/build/dex/wombat/wombat.js +0 -292
  194. package/build/dex/wombat/wombat.js.map +0 -1
@@ -1,226 +0,0 @@
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": "uint160[]",
24
- "name": "afterSqrtPList",
25
- "type": "uint160[]"
26
- },
27
- {
28
- "internalType": "uint32[]",
29
- "name": "initializedTicksCrossedList",
30
- "type": "uint32[]"
31
- },
32
- {
33
- "internalType": "uint256",
34
- "name": "gasEstimate",
35
- "type": "uint256"
36
- }
37
- ],
38
- "stateMutability": "nonpayable",
39
- "type": "function"
40
- },
41
- {
42
- "inputs": [
43
- {
44
- "components": [
45
- {
46
- "internalType": "address",
47
- "name": "tokenIn",
48
- "type": "address"
49
- },
50
- {
51
- "internalType": "address",
52
- "name": "tokenOut",
53
- "type": "address"
54
- },
55
- {
56
- "internalType": "uint256",
57
- "name": "amountIn",
58
- "type": "uint256"
59
- },
60
- {
61
- "internalType": "uint24",
62
- "name": "feeUnits",
63
- "type": "uint24"
64
- },
65
- {
66
- "internalType": "uint160",
67
- "name": "limitSqrtP",
68
- "type": "uint160"
69
- }
70
- ],
71
- "internalType": "struct IQuoterV2.QuoteExactInputSingleParams",
72
- "name": "params",
73
- "type": "tuple"
74
- }
75
- ],
76
- "name": "quoteExactInputSingle",
77
- "outputs": [
78
- {
79
- "components": [
80
- {
81
- "internalType": "uint256",
82
- "name": "usedAmount",
83
- "type": "uint256"
84
- },
85
- {
86
- "internalType": "uint256",
87
- "name": "returnedAmount",
88
- "type": "uint256"
89
- },
90
- {
91
- "internalType": "uint160",
92
- "name": "afterSqrtP",
93
- "type": "uint160"
94
- },
95
- {
96
- "internalType": "uint32",
97
- "name": "initializedTicksCrossed",
98
- "type": "uint32"
99
- },
100
- {
101
- "internalType": "uint256",
102
- "name": "gasEstimate",
103
- "type": "uint256"
104
- }
105
- ],
106
- "internalType": "struct IQuoterV2.QuoteOutput",
107
- "name": "",
108
- "type": "tuple"
109
- }
110
- ],
111
- "stateMutability": "nonpayable",
112
- "type": "function"
113
- },
114
- {
115
- "inputs": [
116
- {
117
- "internalType": "bytes",
118
- "name": "path",
119
- "type": "bytes"
120
- },
121
- {
122
- "internalType": "uint256",
123
- "name": "amountOut",
124
- "type": "uint256"
125
- }
126
- ],
127
- "name": "quoteExactOutput",
128
- "outputs": [
129
- {
130
- "internalType": "uint256",
131
- "name": "amountIn",
132
- "type": "uint256"
133
- },
134
- {
135
- "internalType": "uint160[]",
136
- "name": "afterSqrtPList",
137
- "type": "uint160[]"
138
- },
139
- {
140
- "internalType": "uint32[]",
141
- "name": "initializedTicksCrossedList",
142
- "type": "uint32[]"
143
- },
144
- {
145
- "internalType": "uint256",
146
- "name": "gasEstimate",
147
- "type": "uint256"
148
- }
149
- ],
150
- "stateMutability": "nonpayable",
151
- "type": "function"
152
- },
153
- {
154
- "inputs": [
155
- {
156
- "components": [
157
- {
158
- "internalType": "address",
159
- "name": "tokenIn",
160
- "type": "address"
161
- },
162
- {
163
- "internalType": "address",
164
- "name": "tokenOut",
165
- "type": "address"
166
- },
167
- {
168
- "internalType": "uint256",
169
- "name": "amount",
170
- "type": "uint256"
171
- },
172
- {
173
- "internalType": "uint24",
174
- "name": "feeUnits",
175
- "type": "uint24"
176
- },
177
- {
178
- "internalType": "uint160",
179
- "name": "limitSqrtP",
180
- "type": "uint160"
181
- }
182
- ],
183
- "internalType": "struct IQuoterV2.QuoteExactOutputSingleParams",
184
- "name": "params",
185
- "type": "tuple"
186
- }
187
- ],
188
- "name": "quoteExactOutputSingle",
189
- "outputs": [
190
- {
191
- "components": [
192
- {
193
- "internalType": "uint256",
194
- "name": "usedAmount",
195
- "type": "uint256"
196
- },
197
- {
198
- "internalType": "uint256",
199
- "name": "returnedAmount",
200
- "type": "uint256"
201
- },
202
- {
203
- "internalType": "uint160",
204
- "name": "afterSqrtP",
205
- "type": "uint160"
206
- },
207
- {
208
- "internalType": "uint32",
209
- "name": "initializedTicksCrossed",
210
- "type": "uint32"
211
- },
212
- {
213
- "internalType": "uint256",
214
- "name": "gasEstimate",
215
- "type": "uint256"
216
- }
217
- ],
218
- "internalType": "struct IQuoterV2.QuoteOutput",
219
- "name": "",
220
- "type": "tuple"
221
- }
222
- ],
223
- "stateMutability": "nonpayable",
224
- "type": "function"
225
- }
226
- ]
@@ -1,239 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "int256",
6
- "name": "deltaQty0",
7
- "type": "int256"
8
- },
9
- {
10
- "internalType": "int256",
11
- "name": "deltaQty1",
12
- "type": "int256"
13
- },
14
- {
15
- "internalType": "bytes",
16
- "name": "data",
17
- "type": "bytes"
18
- }
19
- ],
20
- "name": "swapCallback",
21
- "outputs": [],
22
- "stateMutability": "nonpayable",
23
- "type": "function"
24
- },
25
- {
26
- "inputs": [
27
- {
28
- "components": [
29
- {
30
- "internalType": "bytes",
31
- "name": "path",
32
- "type": "bytes"
33
- },
34
- {
35
- "internalType": "address",
36
- "name": "recipient",
37
- "type": "address"
38
- },
39
- {
40
- "internalType": "uint256",
41
- "name": "deadline",
42
- "type": "uint256"
43
- },
44
- {
45
- "internalType": "uint256",
46
- "name": "amountIn",
47
- "type": "uint256"
48
- },
49
- {
50
- "internalType": "uint256",
51
- "name": "minAmountOut",
52
- "type": "uint256"
53
- }
54
- ],
55
- "internalType": "struct IRouter.ExactInputParams",
56
- "name": "params",
57
- "type": "tuple"
58
- }
59
- ],
60
- "name": "swapExactInput",
61
- "outputs": [
62
- {
63
- "internalType": "uint256",
64
- "name": "amountOut",
65
- "type": "uint256"
66
- }
67
- ],
68
- "stateMutability": "payable",
69
- "type": "function"
70
- },
71
- {
72
- "inputs": [
73
- {
74
- "components": [
75
- {
76
- "internalType": "address",
77
- "name": "tokenIn",
78
- "type": "address"
79
- },
80
- {
81
- "internalType": "address",
82
- "name": "tokenOut",
83
- "type": "address"
84
- },
85
- {
86
- "internalType": "uint24",
87
- "name": "fee",
88
- "type": "uint24"
89
- },
90
- {
91
- "internalType": "address",
92
- "name": "recipient",
93
- "type": "address"
94
- },
95
- {
96
- "internalType": "uint256",
97
- "name": "deadline",
98
- "type": "uint256"
99
- },
100
- {
101
- "internalType": "uint256",
102
- "name": "amountIn",
103
- "type": "uint256"
104
- },
105
- {
106
- "internalType": "uint256",
107
- "name": "minAmountOut",
108
- "type": "uint256"
109
- },
110
- {
111
- "internalType": "uint160",
112
- "name": "limitSqrtP",
113
- "type": "uint160"
114
- }
115
- ],
116
- "internalType": "struct IRouter.ExactInputSingleParams",
117
- "name": "params",
118
- "type": "tuple"
119
- }
120
- ],
121
- "name": "swapExactInputSingle",
122
- "outputs": [
123
- {
124
- "internalType": "uint256",
125
- "name": "amountOut",
126
- "type": "uint256"
127
- }
128
- ],
129
- "stateMutability": "payable",
130
- "type": "function"
131
- },
132
- {
133
- "inputs": [
134
- {
135
- "components": [
136
- {
137
- "internalType": "bytes",
138
- "name": "path",
139
- "type": "bytes"
140
- },
141
- {
142
- "internalType": "address",
143
- "name": "recipient",
144
- "type": "address"
145
- },
146
- {
147
- "internalType": "uint256",
148
- "name": "deadline",
149
- "type": "uint256"
150
- },
151
- {
152
- "internalType": "uint256",
153
- "name": "amountOut",
154
- "type": "uint256"
155
- },
156
- {
157
- "internalType": "uint256",
158
- "name": "maxAmountIn",
159
- "type": "uint256"
160
- }
161
- ],
162
- "internalType": "struct IRouter.ExactOutputParams",
163
- "name": "params",
164
- "type": "tuple"
165
- }
166
- ],
167
- "name": "swapExactOutput",
168
- "outputs": [
169
- {
170
- "internalType": "uint256",
171
- "name": "amountIn",
172
- "type": "uint256"
173
- }
174
- ],
175
- "stateMutability": "payable",
176
- "type": "function"
177
- },
178
- {
179
- "inputs": [
180
- {
181
- "components": [
182
- {
183
- "internalType": "address",
184
- "name": "tokenIn",
185
- "type": "address"
186
- },
187
- {
188
- "internalType": "address",
189
- "name": "tokenOut",
190
- "type": "address"
191
- },
192
- {
193
- "internalType": "uint24",
194
- "name": "fee",
195
- "type": "uint24"
196
- },
197
- {
198
- "internalType": "address",
199
- "name": "recipient",
200
- "type": "address"
201
- },
202
- {
203
- "internalType": "uint256",
204
- "name": "deadline",
205
- "type": "uint256"
206
- },
207
- {
208
- "internalType": "uint256",
209
- "name": "amountOut",
210
- "type": "uint256"
211
- },
212
- {
213
- "internalType": "uint256",
214
- "name": "maxAmountIn",
215
- "type": "uint256"
216
- },
217
- {
218
- "internalType": "uint160",
219
- "name": "limitSqrtP",
220
- "type": "uint160"
221
- }
222
- ],
223
- "internalType": "struct IRouter.ExactOutputSingleParams",
224
- "name": "params",
225
- "type": "tuple"
226
- }
227
- ],
228
- "name": "swapExactOutputSingle",
229
- "outputs": [
230
- {
231
- "internalType": "uint256",
232
- "name": "amountIn",
233
- "type": "uint256"
234
- }
235
- ],
236
- "stateMutability": "payable",
237
- "type": "function"
238
- }
239
- ]
@@ -1,142 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "contract IPoolStorage",
6
- "name": "pool",
7
- "type": "address"
8
- }
9
- ],
10
- "name": "getAllTicks",
11
- "outputs": [
12
- {
13
- "internalType": "int24[]",
14
- "name": "allTicks",
15
- "type": "int24[]"
16
- }
17
- ],
18
- "stateMutability": "view",
19
- "type": "function"
20
- },
21
- {
22
- "inputs": [
23
- {
24
- "internalType": "contract IPoolStorage",
25
- "name": "pool",
26
- "type": "address"
27
- },
28
- {
29
- "internalType": "int24",
30
- "name": "tick",
31
- "type": "int24"
32
- }
33
- ],
34
- "name": "getNearestInitializedTicks",
35
- "outputs": [
36
- {
37
- "internalType": "int24",
38
- "name": "previous",
39
- "type": "int24"
40
- },
41
- {
42
- "internalType": "int24",
43
- "name": "next",
44
- "type": "int24"
45
- }
46
- ],
47
- "stateMutability": "view",
48
- "type": "function"
49
- },
50
- {
51
- "inputs": [
52
- {
53
- "internalType": "contract IPoolStorage",
54
- "name": "pool",
55
- "type": "address"
56
- },
57
- {
58
- "internalType": "int24",
59
- "name": "startTick",
60
- "type": "int24"
61
- },
62
- {
63
- "internalType": "uint32",
64
- "name": "length",
65
- "type": "uint32"
66
- }
67
- ],
68
- "name": "getTicksInRange",
69
- "outputs": [
70
- {
71
- "internalType": "int24[]",
72
- "name": "allTicks",
73
- "type": "int24[]"
74
- }
75
- ],
76
- "stateMutability": "view",
77
- "type": "function"
78
- },
79
- {
80
- "inputs": [
81
- {
82
- "internalType": "contract IBasePositionManager",
83
- "name": "posManager",
84
- "type": "address"
85
- },
86
- {
87
- "internalType": "contract IPoolStorage",
88
- "name": "pool",
89
- "type": "address"
90
- },
91
- {
92
- "internalType": "uint256",
93
- "name": "tokenId",
94
- "type": "uint256"
95
- }
96
- ],
97
- "name": "getTotalFeesOwedToPosition",
98
- "outputs": [
99
- {
100
- "internalType": "uint256",
101
- "name": "token0Owed",
102
- "type": "uint256"
103
- },
104
- {
105
- "internalType": "uint256",
106
- "name": "token1Owed",
107
- "type": "uint256"
108
- }
109
- ],
110
- "stateMutability": "view",
111
- "type": "function"
112
- },
113
- {
114
- "inputs": [
115
- {
116
- "internalType": "contract IBasePositionManager",
117
- "name": "posManager",
118
- "type": "address"
119
- },
120
- {
121
- "internalType": "contract IPoolStorage",
122
- "name": "pool",
123
- "type": "address"
124
- },
125
- {
126
- "internalType": "uint256",
127
- "name": "tokenId",
128
- "type": "uint256"
129
- }
130
- ],
131
- "name": "getTotalRTokensOwedToPosition",
132
- "outputs": [
133
- {
134
- "internalType": "uint256",
135
- "name": "rTokenOwed",
136
- "type": "uint256"
137
- }
138
- ],
139
- "stateMutability": "view",
140
- "type": "function"
141
- }
142
- ]