[]Enum pallet_scored_pool::Call

pub enum Call<T: Trait<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 KickOrigin or root.

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 ScoreOrigin or root.

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: Trait<I>, I: Instance> Clone for Call<T, I>

impl<T: Trait<I>, I: Instance> Debug for Call<T, I>

impl<T: Trait<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

impl<T: Trait<I>, I: Instance> Dispatchable for Call<T, I>

type Trait = T

...

type Origin = T::Origin

Every function call from your runtime has an origin, which specifies where the extrinsic was generated from. In the case of a signed extrinsic (transaction), the origin contains an identifier for the caller. The origin can be empty in the case of an inherent extrinsic. Read more

impl<T: Trait<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

impl<T: Trait<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

impl<T: Trait<I>, I: Instance> Eq for Call<T, I>

impl<T: Trait<I>, I: Instance> GetCallName for Call<T, I>

impl<T: Trait<I>, I: Instance> GetDispatchInfo for Call<T, I>

impl<T: Trait<I>, I: Instance> PartialEq<Call<T, I>> for Call<T, I>

Auto Trait Implementations

impl<T, I> RefUnwindSafe for Call<T, I> where
    I: RefUnwindSafe,
    T: RefUnwindSafe,
    <T as Trait>::Lookup: StaticLookup,
    <T as Trait<I>>::Score: RefUnwindSafe,
    <<T as Trait>::Lookup as StaticLookup>::Source: RefUnwindSafe

impl<T, I> Send for Call<T, I> where
    I: Send,
    T: Send,
    <T as Trait>::Lookup: StaticLookup,
    <T as Trait<I>>::Score: Send,
    <<T as Trait>::Lookup as StaticLookup>::Source: Send

impl<T, I> Sync for Call<T, I> where
    I: Sync,
    T: Sync,
    <T as Trait>::Lookup: StaticLookup,
    <T as Trait<I>>::Score: Sync,
    <<T as Trait>::Lookup as StaticLookup>::Source: Sync

impl<T, I> Unpin for Call<T, I> where
    I: Unpin,
    T: Unpin,
    <T as Trait>::Lookup: StaticLookup,
    <T as Trait<I>>::Score: Unpin,
    <<T as Trait>::Lookup as StaticLookup>::Source: Unpin

impl<T, I> UnwindSafe for Call<T, I> where
    I: UnwindSafe,
    T: UnwindSafe,
    <T as Trait>::Lookup: StaticLookup,
    <T as Trait<I>>::Score: UnwindSafe,
    <<T as Trait>::Lookup as StaticLookup>::Source: UnwindSafe

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, X> Decode for X where
    T: Decode + Into<X>,
    X: WrapperTypeDecode<Wrapped = T>, 
[src]

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

impl<T, X> Encode for X where
    T: Encode + ?Sized,
    X: WrapperTypeEncode<Target = T>, 
[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>> 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, U> Into<U> for T where
    U: From<T>, 
[src]

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

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

Get a reference to the inner from the outer.

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
    S: TryInto<T>,
    T: Bounded

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