edgeandnode / gateway

Graph Gateway
MIT License
8 stars 4 forks source link

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

Open chriswessels opened 1 week ago

chriswessels commented 1 week ago

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

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 commented 1 week ago

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.