pub type CheckedExtrinsic = CheckedExtrinsic<AccountId, RuntimeCall, SignedExtra, H160>;
Expand description

Extrinsic type that has already been checked.

Aliased Type§

struct CheckedExtrinsic {
    pub signed: CheckedSignature<AccountId32, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckMetadataHash<Runtime>, PreBalanceTransferExtension<Runtime>), H160>,
    pub function: RuntimeCall,
}

Fields§

§signed: CheckedSignature<AccountId32, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckMetadataHash<Runtime>, PreBalanceTransferExtension<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

§

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,

§

type Call = Call

Type by which we can dispatch. Restricts the UnsignedValidator type.
§

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.
§

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.
§

impl<AccountId, Call, Extra, SelfContainedSignedInfo> StructuralPartialEq for CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo>

§

impl<AccountId, Call, Extra, SelfContainedSignedInfo> Debug for CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo>
where AccountId: Debug, Call: Debug, Extra: Debug, SelfContainedSignedInfo: Debug,

§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<AccountId, Call, Extra, SelfContainedSignedInfo> GetDispatchInfo for CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo>
where Call: GetDispatchInfo,

§

fn get_dispatch_info(&self) -> DispatchInfo

Return a DispatchInfo, containing relevant information of this dispatch. Read more
§

impl<AccountId, Call, Extra, SelfContainedSignedInfo> PartialEq for CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo>
where AccountId: PartialEq, Call: PartialEq, Extra: PartialEq, SelfContainedSignedInfo: PartialEq,

§

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 ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<AccountId, Call, Extra, SelfContainedSignedInfo> Eq for CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo>
where AccountId: Eq, Call: Eq, Extra: Eq, SelfContainedSignedInfo: Eq,

§

impl<AccountId, Call, Extra, SelfContainedSignedInfo> Clone for CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo>
where AccountId: Clone, Call: Clone, Extra: Clone, SelfContainedSignedInfo: Clone,

§

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)

Performs copy-assignment from source. Read more