0.1.0
This commit is contained in:
31
kb-core/src/module.rs
Normal file
31
kb-core/src/module.rs
Normal 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,
|
||||
}
|
||||
Reference in New Issue
Block a user