pub struct InitializePoolV2Cpi<'a, 'b> {Show 16 fields
pub __program: &'b AccountInfo<'a>,
pub whirlpools_config: &'b AccountInfo<'a>,
pub token_mint_a: &'b AccountInfo<'a>,
pub token_mint_b: &'b AccountInfo<'a>,
pub token_badge_a: &'b AccountInfo<'a>,
pub token_badge_b: &'b AccountInfo<'a>,
pub funder: &'b AccountInfo<'a>,
pub whirlpool: &'b AccountInfo<'a>,
pub token_vault_a: &'b AccountInfo<'a>,
pub token_vault_b: &'b AccountInfo<'a>,
pub fee_tier: &'b AccountInfo<'a>,
pub token_program_a: &'b AccountInfo<'a>,
pub token_program_b: &'b AccountInfo<'a>,
pub system_program: &'b AccountInfo<'a>,
pub rent: &'b AccountInfo<'a>,
pub __args: InitializePoolV2InstructionArgs,
}Expand description
initialize_pool_v2 CPI instruction.
Fields§
§__program: &'b AccountInfo<'a>The program to invoke.
whirlpools_config: &'b AccountInfo<'a>§token_mint_a: &'b AccountInfo<'a>§token_mint_b: &'b AccountInfo<'a>§token_badge_a: &'b AccountInfo<'a>§token_badge_b: &'b AccountInfo<'a>§funder: &'b AccountInfo<'a>§whirlpool: &'b AccountInfo<'a>§token_vault_a: &'b AccountInfo<'a>§token_vault_b: &'b AccountInfo<'a>§fee_tier: &'b AccountInfo<'a>§token_program_a: &'b AccountInfo<'a>§token_program_b: &'b AccountInfo<'a>§system_program: &'b AccountInfo<'a>§rent: &'b AccountInfo<'a>§__args: InitializePoolV2InstructionArgsThe arguments for the instruction.
Implementations§
Source§impl<'a, 'b> InitializePoolV2Cpi<'a, 'b>
impl<'a, 'b> InitializePoolV2Cpi<'a, 'b>
pub fn new( program: &'b AccountInfo<'a>, accounts: InitializePoolV2CpiAccounts<'a, 'b>, args: InitializePoolV2InstructionArgs, ) -> 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 InitializePoolV2Cpi<'a, 'b>
impl<'a, 'b> !Send for InitializePoolV2Cpi<'a, 'b>
impl<'a, 'b> !Sync for InitializePoolV2Cpi<'a, 'b>
impl<'a, 'b> !UnwindSafe for InitializePoolV2Cpi<'a, 'b>
impl<'a, 'b> Freeze for InitializePoolV2Cpi<'a, 'b>
impl<'a, 'b> Unpin for InitializePoolV2Cpi<'a, 'b>
impl<'a, 'b> UnsafeUnpin for InitializePoolV2Cpi<'a, 'b>
Blanket Implementations§
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