candy_machine

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ProgramName = "CandyMachine"

Variables

View Source
var (
	Instruction_InitializeCandyMachine = ag_binary.TypeID([8]byte{142, 137, 167, 107, 47, 39, 240, 124})

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

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

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

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

	Instruction_RemoveCollection = ag_binary.TypeID([8]byte{223, 52, 106, 217, 61, 220, 36, 160})

	Instruction_MintNft = ag_binary.TypeID([8]byte{211, 57, 6, 167, 15, 219, 35, 251})

	Instruction_SetCollectionDuringMint = ag_binary.TypeID([8]byte{103, 17, 200, 25, 118, 95, 125, 61})

	Instruction_SetLockupSettings = ag_binary.TypeID([8]byte{124, 128, 161, 215, 10, 153, 211, 196})

	Instruction_CloseLockupSettings = ag_binary.TypeID([8]byte{111, 166, 221, 21, 169, 96, 201, 123})

	Instruction_SetPermissionedSettings = ag_binary.TypeID([8]byte{254, 107, 24, 140, 97, 62, 219, 233})

	Instruction_ClosePermissionedSettings = ag_binary.TypeID([8]byte{23, 185, 11, 107, 101, 221, 97, 242})

	Instruction_WithdrawFunds = ag_binary.TypeID([8]byte{241, 36, 29, 111, 208, 31, 104, 217})
)
View Source
var CandyMachineDiscriminator = [8]byte{51, 173, 177, 113, 25, 241, 109, 189}
View Source
var CollectionPDADiscriminator = [8]byte{50, 183, 127, 103, 4, 213, 92, 53}
View Source
var InstructionImplDef = ag_binary.NewVariantDefinition(
	ag_binary.AnchorTypeIDEncoding,
	[]ag_binary.VariantType{
		{
			"initialize_candy_machine", (*InitializeCandyMachine)(nil),
		},
		{
			"update_candy_machine", (*UpdateCandyMachine)(nil),
		},
		{
			"update_authority", (*UpdateAuthority)(nil),
		},
		{
			"add_config_lines", (*AddConfigLines)(nil),
		},
		{
			"set_collection", (*SetCollection)(nil),
		},
		{
			"remove_collection", (*RemoveCollection)(nil),
		},
		{
			"mint_nft", (*MintNft)(nil),
		},
		{
			"set_collection_during_mint", (*SetCollectionDuringMint)(nil),
		},
		{
			"set_lockup_settings", (*SetLockupSettings)(nil),
		},
		{
			"close_lockup_settings", (*CloseLockupSettings)(nil),
		},
		{
			"set_permissioned_settings", (*SetPermissionedSettings)(nil),
		},
		{
			"close_permissioned_settings", (*ClosePermissionedSettings)(nil),
		},
		{
			"withdraw_funds", (*WithdrawFunds)(nil),
		},
	},
)
View Source
var LockupSettingsDiscriminator = [8]byte{245, 45, 181, 109, 28, 85, 201, 222}
View Source
var PermissionedSettingsDiscriminator = [8]byte{19, 206, 24, 59, 125, 147, 136, 121}
View Source
var ProgramID ag_solanago.PublicKey = ag_solanago.MustPublicKeyFromBase58("ccmpgw68x3NJmNPePFrTm6TsKCEYUVhF8rEAVL9rSDd")

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 AddConfigLines

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

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

AddConfigLines is the `addConfigLines` instruction.

func NewAddConfigLinesInstruction

func NewAddConfigLinesInstruction(

	index uint32,
	configLines []ConfigLine,

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

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

func NewAddConfigLinesInstructionBuilder

func NewAddConfigLinesInstructionBuilder() *AddConfigLines

NewAddConfigLinesInstructionBuilder creates a new `AddConfigLines` instruction builder.

func (AddConfigLines) Build

func (inst AddConfigLines) Build() *Instruction

func (*AddConfigLines) EncodeToTree

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

func (*AddConfigLines) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*AddConfigLines) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (AddConfigLines) MarshalWithEncoder

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

func (*AddConfigLines) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*AddConfigLines) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*AddConfigLines) SetConfigLines

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

SetConfigLines sets the "configLines" parameter.

func (*AddConfigLines) SetIndex

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

SetIndex sets the "index" parameter.

func (*AddConfigLines) UnmarshalWithDecoder

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

func (*AddConfigLines) Validate

func (inst *AddConfigLines) Validate() error

func (AddConfigLines) ValidateAndBuild

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

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

type CandyMachine

type CandyMachine struct {
	Authority     ag_solanago.PublicKey
	Wallet        ag_solanago.PublicKey
	TokenMint     *ag_solanago.PublicKey `bin:"optional"`
	ItemsRedeemed uint64
	Data          CandyMachineData
}

func (CandyMachine) MarshalWithEncoder

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

func (*CandyMachine) UnmarshalWithDecoder

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

type CandyMachineData

type CandyMachineData struct {
	Uuid                  string
	Price                 uint64
	Symbol                string
	SellerFeeBasisPoints  uint16
	MaxSupply             uint64
	IsMutable             bool
	RetainAuthority       bool
	GoLiveDate            *int64       `bin:"optional"`
	EndSettings           *EndSettings `bin:"optional"`
	Creators              []Creator
	HiddenSettings        *HiddenSettings        `bin:"optional"`
	WhitelistMintSettings *WhitelistMintSettings `bin:"optional"`
	ItemsAvailable        uint64
	Gatekeeper            *GatekeeperConfig `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 CloseLockupSettings

type CloseLockupSettings struct {

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

CloseLockupSettings is the `closeLockupSettings` instruction.

func NewCloseLockupSettingsInstruction

func NewCloseLockupSettingsInstruction(

	candyMachine ag_solanago.PublicKey,
	authority ag_solanago.PublicKey,
	lockupSettings ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey) *CloseLockupSettings

NewCloseLockupSettingsInstruction declares a new CloseLockupSettings instruction with the provided parameters and accounts.

func NewCloseLockupSettingsInstructionBuilder

func NewCloseLockupSettingsInstructionBuilder() *CloseLockupSettings

NewCloseLockupSettingsInstructionBuilder creates a new `CloseLockupSettings` instruction builder.

func (CloseLockupSettings) Build

func (inst CloseLockupSettings) Build() *Instruction

func (*CloseLockupSettings) EncodeToTree

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

func (*CloseLockupSettings) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*CloseLockupSettings) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*CloseLockupSettings) GetLockupSettingsAccount

func (inst *CloseLockupSettings) GetLockupSettingsAccount() *ag_solanago.AccountMeta

GetLockupSettingsAccount gets the "lockupSettings" account.

func (*CloseLockupSettings) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (CloseLockupSettings) MarshalWithEncoder

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

func (*CloseLockupSettings) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*CloseLockupSettings) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*CloseLockupSettings) SetLockupSettingsAccount

func (inst *CloseLockupSettings) SetLockupSettingsAccount(lockupSettings ag_solanago.PublicKey) *CloseLockupSettings

SetLockupSettingsAccount sets the "lockupSettings" account.

func (*CloseLockupSettings) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*CloseLockupSettings) UnmarshalWithDecoder

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

func (*CloseLockupSettings) Validate

func (inst *CloseLockupSettings) Validate() error

func (CloseLockupSettings) ValidateAndBuild

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

type ClosePermissionedSettings struct {

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

ClosePermissionedSettings is the `closePermissionedSettings` instruction.

func NewClosePermissionedSettingsInstruction

func NewClosePermissionedSettingsInstruction(

	candyMachine ag_solanago.PublicKey,
	authority ag_solanago.PublicKey,
	permissionedSettings ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey) *ClosePermissionedSettings

NewClosePermissionedSettingsInstruction declares a new ClosePermissionedSettings instruction with the provided parameters and accounts.

func NewClosePermissionedSettingsInstructionBuilder

func NewClosePermissionedSettingsInstructionBuilder() *ClosePermissionedSettings

NewClosePermissionedSettingsInstructionBuilder creates a new `ClosePermissionedSettings` instruction builder.

func (ClosePermissionedSettings) Build

func (inst ClosePermissionedSettings) Build() *Instruction

func (*ClosePermissionedSettings) EncodeToTree

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

func (*ClosePermissionedSettings) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*ClosePermissionedSettings) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*ClosePermissionedSettings) GetPermissionedSettingsAccount

func (inst *ClosePermissionedSettings) GetPermissionedSettingsAccount() *ag_solanago.AccountMeta

GetPermissionedSettingsAccount gets the "permissionedSettings" account.

func (*ClosePermissionedSettings) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (ClosePermissionedSettings) MarshalWithEncoder

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

func (*ClosePermissionedSettings) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*ClosePermissionedSettings) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*ClosePermissionedSettings) SetPermissionedSettingsAccount

func (inst *ClosePermissionedSettings) SetPermissionedSettingsAccount(permissionedSettings ag_solanago.PublicKey) *ClosePermissionedSettings

SetPermissionedSettingsAccount sets the "permissionedSettings" account.

func (*ClosePermissionedSettings) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*ClosePermissionedSettings) UnmarshalWithDecoder

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

func (*ClosePermissionedSettings) Validate

func (inst *ClosePermissionedSettings) Validate() error

func (ClosePermissionedSettings) ValidateAndBuild

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

type CollectionPDA struct {
	Mint         ag_solanago.PublicKey
	CandyMachine ag_solanago.PublicKey
}

func (CollectionPDA) MarshalWithEncoder

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

func (*CollectionPDA) UnmarshalWithDecoder

func (obj *CollectionPDA) 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 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 EndSettingType

type EndSettingType ag_binary.BorshEnum
const (
	EndSettingTypeDate EndSettingType = iota
	EndSettingTypeAmount
)

func (EndSettingType) String

func (value EndSettingType) String() string

type EndSettings

type EndSettings struct {
	EndSettingType EndSettingType
	Number         uint64
}

func (EndSettings) MarshalWithEncoder

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

func (*EndSettings) UnmarshalWithDecoder

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

type GatekeeperConfig

type GatekeeperConfig struct {
	GatekeeperNetwork ag_solanago.PublicKey
	ExpireOnUse       bool
}

func (GatekeeperConfig) MarshalWithEncoder

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

func (*GatekeeperConfig) UnmarshalWithDecoder

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

type HiddenSettings

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

func (HiddenSettings) MarshalWithEncoder

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

func (*HiddenSettings) UnmarshalWithDecoder

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

type InitializeCandyMachine

type InitializeCandyMachine struct {
	Data *CandyMachineData

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

InitializeCandyMachine is the `initializeCandyMachine` instruction.

func NewInitializeCandyMachineInstruction

func NewInitializeCandyMachineInstruction(

	data CandyMachineData,

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

NewInitializeCandyMachineInstruction declares a new InitializeCandyMachine instruction with the provided parameters and accounts.

func NewInitializeCandyMachineInstructionBuilder

func NewInitializeCandyMachineInstructionBuilder() *InitializeCandyMachine

NewInitializeCandyMachineInstructionBuilder creates a new `InitializeCandyMachine` instruction builder.

func (InitializeCandyMachine) Build

func (inst InitializeCandyMachine) Build() *Instruction

func (*InitializeCandyMachine) EncodeToTree

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

func (*InitializeCandyMachine) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*InitializeCandyMachine) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*InitializeCandyMachine) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*InitializeCandyMachine) GetRentAccount

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

GetRentAccount gets the "rent" account.

func (*InitializeCandyMachine) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*InitializeCandyMachine) GetWalletAccount

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

GetWalletAccount gets the "wallet" account.

func (InitializeCandyMachine) MarshalWithEncoder

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

func (*InitializeCandyMachine) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*InitializeCandyMachine) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*InitializeCandyMachine) SetData

SetData sets the "data" parameter.

func (*InitializeCandyMachine) SetPayerAccount

SetPayerAccount sets the "payer" account.

func (*InitializeCandyMachine) SetRentAccount

SetRentAccount sets the "rent" account.

func (*InitializeCandyMachine) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*InitializeCandyMachine) SetWalletAccount

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

SetWalletAccount sets the "wallet" account.

func (*InitializeCandyMachine) UnmarshalWithDecoder

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

func (*InitializeCandyMachine) Validate

func (inst *InitializeCandyMachine) Validate() error

func (InitializeCandyMachine) ValidateAndBuild

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

type LockupSettings struct {
	CandyMachine ag_solanago.PublicKey
	LockupType   uint8
	Number       int64
}

func (LockupSettings) MarshalWithEncoder

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

func (*LockupSettings) UnmarshalWithDecoder

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

type LockupType

type LockupType ag_binary.BorshEnum
const (
	LockupTypeExpirationUnixTimstamp LockupType = iota
	LockupTypeDurationSeconds
)

func (LockupType) String

func (value LockupType) String() string

type MintNft

type MintNft struct {
	CreatorBump *uint8

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

MintNft is the `mintNft` instruction.

func NewMintNftInstruction

func NewMintNftInstruction(

	creatorBump uint8,

	candyMachine ag_solanago.PublicKey,
	candyMachineCreator ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	wallet ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	mint ag_solanago.PublicKey,
	mintAuthority ag_solanago.PublicKey,
	updateAuthority ag_solanago.PublicKey,
	masterEdition ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey,
	clock ag_solanago.PublicKey,
	recentBlockhashes ag_solanago.PublicKey,
	instructionSysvarAccount ag_solanago.PublicKey,
	remainingAccounts []ag_solanago.AccountMeta) *MintNft

NewMintNftInstruction declares a new MintNft instruction with the provided parameters and accounts.

func NewMintNftInstructionBuilder

func NewMintNftInstructionBuilder() *MintNft

NewMintNftInstructionBuilder creates a new `MintNft` instruction builder.

func (MintNft) Build

func (inst MintNft) Build() *Instruction

func (*MintNft) EncodeToTree

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

func (*MintNft) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*MintNft) GetCandyMachineCreatorAccount

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

GetCandyMachineCreatorAccount gets the "candyMachineCreator" account.

func (*MintNft) GetClockAccount

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

GetClockAccount gets the "clock" account.

func (*MintNft) GetInstructionSysvarAccountAccount

func (inst *MintNft) GetInstructionSysvarAccountAccount() *ag_solanago.AccountMeta

GetInstructionSysvarAccountAccount gets the "instructionSysvarAccount" account.

func (*MintNft) GetMasterEditionAccount

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

GetMasterEditionAccount gets the "masterEdition" account.

func (*MintNft) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*MintNft) GetMintAccount

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

GetMintAccount gets the "mint" account.

func (*MintNft) GetMintAuthorityAccount

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

GetMintAuthorityAccount gets the "mintAuthority" account.

func (*MintNft) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*MintNft) GetRecentBlockhashesAccount

func (inst *MintNft) GetRecentBlockhashesAccount() *ag_solanago.AccountMeta

GetRecentBlockhashesAccount gets the "recentBlockhashes" account.

func (*MintNft) GetRentAccount

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

GetRentAccount gets the "rent" account.

func (*MintNft) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*MintNft) GetTokenMetadataProgramAccount

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

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (*MintNft) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (*MintNft) GetUpdateAuthorityAccount

func (inst *MintNft) GetUpdateAuthorityAccount() *ag_solanago.AccountMeta

GetUpdateAuthorityAccount gets the "updateAuthority" account.

func (*MintNft) GetWalletAccount

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

GetWalletAccount gets the "wallet" account.

func (MintNft) MarshalWithEncoder

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

func (*MintNft) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*MintNft) SetCandyMachineCreatorAccount

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

SetCandyMachineCreatorAccount sets the "candyMachineCreator" account.

func (*MintNft) SetClockAccount

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

SetClockAccount sets the "clock" account.

func (*MintNft) SetCreatorBump

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

SetCreatorBump sets the "creatorBump" parameter.

func (*MintNft) SetInstructionSysvarAccountAccount

func (inst *MintNft) SetInstructionSysvarAccountAccount(instructionSysvarAccount ag_solanago.PublicKey) *MintNft

SetInstructionSysvarAccountAccount sets the "instructionSysvarAccount" account.

func (*MintNft) SetMasterEditionAccount

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

SetMasterEditionAccount sets the "masterEdition" account.

func (*MintNft) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account.

func (*MintNft) SetMintAccount

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

SetMintAccount sets the "mint" account.

func (*MintNft) SetMintAuthorityAccount

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

SetMintAuthorityAccount sets the "mintAuthority" account.

func (*MintNft) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*MintNft) SetRecentBlockhashesAccount

func (inst *MintNft) SetRecentBlockhashesAccount(recentBlockhashes ag_solanago.PublicKey) *MintNft

SetRecentBlockhashesAccount sets the "recentBlockhashes" account.

func (*MintNft) SetRemainingAccounts

func (inst *MintNft) SetRemainingAccounts(pk []ag_solanago.AccountMeta) *MintNft

func (*MintNft) SetRentAccount

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

SetRentAccount sets the "rent" account.

func (*MintNft) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*MintNft) SetTokenMetadataProgramAccount

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

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*MintNft) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account.

func (*MintNft) SetUpdateAuthorityAccount

func (inst *MintNft) SetUpdateAuthorityAccount(updateAuthority ag_solanago.PublicKey) *MintNft

SetUpdateAuthorityAccount sets the "updateAuthority" account.

func (*MintNft) SetWalletAccount

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

SetWalletAccount sets the "wallet" account.

func (*MintNft) UnmarshalWithDecoder

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

func (*MintNft) Validate

func (inst *MintNft) Validate() error

func (MintNft) ValidateAndBuild

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

type PermissionedSettings struct {
	CandyMachine      ag_solanago.PublicKey
	Creator           ag_solanago.PublicKey
	TransferAuthority ag_solanago.PublicKey
}

func (PermissionedSettings) MarshalWithEncoder

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

func (*PermissionedSettings) UnmarshalWithDecoder

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

type RemoveCollection

type RemoveCollection struct {

	// [0] = [WRITE] candyMachine
	//
	// [1] = [SIGNER] authority
	//
	// [2] = [WRITE] collectionPda
	//
	// [3] = [] metadata
	//
	// [4] = [] mint
	//
	// [5] = [WRITE] collectionAuthorityRecord
	//
	// [6] = [] tokenMetadataProgram
	ag_solanago.AccountMetaSlice `bin:"-"`
}

RemoveCollection is the `removeCollection` instruction.

func NewRemoveCollectionInstruction

func NewRemoveCollectionInstruction(

	candyMachine ag_solanago.PublicKey,
	authority ag_solanago.PublicKey,
	collectionPda ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	mint ag_solanago.PublicKey,
	collectionAuthorityRecord ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey) *RemoveCollection

NewRemoveCollectionInstruction declares a new RemoveCollection instruction with the provided parameters and accounts.

func NewRemoveCollectionInstructionBuilder

func NewRemoveCollectionInstructionBuilder() *RemoveCollection

NewRemoveCollectionInstructionBuilder creates a new `RemoveCollection` instruction builder.

func (RemoveCollection) Build

func (inst RemoveCollection) Build() *Instruction

func (*RemoveCollection) EncodeToTree

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

func (*RemoveCollection) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*RemoveCollection) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*RemoveCollection) GetCollectionAuthorityRecordAccount

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

GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" account.

func (*RemoveCollection) GetCollectionPdaAccount

func (inst *RemoveCollection) GetCollectionPdaAccount() *ag_solanago.AccountMeta

GetCollectionPdaAccount gets the "collectionPda" account.

func (*RemoveCollection) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*RemoveCollection) GetMintAccount

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

GetMintAccount gets the "mint" account.

func (*RemoveCollection) GetTokenMetadataProgramAccount

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

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (RemoveCollection) MarshalWithEncoder

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

func (*RemoveCollection) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*RemoveCollection) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*RemoveCollection) SetCollectionAuthorityRecordAccount

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

SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" account.

func (*RemoveCollection) SetCollectionPdaAccount

func (inst *RemoveCollection) SetCollectionPdaAccount(collectionPda ag_solanago.PublicKey) *RemoveCollection

SetCollectionPdaAccount sets the "collectionPda" account.

func (*RemoveCollection) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account.

func (*RemoveCollection) SetMintAccount

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

SetMintAccount sets the "mint" account.

func (*RemoveCollection) SetTokenMetadataProgramAccount

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

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*RemoveCollection) UnmarshalWithDecoder

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

func (*RemoveCollection) Validate

func (inst *RemoveCollection) Validate() error

func (RemoveCollection) ValidateAndBuild

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

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

type SetCollection

type SetCollection struct {

	// [0] = [WRITE] candyMachine
	//
	// [1] = [SIGNER] authority
	//
	// [2] = [WRITE] collectionPda
	//
	// [3] = [SIGNER] payer
	//
	// [4] = [] systemProgram
	//
	// [5] = [] rent
	//
	// [6] = [] metadata
	//
	// [7] = [] mint
	//
	// [8] = [] edition
	//
	// [9] = [WRITE] collectionAuthorityRecord
	//
	// [10] = [] tokenMetadataProgram
	ag_solanago.AccountMetaSlice `bin:"-"`
}

SetCollection is the `setCollection` instruction.

func NewSetCollectionInstruction

func NewSetCollectionInstruction(

	candyMachine ag_solanago.PublicKey,
	authority ag_solanago.PublicKey,
	collectionPda ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	mint ag_solanago.PublicKey,
	edition ag_solanago.PublicKey,
	collectionAuthorityRecord ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey) *SetCollection

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

func NewSetCollectionInstructionBuilder

func NewSetCollectionInstructionBuilder() *SetCollection

NewSetCollectionInstructionBuilder creates a new `SetCollection` instruction builder.

func (SetCollection) Build

func (inst SetCollection) Build() *Instruction

func (*SetCollection) EncodeToTree

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

func (*SetCollection) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*SetCollection) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*SetCollection) GetCollectionAuthorityRecordAccount

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

GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" account.

func (*SetCollection) GetCollectionPdaAccount

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

GetCollectionPdaAccount gets the "collectionPda" account.

func (*SetCollection) GetEditionAccount

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

GetEditionAccount gets the "edition" account.

func (*SetCollection) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*SetCollection) GetMintAccount

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

GetMintAccount gets the "mint" account.

func (*SetCollection) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*SetCollection) GetRentAccount

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

GetRentAccount gets the "rent" account.

func (*SetCollection) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*SetCollection) GetTokenMetadataProgramAccount

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

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (SetCollection) MarshalWithEncoder

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

func (*SetCollection) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*SetCollection) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*SetCollection) SetCollectionAuthorityRecordAccount

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

SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" account.

func (*SetCollection) SetCollectionPdaAccount

func (inst *SetCollection) SetCollectionPdaAccount(collectionPda ag_solanago.PublicKey) *SetCollection

SetCollectionPdaAccount sets the "collectionPda" account.

func (*SetCollection) SetEditionAccount

func (inst *SetCollection) SetEditionAccount(edition ag_solanago.PublicKey) *SetCollection

SetEditionAccount sets the "edition" account.

func (*SetCollection) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account.

func (*SetCollection) SetMintAccount

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

SetMintAccount sets the "mint" account.

func (*SetCollection) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*SetCollection) SetRentAccount

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

SetRentAccount sets the "rent" account.

func (*SetCollection) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*SetCollection) SetTokenMetadataProgramAccount

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

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*SetCollection) UnmarshalWithDecoder

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

func (*SetCollection) Validate

func (inst *SetCollection) Validate() error

func (SetCollection) ValidateAndBuild

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

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

type SetCollectionDuringMint

type SetCollectionDuringMint struct {

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

SetCollectionDuringMint is the `setCollectionDuringMint` instruction.

func NewSetCollectionDuringMintInstruction

func NewSetCollectionDuringMintInstruction(

	candyMachine ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	collectionPda ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey,
	instructions ag_solanago.PublicKey,
	collectionMint ag_solanago.PublicKey,
	collectionMetadata ag_solanago.PublicKey,
	collectionMasterEdition ag_solanago.PublicKey,
	authority ag_solanago.PublicKey,
	collectionAuthorityRecord ag_solanago.PublicKey) *SetCollectionDuringMint

NewSetCollectionDuringMintInstruction declares a new SetCollectionDuringMint instruction with the provided parameters and accounts.

func NewSetCollectionDuringMintInstructionBuilder

func NewSetCollectionDuringMintInstructionBuilder() *SetCollectionDuringMint

NewSetCollectionDuringMintInstructionBuilder creates a new `SetCollectionDuringMint` instruction builder.

func (SetCollectionDuringMint) Build

func (inst SetCollectionDuringMint) Build() *Instruction

func (*SetCollectionDuringMint) EncodeToTree

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

func (*SetCollectionDuringMint) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*SetCollectionDuringMint) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*SetCollectionDuringMint) GetCollectionAuthorityRecordAccount

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

GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" account.

func (*SetCollectionDuringMint) GetCollectionMasterEditionAccount

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

GetCollectionMasterEditionAccount gets the "collectionMasterEdition" account.

func (*SetCollectionDuringMint) GetCollectionMetadataAccount

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

GetCollectionMetadataAccount gets the "collectionMetadata" account.

func (*SetCollectionDuringMint) GetCollectionMintAccount

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

GetCollectionMintAccount gets the "collectionMint" account.

func (*SetCollectionDuringMint) GetCollectionPdaAccount

func (inst *SetCollectionDuringMint) GetCollectionPdaAccount() *ag_solanago.AccountMeta

GetCollectionPdaAccount gets the "collectionPda" account.

func (*SetCollectionDuringMint) GetInstructionsAccount

func (inst *SetCollectionDuringMint) GetInstructionsAccount() *ag_solanago.AccountMeta

GetInstructionsAccount gets the "instructions" account.

func (*SetCollectionDuringMint) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*SetCollectionDuringMint) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*SetCollectionDuringMint) GetTokenMetadataProgramAccount

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

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (SetCollectionDuringMint) MarshalWithEncoder

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

func (*SetCollectionDuringMint) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*SetCollectionDuringMint) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*SetCollectionDuringMint) SetCollectionAuthorityRecordAccount

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

SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" account.

func (*SetCollectionDuringMint) SetCollectionMasterEditionAccount

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

SetCollectionMasterEditionAccount sets the "collectionMasterEdition" account.

func (*SetCollectionDuringMint) SetCollectionMetadataAccount

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

SetCollectionMetadataAccount sets the "collectionMetadata" account.

func (*SetCollectionDuringMint) SetCollectionMintAccount

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

SetCollectionMintAccount sets the "collectionMint" account.

func (*SetCollectionDuringMint) SetCollectionPdaAccount

func (inst *SetCollectionDuringMint) SetCollectionPdaAccount(collectionPda ag_solanago.PublicKey) *SetCollectionDuringMint

SetCollectionPdaAccount sets the "collectionPda" account.

func (*SetCollectionDuringMint) SetInstructionsAccount

func (inst *SetCollectionDuringMint) SetInstructionsAccount(instructions ag_solanago.PublicKey) *SetCollectionDuringMint

SetInstructionsAccount sets the "instructions" account.

func (*SetCollectionDuringMint) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account.

func (*SetCollectionDuringMint) SetPayerAccount

SetPayerAccount sets the "payer" account.

func (*SetCollectionDuringMint) SetTokenMetadataProgramAccount

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

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*SetCollectionDuringMint) UnmarshalWithDecoder

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

func (*SetCollectionDuringMint) Validate

func (inst *SetCollectionDuringMint) Validate() error

func (SetCollectionDuringMint) ValidateAndBuild

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

type SetLockupSettings struct {
	LockupType *uint8
	Number     *int64

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

SetLockupSettings is the `setLockupSettings` instruction.

func NewSetLockupSettingsInstruction

func NewSetLockupSettingsInstruction(

	lockupType uint8,
	number int64,

	candyMachine ag_solanago.PublicKey,
	authority ag_solanago.PublicKey,
	lockupSettings ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey) *SetLockupSettings

NewSetLockupSettingsInstruction declares a new SetLockupSettings instruction with the provided parameters and accounts.

func NewSetLockupSettingsInstructionBuilder

func NewSetLockupSettingsInstructionBuilder() *SetLockupSettings

NewSetLockupSettingsInstructionBuilder creates a new `SetLockupSettings` instruction builder.

func (SetLockupSettings) Build

func (inst SetLockupSettings) Build() *Instruction

func (*SetLockupSettings) EncodeToTree

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

func (*SetLockupSettings) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*SetLockupSettings) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*SetLockupSettings) GetLockupSettingsAccount

func (inst *SetLockupSettings) GetLockupSettingsAccount() *ag_solanago.AccountMeta

GetLockupSettingsAccount gets the "lockupSettings" account.

func (*SetLockupSettings) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*SetLockupSettings) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (SetLockupSettings) MarshalWithEncoder

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

func (*SetLockupSettings) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*SetLockupSettings) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*SetLockupSettings) SetLockupSettingsAccount

func (inst *SetLockupSettings) SetLockupSettingsAccount(lockupSettings ag_solanago.PublicKey) *SetLockupSettings

SetLockupSettingsAccount sets the "lockupSettings" account.

func (*SetLockupSettings) SetLockupType

func (inst *SetLockupSettings) SetLockupType(lockupType uint8) *SetLockupSettings

SetLockupType sets the "lockupType" parameter.

func (*SetLockupSettings) SetNumber

func (inst *SetLockupSettings) SetNumber(number int64) *SetLockupSettings

SetNumber sets the "number" parameter.

func (*SetLockupSettings) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*SetLockupSettings) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*SetLockupSettings) UnmarshalWithDecoder

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

func (*SetLockupSettings) Validate

func (inst *SetLockupSettings) Validate() error

func (SetLockupSettings) ValidateAndBuild

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

type SetPermissionedSettings struct {
	Creator           *ag_solanago.PublicKey
	TransferAuthority *ag_solanago.PublicKey `bin:"optional"`

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

SetPermissionedSettings is the `setPermissionedSettings` instruction.

func NewSetPermissionedSettingsInstruction

func NewSetPermissionedSettingsInstruction(

	creator ag_solanago.PublicKey,
	transferAuthority ag_solanago.PublicKey,

	candyMachine ag_solanago.PublicKey,
	authority ag_solanago.PublicKey,
	permissionedSettings ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey) *SetPermissionedSettings

NewSetPermissionedSettingsInstruction declares a new SetPermissionedSettings instruction with the provided parameters and accounts.

func NewSetPermissionedSettingsInstructionBuilder

func NewSetPermissionedSettingsInstructionBuilder() *SetPermissionedSettings

NewSetPermissionedSettingsInstructionBuilder creates a new `SetPermissionedSettings` instruction builder.

func (SetPermissionedSettings) Build

func (inst SetPermissionedSettings) Build() *Instruction

func (*SetPermissionedSettings) EncodeToTree

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

func (*SetPermissionedSettings) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*SetPermissionedSettings) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*SetPermissionedSettings) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*SetPermissionedSettings) GetPermissionedSettingsAccount

func (inst *SetPermissionedSettings) GetPermissionedSettingsAccount() *ag_solanago.AccountMeta

GetPermissionedSettingsAccount gets the "permissionedSettings" account.

func (*SetPermissionedSettings) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (SetPermissionedSettings) MarshalWithEncoder

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

func (*SetPermissionedSettings) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*SetPermissionedSettings) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*SetPermissionedSettings) SetCreator

SetCreator sets the "creator" parameter.

func (*SetPermissionedSettings) SetPayerAccount

SetPayerAccount sets the "payer" account.

func (*SetPermissionedSettings) SetPermissionedSettingsAccount

func (inst *SetPermissionedSettings) SetPermissionedSettingsAccount(permissionedSettings ag_solanago.PublicKey) *SetPermissionedSettings

SetPermissionedSettingsAccount sets the "permissionedSettings" account.

func (*SetPermissionedSettings) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*SetPermissionedSettings) SetTransferAuthority

func (inst *SetPermissionedSettings) SetTransferAuthority(transferAuthority ag_solanago.PublicKey) *SetPermissionedSettings

SetTransferAuthority sets the "transferAuthority" parameter.

func (*SetPermissionedSettings) UnmarshalWithDecoder

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

func (*SetPermissionedSettings) Validate

func (inst *SetPermissionedSettings) Validate() error

func (SetPermissionedSettings) ValidateAndBuild

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

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

	// [0] = [WRITE] candyMachine
	//
	// [1] = [SIGNER] authority
	//
	// [2] = [] wallet
	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,
	wallet 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) GetWalletAccount

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

GetWalletAccount gets the "wallet" 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) SetWalletAccount

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

SetWalletAccount sets the "wallet" account.

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 {
	Data *CandyMachineData

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

UpdateCandyMachine is the `updateCandyMachine` instruction.

func NewUpdateCandyMachineInstruction

func NewUpdateCandyMachineInstruction(

	data CandyMachineData,

	candyMachine ag_solanago.PublicKey,
	authority ag_solanago.PublicKey,
	wallet 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) GetWalletAccount

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

GetWalletAccount gets the "wallet" 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) SetData

SetData sets the "data" parameter.

func (*UpdateCandyMachine) SetWalletAccount

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

SetWalletAccount sets the "wallet" account.

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 WhitelistMintMode

type WhitelistMintMode ag_binary.BorshEnum
const (
	WhitelistMintModeBurnEveryTime WhitelistMintMode = iota
	WhitelistMintModeNeverBurn
)

func (WhitelistMintMode) String

func (value WhitelistMintMode) String() string

type WhitelistMintSettings

type WhitelistMintSettings struct {
	Mode          WhitelistMintMode
	Mint          ag_solanago.PublicKey
	Presale       bool
	DiscountPrice *uint64 `bin:"optional"`
}

func (WhitelistMintSettings) MarshalWithEncoder

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

func (*WhitelistMintSettings) UnmarshalWithDecoder

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

type WithdrawFunds

type WithdrawFunds struct {

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

WithdrawFunds is the `withdrawFunds` instruction.

func NewWithdrawFundsInstruction

func NewWithdrawFundsInstruction(

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

NewWithdrawFundsInstruction declares a new WithdrawFunds instruction with the provided parameters and accounts.

func NewWithdrawFundsInstructionBuilder

func NewWithdrawFundsInstructionBuilder() *WithdrawFunds

NewWithdrawFundsInstructionBuilder creates a new `WithdrawFunds` instruction builder.

func (WithdrawFunds) Build

func (inst WithdrawFunds) Build() *Instruction

func (*WithdrawFunds) EncodeToTree

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

func (*WithdrawFunds) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*WithdrawFunds) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (WithdrawFunds) MarshalWithEncoder

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

func (*WithdrawFunds) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*WithdrawFunds) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*WithdrawFunds) UnmarshalWithDecoder

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

func (*WithdrawFunds) Validate

func (inst *WithdrawFunds) Validate() error

func (WithdrawFunds) ValidateAndBuild

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

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

Jump to

Keyboard shortcuts

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