#![cfg_attr(not(feature = "std"), no_std)]
use sp_runtime::{traits::Block as BlockT, ApplyExtrinsicResult};
use sp_inherents::{InherentData, CheckInherentsResult};
sp_api::decl_runtime_apis! {
#[api_version(4)]
pub trait BlockBuilder {
fn apply_extrinsic(extrinsic: <Block as BlockT>::Extrinsic) -> ApplyExtrinsicResult;
#[renamed("finalise_block", 3)]
fn finalize_block() -> <Block as BlockT>::Header;
fn inherent_extrinsics(
inherent: InherentData,
) -> sp_std::vec::Vec<<Block as BlockT>::Extrinsic>;
fn check_inherents(block: Block, data: InherentData) -> CheckInherentsResult;
fn random_seed() -> <Block as BlockT>::Hash;
}
}