Type Alias development_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<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>
impl<AccountId, Call, Extra, SelfContainedSignedInfo, Origin> Applyable for CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo>
§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.
§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.
impl<AccountId, Call, Extra, SelfContainedSignedInfo> StructuralPartialEq for CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo>
§impl<AccountId, Call, Extra, SelfContainedSignedInfo> Debug for CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo>
impl<AccountId, Call, Extra, SelfContainedSignedInfo> Debug for CheckedExtrinsic<AccountId, Call, Extra, SelfContainedSignedInfo>
§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,
§fn get_dispatch_info(&self) -> DispatchInfo
fn get_dispatch_info(&self) -> DispatchInfo
Return a
DispatchInfo
, containing relevant information of this dispatch. Read more