feat(pumpswap): Auto-wrap SOL and enrich gRPC events

This commit introduces two main enhancements:

    1.  Adds an `auto_handle_wsol` parameter to `PumpSwap` buy/sell functions. When enabled, the SDK automatically manages the wrapping of SOL to WSOL and unwrapping back to SOL, simplifying client-side logic.
    2.  Enriches `PumpSwap` gRPC buy/sell events by parsing transaction instructions to include token mints and account addresses, providing more context for event consumers.
This commit is contained in:
ysq
2025-06-23 00:50:51 +08:00
parent 9396871b01
commit a0579a338b
6 changed files with 97 additions and 0 deletions
+1
View File
@@ -109,6 +109,7 @@ pub struct PumpSwapParams {
pub pool_quote_token_account: Option<Pubkey>,
pub user_base_token_account: Option<Pubkey>,
pub user_quote_token_account: Option<Pubkey>,
pub auto_handle_wsol: bool,
}
impl ProtocolParams for PumpSwapParams {