gnosis/eth/contracts.py
def get_old_safe_contract(w3: Web3, address=None):
    """
    Get Old Gnosis Safe Master contract. It should be used to access Safe methods on Proxy contracts.
    :param w3: Web3 instance
    :param address: address of the safe contract/proxy contract
    :return: Safe Contract
    """
    return w3.eth.contract(address,
                           abi=OLD_GNOSIS_SAFE_INTERFACE['abi'],
                           bytecode=OLD_GNOSIS_SAFE_INTERFACE['bytecode'])
def get_old_safe_contract(w3: Web3, address=None):
    """
    Get Old Gnosis Safe Master contract. It should be used to access Safe methods on Proxy contracts.
    :param w3: Web3 instance
    :param address: address of the safe contract/proxy contract
    :return: Safe Contract
    """
    return w3.eth.contract(address,
                           abi=OLD_GNOSIS_SAFE_INTERFACE['abi'],
                           bytecode=OLD_GNOSIS_SAFE_INTERFACE['bytecode'])
Get Old Gnosis Safe Master contract. It should be used to access Safe methods on Proxy contracts.
    :param w3: Web3 instance
    :param address: address of the safe contract/proxy contract
    :return: Safe Contract