The Plasm rewards module provides functionality for handling whole rewards and era.
The Plasm staking module puts together the management and compensation payment logic of the ERA. The Plasm Rewards module calls the Dapps Staking and Validator. It also allocates rewards to each module according to the Plasm Token Ecosystem inflation model.
This is explains plasm inflation models. The staking has 2 kinds.
The active era information, it holds index and start.
Information regarding the active era (era in used in session).
A mapping from still-bonded eras to the first session index of that era.
The current era index.
The session index at which the era start for the last
This is the compensation paid for the dapps operator of the Plasm Network. This is stored on a per-era basis.
This is the compensation paid for the security of the Plasm Network. This is stored on a per-era basis.
True if the next session change will be a new era regardless of index.
Genesis config for the module, allow to build genesis storage.
Number of era to keep in history.
Error for the staking module.
Mode of era-forcing.
Events for this module.
Simple index type with which we can count sessions.