-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add autogenerated protos for
v1.0
(#2)
* Pre: auto changes * Added cometbft v1_0 to protobuf generation * Auto generated protobuf code * Adapted custom attributes for cometbft types * Auto generated protobuf code after adapting custom attributes * Extended mod generation to support several sub-mods * Auto generated protobuf code after extended mod generation * Fix build of protos crate * Changelog * Addressed @mzabaluev's comments * Fix cometbft tags * Re-Fix build of protos crate * Fix main and constants * Regenerated protobuf code * cargo fmt
- Loading branch information
1 parent
7e1787c
commit 8f9df6f
Showing
50 changed files
with
12,791 additions
and
414 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
.changelog/unreleased/improvements/1381-expose-rpc-client-builders copy.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- `[proto-compiler]` Introduce auto-generated protobuf code for CometBFT `v1.0` | ||
([\#1381](https://github.com/informalsystems/tendermint-rs/pull/1381)). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pub mod v1_0; | ||
pub use v1_0::*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
//! Protobuf auto-generated sub-modules for Tendermint. DO NOT EDIT | ||
|
||
pub mod abci { | ||
pub mod v1 { | ||
include!("../prost/v1_0/cometbft.abci.v1.rs"); | ||
} | ||
pub mod v1beta1 { | ||
include!("../prost/v1_0/cometbft.abci.v1beta1.rs"); | ||
} | ||
pub mod v1beta2 { | ||
include!("../prost/v1_0/cometbft.abci.v1beta2.rs"); | ||
} | ||
pub mod v1beta3 { | ||
include!("../prost/v1_0/cometbft.abci.v1beta3.rs"); | ||
} | ||
} | ||
|
||
pub mod blocksync { | ||
pub mod v1 { | ||
include!("../prost/v1_0/cometbft.blocksync.v1.rs"); | ||
} | ||
pub mod v1beta1 { | ||
include!("../prost/v1_0/cometbft.blocksync.v1beta1.rs"); | ||
} | ||
} | ||
|
||
pub mod consensus { | ||
pub mod v1 { | ||
include!("../prost/v1_0/cometbft.consensus.v1.rs"); | ||
} | ||
pub mod v1beta1 { | ||
include!("../prost/v1_0/cometbft.consensus.v1beta1.rs"); | ||
} | ||
} | ||
|
||
pub mod crypto { | ||
pub mod v1 { | ||
include!("../prost/v1_0/cometbft.crypto.v1.rs"); | ||
} | ||
} | ||
|
||
pub mod libs { | ||
pub mod bits { | ||
pub mod v1 { | ||
include!("../prost/v1_0/cometbft.libs.bits.v1.rs"); | ||
} | ||
} | ||
} | ||
|
||
pub mod mempool { | ||
pub mod v1 { | ||
include!("../prost/v1_0/cometbft.mempool.v1.rs"); | ||
} | ||
} | ||
|
||
pub mod p2p { | ||
pub mod v1 { | ||
include!("../prost/v1_0/cometbft.p2p.v1.rs"); | ||
} | ||
} | ||
|
||
pub mod privval { | ||
pub mod v1 { | ||
include!("../prost/v1_0/cometbft.privval.v1.rs"); | ||
} | ||
pub mod v1beta1 { | ||
include!("../prost/v1_0/cometbft.privval.v1beta1.rs"); | ||
} | ||
} | ||
|
||
pub mod rpc { | ||
pub mod grpc { | ||
pub mod v1beta1 { | ||
include!("../prost/v1_0/cometbft.rpc.grpc.v1beta1.rs"); | ||
} | ||
pub mod v1beta2 { | ||
include!("../prost/v1_0/cometbft.rpc.grpc.v1beta2.rs"); | ||
} | ||
pub mod v1beta3 { | ||
include!("../prost/v1_0/cometbft.rpc.grpc.v1beta3.rs"); | ||
} | ||
} | ||
} | ||
|
||
pub mod services { | ||
pub mod block { | ||
pub mod v1 { | ||
include!("../prost/v1_0/cometbft.services.block.v1.rs"); | ||
} | ||
} | ||
pub mod block_results { | ||
pub mod v1 { | ||
include!("../prost/v1_0/cometbft.services.block_results.v1.rs"); | ||
} | ||
} | ||
pub mod pruning { | ||
pub mod v1 { | ||
include!("../prost/v1_0/cometbft.services.pruning.v1.rs"); | ||
} | ||
} | ||
pub mod version { | ||
pub mod v1 { | ||
include!("../prost/v1_0/cometbft.services.version.v1.rs"); | ||
} | ||
} | ||
} | ||
|
||
pub mod state { | ||
pub mod v1 { | ||
include!("../prost/v1_0/cometbft.state.v1.rs"); | ||
} | ||
pub mod v1beta1 { | ||
include!("../prost/v1_0/cometbft.state.v1beta1.rs"); | ||
} | ||
pub mod v1beta2 { | ||
include!("../prost/v1_0/cometbft.state.v1beta2.rs"); | ||
} | ||
pub mod v1beta3 { | ||
include!("../prost/v1_0/cometbft.state.v1beta3.rs"); | ||
} | ||
} | ||
|
||
pub mod statesync { | ||
pub mod v1 { | ||
include!("../prost/v1_0/cometbft.statesync.v1.rs"); | ||
} | ||
} | ||
|
||
pub mod store { | ||
pub mod v1 { | ||
include!("../prost/v1_0/cometbft.store.v1.rs"); | ||
} | ||
} | ||
|
||
pub mod types { | ||
pub mod v1 { | ||
include!("../prost/v1_0/cometbft.types.v1.rs"); | ||
} | ||
pub mod v1beta1 { | ||
include!("../prost/v1_0/cometbft.types.v1beta1.rs"); | ||
} | ||
pub mod v1beta2 { | ||
include!("../prost/v1_0/cometbft.types.v1beta2.rs"); | ||
} | ||
} | ||
|
||
pub mod version { | ||
pub mod v1 { | ||
include!("../prost/v1_0/cometbft.version.v1.rs"); | ||
} | ||
} | ||
|
||
pub mod meta { | ||
pub const REPOSITORY: &str = "https://github.com/cometbft/cometbft"; | ||
pub const COMMITISH: &str = "v1.0.0-alpha.1"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.