feat(pumpfun): update IDLs and add bonding_curve_v2 + cashback support (#159)

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 <noreply@anthropic.com>
This commit is contained in:
Anton Sauchyk
2026-02-27 23:39:52 +01:00
committed by GitHub
parent 0b6779ca34
commit 4a48f545c1
9 changed files with 4334 additions and 88 deletions
+1973 -4
View File
File diff suppressed because it is too large Load Diff
+1323 -61
View File
File diff suppressed because it is too large Load Diff
+926 -1
View File
File diff suppressed because it is too large Load Diff