Services no longer receive the concrete account store. on_command now takes &mut dyn Store + &dyn NetView (both defined in fedserv-api); the engine's Db and Network implement them. Reads hand back plain views (AccountView, ChannelView, ...) carrying only non-secret fields, so the event log, gossip, and credential material (password hash, SCRAM verifiers) are unreachable from a module. All command modules ported; behaviour unchanged.
4 lines
263 B
Rust
4 lines
263 B
Rust
// Sender, ServiceCtx, and the Service trait a pseudo-client implements all live
|
|
// in the fedserv-api SDK crate; re-exported so the engine and the service
|
|
// modules keep using `crate::engine::service::{...}`.
|
|
pub use fedserv_api::{Sender, Service, ServiceCtx};
|