Versions in this module Expand all Collapse all v0 v0.0.2 Jun 17, 2022 Changes in this version + const ProgramName + var FaucetDiscriminator = [8]byte + var InstructionImplDef = ag_binary.NewVariantDefinition(ag_binary.AnchorTypeIDEncoding, []ag_binary.VariantType{ ... }) + var Instruction_Initialize = ag_binary.TypeID([8]byte{ ... }) + var Instruction_Swap = ag_binary.TypeID([8]byte{ ... }) + var Instruction_Sweep = ag_binary.TypeID([8]byte{ ... }) + var ProgramID ag_solanago.PublicKey = ag_solanago.MustPublicKeyFromBase58("EoHnnTLWwErHgWyMvapADVfR9NRF3jUthDXgHqdDNAqm") + func InstructionIDToName(id ag_binary.TypeID) string + func SetProgramID(pubkey ag_solanago.PublicKey) + type Faucet struct + Authority ag_solanago.PublicKey + Mint ag_solanago.PublicKey + func (obj *Faucet) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj Faucet) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + type Initialize struct + func NewInitializeInstruction(authority ag_solanago.PublicKey, tokenMint ag_solanago.PublicKey, ...) *Initialize + func NewInitializeInstructionBuilder() *Initialize + func (inst *Initialize) EncodeToTree(parent ag_treeout.Branches) + func (inst *Initialize) GetAuthorityAccount() *ag_solanago.AccountMeta + func (inst *Initialize) GetFaucetAccount() *ag_solanago.AccountMeta + func (inst *Initialize) GetRentAccount() *ag_solanago.AccountMeta + func (inst *Initialize) GetSystemProgramAccount() *ag_solanago.AccountMeta + func (inst *Initialize) GetTokenMintAccount() *ag_solanago.AccountMeta + func (inst *Initialize) GetTokenProgramAccount() *ag_solanago.AccountMeta + func (inst *Initialize) SetAuthorityAccount(authority ag_solanago.PublicKey) *Initialize + func (inst *Initialize) SetFaucetAccount(faucet ag_solanago.PublicKey) *Initialize + func (inst *Initialize) SetRentAccount(rent ag_solanago.PublicKey) *Initialize + func (inst *Initialize) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *Initialize + func (inst *Initialize) SetTokenMintAccount(tokenMint ag_solanago.PublicKey) *Initialize + func (inst *Initialize) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *Initialize + func (inst *Initialize) Validate() error + func (inst Initialize) Build() *Instruction + func (inst Initialize) ValidateAndBuild() (*Instruction, error) + func (obj *Initialize) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj Initialize) 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 Swap struct + Lamports *uint64 + func NewSwapInstruction(lamports uint64, depositor ag_solanago.PublicKey, ...) *Swap + func NewSwapInstructionBuilder() *Swap + func (inst *Swap) EncodeToTree(parent ag_treeout.Branches) + func (inst *Swap) GetDepositorAccount() *ag_solanago.AccountMeta + func (inst *Swap) GetFaucetAccount() *ag_solanago.AccountMeta + func (inst *Swap) GetReceiverTokenAccountAccount() *ag_solanago.AccountMeta + func (inst *Swap) GetSystemProgramAccount() *ag_solanago.AccountMeta + func (inst *Swap) GetTokenMintAccount() *ag_solanago.AccountMeta + func (inst *Swap) GetTokenProgramAccount() *ag_solanago.AccountMeta + func (inst *Swap) GetVaultAuthorityAccount() *ag_solanago.AccountMeta + func (inst *Swap) SetDepositorAccount(depositor ag_solanago.PublicKey) *Swap + func (inst *Swap) SetFaucetAccount(faucet ag_solanago.PublicKey) *Swap + func (inst *Swap) SetLamports(lamports uint64) *Swap + func (inst *Swap) SetReceiverTokenAccountAccount(receiverTokenAccount ag_solanago.PublicKey) *Swap + func (inst *Swap) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *Swap + func (inst *Swap) SetTokenMintAccount(tokenMint ag_solanago.PublicKey) *Swap + func (inst *Swap) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *Swap + func (inst *Swap) SetVaultAuthorityAccount(vaultAuthority ag_solanago.PublicKey) *Swap + func (inst *Swap) Validate() error + func (inst Swap) Build() *Instruction + func (inst Swap) ValidateAndBuild() (*Instruction, error) + func (obj *Swap) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj Swap) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + type Sweep struct + Lamports *uint64 + func NewSweepInstruction(lamports uint64, authority ag_solanago.PublicKey, faucet ag_solanago.PublicKey) *Sweep + func NewSweepInstructionBuilder() *Sweep + func (inst *Sweep) EncodeToTree(parent ag_treeout.Branches) + func (inst *Sweep) GetAuthorityAccount() *ag_solanago.AccountMeta + func (inst *Sweep) GetFaucetAccount() *ag_solanago.AccountMeta + func (inst *Sweep) SetAuthorityAccount(authority ag_solanago.PublicKey) *Sweep + func (inst *Sweep) SetFaucetAccount(faucet ag_solanago.PublicKey) *Sweep + func (inst *Sweep) SetLamports(lamports uint64) *Sweep + func (inst *Sweep) Validate() error + func (inst Sweep) Build() *Instruction + func (inst Sweep) ValidateAndBuild() (*Instruction, error) + func (obj *Sweep) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj Sweep) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)