nibiru_std/proto/buf/
cosmos.base.snapshots.v1beta1.rs

1// @generated
2/// Snapshot contains Tendermint state sync snapshot info.
3#[allow(clippy::derive_partial_eq_without_eq)]
4#[derive(Clone, PartialEq, ::prost::Message)]
5pub struct Snapshot {
6    #[prost(uint64, tag="1")]
7    pub height: u64,
8    #[prost(uint32, tag="2")]
9    pub format: u32,
10    #[prost(uint32, tag="3")]
11    pub chunks: u32,
12    #[prost(bytes="bytes", tag="4")]
13    pub hash: ::prost::bytes::Bytes,
14    #[prost(message, optional, tag="5")]
15    pub metadata: ::core::option::Option<Metadata>,
16}
17/// Metadata contains SDK-specific snapshot metadata.
18#[allow(clippy::derive_partial_eq_without_eq)]
19#[derive(Clone, PartialEq, ::prost::Message)]
20pub struct Metadata {
21    /// SHA-256 chunk hashes
22    #[prost(bytes="bytes", repeated, tag="1")]
23    pub chunk_hashes: ::prost::alloc::vec::Vec<::prost::bytes::Bytes>,
24}
25/// SnapshotItem is an item contained in a rootmulti.Store snapshot.
26///
27/// Since: cosmos-sdk 0.46
28#[allow(clippy::derive_partial_eq_without_eq)]
29#[derive(Clone, PartialEq, ::prost::Message)]
30pub struct SnapshotItem {
31    /// item is the specific type of snapshot item.
32    #[prost(oneof="snapshot_item::Item", tags="1, 2, 3, 4, 5, 6")]
33    pub item: ::core::option::Option<snapshot_item::Item>,
34}
35/// Nested message and enum types in `SnapshotItem`.
36pub mod snapshot_item {
37    /// item is the specific type of snapshot item.
38    #[allow(clippy::derive_partial_eq_without_eq)]
39#[derive(Clone, PartialEq, ::prost::Oneof)]
40    pub enum Item {
41        #[prost(message, tag="1")]
42        Store(super::SnapshotStoreItem),
43        #[prost(message, tag="2")]
44        Iavl(super::SnapshotIavlItem),
45        #[prost(message, tag="3")]
46        Extension(super::SnapshotExtensionMeta),
47        #[prost(message, tag="4")]
48        ExtensionPayload(super::SnapshotExtensionPayload),
49        #[prost(message, tag="5")]
50        Kv(super::SnapshotKvItem),
51        #[prost(message, tag="6")]
52        Schema(super::SnapshotSchema),
53    }
54}
55/// SnapshotStoreItem contains metadata about a snapshotted store.
56///
57/// Since: cosmos-sdk 0.46
58#[allow(clippy::derive_partial_eq_without_eq)]
59#[derive(Clone, PartialEq, ::prost::Message)]
60pub struct SnapshotStoreItem {
61    #[prost(string, tag="1")]
62    pub name: ::prost::alloc::string::String,
63}
64/// SnapshotIAVLItem is an exported IAVL node.
65///
66/// Since: cosmos-sdk 0.46
67#[allow(clippy::derive_partial_eq_without_eq)]
68#[derive(Clone, PartialEq, ::prost::Message)]
69pub struct SnapshotIavlItem {
70    #[prost(bytes="bytes", tag="1")]
71    pub key: ::prost::bytes::Bytes,
72    #[prost(bytes="bytes", tag="2")]
73    pub value: ::prost::bytes::Bytes,
74    /// version is block height
75    #[prost(int64, tag="3")]
76    pub version: i64,
77    /// height is depth of the tree.
78    #[prost(int32, tag="4")]
79    pub height: i32,
80}
81/// SnapshotExtensionMeta contains metadata about an external snapshotter.
82///
83/// Since: cosmos-sdk 0.46
84#[allow(clippy::derive_partial_eq_without_eq)]
85#[derive(Clone, PartialEq, ::prost::Message)]
86pub struct SnapshotExtensionMeta {
87    #[prost(string, tag="1")]
88    pub name: ::prost::alloc::string::String,
89    #[prost(uint32, tag="2")]
90    pub format: u32,
91}
92/// SnapshotExtensionPayload contains payloads of an external snapshotter.
93///
94/// Since: cosmos-sdk 0.46
95#[allow(clippy::derive_partial_eq_without_eq)]
96#[derive(Clone, PartialEq, ::prost::Message)]
97pub struct SnapshotExtensionPayload {
98    #[prost(bytes="bytes", tag="1")]
99    pub payload: ::prost::bytes::Bytes,
100}
101/// SnapshotKVItem is an exported Key/Value Pair
102///
103/// Since: cosmos-sdk 0.46
104/// Deprecated: This message was part of store/v2alpha1 which has been deleted from v0.47.
105#[allow(clippy::derive_partial_eq_without_eq)]
106#[derive(Clone, PartialEq, ::prost::Message)]
107pub struct SnapshotKvItem {
108    #[prost(bytes="bytes", tag="1")]
109    pub key: ::prost::bytes::Bytes,
110    #[prost(bytes="bytes", tag="2")]
111    pub value: ::prost::bytes::Bytes,
112}
113/// SnapshotSchema is an exported schema of smt store
114///
115/// Since: cosmos-sdk 0.46
116/// Deprecated: This message was part of store/v2alpha1 which has been deleted from v0.47.
117#[allow(clippy::derive_partial_eq_without_eq)]
118#[derive(Clone, PartialEq, ::prost::Message)]
119pub struct SnapshotSchema {
120    #[prost(bytes="bytes", repeated, tag="1")]
121    pub keys: ::prost::alloc::vec::Vec<::prost::bytes::Bytes>,
122}
123// @@protoc_insertion_point(module)