candy_machine_core

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ProgramName = "CandyMachineCore"

Variables

View Source
var (
	Instruction_AddConfigLines = ag_binary.TypeID([8]byte{223, 50, 224, 227, 151, 8, 115, 106})

	Instruction_Initialize = ag_binary.TypeID([8]byte{175, 175, 109, 31, 13, 152, 155, 237})

	Instruction_InitializeV2 = ag_binary.TypeID([8]byte{67, 153, 175, 39, 218, 16, 38, 32})

	Instruction_Mint = ag_binary.TypeID([8]byte{51, 57, 225, 47, 182, 146, 137, 166})

	Instruction_MintV2 = ag_binary.TypeID([8]byte{120, 121, 23, 146, 173, 110, 199, 205})

	Instruction_SetAuthority = ag_binary.TypeID([8]byte{133, 250, 37, 21, 110, 163, 26, 121})

	Instruction_SetCollection = ag_binary.TypeID([8]byte{192, 254, 206, 76, 168, 182, 59, 223})

	Instruction_SetCollectionV2 = ag_binary.TypeID([8]byte{229, 35, 61, 91, 15, 14, 99, 160})

	Instruction_SetMintAuthority = ag_binary.TypeID([8]byte{67, 127, 155, 187, 100, 174, 103, 121})

	Instruction_SetTokenStandard = ag_binary.TypeID([8]byte{147, 212, 106, 195, 30, 170, 209, 128})

	Instruction_Update = ag_binary.TypeID([8]byte{219, 200, 88, 176, 158, 63, 253, 127})

	Instruction_Withdraw = ag_binary.TypeID([8]byte{183, 18, 70, 156, 148, 109, 161, 34})
)
View Source
var CandyMachineDiscriminator = [8]byte{51, 173, 177, 113, 25, 241, 109, 189}
View Source
var InstructionImplDef = ag_binary.NewVariantDefinition(
	ag_binary.AnchorTypeIDEncoding,
	[]ag_binary.VariantType{
		{
			"add_config_lines", (*AddConfigLines)(nil),
		},
		{
			"initialize", (*Initialize)(nil),
		},
		{
			"initialize_v2", (*InitializeV2)(nil),
		},
		{
			"mint", (*Mint)(nil),
		},
		{
			"mint_v2", (*MintV2)(nil),
		},
		{
			"set_authority", (*SetAuthority)(nil),
		},
		{
			"set_collection", (*SetCollection)(nil),
		},
		{
			"set_collection_v2", (*SetCollectionV2)(nil),
		},
		{
			"set_mint_authority", (*SetMintAuthority)(nil),
		},
		{
			"set_token_standard", (*SetTokenStandard)(nil),
		},
		{
			"update", (*Update)(nil),
		},
		{
			"withdraw", (*Withdraw)(nil),
		},
	},
)

Functions

func InstructionIDToName

func InstructionIDToName(id ag_binary.TypeID) string

InstructionIDToName returns the name of the instruction given its ID.

func SetProgramID

func SetProgramID(pubkey ag_solanago.PublicKey)

Types

type AccountVersion

type AccountVersion ag_binary.BorshEnum
const (
	AccountVersionV1 AccountVersion = iota
	AccountVersionV2
)

func (AccountVersion) String

func (value AccountVersion) String() string

type AddConfigLines

type AddConfigLines struct {
	Index       *uint32
	ConfigLines *[]ConfigLine

	// [0] = [WRITE] candyMachine
	//
	// [1] = [SIGNER] authority
	ag_solanago.AccountMetaSlice `bin:"-"`
}

AddConfigLines is the `addConfigLines` instruction.

func NewAddConfigLinesInstruction

func NewAddConfigLinesInstruction(

	index uint32,
	configLines []ConfigLine,

	candyMachine ag_solanago.PublicKey,
	authority ag_solanago.PublicKey) *AddConfigLines

NewAddConfigLinesInstruction declares a new AddConfigLines instruction with the provided parameters and accounts.

func NewAddConfigLinesInstructionBuilder

func NewAddConfigLinesInstructionBuilder() *AddConfigLines

NewAddConfigLinesInstructionBuilder creates a new `AddConfigLines` instruction builder.

func (AddConfigLines) Build

func (inst AddConfigLines) Build() *Instruction

func (*AddConfigLines) EncodeToTree

func (inst *AddConfigLines) EncodeToTree(parent ag_treeout.Branches)

func (*AddConfigLines) GetAuthorityAccount

func (inst *AddConfigLines) GetAuthorityAccount() *ag_solanago.AccountMeta

GetAuthorityAccount gets the "authority" account.

func (*AddConfigLines) GetCandyMachineAccount

func (inst *AddConfigLines) GetCandyMachineAccount() *ag_solanago.AccountMeta

GetCandyMachineAccount gets the "candyMachine" account.

func (AddConfigLines) MarshalWithEncoder

func (obj AddConfigLines) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*AddConfigLines) SetAuthorityAccount

func (inst *AddConfigLines) SetAuthorityAccount(authority ag_solanago.PublicKey) *AddConfigLines

SetAuthorityAccount sets the "authority" account.

func (*AddConfigLines) SetCandyMachineAccount

func (inst *AddConfigLines) SetCandyMachineAccount(candyMachine ag_solanago.PublicKey) *AddConfigLines

SetCandyMachineAccount sets the "candyMachine" account.

func (*AddConfigLines) SetConfigLines

func (inst *AddConfigLines) SetConfigLines(configLines []ConfigLine) *AddConfigLines

SetConfigLines sets the "configLines" parameter.

func (*AddConfigLines) SetIndex

func (inst *AddConfigLines) SetIndex(index uint32) *AddConfigLines

SetIndex sets the "index" parameter.

func (*AddConfigLines) UnmarshalWithDecoder

func (obj *AddConfigLines) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

func (*AddConfigLines) Validate

func (inst *AddConfigLines) Validate() error

func (AddConfigLines) ValidateAndBuild

func (inst AddConfigLines) ValidateAndBuild() (*Instruction, error)

ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.

type CandyMachine

type CandyMachine struct {
	Version        AccountVersion
	TokenStandard  uint8
	Features       [6]uint8
	Authority      ag_solanago.PublicKey
	MintAuthority  ag_solanago.PublicKey
	CollectionMint ag_solanago.PublicKey
	ItemsRedeemed  uint64
	Data           CandyMachineData
}

func (CandyMachine) MarshalWithEncoder

func (obj CandyMachine) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*CandyMachine) UnmarshalWithDecoder

func (obj *CandyMachine) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

type CandyMachineData

type CandyMachineData struct {
	ItemsAvailable       uint64
	Symbol               string
	SellerFeeBasisPoints uint16
	MaxSupply            uint64
	IsMutable            bool
	Creators             []Creator
	ConfigLineSettings   *ConfigLineSettings `bin:"optional"`
	HiddenSettings       *HiddenSettings     `bin:"optional"`
}

func (CandyMachineData) MarshalWithEncoder

func (obj CandyMachineData) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*CandyMachineData) UnmarshalWithDecoder

func (obj *CandyMachineData) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

type ConfigLine

type ConfigLine struct {
	Name string
	Uri  string
}

func (ConfigLine) MarshalWithEncoder

func (obj ConfigLine) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*ConfigLine) UnmarshalWithDecoder

func (obj *ConfigLine) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

type ConfigLineSettings

type ConfigLineSettings struct {
	PrefixName   string
	NameLength   uint32
	PrefixUri    string
	UriLength    uint32
	IsSequential bool
}

func (ConfigLineSettings) MarshalWithEncoder

func (obj ConfigLineSettings) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*ConfigLineSettings) UnmarshalWithDecoder

func (obj *ConfigLineSettings) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

type Creator

type Creator struct {
	Address         ag_solanago.PublicKey
	Verified        bool
	PercentageShare uint8
}

func (Creator) MarshalWithEncoder

func (obj Creator) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*Creator) UnmarshalWithDecoder

func (obj *Creator) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

type HiddenSettings

type HiddenSettings struct {
	Name string
	Uri  string
	Hash [32]uint8
}

func (HiddenSettings) MarshalWithEncoder

func (obj HiddenSettings) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*HiddenSettings) UnmarshalWithDecoder

func (obj *HiddenSettings) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

type Initialize

type Initialize struct {
	Data *CandyMachineData

	// [0] = [WRITE] candyMachine
	//
	// [1] = [WRITE] authorityPda
	//
	// [2] = [] authority
	//
	// [3] = [SIGNER] payer
	//
	// [4] = [] collectionMetadata
	//
	// [5] = [] collectionMint
	//
	// [6] = [] collectionMasterEdition
	//
	// [7] = [WRITE, SIGNER] collectionUpdateAuthority
	//
	// [8] = [WRITE] collectionAuthorityRecord
	//
	// [9] = [] tokenMetadataProgram
	//
	// [10] = [] systemProgram
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Initialize is the `initialize` instruction.

func NewInitializeInstruction

func NewInitializeInstruction(

	data CandyMachineData,

	candyMachine ag_solanago.PublicKey,
	authorityPda ag_solanago.PublicKey,
	authority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	collectionMetadata ag_solanago.PublicKey,
	collectionMint ag_solanago.PublicKey,
	collectionMasterEdition ag_solanago.PublicKey,
	collectionUpdateAuthority ag_solanago.PublicKey,
	collectionAuthorityRecord ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey) *Initialize

NewInitializeInstruction declares a new Initialize instruction with the provided parameters and accounts.

func NewInitializeInstructionBuilder

func NewInitializeInstructionBuilder() *Initialize

NewInitializeInstructionBuilder creates a new `Initialize` instruction builder.

func (Initialize) Build

func (inst Initialize) Build() *Instruction

func (*Initialize) EncodeToTree

func (inst *Initialize) EncodeToTree(parent ag_treeout.Branches)

func (*Initialize) GetAuthorityAccount

func (inst *Initialize) GetAuthorityAccount() *ag_solanago.AccountMeta

GetAuthorityAccount gets the "authority" account.

func (*Initialize) GetAuthorityPdaAccount

func (inst *Initialize) GetAuthorityPdaAccount() *ag_solanago.AccountMeta

GetAuthorityPdaAccount gets the "authorityPda" account.

func (*Initialize) GetCandyMachineAccount

func (inst *Initialize) GetCandyMachineAccount() *ag_solanago.AccountMeta

GetCandyMachineAccount gets the "candyMachine" account.

func (*Initialize) GetCollectionAuthorityRecordAccount

func (inst *Initialize) GetCollectionAuthorityRecordAccount() *ag_solanago.AccountMeta

GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" account.

func (*Initialize) GetCollectionMasterEditionAccount

func (inst *Initialize) GetCollectionMasterEditionAccount() *ag_solanago.AccountMeta

GetCollectionMasterEditionAccount gets the "collectionMasterEdition" account.

func (*Initialize) GetCollectionMetadataAccount

func (inst *Initialize) GetCollectionMetadataAccount() *ag_solanago.AccountMeta

GetCollectionMetadataAccount gets the "collectionMetadata" account.

func (*Initialize) GetCollectionMintAccount

func (inst *Initialize) GetCollectionMintAccount() *ag_solanago.AccountMeta

GetCollectionMintAccount gets the "collectionMint" account.

func (*Initialize) GetCollectionUpdateAuthorityAccount

func (inst *Initialize) GetCollectionUpdateAuthorityAccount() *ag_solanago.AccountMeta

GetCollectionUpdateAuthorityAccount gets the "collectionUpdateAuthority" account.

func (*Initialize) GetPayerAccount

func (inst *Initialize) GetPayerAccount() *ag_solanago.AccountMeta

GetPayerAccount gets the "payer" account.

func (*Initialize) GetSystemProgramAccount

func (inst *Initialize) GetSystemProgramAccount() *ag_solanago.AccountMeta

GetSystemProgramAccount gets the "systemProgram" account.

func (*Initialize) GetTokenMetadataProgramAccount

func (inst *Initialize) GetTokenMetadataProgramAccount() *ag_solanago.AccountMeta

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (Initialize) MarshalWithEncoder

func (obj Initialize) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*Initialize) SetAuthorityAccount

func (inst *Initialize) SetAuthorityAccount(authority ag_solanago.PublicKey) *Initialize

SetAuthorityAccount sets the "authority" account.

func (*Initialize) SetAuthorityPdaAccount

func (inst *Initialize) SetAuthorityPdaAccount(authorityPda ag_solanago.PublicKey) *Initialize

SetAuthorityPdaAccount sets the "authorityPda" account.

func (*Initialize) SetCandyMachineAccount

func (inst *Initialize) SetCandyMachineAccount(candyMachine ag_solanago.PublicKey) *Initialize

SetCandyMachineAccount sets the "candyMachine" account.

func (*Initialize) SetCollectionAuthorityRecordAccount

func (inst *Initialize) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord ag_solanago.PublicKey) *Initialize

SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" account.

func (*Initialize) SetCollectionMasterEditionAccount

func (inst *Initialize) SetCollectionMasterEditionAccount(collectionMasterEdition ag_solanago.PublicKey) *Initialize

SetCollectionMasterEditionAccount sets the "collectionMasterEdition" account.

func (*Initialize) SetCollectionMetadataAccount

func (inst *Initialize) SetCollectionMetadataAccount(collectionMetadata ag_solanago.PublicKey) *Initialize

SetCollectionMetadataAccount sets the "collectionMetadata" account.

func (*Initialize) SetCollectionMintAccount

func (inst *Initialize) SetCollectionMintAccount(collectionMint ag_solanago.PublicKey) *Initialize

SetCollectionMintAccount sets the "collectionMint" account.

func (*Initialize) SetCollectionUpdateAuthorityAccount

func (inst *Initialize) SetCollectionUpdateAuthorityAccount(collectionUpdateAuthority ag_solanago.PublicKey) *Initialize

SetCollectionUpdateAuthorityAccount sets the "collectionUpdateAuthority" account.

func (*Initialize) SetData

func (inst *Initialize) SetData(data CandyMachineData) *Initialize

SetData sets the "data" parameter.

func (*Initialize) SetPayerAccount

func (inst *Initialize) SetPayerAccount(payer ag_solanago.PublicKey) *Initialize

SetPayerAccount sets the "payer" account.

func (*Initialize) SetSystemProgramAccount

func (inst *Initialize) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *Initialize

SetSystemProgramAccount sets the "systemProgram" account.

func (*Initialize) SetTokenMetadataProgramAccount

func (inst *Initialize) SetTokenMetadataProgramAccount(tokenMetadataProgram ag_solanago.PublicKey) *Initialize

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*Initialize) UnmarshalWithDecoder

func (obj *Initialize) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

func (*Initialize) Validate

func (inst *Initialize) Validate() error

func (Initialize) ValidateAndBuild

func (inst Initialize) ValidateAndBuild() (*Instruction, error)

ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.

type InitializeV2

type InitializeV2 struct {
	Data          *CandyMachineData
	TokenStandard *uint8

	// [0] = [WRITE] candyMachine
	//
	// [1] = [WRITE] authorityPda
	//
	// [2] = [] authority
	//
	// [3] = [WRITE, SIGNER] payer
	//
	// [4] = [] ruleSet
	//
	// [5] = [WRITE] collectionMetadata
	//
	// [6] = [] collectionMint
	//
	// [7] = [] collectionMasterEdition
	//
	// [8] = [WRITE, SIGNER] collectionUpdateAuthority
	//
	// [9] = [WRITE] collectionDelegateRecord
	//
	// [10] = [] tokenMetadataProgram
	//
	// [11] = [] systemProgram
	//
	// [12] = [] sysvarInstructions
	//
	// [13] = [] authorizationRulesProgram
	//
	// [14] = [] authorizationRules
	ag_solanago.AccountMetaSlice `bin:"-"`
}

InitializeV2 is the `initializeV2` instruction.

func NewInitializeV2Instruction

func NewInitializeV2Instruction(

	data CandyMachineData,
	tokenStandard uint8,

	candyMachine ag_solanago.PublicKey,
	authorityPda ag_solanago.PublicKey,
	authority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	ruleSet ag_solanago.PublicKey,
	collectionMetadata ag_solanago.PublicKey,
	collectionMint ag_solanago.PublicKey,
	collectionMasterEdition ag_solanago.PublicKey,
	collectionUpdateAuthority ag_solanago.PublicKey,
	collectionDelegateRecord ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	sysvarInstructions ag_solanago.PublicKey,
	authorizationRulesProgram ag_solanago.PublicKey,
	authorizationRules ag_solanago.PublicKey) *InitializeV2

NewInitializeV2Instruction declares a new InitializeV2 instruction with the provided parameters and accounts.

func NewInitializeV2InstructionBuilder

func NewInitializeV2InstructionBuilder() *InitializeV2

NewInitializeV2InstructionBuilder creates a new `InitializeV2` instruction builder.

func (InitializeV2) Build

func (inst InitializeV2) Build() *Instruction

func (*InitializeV2) EncodeToTree

func (inst *InitializeV2) EncodeToTree(parent ag_treeout.Branches)

func (*InitializeV2) GetAuthorityAccount

func (inst *InitializeV2) GetAuthorityAccount() *ag_solanago.AccountMeta

GetAuthorityAccount gets the "authority" account.

func (*InitializeV2) GetAuthorityPdaAccount

func (inst *InitializeV2) GetAuthorityPdaAccount() *ag_solanago.AccountMeta

GetAuthorityPdaAccount gets the "authorityPda" account.

func (*InitializeV2) GetAuthorizationRulesAccount

func (inst *InitializeV2) GetAuthorizationRulesAccount() *ag_solanago.AccountMeta

GetAuthorizationRulesAccount gets the "authorizationRules" account.

func (*InitializeV2) GetAuthorizationRulesProgramAccount

func (inst *InitializeV2) GetAuthorizationRulesProgramAccount() *ag_solanago.AccountMeta

GetAuthorizationRulesProgramAccount gets the "authorizationRulesProgram" account.

func (*InitializeV2) GetCandyMachineAccount

func (inst *InitializeV2) GetCandyMachineAccount() *ag_solanago.AccountMeta

GetCandyMachineAccount gets the "candyMachine" account.

func (*InitializeV2) GetCollectionDelegateRecordAccount

func (inst *InitializeV2) GetCollectionDelegateRecordAccount() *ag_solanago.AccountMeta

GetCollectionDelegateRecordAccount gets the "collectionDelegateRecord" account.

func (*InitializeV2) GetCollectionMasterEditionAccount

func (inst *InitializeV2) GetCollectionMasterEditionAccount() *ag_solanago.AccountMeta

GetCollectionMasterEditionAccount gets the "collectionMasterEdition" account.

func (*InitializeV2) GetCollectionMetadataAccount

func (inst *InitializeV2) GetCollectionMetadataAccount() *ag_solanago.AccountMeta

GetCollectionMetadataAccount gets the "collectionMetadata" account.

func (*InitializeV2) GetCollectionMintAccount

func (inst *InitializeV2) GetCollectionMintAccount() *ag_solanago.AccountMeta

GetCollectionMintAccount gets the "collectionMint" account.

func (*InitializeV2) GetCollectionUpdateAuthorityAccount

func (inst *InitializeV2) GetCollectionUpdateAuthorityAccount() *ag_solanago.AccountMeta

GetCollectionUpdateAuthorityAccount gets the "collectionUpdateAuthority" account.

func (*InitializeV2) GetPayerAccount

func (inst *InitializeV2) GetPayerAccount() *ag_solanago.AccountMeta

GetPayerAccount gets the "payer" account.

func (*InitializeV2) GetRuleSetAccount

func (inst *InitializeV2) GetRuleSetAccount() *ag_solanago.AccountMeta

GetRuleSetAccount gets the "ruleSet" account.

func (*InitializeV2) GetSystemProgramAccount

func (inst *InitializeV2) GetSystemProgramAccount() *ag_solanago.AccountMeta

GetSystemProgramAccount gets the "systemProgram" account.

func (*InitializeV2) GetSysvarInstructionsAccount

func (inst *InitializeV2) GetSysvarInstructionsAccount() *ag_solanago.AccountMeta

GetSysvarInstructionsAccount gets the "sysvarInstructions" account.

func (*InitializeV2) GetTokenMetadataProgramAccount

func (inst *InitializeV2) GetTokenMetadataProgramAccount() *ag_solanago.AccountMeta

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (InitializeV2) MarshalWithEncoder

func (obj InitializeV2) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*InitializeV2) SetAuthorityAccount

func (inst *InitializeV2) SetAuthorityAccount(authority ag_solanago.PublicKey) *InitializeV2

SetAuthorityAccount sets the "authority" account.

func (*InitializeV2) SetAuthorityPdaAccount

func (inst *InitializeV2) SetAuthorityPdaAccount(authorityPda ag_solanago.PublicKey) *InitializeV2

SetAuthorityPdaAccount sets the "authorityPda" account.

func (*InitializeV2) SetAuthorizationRulesAccount

func (inst *InitializeV2) SetAuthorizationRulesAccount(authorizationRules ag_solanago.PublicKey) *InitializeV2

SetAuthorizationRulesAccount sets the "authorizationRules" account.

func (*InitializeV2) SetAuthorizationRulesProgramAccount

func (inst *InitializeV2) SetAuthorizationRulesProgramAccount(authorizationRulesProgram ag_solanago.PublicKey) *InitializeV2

SetAuthorizationRulesProgramAccount sets the "authorizationRulesProgram" account.

func (*InitializeV2) SetCandyMachineAccount

func (inst *InitializeV2) SetCandyMachineAccount(candyMachine ag_solanago.PublicKey) *InitializeV2

SetCandyMachineAccount sets the "candyMachine" account.

func (*InitializeV2) SetCollectionDelegateRecordAccount

func (inst *InitializeV2) SetCollectionDelegateRecordAccount(collectionDelegateRecord ag_solanago.PublicKey) *InitializeV2

SetCollectionDelegateRecordAccount sets the "collectionDelegateRecord" account.

func (*InitializeV2) SetCollectionMasterEditionAccount

func (inst *InitializeV2) SetCollectionMasterEditionAccount(collectionMasterEdition ag_solanago.PublicKey) *InitializeV2

SetCollectionMasterEditionAccount sets the "collectionMasterEdition" account.

func (*InitializeV2) SetCollectionMetadataAccount

func (inst *InitializeV2) SetCollectionMetadataAccount(collectionMetadata ag_solanago.PublicKey) *InitializeV2

SetCollectionMetadataAccount sets the "collectionMetadata" account.

func (*InitializeV2) SetCollectionMintAccount

func (inst *InitializeV2) SetCollectionMintAccount(collectionMint ag_solanago.PublicKey) *InitializeV2

SetCollectionMintAccount sets the "collectionMint" account.

func (*InitializeV2) SetCollectionUpdateAuthorityAccount

func (inst *InitializeV2) SetCollectionUpdateAuthorityAccount(collectionUpdateAuthority ag_solanago.PublicKey) *InitializeV2

SetCollectionUpdateAuthorityAccount sets the "collectionUpdateAuthority" account.

func (*InitializeV2) SetData

func (inst *InitializeV2) SetData(data CandyMachineData) *InitializeV2

SetData sets the "data" parameter.

func (*InitializeV2) SetPayerAccount

func (inst *InitializeV2) SetPayerAccount(payer ag_solanago.PublicKey) *InitializeV2

SetPayerAccount sets the "payer" account.

func (*InitializeV2) SetRuleSetAccount

func (inst *InitializeV2) SetRuleSetAccount(ruleSet ag_solanago.PublicKey) *InitializeV2

SetRuleSetAccount sets the "ruleSet" account.

func (*InitializeV2) SetSystemProgramAccount

func (inst *InitializeV2) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *InitializeV2

SetSystemProgramAccount sets the "systemProgram" account.

func (*InitializeV2) SetSysvarInstructionsAccount

func (inst *InitializeV2) SetSysvarInstructionsAccount(sysvarInstructions ag_solanago.PublicKey) *InitializeV2

SetSysvarInstructionsAccount sets the "sysvarInstructions" account.

func (*InitializeV2) SetTokenMetadataProgramAccount

func (inst *InitializeV2) SetTokenMetadataProgramAccount(tokenMetadataProgram ag_solanago.PublicKey) *InitializeV2

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*InitializeV2) SetTokenStandard

func (inst *InitializeV2) SetTokenStandard(tokenStandard uint8) *InitializeV2

SetTokenStandard sets the "tokenStandard" parameter.

func (*InitializeV2) UnmarshalWithDecoder

func (obj *InitializeV2) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

func (*InitializeV2) Validate

func (inst *InitializeV2) Validate() error

func (InitializeV2) ValidateAndBuild

func (inst InitializeV2) ValidateAndBuild() (*Instruction, error)

ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.

type Instruction

type Instruction struct {
	ag_binary.BaseVariant
}

func DecodeInstruction

func DecodeInstruction(accounts []*ag_solanago.AccountMeta, data []byte) (*Instruction, error)

func (*Instruction) Accounts

func (inst *Instruction) Accounts() (out []*ag_solanago.AccountMeta)

func (*Instruction) Data

func (inst *Instruction) Data() ([]byte, error)

func (*Instruction) EncodeToTree

func (inst *Instruction) EncodeToTree(parent ag_treeout.Branches)

func (*Instruction) MarshalWithEncoder

func (inst *Instruction) MarshalWithEncoder(encoder *ag_binary.Encoder) error

func (*Instruction) ProgramID

func (inst *Instruction) ProgramID() ag_solanago.PublicKey

func (*Instruction) TextEncode

func (inst *Instruction) TextEncode(encoder *ag_text.Encoder, option *ag_text.Option) error

func (*Instruction) UnmarshalWithDecoder

func (inst *Instruction) UnmarshalWithDecoder(decoder *ag_binary.Decoder) error

type Mint

type Mint struct {

	// [0] = [WRITE] candyMachine
	//
	// [1] = [WRITE] authorityPda
	//
	// [2] = [SIGNER] mintAuthority
	//
	// [3] = [WRITE, SIGNER] payer
	//
	// [4] = [WRITE] nftMint
	//
	// [5] = [SIGNER] nftMintAuthority
	//
	// [6] = [WRITE] nftMetadata
	//
	// [7] = [WRITE] nftMasterEdition
	//
	// [8] = [] collectionAuthorityRecord
	//
	// [9] = [] collectionMint
	//
	// [10] = [WRITE] collectionMetadata
	//
	// [11] = [] collectionMasterEdition
	//
	// [12] = [] collectionUpdateAuthority
	//
	// [13] = [] tokenMetadataProgram
	//
	// [14] = [] tokenProgram
	//
	// [15] = [] systemProgram
	//
	// [16] = [] recentSlothashes
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Mint is the `mint` instruction.

func NewMintInstruction

func NewMintInstruction(

	candyMachine ag_solanago.PublicKey,
	authorityPda ag_solanago.PublicKey,
	mintAuthority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	nftMint ag_solanago.PublicKey,
	nftMintAuthority ag_solanago.PublicKey,
	nftMetadata ag_solanago.PublicKey,
	nftMasterEdition ag_solanago.PublicKey,
	collectionAuthorityRecord ag_solanago.PublicKey,
	collectionMint ag_solanago.PublicKey,
	collectionMetadata ag_solanago.PublicKey,
	collectionMasterEdition ag_solanago.PublicKey,
	collectionUpdateAuthority ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	recentSlothashes ag_solanago.PublicKey) *Mint

NewMintInstruction declares a new Mint instruction with the provided parameters and accounts.

func NewMintInstructionBuilder

func NewMintInstructionBuilder() *Mint

NewMintInstructionBuilder creates a new `Mint` instruction builder.

func (Mint) Build

func (inst Mint) Build() *Instruction

func (*Mint) EncodeToTree

func (inst *Mint) EncodeToTree(parent ag_treeout.Branches)

func (*Mint) GetAuthorityPdaAccount

func (inst *Mint) GetAuthorityPdaAccount() *ag_solanago.AccountMeta

GetAuthorityPdaAccount gets the "authorityPda" account.

func (*Mint) GetCandyMachineAccount

func (inst *Mint) GetCandyMachineAccount() *ag_solanago.AccountMeta

GetCandyMachineAccount gets the "candyMachine" account.

func (*Mint) GetCollectionAuthorityRecordAccount

func (inst *Mint) GetCollectionAuthorityRecordAccount() *ag_solanago.AccountMeta

GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" account.

func (*Mint) GetCollectionMasterEditionAccount

func (inst *Mint) GetCollectionMasterEditionAccount() *ag_solanago.AccountMeta

GetCollectionMasterEditionAccount gets the "collectionMasterEdition" account.

func (*Mint) GetCollectionMetadataAccount

func (inst *Mint) GetCollectionMetadataAccount() *ag_solanago.AccountMeta

GetCollectionMetadataAccount gets the "collectionMetadata" account.

func (*Mint) GetCollectionMintAccount

func (inst *Mint) GetCollectionMintAccount() *ag_solanago.AccountMeta

GetCollectionMintAccount gets the "collectionMint" account.

func (*Mint) GetCollectionUpdateAuthorityAccount

func (inst *Mint) GetCollectionUpdateAuthorityAccount() *ag_solanago.AccountMeta

GetCollectionUpdateAuthorityAccount gets the "collectionUpdateAuthority" account.

func (*Mint) GetMintAuthorityAccount

func (inst *Mint) GetMintAuthorityAccount() *ag_solanago.AccountMeta

GetMintAuthorityAccount gets the "mintAuthority" account.

func (*Mint) GetNftMasterEditionAccount

func (inst *Mint) GetNftMasterEditionAccount() *ag_solanago.AccountMeta

GetNftMasterEditionAccount gets the "nftMasterEdition" account.

func (*Mint) GetNftMetadataAccount

func (inst *Mint) GetNftMetadataAccount() *ag_solanago.AccountMeta

GetNftMetadataAccount gets the "nftMetadata" account.

func (*Mint) GetNftMintAccount

func (inst *Mint) GetNftMintAccount() *ag_solanago.AccountMeta

GetNftMintAccount gets the "nftMint" account.

func (*Mint) GetNftMintAuthorityAccount

func (inst *Mint) GetNftMintAuthorityAccount() *ag_solanago.AccountMeta

GetNftMintAuthorityAccount gets the "nftMintAuthority" account.

func (*Mint) GetPayerAccount

func (inst *Mint) GetPayerAccount() *ag_solanago.AccountMeta

GetPayerAccount gets the "payer" account.

func (*Mint) GetRecentSlothashesAccount

func (inst *Mint) GetRecentSlothashesAccount() *ag_solanago.AccountMeta

GetRecentSlothashesAccount gets the "recentSlothashes" account.

func (*Mint) GetSystemProgramAccount

func (inst *Mint) GetSystemProgramAccount() *ag_solanago.AccountMeta

GetSystemProgramAccount gets the "systemProgram" account.

func (*Mint) GetTokenMetadataProgramAccount

func (inst *Mint) GetTokenMetadataProgramAccount() *ag_solanago.AccountMeta

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (*Mint) GetTokenProgramAccount

func (inst *Mint) GetTokenProgramAccount() *ag_solanago.AccountMeta

GetTokenProgramAccount gets the "tokenProgram" account.

func (Mint) MarshalWithEncoder

func (obj Mint) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*Mint) SetAuthorityPdaAccount

func (inst *Mint) SetAuthorityPdaAccount(authorityPda ag_solanago.PublicKey) *Mint

SetAuthorityPdaAccount sets the "authorityPda" account.

func (*Mint) SetCandyMachineAccount

func (inst *Mint) SetCandyMachineAccount(candyMachine ag_solanago.PublicKey) *Mint

SetCandyMachineAccount sets the "candyMachine" account.

func (*Mint) SetCollectionAuthorityRecordAccount

func (inst *Mint) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord ag_solanago.PublicKey) *Mint

SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" account.

func (*Mint) SetCollectionMasterEditionAccount

func (inst *Mint) SetCollectionMasterEditionAccount(collectionMasterEdition ag_solanago.PublicKey) *Mint

SetCollectionMasterEditionAccount sets the "collectionMasterEdition" account.

func (*Mint) SetCollectionMetadataAccount

func (inst *Mint) SetCollectionMetadataAccount(collectionMetadata ag_solanago.PublicKey) *Mint

SetCollectionMetadataAccount sets the "collectionMetadata" account.

func (*Mint) SetCollectionMintAccount

func (inst *Mint) SetCollectionMintAccount(collectionMint ag_solanago.PublicKey) *Mint

SetCollectionMintAccount sets the "collectionMint" account.

func (*Mint) SetCollectionUpdateAuthorityAccount

func (inst *Mint) SetCollectionUpdateAuthorityAccount(collectionUpdateAuthority ag_solanago.PublicKey) *Mint

SetCollectionUpdateAuthorityAccount sets the "collectionUpdateAuthority" account.

func (*Mint) SetMintAuthorityAccount

func (inst *Mint) SetMintAuthorityAccount(mintAuthority ag_solanago.PublicKey) *Mint

SetMintAuthorityAccount sets the "mintAuthority" account.

func (*Mint) SetNftMasterEditionAccount

func (inst *Mint) SetNftMasterEditionAccount(nftMasterEdition ag_solanago.PublicKey) *Mint

SetNftMasterEditionAccount sets the "nftMasterEdition" account.

func (*Mint) SetNftMetadataAccount

func (inst *Mint) SetNftMetadataAccount(nftMetadata ag_solanago.PublicKey) *Mint

SetNftMetadataAccount sets the "nftMetadata" account.

func (*Mint) SetNftMintAccount

func (inst *Mint) SetNftMintAccount(nftMint ag_solanago.PublicKey) *Mint

SetNftMintAccount sets the "nftMint" account.

func (*Mint) SetNftMintAuthorityAccount

func (inst *Mint) SetNftMintAuthorityAccount(nftMintAuthority ag_solanago.PublicKey) *Mint

SetNftMintAuthorityAccount sets the "nftMintAuthority" account.

func (*Mint) SetPayerAccount

func (inst *Mint) SetPayerAccount(payer ag_solanago.PublicKey) *Mint

SetPayerAccount sets the "payer" account.

func (*Mint) SetRecentSlothashesAccount

func (inst *Mint) SetRecentSlothashesAccount(recentSlothashes ag_solanago.PublicKey) *Mint

SetRecentSlothashesAccount sets the "recentSlothashes" account.

func (*Mint) SetSystemProgramAccount

func (inst *Mint) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *Mint

SetSystemProgramAccount sets the "systemProgram" account.

func (*Mint) SetTokenMetadataProgramAccount

func (inst *Mint) SetTokenMetadataProgramAccount(tokenMetadataProgram ag_solanago.PublicKey) *Mint

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*Mint) SetTokenProgramAccount

func (inst *Mint) SetTokenProgramAccount(tokenProgram ag_solanago.PublicKey) *Mint

SetTokenProgramAccount sets the "tokenProgram" account.

func (*Mint) UnmarshalWithDecoder

func (obj *Mint) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

func (*Mint) Validate

func (inst *Mint) Validate() error

func (Mint) ValidateAndBuild

func (inst Mint) ValidateAndBuild() (*Instruction, error)

ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.

type MintV2

type MintV2 struct {

	// [0] = [WRITE] candyMachine
	//
	// [1] = [WRITE] authorityPda
	//
	// [2] = [SIGNER] mintAuthority
	//
	// [3] = [WRITE, SIGNER] payer
	//
	// [4] = [] nftOwner
	//
	// [5] = [WRITE] nftMint
	//
	// [6] = [SIGNER] nftMintAuthority
	//
	// [7] = [WRITE] nftMetadata
	//
	// [8] = [WRITE] nftMasterEdition
	//
	// [9] = [WRITE] token
	//
	// [10] = [WRITE] tokenRecord
	//
	// [11] = [] collectionDelegateRecord
	//
	// [12] = [] collectionMint
	//
	// [13] = [WRITE] collectionMetadata
	//
	// [14] = [] collectionMasterEdition
	//
	// [15] = [] collectionUpdateAuthority
	//
	// [16] = [] tokenMetadataProgram
	//
	// [17] = [] splTokenProgram
	//
	// [18] = [] splAtaProgram
	//
	// [19] = [] systemProgram
	//
	// [20] = [] sysvarInstructions
	//
	// [21] = [] recentSlothashes
	//
	// [22] = [] authorizationRulesProgram
	//
	// [23] = [] authorizationRules
	ag_solanago.AccountMetaSlice `bin:"-"`
}

MintV2 is the `mintV2` instruction.

func NewMintV2Instruction

func NewMintV2Instruction(

	candyMachine ag_solanago.PublicKey,
	authorityPda ag_solanago.PublicKey,
	mintAuthority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	nftOwner ag_solanago.PublicKey,
	nftMint ag_solanago.PublicKey,
	nftMintAuthority ag_solanago.PublicKey,
	nftMetadata ag_solanago.PublicKey,
	nftMasterEdition ag_solanago.PublicKey,
	token ag_solanago.PublicKey,
	tokenRecord ag_solanago.PublicKey,
	collectionDelegateRecord ag_solanago.PublicKey,
	collectionMint ag_solanago.PublicKey,
	collectionMetadata ag_solanago.PublicKey,
	collectionMasterEdition ag_solanago.PublicKey,
	collectionUpdateAuthority ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey,
	splTokenProgram ag_solanago.PublicKey,
	splAtaProgram ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	sysvarInstructions ag_solanago.PublicKey,
	recentSlothashes ag_solanago.PublicKey,
	authorizationRulesProgram ag_solanago.PublicKey,
	authorizationRules ag_solanago.PublicKey) *MintV2

NewMintV2Instruction declares a new MintV2 instruction with the provided parameters and accounts.

func NewMintV2InstructionBuilder

func NewMintV2InstructionBuilder() *MintV2

NewMintV2InstructionBuilder creates a new `MintV2` instruction builder.

func (MintV2) Build

func (inst MintV2) Build() *Instruction

func (*MintV2) EncodeToTree

func (inst *MintV2) EncodeToTree(parent ag_treeout.Branches)

func (*MintV2) GetAuthorityPdaAccount

func (inst *MintV2) GetAuthorityPdaAccount() *ag_solanago.AccountMeta

GetAuthorityPdaAccount gets the "authorityPda" account.

func (*MintV2) GetAuthorizationRulesAccount

func (inst *MintV2) GetAuthorizationRulesAccount() *ag_solanago.AccountMeta

GetAuthorizationRulesAccount gets the "authorizationRules" account.

func (*MintV2) GetAuthorizationRulesProgramAccount

func (inst *MintV2) GetAuthorizationRulesProgramAccount() *ag_solanago.AccountMeta

GetAuthorizationRulesProgramAccount gets the "authorizationRulesProgram" account.

func (*MintV2) GetCandyMachineAccount

func (inst *MintV2) GetCandyMachineAccount() *ag_solanago.AccountMeta

GetCandyMachineAccount gets the "candyMachine" account.

func (*MintV2) GetCollectionDelegateRecordAccount

func (inst *MintV2) GetCollectionDelegateRecordAccount() *ag_solanago.AccountMeta

GetCollectionDelegateRecordAccount gets the "collectionDelegateRecord" account.

func (*MintV2) GetCollectionMasterEditionAccount

func (inst *MintV2) GetCollectionMasterEditionAccount() *ag_solanago.AccountMeta

GetCollectionMasterEditionAccount gets the "collectionMasterEdition" account.

func (*MintV2) GetCollectionMetadataAccount

func (inst *MintV2) GetCollectionMetadataAccount() *ag_solanago.AccountMeta

GetCollectionMetadataAccount gets the "collectionMetadata" account.

func (*MintV2) GetCollectionMintAccount

func (inst *MintV2) GetCollectionMintAccount() *ag_solanago.AccountMeta

GetCollectionMintAccount gets the "collectionMint" account.

func (*MintV2) GetCollectionUpdateAuthorityAccount

func (inst *MintV2) GetCollectionUpdateAuthorityAccount() *ag_solanago.AccountMeta

GetCollectionUpdateAuthorityAccount gets the "collectionUpdateAuthority" account.

func (*MintV2) GetMintAuthorityAccount

func (inst *MintV2) GetMintAuthorityAccount() *ag_solanago.AccountMeta

GetMintAuthorityAccount gets the "mintAuthority" account.

func (*MintV2) GetNftMasterEditionAccount

func (inst *MintV2) GetNftMasterEditionAccount() *ag_solanago.AccountMeta

GetNftMasterEditionAccount gets the "nftMasterEdition" account.

func (*MintV2) GetNftMetadataAccount

func (inst *MintV2) GetNftMetadataAccount() *ag_solanago.AccountMeta

GetNftMetadataAccount gets the "nftMetadata" account.

func (*MintV2) GetNftMintAccount

func (inst *MintV2) GetNftMintAccount() *ag_solanago.AccountMeta

GetNftMintAccount gets the "nftMint" account.

func (*MintV2) GetNftMintAuthorityAccount

func (inst *MintV2) GetNftMintAuthorityAccount() *ag_solanago.AccountMeta

GetNftMintAuthorityAccount gets the "nftMintAuthority" account.

func (*MintV2) GetNftOwnerAccount

func (inst *MintV2) GetNftOwnerAccount() *ag_solanago.AccountMeta

GetNftOwnerAccount gets the "nftOwner" account.

func (*MintV2) GetPayerAccount

func (inst *MintV2) GetPayerAccount() *ag_solanago.AccountMeta

GetPayerAccount gets the "payer" account.

func (*MintV2) GetRecentSlothashesAccount

func (inst *MintV2) GetRecentSlothashesAccount() *ag_solanago.AccountMeta

GetRecentSlothashesAccount gets the "recentSlothashes" account.

func (*MintV2) GetSplAtaProgramAccount

func (inst *MintV2) GetSplAtaProgramAccount() *ag_solanago.AccountMeta

GetSplAtaProgramAccount gets the "splAtaProgram" account.

func (*MintV2) GetSplTokenProgramAccount

func (inst *MintV2) GetSplTokenProgramAccount() *ag_solanago.AccountMeta

GetSplTokenProgramAccount gets the "splTokenProgram" account.

func (*MintV2) GetSystemProgramAccount

func (inst *MintV2) GetSystemProgramAccount() *ag_solanago.AccountMeta

GetSystemProgramAccount gets the "systemProgram" account.

func (*MintV2) GetSysvarInstructionsAccount

func (inst *MintV2) GetSysvarInstructionsAccount() *ag_solanago.AccountMeta

GetSysvarInstructionsAccount gets the "sysvarInstructions" account.

func (*MintV2) GetTokenAccount

func (inst *MintV2) GetTokenAccount() *ag_solanago.AccountMeta

GetTokenAccount gets the "token" account.

func (*MintV2) GetTokenMetadataProgramAccount

func (inst *MintV2) GetTokenMetadataProgramAccount() *ag_solanago.AccountMeta

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (*MintV2) GetTokenRecordAccount

func (inst *MintV2) GetTokenRecordAccount() *ag_solanago.AccountMeta

GetTokenRecordAccount gets the "tokenRecord" account.

func (MintV2) MarshalWithEncoder

func (obj MintV2) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*MintV2) SetAuthorityPdaAccount

func (inst *MintV2) SetAuthorityPdaAccount(authorityPda ag_solanago.PublicKey) *MintV2

SetAuthorityPdaAccount sets the "authorityPda" account.

func (*MintV2) SetAuthorizationRulesAccount

func (inst *MintV2) SetAuthorizationRulesAccount(authorizationRules ag_solanago.PublicKey) *MintV2

SetAuthorizationRulesAccount sets the "authorizationRules" account.

func (*MintV2) SetAuthorizationRulesProgramAccount

func (inst *MintV2) SetAuthorizationRulesProgramAccount(authorizationRulesProgram ag_solanago.PublicKey) *MintV2

SetAuthorizationRulesProgramAccount sets the "authorizationRulesProgram" account.

func (*MintV2) SetCandyMachineAccount

func (inst *MintV2) SetCandyMachineAccount(candyMachine ag_solanago.PublicKey) *MintV2

SetCandyMachineAccount sets the "candyMachine" account.

func (*MintV2) SetCollectionDelegateRecordAccount

func (inst *MintV2) SetCollectionDelegateRecordAccount(collectionDelegateRecord ag_solanago.PublicKey) *MintV2

SetCollectionDelegateRecordAccount sets the "collectionDelegateRecord" account.

func (*MintV2) SetCollectionMasterEditionAccount

func (inst *MintV2) SetCollectionMasterEditionAccount(collectionMasterEdition ag_solanago.PublicKey) *MintV2

SetCollectionMasterEditionAccount sets the "collectionMasterEdition" account.

func (*MintV2) SetCollectionMetadataAccount

func (inst *MintV2) SetCollectionMetadataAccount(collectionMetadata ag_solanago.PublicKey) *MintV2

SetCollectionMetadataAccount sets the "collectionMetadata" account.

func (*MintV2) SetCollectionMintAccount

func (inst *MintV2) SetCollectionMintAccount(collectionMint ag_solanago.PublicKey) *MintV2

SetCollectionMintAccount sets the "collectionMint" account.

func (*MintV2) SetCollectionUpdateAuthorityAccount

func (inst *MintV2) SetCollectionUpdateAuthorityAccount(collectionUpdateAuthority ag_solanago.PublicKey) *MintV2

SetCollectionUpdateAuthorityAccount sets the "collectionUpdateAuthority" account.

func (*MintV2) SetMintAuthorityAccount

func (inst *MintV2) SetMintAuthorityAccount(mintAuthority ag_solanago.PublicKey) *MintV2

SetMintAuthorityAccount sets the "mintAuthority" account.

func (*MintV2) SetNftMasterEditionAccount

func (inst *MintV2) SetNftMasterEditionAccount(nftMasterEdition ag_solanago.PublicKey) *MintV2

SetNftMasterEditionAccount sets the "nftMasterEdition" account.

func (*MintV2) SetNftMetadataAccount

func (inst *MintV2) SetNftMetadataAccount(nftMetadata ag_solanago.PublicKey) *MintV2

SetNftMetadataAccount sets the "nftMetadata" account.

func (*MintV2) SetNftMintAccount

func (inst *MintV2) SetNftMintAccount(nftMint ag_solanago.PublicKey) *MintV2

SetNftMintAccount sets the "nftMint" account.

func (*MintV2) SetNftMintAuthorityAccount

func (inst *MintV2) SetNftMintAuthorityAccount(nftMintAuthority ag_solanago.PublicKey) *MintV2

SetNftMintAuthorityAccount sets the "nftMintAuthority" account.

func (*MintV2) SetNftOwnerAccount

func (inst *MintV2) SetNftOwnerAccount(nftOwner ag_solanago.PublicKey) *MintV2

SetNftOwnerAccount sets the "nftOwner" account.

func (*MintV2) SetPayerAccount

func (inst *MintV2) SetPayerAccount(payer ag_solanago.PublicKey) *MintV2

SetPayerAccount sets the "payer" account.

func (*MintV2) SetRecentSlothashesAccount

func (inst *MintV2) SetRecentSlothashesAccount(recentSlothashes ag_solanago.PublicKey) *MintV2

SetRecentSlothashesAccount sets the "recentSlothashes" account.

func (*MintV2) SetSplAtaProgramAccount

func (inst *MintV2) SetSplAtaProgramAccount(splAtaProgram ag_solanago.PublicKey) *MintV2

SetSplAtaProgramAccount sets the "splAtaProgram" account.

func (*MintV2) SetSplTokenProgramAccount

func (inst *MintV2) SetSplTokenProgramAccount(splTokenProgram ag_solanago.PublicKey) *MintV2

SetSplTokenProgramAccount sets the "splTokenProgram" account.

func (*MintV2) SetSystemProgramAccount

func (inst *MintV2) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *MintV2

SetSystemProgramAccount sets the "systemProgram" account.

func (*MintV2) SetSysvarInstructionsAccount

func (inst *MintV2) SetSysvarInstructionsAccount(sysvarInstructions ag_solanago.PublicKey) *MintV2

SetSysvarInstructionsAccount sets the "sysvarInstructions" account.

func (*MintV2) SetTokenAccount

func (inst *MintV2) SetTokenAccount(token ag_solanago.PublicKey) *MintV2

SetTokenAccount sets the "token" account.

func (*MintV2) SetTokenMetadataProgramAccount

func (inst *MintV2) SetTokenMetadataProgramAccount(tokenMetadataProgram ag_solanago.PublicKey) *MintV2

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*MintV2) SetTokenRecordAccount

func (inst *MintV2) SetTokenRecordAccount(tokenRecord ag_solanago.PublicKey) *MintV2

SetTokenRecordAccount sets the "tokenRecord" account.

func (*MintV2) UnmarshalWithDecoder

func (obj *MintV2) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

func (*MintV2) Validate

func (inst *MintV2) Validate() error

func (MintV2) ValidateAndBuild

func (inst MintV2) ValidateAndBuild() (*Instruction, error)

ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.

type SetAuthority

type SetAuthority struct {
	NewAuthority *ag_solanago.PublicKey

	// [0] = [WRITE] candyMachine
	//
	// [1] = [SIGNER] authority
	ag_solanago.AccountMetaSlice `bin:"-"`
}

SetAuthority is the `setAuthority` instruction.

func NewSetAuthorityInstruction

func NewSetAuthorityInstruction(

	newAuthority ag_solanago.PublicKey,

	candyMachine ag_solanago.PublicKey,
	authority ag_solanago.PublicKey) *SetAuthority

NewSetAuthorityInstruction declares a new SetAuthority instruction with the provided parameters and accounts.

func NewSetAuthorityInstructionBuilder

func NewSetAuthorityInstructionBuilder() *SetAuthority

NewSetAuthorityInstructionBuilder creates a new `SetAuthority` instruction builder.

func (SetAuthority) Build

func (inst SetAuthority) Build() *Instruction

func (*SetAuthority) EncodeToTree

func (inst *SetAuthority) EncodeToTree(parent ag_treeout.Branches)

func (*SetAuthority) GetAuthorityAccount

func (inst *SetAuthority) GetAuthorityAccount() *ag_solanago.AccountMeta

GetAuthorityAccount gets the "authority" account.

func (*SetAuthority) GetCandyMachineAccount

func (inst *SetAuthority) GetCandyMachineAccount() *ag_solanago.AccountMeta

GetCandyMachineAccount gets the "candyMachine" account.

func (SetAuthority) MarshalWithEncoder

func (obj SetAuthority) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*SetAuthority) SetAuthorityAccount

func (inst *SetAuthority) SetAuthorityAccount(authority ag_solanago.PublicKey) *SetAuthority

SetAuthorityAccount sets the "authority" account.

func (*SetAuthority) SetCandyMachineAccount

func (inst *SetAuthority) SetCandyMachineAccount(candyMachine ag_solanago.PublicKey) *SetAuthority

SetCandyMachineAccount sets the "candyMachine" account.

func (*SetAuthority) SetNewAuthority

func (inst *SetAuthority) SetNewAuthority(newAuthority ag_solanago.PublicKey) *SetAuthority

SetNewAuthority sets the "newAuthority" parameter.

func (*SetAuthority) UnmarshalWithDecoder

func (obj *SetAuthority) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

func (*SetAuthority) Validate

func (inst *SetAuthority) Validate() error

func (SetAuthority) ValidateAndBuild

func (inst SetAuthority) ValidateAndBuild() (*Instruction, error)

ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.

type SetCollection

type SetCollection struct {

	// [0] = [WRITE] candyMachine
	//
	// [1] = [SIGNER] authority
	//
	// [2] = [WRITE] authorityPda
	//
	// [3] = [SIGNER] payer
	//
	// [4] = [] collectionMint
	//
	// [5] = [] collectionMetadata
	//
	// [6] = [WRITE] collectionAuthorityRecord
	//
	// [7] = [WRITE, SIGNER] newCollectionUpdateAuthority
	//
	// [8] = [] newCollectionMetadata
	//
	// [9] = [] newCollectionMint
	//
	// [10] = [] newCollectionMasterEdition
	//
	// [11] = [WRITE] newCollectionAuthorityRecord
	//
	// [12] = [] tokenMetadataProgram
	//
	// [13] = [] systemProgram
	ag_solanago.AccountMetaSlice `bin:"-"`
}

SetCollection is the `setCollection` instruction.

func NewSetCollectionInstruction

func NewSetCollectionInstruction(

	candyMachine ag_solanago.PublicKey,
	authority ag_solanago.PublicKey,
	authorityPda ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	collectionMint ag_solanago.PublicKey,
	collectionMetadata ag_solanago.PublicKey,
	collectionAuthorityRecord ag_solanago.PublicKey,
	newCollectionUpdateAuthority ag_solanago.PublicKey,
	newCollectionMetadata ag_solanago.PublicKey,
	newCollectionMint ag_solanago.PublicKey,
	newCollectionMasterEdition ag_solanago.PublicKey,
	newCollectionAuthorityRecord ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey) *SetCollection

NewSetCollectionInstruction declares a new SetCollection instruction with the provided parameters and accounts.

func NewSetCollectionInstructionBuilder

func NewSetCollectionInstructionBuilder() *SetCollection

NewSetCollectionInstructionBuilder creates a new `SetCollection` instruction builder.

func (SetCollection) Build

func (inst SetCollection) Build() *Instruction

func (*SetCollection) EncodeToTree

func (inst *SetCollection) EncodeToTree(parent ag_treeout.Branches)

func (*SetCollection) GetAuthorityAccount

func (inst *SetCollection) GetAuthorityAccount() *ag_solanago.AccountMeta

GetAuthorityAccount gets the "authority" account.

func (*SetCollection) GetAuthorityPdaAccount

func (inst *SetCollection) GetAuthorityPdaAccount() *ag_solanago.AccountMeta

GetAuthorityPdaAccount gets the "authorityPda" account.

func (*SetCollection) GetCandyMachineAccount

func (inst *SetCollection) GetCandyMachineAccount() *ag_solanago.AccountMeta

GetCandyMachineAccount gets the "candyMachine" account.

func (*SetCollection) GetCollectionAuthorityRecordAccount

func (inst *SetCollection) GetCollectionAuthorityRecordAccount() *ag_solanago.AccountMeta

GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" account.

func (*SetCollection) GetCollectionMetadataAccount

func (inst *SetCollection) GetCollectionMetadataAccount() *ag_solanago.AccountMeta

GetCollectionMetadataAccount gets the "collectionMetadata" account.

func (*SetCollection) GetCollectionMintAccount

func (inst *SetCollection) GetCollectionMintAccount() *ag_solanago.AccountMeta

GetCollectionMintAccount gets the "collectionMint" account.

func (*SetCollection) GetNewCollectionAuthorityRecordAccount

func (inst *SetCollection) GetNewCollectionAuthorityRecordAccount() *ag_solanago.AccountMeta

GetNewCollectionAuthorityRecordAccount gets the "newCollectionAuthorityRecord" account.

func (*SetCollection) GetNewCollectionMasterEditionAccount

func (inst *SetCollection) GetNewCollectionMasterEditionAccount() *ag_solanago.AccountMeta

GetNewCollectionMasterEditionAccount gets the "newCollectionMasterEdition" account.

func (*SetCollection) GetNewCollectionMetadataAccount

func (inst *SetCollection) GetNewCollectionMetadataAccount() *ag_solanago.AccountMeta

GetNewCollectionMetadataAccount gets the "newCollectionMetadata" account.

func (*SetCollection) GetNewCollectionMintAccount

func (inst *SetCollection) GetNewCollectionMintAccount() *ag_solanago.AccountMeta

GetNewCollectionMintAccount gets the "newCollectionMint" account.

func (*SetCollection) GetNewCollectionUpdateAuthorityAccount

func (inst *SetCollection) GetNewCollectionUpdateAuthorityAccount() *ag_solanago.AccountMeta

GetNewCollectionUpdateAuthorityAccount gets the "newCollectionUpdateAuthority" account.

func (*SetCollection) GetPayerAccount

func (inst *SetCollection) GetPayerAccount() *ag_solanago.AccountMeta

GetPayerAccount gets the "payer" account.

func (*SetCollection) GetSystemProgramAccount

func (inst *SetCollection) GetSystemProgramAccount() *ag_solanago.AccountMeta

GetSystemProgramAccount gets the "systemProgram" account.

func (*SetCollection) GetTokenMetadataProgramAccount

func (inst *SetCollection) GetTokenMetadataProgramAccount() *ag_solanago.AccountMeta

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (SetCollection) MarshalWithEncoder

func (obj SetCollection) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*SetCollection) SetAuthorityAccount

func (inst *SetCollection) SetAuthorityAccount(authority ag_solanago.PublicKey) *SetCollection

SetAuthorityAccount sets the "authority" account.

func (*SetCollection) SetAuthorityPdaAccount

func (inst *SetCollection) SetAuthorityPdaAccount(authorityPda ag_solanago.PublicKey) *SetCollection

SetAuthorityPdaAccount sets the "authorityPda" account.

func (*SetCollection) SetCandyMachineAccount

func (inst *SetCollection) SetCandyMachineAccount(candyMachine ag_solanago.PublicKey) *SetCollection

SetCandyMachineAccount sets the "candyMachine" account.

func (*SetCollection) SetCollectionAuthorityRecordAccount

func (inst *SetCollection) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord ag_solanago.PublicKey) *SetCollection

SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" account.

func (*SetCollection) SetCollectionMetadataAccount

func (inst *SetCollection) SetCollectionMetadataAccount(collectionMetadata ag_solanago.PublicKey) *SetCollection

SetCollectionMetadataAccount sets the "collectionMetadata" account.

func (*SetCollection) SetCollectionMintAccount

func (inst *SetCollection) SetCollectionMintAccount(collectionMint ag_solanago.PublicKey) *SetCollection

SetCollectionMintAccount sets the "collectionMint" account.

func (*SetCollection) SetNewCollectionAuthorityRecordAccount

func (inst *SetCollection) SetNewCollectionAuthorityRecordAccount(newCollectionAuthorityRecord ag_solanago.PublicKey) *SetCollection

SetNewCollectionAuthorityRecordAccount sets the "newCollectionAuthorityRecord" account.

func (*SetCollection) SetNewCollectionMasterEditionAccount

func (inst *SetCollection) SetNewCollectionMasterEditionAccount(newCollectionMasterEdition ag_solanago.PublicKey) *SetCollection

SetNewCollectionMasterEditionAccount sets the "newCollectionMasterEdition" account.

func (*SetCollection) SetNewCollectionMetadataAccount

func (inst *SetCollection) SetNewCollectionMetadataAccount(newCollectionMetadata ag_solanago.PublicKey) *SetCollection

SetNewCollectionMetadataAccount sets the "newCollectionMetadata" account.

func (*SetCollection) SetNewCollectionMintAccount

func (inst *SetCollection) SetNewCollectionMintAccount(newCollectionMint ag_solanago.PublicKey) *SetCollection

SetNewCollectionMintAccount sets the "newCollectionMint" account.

func (*SetCollection) SetNewCollectionUpdateAuthorityAccount

func (inst *SetCollection) SetNewCollectionUpdateAuthorityAccount(newCollectionUpdateAuthority ag_solanago.PublicKey) *SetCollection

SetNewCollectionUpdateAuthorityAccount sets the "newCollectionUpdateAuthority" account.

func (*SetCollection) SetPayerAccount

func (inst *SetCollection) SetPayerAccount(payer ag_solanago.PublicKey) *SetCollection

SetPayerAccount sets the "payer" account.

func (*SetCollection) SetSystemProgramAccount

func (inst *SetCollection) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *SetCollection

SetSystemProgramAccount sets the "systemProgram" account.

func (*SetCollection) SetTokenMetadataProgramAccount

func (inst *SetCollection) SetTokenMetadataProgramAccount(tokenMetadataProgram ag_solanago.PublicKey) *SetCollection

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*SetCollection) UnmarshalWithDecoder

func (obj *SetCollection) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

func (*SetCollection) Validate

func (inst *SetCollection) Validate() error

func (SetCollection) ValidateAndBuild

func (inst SetCollection) ValidateAndBuild() (*Instruction, error)

ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.

type SetCollectionV2

type SetCollectionV2 struct {

	// [0] = [WRITE] candyMachine
	//
	// [1] = [SIGNER] authority
	//
	// [2] = [WRITE] authorityPda
	//
	// [3] = [WRITE, SIGNER] payer
	//
	// [4] = [] collectionUpdateAuthority
	//
	// [5] = [] collectionMint
	//
	// [6] = [WRITE] collectionMetadata
	//
	// [7] = [WRITE] collectionDelegateRecord
	//
	// [8] = [SIGNER] newCollectionUpdateAuthority
	//
	// [9] = [] newCollectionMint
	//
	// [10] = [WRITE] newCollectionMetadata
	//
	// [11] = [] newCollectionMasterEdition
	//
	// [12] = [WRITE] newCollectionDelegateRecord
	//
	// [13] = [] tokenMetadataProgram
	//
	// [14] = [] systemProgram
	//
	// [15] = [] sysvarInstructions
	//
	// [16] = [] authorizationRulesProgram
	//
	// [17] = [] authorizationRules
	ag_solanago.AccountMetaSlice `bin:"-"`
}

SetCollectionV2 is the `setCollectionV2` instruction.

func NewSetCollectionV2Instruction

func NewSetCollectionV2Instruction(

	candyMachine ag_solanago.PublicKey,
	authority ag_solanago.PublicKey,
	authorityPda ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	collectionUpdateAuthority ag_solanago.PublicKey,
	collectionMint ag_solanago.PublicKey,
	collectionMetadata ag_solanago.PublicKey,
	collectionDelegateRecord ag_solanago.PublicKey,
	newCollectionUpdateAuthority ag_solanago.PublicKey,
	newCollectionMint ag_solanago.PublicKey,
	newCollectionMetadata ag_solanago.PublicKey,
	newCollectionMasterEdition ag_solanago.PublicKey,
	newCollectionDelegateRecord ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	sysvarInstructions ag_solanago.PublicKey,
	authorizationRulesProgram ag_solanago.PublicKey,
	authorizationRules ag_solanago.PublicKey) *SetCollectionV2

NewSetCollectionV2Instruction declares a new SetCollectionV2 instruction with the provided parameters and accounts.

func NewSetCollectionV2InstructionBuilder

func NewSetCollectionV2InstructionBuilder() *SetCollectionV2

NewSetCollectionV2InstructionBuilder creates a new `SetCollectionV2` instruction builder.

func (SetCollectionV2) Build

func (inst SetCollectionV2) Build() *Instruction

func (*SetCollectionV2) EncodeToTree

func (inst *SetCollectionV2) EncodeToTree(parent ag_treeout.Branches)

func (*SetCollectionV2) GetAuthorityAccount

func (inst *SetCollectionV2) GetAuthorityAccount() *ag_solanago.AccountMeta

GetAuthorityAccount gets the "authority" account.

func (*SetCollectionV2) GetAuthorityPdaAccount

func (inst *SetCollectionV2) GetAuthorityPdaAccount() *ag_solanago.AccountMeta

GetAuthorityPdaAccount gets the "authorityPda" account.

func (*SetCollectionV2) GetAuthorizationRulesAccount

func (inst *SetCollectionV2) GetAuthorizationRulesAccount() *ag_solanago.AccountMeta

GetAuthorizationRulesAccount gets the "authorizationRules" account.

func (*SetCollectionV2) GetAuthorizationRulesProgramAccount

func (inst *SetCollectionV2) GetAuthorizationRulesProgramAccount() *ag_solanago.AccountMeta

GetAuthorizationRulesProgramAccount gets the "authorizationRulesProgram" account.

func (*SetCollectionV2) GetCandyMachineAccount

func (inst *SetCollectionV2) GetCandyMachineAccount() *ag_solanago.AccountMeta

GetCandyMachineAccount gets the "candyMachine" account.

func (*SetCollectionV2) GetCollectionDelegateRecordAccount

func (inst *SetCollectionV2) GetCollectionDelegateRecordAccount() *ag_solanago.AccountMeta

GetCollectionDelegateRecordAccount gets the "collectionDelegateRecord" account.

func (*SetCollectionV2) GetCollectionMetadataAccount

func (inst *SetCollectionV2) GetCollectionMetadataAccount() *ag_solanago.AccountMeta

GetCollectionMetadataAccount gets the "collectionMetadata" account.

func (*SetCollectionV2) GetCollectionMintAccount

func (inst *SetCollectionV2) GetCollectionMintAccount() *ag_solanago.AccountMeta

GetCollectionMintAccount gets the "collectionMint" account.

func (*SetCollectionV2) GetCollectionUpdateAuthorityAccount

func (inst *SetCollectionV2) GetCollectionUpdateAuthorityAccount() *ag_solanago.AccountMeta

GetCollectionUpdateAuthorityAccount gets the "collectionUpdateAuthority" account.

func (*SetCollectionV2) GetNewCollectionDelegateRecordAccount

func (inst *SetCollectionV2) GetNewCollectionDelegateRecordAccount() *ag_solanago.AccountMeta

GetNewCollectionDelegateRecordAccount gets the "newCollectionDelegateRecord" account.

func (*SetCollectionV2) GetNewCollectionMasterEditionAccount

func (inst *SetCollectionV2) GetNewCollectionMasterEditionAccount() *ag_solanago.AccountMeta

GetNewCollectionMasterEditionAccount gets the "newCollectionMasterEdition" account.

func (*SetCollectionV2) GetNewCollectionMetadataAccount

func (inst *SetCollectionV2) GetNewCollectionMetadataAccount() *ag_solanago.AccountMeta

GetNewCollectionMetadataAccount gets the "newCollectionMetadata" account.

func (*SetCollectionV2) GetNewCollectionMintAccount

func (inst *SetCollectionV2) GetNewCollectionMintAccount() *ag_solanago.AccountMeta

GetNewCollectionMintAccount gets the "newCollectionMint" account.

func (*SetCollectionV2) GetNewCollectionUpdateAuthorityAccount

func (inst *SetCollectionV2) GetNewCollectionUpdateAuthorityAccount() *ag_solanago.AccountMeta

GetNewCollectionUpdateAuthorityAccount gets the "newCollectionUpdateAuthority" account.

func (*SetCollectionV2) GetPayerAccount

func (inst *SetCollectionV2) GetPayerAccount() *ag_solanago.AccountMeta

GetPayerAccount gets the "payer" account.

func (*SetCollectionV2) GetSystemProgramAccount

func (inst *SetCollectionV2) GetSystemProgramAccount() *ag_solanago.AccountMeta

GetSystemProgramAccount gets the "systemProgram" account.

func (*SetCollectionV2) GetSysvarInstructionsAccount

func (inst *SetCollectionV2) GetSysvarInstructionsAccount() *ag_solanago.AccountMeta

GetSysvarInstructionsAccount gets the "sysvarInstructions" account.

func (*SetCollectionV2) GetTokenMetadataProgramAccount

func (inst *SetCollectionV2) GetTokenMetadataProgramAccount() *ag_solanago.AccountMeta

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (SetCollectionV2) MarshalWithEncoder

func (obj SetCollectionV2) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*SetCollectionV2) SetAuthorityAccount

func (inst *SetCollectionV2) SetAuthorityAccount(authority ag_solanago.PublicKey) *SetCollectionV2

SetAuthorityAccount sets the "authority" account.

func (*SetCollectionV2) SetAuthorityPdaAccount

func (inst *SetCollectionV2) SetAuthorityPdaAccount(authorityPda ag_solanago.PublicKey) *SetCollectionV2

SetAuthorityPdaAccount sets the "authorityPda" account.

func (*SetCollectionV2) SetAuthorizationRulesAccount

func (inst *SetCollectionV2) SetAuthorizationRulesAccount(authorizationRules ag_solanago.PublicKey) *SetCollectionV2

SetAuthorizationRulesAccount sets the "authorizationRules" account.

func (*SetCollectionV2) SetAuthorizationRulesProgramAccount

func (inst *SetCollectionV2) SetAuthorizationRulesProgramAccount(authorizationRulesProgram ag_solanago.PublicKey) *SetCollectionV2

SetAuthorizationRulesProgramAccount sets the "authorizationRulesProgram" account.

func (*SetCollectionV2) SetCandyMachineAccount

func (inst *SetCollectionV2) SetCandyMachineAccount(candyMachine ag_solanago.PublicKey) *SetCollectionV2

SetCandyMachineAccount sets the "candyMachine" account.

func (*SetCollectionV2) SetCollectionDelegateRecordAccount

func (inst *SetCollectionV2) SetCollectionDelegateRecordAccount(collectionDelegateRecord ag_solanago.PublicKey) *SetCollectionV2

SetCollectionDelegateRecordAccount sets the "collectionDelegateRecord" account.

func (*SetCollectionV2) SetCollectionMetadataAccount

func (inst *SetCollectionV2) SetCollectionMetadataAccount(collectionMetadata ag_solanago.PublicKey) *SetCollectionV2

SetCollectionMetadataAccount sets the "collectionMetadata" account.

func (*SetCollectionV2) SetCollectionMintAccount

func (inst *SetCollectionV2) SetCollectionMintAccount(collectionMint ag_solanago.PublicKey) *SetCollectionV2

SetCollectionMintAccount sets the "collectionMint" account.

func (*SetCollectionV2) SetCollectionUpdateAuthorityAccount

func (inst *SetCollectionV2) SetCollectionUpdateAuthorityAccount(collectionUpdateAuthority ag_solanago.PublicKey) *SetCollectionV2

SetCollectionUpdateAuthorityAccount sets the "collectionUpdateAuthority" account.

func (*SetCollectionV2) SetNewCollectionDelegateRecordAccount

func (inst *SetCollectionV2) SetNewCollectionDelegateRecordAccount(newCollectionDelegateRecord ag_solanago.PublicKey) *SetCollectionV2

SetNewCollectionDelegateRecordAccount sets the "newCollectionDelegateRecord" account.

func (*SetCollectionV2) SetNewCollectionMasterEditionAccount

func (inst *SetCollectionV2) SetNewCollectionMasterEditionAccount(newCollectionMasterEdition ag_solanago.PublicKey) *SetCollectionV2

SetNewCollectionMasterEditionAccount sets the "newCollectionMasterEdition" account.

func (*SetCollectionV2) SetNewCollectionMetadataAccount

func (inst *SetCollectionV2) SetNewCollectionMetadataAccount(newCollectionMetadata ag_solanago.PublicKey) *SetCollectionV2

SetNewCollectionMetadataAccount sets the "newCollectionMetadata" account.

func (*SetCollectionV2) SetNewCollectionMintAccount

func (inst *SetCollectionV2) SetNewCollectionMintAccount(newCollectionMint ag_solanago.PublicKey) *SetCollectionV2

SetNewCollectionMintAccount sets the "newCollectionMint" account.

func (*SetCollectionV2) SetNewCollectionUpdateAuthorityAccount

func (inst *SetCollectionV2) SetNewCollectionUpdateAuthorityAccount(newCollectionUpdateAuthority ag_solanago.PublicKey) *SetCollectionV2

SetNewCollectionUpdateAuthorityAccount sets the "newCollectionUpdateAuthority" account.

func (*SetCollectionV2) SetPayerAccount

func (inst *SetCollectionV2) SetPayerAccount(payer ag_solanago.PublicKey) *SetCollectionV2

SetPayerAccount sets the "payer" account.

func (*SetCollectionV2) SetSystemProgramAccount

func (inst *SetCollectionV2) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *SetCollectionV2

SetSystemProgramAccount sets the "systemProgram" account.

func (*SetCollectionV2) SetSysvarInstructionsAccount

func (inst *SetCollectionV2) SetSysvarInstructionsAccount(sysvarInstructions ag_solanago.PublicKey) *SetCollectionV2

SetSysvarInstructionsAccount sets the "sysvarInstructions" account.

func (*SetCollectionV2) SetTokenMetadataProgramAccount

func (inst *SetCollectionV2) SetTokenMetadataProgramAccount(tokenMetadataProgram ag_solanago.PublicKey) *SetCollectionV2

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*SetCollectionV2) UnmarshalWithDecoder

func (obj *SetCollectionV2) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

func (*SetCollectionV2) Validate

func (inst *SetCollectionV2) Validate() error

func (SetCollectionV2) ValidateAndBuild

func (inst SetCollectionV2) ValidateAndBuild() (*Instruction, error)

ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.

type SetMintAuthority

type SetMintAuthority struct {

	// [0] = [WRITE] candyMachine
	//
	// [1] = [SIGNER] authority
	//
	// [2] = [SIGNER] mintAuthority
	ag_solanago.AccountMetaSlice `bin:"-"`
}

SetMintAuthority is the `setMintAuthority` instruction.

func NewSetMintAuthorityInstruction

func NewSetMintAuthorityInstruction(

	candyMachine ag_solanago.PublicKey,
	authority ag_solanago.PublicKey,
	mintAuthority ag_solanago.PublicKey) *SetMintAuthority

NewSetMintAuthorityInstruction declares a new SetMintAuthority instruction with the provided parameters and accounts.

func NewSetMintAuthorityInstructionBuilder

func NewSetMintAuthorityInstructionBuilder() *SetMintAuthority

NewSetMintAuthorityInstructionBuilder creates a new `SetMintAuthority` instruction builder.

func (SetMintAuthority) Build

func (inst SetMintAuthority) Build() *Instruction

func (*SetMintAuthority) EncodeToTree

func (inst *SetMintAuthority) EncodeToTree(parent ag_treeout.Branches)

func (*SetMintAuthority) GetAuthorityAccount

func (inst *SetMintAuthority) GetAuthorityAccount() *ag_solanago.AccountMeta

GetAuthorityAccount gets the "authority" account.

func (*SetMintAuthority) GetCandyMachineAccount

func (inst *SetMintAuthority) GetCandyMachineAccount() *ag_solanago.AccountMeta

GetCandyMachineAccount gets the "candyMachine" account.

func (*SetMintAuthority) GetMintAuthorityAccount

func (inst *SetMintAuthority) GetMintAuthorityAccount() *ag_solanago.AccountMeta

GetMintAuthorityAccount gets the "mintAuthority" account.

func (SetMintAuthority) MarshalWithEncoder

func (obj SetMintAuthority) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*SetMintAuthority) SetAuthorityAccount

func (inst *SetMintAuthority) SetAuthorityAccount(authority ag_solanago.PublicKey) *SetMintAuthority

SetAuthorityAccount sets the "authority" account.

func (*SetMintAuthority) SetCandyMachineAccount

func (inst *SetMintAuthority) SetCandyMachineAccount(candyMachine ag_solanago.PublicKey) *SetMintAuthority

SetCandyMachineAccount sets the "candyMachine" account.

func (*SetMintAuthority) SetMintAuthorityAccount

func (inst *SetMintAuthority) SetMintAuthorityAccount(mintAuthority ag_solanago.PublicKey) *SetMintAuthority

SetMintAuthorityAccount sets the "mintAuthority" account.

func (*SetMintAuthority) UnmarshalWithDecoder

func (obj *SetMintAuthority) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

func (*SetMintAuthority) Validate

func (inst *SetMintAuthority) Validate() error

func (SetMintAuthority) ValidateAndBuild

func (inst SetMintAuthority) ValidateAndBuild() (*Instruction, error)

ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.

type SetTokenStandard

type SetTokenStandard struct {
	TokenStandard *uint8

	// [0] = [WRITE] candyMachine
	//
	// [1] = [SIGNER] authority
	//
	// [2] = [WRITE] authorityPda
	//
	// [3] = [WRITE, SIGNER] payer
	//
	// [4] = [] ruleSet
	//
	// [5] = [WRITE] collectionDelegateRecord
	//
	// [6] = [] collectionMint
	//
	// [7] = [WRITE] collectionMetadata
	//
	// [8] = [WRITE] collectionAuthorityRecord
	//
	// [9] = [SIGNER] collectionUpdateAuthority
	//
	// [10] = [] tokenMetadataProgram
	//
	// [11] = [] systemProgram
	//
	// [12] = [] sysvarInstructions
	//
	// [13] = [] authorizationRulesProgram
	//
	// [14] = [] authorizationRules
	ag_solanago.AccountMetaSlice `bin:"-"`
}

SetTokenStandard is the `setTokenStandard` instruction.

func NewSetTokenStandardInstruction

func NewSetTokenStandardInstruction(

	tokenStandard uint8,

	candyMachine ag_solanago.PublicKey,
	authority ag_solanago.PublicKey,
	authorityPda ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	ruleSet ag_solanago.PublicKey,
	collectionDelegateRecord ag_solanago.PublicKey,
	collectionMint ag_solanago.PublicKey,
	collectionMetadata ag_solanago.PublicKey,
	collectionAuthorityRecord ag_solanago.PublicKey,
	collectionUpdateAuthority ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	sysvarInstructions ag_solanago.PublicKey,
	authorizationRulesProgram ag_solanago.PublicKey,
	authorizationRules ag_solanago.PublicKey) *SetTokenStandard

NewSetTokenStandardInstruction declares a new SetTokenStandard instruction with the provided parameters and accounts.

func NewSetTokenStandardInstructionBuilder

func NewSetTokenStandardInstructionBuilder() *SetTokenStandard

NewSetTokenStandardInstructionBuilder creates a new `SetTokenStandard` instruction builder.

func (SetTokenStandard) Build

func (inst SetTokenStandard) Build() *Instruction

func (*SetTokenStandard) EncodeToTree

func (inst *SetTokenStandard) EncodeToTree(parent ag_treeout.Branches)

func (*SetTokenStandard) GetAuthorityAccount

func (inst *SetTokenStandard) GetAuthorityAccount() *ag_solanago.AccountMeta

GetAuthorityAccount gets the "authority" account.

func (*SetTokenStandard) GetAuthorityPdaAccount

func (inst *SetTokenStandard) GetAuthorityPdaAccount() *ag_solanago.AccountMeta

GetAuthorityPdaAccount gets the "authorityPda" account.

func (*SetTokenStandard) GetAuthorizationRulesAccount

func (inst *SetTokenStandard) GetAuthorizationRulesAccount() *ag_solanago.AccountMeta

GetAuthorizationRulesAccount gets the "authorizationRules" account.

func (*SetTokenStandard) GetAuthorizationRulesProgramAccount

func (inst *SetTokenStandard) GetAuthorizationRulesProgramAccount() *ag_solanago.AccountMeta

GetAuthorizationRulesProgramAccount gets the "authorizationRulesProgram" account.

func (*SetTokenStandard) GetCandyMachineAccount

func (inst *SetTokenStandard) GetCandyMachineAccount() *ag_solanago.AccountMeta

GetCandyMachineAccount gets the "candyMachine" account.

func (*SetTokenStandard) GetCollectionAuthorityRecordAccount

func (inst *SetTokenStandard) GetCollectionAuthorityRecordAccount() *ag_solanago.AccountMeta

GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" account.

func (*SetTokenStandard) GetCollectionDelegateRecordAccount

func (inst *SetTokenStandard) GetCollectionDelegateRecordAccount() *ag_solanago.AccountMeta

GetCollectionDelegateRecordAccount gets the "collectionDelegateRecord" account.

func (*SetTokenStandard) GetCollectionMetadataAccount

func (inst *SetTokenStandard) GetCollectionMetadataAccount() *ag_solanago.AccountMeta

GetCollectionMetadataAccount gets the "collectionMetadata" account.

func (*SetTokenStandard) GetCollectionMintAccount

func (inst *SetTokenStandard) GetCollectionMintAccount() *ag_solanago.AccountMeta

GetCollectionMintAccount gets the "collectionMint" account.

func (*SetTokenStandard) GetCollectionUpdateAuthorityAccount

func (inst *SetTokenStandard) GetCollectionUpdateAuthorityAccount() *ag_solanago.AccountMeta

GetCollectionUpdateAuthorityAccount gets the "collectionUpdateAuthority" account.

func (*SetTokenStandard) GetPayerAccount

func (inst *SetTokenStandard) GetPayerAccount() *ag_solanago.AccountMeta

GetPayerAccount gets the "payer" account.

func (*SetTokenStandard) GetRuleSetAccount

func (inst *SetTokenStandard) GetRuleSetAccount() *ag_solanago.AccountMeta

GetRuleSetAccount gets the "ruleSet" account.

func (*SetTokenStandard) GetSystemProgramAccount

func (inst *SetTokenStandard) GetSystemProgramAccount() *ag_solanago.AccountMeta

GetSystemProgramAccount gets the "systemProgram" account.

func (*SetTokenStandard) GetSysvarInstructionsAccount

func (inst *SetTokenStandard) GetSysvarInstructionsAccount() *ag_solanago.AccountMeta

GetSysvarInstructionsAccount gets the "sysvarInstructions" account.

func (*SetTokenStandard) GetTokenMetadataProgramAccount

func (inst *SetTokenStandard) GetTokenMetadataProgramAccount() *ag_solanago.AccountMeta

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (SetTokenStandard) MarshalWithEncoder

func (obj SetTokenStandard) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*SetTokenStandard) SetAuthorityAccount

func (inst *SetTokenStandard) SetAuthorityAccount(authority ag_solanago.PublicKey) *SetTokenStandard

SetAuthorityAccount sets the "authority" account.

func (*SetTokenStandard) SetAuthorityPdaAccount

func (inst *SetTokenStandard) SetAuthorityPdaAccount(authorityPda ag_solanago.PublicKey) *SetTokenStandard

SetAuthorityPdaAccount sets the "authorityPda" account.

func (*SetTokenStandard) SetAuthorizationRulesAccount

func (inst *SetTokenStandard) SetAuthorizationRulesAccount(authorizationRules ag_solanago.PublicKey) *SetTokenStandard

SetAuthorizationRulesAccount sets the "authorizationRules" account.

func (*SetTokenStandard) SetAuthorizationRulesProgramAccount

func (inst *SetTokenStandard) SetAuthorizationRulesProgramAccount(authorizationRulesProgram ag_solanago.PublicKey) *SetTokenStandard

SetAuthorizationRulesProgramAccount sets the "authorizationRulesProgram" account.

func (*SetTokenStandard) SetCandyMachineAccount

func (inst *SetTokenStandard) SetCandyMachineAccount(candyMachine ag_solanago.PublicKey) *SetTokenStandard

SetCandyMachineAccount sets the "candyMachine" account.

func (*SetTokenStandard) SetCollectionAuthorityRecordAccount

func (inst *SetTokenStandard) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord ag_solanago.PublicKey) *SetTokenStandard

SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" account.

func (*SetTokenStandard) SetCollectionDelegateRecordAccount

func (inst *SetTokenStandard) SetCollectionDelegateRecordAccount(collectionDelegateRecord ag_solanago.PublicKey) *SetTokenStandard

SetCollectionDelegateRecordAccount sets the "collectionDelegateRecord" account.

func (*SetTokenStandard) SetCollectionMetadataAccount

func (inst *SetTokenStandard) SetCollectionMetadataAccount(collectionMetadata ag_solanago.PublicKey) *SetTokenStandard

SetCollectionMetadataAccount sets the "collectionMetadata" account.

func (*SetTokenStandard) SetCollectionMintAccount

func (inst *SetTokenStandard) SetCollectionMintAccount(collectionMint ag_solanago.PublicKey) *SetTokenStandard

SetCollectionMintAccount sets the "collectionMint" account.

func (*SetTokenStandard) SetCollectionUpdateAuthorityAccount

func (inst *SetTokenStandard) SetCollectionUpdateAuthorityAccount(collectionUpdateAuthority ag_solanago.PublicKey) *SetTokenStandard

SetCollectionUpdateAuthorityAccount sets the "collectionUpdateAuthority" account.

func (*SetTokenStandard) SetPayerAccount

func (inst *SetTokenStandard) SetPayerAccount(payer ag_solanago.PublicKey) *SetTokenStandard

SetPayerAccount sets the "payer" account.

func (*SetTokenStandard) SetRuleSetAccount

func (inst *SetTokenStandard) SetRuleSetAccount(ruleSet ag_solanago.PublicKey) *SetTokenStandard

SetRuleSetAccount sets the "ruleSet" account.

func (*SetTokenStandard) SetSystemProgramAccount

func (inst *SetTokenStandard) SetSystemProgramAccount(systemProgram ag_solanago.PublicKey) *SetTokenStandard

SetSystemProgramAccount sets the "systemProgram" account.

func (*SetTokenStandard) SetSysvarInstructionsAccount

func (inst *SetTokenStandard) SetSysvarInstructionsAccount(sysvarInstructions ag_solanago.PublicKey) *SetTokenStandard

SetSysvarInstructionsAccount sets the "sysvarInstructions" account.

func (*SetTokenStandard) SetTokenMetadataProgramAccount

func (inst *SetTokenStandard) SetTokenMetadataProgramAccount(tokenMetadataProgram ag_solanago.PublicKey) *SetTokenStandard

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*SetTokenStandard) SetTokenStandard

func (inst *SetTokenStandard) SetTokenStandard(tokenStandard uint8) *SetTokenStandard

SetTokenStandard sets the "tokenStandard" parameter.

func (*SetTokenStandard) UnmarshalWithDecoder

func (obj *SetTokenStandard) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

func (*SetTokenStandard) Validate

func (inst *SetTokenStandard) Validate() error

func (SetTokenStandard) ValidateAndBuild

func (inst SetTokenStandard) ValidateAndBuild() (*Instruction, error)

ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.

type Update

type Update struct {
	Data *CandyMachineData

	// [0] = [WRITE] candyMachine
	//
	// [1] = [SIGNER] authority
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Update is the `update` instruction.

func NewUpdateInstruction

func NewUpdateInstruction(

	data CandyMachineData,

	candyMachine ag_solanago.PublicKey,
	authority ag_solanago.PublicKey) *Update

NewUpdateInstruction declares a new Update instruction with the provided parameters and accounts.

func NewUpdateInstructionBuilder

func NewUpdateInstructionBuilder() *Update

NewUpdateInstructionBuilder creates a new `Update` instruction builder.

func (Update) Build

func (inst Update) Build() *Instruction

func (*Update) EncodeToTree

func (inst *Update) EncodeToTree(parent ag_treeout.Branches)

func (*Update) GetAuthorityAccount

func (inst *Update) GetAuthorityAccount() *ag_solanago.AccountMeta

GetAuthorityAccount gets the "authority" account.

func (*Update) GetCandyMachineAccount

func (inst *Update) GetCandyMachineAccount() *ag_solanago.AccountMeta

GetCandyMachineAccount gets the "candyMachine" account.

func (Update) MarshalWithEncoder

func (obj Update) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*Update) SetAuthorityAccount

func (inst *Update) SetAuthorityAccount(authority ag_solanago.PublicKey) *Update

SetAuthorityAccount sets the "authority" account.

func (*Update) SetCandyMachineAccount

func (inst *Update) SetCandyMachineAccount(candyMachine ag_solanago.PublicKey) *Update

SetCandyMachineAccount sets the "candyMachine" account.

func (*Update) SetData

func (inst *Update) SetData(data CandyMachineData) *Update

SetData sets the "data" parameter.

func (*Update) UnmarshalWithDecoder

func (obj *Update) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

func (*Update) Validate

func (inst *Update) Validate() error

func (Update) ValidateAndBuild

func (inst Update) ValidateAndBuild() (*Instruction, error)

ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.

type Withdraw

type Withdraw struct {

	// [0] = [WRITE] candyMachine
	//
	// [1] = [WRITE, SIGNER] authority
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Withdraw is the `withdraw` instruction.

func NewWithdrawInstruction

func NewWithdrawInstruction(

	candyMachine ag_solanago.PublicKey,
	authority ag_solanago.PublicKey) *Withdraw

NewWithdrawInstruction declares a new Withdraw instruction with the provided parameters and accounts.

func NewWithdrawInstructionBuilder

func NewWithdrawInstructionBuilder() *Withdraw

NewWithdrawInstructionBuilder creates a new `Withdraw` instruction builder.

func (Withdraw) Build

func (inst Withdraw) Build() *Instruction

func (*Withdraw) EncodeToTree

func (inst *Withdraw) EncodeToTree(parent ag_treeout.Branches)

func (*Withdraw) GetAuthorityAccount

func (inst *Withdraw) GetAuthorityAccount() *ag_solanago.AccountMeta

GetAuthorityAccount gets the "authority" account.

func (*Withdraw) GetCandyMachineAccount

func (inst *Withdraw) GetCandyMachineAccount() *ag_solanago.AccountMeta

GetCandyMachineAccount gets the "candyMachine" account.

func (Withdraw) MarshalWithEncoder

func (obj Withdraw) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error)

func (*Withdraw) SetAuthorityAccount

func (inst *Withdraw) SetAuthorityAccount(authority ag_solanago.PublicKey) *Withdraw

SetAuthorityAccount sets the "authority" account.

func (*Withdraw) SetCandyMachineAccount

func (inst *Withdraw) SetCandyMachineAccount(candyMachine ag_solanago.PublicKey) *Withdraw

SetCandyMachineAccount sets the "candyMachine" account.

func (*Withdraw) UnmarshalWithDecoder

func (obj *Withdraw) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error)

func (*Withdraw) Validate

func (inst *Withdraw) Validate() error

func (Withdraw) ValidateAndBuild

func (inst Withdraw) ValidateAndBuild() (*Instruction, error)

ValidateAndBuild validates the instruction parameters and accounts; if there is a validation error, it returns the error. Otherwise, it builds and returns the instruction.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL