pub type BridgedStoredHeaderData<T, I> = StoredHeaderData<BridgedBlockNumber<T, I>, BridgedBlockHash<T, I>>;
Expand description
Header data of the bridged chain that is stored at this chain by this pallet.
Aliased Type§
struct BridgedStoredHeaderData<T, I> {
pub number: <<T as Config<I>>::BridgedChain as Chain>::BlockNumber,
pub state_root: <<T as Config<I>>::BridgedChain as Chain>::Hash,
}
Fields§
§number: <<T as Config<I>>::BridgedChain as Chain>::BlockNumber
Header number.
state_root: <<T as Config<I>>::BridgedChain as Chain>::Hash
Header state root.
Trait Implementations
§impl<Number, Hash> Decode for StoredHeaderData<Number, Hash>where
Number: Decode,
Hash: Decode,
impl<Number, Hash> Decode for StoredHeaderData<Number, Hash>where
Number: Decode,
Hash: Decode,
§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<StoredHeaderData<Number, Hash>, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<StoredHeaderData<Number, Hash>, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.
§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
§fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
Attempt to skip the encoded value from input. Read more
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
§impl<Number, Hash> Encode for StoredHeaderData<Number, Hash>where
Number: Encode,
Hash: Encode,
impl<Number, Hash> Encode for StoredHeaderData<Number, Hash>where
Number: Encode,
Hash: Encode,
§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.
§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.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
§impl<Number, Hash> MaxEncodedLen for StoredHeaderData<Number, Hash>where
Number: MaxEncodedLen,
Hash: MaxEncodedLen,
impl<Number, Hash> MaxEncodedLen for StoredHeaderData<Number, Hash>where
Number: MaxEncodedLen,
Hash: MaxEncodedLen,
§fn max_encoded_len() -> usize
fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.