This is the official subgraph for the Vault V2 - Yearn Protocol.
The subgraph is being updated and fixed constantly.
To get started, you need to install the dependencies:
- Using Yarn:
yarn install
- Using NPM:
npm install
Once the smart contracts are deployed on a testnet or mainnet, the JSON files located at folder config
must be updated.
The final subgraph.yaml file is used to deploy on the network.
Each network has a JSON file in the ./config
folder. When a deploy process is executed (using a script defined in the package.json
), it creates the final subgraph.yaml, and deploy it to the The Graph node.
At this moment, the scripts available are:
- yarn deploy:rinkeby: build the subgraph.yaml file, and deploy it on the Rinkeby testnet.
- yarn deploy:kovan: build the subgraph.yaml file, and deploy it on the Kovan testnet.
- yarn deploy:mainnet: build the subgraph.yaml file, and deploy it on the mainnet network.
The subgraph is only deployed on the mainnet network.
The official subgraph link is this.