rialo-types 0.1.7

Rialo Types
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) Subzero Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use rialo_s_pubkey::Pubkey;

use crate::{OracleDutiesMapKey, OracleDutiesMapValue, OracleEntry};

/// Represents a collection of modified oracle-related entries.
///
/// This struct contains all the changes that occurred during oracle processing,
/// including registry updates and duty modifications. It serves as a consolidated
/// view of all oracle state changes that need to be persisted or propagated.
#[derive(Debug, Clone, Default)]
pub struct ModifiedEntries {
    pub modified_oracle_registry_entries: Vec<(Pubkey, OracleEntry)>,
    pub added_oracle_duties: Vec<(OracleDutiesMapKey, OracleDutiesMapValue)>,
    pub removed_oracle_duties: Vec<OracleDutiesMapKey>,
}