You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: bulk fetch metadata & prices for events batch (#57)
# 🤖 Linear
Closes GIT-241
## Description
Currently, we are fetching price/metadata information when processing
each event. This is sub-optimal, since we are having the external
request delay for each event.
As a better solution, we're fetching all the token/metadata data for a
given batch of events prior to start processing that batch. This way, we
can query all this data in parallel and have it cached when required
during event processing.
> [!NOTE]
> This PR has the assumption that we will have really high rate limit
API keys for Metadata and Pricing providers to make the most of this
feature
## Checklist before requesting a review
- [x] I have conducted a self-review of my code.
- [x] I have conducted a QA.
- [ ] If it is a core feature, I have included comprehensive tests.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
## Release Notes
- **New Features**
- Added support for bulk token price retrieval across multiple
timestamps.
- Enhanced event processing with improved metadata and token price
fetching.
- Implemented round-robin gateway selection for IPFS metadata retrieval.
- Introduced `getTokenPrices` method across multiple pricing providers.
- Added a new constant for minimum granularity in pricing retrieval.
- **Improvements**
- Updated caching mechanism for token prices.
- Refined error handling in pricing and metadata providers.
- Introduced new constants and interfaces to support expanded
functionality.
- **Technical Enhancements**
- Expanded retry mechanism to return operation results.
- Added new methods to pricing and metadata providers.
- Improved event orchestration and processing workflows.
- Enhanced test coverage for new pricing methods.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
0 commit comments