Substreams can include network in the substreams.yaml manifest registry, we should be able to pull this network field and dynamically update the Substreams Endpoint.
[ ] extract network value from Substreams package
[ ] define URL schema for Substreams endpoint
[ ] replace {network} mapping prior to connecting to Substreams endpoint
Substreams can include
network
in thesubstreams.yaml
manifest registry, we should be able to pull thisnetwork
field and dynamically update the Substreams Endpoint.network
value from Substreams package{network}
mapping prior to connecting to Substreams endpointReference
https://github.com/streamingfast/substreams-sink-sql/blob/6921aa5f6b2d023814174281053168a78cc0338e/docs/tutorial/substreams.yaml#L37C1-L38C1
Example
substreams.yaml = network:polygon