cosmwasm_std/query/
ibc.rsuse schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use crate::ibc::IbcChannel;
use crate::prelude::*;
#[non_exhaustive]
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
#[serde(rename_all = "snake_case")]
pub enum IbcQuery {
    PortId {},
    #[deprecated = "Returns a potentially unbound number of results. If you think you have a valid usecase, please open an issue."]
    ListChannels { port_id: Option<String> },
    Channel {
        channel_id: String,
        port_id: Option<String>,
    },
    #[cfg(feature = "cosmwasm_2_2")]
    FeeEnabledChannel {
        port_id: Option<String>,
        channel_id: String,
    },
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
#[non_exhaustive]
pub struct PortIdResponse {
    pub port_id: String,
}
impl_response_constructor!(PortIdResponse, port_id: String);
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
#[non_exhaustive]
pub struct ListChannelsResponse {
    pub channels: Vec<IbcChannel>,
}
impl_response_constructor!(ListChannelsResponse, channels: Vec<IbcChannel>);
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
#[non_exhaustive]
pub struct ChannelResponse {
    pub channel: Option<IbcChannel>,
}
impl_response_constructor!(ChannelResponse, channel: Option<IbcChannel>);
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
#[non_exhaustive]
pub struct FeeEnabledChannelResponse {
    pub fee_enabled: bool,
}
impl_response_constructor!(FeeEnabledChannelResponse, fee_enabled: bool);