@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,2030 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "address",
6
- "name": "factory_",
7
- "type": "address"
8
- },
9
- {
10
- "internalType": "address",
11
- "name": "liquidity_",
12
- "type": "address"
13
- },
14
- {
15
- "internalType": "address",
16
- "name": "liquidityResolver_",
17
- "type": "address"
18
- }
19
- ],
20
- "stateMutability": "nonpayable",
21
- "type": "constructor"
22
- },
23
- {
24
- "inputs": [],
25
- "name": "FACTORY",
26
- "outputs": [
27
- {
28
- "internalType": "contract IFluidDexFactory",
29
- "name": "",
30
- "type": "address"
31
- }
32
- ],
33
- "stateMutability": "view",
34
- "type": "function"
35
- },
36
- {
37
- "inputs": [],
38
- "name": "LIQUIDITY",
39
- "outputs": [
40
- {
41
- "internalType": "contract IFluidLiquidity",
42
- "name": "",
43
- "type": "address"
44
- }
45
- ],
46
- "stateMutability": "view",
47
- "type": "function"
48
- },
49
- {
50
- "inputs": [],
51
- "name": "LIQUIDITY_RESOLVER",
52
- "outputs": [
53
- {
54
- "internalType": "contract IFluidLiquidityResolver",
55
- "name": "",
56
- "type": "address"
57
- }
58
- ],
59
- "stateMutability": "view",
60
- "type": "function"
61
- },
62
- {
63
- "inputs": [
64
- {
65
- "internalType": "address",
66
- "name": "dex_",
67
- "type": "address"
68
- },
69
- {
70
- "internalType": "bool",
71
- "name": "swap0to1_",
72
- "type": "bool"
73
- },
74
- {
75
- "internalType": "uint256",
76
- "name": "amountIn_",
77
- "type": "uint256"
78
- },
79
- {
80
- "internalType": "uint256",
81
- "name": "amountOutMin_",
82
- "type": "uint256"
83
- }
84
- ],
85
- "name": "estimateSwapIn",
86
- "outputs": [
87
- {
88
- "internalType": "uint256",
89
- "name": "amountOut_",
90
- "type": "uint256"
91
- }
92
- ],
93
- "stateMutability": "payable",
94
- "type": "function"
95
- },
96
- {
97
- "inputs": [
98
- {
99
- "internalType": "address",
100
- "name": "dex_",
101
- "type": "address"
102
- },
103
- {
104
- "internalType": "bool",
105
- "name": "swap0to1_",
106
- "type": "bool"
107
- },
108
- {
109
- "internalType": "uint256",
110
- "name": "amountOut_",
111
- "type": "uint256"
112
- },
113
- {
114
- "internalType": "uint256",
115
- "name": "amountInMax_",
116
- "type": "uint256"
117
- }
118
- ],
119
- "name": "estimateSwapOut",
120
- "outputs": [
121
- {
122
- "internalType": "uint256",
123
- "name": "amountIn_",
124
- "type": "uint256"
125
- }
126
- ],
127
- "stateMutability": "payable",
128
- "type": "function"
129
- },
130
- {
131
- "inputs": [],
132
- "name": "getAllPoolAddresses",
133
- "outputs": [
134
- {
135
- "internalType": "address[]",
136
- "name": "pools_",
137
- "type": "address[]"
138
- }
139
- ],
140
- "stateMutability": "view",
141
- "type": "function"
142
- },
143
- {
144
- "inputs": [],
145
- "name": "getAllPools",
146
- "outputs": [
147
- {
148
- "components": [
149
- {
150
- "internalType": "address",
151
- "name": "pool",
152
- "type": "address"
153
- },
154
- {
155
- "internalType": "address",
156
- "name": "token0",
157
- "type": "address"
158
- },
159
- {
160
- "internalType": "address",
161
- "name": "token1",
162
- "type": "address"
163
- },
164
- {
165
- "internalType": "uint256",
166
- "name": "fee",
167
- "type": "uint256"
168
- }
169
- ],
170
- "internalType": "struct Structs.Pool[]",
171
- "name": "pools_",
172
- "type": "tuple[]"
173
- }
174
- ],
175
- "stateMutability": "view",
176
- "type": "function"
177
- },
178
- {
179
- "inputs": [],
180
- "name": "getAllPoolsReserves",
181
- "outputs": [
182
- {
183
- "components": [
184
- {
185
- "internalType": "address",
186
- "name": "pool",
187
- "type": "address"
188
- },
189
- {
190
- "internalType": "address",
191
- "name": "token0",
192
- "type": "address"
193
- },
194
- {
195
- "internalType": "address",
196
- "name": "token1",
197
- "type": "address"
198
- },
199
- {
200
- "internalType": "uint256",
201
- "name": "fee",
202
- "type": "uint256"
203
- },
204
- {
205
- "internalType": "uint256",
206
- "name": "centerPrice",
207
- "type": "uint256"
208
- },
209
- {
210
- "components": [
211
- {
212
- "internalType": "uint256",
213
- "name": "token0RealReserves",
214
- "type": "uint256"
215
- },
216
- {
217
- "internalType": "uint256",
218
- "name": "token1RealReserves",
219
- "type": "uint256"
220
- },
221
- {
222
- "internalType": "uint256",
223
- "name": "token0ImaginaryReserves",
224
- "type": "uint256"
225
- },
226
- {
227
- "internalType": "uint256",
228
- "name": "token1ImaginaryReserves",
229
- "type": "uint256"
230
- }
231
- ],
232
- "internalType": "struct IFluidDexT1.CollateralReserves",
233
- "name": "collateralReserves",
234
- "type": "tuple"
235
- },
236
- {
237
- "components": [
238
- {
239
- "internalType": "uint256",
240
- "name": "token0Debt",
241
- "type": "uint256"
242
- },
243
- {
244
- "internalType": "uint256",
245
- "name": "token1Debt",
246
- "type": "uint256"
247
- },
248
- {
249
- "internalType": "uint256",
250
- "name": "token0RealReserves",
251
- "type": "uint256"
252
- },
253
- {
254
- "internalType": "uint256",
255
- "name": "token1RealReserves",
256
- "type": "uint256"
257
- },
258
- {
259
- "internalType": "uint256",
260
- "name": "token0ImaginaryReserves",
261
- "type": "uint256"
262
- },
263
- {
264
- "internalType": "uint256",
265
- "name": "token1ImaginaryReserves",
266
- "type": "uint256"
267
- }
268
- ],
269
- "internalType": "struct IFluidDexT1.DebtReserves",
270
- "name": "debtReserves",
271
- "type": "tuple"
272
- },
273
- {
274
- "components": [
275
- {
276
- "components": [
277
- {
278
- "internalType": "uint256",
279
- "name": "available",
280
- "type": "uint256"
281
- },
282
- {
283
- "internalType": "uint256",
284
- "name": "expandsTo",
285
- "type": "uint256"
286
- },
287
- {
288
- "internalType": "uint256",
289
- "name": "expandDuration",
290
- "type": "uint256"
291
- }
292
- ],
293
- "internalType": "struct Structs.TokenLimit",
294
- "name": "withdrawableToken0",
295
- "type": "tuple"
296
- },
297
- {
298
- "components": [
299
- {
300
- "internalType": "uint256",
301
- "name": "available",
302
- "type": "uint256"
303
- },
304
- {
305
- "internalType": "uint256",
306
- "name": "expandsTo",
307
- "type": "uint256"
308
- },
309
- {
310
- "internalType": "uint256",
311
- "name": "expandDuration",
312
- "type": "uint256"
313
- }
314
- ],
315
- "internalType": "struct Structs.TokenLimit",
316
- "name": "withdrawableToken1",
317
- "type": "tuple"
318
- },
319
- {
320
- "components": [
321
- {
322
- "internalType": "uint256",
323
- "name": "available",
324
- "type": "uint256"
325
- },
326
- {
327
- "internalType": "uint256",
328
- "name": "expandsTo",
329
- "type": "uint256"
330
- },
331
- {
332
- "internalType": "uint256",
333
- "name": "expandDuration",
334
- "type": "uint256"
335
- }
336
- ],
337
- "internalType": "struct Structs.TokenLimit",
338
- "name": "borrowableToken0",
339
- "type": "tuple"
340
- },
341
- {
342
- "components": [
343
- {
344
- "internalType": "uint256",
345
- "name": "available",
346
- "type": "uint256"
347
- },
348
- {
349
- "internalType": "uint256",
350
- "name": "expandsTo",
351
- "type": "uint256"
352
- },
353
- {
354
- "internalType": "uint256",
355
- "name": "expandDuration",
356
- "type": "uint256"
357
- }
358
- ],
359
- "internalType": "struct Structs.TokenLimit",
360
- "name": "borrowableToken1",
361
- "type": "tuple"
362
- }
363
- ],
364
- "internalType": "struct Structs.DexLimits",
365
- "name": "limits",
366
- "type": "tuple"
367
- }
368
- ],
369
- "internalType": "struct Structs.PoolWithReserves[]",
370
- "name": "poolsReserves_",
371
- "type": "tuple[]"
372
- }
373
- ],
374
- "stateMutability": "nonpayable",
375
- "type": "function"
376
- },
377
- {
378
- "inputs": [],
379
- "name": "getAllPoolsReservesAdjusted",
380
- "outputs": [
381
- {
382
- "components": [
383
- {
384
- "internalType": "address",
385
- "name": "pool",
386
- "type": "address"
387
- },
388
- {
389
- "internalType": "address",
390
- "name": "token0",
391
- "type": "address"
392
- },
393
- {
394
- "internalType": "address",
395
- "name": "token1",
396
- "type": "address"
397
- },
398
- {
399
- "internalType": "uint256",
400
- "name": "fee",
401
- "type": "uint256"
402
- },
403
- {
404
- "internalType": "uint256",
405
- "name": "centerPrice",
406
- "type": "uint256"
407
- },
408
- {
409
- "components": [
410
- {
411
- "internalType": "uint256",
412
- "name": "token0RealReserves",
413
- "type": "uint256"
414
- },
415
- {
416
- "internalType": "uint256",
417
- "name": "token1RealReserves",
418
- "type": "uint256"
419
- },
420
- {
421
- "internalType": "uint256",
422
- "name": "token0ImaginaryReserves",
423
- "type": "uint256"
424
- },
425
- {
426
- "internalType": "uint256",
427
- "name": "token1ImaginaryReserves",
428
- "type": "uint256"
429
- }
430
- ],
431
- "internalType": "struct IFluidDexT1.CollateralReserves",
432
- "name": "collateralReserves",
433
- "type": "tuple"
434
- },
435
- {
436
- "components": [
437
- {
438
- "internalType": "uint256",
439
- "name": "token0Debt",
440
- "type": "uint256"
441
- },
442
- {
443
- "internalType": "uint256",
444
- "name": "token1Debt",
445
- "type": "uint256"
446
- },
447
- {
448
- "internalType": "uint256",
449
- "name": "token0RealReserves",
450
- "type": "uint256"
451
- },
452
- {
453
- "internalType": "uint256",
454
- "name": "token1RealReserves",
455
- "type": "uint256"
456
- },
457
- {
458
- "internalType": "uint256",
459
- "name": "token0ImaginaryReserves",
460
- "type": "uint256"
461
- },
462
- {
463
- "internalType": "uint256",
464
- "name": "token1ImaginaryReserves",
465
- "type": "uint256"
466
- }
467
- ],
468
- "internalType": "struct IFluidDexT1.DebtReserves",
469
- "name": "debtReserves",
470
- "type": "tuple"
471
- },
472
- {
473
- "components": [
474
- {
475
- "components": [
476
- {
477
- "internalType": "uint256",
478
- "name": "available",
479
- "type": "uint256"
480
- },
481
- {
482
- "internalType": "uint256",
483
- "name": "expandsTo",
484
- "type": "uint256"
485
- },
486
- {
487
- "internalType": "uint256",
488
- "name": "expandDuration",
489
- "type": "uint256"
490
- }
491
- ],
492
- "internalType": "struct Structs.TokenLimit",
493
- "name": "withdrawableToken0",
494
- "type": "tuple"
495
- },
496
- {
497
- "components": [
498
- {
499
- "internalType": "uint256",
500
- "name": "available",
501
- "type": "uint256"
502
- },
503
- {
504
- "internalType": "uint256",
505
- "name": "expandsTo",
506
- "type": "uint256"
507
- },
508
- {
509
- "internalType": "uint256",
510
- "name": "expandDuration",
511
- "type": "uint256"
512
- }
513
- ],
514
- "internalType": "struct Structs.TokenLimit",
515
- "name": "withdrawableToken1",
516
- "type": "tuple"
517
- },
518
- {
519
- "components": [
520
- {
521
- "internalType": "uint256",
522
- "name": "available",
523
- "type": "uint256"
524
- },
525
- {
526
- "internalType": "uint256",
527
- "name": "expandsTo",
528
- "type": "uint256"
529
- },
530
- {
531
- "internalType": "uint256",
532
- "name": "expandDuration",
533
- "type": "uint256"
534
- }
535
- ],
536
- "internalType": "struct Structs.TokenLimit",
537
- "name": "borrowableToken0",
538
- "type": "tuple"
539
- },
540
- {
541
- "components": [
542
- {
543
- "internalType": "uint256",
544
- "name": "available",
545
- "type": "uint256"
546
- },
547
- {
548
- "internalType": "uint256",
549
- "name": "expandsTo",
550
- "type": "uint256"
551
- },
552
- {
553
- "internalType": "uint256",
554
- "name": "expandDuration",
555
- "type": "uint256"
556
- }
557
- ],
558
- "internalType": "struct Structs.TokenLimit",
559
- "name": "borrowableToken1",
560
- "type": "tuple"
561
- }
562
- ],
563
- "internalType": "struct Structs.DexLimits",
564
- "name": "limits",
565
- "type": "tuple"
566
- }
567
- ],
568
- "internalType": "struct Structs.PoolWithReserves[]",
569
- "name": "poolsReserves_",
570
- "type": "tuple[]"
571
- }
572
- ],
573
- "stateMutability": "nonpayable",
574
- "type": "function"
575
- },
576
- {
577
- "inputs": [
578
- {
579
- "internalType": "address",
580
- "name": "dex_",
581
- "type": "address"
582
- }
583
- ],
584
- "name": "getDexCollateralReserves",
585
- "outputs": [
586
- {
587
- "components": [
588
- {
589
- "internalType": "uint256",
590
- "name": "token0RealReserves",
591
- "type": "uint256"
592
- },
593
- {
594
- "internalType": "uint256",
595
- "name": "token1RealReserves",
596
- "type": "uint256"
597
- },
598
- {
599
- "internalType": "uint256",
600
- "name": "token0ImaginaryReserves",
601
- "type": "uint256"
602
- },
603
- {
604
- "internalType": "uint256",
605
- "name": "token1ImaginaryReserves",
606
- "type": "uint256"
607
- }
608
- ],
609
- "internalType": "struct IFluidDexT1.CollateralReserves",
610
- "name": "reserves_",
611
- "type": "tuple"
612
- }
613
- ],
614
- "stateMutability": "nonpayable",
615
- "type": "function"
616
- },
617
- {
618
- "inputs": [
619
- {
620
- "internalType": "address",
621
- "name": "dex_",
622
- "type": "address"
623
- }
624
- ],
625
- "name": "getDexCollateralReservesAdjusted",
626
- "outputs": [
627
- {
628
- "components": [
629
- {
630
- "internalType": "uint256",
631
- "name": "token0RealReserves",
632
- "type": "uint256"
633
- },
634
- {
635
- "internalType": "uint256",
636
- "name": "token1RealReserves",
637
- "type": "uint256"
638
- },
639
- {
640
- "internalType": "uint256",
641
- "name": "token0ImaginaryReserves",
642
- "type": "uint256"
643
- },
644
- {
645
- "internalType": "uint256",
646
- "name": "token1ImaginaryReserves",
647
- "type": "uint256"
648
- }
649
- ],
650
- "internalType": "struct IFluidDexT1.CollateralReserves",
651
- "name": "reserves_",
652
- "type": "tuple"
653
- }
654
- ],
655
- "stateMutability": "nonpayable",
656
- "type": "function"
657
- },
658
- {
659
- "inputs": [
660
- {
661
- "internalType": "address",
662
- "name": "dex_",
663
- "type": "address"
664
- }
665
- ],
666
- "name": "getDexDebtReserves",
667
- "outputs": [
668
- {
669
- "components": [
670
- {
671
- "internalType": "uint256",
672
- "name": "token0Debt",
673
- "type": "uint256"
674
- },
675
- {
676
- "internalType": "uint256",
677
- "name": "token1Debt",
678
- "type": "uint256"
679
- },
680
- {
681
- "internalType": "uint256",
682
- "name": "token0RealReserves",
683
- "type": "uint256"
684
- },
685
- {
686
- "internalType": "uint256",
687
- "name": "token1RealReserves",
688
- "type": "uint256"
689
- },
690
- {
691
- "internalType": "uint256",
692
- "name": "token0ImaginaryReserves",
693
- "type": "uint256"
694
- },
695
- {
696
- "internalType": "uint256",
697
- "name": "token1ImaginaryReserves",
698
- "type": "uint256"
699
- }
700
- ],
701
- "internalType": "struct IFluidDexT1.DebtReserves",
702
- "name": "reserves_",
703
- "type": "tuple"
704
- }
705
- ],
706
- "stateMutability": "nonpayable",
707
- "type": "function"
708
- },
709
- {
710
- "inputs": [
711
- {
712
- "internalType": "address",
713
- "name": "dex_",
714
- "type": "address"
715
- }
716
- ],
717
- "name": "getDexDebtReservesAdjusted",
718
- "outputs": [
719
- {
720
- "components": [
721
- {
722
- "internalType": "uint256",
723
- "name": "token0Debt",
724
- "type": "uint256"
725
- },
726
- {
727
- "internalType": "uint256",
728
- "name": "token1Debt",
729
- "type": "uint256"
730
- },
731
- {
732
- "internalType": "uint256",
733
- "name": "token0RealReserves",
734
- "type": "uint256"
735
- },
736
- {
737
- "internalType": "uint256",
738
- "name": "token1RealReserves",
739
- "type": "uint256"
740
- },
741
- {
742
- "internalType": "uint256",
743
- "name": "token0ImaginaryReserves",
744
- "type": "uint256"
745
- },
746
- {
747
- "internalType": "uint256",
748
- "name": "token1ImaginaryReserves",
749
- "type": "uint256"
750
- }
751
- ],
752
- "internalType": "struct IFluidDexT1.DebtReserves",
753
- "name": "reserves_",
754
- "type": "tuple"
755
- }
756
- ],
757
- "stateMutability": "nonpayable",
758
- "type": "function"
759
- },
760
- {
761
- "inputs": [
762
- {
763
- "internalType": "address",
764
- "name": "dex_",
765
- "type": "address"
766
- }
767
- ],
768
- "name": "getDexLimits",
769
- "outputs": [
770
- {
771
- "components": [
772
- {
773
- "components": [
774
- {
775
- "internalType": "uint256",
776
- "name": "available",
777
- "type": "uint256"
778
- },
779
- {
780
- "internalType": "uint256",
781
- "name": "expandsTo",
782
- "type": "uint256"
783
- },
784
- {
785
- "internalType": "uint256",
786
- "name": "expandDuration",
787
- "type": "uint256"
788
- }
789
- ],
790
- "internalType": "struct Structs.TokenLimit",
791
- "name": "withdrawableToken0",
792
- "type": "tuple"
793
- },
794
- {
795
- "components": [
796
- {
797
- "internalType": "uint256",
798
- "name": "available",
799
- "type": "uint256"
800
- },
801
- {
802
- "internalType": "uint256",
803
- "name": "expandsTo",
804
- "type": "uint256"
805
- },
806
- {
807
- "internalType": "uint256",
808
- "name": "expandDuration",
809
- "type": "uint256"
810
- }
811
- ],
812
- "internalType": "struct Structs.TokenLimit",
813
- "name": "withdrawableToken1",
814
- "type": "tuple"
815
- },
816
- {
817
- "components": [
818
- {
819
- "internalType": "uint256",
820
- "name": "available",
821
- "type": "uint256"
822
- },
823
- {
824
- "internalType": "uint256",
825
- "name": "expandsTo",
826
- "type": "uint256"
827
- },
828
- {
829
- "internalType": "uint256",
830
- "name": "expandDuration",
831
- "type": "uint256"
832
- }
833
- ],
834
- "internalType": "struct Structs.TokenLimit",
835
- "name": "borrowableToken0",
836
- "type": "tuple"
837
- },
838
- {
839
- "components": [
840
- {
841
- "internalType": "uint256",
842
- "name": "available",
843
- "type": "uint256"
844
- },
845
- {
846
- "internalType": "uint256",
847
- "name": "expandsTo",
848
- "type": "uint256"
849
- },
850
- {
851
- "internalType": "uint256",
852
- "name": "expandDuration",
853
- "type": "uint256"
854
- }
855
- ],
856
- "internalType": "struct Structs.TokenLimit",
857
- "name": "borrowableToken1",
858
- "type": "tuple"
859
- }
860
- ],
861
- "internalType": "struct Structs.DexLimits",
862
- "name": "limits_",
863
- "type": "tuple"
864
- }
865
- ],
866
- "stateMutability": "view",
867
- "type": "function"
868
- },
869
- {
870
- "inputs": [
871
- {
872
- "internalType": "address",
873
- "name": "dex_",
874
- "type": "address"
875
- }
876
- ],
877
- "name": "getDexPricesAndExchangePrices",
878
- "outputs": [
879
- {
880
- "components": [
881
- {
882
- "internalType": "uint256",
883
- "name": "lastStoredPrice",
884
- "type": "uint256"
885
- },
886
- {
887
- "internalType": "uint256",
888
- "name": "centerPrice",
889
- "type": "uint256"
890
- },
891
- {
892
- "internalType": "uint256",
893
- "name": "upperRange",
894
- "type": "uint256"
895
- },
896
- {
897
- "internalType": "uint256",
898
- "name": "lowerRange",
899
- "type": "uint256"
900
- },
901
- {
902
- "internalType": "uint256",
903
- "name": "geometricMean",
904
- "type": "uint256"
905
- },
906
- {
907
- "internalType": "uint256",
908
- "name": "supplyToken0ExchangePrice",
909
- "type": "uint256"
910
- },
911
- {
912
- "internalType": "uint256",
913
- "name": "borrowToken0ExchangePrice",
914
- "type": "uint256"
915
- },
916
- {
917
- "internalType": "uint256",
918
- "name": "supplyToken1ExchangePrice",
919
- "type": "uint256"
920
- },
921
- {
922
- "internalType": "uint256",
923
- "name": "borrowToken1ExchangePrice",
924
- "type": "uint256"
925
- }
926
- ],
927
- "internalType": "struct IFluidDexT1.PricesAndExchangePrice",
928
- "name": "pex_",
929
- "type": "tuple"
930
- }
931
- ],
932
- "stateMutability": "nonpayable",
933
- "type": "function"
934
- },
935
- {
936
- "inputs": [
937
- {
938
- "internalType": "uint256",
939
- "name": "poolId_",
940
- "type": "uint256"
941
- }
942
- ],
943
- "name": "getPool",
944
- "outputs": [
945
- {
946
- "components": [
947
- {
948
- "internalType": "address",
949
- "name": "pool",
950
- "type": "address"
951
- },
952
- {
953
- "internalType": "address",
954
- "name": "token0",
955
- "type": "address"
956
- },
957
- {
958
- "internalType": "address",
959
- "name": "token1",
960
- "type": "address"
961
- },
962
- {
963
- "internalType": "uint256",
964
- "name": "fee",
965
- "type": "uint256"
966
- }
967
- ],
968
- "internalType": "struct Structs.Pool",
969
- "name": "pool_",
970
- "type": "tuple"
971
- }
972
- ],
973
- "stateMutability": "view",
974
- "type": "function"
975
- },
976
- {
977
- "inputs": [
978
- {
979
- "internalType": "uint256",
980
- "name": "poolId_",
981
- "type": "uint256"
982
- }
983
- ],
984
- "name": "getPoolAddress",
985
- "outputs": [
986
- {
987
- "internalType": "address",
988
- "name": "pool_",
989
- "type": "address"
990
- }
991
- ],
992
- "stateMutability": "view",
993
- "type": "function"
994
- },
995
- {
996
- "inputs": [
997
- {
998
- "internalType": "address",
999
- "name": "pool_",
1000
- "type": "address"
1001
- }
1002
- ],
1003
- "name": "getPoolConstantsView",
1004
- "outputs": [
1005
- {
1006
- "components": [
1007
- {
1008
- "internalType": "uint256",
1009
- "name": "dexId",
1010
- "type": "uint256"
1011
- },
1012
- {
1013
- "internalType": "address",
1014
- "name": "liquidity",
1015
- "type": "address"
1016
- },
1017
- {
1018
- "internalType": "address",
1019
- "name": "factory",
1020
- "type": "address"
1021
- },
1022
- {
1023
- "components": [
1024
- {
1025
- "internalType": "address",
1026
- "name": "shift",
1027
- "type": "address"
1028
- },
1029
- {
1030
- "internalType": "address",
1031
- "name": "admin",
1032
- "type": "address"
1033
- },
1034
- {
1035
- "internalType": "address",
1036
- "name": "colOperations",
1037
- "type": "address"
1038
- },
1039
- {
1040
- "internalType": "address",
1041
- "name": "debtOperations",
1042
- "type": "address"
1043
- },
1044
- {
1045
- "internalType": "address",
1046
- "name": "perfectOperationsAndOracle",
1047
- "type": "address"
1048
- }
1049
- ],
1050
- "internalType": "struct IFluidDexT1.Implementations",
1051
- "name": "implementations",
1052
- "type": "tuple"
1053
- },
1054
- {
1055
- "internalType": "address",
1056
- "name": "deployerContract",
1057
- "type": "address"
1058
- },
1059
- {
1060
- "internalType": "address",
1061
- "name": "token0",
1062
- "type": "address"
1063
- },
1064
- {
1065
- "internalType": "address",
1066
- "name": "token1",
1067
- "type": "address"
1068
- },
1069
- {
1070
- "internalType": "bytes32",
1071
- "name": "supplyToken0Slot",
1072
- "type": "bytes32"
1073
- },
1074
- {
1075
- "internalType": "bytes32",
1076
- "name": "borrowToken0Slot",
1077
- "type": "bytes32"
1078
- },
1079
- {
1080
- "internalType": "bytes32",
1081
- "name": "supplyToken1Slot",
1082
- "type": "bytes32"
1083
- },
1084
- {
1085
- "internalType": "bytes32",
1086
- "name": "borrowToken1Slot",
1087
- "type": "bytes32"
1088
- },
1089
- {
1090
- "internalType": "bytes32",
1091
- "name": "exchangePriceToken0Slot",
1092
- "type": "bytes32"
1093
- },
1094
- {
1095
- "internalType": "bytes32",
1096
- "name": "exchangePriceToken1Slot",
1097
- "type": "bytes32"
1098
- },
1099
- {
1100
- "internalType": "uint256",
1101
- "name": "oracleMapping",
1102
- "type": "uint256"
1103
- }
1104
- ],
1105
- "internalType": "struct IFluidDexT1.ConstantViews",
1106
- "name": "constantsView_",
1107
- "type": "tuple"
1108
- }
1109
- ],
1110
- "stateMutability": "view",
1111
- "type": "function"
1112
- },
1113
- {
1114
- "inputs": [
1115
- {
1116
- "internalType": "address",
1117
- "name": "pool_",
1118
- "type": "address"
1119
- }
1120
- ],
1121
- "name": "getPoolConstantsView2",
1122
- "outputs": [
1123
- {
1124
- "components": [
1125
- {
1126
- "internalType": "uint256",
1127
- "name": "token0NumeratorPrecision",
1128
- "type": "uint256"
1129
- },
1130
- {
1131
- "internalType": "uint256",
1132
- "name": "token0DenominatorPrecision",
1133
- "type": "uint256"
1134
- },
1135
- {
1136
- "internalType": "uint256",
1137
- "name": "token1NumeratorPrecision",
1138
- "type": "uint256"
1139
- },
1140
- {
1141
- "internalType": "uint256",
1142
- "name": "token1DenominatorPrecision",
1143
- "type": "uint256"
1144
- }
1145
- ],
1146
- "internalType": "struct IFluidDexT1.ConstantViews2",
1147
- "name": "constantsView2_",
1148
- "type": "tuple"
1149
- }
1150
- ],
1151
- "stateMutability": "view",
1152
- "type": "function"
1153
- },
1154
- {
1155
- "inputs": [
1156
- {
1157
- "internalType": "address",
1158
- "name": "pool_",
1159
- "type": "address"
1160
- }
1161
- ],
1162
- "name": "getPoolFee",
1163
- "outputs": [
1164
- {
1165
- "internalType": "uint256",
1166
- "name": "fee_",
1167
- "type": "uint256"
1168
- }
1169
- ],
1170
- "stateMutability": "view",
1171
- "type": "function"
1172
- },
1173
- {
1174
- "inputs": [
1175
- {
1176
- "internalType": "address",
1177
- "name": "pool_",
1178
- "type": "address"
1179
- }
1180
- ],
1181
- "name": "getPoolReserves",
1182
- "outputs": [
1183
- {
1184
- "components": [
1185
- {
1186
- "internalType": "address",
1187
- "name": "pool",
1188
- "type": "address"
1189
- },
1190
- {
1191
- "internalType": "address",
1192
- "name": "token0",
1193
- "type": "address"
1194
- },
1195
- {
1196
- "internalType": "address",
1197
- "name": "token1",
1198
- "type": "address"
1199
- },
1200
- {
1201
- "internalType": "uint256",
1202
- "name": "fee",
1203
- "type": "uint256"
1204
- },
1205
- {
1206
- "internalType": "uint256",
1207
- "name": "centerPrice",
1208
- "type": "uint256"
1209
- },
1210
- {
1211
- "components": [
1212
- {
1213
- "internalType": "uint256",
1214
- "name": "token0RealReserves",
1215
- "type": "uint256"
1216
- },
1217
- {
1218
- "internalType": "uint256",
1219
- "name": "token1RealReserves",
1220
- "type": "uint256"
1221
- },
1222
- {
1223
- "internalType": "uint256",
1224
- "name": "token0ImaginaryReserves",
1225
- "type": "uint256"
1226
- },
1227
- {
1228
- "internalType": "uint256",
1229
- "name": "token1ImaginaryReserves",
1230
- "type": "uint256"
1231
- }
1232
- ],
1233
- "internalType": "struct IFluidDexT1.CollateralReserves",
1234
- "name": "collateralReserves",
1235
- "type": "tuple"
1236
- },
1237
- {
1238
- "components": [
1239
- {
1240
- "internalType": "uint256",
1241
- "name": "token0Debt",
1242
- "type": "uint256"
1243
- },
1244
- {
1245
- "internalType": "uint256",
1246
- "name": "token1Debt",
1247
- "type": "uint256"
1248
- },
1249
- {
1250
- "internalType": "uint256",
1251
- "name": "token0RealReserves",
1252
- "type": "uint256"
1253
- },
1254
- {
1255
- "internalType": "uint256",
1256
- "name": "token1RealReserves",
1257
- "type": "uint256"
1258
- },
1259
- {
1260
- "internalType": "uint256",
1261
- "name": "token0ImaginaryReserves",
1262
- "type": "uint256"
1263
- },
1264
- {
1265
- "internalType": "uint256",
1266
- "name": "token1ImaginaryReserves",
1267
- "type": "uint256"
1268
- }
1269
- ],
1270
- "internalType": "struct IFluidDexT1.DebtReserves",
1271
- "name": "debtReserves",
1272
- "type": "tuple"
1273
- },
1274
- {
1275
- "components": [
1276
- {
1277
- "components": [
1278
- {
1279
- "internalType": "uint256",
1280
- "name": "available",
1281
- "type": "uint256"
1282
- },
1283
- {
1284
- "internalType": "uint256",
1285
- "name": "expandsTo",
1286
- "type": "uint256"
1287
- },
1288
- {
1289
- "internalType": "uint256",
1290
- "name": "expandDuration",
1291
- "type": "uint256"
1292
- }
1293
- ],
1294
- "internalType": "struct Structs.TokenLimit",
1295
- "name": "withdrawableToken0",
1296
- "type": "tuple"
1297
- },
1298
- {
1299
- "components": [
1300
- {
1301
- "internalType": "uint256",
1302
- "name": "available",
1303
- "type": "uint256"
1304
- },
1305
- {
1306
- "internalType": "uint256",
1307
- "name": "expandsTo",
1308
- "type": "uint256"
1309
- },
1310
- {
1311
- "internalType": "uint256",
1312
- "name": "expandDuration",
1313
- "type": "uint256"
1314
- }
1315
- ],
1316
- "internalType": "struct Structs.TokenLimit",
1317
- "name": "withdrawableToken1",
1318
- "type": "tuple"
1319
- },
1320
- {
1321
- "components": [
1322
- {
1323
- "internalType": "uint256",
1324
- "name": "available",
1325
- "type": "uint256"
1326
- },
1327
- {
1328
- "internalType": "uint256",
1329
- "name": "expandsTo",
1330
- "type": "uint256"
1331
- },
1332
- {
1333
- "internalType": "uint256",
1334
- "name": "expandDuration",
1335
- "type": "uint256"
1336
- }
1337
- ],
1338
- "internalType": "struct Structs.TokenLimit",
1339
- "name": "borrowableToken0",
1340
- "type": "tuple"
1341
- },
1342
- {
1343
- "components": [
1344
- {
1345
- "internalType": "uint256",
1346
- "name": "available",
1347
- "type": "uint256"
1348
- },
1349
- {
1350
- "internalType": "uint256",
1351
- "name": "expandsTo",
1352
- "type": "uint256"
1353
- },
1354
- {
1355
- "internalType": "uint256",
1356
- "name": "expandDuration",
1357
- "type": "uint256"
1358
- }
1359
- ],
1360
- "internalType": "struct Structs.TokenLimit",
1361
- "name": "borrowableToken1",
1362
- "type": "tuple"
1363
- }
1364
- ],
1365
- "internalType": "struct Structs.DexLimits",
1366
- "name": "limits",
1367
- "type": "tuple"
1368
- }
1369
- ],
1370
- "internalType": "struct Structs.PoolWithReserves",
1371
- "name": "poolReserves_",
1372
- "type": "tuple"
1373
- }
1374
- ],
1375
- "stateMutability": "nonpayable",
1376
- "type": "function"
1377
- },
1378
- {
1379
- "inputs": [
1380
- {
1381
- "internalType": "address",
1382
- "name": "pool_",
1383
- "type": "address"
1384
- }
1385
- ],
1386
- "name": "getPoolReservesAdjusted",
1387
- "outputs": [
1388
- {
1389
- "components": [
1390
- {
1391
- "internalType": "address",
1392
- "name": "pool",
1393
- "type": "address"
1394
- },
1395
- {
1396
- "internalType": "address",
1397
- "name": "token0",
1398
- "type": "address"
1399
- },
1400
- {
1401
- "internalType": "address",
1402
- "name": "token1",
1403
- "type": "address"
1404
- },
1405
- {
1406
- "internalType": "uint256",
1407
- "name": "fee",
1408
- "type": "uint256"
1409
- },
1410
- {
1411
- "internalType": "uint256",
1412
- "name": "centerPrice",
1413
- "type": "uint256"
1414
- },
1415
- {
1416
- "components": [
1417
- {
1418
- "internalType": "uint256",
1419
- "name": "token0RealReserves",
1420
- "type": "uint256"
1421
- },
1422
- {
1423
- "internalType": "uint256",
1424
- "name": "token1RealReserves",
1425
- "type": "uint256"
1426
- },
1427
- {
1428
- "internalType": "uint256",
1429
- "name": "token0ImaginaryReserves",
1430
- "type": "uint256"
1431
- },
1432
- {
1433
- "internalType": "uint256",
1434
- "name": "token1ImaginaryReserves",
1435
- "type": "uint256"
1436
- }
1437
- ],
1438
- "internalType": "struct IFluidDexT1.CollateralReserves",
1439
- "name": "collateralReserves",
1440
- "type": "tuple"
1441
- },
1442
- {
1443
- "components": [
1444
- {
1445
- "internalType": "uint256",
1446
- "name": "token0Debt",
1447
- "type": "uint256"
1448
- },
1449
- {
1450
- "internalType": "uint256",
1451
- "name": "token1Debt",
1452
- "type": "uint256"
1453
- },
1454
- {
1455
- "internalType": "uint256",
1456
- "name": "token0RealReserves",
1457
- "type": "uint256"
1458
- },
1459
- {
1460
- "internalType": "uint256",
1461
- "name": "token1RealReserves",
1462
- "type": "uint256"
1463
- },
1464
- {
1465
- "internalType": "uint256",
1466
- "name": "token0ImaginaryReserves",
1467
- "type": "uint256"
1468
- },
1469
- {
1470
- "internalType": "uint256",
1471
- "name": "token1ImaginaryReserves",
1472
- "type": "uint256"
1473
- }
1474
- ],
1475
- "internalType": "struct IFluidDexT1.DebtReserves",
1476
- "name": "debtReserves",
1477
- "type": "tuple"
1478
- },
1479
- {
1480
- "components": [
1481
- {
1482
- "components": [
1483
- {
1484
- "internalType": "uint256",
1485
- "name": "available",
1486
- "type": "uint256"
1487
- },
1488
- {
1489
- "internalType": "uint256",
1490
- "name": "expandsTo",
1491
- "type": "uint256"
1492
- },
1493
- {
1494
- "internalType": "uint256",
1495
- "name": "expandDuration",
1496
- "type": "uint256"
1497
- }
1498
- ],
1499
- "internalType": "struct Structs.TokenLimit",
1500
- "name": "withdrawableToken0",
1501
- "type": "tuple"
1502
- },
1503
- {
1504
- "components": [
1505
- {
1506
- "internalType": "uint256",
1507
- "name": "available",
1508
- "type": "uint256"
1509
- },
1510
- {
1511
- "internalType": "uint256",
1512
- "name": "expandsTo",
1513
- "type": "uint256"
1514
- },
1515
- {
1516
- "internalType": "uint256",
1517
- "name": "expandDuration",
1518
- "type": "uint256"
1519
- }
1520
- ],
1521
- "internalType": "struct Structs.TokenLimit",
1522
- "name": "withdrawableToken1",
1523
- "type": "tuple"
1524
- },
1525
- {
1526
- "components": [
1527
- {
1528
- "internalType": "uint256",
1529
- "name": "available",
1530
- "type": "uint256"
1531
- },
1532
- {
1533
- "internalType": "uint256",
1534
- "name": "expandsTo",
1535
- "type": "uint256"
1536
- },
1537
- {
1538
- "internalType": "uint256",
1539
- "name": "expandDuration",
1540
- "type": "uint256"
1541
- }
1542
- ],
1543
- "internalType": "struct Structs.TokenLimit",
1544
- "name": "borrowableToken0",
1545
- "type": "tuple"
1546
- },
1547
- {
1548
- "components": [
1549
- {
1550
- "internalType": "uint256",
1551
- "name": "available",
1552
- "type": "uint256"
1553
- },
1554
- {
1555
- "internalType": "uint256",
1556
- "name": "expandsTo",
1557
- "type": "uint256"
1558
- },
1559
- {
1560
- "internalType": "uint256",
1561
- "name": "expandDuration",
1562
- "type": "uint256"
1563
- }
1564
- ],
1565
- "internalType": "struct Structs.TokenLimit",
1566
- "name": "borrowableToken1",
1567
- "type": "tuple"
1568
- }
1569
- ],
1570
- "internalType": "struct Structs.DexLimits",
1571
- "name": "limits",
1572
- "type": "tuple"
1573
- }
1574
- ],
1575
- "internalType": "struct Structs.PoolWithReserves",
1576
- "name": "poolReserves_",
1577
- "type": "tuple"
1578
- }
1579
- ],
1580
- "stateMutability": "nonpayable",
1581
- "type": "function"
1582
- },
1583
- {
1584
- "inputs": [
1585
- {
1586
- "internalType": "address",
1587
- "name": "pool_",
1588
- "type": "address"
1589
- }
1590
- ],
1591
- "name": "getPoolTokens",
1592
- "outputs": [
1593
- {
1594
- "internalType": "address",
1595
- "name": "token0_",
1596
- "type": "address"
1597
- },
1598
- {
1599
- "internalType": "address",
1600
- "name": "token1_",
1601
- "type": "address"
1602
- }
1603
- ],
1604
- "stateMutability": "view",
1605
- "type": "function"
1606
- },
1607
- {
1608
- "inputs": [
1609
- {
1610
- "internalType": "address[]",
1611
- "name": "pools_",
1612
- "type": "address[]"
1613
- }
1614
- ],
1615
- "name": "getPoolsReserves",
1616
- "outputs": [
1617
- {
1618
- "components": [
1619
- {
1620
- "internalType": "address",
1621
- "name": "pool",
1622
- "type": "address"
1623
- },
1624
- {
1625
- "internalType": "address",
1626
- "name": "token0",
1627
- "type": "address"
1628
- },
1629
- {
1630
- "internalType": "address",
1631
- "name": "token1",
1632
- "type": "address"
1633
- },
1634
- {
1635
- "internalType": "uint256",
1636
- "name": "fee",
1637
- "type": "uint256"
1638
- },
1639
- {
1640
- "internalType": "uint256",
1641
- "name": "centerPrice",
1642
- "type": "uint256"
1643
- },
1644
- {
1645
- "components": [
1646
- {
1647
- "internalType": "uint256",
1648
- "name": "token0RealReserves",
1649
- "type": "uint256"
1650
- },
1651
- {
1652
- "internalType": "uint256",
1653
- "name": "token1RealReserves",
1654
- "type": "uint256"
1655
- },
1656
- {
1657
- "internalType": "uint256",
1658
- "name": "token0ImaginaryReserves",
1659
- "type": "uint256"
1660
- },
1661
- {
1662
- "internalType": "uint256",
1663
- "name": "token1ImaginaryReserves",
1664
- "type": "uint256"
1665
- }
1666
- ],
1667
- "internalType": "struct IFluidDexT1.CollateralReserves",
1668
- "name": "collateralReserves",
1669
- "type": "tuple"
1670
- },
1671
- {
1672
- "components": [
1673
- {
1674
- "internalType": "uint256",
1675
- "name": "token0Debt",
1676
- "type": "uint256"
1677
- },
1678
- {
1679
- "internalType": "uint256",
1680
- "name": "token1Debt",
1681
- "type": "uint256"
1682
- },
1683
- {
1684
- "internalType": "uint256",
1685
- "name": "token0RealReserves",
1686
- "type": "uint256"
1687
- },
1688
- {
1689
- "internalType": "uint256",
1690
- "name": "token1RealReserves",
1691
- "type": "uint256"
1692
- },
1693
- {
1694
- "internalType": "uint256",
1695
- "name": "token0ImaginaryReserves",
1696
- "type": "uint256"
1697
- },
1698
- {
1699
- "internalType": "uint256",
1700
- "name": "token1ImaginaryReserves",
1701
- "type": "uint256"
1702
- }
1703
- ],
1704
- "internalType": "struct IFluidDexT1.DebtReserves",
1705
- "name": "debtReserves",
1706
- "type": "tuple"
1707
- },
1708
- {
1709
- "components": [
1710
- {
1711
- "components": [
1712
- {
1713
- "internalType": "uint256",
1714
- "name": "available",
1715
- "type": "uint256"
1716
- },
1717
- {
1718
- "internalType": "uint256",
1719
- "name": "expandsTo",
1720
- "type": "uint256"
1721
- },
1722
- {
1723
- "internalType": "uint256",
1724
- "name": "expandDuration",
1725
- "type": "uint256"
1726
- }
1727
- ],
1728
- "internalType": "struct Structs.TokenLimit",
1729
- "name": "withdrawableToken0",
1730
- "type": "tuple"
1731
- },
1732
- {
1733
- "components": [
1734
- {
1735
- "internalType": "uint256",
1736
- "name": "available",
1737
- "type": "uint256"
1738
- },
1739
- {
1740
- "internalType": "uint256",
1741
- "name": "expandsTo",
1742
- "type": "uint256"
1743
- },
1744
- {
1745
- "internalType": "uint256",
1746
- "name": "expandDuration",
1747
- "type": "uint256"
1748
- }
1749
- ],
1750
- "internalType": "struct Structs.TokenLimit",
1751
- "name": "withdrawableToken1",
1752
- "type": "tuple"
1753
- },
1754
- {
1755
- "components": [
1756
- {
1757
- "internalType": "uint256",
1758
- "name": "available",
1759
- "type": "uint256"
1760
- },
1761
- {
1762
- "internalType": "uint256",
1763
- "name": "expandsTo",
1764
- "type": "uint256"
1765
- },
1766
- {
1767
- "internalType": "uint256",
1768
- "name": "expandDuration",
1769
- "type": "uint256"
1770
- }
1771
- ],
1772
- "internalType": "struct Structs.TokenLimit",
1773
- "name": "borrowableToken0",
1774
- "type": "tuple"
1775
- },
1776
- {
1777
- "components": [
1778
- {
1779
- "internalType": "uint256",
1780
- "name": "available",
1781
- "type": "uint256"
1782
- },
1783
- {
1784
- "internalType": "uint256",
1785
- "name": "expandsTo",
1786
- "type": "uint256"
1787
- },
1788
- {
1789
- "internalType": "uint256",
1790
- "name": "expandDuration",
1791
- "type": "uint256"
1792
- }
1793
- ],
1794
- "internalType": "struct Structs.TokenLimit",
1795
- "name": "borrowableToken1",
1796
- "type": "tuple"
1797
- }
1798
- ],
1799
- "internalType": "struct Structs.DexLimits",
1800
- "name": "limits",
1801
- "type": "tuple"
1802
- }
1803
- ],
1804
- "internalType": "struct Structs.PoolWithReserves[]",
1805
- "name": "poolsReserves_",
1806
- "type": "tuple[]"
1807
- }
1808
- ],
1809
- "stateMutability": "nonpayable",
1810
- "type": "function"
1811
- },
1812
- {
1813
- "inputs": [
1814
- {
1815
- "internalType": "address[]",
1816
- "name": "pools_",
1817
- "type": "address[]"
1818
- }
1819
- ],
1820
- "name": "getPoolsReservesAdjusted",
1821
- "outputs": [
1822
- {
1823
- "components": [
1824
- {
1825
- "internalType": "address",
1826
- "name": "pool",
1827
- "type": "address"
1828
- },
1829
- {
1830
- "internalType": "address",
1831
- "name": "token0",
1832
- "type": "address"
1833
- },
1834
- {
1835
- "internalType": "address",
1836
- "name": "token1",
1837
- "type": "address"
1838
- },
1839
- {
1840
- "internalType": "uint256",
1841
- "name": "fee",
1842
- "type": "uint256"
1843
- },
1844
- {
1845
- "internalType": "uint256",
1846
- "name": "centerPrice",
1847
- "type": "uint256"
1848
- },
1849
- {
1850
- "components": [
1851
- {
1852
- "internalType": "uint256",
1853
- "name": "token0RealReserves",
1854
- "type": "uint256"
1855
- },
1856
- {
1857
- "internalType": "uint256",
1858
- "name": "token1RealReserves",
1859
- "type": "uint256"
1860
- },
1861
- {
1862
- "internalType": "uint256",
1863
- "name": "token0ImaginaryReserves",
1864
- "type": "uint256"
1865
- },
1866
- {
1867
- "internalType": "uint256",
1868
- "name": "token1ImaginaryReserves",
1869
- "type": "uint256"
1870
- }
1871
- ],
1872
- "internalType": "struct IFluidDexT1.CollateralReserves",
1873
- "name": "collateralReserves",
1874
- "type": "tuple"
1875
- },
1876
- {
1877
- "components": [
1878
- {
1879
- "internalType": "uint256",
1880
- "name": "token0Debt",
1881
- "type": "uint256"
1882
- },
1883
- {
1884
- "internalType": "uint256",
1885
- "name": "token1Debt",
1886
- "type": "uint256"
1887
- },
1888
- {
1889
- "internalType": "uint256",
1890
- "name": "token0RealReserves",
1891
- "type": "uint256"
1892
- },
1893
- {
1894
- "internalType": "uint256",
1895
- "name": "token1RealReserves",
1896
- "type": "uint256"
1897
- },
1898
- {
1899
- "internalType": "uint256",
1900
- "name": "token0ImaginaryReserves",
1901
- "type": "uint256"
1902
- },
1903
- {
1904
- "internalType": "uint256",
1905
- "name": "token1ImaginaryReserves",
1906
- "type": "uint256"
1907
- }
1908
- ],
1909
- "internalType": "struct IFluidDexT1.DebtReserves",
1910
- "name": "debtReserves",
1911
- "type": "tuple"
1912
- },
1913
- {
1914
- "components": [
1915
- {
1916
- "components": [
1917
- {
1918
- "internalType": "uint256",
1919
- "name": "available",
1920
- "type": "uint256"
1921
- },
1922
- {
1923
- "internalType": "uint256",
1924
- "name": "expandsTo",
1925
- "type": "uint256"
1926
- },
1927
- {
1928
- "internalType": "uint256",
1929
- "name": "expandDuration",
1930
- "type": "uint256"
1931
- }
1932
- ],
1933
- "internalType": "struct Structs.TokenLimit",
1934
- "name": "withdrawableToken0",
1935
- "type": "tuple"
1936
- },
1937
- {
1938
- "components": [
1939
- {
1940
- "internalType": "uint256",
1941
- "name": "available",
1942
- "type": "uint256"
1943
- },
1944
- {
1945
- "internalType": "uint256",
1946
- "name": "expandsTo",
1947
- "type": "uint256"
1948
- },
1949
- {
1950
- "internalType": "uint256",
1951
- "name": "expandDuration",
1952
- "type": "uint256"
1953
- }
1954
- ],
1955
- "internalType": "struct Structs.TokenLimit",
1956
- "name": "withdrawableToken1",
1957
- "type": "tuple"
1958
- },
1959
- {
1960
- "components": [
1961
- {
1962
- "internalType": "uint256",
1963
- "name": "available",
1964
- "type": "uint256"
1965
- },
1966
- {
1967
- "internalType": "uint256",
1968
- "name": "expandsTo",
1969
- "type": "uint256"
1970
- },
1971
- {
1972
- "internalType": "uint256",
1973
- "name": "expandDuration",
1974
- "type": "uint256"
1975
- }
1976
- ],
1977
- "internalType": "struct Structs.TokenLimit",
1978
- "name": "borrowableToken0",
1979
- "type": "tuple"
1980
- },
1981
- {
1982
- "components": [
1983
- {
1984
- "internalType": "uint256",
1985
- "name": "available",
1986
- "type": "uint256"
1987
- },
1988
- {
1989
- "internalType": "uint256",
1990
- "name": "expandsTo",
1991
- "type": "uint256"
1992
- },
1993
- {
1994
- "internalType": "uint256",
1995
- "name": "expandDuration",
1996
- "type": "uint256"
1997
- }
1998
- ],
1999
- "internalType": "struct Structs.TokenLimit",
2000
- "name": "borrowableToken1",
2001
- "type": "tuple"
2002
- }
2003
- ],
2004
- "internalType": "struct Structs.DexLimits",
2005
- "name": "limits",
2006
- "type": "tuple"
2007
- }
2008
- ],
2009
- "internalType": "struct Structs.PoolWithReserves[]",
2010
- "name": "poolsReserves_",
2011
- "type": "tuple[]"
2012
- }
2013
- ],
2014
- "stateMutability": "nonpayable",
2015
- "type": "function"
2016
- },
2017
- {
2018
- "inputs": [],
2019
- "name": "getTotalPools",
2020
- "outputs": [
2021
- {
2022
- "internalType": "uint256",
2023
- "name": "",
2024
- "type": "uint256"
2025
- }
2026
- ],
2027
- "stateMutability": "view",
2028
- "type": "function"
2029
- }
2030
- ]