pub struct TradeTxWithVenueParams<'a> {
pub mint: Pubkey,
pub base_token_program: Pubkey,
pub quote_token_program: Pubkey,
pub user: Pubkey,
pub is_buy: bool,
pub venue: TradeVenue<'a>,
pub base_amount: u64,
pub sol_amount_threshold: u64,
}Expand description
PumpSdk::trade_tx_instructions_with_venue parameters. wSOL uses wrap/unwrap;
amounts come from the *_quote_* helpers.
Fields§
§mint: Pubkey§base_token_program: Pubkey§quote_token_program: Pubkey§user: Pubkey§is_buy: bool§venue: TradeVenue<'a>§base_amount: u64§sol_amount_threshold: u64Trait Implementations§
Source§impl<'a> Clone for TradeTxWithVenueParams<'a>
impl<'a> Clone for TradeTxWithVenueParams<'a>
Source§fn clone(&self) -> TradeTxWithVenueParams<'a>
fn clone(&self) -> TradeTxWithVenueParams<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for TradeTxWithVenueParams<'a>
impl<'a> Debug for TradeTxWithVenueParams<'a>
impl<'a> Copy for TradeTxWithVenueParams<'a>
Auto Trait Implementations§
impl<'a> Freeze for TradeTxWithVenueParams<'a>
impl<'a> RefUnwindSafe for TradeTxWithVenueParams<'a>
impl<'a> Send for TradeTxWithVenueParams<'a>
impl<'a> Sync for TradeTxWithVenueParams<'a>
impl<'a> Unpin for TradeTxWithVenueParams<'a>
impl<'a> UnsafeUnpin for TradeTxWithVenueParams<'a>
impl<'a> UnwindSafe for TradeTxWithVenueParams<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more