Struct anchor_spl::dex::Logger [−][src]
pub struct Logger;
Expand description
Logs each request.
Trait Implementations
fn new_order_v3(
&self,
_ctx: &mut Context<'_, '_>,
ix: &NewOrderInstructionV3
) -> ProgramResult
fn cancel_order_v2(
&self,
_ctx: &mut Context<'_, '_>,
ix: &CancelOrderInstructionV2
) -> ProgramResult
fn cancel_order_by_client_id_v2(
&self,
_ctx: &mut Context<'_, '_>,
client_id: u64
) -> ProgramResult
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.