Skip to content

Commit

Permalink
imp: removed some feature gating
Browse files Browse the repository at this point in the history
  • Loading branch information
srdtrk committed Jun 18, 2024
1 parent 7773fbd commit 68f717b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/types/query_msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ mod response {
}

/// The response for a successful ICA query.
#[non_exhaustive]
#[cw_serde]
pub enum IcaQueryResponse {
/// Response for a [`cosmwasm_std::BankQuery`].
Expand All @@ -119,7 +120,6 @@ mod response {
path: String,
},
/// Response for a [`cosmwasm_std::StakingQuery`].
#[cfg(feature = "staking")]
Staking(StakingQueryResponse),
}

Expand All @@ -139,7 +139,6 @@ mod response {
}

/// The response type for the [`cosmwasm_std::StakingQuery`] queries.
#[cfg(feature = "staking")]
#[cw_serde]
pub enum StakingQueryResponse {
/// Response for the [`cosmwasm_std::StakingQuery::BondedDenom`] query.
Expand All @@ -155,23 +154,20 @@ mod response {
}

/// Response for the [`cosmwasm_std::StakingQuery::Delegation`] query over ICA.
#[cfg(feature = "staking")]
#[cw_serde]
pub struct IcaDelegationResponse {
/// The delegation response if it exists.
pub delegation: Option<Delegation>,
}

/// Response for the [`cosmwasm_std::StakingQuery::AllDelegations`] query over ICA.
#[cfg(feature = "staking")]
#[cw_serde]
pub struct IcaAllDelegationsResponse {
/// The delegations.
pub delegations: Vec<Delegation>,
}

/// Delegation is the detailed information about a delegation.
#[cfg(feature = "staking")]
#[cw_serde]
pub struct Delegation {
/// The delegator address.
Expand Down

0 comments on commit 68f717b

Please sign in to comment.