HomePhabricator

[Cashtab] Support for creating NFT Collections

Description

[Cashtab] Support for creating NFT Collections

Summary:
Update the create token form to support creating NFT1 Parent tokens, which we call "NFT Collections" in Cashtab.

We take a sha256 hash of the user's raw file uploaded for the image and set this as the token document hash field.

We do not support minting NFTs yet, but display an Info notice on the Token page explaining this feature is coming soon.

Test Plan:
npm test

This diff is live at https://cashtab-local-dev.netlify.app/ if you want to test creating an NFT collection with an icon (token-server still blocks doing this from localhost)

To test the hash:

  • Pick a jpg or png
  • Get its sha256 hash from your local machine, e.g. sha256sum myjpg.jpg
  • Note this
  • Upload the jpg on the create token form with "NFT Collection" selected
  • Confirm the token document hash in the new input field matches what you got on your local machine

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Subscribers: emack

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

Details

Provenance
bytesofmanAuthored on Apr 19 2024, 18:44
bytesofmanPushed on Apr 20 2024, 12:17
Reviewer
Restricted Project
Differential Revision
D16032: [Cashtab] Support for creating NFT Collections
Parents
rABC6d4047b7314c: [Cashtab] Improve scrolling and header minification
Branches
Unknown
Tags
Unknown