- Install substream https://docs.substreams.dev/documentation/consume/installing-the-cli
- Create account in https://app.pinax.network/ and you have permision geting SUBSTREAMS_API_TOKEN="<SUBSTREAMS_API_TOKEN>"
- Install docker for up graph-node (only local)
- Run all instruction from
./subgraph/README.md
and./substreams/README.md
-
Open new terminal in
./graph-node
and create.env
file, check.env.example
-
Run command
export $(xargs < .env) bash ./substreams-config-gen.sh docker-compose -f docker-compose.yml up -d
-
Open
./subgraph
in other terminalyarn create-local yarn deploy-local
-
./subgrpah
-
Run command
graph publish
You see link
https://cli.thegraph.com/....
open this link input value in form and clickDeploy
-
If you want update
graph publish --subgraph-id <SUBGRAPH ID>