pub type UncheckedExtrinsic = UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>;
Expand description

Unchecked extrinsic type as expected by this runtime.

Aliased Type§

struct UncheckedExtrinsic(pub UncheckedExtrinsic<AccountId20, RuntimeCall, EthereumSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckMetadataHash<Runtime>, StorageWeightReclaim<Runtime>)>);

Fields§

§0: UncheckedExtrinsic<AccountId20, RuntimeCall, EthereumSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckMetadataHash<Runtime>, StorageWeightReclaim<Runtime>)>

Implementations

§

impl<Address, Call, Signature, Extra> UncheckedExtrinsic<Address, Call, Signature, Extra>
where Extra: SignedExtension,

pub fn new_signed( function: Call, signed: Address, signature: Signature, extra: Extra ) -> UncheckedExtrinsic<Address, Call, Signature, Extra>

New instance of a signed extrinsic aka “transaction”.

pub fn new_unsigned( function: Call ) -> UncheckedExtrinsic<Address, Call, Signature, Extra>

New instance of an unsigned extrinsic aka “inherent”.

Trait Implementations

§

impl<'a, Address, Signature, Call, Extra> Deserialize<'a> for UncheckedExtrinsic<Address, Call, Signature, Extra>
where Address: Decode, Signature: Decode, Call: Decode, Extra: SignedExtension,

§

fn deserialize<D>( de: D ) -> Result<UncheckedExtrinsic<Address, Call, Signature, Extra>, <D as Deserializer<'a>>::Error>
where D: Deserializer<'a>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<Address, Call, Signature, Extra> TypeInfo for UncheckedExtrinsic<Address, Call, Signature, Extra>
where Extra: SignedExtension + TypeInfo + 'static, UncheckedExtrinsic<Address, Call, Signature, Extra>: TypeInfo + 'static, Address: TypeInfo + 'static, Call: TypeInfo + 'static, Signature: TypeInfo + 'static,

§

type Identity = UncheckedExtrinsic<Address, Call, Signature, Extra>

The type identifying for which type info is provided. Read more
§

fn type_info() -> Type

Returns the static type identifier for Self.
§

impl<Address, AccountId, Call, Signature, Extra, Lookup> Checkable<Lookup> for UncheckedExtrinsic<Address, Call, Signature, Extra>
where Address: Member + MaybeDisplay, Call: Encode + Member + SelfContainedCall, Signature: Member + Verify, <Signature as Verify>::Signer: IdentifyAccount<AccountId = AccountId>, Extra: SignedExtension<AccountId = AccountId>, AccountId: Member + MaybeDisplay, Lookup: Lookup<Source = Address, Target = AccountId>,

§

type Checked = CheckedExtrinsic<AccountId, Call, Extra, <Call as SelfContainedCall>::SignedInfo>

Returned if check succeeds.
§

fn check( self, lookup: &Lookup ) -> Result<<UncheckedExtrinsic<Address, Call, Signature, Extra> as Checkable<Lookup>>::Checked, TransactionValidityError>

Check self, given an instance of Context.
§

impl<Address, Call, Signature, Extra> StructuralPartialEq for UncheckedExtrinsic<Address, Call, Signature, Extra>
where Extra: SignedExtension,

§

impl<Address, Call, Signature, Extra> Debug for UncheckedExtrinsic<Address, Call, Signature, Extra>
where Extra: SignedExtension + Debug, Address: Debug, Call: Debug, Signature: Debug,

§

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

Formats the value using the given formatter. Read more
§

impl<Address, Call, Signature, Extra> Encode for UncheckedExtrinsic<Address, Call, Signature, Extra>
where Extra: SignedExtension, UncheckedExtrinsic<Address, Call, Signature, Extra>: Encode,

§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
where __CodecOutputEdqy: Output + ?Sized,

Convert self to a slice and append it to the destination.
§

fn encode(&self) -> Vec<u8>

Convert self to an owned vector.
§

fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback>( &self, f: __CodecUsingEncodedCallback ) -> __CodecOutputReturn
where __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn,

Convert self to a slice and then invoke the given closure with it.
§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
§

impl<Address, Call, Signature, Extra> Decode for UncheckedExtrinsic<Address, Call, Signature, Extra>
where Extra: SignedExtension, UncheckedExtrinsic<Address, Call, Signature, Extra>: Decode,

§

fn decode<__CodecInputEdqy>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<UncheckedExtrinsic<Address, Call, Signature, Extra>, Error>
where __CodecInputEdqy: Input,

Attempt to deserialise the value from input.
§

fn decode_into<I>( input: &mut I, dst: &mut MaybeUninit<Self> ) -> Result<DecodeFinished, Error>
where I: Input,

Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§

fn skip<I>(input: &mut I) -> Result<(), Error>
where I: Input,

Attempt to skip the encoded value from input. Read more
§

fn encoded_fixed_size() -> Option<usize>

Returns the fixed encoded size of the type. Read more
§

impl<Address, Call, Signature, Extra> ExtrinsicCall for UncheckedExtrinsic<Address, Call, Signature, Extra>
where Address: TypeInfo, Call: SelfContainedCall + TypeInfo, Signature: TypeInfo, Extra: SignedExtension,

§

fn call( &self ) -> &<UncheckedExtrinsic<Address, Call, Signature, Extra> as Extrinsic>::Call

Get the call of the extrinsic.
§

impl<Address, Call, Signature, Extra> Extrinsic for UncheckedExtrinsic<Address, Call, Signature, Extra>
where Address: TypeInfo, Call: SelfContainedCall + TypeInfo, Signature: TypeInfo, Extra: SignedExtension,

§

type Call = Call

The function call.
§

type SignaturePayload = (Address, Signature, Extra)

The payload we carry for signed extrinsics. Read more
§

fn is_signed(&self) -> Option<bool>

Is this Extrinsic signed? If no information are available about signed/unsigned, None should be returned.
§

fn new( function: Call, signed_data: Option<<UncheckedExtrinsic<Address, Call, Signature, Extra> as Extrinsic>::SignaturePayload> ) -> Option<UncheckedExtrinsic<Address, Call, Signature, Extra>>

Create new instance of the extrinsic. Read more
§

impl<Address, Signature, Call, Extra> Serialize for UncheckedExtrinsic<Address, Call, Signature, Extra>
where Address: Encode, Signature: Encode, Call: Encode, Extra: SignedExtension,

§

fn serialize<S>( &self, seq: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<Address, Call, Signature, Extra> Eq for UncheckedExtrinsic<Address, Call, Signature, Extra>
where Address: Eq, Call: Eq, Signature: Eq, Extra: Eq + SignedExtension,

§

impl<Address, Call, Signature, Extra> PartialEq for UncheckedExtrinsic<Address, Call, Signature, Extra>
where Address: PartialEq, Call: PartialEq, Signature: PartialEq, Extra: PartialEq + SignedExtension,

§

fn eq( &self, other: &UncheckedExtrinsic<Address, Call, Signature, Extra> ) -> 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<Address, Call, Signature, Extra> EncodeLike for UncheckedExtrinsic<Address, Call, Signature, Extra>
where Extra: SignedExtension, UncheckedExtrinsic<Address, Call, Signature, Extra>: Encode,

§

impl<Address, Call, Signature, Extra> Clone for UncheckedExtrinsic<Address, Call, Signature, Extra>
where Address: Clone, Call: Clone, Signature: Clone, Extra: Clone + SignedExtension,

§

fn clone(&self) -> UncheckedExtrinsic<Address, Call, Signature, Extra>

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
§

impl<Address, Call, Signature, Extra> GetDispatchInfo for UncheckedExtrinsic<Address, Call, Signature, Extra>
where Call: GetDispatchInfo, Extra: SignedExtension,

§

fn get_dispatch_info(&self) -> DispatchInfo

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

impl<Address, Call, Signature, Extra> ExtrinsicMetadata for UncheckedExtrinsic<Address, Call, Signature, Extra>
where Extra: SignedExtension,

§

const VERSION: u8 = 4u8

The format version of the Extrinsic. Read more
§

type SignedExtensions = Extra

Signed extensions attached to this Extrinsic.