Skip to main content

awaken_runtime/phase/
reports.rs

1use awaken_contract::model::Phase;
2
3#[derive(Debug, Clone, PartialEq, Eq)]
4pub struct EffectDispatchReport {
5    pub attempted: usize,
6    pub dispatched: usize,
7    pub failed: usize,
8}
9
10#[derive(Debug, Clone, PartialEq, Eq)]
11pub struct SubmitCommandReport {
12    pub revision: u64,
13    pub effect_report: EffectDispatchReport,
14}
15
16pub const DEFAULT_MAX_PHASE_ROUNDS: usize = 16;
17
18#[derive(Debug, Clone, PartialEq, Eq)]
19pub struct PhaseRunReport {
20    pub phase: Phase,
21    pub rounds: usize,
22    pub processed_scheduled_actions: usize,
23    pub skipped_scheduled_actions: usize,
24    pub failed_scheduled_actions: usize,
25    pub generated_effects: usize,
26    pub effect_report: EffectDispatchReport,
27}