-
Notifications
You must be signed in to change notification settings - Fork 987
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
add substreams config provider #3897
Conversation
e93862d
to
1e94c0d
Compare
LGTM, is anything missing here? |
See discussion here: https://forum.thegraph.com/t/substreams-into-subgraphs-a-simple-integration/3542 |
bcfda90
to
01b19c6
Compare
01b19c6
to
8590513
Compare
@@ -334,10 +319,12 @@ async fn main() { | |||
node_id.clone(), | |||
metrics_registry.clone(), | |||
firehose_networks_by_kind.get(&BlockchainKind::Ethereum), | |||
substreams_networks_by_kind.get(&BlockchainKind::Ethereum), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will start to be interesting because this force a substreams
right not be for a "known" network. substreams
brings the possibility to support an infinite number of chain as long as an substreams
endpoint exist.
Going full free form raises interesting question though. I think it would be a good subject for Wednesday weekly call.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For querying there are some aspects like block resolution that require the block cache to be populated. This is why we've gone this way. By being an endpoint type, we can require the chain to be ingested and thus we can rely on the ChainStore for block resolution and "close to head" status
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise we'd need a "substreams" ingestor if that makes sense
Adds substreams as a provider type rather than a protocol.