Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Chainlink Price Substream Powered Subgraph

Install substreams and its dependencies here, compile these modules with:

# We assume you are at root of project
cargo build --target=wasm32-unknown-unknown --release

Run with:

substreams run -e mainnet.eth.streamingfast.io:443 substreams.yaml graph_out

This will ouput the entity changes for integration with The Graph. Please see here on how to deploy to The Graph: https://thegraph.com/docs/en/cookbook/substreams-powered-subgraphs/

Visual data flow

This is a flow that is executed for each block. The graph is produced with substreams graph ./substreams.yaml.

graph TD;
  store_confirmed_feeds[store: store_confirmed_feeds];
  sf.ethereum.type.v2.Block[source: sf.ethereum.type.v2.Block] --> store_confirmed_feeds;
  get_chainlink_answers[map: get_chainlink_answers];
  sf.ethereum.type.v2.Block[source: sf.ethereum.type.v2.Block] --> get_chainlink_answers;
  store_confirmed_feeds --> get_chainlink_answers;
  chainlink_price_store[store: chainlink_price_store];
  get_chainlink_answers --> chainlink_price_store;
  graph_out[map: graph_out];
  get_chainlink_answers --> graph_out;

Loading