Subgraph for Decentralized Grants
$ yarn
To install dev dependencies
$ yarn install -D
- Update any contract details in
config/*
and prepare thesubgraph.yaml
$ yarn prepare:[matic|matic-staging|rinkeby]
- Generate the types
$ yarn codegen && yarn build
- Authenticate with TheGraph if you have not already
$ yarn graph auth --product hosted-service [access token]
- Deploy the subgraph to public graph node on the appropriate network
If this is the first time that this subgraph has been deployed, you must create it on thegraph.com under the hosted service ensuring that it is within the DCGTC account
$ yarn deploy:[matic|matic-staging|rinkeby]
git clone https://github.com/graphprotocol/graph-node/
cd graph-node/docker
- set the correct
network
andrpc
endpoint in theevironment
section of./docker-compose.yml
./setup.sh
docker-compose up
- Update any contract details in
config/*
and prepare thesubgraph.yaml
$ yarn prepare:[matic|matic-staging|rinkeby]
- Generate the types
$ yarn codegen && yarn build
- Allocate the subgraph name in the Graph Node
$ yarn create-local
- Deploy the subgraph to local graph node
$ yarn deploy-local