sc/deposit.js
function isDepositDefinition(arrDefinition){
    if (!validationUtils.isArrayOfLength(arrDefinition, 2))
        return false;
    if (arrDefinition[0] !== 'or')
        return false;
    if (!validationUtils.isArrayOfLength(arrDefinition[1], 2))
        return false;
    if (!validationUtils.isArrayOfLength(arrDefinition[1][0], 2))
        return false;
    if (!validationUtils.isArrayOfLength(arrDefinition[1][1], 2))
        return false;
    if (arrDefinition[1][0][1] !== constants.FOUNDATION_SAFE_ADDRESS)
        return false;
    if(!validationUtils.isValidAddress(arrDefinition[1][1][1]))
        return false;
    
    return true;    
}
function isDepositDefinition(arrDefinition){
    if (!validationUtils.isArrayOfLength(arrDefinition, 2))
        return false;
    if (arrDefinition[0] !== 'or')
        return false;
    if (!validationUtils.isArrayOfLength(arrDefinition[1], 2))
        return false;
    if (!validationUtils.isArrayOfLength(arrDefinition[1][0], 2))
        return false;
    if (!validationUtils.isArrayOfLength(arrDefinition[1][1], 2))
        return false;
    if (arrDefinition[1][0][1] !== constants.FOUNDATION_SAFE_ADDRESS)
        return false;
    if(!validationUtils.isValidAddress(arrDefinition[1][1][1]))
        return false;
    
    return true;    
}
function isDepositDefinition ( arrDefinition ) { if ( ! validationUtils . isArrayOfLength ( arrDefinition , 2 ) ) return false ; if ( arrDefinition [ 0 ] !== 'or' ) return false ; if ( ! validationUtils . isArrayOfLength ( arrDefinition [ 1 ] , 2 ) ) return false ; if ( ! validationUtils . isArrayOfLength ( arrDefinition [ 1 ] [ 0 ] , 2 ) ) return false ; if ( ! validationUtils . isArrayOfLength ( arrDefinition [ 1 ] [ 1 ] , 2 ) ) return false ; if ( arrDefinition [ 1 ] [ 0 ] [ 1 ] !== constants . FOUNDATION_SAFE_ADDRESS ) return false ; if ( ! validationUtils . isValidAddress ( arrDefinition [ 1 ] [ 1 ] [ 1 ] ) ) return false ; return true ; }
verify if a deposit definition is valid.

@param	{Array}	arrDefinition
@return	{boolean}
verify if a deposit definition is valid .