Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions contracts/predictify-hybrid/src/err.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,19 @@ pub enum Error {
RateLimitExceeded = 505,
/// Cumulative extension cap reached; no further extensions allowed for this market.
CumulativeExtensionCapHit = 506,
/// A market state transition was attempted that is not permitted by the state machine.
///
/// This error is returned by `MarketStateLogic::validate_state_transition` whenever the
/// requested `(from, to)` pair is not in the set of legal edges. Callers should treat
/// this as a terminal error β€” the transition will never succeed without first moving the
/// market through intermediate states that are part of the legal path.
///
/// # Examples of illegal transitions
///
/// * `Resolved β†’ Active` (cannot reopen a resolved market)
/// * `Closed β†’ Ended` (terminal state, no transitions allowed)
/// * `Active β†’ Active` (self-loops are not valid transitions)
IllegalMarketStateTransition = 507,
}

// ===== ERROR CATEGORIZATION AND RECOVERY SYSTEM =====
Expand Down
2 changes: 2 additions & 0 deletions contracts/predictify-hybrid/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ mod circuit_breaker_tests;
// mod upgrade_manager_tests;
#[cfg(test)]
mod upgrade_manager_tests;
#[cfg(test)]
mod market_state_matrix_tests;

// #[cfg(any())]
// mod query_tests;
Expand Down
Loading
Loading