Better feedback to user
Opened this issue · 1 comments
rjchow commented
Informational UX
- show ledger nano connection status
- show user's account balance
- prompt user to confirm transaction in his wallet (both metamask and ledger)
- cert store deployment status feedback
- batch issuance transaction feedback
- invalid input feedback (e.g not a hash or missing 0x)
Error flows
- we can detect if contract data is enabled using https://github.com/LedgerHQ/ledgerjs/tree/master/packages/hw-app-eth#getappconfiguration
- check if user has any ether
- check if there's a document store at specified address
- can check if the user has deployed any document stores previously using etherscan api, http://api.etherscan.io/api?module=account&action=txlist&address=0x007d40224f6562461633ccfbaffd359ebb2fc9ba&startblock=0&endblock=99999999&sort=asc&apikey=YourApiKeyToken