feat: Add block metadata event support

- Implement BlockMetaEvent and SDKSystemEventParser
- Support block metadata subscription and processing
- Optimize event handling with separate tokio tasks
- Add commitment parameter support
- Upgrade version to 0.1.3
This commit is contained in:
ysq
2025-07-24 19:37:34 +08:00
parent a5269bb1ff
commit a4987b9a3e
8 changed files with 143 additions and 35 deletions
@@ -18,6 +18,7 @@ pub enum ProtocolType {
Bonk,
RaydiumCpmm,
RaydiumClmm,
SDKSystem,
}
/// 事件类型枚举
@@ -54,6 +55,7 @@ pub enum EventType {
RaydiumClmmSwapV2,
// 通用事件
SDKSystem,
Unknown,
}
@@ -77,6 +79,7 @@ impl EventType {
EventType::RaydiumCpmmSwapBaseOutput => "RaydiumCpmmSwapBaseOutput".to_string(),
EventType::RaydiumClmmSwap => "RaydiumClmmSwap".to_string(),
EventType::RaydiumClmmSwapV2 => "RaydiumClmmSwapV2".to_string(),
EventType::SDKSystem => "SDKSystem".to_string(),
EventType::Unknown => "Unknown".to_string(),
}
}