pub trait ParachainToRelayHeadersCliBridge: CliBridgeBasewhere
Self::Source: Parachain,{
type SourceRelay: Chain<BlockNumber = RelayBlockNumber, Hash = RelayBlockHash, Hasher = RelayBlockHasher> + ChainWithRuntimeVersion + RelayChain;
type ParachainFinality: SubstrateParachainsPipeline<SourceRelayChain = Self::SourceRelay, SourceParachain = Self::Source, TargetChain = Self::Target>;
type RelayFinality: SubstrateFinalitySyncPipeline<SourceChain = Self::SourceRelay, TargetChain = Self::Target>;
}
Expand description
Bridge representation that can be used from the CLI for relaying headers from a parachain to a relay chain.
Required Associated Types§
Sourcetype SourceRelay: Chain<BlockNumber = RelayBlockNumber, Hash = RelayBlockHash, Hasher = RelayBlockHasher> + ChainWithRuntimeVersion + RelayChain
type SourceRelay: Chain<BlockNumber = RelayBlockNumber, Hash = RelayBlockHash, Hasher = RelayBlockHasher> + ChainWithRuntimeVersion + RelayChain
The CliBridgeBase
type represents the parachain in this situation.
We need to add an extra type for the relay chain.
Sourcetype ParachainFinality: SubstrateParachainsPipeline<SourceRelayChain = Self::SourceRelay, SourceParachain = Self::Source, TargetChain = Self::Target>
type ParachainFinality: SubstrateParachainsPipeline<SourceRelayChain = Self::SourceRelay, SourceParachain = Self::Source, TargetChain = Self::Target>
Finality proofs synchronization pipeline (source parachain -> target).
Sourcetype RelayFinality: SubstrateFinalitySyncPipeline<SourceChain = Self::SourceRelay, TargetChain = Self::Target>
type RelayFinality: SubstrateFinalitySyncPipeline<SourceChain = Self::SourceRelay, TargetChain = Self::Target>
Finality proofs synchronization pipeline (source relay chain -> target).
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.