Page MenuHomePhabricator

[ecash-herald] Show sent amount for Cashtab msgs
ClosedPublic

Authored by bytesofman on Jul 6 2023, 23:53.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC66b0b750f8a6: [ecash-herald] Show sent amount for Cashtab msgs
Summary

T3200

Show xec send info for Cashtab msg txs

Test Plan

npm test, image output for Cashtab msg shown

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested changes to this revision.Jul 7 2023, 12:24
Fabien added a subscriber: Fabien.

The problem here is that it's impossible to tell if the change is tested properly.

apps/ecash-herald/test/mocks/blocks.js
84 ↗(On Diff #41307)

These changes are unrelated to the diff

This revision now requires changes to proceed.Jul 7 2023, 12:24

The problem here is that it's impossible to tell if the change is tested properly.

true. This is a broader problem than this diff. Will get a diff together that generatesMocks on constant API data. This will also stop unrelated changes like price updates, utxo set swaps, etc.

Mock changes now only relate to new feature

ok this time mock changes for real only relate to feature

How the changes observable in blocks.js render in telegram:

image.png (247×618 px, 62 KB)

Fabien requested changes to this revision.Jul 10 2023, 19:19
Fabien added inline comments.
apps/ecash-herald/src/parse.js
1204 ↗(On Diff #41356)

Unless I'm missing something this is converting to dollars, not XEC ?

This revision now requires changes to proceed.Jul 10 2023, 19:19
Fabien requested changes to this revision.Jul 11 2023, 07:11

This was about the comment, which tells the code converts sats to XEC with rounding while it is converting sats to dollars

This revision now requires changes to proceed.Jul 11 2023, 07:11
This revision is now accepted and ready to land.Jul 11 2023, 18:07