candy_guard

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 = "CandyGuard"

Variables

View Source
var (
	// Create a new candy guard account.
	Instruction_Initialize = ag_binary.TypeID([8]byte{175, 175, 109, 31, 13, 152, 155, 237})

	// Mint an NFT from a candy machine wrapped in the candy guard.
	Instruction_Mint = ag_binary.TypeID([8]byte{51, 57, 225, 47, 182, 146, 137, 166})

	// Mint an NFT from a candy machine wrapped in the candy guard.
	Instruction_MintV2 = ag_binary.TypeID([8]byte{120, 121, 23, 146, 173, 110, 199, 205})

	// Route the transaction to a guard instruction.
	Instruction_Route = ag_binary.TypeID([8]byte{229, 23, 203, 151, 122, 227, 173, 42})

	// Set a new authority of the candy guard.
	Instruction_SetAuthority = ag_binary.TypeID([8]byte{133, 250, 37, 21, 110, 163, 26, 121})

	// Remove a candy guard from a candy machine, setting the authority to the
	// candy guard authority.
	Instruction_Unwrap = ag_binary.TypeID([8]byte{126, 175, 198, 14, 212, 69, 50, 44})

	// Update the candy guard configuration.
	Instruction_Update = ag_binary.TypeID([8]byte{219, 200, 88, 176, 158, 63, 253, 127})

	// Withdraw the rent SOL from the candy guard account.
	Instruction_Withdraw = ag_binary.TypeID([8]byte{183, 18, 70, 156, 148, 109, 161, 34})

	// Add a candy guard to a candy machine. After the guard is added, mint
	// is only allowed through the candy guard.
	Instruction_Wrap = ag_binary.TypeID([8]byte{178, 40, 10, 189, 228, 129, 186, 140})
)
View Source
var CandyGuardDiscriminator = [8]byte{44, 207, 199, 184, 112, 103, 34, 181}
View Source
var FreezeEscrowDiscriminator = [8]byte{227, 186, 40, 152, 7, 174, 131, 184}
View Source
var InstructionImplDef = ag_binary.NewVariantDefinition(
	ag_binary.AnchorTypeIDEncoding,
	[]ag_binary.VariantType{
		{
			"initialize", (*Initialize)(nil),
		},
		{
			"mint", (*Mint)(nil),
		},
		{
			"mint_v2", (*MintV2)(nil),
		},
		{
			"route", (*Route)(nil),
		},
		{
			"set_authority", (*SetAuthority)(nil),
		},
		{
			"unwrap", (*Unwrap)(nil),
		},
		{
			"update", (*Update)(nil),
		},
		{
			"withdraw", (*Withdraw)(nil),
		},
		{
			"wrap", (*Wrap)(nil),
		},
	},
)
View Source
var ProgramID ag_solanago.PublicKey = ag_solanago.MustPublicKeyFromBase58("Guard1JwRhJkVH6XZhzoYxeBVQe872VH6QggF4BWmS9g")

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 AddressGate

type AddressGate struct {
	Address ag_solanago.PublicKey
}

func (AddressGate) MarshalWithEncoder

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

func (*AddressGate) UnmarshalWithDecoder

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

type Allocation

type Allocation struct {
	// Unique identifier of the allocation.
	Id uint8

	// The limit of the allocation.
	Limit uint32
}

func (Allocation) MarshalWithEncoder

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

func (*Allocation) UnmarshalWithDecoder

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

type AllocationTracker

type AllocationTracker struct {
	Count uint32
}

func (AllocationTracker) MarshalWithEncoder

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

func (*AllocationTracker) UnmarshalWithDecoder

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

type AllowList

type AllowList struct {
	// Merkle root of the addresses allowed to mint.
	MerkleRoot [32]uint8
}

func (AllowList) MarshalWithEncoder

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

func (*AllowList) UnmarshalWithDecoder

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

type AllowListProof

type AllowListProof struct {
	Timestamp int64
}

func (AllowListProof) MarshalWithEncoder

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

func (*AllowListProof) UnmarshalWithDecoder

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

type BotTax

type BotTax struct {
	Lamports        uint64
	LastInstruction bool
}

func (BotTax) MarshalWithEncoder

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

func (*BotTax) UnmarshalWithDecoder

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

type CandyGuard

type CandyGuard struct {
	Base      ag_solanago.PublicKey
	Bump      uint8
	Authority ag_solanago.PublicKey
}

func (CandyGuard) MarshalWithEncoder

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

func (*CandyGuard) UnmarshalWithDecoder

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

type CandyGuardData

type CandyGuardData struct {
	Default GuardSet
	Groups  *[]Group `bin:"optional"`
}

func (CandyGuardData) MarshalWithEncoder

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

func (*CandyGuardData) UnmarshalWithDecoder

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

type EndDate

type EndDate struct {
	Date int64
}

func (EndDate) MarshalWithEncoder

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

func (*EndDate) UnmarshalWithDecoder

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

type FreezeEscrow

type FreezeEscrow struct {
	// Candy guard address associated with this escrow.
	CandyGuard ag_solanago.PublicKey

	// Candy machine address associated with this escrow.
	CandyMachine ag_solanago.PublicKey

	// Number of NFTs frozen.
	FrozenCount uint64

	// The timestamp of the first (frozen) mint. This is used to calculate
	// when the freeze period is over.
	FirstMintTime *int64 `bin:"optional"`

	// The amount of time (in seconds) for the freeze. The NFTs will be
	// allowed to thaw after this.
	FreezePeriod int64

	// The destination address for the frozen fund to go to.
	Destination ag_solanago.PublicKey

	// The authority that initialized the freeze. This will be the only
	// address able to unlock the funds in case the candy guard account is
	// closed.
	Authority ag_solanago.PublicKey
}

func (FreezeEscrow) MarshalWithEncoder

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

func (*FreezeEscrow) UnmarshalWithDecoder

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

type FreezeInstruction

type FreezeInstruction ag_binary.BorshEnum
const (
	FreezeInstructionInitialize FreezeInstruction = iota
	FreezeInstructionThaw
	FreezeInstructionUnlockFunds
)

func (FreezeInstruction) String

func (value FreezeInstruction) String() string

type FreezeSolPayment

type FreezeSolPayment struct {
	Lamports    uint64
	Destination ag_solanago.PublicKey
}

func (FreezeSolPayment) MarshalWithEncoder

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

func (*FreezeSolPayment) UnmarshalWithDecoder

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

type FreezeTokenPayment

type FreezeTokenPayment struct {
	Amount         uint64
	Mint           ag_solanago.PublicKey
	DestinationAta ag_solanago.PublicKey
}

func (FreezeTokenPayment) MarshalWithEncoder

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

func (*FreezeTokenPayment) UnmarshalWithDecoder

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

type Gatekeeper

type Gatekeeper struct {
	// The network for the gateway token required
	GatekeeperNetwork ag_solanago.PublicKey

	// Whether or not the token should expire after minting.
	// The gatekeeper network must support this if true.
	ExpireOnUse bool
}

func (Gatekeeper) MarshalWithEncoder

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

func (*Gatekeeper) UnmarshalWithDecoder

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

type Group

type Group struct {
	Label  string
	Guards GuardSet
}

func (Group) MarshalWithEncoder

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

func (*Group) UnmarshalWithDecoder

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

type GuardSet

type GuardSet struct {
	// Last instruction check and bot tax (penalty for invalid transactions).
	BotTax *BotTax `bin:"optional"`

	// Sol payment guard (set the price for the mint in lamports).
	SolPayment *SolPayment `bin:"optional"`

	// Token payment guard (set the price for the mint in spl-token amount).
	TokenPayment *TokenPayment `bin:"optional"`

	// Start data guard (controls when minting is allowed).
	StartDate *StartDate `bin:"optional"`

	// Third party signer guard (requires an extra signer for the transaction).
	ThirdPartySigner *ThirdPartySigner `bin:"optional"`

	// Token gate guard (restrict access to holders of a specific token).
	TokenGate *TokenGate `bin:"optional"`

	// Gatekeeper guard (captcha challenge).
	Gatekeeper *Gatekeeper `bin:"optional"`

	// End date guard (set an end date to stop the mint).
	EndDate *EndDate `bin:"optional"`

	// Allow list guard (curated list of allowed addresses).
	AllowList *AllowList `bin:"optional"`

	// Mint limit guard (add a limit on the number of mints per wallet).
	MintLimit *MintLimit `bin:"optional"`

	// NFT Payment (charge an NFT in order to mint).
	NftPayment *NftPayment `bin:"optional"`

	// Redeemed amount guard (add a limit on the overall number of items minted).
	RedeemedAmount *RedeemedAmount `bin:"optional"`

	// Address gate (check access against a specified address).
	AddressGate *AddressGate `bin:"optional"`

	// NFT gate guard (check access based on holding a specified NFT).
	NftGate *NftGate `bin:"optional"`

	// NFT burn guard (burn a specified NFT).
	NftBurn *NftBurn `bin:"optional"`

	// Token burn guard (burn a specified amount of spl-token).
	TokenBurn *TokenBurn `bin:"optional"`

	// Freeze sol payment guard (set the price for the mint in lamports with a freeze period).
	FreezeSolPayment *FreezeSolPayment `bin:"optional"`

	// Freeze token payment guard (set the price for the mint in spl-token amount with a freeze period).
	FreezeTokenPayment *FreezeTokenPayment `bin:"optional"`

	// Program gate guard (restricts the programs that can be in a mint transaction).
	ProgramGate *ProgramGate `bin:"optional"`

	// Allocation guard (specify the maximum number of mints in a group).
	Allocation *Allocation `bin:"optional"`

	// Token2022 payment guard (set the price for the mint in spl-token-2022 amount).
	Token2022Payment *Token2022Payment `bin:"optional"`
}

func (GuardSet) MarshalWithEncoder

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

func (*GuardSet) UnmarshalWithDecoder

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

type GuardType

type GuardType ag_binary.BorshEnum
const (
	GuardTypeBotTax GuardType = iota
	GuardTypeSolPayment
	GuardTypeTokenPayment
	GuardTypeStartDate
	GuardTypeThirdPartySigner
	GuardTypeTokenGate
	GuardTypeGatekeeper
	GuardTypeEndDate
	GuardTypeAllowList
	GuardTypeMintLimit
	GuardTypeNftPayment
	GuardTypeRedeemedAmount
	GuardTypeAddressGate
	GuardTypeNftGate
	GuardTypeNftBurn
	GuardTypeTokenBurn
	GuardTypeFreezeSolPayment
	GuardTypeFreezeTokenPayment
	GuardTypeProgramGate
	GuardTypeAllocation
	GuardTypeToken2022Payment
)

func (GuardType) String

func (value GuardType) String() string

type Initialize

type Initialize struct {
	Data *[]byte

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

Create a new candy guard account.

func NewInitializeInstruction

func NewInitializeInstruction(

	data []byte,

	candyGuard ag_solanago.PublicKey,
	base ag_solanago.PublicKey,
	authority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey) *Initialize

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

func NewInitializeInstructionBuilder

func NewInitializeInstructionBuilder() *Initialize

NewInitializeInstructionBuilder creates a new `Initialize` instruction builder.

func (Initialize) Build

func (inst Initialize) Build() *Instruction

func (*Initialize) EncodeToTree

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

func (*Initialize) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*Initialize) GetBaseAccount

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

GetBaseAccount gets the "base" account.

func (*Initialize) GetCandyGuardAccount

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

GetCandyGuardAccount gets the "candyGuard" account.

func (*Initialize) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*Initialize) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (Initialize) MarshalWithEncoder

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

func (*Initialize) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*Initialize) SetBaseAccount

func (inst *Initialize) SetBaseAccount(base ag_solanago.PublicKey) *Initialize

SetBaseAccount sets the "base" account.

func (*Initialize) SetCandyGuardAccount

func (inst *Initialize) SetCandyGuardAccount(candyGuard ag_solanago.PublicKey) *Initialize

SetCandyGuardAccount sets the "candyGuard" account.

func (*Initialize) SetData

func (inst *Initialize) SetData(data []byte) *Initialize

SetData sets the "data" parameter.

func (*Initialize) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*Initialize) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*Initialize) UnmarshalWithDecoder

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

func (*Initialize) Validate

func (inst *Initialize) Validate() error

func (Initialize) ValidateAndBuild

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

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

type Instruction

type Instruction struct {
	ag_binary.BaseVariant
}

func DecodeInstruction

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

func (*Instruction) Accounts

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

func (*Instruction) Data

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

func (*Instruction) EncodeToTree

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

func (*Instruction) MarshalWithEncoder

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

func (*Instruction) ProgramID

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

func (*Instruction) TextEncode

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

func (*Instruction) UnmarshalWithDecoder

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

type Mint

type Mint struct {
	MintArgs *[]byte
	Label    *string `bin:"optional"`

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

Mint an NFT from a candy machine wrapped in the candy guard.

func NewMintInstruction

func NewMintInstruction(

	mintArgs []byte,
	label string,

	candyGuard ag_solanago.PublicKey,
	candyMachineProgram ag_solanago.PublicKey,
	candyMachine ag_solanago.PublicKey,
	candyMachineAuthorityPda ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	nftMetadata ag_solanago.PublicKey,
	nftMint ag_solanago.PublicKey,
	nftMintAuthority ag_solanago.PublicKey,
	nftMasterEdition ag_solanago.PublicKey,
	collectionAuthorityRecord ag_solanago.PublicKey,
	collectionMint ag_solanago.PublicKey,
	collectionMetadata ag_solanago.PublicKey,
	collectionMasterEdition ag_solanago.PublicKey,
	collectionUpdateAuthority ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	recentSlothashes ag_solanago.PublicKey,
	instructionSysvarAccount ag_solanago.PublicKey) *Mint

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

func NewMintInstructionBuilder

func NewMintInstructionBuilder() *Mint

NewMintInstructionBuilder creates a new `Mint` instruction builder.

func (Mint) Build

func (inst Mint) Build() *Instruction

func (*Mint) EncodeToTree

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

func (*Mint) GetCandyGuardAccount

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

GetCandyGuardAccount gets the "candyGuard" account.

func (*Mint) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*Mint) GetCandyMachineAuthorityPdaAccount

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

GetCandyMachineAuthorityPdaAccount gets the "candyMachineAuthorityPda" account.

func (*Mint) GetCandyMachineProgramAccount

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

GetCandyMachineProgramAccount gets the "candyMachineProgram" account.

func (*Mint) GetCollectionAuthorityRecordAccount

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

GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" account.

func (*Mint) GetCollectionMasterEditionAccount

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

GetCollectionMasterEditionAccount gets the "collectionMasterEdition" account.

func (*Mint) GetCollectionMetadataAccount

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

GetCollectionMetadataAccount gets the "collectionMetadata" account.

func (*Mint) GetCollectionMintAccount

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

GetCollectionMintAccount gets the "collectionMint" account.

func (*Mint) GetCollectionUpdateAuthorityAccount

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

GetCollectionUpdateAuthorityAccount gets the "collectionUpdateAuthority" account.

func (*Mint) GetInstructionSysvarAccountAccount

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

GetInstructionSysvarAccountAccount gets the "instructionSysvarAccount" account.

func (*Mint) GetNftMasterEditionAccount

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

GetNftMasterEditionAccount gets the "nftMasterEdition" account.

func (*Mint) GetNftMetadataAccount

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

GetNftMetadataAccount gets the "nftMetadata" account.

func (*Mint) GetNftMintAccount

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

GetNftMintAccount gets the "nftMint" account.

func (*Mint) GetNftMintAuthorityAccount

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

GetNftMintAuthorityAccount gets the "nftMintAuthority" account.

func (*Mint) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*Mint) GetRecentSlothashesAccount

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

GetRecentSlothashesAccount gets the "recentSlothashes" account.

func (*Mint) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*Mint) GetTokenMetadataProgramAccount

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

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (*Mint) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (Mint) MarshalWithEncoder

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

func (*Mint) SetCandyGuardAccount

func (inst *Mint) SetCandyGuardAccount(candyGuard ag_solanago.PublicKey) *Mint

SetCandyGuardAccount sets the "candyGuard" account.

func (*Mint) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*Mint) SetCandyMachineAuthorityPdaAccount

func (inst *Mint) SetCandyMachineAuthorityPdaAccount(candyMachineAuthorityPda ag_solanago.PublicKey) *Mint

SetCandyMachineAuthorityPdaAccount sets the "candyMachineAuthorityPda" account.

func (*Mint) SetCandyMachineProgramAccount

func (inst *Mint) SetCandyMachineProgramAccount(candyMachineProgram ag_solanago.PublicKey) *Mint

SetCandyMachineProgramAccount sets the "candyMachineProgram" account.

func (*Mint) SetCollectionAuthorityRecordAccount

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

SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" account.

func (*Mint) SetCollectionMasterEditionAccount

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

SetCollectionMasterEditionAccount sets the "collectionMasterEdition" account.

func (*Mint) SetCollectionMetadataAccount

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

SetCollectionMetadataAccount sets the "collectionMetadata" account.

func (*Mint) SetCollectionMintAccount

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

SetCollectionMintAccount sets the "collectionMint" account.

func (*Mint) SetCollectionUpdateAuthorityAccount

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

SetCollectionUpdateAuthorityAccount sets the "collectionUpdateAuthority" account.

func (*Mint) SetInstructionSysvarAccountAccount

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

SetInstructionSysvarAccountAccount sets the "instructionSysvarAccount" account.

func (*Mint) SetLabel

func (inst *Mint) SetLabel(label string) *Mint

SetLabel sets the "label" parameter.

func (*Mint) SetMintArgs

func (inst *Mint) SetMintArgs(mintArgs []byte) *Mint

SetMintArgs sets the "mintArgs" parameter.

func (*Mint) SetNftMasterEditionAccount

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

SetNftMasterEditionAccount sets the "nftMasterEdition" account.

func (*Mint) SetNftMetadataAccount

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

SetNftMetadataAccount sets the "nftMetadata" account.

func (*Mint) SetNftMintAccount

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

SetNftMintAccount sets the "nftMint" account.

func (*Mint) SetNftMintAuthorityAccount

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

SetNftMintAuthorityAccount sets the "nftMintAuthority" account.

func (*Mint) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*Mint) SetRecentSlothashesAccount

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

SetRecentSlothashesAccount sets the "recentSlothashes" account.

func (*Mint) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*Mint) SetTokenMetadataProgramAccount

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

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*Mint) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account.

func (*Mint) UnmarshalWithDecoder

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

func (*Mint) Validate

func (inst *Mint) Validate() error

func (Mint) ValidateAndBuild

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

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

type MintCounter

type MintCounter struct {
	Count uint16
}

func (MintCounter) MarshalWithEncoder

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

func (*MintCounter) UnmarshalWithDecoder

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

type MintLimit

type MintLimit struct {
	// Unique identifier of the mint limit.
	Id uint8

	// Limit of mints per individual address.
	Limit uint16
}

func (MintLimit) MarshalWithEncoder

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

func (*MintLimit) UnmarshalWithDecoder

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

type MintV2

type MintV2 struct {
	MintArgs *[]byte
	Label    *string `bin:"optional"`

	// [0] = [] candyGuard
	// ··········· Candy Guard account.
	//
	// [1] = [] candyMachineProgram
	// ··········· Candy Machine program account.
	// ···········
	//
	// [2] = [WRITE] candyMachine
	// ··········· Candy machine account.
	//
	// [3] = [WRITE] candyMachineAuthorityPda
	// ··········· Candy Machine authority account.
	// ···········
	//
	// [4] = [WRITE, SIGNER] payer
	// ··········· Payer for the mint (SOL) fees.
	//
	// [5] = [WRITE, SIGNER] minter
	// ··········· Minter account for validation and non-SOL fees.
	//
	// [6] = [WRITE] nftMint
	// ··········· Mint account of the NFT. The account will be initialized if necessary.
	// ···········
	// ··········· Must be a signer if:
	// ··········· * the nft_mint account does not exist.
	// ···········
	//
	// [7] = [SIGNER] nftMintAuthority
	// ··········· Mint authority of the NFT before the authority gets transfer to the master edition account.
	// ···········
	// ··········· If nft_mint account exists:
	// ··········· * it must match the mint authority of nft_mint.
	//
	// [8] = [WRITE] nftMetadata
	// ··········· Metadata account of the NFT. This account must be uninitialized.
	// ···········
	//
	// [9] = [WRITE] nftMasterEdition
	// ··········· Master edition account of the NFT. The account will be initialized if necessary.
	// ···········
	//
	// [10] = [WRITE] token
	// ··········· Destination token account (required for pNFT).
	// ···········
	//
	// [11] = [WRITE] tokenRecord
	// ··········· Token record (required for pNFT).
	// ···········
	//
	// [12] = [] collectionDelegateRecord
	// ··········· Collection authority or metadata delegate record.
	// ···········
	//
	// [13] = [] collectionMint
	// ··········· Mint account of the collection NFT.
	// ···········
	//
	// [14] = [WRITE] collectionMetadata
	// ··········· Metadata account of the collection NFT.
	// ···········
	//
	// [15] = [] collectionMasterEdition
	// ··········· Master edition account of the collection NFT.
	// ···········
	//
	// [16] = [] collectionUpdateAuthority
	// ··········· Update authority of the collection NFT.
	// ···········
	//
	// [17] = [] tokenMetadataProgram
	// ··········· Token Metadata program.
	// ···········
	//
	// [18] = [] splTokenProgram
	// ··········· SPL Token program.
	//
	// [19] = [] splAtaProgram
	// ··········· SPL Associated Token program.
	//
	// [20] = [] systemProgram
	// ··········· System program.
	//
	// [21] = [] sysvarInstructions
	// ··········· Instructions sysvar account.
	// ···········
	//
	// [22] = [] recentSlothashes
	// ··········· SlotHashes sysvar cluster data.
	// ···········
	//
	// [23] = [] authorizationRulesProgram
	// ··········· Token Authorization Rules program.
	// ···········
	//
	// [24] = [] authorizationRules
	// ··········· Token Authorization rules account for the collection metadata (if any).
	// ···········
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Mint an NFT from a candy machine wrapped in the candy guard.

func NewMintV2Instruction

func NewMintV2Instruction(

	mintArgs []byte,
	label string,

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

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

func NewMintV2InstructionBuilder

func NewMintV2InstructionBuilder() *MintV2

NewMintV2InstructionBuilder creates a new `MintV2` instruction builder.

func (MintV2) Build

func (inst MintV2) Build() *Instruction

func (*MintV2) EncodeToTree

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

func (*MintV2) GetAuthorizationRulesAccount

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

GetAuthorizationRulesAccount gets the "authorizationRules" account. Token Authorization rules account for the collection metadata (if any).

func (*MintV2) GetAuthorizationRulesProgramAccount

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

GetAuthorizationRulesProgramAccount gets the "authorizationRulesProgram" account. Token Authorization Rules program.

func (*MintV2) GetCandyGuardAccount

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

GetCandyGuardAccount gets the "candyGuard" account. Candy Guard account.

func (*MintV2) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account. Candy machine account.

func (*MintV2) GetCandyMachineAuthorityPdaAccount

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

GetCandyMachineAuthorityPdaAccount gets the "candyMachineAuthorityPda" account. Candy Machine authority account.

func (*MintV2) GetCandyMachineProgramAccount

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

GetCandyMachineProgramAccount gets the "candyMachineProgram" account. Candy Machine program account.

func (*MintV2) GetCollectionDelegateRecordAccount

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

GetCollectionDelegateRecordAccount gets the "collectionDelegateRecord" account. Collection authority or metadata delegate record.

func (*MintV2) GetCollectionMasterEditionAccount

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

GetCollectionMasterEditionAccount gets the "collectionMasterEdition" account. Master edition account of the collection NFT.

func (*MintV2) GetCollectionMetadataAccount

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

GetCollectionMetadataAccount gets the "collectionMetadata" account. Metadata account of the collection NFT.

func (*MintV2) GetCollectionMintAccount

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

GetCollectionMintAccount gets the "collectionMint" account. Mint account of the collection NFT.

func (*MintV2) GetCollectionUpdateAuthorityAccount

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

GetCollectionUpdateAuthorityAccount gets the "collectionUpdateAuthority" account. Update authority of the collection NFT.

func (*MintV2) GetMinterAccount

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

GetMinterAccount gets the "minter" account. Minter account for validation and non-SOL fees.

func (*MintV2) GetNftMasterEditionAccount

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

GetNftMasterEditionAccount gets the "nftMasterEdition" account. Master edition account of the NFT. The account will be initialized if necessary.

func (*MintV2) GetNftMetadataAccount

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

GetNftMetadataAccount gets the "nftMetadata" account. Metadata account of the NFT. This account must be uninitialized.

func (*MintV2) GetNftMintAccount

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

GetNftMintAccount gets the "nftMint" account. Mint account of the NFT. The account will be initialized if necessary.

Must be a signer if: * the nft_mint account does not exist.

func (*MintV2) GetNftMintAuthorityAccount

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

GetNftMintAuthorityAccount gets the "nftMintAuthority" account. Mint authority of the NFT before the authority gets transfer to the master edition account.

If nft_mint account exists: * it must match the mint authority of nft_mint.

func (*MintV2) GetPayerAccount

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

GetPayerAccount gets the "payer" account. Payer for the mint (SOL) fees.

func (*MintV2) GetRecentSlothashesAccount

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

GetRecentSlothashesAccount gets the "recentSlothashes" account. SlotHashes sysvar cluster data.

func (*MintV2) GetSplAtaProgramAccount

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

GetSplAtaProgramAccount gets the "splAtaProgram" account. SPL Associated Token program.

func (*MintV2) GetSplTokenProgramAccount

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

GetSplTokenProgramAccount gets the "splTokenProgram" account. SPL Token program.

func (*MintV2) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account. System program.

func (*MintV2) GetSysvarInstructionsAccount

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

GetSysvarInstructionsAccount gets the "sysvarInstructions" account. Instructions sysvar account.

func (*MintV2) GetTokenAccount

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

GetTokenAccount gets the "token" account. Destination token account (required for pNFT).

func (*MintV2) GetTokenMetadataProgramAccount

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

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account. Token Metadata program.

func (*MintV2) GetTokenRecordAccount

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

GetTokenRecordAccount gets the "tokenRecord" account. Token record (required for pNFT).

func (MintV2) MarshalWithEncoder

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

func (*MintV2) SetAuthorizationRulesAccount

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

SetAuthorizationRulesAccount sets the "authorizationRules" account. Token Authorization rules account for the collection metadata (if any).

func (*MintV2) SetAuthorizationRulesProgramAccount

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

SetAuthorizationRulesProgramAccount sets the "authorizationRulesProgram" account. Token Authorization Rules program.

func (*MintV2) SetCandyGuardAccount

func (inst *MintV2) SetCandyGuardAccount(candyGuard ag_solanago.PublicKey) *MintV2

SetCandyGuardAccount sets the "candyGuard" account. Candy Guard account.

func (*MintV2) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account. Candy machine account.

func (*MintV2) SetCandyMachineAuthorityPdaAccount

func (inst *MintV2) SetCandyMachineAuthorityPdaAccount(candyMachineAuthorityPda ag_solanago.PublicKey) *MintV2

SetCandyMachineAuthorityPdaAccount sets the "candyMachineAuthorityPda" account. Candy Machine authority account.

func (*MintV2) SetCandyMachineProgramAccount

func (inst *MintV2) SetCandyMachineProgramAccount(candyMachineProgram ag_solanago.PublicKey) *MintV2

SetCandyMachineProgramAccount sets the "candyMachineProgram" account. Candy Machine program account.

func (*MintV2) SetCollectionDelegateRecordAccount

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

SetCollectionDelegateRecordAccount sets the "collectionDelegateRecord" account. Collection authority or metadata delegate record.

func (*MintV2) SetCollectionMasterEditionAccount

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

SetCollectionMasterEditionAccount sets the "collectionMasterEdition" account. Master edition account of the collection NFT.

func (*MintV2) SetCollectionMetadataAccount

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

SetCollectionMetadataAccount sets the "collectionMetadata" account. Metadata account of the collection NFT.

func (*MintV2) SetCollectionMintAccount

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

SetCollectionMintAccount sets the "collectionMint" account. Mint account of the collection NFT.

func (*MintV2) SetCollectionUpdateAuthorityAccount

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

SetCollectionUpdateAuthorityAccount sets the "collectionUpdateAuthority" account. Update authority of the collection NFT.

func (*MintV2) SetLabel

func (inst *MintV2) SetLabel(label string) *MintV2

SetLabel sets the "label" parameter.

func (*MintV2) SetMintArgs

func (inst *MintV2) SetMintArgs(mintArgs []byte) *MintV2

SetMintArgs sets the "mintArgs" parameter.

func (*MintV2) SetMinterAccount

func (inst *MintV2) SetMinterAccount(minter ag_solanago.PublicKey) *MintV2

SetMinterAccount sets the "minter" account. Minter account for validation and non-SOL fees.

func (*MintV2) SetNftMasterEditionAccount

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

SetNftMasterEditionAccount sets the "nftMasterEdition" account. Master edition account of the NFT. The account will be initialized if necessary.

func (*MintV2) SetNftMetadataAccount

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

SetNftMetadataAccount sets the "nftMetadata" account. Metadata account of the NFT. This account must be uninitialized.

func (*MintV2) SetNftMintAccount

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

SetNftMintAccount sets the "nftMint" account. Mint account of the NFT. The account will be initialized if necessary.

Must be a signer if: * the nft_mint account does not exist.

func (*MintV2) SetNftMintAuthorityAccount

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

SetNftMintAuthorityAccount sets the "nftMintAuthority" account. Mint authority of the NFT before the authority gets transfer to the master edition account.

If nft_mint account exists: * it must match the mint authority of nft_mint.

func (*MintV2) SetPayerAccount

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

SetPayerAccount sets the "payer" account. Payer for the mint (SOL) fees.

func (*MintV2) SetRecentSlothashesAccount

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

SetRecentSlothashesAccount sets the "recentSlothashes" account. SlotHashes sysvar cluster data.

func (*MintV2) SetSplAtaProgramAccount

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

SetSplAtaProgramAccount sets the "splAtaProgram" account. SPL Associated Token program.

func (*MintV2) SetSplTokenProgramAccount

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

SetSplTokenProgramAccount sets the "splTokenProgram" account. SPL Token program.

func (*MintV2) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account. System program.

func (*MintV2) SetSysvarInstructionsAccount

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

SetSysvarInstructionsAccount sets the "sysvarInstructions" account. Instructions sysvar account.

func (*MintV2) SetTokenAccount

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

SetTokenAccount sets the "token" account. Destination token account (required for pNFT).

func (*MintV2) SetTokenMetadataProgramAccount

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

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account. Token Metadata program.

func (*MintV2) SetTokenRecordAccount

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

SetTokenRecordAccount sets the "tokenRecord" account. Token record (required for pNFT).

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 NftBurn

type NftBurn struct {
	RequiredCollection ag_solanago.PublicKey
}

func (NftBurn) MarshalWithEncoder

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

func (*NftBurn) UnmarshalWithDecoder

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

type NftGate

type NftGate struct {
	RequiredCollection ag_solanago.PublicKey
}

func (NftGate) MarshalWithEncoder

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

func (*NftGate) UnmarshalWithDecoder

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

type NftPayment

type NftPayment struct {
	RequiredCollection ag_solanago.PublicKey
	Destination        ag_solanago.PublicKey
}

func (NftPayment) MarshalWithEncoder

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

func (*NftPayment) UnmarshalWithDecoder

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

type ProgramGate

type ProgramGate struct {
	Additional []ag_solanago.PublicKey
}

func (ProgramGate) MarshalWithEncoder

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

func (*ProgramGate) UnmarshalWithDecoder

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

type RedeemedAmount

type RedeemedAmount struct {
	Maximum uint64
}

func (RedeemedAmount) MarshalWithEncoder

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

func (*RedeemedAmount) UnmarshalWithDecoder

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

type Route

type Route struct {
	Args  *RouteArgs
	Label *string `bin:"optional"`

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

Route the transaction to a guard instruction.

func NewRouteInstruction

func NewRouteInstruction(

	args RouteArgs,
	label string,

	candyGuard ag_solanago.PublicKey,
	candyMachine ag_solanago.PublicKey,
	payer ag_solanago.PublicKey) *Route

NewRouteInstruction declares a new Route instruction with the provided parameters and accounts.

func NewRouteInstructionBuilder

func NewRouteInstructionBuilder() *Route

NewRouteInstructionBuilder creates a new `Route` instruction builder.

func (Route) Build

func (inst Route) Build() *Instruction

func (*Route) EncodeToTree

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

func (*Route) GetCandyGuardAccount

func (inst *Route) GetCandyGuardAccount() *ag_solanago.AccountMeta

GetCandyGuardAccount gets the "candyGuard" account.

func (*Route) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*Route) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (Route) MarshalWithEncoder

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

func (*Route) SetArgs

func (inst *Route) SetArgs(args RouteArgs) *Route

SetArgs sets the "args" parameter.

func (*Route) SetCandyGuardAccount

func (inst *Route) SetCandyGuardAccount(candyGuard ag_solanago.PublicKey) *Route

SetCandyGuardAccount sets the "candyGuard" account.

func (*Route) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*Route) SetLabel

func (inst *Route) SetLabel(label string) *Route

SetLabel sets the "label" parameter.

func (*Route) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*Route) UnmarshalWithDecoder

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

func (*Route) Validate

func (inst *Route) Validate() error

func (Route) ValidateAndBuild

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

type RouteArgs struct {
	// The target guard type.
	Guard GuardType

	// Arguments for the guard instruction.
	Data []byte
}

func (RouteArgs) MarshalWithEncoder

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

func (*RouteArgs) UnmarshalWithDecoder

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

type SetAuthority

type SetAuthority struct {
	NewAuthority *ag_solanago.PublicKey

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

Set a new authority of the candy guard.

func NewSetAuthorityInstruction

func NewSetAuthorityInstruction(

	newAuthority ag_solanago.PublicKey,

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

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

func NewSetAuthorityInstructionBuilder

func NewSetAuthorityInstructionBuilder() *SetAuthority

NewSetAuthorityInstructionBuilder creates a new `SetAuthority` instruction builder.

func (SetAuthority) Build

func (inst SetAuthority) Build() *Instruction

func (*SetAuthority) EncodeToTree

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

func (*SetAuthority) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*SetAuthority) GetCandyGuardAccount

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

GetCandyGuardAccount gets the "candyGuard" account.

func (SetAuthority) MarshalWithEncoder

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

func (*SetAuthority) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*SetAuthority) SetCandyGuardAccount

func (inst *SetAuthority) SetCandyGuardAccount(candyGuard ag_solanago.PublicKey) *SetAuthority

SetCandyGuardAccount sets the "candyGuard" account.

func (*SetAuthority) SetNewAuthority

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

SetNewAuthority sets the "newAuthority" parameter.

func (*SetAuthority) UnmarshalWithDecoder

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

func (*SetAuthority) Validate

func (inst *SetAuthority) Validate() error

func (SetAuthority) ValidateAndBuild

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

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

type SolPayment

type SolPayment struct {
	Lamports    uint64
	Destination ag_solanago.PublicKey
}

func (SolPayment) MarshalWithEncoder

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

func (*SolPayment) UnmarshalWithDecoder

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

type StartDate

type StartDate struct {
	Date int64
}

func (StartDate) MarshalWithEncoder

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

func (*StartDate) UnmarshalWithDecoder

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

type ThirdPartySigner

type ThirdPartySigner struct {
	SignerKey ag_solanago.PublicKey
}

func (ThirdPartySigner) MarshalWithEncoder

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

func (*ThirdPartySigner) UnmarshalWithDecoder

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

type Token2022Payment

type Token2022Payment struct {
	Amount         uint64
	Mint           ag_solanago.PublicKey
	DestinationAta ag_solanago.PublicKey
}

func (Token2022Payment) MarshalWithEncoder

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

func (*Token2022Payment) UnmarshalWithDecoder

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

type TokenBurn

type TokenBurn struct {
	Amount uint64
	Mint   ag_solanago.PublicKey
}

func (TokenBurn) MarshalWithEncoder

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

func (*TokenBurn) UnmarshalWithDecoder

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

type TokenGate

type TokenGate struct {
	Amount uint64
	Mint   ag_solanago.PublicKey
}

func (TokenGate) MarshalWithEncoder

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

func (*TokenGate) UnmarshalWithDecoder

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

type TokenPayment

type TokenPayment struct {
	Amount         uint64
	Mint           ag_solanago.PublicKey
	DestinationAta ag_solanago.PublicKey
}

func (TokenPayment) MarshalWithEncoder

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

func (*TokenPayment) UnmarshalWithDecoder

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

type Unwrap

type Unwrap struct {

	// [0] = [] candyGuard
	//
	// [1] = [SIGNER] authority
	//
	// [2] = [WRITE] candyMachine
	//
	// [3] = [SIGNER] candyMachineAuthority
	//
	// [4] = [] candyMachineProgram
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Remove a candy guard from a candy machine, setting the authority to the candy guard authority.

func NewUnwrapInstruction

func NewUnwrapInstruction(

	candyGuard ag_solanago.PublicKey,
	authority ag_solanago.PublicKey,
	candyMachine ag_solanago.PublicKey,
	candyMachineAuthority ag_solanago.PublicKey,
	candyMachineProgram ag_solanago.PublicKey) *Unwrap

NewUnwrapInstruction declares a new Unwrap instruction with the provided parameters and accounts.

func NewUnwrapInstructionBuilder

func NewUnwrapInstructionBuilder() *Unwrap

NewUnwrapInstructionBuilder creates a new `Unwrap` instruction builder.

func (Unwrap) Build

func (inst Unwrap) Build() *Instruction

func (*Unwrap) EncodeToTree

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

func (*Unwrap) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*Unwrap) GetCandyGuardAccount

func (inst *Unwrap) GetCandyGuardAccount() *ag_solanago.AccountMeta

GetCandyGuardAccount gets the "candyGuard" account.

func (*Unwrap) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*Unwrap) GetCandyMachineAuthorityAccount

func (inst *Unwrap) GetCandyMachineAuthorityAccount() *ag_solanago.AccountMeta

GetCandyMachineAuthorityAccount gets the "candyMachineAuthority" account.

func (*Unwrap) GetCandyMachineProgramAccount

func (inst *Unwrap) GetCandyMachineProgramAccount() *ag_solanago.AccountMeta

GetCandyMachineProgramAccount gets the "candyMachineProgram" account.

func (Unwrap) MarshalWithEncoder

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

func (*Unwrap) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*Unwrap) SetCandyGuardAccount

func (inst *Unwrap) SetCandyGuardAccount(candyGuard ag_solanago.PublicKey) *Unwrap

SetCandyGuardAccount sets the "candyGuard" account.

func (*Unwrap) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*Unwrap) SetCandyMachineAuthorityAccount

func (inst *Unwrap) SetCandyMachineAuthorityAccount(candyMachineAuthority ag_solanago.PublicKey) *Unwrap

SetCandyMachineAuthorityAccount sets the "candyMachineAuthority" account.

func (*Unwrap) SetCandyMachineProgramAccount

func (inst *Unwrap) SetCandyMachineProgramAccount(candyMachineProgram ag_solanago.PublicKey) *Unwrap

SetCandyMachineProgramAccount sets the "candyMachineProgram" account.

func (*Unwrap) UnmarshalWithDecoder

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

func (*Unwrap) Validate

func (inst *Unwrap) Validate() error

func (Unwrap) ValidateAndBuild

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

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

type Update

type Update struct {
	Data *[]byte

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

Update the candy guard configuration.

func NewUpdateInstruction

func NewUpdateInstruction(

	data []byte,

	candyGuard ag_solanago.PublicKey,
	authority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey) *Update

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

func NewUpdateInstructionBuilder

func NewUpdateInstructionBuilder() *Update

NewUpdateInstructionBuilder creates a new `Update` instruction builder.

func (Update) Build

func (inst Update) Build() *Instruction

func (*Update) EncodeToTree

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

func (*Update) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*Update) GetCandyGuardAccount

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

GetCandyGuardAccount gets the "candyGuard" account.

func (*Update) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*Update) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (Update) MarshalWithEncoder

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

func (*Update) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*Update) SetCandyGuardAccount

func (inst *Update) SetCandyGuardAccount(candyGuard ag_solanago.PublicKey) *Update

SetCandyGuardAccount sets the "candyGuard" account.

func (*Update) SetData

func (inst *Update) SetData(data []byte) *Update

SetData sets the "data" parameter.

func (*Update) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*Update) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*Update) UnmarshalWithDecoder

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

func (*Update) Validate

func (inst *Update) Validate() error

func (Update) ValidateAndBuild

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

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

type Withdraw

type Withdraw struct {

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

Withdraw the rent SOL from the candy guard account.

func NewWithdrawInstruction

func NewWithdrawInstruction(

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

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

func NewWithdrawInstructionBuilder

func NewWithdrawInstructionBuilder() *Withdraw

NewWithdrawInstructionBuilder creates a new `Withdraw` instruction builder.

func (Withdraw) Build

func (inst Withdraw) Build() *Instruction

func (*Withdraw) EncodeToTree

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

func (*Withdraw) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*Withdraw) GetCandyGuardAccount

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

GetCandyGuardAccount gets the "candyGuard" account.

func (Withdraw) MarshalWithEncoder

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

func (*Withdraw) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*Withdraw) SetCandyGuardAccount

func (inst *Withdraw) SetCandyGuardAccount(candyGuard ag_solanago.PublicKey) *Withdraw

SetCandyGuardAccount sets the "candyGuard" account.

func (*Withdraw) UnmarshalWithDecoder

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

func (*Withdraw) Validate

func (inst *Withdraw) Validate() error

func (Withdraw) ValidateAndBuild

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

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

type Wrap

type Wrap struct {

	// [0] = [] candyGuard
	//
	// [1] = [SIGNER] authority
	//
	// [2] = [WRITE] candyMachine
	//
	// [3] = [] candyMachineProgram
	//
	// [4] = [SIGNER] candyMachineAuthority
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Add a candy guard to a candy machine. After the guard is added, mint is only allowed through the candy guard.

func NewWrapInstruction

func NewWrapInstruction(

	candyGuard ag_solanago.PublicKey,
	authority ag_solanago.PublicKey,
	candyMachine ag_solanago.PublicKey,
	candyMachineProgram ag_solanago.PublicKey,
	candyMachineAuthority ag_solanago.PublicKey) *Wrap

NewWrapInstruction declares a new Wrap instruction with the provided parameters and accounts.

func NewWrapInstructionBuilder

func NewWrapInstructionBuilder() *Wrap

NewWrapInstructionBuilder creates a new `Wrap` instruction builder.

func (Wrap) Build

func (inst Wrap) Build() *Instruction

func (*Wrap) EncodeToTree

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

func (*Wrap) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*Wrap) GetCandyGuardAccount

func (inst *Wrap) GetCandyGuardAccount() *ag_solanago.AccountMeta

GetCandyGuardAccount gets the "candyGuard" account.

func (*Wrap) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*Wrap) GetCandyMachineAuthorityAccount

func (inst *Wrap) GetCandyMachineAuthorityAccount() *ag_solanago.AccountMeta

GetCandyMachineAuthorityAccount gets the "candyMachineAuthority" account.

func (*Wrap) GetCandyMachineProgramAccount

func (inst *Wrap) GetCandyMachineProgramAccount() *ag_solanago.AccountMeta

GetCandyMachineProgramAccount gets the "candyMachineProgram" account.

func (Wrap) MarshalWithEncoder

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

func (*Wrap) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*Wrap) SetCandyGuardAccount

func (inst *Wrap) SetCandyGuardAccount(candyGuard ag_solanago.PublicKey) *Wrap

SetCandyGuardAccount sets the "candyGuard" account.

func (*Wrap) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*Wrap) SetCandyMachineAuthorityAccount

func (inst *Wrap) SetCandyMachineAuthorityAccount(candyMachineAuthority ag_solanago.PublicKey) *Wrap

SetCandyMachineAuthorityAccount sets the "candyMachineAuthority" account.

func (*Wrap) SetCandyMachineProgramAccount

func (inst *Wrap) SetCandyMachineProgramAccount(candyMachineProgram ag_solanago.PublicKey) *Wrap

SetCandyMachineProgramAccount sets the "candyMachineProgram" account.

func (*Wrap) UnmarshalWithDecoder

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

func (*Wrap) Validate

func (inst *Wrap) Validate() error

func (Wrap) ValidateAndBuild

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