Page MenuHomePhabricator

[Cashtab] Prepare for migration to psf bch-api with new utxo key
ClosedPublic

Authored by josephroyking on Tue, Jan 12, 16:31.

Details

Summary

PSF has upgraded bch-api to add features that will support Cashtab (BigNumber.js for SLPA, rate limits in env variables). Cashtab will move to the PSF version of bch-api (away from custom fork) for better support and standard repo.

The updated bch-api removes duplicate key entries. The API used to return both value: and satoshis: keys in utxo objects. These were identical. Cashtab used the satoshis: key. However, the upgraded api returns only value:.

This PR switches to value: instead of satoshis: in preparation for upgrading the backend, which will return only value:

Test Plan
npm start

Observe balances load as before
Observe sending BCHA and SLPA both work as before

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.