#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AppDescriptor {
#[prost(message, optional, tag="1")]
pub authn: ::core::option::Option<AuthnDescriptor>,
#[prost(message, optional, tag="2")]
pub chain: ::core::option::Option<ChainDescriptor>,
#[prost(message, optional, tag="3")]
pub codec: ::core::option::Option<CodecDescriptor>,
#[prost(message, optional, tag="4")]
pub configuration: ::core::option::Option<ConfigurationDescriptor>,
#[prost(message, optional, tag="5")]
pub query_services: ::core::option::Option<QueryServicesDescriptor>,
#[prost(message, optional, tag="6")]
pub tx: ::core::option::Option<TxDescriptor>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TxDescriptor {
#[prost(string, tag="1")]
pub fullname: ::prost::alloc::string::String,
#[prost(message, repeated, tag="2")]
pub msgs: ::prost::alloc::vec::Vec<MsgDescriptor>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuthnDescriptor {
#[prost(message, repeated, tag="1")]
pub sign_modes: ::prost::alloc::vec::Vec<SigningModeDescriptor>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SigningModeDescriptor {
#[prost(string, tag="1")]
pub name: ::prost::alloc::string::String,
#[prost(int32, tag="2")]
pub number: i32,
#[prost(string, tag="3")]
pub authn_info_provider_method_fullname: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChainDescriptor {
#[prost(string, tag="1")]
pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CodecDescriptor {
#[prost(message, repeated, tag="1")]
pub interfaces: ::prost::alloc::vec::Vec<InterfaceDescriptor>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterfaceDescriptor {
#[prost(string, tag="1")]
pub fullname: ::prost::alloc::string::String,
#[prost(message, repeated, tag="2")]
pub interface_accepting_messages: ::prost::alloc::vec::Vec<InterfaceAcceptingMessageDescriptor>,
#[prost(message, repeated, tag="3")]
pub interface_implementers: ::prost::alloc::vec::Vec<InterfaceImplementerDescriptor>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterfaceImplementerDescriptor {
#[prost(string, tag="1")]
pub fullname: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub type_url: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InterfaceAcceptingMessageDescriptor {
#[prost(string, tag="1")]
pub fullname: ::prost::alloc::string::String,
#[prost(string, repeated, tag="2")]
pub field_descriptor_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConfigurationDescriptor {
#[prost(string, tag="1")]
pub bech32_account_address_prefix: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MsgDescriptor {
#[prost(string, tag="1")]
pub msg_type_url: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetAuthnDescriptorRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetAuthnDescriptorResponse {
#[prost(message, optional, tag="1")]
pub authn: ::core::option::Option<AuthnDescriptor>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetChainDescriptorRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetChainDescriptorResponse {
#[prost(message, optional, tag="1")]
pub chain: ::core::option::Option<ChainDescriptor>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetCodecDescriptorRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetCodecDescriptorResponse {
#[prost(message, optional, tag="1")]
pub codec: ::core::option::Option<CodecDescriptor>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetConfigurationDescriptorRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetConfigurationDescriptorResponse {
#[prost(message, optional, tag="1")]
pub config: ::core::option::Option<ConfigurationDescriptor>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetQueryServicesDescriptorRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetQueryServicesDescriptorResponse {
#[prost(message, optional, tag="1")]
pub queries: ::core::option::Option<QueryServicesDescriptor>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTxDescriptorRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTxDescriptorResponse {
#[prost(message, optional, tag="1")]
pub tx: ::core::option::Option<TxDescriptor>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryServicesDescriptor {
#[prost(message, repeated, tag="1")]
pub query_services: ::prost::alloc::vec::Vec<QueryServiceDescriptor>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryServiceDescriptor {
#[prost(string, tag="1")]
pub fullname: ::prost::alloc::string::String,
#[prost(bool, tag="2")]
pub is_module: bool,
#[prost(message, repeated, tag="3")]
pub methods: ::prost::alloc::vec::Vec<QueryMethodDescriptor>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryMethodDescriptor {
#[prost(string, tag="1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub full_query_path: ::prost::alloc::string::String,
}
pub mod reflection_service_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
#[derive(Debug, Clone)]
pub struct ReflectionServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl ReflectionServiceClient<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> ReflectionServiceClient<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,
) -> ReflectionServiceClient<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,
{
ReflectionServiceClient::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 get_authn_descriptor(
&mut self,
request: impl tonic::IntoRequest<super::GetAuthnDescriptorRequest>,
) -> Result<tonic::Response<super::GetAuthnDescriptorResponse>, 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.base.reflection.v2alpha1.ReflectionService/GetAuthnDescriptor",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn get_chain_descriptor(
&mut self,
request: impl tonic::IntoRequest<super::GetChainDescriptorRequest>,
) -> Result<tonic::Response<super::GetChainDescriptorResponse>, 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.base.reflection.v2alpha1.ReflectionService/GetChainDescriptor",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn get_codec_descriptor(
&mut self,
request: impl tonic::IntoRequest<super::GetCodecDescriptorRequest>,
) -> Result<tonic::Response<super::GetCodecDescriptorResponse>, 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.base.reflection.v2alpha1.ReflectionService/GetCodecDescriptor",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn get_configuration_descriptor(
&mut self,
request: impl tonic::IntoRequest<super::GetConfigurationDescriptorRequest>,
) -> Result<
tonic::Response<super::GetConfigurationDescriptorResponse>,
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.base.reflection.v2alpha1.ReflectionService/GetConfigurationDescriptor",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn get_query_services_descriptor(
&mut self,
request: impl tonic::IntoRequest<super::GetQueryServicesDescriptorRequest>,
) -> Result<
tonic::Response<super::GetQueryServicesDescriptorResponse>,
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.base.reflection.v2alpha1.ReflectionService/GetQueryServicesDescriptor",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn get_tx_descriptor(
&mut self,
request: impl tonic::IntoRequest<super::GetTxDescriptorRequest>,
) -> Result<tonic::Response<super::GetTxDescriptorResponse>, 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.base.reflection.v2alpha1.ReflectionService/GetTxDescriptor",
);
self.inner.unary(request.into_request(), path, codec).await
}
}
}