tfchain/types/FulfillmentTypes.py
def from_condition(condition):
    """
    Create a fresh fulfillment from its parent condition.
    """
    if condition is None:
        return FulfillmentSingleSignature()
    if isinstance(condition, ConditionAtomicSwap):
        return FulfillmentAtomicSwap()
    icondition = condition.unwrap()
    if isinstance(icondition, (ConditionUnlockHash, ConditionNil)):
        return FulfillmentSingleSignature()
    if isinstance(icondition, ConditionMultiSignature):
        return FulfillmentMultiSignature()
    raise TypeError("invalid condition type {} cannot be used to create a fulfillment".format(type(condition)))

    Create a fresh fulfillment from its parent condition.
    
Create a fresh fulfillment from its parent condition.
Create a fresh fulfillment from its parent condition .
def from_condition(condition):
    if condition is None:
        return FulfillmentSingleSignature()
    if isinstance(condition, ConditionAtomicSwap):
        return FulfillmentAtomicSwap()
    icondition = condition.unwrap()
    if isinstance(icondition, (ConditionUnlockHash, ConditionNil)):
        return FulfillmentSingleSignature()
    if isinstance(icondition, ConditionMultiSignature):
        return FulfillmentMultiSignature()
    raise TypeError("invalid condition type {} cannot be used to create a fulfillment".format(type(condition)))
def from_condition ( condition ) : if condition is None : return FulfillmentSingleSignature ( ) if isinstance ( condition , ConditionAtomicSwap ) : return FulfillmentAtomicSwap ( ) icondition = condition . unwrap ( ) if isinstance ( icondition , ( ConditionUnlockHash , ConditionNil ) ) : return FulfillmentSingleSignature ( ) if isinstance ( icondition , ConditionMultiSignature ) : return FulfillmentMultiSignature ( ) raise TypeError ( "invalid condition type {} cannot be used to create a fulfillment" . format ( type ( condition ) ) )
Create a fresh fulfillment from its parent condition.
Create a fresh fulfillment from its parent condition .
"""
    Create a fresh fulfillment from its parent condition.
    """
condition