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

feat: Add AssetSelector #3166

Merged
merged 21 commits into from
Mar 18, 2025
Merged

feat: Add AssetSelector #3166

merged 21 commits into from
Mar 18, 2025

Conversation

GuillaumeRx
Copy link
Contributor

This adds a new component AssetSelector .

Fixes: #3163

@GuillaumeRx GuillaumeRx changed the title feat: AssetSelector feat: Add AssetSelector Feb 26, 2025
Copy link

codecov bot commented Feb 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.98%. Comparing base (1f5ae17) to head (481b734).
Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3166      +/-   ##
==========================================
+ Coverage   94.93%   94.98%   +0.04%     
==========================================
  Files         508      510       +2     
  Lines       11219    11303      +84     
  Branches     1730     1750      +20     
==========================================
+ Hits        10651    10736      +85     
+ Misses        568      567       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

GuillaumeRx added a commit to MetaMask/core that referenced this pull request Mar 5, 2025
## Explanation

This adds an action to the `MultichainAssetsController` called
`getAssetMetada` which allows to get a specific asset Metadata.

This allows us to get a specific metadata without having to pull the
entire controller state.

## References

* Related to MetaMask/snaps#3166

## Changelog

<!--
If you're making any consumer-facing changes, list those changes here as
if you were updating a changelog, using the template below as a guide.

(CATEGORY is one of BREAKING, ADDED, CHANGED, DEPRECATED, REMOVED, or
FIXED. For security-related issues, follow the Security Advisory
process.)

Please take care to name the exact pieces of the API you've added or
changed (e.g. types, interfaces, functions, or methods).

If there are any breaking changes, make sure to offer a solution for
consumers to follow once they upgrade to the changes.

Finally, if you're only making changes to development scripts or tests,
you may replace the template below with "None".
-->

### `@metamask/assets-controller`

- **ADDED**: Add `getAssetMetadata` action to
`MultichainAssetsController`.

## Checklist

- [ ] I've updated the test suite for new or updated code as appropriate
- [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [ ] I've highlighted breaking changes using the "BREAKING" category
above as appropriate
- [ ] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes
@GuillaumeRx GuillaumeRx marked this pull request as ready for review March 12, 2025 15:14
@GuillaumeRx GuillaumeRx requested a review from a team as a code owner March 12, 2025 15:14
@GuillaumeRx GuillaumeRx requested a review from hmalik88 March 14, 2025 13:37
hmalik88
hmalik88 previously approved these changes Mar 14, 2025
Copy link
Contributor

@hmalik88 hmalik88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Is there an extension PR up yet?

@GuillaumeRx
Copy link
Contributor Author

LGTM. Is there an extension PR up yet?

Working on it right now 🫡

Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
@GuillaumeRx GuillaumeRx added this pull request to the merge queue Mar 18, 2025
Merged via the queue into main with commit 1382f6b Mar 18, 2025
173 checks passed
@GuillaumeRx GuillaumeRx deleted the gr/asset-selector branch March 18, 2025 15:10
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

Successfully merging this pull request may close these issues.

Create AssetSelector component in snaps-sdk
3 participants