conversion function to AccountId added

Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
This commit is contained in:
Uncle Stinky 2025-11-27 19:03:13 +03:00
parent b692959369
commit fbc58e350b
Signed by: st1nky
GPG Key ID: 016064BD97603B40
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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;
} }