HomePhabricator

[Cashtab] [chronik tx history p11] Update incoming tx notifications parsing to…

Description

[Cashtab] [chronik tx history p11] Update incoming tx notifications parsing to use new function

Summary:
T2447

Depends on D12130

The parseChronikTx function was originally used only to parse incoming websocket txs for incoming tx notifications. This used a legacy way of getting token info.

Modify this implementation to use the now existing cashtabCache object.

Test Plan:
Review changes to unit tests and npm test
npm start
Receive an etoken tx of an etoken already in your cache, observe notification is correct
Receive an etoken tx of an etoken not in your cache, observe notification is correct and cashtabCache is updated in local storage

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Subscribers: emack

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

Details

Provenance
bytesofmanAuthored on Oct 3 2022, 23:44
bytesofmanPushed on Oct 6 2022, 13:49
Reviewer
Restricted Project
Differential Revision
D12131: [Cashtab] [chronik tx history p11] Update incoming tx notifications parsing to use new function
Parents
rABCa44c6d600129: [Cashtab] [chronik tx history p10] Parse etokenAmount for token decimals
Branches
Unknown
Tags
Unknown