nft_candy_machine

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

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

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

Documentation

Index

Constants

View Source
const ProgramName = "NftCandyMachine"

Variables

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

	Instruction_BuyRaffleTicket = ag_binary.TypeID([8]byte{203, 189, 217, 27, 218, 10, 175, 189})

	Instruction_CheckRaffleTicket = ag_binary.TypeID([8]byte{232, 235, 131, 126, 195, 34, 210, 166})

	Instruction_SettleRaffleTicket = ag_binary.TypeID([8]byte{191, 199, 249, 82, 18, 69, 24, 175})

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

	Instruction_InitializeConfig = ag_binary.TypeID([8]byte{208, 127, 21, 1, 194, 190, 196, 70})

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

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

	Instruction_WithdrawFunds = ag_binary.TypeID([8]byte{241, 36, 29, 111, 208, 31, 104, 217})

	Instruction_UpdateConfig = ag_binary.TypeID([8]byte{29, 158, 252, 191, 10, 83, 219, 99})

	Instruction_UpdateLaunchStages = ag_binary.TypeID([8]byte{9, 151, 184, 45, 150, 100, 99, 68})

	Instruction_UnverifyNonMasterEdition = ag_binary.TypeID([8]byte{71, 71, 101, 104, 149, 182, 100, 1})

	Instruction_PopulateOrder = ag_binary.TypeID([8]byte{195, 27, 80, 9, 217, 118, 14, 74})

	Instruction_WithdrawOrderRent = ag_binary.TypeID([8]byte{87, 129, 216, 172, 49, 172, 164, 171})
)
View Source
var CandyMachineDiscriminator = [8]byte{51, 173, 177, 113, 25, 241, 109, 189}
View Source
var ConfigDiscriminator = [8]byte{155, 12, 170, 224, 30, 250, 204, 130}
View Source
var InstructionImplDef = ag_binary.NewVariantDefinition(
	ag_binary.AnchorTypeIDEncoding,
	[]ag_binary.VariantType{
		{
			"mint_nft", (*MintNft)(nil),
		},
		{
			"buy_raffle_ticket", (*BuyRaffleTicket)(nil),
		},
		{
			"check_raffle_ticket", (*CheckRaffleTicket)(nil),
		},
		{
			"settle_raffle_ticket", (*SettleRaffleTicket)(nil),
		},
		{
			"update_candy_machine", (*UpdateCandyMachine)(nil),
		},
		{
			"initialize_config", (*InitializeConfig)(nil),
		},
		{
			"initialize_candy_machine", (*InitializeCandyMachine)(nil),
		},
		{
			"update_authority", (*UpdateAuthority)(nil),
		},
		{
			"withdraw_funds", (*WithdrawFunds)(nil),
		},
		{
			"update_config", (*UpdateConfig)(nil),
		},
		{
			"update_launch_stages", (*UpdateLaunchStages)(nil),
		},
		{
			"unverify_non_master_edition", (*UnverifyNonMasterEdition)(nil),
		},
		{
			"populate_order", (*PopulateOrder)(nil),
		},
		{
			"withdraw_order_rent", (*WithdrawOrderRent)(nil),
		},
	},
)
View Source
var LaunchStagesInfoDiscriminator = [8]byte{240, 136, 220, 246, 160, 33, 234, 253}
View Source
var OrderDiscriminator = [8]byte{134, 173, 223, 185, 77, 86, 28, 51}
View Source
var RaffleTicketDiscriminator = [8]byte{190, 224, 155, 165, 115, 94, 246, 119}
View Source
var WalletLimitInfoDiscriminator = [8]byte{46, 250, 5, 143, 39, 123, 104, 115}

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 BuyRaffleTicket

type BuyRaffleTicket struct {
	WalletLimitBump  *uint8
	RaffleTicketBump *uint8
	EscrowBump       *uint8
	CurrTime         *int64

	// [0] = [] config
	//
	// [1] = [WRITE] candyMachine
	//
	// [2] = [WRITE, SIGNER] payer
	//
	// [3] = [] launchStagesInfo
	//
	// [4] = [WRITE] raffleTicket
	//
	// [5] = [WRITE] payFrom
	//
	// [6] = [WRITE] raffleEscrow
	//
	// [7] = [] paymentMint
	//
	// [8] = [WRITE] walletLimitInfo
	//
	// [9] = [] slotHashes
	//
	// [10] = [SIGNER] notary
	//
	// [11] = [] systemProgram
	//
	// [12] = [] rent
	//
	// [13] = [] tokenProgram
	//
	// [14] = [] associatedTokenProgram
	ag_solanago.AccountMetaSlice `bin:"-"`
}

BuyRaffleTicket is the `buyRaffleTicket` instruction.

func NewBuyRaffleTicketInstruction

func NewBuyRaffleTicketInstruction(

	walletLimitBump uint8,
	raffleTicketBump uint8,
	escrowBump uint8,
	currTime int64,

	config ag_solanago.PublicKey,
	candyMachine ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	launchStagesInfo ag_solanago.PublicKey,
	raffleTicket ag_solanago.PublicKey,
	payFrom ag_solanago.PublicKey,
	raffleEscrow ag_solanago.PublicKey,
	paymentMint ag_solanago.PublicKey,
	walletLimitInfo ag_solanago.PublicKey,
	slotHashes ag_solanago.PublicKey,
	notary ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	associatedTokenProgram ag_solanago.PublicKey) *BuyRaffleTicket

NewBuyRaffleTicketInstruction declares a new BuyRaffleTicket instruction with the provided parameters and accounts.

func NewBuyRaffleTicketInstructionBuilder

func NewBuyRaffleTicketInstructionBuilder() *BuyRaffleTicket

NewBuyRaffleTicketInstructionBuilder creates a new `BuyRaffleTicket` instruction builder.

func (BuyRaffleTicket) Build

func (inst BuyRaffleTicket) Build() *Instruction

func (*BuyRaffleTicket) EncodeToTree

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

func (*BuyRaffleTicket) GetAssociatedTokenProgramAccount

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

GetAssociatedTokenProgramAccount gets the "associatedTokenProgram" account.

func (*BuyRaffleTicket) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*BuyRaffleTicket) GetConfigAccount

func (inst *BuyRaffleTicket) GetConfigAccount() *ag_solanago.AccountMeta

GetConfigAccount gets the "config" account.

func (*BuyRaffleTicket) GetLaunchStagesInfoAccount

func (inst *BuyRaffleTicket) GetLaunchStagesInfoAccount() *ag_solanago.AccountMeta

GetLaunchStagesInfoAccount gets the "launchStagesInfo" account.

func (*BuyRaffleTicket) GetNotaryAccount

func (inst *BuyRaffleTicket) GetNotaryAccount() *ag_solanago.AccountMeta

GetNotaryAccount gets the "notary" account.

func (*BuyRaffleTicket) GetPayFromAccount

func (inst *BuyRaffleTicket) GetPayFromAccount() *ag_solanago.AccountMeta

GetPayFromAccount gets the "payFrom" account.

func (*BuyRaffleTicket) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*BuyRaffleTicket) GetPaymentMintAccount

func (inst *BuyRaffleTicket) GetPaymentMintAccount() *ag_solanago.AccountMeta

GetPaymentMintAccount gets the "paymentMint" account.

func (*BuyRaffleTicket) GetRaffleEscrowAccount

func (inst *BuyRaffleTicket) GetRaffleEscrowAccount() *ag_solanago.AccountMeta

GetRaffleEscrowAccount gets the "raffleEscrow" account.

func (*BuyRaffleTicket) GetRaffleTicketAccount

func (inst *BuyRaffleTicket) GetRaffleTicketAccount() *ag_solanago.AccountMeta

GetRaffleTicketAccount gets the "raffleTicket" account.

func (*BuyRaffleTicket) GetRentAccount

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

GetRentAccount gets the "rent" account.

func (*BuyRaffleTicket) GetSlotHashesAccount

func (inst *BuyRaffleTicket) GetSlotHashesAccount() *ag_solanago.AccountMeta

GetSlotHashesAccount gets the "slotHashes" account.

func (*BuyRaffleTicket) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*BuyRaffleTicket) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (*BuyRaffleTicket) GetWalletLimitInfoAccount

func (inst *BuyRaffleTicket) GetWalletLimitInfoAccount() *ag_solanago.AccountMeta

GetWalletLimitInfoAccount gets the "walletLimitInfo" account.

func (BuyRaffleTicket) MarshalWithEncoder

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

func (*BuyRaffleTicket) SetAssociatedTokenProgramAccount

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

SetAssociatedTokenProgramAccount sets the "associatedTokenProgram" account.

func (*BuyRaffleTicket) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*BuyRaffleTicket) SetConfigAccount

func (inst *BuyRaffleTicket) SetConfigAccount(config ag_solanago.PublicKey) *BuyRaffleTicket

SetConfigAccount sets the "config" account.

func (*BuyRaffleTicket) SetCurrTime

func (inst *BuyRaffleTicket) SetCurrTime(currTime int64) *BuyRaffleTicket

SetCurrTime sets the "currTime" parameter.

func (*BuyRaffleTicket) SetEscrowBump

func (inst *BuyRaffleTicket) SetEscrowBump(escrowBump uint8) *BuyRaffleTicket

SetEscrowBump sets the "escrowBump" parameter.

func (*BuyRaffleTicket) SetLaunchStagesInfoAccount

func (inst *BuyRaffleTicket) SetLaunchStagesInfoAccount(launchStagesInfo ag_solanago.PublicKey) *BuyRaffleTicket

SetLaunchStagesInfoAccount sets the "launchStagesInfo" account.

func (*BuyRaffleTicket) SetNotaryAccount

func (inst *BuyRaffleTicket) SetNotaryAccount(notary ag_solanago.PublicKey) *BuyRaffleTicket

SetNotaryAccount sets the "notary" account.

func (*BuyRaffleTicket) SetPayFromAccount

func (inst *BuyRaffleTicket) SetPayFromAccount(payFrom ag_solanago.PublicKey) *BuyRaffleTicket

SetPayFromAccount sets the "payFrom" account.

func (*BuyRaffleTicket) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*BuyRaffleTicket) SetPaymentMintAccount

func (inst *BuyRaffleTicket) SetPaymentMintAccount(paymentMint ag_solanago.PublicKey) *BuyRaffleTicket

SetPaymentMintAccount sets the "paymentMint" account.

func (*BuyRaffleTicket) SetRaffleEscrowAccount

func (inst *BuyRaffleTicket) SetRaffleEscrowAccount(raffleEscrow ag_solanago.PublicKey) *BuyRaffleTicket

SetRaffleEscrowAccount sets the "raffleEscrow" account.

func (*BuyRaffleTicket) SetRaffleTicketAccount

func (inst *BuyRaffleTicket) SetRaffleTicketAccount(raffleTicket ag_solanago.PublicKey) *BuyRaffleTicket

SetRaffleTicketAccount sets the "raffleTicket" account.

func (*BuyRaffleTicket) SetRaffleTicketBump

func (inst *BuyRaffleTicket) SetRaffleTicketBump(raffleTicketBump uint8) *BuyRaffleTicket

SetRaffleTicketBump sets the "raffleTicketBump" parameter.

func (*BuyRaffleTicket) SetRentAccount

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

SetRentAccount sets the "rent" account.

func (*BuyRaffleTicket) SetSlotHashesAccount

func (inst *BuyRaffleTicket) SetSlotHashesAccount(slotHashes ag_solanago.PublicKey) *BuyRaffleTicket

SetSlotHashesAccount sets the "slotHashes" account.

func (*BuyRaffleTicket) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*BuyRaffleTicket) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account.

func (*BuyRaffleTicket) SetWalletLimitBump

func (inst *BuyRaffleTicket) SetWalletLimitBump(walletLimitBump uint8) *BuyRaffleTicket

SetWalletLimitBump sets the "walletLimitBump" parameter.

func (*BuyRaffleTicket) SetWalletLimitInfoAccount

func (inst *BuyRaffleTicket) SetWalletLimitInfoAccount(walletLimitInfo ag_solanago.PublicKey) *BuyRaffleTicket

SetWalletLimitInfoAccount sets the "walletLimitInfo" account.

func (*BuyRaffleTicket) UnmarshalWithDecoder

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

func (*BuyRaffleTicket) Validate

func (inst *BuyRaffleTicket) Validate() error

func (BuyRaffleTicket) ValidateAndBuild

func (inst BuyRaffleTicket) 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
	WalletAuthority        ag_solanago.PublicKey
	Config                 ag_solanago.PublicKey
	ItemsRedeemedNormal    uint64
	ItemsRedeemedRaffle    uint64
	RaffleTicketsPurchased uint64
	Uuid                   string
	ItemsAvailable         uint64
	RaffleSeed             uint64
	Bump                   uint8
	Notary                 *ag_solanago.PublicKey `bin:"optional"`
	OrderInfo              ag_solanago.PublicKey
}

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 CheckRaffleTicket

type CheckRaffleTicket struct {
	CurrTime *int64

	// [0] = [] config
	//
	// [1] = [] candyMachine
	//
	// [2] = [] launchStagesInfo
	//
	// [3] = [] raffleTicket
	//
	// [4] = [] payer
	ag_solanago.AccountMetaSlice `bin:"-"`
}

CheckRaffleTicket is the `checkRaffleTicket` instruction.

func NewCheckRaffleTicketInstruction

func NewCheckRaffleTicketInstruction(

	currTime int64,

	config ag_solanago.PublicKey,
	candyMachine ag_solanago.PublicKey,
	launchStagesInfo ag_solanago.PublicKey,
	raffleTicket ag_solanago.PublicKey,
	payer ag_solanago.PublicKey) *CheckRaffleTicket

NewCheckRaffleTicketInstruction declares a new CheckRaffleTicket instruction with the provided parameters and accounts.

func NewCheckRaffleTicketInstructionBuilder

func NewCheckRaffleTicketInstructionBuilder() *CheckRaffleTicket

NewCheckRaffleTicketInstructionBuilder creates a new `CheckRaffleTicket` instruction builder.

func (CheckRaffleTicket) Build

func (inst CheckRaffleTicket) Build() *Instruction

func (*CheckRaffleTicket) EncodeToTree

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

func (*CheckRaffleTicket) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*CheckRaffleTicket) GetConfigAccount

func (inst *CheckRaffleTicket) GetConfigAccount() *ag_solanago.AccountMeta

GetConfigAccount gets the "config" account.

func (*CheckRaffleTicket) GetLaunchStagesInfoAccount

func (inst *CheckRaffleTicket) GetLaunchStagesInfoAccount() *ag_solanago.AccountMeta

GetLaunchStagesInfoAccount gets the "launchStagesInfo" account.

func (*CheckRaffleTicket) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*CheckRaffleTicket) GetRaffleTicketAccount

func (inst *CheckRaffleTicket) GetRaffleTicketAccount() *ag_solanago.AccountMeta

GetRaffleTicketAccount gets the "raffleTicket" account.

func (CheckRaffleTicket) MarshalWithEncoder

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

func (*CheckRaffleTicket) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*CheckRaffleTicket) SetConfigAccount

func (inst *CheckRaffleTicket) SetConfigAccount(config ag_solanago.PublicKey) *CheckRaffleTicket

SetConfigAccount sets the "config" account.

func (*CheckRaffleTicket) SetCurrTime

func (inst *CheckRaffleTicket) SetCurrTime(currTime int64) *CheckRaffleTicket

SetCurrTime sets the "currTime" parameter.

func (*CheckRaffleTicket) SetLaunchStagesInfoAccount

func (inst *CheckRaffleTicket) SetLaunchStagesInfoAccount(launchStagesInfo ag_solanago.PublicKey) *CheckRaffleTicket

SetLaunchStagesInfoAccount sets the "launchStagesInfo" account.

func (*CheckRaffleTicket) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*CheckRaffleTicket) SetRaffleTicketAccount

func (inst *CheckRaffleTicket) SetRaffleTicketAccount(raffleTicket ag_solanago.PublicKey) *CheckRaffleTicket

SetRaffleTicketAccount sets the "raffleTicket" account.

func (*CheckRaffleTicket) UnmarshalWithDecoder

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

func (*CheckRaffleTicket) Validate

func (inst *CheckRaffleTicket) Validate() error

func (CheckRaffleTicket) ValidateAndBuild

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

type Config struct {
	Authority            ag_solanago.PublicKey
	Gateway              string
	Cid                  string
	Uuid                 string
	CollectionName       string
	Symbol               string
	SellerFeeBasisPoints uint16
	Creators             []Creator
	IsMutable            bool
	RetainAuthority      bool
}

func (Config) MarshalWithEncoder

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

func (*Config) UnmarshalWithDecoder

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

type 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 InitializeCandyMachine

type InitializeCandyMachine struct {
	Args *InitializeCandyMachineArgs

	// [0] = [WRITE] candyMachine
	//
	// [1] = [WRITE] launchStagesInfo
	//
	// [2] = [WRITE] orderInfo
	//
	// [3] = [] walletAuthority
	//
	// [4] = [] config
	//
	// [5] = [SIGNER] authority
	//
	// [6] = [WRITE, SIGNER] payer
	//
	// [7] = [] notary
	//
	// [8] = [] systemProgram
	//
	// [9] = [] rent
	//
	// [10] = [] associatedTokenProgram
	//
	// [11] = [] tokenProgram
	ag_solanago.AccountMetaSlice `bin:"-"`
}

InitializeCandyMachine is the `initializeCandyMachine` instruction.

func NewInitializeCandyMachineInstruction

func NewInitializeCandyMachineInstruction(

	args InitializeCandyMachineArgs,

	candyMachine ag_solanago.PublicKey,
	launchStagesInfo ag_solanago.PublicKey,
	orderInfo ag_solanago.PublicKey,
	walletAuthority ag_solanago.PublicKey,
	config ag_solanago.PublicKey,
	authority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	notary ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey,
	associatedTokenProgram ag_solanago.PublicKey,
	tokenProgram 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) GetAssociatedTokenProgramAccount

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

GetAssociatedTokenProgramAccount gets the "associatedTokenProgram" account.

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) GetConfigAccount

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

GetConfigAccount gets the "config" account.

func (*InitializeCandyMachine) GetLaunchStagesInfoAccount

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

GetLaunchStagesInfoAccount gets the "launchStagesInfo" account.

func (*InitializeCandyMachine) GetNotaryAccount

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

GetNotaryAccount gets the "notary" account.

func (*InitializeCandyMachine) GetOrderInfoAccount

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

GetOrderInfoAccount gets the "orderInfo" 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) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (*InitializeCandyMachine) GetWalletAuthorityAccount

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

GetWalletAuthorityAccount gets the "walletAuthority" account.

func (InitializeCandyMachine) MarshalWithEncoder

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

func (*InitializeCandyMachine) SetArgs

SetArgs sets the "args" parameter.

func (*InitializeCandyMachine) SetAssociatedTokenProgramAccount

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

SetAssociatedTokenProgramAccount sets the "associatedTokenProgram" account.

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) SetConfigAccount

func (inst *InitializeCandyMachine) SetConfigAccount(config ag_solanago.PublicKey) *InitializeCandyMachine

SetConfigAccount sets the "config" account.

func (*InitializeCandyMachine) SetLaunchStagesInfoAccount

func (inst *InitializeCandyMachine) SetLaunchStagesInfoAccount(launchStagesInfo ag_solanago.PublicKey) *InitializeCandyMachine

SetLaunchStagesInfoAccount sets the "launchStagesInfo" account.

func (*InitializeCandyMachine) SetNotaryAccount

func (inst *InitializeCandyMachine) SetNotaryAccount(notary ag_solanago.PublicKey) *InitializeCandyMachine

SetNotaryAccount sets the "notary" account.

func (*InitializeCandyMachine) SetOrderInfoAccount

func (inst *InitializeCandyMachine) SetOrderInfoAccount(orderInfo ag_solanago.PublicKey) *InitializeCandyMachine

SetOrderInfoAccount sets the "orderInfo" account.

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) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account.

func (*InitializeCandyMachine) SetWalletAuthorityAccount

func (inst *InitializeCandyMachine) SetWalletAuthorityAccount(walletAuthority ag_solanago.PublicKey) *InitializeCandyMachine

SetWalletAuthorityAccount sets the "walletAuthority" 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 InitializeCandyMachineArgs

type InitializeCandyMachineArgs struct {
	CmBump           uint8
	LaunchStagesBump uint8
	Uuid             string
	ItemsAvailable   uint64
	Stages           []LaunchStageArgs
}

func (InitializeCandyMachineArgs) MarshalWithEncoder

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

func (*InitializeCandyMachineArgs) UnmarshalWithDecoder

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

type InitializeConfig

type InitializeConfig struct {
	Args *InitializeConfigArgs

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

InitializeConfig is the `initializeConfig` instruction.

func NewInitializeConfigInstruction

func NewInitializeConfigInstruction(

	args InitializeConfigArgs,

	config ag_solanago.PublicKey,
	authority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	rent ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey) *InitializeConfig

NewInitializeConfigInstruction declares a new InitializeConfig instruction with the provided parameters and accounts.

func NewInitializeConfigInstructionBuilder

func NewInitializeConfigInstructionBuilder() *InitializeConfig

NewInitializeConfigInstructionBuilder creates a new `InitializeConfig` instruction builder.

func (InitializeConfig) Build

func (inst InitializeConfig) Build() *Instruction

func (*InitializeConfig) EncodeToTree

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

func (*InitializeConfig) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*InitializeConfig) GetConfigAccount

func (inst *InitializeConfig) GetConfigAccount() *ag_solanago.AccountMeta

GetConfigAccount gets the "config" account.

func (*InitializeConfig) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*InitializeConfig) GetRentAccount

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

GetRentAccount gets the "rent" account.

func (*InitializeConfig) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (InitializeConfig) MarshalWithEncoder

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

func (*InitializeConfig) SetArgs

SetArgs sets the "args" parameter.

func (*InitializeConfig) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*InitializeConfig) SetConfigAccount

func (inst *InitializeConfig) SetConfigAccount(config ag_solanago.PublicKey) *InitializeConfig

SetConfigAccount sets the "config" account.

func (*InitializeConfig) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*InitializeConfig) SetRentAccount

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

SetRentAccount sets the "rent" account.

func (*InitializeConfig) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*InitializeConfig) UnmarshalWithDecoder

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

func (*InitializeConfig) Validate

func (inst *InitializeConfig) Validate() error

func (InitializeConfig) ValidateAndBuild

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

type InitializeConfigArgs struct {
	Gateway              string
	Cid                  string
	Uuid                 string
	CollectionName       string
	Symbol               string
	SellerFeeBasisPoints uint16
	Creators             []Creator
	IsMutable            bool
	RetainAuthority      bool
}

func (InitializeConfigArgs) MarshalWithEncoder

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

func (*InitializeConfigArgs) UnmarshalWithDecoder

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

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 LaunchStage

type LaunchStage struct {
	StageType                   LaunchStageType
	StartTime                   int64
	EndTime                     int64
	WalletLimit                 WalletLimitSpecification
	Price                       uint64
	StageSupply                 *uint32 `bin:"optional"`
	PreviousStageUnmintedSupply uint32
	MintedDuringStage           uint32
	PaymentMint                 ag_solanago.PublicKey
	PaymentAta                  ag_solanago.PublicKey
}

func (LaunchStage) MarshalWithEncoder

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

func (*LaunchStage) UnmarshalWithDecoder

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

type LaunchStageArgs

type LaunchStageArgs struct {
	StageType          LaunchStageType
	StartTime          int64
	EndTime            int64
	WalletLimit        WalletLimitSpecification
	Price              uint64
	StageSupply        *uint32 `bin:"optional"`
	PaymentMintIndex   uint8
	PaymentMintAtaBump uint8
}

func (LaunchStageArgs) MarshalWithEncoder

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

func (*LaunchStageArgs) UnmarshalWithDecoder

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

type LaunchStageType

type LaunchStageType ag_binary.BorshEnum
const (
	LaunchStageTypeInvalid LaunchStageType = iota
	LaunchStageTypeNormalSale
	LaunchStageTypeRaffle
)

func (LaunchStageType) String

func (value LaunchStageType) String() string

type LaunchStagesInfo

type LaunchStagesInfo struct {
	Bump         uint8
	Authority    ag_solanago.PublicKey
	CandyMachine ag_solanago.PublicKey
	Stages       []LaunchStage
}

func (LaunchStagesInfo) MarshalWithEncoder

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

func (*LaunchStagesInfo) UnmarshalWithDecoder

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

type MintNft

type MintNft struct {
	WalletLimitBump *uint8
	InOrder         *bool
	UserLimit       *uint8 `bin:"optional"`
	CurrTime        *int64

	// [0] = [] config
	//
	// [1] = [WRITE] candyMachine
	//
	// [2] = [] mintReceiver
	//
	// [3] = [WRITE] candyMachineWalletAuthority
	//
	// [4] = [WRITE, SIGNER] payer
	//
	// [5] = [WRITE] launchStagesInfo
	//
	// [6] = [WRITE] payFrom
	//
	// [7] = [WRITE] payTo
	//
	// [8] = [] notary
	//
	// [9] = [WRITE] metadata
	//
	// [10] = [WRITE, SIGNER] mint
	//
	// [11] = [WRITE] tokenAta
	//
	// [12] = [WRITE] masterEdition
	//
	// [13] = [WRITE] walletLimitInfo
	//
	// [14] = [WRITE] orderInfo
	//
	// [15] = [] slotHashes
	//
	// [16] = [] tokenMetadataProgram
	//
	// [17] = [] tokenProgram
	//
	// [18] = [] systemProgram
	//
	// [19] = [] associatedTokenProgram
	//
	// [20] = [] rent
	ag_solanago.AccountMetaSlice `bin:"-"`
}

MintNft is the `mintNft` instruction.

func NewMintNftInstruction

func NewMintNftInstruction(

	walletLimitBump uint8,
	inOrder bool,
	userLimit uint8,
	currTime int64,

	config ag_solanago.PublicKey,
	candyMachine ag_solanago.PublicKey,
	mintReceiver ag_solanago.PublicKey,
	candyMachineWalletAuthority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	launchStagesInfo ag_solanago.PublicKey,
	payFrom ag_solanago.PublicKey,
	payTo ag_solanago.PublicKey,
	notary ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	mint ag_solanago.PublicKey,
	tokenAta ag_solanago.PublicKey,
	masterEdition ag_solanago.PublicKey,
	walletLimitInfo ag_solanago.PublicKey,
	orderInfo ag_solanago.PublicKey,
	slotHashes ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	associatedTokenProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *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) GetAssociatedTokenProgramAccount

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

GetAssociatedTokenProgramAccount gets the "associatedTokenProgram" account.

func (*MintNft) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*MintNft) GetCandyMachineWalletAuthorityAccount

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

GetCandyMachineWalletAuthorityAccount gets the "candyMachineWalletAuthority" account.

func (*MintNft) GetConfigAccount

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

GetConfigAccount gets the "config" account.

func (*MintNft) GetLaunchStagesInfoAccount

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

GetLaunchStagesInfoAccount gets the "launchStagesInfo" 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) GetMintReceiverAccount

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

GetMintReceiverAccount gets the "mintReceiver" account.

func (*MintNft) GetNotaryAccount

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

GetNotaryAccount gets the "notary" account.

func (*MintNft) GetOrderInfoAccount

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

GetOrderInfoAccount gets the "orderInfo" account.

func (*MintNft) GetPayFromAccount

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

GetPayFromAccount gets the "payFrom" account.

func (*MintNft) GetPayToAccount

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

GetPayToAccount gets the "payTo" account.

func (*MintNft) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*MintNft) GetRentAccount

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

GetRentAccount gets the "rent" account.

func (*MintNft) GetSlotHashesAccount

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

GetSlotHashesAccount gets the "slotHashes" account.

func (*MintNft) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*MintNft) GetTokenAtaAccount

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

GetTokenAtaAccount gets the "tokenAta" 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) GetWalletLimitInfoAccount

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

GetWalletLimitInfoAccount gets the "walletLimitInfo" account.

func (MintNft) MarshalWithEncoder

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

func (*MintNft) SetAssociatedTokenProgramAccount

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

SetAssociatedTokenProgramAccount sets the "associatedTokenProgram" account.

func (*MintNft) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*MintNft) SetCandyMachineWalletAuthorityAccount

func (inst *MintNft) SetCandyMachineWalletAuthorityAccount(candyMachineWalletAuthority ag_solanago.PublicKey) *MintNft

SetCandyMachineWalletAuthorityAccount sets the "candyMachineWalletAuthority" account.

func (*MintNft) SetConfigAccount

func (inst *MintNft) SetConfigAccount(config ag_solanago.PublicKey) *MintNft

SetConfigAccount sets the "config" account.

func (*MintNft) SetCurrTime

func (inst *MintNft) SetCurrTime(currTime int64) *MintNft

SetCurrTime sets the "currTime" parameter.

func (*MintNft) SetInOrder

func (inst *MintNft) SetInOrder(inOrder bool) *MintNft

SetInOrder sets the "inOrder" parameter.

func (*MintNft) SetLaunchStagesInfoAccount

func (inst *MintNft) SetLaunchStagesInfoAccount(launchStagesInfo ag_solanago.PublicKey) *MintNft

SetLaunchStagesInfoAccount sets the "launchStagesInfo" 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) SetMintReceiverAccount

func (inst *MintNft) SetMintReceiverAccount(mintReceiver ag_solanago.PublicKey) *MintNft

SetMintReceiverAccount sets the "mintReceiver" account.

func (*MintNft) SetNotaryAccount

func (inst *MintNft) SetNotaryAccount(notary ag_solanago.PublicKey) *MintNft

SetNotaryAccount sets the "notary" account.

func (*MintNft) SetOrderInfoAccount

func (inst *MintNft) SetOrderInfoAccount(orderInfo ag_solanago.PublicKey) *MintNft

SetOrderInfoAccount sets the "orderInfo" account.

func (*MintNft) SetPayFromAccount

func (inst *MintNft) SetPayFromAccount(payFrom ag_solanago.PublicKey) *MintNft

SetPayFromAccount sets the "payFrom" account.

func (*MintNft) SetPayToAccount

func (inst *MintNft) SetPayToAccount(payTo ag_solanago.PublicKey) *MintNft

SetPayToAccount sets the "payTo" account.

func (*MintNft) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*MintNft) SetRentAccount

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

SetRentAccount sets the "rent" account.

func (*MintNft) SetSlotHashesAccount

func (inst *MintNft) SetSlotHashesAccount(slotHashes ag_solanago.PublicKey) *MintNft

SetSlotHashesAccount sets the "slotHashes" account.

func (*MintNft) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*MintNft) SetTokenAtaAccount

func (inst *MintNft) SetTokenAtaAccount(tokenAta ag_solanago.PublicKey) *MintNft

SetTokenAtaAccount sets the "tokenAta" 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) SetUserLimit

func (inst *MintNft) SetUserLimit(userLimit uint8) *MintNft

SetUserLimit sets the "userLimit" parameter.

func (*MintNft) SetWalletLimitBump

func (inst *MintNft) SetWalletLimitBump(walletLimitBump uint8) *MintNft

SetWalletLimitBump sets the "walletLimitBump" parameter.

func (*MintNft) SetWalletLimitInfoAccount

func (inst *MintNft) SetWalletLimitInfoAccount(walletLimitInfo ag_solanago.PublicKey) *MintNft

SetWalletLimitInfoAccount sets the "walletLimitInfo" 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 NoLimit

type NoLimit uint8

func (NoLimit) MarshalWithEncoder

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

func (*NoLimit) UnmarshalWithDecoder

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

type Order

type Order struct {
	Filled       uint32
	CandyMachine ag_solanago.PublicKey
	Indices      [50000]uint32
}

func (Order) MarshalWithEncoder

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

func (*Order) UnmarshalWithDecoder

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

type PopulateOrder

type PopulateOrder struct {
	Size *uint32

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

PopulateOrder is the `populateOrder` instruction.

func NewPopulateOrderInstruction

func NewPopulateOrderInstruction(

	size uint32,

	candyMachine ag_solanago.PublicKey,
	orderInfo ag_solanago.PublicKey,
	authority ag_solanago.PublicKey) *PopulateOrder

NewPopulateOrderInstruction declares a new PopulateOrder instruction with the provided parameters and accounts.

func NewPopulateOrderInstructionBuilder

func NewPopulateOrderInstructionBuilder() *PopulateOrder

NewPopulateOrderInstructionBuilder creates a new `PopulateOrder` instruction builder.

func (PopulateOrder) Build

func (inst PopulateOrder) Build() *Instruction

func (*PopulateOrder) EncodeToTree

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

func (*PopulateOrder) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*PopulateOrder) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*PopulateOrder) GetOrderInfoAccount

func (inst *PopulateOrder) GetOrderInfoAccount() *ag_solanago.AccountMeta

GetOrderInfoAccount gets the "orderInfo" account.

func (PopulateOrder) MarshalWithEncoder

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

func (*PopulateOrder) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*PopulateOrder) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*PopulateOrder) SetOrderInfoAccount

func (inst *PopulateOrder) SetOrderInfoAccount(orderInfo ag_solanago.PublicKey) *PopulateOrder

SetOrderInfoAccount sets the "orderInfo" account.

func (*PopulateOrder) SetSize

func (inst *PopulateOrder) SetSize(size uint32) *PopulateOrder

SetSize sets the "size" parameter.

func (*PopulateOrder) UnmarshalWithDecoder

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

func (*PopulateOrder) Validate

func (inst *PopulateOrder) Validate() error

func (PopulateOrder) ValidateAndBuild

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

type RaffleTicket struct {
	Ids          []uint32
	CandyMachine ag_solanago.PublicKey
	TicketBump   uint8
	EscrowBump   uint8
	RafflePayer  ag_solanago.PublicKey
}

func (RaffleTicket) MarshalWithEncoder

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

func (*RaffleTicket) UnmarshalWithDecoder

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

type SettleRaffleTicket

type SettleRaffleTicket struct {
	CurrTime *int64

	// [0] = [] config
	//
	// [1] = [WRITE] candyMachine
	//
	// [2] = [WRITE, SIGNER] payer
	//
	// [3] = [] launchStagesInfo
	//
	// [4] = [WRITE] raffleTicket
	//
	// [5] = [WRITE] raffleEscrow
	//
	// [6] = [WRITE] payTo
	//
	// [7] = [WRITE] refundTo
	//
	// [8] = [WRITE] tokenAta
	//
	// [9] = [WRITE] rafflePayer
	//
	// [10] = [WRITE] orderInfo
	//
	// [11] = [SIGNER] notary
	//
	// [12] = [WRITE] metadata
	//
	// [13] = [WRITE, SIGNER] mint
	//
	// [14] = [SIGNER] updateAuthority
	//
	// [15] = [WRITE] masterEdition
	//
	// [16] = [] slotHashes
	//
	// [17] = [] tokenMetadataProgram
	//
	// [18] = [] associatedTokenProgram
	//
	// [19] = [] tokenProgram
	//
	// [20] = [] systemProgram
	//
	// [21] = [] rent
	ag_solanago.AccountMetaSlice `bin:"-"`
}

SettleRaffleTicket is the `settleRaffleTicket` instruction.

func NewSettleRaffleTicketInstruction

func NewSettleRaffleTicketInstruction(

	currTime int64,

	config ag_solanago.PublicKey,
	candyMachine ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	launchStagesInfo ag_solanago.PublicKey,
	raffleTicket ag_solanago.PublicKey,
	raffleEscrow ag_solanago.PublicKey,
	payTo ag_solanago.PublicKey,
	refundTo ag_solanago.PublicKey,
	tokenAta ag_solanago.PublicKey,
	rafflePayer ag_solanago.PublicKey,
	orderInfo ag_solanago.PublicKey,
	notary ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	mint ag_solanago.PublicKey,
	updateAuthority ag_solanago.PublicKey,
	masterEdition ag_solanago.PublicKey,
	slotHashes ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey,
	associatedTokenProgram ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *SettleRaffleTicket

NewSettleRaffleTicketInstruction declares a new SettleRaffleTicket instruction with the provided parameters and accounts.

func NewSettleRaffleTicketInstructionBuilder

func NewSettleRaffleTicketInstructionBuilder() *SettleRaffleTicket

NewSettleRaffleTicketInstructionBuilder creates a new `SettleRaffleTicket` instruction builder.

func (SettleRaffleTicket) Build

func (inst SettleRaffleTicket) Build() *Instruction

func (*SettleRaffleTicket) EncodeToTree

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

func (*SettleRaffleTicket) GetAssociatedTokenProgramAccount

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

GetAssociatedTokenProgramAccount gets the "associatedTokenProgram" account.

func (*SettleRaffleTicket) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*SettleRaffleTicket) GetConfigAccount

func (inst *SettleRaffleTicket) GetConfigAccount() *ag_solanago.AccountMeta

GetConfigAccount gets the "config" account.

func (*SettleRaffleTicket) GetLaunchStagesInfoAccount

func (inst *SettleRaffleTicket) GetLaunchStagesInfoAccount() *ag_solanago.AccountMeta

GetLaunchStagesInfoAccount gets the "launchStagesInfo" account.

func (*SettleRaffleTicket) GetMasterEditionAccount

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

GetMasterEditionAccount gets the "masterEdition" account.

func (*SettleRaffleTicket) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*SettleRaffleTicket) GetMintAccount

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

GetMintAccount gets the "mint" account.

func (*SettleRaffleTicket) GetNotaryAccount

func (inst *SettleRaffleTicket) GetNotaryAccount() *ag_solanago.AccountMeta

GetNotaryAccount gets the "notary" account.

func (*SettleRaffleTicket) GetOrderInfoAccount

func (inst *SettleRaffleTicket) GetOrderInfoAccount() *ag_solanago.AccountMeta

GetOrderInfoAccount gets the "orderInfo" account.

func (*SettleRaffleTicket) GetPayToAccount

func (inst *SettleRaffleTicket) GetPayToAccount() *ag_solanago.AccountMeta

GetPayToAccount gets the "payTo" account.

func (*SettleRaffleTicket) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*SettleRaffleTicket) GetRaffleEscrowAccount

func (inst *SettleRaffleTicket) GetRaffleEscrowAccount() *ag_solanago.AccountMeta

GetRaffleEscrowAccount gets the "raffleEscrow" account.

func (*SettleRaffleTicket) GetRafflePayerAccount

func (inst *SettleRaffleTicket) GetRafflePayerAccount() *ag_solanago.AccountMeta

GetRafflePayerAccount gets the "rafflePayer" account.

func (*SettleRaffleTicket) GetRaffleTicketAccount

func (inst *SettleRaffleTicket) GetRaffleTicketAccount() *ag_solanago.AccountMeta

GetRaffleTicketAccount gets the "raffleTicket" account.

func (*SettleRaffleTicket) GetRefundToAccount

func (inst *SettleRaffleTicket) GetRefundToAccount() *ag_solanago.AccountMeta

GetRefundToAccount gets the "refundTo" account.

func (*SettleRaffleTicket) GetRentAccount

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

GetRentAccount gets the "rent" account.

func (*SettleRaffleTicket) GetSlotHashesAccount

func (inst *SettleRaffleTicket) GetSlotHashesAccount() *ag_solanago.AccountMeta

GetSlotHashesAccount gets the "slotHashes" account.

func (*SettleRaffleTicket) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*SettleRaffleTicket) GetTokenAtaAccount

func (inst *SettleRaffleTicket) GetTokenAtaAccount() *ag_solanago.AccountMeta

GetTokenAtaAccount gets the "tokenAta" account.

func (*SettleRaffleTicket) GetTokenMetadataProgramAccount

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

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (*SettleRaffleTicket) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (*SettleRaffleTicket) GetUpdateAuthorityAccount

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

GetUpdateAuthorityAccount gets the "updateAuthority" account.

func (SettleRaffleTicket) MarshalWithEncoder

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

func (*SettleRaffleTicket) SetAssociatedTokenProgramAccount

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

SetAssociatedTokenProgramAccount sets the "associatedTokenProgram" account.

func (*SettleRaffleTicket) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*SettleRaffleTicket) SetConfigAccount

func (inst *SettleRaffleTicket) SetConfigAccount(config ag_solanago.PublicKey) *SettleRaffleTicket

SetConfigAccount sets the "config" account.

func (*SettleRaffleTicket) SetCurrTime

func (inst *SettleRaffleTicket) SetCurrTime(currTime int64) *SettleRaffleTicket

SetCurrTime sets the "currTime" parameter.

func (*SettleRaffleTicket) SetLaunchStagesInfoAccount

func (inst *SettleRaffleTicket) SetLaunchStagesInfoAccount(launchStagesInfo ag_solanago.PublicKey) *SettleRaffleTicket

SetLaunchStagesInfoAccount sets the "launchStagesInfo" account.

func (*SettleRaffleTicket) SetMasterEditionAccount

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

SetMasterEditionAccount sets the "masterEdition" account.

func (*SettleRaffleTicket) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account.

func (*SettleRaffleTicket) SetMintAccount

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

SetMintAccount sets the "mint" account.

func (*SettleRaffleTicket) SetNotaryAccount

func (inst *SettleRaffleTicket) SetNotaryAccount(notary ag_solanago.PublicKey) *SettleRaffleTicket

SetNotaryAccount sets the "notary" account.

func (*SettleRaffleTicket) SetOrderInfoAccount

func (inst *SettleRaffleTicket) SetOrderInfoAccount(orderInfo ag_solanago.PublicKey) *SettleRaffleTicket

SetOrderInfoAccount sets the "orderInfo" account.

func (*SettleRaffleTicket) SetPayToAccount

func (inst *SettleRaffleTicket) SetPayToAccount(payTo ag_solanago.PublicKey) *SettleRaffleTicket

SetPayToAccount sets the "payTo" account.

func (*SettleRaffleTicket) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*SettleRaffleTicket) SetRaffleEscrowAccount

func (inst *SettleRaffleTicket) SetRaffleEscrowAccount(raffleEscrow ag_solanago.PublicKey) *SettleRaffleTicket

SetRaffleEscrowAccount sets the "raffleEscrow" account.

func (*SettleRaffleTicket) SetRafflePayerAccount

func (inst *SettleRaffleTicket) SetRafflePayerAccount(rafflePayer ag_solanago.PublicKey) *SettleRaffleTicket

SetRafflePayerAccount sets the "rafflePayer" account.

func (*SettleRaffleTicket) SetRaffleTicketAccount

func (inst *SettleRaffleTicket) SetRaffleTicketAccount(raffleTicket ag_solanago.PublicKey) *SettleRaffleTicket

SetRaffleTicketAccount sets the "raffleTicket" account.

func (*SettleRaffleTicket) SetRefundToAccount

func (inst *SettleRaffleTicket) SetRefundToAccount(refundTo ag_solanago.PublicKey) *SettleRaffleTicket

SetRefundToAccount sets the "refundTo" account.

func (*SettleRaffleTicket) SetRentAccount

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

SetRentAccount sets the "rent" account.

func (*SettleRaffleTicket) SetSlotHashesAccount

func (inst *SettleRaffleTicket) SetSlotHashesAccount(slotHashes ag_solanago.PublicKey) *SettleRaffleTicket

SetSlotHashesAccount sets the "slotHashes" account.

func (*SettleRaffleTicket) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*SettleRaffleTicket) SetTokenAtaAccount

func (inst *SettleRaffleTicket) SetTokenAtaAccount(tokenAta ag_solanago.PublicKey) *SettleRaffleTicket

SetTokenAtaAccount sets the "tokenAta" account.

func (*SettleRaffleTicket) SetTokenMetadataProgramAccount

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

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*SettleRaffleTicket) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account.

func (*SettleRaffleTicket) SetUpdateAuthorityAccount

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

SetUpdateAuthorityAccount sets the "updateAuthority" account.

func (*SettleRaffleTicket) UnmarshalWithDecoder

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

func (*SettleRaffleTicket) Validate

func (inst *SettleRaffleTicket) Validate() error

func (SettleRaffleTicket) ValidateAndBuild

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

type UnverifyNonMasterEdition struct {

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

UnverifyNonMasterEdition is the `unverifyNonMasterEdition` instruction.

func NewUnverifyNonMasterEditionInstruction

func NewUnverifyNonMasterEditionInstruction(

	candyMachine ag_solanago.PublicKey,
	tokenMetadataProgram ag_solanago.PublicKey,
	edition ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey) *UnverifyNonMasterEdition

NewUnverifyNonMasterEditionInstruction declares a new UnverifyNonMasterEdition instruction with the provided parameters and accounts.

func NewUnverifyNonMasterEditionInstructionBuilder

func NewUnverifyNonMasterEditionInstructionBuilder() *UnverifyNonMasterEdition

NewUnverifyNonMasterEditionInstructionBuilder creates a new `UnverifyNonMasterEdition` instruction builder.

func (UnverifyNonMasterEdition) Build

func (inst UnverifyNonMasterEdition) Build() *Instruction

func (*UnverifyNonMasterEdition) EncodeToTree

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

func (*UnverifyNonMasterEdition) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*UnverifyNonMasterEdition) GetEditionAccount

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

GetEditionAccount gets the "edition" account.

func (*UnverifyNonMasterEdition) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*UnverifyNonMasterEdition) GetTokenMetadataProgramAccount

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

GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.

func (UnverifyNonMasterEdition) MarshalWithEncoder

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

func (*UnverifyNonMasterEdition) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*UnverifyNonMasterEdition) SetEditionAccount

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

SetEditionAccount sets the "edition" account.

func (*UnverifyNonMasterEdition) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account.

func (*UnverifyNonMasterEdition) SetTokenMetadataProgramAccount

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

SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.

func (*UnverifyNonMasterEdition) UnmarshalWithDecoder

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

func (*UnverifyNonMasterEdition) Validate

func (inst *UnverifyNonMasterEdition) Validate() error

func (UnverifyNonMasterEdition) ValidateAndBuild

func (inst UnverifyNonMasterEdition) 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] = [WRITE] launchStagesInfo
	//
	// [2] = [SIGNER] authority
	ag_solanago.AccountMetaSlice `bin:"-"`
}

UpdateAuthority is the `updateAuthority` instruction.

func NewUpdateAuthorityInstruction

func NewUpdateAuthorityInstruction(

	newAuthority ag_solanago.PublicKey,

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

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

func NewUpdateAuthorityInstructionBuilder

func NewUpdateAuthorityInstructionBuilder() *UpdateAuthority

NewUpdateAuthorityInstructionBuilder creates a new `UpdateAuthority` instruction builder.

func (UpdateAuthority) Build

func (inst UpdateAuthority) Build() *Instruction

func (*UpdateAuthority) EncodeToTree

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

func (*UpdateAuthority) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*UpdateAuthority) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*UpdateAuthority) GetLaunchStagesInfoAccount

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

GetLaunchStagesInfoAccount gets the "launchStagesInfo" 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) SetLaunchStagesInfoAccount

func (inst *UpdateAuthority) SetLaunchStagesInfoAccount(launchStagesInfo ag_solanago.PublicKey) *UpdateAuthority

SetLaunchStagesInfoAccount sets the "launchStagesInfo" account.

func (*UpdateAuthority) SetNewAuthority

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

SetNewAuthority sets the "newAuthority" parameter.

func (*UpdateAuthority) UnmarshalWithDecoder

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

func (*UpdateAuthority) Validate

func (inst *UpdateAuthority) Validate() error

func (UpdateAuthority) ValidateAndBuild

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

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

type UpdateCandyMachine

type UpdateCandyMachine struct {
	Notary         *ag_solanago.PublicKey `bin:"optional"`
	ItemsAvailable *uint64                `bin:"optional"`

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

UpdateCandyMachine is the `updateCandyMachine` instruction.

func NewUpdateCandyMachineInstruction

func NewUpdateCandyMachineInstruction(

	notary ag_solanago.PublicKey,
	itemsAvailable uint64,

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

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

func NewUpdateCandyMachineInstructionBuilder

func NewUpdateCandyMachineInstructionBuilder() *UpdateCandyMachine

NewUpdateCandyMachineInstructionBuilder creates a new `UpdateCandyMachine` instruction builder.

func (UpdateCandyMachine) Build

func (inst UpdateCandyMachine) Build() *Instruction

func (*UpdateCandyMachine) EncodeToTree

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

func (*UpdateCandyMachine) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*UpdateCandyMachine) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*UpdateCandyMachine) GetLaunchStagesInfoAccount

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

GetLaunchStagesInfoAccount gets the "launchStagesInfo" 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) SetItemsAvailable

func (inst *UpdateCandyMachine) SetItemsAvailable(itemsAvailable uint64) *UpdateCandyMachine

SetItemsAvailable sets the "itemsAvailable" parameter.

func (*UpdateCandyMachine) SetLaunchStagesInfoAccount

func (inst *UpdateCandyMachine) SetLaunchStagesInfoAccount(launchStagesInfo ag_solanago.PublicKey) *UpdateCandyMachine

SetLaunchStagesInfoAccount sets the "launchStagesInfo" account.

func (*UpdateCandyMachine) SetNotary

SetNotary sets the "notary" parameter.

func (*UpdateCandyMachine) UnmarshalWithDecoder

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

func (*UpdateCandyMachine) Validate

func (inst *UpdateCandyMachine) Validate() error

func (UpdateCandyMachine) ValidateAndBuild

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

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

type UpdateConfig

type UpdateConfig struct {
	Gateway *string `bin:"optional"`
	Cid     *string `bin:"optional"`

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

UpdateConfig is the `updateConfig` instruction.

func NewUpdateConfigInstruction

func NewUpdateConfigInstruction(

	gateway string,
	cid string,

	config ag_solanago.PublicKey,
	authority ag_solanago.PublicKey) *UpdateConfig

NewUpdateConfigInstruction declares a new UpdateConfig instruction with the provided parameters and accounts.

func NewUpdateConfigInstructionBuilder

func NewUpdateConfigInstructionBuilder() *UpdateConfig

NewUpdateConfigInstructionBuilder creates a new `UpdateConfig` instruction builder.

func (UpdateConfig) Build

func (inst UpdateConfig) Build() *Instruction

func (*UpdateConfig) EncodeToTree

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

func (*UpdateConfig) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*UpdateConfig) GetConfigAccount

func (inst *UpdateConfig) GetConfigAccount() *ag_solanago.AccountMeta

GetConfigAccount gets the "config" account.

func (UpdateConfig) MarshalWithEncoder

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

func (*UpdateConfig) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*UpdateConfig) SetCid

func (inst *UpdateConfig) SetCid(cid string) *UpdateConfig

SetCid sets the "cid" parameter.

func (*UpdateConfig) SetConfigAccount

func (inst *UpdateConfig) SetConfigAccount(config ag_solanago.PublicKey) *UpdateConfig

SetConfigAccount sets the "config" account.

func (*UpdateConfig) SetGateway

func (inst *UpdateConfig) SetGateway(gateway string) *UpdateConfig

SetGateway sets the "gateway" parameter.

func (*UpdateConfig) UnmarshalWithDecoder

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

func (*UpdateConfig) Validate

func (inst *UpdateConfig) Validate() error

func (UpdateConfig) ValidateAndBuild

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

type UpdateLaunchStages struct {
	Stages   *[]LaunchStageArgs
	CurrTime *int64

	// [0] = [] candyMachine
	//
	// [1] = [WRITE] launchStagesInfo
	//
	// [2] = [SIGNER] authority
	//
	// [3] = [] associatedTokenProgram
	//
	// [4] = [] tokenProgram
	ag_solanago.AccountMetaSlice `bin:"-"`
}

UpdateLaunchStages is the `updateLaunchStages` instruction.

func NewUpdateLaunchStagesInstruction

func NewUpdateLaunchStagesInstruction(

	stages []LaunchStageArgs,
	currTime int64,

	candyMachine ag_solanago.PublicKey,
	launchStagesInfo ag_solanago.PublicKey,
	authority ag_solanago.PublicKey,
	associatedTokenProgram ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey) *UpdateLaunchStages

NewUpdateLaunchStagesInstruction declares a new UpdateLaunchStages instruction with the provided parameters and accounts.

func NewUpdateLaunchStagesInstructionBuilder

func NewUpdateLaunchStagesInstructionBuilder() *UpdateLaunchStages

NewUpdateLaunchStagesInstructionBuilder creates a new `UpdateLaunchStages` instruction builder.

func (UpdateLaunchStages) Build

func (inst UpdateLaunchStages) Build() *Instruction

func (*UpdateLaunchStages) EncodeToTree

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

func (*UpdateLaunchStages) GetAssociatedTokenProgramAccount

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

GetAssociatedTokenProgramAccount gets the "associatedTokenProgram" account.

func (*UpdateLaunchStages) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*UpdateLaunchStages) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*UpdateLaunchStages) GetLaunchStagesInfoAccount

func (inst *UpdateLaunchStages) GetLaunchStagesInfoAccount() *ag_solanago.AccountMeta

GetLaunchStagesInfoAccount gets the "launchStagesInfo" account.

func (*UpdateLaunchStages) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (UpdateLaunchStages) MarshalWithEncoder

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

func (*UpdateLaunchStages) SetAssociatedTokenProgramAccount

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

SetAssociatedTokenProgramAccount sets the "associatedTokenProgram" account.

func (*UpdateLaunchStages) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*UpdateLaunchStages) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*UpdateLaunchStages) SetCurrTime

func (inst *UpdateLaunchStages) SetCurrTime(currTime int64) *UpdateLaunchStages

SetCurrTime sets the "currTime" parameter.

func (*UpdateLaunchStages) SetLaunchStagesInfoAccount

func (inst *UpdateLaunchStages) SetLaunchStagesInfoAccount(launchStagesInfo ag_solanago.PublicKey) *UpdateLaunchStages

SetLaunchStagesInfoAccount sets the "launchStagesInfo" account.

func (*UpdateLaunchStages) SetStages

func (inst *UpdateLaunchStages) SetStages(stages []LaunchStageArgs) *UpdateLaunchStages

SetStages sets the "stages" parameter.

func (*UpdateLaunchStages) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account.

func (*UpdateLaunchStages) UnmarshalWithDecoder

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

func (*UpdateLaunchStages) Validate

func (inst *UpdateLaunchStages) Validate() error

func (UpdateLaunchStages) ValidateAndBuild

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

type VariableLimit uint8

func (VariableLimit) MarshalWithEncoder

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

func (*VariableLimit) UnmarshalWithDecoder

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

type WalletLimitInfo

type WalletLimitInfo struct {
	RedeemedNormal        uint8
	RedeemedRaffleTickets uint8
}

func (WalletLimitInfo) MarshalWithEncoder

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

func (*WalletLimitInfo) UnmarshalWithDecoder

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

type WalletLimitSpecification

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

type WalletLimitSpecificationFixedLimit

type WalletLimitSpecificationFixedLimit struct {
	Limit uint8
}

func (WalletLimitSpecificationFixedLimit) MarshalWithEncoder

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

func (*WalletLimitSpecificationFixedLimit) UnmarshalWithDecoder

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

type WithdrawFunds

type WithdrawFunds struct {

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

WithdrawFunds is the `withdrawFunds` instruction.

func NewWithdrawFundsInstruction

func NewWithdrawFundsInstruction(

	config 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) GetConfigAccount

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

GetConfigAccount gets the "config" 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) SetConfigAccount

func (inst *WithdrawFunds) SetConfigAccount(config ag_solanago.PublicKey) *WithdrawFunds

SetConfigAccount sets the "config" 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.

type WithdrawOrderRent

type WithdrawOrderRent struct {

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

WithdrawOrderRent is the `withdrawOrderRent` instruction.

func NewWithdrawOrderRentInstruction

func NewWithdrawOrderRentInstruction(

	candyMachine ag_solanago.PublicKey,
	orderInfo ag_solanago.PublicKey,
	authority ag_solanago.PublicKey) *WithdrawOrderRent

NewWithdrawOrderRentInstruction declares a new WithdrawOrderRent instruction with the provided parameters and accounts.

func NewWithdrawOrderRentInstructionBuilder

func NewWithdrawOrderRentInstructionBuilder() *WithdrawOrderRent

NewWithdrawOrderRentInstructionBuilder creates a new `WithdrawOrderRent` instruction builder.

func (WithdrawOrderRent) Build

func (inst WithdrawOrderRent) Build() *Instruction

func (*WithdrawOrderRent) EncodeToTree

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

func (*WithdrawOrderRent) GetAuthorityAccount

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

GetAuthorityAccount gets the "authority" account.

func (*WithdrawOrderRent) GetCandyMachineAccount

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

GetCandyMachineAccount gets the "candyMachine" account.

func (*WithdrawOrderRent) GetOrderInfoAccount

func (inst *WithdrawOrderRent) GetOrderInfoAccount() *ag_solanago.AccountMeta

GetOrderInfoAccount gets the "orderInfo" account.

func (WithdrawOrderRent) MarshalWithEncoder

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

func (*WithdrawOrderRent) SetAuthorityAccount

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

SetAuthorityAccount sets the "authority" account.

func (*WithdrawOrderRent) SetCandyMachineAccount

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

SetCandyMachineAccount sets the "candyMachine" account.

func (*WithdrawOrderRent) SetOrderInfoAccount

func (inst *WithdrawOrderRent) SetOrderInfoAccount(orderInfo ag_solanago.PublicKey) *WithdrawOrderRent

SetOrderInfoAccount sets the "orderInfo" account.

func (*WithdrawOrderRent) UnmarshalWithDecoder

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

func (*WithdrawOrderRent) Validate

func (inst *WithdrawOrderRent) Validate() error

func (WithdrawOrderRent) ValidateAndBuild

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