mock_partial_deployment_for_analysis

Documentation for eth_defi.uniswap_v2.deployment.mock_partial_deployment_for_analysis function.

mock_partial_deployment_for_analysis(web3, router_address)[source]

Create a Uniswap deployment that is only usable in trade analysis.

Router and pair is all we need.

TODO: This function is likely to change / relocate.

Parameters
  • web3 (web3.main.Web3) –

  • router_address (str) –

Return type

eth_defi.uniswap_v2.deployment.UniswapV2Deployment