yearn-vaults-v2-subgraph
yearn-vaults-v2-subgraph copied to clipboard
Create an intro document for common queries and use cases
I’ve received a few questions recently from users who want to query the subgraph for a certain type of data, but aren’t sure how to do it because they aren’t familiar with graphql or our schema.
It might be nice to have a USAGE.md document that covers:
- How to open a graph protocol playground session to send test queries
- Some example queries that users can plug in to the graph playground app
- Make sure there’s a note about how graph protocol doesn’t have eip-55 support
Some potential queries:
- View the last 30 days worth of VaultDayData for a given vault
- View all deposits/withdrawal events for a given user
- View the past 10 harvests for a given vault
- View the profits a given user has earned on their deposit