[][src]Enum solana_vote_program::vote_instruction::VoteInstruction

pub enum VoteInstruction {
    InitializeAccount(VoteInit),
    Authorize(PubkeyVoteAuthorize),
    Vote(Vote),
    Withdraw(u64),
    UpdateNode,
}

Variants

InitializeAccount(VoteInit)

Initialize the VoteState for this vote account requires VoteInit::node_pubkey signature

Expects 3 Accounts: 0 - Uninitialized Vote account 1 - Rent sysvar 2 - Clock sysvar

Authorize(PubkeyVoteAuthorize)

Authorize a key to send votes or issue a withdrawal requires authorized voter or authorized withdrawer signature, depending on which key's being updated

Expects 2 Accounts: 0 - Vote account to be updated with the Pubkey for authorization 1 - Clock sysvar

Vote(Vote)

A Vote instruction with recent votes requires authorized voter signature

Expects 3 Accounts: 0 - Vote account to vote with 1 - Slot hashes sysvar 2 - Clock sysvar

Withdraw(u64)

Withdraw some amount of funds requires authorized withdrawer signature

Expects 2 Accounts: 0 - Vote account to withdraw from 1 - Destination account for the withdrawal

UpdateNode

Update the vote account's validator identity (node id) requires authorized withdrawer and new validator identity signature

Expects 2 Accounts: 0 - Vote account to be updated with the Pubkey for authorization 1 - New validator identity (node id)

Trait Implementations

impl Clone for VoteInstruction[src]

impl Debug for VoteInstruction[src]

impl<'de> Deserialize<'de> for VoteInstruction[src]

impl Eq for VoteInstruction[src]

impl PartialEq<VoteInstruction> for VoteInstruction[src]

impl Serialize for VoteInstruction[src]

impl StructuralEq for VoteInstruction[src]

impl StructuralPartialEq for VoteInstruction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.