sum-reward

0.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i sum-reward

Weekly Downloads

1

Version

0.1.0

License

Apache-2.0

Unpacked Size

3.69 kB

Total Files

5

Last publish

Collaborators

  • jay_ji