Versions in this module Expand all Collapse all v0 v0.0.12 May 13, 2024 v0.0.11 Nov 20, 2023 Changes in this version + const Instruction_RequestHeapFrame + const Instruction_RequestUnitsDeprecated + const Instruction_SetComputeUnitLimit + const Instruction_SetComputeUnitPrice + const MAX_COMPUTE_UNIT_LIMIT + const MAX_HEAP_FRAME_BYTES + const ProgramName + var InstructionImplDef = ag_binary.NewVariantDefinition(ag_binary.Uint8TypeIDEncoding, []ag_binary.VariantType{ ... }) + var ProgramID ag_solanago.PublicKey = ag_solanago.ComputeBudget + func InstructionIDToName(id uint8) string + func SetProgramID(pubkey ag_solanago.PublicKey) + type Instruction struct + func DecodeInstruction(accounts []*ag_solanago.AccountMeta, data []byte) (*Instruction, error) + func (inst *Instruction) Accounts() (out []*ag_solanago.AccountMeta) + func (inst *Instruction) Data() ([]byte, error) + func (inst *Instruction) EncodeToTree(parent ag_treeout.Branches) + func (inst *Instruction) ProgramID() ag_solanago.PublicKey + func (inst *Instruction) TextEncode(encoder *ag_text.Encoder, option *ag_text.Option) error + func (inst *Instruction) UnmarshalWithDecoder(decoder *ag_binary.Decoder) error + func (inst Instruction) MarshalWithEncoder(encoder *ag_binary.Encoder) error + type RequestHeapFrame struct + HeapSize uint32 + func NewRequestHeapFrameInstruction(heapSize uint32) *RequestHeapFrame + func NewRequestHeapFrameInstructionBuilder() *RequestHeapFrame + func (inst *RequestHeapFrame) EncodeToTree(parent ag_treeout.Branches) + func (inst *RequestHeapFrame) SetHeapSize(heapSize uint32) *RequestHeapFrame + func (inst *RequestHeapFrame) Validate() error + func (inst RequestHeapFrame) Build() *Instruction + func (inst RequestHeapFrame) ValidateAndBuild() (*Instruction, error) + func (obj *RequestHeapFrame) SetAccounts(accounts []*ag_solanago.AccountMeta) error + func (obj *RequestHeapFrame) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj RequestHeapFrame) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + func (slice RequestHeapFrame) GetAccounts() (accounts []*ag_solanago.AccountMeta) + type RequestUnitsDeprecated struct + AdditionalFee uint32 + Units uint32 + func NewRequestUnitsDeprecatedInstruction(units uint32, additionalFee uint32) *RequestUnitsDeprecated + func NewRequestUnitsDeprecatedInstructionBuilder() *RequestUnitsDeprecated + func (inst *RequestUnitsDeprecated) EncodeToTree(parent ag_treeout.Branches) + func (inst *RequestUnitsDeprecated) SetAdditionalFee(additionalFee uint32) *RequestUnitsDeprecated + func (inst *RequestUnitsDeprecated) SetUnits(units uint32) *RequestUnitsDeprecated + func (inst *RequestUnitsDeprecated) Validate() error + func (inst RequestUnitsDeprecated) Build() *Instruction + func (inst RequestUnitsDeprecated) ValidateAndBuild() (*Instruction, error) + func (obj *RequestUnitsDeprecated) SetAccounts(accounts []*ag_solanago.AccountMeta) error + func (obj *RequestUnitsDeprecated) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj RequestUnitsDeprecated) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + func (slice RequestUnitsDeprecated) GetAccounts() (accounts []*ag_solanago.AccountMeta) + type SetComputeUnitLimit struct + Units uint32 + func NewSetComputeUnitLimitInstruction(units uint32) *SetComputeUnitLimit + func NewSetComputeUnitLimitInstructionBuilder() *SetComputeUnitLimit + func (inst *SetComputeUnitLimit) EncodeToTree(parent ag_treeout.Branches) + func (inst *SetComputeUnitLimit) SetUnits(units uint32) *SetComputeUnitLimit + func (inst *SetComputeUnitLimit) Validate() error + func (inst SetComputeUnitLimit) Build() *Instruction + func (inst SetComputeUnitLimit) ValidateAndBuild() (*Instruction, error) + func (obj *SetComputeUnitLimit) SetAccounts(accounts []*ag_solanago.AccountMeta) error + func (obj *SetComputeUnitLimit) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj SetComputeUnitLimit) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + func (slice SetComputeUnitLimit) GetAccounts() (accounts []*ag_solanago.AccountMeta) + type SetComputeUnitPrice struct + MicroLamports uint64 + func NewSetComputeUnitPriceInstruction(microLamports uint64) *SetComputeUnitPrice + func NewSetComputeUnitPriceInstructionBuilder() *SetComputeUnitPrice + func (inst *SetComputeUnitPrice) EncodeToTree(parent ag_treeout.Branches) + func (inst *SetComputeUnitPrice) SetMicroLamports(microLamports uint64) *SetComputeUnitPrice + func (inst *SetComputeUnitPrice) Validate() error + func (inst SetComputeUnitPrice) Build() *Instruction + func (inst SetComputeUnitPrice) ValidateAndBuild() (*Instruction, error) + func (obj *SetComputeUnitPrice) SetAccounts(accounts []*ag_solanago.AccountMeta) error + func (obj *SetComputeUnitPrice) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj SetComputeUnitPrice) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + func (slice SetComputeUnitPrice) GetAccounts() (accounts []*ag_solanago.AccountMeta)