Release solana-streamer-sdk 1.5.11

This commit is contained in:
0xfnzero
2026-06-07 02:30:28 +08:00
parent 89bf36148f
commit aa065e7cae
7 changed files with 37 additions and 19 deletions
@@ -426,6 +426,7 @@ pub fn merge(instruction_event: &mut DexEvent, cpi_log_event: DexEvent) {
e.user_quote_token_account = cpie.user_quote_token_account;
e.coin_creator = cpie.coin_creator;
e.is_mayhem_mode = cpie.is_mayhem_mode;
e.is_cashback_coin |= cpie.is_cashback_coin;
}
_ => {}
},
@@ -163,6 +163,9 @@ pub struct PumpSwapCreatePoolEvent {
pub coin_creator: Pubkey,
pub is_mayhem_mode: bool,
#[borsh(skip)]
#[serde(default)]
pub is_cashback_coin: bool,
#[borsh(skip)]
pub user_pool_token_account: Pubkey,
#[borsh(skip)]
pub pool_base_token_account: Pubkey,
+2
View File
@@ -217,6 +217,7 @@ mod tests {
base_mint: Pubkey::new_unique(),
quote_mint: Pubkey::new_unique(),
is_mayhem_mode: true,
is_cashback_coin: true,
..Default::default()
};
@@ -226,6 +227,7 @@ mod tests {
DexEvent::PumpSwapCreatePoolEvent(st) => {
assert_eq!(st.metadata.event_type, EventType::PumpSwapCreatePool);
assert!(st.is_mayhem_mode);
assert!(st.is_cashback_coin);
}
_ => panic!("expected PumpSwapCreatePoolEvent"),
}
@@ -613,6 +613,7 @@ pub(crate) fn pumpswap_create_pool_from_parser(
user_quote_token_account: c.user_quote_token_account,
coin_creator: c.coin_creator,
is_mayhem_mode: c.is_mayhem_mode,
is_cashback_coin: c.is_cashback_coin,
..Default::default()
}
}