Struct agnostic_orderbook::instruction::create_market::Params[][src]

pub struct Params {
    pub caller_authority: Pubkey,
    pub callback_info_len: u64,
    pub callback_id_len: u64,
    pub min_base_order_size: u64,
}
Expand description

The required arguments for a create_market instruction.

Fields

caller_authority: Pubkey

The caller authority will be the required signer for all market instructions.

In practice, it will almost always be a program-derived address..

callback_info_len: u64

Callback information can be used by the caller to attach specific information to all orders.

An example of this would be to store a public key to uniquely identify the owner of a particular order. This example would thus require a value of 32

callback_id_len: u64

The prefix length of callback information which is used to identify self-trading

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.

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.