pub struct GraduateManualCpiBuilder<'a, 'b> { /* private fields */ }Expand description
Instruction builder for GraduateManual via CPI.
§Accounts:
[writable, signer]signer[writable]creator[]fee_authority[]destination[writable]bonding_curve[]config[]quote_mint[writable]quote_vault[writable]creator_quote_ata[writable]signer_quote_ata[writable]fee_authority_quote_ata[writable]destination_quote_ata[writable]base_mint[writable]fee_authority_base_ata[writable]destination_base_ata[]system_program[]ata_program[]quote_token_program[]base_token_program
Implementations§
Source§impl<'a, 'b> GraduateManualCpiBuilder<'a, 'b>
impl<'a, 'b> GraduateManualCpiBuilder<'a, 'b>
pub fn new(program: &'b AccountInfo<'a>) -> Self
Sourcepub fn signer(&mut self, signer: &'b AccountInfo<'a>) -> &mut Self
pub fn signer(&mut self, signer: &'b AccountInfo<'a>) -> &mut Self
The signer of the transaction
Sourcepub fn creator(&mut self, creator: &'b AccountInfo<'a>) -> &mut Self
pub fn creator(&mut self, creator: &'b AccountInfo<'a>) -> &mut Self
The creator of the token
The fee authority of the token
Sourcepub fn destination(&mut self, destination: &'b AccountInfo<'a>) -> &mut Self
pub fn destination(&mut self, destination: &'b AccountInfo<'a>) -> &mut Self
The destination of the token
Sourcepub fn bonding_curve(&mut self, bonding_curve: &'b AccountInfo<'a>) -> &mut Self
pub fn bonding_curve(&mut self, bonding_curve: &'b AccountInfo<'a>) -> &mut Self
The bonding curve account
Sourcepub fn config(&mut self, config: &'b AccountInfo<'a>) -> &mut Self
pub fn config(&mut self, config: &'b AccountInfo<'a>) -> &mut Self
The config account
Sourcepub fn quote_mint(&mut self, quote_mint: &'b AccountInfo<'a>) -> &mut Self
pub fn quote_mint(&mut self, quote_mint: &'b AccountInfo<'a>) -> &mut Self
The quote mint account
Sourcepub fn quote_vault(&mut self, quote_vault: &'b AccountInfo<'a>) -> &mut Self
pub fn quote_vault(&mut self, quote_vault: &'b AccountInfo<'a>) -> &mut Self
The quote vault account
Sourcepub fn creator_quote_ata(
&mut self,
creator_quote_ata: &'b AccountInfo<'a>,
) -> &mut Self
pub fn creator_quote_ata( &mut self, creator_quote_ata: &'b AccountInfo<'a>, ) -> &mut Self
The creator quote ata account
Sourcepub fn signer_quote_ata(
&mut self,
signer_quote_ata: &'b AccountInfo<'a>,
) -> &mut Self
pub fn signer_quote_ata( &mut self, signer_quote_ata: &'b AccountInfo<'a>, ) -> &mut Self
The signer quote ata account
The fee authority quote ata account
Sourcepub fn destination_quote_ata(
&mut self,
destination_quote_ata: &'b AccountInfo<'a>,
) -> &mut Self
pub fn destination_quote_ata( &mut self, destination_quote_ata: &'b AccountInfo<'a>, ) -> &mut Self
The destination quote ata account
Sourcepub fn base_mint(&mut self, base_mint: &'b AccountInfo<'a>) -> &mut Self
pub fn base_mint(&mut self, base_mint: &'b AccountInfo<'a>) -> &mut Self
The base mint account
The fee authority base ata account
Sourcepub fn destination_base_ata(
&mut self,
destination_base_ata: &'b AccountInfo<'a>,
) -> &mut Self
pub fn destination_base_ata( &mut self, destination_base_ata: &'b AccountInfo<'a>, ) -> &mut Self
The destination base ata account
Sourcepub fn system_program(
&mut self,
system_program: &'b AccountInfo<'a>,
) -> &mut Self
pub fn system_program( &mut self, system_program: &'b AccountInfo<'a>, ) -> &mut Self
The system program account
Sourcepub fn ata_program(&mut self, ata_program: &'b AccountInfo<'a>) -> &mut Self
pub fn ata_program(&mut self, ata_program: &'b AccountInfo<'a>) -> &mut Self
The ata program account
Sourcepub fn quote_token_program(
&mut self,
quote_token_program: &'b AccountInfo<'a>,
) -> &mut Self
pub fn quote_token_program( &mut self, quote_token_program: &'b AccountInfo<'a>, ) -> &mut Self
The quote token program account
Sourcepub fn base_token_program(
&mut self,
base_token_program: &'b AccountInfo<'a>,
) -> &mut Self
pub fn base_token_program( &mut self, base_token_program: &'b AccountInfo<'a>, ) -> &mut Self
The base token program account
Sourcepub fn add_remaining_account(
&mut self,
account: &'b AccountInfo<'a>,
is_writable: bool,
is_signer: bool,
) -> &mut Self
pub fn add_remaining_account( &mut self, account: &'b AccountInfo<'a>, is_writable: bool, is_signer: bool, ) -> &mut Self
Add an additional account to the instruction.
Sourcepub fn add_remaining_accounts(
&mut self,
accounts: &[(&'b AccountInfo<'a>, bool, bool)],
) -> &mut Self
pub fn add_remaining_accounts( &mut self, accounts: &[(&'b AccountInfo<'a>, bool, bool)], ) -> &mut Self
Add additional accounts to the instruction.
Each account is represented by a tuple of the AccountInfo, a bool indicating whether the account is writable or not,
and a bool indicating whether the account is a signer or not.
pub fn invoke(&self) -> ProgramResult
pub fn invoke_signed(&self, signers_seeds: &[&[&[u8]]]) -> ProgramResult
Trait Implementations§
Source§impl<'a, 'b> Clone for GraduateManualCpiBuilder<'a, 'b>
impl<'a, 'b> Clone for GraduateManualCpiBuilder<'a, 'b>
Source§fn clone(&self) -> GraduateManualCpiBuilder<'a, 'b>
fn clone(&self) -> GraduateManualCpiBuilder<'a, 'b>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more