-
Notifications
You must be signed in to change notification settings - Fork 93
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: Make subgraph URL's configurable #2105
Labels
Comments
amazing |
narcis96
added a commit
that referenced
this issue
Dec 11, 2023
# Description <!--- Describe your changes to provide context for reviewers, including why it is needed --> This PR aims to fix [2105](#2105) # Changes The subgraph base url is read from the environment variables. ## How to test All unit tests still pass Co-authored-by: narcis <[email protected]>
The issue was re-opened, because we actually need to make the full URL (not just the base) configurable for each liquidity type. |
MartinquaXD
added a commit
that referenced
this issue
Mar 22, 2024
# Description This PR fixes #2105 # Changes Subgraph constrictor now uses full urls ## How to test All unit tests still pass ## Related Issues Fixes #2105 --------- Co-authored-by: Martin Beckmann <[email protected]> Co-authored-by: Felix Leupold <[email protected]>
mfw78
pushed a commit
that referenced
this issue
Mar 22, 2024
# Description This PR fixes #2105 # Changes Subgraph constrictor now uses full urls ## How to test All unit tests still pass ## Related Issues Fixes #2105 --------- Co-authored-by: Martin Beckmann <[email protected]> Co-authored-by: Felix Leupold <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
We use two subgraphs in our backend, Uniswap v3 and Balancer v2. The Base URL for these subgraphs has been made configurable in #2126, however it turns out that in order to use third party hosted solutions, we not only need the base URL but instead the entire URL configurable.
For example the Alchemy URL is in the format
https://subgraph.satsuma-prod.com/API_KEY/ACCOUNT/balancer-v2-subgraph/version/v0.0.1-new-version/api
.This requires a code change so that the URL's can be configured via env variables/infra config.
Suggested solution
Make entire subgraph URL's configurable similar to what we have for
ethRpc
orethplorerApiUrl
Additional context
As the hosted service is being shut down, the hosted subgraphs that we use currently have performance issues. We are now trying to host the subgraphs on either the graph explorer or Alchemy.
This should help fix #1759, #1020
Acceptance criteria
The text was updated successfully, but these errors were encountered: