Align PumpFun with IDL and sol-parser-sdk; fix warnings; use English comments

- Sync IDL from sol-parser-sdk (pumpfun, pump_amm, add raydium_amm_v4)
- PumpFun CreateEvent: add is_cashback_enabled to CreateToken/CreateV2, parse in log decode and merge
- PumpFun TradeEvent: add ix_name, mayhem_mode, cashback_fee_basis_points, cashback, is_cashback_coin; fix Borsh size 250->274 for fixed fields; parse extension after 274
- Fix deprecation: enable solana-entry feature agave-unstable-api
- Remove unused import wide::CmpEq in simd_utils
- Replace all Chinese comments in modified code with English

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Wood
2026-02-20 00:29:01 +08:00
co-authored by Cursor
parent 573cbf8a72
commit 308a1b594e
7 changed files with 3035 additions and 25 deletions
@@ -21,6 +21,11 @@ pub fn merge(instruction_event: &mut DexEvent, cpi_log_event: DexEvent) {
e.creator = cpie.creator;
e.creator_fee_basis_points = cpie.creator_fee_basis_points;
e.creator_fee = cpie.creator_fee;
e.ix_name = cpie.ix_name.clone();
e.mayhem_mode = cpie.mayhem_mode;
e.cashback_fee_basis_points = cpie.cashback_fee_basis_points;
e.cashback = cpie.cashback;
e.is_cashback_coin = cpie.is_cashback_coin;
}
_ => {}
},
@@ -37,6 +42,7 @@ pub fn merge(instruction_event: &mut DexEvent, cpi_log_event: DexEvent) {
e.token_total_supply = cpie.token_total_supply;
e.token_program = cpie.token_program;
e.is_mayhem_mode = cpie.is_mayhem_mode;
e.is_cashback_enabled = cpie.is_cashback_enabled;
}
_ => {}
},
@@ -53,6 +59,7 @@ pub fn merge(instruction_event: &mut DexEvent, cpi_log_event: DexEvent) {
e.token_total_supply = cpie.token_total_supply;
e.token_program = cpie.token_program;
e.is_mayhem_mode = cpie.is_mayhem_mode;
e.is_cashback_enabled = cpie.is_cashback_enabled;
}
_ => {}
},