bcinr-cmca 26.10.11

CMCA-RDF deterministic substrate crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::contract::RecoveryDecision;
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum Outcome {
    Executed,
    Refused,
    Unknown,
}
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub struct Receipt<'a> {
    pub effect_id: &'a str,
    pub replay_id: &'a str,
    pub outcome: Outcome,
}
impl Receipt<'_> {
    pub const fn recovery(&self) -> RecoveryDecision {
        super::recovery::decide(self)
    }
}