feat: add trade type parameter and bump version to 1.1.1

This commit is contained in:
ysq
2025-09-22 01:25:32 +08:00
parent 334e685104
commit 020187a57a
8 changed files with 19 additions and 11 deletions
+1
View File
@@ -19,6 +19,7 @@ The `TradeSwapParams` struct contains all parameters required for executing swap
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `dex_type` | `DexType` | ✅ | The trading protocol to use (PumpFun, PumpSwap, Bonk, RaydiumCpmm, RaydiumAmmV4) |
| `trade_type` | `TradeType` | ✅ | The type of trade to execute (Buy, Sell) |
| `input_mint` | `Pubkey` | ✅ | The public key of the token to spend (input token) |
| `output_mint` | `Pubkey` | ✅ | The public key of the token to receive (output token) |
| `input_token_program` | `Pubkey` | ✅ | The token program ID for the input token |