fix raydium clmm bitmap extension account disc & support whirlpool account event

This commit is contained in:
zhaoguojie2010
2025-11-30 21:32:51 +08:00
parent 47a390a8bf
commit 66e7977897
13 changed files with 673 additions and 4 deletions
@@ -53,6 +53,7 @@ pub enum ProtocolType {
RaydiumAmmV4,
MeteoraDammV2,
MeteoraDlmm,
Whirlpool,
Common,
}
@@ -136,6 +137,7 @@ pub enum EventType {
AccountRaydiumCpmmAmmConfig,
AccountRaydiumCpmmPoolState,
AccountMeteoraDlmmLbPair,
AccountWhirlpool,
NonceAccount,
TokenAccount,
@@ -164,6 +166,7 @@ pub const ACCOUNT_EVENT_TYPES: &[EventType] = &[
EventType::AccountRaydiumCpmmAmmConfig,
EventType::AccountRaydiumCpmmPoolState,
EventType::AccountMeteoraDlmmLbPair,
EventType::AccountWhirlpool,
EventType::TokenAccount,
EventType::NonceAccount,
];
@@ -241,6 +244,7 @@ impl fmt::Display for EventType {
EventType::AccountRaydiumCpmmAmmConfig => write!(f, "AccountRaydiumCpmmAmmConfig"),
EventType::AccountRaydiumCpmmPoolState => write!(f, "AccountRaydiumCpmmPoolState"),
EventType::AccountMeteoraDlmmLbPair => write!(f, "AccountMeteoraDlmmLbPair"),
EventType::AccountWhirlpool => write!(f, "AccountWhirlpool"),
EventType::TokenAccount => write!(f, "TokenAccount"),
EventType::NonceAccount => write!(f, "NonceAccount"),
EventType::BlockMeta => write!(f, "BlockMeta"),