Enum serum_dex::instruction::MarketInstruction [−][src]
pub enum MarketInstruction {}Show variants
InitializeMarket(InitializeMarketInstruction), NewOrder(NewOrderInstructionV1), MatchOrders(u16), ConsumeEvents(u16), CancelOrder(CancelOrderInstruction), SettleFunds, CancelOrderByClientId(u64), DisableMarket, SweepFees, NewOrderV2(NewOrderInstructionV2), NewOrderV3(NewOrderInstructionV3), CancelOrderV2(CancelOrderInstructionV2), CancelOrderByClientIdV2(u64), SendTake(SendTakeInstruction), CloseOpenOrders, InitOpenOrders,
Variants
InitializeMarket(InitializeMarketInstruction)
[writable]
the market to initialize[writable]
zeroed out request queue[writable]
zeroed out event queue[writable]
zeroed out bids[writable]
zeroed out asks[writable]
spl-token account for the coin currency[writable]
spl-token account for the price currency[]
coin currency Mint[]
price currency Mint[]
the rent sysvar
NewOrder(NewOrderInstructionV1)
[writable]
the market[writable]
the OpenOrders account to use[writable]
the request queue[writable]
the (coin or price currency) account paying for the order[signer]
owner of the OpenOrders account[writable]
coin vault[writable]
pc vault[]
spl token program[]
the rent sysvar[writable]
(optional) the (M)SRM account used for fee discounts
MatchOrders(u16)
[writable]
market[writable]
req_q[writable]
event_q[writable]
bids[writable]
asks[writable]
coin fee receivable account[writable]
pc fee receivable account
ConsumeEvents(u16)
… [writable]
OpenOrders
accounts.len() - 4 [writable]
market
accounts.len() - 3 [writable]
event queue
accounts.len() - 2 [writable]
coin fee receivable account
accounts.len() - 1 [writable]
pc fee receivable account
CancelOrder(CancelOrderInstruction)
[]
market[writable]
OpenOrders[writable]
the request queue[signer]
the OpenOrders owner
[writable]
market[writable]
OpenOrders[signer]
the OpenOrders owner[writable]
coin vault[writable]
pc vault[writable]
coin wallet[writable]
pc wallet[]
vault signer[]
spl token program[writable]
(optional) referrer pc wallet
CancelOrderByClientId(u64)
[]
market[writable]
OpenOrders[writable]
the request queue[signer]
the OpenOrders owner
[writable]
market[signer]
disable authority
[writable]
market[writable]
pc vault[signer]
fee sweeping authority[writable]
fee receivable account[]
vault signer[]
spl token program
NewOrderV2(NewOrderInstructionV2)
[writable]
the market[writable]
the OpenOrders account to use[writable]
the request queue[writable]
the (coin or price currency) account paying for the order[signer]
owner of the OpenOrders account[writable]
coin vault[writable]
pc vault[]
spl token program[]
the rent sysvar[writable]
(optional) the (M)SRM account used for fee discounts
NewOrderV3(NewOrderInstructionV3)
[writable]
the market[writable]
the OpenOrders account to use[writable]
the request queue[writable]
the event queue[writable]
bids[writable]
asks[writable]
the (coin or price currency) account paying for the order[signer]
owner of the OpenOrders account[writable]
coin vault[writable]
pc vault[]
spl token program[]
the rent sysvar[writable]
(optional) the (M)SRM account used for fee discounts
CancelOrderV2(CancelOrderInstructionV2)
[writable]
market[writable]
bids[writable]
asks[writable]
OpenOrders[signer]
the OpenOrders owner[writable]
event_q
CancelOrderByClientIdV2(u64)
[writable]
market[writable]
bids[writable]
asks[writable]
OpenOrders[signer]
the OpenOrders owner[writable]
event_q
SendTake(SendTakeInstruction)
[writable]
market[writable]
bids[writable]
asks[writable]
OpenOrders[]
[writable]
OpenOrders[signer]
the OpenOrders owner[writable]
the destination account to send rent exemption SOL to[]
market
[writable]
OpenOrders[signer]
the OpenOrders owner[]
market[]
the rent sysvar
Implementations
Trait Implementations
impl Clone for MarketInstruction
[src]
impl Clone for MarketInstruction
[src]fn clone(&self) -> MarketInstruction
[src]
fn clone(&self) -> MarketInstruction
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for MarketInstruction
[src]
impl Debug for MarketInstruction
[src]impl<'de> Deserialize<'de> for MarketInstruction
[src]
impl<'de> Deserialize<'de> for MarketInstruction
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<MarketInstruction> for MarketInstruction
[src]
impl PartialEq<MarketInstruction> for MarketInstruction
[src]fn eq(&self, other: &MarketInstruction) -> bool
[src]
fn eq(&self, other: &MarketInstruction) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &MarketInstruction) -> bool
[src]
fn ne(&self, other: &MarketInstruction) -> bool
[src]This method tests for !=
.
impl Serialize for MarketInstruction
[src]
impl Serialize for MarketInstruction
[src]impl Eq for MarketInstruction
[src]
impl StructuralEq for MarketInstruction
[src]
impl StructuralPartialEq for MarketInstruction
[src]
Auto Trait Implementations
impl RefUnwindSafe for MarketInstruction
impl Send for MarketInstruction
impl Sync for MarketInstruction
impl Unpin for MarketInstruction
impl UnwindSafe for MarketInstruction
Blanket Implementations
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
impl<T> AbiEnumVisitor for T where
T: Serialize + AbiExample + ?Sized,
pub default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
impl<T> AbiEnumVisitor for T where
T: Serialize + ?Sized,
pub default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,