Type Alias UncheckedExtrinsic

Source
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>, CheckContractCreation<Runtime>, MessengerExtension<Runtime>)>);

Fields§

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

Implementations

§

impl<Address, Call, Signature, Extension> UncheckedExtrinsic<Address, Call, Signature, Extension>

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

New instance of a signed extrinsic aka “transaction”.

pub fn new_bare( function: Call, ) -> UncheckedExtrinsic<Address, Call, Signature, Extension>

New instance of an unsigned extrinsic aka “inherent”.

Trait Implementations

§

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

§

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

Returned if check succeeds.
§

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

Check self, given an instance of Context.
§

impl<Address, Call, Signature, Extension> Clone for UncheckedExtrinsic<Address, Call, Signature, Extension>
where Address: Clone, Call: Clone, Signature: Clone, Extension: Clone,

§

fn clone(&self) -> UncheckedExtrinsic<Address, Call, Signature, 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
§

impl<Address, Call, Signature, Extension> Debug for UncheckedExtrinsic<Address, Call, Signature, Extension>
where Address: Debug, Call: Debug, Signature: Debug, Extension: Debug,

§

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

Formats the value using the given formatter. Read more
§

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

§

fn decode<__CodecInputEdqy>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<UncheckedExtrinsic<Address, Call, Signature, Extension>, 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<'a, Address, Signature, Call, Extension> Deserialize<'a> for UncheckedExtrinsic<Address, Call, Signature, Extension>
where Address: Decode, Signature: Decode, Call: Decode + Dispatchable, Extension: Decode + TransactionExtension<Call>,

§

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

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

impl<Address, Call, Signature, Extension> Encode for UncheckedExtrinsic<Address, Call, Signature, Extension>
where UncheckedExtrinsic<Address, Call, Signature, Extension>: 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, Extension> ExtrinsicCall for UncheckedExtrinsic<Address, Call, Signature, Extension>
where Address: TypeInfo, Call: TypeInfo, Signature: TypeInfo, Extension: TypeInfo,

§

type Call = Call

§

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

Get the call of the extrinsic.
§

impl<Address, Call, Signature, Extension> ExtrinsicLike for UncheckedExtrinsic<Address, Call, Signature, Extension>
where Address: TypeInfo, Call: TypeInfo, Signature: TypeInfo, Extension: TypeInfo,

§

fn is_bare(&self) -> bool

Returns true if this Extrinsic is bare.
§

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

👎Deprecated: Use and implement !is_bare() instead
Is this Extrinsic signed? If no information are available about signed/unsigned, None should be returned.
§

impl<Address, Call, Signature, Extension> ExtrinsicMetadata for UncheckedExtrinsic<Address, Call, Signature, Extension>
where Call: Dispatchable, Extension: TransactionExtension<Call>,

§

const VERSIONS: &'static [u8] = generic::UncheckedExtrinsic<Address, Call, Signature, Extension>::VERSIONS

The format versions of the Extrinsic. Read more
§

type TransactionExtensions = Extension

Transaction extensions attached to this Extrinsic.
§

impl<Address, Call, Signature, Extension> From<UncheckedExtrinsic<Address, Call, Signature, Extension>> for UncheckedExtrinsic<Address, Call, Signature, Extension>

§

fn from( utx: UncheckedExtrinsic<Address, Call, Signature, Extension>, ) -> UncheckedExtrinsic<Address, Call, Signature, Extension>

Converts to this type from the input type.
§

impl<Address, Call, Signature, Extension> GetDispatchInfo for UncheckedExtrinsic<Address, Call, Signature, Extension>
where Call: GetDispatchInfo + Dispatchable, Extension: TransactionExtension<Call>,

§

fn get_dispatch_info(&self) -> DispatchInfo

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

impl<Address, Signature, Call, Extension> InherentBuilder for UncheckedExtrinsic<Address, Call, Signature, Extension>
where Address: TypeInfo, Signature: TypeInfo, Call: TypeInfo, Extension: TypeInfo,

§

fn new_inherent( call: <UncheckedExtrinsic<Address, Call, Signature, Extension> as ExtrinsicCall>::Call, ) -> UncheckedExtrinsic<Address, Call, Signature, Extension>

Create a new inherent from a given call.
§

impl<Address, Call, Signature, Extension> PartialEq for UncheckedExtrinsic<Address, Call, Signature, Extension>
where Address: PartialEq, Call: PartialEq, Signature: PartialEq, Extension: PartialEq,

§

fn eq( &self, other: &UncheckedExtrinsic<Address, Call, Signature, 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.
§

impl<Address, Signature, Call, Extension> Serialize for UncheckedExtrinsic<Address, Call, Signature, Extension>
where Address: Encode, Signature: Encode, Call: Encode + Dispatchable, Extension: Encode + TransactionExtension<Call>,

§

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, Signature, Call, Extension> SignedTransactionBuilder for UncheckedExtrinsic<Address, Call, Signature, Extension>
where Address: TypeInfo, Signature: TypeInfo, Call: TypeInfo, Extension: TypeInfo,

§

type Address = Address

§

type Signature = Signature

§

type Extension = Extension

§

fn new_signed_transaction( call: <UncheckedExtrinsic<Address, Call, Signature, Extension> as ExtrinsicCall>::Call, signed: Address, signature: Signature, tx_ext: Extension, ) -> UncheckedExtrinsic<Address, Call, Signature, Extension>

Create a new signed transaction from a given call and extension using the provided signature data.
§

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

§

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

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

fn type_info() -> Type

Returns the static type identifier for Self.
§

impl<Address, Call, Signature, Extension> EncodeLike for UncheckedExtrinsic<Address, Call, Signature, Extension>
where UncheckedExtrinsic<Address, Call, Signature, Extension>: Encode,

§

impl<Address, Call, Signature, Extension> Eq for UncheckedExtrinsic<Address, Call, Signature, Extension>
where Address: Eq, Call: Eq, Signature: Eq, Extension: Eq,

§

impl<Address, Call, Signature, Extension> StructuralPartialEq for UncheckedExtrinsic<Address, Call, Signature, Extension>