Struct entropy_testing_utils::chain_api::entropy::staking::storage::StorageApi
source · pub struct StorageApi;Implementations§
source§impl StorageApi
impl StorageApi
pub fn validator_count(&self) -> Address<(), u32, Yes, Yes, ()>
pub fn minimum_validator_count(&self) -> Address<(), u32, Yes, Yes, ()>
pub fn invulnerables(&self) -> Address<(), Vec<AccountId32>, Yes, Yes, ()>
pub fn bonded_iter(&self) -> Address<(), AccountId32, (), (), Yes>
pub fn bonded( &self, _0: impl Borrow<AccountId32>, ) -> Address<StaticStorageKey<AccountId32>, AccountId32, Yes, (), ()>
pub fn min_nominator_bond(&self) -> Address<(), u128, Yes, Yes, ()>
pub fn min_validator_bond(&self) -> Address<(), u128, Yes, Yes, ()>
pub fn minimum_active_stake(&self) -> Address<(), u128, Yes, Yes, ()>
pub fn min_commission(&self) -> Address<(), Perbill, Yes, Yes, ()>
pub fn ledger_iter(&self) -> Address<(), StakingLedger, (), (), Yes>
pub fn ledger( &self, _0: impl Borrow<AccountId32>, ) -> Address<StaticStorageKey<AccountId32>, StakingLedger, Yes, (), ()>
pub fn payee_iter( &self, ) -> Address<(), RewardDestination<AccountId32>, (), (), Yes>
pub fn payee( &self, _0: impl Borrow<AccountId32>, ) -> Address<StaticStorageKey<AccountId32>, RewardDestination<AccountId32>, Yes, (), ()>
pub fn validators_iter(&self) -> Address<(), ValidatorPrefs, (), Yes, Yes>
pub fn validators( &self, _0: impl Borrow<AccountId32>, ) -> Address<StaticStorageKey<AccountId32>, ValidatorPrefs, Yes, Yes, ()>
pub fn counter_for_validators(&self) -> Address<(), u32, Yes, Yes, ()>
pub fn max_validators_count(&self) -> Address<(), u32, Yes, (), ()>
pub fn nominators_iter(&self) -> Address<(), Nominations, (), (), Yes>
pub fn nominators( &self, _0: impl Borrow<AccountId32>, ) -> Address<StaticStorageKey<AccountId32>, Nominations, Yes, (), ()>
pub fn counter_for_nominators(&self) -> Address<(), u32, Yes, Yes, ()>
pub fn max_nominators_count(&self) -> Address<(), u32, Yes, (), ()>
pub fn current_era(&self) -> Address<(), u32, Yes, (), ()>
pub fn active_era(&self) -> Address<(), ActiveEraInfo, Yes, (), ()>
pub fn eras_start_session_index_iter(&self) -> Address<(), u32, (), (), Yes>
pub fn eras_start_session_index( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, u32, Yes, (), ()>
pub fn eras_stakers_iter( &self, ) -> Address<(), Exposure<AccountId32, u128>, (), Yes, Yes>
pub fn eras_stakers_iter1( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, Exposure<AccountId32, u128>, (), Yes, Yes>
pub fn eras_stakers( &self, _0: impl Borrow<u32>, _1: impl Borrow<AccountId32>, ) -> Address<(StaticStorageKey<u32>, StaticStorageKey<AccountId32>), Exposure<AccountId32, u128>, Yes, Yes, ()>
pub fn eras_stakers_overview_iter( &self, ) -> Address<(), PagedExposureMetadata<u128>, (), (), Yes>
pub fn eras_stakers_overview_iter1( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, PagedExposureMetadata<u128>, (), (), Yes>
pub fn eras_stakers_overview( &self, _0: impl Borrow<u32>, _1: impl Borrow<AccountId32>, ) -> Address<(StaticStorageKey<u32>, StaticStorageKey<AccountId32>), PagedExposureMetadata<u128>, Yes, (), ()>
pub fn eras_stakers_clipped_iter( &self, ) -> Address<(), Exposure<AccountId32, u128>, (), Yes, Yes>
pub fn eras_stakers_clipped_iter1( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, Exposure<AccountId32, u128>, (), Yes, Yes>
pub fn eras_stakers_clipped( &self, _0: impl Borrow<u32>, _1: impl Borrow<AccountId32>, ) -> Address<(StaticStorageKey<u32>, StaticStorageKey<AccountId32>), Exposure<AccountId32, u128>, Yes, Yes, ()>
pub fn eras_stakers_paged_iter( &self, ) -> Address<(), ExposurePage<AccountId32, u128>, (), (), Yes>
pub fn eras_stakers_paged_iter1( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, ExposurePage<AccountId32, u128>, (), (), Yes>
pub fn eras_stakers_paged_iter2( &self, _0: impl Borrow<u32>, _1: impl Borrow<AccountId32>, ) -> Address<(StaticStorageKey<u32>, StaticStorageKey<AccountId32>), ExposurePage<AccountId32, u128>, (), (), Yes>
pub fn eras_stakers_paged( &self, _0: impl Borrow<u32>, _1: impl Borrow<AccountId32>, _2: impl Borrow<u32>, ) -> Address<(StaticStorageKey<u32>, StaticStorageKey<AccountId32>, StaticStorageKey<u32>), ExposurePage<AccountId32, u128>, Yes, (), ()>
pub fn claimed_rewards_iter(&self) -> Address<(), Vec<u32>, (), Yes, Yes>
pub fn claimed_rewards_iter1( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, Vec<u32>, (), Yes, Yes>
pub fn claimed_rewards( &self, _0: impl Borrow<u32>, _1: impl Borrow<AccountId32>, ) -> Address<(StaticStorageKey<u32>, StaticStorageKey<AccountId32>), Vec<u32>, Yes, Yes, ()>
pub fn eras_validator_prefs_iter( &self, ) -> Address<(), ValidatorPrefs, (), Yes, Yes>
pub fn eras_validator_prefs_iter1( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, ValidatorPrefs, (), Yes, Yes>
pub fn eras_validator_prefs( &self, _0: impl Borrow<u32>, _1: impl Borrow<AccountId32>, ) -> Address<(StaticStorageKey<u32>, StaticStorageKey<AccountId32>), ValidatorPrefs, Yes, Yes, ()>
pub fn eras_validator_reward_iter(&self) -> Address<(), u128, (), (), Yes>
pub fn eras_validator_reward( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, u128, Yes, (), ()>
pub fn eras_reward_points_iter( &self, ) -> Address<(), EraRewardPoints<AccountId32>, (), Yes, Yes>
pub fn eras_reward_points( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, EraRewardPoints<AccountId32>, Yes, Yes, ()>
pub fn eras_total_stake_iter(&self) -> Address<(), u128, (), Yes, Yes>
pub fn eras_total_stake( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, u128, Yes, Yes, ()>
pub fn force_era(&self) -> Address<(), Forcing, Yes, Yes, ()>
pub fn slash_reward_fraction(&self) -> Address<(), Perbill, Yes, Yes, ()>
pub fn canceled_slash_payout(&self) -> Address<(), u128, Yes, Yes, ()>
pub fn unapplied_slashes_iter( &self, ) -> Address<(), Vec<UnappliedSlash<AccountId32, u128>>, (), Yes, Yes>
pub fn unapplied_slashes( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, Vec<UnappliedSlash<AccountId32, u128>>, Yes, Yes, ()>
pub fn bonded_eras(&self) -> Address<(), Vec<(u32, u32)>, Yes, Yes, ()>
pub fn validator_slash_in_era_iter( &self, ) -> Address<(), (Perbill, u128), (), (), Yes>
pub fn validator_slash_in_era_iter1( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, (Perbill, u128), (), (), Yes>
pub fn validator_slash_in_era( &self, _0: impl Borrow<u32>, _1: impl Borrow<AccountId32>, ) -> Address<(StaticStorageKey<u32>, StaticStorageKey<AccountId32>), (Perbill, u128), Yes, (), ()>
pub fn nominator_slash_in_era_iter(&self) -> Address<(), u128, (), (), Yes>
pub fn nominator_slash_in_era_iter1( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, u128, (), (), Yes>
pub fn nominator_slash_in_era( &self, _0: impl Borrow<u32>, _1: impl Borrow<AccountId32>, ) -> Address<(StaticStorageKey<u32>, StaticStorageKey<AccountId32>), u128, Yes, (), ()>
pub fn slashing_spans_iter(&self) -> Address<(), SlashingSpans, (), (), Yes>
pub fn slashing_spans( &self, _0: impl Borrow<AccountId32>, ) -> Address<StaticStorageKey<AccountId32>, SlashingSpans, Yes, (), ()>
pub fn span_slash_iter(&self) -> Address<(), SpanRecord<u128>, (), Yes, Yes>
pub fn span_slash_iter1( &self, _0: impl Borrow<AccountId32>, ) -> Address<StaticStorageKey<AccountId32>, SpanRecord<u128>, (), Yes, Yes>
pub fn span_slash( &self, _0: impl Borrow<AccountId32>, _1: impl Borrow<u32>, ) -> Address<(StaticStorageKey<AccountId32>, StaticStorageKey<u32>), SpanRecord<u128>, Yes, Yes, ()>
pub fn current_planned_session(&self) -> Address<(), u32, Yes, Yes, ()>
pub fn offending_validators( &self, ) -> Address<(), Vec<(u32, bool)>, Yes, Yes, ()>
pub fn chill_threshold(&self) -> Address<(), Percent, Yes, (), ()>
Auto Trait Implementations§
impl Freeze for StorageApi
impl RefUnwindSafe for StorageApi
impl Send for StorageApi
impl Sync for StorageApi
impl Unpin for StorageApi
impl UnwindSafe for StorageApi
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
source§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T. Read moresource§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T. Read moresource§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from.source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from.source§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T.source§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T.