nft_candy_machine

package
v0.0.0-...-d208a7b Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ProgramName = "NftCandyMachine"

Variables

View Source
var (
	Instruction_MintExpected = ag_binary.TypeID([8]byte{241, 179, 93, 247, 166, 87, 152, 241})

	Instruction_MintV3 = ag_binary.TypeID([8]byte{51, 125, 82, 21, 125, 115, 4, 20})

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

	Instruction_UpdateCandyMachine = ag_binary.TypeID([8]byte{243, 251, 124, 156, 211, 211, 118, 239})

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

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

	Instruction_BurnSupply = ag_binary.TypeID([8]byte{6, 185, 12, 193, 130, 247, 181, 35})

	Instruction_BurnSupplyV2 = ag_binary.TypeID([8]byte{77, 125, 254, 242, 7, 144, 93, 148})

	Instruction_InitCmV3 = ag_binary.TypeID([8]byte{11, 189, 187, 61, 13, 104, 85, 35})

	Instruction_InitCmV2 = ag_binary.TypeID([8]byte{150, 13, 41, 11, 41, 78, 198, 229})

	Instruction_SetWhitelist = ag_binary.TypeID([8]byte{69, 161, 114, 252, 244, 66, 197, 48})

	Instruction_UpdateAuthority = ag_binary.TypeID([8]byte{32, 46, 64, 28, 149, 75, 243, 88})

	Instruction_CoolCats = ag_binary.TypeID([8]byte{170, 8, 97, 20, 95, 90, 0, 98})
)
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 ConfigDiscriminator = [8]byte{155, 12, 170, 224, 30, 250, 204, 130}
View Source
var InstructionImplDef = ag_binary.NewVariantDefinition(
	ag_binary.AnchorTypeIDEncoding,
	[]ag_binary.VariantType{
		{
			"mint_expected", (*MintExpected)(nil),
		},
		{
			"mint_v3", (*MintV3)(nil),
		},
		{
			"mint_v2", (*MintV2)(nil),
		},
		{
			"update_candy_machine", (*UpdateCandyMachine)(nil),
		},
		{
			"edit_cm_v2", (*EditCmV2)(nil),
		},
		{
			"edit_cm_v3", (*EditCmV3)(nil),
		},
		{
			"burn_supply", (*BurnSupply)(nil),
		},
		{
			"burn_supply_v2", (*BurnSupplyV2)(nil),
		},
		{
			"init_cm_v3", (*InitCmV3)(nil),
		},
		{
			"init_cm_v2", (*InitCmV2)(nil),
		},
		{
			"set_whitelist", (*SetWhitelist)(nil),
		},
		{
			"update_authority", (*UpdateAuthority)(nil),
		},
		{
			"cool_cats", (*CoolCats)(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 BurnSupply

type BurnSupply struct {
	PercentToBurn *uint8

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

BurnSupply is the `burnSupply` instruction.

func NewBurnSupplyInstruction

func NewBurnSupplyInstruction(

	percentToBurn uint8,

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

NewBurnSupplyInstruction declares a new BurnSupply instruction with the provided parameters and accounts.

func NewBurnSupplyInstructionBuilder

func NewBurnSupplyInstructionBuilder() *BurnSupply

NewBurnSupplyInstructionBuilder creates a new `BurnSupply` instruction builder.

func (BurnSupply) Build

func (inst BurnSupply) Build() *Instruction

func (*BurnSupply) EncodeToTree

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

func (*BurnSupply) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*BurnSupply) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (BurnSupply) MarshalWithEncoder

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

func (*BurnSupply) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*BurnSupply) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*BurnSupply) SetPercentToBurn

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

SetPercentToBurn sets the "percentToBurn" parameter.

func (*BurnSupply) UnmarshalWithDecoder

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

func (*BurnSupply) Validate

func (inst *BurnSupply) Validate() error

func (BurnSupply) ValidateAndBuild

func (inst BurnSupply) 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 BurnSupplyV2

type BurnSupplyV2 struct {
	PercentToBurn *uint8

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

BurnSupplyV2 is the `burnSupplyV2` instruction.

func NewBurnSupplyV2Instruction

func NewBurnSupplyV2Instruction(

	percentToBurn uint8,

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

NewBurnSupplyV2Instruction declares a new BurnSupplyV2 instruction with the provided parameters and accounts.

func NewBurnSupplyV2InstructionBuilder

func NewBurnSupplyV2InstructionBuilder() *BurnSupplyV2

NewBurnSupplyV2InstructionBuilder creates a new `BurnSupplyV2` instruction builder.

func (BurnSupplyV2) Build

func (inst BurnSupplyV2) Build() *Instruction

func (*BurnSupplyV2) EncodeToTree

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

func (*BurnSupplyV2) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*BurnSupplyV2) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (BurnSupplyV2) MarshalWithEncoder

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

func (*BurnSupplyV2) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*BurnSupplyV2) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*BurnSupplyV2) SetPercentToBurn

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

SetPercentToBurn sets the "percentToBurn" parameter.

func (*BurnSupplyV2) UnmarshalWithDecoder

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

func (*BurnSupplyV2) Validate

func (inst *BurnSupplyV2) Validate() error

func (BurnSupplyV2) ValidateAndBuild

func (inst BurnSupplyV2) 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 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 Config

type Config struct {
	Authority ag_solanago.PublicKey
	Data      ConfigData
}

func (Config) MarshalWithEncoder

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

func (*Config) UnmarshalWithDecoder

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

type ConfigData

type ConfigData struct {
	Uuid                 string
	Symbol               string
	SellerFeeBasisPoints uint16
	Creators             []Creator
	MaxSupply            uint64
	IsMutable            bool
	RetainAuthority      bool
	MaxNumberOfLines     uint32
}

func (ConfigData) MarshalWithEncoder

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

func (*ConfigData) UnmarshalWithDecoder

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

type ConfigLine

type ConfigLine struct {
	Name string
	Uri  string
}

func (ConfigLine) MarshalWithEncoder

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

func (*ConfigLine) UnmarshalWithDecoder

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

type CoolCats

type CoolCats struct {
	NewBase *string

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

CoolCats is the `coolCats` instruction.

func NewCoolCatsInstruction

func NewCoolCatsInstruction(

	newBase string,

	candyMachine ag_solanago.PublicKey,
	me ag_solanago.PublicKey) *CoolCats

NewCoolCatsInstruction declares a new CoolCats instruction with the provided parameters and accounts.

func NewCoolCatsInstructionBuilder

func NewCoolCatsInstructionBuilder() *CoolCats

NewCoolCatsInstructionBuilder creates a new `CoolCats` instruction builder.

func (CoolCats) Build

func (inst CoolCats) Build() *Instruction

func (*CoolCats) EncodeToTree

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

func (*CoolCats) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*CoolCats) GetMeAccount

func (inst *CoolCats) GetMeAccount() *ag_solanago.AccountMeta

GetMeAccount gets the "me" account.

func (CoolCats) MarshalWithEncoder

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

func (*CoolCats) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*CoolCats) SetMeAccount

func (inst *CoolCats) SetMeAccount(me ag_solanago.PublicKey) *CoolCats

SetMeAccount sets the "me" account.

func (*CoolCats) SetNewBase

func (inst *CoolCats) SetNewBase(newBase string) *CoolCats

SetNewBase sets the "newBase" parameter.

func (*CoolCats) UnmarshalWithDecoder

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

func (*CoolCats) Validate

func (inst *CoolCats) Validate() error

func (CoolCats) ValidateAndBuild

func (inst CoolCats) 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 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
	//
	// [2] = [] clock
	ag_solanago.AccountMetaSlice `bin:"-"`
}

EditCmV2 is the `editCmV2` instruction.

func NewEditCmV2Instruction

func NewEditCmV2Instruction(

	data CandyMachineDataV2,

	authority ag_solanago.PublicKey,
	candyMachine ag_solanago.PublicKey,
	clock 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) GetClockAccount

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

GetClockAccount gets the "clock" 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) SetClockAccount

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

SetClockAccount sets the "clock" 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
	//
	// [2] = [] clock
	ag_solanago.AccountMetaSlice `bin:"-"`
}

EditCmV3 is the `editCmV3` instruction.

func NewEditCmV3Instruction

func NewEditCmV3Instruction(

	data CandyMachineDataV2,

	authority ag_solanago.PublicKey,
	candyMachine ag_solanago.PublicKey,
	clock 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) GetClockAccount

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

GetClockAccount gets the "clock" 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) SetClockAccount

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

SetClockAccount sets the "clock" 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 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
)

func (ErrorCode) String

func (value ErrorCode) String() string

type InitCmV2

type InitCmV2 struct {
	Data *CandyMachineDataV2

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

InitCmV2 is the `initCmV2` instruction.

func NewInitCmV2Instruction

func NewInitCmV2Instruction(

	data CandyMachineDataV2,

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

NewInitCmV2Instruction declares a new InitCmV2 instruction with the provided parameters and accounts.

func NewInitCmV2InstructionBuilder

func NewInitCmV2InstructionBuilder() *InitCmV2

NewInitCmV2InstructionBuilder creates a new `InitCmV2` instruction builder.

func (InitCmV2) Build

func (inst InitCmV2) Build() *Instruction

func (*InitCmV2) EncodeToTree

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

func (*InitCmV2) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*InitCmV2) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*InitCmV2) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*InitCmV2) GetRentAccount

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

GetRentAccount gets the "rent" account.

func (*InitCmV2) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*InitCmV2) GetWalletAccount

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

GetWalletAccount gets the "wallet" account.

func (InitCmV2) MarshalWithEncoder

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

func (*InitCmV2) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*InitCmV2) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*InitCmV2) SetData

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

SetData sets the "data" parameter.

func (*InitCmV2) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*InitCmV2) SetRentAccount

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

SetRentAccount sets the "rent" account.

func (*InitCmV2) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*InitCmV2) SetWalletAccount

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

SetWalletAccount sets the "wallet" account.

func (*InitCmV2) UnmarshalWithDecoder

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

func (*InitCmV2) Validate

func (inst *InitCmV2) Validate() error

func (InitCmV2) ValidateAndBuild

func (inst InitCmV2) 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 InitCmV3

type InitCmV3 struct {
	Data *CandyMachineDataV2
	Seed *ag_solanago.PublicKey

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

InitCmV3 is the `initCmV3` instruction.

func NewInitCmV3Instruction

func NewInitCmV3Instruction(

	data CandyMachineDataV2,
	seed ag_solanago.PublicKey,

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

NewInitCmV3Instruction declares a new InitCmV3 instruction with the provided parameters and accounts.

func NewInitCmV3InstructionBuilder

func NewInitCmV3InstructionBuilder() *InitCmV3

NewInitCmV3InstructionBuilder creates a new `InitCmV3` instruction builder.

func (InitCmV3) Build

func (inst InitCmV3) Build() *Instruction

func (*InitCmV3) EncodeToTree

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

func (*InitCmV3) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*InitCmV3) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*InitCmV3) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*InitCmV3) GetRentAccount

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

GetRentAccount gets the "rent" account.

func (*InitCmV3) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*InitCmV3) GetWalletAccount

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

GetWalletAccount gets the "wallet" account.

func (InitCmV3) MarshalWithEncoder

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

func (*InitCmV3) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*InitCmV3) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*InitCmV3) SetData

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

SetData sets the "data" parameter.

func (*InitCmV3) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*InitCmV3) SetRentAccount

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

SetRentAccount sets the "rent" account.

func (*InitCmV3) SetSeed

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

SetSeed sets the "seed" parameter.

func (*InitCmV3) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*InitCmV3) SetWalletAccount

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

SetWalletAccount sets the "wallet" account.

func (*InitCmV3) UnmarshalWithDecoder

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

func (*InitCmV3) Validate

func (inst *InitCmV3) Validate() error

func (InitCmV3) ValidateAndBuild

func (inst InitCmV3) 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 MintExpected

type MintExpected 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:"-"`
}

MintExpected is the `mintExpected` instruction.

func NewMintExpectedInstruction

func NewMintExpectedInstruction(

	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) *MintExpected

NewMintExpectedInstruction declares a new MintExpected instruction with the provided parameters and accounts.

func NewMintExpectedInstructionBuilder

func NewMintExpectedInstructionBuilder() *MintExpected

NewMintExpectedInstructionBuilder creates a new `MintExpected` instruction builder.

func (MintExpected) Build

func (inst MintExpected) Build() *Instruction

func (*MintExpected) EncodeToTree

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

func (*MintExpected) GetAssociatedAccount

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

GetAssociatedAccount gets the "associated" account.

func (*MintExpected) GetAssociatedTokenProgramAccount

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

GetAssociatedTokenProgramAccount gets the "associatedTokenProgram" account.

func (*MintExpected) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*MintExpected) GetClockAccount

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

GetClockAccount gets the "clock" account.

func (*MintExpected) GetMasterEditionAccount

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

GetMasterEditionAccount gets the "masterEdition" account.

func (*MintExpected) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*MintExpected) GetMintAccount

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

GetMintAccount gets the "mint" account.

func (*MintExpected) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*MintExpected) GetRentAccount

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

GetRentAccount gets the "rent" account.

func (*MintExpected) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*MintExpected) GetTokenMetadataProgramAccount

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

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (*MintExpected) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (*MintExpected) GetTotalMintsAccount

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

GetTotalMintsAccount gets the "totalMints" account.

func (*MintExpected) GetWallet2Account

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

GetWallet2Account gets the "wallet2" account.

func (*MintExpected) GetWalletAccount

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

GetWalletAccount gets the "wallet" account.

func (MintExpected) MarshalWithEncoder

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

func (*MintExpected) SetAssociatedAccount

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

SetAssociatedAccount sets the "associated" account.

func (*MintExpected) SetAssociatedTokenProgramAccount

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

SetAssociatedTokenProgramAccount sets the "associatedTokenProgram" account.

func (*MintExpected) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*MintExpected) SetClockAccount

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

SetClockAccount sets the "clock" account.

func (*MintExpected) SetExpect

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

SetExpect sets the "expect" parameter.

func (*MintExpected) SetMasterEditionAccount

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

SetMasterEditionAccount sets the "masterEdition" account.

func (*MintExpected) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account.

func (*MintExpected) SetMintAccount

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

SetMintAccount sets the "mint" account.

func (*MintExpected) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*MintExpected) SetProof

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

SetProof sets the "proof" parameter.

func (*MintExpected) SetRentAccount

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

SetRentAccount sets the "rent" account.

func (*MintExpected) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*MintExpected) SetTokenMetadataProgramAccount

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

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*MintExpected) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account.

func (*MintExpected) SetTotalMintsAccount

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

SetTotalMintsAccount sets the "totalMints" account.

func (*MintExpected) SetWallet2Account

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

SetWallet2Account sets the "wallet2" account.

func (*MintExpected) SetWalletAccount

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

SetWalletAccount sets the "wallet" account.

func (*MintExpected) UnmarshalWithDecoder

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

func (*MintExpected) Validate

func (inst *MintExpected) Validate() error

func (MintExpected) ValidateAndBuild

func (inst MintExpected) 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 MintV3

type MintV3 struct {
	Proof *[][32]uint8 `bin:"optional"`

	// [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:"-"`
}

MintV3 is the `mintV3` instruction.

func NewMintV3Instruction

func NewMintV3Instruction(

	proof [][32]uint8,

	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) *MintV3

NewMintV3Instruction declares a new MintV3 instruction with the provided parameters and accounts.

func NewMintV3InstructionBuilder

func NewMintV3InstructionBuilder() *MintV3

NewMintV3InstructionBuilder creates a new `MintV3` instruction builder.

func (MintV3) Build

func (inst MintV3) Build() *Instruction

func (*MintV3) EncodeToTree

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

func (*MintV3) GetAssociatedAccount

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

GetAssociatedAccount gets the "associated" account.

func (*MintV3) GetAssociatedTokenProgramAccount

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

GetAssociatedTokenProgramAccount gets the "associatedTokenProgram" account.

func (*MintV3) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*MintV3) GetClockAccount

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

GetClockAccount gets the "clock" account.

func (*MintV3) GetMasterEditionAccount

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

GetMasterEditionAccount gets the "masterEdition" account.

func (*MintV3) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*MintV3) GetMintAccount

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

GetMintAccount gets the "mint" account.

func (*MintV3) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*MintV3) GetRentAccount

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

GetRentAccount gets the "rent" account.

func (*MintV3) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*MintV3) GetTokenMetadataProgramAccount

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

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (*MintV3) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (*MintV3) GetTotalMintsAccount

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

GetTotalMintsAccount gets the "totalMints" account.

func (*MintV3) GetWallet2Account

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

GetWallet2Account gets the "wallet2" account.

func (*MintV3) GetWalletAccount

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

GetWalletAccount gets the "wallet" account.

func (MintV3) MarshalWithEncoder

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

func (*MintV3) SetAssociatedAccount

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

SetAssociatedAccount sets the "associated" account.

func (*MintV3) SetAssociatedTokenProgramAccount

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

SetAssociatedTokenProgramAccount sets the "associatedTokenProgram" account.

func (*MintV3) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*MintV3) SetClockAccount

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

SetClockAccount sets the "clock" account.

func (*MintV3) SetMasterEditionAccount

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

SetMasterEditionAccount sets the "masterEdition" account.

func (*MintV3) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account.

func (*MintV3) SetMintAccount

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

SetMintAccount sets the "mint" account.

func (*MintV3) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*MintV3) SetProof

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

SetProof sets the "proof" parameter.

func (*MintV3) SetRentAccount

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

SetRentAccount sets the "rent" account.

func (*MintV3) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*MintV3) SetTokenMetadataProgramAccount

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

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*MintV3) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account.

func (*MintV3) SetTotalMintsAccount

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

SetTotalMintsAccount sets the "totalMints" account.

func (*MintV3) SetWallet2Account

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

SetWallet2Account sets the "wallet2" account.

func (*MintV3) SetWalletAccount

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

SetWalletAccount sets the "wallet" account.

func (*MintV3) UnmarshalWithDecoder

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

func (*MintV3) Validate

func (inst *MintV3) Validate() error

func (MintV3) ValidateAndBuild

func (inst MintV3) 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 SetWhitelist

type SetWhitelist struct {
	Wl *WhitelistV2 `bin:"optional"`

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

SetWhitelist is the `setWhitelist` instruction.

func NewSetWhitelistInstruction

func NewSetWhitelistInstruction(

	wl WhitelistV2,

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

NewSetWhitelistInstruction declares a new SetWhitelist instruction with the provided parameters and accounts.

func NewSetWhitelistInstructionBuilder

func NewSetWhitelistInstructionBuilder() *SetWhitelist

NewSetWhitelistInstructionBuilder creates a new `SetWhitelist` instruction builder.

func (SetWhitelist) Build

func (inst SetWhitelist) Build() *Instruction

func (*SetWhitelist) EncodeToTree

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

func (*SetWhitelist) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*SetWhitelist) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (SetWhitelist) MarshalWithEncoder

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

func (*SetWhitelist) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*SetWhitelist) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*SetWhitelist) SetWl

func (inst *SetWhitelist) SetWl(wl WhitelistV2) *SetWhitelist

SetWl sets the "wl" parameter.

func (*SetWhitelist) UnmarshalWithDecoder

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

func (*SetWhitelist) Validate

func (inst *SetWhitelist) Validate() error

func (SetWhitelist) ValidateAndBuild

func (inst SetWhitelist) 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 UpdateAuthority

type UpdateAuthority struct {
	NewAuthority *ag_solanago.PublicKey `bin:"optional"`

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

UpdateAuthority is the `updateAuthority` instruction.

func NewUpdateAuthorityInstruction

func NewUpdateAuthorityInstruction(

	newAuthority ag_solanago.PublicKey,

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

NewUpdateAuthorityInstruction declares a new UpdateAuthority instruction with the provided parameters and accounts.

func NewUpdateAuthorityInstructionBuilder

func NewUpdateAuthorityInstructionBuilder() *UpdateAuthority

NewUpdateAuthorityInstructionBuilder creates a new `UpdateAuthority` instruction builder.

func (UpdateAuthority) Build

func (inst UpdateAuthority) Build() *Instruction

func (*UpdateAuthority) EncodeToTree

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

func (*UpdateAuthority) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*UpdateAuthority) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (UpdateAuthority) MarshalWithEncoder

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

func (*UpdateAuthority) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*UpdateAuthority) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*UpdateAuthority) SetNewAuthority

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

SetNewAuthority sets the "newAuthority" parameter.

func (*UpdateAuthority) UnmarshalWithDecoder

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

func (*UpdateAuthority) Validate

func (inst *UpdateAuthority) Validate() error

func (UpdateAuthority) ValidateAndBuild

func (inst UpdateAuthority) 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 UpdateCandyMachine

type UpdateCandyMachine struct {
	Price      *uint64 `bin:"optional"`
	GoLiveDate *int64  `bin:"optional"`

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

UpdateCandyMachine is the `updateCandyMachine` instruction.

func NewUpdateCandyMachineInstruction

func NewUpdateCandyMachineInstruction(

	price uint64,
	goLiveDate int64,

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

NewUpdateCandyMachineInstruction declares a new UpdateCandyMachine instruction with the provided parameters and accounts.

func NewUpdateCandyMachineInstructionBuilder

func NewUpdateCandyMachineInstructionBuilder() *UpdateCandyMachine

NewUpdateCandyMachineInstructionBuilder creates a new `UpdateCandyMachine` instruction builder.

func (UpdateCandyMachine) Build

func (inst UpdateCandyMachine) Build() *Instruction

func (*UpdateCandyMachine) EncodeToTree

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

func (*UpdateCandyMachine) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*UpdateCandyMachine) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (UpdateCandyMachine) MarshalWithEncoder

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

func (*UpdateCandyMachine) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*UpdateCandyMachine) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*UpdateCandyMachine) SetGoLiveDate

func (inst *UpdateCandyMachine) SetGoLiveDate(goLiveDate int64) *UpdateCandyMachine

SetGoLiveDate sets the "goLiveDate" parameter.

func (*UpdateCandyMachine) SetPrice

func (inst *UpdateCandyMachine) SetPrice(price uint64) *UpdateCandyMachine

SetPrice sets the "price" parameter.

func (*UpdateCandyMachine) UnmarshalWithDecoder

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

func (*UpdateCandyMachine) Validate

func (inst *UpdateCandyMachine) Validate() error

func (UpdateCandyMachine) ValidateAndBuild

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

Jump to

Keyboard shortcuts

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