Type Alias frontier_template_runtime::CheckedExtrinsic
source · pub type CheckedExtrinsic = CheckedExtrinsic<AccountId, RuntimeCall, SignedExtra, H160>;
Expand description
Extrinsic type that has already been checked.
Aliased Type§
struct CheckedExtrinsic {
pub signed: CheckedSignature<AccountId20, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>), H160>,
pub function: RuntimeCall,
}
Fields§
§signed: CheckedSignature<AccountId20, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>), H160>
Who this purports to be from and the number of extrinsics have come before from the same signer, if anyone (note this is not a signature).
function: RuntimeCall
The function that should be called.
Trait Implementations
source§impl<AccountId, Call, Extra, SelfContainedSignedInfo> GetDispatchInfo for CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo>where
Call: GetDispatchInfo,
impl<AccountId, Call, Extra, SelfContainedSignedInfo> GetDispatchInfo for CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo>where
Call: GetDispatchInfo,
source§fn get_dispatch_info(&self) -> DispatchInfo
fn get_dispatch_info(&self) -> DispatchInfo
Return a
DispatchInfo
, containing relevant information of this dispatch. Read moresource§impl<AccountId, Call, Extra, SelfContainedSignedInfo> PartialEq for CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo>
impl<AccountId, Call, Extra, SelfContainedSignedInfo> PartialEq for CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo>
source§fn eq(
&self,
other: &CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo>
) -> bool
fn eq( &self, other: &CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo> ) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<AccountId, Call, Extra, SelfContainedSignedInfo> StructuralPartialEq for CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo>
impl<AccountId, Call, Extra, SelfContainedSignedInfo> Eq for CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo>
source§impl<AccountId, Call, Extra, SelfContainedSignedInfo, Origin> Applyable for CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo>where
AccountId: Member + MaybeDisplay,
Call: Member + Dispatchable<RuntimeOrigin = Origin> + SelfContainedCall<SignedInfo = SelfContainedSignedInfo>,
Extra: SignedExtension<AccountId = AccountId, Call = Call>,
Origin: From<Option<AccountId>>,
SelfContainedSignedInfo: Send + Sync + 'static,
impl<AccountId, Call, Extra, SelfContainedSignedInfo, Origin> Applyable for CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo>where
AccountId: Member + MaybeDisplay,
Call: Member + Dispatchable<RuntimeOrigin = Origin> + SelfContainedCall<SignedInfo = SelfContainedSignedInfo>,
Extra: SignedExtension<AccountId = AccountId, Call = Call>,
Origin: From<Option<AccountId>>,
SelfContainedSignedInfo: Send + Sync + 'static,
source§fn validate<U>(
&self,
source: TransactionSource,
info: &<<CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo> as Applyable>::Call as Dispatchable>::Info,
len: usize
) -> Result<ValidTransaction, TransactionValidityError>where
U: ValidateUnsigned<Call = <CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo> as Applyable>::Call>,
fn validate<U>(
&self,
source: TransactionSource,
info: &<<CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo> as Applyable>::Call as Dispatchable>::Info,
len: usize
) -> Result<ValidTransaction, TransactionValidityError>where
U: ValidateUnsigned<Call = <CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo> as Applyable>::Call>,
Checks to see if this is a valid transaction. It returns information on it if so.
source§fn apply<U>(
self,
info: &<<CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo> as Applyable>::Call as Dispatchable>::Info,
len: usize
) -> Result<Result<<<CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo> as Applyable>::Call as Dispatchable>::PostInfo, DispatchErrorWithPostInfo<<<CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo> as Applyable>::Call as Dispatchable>::PostInfo>>, TransactionValidityError>where
U: ValidateUnsigned<Call = <CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo> as Applyable>::Call>,
fn apply<U>(
self,
info: &<<CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo> as Applyable>::Call as Dispatchable>::Info,
len: usize
) -> Result<Result<<<CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo> as Applyable>::Call as Dispatchable>::PostInfo, DispatchErrorWithPostInfo<<<CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo> as Applyable>::Call as Dispatchable>::PostInfo>>, TransactionValidityError>where
U: ValidateUnsigned<Call = <CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo> as Applyable>::Call>,
Executes all necessary logic needed prior to dispatch and deconstructs into function call,
index and sender.
source§impl<AccountId, Call, Extra, SelfContainedSignedInfo> Clone for CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo>
impl<AccountId, Call, Extra, SelfContainedSignedInfo> Clone for CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo>
source§fn clone(
&self
) -> CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo>
fn clone( &self ) -> CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more