Versions in this module Expand all Collapse all v0 v0.99.0 Apr 27, 2026 Changes in this version + const ProgramName + var InstructionImplDef = ag_binary.NewVariantDefinition(ag_binary.Uint32TypeIDEncoding, []ag_binary.VariantType{ ... }) + var Instruction_Close = ag_binary.TypeID([8]byte{ ... }) + var Instruction_DeployWithMaxDataLen = ag_binary.TypeID([8]byte{ ... }) + var Instruction_ExtendProgram = ag_binary.TypeID([8]byte{ ... }) + var Instruction_InitializeBuffer = ag_binary.TypeID([8]byte{ ... }) + var Instruction_SetAuthority = ag_binary.TypeID([8]byte{ ... }) + var Instruction_SetAuthorityChecked = ag_binary.TypeID([8]byte{ ... }) + var Instruction_Upgrade = ag_binary.TypeID([8]byte{ ... }) + var Instruction_Write = ag_binary.TypeID([8]byte{ ... }) + var ProgramID ag_solanago.PublicKey = ag_solanago.MustPublicKeyFromBase58("CoreBPFLoaderUpgradeab1e1111111111111111111") + func InstructionIDToName(id ag_binary.TypeID) string + func SetProgramID(pubkey ag_solanago.PublicKey) + type Close struct + func NewCloseInstruction(bufferOrProgramDataAccount ag_solanago.PublicKey, ...) *Close + func NewCloseInstructionBuilder() *Close + func (inst *Close) EncodeToTree(parent ag_treeout.Branches) + func (inst *Close) GetAuthorityAccount() *ag_solanago.AccountMeta + func (inst *Close) GetBufferOrProgramDataAccountAccount() *ag_solanago.AccountMeta + func (inst *Close) GetDestinationAccountAccount() *ag_solanago.AccountMeta + func (inst *Close) GetProgramAccountAccount() *ag_solanago.AccountMeta + func (inst *Close) SetAuthorityAccount(authority ag_solanago.PublicKey) *Close + func (inst *Close) SetBufferOrProgramDataAccountAccount(bufferOrProgramDataAccount ag_solanago.PublicKey) *Close + func (inst *Close) SetDestinationAccountAccount(destinationAccount ag_solanago.PublicKey) *Close + func (inst *Close) SetProgramAccountAccount(programAccount ag_solanago.PublicKey) *Close + func (inst *Close) Validate() error + func (inst Close) Build() *Instruction + func (inst Close) ValidateAndBuild() (*Instruction, error) + func (obj *Close) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj Close) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + type DeployWithMaxDataLen struct + MaxDataLen *uint64 + func NewDeployWithMaxDataLenInstruction(maxDataLen uint64, payerAccount ag_solanago.PublicKey, ...) *DeployWithMaxDataLen + func NewDeployWithMaxDataLenInstructionBuilder() *DeployWithMaxDataLen + func (inst *DeployWithMaxDataLen) EncodeToTree(parent ag_treeout.Branches) + func (inst *DeployWithMaxDataLen) GetAuthorityAccount() *ag_solanago.AccountMeta + func (inst *DeployWithMaxDataLen) GetBufferAccountAccount() *ag_solanago.AccountMeta + func (inst *DeployWithMaxDataLen) GetClockSysvarAccount() *ag_solanago.AccountMeta + func (inst *DeployWithMaxDataLen) GetPayerAccountAccount() *ag_solanago.AccountMeta + func (inst *DeployWithMaxDataLen) GetProgramAccountAccount() *ag_solanago.AccountMeta + func (inst *DeployWithMaxDataLen) GetProgramDataAccountAccount() *ag_solanago.AccountMeta + func (inst *DeployWithMaxDataLen) GetRentSysvarAccount() *ag_solanago.AccountMeta + func (inst *DeployWithMaxDataLen) GetSystemProgramAccount() *ag_solanago.AccountMeta + func (inst *DeployWithMaxDataLen) SetAuthorityAccount(authority ag_solanago.PublicKey) *DeployWithMaxDataLen + func (inst *DeployWithMaxDataLen) SetBufferAccountAccount(bufferAccount ag_solanago.PublicKey) *DeployWithMaxDataLen + func (inst *DeployWithMaxDataLen) SetClockSysvarAccount(clockSysvar ag_solanago.PublicKey) *DeployWithMaxDataLen + func (inst *DeployWithMaxDataLen) SetMaxDataLen(maxDataLen uint64) *DeployWithMaxDataLen + func (inst *DeployWithMaxDataLen) SetPayerAccountAccount(payerAccount ag_solanago.PublicKey) *DeployWithMaxDataLen + func (inst *DeployWithMaxDataLen) SetProgramAccountAccount(programAccount ag_solanago.PublicKey) *DeployWithMaxDataLen + func (inst *DeployWithMaxDataLen) SetProgramDataAccountAccount(programDataAccount ag_solanago.PublicKey) *DeployWithMaxDataLen + func (inst *DeployWithMaxDataLen) SetRentSysvarAccount(rentSysvar ag_solanago.PublicKey) *DeployWithMaxDataLen + func (inst *DeployWithMaxDataLen) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *DeployWithMaxDataLen + func (inst *DeployWithMaxDataLen) Validate() error + func (inst DeployWithMaxDataLen) Build() *Instruction + func (inst DeployWithMaxDataLen) ValidateAndBuild() (*Instruction, error) + func (obj *DeployWithMaxDataLen) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj DeployWithMaxDataLen) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + type ExtendProgram struct + AdditionalBytes *uint32 + func NewExtendProgramInstruction(additionalBytes uint32, programDataAccount ag_solanago.PublicKey, ...) *ExtendProgram + func NewExtendProgramInstructionBuilder() *ExtendProgram + func (inst *ExtendProgram) EncodeToTree(parent ag_treeout.Branches) + func (inst *ExtendProgram) GetPayerAccount() *ag_solanago.AccountMeta + func (inst *ExtendProgram) GetProgramAccountAccount() *ag_solanago.AccountMeta + func (inst *ExtendProgram) GetProgramDataAccountAccount() *ag_solanago.AccountMeta + func (inst *ExtendProgram) GetSystemProgramAccount() *ag_solanago.AccountMeta + func (inst *ExtendProgram) SetAdditionalBytes(additionalBytes uint32) *ExtendProgram + func (inst *ExtendProgram) SetPayerAccount(payer ag_solanago.PublicKey) *ExtendProgram + func (inst *ExtendProgram) SetProgramAccountAccount(programAccount ag_solanago.PublicKey) *ExtendProgram + func (inst *ExtendProgram) SetProgramDataAccountAccount(programDataAccount ag_solanago.PublicKey) *ExtendProgram + func (inst *ExtendProgram) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *ExtendProgram + func (inst *ExtendProgram) Validate() error + func (inst ExtendProgram) Build() *Instruction + func (inst ExtendProgram) ValidateAndBuild() (*Instruction, error) + func (obj *ExtendProgram) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj ExtendProgram) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + type InitializeBuffer struct + func NewInitializeBufferInstruction(sourceAccount ag_solanago.PublicKey, bufferAuthority ag_solanago.PublicKey) *InitializeBuffer + func NewInitializeBufferInstructionBuilder() *InitializeBuffer + func (inst *InitializeBuffer) EncodeToTree(parent ag_treeout.Branches) + func (inst *InitializeBuffer) GetBufferAuthorityAccount() *ag_solanago.AccountMeta + func (inst *InitializeBuffer) GetSourceAccountAccount() *ag_solanago.AccountMeta + func (inst *InitializeBuffer) SetBufferAuthorityAccount(bufferAuthority ag_solanago.PublicKey) *InitializeBuffer + func (inst *InitializeBuffer) SetSourceAccountAccount(sourceAccount ag_solanago.PublicKey) *InitializeBuffer + func (inst *InitializeBuffer) Validate() error + func (inst InitializeBuffer) Build() *Instruction + func (inst InitializeBuffer) ValidateAndBuild() (*Instruction, error) + func (obj *InitializeBuffer) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj InitializeBuffer) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + 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) MarshalWithEncoder(encoder *ag_binary.Encoder) error + 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 + type SetAuthority struct + func NewSetAuthorityInstruction(bufferOrProgramDataAccount ag_solanago.PublicKey, ...) *SetAuthority + func NewSetAuthorityInstructionBuilder() *SetAuthority + func (inst *SetAuthority) EncodeToTree(parent ag_treeout.Branches) + func (inst *SetAuthority) GetBufferOrProgramDataAccountAccount() *ag_solanago.AccountMeta + func (inst *SetAuthority) GetCurrentAuthorityAccount() *ag_solanago.AccountMeta + func (inst *SetAuthority) GetNewAuthorityAccount() *ag_solanago.AccountMeta + func (inst *SetAuthority) SetBufferOrProgramDataAccountAccount(bufferOrProgramDataAccount ag_solanago.PublicKey) *SetAuthority + func (inst *SetAuthority) SetCurrentAuthorityAccount(currentAuthority ag_solanago.PublicKey) *SetAuthority + func (inst *SetAuthority) SetNewAuthorityAccount(newAuthority ag_solanago.PublicKey) *SetAuthority + func (inst *SetAuthority) Validate() error + func (inst SetAuthority) Build() *Instruction + func (inst SetAuthority) ValidateAndBuild() (*Instruction, error) + func (obj *SetAuthority) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj SetAuthority) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + type SetAuthorityChecked struct + func NewSetAuthorityCheckedInstruction(bufferOrProgramDataAccount ag_solanago.PublicKey, ...) *SetAuthorityChecked + func NewSetAuthorityCheckedInstructionBuilder() *SetAuthorityChecked + func (inst *SetAuthorityChecked) EncodeToTree(parent ag_treeout.Branches) + func (inst *SetAuthorityChecked) GetBufferOrProgramDataAccountAccount() *ag_solanago.AccountMeta + func (inst *SetAuthorityChecked) GetCurrentAuthorityAccount() *ag_solanago.AccountMeta + func (inst *SetAuthorityChecked) GetNewAuthorityAccount() *ag_solanago.AccountMeta + func (inst *SetAuthorityChecked) SetBufferOrProgramDataAccountAccount(bufferOrProgramDataAccount ag_solanago.PublicKey) *SetAuthorityChecked + func (inst *SetAuthorityChecked) SetCurrentAuthorityAccount(currentAuthority ag_solanago.PublicKey) *SetAuthorityChecked + func (inst *SetAuthorityChecked) SetNewAuthorityAccount(newAuthority ag_solanago.PublicKey) *SetAuthorityChecked + func (inst *SetAuthorityChecked) Validate() error + func (inst SetAuthorityChecked) Build() *Instruction + func (inst SetAuthorityChecked) ValidateAndBuild() (*Instruction, error) + func (obj *SetAuthorityChecked) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj SetAuthorityChecked) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + type Upgrade struct + func NewUpgradeInstruction(programDataAccount ag_solanago.PublicKey, programAccount ag_solanago.PublicKey, ...) *Upgrade + func NewUpgradeInstructionBuilder() *Upgrade + func (inst *Upgrade) EncodeToTree(parent ag_treeout.Branches) + func (inst *Upgrade) GetAuthorityAccount() *ag_solanago.AccountMeta + func (inst *Upgrade) GetBufferAccountAccount() *ag_solanago.AccountMeta + func (inst *Upgrade) GetClockSysvarAccount() *ag_solanago.AccountMeta + func (inst *Upgrade) GetProgramAccountAccount() *ag_solanago.AccountMeta + func (inst *Upgrade) GetProgramDataAccountAccount() *ag_solanago.AccountMeta + func (inst *Upgrade) GetRentSysvarAccount() *ag_solanago.AccountMeta + func (inst *Upgrade) GetSpillAccountAccount() *ag_solanago.AccountMeta + func (inst *Upgrade) SetAuthorityAccount(authority ag_solanago.PublicKey) *Upgrade + func (inst *Upgrade) SetBufferAccountAccount(bufferAccount ag_solanago.PublicKey) *Upgrade + func (inst *Upgrade) SetClockSysvarAccount(clockSysvar ag_solanago.PublicKey) *Upgrade + func (inst *Upgrade) SetProgramAccountAccount(programAccount ag_solanago.PublicKey) *Upgrade + func (inst *Upgrade) SetProgramDataAccountAccount(programDataAccount ag_solanago.PublicKey) *Upgrade + func (inst *Upgrade) SetRentSysvarAccount(rentSysvar ag_solanago.PublicKey) *Upgrade + func (inst *Upgrade) SetSpillAccountAccount(spillAccount ag_solanago.PublicKey) *Upgrade + func (inst *Upgrade) Validate() error + func (inst Upgrade) Build() *Instruction + func (inst Upgrade) ValidateAndBuild() (*Instruction, error) + func (obj *Upgrade) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj Upgrade) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + type Write struct + Bytes *[]byte + Offset *uint32 + func NewWriteInstruction(offset uint32, bytes []byte, bufferAccount ag_solanago.PublicKey, ...) *Write + func NewWriteInstructionBuilder() *Write + func (inst *Write) EncodeToTree(parent ag_treeout.Branches) + func (inst *Write) GetBufferAccountAccount() *ag_solanago.AccountMeta + func (inst *Write) GetBufferAuthorityAccount() *ag_solanago.AccountMeta + func (inst *Write) SetBufferAccountAccount(bufferAccount ag_solanago.PublicKey) *Write + func (inst *Write) SetBufferAuthorityAccount(bufferAuthority ag_solanago.PublicKey) *Write + func (inst *Write) SetBytes(bytes []byte) *Write + func (inst *Write) SetOffset(offset uint32) *Write + func (inst *Write) Validate() error + func (inst Write) Build() *Instruction + func (inst Write) ValidateAndBuild() (*Instruction, error) + func (obj *Write) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj Write) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)