: SourceClientBase {
/// Transaction tracker to track submitted transactions.
type TransactionTracker: TransactionTracker;
/// Report equivocation.
async fn report_equivocation(
&self,
at: P::Hash,
equivocation: P::EquivocationProof,
) -> Result;
}
/// Target client used in equivocation detection loop.
#[async_trait]
pub trait TargetClient: RelayClient {
/// Get the data stored by the target at the specified block for validating source finality
/// proofs.
async fn finality_verification_context(
&self,
at: P::TargetNumber,
) -> Result;
/// Get the finality info associated to the source headers synced with the target chain at the
/// specified block.
async fn synced_headers_finality_info(
&self,
at: P::TargetNumber,
) -> Result<
Vec>,
Self::Error,
>;
}