streamingfast / substreams

Powerful Blockchain streaming data engine, based on StreamingFast Firehose technology.
Apache License 2.0
164 stars 45 forks source link

Network config override for Substreams manifests #309

Closed jubeless closed 1 year ago

jubeless commented 1 year ago
SUBSTREAMS_ENDPOINTS_CONFIG_POLYGON=polygonl.friend.com:443
SUBSTREAMS_ENDPOINTS_CONFIG_MAINNET=ethmainn.friend.com:443

To support: substreams run myfile.polygon.yaml and: substreams run myfile.yaml // where network is mainnet myfile.polygon.yaml:

network: polygon
#network: mumbai
#network: goerli
#network: goerli
#network: eip1544

Align with: https://thegraph.com/docs/en/developing/supported-networks/

  1. SUBSTREAMS_ENDPOINTSCONFIG[network] and defined in the manifest. (this is what needs implementing)
  2. SUBSTREAMS_ENDPOINT viper-based config
  3. -e value
  4. default -e value (remove the default value, issue a deprecation notice)
    • Error: missing endpoint, specify -e or SUBSTREAMS_ENDPOINTS_CONFIG_[network] as defined in network field of the Substreams manifest.
sduchesneau commented 1 year ago

The idea is also that the 'subservicesd' component, where we deploy, will use those values...