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

Constructs a new MarketProxy.

Builder method for adding a middleware to the proxy.

Entrypoint to the program.

Trait Implementations

Returns the “default value” for a type. Read more

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.