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
Initialize a vote account
Account references
- [WRITE] Uninitialized vote account
- [] Rent sysvar
- [] Clock sysvar
- [SIGNER] New validator identity (node_pubkey)
Tuple Fields of InitializeAccount
0: VoteInitAuthorize a key to send votes or issue a withdrawal
Account references
- [WRITE] Vote account to be updated with the Pubkey for authorization
- [] Clock sysvar
- [SIGNER] Vote or withdraw authority
Tuple Fields of Authorize
0: Pubkey1: VoteAuthorizeA Vote instruction with recent votes
Account references
- [WRITE] Vote account to vote with
- [] Slot hashes sysvar
- [] Clock sysvar
- [SIGNER] Vote authority
Tuple Fields of Vote
0: VoteWithdraw some amount of funds
Account references
- [WRITE] Vote account to withdraw from
- [WRITE] Recipient account
- [SIGNER] Withdraw authority
Tuple Fields of Withdraw
0: u64Update the vote account’s validator identity (node_pubkey)
Account references
- [WRITE] Vote account to be updated with the given authority public key
- [SIGNER] New validator identity (node_pubkey)
- [SIGNER] Withdraw authority
Update the commission for the vote account
Account references
- [WRITE] Vote account to be updated
- [SIGNER] Withdraw authority
Tuple Fields of UpdateCommission
0: u8A Vote instruction with recent votes
Account references
- [WRITE] Vote account to vote with
- [] Slot hashes sysvar
- [] Clock sysvar
- [SIGNER] Vote authority
Tuple Fields of VoteSwitch
0: Vote1: HashAuthorize 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
- [WRITE] Vote account to be updated with the Pubkey for authorization
- [] Clock sysvar
- [SIGNER] Vote or withdraw authority
- [SIGNER] New vote or withdraw authority
Tuple Fields of AuthorizeChecked
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
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 !=.
Auto Trait Implementations
impl RefUnwindSafe for VoteInstruction
impl Send for VoteInstruction
impl Sync for VoteInstruction
impl Unpin for VoteInstruction
impl UnwindSafe for VoteInstruction
Blanket Implementations
pub default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
pub default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self