To install run
yarn
Run the following commands:
yarn generate <NETWORK>
to generate the rootsubgraph.yaml
andabis/
for that network from thecontractsInfo.<NETWORK>.json
fileyarn codegen
to generate all the subgraph related files (build, generate folders)yarn build
to compile all the required files insrc/
according to thesubgraph.yaml
To test, try deploying to goerli
Request the access token and authenticate with the following:
graph auth --product hosted-service <ACCESS_TOKEN>
Then run one of the following commands
yarn deploy:goerli
yarn deploy:mumbai
yarn deploy:mainnet
yarn deploy:polygon
- Don't commit the root subgraph.yaml file, it's autogenerated