juno_rust_proto/prost/cosmos-sdk/
cosmos.base.store.v1beta1.rs

1/// StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes)
2/// It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and
3/// Deletes
4///
5/// Since: cosmos-sdk 0.43
6#[allow(clippy::derive_partial_eq_without_eq)]
7#[derive(Clone, PartialEq, ::prost::Message)]
8pub struct StoreKvPair {
9    /// the store key for the KVStore this pair originates from
10    #[prost(string, tag = "1")]
11    pub store_key: ::prost::alloc::string::String,
12    /// true indicates a delete operation, false indicates a set operation
13    #[prost(bool, tag = "2")]
14    pub delete: bool,
15    #[prost(bytes = "vec", tag = "3")]
16    pub key: ::prost::alloc::vec::Vec<u8>,
17    #[prost(bytes = "vec", tag = "4")]
18    pub value: ::prost::alloc::vec::Vec<u8>,
19}
20/// CommitInfo defines commit information used by the multi-store when committing
21/// a version/height.
22#[allow(clippy::derive_partial_eq_without_eq)]
23#[derive(Clone, PartialEq, ::prost::Message)]
24pub struct CommitInfo {
25    #[prost(int64, tag = "1")]
26    pub version: i64,
27    #[prost(message, repeated, tag = "2")]
28    pub store_infos: ::prost::alloc::vec::Vec<StoreInfo>,
29}
30/// StoreInfo defines store-specific commit information. It contains a reference
31/// between a store name and the commit ID.
32#[allow(clippy::derive_partial_eq_without_eq)]
33#[derive(Clone, PartialEq, ::prost::Message)]
34pub struct StoreInfo {
35    #[prost(string, tag = "1")]
36    pub name: ::prost::alloc::string::String,
37    #[prost(message, optional, tag = "2")]
38    pub commit_id: ::core::option::Option<CommitId>,
39}
40/// CommitID defines the committment information when a specific store is
41/// committed.
42#[allow(clippy::derive_partial_eq_without_eq)]
43#[derive(Clone, PartialEq, ::prost::Message)]
44pub struct CommitId {
45    #[prost(int64, tag = "1")]
46    pub version: i64,
47    #[prost(bytes = "vec", tag = "2")]
48    pub hash: ::prost::alloc::vec::Vec<u8>,
49}