use sp_consensus_babe::EquivocationProof; use serai_primitives::Header; #[derive(Clone, PartialEq, Eq, Debug, scale::Encode, scale::Decode, scale_info::TypeInfo)] pub struct ReportEquivocation { pub equivocation_proof: Box>, pub key_owner_proof: (), } // We could define a Babe Config here and use the literal pallet_babe::Call // The disadvantage to this would be the complexity and presence of junk fields such as `__Ignore` #[derive(Clone, PartialEq, Eq, Debug, scale::Encode, scale::Decode, scale_info::TypeInfo)] pub enum Call { report_equivocation(ReportEquivocation), report_equivocation_unsigned(ReportEquivocation), }