0.1.0 • Published 2 years ago
sum-reward v0.1.0
SubQuery Example - Summary of Rewards and Slashes
This subquery indexes staking bonds, rewards and slashes of each finalized blocks.
This is an example of EventHandler, provides records of all the accounts that have participated in staking, and summarize their total rewards and slashes. In the end, calculate the total earnings.
Get Started
1. install dependencies
yarn
2. generate types
yarn codegen
3. build
yarn build
4. run locally
yarn start:docker
0.1.0
2 years ago