@paraswap/dex-lib 4.0.14 → 4.0.16-fluid-restr

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 (268) hide show
  1. package/build/abi/Aave_GSM.json +751 -0
  2. package/build/abi/Balancer.json +257 -0
  3. package/build/abi/BalancerV2.json +1179 -0
  4. package/build/abi/RamsesV2Pool.abi.json +1554 -0
  5. package/build/abi/RamsesV2Quoter.abi.json +274 -0
  6. package/build/abi/{aavev3statav2/Token.json → USDM.json} +271 -461
  7. package/build/abi/UniswapV2Router.json +397 -0
  8. package/build/abi/{wombat/pool.json → angle-transmuter/ChainlinkAccessControlledOffchainAggregator.json} +594 -637
  9. package/build/abi/angle-transmuter/ChainlinkEACAggregatorProxy.json +509 -0
  10. package/build/abi/curve-v1/CurveBUSDv2.abi.json +1356 -0
  11. package/build/abi/curve-v1/CurveTokenV1.json +305 -0
  12. package/build/abi/curve-v1/CurveTokenV2.json +318 -0
  13. package/build/abi/curve-v1/CurveV1StableNg.json +1452 -0
  14. package/build/abi/curve-v1/CurveV2Swap.json +700 -0
  15. package/build/abi/curve-v1/FactoryCryptoRegistry.json +316 -0
  16. package/build/abi/curve-v1/FactoryRegistry.json +508 -0
  17. package/build/abi/curve-v1/StableSwapAave.json +1152 -0
  18. package/build/abi/curve-v1/StableSwapBUSD.json +814 -0
  19. package/build/abi/curve-v1/StableSwapCompound.json +814 -0
  20. package/build/abi/curve-v1/StableSwapIDLE.json +1253 -0
  21. package/build/abi/curve-v1/StableSwapPax.json +865 -0
  22. package/build/abi/curve-v1/StableSwapSnow.json +900 -0
  23. package/build/abi/curve-v1/StableSwapUSDN.json +1004 -0
  24. package/build/abi/curve-v1/StableSwapUSDT.json +814 -0
  25. package/build/abi/curve-v1/StableSwapY.json +814 -0
  26. package/build/abi/inception/inception-ineth.json +609 -0
  27. package/build/abi/kyberdmm/kyber-storage.abi.json +824 -0
  28. package/build/abi/kyberdmm.abi.json +1148 -0
  29. package/build/abi/maverick-v2/MaverickV2Quoter.json +278 -0
  30. package/build/abi/nerve/nerve-metapool.json +790 -0
  31. package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +193 -0
  32. package/build/abi/velodrome-slipstream/VelodromeSlipstreamQuoterV2.abi.json +267 -0
  33. package/build/dex/aave-v1/aave-v1.js +0 -1
  34. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  35. package/build/dex/balancer-v1/balancer-pools.json +33333 -0
  36. package/build/dex/bebop/websocket-fetcher.d.ts +35 -0
  37. package/build/dex/bebop/websocket-fetcher.js +87 -0
  38. package/build/dex/bebop/websocket-fetcher.js.map +1 -0
  39. package/build/dex/fluid-dex/fluid-dex.d.ts +1 -0
  40. package/build/dex/fluid-dex/fluid-dex.js +7 -0
  41. package/build/dex/fluid-dex/fluid-dex.js.map +1 -1
  42. package/build/dex/generic-rfq/rate-fetcher.js +5 -5
  43. package/build/dex/generic-rfq/rate-fetcher.js.map +1 -1
  44. package/build/dex/idle-dao/idle-dao-pool.d.ts +56 -0
  45. package/build/dex/idle-dao/idle-dao-pool.js +176 -0
  46. package/build/dex/idle-dao/idle-dao-pool.js.map +1 -0
  47. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +16 -0
  48. package/build/dex/idle-dao/idle-dao-pooling-pool.js +57 -0
  49. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +1 -0
  50. package/build/dex/idle-dao/scripts.d.ts +9 -0
  51. package/build/dex/idle-dao/scripts.js +552 -0
  52. package/build/dex/idle-dao/scripts.js.map +1 -0
  53. package/build/dex/inception/inception-event-pool.d.ts +4 -4
  54. package/build/dex/inception/inception-event-pool.js +9 -7
  55. package/build/dex/inception/inception-event-pool.js.map +1 -1
  56. package/build/dex/inception/inception-native.d.ts +43 -0
  57. package/build/dex/inception/inception-native.js +131 -0
  58. package/build/dex/inception/inception-native.js.map +1 -0
  59. package/build/dex/inception/inception-pool.d.ts +18 -0
  60. package/build/dex/inception/inception-pool.js +32 -0
  61. package/build/dex/inception/inception-pool.js.map +1 -0
  62. package/build/dex/inception/inception-price-feed.d.ts +19 -0
  63. package/build/dex/inception/inception-price-feed.js +51 -0
  64. package/build/dex/inception/inception-price-feed.js.map +1 -0
  65. package/build/dex/inception/inception.d.ts +6 -6
  66. package/build/dex/inception/inception.js +40 -16
  67. package/build/dex/inception/inception.js.map +1 -1
  68. package/build/dex/inception/utils.d.ts +0 -1
  69. package/build/dex/inception/utils.js +1 -22
  70. package/build/dex/inception/utils.js.map +1 -1
  71. package/build/dex/platypus/platypus.js +3 -17
  72. package/build/dex/platypus/platypus.js.map +1 -1
  73. package/build/dex/swaap-v1/swaap-v1.js +0 -4
  74. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  75. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +16 -0
  76. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +16 -0
  77. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +16 -0
  78. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +16 -0
  79. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-dai-usdc-eth.json +16 -0
  80. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-eth-usdc-dai.json +16 -0
  81. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +16 -0
  82. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdt-usdc-dai.json +16 -0
  83. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-eth-usdc.json +9 -0
  84. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-eth.json +9 -0
  85. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-wbtc.json +9 -0
  86. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-eth-steth.json +9 -0
  87. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-steth-eth.json +9 -0
  88. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-usdc-usdt.json +9 -0
  89. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-eth-usdc.json +9 -0
  90. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-eth.json +9 -0
  91. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-usdt.json +9 -0
  92. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +12 -0
  93. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +7 -0
  94. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +7 -0
  95. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-dai-usdc-eth.json +7 -0
  96. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-eth-usdc-dai.json +7 -0
  97. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +12 -0
  98. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-eth-usdc.json +7 -0
  99. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-usdc-eth.json +7 -0
  100. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +78 -0
  101. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +81 -0
  102. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +78 -0
  103. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +78 -0
  104. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-dai-usdc-eth.json +81 -0
  105. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-eth-usdc-dai.json +81 -0
  106. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +81 -0
  107. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdt-usdc-dai.json +81 -0
  108. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-eth-usdc.json +64 -0
  109. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-eth.json +85 -0
  110. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-wbtc.json +64 -0
  111. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-eth-steth.json +52 -0
  112. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-steth-eth.json +52 -0
  113. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-usdc-usdt.json +52 -0
  114. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-eth-usdc.json +55 -0
  115. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-eth.json +55 -0
  116. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-usdt.json +55 -0
  117. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +23 -0
  118. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +37 -0
  119. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +23 -0
  120. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +23 -0
  121. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +51 -0
  122. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-univ3-usdt-dai-eth.json +58 -0
  123. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +23 -0
  124. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +23 -0
  125. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +9 -0
  126. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +16 -0
  127. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +23 -0
  128. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +12 -0
  129. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +7 -0
  130. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +12 -0
  131. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +12 -0
  132. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +7 -0
  133. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-univ3-usdt-dai-eth.json +7 -0
  134. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +7 -0
  135. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +7 -0
  136. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +7 -0
  137. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +7 -0
  138. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +130 -0
  139. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +136 -0
  140. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +100 -0
  141. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +100 -0
  142. package/build/executor/fixtures/executor02/routes/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +166 -0
  143. package/build/executor/fixtures/executor02/routes/price-route-multiswap-univ3-usdt-dai-eth.json +190 -0
  144. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +114 -0
  145. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +114 -0
  146. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +55 -0
  147. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +73 -0
  148. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +82 -0
  149. package/build/lib/pub-sub.js +0 -11
  150. package/build/lib/pub-sub.js.map +1 -1
  151. package/package.json +1 -1
  152. package/src/dex/fluid-dex/fluid-dex-e2e.test.ts +18 -0
  153. package/src/dex/fluid-dex/fluid-dex.ts +14 -0
  154. package/src/dex/generic-rfq/rate-fetcher.ts +5 -5
  155. package/src/lib/pub-sub.ts +0 -20
  156. package/tests/constants-e2e.ts +5 -0
  157. package/.vscode/launch.json +0 -53
  158. package/.vscode/settings.json +0 -2
  159. package/.vscode/tasks.json +0 -15
  160. package/build/abi/aavev3statav2/Factory.json +0 -131
  161. package/build/abi/aavev3statav2/Pool.json +0 -1459
  162. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +0 -52
  163. package/build/abi/usual-m-smart-m/usualM.abi.json +0 -483
  164. package/build/dex/aave-v2/tokenlist.json +0 -904
  165. package/build/dex/aave-v2/tokens-avalanche.json +0 -44
  166. package/build/dex/aave-v2/tokens-mainnet.json +0 -188
  167. package/build/dex/aave-v2/tokens-polygon.json +0 -44
  168. package/build/dex/aave-v3-stata-v2/aave-v3-stata-v2.d.ts +0 -49
  169. package/build/dex/aave-v3-stata-v2/aave-v3-stata-v2.js +0 -384
  170. package/build/dex/aave-v3-stata-v2/aave-v3-stata-v2.js.map +0 -1
  171. package/build/dex/aave-v3-stata-v2/config.d.ts +0 -3
  172. package/build/dex/aave-v3-stata-v2/config.js +0 -21
  173. package/build/dex/aave-v3-stata-v2/config.js.map +0 -1
  174. package/build/dex/aave-v3-stata-v2/tokens.d.ts +0 -10
  175. package/build/dex/aave-v3-stata-v2/tokens.js +0 -43
  176. package/build/dex/aave-v3-stata-v2/tokens.js.map +0 -1
  177. package/build/dex/aave-v3-stata-v2/types.d.ts +0 -49
  178. package/build/dex/aave-v3-stata-v2/types.js +0 -25
  179. package/build/dex/aave-v3-stata-v2/types.js.map +0 -1
  180. package/build/dex/aave-v3-stata-v2/utils.d.ts +0 -4
  181. package/build/dex/aave-v3-stata-v2/utils.js +0 -67
  182. package/build/dex/aave-v3-stata-v2/utils.js.map +0 -1
  183. package/build/dex/bProtocol.d.ts +0 -18
  184. package/build/dex/bProtocol.js +0 -39
  185. package/build/dex/bProtocol.js.map +0 -1
  186. package/build/dex/balancer-v3/abi/balancerBatchRouter.d.ts +0 -729
  187. package/build/dex/balancer-v3/abi/balancerBatchRouter.js +0 -732
  188. package/build/dex/balancer-v3/abi/balancerBatchRouter.js.map +0 -1
  189. package/build/dex/balancer-v3/abi/balancerRouter.d.ts +0 -1406
  190. package/build/dex/balancer-v3/abi/balancerRouter.js +0 -1175
  191. package/build/dex/balancer-v3/abi/balancerRouter.js.map +0 -1
  192. package/build/dex/balancer-v3/abi/vaultExtension.V3.d.ts +0 -2081
  193. package/build/dex/balancer-v3/abi/vaultExtension.V3.js +0 -1851
  194. package/build/dex/balancer-v3/abi/vaultExtension.V3.js.map +0 -1
  195. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.d.ts +0 -34
  196. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js +0 -406
  197. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js.map +0 -1
  198. package/build/dex/bancor.d.ts +0 -26
  199. package/build/dex/bancor.js +0 -58
  200. package/build/dex/bancor.js.map +0 -1
  201. package/build/dex/compound.d.ts +0 -18
  202. package/build/dex/compound.js +0 -46
  203. package/build/dex/compound.js.map +0 -1
  204. package/build/dex/curve-v2.d.ts +0 -58
  205. package/build/dex/curve-v2.js +0 -180
  206. package/build/dex/curve-v2.js.map +0 -1
  207. package/build/dex/dodo-v1.d.ts +0 -33
  208. package/build/dex/dodo-v1.js +0 -63
  209. package/build/dex/dodo-v1.js.map +0 -1
  210. package/build/dex/lido.d.ts +0 -19
  211. package/build/dex/lido.js +0 -42
  212. package/build/dex/lido.js.map +0 -1
  213. package/build/dex/maker-psm/scripts/gem.abi.json +0 -136
  214. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  215. package/build/dex/maker-psm/scripts/validate-state.js +0 -185
  216. package/build/dex/maker-psm/scripts/validate-state.js.map +0 -1
  217. package/build/dex/maker-psm/scripts/vat.abi.json +0 -243
  218. package/build/dex/onebit.d.ts +0 -25
  219. package/build/dex/onebit.js +0 -42
  220. package/build/dex/onebit.js.map +0 -1
  221. package/build/dex/smoothy.d.ts +0 -26
  222. package/build/dex/smoothy.js +0 -48
  223. package/build/dex/smoothy.js.map +0 -1
  224. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +0 -1
  225. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +0 -53
  226. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +0 -1
  227. package/build/dex/stable-pool.d.ts +0 -28
  228. package/build/dex/stable-pool.js +0 -55
  229. package/build/dex/stable-pool.js.map +0 -1
  230. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +0 -7
  231. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +0 -20
  232. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +0 -1
  233. package/build/dex/trader-joe-v2.1.d.ts +0 -43
  234. package/build/dex/trader-joe-v2.1.js +0 -79
  235. package/build/dex/trader-joe-v2.1.js.map +0 -1
  236. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +0 -17
  237. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +0 -64
  238. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +0 -1
  239. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +0 -17
  240. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +0 -79
  241. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +0 -1
  242. package/build/dex/uniswap-v3/uniswap-v3-pricing.d.ts +0 -4
  243. package/build/dex/uniswap-v3/uniswap-v3-pricing.js +0 -43
  244. package/build/dex/uniswap-v3/uniswap-v3-pricing.js.map +0 -1
  245. package/build/dex/uniswap-v3/uniswap-v3-worker.d.ts +0 -1
  246. package/build/dex/uniswap-v3/uniswap-v3-worker.js +0 -10
  247. package/build/dex/uniswap-v3/uniswap-v3-worker.js.map +0 -1
  248. package/build/dex/usual/usual-m-smart-m.d.ts +0 -17
  249. package/build/dex/usual/usual-m-smart-m.js +0 -50
  250. package/build/dex/usual/usual-m-smart-m.js.map +0 -1
  251. package/build/dex/usual-m-smart-m/config.d.ts +0 -3
  252. package/build/dex/usual-m-smart-m/config.js +0 -13
  253. package/build/dex/usual-m-smart-m/config.js.map +0 -1
  254. package/build/dex/usual-m-smart-m/types.d.ts +0 -7
  255. package/build/dex/usual-m-smart-m/types.js +0 -3
  256. package/build/dex/usual-m-smart-m/types.js.map +0 -1
  257. package/build/dex/usual-m-smart-m/usual-m-smart-m.d.ts +0 -35
  258. package/build/dex/usual-m-smart-m/usual-m-smart-m.js +0 -161
  259. package/build/dex/usual-m-smart-m/usual-m-smart-m.js.map +0 -1
  260. package/build/dex/usual-m-usd0/config.d.ts +0 -3
  261. package/build/dex/usual-m-usd0/config.js +0 -14
  262. package/build/dex/usual-m-usd0/config.js.map +0 -1
  263. package/build/dex/usual-m-usd0/types.d.ts +0 -8
  264. package/build/dex/usual-m-usd0/types.js +0 -3
  265. package/build/dex/usual-m-usd0/types.js.map +0 -1
  266. package/build/dex/usual-m-usd0/usual-m-usd0.d.ts +0 -35
  267. package/build/dex/usual-m-usd0/usual-m-usd0.js +0 -159
  268. package/build/dex/usual-m-usd0/usual-m-usd0.js.map +0 -1
@@ -35,19 +35,13 @@ export class ExpStringPubSub {
35
35
  this.logger.info(`Subscribing to ${this.channel}`);
36
36
 
37
37
  this.dexHelper.cache.subscribe(this.channel, (_, msg) => {
38
- const before = Date.now();
39
38
  const decodedMsg = JSON.parse(msg) as KeyValuePubSubMsg;
40
39
  this.handleSubscription(decodedMsg);
41
- const after = Date.now();
42
- this.logger.info(`Decoding and handling took: ${after - before}ms`);
43
40
  });
44
41
  }
45
42
 
46
43
  publish(data: Record<string, unknown>, ttl: number) {
47
44
  const expiresAt = Math.round(Date.now() / 1000) + ttl;
48
- this.logger.info(
49
- `Publishing keys: '${Object.keys(data)}', expiresAt: '${expiresAt}'`,
50
- );
51
45
 
52
46
  this.dexHelper.cache.publish(
53
47
  this.channel,
@@ -123,20 +117,14 @@ export class ExpHashPubSub {
123
117
  this.logger.info(`Subscribing`);
124
118
 
125
119
  this.dexHelper.cache.subscribe(this.hashKey, (_, msg) => {
126
- const before = Date.now();
127
120
  const decodedMsg = Utils.Parse(msg) as KeyValuePubSubMsg;
128
121
  this.handleSubscription(decodedMsg);
129
- const after = Date.now();
130
- this.logger.info(`Decoding and handling took: ${after - before}ms`);
131
122
  });
132
123
  }
133
124
 
134
125
  publish(data: Record<string, unknown>) {
135
126
  if (Object.keys(data).length > 0) {
136
127
  const expiresAt = Math.round(Date.now() / 1000) + this.ttl;
137
- this.logger.info(
138
- `Publishing keys: '${Object.keys(data)}', expiresAt: '${expiresAt}'`,
139
- );
140
128
 
141
129
  this.dexHelper.cache.publish(
142
130
  this.hashKey,
@@ -147,11 +135,6 @@ export class ExpHashPubSub {
147
135
 
148
136
  handleSubscription(msg: KeyValuePubSubMsg) {
149
137
  const { expiresAt, data } = msg;
150
- this.logger.info(
151
- `Received subscription, keys: '${Object.keys(
152
- data,
153
- )}', expiresAt: '${expiresAt}'`,
154
- );
155
138
 
156
139
  const now = Math.round(Date.now() / 1000);
157
140
  // calculating ttl as message might come with the delay
@@ -176,12 +159,9 @@ export class ExpHashPubSub {
176
159
  const localValue = this.localCache.get<T>(key);
177
160
 
178
161
  if (localValue !== undefined) {
179
- this.logger.info(`Returning from local cache: '${key}'`);
180
162
  return localValue;
181
163
  }
182
164
 
183
- this.logger.info(`Returning from external cache: '${key}'`);
184
-
185
165
  const value = await this.dexHelper.cache.hget(this.hashKey, key);
186
166
 
187
167
  if (value && this.ttl > 0) {
@@ -446,6 +446,10 @@ export const Tokens: {
446
446
  decimals: 18,
447
447
  symbol: 'EURA',
448
448
  },
449
+ FLUID: {
450
+ address: '0x6f40d4A6237C257fff2dB00FA0510DeEECd303eb',
451
+ decimals: 18,
452
+ },
449
453
  EUROC: {
450
454
  address: '0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c',
451
455
  decimals: 6,
@@ -1703,6 +1707,7 @@ export const Holders: {
1703
1707
  [network: number]: { [tokenAddress: string]: Address };
1704
1708
  } = {
1705
1709
  [Network.MAINNET]: {
1710
+ FLUID: '0x2d675D4C52a8aE117b935fF98c6F9f29A15827F0',
1706
1711
  USDS: '0xB1796E8f1eEcF23027c1E3C00fE303629A189d10',
1707
1712
  sUSDS: '0xd564B3aE673CAa49D054Bf185bD72a6853763eE7',
1708
1713
  SKY: '0x0ddda327A6614130CCb20bc0097313A282176A01',
@@ -1,53 +0,0 @@
1
- {
2
- "version": "0.2.0",
3
- "configurations": [
4
- {
5
- "type": "node",
6
- "request": "launch",
7
- "name": "Current",
8
- "program": "${file}",
9
- "preLaunchTask": "npm: build",
10
- "sourceMaps": true,
11
- "smartStep": true,
12
- "internalConsoleOptions": "openOnSessionStart",
13
- "outFiles": ["${workspaceFolder}/build/**/*.js"]
14
- },
15
- {
16
- "type": "node",
17
- "request": "launch",
18
- "name": "Debug dex integration",
19
- "program": "${workspaceFolder}/node_modules/ts-node/dist/bin.js",
20
- "args": [
21
- "--project",
22
- "tsconfig.json",
23
- // "${workspaceFolder}/src/dex/algebra/scripts/validate-state.ts",
24
- "${workspaceFolder}/src/dex/camelot/camelot-pool-discovery.test.ts",
25
- // "${workspaceFolder}/src/dex/solidly-v3/scripts/check-event-pool-event.ts",
26
- // "${workspaceFolder}/scripts/dex-integration.ts",
27
- "test",
28
- "wombat"
29
- ],
30
- "console": "integratedTerminal",
31
- "internalConsoleOptions": "neverOpen",
32
- "runtimeArgs": ["--nolazy"],
33
- "sourceMaps": true,
34
- "smartStep": true,
35
- "skipFiles": ["<node_internals>/**"],
36
- "cwd": "${workspaceFolder}"
37
- },
38
- {
39
- "type": "node",
40
- "name": "Jest file",
41
- "request": "launch",
42
- "program": "${workspaceFolder}/node_modules/jest/bin/jest.js",
43
- // "program": "${workspaceFolder}/src/dex/camelot/scripts/validate-state.ts",
44
- // "args": ["src/dex/balancer-v1/balancer-v1-e2e.test.ts"],
45
- // "args": ["${relativeFile}"],
46
- "args": ["${file}"],
47
- "cwd": "${workspaceRoot}",
48
- "console": "integratedTerminal",
49
- "internalConsoleOptions": "neverOpen",
50
- "sourceMaps": true
51
- }
52
- ]
53
- }
@@ -1,2 +0,0 @@
1
- {
2
- }
@@ -1,15 +0,0 @@
1
- {
2
- "version": "2.0.0",
3
- "tasks": [
4
- {
5
- "label": "tsc: build - tsconfig.json",
6
- "type": "typescript",
7
- "tsconfig": "tsconfig.json",
8
- "problemMatcher": ["$tsc"],
9
- "group": {
10
- "kind": "build",
11
- "isDefault": true
12
- }
13
- }
14
- ]
15
- }
@@ -1,131 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- { "internalType": "contract IPool", "name": "pool", "type": "address" },
5
- { "internalType": "address", "name": "proxyAdmin", "type": "address" },
6
- {
7
- "internalType": "contract ITransparentProxyFactory",
8
- "name": "transparentProxyFactory",
9
- "type": "address"
10
- },
11
- { "internalType": "address", "name": "stataTokenImpl", "type": "address" }
12
- ],
13
- "stateMutability": "nonpayable",
14
- "type": "constructor"
15
- },
16
- {
17
- "inputs": [
18
- { "internalType": "address", "name": "underlying", "type": "address" }
19
- ],
20
- "name": "NotListedUnderlying",
21
- "type": "error"
22
- },
23
- {
24
- "anonymous": false,
25
- "inputs": [
26
- {
27
- "indexed": false,
28
- "internalType": "uint8",
29
- "name": "version",
30
- "type": "uint8"
31
- }
32
- ],
33
- "name": "Initialized",
34
- "type": "event"
35
- },
36
- {
37
- "anonymous": false,
38
- "inputs": [
39
- {
40
- "indexed": true,
41
- "internalType": "address",
42
- "name": "stataToken",
43
- "type": "address"
44
- },
45
- {
46
- "indexed": true,
47
- "internalType": "address",
48
- "name": "underlying",
49
- "type": "address"
50
- }
51
- ],
52
- "name": "StataTokenCreated",
53
- "type": "event"
54
- },
55
- {
56
- "inputs": [],
57
- "name": "POOL",
58
- "outputs": [
59
- { "internalType": "contract IPool", "name": "", "type": "address" }
60
- ],
61
- "stateMutability": "view",
62
- "type": "function"
63
- },
64
- {
65
- "inputs": [],
66
- "name": "PROXY_ADMIN",
67
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
68
- "stateMutability": "view",
69
- "type": "function"
70
- },
71
- {
72
- "inputs": [],
73
- "name": "STATA_TOKEN_IMPL",
74
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
75
- "stateMutability": "view",
76
- "type": "function"
77
- },
78
- {
79
- "inputs": [],
80
- "name": "TRANSPARENT_PROXY_FACTORY",
81
- "outputs": [
82
- {
83
- "internalType": "contract ITransparentProxyFactory",
84
- "name": "",
85
- "type": "address"
86
- }
87
- ],
88
- "stateMutability": "view",
89
- "type": "function"
90
- },
91
- {
92
- "inputs": [
93
- {
94
- "internalType": "address[]",
95
- "name": "underlyings",
96
- "type": "address[]"
97
- }
98
- ],
99
- "name": "createStataTokens",
100
- "outputs": [
101
- { "internalType": "address[]", "name": "", "type": "address[]" }
102
- ],
103
- "stateMutability": "nonpayable",
104
- "type": "function"
105
- },
106
- {
107
- "inputs": [
108
- { "internalType": "address", "name": "underlying", "type": "address" }
109
- ],
110
- "name": "getStataToken",
111
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
112
- "stateMutability": "view",
113
- "type": "function"
114
- },
115
- {
116
- "inputs": [],
117
- "name": "getStataTokens",
118
- "outputs": [
119
- { "internalType": "address[]", "name": "", "type": "address[]" }
120
- ],
121
- "stateMutability": "view",
122
- "type": "function"
123
- },
124
- {
125
- "inputs": [],
126
- "name": "initialize",
127
- "outputs": [],
128
- "stateMutability": "nonpayable",
129
- "type": "function"
130
- }
131
- ]