1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use light_bounded_vec::BoundedVec;
use light_concurrent_merkle_tree::event::RawIndexedElement;

#[derive(Clone, Debug, PartialEq, Eq)]
pub struct IndexedChangelogEntry<I>
where
    I: Clone,
{
    /// Element that was a subject to the change.
    pub element: RawIndexedElement<I>,
    /// Merkle proof of that operation.
    pub proof: BoundedVec<[u8; 32]>,
    /// Index of a changelog entry in `ConcurrentMerkleTree` corresponding to
    /// the same operation.
    pub changelog_index: usize,
}