VoteProgram class

class for transactions to interact with the Vote program

Inheritance

Constructors

VoteProgram({required List<AccountMeta> keys, required SolAddress programId, required ProgramLayout layout})
VoteProgram.authorize({required VoteProgramAuthorizeLayout layout, required SolAddress votePubkey, required SolAddress authorizedPubkey})
Generate a transaction that authorizes a new Voter or Withdrawer on the Vote account.
factory
VoteProgram.authorizeWithSeed({required VoteProgramAuthorizeWithSeedLayout layout, required SolAddress votePubkey, required SolAddress currentAuthorityDerivedKeyBasePubkey})
Generate a transaction that authorizes a new Voter or Withdrawer on the Vote account where the current Voter or Withdrawer authority is a derived key.
factory
VoteProgram.fromBytes({required List<AccountMeta> keys, required List<int> instructionBytes, SolAddress programId = VoteProgramConst.programId})
factory
VoteProgram.initializeAccount({required VoteProgramInitializeAccountLayout layout, required SolAddress votePubKey, required SolAddress nodePubKey})
Generate an Initialize instruction.
factory
VoteProgram.withdraw({required VoteProgramWithdrawLayout layout, required SolAddress votePubkey, required SolAddress authorizedWithdrawerPubkey, required SolAddress toPubkey})
Generate a transaction to withdraw from a Vote account.
factory

Properties

data List<int>
Program input.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
keys List<AccountMeta>
Public keys to include in this transaction Boolean represents whether this pubkey needs to sign the transaction
finalinherited
layout ProgramLayout
Program layout.
finalinherited
programId SolAddress
Program Id to execute.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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