Skip to content

Asset Card Component #46

@johnnuy

Description

@johnnuy

Construct an Asset Card Component that can be reused across transaction events (minting, burning), sending/receiving assets on the transaction details. The Asset card should be similar to the stakepool card, in that it uses a flex grid layout for responsiveness.

Each asset contains the following fields:

  • Name
  • Policy
  • Fingerprint (this is like the unique id for an asset)
  • Total Supply

Assets contain optional Metadata that describes the asset. Unfortunately the optional metadata is schemaless and can contain almost anything. However there are some key characteristics we need to verify.

Might look at doing some of this translation work on the serverside so the API returns standard values so we don't need this logic in the UI. For example adding a specific image attribute to the json response. Will do some analysis on this.

A couple options for using the card on the wallet view.

  1. Could add a drill down from the Asset Holdings table when you click on a row to bring up the details for the asset holding (including asset card)
  2. Modify the asset holdings from a table to a gallery of asset cards. (I prefer this option)

Sample wallet with assets: stake1uylw5ges065hhcexl7vyc8fgpeqpdja9mqlmpxp4fr6lmvsqn9m47

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions