@paraswap/dex-lib 4.8.35 → 4.8.36-metric.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 (257) hide show
  1. package/build/abi/BProtocol.json +1155 -0
  2. package/build/abi/Jarvis.json +1172 -0
  3. package/build/abi/MStableAsset.json +1545 -0
  4. package/build/abi/OneInchLp.json +1304 -0
  5. package/build/abi/Onebit.json +736 -0
  6. package/build/abi/Shell.json +1294 -0
  7. package/build/abi/TraderJoeV2Router.json +50 -0
  8. package/build/abi/idle-dao/idle-cdo-factory.json +38 -0
  9. package/build/abi/idle-dao/idle-cdo.json +1245 -0
  10. package/build/abi/infusion/InfusionFactory.json +147 -0
  11. package/build/abi/infusion/InfusionPair.json +658 -0
  12. package/build/abi/infusion/InfusionRouter.json +442 -0
  13. package/build/abi/maker-psm/pot.json +322 -0
  14. package/build/abi/maker-psm/psm.json +243 -0
  15. package/build/abi/maker-psm/vat.json +363 -0
  16. package/build/abi/metric/MetricOmmSwapRouter.json +684 -0
  17. package/build/abi/nomiswap-v2/nomiswap-v2-pool.json +773 -0
  18. package/build/abi/quick-perps/fast-price-events.json +70 -0
  19. package/build/abi/quick-perps/fast-price-feed.json +741 -0
  20. package/build/abi/quick-perps/reader.json +313 -0
  21. package/build/abi/quick-perps/vault-price-feed.json +323 -0
  22. package/build/abi/quick-perps/vault.json +1953 -0
  23. package/build/abi/uniswap-v2/excalibur-pool.json +881 -0
  24. package/build/abi/uniswap-v2/mdex-factory.json +759 -0
  25. package/build/abi/wUSDM.json +757 -0
  26. package/build/abi/zrx.v2.json +1967 -0
  27. package/build/abi/zrx.v3.json +3454 -0
  28. package/build/abi/zrx.v4.json +2193 -0
  29. package/build/dex/OneInchLp.d.ts +24 -0
  30. package/build/dex/OneInchLp.js +43 -0
  31. package/build/dex/OneInchLp.js.map +1 -0
  32. package/build/dex/bProtocol/bProtocol.d.ts +15 -0
  33. package/build/dex/bProtocol/bProtocol.js +56 -0
  34. package/build/dex/bProtocol/bProtocol.js.map +1 -0
  35. package/build/dex/bProtocol/types.d.ts +11 -0
  36. package/build/dex/bProtocol/types.js +8 -0
  37. package/build/dex/bProtocol/types.js.map +1 -0
  38. package/build/dex/ekubo/pools/base-pool.d.ts +47 -0
  39. package/build/dex/ekubo/pools/base-pool.js +184 -0
  40. package/build/dex/ekubo/pools/base-pool.js.map +1 -0
  41. package/build/dex/ekubo/pools/iface.d.ts +46 -0
  42. package/build/dex/ekubo/pools/iface.js +75 -0
  43. package/build/dex/ekubo/pools/iface.js.map +1 -0
  44. package/build/dex/ekubo/pools/math/price.d.ts +7 -0
  45. package/build/dex/ekubo/pools/math/price.js +112 -0
  46. package/build/dex/ekubo/pools/math/price.js.map +1 -0
  47. package/build/dex/ekubo/pools/oracle-pool.d.ts +10 -0
  48. package/build/dex/ekubo/pools/oracle-pool.js +19 -0
  49. package/build/dex/ekubo/pools/oracle-pool.js.map +1 -0
  50. package/build/dex/ekubo/pools/pool-utils.d.ts +44 -0
  51. package/build/dex/ekubo/pools/pool-utils.js +240 -0
  52. package/build/dex/ekubo/pools/pool-utils.js.map +1 -0
  53. package/build/dex/idle-dao/config.d.ts +5 -0
  54. package/build/dex/idle-dao/config.js +24 -0
  55. package/build/dex/idle-dao/config.js.map +1 -0
  56. package/build/dex/idle-dao/idle-dao.d.ts +42 -0
  57. package/build/dex/idle-dao/idle-dao.js +279 -0
  58. package/build/dex/idle-dao/idle-dao.js.map +1 -0
  59. package/build/dex/idle-dao/token_list.d.ts +4 -0
  60. package/build/dex/idle-dao/token_list.js +289 -0
  61. package/build/dex/idle-dao/token_list.js.map +1 -0
  62. package/build/dex/idle-dao/tokens.d.ts +9 -0
  63. package/build/dex/idle-dao/tokens.js +68 -0
  64. package/build/dex/idle-dao/tokens.js.map +1 -0
  65. package/build/dex/idle-dao/types.d.ts +35 -0
  66. package/build/dex/idle-dao/types.js +11 -0
  67. package/build/dex/idle-dao/types.js.map +1 -0
  68. package/build/dex/idle-dao/utils.d.ts +8 -0
  69. package/build/dex/idle-dao/utils.js +149 -0
  70. package/build/dex/idle-dao/utils.js.map +1 -0
  71. package/build/dex/index.js +2 -0
  72. package/build/dex/index.js.map +1 -1
  73. package/build/dex/{pancakeswap-infinity → infusion}/config.d.ts +2 -2
  74. package/build/dex/infusion/config.js +20 -0
  75. package/build/dex/infusion/config.js.map +1 -0
  76. package/build/dex/infusion/infusion-stable-pool.d.ts +4 -0
  77. package/build/dex/infusion/infusion-stable-pool.js +74 -0
  78. package/build/dex/infusion/infusion-stable-pool.js.map +1 -0
  79. package/build/dex/infusion/infusion.d.ts +51 -0
  80. package/build/dex/infusion/infusion.js +500 -0
  81. package/build/dex/infusion/infusion.js.map +1 -0
  82. package/build/dex/infusion/types.d.ts +45 -0
  83. package/build/dex/infusion/types.js.map +1 -0
  84. package/build/dex/infusion/utils/isStablePair.d.ts +2 -0
  85. package/build/dex/infusion/utils/isStablePair.js +18 -0
  86. package/build/dex/infusion/utils/isStablePair.js.map +1 -0
  87. package/build/dex/jarvis.d.ts +56 -0
  88. package/build/dex/jarvis.js +163 -0
  89. package/build/dex/jarvis.js.map +1 -0
  90. package/build/dex/mStable.d.ts +44 -0
  91. package/build/dex/mStable.js +75 -0
  92. package/build/dex/mStable.js.map +1 -0
  93. package/build/dex/maker-psm/config.d.ts +11 -0
  94. package/build/dex/maker-psm/config.js +53 -0
  95. package/build/dex/maker-psm/config.js.map +1 -0
  96. package/build/dex/maker-psm/maker-psm.d.ts +103 -0
  97. package/build/dex/maker-psm/maker-psm.js +493 -0
  98. package/build/dex/maker-psm/maker-psm.js.map +1 -0
  99. package/build/dex/maker-psm/types.d.ts +39 -0
  100. package/build/dex/maker-psm/types.js +3 -0
  101. package/build/dex/maker-psm/types.js.map +1 -0
  102. package/build/dex/metric/config.d.ts +6 -0
  103. package/build/dex/metric/config.js +24 -0
  104. package/build/dex/metric/config.js.map +1 -0
  105. package/build/dex/metric/metric.d.ts +18 -0
  106. package/build/dex/metric/metric.js +59 -0
  107. package/build/dex/metric/metric.js.map +1 -0
  108. package/build/dex/metric/types.d.ts +5 -0
  109. package/build/dex/metric/types.js +3 -0
  110. package/build/dex/metric/types.js.map +1 -0
  111. package/build/dex/onebit/onebit.d.ts +16 -0
  112. package/build/dex/onebit/onebit.js +61 -0
  113. package/build/dex/onebit/onebit.js.map +1 -0
  114. package/build/dex/onebit/types.d.ts +14 -0
  115. package/build/dex/onebit/types.js +8 -0
  116. package/build/dex/onebit/types.js.map +1 -0
  117. package/build/dex/quick-perps/config.d.ts +11 -0
  118. package/build/dex/quick-perps/config.js +27 -0
  119. package/build/dex/quick-perps/config.js.map +1 -0
  120. package/build/dex/quick-perps/fast-price-feed.d.ts +26 -0
  121. package/build/dex/quick-perps/fast-price-feed.js +184 -0
  122. package/build/dex/quick-perps/fast-price-feed.js.map +1 -0
  123. package/build/dex/quick-perps/pool.d.ts +21 -0
  124. package/build/dex/quick-perps/pool.js +229 -0
  125. package/build/dex/quick-perps/pool.js.map +1 -0
  126. package/build/dex/quick-perps/quick-perps.d.ts +53 -0
  127. package/build/dex/quick-perps/quick-perps.js +247 -0
  128. package/build/dex/quick-perps/quick-perps.js.map +1 -0
  129. package/build/dex/quick-perps/types.d.ts +98 -0
  130. package/build/dex/quick-perps/types.js +3 -0
  131. package/build/dex/quick-perps/types.js.map +1 -0
  132. package/build/dex/quick-perps/usdq.d.ts +15 -0
  133. package/build/dex/quick-perps/usdq.js +62 -0
  134. package/build/dex/quick-perps/usdq.js.map +1 -0
  135. package/build/dex/quick-perps/vault-price-feed.d.ts +43 -0
  136. package/build/dex/quick-perps/vault-price-feed.js +203 -0
  137. package/build/dex/quick-perps/vault-price-feed.js.map +1 -0
  138. package/build/dex/quick-perps/vault-utils.d.ts +8 -0
  139. package/build/dex/quick-perps/vault-utils.js +42 -0
  140. package/build/dex/quick-perps/vault-utils.js.map +1 -0
  141. package/build/dex/quick-perps/vault.d.ts +46 -0
  142. package/build/dex/quick-perps/vault.js +182 -0
  143. package/build/dex/quick-perps/vault.js.map +1 -0
  144. package/build/dex/se-vlr/config.d.ts +3 -0
  145. package/build/dex/se-vlr/config.js +24 -0
  146. package/build/dex/se-vlr/config.js.map +1 -0
  147. package/build/dex/se-vlr/se-vlr-pool.d.ts +39 -0
  148. package/build/dex/se-vlr/se-vlr-pool.js +70 -0
  149. package/build/dex/se-vlr/se-vlr-pool.js.map +1 -0
  150. package/build/dex/se-vlr/se-vlr.d.ts +35 -0
  151. package/build/dex/se-vlr/se-vlr.js +131 -0
  152. package/build/dex/se-vlr/se-vlr.js.map +1 -0
  153. package/build/dex/se-vlr/types.d.ts +6 -0
  154. package/build/dex/se-vlr/types.js +3 -0
  155. package/build/dex/se-vlr/types.js.map +1 -0
  156. package/build/dex/shell.d.ts +25 -0
  157. package/build/dex/shell.js +41 -0
  158. package/build/dex/shell.js.map +1 -0
  159. package/build/dex/solidly/forks-override/aerodrome.d.ts +14 -0
  160. package/build/dex/solidly/forks-override/aerodrome.js +46 -0
  161. package/build/dex/solidly/forks-override/aerodrome.js.map +1 -0
  162. package/build/dex/solidly/forks-override/chronos.d.ts +23 -0
  163. package/build/dex/solidly/forks-override/chronos.js +141 -0
  164. package/build/dex/solidly/forks-override/chronos.js.map +1 -0
  165. package/build/dex/solidly/forks-override/usdfi.d.ts +8 -0
  166. package/build/dex/solidly/forks-override/usdfi.js +15 -0
  167. package/build/dex/solidly/forks-override/usdfi.js.map +1 -0
  168. package/build/dex/solidly/forks-override/velocimeter.d.ts +23 -0
  169. package/build/dex/solidly/forks-override/velocimeter.js +77 -0
  170. package/build/dex/solidly/forks-override/velocimeter.js.map +1 -0
  171. package/build/dex/trader-joe-v2.d.ts +40 -0
  172. package/build/dex/trader-joe-v2.js +74 -0
  173. package/build/dex/trader-joe-v2.js.map +1 -0
  174. package/build/dex/uniswap-v2/dfyn.d.ts +19 -0
  175. package/build/dex/uniswap-v2/dfyn.js +61 -0
  176. package/build/dex/uniswap-v2/dfyn.js.map +1 -0
  177. package/build/dex/uniswap-v2/excalibur.d.ts +24 -0
  178. package/build/dex/uniswap-v2/excalibur.js +47 -0
  179. package/build/dex/uniswap-v2/excalibur.js.map +1 -0
  180. package/build/dex/uniswap-v2/mdex.d.ts +24 -0
  181. package/build/dex/uniswap-v2/mdex.js +50 -0
  182. package/build/dex/uniswap-v2/mdex.js.map +1 -0
  183. package/build/dex/uniswap-v2/nomiswap-v2.d.ts +24 -0
  184. package/build/dex/uniswap-v2/nomiswap-v2.js +57 -0
  185. package/build/dex/uniswap-v2/nomiswap-v2.js.map +1 -0
  186. package/build/dex/uniswap-v3/scripts/bench-all-dexes.js +160 -0
  187. package/build/dex/uniswap-v3/scripts/bench-all-dexes.js.map +1 -0
  188. package/build/dex/uniswap-v3/uniswap-v3-new.d.ts +94 -0
  189. package/build/dex/uniswap-v3/uniswap-v3-new.js +923 -0
  190. package/build/dex/uniswap-v3/uniswap-v3-new.js.map +1 -0
  191. package/build/dex/uniswap-v4/contract-math/Position.d.ts +3 -0
  192. package/build/dex/uniswap-v4/contract-math/Position.js +10 -0
  193. package/build/dex/uniswap-v4/contract-math/Position.js.map +1 -0
  194. package/build/dex/usual-bond/config.d.ts +3 -0
  195. package/build/dex/usual-bond/config.js +13 -0
  196. package/build/dex/usual-bond/config.js.map +1 -0
  197. package/build/dex/usual-bond/types.d.ts +7 -0
  198. package/build/dex/usual-bond/types.js +3 -0
  199. package/build/dex/usual-bond/types.js.map +1 -0
  200. package/build/dex/usual-bond/usual-bond.d.ts +35 -0
  201. package/build/dex/usual-bond/usual-bond.js +176 -0
  202. package/build/dex/usual-bond/usual-bond.js.map +1 -0
  203. package/build/dex/wusdm/config.d.ts +3 -0
  204. package/build/dex/wusdm/config.js +43 -0
  205. package/build/dex/wusdm/config.js.map +1 -0
  206. package/build/dex/wusdm/constants.d.ts +2 -0
  207. package/build/dex/wusdm/constants.js +6 -0
  208. package/build/dex/wusdm/constants.js.map +1 -0
  209. package/build/dex/wusdm/types.d.ts +18 -0
  210. package/build/dex/wusdm/types.js +11 -0
  211. package/build/dex/wusdm/types.js.map +1 -0
  212. package/build/dex/wusdm/wusdm-pool.d.ts +21 -0
  213. package/build/dex/wusdm/wusdm-pool.js +74 -0
  214. package/build/dex/wusdm/wusdm-pool.js.map +1 -0
  215. package/build/dex/wusdm/wusdm.d.ts +46 -0
  216. package/build/dex/wusdm/wusdm.js +243 -0
  217. package/build/dex/wusdm/wusdm.js.map +1 -0
  218. package/build/dex/zerox/config.d.ts +2 -0
  219. package/build/dex/zerox/config.js +33 -0
  220. package/build/dex/zerox/config.js.map +1 -0
  221. package/build/dex/zerox/index.d.ts +22 -0
  222. package/build/dex/zerox/index.js +225 -0
  223. package/build/dex/zerox/index.js.map +1 -0
  224. package/build/dex/zerox/order.d.ts +88 -0
  225. package/build/dex/zerox/order.js +53 -0
  226. package/build/dex/zerox/order.js.map +1 -0
  227. package/build/dex/zerox/types.d.ts +73 -0
  228. package/build/dex/zerox/types.js +21 -0
  229. package/build/dex/zerox/types.js.map +1 -0
  230. package/package.json +1 -1
  231. package/build/abi/pancakeswap-infinity/cl-pool-manager.json +0 -80
  232. package/build/dex/fluid-dex/scripts/measure-calc-time.js +0 -178
  233. package/build/dex/fluid-dex/scripts/measure-calc-time.js.map +0 -1
  234. package/build/dex/pancakeswap-infinity/config.js +0 -14
  235. package/build/dex/pancakeswap-infinity/config.js.map +0 -1
  236. package/build/dex/pancakeswap-infinity/encoder.d.ts +0 -4
  237. package/build/dex/pancakeswap-infinity/encoder.js +0 -205
  238. package/build/dex/pancakeswap-infinity/encoder.js.map +0 -1
  239. package/build/dex/pancakeswap-infinity/pancakeswap-infinity.d.ts +0 -21
  240. package/build/dex/pancakeswap-infinity/pancakeswap-infinity.js +0 -102
  241. package/build/dex/pancakeswap-infinity/pancakeswap-infinity.js.map +0 -1
  242. package/build/dex/pancakeswap-infinity/subgraph.d.ts +0 -7
  243. package/build/dex/pancakeswap-infinity/subgraph.js +0 -64
  244. package/build/dex/pancakeswap-infinity/subgraph.js.map +0 -1
  245. package/build/dex/pancakeswap-infinity/types.d.ts +0 -31
  246. package/build/dex/pancakeswap-infinity/types.js.map +0 -1
  247. package/build/dex/uniswap-v4/api-go/compare-pricing.d.ts +0 -1
  248. package/build/dex/uniswap-v4/api-go/compare-pricing.js +0 -187
  249. package/build/dex/uniswap-v4/api-go/compare-pricing.js.map +0 -1
  250. package/build/dex/uniswap-v4/api-go/compare-states.d.ts +0 -1
  251. package/build/dex/uniswap-v4/api-go/compare-states.js +0 -149
  252. package/build/dex/uniswap-v4/api-go/compare-states.js.map +0 -1
  253. package/build/dex/uniswap-v4/api-go/fetch-pool-key.d.ts +0 -0
  254. package/build/dex/uniswap-v4/api-go/fetch-pool-key.js +0 -140
  255. package/build/dex/uniswap-v4/api-go/fetch-pool-key.js.map +0 -1
  256. /package/build/dex/{pancakeswap-infinity → infusion}/types.js +0 -0
  257. /package/build/dex/{fluid-dex/scripts/measure-calc-time.d.ts → uniswap-v3/scripts/bench-all-dexes.d.ts} +0 -0
@@ -0,0 +1,684 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "_weth",
7
+ "type": "address"
8
+ }
9
+ ],
10
+ "stateMutability": "nonpayable",
11
+ "type": "constructor"
12
+ },
13
+ {
14
+ "inputs": [
15
+ {
16
+ "internalType": "uint256",
17
+ "name": "amountIn",
18
+ "type": "uint256"
19
+ },
20
+ {
21
+ "internalType": "uint256",
22
+ "name": "maxAmountIn",
23
+ "type": "uint256"
24
+ }
25
+ ],
26
+ "name": "InputTooHigh",
27
+ "type": "error"
28
+ },
29
+ {
30
+ "inputs": [
31
+ {
32
+ "internalType": "uint256",
33
+ "name": "required",
34
+ "type": "uint256"
35
+ },
36
+ {
37
+ "internalType": "uint256",
38
+ "name": "available",
39
+ "type": "uint256"
40
+ }
41
+ ],
42
+ "name": "InsufficientNativeValue",
43
+ "type": "error"
44
+ },
45
+ {
46
+ "inputs": [
47
+ {
48
+ "internalType": "uint256",
49
+ "name": "amountOut",
50
+ "type": "uint256"
51
+ },
52
+ {
53
+ "internalType": "uint256",
54
+ "name": "minAmountOut",
55
+ "type": "uint256"
56
+ }
57
+ ],
58
+ "name": "InsufficientOutput",
59
+ "type": "error"
60
+ },
61
+ {
62
+ "inputs": [],
63
+ "name": "InvalidCallbackCaller",
64
+ "type": "error"
65
+ },
66
+ {
67
+ "inputs": [],
68
+ "name": "InvalidSwapDeltas",
69
+ "type": "error"
70
+ },
71
+ {
72
+ "inputs": [],
73
+ "name": "InvalidWETH",
74
+ "type": "error"
75
+ },
76
+ {
77
+ "inputs": [
78
+ {
79
+ "internalType": "address",
80
+ "name": "token",
81
+ "type": "address"
82
+ }
83
+ ],
84
+ "name": "NativeInputNotSupported",
85
+ "type": "error"
86
+ },
87
+ {
88
+ "inputs": [
89
+ {
90
+ "internalType": "address",
91
+ "name": "token",
92
+ "type": "address"
93
+ }
94
+ ],
95
+ "name": "NativeOutputNotSupported",
96
+ "type": "error"
97
+ },
98
+ {
99
+ "inputs": [],
100
+ "name": "NativeTransferFailed",
101
+ "type": "error"
102
+ },
103
+ {
104
+ "inputs": [],
105
+ "name": "NativeValueNotExpected",
106
+ "type": "error"
107
+ },
108
+ {
109
+ "inputs": [],
110
+ "name": "SwapInProgress",
111
+ "type": "error"
112
+ },
113
+ {
114
+ "inputs": [
115
+ {
116
+ "internalType": "uint256",
117
+ "name": "deadline",
118
+ "type": "uint256"
119
+ },
120
+ {
121
+ "internalType": "uint256",
122
+ "name": "timestamp",
123
+ "type": "uint256"
124
+ }
125
+ ],
126
+ "name": "TransactionExpired",
127
+ "type": "error"
128
+ },
129
+ {
130
+ "inputs": [
131
+ {
132
+ "internalType": "address",
133
+ "name": "target",
134
+ "type": "address"
135
+ },
136
+ {
137
+ "internalType": "bytes4",
138
+ "name": "selector",
139
+ "type": "bytes4"
140
+ },
141
+ {
142
+ "internalType": "bytes",
143
+ "name": "reason",
144
+ "type": "bytes"
145
+ },
146
+ {
147
+ "internalType": "bytes",
148
+ "name": "additionalInfo",
149
+ "type": "bytes"
150
+ }
151
+ ],
152
+ "name": "WrappedError",
153
+ "type": "error"
154
+ },
155
+ {
156
+ "inputs": [
157
+ {
158
+ "internalType": "address",
159
+ "name": "target",
160
+ "type": "address"
161
+ },
162
+ {
163
+ "internalType": "bytes4",
164
+ "name": "selector",
165
+ "type": "bytes4"
166
+ },
167
+ {
168
+ "internalType": "bytes",
169
+ "name": "reason",
170
+ "type": "bytes"
171
+ },
172
+ {
173
+ "internalType": "bytes",
174
+ "name": "details",
175
+ "type": "bytes"
176
+ }
177
+ ],
178
+ "name": "WrappedError",
179
+ "type": "error"
180
+ },
181
+ {
182
+ "inputs": [
183
+ {
184
+ "internalType": "int256",
185
+ "name": "amount0Delta",
186
+ "type": "int256"
187
+ },
188
+ {
189
+ "internalType": "int256",
190
+ "name": "amount1Delta",
191
+ "type": "int256"
192
+ },
193
+ {
194
+ "internalType": "bytes",
195
+ "name": "",
196
+ "type": "bytes"
197
+ }
198
+ ],
199
+ "name": "metricOmmSwapCallback",
200
+ "outputs": [],
201
+ "stateMutability": "nonpayable",
202
+ "type": "function"
203
+ },
204
+ {
205
+ "inputs": [
206
+ {
207
+ "internalType": "address",
208
+ "name": "pool",
209
+ "type": "address"
210
+ },
211
+ {
212
+ "internalType": "bool",
213
+ "name": "zeroForOne",
214
+ "type": "bool"
215
+ },
216
+ {
217
+ "internalType": "int128",
218
+ "name": "amountSpecified",
219
+ "type": "int128"
220
+ },
221
+ {
222
+ "internalType": "uint128",
223
+ "name": "priceLimitX64",
224
+ "type": "uint128"
225
+ },
226
+ {
227
+ "internalType": "uint128",
228
+ "name": "bidPriceX64",
229
+ "type": "uint128"
230
+ },
231
+ {
232
+ "internalType": "uint128",
233
+ "name": "askPriceX64",
234
+ "type": "uint128"
235
+ }
236
+ ],
237
+ "name": "quoteSwap",
238
+ "outputs": [
239
+ {
240
+ "internalType": "int128",
241
+ "name": "amount0Delta",
242
+ "type": "int128"
243
+ },
244
+ {
245
+ "internalType": "int128",
246
+ "name": "amount1Delta",
247
+ "type": "int128"
248
+ }
249
+ ],
250
+ "stateMutability": "nonpayable",
251
+ "type": "function"
252
+ },
253
+ {
254
+ "inputs": [
255
+ {
256
+ "internalType": "address",
257
+ "name": "pool",
258
+ "type": "address"
259
+ },
260
+ {
261
+ "internalType": "address",
262
+ "name": "recipient",
263
+ "type": "address"
264
+ },
265
+ {
266
+ "internalType": "bool",
267
+ "name": "zeroForOne",
268
+ "type": "bool"
269
+ },
270
+ {
271
+ "internalType": "int128",
272
+ "name": "amountSpecified",
273
+ "type": "int128"
274
+ },
275
+ {
276
+ "internalType": "uint128",
277
+ "name": "priceLimitX64",
278
+ "type": "uint128"
279
+ },
280
+ {
281
+ "internalType": "uint256",
282
+ "name": "deadline",
283
+ "type": "uint256"
284
+ },
285
+ {
286
+ "internalType": "bytes",
287
+ "name": "data",
288
+ "type": "bytes"
289
+ }
290
+ ],
291
+ "name": "swap",
292
+ "outputs": [
293
+ {
294
+ "internalType": "int128",
295
+ "name": "amount0Delta",
296
+ "type": "int128"
297
+ },
298
+ {
299
+ "internalType": "int128",
300
+ "name": "amount1Delta",
301
+ "type": "int128"
302
+ }
303
+ ],
304
+ "stateMutability": "payable",
305
+ "type": "function"
306
+ },
307
+ {
308
+ "inputs": [
309
+ {
310
+ "internalType": "address",
311
+ "name": "pool",
312
+ "type": "address"
313
+ },
314
+ {
315
+ "internalType": "address",
316
+ "name": "recipient",
317
+ "type": "address"
318
+ },
319
+ {
320
+ "internalType": "bool",
321
+ "name": "zeroForOne",
322
+ "type": "bool"
323
+ },
324
+ {
325
+ "internalType": "int128",
326
+ "name": "amountSpecified",
327
+ "type": "int128"
328
+ },
329
+ {
330
+ "internalType": "uint128",
331
+ "name": "priceLimitX64",
332
+ "type": "uint128"
333
+ },
334
+ {
335
+ "internalType": "uint256",
336
+ "name": "deadline",
337
+ "type": "uint256"
338
+ }
339
+ ],
340
+ "name": "swap",
341
+ "outputs": [
342
+ {
343
+ "internalType": "int128",
344
+ "name": "amount0Delta",
345
+ "type": "int128"
346
+ },
347
+ {
348
+ "internalType": "int128",
349
+ "name": "amount1Delta",
350
+ "type": "int128"
351
+ }
352
+ ],
353
+ "stateMutability": "payable",
354
+ "type": "function"
355
+ },
356
+ {
357
+ "inputs": [
358
+ {
359
+ "internalType": "address",
360
+ "name": "pool",
361
+ "type": "address"
362
+ },
363
+ {
364
+ "internalType": "address",
365
+ "name": "recipient",
366
+ "type": "address"
367
+ },
368
+ {
369
+ "internalType": "bool",
370
+ "name": "zeroForOne",
371
+ "type": "bool"
372
+ },
373
+ {
374
+ "internalType": "uint128",
375
+ "name": "amountIn",
376
+ "type": "uint128"
377
+ },
378
+ {
379
+ "internalType": "uint128",
380
+ "name": "priceLimitX64",
381
+ "type": "uint128"
382
+ },
383
+ {
384
+ "internalType": "uint256",
385
+ "name": "minAmountOut",
386
+ "type": "uint256"
387
+ },
388
+ {
389
+ "internalType": "uint256",
390
+ "name": "deadline",
391
+ "type": "uint256"
392
+ }
393
+ ],
394
+ "name": "swapExactInput",
395
+ "outputs": [
396
+ {
397
+ "internalType": "uint256",
398
+ "name": "amountOut",
399
+ "type": "uint256"
400
+ },
401
+ {
402
+ "internalType": "uint256",
403
+ "name": "amountInUsed",
404
+ "type": "uint256"
405
+ }
406
+ ],
407
+ "stateMutability": "payable",
408
+ "type": "function"
409
+ },
410
+ {
411
+ "inputs": [
412
+ {
413
+ "internalType": "address",
414
+ "name": "pool",
415
+ "type": "address"
416
+ },
417
+ {
418
+ "internalType": "address",
419
+ "name": "recipient",
420
+ "type": "address"
421
+ },
422
+ {
423
+ "internalType": "bool",
424
+ "name": "zeroForOne",
425
+ "type": "bool"
426
+ },
427
+ {
428
+ "internalType": "uint128",
429
+ "name": "amountIn",
430
+ "type": "uint128"
431
+ },
432
+ {
433
+ "internalType": "uint128",
434
+ "name": "priceLimitX64",
435
+ "type": "uint128"
436
+ },
437
+ {
438
+ "internalType": "uint256",
439
+ "name": "minAmountOut",
440
+ "type": "uint256"
441
+ },
442
+ {
443
+ "internalType": "uint256",
444
+ "name": "deadline",
445
+ "type": "uint256"
446
+ }
447
+ ],
448
+ "name": "swapExactInputNativeForTokens",
449
+ "outputs": [
450
+ {
451
+ "internalType": "uint256",
452
+ "name": "amountOut",
453
+ "type": "uint256"
454
+ },
455
+ {
456
+ "internalType": "uint256",
457
+ "name": "amountInUsed",
458
+ "type": "uint256"
459
+ }
460
+ ],
461
+ "stateMutability": "payable",
462
+ "type": "function"
463
+ },
464
+ {
465
+ "inputs": [
466
+ {
467
+ "internalType": "address",
468
+ "name": "pool",
469
+ "type": "address"
470
+ },
471
+ {
472
+ "internalType": "address",
473
+ "name": "recipient",
474
+ "type": "address"
475
+ },
476
+ {
477
+ "internalType": "bool",
478
+ "name": "zeroForOne",
479
+ "type": "bool"
480
+ },
481
+ {
482
+ "internalType": "uint128",
483
+ "name": "amountIn",
484
+ "type": "uint128"
485
+ },
486
+ {
487
+ "internalType": "uint128",
488
+ "name": "priceLimitX64",
489
+ "type": "uint128"
490
+ },
491
+ {
492
+ "internalType": "uint256",
493
+ "name": "minAmountOut",
494
+ "type": "uint256"
495
+ },
496
+ {
497
+ "internalType": "uint256",
498
+ "name": "deadline",
499
+ "type": "uint256"
500
+ }
501
+ ],
502
+ "name": "swapExactInputTokensForNative",
503
+ "outputs": [
504
+ {
505
+ "internalType": "uint256",
506
+ "name": "amountOut",
507
+ "type": "uint256"
508
+ },
509
+ {
510
+ "internalType": "uint256",
511
+ "name": "amountInUsed",
512
+ "type": "uint256"
513
+ }
514
+ ],
515
+ "stateMutability": "nonpayable",
516
+ "type": "function"
517
+ },
518
+ {
519
+ "inputs": [
520
+ {
521
+ "internalType": "address",
522
+ "name": "pool",
523
+ "type": "address"
524
+ },
525
+ {
526
+ "internalType": "address",
527
+ "name": "recipient",
528
+ "type": "address"
529
+ },
530
+ {
531
+ "internalType": "bool",
532
+ "name": "zeroForOne",
533
+ "type": "bool"
534
+ },
535
+ {
536
+ "internalType": "uint128",
537
+ "name": "amountOutDesired",
538
+ "type": "uint128"
539
+ },
540
+ {
541
+ "internalType": "uint128",
542
+ "name": "priceLimitX64",
543
+ "type": "uint128"
544
+ },
545
+ {
546
+ "internalType": "uint256",
547
+ "name": "maxAmountIn",
548
+ "type": "uint256"
549
+ },
550
+ {
551
+ "internalType": "uint256",
552
+ "name": "deadline",
553
+ "type": "uint256"
554
+ }
555
+ ],
556
+ "name": "swapExactOutput",
557
+ "outputs": [
558
+ {
559
+ "internalType": "uint256",
560
+ "name": "amountOut",
561
+ "type": "uint256"
562
+ },
563
+ {
564
+ "internalType": "uint256",
565
+ "name": "amountInUsed",
566
+ "type": "uint256"
567
+ }
568
+ ],
569
+ "stateMutability": "payable",
570
+ "type": "function"
571
+ },
572
+ {
573
+ "inputs": [
574
+ {
575
+ "internalType": "address",
576
+ "name": "pool",
577
+ "type": "address"
578
+ },
579
+ {
580
+ "internalType": "address",
581
+ "name": "recipient",
582
+ "type": "address"
583
+ },
584
+ {
585
+ "internalType": "bool",
586
+ "name": "zeroForOne",
587
+ "type": "bool"
588
+ },
589
+ {
590
+ "internalType": "uint128",
591
+ "name": "amountOutDesired",
592
+ "type": "uint128"
593
+ },
594
+ {
595
+ "internalType": "uint128",
596
+ "name": "priceLimitX64",
597
+ "type": "uint128"
598
+ },
599
+ {
600
+ "internalType": "uint256",
601
+ "name": "maxAmountIn",
602
+ "type": "uint256"
603
+ },
604
+ {
605
+ "internalType": "uint256",
606
+ "name": "deadline",
607
+ "type": "uint256"
608
+ }
609
+ ],
610
+ "name": "swapExactOutputNativeForTokens",
611
+ "outputs": [
612
+ {
613
+ "internalType": "uint256",
614
+ "name": "amountOut",
615
+ "type": "uint256"
616
+ },
617
+ {
618
+ "internalType": "uint256",
619
+ "name": "amountInUsed",
620
+ "type": "uint256"
621
+ }
622
+ ],
623
+ "stateMutability": "payable",
624
+ "type": "function"
625
+ },
626
+ {
627
+ "inputs": [
628
+ {
629
+ "internalType": "address",
630
+ "name": "pool",
631
+ "type": "address"
632
+ },
633
+ {
634
+ "internalType": "address",
635
+ "name": "recipient",
636
+ "type": "address"
637
+ },
638
+ {
639
+ "internalType": "bool",
640
+ "name": "zeroForOne",
641
+ "type": "bool"
642
+ },
643
+ {
644
+ "internalType": "uint128",
645
+ "name": "amountOutDesired",
646
+ "type": "uint128"
647
+ },
648
+ {
649
+ "internalType": "uint128",
650
+ "name": "priceLimitX64",
651
+ "type": "uint128"
652
+ },
653
+ {
654
+ "internalType": "uint256",
655
+ "name": "maxAmountIn",
656
+ "type": "uint256"
657
+ },
658
+ {
659
+ "internalType": "uint256",
660
+ "name": "deadline",
661
+ "type": "uint256"
662
+ }
663
+ ],
664
+ "name": "swapExactOutputTokensForNative",
665
+ "outputs": [
666
+ {
667
+ "internalType": "uint256",
668
+ "name": "amountOut",
669
+ "type": "uint256"
670
+ },
671
+ {
672
+ "internalType": "uint256",
673
+ "name": "amountInUsed",
674
+ "type": "uint256"
675
+ }
676
+ ],
677
+ "stateMutability": "nonpayable",
678
+ "type": "function"
679
+ },
680
+ {
681
+ "stateMutability": "payable",
682
+ "type": "receive"
683
+ }
684
+ ]