Page MenuHomePhabricator

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

Authored by bytesofman on Jan 12 2021, 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
Branch
prep-for-api-migration
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 14722
Build 29403: Build Diffcashtab-tests
Build 29402: arc lint + arc unit