pub struct TokenCollectFeesBuilder { /* private fields */ }Expand description
Instruction builder for TokenCollectFees.
§Accounts:
[writable, signer]signer[]fee_authority[writable]fee_authority_ata[]bonding_curve[]base_mint[]quote_mint[writable]quote_vault[]config[optional]system_program (default to11111111111111111111111111111111)[optional]ata_program (default toATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL)[]quote_token_program
Implementations§
Source§impl TokenCollectFeesBuilder
impl TokenCollectFeesBuilder
pub fn new() -> Self
The fee authority of the program
The fee authority associated token account
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 token 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 token vault
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']
System program
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 associated token account program
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
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 TokenCollectFeesBuilder
impl Clone for TokenCollectFeesBuilder
Source§fn clone(&self) -> TokenCollectFeesBuilder
fn clone(&self) -> TokenCollectFeesBuilder
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 TokenCollectFeesBuilder
impl Debug for TokenCollectFeesBuilder
Source§impl Default for TokenCollectFeesBuilder
impl Default for TokenCollectFeesBuilder
Source§fn default() -> TokenCollectFeesBuilder
fn default() -> TokenCollectFeesBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TokenCollectFeesBuilder
impl RefUnwindSafe for TokenCollectFeesBuilder
impl Send for TokenCollectFeesBuilder
impl Sync for TokenCollectFeesBuilder
impl Unpin for TokenCollectFeesBuilder
impl UnwindSafe for TokenCollectFeesBuilder
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