feat: add flexible nonce parameter support
- Add nonce_account and current_nonce to trade parameters - Remove hardcoded NonceCache dependency from nonce_manager - Update examples and documentation for new nonce usage - Fix nonce documentation errors and improve clarity
This commit is contained in:
@@ -35,6 +35,8 @@ pub struct BuyParams {
|
||||
pub create_wsol_ata: bool,
|
||||
pub close_wsol_ata: bool,
|
||||
pub create_mint_ata: bool,
|
||||
pub nonce_account: Option<Pubkey>,
|
||||
pub current_nonce: Option<Hash>,
|
||||
}
|
||||
|
||||
/// Sell parameters
|
||||
@@ -55,6 +57,8 @@ pub struct SellParams {
|
||||
pub middleware_manager: Option<Arc<MiddlewareManager>>,
|
||||
pub create_wsol_ata: bool,
|
||||
pub close_wsol_ata: bool,
|
||||
pub nonce_account: Option<Pubkey>,
|
||||
pub current_nonce: Option<Hash>,
|
||||
}
|
||||
|
||||
impl std::fmt::Debug for BuyParams {
|
||||
|
||||
Reference in New Issue
Block a user