[][src]Enum solana_exchange_program::exchange_instruction::ExchangeInstruction

pub enum ExchangeInstruction {
    AccountRequest,
    TransferRequest(Tokenu64),
    OrderRequest(OrderRequestInfo),
    OrderCancellation,
    SwapRequest,
}

Variants

AccountRequest

New token account key 0 - Signer key 1 - New token account

TransferRequest(Tokenu64)

Transfer tokens between two accounts key 0 - Account to transfer tokens to key 1 - Account to transfer tokens from. This can be the exchange program itself, the exchange has a limitless number of tokens it can transfer.

OrderRequest(OrderRequestInfo)

Order request key 0 - Signer key 1 - Account in which to record the trade order key 2 - Token account to source tokens from

OrderCancellation

Order cancellation key 0 - Signer key 1 - Order to cancel

SwapRequest

Trade swap request key 0 - Signer key 2 - 'To' trade order key 3 - From trade order key 6 - Token account in which to deposit the brokers profit from the swap.

Trait Implementations

impl Clone for ExchangeInstruction[src]

impl Debug for ExchangeInstruction[src]

impl<'de> Deserialize<'de> for ExchangeInstruction[src]

impl Eq for ExchangeInstruction[src]

impl PartialEq<ExchangeInstruction> for ExchangeInstruction[src]

impl Serialize for ExchangeInstruction[src]

impl StructuralEq for ExchangeInstruction[src]

impl StructuralPartialEq for ExchangeInstruction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> AbiEnumVisitor for T where
    T: Serialize + ?Sized

impl<T> AbiEnumVisitor for T where
    T: AbiExample + Serialize + ?Sized

impl<T> AbiExample for T

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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