HomePhabricator

[Cashtab] Support custom eToken icons

Description

[Cashtab] Support custom eToken icons

Summary:
T1743

I've coded and deployed a simple back-end engine that will accept user submission of token icons. The icons are then manually reviewed and approved. Approval is by clicking on a button in a Telegram channel, so can be quite quick without too much extra work.

This diff implements user tools for creating and uploading a customized token icon. For now, only creating the icon on token creation is supported. In the future I will add a way for users to upload an icon for a previously created token.

While the diff seems like a complicated change, most of the code comes from previous production mint.bitcoin.com code, available from https://github.com/bitcoin-com/mint

Test Plan:
npm start

  1. Navigate to eTokens page and fill out the form to create a new eToken
  2. Upload your icon. Test the customization settings (zoom, rotate, square vs circle crop)
  3. Create the token. Note the notifications -- you should see one for icon submission success.
  4. Ping me on Telegram to verify icon is approved (@bytesofman)
  5. Verify you can see the icon displayed on the eTokens page

Reviewers: emack, #bitcoin_abc

Reviewed By: emack, #bitcoin_abc

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

Details

Provenance
Joey King <joseph.roy.king@gmail.com>Authored on Nov 22 2021, 18:08
bytesofmanPushed on Nov 25 2021, 22:23
Reviewer
Restricted Project
Differential Revision
D10514: [Cashtab] Support custom eToken icons
Parents
rABC8e41edc3f5dc: [Cashtab] Add support for Philippine Peso
Branches
Unknown
Tags
Unknown