[−][src]Trait solana_stake_program::stake_state::StakeAccount
Required methods
fn initialize(
&self,
authorized: &Authorized,
lockup: &Lockup,
rent: &Rent
) -> Result<(), InstructionError>
&self,
authorized: &Authorized,
lockup: &Lockup,
rent: &Rent
) -> Result<(), InstructionError>
fn authorize(
&self,
authority: &Pubkey,
stake_authorize: StakeAuthorize,
signers: &HashSet<Pubkey>
) -> Result<(), InstructionError>
&self,
authority: &Pubkey,
stake_authorize: StakeAuthorize,
signers: &HashSet<Pubkey>
) -> Result<(), InstructionError>
fn delegate(
&self,
vote_account: &KeyedAccount,
clock: &Clock,
stake_history: &StakeHistory,
config: &Config,
signers: &HashSet<Pubkey>
) -> Result<(), InstructionError>
&self,
vote_account: &KeyedAccount,
clock: &Clock,
stake_history: &StakeHistory,
config: &Config,
signers: &HashSet<Pubkey>
) -> Result<(), InstructionError>
fn deactivate(
&self,
clock: &Clock,
signers: &HashSet<Pubkey>
) -> Result<(), InstructionError>
&self,
clock: &Clock,
signers: &HashSet<Pubkey>
) -> Result<(), InstructionError>
fn set_lockup(
&self,
lockup: &LockupArgs,
signers: &HashSet<Pubkey>
) -> Result<(), InstructionError>
&self,
lockup: &LockupArgs,
signers: &HashSet<Pubkey>
) -> Result<(), InstructionError>
fn split(
&self,
lamports: u64,
split_stake: &KeyedAccount,
signers: &HashSet<Pubkey>
) -> Result<(), InstructionError>
&self,
lamports: u64,
split_stake: &KeyedAccount,
signers: &HashSet<Pubkey>
) -> Result<(), InstructionError>
fn withdraw(
&self,
lamports: u64,
to: &KeyedAccount,
clock: &Clock,
stake_history: &StakeHistory,
signers: &HashSet<Pubkey>
) -> Result<(), InstructionError>
&self,
lamports: u64,
to: &KeyedAccount,
clock: &Clock,
stake_history: &StakeHistory,
signers: &HashSet<Pubkey>
) -> Result<(), InstructionError>
Implementations on Foreign Types
impl<'a> StakeAccount for KeyedAccount<'a>
[src]
fn initialize(
&self,
authorized: &Authorized,
lockup: &Lockup,
rent: &Rent
) -> Result<(), InstructionError>
[src]
&self,
authorized: &Authorized,
lockup: &Lockup,
rent: &Rent
) -> Result<(), InstructionError>
fn authorize(
&self,
authority: &Pubkey,
stake_authorize: StakeAuthorize,
signers: &HashSet<Pubkey>
) -> Result<(), InstructionError>
[src]
&self,
authority: &Pubkey,
stake_authorize: StakeAuthorize,
signers: &HashSet<Pubkey>
) -> Result<(), InstructionError>
Authorize the given pubkey to manage stake (deactivate, withdraw). This may be called multiple times, but will implicitly withdraw authorization from the previously authorized staker. The default staker is the owner of the stake account's pubkey.
fn delegate(
&self,
vote_account: &KeyedAccount,
clock: &Clock,
stake_history: &StakeHistory,
config: &Config,
signers: &HashSet<Pubkey>
) -> Result<(), InstructionError>
[src]
&self,
vote_account: &KeyedAccount,
clock: &Clock,
stake_history: &StakeHistory,
config: &Config,
signers: &HashSet<Pubkey>
) -> Result<(), InstructionError>
fn deactivate(
&self,
clock: &Clock,
signers: &HashSet<Pubkey>
) -> Result<(), InstructionError>
[src]
&self,
clock: &Clock,
signers: &HashSet<Pubkey>
) -> Result<(), InstructionError>
fn set_lockup(
&self,
lockup: &LockupArgs,
signers: &HashSet<Pubkey>
) -> Result<(), InstructionError>
[src]
&self,
lockup: &LockupArgs,
signers: &HashSet<Pubkey>
) -> Result<(), InstructionError>
fn split(
&self,
lamports: u64,
split: &KeyedAccount,
signers: &HashSet<Pubkey>
) -> Result<(), InstructionError>
[src]
&self,
lamports: u64,
split: &KeyedAccount,
signers: &HashSet<Pubkey>
) -> Result<(), InstructionError>
fn withdraw(
&self,
lamports: u64,
to: &KeyedAccount,
clock: &Clock,
stake_history: &StakeHistory,
signers: &HashSet<Pubkey>
) -> Result<(), InstructionError>
[src]
&self,
lamports: u64,
to: &KeyedAccount,
clock: &Clock,
stake_history: &StakeHistory,
signers: &HashSet<Pubkey>
) -> Result<(), InstructionError>