referrerpolicy=no-referrer-when-downgrade
substrate_test_runtime

Type Alias SignedPayload

Source
pub type SignedPayload = SignedPayload<RuntimeCall, TxExtension>;
Expand description

The payload being signed in transactions.

Aliased Type§

struct SignedPayload(/* private fields */);

Implementations

Source§

impl<Call, Extension> SignedPayload<Call, Extension>
where Call: Encode + Dispatchable, Extension: TransactionExtension<Call>,

Source

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.

Source

pub fn from_raw( call: Call, tx_ext: Extension, implicit: <Extension as TransactionExtension<Call>>::Implicit, ) -> SignedPayload<Call, Extension>

Create new SignedPayload from raw components.

Source

pub fn deconstruct( self, ) -> (Call, Extension, <Extension as TransactionExtension<Call>>::Implicit)

Deconstruct the payload into it’s components.

Trait Implementations

Source§

impl<Call, Extension> Encode for SignedPayload<Call, Extension>
where Call: Encode + Dispatchable, Extension: TransactionExtension<Call>,

Source§

fn using_encoded<R, F>(&self, f: F) -> R
where F: FnOnce(&[u8]) -> R,

Get an encoded version of this blake2_256-hashed payload.

§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
§

fn encode_to<T>(&self, dest: &mut T)
where T: 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 encoded_size(&self) -> usize

Calculates the encoded size. Read more
Source§

impl<Call, Extension> EncodeLike for SignedPayload<Call, Extension>
where Call: Encode + Dispatchable, Extension: TransactionExtension<Call>,