rialo-rex-processor-interface 0.4.0-alpha.0

Instructions and constructors for the program processing REX updates from validators
Documentation
// Copyright (c) Subzero Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use rialo_s_instruction::error::InstructionError;

/// Error type for REX Registry operations
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum RexProcessorError {
    /// Invalid report data
    ReportData,
    /// Invalid event data
    EventData,
    /// Invalid slot to report
    Slot,
}

impl From<RexProcessorError> for InstructionError {
    fn from(error: RexProcessorError) -> Self {
        InstructionError::Custom(error as u32)
    }
}