mirror of
https://github.com/0xfnzero/solana-streamer.git
synced 2026-08-14 17:38:05 +00:00
fix: expose PumpFun create quote accounts
This commit is contained in:
@@ -152,6 +152,8 @@ mod tests {
|
||||
let global = Pubkey::new_unique();
|
||||
let event_authority = Pubkey::new_unique();
|
||||
let quote_mint = sol_parser_sdk::core::events::PUMPFUN_WSOL_QUOTE_MINT;
|
||||
let quote_vault = Pubkey::new_unique();
|
||||
let quote_token_program = Pubkey::new_unique();
|
||||
let c = PbPumpCreateV2 {
|
||||
metadata: EventMetadata {
|
||||
signature: Signature::default(),
|
||||
@@ -167,6 +169,8 @@ mod tests {
|
||||
global,
|
||||
event_authority,
|
||||
quote_mint,
|
||||
quote_vault,
|
||||
quote_token_program,
|
||||
is_mayhem_mode: true,
|
||||
is_cashback_enabled: true,
|
||||
..Default::default()
|
||||
@@ -180,6 +184,8 @@ mod tests {
|
||||
assert_eq!(st.global, global);
|
||||
assert_eq!(st.event_authority, event_authority);
|
||||
assert_eq!(st.quote_mint, quote_mint);
|
||||
assert_eq!(st.quote_vault, quote_vault);
|
||||
assert_eq!(st.quote_token_program, quote_token_program);
|
||||
assert_eq!(st.ix_name, "create_v2");
|
||||
assert!(st.is_mayhem_mode);
|
||||
assert!(st.is_cashback_enabled);
|
||||
|
||||
@@ -53,6 +53,8 @@ pub(crate) fn pumpfun_create_token_from_parser(
|
||||
is_mayhem_mode: c.is_mayhem_mode,
|
||||
is_cashback_enabled: c.is_cashback_enabled,
|
||||
quote_mint: normalize_pumpfun_quote_mint(c.quote_mint),
|
||||
quote_vault: c.quote_vault,
|
||||
quote_token_program: c.quote_token_program,
|
||||
virtual_quote_reserves: c.virtual_quote_reserves,
|
||||
ix_name: "create".to_string(),
|
||||
..Default::default()
|
||||
@@ -81,6 +83,8 @@ pub(crate) fn pumpfun_create_token_from_parser_v2(
|
||||
is_mayhem_mode: c.is_mayhem_mode,
|
||||
is_cashback_enabled: c.is_cashback_enabled,
|
||||
quote_mint: normalize_pumpfun_quote_mint(c.quote_mint),
|
||||
quote_vault: c.quote_vault,
|
||||
quote_token_program: c.quote_token_program,
|
||||
virtual_quote_reserves: c.virtual_quote_reserves,
|
||||
ix_name: "create_v2".to_string(),
|
||||
mint_authority: c.mint_authority,
|
||||
|
||||
Reference in New Issue
Block a user