pub trait Chain: ChainBase + Clone {
type SignedBlock: Member + Serialize + DeserializeOwned + BlockWithJustification<Self::Header>;
type Call: Clone + Codec + Debug + Send + Sync;
const NAME: &'static str;
const BEST_FINALIZED_HEADER_ID_METHOD: &'static str;
const FREE_HEADERS_INTERVAL_METHOD: &'static str;
const AVERAGE_BLOCK_INTERVAL: Duration;
}
Expand description
Substrate-based chain from minimal relay-client point of view.
Required Associated Constants§
Sourceconst BEST_FINALIZED_HEADER_ID_METHOD: &'static str
const BEST_FINALIZED_HEADER_ID_METHOD: &'static str
Name of the runtime API method that is returning best known finalized header number and hash (as tuple).
Keep in mind that this method is normally provided by the other chain, which is bridged with this chain.
Sourceconst FREE_HEADERS_INTERVAL_METHOD: &'static str
const FREE_HEADERS_INTERVAL_METHOD: &'static str
Name of the runtime API method that is returning interval between source chain headers that may be submitted for free to the target chain.
Keep in mind that this method is normally provided by the other chain, which is bridged with this chain.
Sourceconst AVERAGE_BLOCK_INTERVAL: Duration
const AVERAGE_BLOCK_INTERVAL: Duration
Average block interval.
How often blocks are produced on that chain. It’s suggested to set this value to match the block time of the chain.
Required Associated Types§
Sourcetype SignedBlock: Member + Serialize + DeserializeOwned + BlockWithJustification<Self::Header>
type SignedBlock: Member + Serialize + DeserializeOwned + BlockWithJustification<Self::Header>
Block type.
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.