#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Params {
#[prost(string, tag="1")]
pub community_tax: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub base_proposer_reward: ::prost::alloc::string::String,
#[prost(string, tag="3")]
pub bonus_proposer_reward: ::prost::alloc::string::String,
#[prost(bool, tag="4")]
pub withdraw_addr_enabled: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidatorHistoricalRewards {
#[prost(message, repeated, tag="1")]
pub cumulative_reward_ratio: ::prost::alloc::vec::Vec<super::super::base::v1beta1::DecCoin>,
#[prost(uint32, tag="2")]
pub reference_count: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidatorCurrentRewards {
#[prost(message, repeated, tag="1")]
pub rewards: ::prost::alloc::vec::Vec<super::super::base::v1beta1::DecCoin>,
#[prost(uint64, tag="2")]
pub period: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidatorAccumulatedCommission {
#[prost(message, repeated, tag="1")]
pub commission: ::prost::alloc::vec::Vec<super::super::base::v1beta1::DecCoin>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidatorOutstandingRewards {
#[prost(message, repeated, tag="1")]
pub rewards: ::prost::alloc::vec::Vec<super::super::base::v1beta1::DecCoin>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidatorSlashEvent {
#[prost(uint64, tag="1")]
pub validator_period: u64,
#[prost(string, tag="2")]
pub fraction: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidatorSlashEvents {
#[prost(message, repeated, tag="1")]
pub validator_slash_events: ::prost::alloc::vec::Vec<ValidatorSlashEvent>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FeePool {
#[prost(message, repeated, tag="1")]
pub community_pool: ::prost::alloc::vec::Vec<super::super::base::v1beta1::DecCoin>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommunityPoolSpendProposal {
#[prost(string, tag="1")]
pub title: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub description: ::prost::alloc::string::String,
#[prost(string, tag="3")]
pub recipient: ::prost::alloc::string::String,
#[prost(message, repeated, tag="4")]
pub amount: ::prost::alloc::vec::Vec<super::super::base::v1beta1::Coin>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DelegatorStartingInfo {
#[prost(uint64, tag="1")]
pub previous_period: u64,
#[prost(string, tag="2")]
pub stake: ::prost::alloc::string::String,
#[prost(uint64, tag="3")]
pub height: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DelegationDelegatorReward {
#[prost(string, tag="1")]
pub validator_address: ::prost::alloc::string::String,
#[prost(message, repeated, tag="2")]
pub reward: ::prost::alloc::vec::Vec<super::super::base::v1beta1::DecCoin>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommunityPoolSpendProposalWithDeposit {
#[prost(string, tag="1")]
pub title: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub description: ::prost::alloc::string::String,
#[prost(string, tag="3")]
pub recipient: ::prost::alloc::string::String,
#[prost(string, tag="4")]
pub amount: ::prost::alloc::string::String,
#[prost(string, tag="5")]
pub deposit: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DelegatorWithdrawInfo {
#[prost(string, tag="1")]
pub delegator_address: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub withdraw_address: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidatorOutstandingRewardsRecord {
#[prost(string, tag="1")]
pub validator_address: ::prost::alloc::string::String,
#[prost(message, repeated, tag="2")]
pub outstanding_rewards: ::prost::alloc::vec::Vec<super::super::base::v1beta1::DecCoin>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidatorAccumulatedCommissionRecord {
#[prost(string, tag="1")]
pub validator_address: ::prost::alloc::string::String,
#[prost(message, optional, tag="2")]
pub accumulated: ::core::option::Option<ValidatorAccumulatedCommission>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidatorHistoricalRewardsRecord {
#[prost(string, tag="1")]
pub validator_address: ::prost::alloc::string::String,
#[prost(uint64, tag="2")]
pub period: u64,
#[prost(message, optional, tag="3")]
pub rewards: ::core::option::Option<ValidatorHistoricalRewards>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidatorCurrentRewardsRecord {
#[prost(string, tag="1")]
pub validator_address: ::prost::alloc::string::String,
#[prost(message, optional, tag="2")]
pub rewards: ::core::option::Option<ValidatorCurrentRewards>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DelegatorStartingInfoRecord {
#[prost(string, tag="1")]
pub delegator_address: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub validator_address: ::prost::alloc::string::String,
#[prost(message, optional, tag="3")]
pub starting_info: ::core::option::Option<DelegatorStartingInfo>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidatorSlashEventRecord {
#[prost(string, tag="1")]
pub validator_address: ::prost::alloc::string::String,
#[prost(uint64, tag="2")]
pub height: u64,
#[prost(uint64, tag="3")]
pub period: u64,
#[prost(message, optional, tag="4")]
pub validator_slash_event: ::core::option::Option<ValidatorSlashEvent>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GenesisState {
#[prost(message, optional, tag="1")]
pub params: ::core::option::Option<Params>,
#[prost(message, optional, tag="2")]
pub fee_pool: ::core::option::Option<FeePool>,
#[prost(message, repeated, tag="3")]
pub delegator_withdraw_infos: ::prost::alloc::vec::Vec<DelegatorWithdrawInfo>,
#[prost(string, tag="4")]
pub previous_proposer: ::prost::alloc::string::String,
#[prost(message, repeated, tag="5")]
pub outstanding_rewards: ::prost::alloc::vec::Vec<ValidatorOutstandingRewardsRecord>,
#[prost(message, repeated, tag="6")]
pub validator_accumulated_commissions: ::prost::alloc::vec::Vec<ValidatorAccumulatedCommissionRecord>,
#[prost(message, repeated, tag="7")]
pub validator_historical_rewards: ::prost::alloc::vec::Vec<ValidatorHistoricalRewardsRecord>,
#[prost(message, repeated, tag="8")]
pub validator_current_rewards: ::prost::alloc::vec::Vec<ValidatorCurrentRewardsRecord>,
#[prost(message, repeated, tag="9")]
pub delegator_starting_infos: ::prost::alloc::vec::Vec<DelegatorStartingInfoRecord>,
#[prost(message, repeated, tag="10")]
pub validator_slash_events: ::prost::alloc::vec::Vec<ValidatorSlashEventRecord>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryParamsRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryParamsResponse {
#[prost(message, optional, tag="1")]
pub params: ::core::option::Option<Params>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryValidatorOutstandingRewardsRequest {
#[prost(string, tag="1")]
pub validator_address: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryValidatorOutstandingRewardsResponse {
#[prost(message, optional, tag="1")]
pub rewards: ::core::option::Option<ValidatorOutstandingRewards>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryValidatorCommissionRequest {
#[prost(string, tag="1")]
pub validator_address: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryValidatorCommissionResponse {
#[prost(message, optional, tag="1")]
pub commission: ::core::option::Option<ValidatorAccumulatedCommission>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryValidatorSlashesRequest {
#[prost(string, tag="1")]
pub validator_address: ::prost::alloc::string::String,
#[prost(uint64, tag="2")]
pub starting_height: u64,
#[prost(uint64, tag="3")]
pub ending_height: u64,
#[prost(message, optional, tag="4")]
pub pagination: ::core::option::Option<super::super::base::query::v1beta1::PageRequest>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryValidatorSlashesResponse {
#[prost(message, repeated, tag="1")]
pub slashes: ::prost::alloc::vec::Vec<ValidatorSlashEvent>,
#[prost(message, optional, tag="2")]
pub pagination: ::core::option::Option<super::super::base::query::v1beta1::PageResponse>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryDelegationRewardsRequest {
#[prost(string, tag="1")]
pub delegator_address: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub validator_address: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryDelegationRewardsResponse {
#[prost(message, repeated, tag="1")]
pub rewards: ::prost::alloc::vec::Vec<super::super::base::v1beta1::DecCoin>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryDelegationTotalRewardsRequest {
#[prost(string, tag="1")]
pub delegator_address: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryDelegationTotalRewardsResponse {
#[prost(message, repeated, tag="1")]
pub rewards: ::prost::alloc::vec::Vec<DelegationDelegatorReward>,
#[prost(message, repeated, tag="2")]
pub total: ::prost::alloc::vec::Vec<super::super::base::v1beta1::DecCoin>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryDelegatorValidatorsRequest {
#[prost(string, tag="1")]
pub delegator_address: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryDelegatorValidatorsResponse {
#[prost(string, repeated, tag="1")]
pub validators: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryDelegatorWithdrawAddressRequest {
#[prost(string, tag="1")]
pub delegator_address: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryDelegatorWithdrawAddressResponse {
#[prost(string, tag="1")]
pub withdraw_address: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryCommunityPoolRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryCommunityPoolResponse {
#[prost(message, repeated, tag="1")]
pub pool: ::prost::alloc::vec::Vec<super::super::base::v1beta1::DecCoin>,
}
pub mod query_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
#[derive(Debug, Clone)]
pub struct QueryClient<T> {
inner: tonic::client::Grpc<T>,
}
impl QueryClient<tonic::transport::Channel> {
pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
where
D: std::convert::TryInto<tonic::transport::Endpoint>,
D::Error: Into<StdError>,
{
let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
Ok(Self::new(conn))
}
}
impl<T> QueryClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> QueryClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
QueryClient::new(InterceptedService::new(inner, interceptor))
}
#[must_use]
pub fn send_gzip(mut self) -> Self {
self.inner = self.inner.send_gzip();
self
}
#[must_use]
pub fn accept_gzip(mut self) -> Self {
self.inner = self.inner.accept_gzip();
self
}
pub async fn params(
&mut self,
request: impl tonic::IntoRequest<super::QueryParamsRequest>,
) -> Result<tonic::Response<super::QueryParamsResponse>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/cosmos.distribution.v1beta1.Query/Params",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn validator_outstanding_rewards(
&mut self,
request: impl tonic::IntoRequest<
super::QueryValidatorOutstandingRewardsRequest,
>,
) -> Result<
tonic::Response<super::QueryValidatorOutstandingRewardsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/cosmos.distribution.v1beta1.Query/ValidatorOutstandingRewards",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn validator_commission(
&mut self,
request: impl tonic::IntoRequest<super::QueryValidatorCommissionRequest>,
) -> Result<
tonic::Response<super::QueryValidatorCommissionResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/cosmos.distribution.v1beta1.Query/ValidatorCommission",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn validator_slashes(
&mut self,
request: impl tonic::IntoRequest<super::QueryValidatorSlashesRequest>,
) -> Result<
tonic::Response<super::QueryValidatorSlashesResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/cosmos.distribution.v1beta1.Query/ValidatorSlashes",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn delegation_rewards(
&mut self,
request: impl tonic::IntoRequest<super::QueryDelegationRewardsRequest>,
) -> Result<
tonic::Response<super::QueryDelegationRewardsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/cosmos.distribution.v1beta1.Query/DelegationRewards",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn delegation_total_rewards(
&mut self,
request: impl tonic::IntoRequest<super::QueryDelegationTotalRewardsRequest>,
) -> Result<
tonic::Response<super::QueryDelegationTotalRewardsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/cosmos.distribution.v1beta1.Query/DelegationTotalRewards",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn delegator_validators(
&mut self,
request: impl tonic::IntoRequest<super::QueryDelegatorValidatorsRequest>,
) -> Result<
tonic::Response<super::QueryDelegatorValidatorsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/cosmos.distribution.v1beta1.Query/DelegatorValidators",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn delegator_withdraw_address(
&mut self,
request: impl tonic::IntoRequest<super::QueryDelegatorWithdrawAddressRequest>,
) -> Result<
tonic::Response<super::QueryDelegatorWithdrawAddressResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/cosmos.distribution.v1beta1.Query/DelegatorWithdrawAddress",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn community_pool(
&mut self,
request: impl tonic::IntoRequest<super::QueryCommunityPoolRequest>,
) -> Result<tonic::Response<super::QueryCommunityPoolResponse>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/cosmos.distribution.v1beta1.Query/CommunityPool",
);
self.inner.unary(request.into_request(), path, codec).await
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgSetWithdrawAddress {
#[prost(string, tag="1")]
pub delegator_address: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub withdraw_address: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgSetWithdrawAddressResponse {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgWithdrawDelegatorReward {
#[prost(string, tag="1")]
pub delegator_address: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub validator_address: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgWithdrawDelegatorRewardResponse {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgWithdrawValidatorCommission {
#[prost(string, tag="1")]
pub validator_address: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgWithdrawValidatorCommissionResponse {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgFundCommunityPool {
#[prost(message, repeated, tag="1")]
pub amount: ::prost::alloc::vec::Vec<super::super::base::v1beta1::Coin>,
#[prost(string, tag="2")]
pub depositor: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgFundCommunityPoolResponse {
}
pub mod msg_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
#[derive(Debug, Clone)]
pub struct MsgClient<T> {
inner: tonic::client::Grpc<T>,
}
impl MsgClient<tonic::transport::Channel> {
pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
where
D: std::convert::TryInto<tonic::transport::Endpoint>,
D::Error: Into<StdError>,
{
let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
Ok(Self::new(conn))
}
}
impl<T> MsgClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> MsgClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
MsgClient::new(InterceptedService::new(inner, interceptor))
}
#[must_use]
pub fn send_gzip(mut self) -> Self {
self.inner = self.inner.send_gzip();
self
}
#[must_use]
pub fn accept_gzip(mut self) -> Self {
self.inner = self.inner.accept_gzip();
self
}
pub async fn set_withdraw_address(
&mut self,
request: impl tonic::IntoRequest<super::MsgSetWithdrawAddress>,
) -> Result<
tonic::Response<super::MsgSetWithdrawAddressResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/cosmos.distribution.v1beta1.Msg/SetWithdrawAddress",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn withdraw_delegator_reward(
&mut self,
request: impl tonic::IntoRequest<super::MsgWithdrawDelegatorReward>,
) -> Result<
tonic::Response<super::MsgWithdrawDelegatorRewardResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/cosmos.distribution.v1beta1.Msg/WithdrawDelegatorReward",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn withdraw_validator_commission(
&mut self,
request: impl tonic::IntoRequest<super::MsgWithdrawValidatorCommission>,
) -> Result<
tonic::Response<super::MsgWithdrawValidatorCommissionResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/cosmos.distribution.v1beta1.Msg/WithdrawValidatorCommission",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn fund_community_pool(
&mut self,
request: impl tonic::IntoRequest<super::MsgFundCommunityPool>,
) -> Result<
tonic::Response<super::MsgFundCommunityPoolResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/cosmos.distribution.v1beta1.Msg/FundCommunityPool",
);
self.inner.unary(request.into_request(), path, codec).await
}
}
}