use crate::error::GovernanceError;
use crate::governance::types::{GovernanceEffect, GovernanceState, SignedGovernanceMessage};
use crate::traits::GovernanceEngine;
pub struct PermissionlessEngine;
impl GovernanceEngine for PermissionlessEngine {
fn verify_action(
&self,
_state: &mut GovernanceState,
_msg: &SignedGovernanceMessage,
_current_time_sec: u64,
) -> Result<Option<GovernanceEffect>, GovernanceError> {
Err(GovernanceError::GovernanceDisabled)
}
fn execute_action(
&self,
_state: &mut GovernanceState,
_msg: &SignedGovernanceMessage,
_current_time_sec: u64,
) -> Option<GovernanceEffect> {
None
}
}