nibiru_std/proto/buf/
cosmos.base.tendermint.v1beta1.rs

1// @generated
2/// Block is tendermint type Block, with the Header proposer address
3/// field converted to bech32 string.
4#[allow(clippy::derive_partial_eq_without_eq)]
5#[derive(Clone, PartialEq, ::prost::Message)]
6pub struct Block {
7    #[prost(message, optional, tag="1")]
8    pub header: ::core::option::Option<Header>,
9    #[prost(message, optional, tag="2")]
10    pub data: ::core::option::Option<crate::proto::tendermint::types::Data>,
11    #[prost(message, optional, tag="3")]
12    pub evidence: ::core::option::Option<crate::proto::tendermint::types::EvidenceList>,
13    #[prost(message, optional, tag="4")]
14    pub last_commit: ::core::option::Option<crate::proto::tendermint::types::Commit>,
15}
16/// Header defines the structure of a Tendermint block header.
17#[allow(clippy::derive_partial_eq_without_eq)]
18#[derive(Clone, PartialEq, ::prost::Message)]
19pub struct Header {
20    /// basic block info
21    #[prost(message, optional, tag="1")]
22    pub version: ::core::option::Option<crate::proto::tendermint::version::Consensus>,
23    #[prost(string, tag="2")]
24    pub chain_id: ::prost::alloc::string::String,
25    #[prost(int64, tag="3")]
26    pub height: i64,
27    #[prost(message, optional, tag="4")]
28    pub time: ::core::option::Option<::prost_types::Timestamp>,
29    /// prev block info
30    #[prost(message, optional, tag="5")]
31    pub last_block_id: ::core::option::Option<crate::proto::tendermint::types::BlockId>,
32    /// hashes of block data
33    ///
34    /// commit from validators from the last block
35    #[prost(bytes="bytes", tag="6")]
36    pub last_commit_hash: ::prost::bytes::Bytes,
37    /// transactions
38    #[prost(bytes="bytes", tag="7")]
39    pub data_hash: ::prost::bytes::Bytes,
40    /// hashes from the app output from the prev block
41    ///
42    /// validators for the current block
43    #[prost(bytes="bytes", tag="8")]
44    pub validators_hash: ::prost::bytes::Bytes,
45    /// validators for the next block
46    #[prost(bytes="bytes", tag="9")]
47    pub next_validators_hash: ::prost::bytes::Bytes,
48    /// consensus params for current block
49    #[prost(bytes="bytes", tag="10")]
50    pub consensus_hash: ::prost::bytes::Bytes,
51    /// state after txs from the previous block
52    #[prost(bytes="bytes", tag="11")]
53    pub app_hash: ::prost::bytes::Bytes,
54    /// root hash of all results from the txs from the previous block
55    #[prost(bytes="bytes", tag="12")]
56    pub last_results_hash: ::prost::bytes::Bytes,
57    /// consensus info
58    ///
59    /// evidence included in the block
60    #[prost(bytes="bytes", tag="13")]
61    pub evidence_hash: ::prost::bytes::Bytes,
62    /// proposer_address is the original block proposer address, formatted as a Bech32 string.
63    /// In Tendermint, this type is `bytes`, but in the SDK, we convert it to a Bech32 string
64    /// for better UX.
65    ///
66    /// original proposer of the block
67    #[prost(string, tag="14")]
68    pub proposer_address: ::prost::alloc::string::String,
69}
70/// GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
71#[allow(clippy::derive_partial_eq_without_eq)]
72#[derive(Clone, PartialEq, ::prost::Message)]
73pub struct GetValidatorSetByHeightRequest {
74    #[prost(int64, tag="1")]
75    pub height: i64,
76    /// pagination defines an pagination for the request.
77    #[prost(message, optional, tag="2")]
78    pub pagination: ::core::option::Option<crate::proto::cosmos::base::query::v1beta1::PageRequest>,
79}
80/// GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
81#[allow(clippy::derive_partial_eq_without_eq)]
82#[derive(Clone, PartialEq, ::prost::Message)]
83pub struct GetValidatorSetByHeightResponse {
84    #[prost(int64, tag="1")]
85    pub block_height: i64,
86    #[prost(message, repeated, tag="2")]
87    pub validators: ::prost::alloc::vec::Vec<Validator>,
88    /// pagination defines an pagination for the response.
89    #[prost(message, optional, tag="3")]
90    pub pagination: ::core::option::Option<crate::proto::cosmos::base::query::v1beta1::PageResponse>,
91}
92/// GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
93#[allow(clippy::derive_partial_eq_without_eq)]
94#[derive(Clone, PartialEq, ::prost::Message)]
95pub struct GetLatestValidatorSetRequest {
96    /// pagination defines an pagination for the request.
97    #[prost(message, optional, tag="1")]
98    pub pagination: ::core::option::Option<crate::proto::cosmos::base::query::v1beta1::PageRequest>,
99}
100/// GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
101#[allow(clippy::derive_partial_eq_without_eq)]
102#[derive(Clone, PartialEq, ::prost::Message)]
103pub struct GetLatestValidatorSetResponse {
104    #[prost(int64, tag="1")]
105    pub block_height: i64,
106    #[prost(message, repeated, tag="2")]
107    pub validators: ::prost::alloc::vec::Vec<Validator>,
108    /// pagination defines an pagination for the response.
109    #[prost(message, optional, tag="3")]
110    pub pagination: ::core::option::Option<crate::proto::cosmos::base::query::v1beta1::PageResponse>,
111}
112/// Validator is the type for the validator-set.
113#[allow(clippy::derive_partial_eq_without_eq)]
114#[derive(Clone, PartialEq, ::prost::Message)]
115pub struct Validator {
116    #[prost(string, tag="1")]
117    pub address: ::prost::alloc::string::String,
118    #[prost(message, optional, tag="2")]
119    pub pub_key: ::core::option::Option<::prost_types::Any>,
120    #[prost(int64, tag="3")]
121    pub voting_power: i64,
122    #[prost(int64, tag="4")]
123    pub proposer_priority: i64,
124}
125/// GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method.
126#[allow(clippy::derive_partial_eq_without_eq)]
127#[derive(Clone, PartialEq, ::prost::Message)]
128pub struct GetBlockByHeightRequest {
129    #[prost(int64, tag="1")]
130    pub height: i64,
131}
132/// GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method.
133#[allow(clippy::derive_partial_eq_without_eq)]
134#[derive(Clone, PartialEq, ::prost::Message)]
135pub struct GetBlockByHeightResponse {
136    #[prost(message, optional, tag="1")]
137    pub block_id: ::core::option::Option<crate::proto::tendermint::types::BlockId>,
138    /// Deprecated: please use `sdk_block` instead
139    #[prost(message, optional, tag="2")]
140    pub block: ::core::option::Option<crate::proto::tendermint::types::Block>,
141    /// Since: cosmos-sdk 0.47
142    #[prost(message, optional, tag="3")]
143    pub sdk_block: ::core::option::Option<Block>,
144}
145/// GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method.
146#[allow(clippy::derive_partial_eq_without_eq)]
147#[derive(Clone, PartialEq, ::prost::Message)]
148pub struct GetLatestBlockRequest {
149}
150/// GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method.
151#[allow(clippy::derive_partial_eq_without_eq)]
152#[derive(Clone, PartialEq, ::prost::Message)]
153pub struct GetLatestBlockResponse {
154    #[prost(message, optional, tag="1")]
155    pub block_id: ::core::option::Option<crate::proto::tendermint::types::BlockId>,
156    /// Deprecated: please use `sdk_block` instead
157    #[prost(message, optional, tag="2")]
158    pub block: ::core::option::Option<crate::proto::tendermint::types::Block>,
159    /// Since: cosmos-sdk 0.47
160    #[prost(message, optional, tag="3")]
161    pub sdk_block: ::core::option::Option<Block>,
162}
163/// GetSyncingRequest is the request type for the Query/GetSyncing RPC method.
164#[allow(clippy::derive_partial_eq_without_eq)]
165#[derive(Clone, PartialEq, ::prost::Message)]
166pub struct GetSyncingRequest {
167}
168/// GetSyncingResponse is the response type for the Query/GetSyncing RPC method.
169#[allow(clippy::derive_partial_eq_without_eq)]
170#[derive(Clone, PartialEq, ::prost::Message)]
171pub struct GetSyncingResponse {
172    #[prost(bool, tag="1")]
173    pub syncing: bool,
174}
175/// GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method.
176#[allow(clippy::derive_partial_eq_without_eq)]
177#[derive(Clone, PartialEq, ::prost::Message)]
178pub struct GetNodeInfoRequest {
179}
180/// GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method.
181#[allow(clippy::derive_partial_eq_without_eq)]
182#[derive(Clone, PartialEq, ::prost::Message)]
183pub struct GetNodeInfoResponse {
184    #[prost(message, optional, tag="1")]
185    pub default_node_info: ::core::option::Option<crate::proto::tendermint::p2p::DefaultNodeInfo>,
186    #[prost(message, optional, tag="2")]
187    pub application_version: ::core::option::Option<VersionInfo>,
188}
189/// VersionInfo is the type for the GetNodeInfoResponse message.
190#[allow(clippy::derive_partial_eq_without_eq)]
191#[derive(Clone, PartialEq, ::prost::Message)]
192pub struct VersionInfo {
193    #[prost(string, tag="1")]
194    pub name: ::prost::alloc::string::String,
195    #[prost(string, tag="2")]
196    pub app_name: ::prost::alloc::string::String,
197    #[prost(string, tag="3")]
198    pub version: ::prost::alloc::string::String,
199    #[prost(string, tag="4")]
200    pub git_commit: ::prost::alloc::string::String,
201    #[prost(string, tag="5")]
202    pub build_tags: ::prost::alloc::string::String,
203    #[prost(string, tag="6")]
204    pub go_version: ::prost::alloc::string::String,
205    #[prost(message, repeated, tag="7")]
206    pub build_deps: ::prost::alloc::vec::Vec<Module>,
207    /// Since: cosmos-sdk 0.43
208    #[prost(string, tag="8")]
209    pub cosmos_sdk_version: ::prost::alloc::string::String,
210}
211/// Module is the type for VersionInfo
212#[allow(clippy::derive_partial_eq_without_eq)]
213#[derive(Clone, PartialEq, ::prost::Message)]
214pub struct Module {
215    /// module path
216    #[prost(string, tag="1")]
217    pub path: ::prost::alloc::string::String,
218    /// module version
219    #[prost(string, tag="2")]
220    pub version: ::prost::alloc::string::String,
221    /// checksum
222    #[prost(string, tag="3")]
223    pub sum: ::prost::alloc::string::String,
224}
225/// ABCIQueryRequest defines the request structure for the ABCIQuery gRPC query.
226#[allow(clippy::derive_partial_eq_without_eq)]
227#[derive(Clone, PartialEq, ::prost::Message)]
228pub struct AbciQueryRequest {
229    #[prost(bytes="bytes", tag="1")]
230    pub data: ::prost::bytes::Bytes,
231    #[prost(string, tag="2")]
232    pub path: ::prost::alloc::string::String,
233    #[prost(int64, tag="3")]
234    pub height: i64,
235    #[prost(bool, tag="4")]
236    pub prove: bool,
237}
238/// ABCIQueryResponse defines the response structure for the ABCIQuery gRPC query.
239///
240/// Note: This type is a duplicate of the ResponseQuery proto type defined in
241/// Tendermint.
242#[allow(clippy::derive_partial_eq_without_eq)]
243#[derive(Clone, PartialEq, ::prost::Message)]
244pub struct AbciQueryResponse {
245    #[prost(uint32, tag="1")]
246    pub code: u32,
247    /// nondeterministic
248    #[prost(string, tag="3")]
249    pub log: ::prost::alloc::string::String,
250    /// nondeterministic
251    #[prost(string, tag="4")]
252    pub info: ::prost::alloc::string::String,
253    #[prost(int64, tag="5")]
254    pub index: i64,
255    #[prost(bytes="bytes", tag="6")]
256    pub key: ::prost::bytes::Bytes,
257    #[prost(bytes="bytes", tag="7")]
258    pub value: ::prost::bytes::Bytes,
259    #[prost(message, optional, tag="8")]
260    pub proof_ops: ::core::option::Option<ProofOps>,
261    #[prost(int64, tag="9")]
262    pub height: i64,
263    #[prost(string, tag="10")]
264    pub codespace: ::prost::alloc::string::String,
265}
266/// ProofOp defines an operation used for calculating Merkle root. The data could
267/// be arbitrary format, providing necessary data for example neighbouring node
268/// hash.
269///
270/// Note: This type is a duplicate of the ProofOp proto type defined in Tendermint.
271#[allow(clippy::derive_partial_eq_without_eq)]
272#[derive(Clone, PartialEq, ::prost::Message)]
273pub struct ProofOp {
274    #[prost(string, tag="1")]
275    pub r#type: ::prost::alloc::string::String,
276    #[prost(bytes="bytes", tag="2")]
277    pub key: ::prost::bytes::Bytes,
278    #[prost(bytes="bytes", tag="3")]
279    pub data: ::prost::bytes::Bytes,
280}
281/// ProofOps is Merkle proof defined by the list of ProofOps.
282///
283/// Note: This type is a duplicate of the ProofOps proto type defined in Tendermint.
284#[allow(clippy::derive_partial_eq_without_eq)]
285#[derive(Clone, PartialEq, ::prost::Message)]
286pub struct ProofOps {
287    #[prost(message, repeated, tag="1")]
288    pub ops: ::prost::alloc::vec::Vec<ProofOp>,
289}
290// @@protoc_insertion_point(module)