1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) 2022 MASSA LABS <info@massa.net>
//! Definition and exports of the PoS types and errors.
//!
//! Define also the Selector worker that compute in background the draws for
//! the future cycles

#![warn(missing_docs)]
#![warn(unused_imports)]

mod config;
mod controller_traits;
mod cycle_info;
mod deferred_credits;
mod error;
mod pos_changes;
mod pos_final_state;
mod settings;

pub use config::PoSConfig;
#[cfg(any(test, feature = "test-exports"))]
pub use controller_traits::{MockSelectorController, MockSelectorControllerWrapper};
pub use controller_traits::{Selection, SelectorController, SelectorManager};
pub use cycle_info::*;
pub use deferred_credits::*;
pub use error::*;
pub use pos_changes::*;
pub use pos_final_state::*;
pub use settings::SelectorConfig;

#[cfg(feature = "test-exports")]
pub mod test_exports;