Skip to main content

rialo_types/
modified_entries.rs

1// Copyright (c) Subzero Labs, Inc.
2// SPDX-License-Identifier: Apache-2.0
3
4use rialo_s_pubkey::Pubkey;
5
6use crate::{
7    rex_info::{RexEntry, RexId},
8    websocket::WebSocketConnection,
9    RexDutiesMapKey, RexDutiesMapValue,
10};
11
12/// Represents a collection of modified REX-related entries.
13///
14/// This struct contains all the changes that occurred during REX processing,
15/// including registries updates and duty modifications. It serves as a consolidated
16/// view of all REX state changes that need to be persisted or propagated.
17#[derive(Debug, Clone, Default, PartialEq, Eq)]
18pub struct ModifiedEntries {
19    pub modified_duties_registry_entries: Vec<(Pubkey, RexEntry)>,
20    pub added_rex_duties: Vec<(RexDutiesMapKey, RexDutiesMapValue)>,
21    pub removed_rex_duties: Vec<RexDutiesMapKey>,
22    pub modified_websocket_connections: Vec<(RexId, WebSocketConnection)>,
23}