feat(pumpfun): update IDLs and add bonding_curve_v2 + cashback support#159
feat(pumpfun): update IDLs and add bonding_curve_v2 + cashback support#159
Conversation
Update all 3 pump.fun IDL files (pump_fun, pump_swap, pump_fees) with new cashback rewards and fee-sharing features. Fix IDL parser to handle tuple struct types (OptionBool). Add bonding_curve_v2 remaining account to all buy/sell instructions as required by the pump.fun program upgrade. Key changes: - Fix IDL parser crash on tuple struct fields (string vs dict) - Add bonding_curve_v2 PDA derivation and append as remaining account - Add is_cashback_coin field to TokenInfo and BondingCurve decoding - Propagate is_cashback_enabled from CreateEvent/create_v2 to TokenInfo - Conditionally include user_volume_accumulator for cashback sell txs Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review infoConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (9)
📝 WalkthroughWalkthroughThis PR adds comprehensive fee-sharing and cashback support to the Pump.Fun ecosystem. It introduces new IDL instructions, renames existing ones for clarity, adds multiple new public types and events across three IDL files (pump_fees.json, pump_fun_idl.json, pump_swap_idl.json), expands error handling, and updates platform-level code to integrate the new features including bonding curve v2 derivation, cashback field propagation, and IDL parsing enhancements. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
OptionBool) that brokecreate_v2instruction decodingbonding_curve_v2remaining account to all buy/sell instructions as required by the pump.fun program upgradeis_cashback_coinsupport: propagate fromCreateEvent/create_v2throughTokenInfoto conditionally includeuser_volume_accumulatorin sell transactions for cashback coinsCloses #158
Test plan
is_cashback_enabledfieldis_cashback_coinfield🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes
New Features
Enhancements