mirror of
https://github.com/Xahau/xahau.js.git
synced 2026-06-07 10:46:49 +00:00
feat: add payment channel details to tx
This commit is contained in:
committed by
Elliot Lee
parent
47a139fdff
commit
14444bea3f
@@ -103,6 +103,8 @@ function parseOutcome(tx: any): any|undefined {
|
||||
}
|
||||
const balanceChanges = transactionParser.parseBalanceChanges(metadata)
|
||||
const orderbookChanges = transactionParser.parseOrderbookChanges(metadata)
|
||||
const channel = transactionParser.parseChannelDetails(metadata)
|
||||
|
||||
removeEmptyCounterpartyInBalanceChanges(balanceChanges)
|
||||
removeEmptyCounterpartyInOrderbookChanges(orderbookChanges)
|
||||
|
||||
@@ -112,6 +114,7 @@ function parseOutcome(tx: any): any|undefined {
|
||||
fee: common.dropsToXrp(tx.Fee),
|
||||
balanceChanges: balanceChanges,
|
||||
orderbookChanges: orderbookChanges,
|
||||
channel: channel,
|
||||
ledgerVersion: tx.ledger_index,
|
||||
indexInLedger: tx.meta.TransactionIndex,
|
||||
deliveredAmount: parseDeliveredAmount(tx)
|
||||
|
||||
Reference in New Issue
Block a user