ibc_client_cw/types/
response.rs1use cosmwasm_schema::cw_serde;
3use ibc_core::client::types::{Height, Status};
4
5#[cw_serde]
7pub struct StatusResponse {
8 pub status: Status,
10}
11
12#[cw_serde]
14pub struct TimestampAtHeightResponse {
15 pub timestamp: u64,
17}
18
19#[cw_serde]
21pub struct VerifyClientMessageResponse {
22 pub is_valid: bool,
24}
25
26#[cw_serde]
28pub struct CheckForMisbehaviourResponse {
29 pub found_misbehaviour: bool,
31}
32
33#[cw_serde]
34pub struct ContractResult {
35 #[serde(skip_serializing_if = "Option::is_none")]
36 pub heights: Option<Vec<Height>>,
37}
38
39impl ContractResult {
40 pub fn success() -> Self {
41 Self { heights: None }
42 }
43
44 pub fn heights(mut self, heights: Vec<Height>) -> Self {
45 self.heights = Some(heights);
46 self
47 }
48}