Trait ChainInfo

Source
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§

Source

type Block: BlockT

Opaque block type

Source

type Runtime: Config

Runtime

Source

type RuntimeApi: ConstructRuntimeApi<Self::Block, FullClientFor<Self>> + Send + Sync + 'static

RuntimeApi

Source

type SignedExtras: SignedExtension

The signed extras required by the runtime

Required Methods§

Source

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.

Implementors§