espresso_types/v0/v0_4/
state_cert.rs1use derive_more::From;
4use hotshot_types::{
5    simple_certificate::LightClientStateUpdateCertificateV2, traits::node_implementation::NodeType,
6};
7use serde::{Deserialize, Serialize};
8
9#[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq, From)]
18#[serde(bound = "")]
19pub struct StateCertQueryDataV2<Types: NodeType>(pub LightClientStateUpdateCertificateV2<Types>);
20
21impl<Types> From<StateCertQueryDataV2<Types>> for crate::v0_3::StateCertQueryDataV1<Types>
22where
23    Types: NodeType,
24{
25    fn from(cert: StateCertQueryDataV2<Types>) -> Self {
26        Self(cert.0.into())
27    }
28}