Enum Swap

Source
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

Fields

§a_to_b: bool
§

Lifinity

§

Mercurial

§

Cykura

§

Serum

Fields

§side: Side
§

MarinadeDeposit

§

MarinadeUnstake

§

Aldrin

Fields

§side: Side
§

AldrinV2

Fields

§side: Side
§

Whirlpool

Fields

§a_to_b: bool
§

Invariant

Fields

§x_to_y: bool
§

Meteora

§

GooseFX

§

DeltaFi

Fields

§stable: bool
§

Balansol

§

MarcoPolo

Fields

§x_to_y: bool
§

Dradex

Fields

§side: Side
§

LifinityV2

§

RaydiumClmm

§

Openbook

Fields

§side: Side
§

Phoenix

Fields

§side: Side
§

Symmetry

Fields

§from_token_id: u64
§to_token_id: u64
§

TokenSwapV2

§

HeliumTreasuryManagementRedeemV0

§

StakeDexStakeWrappedSol

§

StakeDexSwapViaStake

Fields

§bridge_stake_seed: u32
§

GooseFXV2

§

Perps

§

PerpsAddLiquidity

§

PerpsRemoveLiquidity

§

MeteoraDlmm

§

OpenBookV2

Fields

§side: Side
§

RaydiumClmmV2

§

StakeDexPrefundWithdrawStakeAndDepositStake

Fields

§bridge_stake_seed: u32
§

Clone

Fields

§pool_index: u8
§quantity_is_input: bool
§quantity_is_collateral: bool
§

SanctumS

Fields

§src_lst_value_calc_accs: u8
§dst_lst_value_calc_accs: u8
§src_lst_index: u32
§dst_lst_index: u32
§

SanctumSAddLiquidity

Fields

§lst_value_calc_accs: u8
§lst_index: u32
§

SanctumSRemoveLiquidity

Fields

§lst_value_calc_accs: u8
§lst_index: u32
§

RaydiumCP

§

WhirlpoolSwapV2

Fields

§a_to_b: bool
§remaining_accounts_info: Option<RemainingAccountsInfo>
§

OneIntro

§

PumpdotfunWrappedBuy

§

PumpdotfunWrappedSell

§

PerpsV2Swap

§

PerpsV2AddLiquidity

§

PerpsV2RemoveLiquidity

§

MoonshotWrappedBuy

§

MoonshotWrappedSell

§

StabbleStableSwap

§

StabbleWeightedSwap

§

Obric

Fields

§x_to_y: bool
§

FoxBuyFromEstimatedCost

§

FoxClaimPartial

Fields

§is_y: bool
§

SolFi

Fields

§is_quote_to_base: bool
§

SolayerDelegateNoInit

§

SolayerUndelegateNoInit

§

TokenMill

Fields

§side: Side
§

DaosFunBuy

§

DaosFunSell

§

ZeroFi

§

StakeDexWithdrawWrappedSol

Trait Implementations§

Source§

impl BorshSerialize for Swap

Source§

fn serialize<__W: Write>(&self, writer: &mut __W) -> Result<(), Error>

Source§

impl Clone for Swap

Source§

fn clone(&self) -> Swap

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Swap

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Swap

Source§

fn eq(&self, other: &Swap) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T