HomePhabricator

[Cashtab] [Chronik] [Tx Gen] Generate Tx Output

Description

[Cashtab] [Chronik] [Tx Gen] Generate Tx Output

Summary:
As per T2503, this is part of a series of diffs to refactor the transaction generation process within useBCH.

This diff is a standalone utility function which adds tx outputs to the existing transaction builder instance, catering for both one to one and one to many send XEC txs.

The function returns an object containing the transaction builder instance.

Test Plan:
npm test
observe successful execution of generateTxOutput() unit tests

Reviewers: bytesofman, #bitcoin_abc

Reviewed By: bytesofman, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D11719

Details

Provenance
emackAuthored on Jul 5 2022, 03:30
emackPushed on Jul 13 2022, 14:15
Reviewer
Restricted Project
Differential Revision
D11719: [Cashtab] [Chronik] [Tx Gen] Generate Tx Output
Parents
rABC18c1f7988aa2: [Cashtab] [Chronik] [Tx Gen] Generate Tx Input
Branches
Unknown
Tags
Unknown