mithril_aggregator/entities/
aggregator_epoch_settings.rs

1use mithril_common::entities::{CardanoTransactionsSigningConfig, ProtocolParameters};
2
3/// AggregatorEpochSettings represents the settings of an epoch
4#[derive(Clone, Debug, PartialEq)]
5pub struct AggregatorEpochSettings {
6    /// Protocol parameters
7    pub protocol_parameters: ProtocolParameters,
8
9    /// Cardano transactions signing configuration
10    pub cardano_transactions_signing_config: CardanoTransactionsSigningConfig,
11}
12
13impl AggregatorEpochSettings {
14    #[cfg(test)]
15    /// Create a dummy AggregatorEpochSettings
16    pub fn dummy() -> AggregatorEpochSettings {
17        use mithril_common::test_utils::fake_data;
18
19        let protocol_parameters = fake_data::protocol_parameters();
20        let cardano_transactions_signing_config = CardanoTransactionsSigningConfig::dummy();
21
22        // Aggregator Epoch settings
23        AggregatorEpochSettings {
24            protocol_parameters,
25            cardano_transactions_signing_config,
26        }
27    }
28}