pub type CheckedExtrinsic = CheckedExtrinsic<AccountId, RuntimeCall, TxExtension>;
Expand description
Extrinsic type that has already been checked.
Aliased Type§
struct CheckedExtrinsic {
pub format: ExtrinsicFormat<AccountId32, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, SkipCheckIfFeeless<Runtime, ChargeAssetTxPayment<Runtime>>, CheckMetadataHash<Runtime>, WeightReclaim<Runtime>)>,
pub function: RuntimeCall,
}
Fields§
§format: ExtrinsicFormat<AccountId32, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, SkipCheckIfFeeless<Runtime, ChargeAssetTxPayment<Runtime>>, CheckMetadataHash<Runtime>, WeightReclaim<Runtime>)>
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.
Implementations
Source§impl<AccountId, Call, Extension> CheckedExtrinsic<AccountId, Call, Extension>where
Call: Dispatchable,
Extension: TransactionExtension<Call>,
impl<AccountId, Call, Extension> CheckedExtrinsic<AccountId, Call, Extension>where
Call: Dispatchable,
Extension: TransactionExtension<Call>,
Sourcepub fn extension_weight(&self) -> Weight
pub fn extension_weight(&self) -> Weight
Returns the weight of the extension of this transaction, if present. If the transaction doesn’t use any extension, the weight returned is equal to zero.
Trait Implementations
Source§impl<AccountId, Call, Extension, RuntimeOrigin> Applyable for CheckedExtrinsic<AccountId, Call, Extension>where
AccountId: Member + MaybeDisplay,
Call: Member + Dispatchable<RuntimeOrigin = RuntimeOrigin> + Encode,
Extension: TransactionExtension<Call>,
RuntimeOrigin: From<Option<AccountId>> + AsTransactionAuthorizedOrigin,
impl<AccountId, Call, Extension, RuntimeOrigin> Applyable for CheckedExtrinsic<AccountId, Call, Extension>where
AccountId: Member + MaybeDisplay,
Call: Member + Dispatchable<RuntimeOrigin = RuntimeOrigin> + Encode,
Extension: TransactionExtension<Call>,
RuntimeOrigin: From<Option<AccountId>> + AsTransactionAuthorizedOrigin,
Source§fn validate<I>(
&self,
source: TransactionSource,
info: &<<CheckedExtrinsic<AccountId, Call, Extension> as Applyable>::Call as Dispatchable>::Info,
len: usize,
) -> Result<ValidTransaction, TransactionValidityError>where
I: ValidateUnsigned<Call = <CheckedExtrinsic<AccountId, Call, Extension> as Applyable>::Call>,
fn validate<I>(
&self,
source: TransactionSource,
info: &<<CheckedExtrinsic<AccountId, Call, Extension> as Applyable>::Call as Dispatchable>::Info,
len: usize,
) -> Result<ValidTransaction, TransactionValidityError>where
I: ValidateUnsigned<Call = <CheckedExtrinsic<AccountId, Call, Extension> as Applyable>::Call>,
Checks to see if this is a valid transaction. It returns information on it if so. Read more
Source§fn apply<I>(
self,
info: &<<CheckedExtrinsic<AccountId, Call, Extension> as Applyable>::Call as Dispatchable>::Info,
len: usize,
) -> Result<Result<<<CheckedExtrinsic<AccountId, Call, Extension> as Applyable>::Call as Dispatchable>::PostInfo, DispatchErrorWithPostInfo<<<CheckedExtrinsic<AccountId, Call, Extension> as Applyable>::Call as Dispatchable>::PostInfo>>, TransactionValidityError>where
I: ValidateUnsigned<Call = <CheckedExtrinsic<AccountId, Call, Extension> as Applyable>::Call>,
fn apply<I>(
self,
info: &<<CheckedExtrinsic<AccountId, Call, Extension> as Applyable>::Call as Dispatchable>::Info,
len: usize,
) -> Result<Result<<<CheckedExtrinsic<AccountId, Call, Extension> as Applyable>::Call as Dispatchable>::PostInfo, DispatchErrorWithPostInfo<<<CheckedExtrinsic<AccountId, Call, Extension> as Applyable>::Call as Dispatchable>::PostInfo>>, TransactionValidityError>where
I: ValidateUnsigned<Call = <CheckedExtrinsic<AccountId, Call, Extension> as Applyable>::Call>,
Executes all necessary logic needed prior to dispatch and deconstructs into function call,
index and sender. Read more
Source§impl<AccountId, Call, Extension> Clone for CheckedExtrinsic<AccountId, Call, Extension>
impl<AccountId, Call, Extension> Clone for CheckedExtrinsic<AccountId, Call, Extension>
Source§fn clone(&self) -> CheckedExtrinsic<AccountId, Call, Extension>
fn clone(&self) -> CheckedExtrinsic<AccountId, Call, Extension>
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 moreSource§impl<AccountId, Call, Extension> Debug for CheckedExtrinsic<AccountId, Call, Extension>
impl<AccountId, Call, Extension> Debug for CheckedExtrinsic<AccountId, Call, Extension>
Source§impl<AccountId, Call, Extension> GetDispatchInfo for CheckedExtrinsic<AccountId, Call, Extension>
impl<AccountId, Call, Extension> GetDispatchInfo for CheckedExtrinsic<AccountId, Call, Extension>
Implementation for checked extrinsic.
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, Extension> PartialEq for CheckedExtrinsic<AccountId, Call, Extension>
impl<AccountId, Call, Extension> PartialEq for CheckedExtrinsic<AccountId, Call, Extension>
Source§fn eq(&self, other: &CheckedExtrinsic<AccountId, Call, Extension>) -> bool
fn eq(&self, other: &CheckedExtrinsic<AccountId, Call, Extension>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.