@paraswap/dex-lib 3.11.8 → 3.11.10-stader.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 (266) hide show
  1. package/.idea/aws.xml +17 -0
  2. package/.idea/codeStyles/Project.xml +19 -0
  3. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  4. package/.idea/misc.xml +6 -0
  5. package/.idea/modules.xml +8 -0
  6. package/.idea/paraswap-dex-lib.iml +9 -0
  7. package/.idea/prettier.xml +7 -0
  8. package/.idea/vcs.xml +6 -0
  9. package/build/abi/SSPM.json +829 -0
  10. package/build/abi/StaderOracle.json +2170 -0
  11. package/build/abi/{inception/inception-ineth-pool.json → cables/CablesMainnetRFQ.json} +511 -490
  12. package/build/abi/integral/factory.json +333 -0
  13. package/build/abi/integral/oracle.json +501 -0
  14. package/build/abi/integral/pool.json +1041 -0
  15. package/build/abi/{wombat/pool.json → integral/relayer.json} +720 -473
  16. package/build/dex/aave-v1/aave-v1.d.ts +1 -2
  17. package/build/dex/aave-v1/aave-v1.js +0 -23
  18. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  19. package/build/dex/cables/cables.d.ts +59 -0
  20. package/build/dex/cables/cables.js +614 -0
  21. package/build/dex/cables/cables.js.map +1 -0
  22. package/build/dex/cables/config.d.ts +4 -0
  23. package/build/dex/cables/config.js +15 -0
  24. package/build/dex/cables/config.js.map +1 -0
  25. package/build/dex/cables/constants.d.ts +20 -0
  26. package/build/dex/cables/constants.js +24 -0
  27. package/build/dex/cables/constants.js.map +1 -0
  28. package/build/dex/cables/rate-fetcher.d.ts +34 -0
  29. package/build/dex/cables/rate-fetcher.js +106 -0
  30. package/build/dex/cables/rate-fetcher.js.map +1 -0
  31. package/build/dex/cables/types.d.ts +113 -0
  32. package/build/dex/cables/types.js +19 -0
  33. package/build/dex/cables/types.js.map +1 -0
  34. package/build/dex/cables/validators.d.ts +5 -0
  35. package/build/dex/cables/validators.js +49 -0
  36. package/build/dex/cables/validators.js.map +1 -0
  37. package/build/dex/fluid-dex/fluid-dex-generate-pool.d.ts +49 -0
  38. package/build/dex/fluid-dex/fluid-dex-generate-pool.js +104 -0
  39. package/build/dex/fluid-dex/fluid-dex-generate-pool.js.map +1 -0
  40. package/build/dex/index.js +2 -0
  41. package/build/dex/index.js.map +1 -1
  42. package/build/dex/integral/config.d.ts +4 -0
  43. package/build/dex/integral/config.js +20 -0
  44. package/build/dex/integral/config.js.map +1 -0
  45. package/build/dex/integral/context.d.ts +40 -0
  46. package/build/dex/integral/context.js +158 -0
  47. package/build/dex/integral/context.js.map +1 -0
  48. package/build/dex/integral/integral-factory.d.ts +24 -0
  49. package/build/dex/integral/integral-factory.js +95 -0
  50. package/build/dex/integral/integral-factory.js.map +1 -0
  51. package/build/dex/integral/integral-pool.d.ts +50 -0
  52. package/build/dex/integral/integral-pool.js +149 -0
  53. package/build/dex/integral/integral-pool.js.map +1 -0
  54. package/build/dex/integral/integral-pricing.d.ts +18 -0
  55. package/build/dex/integral/integral-pricing.js +114 -0
  56. package/build/dex/integral/integral-pricing.js.map +1 -0
  57. package/build/dex/integral/integral-relayer.d.ts +42 -0
  58. package/build/dex/integral/integral-relayer.js +192 -0
  59. package/build/dex/integral/integral-relayer.js.map +1 -0
  60. package/build/dex/integral/integral-token.d.ts +27 -0
  61. package/build/dex/integral/integral-token.js +59 -0
  62. package/build/dex/integral/integral-token.js.map +1 -0
  63. package/build/dex/integral/integral.d.ts +41 -0
  64. package/build/dex/integral/integral.js +376 -0
  65. package/build/dex/integral/integral.js.map +1 -0
  66. package/build/dex/integral/types.d.ts +85 -0
  67. package/build/dex/integral/types.js +9 -0
  68. package/build/dex/integral/types.js.map +1 -0
  69. package/build/dex/integral/utils-e2e.d.ts +9 -0
  70. package/build/dex/integral/utils-e2e.js +131 -0
  71. package/build/dex/integral/utils-e2e.js.map +1 -0
  72. package/build/dex/integral/utils.d.ts +17 -0
  73. package/build/dex/integral/utils.js +94 -0
  74. package/build/dex/integral/utils.js.map +1 -0
  75. package/build/dex/jarvis.d.ts +1 -2
  76. package/build/dex/jarvis.js +0 -58
  77. package/build/dex/jarvis.js.map +1 -1
  78. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.d.ts +0 -1
  79. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.js +0 -20
  80. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.js.map +1 -1
  81. package/build/dex/pancakeswap-v3/pancakeswap-v3.js +0 -4
  82. package/build/dex/pancakeswap-v3/pancakeswap-v3.js.map +1 -1
  83. package/build/dex/platypus/platypus.d.ts +1 -2
  84. package/build/dex/platypus/platypus.js +0 -45
  85. package/build/dex/platypus/platypus.js.map +1 -1
  86. package/build/dex/stable-pool.js +8 -1
  87. package/build/dex/stable-pool.js.map +1 -1
  88. package/build/dex/{usual-m-usd0 → stader}/config.d.ts +1 -1
  89. package/build/dex/stader/config.js +14 -0
  90. package/build/dex/stader/config.js.map +1 -0
  91. package/build/dex/stader/stader-pool.d.ts +18 -0
  92. package/build/dex/stader/stader-pool.js +47 -0
  93. package/build/dex/stader/stader-pool.js.map +1 -0
  94. package/build/dex/stader/stader.d.ts +42 -0
  95. package/build/dex/stader/stader.js +171 -0
  96. package/build/dex/stader/stader.js.map +1 -0
  97. package/build/dex/stader/types.d.ts +13 -0
  98. package/build/dex/stader/types.js +8 -0
  99. package/build/dex/stader/types.js.map +1 -0
  100. package/build/dex/stader/utils.d.ts +4 -0
  101. package/build/dex/stader/utils.js +24 -0
  102. package/build/dex/stader/utils.js.map +1 -0
  103. package/build/dex/swaap-v1/swaap-v1.d.ts +1 -2
  104. package/build/dex/swaap-v1/swaap-v1.js +0 -14
  105. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  106. package/build/dex/trader-joe-v2.1/optimizer.d.ts +2 -0
  107. package/build/dex/{balancer-v3 → trader-joe-v2.1}/optimizer.js +16 -17
  108. package/build/dex/trader-joe-v2.1/optimizer.js.map +1 -0
  109. package/build/dex/uniswap-v3/uniswap-v3-pool.d.ts +0 -1
  110. package/build/dex/uniswap-v3/uniswap-v3-pool.js +0 -20
  111. package/build/dex/uniswap-v3/uniswap-v3-pool.js.map +1 -1
  112. package/build/dex/uniswap-v3/uniswap-v3.js +0 -5
  113. package/build/dex/uniswap-v3/uniswap-v3.js.map +1 -1
  114. package/build/dex/zerox/index.d.ts +26 -4
  115. package/build/dex/zerox/index.js +42 -50
  116. package/build/dex/zerox/index.js.map +1 -1
  117. package/build/dex/zerox/types.d.ts +0 -29
  118. package/build/dex/zerox/types.js +1 -8
  119. package/build/dex/zerox/types.js.map +1 -1
  120. package/package.json +1 -1
  121. package/src/abi/SSPM.json +829 -0
  122. package/src/abi/StaderOracle.json +2170 -0
  123. package/src/dex/index.ts +2 -0
  124. package/src/dex/pancakeswap-v3/pancakeswap-v3-pool.ts +0 -30
  125. package/src/dex/pancakeswap-v3/pancakeswap-v3.ts +0 -10
  126. package/src/dex/stader/config.ts +13 -0
  127. package/src/dex/stader/stader-e2e.test.ts +74 -0
  128. package/src/dex/stader/stader-events.test.ts +64 -0
  129. package/src/dex/stader/stader-integration.test.ts +240 -0
  130. package/src/dex/stader/stader-pool.ts +68 -0
  131. package/src/dex/stader/stader.ts +240 -0
  132. package/src/dex/stader/types.ts +16 -0
  133. package/src/dex/stader/utils.ts +34 -0
  134. package/src/dex/uniswap-v3/uniswap-v3-pool.ts +0 -30
  135. package/src/dex/uniswap-v3/uniswap-v3.ts +0 -11
  136. package/tests/constants-e2e.ts +5 -0
  137. package/.vscode/launch.json +0 -53
  138. package/.vscode/settings.json +0 -2
  139. package/.vscode/tasks.json +0 -15
  140. package/build/abi/balancer-v3/batch-router.json +0 -989
  141. package/build/abi/balancer-v3/router.json +0 -1792
  142. package/build/abi/balancer-v3/vault-extension.json +0 -2834
  143. package/build/abi/inception/inception-ratio-feed.json +0 -329
  144. package/build/abi/inception/inception-vault.json +0 -991
  145. package/build/abi/permit2.json +0 -581
  146. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +0 -52
  147. package/build/abi/usual-m-smart-m/usualM.abi.json +0 -483
  148. package/build/abi/usual-m-usd0/usualCollateralDao.abi.json +0 -681
  149. package/build/dex/aave-v2/tokens-avalanche.json +0 -44
  150. package/build/dex/aave-v2/tokens-mainnet.json +0 -188
  151. package/build/dex/aave-v2/tokens-polygon.json +0 -44
  152. package/build/dex/balancer-v3/abi/balancerBatchRouter.d.ts +0 -729
  153. package/build/dex/balancer-v3/abi/balancerBatchRouter.js +0 -732
  154. package/build/dex/balancer-v3/abi/balancerBatchRouter.js.map +0 -1
  155. package/build/dex/balancer-v3/abi/balancerRouter.d.ts +0 -1406
  156. package/build/dex/balancer-v3/abi/balancerRouter.js +0 -1175
  157. package/build/dex/balancer-v3/abi/balancerRouter.js.map +0 -1
  158. package/build/dex/balancer-v3/abi/vaultExtension.V3.d.ts +0 -2081
  159. package/build/dex/balancer-v3/abi/vaultExtension.V3.js +0 -1851
  160. package/build/dex/balancer-v3/abi/vaultExtension.V3.js.map +0 -1
  161. package/build/dex/balancer-v3/balancer-v3-pool.d.ts +0 -80
  162. package/build/dex/balancer-v3/balancer-v3-pool.js +0 -461
  163. package/build/dex/balancer-v3/balancer-v3-pool.js.map +0 -1
  164. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.d.ts +0 -34
  165. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js +0 -406
  166. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js.map +0 -1
  167. package/build/dex/balancer-v3/balancer-v3.d.ts +0 -57
  168. package/build/dex/balancer-v3/balancer-v3.js +0 -383
  169. package/build/dex/balancer-v3/balancer-v3.js.map +0 -1
  170. package/build/dex/balancer-v3/config.d.ts +0 -8
  171. package/build/dex/balancer-v3/config.js +0 -24
  172. package/build/dex/balancer-v3/config.js.map +0 -1
  173. package/build/dex/balancer-v3/getGasCost.d.ts +0 -2
  174. package/build/dex/balancer-v3/getGasCost.js +0 -41
  175. package/build/dex/balancer-v3/getGasCost.js.map +0 -1
  176. package/build/dex/balancer-v3/getOnChainState.d.ts +0 -10
  177. package/build/dex/balancer-v3/getOnChainState.js +0 -164
  178. package/build/dex/balancer-v3/getOnChainState.js.map +0 -1
  179. package/build/dex/balancer-v3/getPoolsApi.d.ts +0 -2
  180. package/build/dex/balancer-v3/getPoolsApi.js +0 -81
  181. package/build/dex/balancer-v3/getPoolsApi.js.map +0 -1
  182. package/build/dex/balancer-v3/getTopPoolsApi.d.ts +0 -13
  183. package/build/dex/balancer-v3/getTopPoolsApi.js +0 -62
  184. package/build/dex/balancer-v3/getTopPoolsApi.js.map +0 -1
  185. package/build/dex/balancer-v3/optimizer.d.ts +0 -2
  186. package/build/dex/balancer-v3/optimizer.js.map +0 -1
  187. package/build/dex/balancer-v3/stablePool.d.ts +0 -7
  188. package/build/dex/balancer-v3/stablePool.js +0 -73
  189. package/build/dex/balancer-v3/stablePool.js.map +0 -1
  190. package/build/dex/balancer-v3/types.d.ts +0 -62
  191. package/build/dex/balancer-v3/types.js +0 -3
  192. package/build/dex/balancer-v3/types.js.map +0 -1
  193. package/build/dex/balancer-v3/weightedPool.d.ts +0 -1
  194. package/build/dex/balancer-v3/weightedPool.js +0 -6
  195. package/build/dex/balancer-v3/weightedPool.js.map +0 -1
  196. package/build/dex/inception/config.d.ts +0 -4
  197. package/build/dex/inception/config.js +0 -109
  198. package/build/dex/inception/config.js.map +0 -1
  199. package/build/dex/inception/inception-event-pool.d.ts +0 -16
  200. package/build/dex/inception/inception-event-pool.js +0 -49
  201. package/build/dex/inception/inception-event-pool.js.map +0 -1
  202. package/build/dex/inception/inception.d.ts +0 -43
  203. package/build/dex/inception/inception.js +0 -180
  204. package/build/dex/inception/inception.js.map +0 -1
  205. package/build/dex/inception/tokens.d.ts +0 -9
  206. package/build/dex/inception/tokens.js +0 -28
  207. package/build/dex/inception/tokens.js.map +0 -1
  208. package/build/dex/inception/types.d.ts +0 -22
  209. package/build/dex/inception/types.js +0 -3
  210. package/build/dex/inception/types.js.map +0 -1
  211. package/build/dex/inception/utils.d.ts +0 -7
  212. package/build/dex/inception/utils.js +0 -58
  213. package/build/dex/inception/utils.js.map +0 -1
  214. package/build/dex/maker-psm/scripts/gem.abi.json +0 -136
  215. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  216. package/build/dex/maker-psm/scripts/validate-state.js +0 -185
  217. package/build/dex/maker-psm/scripts/validate-state.js.map +0 -1
  218. package/build/dex/maker-psm/scripts/vat.abi.json +0 -243
  219. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +0 -1
  220. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +0 -53
  221. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +0 -1
  222. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +0 -17
  223. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +0 -64
  224. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +0 -1
  225. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +0 -17
  226. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +0 -79
  227. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +0 -1
  228. package/build/dex/uniswap-v3/uniswap-v3-pricing.d.ts +0 -4
  229. package/build/dex/uniswap-v3/uniswap-v3-pricing.js +0 -43
  230. package/build/dex/uniswap-v3/uniswap-v3-pricing.js.map +0 -1
  231. package/build/dex/uniswap-v3/uniswap-v3-worker.d.ts +0 -1
  232. package/build/dex/uniswap-v3/uniswap-v3-worker.js +0 -10
  233. package/build/dex/uniswap-v3/uniswap-v3-worker.js.map +0 -1
  234. package/build/dex/usual/types.d.ts +0 -13
  235. package/build/dex/usual/types.js +0 -3
  236. package/build/dex/usual/types.js.map +0 -1
  237. package/build/dex/usual/usual-bond.d.ts +0 -18
  238. package/build/dex/usual/usual-bond.js +0 -52
  239. package/build/dex/usual/usual-bond.js.map +0 -1
  240. package/build/dex/usual/usual-m-smart-m.d.ts +0 -17
  241. package/build/dex/usual/usual-m-smart-m.js +0 -50
  242. package/build/dex/usual/usual-m-smart-m.js.map +0 -1
  243. package/build/dex/usual/usual-m-usd0.d.ts +0 -17
  244. package/build/dex/usual/usual-m-usd0.js +0 -51
  245. package/build/dex/usual/usual-m-usd0.js.map +0 -1
  246. package/build/dex/usual/usual.d.ts +0 -27
  247. package/build/dex/usual/usual.js +0 -125
  248. package/build/dex/usual/usual.js.map +0 -1
  249. package/build/dex/usual-m-smart-m/config.d.ts +0 -3
  250. package/build/dex/usual-m-smart-m/config.js +0 -13
  251. package/build/dex/usual-m-smart-m/config.js.map +0 -1
  252. package/build/dex/usual-m-smart-m/types.d.ts +0 -7
  253. package/build/dex/usual-m-smart-m/types.js +0 -3
  254. package/build/dex/usual-m-smart-m/types.js.map +0 -1
  255. package/build/dex/usual-m-smart-m/usual-m-smart-m.d.ts +0 -35
  256. package/build/dex/usual-m-smart-m/usual-m-smart-m.js +0 -161
  257. package/build/dex/usual-m-smart-m/usual-m-smart-m.js.map +0 -1
  258. package/build/dex/usual-m-usd0/config.js +0 -14
  259. package/build/dex/usual-m-usd0/config.js.map +0 -1
  260. package/build/dex/usual-m-usd0/types.d.ts +0 -8
  261. package/build/dex/usual-m-usd0/types.js +0 -3
  262. package/build/dex/usual-m-usd0/types.js.map +0 -1
  263. package/build/dex/usual-m-usd0/usual-m-usd0.d.ts +0 -35
  264. package/build/dex/usual-m-usd0/usual-m-usd0.js +0 -159
  265. package/build/dex/usual-m-usd0/usual-m-usd0.js.map +0 -1
  266. package/src/dex/balancer-v3/balancer-v3-sepolia-pools.ts +0 -404
@@ -1,1792 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "contract IVault",
6
- "name": "vault",
7
- "type": "address"
8
- },
9
- {
10
- "internalType": "contract IWETH",
11
- "name": "weth",
12
- "type": "address"
13
- },
14
- {
15
- "internalType": "contract IPermit2",
16
- "name": "permit2",
17
- "type": "address"
18
- },
19
- {
20
- "internalType": "string",
21
- "name": "version",
22
- "type": "string"
23
- }
24
- ],
25
- "stateMutability": "nonpayable",
26
- "type": "constructor"
27
- },
28
- {
29
- "inputs": [
30
- {
31
- "internalType": "address",
32
- "name": "target",
33
- "type": "address"
34
- }
35
- ],
36
- "name": "AddressEmptyCode",
37
- "type": "error"
38
- },
39
- {
40
- "inputs": [
41
- {
42
- "internalType": "address",
43
- "name": "account",
44
- "type": "address"
45
- }
46
- ],
47
- "name": "AddressInsufficientBalance",
48
- "type": "error"
49
- },
50
- {
51
- "inputs": [],
52
- "name": "ErrorSelectorNotFound",
53
- "type": "error"
54
- },
55
- {
56
- "inputs": [],
57
- "name": "EthTransfer",
58
- "type": "error"
59
- },
60
- {
61
- "inputs": [],
62
- "name": "FailedInnerCall",
63
- "type": "error"
64
- },
65
- {
66
- "inputs": [],
67
- "name": "InputLengthMismatch",
68
- "type": "error"
69
- },
70
- {
71
- "inputs": [],
72
- "name": "InsufficientEth",
73
- "type": "error"
74
- },
75
- {
76
- "inputs": [],
77
- "name": "ReentrancyGuardReentrantCall",
78
- "type": "error"
79
- },
80
- {
81
- "inputs": [
82
- {
83
- "internalType": "uint8",
84
- "name": "bits",
85
- "type": "uint8"
86
- },
87
- {
88
- "internalType": "uint256",
89
- "name": "value",
90
- "type": "uint256"
91
- }
92
- ],
93
- "name": "SafeCastOverflowedUintDowncast",
94
- "type": "error"
95
- },
96
- {
97
- "inputs": [
98
- {
99
- "internalType": "address",
100
- "name": "token",
101
- "type": "address"
102
- }
103
- ],
104
- "name": "SafeERC20FailedOperation",
105
- "type": "error"
106
- },
107
- {
108
- "inputs": [
109
- {
110
- "internalType": "address",
111
- "name": "sender",
112
- "type": "address"
113
- }
114
- ],
115
- "name": "SenderIsNotVault",
116
- "type": "error"
117
- },
118
- {
119
- "inputs": [],
120
- "name": "SwapDeadline",
121
- "type": "error"
122
- },
123
- {
124
- "inputs": [
125
- {
126
- "internalType": "address",
127
- "name": "pool",
128
- "type": "address"
129
- },
130
- {
131
- "internalType": "uint256[]",
132
- "name": "maxAmountsIn",
133
- "type": "uint256[]"
134
- },
135
- {
136
- "internalType": "uint256",
137
- "name": "minBptAmountOut",
138
- "type": "uint256"
139
- },
140
- {
141
- "internalType": "bool",
142
- "name": "wethIsEth",
143
- "type": "bool"
144
- },
145
- {
146
- "internalType": "bytes",
147
- "name": "userData",
148
- "type": "bytes"
149
- }
150
- ],
151
- "name": "addLiquidityCustom",
152
- "outputs": [
153
- {
154
- "internalType": "uint256[]",
155
- "name": "amountsIn",
156
- "type": "uint256[]"
157
- },
158
- {
159
- "internalType": "uint256",
160
- "name": "bptAmountOut",
161
- "type": "uint256"
162
- },
163
- {
164
- "internalType": "bytes",
165
- "name": "returnData",
166
- "type": "bytes"
167
- }
168
- ],
169
- "stateMutability": "payable",
170
- "type": "function"
171
- },
172
- {
173
- "inputs": [
174
- {
175
- "components": [
176
- {
177
- "internalType": "address",
178
- "name": "sender",
179
- "type": "address"
180
- },
181
- {
182
- "internalType": "address",
183
- "name": "pool",
184
- "type": "address"
185
- },
186
- {
187
- "internalType": "uint256[]",
188
- "name": "maxAmountsIn",
189
- "type": "uint256[]"
190
- },
191
- {
192
- "internalType": "uint256",
193
- "name": "minBptAmountOut",
194
- "type": "uint256"
195
- },
196
- {
197
- "internalType": "enum AddLiquidityKind",
198
- "name": "kind",
199
- "type": "uint8"
200
- },
201
- {
202
- "internalType": "bool",
203
- "name": "wethIsEth",
204
- "type": "bool"
205
- },
206
- {
207
- "internalType": "bytes",
208
- "name": "userData",
209
- "type": "bytes"
210
- }
211
- ],
212
- "internalType": "struct IRouterCommon.AddLiquidityHookParams",
213
- "name": "params",
214
- "type": "tuple"
215
- }
216
- ],
217
- "name": "addLiquidityHook",
218
- "outputs": [
219
- {
220
- "internalType": "uint256[]",
221
- "name": "amountsIn",
222
- "type": "uint256[]"
223
- },
224
- {
225
- "internalType": "uint256",
226
- "name": "bptAmountOut",
227
- "type": "uint256"
228
- },
229
- {
230
- "internalType": "bytes",
231
- "name": "returnData",
232
- "type": "bytes"
233
- }
234
- ],
235
- "stateMutability": "nonpayable",
236
- "type": "function"
237
- },
238
- {
239
- "inputs": [
240
- {
241
- "internalType": "address",
242
- "name": "pool",
243
- "type": "address"
244
- },
245
- {
246
- "internalType": "uint256[]",
247
- "name": "maxAmountsIn",
248
- "type": "uint256[]"
249
- },
250
- {
251
- "internalType": "uint256",
252
- "name": "exactBptAmountOut",
253
- "type": "uint256"
254
- },
255
- {
256
- "internalType": "bool",
257
- "name": "wethIsEth",
258
- "type": "bool"
259
- },
260
- {
261
- "internalType": "bytes",
262
- "name": "userData",
263
- "type": "bytes"
264
- }
265
- ],
266
- "name": "addLiquidityProportional",
267
- "outputs": [
268
- {
269
- "internalType": "uint256[]",
270
- "name": "amountsIn",
271
- "type": "uint256[]"
272
- }
273
- ],
274
- "stateMutability": "payable",
275
- "type": "function"
276
- },
277
- {
278
- "inputs": [
279
- {
280
- "internalType": "address",
281
- "name": "pool",
282
- "type": "address"
283
- },
284
- {
285
- "internalType": "contract IERC20",
286
- "name": "tokenIn",
287
- "type": "address"
288
- },
289
- {
290
- "internalType": "uint256",
291
- "name": "maxAmountIn",
292
- "type": "uint256"
293
- },
294
- {
295
- "internalType": "uint256",
296
- "name": "exactBptAmountOut",
297
- "type": "uint256"
298
- },
299
- {
300
- "internalType": "bool",
301
- "name": "wethIsEth",
302
- "type": "bool"
303
- },
304
- {
305
- "internalType": "bytes",
306
- "name": "userData",
307
- "type": "bytes"
308
- }
309
- ],
310
- "name": "addLiquiditySingleTokenExactOut",
311
- "outputs": [
312
- {
313
- "internalType": "uint256",
314
- "name": "amountIn",
315
- "type": "uint256"
316
- }
317
- ],
318
- "stateMutability": "payable",
319
- "type": "function"
320
- },
321
- {
322
- "inputs": [
323
- {
324
- "internalType": "address",
325
- "name": "pool",
326
- "type": "address"
327
- },
328
- {
329
- "internalType": "uint256[]",
330
- "name": "exactAmountsIn",
331
- "type": "uint256[]"
332
- },
333
- {
334
- "internalType": "uint256",
335
- "name": "minBptAmountOut",
336
- "type": "uint256"
337
- },
338
- {
339
- "internalType": "bool",
340
- "name": "wethIsEth",
341
- "type": "bool"
342
- },
343
- {
344
- "internalType": "bytes",
345
- "name": "userData",
346
- "type": "bytes"
347
- }
348
- ],
349
- "name": "addLiquidityUnbalanced",
350
- "outputs": [
351
- {
352
- "internalType": "uint256",
353
- "name": "bptAmountOut",
354
- "type": "uint256"
355
- }
356
- ],
357
- "stateMutability": "payable",
358
- "type": "function"
359
- },
360
- {
361
- "inputs": [
362
- {
363
- "internalType": "address",
364
- "name": "pool",
365
- "type": "address"
366
- },
367
- {
368
- "internalType": "uint256[]",
369
- "name": "amountsIn",
370
- "type": "uint256[]"
371
- },
372
- {
373
- "internalType": "bool",
374
- "name": "wethIsEth",
375
- "type": "bool"
376
- },
377
- {
378
- "internalType": "bytes",
379
- "name": "userData",
380
- "type": "bytes"
381
- }
382
- ],
383
- "name": "donate",
384
- "outputs": [],
385
- "stateMutability": "payable",
386
- "type": "function"
387
- },
388
- {
389
- "inputs": [],
390
- "name": "getSender",
391
- "outputs": [
392
- {
393
- "internalType": "address",
394
- "name": "",
395
- "type": "address"
396
- }
397
- ],
398
- "stateMutability": "view",
399
- "type": "function"
400
- },
401
- {
402
- "inputs": [
403
- {
404
- "internalType": "address",
405
- "name": "pool",
406
- "type": "address"
407
- },
408
- {
409
- "internalType": "contract IERC20[]",
410
- "name": "tokens",
411
- "type": "address[]"
412
- },
413
- {
414
- "internalType": "uint256[]",
415
- "name": "exactAmountsIn",
416
- "type": "uint256[]"
417
- },
418
- {
419
- "internalType": "uint256",
420
- "name": "minBptAmountOut",
421
- "type": "uint256"
422
- },
423
- {
424
- "internalType": "bool",
425
- "name": "wethIsEth",
426
- "type": "bool"
427
- },
428
- {
429
- "internalType": "bytes",
430
- "name": "userData",
431
- "type": "bytes"
432
- }
433
- ],
434
- "name": "initialize",
435
- "outputs": [
436
- {
437
- "internalType": "uint256",
438
- "name": "bptAmountOut",
439
- "type": "uint256"
440
- }
441
- ],
442
- "stateMutability": "payable",
443
- "type": "function"
444
- },
445
- {
446
- "inputs": [
447
- {
448
- "components": [
449
- {
450
- "internalType": "address",
451
- "name": "sender",
452
- "type": "address"
453
- },
454
- {
455
- "internalType": "address",
456
- "name": "pool",
457
- "type": "address"
458
- },
459
- {
460
- "internalType": "contract IERC20[]",
461
- "name": "tokens",
462
- "type": "address[]"
463
- },
464
- {
465
- "internalType": "uint256[]",
466
- "name": "exactAmountsIn",
467
- "type": "uint256[]"
468
- },
469
- {
470
- "internalType": "uint256",
471
- "name": "minBptAmountOut",
472
- "type": "uint256"
473
- },
474
- {
475
- "internalType": "bool",
476
- "name": "wethIsEth",
477
- "type": "bool"
478
- },
479
- {
480
- "internalType": "bytes",
481
- "name": "userData",
482
- "type": "bytes"
483
- }
484
- ],
485
- "internalType": "struct IRouter.InitializeHookParams",
486
- "name": "params",
487
- "type": "tuple"
488
- }
489
- ],
490
- "name": "initializeHook",
491
- "outputs": [
492
- {
493
- "internalType": "uint256",
494
- "name": "bptAmountOut",
495
- "type": "uint256"
496
- }
497
- ],
498
- "stateMutability": "nonpayable",
499
- "type": "function"
500
- },
501
- {
502
- "inputs": [
503
- {
504
- "internalType": "bytes[]",
505
- "name": "data",
506
- "type": "bytes[]"
507
- }
508
- ],
509
- "name": "multicall",
510
- "outputs": [
511
- {
512
- "internalType": "bytes[]",
513
- "name": "results",
514
- "type": "bytes[]"
515
- }
516
- ],
517
- "stateMutability": "payable",
518
- "type": "function"
519
- },
520
- {
521
- "inputs": [
522
- {
523
- "components": [
524
- {
525
- "internalType": "address",
526
- "name": "token",
527
- "type": "address"
528
- },
529
- {
530
- "internalType": "address",
531
- "name": "owner",
532
- "type": "address"
533
- },
534
- {
535
- "internalType": "address",
536
- "name": "spender",
537
- "type": "address"
538
- },
539
- {
540
- "internalType": "uint256",
541
- "name": "amount",
542
- "type": "uint256"
543
- },
544
- {
545
- "internalType": "uint256",
546
- "name": "nonce",
547
- "type": "uint256"
548
- },
549
- {
550
- "internalType": "uint256",
551
- "name": "deadline",
552
- "type": "uint256"
553
- }
554
- ],
555
- "internalType": "struct IRouterCommon.PermitApproval[]",
556
- "name": "permitBatch",
557
- "type": "tuple[]"
558
- },
559
- {
560
- "internalType": "bytes[]",
561
- "name": "permitSignatures",
562
- "type": "bytes[]"
563
- },
564
- {
565
- "components": [
566
- {
567
- "components": [
568
- {
569
- "internalType": "address",
570
- "name": "token",
571
- "type": "address"
572
- },
573
- {
574
- "internalType": "uint160",
575
- "name": "amount",
576
- "type": "uint160"
577
- },
578
- {
579
- "internalType": "uint48",
580
- "name": "expiration",
581
- "type": "uint48"
582
- },
583
- {
584
- "internalType": "uint48",
585
- "name": "nonce",
586
- "type": "uint48"
587
- }
588
- ],
589
- "internalType": "struct IAllowanceTransfer.PermitDetails[]",
590
- "name": "details",
591
- "type": "tuple[]"
592
- },
593
- {
594
- "internalType": "address",
595
- "name": "spender",
596
- "type": "address"
597
- },
598
- {
599
- "internalType": "uint256",
600
- "name": "sigDeadline",
601
- "type": "uint256"
602
- }
603
- ],
604
- "internalType": "struct IAllowanceTransfer.PermitBatch",
605
- "name": "permit2Batch",
606
- "type": "tuple"
607
- },
608
- {
609
- "internalType": "bytes",
610
- "name": "permit2Signature",
611
- "type": "bytes"
612
- },
613
- {
614
- "internalType": "bytes[]",
615
- "name": "multicallData",
616
- "type": "bytes[]"
617
- }
618
- ],
619
- "name": "permitBatchAndCall",
620
- "outputs": [
621
- {
622
- "internalType": "bytes[]",
623
- "name": "results",
624
- "type": "bytes[]"
625
- }
626
- ],
627
- "stateMutability": "payable",
628
- "type": "function"
629
- },
630
- {
631
- "inputs": [
632
- {
633
- "internalType": "address",
634
- "name": "pool",
635
- "type": "address"
636
- },
637
- {
638
- "internalType": "uint256[]",
639
- "name": "maxAmountsIn",
640
- "type": "uint256[]"
641
- },
642
- {
643
- "internalType": "uint256",
644
- "name": "minBptAmountOut",
645
- "type": "uint256"
646
- },
647
- {
648
- "internalType": "address",
649
- "name": "sender",
650
- "type": "address"
651
- },
652
- {
653
- "internalType": "bytes",
654
- "name": "userData",
655
- "type": "bytes"
656
- }
657
- ],
658
- "name": "queryAddLiquidityCustom",
659
- "outputs": [
660
- {
661
- "internalType": "uint256[]",
662
- "name": "amountsIn",
663
- "type": "uint256[]"
664
- },
665
- {
666
- "internalType": "uint256",
667
- "name": "bptAmountOut",
668
- "type": "uint256"
669
- },
670
- {
671
- "internalType": "bytes",
672
- "name": "returnData",
673
- "type": "bytes"
674
- }
675
- ],
676
- "stateMutability": "nonpayable",
677
- "type": "function"
678
- },
679
- {
680
- "inputs": [
681
- {
682
- "components": [
683
- {
684
- "internalType": "address",
685
- "name": "sender",
686
- "type": "address"
687
- },
688
- {
689
- "internalType": "address",
690
- "name": "pool",
691
- "type": "address"
692
- },
693
- {
694
- "internalType": "uint256[]",
695
- "name": "maxAmountsIn",
696
- "type": "uint256[]"
697
- },
698
- {
699
- "internalType": "uint256",
700
- "name": "minBptAmountOut",
701
- "type": "uint256"
702
- },
703
- {
704
- "internalType": "enum AddLiquidityKind",
705
- "name": "kind",
706
- "type": "uint8"
707
- },
708
- {
709
- "internalType": "bool",
710
- "name": "wethIsEth",
711
- "type": "bool"
712
- },
713
- {
714
- "internalType": "bytes",
715
- "name": "userData",
716
- "type": "bytes"
717
- }
718
- ],
719
- "internalType": "struct IRouterCommon.AddLiquidityHookParams",
720
- "name": "params",
721
- "type": "tuple"
722
- }
723
- ],
724
- "name": "queryAddLiquidityHook",
725
- "outputs": [
726
- {
727
- "internalType": "uint256[]",
728
- "name": "amountsIn",
729
- "type": "uint256[]"
730
- },
731
- {
732
- "internalType": "uint256",
733
- "name": "bptAmountOut",
734
- "type": "uint256"
735
- },
736
- {
737
- "internalType": "bytes",
738
- "name": "returnData",
739
- "type": "bytes"
740
- }
741
- ],
742
- "stateMutability": "nonpayable",
743
- "type": "function"
744
- },
745
- {
746
- "inputs": [
747
- {
748
- "internalType": "address",
749
- "name": "pool",
750
- "type": "address"
751
- },
752
- {
753
- "internalType": "uint256",
754
- "name": "exactBptAmountOut",
755
- "type": "uint256"
756
- },
757
- {
758
- "internalType": "address",
759
- "name": "sender",
760
- "type": "address"
761
- },
762
- {
763
- "internalType": "bytes",
764
- "name": "userData",
765
- "type": "bytes"
766
- }
767
- ],
768
- "name": "queryAddLiquidityProportional",
769
- "outputs": [
770
- {
771
- "internalType": "uint256[]",
772
- "name": "amountsIn",
773
- "type": "uint256[]"
774
- }
775
- ],
776
- "stateMutability": "nonpayable",
777
- "type": "function"
778
- },
779
- {
780
- "inputs": [
781
- {
782
- "internalType": "address",
783
- "name": "pool",
784
- "type": "address"
785
- },
786
- {
787
- "internalType": "contract IERC20",
788
- "name": "tokenIn",
789
- "type": "address"
790
- },
791
- {
792
- "internalType": "uint256",
793
- "name": "exactBptAmountOut",
794
- "type": "uint256"
795
- },
796
- {
797
- "internalType": "address",
798
- "name": "sender",
799
- "type": "address"
800
- },
801
- {
802
- "internalType": "bytes",
803
- "name": "userData",
804
- "type": "bytes"
805
- }
806
- ],
807
- "name": "queryAddLiquiditySingleTokenExactOut",
808
- "outputs": [
809
- {
810
- "internalType": "uint256",
811
- "name": "amountIn",
812
- "type": "uint256"
813
- }
814
- ],
815
- "stateMutability": "nonpayable",
816
- "type": "function"
817
- },
818
- {
819
- "inputs": [
820
- {
821
- "internalType": "address",
822
- "name": "pool",
823
- "type": "address"
824
- },
825
- {
826
- "internalType": "uint256[]",
827
- "name": "exactAmountsIn",
828
- "type": "uint256[]"
829
- },
830
- {
831
- "internalType": "address",
832
- "name": "sender",
833
- "type": "address"
834
- },
835
- {
836
- "internalType": "bytes",
837
- "name": "userData",
838
- "type": "bytes"
839
- }
840
- ],
841
- "name": "queryAddLiquidityUnbalanced",
842
- "outputs": [
843
- {
844
- "internalType": "uint256",
845
- "name": "bptAmountOut",
846
- "type": "uint256"
847
- }
848
- ],
849
- "stateMutability": "nonpayable",
850
- "type": "function"
851
- },
852
- {
853
- "inputs": [
854
- {
855
- "internalType": "address",
856
- "name": "pool",
857
- "type": "address"
858
- },
859
- {
860
- "internalType": "uint256",
861
- "name": "maxBptAmountIn",
862
- "type": "uint256"
863
- },
864
- {
865
- "internalType": "uint256[]",
866
- "name": "minAmountsOut",
867
- "type": "uint256[]"
868
- },
869
- {
870
- "internalType": "address",
871
- "name": "sender",
872
- "type": "address"
873
- },
874
- {
875
- "internalType": "bytes",
876
- "name": "userData",
877
- "type": "bytes"
878
- }
879
- ],
880
- "name": "queryRemoveLiquidityCustom",
881
- "outputs": [
882
- {
883
- "internalType": "uint256",
884
- "name": "bptAmountIn",
885
- "type": "uint256"
886
- },
887
- {
888
- "internalType": "uint256[]",
889
- "name": "amountsOut",
890
- "type": "uint256[]"
891
- },
892
- {
893
- "internalType": "bytes",
894
- "name": "returnData",
895
- "type": "bytes"
896
- }
897
- ],
898
- "stateMutability": "nonpayable",
899
- "type": "function"
900
- },
901
- {
902
- "inputs": [
903
- {
904
- "components": [
905
- {
906
- "internalType": "address",
907
- "name": "sender",
908
- "type": "address"
909
- },
910
- {
911
- "internalType": "address",
912
- "name": "pool",
913
- "type": "address"
914
- },
915
- {
916
- "internalType": "uint256[]",
917
- "name": "minAmountsOut",
918
- "type": "uint256[]"
919
- },
920
- {
921
- "internalType": "uint256",
922
- "name": "maxBptAmountIn",
923
- "type": "uint256"
924
- },
925
- {
926
- "internalType": "enum RemoveLiquidityKind",
927
- "name": "kind",
928
- "type": "uint8"
929
- },
930
- {
931
- "internalType": "bool",
932
- "name": "wethIsEth",
933
- "type": "bool"
934
- },
935
- {
936
- "internalType": "bytes",
937
- "name": "userData",
938
- "type": "bytes"
939
- }
940
- ],
941
- "internalType": "struct IRouterCommon.RemoveLiquidityHookParams",
942
- "name": "params",
943
- "type": "tuple"
944
- }
945
- ],
946
- "name": "queryRemoveLiquidityHook",
947
- "outputs": [
948
- {
949
- "internalType": "uint256",
950
- "name": "bptAmountIn",
951
- "type": "uint256"
952
- },
953
- {
954
- "internalType": "uint256[]",
955
- "name": "amountsOut",
956
- "type": "uint256[]"
957
- },
958
- {
959
- "internalType": "bytes",
960
- "name": "returnData",
961
- "type": "bytes"
962
- }
963
- ],
964
- "stateMutability": "nonpayable",
965
- "type": "function"
966
- },
967
- {
968
- "inputs": [
969
- {
970
- "internalType": "address",
971
- "name": "pool",
972
- "type": "address"
973
- },
974
- {
975
- "internalType": "uint256",
976
- "name": "exactBptAmountIn",
977
- "type": "uint256"
978
- },
979
- {
980
- "internalType": "address",
981
- "name": "sender",
982
- "type": "address"
983
- },
984
- {
985
- "internalType": "bytes",
986
- "name": "userData",
987
- "type": "bytes"
988
- }
989
- ],
990
- "name": "queryRemoveLiquidityProportional",
991
- "outputs": [
992
- {
993
- "internalType": "uint256[]",
994
- "name": "amountsOut",
995
- "type": "uint256[]"
996
- }
997
- ],
998
- "stateMutability": "nonpayable",
999
- "type": "function"
1000
- },
1001
- {
1002
- "inputs": [
1003
- {
1004
- "internalType": "address",
1005
- "name": "pool",
1006
- "type": "address"
1007
- },
1008
- {
1009
- "internalType": "uint256",
1010
- "name": "exactBptAmountIn",
1011
- "type": "uint256"
1012
- }
1013
- ],
1014
- "name": "queryRemoveLiquidityRecovery",
1015
- "outputs": [
1016
- {
1017
- "internalType": "uint256[]",
1018
- "name": "amountsOut",
1019
- "type": "uint256[]"
1020
- }
1021
- ],
1022
- "stateMutability": "nonpayable",
1023
- "type": "function"
1024
- },
1025
- {
1026
- "inputs": [
1027
- {
1028
- "internalType": "address",
1029
- "name": "pool",
1030
- "type": "address"
1031
- },
1032
- {
1033
- "internalType": "address",
1034
- "name": "sender",
1035
- "type": "address"
1036
- },
1037
- {
1038
- "internalType": "uint256",
1039
- "name": "exactBptAmountIn",
1040
- "type": "uint256"
1041
- }
1042
- ],
1043
- "name": "queryRemoveLiquidityRecoveryHook",
1044
- "outputs": [
1045
- {
1046
- "internalType": "uint256[]",
1047
- "name": "amountsOut",
1048
- "type": "uint256[]"
1049
- }
1050
- ],
1051
- "stateMutability": "nonpayable",
1052
- "type": "function"
1053
- },
1054
- {
1055
- "inputs": [
1056
- {
1057
- "internalType": "address",
1058
- "name": "pool",
1059
- "type": "address"
1060
- },
1061
- {
1062
- "internalType": "uint256",
1063
- "name": "exactBptAmountIn",
1064
- "type": "uint256"
1065
- },
1066
- {
1067
- "internalType": "contract IERC20",
1068
- "name": "tokenOut",
1069
- "type": "address"
1070
- },
1071
- {
1072
- "internalType": "address",
1073
- "name": "sender",
1074
- "type": "address"
1075
- },
1076
- {
1077
- "internalType": "bytes",
1078
- "name": "userData",
1079
- "type": "bytes"
1080
- }
1081
- ],
1082
- "name": "queryRemoveLiquiditySingleTokenExactIn",
1083
- "outputs": [
1084
- {
1085
- "internalType": "uint256",
1086
- "name": "amountOut",
1087
- "type": "uint256"
1088
- }
1089
- ],
1090
- "stateMutability": "nonpayable",
1091
- "type": "function"
1092
- },
1093
- {
1094
- "inputs": [
1095
- {
1096
- "internalType": "address",
1097
- "name": "pool",
1098
- "type": "address"
1099
- },
1100
- {
1101
- "internalType": "contract IERC20",
1102
- "name": "tokenOut",
1103
- "type": "address"
1104
- },
1105
- {
1106
- "internalType": "uint256",
1107
- "name": "exactAmountOut",
1108
- "type": "uint256"
1109
- },
1110
- {
1111
- "internalType": "address",
1112
- "name": "sender",
1113
- "type": "address"
1114
- },
1115
- {
1116
- "internalType": "bytes",
1117
- "name": "userData",
1118
- "type": "bytes"
1119
- }
1120
- ],
1121
- "name": "queryRemoveLiquiditySingleTokenExactOut",
1122
- "outputs": [
1123
- {
1124
- "internalType": "uint256",
1125
- "name": "bptAmountIn",
1126
- "type": "uint256"
1127
- }
1128
- ],
1129
- "stateMutability": "nonpayable",
1130
- "type": "function"
1131
- },
1132
- {
1133
- "inputs": [
1134
- {
1135
- "components": [
1136
- {
1137
- "internalType": "address",
1138
- "name": "sender",
1139
- "type": "address"
1140
- },
1141
- {
1142
- "internalType": "enum SwapKind",
1143
- "name": "kind",
1144
- "type": "uint8"
1145
- },
1146
- {
1147
- "internalType": "address",
1148
- "name": "pool",
1149
- "type": "address"
1150
- },
1151
- {
1152
- "internalType": "contract IERC20",
1153
- "name": "tokenIn",
1154
- "type": "address"
1155
- },
1156
- {
1157
- "internalType": "contract IERC20",
1158
- "name": "tokenOut",
1159
- "type": "address"
1160
- },
1161
- {
1162
- "internalType": "uint256",
1163
- "name": "amountGiven",
1164
- "type": "uint256"
1165
- },
1166
- {
1167
- "internalType": "uint256",
1168
- "name": "limit",
1169
- "type": "uint256"
1170
- },
1171
- {
1172
- "internalType": "uint256",
1173
- "name": "deadline",
1174
- "type": "uint256"
1175
- },
1176
- {
1177
- "internalType": "bool",
1178
- "name": "wethIsEth",
1179
- "type": "bool"
1180
- },
1181
- {
1182
- "internalType": "bytes",
1183
- "name": "userData",
1184
- "type": "bytes"
1185
- }
1186
- ],
1187
- "internalType": "struct IRouter.SwapSingleTokenHookParams",
1188
- "name": "params",
1189
- "type": "tuple"
1190
- }
1191
- ],
1192
- "name": "querySwapHook",
1193
- "outputs": [
1194
- {
1195
- "internalType": "uint256",
1196
- "name": "",
1197
- "type": "uint256"
1198
- }
1199
- ],
1200
- "stateMutability": "nonpayable",
1201
- "type": "function"
1202
- },
1203
- {
1204
- "inputs": [
1205
- {
1206
- "internalType": "address",
1207
- "name": "pool",
1208
- "type": "address"
1209
- },
1210
- {
1211
- "internalType": "contract IERC20",
1212
- "name": "tokenIn",
1213
- "type": "address"
1214
- },
1215
- {
1216
- "internalType": "contract IERC20",
1217
- "name": "tokenOut",
1218
- "type": "address"
1219
- },
1220
- {
1221
- "internalType": "uint256",
1222
- "name": "exactAmountIn",
1223
- "type": "uint256"
1224
- },
1225
- {
1226
- "internalType": "address",
1227
- "name": "sender",
1228
- "type": "address"
1229
- },
1230
- {
1231
- "internalType": "bytes",
1232
- "name": "userData",
1233
- "type": "bytes"
1234
- }
1235
- ],
1236
- "name": "querySwapSingleTokenExactIn",
1237
- "outputs": [
1238
- {
1239
- "internalType": "uint256",
1240
- "name": "amountCalculated",
1241
- "type": "uint256"
1242
- }
1243
- ],
1244
- "stateMutability": "nonpayable",
1245
- "type": "function"
1246
- },
1247
- {
1248
- "inputs": [
1249
- {
1250
- "internalType": "address",
1251
- "name": "pool",
1252
- "type": "address"
1253
- },
1254
- {
1255
- "internalType": "contract IERC20",
1256
- "name": "tokenIn",
1257
- "type": "address"
1258
- },
1259
- {
1260
- "internalType": "contract IERC20",
1261
- "name": "tokenOut",
1262
- "type": "address"
1263
- },
1264
- {
1265
- "internalType": "uint256",
1266
- "name": "exactAmountOut",
1267
- "type": "uint256"
1268
- },
1269
- {
1270
- "internalType": "address",
1271
- "name": "sender",
1272
- "type": "address"
1273
- },
1274
- {
1275
- "internalType": "bytes",
1276
- "name": "userData",
1277
- "type": "bytes"
1278
- }
1279
- ],
1280
- "name": "querySwapSingleTokenExactOut",
1281
- "outputs": [
1282
- {
1283
- "internalType": "uint256",
1284
- "name": "amountCalculated",
1285
- "type": "uint256"
1286
- }
1287
- ],
1288
- "stateMutability": "nonpayable",
1289
- "type": "function"
1290
- },
1291
- {
1292
- "inputs": [
1293
- {
1294
- "internalType": "address",
1295
- "name": "pool",
1296
- "type": "address"
1297
- },
1298
- {
1299
- "internalType": "uint256",
1300
- "name": "maxBptAmountIn",
1301
- "type": "uint256"
1302
- },
1303
- {
1304
- "internalType": "uint256[]",
1305
- "name": "minAmountsOut",
1306
- "type": "uint256[]"
1307
- },
1308
- {
1309
- "internalType": "bool",
1310
- "name": "wethIsEth",
1311
- "type": "bool"
1312
- },
1313
- {
1314
- "internalType": "bytes",
1315
- "name": "userData",
1316
- "type": "bytes"
1317
- }
1318
- ],
1319
- "name": "removeLiquidityCustom",
1320
- "outputs": [
1321
- {
1322
- "internalType": "uint256",
1323
- "name": "bptAmountIn",
1324
- "type": "uint256"
1325
- },
1326
- {
1327
- "internalType": "uint256[]",
1328
- "name": "amountsOut",
1329
- "type": "uint256[]"
1330
- },
1331
- {
1332
- "internalType": "bytes",
1333
- "name": "returnData",
1334
- "type": "bytes"
1335
- }
1336
- ],
1337
- "stateMutability": "payable",
1338
- "type": "function"
1339
- },
1340
- {
1341
- "inputs": [
1342
- {
1343
- "components": [
1344
- {
1345
- "internalType": "address",
1346
- "name": "sender",
1347
- "type": "address"
1348
- },
1349
- {
1350
- "internalType": "address",
1351
- "name": "pool",
1352
- "type": "address"
1353
- },
1354
- {
1355
- "internalType": "uint256[]",
1356
- "name": "minAmountsOut",
1357
- "type": "uint256[]"
1358
- },
1359
- {
1360
- "internalType": "uint256",
1361
- "name": "maxBptAmountIn",
1362
- "type": "uint256"
1363
- },
1364
- {
1365
- "internalType": "enum RemoveLiquidityKind",
1366
- "name": "kind",
1367
- "type": "uint8"
1368
- },
1369
- {
1370
- "internalType": "bool",
1371
- "name": "wethIsEth",
1372
- "type": "bool"
1373
- },
1374
- {
1375
- "internalType": "bytes",
1376
- "name": "userData",
1377
- "type": "bytes"
1378
- }
1379
- ],
1380
- "internalType": "struct IRouterCommon.RemoveLiquidityHookParams",
1381
- "name": "params",
1382
- "type": "tuple"
1383
- }
1384
- ],
1385
- "name": "removeLiquidityHook",
1386
- "outputs": [
1387
- {
1388
- "internalType": "uint256",
1389
- "name": "bptAmountIn",
1390
- "type": "uint256"
1391
- },
1392
- {
1393
- "internalType": "uint256[]",
1394
- "name": "amountsOut",
1395
- "type": "uint256[]"
1396
- },
1397
- {
1398
- "internalType": "bytes",
1399
- "name": "returnData",
1400
- "type": "bytes"
1401
- }
1402
- ],
1403
- "stateMutability": "nonpayable",
1404
- "type": "function"
1405
- },
1406
- {
1407
- "inputs": [
1408
- {
1409
- "internalType": "address",
1410
- "name": "pool",
1411
- "type": "address"
1412
- },
1413
- {
1414
- "internalType": "uint256",
1415
- "name": "exactBptAmountIn",
1416
- "type": "uint256"
1417
- },
1418
- {
1419
- "internalType": "uint256[]",
1420
- "name": "minAmountsOut",
1421
- "type": "uint256[]"
1422
- },
1423
- {
1424
- "internalType": "bool",
1425
- "name": "wethIsEth",
1426
- "type": "bool"
1427
- },
1428
- {
1429
- "internalType": "bytes",
1430
- "name": "userData",
1431
- "type": "bytes"
1432
- }
1433
- ],
1434
- "name": "removeLiquidityProportional",
1435
- "outputs": [
1436
- {
1437
- "internalType": "uint256[]",
1438
- "name": "amountsOut",
1439
- "type": "uint256[]"
1440
- }
1441
- ],
1442
- "stateMutability": "payable",
1443
- "type": "function"
1444
- },
1445
- {
1446
- "inputs": [
1447
- {
1448
- "internalType": "address",
1449
- "name": "pool",
1450
- "type": "address"
1451
- },
1452
- {
1453
- "internalType": "uint256",
1454
- "name": "exactBptAmountIn",
1455
- "type": "uint256"
1456
- },
1457
- {
1458
- "internalType": "uint256[]",
1459
- "name": "minAmountsOut",
1460
- "type": "uint256[]"
1461
- }
1462
- ],
1463
- "name": "removeLiquidityRecovery",
1464
- "outputs": [
1465
- {
1466
- "internalType": "uint256[]",
1467
- "name": "amountsOut",
1468
- "type": "uint256[]"
1469
- }
1470
- ],
1471
- "stateMutability": "payable",
1472
- "type": "function"
1473
- },
1474
- {
1475
- "inputs": [
1476
- {
1477
- "internalType": "address",
1478
- "name": "pool",
1479
- "type": "address"
1480
- },
1481
- {
1482
- "internalType": "address",
1483
- "name": "sender",
1484
- "type": "address"
1485
- },
1486
- {
1487
- "internalType": "uint256",
1488
- "name": "exactBptAmountIn",
1489
- "type": "uint256"
1490
- },
1491
- {
1492
- "internalType": "uint256[]",
1493
- "name": "minAmountsOut",
1494
- "type": "uint256[]"
1495
- }
1496
- ],
1497
- "name": "removeLiquidityRecoveryHook",
1498
- "outputs": [
1499
- {
1500
- "internalType": "uint256[]",
1501
- "name": "amountsOut",
1502
- "type": "uint256[]"
1503
- }
1504
- ],
1505
- "stateMutability": "nonpayable",
1506
- "type": "function"
1507
- },
1508
- {
1509
- "inputs": [
1510
- {
1511
- "internalType": "address",
1512
- "name": "pool",
1513
- "type": "address"
1514
- },
1515
- {
1516
- "internalType": "uint256",
1517
- "name": "exactBptAmountIn",
1518
- "type": "uint256"
1519
- },
1520
- {
1521
- "internalType": "contract IERC20",
1522
- "name": "tokenOut",
1523
- "type": "address"
1524
- },
1525
- {
1526
- "internalType": "uint256",
1527
- "name": "minAmountOut",
1528
- "type": "uint256"
1529
- },
1530
- {
1531
- "internalType": "bool",
1532
- "name": "wethIsEth",
1533
- "type": "bool"
1534
- },
1535
- {
1536
- "internalType": "bytes",
1537
- "name": "userData",
1538
- "type": "bytes"
1539
- }
1540
- ],
1541
- "name": "removeLiquiditySingleTokenExactIn",
1542
- "outputs": [
1543
- {
1544
- "internalType": "uint256",
1545
- "name": "amountOut",
1546
- "type": "uint256"
1547
- }
1548
- ],
1549
- "stateMutability": "payable",
1550
- "type": "function"
1551
- },
1552
- {
1553
- "inputs": [
1554
- {
1555
- "internalType": "address",
1556
- "name": "pool",
1557
- "type": "address"
1558
- },
1559
- {
1560
- "internalType": "uint256",
1561
- "name": "maxBptAmountIn",
1562
- "type": "uint256"
1563
- },
1564
- {
1565
- "internalType": "contract IERC20",
1566
- "name": "tokenOut",
1567
- "type": "address"
1568
- },
1569
- {
1570
- "internalType": "uint256",
1571
- "name": "exactAmountOut",
1572
- "type": "uint256"
1573
- },
1574
- {
1575
- "internalType": "bool",
1576
- "name": "wethIsEth",
1577
- "type": "bool"
1578
- },
1579
- {
1580
- "internalType": "bytes",
1581
- "name": "userData",
1582
- "type": "bytes"
1583
- }
1584
- ],
1585
- "name": "removeLiquiditySingleTokenExactOut",
1586
- "outputs": [
1587
- {
1588
- "internalType": "uint256",
1589
- "name": "bptAmountIn",
1590
- "type": "uint256"
1591
- }
1592
- ],
1593
- "stateMutability": "payable",
1594
- "type": "function"
1595
- },
1596
- {
1597
- "inputs": [
1598
- {
1599
- "internalType": "address",
1600
- "name": "pool",
1601
- "type": "address"
1602
- },
1603
- {
1604
- "internalType": "contract IERC20",
1605
- "name": "tokenIn",
1606
- "type": "address"
1607
- },
1608
- {
1609
- "internalType": "contract IERC20",
1610
- "name": "tokenOut",
1611
- "type": "address"
1612
- },
1613
- {
1614
- "internalType": "uint256",
1615
- "name": "exactAmountIn",
1616
- "type": "uint256"
1617
- },
1618
- {
1619
- "internalType": "uint256",
1620
- "name": "minAmountOut",
1621
- "type": "uint256"
1622
- },
1623
- {
1624
- "internalType": "uint256",
1625
- "name": "deadline",
1626
- "type": "uint256"
1627
- },
1628
- {
1629
- "internalType": "bool",
1630
- "name": "wethIsEth",
1631
- "type": "bool"
1632
- },
1633
- {
1634
- "internalType": "bytes",
1635
- "name": "userData",
1636
- "type": "bytes"
1637
- }
1638
- ],
1639
- "name": "swapSingleTokenExactIn",
1640
- "outputs": [
1641
- {
1642
- "internalType": "uint256",
1643
- "name": "",
1644
- "type": "uint256"
1645
- }
1646
- ],
1647
- "stateMutability": "payable",
1648
- "type": "function"
1649
- },
1650
- {
1651
- "inputs": [
1652
- {
1653
- "internalType": "address",
1654
- "name": "pool",
1655
- "type": "address"
1656
- },
1657
- {
1658
- "internalType": "contract IERC20",
1659
- "name": "tokenIn",
1660
- "type": "address"
1661
- },
1662
- {
1663
- "internalType": "contract IERC20",
1664
- "name": "tokenOut",
1665
- "type": "address"
1666
- },
1667
- {
1668
- "internalType": "uint256",
1669
- "name": "exactAmountOut",
1670
- "type": "uint256"
1671
- },
1672
- {
1673
- "internalType": "uint256",
1674
- "name": "maxAmountIn",
1675
- "type": "uint256"
1676
- },
1677
- {
1678
- "internalType": "uint256",
1679
- "name": "deadline",
1680
- "type": "uint256"
1681
- },
1682
- {
1683
- "internalType": "bool",
1684
- "name": "wethIsEth",
1685
- "type": "bool"
1686
- },
1687
- {
1688
- "internalType": "bytes",
1689
- "name": "userData",
1690
- "type": "bytes"
1691
- }
1692
- ],
1693
- "name": "swapSingleTokenExactOut",
1694
- "outputs": [
1695
- {
1696
- "internalType": "uint256",
1697
- "name": "",
1698
- "type": "uint256"
1699
- }
1700
- ],
1701
- "stateMutability": "payable",
1702
- "type": "function"
1703
- },
1704
- {
1705
- "inputs": [
1706
- {
1707
- "components": [
1708
- {
1709
- "internalType": "address",
1710
- "name": "sender",
1711
- "type": "address"
1712
- },
1713
- {
1714
- "internalType": "enum SwapKind",
1715
- "name": "kind",
1716
- "type": "uint8"
1717
- },
1718
- {
1719
- "internalType": "address",
1720
- "name": "pool",
1721
- "type": "address"
1722
- },
1723
- {
1724
- "internalType": "contract IERC20",
1725
- "name": "tokenIn",
1726
- "type": "address"
1727
- },
1728
- {
1729
- "internalType": "contract IERC20",
1730
- "name": "tokenOut",
1731
- "type": "address"
1732
- },
1733
- {
1734
- "internalType": "uint256",
1735
- "name": "amountGiven",
1736
- "type": "uint256"
1737
- },
1738
- {
1739
- "internalType": "uint256",
1740
- "name": "limit",
1741
- "type": "uint256"
1742
- },
1743
- {
1744
- "internalType": "uint256",
1745
- "name": "deadline",
1746
- "type": "uint256"
1747
- },
1748
- {
1749
- "internalType": "bool",
1750
- "name": "wethIsEth",
1751
- "type": "bool"
1752
- },
1753
- {
1754
- "internalType": "bytes",
1755
- "name": "userData",
1756
- "type": "bytes"
1757
- }
1758
- ],
1759
- "internalType": "struct IRouter.SwapSingleTokenHookParams",
1760
- "name": "params",
1761
- "type": "tuple"
1762
- }
1763
- ],
1764
- "name": "swapSingleTokenHook",
1765
- "outputs": [
1766
- {
1767
- "internalType": "uint256",
1768
- "name": "",
1769
- "type": "uint256"
1770
- }
1771
- ],
1772
- "stateMutability": "nonpayable",
1773
- "type": "function"
1774
- },
1775
- {
1776
- "inputs": [],
1777
- "name": "version",
1778
- "outputs": [
1779
- {
1780
- "internalType": "string",
1781
- "name": "",
1782
- "type": "string"
1783
- }
1784
- ],
1785
- "stateMutability": "view",
1786
- "type": "function"
1787
- },
1788
- {
1789
- "stateMutability": "payable",
1790
- "type": "receive"
1791
- }
1792
- ]