pub trait CollectCollationInfo<Block: BlockT>: Core<Block> {
// Provided methods
fn collect_collation_info_before_version_2(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<CollationInfoV1, ApiError> { ... }
fn collect_collation_info_before_version_2_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<CollationInfoV1, ApiError> { ... }
fn collect_collation_info(
&self,
__runtime_api_at_param__: &BlockId<Block>,
header: &Block::Header
) -> Result<CollationInfo, ApiError> { ... }
fn collect_collation_info_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
header: &Block::Header
) -> Result<CollationInfo, ApiError> { ... }
}
Expand description
Runtime api to collect information about a collation.
Provided Methods§
sourcefn collect_collation_info_before_version_2(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<CollationInfoV1, ApiError>
fn collect_collation_info_before_version_2( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<CollationInfoV1, ApiError>
👎Deprecated
Collect information about a collation.
sourcefn collect_collation_info_before_version_2_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<CollationInfoV1, ApiError>
fn collect_collation_info_before_version_2_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<CollationInfoV1, ApiError>
👎Deprecated
Collect information about a collation.
sourcefn collect_collation_info(
&self,
__runtime_api_at_param__: &BlockId<Block>,
header: &Block::Header
) -> Result<CollationInfo, ApiError>
fn collect_collation_info( &self, __runtime_api_at_param__: &BlockId<Block>, header: &Block::Header ) -> Result<CollationInfo, ApiError>
Collect information about a collation.
The given header
is the header of the built block for that
we are collecting the collation info for.
sourcefn collect_collation_info_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
header: &Block::Header
) -> Result<CollationInfo, ApiError>
fn collect_collation_info_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, header: &Block::Header ) -> Result<CollationInfo, ApiError>
Collect information about a collation.
The given header
is the header of the built block for that
we are collecting the collation info for.