pub struct InstantCreateLimitOrderCpi<'a, 'b> {Show 22 fields
pub __program: &'b AccountInfo<'a>,
pub keeper: &'b AccountInfo<'a>,
pub api_keeper: &'b AccountInfo<'a>,
pub owner: &'b AccountInfo<'a>,
pub funding_account: &'b AccountInfo<'a>,
pub perpetuals: &'b AccountInfo<'a>,
pub pool: &'b AccountInfo<'a>,
pub position: &'b AccountInfo<'a>,
pub position_request: &'b AccountInfo<'a>,
pub position_request_ata: &'b AccountInfo<'a>,
pub custody: &'b AccountInfo<'a>,
pub custody_doves_price_account: &'b AccountInfo<'a>,
pub custody_pythnet_price_account: &'b AccountInfo<'a>,
pub collateral_custody: &'b AccountInfo<'a>,
pub input_mint: &'b AccountInfo<'a>,
pub referral: Option<&'b AccountInfo<'a>>,
pub token_program: &'b AccountInfo<'a>,
pub associated_token_program: &'b AccountInfo<'a>,
pub system_program: &'b AccountInfo<'a>,
pub event_authority: &'b AccountInfo<'a>,
pub program: &'b AccountInfo<'a>,
pub __args: InstantCreateLimitOrderInstructionArgs,
}Expand description
instant_create_limit_order CPI instruction.
Fields§
§__program: &'b AccountInfo<'a>The program to invoke.
keeper: &'b AccountInfo<'a>§api_keeper: &'b AccountInfo<'a>§owner: &'b AccountInfo<'a>§funding_account: &'b AccountInfo<'a>§perpetuals: &'b AccountInfo<'a>§pool: &'b AccountInfo<'a>§position: &'b AccountInfo<'a>§position_request: &'b AccountInfo<'a>§position_request_ata: &'b AccountInfo<'a>§custody: &'b AccountInfo<'a>§custody_doves_price_account: &'b AccountInfo<'a>§custody_pythnet_price_account: &'b AccountInfo<'a>§collateral_custody: &'b AccountInfo<'a>§input_mint: &'b AccountInfo<'a>§referral: Option<&'b AccountInfo<'a>>§token_program: &'b AccountInfo<'a>§associated_token_program: &'b AccountInfo<'a>§system_program: &'b AccountInfo<'a>§program: &'b AccountInfo<'a>§__args: InstantCreateLimitOrderInstructionArgsThe arguments for the instruction.
Implementations§
Source§impl<'a, 'b> InstantCreateLimitOrderCpi<'a, 'b>
impl<'a, 'b> InstantCreateLimitOrderCpi<'a, 'b>
pub fn new( program: &'b AccountInfo<'a>, accounts: InstantCreateLimitOrderCpiAccounts<'a, 'b>, args: InstantCreateLimitOrderInstructionArgs, ) -> 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> !RefUnwindSafe for InstantCreateLimitOrderCpi<'a, 'b>
impl<'a, 'b> !Send for InstantCreateLimitOrderCpi<'a, 'b>
impl<'a, 'b> !Sync for InstantCreateLimitOrderCpi<'a, 'b>
impl<'a, 'b> !UnwindSafe for InstantCreateLimitOrderCpi<'a, 'b>
impl<'a, 'b> Freeze for InstantCreateLimitOrderCpi<'a, 'b>
impl<'a, 'b> Unpin for InstantCreateLimitOrderCpi<'a, 'b>
impl<'a, 'b> UnsafeUnpin for InstantCreateLimitOrderCpi<'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