pub fn contract_state(
precedent_met: bool,
subsequent_occurred: bool,
performed: bool,
deadline_passed: bool,
) -> ContractStateExpand description
Contract lifecycle (precedence order): an unmet condition precedent → Pending; a
condition subsequent that occurred → Discharged; performance → Performed; a passed
deadline without performance → Breached; otherwise Active.