Trait astar_primitives::dapp_staking::Observer
source · pub trait Observer {
// Provided method
fn block_before_new_era(_next_era: EraNumber) -> Weight { ... }
}
Expand description
Trait for observers (listeners) of various events related to dApp staking protocol.
Provided Methods§
sourcefn block_before_new_era(_next_era: EraNumber) -> Weight
fn block_before_new_era(_next_era: EraNumber) -> Weight
Called in the block right before the next era starts.
Returns the weight consumed by the call.
§Arguments
next_era
- Era number of the next era.
Object Safety§
This trait is not object safe.