pinax-network / substreams-sink

Substreams Sink library
MIT License
4 stars 1 forks source link

Network mapping pulled from Substreams `network` #20

Open DenisCarriere opened 11 months ago

DenisCarriere commented 11 months ago

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.

Reference

https://github.com/streamingfast/substreams-sink-sql/blob/6921aa5f6b2d023814174281053168a78cc0338e/docs/tutorial/substreams.yaml#L37C1-L38C1

Example

https://{network}.substreams.pinax.network:9000

substreams.yaml = network:polygon

https://polygon.substreams.pinax.network:9000
image