forked from ghostchain/ghost-node
8 lines
281 B
Rust
8 lines
281 B
Rust
use sp_runtime::traits::AtLeast32BitUnsigned;
|
|
|
|
pub trait ExposureListener<Balance: AtLeast32BitUnsigned, EraIndex, AuthIndex> {
|
|
fn get_current_era() -> EraIndex;
|
|
fn get_total_exposure(era: EraIndex) -> Balance;
|
|
fn get_validator_exposure(index: AuthIndex) -> Balance;
|
|
}
|