pub enum Swap {
Show 69 variants
Saber,
SaberAddDecimalsDeposit,
SaberAddDecimalsWithdraw,
TokenSwap,
Sencha,
Step,
Cropper,
Raydium,
Crema {
a_to_b: bool,
},
Lifinity,
Mercurial,
Cykura,
Serum {
side: Side,
},
MarinadeDeposit,
MarinadeUnstake,
Aldrin {
side: Side,
},
AldrinV2 {
side: Side,
},
Whirlpool {
a_to_b: bool,
},
Invariant {
x_to_y: bool,
},
Meteora,
GooseFX,
DeltaFi {
stable: bool,
},
Balansol,
MarcoPolo {
x_to_y: bool,
},
Dradex {
side: Side,
},
LifinityV2,
RaydiumClmm,
Openbook {
side: Side,
},
Phoenix {
side: Side,
},
Symmetry {
from_token_id: u64,
to_token_id: u64,
},
TokenSwapV2,
HeliumTreasuryManagementRedeemV0,
StakeDexStakeWrappedSol,
StakeDexSwapViaStake {
bridge_stake_seed: u32,
},
GooseFXV2,
Perps,
PerpsAddLiquidity,
PerpsRemoveLiquidity,
MeteoraDlmm,
OpenBookV2 {
side: Side,
},
RaydiumClmmV2,
StakeDexPrefundWithdrawStakeAndDepositStake {
bridge_stake_seed: u32,
},
Clone {
pool_index: u8,
quantity_is_input: bool,
quantity_is_collateral: bool,
},
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,
PumpdotfunWrappedBuy,
PumpdotfunWrappedSell,
PerpsV2Swap,
PerpsV2AddLiquidity,
PerpsV2RemoveLiquidity,
MoonshotWrappedBuy,
MoonshotWrappedSell,
StabbleStableSwap,
StabbleWeightedSwap,
Obric {
x_to_y: bool,
},
FoxBuyFromEstimatedCost,
FoxClaimPartial {
is_y: bool,
},
SolFi {
is_quote_to_base: bool,
},
SolayerDelegateNoInit,
SolayerUndelegateNoInit,
TokenMill {
side: Side,
},
DaosFunBuy,
DaosFunSell,
ZeroFi,
StakeDexWithdrawWrappedSol,
}
Variants§
Saber
SaberAddDecimalsDeposit
SaberAddDecimalsWithdraw
TokenSwap
Sencha
Step
Cropper
Raydium
Crema
Lifinity
Mercurial
Cykura
Serum
MarinadeDeposit
MarinadeUnstake
Aldrin
AldrinV2
Whirlpool
Invariant
Meteora
GooseFX
DeltaFi
Balansol
MarcoPolo
Dradex
LifinityV2
RaydiumClmm
Openbook
Phoenix
Symmetry
TokenSwapV2
HeliumTreasuryManagementRedeemV0
StakeDexStakeWrappedSol
StakeDexSwapViaStake
GooseFXV2
Perps
PerpsAddLiquidity
PerpsRemoveLiquidity
MeteoraDlmm
OpenBookV2
RaydiumClmmV2
StakeDexPrefundWithdrawStakeAndDepositStake
Clone
SanctumS
Fields
SanctumSAddLiquidity
SanctumSRemoveLiquidity
RaydiumCP
WhirlpoolSwapV2
OneIntro
PumpdotfunWrappedBuy
PumpdotfunWrappedSell
PerpsV2Swap
PerpsV2AddLiquidity
PerpsV2RemoveLiquidity
MoonshotWrappedBuy
MoonshotWrappedSell
StabbleStableSwap
StabbleWeightedSwap
Obric
FoxBuyFromEstimatedCost
FoxClaimPartial
SolFi
SolayerDelegateNoInit
SolayerUndelegateNoInit
TokenMill
DaosFunBuy
DaosFunSell
ZeroFi
StakeDexWithdrawWrappedSol
Trait Implementations§
Source§impl BorshSerialize for Swap
impl BorshSerialize 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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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