Enum jupiter_amm_interface::Swap

source ·
pub enum Swap {
Show 46 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, },
}

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

Trait Implementations§

source§

impl BorshSerialize for Swap

source§

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

source§

fn try_to_vec(&self) -> Result<Vec<u8>, Error>

Serialize this instance into a vector of bytes.
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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for Swap

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> AbiExample for T

source§

default fn example() -> T

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> 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> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

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

§

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>,

§

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>,

§

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