#![cfg_attr(not(feature = "std"), no_std)]
extern crate alloc;
#[cfg(feature = "std")]
mod client_side;
#[cfg(feature = "std")]
pub use client_side::*;
use sp_inherents::{CheckInherentsResult, InherentData};
use sp_runtime::{traits::Block as BlockT, ApplyExtrinsicResult};
sp_api::decl_runtime_apis! {
#[api_version(6)]
pub trait BlockBuilder {
fn apply_extrinsic(extrinsic: <Block as BlockT>::Extrinsic) -> ApplyExtrinsicResult;
#[changed_in(6)]
fn apply_extrinsic(
extrinsic: <Block as BlockT>::Extrinsic,
) -> sp_runtime::legacy::byte_sized_error::ApplyExtrinsicResult;
#[renamed("finalise_block", 3)]
fn finalize_block() -> <Block as BlockT>::Header;
fn inherent_extrinsics(
inherent: InherentData,
) -> alloc::vec::Vec<<Block as BlockT>::Extrinsic>;
fn check_inherents(block: <Block as BlockT>::LazyBlock, data: InherentData) -> CheckInherentsResult;
}
}