Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore!: Upgrade celestia-core protobuf definitions #34

Open
wants to merge 2 commits into
base: v0.32.x-celestia
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 35 additions & 4 deletions proto/src/prost/v0_34/tendermint.abci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,17 @@ pub struct RequestEcho {
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct RequestFlush {}
#[derive(::serde::Deserialize, ::serde::Serialize)]
#[serde(default)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TimeoutsInfo {
#[prost(message, optional, tag = "1")]
#[serde(with = "crate::serializers::optional_protobuf_duration")]
pub timeout_propose: ::core::option::Option<crate::google::protobuf::Duration>,
#[prost(message, optional, tag = "2")]
#[serde(with = "crate::serializers::optional_protobuf_duration")]
pub timeout_commit: ::core::option::Option<crate::google::protobuf::Duration>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestInfo {
#[prost(string, tag = "1")]
Expand Down Expand Up @@ -139,6 +150,9 @@ pub struct RequestOfferSnapshot {
/// light client-verified app hash for snapshot height
#[prost(bytes = "bytes", tag = "2")]
pub app_hash: ::prost::bytes::Bytes,
/// The application version at which the snapshot was taken
#[prost(uint64, tag = "3")]
pub app_version: u64,
}
/// loads a snapshot chunk
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
Expand All @@ -162,14 +176,25 @@ pub struct RequestApplySnapshotChunk {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestPrepareProposal {
/// block_data is an array of transactions that will be included in a block,
/// sent to the app for possible modifications.
/// applications can not exceed the size of the data passed to it.
/// BlockData is a slice of candidate transactions that may be included in a
/// block. BlockData is sent to the application so that the application can
/// filter and re-arrange the slice of candidate transactions.
#[prost(message, optional, tag = "1")]
pub block_data: ::core::option::Option<super::types::Data>,
/// If an application decides to populate block_data with extra information, they can not exceed this value.
/// BlockDataSize is the maximum size (in bytes) that BlockData should be.
#[prost(int64, tag = "2")]
pub block_data_size: i64,
/// chain_id is a unique identifier for the blockchain network this proposal
/// belongs to (e.g. mocha-1).
#[prost(string, tag = "3")]
pub chain_id: ::prost::alloc::string::String,
/// height is the height of the proposal block
#[prost(int64, tag = "4")]
pub height: i64,
/// time is the time that will end up in the header. This is the voting power
/// weighted median of the last commit.
#[prost(message, optional, tag = "5")]
pub time: ::core::option::Option<crate::google::protobuf::Timestamp>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestProcessProposal {
Expand Down Expand Up @@ -260,6 +285,8 @@ pub struct ResponseInfo {
#[serde(default)]
#[serde(skip_serializing_if = "bytes::Bytes::is_empty")]
pub last_block_app_hash: ::prost::bytes::Bytes,
#[prost(message, optional, tag = "6")]
pub timeouts: ::core::option::Option<TimeoutsInfo>,
}
/// nondeterministic
#[derive(Clone, PartialEq, ::prost::Message)]
Expand All @@ -280,6 +307,8 @@ pub struct ResponseInitChain {
pub validators: ::prost::alloc::vec::Vec<ValidatorUpdate>,
#[prost(bytes = "bytes", tag = "3")]
pub app_hash: ::prost::bytes::Bytes,
#[prost(message, optional, tag = "4")]
pub timeouts: ::core::option::Option<TimeoutsInfo>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponseQuery {
Expand Down Expand Up @@ -370,6 +399,8 @@ pub struct ResponseEndBlock {
pub consensus_param_updates: ::core::option::Option<ConsensusParams>,
#[prost(message, repeated, tag = "3")]
pub events: ::prost::alloc::vec::Vec<Event>,
#[prost(message, optional, tag = "4")]
pub timeouts: ::core::option::Option<TimeoutsInfo>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponseCommit {
Expand Down
52 changes: 26 additions & 26 deletions proto/src/prost/v0_34/tendermint.crypto.rs
Original file line number Diff line number Diff line change
@@ -1,30 +1,4 @@
// This file is @generated by prost-build.
/// PublicKey defines the keys available for use with Validators
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PublicKey {
#[prost(oneof = "public_key::Sum", tags = "1, 2")]
pub sum: ::core::option::Option<public_key::Sum>,
}
/// Nested message and enum types in `PublicKey`.
pub mod public_key {
#[derive(::serde::Deserialize, ::serde::Serialize)]
#[serde(tag = "type", content = "value")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Sum {
#[prost(bytes, tag = "1")]
#[serde(
rename = "tendermint/PubKeyEd25519",
with = "crate::serializers::bytes::base64string"
)]
Ed25519(::prost::alloc::vec::Vec<u8>),
#[prost(bytes, tag = "2")]
#[serde(
rename = "tendermint/PubKeySecp256k1",
with = "crate::serializers::bytes::base64string"
)]
Secp256k1(::prost::alloc::vec::Vec<u8>),
}
}
#[derive(::serde::Deserialize, ::serde::Serialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Proof {
Expand Down Expand Up @@ -75,3 +49,29 @@ pub struct ProofOps {
#[prost(message, repeated, tag = "1")]
pub ops: ::prost::alloc::vec::Vec<ProofOp>,
}
/// PublicKey defines the keys available for use with Validators
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PublicKey {
#[prost(oneof = "public_key::Sum", tags = "1, 2")]
pub sum: ::core::option::Option<public_key::Sum>,
}
/// Nested message and enum types in `PublicKey`.
pub mod public_key {
#[derive(::serde::Deserialize, ::serde::Serialize)]
#[serde(tag = "type", content = "value")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Sum {
#[prost(bytes, tag = "1")]
#[serde(
rename = "tendermint/PubKeyEd25519",
with = "crate::serializers::bytes::base64string"
)]
Ed25519(::prost::alloc::vec::Vec<u8>),
#[prost(bytes, tag = "2")]
#[serde(
rename = "tendermint/PubKeySecp256k1",
with = "crate::serializers::bytes::base64string"
)]
Secp256k1(::prost::alloc::vec::Vec<u8>),
}
}
74 changes: 37 additions & 37 deletions proto/src/prost/v0_34/tendermint.p2p.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,41 @@
// This file is @generated by prost-build.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PacketPing {}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PacketPong {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PacketMsg {
#[prost(int32, tag = "1")]
pub channel_id: i32,
#[prost(bool, tag = "2")]
pub eof: bool,
#[prost(bytes = "vec", tag = "3")]
pub data: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Packet {
#[prost(oneof = "packet::Sum", tags = "1, 2, 3")]
pub sum: ::core::option::Option<packet::Sum>,
}
/// Nested message and enum types in `Packet`.
pub mod packet {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Sum {
#[prost(message, tag = "1")]
PacketPing(super::PacketPing),
#[prost(message, tag = "2")]
PacketPong(super::PacketPong),
#[prost(message, tag = "3")]
PacketMsg(super::PacketMsg),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuthSigMessage {
#[prost(message, optional, tag = "1")]
pub pub_key: ::core::option::Option<super::crypto::PublicKey>,
#[prost(bytes = "vec", tag = "2")]
pub sig: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetAddress {
#[prost(string, tag = "1")]
Expand Down Expand Up @@ -65,40 +102,3 @@ pub mod message {
PexAddrs(super::PexAddrs),
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PacketPing {}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PacketPong {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PacketMsg {
#[prost(int32, tag = "1")]
pub channel_id: i32,
#[prost(bool, tag = "2")]
pub eof: bool,
#[prost(bytes = "vec", tag = "3")]
pub data: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Packet {
#[prost(oneof = "packet::Sum", tags = "1, 2, 3")]
pub sum: ::core::option::Option<packet::Sum>,
}
/// Nested message and enum types in `Packet`.
pub mod packet {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Sum {
#[prost(message, tag = "1")]
PacketPing(super::PacketPing),
#[prost(message, tag = "2")]
PacketPong(super::PacketPong),
#[prost(message, tag = "3")]
PacketMsg(super::PacketMsg),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuthSigMessage {
#[prost(message, optional, tag = "1")]
pub pub_key: ::core::option::Option<super::crypto::PublicKey>,
#[prost(bytes = "vec", tag = "2")]
pub sig: ::prost::alloc::vec::Vec<u8>,
}
3 changes: 3 additions & 0 deletions proto/src/prost/v0_34/tendermint.state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,7 @@ pub struct State {
/// the latest AppHash we've received from calling abci.Commit()
#[prost(bytes = "vec", tag = "13")]
pub app_hash: ::prost::alloc::vec::Vec<u8>,
/// timeouts to be used for the next block height
#[prost(message, optional, tag = "15")]
pub timeouts: ::core::option::Option<super::abci::TimeoutsInfo>,
}
16 changes: 16 additions & 0 deletions proto/src/prost/v0_34/tendermint.store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,19 @@ pub struct BlockStoreState {
#[prost(int64, tag = "2")]
pub height: i64,
}
/// TxInfo describes the location of a tx inside a committed block
/// as well as the result of executing the transaction and the error log output.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TxInfo {
#[prost(int64, tag = "1")]
pub height: i64,
#[prost(uint32, tag = "2")]
pub index: u32,
/// The response code of executing the tx. 0 means
/// successfully executed, all others are error codes.
#[prost(uint32, tag = "3")]
pub code: u32,
/// The error log output generated if the transaction execution fails.
#[prost(string, tag = "4")]
pub error: ::prost::alloc::string::String,
}
18 changes: 9 additions & 9 deletions proto/src/prost/v0_34/tendermint.types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -590,15 +590,6 @@ pub struct EvidenceList {
#[serde(with = "crate::serializers::nullable")]
pub evidence: ::prost::alloc::vec::Vec<Evidence>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EventDataRoundState {
#[prost(int64, tag = "1")]
pub height: i64,
#[prost(int32, tag = "2")]
pub round: i32,
#[prost(string, tag = "3")]
pub step: ::prost::alloc::string::String,
}
#[derive(::serde::Deserialize, ::serde::Serialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Block {
Expand All @@ -611,6 +602,15 @@ pub struct Block {
#[prost(message, optional, tag = "4")]
pub last_commit: ::core::option::Option<Commit>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EventDataRoundState {
#[prost(int64, tag = "1")]
pub height: i64,
#[prost(int32, tag = "2")]
pub round: i32,
#[prost(string, tag = "3")]
pub step: ::prost::alloc::string::String,
}
#[derive(::serde::Deserialize, ::serde::Serialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CanonicalBlockId {
Expand Down
52 changes: 26 additions & 26 deletions proto/src/prost/v0_37/tendermint.crypto.rs
Original file line number Diff line number Diff line change
@@ -1,30 +1,4 @@
// This file is @generated by prost-build.
/// PublicKey defines the keys available for use with Validators
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PublicKey {
#[prost(oneof = "public_key::Sum", tags = "1, 2")]
pub sum: ::core::option::Option<public_key::Sum>,
}
/// Nested message and enum types in `PublicKey`.
pub mod public_key {
#[derive(::serde::Deserialize, ::serde::Serialize)]
#[serde(tag = "type", content = "value")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Sum {
#[prost(bytes, tag = "1")]
#[serde(
rename = "tendermint/PubKeyEd25519",
with = "crate::serializers::bytes::base64string"
)]
Ed25519(::prost::alloc::vec::Vec<u8>),
#[prost(bytes, tag = "2")]
#[serde(
rename = "tendermint/PubKeySecp256k1",
with = "crate::serializers::bytes::base64string"
)]
Secp256k1(::prost::alloc::vec::Vec<u8>),
}
}
#[derive(::serde::Deserialize, ::serde::Serialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Proof {
Expand Down Expand Up @@ -75,3 +49,29 @@ pub struct ProofOps {
#[prost(message, repeated, tag = "1")]
pub ops: ::prost::alloc::vec::Vec<ProofOp>,
}
/// PublicKey defines the keys available for use with Validators
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PublicKey {
#[prost(oneof = "public_key::Sum", tags = "1, 2")]
pub sum: ::core::option::Option<public_key::Sum>,
}
/// Nested message and enum types in `PublicKey`.
pub mod public_key {
#[derive(::serde::Deserialize, ::serde::Serialize)]
#[serde(tag = "type", content = "value")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Sum {
#[prost(bytes, tag = "1")]
#[serde(
rename = "tendermint/PubKeyEd25519",
with = "crate::serializers::bytes::base64string"
)]
Ed25519(::prost::alloc::vec::Vec<u8>),
#[prost(bytes, tag = "2")]
#[serde(
rename = "tendermint/PubKeySecp256k1",
with = "crate::serializers::bytes::base64string"
)]
Secp256k1(::prost::alloc::vec::Vec<u8>),
}
}
Loading