[][src]Struct sp_runtime::generic::UncheckedExtrinsic

pub struct UncheckedExtrinsic<Address, Call, Signature, Extra> where
    Extra: SignedExtension
{ pub signature: Option<(Address, Signature, Extra)>, pub function: Call, }

A extrinsic right from the external world. This is unchecked and so can contain a signature.

Fields

signature: Option<(Address, Signature, Extra)>

The 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

The function that should be called.

Implementations

impl<Address, Call, Signature, Extra: SignedExtension> UncheckedExtrinsic<Address, Call, Signature, Extra>[src]

pub fn new_signed(
    function: Call,
    signed: Address,
    signature: Signature,
    extra: Extra
) -> Self
[src]

New instance of a signed extrinsic aka "transaction".

pub fn new_unsigned(function: Call) -> Self[src]

New instance of an unsigned extrinsic aka "inherent".

Trait Implementations

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

type Checked = CheckedExtrinsic<AccountId, Call, Extra>

Returned if check succeeds.

impl<Address: Clone, Call: Clone, Signature: Clone, Extra: Clone> Clone for UncheckedExtrinsic<Address, Call, Signature, Extra> where
    Extra: SignedExtension
[src]

impl<Address, Call, Signature, Extra> Debug for UncheckedExtrinsic<Address, Call, Signature, Extra> where
    Address: Debug,
    Call: Debug,
    Extra: SignedExtension
[src]

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

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

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

impl<Address, Call, Signature, Extra> EncodeLike<UncheckedExtrinsic<Address, Call, Signature, Extra>> for UncheckedExtrinsic<Address, Call, Signature, Extra> where
    Address: Encode,
    Signature: Encode,
    Call: Encode,
    Extra: SignedExtension
[src]

impl<Address: Eq, Call: Eq, Signature: Eq, Extra: Eq> Eq for UncheckedExtrinsic<Address, Call, Signature, Extra> where
    Extra: SignedExtension
[src]

impl<Address, Call, Signature, Extra: SignedExtension> Extrinsic for UncheckedExtrinsic<Address, Call, Signature, Extra>[src]

type Call = Call

The function call.

type SignaturePayload = (Address, Signature, Extra)

The payload we carry for signed extrinsics. Read more

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

type SignedExtensions = Extra

Signed extensions attached to this Extrinsic.

impl<Address, Call, Signature, Extra> From<UncheckedExtrinsic<Address, Call, Signature, Extra>> for OpaqueExtrinsic where
    Address: Encode,
    Signature: Encode,
    Call: Encode,
    Extra: SignedExtension
[src]

impl<Address, Call, Signature, Extra> MallocSizeOf for UncheckedExtrinsic<Address, Call, Signature, Extra> where
    Extra: SignedExtension
[src]

impl<Address: PartialEq, Call: PartialEq, Signature: PartialEq, Extra: PartialEq> PartialEq<UncheckedExtrinsic<Address, Call, Signature, Extra>> for UncheckedExtrinsic<Address, Call, Signature, Extra> where
    Extra: SignedExtension
[src]

impl<Address: Encode, Signature: Encode, Call: Encode, Extra: SignedExtension> Serialize for UncheckedExtrinsic<Address, Call, Signature, Extra>[src]

impl<Address, Call, Signature, Extra> StructuralEq for UncheckedExtrinsic<Address, Call, Signature, Extra> where
    Extra: SignedExtension
[src]

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

Auto Trait Implementations

impl<Address, Call, Signature, Extra> RefUnwindSafe for UncheckedExtrinsic<Address, Call, Signature, Extra> where
    Address: RefUnwindSafe,
    Call: RefUnwindSafe,
    Extra: RefUnwindSafe,
    Signature: RefUnwindSafe
[src]

impl<Address, Call, Signature, Extra> Send for UncheckedExtrinsic<Address, Call, Signature, Extra> where
    Address: Send,
    Call: Send,
    Signature: Send
[src]

impl<Address, Call, Signature, Extra> Sync for UncheckedExtrinsic<Address, Call, Signature, Extra> where
    Address: Sync,
    Call: Sync,
    Signature: Sync
[src]

impl<Address, Call, Signature, Extra> Unpin for UncheckedExtrinsic<Address, Call, Signature, Extra> where
    Address: Unpin,
    Call: Unpin,
    Extra: Unpin,
    Signature: Unpin
[src]

impl<Address, Call, Signature, Extra> UnwindSafe for UncheckedExtrinsic<Address, Call, Signature, Extra> where
    Address: UnwindSafe,
    Call: UnwindSafe,
    Extra: UnwindSafe,
    Signature: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedConversion for T[src]

impl<S> Codec for S where
    S: Encode + Decode
[src]

impl<T> DecodeAll for T where
    T: Decode
[src]

impl<T> DecodeLimit for T where
    T: Decode
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
    T: Encode
[src]

impl<'_, T> EncodeLike<&'_ T> for T where
    T: Encode
[src]

impl<'_, T> EncodeLike<&'_ mut T> for T where
    T: Encode
[src]

impl<T> EncodeLike<Arc<T>> for T where
    T: Encode
[src]

impl<T> EncodeLike<Box<T, Global>> for T where
    T: Encode
[src]

impl<'a, T> EncodeLike<Cow<'a, T>> for T where
    T: Encode + ToOwned
[src]

impl<T> EncodeLike<Rc<T>> for T where
    T: Encode
[src]

impl<T> From<T> for T[src]

impl<S> FullCodec for S where
    S: Decode + FullEncode
[src]

impl<S> FullEncode for S where
    S: Encode + EncodeLike<S>, 
[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 
[src]

pub fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> KeyedVec for T where
    T: Codec
[src]

impl<T> MallocSizeOfExt for T where
    T: MallocSizeOf
[src]

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeMallocSizeOf for T where
    T: MallocSizeOf
[src]

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> MaybeSerialize for T where
    T: Serialize
[src]

impl<T> MaybeSerializeDeserialize for T where
    T: DeserializeOwned + Serialize
[src]

impl<T> Member for T where
    T: 'static + Clone + PartialEq<T> + Eq + Send + Sync + Debug
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T, S> UniqueSaturatedInto<T> for S where
    T: Bounded,
    S: TryInto<T>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,