Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement AssetSelector component #2811

Open
FrederikBolding opened this issue Oct 8, 2024 · 2 comments
Open

Implement AssetSelector component #2811

FrederikBolding opened this issue Oct 8, 2024 · 2 comments

Comments

@FrederikBolding
Copy link
Member

FrederikBolding commented Oct 8, 2024

We should implement a way to let the Snap select from the assets in MetaMask without exposing all of the token details to the Snap.

State
The selected asset should be reflected in state with an object containing:

  • asset: CAIP19Identifier
  • name: string
  • ticker: string

Props

  • addresses?: CAIP10Address[] (If passed, should filter to only show tokens owned by these addresses)
  • chainIds?: CAIP2ChainId[] (Alternative filtering option to passing addresses)
  • selectedAsset?: CAIP19Address

Figma link: TBD

@FrederikBolding FrederikBolding changed the title Implement TokenSelector component Implement AssetSelector component Oct 8, 2024
@danroc
Copy link
Contributor

danroc commented Oct 9, 2024

Maybe it should be assetType for consistency with the naming used in CAIP-19 for tokens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants