feat: add common account event parser with SPL token support

This commit is contained in:
ysq
2025-09-03 17:19:35 +08:00
parent 1060b04b12
commit 4902c34bfa
4 changed files with 83 additions and 17 deletions
+4
View File
@@ -3,6 +3,7 @@ use solana_streamer_sdk::{
streaming::{
event_parser::{
common::{filter::EventTypeFilter, EventType},
core::account_event_parser::CommonAccountEvent,
protocols::{
bonk::{
parser::BONK_PROGRAM_ID, BonkGlobalConfigAccountEvent, BonkMigrateToAmmEvent,
@@ -333,6 +334,9 @@ fn create_event_callback() -> impl Fn(Box<dyn UnifiedEvent>) {
RaydiumCpmmPoolStateAccountEvent => |e: RaydiumCpmmPoolStateAccountEvent| {
println!("RaydiumCpmmPoolStateAccountEvent: {e:?}");
},
CommonAccountEvent => |e: CommonAccountEvent| {
println!("CommonAccountEvent: {e:?}");
},
});
}
}