This repository is used to easily create Access Control subgraphs to use in Defender Private Networks.
- TheGraph account. Create one here.
- Copy the
.env.example
file into a new.env
and fill theACCESS_TOKEN
variable with the one that's provided on TheGraph's dashboard. - Install dependencies by running
yarn
. - Create subgraph via TheGraph's dashboard.
- Open the
config.json
file innetworks/network
, and replaceCHAIN
andUSERNAME/SUBGRAPH
with the right values (USERNAME/SUBGRAPH
must match the subgraph you created in the previous step). - Run
yarn run-all
to compile and deploy the subgraph to TheGraph.