Skip to main content

contract_state

Function contract_state 

Source
pub fn contract_state(
    precedent_met: bool,
    subsequent_occurred: bool,
    performed: bool,
    deadline_passed: bool,
) -> ContractState
Expand description

Contract lifecycle (precedence order): an unmet condition precedentPending; a condition subsequent that occurred → Discharged; performance → Performed; a passed deadline without performance → Breached; otherwise Active.