This commit is contained in:
2026-07-23 16:37:12 +02:00
parent 99c345f2f2
commit 0da75c1311
2159 changed files with 230833 additions and 0 deletions

31
kb-core/src/module.rs Normal file
View File

@@ -0,0 +1,31 @@
// file: kb-core/src/module.rs
// version: 1
//! Module identity and module-kind primitives.
/// Stable module name.
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct ModuleName(pub std::string::String);
/// Stable semantic module version.
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct ModuleVersion(pub std::string::String);
/// Processing module category.
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum ModuleKind {
/// Raw transaction ingestion.
Ingestor,
/// Generic Solana extractor.
Extractor,
/// Program observation builder.
Observer,
/// Protocol decoder.
Decoder,
/// Business materializer.
Materializer,
/// Aggregation stage.
Aggregator,
/// Validation stage.
Validator,
}