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

Improve Etherscan data fetching reliability #150

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

Conversation

savvar9991
Copy link

@savvar9991 savvar9991 commented Dec 3, 2024

Cache Implementation

  • Added fallback to cached data during API failures
  • Improved system reliability during outages

Impact

  • Improved system reliability
  • Better error diagnostics
  • Enhanced user experience during API issues
  • No breaking changes

Changes made:
1. Added etherscanAddress validation alongside apiKey check
2. Improved error handling in Promise.all with detailed error messages
3. Added response status checks for all API requests
4. Enhanced error handling in catch block with cache fallback
5. Fixed interface formatting (removed extra space in ICache)
6. Added detailed error reporting for failed API requests
7. Improved code formatting and readability
8. Added proper error message when API requests fail
9. Enhanced type safety for API responses

The changes make the code more robust by:
- Validating all required configuration parameters
- Providing more detailed error messages
- Implementing proper fallback to cached data
- Adding better error handling for API responses
- Improving overall code structure and readability
Copy link

vercel bot commented Dec 3, 2024

@savvar9991 is attempting to deploy a commit to the Eclipse Labs Team on Vercel.

A member of the Team first needs to authorize it.

add Etherscan API endpoint for bridge deposits tracking
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