provwasm_std/types/tendermint/
statesync.rs

1use provwasm_proc_macro::CosmwasmExt;
2#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
3#[proto_message(type_url = "/tendermint.statesync.Message")]
4pub struct Message {
5    #[prost(oneof = "message::Sum", tags = "1, 2, 3, 4")]
6    pub sum: ::core::option::Option<message::Sum>,
7}
8/// Nested message and enum types in `Message`.
9pub mod message {
10    use provwasm_proc_macro::CosmwasmExt;
11    #[derive(Clone, PartialEq, Eq, ::prost::Oneof, ::schemars::JsonSchema)]
12    pub enum Sum {
13        #[prost(message, tag = "1")]
14        SnapshotsRequest(super::SnapshotsRequest),
15        #[prost(message, tag = "2")]
16        SnapshotsResponse(super::SnapshotsResponse),
17        #[prost(message, tag = "3")]
18        ChunkRequest(super::ChunkRequest),
19        #[prost(message, tag = "4")]
20        ChunkResponse(super::ChunkResponse),
21    }
22}
23#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
24#[proto_message(type_url = "/tendermint.statesync.SnapshotsRequest")]
25pub struct SnapshotsRequest {}
26#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
27#[proto_message(type_url = "/tendermint.statesync.SnapshotsResponse")]
28pub struct SnapshotsResponse {
29    #[prost(uint64, tag = "1")]
30    pub height: u64,
31    #[prost(uint32, tag = "2")]
32    pub format: u32,
33    #[prost(uint32, tag = "3")]
34    pub chunks: u32,
35    #[prost(bytes = "vec", tag = "4")]
36    pub hash: ::prost::alloc::vec::Vec<u8>,
37    #[prost(bytes = "vec", tag = "5")]
38    pub metadata: ::prost::alloc::vec::Vec<u8>,
39}
40#[derive(Clone, Copy, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
41#[proto_message(type_url = "/tendermint.statesync.ChunkRequest")]
42pub struct ChunkRequest {
43    #[prost(uint64, tag = "1")]
44    pub height: u64,
45    #[prost(uint32, tag = "2")]
46    pub format: u32,
47    #[prost(uint32, tag = "3")]
48    pub index: u32,
49}
50#[derive(Clone, PartialEq, Eq, ::prost::Message, ::schemars::JsonSchema, CosmwasmExt)]
51#[proto_message(type_url = "/tendermint.statesync.ChunkResponse")]
52pub struct ChunkResponse {
53    #[prost(uint64, tag = "1")]
54    pub height: u64,
55    #[prost(uint32, tag = "2")]
56    pub format: u32,
57    #[prost(uint32, tag = "3")]
58    pub index: u32,
59    #[prost(bytes = "vec", tag = "4")]
60    pub chunk: ::prost::alloc::vec::Vec<u8>,
61    #[prost(bool, tag = "5")]
62    pub missing: bool,
63}