@paraswap/dex-lib 4.0.0 → 4.0.1-balancer-v3-cables.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 (359) hide show
  1. package/.vscode/launch.json +53 -0
  2. package/.vscode/settings.json +2 -0
  3. package/.vscode/tasks.json +15 -0
  4. package/build/abi/balancer-v3/batch-router.json +989 -0
  5. package/build/abi/balancer-v3/router.json +1792 -0
  6. package/build/abi/balancer-v3/vault-extension.json +2834 -0
  7. package/build/abi/permit2.json +581 -0
  8. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +52 -0
  9. package/build/abi/usual-m-smart-m/usualM.abi.json +483 -0
  10. package/build/abi/usual-m-usd0/usualCollateralDao.abi.json +681 -0
  11. package/build/abi/{angle-transmuter/ChainlinkAccessControlledOffchainAggregator.json → wombat/pool.json} +637 -594
  12. package/build/bigint-constants.d.ts +1 -0
  13. package/build/bigint-constants.js +2 -1
  14. package/build/bigint-constants.js.map +1 -1
  15. package/build/config.js +28 -0
  16. package/build/config.js.map +1 -1
  17. package/build/constants.d.ts +2 -0
  18. package/build/constants.js +4 -1
  19. package/build/constants.js.map +1 -1
  20. package/build/dex/aave-v1/aave-v1.js +1 -0
  21. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  22. package/build/dex/aave-v2/tokens-avalanche.json +44 -0
  23. package/build/dex/aave-v2/tokens-mainnet.json +188 -0
  24. package/build/dex/aave-v2/tokens-polygon.json +44 -0
  25. package/build/dex/augustus-approvals.d.ts +3 -2
  26. package/build/dex/augustus-approvals.js +35 -16
  27. package/build/dex/augustus-approvals.js.map +1 -1
  28. package/build/dex/bProtocol.d.ts +18 -0
  29. package/build/dex/bProtocol.js +39 -0
  30. package/build/dex/bProtocol.js.map +1 -0
  31. package/build/dex/balancer-v3/abi/balancerBatchRouter.d.ts +729 -0
  32. package/build/dex/balancer-v3/abi/balancerBatchRouter.js +732 -0
  33. package/build/dex/balancer-v3/abi/balancerBatchRouter.js.map +1 -0
  34. package/build/dex/balancer-v3/abi/balancerRouter.d.ts +1406 -0
  35. package/build/dex/balancer-v3/abi/balancerRouter.js +1175 -0
  36. package/build/dex/balancer-v3/abi/balancerRouter.js.map +1 -0
  37. package/build/dex/balancer-v3/abi/vaultExtension.V3.d.ts +2081 -0
  38. package/build/dex/balancer-v3/abi/vaultExtension.V3.js +1851 -0
  39. package/build/dex/balancer-v3/abi/vaultExtension.V3.js.map +1 -0
  40. package/build/dex/balancer-v3/balancer-v3-pool.d.ts +80 -0
  41. package/build/dex/balancer-v3/balancer-v3-pool.js +469 -0
  42. package/build/dex/balancer-v3/balancer-v3-pool.js.map +1 -0
  43. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.d.ts +34 -0
  44. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js +406 -0
  45. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js.map +1 -0
  46. package/build/dex/balancer-v3/balancer-v3.d.ts +56 -0
  47. package/build/dex/balancer-v3/balancer-v3.js +412 -0
  48. package/build/dex/balancer-v3/balancer-v3.js.map +1 -0
  49. package/build/dex/balancer-v3/config.d.ts +9 -0
  50. package/build/dex/balancer-v3/config.js +45 -0
  51. package/build/dex/balancer-v3/config.js.map +1 -0
  52. package/build/dex/balancer-v3/getGasCost.d.ts +2 -0
  53. package/build/dex/balancer-v3/getGasCost.js +40 -0
  54. package/build/dex/balancer-v3/getGasCost.js.map +1 -0
  55. package/build/dex/balancer-v3/getOnChainState.d.ts +10 -0
  56. package/build/dex/balancer-v3/getOnChainState.js +163 -0
  57. package/build/dex/balancer-v3/getOnChainState.js.map +1 -0
  58. package/build/dex/balancer-v3/getPoolsApi.d.ts +2 -0
  59. package/build/dex/balancer-v3/getPoolsApi.js +84 -0
  60. package/build/dex/balancer-v3/getPoolsApi.js.map +1 -0
  61. package/build/dex/balancer-v3/getTopPoolsApi.d.ts +17 -0
  62. package/build/dex/balancer-v3/getTopPoolsApi.js +65 -0
  63. package/build/dex/balancer-v3/getTopPoolsApi.js.map +1 -0
  64. package/build/dex/balancer-v3/optimizer.d.ts +2 -0
  65. package/build/dex/balancer-v3/optimizer.js +47 -0
  66. package/build/dex/balancer-v3/optimizer.js.map +1 -0
  67. package/build/dex/balancer-v3/stablePool.d.ts +7 -0
  68. package/build/dex/balancer-v3/stablePool.js +73 -0
  69. package/build/dex/balancer-v3/stablePool.js.map +1 -0
  70. package/build/dex/balancer-v3/types.d.ts +62 -0
  71. package/build/dex/balancer-v3/types.js +3 -0
  72. package/build/dex/balancer-v3/types.js.map +1 -0
  73. package/build/dex/balancer-v3/weightedPool.d.ts +1 -0
  74. package/build/dex/balancer-v3/weightedPool.js +6 -0
  75. package/build/dex/balancer-v3/weightedPool.js.map +1 -0
  76. package/build/dex/bancor.d.ts +26 -0
  77. package/build/dex/bancor.js +58 -0
  78. package/build/dex/bancor.js.map +1 -0
  79. package/build/dex/cables/cables.d.ts +7 -5
  80. package/build/dex/cables/cables.js +229 -86
  81. package/build/dex/cables/cables.js.map +1 -1
  82. package/build/dex/cables/constants.d.ts +13 -12
  83. package/build/dex/cables/constants.js +14 -16
  84. package/build/dex/cables/constants.js.map +1 -1
  85. package/build/dex/cables/types.d.ts +7 -0
  86. package/build/dex/cables/types.js +8 -1
  87. package/build/dex/cables/types.js.map +1 -1
  88. package/build/dex/compound.d.ts +18 -0
  89. package/build/dex/compound.js +46 -0
  90. package/build/dex/compound.js.map +1 -0
  91. package/build/dex/curve-v2.d.ts +58 -0
  92. package/build/dex/curve-v2.js +180 -0
  93. package/build/dex/curve-v2.js.map +1 -0
  94. package/build/dex/dodo-v1.d.ts +33 -0
  95. package/build/dex/dodo-v1.js +63 -0
  96. package/build/dex/dodo-v1.js.map +1 -0
  97. package/build/dex/fluid-dex/fluid-dex-pool.d.ts +47 -0
  98. package/build/dex/fluid-dex/fluid-dex-pool.js +119 -0
  99. package/build/dex/fluid-dex/fluid-dex-pool.js.map +1 -0
  100. package/build/dex/inception/inception-event-pool.d.ts +4 -4
  101. package/build/dex/inception/inception-event-pool.js +7 -9
  102. package/build/dex/inception/inception-event-pool.js.map +1 -1
  103. package/build/dex/inception/inception.d.ts +6 -6
  104. package/build/dex/inception/inception.js +16 -40
  105. package/build/dex/inception/inception.js.map +1 -1
  106. package/build/dex/inception/utils.d.ts +1 -0
  107. package/build/dex/inception/utils.js +22 -1
  108. package/build/dex/inception/utils.js.map +1 -1
  109. package/build/dex/index.js +4 -0
  110. package/build/dex/index.js.map +1 -1
  111. package/build/dex/lido.d.ts +19 -0
  112. package/build/dex/lido.js +42 -0
  113. package/build/dex/lido.js.map +1 -0
  114. package/build/dex/maker-psm/scripts/gem.abi.json +136 -0
  115. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  116. package/build/dex/maker-psm/scripts/validate-state.js +185 -0
  117. package/build/dex/maker-psm/scripts/validate-state.js.map +1 -0
  118. package/build/dex/maker-psm/scripts/vat.abi.json +243 -0
  119. package/build/dex/onebit.d.ts +25 -0
  120. package/build/dex/onebit.js +42 -0
  121. package/build/dex/onebit.js.map +1 -0
  122. package/build/dex/platypus/platypus.js +17 -3
  123. package/build/dex/platypus/platypus.js.map +1 -1
  124. package/build/dex/smoothy.d.ts +26 -0
  125. package/build/dex/smoothy.js +48 -0
  126. package/build/dex/smoothy.js.map +1 -0
  127. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +1 -0
  128. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +53 -0
  129. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +1 -0
  130. package/build/dex/stable-pool.d.ts +28 -0
  131. package/build/dex/stable-pool.js +55 -0
  132. package/build/dex/stable-pool.js.map +1 -0
  133. package/build/dex/swaap-v1/swaap-v1.js +4 -0
  134. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  135. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +7 -0
  136. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +20 -0
  137. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +1 -0
  138. package/build/dex/trader-joe-v2.1.d.ts +43 -0
  139. package/build/dex/trader-joe-v2.1.js +79 -0
  140. package/build/dex/trader-joe-v2.1.js.map +1 -0
  141. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +17 -0
  142. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +64 -0
  143. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +1 -0
  144. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +17 -0
  145. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +79 -0
  146. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +1 -0
  147. package/build/dex/uniswap-v3/uniswap-v3-pricing.d.ts +4 -0
  148. package/build/dex/uniswap-v3/uniswap-v3-pricing.js +43 -0
  149. package/build/dex/uniswap-v3/uniswap-v3-pricing.js.map +1 -0
  150. package/build/dex/uniswap-v3/uniswap-v3-worker.d.ts +1 -0
  151. package/build/dex/uniswap-v3/uniswap-v3-worker.js +10 -0
  152. package/build/dex/uniswap-v3/uniswap-v3-worker.js.map +1 -0
  153. package/build/dex/usual/types.d.ts +13 -0
  154. package/build/dex/usual/types.js +3 -0
  155. package/build/dex/usual/types.js.map +1 -0
  156. package/build/dex/usual/usual-bond.d.ts +18 -0
  157. package/build/dex/usual/usual-bond.js +52 -0
  158. package/build/dex/usual/usual-bond.js.map +1 -0
  159. package/build/dex/usual/usual-m-smart-m.d.ts +17 -0
  160. package/build/dex/usual/usual-m-smart-m.js +50 -0
  161. package/build/dex/usual/usual-m-smart-m.js.map +1 -0
  162. package/build/dex/usual/usual-m-usd0.d.ts +17 -0
  163. package/build/dex/usual/usual-m-usd0.js +51 -0
  164. package/build/dex/usual/usual-m-usd0.js.map +1 -0
  165. package/build/dex/usual/usual.d.ts +27 -0
  166. package/build/dex/usual/usual.js +125 -0
  167. package/build/dex/usual/usual.js.map +1 -0
  168. package/build/dex/usual-m-smart-m/config.d.ts +3 -0
  169. package/build/dex/usual-m-smart-m/config.js +13 -0
  170. package/build/dex/usual-m-smart-m/config.js.map +1 -0
  171. package/build/dex/usual-m-smart-m/types.d.ts +7 -0
  172. package/build/dex/usual-m-smart-m/types.js +3 -0
  173. package/build/dex/usual-m-smart-m/types.js.map +1 -0
  174. package/build/dex/usual-m-smart-m/usual-m-smart-m.d.ts +35 -0
  175. package/build/dex/usual-m-smart-m/usual-m-smart-m.js +161 -0
  176. package/build/dex/usual-m-smart-m/usual-m-smart-m.js.map +1 -0
  177. package/build/dex/usual-m-usd0/config.d.ts +3 -0
  178. package/build/dex/usual-m-usd0/config.js +14 -0
  179. package/build/dex/usual-m-usd0/config.js.map +1 -0
  180. package/build/dex/usual-m-usd0/types.d.ts +8 -0
  181. package/build/dex/usual-m-usd0/types.js +3 -0
  182. package/build/dex/usual-m-usd0/types.js.map +1 -0
  183. package/build/dex/usual-m-usd0/usual-m-usd0.d.ts +35 -0
  184. package/build/dex/usual-m-usd0/usual-m-usd0.js +159 -0
  185. package/build/dex/usual-m-usd0/usual-m-usd0.js.map +1 -0
  186. package/build/dex/weth/config.js +3 -0
  187. package/build/dex/weth/config.js.map +1 -1
  188. package/build/executor/Executor01BytecodeBuilder.js +2 -2
  189. package/build/executor/Executor01BytecodeBuilder.js.map +1 -1
  190. package/build/executor/Executor02BytecodeBuilder.js +2 -2
  191. package/build/executor/Executor02BytecodeBuilder.js.map +1 -1
  192. package/build/executor/Executor03BytecodeBuilder.js +2 -2
  193. package/build/executor/Executor03BytecodeBuilder.js.map +1 -1
  194. package/build/executor/ExecutorBytecodeBuilder.d.ts +3 -1
  195. package/build/executor/ExecutorBytecodeBuilder.js +35 -2
  196. package/build/executor/ExecutorBytecodeBuilder.js.map +1 -1
  197. package/build/generic-swap-transaction-builder.js +5 -1
  198. package/build/generic-swap-transaction-builder.js.map +1 -1
  199. package/build/types.d.ts +1 -0
  200. package/package.json +2 -1
  201. package/scripts/run-dex-integration-v3.ts +78 -0
  202. package/src/abi/balancer-v3/batch-router.json +989 -0
  203. package/src/abi/balancer-v3/router.json +1792 -0
  204. package/src/abi/balancer-v3/vault-extension.json +2834 -0
  205. package/src/abi/permit2.json +581 -0
  206. package/src/bigint-constants.ts +1 -0
  207. package/src/config.ts +29 -0
  208. package/src/constants.ts +4 -0
  209. package/src/dex/augustus-approvals.ts +52 -19
  210. package/src/dex/balancer-v3/balancer-v3-e2e.test.ts +275 -0
  211. package/src/dex/balancer-v3/balancer-v3-events.test.ts +223 -0
  212. package/src/dex/balancer-v3/balancer-v3-integration.test.ts +879 -0
  213. package/src/dex/balancer-v3/balancer-v3-pool.ts +656 -0
  214. package/src/dex/balancer-v3/balancer-v3.ts +538 -0
  215. package/src/dex/balancer-v3/config.ts +46 -0
  216. package/src/dex/balancer-v3/getGasCost.ts +37 -0
  217. package/src/dex/balancer-v3/getOnChainState.ts +326 -0
  218. package/src/dex/balancer-v3/getPoolsApi.ts +129 -0
  219. package/src/dex/balancer-v3/getTopPoolsApi.ts +96 -0
  220. package/src/dex/balancer-v3/optimizer.ts +66 -0
  221. package/src/dex/balancer-v3/stablePool.ts +78 -0
  222. package/src/dex/balancer-v3/types.ts +86 -0
  223. package/src/dex/balancer-v3/weightedPool.ts +2 -0
  224. package/src/dex/index.ts +4 -0
  225. package/src/dex/weth/config.ts +3 -0
  226. package/src/executor/Executor01BytecodeBuilder.ts +2 -0
  227. package/src/executor/Executor02BytecodeBuilder.ts +2 -0
  228. package/src/executor/Executor03BytecodeBuilder.ts +2 -0
  229. package/src/executor/ExecutorBytecodeBuilder.ts +63 -2
  230. package/src/generic-swap-transaction-builder.ts +6 -2
  231. package/src/types.ts +1 -0
  232. package/tests/constants-e2e.ts +66 -0
  233. package/build/abi/Aave_GSM.json +0 -751
  234. package/build/abi/Balancer.json +0 -257
  235. package/build/abi/BalancerV2.json +0 -1179
  236. package/build/abi/RamsesV2Pool.abi.json +0 -1554
  237. package/build/abi/RamsesV2Quoter.abi.json +0 -274
  238. package/build/abi/USDM.json +0 -807
  239. package/build/abi/UniswapV2Router.json +0 -397
  240. package/build/abi/angle-transmuter/ChainlinkEACAggregatorProxy.json +0 -509
  241. package/build/abi/curve-v1/CurveBUSDv2.abi.json +0 -1356
  242. package/build/abi/curve-v1/CurveTokenV1.json +0 -305
  243. package/build/abi/curve-v1/CurveTokenV2.json +0 -318
  244. package/build/abi/curve-v1/CurveV1StableNg.json +0 -1452
  245. package/build/abi/curve-v1/CurveV2Swap.json +0 -700
  246. package/build/abi/curve-v1/FactoryCryptoRegistry.json +0 -316
  247. package/build/abi/curve-v1/FactoryRegistry.json +0 -508
  248. package/build/abi/curve-v1/StableSwapAave.json +0 -1152
  249. package/build/abi/curve-v1/StableSwapBUSD.json +0 -814
  250. package/build/abi/curve-v1/StableSwapCompound.json +0 -814
  251. package/build/abi/curve-v1/StableSwapIDLE.json +0 -1253
  252. package/build/abi/curve-v1/StableSwapPax.json +0 -865
  253. package/build/abi/curve-v1/StableSwapSnow.json +0 -900
  254. package/build/abi/curve-v1/StableSwapUSDN.json +0 -1004
  255. package/build/abi/curve-v1/StableSwapUSDT.json +0 -814
  256. package/build/abi/curve-v1/StableSwapY.json +0 -814
  257. package/build/abi/inception/inception-ineth.json +0 -609
  258. package/build/abi/kyberdmm/kyber-storage.abi.json +0 -824
  259. package/build/abi/kyberdmm.abi.json +0 -1148
  260. package/build/abi/maverick-v2/MaverickV2Quoter.json +0 -278
  261. package/build/abi/nerve/nerve-metapool.json +0 -790
  262. package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +0 -193
  263. package/build/abi/velodrome-slipstream/VelodromeSlipstreamQuoterV2.abi.json +0 -267
  264. package/build/dex/balancer-v1/balancer-pools.json +0 -33333
  265. package/build/dex/bebop/websocket-fetcher.d.ts +0 -35
  266. package/build/dex/bebop/websocket-fetcher.js +0 -87
  267. package/build/dex/bebop/websocket-fetcher.js.map +0 -1
  268. package/build/dex/idle-dao/idle-dao-pool.d.ts +0 -56
  269. package/build/dex/idle-dao/idle-dao-pool.js +0 -176
  270. package/build/dex/idle-dao/idle-dao-pool.js.map +0 -1
  271. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +0 -16
  272. package/build/dex/idle-dao/idle-dao-pooling-pool.js +0 -57
  273. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +0 -1
  274. package/build/dex/idle-dao/scripts.d.ts +0 -9
  275. package/build/dex/idle-dao/scripts.js +0 -552
  276. package/build/dex/idle-dao/scripts.js.map +0 -1
  277. package/build/dex/inception/inception-native.d.ts +0 -43
  278. package/build/dex/inception/inception-native.js +0 -131
  279. package/build/dex/inception/inception-native.js.map +0 -1
  280. package/build/dex/inception/inception-pool.d.ts +0 -18
  281. package/build/dex/inception/inception-pool.js +0 -32
  282. package/build/dex/inception/inception-pool.js.map +0 -1
  283. package/build/dex/inception/inception-price-feed.d.ts +0 -19
  284. package/build/dex/inception/inception-price-feed.js +0 -51
  285. package/build/dex/inception/inception-price-feed.js.map +0 -1
  286. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +0 -16
  287. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -16
  288. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -16
  289. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -16
  290. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -16
  291. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -16
  292. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -16
  293. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdt-usdc-dai.json +0 -16
  294. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-eth-usdc.json +0 -9
  295. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-eth.json +0 -9
  296. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-wbtc.json +0 -9
  297. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-eth-steth.json +0 -9
  298. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-steth-eth.json +0 -9
  299. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-usdc-usdt.json +0 -9
  300. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-eth-usdc.json +0 -9
  301. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-eth.json +0 -9
  302. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-usdt.json +0 -9
  303. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -12
  304. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -7
  305. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -7
  306. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -7
  307. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -7
  308. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -12
  309. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-eth-usdc.json +0 -7
  310. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-usdc-eth.json +0 -7
  311. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +0 -78
  312. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -81
  313. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -78
  314. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -78
  315. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -81
  316. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -81
  317. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -81
  318. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdt-usdc-dai.json +0 -81
  319. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-eth-usdc.json +0 -64
  320. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-eth.json +0 -85
  321. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-wbtc.json +0 -64
  322. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-eth-steth.json +0 -52
  323. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-steth-eth.json +0 -52
  324. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-usdc-usdt.json +0 -52
  325. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-eth-usdc.json +0 -55
  326. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-eth.json +0 -55
  327. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-usdt.json +0 -55
  328. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -23
  329. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -37
  330. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -23
  331. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -23
  332. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -51
  333. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-univ3-usdt-dai-eth.json +0 -58
  334. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -23
  335. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -23
  336. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -9
  337. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -16
  338. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +0 -23
  339. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -12
  340. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -7
  341. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -12
  342. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -12
  343. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -7
  344. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-univ3-usdt-dai-eth.json +0 -7
  345. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -7
  346. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -7
  347. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -7
  348. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -7
  349. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -130
  350. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -136
  351. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -100
  352. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -100
  353. package/build/executor/fixtures/executor02/routes/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -166
  354. package/build/executor/fixtures/executor02/routes/price-route-multiswap-univ3-usdt-dai-eth.json +0 -190
  355. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -114
  356. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -114
  357. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -55
  358. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -73
  359. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +0 -82
@@ -0,0 +1,581 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" }
5
+ ],
6
+ "name": "AllowanceExpired",
7
+ "type": "error"
8
+ },
9
+ { "inputs": [], "name": "ExcessiveInvalidation", "type": "error" },
10
+ {
11
+ "inputs": [
12
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
13
+ ],
14
+ "name": "InsufficientAllowance",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
19
+ { "internalType": "uint256", "name": "maxAmount", "type": "uint256" }
20
+ ],
21
+ "name": "InvalidAmount",
22
+ "type": "error"
23
+ },
24
+ { "inputs": [], "name": "InvalidContractSignature", "type": "error" },
25
+ { "inputs": [], "name": "InvalidNonce", "type": "error" },
26
+ { "inputs": [], "name": "InvalidSignature", "type": "error" },
27
+ { "inputs": [], "name": "InvalidSignatureLength", "type": "error" },
28
+ { "inputs": [], "name": "InvalidSigner", "type": "error" },
29
+ { "inputs": [], "name": "LengthMismatch", "type": "error" },
30
+ {
31
+ "inputs": [
32
+ {
33
+ "internalType": "uint256",
34
+ "name": "signatureDeadline",
35
+ "type": "uint256"
36
+ }
37
+ ],
38
+ "name": "SignatureExpired",
39
+ "type": "error"
40
+ },
41
+ {
42
+ "anonymous": false,
43
+ "inputs": [
44
+ {
45
+ "indexed": true,
46
+ "internalType": "address",
47
+ "name": "owner",
48
+ "type": "address"
49
+ },
50
+ {
51
+ "indexed": true,
52
+ "internalType": "address",
53
+ "name": "token",
54
+ "type": "address"
55
+ },
56
+ {
57
+ "indexed": true,
58
+ "internalType": "address",
59
+ "name": "spender",
60
+ "type": "address"
61
+ },
62
+ {
63
+ "indexed": false,
64
+ "internalType": "uint160",
65
+ "name": "amount",
66
+ "type": "uint160"
67
+ },
68
+ {
69
+ "indexed": false,
70
+ "internalType": "uint48",
71
+ "name": "expiration",
72
+ "type": "uint48"
73
+ }
74
+ ],
75
+ "name": "Approval",
76
+ "type": "event"
77
+ },
78
+ {
79
+ "anonymous": false,
80
+ "inputs": [
81
+ {
82
+ "indexed": true,
83
+ "internalType": "address",
84
+ "name": "owner",
85
+ "type": "address"
86
+ },
87
+ {
88
+ "indexed": false,
89
+ "internalType": "address",
90
+ "name": "token",
91
+ "type": "address"
92
+ },
93
+ {
94
+ "indexed": false,
95
+ "internalType": "address",
96
+ "name": "spender",
97
+ "type": "address"
98
+ }
99
+ ],
100
+ "name": "Lockdown",
101
+ "type": "event"
102
+ },
103
+ {
104
+ "anonymous": false,
105
+ "inputs": [
106
+ {
107
+ "indexed": true,
108
+ "internalType": "address",
109
+ "name": "owner",
110
+ "type": "address"
111
+ },
112
+ {
113
+ "indexed": true,
114
+ "internalType": "address",
115
+ "name": "token",
116
+ "type": "address"
117
+ },
118
+ {
119
+ "indexed": true,
120
+ "internalType": "address",
121
+ "name": "spender",
122
+ "type": "address"
123
+ },
124
+ {
125
+ "indexed": false,
126
+ "internalType": "uint48",
127
+ "name": "newNonce",
128
+ "type": "uint48"
129
+ },
130
+ {
131
+ "indexed": false,
132
+ "internalType": "uint48",
133
+ "name": "oldNonce",
134
+ "type": "uint48"
135
+ }
136
+ ],
137
+ "name": "NonceInvalidation",
138
+ "type": "event"
139
+ },
140
+ {
141
+ "anonymous": false,
142
+ "inputs": [
143
+ {
144
+ "indexed": true,
145
+ "internalType": "address",
146
+ "name": "owner",
147
+ "type": "address"
148
+ },
149
+ {
150
+ "indexed": true,
151
+ "internalType": "address",
152
+ "name": "token",
153
+ "type": "address"
154
+ },
155
+ {
156
+ "indexed": true,
157
+ "internalType": "address",
158
+ "name": "spender",
159
+ "type": "address"
160
+ },
161
+ {
162
+ "indexed": false,
163
+ "internalType": "uint160",
164
+ "name": "amount",
165
+ "type": "uint160"
166
+ },
167
+ {
168
+ "indexed": false,
169
+ "internalType": "uint48",
170
+ "name": "expiration",
171
+ "type": "uint48"
172
+ },
173
+ {
174
+ "indexed": false,
175
+ "internalType": "uint48",
176
+ "name": "nonce",
177
+ "type": "uint48"
178
+ }
179
+ ],
180
+ "name": "Permit",
181
+ "type": "event"
182
+ },
183
+ {
184
+ "anonymous": false,
185
+ "inputs": [
186
+ {
187
+ "indexed": true,
188
+ "internalType": "address",
189
+ "name": "owner",
190
+ "type": "address"
191
+ },
192
+ {
193
+ "indexed": false,
194
+ "internalType": "uint256",
195
+ "name": "word",
196
+ "type": "uint256"
197
+ },
198
+ {
199
+ "indexed": false,
200
+ "internalType": "uint256",
201
+ "name": "mask",
202
+ "type": "uint256"
203
+ }
204
+ ],
205
+ "name": "UnorderedNonceInvalidation",
206
+ "type": "event"
207
+ },
208
+ {
209
+ "inputs": [],
210
+ "name": "DOMAIN_SEPARATOR",
211
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
212
+ "stateMutability": "view",
213
+ "type": "function"
214
+ },
215
+ {
216
+ "inputs": [
217
+ { "internalType": "address", "name": "", "type": "address" },
218
+ { "internalType": "address", "name": "", "type": "address" },
219
+ { "internalType": "address", "name": "", "type": "address" }
220
+ ],
221
+ "name": "allowance",
222
+ "outputs": [
223
+ { "internalType": "uint160", "name": "amount", "type": "uint160" },
224
+ { "internalType": "uint48", "name": "expiration", "type": "uint48" },
225
+ { "internalType": "uint48", "name": "nonce", "type": "uint48" }
226
+ ],
227
+ "stateMutability": "view",
228
+ "type": "function"
229
+ },
230
+ {
231
+ "inputs": [
232
+ { "internalType": "address", "name": "token", "type": "address" },
233
+ { "internalType": "address", "name": "spender", "type": "address" },
234
+ { "internalType": "uint160", "name": "amount", "type": "uint160" },
235
+ { "internalType": "uint48", "name": "expiration", "type": "uint48" }
236
+ ],
237
+ "name": "approve",
238
+ "outputs": [],
239
+ "stateMutability": "nonpayable",
240
+ "type": "function"
241
+ },
242
+ {
243
+ "inputs": [
244
+ { "internalType": "address", "name": "token", "type": "address" },
245
+ { "internalType": "address", "name": "spender", "type": "address" },
246
+ { "internalType": "uint48", "name": "newNonce", "type": "uint48" }
247
+ ],
248
+ "name": "invalidateNonces",
249
+ "outputs": [],
250
+ "stateMutability": "nonpayable",
251
+ "type": "function"
252
+ },
253
+ {
254
+ "inputs": [
255
+ { "internalType": "uint256", "name": "wordPos", "type": "uint256" },
256
+ { "internalType": "uint256", "name": "mask", "type": "uint256" }
257
+ ],
258
+ "name": "invalidateUnorderedNonces",
259
+ "outputs": [],
260
+ "stateMutability": "nonpayable",
261
+ "type": "function"
262
+ },
263
+ {
264
+ "inputs": [
265
+ {
266
+ "components": [
267
+ { "internalType": "address", "name": "token", "type": "address" },
268
+ { "internalType": "address", "name": "spender", "type": "address" }
269
+ ],
270
+ "internalType": "struct IAllowanceTransfer.TokenSpenderPair[]",
271
+ "name": "approvals",
272
+ "type": "tuple[]"
273
+ }
274
+ ],
275
+ "name": "lockdown",
276
+ "outputs": [],
277
+ "stateMutability": "nonpayable",
278
+ "type": "function"
279
+ },
280
+ {
281
+ "inputs": [
282
+ { "internalType": "address", "name": "", "type": "address" },
283
+ { "internalType": "uint256", "name": "", "type": "uint256" }
284
+ ],
285
+ "name": "nonceBitmap",
286
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
287
+ "stateMutability": "view",
288
+ "type": "function"
289
+ },
290
+ {
291
+ "inputs": [
292
+ { "internalType": "address", "name": "owner", "type": "address" },
293
+ {
294
+ "components": [
295
+ {
296
+ "components": [
297
+ { "internalType": "address", "name": "token", "type": "address" },
298
+ {
299
+ "internalType": "uint160",
300
+ "name": "amount",
301
+ "type": "uint160"
302
+ },
303
+ {
304
+ "internalType": "uint48",
305
+ "name": "expiration",
306
+ "type": "uint48"
307
+ },
308
+ { "internalType": "uint48", "name": "nonce", "type": "uint48" }
309
+ ],
310
+ "internalType": "struct IAllowanceTransfer.PermitDetails[]",
311
+ "name": "details",
312
+ "type": "tuple[]"
313
+ },
314
+ { "internalType": "address", "name": "spender", "type": "address" },
315
+ {
316
+ "internalType": "uint256",
317
+ "name": "sigDeadline",
318
+ "type": "uint256"
319
+ }
320
+ ],
321
+ "internalType": "struct IAllowanceTransfer.PermitBatch",
322
+ "name": "permitBatch",
323
+ "type": "tuple"
324
+ },
325
+ { "internalType": "bytes", "name": "signature", "type": "bytes" }
326
+ ],
327
+ "name": "permit",
328
+ "outputs": [],
329
+ "stateMutability": "nonpayable",
330
+ "type": "function"
331
+ },
332
+ {
333
+ "inputs": [
334
+ { "internalType": "address", "name": "owner", "type": "address" },
335
+ {
336
+ "components": [
337
+ {
338
+ "components": [
339
+ { "internalType": "address", "name": "token", "type": "address" },
340
+ {
341
+ "internalType": "uint160",
342
+ "name": "amount",
343
+ "type": "uint160"
344
+ },
345
+ {
346
+ "internalType": "uint48",
347
+ "name": "expiration",
348
+ "type": "uint48"
349
+ },
350
+ { "internalType": "uint48", "name": "nonce", "type": "uint48" }
351
+ ],
352
+ "internalType": "struct IAllowanceTransfer.PermitDetails",
353
+ "name": "details",
354
+ "type": "tuple"
355
+ },
356
+ { "internalType": "address", "name": "spender", "type": "address" },
357
+ {
358
+ "internalType": "uint256",
359
+ "name": "sigDeadline",
360
+ "type": "uint256"
361
+ }
362
+ ],
363
+ "internalType": "struct IAllowanceTransfer.PermitSingle",
364
+ "name": "permitSingle",
365
+ "type": "tuple"
366
+ },
367
+ { "internalType": "bytes", "name": "signature", "type": "bytes" }
368
+ ],
369
+ "name": "permit",
370
+ "outputs": [],
371
+ "stateMutability": "nonpayable",
372
+ "type": "function"
373
+ },
374
+ {
375
+ "inputs": [
376
+ {
377
+ "components": [
378
+ {
379
+ "components": [
380
+ { "internalType": "address", "name": "token", "type": "address" },
381
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
382
+ ],
383
+ "internalType": "struct ISignatureTransfer.TokenPermissions",
384
+ "name": "permitted",
385
+ "type": "tuple"
386
+ },
387
+ { "internalType": "uint256", "name": "nonce", "type": "uint256" },
388
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" }
389
+ ],
390
+ "internalType": "struct ISignatureTransfer.PermitTransferFrom",
391
+ "name": "permit",
392
+ "type": "tuple"
393
+ },
394
+ {
395
+ "components": [
396
+ { "internalType": "address", "name": "to", "type": "address" },
397
+ {
398
+ "internalType": "uint256",
399
+ "name": "requestedAmount",
400
+ "type": "uint256"
401
+ }
402
+ ],
403
+ "internalType": "struct ISignatureTransfer.SignatureTransferDetails",
404
+ "name": "transferDetails",
405
+ "type": "tuple"
406
+ },
407
+ { "internalType": "address", "name": "owner", "type": "address" },
408
+ { "internalType": "bytes", "name": "signature", "type": "bytes" }
409
+ ],
410
+ "name": "permitTransferFrom",
411
+ "outputs": [],
412
+ "stateMutability": "nonpayable",
413
+ "type": "function"
414
+ },
415
+ {
416
+ "inputs": [
417
+ {
418
+ "components": [
419
+ {
420
+ "components": [
421
+ { "internalType": "address", "name": "token", "type": "address" },
422
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
423
+ ],
424
+ "internalType": "struct ISignatureTransfer.TokenPermissions[]",
425
+ "name": "permitted",
426
+ "type": "tuple[]"
427
+ },
428
+ { "internalType": "uint256", "name": "nonce", "type": "uint256" },
429
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" }
430
+ ],
431
+ "internalType": "struct ISignatureTransfer.PermitBatchTransferFrom",
432
+ "name": "permit",
433
+ "type": "tuple"
434
+ },
435
+ {
436
+ "components": [
437
+ { "internalType": "address", "name": "to", "type": "address" },
438
+ {
439
+ "internalType": "uint256",
440
+ "name": "requestedAmount",
441
+ "type": "uint256"
442
+ }
443
+ ],
444
+ "internalType": "struct ISignatureTransfer.SignatureTransferDetails[]",
445
+ "name": "transferDetails",
446
+ "type": "tuple[]"
447
+ },
448
+ { "internalType": "address", "name": "owner", "type": "address" },
449
+ { "internalType": "bytes", "name": "signature", "type": "bytes" }
450
+ ],
451
+ "name": "permitTransferFrom",
452
+ "outputs": [],
453
+ "stateMutability": "nonpayable",
454
+ "type": "function"
455
+ },
456
+ {
457
+ "inputs": [
458
+ {
459
+ "components": [
460
+ {
461
+ "components": [
462
+ { "internalType": "address", "name": "token", "type": "address" },
463
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
464
+ ],
465
+ "internalType": "struct ISignatureTransfer.TokenPermissions",
466
+ "name": "permitted",
467
+ "type": "tuple"
468
+ },
469
+ { "internalType": "uint256", "name": "nonce", "type": "uint256" },
470
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" }
471
+ ],
472
+ "internalType": "struct ISignatureTransfer.PermitTransferFrom",
473
+ "name": "permit",
474
+ "type": "tuple"
475
+ },
476
+ {
477
+ "components": [
478
+ { "internalType": "address", "name": "to", "type": "address" },
479
+ {
480
+ "internalType": "uint256",
481
+ "name": "requestedAmount",
482
+ "type": "uint256"
483
+ }
484
+ ],
485
+ "internalType": "struct ISignatureTransfer.SignatureTransferDetails",
486
+ "name": "transferDetails",
487
+ "type": "tuple"
488
+ },
489
+ { "internalType": "address", "name": "owner", "type": "address" },
490
+ { "internalType": "bytes32", "name": "witness", "type": "bytes32" },
491
+ {
492
+ "internalType": "string",
493
+ "name": "witnessTypeString",
494
+ "type": "string"
495
+ },
496
+ { "internalType": "bytes", "name": "signature", "type": "bytes" }
497
+ ],
498
+ "name": "permitWitnessTransferFrom",
499
+ "outputs": [],
500
+ "stateMutability": "nonpayable",
501
+ "type": "function"
502
+ },
503
+ {
504
+ "inputs": [
505
+ {
506
+ "components": [
507
+ {
508
+ "components": [
509
+ { "internalType": "address", "name": "token", "type": "address" },
510
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
511
+ ],
512
+ "internalType": "struct ISignatureTransfer.TokenPermissions[]",
513
+ "name": "permitted",
514
+ "type": "tuple[]"
515
+ },
516
+ { "internalType": "uint256", "name": "nonce", "type": "uint256" },
517
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" }
518
+ ],
519
+ "internalType": "struct ISignatureTransfer.PermitBatchTransferFrom",
520
+ "name": "permit",
521
+ "type": "tuple"
522
+ },
523
+ {
524
+ "components": [
525
+ { "internalType": "address", "name": "to", "type": "address" },
526
+ {
527
+ "internalType": "uint256",
528
+ "name": "requestedAmount",
529
+ "type": "uint256"
530
+ }
531
+ ],
532
+ "internalType": "struct ISignatureTransfer.SignatureTransferDetails[]",
533
+ "name": "transferDetails",
534
+ "type": "tuple[]"
535
+ },
536
+ { "internalType": "address", "name": "owner", "type": "address" },
537
+ { "internalType": "bytes32", "name": "witness", "type": "bytes32" },
538
+ {
539
+ "internalType": "string",
540
+ "name": "witnessTypeString",
541
+ "type": "string"
542
+ },
543
+ { "internalType": "bytes", "name": "signature", "type": "bytes" }
544
+ ],
545
+ "name": "permitWitnessTransferFrom",
546
+ "outputs": [],
547
+ "stateMutability": "nonpayable",
548
+ "type": "function"
549
+ },
550
+ {
551
+ "inputs": [
552
+ {
553
+ "components": [
554
+ { "internalType": "address", "name": "from", "type": "address" },
555
+ { "internalType": "address", "name": "to", "type": "address" },
556
+ { "internalType": "uint160", "name": "amount", "type": "uint160" },
557
+ { "internalType": "address", "name": "token", "type": "address" }
558
+ ],
559
+ "internalType": "struct IAllowanceTransfer.AllowanceTransferDetails[]",
560
+ "name": "transferDetails",
561
+ "type": "tuple[]"
562
+ }
563
+ ],
564
+ "name": "transferFrom",
565
+ "outputs": [],
566
+ "stateMutability": "nonpayable",
567
+ "type": "function"
568
+ },
569
+ {
570
+ "inputs": [
571
+ { "internalType": "address", "name": "from", "type": "address" },
572
+ { "internalType": "address", "name": "to", "type": "address" },
573
+ { "internalType": "uint160", "name": "amount", "type": "uint160" },
574
+ { "internalType": "address", "name": "token", "type": "address" }
575
+ ],
576
+ "name": "transferFrom",
577
+ "outputs": [],
578
+ "stateMutability": "nonpayable",
579
+ "type": "function"
580
+ }
581
+ ]
@@ -11,6 +11,7 @@ export const BI_MAX_INT = BigInt(MAX_INT);
11
11
  export const BI_MAX_UINT8 = 2n ** 8n - 1n;
12
12
  export const BI_MAX_UINT16 = 2n ** 16n - 1n;
13
13
  export const BI_MAX_UINT32 = 2n ** 32n - 1n;
14
+ export const BI_MAX_UINT48 = 2n ** 48n - 1n;
14
15
  export const BI_MAX_UINT64 = 2n ** 64n - 1n;
15
16
  export const BI_MAX_UINT96 = 2n ** 96n - 1n;
16
17
  export const BI_MAX_UINT128 = 2n ** 128n - 1n;
package/src/config.ts CHANGED
@@ -454,6 +454,35 @@ const baseConfigs: { [network: number]: BaseConfig } = {
454
454
  rpcPollingBlocksBackToTriggerUpdate: 3,
455
455
  forceRpcFallbackDexs: [],
456
456
  },
457
+ [Network.SEPOLIA]: {
458
+ network: Network.SEPOLIA,
459
+ networkName: 'Sepolia',
460
+ isTestnet: false,
461
+ nativeTokenName: 'Ether',
462
+ nativeTokenSymbol: 'ETH',
463
+ wrappedNativeTokenAddress: '0x7b79995e5f793a07bc00c21412e50ecae098e7f9',
464
+ hasEIP1559: true,
465
+ augustusAddress: '0x0000000000000000000000000000000000000000',
466
+ augustusRFQAddress: '0xF6322953d6bFcEACf77D90BC9a01B055249D44fE',
467
+ tokenTransferProxyAddress: '0x0000000000000000000000000000000000000000',
468
+ multicallV2Address: '0xcA11bde05977b3631167028862bE2a173976CA11',
469
+ privateHttpProvider: process.env.HTTP_PROVIDER_11155111,
470
+ augustusV6Address: '0x6a000f20005980200259b80c5102003040001068',
471
+ adapterAddresses: {},
472
+ rfqConfigs: {},
473
+ hashFlowDisabledMMs: [],
474
+ executorsAddresses: {
475
+ Executor01: '0x000010036c0190e009a000d0fc3541100a07380a',
476
+ Executor02: '0x00c600b30fb0400701010f4b080409018b9006e0',
477
+ Executor03: '0xe009f00e200a090090fc70e02d70b232000c0802',
478
+ },
479
+ uniswapV2ExchangeRouterAddress:
480
+ '0x0000000000000000000000000000000000000000',
481
+ rpcPollingMaxAllowedStateDelayInBlocks: 0,
482
+ rpcPollingBlocksBackToTriggerUpdate: 0,
483
+ uniswapV3EventLoggingSampleRate: 0,
484
+ forceRpcFallbackDexs: [],
485
+ },
457
486
  };
458
487
 
459
488
  // Should not be used, except by internal test code
package/src/constants.ts CHANGED
@@ -7,6 +7,9 @@ export const PORT_TEST_SERVER = process.env.TEST_PORT;
7
7
  export const ETHER_ADDRESS =
8
8
  '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE'.toLowerCase();
9
9
 
10
+ // address is the same on all chains
11
+ export const PERMIT2_ADDRESS = '0x000000000022d473030f116ddee9f6b43ac78ba3';
12
+
10
13
  export const NULL_ADDRESS = '0x0000000000000000000000000000000000000000';
11
14
 
12
15
  export const CACHE_PREFIX = 'dl';
@@ -41,6 +44,7 @@ export enum Network {
41
44
  ARBITRUM = 42161,
42
45
  OPTIMISM = 10,
43
46
  BASE = 8453,
47
+ SEPOLIA = 11155111,
44
48
  GNOSIS = 100,
45
49
  }
46
50
  export const SUBGRAPH_TIMEOUT = 20 * 1000;