VoteAccount class

Inheritance

Constructors

VoteAccount({required List<AuthorizedVoter> authorizedVoters, required SolAddress authorizedWithdrawer, required int commission, required List<EpochCredits> epochCredits, required BlockTimestamp lastTimestamp, required SolAddress nodePubkey, required PriorVoters priorVoter, required BigInt? rootSlot, required List<Lockout> votes, required int version})
const
VoteAccount.fromBuffer(List<int> data)
factory

Properties

authorizedVoters List<AuthorizedVoter>
final
authorizedWithdrawer SolAddress
final
commission int
final
epochCredits List<EpochCredits>
final
hashCode int
The hash code for this object.
no setterinherited
lastTimestamp BlockTimestamp
final
layout → StructLayout
The layout representing the structure of the object for serialization.
no setteroverride
nodePubkey SolAddress
final
priorVoter PriorVoters
final
rootSlot BigInt?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version int
final
votes List<Lockout>
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() Map<String, dynamic>
Serializes the object to a map.
override
toBytes() List<int>
Converts the object to bytes using Borsh serialization.
inherited
toHex() String
Converts the object to a hexadecimal string.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited