pub struct WithdrawBuilder { /* private fields */ }Expand description
Instruction builder for Withdraw.
§Accounts:
[writable, signer]unstaker_account[writable]state_account[writable]pending_withdraw_account[writable]unstaker_orca_ata[writable]vault_account[]orca_mint_account[]system_program_account[]token_program_account
Implementations§
Source§impl WithdrawBuilder
impl WithdrawBuilder
pub fn new() -> Self
pub fn unstaker_account(&mut self, unstaker_account: Pubkey) -> &mut Self
pub fn state_account(&mut self, state_account: Pubkey) -> &mut Self
pub fn pending_withdraw_account( &mut self, pending_withdraw_account: Pubkey, ) -> &mut Self
pub fn unstaker_orca_ata(&mut self, unstaker_orca_ata: Pubkey) -> &mut Self
pub fn vault_account(&mut self, vault_account: Pubkey) -> &mut Self
pub fn orca_mint_account(&mut self, orca_mint_account: Pubkey) -> &mut Self
pub fn system_program_account( &mut self, system_program_account: Pubkey, ) -> &mut Self
pub fn token_program_account( &mut self, token_program_account: Pubkey, ) -> &mut Self
pub fn withdraw_index(&mut self, withdraw_index: u8) -> &mut Self
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 WithdrawBuilder
impl Clone for WithdrawBuilder
Source§fn clone(&self) -> WithdrawBuilder
fn clone(&self) -> WithdrawBuilder
Returns a duplicate 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 WithdrawBuilder
impl Debug for WithdrawBuilder
Source§impl Default for WithdrawBuilder
impl Default for WithdrawBuilder
Source§fn default() -> WithdrawBuilder
fn default() -> WithdrawBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WithdrawBuilder
impl RefUnwindSafe for WithdrawBuilder
impl Send for WithdrawBuilder
impl Sync for WithdrawBuilder
impl Unpin for WithdrawBuilder
impl UnwindSafe for WithdrawBuilder
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