Enum pallet_scored_pool::Call[][src]

pub enum Call<T: Config<I>, I: Instance = DefaultInstance> {
    submit_candidacy(),
    withdraw_candidacy(u32),
    kick(<T::Lookup as StaticLookup>::Sourceu32),
    score(<T::Lookup as StaticLookup>::Sourceu32, T::Score),
    change_member_count(u32),
    // some variants omitted
}

Dispatchable calls.

Each variant of this enum maps to a dispatchable function from the associated module.

Variants

submit_candidacy()

Add origin to the pool of candidates.

This results in CandidateDeposit being reserved from the origin account. The deposit is returned once candidacy is withdrawn by the candidate or the entity is kicked by KickOrigin.

The dispatch origin of this function must be signed.

The index parameter of this function must be set to the index of the transactor in the Pool.

withdraw_candidacy(u32)

An entity withdraws candidacy and gets its deposit back.

If the entity is part of the Members, then the highest member of the Pool that is not currently in Members is immediately placed in the set instead.

The dispatch origin of this function must be signed.

The index parameter of this function must be set to the index of the transactor in the Pool.

kick(<T::Lookup as StaticLookup>::Sourceu32)

Kick a member who from the set.

May only be called from T::KickOrigin.

The index parameter of this function must be set to the index of dest in the Pool.

score(<T::Lookup as StaticLookup>::Sourceu32, T::Score)

Score a member who with score.

May only be called from T::ScoreOrigin.

The index parameter of this function must be set to the index of the dest in the Pool.

change_member_count(u32)

Dispatchable call to change MemberCount.

This will only have an effect the next time a refresh happens (this happens each Period).

May only be called from root.

Trait Implementations

impl<T: Config<I>, I: Instance> Clone for Call<T, I>[src]

impl<T: Config<I>, I: Instance> Debug for Call<T, I>[src]

impl<T: Config<I>, I: Instance> Decode for Call<T, I> where
    <T::Lookup as StaticLookup>::Source: Decode,
    <T::Lookup as StaticLookup>::Source: Decode,
    <T::Lookup as StaticLookup>::Source: Decode,
    <T::Lookup as StaticLookup>::Source: Decode,
    T::Score: Decode,
    T::Score: Decode
[src]

impl<T: Config<I>, I: Instance> Encode for Call<T, I> where
    <T::Lookup as StaticLookup>::Source: Encode,
    <T::Lookup as StaticLookup>::Source: Encode,
    <T::Lookup as StaticLookup>::Source: Encode,
    <T::Lookup as StaticLookup>::Source: Encode,
    T::Score: Encode,
    T::Score: Encode
[src]

impl<T: Config<I>, I: Instance> EncodeLike<Call<T, I>> for Call<T, I> where
    <T::Lookup as StaticLookup>::Source: Encode,
    <T::Lookup as StaticLookup>::Source: Encode,
    <T::Lookup as StaticLookup>::Source: Encode,
    <T::Lookup as StaticLookup>::Source: Encode,
    T::Score: Encode,
    T::Score: Encode
[src]

impl<T: Config<I>, I: Instance> Eq for Call<T, I>[src]

impl<T: Config<I>, I: Instance> GetCallName for Call<T, I>[src]

impl<T: Config<I>, I: Instance> GetDispatchInfo for Call<T, I>[src]

impl<T: Config<I>, I: Instance> PartialEq<Call<T, I>> for Call<T, I>[src]

impl<T: Config<I>, I: Instance> UnfilteredDispatchable for Call<T, I>[src]

type Origin = T::Origin

The origin type of the runtime, (i.e. frame_system::Config::Origin).

Auto Trait Implementations

impl<T, I> RefUnwindSafe for Call<T, I> where
    I: RefUnwindSafe,
    T: RefUnwindSafe,
    <T as Config<I>>::Score: RefUnwindSafe,
    <<T as Config>::Lookup as StaticLookup>::Source: RefUnwindSafe
[src]

impl<T, I> Send for Call<T, I> where
    I: Send,
    T: Send,
    <T as Config<I>>::Score: Send,
    <<T as Config>::Lookup as StaticLookup>::Source: Send
[src]

impl<T, I> Sync for Call<T, I> where
    I: Sync,
    T: Sync,
    <T as Config<I>>::Score: Sync,
    <<T as Config>::Lookup as StaticLookup>::Source: Sync
[src]

impl<T, I> Unpin for Call<T, I> where
    I: Unpin,
    T: Unpin,
    <T as Config<I>>::Score: Unpin,
    <<T as Config>::Lookup as StaticLookup>::Source: Unpin
[src]

impl<T, I> UnwindSafe for Call<T, I> where
    I: UnwindSafe,
    T: UnwindSafe,
    <T as Config<I>>::Score: UnwindSafe,
    <<T as Config>::Lookup as StaticLookup>::Source: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedConversion for T[src]

impl<S> Codec for S where
    S: Encode + Decode
[src]

impl<T> DecodeAll for T where
    T: Decode
[src]

impl<T> DecodeLimit for T where
    T: Decode
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
    T: Encode
[src]

impl<'_, T> EncodeLike<&'_ T> for T where
    T: Encode
[src]

impl<'_, T> EncodeLike<&'_ mut T> for T where
    T: Encode
[src]

impl<T> EncodeLike<Arc<T>> for T where
    T: Encode
[src]

impl<T> EncodeLike<Box<T, Global>> for T where
    T: Encode
[src]

impl<'a, T> EncodeLike<Cow<'a, T>> for T where
    T: Encode + ToOwned
[src]

impl<T> EncodeLike<Rc<T>> for T where
    T: Encode
[src]

impl<T> From<T> for T[src]

impl<S> FullCodec for S where
    S: Decode + FullEncode
[src]

impl<S> FullEncode for S where
    S: Encode + EncodeLike<S>, 
[src]

impl<T> Hashable for T where
    T: Codec
[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IsType<T> for T[src]

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

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

Get a reference to the inner from the outer.

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

Get a mutable reference to the inner from the outer.

impl<T> KeyedVec for T where
    T: Codec
[src]

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> Member for T where
    T: 'static + Clone + PartialEq<T> + Eq + Send + Sync + Debug
[src]

impl<T> Parameter for T where
    T: Codec + EncodeLike<T> + Clone + Eq + Debug
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

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

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