Enum serum_dex::instruction::MarketInstruction [−][src]
pub enum MarketInstruction {}Show 17 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, Prune(u16),
Variants
[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[]
open orders market authority (optional)[]
prune authority (optional, requires open orders market authority)
Tuple Fields of InitializeMarket
[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
Tuple Fields of NewOrder
[writable]
market[writable]
req_q[writable]
event_q[writable]
bids[writable]
asks[writable]
coin fee receivable account[writable]
pc fee receivable account
Tuple Fields of MatchOrders
0: 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
Tuple Fields of ConsumeEvents
0: u16
[]
market[writable]
OpenOrders[writable]
the request queue[signer]
the OpenOrders owner
Tuple Fields of CancelOrder
[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
[]
market[writable]
OpenOrders[writable]
the request queue[signer]
the OpenOrders owner
Tuple Fields of CancelOrderByClientId
0: u64
[writable]
market[signer]
disable authority
[writable]
market[writable]
pc vault[signer]
fee sweeping authority[writable]
fee receivable account[]
vault signer[]
spl token program
[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
Tuple Fields of NewOrderV2
[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
Tuple Fields of NewOrderV3
[writable]
market[writable]
bids[writable]
asks[writable]
OpenOrders[signer]
the OpenOrders owner[writable]
event_q
Tuple Fields of CancelOrderV2
[writable]
market[writable]
bids[writable]
asks[writable]
OpenOrders[signer]
the OpenOrders owner[writable]
event_q
Tuple Fields of CancelOrderByClientIdV2
0: u64
[writable]
market[writable]
bids[writable]
asks[writable]
OpenOrders[]
Tuple Fields of SendTake
[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[signer]
open orders market authority (optional).
Removes all orders for a given open orders account from the orderbook.
[writable]
market[writable]
bids[writable]
asks[signer]
prune authority[]
open orders.[]
open orders owner.[writable]
event queue.
Tuple Fields of Prune
0: u16
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
pub default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
pub default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
pub default fn example() -> T
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self