alephium / alephium-frontend

A monorepo containing all things frontend on Alephium.
Other
13 stars 10 forks source link

[EPIC] Tag transactions with more intelligent labels #27

Open nop33 opened 1 year ago

nop33 commented 1 year ago

@VDAODAO reported:

When I minted a DRGN, i received it but it appears as “swapped”, not “minted” or “NFT transfer”.

The extension wallet does a better job at categorizing transactions. Let's check it out and see what we can improve on the mobile wallet side.

Subtasks:

VDAODAO commented 1 year ago
Capture d’écran 2023-10-09 à 15 36 06

For reference:

Alephium Extension wallet Phantom wallet Trust wallet

nop33 commented 1 year ago

I tried out the following NFT actions (in chronological order) to see how the txs are displayed in our apps:

  1. Create an NFT collection
  2. Mint an NFT
  3. Buy an NFT
  4. Sell an NFT

These are the results:

Extension Mobile Desktop
Image Image Image

Meanwhile, the explorer displays the txs like this:

Image

Based on @VDAODAO's screenshots above, I notice the following additional "tags":

nop33 commented 1 year ago

I noticed that if I uninstall the extension and install it again, the transactions have different tags. Looking at the code, it appears that the "tag" is stored in the local storage of the browser when the tx is sent, instead of being generated when parsing the tx:

nop33 commented 5 months ago

A "smart contract list" similar to the "token list" concept would halp us create more accurate labels for transactions.