Skip to content

Commit

Permalink
proto: generate structs for 0.34 and 0.37
Browse files Browse the repository at this point in the history
Modify proto-compiler to generate protobuf modules for both versions
of the Tendermint protocol. The different versions are disambiguated
by module paths, presently tendermint::v0_34 and tendermint::v0_37,
with the latest supported version reimported as tendermint::*.
  • Loading branch information
mzabaluev committed Sep 11, 2022
1 parent 3c51c74 commit 820c013
Show file tree
Hide file tree
Showing 35 changed files with 2,181 additions and 171 deletions.
635 changes: 635 additions & 0 deletions proto/src/prost/v0_34/tendermint.abci.rs

Large diffs are not rendered by default.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ pub struct MsgInfo {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TimeoutInfo {
#[prost(message, optional, tag="1")]
pub duration: ::core::option::Option<super::super::google::protobuf::Duration>,
pub duration: ::core::option::Option<crate::google::protobuf::Duration>,
#[prost(int64, tag="2")]
pub height: i64,
#[prost(int32, tag="3")]
Expand Down Expand Up @@ -178,7 +178,7 @@ pub mod wal_message {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TimedWalMessage {
#[prost(message, optional, tag="1")]
pub time: ::core::option::Option<super::super::google::protobuf::Timestamp>,
pub time: ::core::option::Option<crate::google::protobuf::Timestamp>,
#[prost(message, optional, tag="2")]
pub msg: ::core::option::Option<WalMessage>,
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub struct State {
#[prost(message, optional, tag="4")]
pub last_block_id: ::core::option::Option<super::types::BlockId>,
#[prost(message, optional, tag="5")]
pub last_block_time: ::core::option::Option<super::super::google::protobuf::Timestamp>,
pub last_block_time: ::core::option::Option<crate::google::protobuf::Timestamp>,
/// LastValidators is used to validate block.LastCommit.
/// Validators are persisted to the database separately every time they change,
/// so we can query for historical validator sets.
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 820c013

Please sign in to comment.