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:

  1. Dex program.
  2. System program. .. serum_dex::MarketInstruction::InitOpenOrders.

Data:

  1. Discriminant. 1..2 Borsh(struct { bump: u8, bump_init: u8 }). ..

Accounts:

..

Data:

  1. Discriminant. ..

Accounts:

..

Data:

  1. Discriminant. ..

Accounts:

..

Data:

  1. Discriminant. ..

Accounts:

..

Data:

  1. Discriminant. ..

Accounts:

..

Data:

  1. Discriminant. ..

Accounts:

..

Data:

  1. 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.

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.