Skip to main content

Module traits

Module traits 

Source
Expand description

Module Traits

Re-export from blvm-node for module developers.

These traits define the core interfaces that modules must implement and the APIs they can use to interact with the node.

Structs§

ModuleContext
Context provided to modules for communication with node
ModuleMetadata
Module metadata describing module identity and capabilities

Enums§

EventType
Event types that modules can subscribe to
ModuleError
Module system errors
ModuleState
Module lifecycle state

Traits§

Module
Module trait that all modules must implement
ModuleMeta
Metadata for module bootstrap. Generated by #[module(name, config, migrations)].
NodeAPI
Node API trait - interface for modules to query node state