deploy_uniswap_v3

Documentation for eth_defi.uniswap_v3.deployment.deploy_uniswap_v3 function.

deploy_uniswap_v3(web3, deployer, 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 (HexAddress) – Deployer account

  • give_weth (Optional[int]) – Automatically give some Wrapped ETH to the deployer. Express as ETH units.

Returns

Deployment details

Return type

eth_defi.uniswap_v3.deployment.UniswapV3Deployment