mirror of
https://github.com/0xfnzero/solana-streamer.git
synced 2026-08-19 03:48:04 +00:00
Add PumpFun trade filter and create ix_name support
This commit is contained in:
@@ -174,6 +174,7 @@ mod tests {
|
||||
assert_eq!(st.mint, mint);
|
||||
assert_eq!(st.global, global);
|
||||
assert_eq!(st.event_authority, event_authority);
|
||||
assert_eq!(st.ix_name, "create_v2");
|
||||
assert!(st.is_mayhem_mode);
|
||||
assert!(st.is_cashback_enabled);
|
||||
}
|
||||
|
||||
@@ -60,6 +60,7 @@ pub(crate) fn pumpfun_create_token_from_parser(
|
||||
is_cashback_enabled: c.is_cashback_enabled,
|
||||
quote_mint: normalize_pumpfun_quote_mint(c.quote_mint),
|
||||
virtual_quote_reserves: c.virtual_quote_reserves,
|
||||
ix_name: "create".to_string(),
|
||||
..Default::default()
|
||||
}
|
||||
}
|
||||
@@ -87,6 +88,7 @@ pub(crate) fn pumpfun_create_token_from_parser_v2(
|
||||
is_cashback_enabled: c.is_cashback_enabled,
|
||||
quote_mint: normalize_pumpfun_quote_mint(c.quote_mint),
|
||||
virtual_quote_reserves: c.virtual_quote_reserves,
|
||||
ix_name: "create_v2".to_string(),
|
||||
mint_authority: c.mint_authority,
|
||||
associated_bonding_curve: c.associated_bonding_curve,
|
||||
global: c.global,
|
||||
|
||||
Reference in New Issue
Block a user