1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use solana_geyser_plugin_interface::geyser_plugin_interface::GeyserPlugin;
mod builders;
mod config;
mod events;
mod executors;
mod observers;
mod plugin;
mod pool_position;
mod tpu_client;
mod utils;
pub use plugin::ClockworkPlugin;
#[no_mangle]
#[allow(improper_ctypes_definitions)]
pub unsafe extern "C" fn _create_plugin() -> *mut dyn GeyserPlugin {
let plugin: Box<dyn GeyserPlugin> = Box::new(ClockworkPlugin::default());
Box::into_raw(plugin)
}