pub struct MarketDepositCpi<'a, 'b> {Show 13 fields
pub __program: &'b AccountInfo<'a>,
pub authority: &'b AccountInfo<'a>,
pub market: &'b AccountInfo<'a>,
pub mint_a: &'b AccountInfo<'a>,
pub mint_b: &'b AccountInfo<'a>,
pub authority_a: &'b AccountInfo<'a>,
pub authority_b: &'b AccountInfo<'a>,
pub market_a: &'b AccountInfo<'a>,
pub market_b: &'b AccountInfo<'a>,
pub token_program_a: &'b AccountInfo<'a>,
pub token_program_b: &'b AccountInfo<'a>,
pub memo_program: &'b AccountInfo<'a>,
pub __args: MarketDepositInstructionArgs,
}Expand description
market_deposit CPI instruction.
Fields§
§__program: &'b AccountInfo<'a>The program to invoke.
The authority
market: &'b AccountInfo<'a>The market
mint_a: &'b AccountInfo<'a>The token a mint
mint_b: &'b AccountInfo<'a>The token b mint
The authority’s token account for token a
The authority’s token account for token b
market_a: &'b AccountInfo<'a>The market token account for token a
market_b: &'b AccountInfo<'a>The market token account for token b
token_program_a: &'b AccountInfo<'a>The token program for token a
token_program_b: &'b AccountInfo<'a>The token program for token b
memo_program: &'b AccountInfo<'a>The memo program
__args: MarketDepositInstructionArgsThe arguments for the instruction.
Implementations§
Source§impl<'a, 'b> MarketDepositCpi<'a, 'b>
impl<'a, 'b> MarketDepositCpi<'a, 'b>
pub fn new( program: &'b AccountInfo<'a>, accounts: MarketDepositCpiAccounts<'a, 'b>, args: MarketDepositInstructionArgs, ) -> Self
pub fn invoke(&self) -> ProgramResult
pub fn invoke_with_remaining_accounts( &self, remaining_accounts: &[(&'b AccountInfo<'a>, bool, bool)], ) -> ProgramResult
pub fn invoke_signed(&self, signers_seeds: &[&[&[u8]]]) -> ProgramResult
pub fn invoke_signed_with_remaining_accounts( &self, signers_seeds: &[&[&[u8]]], remaining_accounts: &[(&'b AccountInfo<'a>, bool, bool)], ) -> ProgramResult
Auto Trait Implementations§
impl<'a, 'b> Freeze for MarketDepositCpi<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for MarketDepositCpi<'a, 'b>
impl<'a, 'b> !Send for MarketDepositCpi<'a, 'b>
impl<'a, 'b> !Sync for MarketDepositCpi<'a, 'b>
impl<'a, 'b> Unpin for MarketDepositCpi<'a, 'b>
impl<'a, 'b> UnsafeUnpin for MarketDepositCpi<'a, 'b>
impl<'a, 'b> !UnwindSafe for MarketDepositCpi<'a, 'b>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more