[−][src]Trait sp_runtime::traits::Extrinsic
Something that acts like an Extrinsic
.
Associated Types
type Call
[src]
The function call.
type SignaturePayload
[src]
The payload we carry for signed extrinsics.
Usually it will contain a Signature
and
may include some additional data that are specific to signed
extrinsics.
Provided methods
pub fn is_signed(&self) -> Option<bool>
[src]
Is this Extrinsic
signed?
If no information are available about signed/unsigned, None
should be returned.
pub fn new(
_call: Self::Call,
_signed_data: Option<Self::SignaturePayload>
) -> Option<Self>
[src]
_call: Self::Call,
_signed_data: Option<Self::SignaturePayload>
) -> Option<Self>
Create new instance of the extrinsic.
Extrinsics can be split into:
- Inherents (no signature; created by validators during block production)
- Unsigned Transactions (no signature; represent "system calls" or other special kinds of calls)
- Signed Transactions (with signature; a regular transactions with known origin)
Implementors
impl Extrinsic for OpaqueExtrinsic
[src]
type Call = ()
type SignaturePayload = ()
impl<Address, Call, Signature, Extra: SignedExtension> Extrinsic for UncheckedExtrinsic<Address, Call, Signature, Extra>
[src]
type Call = Call
type SignaturePayload = (Address, Signature, Extra)
pub fn is_signed(&self) -> Option<bool>
[src]
pub fn new(
function: Call,
signed_data: Option<Self::SignaturePayload>
) -> Option<Self>
[src]
function: Call,
signed_data: Option<Self::SignaturePayload>
) -> Option<Self>
impl<Call: Codec + Sync + Send, Extra> Extrinsic for TestXt<Call, Extra>
[src]
type Call = Call
type SignaturePayload = (u64, Extra)
pub fn is_signed(&self) -> Option<bool>
[src]
pub fn new(c: Call, sig: Option<Self::SignaturePayload>) -> Option<Self>
[src]
impl<Xt> Extrinsic for ExtrinsicWrapper<Xt> where
Xt: MallocSizeOf,
[src]
Xt: MallocSizeOf,