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

Chore: update ens subgraph url #151

Merged
merged 3 commits into from
Jun 28, 2024
Merged

Conversation

brunomenezes
Copy link
Collaborator

@brunomenezes brunomenezes commented Jun 10, 2024

Summary

Due to the TheGraph sunsetting its hosted service, the current subgraph ENS graphql endpoint we use will have some global rate limiting applied (The ENS DAO will subsidize the API key for this old endpoint). The changes add a new environment variable to set a custom endpoint but leave the current one as a fallback for dev use (If you get a 429, go to subgraph and create your API keys).

Changes:

  • Added new env variables to set ens-client URI. It is only a server-side env-var, so there is no need to use the prefix NEXT_PUBLIC_*. It is used with nextJS ISC
  • Applied code changes to the ens-client to use the previous one (rate-limited) as a fallback in case the new env-var is not set.
  • I added a changelog entry for the next release.
  • Transparent change: Set new ENS endpoints with API key on Vercel for the production environment only.
  • Set API stats to use Chainstack when consulting the pos subgraph.

Copy link

vercel bot commented Jun 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 28, 2024 9:49am

@brunomenezes brunomenezes linked an issue Jun 10, 2024 that may be closed by this pull request
@coveralls
Copy link

coveralls commented Jun 10, 2024

Pull Request Test Coverage Report for Build 9443749735

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 77.511%

Totals Coverage Status
Change from base Build 8532997997: 0.0%
Covered Lines: 338
Relevant Lines: 401

💛 - Coveralls

@coveralls
Copy link

coveralls commented Jun 28, 2024

Pull Request Test Coverage Report for Build 9710757842

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 77.511%

Totals Coverage Status
Change from base Build 8532997997: 0.0%
Covered Lines: 338
Relevant Lines: 401

💛 - Coveralls

@brunomenezes
Copy link
Collaborator Author

I am adding another change to set the api/{network}/stats to use Chainstack instead of hosted services (unavailable).

I will clean up the Apollo client setups later.

cc: @tuler

@brunomenezes brunomenezes merged commit d789786 into main Jun 28, 2024
6 of 7 checks passed
@brunomenezes brunomenezes deleted the chore/150-update-ens-subgraph-url branch June 28, 2024 09:54
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.

Update ENS Subgraph URL
2 participants