Trait substrate_subxt::staking::LedgerStoreExt[][src]

pub trait LedgerStoreExt<T: Runtime + Staking> {
    fn ledger<'a>(
        &'a self,
        controller: T::AccountId,
        hash: Option<T::Hash>
    ) -> Pin<Box<dyn Future<Output = Result<Option<StakingLedger<T::AccountId, T::Balance>>, Error>> + Send + 'a>>;
fn ledger_iter<'a>(
        &'a self,
        hash: Option<T::Hash>
    ) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, LedgerStore<T>>, Error>> + Send + 'a>>; }

Store extension trait.

Required methods

fn ledger<'a>(
    &'a self,
    controller: T::AccountId,
    hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<Option<StakingLedger<T::AccountId, T::Balance>>, Error>> + Send + 'a>>
[src]

Retrieve the store element.

fn ledger_iter<'a>(
    &'a self,
    hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, LedgerStore<T>>, Error>> + Send + 'a>>
[src]

Iterate over the store element.

Loading content...

Implementors

impl<T: Runtime + Staking> LedgerStoreExt<T> for Client<T>[src]

Loading content...