tendermint_proto/prost/v0_34/
tendermint.state.rs

1// This file is @generated by prost-build.
2/// ABCIResponses retains the responses
3/// of the various ABCI calls during block processing.
4/// It is persisted to disk for each height before calling Commit.
5#[allow(clippy::derive_partial_eq_without_eq)]
6#[derive(Clone, PartialEq, ::prost::Message)]
7pub struct AbciResponses {
8    #[prost(message, repeated, tag = "1")]
9    pub deliver_txs: ::prost::alloc::vec::Vec<super::abci::ResponseDeliverTx>,
10    #[prost(message, optional, tag = "2")]
11    pub end_block: ::core::option::Option<super::abci::ResponseEndBlock>,
12    #[prost(message, optional, tag = "3")]
13    pub begin_block: ::core::option::Option<super::abci::ResponseBeginBlock>,
14}
15/// ValidatorsInfo represents the latest validator set, or the last height it changed
16#[allow(clippy::derive_partial_eq_without_eq)]
17#[derive(Clone, PartialEq, ::prost::Message)]
18pub struct ValidatorsInfo {
19    #[prost(message, optional, tag = "1")]
20    pub validator_set: ::core::option::Option<super::types::ValidatorSet>,
21    #[prost(int64, tag = "2")]
22    pub last_height_changed: i64,
23}
24/// ConsensusParamsInfo represents the latest consensus params, or the last height it changed
25#[allow(clippy::derive_partial_eq_without_eq)]
26#[derive(Clone, PartialEq, ::prost::Message)]
27pub struct ConsensusParamsInfo {
28    #[prost(message, optional, tag = "1")]
29    pub consensus_params: ::core::option::Option<super::types::ConsensusParams>,
30    #[prost(int64, tag = "2")]
31    pub last_height_changed: i64,
32}
33#[allow(clippy::derive_partial_eq_without_eq)]
34#[derive(Clone, PartialEq, ::prost::Message)]
35pub struct AbciResponsesInfo {
36    #[prost(message, optional, tag = "1")]
37    pub abci_responses: ::core::option::Option<AbciResponses>,
38    #[prost(int64, tag = "2")]
39    pub height: i64,
40}
41#[allow(clippy::derive_partial_eq_without_eq)]
42#[derive(Clone, PartialEq, ::prost::Message)]
43pub struct Version {
44    #[prost(message, optional, tag = "1")]
45    pub consensus: ::core::option::Option<super::version::Consensus>,
46    #[prost(string, tag = "2")]
47    pub software: ::prost::alloc::string::String,
48}
49#[allow(clippy::derive_partial_eq_without_eq)]
50#[derive(Clone, PartialEq, ::prost::Message)]
51pub struct State {
52    #[prost(message, optional, tag = "1")]
53    pub version: ::core::option::Option<Version>,
54    /// immutable
55    #[prost(string, tag = "2")]
56    pub chain_id: ::prost::alloc::string::String,
57    #[prost(int64, tag = "14")]
58    pub initial_height: i64,
59    /// LastBlockHeight=0 at genesis (ie. block(H=0) does not exist)
60    #[prost(int64, tag = "3")]
61    pub last_block_height: i64,
62    #[prost(message, optional, tag = "4")]
63    pub last_block_id: ::core::option::Option<super::types::BlockId>,
64    #[prost(message, optional, tag = "5")]
65    pub last_block_time: ::core::option::Option<crate::google::protobuf::Timestamp>,
66    /// LastValidators is used to validate block.LastCommit.
67    /// Validators are persisted to the database separately every time they change,
68    /// so we can query for historical validator sets.
69    /// Note that if s.LastBlockHeight causes a valset change,
70    /// we set s.LastHeightValidatorsChanged = s.LastBlockHeight + 1 + 1
71    /// Extra +1 due to nextValSet delay.
72    #[prost(message, optional, tag = "6")]
73    pub next_validators: ::core::option::Option<super::types::ValidatorSet>,
74    #[prost(message, optional, tag = "7")]
75    pub validators: ::core::option::Option<super::types::ValidatorSet>,
76    #[prost(message, optional, tag = "8")]
77    pub last_validators: ::core::option::Option<super::types::ValidatorSet>,
78    #[prost(int64, tag = "9")]
79    pub last_height_validators_changed: i64,
80    /// Consensus parameters used for validating blocks.
81    /// Changes returned by EndBlock and updated after Commit.
82    #[prost(message, optional, tag = "10")]
83    pub consensus_params: ::core::option::Option<super::types::ConsensusParams>,
84    #[prost(int64, tag = "11")]
85    pub last_height_consensus_params_changed: i64,
86    /// Merkle root of the results from executing prev block
87    #[prost(bytes = "vec", tag = "12")]
88    pub last_results_hash: ::prost::alloc::vec::Vec<u8>,
89    /// the latest AppHash we've received from calling abci.Commit()
90    #[prost(bytes = "vec", tag = "13")]
91    pub app_hash: ::prost::alloc::vec::Vec<u8>,
92}