gnosis/eth/contracts.py
def get_safe_contract(w3: Web3, address=None):
    """
    Get 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=GNOSIS_SAFE_INTERFACE['abi'],
                           bytecode=GNOSIS_SAFE_INTERFACE['bytecode'])
def get_safe_contract(w3: Web3, address=None):
    """
    Get 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=GNOSIS_SAFE_INTERFACE['abi'],
                           bytecode=GNOSIS_SAFE_INTERFACE['bytecode'])
def get_safe_contract ( w3 : Web3 , address = None ) : return w3 . eth . contract ( address , abi = GNOSIS_SAFE_INTERFACE [ 'abi' ] , bytecode = GNOSIS_SAFE_INTERFACE [ 'bytecode' ] )
Get 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
Get 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