Trait relay_substrate_client::Chain
source · 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 Types§
sourcetype SignedBlock: Member + Serialize + DeserializeOwned + BlockWithJustification<Self::Header>
type SignedBlock: Member + Serialize + DeserializeOwned + BlockWithJustification<Self::Header>
Block type.
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.
Object Safety§
This trait is not object safe.