gnosis/eth/contracts/__init__.py
def generate_contract_fn(contract: Dict[str, Any]):
    """
    Dynamically generate functions to work with the contracts

    :param contract:
    :return:
    """

    def fn(w3: Web3, address: Optional[ChecksumAddress] = None):
        return w3.eth.contract(
            address=address, abi=contract["abi"], bytecode=contract.get("bytecode")
        )

    return fn

    Dynamically generate functions to work with the contracts

    :param contract:
    :return:
    
Dynamically generate functions to work with the contracts
Dynamically generate functions to work with the contracts
def generate_contract_fn(contract: Dict[str, Any]):
    def fn(w3: Web3, address: Optional[ChecksumAddress] = None):
        return w3.eth.contract(
            address=address, abi=contract["abi"], bytecode=contract.get("bytecode")
        )
    return fn
def generate_contract_fn ( contract : Dict [ str , Any ] ) : def fn ( w3 : Web3 , address : Optional [ ChecksumAddress ] = None ) : return w3 . eth . contract ( address = address , abi = contract [ "abi" ] , bytecode = contract . get ( "bytecode" ) ) return fn
Dynamically generate functions to work with the contracts
Dynamically generate functions to work with the contracts
"""
    Dynamically generate functions to work with the contracts

    :param contract:
    :return:
    """
None
contract
Dict[str, Any]
None