Versions in this module Expand all Collapse all v1 v1.0.0 Nov 16, 2024 Changes in this version + const ProgramName + var CounterDiscriminator = [8]byte + var InstructionImplDef = ag_binary.NewVariantDefinition(ag_binary.AnchorTypeIDEncoding, []ag_binary.VariantType{ ... }) + var Instruction_Lock = ag_binary.TypeID([8]byte{ ... }) + var Instruction_Memo = ag_binary.TypeID([8]byte{ ... }) + var ProgramID ag_solanago.PublicKey = ag_solanago.MPK("memos5eKsok4hXwxufkppaTBrfWRjFMhqxgomv5trJ6") + func InstructionIDToName(id ag_binary.TypeID) string + func SetProgramID(pubkey ag_solanago.PublicKey) + type Counter struct + Count uint64 + func (obj *Counter) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj Counter) 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 Lock struct + Input *[]byte + func NewLockInstruction(input []byte, payer ag_solanago.PublicKey, counter ag_solanago.PublicKey, ...) *Lock + func NewLockInstructionBuilder() *Lock + func (inst *Lock) EncodeToTree(parent ag_treeout.Branches) + func (inst *Lock) GetCounterAccount() *ag_solanago.AccountMeta + func (inst *Lock) GetLockAccounts() *LockAccounts + func (inst *Lock) GetPayerAccount() *ag_solanago.AccountMeta + func (inst *Lock) GetSystemProgramAccount() *ag_solanago.AccountMeta + func (inst *Lock) SetCounterAccount(counter ag_solanago.PublicKey) *Lock + func (inst *Lock) SetInput(input []byte) *Lock + func (inst *Lock) SetPayerAccount(payer ag_solanago.PublicKey) *Lock + func (inst *Lock) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *Lock + func (inst *Lock) Validate() error + func (inst Lock) Build() *Instruction + func (inst Lock) ValidateAndBuild() (*Instruction, error) + func (obj *Lock) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj Lock) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + type LockAccounts struct + Counter ag_solanago.PublicKey + Payer ag_solanago.PublicKey + SystemProgram ag_solanago.PublicKey + type Memo struct + Input *[]byte + func NewMemoInstruction(input []byte) *Memo + func NewMemoInstructionBuilder() *Memo + func (inst *Memo) EncodeToTree(parent ag_treeout.Branches) + func (inst *Memo) GetMemoAccounts() *MemoAccounts + func (inst *Memo) SetInput(input []byte) *Memo + func (inst *Memo) Validate() error + func (inst Memo) Build() *Instruction + func (inst Memo) ValidateAndBuild() (*Instruction, error) + func (obj *Memo) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj Memo) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + type MemoAccounts struct