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