Versions in this module Expand all Collapse all v1 v1.8.2 Feb 15, 2023 v1.0.0 Feb 15, 2023 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