pub trait BlockToRelayHeightConversion<T: Config> {
// Required methods
fn convert_block_number_to_relay_height(
block_number: BlockNumberFor<T>,
) -> RelayBlockNumberOf<T>;
fn convert_block_length_to_relay_length(
block_number: BlockNumberFor<T>,
) -> RelayBlockNumberOf<T>;
}
Required Methods§
sourcefn convert_block_number_to_relay_height(
block_number: BlockNumberFor<T>,
) -> RelayBlockNumberOf<T>
fn convert_block_number_to_relay_height( block_number: BlockNumberFor<T>, ) -> RelayBlockNumberOf<T>
Converts absolute value of parachain block number to relay chain block number
sourcefn convert_block_length_to_relay_length(
block_number: BlockNumberFor<T>,
) -> RelayBlockNumberOf<T>
fn convert_block_length_to_relay_length( block_number: BlockNumberFor<T>, ) -> RelayBlockNumberOf<T>
Converts parachain block length into equivalent relay chain block length
Object Safety§
This trait is not object safe.