pub trait ParachainToRelayHeadersCliBridge: CliBridgeBase{
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).
Object Safety§
This trait is not object safe.