mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 12:49:23 +00:00
* add node side unit test * complete rotation test for all networks * set up the fast-epoch docker file * fix pr comments * add coordinator side rotation test * bug fixes * Remove EPOCH_INTERVAL * Minor nits * Add note on origin of publish_tx function in tests/coordinator * Correct ThresholdParams assert_eq * fmt * Correct detection of handover completion * Restore key gen message match from develop It was modified in response to the handover completion bug, which has now been resolved. * bug fixes * Correct invalid constant * Typo fixes * remove selecting participant to remove at random --------- Co-authored-by: Luke Parker <lukeparker5132@gmail.com>
26 lines
920 B
Rust
26 lines
920 B
Rust
use sp_consensus_grandpa::EquivocationProof;
|
|
|
|
use serai_primitives::{BlockNumber, SeraiAddress};
|
|
|
|
#[derive(Clone, PartialEq, Eq, Debug, scale::Encode, scale::Decode, scale_info::TypeInfo)]
|
|
pub struct ReportEquivocation {
|
|
pub equivocation_proof: alloc::boxed::Box<EquivocationProof<[u8; 32], BlockNumber>>,
|
|
pub key_owner_proof: SeraiAddress,
|
|
}
|
|
|
|
#[derive(Clone, PartialEq, Eq, Debug, scale::Encode, scale::Decode, scale_info::TypeInfo)]
|
|
pub enum Call {
|
|
report_equivocation(ReportEquivocation),
|
|
report_equivocation_unsigned(ReportEquivocation),
|
|
}
|
|
|
|
#[derive(Clone, PartialEq, Eq, Debug, scale::Encode, scale::Decode, scale_info::TypeInfo)]
|
|
#[cfg_attr(feature = "serde", derive(serde::Serialize))]
|
|
#[cfg_attr(all(feature = "std", feature = "serde"), derive(serde::Deserialize))]
|
|
pub enum Event {
|
|
NewAuthorities { authority_set: alloc::vec::Vec<(SeraiAddress, u64)> },
|
|
// TODO: Remove these
|
|
Paused,
|
|
Resumed,
|
|
}
|