pub struct Executive<ExecutiveConfig, Context, UnsignedValidator, AllPalletsWithSystem, OnRuntimeUpgrade = ()>(/* private fields */);
Expand description
Same semantics with frame_executive::Executive
.
One extra generic parameter:
ExecutiveConfig
: Something that implementsdomain_pallet_executive::Config
.
Implementations§
source§impl<ExecutiveConfig: Config + Config + EnsureInherentsAreFirst<<ExecutiveConfig as Config>::Block>, Context: Default, UnsignedValidator, AllPalletsWithSystem: OnRuntimeUpgrade + BeforeAllRuntimeMigrations + OnInitialize<BlockNumberFor<ExecutiveConfig>> + OnIdle<BlockNumberFor<ExecutiveConfig>> + OnFinalize<BlockNumberFor<ExecutiveConfig>> + OffchainWorker<BlockNumberFor<ExecutiveConfig>> + OnPoll<BlockNumberFor<ExecutiveConfig>>, COnRuntimeUpgrade: OnRuntimeUpgrade> Executive<ExecutiveConfig, Context, UnsignedValidator, AllPalletsWithSystem, COnRuntimeUpgrade>where
<<ExecutiveConfig as Config>::Block as BlockT>::Extrinsic: Checkable<Context> + Codec,
CheckedOf<<<ExecutiveConfig as Config>::Block as BlockT>::Extrinsic, Context>: Applyable + GetDispatchInfo,
CallOf<<<ExecutiveConfig as Config>::Block as BlockT>::Extrinsic, Context>: Dispatchable<Info = DispatchInfo, PostInfo = PostDispatchInfo>,
OriginOf<<<ExecutiveConfig as Config>::Block as BlockT>::Extrinsic, Context>: From<Option<<ExecutiveConfig as Config>::AccountId>>,
UnsignedValidator: ValidateUnsigned<Call = CallOf<<<ExecutiveConfig as Config>::Block as BlockT>::Extrinsic, Context>>,
impl<ExecutiveConfig: Config + Config + EnsureInherentsAreFirst<<ExecutiveConfig as Config>::Block>, Context: Default, UnsignedValidator, AllPalletsWithSystem: OnRuntimeUpgrade + BeforeAllRuntimeMigrations + OnInitialize<BlockNumberFor<ExecutiveConfig>> + OnIdle<BlockNumberFor<ExecutiveConfig>> + OnFinalize<BlockNumberFor<ExecutiveConfig>> + OffchainWorker<BlockNumberFor<ExecutiveConfig>> + OnPoll<BlockNumberFor<ExecutiveConfig>>, COnRuntimeUpgrade: OnRuntimeUpgrade> Executive<ExecutiveConfig, Context, UnsignedValidator, AllPalletsWithSystem, COnRuntimeUpgrade>where
<<ExecutiveConfig as Config>::Block as BlockT>::Extrinsic: Checkable<Context> + Codec,
CheckedOf<<<ExecutiveConfig as Config>::Block as BlockT>::Extrinsic, Context>: Applyable + GetDispatchInfo,
CallOf<<<ExecutiveConfig as Config>::Block as BlockT>::Extrinsic, Context>: Dispatchable<Info = DispatchInfo, PostInfo = PostDispatchInfo>,
OriginOf<<<ExecutiveConfig as Config>::Block as BlockT>::Extrinsic, Context>: From<Option<<ExecutiveConfig as Config>::AccountId>>,
UnsignedValidator: ValidateUnsigned<Call = CallOf<<<ExecutiveConfig as Config>::Block as BlockT>::Extrinsic, Context>>,
sourcepub fn storage_root() -> Vec<u8> ⓘ
pub fn storage_root() -> Vec<u8> ⓘ
Returns the latest storage root.
sourcepub fn execute_on_runtime_upgrade() -> Weight
pub fn execute_on_runtime_upgrade() -> Weight
Wrapped frame_executive::Executive::execute_on_runtime_upgrade
.
sourcepub fn initialize_block(
header: &HeaderFor<ExecutiveConfig>,
) -> ExtrinsicInclusionMode
pub fn initialize_block( header: &HeaderFor<ExecutiveConfig>, ) -> ExtrinsicInclusionMode
Wrapped frame_executive::Executive::initialize_block
.
Note the storage root in the end.
sourcepub fn execute_block(block: <ExecutiveConfig as Config>::Block)
pub fn execute_block(block: <ExecutiveConfig as Config>::Block)
Wrapped frame_executive::Executive::execute_block
.
The purpose is to use our custom Executive::apply_extrinsic
and
the Executive::finalize_block
logic.
sourcepub fn finalize_block() -> HeaderFor<ExecutiveConfig>
pub fn finalize_block() -> HeaderFor<ExecutiveConfig>
Wrapped frame_executive::Executive::finalize_block
.
sourcepub fn apply_extrinsic(
uxt: <<ExecutiveConfig as Config>::Block as BlockT>::Extrinsic,
) -> ApplyExtrinsicResult
pub fn apply_extrinsic( uxt: <<ExecutiveConfig as Config>::Block as BlockT>::Extrinsic, ) -> ApplyExtrinsicResult
Wrapped frame_executive::Executive::apply_extrinsic
.
Note the storage root in the beginning.
sourcepub fn validate_transaction(
source: TransactionSource,
uxt: <<ExecutiveConfig as Config>::Block as BlockT>::Extrinsic,
block_hash: <<ExecutiveConfig as Config>::Block as BlockT>::Hash,
) -> TransactionValidity
pub fn validate_transaction( source: TransactionSource, uxt: <<ExecutiveConfig as Config>::Block as BlockT>::Extrinsic, block_hash: <<ExecutiveConfig as Config>::Block as BlockT>::Hash, ) -> TransactionValidity
Wrapped frame_executive::Executive::validate_transaction
.
sourcepub fn offchain_worker(header: &HeaderFor<ExecutiveConfig>)
pub fn offchain_worker(header: &HeaderFor<ExecutiveConfig>)
Wrapped frame_executive::Executive::offchain_worker
.
Trait Implementations§
source§impl<ExecutiveConfig: Config + Config + EnsureInherentsAreFirst<<ExecutiveConfig as Config>::Block>, Context: Default, UnsignedValidator, AllPalletsWithSystem: OnRuntimeUpgrade + BeforeAllRuntimeMigrations + OnInitialize<BlockNumberFor<ExecutiveConfig>> + OnIdle<BlockNumberFor<ExecutiveConfig>> + OnFinalize<BlockNumberFor<ExecutiveConfig>> + OffchainWorker<BlockNumberFor<ExecutiveConfig>> + OnPoll<BlockNumberFor<ExecutiveConfig>>, COnRuntimeUpgrade: OnRuntimeUpgrade> ExecuteBlock<<ExecutiveConfig as Config>::Block> for Executive<ExecutiveConfig, Context, UnsignedValidator, AllPalletsWithSystem, COnRuntimeUpgrade>where
<<ExecutiveConfig as Config>::Block as BlockT>::Extrinsic: Checkable<Context> + Codec,
CheckedOf<<<ExecutiveConfig as Config>::Block as BlockT>::Extrinsic, Context>: Applyable + GetDispatchInfo,
CallOf<<<ExecutiveConfig as Config>::Block as BlockT>::Extrinsic, Context>: Dispatchable<Info = DispatchInfo, PostInfo = PostDispatchInfo>,
OriginOf<<<ExecutiveConfig as Config>::Block as BlockT>::Extrinsic, Context>: From<Option<<ExecutiveConfig as Config>::AccountId>>,
UnsignedValidator: ValidateUnsigned<Call = CallOf<<<ExecutiveConfig as Config>::Block as BlockT>::Extrinsic, Context>>,
impl<ExecutiveConfig: Config + Config + EnsureInherentsAreFirst<<ExecutiveConfig as Config>::Block>, Context: Default, UnsignedValidator, AllPalletsWithSystem: OnRuntimeUpgrade + BeforeAllRuntimeMigrations + OnInitialize<BlockNumberFor<ExecutiveConfig>> + OnIdle<BlockNumberFor<ExecutiveConfig>> + OnFinalize<BlockNumberFor<ExecutiveConfig>> + OffchainWorker<BlockNumberFor<ExecutiveConfig>> + OnPoll<BlockNumberFor<ExecutiveConfig>>, COnRuntimeUpgrade: OnRuntimeUpgrade> ExecuteBlock<<ExecutiveConfig as Config>::Block> for Executive<ExecutiveConfig, Context, UnsignedValidator, AllPalletsWithSystem, COnRuntimeUpgrade>where
<<ExecutiveConfig as Config>::Block as BlockT>::Extrinsic: Checkable<Context> + Codec,
CheckedOf<<<ExecutiveConfig as Config>::Block as BlockT>::Extrinsic, Context>: Applyable + GetDispatchInfo,
CallOf<<<ExecutiveConfig as Config>::Block as BlockT>::Extrinsic, Context>: Dispatchable<Info = DispatchInfo, PostInfo = PostDispatchInfo>,
OriginOf<<<ExecutiveConfig as Config>::Block as BlockT>::Extrinsic, Context>: From<Option<<ExecutiveConfig as Config>::AccountId>>,
UnsignedValidator: ValidateUnsigned<Call = CallOf<<<ExecutiveConfig as Config>::Block as BlockT>::Extrinsic, Context>>,
source§fn execute_block(block: <ExecutiveConfig as Config>::Block)
fn execute_block(block: <ExecutiveConfig as Config>::Block)
Execute the given
block
. Read moreAuto Trait Implementations§
impl<ExecutiveConfig, Context, UnsignedValidator, AllPalletsWithSystem, OnRuntimeUpgrade> Freeze for Executive<ExecutiveConfig, Context, UnsignedValidator, AllPalletsWithSystem, OnRuntimeUpgrade>
impl<ExecutiveConfig, Context, UnsignedValidator, AllPalletsWithSystem, OnRuntimeUpgrade> RefUnwindSafe for Executive<ExecutiveConfig, Context, UnsignedValidator, AllPalletsWithSystem, OnRuntimeUpgrade>where
ExecutiveConfig: RefUnwindSafe,
Context: RefUnwindSafe,
UnsignedValidator: RefUnwindSafe,
AllPalletsWithSystem: RefUnwindSafe,
OnRuntimeUpgrade: RefUnwindSafe,
impl<ExecutiveConfig, Context, UnsignedValidator, AllPalletsWithSystem, OnRuntimeUpgrade> Send for Executive<ExecutiveConfig, Context, UnsignedValidator, AllPalletsWithSystem, OnRuntimeUpgrade>
impl<ExecutiveConfig, Context, UnsignedValidator, AllPalletsWithSystem, OnRuntimeUpgrade> Sync for Executive<ExecutiveConfig, Context, UnsignedValidator, AllPalletsWithSystem, OnRuntimeUpgrade>
impl<ExecutiveConfig, Context, UnsignedValidator, AllPalletsWithSystem, OnRuntimeUpgrade> Unpin for Executive<ExecutiveConfig, Context, UnsignedValidator, AllPalletsWithSystem, OnRuntimeUpgrade>
impl<ExecutiveConfig, Context, UnsignedValidator, AllPalletsWithSystem, OnRuntimeUpgrade> UnwindSafe for Executive<ExecutiveConfig, Context, UnsignedValidator, AllPalletsWithSystem, OnRuntimeUpgrade>where
ExecutiveConfig: UnwindSafe,
Context: UnwindSafe,
UnsignedValidator: UnwindSafe,
AllPalletsWithSystem: UnwindSafe,
OnRuntimeUpgrade: 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
Mutably borrows from an owned value. Read more
§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
§fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more§impl<T> IsType<T> for T
impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
§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 more§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>
§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.