HomePhabricator

[Cashtab] Add more wallet helper functions

Description

[Cashtab] Add more wallet helper functions

Summary:
Add standardized toXec and toSatoshis functions. Cashtab has iterated through too many of these functions. They should be simple, tested, and live in one place.

For now -- just use the BigNumber library, as this can't be deprecated for some time.

This diff does not implement the functions. This is part of a series of diffs working to standardize balance headers in Cashtab and remove functions from utils.

Test Plan: npm test

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
bytesofmanAuthored on Jan 18 2024, 19:14
bytesofmanPushed on Jan 18 2024, 22:28
Reviewer
Restricted Project
Differential Revision
D15202: [Cashtab] Add more wallet helper functions
Parents
rABC96429e14317b: [Cashtab] Move validation out of utils
Branches
Unknown
Tags
Unknown