pub struct InitializePoolCpi<'a, 'b> {Show 15 fields
pub __program: &'b AccountInfo<'a>,
pub fusion_pools_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 fusion_pool: &'b AccountInfo<'a>,
pub token_vault_a: &'b AccountInfo<'a>,
pub token_vault_b: &'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: InitializePoolInstructionArgs,
}
Expand description
initialize_pool
CPI instruction.
Fields§
§__program: &'b AccountInfo<'a>
The program to invoke.
fusion_pools_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>
§fusion_pool: &'b AccountInfo<'a>
§token_vault_a: &'b AccountInfo<'a>
§token_vault_b: &'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: InitializePoolInstructionArgs
The arguments for the instruction.
Implementations§
Source§impl<'a, 'b> InitializePoolCpi<'a, 'b>
impl<'a, 'b> InitializePoolCpi<'a, 'b>
pub fn new( program: &'b AccountInfo<'a>, accounts: InitializePoolCpiAccounts<'a, 'b>, args: InitializePoolInstructionArgs, ) -> 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 InitializePoolCpi<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for InitializePoolCpi<'a, 'b>
impl<'a, 'b> !Send for InitializePoolCpi<'a, 'b>
impl<'a, 'b> !Sync for InitializePoolCpi<'a, 'b>
impl<'a, 'b> Unpin for InitializePoolCpi<'a, 'b>
impl<'a, 'b> !UnwindSafe for InitializePoolCpi<'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