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

pub trait StakeAccount {
    fn delegate_stake(
        &mut self,
        vote_account: &KeyedAccount,
        stake: u64,
        clock: &Clock,
        config: &Config
    ) -> Result<(), InstructionError>;
fn deactivate_stake(
        &mut self,
        vote_account: &KeyedAccount,
        clock: &Clock
    ) -> Result<(), InstructionError>;
fn redeem_vote_credits(
        &mut self,
        vote_account: &mut KeyedAccount,
        rewards_account: &mut KeyedAccount,
        rewards: &Rewards,
        stake_history: &StakeHistory
    ) -> Result<(), InstructionError>;
fn withdraw(
        &mut self,
        lamports: u64,
        to: &mut KeyedAccount,
        clock: &Clock,
        stake_history: &StakeHistory
    ) -> Result<(), InstructionError>; }

Required methods

fn delegate_stake(
    &mut self,
    vote_account: &KeyedAccount,
    stake: u64,
    clock: &Clock,
    config: &Config
) -> Result<(), InstructionError>

fn deactivate_stake(
    &mut self,
    vote_account: &KeyedAccount,
    clock: &Clock
) -> Result<(), InstructionError>

fn redeem_vote_credits(
    &mut self,
    vote_account: &mut KeyedAccount,
    rewards_account: &mut KeyedAccount,
    rewards: &Rewards,
    stake_history: &StakeHistory
) -> Result<(), InstructionError>

fn withdraw(
    &mut self,
    lamports: u64,
    to: &mut KeyedAccount,
    clock: &Clock,
    stake_history: &StakeHistory
) -> Result<(), InstructionError>

Loading content...

Implementations on Foreign Types

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

Loading content...

Implementors

Loading content...