use neutron_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 = "/tendermint.blocksync.BlockRequest")]
pub struct BlockRequest {
#[prost(int64, tag = "1")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub height: i64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/tendermint.blocksync.NoBlockResponse")]
pub struct NoBlockResponse {
#[prost(int64, tag = "1")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub height: i64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/tendermint.blocksync.BlockResponse")]
pub struct BlockResponse {
#[prost(message, optional, tag = "1")]
pub block: ::core::option::Option<super::types::Block>,
#[prost(message, optional, tag = "2")]
pub ext_commit: ::core::option::Option<super::types::ExtendedCommit>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/tendermint.blocksync.StatusRequest")]
pub struct StatusRequest {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/tendermint.blocksync.StatusResponse")]
pub struct StatusResponse {
#[prost(int64, tag = "1")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub height: i64,
#[prost(int64, tag = "2")]
#[serde(
serialize_with = "crate::serde::as_str::serialize",
deserialize_with = "crate::serde::as_str::deserialize"
)]
pub base: i64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Message,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/tendermint.blocksync.Message")]
pub struct Message {
#[prost(oneof = "message::Sum", tags = "1, 2, 3, 4, 5")]
pub sum: ::core::option::Option<message::Sum>,
}
pub mod message {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(
Clone,
PartialEq,
Eq,
::prost::Oneof,
::serde::Serialize,
::serde::Deserialize,
::schemars::JsonSchema,
)]
pub enum Sum {
#[prost(message, tag = "1")]
BlockRequest(super::BlockRequest),
#[prost(message, tag = "2")]
NoBlockResponse(super::NoBlockResponse),
#[prost(message, tag = "3")]
BlockResponse(Box<super::BlockResponse>),
#[prost(message, tag = "4")]
StatusRequest(super::StatusRequest),
#[prost(message, tag = "5")]
StatusResponse(super::StatusResponse),
}
}