[][src]Trait solana_stake_api::stake_state::StakeAccount

pub trait StakeAccount {
    fn initialize_mining_pool(&mut self) -> Result<(), InstructionError>;
fn initialize_delegate(&mut self) -> Result<(), InstructionError>;
fn delegate_stake(
        &mut self,
        vote_account: &KeyedAccount
    ) -> Result<(), InstructionError>;
fn redeem_vote_credits(
        &mut self,
        stake_account: &mut KeyedAccount,
        vote_account: &mut KeyedAccount
    ) -> Result<(), InstructionError>; }

Required methods

fn initialize_mining_pool(&mut self) -> Result<(), InstructionError>

fn initialize_delegate(&mut self) -> Result<(), InstructionError>

fn delegate_stake(
    &mut self,
    vote_account: &KeyedAccount
) -> Result<(), InstructionError>

fn redeem_vote_credits(
    &mut self,
    stake_account: &mut KeyedAccount,
    vote_account: &mut KeyedAccount
) -> Result<(), InstructionError>

Loading content...

Implementations on Foreign Types

impl<'a> StakeAccount for KeyedAccount<'a>[src]

Loading content...

Implementors

Loading content...