mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
18 lines
430 B
TypeScript
18 lines
430 B
TypeScript
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
|