pub trait Plugin: Send + Sync {
// Required methods
fn get_name(&self) -> String;
fn get_meta(&self) -> PluginMeta;
fn get_info(&self) -> PluginInfo;
// Provided methods
fn on_new_otx(&self, _otx: OpenTransaction) { ... }
fn on_new_intervel(&self, _interval: u64) { ... }
fn on_commit_otx(&self, _otxs: Vec<H256>) { ... }
}