Struct anchor_spl::dex::OpenOrdersPda [−][src]
pub struct OpenOrdersPda { /* fields omitted */ }
Expand description
Checks that the given open orders account signs the transaction and then replaces it with the open orders account, which must be a PDA.
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
Accounts:
- Dex program.
- System program. .. serum_dex::MarketInstruction::InitOpenOrders.
Data:
- Discriminant. 1..2 Borsh(struct { bump: u8, bump_init: u8 }). ..
fn new_order_v3(
&self,
ctx: &mut Context<'_, '_>,
ix: &NewOrderInstructionV3
) -> ProgramResult
fn new_order_v3(
&self,
ctx: &mut Context<'_, '_>,
ix: &NewOrderInstructionV3
) -> ProgramResult
Accounts:
..
Data:
- Discriminant. ..
fn cancel_order_v2(
&self,
ctx: &mut Context<'_, '_>,
_ix: &CancelOrderInstructionV2
) -> ProgramResult
fn cancel_order_v2(
&self,
ctx: &mut Context<'_, '_>,
_ix: &CancelOrderInstructionV2
) -> ProgramResult
Accounts:
..
Data:
- Discriminant. ..
fn cancel_order_by_client_id_v2(
&self,
ctx: &mut Context<'_, '_>,
_client_id: u64
) -> ProgramResult
fn cancel_order_by_client_id_v2(
&self,
ctx: &mut Context<'_, '_>,
_client_id: u64
) -> ProgramResult
Accounts:
..
Data:
- Discriminant. ..
Accounts:
..
Data:
- Discriminant. ..
Accounts:
..
Data:
- Discriminant. ..
Accounts:
..
Data:
- Discriminant. ..
Called before any instruction, giving middleware access to the raw instruction data. This can be used to access extra data that is prepended to the DEX data, allowing one to expand the capabilities of any instruction by reading the instruction data here and then using it in any of the method handlers. Read more
Called when the instruction data doesn’t match any DEX instruction.