use persistence_std_derive::CosmwasmExt;
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.Params")]
pub struct Params {
#[prost(uint64, tag = "1")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub vote_period: u64,
#[prost(string, tag = "2")]
pub vote_threshold: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub reward_band: ::prost::alloc::string::String,
#[prost(uint64, tag = "4")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub reward_distribution_window: u64,
#[prost(message, repeated, tag = "5")]
pub accept_list: ::prost::alloc::vec::Vec<Denom>,
#[prost(string, tag = "6")]
pub slash_fraction: ::prost::alloc::string::String,
#[prost(uint64, tag = "7")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub slash_window: u64,
#[prost(string, tag = "8")]
pub min_valid_per_window: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.Denom")]
pub struct Denom {
#[prost(string, tag = "1")]
pub base_denom: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub symbol_denom: ::prost::alloc::string::String,
#[prost(uint32, tag = "3")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub exponent: u32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.AggregateExchangeRatePrevote")]
pub struct AggregateExchangeRatePrevote {
#[prost(string, tag = "1")]
pub hash: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub voter: ::prost::alloc::string::String,
#[prost(uint64, tag = "3")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub submit_block: u64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.AggregateExchangeRateVote")]
pub struct AggregateExchangeRateVote {
#[prost(message, repeated, tag = "1")]
pub exchange_rate_tuples: ::prost::alloc::vec::Vec<ExchangeRateTuple>,
#[prost(string, tag = "2")]
pub voter: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.ExchangeRateTuple")]
pub struct ExchangeRateTuple {
#[prost(string, tag = "1")]
pub denom: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub exchange_rate: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.GenesisState")]
pub struct GenesisState {
#[prost(message, optional, tag = "1")]
pub params: ::core::option::Option<Params>,
#[prost(message, repeated, tag = "2")]
pub feeder_delegations: ::prost::alloc::vec::Vec<FeederDelegation>,
#[prost(message, repeated, tag = "3")]
pub exchange_rates: ::prost::alloc::vec::Vec<ExchangeRateTuple>,
#[prost(message, repeated, tag = "4")]
pub miss_counters: ::prost::alloc::vec::Vec<MissCounter>,
#[prost(message, repeated, tag = "5")]
pub aggregate_exchange_rate_prevotes: ::prost::alloc::vec::Vec<AggregateExchangeRatePrevote>,
#[prost(message, repeated, tag = "6")]
pub aggregate_exchange_rate_votes: ::prost::alloc::vec::Vec<AggregateExchangeRateVote>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.FeederDelegation")]
pub struct FeederDelegation {
#[prost(string, tag = "1")]
pub feeder_address: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub validator_address: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.MissCounter")]
pub struct MissCounter {
#[prost(string, tag = "1")]
pub validator_address: ::prost::alloc::string::String,
#[prost(uint64, tag = "2")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub miss_counter: u64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.QueryExchangeRateRequest")]
#[proto_query(
path = "/persistence.oracle.v1beta1.Query/ExchangeRate",
response_type = QueryExchangeRateResponse
)]
pub struct QueryExchangeRateRequest {
#[prost(string, tag = "1")]
pub denom: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.QueryExchangeRateResponse")]
pub struct QueryExchangeRateResponse {
#[prost(string, tag = "1")]
pub exchange_rate: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.QueryAllExchangeRatesRequest")]
#[proto_query(
path = "/persistence.oracle.v1beta1.Query/AllExchangeRates",
response_type = QueryAllExchangeRatesResponse
)]
pub struct QueryAllExchangeRatesRequest {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.QueryAllExchangeRatesResponse")]
pub struct QueryAllExchangeRatesResponse {
#[prost(message, repeated, tag = "1")]
pub exchange_rates:
::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::DecCoin>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.QueryActiveExchangeRatesRequest")]
#[proto_query(
path = "/persistence.oracle.v1beta1.Query/ActiveExchangeRates",
response_type = QueryActiveExchangeRatesResponse
)]
pub struct QueryActiveExchangeRatesRequest {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.QueryActiveExchangeRatesResponse")]
pub struct QueryActiveExchangeRatesResponse {
#[prost(string, repeated, tag = "1")]
pub active_rates: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.QueryFeederDelegationRequest")]
#[proto_query(
path = "/persistence.oracle.v1beta1.Query/FeederDelegation",
response_type = QueryFeederDelegationResponse
)]
pub struct QueryFeederDelegationRequest {
#[prost(string, tag = "1")]
pub validator_addr: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.QueryFeederDelegationResponse")]
pub struct QueryFeederDelegationResponse {
#[prost(string, tag = "1")]
pub feeder_addr: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.QueryMissCounterRequest")]
#[proto_query(
path = "/persistence.oracle.v1beta1.Query/MissCounter",
response_type = QueryMissCounterResponse
)]
pub struct QueryMissCounterRequest {
#[prost(string, tag = "1")]
pub validator_addr: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.QueryMissCounterResponse")]
pub struct QueryMissCounterResponse {
#[prost(uint64, tag = "1")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub miss_counter: u64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.QueryAggregatePrevoteRequest")]
#[proto_query(
path = "/persistence.oracle.v1beta1.Query/AggregatePrevote",
response_type = QueryAggregatePrevoteResponse
)]
pub struct QueryAggregatePrevoteRequest {
#[prost(string, tag = "1")]
pub validator_addr: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.QueryAggregatePrevoteResponse")]
pub struct QueryAggregatePrevoteResponse {
#[prost(message, optional, tag = "1")]
pub aggregate_prevote: ::core::option::Option<AggregateExchangeRatePrevote>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.QueryAggregatePrevotesRequest")]
#[proto_query(
path = "/persistence.oracle.v1beta1.Query/AggregatePrevotes",
response_type = QueryAggregatePrevotesResponse
)]
pub struct QueryAggregatePrevotesRequest {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.QueryAggregatePrevotesResponse")]
pub struct QueryAggregatePrevotesResponse {
#[prost(message, repeated, tag = "1")]
pub aggregate_prevotes: ::prost::alloc::vec::Vec<AggregateExchangeRatePrevote>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.QueryAggregateVoteRequest")]
#[proto_query(
path = "/persistence.oracle.v1beta1.Query/AggregateVote",
response_type = QueryAggregateVoteResponse
)]
pub struct QueryAggregateVoteRequest {
#[prost(string, tag = "1")]
pub validator_addr: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.QueryAggregateVoteResponse")]
pub struct QueryAggregateVoteResponse {
#[prost(message, optional, tag = "1")]
pub aggregate_vote: ::core::option::Option<AggregateExchangeRateVote>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.QueryAggregateVotesRequest")]
#[proto_query(
path = "/persistence.oracle.v1beta1.Query/AggregateVotes",
response_type = QueryAggregateVotesResponse
)]
pub struct QueryAggregateVotesRequest {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.QueryAggregateVotesResponse")]
pub struct QueryAggregateVotesResponse {
#[prost(message, repeated, tag = "1")]
pub aggregate_votes: ::prost::alloc::vec::Vec<AggregateExchangeRateVote>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.QueryParamsRequest")]
#[proto_query(
path = "/persistence.oracle.v1beta1.Query/Params",
response_type = QueryParamsResponse
)]
pub struct QueryParamsRequest {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.QueryParamsResponse")]
pub struct QueryParamsResponse {
#[prost(message, optional, tag = "1")]
pub params: ::core::option::Option<Params>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.QueryRewardPoolBalanceRequest")]
#[proto_query(
path = "/persistence.oracle.v1beta1.Query/QueryRewardPoolBalance",
response_type = QueryRewardPoolBalanceResponse
)]
pub struct QueryRewardPoolBalanceRequest {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.QueryRewardPoolBalanceResponse")]
pub struct QueryRewardPoolBalanceResponse {
#[prost(message, repeated, tag = "1")]
pub remaining_funds: ::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::Coin>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.MsgAggregateExchangeRatePrevote")]
pub struct MsgAggregateExchangeRatePrevote {
#[prost(string, tag = "1")]
pub hash: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub feeder: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub validator: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.MsgAggregateExchangeRatePrevoteResponse")]
pub struct MsgAggregateExchangeRatePrevoteResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.MsgAggregateExchangeRateVote")]
pub struct MsgAggregateExchangeRateVote {
#[prost(string, tag = "1")]
pub salt: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub exchange_rates: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub feeder: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub validator: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.MsgAggregateExchangeRateVoteResponse")]
pub struct MsgAggregateExchangeRateVoteResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.MsgDelegateFeedConsent")]
pub struct MsgDelegateFeedConsent {
#[prost(string, tag = "1")]
pub operator: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub delegate: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.MsgDelegateFeedConsentResponse")]
pub struct MsgDelegateFeedConsentResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.MsgAddFundsToRewardPool")]
pub struct MsgAddFundsToRewardPool {
#[prost(string, tag = "1")]
pub from: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "2")]
pub funds: ::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::Coin>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/persistence.oracle.v1beta1.MsgAddFundsToRewardPoolResponse")]
pub struct MsgAddFundsToRewardPoolResponse {}
pub struct OracleQuerier<'a, Q: cosmwasm_std::CustomQuery> {
querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>,
}
impl<'a, Q: cosmwasm_std::CustomQuery> OracleQuerier<'a, Q> {
pub fn new(querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>) -> Self {
Self { querier }
}
pub fn all_exchange_rates(
&self,
) -> Result<QueryAllExchangeRatesResponse, cosmwasm_std::StdError> {
QueryAllExchangeRatesRequest {}.query(self.querier)
}
pub fn exchange_rate(
&self,
denom: ::prost::alloc::string::String,
) -> Result<QueryExchangeRateResponse, cosmwasm_std::StdError> {
QueryExchangeRateRequest { denom }.query(self.querier)
}
pub fn active_exchange_rates(
&self,
) -> Result<QueryActiveExchangeRatesResponse, cosmwasm_std::StdError> {
QueryActiveExchangeRatesRequest {}.query(self.querier)
}
pub fn feeder_delegation(
&self,
validator_addr: ::prost::alloc::string::String,
) -> Result<QueryFeederDelegationResponse, cosmwasm_std::StdError> {
QueryFeederDelegationRequest { validator_addr }.query(self.querier)
}
pub fn miss_counter(
&self,
validator_addr: ::prost::alloc::string::String,
) -> Result<QueryMissCounterResponse, cosmwasm_std::StdError> {
QueryMissCounterRequest { validator_addr }.query(self.querier)
}
pub fn aggregate_prevote(
&self,
validator_addr: ::prost::alloc::string::String,
) -> Result<QueryAggregatePrevoteResponse, cosmwasm_std::StdError> {
QueryAggregatePrevoteRequest { validator_addr }.query(self.querier)
}
pub fn aggregate_prevotes(
&self,
) -> Result<QueryAggregatePrevotesResponse, cosmwasm_std::StdError> {
QueryAggregatePrevotesRequest {}.query(self.querier)
}
pub fn aggregate_vote(
&self,
validator_addr: ::prost::alloc::string::String,
) -> Result<QueryAggregateVoteResponse, cosmwasm_std::StdError> {
QueryAggregateVoteRequest { validator_addr }.query(self.querier)
}
pub fn aggregate_votes(&self) -> Result<QueryAggregateVotesResponse, cosmwasm_std::StdError> {
QueryAggregateVotesRequest {}.query(self.querier)
}
pub fn params(&self) -> Result<QueryParamsResponse, cosmwasm_std::StdError> {
QueryParamsRequest {}.query(self.querier)
}
pub fn query_reward_pool_balance(
&self,
) -> Result<QueryRewardPoolBalanceResponse, cosmwasm_std::StdError> {
QueryRewardPoolBalanceRequest {}.query(self.querier)
}
}