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: MMPD-1522 add fetch trending token data #5214

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

Bigshmow
Copy link
Contributor

@Bigshmow Bigshmow commented Jan 30, 2025

Explanation

We are adding a new TokenDiscoveryApiService to handle discovery related requests.
In this PR we are introducing the first method getTrendingTokens which requests trending tokens by chain from the Portfolio API, recently introduced in this PR.

References

For reference this is the jira ticket: MMPD-1522
Related to PR-76 in Portfolio-API

Changelog

@metamask/token-search-discovery-controller

  • Added:
  • Introduce TokenDiscoveryApiService to keep discovery and search responsibilities separate
    • This service is responsible for fetching discover related data
    • Add getTrendingTokens method to fetch trending tokens by chain
    • Add TokenTrendingResponseItem type for trending token responses
  • Export TokenSearchResponseItem type from the package index

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

@Bigshmow Bigshmow marked this pull request as ready for review January 30, 2025 16:51
@Bigshmow Bigshmow requested review from a team as code owners January 30, 2025 16:51
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.

1 participant