pub struct GraduateWhirlpoolBuilder { /* private fields */ }Expand description
Instruction builder for GraduateWhirlpool.
§Accounts:
[writable, signer]signer[writable]creator[]fee_authority[]lp_authority[writable]bonding_curve[]config[]quote_mint[writable]quote_vault[writable]creator_quote_ata[writable]signer_quote_ata[writable]fee_authority_quote_ata[writable, signer]whirlpool_quote_vault[writable]base_mint[writable]base_vault[writable]fee_authority_base_ata[writable, signer]whirlpool_base_vault[writable]whirlpool_config[]fee_tier[writable]whirlpool[writable]position[writable, signer]position_mint[writable]position_token_account[writable]destination_token_account[writable]lower_tick_array[writable]upper_tick_array[]quote_token_badge[]base_token_badge[signer]whirlpool_update_authority[writable]lock_config[optional]system_program (default to11111111111111111111111111111111)[optional]ata_program (default toATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL)[]quote_token_program[]base_token_program[]token22_program[]memo_program[]whirlpool_program[optional]rent (default toSysvarRent111111111111111111111111111111111)
Implementations§
Source§impl GraduateWhirlpoolBuilder
impl GraduateWhirlpoolBuilder
pub fn new() -> Self
The fee authority of the token
The lp authority 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 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 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 whirlpool_quote_vault(
&mut self,
whirlpool_quote_vault: Pubkey,
) -> &mut Self
pub fn whirlpool_quote_vault( &mut self, whirlpool_quote_vault: Pubkey, ) -> &mut Self
The whirlpool quote vault account
Sourcepub fn base_vault(&mut self, base_vault: Pubkey) -> &mut Self
pub fn base_vault(&mut self, base_vault: Pubkey) -> &mut Self
The config base ata account
The fee authority base ata account
Sourcepub fn whirlpool_base_vault(
&mut self,
whirlpool_base_vault: Pubkey,
) -> &mut Self
pub fn whirlpool_base_vault( &mut self, whirlpool_base_vault: Pubkey, ) -> &mut Self
The whirlpool base vault account
Sourcepub fn whirlpool_config(&mut self, whirlpool_config: Pubkey) -> &mut Self
pub fn whirlpool_config(&mut self, whirlpool_config: Pubkey) -> &mut Self
The whirlpool config account
Sourcepub fn position_mint(&mut self, position_mint: Pubkey) -> &mut Self
pub fn position_mint(&mut self, position_mint: Pubkey) -> &mut Self
The position mint account
Sourcepub fn position_token_account(
&mut self,
position_token_account: Pubkey,
) -> &mut Self
pub fn position_token_account( &mut self, position_token_account: Pubkey, ) -> &mut Self
The position token account
Sourcepub fn destination_token_account(
&mut self,
destination_token_account: Pubkey,
) -> &mut Self
pub fn destination_token_account( &mut self, destination_token_account: Pubkey, ) -> &mut Self
The destination token account
Sourcepub fn lower_tick_array(&mut self, lower_tick_array: Pubkey) -> &mut Self
pub fn lower_tick_array(&mut self, lower_tick_array: Pubkey) -> &mut Self
The lower tick array account
Sourcepub fn upper_tick_array(&mut self, upper_tick_array: Pubkey) -> &mut Self
pub fn upper_tick_array(&mut self, upper_tick_array: Pubkey) -> &mut Self
The upper tick array account
Sourcepub fn quote_token_badge(&mut self, quote_token_badge: Pubkey) -> &mut Self
pub fn quote_token_badge(&mut self, quote_token_badge: Pubkey) -> &mut Self
The quote token badge account
Sourcepub fn base_token_badge(&mut self, base_token_badge: Pubkey) -> &mut Self
pub fn base_token_badge(&mut self, base_token_badge: Pubkey) -> &mut Self
The base token badge account
The whirlpool update authority account
Sourcepub fn lock_config(&mut self, lock_config: Pubkey) -> &mut Self
pub fn lock_config(&mut self, lock_config: Pubkey) -> &mut Self
The lock config 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
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
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 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
Sourcepub fn token22_program(&mut self, token22_program: Pubkey) -> &mut Self
pub fn token22_program(&mut self, token22_program: Pubkey) -> &mut Self
The token 22 program
Sourcepub fn memo_program(&mut self, memo_program: Pubkey) -> &mut Self
pub fn memo_program(&mut self, memo_program: Pubkey) -> &mut Self
The memo program
Sourcepub fn whirlpool_program(&mut self, whirlpool_program: Pubkey) -> &mut Self
pub fn whirlpool_program(&mut self, whirlpool_program: Pubkey) -> &mut Self
The whirlpool program
Sourcepub fn rent(&mut self, rent: Pubkey) -> &mut Self
pub fn rent(&mut self, rent: Pubkey) -> &mut Self
[optional account, default to 'SysvarRent111111111111111111111111111111111']
The rent sysvar
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 GraduateWhirlpoolBuilder
impl Clone for GraduateWhirlpoolBuilder
Source§fn clone(&self) -> GraduateWhirlpoolBuilder
fn clone(&self) -> GraduateWhirlpoolBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more