pub enum Swap {
Show 87 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,
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,
},
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,
},
Heaven {
a_to_b: bool,
},
SolFiV2 {
is_quote_to_base: bool,
},
Aquifer,
PumpWrappedBuyV3,
PumpWrappedSellV3,
PumpSwapBuyV3,
PumpSwapSellV3,
JupiterLendDeposit,
JupiterLendRedeem,
DefiTuna {
a_to_b: bool,
remaining_accounts_info: Option<RemainingAccountsInfo>,
},
AlphaQ {
a_to_b: bool,
},
RaydiumV2,
SarosDlmm {
swap_for_y: bool,
},
Futarchy {
side: Side,
},
MeteoraDammV2WithRemainingAccounts,
Obsidian,
WhaleStreet {
side: Side,
},
DynamicV1 {
candidate_swaps: Vec<CandidateSwap>,
},
PumpWrappedBuyV4,
PumpWrappedSellV4,
CarrotIssue,
CarrotRedeem,
Manifest {
side: Side,
},
BisonFi {
a_to_b: bool,
},
HumidiFiV2 {
swap_id: u64,
is_base_to_quote: bool,
},
PerenaStar {
is_mint: bool,
},
GoonFiV2 {
is_bid: bool,
},
}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
PerpsV2
PerpsV2AddLiquidity
PerpsV2RemoveLiquidity
MoonshotWrappedBuy
MoonshotWrappedSell
StabbleStableSwap
StabbleWeightedSwap
Obric
SolFi
SolayerDelegateNoInit
SolayerUndelegateNoInit
ZeroFi
StakeDexWithdrawWrappedSol
VirtualsBuy
VirtualsSell
Perena
Gamma
MeteoraDlmmSwapV2
Fields
§
remaining_accounts_info: RemainingAccountsInfoWoofi
MeteoraDammV2
StabbleStableSwapV2
StabbleWeightedSwapV2
RaydiumLaunchlabBuy
Fields
RaydiumLaunchlabSell
Fields
BoopdotfunWrappedBuy
BoopdotfunWrappedSell
Plasma
GoonFi
HumidiFi
MeteoraDynamicBondingCurveSwapWithRemainingAccounts
TesseraV
Heaven
SolFiV2
Aquifer
PumpWrappedBuyV3
PumpWrappedSellV3
PumpSwapBuyV3
PumpSwapSellV3
JupiterLendDeposit
JupiterLendRedeem
DefiTuna
AlphaQ
RaydiumV2
SarosDlmm
Futarchy
MeteoraDammV2WithRemainingAccounts
Obsidian
WhaleStreet
DynamicV1
Fields
§
candidate_swaps: Vec<CandidateSwap>PumpWrappedBuyV4
PumpWrappedSellV4
CarrotIssue
CarrotRedeem
Manifest
BisonFi
HumidiFiV2
PerenaStar
GoonFiV2
Trait Implementations§
Source§impl TryInto<CandidateSwap> for Swap
impl TryInto<CandidateSwap> for Swap
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