Substreams will have a hardcoded map of 'network -> endpoint' to use if the environment variables are not used. It will point to all streamingfast's endpoints, or Pinax for the ones that we don't support but they do (ex: antelope)
This hardcoded map will come with a "TODO" comment saying that this is temporary until we have something "distributed" (like, the gateway advertising available endpoints or whatever)
If a substreams manifest does not specify the 'Network', the default is to consider it to be mainnet.
the -e flag always overrides this whole mechanism
The idea is also that the 'subservicesd' component, where we deploy, will use those values...
To support:
substreams run myfile.polygon.yaml
and:substreams run myfile.yaml
// where network ismainnet
myfile.polygon.yaml
:Align with: https://thegraph.com/docs/en/developing/supported-networks/
-e
value (remove the default value, issue a deprecation notice)SUBSTREAMS_ENDPOINTS_CONFIG_[network]
as defined innetwork
field of the Substreams manifest.