UniswapV3Deployment

Documentation for eth_defi.uniswap_v3.deployment.UniswapV3Deployment Python class.

class UniswapV3Deployment[source]

Describe Uniswap v3 deployment.

Attributes summary

web3

The Web3 instance for which all the contracts here are bound

factory

Factory address.

weth

WETH9Mock address.

swap_router

Swap router address.

position_manager

Non-fungible position manager address.

quoter

PoolContract

See the Solidity source code.

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

See the Solidity source code.

__init__(web3, factory, weth, swap_router, position_manager, quoter, PoolContract)
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) –

Return type

None