-
Notifications
You must be signed in to change notification settings - Fork 621
fetch gas sponsored chains from API instead of hardcoding #6256
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
fetch gas sponsored chains from API instead of hardcoding #6256
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6256 +/- ##
=======================================
Coverage 56.86% 56.86%
=======================================
Files 1166 1166
Lines 64523 64523
Branches 5226 5226
=======================================
Hits 36694 36694
Misses 27101 27101
Partials 728 728
*This pull request uses carry forward flags. Click here to find out more. |
size-limit report 📦
|

TL;DR
Implemented dynamic gas sponsorship detection for chains through a new API endpoint
What changed?
getGasSponsoredChainsfunction with 15-minute cacheHow to test?
API_SERVER_SECRETenvironment variableWhy make this change?
Moving gas sponsorship configuration to an API endpoint allows for dynamic updates without code changes and provides a single source of truth for sponsored chains across the platform. This reduces maintenance overhead and ensures consistency in gas sponsorship information.