pub enum VoteInstruction {
InitializeAccount(VoteInit),
Authorize(Pubkey, VoteAuthorize),
Vote(Vote),
Withdraw(u64),
UpdateValidatorIdentity,
UpdateCommission(u8),
VoteSwitch(Vote, Hash),
AuthorizeChecked(VoteAuthorize),
}
Variants
InitializeAccount(VoteInit)
Tuple Fields
0: VoteInit
Initialize a vote account
Account references
- [WRITE] Uninitialized vote account
- [] Rent sysvar
- [] Clock sysvar
- [SIGNER] New validator identity (node_pubkey)
Authorize(Pubkey, VoteAuthorize)
Authorize 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
Vote(Vote)
Tuple Fields
0: Vote
A Vote instruction with recent votes
Account references
- [WRITE] Vote account to vote with
- [] Slot hashes sysvar
- [] Clock sysvar
- [SIGNER] Vote authority
Withdraw(u64)
Tuple Fields
0: u64
Withdraw some amount of funds
Account references
- [WRITE] Vote account to withdraw from
- [WRITE] Recipient account
- [SIGNER] Withdraw authority
UpdateValidatorIdentity
Update 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
UpdateCommission(u8)
Tuple Fields
0: u8
Update the commission for the vote account
Account references
- [WRITE] Vote account to be updated
- [SIGNER] Withdraw authority
VoteSwitch(Vote, Hash)
A Vote instruction with recent votes
Account references
- [WRITE] Vote account to vote with
- [] Slot hashes sysvar
- [] Clock sysvar
- [SIGNER] Vote authority
AuthorizeChecked(VoteAuthorize)
Tuple Fields
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
- [WRITE] Vote account to be updated with the Pubkey for authorization
- [] Clock sysvar
- [SIGNER] Vote or withdraw authority
- [SIGNER] New vote or withdraw authority
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.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more