pub struct GraduateManualBuilder { /* private fields */ }Expand description
Instruction builder for GraduateManual.
§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[optional]system_program (default to11111111111111111111111111111111)[optional]ata_program (default toATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL)[]quote_token_program[]base_token_program
Implementations§
Source§impl GraduateManualBuilder
impl GraduateManualBuilder
pub fn new() -> Self
The fee authority of the token
Sourcepub fn destination(&mut self, destination: Pubkey) -> &mut Self
pub fn destination(&mut self, destination: Pubkey) -> &mut Self
The destination of the token
Sourcepub fn bonding_curve(&mut self, bonding_curve: Pubkey) -> &mut Self
pub fn bonding_curve(&mut self, bonding_curve: Pubkey) -> &mut Self
The bonding curve account
Sourcepub fn quote_mint(&mut self, quote_mint: Pubkey) -> &mut Self
pub fn quote_mint(&mut self, quote_mint: Pubkey) -> &mut Self
The quote mint account
Sourcepub fn quote_vault(&mut self, quote_vault: Pubkey) -> &mut Self
pub fn quote_vault(&mut self, quote_vault: Pubkey) -> &mut Self
The quote vault account
Sourcepub fn creator_quote_ata(&mut self, creator_quote_ata: Pubkey) -> &mut Self
pub fn creator_quote_ata(&mut self, creator_quote_ata: Pubkey) -> &mut Self
The creator quote ata account
Sourcepub fn signer_quote_ata(&mut self, signer_quote_ata: Pubkey) -> &mut Self
pub fn signer_quote_ata(&mut self, signer_quote_ata: Pubkey) -> &mut Self
The signer quote ata account
The fee authority quote ata account
Sourcepub fn destination_quote_ata(
&mut self,
destination_quote_ata: Pubkey,
) -> &mut Self
pub fn destination_quote_ata( &mut self, destination_quote_ata: Pubkey, ) -> &mut Self
The destination quote ata account
The fee authority base ata account
Sourcepub fn destination_base_ata(
&mut self,
destination_base_ata: Pubkey,
) -> &mut Self
pub fn destination_base_ata( &mut self, destination_base_ata: Pubkey, ) -> &mut Self
The destination base ata account
Sourcepub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
pub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
[optional account, default to '11111111111111111111111111111111']
The system program account
Sourcepub fn ata_program(&mut self, ata_program: Pubkey) -> &mut Self
pub fn ata_program(&mut self, ata_program: Pubkey) -> &mut Self
[optional account, default to 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL']
The ata program account
Sourcepub fn quote_token_program(&mut self, quote_token_program: Pubkey) -> &mut Self
pub fn quote_token_program(&mut self, quote_token_program: Pubkey) -> &mut Self
The quote token program account
Sourcepub fn base_token_program(&mut self, base_token_program: Pubkey) -> &mut Self
pub fn base_token_program(&mut self, base_token_program: Pubkey) -> &mut Self
The base token program account
Sourcepub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
pub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
Add an additional account to the instruction.
Sourcepub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
pub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
Add additional accounts to the instruction.
pub fn instruction(&self) -> Instruction
Trait Implementations§
Source§impl Clone for GraduateManualBuilder
impl Clone for GraduateManualBuilder
Source§fn clone(&self) -> GraduateManualBuilder
fn clone(&self) -> GraduateManualBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GraduateManualBuilder
impl Debug for GraduateManualBuilder
Source§impl Default for GraduateManualBuilder
impl Default for GraduateManualBuilder
Source§fn default() -> GraduateManualBuilder
fn default() -> GraduateManualBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GraduateManualBuilder
impl RefUnwindSafe for GraduateManualBuilder
impl Send for GraduateManualBuilder
impl Sync for GraduateManualBuilder
impl Unpin for GraduateManualBuilder
impl UnwindSafe for GraduateManualBuilder
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