pub enum Swap {
Show 64 variants
Saber,
SaberAddDecimalsDeposit,
SaberAddDecimalsWithdraw,
TokenSwap,
Raydium,
Crema {
a_to_b: bool,
},
Mercurial,
Aldrin {
side: Side,
},
AldrinV2 {
side: Side,
},
Whirlpool {
a_to_b: bool,
},
Invariant {
x_to_y: bool,
},
Meteora,
MarcoPolo {
x_to_y: bool,
},
LifinityV2,
RaydiumClmm,
Phoenix {
side: Side,
},
TokenSwapV2,
HeliumTreasuryManagementRedeemV0,
StakeDexStakeWrappedSol,
MeteoraDlmm,
OpenBookV2 {
side: Side,
},
RaydiumClmmV2,
StakeDexPrefundWithdrawStakeAndDepositStake {
bridge_stake_seed: u32,
},
SanctumS {
src_lst_value_calc_accs: u8,
dst_lst_value_calc_accs: u8,
src_lst_index: u32,
dst_lst_index: u32,
},
SanctumSAddLiquidity {
lst_value_calc_accs: u8,
lst_index: u32,
},
SanctumSRemoveLiquidity {
lst_value_calc_accs: u8,
lst_index: u32,
},
RaydiumCP,
WhirlpoolSwapV2 {
a_to_b: bool,
remaining_accounts_info: Option<RemainingAccountsInfo>,
},
OneIntro,
PumpWrappedBuy,
PumpWrappedSell,
PerpsV2,
PerpsV2AddLiquidity,
PerpsV2RemoveLiquidity,
MoonshotWrappedBuy,
MoonshotWrappedSell,
StabbleStableSwap,
StabbleWeightedSwap,
Obric {
x_to_y: bool,
},
SolFi {
is_quote_to_base: bool,
},
SolayerDelegateNoInit,
SolayerUndelegateNoInit,
ZeroFi,
StakeDexWithdrawWrappedSol,
VirtualsBuy,
VirtualsSell,
Perena {
in_index: u8,
out_index: u8,
},
PumpSwapBuy,
PumpSwapSell,
Gamma,
MeteoraDlmmSwapV2 {
remaining_accounts_info: RemainingAccountsInfo,
},
Woofi,
MeteoraDammV2,
StabbleStableSwapV2,
StabbleWeightedSwapV2,
RaydiumLaunchlabBuy {
share_fee_rate: u64,
},
RaydiumLaunchlabSell {
share_fee_rate: u64,
},
BoopdotfunWrappedBuy,
BoopdotfunWrappedSell,
Plasma {
side: Side,
},
GoonFi {
is_bid: bool,
blacklist_bump: u8,
},
HumidiFi {
swap_id: u64,
is_base_to_quote: bool,
},
MeteoraDynamicBondingCurveSwapWithRemainingAccounts,
TesseraV {
side: Side,
},
}Variants§
Saber
SaberAddDecimalsDeposit
SaberAddDecimalsWithdraw
TokenSwap
Raydium
Crema
Mercurial
Aldrin
AldrinV2
Whirlpool
Invariant
Meteora
MarcoPolo
LifinityV2
RaydiumClmm
Phoenix
TokenSwapV2
HeliumTreasuryManagementRedeemV0
StakeDexStakeWrappedSol
MeteoraDlmm
OpenBookV2
RaydiumClmmV2
StakeDexPrefundWithdrawStakeAndDepositStake
SanctumS
Fields
SanctumSAddLiquidity
SanctumSRemoveLiquidity
RaydiumCP
WhirlpoolSwapV2
OneIntro
PumpWrappedBuy
PumpWrappedSell
PerpsV2
PerpsV2AddLiquidity
PerpsV2RemoveLiquidity
MoonshotWrappedBuy
MoonshotWrappedSell
StabbleStableSwap
StabbleWeightedSwap
Obric
SolFi
SolayerDelegateNoInit
SolayerUndelegateNoInit
ZeroFi
StakeDexWithdrawWrappedSol
VirtualsBuy
VirtualsSell
Perena
PumpSwapBuy
PumpSwapSell
Gamma
MeteoraDlmmSwapV2
Fields
§
remaining_accounts_info: RemainingAccountsInfoWoofi
MeteoraDammV2
StabbleStableSwapV2
StabbleWeightedSwapV2
RaydiumLaunchlabBuy
Fields
RaydiumLaunchlabSell
Fields
BoopdotfunWrappedBuy
BoopdotfunWrappedSell
Plasma
GoonFi
HumidiFi
MeteoraDynamicBondingCurveSwapWithRemainingAccounts
TesseraV
Trait Implementations§
impl StructuralPartialEq for Swap
Auto Trait Implementations§
impl Freeze for Swap
impl RefUnwindSafe for Swap
impl Send for Swap
impl Sync for Swap
impl Unpin for Swap
impl UnwindSafe for Swap
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