openzeppelin_monitor/repositories/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//! Repository implementations for configuration management.
//!
//! This module provides traits and implementations for loading and managing
//! configuration data from the filesystem. Each repository type handles a specific
//! configuration type and provides:
//!
//! - Loading configurations from JSON files
//! - Validating configuration references between different types
//! - Accessing configurations through a service layer
//!
//! Currently supported repositories:
//! - Monitor: Loads and validates monitor configurations, ensuring referenced networks and triggers
//!   exist
//! - Network: Loads network configurations defining blockchain connection details
//! - Trigger: Loads trigger configurations defining actions to take when conditions match

mod error;
mod monitor;
mod network;
mod trigger;

pub use error::RepositoryError;
pub use monitor::{MonitorRepository, MonitorRepositoryTrait, MonitorService};
pub use network::{NetworkRepository, NetworkRepositoryTrait, NetworkService};
pub use trigger::{TriggerRepository, TriggerRepositoryTrait, TriggerService};