node/snark/user_command_verify/
snark_user_command_verify_actions.rs

1use snark::user_command_verify_effectful::SnarkUserCommandVerifyEffectfulAction;
2
3use super::*;
4
5impl redux::EnablingCondition<crate::State> for SnarkUserCommandVerifyAction {
6    fn is_enabled(&self, state: &crate::State, time: redux::Timestamp) -> bool {
7        self.is_enabled(&state.snark, time)
8    }
9}
10
11impl From<SnarkUserCommandVerifyAction> for crate::Action {
12    fn from(value: SnarkUserCommandVerifyAction) -> Self {
13        Self::Snark(value.into())
14    }
15}
16
17impl From<SnarkUserCommandVerifyEffectfulAction> for crate::Action {
18    fn from(value: SnarkUserCommandVerifyEffectfulAction) -> Self {
19        Self::Snark(value.into())
20    }
21}