pub struct UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra> {
pub signature: Option<(Address, Signature, SignedExtra)>,
pub function: Call,
}👎Deprecated: Use the
UncheckedExtrinsic with Version 5 insteadExpand description
Mirrors the currently used Extrinsic format (V4) from substrate. Has less traits and methods though. The SignedExtra used does not need to implement SignedExtension here.
Fields§
§signature: Option<(Address, Signature, SignedExtra)>👎Deprecated: Use the
UncheckedExtrinsic with Version 5 insteadThe signature, address, number of extrinsics have come before from the same signer and an era describing the longevity of this transaction, if this is a signed extrinsic.
function: Call👎Deprecated: Use the
UncheckedExtrinsic with Version 5 insteadThe function that should be called.
Implementations§
Source§impl<Address, Call, Signature, SignedExtra> UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
impl<Address, Call, Signature, SignedExtra> UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
Sourcepub fn new_signed(
function: Call,
signed: Address,
signature: Signature,
extra: SignedExtra,
) -> Self
pub fn new_signed( function: Call, signed: Address, signature: Signature, extra: SignedExtra, ) -> Self
New instance of a signed extrinsic.
Sourcepub fn new_unsigned(function: Call) -> Self
pub fn new_unsigned(function: Call) -> Self
New instance of an unsigned extrinsic.
Trait Implementations§
Source§impl<Address: Clone, Call: Clone, Signature: Clone, SignedExtra: Clone> Clone for UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
impl<Address: Clone, Call: Clone, Signature: Clone, SignedExtra: Clone> Clone for UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
Source§fn clone(&self) -> UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
fn clone(&self) -> UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
Returns a duplicate 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<Address, Call, Signature, SignedExtra> Debug for UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
impl<Address, Call, Signature, SignedExtra> Debug for UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
Source§impl<Address, Call, Signature, SignedExtra> Decode for UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
impl<Address, Call, Signature, SignedExtra> Decode for UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
Source§fn decode<I: Input>(input: &mut I) -> Result<Self, Error>
fn decode<I: Input>(input: &mut I) -> Result<Self, Error>
Attempt to deserialise the value from input.
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: 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
Source§impl<'a, Address, Call, Signature, SignedExtra> Deserialize<'a> for UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
impl<'a, Address, Call, Signature, SignedExtra> Deserialize<'a> for UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
Source§fn deserialize<D>(de: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(de: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Address, Call, Signature, SignedExtra> Encode for UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
impl<Address, Call, Signature, SignedExtra> Encode for UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<T>(&self, dest: &mut T)
fn encode_to<T>(&self, dest: &mut T)
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl<Address, Call, Signature, SignedExtra> Extrinsic for UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
impl<Address, Call, Signature, SignedExtra> Extrinsic for UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
Source§type Call = Call
type Call = Call
👎Deprecated: Use
ExtrinsicLike along with the CreateTransaction trait family insteadThe function call.
Source§type SignaturePayload = (Address, Signature, SignedExtra)
type SignaturePayload = (Address, Signature, SignedExtra)
👎Deprecated: Use
ExtrinsicLike along with the CreateTransaction trait family insteadThe payload we carry for signed extrinsics. Read more
Source§fn is_signed(&self) -> Option<bool>
fn is_signed(&self) -> Option<bool>
👎Deprecated: Use
ExtrinsicLike along with the CreateTransaction trait family insteadIs this
Extrinsic signed?
If no information are available about signed/unsigned, None should be returned.Source§fn new(
function: Call,
signed_data: Option<Self::SignaturePayload>,
) -> Option<Self>
fn new( function: Call, signed_data: Option<Self::SignaturePayload>, ) -> Option<Self>
👎Deprecated: Use
ExtrinsicLike along with the CreateTransaction trait family insteadCreate a new old-school extrinsic, either a bare extrinsic if
_signed_data is None or
a signed transaction is it is Some.Source§impl<Address, Call, Signature, Extra> From<UncheckedExtrinsicV4<Address, Call, Signature, Extra>> for OpaqueExtrinsic
impl<Address, Call, Signature, Extra> From<UncheckedExtrinsicV4<Address, Call, Signature, Extra>> for OpaqueExtrinsic
Source§fn from(
extrinsic: UncheckedExtrinsicV4<Address, Call, Signature, Extra>,
) -> Self
fn from( extrinsic: UncheckedExtrinsicV4<Address, Call, Signature, Extra>, ) -> Self
Converts to this type from the input type.
Source§impl<Address: PartialEq, Call: PartialEq, Signature: PartialEq, SignedExtra: PartialEq> PartialEq for UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
impl<Address: PartialEq, Call: PartialEq, Signature: PartialEq, SignedExtra: PartialEq> PartialEq for UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
Source§fn eq(
&self,
other: &UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>,
) -> bool
fn eq( &self, other: &UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>, ) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<Address, Call, Signature, SignedExtra> Serialize for UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
impl<Address, Call, Signature, SignedExtra> Serialize for UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
impl<Address: Eq, Call: Eq, Signature: Eq, SignedExtra: Eq> Eq for UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
impl<Address, Call, Signature, SignedExtra> StructuralPartialEq for UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
Auto Trait Implementations§
impl<Address, Call, Signature, SignedExtra> Freeze for UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
impl<Address, Call, Signature, SignedExtra> RefUnwindSafe for UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>where
Call: RefUnwindSafe,
Address: RefUnwindSafe,
Signature: RefUnwindSafe,
SignedExtra: RefUnwindSafe,
impl<Address, Call, Signature, SignedExtra> Send for UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
impl<Address, Call, Signature, SignedExtra> Sync for UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
impl<Address, Call, Signature, SignedExtra> Unpin for UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
impl<Address, Call, Signature, SignedExtra> UnwindSafe for UncheckedExtrinsicV4<Address, Call, Signature, SignedExtra>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> ExtrinsicLike for Twhere
T: Extrinsic,
impl<T> ExtrinsicLike for Twhere
T: Extrinsic,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
impl<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
fn into_tuple(self) -> Dest
Source§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
Source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
Source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
Source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T. Read moreSource§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
Source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from.Source§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
Source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T.