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

pub enum VoteInstruction {
    InitializeAccount(VoteInit),
    Authorize(PubkeyVoteAuthorize),
    Vote(Vote),
    Withdraw(u64),
    UpdateValidatorIdentity,
    UpdateCommission(u8),
    VoteSwitch(VoteHash),
}

Variants

InitializeAccount(VoteInit)

Initialize a vote account

Account references

  1. [WRITE] Uninitialized vote account
  2. [] Rent sysvar
  3. [] Clock sysvar
  4. [SIGNER] New validator identity (node_pubkey)
Authorize(PubkeyVoteAuthorize)

Authorize a key to send votes or issue a withdrawal

Account references

  1. [WRITE] Vote account to be updated with the Pubkey for authorization
  2. [] Clock sysvar
  3. [SIGNER] Vote or withdraw authority
Vote(Vote)

A Vote instruction with recent votes

Account references

  1. [WRITE] Vote account to vote with
  2. [] Slot hashes sysvar
  3. [] Clock sysvar
  4. [SIGNER] Vote authority
Withdraw(u64)

Withdraw some amount of funds

Account references

  1. [WRITE] Vote account to withdraw from
  2. [WRITE] Recipient account
  3. [SIGNER] Withdraw authority
UpdateValidatorIdentity

Update the vote account's validator identity (node_pubkey)

Account references

  1. [WRITE] Vote account to be updated with the given authority public key
  2. [SIGNER] New validator identity (node_pubkey)
  3. [SIGNER] Withdraw authority
UpdateCommission(u8)

Update the commission for the vote account

Account references

  1. [WRITE] Vote account to be updated
  2. [SIGNER] Withdraw authority
VoteSwitch(VoteHash)

A Vote instruction with recent votes

Account references

  1. [WRITE] Vote account to vote with
  2. [] Slot hashes sysvar
  3. [] Clock sysvar
  4. [SIGNER] Vote authority

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> AbiEnumVisitor for T where
    T: AbiExample + Serialize + ?Sized
[src]

impl<T> AbiEnumVisitor for T where
    T: Serialize + ?Sized
[src]

impl<T> AbiExample for T[src]

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: for<'de> 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,