Versions in this module Expand all Collapse all v1 v1.99.0 Feb 5, 2024 Changes in this version + const ProgramName + var InstructionImplDef = bin.NewVariantDefinition(bin.Uint32TypeIDEncoding, []bin.VariantType{ ... }) + var ProgramID solana.PublicKey = solana.VoteProgramID + func SetProgramID(pubkey solana.PublicKey) + type Authorize struct + type InitializeAccount struct + type Instruction struct + func DecodeInstruction(accounts []*solana.AccountMeta, data []byte) (*Instruction, error) + func (inst *Instruction) Accounts() (out []*solana.AccountMeta) + func (inst *Instruction) Data() ([]byte, error) + func (inst *Instruction) EncodeToTree(parent treeout.Branches) + func (inst *Instruction) ProgramID() solana.PublicKey + func (inst *Instruction) TextEncode(encoder *text.Encoder, option *text.Option) error + func (inst *Instruction) UnmarshalWithDecoder(decoder *bin.Decoder) error + func (inst Instruction) MarshalWithEncoder(encoder *bin.Encoder) error + type Vote struct + Hash solana.Hash + Slots []uint64 + Timestamp *int64 + func (inst *Vote) EncodeToTree(parent treeout.Branches) + func (inst *Vote) Validate() error + func (v *Vote) UnmarshalWithDecoder(dec *bin.Decoder) error + type Withdraw struct + Lamports *uint64 + func NewWithdrawInstruction(lamports uint64, voteAccount solana.PublicKey, ...) *Withdraw + func NewWithdrawInstructionBuilder() *Withdraw + func (inst *Withdraw) EncodeToTree(parent treeout.Branches) + func (inst *Withdraw) MarshalWithEncoder(encoder *bin.Encoder) error + func (inst *Withdraw) SetLamports(lamports uint64) *Withdraw + func (inst *Withdraw) SetRecipientAccount(recipientAccount solana.PublicKey) *Withdraw + func (inst *Withdraw) SetVoteAccount(voteAccount solana.PublicKey) *Withdraw + func (inst *Withdraw) SetWithdrawAuthorityAccount(withdrawAccount solana.PublicKey) *Withdraw + func (inst *Withdraw) Validate() error + func (v *Withdraw) UnmarshalWithDecoder(dec *bin.Decoder) error