Struct agnostic_orderbook::state::MarketState[][src]

pub struct MarketState {
    pub tag: AccountTag,
    pub caller_authority: Pubkey,
    pub event_queue: Pubkey,
    pub bids: Pubkey,
    pub asks: Pubkey,
    pub callback_id_len: u64,
    pub callback_info_len: u64,
    pub fee_budget: u64,
    pub initial_lamports: u64,
    pub min_base_order_size: u64,
}
Expand description

The orderbook market’s central state

Fields

tag: AccountTag

Identifies the account as a MarketState object.

caller_authority: Pubkey

The required signer for all market operations.

event_queue: Pubkey

The public key of the orderbook’s event queue account

bids: Pubkey

The public key of the orderbook’s bids account

asks: Pubkey

The public key of the orderbook’s asks account

callback_id_len: u64

The length of an order actor’s callback identifier.

callback_info_len: u64

The length of an order’s callback metadata.

fee_budget: u64

The current budget of fees that have been collected. Cranker rewards are taken from this. This value allows for a verification that the fee was payed in the caller program runtime while not having to add a CPI call to the serum-core.

initial_lamports: u64

The amount of lamports the market account was created with.

min_base_order_size: u64

The minimum order size that can be inserted into the orderbook after matching.

Trait Implementations

Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes. Read more

Deserialize this instance from a slice of bytes.

Serialize this instance into a vector of bytes.

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.