espresso_types/v0/v0_3/state_cert.rs
1//! State certificate query data type
2
3use derive_more::From;
4use hotshot_types::{
5    simple_certificate::LightClientStateUpdateCertificateV1,
6    traits::node_implementation::NodeType,
7};
8use serde::{Deserialize, Serialize};
9
10/// A wrapper around `LightClientStateUpdateCertificateV1`.
11///
12/// This struct is returned by the `state-cert` API endpoint for backward compatibility.
13#[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq, From)]
14#[serde(bound = "")]
15pub struct StateCertQueryDataV1<Types: NodeType>(pub LightClientStateUpdateCertificateV1<Types>);