Page MenuHomePhabricator

[Cashtab] Allow user to receive specified amount of XEC or FIRMA on Receive page
Needs RevisionPublic

Authored by bytesofman on Wed, May 7, 14:00.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Summary

Cashtab send screen supports bip21 query strings. We should allow users to make their own to support point of sale use case.

This is a first pass, where we support custom XEC or FIRMA amounts.

It can be extended to support arbitary token quantities or other bip21.

new receive screen:

image.png (627×508 px, 27 KB)

Test Plan

npm test

deployed live at test site, check at https://cashtab-local-dev.netlify.app/#/receive

Diff Detail

Repository
rABC Bitcoin ABC
Branch
bip21-qr-codes
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 33240
Build 65963: Build Diffcashtab-tests
Build 65962: arc lint + arc unit

Event Timeline

bytesofman published this revision for review.Wed, May 7, 17:19
bytesofman edited the summary of this revision. (Show Details)
bytesofman edited the test plan for this revision. (Show Details)
Fabien requested changes to this revision.Thu, May 8, 10:13
Fabien added a subscriber: Fabien.

@bot preview-cashtab

cashtab/src/components/Common/Buttons.tsx
162

? why would you want a boolean to be nullable ?

cashtab/src/components/Receive/Receive.tsx
1

Macro whatyearisit:

This revision now requires changes to proceed.Thu, May 8, 10:13

Can we have the unit in the amount input field ? IMO it avoids confusion better than the icon only, and 10 XEC is very different from 10 FIRMA