@paraswap/dex-lib 4.1.20 → 4.1.21

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 (1211) hide show
  1. package/build/abi/aave-gsm/Pool.json +1459 -0
  2. package/build/dex/aave-gsm/aave-gsm-pool.d.ts +7 -1
  3. package/build/dex/aave-gsm/aave-gsm-pool.js +46 -4
  4. package/build/dex/aave-gsm/aave-gsm-pool.js.map +1 -1
  5. package/build/dex/aave-gsm/aave-gsm.js +37 -30
  6. package/build/dex/aave-gsm/aave-gsm.js.map +1 -1
  7. package/build/dex/aave-gsm/config.js +6 -5
  8. package/build/dex/aave-gsm/config.js.map +1 -1
  9. package/build/dex/aave-gsm/types.d.ts +5 -2
  10. package/build/dex/pancakeswap-v3/config.js +1 -1
  11. package/build/dex/pancakeswap-v3/config.js.map +1 -1
  12. package/build/dex/uniswap-v3/config.js +2 -2
  13. package/build/dex/uniswap-v3/config.js.map +1 -1
  14. package/build/dex/wombat/wombat.d.ts +0 -1
  15. package/build/dex/wombat/wombat.js +2 -44
  16. package/build/dex/wombat/wombat.js.map +1 -1
  17. package/build/dex/woo-fi-v2/config.js +16 -15
  18. package/build/dex/woo-fi-v2/config.js.map +1 -1
  19. package/package.json +1 -1
  20. package/.env.example +0 -15
  21. package/.eslintrc.js +0 -65
  22. package/.github/workflows/ci.yaml +0 -22
  23. package/.husky/pre-commit +0 -4
  24. package/.prettierrc +0 -10
  25. package/dex-template/__DexName__-e2e.test.ts.template +0 -155
  26. package/dex-template/__DexName__-events.test.ts.template +0 -110
  27. package/dex-template/__DexName__-integration.test.ts.template +0 -251
  28. package/dex-template/__DexName__-pool.ts.template +0 -91
  29. package/dex-template/__DexName__.ts.template +0 -156
  30. package/dex-template/config.ts.template +0 -9
  31. package/dex-template/types.ts.template +0 -22
  32. package/funding.json +0 -5
  33. package/jest.config.js +0 -10
  34. package/scripts/dex-integration.ts +0 -164
  35. package/scripts/fetch-event-blocknumber.ts +0 -51
  36. package/scripts/generate-bytecode.ts +0 -11
  37. package/scripts/run-dex-integration-v3.ts +0 -78
  38. package/scripts/run-dex-integration.ts +0 -95
  39. package/src/abi/AaveV2_lending_pool.json +0 -53
  40. package/src/abi/AaveV3_lending_pool.json +0 -1715
  41. package/src/abi/Balancer.json +0 -257
  42. package/src/abi/BalancerCustomMulticall.json +0 -26
  43. package/src/abi/BalancerV1ExchangeProxy.json +0 -377
  44. package/src/abi/BalancerV1Pool.json +0 -1630
  45. package/src/abi/BalancerV2.json +0 -1179
  46. package/src/abi/Bancor.json +0 -392
  47. package/src/abi/Compound_CETH.json +0 -12
  48. package/src/abi/Curve.json +0 -54
  49. package/src/abi/CurveV2.json +0 -700
  50. package/src/abi/DirectSwap.json +0 -1018
  51. package/src/abi/ERC1155.abi.json +0 -459
  52. package/src/abi/ERC1271.abi.json +0 -25
  53. package/src/abi/ERC20.abi.json +0 -288
  54. package/src/abi/ERC4626.json +0 -791
  55. package/src/abi/ERC721.abi.json +0 -165
  56. package/src/abi/IParaswap.json +0 -3059
  57. package/src/abi/RamsesV2Pool.abi.json +0 -1554
  58. package/src/abi/RamsesV2Quoter.abi.json +0 -274
  59. package/src/abi/RamsesV2StateMulticall.abi.json +0 -891
  60. package/src/abi/Redstone.json +0 -739
  61. package/src/abi/SSPM.json +0 -829
  62. package/src/abi/SimpleSwapHelperRouter.json +0 -38
  63. package/src/abi/Smoothy.json +0 -1049
  64. package/src/abi/StablePool.json +0 -1035
  65. package/src/abi/StaderOracle.json +0 -2170
  66. package/src/abi/TraderJoeV21Router.json +0 -1489
  67. package/src/abi/USDM.json +0 -807
  68. package/src/abi/UniswapV2ExchangeRouter.json +0 -84
  69. package/src/abi/UniswapV2Router.json +0 -397
  70. package/src/abi/UniswapV3Router.json +0 -274
  71. package/src/abi/aave-gsm/Aave_GSM.json +0 -751
  72. package/src/abi/aave-gsm/IFeeStrategy.json +0 -78
  73. package/src/abi/aave-v3-weth-gateway.json +0 -290
  74. package/src/abi/aave-weth-gateway-avalanche.json +0 -242
  75. package/src/abi/aave-weth-gateway-polygon.json +0 -242
  76. package/src/abi/aave-weth-gateway.json +0 -38
  77. package/src/abi/aavev3stata/Factory.json +0 -128
  78. package/src/abi/aavev3stata/Token.json +0 -735
  79. package/src/abi/aavev3statav2/Factory.json +0 -131
  80. package/src/abi/aavev3statav2/Pool.json +0 -1459
  81. package/src/abi/aavev3statav2/Token.json +0 -997
  82. package/src/abi/aerodrome/aerodrome-pool-factory.json +0 -586
  83. package/src/abi/algebra/AlgebraFactory-v1_1.abi.json +0 -250
  84. package/src/abi/algebra/AlgebraPool-v1_1.abi.json +0 -727
  85. package/src/abi/algebra/AlgebraPool-v1_9.abi.json +0 -756
  86. package/src/abi/algebra/AlgebraQuoter.abi.json +0 -138
  87. package/src/abi/algebra/AlgebraStateMulticall.abi.json +0 -801
  88. package/src/abi/algebra/SwapRouter.json +0 -281
  89. package/src/abi/angle/stagToken.json +0 -963
  90. package/src/abi/angle-transmuter/ChainlinkAccessControlledOffchainAggregator.json +0 -1246
  91. package/src/abi/angle-transmuter/ChainlinkEACAggregatorProxy.json +0 -509
  92. package/src/abi/angle-transmuter/MorphoOracle.json +0 -193
  93. package/src/abi/angle-transmuter/MorphoVault.json +0 -2506
  94. package/src/abi/angle-transmuter/Pyth.json +0 -1534
  95. package/src/abi/angle-transmuter/Transmuter.json +0 -1711
  96. package/src/abi/angle-transmuter/TransmuterSidechain.json +0 -1798
  97. package/src/abi/api3-proxy.json +0 -53
  98. package/src/abi/api3-server-v1.json +0 -463
  99. package/src/abi/augustus-v6/ABI.json +0 -1572
  100. package/src/abi/augustus.json +0 -375
  101. package/src/abi/balancer-v2/ComposableStable.json +0 -1391
  102. package/src/abi/balancer-v2/gyro-e.abi.json +0 -1595
  103. package/src/abi/balancer-v2/linearPoolAbi.json +0 -1062
  104. package/src/abi/balancer-v2/meta-stable-pool.json +0 -1437
  105. package/src/abi/balancer-v2/stable-pool.json +0 -1053
  106. package/src/abi/balancer-v2/vault.json +0 -918
  107. package/src/abi/balancer-v2/weighted-pool.json +0 -1142
  108. package/src/abi/balancer-v3/batch-router.json +0 -989
  109. package/src/abi/balancer-v3/directionalFeeHook.json +0 -684
  110. package/src/abi/balancer-v3/router.json +0 -1792
  111. package/src/abi/balancer-v3/stableSurgeHook.json +0 -976
  112. package/src/abi/balancer-v3/vault-extension.json +0 -2834
  113. package/src/abi/bebop/BebopSettlement.abi.json +0 -2137
  114. package/src/abi/benqi/staked-avax.json +0 -954
  115. package/src/abi/cables/CablesMainnetRFQ.json +0 -1083
  116. package/src/abi/camelot/CamelotFactory.json +0 -494
  117. package/src/abi/camelot/CamelotPair.json +0 -1027
  118. package/src/abi/chainlink.json +0 -323
  119. package/src/abi/concentrator/arUSD.json +0 -568
  120. package/src/abi/concentrator/arUSD5115.json +0 -1746
  121. package/src/abi/curve-v1/CurveBUSDv2.abi.json +0 -1356
  122. package/src/abi/curve-v1/CurveTokenV1.json +0 -305
  123. package/src/abi/curve-v1/CurveTokenV2.json +0 -318
  124. package/src/abi/curve-v1/CurveV1StableNg.json +0 -1452
  125. package/src/abi/curve-v1/CurveV2Swap.json +0 -700
  126. package/src/abi/curve-v1/FactoryCryptoRegistry.json +0 -316
  127. package/src/abi/curve-v1/FactoryRegistry.json +0 -508
  128. package/src/abi/curve-v1/StableSwap3Pool.json +0 -838
  129. package/src/abi/curve-v1/StableSwapAave.json +0 -1152
  130. package/src/abi/curve-v1/StableSwapBBTC.json +0 -1017
  131. package/src/abi/curve-v1/StableSwapBUSD.json +0 -814
  132. package/src/abi/curve-v1/StableSwapCompound.json +0 -814
  133. package/src/abi/curve-v1/StableSwapDUSD.json +0 -1004
  134. package/src/abi/curve-v1/StableSwapEURS.json +0 -868
  135. package/src/abi/curve-v1/StableSwapGUSD.json +0 -1004
  136. package/src/abi/curve-v1/StableSwapHBTC.json +0 -838
  137. package/src/abi/curve-v1/StableSwapHUSD.json +0 -1004
  138. package/src/abi/curve-v1/StableSwapIDLE.json +0 -1253
  139. package/src/abi/curve-v1/StableSwapLinkUSD.json +0 -1004
  140. package/src/abi/curve-v1/StableSwapMUSD.json +0 -1004
  141. package/src/abi/curve-v1/StableSwapOBTC.json +0 -1017
  142. package/src/abi/curve-v1/StableSwapPBTC.json +0 -1017
  143. package/src/abi/curve-v1/StableSwapPax.json +0 -865
  144. package/src/abi/curve-v1/StableSwapRSV.json +0 -1004
  145. package/src/abi/curve-v1/StableSwapRen.json +0 -851
  146. package/src/abi/curve-v1/StableSwapSBTC.json +0 -851
  147. package/src/abi/curve-v1/StableSwapSETH.json +0 -850
  148. package/src/abi/curve-v1/StableSwapSLINK.json +0 -899
  149. package/src/abi/curve-v1/StableSwapSTETH.json +0 -895
  150. package/src/abi/curve-v1/StableSwapSUSD.json +0 -760
  151. package/src/abi/curve-v1/StableSwapSnow.json +0 -900
  152. package/src/abi/curve-v1/StableSwapTBTC.json +0 -1017
  153. package/src/abi/curve-v1/StableSwapUSDK.json +0 -1004
  154. package/src/abi/curve-v1/StableSwapUSDN.json +0 -1004
  155. package/src/abi/curve-v1/StableSwapUSDT.json +0 -814
  156. package/src/abi/curve-v1/StableSwapUST.json +0 -1017
  157. package/src/abi/curve-v1/StableSwapY.json +0 -814
  158. package/src/abi/curve-v1-factory/CurveV1Router.abi.json +0 -331
  159. package/src/abi/curve-v1-factory/FactoryCurveV1.json +0 -508
  160. package/src/abi/curve-v1-factory/ThreePool.json +0 -468
  161. package/src/abi/curve-v2/GenericFactoryZap.json +0 -233
  162. package/src/abi/dexalot/DexalotMainnetRFQ.json +0 -952
  163. package/src/abi/dodo-v2-proxy.json +0 -565
  164. package/src/abi/ekubo/core.json +0 -1266
  165. package/src/abi/ekubo/data-fetcher.json +0 -161
  166. package/src/abi/ekubo/router.json +0 -803
  167. package/src/abi/erc20.json +0 -308
  168. package/src/abi/etherfi/eETHPool.json +0 -9
  169. package/src/abi/etherfi/weETH.json +0 -20
  170. package/src/abi/fluid-dex/dexFactory.abi.json +0 -506
  171. package/src/abi/fluid-dex/fluid-dex.abi.json +0 -1476
  172. package/src/abi/fluid-dex/liquidityUserModule.abi.json +0 -145
  173. package/src/abi/fluid-dex/resolver.abi.json +0 -2030
  174. package/src/abi/fx-protocol/FxMarket.json +0 -1284
  175. package/src/abi/fx-protocol/FxUSD.json +0 -1227
  176. package/src/abi/fx-protocol/weETHOralce.json +0 -676
  177. package/src/abi/gmx/fast-price-events.json +0 -70
  178. package/src/abi/gmx/fast-price-feed.json +0 -748
  179. package/src/abi/gmx/reader.json +0 -337
  180. package/src/abi/gmx/vault-price-feed.json +0 -477
  181. package/src/abi/gmx/vault.json +0 -2002
  182. package/src/abi/hashflow/HashflowRouter.abi.json +0 -1539
  183. package/src/abi/idle-dao/idle-cdo-factory.json +0 -38
  184. package/src/abi/idle-dao/idle-cdo.json +0 -1245
  185. package/src/abi/infusion/InfusionFactory.json +0 -147
  186. package/src/abi/infusion/InfusionPair.json +0 -658
  187. package/src/abi/infusion/InfusionRouter.json +0 -442
  188. package/src/abi/jarvis/ChainlinkAccessControlledOffchainAggregator.json +0 -1009
  189. package/src/abi/jarvis/SynthereumPriceFeed.json +0 -381
  190. package/src/abi/jarvis/jarvis-v6-pool.json +0 -1041
  191. package/src/abi/kyberdmm/kyber-dmm-exchange-router.abi.json +0 -1148
  192. package/src/abi/kyberdmm/kyber-dmm-factory.abi.json +0 -335
  193. package/src/abi/kyberdmm/kyber-dmm-pool.abi.json +0 -803
  194. package/src/abi/kyberdmm/kyber-storage.abi.json +0 -824
  195. package/src/abi/kyberdmm.abi.json +0 -1148
  196. package/src/abi/lite-psm/dai.json +0 -333
  197. package/src/abi/lite-psm/psm.json +0 -468
  198. package/src/abi/lite-psm/usdc.json +0 -814
  199. package/src/abi/lite-psm/usdsPsm.json +0 -163
  200. package/src/abi/m-token/WrappedM.abi.json +0 -1708
  201. package/src/abi/maker-psm/pot.json +0 -322
  202. package/src/abi/maker-psm/psm.json +0 -243
  203. package/src/abi/maker-psm/vat.json +0 -363
  204. package/src/abi/maverick-v1/pool-inspector.json +0 -216
  205. package/src/abi/maverick-v1/pool.json +0 -1111
  206. package/src/abi/maverick-v1/router.json +0 -389
  207. package/src/abi/maverick-v2/MaverickV2Pool.json +0 -1234
  208. package/src/abi/maverick-v2/MaverickV2PoolLens.json +0 -1232
  209. package/src/abi/maverick-v2/MaverickV2Quoter.json +0 -278
  210. package/src/abi/maverick-v2/MaverickV2Router.json +0 -778
  211. package/src/abi/multi-v2.json +0 -313
  212. package/src/abi/nerve/axial-pool.json +0 -693
  213. package/src/abi/nerve/iron-v2-pool.json +0 -785
  214. package/src/abi/nerve/nerve-metapool.json +0 -790
  215. package/src/abi/nerve/nerve-pool.json +0 -1035
  216. package/src/abi/nomiswap-v2/nomiswap-v2-pool.json +0 -773
  217. package/src/abi/oswap/oswap.abi.json +0 -452
  218. package/src/abi/pancakeswap-v3/PancakeV3StateMulticall.abi.json +0 -781
  219. package/src/abi/pancakeswap-v3/PancakeswapV3Factory.abi.json +0 -300
  220. package/src/abi/pancakeswap-v3/PancakeswapV3Pool.abi.json +0 -1039
  221. package/src/abi/pancakeswap-v3/PancakeswapV3Quoter.abi.json +0 -285
  222. package/src/abi/pancakeswap-v3/PancakeswapV3Router.abi.json +0 -583
  223. package/src/abi/paraswap-limit-orders/AugustusRFQ.abi.json +0 -1081
  224. package/src/abi/permit/IERC20Permit.json +0 -45
  225. package/src/abi/permit/IERC20PermitLegacy.json +0 -50
  226. package/src/abi/permit2.json +0 -581
  227. package/src/abi/polygon-migration/PolygonMigration.abi.json +0 -364
  228. package/src/abi/quick-perps/fast-price-events.json +0 -70
  229. package/src/abi/quick-perps/fast-price-feed.json +0 -741
  230. package/src/abi/quick-perps/reader.json +0 -313
  231. package/src/abi/quick-perps/vault-price-feed.json +0 -323
  232. package/src/abi/quick-perps/vault.json +0 -1953
  233. package/src/abi/ramses-v2/RamsesV2Pool.abi.json +0 -1599
  234. package/src/abi/rswETH.json +0 -1142
  235. package/src/abi/sdai/PSM3.abi.json +0 -721
  236. package/src/abi/sdai/SSRAuthOracle.abi.json +0 -522
  237. package/src/abi/sdai/SavingsDai.abi.json +0 -877
  238. package/src/abi/sdai/SavingsUSDS.abi.json +0 -720
  239. package/src/abi/sky-converter/DaiUsdsConverter.json +0 -116
  240. package/src/abi/sky-converter/MkrSkyConverter.json +0 -118
  241. package/src/abi/solidly/SolidlyFactory.json +0 -147
  242. package/src/abi/solidly/SolidlyPair.json +0 -658
  243. package/src/abi/solidly-v3/SolidlyV3Pool.abi.json +0 -738
  244. package/src/abi/solidly-v3/SolidlyV3StateMulticall.abi.json +0 -375
  245. package/src/abi/stETH.json +0 -735
  246. package/src/abi/stkGHO.json +0 -1131
  247. package/src/abi/swETH.json +0 -1086
  248. package/src/abi/swaap-v2/vault.json +0 -918
  249. package/src/abi/synthetix/CombinedSynthetix.abi.json +0 -422
  250. package/src/abi/uniswap-v2/biswap-pool.json +0 -501
  251. package/src/abi/uniswap-v2/excalibur-pool.json +0 -881
  252. package/src/abi/uniswap-v2/mdex-factory.json +0 -759
  253. package/src/abi/uniswap-v2/uniswap-v2-factory.json +0 -125
  254. package/src/abi/uniswap-v2/uniswap-v2-pool.json +0 -461
  255. package/src/abi/uniswap-v3/UniswapMulti.abi.json +0 -52
  256. package/src/abi/uniswap-v3/UniswapV3Factory.abi.json +0 -148
  257. package/src/abi/uniswap-v3/UniswapV3Pool.abi.json +0 -988
  258. package/src/abi/uniswap-v3/UniswapV3Quoter.abi.json +0 -193
  259. package/src/abi/uniswap-v3/UniswapV3QuoterV2.abi.json +0 -155
  260. package/src/abi/uniswap-v3/UniswapV3Router.abi.json +0 -274
  261. package/src/abi/uniswap-v3/UniswapV3StateMulticall.abi.json +0 -781
  262. package/src/abi/usual-bond/usd0pp.abi.json +0 -867
  263. package/src/abi/usual-m-usd0/usualCollateralDao.abi.json +0 -681
  264. package/src/abi/usual-m-wrapped-m/usualM.abi.json +0 -509
  265. package/src/abi/usual-pp/abi.json +0 -750
  266. package/src/abi/velodrome-slipstream/VelodromeSlipstreamFactory.abi.json +0 -579
  267. package/src/abi/velodrome-slipstream/VelodromeSlipstreamPool.abi.json +0 -1275
  268. package/src/abi/velodrome-slipstream/VelodromeSlipstreamQuoterV2.abi.json +0 -267
  269. package/src/abi/velodrome-slipstream/VelodromeSlipstreamStateMulticall.abi.json +0 -766
  270. package/src/abi/weth.abi.json +0 -153
  271. package/src/abi/wombat/asset.json +0 -743
  272. package/src/abi/wombat/bmw.json +0 -1247
  273. package/src/abi/wombat/pool-v2.json +0 -1289
  274. package/src/abi/wombat/pool-v3.json +0 -2013
  275. package/src/abi/woo-fi-v2/IntegrationHelper.abi.json +0 -116
  276. package/src/abi/woo-fi-v2/WooOracleV2.abi.json +0 -358
  277. package/src/abi/woo-fi-v2/WooPPV2.abi.json +0 -580
  278. package/src/abi/wstETH.json +0 -252
  279. package/src/bigint-constants.ts +0 -21
  280. package/src/bignumber-constants.ts +0 -20
  281. package/src/calldata-gas-cost.ts +0 -26
  282. package/src/composed-event-subscriber.ts +0 -131
  283. package/src/config.ts +0 -580
  284. package/src/constants.ts +0 -74
  285. package/src/dex/aave-gsm/aave-gsm-e2e.test.ts +0 -110
  286. package/src/dex/aave-gsm/aave-gsm-events.test.ts +0 -82
  287. package/src/dex/aave-gsm/aave-gsm-gas-estimation.test.ts +0 -32
  288. package/src/dex/aave-gsm/aave-gsm-integration.test.ts +0 -522
  289. package/src/dex/aave-gsm/aave-gsm-pool.ts +0 -225
  290. package/src/dex/aave-gsm/aave-gsm.ts +0 -431
  291. package/src/dex/aave-gsm/config.ts +0 -16
  292. package/src/dex/aave-gsm/types.ts +0 -24
  293. package/src/dex/aave-v2/aave-v2-e2e.test.ts +0 -287
  294. package/src/dex/aave-v2/aave-v2-gas-estimation.test.ts +0 -28
  295. package/src/dex/aave-v2/aave-v2-integration.test.ts +0 -100
  296. package/src/dex/aave-v2/aave-v2.ts +0 -409
  297. package/src/dex/aave-v2/config.ts +0 -56
  298. package/src/dex/aave-v2/tokenlist.json +0 -904
  299. package/src/dex/aave-v2/tokens.ts +0 -76
  300. package/src/dex/aave-v2/types.ts +0 -43
  301. package/src/dex/aave-v3/aave-v3-e2e.test.ts +0 -578
  302. package/src/dex/aave-v3/aave-v3-gas-estimation.test.ts +0 -66
  303. package/src/dex/aave-v3/aave-v3-integration.test.ts +0 -148
  304. package/src/dex/aave-v3/aave-v3.ts +0 -331
  305. package/src/dex/aave-v3/config.ts +0 -157
  306. package/src/dex/aave-v3/tokens.ts +0 -68
  307. package/src/dex/aave-v3/types.ts +0 -46
  308. package/src/dex/aave-v3/utils.ts +0 -153
  309. package/src/dex/aave-v3-stata/aave-v3-stata-e2e.test.ts +0 -355
  310. package/src/dex/aave-v3-stata/aave-v3-stata-gas-estimation.test.ts +0 -41
  311. package/src/dex/aave-v3-stata/aave-v3-stata-integration.test.ts +0 -282
  312. package/src/dex/aave-v3-stata/aave-v3-stata.ts +0 -530
  313. package/src/dex/aave-v3-stata/config.ts +0 -61
  314. package/src/dex/aave-v3-stata/tokens.ts +0 -48
  315. package/src/dex/aave-v3-stata/types.ts +0 -69
  316. package/src/dex/aave-v3-stata/utils.ts +0 -84
  317. package/src/dex/aave-v3-stata-v2/aave-v3-stata-v2-e2e.test.ts +0 -376
  318. package/src/dex/aave-v3-stata-v2/aave-v3-stata-v2-gas-estimation.test.ts +0 -41
  319. package/src/dex/aave-v3-stata-v2/aave-v3-stata-v2-integration.test.ts +0 -600
  320. package/src/dex/aave-v3-stata-v2/aave-v3-stata-v2.ts +0 -477
  321. package/src/dex/aave-v3-stata-v2/config.ts +0 -47
  322. package/src/dex/aave-v3-stata-v2/tokens.ts +0 -48
  323. package/src/dex/aave-v3-stata-v2/types.ts +0 -42
  324. package/src/dex/aave-v3-stata-v2/utils.ts +0 -96
  325. package/src/dex/algebra/algebra-e2e.test.ts +0 -313
  326. package/src/dex/algebra/algebra-events.test.ts +0 -186
  327. package/src/dex/algebra/algebra-factory.ts +0 -77
  328. package/src/dex/algebra/algebra-integration.test.ts +0 -558
  329. package/src/dex/algebra/algebra-pool-v1_1.ts +0 -853
  330. package/src/dex/algebra/algebra-pool-v1_9.ts +0 -614
  331. package/src/dex/algebra/algebra-pool-v1_9_bidirectional_fee.ts +0 -55
  332. package/src/dex/algebra/algebra.ts +0 -1141
  333. package/src/dex/algebra/config.ts +0 -128
  334. package/src/dex/algebra/constants.ts +0 -17
  335. package/src/dex/algebra/lib/AlgebraMath.ts +0 -706
  336. package/src/dex/algebra/lib/Constants.ts +0 -5
  337. package/src/dex/algebra/lib/TickManager.ts +0 -91
  338. package/src/dex/algebra/lib/TickTable.ts +0 -227
  339. package/src/dex/algebra/lib/yul-helper.ts +0 -29
  340. package/src/dex/algebra/scripts/validate-state.ts +0 -292
  341. package/src/dex/algebra/types.ts +0 -146
  342. package/src/dex/algebra/utils.ts +0 -217
  343. package/src/dex/angle-staked-stable/angle-staked-stable-e2e.test.ts +0 -146
  344. package/src/dex/angle-staked-stable/angle-staked-stable-events.test.ts +0 -95
  345. package/src/dex/angle-staked-stable/angle-staked-stable-gas-estimation.test.ts +0 -29
  346. package/src/dex/angle-staked-stable/angle-staked-stable-integration.test.ts +0 -476
  347. package/src/dex/angle-staked-stable/angle-staked-stable-pool.ts +0 -325
  348. package/src/dex/angle-staked-stable/angle-staked-stable.ts +0 -356
  349. package/src/dex/angle-staked-stable/config.ts +0 -139
  350. package/src/dex/angle-staked-stable/types.ts +0 -16
  351. package/src/dex/angle-transmuter/angle-transmuter-e2e.test.ts +0 -156
  352. package/src/dex/angle-transmuter/angle-transmuter-events.test.ts +0 -365
  353. package/src/dex/angle-transmuter/angle-transmuter-gas-estimation.test.ts +0 -41
  354. package/src/dex/angle-transmuter/angle-transmuter-integration.test.ts +0 -390
  355. package/src/dex/angle-transmuter/angle-transmuter-pool.ts +0 -895
  356. package/src/dex/angle-transmuter/angle-transmuter.ts +0 -407
  357. package/src/dex/angle-transmuter/backedOracle.ts +0 -91
  358. package/src/dex/angle-transmuter/config.ts +0 -50
  359. package/src/dex/angle-transmuter/constants.ts +0 -138
  360. package/src/dex/angle-transmuter/morphoOracle.ts +0 -335
  361. package/src/dex/angle-transmuter/morphoVault.ts +0 -134
  362. package/src/dex/angle-transmuter/pyth.ts +0 -105
  363. package/src/dex/angle-transmuter/redstone.ts +0 -105
  364. package/src/dex/angle-transmuter/transmuter.ts +0 -619
  365. package/src/dex/angle-transmuter/types.ts +0 -203
  366. package/src/dex/angle-transmuter/utils.ts +0 -358
  367. package/src/dex/augustus-approvals.ts +0 -208
  368. package/src/dex/augustus-rfq.ts +0 -180
  369. package/src/dex/balancer-v1/balancer-pools.json +0 -33333
  370. package/src/dex/balancer-v1/balancer-v1-e2e.test.ts +0 -119
  371. package/src/dex/balancer-v1/balancer-v1-events.test.ts +0 -83
  372. package/src/dex/balancer-v1/balancer-v1-gas-estimation.test.ts +0 -29
  373. package/src/dex/balancer-v1/balancer-v1-integration.test.ts +0 -307
  374. package/src/dex/balancer-v1/balancer-v1-math.ts +0 -154
  375. package/src/dex/balancer-v1/balancer-v1-pool.ts +0 -232
  376. package/src/dex/balancer-v1/balancer-v1.ts +0 -578
  377. package/src/dex/balancer-v1/config.ts +0 -29
  378. package/src/dex/balancer-v1/optimizer.ts +0 -76
  379. package/src/dex/balancer-v1/types.ts +0 -100
  380. package/src/dex/balancer-v1/utils.ts +0 -57
  381. package/src/dex/balancer-v2/balancer-v2-e2e.test.ts +0 -1612
  382. package/src/dex/balancer-v2/balancer-v2-events.test.ts +0 -132
  383. package/src/dex/balancer-v2/balancer-v2-gas-estimation.test.ts +0 -98
  384. package/src/dex/balancer-v2/balancer-v2-gyro3.test.ts +0 -268
  385. package/src/dex/balancer-v2/balancer-v2-gyroE.test.ts +0 -401
  386. package/src/dex/balancer-v2/balancer-v2-integration.test.ts +0 -931
  387. package/src/dex/balancer-v2/balancer-v2-math.ts +0 -592
  388. package/src/dex/balancer-v2/balancer-v2.ts +0 -1724
  389. package/src/dex/balancer-v2/config.ts +0 -81
  390. package/src/dex/balancer-v2/constants.ts +0 -20
  391. package/src/dex/balancer-v2/optimizer.ts +0 -70
  392. package/src/dex/balancer-v2/pools/balancer-v2-pool.ts +0 -274
  393. package/src/dex/balancer-v2/pools/gyro/Gyro3Pool.ts +0 -255
  394. package/src/dex/balancer-v2/pools/gyro/GyroEPool.ts +0 -402
  395. package/src/dex/balancer-v2/pools/gyro/gyro-helpers.ts +0 -15
  396. package/src/dex/balancer-v2/pools/linear/LinearMath.ts +0 -286
  397. package/src/dex/balancer-v2/pools/linear/LinearPool.ts +0 -639
  398. package/src/dex/balancer-v2/pools/phantom-stable/PhantomStableMath.ts +0 -494
  399. package/src/dex/balancer-v2/pools/phantom-stable/PhantomStablePool.ts +0 -581
  400. package/src/dex/balancer-v2/pools/stable/StableMath.ts +0 -203
  401. package/src/dex/balancer-v2/pools/stable/StablePool.ts +0 -223
  402. package/src/dex/balancer-v2/pools/weighted/WeightedMath.ts +0 -84
  403. package/src/dex/balancer-v2/pools/weighted/WeightedPool.ts +0 -188
  404. package/src/dex/balancer-v2/queryOnChain.ts +0 -48
  405. package/src/dex/balancer-v2/types.ts +0 -215
  406. package/src/dex/balancer-v2/utils.ts +0 -212
  407. package/src/dex/balancer-v3/balancer-api.test.ts +0 -122
  408. package/src/dex/balancer-v3/balancer-buffer.test.ts +0 -75
  409. package/src/dex/balancer-v3/balancer-gyroECLP.test.ts +0 -76
  410. package/src/dex/balancer-v3/balancer-hooks-events.test.ts +0 -166
  411. package/src/dex/balancer-v3/balancer-stableSurge.test.ts +0 -112
  412. package/src/dex/balancer-v3/balancer-test-helpers.ts +0 -251
  413. package/src/dex/balancer-v3/balancer-test-weighted.test.ts +0 -96
  414. package/src/dex/balancer-v3/balancer-v3-e2e.test.ts +0 -476
  415. package/src/dex/balancer-v3/balancer-v3-events.test.ts +0 -457
  416. package/src/dex/balancer-v3/balancer-v3-gas-estimation.test.ts +0 -30
  417. package/src/dex/balancer-v3/balancer-v3-integration.test.ts +0 -1008
  418. package/src/dex/balancer-v3/balancer-v3-pool.ts +0 -796
  419. package/src/dex/balancer-v3/balancer-v3.ts +0 -665
  420. package/src/dex/balancer-v3/config.ts +0 -100
  421. package/src/dex/balancer-v3/getGasCost.ts +0 -40
  422. package/src/dex/balancer-v3/getOnChainState.ts +0 -486
  423. package/src/dex/balancer-v3/getPoolsApi.ts +0 -191
  424. package/src/dex/balancer-v3/getTopPoolsApi.ts +0 -130
  425. package/src/dex/balancer-v3/gyroECLPPool.ts +0 -17
  426. package/src/dex/balancer-v3/hooks/balancer-hook-event-subscriber.ts +0 -212
  427. package/src/dex/balancer-v3/hooks/directionalFeeHook.ts +0 -53
  428. package/src/dex/balancer-v3/hooks/loadHooksConfig.ts +0 -12
  429. package/src/dex/balancer-v3/hooks/stableSurgeHook.ts +0 -200
  430. package/src/dex/balancer-v3/optimizer.ts +0 -66
  431. package/src/dex/balancer-v3/stablePool.ts +0 -78
  432. package/src/dex/balancer-v3/types.ts +0 -93
  433. package/src/dex/balancer-v3/utils.ts +0 -11
  434. package/src/dex/balancer-v3/weightedPool.ts +0 -2
  435. package/src/dex/bancor/bancor-e2e.test.ts +0 -91
  436. package/src/dex/bancor/bancor-gas-estimation.test.ts +0 -30
  437. package/src/dex/bancor/bancor.ts +0 -128
  438. package/src/dex/bancor/config.ts +0 -9
  439. package/src/dex/bancor/types.ts +0 -19
  440. package/src/dex/bebop/bebop-e2e.test.ts +0 -228
  441. package/src/dex/bebop/bebop-gas-estimation.test.ts +0 -30
  442. package/src/dex/bebop/bebop-integration.test.ts +0 -182
  443. package/src/dex/bebop/bebop.json +0 -72
  444. package/src/dex/bebop/bebop.proto +0 -15
  445. package/src/dex/bebop/bebop.ts +0 -930
  446. package/src/dex/bebop/config.ts +0 -42
  447. package/src/dex/bebop/constants.ts +0 -20
  448. package/src/dex/bebop/rate-fetcher.ts +0 -168
  449. package/src/dex/bebop/types.ts +0 -95
  450. package/src/dex/bebop/validators.ts +0 -39
  451. package/src/dex/cables/cables-e2e.test.ts +0 -207
  452. package/src/dex/cables/cables-integration.test.ts +0 -391
  453. package/src/dex/cables/cables.ts +0 -857
  454. package/src/dex/cables/config.ts +0 -13
  455. package/src/dex/cables/constants.ts +0 -33
  456. package/src/dex/cables/rate-fetcher.ts +0 -212
  457. package/src/dex/cables/types.ts +0 -113
  458. package/src/dex/cables/validators.test.ts +0 -151
  459. package/src/dex/cables/validators.ts +0 -61
  460. package/src/dex/camelot/camelot-e2e.test.ts +0 -161
  461. package/src/dex/camelot/camelot-integration.test.ts +0 -215
  462. package/src/dex/camelot/camelot-pool-discovery.test.ts +0 -149
  463. package/src/dex/camelot/camelot.ts +0 -882
  464. package/src/dex/camelot/config.ts +0 -23
  465. package/src/dex/camelot/types.ts +0 -15
  466. package/src/dex/compound/compound-e2e.test.ts +0 -91
  467. package/src/dex/compound/compound.ts +0 -112
  468. package/src/dex/compound/types.ts +0 -10
  469. package/src/dex/concentrator-arusd/concentrator-arusd-e2e.test.ts +0 -92
  470. package/src/dex/concentrator-arusd/concentrator-arusd-event.ts +0 -100
  471. package/src/dex/concentrator-arusd/concentrator-arusd-gas-estimation.test.ts +0 -29
  472. package/src/dex/concentrator-arusd/concentrator-arusd-integration.test.ts +0 -104
  473. package/src/dex/concentrator-arusd/concentrator-arusd.ts +0 -269
  474. package/src/dex/concentrator-arusd/concetrator-arusd-events.test.ts +0 -97
  475. package/src/dex/concentrator-arusd/config.ts +0 -13
  476. package/src/dex/concentrator-arusd/types.ts +0 -16
  477. package/src/dex/concentrator-arusd/utils.ts +0 -36
  478. package/src/dex/curve-v1/config.ts +0 -1181
  479. package/src/dex/curve-v1/constants.ts +0 -12
  480. package/src/dex/curve-v1/curve-v1-e2e.test.ts +0 -587
  481. package/src/dex/curve-v1/curve-v1-events.test.ts +0 -335
  482. package/src/dex/curve-v1/curve-v1-gas-estimation.test.ts +0 -29
  483. package/src/dex/curve-v1/curve-v1-integration.test.ts +0 -143
  484. package/src/dex/curve-v1/curve-v1.ts +0 -1315
  485. package/src/dex/curve-v1/forks/curve-forks/config.ts +0 -177
  486. package/src/dex/curve-v1/forks/curve-forks/curve-forks.ts +0 -73
  487. package/src/dex/curve-v1/forks/swerve/config.ts +0 -47
  488. package/src/dex/curve-v1/forks/swerve/swerve.ts +0 -68
  489. package/src/dex/curve-v1/packer.ts +0 -17
  490. package/src/dex/curve-v1/pools/3pool.ts +0 -313
  491. package/src/dex/curve-v1/pools/DUSDpool.ts +0 -52
  492. package/src/dex/curve-v1/pools/EURSpool.ts +0 -37
  493. package/src/dex/curve-v1/pools/GUSDpool.ts +0 -52
  494. package/src/dex/curve-v1/pools/HUSDpool.ts +0 -52
  495. package/src/dex/curve-v1/pools/LinkUSDpool.ts +0 -52
  496. package/src/dex/curve-v1/pools/MUSDpool.ts +0 -52
  497. package/src/dex/curve-v1/pools/bBTCpool.ts +0 -52
  498. package/src/dex/curve-v1/pools/curve-metapool.ts +0 -1113
  499. package/src/dex/curve-v1/pools/curve-pool.ts +0 -489
  500. package/src/dex/curve-v1/pools/getstate-multicall.ts +0 -156
  501. package/src/dex/curve-v1/pools/hBTCpool.ts +0 -37
  502. package/src/dex/curve-v1/pools/oBTCpool.ts +0 -52
  503. package/src/dex/curve-v1/pools/pBTCpool.ts +0 -52
  504. package/src/dex/curve-v1/pools/renpool.ts +0 -38
  505. package/src/dex/curve-v1/pools/rsvpool.ts +0 -52
  506. package/src/dex/curve-v1/pools/sBTCpool.ts +0 -38
  507. package/src/dex/curve-v1/pools/sETHpool.ts +0 -69
  508. package/src/dex/curve-v1/pools/sLinkpool.ts +0 -37
  509. package/src/dex/curve-v1/pools/sUSDpool.ts +0 -133
  510. package/src/dex/curve-v1/pools/stETHpool.ts +0 -52
  511. package/src/dex/curve-v1/pools/tBTCpool.ts +0 -52
  512. package/src/dex/curve-v1/pools/usdkpool.ts +0 -52
  513. package/src/dex/curve-v1/pools/usdnpool.ts +0 -59
  514. package/src/dex/curve-v1/pools/ustpool.ts +0 -52
  515. package/src/dex/curve-v1/types.ts +0 -88
  516. package/src/dex/curve-v1-factory/config.ts +0 -1004
  517. package/src/dex/curve-v1-factory/constants.ts +0 -41
  518. package/src/dex/curve-v1-factory/curve-v1-factory-e2e.test.ts +0 -441
  519. package/src/dex/curve-v1-factory/curve-v1-factory-integration.test.ts +0 -827
  520. package/src/dex/curve-v1-factory/curve-v1-factory-node-cache.ts +0 -10
  521. package/src/dex/curve-v1-factory/curve-v1-factory.ts +0 -1567
  522. package/src/dex/curve-v1-factory/curve-v1-pool-manager.ts +0 -449
  523. package/src/dex/curve-v1-factory/optimizer.ts +0 -57
  524. package/src/dex/curve-v1-factory/price-handlers/functions/_calc_withdraw_one_coin.ts +0 -292
  525. package/src/dex/curve-v1-factory/price-handlers/functions/_dynamic_fee.ts +0 -103
  526. package/src/dex/curve-v1-factory/price-handlers/functions/_rates.ts +0 -116
  527. package/src/dex/curve-v1-factory/price-handlers/functions/_xp.ts +0 -114
  528. package/src/dex/curve-v1-factory/price-handlers/functions/_xp_mem.ts +0 -103
  529. package/src/dex/curve-v1-factory/price-handlers/functions/calc_token_amount.ts +0 -230
  530. package/src/dex/curve-v1-factory/price-handlers/functions/calc_withdraw_one_coin.ts +0 -90
  531. package/src/dex/curve-v1-factory/price-handlers/functions/constants.ts +0 -604
  532. package/src/dex/curve-v1-factory/price-handlers/functions/get_D.ts +0 -386
  533. package/src/dex/curve-v1-factory/price-handlers/functions/get_D_mem.ts +0 -148
  534. package/src/dex/curve-v1-factory/price-handlers/functions/get_D_precisions.ts +0 -120
  535. package/src/dex/curve-v1-factory/price-handlers/functions/get_dx.ts +0 -145
  536. package/src/dex/curve-v1-factory/price-handlers/functions/get_dy.ts +0 -327
  537. package/src/dex/curve-v1-factory/price-handlers/functions/get_dy_underlying.ts +0 -293
  538. package/src/dex/curve-v1-factory/price-handlers/functions/get_y.ts +0 -262
  539. package/src/dex/curve-v1-factory/price-handlers/functions/get_y_D.ts +0 -183
  540. package/src/dex/curve-v1-factory/price-handlers/functions/utils.ts +0 -76
  541. package/src/dex/curve-v1-factory/price-handlers/price-handler.ts +0 -130
  542. package/src/dex/curve-v1-factory/price-handlers/types.ts +0 -142
  543. package/src/dex/curve-v1-factory/state-polling-pools/custom-pool-polling.ts +0 -301
  544. package/src/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.ts +0 -227
  545. package/src/dex/curve-v1-factory/state-polling-pools/polling-manager.ts +0 -266
  546. package/src/dex/curve-v1-factory/state-polling-pools/pool-polling-base.ts +0 -181
  547. package/src/dex/curve-v1-factory/types.ts +0 -286
  548. package/src/dex/curve-v1-stable-ng/config.ts +0 -315
  549. package/src/dex/curve-v1-stable-ng/curve-v1-stable-ng-e2e.test.ts +0 -219
  550. package/src/dex/curve-v1-stable-ng/curve-v1-stable-ng-integration.test.ts +0 -567
  551. package/src/dex/curve-v1-stable-ng/curve-v1-stable-ng.ts +0 -33
  552. package/src/dex/curve-v2/constants.ts +0 -1
  553. package/src/dex/curve-v2/curve-v2-e2e.test.ts +0 -104
  554. package/src/dex/curve-v2/curve-v2-gas-estimation.test.ts +0 -29
  555. package/src/dex/curve-v2/curve-v2.ts +0 -440
  556. package/src/dex/curve-v2/types.ts +0 -27
  557. package/src/dex/dexalot/config.ts +0 -28
  558. package/src/dex/dexalot/constants.ts +0 -32
  559. package/src/dex/dexalot/dexalot-e2e.test.ts +0 -260
  560. package/src/dex/dexalot/dexalot-integration.test.ts +0 -431
  561. package/src/dex/dexalot/dexalot.ts +0 -1114
  562. package/src/dex/dexalot/rate-fetcher.ts +0 -197
  563. package/src/dex/dexalot/types.ts +0 -131
  564. package/src/dex/dexalot/validators.ts +0 -46
  565. package/src/dex/dodo-v1/config.ts +0 -15
  566. package/src/dex/dodo-v1/dodo-v1-e2e.test.ts +0 -101
  567. package/src/dex/dodo-v1/dodo-v1.ts +0 -132
  568. package/src/dex/dodo-v1/types.ts +0 -25
  569. package/src/dex/dodo-v2.ts +0 -266
  570. package/src/dex/ekubo/config.ts +0 -15
  571. package/src/dex/ekubo/ekubo-e2e.test.ts +0 -124
  572. package/src/dex/ekubo/ekubo-events.test.ts +0 -209
  573. package/src/dex/ekubo/ekubo-integration.test.ts +0 -243
  574. package/src/dex/ekubo/ekubo.ts +0 -628
  575. package/src/dex/ekubo/pools/base-pool.ts +0 -267
  576. package/src/dex/ekubo/pools/math/constants.ts +0 -5
  577. package/src/dex/ekubo/pools/math/delta.test.ts +0 -131
  578. package/src/dex/ekubo/pools/math/delta.ts +0 -68
  579. package/src/dex/ekubo/pools/math/price.test.ts +0 -54
  580. package/src/dex/ekubo/pools/math/price.ts +0 -129
  581. package/src/dex/ekubo/pools/math/swap.test.ts +0 -215
  582. package/src/dex/ekubo/pools/math/swap.ts +0 -161
  583. package/src/dex/ekubo/pools/math/tick.test.ts +0 -72
  584. package/src/dex/ekubo/pools/math/tick.ts +0 -120
  585. package/src/dex/ekubo/pools/oracle-pool.ts +0 -46
  586. package/src/dex/ekubo/pools/pool-utils.ts +0 -348
  587. package/src/dex/ekubo/types.test.ts +0 -552
  588. package/src/dex/ekubo/types.ts +0 -55
  589. package/src/dex/ekubo/utils.ts +0 -34
  590. package/src/dex/erc4626/config.ts +0 -41
  591. package/src/dex/erc4626/constants.ts +0 -6
  592. package/src/dex/erc4626/erc-4626-pool.ts +0 -132
  593. package/src/dex/erc4626/erc4626-e2e.test.ts +0 -224
  594. package/src/dex/erc4626/erc4626-event.test.ts +0 -128
  595. package/src/dex/erc4626/erc4626-gas-estimation.test.ts +0 -41
  596. package/src/dex/erc4626/erc4626-integration.test.ts +0 -164
  597. package/src/dex/erc4626/erc4626.ts +0 -333
  598. package/src/dex/erc4626/types.ts +0 -26
  599. package/src/dex/etherfi.ts +0 -244
  600. package/src/dex/fluid-dex/config.ts +0 -27
  601. package/src/dex/fluid-dex/constants.ts +0 -2
  602. package/src/dex/fluid-dex/fluid-dex-e2e.test.ts +0 -311
  603. package/src/dex/fluid-dex/fluid-dex-events.test.ts +0 -179
  604. package/src/dex/fluid-dex/fluid-dex-factory.ts +0 -151
  605. package/src/dex/fluid-dex/fluid-dex-gas-estimation.test.ts +0 -29
  606. package/src/dex/fluid-dex/fluid-dex-integration.test.ts +0 -355
  607. package/src/dex/fluid-dex/fluid-dex-liquidity-proxy.ts +0 -210
  608. package/src/dex/fluid-dex/fluid-dex-pool.ts +0 -138
  609. package/src/dex/fluid-dex/fluid-dex.ts +0 -1169
  610. package/src/dex/fluid-dex/types.ts +0 -104
  611. package/src/dex/fluid-dex/utils.ts +0 -15
  612. package/src/dex/fx-protocol-rusd/config.ts +0 -14
  613. package/src/dex/fx-protocol-rusd/fx-protocol-e2e.test.ts +0 -96
  614. package/src/dex/fx-protocol-rusd/fx-protocol-events.test.ts +0 -101
  615. package/src/dex/fx-protocol-rusd/fx-protocol-integration.test.ts +0 -104
  616. package/src/dex/fx-protocol-rusd/fx-protocol-rusd-event.ts +0 -112
  617. package/src/dex/fx-protocol-rusd/fx-protocol-rusd-gas-estimation.test.ts +0 -29
  618. package/src/dex/fx-protocol-rusd/fx-protocol-rusd.ts +0 -282
  619. package/src/dex/fx-protocol-rusd/types.ts +0 -16
  620. package/src/dex/fx-protocol-rusd/utils.ts +0 -47
  621. package/src/dex/generic-rfq/e2e-test-config.ts +0 -25
  622. package/src/dex/generic-rfq/example-api.test.ts +0 -233
  623. package/src/dex/generic-rfq/fetch-mm-api.ts +0 -284
  624. package/src/dex/generic-rfq/generic-rfq-e2e.test.ts +0 -118
  625. package/src/dex/generic-rfq/generic-rfq-integration.test.ts +0 -235
  626. package/src/dex/generic-rfq/generic-rfq-local-e2e.test.ts +0 -107
  627. package/src/dex/generic-rfq/generic-rfq.ts +0 -463
  628. package/src/dex/generic-rfq/rate-fetcher.ts +0 -491
  629. package/src/dex/generic-rfq/security.ts +0 -55
  630. package/src/dex/generic-rfq/types.ts +0 -120
  631. package/src/dex/generic-rfq/utils.ts +0 -74
  632. package/src/dex/generic-rfq/validators.test.ts +0 -245
  633. package/src/dex/generic-rfq/validators.ts +0 -189
  634. package/src/dex/gmx/config.ts +0 -81
  635. package/src/dex/gmx/fast-price-feed.ts +0 -279
  636. package/src/dex/gmx/gmx-e2e.test.ts +0 -322
  637. package/src/dex/gmx/gmx-events.test.ts +0 -114
  638. package/src/dex/gmx/gmx-integration.test.ts +0 -211
  639. package/src/dex/gmx/gmx.ts +0 -321
  640. package/src/dex/gmx/pool.ts +0 -360
  641. package/src/dex/gmx/types.ts +0 -94
  642. package/src/dex/gmx/usdg.ts +0 -83
  643. package/src/dex/gmx/vault-price-feed.ts +0 -384
  644. package/src/dex/gmx/vault-utils.ts +0 -53
  645. package/src/dex/gmx/vault.ts +0 -290
  646. package/src/dex/hashflow/config.ts +0 -56
  647. package/src/dex/hashflow/constants.ts +0 -54
  648. package/src/dex/hashflow/hashflow-e2e.test.ts +0 -351
  649. package/src/dex/hashflow/hashflow-gas-estimation.test.ts +0 -30
  650. package/src/dex/hashflow/hashflow-integration.test.ts +0 -157
  651. package/src/dex/hashflow/hashflow.ts +0 -1119
  652. package/src/dex/hashflow/rate-fetcher.ts +0 -118
  653. package/src/dex/hashflow/types.ts +0 -83
  654. package/src/dex/hashflow/validators.ts +0 -38
  655. package/src/dex/idex.ts +0 -268
  656. package/src/dex/idle-dao/config.ts +0 -26
  657. package/src/dex/idle-dao/idle-dao--gas-estimation.test.ts +0 -30
  658. package/src/dex/idle-dao/idle-dao-e2e.test.ts +0 -112
  659. package/src/dex/idle-dao/idle-dao-integration.test.ts +0 -155
  660. package/src/dex/idle-dao/idle-dao.ts +0 -402
  661. package/src/dex/idle-dao/token_list.ts +0 -287
  662. package/src/dex/idle-dao/tokens.ts +0 -99
  663. package/src/dex/idle-dao/types.ts +0 -43
  664. package/src/dex/idle-dao/utils.ts +0 -216
  665. package/src/dex/index.ts +0 -402
  666. package/src/dex/infusion/config.ts +0 -21
  667. package/src/dex/infusion/infusion-e2e.test.ts +0 -110
  668. package/src/dex/infusion/infusion-integration.test.ts +0 -232
  669. package/src/dex/infusion/infusion-stable-pool.ts +0 -91
  670. package/src/dex/infusion/infusion.ts +0 -652
  671. package/src/dex/infusion/types.ts +0 -60
  672. package/src/dex/infusion/utils/isStablePair.ts +0 -18
  673. package/src/dex/jarvis-v6/chainLinkpriceFeed-event.ts +0 -76
  674. package/src/dex/jarvis-v6/config.ts +0 -261
  675. package/src/dex/jarvis-v6/jarvis-v6-e2e.test.ts +0 -113
  676. package/src/dex/jarvis-v6/jarvis-v6-events.test.ts +0 -67
  677. package/src/dex/jarvis-v6/jarvis-v6-events.ts +0 -67
  678. package/src/dex/jarvis-v6/jarvis-v6-integration.test.ts +0 -111
  679. package/src/dex/jarvis-v6/jarvis-v6.ts +0 -509
  680. package/src/dex/jarvis-v6/syntheteumPool-event.ts +0 -68
  681. package/src/dex/jarvis-v6/types.ts +0 -59
  682. package/src/dex/jarvis-v6/utils.ts +0 -127
  683. package/src/dex/kyberdmm/config.ts +0 -61
  684. package/src/dex/kyberdmm/fee-formula.ts +0 -113
  685. package/src/dex/kyberdmm/kyberdmm-e2e.test.ts +0 -325
  686. package/src/dex/kyberdmm/kyberdmm-events.test.ts +0 -123
  687. package/src/dex/kyberdmm/kyberdmm-integration.test.ts +0 -93
  688. package/src/dex/kyberdmm/kyberdmm.ts +0 -649
  689. package/src/dex/kyberdmm/math-ext.ts +0 -29
  690. package/src/dex/kyberdmm/pool.ts +0 -226
  691. package/src/dex/kyberdmm/types.ts +0 -85
  692. package/src/dex/lido/config.ts +0 -5
  693. package/src/dex/lido/lido-e2e.test.ts +0 -81
  694. package/src/dex/lido/lido-gas-estimation.test.ts +0 -29
  695. package/src/dex/lido/lido.ts +0 -110
  696. package/src/dex/lido/types.ts +0 -5
  697. package/src/dex/limit-order-exchange.ts +0 -40
  698. package/src/dex/lite-psm/config.ts +0 -33
  699. package/src/dex/lite-psm/lite-psm-e2e.test.ts +0 -146
  700. package/src/dex/lite-psm/lite-psm-event-pool.ts +0 -216
  701. package/src/dex/lite-psm/lite-psm-events.test.ts +0 -61
  702. package/src/dex/lite-psm/lite-psm-gas-estimation.test.ts +0 -34
  703. package/src/dex/lite-psm/lite-psm-integration.test.ts +0 -99
  704. package/src/dex/lite-psm/lite-psm.ts +0 -540
  705. package/src/dex/lite-psm/types.ts +0 -47
  706. package/src/dex/maker-psm/config.ts +0 -59
  707. package/src/dex/maker-psm/maker-psm-e2e.test.ts +0 -83
  708. package/src/dex/maker-psm/maker-psm-events.test.ts +0 -63
  709. package/src/dex/maker-psm/maker-psm-gas-estimation.test.ts +0 -34
  710. package/src/dex/maker-psm/maker-psm-integration.test.ts +0 -99
  711. package/src/dex/maker-psm/maker-psm.ts +0 -722
  712. package/src/dex/maker-psm/types.ts +0 -45
  713. package/src/dex/maverick-v1/config.ts +0 -33
  714. package/src/dex/maverick-v1/constants.ts +0 -1
  715. package/src/dex/maverick-v1/maverick-math/maverick-basic-math.ts +0 -187
  716. package/src/dex/maverick-v1/maverick-math/maverick-bin-map.ts +0 -182
  717. package/src/dex/maverick-v1/maverick-math/maverick-pool-math.test.ts +0 -680
  718. package/src/dex/maverick-v1/maverick-math/maverick-pool-math.ts +0 -562
  719. package/src/dex/maverick-v1/maverick-v1-e2e.test.ts +0 -346
  720. package/src/dex/maverick-v1/maverick-v1-events.test.ts +0 -112
  721. package/src/dex/maverick-v1/maverick-v1-gas-estimation.test.ts +0 -29
  722. package/src/dex/maverick-v1/maverick-v1-integration.test.ts +0 -170
  723. package/src/dex/maverick-v1/maverick-v1-pool.ts +0 -394
  724. package/src/dex/maverick-v1/maverick-v1.ts +0 -536
  725. package/src/dex/maverick-v1/subgraph-queries.ts +0 -60
  726. package/src/dex/maverick-v1/types.ts +0 -83
  727. package/src/dex/maverick-v2/config.ts +0 -32
  728. package/src/dex/maverick-v2/maverick-math/maverick-basic-math.ts +0 -152
  729. package/src/dex/maverick-v2/maverick-math/maverick-bin-math.ts +0 -288
  730. package/src/dex/maverick-v2/maverick-math/maverick-delta-math.ts +0 -32
  731. package/src/dex/maverick-v2/maverick-math/maverick-math.ts +0 -30
  732. package/src/dex/maverick-v2/maverick-math/maverick-pool-lib.ts +0 -42
  733. package/src/dex/maverick-v2/maverick-math/maverick-pool-math.ts +0 -714
  734. package/src/dex/maverick-v2/maverick-math/maverick-swap-math.ts +0 -199
  735. package/src/dex/maverick-v2/maverick-math/maverick-tick-math.ts +0 -171
  736. package/src/dex/maverick-v2/maverick-math/maverick-twa-math.ts +0 -54
  737. package/src/dex/maverick-v2/maverick-v2-e2e.test.ts +0 -171
  738. package/src/dex/maverick-v2/maverick-v2-events.test.ts +0 -112
  739. package/src/dex/maverick-v2/maverick-v2-gas-estimation.test.ts +0 -29
  740. package/src/dex/maverick-v2/maverick-v2-integration.test.ts +0 -287
  741. package/src/dex/maverick-v2/maverick-v2-pool.ts +0 -369
  742. package/src/dex/maverick-v2/maverick-v2.ts +0 -409
  743. package/src/dex/maverick-v2/types.ts +0 -155
  744. package/src/dex/nerve/config.ts +0 -635
  745. package/src/dex/nerve/nerve-e2e.test.ts +0 -731
  746. package/src/dex/nerve/nerve-events.test.ts +0 -911
  747. package/src/dex/nerve/nerve-integration.test.ts +0 -73
  748. package/src/dex/nerve/nerve-math.ts +0 -304
  749. package/src/dex/nerve/nerve-metapool.ts +0 -203
  750. package/src/dex/nerve/nerve-pool.ts +0 -425
  751. package/src/dex/nerve/nerve.ts +0 -467
  752. package/src/dex/nerve/types.ts +0 -65
  753. package/src/dex/nerve/utils.ts +0 -39
  754. package/src/dex/oswap/config.ts +0 -32
  755. package/src/dex/oswap/oswap-e2e.test.ts +0 -91
  756. package/src/dex/oswap/oswap-events.test.ts +0 -88
  757. package/src/dex/oswap/oswap-integration.test.ts +0 -291
  758. package/src/dex/oswap/oswap-pool.ts +0 -190
  759. package/src/dex/oswap/oswap.ts +0 -414
  760. package/src/dex/oswap/types.ts +0 -29
  761. package/src/dex/pancakeswap-v3/config.ts +0 -119
  762. package/src/dex/pancakeswap-v3/constants.ts +0 -36
  763. package/src/dex/pancakeswap-v3/contract-math/BitMath.ts +0 -90
  764. package/src/dex/pancakeswap-v3/contract-math/FixedPoint128.ts +0 -3
  765. package/src/dex/pancakeswap-v3/contract-math/FixedPoint96.ts +0 -4
  766. package/src/dex/pancakeswap-v3/contract-math/FullMath.ts +0 -30
  767. package/src/dex/pancakeswap-v3/contract-math/LiquidityMath.ts +0 -17
  768. package/src/dex/pancakeswap-v3/contract-math/Oracle.ts +0 -226
  769. package/src/dex/pancakeswap-v3/contract-math/SqrtPriceMath.ts +0 -226
  770. package/src/dex/pancakeswap-v3/contract-math/SwapMath.ts +0 -139
  771. package/src/dex/pancakeswap-v3/contract-math/Tick.ts +0 -82
  772. package/src/dex/pancakeswap-v3/contract-math/TickBitMap.ts +0 -128
  773. package/src/dex/pancakeswap-v3/contract-math/TickMath.ts +0 -211
  774. package/src/dex/pancakeswap-v3/contract-math/UnsafeMath.ts +0 -5
  775. package/src/dex/pancakeswap-v3/contract-math/pancakeswap-v3-math.ts +0 -687
  776. package/src/dex/pancakeswap-v3/contract-math/utils.ts +0 -11
  777. package/src/dex/pancakeswap-v3/pancakeswap-v3-e2e.test.ts +0 -459
  778. package/src/dex/pancakeswap-v3/pancakeswap-v3-events.test.ts +0 -124
  779. package/src/dex/pancakeswap-v3/pancakeswap-v3-factory.ts +0 -80
  780. package/src/dex/pancakeswap-v3/pancakeswap-v3-gas-estimation.test.ts +0 -29
  781. package/src/dex/pancakeswap-v3/pancakeswap-v3-integration.test.ts +0 -529
  782. package/src/dex/pancakeswap-v3/pancakeswap-v3-pool.ts +0 -555
  783. package/src/dex/pancakeswap-v3/pancakeswap-v3.ts +0 -1161
  784. package/src/dex/pancakeswap-v3/utils.ts +0 -65
  785. package/src/dex/paraswap-limit-orders/config.ts +0 -60
  786. package/src/dex/paraswap-limit-orders/constant.ts +0 -32
  787. package/src/dex/paraswap-limit-orders/paraswap-limit-orders-e2e.test.ts +0 -221
  788. package/src/dex/paraswap-limit-orders/paraswap-limit-orders-integration.test.ts +0 -328
  789. package/src/dex/paraswap-limit-orders/paraswap-limit-orders.ts +0 -634
  790. package/src/dex/paraswap-limit-orders/types.ts +0 -84
  791. package/src/dex/paraswap-limit-orders/utils.ts +0 -52
  792. package/src/dex/polygon-migrator/config.ts +0 -25
  793. package/src/dex/polygon-migrator/constants.ts +0 -1
  794. package/src/dex/polygon-migrator/polygon-migrator-e2e.test.ts +0 -98
  795. package/src/dex/polygon-migrator/polygon-migrator-gas-estimation.test.ts +0 -41
  796. package/src/dex/polygon-migrator/polygon-migrator-integration.test.ts +0 -139
  797. package/src/dex/polygon-migrator/polygon-migrator.ts +0 -194
  798. package/src/dex/polygon-migrator/types.ts +0 -14
  799. package/src/dex/quick-perps/config.ts +0 -31
  800. package/src/dex/quick-perps/fast-price-feed.ts +0 -279
  801. package/src/dex/quick-perps/pool.ts +0 -407
  802. package/src/dex/quick-perps/quick-perps-e2e.test.ts +0 -66
  803. package/src/dex/quick-perps/quick-perps-events.test.ts +0 -100
  804. package/src/dex/quick-perps/quick-perps-integration.test.ts +0 -153
  805. package/src/dex/quick-perps/quick-perps.ts +0 -337
  806. package/src/dex/quick-perps/types.ts +0 -97
  807. package/src/dex/quick-perps/usdq.ts +0 -83
  808. package/src/dex/quick-perps/vault-price-feed.ts +0 -322
  809. package/src/dex/quick-perps/vault-utils.ts +0 -53
  810. package/src/dex/quick-perps/vault.ts +0 -290
  811. package/src/dex/quickswap/config.ts +0 -16
  812. package/src/dex/quickswap/quickswap-e2e.test.ts +0 -384
  813. package/src/dex/quickswap/quickswap-v3.ts +0 -74
  814. package/src/dex/quickswap/thena-fusion.ts +0 -19
  815. package/src/dex/quickswap/types.ts +0 -5
  816. package/src/dex/simple-exchange.ts +0 -146
  817. package/src/dex/sky-converter/config.ts +0 -31
  818. package/src/dex/sky-converter/sky-converter-e2e.test.ts +0 -113
  819. package/src/dex/sky-converter/sky-converter-gas-estimation.test.ts +0 -78
  820. package/src/dex/sky-converter/sky-converter-integration.test.ts +0 -135
  821. package/src/dex/sky-converter/sky-converter.ts +0 -221
  822. package/src/dex/sky-converter/types.ts +0 -14
  823. package/src/dex/smoothy/smoothy-e2e.test.ts +0 -81
  824. package/src/dex/smoothy/smoothy.ts +0 -110
  825. package/src/dex/smoothy/types.ts +0 -18
  826. package/src/dex/solidly/config.ts +0 -218
  827. package/src/dex/solidly/forks-override/aerodrome.ts +0 -53
  828. package/src/dex/solidly/forks-override/chronos.ts +0 -231
  829. package/src/dex/solidly/forks-override/equalizer.ts +0 -58
  830. package/src/dex/solidly/forks-override/pharaohV1.ts +0 -10
  831. package/src/dex/solidly/forks-override/ramses.ts +0 -253
  832. package/src/dex/solidly/forks-override/spiritSwapV2.ts +0 -61
  833. package/src/dex/solidly/forks-override/thena.ts +0 -58
  834. package/src/dex/solidly/forks-override/usdfi.ts +0 -10
  835. package/src/dex/solidly/forks-override/velocimeter.ts +0 -58
  836. package/src/dex/solidly/forks-override/velodrome.ts +0 -58
  837. package/src/dex/solidly/forks-override/velodromeV2.ts +0 -63
  838. package/src/dex/solidly/solidly-e2e.test.ts +0 -1421
  839. package/src/dex/solidly/solidly-ethereum.ts +0 -61
  840. package/src/dex/solidly/solidly-gas-estimation.test.ts +0 -29
  841. package/src/dex/solidly/solidly-integration.test.ts +0 -1753
  842. package/src/dex/solidly/solidly-stable-pool.ts +0 -91
  843. package/src/dex/solidly/solidly.ts +0 -708
  844. package/src/dex/solidly/types.ts +0 -38
  845. package/src/dex/solidly-v3/config.ts +0 -118
  846. package/src/dex/solidly-v3/constants.ts +0 -42
  847. package/src/dex/solidly-v3/contract-math/BitMath.ts +0 -90
  848. package/src/dex/solidly-v3/contract-math/FixedPoint128.ts +0 -3
  849. package/src/dex/solidly-v3/contract-math/FixedPoint96.ts +0 -4
  850. package/src/dex/solidly-v3/contract-math/FullMath.ts +0 -30
  851. package/src/dex/solidly-v3/contract-math/LiquidityMath.ts +0 -17
  852. package/src/dex/solidly-v3/contract-math/SqrtPriceMath.ts +0 -226
  853. package/src/dex/solidly-v3/contract-math/SwapMath.ts +0 -139
  854. package/src/dex/solidly-v3/contract-math/Tick.ts +0 -63
  855. package/src/dex/solidly-v3/contract-math/TickBitMap.ts +0 -123
  856. package/src/dex/solidly-v3/contract-math/TickMath.ts +0 -211
  857. package/src/dex/solidly-v3/contract-math/UnsafeMath.ts +0 -5
  858. package/src/dex/solidly-v3/contract-math/uniswap-v3-math.ts +0 -562
  859. package/src/dex/solidly-v3/contract-math/utils.ts +0 -50
  860. package/src/dex/solidly-v3/solidly-v3-e2e.test.ts +0 -270
  861. package/src/dex/solidly-v3/solidly-v3-events.test.ts +0 -146
  862. package/src/dex/solidly-v3/solidly-v3-factory.ts +0 -80
  863. package/src/dex/solidly-v3/solidly-v3-gas-estimation.test.ts +0 -29
  864. package/src/dex/solidly-v3/solidly-v3-integration.test.ts +0 -358
  865. package/src/dex/solidly-v3/solidly-v3-pool.ts +0 -502
  866. package/src/dex/solidly-v3/solidly-v3.ts +0 -976
  867. package/src/dex/solidly-v3/types.ts +0 -157
  868. package/src/dex/solidly-v3/utils.ts +0 -71
  869. package/src/dex/spark/config.ts +0 -69
  870. package/src/dex/spark/constants.ts +0 -2
  871. package/src/dex/spark/scripts/validate-state.ts +0 -145
  872. package/src/dex/spark/spark-e2e.test.ts +0 -225
  873. package/src/dex/spark/spark-events.test.ts +0 -214
  874. package/src/dex/spark/spark-gas-estimation.test.ts +0 -29
  875. package/src/dex/spark/spark-integration.test.ts +0 -690
  876. package/src/dex/spark/spark-psm.ts +0 -361
  877. package/src/dex/spark/spark-sdai-pool.ts +0 -116
  878. package/src/dex/spark/spark.ts +0 -323
  879. package/src/dex/spark/types.ts +0 -54
  880. package/src/dex/spark/utils.ts +0 -151
  881. package/src/dex/stable-pool/stable-pool.ts +0 -129
  882. package/src/dex/stable-pool/stablepool-e2e.test.ts +0 -73
  883. package/src/dex/stable-pool/types.ts +0 -20
  884. package/src/dex/stader/config.ts +0 -13
  885. package/src/dex/stader/stader-e2e.test.ts +0 -74
  886. package/src/dex/stader/stader-events.test.ts +0 -64
  887. package/src/dex/stader/stader-gas-estimation.test.ts +0 -29
  888. package/src/dex/stader/stader-integration.test.ts +0 -240
  889. package/src/dex/stader/stader-pool.ts +0 -77
  890. package/src/dex/stader/stader.ts +0 -240
  891. package/src/dex/stader/types.ts +0 -16
  892. package/src/dex/stader/utils.ts +0 -34
  893. package/src/dex/stkgho/config.ts +0 -14
  894. package/src/dex/stkgho/stkgho-e2e.test.ts +0 -77
  895. package/src/dex/stkgho/stkgho-events.test.ts +0 -79
  896. package/src/dex/stkgho/stkgho-gas-estimation.test.ts +0 -29
  897. package/src/dex/stkgho/stkgho-integration.test.ts +0 -226
  898. package/src/dex/stkgho/stkgho-pool.ts +0 -111
  899. package/src/dex/stkgho/stkgho.ts +0 -223
  900. package/src/dex/stkgho/types.ts +0 -14
  901. package/src/dex/swaap-v2/config.ts +0 -42
  902. package/src/dex/swaap-v2/constants.ts +0 -52
  903. package/src/dex/swaap-v2/rate-fetcher.ts +0 -267
  904. package/src/dex/swaap-v2/stable-coins.ts +0 -25
  905. package/src/dex/swaap-v2/swaap-v2-e2e.test.ts +0 -584
  906. package/src/dex/swaap-v2/swaap-v2-estimation.test.ts +0 -29
  907. package/src/dex/swaap-v2/swaap-v2-integration.test.ts +0 -219
  908. package/src/dex/swaap-v2/swaap-v2.ts +0 -1067
  909. package/src/dex/swaap-v2/types.ts +0 -105
  910. package/src/dex/swaap-v2/utils.ts +0 -46
  911. package/src/dex/swaap-v2/validators.ts +0 -131
  912. package/src/dex/swell/config.ts +0 -29
  913. package/src/dex/swell/rsweth-pool.ts +0 -58
  914. package/src/dex/swell/swell-e2e.test.ts +0 -56
  915. package/src/dex/swell/swell-estimation.test.ts +0 -29
  916. package/src/dex/swell/swell.ts +0 -312
  917. package/src/dex/swell/sweth-pool.ts +0 -58
  918. package/src/dex/swell/type.ts +0 -7
  919. package/src/dex/swell/utils.ts +0 -53
  920. package/src/dex/synthetix/config.ts +0 -55
  921. package/src/dex/synthetix/constants.ts +0 -36
  922. package/src/dex/synthetix/contract-math/DexPriceAggregatorUniswapV3.ts +0 -276
  923. package/src/dex/synthetix/contract-math/ExchangeRates.ts +0 -117
  924. package/src/dex/synthetix/contract-math/ExchangeRatesWithDexPricing.ts +0 -278
  925. package/src/dex/synthetix/contract-math/FullMath.ts +0 -17
  926. package/src/dex/synthetix/contract-math/OracleLibrary.ts +0 -109
  927. package/src/dex/synthetix/contract-math/SafeDecimalMath.ts +0 -49
  928. package/src/dex/synthetix/contract-math/TickMath.ts +0 -72
  929. package/src/dex/synthetix/contract-math/synthetix-math.ts +0 -266
  930. package/src/dex/synthetix/synthetix-e2e.test.ts +0 -174
  931. package/src/dex/synthetix/synthetix-integration.test.ts +0 -293
  932. package/src/dex/synthetix/synthetix-state.ts +0 -970
  933. package/src/dex/synthetix/synthetix.ts +0 -420
  934. package/src/dex/synthetix/types.ts +0 -121
  935. package/src/dex/synthetix/utils.ts +0 -125
  936. package/src/dex/trader-joe-v2.1/base.ts +0 -167
  937. package/src/dex/trader-joe-v2.1/config.ts +0 -14
  938. package/src/dex/trader-joe-v2.1/trader-joe-v2.1-e2e.test.ts +0 -101
  939. package/src/dex/trader-joe-v2.1/trader-joe-v2.1-gas-estimation.test.ts +0 -29
  940. package/src/dex/trader-joe-v2.1/trader-joe-v2.1.ts +0 -23
  941. package/src/dex/trader-joe-v2.1/trader-joe-v2.2.ts +0 -23
  942. package/src/dex/trader-joe-v2.1/types.ts +0 -38
  943. package/src/dex/uniswap-v2/biswap.ts +0 -61
  944. package/src/dex/uniswap-v2/config.ts +0 -626
  945. package/src/dex/uniswap-v2/constants.ts +0 -58
  946. package/src/dex/uniswap-v2/dfyn.ts +0 -128
  947. package/src/dex/uniswap-v2/excalibur.ts +0 -63
  948. package/src/dex/uniswap-v2/mdex.ts +0 -66
  949. package/src/dex/uniswap-v2/nomiswap-v2.ts +0 -73
  950. package/src/dex/uniswap-v2/optimizer.ts +0 -66
  951. package/src/dex/uniswap-v2/types.ts +0 -164
  952. package/src/dex/uniswap-v2/uniswap-v2-constant-product-pool.ts +0 -40
  953. package/src/dex/uniswap-v2/uniswap-v2-e2e-arbitrum.test.ts +0 -438
  954. package/src/dex/uniswap-v2/uniswap-v2-e2e-avalanche.test.ts +0 -1361
  955. package/src/dex/uniswap-v2/uniswap-v2-e2e-base.test.ts +0 -42
  956. package/src/dex/uniswap-v2/uniswap-v2-e2e-bsc.test.ts +0 -1295
  957. package/src/dex/uniswap-v2/uniswap-v2-e2e-fantom.test.ts +0 -1428
  958. package/src/dex/uniswap-v2/uniswap-v2-e2e-gnosis.test.ts +0 -283
  959. package/src/dex/uniswap-v2/uniswap-v2-e2e-mainnet.test.ts +0 -1834
  960. package/src/dex/uniswap-v2/uniswap-v2-e2e-optimism.test.ts +0 -282
  961. package/src/dex/uniswap-v2/uniswap-v2-e2e-polygon.test.ts +0 -871
  962. package/src/dex/uniswap-v2/uniswap-v2-factory.ts +0 -70
  963. package/src/dex/uniswap-v2/uniswap-v2-gas-estimation.test.ts +0 -98
  964. package/src/dex/uniswap-v2/uniswap-v2-integration.test.ts +0 -63
  965. package/src/dex/uniswap-v2/uniswap-v2.ts +0 -1122
  966. package/src/dex/uniswap-v3/config.ts +0 -453
  967. package/src/dex/uniswap-v3/constants.ts +0 -56
  968. package/src/dex/uniswap-v3/contract-math/BitMath.ts +0 -90
  969. package/src/dex/uniswap-v3/contract-math/FixedPoint128.ts +0 -3
  970. package/src/dex/uniswap-v3/contract-math/FixedPoint96.ts +0 -4
  971. package/src/dex/uniswap-v3/contract-math/FullMath.ts +0 -30
  972. package/src/dex/uniswap-v3/contract-math/LiquidityMath.ts +0 -17
  973. package/src/dex/uniswap-v3/contract-math/Oracle.ts +0 -226
  974. package/src/dex/uniswap-v3/contract-math/SqrtPriceMath.ts +0 -226
  975. package/src/dex/uniswap-v3/contract-math/SwapMath.ts +0 -139
  976. package/src/dex/uniswap-v3/contract-math/Tick.ts +0 -82
  977. package/src/dex/uniswap-v3/contract-math/TickBitMap.ts +0 -143
  978. package/src/dex/uniswap-v3/contract-math/TickMath.ts +0 -211
  979. package/src/dex/uniswap-v3/contract-math/UnsafeMath.ts +0 -5
  980. package/src/dex/uniswap-v3/contract-math/uniswap-v3-math.ts +0 -668
  981. package/src/dex/uniswap-v3/contract-math/utils.ts +0 -55
  982. package/src/dex/uniswap-v3/forks/ramses-v2/ramses-v2-pool.ts +0 -157
  983. package/src/dex/uniswap-v3/forks/ramses-v2/utils.ts +0 -72
  984. package/src/dex/uniswap-v3/forks/velodrome-slipstream/utils.ts +0 -65
  985. package/src/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream-factory.ts +0 -16
  986. package/src/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream-pool.ts +0 -198
  987. package/src/dex/uniswap-v3/forks/velodrome-slipstream/velodrome-slipstream.ts +0 -243
  988. package/src/dex/uniswap-v3/scripts/check-pool-bitmap-ranges.ts +0 -238
  989. package/src/dex/uniswap-v3/scripts/measure-calc-time.ts +0 -172
  990. package/src/dex/uniswap-v3/types.ts +0 -213
  991. package/src/dex/uniswap-v3/uniswap-v3-e2e.test.ts +0 -1391
  992. package/src/dex/uniswap-v3/uniswap-v3-events.test.ts +0 -185
  993. package/src/dex/uniswap-v3/uniswap-v3-factory.ts +0 -80
  994. package/src/dex/uniswap-v3/uniswap-v3-gas-estimation.test.ts +0 -98
  995. package/src/dex/uniswap-v3/uniswap-v3-integration.test.ts +0 -2734
  996. package/src/dex/uniswap-v3/uniswap-v3-pool.ts +0 -564
  997. package/src/dex/uniswap-v3/uniswap-v3.ts +0 -1493
  998. package/src/dex/uniswap-v3/utils.ts +0 -83
  999. package/src/dex/uniswap-v3.ts +0 -242
  1000. package/src/dex/usual/m-wrapped-m.ts +0 -76
  1001. package/src/dex/usual/types.ts +0 -10
  1002. package/src/dex/usual/usual-bond.ts +0 -69
  1003. package/src/dex/usual/usual-e2e.test.ts +0 -169
  1004. package/src/dex/usual/usual-gas-estimation.test.ts +0 -54
  1005. package/src/dex/usual/usual-integration.test.ts +0 -515
  1006. package/src/dex/usual/usual-m-usd0.ts +0 -76
  1007. package/src/dex/usual/usual-m-wrapped-m.ts +0 -71
  1008. package/src/dex/usual/usual.ts +0 -156
  1009. package/src/dex/usual/wrapped-m-m.ts +0 -76
  1010. package/src/dex/usual-pp/config.ts +0 -18
  1011. package/src/dex/usual-pp/pool.ts +0 -77
  1012. package/src/dex/usual-pp/types.ts +0 -12
  1013. package/src/dex/usual-pp/usual-events.test.ts +0 -70
  1014. package/src/dex/usual-pp/usual-integration.test.ts +0 -143
  1015. package/src/dex/usual-pp/usual-pp-gas-estimation.test.ts +0 -29
  1016. package/src/dex/usual-pp/usual-pp.e2e.test.ts +0 -76
  1017. package/src/dex/usual-pp/usual-pp.ts +0 -207
  1018. package/src/dex/usual-pp/utils.ts +0 -27
  1019. package/src/dex/weth/config.ts +0 -87
  1020. package/src/dex/weth/types.ts +0 -34
  1021. package/src/dex/weth/weth-e2e-v6.test.ts +0 -117
  1022. package/src/dex/weth/weth-e2e.test.ts +0 -1032
  1023. package/src/dex/weth/weth-gas-estimation.test.ts +0 -42
  1024. package/src/dex/weth/weth-integration.test.ts +0 -80
  1025. package/src/dex/weth/weth.ts +0 -232
  1026. package/src/dex/wombat/config.ts +0 -77
  1027. package/src/dex/wombat/types.ts +0 -55
  1028. package/src/dex/wombat/utils.ts +0 -82
  1029. package/src/dex/wombat/wombat-bmw.ts +0 -186
  1030. package/src/dex/wombat/wombat-e2e.test.ts +0 -272
  1031. package/src/dex/wombat/wombat-events.test.ts +0 -147
  1032. package/src/dex/wombat/wombat-gas-estimation.test.ts +0 -29
  1033. package/src/dex/wombat/wombat-integration.test.ts +0 -217
  1034. package/src/dex/wombat/wombat-pool.ts +0 -688
  1035. package/src/dex/wombat/wombat-quoter.ts +0 -269
  1036. package/src/dex/wombat/wombat.ts +0 -467
  1037. package/src/dex/woo-fi-v2/config.ts +0 -100
  1038. package/src/dex/woo-fi-v2/constants.ts +0 -22
  1039. package/src/dex/woo-fi-v2/decoders.ts +0 -45
  1040. package/src/dex/woo-fi-v2/types.ts +0 -64
  1041. package/src/dex/woo-fi-v2/utils.ts +0 -19
  1042. package/src/dex/woo-fi-v2/woo-fi-v2-e2e.test.ts +0 -282
  1043. package/src/dex/woo-fi-v2/woo-fi-v2-integration.test.ts +0 -495
  1044. package/src/dex/woo-fi-v2/woo-fi-v2-math.ts +0 -228
  1045. package/src/dex/woo-fi-v2/woo-fi-v2-pool.ts +0 -143
  1046. package/src/dex/woo-fi-v2/woo-fi-v2.ts +0 -528
  1047. package/src/dex/wsteth/config.ts +0 -16
  1048. package/src/dex/wsteth/types.ts +0 -13
  1049. package/src/dex/wsteth/wsteth-e2e.test.ts +0 -96
  1050. package/src/dex/wsteth/wsteth-gas-estimation.test.ts +0 -41
  1051. package/src/dex/wsteth/wsteth-integration.test.ts +0 -200
  1052. package/src/dex/wsteth/wsteth.ts +0 -304
  1053. package/src/dex-helper/dummy-dex-helper.ts +0 -379
  1054. package/src/dex-helper/dummy-limit-order-provider.ts +0 -74
  1055. package/src/dex-helper/iblock-manager.ts +0 -60
  1056. package/src/dex-helper/icache.ts +0 -85
  1057. package/src/dex-helper/idex-helper.ts +0 -27
  1058. package/src/dex-helper/ilimit-order-provider.ts +0 -27
  1059. package/src/dex-helper/index.ts +0 -16
  1060. package/src/dex-helper/irequest-wrapper.ts +0 -67
  1061. package/src/executor/Executor01BytecodeBuilder.ts +0 -479
  1062. package/src/executor/Executor02BytecodeBuilder.ts +0 -1419
  1063. package/src/executor/Executor03BytecodeBuilder.ts +0 -473
  1064. package/src/executor/ExecutorBytecodeBuilder.ts +0 -453
  1065. package/src/executor/ExecutorDetector.ts +0 -131
  1066. package/src/executor/WETHBytecodeBuilder.ts +0 -58
  1067. package/src/executor/__snapshots__/executor01-bytecode-builder-snapshot.test.ts.snap +0 -35
  1068. package/src/executor/__snapshots__/executor02-bytecode-builder-snapshot.test.ts.snap +0 -23
  1069. package/src/executor/constants.ts +0 -66
  1070. package/src/executor/executor01-bytecode-builder-e2e.test.ts +0 -1503
  1071. package/src/executor/executor01-bytecode-builder-snapshot.test.ts +0 -271
  1072. package/src/executor/executor02-bytecode-builder-e2e.test.ts +0 -1578
  1073. package/src/executor/executor02-bytecode-builder-snapshot.test.ts +0 -188
  1074. package/src/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +0 -16
  1075. package/src/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -16
  1076. package/src/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -16
  1077. package/src/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -16
  1078. package/src/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -16
  1079. package/src/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -16
  1080. package/src/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -16
  1081. package/src/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdt-usdc-dai.json +0 -16
  1082. package/src/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-eth-usdc.json +0 -9
  1083. package/src/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-eth.json +0 -9
  1084. package/src/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-wbtc.json +0 -9
  1085. package/src/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-eth-steth.json +0 -9
  1086. package/src/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-steth-eth.json +0 -9
  1087. package/src/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-usdc-usdt.json +0 -9
  1088. package/src/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-eth-usdc.json +0 -9
  1089. package/src/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-eth.json +0 -9
  1090. package/src/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-usdt.json +0 -9
  1091. package/src/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -12
  1092. package/src/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -7
  1093. package/src/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -7
  1094. package/src/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -7
  1095. package/src/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -7
  1096. package/src/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -12
  1097. package/src/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-eth-usdc.json +0 -7
  1098. package/src/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-usdc-eth.json +0 -7
  1099. package/src/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +0 -78
  1100. package/src/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +0 -81
  1101. package/src/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +0 -78
  1102. package/src/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +0 -78
  1103. package/src/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-dai-usdc-eth.json +0 -81
  1104. package/src/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-eth-usdc-dai.json +0 -81
  1105. package/src/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +0 -81
  1106. package/src/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdt-usdc-dai.json +0 -81
  1107. package/src/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-eth-usdc.json +0 -64
  1108. package/src/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-eth.json +0 -85
  1109. package/src/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-wbtc.json +0 -64
  1110. package/src/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-eth-steth.json +0 -52
  1111. package/src/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-steth-eth.json +0 -52
  1112. package/src/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-usdc-usdt.json +0 -52
  1113. package/src/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-eth-usdc.json +0 -55
  1114. package/src/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-eth.json +0 -55
  1115. package/src/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-usdt.json +0 -55
  1116. package/src/executor/fixtures/executor02/exchange-params/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -23
  1117. package/src/executor/fixtures/executor02/exchange-params/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -37
  1118. package/src/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -23
  1119. package/src/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -23
  1120. package/src/executor/fixtures/executor02/exchange-params/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -51
  1121. package/src/executor/fixtures/executor02/exchange-params/price-route-multiswap-univ3-usdt-dai-eth.json +0 -58
  1122. package/src/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -23
  1123. package/src/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -23
  1124. package/src/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -9
  1125. package/src/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -16
  1126. package/src/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +0 -23
  1127. package/src/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -12
  1128. package/src/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -7
  1129. package/src/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -12
  1130. package/src/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -12
  1131. package/src/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -7
  1132. package/src/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-univ3-usdt-dai-eth.json +0 -7
  1133. package/src/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -7
  1134. package/src/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -7
  1135. package/src/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -7
  1136. package/src/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -7
  1137. package/src/executor/fixtures/executor02/routes/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +0 -130
  1138. package/src/executor/fixtures/executor02/routes/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +0 -136
  1139. package/src/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +0 -100
  1140. package/src/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +0 -100
  1141. package/src/executor/fixtures/executor02/routes/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +0 -166
  1142. package/src/executor/fixtures/executor02/routes/price-route-multiswap-univ3-usdt-dai-eth.json +0 -190
  1143. package/src/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +0 -114
  1144. package/src/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +0 -114
  1145. package/src/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +0 -55
  1146. package/src/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +0 -73
  1147. package/src/executor/fixtures/executor02/routes/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +0 -82
  1148. package/src/executor/types.ts +0 -45
  1149. package/src/executor/utils.ts +0 -62
  1150. package/src/generic-swap-transaction-builder.ts +0 -753
  1151. package/src/implementations/local-paraswap-sdk.ts +0 -342
  1152. package/src/index.ts +0 -38
  1153. package/src/lens.ts +0 -8
  1154. package/src/lib/api3-feed.ts +0 -175
  1155. package/src/lib/benqi/staked-avax.ts +0 -123
  1156. package/src/lib/chainlink.ts +0 -113
  1157. package/src/lib/curve/encoder.ts +0 -19
  1158. package/src/lib/decoders.ts +0 -199
  1159. package/src/lib/erc1271-utils.ts +0 -24
  1160. package/src/lib/fetcher/fetcher.ts +0 -183
  1161. package/src/lib/fetcher/wsFetcher.ts +0 -158
  1162. package/src/lib/generics-events-subscribers/erc20-event-subscriber-factory.ts +0 -18
  1163. package/src/lib/generics-events-subscribers/erc20-event-subscriber.test.ts +0 -126
  1164. package/src/lib/generics-events-subscribers/erc20-event-subscriber.ts +0 -261
  1165. package/src/lib/generics-events-subscribers/types.ts +0 -41
  1166. package/src/lib/generics-events-subscribers/utils.ts +0 -37
  1167. package/src/lib/log-messages-suppressor.ts +0 -173
  1168. package/src/lib/log4js.ts +0 -88
  1169. package/src/lib/multi-wrapper.ts +0 -108
  1170. package/src/lib/promise-scheduler.ts +0 -55
  1171. package/src/lib/pub-sub.ts +0 -232
  1172. package/src/lib/stateful-rpc-poller/state-polling-manager.ts +0 -320
  1173. package/src/lib/stateful-rpc-poller/stateful-rpc-poller.ts +0 -604
  1174. package/src/lib/stateful-rpc-poller/types.ts +0 -66
  1175. package/src/lib/stateful-rpc-poller/utils.ts +0 -23
  1176. package/src/lib/task-scheduler.ts +0 -64
  1177. package/src/lib/token-transfer-fee.ts +0 -42
  1178. package/src/lib/tokens/balancer-fetcher.ts +0 -283
  1179. package/src/lib/tokens/types.ts +0 -102
  1180. package/src/lib/tokens/utils.ts +0 -179
  1181. package/src/lib/utils-interfaces.ts +0 -4
  1182. package/src/lib/validators.ts +0 -34
  1183. package/src/pools-helper.ts +0 -58
  1184. package/src/pricing-helper.ts +0 -328
  1185. package/src/rebase-tokens.json +0 -17
  1186. package/src/router/buy.ts +0 -101
  1187. package/src/router/directswap.ts +0 -101
  1188. package/src/router/index.ts +0 -48
  1189. package/src/router/irouter.ts +0 -20
  1190. package/src/router/megaswap.ts +0 -88
  1191. package/src/router/multiswap.ts +0 -96
  1192. package/src/router/payload-encoder.ts +0 -293
  1193. package/src/router/simpleswap.ts +0 -369
  1194. package/src/router/simpleswapnft.ts +0 -138
  1195. package/src/stateful-event-subscriber.ts +0 -512
  1196. package/src/transaction-builder.ts +0 -129
  1197. package/src/types.ts +0 -357
  1198. package/src/utils.ts +0 -410
  1199. package/tests/constants-e2e.ts +0 -2230
  1200. package/tests/debug-price-route.test.ts +0 -55
  1201. package/tests/generate-new-limit-order.ts +0 -107
  1202. package/tests/payload-encoder.test.ts +0 -49
  1203. package/tests/tenderly-simulation.test.ts +0 -151
  1204. package/tests/tenderly-simulation.ts +0 -698
  1205. package/tests/token-storage-slots.json +0 -738
  1206. package/tests/transaction-builder.test.ts +0 -234
  1207. package/tests/utils-e2e.ts +0 -651
  1208. package/tests/utils-events.ts +0 -186
  1209. package/tests/utils.ts +0 -127
  1210. package/tests/v6/utils-e2e-v6.ts +0 -103
  1211. package/tsconfig.json +0 -23
@@ -1,3059 +0,0 @@
1
- [
2
- {
3
- "anonymous": false,
4
- "inputs": [
5
- {
6
- "indexed": false,
7
- "internalType": "bytes16",
8
- "name": "uuid",
9
- "type": "bytes16"
10
- },
11
- {
12
- "indexed": false,
13
- "internalType": "address",
14
- "name": "initiator",
15
- "type": "address"
16
- },
17
- {
18
- "indexed": true,
19
- "internalType": "address",
20
- "name": "beneficiary",
21
- "type": "address"
22
- },
23
- {
24
- "indexed": true,
25
- "internalType": "address",
26
- "name": "srcToken",
27
- "type": "address"
28
- },
29
- {
30
- "indexed": true,
31
- "internalType": "address",
32
- "name": "destToken",
33
- "type": "address"
34
- },
35
- {
36
- "indexed": false,
37
- "internalType": "uint256",
38
- "name": "srcAmount",
39
- "type": "uint256"
40
- },
41
- {
42
- "indexed": false,
43
- "internalType": "uint256",
44
- "name": "receivedAmount",
45
- "type": "uint256"
46
- }
47
- ],
48
- "name": "Bought",
49
- "type": "event"
50
- },
51
- {
52
- "anonymous": false,
53
- "inputs": [
54
- {
55
- "indexed": false,
56
- "internalType": "bytes16",
57
- "name": "uuid",
58
- "type": "bytes16"
59
- },
60
- {
61
- "indexed": false,
62
- "internalType": "address",
63
- "name": "partner",
64
- "type": "address"
65
- },
66
- {
67
- "indexed": false,
68
- "internalType": "uint256",
69
- "name": "feePercent",
70
- "type": "uint256"
71
- },
72
- {
73
- "indexed": false,
74
- "internalType": "address",
75
- "name": "initiator",
76
- "type": "address"
77
- },
78
- {
79
- "indexed": true,
80
- "internalType": "address",
81
- "name": "beneficiary",
82
- "type": "address"
83
- },
84
- {
85
- "indexed": true,
86
- "internalType": "address",
87
- "name": "srcToken",
88
- "type": "address"
89
- },
90
- {
91
- "indexed": true,
92
- "internalType": "address",
93
- "name": "destToken",
94
- "type": "address"
95
- },
96
- {
97
- "indexed": false,
98
- "internalType": "uint256",
99
- "name": "srcAmount",
100
- "type": "uint256"
101
- },
102
- {
103
- "indexed": false,
104
- "internalType": "uint256",
105
- "name": "receivedAmount",
106
- "type": "uint256"
107
- }
108
- ],
109
- "name": "Bought2",
110
- "type": "event"
111
- },
112
- {
113
- "anonymous": false,
114
- "inputs": [
115
- {
116
- "indexed": false,
117
- "internalType": "bytes16",
118
- "name": "uuid",
119
- "type": "bytes16"
120
- },
121
- {
122
- "indexed": false,
123
- "internalType": "address",
124
- "name": "partner",
125
- "type": "address"
126
- },
127
- {
128
- "indexed": false,
129
- "internalType": "uint256",
130
- "name": "feePercent",
131
- "type": "uint256"
132
- },
133
- {
134
- "indexed": false,
135
- "internalType": "address",
136
- "name": "initiator",
137
- "type": "address"
138
- },
139
- {
140
- "indexed": true,
141
- "internalType": "address",
142
- "name": "beneficiary",
143
- "type": "address"
144
- },
145
- {
146
- "indexed": true,
147
- "internalType": "address",
148
- "name": "srcToken",
149
- "type": "address"
150
- },
151
- {
152
- "components": [
153
- {
154
- "internalType": "uint256",
155
- "name": "toToken",
156
- "type": "uint256"
157
- },
158
- {
159
- "internalType": "uint256",
160
- "name": "toTokenID",
161
- "type": "uint256"
162
- },
163
- {
164
- "internalType": "uint256",
165
- "name": "toAmount",
166
- "type": "uint256"
167
- }
168
- ],
169
- "indexed": false,
170
- "internalType": "struct UtilsNFT.ToTokenNFTDetails[]",
171
- "name": "destTokenDetails",
172
- "type": "tuple[]"
173
- },
174
- {
175
- "indexed": false,
176
- "internalType": "uint256",
177
- "name": "srcAmount",
178
- "type": "uint256"
179
- },
180
- {
181
- "indexed": false,
182
- "internalType": "uint256",
183
- "name": "expectedAmount",
184
- "type": "uint256"
185
- }
186
- ],
187
- "name": "BoughtNFTV3",
188
- "type": "event"
189
- },
190
- {
191
- "anonymous": false,
192
- "inputs": [
193
- {
194
- "indexed": false,
195
- "internalType": "bytes16",
196
- "name": "uuid",
197
- "type": "bytes16"
198
- },
199
- {
200
- "indexed": false,
201
- "internalType": "address",
202
- "name": "partner",
203
- "type": "address"
204
- },
205
- {
206
- "indexed": false,
207
- "internalType": "uint256",
208
- "name": "feePercent",
209
- "type": "uint256"
210
- },
211
- {
212
- "indexed": false,
213
- "internalType": "address",
214
- "name": "initiator",
215
- "type": "address"
216
- },
217
- {
218
- "indexed": true,
219
- "internalType": "address",
220
- "name": "beneficiary",
221
- "type": "address"
222
- },
223
- {
224
- "indexed": true,
225
- "internalType": "address",
226
- "name": "srcToken",
227
- "type": "address"
228
- },
229
- {
230
- "indexed": true,
231
- "internalType": "address",
232
- "name": "destToken",
233
- "type": "address"
234
- },
235
- {
236
- "indexed": false,
237
- "internalType": "uint256",
238
- "name": "srcAmount",
239
- "type": "uint256"
240
- },
241
- {
242
- "indexed": false,
243
- "internalType": "uint256",
244
- "name": "receivedAmount",
245
- "type": "uint256"
246
- },
247
- {
248
- "indexed": false,
249
- "internalType": "uint256",
250
- "name": "expectedAmount",
251
- "type": "uint256"
252
- }
253
- ],
254
- "name": "BoughtV3",
255
- "type": "event"
256
- },
257
- {
258
- "anonymous": false,
259
- "inputs": [
260
- {
261
- "indexed": false,
262
- "internalType": "bytes16",
263
- "name": "uuid",
264
- "type": "bytes16"
265
- },
266
- {
267
- "indexed": false,
268
- "internalType": "address",
269
- "name": "initiator",
270
- "type": "address"
271
- },
272
- {
273
- "indexed": true,
274
- "internalType": "address",
275
- "name": "beneficiary",
276
- "type": "address"
277
- },
278
- {
279
- "indexed": true,
280
- "internalType": "address",
281
- "name": "srcToken",
282
- "type": "address"
283
- },
284
- {
285
- "indexed": true,
286
- "internalType": "address",
287
- "name": "destToken",
288
- "type": "address"
289
- },
290
- {
291
- "indexed": false,
292
- "internalType": "uint256",
293
- "name": "srcAmount",
294
- "type": "uint256"
295
- },
296
- {
297
- "indexed": false,
298
- "internalType": "uint256",
299
- "name": "receivedAmount",
300
- "type": "uint256"
301
- },
302
- {
303
- "indexed": false,
304
- "internalType": "uint256",
305
- "name": "expectedAmount",
306
- "type": "uint256"
307
- }
308
- ],
309
- "name": "Swapped",
310
- "type": "event"
311
- },
312
- {
313
- "anonymous": false,
314
- "inputs": [
315
- {
316
- "indexed": false,
317
- "internalType": "bytes16",
318
- "name": "uuid",
319
- "type": "bytes16"
320
- },
321
- {
322
- "indexed": false,
323
- "internalType": "address",
324
- "name": "partner",
325
- "type": "address"
326
- },
327
- {
328
- "indexed": false,
329
- "internalType": "uint256",
330
- "name": "feePercent",
331
- "type": "uint256"
332
- },
333
- {
334
- "indexed": false,
335
- "internalType": "address",
336
- "name": "initiator",
337
- "type": "address"
338
- },
339
- {
340
- "indexed": true,
341
- "internalType": "address",
342
- "name": "beneficiary",
343
- "type": "address"
344
- },
345
- {
346
- "indexed": true,
347
- "internalType": "address",
348
- "name": "srcToken",
349
- "type": "address"
350
- },
351
- {
352
- "indexed": true,
353
- "internalType": "address",
354
- "name": "destToken",
355
- "type": "address"
356
- },
357
- {
358
- "indexed": false,
359
- "internalType": "uint256",
360
- "name": "srcAmount",
361
- "type": "uint256"
362
- },
363
- {
364
- "indexed": false,
365
- "internalType": "uint256",
366
- "name": "receivedAmount",
367
- "type": "uint256"
368
- },
369
- {
370
- "indexed": false,
371
- "internalType": "uint256",
372
- "name": "expectedAmount",
373
- "type": "uint256"
374
- }
375
- ],
376
- "name": "Swapped2",
377
- "type": "event"
378
- },
379
- {
380
- "anonymous": false,
381
- "inputs": [
382
- {
383
- "indexed": false,
384
- "internalType": "bytes16",
385
- "name": "uuid",
386
- "type": "bytes16"
387
- },
388
- {
389
- "indexed": false,
390
- "internalType": "address",
391
- "name": "partner",
392
- "type": "address"
393
- },
394
- {
395
- "indexed": false,
396
- "internalType": "uint256",
397
- "name": "feePercent",
398
- "type": "uint256"
399
- },
400
- {
401
- "indexed": false,
402
- "internalType": "address",
403
- "name": "initiator",
404
- "type": "address"
405
- },
406
- {
407
- "indexed": true,
408
- "internalType": "address",
409
- "name": "beneficiary",
410
- "type": "address"
411
- },
412
- {
413
- "indexed": true,
414
- "internalType": "address",
415
- "name": "srcToken",
416
- "type": "address"
417
- },
418
- {
419
- "indexed": true,
420
- "internalType": "address",
421
- "name": "destToken",
422
- "type": "address"
423
- },
424
- {
425
- "indexed": false,
426
- "internalType": "uint256",
427
- "name": "srcAmount",
428
- "type": "uint256"
429
- },
430
- {
431
- "indexed": false,
432
- "internalType": "uint256",
433
- "name": "receivedAmount",
434
- "type": "uint256"
435
- },
436
- {
437
- "indexed": false,
438
- "internalType": "uint256",
439
- "name": "expectedAmount",
440
- "type": "uint256"
441
- }
442
- ],
443
- "name": "SwappedV3",
444
- "type": "event"
445
- },
446
- {
447
- "inputs": [
448
- {
449
- "components": [
450
- {
451
- "internalType": "address",
452
- "name": "adapter",
453
- "type": "address"
454
- },
455
- {
456
- "internalType": "address",
457
- "name": "fromToken",
458
- "type": "address"
459
- },
460
- {
461
- "internalType": "address",
462
- "name": "toToken",
463
- "type": "address"
464
- },
465
- {
466
- "internalType": "uint256",
467
- "name": "fromAmount",
468
- "type": "uint256"
469
- },
470
- {
471
- "internalType": "uint256",
472
- "name": "toAmount",
473
- "type": "uint256"
474
- },
475
- {
476
- "internalType": "uint256",
477
- "name": "expectedAmount",
478
- "type": "uint256"
479
- },
480
- {
481
- "internalType": "address payable",
482
- "name": "beneficiary",
483
- "type": "address"
484
- },
485
- {
486
- "components": [
487
- {
488
- "internalType": "uint256",
489
- "name": "index",
490
- "type": "uint256"
491
- },
492
- {
493
- "internalType": "address",
494
- "name": "targetExchange",
495
- "type": "address"
496
- },
497
- {
498
- "internalType": "uint256",
499
- "name": "percent",
500
- "type": "uint256"
501
- },
502
- {
503
- "internalType": "bytes",
504
- "name": "payload",
505
- "type": "bytes"
506
- },
507
- {
508
- "internalType": "uint256",
509
- "name": "networkFee",
510
- "type": "uint256"
511
- }
512
- ],
513
- "internalType": "struct Utils.Route[]",
514
- "name": "route",
515
- "type": "tuple[]"
516
- },
517
- {
518
- "internalType": "address payable",
519
- "name": "partner",
520
- "type": "address"
521
- },
522
- {
523
- "internalType": "uint256",
524
- "name": "feePercent",
525
- "type": "uint256"
526
- },
527
- {
528
- "internalType": "bytes",
529
- "name": "permit",
530
- "type": "bytes"
531
- },
532
- {
533
- "internalType": "uint256",
534
- "name": "deadline",
535
- "type": "uint256"
536
- },
537
- {
538
- "internalType": "bytes16",
539
- "name": "uuid",
540
- "type": "bytes16"
541
- }
542
- ],
543
- "internalType": "struct Utils.BuyData",
544
- "name": "data",
545
- "type": "tuple"
546
- }
547
- ],
548
- "name": "buy",
549
- "outputs": [
550
- {
551
- "internalType": "uint256",
552
- "name": "",
553
- "type": "uint256"
554
- }
555
- ],
556
- "stateMutability": "payable",
557
- "type": "function"
558
- },
559
- {
560
- "inputs": [
561
- {
562
- "components": [
563
- {
564
- "components": [
565
- {
566
- "internalType": "uint256",
567
- "name": "nonceAndMeta",
568
- "type": "uint256"
569
- },
570
- {
571
- "internalType": "uint128",
572
- "name": "expiry",
573
- "type": "uint128"
574
- },
575
- {
576
- "internalType": "address",
577
- "name": "makerAsset",
578
- "type": "address"
579
- },
580
- {
581
- "internalType": "address",
582
- "name": "takerAsset",
583
- "type": "address"
584
- },
585
- {
586
- "internalType": "address",
587
- "name": "maker",
588
- "type": "address"
589
- },
590
- {
591
- "internalType": "address",
592
- "name": "taker",
593
- "type": "address"
594
- },
595
- {
596
- "internalType": "uint256",
597
- "name": "makerAmount",
598
- "type": "uint256"
599
- },
600
- {
601
- "internalType": "uint256",
602
- "name": "takerAmount",
603
- "type": "uint256"
604
- }
605
- ],
606
- "internalType": "struct IAugustusRFQ.Order",
607
- "name": "order",
608
- "type": "tuple"
609
- },
610
- {
611
- "internalType": "bytes",
612
- "name": "signature",
613
- "type": "bytes"
614
- },
615
- {
616
- "internalType": "uint256",
617
- "name": "takerTokenFillAmount",
618
- "type": "uint256"
619
- },
620
- {
621
- "internalType": "bytes",
622
- "name": "permitTakerAsset",
623
- "type": "bytes"
624
- },
625
- {
626
- "internalType": "bytes",
627
- "name": "permitMakerAsset",
628
- "type": "bytes"
629
- }
630
- ],
631
- "internalType": "struct IAugustusRFQ.OrderInfo[]",
632
- "name": "orderInfos",
633
- "type": "tuple[]"
634
- },
635
- {
636
- "internalType": "uint8",
637
- "name": "wrapETH",
638
- "type": "uint8"
639
- },
640
- {
641
- "internalType": "uint256",
642
- "name": "fromAmountMax",
643
- "type": "uint256"
644
- },
645
- {
646
- "internalType": "uint256",
647
- "name": "toAmount",
648
- "type": "uint256"
649
- }
650
- ],
651
- "name": "buyOnAugustusRFQTryBatchFill",
652
- "outputs": [],
653
- "stateMutability": "payable",
654
- "type": "function"
655
- },
656
- {
657
- "inputs": [
658
- {
659
- "components": [
660
- {
661
- "components": [
662
- {
663
- "internalType": "uint256",
664
- "name": "nonceAndMeta",
665
- "type": "uint256"
666
- },
667
- {
668
- "internalType": "uint128",
669
- "name": "expiry",
670
- "type": "uint128"
671
- },
672
- {
673
- "internalType": "address",
674
- "name": "makerAsset",
675
- "type": "address"
676
- },
677
- {
678
- "internalType": "address",
679
- "name": "takerAsset",
680
- "type": "address"
681
- },
682
- {
683
- "internalType": "address",
684
- "name": "maker",
685
- "type": "address"
686
- },
687
- {
688
- "internalType": "address",
689
- "name": "taker",
690
- "type": "address"
691
- },
692
- {
693
- "internalType": "uint256",
694
- "name": "makerAmount",
695
- "type": "uint256"
696
- },
697
- {
698
- "internalType": "uint256",
699
- "name": "takerAmount",
700
- "type": "uint256"
701
- }
702
- ],
703
- "internalType": "struct IAugustusRFQ.Order",
704
- "name": "order",
705
- "type": "tuple"
706
- },
707
- {
708
- "internalType": "bytes",
709
- "name": "signature",
710
- "type": "bytes"
711
- },
712
- {
713
- "internalType": "uint256",
714
- "name": "takerTokenFillAmount",
715
- "type": "uint256"
716
- },
717
- {
718
- "internalType": "bytes",
719
- "name": "permitTakerAsset",
720
- "type": "bytes"
721
- },
722
- {
723
- "internalType": "bytes",
724
- "name": "permitMakerAsset",
725
- "type": "bytes"
726
- }
727
- ],
728
- "internalType": "struct IAugustusRFQ.OrderInfo[]",
729
- "name": "orderInfos",
730
- "type": "tuple[]"
731
- },
732
- {
733
- "internalType": "uint8",
734
- "name": "wrapETH",
735
- "type": "uint8"
736
- },
737
- {
738
- "internalType": "uint256",
739
- "name": "fromAmountMax",
740
- "type": "uint256"
741
- },
742
- {
743
- "internalType": "uint256",
744
- "name": "toAmount",
745
- "type": "uint256"
746
- },
747
- {
748
- "internalType": "bytes",
749
- "name": "permit",
750
- "type": "bytes"
751
- }
752
- ],
753
- "name": "buyOnAugustusRFQTryBatchFillWithPermit",
754
- "outputs": [],
755
- "stateMutability": "payable",
756
- "type": "function"
757
- },
758
- {
759
- "inputs": [
760
- {
761
- "internalType": "uint256",
762
- "name": "amountInMax",
763
- "type": "uint256"
764
- },
765
- {
766
- "internalType": "uint256",
767
- "name": "amountOut",
768
- "type": "uint256"
769
- },
770
- {
771
- "internalType": "address[]",
772
- "name": "path",
773
- "type": "address[]"
774
- }
775
- ],
776
- "name": "buyOnUniswap",
777
- "outputs": [],
778
- "stateMutability": "payable",
779
- "type": "function"
780
- },
781
- {
782
- "inputs": [
783
- {
784
- "internalType": "address",
785
- "name": "factory",
786
- "type": "address"
787
- },
788
- {
789
- "internalType": "bytes32",
790
- "name": "initCode",
791
- "type": "bytes32"
792
- },
793
- {
794
- "internalType": "uint256",
795
- "name": "amountInMax",
796
- "type": "uint256"
797
- },
798
- {
799
- "internalType": "uint256",
800
- "name": "amountOut",
801
- "type": "uint256"
802
- },
803
- {
804
- "internalType": "address[]",
805
- "name": "path",
806
- "type": "address[]"
807
- }
808
- ],
809
- "name": "buyOnUniswapFork",
810
- "outputs": [],
811
- "stateMutability": "payable",
812
- "type": "function"
813
- },
814
- {
815
- "inputs": [
816
- {
817
- "internalType": "address",
818
- "name": "tokenIn",
819
- "type": "address"
820
- },
821
- {
822
- "internalType": "uint256",
823
- "name": "amountInMax",
824
- "type": "uint256"
825
- },
826
- {
827
- "internalType": "uint256",
828
- "name": "amountOut",
829
- "type": "uint256"
830
- },
831
- {
832
- "internalType": "address",
833
- "name": "weth",
834
- "type": "address"
835
- },
836
- {
837
- "internalType": "uint256[]",
838
- "name": "pools",
839
- "type": "uint256[]"
840
- }
841
- ],
842
- "name": "buyOnUniswapV2Fork",
843
- "outputs": [],
844
- "stateMutability": "payable",
845
- "type": "function"
846
- },
847
- {
848
- "inputs": [
849
- {
850
- "internalType": "address",
851
- "name": "tokenIn",
852
- "type": "address"
853
- },
854
- {
855
- "internalType": "uint256",
856
- "name": "amountInMax",
857
- "type": "uint256"
858
- },
859
- {
860
- "internalType": "uint256",
861
- "name": "amountOut",
862
- "type": "uint256"
863
- },
864
- {
865
- "internalType": "address",
866
- "name": "weth",
867
- "type": "address"
868
- },
869
- {
870
- "internalType": "uint256[]",
871
- "name": "pools",
872
- "type": "uint256[]"
873
- },
874
- {
875
- "internalType": "bytes",
876
- "name": "permit",
877
- "type": "bytes"
878
- }
879
- ],
880
- "name": "buyOnUniswapV2ForkWithPermit",
881
- "outputs": [],
882
- "stateMutability": "payable",
883
- "type": "function"
884
- },
885
- {
886
- "inputs": [
887
- {
888
- "components": [
889
- {
890
- "internalType": "address",
891
- "name": "fromToken",
892
- "type": "address"
893
- },
894
- {
895
- "internalType": "uint256",
896
- "name": "fromAmount",
897
- "type": "uint256"
898
- },
899
- {
900
- "internalType": "uint256",
901
- "name": "toAmount",
902
- "type": "uint256"
903
- },
904
- {
905
- "internalType": "uint256",
906
- "name": "expectedAmount",
907
- "type": "uint256"
908
- },
909
- {
910
- "internalType": "address payable",
911
- "name": "beneficiary",
912
- "type": "address"
913
- },
914
- {
915
- "components": [
916
- {
917
- "internalType": "uint256",
918
- "name": "fromAmountPercent",
919
- "type": "uint256"
920
- },
921
- {
922
- "components": [
923
- {
924
- "internalType": "address",
925
- "name": "to",
926
- "type": "address"
927
- },
928
- {
929
- "internalType": "uint256",
930
- "name": "totalNetworkFee",
931
- "type": "uint256"
932
- },
933
- {
934
- "components": [
935
- {
936
- "internalType": "address payable",
937
- "name": "adapter",
938
- "type": "address"
939
- },
940
- {
941
- "internalType": "uint256",
942
- "name": "percent",
943
- "type": "uint256"
944
- },
945
- {
946
- "internalType": "uint256",
947
- "name": "networkFee",
948
- "type": "uint256"
949
- },
950
- {
951
- "components": [
952
- {
953
- "internalType": "uint256",
954
- "name": "index",
955
- "type": "uint256"
956
- },
957
- {
958
- "internalType": "address",
959
- "name": "targetExchange",
960
- "type": "address"
961
- },
962
- {
963
- "internalType": "uint256",
964
- "name": "percent",
965
- "type": "uint256"
966
- },
967
- {
968
- "internalType": "bytes",
969
- "name": "payload",
970
- "type": "bytes"
971
- },
972
- {
973
- "internalType": "uint256",
974
- "name": "networkFee",
975
- "type": "uint256"
976
- }
977
- ],
978
- "internalType": "struct Utils.Route[]",
979
- "name": "route",
980
- "type": "tuple[]"
981
- }
982
- ],
983
- "internalType": "struct Utils.Adapter[]",
984
- "name": "adapters",
985
- "type": "tuple[]"
986
- }
987
- ],
988
- "internalType": "struct Utils.Path[]",
989
- "name": "path",
990
- "type": "tuple[]"
991
- }
992
- ],
993
- "internalType": "struct Utils.MegaSwapPath[]",
994
- "name": "path",
995
- "type": "tuple[]"
996
- },
997
- {
998
- "internalType": "address payable",
999
- "name": "partner",
1000
- "type": "address"
1001
- },
1002
- {
1003
- "internalType": "uint256",
1004
- "name": "feePercent",
1005
- "type": "uint256"
1006
- },
1007
- {
1008
- "internalType": "bytes",
1009
- "name": "permit",
1010
- "type": "bytes"
1011
- },
1012
- {
1013
- "internalType": "uint256",
1014
- "name": "deadline",
1015
- "type": "uint256"
1016
- },
1017
- {
1018
- "internalType": "bytes16",
1019
- "name": "uuid",
1020
- "type": "bytes16"
1021
- }
1022
- ],
1023
- "internalType": "struct Utils.MegaSwapSellData",
1024
- "name": "data",
1025
- "type": "tuple"
1026
- }
1027
- ],
1028
- "name": "megaSwap",
1029
- "outputs": [
1030
- {
1031
- "internalType": "uint256",
1032
- "name": "",
1033
- "type": "uint256"
1034
- }
1035
- ],
1036
- "stateMutability": "payable",
1037
- "type": "function"
1038
- },
1039
- {
1040
- "inputs": [
1041
- {
1042
- "components": [
1043
- {
1044
- "internalType": "address",
1045
- "name": "fromToken",
1046
- "type": "address"
1047
- },
1048
- {
1049
- "internalType": "uint256",
1050
- "name": "fromAmount",
1051
- "type": "uint256"
1052
- },
1053
- {
1054
- "internalType": "uint256",
1055
- "name": "toAmount",
1056
- "type": "uint256"
1057
- },
1058
- {
1059
- "internalType": "uint256",
1060
- "name": "expectedAmount",
1061
- "type": "uint256"
1062
- },
1063
- {
1064
- "internalType": "address payable",
1065
- "name": "beneficiary",
1066
- "type": "address"
1067
- },
1068
- {
1069
- "components": [
1070
- {
1071
- "internalType": "address",
1072
- "name": "to",
1073
- "type": "address"
1074
- },
1075
- {
1076
- "internalType": "uint256",
1077
- "name": "totalNetworkFee",
1078
- "type": "uint256"
1079
- },
1080
- {
1081
- "components": [
1082
- {
1083
- "internalType": "address payable",
1084
- "name": "adapter",
1085
- "type": "address"
1086
- },
1087
- {
1088
- "internalType": "uint256",
1089
- "name": "percent",
1090
- "type": "uint256"
1091
- },
1092
- {
1093
- "internalType": "uint256",
1094
- "name": "networkFee",
1095
- "type": "uint256"
1096
- },
1097
- {
1098
- "components": [
1099
- {
1100
- "internalType": "uint256",
1101
- "name": "index",
1102
- "type": "uint256"
1103
- },
1104
- {
1105
- "internalType": "address",
1106
- "name": "targetExchange",
1107
- "type": "address"
1108
- },
1109
- {
1110
- "internalType": "uint256",
1111
- "name": "percent",
1112
- "type": "uint256"
1113
- },
1114
- {
1115
- "internalType": "bytes",
1116
- "name": "payload",
1117
- "type": "bytes"
1118
- },
1119
- {
1120
- "internalType": "uint256",
1121
- "name": "networkFee",
1122
- "type": "uint256"
1123
- }
1124
- ],
1125
- "internalType": "struct Utils.Route[]",
1126
- "name": "route",
1127
- "type": "tuple[]"
1128
- }
1129
- ],
1130
- "internalType": "struct Utils.Adapter[]",
1131
- "name": "adapters",
1132
- "type": "tuple[]"
1133
- }
1134
- ],
1135
- "internalType": "struct Utils.Path[]",
1136
- "name": "path",
1137
- "type": "tuple[]"
1138
- },
1139
- {
1140
- "internalType": "address payable",
1141
- "name": "partner",
1142
- "type": "address"
1143
- },
1144
- {
1145
- "internalType": "uint256",
1146
- "name": "feePercent",
1147
- "type": "uint256"
1148
- },
1149
- {
1150
- "internalType": "bytes",
1151
- "name": "permit",
1152
- "type": "bytes"
1153
- },
1154
- {
1155
- "internalType": "uint256",
1156
- "name": "deadline",
1157
- "type": "uint256"
1158
- },
1159
- {
1160
- "internalType": "bytes16",
1161
- "name": "uuid",
1162
- "type": "bytes16"
1163
- }
1164
- ],
1165
- "internalType": "struct Utils.SellData",
1166
- "name": "data",
1167
- "type": "tuple"
1168
- }
1169
- ],
1170
- "name": "multiSwap",
1171
- "outputs": [
1172
- {
1173
- "internalType": "uint256",
1174
- "name": "",
1175
- "type": "uint256"
1176
- }
1177
- ],
1178
- "stateMutability": "payable",
1179
- "type": "function"
1180
- },
1181
- {
1182
- "inputs": [
1183
- {
1184
- "components": [
1185
- {
1186
- "internalType": "uint256",
1187
- "name": "nonceAndMeta",
1188
- "type": "uint256"
1189
- },
1190
- {
1191
- "internalType": "uint128",
1192
- "name": "expiry",
1193
- "type": "uint128"
1194
- },
1195
- {
1196
- "internalType": "address",
1197
- "name": "makerAsset",
1198
- "type": "address"
1199
- },
1200
- {
1201
- "internalType": "address",
1202
- "name": "takerAsset",
1203
- "type": "address"
1204
- },
1205
- {
1206
- "internalType": "address",
1207
- "name": "maker",
1208
- "type": "address"
1209
- },
1210
- {
1211
- "internalType": "address",
1212
- "name": "taker",
1213
- "type": "address"
1214
- },
1215
- {
1216
- "internalType": "uint256",
1217
- "name": "makerAmount",
1218
- "type": "uint256"
1219
- },
1220
- {
1221
- "internalType": "uint256",
1222
- "name": "takerAmount",
1223
- "type": "uint256"
1224
- }
1225
- ],
1226
- "internalType": "struct IAugustusRFQ.Order",
1227
- "name": "order",
1228
- "type": "tuple"
1229
- },
1230
- {
1231
- "internalType": "bytes",
1232
- "name": "signature",
1233
- "type": "bytes"
1234
- },
1235
- {
1236
- "internalType": "bytes",
1237
- "name": "makerPermit",
1238
- "type": "bytes"
1239
- },
1240
- {
1241
- "internalType": "uint8",
1242
- "name": "wrapETH",
1243
- "type": "uint8"
1244
- },
1245
- {
1246
- "internalType": "uint256",
1247
- "name": "fromAmount",
1248
- "type": "uint256"
1249
- }
1250
- ],
1251
- "name": "partialSwapOnAugustusRFQ",
1252
- "outputs": [],
1253
- "stateMutability": "payable",
1254
- "type": "function"
1255
- },
1256
- {
1257
- "inputs": [
1258
- {
1259
- "components": [
1260
- {
1261
- "internalType": "uint256",
1262
- "name": "nonceAndMeta",
1263
- "type": "uint256"
1264
- },
1265
- {
1266
- "internalType": "uint128",
1267
- "name": "expiry",
1268
- "type": "uint128"
1269
- },
1270
- {
1271
- "internalType": "uint256",
1272
- "name": "makerAsset",
1273
- "type": "uint256"
1274
- },
1275
- {
1276
- "internalType": "uint256",
1277
- "name": "makerAssetId",
1278
- "type": "uint256"
1279
- },
1280
- {
1281
- "internalType": "uint256",
1282
- "name": "takerAsset",
1283
- "type": "uint256"
1284
- },
1285
- {
1286
- "internalType": "uint256",
1287
- "name": "takerAssetId",
1288
- "type": "uint256"
1289
- },
1290
- {
1291
- "internalType": "address",
1292
- "name": "maker",
1293
- "type": "address"
1294
- },
1295
- {
1296
- "internalType": "address",
1297
- "name": "taker",
1298
- "type": "address"
1299
- },
1300
- {
1301
- "internalType": "uint256",
1302
- "name": "makerAmount",
1303
- "type": "uint256"
1304
- },
1305
- {
1306
- "internalType": "uint256",
1307
- "name": "takerAmount",
1308
- "type": "uint256"
1309
- }
1310
- ],
1311
- "internalType": "struct IAugustusRFQ.OrderNFT",
1312
- "name": "order",
1313
- "type": "tuple"
1314
- },
1315
- {
1316
- "internalType": "bytes",
1317
- "name": "signature",
1318
- "type": "bytes"
1319
- },
1320
- {
1321
- "internalType": "bytes",
1322
- "name": "makerPermit",
1323
- "type": "bytes"
1324
- },
1325
- {
1326
- "internalType": "uint8",
1327
- "name": "wrapETH",
1328
- "type": "uint8"
1329
- },
1330
- {
1331
- "internalType": "uint256",
1332
- "name": "fromAmount",
1333
- "type": "uint256"
1334
- }
1335
- ],
1336
- "name": "partialSwapOnAugustusRFQNFT",
1337
- "outputs": [],
1338
- "stateMutability": "payable",
1339
- "type": "function"
1340
- },
1341
- {
1342
- "inputs": [
1343
- {
1344
- "components": [
1345
- {
1346
- "internalType": "uint256",
1347
- "name": "nonceAndMeta",
1348
- "type": "uint256"
1349
- },
1350
- {
1351
- "internalType": "uint128",
1352
- "name": "expiry",
1353
- "type": "uint128"
1354
- },
1355
- {
1356
- "internalType": "uint256",
1357
- "name": "makerAsset",
1358
- "type": "uint256"
1359
- },
1360
- {
1361
- "internalType": "uint256",
1362
- "name": "makerAssetId",
1363
- "type": "uint256"
1364
- },
1365
- {
1366
- "internalType": "uint256",
1367
- "name": "takerAsset",
1368
- "type": "uint256"
1369
- },
1370
- {
1371
- "internalType": "uint256",
1372
- "name": "takerAssetId",
1373
- "type": "uint256"
1374
- },
1375
- {
1376
- "internalType": "address",
1377
- "name": "maker",
1378
- "type": "address"
1379
- },
1380
- {
1381
- "internalType": "address",
1382
- "name": "taker",
1383
- "type": "address"
1384
- },
1385
- {
1386
- "internalType": "uint256",
1387
- "name": "makerAmount",
1388
- "type": "uint256"
1389
- },
1390
- {
1391
- "internalType": "uint256",
1392
- "name": "takerAmount",
1393
- "type": "uint256"
1394
- }
1395
- ],
1396
- "internalType": "struct IAugustusRFQ.OrderNFT",
1397
- "name": "order",
1398
- "type": "tuple"
1399
- },
1400
- {
1401
- "internalType": "bytes",
1402
- "name": "signature",
1403
- "type": "bytes"
1404
- },
1405
- {
1406
- "internalType": "bytes",
1407
- "name": "makerPermit",
1408
- "type": "bytes"
1409
- },
1410
- {
1411
- "internalType": "uint8",
1412
- "name": "wrapETH",
1413
- "type": "uint8"
1414
- },
1415
- {
1416
- "internalType": "uint256",
1417
- "name": "fromAmount",
1418
- "type": "uint256"
1419
- },
1420
- {
1421
- "internalType": "bytes",
1422
- "name": "permit",
1423
- "type": "bytes"
1424
- }
1425
- ],
1426
- "name": "partialSwapOnAugustusRFQNFTWithPermit",
1427
- "outputs": [],
1428
- "stateMutability": "payable",
1429
- "type": "function"
1430
- },
1431
- {
1432
- "inputs": [
1433
- {
1434
- "components": [
1435
- {
1436
- "internalType": "uint256",
1437
- "name": "nonceAndMeta",
1438
- "type": "uint256"
1439
- },
1440
- {
1441
- "internalType": "uint128",
1442
- "name": "expiry",
1443
- "type": "uint128"
1444
- },
1445
- {
1446
- "internalType": "address",
1447
- "name": "makerAsset",
1448
- "type": "address"
1449
- },
1450
- {
1451
- "internalType": "address",
1452
- "name": "takerAsset",
1453
- "type": "address"
1454
- },
1455
- {
1456
- "internalType": "address",
1457
- "name": "maker",
1458
- "type": "address"
1459
- },
1460
- {
1461
- "internalType": "address",
1462
- "name": "taker",
1463
- "type": "address"
1464
- },
1465
- {
1466
- "internalType": "uint256",
1467
- "name": "makerAmount",
1468
- "type": "uint256"
1469
- },
1470
- {
1471
- "internalType": "uint256",
1472
- "name": "takerAmount",
1473
- "type": "uint256"
1474
- }
1475
- ],
1476
- "internalType": "struct IAugustusRFQ.Order",
1477
- "name": "order",
1478
- "type": "tuple"
1479
- },
1480
- {
1481
- "internalType": "bytes",
1482
- "name": "signature",
1483
- "type": "bytes"
1484
- },
1485
- {
1486
- "internalType": "bytes",
1487
- "name": "makerPermit",
1488
- "type": "bytes"
1489
- },
1490
- {
1491
- "internalType": "uint8",
1492
- "name": "wrapETH",
1493
- "type": "uint8"
1494
- },
1495
- {
1496
- "internalType": "uint256",
1497
- "name": "fromAmount",
1498
- "type": "uint256"
1499
- },
1500
- {
1501
- "internalType": "bytes",
1502
- "name": "permit",
1503
- "type": "bytes"
1504
- }
1505
- ],
1506
- "name": "partialSwapOnAugustusRFQWithPermit",
1507
- "outputs": [],
1508
- "stateMutability": "payable",
1509
- "type": "function"
1510
- },
1511
- {
1512
- "inputs": [
1513
- {
1514
- "components": [
1515
- {
1516
- "internalType": "address",
1517
- "name": "fromToken",
1518
- "type": "address"
1519
- },
1520
- {
1521
- "internalType": "uint256",
1522
- "name": "fromAmount",
1523
- "type": "uint256"
1524
- },
1525
- {
1526
- "internalType": "uint256",
1527
- "name": "toAmount",
1528
- "type": "uint256"
1529
- },
1530
- {
1531
- "internalType": "uint256",
1532
- "name": "expectedAmount",
1533
- "type": "uint256"
1534
- },
1535
- {
1536
- "internalType": "address payable",
1537
- "name": "beneficiary",
1538
- "type": "address"
1539
- },
1540
- {
1541
- "components": [
1542
- {
1543
- "internalType": "uint256",
1544
- "name": "fromAmountPercent",
1545
- "type": "uint256"
1546
- },
1547
- {
1548
- "components": [
1549
- {
1550
- "internalType": "address",
1551
- "name": "to",
1552
- "type": "address"
1553
- },
1554
- {
1555
- "internalType": "uint256",
1556
- "name": "totalNetworkFee",
1557
- "type": "uint256"
1558
- },
1559
- {
1560
- "components": [
1561
- {
1562
- "internalType": "address payable",
1563
- "name": "adapter",
1564
- "type": "address"
1565
- },
1566
- {
1567
- "internalType": "uint256",
1568
- "name": "percent",
1569
- "type": "uint256"
1570
- },
1571
- {
1572
- "internalType": "uint256",
1573
- "name": "networkFee",
1574
- "type": "uint256"
1575
- },
1576
- {
1577
- "components": [
1578
- {
1579
- "internalType": "uint256",
1580
- "name": "index",
1581
- "type": "uint256"
1582
- },
1583
- {
1584
- "internalType": "address",
1585
- "name": "targetExchange",
1586
- "type": "address"
1587
- },
1588
- {
1589
- "internalType": "uint256",
1590
- "name": "percent",
1591
- "type": "uint256"
1592
- },
1593
- {
1594
- "internalType": "bytes",
1595
- "name": "payload",
1596
- "type": "bytes"
1597
- },
1598
- {
1599
- "internalType": "uint256",
1600
- "name": "networkFee",
1601
- "type": "uint256"
1602
- }
1603
- ],
1604
- "internalType": "struct Utils.Route[]",
1605
- "name": "route",
1606
- "type": "tuple[]"
1607
- }
1608
- ],
1609
- "internalType": "struct Utils.Adapter[]",
1610
- "name": "adapters",
1611
- "type": "tuple[]"
1612
- }
1613
- ],
1614
- "internalType": "struct Utils.Path[]",
1615
- "name": "path",
1616
- "type": "tuple[]"
1617
- }
1618
- ],
1619
- "internalType": "struct Utils.MegaSwapPath[]",
1620
- "name": "path",
1621
- "type": "tuple[]"
1622
- },
1623
- {
1624
- "internalType": "address payable",
1625
- "name": "partner",
1626
- "type": "address"
1627
- },
1628
- {
1629
- "internalType": "uint256",
1630
- "name": "feePercent",
1631
- "type": "uint256"
1632
- },
1633
- {
1634
- "internalType": "bytes",
1635
- "name": "permit",
1636
- "type": "bytes"
1637
- },
1638
- {
1639
- "internalType": "uint256",
1640
- "name": "deadline",
1641
- "type": "uint256"
1642
- },
1643
- {
1644
- "internalType": "bytes16",
1645
- "name": "uuid",
1646
- "type": "bytes16"
1647
- }
1648
- ],
1649
- "internalType": "struct Utils.MegaSwapSellData",
1650
- "name": "data",
1651
- "type": "tuple"
1652
- }
1653
- ],
1654
- "name": "protectedMegaSwap",
1655
- "outputs": [
1656
- {
1657
- "internalType": "uint256",
1658
- "name": "",
1659
- "type": "uint256"
1660
- }
1661
- ],
1662
- "stateMutability": "payable",
1663
- "type": "function"
1664
- },
1665
- {
1666
- "inputs": [
1667
- {
1668
- "components": [
1669
- {
1670
- "internalType": "address",
1671
- "name": "fromToken",
1672
- "type": "address"
1673
- },
1674
- {
1675
- "internalType": "uint256",
1676
- "name": "fromAmount",
1677
- "type": "uint256"
1678
- },
1679
- {
1680
- "internalType": "uint256",
1681
- "name": "toAmount",
1682
- "type": "uint256"
1683
- },
1684
- {
1685
- "internalType": "uint256",
1686
- "name": "expectedAmount",
1687
- "type": "uint256"
1688
- },
1689
- {
1690
- "internalType": "address payable",
1691
- "name": "beneficiary",
1692
- "type": "address"
1693
- },
1694
- {
1695
- "components": [
1696
- {
1697
- "internalType": "address",
1698
- "name": "to",
1699
- "type": "address"
1700
- },
1701
- {
1702
- "internalType": "uint256",
1703
- "name": "totalNetworkFee",
1704
- "type": "uint256"
1705
- },
1706
- {
1707
- "components": [
1708
- {
1709
- "internalType": "address payable",
1710
- "name": "adapter",
1711
- "type": "address"
1712
- },
1713
- {
1714
- "internalType": "uint256",
1715
- "name": "percent",
1716
- "type": "uint256"
1717
- },
1718
- {
1719
- "internalType": "uint256",
1720
- "name": "networkFee",
1721
- "type": "uint256"
1722
- },
1723
- {
1724
- "components": [
1725
- {
1726
- "internalType": "uint256",
1727
- "name": "index",
1728
- "type": "uint256"
1729
- },
1730
- {
1731
- "internalType": "address",
1732
- "name": "targetExchange",
1733
- "type": "address"
1734
- },
1735
- {
1736
- "internalType": "uint256",
1737
- "name": "percent",
1738
- "type": "uint256"
1739
- },
1740
- {
1741
- "internalType": "bytes",
1742
- "name": "payload",
1743
- "type": "bytes"
1744
- },
1745
- {
1746
- "internalType": "uint256",
1747
- "name": "networkFee",
1748
- "type": "uint256"
1749
- }
1750
- ],
1751
- "internalType": "struct Utils.Route[]",
1752
- "name": "route",
1753
- "type": "tuple[]"
1754
- }
1755
- ],
1756
- "internalType": "struct Utils.Adapter[]",
1757
- "name": "adapters",
1758
- "type": "tuple[]"
1759
- }
1760
- ],
1761
- "internalType": "struct Utils.Path[]",
1762
- "name": "path",
1763
- "type": "tuple[]"
1764
- },
1765
- {
1766
- "internalType": "address payable",
1767
- "name": "partner",
1768
- "type": "address"
1769
- },
1770
- {
1771
- "internalType": "uint256",
1772
- "name": "feePercent",
1773
- "type": "uint256"
1774
- },
1775
- {
1776
- "internalType": "bytes",
1777
- "name": "permit",
1778
- "type": "bytes"
1779
- },
1780
- {
1781
- "internalType": "uint256",
1782
- "name": "deadline",
1783
- "type": "uint256"
1784
- },
1785
- {
1786
- "internalType": "bytes16",
1787
- "name": "uuid",
1788
- "type": "bytes16"
1789
- }
1790
- ],
1791
- "internalType": "struct Utils.SellData",
1792
- "name": "data",
1793
- "type": "tuple"
1794
- }
1795
- ],
1796
- "name": "protectedMultiSwap",
1797
- "outputs": [
1798
- {
1799
- "internalType": "uint256",
1800
- "name": "",
1801
- "type": "uint256"
1802
- }
1803
- ],
1804
- "stateMutability": "payable",
1805
- "type": "function"
1806
- },
1807
- {
1808
- "inputs": [
1809
- {
1810
- "components": [
1811
- {
1812
- "internalType": "address",
1813
- "name": "fromToken",
1814
- "type": "address"
1815
- },
1816
- {
1817
- "internalType": "address",
1818
- "name": "toToken",
1819
- "type": "address"
1820
- },
1821
- {
1822
- "internalType": "uint256",
1823
- "name": "fromAmount",
1824
- "type": "uint256"
1825
- },
1826
- {
1827
- "internalType": "uint256",
1828
- "name": "toAmount",
1829
- "type": "uint256"
1830
- },
1831
- {
1832
- "internalType": "uint256",
1833
- "name": "expectedAmount",
1834
- "type": "uint256"
1835
- },
1836
- {
1837
- "internalType": "address[]",
1838
- "name": "callees",
1839
- "type": "address[]"
1840
- },
1841
- {
1842
- "internalType": "bytes",
1843
- "name": "exchangeData",
1844
- "type": "bytes"
1845
- },
1846
- {
1847
- "internalType": "uint256[]",
1848
- "name": "startIndexes",
1849
- "type": "uint256[]"
1850
- },
1851
- {
1852
- "internalType": "uint256[]",
1853
- "name": "values",
1854
- "type": "uint256[]"
1855
- },
1856
- {
1857
- "internalType": "address payable",
1858
- "name": "beneficiary",
1859
- "type": "address"
1860
- },
1861
- {
1862
- "internalType": "address payable",
1863
- "name": "partner",
1864
- "type": "address"
1865
- },
1866
- {
1867
- "internalType": "uint256",
1868
- "name": "feePercent",
1869
- "type": "uint256"
1870
- },
1871
- {
1872
- "internalType": "bytes",
1873
- "name": "permit",
1874
- "type": "bytes"
1875
- },
1876
- {
1877
- "internalType": "uint256",
1878
- "name": "deadline",
1879
- "type": "uint256"
1880
- },
1881
- {
1882
- "internalType": "bytes16",
1883
- "name": "uuid",
1884
- "type": "bytes16"
1885
- }
1886
- ],
1887
- "internalType": "struct Utils.SimpleData",
1888
- "name": "data",
1889
- "type": "tuple"
1890
- }
1891
- ],
1892
- "name": "protectedSimpleBuy",
1893
- "outputs": [],
1894
- "stateMutability": "payable",
1895
- "type": "function"
1896
- },
1897
- {
1898
- "inputs": [
1899
- {
1900
- "components": [
1901
- {
1902
- "internalType": "address",
1903
- "name": "fromToken",
1904
- "type": "address"
1905
- },
1906
- {
1907
- "internalType": "address",
1908
- "name": "toToken",
1909
- "type": "address"
1910
- },
1911
- {
1912
- "internalType": "uint256",
1913
- "name": "fromAmount",
1914
- "type": "uint256"
1915
- },
1916
- {
1917
- "internalType": "uint256",
1918
- "name": "toAmount",
1919
- "type": "uint256"
1920
- },
1921
- {
1922
- "internalType": "uint256",
1923
- "name": "expectedAmount",
1924
- "type": "uint256"
1925
- },
1926
- {
1927
- "internalType": "address[]",
1928
- "name": "callees",
1929
- "type": "address[]"
1930
- },
1931
- {
1932
- "internalType": "bytes",
1933
- "name": "exchangeData",
1934
- "type": "bytes"
1935
- },
1936
- {
1937
- "internalType": "uint256[]",
1938
- "name": "startIndexes",
1939
- "type": "uint256[]"
1940
- },
1941
- {
1942
- "internalType": "uint256[]",
1943
- "name": "values",
1944
- "type": "uint256[]"
1945
- },
1946
- {
1947
- "internalType": "address payable",
1948
- "name": "beneficiary",
1949
- "type": "address"
1950
- },
1951
- {
1952
- "internalType": "address payable",
1953
- "name": "partner",
1954
- "type": "address"
1955
- },
1956
- {
1957
- "internalType": "uint256",
1958
- "name": "feePercent",
1959
- "type": "uint256"
1960
- },
1961
- {
1962
- "internalType": "bytes",
1963
- "name": "permit",
1964
- "type": "bytes"
1965
- },
1966
- {
1967
- "internalType": "uint256",
1968
- "name": "deadline",
1969
- "type": "uint256"
1970
- },
1971
- {
1972
- "internalType": "bytes16",
1973
- "name": "uuid",
1974
- "type": "bytes16"
1975
- }
1976
- ],
1977
- "internalType": "struct Utils.SimpleData",
1978
- "name": "data",
1979
- "type": "tuple"
1980
- }
1981
- ],
1982
- "name": "protectedSimpleSwap",
1983
- "outputs": [
1984
- {
1985
- "internalType": "uint256",
1986
- "name": "receivedAmount",
1987
- "type": "uint256"
1988
- }
1989
- ],
1990
- "stateMutability": "payable",
1991
- "type": "function"
1992
- },
1993
- {
1994
- "inputs": [
1995
- {
1996
- "components": [
1997
- {
1998
- "internalType": "address",
1999
- "name": "fromToken",
2000
- "type": "address"
2001
- },
2002
- {
2003
- "internalType": "address",
2004
- "name": "toToken",
2005
- "type": "address"
2006
- },
2007
- {
2008
- "internalType": "uint256",
2009
- "name": "fromAmount",
2010
- "type": "uint256"
2011
- },
2012
- {
2013
- "internalType": "uint256",
2014
- "name": "toAmount",
2015
- "type": "uint256"
2016
- },
2017
- {
2018
- "internalType": "uint256",
2019
- "name": "expectedAmount",
2020
- "type": "uint256"
2021
- },
2022
- {
2023
- "internalType": "address[]",
2024
- "name": "callees",
2025
- "type": "address[]"
2026
- },
2027
- {
2028
- "internalType": "bytes",
2029
- "name": "exchangeData",
2030
- "type": "bytes"
2031
- },
2032
- {
2033
- "internalType": "uint256[]",
2034
- "name": "startIndexes",
2035
- "type": "uint256[]"
2036
- },
2037
- {
2038
- "internalType": "uint256[]",
2039
- "name": "values",
2040
- "type": "uint256[]"
2041
- },
2042
- {
2043
- "internalType": "address payable",
2044
- "name": "beneficiary",
2045
- "type": "address"
2046
- },
2047
- {
2048
- "internalType": "address payable",
2049
- "name": "partner",
2050
- "type": "address"
2051
- },
2052
- {
2053
- "internalType": "uint256",
2054
- "name": "feePercent",
2055
- "type": "uint256"
2056
- },
2057
- {
2058
- "internalType": "bytes",
2059
- "name": "permit",
2060
- "type": "bytes"
2061
- },
2062
- {
2063
- "internalType": "uint256",
2064
- "name": "deadline",
2065
- "type": "uint256"
2066
- },
2067
- {
2068
- "internalType": "bytes16",
2069
- "name": "uuid",
2070
- "type": "bytes16"
2071
- }
2072
- ],
2073
- "internalType": "struct Utils.SimpleData",
2074
- "name": "data",
2075
- "type": "tuple"
2076
- }
2077
- ],
2078
- "name": "simpleBuy",
2079
- "outputs": [],
2080
- "stateMutability": "payable",
2081
- "type": "function"
2082
- },
2083
- {
2084
- "inputs": [
2085
- {
2086
- "components": [
2087
- {
2088
- "internalType": "address",
2089
- "name": "fromToken",
2090
- "type": "address"
2091
- },
2092
- {
2093
- "components": [
2094
- {
2095
- "internalType": "uint256",
2096
- "name": "toToken",
2097
- "type": "uint256"
2098
- },
2099
- {
2100
- "internalType": "uint256",
2101
- "name": "toTokenID",
2102
- "type": "uint256"
2103
- },
2104
- {
2105
- "internalType": "uint256",
2106
- "name": "toAmount",
2107
- "type": "uint256"
2108
- }
2109
- ],
2110
- "internalType": "struct UtilsNFT.ToTokenNFTDetails[]",
2111
- "name": "toTokenDetails",
2112
- "type": "tuple[]"
2113
- },
2114
- {
2115
- "internalType": "uint256",
2116
- "name": "fromAmount",
2117
- "type": "uint256"
2118
- },
2119
- {
2120
- "internalType": "uint256",
2121
- "name": "expectedAmount",
2122
- "type": "uint256"
2123
- },
2124
- {
2125
- "internalType": "address[]",
2126
- "name": "callees",
2127
- "type": "address[]"
2128
- },
2129
- {
2130
- "internalType": "bytes",
2131
- "name": "exchangeData",
2132
- "type": "bytes"
2133
- },
2134
- {
2135
- "internalType": "uint256[]",
2136
- "name": "startIndexes",
2137
- "type": "uint256[]"
2138
- },
2139
- {
2140
- "internalType": "uint256[]",
2141
- "name": "values",
2142
- "type": "uint256[]"
2143
- },
2144
- {
2145
- "internalType": "address payable",
2146
- "name": "beneficiary",
2147
- "type": "address"
2148
- },
2149
- {
2150
- "internalType": "address payable",
2151
- "name": "partner",
2152
- "type": "address"
2153
- },
2154
- {
2155
- "internalType": "uint256",
2156
- "name": "feePercent",
2157
- "type": "uint256"
2158
- },
2159
- {
2160
- "internalType": "bytes",
2161
- "name": "permit",
2162
- "type": "bytes"
2163
- },
2164
- {
2165
- "internalType": "uint256",
2166
- "name": "deadline",
2167
- "type": "uint256"
2168
- },
2169
- {
2170
- "internalType": "bytes16",
2171
- "name": "uuid",
2172
- "type": "bytes16"
2173
- }
2174
- ],
2175
- "internalType": "struct UtilsNFT.SimpleBuyNFTData",
2176
- "name": "data",
2177
- "type": "tuple"
2178
- }
2179
- ],
2180
- "name": "simpleBuyNFT",
2181
- "outputs": [],
2182
- "stateMutability": "payable",
2183
- "type": "function"
2184
- },
2185
- {
2186
- "inputs": [
2187
- {
2188
- "components": [
2189
- {
2190
- "internalType": "address",
2191
- "name": "fromToken",
2192
- "type": "address"
2193
- },
2194
- {
2195
- "internalType": "address",
2196
- "name": "toToken",
2197
- "type": "address"
2198
- },
2199
- {
2200
- "internalType": "uint256",
2201
- "name": "fromAmount",
2202
- "type": "uint256"
2203
- },
2204
- {
2205
- "internalType": "uint256",
2206
- "name": "toAmount",
2207
- "type": "uint256"
2208
- },
2209
- {
2210
- "internalType": "uint256",
2211
- "name": "expectedAmount",
2212
- "type": "uint256"
2213
- },
2214
- {
2215
- "internalType": "address[]",
2216
- "name": "callees",
2217
- "type": "address[]"
2218
- },
2219
- {
2220
- "internalType": "bytes",
2221
- "name": "exchangeData",
2222
- "type": "bytes"
2223
- },
2224
- {
2225
- "internalType": "uint256[]",
2226
- "name": "startIndexes",
2227
- "type": "uint256[]"
2228
- },
2229
- {
2230
- "internalType": "uint256[]",
2231
- "name": "values",
2232
- "type": "uint256[]"
2233
- },
2234
- {
2235
- "internalType": "address payable",
2236
- "name": "beneficiary",
2237
- "type": "address"
2238
- },
2239
- {
2240
- "internalType": "address payable",
2241
- "name": "partner",
2242
- "type": "address"
2243
- },
2244
- {
2245
- "internalType": "uint256",
2246
- "name": "feePercent",
2247
- "type": "uint256"
2248
- },
2249
- {
2250
- "internalType": "bytes",
2251
- "name": "permit",
2252
- "type": "bytes"
2253
- },
2254
- {
2255
- "internalType": "uint256",
2256
- "name": "deadline",
2257
- "type": "uint256"
2258
- },
2259
- {
2260
- "internalType": "bytes16",
2261
- "name": "uuid",
2262
- "type": "bytes16"
2263
- }
2264
- ],
2265
- "internalType": "struct Utils.SimpleData",
2266
- "name": "data",
2267
- "type": "tuple"
2268
- }
2269
- ],
2270
- "name": "simpleSwap",
2271
- "outputs": [
2272
- {
2273
- "internalType": "uint256",
2274
- "name": "receivedAmount",
2275
- "type": "uint256"
2276
- }
2277
- ],
2278
- "stateMutability": "payable",
2279
- "type": "function"
2280
- },
2281
- {
2282
- "inputs": [
2283
- {
2284
- "components": [
2285
- {
2286
- "internalType": "uint256",
2287
- "name": "nonceAndMeta",
2288
- "type": "uint256"
2289
- },
2290
- {
2291
- "internalType": "uint128",
2292
- "name": "expiry",
2293
- "type": "uint128"
2294
- },
2295
- {
2296
- "internalType": "address",
2297
- "name": "makerAsset",
2298
- "type": "address"
2299
- },
2300
- {
2301
- "internalType": "address",
2302
- "name": "takerAsset",
2303
- "type": "address"
2304
- },
2305
- {
2306
- "internalType": "address",
2307
- "name": "maker",
2308
- "type": "address"
2309
- },
2310
- {
2311
- "internalType": "address",
2312
- "name": "taker",
2313
- "type": "address"
2314
- },
2315
- {
2316
- "internalType": "uint256",
2317
- "name": "makerAmount",
2318
- "type": "uint256"
2319
- },
2320
- {
2321
- "internalType": "uint256",
2322
- "name": "takerAmount",
2323
- "type": "uint256"
2324
- }
2325
- ],
2326
- "internalType": "struct IAugustusRFQ.Order",
2327
- "name": "order",
2328
- "type": "tuple"
2329
- },
2330
- {
2331
- "internalType": "bytes",
2332
- "name": "signature",
2333
- "type": "bytes"
2334
- },
2335
- {
2336
- "internalType": "uint8",
2337
- "name": "wrapETH",
2338
- "type": "uint8"
2339
- }
2340
- ],
2341
- "name": "swapOnAugustusRFQ",
2342
- "outputs": [],
2343
- "stateMutability": "payable",
2344
- "type": "function"
2345
- },
2346
- {
2347
- "inputs": [
2348
- {
2349
- "components": [
2350
- {
2351
- "internalType": "uint256",
2352
- "name": "nonceAndMeta",
2353
- "type": "uint256"
2354
- },
2355
- {
2356
- "internalType": "uint128",
2357
- "name": "expiry",
2358
- "type": "uint128"
2359
- },
2360
- {
2361
- "internalType": "uint256",
2362
- "name": "makerAsset",
2363
- "type": "uint256"
2364
- },
2365
- {
2366
- "internalType": "uint256",
2367
- "name": "makerAssetId",
2368
- "type": "uint256"
2369
- },
2370
- {
2371
- "internalType": "uint256",
2372
- "name": "takerAsset",
2373
- "type": "uint256"
2374
- },
2375
- {
2376
- "internalType": "uint256",
2377
- "name": "takerAssetId",
2378
- "type": "uint256"
2379
- },
2380
- {
2381
- "internalType": "address",
2382
- "name": "maker",
2383
- "type": "address"
2384
- },
2385
- {
2386
- "internalType": "address",
2387
- "name": "taker",
2388
- "type": "address"
2389
- },
2390
- {
2391
- "internalType": "uint256",
2392
- "name": "makerAmount",
2393
- "type": "uint256"
2394
- },
2395
- {
2396
- "internalType": "uint256",
2397
- "name": "takerAmount",
2398
- "type": "uint256"
2399
- }
2400
- ],
2401
- "internalType": "struct IAugustusRFQ.OrderNFT",
2402
- "name": "order",
2403
- "type": "tuple"
2404
- },
2405
- {
2406
- "internalType": "bytes",
2407
- "name": "signature",
2408
- "type": "bytes"
2409
- },
2410
- {
2411
- "internalType": "uint8",
2412
- "name": "wrapETH",
2413
- "type": "uint8"
2414
- }
2415
- ],
2416
- "name": "swapOnAugustusRFQNFT",
2417
- "outputs": [],
2418
- "stateMutability": "payable",
2419
- "type": "function"
2420
- },
2421
- {
2422
- "inputs": [
2423
- {
2424
- "components": [
2425
- {
2426
- "internalType": "uint256",
2427
- "name": "nonceAndMeta",
2428
- "type": "uint256"
2429
- },
2430
- {
2431
- "internalType": "uint128",
2432
- "name": "expiry",
2433
- "type": "uint128"
2434
- },
2435
- {
2436
- "internalType": "uint256",
2437
- "name": "makerAsset",
2438
- "type": "uint256"
2439
- },
2440
- {
2441
- "internalType": "uint256",
2442
- "name": "makerAssetId",
2443
- "type": "uint256"
2444
- },
2445
- {
2446
- "internalType": "uint256",
2447
- "name": "takerAsset",
2448
- "type": "uint256"
2449
- },
2450
- {
2451
- "internalType": "uint256",
2452
- "name": "takerAssetId",
2453
- "type": "uint256"
2454
- },
2455
- {
2456
- "internalType": "address",
2457
- "name": "maker",
2458
- "type": "address"
2459
- },
2460
- {
2461
- "internalType": "address",
2462
- "name": "taker",
2463
- "type": "address"
2464
- },
2465
- {
2466
- "internalType": "uint256",
2467
- "name": "makerAmount",
2468
- "type": "uint256"
2469
- },
2470
- {
2471
- "internalType": "uint256",
2472
- "name": "takerAmount",
2473
- "type": "uint256"
2474
- }
2475
- ],
2476
- "internalType": "struct IAugustusRFQ.OrderNFT",
2477
- "name": "order",
2478
- "type": "tuple"
2479
- },
2480
- {
2481
- "internalType": "bytes",
2482
- "name": "signature",
2483
- "type": "bytes"
2484
- },
2485
- {
2486
- "internalType": "uint8",
2487
- "name": "wrapETH",
2488
- "type": "uint8"
2489
- },
2490
- {
2491
- "internalType": "bytes",
2492
- "name": "permit",
2493
- "type": "bytes"
2494
- }
2495
- ],
2496
- "name": "swapOnAugustusRFQNFTWithPermit",
2497
- "outputs": [],
2498
- "stateMutability": "payable",
2499
- "type": "function"
2500
- },
2501
- {
2502
- "inputs": [
2503
- {
2504
- "components": [
2505
- {
2506
- "components": [
2507
- {
2508
- "internalType": "uint256",
2509
- "name": "nonceAndMeta",
2510
- "type": "uint256"
2511
- },
2512
- {
2513
- "internalType": "uint128",
2514
- "name": "expiry",
2515
- "type": "uint128"
2516
- },
2517
- {
2518
- "internalType": "address",
2519
- "name": "makerAsset",
2520
- "type": "address"
2521
- },
2522
- {
2523
- "internalType": "address",
2524
- "name": "takerAsset",
2525
- "type": "address"
2526
- },
2527
- {
2528
- "internalType": "address",
2529
- "name": "maker",
2530
- "type": "address"
2531
- },
2532
- {
2533
- "internalType": "address",
2534
- "name": "taker",
2535
- "type": "address"
2536
- },
2537
- {
2538
- "internalType": "uint256",
2539
- "name": "makerAmount",
2540
- "type": "uint256"
2541
- },
2542
- {
2543
- "internalType": "uint256",
2544
- "name": "takerAmount",
2545
- "type": "uint256"
2546
- }
2547
- ],
2548
- "internalType": "struct IAugustusRFQ.Order",
2549
- "name": "order",
2550
- "type": "tuple"
2551
- },
2552
- {
2553
- "internalType": "bytes",
2554
- "name": "signature",
2555
- "type": "bytes"
2556
- },
2557
- {
2558
- "internalType": "uint256",
2559
- "name": "takerTokenFillAmount",
2560
- "type": "uint256"
2561
- },
2562
- {
2563
- "internalType": "bytes",
2564
- "name": "permitTakerAsset",
2565
- "type": "bytes"
2566
- },
2567
- {
2568
- "internalType": "bytes",
2569
- "name": "permitMakerAsset",
2570
- "type": "bytes"
2571
- }
2572
- ],
2573
- "internalType": "struct IAugustusRFQ.OrderInfo[]",
2574
- "name": "orderInfos",
2575
- "type": "tuple[]"
2576
- },
2577
- {
2578
- "internalType": "uint8",
2579
- "name": "wrapETH",
2580
- "type": "uint8"
2581
- },
2582
- {
2583
- "internalType": "uint256",
2584
- "name": "fromAmount",
2585
- "type": "uint256"
2586
- },
2587
- {
2588
- "internalType": "uint256",
2589
- "name": "toAmountMin",
2590
- "type": "uint256"
2591
- }
2592
- ],
2593
- "name": "swapOnAugustusRFQTryBatchFill",
2594
- "outputs": [],
2595
- "stateMutability": "payable",
2596
- "type": "function"
2597
- },
2598
- {
2599
- "inputs": [
2600
- {
2601
- "components": [
2602
- {
2603
- "components": [
2604
- {
2605
- "internalType": "uint256",
2606
- "name": "nonceAndMeta",
2607
- "type": "uint256"
2608
- },
2609
- {
2610
- "internalType": "uint128",
2611
- "name": "expiry",
2612
- "type": "uint128"
2613
- },
2614
- {
2615
- "internalType": "address",
2616
- "name": "makerAsset",
2617
- "type": "address"
2618
- },
2619
- {
2620
- "internalType": "address",
2621
- "name": "takerAsset",
2622
- "type": "address"
2623
- },
2624
- {
2625
- "internalType": "address",
2626
- "name": "maker",
2627
- "type": "address"
2628
- },
2629
- {
2630
- "internalType": "address",
2631
- "name": "taker",
2632
- "type": "address"
2633
- },
2634
- {
2635
- "internalType": "uint256",
2636
- "name": "makerAmount",
2637
- "type": "uint256"
2638
- },
2639
- {
2640
- "internalType": "uint256",
2641
- "name": "takerAmount",
2642
- "type": "uint256"
2643
- }
2644
- ],
2645
- "internalType": "struct IAugustusRFQ.Order",
2646
- "name": "order",
2647
- "type": "tuple"
2648
- },
2649
- {
2650
- "internalType": "bytes",
2651
- "name": "signature",
2652
- "type": "bytes"
2653
- },
2654
- {
2655
- "internalType": "uint256",
2656
- "name": "takerTokenFillAmount",
2657
- "type": "uint256"
2658
- },
2659
- {
2660
- "internalType": "bytes",
2661
- "name": "permitTakerAsset",
2662
- "type": "bytes"
2663
- },
2664
- {
2665
- "internalType": "bytes",
2666
- "name": "permitMakerAsset",
2667
- "type": "bytes"
2668
- }
2669
- ],
2670
- "internalType": "struct IAugustusRFQ.OrderInfo[]",
2671
- "name": "orderInfos",
2672
- "type": "tuple[]"
2673
- },
2674
- {
2675
- "internalType": "uint8",
2676
- "name": "wrapETH",
2677
- "type": "uint8"
2678
- },
2679
- {
2680
- "internalType": "uint256",
2681
- "name": "fromAmount",
2682
- "type": "uint256"
2683
- },
2684
- {
2685
- "internalType": "uint256",
2686
- "name": "toAmountMin",
2687
- "type": "uint256"
2688
- },
2689
- {
2690
- "internalType": "bytes",
2691
- "name": "permit",
2692
- "type": "bytes"
2693
- }
2694
- ],
2695
- "name": "swapOnAugustusRFQTryBatchFillWithPermit",
2696
- "outputs": [],
2697
- "stateMutability": "payable",
2698
- "type": "function"
2699
- },
2700
- {
2701
- "inputs": [
2702
- {
2703
- "components": [
2704
- {
2705
- "internalType": "uint256",
2706
- "name": "nonceAndMeta",
2707
- "type": "uint256"
2708
- },
2709
- {
2710
- "internalType": "uint128",
2711
- "name": "expiry",
2712
- "type": "uint128"
2713
- },
2714
- {
2715
- "internalType": "address",
2716
- "name": "makerAsset",
2717
- "type": "address"
2718
- },
2719
- {
2720
- "internalType": "address",
2721
- "name": "takerAsset",
2722
- "type": "address"
2723
- },
2724
- {
2725
- "internalType": "address",
2726
- "name": "maker",
2727
- "type": "address"
2728
- },
2729
- {
2730
- "internalType": "address",
2731
- "name": "taker",
2732
- "type": "address"
2733
- },
2734
- {
2735
- "internalType": "uint256",
2736
- "name": "makerAmount",
2737
- "type": "uint256"
2738
- },
2739
- {
2740
- "internalType": "uint256",
2741
- "name": "takerAmount",
2742
- "type": "uint256"
2743
- }
2744
- ],
2745
- "internalType": "struct IAugustusRFQ.Order",
2746
- "name": "order",
2747
- "type": "tuple"
2748
- },
2749
- {
2750
- "internalType": "bytes",
2751
- "name": "signature",
2752
- "type": "bytes"
2753
- },
2754
- {
2755
- "internalType": "uint8",
2756
- "name": "wrapETH",
2757
- "type": "uint8"
2758
- },
2759
- {
2760
- "internalType": "bytes",
2761
- "name": "permit",
2762
- "type": "bytes"
2763
- }
2764
- ],
2765
- "name": "swapOnAugustusRFQWithPermit",
2766
- "outputs": [],
2767
- "stateMutability": "payable",
2768
- "type": "function"
2769
- },
2770
- {
2771
- "inputs": [
2772
- {
2773
- "internalType": "uint256",
2774
- "name": "amountIn",
2775
- "type": "uint256"
2776
- },
2777
- {
2778
- "internalType": "uint256",
2779
- "name": "amountOutMin",
2780
- "type": "uint256"
2781
- },
2782
- {
2783
- "internalType": "address[]",
2784
- "name": "path",
2785
- "type": "address[]"
2786
- }
2787
- ],
2788
- "name": "swapOnUniswap",
2789
- "outputs": [],
2790
- "stateMutability": "payable",
2791
- "type": "function"
2792
- },
2793
- {
2794
- "inputs": [
2795
- {
2796
- "internalType": "address",
2797
- "name": "factory",
2798
- "type": "address"
2799
- },
2800
- {
2801
- "internalType": "bytes32",
2802
- "name": "initCode",
2803
- "type": "bytes32"
2804
- },
2805
- {
2806
- "internalType": "uint256",
2807
- "name": "amountIn",
2808
- "type": "uint256"
2809
- },
2810
- {
2811
- "internalType": "uint256",
2812
- "name": "amountOutMin",
2813
- "type": "uint256"
2814
- },
2815
- {
2816
- "internalType": "address[]",
2817
- "name": "path",
2818
- "type": "address[]"
2819
- }
2820
- ],
2821
- "name": "swapOnUniswapFork",
2822
- "outputs": [],
2823
- "stateMutability": "payable",
2824
- "type": "function"
2825
- },
2826
- {
2827
- "inputs": [
2828
- {
2829
- "internalType": "address",
2830
- "name": "tokenIn",
2831
- "type": "address"
2832
- },
2833
- {
2834
- "internalType": "uint256",
2835
- "name": "amountIn",
2836
- "type": "uint256"
2837
- },
2838
- {
2839
- "internalType": "uint256",
2840
- "name": "amountOutMin",
2841
- "type": "uint256"
2842
- },
2843
- {
2844
- "internalType": "address",
2845
- "name": "weth",
2846
- "type": "address"
2847
- },
2848
- {
2849
- "internalType": "uint256[]",
2850
- "name": "pools",
2851
- "type": "uint256[]"
2852
- }
2853
- ],
2854
- "name": "swapOnUniswapV2Fork",
2855
- "outputs": [],
2856
- "stateMutability": "payable",
2857
- "type": "function"
2858
- },
2859
- {
2860
- "inputs": [
2861
- {
2862
- "internalType": "address",
2863
- "name": "tokenIn",
2864
- "type": "address"
2865
- },
2866
- {
2867
- "internalType": "uint256",
2868
- "name": "amountIn",
2869
- "type": "uint256"
2870
- },
2871
- {
2872
- "internalType": "uint256",
2873
- "name": "amountOutMin",
2874
- "type": "uint256"
2875
- },
2876
- {
2877
- "internalType": "address",
2878
- "name": "weth",
2879
- "type": "address"
2880
- },
2881
- {
2882
- "internalType": "uint256[]",
2883
- "name": "pools",
2884
- "type": "uint256[]"
2885
- },
2886
- {
2887
- "internalType": "bytes",
2888
- "name": "permit",
2889
- "type": "bytes"
2890
- }
2891
- ],
2892
- "name": "swapOnUniswapV2ForkWithPermit",
2893
- "outputs": [],
2894
- "stateMutability": "payable",
2895
- "type": "function"
2896
- },
2897
- {
2898
- "inputs": [
2899
- {
2900
- "internalType": "contract IERC20",
2901
- "name": "fromToken",
2902
- "type": "address"
2903
- },
2904
- {
2905
- "internalType": "contract IERC20",
2906
- "name": "toToken",
2907
- "type": "address"
2908
- },
2909
- {
2910
- "internalType": "uint256",
2911
- "name": "fromAmount",
2912
- "type": "uint256"
2913
- },
2914
- {
2915
- "internalType": "uint256",
2916
- "name": "amountOutMin",
2917
- "type": "uint256"
2918
- },
2919
- {
2920
- "internalType": "address",
2921
- "name": "exchange",
2922
- "type": "address"
2923
- },
2924
- {
2925
- "internalType": "bytes",
2926
- "name": "payload",
2927
- "type": "bytes"
2928
- }
2929
- ],
2930
- "name": "swapOnZeroXv2",
2931
- "outputs": [],
2932
- "stateMutability": "payable",
2933
- "type": "function"
2934
- },
2935
- {
2936
- "inputs": [
2937
- {
2938
- "internalType": "contract IERC20",
2939
- "name": "fromToken",
2940
- "type": "address"
2941
- },
2942
- {
2943
- "internalType": "contract IERC20",
2944
- "name": "toToken",
2945
- "type": "address"
2946
- },
2947
- {
2948
- "internalType": "uint256",
2949
- "name": "fromAmount",
2950
- "type": "uint256"
2951
- },
2952
- {
2953
- "internalType": "uint256",
2954
- "name": "amountOutMin",
2955
- "type": "uint256"
2956
- },
2957
- {
2958
- "internalType": "address",
2959
- "name": "exchange",
2960
- "type": "address"
2961
- },
2962
- {
2963
- "internalType": "bytes",
2964
- "name": "payload",
2965
- "type": "bytes"
2966
- },
2967
- {
2968
- "internalType": "bytes",
2969
- "name": "permit",
2970
- "type": "bytes"
2971
- }
2972
- ],
2973
- "name": "swapOnZeroXv2WithPermit",
2974
- "outputs": [],
2975
- "stateMutability": "payable",
2976
- "type": "function"
2977
- },
2978
- {
2979
- "inputs": [
2980
- {
2981
- "internalType": "contract IERC20",
2982
- "name": "fromToken",
2983
- "type": "address"
2984
- },
2985
- {
2986
- "internalType": "contract IERC20",
2987
- "name": "toToken",
2988
- "type": "address"
2989
- },
2990
- {
2991
- "internalType": "uint256",
2992
- "name": "fromAmount",
2993
- "type": "uint256"
2994
- },
2995
- {
2996
- "internalType": "uint256",
2997
- "name": "amountOutMin",
2998
- "type": "uint256"
2999
- },
3000
- {
3001
- "internalType": "address",
3002
- "name": "exchange",
3003
- "type": "address"
3004
- },
3005
- {
3006
- "internalType": "bytes",
3007
- "name": "payload",
3008
- "type": "bytes"
3009
- }
3010
- ],
3011
- "name": "swapOnZeroXv4",
3012
- "outputs": [],
3013
- "stateMutability": "payable",
3014
- "type": "function"
3015
- },
3016
- {
3017
- "inputs": [
3018
- {
3019
- "internalType": "contract IERC20",
3020
- "name": "fromToken",
3021
- "type": "address"
3022
- },
3023
- {
3024
- "internalType": "contract IERC20",
3025
- "name": "toToken",
3026
- "type": "address"
3027
- },
3028
- {
3029
- "internalType": "uint256",
3030
- "name": "fromAmount",
3031
- "type": "uint256"
3032
- },
3033
- {
3034
- "internalType": "uint256",
3035
- "name": "amountOutMin",
3036
- "type": "uint256"
3037
- },
3038
- {
3039
- "internalType": "address",
3040
- "name": "exchange",
3041
- "type": "address"
3042
- },
3043
- {
3044
- "internalType": "bytes",
3045
- "name": "payload",
3046
- "type": "bytes"
3047
- },
3048
- {
3049
- "internalType": "bytes",
3050
- "name": "permit",
3051
- "type": "bytes"
3052
- }
3053
- ],
3054
- "name": "swapOnZeroXv4WithPermit",
3055
- "outputs": [],
3056
- "stateMutability": "payable",
3057
- "type": "function"
3058
- }
3059
- ]