2018-08-23 08:32:18 +00:00
|
|
|
use super::super::utils::types::Hash256;
|
2018-08-28 07:51:57 +00:00
|
|
|
use super::chain_config::ChainConfig;
|
|
|
|
use super::shard_and_committee::ShardAndCommittee;
|
|
|
|
use super::validator_record::ValidatorRecord;
|
2018-08-23 08:32:18 +00:00
|
|
|
|
2018-08-24 06:01:57 +00:00
|
|
|
mod attestation_parent_hashes;
|
2018-08-28 07:51:57 +00:00
|
|
|
mod shuffling;
|
|
|
|
mod validator_allocation;
|
2018-08-24 06:01:57 +00:00
|
|
|
|
|
|
|
pub use self::attestation_parent_hashes::attestation_parent_hashes;
|
2018-08-28 07:51:57 +00:00
|
|
|
pub use self::validator_allocation::get_new_shuffling;
|
|
|
|
pub use self::shuffling::shuffle;
|
2018-08-23 08:32:18 +00:00
|
|
|
|
|
|
|
#[derive(Debug)]
|
|
|
|
pub enum TransitionError {
|
|
|
|
IntWrapping,
|
|
|
|
OutOfBounds,
|
2018-08-24 04:33:05 +00:00
|
|
|
InvalidInput(String),
|
2018-08-23 08:32:18 +00:00
|
|
|
}
|
|
|
|
|
2018-08-24 06:01:24 +00:00
|
|
|
|
|
|
|
|