breez_sdk_liquid/plugin/
mod.rs

1use std::sync::Weak;
2
3use crate::sdk::LiquidSdk;
4
5mod storage;
6
7pub use storage::*;
8
9#[sdk_macros::async_trait]
10pub trait Plugin: Send + Sync {
11    fn id(&self) -> String;
12    async fn on_start(&self, sdk: Weak<LiquidSdk>, storage: PluginStorage);
13    async fn on_stop(&self);
14}