mpl_token_metadata

package
v0.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ProgramName = "MplTokenMetadata"

Variables

View Source
var (
	Instruction_CreateMetadataAccount = ag_binary.TypeID([8]byte{75, 73, 45, 178, 212, 194, 127, 113})

	Instruction_UpdateMetadataAccount = ag_binary.TypeID([8]byte{141, 14, 23, 104, 247, 192, 53, 173})

	Instruction_DeprecatedCreateMasterEdition = ag_binary.TypeID([8]byte{155, 127, 165, 159, 236, 92, 79, 21})

	Instruction_DeprecatedMintNewEditionFromMasterEditionViaPrintingToken = ag_binary.TypeID([8]byte{154, 36, 174, 111, 190, 80, 155, 228})

	Instruction_UpdatePrimarySaleHappenedViaToken = ag_binary.TypeID([8]byte{172, 129, 173, 210, 222, 129, 243, 98})

	Instruction_DeprecatedSetReservationList = ag_binary.TypeID([8]byte{68, 28, 66, 19, 59, 203, 190, 142})

	Instruction_DeprecatedCreateReservationList = ag_binary.TypeID([8]byte{171, 227, 161, 158, 1, 176, 105, 72})

	Instruction_SignMetadata = ag_binary.TypeID([8]byte{178, 245, 253, 205, 236, 250, 233, 209})

	Instruction_DeprecatedMintPrintingTokensViaToken = ag_binary.TypeID([8]byte{84, 34, 152, 133, 145, 48, 4, 223})

	Instruction_DeprecatedMintPrintingTokens = ag_binary.TypeID([8]byte{194, 107, 144, 9, 126, 143, 53, 121})

	Instruction_CreateMasterEdition = ag_binary.TypeID([8]byte{179, 210, 96, 96, 57, 25, 79, 69})

	Instruction_MintNewEditionFromMasterEditionViaToken = ag_binary.TypeID([8]byte{252, 218, 191, 168, 126, 69, 125, 118})

	Instruction_ConvertMasterEditionV1ToV2 = ag_binary.TypeID([8]byte{217, 26, 108, 0, 55, 126, 167, 238})

	Instruction_MintNewEditionFromMasterEditionViaVaultProxy = ag_binary.TypeID([8]byte{66, 246, 206, 73, 249, 35, 194, 47})

	Instruction_PuffMetadata = ag_binary.TypeID([8]byte{87, 217, 21, 132, 105, 238, 71, 114})

	Instruction_UpdateMetadataAccountV2 = ag_binary.TypeID([8]byte{202, 132, 152, 229, 216, 217, 137, 212})

	Instruction_CreateMetadataAccountV2 = ag_binary.TypeID([8]byte{24, 73, 41, 237, 44, 142, 194, 254})

	Instruction_CreateMasterEditionV3 = ag_binary.TypeID([8]byte{147, 149, 17, 159, 74, 134, 114, 237})

	Instruction_VerifyCollection = ag_binary.TypeID([8]byte{56, 113, 101, 253, 79, 55, 122, 169})

	Instruction_Utilize = ag_binary.TypeID([8]byte{104, 146, 242, 209, 176, 174, 185, 163})

	Instruction_ApproveUseAuthority = ag_binary.TypeID([8]byte{14, 4, 77, 134, 86, 23, 37, 236})

	Instruction_RevokeUseAuthority = ag_binary.TypeID([8]byte{204, 194, 208, 141, 142, 221, 109, 84})

	Instruction_UnverifyCollection = ag_binary.TypeID([8]byte{250, 251, 42, 106, 41, 137, 186, 168})

	Instruction_ApproveCollectionAuthority = ag_binary.TypeID([8]byte{254, 136, 208, 39, 65, 66, 27, 111})

	Instruction_RevokeCollectionAuthority = ag_binary.TypeID([8]byte{31, 139, 135, 198, 29, 48, 160, 154})

	Instruction_SetAndVerifyCollection = ag_binary.TypeID([8]byte{235, 242, 121, 216, 158, 234, 180, 234})

	Instruction_FreezeDelegatedAccount = ag_binary.TypeID([8]byte{14, 16, 189, 180, 116, 19, 96, 127})

	Instruction_ThawDelegatedAccount = ag_binary.TypeID([8]byte{239, 152, 227, 34, 225, 200, 206, 170})

	Instruction_RemoveCreatorVerification = ag_binary.TypeID([8]byte{41, 194, 140, 217, 90, 160, 139, 6})
)
View Source
var CollectionAuthorityRecordDiscriminator = [8]byte{156, 48, 108, 31, 212, 219, 100, 168}
View Source
var EditionDiscriminator = [8]byte{234, 117, 249, 74, 7, 99, 235, 167}
View Source
var EditionMarkerDiscriminator = [8]byte{233, 10, 18, 230, 129, 172, 37, 234}
View Source
var InstructionImplDef = ag_binary.NewVariantDefinition(
	ag_binary.AnchorTypeIDEncoding,
	[]ag_binary.VariantType{
		{
			"create_metadata_account", (*CreateMetadataAccount)(nil),
		},
		{
			"update_metadata_account", (*UpdateMetadataAccount)(nil),
		},
		{
			"deprecated_create_master_edition", (*DeprecatedCreateMasterEdition)(nil),
		},
		{
			"deprecated_mint_new_edition_from_master_edition_via_printing_token", (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken)(nil),
		},
		{
			"update_primary_sale_happened_via_token", (*UpdatePrimarySaleHappenedViaToken)(nil),
		},
		{
			"deprecated_set_reservation_list", (*DeprecatedSetReservationList)(nil),
		},
		{
			"deprecated_create_reservation_list", (*DeprecatedCreateReservationList)(nil),
		},
		{
			"sign_metadata", (*SignMetadata)(nil),
		},
		{
			"deprecated_mint_printing_tokens_via_token", (*DeprecatedMintPrintingTokensViaToken)(nil),
		},
		{
			"deprecated_mint_printing_tokens", (*DeprecatedMintPrintingTokens)(nil),
		},
		{
			"create_master_edition", (*CreateMasterEdition)(nil),
		},
		{
			"mint_new_edition_from_master_edition_via_token", (*MintNewEditionFromMasterEditionViaToken)(nil),
		},
		{
			"convert_master_edition_v1_to_v2", (*ConvertMasterEditionV1ToV2)(nil),
		},
		{
			"mint_new_edition_from_master_edition_via_vault_proxy", (*MintNewEditionFromMasterEditionViaVaultProxy)(nil),
		},
		{
			"puff_metadata", (*PuffMetadata)(nil),
		},
		{
			"update_metadata_account_v2", (*UpdateMetadataAccountV2)(nil),
		},
		{
			"create_metadata_account_v2", (*CreateMetadataAccountV2)(nil),
		},
		{
			"create_master_edition_v3", (*CreateMasterEditionV3)(nil),
		},
		{
			"verify_collection", (*VerifyCollection)(nil),
		},
		{
			"utilize", (*Utilize)(nil),
		},
		{
			"approve_use_authority", (*ApproveUseAuthority)(nil),
		},
		{
			"revoke_use_authority", (*RevokeUseAuthority)(nil),
		},
		{
			"unverify_collection", (*UnverifyCollection)(nil),
		},
		{
			"approve_collection_authority", (*ApproveCollectionAuthority)(nil),
		},
		{
			"revoke_collection_authority", (*RevokeCollectionAuthority)(nil),
		},
		{
			"set_and_verify_collection", (*SetAndVerifyCollection)(nil),
		},
		{
			"freeze_delegated_account", (*FreezeDelegatedAccount)(nil),
		},
		{
			"thaw_delegated_account", (*ThawDelegatedAccount)(nil),
		},
		{
			"remove_creator_verification", (*RemoveCreatorVerification)(nil),
		},
	},
)
View Source
var MasterEditionV1Discriminator = [8]byte{79, 165, 41, 167, 180, 191, 141, 185}
View Source
var MasterEditionV2Discriminator = [8]byte{101, 59, 163, 207, 238, 16, 170, 159}
View Source
var MetadataDiscriminator = [8]byte{72, 11, 121, 26, 111, 181, 85, 93}
View Source
var ProgramID ag_solanago.PublicKey = ag_solanago.MustPublicKeyFromBase58("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")
View Source
var ReservationListV1Discriminator = [8]byte{239, 79, 12, 206, 116, 153, 1, 140}
View Source
var ReservationListV2Discriminator = [8]byte{193, 233, 97, 55, 245, 135, 103, 218}
View Source
var UseAuthorityRecordDiscriminator = [8]byte{227, 200, 230, 197, 244, 198, 172, 50}

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 ApproveCollectionAuthority

type ApproveCollectionAuthority struct {

	// [0] = [WRITE] collectionAuthorityRecord
	//
	// [1] = [] newCollectionAuthority
	//
	// [2] = [SIGNER] updateAuthority
	//
	// [3] = [SIGNER] payer
	//
	// [4] = [] metadata
	//
	// [5] = [] mint
	//
	// [6] = [] systemProgram
	//
	// [7] = [] rent
	ag_solanago.AccountMetaSlice `bin:"-"`
}

ApproveCollectionAuthority is the `ApproveCollectionAuthority` instruction.

func NewApproveCollectionAuthorityInstruction

func NewApproveCollectionAuthorityInstruction(

	collectionAuthorityRecord ag_solanago.PublicKey,
	newCollectionAuthority ag_solanago.PublicKey,
	updateAuthority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	mint ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *ApproveCollectionAuthority

NewApproveCollectionAuthorityInstruction declares a new ApproveCollectionAuthority instruction with the provided parameters and accounts.

func NewApproveCollectionAuthorityInstructionBuilder

func NewApproveCollectionAuthorityInstructionBuilder() *ApproveCollectionAuthority

NewApproveCollectionAuthorityInstructionBuilder creates a new `ApproveCollectionAuthority` instruction builder.

func (ApproveCollectionAuthority) Build

func (*ApproveCollectionAuthority) EncodeToTree

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

func (*ApproveCollectionAuthority) GetCollectionAuthorityRecordAccount

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

GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" account.

func (*ApproveCollectionAuthority) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*ApproveCollectionAuthority) GetMintAccount

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

GetMintAccount gets the "mint" account.

func (*ApproveCollectionAuthority) GetNewCollectionAuthorityAccount

func (inst *ApproveCollectionAuthority) GetNewCollectionAuthorityAccount() *ag_solanago.AccountMeta

GetNewCollectionAuthorityAccount gets the "newCollectionAuthority" account.

func (*ApproveCollectionAuthority) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*ApproveCollectionAuthority) GetRentAccount

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

GetRentAccount gets the "rent" account.

func (*ApproveCollectionAuthority) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*ApproveCollectionAuthority) GetUpdateAuthorityAccount

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

GetUpdateAuthorityAccount gets the "updateAuthority" account.

func (ApproveCollectionAuthority) MarshalWithEncoder

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

func (*ApproveCollectionAuthority) SetCollectionAuthorityRecordAccount

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

SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" account.

func (*ApproveCollectionAuthority) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account.

func (*ApproveCollectionAuthority) SetMintAccount

SetMintAccount sets the "mint" account.

func (*ApproveCollectionAuthority) SetNewCollectionAuthorityAccount

func (inst *ApproveCollectionAuthority) SetNewCollectionAuthorityAccount(newCollectionAuthority ag_solanago.PublicKey) *ApproveCollectionAuthority

SetNewCollectionAuthorityAccount sets the "newCollectionAuthority" account.

func (*ApproveCollectionAuthority) SetPayerAccount

SetPayerAccount sets the "payer" account.

func (*ApproveCollectionAuthority) SetRentAccount

SetRentAccount sets the "rent" account.

func (*ApproveCollectionAuthority) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*ApproveCollectionAuthority) SetUpdateAuthorityAccount

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

SetUpdateAuthorityAccount sets the "updateAuthority" account.

func (*ApproveCollectionAuthority) UnmarshalWithDecoder

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

func (*ApproveCollectionAuthority) Validate

func (inst *ApproveCollectionAuthority) Validate() error

func (ApproveCollectionAuthority) ValidateAndBuild

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

type ApproveUseAuthority struct {
	ApproveUseAuthorityArgs *ApproveUseAuthorityArgs

	// [0] = [WRITE] useAuthorityRecord
	//
	// [1] = [SIGNER] owner
	//
	// [2] = [SIGNER] payer
	//
	// [3] = [] user
	//
	// [4] = [WRITE] ownerTokenAccount
	//
	// [5] = [] metadata
	//
	// [6] = [] mint
	//
	// [7] = [] burner
	//
	// [8] = [] tokenProgram
	//
	// [9] = [] systemProgram
	//
	// [10] = [] rent
	ag_solanago.AccountMetaSlice `bin:"-"`
}

ApproveUseAuthority is the `ApproveUseAuthority` instruction.

func NewApproveUseAuthorityInstruction

func NewApproveUseAuthorityInstruction(

	approveUseAuthorityArgs ApproveUseAuthorityArgs,

	useAuthorityRecord ag_solanago.PublicKey,
	owner ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	user ag_solanago.PublicKey,
	ownerTokenAccount ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	mint ag_solanago.PublicKey,
	burner ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *ApproveUseAuthority

NewApproveUseAuthorityInstruction declares a new ApproveUseAuthority instruction with the provided parameters and accounts.

func NewApproveUseAuthorityInstructionBuilder

func NewApproveUseAuthorityInstructionBuilder() *ApproveUseAuthority

NewApproveUseAuthorityInstructionBuilder creates a new `ApproveUseAuthority` instruction builder.

func (ApproveUseAuthority) Build

func (inst ApproveUseAuthority) Build() *Instruction

func (*ApproveUseAuthority) EncodeToTree

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

func (*ApproveUseAuthority) GetBurnerAccount

func (inst *ApproveUseAuthority) GetBurnerAccount() *ag_solanago.AccountMeta

GetBurnerAccount gets the "burner" account.

func (*ApproveUseAuthority) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*ApproveUseAuthority) GetMintAccount

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

GetMintAccount gets the "mint" account.

func (*ApproveUseAuthority) GetOwnerAccount

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

GetOwnerAccount gets the "owner" account.

func (*ApproveUseAuthority) GetOwnerTokenAccountAccount

func (inst *ApproveUseAuthority) GetOwnerTokenAccountAccount() *ag_solanago.AccountMeta

GetOwnerTokenAccountAccount gets the "ownerTokenAccount" account.

func (*ApproveUseAuthority) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*ApproveUseAuthority) GetRentAccount

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

GetRentAccount gets the "rent" account.

func (*ApproveUseAuthority) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*ApproveUseAuthority) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (*ApproveUseAuthority) GetUseAuthorityRecordAccount

func (inst *ApproveUseAuthority) GetUseAuthorityRecordAccount() *ag_solanago.AccountMeta

GetUseAuthorityRecordAccount gets the "useAuthorityRecord" account.

func (*ApproveUseAuthority) GetUserAccount

func (inst *ApproveUseAuthority) GetUserAccount() *ag_solanago.AccountMeta

GetUserAccount gets the "user" account.

func (ApproveUseAuthority) MarshalWithEncoder

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

func (*ApproveUseAuthority) SetApproveUseAuthorityArgs

func (inst *ApproveUseAuthority) SetApproveUseAuthorityArgs(approveUseAuthorityArgs ApproveUseAuthorityArgs) *ApproveUseAuthority

SetApproveUseAuthorityArgs sets the "approveUseAuthorityArgs" parameter.

func (*ApproveUseAuthority) SetBurnerAccount

func (inst *ApproveUseAuthority) SetBurnerAccount(burner ag_solanago.PublicKey) *ApproveUseAuthority

SetBurnerAccount sets the "burner" account.

func (*ApproveUseAuthority) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account.

func (*ApproveUseAuthority) SetMintAccount

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

SetMintAccount sets the "mint" account.

func (*ApproveUseAuthority) SetOwnerAccount

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

SetOwnerAccount sets the "owner" account.

func (*ApproveUseAuthority) SetOwnerTokenAccountAccount

func (inst *ApproveUseAuthority) SetOwnerTokenAccountAccount(ownerTokenAccount ag_solanago.PublicKey) *ApproveUseAuthority

SetOwnerTokenAccountAccount sets the "ownerTokenAccount" account.

func (*ApproveUseAuthority) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*ApproveUseAuthority) SetRentAccount

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

SetRentAccount sets the "rent" account.

func (*ApproveUseAuthority) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*ApproveUseAuthority) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account.

func (*ApproveUseAuthority) SetUseAuthorityRecordAccount

func (inst *ApproveUseAuthority) SetUseAuthorityRecordAccount(useAuthorityRecord ag_solanago.PublicKey) *ApproveUseAuthority

SetUseAuthorityRecordAccount sets the "useAuthorityRecord" account.

func (*ApproveUseAuthority) SetUserAccount

func (inst *ApproveUseAuthority) SetUserAccount(user ag_solanago.PublicKey) *ApproveUseAuthority

SetUserAccount sets the "user" account.

func (*ApproveUseAuthority) UnmarshalWithDecoder

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

func (*ApproveUseAuthority) Validate

func (inst *ApproveUseAuthority) Validate() error

func (ApproveUseAuthority) ValidateAndBuild

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

type ApproveUseAuthorityArgs struct {
	NumberOfUses uint64
}

func (ApproveUseAuthorityArgs) MarshalWithEncoder

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

func (*ApproveUseAuthorityArgs) UnmarshalWithDecoder

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

type Collection

type Collection struct {
	Verified bool
	Key      ag_solanago.PublicKey
}

func (Collection) MarshalWithEncoder

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

func (*Collection) UnmarshalWithDecoder

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

type CollectionAuthorityRecord

type CollectionAuthorityRecord struct {
	Key  Key
	Bump uint8
}

func (CollectionAuthorityRecord) MarshalWithEncoder

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

func (*CollectionAuthorityRecord) UnmarshalWithDecoder

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

type ConvertMasterEditionV1ToV2

type ConvertMasterEditionV1ToV2 struct {

	// [0] = [WRITE] masterEdition
	//
	// [1] = [WRITE] oneTimeAuth
	//
	// [2] = [WRITE] printingMint
	ag_solanago.AccountMetaSlice `bin:"-"`
}

ConvertMasterEditionV1ToV2 is the `ConvertMasterEditionV1ToV2` instruction.

func NewConvertMasterEditionV1ToV2Instruction

func NewConvertMasterEditionV1ToV2Instruction(

	masterEdition ag_solanago.PublicKey,
	oneTimeAuth ag_solanago.PublicKey,
	printingMint ag_solanago.PublicKey) *ConvertMasterEditionV1ToV2

NewConvertMasterEditionV1ToV2Instruction declares a new ConvertMasterEditionV1ToV2 instruction with the provided parameters and accounts.

func NewConvertMasterEditionV1ToV2InstructionBuilder

func NewConvertMasterEditionV1ToV2InstructionBuilder() *ConvertMasterEditionV1ToV2

NewConvertMasterEditionV1ToV2InstructionBuilder creates a new `ConvertMasterEditionV1ToV2` instruction builder.

func (ConvertMasterEditionV1ToV2) Build

func (*ConvertMasterEditionV1ToV2) EncodeToTree

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

func (*ConvertMasterEditionV1ToV2) GetMasterEditionAccount

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

GetMasterEditionAccount gets the "masterEdition" account.

func (*ConvertMasterEditionV1ToV2) GetOneTimeAuthAccount

func (inst *ConvertMasterEditionV1ToV2) GetOneTimeAuthAccount() *ag_solanago.AccountMeta

GetOneTimeAuthAccount gets the "oneTimeAuth" account.

func (*ConvertMasterEditionV1ToV2) GetPrintingMintAccount

func (inst *ConvertMasterEditionV1ToV2) GetPrintingMintAccount() *ag_solanago.AccountMeta

GetPrintingMintAccount gets the "printingMint" account.

func (ConvertMasterEditionV1ToV2) MarshalWithEncoder

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

func (*ConvertMasterEditionV1ToV2) SetMasterEditionAccount

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

SetMasterEditionAccount sets the "masterEdition" account.

func (*ConvertMasterEditionV1ToV2) SetOneTimeAuthAccount

func (inst *ConvertMasterEditionV1ToV2) SetOneTimeAuthAccount(oneTimeAuth ag_solanago.PublicKey) *ConvertMasterEditionV1ToV2

SetOneTimeAuthAccount sets the "oneTimeAuth" account.

func (*ConvertMasterEditionV1ToV2) SetPrintingMintAccount

func (inst *ConvertMasterEditionV1ToV2) SetPrintingMintAccount(printingMint ag_solanago.PublicKey) *ConvertMasterEditionV1ToV2

SetPrintingMintAccount sets the "printingMint" account.

func (*ConvertMasterEditionV1ToV2) UnmarshalWithDecoder

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

func (*ConvertMasterEditionV1ToV2) Validate

func (inst *ConvertMasterEditionV1ToV2) Validate() error

func (ConvertMasterEditionV1ToV2) ValidateAndBuild

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

type CreateMasterEdition struct {
	CreateMasterEditionArgs *CreateMasterEditionArgs

	// [0] = [WRITE] edition
	//
	// [1] = [WRITE] mint
	//
	// [2] = [SIGNER] updateAuthority
	//
	// [3] = [SIGNER] mintAuthority
	//
	// [4] = [SIGNER] payer
	//
	// [5] = [] metadata
	//
	// [6] = [] tokenProgram
	//
	// [7] = [] systemProgram
	//
	// [8] = [] rent
	ag_solanago.AccountMetaSlice `bin:"-"`
}

CreateMasterEdition is the `CreateMasterEdition` instruction.

func NewCreateMasterEditionInstruction

func NewCreateMasterEditionInstruction(

	createMasterEditionArgs CreateMasterEditionArgs,

	edition ag_solanago.PublicKey,
	mint ag_solanago.PublicKey,
	updateAuthority ag_solanago.PublicKey,
	mintAuthority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *CreateMasterEdition

NewCreateMasterEditionInstruction declares a new CreateMasterEdition instruction with the provided parameters and accounts.

func NewCreateMasterEditionInstructionBuilder

func NewCreateMasterEditionInstructionBuilder() *CreateMasterEdition

NewCreateMasterEditionInstructionBuilder creates a new `CreateMasterEdition` instruction builder.

func (CreateMasterEdition) Build

func (inst CreateMasterEdition) Build() *Instruction

func (*CreateMasterEdition) EncodeToTree

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

func (*CreateMasterEdition) GetEditionAccount

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

GetEditionAccount gets the "edition" account.

func (*CreateMasterEdition) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*CreateMasterEdition) GetMintAccount

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

GetMintAccount gets the "mint" account.

func (*CreateMasterEdition) GetMintAuthorityAccount

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

GetMintAuthorityAccount gets the "mintAuthority" account.

func (*CreateMasterEdition) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*CreateMasterEdition) GetRentAccount

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

GetRentAccount gets the "rent" account.

func (*CreateMasterEdition) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*CreateMasterEdition) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (*CreateMasterEdition) GetUpdateAuthorityAccount

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

GetUpdateAuthorityAccount gets the "updateAuthority" account.

func (CreateMasterEdition) MarshalWithEncoder

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

func (*CreateMasterEdition) SetCreateMasterEditionArgs

func (inst *CreateMasterEdition) SetCreateMasterEditionArgs(createMasterEditionArgs CreateMasterEditionArgs) *CreateMasterEdition

SetCreateMasterEditionArgs sets the "createMasterEditionArgs" parameter.

func (*CreateMasterEdition) SetEditionAccount

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

SetEditionAccount sets the "edition" account.

func (*CreateMasterEdition) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account.

func (*CreateMasterEdition) SetMintAccount

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

SetMintAccount sets the "mint" account.

func (*CreateMasterEdition) SetMintAuthorityAccount

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

SetMintAuthorityAccount sets the "mintAuthority" account.

func (*CreateMasterEdition) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*CreateMasterEdition) SetRentAccount

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

SetRentAccount sets the "rent" account.

func (*CreateMasterEdition) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*CreateMasterEdition) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account.

func (*CreateMasterEdition) SetUpdateAuthorityAccount

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

SetUpdateAuthorityAccount sets the "updateAuthority" account.

func (*CreateMasterEdition) UnmarshalWithDecoder

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

func (*CreateMasterEdition) Validate

func (inst *CreateMasterEdition) Validate() error

func (CreateMasterEdition) ValidateAndBuild

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

type CreateMasterEditionArgs struct {
	MaxSupply *uint64 `bin:"optional"`
}

func (CreateMasterEditionArgs) MarshalWithEncoder

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

func (*CreateMasterEditionArgs) UnmarshalWithDecoder

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

type CreateMasterEditionV3

type CreateMasterEditionV3 struct {
	CreateMasterEditionArgs *CreateMasterEditionArgs

	// [0] = [WRITE] edition
	//
	// [1] = [WRITE] mint
	//
	// [2] = [SIGNER] updateAuthority
	//
	// [3] = [SIGNER] mintAuthority
	//
	// [4] = [SIGNER] payer
	//
	// [5] = [WRITE] metadata
	//
	// [6] = [] tokenProgram
	//
	// [7] = [] systemProgram
	//
	// [8] = [] rent
	ag_solanago.AccountMetaSlice `bin:"-"`
}

CreateMasterEditionV3 is the `CreateMasterEditionV3` instruction.

func NewCreateMasterEditionV3Instruction

func NewCreateMasterEditionV3Instruction(

	createMasterEditionArgs CreateMasterEditionArgs,

	edition ag_solanago.PublicKey,
	mint ag_solanago.PublicKey,
	updateAuthority ag_solanago.PublicKey,
	mintAuthority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *CreateMasterEditionV3

NewCreateMasterEditionV3Instruction declares a new CreateMasterEditionV3 instruction with the provided parameters and accounts.

func NewCreateMasterEditionV3InstructionBuilder

func NewCreateMasterEditionV3InstructionBuilder() *CreateMasterEditionV3

NewCreateMasterEditionV3InstructionBuilder creates a new `CreateMasterEditionV3` instruction builder.

func (CreateMasterEditionV3) Build

func (inst CreateMasterEditionV3) Build() *Instruction

func (*CreateMasterEditionV3) EncodeToTree

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

func (*CreateMasterEditionV3) GetEditionAccount

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

GetEditionAccount gets the "edition" account.

func (*CreateMasterEditionV3) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*CreateMasterEditionV3) GetMintAccount

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

GetMintAccount gets the "mint" account.

func (*CreateMasterEditionV3) GetMintAuthorityAccount

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

GetMintAuthorityAccount gets the "mintAuthority" account.

func (*CreateMasterEditionV3) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*CreateMasterEditionV3) GetRentAccount

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

GetRentAccount gets the "rent" account.

func (*CreateMasterEditionV3) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*CreateMasterEditionV3) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (*CreateMasterEditionV3) GetUpdateAuthorityAccount

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

GetUpdateAuthorityAccount gets the "updateAuthority" account.

func (CreateMasterEditionV3) MarshalWithEncoder

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

func (*CreateMasterEditionV3) SetCreateMasterEditionArgs

func (inst *CreateMasterEditionV3) SetCreateMasterEditionArgs(createMasterEditionArgs CreateMasterEditionArgs) *CreateMasterEditionV3

SetCreateMasterEditionArgs sets the "createMasterEditionArgs" parameter.

func (*CreateMasterEditionV3) SetEditionAccount

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

SetEditionAccount sets the "edition" account.

func (*CreateMasterEditionV3) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account.

func (*CreateMasterEditionV3) SetMintAccount

SetMintAccount sets the "mint" account.

func (*CreateMasterEditionV3) SetMintAuthorityAccount

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

SetMintAuthorityAccount sets the "mintAuthority" account.

func (*CreateMasterEditionV3) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*CreateMasterEditionV3) SetRentAccount

SetRentAccount sets the "rent" account.

func (*CreateMasterEditionV3) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*CreateMasterEditionV3) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account.

func (*CreateMasterEditionV3) SetUpdateAuthorityAccount

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

SetUpdateAuthorityAccount sets the "updateAuthority" account.

func (*CreateMasterEditionV3) UnmarshalWithDecoder

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

func (*CreateMasterEditionV3) Validate

func (inst *CreateMasterEditionV3) Validate() error

func (CreateMasterEditionV3) ValidateAndBuild

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

type CreateMetadataAccount struct {
	CreateMetadataAccountArgs *CreateMetadataAccountArgs

	// [0] = [WRITE] metadata
	//
	// [1] = [] mint
	//
	// [2] = [SIGNER] mintAuthority
	//
	// [3] = [SIGNER] payer
	//
	// [4] = [] updateAuthority
	//
	// [5] = [] systemProgram
	//
	// [6] = [] rent
	ag_solanago.AccountMetaSlice `bin:"-"`
}

CreateMetadataAccount is the `CreateMetadataAccount` instruction.

func NewCreateMetadataAccountInstruction

func NewCreateMetadataAccountInstruction(

	createMetadataAccountArgs CreateMetadataAccountArgs,

	metadata ag_solanago.PublicKey,
	mint ag_solanago.PublicKey,
	mintAuthority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	updateAuthority ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *CreateMetadataAccount

NewCreateMetadataAccountInstruction declares a new CreateMetadataAccount instruction with the provided parameters and accounts.

func NewCreateMetadataAccountInstructionBuilder

func NewCreateMetadataAccountInstructionBuilder() *CreateMetadataAccount

NewCreateMetadataAccountInstructionBuilder creates a new `CreateMetadataAccount` instruction builder.

func (CreateMetadataAccount) Build

func (inst CreateMetadataAccount) Build() *Instruction

func (*CreateMetadataAccount) EncodeToTree

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

func (*CreateMetadataAccount) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*CreateMetadataAccount) GetMintAccount

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

GetMintAccount gets the "mint" account.

func (*CreateMetadataAccount) GetMintAuthorityAccount

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

GetMintAuthorityAccount gets the "mintAuthority" account.

func (*CreateMetadataAccount) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*CreateMetadataAccount) GetRentAccount

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

GetRentAccount gets the "rent" account.

func (*CreateMetadataAccount) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*CreateMetadataAccount) GetUpdateAuthorityAccount

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

GetUpdateAuthorityAccount gets the "updateAuthority" account.

func (CreateMetadataAccount) MarshalWithEncoder

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

func (*CreateMetadataAccount) SetCreateMetadataAccountArgs

func (inst *CreateMetadataAccount) SetCreateMetadataAccountArgs(createMetadataAccountArgs CreateMetadataAccountArgs) *CreateMetadataAccount

SetCreateMetadataAccountArgs sets the "createMetadataAccountArgs" parameter.

func (*CreateMetadataAccount) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account.

func (*CreateMetadataAccount) SetMintAccount

SetMintAccount sets the "mint" account.

func (*CreateMetadataAccount) SetMintAuthorityAccount

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

SetMintAuthorityAccount sets the "mintAuthority" account.

func (*CreateMetadataAccount) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*CreateMetadataAccount) SetRentAccount

SetRentAccount sets the "rent" account.

func (*CreateMetadataAccount) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*CreateMetadataAccount) SetUpdateAuthorityAccount

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

SetUpdateAuthorityAccount sets the "updateAuthority" account.

func (*CreateMetadataAccount) UnmarshalWithDecoder

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

func (*CreateMetadataAccount) Validate

func (inst *CreateMetadataAccount) Validate() error

func (CreateMetadataAccount) ValidateAndBuild

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

type CreateMetadataAccountArgs struct {
	Data      Data
	IsMutable bool
}

func (CreateMetadataAccountArgs) MarshalWithEncoder

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

func (*CreateMetadataAccountArgs) UnmarshalWithDecoder

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

type CreateMetadataAccountArgsV2

type CreateMetadataAccountArgsV2 struct {
	Data      DataV2
	IsMutable bool
}

func (CreateMetadataAccountArgsV2) MarshalWithEncoder

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

func (*CreateMetadataAccountArgsV2) UnmarshalWithDecoder

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

type CreateMetadataAccountV2

type CreateMetadataAccountV2 struct {
	CreateMetadataAccountArgsV2 *CreateMetadataAccountArgsV2

	// [0] = [WRITE] metadata
	//
	// [1] = [] mint
	//
	// [2] = [SIGNER] mintAuthority
	//
	// [3] = [SIGNER] payer
	//
	// [4] = [] updateAuthority
	//
	// [5] = [] systemProgram
	//
	// [6] = [] rent
	ag_solanago.AccountMetaSlice `bin:"-"`
}

CreateMetadataAccountV2 is the `CreateMetadataAccountV2` instruction.

func NewCreateMetadataAccountV2Instruction

func NewCreateMetadataAccountV2Instruction(

	createMetadataAccountArgsV2 CreateMetadataAccountArgsV2,

	metadata ag_solanago.PublicKey,
	mint ag_solanago.PublicKey,
	mintAuthority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	updateAuthority ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *CreateMetadataAccountV2

NewCreateMetadataAccountV2Instruction declares a new CreateMetadataAccountV2 instruction with the provided parameters and accounts.

func NewCreateMetadataAccountV2InstructionBuilder

func NewCreateMetadataAccountV2InstructionBuilder() *CreateMetadataAccountV2

NewCreateMetadataAccountV2InstructionBuilder creates a new `CreateMetadataAccountV2` instruction builder.

func (CreateMetadataAccountV2) Build

func (inst CreateMetadataAccountV2) Build() *Instruction

func (*CreateMetadataAccountV2) EncodeToTree

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

func (*CreateMetadataAccountV2) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*CreateMetadataAccountV2) GetMintAccount

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

GetMintAccount gets the "mint" account.

func (*CreateMetadataAccountV2) GetMintAuthorityAccount

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

GetMintAuthorityAccount gets the "mintAuthority" account.

func (*CreateMetadataAccountV2) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*CreateMetadataAccountV2) GetRentAccount

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

GetRentAccount gets the "rent" account.

func (*CreateMetadataAccountV2) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*CreateMetadataAccountV2) GetUpdateAuthorityAccount

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

GetUpdateAuthorityAccount gets the "updateAuthority" account.

func (CreateMetadataAccountV2) MarshalWithEncoder

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

func (*CreateMetadataAccountV2) SetCreateMetadataAccountArgsV2

func (inst *CreateMetadataAccountV2) SetCreateMetadataAccountArgsV2(createMetadataAccountArgsV2 CreateMetadataAccountArgsV2) *CreateMetadataAccountV2

SetCreateMetadataAccountArgsV2 sets the "createMetadataAccountArgsV2" parameter.

func (*CreateMetadataAccountV2) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account.

func (*CreateMetadataAccountV2) SetMintAccount

SetMintAccount sets the "mint" account.

func (*CreateMetadataAccountV2) SetMintAuthorityAccount

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

SetMintAuthorityAccount sets the "mintAuthority" account.

func (*CreateMetadataAccountV2) SetPayerAccount

SetPayerAccount sets the "payer" account.

func (*CreateMetadataAccountV2) SetRentAccount

SetRentAccount sets the "rent" account.

func (*CreateMetadataAccountV2) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*CreateMetadataAccountV2) SetUpdateAuthorityAccount

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

SetUpdateAuthorityAccount sets the "updateAuthority" account.

func (*CreateMetadataAccountV2) UnmarshalWithDecoder

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

func (*CreateMetadataAccountV2) Validate

func (inst *CreateMetadataAccountV2) Validate() error

func (CreateMetadataAccountV2) ValidateAndBuild

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

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

type Creator

type Creator struct {
	Address  ag_solanago.PublicKey
	Verified bool
	Share    uint8
}

func (Creator) MarshalWithEncoder

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

func (*Creator) UnmarshalWithDecoder

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

type Data

type Data struct {
	Name                 string
	Symbol               string
	Uri                  string
	SellerFeeBasisPoints uint16
	Creators             *[]Creator `bin:"optional"`
}

func (Data) MarshalWithEncoder

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

func (*Data) UnmarshalWithDecoder

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

type DataV2

type DataV2 struct {
	Name                 string
	Symbol               string
	Uri                  string
	SellerFeeBasisPoints uint16
	Creators             *[]Creator  `bin:"optional"`
	Collection           *Collection `bin:"optional"`
	Uses                 *Uses       `bin:"optional"`
}

func (DataV2) MarshalWithEncoder

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

func (*DataV2) UnmarshalWithDecoder

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

type DeprecatedCreateMasterEdition

type DeprecatedCreateMasterEdition struct {
	CreateMasterEditionArgs *CreateMasterEditionArgs

	// [0] = [WRITE] edition
	//
	// [1] = [WRITE] mint
	//
	// [2] = [WRITE] printingMint
	//
	// [3] = [WRITE] oneTimePrintingAuthorizationMint
	//
	// [4] = [SIGNER] updateAuthority
	//
	// [5] = [SIGNER] printingMintAuthority
	//
	// [6] = [SIGNER] mintAuthority
	//
	// [7] = [] metadata
	//
	// [8] = [SIGNER] payer
	//
	// [9] = [] tokenProgram
	//
	// [10] = [] systemProgram
	//
	// [11] = [] rent
	//
	// [12] = [SIGNER] oneTimePrintingAuthorizationMintAuthority
	ag_solanago.AccountMetaSlice `bin:"-"`
}

DeprecatedCreateMasterEdition is the `DeprecatedCreateMasterEdition` instruction.

func NewDeprecatedCreateMasterEditionInstruction

func NewDeprecatedCreateMasterEditionInstruction(

	createMasterEditionArgs CreateMasterEditionArgs,

	edition ag_solanago.PublicKey,
	mint ag_solanago.PublicKey,
	printingMint ag_solanago.PublicKey,
	oneTimePrintingAuthorizationMint ag_solanago.PublicKey,
	updateAuthority ag_solanago.PublicKey,
	printingMintAuthority ag_solanago.PublicKey,
	mintAuthority ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey,
	oneTimePrintingAuthorizationMintAuthority ag_solanago.PublicKey) *DeprecatedCreateMasterEdition

NewDeprecatedCreateMasterEditionInstruction declares a new DeprecatedCreateMasterEdition instruction with the provided parameters and accounts.

func NewDeprecatedCreateMasterEditionInstructionBuilder

func NewDeprecatedCreateMasterEditionInstructionBuilder() *DeprecatedCreateMasterEdition

NewDeprecatedCreateMasterEditionInstructionBuilder creates a new `DeprecatedCreateMasterEdition` instruction builder.

func (DeprecatedCreateMasterEdition) Build

func (*DeprecatedCreateMasterEdition) EncodeToTree

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

func (*DeprecatedCreateMasterEdition) GetEditionAccount

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

GetEditionAccount gets the "edition" account.

func (*DeprecatedCreateMasterEdition) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*DeprecatedCreateMasterEdition) GetMintAccount

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

GetMintAccount gets the "mint" account.

func (*DeprecatedCreateMasterEdition) GetMintAuthorityAccount

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

GetMintAuthorityAccount gets the "mintAuthority" account.

func (*DeprecatedCreateMasterEdition) GetOneTimePrintingAuthorizationMintAccount

func (inst *DeprecatedCreateMasterEdition) GetOneTimePrintingAuthorizationMintAccount() *ag_solanago.AccountMeta

GetOneTimePrintingAuthorizationMintAccount gets the "oneTimePrintingAuthorizationMint" account.

func (*DeprecatedCreateMasterEdition) GetOneTimePrintingAuthorizationMintAuthorityAccount

func (inst *DeprecatedCreateMasterEdition) GetOneTimePrintingAuthorizationMintAuthorityAccount() *ag_solanago.AccountMeta

GetOneTimePrintingAuthorizationMintAuthorityAccount gets the "oneTimePrintingAuthorizationMintAuthority" account.

func (*DeprecatedCreateMasterEdition) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*DeprecatedCreateMasterEdition) GetPrintingMintAccount

func (inst *DeprecatedCreateMasterEdition) GetPrintingMintAccount() *ag_solanago.AccountMeta

GetPrintingMintAccount gets the "printingMint" account.

func (*DeprecatedCreateMasterEdition) GetPrintingMintAuthorityAccount

func (inst *DeprecatedCreateMasterEdition) GetPrintingMintAuthorityAccount() *ag_solanago.AccountMeta

GetPrintingMintAuthorityAccount gets the "printingMintAuthority" account.

func (*DeprecatedCreateMasterEdition) GetRentAccount

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

GetRentAccount gets the "rent" account.

func (*DeprecatedCreateMasterEdition) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*DeprecatedCreateMasterEdition) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (*DeprecatedCreateMasterEdition) GetUpdateAuthorityAccount

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

GetUpdateAuthorityAccount gets the "updateAuthority" account.

func (DeprecatedCreateMasterEdition) MarshalWithEncoder

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

func (*DeprecatedCreateMasterEdition) SetCreateMasterEditionArgs

func (inst *DeprecatedCreateMasterEdition) SetCreateMasterEditionArgs(createMasterEditionArgs CreateMasterEditionArgs) *DeprecatedCreateMasterEdition

SetCreateMasterEditionArgs sets the "createMasterEditionArgs" parameter.

func (*DeprecatedCreateMasterEdition) SetEditionAccount

SetEditionAccount sets the "edition" account.

func (*DeprecatedCreateMasterEdition) SetMetadataAccount

SetMetadataAccount sets the "metadata" account.

func (*DeprecatedCreateMasterEdition) SetMintAccount

SetMintAccount sets the "mint" account.

func (*DeprecatedCreateMasterEdition) SetMintAuthorityAccount

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

SetMintAuthorityAccount sets the "mintAuthority" account.

func (*DeprecatedCreateMasterEdition) SetOneTimePrintingAuthorizationMintAccount

func (inst *DeprecatedCreateMasterEdition) SetOneTimePrintingAuthorizationMintAccount(oneTimePrintingAuthorizationMint ag_solanago.PublicKey) *DeprecatedCreateMasterEdition

SetOneTimePrintingAuthorizationMintAccount sets the "oneTimePrintingAuthorizationMint" account.

func (*DeprecatedCreateMasterEdition) SetOneTimePrintingAuthorizationMintAuthorityAccount

func (inst *DeprecatedCreateMasterEdition) SetOneTimePrintingAuthorizationMintAuthorityAccount(oneTimePrintingAuthorizationMintAuthority ag_solanago.PublicKey) *DeprecatedCreateMasterEdition

SetOneTimePrintingAuthorizationMintAuthorityAccount sets the "oneTimePrintingAuthorizationMintAuthority" account.

func (*DeprecatedCreateMasterEdition) SetPayerAccount

SetPayerAccount sets the "payer" account.

func (*DeprecatedCreateMasterEdition) SetPrintingMintAccount

func (inst *DeprecatedCreateMasterEdition) SetPrintingMintAccount(printingMint ag_solanago.PublicKey) *DeprecatedCreateMasterEdition

SetPrintingMintAccount sets the "printingMint" account.

func (*DeprecatedCreateMasterEdition) SetPrintingMintAuthorityAccount

func (inst *DeprecatedCreateMasterEdition) SetPrintingMintAuthorityAccount(printingMintAuthority ag_solanago.PublicKey) *DeprecatedCreateMasterEdition

SetPrintingMintAuthorityAccount sets the "printingMintAuthority" account.

func (*DeprecatedCreateMasterEdition) SetRentAccount

SetRentAccount sets the "rent" account.

func (*DeprecatedCreateMasterEdition) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*DeprecatedCreateMasterEdition) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account.

func (*DeprecatedCreateMasterEdition) SetUpdateAuthorityAccount

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

SetUpdateAuthorityAccount sets the "updateAuthority" account.

func (*DeprecatedCreateMasterEdition) UnmarshalWithDecoder

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

func (*DeprecatedCreateMasterEdition) Validate

func (inst *DeprecatedCreateMasterEdition) Validate() error

func (DeprecatedCreateMasterEdition) ValidateAndBuild

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

type DeprecatedCreateReservationList struct {

	// [0] = [WRITE] reservationList
	//
	// [1] = [SIGNER] payer
	//
	// [2] = [SIGNER] updateAuthority
	//
	// [3] = [] masterEdition
	//
	// [4] = [] resource
	//
	// [5] = [] metadata
	//
	// [6] = [] systemProgram
	//
	// [7] = [] rent
	ag_solanago.AccountMetaSlice `bin:"-"`
}

DeprecatedCreateReservationList is the `DeprecatedCreateReservationList` instruction.

func NewDeprecatedCreateReservationListInstruction

func NewDeprecatedCreateReservationListInstruction(

	reservationList ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	updateAuthority ag_solanago.PublicKey,
	masterEdition ag_solanago.PublicKey,
	resource ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *DeprecatedCreateReservationList

NewDeprecatedCreateReservationListInstruction declares a new DeprecatedCreateReservationList instruction with the provided parameters and accounts.

func NewDeprecatedCreateReservationListInstructionBuilder

func NewDeprecatedCreateReservationListInstructionBuilder() *DeprecatedCreateReservationList

NewDeprecatedCreateReservationListInstructionBuilder creates a new `DeprecatedCreateReservationList` instruction builder.

func (DeprecatedCreateReservationList) Build

func (*DeprecatedCreateReservationList) EncodeToTree

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

func (*DeprecatedCreateReservationList) GetMasterEditionAccount

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

GetMasterEditionAccount gets the "masterEdition" account.

func (*DeprecatedCreateReservationList) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*DeprecatedCreateReservationList) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*DeprecatedCreateReservationList) GetRentAccount

GetRentAccount gets the "rent" account.

func (*DeprecatedCreateReservationList) GetReservationListAccount

func (inst *DeprecatedCreateReservationList) GetReservationListAccount() *ag_solanago.AccountMeta

GetReservationListAccount gets the "reservationList" account.

func (*DeprecatedCreateReservationList) GetResourceAccount

func (inst *DeprecatedCreateReservationList) GetResourceAccount() *ag_solanago.AccountMeta

GetResourceAccount gets the "resource" account.

func (*DeprecatedCreateReservationList) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*DeprecatedCreateReservationList) GetUpdateAuthorityAccount

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

GetUpdateAuthorityAccount gets the "updateAuthority" account.

func (DeprecatedCreateReservationList) MarshalWithEncoder

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

func (*DeprecatedCreateReservationList) SetMasterEditionAccount

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

SetMasterEditionAccount sets the "masterEdition" account.

func (*DeprecatedCreateReservationList) SetMetadataAccount

SetMetadataAccount sets the "metadata" account.

func (*DeprecatedCreateReservationList) SetPayerAccount

SetPayerAccount sets the "payer" account.

func (*DeprecatedCreateReservationList) SetRentAccount

SetRentAccount sets the "rent" account.

func (*DeprecatedCreateReservationList) SetReservationListAccount

func (inst *DeprecatedCreateReservationList) SetReservationListAccount(reservationList ag_solanago.PublicKey) *DeprecatedCreateReservationList

SetReservationListAccount sets the "reservationList" account.

func (*DeprecatedCreateReservationList) SetResourceAccount

SetResourceAccount sets the "resource" account.

func (*DeprecatedCreateReservationList) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*DeprecatedCreateReservationList) SetUpdateAuthorityAccount

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

SetUpdateAuthorityAccount sets the "updateAuthority" account.

func (*DeprecatedCreateReservationList) UnmarshalWithDecoder

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

func (*DeprecatedCreateReservationList) Validate

func (inst *DeprecatedCreateReservationList) Validate() error

func (DeprecatedCreateReservationList) ValidateAndBuild

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

type DeprecatedMintNewEditionFromMasterEditionViaPrintingToken struct {

	// [0] = [WRITE] metadata
	//
	// [1] = [WRITE] edition
	//
	// [2] = [WRITE] masterEdition
	//
	// [3] = [WRITE] mint
	//
	// [4] = [SIGNER] mintAuthority
	//
	// [5] = [WRITE] printingMint
	//
	// [6] = [WRITE] masterTokenAccount
	//
	// [7] = [WRITE] editionMarker
	//
	// [8] = [SIGNER] burnAuthority
	//
	// [9] = [SIGNER] payer
	//
	// [10] = [] masterUpdateAuthority
	//
	// [11] = [] masterMetadata
	//
	// [12] = [] tokenProgram
	//
	// [13] = [] systemProgram
	//
	// [14] = [] rent
	//
	// [15] = [WRITE] reservationList
	ag_solanago.AccountMetaSlice `bin:"-"`
}

DeprecatedMintNewEditionFromMasterEditionViaPrintingToken is the `DeprecatedMintNewEditionFromMasterEditionViaPrintingToken` instruction.

func NewDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstruction

func NewDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstruction(

	metadata ag_solanago.PublicKey,
	edition ag_solanago.PublicKey,
	masterEdition ag_solanago.PublicKey,
	mint ag_solanago.PublicKey,
	mintAuthority ag_solanago.PublicKey,
	printingMint ag_solanago.PublicKey,
	masterTokenAccount ag_solanago.PublicKey,
	editionMarker ag_solanago.PublicKey,
	burnAuthority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	masterUpdateAuthority ag_solanago.PublicKey,
	masterMetadata ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey,
	reservationList ag_solanago.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken

NewDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstruction declares a new DeprecatedMintNewEditionFromMasterEditionViaPrintingToken instruction with the provided parameters and accounts.

func NewDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstructionBuilder

func NewDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstructionBuilder() *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken

NewDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstructionBuilder creates a new `DeprecatedMintNewEditionFromMasterEditionViaPrintingToken` instruction builder.

func (DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) Build

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) EncodeToTree

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetBurnAuthorityAccount

GetBurnAuthorityAccount gets the "burnAuthority" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetEditionAccount

GetEditionAccount gets the "edition" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetEditionMarkerAccount

GetEditionMarkerAccount gets the "editionMarker" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMasterEditionAccount

GetMasterEditionAccount gets the "masterEdition" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMasterMetadataAccount

GetMasterMetadataAccount gets the "masterMetadata" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMasterTokenAccountAccount

GetMasterTokenAccountAccount gets the "masterTokenAccount" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMasterUpdateAuthorityAccount

GetMasterUpdateAuthorityAccount gets the "masterUpdateAuthority" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMetadataAccount

GetMetadataAccount gets the "metadata" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMintAccount

GetMintAccount gets the "mint" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMintAuthorityAccount

GetMintAuthorityAccount gets the "mintAuthority" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetPayerAccount

GetPayerAccount gets the "payer" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetPrintingMintAccount

GetPrintingMintAccount gets the "printingMint" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetRentAccount

GetRentAccount gets the "rent" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetReservationListAccount

GetReservationListAccount gets the "reservationList" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetSystemProgramAccount

GetSystemProgramAccount gets the "systemProgram" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetTokenProgramAccount

GetTokenProgramAccount gets the "tokenProgram" account.

func (DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) MarshalWithEncoder

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetBurnAuthorityAccount

SetBurnAuthorityAccount sets the "burnAuthority" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetEditionAccount

SetEditionAccount sets the "edition" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetEditionMarkerAccount

SetEditionMarkerAccount sets the "editionMarker" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMasterEditionAccount

SetMasterEditionAccount sets the "masterEdition" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMasterMetadataAccount

SetMasterMetadataAccount sets the "masterMetadata" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMasterTokenAccountAccount

SetMasterTokenAccountAccount sets the "masterTokenAccount" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMasterUpdateAuthorityAccount

SetMasterUpdateAuthorityAccount sets the "masterUpdateAuthority" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMetadataAccount

SetMetadataAccount sets the "metadata" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMintAccount

SetMintAccount sets the "mint" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMintAuthorityAccount

SetMintAuthorityAccount sets the "mintAuthority" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetPayerAccount

SetPayerAccount sets the "payer" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetPrintingMintAccount

SetPrintingMintAccount sets the "printingMint" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetRentAccount

SetRentAccount sets the "rent" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetReservationListAccount

SetReservationListAccount sets the "reservationList" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetSystemProgramAccount

SetSystemProgramAccount sets the "systemProgram" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetTokenProgramAccount

SetTokenProgramAccount sets the "tokenProgram" account.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) UnmarshalWithDecoder

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

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) Validate

func (DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) ValidateAndBuild

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 DeprecatedMintPrintingTokens

type DeprecatedMintPrintingTokens struct {
	MintPrintingTokensViaTokenArgs *MintPrintingTokensViaTokenArgs

	// [0] = [WRITE] destination
	//
	// [1] = [WRITE] printingMint
	//
	// [2] = [SIGNER] updateAuthority
	//
	// [3] = [] metadata
	//
	// [4] = [] masterEdition
	//
	// [5] = [] tokenProgram
	//
	// [6] = [] rent
	ag_solanago.AccountMetaSlice `bin:"-"`
}

DeprecatedMintPrintingTokens is the `DeprecatedMintPrintingTokens` instruction.

func NewDeprecatedMintPrintingTokensInstruction

func NewDeprecatedMintPrintingTokensInstruction(

	mintPrintingTokensViaTokenArgs MintPrintingTokensViaTokenArgs,

	destination ag_solanago.PublicKey,
	printingMint ag_solanago.PublicKey,
	updateAuthority ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	masterEdition ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *DeprecatedMintPrintingTokens

NewDeprecatedMintPrintingTokensInstruction declares a new DeprecatedMintPrintingTokens instruction with the provided parameters and accounts.

func NewDeprecatedMintPrintingTokensInstructionBuilder

func NewDeprecatedMintPrintingTokensInstructionBuilder() *DeprecatedMintPrintingTokens

NewDeprecatedMintPrintingTokensInstructionBuilder creates a new `DeprecatedMintPrintingTokens` instruction builder.

func (DeprecatedMintPrintingTokens) Build

func (*DeprecatedMintPrintingTokens) EncodeToTree

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

func (*DeprecatedMintPrintingTokens) GetDestinationAccount

func (inst *DeprecatedMintPrintingTokens) GetDestinationAccount() *ag_solanago.AccountMeta

GetDestinationAccount gets the "destination" account.

func (*DeprecatedMintPrintingTokens) GetMasterEditionAccount

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

GetMasterEditionAccount gets the "masterEdition" account.

func (*DeprecatedMintPrintingTokens) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*DeprecatedMintPrintingTokens) GetPrintingMintAccount

func (inst *DeprecatedMintPrintingTokens) GetPrintingMintAccount() *ag_solanago.AccountMeta

GetPrintingMintAccount gets the "printingMint" account.

func (*DeprecatedMintPrintingTokens) GetRentAccount

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

GetRentAccount gets the "rent" account.

func (*DeprecatedMintPrintingTokens) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (*DeprecatedMintPrintingTokens) GetUpdateAuthorityAccount

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

GetUpdateAuthorityAccount gets the "updateAuthority" account.

func (DeprecatedMintPrintingTokens) MarshalWithEncoder

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

func (*DeprecatedMintPrintingTokens) SetDestinationAccount

func (inst *DeprecatedMintPrintingTokens) SetDestinationAccount(destination ag_solanago.PublicKey) *DeprecatedMintPrintingTokens

SetDestinationAccount sets the "destination" account.

func (*DeprecatedMintPrintingTokens) SetMasterEditionAccount

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

SetMasterEditionAccount sets the "masterEdition" account.

func (*DeprecatedMintPrintingTokens) SetMetadataAccount

SetMetadataAccount sets the "metadata" account.

func (*DeprecatedMintPrintingTokens) SetMintPrintingTokensViaTokenArgs

func (inst *DeprecatedMintPrintingTokens) SetMintPrintingTokensViaTokenArgs(mintPrintingTokensViaTokenArgs MintPrintingTokensViaTokenArgs) *DeprecatedMintPrintingTokens

SetMintPrintingTokensViaTokenArgs sets the "mintPrintingTokensViaTokenArgs" parameter.

func (*DeprecatedMintPrintingTokens) SetPrintingMintAccount

func (inst *DeprecatedMintPrintingTokens) SetPrintingMintAccount(printingMint ag_solanago.PublicKey) *DeprecatedMintPrintingTokens

SetPrintingMintAccount sets the "printingMint" account.

func (*DeprecatedMintPrintingTokens) SetRentAccount

SetRentAccount sets the "rent" account.

func (*DeprecatedMintPrintingTokens) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account.

func (*DeprecatedMintPrintingTokens) SetUpdateAuthorityAccount

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

SetUpdateAuthorityAccount sets the "updateAuthority" account.

func (*DeprecatedMintPrintingTokens) UnmarshalWithDecoder

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

func (*DeprecatedMintPrintingTokens) Validate

func (inst *DeprecatedMintPrintingTokens) Validate() error

func (DeprecatedMintPrintingTokens) ValidateAndBuild

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

type DeprecatedMintPrintingTokensViaToken struct {
	MintPrintingTokensViaTokenArgs *MintPrintingTokensViaTokenArgs

	// [0] = [WRITE] destination
	//
	// [1] = [WRITE] token
	//
	// [2] = [WRITE] oneTimePrintingAuthorizationMint
	//
	// [3] = [WRITE] printingMint
	//
	// [4] = [SIGNER] burnAuthority
	//
	// [5] = [] metadata
	//
	// [6] = [] masterEdition
	//
	// [7] = [] tokenProgram
	//
	// [8] = [] rent
	ag_solanago.AccountMetaSlice `bin:"-"`
}

DeprecatedMintPrintingTokensViaToken is the `DeprecatedMintPrintingTokensViaToken` instruction.

func NewDeprecatedMintPrintingTokensViaTokenInstruction

func NewDeprecatedMintPrintingTokensViaTokenInstruction(

	mintPrintingTokensViaTokenArgs MintPrintingTokensViaTokenArgs,

	destination ag_solanago.PublicKey,
	token ag_solanago.PublicKey,
	oneTimePrintingAuthorizationMint ag_solanago.PublicKey,
	printingMint ag_solanago.PublicKey,
	burnAuthority ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	masterEdition ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *DeprecatedMintPrintingTokensViaToken

NewDeprecatedMintPrintingTokensViaTokenInstruction declares a new DeprecatedMintPrintingTokensViaToken instruction with the provided parameters and accounts.

func NewDeprecatedMintPrintingTokensViaTokenInstructionBuilder

func NewDeprecatedMintPrintingTokensViaTokenInstructionBuilder() *DeprecatedMintPrintingTokensViaToken

NewDeprecatedMintPrintingTokensViaTokenInstructionBuilder creates a new `DeprecatedMintPrintingTokensViaToken` instruction builder.

func (DeprecatedMintPrintingTokensViaToken) Build

func (*DeprecatedMintPrintingTokensViaToken) EncodeToTree

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

func (*DeprecatedMintPrintingTokensViaToken) GetBurnAuthorityAccount

func (inst *DeprecatedMintPrintingTokensViaToken) GetBurnAuthorityAccount() *ag_solanago.AccountMeta

GetBurnAuthorityAccount gets the "burnAuthority" account.

func (*DeprecatedMintPrintingTokensViaToken) GetDestinationAccount

func (inst *DeprecatedMintPrintingTokensViaToken) GetDestinationAccount() *ag_solanago.AccountMeta

GetDestinationAccount gets the "destination" account.

func (*DeprecatedMintPrintingTokensViaToken) GetMasterEditionAccount

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

GetMasterEditionAccount gets the "masterEdition" account.

func (*DeprecatedMintPrintingTokensViaToken) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*DeprecatedMintPrintingTokensViaToken) GetOneTimePrintingAuthorizationMintAccount

func (inst *DeprecatedMintPrintingTokensViaToken) GetOneTimePrintingAuthorizationMintAccount() *ag_solanago.AccountMeta

GetOneTimePrintingAuthorizationMintAccount gets the "oneTimePrintingAuthorizationMint" account.

func (*DeprecatedMintPrintingTokensViaToken) GetPrintingMintAccount

func (inst *DeprecatedMintPrintingTokensViaToken) GetPrintingMintAccount() *ag_solanago.AccountMeta

GetPrintingMintAccount gets the "printingMint" account.

func (*DeprecatedMintPrintingTokensViaToken) GetRentAccount

GetRentAccount gets the "rent" account.

func (*DeprecatedMintPrintingTokensViaToken) GetTokenAccount

GetTokenAccount gets the "token" account.

func (*DeprecatedMintPrintingTokensViaToken) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (DeprecatedMintPrintingTokensViaToken) MarshalWithEncoder

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

func (*DeprecatedMintPrintingTokensViaToken) SetBurnAuthorityAccount

SetBurnAuthorityAccount sets the "burnAuthority" account.

func (*DeprecatedMintPrintingTokensViaToken) SetDestinationAccount

SetDestinationAccount sets the "destination" account.

func (*DeprecatedMintPrintingTokensViaToken) SetMasterEditionAccount

SetMasterEditionAccount sets the "masterEdition" account.

func (*DeprecatedMintPrintingTokensViaToken) SetMetadataAccount

SetMetadataAccount sets the "metadata" account.

func (*DeprecatedMintPrintingTokensViaToken) SetMintPrintingTokensViaTokenArgs

func (inst *DeprecatedMintPrintingTokensViaToken) SetMintPrintingTokensViaTokenArgs(mintPrintingTokensViaTokenArgs MintPrintingTokensViaTokenArgs) *DeprecatedMintPrintingTokensViaToken

SetMintPrintingTokensViaTokenArgs sets the "mintPrintingTokensViaTokenArgs" parameter.

func (*DeprecatedMintPrintingTokensViaToken) SetOneTimePrintingAuthorizationMintAccount

func (inst *DeprecatedMintPrintingTokensViaToken) SetOneTimePrintingAuthorizationMintAccount(oneTimePrintingAuthorizationMint ag_solanago.PublicKey) *DeprecatedMintPrintingTokensViaToken

SetOneTimePrintingAuthorizationMintAccount sets the "oneTimePrintingAuthorizationMint" account.

func (*DeprecatedMintPrintingTokensViaToken) SetPrintingMintAccount

SetPrintingMintAccount sets the "printingMint" account.

func (*DeprecatedMintPrintingTokensViaToken) SetRentAccount

SetRentAccount sets the "rent" account.

func (*DeprecatedMintPrintingTokensViaToken) SetTokenAccount

SetTokenAccount sets the "token" account.

func (*DeprecatedMintPrintingTokensViaToken) SetTokenProgramAccount

SetTokenProgramAccount sets the "tokenProgram" account.

func (*DeprecatedMintPrintingTokensViaToken) UnmarshalWithDecoder

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

func (*DeprecatedMintPrintingTokensViaToken) Validate

func (DeprecatedMintPrintingTokensViaToken) ValidateAndBuild

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

type DeprecatedSetReservationList struct {
	SetReservationListArgs *SetReservationListArgs

	// [0] = [WRITE] masterEdition
	//
	// [1] = [WRITE] reservationList
	//
	// [2] = [SIGNER] resource
	ag_solanago.AccountMetaSlice `bin:"-"`
}

DeprecatedSetReservationList is the `DeprecatedSetReservationList` instruction.

func NewDeprecatedSetReservationListInstruction

func NewDeprecatedSetReservationListInstruction(

	setReservationListArgs SetReservationListArgs,

	masterEdition ag_solanago.PublicKey,
	reservationList ag_solanago.PublicKey,
	resource ag_solanago.PublicKey) *DeprecatedSetReservationList

NewDeprecatedSetReservationListInstruction declares a new DeprecatedSetReservationList instruction with the provided parameters and accounts.

func NewDeprecatedSetReservationListInstructionBuilder

func NewDeprecatedSetReservationListInstructionBuilder() *DeprecatedSetReservationList

NewDeprecatedSetReservationListInstructionBuilder creates a new `DeprecatedSetReservationList` instruction builder.

func (DeprecatedSetReservationList) Build

func (*DeprecatedSetReservationList) EncodeToTree

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

func (*DeprecatedSetReservationList) GetMasterEditionAccount

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

GetMasterEditionAccount gets the "masterEdition" account.

func (*DeprecatedSetReservationList) GetReservationListAccount

func (inst *DeprecatedSetReservationList) GetReservationListAccount() *ag_solanago.AccountMeta

GetReservationListAccount gets the "reservationList" account.

func (*DeprecatedSetReservationList) GetResourceAccount

func (inst *DeprecatedSetReservationList) GetResourceAccount() *ag_solanago.AccountMeta

GetResourceAccount gets the "resource" account.

func (DeprecatedSetReservationList) MarshalWithEncoder

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

func (*DeprecatedSetReservationList) SetMasterEditionAccount

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

SetMasterEditionAccount sets the "masterEdition" account.

func (*DeprecatedSetReservationList) SetReservationListAccount

func (inst *DeprecatedSetReservationList) SetReservationListAccount(reservationList ag_solanago.PublicKey) *DeprecatedSetReservationList

SetReservationListAccount sets the "reservationList" account.

func (*DeprecatedSetReservationList) SetResourceAccount

SetResourceAccount sets the "resource" account.

func (*DeprecatedSetReservationList) SetSetReservationListArgs

func (inst *DeprecatedSetReservationList) SetSetReservationListArgs(setReservationListArgs SetReservationListArgs) *DeprecatedSetReservationList

SetSetReservationListArgs sets the "setReservationListArgs" parameter.

func (*DeprecatedSetReservationList) UnmarshalWithDecoder

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

func (*DeprecatedSetReservationList) Validate

func (inst *DeprecatedSetReservationList) Validate() error

func (DeprecatedSetReservationList) ValidateAndBuild

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

type Edition struct {
	Key     Key
	Parent  ag_solanago.PublicKey
	Edition uint64
}

func (Edition) MarshalWithEncoder

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

func (*Edition) UnmarshalWithDecoder

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

type EditionMarker

type EditionMarker struct {
	Key    Key
	Ledger [31]uint8
}

func (EditionMarker) MarshalWithEncoder

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

func (*EditionMarker) UnmarshalWithDecoder

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

type FreezeDelegatedAccount

type FreezeDelegatedAccount struct {

	// [0] = [SIGNER] delegate
	//
	// [1] = [WRITE] tokenAccount
	//
	// [2] = [] edition
	//
	// [3] = [] mint
	//
	// [4] = [] tokenProgram
	ag_solanago.AccountMetaSlice `bin:"-"`
}

FreezeDelegatedAccount is the `FreezeDelegatedAccount` instruction.

func NewFreezeDelegatedAccountInstruction

func NewFreezeDelegatedAccountInstruction(

	delegate ag_solanago.PublicKey,
	tokenAccount ag_solanago.PublicKey,
	edition ag_solanago.PublicKey,
	mint ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey) *FreezeDelegatedAccount

NewFreezeDelegatedAccountInstruction declares a new FreezeDelegatedAccount instruction with the provided parameters and accounts.

func NewFreezeDelegatedAccountInstructionBuilder

func NewFreezeDelegatedAccountInstructionBuilder() *FreezeDelegatedAccount

NewFreezeDelegatedAccountInstructionBuilder creates a new `FreezeDelegatedAccount` instruction builder.

func (FreezeDelegatedAccount) Build

func (inst FreezeDelegatedAccount) Build() *Instruction

func (*FreezeDelegatedAccount) EncodeToTree

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

func (*FreezeDelegatedAccount) GetDelegateAccount

func (inst *FreezeDelegatedAccount) GetDelegateAccount() *ag_solanago.AccountMeta

GetDelegateAccount gets the "delegate" account.

func (*FreezeDelegatedAccount) GetEditionAccount

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

GetEditionAccount gets the "edition" account.

func (*FreezeDelegatedAccount) GetMintAccount

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

GetMintAccount gets the "mint" account.

func (*FreezeDelegatedAccount) GetTokenAccountAccount

func (inst *FreezeDelegatedAccount) GetTokenAccountAccount() *ag_solanago.AccountMeta

GetTokenAccountAccount gets the "tokenAccount" account.

func (*FreezeDelegatedAccount) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (FreezeDelegatedAccount) MarshalWithEncoder

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

func (*FreezeDelegatedAccount) SetDelegateAccount

func (inst *FreezeDelegatedAccount) SetDelegateAccount(delegate ag_solanago.PublicKey) *FreezeDelegatedAccount

SetDelegateAccount sets the "delegate" account.

func (*FreezeDelegatedAccount) SetEditionAccount

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

SetEditionAccount sets the "edition" account.

func (*FreezeDelegatedAccount) SetMintAccount

SetMintAccount sets the "mint" account.

func (*FreezeDelegatedAccount) SetTokenAccountAccount

func (inst *FreezeDelegatedAccount) SetTokenAccountAccount(tokenAccount ag_solanago.PublicKey) *FreezeDelegatedAccount

SetTokenAccountAccount sets the "tokenAccount" account.

func (*FreezeDelegatedAccount) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account.

func (*FreezeDelegatedAccount) UnmarshalWithDecoder

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

func (*FreezeDelegatedAccount) Validate

func (inst *FreezeDelegatedAccount) Validate() error

func (FreezeDelegatedAccount) ValidateAndBuild

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

type Key ag_binary.BorshEnum
const (
	KeyUninitialized Key = iota
	KeyEditionV1
	KeyMasterEditionV1
	KeyReservationListV1
	KeyMetadataV1
	KeyReservationListV2
	KeyMasterEditionV2
	KeyEditionMarker
	KeyUseAuthorityRecord
	KeyCollectionAuthorityRecord
)

func (Key) String

func (value Key) String() string

type MasterEditionV1

type MasterEditionV1 struct {
	Key                              Key
	Supply                           uint64
	MaxSupply                        *uint64 `bin:"optional"`
	PrintingMint                     ag_solanago.PublicKey
	OneTimePrintingAuthorizationMint ag_solanago.PublicKey
}

func (MasterEditionV1) MarshalWithEncoder

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

func (*MasterEditionV1) UnmarshalWithDecoder

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

type MasterEditionV2

type MasterEditionV2 struct {
	Key       Key
	Supply    uint64
	MaxSupply *uint64 `bin:"optional"`
}

func (MasterEditionV2) MarshalWithEncoder

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

func (*MasterEditionV2) UnmarshalWithDecoder

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

type Metadata

type Metadata struct {
	Key                 Key
	UpdateAuthority     ag_solanago.PublicKey
	Mint                ag_solanago.PublicKey
	Data                Data
	PrimarySaleHappened bool
	IsMutable           bool
	EditionNonce        *uint8         `bin:"optional"`
	TokenStandard       *TokenStandard `bin:"optional"`
	Collection          *Collection    `bin:"optional"`
	Uses                *Uses          `bin:"optional"`
}

func (Metadata) MarshalWithEncoder

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

func (*Metadata) UnmarshalWithDecoder

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

type MintNewEditionFromMasterEditionViaToken

type MintNewEditionFromMasterEditionViaToken struct {
	MintNewEditionFromMasterEditionViaTokenArgs *MintNewEditionFromMasterEditionViaTokenArgs

	// [0] = [WRITE] newMetadata
	//
	// [1] = [WRITE] newEdition
	//
	// [2] = [WRITE] masterEdition
	//
	// [3] = [WRITE] newMint
	//
	// [4] = [WRITE] editionMarkPda
	//
	// [5] = [SIGNER] newMintAuthority
	//
	// [6] = [SIGNER] payer
	//
	// [7] = [SIGNER] tokenAccountOwner
	//
	// [8] = [] tokenAccount
	//
	// [9] = [] newMetadataUpdateAuthority
	//
	// [10] = [] metadata
	//
	// [11] = [] tokenProgram
	//
	// [12] = [] systemProgram
	//
	// [13] = [] rent
	ag_solanago.AccountMetaSlice `bin:"-"`
}

MintNewEditionFromMasterEditionViaToken is the `MintNewEditionFromMasterEditionViaToken` instruction.

func NewMintNewEditionFromMasterEditionViaTokenInstruction

func NewMintNewEditionFromMasterEditionViaTokenInstruction(

	mintNewEditionFromMasterEditionViaTokenArgs MintNewEditionFromMasterEditionViaTokenArgs,

	newMetadata ag_solanago.PublicKey,
	newEdition ag_solanago.PublicKey,
	masterEdition ag_solanago.PublicKey,
	newMint ag_solanago.PublicKey,
	editionMarkPda ag_solanago.PublicKey,
	newMintAuthority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	tokenAccountOwner ag_solanago.PublicKey,
	tokenAccount ag_solanago.PublicKey,
	newMetadataUpdateAuthority ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *MintNewEditionFromMasterEditionViaToken

NewMintNewEditionFromMasterEditionViaTokenInstruction declares a new MintNewEditionFromMasterEditionViaToken instruction with the provided parameters and accounts.

func NewMintNewEditionFromMasterEditionViaTokenInstructionBuilder

func NewMintNewEditionFromMasterEditionViaTokenInstructionBuilder() *MintNewEditionFromMasterEditionViaToken

NewMintNewEditionFromMasterEditionViaTokenInstructionBuilder creates a new `MintNewEditionFromMasterEditionViaToken` instruction builder.

func (MintNewEditionFromMasterEditionViaToken) Build

func (*MintNewEditionFromMasterEditionViaToken) EncodeToTree

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

func (*MintNewEditionFromMasterEditionViaToken) GetEditionMarkPdaAccount

func (inst *MintNewEditionFromMasterEditionViaToken) GetEditionMarkPdaAccount() *ag_solanago.AccountMeta

GetEditionMarkPdaAccount gets the "editionMarkPda" account.

func (*MintNewEditionFromMasterEditionViaToken) GetMasterEditionAccount

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

GetMasterEditionAccount gets the "masterEdition" account.

func (*MintNewEditionFromMasterEditionViaToken) GetMetadataAccount

GetMetadataAccount gets the "metadata" account.

func (*MintNewEditionFromMasterEditionViaToken) GetNewEditionAccount

func (inst *MintNewEditionFromMasterEditionViaToken) GetNewEditionAccount() *ag_solanago.AccountMeta

GetNewEditionAccount gets the "newEdition" account.

func (*MintNewEditionFromMasterEditionViaToken) GetNewMetadataAccount

func (inst *MintNewEditionFromMasterEditionViaToken) GetNewMetadataAccount() *ag_solanago.AccountMeta

GetNewMetadataAccount gets the "newMetadata" account.

func (*MintNewEditionFromMasterEditionViaToken) GetNewMetadataUpdateAuthorityAccount

func (inst *MintNewEditionFromMasterEditionViaToken) GetNewMetadataUpdateAuthorityAccount() *ag_solanago.AccountMeta

GetNewMetadataUpdateAuthorityAccount gets the "newMetadataUpdateAuthority" account.

func (*MintNewEditionFromMasterEditionViaToken) GetNewMintAccount

GetNewMintAccount gets the "newMint" account.

func (*MintNewEditionFromMasterEditionViaToken) GetNewMintAuthorityAccount

func (inst *MintNewEditionFromMasterEditionViaToken) GetNewMintAuthorityAccount() *ag_solanago.AccountMeta

GetNewMintAuthorityAccount gets the "newMintAuthority" account.

func (*MintNewEditionFromMasterEditionViaToken) GetPayerAccount

GetPayerAccount gets the "payer" account.

func (*MintNewEditionFromMasterEditionViaToken) GetRentAccount

GetRentAccount gets the "rent" account.

func (*MintNewEditionFromMasterEditionViaToken) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*MintNewEditionFromMasterEditionViaToken) GetTokenAccountAccount

func (inst *MintNewEditionFromMasterEditionViaToken) GetTokenAccountAccount() *ag_solanago.AccountMeta

GetTokenAccountAccount gets the "tokenAccount" account.

func (*MintNewEditionFromMasterEditionViaToken) GetTokenAccountOwnerAccount

func (inst *MintNewEditionFromMasterEditionViaToken) GetTokenAccountOwnerAccount() *ag_solanago.AccountMeta

GetTokenAccountOwnerAccount gets the "tokenAccountOwner" account.

func (*MintNewEditionFromMasterEditionViaToken) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (MintNewEditionFromMasterEditionViaToken) MarshalWithEncoder

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

func (*MintNewEditionFromMasterEditionViaToken) SetEditionMarkPdaAccount

SetEditionMarkPdaAccount sets the "editionMarkPda" account.

func (*MintNewEditionFromMasterEditionViaToken) SetMasterEditionAccount

SetMasterEditionAccount sets the "masterEdition" account.

func (*MintNewEditionFromMasterEditionViaToken) SetMetadataAccount

SetMetadataAccount sets the "metadata" account.

func (*MintNewEditionFromMasterEditionViaToken) SetMintNewEditionFromMasterEditionViaTokenArgs

func (inst *MintNewEditionFromMasterEditionViaToken) SetMintNewEditionFromMasterEditionViaTokenArgs(mintNewEditionFromMasterEditionViaTokenArgs MintNewEditionFromMasterEditionViaTokenArgs) *MintNewEditionFromMasterEditionViaToken

SetMintNewEditionFromMasterEditionViaTokenArgs sets the "mintNewEditionFromMasterEditionViaTokenArgs" parameter.

func (*MintNewEditionFromMasterEditionViaToken) SetNewEditionAccount

SetNewEditionAccount sets the "newEdition" account.

func (*MintNewEditionFromMasterEditionViaToken) SetNewMetadataAccount

SetNewMetadataAccount sets the "newMetadata" account.

func (*MintNewEditionFromMasterEditionViaToken) SetNewMetadataUpdateAuthorityAccount

func (inst *MintNewEditionFromMasterEditionViaToken) SetNewMetadataUpdateAuthorityAccount(newMetadataUpdateAuthority ag_solanago.PublicKey) *MintNewEditionFromMasterEditionViaToken

SetNewMetadataUpdateAuthorityAccount sets the "newMetadataUpdateAuthority" account.

func (*MintNewEditionFromMasterEditionViaToken) SetNewMintAccount

SetNewMintAccount sets the "newMint" account.

func (*MintNewEditionFromMasterEditionViaToken) SetNewMintAuthorityAccount

SetNewMintAuthorityAccount sets the "newMintAuthority" account.

func (*MintNewEditionFromMasterEditionViaToken) SetPayerAccount

SetPayerAccount sets the "payer" account.

func (*MintNewEditionFromMasterEditionViaToken) SetRentAccount

SetRentAccount sets the "rent" account.

func (*MintNewEditionFromMasterEditionViaToken) SetSystemProgramAccount

SetSystemProgramAccount sets the "systemProgram" account.

func (*MintNewEditionFromMasterEditionViaToken) SetTokenAccountAccount

SetTokenAccountAccount sets the "tokenAccount" account.

func (*MintNewEditionFromMasterEditionViaToken) SetTokenAccountOwnerAccount

func (inst *MintNewEditionFromMasterEditionViaToken) SetTokenAccountOwnerAccount(tokenAccountOwner ag_solanago.PublicKey) *MintNewEditionFromMasterEditionViaToken

SetTokenAccountOwnerAccount sets the "tokenAccountOwner" account.

func (*MintNewEditionFromMasterEditionViaToken) SetTokenProgramAccount

SetTokenProgramAccount sets the "tokenProgram" account.

func (*MintNewEditionFromMasterEditionViaToken) UnmarshalWithDecoder

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

func (*MintNewEditionFromMasterEditionViaToken) Validate

func (MintNewEditionFromMasterEditionViaToken) ValidateAndBuild

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

type MintNewEditionFromMasterEditionViaTokenArgs struct {
	Edition uint64
}

func (MintNewEditionFromMasterEditionViaTokenArgs) MarshalWithEncoder

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

func (*MintNewEditionFromMasterEditionViaTokenArgs) UnmarshalWithDecoder

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

type MintNewEditionFromMasterEditionViaVaultProxy

type MintNewEditionFromMasterEditionViaVaultProxy struct {
	MintNewEditionFromMasterEditionViaTokenArgs *MintNewEditionFromMasterEditionViaTokenArgs

	// [0] = [WRITE] newMetadata
	//
	// [1] = [WRITE] newEdition
	//
	// [2] = [WRITE] masterEdition
	//
	// [3] = [WRITE] newMint
	//
	// [4] = [WRITE] editionMarkPda
	//
	// [5] = [SIGNER] newMintAuthority
	//
	// [6] = [SIGNER] payer
	//
	// [7] = [SIGNER] vaultAuthority
	//
	// [8] = [] safetyDepositStore
	//
	// [9] = [] safetyDepositBox
	//
	// [10] = [] vault
	//
	// [11] = [] newMetadataUpdateAuthority
	//
	// [12] = [] metadata
	//
	// [13] = [] tokenProgram
	//
	// [14] = [] tokenVaultProgram
	//
	// [15] = [] systemProgram
	//
	// [16] = [] rent
	ag_solanago.AccountMetaSlice `bin:"-"`
}

MintNewEditionFromMasterEditionViaVaultProxy is the `MintNewEditionFromMasterEditionViaVaultProxy` instruction.

func NewMintNewEditionFromMasterEditionViaVaultProxyInstruction

func NewMintNewEditionFromMasterEditionViaVaultProxyInstruction(

	mintNewEditionFromMasterEditionViaTokenArgs MintNewEditionFromMasterEditionViaTokenArgs,

	newMetadata ag_solanago.PublicKey,
	newEdition ag_solanago.PublicKey,
	masterEdition ag_solanago.PublicKey,
	newMint ag_solanago.PublicKey,
	editionMarkPda ag_solanago.PublicKey,
	newMintAuthority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	vaultAuthority ag_solanago.PublicKey,
	safetyDepositStore ag_solanago.PublicKey,
	safetyDepositBox ag_solanago.PublicKey,
	vault ag_solanago.PublicKey,
	newMetadataUpdateAuthority ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	tokenVaultProgram ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy

NewMintNewEditionFromMasterEditionViaVaultProxyInstruction declares a new MintNewEditionFromMasterEditionViaVaultProxy instruction with the provided parameters and accounts.

func NewMintNewEditionFromMasterEditionViaVaultProxyInstructionBuilder

func NewMintNewEditionFromMasterEditionViaVaultProxyInstructionBuilder() *MintNewEditionFromMasterEditionViaVaultProxy

NewMintNewEditionFromMasterEditionViaVaultProxyInstructionBuilder creates a new `MintNewEditionFromMasterEditionViaVaultProxy` instruction builder.

func (MintNewEditionFromMasterEditionViaVaultProxy) Build

func (*MintNewEditionFromMasterEditionViaVaultProxy) EncodeToTree

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetEditionMarkPdaAccount

func (inst *MintNewEditionFromMasterEditionViaVaultProxy) GetEditionMarkPdaAccount() *ag_solanago.AccountMeta

GetEditionMarkPdaAccount gets the "editionMarkPda" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetMasterEditionAccount

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

GetMasterEditionAccount gets the "masterEdition" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetMetadataAccount

GetMetadataAccount gets the "metadata" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetNewEditionAccount

GetNewEditionAccount gets the "newEdition" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetNewMetadataAccount

GetNewMetadataAccount gets the "newMetadata" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetNewMetadataUpdateAuthorityAccount

func (inst *MintNewEditionFromMasterEditionViaVaultProxy) GetNewMetadataUpdateAuthorityAccount() *ag_solanago.AccountMeta

GetNewMetadataUpdateAuthorityAccount gets the "newMetadataUpdateAuthority" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetNewMintAccount

GetNewMintAccount gets the "newMint" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetNewMintAuthorityAccount

func (inst *MintNewEditionFromMasterEditionViaVaultProxy) GetNewMintAuthorityAccount() *ag_solanago.AccountMeta

GetNewMintAuthorityAccount gets the "newMintAuthority" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetPayerAccount

GetPayerAccount gets the "payer" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetRentAccount

GetRentAccount gets the "rent" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetSafetyDepositBoxAccount

func (inst *MintNewEditionFromMasterEditionViaVaultProxy) GetSafetyDepositBoxAccount() *ag_solanago.AccountMeta

GetSafetyDepositBoxAccount gets the "safetyDepositBox" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetSafetyDepositStoreAccount

func (inst *MintNewEditionFromMasterEditionViaVaultProxy) GetSafetyDepositStoreAccount() *ag_solanago.AccountMeta

GetSafetyDepositStoreAccount gets the "safetyDepositStore" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetTokenProgramAccount

GetTokenProgramAccount gets the "tokenProgram" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetTokenVaultProgramAccount

func (inst *MintNewEditionFromMasterEditionViaVaultProxy) GetTokenVaultProgramAccount() *ag_solanago.AccountMeta

GetTokenVaultProgramAccount gets the "tokenVaultProgram" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetVaultAccount

GetVaultAccount gets the "vault" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetVaultAuthorityAccount

func (inst *MintNewEditionFromMasterEditionViaVaultProxy) GetVaultAuthorityAccount() *ag_solanago.AccountMeta

GetVaultAuthorityAccount gets the "vaultAuthority" account.

func (MintNewEditionFromMasterEditionViaVaultProxy) MarshalWithEncoder

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

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetEditionMarkPdaAccount

SetEditionMarkPdaAccount sets the "editionMarkPda" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetMasterEditionAccount

SetMasterEditionAccount sets the "masterEdition" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetMetadataAccount

SetMetadataAccount sets the "metadata" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetMintNewEditionFromMasterEditionViaTokenArgs

func (inst *MintNewEditionFromMasterEditionViaVaultProxy) SetMintNewEditionFromMasterEditionViaTokenArgs(mintNewEditionFromMasterEditionViaTokenArgs MintNewEditionFromMasterEditionViaTokenArgs) *MintNewEditionFromMasterEditionViaVaultProxy

SetMintNewEditionFromMasterEditionViaTokenArgs sets the "mintNewEditionFromMasterEditionViaTokenArgs" parameter.

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetNewEditionAccount

SetNewEditionAccount sets the "newEdition" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetNewMetadataAccount

SetNewMetadataAccount sets the "newMetadata" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetNewMetadataUpdateAuthorityAccount

func (inst *MintNewEditionFromMasterEditionViaVaultProxy) SetNewMetadataUpdateAuthorityAccount(newMetadataUpdateAuthority ag_solanago.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy

SetNewMetadataUpdateAuthorityAccount sets the "newMetadataUpdateAuthority" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetNewMintAccount

SetNewMintAccount sets the "newMint" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetNewMintAuthorityAccount

SetNewMintAuthorityAccount sets the "newMintAuthority" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetPayerAccount

SetPayerAccount sets the "payer" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetRentAccount

SetRentAccount sets the "rent" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetSafetyDepositBoxAccount

SetSafetyDepositBoxAccount sets the "safetyDepositBox" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetSafetyDepositStoreAccount

SetSafetyDepositStoreAccount sets the "safetyDepositStore" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetSystemProgramAccount

SetSystemProgramAccount sets the "systemProgram" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetTokenProgramAccount

SetTokenProgramAccount sets the "tokenProgram" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetTokenVaultProgramAccount

SetTokenVaultProgramAccount sets the "tokenVaultProgram" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetVaultAccount

SetVaultAccount sets the "vault" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetVaultAuthorityAccount

SetVaultAuthorityAccount sets the "vaultAuthority" account.

func (*MintNewEditionFromMasterEditionViaVaultProxy) UnmarshalWithDecoder

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

func (*MintNewEditionFromMasterEditionViaVaultProxy) Validate

func (MintNewEditionFromMasterEditionViaVaultProxy) ValidateAndBuild

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 MintPrintingTokensViaTokenArgs

type MintPrintingTokensViaTokenArgs struct {
	Supply uint64
}

func (MintPrintingTokensViaTokenArgs) MarshalWithEncoder

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

func (*MintPrintingTokensViaTokenArgs) UnmarshalWithDecoder

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

type PuffMetadata

type PuffMetadata struct {

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

PuffMetadata is the `PuffMetadata` instruction.

func NewPuffMetadataInstruction

func NewPuffMetadataInstruction(

	metadata ag_solanago.PublicKey) *PuffMetadata

NewPuffMetadataInstruction declares a new PuffMetadata instruction with the provided parameters and accounts.

func NewPuffMetadataInstructionBuilder

func NewPuffMetadataInstructionBuilder() *PuffMetadata

NewPuffMetadataInstructionBuilder creates a new `PuffMetadata` instruction builder.

func (PuffMetadata) Build

func (inst PuffMetadata) Build() *Instruction

func (*PuffMetadata) EncodeToTree

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

func (*PuffMetadata) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (PuffMetadata) MarshalWithEncoder

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

func (*PuffMetadata) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account.

func (*PuffMetadata) UnmarshalWithDecoder

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

func (*PuffMetadata) Validate

func (inst *PuffMetadata) Validate() error

func (PuffMetadata) ValidateAndBuild

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

type RemoveCreatorVerification struct {

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

RemoveCreatorVerification is the `RemoveCreatorVerification` instruction.

func NewRemoveCreatorVerificationInstruction

func NewRemoveCreatorVerificationInstruction(

	metadata ag_solanago.PublicKey,
	creator ag_solanago.PublicKey) *RemoveCreatorVerification

NewRemoveCreatorVerificationInstruction declares a new RemoveCreatorVerification instruction with the provided parameters and accounts.

func NewRemoveCreatorVerificationInstructionBuilder

func NewRemoveCreatorVerificationInstructionBuilder() *RemoveCreatorVerification

NewRemoveCreatorVerificationInstructionBuilder creates a new `RemoveCreatorVerification` instruction builder.

func (RemoveCreatorVerification) Build

func (inst RemoveCreatorVerification) Build() *Instruction

func (*RemoveCreatorVerification) EncodeToTree

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

func (*RemoveCreatorVerification) GetCreatorAccount

func (inst *RemoveCreatorVerification) GetCreatorAccount() *ag_solanago.AccountMeta

GetCreatorAccount gets the "creator" account.

func (*RemoveCreatorVerification) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (RemoveCreatorVerification) MarshalWithEncoder

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

func (*RemoveCreatorVerification) SetCreatorAccount

SetCreatorAccount sets the "creator" account.

func (*RemoveCreatorVerification) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account.

func (*RemoveCreatorVerification) UnmarshalWithDecoder

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

func (*RemoveCreatorVerification) Validate

func (inst *RemoveCreatorVerification) Validate() error

func (RemoveCreatorVerification) ValidateAndBuild

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

type Reservation struct {
	Address        ag_solanago.PublicKey
	SpotsRemaining uint64
	TotalSpots     uint64
}

func (Reservation) MarshalWithEncoder

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

func (*Reservation) UnmarshalWithDecoder

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

type ReservationListV1

type ReservationListV1 struct {
	Key            Key
	MasterEdition  ag_solanago.PublicKey
	SupplySnapshot *uint64 `bin:"optional"`
	Reservations   []ReservationV1
}

func (ReservationListV1) MarshalWithEncoder

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

func (*ReservationListV1) UnmarshalWithDecoder

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

type ReservationListV2

type ReservationListV2 struct {
	Key                     Key
	MasterEdition           ag_solanago.PublicKey
	SupplySnapshot          *uint64 `bin:"optional"`
	Reservations            []Reservation
	TotalReservationSpots   uint64
	CurrentReservationSpots uint64
}

func (ReservationListV2) MarshalWithEncoder

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

func (*ReservationListV2) UnmarshalWithDecoder

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

type ReservationV1

type ReservationV1 struct {
	Address        ag_solanago.PublicKey
	SpotsRemaining uint8
	TotalSpots     uint8
}

func (ReservationV1) MarshalWithEncoder

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

func (*ReservationV1) UnmarshalWithDecoder

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

type RevokeCollectionAuthority

type RevokeCollectionAuthority struct {

	// [0] = [WRITE] collectionAuthorityRecord
	//
	// [1] = [SIGNER] updateAuthority
	//
	// [2] = [] metadata
	//
	// [3] = [] mint
	ag_solanago.AccountMetaSlice `bin:"-"`
}

RevokeCollectionAuthority is the `RevokeCollectionAuthority` instruction.

func NewRevokeCollectionAuthorityInstruction

func NewRevokeCollectionAuthorityInstruction(

	collectionAuthorityRecord ag_solanago.PublicKey,
	updateAuthority ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	mint ag_solanago.PublicKey) *RevokeCollectionAuthority

NewRevokeCollectionAuthorityInstruction declares a new RevokeCollectionAuthority instruction with the provided parameters and accounts.

func NewRevokeCollectionAuthorityInstructionBuilder

func NewRevokeCollectionAuthorityInstructionBuilder() *RevokeCollectionAuthority

NewRevokeCollectionAuthorityInstructionBuilder creates a new `RevokeCollectionAuthority` instruction builder.

func (RevokeCollectionAuthority) Build

func (inst RevokeCollectionAuthority) Build() *Instruction

func (*RevokeCollectionAuthority) EncodeToTree

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

func (*RevokeCollectionAuthority) GetCollectionAuthorityRecordAccount

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

GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" account.

func (*RevokeCollectionAuthority) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*RevokeCollectionAuthority) GetMintAccount

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

GetMintAccount gets the "mint" account.

func (*RevokeCollectionAuthority) GetUpdateAuthorityAccount

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

GetUpdateAuthorityAccount gets the "updateAuthority" account.

func (RevokeCollectionAuthority) MarshalWithEncoder

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

func (*RevokeCollectionAuthority) SetCollectionAuthorityRecordAccount

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

SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" account.

func (*RevokeCollectionAuthority) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account.

func (*RevokeCollectionAuthority) SetMintAccount

SetMintAccount sets the "mint" account.

func (*RevokeCollectionAuthority) SetUpdateAuthorityAccount

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

SetUpdateAuthorityAccount sets the "updateAuthority" account.

func (*RevokeCollectionAuthority) UnmarshalWithDecoder

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

func (*RevokeCollectionAuthority) Validate

func (inst *RevokeCollectionAuthority) Validate() error

func (RevokeCollectionAuthority) ValidateAndBuild

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

type RevokeUseAuthority struct {

	// [0] = [WRITE] useAuthorityRecord
	//
	// [1] = [SIGNER] owner
	//
	// [2] = [] user
	//
	// [3] = [WRITE] ownerTokenAccount
	//
	// [4] = [] mint
	//
	// [5] = [] metadata
	//
	// [6] = [] tokenProgram
	//
	// [7] = [] systemProgram
	//
	// [8] = [] rent
	ag_solanago.AccountMetaSlice `bin:"-"`
}

RevokeUseAuthority is the `RevokeUseAuthority` instruction.

func NewRevokeUseAuthorityInstruction

func NewRevokeUseAuthorityInstruction(

	useAuthorityRecord ag_solanago.PublicKey,
	owner ag_solanago.PublicKey,
	user ag_solanago.PublicKey,
	ownerTokenAccount ag_solanago.PublicKey,
	mint ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *RevokeUseAuthority

NewRevokeUseAuthorityInstruction declares a new RevokeUseAuthority instruction with the provided parameters and accounts.

func NewRevokeUseAuthorityInstructionBuilder

func NewRevokeUseAuthorityInstructionBuilder() *RevokeUseAuthority

NewRevokeUseAuthorityInstructionBuilder creates a new `RevokeUseAuthority` instruction builder.

func (RevokeUseAuthority) Build

func (inst RevokeUseAuthority) Build() *Instruction

func (*RevokeUseAuthority) EncodeToTree

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

func (*RevokeUseAuthority) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*RevokeUseAuthority) GetMintAccount

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

GetMintAccount gets the "mint" account.

func (*RevokeUseAuthority) GetOwnerAccount

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

GetOwnerAccount gets the "owner" account.

func (*RevokeUseAuthority) GetOwnerTokenAccountAccount

func (inst *RevokeUseAuthority) GetOwnerTokenAccountAccount() *ag_solanago.AccountMeta

GetOwnerTokenAccountAccount gets the "ownerTokenAccount" account.

func (*RevokeUseAuthority) GetRentAccount

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

GetRentAccount gets the "rent" account.

func (*RevokeUseAuthority) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*RevokeUseAuthority) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (*RevokeUseAuthority) GetUseAuthorityRecordAccount

func (inst *RevokeUseAuthority) GetUseAuthorityRecordAccount() *ag_solanago.AccountMeta

GetUseAuthorityRecordAccount gets the "useAuthorityRecord" account.

func (*RevokeUseAuthority) GetUserAccount

func (inst *RevokeUseAuthority) GetUserAccount() *ag_solanago.AccountMeta

GetUserAccount gets the "user" account.

func (RevokeUseAuthority) MarshalWithEncoder

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

func (*RevokeUseAuthority) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account.

func (*RevokeUseAuthority) SetMintAccount

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

SetMintAccount sets the "mint" account.

func (*RevokeUseAuthority) SetOwnerAccount

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

SetOwnerAccount sets the "owner" account.

func (*RevokeUseAuthority) SetOwnerTokenAccountAccount

func (inst *RevokeUseAuthority) SetOwnerTokenAccountAccount(ownerTokenAccount ag_solanago.PublicKey) *RevokeUseAuthority

SetOwnerTokenAccountAccount sets the "ownerTokenAccount" account.

func (*RevokeUseAuthority) SetRentAccount

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

SetRentAccount sets the "rent" account.

func (*RevokeUseAuthority) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*RevokeUseAuthority) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account.

func (*RevokeUseAuthority) SetUseAuthorityRecordAccount

func (inst *RevokeUseAuthority) SetUseAuthorityRecordAccount(useAuthorityRecord ag_solanago.PublicKey) *RevokeUseAuthority

SetUseAuthorityRecordAccount sets the "useAuthorityRecord" account.

func (*RevokeUseAuthority) SetUserAccount

func (inst *RevokeUseAuthority) SetUserAccount(user ag_solanago.PublicKey) *RevokeUseAuthority

SetUserAccount sets the "user" account.

func (*RevokeUseAuthority) UnmarshalWithDecoder

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

func (*RevokeUseAuthority) Validate

func (inst *RevokeUseAuthority) Validate() error

func (RevokeUseAuthority) ValidateAndBuild

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

type SetAndVerifyCollection struct {

	// [0] = [WRITE] metadata
	//
	// [1] = [SIGNER] collectionAuthority
	//
	// [2] = [SIGNER] payer
	//
	// [3] = [] updateAuthority
	//
	// [4] = [] collectionMint
	//
	// [5] = [] collection
	//
	// [6] = [] collectionMasterEditionAccount
	//
	// [7] = [] collectionAuthorityRecord
	ag_solanago.AccountMetaSlice `bin:"-"`
}

SetAndVerifyCollection is the `SetAndVerifyCollection` instruction.

func NewSetAndVerifyCollectionInstruction

func NewSetAndVerifyCollectionInstruction(

	metadata ag_solanago.PublicKey,
	collectionAuthority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	updateAuthority ag_solanago.PublicKey,
	collectionMint ag_solanago.PublicKey,
	collection ag_solanago.PublicKey,
	collectionMasterEditionAccount ag_solanago.PublicKey,
	collectionAuthorityRecord ag_solanago.PublicKey) *SetAndVerifyCollection

NewSetAndVerifyCollectionInstruction declares a new SetAndVerifyCollection instruction with the provided parameters and accounts.

func NewSetAndVerifyCollectionInstructionBuilder

func NewSetAndVerifyCollectionInstructionBuilder() *SetAndVerifyCollection

NewSetAndVerifyCollectionInstructionBuilder creates a new `SetAndVerifyCollection` instruction builder.

func (SetAndVerifyCollection) Build

func (inst SetAndVerifyCollection) Build() *Instruction

func (*SetAndVerifyCollection) EncodeToTree

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

func (*SetAndVerifyCollection) GetCollectionAccount

func (inst *SetAndVerifyCollection) GetCollectionAccount() *ag_solanago.AccountMeta

GetCollectionAccount gets the "collection" account.

func (*SetAndVerifyCollection) GetCollectionAuthorityAccount

func (inst *SetAndVerifyCollection) GetCollectionAuthorityAccount() *ag_solanago.AccountMeta

GetCollectionAuthorityAccount gets the "collectionAuthority" account.

func (*SetAndVerifyCollection) GetCollectionAuthorityRecordAccount

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

GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" account.

func (*SetAndVerifyCollection) GetCollectionMasterEditionAccountAccount

func (inst *SetAndVerifyCollection) GetCollectionMasterEditionAccountAccount() *ag_solanago.AccountMeta

GetCollectionMasterEditionAccountAccount gets the "collectionMasterEditionAccount" account.

func (*SetAndVerifyCollection) GetCollectionMintAccount

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

GetCollectionMintAccount gets the "collectionMint" account.

func (*SetAndVerifyCollection) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*SetAndVerifyCollection) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (*SetAndVerifyCollection) GetUpdateAuthorityAccount

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

GetUpdateAuthorityAccount gets the "updateAuthority" account.

func (SetAndVerifyCollection) MarshalWithEncoder

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

func (*SetAndVerifyCollection) SetCollectionAccount

func (inst *SetAndVerifyCollection) SetCollectionAccount(collection ag_solanago.PublicKey) *SetAndVerifyCollection

SetCollectionAccount sets the "collection" account.

func (*SetAndVerifyCollection) SetCollectionAuthorityAccount

func (inst *SetAndVerifyCollection) SetCollectionAuthorityAccount(collectionAuthority ag_solanago.PublicKey) *SetAndVerifyCollection

SetCollectionAuthorityAccount sets the "collectionAuthority" account.

func (*SetAndVerifyCollection) SetCollectionAuthorityRecordAccount

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

SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" account.

func (*SetAndVerifyCollection) SetCollectionMasterEditionAccountAccount

func (inst *SetAndVerifyCollection) SetCollectionMasterEditionAccountAccount(collectionMasterEditionAccount ag_solanago.PublicKey) *SetAndVerifyCollection

SetCollectionMasterEditionAccountAccount sets the "collectionMasterEditionAccount" account.

func (*SetAndVerifyCollection) SetCollectionMintAccount

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

SetCollectionMintAccount sets the "collectionMint" account.

func (*SetAndVerifyCollection) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account.

func (*SetAndVerifyCollection) SetPayerAccount

SetPayerAccount sets the "payer" account.

func (*SetAndVerifyCollection) SetUpdateAuthorityAccount

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

SetUpdateAuthorityAccount sets the "updateAuthority" account.

func (*SetAndVerifyCollection) UnmarshalWithDecoder

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

func (*SetAndVerifyCollection) Validate

func (inst *SetAndVerifyCollection) Validate() error

func (SetAndVerifyCollection) ValidateAndBuild

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

type SetReservationListArgs struct {
	Reservations          []Reservation
	TotalReservationSpots *uint64 `bin:"optional"`
	Offset                uint64
	TotalSpotOffset       uint64
}

func (SetReservationListArgs) MarshalWithEncoder

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

func (*SetReservationListArgs) UnmarshalWithDecoder

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

type SignMetadata

type SignMetadata struct {

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

SignMetadata is the `SignMetadata` instruction.

func NewSignMetadataInstruction

func NewSignMetadataInstruction(

	metadata ag_solanago.PublicKey,
	creator ag_solanago.PublicKey) *SignMetadata

NewSignMetadataInstruction declares a new SignMetadata instruction with the provided parameters and accounts.

func NewSignMetadataInstructionBuilder

func NewSignMetadataInstructionBuilder() *SignMetadata

NewSignMetadataInstructionBuilder creates a new `SignMetadata` instruction builder.

func (SignMetadata) Build

func (inst SignMetadata) Build() *Instruction

func (*SignMetadata) EncodeToTree

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

func (*SignMetadata) GetCreatorAccount

func (inst *SignMetadata) GetCreatorAccount() *ag_solanago.AccountMeta

GetCreatorAccount gets the "creator" account.

func (*SignMetadata) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (SignMetadata) MarshalWithEncoder

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

func (*SignMetadata) SetCreatorAccount

func (inst *SignMetadata) SetCreatorAccount(creator ag_solanago.PublicKey) *SignMetadata

SetCreatorAccount sets the "creator" account.

func (*SignMetadata) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account.

func (*SignMetadata) UnmarshalWithDecoder

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

func (*SignMetadata) Validate

func (inst *SignMetadata) Validate() error

func (SignMetadata) ValidateAndBuild

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

type ThawDelegatedAccount struct {

	// [0] = [SIGNER] delegate
	//
	// [1] = [WRITE] tokenAccount
	//
	// [2] = [] edition
	//
	// [3] = [] mint
	//
	// [4] = [] tokenProgram
	ag_solanago.AccountMetaSlice `bin:"-"`
}

ThawDelegatedAccount is the `ThawDelegatedAccount` instruction.

func NewThawDelegatedAccountInstruction

func NewThawDelegatedAccountInstruction(

	delegate ag_solanago.PublicKey,
	tokenAccount ag_solanago.PublicKey,
	edition ag_solanago.PublicKey,
	mint ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey) *ThawDelegatedAccount

NewThawDelegatedAccountInstruction declares a new ThawDelegatedAccount instruction with the provided parameters and accounts.

func NewThawDelegatedAccountInstructionBuilder

func NewThawDelegatedAccountInstructionBuilder() *ThawDelegatedAccount

NewThawDelegatedAccountInstructionBuilder creates a new `ThawDelegatedAccount` instruction builder.

func (ThawDelegatedAccount) Build

func (inst ThawDelegatedAccount) Build() *Instruction

func (*ThawDelegatedAccount) EncodeToTree

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

func (*ThawDelegatedAccount) GetDelegateAccount

func (inst *ThawDelegatedAccount) GetDelegateAccount() *ag_solanago.AccountMeta

GetDelegateAccount gets the "delegate" account.

func (*ThawDelegatedAccount) GetEditionAccount

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

GetEditionAccount gets the "edition" account.

func (*ThawDelegatedAccount) GetMintAccount

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

GetMintAccount gets the "mint" account.

func (*ThawDelegatedAccount) GetTokenAccountAccount

func (inst *ThawDelegatedAccount) GetTokenAccountAccount() *ag_solanago.AccountMeta

GetTokenAccountAccount gets the "tokenAccount" account.

func (*ThawDelegatedAccount) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (ThawDelegatedAccount) MarshalWithEncoder

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

func (*ThawDelegatedAccount) SetDelegateAccount

func (inst *ThawDelegatedAccount) SetDelegateAccount(delegate ag_solanago.PublicKey) *ThawDelegatedAccount

SetDelegateAccount sets the "delegate" account.

func (*ThawDelegatedAccount) SetEditionAccount

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

SetEditionAccount sets the "edition" account.

func (*ThawDelegatedAccount) SetMintAccount

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

SetMintAccount sets the "mint" account.

func (*ThawDelegatedAccount) SetTokenAccountAccount

func (inst *ThawDelegatedAccount) SetTokenAccountAccount(tokenAccount ag_solanago.PublicKey) *ThawDelegatedAccount

SetTokenAccountAccount sets the "tokenAccount" account.

func (*ThawDelegatedAccount) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account.

func (*ThawDelegatedAccount) UnmarshalWithDecoder

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

func (*ThawDelegatedAccount) Validate

func (inst *ThawDelegatedAccount) Validate() error

func (ThawDelegatedAccount) ValidateAndBuild

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

type TokenStandard ag_binary.BorshEnum
const (
	TokenStandardNonFungible TokenStandard = iota
	TokenStandardFungibleAsset
	TokenStandardFungible
	TokenStandardNonFungibleEdition
)

func (TokenStandard) String

func (value TokenStandard) String() string

type UnverifyCollection

type UnverifyCollection struct {

	// [0] = [WRITE] metadata
	//
	// [1] = [SIGNER] collectionAuthority
	//
	// [2] = [] collectionMint
	//
	// [3] = [] collection
	//
	// [4] = [] collectionMasterEditionAccount
	//
	// [5] = [] collectionAuthorityRecord
	ag_solanago.AccountMetaSlice `bin:"-"`
}

UnverifyCollection is the `UnverifyCollection` instruction.

func NewUnverifyCollectionInstruction

func NewUnverifyCollectionInstruction(

	metadata ag_solanago.PublicKey,
	collectionAuthority ag_solanago.PublicKey,
	collectionMint ag_solanago.PublicKey,
	collection ag_solanago.PublicKey,
	collectionMasterEditionAccount ag_solanago.PublicKey,
	collectionAuthorityRecord ag_solanago.PublicKey) *UnverifyCollection

NewUnverifyCollectionInstruction declares a new UnverifyCollection instruction with the provided parameters and accounts.

func NewUnverifyCollectionInstructionBuilder

func NewUnverifyCollectionInstructionBuilder() *UnverifyCollection

NewUnverifyCollectionInstructionBuilder creates a new `UnverifyCollection` instruction builder.

func (UnverifyCollection) Build

func (inst UnverifyCollection) Build() *Instruction

func (*UnverifyCollection) EncodeToTree

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

func (*UnverifyCollection) GetCollectionAccount

func (inst *UnverifyCollection) GetCollectionAccount() *ag_solanago.AccountMeta

GetCollectionAccount gets the "collection" account.

func (*UnverifyCollection) GetCollectionAuthorityAccount

func (inst *UnverifyCollection) GetCollectionAuthorityAccount() *ag_solanago.AccountMeta

GetCollectionAuthorityAccount gets the "collectionAuthority" account.

func (*UnverifyCollection) GetCollectionAuthorityRecordAccount

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

GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" account.

func (*UnverifyCollection) GetCollectionMasterEditionAccountAccount

func (inst *UnverifyCollection) GetCollectionMasterEditionAccountAccount() *ag_solanago.AccountMeta

GetCollectionMasterEditionAccountAccount gets the "collectionMasterEditionAccount" account.

func (*UnverifyCollection) GetCollectionMintAccount

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

GetCollectionMintAccount gets the "collectionMint" account.

func (*UnverifyCollection) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (UnverifyCollection) MarshalWithEncoder

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

func (*UnverifyCollection) SetCollectionAccount

func (inst *UnverifyCollection) SetCollectionAccount(collection ag_solanago.PublicKey) *UnverifyCollection

SetCollectionAccount sets the "collection" account.

func (*UnverifyCollection) SetCollectionAuthorityAccount

func (inst *UnverifyCollection) SetCollectionAuthorityAccount(collectionAuthority ag_solanago.PublicKey) *UnverifyCollection

SetCollectionAuthorityAccount sets the "collectionAuthority" account.

func (*UnverifyCollection) SetCollectionAuthorityRecordAccount

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

SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" account.

func (*UnverifyCollection) SetCollectionMasterEditionAccountAccount

func (inst *UnverifyCollection) SetCollectionMasterEditionAccountAccount(collectionMasterEditionAccount ag_solanago.PublicKey) *UnverifyCollection

SetCollectionMasterEditionAccountAccount sets the "collectionMasterEditionAccount" account.

func (*UnverifyCollection) SetCollectionMintAccount

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

SetCollectionMintAccount sets the "collectionMint" account.

func (*UnverifyCollection) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account.

func (*UnverifyCollection) UnmarshalWithDecoder

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

func (*UnverifyCollection) Validate

func (inst *UnverifyCollection) Validate() error

func (UnverifyCollection) ValidateAndBuild

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

type UpdateMetadataAccount struct {
	UpdateMetadataAccountArgs *UpdateMetadataAccountArgs

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

UpdateMetadataAccount is the `UpdateMetadataAccount` instruction.

func NewUpdateMetadataAccountInstruction

func NewUpdateMetadataAccountInstruction(

	updateMetadataAccountArgs UpdateMetadataAccountArgs,

	metadata ag_solanago.PublicKey,
	updateAuthority ag_solanago.PublicKey) *UpdateMetadataAccount

NewUpdateMetadataAccountInstruction declares a new UpdateMetadataAccount instruction with the provided parameters and accounts.

func NewUpdateMetadataAccountInstructionBuilder

func NewUpdateMetadataAccountInstructionBuilder() *UpdateMetadataAccount

NewUpdateMetadataAccountInstructionBuilder creates a new `UpdateMetadataAccount` instruction builder.

func (UpdateMetadataAccount) Build

func (inst UpdateMetadataAccount) Build() *Instruction

func (*UpdateMetadataAccount) EncodeToTree

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

func (*UpdateMetadataAccount) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*UpdateMetadataAccount) GetUpdateAuthorityAccount

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

GetUpdateAuthorityAccount gets the "updateAuthority" account.

func (UpdateMetadataAccount) MarshalWithEncoder

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

func (*UpdateMetadataAccount) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account.

func (*UpdateMetadataAccount) SetUpdateAuthorityAccount

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

SetUpdateAuthorityAccount sets the "updateAuthority" account.

func (*UpdateMetadataAccount) SetUpdateMetadataAccountArgs

func (inst *UpdateMetadataAccount) SetUpdateMetadataAccountArgs(updateMetadataAccountArgs UpdateMetadataAccountArgs) *UpdateMetadataAccount

SetUpdateMetadataAccountArgs sets the "updateMetadataAccountArgs" parameter.

func (*UpdateMetadataAccount) UnmarshalWithDecoder

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

func (*UpdateMetadataAccount) Validate

func (inst *UpdateMetadataAccount) Validate() error

func (UpdateMetadataAccount) ValidateAndBuild

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

type UpdateMetadataAccountArgs struct {
	Data                *Data                  `bin:"optional"`
	UpdateAuthority     *ag_solanago.PublicKey `bin:"optional"`
	PrimarySaleHappened *bool                  `bin:"optional"`
}

func (UpdateMetadataAccountArgs) MarshalWithEncoder

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

func (*UpdateMetadataAccountArgs) UnmarshalWithDecoder

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

type UpdateMetadataAccountArgsV2

type UpdateMetadataAccountArgsV2 struct {
	Data                *DataV2                `bin:"optional"`
	UpdateAuthority     *ag_solanago.PublicKey `bin:"optional"`
	PrimarySaleHappened *bool                  `bin:"optional"`
	IsMutable           *bool                  `bin:"optional"`
}

func (UpdateMetadataAccountArgsV2) MarshalWithEncoder

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

func (*UpdateMetadataAccountArgsV2) UnmarshalWithDecoder

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

type UpdateMetadataAccountV2

type UpdateMetadataAccountV2 struct {
	UpdateMetadataAccountArgsV2 *UpdateMetadataAccountArgsV2

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

UpdateMetadataAccountV2 is the `UpdateMetadataAccountV2` instruction.

func NewUpdateMetadataAccountV2Instruction

func NewUpdateMetadataAccountV2Instruction(

	updateMetadataAccountArgsV2 UpdateMetadataAccountArgsV2,

	metadata ag_solanago.PublicKey,
	updateAuthority ag_solanago.PublicKey) *UpdateMetadataAccountV2

NewUpdateMetadataAccountV2Instruction declares a new UpdateMetadataAccountV2 instruction with the provided parameters and accounts.

func NewUpdateMetadataAccountV2InstructionBuilder

func NewUpdateMetadataAccountV2InstructionBuilder() *UpdateMetadataAccountV2

NewUpdateMetadataAccountV2InstructionBuilder creates a new `UpdateMetadataAccountV2` instruction builder.

func (UpdateMetadataAccountV2) Build

func (inst UpdateMetadataAccountV2) Build() *Instruction

func (*UpdateMetadataAccountV2) EncodeToTree

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

func (*UpdateMetadataAccountV2) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*UpdateMetadataAccountV2) GetUpdateAuthorityAccount

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

GetUpdateAuthorityAccount gets the "updateAuthority" account.

func (UpdateMetadataAccountV2) MarshalWithEncoder

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

func (*UpdateMetadataAccountV2) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account.

func (*UpdateMetadataAccountV2) SetUpdateAuthorityAccount

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

SetUpdateAuthorityAccount sets the "updateAuthority" account.

func (*UpdateMetadataAccountV2) SetUpdateMetadataAccountArgsV2

func (inst *UpdateMetadataAccountV2) SetUpdateMetadataAccountArgsV2(updateMetadataAccountArgsV2 UpdateMetadataAccountArgsV2) *UpdateMetadataAccountV2

SetUpdateMetadataAccountArgsV2 sets the "updateMetadataAccountArgsV2" parameter.

func (*UpdateMetadataAccountV2) UnmarshalWithDecoder

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

func (*UpdateMetadataAccountV2) Validate

func (inst *UpdateMetadataAccountV2) Validate() error

func (UpdateMetadataAccountV2) ValidateAndBuild

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

type UpdatePrimarySaleHappenedViaToken struct {

	// [0] = [WRITE] metadata
	//
	// [1] = [SIGNER] owner
	//
	// [2] = [] token
	ag_solanago.AccountMetaSlice `bin:"-"`
}

UpdatePrimarySaleHappenedViaToken is the `UpdatePrimarySaleHappenedViaToken` instruction.

func NewUpdatePrimarySaleHappenedViaTokenInstruction

func NewUpdatePrimarySaleHappenedViaTokenInstruction(

	metadata ag_solanago.PublicKey,
	owner ag_solanago.PublicKey,
	token ag_solanago.PublicKey) *UpdatePrimarySaleHappenedViaToken

NewUpdatePrimarySaleHappenedViaTokenInstruction declares a new UpdatePrimarySaleHappenedViaToken instruction with the provided parameters and accounts.

func NewUpdatePrimarySaleHappenedViaTokenInstructionBuilder

func NewUpdatePrimarySaleHappenedViaTokenInstructionBuilder() *UpdatePrimarySaleHappenedViaToken

NewUpdatePrimarySaleHappenedViaTokenInstructionBuilder creates a new `UpdatePrimarySaleHappenedViaToken` instruction builder.

func (UpdatePrimarySaleHappenedViaToken) Build

func (*UpdatePrimarySaleHappenedViaToken) EncodeToTree

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

func (*UpdatePrimarySaleHappenedViaToken) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*UpdatePrimarySaleHappenedViaToken) GetOwnerAccount

GetOwnerAccount gets the "owner" account.

func (*UpdatePrimarySaleHappenedViaToken) GetTokenAccount

GetTokenAccount gets the "token" account.

func (UpdatePrimarySaleHappenedViaToken) MarshalWithEncoder

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

func (*UpdatePrimarySaleHappenedViaToken) SetMetadataAccount

SetMetadataAccount sets the "metadata" account.

func (*UpdatePrimarySaleHappenedViaToken) SetOwnerAccount

SetOwnerAccount sets the "owner" account.

func (*UpdatePrimarySaleHappenedViaToken) SetTokenAccount

SetTokenAccount sets the "token" account.

func (*UpdatePrimarySaleHappenedViaToken) UnmarshalWithDecoder

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

func (*UpdatePrimarySaleHappenedViaToken) Validate

func (inst *UpdatePrimarySaleHappenedViaToken) Validate() error

func (UpdatePrimarySaleHappenedViaToken) ValidateAndBuild

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

type UseAuthorityRecord struct {
	Key         Key
	AllowedUses uint64
	Bump        uint8
}

func (UseAuthorityRecord) MarshalWithEncoder

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

func (*UseAuthorityRecord) UnmarshalWithDecoder

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

type UseMethod

type UseMethod ag_binary.BorshEnum
const (
	UseMethodBurn UseMethod = iota
	UseMethodMultiple
	UseMethodSingle
)

func (UseMethod) String

func (value UseMethod) String() string

type Uses

type Uses struct {
	UseMethod UseMethod
	Remaining uint64
	Total     uint64
}

func (Uses) MarshalWithEncoder

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

func (*Uses) UnmarshalWithDecoder

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

type Utilize

type Utilize struct {
	UtilizeArgs *UtilizeArgs

	// [0] = [WRITE] metadata
	//
	// [1] = [WRITE] tokenAccount
	//
	// [2] = [WRITE] mint
	//
	// [3] = [SIGNER] useAuthority
	//
	// [4] = [] owner
	//
	// [5] = [] tokenProgram
	//
	// [6] = [] ataProgram
	//
	// [7] = [] systemProgram
	//
	// [8] = [] rent
	//
	// [9] = [WRITE] useAuthorityRecord
	//
	// [10] = [] burner
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Utilize is the `Utilize` instruction.

func NewUtilizeInstruction

func NewUtilizeInstruction(

	utilizeArgs UtilizeArgs,

	metadata ag_solanago.PublicKey,
	tokenAccount ag_solanago.PublicKey,
	mint ag_solanago.PublicKey,
	useAuthority ag_solanago.PublicKey,
	owner ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	ataProgram ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey,
	useAuthorityRecord ag_solanago.PublicKey,
	burner ag_solanago.PublicKey) *Utilize

NewUtilizeInstruction declares a new Utilize instruction with the provided parameters and accounts.

func NewUtilizeInstructionBuilder

func NewUtilizeInstructionBuilder() *Utilize

NewUtilizeInstructionBuilder creates a new `Utilize` instruction builder.

func (Utilize) Build

func (inst Utilize) Build() *Instruction

func (*Utilize) EncodeToTree

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

func (*Utilize) GetAtaProgramAccount

func (inst *Utilize) GetAtaProgramAccount() *ag_solanago.AccountMeta

GetAtaProgramAccount gets the "ataProgram" account.

func (*Utilize) GetBurnerAccount

func (inst *Utilize) GetBurnerAccount() *ag_solanago.AccountMeta

GetBurnerAccount gets the "burner" account.

func (*Utilize) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*Utilize) GetMintAccount

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

GetMintAccount gets the "mint" account.

func (*Utilize) GetOwnerAccount

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

GetOwnerAccount gets the "owner" account.

func (*Utilize) GetRentAccount

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

GetRentAccount gets the "rent" account.

func (*Utilize) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" account.

func (*Utilize) GetTokenAccountAccount

func (inst *Utilize) GetTokenAccountAccount() *ag_solanago.AccountMeta

GetTokenAccountAccount gets the "tokenAccount" account.

func (*Utilize) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account.

func (*Utilize) GetUseAuthorityAccount

func (inst *Utilize) GetUseAuthorityAccount() *ag_solanago.AccountMeta

GetUseAuthorityAccount gets the "useAuthority" account.

func (*Utilize) GetUseAuthorityRecordAccount

func (inst *Utilize) GetUseAuthorityRecordAccount() *ag_solanago.AccountMeta

GetUseAuthorityRecordAccount gets the "useAuthorityRecord" account.

func (Utilize) MarshalWithEncoder

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

func (*Utilize) SetAtaProgramAccount

func (inst *Utilize) SetAtaProgramAccount(ataProgram ag_solanago.PublicKey) *Utilize

SetAtaProgramAccount sets the "ataProgram" account.

func (*Utilize) SetBurnerAccount

func (inst *Utilize) SetBurnerAccount(burner ag_solanago.PublicKey) *Utilize

SetBurnerAccount sets the "burner" account.

func (*Utilize) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account.

func (*Utilize) SetMintAccount

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

SetMintAccount sets the "mint" account.

func (*Utilize) SetOwnerAccount

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

SetOwnerAccount sets the "owner" account.

func (*Utilize) SetRentAccount

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

SetRentAccount sets the "rent" account.

func (*Utilize) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" account.

func (*Utilize) SetTokenAccountAccount

func (inst *Utilize) SetTokenAccountAccount(tokenAccount ag_solanago.PublicKey) *Utilize

SetTokenAccountAccount sets the "tokenAccount" account.

func (*Utilize) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account.

func (*Utilize) SetUseAuthorityAccount

func (inst *Utilize) SetUseAuthorityAccount(useAuthority ag_solanago.PublicKey) *Utilize

SetUseAuthorityAccount sets the "useAuthority" account.

func (*Utilize) SetUseAuthorityRecordAccount

func (inst *Utilize) SetUseAuthorityRecordAccount(useAuthorityRecord ag_solanago.PublicKey) *Utilize

SetUseAuthorityRecordAccount sets the "useAuthorityRecord" account.

func (*Utilize) SetUtilizeArgs

func (inst *Utilize) SetUtilizeArgs(utilizeArgs UtilizeArgs) *Utilize

SetUtilizeArgs sets the "utilizeArgs" parameter.

func (*Utilize) UnmarshalWithDecoder

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

func (*Utilize) Validate

func (inst *Utilize) Validate() error

func (Utilize) ValidateAndBuild

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

type UtilizeArgs struct {
	NumberOfUses uint64
}

func (UtilizeArgs) MarshalWithEncoder

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

func (*UtilizeArgs) UnmarshalWithDecoder

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

type VerifyCollection

type VerifyCollection struct {

	// [0] = [WRITE] metadata
	//
	// [1] = [SIGNER] collectionAuthority
	//
	// [2] = [SIGNER] payer
	//
	// [3] = [] collectionMint
	//
	// [4] = [] collection
	//
	// [5] = [] collectionMasterEditionAccount
	ag_solanago.AccountMetaSlice `bin:"-"`
}

VerifyCollection is the `VerifyCollection` instruction.

func NewVerifyCollectionInstruction

func NewVerifyCollectionInstruction(

	metadata ag_solanago.PublicKey,
	collectionAuthority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	collectionMint ag_solanago.PublicKey,
	collection ag_solanago.PublicKey,
	collectionMasterEditionAccount ag_solanago.PublicKey) *VerifyCollection

NewVerifyCollectionInstruction declares a new VerifyCollection instruction with the provided parameters and accounts.

func NewVerifyCollectionInstructionBuilder

func NewVerifyCollectionInstructionBuilder() *VerifyCollection

NewVerifyCollectionInstructionBuilder creates a new `VerifyCollection` instruction builder.

func (VerifyCollection) Build

func (inst VerifyCollection) Build() *Instruction

func (*VerifyCollection) EncodeToTree

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

func (*VerifyCollection) GetCollectionAccount

func (inst *VerifyCollection) GetCollectionAccount() *ag_solanago.AccountMeta

GetCollectionAccount gets the "collection" account.

func (*VerifyCollection) GetCollectionAuthorityAccount

func (inst *VerifyCollection) GetCollectionAuthorityAccount() *ag_solanago.AccountMeta

GetCollectionAuthorityAccount gets the "collectionAuthority" account.

func (*VerifyCollection) GetCollectionMasterEditionAccountAccount

func (inst *VerifyCollection) GetCollectionMasterEditionAccountAccount() *ag_solanago.AccountMeta

GetCollectionMasterEditionAccountAccount gets the "collectionMasterEditionAccount" account.

func (*VerifyCollection) GetCollectionMintAccount

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

GetCollectionMintAccount gets the "collectionMint" account.

func (*VerifyCollection) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account.

func (*VerifyCollection) GetPayerAccount

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

GetPayerAccount gets the "payer" account.

func (VerifyCollection) MarshalWithEncoder

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

func (*VerifyCollection) SetCollectionAccount

func (inst *VerifyCollection) SetCollectionAccount(collection ag_solanago.PublicKey) *VerifyCollection

SetCollectionAccount sets the "collection" account.

func (*VerifyCollection) SetCollectionAuthorityAccount

func (inst *VerifyCollection) SetCollectionAuthorityAccount(collectionAuthority ag_solanago.PublicKey) *VerifyCollection

SetCollectionAuthorityAccount sets the "collectionAuthority" account.

func (*VerifyCollection) SetCollectionMasterEditionAccountAccount

func (inst *VerifyCollection) SetCollectionMasterEditionAccountAccount(collectionMasterEditionAccount ag_solanago.PublicKey) *VerifyCollection

SetCollectionMasterEditionAccountAccount sets the "collectionMasterEditionAccount" account.

func (*VerifyCollection) SetCollectionMintAccount

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

SetCollectionMintAccount sets the "collectionMint" account.

func (*VerifyCollection) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account.

func (*VerifyCollection) SetPayerAccount

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

SetPayerAccount sets the "payer" account.

func (*VerifyCollection) UnmarshalWithDecoder

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

func (*VerifyCollection) Validate

func (inst *VerifyCollection) Validate() error

func (VerifyCollection) ValidateAndBuild

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