pub type SignedPayload = SignedPayload<RuntimeCall, SignedExtra>;
Expand description
The payload being signed in transactions.
Aliased Type§
struct SignedPayload(/* private fields */);
Implementations
§impl<Call, Extension> SignedPayload<Call, Extension>where
Call: Encode + Dispatchable,
Extension: TransactionExtension<Call>,
impl<Call, Extension> SignedPayload<Call, Extension>where
Call: Encode + Dispatchable,
Extension: TransactionExtension<Call>,
pub fn new(
call: Call,
tx_ext: Extension,
) -> Result<SignedPayload<Call, Extension>, TransactionValidityError>
pub fn new( call: Call, tx_ext: Extension, ) -> Result<SignedPayload<Call, Extension>, TransactionValidityError>
Create new SignedPayload
for extrinsic format version 4.
This function may fail if implicit
of Extension
is not available.
pub fn from_raw(
call: Call,
tx_ext: Extension,
implicit: <Extension as TransactionExtension<Call>>::Implicit,
) -> SignedPayload<Call, Extension>
pub fn from_raw( call: Call, tx_ext: Extension, implicit: <Extension as TransactionExtension<Call>>::Implicit, ) -> SignedPayload<Call, Extension>
Create new SignedPayload
from raw components.
pub fn deconstruct(
self,
) -> (Call, Extension, <Extension as TransactionExtension<Call>>::Implicit)
pub fn deconstruct( self, ) -> (Call, Extension, <Extension as TransactionExtension<Call>>::Implicit)
Deconstruct the payload into it’s components.
Trait Implementations
§impl<Call, Extension> Encode for SignedPayload<Call, Extension>where
Call: Encode + Dispatchable,
Extension: TransactionExtension<Call>,
impl<Call, Extension> Encode for SignedPayload<Call, Extension>where
Call: Encode + Dispatchable,
Extension: TransactionExtension<Call>,
§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Get an encoded version of this blake2_256
-hashed payload.
§fn encode_to<T>(&self, dest: &mut T)where
T: Output + ?Sized,
fn encode_to<T>(&self, dest: &mut T)where
T: Output + ?Sized,
Convert self to a slice and append it to the destination.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more