A subgraph indexing the following events on YearnGovernance contract:
- Staked(address indexed user, uint amount)
- Withdrawn(address indexed user, uint amount)
- RewardPaid(address indexed user, uint reward)
- Install the dependencies:
npm install
- Generate the types:
npm run codegen
- Authenticate yourself:
graph auth https://api.thegraph.com/deploy/ <ACCESS_TOKEN>
- Deploy:
npm run deploy