Code Monkey home page Code Monkey logo

yearn-vaults-v2-subgraph's Introduction

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

To run tests;

  1. Make sure your installed version of graph is newer than 0.22.0 using graph --version
  2. If you don't have Postgres installed, install it; https://github.com/LimeChain/matchstick#quick-start-
  3. Run yarn prepare:mainnet or yarn prepare:fantom to prepare subgraph.yaml.
  4. Run yarn test. Graph CLI should download and install a binary for the testing framework, Matchstick. Once the testing framework is set up, the tests will be run. If this does not work, you may need to compile Matchstick locally and run tests using $matchstick_build_dir/matchstick instead.

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:fantom: build the subgraph.yaml file, and deploy it on the Fantom network.
  • yarn deploy:mainnet: build the subgraph.yaml file, and deploy it on the mainnet Ethereum network.
  • yarn deploy:arbitrum: build the subgraph.yaml file, and deploy it on the Arbitrum network.

We don't support Ethereum testnets at the moment.

Do you want to contribute?

We currently have a multitude of needs across all of our yTeams. As the Yearn ecosystem and suite of products continue to grow, we look for new contributors to join our community as we rapidly scale.

If you are interested in working as a yearn contributor, complete this form, and a member of our operations team will reach out within 1-2 days with the next steps.

For additional information on the onboarding process, click here

Want to Help Us In The Subgraph?

Feel free to assign an issue from our current list and create a pull request. We will review it in the next 1-2 days to give you feedback about your changes.

If you want to help Yearn Finance but you need more information about this repository, schema and entities, you can read this onboarding doc.

Subgraphs

The official subgraph links are:


yearn-vaults-v2-subgraph's People

Contributors

salazarguille avatar dmolina79 avatar bsamuels453 avatar jstashh avatar chriswessels avatar rareweasel avatar 0xkofee avatar alexni245 avatar b0dhidharma avatar 0xbeedao avatar fiboape avatar rbval avatar 0xbok avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.