import * as assert from 'assert' import {parseMemos} from './utils' import {removeUndefined} from '../../common' function parseEscrowExecution(tx: any): object { assert(tx.TransactionType === 'EscrowFinish') return removeUndefined({ memos: parseMemos(tx), owner: tx.Owner, escrowSequence: tx.OfferSequence, condition: tx.Condition, fulfillment: tx.Fulfillment }) } export default parseEscrowExecution