bcinr-cmca 26.10.11

CMCA-RDF deterministic substrate crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
use super::{
    contract::RecoveryDecision,
    receipt::{Outcome, Receipt},
};
pub const fn decide(r: &Receipt<'_>) -> RecoveryDecision {
    match r.outcome {
        Outcome::Unknown => RecoveryDecision::Reconcile,
        Outcome::Refused => RecoveryDecision::Replan,
        Outcome::Executed => RecoveryDecision::Terminal,
    }
}