nft_candy_machine

package
v0.8.20 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ProgramName = "NftCandyMachine"

Variables

View Source
var (
	Instruction_MintEmbed = ag_binary.TypeID([8]byte{133, 221, 27, 96, 4, 65, 206, 186})

	Instruction_MintV5 = ag_binary.TypeID([8]byte{96, 114, 250, 235, 203, 205, 188, 36})

	Instruction_MintV4 = ag_binary.TypeID([8]byte{79, 71, 207, 32, 178, 102, 21, 19})

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

	Instruction_EditCmV3 = ag_binary.TypeID([8]byte{85, 87, 21, 33, 241, 184, 109, 132})

	Instruction_EditCmV2 = ag_binary.TypeID([8]byte{12, 115, 248, 70, 118, 97, 136, 163})

	Instruction_EditCmV4 = ag_binary.TypeID([8]byte{113, 108, 161, 132, 26, 55, 205, 242})

	Instruction_EditCmV5 = ag_binary.TypeID([8]byte{43, 25, 89, 26, 165, 209, 229, 92})

	Instruction_RevealV5 = ag_binary.TypeID([8]byte{57, 46, 3, 81, 70, 219, 168, 49})

	Instruction_Reveal = ag_binary.TypeID([8]byte{9, 35, 59, 190, 167, 249, 76, 115})

	Instruction_AllowUnfreeze = ag_binary.TypeID([8]byte{8, 32, 46, 11, 209, 211, 248, 81})

	Instruction_AllowReveal = ag_binary.TypeID([8]byte{215, 62, 72, 171, 41, 172, 244, 151})

	Instruction_AllowUnfreezeV5 = ag_binary.TypeID([8]byte{156, 1, 166, 135, 249, 139, 95, 54})

	Instruction_AllowRevealV5 = ag_binary.TypeID([8]byte{13, 155, 159, 197, 5, 211, 116, 91})

	Instruction_BurnSupplyV5 = ag_binary.TypeID([8]byte{107, 75, 172, 207, 53, 177, 22, 255})

	Instruction_BurnSupplyV3 = ag_binary.TypeID([8]byte{99, 9, 108, 6, 55, 0, 161, 118})

	Instruction_BurnFrozen = ag_binary.TypeID([8]byte{115, 215, 82, 186, 58, 93, 69, 24})

	Instruction_Thaw = ag_binary.TypeID([8]byte{226, 249, 34, 57, 189, 21, 177, 101})

	Instruction_ThawV5 = ag_binary.TypeID([8]byte{181, 47, 178, 189, 46, 187, 145, 248})

	Instruction_InitCmV5 = ag_binary.TypeID([8]byte{179, 164, 16, 182, 42, 27, 249, 75})

	Instruction_InitCmV4 = ag_binary.TypeID([8]byte{109, 204, 198, 181, 178, 68, 11, 239})
)
View Source
var CandyMachineDiscriminator = [8]byte{51, 173, 177, 113, 25, 241, 109, 189}
View Source
var CandyMachineV2Discriminator = [8]byte{50, 243, 71, 181, 164, 239, 110, 131}
View Source
var CandyMachineV3Discriminator = [8]byte{221, 21, 200, 78, 142, 15, 223, 6}
View Source
var CandyMachineV4Discriminator = [8]byte{247, 230, 179, 162, 114, 0, 193, 179}
View Source
var CandyMachineV5Discriminator = [8]byte{193, 154, 145, 64, 82, 69, 127, 140}
View Source
var InstructionImplDef = ag_binary.NewVariantDefinition(
	ag_binary.AnchorTypeIDEncoding,
	[]ag_binary.VariantType{
		{
			"mint_embed", (*MintEmbed)(nil),
		},
		{
			"mint_v5", (*MintV5)(nil),
		},
		{
			"mint_v4", (*MintV4)(nil),
		},
		{
			"mint_v2", (*MintV2)(nil),
		},
		{
			"edit_cm_v3", (*EditCmV3)(nil),
		},
		{
			"edit_cm_v2", (*EditCmV2)(nil),
		},
		{
			"edit_cm_v4", (*EditCmV4)(nil),
		},
		{
			"edit_cm_v5", (*EditCmV5)(nil),
		},
		{
			"reveal_v5", (*RevealV5)(nil),
		},
		{
			"reveal", (*Reveal)(nil),
		},
		{
			"allow_unfreeze", (*AllowUnfreeze)(nil),
		},
		{
			"allow_reveal", (*AllowReveal)(nil),
		},
		{
			"allow_unfreeze_v5", (*AllowUnfreezeV5)(nil),
		},
		{
			"allow_reveal_v5", (*AllowRevealV5)(nil),
		},
		{
			"burn_supply_v5", (*BurnSupplyV5)(nil),
		},
		{
			"burn_supply_v3", (*BurnSupplyV3)(nil),
		},
		{
			"burn_frozen", (*BurnFrozen)(nil),
		},
		{
			"thaw", (*Thaw)(nil),
		},
		{
			"thaw_v5", (*ThawV5)(nil),
		},
		{
			"init_cm_v5", (*InitCmV5)(nil),
		},
		{
			"init_cm_v4", (*InitCmV4)(nil),
		},
	},
)
View Source
var TotalMintsDiscriminator = [8]byte{5, 252, 73, 108, 50, 30, 212, 224}
View Source
var WhitelistDiscriminator = [8]byte{204, 176, 52, 79, 146, 121, 54, 247}

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 AllowReveal

type AllowReveal struct {
	NewUri *string

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

AllowReveal is the `allowReveal` instruction.

func NewAllowRevealInstruction

func NewAllowRevealInstruction(

	newUri string,

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

NewAllowRevealInstruction declares a new AllowReveal instruction with the provided parameters and accounts.

func NewAllowRevealInstructionBuilder

func NewAllowRevealInstructionBuilder() *AllowReveal

NewAllowRevealInstructionBuilder creates a new `AllowReveal` instruction builder.

func (AllowReveal) Build

func (inst AllowReveal) Build() *Instruction

func (*AllowReveal) EncodeToTree

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

func (*AllowReveal) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*AllowReveal) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (AllowReveal) MarshalWithEncoder

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

func (*AllowReveal) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*AllowReveal) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*AllowReveal) SetNewUri

func (inst *AllowReveal) SetNewUri(newUri string) *AllowReveal

SetNewUri sets the "newUri" parameter.

func (*AllowReveal) UnmarshalWithDecoder

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

func (*AllowReveal) Validate

func (inst *AllowReveal) Validate() error

func (AllowReveal) ValidateAndBuild

func (inst AllowReveal) 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 AllowRevealV5

type AllowRevealV5 struct {
	NewUri *string

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

AllowRevealV5 is the `allowRevealV5` instruction.

func NewAllowRevealV5Instruction

func NewAllowRevealV5Instruction(

	newUri string,

	authority ag_solanago.PublicKey,
	candyMachine ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey) *AllowRevealV5

NewAllowRevealV5Instruction declares a new AllowRevealV5 instruction with the provided parameters and accounts.

func NewAllowRevealV5InstructionBuilder

func NewAllowRevealV5InstructionBuilder() *AllowRevealV5

NewAllowRevealV5InstructionBuilder creates a new `AllowRevealV5` instruction builder.

func (AllowRevealV5) Build

func (inst AllowRevealV5) Build() *Instruction

func (*AllowRevealV5) EncodeToTree

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

func (*AllowRevealV5) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*AllowRevealV5) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*AllowRevealV5) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (AllowRevealV5) MarshalWithEncoder

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

func (*AllowRevealV5) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*AllowRevealV5) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*AllowRevealV5) SetNewUri

func (inst *AllowRevealV5) SetNewUri(newUri string) *AllowRevealV5

SetNewUri sets the "newUri" parameter.

func (*AllowRevealV5) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*AllowRevealV5) UnmarshalWithDecoder

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

func (*AllowRevealV5) Validate

func (inst *AllowRevealV5) Validate() error

func (AllowRevealV5) ValidateAndBuild

func (inst AllowRevealV5) 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 AllowUnfreeze

type AllowUnfreeze struct {

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

AllowUnfreeze is the `allowUnfreeze` instruction.

func NewAllowUnfreezeInstruction

func NewAllowUnfreezeInstruction(

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

NewAllowUnfreezeInstruction declares a new AllowUnfreeze instruction with the provided parameters and accounts.

func NewAllowUnfreezeInstructionBuilder

func NewAllowUnfreezeInstructionBuilder() *AllowUnfreeze

NewAllowUnfreezeInstructionBuilder creates a new `AllowUnfreeze` instruction builder.

func (AllowUnfreeze) Build

func (inst AllowUnfreeze) Build() *Instruction

func (*AllowUnfreeze) EncodeToTree

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

func (*AllowUnfreeze) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*AllowUnfreeze) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (AllowUnfreeze) MarshalWithEncoder

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

func (*AllowUnfreeze) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*AllowUnfreeze) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*AllowUnfreeze) UnmarshalWithDecoder

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

func (*AllowUnfreeze) Validate

func (inst *AllowUnfreeze) Validate() error

func (AllowUnfreeze) ValidateAndBuild

func (inst AllowUnfreeze) 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 AllowUnfreezeV5

type AllowUnfreezeV5 struct {

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

AllowUnfreezeV5 is the `allowUnfreezeV5` instruction.

func NewAllowUnfreezeV5Instruction

func NewAllowUnfreezeV5Instruction(

	authority ag_solanago.PublicKey,
	candyMachine ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey) *AllowUnfreezeV5

NewAllowUnfreezeV5Instruction declares a new AllowUnfreezeV5 instruction with the provided parameters and accounts.

func NewAllowUnfreezeV5InstructionBuilder

func NewAllowUnfreezeV5InstructionBuilder() *AllowUnfreezeV5

NewAllowUnfreezeV5InstructionBuilder creates a new `AllowUnfreezeV5` instruction builder.

func (AllowUnfreezeV5) Build

func (inst AllowUnfreezeV5) Build() *Instruction

func (*AllowUnfreezeV5) EncodeToTree

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

func (*AllowUnfreezeV5) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*AllowUnfreezeV5) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*AllowUnfreezeV5) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (AllowUnfreezeV5) MarshalWithEncoder

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

func (*AllowUnfreezeV5) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*AllowUnfreezeV5) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*AllowUnfreezeV5) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*AllowUnfreezeV5) UnmarshalWithDecoder

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

func (*AllowUnfreezeV5) Validate

func (inst *AllowUnfreezeV5) Validate() error

func (AllowUnfreezeV5) ValidateAndBuild

func (inst AllowUnfreezeV5) 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 BurnFrozen

type BurnFrozen struct {

	// [0] = [WRITE] candyMachine
	//
	// [1] = [WRITE] mint
	//
	// [2] = [WRITE] owner
	//
	// [3] = [WRITE] associated
	//
	// [4] = [WRITE] metadata
	//
	// [5] = [WRITE] masterEdition
	//
	// [6] = [] tokenMetadataProgram
	//
	// [7] = [] tokenProgram
	ag_solanago.AccountMetaSlice `bin:"-"`
}

BurnFrozen is the `burnFrozen` instruction.

func NewBurnFrozenInstruction

func NewBurnFrozenInstruction(

	candyMachine ag_solanago.PublicKey,
	mint ag_solanago.PublicKey,
	owner ag_solanago.PublicKey,
	associated ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	masterEdition ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey) *BurnFrozen

NewBurnFrozenInstruction declares a new BurnFrozen instruction with the provided parameters and accounts.

func NewBurnFrozenInstructionBuilder

func NewBurnFrozenInstructionBuilder() *BurnFrozen

NewBurnFrozenInstructionBuilder creates a new `BurnFrozen` instruction builder.

func (BurnFrozen) Build

func (inst BurnFrozen) Build() *Instruction

func (*BurnFrozen) EncodeToTree

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

func (*BurnFrozen) GetAssociatedAccount

func (inst *BurnFrozen) GetAssociatedAccount() *ag_solanago.AccountMeta

GetAssociatedAccount gets the "associated" account.

func (*BurnFrozen) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*BurnFrozen) GetMasterEditionAccount

func (inst *BurnFrozen) GetMasterEditionAccount() *ag_solanago.AccountMeta

GetMasterEditionAccount gets the "masterEdition" account.

func (*BurnFrozen) GetMetadataAccount

func (inst *BurnFrozen) GetMetadataAccount() *ag_solanago.AccountMeta

GetMetadataAccount gets the "metadata" account.

func (*BurnFrozen) GetMintAccount

func (inst *BurnFrozen) GetMintAccount() *ag_solanago.AccountMeta

GetMintAccount gets the "mint" account.

func (*BurnFrozen) GetOwnerAccount

func (inst *BurnFrozen) GetOwnerAccount() *ag_solanago.AccountMeta

GetOwnerAccount gets the "owner" account.

func (*BurnFrozen) GetTokenMetadataProgramAccount

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

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (*BurnFrozen) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (BurnFrozen) MarshalWithEncoder

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

func (*BurnFrozen) SetAssociatedAccount

func (inst *BurnFrozen) SetAssociatedAccount(associated ag_solanago.PublicKey) *BurnFrozen

SetAssociatedAccount sets the "associated" account.

func (*BurnFrozen) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*BurnFrozen) SetMasterEditionAccount

func (inst *BurnFrozen) SetMasterEditionAccount(masterEdition ag_solanago.PublicKey) *BurnFrozen

SetMasterEditionAccount sets the "masterEdition" account.

func (*BurnFrozen) SetMetadataAccount

func (inst *BurnFrozen) SetMetadataAccount(metadata ag_solanago.PublicKey) *BurnFrozen

SetMetadataAccount sets the "metadata" account.

func (*BurnFrozen) SetMintAccount

func (inst *BurnFrozen) SetMintAccount(mint ag_solanago.PublicKey) *BurnFrozen

SetMintAccount sets the "mint" account.

func (*BurnFrozen) SetOwnerAccount

func (inst *BurnFrozen) SetOwnerAccount(owner ag_solanago.PublicKey) *BurnFrozen

SetOwnerAccount sets the "owner" account.

func (*BurnFrozen) SetTokenMetadataProgramAccount

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

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*BurnFrozen) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account.

func (*BurnFrozen) UnmarshalWithDecoder

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

func (*BurnFrozen) Validate

func (inst *BurnFrozen) Validate() error

func (BurnFrozen) ValidateAndBuild

func (inst BurnFrozen) 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 BurnSupplyV3

type BurnSupplyV3 struct {
	PercentToBurn *uint8

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

BurnSupplyV3 is the `burnSupplyV3` instruction.

func NewBurnSupplyV3Instruction

func NewBurnSupplyV3Instruction(

	percentToBurn uint8,

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

NewBurnSupplyV3Instruction declares a new BurnSupplyV3 instruction with the provided parameters and accounts.

func NewBurnSupplyV3InstructionBuilder

func NewBurnSupplyV3InstructionBuilder() *BurnSupplyV3

NewBurnSupplyV3InstructionBuilder creates a new `BurnSupplyV3` instruction builder.

func (BurnSupplyV3) Build

func (inst BurnSupplyV3) Build() *Instruction

func (*BurnSupplyV3) EncodeToTree

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

func (*BurnSupplyV3) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*BurnSupplyV3) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (BurnSupplyV3) MarshalWithEncoder

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

func (*BurnSupplyV3) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*BurnSupplyV3) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*BurnSupplyV3) SetPercentToBurn

func (inst *BurnSupplyV3) SetPercentToBurn(percentToBurn uint8) *BurnSupplyV3

SetPercentToBurn sets the "percentToBurn" parameter.

func (*BurnSupplyV3) UnmarshalWithDecoder

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

func (*BurnSupplyV3) Validate

func (inst *BurnSupplyV3) Validate() error

func (BurnSupplyV3) ValidateAndBuild

func (inst BurnSupplyV3) 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 BurnSupplyV5

type BurnSupplyV5 struct {
	PercentToBurn *uint8

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

BurnSupplyV5 is the `burnSupplyV5` instruction.

func NewBurnSupplyV5Instruction

func NewBurnSupplyV5Instruction(

	percentToBurn uint8,

	authority ag_solanago.PublicKey,
	candyMachine ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey) *BurnSupplyV5

NewBurnSupplyV5Instruction declares a new BurnSupplyV5 instruction with the provided parameters and accounts.

func NewBurnSupplyV5InstructionBuilder

func NewBurnSupplyV5InstructionBuilder() *BurnSupplyV5

NewBurnSupplyV5InstructionBuilder creates a new `BurnSupplyV5` instruction builder.

func (BurnSupplyV5) Build

func (inst BurnSupplyV5) Build() *Instruction

func (*BurnSupplyV5) EncodeToTree

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

func (*BurnSupplyV5) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*BurnSupplyV5) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*BurnSupplyV5) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (BurnSupplyV5) MarshalWithEncoder

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

func (*BurnSupplyV5) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*BurnSupplyV5) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*BurnSupplyV5) SetPercentToBurn

func (inst *BurnSupplyV5) SetPercentToBurn(percentToBurn uint8) *BurnSupplyV5

SetPercentToBurn sets the "percentToBurn" parameter.

func (*BurnSupplyV5) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*BurnSupplyV5) UnmarshalWithDecoder

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

func (*BurnSupplyV5) Validate

func (inst *BurnSupplyV5) Validate() error

func (BurnSupplyV5) ValidateAndBuild

func (inst BurnSupplyV5) 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 {
	Authority     ag_solanago.PublicKey
	Wallet        ag_solanago.PublicKey
	TokenMint     *ag_solanago.PublicKey `bin:"optional"`
	Config        ag_solanago.PublicKey
	Data          CandyMachineData
	ItemsRedeemed uint64
	Bump          uint8
}

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 {
	Uuid           string
	Price          uint64
	ItemsAvailable uint64
	GoLiveDate     *int64 `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 CandyMachineDataV2

type CandyMachineDataV2 struct {
	Price                uint64
	ItemsAvailable       uint64
	GoLiveDate           int64
	Symbol               string
	SellerFeeBasisPoints uint16
	Creators             []Creator
	IsMutable            bool
	RetainAuthority      bool
	BaseUrl              string
	MintsPerUser         *uint32      `bin:"optional"`
	Whitelist            *WhitelistV2 `bin:"optional"`
}

func (CandyMachineDataV2) MarshalWithEncoder

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

func (*CandyMachineDataV2) UnmarshalWithDecoder

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

type CandyMachineDataV3

type CandyMachineDataV3 struct {
	ItemsAvailable       uint64
	GoLiveDate           int64
	Symbol               string
	SellerFeeBasisPoints uint16
	Creators             []Creator
	IsMutable            bool
	RetainAuthority      bool
	BaseUrl              string
	SaleFazes            []SaleFaze
}

func (CandyMachineDataV3) MarshalWithEncoder

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

func (*CandyMachineDataV3) UnmarshalWithDecoder

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

type CandyMachineV2

type CandyMachineV2 struct {
	Authority     ag_solanago.PublicKey
	Wallet        ag_solanago.PublicKey
	ItemsRedeemed uint64
	Data          CandyMachineDataV2
}

func (CandyMachineV2) MarshalWithEncoder

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

func (*CandyMachineV2) UnmarshalWithDecoder

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

type CandyMachineV3

type CandyMachineV3 struct {
	Seed          ag_solanago.PublicKey
	Bump          uint8
	Authority     ag_solanago.PublicKey
	Wallet        ag_solanago.PublicKey
	ItemsRedeemed uint64
	Data          CandyMachineDataV2
}

func (CandyMachineV3) MarshalWithEncoder

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

func (*CandyMachineV3) UnmarshalWithDecoder

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

type CandyMachineV4

type CandyMachineV4 struct {
	Seed          ag_solanago.PublicKey
	Bump          uint8
	Authority     ag_solanago.PublicKey
	Wallet        ag_solanago.PublicKey
	ItemsRedeemed uint64
	Data          CandyMachineDataV2
	ThawDate      *int64 `bin:"optional"`
	AllowThaw     bool
	RevealedUri   *string `bin:"optional"`
}

func (CandyMachineV4) MarshalWithEncoder

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

func (*CandyMachineV4) UnmarshalWithDecoder

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

type CandyMachineV5

type CandyMachineV5 struct {
	Seed           ag_solanago.PublicKey
	Bump           uint8
	Authority      ag_solanago.PublicKey
	Wallet         ag_solanago.PublicKey
	ItemsRedeemed  uint64
	ThawDate       *int64 `bin:"optional"`
	AllowThaw      bool
	RevealedUri    *string `bin:"optional"`
	Data           CandyMachineDataV3
	RequiredSigned *ag_solanago.PublicKey `bin:"optional"`
}

func (CandyMachineV5) MarshalWithEncoder

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

func (*CandyMachineV5) UnmarshalWithDecoder

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

type Creator

type Creator struct {
	Address  ag_solanago.PublicKey
	Verified bool
	Share    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 EditCmV2

type EditCmV2 struct {
	Data *CandyMachineDataV2

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

EditCmV2 is the `editCmV2` instruction.

func NewEditCmV2Instruction

func NewEditCmV2Instruction(

	data CandyMachineDataV2,

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

NewEditCmV2Instruction declares a new EditCmV2 instruction with the provided parameters and accounts.

func NewEditCmV2InstructionBuilder

func NewEditCmV2InstructionBuilder() *EditCmV2

NewEditCmV2InstructionBuilder creates a new `EditCmV2` instruction builder.

func (EditCmV2) Build

func (inst EditCmV2) Build() *Instruction

func (*EditCmV2) EncodeToTree

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

func (*EditCmV2) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*EditCmV2) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (EditCmV2) MarshalWithEncoder

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

func (*EditCmV2) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*EditCmV2) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*EditCmV2) SetData

func (inst *EditCmV2) SetData(data CandyMachineDataV2) *EditCmV2

SetData sets the "data" parameter.

func (*EditCmV2) UnmarshalWithDecoder

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

func (*EditCmV2) Validate

func (inst *EditCmV2) Validate() error

func (EditCmV2) ValidateAndBuild

func (inst EditCmV2) 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 EditCmV3

type EditCmV3 struct {
	Data *CandyMachineDataV2

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

EditCmV3 is the `editCmV3` instruction.

func NewEditCmV3Instruction

func NewEditCmV3Instruction(

	data CandyMachineDataV2,

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

NewEditCmV3Instruction declares a new EditCmV3 instruction with the provided parameters and accounts.

func NewEditCmV3InstructionBuilder

func NewEditCmV3InstructionBuilder() *EditCmV3

NewEditCmV3InstructionBuilder creates a new `EditCmV3` instruction builder.

func (EditCmV3) Build

func (inst EditCmV3) Build() *Instruction

func (*EditCmV3) EncodeToTree

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

func (*EditCmV3) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*EditCmV3) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (EditCmV3) MarshalWithEncoder

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

func (*EditCmV3) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*EditCmV3) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*EditCmV3) SetData

func (inst *EditCmV3) SetData(data CandyMachineDataV2) *EditCmV3

SetData sets the "data" parameter.

func (*EditCmV3) UnmarshalWithDecoder

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

func (*EditCmV3) Validate

func (inst *EditCmV3) Validate() error

func (EditCmV3) ValidateAndBuild

func (inst EditCmV3) 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 EditCmV4

type EditCmV4 struct {
	Data *CandyMachineDataV2

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

EditCmV4 is the `editCmV4` instruction.

func NewEditCmV4Instruction

func NewEditCmV4Instruction(

	data CandyMachineDataV2,

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

NewEditCmV4Instruction declares a new EditCmV4 instruction with the provided parameters and accounts.

func NewEditCmV4InstructionBuilder

func NewEditCmV4InstructionBuilder() *EditCmV4

NewEditCmV4InstructionBuilder creates a new `EditCmV4` instruction builder.

func (EditCmV4) Build

func (inst EditCmV4) Build() *Instruction

func (*EditCmV4) EncodeToTree

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

func (*EditCmV4) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*EditCmV4) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (EditCmV4) MarshalWithEncoder

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

func (*EditCmV4) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*EditCmV4) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*EditCmV4) SetData

func (inst *EditCmV4) SetData(data CandyMachineDataV2) *EditCmV4

SetData sets the "data" parameter.

func (*EditCmV4) UnmarshalWithDecoder

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

func (*EditCmV4) Validate

func (inst *EditCmV4) Validate() error

func (EditCmV4) ValidateAndBuild

func (inst EditCmV4) 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 EditCmV5

type EditCmV5 struct {
	Data *CandyMachineDataV3

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

EditCmV5 is the `editCmV5` instruction.

func NewEditCmV5Instruction

func NewEditCmV5Instruction(

	data CandyMachineDataV3,

	authority ag_solanago.PublicKey,
	candyMachine ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey) *EditCmV5

NewEditCmV5Instruction declares a new EditCmV5 instruction with the provided parameters and accounts.

func NewEditCmV5InstructionBuilder

func NewEditCmV5InstructionBuilder() *EditCmV5

NewEditCmV5InstructionBuilder creates a new `EditCmV5` instruction builder.

func (EditCmV5) Build

func (inst EditCmV5) Build() *Instruction

func (*EditCmV5) EncodeToTree

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

func (*EditCmV5) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*EditCmV5) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*EditCmV5) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (EditCmV5) MarshalWithEncoder

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

func (*EditCmV5) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*EditCmV5) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*EditCmV5) SetData

func (inst *EditCmV5) SetData(data CandyMachineDataV3) *EditCmV5

SetData sets the "data" parameter.

func (*EditCmV5) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*EditCmV5) UnmarshalWithDecoder

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

func (*EditCmV5) Validate

func (inst *EditCmV5) Validate() error

func (EditCmV5) ValidateAndBuild

func (inst EditCmV5) 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 ErrorCode

type ErrorCode ag_binary.BorshEnum
const (
	ErrorCodeIncorrectOwner ErrorCode = iota
	ErrorCodeUninitialized
	ErrorCodeMintMismatch
	ErrorCodeIndexGreaterThanLength
	ErrorCodeConfigMustHaveAtleastOneEntry
	ErrorCodeNumericalOverflowError
	ErrorCodeTooManyCreators
	ErrorCodeUuidMustBeExactly6Length
	ErrorCodeNotEnoughTokens
	ErrorCodeNotEnoughSOL
	ErrorCodeTokenTransferFailed
	ErrorCodeCandyMachineEmpty
	ErrorCodeCandyMachineNotLiveYet
	ErrorCodeConfigLineMismatch
	ErrorCodeWhitelistExists
	ErrorCodeWhiteListMissing
	ErrorCodeWrongWhitelist
	ErrorCodeNotWhitelisted
	ErrorCodeInvalidFraction
	ErrorCodeBumpMissing
	ErrorCodePriceViolation
	ErrorCodeNotThawable
	ErrorCodeTeePot
	ErrorCodePresentProof
)

func (ErrorCode) String

func (value ErrorCode) String() string

type InitCmV4

type InitCmV4 struct {
	Data     *CandyMachineDataV2
	Seed     *ag_solanago.PublicKey
	ThawDate *int64 `bin:"optional"`

	// [0] = [WRITE] candyMachine
	//
	// [1] = [] wallet
	//
	// [2] = [SIGNER] authority
	//
	// [3] = [WRITE, SIGNER] payer
	//
	// [4] = [] systemProgram
	//
	// [5] = [] rent
	ag_solanago.AccountMetaSlice `bin:"-"`
}

InitCmV4 is the `initCmV4` instruction.

func NewInitCmV4Instruction

func NewInitCmV4Instruction(

	data CandyMachineDataV2,
	seed ag_solanago.PublicKey,
	thawDate int64,

	candyMachine ag_solanago.PublicKey,
	wallet ag_solanago.PublicKey,
	authority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *InitCmV4

NewInitCmV4Instruction declares a new InitCmV4 instruction with the provided parameters and accounts.

func NewInitCmV4InstructionBuilder

func NewInitCmV4InstructionBuilder() *InitCmV4

NewInitCmV4InstructionBuilder creates a new `InitCmV4` instruction builder.

func (InitCmV4) Build

func (inst InitCmV4) Build() *Instruction

func (*InitCmV4) EncodeToTree

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

func (*InitCmV4) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*InitCmV4) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*InitCmV4) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*InitCmV4) GetRentAccount

func (inst *InitCmV4) GetRentAccount() *ag_solanago.AccountMeta

GetRentAccount gets the "rent" account.

func (*InitCmV4) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*InitCmV4) GetWalletAccount

func (inst *InitCmV4) GetWalletAccount() *ag_solanago.AccountMeta

GetWalletAccount gets the "wallet" account.

func (InitCmV4) MarshalWithEncoder

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

func (*InitCmV4) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*InitCmV4) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*InitCmV4) SetData

func (inst *InitCmV4) SetData(data CandyMachineDataV2) *InitCmV4

SetData sets the "data" parameter.

func (*InitCmV4) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*InitCmV4) SetRentAccount

func (inst *InitCmV4) SetRentAccount(rent ag_solanago.PublicKey) *InitCmV4

SetRentAccount sets the "rent" account.

func (*InitCmV4) SetSeed

func (inst *InitCmV4) SetSeed(seed ag_solanago.PublicKey) *InitCmV4

SetSeed sets the "seed" parameter.

func (*InitCmV4) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*InitCmV4) SetThawDate

func (inst *InitCmV4) SetThawDate(thawDate int64) *InitCmV4

SetThawDate sets the "thawDate" parameter.

func (*InitCmV4) SetWalletAccount

func (inst *InitCmV4) SetWalletAccount(wallet ag_solanago.PublicKey) *InitCmV4

SetWalletAccount sets the "wallet" account.

func (*InitCmV4) UnmarshalWithDecoder

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

func (*InitCmV4) Validate

func (inst *InitCmV4) Validate() error

func (InitCmV4) ValidateAndBuild

func (inst InitCmV4) 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 InitCmV5

type InitCmV5 struct {
	Data     *CandyMachineDataV3
	Seed     *ag_solanago.PublicKey
	ThawDate *int64 `bin:"optional"`

	// [0] = [WRITE] candyMachine
	//
	// [1] = [] wallet
	//
	// [2] = [SIGNER] authority
	//
	// [3] = [WRITE, SIGNER] payer
	//
	// [4] = [] systemProgram
	//
	// [5] = [] rent
	ag_solanago.AccountMetaSlice `bin:"-"`
}

InitCmV5 is the `initCmV5` instruction.

func NewInitCmV5Instruction

func NewInitCmV5Instruction(

	data CandyMachineDataV3,
	seed ag_solanago.PublicKey,
	thawDate int64,

	candyMachine ag_solanago.PublicKey,
	wallet ag_solanago.PublicKey,
	authority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *InitCmV5

NewInitCmV5Instruction declares a new InitCmV5 instruction with the provided parameters and accounts.

func NewInitCmV5InstructionBuilder

func NewInitCmV5InstructionBuilder() *InitCmV5

NewInitCmV5InstructionBuilder creates a new `InitCmV5` instruction builder.

func (InitCmV5) Build

func (inst InitCmV5) Build() *Instruction

func (*InitCmV5) EncodeToTree

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

func (*InitCmV5) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*InitCmV5) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*InitCmV5) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*InitCmV5) GetRentAccount

func (inst *InitCmV5) GetRentAccount() *ag_solanago.AccountMeta

GetRentAccount gets the "rent" account.

func (*InitCmV5) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*InitCmV5) GetWalletAccount

func (inst *InitCmV5) GetWalletAccount() *ag_solanago.AccountMeta

GetWalletAccount gets the "wallet" account.

func (InitCmV5) MarshalWithEncoder

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

func (*InitCmV5) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*InitCmV5) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*InitCmV5) SetData

func (inst *InitCmV5) SetData(data CandyMachineDataV3) *InitCmV5

SetData sets the "data" parameter.

func (*InitCmV5) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*InitCmV5) SetRentAccount

func (inst *InitCmV5) SetRentAccount(rent ag_solanago.PublicKey) *InitCmV5

SetRentAccount sets the "rent" account.

func (*InitCmV5) SetSeed

func (inst *InitCmV5) SetSeed(seed ag_solanago.PublicKey) *InitCmV5

SetSeed sets the "seed" parameter.

func (*InitCmV5) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*InitCmV5) SetThawDate

func (inst *InitCmV5) SetThawDate(thawDate int64) *InitCmV5

SetThawDate sets the "thawDate" parameter.

func (*InitCmV5) SetWalletAccount

func (inst *InitCmV5) SetWalletAccount(wallet ag_solanago.PublicKey) *InitCmV5

SetWalletAccount sets the "wallet" account.

func (*InitCmV5) UnmarshalWithDecoder

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

func (*InitCmV5) Validate

func (inst *InitCmV5) Validate() error

func (InitCmV5) ValidateAndBuild

func (inst InitCmV5) 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 MintEmbed

type MintEmbed struct {
	Proof  *[][32]uint8 `bin:"optional"`
	Expect *uint64

	// [0] = [WRITE] candyMachine
	//
	// [1] = [WRITE, SIGNER] payer
	//
	// [2] = [WRITE] wallet
	//
	// [3] = [WRITE] wallet2
	//
	// [4] = [WRITE] metadata
	//
	// [5] = [WRITE, SIGNER] mint
	//
	// [6] = [WRITE] associated
	//
	// [7] = [WRITE] masterEdition
	//
	// [8] = [WRITE] totalMints
	//
	// [9] = [] associatedTokenProgram
	//
	// [10] = [] tokenMetadataProgram
	//
	// [11] = [] tokenProgram
	//
	// [12] = [] systemProgram
	//
	// [13] = [] rent
	//
	// [14] = [] clock
	ag_solanago.AccountMetaSlice `bin:"-"`
}

MintEmbed is the `mintEmbed` instruction.

func NewMintEmbedInstruction

func NewMintEmbedInstruction(

	proof [][32]uint8,
	expect uint64,

	candyMachine ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	wallet ag_solanago.PublicKey,
	wallet2 ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	mint ag_solanago.PublicKey,
	associated ag_solanago.PublicKey,
	masterEdition ag_solanago.PublicKey,
	totalMints ag_solanago.PublicKey,
	associatedTokenProgram ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey,
	clock ag_solanago.PublicKey) *MintEmbed

NewMintEmbedInstruction declares a new MintEmbed instruction with the provided parameters and accounts.

func NewMintEmbedInstructionBuilder

func NewMintEmbedInstructionBuilder() *MintEmbed

NewMintEmbedInstructionBuilder creates a new `MintEmbed` instruction builder.

func (MintEmbed) Build

func (inst MintEmbed) Build() *Instruction

func (*MintEmbed) EncodeToTree

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

func (*MintEmbed) GetAssociatedAccount

func (inst *MintEmbed) GetAssociatedAccount() *ag_solanago.AccountMeta

GetAssociatedAccount gets the "associated" account.

func (*MintEmbed) GetAssociatedTokenProgramAccount

func (inst *MintEmbed) GetAssociatedTokenProgramAccount() *ag_solanago.AccountMeta

GetAssociatedTokenProgramAccount gets the "associatedTokenProgram" account.

func (*MintEmbed) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*MintEmbed) GetClockAccount

func (inst *MintEmbed) GetClockAccount() *ag_solanago.AccountMeta

GetClockAccount gets the "clock" account.

func (*MintEmbed) GetMasterEditionAccount

func (inst *MintEmbed) GetMasterEditionAccount() *ag_solanago.AccountMeta

GetMasterEditionAccount gets the "masterEdition" account.

func (*MintEmbed) GetMetadataAccount

func (inst *MintEmbed) GetMetadataAccount() *ag_solanago.AccountMeta

GetMetadataAccount gets the "metadata" account.

func (*MintEmbed) GetMintAccount

func (inst *MintEmbed) GetMintAccount() *ag_solanago.AccountMeta

GetMintAccount gets the "mint" account.

func (*MintEmbed) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*MintEmbed) GetRentAccount

func (inst *MintEmbed) GetRentAccount() *ag_solanago.AccountMeta

GetRentAccount gets the "rent" account.

func (*MintEmbed) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*MintEmbed) GetTokenMetadataProgramAccount

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

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (*MintEmbed) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (*MintEmbed) GetTotalMintsAccount

func (inst *MintEmbed) GetTotalMintsAccount() *ag_solanago.AccountMeta

GetTotalMintsAccount gets the "totalMints" account.

func (*MintEmbed) GetWallet2Account

func (inst *MintEmbed) GetWallet2Account() *ag_solanago.AccountMeta

GetWallet2Account gets the "wallet2" account.

func (*MintEmbed) GetWalletAccount

func (inst *MintEmbed) GetWalletAccount() *ag_solanago.AccountMeta

GetWalletAccount gets the "wallet" account.

func (MintEmbed) MarshalWithEncoder

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

func (*MintEmbed) SetAssociatedAccount

func (inst *MintEmbed) SetAssociatedAccount(associated ag_solanago.PublicKey) *MintEmbed

SetAssociatedAccount sets the "associated" account.

func (*MintEmbed) SetAssociatedTokenProgramAccount

func (inst *MintEmbed) SetAssociatedTokenProgramAccount(associatedTokenProgram ag_solanago.PublicKey) *MintEmbed

SetAssociatedTokenProgramAccount sets the "associatedTokenProgram" account.

func (*MintEmbed) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*MintEmbed) SetClockAccount

func (inst *MintEmbed) SetClockAccount(clock ag_solanago.PublicKey) *MintEmbed

SetClockAccount sets the "clock" account.

func (*MintEmbed) SetExpect

func (inst *MintEmbed) SetExpect(expect uint64) *MintEmbed

SetExpect sets the "expect" parameter.

func (*MintEmbed) SetMasterEditionAccount

func (inst *MintEmbed) SetMasterEditionAccount(masterEdition ag_solanago.PublicKey) *MintEmbed

SetMasterEditionAccount sets the "masterEdition" account.

func (*MintEmbed) SetMetadataAccount

func (inst *MintEmbed) SetMetadataAccount(metadata ag_solanago.PublicKey) *MintEmbed

SetMetadataAccount sets the "metadata" account.

func (*MintEmbed) SetMintAccount

func (inst *MintEmbed) SetMintAccount(mint ag_solanago.PublicKey) *MintEmbed

SetMintAccount sets the "mint" account.

func (*MintEmbed) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*MintEmbed) SetProof

func (inst *MintEmbed) SetProof(proof [][32]uint8) *MintEmbed

SetProof sets the "proof" parameter.

func (*MintEmbed) SetRentAccount

func (inst *MintEmbed) SetRentAccount(rent ag_solanago.PublicKey) *MintEmbed

SetRentAccount sets the "rent" account.

func (*MintEmbed) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*MintEmbed) SetTokenMetadataProgramAccount

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

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*MintEmbed) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account.

func (*MintEmbed) SetTotalMintsAccount

func (inst *MintEmbed) SetTotalMintsAccount(totalMints ag_solanago.PublicKey) *MintEmbed

SetTotalMintsAccount sets the "totalMints" account.

func (*MintEmbed) SetWallet2Account

func (inst *MintEmbed) SetWallet2Account(wallet2 ag_solanago.PublicKey) *MintEmbed

SetWallet2Account sets the "wallet2" account.

func (*MintEmbed) SetWalletAccount

func (inst *MintEmbed) SetWalletAccount(wallet ag_solanago.PublicKey) *MintEmbed

SetWalletAccount sets the "wallet" account.

func (*MintEmbed) UnmarshalWithDecoder

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

func (*MintEmbed) Validate

func (inst *MintEmbed) Validate() error

func (MintEmbed) ValidateAndBuild

func (inst MintEmbed) 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 {
	CreatorBump    *uint8
	TotalMintsBump *uint8
	Proof          *[][32]uint8 `bin:"optional"`

	// [0] = [WRITE] candyMachine
	//
	// [1] = [WRITE, SIGNER] payer
	//
	// [2] = [] candyMachineCreator
	//
	// [3] = [WRITE] wallet
	//
	// [4] = [WRITE] wallet2
	//
	// [5] = [WRITE] metadata
	//
	// [6] = [WRITE] mint
	//
	// [7] = [WRITE] masterEdition
	//
	// [8] = [WRITE] totalMints
	//
	// [9] = [] tokenMetadataProgram
	//
	// [10] = [] tokenProgram
	//
	// [11] = [] systemProgram
	//
	// [12] = [] rent
	//
	// [13] = [] clock
	ag_solanago.AccountMetaSlice `bin:"-"`
}

MintV2 is the `mintV2` instruction.

func NewMintV2Instruction

func NewMintV2Instruction(

	creatorBump uint8,
	totalMintsBump uint8,
	proof [][32]uint8,

	candyMachine ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	candyMachineCreator ag_solanago.PublicKey,
	wallet ag_solanago.PublicKey,
	wallet2 ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	mint ag_solanago.PublicKey,
	masterEdition ag_solanago.PublicKey,
	totalMints ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey,
	clock 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) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*MintV2) GetCandyMachineCreatorAccount

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

GetCandyMachineCreatorAccount gets the "candyMachineCreator" account.

func (*MintV2) GetClockAccount

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

GetClockAccount gets the "clock" account.

func (*MintV2) GetMasterEditionAccount

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

GetMasterEditionAccount gets the "masterEdition" account.

func (*MintV2) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*MintV2) GetMintAccount

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

GetMintAccount gets the "mint" account.

func (*MintV2) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*MintV2) GetRentAccount

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

GetRentAccount gets the "rent" account.

func (*MintV2) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*MintV2) GetTokenMetadataProgramAccount

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

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (*MintV2) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (*MintV2) GetTotalMintsAccount

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

GetTotalMintsAccount gets the "totalMints" account.

func (*MintV2) GetWallet2Account

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

GetWallet2Account gets the "wallet2" account.

func (*MintV2) GetWalletAccount

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

GetWalletAccount gets the "wallet" account.

func (MintV2) MarshalWithEncoder

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

func (*MintV2) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*MintV2) SetCandyMachineCreatorAccount

func (inst *MintV2) SetCandyMachineCreatorAccount(candyMachineCreator ag_solanago.PublicKey) *MintV2

SetCandyMachineCreatorAccount sets the "candyMachineCreator" account.

func (*MintV2) SetClockAccount

func (inst *MintV2) SetClockAccount(clock ag_solanago.PublicKey) *MintV2

SetClockAccount sets the "clock" account.

func (*MintV2) SetCreatorBump

func (inst *MintV2) SetCreatorBump(creatorBump uint8) *MintV2

SetCreatorBump sets the "creatorBump" parameter.

func (*MintV2) SetMasterEditionAccount

func (inst *MintV2) SetMasterEditionAccount(masterEdition ag_solanago.PublicKey) *MintV2

SetMasterEditionAccount sets the "masterEdition" account.

func (*MintV2) SetMetadataAccount

func (inst *MintV2) SetMetadataAccount(metadata ag_solanago.PublicKey) *MintV2

SetMetadataAccount sets the "metadata" account.

func (*MintV2) SetMintAccount

func (inst *MintV2) SetMintAccount(mint ag_solanago.PublicKey) *MintV2

SetMintAccount sets the "mint" account.

func (*MintV2) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*MintV2) SetProof

func (inst *MintV2) SetProof(proof [][32]uint8) *MintV2

SetProof sets the "proof" parameter.

func (*MintV2) SetRentAccount

func (inst *MintV2) SetRentAccount(rent ag_solanago.PublicKey) *MintV2

SetRentAccount sets the "rent" account.

func (*MintV2) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*MintV2) SetTokenMetadataProgramAccount

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

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*MintV2) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account.

func (*MintV2) SetTotalMintsAccount

func (inst *MintV2) SetTotalMintsAccount(totalMints ag_solanago.PublicKey) *MintV2

SetTotalMintsAccount sets the "totalMints" account.

func (*MintV2) SetTotalMintsBump

func (inst *MintV2) SetTotalMintsBump(totalMintsBump uint8) *MintV2

SetTotalMintsBump sets the "totalMintsBump" parameter.

func (*MintV2) SetWallet2Account

func (inst *MintV2) SetWallet2Account(wallet2 ag_solanago.PublicKey) *MintV2

SetWallet2Account sets the "wallet2" account.

func (*MintV2) SetWalletAccount

func (inst *MintV2) SetWalletAccount(wallet ag_solanago.PublicKey) *MintV2

SetWalletAccount sets the "wallet" 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 MintV4

type MintV4 struct {
	Proof  *[][32]uint8
	Expect *uint64

	// [0] = [WRITE] candyMachine
	//
	// [1] = [WRITE, SIGNER] payer
	//
	// [2] = [WRITE] wallet
	//
	// [3] = [WRITE] wallet2
	//
	// [4] = [WRITE] metadata
	//
	// [5] = [WRITE, SIGNER] mint
	//
	// [6] = [WRITE] associated
	//
	// [7] = [WRITE] masterEdition
	//
	// [8] = [WRITE] totalMints
	//
	// [9] = [] associatedTokenProgram
	//
	// [10] = [] tokenMetadataProgram
	//
	// [11] = [] tokenProgram
	//
	// [12] = [] systemProgram
	ag_solanago.AccountMetaSlice `bin:"-"`
}

MintV4 is the `mintV4` instruction.

func NewMintV4Instruction

func NewMintV4Instruction(

	proof [][32]uint8,
	expect uint64,

	candyMachine ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	wallet ag_solanago.PublicKey,
	wallet2 ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	mint ag_solanago.PublicKey,
	associated ag_solanago.PublicKey,
	masterEdition ag_solanago.PublicKey,
	totalMints ag_solanago.PublicKey,
	associatedTokenProgram ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey) *MintV4

NewMintV4Instruction declares a new MintV4 instruction with the provided parameters and accounts.

func NewMintV4InstructionBuilder

func NewMintV4InstructionBuilder() *MintV4

NewMintV4InstructionBuilder creates a new `MintV4` instruction builder.

func (MintV4) Build

func (inst MintV4) Build() *Instruction

func (*MintV4) EncodeToTree

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

func (*MintV4) GetAssociatedAccount

func (inst *MintV4) GetAssociatedAccount() *ag_solanago.AccountMeta

GetAssociatedAccount gets the "associated" account.

func (*MintV4) GetAssociatedTokenProgramAccount

func (inst *MintV4) GetAssociatedTokenProgramAccount() *ag_solanago.AccountMeta

GetAssociatedTokenProgramAccount gets the "associatedTokenProgram" account.

func (*MintV4) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*MintV4) GetMasterEditionAccount

func (inst *MintV4) GetMasterEditionAccount() *ag_solanago.AccountMeta

GetMasterEditionAccount gets the "masterEdition" account.

func (*MintV4) GetMetadataAccount

func (inst *MintV4) GetMetadataAccount() *ag_solanago.AccountMeta

GetMetadataAccount gets the "metadata" account.

func (*MintV4) GetMintAccount

func (inst *MintV4) GetMintAccount() *ag_solanago.AccountMeta

GetMintAccount gets the "mint" account.

func (*MintV4) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*MintV4) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*MintV4) GetTokenMetadataProgramAccount

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

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (*MintV4) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (*MintV4) GetTotalMintsAccount

func (inst *MintV4) GetTotalMintsAccount() *ag_solanago.AccountMeta

GetTotalMintsAccount gets the "totalMints" account.

func (*MintV4) GetWallet2Account

func (inst *MintV4) GetWallet2Account() *ag_solanago.AccountMeta

GetWallet2Account gets the "wallet2" account.

func (*MintV4) GetWalletAccount

func (inst *MintV4) GetWalletAccount() *ag_solanago.AccountMeta

GetWalletAccount gets the "wallet" account.

func (MintV4) MarshalWithEncoder

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

func (*MintV4) SetAssociatedAccount

func (inst *MintV4) SetAssociatedAccount(associated ag_solanago.PublicKey) *MintV4

SetAssociatedAccount sets the "associated" account.

func (*MintV4) SetAssociatedTokenProgramAccount

func (inst *MintV4) SetAssociatedTokenProgramAccount(associatedTokenProgram ag_solanago.PublicKey) *MintV4

SetAssociatedTokenProgramAccount sets the "associatedTokenProgram" account.

func (*MintV4) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*MintV4) SetExpect

func (inst *MintV4) SetExpect(expect uint64) *MintV4

SetExpect sets the "expect" parameter.

func (*MintV4) SetMasterEditionAccount

func (inst *MintV4) SetMasterEditionAccount(masterEdition ag_solanago.PublicKey) *MintV4

SetMasterEditionAccount sets the "masterEdition" account.

func (*MintV4) SetMetadataAccount

func (inst *MintV4) SetMetadataAccount(metadata ag_solanago.PublicKey) *MintV4

SetMetadataAccount sets the "metadata" account.

func (*MintV4) SetMintAccount

func (inst *MintV4) SetMintAccount(mint ag_solanago.PublicKey) *MintV4

SetMintAccount sets the "mint" account.

func (*MintV4) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*MintV4) SetProof

func (inst *MintV4) SetProof(proof [][32]uint8) *MintV4

SetProof sets the "proof" parameter.

func (*MintV4) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*MintV4) SetTokenMetadataProgramAccount

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

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*MintV4) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account.

func (*MintV4) SetTotalMintsAccount

func (inst *MintV4) SetTotalMintsAccount(totalMints ag_solanago.PublicKey) *MintV4

SetTotalMintsAccount sets the "totalMints" account.

func (*MintV4) SetWallet2Account

func (inst *MintV4) SetWallet2Account(wallet2 ag_solanago.PublicKey) *MintV4

SetWallet2Account sets the "wallet2" account.

func (*MintV4) SetWalletAccount

func (inst *MintV4) SetWalletAccount(wallet ag_solanago.PublicKey) *MintV4

SetWalletAccount sets the "wallet" account.

func (*MintV4) UnmarshalWithDecoder

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

func (*MintV4) Validate

func (inst *MintV4) Validate() error

func (MintV4) ValidateAndBuild

func (inst MintV4) 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 MintV5

type MintV5 struct {
	Proof  *[][32]uint8
	Expect *uint64

	// [0] = [WRITE] candyMachine
	//
	// [1] = [WRITE, SIGNER] payer
	//
	// [2] = [WRITE] wallet
	//
	// [3] = [WRITE] wallet2
	//
	// [4] = [WRITE] metadata
	//
	// [5] = [WRITE, SIGNER] mint
	//
	// [6] = [WRITE] associated
	//
	// [7] = [WRITE] masterEdition
	//
	// [8] = [WRITE] totalMints
	//
	// [9] = [] associatedTokenProgram
	//
	// [10] = [] tokenMetadataProgram
	//
	// [11] = [] tokenProgram
	//
	// [12] = [] systemProgram
	ag_solanago.AccountMetaSlice `bin:"-"`
}

MintV5 is the `mintV5` instruction.

func NewMintV5Instruction

func NewMintV5Instruction(

	proof [][32]uint8,
	expect uint64,

	candyMachine ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	wallet ag_solanago.PublicKey,
	wallet2 ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	mint ag_solanago.PublicKey,
	associated ag_solanago.PublicKey,
	masterEdition ag_solanago.PublicKey,
	totalMints ag_solanago.PublicKey,
	associatedTokenProgram ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	additionalAccounts []ag_solanago.AccountMeta) *MintV5

NewMintV5Instruction declares a new MintV5 instruction with the provided parameters and accounts.

func NewMintV5InstructionBuilder

func NewMintV5InstructionBuilder() *MintV5

NewMintV5InstructionBuilder creates a new `MintV5` instruction builder.

func (MintV5) Build

func (inst MintV5) Build() *Instruction

func (*MintV5) EncodeToTree

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

func (*MintV5) GetAssociatedAccount

func (inst *MintV5) GetAssociatedAccount() *ag_solanago.AccountMeta

GetAssociatedAccount gets the "associated" account.

func (*MintV5) GetAssociatedTokenProgramAccount

func (inst *MintV5) GetAssociatedTokenProgramAccount() *ag_solanago.AccountMeta

GetAssociatedTokenProgramAccount gets the "associatedTokenProgram" account.

func (*MintV5) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*MintV5) GetMasterEditionAccount

func (inst *MintV5) GetMasterEditionAccount() *ag_solanago.AccountMeta

GetMasterEditionAccount gets the "masterEdition" account.

func (*MintV5) GetMetadataAccount

func (inst *MintV5) GetMetadataAccount() *ag_solanago.AccountMeta

GetMetadataAccount gets the "metadata" account.

func (*MintV5) GetMintAccount

func (inst *MintV5) GetMintAccount() *ag_solanago.AccountMeta

GetMintAccount gets the "mint" account.

func (*MintV5) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*MintV5) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*MintV5) GetTokenMetadataProgramAccount

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

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (*MintV5) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (*MintV5) GetTotalMintsAccount

func (inst *MintV5) GetTotalMintsAccount() *ag_solanago.AccountMeta

GetTotalMintsAccount gets the "totalMints" account.

func (*MintV5) GetWallet2Account

func (inst *MintV5) GetWallet2Account() *ag_solanago.AccountMeta

GetWallet2Account gets the "wallet2" account.

func (*MintV5) GetWalletAccount

func (inst *MintV5) GetWalletAccount() *ag_solanago.AccountMeta

GetWalletAccount gets the "wallet" account.

func (MintV5) MarshalWithEncoder

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

func (*MintV5) SetAdditionalAccounts added in v0.8.10

func (inst *MintV5) SetAdditionalAccounts(pk []ag_solanago.AccountMeta) *MintV5

func (*MintV5) SetAssociatedAccount

func (inst *MintV5) SetAssociatedAccount(associated ag_solanago.PublicKey) *MintV5

SetAssociatedAccount sets the "associated" account.

func (*MintV5) SetAssociatedTokenProgramAccount

func (inst *MintV5) SetAssociatedTokenProgramAccount(associatedTokenProgram ag_solanago.PublicKey) *MintV5

SetAssociatedTokenProgramAccount sets the "associatedTokenProgram" account.

func (*MintV5) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*MintV5) SetExpect

func (inst *MintV5) SetExpect(expect uint64) *MintV5

SetExpect sets the "expect" parameter.

func (*MintV5) SetMasterEditionAccount

func (inst *MintV5) SetMasterEditionAccount(masterEdition ag_solanago.PublicKey) *MintV5

SetMasterEditionAccount sets the "masterEdition" account.

func (*MintV5) SetMetadataAccount

func (inst *MintV5) SetMetadataAccount(metadata ag_solanago.PublicKey) *MintV5

SetMetadataAccount sets the "metadata" account.

func (*MintV5) SetMintAccount

func (inst *MintV5) SetMintAccount(mint ag_solanago.PublicKey) *MintV5

SetMintAccount sets the "mint" account.

func (*MintV5) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*MintV5) SetProof

func (inst *MintV5) SetProof(proof [][32]uint8) *MintV5

SetProof sets the "proof" parameter.

func (*MintV5) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*MintV5) SetTokenMetadataProgramAccount

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

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*MintV5) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account.

func (*MintV5) SetTotalMintsAccount

func (inst *MintV5) SetTotalMintsAccount(totalMints ag_solanago.PublicKey) *MintV5

SetTotalMintsAccount sets the "totalMints" account.

func (*MintV5) SetWallet2Account

func (inst *MintV5) SetWallet2Account(wallet2 ag_solanago.PublicKey) *MintV5

SetWallet2Account sets the "wallet2" account.

func (*MintV5) SetWalletAccount

func (inst *MintV5) SetWalletAccount(wallet ag_solanago.PublicKey) *MintV5

SetWalletAccount sets the "wallet" account.

func (*MintV5) UnmarshalWithDecoder

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

func (*MintV5) Validate

func (inst *MintV5) Validate() error

func (MintV5) ValidateAndBuild

func (inst MintV5) 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 NFTHolderMode

type NFTHolderMode struct {
	VerifiedCreator ag_solanago.PublicKey
	MintsPerNft     uint32
}

func (NFTHolderMode) MarshalWithEncoder

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

func (*NFTHolderMode) UnmarshalWithDecoder

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

type PublicMode

type PublicMode struct {
	MintsPerUser *uint32 `bin:"optional"`
}

func (PublicMode) MarshalWithEncoder

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

func (*PublicMode) UnmarshalWithDecoder

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

type Reveal

type Reveal struct {

	// [0] = [WRITE] candyMachine
	//
	// [1] = [WRITE] metadata
	//
	// [2] = [] tokenMetadataProgram
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Reveal is the `reveal` instruction.

func NewRevealInstruction

func NewRevealInstruction(

	candyMachine ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey) *Reveal

NewRevealInstruction declares a new Reveal instruction with the provided parameters and accounts.

func NewRevealInstructionBuilder

func NewRevealInstructionBuilder() *Reveal

NewRevealInstructionBuilder creates a new `Reveal` instruction builder.

func (Reveal) Build

func (inst Reveal) Build() *Instruction

func (*Reveal) EncodeToTree

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

func (*Reveal) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*Reveal) GetMetadataAccount

func (inst *Reveal) GetMetadataAccount() *ag_solanago.AccountMeta

GetMetadataAccount gets the "metadata" account.

func (*Reveal) GetTokenMetadataProgramAccount

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

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (Reveal) MarshalWithEncoder

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

func (*Reveal) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*Reveal) SetMetadataAccount

func (inst *Reveal) SetMetadataAccount(metadata ag_solanago.PublicKey) *Reveal

SetMetadataAccount sets the "metadata" account.

func (*Reveal) SetTokenMetadataProgramAccount

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

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*Reveal) UnmarshalWithDecoder

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

func (*Reveal) Validate

func (inst *Reveal) Validate() error

func (Reveal) ValidateAndBuild

func (inst Reveal) 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 RevealV5

type RevealV5 struct {

	// [0] = [WRITE] candyMachine
	//
	// [1] = [WRITE] metadata
	//
	// [2] = [] tokenMetadataProgram
	ag_solanago.AccountMetaSlice `bin:"-"`
}

RevealV5 is the `revealV5` instruction.

func NewRevealV5Instruction

func NewRevealV5Instruction(

	candyMachine ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey) *RevealV5

NewRevealV5Instruction declares a new RevealV5 instruction with the provided parameters and accounts.

func NewRevealV5InstructionBuilder

func NewRevealV5InstructionBuilder() *RevealV5

NewRevealV5InstructionBuilder creates a new `RevealV5` instruction builder.

func (RevealV5) Build

func (inst RevealV5) Build() *Instruction

func (*RevealV5) EncodeToTree

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

func (*RevealV5) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*RevealV5) GetMetadataAccount

func (inst *RevealV5) GetMetadataAccount() *ag_solanago.AccountMeta

GetMetadataAccount gets the "metadata" account.

func (*RevealV5) GetTokenMetadataProgramAccount

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

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (RevealV5) MarshalWithEncoder

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

func (*RevealV5) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*RevealV5) SetMetadataAccount

func (inst *RevealV5) SetMetadataAccount(metadata ag_solanago.PublicKey) *RevealV5

SetMetadataAccount sets the "metadata" account.

func (*RevealV5) SetTokenMetadataProgramAccount

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

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*RevealV5) UnmarshalWithDecoder

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

func (*RevealV5) Validate

func (inst *RevealV5) Validate() error

func (RevealV5) ValidateAndBuild

func (inst RevealV5) 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 SaleFaze

type SaleFaze struct {
	Start         int64
	Price         uint64
	Currency      *ag_solanago.PublicKey `bin:"optional"`
	WhitelistMode WhitelistMode
	Name          string
}

func (SaleFaze) MarshalWithEncoder

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

func (*SaleFaze) UnmarshalWithDecoder

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

type Thaw

type Thaw struct {

	// [0] = [WRITE] candyMachine
	//
	// [1] = [] mint
	//
	// [2] = [WRITE] associated
	//
	// [3] = [WRITE] metadata
	//
	// [4] = [WRITE] masterEdition
	//
	// [5] = [] tokenMetadataProgram
	//
	// [6] = [] tokenProgram
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Thaw is the `thaw` instruction.

func NewThawInstruction

func NewThawInstruction(

	candyMachine ag_solanago.PublicKey,
	mint ag_solanago.PublicKey,
	associated ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	masterEdition ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey) *Thaw

NewThawInstruction declares a new Thaw instruction with the provided parameters and accounts.

func NewThawInstructionBuilder

func NewThawInstructionBuilder() *Thaw

NewThawInstructionBuilder creates a new `Thaw` instruction builder.

func (Thaw) Build

func (inst Thaw) Build() *Instruction

func (*Thaw) EncodeToTree

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

func (*Thaw) GetAssociatedAccount

func (inst *Thaw) GetAssociatedAccount() *ag_solanago.AccountMeta

GetAssociatedAccount gets the "associated" account.

func (*Thaw) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*Thaw) GetMasterEditionAccount

func (inst *Thaw) GetMasterEditionAccount() *ag_solanago.AccountMeta

GetMasterEditionAccount gets the "masterEdition" account.

func (*Thaw) GetMetadataAccount

func (inst *Thaw) GetMetadataAccount() *ag_solanago.AccountMeta

GetMetadataAccount gets the "metadata" account.

func (*Thaw) GetMintAccount

func (inst *Thaw) GetMintAccount() *ag_solanago.AccountMeta

GetMintAccount gets the "mint" account.

func (*Thaw) GetTokenMetadataProgramAccount

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

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (*Thaw) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (Thaw) MarshalWithEncoder

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

func (*Thaw) SetAssociatedAccount

func (inst *Thaw) SetAssociatedAccount(associated ag_solanago.PublicKey) *Thaw

SetAssociatedAccount sets the "associated" account.

func (*Thaw) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*Thaw) SetMasterEditionAccount

func (inst *Thaw) SetMasterEditionAccount(masterEdition ag_solanago.PublicKey) *Thaw

SetMasterEditionAccount sets the "masterEdition" account.

func (*Thaw) SetMetadataAccount

func (inst *Thaw) SetMetadataAccount(metadata ag_solanago.PublicKey) *Thaw

SetMetadataAccount sets the "metadata" account.

func (*Thaw) SetMintAccount

func (inst *Thaw) SetMintAccount(mint ag_solanago.PublicKey) *Thaw

SetMintAccount sets the "mint" account.

func (*Thaw) SetTokenMetadataProgramAccount

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

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*Thaw) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account.

func (*Thaw) UnmarshalWithDecoder

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

func (*Thaw) Validate

func (inst *Thaw) Validate() error

func (Thaw) ValidateAndBuild

func (inst Thaw) 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 ThawV5

type ThawV5 struct {

	// [0] = [WRITE] candyMachine
	//
	// [1] = [] mint
	//
	// [2] = [WRITE] associated
	//
	// [3] = [WRITE] metadata
	//
	// [4] = [WRITE] masterEdition
	//
	// [5] = [] tokenMetadataProgram
	//
	// [6] = [] tokenProgram
	ag_solanago.AccountMetaSlice `bin:"-"`
}

ThawV5 is the `thawV5` instruction.

func NewThawV5Instruction

func NewThawV5Instruction(

	candyMachine ag_solanago.PublicKey,
	mint ag_solanago.PublicKey,
	associated ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	masterEdition ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey) *ThawV5

NewThawV5Instruction declares a new ThawV5 instruction with the provided parameters and accounts.

func NewThawV5InstructionBuilder

func NewThawV5InstructionBuilder() *ThawV5

NewThawV5InstructionBuilder creates a new `ThawV5` instruction builder.

func (ThawV5) Build

func (inst ThawV5) Build() *Instruction

func (*ThawV5) EncodeToTree

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

func (*ThawV5) GetAssociatedAccount

func (inst *ThawV5) GetAssociatedAccount() *ag_solanago.AccountMeta

GetAssociatedAccount gets the "associated" account.

func (*ThawV5) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*ThawV5) GetMasterEditionAccount

func (inst *ThawV5) GetMasterEditionAccount() *ag_solanago.AccountMeta

GetMasterEditionAccount gets the "masterEdition" account.

func (*ThawV5) GetMetadataAccount

func (inst *ThawV5) GetMetadataAccount() *ag_solanago.AccountMeta

GetMetadataAccount gets the "metadata" account.

func (*ThawV5) GetMintAccount

func (inst *ThawV5) GetMintAccount() *ag_solanago.AccountMeta

GetMintAccount gets the "mint" account.

func (*ThawV5) GetTokenMetadataProgramAccount

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

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (*ThawV5) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (ThawV5) MarshalWithEncoder

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

func (*ThawV5) SetAssociatedAccount

func (inst *ThawV5) SetAssociatedAccount(associated ag_solanago.PublicKey) *ThawV5

SetAssociatedAccount sets the "associated" account.

func (*ThawV5) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*ThawV5) SetMasterEditionAccount

func (inst *ThawV5) SetMasterEditionAccount(masterEdition ag_solanago.PublicKey) *ThawV5

SetMasterEditionAccount sets the "masterEdition" account.

func (*ThawV5) SetMetadataAccount

func (inst *ThawV5) SetMetadataAccount(metadata ag_solanago.PublicKey) *ThawV5

SetMetadataAccount sets the "metadata" account.

func (*ThawV5) SetMintAccount

func (inst *ThawV5) SetMintAccount(mint ag_solanago.PublicKey) *ThawV5

SetMintAccount sets the "mint" account.

func (*ThawV5) SetTokenMetadataProgramAccount

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

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*ThawV5) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account.

func (*ThawV5) UnmarshalWithDecoder

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

func (*ThawV5) Validate

func (inst *ThawV5) Validate() error

func (ThawV5) ValidateAndBuild

func (inst ThawV5) 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 TotalMints

type TotalMints struct {
	Total uint32
}

func (TotalMints) MarshalWithEncoder

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

func (*TotalMints) UnmarshalWithDecoder

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

type Whitelist

type Whitelist struct {
	Authority    ag_solanago.PublicKey
	CandyMachine ag_solanago.PublicKey
	MerkleRoot   *[32]uint8 `bin:"optional"`
}

func (Whitelist) MarshalWithEncoder

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

func (*Whitelist) UnmarshalWithDecoder

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

type WhitelistMode

type WhitelistMode interface {
	// contains filtered or unexported methods
}

type WhitelistModeNFTBased

type WhitelistModeNFTBased struct {
	Info NFTHolderMode
}

func (WhitelistModeNFTBased) MarshalWithEncoder

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

func (*WhitelistModeNFTBased) UnmarshalWithDecoder

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

type WhitelistModePublic

type WhitelistModePublic struct {
	Info PublicMode
}

func (WhitelistModePublic) MarshalWithEncoder

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

func (*WhitelistModePublic) UnmarshalWithDecoder

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

type WhitelistModeTokenBased

type WhitelistModeTokenBased struct {
	Info WhitelistTokenMode
}

func (WhitelistModeTokenBased) MarshalWithEncoder

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

func (*WhitelistModeTokenBased) UnmarshalWithDecoder

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

type WhitelistModeWalletBased

type WhitelistModeWalletBased struct {
	Info WhitelistWalletListMode
}

func (WhitelistModeWalletBased) MarshalWithEncoder

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

func (*WhitelistModeWalletBased) UnmarshalWithDecoder

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

type WhitelistTokenMode

type WhitelistTokenMode struct {
	TokenMint ag_solanago.PublicKey
	Burn      bool
}

func (WhitelistTokenMode) MarshalWithEncoder

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

func (*WhitelistTokenMode) UnmarshalWithDecoder

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

type WhitelistV2

type WhitelistV2 struct {
	MerkleRoot   [32]uint8
	MintsPerUser *uint32 `bin:"optional"`
	GoLiveDate   int64
	Price        *uint64 `bin:"optional"`
}

func (WhitelistV2) MarshalWithEncoder

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

func (*WhitelistV2) UnmarshalWithDecoder

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

type WhitelistWalletListMode

type WhitelistWalletListMode struct {
	MintsPerUser uint32
	MerkleRoot   [32]uint8
}

func (WhitelistWalletListMode) MarshalWithEncoder

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

func (*WhitelistWalletListMode) UnmarshalWithDecoder

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

Jump to

Keyboard shortcuts

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