66 lines
922 B
Rust
66 lines
922 B
Rust
pub mod native_node {
|
|
pub mod node;
|
|
pub use node::*;
|
|
|
|
pub mod error;
|
|
pub use error::*;
|
|
|
|
}
|
|
|
|
pub mod cli;
|
|
|
|
pub mod args;
|
|
|
|
pub mod error;
|
|
|
|
pub mod event_bus;
|
|
|
|
pub mod watcher {
|
|
pub mod executor;
|
|
pub mod parser;
|
|
pub mod renderer;
|
|
pub mod watcher;
|
|
|
|
pub use watcher::*;
|
|
pub use executor::*;
|
|
pub use parser::*;
|
|
pub use renderer::*;
|
|
}
|
|
|
|
pub mod protocol {
|
|
pub mod message;
|
|
pub use message::*;
|
|
|
|
pub mod connection;
|
|
pub use connection::*;
|
|
|
|
pub mod connector;
|
|
pub use connector::*;
|
|
}
|
|
|
|
pub mod core {
|
|
pub mod block;
|
|
pub use block::*;
|
|
|
|
pub mod blockchain;
|
|
pub use blockchain::*;
|
|
|
|
pub mod tx;
|
|
pub use tx::*;
|
|
|
|
pub mod data;
|
|
pub use data::*;
|
|
|
|
}
|
|
|
|
pub mod seeds_constants;
|
|
|
|
use crate::watcher::renderer::{RenderPane, RenderCommand};
|
|
|
|
pub fn log(msg: String) {
|
|
crate::event_bus::publish_render_event(RenderCommand::RenderStringToPane{
|
|
pane: RenderPane::CliOutput,
|
|
str: msg
|
|
})
|
|
}
|