UniswapV3Deployment
Documentation for eth_defi.uniswap_v3.deployment.UniswapV3Deployment Python class.
- class UniswapV3Deployment[source]
Describe Uniswap v3 deployment.
Attributes summary
The Web3 instance for which all the contracts here are bound
Factory address.
WETH9Mock address.
Swap router address.
Non-fungible position manager address.
quoter
Use QuoterV2 instead of classic V1
Router contract is SwapRouter02
Methods summary
__init__
(web3, factory, weth, swap_router, ...)- web3: web3.main.Web3
The Web3 instance for which all the contracts here are bound
- factory: web3.contract.contract.Contract
Factory address. See the Solidity source code.
- weth: web3.contract.contract.Contract
WETH9Mock address. See the Solidity source code.
- swap_router: web3.contract.contract.Contract
Swap router address. See the Solidity source code.
- position_manager: web3.contract.contract.Contract
Non-fungible position manager address. See the Solidity source code.
- PoolContract: web3.contract.contract.Contract
- __init__(web3, factory, weth, swap_router, position_manager, quoter, PoolContract, quoter_v2=False, router_v2=False)
- Parameters
web3 (web3.main.Web3) –
factory (web3.contract.contract.Contract) –
weth (web3.contract.contract.Contract) –
swap_router (web3.contract.contract.Contract) –
position_manager (web3.contract.contract.Contract) –
quoter (web3.contract.contract.Contract) –
PoolContract (web3.contract.contract.Contract) –
quoter_v2 (bool) –
router_v2 (bool) –
- Return type
None