Enum pallet_migrations::pallet::Call
source · pub enum Call<T: Config> {
force_set_cursor {
cursor: Option<CursorOf<T>>,
},
force_set_active_cursor {
index: u32,
inner_cursor: Option<RawCursorOf<T>>,
started_at: Option<BlockNumberFor<T>>,
},
force_onboard_mbms {},
clear_historic {
selector: HistoricCleanupSelector<IdentifierOf<T>>,
},
// some variants omitted
}Expand description
Contains a variant per dispatchable extrinsic that this pallet has.
Variants§
force_set_cursor
Allows root to set a cursor to forcefully start, stop or forward the migration process.
Should normally not be needed and is only in place as emergency measure. Note that
restarting the migration process in this manner will not call the
MigrationStatusHandler::started hook or emit an UpgradeStarted event.
force_set_active_cursor
Allows root to set an active cursor to forcefully start/forward the migration process.
This is an edge-case version of Self::force_set_cursor that allows to set the
started_at value to the next block number. Otherwise this would not be possible, since
force_set_cursor takes an absolute block number. Setting started_at to None
indicates that the current block number plus one should be used.
force_onboard_mbms
Forces the onboarding of the migrations.
This process happens automatically on a runtime upgrade. It is in place as an emergency
measurement. The cursor needs to be None for this to succeed.
clear_historic
Clears the Historic set.
map_cursor must be set to the last value that was returned by the
HistoricCleared event. The first time None can be used. limit must be chosen in a
way that will result in a sensible weight.
Fields
selector: HistoricCleanupSelector<IdentifierOf<T>>Implementations§
source§impl<T: Config> Call<T>
impl<T: Config> Call<T>
sourcepub fn new_call_variant_force_set_cursor(cursor: Option<CursorOf<T>>) -> Self
pub fn new_call_variant_force_set_cursor(cursor: Option<CursorOf<T>>) -> Self
Create a call with the variant force_set_cursor.
sourcepub fn new_call_variant_force_set_active_cursor(
index: u32,
inner_cursor: Option<RawCursorOf<T>>,
started_at: Option<BlockNumberFor<T>>
) -> Self
pub fn new_call_variant_force_set_active_cursor( index: u32, inner_cursor: Option<RawCursorOf<T>>, started_at: Option<BlockNumberFor<T>> ) -> Self
Create a call with the variant force_set_active_cursor.
sourcepub fn new_call_variant_force_onboard_mbms() -> Self
pub fn new_call_variant_force_onboard_mbms() -> Self
Create a call with the variant force_onboard_mbms.
sourcepub fn new_call_variant_clear_historic(
selector: HistoricCleanupSelector<IdentifierOf<T>>
) -> Self
pub fn new_call_variant_clear_historic( selector: HistoricCleanupSelector<IdentifierOf<T>> ) -> Self
Create a call with the variant clear_historic.
Trait Implementations§
source§impl<T: Config> CheckIfFeeless for Call<T>
impl<T: Config> CheckIfFeeless for Call<T>
§type Origin = <T as Config>::RuntimeOrigin
type Origin = <T as Config>::RuntimeOrigin
source§fn is_feeless(&self, origin: &Self::Origin) -> bool
fn is_feeless(&self, origin: &Self::Origin) -> bool
#[pallet::feeless_if]source§impl<T: Config> Decode for Call<T>
impl<T: Config> Decode for Call<T>
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
source§impl<T: Config> Encode for Call<T>
impl<T: Config> Encode for Call<T>
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
source§impl<T: Config> GetCallIndex for Call<T>
impl<T: Config> GetCallIndex for Call<T>
source§fn get_call_index(&self) -> u8
fn get_call_index(&self) -> u8
source§fn get_call_indices() -> &'static [u8] ⓘ
fn get_call_indices() -> &'static [u8] ⓘ
GetCallName.source§impl<T: Config> GetCallName for Call<T>
impl<T: Config> GetCallName for Call<T>
source§fn get_call_name(&self) -> &'static str
fn get_call_name(&self) -> &'static str
source§fn get_call_names() -> &'static [&'static str]
fn get_call_names() -> &'static [&'static str]
GetCallIndex.source§impl<T: Config> GetDispatchInfo for Call<T>
impl<T: Config> GetDispatchInfo for Call<T>
source§fn get_dispatch_info(&self) -> DispatchInfo
fn get_dispatch_info(&self) -> DispatchInfo
DispatchInfo, containing relevant information of this dispatch. Read moresource§impl<T: Config> PartialEq for Call<T>
impl<T: Config> PartialEq for Call<T>
source§impl<T> TypeInfo for Call<T>where
PhantomData<(T,)>: TypeInfo + 'static,
Option<CursorOf<T>>: TypeInfo + 'static,
Option<RawCursorOf<T>>: TypeInfo + 'static,
Option<BlockNumberFor<T>>: TypeInfo + 'static,
HistoricCleanupSelector<IdentifierOf<T>>: TypeInfo + 'static,
T: Config + 'static,
impl<T> TypeInfo for Call<T>where
PhantomData<(T,)>: TypeInfo + 'static,
Option<CursorOf<T>>: TypeInfo + 'static,
Option<RawCursorOf<T>>: TypeInfo + 'static,
Option<BlockNumberFor<T>>: TypeInfo + 'static,
HistoricCleanupSelector<IdentifierOf<T>>: TypeInfo + 'static,
T: Config + 'static,
source§impl<T: Config> UnfilteredDispatchable for Call<T>
impl<T: Config> UnfilteredDispatchable for Call<T>
§type RuntimeOrigin = <T as Config>::RuntimeOrigin
type RuntimeOrigin = <T as Config>::RuntimeOrigin
frame_system::Config::RuntimeOrigin).source§fn dispatch_bypass_filter(
self,
origin: Self::RuntimeOrigin
) -> DispatchResultWithPostInfo
fn dispatch_bypass_filter( self, origin: Self::RuntimeOrigin ) -> DispatchResultWithPostInfo
impl<T: Config> EncodeLike for Call<T>
impl<T: Config> Eq for Call<T>
Auto Trait Implementations§
impl<T> Freeze for Call<T>
impl<T> RefUnwindSafe for Call<T>where
T: Config + Clone + Eq + PartialEq + 'static + RefUnwindSafe,
<<<T as Config>::Block as Block>::Header as Header>::Number: RefUnwindSafe,
<T as Config>::CursorMaxLen: RefUnwindSafe,
<T as Config>::IdentifierMaxLen: RefUnwindSafe,
impl<T> Send for Call<T>
impl<T> Sync for Call<T>
impl<T> Unpin for Call<T>
impl<T> UnwindSafe for Call<T>where
T: Config + Clone + Eq + PartialEq + 'static + UnwindSafe,
<<<T as Config>::Block as Block>::Header as Header>::Number: UnwindSafe,
<T as Config>::CursorMaxLen: UnwindSafe,
<T as Config>::IdentifierMaxLen: UnwindSafe,
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
source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
source§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> 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>,
T. Read moresource§impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
type Error = <U as TryFromKey<T>>::Error
fn try_into_key(self) -> Result<U, <U as TryFromKey<T>>::Error>
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
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
T.