Trait sc_simnode::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.

Object Safety§

This trait is not object safe.

Implementors§