deploy_uniswap_v3

Documentation for eth_defi.uniswap_v3.deployment.deploy_uniswap_v3 function.

deploy_uniswap_v3(web3, deployer, weth=None, give_weth=10000)[source]

Deploy v3

Example:

deployment = deploy_uniswap_v3(web3, deployer)
factory = deployment.factory
print(f"Uniswap factory is {factory.address}")
swap_router = deployment.swap_router
print(f"Uniswap swap router is {swap_router.address}")
Parameters
  • web3 (web3.main.Web3) – Web3 instance

  • deployer (eth_typing.evm.HexAddress) – Deployer account

  • weth (Optional[web3.contract.contract.Contract]) – WETH contract instance

  • give_weth (int | None) – Automatically give some Wrapped ETH to the deployer. Express as ETH units.

Returns

Deployment details

Return type

eth_defi.uniswap_v3.deployment.UniswapV3Deployment