Struct anchor_spl::dex::MarketProxy [−][src]
pub struct MarketProxy<'a> { /* fields omitted */ }
Expand description
MarketProxy provides an abstraction for implementing proxy programs to the Serum orderbook, allowing one to implement a middleware for the purposes of intercepting and modifying requests before being relayed to the orderbook.
The only requirement for a middleware is that, when all are done processing, a valid DEX instruction–accounts and instruction data–must be left to forward to the orderbook program.
Implementations
Builder method for adding a middleware to the proxy.
pub fn run(
self,
program_id: &Pubkey,
accounts: &[AccountInfo<'_>],
data: &[u8]
) -> ProgramResult
pub fn run(
self,
program_id: &Pubkey,
accounts: &[AccountInfo<'_>],
data: &[u8]
) -> ProgramResult
Entrypoint to the program.
Trait Implementations
Returns the “default value” for a type. Read more