Struct anchor_spl::dex::Context [−][src]
pub struct Context<'a, 'info> {
pub program_id: &'a Pubkey,
pub dex_program_id: &'a Pubkey,
pub accounts: Vec<AccountInfo<'info>>,
pub seeds: Vec<Vec<Vec<u8>>>,
pub pre_instructions: Vec<(Instruction, Vec<AccountInfo<'info>>, Vec<Vec<Vec<u8>>>)>,
pub post_instructions: Vec<(Instruction, Vec<AccountInfo<'info>>, Vec<Vec<Vec<u8>>>)>,
}
Expand description
Per request context. Can be used to share data between middleware handlers.
Fields
program_id: &'a Pubkey
dex_program_id: &'a Pubkey
accounts: Vec<AccountInfo<'info>>
seeds: Vec<Vec<Vec<u8>>>
pre_instructions: Vec<(Instruction, Vec<AccountInfo<'info>>, Vec<Vec<Vec<u8>>>)>
post_instructions: Vec<(Instruction, Vec<AccountInfo<'info>>, Vec<Vec<Vec<u8>>>)>