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

Change the trusted indexers interface to expect a subgraph endpoint instead of an indexer-service endpoint #958

Open
chriswessels opened this issue Oct 14, 2024 · 1 comment

Comments

@chriswessels
Copy link

Currently the trusted indexers endpoint expects indexer-service endpoints. Instead, trusted indexers should expect a list of network subgraph endpoints, which could be:

  • gateway endpoints for access via decentralized network
  • internal graph-node query node endpoints

This also has the benefit of enabling the operator to make use of the Subgraph ID in the endpoint URL, since this can be resolved by the Gateway, unlike indexer-service, which requires a hard coded Deployment ID.

@Theodus
Copy link
Member

Theodus commented Oct 14, 2024

I agree that this would be a nice feature. The only major challenge is that the indexer-service API is different than the gateway & graph-node. So you won't be able to use the IndexerClient the same way that we currently do in src/network/subgraph_client.rs.

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

No branches or pull requests

2 participants