Versions in this module Expand all Collapse all v0 v0.2.1 Mar 21, 2022 Changes in this version + const ProgramName + var CandyMachineDiscriminator = [8]byte + var ConfigDiscriminator = [8]byte + var InstructionImplDef = ag_binary.NewVariantDefinition(ag_binary.AnchorTypeIDEncoding, []ag_binary.VariantType{ ... }) + var Instruction_AddConfigLines = ag_binary.TypeID([8]byte{ ... }) + var Instruction_InitializeCandyMachine = ag_binary.TypeID([8]byte{ ... }) + var Instruction_InitializeConfig = ag_binary.TypeID([8]byte{ ... }) + var Instruction_MintNft = ag_binary.TypeID([8]byte{ ... }) + var Instruction_UpdateAuthority = ag_binary.TypeID([8]byte{ ... }) + var Instruction_UpdateCandyMachine = ag_binary.TypeID([8]byte{ ... }) + var Instruction_WithdrawFunds = ag_binary.TypeID([8]byte{ ... }) + var ProgramID ag_solanago.PublicKey + func InstructionIDToName(id ag_binary.TypeID) string + func SetProgramID(pubkey ag_solanago.PublicKey) + type AddConfigLines struct + ConfigLines *[]ConfigLine + Index *uint32 + func NewAddConfigLinesInstruction(index uint32, configLines []ConfigLine, config ag_solanago.PublicKey, ...) *AddConfigLines + func NewAddConfigLinesInstructionBuilder() *AddConfigLines + func (inst *AddConfigLines) EncodeToTree(parent ag_treeout.Branches) + func (inst *AddConfigLines) GetAuthorityAccount() *ag_solanago.AccountMeta + func (inst *AddConfigLines) GetConfigAccount() *ag_solanago.AccountMeta + func (inst *AddConfigLines) SetAuthorityAccount(authority ag_solanago.PublicKey) *AddConfigLines + func (inst *AddConfigLines) SetConfigAccount(config ag_solanago.PublicKey) *AddConfigLines + func (inst *AddConfigLines) SetConfigLines(configLines []ConfigLine) *AddConfigLines + func (inst *AddConfigLines) SetIndex(index uint32) *AddConfigLines + func (inst *AddConfigLines) Validate() error + func (inst AddConfigLines) Build() *Instruction + func (inst AddConfigLines) ValidateAndBuild() (*Instruction, error) + func (obj *AddConfigLines) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj AddConfigLines) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + type CandyMachine struct + Authority ag_solanago.PublicKey + Bump uint8 + Config ag_solanago.PublicKey + Data CandyMachineData + ItemsRedeemed uint64 + TokenMint *ag_solanago.PublicKey + Wallet ag_solanago.PublicKey + func (obj *CandyMachine) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj CandyMachine) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + type CandyMachineData struct + GoLiveDate *int64 + ItemsAvailable uint64 + Price uint64 + Uuid string + func (obj *CandyMachineData) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj CandyMachineData) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + type Config struct + Authority ag_solanago.PublicKey + Data ConfigData + func (obj *Config) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj Config) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + type ConfigData struct + Creators []Creator + IsMutable bool + MaxNumberOfLines uint32 + MaxSupply uint64 + RetainAuthority bool + SellerFeeBasisPoints uint16 + Symbol string + Uuid string + func (obj *ConfigData) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj ConfigData) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + type ConfigLine struct + Name string + Uri string + func (obj *ConfigLine) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj ConfigLine) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + type Creator struct + Address ag_solanago.PublicKey + Share uint8 + Verified bool + func (obj *Creator) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj Creator) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + type InitializeCandyMachine struct + Bump *uint8 + Data *CandyMachineData + func NewInitializeCandyMachineInstruction(bump uint8, data CandyMachineData, candyMachine ag_solanago.PublicKey, ...) *InitializeCandyMachine + func NewInitializeCandyMachineInstructionBuilder() *InitializeCandyMachine + func (inst *InitializeCandyMachine) EncodeToTree(parent ag_treeout.Branches) + func (inst *InitializeCandyMachine) GetAuthorityAccount() *ag_solanago.AccountMeta + func (inst *InitializeCandyMachine) GetCandyMachineAccount() *ag_solanago.AccountMeta + func (inst *InitializeCandyMachine) GetConfigAccount() *ag_solanago.AccountMeta + func (inst *InitializeCandyMachine) GetPayerAccount() *ag_solanago.AccountMeta + func (inst *InitializeCandyMachine) GetRentAccount() *ag_solanago.AccountMeta + func (inst *InitializeCandyMachine) GetSystemProgramAccount() *ag_solanago.AccountMeta + func (inst *InitializeCandyMachine) GetWalletAccount() *ag_solanago.AccountMeta + func (inst *InitializeCandyMachine) SetAuthorityAccount(authority ag_solanago.PublicKey) *InitializeCandyMachine + func (inst *InitializeCandyMachine) SetBump(bump uint8) *InitializeCandyMachine + func (inst *InitializeCandyMachine) SetCandyMachineAccount(candyMachine ag_solanago.PublicKey) *InitializeCandyMachine + func (inst *InitializeCandyMachine) SetConfigAccount(config ag_solanago.PublicKey) *InitializeCandyMachine + func (inst *InitializeCandyMachine) SetData(data CandyMachineData) *InitializeCandyMachine + func (inst *InitializeCandyMachine) SetPayerAccount(payer ag_solanago.PublicKey) *InitializeCandyMachine + func (inst *InitializeCandyMachine) SetRentAccount(rent ag_solanago.PublicKey) *InitializeCandyMachine + func (inst *InitializeCandyMachine) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *InitializeCandyMachine + func (inst *InitializeCandyMachine) SetWalletAccount(wallet ag_solanago.PublicKey) *InitializeCandyMachine + func (inst *InitializeCandyMachine) Validate() error + func (inst InitializeCandyMachine) Build() *Instruction + func (inst InitializeCandyMachine) ValidateAndBuild() (*Instruction, error) + func (obj *InitializeCandyMachine) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj InitializeCandyMachine) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + type InitializeConfig struct + Data *ConfigData + func NewInitializeConfigInstruction(data ConfigData, config ag_solanago.PublicKey, authority ag_solanago.PublicKey, ...) *InitializeConfig + func NewInitializeConfigInstructionBuilder() *InitializeConfig + func (inst *InitializeConfig) EncodeToTree(parent ag_treeout.Branches) + func (inst *InitializeConfig) GetAuthorityAccount() *ag_solanago.AccountMeta + func (inst *InitializeConfig) GetConfigAccount() *ag_solanago.AccountMeta + func (inst *InitializeConfig) GetPayerAccount() *ag_solanago.AccountMeta + func (inst *InitializeConfig) GetRentAccount() *ag_solanago.AccountMeta + func (inst *InitializeConfig) SetAuthorityAccount(authority ag_solanago.PublicKey) *InitializeConfig + func (inst *InitializeConfig) SetConfigAccount(config ag_solanago.PublicKey) *InitializeConfig + func (inst *InitializeConfig) SetData(data ConfigData) *InitializeConfig + func (inst *InitializeConfig) SetPayerAccount(payer ag_solanago.PublicKey) *InitializeConfig + func (inst *InitializeConfig) SetRentAccount(rent ag_solanago.PublicKey) *InitializeConfig + func (inst *InitializeConfig) Validate() error + func (inst InitializeConfig) Build() *Instruction + func (inst InitializeConfig) ValidateAndBuild() (*Instruction, error) + func (obj *InitializeConfig) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj InitializeConfig) 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 MintNft struct + func NewMintNftInstruction(config ag_solanago.PublicKey, candyMachine ag_solanago.PublicKey, ...) *MintNft + func NewMintNftInstructionBuilder() *MintNft + func (inst *MintNft) EncodeToTree(parent ag_treeout.Branches) + func (inst *MintNft) GetCandyMachineAccount() *ag_solanago.AccountMeta + func (inst *MintNft) GetClockAccount() *ag_solanago.AccountMeta + func (inst *MintNft) GetConfigAccount() *ag_solanago.AccountMeta + func (inst *MintNft) GetMasterEditionAccount() *ag_solanago.AccountMeta + func (inst *MintNft) GetMetadataAccount() *ag_solanago.AccountMeta + func (inst *MintNft) GetMintAccount() *ag_solanago.AccountMeta + func (inst *MintNft) GetMintAuthorityAccount() *ag_solanago.AccountMeta + func (inst *MintNft) GetPayerAccount() *ag_solanago.AccountMeta + func (inst *MintNft) GetRentAccount() *ag_solanago.AccountMeta + func (inst *MintNft) GetSystemProgramAccount() *ag_solanago.AccountMeta + func (inst *MintNft) GetTokenMetadataProgramAccount() *ag_solanago.AccountMeta + func (inst *MintNft) GetTokenProgramAccount() *ag_solanago.AccountMeta + func (inst *MintNft) GetUpdateAuthorityAccount() *ag_solanago.AccountMeta + func (inst *MintNft) GetWalletAccount() *ag_solanago.AccountMeta + func (inst *MintNft) SetCandyMachineAccount(candyMachine ag_solanago.PublicKey) *MintNft + func (inst *MintNft) SetClockAccount(clock ag_solanago.PublicKey) *MintNft + func (inst *MintNft) SetConfigAccount(config ag_solanago.PublicKey) *MintNft + func (inst *MintNft) SetMasterEditionAccount(masterEdition ag_solanago.PublicKey) *MintNft + func (inst *MintNft) SetMetadataAccount(metadata ag_solanago.PublicKey) *MintNft + func (inst *MintNft) SetMintAccount(mint ag_solanago.PublicKey) *MintNft + func (inst *MintNft) SetMintAuthorityAccount(mintAuthority ag_solanago.PublicKey) *MintNft + func (inst *MintNft) SetPayerAccount(payer ag_solanago.PublicKey) *MintNft + func (inst *MintNft) SetRentAccount(rent ag_solanago.PublicKey) *MintNft + func (inst *MintNft) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *MintNft + func (inst *MintNft) SetTokenMetadataProgramAccount(tokenMetadataProgram ag_solanago.PublicKey) *MintNft + func (inst *MintNft) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *MintNft + func (inst *MintNft) SetUpdateAuthorityAccount(updateAuthority ag_solanago.PublicKey) *MintNft + func (inst *MintNft) SetWalletAccount(wallet ag_solanago.PublicKey) *MintNft + func (inst *MintNft) Validate() error + func (inst MintNft) Build() *Instruction + func (inst MintNft) ValidateAndBuild() (*Instruction, error) + func (obj *MintNft) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj MintNft) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + type UpdateAuthority struct + NewAuthority *ag_solanago.PublicKey + func NewUpdateAuthorityInstruction(newAuthority ag_solanago.PublicKey, candyMachine ag_solanago.PublicKey, ...) *UpdateAuthority + func NewUpdateAuthorityInstructionBuilder() *UpdateAuthority + func (inst *UpdateAuthority) EncodeToTree(parent ag_treeout.Branches) + func (inst *UpdateAuthority) GetAuthorityAccount() *ag_solanago.AccountMeta + func (inst *UpdateAuthority) GetCandyMachineAccount() *ag_solanago.AccountMeta + func (inst *UpdateAuthority) SetAuthorityAccount(authority ag_solanago.PublicKey) *UpdateAuthority + func (inst *UpdateAuthority) SetCandyMachineAccount(candyMachine ag_solanago.PublicKey) *UpdateAuthority + func (inst *UpdateAuthority) SetNewAuthority(newAuthority ag_solanago.PublicKey) *UpdateAuthority + func (inst *UpdateAuthority) Validate() error + func (inst UpdateAuthority) Build() *Instruction + func (inst UpdateAuthority) ValidateAndBuild() (*Instruction, error) + func (obj *UpdateAuthority) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj UpdateAuthority) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + type UpdateCandyMachine struct + GoLiveDate *int64 + Price *uint64 + func NewUpdateCandyMachineInstruction(price uint64, goLiveDate int64, candyMachine ag_solanago.PublicKey, ...) *UpdateCandyMachine + func NewUpdateCandyMachineInstructionBuilder() *UpdateCandyMachine + func (inst *UpdateCandyMachine) EncodeToTree(parent ag_treeout.Branches) + func (inst *UpdateCandyMachine) GetAuthorityAccount() *ag_solanago.AccountMeta + func (inst *UpdateCandyMachine) GetCandyMachineAccount() *ag_solanago.AccountMeta + func (inst *UpdateCandyMachine) SetAuthorityAccount(authority ag_solanago.PublicKey) *UpdateCandyMachine + func (inst *UpdateCandyMachine) SetCandyMachineAccount(candyMachine ag_solanago.PublicKey) *UpdateCandyMachine + func (inst *UpdateCandyMachine) SetGoLiveDate(goLiveDate int64) *UpdateCandyMachine + func (inst *UpdateCandyMachine) SetPrice(price uint64) *UpdateCandyMachine + func (inst *UpdateCandyMachine) Validate() error + func (inst UpdateCandyMachine) Build() *Instruction + func (inst UpdateCandyMachine) ValidateAndBuild() (*Instruction, error) + func (obj *UpdateCandyMachine) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj UpdateCandyMachine) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) + type WithdrawFunds struct + func NewWithdrawFundsInstruction(config ag_solanago.PublicKey, authority ag_solanago.PublicKey) *WithdrawFunds + func NewWithdrawFundsInstructionBuilder() *WithdrawFunds + func (inst *WithdrawFunds) EncodeToTree(parent ag_treeout.Branches) + func (inst *WithdrawFunds) GetAuthorityAccount() *ag_solanago.AccountMeta + func (inst *WithdrawFunds) GetConfigAccount() *ag_solanago.AccountMeta + func (inst *WithdrawFunds) SetAuthorityAccount(authority ag_solanago.PublicKey) *WithdrawFunds + func (inst *WithdrawFunds) SetConfigAccount(config ag_solanago.PublicKey) *WithdrawFunds + func (inst *WithdrawFunds) Validate() error + func (inst WithdrawFunds) Build() *Instruction + func (inst WithdrawFunds) ValidateAndBuild() (*Instruction, error) + func (obj *WithdrawFunds) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) + func (obj WithdrawFunds) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)