HomePhabricator

[Cashtab] [Chronik] [Tx Gen] Parse XEC send value

Description

[Cashtab] [Chronik] [Tx Gen] Parse XEC send value

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

This diff is a standalone utility function which parses parameters for both one to one and one to many send XEC transactions, aggregates the total send value (in case of one to many) and then checks whether the final send value is above dust.

This diff does not change any existing functionality within the codebase. Once all the utility functions are accepted, then there'll be a final set of diffs to refactor the existing sendXec() function which is getting quite large and cumbersome to maintain.

Test Plan:
npm start
npm test
observe the successful execution of new useBCH.test.js unit tests

Reviewers: bytesofman, #bitcoin_abc

Reviewed By: bytesofman, #bitcoin_abc

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

Details

Provenance
emackAuthored on Jun 13 2022, 10:57
emackPushed on Jul 13 2022, 12:46
Reviewer
Restricted Project
Differential Revision
D11617: [Cashtab] [Chronik] [Tx Gen] Parse XEC send value
Parents
rABC1224b79d4b42: [cashtab-components] Replace all instances of CashTab with Cashtab
Branches
Unknown
Tags
Unknown