pub struct StorageApi;

Implementations§

source§

impl StorageApi

source

pub fn validator_count(&self) -> Address<(), u32, Yes, Yes, ()>

source

pub fn minimum_validator_count(&self) -> Address<(), u32, Yes, Yes, ()>

source

pub fn invulnerables(&self) -> Address<(), Vec<AccountId32>, Yes, Yes, ()>

source

pub fn bonded_iter(&self) -> Address<(), AccountId32, (), (), Yes>

source

pub fn bonded( &self, _0: impl Borrow<AccountId32>, ) -> Address<StaticStorageKey<AccountId32>, AccountId32, Yes, (), ()>

source

pub fn min_nominator_bond(&self) -> Address<(), u128, Yes, Yes, ()>

source

pub fn min_validator_bond(&self) -> Address<(), u128, Yes, Yes, ()>

source

pub fn minimum_active_stake(&self) -> Address<(), u128, Yes, Yes, ()>

source

pub fn min_commission(&self) -> Address<(), Perbill, Yes, Yes, ()>

source

pub fn ledger_iter(&self) -> Address<(), StakingLedger, (), (), Yes>

source

pub fn ledger( &self, _0: impl Borrow<AccountId32>, ) -> Address<StaticStorageKey<AccountId32>, StakingLedger, Yes, (), ()>

source

pub fn payee_iter( &self, ) -> Address<(), RewardDestination<AccountId32>, (), (), Yes>

source

pub fn payee( &self, _0: impl Borrow<AccountId32>, ) -> Address<StaticStorageKey<AccountId32>, RewardDestination<AccountId32>, Yes, (), ()>

source

pub fn validators_iter(&self) -> Address<(), ValidatorPrefs, (), Yes, Yes>

source

pub fn validators( &self, _0: impl Borrow<AccountId32>, ) -> Address<StaticStorageKey<AccountId32>, ValidatorPrefs, Yes, Yes, ()>

source

pub fn counter_for_validators(&self) -> Address<(), u32, Yes, Yes, ()>

source

pub fn max_validators_count(&self) -> Address<(), u32, Yes, (), ()>

source

pub fn nominators_iter(&self) -> Address<(), Nominations, (), (), Yes>

source

pub fn nominators( &self, _0: impl Borrow<AccountId32>, ) -> Address<StaticStorageKey<AccountId32>, Nominations, Yes, (), ()>

source

pub fn counter_for_nominators(&self) -> Address<(), u32, Yes, Yes, ()>

source

pub fn max_nominators_count(&self) -> Address<(), u32, Yes, (), ()>

source

pub fn current_era(&self) -> Address<(), u32, Yes, (), ()>

source

pub fn active_era(&self) -> Address<(), ActiveEraInfo, Yes, (), ()>

source

pub fn eras_start_session_index_iter(&self) -> Address<(), u32, (), (), Yes>

source

pub fn eras_start_session_index( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, u32, Yes, (), ()>

source

pub fn eras_stakers_iter( &self, ) -> Address<(), Exposure<AccountId32, u128>, (), Yes, Yes>

source

pub fn eras_stakers_iter1( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, Exposure<AccountId32, u128>, (), Yes, Yes>

source

pub fn eras_stakers( &self, _0: impl Borrow<u32>, _1: impl Borrow<AccountId32>, ) -> Address<(StaticStorageKey<u32>, StaticStorageKey<AccountId32>), Exposure<AccountId32, u128>, Yes, Yes, ()>

source

pub fn eras_stakers_overview_iter( &self, ) -> Address<(), PagedExposureMetadata<u128>, (), (), Yes>

source

pub fn eras_stakers_overview_iter1( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, PagedExposureMetadata<u128>, (), (), Yes>

source

pub fn eras_stakers_overview( &self, _0: impl Borrow<u32>, _1: impl Borrow<AccountId32>, ) -> Address<(StaticStorageKey<u32>, StaticStorageKey<AccountId32>), PagedExposureMetadata<u128>, Yes, (), ()>

source

pub fn eras_stakers_clipped_iter( &self, ) -> Address<(), Exposure<AccountId32, u128>, (), Yes, Yes>

source

pub fn eras_stakers_clipped_iter1( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, Exposure<AccountId32, u128>, (), Yes, Yes>

source

pub fn eras_stakers_clipped( &self, _0: impl Borrow<u32>, _1: impl Borrow<AccountId32>, ) -> Address<(StaticStorageKey<u32>, StaticStorageKey<AccountId32>), Exposure<AccountId32, u128>, Yes, Yes, ()>

source

pub fn eras_stakers_paged_iter( &self, ) -> Address<(), ExposurePage<AccountId32, u128>, (), (), Yes>

source

pub fn eras_stakers_paged_iter1( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, ExposurePage<AccountId32, u128>, (), (), Yes>

source

pub fn eras_stakers_paged_iter2( &self, _0: impl Borrow<u32>, _1: impl Borrow<AccountId32>, ) -> Address<(StaticStorageKey<u32>, StaticStorageKey<AccountId32>), ExposurePage<AccountId32, u128>, (), (), Yes>

source

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, (), ()>

source

pub fn claimed_rewards_iter(&self) -> Address<(), Vec<u32>, (), Yes, Yes>

source

pub fn claimed_rewards_iter1( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, Vec<u32>, (), Yes, Yes>

source

pub fn claimed_rewards( &self, _0: impl Borrow<u32>, _1: impl Borrow<AccountId32>, ) -> Address<(StaticStorageKey<u32>, StaticStorageKey<AccountId32>), Vec<u32>, Yes, Yes, ()>

source

pub fn eras_validator_prefs_iter( &self, ) -> Address<(), ValidatorPrefs, (), Yes, Yes>

source

pub fn eras_validator_prefs_iter1( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, ValidatorPrefs, (), Yes, Yes>

source

pub fn eras_validator_prefs( &self, _0: impl Borrow<u32>, _1: impl Borrow<AccountId32>, ) -> Address<(StaticStorageKey<u32>, StaticStorageKey<AccountId32>), ValidatorPrefs, Yes, Yes, ()>

source

pub fn eras_validator_reward_iter(&self) -> Address<(), u128, (), (), Yes>

source

pub fn eras_validator_reward( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, u128, Yes, (), ()>

source

pub fn eras_reward_points_iter( &self, ) -> Address<(), EraRewardPoints<AccountId32>, (), Yes, Yes>

source

pub fn eras_reward_points( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, EraRewardPoints<AccountId32>, Yes, Yes, ()>

source

pub fn eras_total_stake_iter(&self) -> Address<(), u128, (), Yes, Yes>

source

pub fn eras_total_stake( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, u128, Yes, Yes, ()>

source

pub fn force_era(&self) -> Address<(), Forcing, Yes, Yes, ()>

source

pub fn slash_reward_fraction(&self) -> Address<(), Perbill, Yes, Yes, ()>

source

pub fn canceled_slash_payout(&self) -> Address<(), u128, Yes, Yes, ()>

source

pub fn unapplied_slashes_iter( &self, ) -> Address<(), Vec<UnappliedSlash<AccountId32, u128>>, (), Yes, Yes>

source

pub fn unapplied_slashes( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, Vec<UnappliedSlash<AccountId32, u128>>, Yes, Yes, ()>

source

pub fn bonded_eras(&self) -> Address<(), Vec<(u32, u32)>, Yes, Yes, ()>

source

pub fn validator_slash_in_era_iter( &self, ) -> Address<(), (Perbill, u128), (), (), Yes>

source

pub fn validator_slash_in_era_iter1( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, (Perbill, u128), (), (), Yes>

source

pub fn validator_slash_in_era( &self, _0: impl Borrow<u32>, _1: impl Borrow<AccountId32>, ) -> Address<(StaticStorageKey<u32>, StaticStorageKey<AccountId32>), (Perbill, u128), Yes, (), ()>

source

pub fn nominator_slash_in_era_iter(&self) -> Address<(), u128, (), (), Yes>

source

pub fn nominator_slash_in_era_iter1( &self, _0: impl Borrow<u32>, ) -> Address<StaticStorageKey<u32>, u128, (), (), Yes>

source

pub fn nominator_slash_in_era( &self, _0: impl Borrow<u32>, _1: impl Borrow<AccountId32>, ) -> Address<(StaticStorageKey<u32>, StaticStorageKey<AccountId32>), u128, Yes, (), ()>

source

pub fn slashing_spans_iter(&self) -> Address<(), SlashingSpans, (), (), Yes>

source

pub fn slashing_spans( &self, _0: impl Borrow<AccountId32>, ) -> Address<StaticStorageKey<AccountId32>, SlashingSpans, Yes, (), ()>

source

pub fn span_slash_iter(&self) -> Address<(), SpanRecord<u128>, (), Yes, Yes>

source

pub fn span_slash_iter1( &self, _0: impl Borrow<AccountId32>, ) -> Address<StaticStorageKey<AccountId32>, SpanRecord<u128>, (), Yes, Yes>

source

pub fn span_slash( &self, _0: impl Borrow<AccountId32>, _1: impl Borrow<u32>, ) -> Address<(StaticStorageKey<AccountId32>, StaticStorageKey<u32>), SpanRecord<u128>, Yes, Yes, ()>

source

pub fn current_planned_session(&self) -> Address<(), u32, Yes, Yes, ()>

source

pub fn offending_validators( &self, ) -> Address<(), Vec<(u32, bool)>, Yes, Yes, ()>

source

pub fn chill_threshold(&self) -> Address<(), Percent, Yes, (), ()>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CheckedConversion for T

source§

fn checked_from<T>(t: T) -> Option<Self>
where Self: TryFrom<T>,

Convert from a value of T into an equivalent instance of Option<Self>. Read more
source§

fn checked_into<T>(self) -> Option<T>
where Self: TryInto<T>,

Consume self to return Some equivalent value of Option<T>. Read more
source§

impl<T> CheckedConversion for T

source§

fn checked_from<T>(t: T) -> Option<Self>
where Self: TryFrom<T>,

Convert from a value of T into an equivalent instance of Option<Self>. Read more
source§

fn checked_into<T>(self) -> Option<T>
where Self: TryInto<T>,

Consume self to return Some equivalent value of Option<T>. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
source§

impl<T, Outer> IsWrappedBy<Outer> for T
where Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,

source§

fn from_ref(outer: &Outer) -> &T

Get a reference to the inner from the outer.

source§

fn from_mut(outer: &mut Outer) -> &mut T

Get a mutable reference to the inner from the outer.

source§

impl<T, Outer> IsWrappedBy<Outer> for T
where Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,

source§

fn from_ref(outer: &Outer) -> &T

Get a reference to the inner from the outer.

source§

fn from_mut(outer: &mut Outer) -> &mut T

Get a mutable reference to the inner from the outer.

source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> SaturatedConversion for T

source§

fn saturated_from<T>(t: T) -> Self
where Self: UniqueSaturatedFrom<T>,

Convert from a value of T into an equivalent instance of Self. Read more
source§

fn saturated_into<T>(self) -> T
where Self: UniqueSaturatedInto<T>,

Consume self to return an equivalent value of T. Read more
source§

impl<T> SaturatedConversion for T

source§

fn saturated_from<T>(t: T) -> Self
where Self: UniqueSaturatedFrom<T>,

Convert from a value of T into an equivalent instance of Self. Read more
source§

fn saturated_into<T>(self) -> T
where Self: UniqueSaturatedInto<T>,

Consume self to return an equivalent value of T. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<S, T> UncheckedInto<T> for S
where T: UncheckedFrom<S>,

source§

fn unchecked_into(self) -> T

The counterpart to unchecked_from.
source§

impl<S, T> UncheckedInto<T> for S
where T: UncheckedFrom<S>,

source§

fn unchecked_into(self) -> T

The counterpart to unchecked_from.
source§

impl<T, S> UniqueSaturatedInto<T> for S
where T: Bounded, S: TryInto<T>,

source§

fn unique_saturated_into(self) -> T

Consume self to return an equivalent value of T.
source§

impl<T, S> UniqueSaturatedInto<T> for S
where T: Bounded, S: TryInto<T>,

source§

fn unique_saturated_into(self) -> T

Consume self to return an equivalent value of T.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> JsonSchemaMaybe for T

source§

impl<T> MaybeRefUnwindSafe for T
where T: RefUnwindSafe,

source§

impl<T> MaybeSend for T
where T: Send,