From e6235101e5ef39a46a10ef40466f3f60805b9519 Mon Sep 17 00:00:00 2001 From: laurentketterle-hub Date: Wed, 12 Aug 2026 23:12:22 +0200 Subject: [PATCH] docs: clarify which ProjectStatus variants are currently produced (Closes #329) Active, Funded, and Completed are unreachable today (only Pending and Archived are written). Document them as reserved for future vault-managed transitions so downstream consumers do not branch on dead states. Signed-off-by: laurentketterle-hub --- project_registry/src/types.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/project_registry/src/types.rs b/project_registry/src/types.rs index 0051d8e..4b3af30 100644 --- a/project_registry/src/types.rs +++ b/project_registry/src/types.rs @@ -105,6 +105,14 @@ pub enum CertificationStatus { Revoked = 3, } +/// The lifecycle status of a project (#27). +/// +/// Which variants this contract can produce today: project creation writes +/// `Pending`, and `archive_project` writes `Archived`. The `Active`, `Funded`, +/// and `Completed` variants are reserved for future vault-managed lifecycle +/// transitions and are not currently assigned by this contract; do not branch +/// on them in downstream logic until the cross-contract funding-status call is +/// implemented (see #329). #[contracttype] #[derive(Clone, Debug, PartialEq)] #[repr(u32)]