Subgraph for the keeper-contracts v0.12.7
Install dependencies:
npm install -g ganache-cli truffle @graphprotocol/graph-cli
This assumes you already have Ganache running and have performed the above migration steps.
- Clone
https://github.com/decentraminds/op-subgraph
- Install dependencies
op-subgraph
cd op-subgraph yarn
- Copy network smart contracts either from the keeper-contracts package or from your local Barge
sh scripts/keeper-latest.sh pacific # or sh scripts/keeper-docker.sh # For barge
- In another terminal, start a local Graph Node that will connect to the Pacific Network:
docker-compose up
- Deploy the subgraph to your local Graph Node:
yarn create-local yarn build yarn deploy-local