Skip to content

token-terminal/yearn-vaults-v2-subgraph

 
 

Repository files navigation

Yearn Vaults V2 Subgraph

This is the official subgraph for the Vault V2 - Yearn Protocol.

The subgraph is being updated and fixed constantly.

Get Started

To get started, you need to install the dependencies:

  • Using Yarn: yarn install
  • Using NPM: npm install

Network Configuration

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.

Configuration

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.

Scripts

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.

Subgraphs

The official subgraph link is this.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.9%
  • Other 0.1%