This repository is used to easily create Access Control subgraphs to use in Defender Private Networks.
- TheGraph account. Create one here.
- Copy the
.env.examplefile into a new.envand fill theACCESS_TOKENvariable with the one that's provided on TheGraph's dashboard. - Install dependencies by running
yarn. - Create subgraph via TheGraph's dashboard.
- Open the
config.jsonfile innetworks/network, and replaceCHAINandUSERNAME/SUBGRAPHwith the right values (USERNAME/SUBGRAPHmust match the subgraph you created in the previous step). - Run
yarn run-allto compile and deploy the subgraph to TheGraph.