get_or_create_contract_registry

Documentation for eth_defi.deploy.get_or_create_contract_registry function.

get_or_create_contract_registry(web3)[source]

Get a contract registry associated with a Web3 connection.

  • Only relevant for test sessions

  • Assumes one web3 instance per test

  • Useful to make traces symbolic in eth_defi.trace

Parameters

web3 (web3.main.Web3) – Web3 test session

Returns

Mapping of address -> deployed contract instance

Return type

Dict[str, web3.contract.contract.Contract]