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

pub enum VoteInstruction {
    InitializeAccount(VoteInit),
    Authorize(Pubkey, VoteAuthorize),
    Vote(Vote),
    Withdraw(u64),
    UpdateValidatorIdentity,
    UpdateCommission(u8),
    VoteSwitch(Vote, Hash),
    AuthorizeChecked(VoteAuthorize),
}

Variants

InitializeAccount

Initialize a vote account

Account references

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

Tuple Fields of InitializeAccount

0: VoteInit
Authorize

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

Tuple Fields of Authorize

0: Pubkey1: VoteAuthorize
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

Tuple Fields of Vote

0: Vote
Withdraw

Withdraw some amount of funds

Account references

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

Tuple Fields of Withdraw

0: u64
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

Update the commission for the vote account

Account references

  1. [WRITE] Vote account to be updated
  2. [SIGNER] Withdraw authority

Tuple Fields of UpdateCommission

0: u8
VoteSwitch

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

Tuple Fields of VoteSwitch

0: Vote1: Hash
AuthorizeChecked

Authorize a key to send votes or issue a withdrawal

This instruction behaves like Authorize with the additional requirement that the new vote or withdraw authority must also be a signer.

Account references

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

Tuple Fields of AuthorizeChecked

0: VoteAuthorize

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.