# Generated by the protocol buffer compiler. DO NOT EDIT!
# sources: cosmos/store/v1beta1/commit_info.proto, cosmos/store/v1beta1/listening.proto
# plugin: python-betterproto
# This file has been @generated
from dataclasses import dataclass
from datetime import datetime
from typing import List
import betterproto
from ....tendermint import abci as ___tendermint_abci__
[docs]
@dataclass(eq=False, repr=False)
class StoreKvPair(betterproto.Message):
"""
StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and
Deletes)
It optionally includes the StoreKey for the originating KVStore and a Boolean flag
to distinguish between Sets and
Deletes
Since: cosmos-sdk 0.43
"""
store_key: str = betterproto.string_field(1)
delete: bool = betterproto.bool_field(2)
key: bytes = betterproto.bytes_field(3)
value: bytes = betterproto.bytes_field(4)
[docs]
@dataclass(eq=False, repr=False)
class CommitInfo(betterproto.Message):
"""
CommitInfo defines commit information used by the multi-store when committing
a version/height.
"""
version: int = betterproto.int64_field(1)
store_infos: List["StoreInfo"] = betterproto.message_field(2)
timestamp: datetime = betterproto.message_field(3)
[docs]
@dataclass(eq=False, repr=False)
class StoreInfo(betterproto.Message):
"""
StoreInfo defines store-specific commit information. It contains a reference
between a store name and the commit ID.
"""
name: str = betterproto.string_field(1)
commit_id: "CommitId" = betterproto.message_field(2)
[docs]
@dataclass(eq=False, repr=False)
class CommitId(betterproto.Message):
"""
CommitID defines the commitment information when a specific store is
committed.
"""
version: int = betterproto.int64_field(1)
hash: bytes = betterproto.bytes_field(2)