tendermint_proto/prost/v0_38/
tendermint.state.rs

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