pub trait ChainInfo: Sized {
type Block: BlockT;
type Runtime: Config;
type RuntimeApi: ConstructRuntimeApi<Self::Block, FullClientFor<Self>> + Send + Sync + 'static;
type SignedExtras: SignedExtension;
// Required method
fn signed_extras(
from: <Self::Runtime as Config>::AccountId,
) -> Self::SignedExtras;
}
Expand description
Wrapper trait for concrete type required by this testing framework.
Required Associated Types§
Sourcetype RuntimeApi: ConstructRuntimeApi<Self::Block, FullClientFor<Self>> + Send + Sync + 'static
type RuntimeApi: ConstructRuntimeApi<Self::Block, FullClientFor<Self>> + Send + Sync + 'static
RuntimeApi
Sourcetype SignedExtras: SignedExtension
type SignedExtras: SignedExtension
The signed extras required by the runtime
Required Methods§
Sourcefn signed_extras(
from: <Self::Runtime as Config>::AccountId,
) -> Self::SignedExtras
fn signed_extras( from: <Self::Runtime as Config>::AccountId, ) -> Self::SignedExtras
This is for cases you don’t yet have the simnode runtime api implemented. this function is caled in an externalities provided environment, so feel free to read state.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.