From 2c034c3f9d6cdfcfd3f4cf4ba5dd39c9db32d3cd Mon Sep 17 00:00:00 2001 From: agureev Date: Sat, 22 Aug 2026 18:32:55 +0400 Subject: [PATCH] docs: update field docs --- lez/indexer/core/src/config.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lez/indexer/core/src/config.rs b/lez/indexer/core/src/config.rs index bcdbfa327..44a582d7a 100644 --- a/lez/indexer/core/src/config.rs +++ b/lez/indexer/core/src/config.rs @@ -60,9 +60,7 @@ pub struct IndexerConfig { /// Defaults to `false`: on mismatch the indexer refuses to start. #[serde(default)] pub allow_chain_reset: bool, - /// Which emitted events this indexer persists at ingest. Omitted, it keeps - /// none: event storage is an explicit operator opt-in, declared per source - /// or wholesale via `archival`. + /// Which emitted events this indexer persists. #[serde(default)] pub event_filter: EventFilterConfig, } @@ -94,7 +92,9 @@ impl IndexerConfig { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(rename_all = "snake_case")] pub enum EventFilterConfig { + /// Archival configuration persists all events. Archival, + /// Specifies which events to persist based on selector and id. Sources(Vec), } @@ -104,10 +104,13 @@ impl Default for EventFilterConfig { } } +/// Struct storing information on event-filtering. #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(deny_unknown_fields)] pub struct EventSourceConfig { + /// The ID of the program emitting an event. pub program_id: ProgramId, + /// The optional selectors that are being monitored. #[serde(default, skip_serializing_if = "Option::is_none")] pub selectors: Option>, }