conversion function to AccountId added
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
This commit is contained in:
parent
b692959369
commit
fbc58e350b
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "ghost-traits"
|
name = "ghost-traits"
|
||||||
version = "0.3.25"
|
version = "0.3.26"
|
||||||
license.workspace = true
|
license.workspace = true
|
||||||
authors.workspace = true
|
authors.workspace = true
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
use sp_runtime::traits::AtLeast32BitUnsigned;
|
use sp_runtime::traits::AtLeast32BitUnsigned;
|
||||||
|
|
||||||
pub trait ExposureListener<Balance: AtLeast32BitUnsigned, EraIndex, AuthIndex> {
|
pub trait ExposureListener<Balance: AtLeast32BitUnsigned, AccountId> {
|
||||||
fn get_current_era() -> EraIndex;
|
fn get_account_by_index(index: usize) -> Option<AccountId>;
|
||||||
fn get_total_exposure(era: EraIndex) -> Balance;
|
fn get_total_exposure() -> Balance;
|
||||||
fn get_validator_exposure(index: AuthIndex) -> Balance;
|
fn get_validator_exposure(index: &AccountId) -> Balance;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user