referrerpolicy=no-referrer-when-downgrade
kitchensink_runtime

Type Alias CheckedExtrinsic

Source
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>,

Source

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,

Source§

type Call = Call

Type by which we can dispatch. Restricts the UnsignedValidator type.
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>,

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>,

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>
where AccountId: Clone, Call: Clone, Extension: Clone,

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl<AccountId, Call, Extension> Debug for CheckedExtrinsic<AccountId, Call, Extension>
where AccountId: Debug, Call: Debug, Extension: Debug,

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<AccountId, Call, Extension> GetDispatchInfo for CheckedExtrinsic<AccountId, Call, Extension>
where Call: Dispatchable + GetDispatchInfo, Extension: TransactionExtension<Call>,

Implementation for checked extrinsic.

Source§

fn get_dispatch_info(&self) -> DispatchInfo

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

impl<AccountId, Call, Extension> PartialEq for CheckedExtrinsic<AccountId, Call, Extension>
where AccountId: PartialEq, Call: PartialEq, Extension: PartialEq,

Source§

fn eq(&self, other: &CheckedExtrinsic<AccountId, Call, Extension>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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

impl<AccountId, Call, Extension> Eq for CheckedExtrinsic<AccountId, Call, Extension>
where AccountId: Eq, Call: Eq, Extension: Eq,

Source§

impl<AccountId, Call, Extension> StructuralPartialEq for CheckedExtrinsic<AccountId, Call, Extension>