mpl_token_metadata

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: MIT Imports: 11 Imported by: 0

README

Metaplex Token Metadata

Documentation

Index

Constants

View Source
const APPROVE_USE_AUTHORITY_ARGS_SIZE = 8
View Source
const COLLECTION_AUTHORITY_RECORD_SIZE = 35
View Source
const COLLECTION_SIZE = 33
View Source
const CREATE_MASTER_EDITION_ARGS_SIZE = 9
View Source
const CREATOR_SIZE = 34
View Source
const EDITION_SIZE = 41
View Source
const MASTER_EDITION_V1_SIZE = 82
View Source
const MASTER_EDITION_V2_SIZE = 18
View Source
const METADATA_DELEGATE_RECORD_SIZE = 98
View Source
const MINT_NEW_EDITION_FROM_MASTER_EDITION_VIA_TOKEN_ARGS_SIZE = 8
View Source
const ProgramName = "mpl_token_metadata"
View Source
const RESERVATION_LIST_V1_SIZE = 76
View Source
const RESERVATION_LIST_V2_SIZE = 106
View Source
const RESERVATION_SIZE = 48
View Source
const RESERVATION_V1_SIZE = 34
View Source
const SET_COLLECTION_SIZE_ARGS_SIZE = 8
View Source
const TOKEN_RECORD_SIZE = 80
View Source
const TRANSFER_OUT_OF_ESCROW_ARGS_SIZE = 8
View Source
const USES_SIZE = 17
View Source
const USE_AUTHORITY_RECORD_SIZE = 10
View Source
const UTILIZE_ARGS_SIZE = 8

Variables

View Source
var (
	Instruction_CreateMetadataAccount                                     uint8 = 0
	Instruction_UpdateMetadataAccount                                     uint8 = 1
	Instruction_DeprecatedCreateMasterEdition                             uint8 = 2
	Instruction_DeprecatedMintNewEditionFromMasterEditionViaPrintingToken uint8 = 3
	Instruction_UpdatePrimarySaleHappenedViaToken                         uint8 = 4
	Instruction_DeprecatedSetReservationList                              uint8 = 5
	Instruction_DeprecatedCreateReservationList                           uint8 = 6
	Instruction_SignMetadata                                              uint8 = 7
	Instruction_DeprecatedMintPrintingTokensViaToken                      uint8 = 8
	Instruction_DeprecatedMintPrintingTokens                              uint8 = 9
	Instruction_CreateMasterEdition                                       uint8 = 10
	Instruction_MintNewEditionFromMasterEditionViaToken                   uint8 = 11
	Instruction_ConvertMasterEditionV1ToV2                                uint8 = 12
	Instruction_MintNewEditionFromMasterEditionViaVaultProxy              uint8 = 13
	Instruction_PuffMetadata                                              uint8 = 14
	Instruction_UpdateMetadataAccountV2                                   uint8 = 15
	Instruction_CreateMetadataAccountV2                                   uint8 = 16
	Instruction_CreateMasterEditionV3                                     uint8 = 17
	Instruction_VerifyCollection                                          uint8 = 18
	Instruction_Utilize                                                   uint8 = 19
	Instruction_ApproveUseAuthority                                       uint8 = 20
	Instruction_RevokeUseAuthority                                        uint8 = 21
	Instruction_UnverifyCollection                                        uint8 = 22
	Instruction_ApproveCollectionAuthority                                uint8 = 23
	Instruction_RevokeCollectionAuthority                                 uint8 = 24
	Instruction_SetAndVerifyCollection                                    uint8 = 25
	Instruction_FreezeDelegatedAccount                                    uint8 = 26
	Instruction_ThawDelegatedAccount                                      uint8 = 27
	Instruction_RemoveCreatorVerification                                 uint8 = 28
	Instruction_BurnNft                                                   uint8 = 29
	Instruction_VerifySizedCollectionItem                                 uint8 = 30
	Instruction_UnverifySizedCollectionItem                               uint8 = 31
	Instruction_SetAndVerifySizedCollectionItem                           uint8 = 32
	Instruction_CreateMetadataAccountV3                                   uint8 = 33
	Instruction_SetCollectionSize                                         uint8 = 34
	Instruction_SetTokenStandard                                          uint8 = 35
	Instruction_BubblegumSetCollectionSize                                uint8 = 36
	Instruction_BurnEditionNft                                            uint8 = 37
	Instruction_CreateEscrowAccount                                       uint8 = 38
	Instruction_CloseEscrowAccount                                        uint8 = 39
	Instruction_TransferOutOfEscrow                                       uint8 = 40
	Instruction_Burn                                                      uint8 = 41
	Instruction_Create                                                    uint8 = 42
	Instruction_Mint                                                      uint8 = 43
	Instruction_Delegate                                                  uint8 = 44
	Instruction_Revoke                                                    uint8 = 45
	Instruction_Lock                                                      uint8 = 46
	Instruction_Unlock                                                    uint8 = 47
	Instruction_Migrate                                                   uint8 = 48
	Instruction_Transfer                                                  uint8 = 49
	Instruction_Update                                                    uint8 = 50
	Instruction_Use                                                       uint8 = 51
	Instruction_Verify                                                    uint8 = 52
	Instruction_Unverify                                                  uint8 = 53
	Instruction_Collect                                                   uint8 = 54
	Instruction_Print                                                     uint8 = 55
)
View Source
var InstructionImplDef = binary.NewVariantDefinition(binary.Uint8TypeIDEncoding, []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),
	},
	{
		"burn_nft", (*BurnNft)(nil),
	},
	{
		"verify_sized_collection_item", (*VerifySizedCollectionItem)(nil),
	},
	{
		"unverify_sized_collection_item", (*UnverifySizedCollectionItem)(nil),
	},
	{
		"set_and_verify_sized_collection_item", (*SetAndVerifySizedCollectionItem)(nil),
	},
	{
		"create_metadata_account_v3", (*CreateMetadataAccountV3)(nil),
	},
	{
		"set_collection_size", (*SetCollectionSize)(nil),
	},
	{
		"set_token_standard", (*SetTokenStandard)(nil),
	},
	{
		"bubblegum_set_collection_size", (*BubblegumSetCollectionSize)(nil),
	},
	{
		"burn_edition_nft", (*BurnEditionNft)(nil),
	},
	{
		"create_escrow_account", (*CreateEscrowAccount)(nil),
	},
	{
		"close_escrow_account", (*CloseEscrowAccount)(nil),
	},
	{
		"transfer_out_of_escrow", (*TransferOutOfEscrow)(nil),
	},
	{
		"burn", (*Burn)(nil),
	},
	{
		"create", (*Create)(nil),
	},
	{
		"mint", (*Mint)(nil),
	},
	{
		"delegate", (*Delegate)(nil),
	},
	{
		"revoke", (*Revoke)(nil),
	},
	{
		"lock", (*Lock)(nil),
	},
	{
		"unlock", (*Unlock)(nil),
	},
	{
		"migrate", (*Migrate)(nil),
	},
	{
		"transfer", (*Transfer)(nil),
	},
	{
		"update", (*Update)(nil),
	},
	{
		"use", (*Use)(nil),
	},
	{
		"verify", (*Verify)(nil),
	},
	{
		"unverify", (*Unverify)(nil),
	},
	{
		"collect", (*Collect)(nil),
	},
	{
		"print", (*Print)(nil),
	},
})
View Source
var ProgramID common.PublicKey = common.MustPublicKeyFromBase58("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")

Functions

func FindAssociatedAddress

func FindAssociatedAddress(
	mint web3.PublicKey,
) (web3.PublicKey, error)

func FindAssociatedAddressAndBumpSeed

func FindAssociatedAddressAndBumpSeed(
	mint web3.PublicKey,
) (web3.PublicKey, uint8, error)

func InstructionIDToName

func InstructionIDToName(id uint8) string

InstructionIDToName returns the name of the instruction given its ID.

func SetProgramID

func SetProgramID(pubkey common.PublicKey)

Types

type AddressNotInReservationError

type AddressNotInReservationError struct{}

AddressNotInReservationError Error: 53 “

func (AddressNotInReservationError) Code

func (AddressNotInReservationError) Error

type AlreadyInitializedError

type AlreadyInitializedError struct{}

AlreadyInitializedError Error: 3 `Already initialized`

func (AlreadyInitializedError) Code

func (e AlreadyInitializedError) Code() int

func (AlreadyInitializedError) Error

func (e AlreadyInitializedError) Error() string

type AlreadyUnverifiedError

type AlreadyUnverifiedError struct{}

AlreadyUnverifiedError Error: 115 “

func (AlreadyUnverifiedError) Code

func (e AlreadyUnverifiedError) Code() int

func (AlreadyUnverifiedError) Error

func (e AlreadyUnverifiedError) Error() string

type AlreadyVerifiedError

type AlreadyVerifiedError struct{}

AlreadyVerifiedError Error: 114 `Item is already verified.`

func (AlreadyVerifiedError) Code

func (e AlreadyVerifiedError) Code() int

func (AlreadyVerifiedError) Error

func (e AlreadyVerifiedError) Error() string

type AmountMustBeGreaterThanZeroError

type AmountMustBeGreaterThanZeroError struct{}

AmountMustBeGreaterThanZeroError Error: 168 `Amount must be greater than zero`

func (AmountMustBeGreaterThanZeroError) Code

func (AmountMustBeGreaterThanZeroError) Error

type ApproveCollectionAuthority

type ApproveCollectionAuthority struct {
	// [0] = [WRITE] collectionAuthorityRecord `Collection Authority Record PDA`
	// [1] = [] newCollectionAuthority `A Collection Authority`
	// [2] = [WRITE, SIGNER] updateAuthority `Update Authority of Collection NFT`
	// [3] = [WRITE, SIGNER] payer `Payer`
	// [4] = [] metadata `Collection Metadata account`
	// [5] = [] mint `Mint of Collection Metadata`
	// [6] = [] systemProgram `System program`
	// [7] = [] rent `Rent info`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

ApproveCollectionAuthority Instruction

func NewApproveCollectionAuthorityInstruction

func NewApproveCollectionAuthorityInstruction(
	collectionAuthorityRecord common.PublicKey,
	newCollectionAuthority common.PublicKey,
	updateAuthority common.PublicKey,
	payer common.PublicKey,
	metadata common.PublicKey,
	mint common.PublicKey,
	systemProgram common.PublicKey,
	rent common.PublicKey,
) *ApproveCollectionAuthority

NewApproveCollectionAuthorityInstruction

Parameters:

collectionAuthorityRecord: Collection Authority Record PDA
newCollectionAuthority: A Collection Authority
updateAuthority: Update Authority of Collection NFT
payer: Payer
metadata: Collection Metadata account
mint: Mint of Collection Metadata
systemProgram: System program
rent: Rent info

func NewApproveCollectionAuthorityInstructionBuilder

func NewApproveCollectionAuthorityInstructionBuilder() *ApproveCollectionAuthority

NewApproveCollectionAuthorityInstructionBuilder creates a new `ApproveCollectionAuthority` instruction builder.

func (*ApproveCollectionAuthority) Build

func (*ApproveCollectionAuthority) EncodeToTree

func (obj *ApproveCollectionAuthority) EncodeToTree(parent treeout.Branches)

func (*ApproveCollectionAuthority) GetCollectionAuthorityRecordAccount

func (obj *ApproveCollectionAuthority) GetCollectionAuthorityRecordAccount() *common.AccountMeta

GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA

func (*ApproveCollectionAuthority) GetMetadataAccount

func (obj *ApproveCollectionAuthority) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Collection Metadata account

func (*ApproveCollectionAuthority) GetMintAccount

func (obj *ApproveCollectionAuthority) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Mint of Collection Metadata

func (*ApproveCollectionAuthority) GetNewCollectionAuthorityAccount

func (obj *ApproveCollectionAuthority) GetNewCollectionAuthorityAccount() *common.AccountMeta

GetNewCollectionAuthorityAccount gets the "newCollectionAuthority" parameter. A Collection Authority

func (*ApproveCollectionAuthority) GetPayerAccount

func (obj *ApproveCollectionAuthority) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. Payer

func (*ApproveCollectionAuthority) GetRentAccount

func (obj *ApproveCollectionAuthority) GetRentAccount() *common.AccountMeta

GetRentAccount gets the "rent" parameter. Rent info

func (*ApproveCollectionAuthority) GetSystemProgramAccount

func (obj *ApproveCollectionAuthority) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*ApproveCollectionAuthority) GetUpdateAuthorityAccount

func (obj *ApproveCollectionAuthority) GetUpdateAuthorityAccount() *common.AccountMeta

GetUpdateAuthorityAccount gets the "updateAuthority" parameter. Update Authority of Collection NFT

func (*ApproveCollectionAuthority) MarshalWithEncoder

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

func (*ApproveCollectionAuthority) SetCollectionAuthorityRecordAccount

func (obj *ApproveCollectionAuthority) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey) *ApproveCollectionAuthority

SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA

func (*ApproveCollectionAuthority) SetMetadataAccount

func (obj *ApproveCollectionAuthority) SetMetadataAccount(metadata common.PublicKey) *ApproveCollectionAuthority

SetMetadataAccount sets the "metadata" parameter. Collection Metadata account

func (*ApproveCollectionAuthority) SetMintAccount

SetMintAccount sets the "mint" parameter. Mint of Collection Metadata

func (*ApproveCollectionAuthority) SetNewCollectionAuthorityAccount

func (obj *ApproveCollectionAuthority) SetNewCollectionAuthorityAccount(newCollectionAuthority common.PublicKey) *ApproveCollectionAuthority

SetNewCollectionAuthorityAccount sets the "newCollectionAuthority" parameter. A Collection Authority

func (*ApproveCollectionAuthority) SetPayerAccount

SetPayerAccount sets the "payer" parameter. Payer

func (*ApproveCollectionAuthority) SetProgramId

func (*ApproveCollectionAuthority) SetRentAccount

func (obj *ApproveCollectionAuthority) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *ApproveCollectionAuthority

SetRentAccount sets the "rent" parameter. Rent info

func (*ApproveCollectionAuthority) SetSystemProgramAccount

func (obj *ApproveCollectionAuthority) SetSystemProgramAccount(systemProgram common.PublicKey) *ApproveCollectionAuthority

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*ApproveCollectionAuthority) SetUpdateAuthorityAccount

func (obj *ApproveCollectionAuthority) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *ApproveCollectionAuthority

SetUpdateAuthorityAccount sets the "updateAuthority" parameter. Update Authority of Collection NFT

func (*ApproveCollectionAuthority) UnmarshalWithDecoder

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

func (*ApproveCollectionAuthority) Validate

func (obj *ApproveCollectionAuthority) Validate() error

func (*ApproveCollectionAuthority) ValidateAndBuild

func (obj *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 `Use Authority Record PDA`
	// [1] = [WRITE, SIGNER] owner `Owner`
	// [2] = [WRITE, SIGNER] payer `Payer`
	// [3] = [] user `A Use Authority`
	// [4] = [WRITE] ownerTokenAccount `Owned Token Account Of Mint`
	// [5] = [] metadata `Metadata account`
	// [6] = [] mint `Mint of Metadata`
	// [7] = [] burner `Program As Signer (Burner)`
	// [8] = [] tokenProgram `Token program`
	// [9] = [] systemProgram `System program`
	// [10] = [] rent `Rent info`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

ApproveUseAuthority Instruction

func NewApproveUseAuthorityInstruction

func NewApproveUseAuthorityInstruction(
	approveUseAuthorityArgs ApproveUseAuthorityArgs,
	useAuthorityRecord common.PublicKey,
	owner common.PublicKey,
	payer common.PublicKey,
	user common.PublicKey,
	ownerTokenAccount common.PublicKey,
	metadata common.PublicKey,
	mint common.PublicKey,
	burner common.PublicKey,
	tokenProgram common.PublicKey,
	systemProgram common.PublicKey,
	rent common.PublicKey,
) *ApproveUseAuthority

NewApproveUseAuthorityInstruction

Parameters:

approveUseAuthorityArgs:
useAuthorityRecord: Use Authority Record PDA
owner: Owner
payer: Payer
user: A Use Authority
ownerTokenAccount: Owned Token Account Of Mint
metadata: Metadata account
mint: Mint of Metadata
burner: Program As Signer (Burner)
tokenProgram: Token program
systemProgram: System program
rent: Rent info

func NewApproveUseAuthorityInstructionBuilder

func NewApproveUseAuthorityInstructionBuilder() *ApproveUseAuthority

NewApproveUseAuthorityInstructionBuilder creates a new `ApproveUseAuthority` instruction builder.

func (*ApproveUseAuthority) Build

func (obj *ApproveUseAuthority) Build() *Instruction

func (*ApproveUseAuthority) EncodeToTree

func (obj *ApproveUseAuthority) EncodeToTree(parent treeout.Branches)

func (*ApproveUseAuthority) GetBurnerAccount

func (obj *ApproveUseAuthority) GetBurnerAccount() *common.AccountMeta

GetBurnerAccount gets the "burner" parameter. Program As Signer (Burner)

func (*ApproveUseAuthority) GetMetadataAccount

func (obj *ApproveUseAuthority) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*ApproveUseAuthority) GetMintAccount

func (obj *ApproveUseAuthority) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Mint of Metadata

func (*ApproveUseAuthority) GetOwnerAccount

func (obj *ApproveUseAuthority) GetOwnerAccount() *common.AccountMeta

GetOwnerAccount gets the "owner" parameter. Owner

func (*ApproveUseAuthority) GetOwnerTokenAccountAccount

func (obj *ApproveUseAuthority) GetOwnerTokenAccountAccount() *common.AccountMeta

GetOwnerTokenAccountAccount gets the "ownerTokenAccount" parameter. Owned Token Account Of Mint

func (*ApproveUseAuthority) GetPayerAccount

func (obj *ApproveUseAuthority) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. Payer

func (*ApproveUseAuthority) GetRentAccount

func (obj *ApproveUseAuthority) GetRentAccount() *common.AccountMeta

GetRentAccount gets the "rent" parameter. Rent info

func (*ApproveUseAuthority) GetSystemProgramAccount

func (obj *ApproveUseAuthority) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*ApproveUseAuthority) GetTokenProgramAccount

func (obj *ApproveUseAuthority) GetTokenProgramAccount() *common.AccountMeta

GetTokenProgramAccount gets the "tokenProgram" parameter. Token program

func (*ApproveUseAuthority) GetUseAuthorityRecordAccount

func (obj *ApproveUseAuthority) GetUseAuthorityRecordAccount() *common.AccountMeta

GetUseAuthorityRecordAccount gets the "useAuthorityRecord" parameter. Use Authority Record PDA

func (*ApproveUseAuthority) GetUserAccount

func (obj *ApproveUseAuthority) GetUserAccount() *common.AccountMeta

GetUserAccount gets the "user" parameter. A Use Authority

func (*ApproveUseAuthority) MarshalWithEncoder

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

func (*ApproveUseAuthority) SetApproveUseAuthorityArgs

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

SetApproveUseAuthorityArgs sets the "approveUseAuthorityArgs" parameter.

func (*ApproveUseAuthority) SetBurnerAccount

func (obj *ApproveUseAuthority) SetBurnerAccount(burner common.PublicKey) *ApproveUseAuthority

SetBurnerAccount sets the "burner" parameter. Program As Signer (Burner)

func (*ApproveUseAuthority) SetMetadataAccount

func (obj *ApproveUseAuthority) SetMetadataAccount(metadata common.PublicKey) *ApproveUseAuthority

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*ApproveUseAuthority) SetMintAccount

func (obj *ApproveUseAuthority) SetMintAccount(mint common.PublicKey) *ApproveUseAuthority

SetMintAccount sets the "mint" parameter. Mint of Metadata

func (*ApproveUseAuthority) SetOwnerAccount

func (obj *ApproveUseAuthority) SetOwnerAccount(owner common.PublicKey) *ApproveUseAuthority

SetOwnerAccount sets the "owner" parameter. Owner

func (*ApproveUseAuthority) SetOwnerTokenAccountAccount

func (obj *ApproveUseAuthority) SetOwnerTokenAccountAccount(ownerTokenAccount common.PublicKey) *ApproveUseAuthority

SetOwnerTokenAccountAccount sets the "ownerTokenAccount" parameter. Owned Token Account Of Mint

func (*ApproveUseAuthority) SetPayerAccount

func (obj *ApproveUseAuthority) SetPayerAccount(payer common.PublicKey) *ApproveUseAuthority

SetPayerAccount sets the "payer" parameter. Payer

func (*ApproveUseAuthority) SetProgramId

func (obj *ApproveUseAuthority) SetProgramId(programId *common.PublicKey) *ApproveUseAuthority

func (*ApproveUseAuthority) SetRentAccount

func (obj *ApproveUseAuthority) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *ApproveUseAuthority

SetRentAccount sets the "rent" parameter. Rent info

func (*ApproveUseAuthority) SetSystemProgramAccount

func (obj *ApproveUseAuthority) SetSystemProgramAccount(systemProgram common.PublicKey) *ApproveUseAuthority

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*ApproveUseAuthority) SetTokenProgramAccount

func (obj *ApproveUseAuthority) SetTokenProgramAccount(tokenProgram common.PublicKey) *ApproveUseAuthority

SetTokenProgramAccount sets the "tokenProgram" parameter. Token program

func (*ApproveUseAuthority) SetUseAuthorityRecordAccount

func (obj *ApproveUseAuthority) SetUseAuthorityRecordAccount(useAuthorityRecord common.PublicKey) *ApproveUseAuthority

SetUseAuthorityRecordAccount sets the "useAuthorityRecord" parameter. Use Authority Record PDA

func (*ApproveUseAuthority) SetUserAccount

func (obj *ApproveUseAuthority) SetUserAccount(user common.PublicKey) *ApproveUseAuthority

SetUserAccount sets the "user" parameter. A Use Authority

func (*ApproveUseAuthority) UnmarshalWithDecoder

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

func (*ApproveUseAuthority) Validate

func (obj *ApproveUseAuthority) Validate() error

func (*ApproveUseAuthority) ValidateAndBuild

func (obj *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
}

ApproveUseAuthorityArgs Struct

func (*ApproveUseAuthorityArgs) MarshalWithEncoder

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

func (*ApproveUseAuthorityArgs) UnmarshalWithDecoder

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

type AssetData

type AssetData struct {
	Name                 string
	Symbol               string
	Uri                  string
	SellerFeeBasisPoints uint16
	Creators             []Creator `bin:"optional"`
	PrimarySaleHappened  bool
	IsMutable            bool
	TokenStandard        TokenStandard
	Collection           *Collection        `bin:"optional"`
	Uses                 *Uses              `bin:"optional"`
	CollectionDetails    *CollectionDetails `bin:"optional"`
	RuleSet              *common.PublicKey  `bin:"optional"`
}

AssetData Struct

func (*AssetData) MarshalWithEncoder

func (obj *AssetData) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*AssetData) UnmarshalWithDecoder

func (obj *AssetData) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type AuthorityType

type AuthorityType binary.BorshEnum

AuthorityType Enum

const (
	AuthorityTypeNone AuthorityType = iota
	AuthorityTypeMetadata
	AuthorityTypeHolder
	AuthorityTypeMetadataDelegate
	AuthorityTypeTokenDelegate
)

func (AuthorityType) String

func (value AuthorityType) String() string

type AuthorizationData

type AuthorizationData struct {
	Payload Payload
}

AuthorizationData Struct

func (*AuthorizationData) MarshalWithEncoder

func (obj *AuthorizationData) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*AuthorizationData) UnmarshalWithDecoder

func (obj *AuthorizationData) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type AuthorizationTokenAccountOwnerMismatchError

type AuthorizationTokenAccountOwnerMismatchError struct{}

AuthorizationTokenAccountOwnerMismatchError Error: 34 “

func (AuthorizationTokenAccountOwnerMismatchError) Code

func (AuthorizationTokenAccountOwnerMismatchError) Error

type BeyondAlottedAddressSizeError

type BeyondAlottedAddressSizeError struct{}

BeyondAlottedAddressSizeError Error: 64 “

func (BeyondAlottedAddressSizeError) Code

func (BeyondAlottedAddressSizeError) Error

type BeyondMaxAddressSizeError

type BeyondMaxAddressSizeError struct{}

BeyondMaxAddressSizeError Error: 50 “

func (BeyondMaxAddressSizeError) Code

func (e BeyondMaxAddressSizeError) Code() int

func (BeyondMaxAddressSizeError) Error

type BorshDeserializationError

type BorshDeserializationError struct{}

BorshDeserializationError Error: 111 “

func (BorshDeserializationError) Code

func (e BorshDeserializationError) Code() int

func (BorshDeserializationError) Error

type BorshSerializationError

type BorshSerializationError struct{}

BorshSerializationError Error: 129 `Borsh Serialization Error`

func (BorshSerializationError) Code

func (e BorshSerializationError) Code() int

func (BorshSerializationError) Error

func (e BorshSerializationError) Error() string

type BubblegumSetCollectionSize

type BubblegumSetCollectionSize struct {
	SetCollectionSizeArgs *SetCollectionSizeArgs
	// [0] = [WRITE] collectionMetadata `Collection Metadata account`
	// [1] = [SIGNER] collectionAuthority `Collection Update authority`
	// [2] = [] collectionMint `Mint of the Collection`
	// [3] = [SIGNER] bubblegumSigner `Signing PDA of Bubblegum program`
	// [4] = [] collectionAuthorityRecord `Collection Authority Record PDA`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

BubblegumSetCollectionSize Instruction

func NewBubblegumSetCollectionSizeInstruction

func NewBubblegumSetCollectionSizeInstruction(
	setCollectionSizeArgs SetCollectionSizeArgs,
	collectionMetadata common.PublicKey,
	collectionAuthority common.PublicKey,
	collectionMint common.PublicKey,
	bubblegumSigner common.PublicKey,
	collectionAuthorityRecord common.PublicKey,
) *BubblegumSetCollectionSize

NewBubblegumSetCollectionSizeInstruction

Parameters:

setCollectionSizeArgs:
collectionMetadata: Collection Metadata account
collectionAuthority: Collection Update authority
collectionMint: Mint of the Collection
bubblegumSigner: Signing PDA of Bubblegum program
collectionAuthorityRecord: Collection Authority Record PDA

func NewBubblegumSetCollectionSizeInstructionBuilder

func NewBubblegumSetCollectionSizeInstructionBuilder() *BubblegumSetCollectionSize

NewBubblegumSetCollectionSizeInstructionBuilder creates a new `BubblegumSetCollectionSize` instruction builder.

func (*BubblegumSetCollectionSize) Build

func (*BubblegumSetCollectionSize) EncodeToTree

func (obj *BubblegumSetCollectionSize) EncodeToTree(parent treeout.Branches)

func (*BubblegumSetCollectionSize) GetBubblegumSignerAccount

func (obj *BubblegumSetCollectionSize) GetBubblegumSignerAccount() *common.AccountMeta

GetBubblegumSignerAccount gets the "bubblegumSigner" parameter. Signing PDA of Bubblegum program

func (*BubblegumSetCollectionSize) GetCollectionAuthorityAccount

func (obj *BubblegumSetCollectionSize) GetCollectionAuthorityAccount() *common.AccountMeta

GetCollectionAuthorityAccount gets the "collectionAuthority" parameter. Collection Update authority

func (*BubblegumSetCollectionSize) GetCollectionAuthorityRecordAccount

func (obj *BubblegumSetCollectionSize) GetCollectionAuthorityRecordAccount() *common.AccountMeta

GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA

func (*BubblegumSetCollectionSize) GetCollectionMetadataAccount

func (obj *BubblegumSetCollectionSize) GetCollectionMetadataAccount() *common.AccountMeta

GetCollectionMetadataAccount gets the "collectionMetadata" parameter. Collection Metadata account

func (*BubblegumSetCollectionSize) GetCollectionMintAccount

func (obj *BubblegumSetCollectionSize) GetCollectionMintAccount() *common.AccountMeta

GetCollectionMintAccount gets the "collectionMint" parameter. Mint of the Collection

func (*BubblegumSetCollectionSize) MarshalWithEncoder

func (obj *BubblegumSetCollectionSize) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*BubblegumSetCollectionSize) SetBubblegumSignerAccount

func (obj *BubblegumSetCollectionSize) SetBubblegumSignerAccount(bubblegumSigner common.PublicKey) *BubblegumSetCollectionSize

SetBubblegumSignerAccount sets the "bubblegumSigner" parameter. Signing PDA of Bubblegum program

func (*BubblegumSetCollectionSize) SetCollectionAuthorityAccount

func (obj *BubblegumSetCollectionSize) SetCollectionAuthorityAccount(collectionAuthority common.PublicKey) *BubblegumSetCollectionSize

SetCollectionAuthorityAccount sets the "collectionAuthority" parameter. Collection Update authority

func (*BubblegumSetCollectionSize) SetCollectionAuthorityRecordAccount

func (obj *BubblegumSetCollectionSize) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey, multiSigners ...common.PublicKey) *BubblegumSetCollectionSize

SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA

func (*BubblegumSetCollectionSize) SetCollectionMetadataAccount

func (obj *BubblegumSetCollectionSize) SetCollectionMetadataAccount(collectionMetadata common.PublicKey) *BubblegumSetCollectionSize

SetCollectionMetadataAccount sets the "collectionMetadata" parameter. Collection Metadata account

func (*BubblegumSetCollectionSize) SetCollectionMintAccount

func (obj *BubblegumSetCollectionSize) SetCollectionMintAccount(collectionMint common.PublicKey) *BubblegumSetCollectionSize

SetCollectionMintAccount sets the "collectionMint" parameter. Mint of the Collection

func (*BubblegumSetCollectionSize) SetProgramId

func (*BubblegumSetCollectionSize) SetSetCollectionSizeArgs

func (obj *BubblegumSetCollectionSize) SetSetCollectionSizeArgs(setCollectionSizeArgs SetCollectionSizeArgs) *BubblegumSetCollectionSize

SetSetCollectionSizeArgs sets the "setCollectionSizeArgs" parameter.

func (*BubblegumSetCollectionSize) UnmarshalWithDecoder

func (obj *BubblegumSetCollectionSize) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

func (*BubblegumSetCollectionSize) Validate

func (obj *BubblegumSetCollectionSize) Validate() error

func (*BubblegumSetCollectionSize) ValidateAndBuild

func (obj *BubblegumSetCollectionSize) 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 Burn

type Burn struct {
	BurnArgs *BurnArgs
	// [0] = [WRITE, SIGNER] authority `Asset owner or Utility delegate`
	// [1] = [WRITE] collectionMetadata `Metadata of the Collection`
	// [2] = [WRITE] metadata `Metadata (pda of ['metadata', program id, mint id])`
	// [3] = [WRITE] edition `Edition of the asset`
	// [4] = [WRITE] mint `Mint of token asset`
	// [5] = [WRITE] token `Token account to close`
	// [6] = [WRITE] masterEdition `Master edition account`
	// [7] = [] masterEditionMint `Master edition mint of the asset`
	// [8] = [] masterEditionToken `Master edition token account`
	// [9] = [WRITE] editionMarker `Edition marker account`
	// [10] = [WRITE] tokenRecord `Token record account`
	// [11] = [] systemProgram `System program`
	// [12] = [] sysvarInstructions `Instructions sysvar account`
	// [13] = [] splTokenProgram `SPL Token Program`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

Burn Instruction

func NewBurnInstruction

func NewBurnInstruction(
	burnArgs BurnArgs,
	authority common.PublicKey,
	collectionMetadata common.PublicKey,
	metadata common.PublicKey,
	edition common.PublicKey,
	mint common.PublicKey,
	token common.PublicKey,
	masterEdition common.PublicKey,
	masterEditionMint common.PublicKey,
	masterEditionToken common.PublicKey,
	editionMarker common.PublicKey,
	tokenRecord common.PublicKey,
	systemProgram common.PublicKey,
	sysvarInstructions common.PublicKey,
	splTokenProgram common.PublicKey,
) *Burn

NewBurnInstruction

Parameters:

burnArgs:
authority: Asset owner or Utility delegate
collectionMetadata: Metadata of the Collection
metadata: Metadata (pda of ['metadata', program id, mint id])
edition: Edition of the asset
mint: Mint of token asset
token: Token account to close
masterEdition: Master edition account
masterEditionMint: Master edition mint of the asset
masterEditionToken: Master edition token account
editionMarker: Edition marker account
tokenRecord: Token record account
systemProgram: System program
sysvarInstructions: Instructions sysvar account
splTokenProgram: SPL Token Program

func NewBurnInstructionBuilder

func NewBurnInstructionBuilder() *Burn

NewBurnInstructionBuilder creates a new `Burn` instruction builder.

func (*Burn) Build

func (obj *Burn) Build() *Instruction

func (*Burn) EncodeToTree

func (obj *Burn) EncodeToTree(parent treeout.Branches)

func (*Burn) GetAuthorityAccount

func (obj *Burn) GetAuthorityAccount() *common.AccountMeta

GetAuthorityAccount gets the "authority" parameter. Asset owner or Utility delegate

func (*Burn) GetCollectionMetadataAccount

func (obj *Burn) GetCollectionMetadataAccount() *common.AccountMeta

GetCollectionMetadataAccount gets the "collectionMetadata" parameter. Metadata of the Collection

func (*Burn) GetEditionAccount

func (obj *Burn) GetEditionAccount() *common.AccountMeta

GetEditionAccount gets the "edition" parameter. Edition of the asset

func (*Burn) GetEditionMarkerAccount

func (obj *Burn) GetEditionMarkerAccount() *common.AccountMeta

GetEditionMarkerAccount gets the "editionMarker" parameter. Edition marker account

func (*Burn) GetMasterEditionAccount

func (obj *Burn) GetMasterEditionAccount() *common.AccountMeta

GetMasterEditionAccount gets the "masterEdition" parameter. Master edition account

func (*Burn) GetMasterEditionMintAccount

func (obj *Burn) GetMasterEditionMintAccount() *common.AccountMeta

GetMasterEditionMintAccount gets the "masterEditionMint" parameter. Master edition mint of the asset

func (*Burn) GetMasterEditionTokenAccount

func (obj *Burn) GetMasterEditionTokenAccount() *common.AccountMeta

GetMasterEditionTokenAccount gets the "masterEditionToken" parameter. Master edition token account

func (*Burn) GetMetadataAccount

func (obj *Burn) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata (pda of ['metadata', program id, mint id])

func (*Burn) GetMintAccount

func (obj *Burn) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Mint of token asset

func (*Burn) GetSplTokenProgramAccount

func (obj *Burn) GetSplTokenProgramAccount() *common.AccountMeta

GetSplTokenProgramAccount gets the "splTokenProgram" parameter. SPL Token Program

func (*Burn) GetSystemProgramAccount

func (obj *Burn) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*Burn) GetSysvarInstructionsAccount

func (obj *Burn) GetSysvarInstructionsAccount() *common.AccountMeta

GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account

func (*Burn) GetTokenAccount

func (obj *Burn) GetTokenAccount() *common.AccountMeta

GetTokenAccount gets the "token" parameter. Token account to close

func (*Burn) GetTokenRecordAccount

func (obj *Burn) GetTokenRecordAccount() *common.AccountMeta

GetTokenRecordAccount gets the "tokenRecord" parameter. Token record account

func (*Burn) MarshalWithEncoder

func (obj *Burn) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*Burn) SetAuthorityAccount

func (obj *Burn) SetAuthorityAccount(authority common.PublicKey) *Burn

SetAuthorityAccount sets the "authority" parameter. Asset owner or Utility delegate

func (*Burn) SetBurnArgs

func (obj *Burn) SetBurnArgs(burnArgs BurnArgs) *Burn

SetBurnArgs sets the "burnArgs" parameter.

func (*Burn) SetCollectionMetadataAccount

func (obj *Burn) SetCollectionMetadataAccount(collectionMetadata common.PublicKey) *Burn

SetCollectionMetadataAccount sets the "collectionMetadata" parameter. Metadata of the Collection

func (*Burn) SetEditionAccount

func (obj *Burn) SetEditionAccount(edition common.PublicKey) *Burn

SetEditionAccount sets the "edition" parameter. Edition of the asset

func (*Burn) SetEditionMarkerAccount

func (obj *Burn) SetEditionMarkerAccount(editionMarker common.PublicKey) *Burn

SetEditionMarkerAccount sets the "editionMarker" parameter. Edition marker account

func (*Burn) SetMasterEditionAccount

func (obj *Burn) SetMasterEditionAccount(masterEdition common.PublicKey) *Burn

SetMasterEditionAccount sets the "masterEdition" parameter. Master edition account

func (*Burn) SetMasterEditionMintAccount

func (obj *Burn) SetMasterEditionMintAccount(masterEditionMint common.PublicKey) *Burn

SetMasterEditionMintAccount sets the "masterEditionMint" parameter. Master edition mint of the asset

func (*Burn) SetMasterEditionTokenAccount

func (obj *Burn) SetMasterEditionTokenAccount(masterEditionToken common.PublicKey) *Burn

SetMasterEditionTokenAccount sets the "masterEditionToken" parameter. Master edition token account

func (*Burn) SetMetadataAccount

func (obj *Burn) SetMetadataAccount(metadata common.PublicKey) *Burn

SetMetadataAccount sets the "metadata" parameter. Metadata (pda of ['metadata', program id, mint id])

func (*Burn) SetMintAccount

func (obj *Burn) SetMintAccount(mint common.PublicKey) *Burn

SetMintAccount sets the "mint" parameter. Mint of token asset

func (*Burn) SetProgramId

func (obj *Burn) SetProgramId(programId *common.PublicKey) *Burn

func (*Burn) SetSplTokenProgramAccount

func (obj *Burn) SetSplTokenProgramAccount(splTokenProgram common.PublicKey, multiSigners ...common.PublicKey) *Burn

SetSplTokenProgramAccount sets the "splTokenProgram" parameter. SPL Token Program

func (*Burn) SetSystemProgramAccount

func (obj *Burn) SetSystemProgramAccount(systemProgram common.PublicKey) *Burn

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*Burn) SetSysvarInstructionsAccount

func (obj *Burn) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *Burn

SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account

func (*Burn) SetTokenAccount

func (obj *Burn) SetTokenAccount(token common.PublicKey) *Burn

SetTokenAccount sets the "token" parameter. Token account to close

func (*Burn) SetTokenRecordAccount

func (obj *Burn) SetTokenRecordAccount(tokenRecord common.PublicKey) *Burn

SetTokenRecordAccount sets the "tokenRecord" parameter. Token record account

func (*Burn) UnmarshalWithDecoder

func (obj *Burn) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

func (*Burn) Validate

func (obj *Burn) Validate() error

func (*Burn) ValidateAndBuild

func (obj *Burn) 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 BurnArgs

type BurnArgs struct {
	V1 *BurnArgsV1 `bin:"optional"`
}

BurnArgs Enum

func NewBurnArgs_V1

func NewBurnArgs_V1(amount uint64) BurnArgs

func (*BurnArgs) AsV1

func (obj *BurnArgs) AsV1() BurnArgsV1

func (*BurnArgs) IsV1

func (obj *BurnArgs) IsV1() bool

func (*BurnArgs) MarshalWithEncoder

func (obj *BurnArgs) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*BurnArgs) String

func (obj *BurnArgs) String() string

func (*BurnArgs) UnmarshalWithDecoder

func (obj *BurnArgs) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type BurnArgsV1

type BurnArgsV1 struct {
	Amount uint64
}

func (*BurnArgsV1) MarshalWithEncoder

func (obj *BurnArgsV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*BurnArgsV1) UnmarshalWithDecoder

func (obj *BurnArgsV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type BurnEditionNft

type BurnEditionNft struct {
	// [0] = [WRITE] metadata `Metadata (pda of ['metadata', program id, mint id])`
	// [1] = [WRITE, SIGNER] owner `NFT owner`
	// [2] = [WRITE] printEditionMint `Mint of the print edition NFT`
	// [3] = [] masterEditionMint `Mint of the original/master NFT`
	// [4] = [WRITE] printEditionTokenAccount `Token account the print edition NFT is in`
	// [5] = [] masterEditionTokenAccount `Token account the Master Edition NFT is in`
	// [6] = [WRITE] masterEditionAccount `MasterEdition2 of the original NFT`
	// [7] = [WRITE] printEditionAccount `Print Edition account of the NFT`
	// [8] = [WRITE] editionMarkerAccount `Edition Marker PDA of the NFT`
	// [9] = [] splTokenProgram `SPL Token Program`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

BurnEditionNft Instruction

func NewBurnEditionNftInstruction

func NewBurnEditionNftInstruction(
	metadata common.PublicKey,
	owner common.PublicKey,
	printEditionMint common.PublicKey,
	masterEditionMint common.PublicKey,
	printEditionTokenAccount common.PublicKey,
	masterEditionTokenAccount common.PublicKey,
	masterEditionAccount common.PublicKey,
	printEditionAccount common.PublicKey,
	editionMarkerAccount common.PublicKey,
	splTokenProgram common.PublicKey,
) *BurnEditionNft

NewBurnEditionNftInstruction

Parameters:

metadata: Metadata (pda of ['metadata', program id, mint id])
owner: NFT owner
printEditionMint: Mint of the print edition NFT
masterEditionMint: Mint of the original/master NFT
printEditionTokenAccount: Token account the print edition NFT is in
masterEditionTokenAccount: Token account the Master Edition NFT is in
masterEditionAccount: MasterEdition2 of the original NFT
printEditionAccount: Print Edition account of the NFT
editionMarkerAccount: Edition Marker PDA of the NFT
splTokenProgram: SPL Token Program

func NewBurnEditionNftInstructionBuilder

func NewBurnEditionNftInstructionBuilder() *BurnEditionNft

NewBurnEditionNftInstructionBuilder creates a new `BurnEditionNft` instruction builder.

func (*BurnEditionNft) Build

func (obj *BurnEditionNft) Build() *Instruction

func (*BurnEditionNft) EncodeToTree

func (obj *BurnEditionNft) EncodeToTree(parent treeout.Branches)

func (*BurnEditionNft) GetEditionMarkerAccountAccount

func (obj *BurnEditionNft) GetEditionMarkerAccountAccount() *common.AccountMeta

GetEditionMarkerAccountAccount gets the "editionMarkerAccount" parameter. Edition Marker PDA of the NFT

func (*BurnEditionNft) GetMasterEditionAccountAccount

func (obj *BurnEditionNft) GetMasterEditionAccountAccount() *common.AccountMeta

GetMasterEditionAccountAccount gets the "masterEditionAccount" parameter. MasterEdition2 of the original NFT

func (*BurnEditionNft) GetMasterEditionMintAccount

func (obj *BurnEditionNft) GetMasterEditionMintAccount() *common.AccountMeta

GetMasterEditionMintAccount gets the "masterEditionMint" parameter. Mint of the original/master NFT

func (*BurnEditionNft) GetMasterEditionTokenAccountAccount

func (obj *BurnEditionNft) GetMasterEditionTokenAccountAccount() *common.AccountMeta

GetMasterEditionTokenAccountAccount gets the "masterEditionTokenAccount" parameter. Token account the Master Edition NFT is in

func (*BurnEditionNft) GetMetadataAccount

func (obj *BurnEditionNft) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata (pda of ['metadata', program id, mint id])

func (*BurnEditionNft) GetOwnerAccount

func (obj *BurnEditionNft) GetOwnerAccount() *common.AccountMeta

GetOwnerAccount gets the "owner" parameter. NFT owner

func (*BurnEditionNft) GetPrintEditionAccountAccount

func (obj *BurnEditionNft) GetPrintEditionAccountAccount() *common.AccountMeta

GetPrintEditionAccountAccount gets the "printEditionAccount" parameter. Print Edition account of the NFT

func (*BurnEditionNft) GetPrintEditionMintAccount

func (obj *BurnEditionNft) GetPrintEditionMintAccount() *common.AccountMeta

GetPrintEditionMintAccount gets the "printEditionMint" parameter. Mint of the print edition NFT

func (*BurnEditionNft) GetPrintEditionTokenAccountAccount

func (obj *BurnEditionNft) GetPrintEditionTokenAccountAccount() *common.AccountMeta

GetPrintEditionTokenAccountAccount gets the "printEditionTokenAccount" parameter. Token account the print edition NFT is in

func (*BurnEditionNft) GetSplTokenProgramAccount

func (obj *BurnEditionNft) GetSplTokenProgramAccount() *common.AccountMeta

GetSplTokenProgramAccount gets the "splTokenProgram" parameter. SPL Token Program

func (*BurnEditionNft) MarshalWithEncoder

func (obj *BurnEditionNft) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*BurnEditionNft) SetEditionMarkerAccountAccount

func (obj *BurnEditionNft) SetEditionMarkerAccountAccount(editionMarkerAccount common.PublicKey) *BurnEditionNft

SetEditionMarkerAccountAccount sets the "editionMarkerAccount" parameter. Edition Marker PDA of the NFT

func (*BurnEditionNft) SetMasterEditionAccountAccount

func (obj *BurnEditionNft) SetMasterEditionAccountAccount(masterEditionAccount common.PublicKey) *BurnEditionNft

SetMasterEditionAccountAccount sets the "masterEditionAccount" parameter. MasterEdition2 of the original NFT

func (*BurnEditionNft) SetMasterEditionMintAccount

func (obj *BurnEditionNft) SetMasterEditionMintAccount(masterEditionMint common.PublicKey) *BurnEditionNft

SetMasterEditionMintAccount sets the "masterEditionMint" parameter. Mint of the original/master NFT

func (*BurnEditionNft) SetMasterEditionTokenAccountAccount

func (obj *BurnEditionNft) SetMasterEditionTokenAccountAccount(masterEditionTokenAccount common.PublicKey) *BurnEditionNft

SetMasterEditionTokenAccountAccount sets the "masterEditionTokenAccount" parameter. Token account the Master Edition NFT is in

func (*BurnEditionNft) SetMetadataAccount

func (obj *BurnEditionNft) SetMetadataAccount(metadata common.PublicKey) *BurnEditionNft

SetMetadataAccount sets the "metadata" parameter. Metadata (pda of ['metadata', program id, mint id])

func (*BurnEditionNft) SetOwnerAccount

func (obj *BurnEditionNft) SetOwnerAccount(owner common.PublicKey) *BurnEditionNft

SetOwnerAccount sets the "owner" parameter. NFT owner

func (*BurnEditionNft) SetPrintEditionAccountAccount

func (obj *BurnEditionNft) SetPrintEditionAccountAccount(printEditionAccount common.PublicKey) *BurnEditionNft

SetPrintEditionAccountAccount sets the "printEditionAccount" parameter. Print Edition account of the NFT

func (*BurnEditionNft) SetPrintEditionMintAccount

func (obj *BurnEditionNft) SetPrintEditionMintAccount(printEditionMint common.PublicKey) *BurnEditionNft

SetPrintEditionMintAccount sets the "printEditionMint" parameter. Mint of the print edition NFT

func (*BurnEditionNft) SetPrintEditionTokenAccountAccount

func (obj *BurnEditionNft) SetPrintEditionTokenAccountAccount(printEditionTokenAccount common.PublicKey) *BurnEditionNft

SetPrintEditionTokenAccountAccount sets the "printEditionTokenAccount" parameter. Token account the print edition NFT is in

func (*BurnEditionNft) SetProgramId

func (obj *BurnEditionNft) SetProgramId(programId *common.PublicKey) *BurnEditionNft

func (*BurnEditionNft) SetSplTokenProgramAccount

func (obj *BurnEditionNft) SetSplTokenProgramAccount(splTokenProgram common.PublicKey, multiSigners ...common.PublicKey) *BurnEditionNft

SetSplTokenProgramAccount sets the "splTokenProgram" parameter. SPL Token Program

func (*BurnEditionNft) UnmarshalWithDecoder

func (obj *BurnEditionNft) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

func (*BurnEditionNft) Validate

func (obj *BurnEditionNft) Validate() error

func (*BurnEditionNft) ValidateAndBuild

func (obj *BurnEditionNft) 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 BurnNft

type BurnNft struct {
	// [0] = [WRITE] metadata `Metadata (pda of ['metadata', program id, mint id])`
	// [1] = [WRITE, SIGNER] owner `NFT owner`
	// [2] = [WRITE] mint `Mint of the NFT`
	// [3] = [WRITE] tokenAccount `Token account to close`
	// [4] = [WRITE] masterEditionAccount `MasterEdition2 of the NFT`
	// [5] = [] splTokenProgram `SPL Token Program`
	// [6] = [WRITE] collectionMetadata `Metadata of the Collection`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

BurnNft Instruction

func NewBurnNftInstruction

func NewBurnNftInstruction(
	metadata common.PublicKey,
	owner common.PublicKey,
	mint common.PublicKey,
	tokenAccount common.PublicKey,
	masterEditionAccount common.PublicKey,
	splTokenProgram common.PublicKey,
	collectionMetadata common.PublicKey,
) *BurnNft

NewBurnNftInstruction

Parameters:

metadata: Metadata (pda of ['metadata', program id, mint id])
owner: NFT owner
mint: Mint of the NFT
tokenAccount: Token account to close
masterEditionAccount: MasterEdition2 of the NFT
splTokenProgram: SPL Token Program
collectionMetadata: Metadata of the Collection

func NewBurnNftInstructionBuilder

func NewBurnNftInstructionBuilder() *BurnNft

NewBurnNftInstructionBuilder creates a new `BurnNft` instruction builder.

func (*BurnNft) Build

func (obj *BurnNft) Build() *Instruction

func (*BurnNft) EncodeToTree

func (obj *BurnNft) EncodeToTree(parent treeout.Branches)

func (*BurnNft) GetCollectionMetadataAccount

func (obj *BurnNft) GetCollectionMetadataAccount() *common.AccountMeta

GetCollectionMetadataAccount gets the "collectionMetadata" parameter. Metadata of the Collection

func (*BurnNft) GetMasterEditionAccountAccount

func (obj *BurnNft) GetMasterEditionAccountAccount() *common.AccountMeta

GetMasterEditionAccountAccount gets the "masterEditionAccount" parameter. MasterEdition2 of the NFT

func (*BurnNft) GetMetadataAccount

func (obj *BurnNft) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata (pda of ['metadata', program id, mint id])

func (*BurnNft) GetMintAccount

func (obj *BurnNft) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Mint of the NFT

func (*BurnNft) GetOwnerAccount

func (obj *BurnNft) GetOwnerAccount() *common.AccountMeta

GetOwnerAccount gets the "owner" parameter. NFT owner

func (*BurnNft) GetSplTokenProgramAccount

func (obj *BurnNft) GetSplTokenProgramAccount() *common.AccountMeta

GetSplTokenProgramAccount gets the "splTokenProgram" parameter. SPL Token Program

func (*BurnNft) GetTokenAccountAccount

func (obj *BurnNft) GetTokenAccountAccount() *common.AccountMeta

GetTokenAccountAccount gets the "tokenAccount" parameter. Token account to close

func (*BurnNft) MarshalWithEncoder

func (obj *BurnNft) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*BurnNft) SetCollectionMetadataAccount

func (obj *BurnNft) SetCollectionMetadataAccount(collectionMetadata common.PublicKey, multiSigners ...common.PublicKey) *BurnNft

SetCollectionMetadataAccount sets the "collectionMetadata" parameter. Metadata of the Collection

func (*BurnNft) SetMasterEditionAccountAccount

func (obj *BurnNft) SetMasterEditionAccountAccount(masterEditionAccount common.PublicKey) *BurnNft

SetMasterEditionAccountAccount sets the "masterEditionAccount" parameter. MasterEdition2 of the NFT

func (*BurnNft) SetMetadataAccount

func (obj *BurnNft) SetMetadataAccount(metadata common.PublicKey) *BurnNft

SetMetadataAccount sets the "metadata" parameter. Metadata (pda of ['metadata', program id, mint id])

func (*BurnNft) SetMintAccount

func (obj *BurnNft) SetMintAccount(mint common.PublicKey) *BurnNft

SetMintAccount sets the "mint" parameter. Mint of the NFT

func (*BurnNft) SetOwnerAccount

func (obj *BurnNft) SetOwnerAccount(owner common.PublicKey) *BurnNft

SetOwnerAccount sets the "owner" parameter. NFT owner

func (*BurnNft) SetProgramId

func (obj *BurnNft) SetProgramId(programId *common.PublicKey) *BurnNft

func (*BurnNft) SetSplTokenProgramAccount

func (obj *BurnNft) SetSplTokenProgramAccount(splTokenProgram common.PublicKey) *BurnNft

SetSplTokenProgramAccount sets the "splTokenProgram" parameter. SPL Token Program

func (*BurnNft) SetTokenAccountAccount

func (obj *BurnNft) SetTokenAccountAccount(tokenAccount common.PublicKey) *BurnNft

SetTokenAccountAccount sets the "tokenAccount" parameter. Token account to close

func (*BurnNft) UnmarshalWithDecoder

func (obj *BurnNft) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

func (*BurnNft) Validate

func (obj *BurnNft) Validate() error

func (*BurnNft) ValidateAndBuild

func (obj *BurnNft) 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 CannotAdjustVerifiedCreatorError

type CannotAdjustVerifiedCreatorError struct{}

CannotAdjustVerifiedCreatorError Error: 93 “

func (CannotAdjustVerifiedCreatorError) Code

func (CannotAdjustVerifiedCreatorError) Error

type CannotBurnWithDelegateError

type CannotBurnWithDelegateError struct{}

CannotBurnWithDelegateError Error: 178 `Cannot burn while persistent delegate is set`

func (CannotBurnWithDelegateError) Code

func (CannotBurnWithDelegateError) Error

type CannotChangeUpdateAuthorityWithDelegateError

type CannotChangeUpdateAuthorityWithDelegateError struct{}

CannotChangeUpdateAuthorityWithDelegateError Error: 193 `Cannot change the update authority with a delegate`

func (CannotChangeUpdateAuthorityWithDelegateError) Code

func (CannotChangeUpdateAuthorityWithDelegateError) Error

type CannotChangeUseMethodAfterFirstUseError

type CannotChangeUseMethodAfterFirstUseError struct{}

CannotChangeUseMethodAfterFirstUseError Error: 78 `Cannot Change Use Method after the first use`

func (CannotChangeUseMethodAfterFirstUseError) Code

func (CannotChangeUseMethodAfterFirstUseError) Error

type CannotChangeUsesAfterFirstUseError

type CannotChangeUsesAfterFirstUseError struct{}

CannotChangeUsesAfterFirstUseError Error: 79 `Cannot Change Remaining or Available uses after the first use`

func (CannotChangeUsesAfterFirstUseError) Code

func (CannotChangeUsesAfterFirstUseError) Error

type CannotRemoveVerifiedCreatorError

type CannotRemoveVerifiedCreatorError struct{}

CannotRemoveVerifiedCreatorError Error: 94 `Verified creators cannot be removed.`

func (CannotRemoveVerifiedCreatorError) Code

func (CannotRemoveVerifiedCreatorError) Error

type CannotUnverifyAnotherCreatorError

type CannotUnverifyAnotherCreatorError struct{}

CannotUnverifyAnotherCreatorError Error: 55 `You cannot unilaterally unverify another creator`

func (CannotUnverifyAnotherCreatorError) Code

func (CannotUnverifyAnotherCreatorError) Error

type CannotUpdateAssetWithDelegateError

type CannotUpdateAssetWithDelegateError struct{}

CannotUpdateAssetWithDelegateError Error: 173 `Cannot update the rule set of a programmable asset that has a delegate`

func (CannotUpdateAssetWithDelegateError) Code

func (CannotUpdateAssetWithDelegateError) Error

type CannotUpdateVerifiedCollectionError

type CannotUpdateVerifiedCollectionError struct{}

CannotUpdateVerifiedCollectionError Error: 112 `Cannot update a verified collection in this command`

func (CannotUpdateVerifiedCollectionError) Code

func (CannotUpdateVerifiedCollectionError) Error

type CannotVerifyAnotherCreatorError

type CannotVerifyAnotherCreatorError struct{}

CannotVerifyAnotherCreatorError Error: 54 `You cannot unilaterally verify another creator, they must sign`

func (CannotVerifyAnotherCreatorError) Code

func (CannotVerifyAnotherCreatorError) Error

type CannotWipeVerifiedCreatorsError

type CannotWipeVerifiedCreatorsError struct{}

CannotWipeVerifiedCreatorsError Error: 95 “

func (CannotWipeVerifiedCreatorsError) Code

func (CannotWipeVerifiedCreatorsError) Error

type CloseEscrowAccount

type CloseEscrowAccount struct {
	// [0] = [WRITE] escrow `Escrow account`
	// [1] = [WRITE] metadata `Metadata account`
	// [2] = [] mint `Mint account`
	// [3] = [] tokenAccount `Token account`
	// [4] = [] edition `Edition account`
	// [5] = [WRITE, SIGNER] payer `Wallet paying for the transaction and new account`
	// [6] = [] systemProgram `System program`
	// [7] = [] sysvarInstructions `Instructions sysvar account`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

CloseEscrowAccount Instruction

func NewCloseEscrowAccountInstruction

func NewCloseEscrowAccountInstruction(
	escrow common.PublicKey,
	metadata common.PublicKey,
	mint common.PublicKey,
	tokenAccount common.PublicKey,
	edition common.PublicKey,
	payer common.PublicKey,
	systemProgram common.PublicKey,
	sysvarInstructions common.PublicKey,
) *CloseEscrowAccount

NewCloseEscrowAccountInstruction

Parameters:

escrow: Escrow account
metadata: Metadata account
mint: Mint account
tokenAccount: Token account
edition: Edition account
payer: Wallet paying for the transaction and new account
systemProgram: System program
sysvarInstructions: Instructions sysvar account

func NewCloseEscrowAccountInstructionBuilder

func NewCloseEscrowAccountInstructionBuilder() *CloseEscrowAccount

NewCloseEscrowAccountInstructionBuilder creates a new `CloseEscrowAccount` instruction builder.

func (*CloseEscrowAccount) Build

func (obj *CloseEscrowAccount) Build() *Instruction

func (*CloseEscrowAccount) EncodeToTree

func (obj *CloseEscrowAccount) EncodeToTree(parent treeout.Branches)

func (*CloseEscrowAccount) GetEditionAccount

func (obj *CloseEscrowAccount) GetEditionAccount() *common.AccountMeta

GetEditionAccount gets the "edition" parameter. Edition account

func (*CloseEscrowAccount) GetEscrowAccount

func (obj *CloseEscrowAccount) GetEscrowAccount() *common.AccountMeta

GetEscrowAccount gets the "escrow" parameter. Escrow account

func (*CloseEscrowAccount) GetMetadataAccount

func (obj *CloseEscrowAccount) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*CloseEscrowAccount) GetMintAccount

func (obj *CloseEscrowAccount) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Mint account

func (*CloseEscrowAccount) GetPayerAccount

func (obj *CloseEscrowAccount) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. Wallet paying for the transaction and new account

func (*CloseEscrowAccount) GetSystemProgramAccount

func (obj *CloseEscrowAccount) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*CloseEscrowAccount) GetSysvarInstructionsAccount

func (obj *CloseEscrowAccount) GetSysvarInstructionsAccount() *common.AccountMeta

GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account

func (*CloseEscrowAccount) GetTokenAccountAccount

func (obj *CloseEscrowAccount) GetTokenAccountAccount() *common.AccountMeta

GetTokenAccountAccount gets the "tokenAccount" parameter. Token account

func (*CloseEscrowAccount) MarshalWithEncoder

func (obj *CloseEscrowAccount) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*CloseEscrowAccount) SetEditionAccount

func (obj *CloseEscrowAccount) SetEditionAccount(edition common.PublicKey) *CloseEscrowAccount

SetEditionAccount sets the "edition" parameter. Edition account

func (*CloseEscrowAccount) SetEscrowAccount

func (obj *CloseEscrowAccount) SetEscrowAccount(escrow common.PublicKey) *CloseEscrowAccount

SetEscrowAccount sets the "escrow" parameter. Escrow account

func (*CloseEscrowAccount) SetMetadataAccount

func (obj *CloseEscrowAccount) SetMetadataAccount(metadata common.PublicKey) *CloseEscrowAccount

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*CloseEscrowAccount) SetMintAccount

func (obj *CloseEscrowAccount) SetMintAccount(mint common.PublicKey) *CloseEscrowAccount

SetMintAccount sets the "mint" parameter. Mint account

func (*CloseEscrowAccount) SetPayerAccount

func (obj *CloseEscrowAccount) SetPayerAccount(payer common.PublicKey) *CloseEscrowAccount

SetPayerAccount sets the "payer" parameter. Wallet paying for the transaction and new account

func (*CloseEscrowAccount) SetProgramId

func (obj *CloseEscrowAccount) SetProgramId(programId *common.PublicKey) *CloseEscrowAccount

func (*CloseEscrowAccount) SetSystemProgramAccount

func (obj *CloseEscrowAccount) SetSystemProgramAccount(systemProgram common.PublicKey) *CloseEscrowAccount

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*CloseEscrowAccount) SetSysvarInstructionsAccount

func (obj *CloseEscrowAccount) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey, multiSigners ...common.PublicKey) *CloseEscrowAccount

SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account

func (*CloseEscrowAccount) SetTokenAccountAccount

func (obj *CloseEscrowAccount) SetTokenAccountAccount(tokenAccount common.PublicKey) *CloseEscrowAccount

SetTokenAccountAccount sets the "tokenAccount" parameter. Token account

func (*CloseEscrowAccount) UnmarshalWithDecoder

func (obj *CloseEscrowAccount) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

func (*CloseEscrowAccount) Validate

func (obj *CloseEscrowAccount) Validate() error

func (*CloseEscrowAccount) ValidateAndBuild

func (obj *CloseEscrowAccount) 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 Collect

type Collect struct {
	// [0] = [SIGNER] authority `Authority to collect fees`
	// [1] = [] recipient `The account to transfer collected fees to`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

Collect Instruction

func NewCollectInstruction

func NewCollectInstruction(
	authority common.PublicKey,
	recipient common.PublicKey,
) *Collect

NewCollectInstruction

Parameters:

authority: Authority to collect fees
recipient: The account to transfer collected fees to

func NewCollectInstructionBuilder

func NewCollectInstructionBuilder() *Collect

NewCollectInstructionBuilder creates a new `Collect` instruction builder.

func (*Collect) Build

func (obj *Collect) Build() *Instruction

func (*Collect) EncodeToTree

func (obj *Collect) EncodeToTree(parent treeout.Branches)

func (*Collect) GetAuthorityAccount

func (obj *Collect) GetAuthorityAccount() *common.AccountMeta

GetAuthorityAccount gets the "authority" parameter. Authority to collect fees

func (*Collect) GetRecipientAccount

func (obj *Collect) GetRecipientAccount() *common.AccountMeta

GetRecipientAccount gets the "recipient" parameter. The account to transfer collected fees to

func (*Collect) MarshalWithEncoder

func (obj *Collect) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*Collect) SetAuthorityAccount

func (obj *Collect) SetAuthorityAccount(authority common.PublicKey) *Collect

SetAuthorityAccount sets the "authority" parameter. Authority to collect fees

func (*Collect) SetProgramId

func (obj *Collect) SetProgramId(programId *common.PublicKey) *Collect

func (*Collect) SetRecipientAccount

func (obj *Collect) SetRecipientAccount(recipient common.PublicKey, multiSigners ...common.PublicKey) *Collect

SetRecipientAccount sets the "recipient" parameter. The account to transfer collected fees to

func (*Collect) UnmarshalWithDecoder

func (obj *Collect) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

func (*Collect) Validate

func (obj *Collect) Validate() error

func (*Collect) ValidateAndBuild

func (obj *Collect) 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 Collection

type Collection struct {
	Verified bool
	Key      common.PublicKey
}

Collection Struct

func (*Collection) MarshalWithEncoder

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

func (*Collection) UnmarshalWithDecoder

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

type CollectionAuthorityDoesNotExistError

type CollectionAuthorityDoesNotExistError struct{}

CollectionAuthorityDoesNotExistError Error: 88 `This Collection Authority Record Does Not Exist.`

func (CollectionAuthorityDoesNotExistError) Code

func (CollectionAuthorityDoesNotExistError) Error

type CollectionAuthorityRecord

type CollectionAuthorityRecord struct {
	Key             Key
	Bump            uint8
	UpdateAuthority *common.PublicKey `bin:"optional"`
}

CollectionAuthorityRecord Struct

func (*CollectionAuthorityRecord) MarshalWithEncoder

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

func (*CollectionAuthorityRecord) UnmarshalWithDecoder

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

type CollectionAuthorityRecordAlreadyExistsError

type CollectionAuthorityRecordAlreadyExistsError struct{}

CollectionAuthorityRecordAlreadyExistsError Error: 87 `This Collection Authority Record Already Exists.`

func (CollectionAuthorityRecordAlreadyExistsError) Code

func (CollectionAuthorityRecordAlreadyExistsError) Error

type CollectionCannotBeVerifiedInThisInstructionError

type CollectionCannotBeVerifiedInThisInstructionError struct{}

CollectionCannotBeVerifiedInThisInstructionError Error: 74 `Collection cannot be verified in this instruction`

func (CollectionCannotBeVerifiedInThisInstructionError) Code

func (CollectionCannotBeVerifiedInThisInstructionError) Error

type CollectionDetails

type CollectionDetails struct {
	V1 *CollectionDetailsV1 `bin:"optional"`
}

CollectionDetails Enum

func NewCollectionDetails_V1

func NewCollectionDetails_V1(size uint64) CollectionDetails

func (*CollectionDetails) AsV1

func (*CollectionDetails) IsV1

func (obj *CollectionDetails) IsV1() bool

func (*CollectionDetails) MarshalWithEncoder

func (obj *CollectionDetails) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*CollectionDetails) String

func (obj *CollectionDetails) String() string

func (*CollectionDetails) UnmarshalWithDecoder

func (obj *CollectionDetails) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type CollectionDetailsToggle

type CollectionDetailsToggle struct {
	None  *struct{}                   `bin:"optional"`
	Clear *struct{}                   `bin:"optional"`
	Set   *CollectionDetailsToggleSet `bin:"optional"`
}

CollectionDetailsToggle Enum

func NewCollectionDetailsToggle_Clear

func NewCollectionDetailsToggle_Clear() CollectionDetailsToggle

func NewCollectionDetailsToggle_None

func NewCollectionDetailsToggle_None() CollectionDetailsToggle

func NewCollectionDetailsToggle_Set

func NewCollectionDetailsToggle_Set(field0 CollectionDetails) CollectionDetailsToggle

func (*CollectionDetailsToggle) AsSet

func (*CollectionDetailsToggle) IsClear

func (obj *CollectionDetailsToggle) IsClear() bool

func (*CollectionDetailsToggle) IsNone

func (obj *CollectionDetailsToggle) IsNone() bool

func (*CollectionDetailsToggle) IsSet

func (obj *CollectionDetailsToggle) IsSet() bool

func (*CollectionDetailsToggle) MarshalWithEncoder

func (obj *CollectionDetailsToggle) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*CollectionDetailsToggle) String

func (obj *CollectionDetailsToggle) String() string

func (*CollectionDetailsToggle) UnmarshalWithDecoder

func (obj *CollectionDetailsToggle) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type CollectionDetailsToggleSet

type CollectionDetailsToggleSet struct {
	Field0 CollectionDetails
}

func (*CollectionDetailsToggleSet) MarshalWithEncoder

func (obj *CollectionDetailsToggleSet) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*CollectionDetailsToggleSet) UnmarshalWithDecoder

func (obj *CollectionDetailsToggleSet) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type CollectionDetailsV1

type CollectionDetailsV1 struct {
	Size uint64
}

func (*CollectionDetailsV1) MarshalWithEncoder

func (obj *CollectionDetailsV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*CollectionDetailsV1) UnmarshalWithDecoder

func (obj *CollectionDetailsV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type CollectionMasterEditionAccountInvalidError

type CollectionMasterEditionAccountInvalidError struct{}

CollectionMasterEditionAccountInvalidError Error: 113 `Edition account doesnt match collection `

func (CollectionMasterEditionAccountInvalidError) Code

func (CollectionMasterEditionAccountInvalidError) Error

type CollectionMustBeAUniqueMasterEditionError

type CollectionMustBeAUniqueMasterEditionError struct{}

CollectionMustBeAUniqueMasterEditionError Error: 82 `Collection Must Be a Unique Master Edition v2`

func (CollectionMustBeAUniqueMasterEditionError) Code

func (CollectionMustBeAUniqueMasterEditionError) Error

type CollectionNotFoundError

type CollectionNotFoundError struct{}

CollectionNotFoundError Error: 80 `Collection Not Found on Metadata`

func (CollectionNotFoundError) Code

func (e CollectionNotFoundError) Code() int

func (CollectionNotFoundError) Error

func (e CollectionNotFoundError) Error() string

type CollectionToggle

type CollectionToggle struct {
	None  *struct{}            `bin:"optional"`
	Clear *struct{}            `bin:"optional"`
	Set   *CollectionToggleSet `bin:"optional"`
}

CollectionToggle Enum

func NewCollectionToggle_Clear

func NewCollectionToggle_Clear() CollectionToggle

func NewCollectionToggle_None

func NewCollectionToggle_None() CollectionToggle

func NewCollectionToggle_Set

func NewCollectionToggle_Set(field0 Collection) CollectionToggle

func (*CollectionToggle) AsSet

func (*CollectionToggle) IsClear

func (obj *CollectionToggle) IsClear() bool

func (*CollectionToggle) IsNone

func (obj *CollectionToggle) IsNone() bool

func (*CollectionToggle) IsSet

func (obj *CollectionToggle) IsSet() bool

func (*CollectionToggle) MarshalWithEncoder

func (obj *CollectionToggle) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*CollectionToggle) String

func (obj *CollectionToggle) String() string

func (*CollectionToggle) UnmarshalWithDecoder

func (obj *CollectionToggle) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type CollectionToggleSet

type CollectionToggleSet struct {
	Field0 Collection
}

func (*CollectionToggleSet) MarshalWithEncoder

func (obj *CollectionToggleSet) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*CollectionToggleSet) UnmarshalWithDecoder

func (obj *CollectionToggleSet) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type ConvertMasterEditionV1ToV2

type ConvertMasterEditionV1ToV2 struct {
	// [0] = [WRITE] masterEdition `Master Record Edition V1 (pda of ['metadata', program id, master metadata mint id, 'edition'])`
	// [1] = [WRITE] oneTimeAuth `One time authorization mint`
	// [2] = [WRITE] printingMint `Printing mint`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

ConvertMasterEditionV1ToV2 Instruction

func NewConvertMasterEditionV1ToV2Instruction

func NewConvertMasterEditionV1ToV2Instruction(
	masterEdition common.PublicKey,
	oneTimeAuth common.PublicKey,
	printingMint common.PublicKey,
) *ConvertMasterEditionV1ToV2

NewConvertMasterEditionV1ToV2Instruction

Parameters:

masterEdition: Master Record Edition V1 (pda of ['metadata', program id, master metadata mint id, 'edition'])
oneTimeAuth: One time authorization mint
printingMint: Printing mint

func NewConvertMasterEditionV1ToV2InstructionBuilder

func NewConvertMasterEditionV1ToV2InstructionBuilder() *ConvertMasterEditionV1ToV2

NewConvertMasterEditionV1ToV2InstructionBuilder creates a new `ConvertMasterEditionV1ToV2` instruction builder.

func (*ConvertMasterEditionV1ToV2) Build

func (*ConvertMasterEditionV1ToV2) EncodeToTree

func (obj *ConvertMasterEditionV1ToV2) EncodeToTree(parent treeout.Branches)

func (*ConvertMasterEditionV1ToV2) GetMasterEditionAccount

func (obj *ConvertMasterEditionV1ToV2) GetMasterEditionAccount() *common.AccountMeta

GetMasterEditionAccount gets the "masterEdition" parameter. Master Record Edition V1 (pda of ['metadata', program id, master metadata mint id, 'edition'])

func (*ConvertMasterEditionV1ToV2) GetOneTimeAuthAccount

func (obj *ConvertMasterEditionV1ToV2) GetOneTimeAuthAccount() *common.AccountMeta

GetOneTimeAuthAccount gets the "oneTimeAuth" parameter. One time authorization mint

func (*ConvertMasterEditionV1ToV2) GetPrintingMintAccount

func (obj *ConvertMasterEditionV1ToV2) GetPrintingMintAccount() *common.AccountMeta

GetPrintingMintAccount gets the "printingMint" parameter. Printing mint

func (*ConvertMasterEditionV1ToV2) MarshalWithEncoder

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

func (*ConvertMasterEditionV1ToV2) SetMasterEditionAccount

func (obj *ConvertMasterEditionV1ToV2) SetMasterEditionAccount(masterEdition common.PublicKey) *ConvertMasterEditionV1ToV2

SetMasterEditionAccount sets the "masterEdition" parameter. Master Record Edition V1 (pda of ['metadata', program id, master metadata mint id, 'edition'])

func (*ConvertMasterEditionV1ToV2) SetOneTimeAuthAccount

func (obj *ConvertMasterEditionV1ToV2) SetOneTimeAuthAccount(oneTimeAuth common.PublicKey) *ConvertMasterEditionV1ToV2

SetOneTimeAuthAccount sets the "oneTimeAuth" parameter. One time authorization mint

func (*ConvertMasterEditionV1ToV2) SetPrintingMintAccount

func (obj *ConvertMasterEditionV1ToV2) SetPrintingMintAccount(printingMint common.PublicKey, multiSigners ...common.PublicKey) *ConvertMasterEditionV1ToV2

SetPrintingMintAccount sets the "printingMint" parameter. Printing mint

func (*ConvertMasterEditionV1ToV2) SetProgramId

func (*ConvertMasterEditionV1ToV2) UnmarshalWithDecoder

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

func (*ConvertMasterEditionV1ToV2) Validate

func (obj *ConvertMasterEditionV1ToV2) Validate() error

func (*ConvertMasterEditionV1ToV2) ValidateAndBuild

func (obj *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 CouldNotDetermineTokenStandardError

type CouldNotDetermineTokenStandardError struct{}

CouldNotDetermineTokenStandardError Error: 107 `Could not determine a TokenStandard type.`

func (CouldNotDetermineTokenStandardError) Code

func (CouldNotDetermineTokenStandardError) Error

type Create

type Create struct {
	CreateArgs *CreateArgs
	// [0] = [WRITE] metadata `Unallocated metadata account with address as pda of ['metadata', program id, mint id]`
	// [1] = [WRITE] masterEdition `Unallocated edition account with address as pda of ['metadata', program id, mint, 'edition']`
	// [2] = [WRITE] mint `Mint of token asset`
	// [3] = [SIGNER] authority `Mint authority`
	// [4] = [WRITE, SIGNER] payer `Payer`
	// [5] = [] updateAuthority `Update authority for the metadata account`
	// [6] = [] systemProgram `System program`
	// [7] = [] sysvarInstructions `Instructions sysvar account`
	// [8] = [] splTokenProgram `SPL Token program`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

Create Instruction

func NewCreateInstruction

func NewCreateInstruction(
	createArgs CreateArgs,
	metadata common.PublicKey,
	masterEdition common.PublicKey,
	mint common.PublicKey,
	authority common.PublicKey,
	payer common.PublicKey,
	updateAuthority common.PublicKey,
	systemProgram common.PublicKey,
	sysvarInstructions common.PublicKey,
	splTokenProgram common.PublicKey,
) *Create

NewCreateInstruction

Parameters:

createArgs:
metadata: Unallocated metadata account with address as pda of ['metadata', program id, mint id]
masterEdition: Unallocated edition account with address as pda of ['metadata', program id, mint, 'edition']
mint: Mint of token asset
authority: Mint authority
payer: Payer
updateAuthority: Update authority for the metadata account
systemProgram: System program
sysvarInstructions: Instructions sysvar account
splTokenProgram: SPL Token program

func NewCreateInstructionBuilder

func NewCreateInstructionBuilder() *Create

NewCreateInstructionBuilder creates a new `Create` instruction builder.

func (*Create) Build

func (obj *Create) Build() *Instruction

func (*Create) EncodeToTree

func (obj *Create) EncodeToTree(parent treeout.Branches)

func (*Create) GetAuthorityAccount

func (obj *Create) GetAuthorityAccount() *common.AccountMeta

GetAuthorityAccount gets the "authority" parameter. Mint authority

func (*Create) GetMasterEditionAccount

func (obj *Create) GetMasterEditionAccount() *common.AccountMeta

GetMasterEditionAccount gets the "masterEdition" parameter. Unallocated edition account with address as pda of ['metadata', program id, mint, 'edition']

func (*Create) GetMetadataAccount

func (obj *Create) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Unallocated metadata account with address as pda of ['metadata', program id, mint id]

func (*Create) GetMintAccount

func (obj *Create) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Mint of token asset

func (*Create) GetPayerAccount

func (obj *Create) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. Payer

func (*Create) GetSplTokenProgramAccount

func (obj *Create) GetSplTokenProgramAccount() *common.AccountMeta

GetSplTokenProgramAccount gets the "splTokenProgram" parameter. SPL Token program

func (*Create) GetSystemProgramAccount

func (obj *Create) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*Create) GetSysvarInstructionsAccount

func (obj *Create) GetSysvarInstructionsAccount() *common.AccountMeta

GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account

func (*Create) GetUpdateAuthorityAccount

func (obj *Create) GetUpdateAuthorityAccount() *common.AccountMeta

GetUpdateAuthorityAccount gets the "updateAuthority" parameter. Update authority for the metadata account

func (*Create) MarshalWithEncoder

func (obj *Create) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*Create) SetAuthorityAccount

func (obj *Create) SetAuthorityAccount(authority common.PublicKey) *Create

SetAuthorityAccount sets the "authority" parameter. Mint authority

func (*Create) SetCreateArgs

func (obj *Create) SetCreateArgs(createArgs CreateArgs) *Create

SetCreateArgs sets the "createArgs" parameter.

func (*Create) SetMasterEditionAccount

func (obj *Create) SetMasterEditionAccount(masterEdition common.PublicKey) *Create

SetMasterEditionAccount sets the "masterEdition" parameter. Unallocated edition account with address as pda of ['metadata', program id, mint, 'edition']

func (*Create) SetMetadataAccount

func (obj *Create) SetMetadataAccount(metadata common.PublicKey) *Create

SetMetadataAccount sets the "metadata" parameter. Unallocated metadata account with address as pda of ['metadata', program id, mint id]

func (*Create) SetMintAccount

func (obj *Create) SetMintAccount(mint common.PublicKey) *Create

SetMintAccount sets the "mint" parameter. Mint of token asset

func (*Create) SetPayerAccount

func (obj *Create) SetPayerAccount(payer common.PublicKey) *Create

SetPayerAccount sets the "payer" parameter. Payer

func (*Create) SetProgramId

func (obj *Create) SetProgramId(programId *common.PublicKey) *Create

func (*Create) SetSplTokenProgramAccount

func (obj *Create) SetSplTokenProgramAccount(splTokenProgram common.PublicKey, multiSigners ...common.PublicKey) *Create

SetSplTokenProgramAccount sets the "splTokenProgram" parameter. SPL Token program

func (*Create) SetSystemProgramAccount

func (obj *Create) SetSystemProgramAccount(systemProgram common.PublicKey) *Create

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*Create) SetSysvarInstructionsAccount

func (obj *Create) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *Create

SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account

func (*Create) SetUpdateAuthorityAccount

func (obj *Create) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *Create

SetUpdateAuthorityAccount sets the "updateAuthority" parameter. Update authority for the metadata account

func (*Create) UnmarshalWithDecoder

func (obj *Create) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

func (*Create) Validate

func (obj *Create) Validate() error

func (*Create) ValidateAndBuild

func (obj *Create) 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 CreateArgs

type CreateArgs struct {
	V1 *CreateArgsV1 `bin:"optional"`
}

CreateArgs Enum

func NewCreateArgs_V1

func NewCreateArgs_V1(assetData AssetData, decimals *uint8, printSupply *PrintSupply) CreateArgs

func (*CreateArgs) AsV1

func (obj *CreateArgs) AsV1() CreateArgsV1

func (*CreateArgs) IsV1

func (obj *CreateArgs) IsV1() bool

func (*CreateArgs) MarshalWithEncoder

func (obj *CreateArgs) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*CreateArgs) String

func (obj *CreateArgs) String() string

func (*CreateArgs) UnmarshalWithDecoder

func (obj *CreateArgs) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type CreateArgsV1

type CreateArgsV1 struct {
	AssetData   AssetData
	Decimals    *uint8       `bin:"optional"`
	PrintSupply *PrintSupply `bin:"optional"`
}

func (*CreateArgsV1) MarshalWithEncoder

func (obj *CreateArgsV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*CreateArgsV1) UnmarshalWithDecoder

func (obj *CreateArgsV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type CreateEscrowAccount

type CreateEscrowAccount struct {
	// [0] = [WRITE] escrow `Escrow account`
	// [1] = [WRITE] metadata `Metadata account`
	// [2] = [] mint `Mint account`
	// [3] = [] tokenAccount `Token account of the token`
	// [4] = [] edition `Edition account`
	// [5] = [WRITE, SIGNER] payer `Wallet paying for the transaction and new account`
	// [6] = [] systemProgram `System program`
	// [7] = [] sysvarInstructions `Instructions sysvar account`
	// [8] = [SIGNER] authority `Authority/creator of the escrow account`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

CreateEscrowAccount Instruction

func NewCreateEscrowAccountInstruction

func NewCreateEscrowAccountInstruction(
	escrow common.PublicKey,
	metadata common.PublicKey,
	mint common.PublicKey,
	tokenAccount common.PublicKey,
	edition common.PublicKey,
	payer common.PublicKey,
	systemProgram common.PublicKey,
	sysvarInstructions common.PublicKey,
	authority common.PublicKey,
) *CreateEscrowAccount

NewCreateEscrowAccountInstruction

Parameters:

escrow: Escrow account
metadata: Metadata account
mint: Mint account
tokenAccount: Token account of the token
edition: Edition account
payer: Wallet paying for the transaction and new account
systemProgram: System program
sysvarInstructions: Instructions sysvar account
authority: Authority/creator of the escrow account

func NewCreateEscrowAccountInstructionBuilder

func NewCreateEscrowAccountInstructionBuilder() *CreateEscrowAccount

NewCreateEscrowAccountInstructionBuilder creates a new `CreateEscrowAccount` instruction builder.

func (*CreateEscrowAccount) Build

func (obj *CreateEscrowAccount) Build() *Instruction

func (*CreateEscrowAccount) EncodeToTree

func (obj *CreateEscrowAccount) EncodeToTree(parent treeout.Branches)

func (*CreateEscrowAccount) GetAuthorityAccount

func (obj *CreateEscrowAccount) GetAuthorityAccount() *common.AccountMeta

GetAuthorityAccount gets the "authority" parameter. Authority/creator of the escrow account

func (*CreateEscrowAccount) GetEditionAccount

func (obj *CreateEscrowAccount) GetEditionAccount() *common.AccountMeta

GetEditionAccount gets the "edition" parameter. Edition account

func (*CreateEscrowAccount) GetEscrowAccount

func (obj *CreateEscrowAccount) GetEscrowAccount() *common.AccountMeta

GetEscrowAccount gets the "escrow" parameter. Escrow account

func (*CreateEscrowAccount) GetMetadataAccount

func (obj *CreateEscrowAccount) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*CreateEscrowAccount) GetMintAccount

func (obj *CreateEscrowAccount) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Mint account

func (*CreateEscrowAccount) GetPayerAccount

func (obj *CreateEscrowAccount) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. Wallet paying for the transaction and new account

func (*CreateEscrowAccount) GetSystemProgramAccount

func (obj *CreateEscrowAccount) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*CreateEscrowAccount) GetSysvarInstructionsAccount

func (obj *CreateEscrowAccount) GetSysvarInstructionsAccount() *common.AccountMeta

GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account

func (*CreateEscrowAccount) GetTokenAccountAccount

func (obj *CreateEscrowAccount) GetTokenAccountAccount() *common.AccountMeta

GetTokenAccountAccount gets the "tokenAccount" parameter. Token account of the token

func (*CreateEscrowAccount) MarshalWithEncoder

func (obj *CreateEscrowAccount) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*CreateEscrowAccount) SetAuthorityAccount

func (obj *CreateEscrowAccount) SetAuthorityAccount(authority common.PublicKey, multiSigners ...common.PublicKey) *CreateEscrowAccount

SetAuthorityAccount sets the "authority" parameter. Authority/creator of the escrow account

func (*CreateEscrowAccount) SetEditionAccount

func (obj *CreateEscrowAccount) SetEditionAccount(edition common.PublicKey) *CreateEscrowAccount

SetEditionAccount sets the "edition" parameter. Edition account

func (*CreateEscrowAccount) SetEscrowAccount

func (obj *CreateEscrowAccount) SetEscrowAccount(escrow common.PublicKey) *CreateEscrowAccount

SetEscrowAccount sets the "escrow" parameter. Escrow account

func (*CreateEscrowAccount) SetMetadataAccount

func (obj *CreateEscrowAccount) SetMetadataAccount(metadata common.PublicKey) *CreateEscrowAccount

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*CreateEscrowAccount) SetMintAccount

func (obj *CreateEscrowAccount) SetMintAccount(mint common.PublicKey) *CreateEscrowAccount

SetMintAccount sets the "mint" parameter. Mint account

func (*CreateEscrowAccount) SetPayerAccount

func (obj *CreateEscrowAccount) SetPayerAccount(payer common.PublicKey) *CreateEscrowAccount

SetPayerAccount sets the "payer" parameter. Wallet paying for the transaction and new account

func (*CreateEscrowAccount) SetProgramId

func (obj *CreateEscrowAccount) SetProgramId(programId *common.PublicKey) *CreateEscrowAccount

func (*CreateEscrowAccount) SetSystemProgramAccount

func (obj *CreateEscrowAccount) SetSystemProgramAccount(systemProgram common.PublicKey) *CreateEscrowAccount

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*CreateEscrowAccount) SetSysvarInstructionsAccount

func (obj *CreateEscrowAccount) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *CreateEscrowAccount

SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account

func (*CreateEscrowAccount) SetTokenAccountAccount

func (obj *CreateEscrowAccount) SetTokenAccountAccount(tokenAccount common.PublicKey) *CreateEscrowAccount

SetTokenAccountAccount sets the "tokenAccount" parameter. Token account of the token

func (*CreateEscrowAccount) UnmarshalWithDecoder

func (obj *CreateEscrowAccount) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

func (*CreateEscrowAccount) Validate

func (obj *CreateEscrowAccount) Validate() error

func (*CreateEscrowAccount) ValidateAndBuild

func (obj *CreateEscrowAccount) 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 {
	// [0] = [WRITE] edition `Unallocated edition V2 account with address as pda of ['metadata', program id, mint, 'edition']`
	// [1] = [WRITE] mint `Metadata mint`
	// [2] = [SIGNER] updateAuthority `Update authority`
	// [3] = [SIGNER] mintAuthority `Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY`
	// [4] = [WRITE, SIGNER] payer `payer`
	// [5] = [] metadata `Metadata account`
	// [6] = [] tokenProgram `Token program`
	// [7] = [] systemProgram `System program`
	// [8] = [] rent `Rent info`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

CreateMasterEdition Instruction

func NewCreateMasterEditionInstruction

func NewCreateMasterEditionInstruction(
	edition common.PublicKey,
	mint common.PublicKey,
	updateAuthority common.PublicKey,
	mintAuthority common.PublicKey,
	payer common.PublicKey,
	metadata common.PublicKey,
	tokenProgram common.PublicKey,
	systemProgram common.PublicKey,
	rent common.PublicKey,
) *CreateMasterEdition

NewCreateMasterEditionInstruction

Parameters:

edition: Unallocated edition V2 account with address as pda of ['metadata', program id, mint, 'edition']
mint: Metadata mint
updateAuthority: Update authority
mintAuthority: Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
payer: payer
metadata: Metadata account
tokenProgram: Token program
systemProgram: System program
rent: Rent info

func NewCreateMasterEditionInstructionBuilder

func NewCreateMasterEditionInstructionBuilder() *CreateMasterEdition

NewCreateMasterEditionInstructionBuilder creates a new `CreateMasterEdition` instruction builder.

func (*CreateMasterEdition) Build

func (obj *CreateMasterEdition) Build() *Instruction

func (*CreateMasterEdition) EncodeToTree

func (obj *CreateMasterEdition) EncodeToTree(parent treeout.Branches)

func (*CreateMasterEdition) GetEditionAccount

func (obj *CreateMasterEdition) GetEditionAccount() *common.AccountMeta

GetEditionAccount gets the "edition" parameter. Unallocated edition V2 account with address as pda of ['metadata', program id, mint, 'edition']

func (*CreateMasterEdition) GetMetadataAccount

func (obj *CreateMasterEdition) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*CreateMasterEdition) GetMintAccount

func (obj *CreateMasterEdition) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Metadata mint

func (*CreateMasterEdition) GetMintAuthorityAccount

func (obj *CreateMasterEdition) GetMintAuthorityAccount() *common.AccountMeta

GetMintAuthorityAccount gets the "mintAuthority" parameter. Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY

func (*CreateMasterEdition) GetPayerAccount

func (obj *CreateMasterEdition) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. payer

func (*CreateMasterEdition) GetRentAccount

func (obj *CreateMasterEdition) GetRentAccount() *common.AccountMeta

GetRentAccount gets the "rent" parameter. Rent info

func (*CreateMasterEdition) GetSystemProgramAccount

func (obj *CreateMasterEdition) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*CreateMasterEdition) GetTokenProgramAccount

func (obj *CreateMasterEdition) GetTokenProgramAccount() *common.AccountMeta

GetTokenProgramAccount gets the "tokenProgram" parameter. Token program

func (*CreateMasterEdition) GetUpdateAuthorityAccount

func (obj *CreateMasterEdition) GetUpdateAuthorityAccount() *common.AccountMeta

GetUpdateAuthorityAccount gets the "updateAuthority" parameter. Update authority

func (*CreateMasterEdition) MarshalWithEncoder

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

func (*CreateMasterEdition) SetEditionAccount

func (obj *CreateMasterEdition) SetEditionAccount(edition common.PublicKey) *CreateMasterEdition

SetEditionAccount sets the "edition" parameter. Unallocated edition V2 account with address as pda of ['metadata', program id, mint, 'edition']

func (*CreateMasterEdition) SetMetadataAccount

func (obj *CreateMasterEdition) SetMetadataAccount(metadata common.PublicKey) *CreateMasterEdition

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*CreateMasterEdition) SetMintAccount

func (obj *CreateMasterEdition) SetMintAccount(mint common.PublicKey) *CreateMasterEdition

SetMintAccount sets the "mint" parameter. Metadata mint

func (*CreateMasterEdition) SetMintAuthorityAccount

func (obj *CreateMasterEdition) SetMintAuthorityAccount(mintAuthority common.PublicKey) *CreateMasterEdition

SetMintAuthorityAccount sets the "mintAuthority" parameter. Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY

func (*CreateMasterEdition) SetPayerAccount

func (obj *CreateMasterEdition) SetPayerAccount(payer common.PublicKey) *CreateMasterEdition

SetPayerAccount sets the "payer" parameter. payer

func (*CreateMasterEdition) SetProgramId

func (obj *CreateMasterEdition) SetProgramId(programId *common.PublicKey) *CreateMasterEdition

func (*CreateMasterEdition) SetRentAccount

func (obj *CreateMasterEdition) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *CreateMasterEdition

SetRentAccount sets the "rent" parameter. Rent info

func (*CreateMasterEdition) SetSystemProgramAccount

func (obj *CreateMasterEdition) SetSystemProgramAccount(systemProgram common.PublicKey) *CreateMasterEdition

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*CreateMasterEdition) SetTokenProgramAccount

func (obj *CreateMasterEdition) SetTokenProgramAccount(tokenProgram common.PublicKey) *CreateMasterEdition

SetTokenProgramAccount sets the "tokenProgram" parameter. Token program

func (*CreateMasterEdition) SetUpdateAuthorityAccount

func (obj *CreateMasterEdition) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *CreateMasterEdition

SetUpdateAuthorityAccount sets the "updateAuthority" parameter. Update authority

func (*CreateMasterEdition) UnmarshalWithDecoder

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

func (*CreateMasterEdition) Validate

func (obj *CreateMasterEdition) Validate() error

func (*CreateMasterEdition) ValidateAndBuild

func (obj *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"`
}

CreateMasterEditionArgs Struct

func (*CreateMasterEditionArgs) MarshalWithEncoder

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

func (*CreateMasterEditionArgs) UnmarshalWithDecoder

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

type CreateMasterEditionV3

type CreateMasterEditionV3 struct {
	CreateMasterEditionArgs *CreateMasterEditionArgs
	// [0] = [WRITE] edition `Unallocated edition V2 account with address as pda of ['metadata', program id, mint, 'edition']`
	// [1] = [WRITE] mint `Metadata mint`
	// [2] = [SIGNER] updateAuthority `Update authority`
	// [3] = [SIGNER] mintAuthority `Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY`
	// [4] = [WRITE, SIGNER] payer `payer`
	// [5] = [WRITE] metadata `Metadata account`
	// [6] = [] tokenProgram `Token program`
	// [7] = [] systemProgram `System program`
	// [8] = [] rent `Rent info`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

CreateMasterEditionV3 Instruction

func NewCreateMasterEditionV3Instruction

func NewCreateMasterEditionV3Instruction(
	createMasterEditionArgs CreateMasterEditionArgs,
	edition common.PublicKey,
	mint common.PublicKey,
	updateAuthority common.PublicKey,
	mintAuthority common.PublicKey,
	payer common.PublicKey,
	metadata common.PublicKey,
	tokenProgram common.PublicKey,
	systemProgram common.PublicKey,
	rent common.PublicKey,
) *CreateMasterEditionV3

NewCreateMasterEditionV3Instruction

Parameters:

createMasterEditionArgs:
edition: Unallocated edition V2 account with address as pda of ['metadata', program id, mint, 'edition']
mint: Metadata mint
updateAuthority: Update authority
mintAuthority: Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
payer: payer
metadata: Metadata account
tokenProgram: Token program
systemProgram: System program
rent: Rent info

func NewCreateMasterEditionV3InstructionBuilder

func NewCreateMasterEditionV3InstructionBuilder() *CreateMasterEditionV3

NewCreateMasterEditionV3InstructionBuilder creates a new `CreateMasterEditionV3` instruction builder.

func (*CreateMasterEditionV3) Build

func (obj *CreateMasterEditionV3) Build() *Instruction

func (*CreateMasterEditionV3) EncodeToTree

func (obj *CreateMasterEditionV3) EncodeToTree(parent treeout.Branches)

func (*CreateMasterEditionV3) GetEditionAccount

func (obj *CreateMasterEditionV3) GetEditionAccount() *common.AccountMeta

GetEditionAccount gets the "edition" parameter. Unallocated edition V2 account with address as pda of ['metadata', program id, mint, 'edition']

func (*CreateMasterEditionV3) GetMetadataAccount

func (obj *CreateMasterEditionV3) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*CreateMasterEditionV3) GetMintAccount

func (obj *CreateMasterEditionV3) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Metadata mint

func (*CreateMasterEditionV3) GetMintAuthorityAccount

func (obj *CreateMasterEditionV3) GetMintAuthorityAccount() *common.AccountMeta

GetMintAuthorityAccount gets the "mintAuthority" parameter. Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY

func (*CreateMasterEditionV3) GetPayerAccount

func (obj *CreateMasterEditionV3) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. payer

func (*CreateMasterEditionV3) GetRentAccount

func (obj *CreateMasterEditionV3) GetRentAccount() *common.AccountMeta

GetRentAccount gets the "rent" parameter. Rent info

func (*CreateMasterEditionV3) GetSystemProgramAccount

func (obj *CreateMasterEditionV3) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*CreateMasterEditionV3) GetTokenProgramAccount

func (obj *CreateMasterEditionV3) GetTokenProgramAccount() *common.AccountMeta

GetTokenProgramAccount gets the "tokenProgram" parameter. Token program

func (*CreateMasterEditionV3) GetUpdateAuthorityAccount

func (obj *CreateMasterEditionV3) GetUpdateAuthorityAccount() *common.AccountMeta

GetUpdateAuthorityAccount gets the "updateAuthority" parameter. Update authority

func (*CreateMasterEditionV3) MarshalWithEncoder

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

func (*CreateMasterEditionV3) SetCreateMasterEditionArgs

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

SetCreateMasterEditionArgs sets the "createMasterEditionArgs" parameter.

func (*CreateMasterEditionV3) SetEditionAccount

func (obj *CreateMasterEditionV3) SetEditionAccount(edition common.PublicKey) *CreateMasterEditionV3

SetEditionAccount sets the "edition" parameter. Unallocated edition V2 account with address as pda of ['metadata', program id, mint, 'edition']

func (*CreateMasterEditionV3) SetMetadataAccount

func (obj *CreateMasterEditionV3) SetMetadataAccount(metadata common.PublicKey) *CreateMasterEditionV3

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*CreateMasterEditionV3) SetMintAccount

func (obj *CreateMasterEditionV3) SetMintAccount(mint common.PublicKey) *CreateMasterEditionV3

SetMintAccount sets the "mint" parameter. Metadata mint

func (*CreateMasterEditionV3) SetMintAuthorityAccount

func (obj *CreateMasterEditionV3) SetMintAuthorityAccount(mintAuthority common.PublicKey) *CreateMasterEditionV3

SetMintAuthorityAccount sets the "mintAuthority" parameter. Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY

func (*CreateMasterEditionV3) SetPayerAccount

func (obj *CreateMasterEditionV3) SetPayerAccount(payer common.PublicKey) *CreateMasterEditionV3

SetPayerAccount sets the "payer" parameter. payer

func (*CreateMasterEditionV3) SetProgramId

func (obj *CreateMasterEditionV3) SetProgramId(programId *common.PublicKey) *CreateMasterEditionV3

func (*CreateMasterEditionV3) SetRentAccount

func (obj *CreateMasterEditionV3) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *CreateMasterEditionV3

SetRentAccount sets the "rent" parameter. Rent info

func (*CreateMasterEditionV3) SetSystemProgramAccount

func (obj *CreateMasterEditionV3) SetSystemProgramAccount(systemProgram common.PublicKey) *CreateMasterEditionV3

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*CreateMasterEditionV3) SetTokenProgramAccount

func (obj *CreateMasterEditionV3) SetTokenProgramAccount(tokenProgram common.PublicKey) *CreateMasterEditionV3

SetTokenProgramAccount sets the "tokenProgram" parameter. Token program

func (*CreateMasterEditionV3) SetUpdateAuthorityAccount

func (obj *CreateMasterEditionV3) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *CreateMasterEditionV3

SetUpdateAuthorityAccount sets the "updateAuthority" parameter. Update authority

func (*CreateMasterEditionV3) UnmarshalWithDecoder

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

func (*CreateMasterEditionV3) Validate

func (obj *CreateMasterEditionV3) Validate() error

func (*CreateMasterEditionV3) ValidateAndBuild

func (obj *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 {
	// [0] = [WRITE] metadata `Metadata key (pda of ['metadata', program id, mint id])`
	// [1] = [] mint `Mint of token asset`
	// [2] = [SIGNER] mintAuthority `Mint authority`
	// [3] = [WRITE, SIGNER] payer `payer`
	// [4] = [] updateAuthority `update authority info`
	// [5] = [] systemProgram `System program`
	// [6] = [] rent `Rent info`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

CreateMetadataAccount Instruction

func NewCreateMetadataAccountInstruction

func NewCreateMetadataAccountInstruction(
	metadata common.PublicKey,
	mint common.PublicKey,
	mintAuthority common.PublicKey,
	payer common.PublicKey,
	updateAuthority common.PublicKey,
	systemProgram common.PublicKey,
	rent common.PublicKey,
) *CreateMetadataAccount

NewCreateMetadataAccountInstruction

Parameters:

metadata: Metadata key (pda of ['metadata', program id, mint id])
mint: Mint of token asset
mintAuthority: Mint authority
payer: payer
updateAuthority: update authority info
systemProgram: System program
rent: Rent info

func NewCreateMetadataAccountInstructionBuilder

func NewCreateMetadataAccountInstructionBuilder() *CreateMetadataAccount

NewCreateMetadataAccountInstructionBuilder creates a new `CreateMetadataAccount` instruction builder.

func (*CreateMetadataAccount) Build

func (obj *CreateMetadataAccount) Build() *Instruction

func (*CreateMetadataAccount) EncodeToTree

func (obj *CreateMetadataAccount) EncodeToTree(parent treeout.Branches)

func (*CreateMetadataAccount) GetMetadataAccount

func (obj *CreateMetadataAccount) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])

func (*CreateMetadataAccount) GetMintAccount

func (obj *CreateMetadataAccount) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Mint of token asset

func (*CreateMetadataAccount) GetMintAuthorityAccount

func (obj *CreateMetadataAccount) GetMintAuthorityAccount() *common.AccountMeta

GetMintAuthorityAccount gets the "mintAuthority" parameter. Mint authority

func (*CreateMetadataAccount) GetPayerAccount

func (obj *CreateMetadataAccount) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. payer

func (*CreateMetadataAccount) GetRentAccount

func (obj *CreateMetadataAccount) GetRentAccount() *common.AccountMeta

GetRentAccount gets the "rent" parameter. Rent info

func (*CreateMetadataAccount) GetSystemProgramAccount

func (obj *CreateMetadataAccount) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*CreateMetadataAccount) GetUpdateAuthorityAccount

func (obj *CreateMetadataAccount) GetUpdateAuthorityAccount() *common.AccountMeta

GetUpdateAuthorityAccount gets the "updateAuthority" parameter. update authority info

func (*CreateMetadataAccount) MarshalWithEncoder

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

func (*CreateMetadataAccount) SetMetadataAccount

func (obj *CreateMetadataAccount) SetMetadataAccount(metadata common.PublicKey) *CreateMetadataAccount

SetMetadataAccount sets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])

func (*CreateMetadataAccount) SetMintAccount

func (obj *CreateMetadataAccount) SetMintAccount(mint common.PublicKey) *CreateMetadataAccount

SetMintAccount sets the "mint" parameter. Mint of token asset

func (*CreateMetadataAccount) SetMintAuthorityAccount

func (obj *CreateMetadataAccount) SetMintAuthorityAccount(mintAuthority common.PublicKey) *CreateMetadataAccount

SetMintAuthorityAccount sets the "mintAuthority" parameter. Mint authority

func (*CreateMetadataAccount) SetPayerAccount

func (obj *CreateMetadataAccount) SetPayerAccount(payer common.PublicKey) *CreateMetadataAccount

SetPayerAccount sets the "payer" parameter. payer

func (*CreateMetadataAccount) SetProgramId

func (obj *CreateMetadataAccount) SetProgramId(programId *common.PublicKey) *CreateMetadataAccount

func (*CreateMetadataAccount) SetRentAccount

func (obj *CreateMetadataAccount) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *CreateMetadataAccount

SetRentAccount sets the "rent" parameter. Rent info

func (*CreateMetadataAccount) SetSystemProgramAccount

func (obj *CreateMetadataAccount) SetSystemProgramAccount(systemProgram common.PublicKey) *CreateMetadataAccount

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*CreateMetadataAccount) SetUpdateAuthorityAccount

func (obj *CreateMetadataAccount) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *CreateMetadataAccount

SetUpdateAuthorityAccount sets the "updateAuthority" parameter. update authority info

func (*CreateMetadataAccount) UnmarshalWithDecoder

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

func (*CreateMetadataAccount) Validate

func (obj *CreateMetadataAccount) Validate() error

func (*CreateMetadataAccount) ValidateAndBuild

func (obj *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 CreateMetadataAccountArgsV3

type CreateMetadataAccountArgsV3 struct {
	Data              DataV2
	IsMutable         bool
	CollectionDetails *CollectionDetails `bin:"optional"`
}

CreateMetadataAccountArgsV3 Struct

func (*CreateMetadataAccountArgsV3) MarshalWithEncoder

func (obj *CreateMetadataAccountArgsV3) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*CreateMetadataAccountArgsV3) UnmarshalWithDecoder

func (obj *CreateMetadataAccountArgsV3) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type CreateMetadataAccountV2

type CreateMetadataAccountV2 struct {
	// [0] = [WRITE] metadata `Metadata key (pda of ['metadata', program id, mint id])`
	// [1] = [] mint `Mint of token asset`
	// [2] = [SIGNER] mintAuthority `Mint authority`
	// [3] = [WRITE, SIGNER] payer `payer`
	// [4] = [] updateAuthority `update authority info`
	// [5] = [] systemProgram `System program`
	// [6] = [] rent `Rent info`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

CreateMetadataAccountV2 Instruction

func NewCreateMetadataAccountV2Instruction

func NewCreateMetadataAccountV2Instruction(
	metadata common.PublicKey,
	mint common.PublicKey,
	mintAuthority common.PublicKey,
	payer common.PublicKey,
	updateAuthority common.PublicKey,
	systemProgram common.PublicKey,
	rent common.PublicKey,
) *CreateMetadataAccountV2

NewCreateMetadataAccountV2Instruction

Parameters:

metadata: Metadata key (pda of ['metadata', program id, mint id])
mint: Mint of token asset
mintAuthority: Mint authority
payer: payer
updateAuthority: update authority info
systemProgram: System program
rent: Rent info

func NewCreateMetadataAccountV2InstructionBuilder

func NewCreateMetadataAccountV2InstructionBuilder() *CreateMetadataAccountV2

NewCreateMetadataAccountV2InstructionBuilder creates a new `CreateMetadataAccountV2` instruction builder.

func (*CreateMetadataAccountV2) Build

func (obj *CreateMetadataAccountV2) Build() *Instruction

func (*CreateMetadataAccountV2) EncodeToTree

func (obj *CreateMetadataAccountV2) EncodeToTree(parent treeout.Branches)

func (*CreateMetadataAccountV2) GetMetadataAccount

func (obj *CreateMetadataAccountV2) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])

func (*CreateMetadataAccountV2) GetMintAccount

func (obj *CreateMetadataAccountV2) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Mint of token asset

func (*CreateMetadataAccountV2) GetMintAuthorityAccount

func (obj *CreateMetadataAccountV2) GetMintAuthorityAccount() *common.AccountMeta

GetMintAuthorityAccount gets the "mintAuthority" parameter. Mint authority

func (*CreateMetadataAccountV2) GetPayerAccount

func (obj *CreateMetadataAccountV2) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. payer

func (*CreateMetadataAccountV2) GetRentAccount

func (obj *CreateMetadataAccountV2) GetRentAccount() *common.AccountMeta

GetRentAccount gets the "rent" parameter. Rent info

func (*CreateMetadataAccountV2) GetSystemProgramAccount

func (obj *CreateMetadataAccountV2) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*CreateMetadataAccountV2) GetUpdateAuthorityAccount

func (obj *CreateMetadataAccountV2) GetUpdateAuthorityAccount() *common.AccountMeta

GetUpdateAuthorityAccount gets the "updateAuthority" parameter. update authority info

func (*CreateMetadataAccountV2) MarshalWithEncoder

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

func (*CreateMetadataAccountV2) SetMetadataAccount

func (obj *CreateMetadataAccountV2) SetMetadataAccount(metadata common.PublicKey) *CreateMetadataAccountV2

SetMetadataAccount sets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])

func (*CreateMetadataAccountV2) SetMintAccount

SetMintAccount sets the "mint" parameter. Mint of token asset

func (*CreateMetadataAccountV2) SetMintAuthorityAccount

func (obj *CreateMetadataAccountV2) SetMintAuthorityAccount(mintAuthority common.PublicKey) *CreateMetadataAccountV2

SetMintAuthorityAccount sets the "mintAuthority" parameter. Mint authority

func (*CreateMetadataAccountV2) SetPayerAccount

func (obj *CreateMetadataAccountV2) SetPayerAccount(payer common.PublicKey) *CreateMetadataAccountV2

SetPayerAccount sets the "payer" parameter. payer

func (*CreateMetadataAccountV2) SetProgramId

func (obj *CreateMetadataAccountV2) SetProgramId(programId *common.PublicKey) *CreateMetadataAccountV2

func (*CreateMetadataAccountV2) SetRentAccount

func (obj *CreateMetadataAccountV2) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *CreateMetadataAccountV2

SetRentAccount sets the "rent" parameter. Rent info

func (*CreateMetadataAccountV2) SetSystemProgramAccount

func (obj *CreateMetadataAccountV2) SetSystemProgramAccount(systemProgram common.PublicKey) *CreateMetadataAccountV2

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*CreateMetadataAccountV2) SetUpdateAuthorityAccount

func (obj *CreateMetadataAccountV2) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *CreateMetadataAccountV2

SetUpdateAuthorityAccount sets the "updateAuthority" parameter. update authority info

func (*CreateMetadataAccountV2) UnmarshalWithDecoder

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

func (*CreateMetadataAccountV2) Validate

func (obj *CreateMetadataAccountV2) Validate() error

func (*CreateMetadataAccountV2) ValidateAndBuild

func (obj *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 CreateMetadataAccountV3

type CreateMetadataAccountV3 struct {
	CreateMetadataAccountArgsV3 *CreateMetadataAccountArgsV3
	// [0] = [WRITE] metadata `Metadata key (pda of ['metadata', program id, mint id])`
	// [1] = [] mint `Mint of token asset`
	// [2] = [SIGNER] mintAuthority `Mint authority`
	// [3] = [WRITE, SIGNER] payer `payer`
	// [4] = [] updateAuthority `update authority info`
	// [5] = [] systemProgram `System program`
	// [6] = [] rent `Rent info`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

CreateMetadataAccountV3 Instruction

func NewCreateMetadataAccountV3Instruction

func NewCreateMetadataAccountV3Instruction(
	createMetadataAccountArgsV3 CreateMetadataAccountArgsV3,
	metadata common.PublicKey,
	mint common.PublicKey,
	mintAuthority common.PublicKey,
	payer common.PublicKey,
	updateAuthority common.PublicKey,
	systemProgram common.PublicKey,
	rent common.PublicKey,
) *CreateMetadataAccountV3

NewCreateMetadataAccountV3Instruction

Parameters:

createMetadataAccountArgsV3:
metadata: Metadata key (pda of ['metadata', program id, mint id])
mint: Mint of token asset
mintAuthority: Mint authority
payer: payer
updateAuthority: update authority info
systemProgram: System program
rent: Rent info

func NewCreateMetadataAccountV3InstructionBuilder

func NewCreateMetadataAccountV3InstructionBuilder() *CreateMetadataAccountV3

NewCreateMetadataAccountV3InstructionBuilder creates a new `CreateMetadataAccountV3` instruction builder.

func (*CreateMetadataAccountV3) Build

func (obj *CreateMetadataAccountV3) Build() *Instruction

func (*CreateMetadataAccountV3) EncodeToTree

func (obj *CreateMetadataAccountV3) EncodeToTree(parent treeout.Branches)

func (*CreateMetadataAccountV3) GetMetadataAccount

func (obj *CreateMetadataAccountV3) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])

func (*CreateMetadataAccountV3) GetMintAccount

func (obj *CreateMetadataAccountV3) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Mint of token asset

func (*CreateMetadataAccountV3) GetMintAuthorityAccount

func (obj *CreateMetadataAccountV3) GetMintAuthorityAccount() *common.AccountMeta

GetMintAuthorityAccount gets the "mintAuthority" parameter. Mint authority

func (*CreateMetadataAccountV3) GetPayerAccount

func (obj *CreateMetadataAccountV3) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. payer

func (*CreateMetadataAccountV3) GetRentAccount

func (obj *CreateMetadataAccountV3) GetRentAccount() *common.AccountMeta

GetRentAccount gets the "rent" parameter. Rent info

func (*CreateMetadataAccountV3) GetSystemProgramAccount

func (obj *CreateMetadataAccountV3) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*CreateMetadataAccountV3) GetUpdateAuthorityAccount

func (obj *CreateMetadataAccountV3) GetUpdateAuthorityAccount() *common.AccountMeta

GetUpdateAuthorityAccount gets the "updateAuthority" parameter. update authority info

func (*CreateMetadataAccountV3) MarshalWithEncoder

func (obj *CreateMetadataAccountV3) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*CreateMetadataAccountV3) SetCreateMetadataAccountArgsV3

func (obj *CreateMetadataAccountV3) SetCreateMetadataAccountArgsV3(createMetadataAccountArgsV3 CreateMetadataAccountArgsV3) *CreateMetadataAccountV3

SetCreateMetadataAccountArgsV3 sets the "createMetadataAccountArgsV3" parameter.

func (*CreateMetadataAccountV3) SetMetadataAccount

func (obj *CreateMetadataAccountV3) SetMetadataAccount(metadata common.PublicKey) *CreateMetadataAccountV3

SetMetadataAccount sets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])

func (*CreateMetadataAccountV3) SetMintAccount

SetMintAccount sets the "mint" parameter. Mint of token asset

func (*CreateMetadataAccountV3) SetMintAuthorityAccount

func (obj *CreateMetadataAccountV3) SetMintAuthorityAccount(mintAuthority common.PublicKey) *CreateMetadataAccountV3

SetMintAuthorityAccount sets the "mintAuthority" parameter. Mint authority

func (*CreateMetadataAccountV3) SetPayerAccount

func (obj *CreateMetadataAccountV3) SetPayerAccount(payer common.PublicKey) *CreateMetadataAccountV3

SetPayerAccount sets the "payer" parameter. payer

func (*CreateMetadataAccountV3) SetProgramId

func (obj *CreateMetadataAccountV3) SetProgramId(programId *common.PublicKey) *CreateMetadataAccountV3

func (*CreateMetadataAccountV3) SetRentAccount

func (obj *CreateMetadataAccountV3) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *CreateMetadataAccountV3

SetRentAccount sets the "rent" parameter. Rent info

func (*CreateMetadataAccountV3) SetSystemProgramAccount

func (obj *CreateMetadataAccountV3) SetSystemProgramAccount(systemProgram common.PublicKey) *CreateMetadataAccountV3

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*CreateMetadataAccountV3) SetUpdateAuthorityAccount

func (obj *CreateMetadataAccountV3) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *CreateMetadataAccountV3

SetUpdateAuthorityAccount sets the "updateAuthority" parameter. update authority info

func (*CreateMetadataAccountV3) UnmarshalWithDecoder

func (obj *CreateMetadataAccountV3) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

func (*CreateMetadataAccountV3) Validate

func (obj *CreateMetadataAccountV3) Validate() error

func (*CreateMetadataAccountV3) ValidateAndBuild

func (obj *CreateMetadataAccountV3) 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  common.PublicKey
	Verified bool
	Share    uint8
}

Creator Struct

func (*Creator) MarshalWithEncoder

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

func (*Creator) UnmarshalWithDecoder

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

type CreatorNotFoundError

type CreatorNotFoundError struct{}

CreatorNotFoundError Error: 40 `This creator address was not found`

func (CreatorNotFoundError) Code

func (e CreatorNotFoundError) Code() int

func (CreatorNotFoundError) Error

func (e CreatorNotFoundError) Error() string

type CreatorsMustBeAtleastOneError

type CreatorsMustBeAtleastOneError struct{}

CreatorsMustBeAtleastOneError Error: 37 `Creators must be at least one if set`

func (CreatorsMustBeAtleastOneError) Code

func (CreatorsMustBeAtleastOneError) Error

type CreatorsTooLongError

type CreatorsTooLongError struct{}

CreatorsTooLongError Error: 36 `Creators list too long`

func (CreatorsTooLongError) Code

func (e CreatorsTooLongError) Code() int

func (CreatorsTooLongError) Error

func (e CreatorsTooLongError) Error() string

type Data

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

Data Struct

func (*Data) MarshalWithEncoder

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

func (*Data) UnmarshalWithDecoder

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

type DataIncrementLimitExceededError

type DataIncrementLimitExceededError struct{}

DataIncrementLimitExceededError Error: 172 `Exceeded account realloc increase limit`

func (DataIncrementLimitExceededError) Code

func (DataIncrementLimitExceededError) Error

type DataIsEmptyOrZeroedError

type DataIsEmptyOrZeroedError struct{}

DataIsEmptyOrZeroedError Error: 161 `Data is empty or zeroed`

func (DataIsEmptyOrZeroedError) Code

func (e DataIsEmptyOrZeroedError) Code() int

func (DataIsEmptyOrZeroedError) Error

func (e DataIsEmptyOrZeroedError) Error() string

type DataIsImmutableError

type DataIsImmutableError struct{}

DataIsImmutableError Error: 59 `Data is immutable`

func (DataIsImmutableError) Code

func (e DataIsImmutableError) Code() int

func (DataIsImmutableError) Error

func (e DataIsImmutableError) Error() string

type DataTypeMismatchError

type DataTypeMismatchError struct{}

DataTypeMismatchError Error: 63 `Data type mismatch`

func (DataTypeMismatchError) Code

func (e DataTypeMismatchError) Code() int

func (DataTypeMismatchError) Error

func (e DataTypeMismatchError) Error() string

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"`
}

DataV2 Struct

func (*DataV2) MarshalWithEncoder

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

func (*DataV2) UnmarshalWithDecoder

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

type Delegate

type Delegate struct {
	DelegateArgs *DelegateArgs
	// [0] = [WRITE] delegateRecord `Delegate record account`
	// [1] = [] delegate `Owner of the delegated account`
	// [2] = [WRITE] metadata `Metadata account`
	// [3] = [] masterEdition `Master Edition account`
	// [4] = [WRITE] tokenRecord `Token record account`
	// [5] = [] mint `Mint of metadata`
	// [6] = [WRITE] token `Token account of mint`
	// [7] = [SIGNER] authority `Update authority or token owner`
	// [8] = [WRITE, SIGNER] payer `Payer`
	// [9] = [] systemProgram `System Program`
	// [10] = [] sysvarInstructions `Instructions sysvar account`
	// [11] = [] splTokenProgram `SPL Token Program`
	// [12] = [] authorizationRulesProgram `Token Authorization Rules Program`
	// [13] = [] authorizationRules `Token Authorization Rules account`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

Delegate Instruction

func NewDelegateInstruction

func NewDelegateInstruction(
	delegateArgs DelegateArgs,
	delegateRecord common.PublicKey,
	delegate common.PublicKey,
	metadata common.PublicKey,
	masterEdition common.PublicKey,
	tokenRecord common.PublicKey,
	mint common.PublicKey,
	token common.PublicKey,
	authority common.PublicKey,
	payer common.PublicKey,
	systemProgram common.PublicKey,
	sysvarInstructions common.PublicKey,
	splTokenProgram common.PublicKey,
	authorizationRulesProgram common.PublicKey,
	authorizationRules common.PublicKey,
) *Delegate

NewDelegateInstruction

Parameters:

delegateArgs:
delegateRecord: Delegate record account
delegate: Owner of the delegated account
metadata: Metadata account
masterEdition: Master Edition account
tokenRecord: Token record account
mint: Mint of metadata
token: Token account of mint
authority: Update authority or token owner
payer: Payer
systemProgram: System Program
sysvarInstructions: Instructions sysvar account
splTokenProgram: SPL Token Program
authorizationRulesProgram: Token Authorization Rules Program
authorizationRules: Token Authorization Rules account

func NewDelegateInstructionBuilder

func NewDelegateInstructionBuilder() *Delegate

NewDelegateInstructionBuilder creates a new `Delegate` instruction builder.

func (*Delegate) Build

func (obj *Delegate) Build() *Instruction

func (*Delegate) EncodeToTree

func (obj *Delegate) EncodeToTree(parent treeout.Branches)

func (*Delegate) GetAuthorityAccount

func (obj *Delegate) GetAuthorityAccount() *common.AccountMeta

GetAuthorityAccount gets the "authority" parameter. Update authority or token owner

func (*Delegate) GetAuthorizationRulesAccount

func (obj *Delegate) GetAuthorizationRulesAccount() *common.AccountMeta

GetAuthorizationRulesAccount gets the "authorizationRules" parameter. Token Authorization Rules account

func (*Delegate) GetAuthorizationRulesProgramAccount

func (obj *Delegate) GetAuthorizationRulesProgramAccount() *common.AccountMeta

GetAuthorizationRulesProgramAccount gets the "authorizationRulesProgram" parameter. Token Authorization Rules Program

func (*Delegate) GetDelegateAccount

func (obj *Delegate) GetDelegateAccount() *common.AccountMeta

GetDelegateAccount gets the "delegate" parameter. Owner of the delegated account

func (*Delegate) GetDelegateRecordAccount

func (obj *Delegate) GetDelegateRecordAccount() *common.AccountMeta

GetDelegateRecordAccount gets the "delegateRecord" parameter. Delegate record account

func (*Delegate) GetMasterEditionAccount

func (obj *Delegate) GetMasterEditionAccount() *common.AccountMeta

GetMasterEditionAccount gets the "masterEdition" parameter. Master Edition account

func (*Delegate) GetMetadataAccount

func (obj *Delegate) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*Delegate) GetMintAccount

func (obj *Delegate) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Mint of metadata

func (*Delegate) GetPayerAccount

func (obj *Delegate) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. Payer

func (*Delegate) GetSplTokenProgramAccount

func (obj *Delegate) GetSplTokenProgramAccount() *common.AccountMeta

GetSplTokenProgramAccount gets the "splTokenProgram" parameter. SPL Token Program

func (*Delegate) GetSystemProgramAccount

func (obj *Delegate) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System Program

func (*Delegate) GetSysvarInstructionsAccount

func (obj *Delegate) GetSysvarInstructionsAccount() *common.AccountMeta

GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account

func (*Delegate) GetTokenAccount

func (obj *Delegate) GetTokenAccount() *common.AccountMeta

GetTokenAccount gets the "token" parameter. Token account of mint

func (*Delegate) GetTokenRecordAccount

func (obj *Delegate) GetTokenRecordAccount() *common.AccountMeta

GetTokenRecordAccount gets the "tokenRecord" parameter. Token record account

func (*Delegate) MarshalWithEncoder

func (obj *Delegate) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*Delegate) SetAuthorityAccount

func (obj *Delegate) SetAuthorityAccount(authority common.PublicKey) *Delegate

SetAuthorityAccount sets the "authority" parameter. Update authority or token owner

func (*Delegate) SetAuthorizationRulesAccount

func (obj *Delegate) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Delegate

SetAuthorizationRulesAccount sets the "authorizationRules" parameter. Token Authorization Rules account

func (*Delegate) SetAuthorizationRulesProgramAccount

func (obj *Delegate) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Delegate

SetAuthorizationRulesProgramAccount sets the "authorizationRulesProgram" parameter. Token Authorization Rules Program

func (*Delegate) SetDelegateAccount

func (obj *Delegate) SetDelegateAccount(delegate common.PublicKey) *Delegate

SetDelegateAccount sets the "delegate" parameter. Owner of the delegated account

func (*Delegate) SetDelegateArgs

func (obj *Delegate) SetDelegateArgs(delegateArgs DelegateArgs) *Delegate

SetDelegateArgs sets the "delegateArgs" parameter.

func (*Delegate) SetDelegateRecordAccount

func (obj *Delegate) SetDelegateRecordAccount(delegateRecord common.PublicKey) *Delegate

SetDelegateRecordAccount sets the "delegateRecord" parameter. Delegate record account

func (*Delegate) SetMasterEditionAccount

func (obj *Delegate) SetMasterEditionAccount(masterEdition common.PublicKey) *Delegate

SetMasterEditionAccount sets the "masterEdition" parameter. Master Edition account

func (*Delegate) SetMetadataAccount

func (obj *Delegate) SetMetadataAccount(metadata common.PublicKey) *Delegate

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*Delegate) SetMintAccount

func (obj *Delegate) SetMintAccount(mint common.PublicKey) *Delegate

SetMintAccount sets the "mint" parameter. Mint of metadata

func (*Delegate) SetPayerAccount

func (obj *Delegate) SetPayerAccount(payer common.PublicKey) *Delegate

SetPayerAccount sets the "payer" parameter. Payer

func (*Delegate) SetProgramId

func (obj *Delegate) SetProgramId(programId *common.PublicKey) *Delegate

func (*Delegate) SetSplTokenProgramAccount

func (obj *Delegate) SetSplTokenProgramAccount(splTokenProgram common.PublicKey) *Delegate

SetSplTokenProgramAccount sets the "splTokenProgram" parameter. SPL Token Program

func (*Delegate) SetSystemProgramAccount

func (obj *Delegate) SetSystemProgramAccount(systemProgram common.PublicKey) *Delegate

SetSystemProgramAccount sets the "systemProgram" parameter. System Program

func (*Delegate) SetSysvarInstructionsAccount

func (obj *Delegate) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *Delegate

SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account

func (*Delegate) SetTokenAccount

func (obj *Delegate) SetTokenAccount(token common.PublicKey) *Delegate

SetTokenAccount sets the "token" parameter. Token account of mint

func (*Delegate) SetTokenRecordAccount

func (obj *Delegate) SetTokenRecordAccount(tokenRecord common.PublicKey) *Delegate

SetTokenRecordAccount sets the "tokenRecord" parameter. Token record account

func (*Delegate) UnmarshalWithDecoder

func (obj *Delegate) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

func (*Delegate) Validate

func (obj *Delegate) Validate() error

func (*Delegate) ValidateAndBuild

func (obj *Delegate) 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 DelegateAlreadyExistsError

type DelegateAlreadyExistsError struct{}

DelegateAlreadyExistsError Error: 141 `Delegate already exists`

func (DelegateAlreadyExistsError) Code

func (DelegateAlreadyExistsError) Error

type DelegateArgs

type DelegateArgs struct {
	CollectionV1             *DelegateArgsCollectionV1             `bin:"optional"`
	SaleV1                   *DelegateArgsSaleV1                   `bin:"optional"`
	TransferV1               *DelegateArgsTransferV1               `bin:"optional"`
	DataV1                   *DelegateArgsDataV1                   `bin:"optional"`
	UtilityV1                *DelegateArgsUtilityV1                `bin:"optional"`
	StakingV1                *DelegateArgsStakingV1                `bin:"optional"`
	StandardV1               *DelegateArgsStandardV1               `bin:"optional"`
	LockedTransferV1         *DelegateArgsLockedTransferV1         `bin:"optional"`
	ProgrammableConfigV1     *DelegateArgsProgrammableConfigV1     `bin:"optional"`
	AuthorityItemV1          *DelegateArgsAuthorityItemV1          `bin:"optional"`
	DataItemV1               *DelegateArgsDataItemV1               `bin:"optional"`
	CollectionItemV1         *DelegateArgsCollectionItemV1         `bin:"optional"`
	ProgrammableConfigItemV1 *DelegateArgsProgrammableConfigItemV1 `bin:"optional"`
}

DelegateArgs Enum

func NewDelegateArgs_AuthorityItemV1

func NewDelegateArgs_AuthorityItemV1(authorizationData *AuthorizationData) DelegateArgs

func NewDelegateArgs_CollectionItemV1

func NewDelegateArgs_CollectionItemV1(authorizationData *AuthorizationData) DelegateArgs

func NewDelegateArgs_CollectionV1

func NewDelegateArgs_CollectionV1(authorizationData *AuthorizationData) DelegateArgs

func NewDelegateArgs_DataItemV1

func NewDelegateArgs_DataItemV1(authorizationData *AuthorizationData) DelegateArgs

func NewDelegateArgs_DataV1

func NewDelegateArgs_DataV1(authorizationData *AuthorizationData) DelegateArgs

func NewDelegateArgs_LockedTransferV1

func NewDelegateArgs_LockedTransferV1(amount uint64, lockedAddress common.PublicKey, authorizationData *AuthorizationData) DelegateArgs

func NewDelegateArgs_ProgrammableConfigItemV1

func NewDelegateArgs_ProgrammableConfigItemV1(authorizationData *AuthorizationData) DelegateArgs

func NewDelegateArgs_ProgrammableConfigV1

func NewDelegateArgs_ProgrammableConfigV1(authorizationData *AuthorizationData) DelegateArgs

func NewDelegateArgs_SaleV1

func NewDelegateArgs_SaleV1(amount uint64, authorizationData *AuthorizationData) DelegateArgs

func NewDelegateArgs_StakingV1

func NewDelegateArgs_StakingV1(amount uint64, authorizationData *AuthorizationData) DelegateArgs

func NewDelegateArgs_StandardV1

func NewDelegateArgs_StandardV1(amount uint64) DelegateArgs

func NewDelegateArgs_TransferV1

func NewDelegateArgs_TransferV1(amount uint64, authorizationData *AuthorizationData) DelegateArgs

func NewDelegateArgs_UtilityV1

func NewDelegateArgs_UtilityV1(amount uint64, authorizationData *AuthorizationData) DelegateArgs

func (*DelegateArgs) AsAuthorityItemV1

func (obj *DelegateArgs) AsAuthorityItemV1() DelegateArgsAuthorityItemV1

func (*DelegateArgs) AsCollectionItemV1

func (obj *DelegateArgs) AsCollectionItemV1() DelegateArgsCollectionItemV1

func (*DelegateArgs) AsCollectionV1

func (obj *DelegateArgs) AsCollectionV1() DelegateArgsCollectionV1

func (*DelegateArgs) AsDataItemV1

func (obj *DelegateArgs) AsDataItemV1() DelegateArgsDataItemV1

func (*DelegateArgs) AsDataV1

func (obj *DelegateArgs) AsDataV1() DelegateArgsDataV1

func (*DelegateArgs) AsLockedTransferV1

func (obj *DelegateArgs) AsLockedTransferV1() DelegateArgsLockedTransferV1

func (*DelegateArgs) AsProgrammableConfigItemV1

func (obj *DelegateArgs) AsProgrammableConfigItemV1() DelegateArgsProgrammableConfigItemV1

func (*DelegateArgs) AsProgrammableConfigV1

func (obj *DelegateArgs) AsProgrammableConfigV1() DelegateArgsProgrammableConfigV1

func (*DelegateArgs) AsSaleV1

func (obj *DelegateArgs) AsSaleV1() DelegateArgsSaleV1

func (*DelegateArgs) AsStakingV1

func (obj *DelegateArgs) AsStakingV1() DelegateArgsStakingV1

func (*DelegateArgs) AsStandardV1

func (obj *DelegateArgs) AsStandardV1() DelegateArgsStandardV1

func (*DelegateArgs) AsTransferV1

func (obj *DelegateArgs) AsTransferV1() DelegateArgsTransferV1

func (*DelegateArgs) AsUtilityV1

func (obj *DelegateArgs) AsUtilityV1() DelegateArgsUtilityV1

func (*DelegateArgs) IsAuthorityItemV1

func (obj *DelegateArgs) IsAuthorityItemV1() bool

func (*DelegateArgs) IsCollectionItemV1

func (obj *DelegateArgs) IsCollectionItemV1() bool

func (*DelegateArgs) IsCollectionV1

func (obj *DelegateArgs) IsCollectionV1() bool

func (*DelegateArgs) IsDataItemV1

func (obj *DelegateArgs) IsDataItemV1() bool

func (*DelegateArgs) IsDataV1

func (obj *DelegateArgs) IsDataV1() bool

func (*DelegateArgs) IsLockedTransferV1

func (obj *DelegateArgs) IsLockedTransferV1() bool

func (*DelegateArgs) IsProgrammableConfigItemV1

func (obj *DelegateArgs) IsProgrammableConfigItemV1() bool

func (*DelegateArgs) IsProgrammableConfigV1

func (obj *DelegateArgs) IsProgrammableConfigV1() bool

func (*DelegateArgs) IsSaleV1

func (obj *DelegateArgs) IsSaleV1() bool

func (*DelegateArgs) IsStakingV1

func (obj *DelegateArgs) IsStakingV1() bool

func (*DelegateArgs) IsStandardV1

func (obj *DelegateArgs) IsStandardV1() bool

func (*DelegateArgs) IsTransferV1

func (obj *DelegateArgs) IsTransferV1() bool

func (*DelegateArgs) IsUtilityV1

func (obj *DelegateArgs) IsUtilityV1() bool

func (*DelegateArgs) MarshalWithEncoder

func (obj *DelegateArgs) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*DelegateArgs) String

func (obj *DelegateArgs) String() string

func (*DelegateArgs) UnmarshalWithDecoder

func (obj *DelegateArgs) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type DelegateArgsAuthorityItemV1

type DelegateArgsAuthorityItemV1 struct {
	AuthorizationData *AuthorizationData `bin:"optional"`
}

func (*DelegateArgsAuthorityItemV1) MarshalWithEncoder

func (obj *DelegateArgsAuthorityItemV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*DelegateArgsAuthorityItemV1) UnmarshalWithDecoder

func (obj *DelegateArgsAuthorityItemV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type DelegateArgsCollectionItemV1

type DelegateArgsCollectionItemV1 struct {
	AuthorizationData *AuthorizationData `bin:"optional"`
}

func (*DelegateArgsCollectionItemV1) MarshalWithEncoder

func (obj *DelegateArgsCollectionItemV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*DelegateArgsCollectionItemV1) UnmarshalWithDecoder

func (obj *DelegateArgsCollectionItemV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type DelegateArgsCollectionV1

type DelegateArgsCollectionV1 struct {
	AuthorizationData *AuthorizationData `bin:"optional"`
}

func (*DelegateArgsCollectionV1) MarshalWithEncoder

func (obj *DelegateArgsCollectionV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*DelegateArgsCollectionV1) UnmarshalWithDecoder

func (obj *DelegateArgsCollectionV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type DelegateArgsDataItemV1

type DelegateArgsDataItemV1 struct {
	AuthorizationData *AuthorizationData `bin:"optional"`
}

func (*DelegateArgsDataItemV1) MarshalWithEncoder

func (obj *DelegateArgsDataItemV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*DelegateArgsDataItemV1) UnmarshalWithDecoder

func (obj *DelegateArgsDataItemV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type DelegateArgsDataV1

type DelegateArgsDataV1 struct {
	AuthorizationData *AuthorizationData `bin:"optional"`
}

func (*DelegateArgsDataV1) MarshalWithEncoder

func (obj *DelegateArgsDataV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*DelegateArgsDataV1) UnmarshalWithDecoder

func (obj *DelegateArgsDataV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type DelegateArgsLockedTransferV1

type DelegateArgsLockedTransferV1 struct {
	Amount            uint64
	LockedAddress     common.PublicKey
	AuthorizationData *AuthorizationData `bin:"optional"`
}

func (*DelegateArgsLockedTransferV1) MarshalWithEncoder

func (obj *DelegateArgsLockedTransferV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*DelegateArgsLockedTransferV1) UnmarshalWithDecoder

func (obj *DelegateArgsLockedTransferV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type DelegateArgsProgrammableConfigItemV1

type DelegateArgsProgrammableConfigItemV1 struct {
	AuthorizationData *AuthorizationData `bin:"optional"`
}

func (*DelegateArgsProgrammableConfigItemV1) MarshalWithEncoder

func (obj *DelegateArgsProgrammableConfigItemV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*DelegateArgsProgrammableConfigItemV1) UnmarshalWithDecoder

func (obj *DelegateArgsProgrammableConfigItemV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type DelegateArgsProgrammableConfigV1

type DelegateArgsProgrammableConfigV1 struct {
	AuthorizationData *AuthorizationData `bin:"optional"`
}

func (*DelegateArgsProgrammableConfigV1) MarshalWithEncoder

func (obj *DelegateArgsProgrammableConfigV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*DelegateArgsProgrammableConfigV1) UnmarshalWithDecoder

func (obj *DelegateArgsProgrammableConfigV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type DelegateArgsSaleV1

type DelegateArgsSaleV1 struct {
	Amount            uint64
	AuthorizationData *AuthorizationData `bin:"optional"`
}

func (*DelegateArgsSaleV1) MarshalWithEncoder

func (obj *DelegateArgsSaleV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*DelegateArgsSaleV1) UnmarshalWithDecoder

func (obj *DelegateArgsSaleV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type DelegateArgsStakingV1

type DelegateArgsStakingV1 struct {
	Amount            uint64
	AuthorizationData *AuthorizationData `bin:"optional"`
}

func (*DelegateArgsStakingV1) MarshalWithEncoder

func (obj *DelegateArgsStakingV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*DelegateArgsStakingV1) UnmarshalWithDecoder

func (obj *DelegateArgsStakingV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type DelegateArgsStandardV1

type DelegateArgsStandardV1 struct {
	Amount uint64
}

func (*DelegateArgsStandardV1) MarshalWithEncoder

func (obj *DelegateArgsStandardV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*DelegateArgsStandardV1) UnmarshalWithDecoder

func (obj *DelegateArgsStandardV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type DelegateArgsTransferV1

type DelegateArgsTransferV1 struct {
	Amount            uint64
	AuthorizationData *AuthorizationData `bin:"optional"`
}

func (*DelegateArgsTransferV1) MarshalWithEncoder

func (obj *DelegateArgsTransferV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*DelegateArgsTransferV1) UnmarshalWithDecoder

func (obj *DelegateArgsTransferV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type DelegateArgsUtilityV1

type DelegateArgsUtilityV1 struct {
	Amount            uint64
	AuthorizationData *AuthorizationData `bin:"optional"`
}

func (*DelegateArgsUtilityV1) MarshalWithEncoder

func (obj *DelegateArgsUtilityV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*DelegateArgsUtilityV1) UnmarshalWithDecoder

func (obj *DelegateArgsUtilityV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type DelegateNotFoundError

type DelegateNotFoundError struct{}

DelegateNotFoundError Error: 142 `Delegate not found`

func (DelegateNotFoundError) Code

func (e DelegateNotFoundError) Code() int

func (DelegateNotFoundError) Error

func (e DelegateNotFoundError) Error() string

type DeprecatedCreateMasterEdition

type DeprecatedCreateMasterEdition struct {
	// [0] = [WRITE] edition `Unallocated edition V1 account with address as pda of ['metadata', program id, mint, 'edition']`
	// [1] = [WRITE] mint `Metadata mint`
	// [2] = [WRITE] printingMint `Printing mint - A mint you control that can mint tokens that can be exchanged for limited editions of your master edition via the MintNewEditionFromMasterEditionViaToken endpoint`
	// [3] = [WRITE] oneTimePrintingAuthorizationMint `One time authorization printing mint - A mint you control that prints tokens that gives the bearer permission to mint any number of tokens from the printing mint one time via an endpoint with the token-metadata program for your metadata. Also burns the token.`
	// [4] = [SIGNER] updateAuthority `Current Update authority key`
	// [5] = [SIGNER] printingMintAuthority `Printing mint authority - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY.`
	// [6] = [SIGNER] mintAuthority `Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY`
	// [7] = [] metadata `Metadata account`
	// [8] = [SIGNER] payer `payer`
	// [9] = [] tokenProgram `Token program`
	// [10] = [] systemProgram `System program`
	// [11] = [] rent `Rent info`
	// [12] = [SIGNER] oneTimePrintingAuthorizationMintAuthority `One time authorization printing mint authority - must be provided if using max supply. THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY.`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

DeprecatedCreateMasterEdition Instruction

func NewDeprecatedCreateMasterEditionInstruction

func NewDeprecatedCreateMasterEditionInstruction(
	edition common.PublicKey,
	mint common.PublicKey,
	printingMint common.PublicKey,
	oneTimePrintingAuthorizationMint common.PublicKey,
	updateAuthority common.PublicKey,
	printingMintAuthority common.PublicKey,
	mintAuthority common.PublicKey,
	metadata common.PublicKey,
	payer common.PublicKey,
	tokenProgram common.PublicKey,
	systemProgram common.PublicKey,
	rent common.PublicKey,
	oneTimePrintingAuthorizationMintAuthority common.PublicKey,
) *DeprecatedCreateMasterEdition

NewDeprecatedCreateMasterEditionInstruction

Parameters:

edition: Unallocated edition V1 account with address as pda of ['metadata', program id, mint, 'edition']
mint: Metadata mint
printingMint: Printing mint - A mint you control that can mint tokens that can be exchanged for limited editions of your master edition via the MintNewEditionFromMasterEditionViaToken endpoint
oneTimePrintingAuthorizationMint: One time authorization printing mint - A mint you control that prints tokens that gives the bearer permission to mint any number of tokens from the printing mint one time via an endpoint with the token-metadata program for your metadata. Also burns the token.
updateAuthority: Current Update authority key
printingMintAuthority: Printing mint authority - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY.
mintAuthority: Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
metadata: Metadata account
payer: payer
tokenProgram: Token program
systemProgram: System program
rent: Rent info
oneTimePrintingAuthorizationMintAuthority: One time authorization printing mint authority - must be provided if using max supply. THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY.

func NewDeprecatedCreateMasterEditionInstructionBuilder

func NewDeprecatedCreateMasterEditionInstructionBuilder() *DeprecatedCreateMasterEdition

NewDeprecatedCreateMasterEditionInstructionBuilder creates a new `DeprecatedCreateMasterEdition` instruction builder.

func (*DeprecatedCreateMasterEdition) Build

func (*DeprecatedCreateMasterEdition) EncodeToTree

func (obj *DeprecatedCreateMasterEdition) EncodeToTree(parent treeout.Branches)

func (*DeprecatedCreateMasterEdition) GetEditionAccount

func (obj *DeprecatedCreateMasterEdition) GetEditionAccount() *common.AccountMeta

GetEditionAccount gets the "edition" parameter. Unallocated edition V1 account with address as pda of ['metadata', program id, mint, 'edition']

func (*DeprecatedCreateMasterEdition) GetMetadataAccount

func (obj *DeprecatedCreateMasterEdition) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*DeprecatedCreateMasterEdition) GetMintAccount

func (obj *DeprecatedCreateMasterEdition) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Metadata mint

func (*DeprecatedCreateMasterEdition) GetMintAuthorityAccount

func (obj *DeprecatedCreateMasterEdition) GetMintAuthorityAccount() *common.AccountMeta

GetMintAuthorityAccount gets the "mintAuthority" parameter. Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY

func (*DeprecatedCreateMasterEdition) GetOneTimePrintingAuthorizationMintAccount

func (obj *DeprecatedCreateMasterEdition) GetOneTimePrintingAuthorizationMintAccount() *common.AccountMeta

GetOneTimePrintingAuthorizationMintAccount gets the "oneTimePrintingAuthorizationMint" parameter. One time authorization printing mint - A mint you control that prints tokens that gives the bearer permission to mint any number of tokens from the printing mint one time via an endpoint with the token-metadata program for your metadata. Also burns the token.

func (*DeprecatedCreateMasterEdition) GetOneTimePrintingAuthorizationMintAuthorityAccount

func (obj *DeprecatedCreateMasterEdition) GetOneTimePrintingAuthorizationMintAuthorityAccount() *common.AccountMeta

GetOneTimePrintingAuthorizationMintAuthorityAccount gets the "oneTimePrintingAuthorizationMintAuthority" parameter. One time authorization printing mint authority - must be provided if using max supply. THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY.

func (*DeprecatedCreateMasterEdition) GetPayerAccount

func (obj *DeprecatedCreateMasterEdition) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. payer

func (*DeprecatedCreateMasterEdition) GetPrintingMintAccount

func (obj *DeprecatedCreateMasterEdition) GetPrintingMintAccount() *common.AccountMeta

GetPrintingMintAccount gets the "printingMint" parameter. Printing mint - A mint you control that can mint tokens that can be exchanged for limited editions of your master edition via the MintNewEditionFromMasterEditionViaToken endpoint

func (*DeprecatedCreateMasterEdition) GetPrintingMintAuthorityAccount

func (obj *DeprecatedCreateMasterEdition) GetPrintingMintAuthorityAccount() *common.AccountMeta

GetPrintingMintAuthorityAccount gets the "printingMintAuthority" parameter. Printing mint authority - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY.

func (*DeprecatedCreateMasterEdition) GetRentAccount

func (obj *DeprecatedCreateMasterEdition) GetRentAccount() *common.AccountMeta

GetRentAccount gets the "rent" parameter. Rent info

func (*DeprecatedCreateMasterEdition) GetSystemProgramAccount

func (obj *DeprecatedCreateMasterEdition) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*DeprecatedCreateMasterEdition) GetTokenProgramAccount

func (obj *DeprecatedCreateMasterEdition) GetTokenProgramAccount() *common.AccountMeta

GetTokenProgramAccount gets the "tokenProgram" parameter. Token program

func (*DeprecatedCreateMasterEdition) GetUpdateAuthorityAccount

func (obj *DeprecatedCreateMasterEdition) GetUpdateAuthorityAccount() *common.AccountMeta

GetUpdateAuthorityAccount gets the "updateAuthority" parameter. Current Update authority key

func (*DeprecatedCreateMasterEdition) MarshalWithEncoder

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

func (*DeprecatedCreateMasterEdition) SetEditionAccount

SetEditionAccount sets the "edition" parameter. Unallocated edition V1 account with address as pda of ['metadata', program id, mint, 'edition']

func (*DeprecatedCreateMasterEdition) SetMetadataAccount

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*DeprecatedCreateMasterEdition) SetMintAccount

SetMintAccount sets the "mint" parameter. Metadata mint

func (*DeprecatedCreateMasterEdition) SetMintAuthorityAccount

func (obj *DeprecatedCreateMasterEdition) SetMintAuthorityAccount(mintAuthority common.PublicKey) *DeprecatedCreateMasterEdition

SetMintAuthorityAccount sets the "mintAuthority" parameter. Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY

func (*DeprecatedCreateMasterEdition) SetOneTimePrintingAuthorizationMintAccount

func (obj *DeprecatedCreateMasterEdition) SetOneTimePrintingAuthorizationMintAccount(oneTimePrintingAuthorizationMint common.PublicKey) *DeprecatedCreateMasterEdition

SetOneTimePrintingAuthorizationMintAccount sets the "oneTimePrintingAuthorizationMint" parameter. One time authorization printing mint - A mint you control that prints tokens that gives the bearer permission to mint any number of tokens from the printing mint one time via an endpoint with the token-metadata program for your metadata. Also burns the token.

func (*DeprecatedCreateMasterEdition) SetOneTimePrintingAuthorizationMintAuthorityAccount

func (obj *DeprecatedCreateMasterEdition) SetOneTimePrintingAuthorizationMintAuthorityAccount(oneTimePrintingAuthorizationMintAuthority common.PublicKey, multiSigners ...common.PublicKey) *DeprecatedCreateMasterEdition

SetOneTimePrintingAuthorizationMintAuthorityAccount sets the "oneTimePrintingAuthorizationMintAuthority" parameter. One time authorization printing mint authority - must be provided if using max supply. THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY.

func (*DeprecatedCreateMasterEdition) SetPayerAccount

SetPayerAccount sets the "payer" parameter. payer

func (*DeprecatedCreateMasterEdition) SetPrintingMintAccount

func (obj *DeprecatedCreateMasterEdition) SetPrintingMintAccount(printingMint common.PublicKey) *DeprecatedCreateMasterEdition

SetPrintingMintAccount sets the "printingMint" parameter. Printing mint - A mint you control that can mint tokens that can be exchanged for limited editions of your master edition via the MintNewEditionFromMasterEditionViaToken endpoint

func (*DeprecatedCreateMasterEdition) SetPrintingMintAuthorityAccount

func (obj *DeprecatedCreateMasterEdition) SetPrintingMintAuthorityAccount(printingMintAuthority common.PublicKey) *DeprecatedCreateMasterEdition

SetPrintingMintAuthorityAccount sets the "printingMintAuthority" parameter. Printing mint authority - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY.

func (*DeprecatedCreateMasterEdition) SetProgramId

func (*DeprecatedCreateMasterEdition) SetRentAccount

SetRentAccount sets the "rent" parameter. Rent info

func (*DeprecatedCreateMasterEdition) SetSystemProgramAccount

func (obj *DeprecatedCreateMasterEdition) SetSystemProgramAccount(systemProgram common.PublicKey) *DeprecatedCreateMasterEdition

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*DeprecatedCreateMasterEdition) SetTokenProgramAccount

func (obj *DeprecatedCreateMasterEdition) SetTokenProgramAccount(tokenProgram common.PublicKey) *DeprecatedCreateMasterEdition

SetTokenProgramAccount sets the "tokenProgram" parameter. Token program

func (*DeprecatedCreateMasterEdition) SetUpdateAuthorityAccount

func (obj *DeprecatedCreateMasterEdition) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *DeprecatedCreateMasterEdition

SetUpdateAuthorityAccount sets the "updateAuthority" parameter. Current Update authority key

func (*DeprecatedCreateMasterEdition) UnmarshalWithDecoder

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

func (*DeprecatedCreateMasterEdition) Validate

func (obj *DeprecatedCreateMasterEdition) Validate() error

func (*DeprecatedCreateMasterEdition) ValidateAndBuild

func (obj *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 `PDA for ReservationList of ['metadata', program id, master edition key, 'reservation', resource-key]`
	// [1] = [SIGNER] payer `Payer`
	// [2] = [SIGNER] updateAuthority `Update authority`
	// [3] = [] masterEdition ` Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])`
	// [4] = [] resource `A resource you wish to tie the reservation list to. This is so your later visitors who come to redeem can derive your reservation list PDA with something they can easily get at. You choose what this should be.`
	// [5] = [] metadata `Metadata key (pda of ['metadata', program id, mint id])`
	// [6] = [] systemProgram `System program`
	// [7] = [] rent `Rent info`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

DeprecatedCreateReservationList Instruction

func NewDeprecatedCreateReservationListInstruction

func NewDeprecatedCreateReservationListInstruction(
	reservationList common.PublicKey,
	payer common.PublicKey,
	updateAuthority common.PublicKey,
	masterEdition common.PublicKey,
	resource common.PublicKey,
	metadata common.PublicKey,
	systemProgram common.PublicKey,
	rent common.PublicKey,
) *DeprecatedCreateReservationList

NewDeprecatedCreateReservationListInstruction

Parameters:

reservationList: PDA for ReservationList of ['metadata', program id, master edition key, 'reservation', resource-key]
payer: Payer
updateAuthority: Update authority
masterEdition:  Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])
resource: A resource you wish to tie the reservation list to. This is so your later visitors who come to redeem can derive your reservation list PDA with something they can easily get at. You choose what this should be.
metadata: Metadata key (pda of ['metadata', program id, mint id])
systemProgram: System program
rent: Rent info

func NewDeprecatedCreateReservationListInstructionBuilder

func NewDeprecatedCreateReservationListInstructionBuilder() *DeprecatedCreateReservationList

NewDeprecatedCreateReservationListInstructionBuilder creates a new `DeprecatedCreateReservationList` instruction builder.

func (*DeprecatedCreateReservationList) Build

func (*DeprecatedCreateReservationList) EncodeToTree

func (obj *DeprecatedCreateReservationList) EncodeToTree(parent treeout.Branches)

func (*DeprecatedCreateReservationList) GetMasterEditionAccount

func (obj *DeprecatedCreateReservationList) GetMasterEditionAccount() *common.AccountMeta

GetMasterEditionAccount gets the "masterEdition" parameter.

Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])

func (*DeprecatedCreateReservationList) GetMetadataAccount

func (obj *DeprecatedCreateReservationList) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])

func (*DeprecatedCreateReservationList) GetPayerAccount

func (obj *DeprecatedCreateReservationList) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. Payer

func (*DeprecatedCreateReservationList) GetRentAccount

func (obj *DeprecatedCreateReservationList) GetRentAccount() *common.AccountMeta

GetRentAccount gets the "rent" parameter. Rent info

func (*DeprecatedCreateReservationList) GetReservationListAccount

func (obj *DeprecatedCreateReservationList) GetReservationListAccount() *common.AccountMeta

GetReservationListAccount gets the "reservationList" parameter. PDA for ReservationList of ['metadata', program id, master edition key, 'reservation', resource-key]

func (*DeprecatedCreateReservationList) GetResourceAccount

func (obj *DeprecatedCreateReservationList) GetResourceAccount() *common.AccountMeta

GetResourceAccount gets the "resource" parameter. A resource you wish to tie the reservation list to. This is so your later visitors who come to redeem can derive your reservation list PDA with something they can easily get at. You choose what this should be.

func (*DeprecatedCreateReservationList) GetSystemProgramAccount

func (obj *DeprecatedCreateReservationList) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*DeprecatedCreateReservationList) GetUpdateAuthorityAccount

func (obj *DeprecatedCreateReservationList) GetUpdateAuthorityAccount() *common.AccountMeta

GetUpdateAuthorityAccount gets the "updateAuthority" parameter. Update authority

func (*DeprecatedCreateReservationList) MarshalWithEncoder

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

func (*DeprecatedCreateReservationList) SetMasterEditionAccount

func (obj *DeprecatedCreateReservationList) SetMasterEditionAccount(masterEdition common.PublicKey) *DeprecatedCreateReservationList

SetMasterEditionAccount sets the "masterEdition" parameter.

Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])

func (*DeprecatedCreateReservationList) SetMetadataAccount

SetMetadataAccount sets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])

func (*DeprecatedCreateReservationList) SetPayerAccount

SetPayerAccount sets the "payer" parameter. Payer

func (*DeprecatedCreateReservationList) SetProgramId

func (*DeprecatedCreateReservationList) SetRentAccount

SetRentAccount sets the "rent" parameter. Rent info

func (*DeprecatedCreateReservationList) SetReservationListAccount

func (obj *DeprecatedCreateReservationList) SetReservationListAccount(reservationList common.PublicKey) *DeprecatedCreateReservationList

SetReservationListAccount sets the "reservationList" parameter. PDA for ReservationList of ['metadata', program id, master edition key, 'reservation', resource-key]

func (*DeprecatedCreateReservationList) SetResourceAccount

SetResourceAccount sets the "resource" parameter. A resource you wish to tie the reservation list to. This is so your later visitors who come to redeem can derive your reservation list PDA with something they can easily get at. You choose what this should be.

func (*DeprecatedCreateReservationList) SetSystemProgramAccount

func (obj *DeprecatedCreateReservationList) SetSystemProgramAccount(systemProgram common.PublicKey) *DeprecatedCreateReservationList

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*DeprecatedCreateReservationList) SetUpdateAuthorityAccount

func (obj *DeprecatedCreateReservationList) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *DeprecatedCreateReservationList

SetUpdateAuthorityAccount sets the "updateAuthority" parameter. Update authority

func (*DeprecatedCreateReservationList) UnmarshalWithDecoder

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

func (*DeprecatedCreateReservationList) Validate

func (obj *DeprecatedCreateReservationList) Validate() error

func (*DeprecatedCreateReservationList) ValidateAndBuild

func (obj *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 `New Metadata key (pda of ['metadata', program id, mint id])`
	// [1] = [WRITE] edition `New Edition V1 (pda of ['metadata', program id, mint id, 'edition'])`
	// [2] = [WRITE] masterEdition `Master Record Edition V1 (pda of ['metadata', program id, master metadata mint id, 'edition'])`
	// [3] = [WRITE] mint `Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY`
	// [4] = [SIGNER] mintAuthority `Mint authority of new mint`
	// [5] = [WRITE] printingMint `Printing Mint of master record edition`
	// [6] = [WRITE] masterTokenAccount `Token account containing Printing mint token to be transferred`
	// [7] = [WRITE] editionMarker `Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master mint id, edition_number])`
	// [8] = [SIGNER] burnAuthority `Burn authority for this token`
	// [9] = [SIGNER] payer `payer`
	// [10] = [] masterUpdateAuthority `update authority info for new metadata account`
	// [11] = [] masterMetadata `Master record metadata account`
	// [12] = [] tokenProgram `Token program`
	// [13] = [] systemProgram `System program`
	// [14] = [] rent `Rent info`
	// [15] = [WRITE] reservationList `Reservation List - If present, and you are on this list, you can get an edition number given by your position on the list.`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

DeprecatedMintNewEditionFromMasterEditionViaPrintingToken Instruction

func NewDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstruction

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

NewDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstruction

Parameters:

metadata: New Metadata key (pda of ['metadata', program id, mint id])
edition: New Edition V1 (pda of ['metadata', program id, mint id, 'edition'])
masterEdition: Master Record Edition V1 (pda of ['metadata', program id, master metadata mint id, 'edition'])
mint: Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
mintAuthority: Mint authority of new mint
printingMint: Printing Mint of master record edition
masterTokenAccount: Token account containing Printing mint token to be transferred
editionMarker: Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master mint id, edition_number])
burnAuthority: Burn authority for this token
payer: payer
masterUpdateAuthority: update authority info for new metadata account
masterMetadata: Master record metadata account
tokenProgram: Token program
systemProgram: System program
rent: Rent info
reservationList: Reservation List - If present, and you are on this list, you can get an edition number given by your position on the list.

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" parameter. Burn authority for this token

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetEditionAccount

GetEditionAccount gets the "edition" parameter. New Edition V1 (pda of ['metadata', program id, mint id, 'edition'])

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetEditionMarkerAccount

GetEditionMarkerAccount gets the "editionMarker" parameter. Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master mint id, edition_number])

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMasterEditionAccount

GetMasterEditionAccount gets the "masterEdition" parameter. Master Record Edition V1 (pda of ['metadata', program id, master metadata mint id, 'edition'])

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMasterMetadataAccount

GetMasterMetadataAccount gets the "masterMetadata" parameter. Master record metadata account

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMasterTokenAccountAccount

GetMasterTokenAccountAccount gets the "masterTokenAccount" parameter. Token account containing Printing mint token to be transferred

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMasterUpdateAuthorityAccount

func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMasterUpdateAuthorityAccount() *common.AccountMeta

GetMasterUpdateAuthorityAccount gets the "masterUpdateAuthority" parameter. update authority info for new metadata account

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMetadataAccount

GetMetadataAccount gets the "metadata" parameter. New Metadata key (pda of ['metadata', program id, mint id])

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMintAccount

GetMintAccount gets the "mint" parameter. Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMintAuthorityAccount

GetMintAuthorityAccount gets the "mintAuthority" parameter. Mint authority of new mint

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetPayerAccount

GetPayerAccount gets the "payer" parameter. payer

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetPrintingMintAccount

GetPrintingMintAccount gets the "printingMint" parameter. Printing Mint of master record edition

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetRentAccount

GetRentAccount gets the "rent" parameter. Rent info

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetReservationListAccount

GetReservationListAccount gets the "reservationList" parameter. Reservation List - If present, and you are on this list, you can get an edition number given by your position on the list.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetSystemProgramAccount

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetTokenProgramAccount

GetTokenProgramAccount gets the "tokenProgram" parameter. Token program

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) MarshalWithEncoder

func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetBurnAuthorityAccount

SetBurnAuthorityAccount sets the "burnAuthority" parameter. Burn authority for this token

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetEditionAccount

SetEditionAccount sets the "edition" parameter. New Edition V1 (pda of ['metadata', program id, mint id, 'edition'])

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetEditionMarkerAccount

SetEditionMarkerAccount sets the "editionMarker" parameter. Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master mint id, edition_number])

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMasterEditionAccount

SetMasterEditionAccount sets the "masterEdition" parameter. Master Record Edition V1 (pda of ['metadata', program id, master metadata mint id, 'edition'])

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMasterMetadataAccount

SetMasterMetadataAccount sets the "masterMetadata" parameter. Master record metadata account

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMasterTokenAccountAccount

SetMasterTokenAccountAccount sets the "masterTokenAccount" parameter. Token account containing Printing mint token to be transferred

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMasterUpdateAuthorityAccount

SetMasterUpdateAuthorityAccount sets the "masterUpdateAuthority" parameter. update authority info for new metadata account

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMetadataAccount

SetMetadataAccount sets the "metadata" parameter. New Metadata key (pda of ['metadata', program id, mint id])

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMintAccount

SetMintAccount sets the "mint" parameter. Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMintAuthorityAccount

SetMintAuthorityAccount sets the "mintAuthority" parameter. Mint authority of new mint

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetPayerAccount

SetPayerAccount sets the "payer" parameter. payer

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetPrintingMintAccount

SetPrintingMintAccount sets the "printingMint" parameter. Printing Mint of master record edition

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetProgramId

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetRentAccount

SetRentAccount sets the "rent" parameter. Rent info

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetReservationListAccount

SetReservationListAccount sets the "reservationList" parameter. Reservation List - If present, and you are on this list, you can get an edition number given by your position on the list.

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetSystemProgramAccount

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetTokenProgramAccount

SetTokenProgramAccount sets the "tokenProgram" parameter. Token program

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) UnmarshalWithDecoder

func (obj *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) UnmarshalWithDecoder(decoder *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 {
	// [0] = [WRITE] destination `Destination account`
	// [1] = [WRITE] printingMint `Printing mint`
	// [2] = [SIGNER] updateAuthority `Update authority`
	// [3] = [] metadata `Metadata key (pda of ['metadata', program id, mint id])`
	// [4] = [] masterEdition `Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])`
	// [5] = [] tokenProgram `Token program`
	// [6] = [] rent `Rent`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

DeprecatedMintPrintingTokens Instruction

func NewDeprecatedMintPrintingTokensInstruction

func NewDeprecatedMintPrintingTokensInstruction(
	destination common.PublicKey,
	printingMint common.PublicKey,
	updateAuthority common.PublicKey,
	metadata common.PublicKey,
	masterEdition common.PublicKey,
	tokenProgram common.PublicKey,
	rent common.PublicKey,
) *DeprecatedMintPrintingTokens

NewDeprecatedMintPrintingTokensInstruction

Parameters:

destination: Destination account
printingMint: Printing mint
updateAuthority: Update authority
metadata: Metadata key (pda of ['metadata', program id, mint id])
masterEdition: Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])
tokenProgram: Token program
rent: Rent

func NewDeprecatedMintPrintingTokensInstructionBuilder

func NewDeprecatedMintPrintingTokensInstructionBuilder() *DeprecatedMintPrintingTokens

NewDeprecatedMintPrintingTokensInstructionBuilder creates a new `DeprecatedMintPrintingTokens` instruction builder.

func (*DeprecatedMintPrintingTokens) Build

func (*DeprecatedMintPrintingTokens) EncodeToTree

func (obj *DeprecatedMintPrintingTokens) EncodeToTree(parent treeout.Branches)

func (*DeprecatedMintPrintingTokens) GetDestinationAccount

func (obj *DeprecatedMintPrintingTokens) GetDestinationAccount() *common.AccountMeta

GetDestinationAccount gets the "destination" parameter. Destination account

func (*DeprecatedMintPrintingTokens) GetMasterEditionAccount

func (obj *DeprecatedMintPrintingTokens) GetMasterEditionAccount() *common.AccountMeta

GetMasterEditionAccount gets the "masterEdition" parameter. Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])

func (*DeprecatedMintPrintingTokens) GetMetadataAccount

func (obj *DeprecatedMintPrintingTokens) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])

func (*DeprecatedMintPrintingTokens) GetPrintingMintAccount

func (obj *DeprecatedMintPrintingTokens) GetPrintingMintAccount() *common.AccountMeta

GetPrintingMintAccount gets the "printingMint" parameter. Printing mint

func (*DeprecatedMintPrintingTokens) GetRentAccount

func (obj *DeprecatedMintPrintingTokens) GetRentAccount() *common.AccountMeta

GetRentAccount gets the "rent" parameter. Rent

func (*DeprecatedMintPrintingTokens) GetTokenProgramAccount

func (obj *DeprecatedMintPrintingTokens) GetTokenProgramAccount() *common.AccountMeta

GetTokenProgramAccount gets the "tokenProgram" parameter. Token program

func (*DeprecatedMintPrintingTokens) GetUpdateAuthorityAccount

func (obj *DeprecatedMintPrintingTokens) GetUpdateAuthorityAccount() *common.AccountMeta

GetUpdateAuthorityAccount gets the "updateAuthority" parameter. Update authority

func (*DeprecatedMintPrintingTokens) MarshalWithEncoder

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

func (*DeprecatedMintPrintingTokens) SetDestinationAccount

func (obj *DeprecatedMintPrintingTokens) SetDestinationAccount(destination common.PublicKey) *DeprecatedMintPrintingTokens

SetDestinationAccount sets the "destination" parameter. Destination account

func (*DeprecatedMintPrintingTokens) SetMasterEditionAccount

func (obj *DeprecatedMintPrintingTokens) SetMasterEditionAccount(masterEdition common.PublicKey) *DeprecatedMintPrintingTokens

SetMasterEditionAccount sets the "masterEdition" parameter. Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])

func (*DeprecatedMintPrintingTokens) SetMetadataAccount

SetMetadataAccount sets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])

func (*DeprecatedMintPrintingTokens) SetPrintingMintAccount

func (obj *DeprecatedMintPrintingTokens) SetPrintingMintAccount(printingMint common.PublicKey) *DeprecatedMintPrintingTokens

SetPrintingMintAccount sets the "printingMint" parameter. Printing mint

func (*DeprecatedMintPrintingTokens) SetProgramId

func (*DeprecatedMintPrintingTokens) SetRentAccount

func (obj *DeprecatedMintPrintingTokens) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *DeprecatedMintPrintingTokens

SetRentAccount sets the "rent" parameter. Rent

func (*DeprecatedMintPrintingTokens) SetTokenProgramAccount

func (obj *DeprecatedMintPrintingTokens) SetTokenProgramAccount(tokenProgram common.PublicKey) *DeprecatedMintPrintingTokens

SetTokenProgramAccount sets the "tokenProgram" parameter. Token program

func (*DeprecatedMintPrintingTokens) SetUpdateAuthorityAccount

func (obj *DeprecatedMintPrintingTokens) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *DeprecatedMintPrintingTokens

SetUpdateAuthorityAccount sets the "updateAuthority" parameter. Update authority

func (*DeprecatedMintPrintingTokens) UnmarshalWithDecoder

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

func (*DeprecatedMintPrintingTokens) Validate

func (obj *DeprecatedMintPrintingTokens) Validate() error

func (*DeprecatedMintPrintingTokens) ValidateAndBuild

func (obj *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 {
	// [0] = [WRITE] destination `Destination account`
	// [1] = [WRITE] token `Token account containing one time authorization token`
	// [2] = [WRITE] oneTimePrintingAuthorizationMint `One time authorization mint`
	// [3] = [WRITE] printingMint `Printing mint`
	// [4] = [SIGNER] burnAuthority `Burn authority`
	// [5] = [] metadata `Metadata key (pda of ['metadata', program id, mint id])`
	// [6] = [] masterEdition `Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])`
	// [7] = [] tokenProgram `Token program`
	// [8] = [] rent `Rent`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

DeprecatedMintPrintingTokensViaToken Instruction

func NewDeprecatedMintPrintingTokensViaTokenInstruction

func NewDeprecatedMintPrintingTokensViaTokenInstruction(
	destination common.PublicKey,
	token common.PublicKey,
	oneTimePrintingAuthorizationMint common.PublicKey,
	printingMint common.PublicKey,
	burnAuthority common.PublicKey,
	metadata common.PublicKey,
	masterEdition common.PublicKey,
	tokenProgram common.PublicKey,
	rent common.PublicKey,
) *DeprecatedMintPrintingTokensViaToken

NewDeprecatedMintPrintingTokensViaTokenInstruction

Parameters:

destination: Destination account
token: Token account containing one time authorization token
oneTimePrintingAuthorizationMint: One time authorization mint
printingMint: Printing mint
burnAuthority: Burn authority
metadata: Metadata key (pda of ['metadata', program id, mint id])
masterEdition: Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])
tokenProgram: Token program
rent: Rent

func NewDeprecatedMintPrintingTokensViaTokenInstructionBuilder

func NewDeprecatedMintPrintingTokensViaTokenInstructionBuilder() *DeprecatedMintPrintingTokensViaToken

NewDeprecatedMintPrintingTokensViaTokenInstructionBuilder creates a new `DeprecatedMintPrintingTokensViaToken` instruction builder.

func (*DeprecatedMintPrintingTokensViaToken) Build

func (*DeprecatedMintPrintingTokensViaToken) EncodeToTree

func (obj *DeprecatedMintPrintingTokensViaToken) EncodeToTree(parent treeout.Branches)

func (*DeprecatedMintPrintingTokensViaToken) GetBurnAuthorityAccount

func (obj *DeprecatedMintPrintingTokensViaToken) GetBurnAuthorityAccount() *common.AccountMeta

GetBurnAuthorityAccount gets the "burnAuthority" parameter. Burn authority

func (*DeprecatedMintPrintingTokensViaToken) GetDestinationAccount

func (obj *DeprecatedMintPrintingTokensViaToken) GetDestinationAccount() *common.AccountMeta

GetDestinationAccount gets the "destination" parameter. Destination account

func (*DeprecatedMintPrintingTokensViaToken) GetMasterEditionAccount

func (obj *DeprecatedMintPrintingTokensViaToken) GetMasterEditionAccount() *common.AccountMeta

GetMasterEditionAccount gets the "masterEdition" parameter. Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])

func (*DeprecatedMintPrintingTokensViaToken) GetMetadataAccount

func (obj *DeprecatedMintPrintingTokensViaToken) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])

func (*DeprecatedMintPrintingTokensViaToken) GetOneTimePrintingAuthorizationMintAccount

func (obj *DeprecatedMintPrintingTokensViaToken) GetOneTimePrintingAuthorizationMintAccount() *common.AccountMeta

GetOneTimePrintingAuthorizationMintAccount gets the "oneTimePrintingAuthorizationMint" parameter. One time authorization mint

func (*DeprecatedMintPrintingTokensViaToken) GetPrintingMintAccount

func (obj *DeprecatedMintPrintingTokensViaToken) GetPrintingMintAccount() *common.AccountMeta

GetPrintingMintAccount gets the "printingMint" parameter. Printing mint

func (*DeprecatedMintPrintingTokensViaToken) GetRentAccount

GetRentAccount gets the "rent" parameter. Rent

func (*DeprecatedMintPrintingTokensViaToken) GetTokenAccount

GetTokenAccount gets the "token" parameter. Token account containing one time authorization token

func (*DeprecatedMintPrintingTokensViaToken) GetTokenProgramAccount

func (obj *DeprecatedMintPrintingTokensViaToken) GetTokenProgramAccount() *common.AccountMeta

GetTokenProgramAccount gets the "tokenProgram" parameter. Token program

func (*DeprecatedMintPrintingTokensViaToken) MarshalWithEncoder

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

func (*DeprecatedMintPrintingTokensViaToken) SetBurnAuthorityAccount

SetBurnAuthorityAccount sets the "burnAuthority" parameter. Burn authority

func (*DeprecatedMintPrintingTokensViaToken) SetDestinationAccount

SetDestinationAccount sets the "destination" parameter. Destination account

func (*DeprecatedMintPrintingTokensViaToken) SetMasterEditionAccount

SetMasterEditionAccount sets the "masterEdition" parameter. Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])

func (*DeprecatedMintPrintingTokensViaToken) SetMetadataAccount

SetMetadataAccount sets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])

func (*DeprecatedMintPrintingTokensViaToken) SetOneTimePrintingAuthorizationMintAccount

func (obj *DeprecatedMintPrintingTokensViaToken) SetOneTimePrintingAuthorizationMintAccount(oneTimePrintingAuthorizationMint common.PublicKey) *DeprecatedMintPrintingTokensViaToken

SetOneTimePrintingAuthorizationMintAccount sets the "oneTimePrintingAuthorizationMint" parameter. One time authorization mint

func (*DeprecatedMintPrintingTokensViaToken) SetPrintingMintAccount

SetPrintingMintAccount sets the "printingMint" parameter. Printing mint

func (*DeprecatedMintPrintingTokensViaToken) SetProgramId

func (*DeprecatedMintPrintingTokensViaToken) SetRentAccount

SetRentAccount sets the "rent" parameter. Rent

func (*DeprecatedMintPrintingTokensViaToken) SetTokenAccount

SetTokenAccount sets the "token" parameter. Token account containing one time authorization token

func (*DeprecatedMintPrintingTokensViaToken) SetTokenProgramAccount

SetTokenProgramAccount sets the "tokenProgram" parameter. Token program

func (*DeprecatedMintPrintingTokensViaToken) UnmarshalWithDecoder

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

func (*DeprecatedMintPrintingTokensViaToken) Validate

func (*DeprecatedMintPrintingTokensViaToken) ValidateAndBuild

func (obj *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 {
	// [0] = [WRITE] masterEdition `Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])`
	// [1] = [WRITE] reservationList `PDA for ReservationList of ['metadata', program id, master edition key, 'reservation', resource-key]`
	// [2] = [SIGNER] resource `The resource you tied the reservation list too`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

DeprecatedSetReservationList Instruction

func NewDeprecatedSetReservationListInstruction

func NewDeprecatedSetReservationListInstruction(
	masterEdition common.PublicKey,
	reservationList common.PublicKey,
	resource common.PublicKey,
) *DeprecatedSetReservationList

NewDeprecatedSetReservationListInstruction

Parameters:

masterEdition: Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])
reservationList: PDA for ReservationList of ['metadata', program id, master edition key, 'reservation', resource-key]
resource: The resource you tied the reservation list too

func NewDeprecatedSetReservationListInstructionBuilder

func NewDeprecatedSetReservationListInstructionBuilder() *DeprecatedSetReservationList

NewDeprecatedSetReservationListInstructionBuilder creates a new `DeprecatedSetReservationList` instruction builder.

func (*DeprecatedSetReservationList) Build

func (*DeprecatedSetReservationList) EncodeToTree

func (obj *DeprecatedSetReservationList) EncodeToTree(parent treeout.Branches)

func (*DeprecatedSetReservationList) GetMasterEditionAccount

func (obj *DeprecatedSetReservationList) GetMasterEditionAccount() *common.AccountMeta

GetMasterEditionAccount gets the "masterEdition" parameter. Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])

func (*DeprecatedSetReservationList) GetReservationListAccount

func (obj *DeprecatedSetReservationList) GetReservationListAccount() *common.AccountMeta

GetReservationListAccount gets the "reservationList" parameter. PDA for ReservationList of ['metadata', program id, master edition key, 'reservation', resource-key]

func (*DeprecatedSetReservationList) GetResourceAccount

func (obj *DeprecatedSetReservationList) GetResourceAccount() *common.AccountMeta

GetResourceAccount gets the "resource" parameter. The resource you tied the reservation list too

func (*DeprecatedSetReservationList) MarshalWithEncoder

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

func (*DeprecatedSetReservationList) SetMasterEditionAccount

func (obj *DeprecatedSetReservationList) SetMasterEditionAccount(masterEdition common.PublicKey) *DeprecatedSetReservationList

SetMasterEditionAccount sets the "masterEdition" parameter. Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])

func (*DeprecatedSetReservationList) SetProgramId

func (*DeprecatedSetReservationList) SetReservationListAccount

func (obj *DeprecatedSetReservationList) SetReservationListAccount(reservationList common.PublicKey) *DeprecatedSetReservationList

SetReservationListAccount sets the "reservationList" parameter. PDA for ReservationList of ['metadata', program id, master edition key, 'reservation', resource-key]

func (*DeprecatedSetReservationList) SetResourceAccount

func (obj *DeprecatedSetReservationList) SetResourceAccount(resource common.PublicKey, multiSigners ...common.PublicKey) *DeprecatedSetReservationList

SetResourceAccount sets the "resource" parameter. The resource you tied the reservation list too

func (*DeprecatedSetReservationList) UnmarshalWithDecoder

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

func (*DeprecatedSetReservationList) Validate

func (obj *DeprecatedSetReservationList) Validate() error

func (*DeprecatedSetReservationList) ValidateAndBuild

func (obj *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 DerivedKeyInvalidError

type DerivedKeyInvalidError struct{}

DerivedKeyInvalidError Error: 27 `Derived key invalid`

func (DerivedKeyInvalidError) Code

func (e DerivedKeyInvalidError) Code() int

func (DerivedKeyInvalidError) Error

func (e DerivedKeyInvalidError) Error() string

type DestinationMintMismatchError

type DestinationMintMismatchError struct{}

DestinationMintMismatchError Error: 20 “

func (DestinationMintMismatchError) Code

func (DestinationMintMismatchError) Error

type DisabledError

type DisabledError struct{}

DisabledError Error: 35 “

func (DisabledError) Code

func (e DisabledError) Code() int

func (DisabledError) Error

func (e DisabledError) Error() string

type DuplicateCreatorAddressError

type DuplicateCreatorAddressError struct{}

DuplicateCreatorAddressError Error: 60 `No duplicate creator addresses`

func (DuplicateCreatorAddressError) Code

func (DuplicateCreatorAddressError) Error

type Edition

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

Edition Struct

func (*Edition) MarshalWithEncoder

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

func (*Edition) UnmarshalWithDecoder

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

type EditionAlreadyMintedError

type EditionAlreadyMintedError struct{}

EditionAlreadyMintedError Error: 21 “

func (EditionAlreadyMintedError) Code

func (e EditionAlreadyMintedError) Code() int

func (EditionAlreadyMintedError) Error

type EditionMarker

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

EditionMarker Struct

func (*EditionMarker) MarshalWithEncoder

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

func (*EditionMarker) UnmarshalWithDecoder

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

type EditionMarkerV2

type EditionMarkerV2 struct {
	Key    Key
	Ledger []byte
}

EditionMarkerV2 Struct

func (*EditionMarkerV2) MarshalWithEncoder

func (obj *EditionMarkerV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*EditionMarkerV2) UnmarshalWithDecoder

func (obj *EditionMarkerV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type EditionMintDecimalsShouldBeZeroError

type EditionMintDecimalsShouldBeZeroError struct{}

EditionMintDecimalsShouldBeZeroError Error: 24 `EditionMintDecimalsShouldBeZero`

func (EditionMintDecimalsShouldBeZeroError) Code

func (EditionMintDecimalsShouldBeZeroError) Error

type EditionNumberGreaterThanMaxSupplyError

type EditionNumberGreaterThanMaxSupplyError struct{}

EditionNumberGreaterThanMaxSupplyError Error: 122 `Edition Number greater than max supply`

func (EditionNumberGreaterThanMaxSupplyError) Code

func (EditionNumberGreaterThanMaxSupplyError) Error

type EditionOverrideCannotBeZeroError

type EditionOverrideCannotBeZeroError struct{}

EditionOverrideCannotBeZeroError Error: 97 `Edition override cannot be zero`

func (EditionOverrideCannotBeZeroError) Code

func (EditionOverrideCannotBeZeroError) Error

type EditionsMustHaveExactlyOneTokenError

type EditionsMustHaveExactlyOneTokenError struct{}

EditionsMustHaveExactlyOneTokenError Error: 16 `Editions must have exactly one token`

func (EditionsMustHaveExactlyOneTokenError) Code

func (EditionsMustHaveExactlyOneTokenError) Error

type EscrowAuthority

type EscrowAuthority struct {
	TokenOwner  *struct{}               `bin:"optional"`
	Creator     *EscrowAuthorityCreator `bin:"optional"`
	Cd          *EscrowAuthorityCd      `bin:"optional"`
	TokenOwner2 *struct{}               `bin:"optional"`
}

EscrowAuthority Enum

func NewEscrowAuthority_Cd

func NewEscrowAuthority_Cd(field0 common.PublicKey) EscrowAuthority

func NewEscrowAuthority_Creator

func NewEscrowAuthority_Creator(field0 common.PublicKey) EscrowAuthority

func NewEscrowAuthority_TokenOwner

func NewEscrowAuthority_TokenOwner() EscrowAuthority

func NewEscrowAuthority_TokenOwner2

func NewEscrowAuthority_TokenOwner2() EscrowAuthority

func (*EscrowAuthority) AsCd

func (obj *EscrowAuthority) AsCd() EscrowAuthorityCd

func (*EscrowAuthority) AsCreator

func (obj *EscrowAuthority) AsCreator() EscrowAuthorityCreator

func (*EscrowAuthority) IsCd

func (obj *EscrowAuthority) IsCd() bool

func (*EscrowAuthority) IsCreator

func (obj *EscrowAuthority) IsCreator() bool

func (*EscrowAuthority) IsTokenOwner

func (obj *EscrowAuthority) IsTokenOwner() bool

func (*EscrowAuthority) IsTokenOwner2

func (obj *EscrowAuthority) IsTokenOwner2() bool

func (*EscrowAuthority) MarshalWithEncoder

func (obj *EscrowAuthority) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*EscrowAuthority) String

func (obj *EscrowAuthority) String() string

func (*EscrowAuthority) UnmarshalWithDecoder

func (obj *EscrowAuthority) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type EscrowAuthorityCd

type EscrowAuthorityCd struct {
	Field0 common.PublicKey
}

func (*EscrowAuthorityCd) MarshalWithEncoder

func (obj *EscrowAuthorityCd) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*EscrowAuthorityCd) UnmarshalWithDecoder

func (obj *EscrowAuthorityCd) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type EscrowAuthorityCreator

type EscrowAuthorityCreator struct {
	Field0 common.PublicKey
}

func (*EscrowAuthorityCreator) MarshalWithEncoder

func (obj *EscrowAuthorityCreator) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*EscrowAuthorityCreator) UnmarshalWithDecoder

func (obj *EscrowAuthorityCreator) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type EscrowParentHasDelegateError

type EscrowParentHasDelegateError struct{}

EscrowParentHasDelegateError Error: 133 `Escrow parent cannot have a delegate`

func (EscrowParentHasDelegateError) Code

func (EscrowParentHasDelegateError) Error

type FeatureNotSupportedError

type FeatureNotSupportedError struct{}

FeatureNotSupportedError Error: 145 `Feature not supported currently`

func (FeatureNotSupportedError) Code

func (e FeatureNotSupportedError) Code() int

func (FeatureNotSupportedError) Error

func (e FeatureNotSupportedError) Error() string

type FreezeDelegatedAccount

type FreezeDelegatedAccount struct {
	// [0] = [WRITE, SIGNER] delegate `Delegate`
	// [1] = [WRITE] tokenAccount `Token account to freeze`
	// [2] = [] edition `Edition`
	// [3] = [] mint `Token mint`
	// [4] = [] tokenProgram `Token Program`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

FreezeDelegatedAccount Instruction

func NewFreezeDelegatedAccountInstruction

func NewFreezeDelegatedAccountInstruction(
	delegate common.PublicKey,
	tokenAccount common.PublicKey,
	edition common.PublicKey,
	mint common.PublicKey,
	tokenProgram common.PublicKey,
) *FreezeDelegatedAccount

NewFreezeDelegatedAccountInstruction

Parameters:

delegate: Delegate
tokenAccount: Token account to freeze
edition: Edition
mint: Token mint
tokenProgram: Token Program

func NewFreezeDelegatedAccountInstructionBuilder

func NewFreezeDelegatedAccountInstructionBuilder() *FreezeDelegatedAccount

NewFreezeDelegatedAccountInstructionBuilder creates a new `FreezeDelegatedAccount` instruction builder.

func (*FreezeDelegatedAccount) Build

func (obj *FreezeDelegatedAccount) Build() *Instruction

func (*FreezeDelegatedAccount) EncodeToTree

func (obj *FreezeDelegatedAccount) EncodeToTree(parent treeout.Branches)

func (*FreezeDelegatedAccount) GetDelegateAccount

func (obj *FreezeDelegatedAccount) GetDelegateAccount() *common.AccountMeta

GetDelegateAccount gets the "delegate" parameter. Delegate

func (*FreezeDelegatedAccount) GetEditionAccount

func (obj *FreezeDelegatedAccount) GetEditionAccount() *common.AccountMeta

GetEditionAccount gets the "edition" parameter. Edition

func (*FreezeDelegatedAccount) GetMintAccount

func (obj *FreezeDelegatedAccount) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Token mint

func (*FreezeDelegatedAccount) GetTokenAccountAccount

func (obj *FreezeDelegatedAccount) GetTokenAccountAccount() *common.AccountMeta

GetTokenAccountAccount gets the "tokenAccount" parameter. Token account to freeze

func (*FreezeDelegatedAccount) GetTokenProgramAccount

func (obj *FreezeDelegatedAccount) GetTokenProgramAccount() *common.AccountMeta

GetTokenProgramAccount gets the "tokenProgram" parameter. Token Program

func (*FreezeDelegatedAccount) MarshalWithEncoder

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

func (*FreezeDelegatedAccount) SetDelegateAccount

func (obj *FreezeDelegatedAccount) SetDelegateAccount(delegate common.PublicKey) *FreezeDelegatedAccount

SetDelegateAccount sets the "delegate" parameter. Delegate

func (*FreezeDelegatedAccount) SetEditionAccount

func (obj *FreezeDelegatedAccount) SetEditionAccount(edition common.PublicKey) *FreezeDelegatedAccount

SetEditionAccount sets the "edition" parameter. Edition

func (*FreezeDelegatedAccount) SetMintAccount

SetMintAccount sets the "mint" parameter. Token mint

func (*FreezeDelegatedAccount) SetProgramId

func (obj *FreezeDelegatedAccount) SetProgramId(programId *common.PublicKey) *FreezeDelegatedAccount

func (*FreezeDelegatedAccount) SetTokenAccountAccount

func (obj *FreezeDelegatedAccount) SetTokenAccountAccount(tokenAccount common.PublicKey) *FreezeDelegatedAccount

SetTokenAccountAccount sets the "tokenAccount" parameter. Token account to freeze

func (*FreezeDelegatedAccount) SetTokenProgramAccount

func (obj *FreezeDelegatedAccount) SetTokenProgramAccount(tokenProgram common.PublicKey, multiSigners ...common.PublicKey) *FreezeDelegatedAccount

SetTokenProgramAccount sets the "tokenProgram" parameter. Token Program

func (*FreezeDelegatedAccount) UnmarshalWithDecoder

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

func (*FreezeDelegatedAccount) Validate

func (obj *FreezeDelegatedAccount) Validate() error

func (*FreezeDelegatedAccount) ValidateAndBuild

func (obj *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 IncorrectOwnerError

type IncorrectOwnerError struct{}

IncorrectOwnerError Error: 57 `Incorrect account owner`

func (IncorrectOwnerError) Code

func (e IncorrectOwnerError) Code() int

func (IncorrectOwnerError) Error

func (e IncorrectOwnerError) Error() string

type IncorrectTokenStateError

type IncorrectTokenStateError struct{}

IncorrectTokenStateError Error: 164 `Incorrect token state`

func (IncorrectTokenStateError) Code

func (e IncorrectTokenStateError) Code() int

func (IncorrectTokenStateError) Error

func (e IncorrectTokenStateError) Error() string

type Instruction

type Instruction struct {
	binary.BaseVariant
	// contains filtered or unexported fields
}

func DecodeInstruction

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

func (*Instruction) Accounts

func (obj *Instruction) Accounts() (out []*common.AccountMeta)

func (*Instruction) Data

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

func (*Instruction) EncodeToTree

func (obj *Instruction) EncodeToTree(parent treeout.Branches)

func (*Instruction) MarshalWithEncoder

func (obj *Instruction) MarshalWithEncoder(encoder *binary.Encoder) error

func (*Instruction) ProgramID

func (obj *Instruction) ProgramID() common.PublicKey

func (*Instruction) TextEncode

func (obj *Instruction) TextEncode(encoder *text.Encoder, option *text.Option) error

func (*Instruction) UnmarshalWithDecoder

func (obj *Instruction) UnmarshalWithDecoder(decoder *binary.Decoder) error

type InstructionNotSupportedError

type InstructionNotSupportedError struct{}

InstructionNotSupportedError Error: 153 `Instruction not supported for ProgrammableNonFungible assets`

func (InstructionNotSupportedError) Code

func (InstructionNotSupportedError) Error

type InstructionPackError

type InstructionPackError struct{}

InstructionPackError Error: 1 “

func (InstructionPackError) Code

func (e InstructionPackError) Code() int

func (InstructionPackError) Error

func (e InstructionPackError) Error() string

type InstructionUnpackError

type InstructionUnpackError struct{}

InstructionUnpackError Error: 0 “

func (InstructionUnpackError) Code

func (e InstructionUnpackError) Code() int

func (InstructionUnpackError) Error

func (e InstructionUnpackError) Error() string

type InsufficientTokenBalanceError

type InsufficientTokenBalanceError struct{}

InsufficientTokenBalanceError Error: 184 `Token account does not have enough tokens`

func (InsufficientTokenBalanceError) Code

func (InsufficientTokenBalanceError) Error

type InsufficientTokensError

type InsufficientTokensError struct{}

InsufficientTokensError Error: 128 `Insufficient tokens for transfer`

func (InsufficientTokensError) Code

func (e InsufficientTokensError) Code() int

func (InsufficientTokensError) Error

func (e InsufficientTokensError) Error() string

type InvalidAmountError

type InvalidAmountError struct{}

InvalidAmountError Error: 174 `Invalid token amount for this operation or token standard`

func (InvalidAmountError) Code

func (e InvalidAmountError) Code() int

func (InvalidAmountError) Error

func (e InvalidAmountError) Error() string

type InvalidAssociatedTokenAccountProgramError

type InvalidAssociatedTokenAccountProgramError struct{}

InvalidAssociatedTokenAccountProgramError Error: 180 `Invalid Associated Token Account Program`

func (InvalidAssociatedTokenAccountProgramError) Code

func (InvalidAssociatedTokenAccountProgramError) Error

type InvalidAuthorityTypeError

type InvalidAuthorityTypeError struct{}

InvalidAuthorityTypeError Error: 158 `Invalid authority type`

func (InvalidAuthorityTypeError) Code

func (e InvalidAuthorityTypeError) Code() int

func (InvalidAuthorityTypeError) Error

type InvalidAuthorizationRulesError

type InvalidAuthorizationRulesError struct{}

InvalidAuthorizationRulesError Error: 137 `Invalid authorization rules account`

func (InvalidAuthorizationRulesError) Code

func (InvalidAuthorizationRulesError) Error

type InvalidBasisPointsError

type InvalidBasisPointsError struct{}

InvalidBasisPointsError Error: 41 `Basis points cannot be more than 10000`

func (InvalidBasisPointsError) Code

func (e InvalidBasisPointsError) Code() int

func (InvalidBasisPointsError) Error

func (e InvalidBasisPointsError) Error() string

type InvalidBubblegumSignerError

type InvalidBubblegumSignerError struct{}

InvalidBubblegumSignerError Error: 132 `Invalid bubblegum signer`

func (InvalidBubblegumSignerError) Code

func (InvalidBubblegumSignerError) Error

type InvalidCloseAuthorityError

type InvalidCloseAuthorityError struct{}

InvalidCloseAuthorityError Error: 188 `The close authority needs to be revoked by the Utility Delegate`

func (InvalidCloseAuthorityError) Code

func (InvalidCloseAuthorityError) Error

type InvalidCollectionAuthorityRecordError

type InvalidCollectionAuthorityRecordError struct{}

InvalidCollectionAuthorityRecordError Error: 90 “

func (InvalidCollectionAuthorityRecordError) Code

func (InvalidCollectionAuthorityRecordError) Error

type InvalidCollectionSizeChangeError

type InvalidCollectionSizeChangeError struct{}

InvalidCollectionSizeChangeError Error: 131 `Invalid collection size change`

func (InvalidCollectionSizeChangeError) Code

func (InvalidCollectionSizeChangeError) Error

type InvalidCollectionUpdateAuthorityError

type InvalidCollectionUpdateAuthorityError struct{}

InvalidCollectionUpdateAuthorityError Error: 81 `Collection Update Authority is invalid`

func (InvalidCollectionUpdateAuthorityError) Code

func (InvalidCollectionUpdateAuthorityError) Error

type InvalidDelegateArgsError

type InvalidDelegateArgsError struct{}

InvalidDelegateArgsError Error: 169 `Invalid delegate args`

func (InvalidDelegateArgsError) Code

func (e InvalidDelegateArgsError) Code() int

func (InvalidDelegateArgsError) Error

func (e InvalidDelegateArgsError) Error() string

type InvalidDelegateError

type InvalidDelegateError struct{}

InvalidDelegateError Error: 92 `All tokens in this account have not been delegated to this user.`

func (InvalidDelegateError) Code

func (e InvalidDelegateError) Code() int

func (InvalidDelegateError) Error

func (e InvalidDelegateError) Error() string

type InvalidDelegateRoleError

type InvalidDelegateRoleError struct{}

InvalidDelegateRoleError Error: 165 `Invalid delegate role`

func (InvalidDelegateRoleError) Code

func (e InvalidDelegateRoleError) Code() int

func (InvalidDelegateRoleError) Error

func (e InvalidDelegateRoleError) Error() string

type InvalidDelegateRoleForTransferError

type InvalidDelegateRoleForTransferError struct{}

InvalidDelegateRoleForTransferError Error: 151 `Invalid delegate role for transfer`

func (InvalidDelegateRoleForTransferError) Code

func (InvalidDelegateRoleForTransferError) Error

type InvalidEditionIndexError

type InvalidEditionIndexError struct{}

InvalidEditionIndexError Error: 71 `You tried to insert one edition too many into an edition mark pda`

func (InvalidEditionIndexError) Code

func (e InvalidEditionIndexError) Code() int

func (InvalidEditionIndexError) Error

func (e InvalidEditionIndexError) Error() string

type InvalidEditionKeyError

type InvalidEditionKeyError struct{}

InvalidEditionKeyError Error: 6 `Edition's key must match seed of ['metadata', program id, name, 'edition'] provided`

func (InvalidEditionKeyError) Code

func (e InvalidEditionKeyError) Code() int

func (InvalidEditionKeyError) Error

func (e InvalidEditionKeyError) Error() string

type InvalidEditionMarkerError

type InvalidEditionMarkerError struct{}

InvalidEditionMarkerError Error: 119 `Invalid Edition Marker`

func (InvalidEditionMarkerError) Code

func (e InvalidEditionMarkerError) Code() int

func (InvalidEditionMarkerError) Error

type InvalidEscrowBumpSeedError

type InvalidEscrowBumpSeedError struct{}

InvalidEscrowBumpSeedError Error: 124 `Invalid Escrow Account Bump Seed`

func (InvalidEscrowBumpSeedError) Code

func (InvalidEscrowBumpSeedError) Error

type InvalidFeeAccountError

type InvalidFeeAccountError struct{}

InvalidFeeAccountError Error: 191 “

func (InvalidFeeAccountError) Code

func (e InvalidFeeAccountError) Code() int

func (InvalidFeeAccountError) Error

func (e InvalidFeeAccountError) Error() string

type InvalidFreezeAuthorityError

type InvalidFreezeAuthorityError struct{}

InvalidFreezeAuthorityError Error: 91 `Metadata does not match the freeze authority on the mint`

func (InvalidFreezeAuthorityError) Code

func (InvalidFreezeAuthorityError) Error

type InvalidInstructionError

type InvalidInstructionError struct{}

InvalidInstructionError Error: 189 `Invalid or removed instruction`

func (InvalidInstructionError) Code

func (e InvalidInstructionError) Code() int

func (InvalidInstructionError) Error

func (e InvalidInstructionError) Error() string

type InvalidInstructionsSysvarError

type InvalidInstructionsSysvarError struct{}

InvalidInstructionsSysvarError Error: 181 `Invalid InstructionsSysvar`

func (InvalidInstructionsSysvarError) Code

func (InvalidInstructionsSysvarError) Error

type InvalidLockedTransferAddressError

type InvalidLockedTransferAddressError struct{}

InvalidLockedTransferAddressError Error: 171 `Invalid destination address for locked transfer`

func (InvalidLockedTransferAddressError) Code

func (InvalidLockedTransferAddressError) Error

type InvalidMasterEditionAccountLengthError

type InvalidMasterEditionAccountLengthError struct{}

InvalidMasterEditionAccountLengthError Error: 163 `Master edition account has an invalid length`

func (InvalidMasterEditionAccountLengthError) Code

func (InvalidMasterEditionAccountLengthError) Error

type InvalidMasterEditionError

type InvalidMasterEditionError struct{}

InvalidMasterEditionError Error: 117 `Invalid Master Edition`

func (InvalidMasterEditionError) Code

func (e InvalidMasterEditionError) Code() int

func (InvalidMasterEditionError) Error

type InvalidMetadataFlagsError

type InvalidMetadataFlagsError struct{}

InvalidMetadataFlagsError Error: 192 “

func (InvalidMetadataFlagsError) Code

func (e InvalidMetadataFlagsError) Code() int

func (InvalidMetadataFlagsError) Error

type InvalidMetadataKeyError

type InvalidMetadataKeyError struct{}

InvalidMetadataKeyError Error: 5 ` Metadata's key must match seed of ['metadata', program id, mint] provided`

func (InvalidMetadataKeyError) Code

func (e InvalidMetadataKeyError) Code() int

func (InvalidMetadataKeyError) Error

func (e InvalidMetadataKeyError) Error() string

type InvalidMetadataPointerError

type InvalidMetadataPointerError struct{}

InvalidMetadataPointerError Error: 196 `Invalid metadata pointer`

func (InvalidMetadataPointerError) Code

func (InvalidMetadataPointerError) Error

type InvalidMintAuthorityError

type InvalidMintAuthorityError struct{}

InvalidMintAuthorityError Error: 10 `Mint authority provided does not match the authority on the mint`

func (InvalidMintAuthorityError) Code

func (e InvalidMintAuthorityError) Code() int

func (InvalidMintAuthorityError) Error

type InvalidMintCloseAuthorityError

type InvalidMintCloseAuthorityError struct{}

InvalidMintCloseAuthorityError Error: 195 `Invalid mint close authority`

func (InvalidMintCloseAuthorityError) Code

func (InvalidMintCloseAuthorityError) Error

type InvalidMintExtensionTypeError

type InvalidMintExtensionTypeError struct{}

InvalidMintExtensionTypeError Error: 194 `Invalid mint extension type`

func (InvalidMintExtensionTypeError) Code

func (InvalidMintExtensionTypeError) Error

type InvalidMintForTokenStandardError

type InvalidMintForTokenStandardError struct{}

InvalidMintForTokenStandardError Error: 136 `Invalid mint account for specified token standard`

func (InvalidMintForTokenStandardError) Code

func (InvalidMintForTokenStandardError) Error

type InvalidOperationError

type InvalidOperationError struct{}

InvalidOperationError Error: 67 `Invalid operation`

func (InvalidOperationError) Code

func (e InvalidOperationError) Code() int

func (InvalidOperationError) Error

func (e InvalidOperationError) Error() string

type InvalidOwnerError

type InvalidOwnerError struct{}

InvalidOwnerError Error: 68 `Invalid Owner`

func (InvalidOwnerError) Code

func (e InvalidOwnerError) Code() int

func (InvalidOwnerError) Error

func (e InvalidOwnerError) Error() string

type InvalidParentAccountsError

type InvalidParentAccountsError struct{}

InvalidParentAccountsError Error: 182 `Invalid or Unneeded parent accounts`

func (InvalidParentAccountsError) Code

func (InvalidParentAccountsError) Error

type InvalidPrintEditionError

type InvalidPrintEditionError struct{}

InvalidPrintEditionError Error: 118 `Invalid Print Edition`

func (InvalidPrintEditionError) Code

func (e InvalidPrintEditionError) Code() int

func (InvalidPrintEditionError) Error

func (e InvalidPrintEditionError) Error() string

type InvalidProgrammableConfigError

type InvalidProgrammableConfigError struct{}

InvalidProgrammableConfigError Error: 140 `Invalid programmable configuration`

func (InvalidProgrammableConfigError) Code

func (InvalidProgrammableConfigError) Error

type InvalidSystemProgramError

type InvalidSystemProgramError struct{}

InvalidSystemProgramError Error: 126 `Invalid System Program`

func (InvalidSystemProgramError) Code

func (e InvalidSystemProgramError) Code() int

func (InvalidSystemProgramError) Error

type InvalidSystemWalletError

type InvalidSystemWalletError struct{}

InvalidSystemWalletError Error: 146 `Invalid system wallet`

func (InvalidSystemWalletError) Code

func (e InvalidSystemWalletError) Code() int

func (InvalidSystemWalletError) Error

func (e InvalidSystemWalletError) Error() string

type InvalidTokenExtensionTypeError

type InvalidTokenExtensionTypeError struct{}

InvalidTokenExtensionTypeError Error: 197 `Invalid token extension type`

func (InvalidTokenExtensionTypeError) Code

func (InvalidTokenExtensionTypeError) Error

type InvalidTokenProgramError

type InvalidTokenProgramError struct{}

InvalidTokenProgramError Error: 62 `Invalid token program`

func (InvalidTokenProgramError) Code

func (e InvalidTokenProgramError) Code() int

func (InvalidTokenProgramError) Error

func (e InvalidTokenProgramError) Error() string

type InvalidTokenRecordError

type InvalidTokenRecordError struct{}

InvalidTokenRecordError Error: 187 `Invalid token record account`

func (InvalidTokenRecordError) Code

func (e InvalidTokenRecordError) Code() int

func (InvalidTokenRecordError) Error

func (e InvalidTokenRecordError) Error() string

type InvalidTokenStandardError

type InvalidTokenStandardError struct{}

InvalidTokenStandardError Error: 135 `Invalid token standard`

func (InvalidTokenStandardError) Code

func (e InvalidTokenStandardError) Code() int

func (InvalidTokenStandardError) Error

type InvalidTransferAuthorityError

type InvalidTransferAuthorityError struct{}

InvalidTransferAuthorityError Error: 152 `Invalid transfer authority`

func (InvalidTransferAuthorityError) Code

func (InvalidTransferAuthorityError) Error

type InvalidUpdateArgsError

type InvalidUpdateArgsError struct{}

InvalidUpdateArgsError Error: 183 `Authority cannot apply all update args`

func (InvalidUpdateArgsError) Code

func (e InvalidUpdateArgsError) Code() int

func (InvalidUpdateArgsError) Error

func (e InvalidUpdateArgsError) Error() string

type InvalidUseAuthorityRecordError

type InvalidUseAuthorityRecordError struct{}

InvalidUseAuthorityRecordError Error: 89 `This Use Authority Record is invalid.`

func (InvalidUseAuthorityRecordError) Code

func (InvalidUseAuthorityRecordError) Error

type InvalidUseMethodError

type InvalidUseMethodError struct{}

InvalidUseMethodError Error: 77 `This use method is invalid`

func (InvalidUseMethodError) Code

func (e InvalidUseMethodError) Code() int

func (InvalidUseMethodError) Error

func (e InvalidUseMethodError) Error() string

type InvalidUserError

type InvalidUserError struct{}

InvalidUserError Error: 98 `Invalid User`

func (InvalidUserError) Code

func (e InvalidUserError) Code() int

func (InvalidUserError) Error

func (e InvalidUserError) Error() string

type IsMutableCanOnlyBeFlippedToFalseError

type IsMutableCanOnlyBeFlippedToFalseError struct{}

IsMutableCanOnlyBeFlippedToFalseError Error: 73 `Is Mutable can only be flipped to false`

func (IsMutableCanOnlyBeFlippedToFalseError) Code

func (IsMutableCanOnlyBeFlippedToFalseError) Error

type Key

type Key binary.BorshEnum

Key Enum

const (
	KeyUninitialized Key = iota
	KeyEditionV1
	KeyMasterEditionV1
	KeyReservationListV1
	KeyMetadataV1
	KeyReservationListV2
	KeyMasterEditionV2
	KeyEditionMarker
	KeyUseAuthorityRecord
	KeyCollectionAuthorityRecord
	KeyTokenOwnedEscrow
	KeyTokenRecord
	KeyMetadataDelegate
	KeyEditionMarkerV2
)

func (Key) String

func (value Key) String() string

type KeyMismatchError

type KeyMismatchError struct{}

KeyMismatchError Error: 154 `Public key does not match expected value`

func (KeyMismatchError) Code

func (e KeyMismatchError) Code() int

func (KeyMismatchError) Error

func (e KeyMismatchError) Error() string

type Lock

type Lock struct {
	LockArgs *LockArgs
	// [0] = [SIGNER] authority `Delegate or freeze authority`
	// [1] = [] tokenOwner `Token owner account`
	// [2] = [WRITE] token `Token account`
	// [3] = [] mint `Mint account`
	// [4] = [WRITE] metadata `Metadata account`
	// [5] = [] edition `Edition account`
	// [6] = [WRITE] tokenRecord `Token record account`
	// [7] = [WRITE, SIGNER] payer `Payer`
	// [8] = [] systemProgram `System program`
	// [9] = [] sysvarInstructions `System program`
	// [10] = [] splTokenProgram `SPL Token Program`
	// [11] = [] authorizationRulesProgram `Token Authorization Rules Program`
	// [12] = [] authorizationRules `Token Authorization Rules account`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

Lock Instruction

func NewLockInstruction

func NewLockInstruction(
	lockArgs LockArgs,
	authority common.PublicKey,
	tokenOwner common.PublicKey,
	token common.PublicKey,
	mint common.PublicKey,
	metadata common.PublicKey,
	edition common.PublicKey,
	tokenRecord common.PublicKey,
	payer common.PublicKey,
	systemProgram common.PublicKey,
	sysvarInstructions common.PublicKey,
	splTokenProgram common.PublicKey,
	authorizationRulesProgram common.PublicKey,
	authorizationRules common.PublicKey,
) *Lock

NewLockInstruction

Parameters:

lockArgs:
authority: Delegate or freeze authority
tokenOwner: Token owner account
token: Token account
mint: Mint account
metadata: Metadata account
edition: Edition account
tokenRecord: Token record account
payer: Payer
systemProgram: System program
sysvarInstructions: System program
splTokenProgram: SPL Token Program
authorizationRulesProgram: Token Authorization Rules Program
authorizationRules: Token Authorization Rules account

func NewLockInstructionBuilder

func NewLockInstructionBuilder() *Lock

NewLockInstructionBuilder creates a new `Lock` instruction builder.

func (*Lock) Build

func (obj *Lock) Build() *Instruction

func (*Lock) EncodeToTree

func (obj *Lock) EncodeToTree(parent treeout.Branches)

func (*Lock) GetAuthorityAccount

func (obj *Lock) GetAuthorityAccount() *common.AccountMeta

GetAuthorityAccount gets the "authority" parameter. Delegate or freeze authority

func (*Lock) GetAuthorizationRulesAccount

func (obj *Lock) GetAuthorizationRulesAccount() *common.AccountMeta

GetAuthorizationRulesAccount gets the "authorizationRules" parameter. Token Authorization Rules account

func (*Lock) GetAuthorizationRulesProgramAccount

func (obj *Lock) GetAuthorizationRulesProgramAccount() *common.AccountMeta

GetAuthorizationRulesProgramAccount gets the "authorizationRulesProgram" parameter. Token Authorization Rules Program

func (*Lock) GetEditionAccount

func (obj *Lock) GetEditionAccount() *common.AccountMeta

GetEditionAccount gets the "edition" parameter. Edition account

func (*Lock) GetMetadataAccount

func (obj *Lock) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*Lock) GetMintAccount

func (obj *Lock) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Mint account

func (*Lock) GetPayerAccount

func (obj *Lock) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. Payer

func (*Lock) GetSplTokenProgramAccount

func (obj *Lock) GetSplTokenProgramAccount() *common.AccountMeta

GetSplTokenProgramAccount gets the "splTokenProgram" parameter. SPL Token Program

func (*Lock) GetSystemProgramAccount

func (obj *Lock) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*Lock) GetSysvarInstructionsAccount

func (obj *Lock) GetSysvarInstructionsAccount() *common.AccountMeta

GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. System program

func (*Lock) GetTokenAccount

func (obj *Lock) GetTokenAccount() *common.AccountMeta

GetTokenAccount gets the "token" parameter. Token account

func (*Lock) GetTokenOwnerAccount

func (obj *Lock) GetTokenOwnerAccount() *common.AccountMeta

GetTokenOwnerAccount gets the "tokenOwner" parameter. Token owner account

func (*Lock) GetTokenRecordAccount

func (obj *Lock) GetTokenRecordAccount() *common.AccountMeta

GetTokenRecordAccount gets the "tokenRecord" parameter. Token record account

func (*Lock) MarshalWithEncoder

func (obj *Lock) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*Lock) SetAuthorityAccount

func (obj *Lock) SetAuthorityAccount(authority common.PublicKey) *Lock

SetAuthorityAccount sets the "authority" parameter. Delegate or freeze authority

func (*Lock) SetAuthorizationRulesAccount

func (obj *Lock) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Lock

SetAuthorizationRulesAccount sets the "authorizationRules" parameter. Token Authorization Rules account

func (*Lock) SetAuthorizationRulesProgramAccount

func (obj *Lock) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Lock

SetAuthorizationRulesProgramAccount sets the "authorizationRulesProgram" parameter. Token Authorization Rules Program

func (*Lock) SetEditionAccount

func (obj *Lock) SetEditionAccount(edition common.PublicKey) *Lock

SetEditionAccount sets the "edition" parameter. Edition account

func (*Lock) SetLockArgs

func (obj *Lock) SetLockArgs(lockArgs LockArgs) *Lock

SetLockArgs sets the "lockArgs" parameter.

func (*Lock) SetMetadataAccount

func (obj *Lock) SetMetadataAccount(metadata common.PublicKey) *Lock

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*Lock) SetMintAccount

func (obj *Lock) SetMintAccount(mint common.PublicKey) *Lock

SetMintAccount sets the "mint" parameter. Mint account

func (*Lock) SetPayerAccount

func (obj *Lock) SetPayerAccount(payer common.PublicKey) *Lock

SetPayerAccount sets the "payer" parameter. Payer

func (*Lock) SetProgramId

func (obj *Lock) SetProgramId(programId *common.PublicKey) *Lock

func (*Lock) SetSplTokenProgramAccount

func (obj *Lock) SetSplTokenProgramAccount(splTokenProgram common.PublicKey) *Lock

SetSplTokenProgramAccount sets the "splTokenProgram" parameter. SPL Token Program

func (*Lock) SetSystemProgramAccount

func (obj *Lock) SetSystemProgramAccount(systemProgram common.PublicKey) *Lock

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*Lock) SetSysvarInstructionsAccount

func (obj *Lock) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *Lock

SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. System program

func (*Lock) SetTokenAccount

func (obj *Lock) SetTokenAccount(token common.PublicKey) *Lock

SetTokenAccount sets the "token" parameter. Token account

func (*Lock) SetTokenOwnerAccount

func (obj *Lock) SetTokenOwnerAccount(tokenOwner common.PublicKey) *Lock

SetTokenOwnerAccount sets the "tokenOwner" parameter. Token owner account

func (*Lock) SetTokenRecordAccount

func (obj *Lock) SetTokenRecordAccount(tokenRecord common.PublicKey) *Lock

SetTokenRecordAccount sets the "tokenRecord" parameter. Token record account

func (*Lock) UnmarshalWithDecoder

func (obj *Lock) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

func (*Lock) Validate

func (obj *Lock) Validate() error

func (*Lock) ValidateAndBuild

func (obj *Lock) 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 LockArgs

type LockArgs struct {
	V1 *LockArgsV1 `bin:"optional"`
}

LockArgs Enum

func NewLockArgs_V1

func NewLockArgs_V1(authorizationData *AuthorizationData) LockArgs

func (*LockArgs) AsV1

func (obj *LockArgs) AsV1() LockArgsV1

func (*LockArgs) IsV1

func (obj *LockArgs) IsV1() bool

func (*LockArgs) MarshalWithEncoder

func (obj *LockArgs) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*LockArgs) String

func (obj *LockArgs) String() string

func (*LockArgs) UnmarshalWithDecoder

func (obj *LockArgs) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type LockArgsV1

type LockArgsV1 struct {
	AuthorizationData *AuthorizationData `bin:"optional"`
}

func (*LockArgsV1) MarshalWithEncoder

func (obj *LockArgsV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*LockArgsV1) UnmarshalWithDecoder

func (obj *LockArgsV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type LockedTokenError

type LockedTokenError struct{}

LockedTokenError Error: 155 `Token is locked`

func (LockedTokenError) Code

func (e LockedTokenError) Code() int

func (LockedTokenError) Error

func (e LockedTokenError) Error() string

type MasterEditionHasPrintsError

type MasterEditionHasPrintsError struct{}

MasterEditionHasPrintsError Error: 110 `This Master Edition has existing prints`

func (MasterEditionHasPrintsError) Code

func (MasterEditionHasPrintsError) Error

type MasterEditionV1

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

MasterEditionV1 Struct

func (*MasterEditionV1) MarshalWithEncoder

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

func (*MasterEditionV1) UnmarshalWithDecoder

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

type MasterEditionV2

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

MasterEditionV2 Struct

func (*MasterEditionV2) MarshalWithEncoder

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

func (*MasterEditionV2) UnmarshalWithDecoder

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

type MasterRecordMismatchError

type MasterRecordMismatchError struct{}

MasterRecordMismatchError Error: 19 “

func (MasterRecordMismatchError) Code

func (e MasterRecordMismatchError) Code() int

func (MasterRecordMismatchError) Error

type MaxEditionsMintedAlreadyError

type MaxEditionsMintedAlreadyError struct{}

MaxEditionsMintedAlreadyError Error: 17 “

func (MaxEditionsMintedAlreadyError) Code

func (MaxEditionsMintedAlreadyError) Error

type Metadata

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

Metadata Struct

func (*Metadata) MarshalWithEncoder

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

func (*Metadata) UnmarshalWithDecoder

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

type MetadataDelegateRecord

type MetadataDelegateRecord struct {
	Key             Key
	Bump            uint8
	Mint            common.PublicKey
	Delegate        common.PublicKey
	UpdateAuthority common.PublicKey
}

MetadataDelegateRecord Struct

func (*MetadataDelegateRecord) MarshalWithEncoder

func (obj *MetadataDelegateRecord) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*MetadataDelegateRecord) UnmarshalWithDecoder

func (obj *MetadataDelegateRecord) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type MetadataDelegateRole

type MetadataDelegateRole binary.BorshEnum

MetadataDelegateRole Enum

const (
	MetadataDelegateRoleAuthorityItem MetadataDelegateRole = iota
	MetadataDelegateRoleCollection
	MetadataDelegateRoleUse
	MetadataDelegateRoleData
	MetadataDelegateRoleProgrammableConfig
	MetadataDelegateRoleDataItem
	MetadataDelegateRoleCollectionItem
	MetadataDelegateRoleProgrammableConfigItem
)

func (MetadataDelegateRole) String

func (value MetadataDelegateRole) String() string

type Migrate

type Migrate struct {
	// [0] = [WRITE] metadata `Metadata account`
	// [1] = [WRITE] edition `Edition account`
	// [2] = [WRITE] token `Token account`
	// [3] = [] tokenOwner `Token account owner`
	// [4] = [] mint `Mint account`
	// [5] = [WRITE, SIGNER] payer `Payer`
	// [6] = [SIGNER] authority `Update authority`
	// [7] = [] collectionMetadata `Collection metadata account`
	// [8] = [] delegateRecord `Delegate record account`
	// [9] = [WRITE] tokenRecord `Token record account`
	// [10] = [] systemProgram `System program`
	// [11] = [] sysvarInstructions `Instruction sysvar account`
	// [12] = [] splTokenProgram `SPL Token Program`
	// [13] = [] authorizationRulesProgram `Token Authorization Rules Program`
	// [14] = [] authorizationRules `Token Authorization Rules account`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

Migrate Instruction

func NewMigrateInstruction

func NewMigrateInstruction(
	metadata common.PublicKey,
	edition common.PublicKey,
	token common.PublicKey,
	tokenOwner common.PublicKey,
	mint common.PublicKey,
	payer common.PublicKey,
	authority common.PublicKey,
	collectionMetadata common.PublicKey,
	delegateRecord common.PublicKey,
	tokenRecord common.PublicKey,
	systemProgram common.PublicKey,
	sysvarInstructions common.PublicKey,
	splTokenProgram common.PublicKey,
	authorizationRulesProgram common.PublicKey,
	authorizationRules common.PublicKey,
) *Migrate

NewMigrateInstruction

Parameters:

metadata: Metadata account
edition: Edition account
token: Token account
tokenOwner: Token account owner
mint: Mint account
payer: Payer
authority: Update authority
collectionMetadata: Collection metadata account
delegateRecord: Delegate record account
tokenRecord: Token record account
systemProgram: System program
sysvarInstructions: Instruction sysvar account
splTokenProgram: SPL Token Program
authorizationRulesProgram: Token Authorization Rules Program
authorizationRules: Token Authorization Rules account

func NewMigrateInstructionBuilder

func NewMigrateInstructionBuilder() *Migrate

NewMigrateInstructionBuilder creates a new `Migrate` instruction builder.

func (*Migrate) Build

func (obj *Migrate) Build() *Instruction

func (*Migrate) EncodeToTree

func (obj *Migrate) EncodeToTree(parent treeout.Branches)

func (*Migrate) GetAuthorityAccount

func (obj *Migrate) GetAuthorityAccount() *common.AccountMeta

GetAuthorityAccount gets the "authority" parameter. Update authority

func (*Migrate) GetAuthorizationRulesAccount

func (obj *Migrate) GetAuthorizationRulesAccount() *common.AccountMeta

GetAuthorizationRulesAccount gets the "authorizationRules" parameter. Token Authorization Rules account

func (*Migrate) GetAuthorizationRulesProgramAccount

func (obj *Migrate) GetAuthorizationRulesProgramAccount() *common.AccountMeta

GetAuthorizationRulesProgramAccount gets the "authorizationRulesProgram" parameter. Token Authorization Rules Program

func (*Migrate) GetCollectionMetadataAccount

func (obj *Migrate) GetCollectionMetadataAccount() *common.AccountMeta

GetCollectionMetadataAccount gets the "collectionMetadata" parameter. Collection metadata account

func (*Migrate) GetDelegateRecordAccount

func (obj *Migrate) GetDelegateRecordAccount() *common.AccountMeta

GetDelegateRecordAccount gets the "delegateRecord" parameter. Delegate record account

func (*Migrate) GetEditionAccount

func (obj *Migrate) GetEditionAccount() *common.AccountMeta

GetEditionAccount gets the "edition" parameter. Edition account

func (*Migrate) GetMetadataAccount

func (obj *Migrate) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*Migrate) GetMintAccount

func (obj *Migrate) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Mint account

func (*Migrate) GetPayerAccount

func (obj *Migrate) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. Payer

func (*Migrate) GetSplTokenProgramAccount

func (obj *Migrate) GetSplTokenProgramAccount() *common.AccountMeta

GetSplTokenProgramAccount gets the "splTokenProgram" parameter. SPL Token Program

func (*Migrate) GetSystemProgramAccount

func (obj *Migrate) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*Migrate) GetSysvarInstructionsAccount

func (obj *Migrate) GetSysvarInstructionsAccount() *common.AccountMeta

GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instruction sysvar account

func (*Migrate) GetTokenAccount

func (obj *Migrate) GetTokenAccount() *common.AccountMeta

GetTokenAccount gets the "token" parameter. Token account

func (*Migrate) GetTokenOwnerAccount

func (obj *Migrate) GetTokenOwnerAccount() *common.AccountMeta

GetTokenOwnerAccount gets the "tokenOwner" parameter. Token account owner

func (*Migrate) GetTokenRecordAccount

func (obj *Migrate) GetTokenRecordAccount() *common.AccountMeta

GetTokenRecordAccount gets the "tokenRecord" parameter. Token record account

func (*Migrate) MarshalWithEncoder

func (obj *Migrate) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*Migrate) SetAuthorityAccount

func (obj *Migrate) SetAuthorityAccount(authority common.PublicKey) *Migrate

SetAuthorityAccount sets the "authority" parameter. Update authority

func (*Migrate) SetAuthorizationRulesAccount

func (obj *Migrate) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Migrate

SetAuthorizationRulesAccount sets the "authorizationRules" parameter. Token Authorization Rules account

func (*Migrate) SetAuthorizationRulesProgramAccount

func (obj *Migrate) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Migrate

SetAuthorizationRulesProgramAccount sets the "authorizationRulesProgram" parameter. Token Authorization Rules Program

func (*Migrate) SetCollectionMetadataAccount

func (obj *Migrate) SetCollectionMetadataAccount(collectionMetadata common.PublicKey) *Migrate

SetCollectionMetadataAccount sets the "collectionMetadata" parameter. Collection metadata account

func (*Migrate) SetDelegateRecordAccount

func (obj *Migrate) SetDelegateRecordAccount(delegateRecord common.PublicKey) *Migrate

SetDelegateRecordAccount sets the "delegateRecord" parameter. Delegate record account

func (*Migrate) SetEditionAccount

func (obj *Migrate) SetEditionAccount(edition common.PublicKey) *Migrate

SetEditionAccount sets the "edition" parameter. Edition account

func (*Migrate) SetMetadataAccount

func (obj *Migrate) SetMetadataAccount(metadata common.PublicKey) *Migrate

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*Migrate) SetMintAccount

func (obj *Migrate) SetMintAccount(mint common.PublicKey) *Migrate

SetMintAccount sets the "mint" parameter. Mint account

func (*Migrate) SetPayerAccount

func (obj *Migrate) SetPayerAccount(payer common.PublicKey) *Migrate

SetPayerAccount sets the "payer" parameter. Payer

func (*Migrate) SetProgramId

func (obj *Migrate) SetProgramId(programId *common.PublicKey) *Migrate

func (*Migrate) SetSplTokenProgramAccount

func (obj *Migrate) SetSplTokenProgramAccount(splTokenProgram common.PublicKey) *Migrate

SetSplTokenProgramAccount sets the "splTokenProgram" parameter. SPL Token Program

func (*Migrate) SetSystemProgramAccount

func (obj *Migrate) SetSystemProgramAccount(systemProgram common.PublicKey) *Migrate

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*Migrate) SetSysvarInstructionsAccount

func (obj *Migrate) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *Migrate

SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instruction sysvar account

func (*Migrate) SetTokenAccount

func (obj *Migrate) SetTokenAccount(token common.PublicKey) *Migrate

SetTokenAccount sets the "token" parameter. Token account

func (*Migrate) SetTokenOwnerAccount

func (obj *Migrate) SetTokenOwnerAccount(tokenOwner common.PublicKey) *Migrate

SetTokenOwnerAccount sets the "tokenOwner" parameter. Token account owner

func (*Migrate) SetTokenRecordAccount

func (obj *Migrate) SetTokenRecordAccount(tokenRecord common.PublicKey) *Migrate

SetTokenRecordAccount sets the "tokenRecord" parameter. Token record account

func (*Migrate) UnmarshalWithDecoder

func (obj *Migrate) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

func (*Migrate) Validate

func (obj *Migrate) Validate() error

func (*Migrate) ValidateAndBuild

func (obj *Migrate) 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 MigrationType

type MigrationType binary.BorshEnum

MigrationType Enum

const (
	MigrationTypeCollectionV1 MigrationType = iota
	MigrationTypeProgrammableV1
)

func (MigrationType) String

func (value MigrationType) String() string

type Mint

type Mint struct {
	MintArgs *MintArgs
	// [0] = [WRITE] token `Token or Associated Token account`
	// [1] = [] tokenOwner `Owner of the token account`
	// [2] = [] metadata `Metadata account (pda of ['metadata', program id, mint id])`
	// [3] = [WRITE] masterEdition `Master Edition account`
	// [4] = [WRITE] tokenRecord `Token record account`
	// [5] = [WRITE] mint `Mint of token asset`
	// [6] = [SIGNER] authority `(Mint or Update) authority`
	// [7] = [] delegateRecord `Metadata delegate record`
	// [8] = [WRITE, SIGNER] payer `Payer`
	// [9] = [] systemProgram `System program`
	// [10] = [] sysvarInstructions `Instructions sysvar account`
	// [11] = [] splTokenProgram `SPL Token program`
	// [12] = [] splAtaProgram `SPL Associated Token Account program`
	// [13] = [] authorizationRulesProgram `Token Authorization Rules program`
	// [14] = [] authorizationRules `Token Authorization Rules account`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

Mint Instruction

func NewMintInstruction

func NewMintInstruction(
	mintArgs MintArgs,
	token common.PublicKey,
	tokenOwner common.PublicKey,
	metadata common.PublicKey,
	masterEdition common.PublicKey,
	tokenRecord common.PublicKey,
	mint common.PublicKey,
	authority common.PublicKey,
	delegateRecord common.PublicKey,
	payer common.PublicKey,
	systemProgram common.PublicKey,
	sysvarInstructions common.PublicKey,
	splTokenProgram common.PublicKey,
	splAtaProgram common.PublicKey,
	authorizationRulesProgram common.PublicKey,
	authorizationRules common.PublicKey,
) *Mint

NewMintInstruction

Parameters:

mintArgs:
token: Token or Associated Token account
tokenOwner: Owner of the token account
metadata: Metadata account (pda of ['metadata', program id, mint id])
masterEdition: Master Edition account
tokenRecord: Token record account
mint: Mint of token asset
authority: (Mint or Update) authority
delegateRecord: Metadata delegate record
payer: Payer
systemProgram: System program
sysvarInstructions: Instructions sysvar account
splTokenProgram: SPL Token program
splAtaProgram: SPL Associated Token Account program
authorizationRulesProgram: Token Authorization Rules program
authorizationRules: Token Authorization Rules account

func NewMintInstructionBuilder

func NewMintInstructionBuilder() *Mint

NewMintInstructionBuilder creates a new `Mint` instruction builder.

func (*Mint) Build

func (obj *Mint) Build() *Instruction

func (*Mint) EncodeToTree

func (obj *Mint) EncodeToTree(parent treeout.Branches)

func (*Mint) GetAuthorityAccount

func (obj *Mint) GetAuthorityAccount() *common.AccountMeta

GetAuthorityAccount gets the "authority" parameter. (Mint or Update) authority

func (*Mint) GetAuthorizationRulesAccount

func (obj *Mint) GetAuthorizationRulesAccount() *common.AccountMeta

GetAuthorizationRulesAccount gets the "authorizationRules" parameter. Token Authorization Rules account

func (*Mint) GetAuthorizationRulesProgramAccount

func (obj *Mint) GetAuthorizationRulesProgramAccount() *common.AccountMeta

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

func (*Mint) GetDelegateRecordAccount

func (obj *Mint) GetDelegateRecordAccount() *common.AccountMeta

GetDelegateRecordAccount gets the "delegateRecord" parameter. Metadata delegate record

func (*Mint) GetMasterEditionAccount

func (obj *Mint) GetMasterEditionAccount() *common.AccountMeta

GetMasterEditionAccount gets the "masterEdition" parameter. Master Edition account

func (*Mint) GetMetadataAccount

func (obj *Mint) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account (pda of ['metadata', program id, mint id])

func (*Mint) GetMintAccount

func (obj *Mint) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Mint of token asset

func (*Mint) GetPayerAccount

func (obj *Mint) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. Payer

func (*Mint) GetSplAtaProgramAccount

func (obj *Mint) GetSplAtaProgramAccount() *common.AccountMeta

GetSplAtaProgramAccount gets the "splAtaProgram" parameter. SPL Associated Token Account program

func (*Mint) GetSplTokenProgramAccount

func (obj *Mint) GetSplTokenProgramAccount() *common.AccountMeta

GetSplTokenProgramAccount gets the "splTokenProgram" parameter. SPL Token program

func (*Mint) GetSystemProgramAccount

func (obj *Mint) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*Mint) GetSysvarInstructionsAccount

func (obj *Mint) GetSysvarInstructionsAccount() *common.AccountMeta

GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account

func (*Mint) GetTokenAccount

func (obj *Mint) GetTokenAccount() *common.AccountMeta

GetTokenAccount gets the "token" parameter. Token or Associated Token account

func (*Mint) GetTokenOwnerAccount

func (obj *Mint) GetTokenOwnerAccount() *common.AccountMeta

GetTokenOwnerAccount gets the "tokenOwner" parameter. Owner of the token account

func (*Mint) GetTokenRecordAccount

func (obj *Mint) GetTokenRecordAccount() *common.AccountMeta

GetTokenRecordAccount gets the "tokenRecord" parameter. Token record account

func (*Mint) MarshalWithEncoder

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

func (*Mint) SetAuthorityAccount

func (obj *Mint) SetAuthorityAccount(authority common.PublicKey) *Mint

SetAuthorityAccount sets the "authority" parameter. (Mint or Update) authority

func (*Mint) SetAuthorizationRulesAccount

func (obj *Mint) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Mint

SetAuthorizationRulesAccount sets the "authorizationRules" parameter. Token Authorization Rules account

func (*Mint) SetAuthorizationRulesProgramAccount

func (obj *Mint) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Mint

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

func (*Mint) SetDelegateRecordAccount

func (obj *Mint) SetDelegateRecordAccount(delegateRecord common.PublicKey) *Mint

SetDelegateRecordAccount sets the "delegateRecord" parameter. Metadata delegate record

func (*Mint) SetMasterEditionAccount

func (obj *Mint) SetMasterEditionAccount(masterEdition common.PublicKey) *Mint

SetMasterEditionAccount sets the "masterEdition" parameter. Master Edition account

func (*Mint) SetMetadataAccount

func (obj *Mint) SetMetadataAccount(metadata common.PublicKey) *Mint

SetMetadataAccount sets the "metadata" parameter. Metadata account (pda of ['metadata', program id, mint id])

func (*Mint) SetMintAccount

func (obj *Mint) SetMintAccount(mint common.PublicKey) *Mint

SetMintAccount sets the "mint" parameter. Mint of token asset

func (*Mint) SetMintArgs

func (obj *Mint) SetMintArgs(mintArgs MintArgs) *Mint

SetMintArgs sets the "mintArgs" parameter.

func (*Mint) SetPayerAccount

func (obj *Mint) SetPayerAccount(payer common.PublicKey) *Mint

SetPayerAccount sets the "payer" parameter. Payer

func (*Mint) SetProgramId

func (obj *Mint) SetProgramId(programId *common.PublicKey) *Mint

func (*Mint) SetSplAtaProgramAccount

func (obj *Mint) SetSplAtaProgramAccount(splAtaProgram common.PublicKey) *Mint

SetSplAtaProgramAccount sets the "splAtaProgram" parameter. SPL Associated Token Account program

func (*Mint) SetSplTokenProgramAccount

func (obj *Mint) SetSplTokenProgramAccount(splTokenProgram common.PublicKey) *Mint

SetSplTokenProgramAccount sets the "splTokenProgram" parameter. SPL Token program

func (*Mint) SetSystemProgramAccount

func (obj *Mint) SetSystemProgramAccount(systemProgram common.PublicKey) *Mint

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*Mint) SetSysvarInstructionsAccount

func (obj *Mint) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *Mint

SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account

func (*Mint) SetTokenAccount

func (obj *Mint) SetTokenAccount(token common.PublicKey) *Mint

SetTokenAccount sets the "token" parameter. Token or Associated Token account

func (*Mint) SetTokenOwnerAccount

func (obj *Mint) SetTokenOwnerAccount(tokenOwner common.PublicKey) *Mint

SetTokenOwnerAccount sets the "tokenOwner" parameter. Owner of the token account

func (*Mint) SetTokenRecordAccount

func (obj *Mint) SetTokenRecordAccount(tokenRecord common.PublicKey) *Mint

SetTokenRecordAccount sets the "tokenRecord" parameter. Token record account

func (*Mint) UnmarshalWithDecoder

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

func (*Mint) Validate

func (obj *Mint) Validate() error

func (*Mint) ValidateAndBuild

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

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

type MintArgs

type MintArgs struct {
	V1 *MintArgsV1 `bin:"optional"`
}

MintArgs Enum

func NewMintArgs_V1

func NewMintArgs_V1(amount uint64, authorizationData *AuthorizationData) MintArgs

func (*MintArgs) AsV1

func (obj *MintArgs) AsV1() MintArgsV1

func (*MintArgs) IsV1

func (obj *MintArgs) IsV1() bool

func (*MintArgs) MarshalWithEncoder

func (obj *MintArgs) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*MintArgs) String

func (obj *MintArgs) String() string

func (*MintArgs) UnmarshalWithDecoder

func (obj *MintArgs) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type MintArgsV1

type MintArgsV1 struct {
	Amount            uint64
	AuthorizationData *AuthorizationData `bin:"optional"`
}

func (*MintArgsV1) MarshalWithEncoder

func (obj *MintArgsV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*MintArgsV1) UnmarshalWithDecoder

func (obj *MintArgsV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type MintIsNotSignerError

type MintIsNotSignerError struct{}

MintIsNotSignerError Error: 134 `Mint needs to be signer to initialize the account`

func (MintIsNotSignerError) Code

func (e MintIsNotSignerError) Code() int

func (MintIsNotSignerError) Error

func (e MintIsNotSignerError) Error() string

type MintMismatchError

type MintMismatchError struct{}

MintMismatchError Error: 15 `Mint given does not match mint on Metadata`

func (MintMismatchError) Code

func (e MintMismatchError) Code() int

func (MintMismatchError) Error

func (e MintMismatchError) Error() string

type MintNewEditionFromMasterEditionViaToken

type MintNewEditionFromMasterEditionViaToken struct {
	MintNewEditionFromMasterEditionViaTokenArgs *MintNewEditionFromMasterEditionViaTokenArgs
	// [0] = [WRITE] newMetadata `New Metadata key (pda of ['metadata', program id, mint id])`
	// [1] = [WRITE] newEdition `New Edition (pda of ['metadata', program id, mint id, 'edition'])`
	// [2] = [WRITE] masterEdition `Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition'])`
	// [3] = [WRITE] newMint `Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY`
	// [4] = [WRITE] editionMarkPda `Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master metadata mint id, 'edition', edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE).`
	// [5] = [SIGNER] newMintAuthority `Mint authority of new mint`
	// [6] = [WRITE, SIGNER] payer `payer`
	// [7] = [SIGNER] tokenAccountOwner `owner of token account containing master token (#8)`
	// [8] = [] tokenAccount `token account containing token from master metadata mint`
	// [9] = [] newMetadataUpdateAuthority `Update authority info for new metadata`
	// [10] = [] metadata `Master record metadata account`
	// [11] = [] tokenProgram `Token program`
	// [12] = [] systemProgram `System program`
	// [13] = [] rent `Rent info`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

MintNewEditionFromMasterEditionViaToken Instruction

func NewMintNewEditionFromMasterEditionViaTokenInstruction

func NewMintNewEditionFromMasterEditionViaTokenInstruction(
	mintNewEditionFromMasterEditionViaTokenArgs MintNewEditionFromMasterEditionViaTokenArgs,
	newMetadata common.PublicKey,
	newEdition common.PublicKey,
	masterEdition common.PublicKey,
	newMint common.PublicKey,
	editionMarkPda common.PublicKey,
	newMintAuthority common.PublicKey,
	payer common.PublicKey,
	tokenAccountOwner common.PublicKey,
	tokenAccount common.PublicKey,
	newMetadataUpdateAuthority common.PublicKey,
	metadata common.PublicKey,
	tokenProgram common.PublicKey,
	systemProgram common.PublicKey,
	rent common.PublicKey,
) *MintNewEditionFromMasterEditionViaToken

NewMintNewEditionFromMasterEditionViaTokenInstruction

Parameters:

mintNewEditionFromMasterEditionViaTokenArgs:
newMetadata: New Metadata key (pda of ['metadata', program id, mint id])
newEdition: New Edition (pda of ['metadata', program id, mint id, 'edition'])
masterEdition: Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition'])
newMint: Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
editionMarkPda: Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master metadata mint id, 'edition', edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE).
newMintAuthority: Mint authority of new mint
payer: payer
tokenAccountOwner: owner of token account containing master token (#8)
tokenAccount: token account containing token from master metadata mint
newMetadataUpdateAuthority: Update authority info for new metadata
metadata: Master record metadata account
tokenProgram: Token program
systemProgram: System program
rent: Rent info

func NewMintNewEditionFromMasterEditionViaTokenInstructionBuilder

func NewMintNewEditionFromMasterEditionViaTokenInstructionBuilder() *MintNewEditionFromMasterEditionViaToken

NewMintNewEditionFromMasterEditionViaTokenInstructionBuilder creates a new `MintNewEditionFromMasterEditionViaToken` instruction builder.

func (*MintNewEditionFromMasterEditionViaToken) Build

func (*MintNewEditionFromMasterEditionViaToken) EncodeToTree

func (obj *MintNewEditionFromMasterEditionViaToken) EncodeToTree(parent treeout.Branches)

func (*MintNewEditionFromMasterEditionViaToken) GetEditionMarkPdaAccount

func (obj *MintNewEditionFromMasterEditionViaToken) GetEditionMarkPdaAccount() *common.AccountMeta

GetEditionMarkPdaAccount gets the "editionMarkPda" parameter. Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master metadata mint id, 'edition', edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE).

func (*MintNewEditionFromMasterEditionViaToken) GetMasterEditionAccount

func (obj *MintNewEditionFromMasterEditionViaToken) GetMasterEditionAccount() *common.AccountMeta

GetMasterEditionAccount gets the "masterEdition" parameter. Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition'])

func (*MintNewEditionFromMasterEditionViaToken) GetMetadataAccount

func (obj *MintNewEditionFromMasterEditionViaToken) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Master record metadata account

func (*MintNewEditionFromMasterEditionViaToken) GetNewEditionAccount

func (obj *MintNewEditionFromMasterEditionViaToken) GetNewEditionAccount() *common.AccountMeta

GetNewEditionAccount gets the "newEdition" parameter. New Edition (pda of ['metadata', program id, mint id, 'edition'])

func (*MintNewEditionFromMasterEditionViaToken) GetNewMetadataAccount

func (obj *MintNewEditionFromMasterEditionViaToken) GetNewMetadataAccount() *common.AccountMeta

GetNewMetadataAccount gets the "newMetadata" parameter. New Metadata key (pda of ['metadata', program id, mint id])

func (*MintNewEditionFromMasterEditionViaToken) GetNewMetadataUpdateAuthorityAccount

func (obj *MintNewEditionFromMasterEditionViaToken) GetNewMetadataUpdateAuthorityAccount() *common.AccountMeta

GetNewMetadataUpdateAuthorityAccount gets the "newMetadataUpdateAuthority" parameter. Update authority info for new metadata

func (*MintNewEditionFromMasterEditionViaToken) GetNewMintAccount

GetNewMintAccount gets the "newMint" parameter. Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY

func (*MintNewEditionFromMasterEditionViaToken) GetNewMintAuthorityAccount

func (obj *MintNewEditionFromMasterEditionViaToken) GetNewMintAuthorityAccount() *common.AccountMeta

GetNewMintAuthorityAccount gets the "newMintAuthority" parameter. Mint authority of new mint

func (*MintNewEditionFromMasterEditionViaToken) GetPayerAccount

GetPayerAccount gets the "payer" parameter. payer

func (*MintNewEditionFromMasterEditionViaToken) GetRentAccount

GetRentAccount gets the "rent" parameter. Rent info

func (*MintNewEditionFromMasterEditionViaToken) GetSystemProgramAccount

func (obj *MintNewEditionFromMasterEditionViaToken) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*MintNewEditionFromMasterEditionViaToken) GetTokenAccountAccount

func (obj *MintNewEditionFromMasterEditionViaToken) GetTokenAccountAccount() *common.AccountMeta

GetTokenAccountAccount gets the "tokenAccount" parameter. token account containing token from master metadata mint

func (*MintNewEditionFromMasterEditionViaToken) GetTokenAccountOwnerAccount

func (obj *MintNewEditionFromMasterEditionViaToken) GetTokenAccountOwnerAccount() *common.AccountMeta

GetTokenAccountOwnerAccount gets the "tokenAccountOwner" parameter. owner of token account containing master token (#8)

func (*MintNewEditionFromMasterEditionViaToken) GetTokenProgramAccount

func (obj *MintNewEditionFromMasterEditionViaToken) GetTokenProgramAccount() *common.AccountMeta

GetTokenProgramAccount gets the "tokenProgram" parameter. Token program

func (*MintNewEditionFromMasterEditionViaToken) MarshalWithEncoder

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

func (*MintNewEditionFromMasterEditionViaToken) SetEditionMarkPdaAccount

SetEditionMarkPdaAccount sets the "editionMarkPda" parameter. Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master metadata mint id, 'edition', edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE).

func (*MintNewEditionFromMasterEditionViaToken) SetMasterEditionAccount

SetMasterEditionAccount sets the "masterEdition" parameter. Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition'])

func (*MintNewEditionFromMasterEditionViaToken) SetMetadataAccount

SetMetadataAccount sets the "metadata" parameter. Master record metadata account

func (*MintNewEditionFromMasterEditionViaToken) SetMintNewEditionFromMasterEditionViaTokenArgs

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

SetMintNewEditionFromMasterEditionViaTokenArgs sets the "mintNewEditionFromMasterEditionViaTokenArgs" parameter.

func (*MintNewEditionFromMasterEditionViaToken) SetNewEditionAccount

SetNewEditionAccount sets the "newEdition" parameter. New Edition (pda of ['metadata', program id, mint id, 'edition'])

func (*MintNewEditionFromMasterEditionViaToken) SetNewMetadataAccount

SetNewMetadataAccount sets the "newMetadata" parameter. New Metadata key (pda of ['metadata', program id, mint id])

func (*MintNewEditionFromMasterEditionViaToken) SetNewMetadataUpdateAuthorityAccount

func (obj *MintNewEditionFromMasterEditionViaToken) SetNewMetadataUpdateAuthorityAccount(newMetadataUpdateAuthority common.PublicKey) *MintNewEditionFromMasterEditionViaToken

SetNewMetadataUpdateAuthorityAccount sets the "newMetadataUpdateAuthority" parameter. Update authority info for new metadata

func (*MintNewEditionFromMasterEditionViaToken) SetNewMintAccount

SetNewMintAccount sets the "newMint" parameter. Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY

func (*MintNewEditionFromMasterEditionViaToken) SetNewMintAuthorityAccount

func (obj *MintNewEditionFromMasterEditionViaToken) SetNewMintAuthorityAccount(newMintAuthority common.PublicKey) *MintNewEditionFromMasterEditionViaToken

SetNewMintAuthorityAccount sets the "newMintAuthority" parameter. Mint authority of new mint

func (*MintNewEditionFromMasterEditionViaToken) SetPayerAccount

SetPayerAccount sets the "payer" parameter. payer

func (*MintNewEditionFromMasterEditionViaToken) SetProgramId

func (*MintNewEditionFromMasterEditionViaToken) SetRentAccount

SetRentAccount sets the "rent" parameter. Rent info

func (*MintNewEditionFromMasterEditionViaToken) SetSystemProgramAccount

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*MintNewEditionFromMasterEditionViaToken) SetTokenAccountAccount

SetTokenAccountAccount sets the "tokenAccount" parameter. token account containing token from master metadata mint

func (*MintNewEditionFromMasterEditionViaToken) SetTokenAccountOwnerAccount

func (obj *MintNewEditionFromMasterEditionViaToken) SetTokenAccountOwnerAccount(tokenAccountOwner common.PublicKey) *MintNewEditionFromMasterEditionViaToken

SetTokenAccountOwnerAccount sets the "tokenAccountOwner" parameter. owner of token account containing master token (#8)

func (*MintNewEditionFromMasterEditionViaToken) SetTokenProgramAccount

SetTokenProgramAccount sets the "tokenProgram" parameter. Token program

func (*MintNewEditionFromMasterEditionViaToken) UnmarshalWithDecoder

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

func (*MintNewEditionFromMasterEditionViaToken) Validate

func (*MintNewEditionFromMasterEditionViaToken) ValidateAndBuild

func (obj *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
}

MintNewEditionFromMasterEditionViaTokenArgs Struct

func (*MintNewEditionFromMasterEditionViaTokenArgs) MarshalWithEncoder

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

func (*MintNewEditionFromMasterEditionViaTokenArgs) UnmarshalWithDecoder

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

type MintNewEditionFromMasterEditionViaVaultProxy

type MintNewEditionFromMasterEditionViaVaultProxy struct {
	MintNewEditionFromMasterEditionViaTokenArgs *MintNewEditionFromMasterEditionViaTokenArgs
	// [0] = [WRITE] newMetadata `New Metadata key (pda of ['metadata', program id, mint id])`
	// [1] = [WRITE] newEdition `New Edition (pda of ['metadata', program id, mint id, 'edition'])`
	// [2] = [WRITE] masterEdition `Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition']`
	// [3] = [WRITE] newMint `Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY`
	// [4] = [WRITE] editionMarkPda `Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master metadata mint id, 'edition', edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE).`
	// [5] = [SIGNER] newMintAuthority `Mint authority of new mint`
	// [6] = [WRITE, SIGNER] payer `payer`
	// [7] = [SIGNER] vaultAuthority `Vault authority`
	// [8] = [] safetyDepositStore `Safety deposit token store account`
	// [9] = [] safetyDepositBox `Safety deposit box`
	// [10] = [] vault `Vault`
	// [11] = [] newMetadataUpdateAuthority `Update authority info for new metadata`
	// [12] = [] metadata `Master record metadata account`
	// [13] = [] tokenProgram `Token program`
	// [14] = [] tokenVaultProgram `Token vault program`
	// [15] = [] systemProgram `System program`
	// [16] = [] rent `Rent info`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

MintNewEditionFromMasterEditionViaVaultProxy Instruction

func NewMintNewEditionFromMasterEditionViaVaultProxyInstruction

func NewMintNewEditionFromMasterEditionViaVaultProxyInstruction(
	mintNewEditionFromMasterEditionViaTokenArgs MintNewEditionFromMasterEditionViaTokenArgs,
	newMetadata common.PublicKey,
	newEdition common.PublicKey,
	masterEdition common.PublicKey,
	newMint common.PublicKey,
	editionMarkPda common.PublicKey,
	newMintAuthority common.PublicKey,
	payer common.PublicKey,
	vaultAuthority common.PublicKey,
	safetyDepositStore common.PublicKey,
	safetyDepositBox common.PublicKey,
	vault common.PublicKey,
	newMetadataUpdateAuthority common.PublicKey,
	metadata common.PublicKey,
	tokenProgram common.PublicKey,
	tokenVaultProgram common.PublicKey,
	systemProgram common.PublicKey,
	rent common.PublicKey,
) *MintNewEditionFromMasterEditionViaVaultProxy

NewMintNewEditionFromMasterEditionViaVaultProxyInstruction

Parameters:

mintNewEditionFromMasterEditionViaTokenArgs:
newMetadata: New Metadata key (pda of ['metadata', program id, mint id])
newEdition: New Edition (pda of ['metadata', program id, mint id, 'edition'])
masterEdition: Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition']
newMint: Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
editionMarkPda: Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master metadata mint id, 'edition', edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE).
newMintAuthority: Mint authority of new mint
payer: payer
vaultAuthority: Vault authority
safetyDepositStore: Safety deposit token store account
safetyDepositBox: Safety deposit box
vault: Vault
newMetadataUpdateAuthority: Update authority info for new metadata
metadata: Master record metadata account
tokenProgram: Token program
tokenVaultProgram: Token vault program
systemProgram: System program
rent: Rent info

func NewMintNewEditionFromMasterEditionViaVaultProxyInstructionBuilder

func NewMintNewEditionFromMasterEditionViaVaultProxyInstructionBuilder() *MintNewEditionFromMasterEditionViaVaultProxy

NewMintNewEditionFromMasterEditionViaVaultProxyInstructionBuilder creates a new `MintNewEditionFromMasterEditionViaVaultProxy` instruction builder.

func (*MintNewEditionFromMasterEditionViaVaultProxy) Build

func (*MintNewEditionFromMasterEditionViaVaultProxy) EncodeToTree

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetEditionMarkPdaAccount

func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetEditionMarkPdaAccount() *common.AccountMeta

GetEditionMarkPdaAccount gets the "editionMarkPda" parameter. Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master metadata mint id, 'edition', edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE).

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetMasterEditionAccount

func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetMasterEditionAccount() *common.AccountMeta

GetMasterEditionAccount gets the "masterEdition" parameter. Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition']

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetMetadataAccount

GetMetadataAccount gets the "metadata" parameter. Master record metadata account

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetNewEditionAccount

GetNewEditionAccount gets the "newEdition" parameter. New Edition (pda of ['metadata', program id, mint id, 'edition'])

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetNewMetadataAccount

func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetNewMetadataAccount() *common.AccountMeta

GetNewMetadataAccount gets the "newMetadata" parameter. New Metadata key (pda of ['metadata', program id, mint id])

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetNewMetadataUpdateAuthorityAccount

func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetNewMetadataUpdateAuthorityAccount() *common.AccountMeta

GetNewMetadataUpdateAuthorityAccount gets the "newMetadataUpdateAuthority" parameter. Update authority info for new metadata

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetNewMintAccount

GetNewMintAccount gets the "newMint" parameter. Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetNewMintAuthorityAccount

func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetNewMintAuthorityAccount() *common.AccountMeta

GetNewMintAuthorityAccount gets the "newMintAuthority" parameter. Mint authority of new mint

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetPayerAccount

GetPayerAccount gets the "payer" parameter. payer

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetRentAccount

GetRentAccount gets the "rent" parameter. Rent info

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetSafetyDepositBoxAccount

func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetSafetyDepositBoxAccount() *common.AccountMeta

GetSafetyDepositBoxAccount gets the "safetyDepositBox" parameter. Safety deposit box

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetSafetyDepositStoreAccount

func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetSafetyDepositStoreAccount() *common.AccountMeta

GetSafetyDepositStoreAccount gets the "safetyDepositStore" parameter. Safety deposit token store account

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetSystemProgramAccount

func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetTokenProgramAccount

func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetTokenProgramAccount() *common.AccountMeta

GetTokenProgramAccount gets the "tokenProgram" parameter. Token program

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetTokenVaultProgramAccount

func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetTokenVaultProgramAccount() *common.AccountMeta

GetTokenVaultProgramAccount gets the "tokenVaultProgram" parameter. Token vault program

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetVaultAccount

GetVaultAccount gets the "vault" parameter. Vault

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetVaultAuthorityAccount

func (obj *MintNewEditionFromMasterEditionViaVaultProxy) GetVaultAuthorityAccount() *common.AccountMeta

GetVaultAuthorityAccount gets the "vaultAuthority" parameter. Vault authority

func (*MintNewEditionFromMasterEditionViaVaultProxy) MarshalWithEncoder

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

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetEditionMarkPdaAccount

SetEditionMarkPdaAccount sets the "editionMarkPda" parameter. Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master metadata mint id, 'edition', edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE).

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetMasterEditionAccount

SetMasterEditionAccount sets the "masterEdition" parameter. Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition']

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetMetadataAccount

SetMetadataAccount sets the "metadata" parameter. Master record metadata account

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetMintNewEditionFromMasterEditionViaTokenArgs

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

SetMintNewEditionFromMasterEditionViaTokenArgs sets the "mintNewEditionFromMasterEditionViaTokenArgs" parameter.

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetNewEditionAccount

SetNewEditionAccount sets the "newEdition" parameter. New Edition (pda of ['metadata', program id, mint id, 'edition'])

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetNewMetadataAccount

SetNewMetadataAccount sets the "newMetadata" parameter. New Metadata key (pda of ['metadata', program id, mint id])

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetNewMetadataUpdateAuthorityAccount

func (obj *MintNewEditionFromMasterEditionViaVaultProxy) SetNewMetadataUpdateAuthorityAccount(newMetadataUpdateAuthority common.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy

SetNewMetadataUpdateAuthorityAccount sets the "newMetadataUpdateAuthority" parameter. Update authority info for new metadata

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetNewMintAccount

SetNewMintAccount sets the "newMint" parameter. Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetNewMintAuthorityAccount

SetNewMintAuthorityAccount sets the "newMintAuthority" parameter. Mint authority of new mint

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetPayerAccount

SetPayerAccount sets the "payer" parameter. payer

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetProgramId

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetRentAccount

SetRentAccount sets the "rent" parameter. Rent info

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetSafetyDepositBoxAccount

SetSafetyDepositBoxAccount sets the "safetyDepositBox" parameter. Safety deposit box

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetSafetyDepositStoreAccount

SetSafetyDepositStoreAccount sets the "safetyDepositStore" parameter. Safety deposit token store account

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetSystemProgramAccount

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetTokenProgramAccount

SetTokenProgramAccount sets the "tokenProgram" parameter. Token program

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetTokenVaultProgramAccount

SetTokenVaultProgramAccount sets the "tokenVaultProgram" parameter. Token vault program

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetVaultAccount

SetVaultAccount sets the "vault" parameter. Vault

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetVaultAuthorityAccount

SetVaultAuthorityAccount sets the "vaultAuthority" parameter. Vault authority

func (*MintNewEditionFromMasterEditionViaVaultProxy) UnmarshalWithDecoder

func (obj *MintNewEditionFromMasterEditionViaVaultProxy) UnmarshalWithDecoder(decoder *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 MintSupplyMustBeZeroError

type MintSupplyMustBeZeroError struct{}

MintSupplyMustBeZeroError Error: 160 `Mint supply must be zero for programmable assets`

func (MintSupplyMustBeZeroError) Code

func (e MintSupplyMustBeZeroError) Code() int

func (MintSupplyMustBeZeroError) Error

type MissingAccountInBuilderError

type MissingAccountInBuilderError struct{}

MissingAccountInBuilderError Error: 143 `Required account not set in instruction builder`

func (MissingAccountInBuilderError) Code

func (MissingAccountInBuilderError) Error

type MissingArgumentInBuilderError

type MissingArgumentInBuilderError struct{}

MissingArgumentInBuilderError Error: 144 `Required argument not set in instruction builder`

func (MissingArgumentInBuilderError) Code

func (MissingArgumentInBuilderError) Error

type MissingAuthorizationRulesError

type MissingAuthorizationRulesError struct{}

MissingAuthorizationRulesError Error: 138 `Missing authorization rules account`

func (MissingAuthorizationRulesError) Code

func (MissingAuthorizationRulesError) Error

type MissingAuthorizationRulesProgramError

type MissingAuthorizationRulesProgramError struct{}

MissingAuthorizationRulesProgramError Error: 150 `Missing authorization rules program`

func (MissingAuthorizationRulesProgramError) Code

func (MissingAuthorizationRulesProgramError) Error

type MissingCollectionMasterEditionError

type MissingCollectionMasterEditionError struct{}

MissingCollectionMasterEditionError Error: 186 `Missing collection master edition account`

func (MissingCollectionMasterEditionError) Code

func (MissingCollectionMasterEditionError) Error

type MissingCollectionMetadataError

type MissingCollectionMetadataError struct{}

MissingCollectionMetadataError Error: 103 `Missing collection metadata account`

func (MissingCollectionMetadataError) Code

func (MissingCollectionMetadataError) Error

type MissingCollectionMintError

type MissingCollectionMintError struct{}

MissingCollectionMintError Error: 185 `Missing collection account`

func (MissingCollectionMintError) Code

func (MissingCollectionMintError) Error

type MissingDelegateRecordError

type MissingDelegateRecordError struct{}

MissingDelegateRecordError Error: 190 `Missing delegate record`

func (MissingDelegateRecordError) Code

func (MissingDelegateRecordError) Error

type MissingDelegateRoleError

type MissingDelegateRoleError struct{}

MissingDelegateRoleError Error: 157 `Missing delegate role`

func (MissingDelegateRoleError) Code

func (e MissingDelegateRoleError) Code() int

func (MissingDelegateRoleError) Error

func (e MissingDelegateRoleError) Error() string

type MissingEditionAccountError

type MissingEditionAccountError struct{}

MissingEditionAccountError Error: 108 `This mint account has an edition but none was provided.`

func (MissingEditionAccountError) Code

func (MissingEditionAccountError) Error

type MissingEditionError

type MissingEditionError struct{}

MissingEditionError Error: 179 `Missing edition account`

func (MissingEditionError) Code

func (e MissingEditionError) Code() int

func (MissingEditionError) Error

func (e MissingEditionError) Error() string

type MissingEditionMarkerAccountError

type MissingEditionMarkerAccountError struct{}

MissingEditionMarkerAccountError Error: 177 `Missing edition marker account`

func (MissingEditionMarkerAccountError) Code

func (MissingEditionMarkerAccountError) Error

type MissingImmutableOwnerExtensionError

type MissingImmutableOwnerExtensionError struct{}

MissingImmutableOwnerExtensionError Error: 198 `Missing immutable owner extension`

func (MissingImmutableOwnerExtensionError) Code

func (MissingImmutableOwnerExtensionError) Error

type MissingLockedTransferAddressError

type MissingLockedTransferAddressError struct{}

MissingLockedTransferAddressError Error: 170 `Missing address for locked transfer`

func (MissingLockedTransferAddressError) Code

func (MissingLockedTransferAddressError) Error

type MissingMasterEditionAccountError

type MissingMasterEditionAccountError struct{}

MissingMasterEditionAccountError Error: 167 `Missing master edition account`

func (MissingMasterEditionAccountError) Code

func (MissingMasterEditionAccountError) Error

type MissingMasterEditionMintAccountError

type MissingMasterEditionMintAccountError struct{}

MissingMasterEditionMintAccountError Error: 175 `Missing master edition mint account`

func (MissingMasterEditionMintAccountError) Code

func (MissingMasterEditionMintAccountError) Error

type MissingMasterEditionTokenAccountError

type MissingMasterEditionTokenAccountError struct{}

MissingMasterEditionTokenAccountError Error: 176 `Missing master edition token account`

func (MissingMasterEditionTokenAccountError) Code

func (MissingMasterEditionTokenAccountError) Error

type MissingPrintSupplyError

type MissingPrintSupplyError struct{}

MissingPrintSupplyError Error: 166 `Print supply is required for non-fungibles`

func (MissingPrintSupplyError) Code

func (e MissingPrintSupplyError) Code() int

func (MissingPrintSupplyError) Error

func (e MissingPrintSupplyError) Error() string

type MissingProgrammableConfigError

type MissingProgrammableConfigError struct{}

MissingProgrammableConfigError Error: 139 `Missing programmable configuration`

func (MissingProgrammableConfigError) Code

func (MissingProgrammableConfigError) Error

type MissingSplTokenProgramError

type MissingSplTokenProgramError struct{}

MissingSplTokenProgramError Error: 149 `Missing SPL token program`

func (MissingSplTokenProgramError) Code

func (MissingSplTokenProgramError) Error

type MissingTokenAccountError

type MissingTokenAccountError struct{}

MissingTokenAccountError Error: 148 `Missing token account`

func (MissingTokenAccountError) Code

func (e MissingTokenAccountError) Code() int

func (MissingTokenAccountError) Error

func (e MissingTokenAccountError) Error() string

type MissingTokenOwnerAccountError

type MissingTokenOwnerAccountError struct{}

MissingTokenOwnerAccountError Error: 162 `Missing token owner`

func (MissingTokenOwnerAccountError) Code

func (MissingTokenOwnerAccountError) Error

type MissingTokenRecordError

type MissingTokenRecordError struct{}

MissingTokenRecordError Error: 159 `Missing token record account`

func (MissingTokenRecordError) Code

func (e MissingTokenRecordError) Code() int

func (MissingTokenRecordError) Error

func (e MissingTokenRecordError) Error() string

type MustBeBurnedError

type MustBeBurnedError struct{}

MustBeBurnedError Error: 76 “

func (MustBeBurnedError) Code

func (e MustBeBurnedError) Code() int

func (MustBeBurnedError) Error

func (e MustBeBurnedError) Error() string

type MustBeEscrowAuthorityError

type MustBeEscrowAuthorityError struct{}

MustBeEscrowAuthorityError Error: 125 `Must Escrow Authority`

func (MustBeEscrowAuthorityError) Code

func (MustBeEscrowAuthorityError) Error

type MustBeNonFungibleError

type MustBeNonFungibleError struct{}

MustBeNonFungibleError Error: 127 `Must be a Non Fungible Token`

func (MustBeNonFungibleError) Code

func (e MustBeNonFungibleError) Code() int

func (MustBeNonFungibleError) Error

func (e MustBeNonFungibleError) Error() string

type MustBeOneOfCreatorsError

type MustBeOneOfCreatorsError struct{}

MustBeOneOfCreatorsError Error: 38 “

func (MustBeOneOfCreatorsError) Code

func (e MustBeOneOfCreatorsError) Code() int

func (MustBeOneOfCreatorsError) Error

func (e MustBeOneOfCreatorsError) Error() string

type MustUnverifyError

type MustUnverifyError struct{}

MustUnverifyError Error: 123 `Must unverify before migrating collections.`

func (MustUnverifyError) Code

func (e MustUnverifyError) Code() int

func (MustUnverifyError) Error

func (e MustUnverifyError) Error() string

type NameTooLongError

type NameTooLongError struct{}

NameTooLongError Error: 11 `Name too long`

func (NameTooLongError) Code

func (e NameTooLongError) Code() int

func (NameTooLongError) Error

func (e NameTooLongError) Error() string

type NoBalanceInAccountForAuthorizationError

type NoBalanceInAccountForAuthorizationError struct{}

NoBalanceInAccountForAuthorizationError Error: 44 `This account has no tokens to be used for authorization`

func (NoBalanceInAccountForAuthorizationError) Code

func (NoBalanceInAccountForAuthorizationError) Error

type NoCreatorsPresentOnMetadataError

type NoCreatorsPresentOnMetadataError struct{}

NoCreatorsPresentOnMetadataError Error: 39 `This metadata does not have creators`

func (NoCreatorsPresentOnMetadataError) Code

func (NoCreatorsPresentOnMetadataError) Error

type NoFreezeAuthoritySetError

type NoFreezeAuthoritySetError struct{}

NoFreezeAuthoritySetError Error: 130 `Cannot create NFT with no Freeze Authority.`

func (NoFreezeAuthoritySetError) Code

func (e NoFreezeAuthoritySetError) Code() int

func (NoFreezeAuthoritySetError) Error

type NotACollectionParentError

type NotACollectionParentError struct{}

NotACollectionParentError Error: 106 `This NFT is not a collection parent NFT.`

func (NotACollectionParentError) Code

func (e NotACollectionParentError) Code() int

func (NotACollectionParentError) Error

type NotAMasterEditionError

type NotAMasterEditionError struct{}

NotAMasterEditionError Error: 109 `This edition is not a Master Edition`

func (NotAMasterEditionError) Code

func (e NotAMasterEditionError) Code() int

func (NotAMasterEditionError) Error

func (e NotAMasterEditionError) Error() string

type NotAMemberOfCollectionError

type NotAMemberOfCollectionError struct{}

NotAMemberOfCollectionError Error: 104 `This NFT is not a member of the specified collection.`

func (NotAMemberOfCollectionError) Code

func (NotAMemberOfCollectionError) Error

type NotAPrintEditionError

type NotAPrintEditionError struct{}

NotAPrintEditionError Error: 116 `This edition is not a Print Edition`

func (NotAPrintEditionError) Code

func (e NotAPrintEditionError) Code() int

func (NotAPrintEditionError) Error

func (e NotAPrintEditionError) Error() string

type NotAllowedToChangeSellerFeeBasisPointsError

type NotAllowedToChangeSellerFeeBasisPointsError struct{}

NotAllowedToChangeSellerFeeBasisPointsError Error: 96 “

func (NotAllowedToChangeSellerFeeBasisPointsError) Code

func (NotAllowedToChangeSellerFeeBasisPointsError) Error

type NotEnoughTokensError

type NotEnoughTokensError struct{}

NotEnoughTokensError Error: 32 `Not enough tokens to mint a limited edition`

func (NotEnoughTokensError) Code

func (e NotEnoughTokensError) Code() int

func (NotEnoughTokensError) Error

func (e NotEnoughTokensError) Error() string

type NotEnoughUsesError

type NotEnoughUsesError struct{}

NotEnoughUsesError Error: 86 `There are not enough Uses left on this token.`

func (NotEnoughUsesError) Code

func (e NotEnoughUsesError) Code() int

func (NotEnoughUsesError) Error

func (e NotEnoughUsesError) Error() string

type NotMintAuthorityError

type NotMintAuthorityError struct{}

NotMintAuthorityError Error: 9 `You must be the mint authority and signer on this transaction`

func (NotMintAuthorityError) Code

func (e NotMintAuthorityError) Code() int

func (NotMintAuthorityError) Error

func (e NotMintAuthorityError) Error() string

type NotRentExemptError

type NotRentExemptError struct{}

NotRentExemptError Error: 2 `Lamport balance below rent-exempt threshold`

func (NotRentExemptError) Code

func (e NotRentExemptError) Code() int

func (NotRentExemptError) Error

func (e NotRentExemptError) Error() string

type NotVerifiedMemberOfCollectionError

type NotVerifiedMemberOfCollectionError struct{}

NotVerifiedMemberOfCollectionError Error: 105 `This NFT is not a verified member of the specified collection.`

func (NotVerifiedMemberOfCollectionError) Code

func (NotVerifiedMemberOfCollectionError) Error

type NumericalOverflowError

type NumericalOverflowError struct{}

NumericalOverflowError Error: 51 `NumericalOverflowError`

func (NumericalOverflowError) Code

func (e NumericalOverflowError) Code() int

func (NumericalOverflowError) Error

func (e NumericalOverflowError) Error() string

type OneTimeAuthMintSupplyMustBeZeroForConversionError

type OneTimeAuthMintSupplyMustBeZeroForConversionError struct{}

OneTimeAuthMintSupplyMustBeZeroForConversionError Error: 70 `One Time Auth mint supply must be zero for conversion`

func (OneTimeAuthMintSupplyMustBeZeroForConversionError) Code

func (OneTimeAuthMintSupplyMustBeZeroForConversionError) Error

type OneTimePrintingAuthMintMismatchError

type OneTimePrintingAuthMintMismatchError struct{}

OneTimePrintingAuthMintMismatchError Error: 29 `The One Time Printing Auth mint does not match that on the master edition!`

func (OneTimePrintingAuthMintMismatchError) Code

func (OneTimePrintingAuthMintMismatchError) Error

type OneTimePrintingAuthorizationMintDecimalsShouldBeZeroError

type OneTimePrintingAuthorizationMintDecimalsShouldBeZeroError struct{}

OneTimePrintingAuthorizationMintDecimalsShouldBeZeroError Error: 23 “

func (OneTimePrintingAuthorizationMintDecimalsShouldBeZeroError) Code

func (OneTimePrintingAuthorizationMintDecimalsShouldBeZeroError) Error

type OnlySaleDelegateCanTransferError

type OnlySaleDelegateCanTransferError struct{}

OnlySaleDelegateCanTransferError Error: 147 `Only the sale delegate can transfer while its set`

func (OnlySaleDelegateCanTransferError) Code

func (OnlySaleDelegateCanTransferError) Error

type OwnerMismatchError

type OwnerMismatchError struct{}

OwnerMismatchError Error: 43 `Owner does not match that on the account given`

func (OwnerMismatchError) Code

func (e OwnerMismatchError) Code() int

func (OwnerMismatchError) Error

func (e OwnerMismatchError) Error() string

type Payload

type Payload struct {
	Map map[string]PayloadType
}

Payload Struct

func (*Payload) MarshalWithEncoder

func (obj *Payload) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*Payload) UnmarshalWithDecoder

func (obj *Payload) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type PayloadKey

type PayloadKey binary.BorshEnum

PayloadKey Enum

const (
	PayloadKeyAmount PayloadKey = iota
	PayloadKeyAuthority
	PayloadKeyAuthoritySeeds
	PayloadKeyDelegate
	PayloadKeyDelegateSeeds
	PayloadKeyDestination
	PayloadKeyDestinationSeeds
	PayloadKeyHolder
	PayloadKeySource
	PayloadKeySourceSeeds
)

func (PayloadKey) String

func (value PayloadKey) String() string

type PayloadType

type PayloadType struct {
	Pubkey      *PayloadTypePubkey      `bin:"optional"`
	Seeds       *PayloadTypeSeeds       `bin:"optional"`
	MerkleProof *PayloadTypeMerkleProof `bin:"optional"`
	Number      *PayloadTypeNumber      `bin:"optional"`
}

PayloadType Enum

func NewPayloadType_MerkleProof

func NewPayloadType_MerkleProof(field0 ProofInfo) PayloadType

func NewPayloadType_Number

func NewPayloadType_Number(field0 uint64) PayloadType

func NewPayloadType_Pubkey

func NewPayloadType_Pubkey(field0 common.PublicKey) PayloadType

func NewPayloadType_Seeds

func NewPayloadType_Seeds(field0 SeedsVec) PayloadType

func (*PayloadType) AsMerkleProof

func (obj *PayloadType) AsMerkleProof() PayloadTypeMerkleProof

func (*PayloadType) AsNumber

func (obj *PayloadType) AsNumber() PayloadTypeNumber

func (*PayloadType) AsPubkey

func (obj *PayloadType) AsPubkey() PayloadTypePubkey

func (*PayloadType) AsSeeds

func (obj *PayloadType) AsSeeds() PayloadTypeSeeds

func (*PayloadType) IsMerkleProof

func (obj *PayloadType) IsMerkleProof() bool

func (*PayloadType) IsNumber

func (obj *PayloadType) IsNumber() bool

func (*PayloadType) IsPubkey

func (obj *PayloadType) IsPubkey() bool

func (*PayloadType) IsSeeds

func (obj *PayloadType) IsSeeds() bool

func (*PayloadType) MarshalWithEncoder

func (obj *PayloadType) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*PayloadType) String

func (obj *PayloadType) String() string

func (*PayloadType) UnmarshalWithDecoder

func (obj *PayloadType) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type PayloadTypeMerkleProof

type PayloadTypeMerkleProof struct {
	Field0 ProofInfo
}

func (*PayloadTypeMerkleProof) MarshalWithEncoder

func (obj *PayloadTypeMerkleProof) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*PayloadTypeMerkleProof) UnmarshalWithDecoder

func (obj *PayloadTypeMerkleProof) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type PayloadTypeNumber

type PayloadTypeNumber struct {
	Field0 uint64
}

func (*PayloadTypeNumber) MarshalWithEncoder

func (obj *PayloadTypeNumber) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*PayloadTypeNumber) UnmarshalWithDecoder

func (obj *PayloadTypeNumber) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type PayloadTypePubkey

type PayloadTypePubkey struct {
	Field0 common.PublicKey
}

func (*PayloadTypePubkey) MarshalWithEncoder

func (obj *PayloadTypePubkey) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*PayloadTypePubkey) UnmarshalWithDecoder

func (obj *PayloadTypePubkey) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type PayloadTypeSeeds

type PayloadTypeSeeds struct {
	Field0 SeedsVec
}

func (*PayloadTypeSeeds) MarshalWithEncoder

func (obj *PayloadTypeSeeds) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*PayloadTypeSeeds) UnmarshalWithDecoder

func (obj *PayloadTypeSeeds) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type PrimarySaleCanOnlyBeFlippedToTrueError

type PrimarySaleCanOnlyBeFlippedToTrueError struct{}

PrimarySaleCanOnlyBeFlippedToTrueError Error: 42 `Primary sale can only be flipped to true and is immutable`

func (PrimarySaleCanOnlyBeFlippedToTrueError) Code

func (PrimarySaleCanOnlyBeFlippedToTrueError) Error

type Print

type Print struct {
	PrintArgs *PrintArgs
	// [0] = [WRITE] editionMetadata `New Metadata key (pda of ['metadata', program id, mint id])`
	// [1] = [WRITE] edition `New Edition (pda of ['metadata', program id, mint id, 'edition'])`
	// [2] = [WRITE] editionMint `Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY`
	// [3] = [] editionTokenAccountOwner `Owner of the token account of new token`
	// [4] = [WRITE] editionTokenAccount `Token account of new token`
	// [5] = [SIGNER] editionMintAuthority `Mint authority of new mint`
	// [6] = [WRITE] editionTokenRecord `Token record account`
	// [7] = [WRITE] masterEdition `Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition'])`
	// [8] = [WRITE] editionMarkerPda `Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master metadata mint id, 'edition', edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE).`
	// [9] = [WRITE, SIGNER] payer `payer`
	// [10] = [SIGNER] masterTokenAccountOwner `owner of token account containing master token`
	// [11] = [] masterTokenAccount `token account containing token from master metadata mint`
	// [12] = [] masterMetadata `Master record metadata account`
	// [13] = [] updateAuthority `The update authority of the master edition.`
	// [14] = [] splTokenProgram `Token program`
	// [15] = [] splAtaProgram `SPL Associated Token Account program`
	// [16] = [] sysvarInstructions `Instructions sysvar account`
	// [17] = [] systemProgram `System program`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

Print Instruction

func NewPrintInstruction

func NewPrintInstruction(
	printArgs PrintArgs,
	editionMetadata common.PublicKey,
	edition common.PublicKey,
	editionMint common.PublicKey,
	editionTokenAccountOwner common.PublicKey,
	editionTokenAccount common.PublicKey,
	editionMintAuthority common.PublicKey,
	editionTokenRecord common.PublicKey,
	masterEdition common.PublicKey,
	editionMarkerPda common.PublicKey,
	payer common.PublicKey,
	masterTokenAccountOwner common.PublicKey,
	masterTokenAccount common.PublicKey,
	masterMetadata common.PublicKey,
	updateAuthority common.PublicKey,
	splTokenProgram common.PublicKey,
	splAtaProgram common.PublicKey,
	sysvarInstructions common.PublicKey,
	systemProgram common.PublicKey,
) *Print

NewPrintInstruction

Parameters:

printArgs:
editionMetadata: New Metadata key (pda of ['metadata', program id, mint id])
edition: New Edition (pda of ['metadata', program id, mint id, 'edition'])
editionMint: Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
editionTokenAccountOwner: Owner of the token account of new token
editionTokenAccount: Token account of new token
editionMintAuthority: Mint authority of new mint
editionTokenRecord: Token record account
masterEdition: Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition'])
editionMarkerPda: Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master metadata mint id, 'edition', edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE).
payer: payer
masterTokenAccountOwner: owner of token account containing master token
masterTokenAccount: token account containing token from master metadata mint
masterMetadata: Master record metadata account
updateAuthority: The update authority of the master edition.
splTokenProgram: Token program
splAtaProgram: SPL Associated Token Account program
sysvarInstructions: Instructions sysvar account
systemProgram: System program

func NewPrintInstructionBuilder

func NewPrintInstructionBuilder() *Print

NewPrintInstructionBuilder creates a new `Print` instruction builder.

func (*Print) Build

func (obj *Print) Build() *Instruction

func (*Print) EncodeToTree

func (obj *Print) EncodeToTree(parent treeout.Branches)

func (*Print) GetEditionAccount

func (obj *Print) GetEditionAccount() *common.AccountMeta

GetEditionAccount gets the "edition" parameter. New Edition (pda of ['metadata', program id, mint id, 'edition'])

func (*Print) GetEditionMarkerPdaAccount

func (obj *Print) GetEditionMarkerPdaAccount() *common.AccountMeta

GetEditionMarkerPdaAccount gets the "editionMarkerPda" parameter. Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master metadata mint id, 'edition', edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE).

func (*Print) GetEditionMetadataAccount

func (obj *Print) GetEditionMetadataAccount() *common.AccountMeta

GetEditionMetadataAccount gets the "editionMetadata" parameter. New Metadata key (pda of ['metadata', program id, mint id])

func (*Print) GetEditionMintAccount

func (obj *Print) GetEditionMintAccount() *common.AccountMeta

GetEditionMintAccount gets the "editionMint" parameter. Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY

func (*Print) GetEditionMintAuthorityAccount

func (obj *Print) GetEditionMintAuthorityAccount() *common.AccountMeta

GetEditionMintAuthorityAccount gets the "editionMintAuthority" parameter. Mint authority of new mint

func (*Print) GetEditionTokenAccountAccount

func (obj *Print) GetEditionTokenAccountAccount() *common.AccountMeta

GetEditionTokenAccountAccount gets the "editionTokenAccount" parameter. Token account of new token

func (*Print) GetEditionTokenAccountOwnerAccount

func (obj *Print) GetEditionTokenAccountOwnerAccount() *common.AccountMeta

GetEditionTokenAccountOwnerAccount gets the "editionTokenAccountOwner" parameter. Owner of the token account of new token

func (*Print) GetEditionTokenRecordAccount

func (obj *Print) GetEditionTokenRecordAccount() *common.AccountMeta

GetEditionTokenRecordAccount gets the "editionTokenRecord" parameter. Token record account

func (*Print) GetMasterEditionAccount

func (obj *Print) GetMasterEditionAccount() *common.AccountMeta

GetMasterEditionAccount gets the "masterEdition" parameter. Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition'])

func (*Print) GetMasterMetadataAccount

func (obj *Print) GetMasterMetadataAccount() *common.AccountMeta

GetMasterMetadataAccount gets the "masterMetadata" parameter. Master record metadata account

func (*Print) GetMasterTokenAccountAccount

func (obj *Print) GetMasterTokenAccountAccount() *common.AccountMeta

GetMasterTokenAccountAccount gets the "masterTokenAccount" parameter. token account containing token from master metadata mint

func (*Print) GetMasterTokenAccountOwnerAccount

func (obj *Print) GetMasterTokenAccountOwnerAccount() *common.AccountMeta

GetMasterTokenAccountOwnerAccount gets the "masterTokenAccountOwner" parameter. owner of token account containing master token

func (*Print) GetPayerAccount

func (obj *Print) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. payer

func (*Print) GetSplAtaProgramAccount

func (obj *Print) GetSplAtaProgramAccount() *common.AccountMeta

GetSplAtaProgramAccount gets the "splAtaProgram" parameter. SPL Associated Token Account program

func (*Print) GetSplTokenProgramAccount

func (obj *Print) GetSplTokenProgramAccount() *common.AccountMeta

GetSplTokenProgramAccount gets the "splTokenProgram" parameter. Token program

func (*Print) GetSystemProgramAccount

func (obj *Print) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*Print) GetSysvarInstructionsAccount

func (obj *Print) GetSysvarInstructionsAccount() *common.AccountMeta

GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account

func (*Print) GetUpdateAuthorityAccount

func (obj *Print) GetUpdateAuthorityAccount() *common.AccountMeta

GetUpdateAuthorityAccount gets the "updateAuthority" parameter. The update authority of the master edition.

func (*Print) MarshalWithEncoder

func (obj *Print) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*Print) SetEditionAccount

func (obj *Print) SetEditionAccount(edition common.PublicKey) *Print

SetEditionAccount sets the "edition" parameter. New Edition (pda of ['metadata', program id, mint id, 'edition'])

func (*Print) SetEditionMarkerPdaAccount

func (obj *Print) SetEditionMarkerPdaAccount(editionMarkerPda common.PublicKey) *Print

SetEditionMarkerPdaAccount sets the "editionMarkerPda" parameter. Edition pda to mark creation - will be checked for pre-existence. (pda of ['metadata', program id, master metadata mint id, 'edition', edition_number]) where edition_number is NOT the edition number you pass in args but actually edition_number = floor(edition/EDITION_MARKER_BIT_SIZE).

func (*Print) SetEditionMetadataAccount

func (obj *Print) SetEditionMetadataAccount(editionMetadata common.PublicKey) *Print

SetEditionMetadataAccount sets the "editionMetadata" parameter. New Metadata key (pda of ['metadata', program id, mint id])

func (*Print) SetEditionMintAccount

func (obj *Print) SetEditionMintAccount(editionMint common.PublicKey) *Print

SetEditionMintAccount sets the "editionMint" parameter. Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY

func (*Print) SetEditionMintAuthorityAccount

func (obj *Print) SetEditionMintAuthorityAccount(editionMintAuthority common.PublicKey) *Print

SetEditionMintAuthorityAccount sets the "editionMintAuthority" parameter. Mint authority of new mint

func (*Print) SetEditionTokenAccountAccount

func (obj *Print) SetEditionTokenAccountAccount(editionTokenAccount common.PublicKey) *Print

SetEditionTokenAccountAccount sets the "editionTokenAccount" parameter. Token account of new token

func (*Print) SetEditionTokenAccountOwnerAccount

func (obj *Print) SetEditionTokenAccountOwnerAccount(editionTokenAccountOwner common.PublicKey) *Print

SetEditionTokenAccountOwnerAccount sets the "editionTokenAccountOwner" parameter. Owner of the token account of new token

func (*Print) SetEditionTokenRecordAccount

func (obj *Print) SetEditionTokenRecordAccount(editionTokenRecord common.PublicKey) *Print

SetEditionTokenRecordAccount sets the "editionTokenRecord" parameter. Token record account

func (*Print) SetMasterEditionAccount

func (obj *Print) SetMasterEditionAccount(masterEdition common.PublicKey) *Print

SetMasterEditionAccount sets the "masterEdition" parameter. Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition'])

func (*Print) SetMasterMetadataAccount

func (obj *Print) SetMasterMetadataAccount(masterMetadata common.PublicKey) *Print

SetMasterMetadataAccount sets the "masterMetadata" parameter. Master record metadata account

func (*Print) SetMasterTokenAccountAccount

func (obj *Print) SetMasterTokenAccountAccount(masterTokenAccount common.PublicKey) *Print

SetMasterTokenAccountAccount sets the "masterTokenAccount" parameter. token account containing token from master metadata mint

func (*Print) SetMasterTokenAccountOwnerAccount

func (obj *Print) SetMasterTokenAccountOwnerAccount(masterTokenAccountOwner common.PublicKey) *Print

SetMasterTokenAccountOwnerAccount sets the "masterTokenAccountOwner" parameter. owner of token account containing master token

func (*Print) SetPayerAccount

func (obj *Print) SetPayerAccount(payer common.PublicKey) *Print

SetPayerAccount sets the "payer" parameter. payer

func (*Print) SetPrintArgs

func (obj *Print) SetPrintArgs(printArgs PrintArgs) *Print

SetPrintArgs sets the "printArgs" parameter.

func (*Print) SetProgramId

func (obj *Print) SetProgramId(programId *common.PublicKey) *Print

func (*Print) SetSplAtaProgramAccount

func (obj *Print) SetSplAtaProgramAccount(splAtaProgram common.PublicKey) *Print

SetSplAtaProgramAccount sets the "splAtaProgram" parameter. SPL Associated Token Account program

func (*Print) SetSplTokenProgramAccount

func (obj *Print) SetSplTokenProgramAccount(splTokenProgram common.PublicKey) *Print

SetSplTokenProgramAccount sets the "splTokenProgram" parameter. Token program

func (*Print) SetSystemProgramAccount

func (obj *Print) SetSystemProgramAccount(systemProgram common.PublicKey, multiSigners ...common.PublicKey) *Print

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*Print) SetSysvarInstructionsAccount

func (obj *Print) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *Print

SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account

func (*Print) SetUpdateAuthorityAccount

func (obj *Print) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *Print

SetUpdateAuthorityAccount sets the "updateAuthority" parameter. The update authority of the master edition.

func (*Print) UnmarshalWithDecoder

func (obj *Print) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

func (*Print) Validate

func (obj *Print) Validate() error

func (*Print) ValidateAndBuild

func (obj *Print) 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 PrintArgs

type PrintArgs struct {
	V1 *PrintArgsV1 `bin:"optional"`
}

PrintArgs Enum

func NewPrintArgs_V1

func NewPrintArgs_V1(edition uint64) PrintArgs

func (*PrintArgs) AsV1

func (obj *PrintArgs) AsV1() PrintArgsV1

func (*PrintArgs) IsV1

func (obj *PrintArgs) IsV1() bool

func (*PrintArgs) MarshalWithEncoder

func (obj *PrintArgs) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*PrintArgs) String

func (obj *PrintArgs) String() string

func (*PrintArgs) UnmarshalWithDecoder

func (obj *PrintArgs) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type PrintArgsV1

type PrintArgsV1 struct {
	Edition uint64
}

func (*PrintArgsV1) MarshalWithEncoder

func (obj *PrintArgsV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*PrintArgsV1) UnmarshalWithDecoder

func (obj *PrintArgsV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type PrintEditionDoesNotMatchMasterEditionError

type PrintEditionDoesNotMatchMasterEditionError struct{}

PrintEditionDoesNotMatchMasterEditionError Error: 121 `Print Edition does not match Master Edition`

func (PrintEditionDoesNotMatchMasterEditionError) Code

func (PrintEditionDoesNotMatchMasterEditionError) Error

type PrintSupply

type PrintSupply struct {
	Zero      *struct{}           `bin:"optional"`
	Limited   *PrintSupplyLimited `bin:"optional"`
	Unlimited *struct{}           `bin:"optional"`
}

PrintSupply Enum

func NewPrintSupply_Limited

func NewPrintSupply_Limited(field0 uint64) PrintSupply

func NewPrintSupply_Unlimited

func NewPrintSupply_Unlimited() PrintSupply

func NewPrintSupply_Zero

func NewPrintSupply_Zero() PrintSupply

func (*PrintSupply) AsLimited

func (obj *PrintSupply) AsLimited() PrintSupplyLimited

func (*PrintSupply) IsLimited

func (obj *PrintSupply) IsLimited() bool

func (*PrintSupply) IsUnlimited

func (obj *PrintSupply) IsUnlimited() bool

func (*PrintSupply) IsZero

func (obj *PrintSupply) IsZero() bool

func (*PrintSupply) MarshalWithEncoder

func (obj *PrintSupply) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*PrintSupply) String

func (obj *PrintSupply) String() string

func (*PrintSupply) UnmarshalWithDecoder

func (obj *PrintSupply) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type PrintSupplyLimited

type PrintSupplyLimited struct {
	Field0 uint64
}

func (*PrintSupplyLimited) MarshalWithEncoder

func (obj *PrintSupplyLimited) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*PrintSupplyLimited) UnmarshalWithDecoder

func (obj *PrintSupplyLimited) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type PrintingMintAuthorizationAccountMismatchError

type PrintingMintAuthorizationAccountMismatchError struct{}

PrintingMintAuthorizationAccountMismatchError Error: 33 “

func (PrintingMintAuthorizationAccountMismatchError) Code

func (PrintingMintAuthorizationAccountMismatchError) Error

type PrintingMintDecimalsShouldBeZeroError

type PrintingMintDecimalsShouldBeZeroError struct{}

PrintingMintDecimalsShouldBeZeroError Error: 22 “

func (PrintingMintDecimalsShouldBeZeroError) Code

func (PrintingMintDecimalsShouldBeZeroError) Error

type PrintingMintMismatchError

type PrintingMintMismatchError struct{}

PrintingMintMismatchError Error: 28 `The Printing mint does not match that on the master edition!`

func (PrintingMintMismatchError) Code

func (e PrintingMintMismatchError) Code() int

func (PrintingMintMismatchError) Error

type PrintingMintSupplyMustBeZeroForConversionError

type PrintingMintSupplyMustBeZeroForConversionError struct{}

PrintingMintSupplyMustBeZeroForConversionError Error: 69 `Printing mint supply must be zero for conversion`

func (PrintingMintSupplyMustBeZeroForConversionError) Code

func (PrintingMintSupplyMustBeZeroForConversionError) Error

type PrintingWouldBreachMaximumSupplyError

type PrintingWouldBreachMaximumSupplyError struct{}

PrintingWouldBreachMaximumSupplyError Error: 58 “

func (PrintingWouldBreachMaximumSupplyError) Code

func (PrintingWouldBreachMaximumSupplyError) Error

type ProgramError

type ProgramError interface {
	Code() int
	Error() string
}

func GetMplTokenMetadataErrorFromCode

func GetMplTokenMetadataErrorFromCode(code int) ProgramError

func GetMplTokenMetadataErrorFromName

func GetMplTokenMetadataErrorFromName(name string) ProgramError

type ProgrammableConfig

type ProgrammableConfig struct {
	V1 *ProgrammableConfigV1 `bin:"optional"`
}

ProgrammableConfig Enum

func NewProgrammableConfig_V1

func NewProgrammableConfig_V1(ruleSet *common.PublicKey) ProgrammableConfig

func (*ProgrammableConfig) AsV1

func (*ProgrammableConfig) IsV1

func (obj *ProgrammableConfig) IsV1() bool

func (*ProgrammableConfig) MarshalWithEncoder

func (obj *ProgrammableConfig) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*ProgrammableConfig) String

func (obj *ProgrammableConfig) String() string

func (*ProgrammableConfig) UnmarshalWithDecoder

func (obj *ProgrammableConfig) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type ProgrammableConfigV1

type ProgrammableConfigV1 struct {
	RuleSet *common.PublicKey `bin:"optional"`
}

func (*ProgrammableConfigV1) MarshalWithEncoder

func (obj *ProgrammableConfigV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*ProgrammableConfigV1) UnmarshalWithDecoder

func (obj *ProgrammableConfigV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type ProofInfo

type ProofInfo struct {
	Proof [][32]uint8
}

ProofInfo Struct

func (*ProofInfo) MarshalWithEncoder

func (obj *ProofInfo) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*ProofInfo) UnmarshalWithDecoder

func (obj *ProofInfo) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type PuffMetadata

type PuffMetadata struct {
	// [0] = [WRITE] metadata `Metadata account`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

PuffMetadata Instruction

func NewPuffMetadataInstruction

func NewPuffMetadataInstruction(
	metadata common.PublicKey,
) *PuffMetadata

NewPuffMetadataInstruction

Parameters:

metadata: Metadata account

func NewPuffMetadataInstructionBuilder

func NewPuffMetadataInstructionBuilder() *PuffMetadata

NewPuffMetadataInstructionBuilder creates a new `PuffMetadata` instruction builder.

func (*PuffMetadata) Build

func (obj *PuffMetadata) Build() *Instruction

func (*PuffMetadata) EncodeToTree

func (obj *PuffMetadata) EncodeToTree(parent treeout.Branches)

func (*PuffMetadata) GetMetadataAccount

func (obj *PuffMetadata) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*PuffMetadata) MarshalWithEncoder

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

func (*PuffMetadata) SetMetadataAccount

func (obj *PuffMetadata) SetMetadataAccount(metadata common.PublicKey, multiSigners ...common.PublicKey) *PuffMetadata

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*PuffMetadata) SetProgramId

func (obj *PuffMetadata) SetProgramId(programId *common.PublicKey) *PuffMetadata

func (*PuffMetadata) UnmarshalWithDecoder

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

func (*PuffMetadata) Validate

func (obj *PuffMetadata) Validate() error

func (*PuffMetadata) ValidateAndBuild

func (obj *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 `Metadata (pda of ['metadata', program id, mint id])`
	// [1] = [SIGNER] creator `Creator`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

RemoveCreatorVerification Instruction

func NewRemoveCreatorVerificationInstruction

func NewRemoveCreatorVerificationInstruction(
	metadata common.PublicKey,
	creator common.PublicKey,
) *RemoveCreatorVerification

NewRemoveCreatorVerificationInstruction

Parameters:

metadata: Metadata (pda of ['metadata', program id, mint id])
creator: Creator

func NewRemoveCreatorVerificationInstructionBuilder

func NewRemoveCreatorVerificationInstructionBuilder() *RemoveCreatorVerification

NewRemoveCreatorVerificationInstructionBuilder creates a new `RemoveCreatorVerification` instruction builder.

func (*RemoveCreatorVerification) Build

func (obj *RemoveCreatorVerification) Build() *Instruction

func (*RemoveCreatorVerification) EncodeToTree

func (obj *RemoveCreatorVerification) EncodeToTree(parent treeout.Branches)

func (*RemoveCreatorVerification) GetCreatorAccount

func (obj *RemoveCreatorVerification) GetCreatorAccount() *common.AccountMeta

GetCreatorAccount gets the "creator" parameter. Creator

func (*RemoveCreatorVerification) GetMetadataAccount

func (obj *RemoveCreatorVerification) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata (pda of ['metadata', program id, mint id])

func (*RemoveCreatorVerification) MarshalWithEncoder

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

func (*RemoveCreatorVerification) SetCreatorAccount

func (obj *RemoveCreatorVerification) SetCreatorAccount(creator common.PublicKey, multiSigners ...common.PublicKey) *RemoveCreatorVerification

SetCreatorAccount sets the "creator" parameter. Creator

func (*RemoveCreatorVerification) SetMetadataAccount

func (obj *RemoveCreatorVerification) SetMetadataAccount(metadata common.PublicKey) *RemoveCreatorVerification

SetMetadataAccount sets the "metadata" parameter. Metadata (pda of ['metadata', program id, mint id])

func (*RemoveCreatorVerification) SetProgramId

func (*RemoveCreatorVerification) UnmarshalWithDecoder

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

func (*RemoveCreatorVerification) Validate

func (obj *RemoveCreatorVerification) Validate() error

func (*RemoveCreatorVerification) ValidateAndBuild

func (obj *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 RemovedError

type RemovedError struct{}

RemovedError Error: 75 `This instruction was deprecated in a previous release and is now removed`

func (RemovedError) Code

func (e RemovedError) Code() int

func (RemovedError) Error

func (e RemovedError) Error() string

type Reservation

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

Reservation Struct

func (*Reservation) MarshalWithEncoder

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

func (*Reservation) UnmarshalWithDecoder

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

type ReservationAlreadyMadeError

type ReservationAlreadyMadeError struct{}

ReservationAlreadyMadeError Error: 49 “

func (ReservationAlreadyMadeError) Code

func (ReservationAlreadyMadeError) Error

type ReservationArrayShouldBeSizeOneError

type ReservationArrayShouldBeSizeOneError struct{}

ReservationArrayShouldBeSizeOneError Error: 72 “

func (ReservationArrayShouldBeSizeOneError) Code

func (ReservationArrayShouldBeSizeOneError) Error

type ReservationBreachesMaximumSupplyError

type ReservationBreachesMaximumSupplyError struct{}

ReservationBreachesMaximumSupplyError Error: 52 “

func (ReservationBreachesMaximumSupplyError) Code

func (ReservationBreachesMaximumSupplyError) Error

type ReservationDoesNotExistError

type ReservationDoesNotExistError struct{}

ReservationDoesNotExistError Error: 47 “

func (ReservationDoesNotExistError) Code

func (ReservationDoesNotExistError) Error

type ReservationExistsError

type ReservationExistsError struct{}

ReservationExistsError Error: 46 “

func (ReservationExistsError) Code

func (e ReservationExistsError) Code() int

func (ReservationExistsError) Error

func (e ReservationExistsError) Error() string

type ReservationListDeprecatedError

type ReservationListDeprecatedError struct{}

ReservationListDeprecatedError Error: 120 `Reservation List is Deprecated`

func (ReservationListDeprecatedError) Code

func (ReservationListDeprecatedError) Error

type ReservationListV1

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

ReservationListV1 Struct

func (*ReservationListV1) MarshalWithEncoder

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

func (*ReservationListV1) UnmarshalWithDecoder

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

type ReservationListV2

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

ReservationListV2 Struct

func (*ReservationListV2) MarshalWithEncoder

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

func (*ReservationListV2) UnmarshalWithDecoder

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

type ReservationNotCompleteError

type ReservationNotCompleteError struct{}

ReservationNotCompleteError Error: 65 “

func (ReservationNotCompleteError) Code

func (ReservationNotCompleteError) Error

type ReservationNotSetError

type ReservationNotSetError struct{}

ReservationNotSetError Error: 48 “

func (ReservationNotSetError) Code

func (e ReservationNotSetError) Code() int

func (ReservationNotSetError) Error

func (e ReservationNotSetError) Error() string

type ReservationSpotsRemainingShouldMatchTotalSpotsAtStartError

type ReservationSpotsRemainingShouldMatchTotalSpotsAtStartError struct{}

ReservationSpotsRemainingShouldMatchTotalSpotsAtStartError Error: 61 “

func (ReservationSpotsRemainingShouldMatchTotalSpotsAtStartError) Code

func (ReservationSpotsRemainingShouldMatchTotalSpotsAtStartError) Error

type ReservationV1

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

ReservationV1 Struct

func (*ReservationV1) MarshalWithEncoder

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

func (*ReservationV1) UnmarshalWithDecoder

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

type Revoke

type Revoke struct {
	RevokeArgs *RevokeArgs
	// [0] = [WRITE] delegateRecord `Delegate record account`
	// [1] = [] delegate `Owner of the delegated account`
	// [2] = [WRITE] metadata `Metadata account`
	// [3] = [] masterEdition `Master Edition account`
	// [4] = [WRITE] tokenRecord `Token record account`
	// [5] = [] mint `Mint of metadata`
	// [6] = [WRITE] token `Token account of mint`
	// [7] = [SIGNER] authority `Update authority or token owner`
	// [8] = [WRITE, SIGNER] payer `Payer`
	// [9] = [] systemProgram `System Program`
	// [10] = [] sysvarInstructions `Instructions sysvar account`
	// [11] = [] splTokenProgram `SPL Token Program`
	// [12] = [] authorizationRulesProgram `Token Authorization Rules Program`
	// [13] = [] authorizationRules `Token Authorization Rules account`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

Revoke Instruction

func NewRevokeInstruction

func NewRevokeInstruction(
	revokeArgs RevokeArgs,
	delegateRecord common.PublicKey,
	delegate common.PublicKey,
	metadata common.PublicKey,
	masterEdition common.PublicKey,
	tokenRecord common.PublicKey,
	mint common.PublicKey,
	token common.PublicKey,
	authority common.PublicKey,
	payer common.PublicKey,
	systemProgram common.PublicKey,
	sysvarInstructions common.PublicKey,
	splTokenProgram common.PublicKey,
	authorizationRulesProgram common.PublicKey,
	authorizationRules common.PublicKey,
) *Revoke

NewRevokeInstruction

Parameters:

revokeArgs:
delegateRecord: Delegate record account
delegate: Owner of the delegated account
metadata: Metadata account
masterEdition: Master Edition account
tokenRecord: Token record account
mint: Mint of metadata
token: Token account of mint
authority: Update authority or token owner
payer: Payer
systemProgram: System Program
sysvarInstructions: Instructions sysvar account
splTokenProgram: SPL Token Program
authorizationRulesProgram: Token Authorization Rules Program
authorizationRules: Token Authorization Rules account

func NewRevokeInstructionBuilder

func NewRevokeInstructionBuilder() *Revoke

NewRevokeInstructionBuilder creates a new `Revoke` instruction builder.

func (*Revoke) Build

func (obj *Revoke) Build() *Instruction

func (*Revoke) EncodeToTree

func (obj *Revoke) EncodeToTree(parent treeout.Branches)

func (*Revoke) GetAuthorityAccount

func (obj *Revoke) GetAuthorityAccount() *common.AccountMeta

GetAuthorityAccount gets the "authority" parameter. Update authority or token owner

func (*Revoke) GetAuthorizationRulesAccount

func (obj *Revoke) GetAuthorizationRulesAccount() *common.AccountMeta

GetAuthorizationRulesAccount gets the "authorizationRules" parameter. Token Authorization Rules account

func (*Revoke) GetAuthorizationRulesProgramAccount

func (obj *Revoke) GetAuthorizationRulesProgramAccount() *common.AccountMeta

GetAuthorizationRulesProgramAccount gets the "authorizationRulesProgram" parameter. Token Authorization Rules Program

func (*Revoke) GetDelegateAccount

func (obj *Revoke) GetDelegateAccount() *common.AccountMeta

GetDelegateAccount gets the "delegate" parameter. Owner of the delegated account

func (*Revoke) GetDelegateRecordAccount

func (obj *Revoke) GetDelegateRecordAccount() *common.AccountMeta

GetDelegateRecordAccount gets the "delegateRecord" parameter. Delegate record account

func (*Revoke) GetMasterEditionAccount

func (obj *Revoke) GetMasterEditionAccount() *common.AccountMeta

GetMasterEditionAccount gets the "masterEdition" parameter. Master Edition account

func (*Revoke) GetMetadataAccount

func (obj *Revoke) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*Revoke) GetMintAccount

func (obj *Revoke) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Mint of metadata

func (*Revoke) GetPayerAccount

func (obj *Revoke) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. Payer

func (*Revoke) GetSplTokenProgramAccount

func (obj *Revoke) GetSplTokenProgramAccount() *common.AccountMeta

GetSplTokenProgramAccount gets the "splTokenProgram" parameter. SPL Token Program

func (*Revoke) GetSystemProgramAccount

func (obj *Revoke) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System Program

func (*Revoke) GetSysvarInstructionsAccount

func (obj *Revoke) GetSysvarInstructionsAccount() *common.AccountMeta

GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account

func (*Revoke) GetTokenAccount

func (obj *Revoke) GetTokenAccount() *common.AccountMeta

GetTokenAccount gets the "token" parameter. Token account of mint

func (*Revoke) GetTokenRecordAccount

func (obj *Revoke) GetTokenRecordAccount() *common.AccountMeta

GetTokenRecordAccount gets the "tokenRecord" parameter. Token record account

func (*Revoke) MarshalWithEncoder

func (obj *Revoke) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*Revoke) SetAuthorityAccount

func (obj *Revoke) SetAuthorityAccount(authority common.PublicKey) *Revoke

SetAuthorityAccount sets the "authority" parameter. Update authority or token owner

func (*Revoke) SetAuthorizationRulesAccount

func (obj *Revoke) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Revoke

SetAuthorizationRulesAccount sets the "authorizationRules" parameter. Token Authorization Rules account

func (*Revoke) SetAuthorizationRulesProgramAccount

func (obj *Revoke) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Revoke

SetAuthorizationRulesProgramAccount sets the "authorizationRulesProgram" parameter. Token Authorization Rules Program

func (*Revoke) SetDelegateAccount

func (obj *Revoke) SetDelegateAccount(delegate common.PublicKey) *Revoke

SetDelegateAccount sets the "delegate" parameter. Owner of the delegated account

func (*Revoke) SetDelegateRecordAccount

func (obj *Revoke) SetDelegateRecordAccount(delegateRecord common.PublicKey) *Revoke

SetDelegateRecordAccount sets the "delegateRecord" parameter. Delegate record account

func (*Revoke) SetMasterEditionAccount

func (obj *Revoke) SetMasterEditionAccount(masterEdition common.PublicKey) *Revoke

SetMasterEditionAccount sets the "masterEdition" parameter. Master Edition account

func (*Revoke) SetMetadataAccount

func (obj *Revoke) SetMetadataAccount(metadata common.PublicKey) *Revoke

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*Revoke) SetMintAccount

func (obj *Revoke) SetMintAccount(mint common.PublicKey) *Revoke

SetMintAccount sets the "mint" parameter. Mint of metadata

func (*Revoke) SetPayerAccount

func (obj *Revoke) SetPayerAccount(payer common.PublicKey) *Revoke

SetPayerAccount sets the "payer" parameter. Payer

func (*Revoke) SetProgramId

func (obj *Revoke) SetProgramId(programId *common.PublicKey) *Revoke

func (*Revoke) SetRevokeArgs

func (obj *Revoke) SetRevokeArgs(revokeArgs RevokeArgs) *Revoke

SetRevokeArgs sets the "revokeArgs" parameter.

func (*Revoke) SetSplTokenProgramAccount

func (obj *Revoke) SetSplTokenProgramAccount(splTokenProgram common.PublicKey) *Revoke

SetSplTokenProgramAccount sets the "splTokenProgram" parameter. SPL Token Program

func (*Revoke) SetSystemProgramAccount

func (obj *Revoke) SetSystemProgramAccount(systemProgram common.PublicKey) *Revoke

SetSystemProgramAccount sets the "systemProgram" parameter. System Program

func (*Revoke) SetSysvarInstructionsAccount

func (obj *Revoke) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *Revoke

SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account

func (*Revoke) SetTokenAccount

func (obj *Revoke) SetTokenAccount(token common.PublicKey) *Revoke

SetTokenAccount sets the "token" parameter. Token account of mint

func (*Revoke) SetTokenRecordAccount

func (obj *Revoke) SetTokenRecordAccount(tokenRecord common.PublicKey) *Revoke

SetTokenRecordAccount sets the "tokenRecord" parameter. Token record account

func (*Revoke) UnmarshalWithDecoder

func (obj *Revoke) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

func (*Revoke) Validate

func (obj *Revoke) Validate() error

func (*Revoke) ValidateAndBuild

func (obj *Revoke) 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 RevokeArgs

type RevokeArgs binary.BorshEnum

RevokeArgs Enum

const (
	RevokeArgsCollectionV1 RevokeArgs = iota
	RevokeArgsSaleV1
	RevokeArgsTransferV1
	RevokeArgsDataV1
	RevokeArgsUtilityV1
	RevokeArgsStakingV1
	RevokeArgsStandardV1
	RevokeArgsLockedTransferV1
	RevokeArgsProgrammableConfigV1
	RevokeArgsMigrationV1
	RevokeArgsAuthorityItemV1
	RevokeArgsDataItemV1
	RevokeArgsCollectionItemV1
	RevokeArgsProgrammableConfigItemV1
)

func (RevokeArgs) String

func (value RevokeArgs) String() string

type RevokeCollectionAuthority

type RevokeCollectionAuthority struct {
	// [0] = [WRITE] collectionAuthorityRecord `Collection Authority Record PDA`
	// [1] = [WRITE] delegateAuthority `Delegated Collection Authority`
	// [2] = [WRITE, SIGNER] revokeAuthority `Update Authority, or Delegated Authority, of Collection NFT`
	// [3] = [] metadata `Metadata account`
	// [4] = [] mint `Mint of Metadata`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

RevokeCollectionAuthority Instruction

func NewRevokeCollectionAuthorityInstruction

func NewRevokeCollectionAuthorityInstruction(
	collectionAuthorityRecord common.PublicKey,
	delegateAuthority common.PublicKey,
	revokeAuthority common.PublicKey,
	metadata common.PublicKey,
	mint common.PublicKey,
) *RevokeCollectionAuthority

NewRevokeCollectionAuthorityInstruction

Parameters:

collectionAuthorityRecord: Collection Authority Record PDA
delegateAuthority: Delegated Collection Authority
revokeAuthority: Update Authority, or Delegated Authority, of Collection NFT
metadata: Metadata account
mint: Mint of Metadata

func NewRevokeCollectionAuthorityInstructionBuilder

func NewRevokeCollectionAuthorityInstructionBuilder() *RevokeCollectionAuthority

NewRevokeCollectionAuthorityInstructionBuilder creates a new `RevokeCollectionAuthority` instruction builder.

func (*RevokeCollectionAuthority) Build

func (obj *RevokeCollectionAuthority) Build() *Instruction

func (*RevokeCollectionAuthority) EncodeToTree

func (obj *RevokeCollectionAuthority) EncodeToTree(parent treeout.Branches)

func (*RevokeCollectionAuthority) GetCollectionAuthorityRecordAccount

func (obj *RevokeCollectionAuthority) GetCollectionAuthorityRecordAccount() *common.AccountMeta

GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA

func (*RevokeCollectionAuthority) GetDelegateAuthorityAccount

func (obj *RevokeCollectionAuthority) GetDelegateAuthorityAccount() *common.AccountMeta

GetDelegateAuthorityAccount gets the "delegateAuthority" parameter. Delegated Collection Authority

func (*RevokeCollectionAuthority) GetMetadataAccount

func (obj *RevokeCollectionAuthority) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*RevokeCollectionAuthority) GetMintAccount

func (obj *RevokeCollectionAuthority) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Mint of Metadata

func (*RevokeCollectionAuthority) GetRevokeAuthorityAccount

func (obj *RevokeCollectionAuthority) GetRevokeAuthorityAccount() *common.AccountMeta

GetRevokeAuthorityAccount gets the "revokeAuthority" parameter. Update Authority, or Delegated Authority, of Collection NFT

func (*RevokeCollectionAuthority) MarshalWithEncoder

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

func (*RevokeCollectionAuthority) SetCollectionAuthorityRecordAccount

func (obj *RevokeCollectionAuthority) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey) *RevokeCollectionAuthority

SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA

func (*RevokeCollectionAuthority) SetDelegateAuthorityAccount

func (obj *RevokeCollectionAuthority) SetDelegateAuthorityAccount(delegateAuthority common.PublicKey) *RevokeCollectionAuthority

SetDelegateAuthorityAccount sets the "delegateAuthority" parameter. Delegated Collection Authority

func (*RevokeCollectionAuthority) SetMetadataAccount

func (obj *RevokeCollectionAuthority) SetMetadataAccount(metadata common.PublicKey) *RevokeCollectionAuthority

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*RevokeCollectionAuthority) SetMintAccount

func (obj *RevokeCollectionAuthority) SetMintAccount(mint common.PublicKey, multiSigners ...common.PublicKey) *RevokeCollectionAuthority

SetMintAccount sets the "mint" parameter. Mint of Metadata

func (*RevokeCollectionAuthority) SetProgramId

func (*RevokeCollectionAuthority) SetRevokeAuthorityAccount

func (obj *RevokeCollectionAuthority) SetRevokeAuthorityAccount(revokeAuthority common.PublicKey) *RevokeCollectionAuthority

SetRevokeAuthorityAccount sets the "revokeAuthority" parameter. Update Authority, or Delegated Authority, of Collection NFT

func (*RevokeCollectionAuthority) UnmarshalWithDecoder

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

func (*RevokeCollectionAuthority) Validate

func (obj *RevokeCollectionAuthority) Validate() error

func (*RevokeCollectionAuthority) ValidateAndBuild

func (obj *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 RevokeCollectionAuthoritySignerIncorrectError

type RevokeCollectionAuthoritySignerIncorrectError struct{}

RevokeCollectionAuthoritySignerIncorrectError Error: 99 `Revoke Collection Authority signer is incorrect`

func (RevokeCollectionAuthoritySignerIncorrectError) Code

func (RevokeCollectionAuthoritySignerIncorrectError) Error

type RevokeUseAuthority

type RevokeUseAuthority struct {
	// [0] = [WRITE] useAuthorityRecord `Use Authority Record PDA`
	// [1] = [WRITE, SIGNER] owner `Owner`
	// [2] = [] user `A Use Authority`
	// [3] = [WRITE] ownerTokenAccount `Owned Token Account Of Mint`
	// [4] = [] mint `Mint of Metadata`
	// [5] = [] metadata `Metadata account`
	// [6] = [] tokenProgram `Token program`
	// [7] = [] systemProgram `System program`
	// [8] = [] rent `Rent info`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

RevokeUseAuthority Instruction

func NewRevokeUseAuthorityInstruction

func NewRevokeUseAuthorityInstruction(
	useAuthorityRecord common.PublicKey,
	owner common.PublicKey,
	user common.PublicKey,
	ownerTokenAccount common.PublicKey,
	mint common.PublicKey,
	metadata common.PublicKey,
	tokenProgram common.PublicKey,
	systemProgram common.PublicKey,
	rent common.PublicKey,
) *RevokeUseAuthority

NewRevokeUseAuthorityInstruction

Parameters:

useAuthorityRecord: Use Authority Record PDA
owner: Owner
user: A Use Authority
ownerTokenAccount: Owned Token Account Of Mint
mint: Mint of Metadata
metadata: Metadata account
tokenProgram: Token program
systemProgram: System program
rent: Rent info

func NewRevokeUseAuthorityInstructionBuilder

func NewRevokeUseAuthorityInstructionBuilder() *RevokeUseAuthority

NewRevokeUseAuthorityInstructionBuilder creates a new `RevokeUseAuthority` instruction builder.

func (*RevokeUseAuthority) Build

func (obj *RevokeUseAuthority) Build() *Instruction

func (*RevokeUseAuthority) EncodeToTree

func (obj *RevokeUseAuthority) EncodeToTree(parent treeout.Branches)

func (*RevokeUseAuthority) GetMetadataAccount

func (obj *RevokeUseAuthority) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*RevokeUseAuthority) GetMintAccount

func (obj *RevokeUseAuthority) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Mint of Metadata

func (*RevokeUseAuthority) GetOwnerAccount

func (obj *RevokeUseAuthority) GetOwnerAccount() *common.AccountMeta

GetOwnerAccount gets the "owner" parameter. Owner

func (*RevokeUseAuthority) GetOwnerTokenAccountAccount

func (obj *RevokeUseAuthority) GetOwnerTokenAccountAccount() *common.AccountMeta

GetOwnerTokenAccountAccount gets the "ownerTokenAccount" parameter. Owned Token Account Of Mint

func (*RevokeUseAuthority) GetRentAccount

func (obj *RevokeUseAuthority) GetRentAccount() *common.AccountMeta

GetRentAccount gets the "rent" parameter. Rent info

func (*RevokeUseAuthority) GetSystemProgramAccount

func (obj *RevokeUseAuthority) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*RevokeUseAuthority) GetTokenProgramAccount

func (obj *RevokeUseAuthority) GetTokenProgramAccount() *common.AccountMeta

GetTokenProgramAccount gets the "tokenProgram" parameter. Token program

func (*RevokeUseAuthority) GetUseAuthorityRecordAccount

func (obj *RevokeUseAuthority) GetUseAuthorityRecordAccount() *common.AccountMeta

GetUseAuthorityRecordAccount gets the "useAuthorityRecord" parameter. Use Authority Record PDA

func (*RevokeUseAuthority) GetUserAccount

func (obj *RevokeUseAuthority) GetUserAccount() *common.AccountMeta

GetUserAccount gets the "user" parameter. A Use Authority

func (*RevokeUseAuthority) MarshalWithEncoder

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

func (*RevokeUseAuthority) SetMetadataAccount

func (obj *RevokeUseAuthority) SetMetadataAccount(metadata common.PublicKey) *RevokeUseAuthority

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*RevokeUseAuthority) SetMintAccount

func (obj *RevokeUseAuthority) SetMintAccount(mint common.PublicKey) *RevokeUseAuthority

SetMintAccount sets the "mint" parameter. Mint of Metadata

func (*RevokeUseAuthority) SetOwnerAccount

func (obj *RevokeUseAuthority) SetOwnerAccount(owner common.PublicKey) *RevokeUseAuthority

SetOwnerAccount sets the "owner" parameter. Owner

func (*RevokeUseAuthority) SetOwnerTokenAccountAccount

func (obj *RevokeUseAuthority) SetOwnerTokenAccountAccount(ownerTokenAccount common.PublicKey) *RevokeUseAuthority

SetOwnerTokenAccountAccount sets the "ownerTokenAccount" parameter. Owned Token Account Of Mint

func (*RevokeUseAuthority) SetProgramId

func (obj *RevokeUseAuthority) SetProgramId(programId *common.PublicKey) *RevokeUseAuthority

func (*RevokeUseAuthority) SetRentAccount

func (obj *RevokeUseAuthority) SetRentAccount(rent common.PublicKey, multiSigners ...common.PublicKey) *RevokeUseAuthority

SetRentAccount sets the "rent" parameter. Rent info

func (*RevokeUseAuthority) SetSystemProgramAccount

func (obj *RevokeUseAuthority) SetSystemProgramAccount(systemProgram common.PublicKey) *RevokeUseAuthority

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*RevokeUseAuthority) SetTokenProgramAccount

func (obj *RevokeUseAuthority) SetTokenProgramAccount(tokenProgram common.PublicKey) *RevokeUseAuthority

SetTokenProgramAccount sets the "tokenProgram" parameter. Token program

func (*RevokeUseAuthority) SetUseAuthorityRecordAccount

func (obj *RevokeUseAuthority) SetUseAuthorityRecordAccount(useAuthorityRecord common.PublicKey) *RevokeUseAuthority

SetUseAuthorityRecordAccount sets the "useAuthorityRecord" parameter. Use Authority Record PDA

func (*RevokeUseAuthority) SetUserAccount

func (obj *RevokeUseAuthority) SetUserAccount(user common.PublicKey) *RevokeUseAuthority

SetUserAccount sets the "user" parameter. A Use Authority

func (*RevokeUseAuthority) UnmarshalWithDecoder

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

func (*RevokeUseAuthority) Validate

func (obj *RevokeUseAuthority) Validate() error

func (*RevokeUseAuthority) ValidateAndBuild

func (obj *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 RuleSetToggle

type RuleSetToggle struct {
	None  *struct{}         `bin:"optional"`
	Clear *struct{}         `bin:"optional"`
	Set   *RuleSetToggleSet `bin:"optional"`
}

RuleSetToggle Enum

func NewRuleSetToggle_Clear

func NewRuleSetToggle_Clear() RuleSetToggle

func NewRuleSetToggle_None

func NewRuleSetToggle_None() RuleSetToggle

func NewRuleSetToggle_Set

func NewRuleSetToggle_Set(field0 common.PublicKey) RuleSetToggle

func (*RuleSetToggle) AsSet

func (obj *RuleSetToggle) AsSet() RuleSetToggleSet

func (*RuleSetToggle) IsClear

func (obj *RuleSetToggle) IsClear() bool

func (*RuleSetToggle) IsNone

func (obj *RuleSetToggle) IsNone() bool

func (*RuleSetToggle) IsSet

func (obj *RuleSetToggle) IsSet() bool

func (*RuleSetToggle) MarshalWithEncoder

func (obj *RuleSetToggle) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*RuleSetToggle) String

func (obj *RuleSetToggle) String() string

func (*RuleSetToggle) UnmarshalWithDecoder

func (obj *RuleSetToggle) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type RuleSetToggleSet

type RuleSetToggleSet struct {
	Field0 common.PublicKey
}

func (*RuleSetToggleSet) MarshalWithEncoder

func (obj *RuleSetToggleSet) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*RuleSetToggleSet) UnmarshalWithDecoder

func (obj *RuleSetToggleSet) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type SeedsVec

type SeedsVec struct {
	Seeds []byte
}

SeedsVec Struct

func (*SeedsVec) MarshalWithEncoder

func (obj *SeedsVec) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*SeedsVec) UnmarshalWithDecoder

func (obj *SeedsVec) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type SetAndVerifyCollection

type SetAndVerifyCollection struct {
	// [0] = [WRITE] metadata `Metadata account`
	// [1] = [WRITE, SIGNER] collectionAuthority `Collection Update authority`
	// [2] = [WRITE, SIGNER] payer `Payer`
	// [3] = [] updateAuthority `Update Authority of Collection NFT and NFT`
	// [4] = [] collectionMint `Mint of the Collection`
	// [5] = [] collection `Metadata Account of the Collection`
	// [6] = [] collectionMasterEditionAccount `MasterEdition2 Account of the Collection Token`
	// [7] = [] collectionAuthorityRecord `Collection Authority Record PDA`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

SetAndVerifyCollection Instruction

func NewSetAndVerifyCollectionInstruction

func NewSetAndVerifyCollectionInstruction(
	metadata common.PublicKey,
	collectionAuthority common.PublicKey,
	payer common.PublicKey,
	updateAuthority common.PublicKey,
	collectionMint common.PublicKey,
	collection common.PublicKey,
	collectionMasterEditionAccount common.PublicKey,
	collectionAuthorityRecord common.PublicKey,
) *SetAndVerifyCollection

NewSetAndVerifyCollectionInstruction

Parameters:

metadata: Metadata account
collectionAuthority: Collection Update authority
payer: Payer
updateAuthority: Update Authority of Collection NFT and NFT
collectionMint: Mint of the Collection
collection: Metadata Account of the Collection
collectionMasterEditionAccount: MasterEdition2 Account of the Collection Token
collectionAuthorityRecord: Collection Authority Record PDA

func NewSetAndVerifyCollectionInstructionBuilder

func NewSetAndVerifyCollectionInstructionBuilder() *SetAndVerifyCollection

NewSetAndVerifyCollectionInstructionBuilder creates a new `SetAndVerifyCollection` instruction builder.

func (*SetAndVerifyCollection) Build

func (obj *SetAndVerifyCollection) Build() *Instruction

func (*SetAndVerifyCollection) EncodeToTree

func (obj *SetAndVerifyCollection) EncodeToTree(parent treeout.Branches)

func (*SetAndVerifyCollection) GetCollectionAccount

func (obj *SetAndVerifyCollection) GetCollectionAccount() *common.AccountMeta

GetCollectionAccount gets the "collection" parameter. Metadata Account of the Collection

func (*SetAndVerifyCollection) GetCollectionAuthorityAccount

func (obj *SetAndVerifyCollection) GetCollectionAuthorityAccount() *common.AccountMeta

GetCollectionAuthorityAccount gets the "collectionAuthority" parameter. Collection Update authority

func (*SetAndVerifyCollection) GetCollectionAuthorityRecordAccount

func (obj *SetAndVerifyCollection) GetCollectionAuthorityRecordAccount() *common.AccountMeta

GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA

func (*SetAndVerifyCollection) GetCollectionMasterEditionAccountAccount

func (obj *SetAndVerifyCollection) GetCollectionMasterEditionAccountAccount() *common.AccountMeta

GetCollectionMasterEditionAccountAccount gets the "collectionMasterEditionAccount" parameter. MasterEdition2 Account of the Collection Token

func (*SetAndVerifyCollection) GetCollectionMintAccount

func (obj *SetAndVerifyCollection) GetCollectionMintAccount() *common.AccountMeta

GetCollectionMintAccount gets the "collectionMint" parameter. Mint of the Collection

func (*SetAndVerifyCollection) GetMetadataAccount

func (obj *SetAndVerifyCollection) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*SetAndVerifyCollection) GetPayerAccount

func (obj *SetAndVerifyCollection) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. Payer

func (*SetAndVerifyCollection) GetUpdateAuthorityAccount

func (obj *SetAndVerifyCollection) GetUpdateAuthorityAccount() *common.AccountMeta

GetUpdateAuthorityAccount gets the "updateAuthority" parameter. Update Authority of Collection NFT and NFT

func (*SetAndVerifyCollection) MarshalWithEncoder

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

func (*SetAndVerifyCollection) SetCollectionAccount

func (obj *SetAndVerifyCollection) SetCollectionAccount(collection common.PublicKey) *SetAndVerifyCollection

SetCollectionAccount sets the "collection" parameter. Metadata Account of the Collection

func (*SetAndVerifyCollection) SetCollectionAuthorityAccount

func (obj *SetAndVerifyCollection) SetCollectionAuthorityAccount(collectionAuthority common.PublicKey) *SetAndVerifyCollection

SetCollectionAuthorityAccount sets the "collectionAuthority" parameter. Collection Update authority

func (*SetAndVerifyCollection) SetCollectionAuthorityRecordAccount

func (obj *SetAndVerifyCollection) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey, multiSigners ...common.PublicKey) *SetAndVerifyCollection

SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA

func (*SetAndVerifyCollection) SetCollectionMasterEditionAccountAccount

func (obj *SetAndVerifyCollection) SetCollectionMasterEditionAccountAccount(collectionMasterEditionAccount common.PublicKey) *SetAndVerifyCollection

SetCollectionMasterEditionAccountAccount sets the "collectionMasterEditionAccount" parameter. MasterEdition2 Account of the Collection Token

func (*SetAndVerifyCollection) SetCollectionMintAccount

func (obj *SetAndVerifyCollection) SetCollectionMintAccount(collectionMint common.PublicKey) *SetAndVerifyCollection

SetCollectionMintAccount sets the "collectionMint" parameter. Mint of the Collection

func (*SetAndVerifyCollection) SetMetadataAccount

func (obj *SetAndVerifyCollection) SetMetadataAccount(metadata common.PublicKey) *SetAndVerifyCollection

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*SetAndVerifyCollection) SetPayerAccount

func (obj *SetAndVerifyCollection) SetPayerAccount(payer common.PublicKey) *SetAndVerifyCollection

SetPayerAccount sets the "payer" parameter. Payer

func (*SetAndVerifyCollection) SetProgramId

func (obj *SetAndVerifyCollection) SetProgramId(programId *common.PublicKey) *SetAndVerifyCollection

func (*SetAndVerifyCollection) SetUpdateAuthorityAccount

func (obj *SetAndVerifyCollection) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *SetAndVerifyCollection

SetUpdateAuthorityAccount sets the "updateAuthority" parameter. Update Authority of Collection NFT and NFT

func (*SetAndVerifyCollection) UnmarshalWithDecoder

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

func (*SetAndVerifyCollection) Validate

func (obj *SetAndVerifyCollection) Validate() error

func (*SetAndVerifyCollection) ValidateAndBuild

func (obj *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 SetAndVerifySizedCollectionItem

type SetAndVerifySizedCollectionItem struct {
	// [0] = [WRITE] metadata `Metadata account`
	// [1] = [SIGNER] collectionAuthority `Collection Update authority`
	// [2] = [WRITE, SIGNER] payer `payer`
	// [3] = [] updateAuthority `Update Authority of Collection NFT and NFT`
	// [4] = [] collectionMint `Mint of the Collection`
	// [5] = [WRITE] collection `Metadata Account of the Collection`
	// [6] = [] collectionMasterEditionAccount `MasterEdition2 Account of the Collection Token`
	// [7] = [] collectionAuthorityRecord `Collection Authority Record PDA`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

SetAndVerifySizedCollectionItem Instruction

func NewSetAndVerifySizedCollectionItemInstruction

func NewSetAndVerifySizedCollectionItemInstruction(
	metadata common.PublicKey,
	collectionAuthority common.PublicKey,
	payer common.PublicKey,
	updateAuthority common.PublicKey,
	collectionMint common.PublicKey,
	collection common.PublicKey,
	collectionMasterEditionAccount common.PublicKey,
	collectionAuthorityRecord common.PublicKey,
) *SetAndVerifySizedCollectionItem

NewSetAndVerifySizedCollectionItemInstruction

Parameters:

metadata: Metadata account
collectionAuthority: Collection Update authority
payer: payer
updateAuthority: Update Authority of Collection NFT and NFT
collectionMint: Mint of the Collection
collection: Metadata Account of the Collection
collectionMasterEditionAccount: MasterEdition2 Account of the Collection Token
collectionAuthorityRecord: Collection Authority Record PDA

func NewSetAndVerifySizedCollectionItemInstructionBuilder

func NewSetAndVerifySizedCollectionItemInstructionBuilder() *SetAndVerifySizedCollectionItem

NewSetAndVerifySizedCollectionItemInstructionBuilder creates a new `SetAndVerifySizedCollectionItem` instruction builder.

func (*SetAndVerifySizedCollectionItem) Build

func (*SetAndVerifySizedCollectionItem) EncodeToTree

func (obj *SetAndVerifySizedCollectionItem) EncodeToTree(parent treeout.Branches)

func (*SetAndVerifySizedCollectionItem) GetCollectionAccount

func (obj *SetAndVerifySizedCollectionItem) GetCollectionAccount() *common.AccountMeta

GetCollectionAccount gets the "collection" parameter. Metadata Account of the Collection

func (*SetAndVerifySizedCollectionItem) GetCollectionAuthorityAccount

func (obj *SetAndVerifySizedCollectionItem) GetCollectionAuthorityAccount() *common.AccountMeta

GetCollectionAuthorityAccount gets the "collectionAuthority" parameter. Collection Update authority

func (*SetAndVerifySizedCollectionItem) GetCollectionAuthorityRecordAccount

func (obj *SetAndVerifySizedCollectionItem) GetCollectionAuthorityRecordAccount() *common.AccountMeta

GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA

func (*SetAndVerifySizedCollectionItem) GetCollectionMasterEditionAccountAccount

func (obj *SetAndVerifySizedCollectionItem) GetCollectionMasterEditionAccountAccount() *common.AccountMeta

GetCollectionMasterEditionAccountAccount gets the "collectionMasterEditionAccount" parameter. MasterEdition2 Account of the Collection Token

func (*SetAndVerifySizedCollectionItem) GetCollectionMintAccount

func (obj *SetAndVerifySizedCollectionItem) GetCollectionMintAccount() *common.AccountMeta

GetCollectionMintAccount gets the "collectionMint" parameter. Mint of the Collection

func (*SetAndVerifySizedCollectionItem) GetMetadataAccount

func (obj *SetAndVerifySizedCollectionItem) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*SetAndVerifySizedCollectionItem) GetPayerAccount

func (obj *SetAndVerifySizedCollectionItem) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. payer

func (*SetAndVerifySizedCollectionItem) GetUpdateAuthorityAccount

func (obj *SetAndVerifySizedCollectionItem) GetUpdateAuthorityAccount() *common.AccountMeta

GetUpdateAuthorityAccount gets the "updateAuthority" parameter. Update Authority of Collection NFT and NFT

func (*SetAndVerifySizedCollectionItem) MarshalWithEncoder

func (obj *SetAndVerifySizedCollectionItem) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*SetAndVerifySizedCollectionItem) SetCollectionAccount

SetCollectionAccount sets the "collection" parameter. Metadata Account of the Collection

func (*SetAndVerifySizedCollectionItem) SetCollectionAuthorityAccount

func (obj *SetAndVerifySizedCollectionItem) SetCollectionAuthorityAccount(collectionAuthority common.PublicKey) *SetAndVerifySizedCollectionItem

SetCollectionAuthorityAccount sets the "collectionAuthority" parameter. Collection Update authority

func (*SetAndVerifySizedCollectionItem) SetCollectionAuthorityRecordAccount

func (obj *SetAndVerifySizedCollectionItem) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey, multiSigners ...common.PublicKey) *SetAndVerifySizedCollectionItem

SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA

func (*SetAndVerifySizedCollectionItem) SetCollectionMasterEditionAccountAccount

func (obj *SetAndVerifySizedCollectionItem) SetCollectionMasterEditionAccountAccount(collectionMasterEditionAccount common.PublicKey) *SetAndVerifySizedCollectionItem

SetCollectionMasterEditionAccountAccount sets the "collectionMasterEditionAccount" parameter. MasterEdition2 Account of the Collection Token

func (*SetAndVerifySizedCollectionItem) SetCollectionMintAccount

func (obj *SetAndVerifySizedCollectionItem) SetCollectionMintAccount(collectionMint common.PublicKey) *SetAndVerifySizedCollectionItem

SetCollectionMintAccount sets the "collectionMint" parameter. Mint of the Collection

func (*SetAndVerifySizedCollectionItem) SetMetadataAccount

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*SetAndVerifySizedCollectionItem) SetPayerAccount

SetPayerAccount sets the "payer" parameter. payer

func (*SetAndVerifySizedCollectionItem) SetProgramId

func (*SetAndVerifySizedCollectionItem) SetUpdateAuthorityAccount

func (obj *SetAndVerifySizedCollectionItem) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *SetAndVerifySizedCollectionItem

SetUpdateAuthorityAccount sets the "updateAuthority" parameter. Update Authority of Collection NFT and NFT

func (*SetAndVerifySizedCollectionItem) UnmarshalWithDecoder

func (obj *SetAndVerifySizedCollectionItem) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

func (*SetAndVerifySizedCollectionItem) Validate

func (obj *SetAndVerifySizedCollectionItem) Validate() error

func (*SetAndVerifySizedCollectionItem) ValidateAndBuild

func (obj *SetAndVerifySizedCollectionItem) 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 SetCollectionSize

type SetCollectionSize struct {
	SetCollectionSizeArgs *SetCollectionSizeArgs
	// [0] = [WRITE] collectionMetadata `Collection Metadata account`
	// [1] = [WRITE, SIGNER] collectionAuthority `Collection Update authority`
	// [2] = [] collectionMint `Mint of the Collection`
	// [3] = [] collectionAuthorityRecord `Collection Authority Record PDA`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

SetCollectionSize Instruction

func NewSetCollectionSizeInstruction

func NewSetCollectionSizeInstruction(
	setCollectionSizeArgs SetCollectionSizeArgs,
	collectionMetadata common.PublicKey,
	collectionAuthority common.PublicKey,
	collectionMint common.PublicKey,
	collectionAuthorityRecord common.PublicKey,
) *SetCollectionSize

NewSetCollectionSizeInstruction

Parameters:

setCollectionSizeArgs:
collectionMetadata: Collection Metadata account
collectionAuthority: Collection Update authority
collectionMint: Mint of the Collection
collectionAuthorityRecord: Collection Authority Record PDA

func NewSetCollectionSizeInstructionBuilder

func NewSetCollectionSizeInstructionBuilder() *SetCollectionSize

NewSetCollectionSizeInstructionBuilder creates a new `SetCollectionSize` instruction builder.

func (*SetCollectionSize) Build

func (obj *SetCollectionSize) Build() *Instruction

func (*SetCollectionSize) EncodeToTree

func (obj *SetCollectionSize) EncodeToTree(parent treeout.Branches)

func (*SetCollectionSize) GetCollectionAuthorityAccount

func (obj *SetCollectionSize) GetCollectionAuthorityAccount() *common.AccountMeta

GetCollectionAuthorityAccount gets the "collectionAuthority" parameter. Collection Update authority

func (*SetCollectionSize) GetCollectionAuthorityRecordAccount

func (obj *SetCollectionSize) GetCollectionAuthorityRecordAccount() *common.AccountMeta

GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA

func (*SetCollectionSize) GetCollectionMetadataAccount

func (obj *SetCollectionSize) GetCollectionMetadataAccount() *common.AccountMeta

GetCollectionMetadataAccount gets the "collectionMetadata" parameter. Collection Metadata account

func (*SetCollectionSize) GetCollectionMintAccount

func (obj *SetCollectionSize) GetCollectionMintAccount() *common.AccountMeta

GetCollectionMintAccount gets the "collectionMint" parameter. Mint of the Collection

func (*SetCollectionSize) MarshalWithEncoder

func (obj *SetCollectionSize) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*SetCollectionSize) SetCollectionAuthorityAccount

func (obj *SetCollectionSize) SetCollectionAuthorityAccount(collectionAuthority common.PublicKey) *SetCollectionSize

SetCollectionAuthorityAccount sets the "collectionAuthority" parameter. Collection Update authority

func (*SetCollectionSize) SetCollectionAuthorityRecordAccount

func (obj *SetCollectionSize) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey, multiSigners ...common.PublicKey) *SetCollectionSize

SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA

func (*SetCollectionSize) SetCollectionMetadataAccount

func (obj *SetCollectionSize) SetCollectionMetadataAccount(collectionMetadata common.PublicKey) *SetCollectionSize

SetCollectionMetadataAccount sets the "collectionMetadata" parameter. Collection Metadata account

func (*SetCollectionSize) SetCollectionMintAccount

func (obj *SetCollectionSize) SetCollectionMintAccount(collectionMint common.PublicKey) *SetCollectionSize

SetCollectionMintAccount sets the "collectionMint" parameter. Mint of the Collection

func (*SetCollectionSize) SetProgramId

func (obj *SetCollectionSize) SetProgramId(programId *common.PublicKey) *SetCollectionSize

func (*SetCollectionSize) SetSetCollectionSizeArgs

func (obj *SetCollectionSize) SetSetCollectionSizeArgs(setCollectionSizeArgs SetCollectionSizeArgs) *SetCollectionSize

SetSetCollectionSizeArgs sets the "setCollectionSizeArgs" parameter.

func (*SetCollectionSize) UnmarshalWithDecoder

func (obj *SetCollectionSize) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

func (*SetCollectionSize) Validate

func (obj *SetCollectionSize) Validate() error

func (*SetCollectionSize) ValidateAndBuild

func (obj *SetCollectionSize) 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 SetCollectionSizeArgs

type SetCollectionSizeArgs struct {
	Size uint64
}

SetCollectionSizeArgs Struct

func (*SetCollectionSizeArgs) MarshalWithEncoder

func (obj *SetCollectionSizeArgs) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*SetCollectionSizeArgs) UnmarshalWithDecoder

func (obj *SetCollectionSizeArgs) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type SetTokenStandard

type SetTokenStandard struct {
	// [0] = [WRITE] metadata `Metadata account`
	// [1] = [SIGNER] updateAuthority `Metadata update authority`
	// [2] = [] mint `Mint account`
	// [3] = [] edition `Edition account`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

SetTokenStandard Instruction

func NewSetTokenStandardInstruction

func NewSetTokenStandardInstruction(
	metadata common.PublicKey,
	updateAuthority common.PublicKey,
	mint common.PublicKey,
	edition common.PublicKey,
) *SetTokenStandard

NewSetTokenStandardInstruction

Parameters:

metadata: Metadata account
updateAuthority: Metadata update authority
mint: Mint account
edition: Edition account

func NewSetTokenStandardInstructionBuilder

func NewSetTokenStandardInstructionBuilder() *SetTokenStandard

NewSetTokenStandardInstructionBuilder creates a new `SetTokenStandard` instruction builder.

func (*SetTokenStandard) Build

func (obj *SetTokenStandard) Build() *Instruction

func (*SetTokenStandard) EncodeToTree

func (obj *SetTokenStandard) EncodeToTree(parent treeout.Branches)

func (*SetTokenStandard) GetEditionAccount

func (obj *SetTokenStandard) GetEditionAccount() *common.AccountMeta

GetEditionAccount gets the "edition" parameter. Edition account

func (*SetTokenStandard) GetMetadataAccount

func (obj *SetTokenStandard) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*SetTokenStandard) GetMintAccount

func (obj *SetTokenStandard) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Mint account

func (*SetTokenStandard) GetUpdateAuthorityAccount

func (obj *SetTokenStandard) GetUpdateAuthorityAccount() *common.AccountMeta

GetUpdateAuthorityAccount gets the "updateAuthority" parameter. Metadata update authority

func (*SetTokenStandard) MarshalWithEncoder

func (obj *SetTokenStandard) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*SetTokenStandard) SetEditionAccount

func (obj *SetTokenStandard) SetEditionAccount(edition common.PublicKey, multiSigners ...common.PublicKey) *SetTokenStandard

SetEditionAccount sets the "edition" parameter. Edition account

func (*SetTokenStandard) SetMetadataAccount

func (obj *SetTokenStandard) SetMetadataAccount(metadata common.PublicKey) *SetTokenStandard

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*SetTokenStandard) SetMintAccount

func (obj *SetTokenStandard) SetMintAccount(mint common.PublicKey) *SetTokenStandard

SetMintAccount sets the "mint" parameter. Mint account

func (*SetTokenStandard) SetProgramId

func (obj *SetTokenStandard) SetProgramId(programId *common.PublicKey) *SetTokenStandard

func (*SetTokenStandard) SetUpdateAuthorityAccount

func (obj *SetTokenStandard) SetUpdateAuthorityAccount(updateAuthority common.PublicKey) *SetTokenStandard

SetUpdateAuthorityAccount sets the "updateAuthority" parameter. Metadata update authority

func (*SetTokenStandard) UnmarshalWithDecoder

func (obj *SetTokenStandard) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

func (*SetTokenStandard) Validate

func (obj *SetTokenStandard) Validate() error

func (*SetTokenStandard) ValidateAndBuild

func (obj *SetTokenStandard) 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 ShareTotalMustBe100Error

type ShareTotalMustBe100Error struct{}

ShareTotalMustBe100Error Error: 45 `Share total must equal 100 for creator array`

func (ShareTotalMustBe100Error) Code

func (e ShareTotalMustBe100Error) Code() int

func (ShareTotalMustBe100Error) Error

func (e ShareTotalMustBe100Error) Error() string

type SignMetadata

type SignMetadata struct {
	// [0] = [WRITE] metadata `Metadata (pda of ['metadata', program id, mint id])`
	// [1] = [SIGNER] creator `Creator`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

SignMetadata Instruction

func NewSignMetadataInstruction

func NewSignMetadataInstruction(
	metadata common.PublicKey,
	creator common.PublicKey,
) *SignMetadata

NewSignMetadataInstruction

Parameters:

metadata: Metadata (pda of ['metadata', program id, mint id])
creator: Creator

func NewSignMetadataInstructionBuilder

func NewSignMetadataInstructionBuilder() *SignMetadata

NewSignMetadataInstructionBuilder creates a new `SignMetadata` instruction builder.

func (*SignMetadata) Build

func (obj *SignMetadata) Build() *Instruction

func (*SignMetadata) EncodeToTree

func (obj *SignMetadata) EncodeToTree(parent treeout.Branches)

func (*SignMetadata) GetCreatorAccount

func (obj *SignMetadata) GetCreatorAccount() *common.AccountMeta

GetCreatorAccount gets the "creator" parameter. Creator

func (*SignMetadata) GetMetadataAccount

func (obj *SignMetadata) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata (pda of ['metadata', program id, mint id])

func (*SignMetadata) MarshalWithEncoder

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

func (*SignMetadata) SetCreatorAccount

func (obj *SignMetadata) SetCreatorAccount(creator common.PublicKey, multiSigners ...common.PublicKey) *SignMetadata

SetCreatorAccount sets the "creator" parameter. Creator

func (*SignMetadata) SetMetadataAccount

func (obj *SignMetadata) SetMetadataAccount(metadata common.PublicKey) *SignMetadata

SetMetadataAccount sets the "metadata" parameter. Metadata (pda of ['metadata', program id, mint id])

func (*SignMetadata) SetProgramId

func (obj *SignMetadata) SetProgramId(programId *common.PublicKey) *SignMetadata

func (*SignMetadata) UnmarshalWithDecoder

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

func (*SignMetadata) Validate

func (obj *SignMetadata) Validate() error

func (*SignMetadata) ValidateAndBuild

func (obj *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 SizedCollectionError

type SizedCollectionError struct{}

SizedCollectionError Error: 102 `Can't use this function on a sized collection`

func (SizedCollectionError) Code

func (e SizedCollectionError) Code() int

func (SizedCollectionError) Error

func (e SizedCollectionError) Error() string

type SpotMismatchError

type SpotMismatchError struct{}

SpotMismatchError Error: 56 “

func (SpotMismatchError) Code

func (e SpotMismatchError) Code() int

func (SpotMismatchError) Error

func (e SpotMismatchError) Error() string

type SymbolTooLongError

type SymbolTooLongError struct{}

SymbolTooLongError Error: 12 `Symbol too long`

func (SymbolTooLongError) Code

func (e SymbolTooLongError) Code() int

func (SymbolTooLongError) Error

func (e SymbolTooLongError) Error() string

type ThawDelegatedAccount

type ThawDelegatedAccount struct {
	// [0] = [WRITE, SIGNER] delegate `Delegate`
	// [1] = [WRITE] tokenAccount `Token account to thaw`
	// [2] = [] edition `Edition`
	// [3] = [] mint `Token mint`
	// [4] = [] tokenProgram `Token Program`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

ThawDelegatedAccount Instruction

func NewThawDelegatedAccountInstruction

func NewThawDelegatedAccountInstruction(
	delegate common.PublicKey,
	tokenAccount common.PublicKey,
	edition common.PublicKey,
	mint common.PublicKey,
	tokenProgram common.PublicKey,
) *ThawDelegatedAccount

NewThawDelegatedAccountInstruction

Parameters:

delegate: Delegate
tokenAccount: Token account to thaw
edition: Edition
mint: Token mint
tokenProgram: Token Program

func NewThawDelegatedAccountInstructionBuilder

func NewThawDelegatedAccountInstructionBuilder() *ThawDelegatedAccount

NewThawDelegatedAccountInstructionBuilder creates a new `ThawDelegatedAccount` instruction builder.

func (*ThawDelegatedAccount) Build

func (obj *ThawDelegatedAccount) Build() *Instruction

func (*ThawDelegatedAccount) EncodeToTree

func (obj *ThawDelegatedAccount) EncodeToTree(parent treeout.Branches)

func (*ThawDelegatedAccount) GetDelegateAccount

func (obj *ThawDelegatedAccount) GetDelegateAccount() *common.AccountMeta

GetDelegateAccount gets the "delegate" parameter. Delegate

func (*ThawDelegatedAccount) GetEditionAccount

func (obj *ThawDelegatedAccount) GetEditionAccount() *common.AccountMeta

GetEditionAccount gets the "edition" parameter. Edition

func (*ThawDelegatedAccount) GetMintAccount

func (obj *ThawDelegatedAccount) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Token mint

func (*ThawDelegatedAccount) GetTokenAccountAccount

func (obj *ThawDelegatedAccount) GetTokenAccountAccount() *common.AccountMeta

GetTokenAccountAccount gets the "tokenAccount" parameter. Token account to thaw

func (*ThawDelegatedAccount) GetTokenProgramAccount

func (obj *ThawDelegatedAccount) GetTokenProgramAccount() *common.AccountMeta

GetTokenProgramAccount gets the "tokenProgram" parameter. Token Program

func (*ThawDelegatedAccount) MarshalWithEncoder

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

func (*ThawDelegatedAccount) SetDelegateAccount

func (obj *ThawDelegatedAccount) SetDelegateAccount(delegate common.PublicKey) *ThawDelegatedAccount

SetDelegateAccount sets the "delegate" parameter. Delegate

func (*ThawDelegatedAccount) SetEditionAccount

func (obj *ThawDelegatedAccount) SetEditionAccount(edition common.PublicKey) *ThawDelegatedAccount

SetEditionAccount sets the "edition" parameter. Edition

func (*ThawDelegatedAccount) SetMintAccount

func (obj *ThawDelegatedAccount) SetMintAccount(mint common.PublicKey) *ThawDelegatedAccount

SetMintAccount sets the "mint" parameter. Token mint

func (*ThawDelegatedAccount) SetProgramId

func (obj *ThawDelegatedAccount) SetProgramId(programId *common.PublicKey) *ThawDelegatedAccount

func (*ThawDelegatedAccount) SetTokenAccountAccount

func (obj *ThawDelegatedAccount) SetTokenAccountAccount(tokenAccount common.PublicKey) *ThawDelegatedAccount

SetTokenAccountAccount sets the "tokenAccount" parameter. Token account to thaw

func (*ThawDelegatedAccount) SetTokenProgramAccount

func (obj *ThawDelegatedAccount) SetTokenProgramAccount(tokenProgram common.PublicKey, multiSigners ...common.PublicKey) *ThawDelegatedAccount

SetTokenProgramAccount sets the "tokenProgram" parameter. Token Program

func (*ThawDelegatedAccount) UnmarshalWithDecoder

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

func (*ThawDelegatedAccount) Validate

func (obj *ThawDelegatedAccount) Validate() error

func (*ThawDelegatedAccount) ValidateAndBuild

func (obj *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 TokenAccountMintMismatchError

type TokenAccountMintMismatchError struct{}

TokenAccountMintMismatchError Error: 30 `The mint of the token account does not match the Printing mint!`

func (TokenAccountMintMismatchError) Code

func (TokenAccountMintMismatchError) Error

type TokenAccountMintMismatchV2Error

type TokenAccountMintMismatchV2Error struct{}

TokenAccountMintMismatchV2Error Error: 31 `The mint of the token account does not match the master metadata mint!`

func (TokenAccountMintMismatchV2Error) Code

func (TokenAccountMintMismatchV2Error) Error

type TokenAccountOneTimeAuthMintMismatchError

type TokenAccountOneTimeAuthMintMismatchError struct{}

TokenAccountOneTimeAuthMintMismatchError Error: 26 “

func (TokenAccountOneTimeAuthMintMismatchError) Code

func (TokenAccountOneTimeAuthMintMismatchError) Error

type TokenBurnFailedError

type TokenBurnFailedError struct{}

TokenBurnFailedError Error: 25 “

func (TokenBurnFailedError) Code

func (e TokenBurnFailedError) Code() int

func (TokenBurnFailedError) Error

func (e TokenBurnFailedError) Error() string

type TokenCloseFailedError

type TokenCloseFailedError struct{}

TokenCloseFailedError Error: 100 “

func (TokenCloseFailedError) Code

func (e TokenCloseFailedError) Code() int

func (TokenCloseFailedError) Error

func (e TokenCloseFailedError) Error() string

type TokenDelegateRole

type TokenDelegateRole binary.BorshEnum

TokenDelegateRole Enum

const (
	TokenDelegateRoleSale TokenDelegateRole = iota
	TokenDelegateRoleTransfer
	TokenDelegateRoleUtility
	TokenDelegateRoleStaking
	TokenDelegateRoleStandard
	TokenDelegateRoleLockedTransfer
	TokenDelegateRoleMigration
)

func (TokenDelegateRole) String

func (value TokenDelegateRole) String() string

type TokenMintToFailedError

type TokenMintToFailedError struct{}

TokenMintToFailedError Error: 18 “

func (TokenMintToFailedError) Code

func (e TokenMintToFailedError) Code() int

func (TokenMintToFailedError) Error

func (e TokenMintToFailedError) Error() string

type TokenOwnedEscrow

type TokenOwnedEscrow struct {
	Key       Key
	BaseToken common.PublicKey
	Authority EscrowAuthority
	Bump      uint8
}

TokenOwnedEscrow Struct

func (*TokenOwnedEscrow) MarshalWithEncoder

func (obj *TokenOwnedEscrow) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*TokenOwnedEscrow) UnmarshalWithDecoder

func (obj *TokenOwnedEscrow) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type TokenRecord

type TokenRecord struct {
	Key             Key
	Bump            uint8
	State           TokenState
	RuleSetRevision *uint64            `bin:"optional"`
	Delegate        *common.PublicKey  `bin:"optional"`
	DelegateRole    *TokenDelegateRole `bin:"optional"`
	LockedTransfer  *common.PublicKey  `bin:"optional"`
}

TokenRecord Struct

func (*TokenRecord) MarshalWithEncoder

func (obj *TokenRecord) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*TokenRecord) UnmarshalWithDecoder

func (obj *TokenRecord) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type TokenStandard

type TokenStandard binary.BorshEnum

TokenStandard Enum

const (
	TokenStandardNonFungible TokenStandard = iota
	TokenStandardFungibleAsset
	TokenStandardFungible
	TokenStandardNonFungibleEdition
	TokenStandardProgrammableNonFungible
	TokenStandardProgrammableNonFungibleEdition
)

func (TokenStandard) String

func (value TokenStandard) String() string

type TokenState

type TokenState binary.BorshEnum

TokenState Enum

const (
	TokenStateUnlocked TokenState = iota
	TokenStateLocked
	TokenStateListed
)

func (TokenState) String

func (value TokenState) String() string

type Transfer

type Transfer struct {
	TransferArgs *TransferArgs
	// [0] = [WRITE] token `Token account`
	// [1] = [] tokenOwner `Token account owner`
	// [2] = [WRITE] destination `Destination token account`
	// [3] = [] destinationOwner `Destination token account owner`
	// [4] = [] mint `Mint of token asset`
	// [5] = [WRITE] metadata `Metadata (pda of ['metadata', program id, mint id])`
	// [6] = [] edition `Edition of token asset`
	// [7] = [WRITE] ownerTokenRecord `Owner token record account`
	// [8] = [WRITE] destinationTokenRecord `Destination token record account`
	// [9] = [SIGNER] authority `Transfer authority (token owner or delegate)`
	// [10] = [WRITE, SIGNER] payer `Payer`
	// [11] = [] systemProgram `System Program`
	// [12] = [] sysvarInstructions `Instructions sysvar account`
	// [13] = [] splTokenProgram `SPL Token Program`
	// [14] = [] splAtaProgram `SPL Associated Token Account program`
	// [15] = [] authorizationRulesProgram `Token Authorization Rules Program`
	// [16] = [] authorizationRules `Token Authorization Rules account`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

Transfer Instruction

func NewTransferInstruction

func NewTransferInstruction(
	transferArgs TransferArgs,
	token common.PublicKey,
	tokenOwner common.PublicKey,
	destination common.PublicKey,
	destinationOwner common.PublicKey,
	mint common.PublicKey,
	metadata common.PublicKey,
	edition common.PublicKey,
	ownerTokenRecord common.PublicKey,
	destinationTokenRecord common.PublicKey,
	authority common.PublicKey,
	payer common.PublicKey,
	systemProgram common.PublicKey,
	sysvarInstructions common.PublicKey,
	splTokenProgram common.PublicKey,
	splAtaProgram common.PublicKey,
	authorizationRulesProgram common.PublicKey,
	authorizationRules common.PublicKey,
) *Transfer

NewTransferInstruction

Parameters:

transferArgs:
token: Token account
tokenOwner: Token account owner
destination: Destination token account
destinationOwner: Destination token account owner
mint: Mint of token asset
metadata: Metadata (pda of ['metadata', program id, mint id])
edition: Edition of token asset
ownerTokenRecord: Owner token record account
destinationTokenRecord: Destination token record account
authority: Transfer authority (token owner or delegate)
payer: Payer
systemProgram: System Program
sysvarInstructions: Instructions sysvar account
splTokenProgram: SPL Token Program
splAtaProgram: SPL Associated Token Account program
authorizationRulesProgram: Token Authorization Rules Program
authorizationRules: Token Authorization Rules account

func NewTransferInstructionBuilder

func NewTransferInstructionBuilder() *Transfer

NewTransferInstructionBuilder creates a new `Transfer` instruction builder.

func (*Transfer) Build

func (obj *Transfer) Build() *Instruction

func (*Transfer) EncodeToTree

func (obj *Transfer) EncodeToTree(parent treeout.Branches)

func (*Transfer) GetAuthorityAccount

func (obj *Transfer) GetAuthorityAccount() *common.AccountMeta

GetAuthorityAccount gets the "authority" parameter. Transfer authority (token owner or delegate)

func (*Transfer) GetAuthorizationRulesAccount

func (obj *Transfer) GetAuthorizationRulesAccount() *common.AccountMeta

GetAuthorizationRulesAccount gets the "authorizationRules" parameter. Token Authorization Rules account

func (*Transfer) GetAuthorizationRulesProgramAccount

func (obj *Transfer) GetAuthorizationRulesProgramAccount() *common.AccountMeta

GetAuthorizationRulesProgramAccount gets the "authorizationRulesProgram" parameter. Token Authorization Rules Program

func (*Transfer) GetDestinationAccount

func (obj *Transfer) GetDestinationAccount() *common.AccountMeta

GetDestinationAccount gets the "destination" parameter. Destination token account

func (*Transfer) GetDestinationOwnerAccount

func (obj *Transfer) GetDestinationOwnerAccount() *common.AccountMeta

GetDestinationOwnerAccount gets the "destinationOwner" parameter. Destination token account owner

func (*Transfer) GetDestinationTokenRecordAccount

func (obj *Transfer) GetDestinationTokenRecordAccount() *common.AccountMeta

GetDestinationTokenRecordAccount gets the "destinationTokenRecord" parameter. Destination token record account

func (*Transfer) GetEditionAccount

func (obj *Transfer) GetEditionAccount() *common.AccountMeta

GetEditionAccount gets the "edition" parameter. Edition of token asset

func (*Transfer) GetMetadataAccount

func (obj *Transfer) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata (pda of ['metadata', program id, mint id])

func (*Transfer) GetMintAccount

func (obj *Transfer) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Mint of token asset

func (*Transfer) GetOwnerTokenRecordAccount

func (obj *Transfer) GetOwnerTokenRecordAccount() *common.AccountMeta

GetOwnerTokenRecordAccount gets the "ownerTokenRecord" parameter. Owner token record account

func (*Transfer) GetPayerAccount

func (obj *Transfer) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. Payer

func (*Transfer) GetSplAtaProgramAccount

func (obj *Transfer) GetSplAtaProgramAccount() *common.AccountMeta

GetSplAtaProgramAccount gets the "splAtaProgram" parameter. SPL Associated Token Account program

func (*Transfer) GetSplTokenProgramAccount

func (obj *Transfer) GetSplTokenProgramAccount() *common.AccountMeta

GetSplTokenProgramAccount gets the "splTokenProgram" parameter. SPL Token Program

func (*Transfer) GetSystemProgramAccount

func (obj *Transfer) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System Program

func (*Transfer) GetSysvarInstructionsAccount

func (obj *Transfer) GetSysvarInstructionsAccount() *common.AccountMeta

GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account

func (*Transfer) GetTokenAccount

func (obj *Transfer) GetTokenAccount() *common.AccountMeta

GetTokenAccount gets the "token" parameter. Token account

func (*Transfer) GetTokenOwnerAccount

func (obj *Transfer) GetTokenOwnerAccount() *common.AccountMeta

GetTokenOwnerAccount gets the "tokenOwner" parameter. Token account owner

func (*Transfer) MarshalWithEncoder

func (obj *Transfer) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*Transfer) SetAuthorityAccount

func (obj *Transfer) SetAuthorityAccount(authority common.PublicKey) *Transfer

SetAuthorityAccount sets the "authority" parameter. Transfer authority (token owner or delegate)

func (*Transfer) SetAuthorizationRulesAccount

func (obj *Transfer) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Transfer

SetAuthorizationRulesAccount sets the "authorizationRules" parameter. Token Authorization Rules account

func (*Transfer) SetAuthorizationRulesProgramAccount

func (obj *Transfer) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Transfer

SetAuthorizationRulesProgramAccount sets the "authorizationRulesProgram" parameter. Token Authorization Rules Program

func (*Transfer) SetDestinationAccount

func (obj *Transfer) SetDestinationAccount(destination common.PublicKey) *Transfer

SetDestinationAccount sets the "destination" parameter. Destination token account

func (*Transfer) SetDestinationOwnerAccount

func (obj *Transfer) SetDestinationOwnerAccount(destinationOwner common.PublicKey) *Transfer

SetDestinationOwnerAccount sets the "destinationOwner" parameter. Destination token account owner

func (*Transfer) SetDestinationTokenRecordAccount

func (obj *Transfer) SetDestinationTokenRecordAccount(destinationTokenRecord common.PublicKey) *Transfer

SetDestinationTokenRecordAccount sets the "destinationTokenRecord" parameter. Destination token record account

func (*Transfer) SetEditionAccount

func (obj *Transfer) SetEditionAccount(edition common.PublicKey) *Transfer

SetEditionAccount sets the "edition" parameter. Edition of token asset

func (*Transfer) SetMetadataAccount

func (obj *Transfer) SetMetadataAccount(metadata common.PublicKey) *Transfer

SetMetadataAccount sets the "metadata" parameter. Metadata (pda of ['metadata', program id, mint id])

func (*Transfer) SetMintAccount

func (obj *Transfer) SetMintAccount(mint common.PublicKey) *Transfer

SetMintAccount sets the "mint" parameter. Mint of token asset

func (*Transfer) SetOwnerTokenRecordAccount

func (obj *Transfer) SetOwnerTokenRecordAccount(ownerTokenRecord common.PublicKey) *Transfer

SetOwnerTokenRecordAccount sets the "ownerTokenRecord" parameter. Owner token record account

func (*Transfer) SetPayerAccount

func (obj *Transfer) SetPayerAccount(payer common.PublicKey) *Transfer

SetPayerAccount sets the "payer" parameter. Payer

func (*Transfer) SetProgramId

func (obj *Transfer) SetProgramId(programId *common.PublicKey) *Transfer

func (*Transfer) SetSplAtaProgramAccount

func (obj *Transfer) SetSplAtaProgramAccount(splAtaProgram common.PublicKey) *Transfer

SetSplAtaProgramAccount sets the "splAtaProgram" parameter. SPL Associated Token Account program

func (*Transfer) SetSplTokenProgramAccount

func (obj *Transfer) SetSplTokenProgramAccount(splTokenProgram common.PublicKey) *Transfer

SetSplTokenProgramAccount sets the "splTokenProgram" parameter. SPL Token Program

func (*Transfer) SetSystemProgramAccount

func (obj *Transfer) SetSystemProgramAccount(systemProgram common.PublicKey) *Transfer

SetSystemProgramAccount sets the "systemProgram" parameter. System Program

func (*Transfer) SetSysvarInstructionsAccount

func (obj *Transfer) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *Transfer

SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account

func (*Transfer) SetTokenAccount

func (obj *Transfer) SetTokenAccount(token common.PublicKey) *Transfer

SetTokenAccount sets the "token" parameter. Token account

func (*Transfer) SetTokenOwnerAccount

func (obj *Transfer) SetTokenOwnerAccount(tokenOwner common.PublicKey) *Transfer

SetTokenOwnerAccount sets the "tokenOwner" parameter. Token account owner

func (*Transfer) SetTransferArgs

func (obj *Transfer) SetTransferArgs(transferArgs TransferArgs) *Transfer

SetTransferArgs sets the "transferArgs" parameter.

func (*Transfer) UnmarshalWithDecoder

func (obj *Transfer) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

func (*Transfer) Validate

func (obj *Transfer) Validate() error

func (*Transfer) ValidateAndBuild

func (obj *Transfer) 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 TransferArgs

type TransferArgs struct {
	V1 *TransferArgsV1 `bin:"optional"`
}

TransferArgs Enum

func NewTransferArgs_V1

func NewTransferArgs_V1(amount uint64, authorizationData *AuthorizationData) TransferArgs

func (*TransferArgs) AsV1

func (obj *TransferArgs) AsV1() TransferArgsV1

func (*TransferArgs) IsV1

func (obj *TransferArgs) IsV1() bool

func (*TransferArgs) MarshalWithEncoder

func (obj *TransferArgs) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*TransferArgs) String

func (obj *TransferArgs) String() string

func (*TransferArgs) UnmarshalWithDecoder

func (obj *TransferArgs) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type TransferArgsV1

type TransferArgsV1 struct {
	Amount            uint64
	AuthorizationData *AuthorizationData `bin:"optional"`
}

func (*TransferArgsV1) MarshalWithEncoder

func (obj *TransferArgsV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*TransferArgsV1) UnmarshalWithDecoder

func (obj *TransferArgsV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type TransferOutOfEscrow

type TransferOutOfEscrow struct {
	TransferOutOfEscrowArgs *TransferOutOfEscrowArgs
	// [0] = [] escrow `Escrow account`
	// [1] = [WRITE] metadata `Metadata account`
	// [2] = [WRITE, SIGNER] payer `Wallet paying for the transaction and new account`
	// [3] = [] attributeMint `Mint account for the new attribute`
	// [4] = [WRITE] attributeSrc `Token account source for the new attribute`
	// [5] = [WRITE] attributeDst `Token account, owned by TM, destination for the new attribute`
	// [6] = [] escrowMint `Mint account that the escrow is attached`
	// [7] = [] escrowAccount `Token account that holds the token the escrow is attached to`
	// [8] = [] systemProgram `System program`
	// [9] = [] ataProgram `Associated Token program`
	// [10] = [] tokenProgram `Token program`
	// [11] = [] sysvarInstructions `Instructions sysvar account`
	// [12] = [SIGNER] authority `Authority/creator of the escrow account`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

TransferOutOfEscrow Instruction

func NewTransferOutOfEscrowInstruction

func NewTransferOutOfEscrowInstruction(
	transferOutOfEscrowArgs TransferOutOfEscrowArgs,
	escrow common.PublicKey,
	metadata common.PublicKey,
	payer common.PublicKey,
	attributeMint common.PublicKey,
	attributeSrc common.PublicKey,
	attributeDst common.PublicKey,
	escrowMint common.PublicKey,
	escrowAccount common.PublicKey,
	systemProgram common.PublicKey,
	ataProgram common.PublicKey,
	tokenProgram common.PublicKey,
	sysvarInstructions common.PublicKey,
	authority common.PublicKey,
) *TransferOutOfEscrow

NewTransferOutOfEscrowInstruction

Parameters:

transferOutOfEscrowArgs:
escrow: Escrow account
metadata: Metadata account
payer: Wallet paying for the transaction and new account
attributeMint: Mint account for the new attribute
attributeSrc: Token account source for the new attribute
attributeDst: Token account, owned by TM, destination for the new attribute
escrowMint: Mint account that the escrow is attached
escrowAccount: Token account that holds the token the escrow is attached to
systemProgram: System program
ataProgram: Associated Token program
tokenProgram: Token program
sysvarInstructions: Instructions sysvar account
authority: Authority/creator of the escrow account

func NewTransferOutOfEscrowInstructionBuilder

func NewTransferOutOfEscrowInstructionBuilder() *TransferOutOfEscrow

NewTransferOutOfEscrowInstructionBuilder creates a new `TransferOutOfEscrow` instruction builder.

func (*TransferOutOfEscrow) Build

func (obj *TransferOutOfEscrow) Build() *Instruction

func (*TransferOutOfEscrow) EncodeToTree

func (obj *TransferOutOfEscrow) EncodeToTree(parent treeout.Branches)

func (*TransferOutOfEscrow) GetAtaProgramAccount

func (obj *TransferOutOfEscrow) GetAtaProgramAccount() *common.AccountMeta

GetAtaProgramAccount gets the "ataProgram" parameter. Associated Token program

func (*TransferOutOfEscrow) GetAttributeDstAccount

func (obj *TransferOutOfEscrow) GetAttributeDstAccount() *common.AccountMeta

GetAttributeDstAccount gets the "attributeDst" parameter. Token account, owned by TM, destination for the new attribute

func (*TransferOutOfEscrow) GetAttributeMintAccount

func (obj *TransferOutOfEscrow) GetAttributeMintAccount() *common.AccountMeta

GetAttributeMintAccount gets the "attributeMint" parameter. Mint account for the new attribute

func (*TransferOutOfEscrow) GetAttributeSrcAccount

func (obj *TransferOutOfEscrow) GetAttributeSrcAccount() *common.AccountMeta

GetAttributeSrcAccount gets the "attributeSrc" parameter. Token account source for the new attribute

func (*TransferOutOfEscrow) GetAuthorityAccount

func (obj *TransferOutOfEscrow) GetAuthorityAccount() *common.AccountMeta

GetAuthorityAccount gets the "authority" parameter. Authority/creator of the escrow account

func (*TransferOutOfEscrow) GetEscrowAccount

func (obj *TransferOutOfEscrow) GetEscrowAccount() *common.AccountMeta

GetEscrowAccount gets the "escrow" parameter. Escrow account

func (*TransferOutOfEscrow) GetEscrowAccountAccount

func (obj *TransferOutOfEscrow) GetEscrowAccountAccount() *common.AccountMeta

GetEscrowAccountAccount gets the "escrowAccount" parameter. Token account that holds the token the escrow is attached to

func (*TransferOutOfEscrow) GetEscrowMintAccount

func (obj *TransferOutOfEscrow) GetEscrowMintAccount() *common.AccountMeta

GetEscrowMintAccount gets the "escrowMint" parameter. Mint account that the escrow is attached

func (*TransferOutOfEscrow) GetMetadataAccount

func (obj *TransferOutOfEscrow) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*TransferOutOfEscrow) GetPayerAccount

func (obj *TransferOutOfEscrow) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. Wallet paying for the transaction and new account

func (*TransferOutOfEscrow) GetSystemProgramAccount

func (obj *TransferOutOfEscrow) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*TransferOutOfEscrow) GetSysvarInstructionsAccount

func (obj *TransferOutOfEscrow) GetSysvarInstructionsAccount() *common.AccountMeta

GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account

func (*TransferOutOfEscrow) GetTokenProgramAccount

func (obj *TransferOutOfEscrow) GetTokenProgramAccount() *common.AccountMeta

GetTokenProgramAccount gets the "tokenProgram" parameter. Token program

func (*TransferOutOfEscrow) MarshalWithEncoder

func (obj *TransferOutOfEscrow) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*TransferOutOfEscrow) SetAtaProgramAccount

func (obj *TransferOutOfEscrow) SetAtaProgramAccount(ataProgram common.PublicKey) *TransferOutOfEscrow

SetAtaProgramAccount sets the "ataProgram" parameter. Associated Token program

func (*TransferOutOfEscrow) SetAttributeDstAccount

func (obj *TransferOutOfEscrow) SetAttributeDstAccount(attributeDst common.PublicKey) *TransferOutOfEscrow

SetAttributeDstAccount sets the "attributeDst" parameter. Token account, owned by TM, destination for the new attribute

func (*TransferOutOfEscrow) SetAttributeMintAccount

func (obj *TransferOutOfEscrow) SetAttributeMintAccount(attributeMint common.PublicKey) *TransferOutOfEscrow

SetAttributeMintAccount sets the "attributeMint" parameter. Mint account for the new attribute

func (*TransferOutOfEscrow) SetAttributeSrcAccount

func (obj *TransferOutOfEscrow) SetAttributeSrcAccount(attributeSrc common.PublicKey) *TransferOutOfEscrow

SetAttributeSrcAccount sets the "attributeSrc" parameter. Token account source for the new attribute

func (*TransferOutOfEscrow) SetAuthorityAccount

func (obj *TransferOutOfEscrow) SetAuthorityAccount(authority common.PublicKey, multiSigners ...common.PublicKey) *TransferOutOfEscrow

SetAuthorityAccount sets the "authority" parameter. Authority/creator of the escrow account

func (*TransferOutOfEscrow) SetEscrowAccount

func (obj *TransferOutOfEscrow) SetEscrowAccount(escrow common.PublicKey) *TransferOutOfEscrow

SetEscrowAccount sets the "escrow" parameter. Escrow account

func (*TransferOutOfEscrow) SetEscrowAccountAccount

func (obj *TransferOutOfEscrow) SetEscrowAccountAccount(escrowAccount common.PublicKey) *TransferOutOfEscrow

SetEscrowAccountAccount sets the "escrowAccount" parameter. Token account that holds the token the escrow is attached to

func (*TransferOutOfEscrow) SetEscrowMintAccount

func (obj *TransferOutOfEscrow) SetEscrowMintAccount(escrowMint common.PublicKey) *TransferOutOfEscrow

SetEscrowMintAccount sets the "escrowMint" parameter. Mint account that the escrow is attached

func (*TransferOutOfEscrow) SetMetadataAccount

func (obj *TransferOutOfEscrow) SetMetadataAccount(metadata common.PublicKey) *TransferOutOfEscrow

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*TransferOutOfEscrow) SetPayerAccount

func (obj *TransferOutOfEscrow) SetPayerAccount(payer common.PublicKey) *TransferOutOfEscrow

SetPayerAccount sets the "payer" parameter. Wallet paying for the transaction and new account

func (*TransferOutOfEscrow) SetProgramId

func (obj *TransferOutOfEscrow) SetProgramId(programId *common.PublicKey) *TransferOutOfEscrow

func (*TransferOutOfEscrow) SetSystemProgramAccount

func (obj *TransferOutOfEscrow) SetSystemProgramAccount(systemProgram common.PublicKey) *TransferOutOfEscrow

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*TransferOutOfEscrow) SetSysvarInstructionsAccount

func (obj *TransferOutOfEscrow) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *TransferOutOfEscrow

SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account

func (*TransferOutOfEscrow) SetTokenProgramAccount

func (obj *TransferOutOfEscrow) SetTokenProgramAccount(tokenProgram common.PublicKey) *TransferOutOfEscrow

SetTokenProgramAccount sets the "tokenProgram" parameter. Token program

func (*TransferOutOfEscrow) SetTransferOutOfEscrowArgs

func (obj *TransferOutOfEscrow) SetTransferOutOfEscrowArgs(transferOutOfEscrowArgs TransferOutOfEscrowArgs) *TransferOutOfEscrow

SetTransferOutOfEscrowArgs sets the "transferOutOfEscrowArgs" parameter.

func (*TransferOutOfEscrow) UnmarshalWithDecoder

func (obj *TransferOutOfEscrow) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

func (*TransferOutOfEscrow) Validate

func (obj *TransferOutOfEscrow) Validate() error

func (*TransferOutOfEscrow) ValidateAndBuild

func (obj *TransferOutOfEscrow) 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 TransferOutOfEscrowArgs

type TransferOutOfEscrowArgs struct {
	Amount uint64
}

TransferOutOfEscrowArgs Struct

func (*TransferOutOfEscrowArgs) MarshalWithEncoder

func (obj *TransferOutOfEscrowArgs) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*TransferOutOfEscrowArgs) UnmarshalWithDecoder

func (obj *TransferOutOfEscrowArgs) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type TriedToReplaceAnExistingReservationError

type TriedToReplaceAnExistingReservationError struct{}

TriedToReplaceAnExistingReservationError Error: 66 “

func (TriedToReplaceAnExistingReservationError) Code

func (TriedToReplaceAnExistingReservationError) Error

type UninitializedError

type UninitializedError struct{}

UninitializedError Error: 4 `Uninitialized`

func (UninitializedError) Code

func (e UninitializedError) Code() int

func (UninitializedError) Error

func (e UninitializedError) Error() string

type Unlock

type Unlock struct {
	UnlockArgs *UnlockArgs
	// [0] = [SIGNER] authority `Delegate or freeze authority`
	// [1] = [] tokenOwner `Token owner account`
	// [2] = [WRITE] token `Token account`
	// [3] = [] mint `Mint account`
	// [4] = [WRITE] metadata `Metadata account`
	// [5] = [] edition `Edition account`
	// [6] = [WRITE] tokenRecord `Token record account`
	// [7] = [WRITE, SIGNER] payer `Payer`
	// [8] = [] systemProgram `System program`
	// [9] = [] sysvarInstructions `System program`
	// [10] = [] splTokenProgram `SPL Token Program`
	// [11] = [] authorizationRulesProgram `Token Authorization Rules Program`
	// [12] = [] authorizationRules `Token Authorization Rules account`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

Unlock Instruction

func NewUnlockInstruction

func NewUnlockInstruction(
	unlockArgs UnlockArgs,
	authority common.PublicKey,
	tokenOwner common.PublicKey,
	token common.PublicKey,
	mint common.PublicKey,
	metadata common.PublicKey,
	edition common.PublicKey,
	tokenRecord common.PublicKey,
	payer common.PublicKey,
	systemProgram common.PublicKey,
	sysvarInstructions common.PublicKey,
	splTokenProgram common.PublicKey,
	authorizationRulesProgram common.PublicKey,
	authorizationRules common.PublicKey,
) *Unlock

NewUnlockInstruction

Parameters:

unlockArgs:
authority: Delegate or freeze authority
tokenOwner: Token owner account
token: Token account
mint: Mint account
metadata: Metadata account
edition: Edition account
tokenRecord: Token record account
payer: Payer
systemProgram: System program
sysvarInstructions: System program
splTokenProgram: SPL Token Program
authorizationRulesProgram: Token Authorization Rules Program
authorizationRules: Token Authorization Rules account

func NewUnlockInstructionBuilder

func NewUnlockInstructionBuilder() *Unlock

NewUnlockInstructionBuilder creates a new `Unlock` instruction builder.

func (*Unlock) Build

func (obj *Unlock) Build() *Instruction

func (*Unlock) EncodeToTree

func (obj *Unlock) EncodeToTree(parent treeout.Branches)

func (*Unlock) GetAuthorityAccount

func (obj *Unlock) GetAuthorityAccount() *common.AccountMeta

GetAuthorityAccount gets the "authority" parameter. Delegate or freeze authority

func (*Unlock) GetAuthorizationRulesAccount

func (obj *Unlock) GetAuthorizationRulesAccount() *common.AccountMeta

GetAuthorizationRulesAccount gets the "authorizationRules" parameter. Token Authorization Rules account

func (*Unlock) GetAuthorizationRulesProgramAccount

func (obj *Unlock) GetAuthorizationRulesProgramAccount() *common.AccountMeta

GetAuthorizationRulesProgramAccount gets the "authorizationRulesProgram" parameter. Token Authorization Rules Program

func (*Unlock) GetEditionAccount

func (obj *Unlock) GetEditionAccount() *common.AccountMeta

GetEditionAccount gets the "edition" parameter. Edition account

func (*Unlock) GetMetadataAccount

func (obj *Unlock) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*Unlock) GetMintAccount

func (obj *Unlock) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Mint account

func (*Unlock) GetPayerAccount

func (obj *Unlock) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. Payer

func (*Unlock) GetSplTokenProgramAccount

func (obj *Unlock) GetSplTokenProgramAccount() *common.AccountMeta

GetSplTokenProgramAccount gets the "splTokenProgram" parameter. SPL Token Program

func (*Unlock) GetSystemProgramAccount

func (obj *Unlock) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*Unlock) GetSysvarInstructionsAccount

func (obj *Unlock) GetSysvarInstructionsAccount() *common.AccountMeta

GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. System program

func (*Unlock) GetTokenAccount

func (obj *Unlock) GetTokenAccount() *common.AccountMeta

GetTokenAccount gets the "token" parameter. Token account

func (*Unlock) GetTokenOwnerAccount

func (obj *Unlock) GetTokenOwnerAccount() *common.AccountMeta

GetTokenOwnerAccount gets the "tokenOwner" parameter. Token owner account

func (*Unlock) GetTokenRecordAccount

func (obj *Unlock) GetTokenRecordAccount() *common.AccountMeta

GetTokenRecordAccount gets the "tokenRecord" parameter. Token record account

func (*Unlock) MarshalWithEncoder

func (obj *Unlock) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*Unlock) SetAuthorityAccount

func (obj *Unlock) SetAuthorityAccount(authority common.PublicKey) *Unlock

SetAuthorityAccount sets the "authority" parameter. Delegate or freeze authority

func (*Unlock) SetAuthorizationRulesAccount

func (obj *Unlock) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Unlock

SetAuthorizationRulesAccount sets the "authorizationRules" parameter. Token Authorization Rules account

func (*Unlock) SetAuthorizationRulesProgramAccount

func (obj *Unlock) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Unlock

SetAuthorizationRulesProgramAccount sets the "authorizationRulesProgram" parameter. Token Authorization Rules Program

func (*Unlock) SetEditionAccount

func (obj *Unlock) SetEditionAccount(edition common.PublicKey) *Unlock

SetEditionAccount sets the "edition" parameter. Edition account

func (*Unlock) SetMetadataAccount

func (obj *Unlock) SetMetadataAccount(metadata common.PublicKey) *Unlock

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*Unlock) SetMintAccount

func (obj *Unlock) SetMintAccount(mint common.PublicKey) *Unlock

SetMintAccount sets the "mint" parameter. Mint account

func (*Unlock) SetPayerAccount

func (obj *Unlock) SetPayerAccount(payer common.PublicKey) *Unlock

SetPayerAccount sets the "payer" parameter. Payer

func (*Unlock) SetProgramId

func (obj *Unlock) SetProgramId(programId *common.PublicKey) *Unlock

func (*Unlock) SetSplTokenProgramAccount

func (obj *Unlock) SetSplTokenProgramAccount(splTokenProgram common.PublicKey) *Unlock

SetSplTokenProgramAccount sets the "splTokenProgram" parameter. SPL Token Program

func (*Unlock) SetSystemProgramAccount

func (obj *Unlock) SetSystemProgramAccount(systemProgram common.PublicKey) *Unlock

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*Unlock) SetSysvarInstructionsAccount

func (obj *Unlock) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *Unlock

SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. System program

func (*Unlock) SetTokenAccount

func (obj *Unlock) SetTokenAccount(token common.PublicKey) *Unlock

SetTokenAccount sets the "token" parameter. Token account

func (*Unlock) SetTokenOwnerAccount

func (obj *Unlock) SetTokenOwnerAccount(tokenOwner common.PublicKey) *Unlock

SetTokenOwnerAccount sets the "tokenOwner" parameter. Token owner account

func (*Unlock) SetTokenRecordAccount

func (obj *Unlock) SetTokenRecordAccount(tokenRecord common.PublicKey) *Unlock

SetTokenRecordAccount sets the "tokenRecord" parameter. Token record account

func (*Unlock) SetUnlockArgs

func (obj *Unlock) SetUnlockArgs(unlockArgs UnlockArgs) *Unlock

SetUnlockArgs sets the "unlockArgs" parameter.

func (*Unlock) UnmarshalWithDecoder

func (obj *Unlock) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

func (*Unlock) Validate

func (obj *Unlock) Validate() error

func (*Unlock) ValidateAndBuild

func (obj *Unlock) 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 UnlockArgs

type UnlockArgs struct {
	V1 *UnlockArgsV1 `bin:"optional"`
}

UnlockArgs Enum

func NewUnlockArgs_V1

func NewUnlockArgs_V1(authorizationData *AuthorizationData) UnlockArgs

func (*UnlockArgs) AsV1

func (obj *UnlockArgs) AsV1() UnlockArgsV1

func (*UnlockArgs) IsV1

func (obj *UnlockArgs) IsV1() bool

func (*UnlockArgs) MarshalWithEncoder

func (obj *UnlockArgs) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*UnlockArgs) String

func (obj *UnlockArgs) String() string

func (*UnlockArgs) UnmarshalWithDecoder

func (obj *UnlockArgs) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type UnlockArgsV1

type UnlockArgsV1 struct {
	AuthorizationData *AuthorizationData `bin:"optional"`
}

func (*UnlockArgsV1) MarshalWithEncoder

func (obj *UnlockArgsV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*UnlockArgsV1) UnmarshalWithDecoder

func (obj *UnlockArgsV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type UnlockedTokenError

type UnlockedTokenError struct{}

UnlockedTokenError Error: 156 `Token is unlocked`

func (UnlockedTokenError) Code

func (e UnlockedTokenError) Code() int

func (UnlockedTokenError) Error

func (e UnlockedTokenError) Error() string

type UnsizedCollectionError

type UnsizedCollectionError struct{}

UnsizedCollectionError Error: 101 `Can't use this function on unsized collection`

func (UnsizedCollectionError) Code

func (e UnsizedCollectionError) Code() int

func (UnsizedCollectionError) Error

func (e UnsizedCollectionError) Error() string

type UnusableError

type UnusableError struct{}

UnusableError Error: 85 `This token has no uses`

func (UnusableError) Code

func (e UnusableError) Code() int

func (UnusableError) Error

func (e UnusableError) Error() string

type Unverify

type Unverify struct {
	VerificationArgs *VerificationArgs
	// [0] = [SIGNER] authority `Creator to verify, collection (or metadata if parent burned) update authority or delegate`
	// [1] = [] delegateRecord `Delegate record PDA`
	// [2] = [WRITE] metadata `Metadata account`
	// [3] = [] collectionMint `Mint of the Collection`
	// [4] = [WRITE] collectionMetadata `Metadata Account of the Collection`
	// [5] = [] systemProgram `System program`
	// [6] = [] sysvarInstructions `Instructions sysvar account`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

Unverify Instruction

func NewUnverifyInstruction

func NewUnverifyInstruction(
	verificationArgs VerificationArgs,
	authority common.PublicKey,
	delegateRecord common.PublicKey,
	metadata common.PublicKey,
	collectionMint common.PublicKey,
	collectionMetadata common.PublicKey,
	systemProgram common.PublicKey,
	sysvarInstructions common.PublicKey,
) *Unverify

NewUnverifyInstruction

Parameters:

verificationArgs:
authority: Creator to verify, collection (or metadata if parent burned) update authority or delegate
delegateRecord: Delegate record PDA
metadata: Metadata account
collectionMint: Mint of the Collection
collectionMetadata: Metadata Account of the Collection
systemProgram: System program
sysvarInstructions: Instructions sysvar account

func NewUnverifyInstructionBuilder

func NewUnverifyInstructionBuilder() *Unverify

NewUnverifyInstructionBuilder creates a new `Unverify` instruction builder.

func (*Unverify) Build

func (obj *Unverify) Build() *Instruction

func (*Unverify) EncodeToTree

func (obj *Unverify) EncodeToTree(parent treeout.Branches)

func (*Unverify) GetAuthorityAccount

func (obj *Unverify) GetAuthorityAccount() *common.AccountMeta

GetAuthorityAccount gets the "authority" parameter. Creator to verify, collection (or metadata if parent burned) update authority or delegate

func (*Unverify) GetCollectionMetadataAccount

func (obj *Unverify) GetCollectionMetadataAccount() *common.AccountMeta

GetCollectionMetadataAccount gets the "collectionMetadata" parameter. Metadata Account of the Collection

func (*Unverify) GetCollectionMintAccount

func (obj *Unverify) GetCollectionMintAccount() *common.AccountMeta

GetCollectionMintAccount gets the "collectionMint" parameter. Mint of the Collection

func (*Unverify) GetDelegateRecordAccount

func (obj *Unverify) GetDelegateRecordAccount() *common.AccountMeta

GetDelegateRecordAccount gets the "delegateRecord" parameter. Delegate record PDA

func (*Unverify) GetMetadataAccount

func (obj *Unverify) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*Unverify) GetSystemProgramAccount

func (obj *Unverify) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*Unverify) GetSysvarInstructionsAccount

func (obj *Unverify) GetSysvarInstructionsAccount() *common.AccountMeta

GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account

func (*Unverify) MarshalWithEncoder

func (obj *Unverify) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*Unverify) SetAuthorityAccount

func (obj *Unverify) SetAuthorityAccount(authority common.PublicKey) *Unverify

SetAuthorityAccount sets the "authority" parameter. Creator to verify, collection (or metadata if parent burned) update authority or delegate

func (*Unverify) SetCollectionMetadataAccount

func (obj *Unverify) SetCollectionMetadataAccount(collectionMetadata common.PublicKey) *Unverify

SetCollectionMetadataAccount sets the "collectionMetadata" parameter. Metadata Account of the Collection

func (*Unverify) SetCollectionMintAccount

func (obj *Unverify) SetCollectionMintAccount(collectionMint common.PublicKey) *Unverify

SetCollectionMintAccount sets the "collectionMint" parameter. Mint of the Collection

func (*Unverify) SetDelegateRecordAccount

func (obj *Unverify) SetDelegateRecordAccount(delegateRecord common.PublicKey) *Unverify

SetDelegateRecordAccount sets the "delegateRecord" parameter. Delegate record PDA

func (*Unverify) SetMetadataAccount

func (obj *Unverify) SetMetadataAccount(metadata common.PublicKey) *Unverify

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*Unverify) SetProgramId

func (obj *Unverify) SetProgramId(programId *common.PublicKey) *Unverify

func (*Unverify) SetSystemProgramAccount

func (obj *Unverify) SetSystemProgramAccount(systemProgram common.PublicKey) *Unverify

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*Unverify) SetSysvarInstructionsAccount

func (obj *Unverify) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey, multiSigners ...common.PublicKey) *Unverify

SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account

func (*Unverify) SetVerificationArgs

func (obj *Unverify) SetVerificationArgs(verificationArgs VerificationArgs) *Unverify

SetVerificationArgs sets the "verificationArgs" parameter.

func (*Unverify) UnmarshalWithDecoder

func (obj *Unverify) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

func (*Unverify) Validate

func (obj *Unverify) Validate() error

func (*Unverify) ValidateAndBuild

func (obj *Unverify) 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 UnverifyCollection

type UnverifyCollection struct {
	// [0] = [WRITE] metadata `Metadata account`
	// [1] = [WRITE, SIGNER] collectionAuthority `Collection Authority`
	// [2] = [] collectionMint `Mint of the Collection`
	// [3] = [] collection `Metadata Account of the Collection`
	// [4] = [] collectionMasterEditionAccount `MasterEdition2 Account of the Collection Token`
	// [5] = [] collectionAuthorityRecord `Collection Authority Record PDA`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

UnverifyCollection Instruction

func NewUnverifyCollectionInstruction

func NewUnverifyCollectionInstruction(
	metadata common.PublicKey,
	collectionAuthority common.PublicKey,
	collectionMint common.PublicKey,
	collection common.PublicKey,
	collectionMasterEditionAccount common.PublicKey,
	collectionAuthorityRecord common.PublicKey,
) *UnverifyCollection

NewUnverifyCollectionInstruction

Parameters:

metadata: Metadata account
collectionAuthority: Collection Authority
collectionMint: Mint of the Collection
collection: Metadata Account of the Collection
collectionMasterEditionAccount: MasterEdition2 Account of the Collection Token
collectionAuthorityRecord: Collection Authority Record PDA

func NewUnverifyCollectionInstructionBuilder

func NewUnverifyCollectionInstructionBuilder() *UnverifyCollection

NewUnverifyCollectionInstructionBuilder creates a new `UnverifyCollection` instruction builder.

func (*UnverifyCollection) Build

func (obj *UnverifyCollection) Build() *Instruction

func (*UnverifyCollection) EncodeToTree

func (obj *UnverifyCollection) EncodeToTree(parent treeout.Branches)

func (*UnverifyCollection) GetCollectionAccount

func (obj *UnverifyCollection) GetCollectionAccount() *common.AccountMeta

GetCollectionAccount gets the "collection" parameter. Metadata Account of the Collection

func (*UnverifyCollection) GetCollectionAuthorityAccount

func (obj *UnverifyCollection) GetCollectionAuthorityAccount() *common.AccountMeta

GetCollectionAuthorityAccount gets the "collectionAuthority" parameter. Collection Authority

func (*UnverifyCollection) GetCollectionAuthorityRecordAccount

func (obj *UnverifyCollection) GetCollectionAuthorityRecordAccount() *common.AccountMeta

GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA

func (*UnverifyCollection) GetCollectionMasterEditionAccountAccount

func (obj *UnverifyCollection) GetCollectionMasterEditionAccountAccount() *common.AccountMeta

GetCollectionMasterEditionAccountAccount gets the "collectionMasterEditionAccount" parameter. MasterEdition2 Account of the Collection Token

func (*UnverifyCollection) GetCollectionMintAccount

func (obj *UnverifyCollection) GetCollectionMintAccount() *common.AccountMeta

GetCollectionMintAccount gets the "collectionMint" parameter. Mint of the Collection

func (*UnverifyCollection) GetMetadataAccount

func (obj *UnverifyCollection) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*UnverifyCollection) MarshalWithEncoder

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

func (*UnverifyCollection) SetCollectionAccount

func (obj *UnverifyCollection) SetCollectionAccount(collection common.PublicKey) *UnverifyCollection

SetCollectionAccount sets the "collection" parameter. Metadata Account of the Collection

func (*UnverifyCollection) SetCollectionAuthorityAccount

func (obj *UnverifyCollection) SetCollectionAuthorityAccount(collectionAuthority common.PublicKey) *UnverifyCollection

SetCollectionAuthorityAccount sets the "collectionAuthority" parameter. Collection Authority

func (*UnverifyCollection) SetCollectionAuthorityRecordAccount

func (obj *UnverifyCollection) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey, multiSigners ...common.PublicKey) *UnverifyCollection

SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA

func (*UnverifyCollection) SetCollectionMasterEditionAccountAccount

func (obj *UnverifyCollection) SetCollectionMasterEditionAccountAccount(collectionMasterEditionAccount common.PublicKey) *UnverifyCollection

SetCollectionMasterEditionAccountAccount sets the "collectionMasterEditionAccount" parameter. MasterEdition2 Account of the Collection Token

func (*UnverifyCollection) SetCollectionMintAccount

func (obj *UnverifyCollection) SetCollectionMintAccount(collectionMint common.PublicKey) *UnverifyCollection

SetCollectionMintAccount sets the "collectionMint" parameter. Mint of the Collection

func (*UnverifyCollection) SetMetadataAccount

func (obj *UnverifyCollection) SetMetadataAccount(metadata common.PublicKey) *UnverifyCollection

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*UnverifyCollection) SetProgramId

func (obj *UnverifyCollection) SetProgramId(programId *common.PublicKey) *UnverifyCollection

func (*UnverifyCollection) UnmarshalWithDecoder

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

func (*UnverifyCollection) Validate

func (obj *UnverifyCollection) Validate() error

func (*UnverifyCollection) ValidateAndBuild

func (obj *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 UnverifySizedCollectionItem

type UnverifySizedCollectionItem struct {
	// [0] = [WRITE] metadata `Metadata account`
	// [1] = [SIGNER] collectionAuthority `Collection Authority`
	// [2] = [WRITE, SIGNER] payer `payer`
	// [3] = [] collectionMint `Mint of the Collection`
	// [4] = [WRITE] collection `Metadata Account of the Collection`
	// [5] = [] collectionMasterEditionAccount `MasterEdition2 Account of the Collection Token`
	// [6] = [] collectionAuthorityRecord `Collection Authority Record PDA`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

UnverifySizedCollectionItem Instruction

func NewUnverifySizedCollectionItemInstruction

func NewUnverifySizedCollectionItemInstruction(
	metadata common.PublicKey,
	collectionAuthority common.PublicKey,
	payer common.PublicKey,
	collectionMint common.PublicKey,
	collection common.PublicKey,
	collectionMasterEditionAccount common.PublicKey,
	collectionAuthorityRecord common.PublicKey,
) *UnverifySizedCollectionItem

NewUnverifySizedCollectionItemInstruction

Parameters:

metadata: Metadata account
collectionAuthority: Collection Authority
payer: payer
collectionMint: Mint of the Collection
collection: Metadata Account of the Collection
collectionMasterEditionAccount: MasterEdition2 Account of the Collection Token
collectionAuthorityRecord: Collection Authority Record PDA

func NewUnverifySizedCollectionItemInstructionBuilder

func NewUnverifySizedCollectionItemInstructionBuilder() *UnverifySizedCollectionItem

NewUnverifySizedCollectionItemInstructionBuilder creates a new `UnverifySizedCollectionItem` instruction builder.

func (*UnverifySizedCollectionItem) Build

func (*UnverifySizedCollectionItem) EncodeToTree

func (obj *UnverifySizedCollectionItem) EncodeToTree(parent treeout.Branches)

func (*UnverifySizedCollectionItem) GetCollectionAccount

func (obj *UnverifySizedCollectionItem) GetCollectionAccount() *common.AccountMeta

GetCollectionAccount gets the "collection" parameter. Metadata Account of the Collection

func (*UnverifySizedCollectionItem) GetCollectionAuthorityAccount

func (obj *UnverifySizedCollectionItem) GetCollectionAuthorityAccount() *common.AccountMeta

GetCollectionAuthorityAccount gets the "collectionAuthority" parameter. Collection Authority

func (*UnverifySizedCollectionItem) GetCollectionAuthorityRecordAccount

func (obj *UnverifySizedCollectionItem) GetCollectionAuthorityRecordAccount() *common.AccountMeta

GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA

func (*UnverifySizedCollectionItem) GetCollectionMasterEditionAccountAccount

func (obj *UnverifySizedCollectionItem) GetCollectionMasterEditionAccountAccount() *common.AccountMeta

GetCollectionMasterEditionAccountAccount gets the "collectionMasterEditionAccount" parameter. MasterEdition2 Account of the Collection Token

func (*UnverifySizedCollectionItem) GetCollectionMintAccount

func (obj *UnverifySizedCollectionItem) GetCollectionMintAccount() *common.AccountMeta

GetCollectionMintAccount gets the "collectionMint" parameter. Mint of the Collection

func (*UnverifySizedCollectionItem) GetMetadataAccount

func (obj *UnverifySizedCollectionItem) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*UnverifySizedCollectionItem) GetPayerAccount

func (obj *UnverifySizedCollectionItem) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. payer

func (*UnverifySizedCollectionItem) MarshalWithEncoder

func (obj *UnverifySizedCollectionItem) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*UnverifySizedCollectionItem) SetCollectionAccount

func (obj *UnverifySizedCollectionItem) SetCollectionAccount(collection common.PublicKey) *UnverifySizedCollectionItem

SetCollectionAccount sets the "collection" parameter. Metadata Account of the Collection

func (*UnverifySizedCollectionItem) SetCollectionAuthorityAccount

func (obj *UnverifySizedCollectionItem) SetCollectionAuthorityAccount(collectionAuthority common.PublicKey) *UnverifySizedCollectionItem

SetCollectionAuthorityAccount sets the "collectionAuthority" parameter. Collection Authority

func (*UnverifySizedCollectionItem) SetCollectionAuthorityRecordAccount

func (obj *UnverifySizedCollectionItem) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey, multiSigners ...common.PublicKey) *UnverifySizedCollectionItem

SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA

func (*UnverifySizedCollectionItem) SetCollectionMasterEditionAccountAccount

func (obj *UnverifySizedCollectionItem) SetCollectionMasterEditionAccountAccount(collectionMasterEditionAccount common.PublicKey) *UnverifySizedCollectionItem

SetCollectionMasterEditionAccountAccount sets the "collectionMasterEditionAccount" parameter. MasterEdition2 Account of the Collection Token

func (*UnverifySizedCollectionItem) SetCollectionMintAccount

func (obj *UnverifySizedCollectionItem) SetCollectionMintAccount(collectionMint common.PublicKey) *UnverifySizedCollectionItem

SetCollectionMintAccount sets the "collectionMint" parameter. Mint of the Collection

func (*UnverifySizedCollectionItem) SetMetadataAccount

func (obj *UnverifySizedCollectionItem) SetMetadataAccount(metadata common.PublicKey) *UnverifySizedCollectionItem

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*UnverifySizedCollectionItem) SetPayerAccount

SetPayerAccount sets the "payer" parameter. payer

func (*UnverifySizedCollectionItem) SetProgramId

func (*UnverifySizedCollectionItem) UnmarshalWithDecoder

func (obj *UnverifySizedCollectionItem) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

func (*UnverifySizedCollectionItem) Validate

func (obj *UnverifySizedCollectionItem) Validate() error

func (*UnverifySizedCollectionItem) ValidateAndBuild

func (obj *UnverifySizedCollectionItem) ValidateAndBuild() (*Instruction, error)

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

type Update

type Update struct {
	UpdateArgs *UpdateArgs
	// [0] = [SIGNER] authority `Update authority or delegate`
	// [1] = [] delegateRecord `Delegate record PDA`
	// [2] = [] token `Token account`
	// [3] = [] mint `Mint account`
	// [4] = [WRITE] metadata `Metadata account`
	// [5] = [] edition `Edition account`
	// [6] = [WRITE, SIGNER] payer `Payer`
	// [7] = [] systemProgram `System program`
	// [8] = [] sysvarInstructions `Instructions sysvar account`
	// [9] = [] authorizationRulesProgram `Token Authorization Rules Program`
	// [10] = [] authorizationRules `Token Authorization Rules account`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

Update Instruction

func NewUpdateInstruction

func NewUpdateInstruction(
	updateArgs UpdateArgs,
	authority common.PublicKey,
	delegateRecord common.PublicKey,
	token common.PublicKey,
	mint common.PublicKey,
	metadata common.PublicKey,
	edition common.PublicKey,
	payer common.PublicKey,
	systemProgram common.PublicKey,
	sysvarInstructions common.PublicKey,
	authorizationRulesProgram common.PublicKey,
	authorizationRules common.PublicKey,
) *Update

NewUpdateInstruction

Parameters:

updateArgs:
authority: Update authority or delegate
delegateRecord: Delegate record PDA
token: Token account
mint: Mint account
metadata: Metadata account
edition: Edition account
payer: Payer
systemProgram: System program
sysvarInstructions: Instructions sysvar account
authorizationRulesProgram: Token Authorization Rules Program
authorizationRules: Token Authorization Rules account

func NewUpdateInstructionBuilder

func NewUpdateInstructionBuilder() *Update

NewUpdateInstructionBuilder creates a new `Update` instruction builder.

func (*Update) Build

func (obj *Update) Build() *Instruction

func (*Update) EncodeToTree

func (obj *Update) EncodeToTree(parent treeout.Branches)

func (*Update) GetAuthorityAccount

func (obj *Update) GetAuthorityAccount() *common.AccountMeta

GetAuthorityAccount gets the "authority" parameter. Update authority or delegate

func (*Update) GetAuthorizationRulesAccount

func (obj *Update) GetAuthorizationRulesAccount() *common.AccountMeta

GetAuthorizationRulesAccount gets the "authorizationRules" parameter. Token Authorization Rules account

func (*Update) GetAuthorizationRulesProgramAccount

func (obj *Update) GetAuthorizationRulesProgramAccount() *common.AccountMeta

GetAuthorizationRulesProgramAccount gets the "authorizationRulesProgram" parameter. Token Authorization Rules Program

func (*Update) GetDelegateRecordAccount

func (obj *Update) GetDelegateRecordAccount() *common.AccountMeta

GetDelegateRecordAccount gets the "delegateRecord" parameter. Delegate record PDA

func (*Update) GetEditionAccount

func (obj *Update) GetEditionAccount() *common.AccountMeta

GetEditionAccount gets the "edition" parameter. Edition account

func (*Update) GetMetadataAccount

func (obj *Update) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*Update) GetMintAccount

func (obj *Update) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Mint account

func (*Update) GetPayerAccount

func (obj *Update) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. Payer

func (*Update) GetSystemProgramAccount

func (obj *Update) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*Update) GetSysvarInstructionsAccount

func (obj *Update) GetSysvarInstructionsAccount() *common.AccountMeta

GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account

func (*Update) GetTokenAccount

func (obj *Update) GetTokenAccount() *common.AccountMeta

GetTokenAccount gets the "token" parameter. Token account

func (*Update) MarshalWithEncoder

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

func (*Update) SetAuthorityAccount

func (obj *Update) SetAuthorityAccount(authority common.PublicKey) *Update

SetAuthorityAccount sets the "authority" parameter. Update authority or delegate

func (*Update) SetAuthorizationRulesAccount

func (obj *Update) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Update

SetAuthorizationRulesAccount sets the "authorizationRules" parameter. Token Authorization Rules account

func (*Update) SetAuthorizationRulesProgramAccount

func (obj *Update) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Update

SetAuthorizationRulesProgramAccount sets the "authorizationRulesProgram" parameter. Token Authorization Rules Program

func (*Update) SetDelegateRecordAccount

func (obj *Update) SetDelegateRecordAccount(delegateRecord common.PublicKey) *Update

SetDelegateRecordAccount sets the "delegateRecord" parameter. Delegate record PDA

func (*Update) SetEditionAccount

func (obj *Update) SetEditionAccount(edition common.PublicKey) *Update

SetEditionAccount sets the "edition" parameter. Edition account

func (*Update) SetMetadataAccount

func (obj *Update) SetMetadataAccount(metadata common.PublicKey) *Update

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*Update) SetMintAccount

func (obj *Update) SetMintAccount(mint common.PublicKey) *Update

SetMintAccount sets the "mint" parameter. Mint account

func (*Update) SetPayerAccount

func (obj *Update) SetPayerAccount(payer common.PublicKey) *Update

SetPayerAccount sets the "payer" parameter. Payer

func (*Update) SetProgramId

func (obj *Update) SetProgramId(programId *common.PublicKey) *Update

func (*Update) SetSystemProgramAccount

func (obj *Update) SetSystemProgramAccount(systemProgram common.PublicKey) *Update

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*Update) SetSysvarInstructionsAccount

func (obj *Update) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *Update

SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account

func (*Update) SetTokenAccount

func (obj *Update) SetTokenAccount(token common.PublicKey) *Update

SetTokenAccount sets the "token" parameter. Token account

func (*Update) SetUpdateArgs

func (obj *Update) SetUpdateArgs(updateArgs UpdateArgs) *Update

SetUpdateArgs sets the "updateArgs" parameter.

func (*Update) UnmarshalWithDecoder

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

func (*Update) Validate

func (obj *Update) Validate() error

func (*Update) ValidateAndBuild

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

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

type UpdateArgs

type UpdateArgs struct {
	V1                                 *UpdateArgsV1                                 `bin:"optional"`
	AsUpdateAuthorityV2                *UpdateArgsAsUpdateAuthorityV2                `bin:"optional"`
	AsAuthorityItemDelegateV2          *UpdateArgsAsAuthorityItemDelegateV2          `bin:"optional"`
	AsCollectionDelegateV2             *UpdateArgsAsCollectionDelegateV2             `bin:"optional"`
	AsDataDelegateV2                   *UpdateArgsAsDataDelegateV2                   `bin:"optional"`
	AsProgrammableConfigDelegateV2     *UpdateArgsAsProgrammableConfigDelegateV2     `bin:"optional"`
	AsDataItemDelegateV2               *UpdateArgsAsDataItemDelegateV2               `bin:"optional"`
	AsCollectionItemDelegateV2         *UpdateArgsAsCollectionItemDelegateV2         `bin:"optional"`
	AsProgrammableConfigItemDelegateV2 *UpdateArgsAsProgrammableConfigItemDelegateV2 `bin:"optional"`
}

UpdateArgs Enum

func NewUpdateArgs_AsAuthorityItemDelegateV2

func NewUpdateArgs_AsAuthorityItemDelegateV2(newUpdateAuthority *common.PublicKey, primarySaleHappened *bool, isMutable *bool, tokenStandard *TokenStandard, authorizationData *AuthorizationData) UpdateArgs

func NewUpdateArgs_AsCollectionDelegateV2

func NewUpdateArgs_AsCollectionDelegateV2(collection CollectionToggle, authorizationData *AuthorizationData) UpdateArgs

func NewUpdateArgs_AsCollectionItemDelegateV2

func NewUpdateArgs_AsCollectionItemDelegateV2(collection CollectionToggle, authorizationData *AuthorizationData) UpdateArgs

func NewUpdateArgs_AsDataDelegateV2

func NewUpdateArgs_AsDataDelegateV2(data *Data, authorizationData *AuthorizationData) UpdateArgs

func NewUpdateArgs_AsDataItemDelegateV2

func NewUpdateArgs_AsDataItemDelegateV2(data *Data, authorizationData *AuthorizationData) UpdateArgs

func NewUpdateArgs_AsProgrammableConfigDelegateV2

func NewUpdateArgs_AsProgrammableConfigDelegateV2(ruleSet RuleSetToggle, authorizationData *AuthorizationData) UpdateArgs

func NewUpdateArgs_AsProgrammableConfigItemDelegateV2

func NewUpdateArgs_AsProgrammableConfigItemDelegateV2(ruleSet RuleSetToggle, authorizationData *AuthorizationData) UpdateArgs

func NewUpdateArgs_AsUpdateAuthorityV2

func NewUpdateArgs_AsUpdateAuthorityV2(newUpdateAuthority *common.PublicKey, data *Data, primarySaleHappened *bool, isMutable *bool, collection CollectionToggle, collectionDetails CollectionDetailsToggle, uses UsesToggle, ruleSet RuleSetToggle, tokenStandard *TokenStandard, authorizationData *AuthorizationData) UpdateArgs

func NewUpdateArgs_V1

func NewUpdateArgs_V1(newUpdateAuthority *common.PublicKey, data *Data, primarySaleHappened *bool, isMutable *bool, collection CollectionToggle, collectionDetails CollectionDetailsToggle, uses UsesToggle, ruleSet RuleSetToggle, authorizationData *AuthorizationData) UpdateArgs

func (*UpdateArgs) AsAsAuthorityItemDelegateV2

func (obj *UpdateArgs) AsAsAuthorityItemDelegateV2() UpdateArgsAsAuthorityItemDelegateV2

func (*UpdateArgs) AsAsCollectionDelegateV2

func (obj *UpdateArgs) AsAsCollectionDelegateV2() UpdateArgsAsCollectionDelegateV2

func (*UpdateArgs) AsAsCollectionItemDelegateV2

func (obj *UpdateArgs) AsAsCollectionItemDelegateV2() UpdateArgsAsCollectionItemDelegateV2

func (*UpdateArgs) AsAsDataDelegateV2

func (obj *UpdateArgs) AsAsDataDelegateV2() UpdateArgsAsDataDelegateV2

func (*UpdateArgs) AsAsDataItemDelegateV2

func (obj *UpdateArgs) AsAsDataItemDelegateV2() UpdateArgsAsDataItemDelegateV2

func (*UpdateArgs) AsAsProgrammableConfigDelegateV2

func (obj *UpdateArgs) AsAsProgrammableConfigDelegateV2() UpdateArgsAsProgrammableConfigDelegateV2

func (*UpdateArgs) AsAsProgrammableConfigItemDelegateV2

func (obj *UpdateArgs) AsAsProgrammableConfigItemDelegateV2() UpdateArgsAsProgrammableConfigItemDelegateV2

func (*UpdateArgs) AsAsUpdateAuthorityV2

func (obj *UpdateArgs) AsAsUpdateAuthorityV2() UpdateArgsAsUpdateAuthorityV2

func (*UpdateArgs) AsV1

func (obj *UpdateArgs) AsV1() UpdateArgsV1

func (*UpdateArgs) IsAsAuthorityItemDelegateV2

func (obj *UpdateArgs) IsAsAuthorityItemDelegateV2() bool

func (*UpdateArgs) IsAsCollectionDelegateV2

func (obj *UpdateArgs) IsAsCollectionDelegateV2() bool

func (*UpdateArgs) IsAsCollectionItemDelegateV2

func (obj *UpdateArgs) IsAsCollectionItemDelegateV2() bool

func (*UpdateArgs) IsAsDataDelegateV2

func (obj *UpdateArgs) IsAsDataDelegateV2() bool

func (*UpdateArgs) IsAsDataItemDelegateV2

func (obj *UpdateArgs) IsAsDataItemDelegateV2() bool

func (*UpdateArgs) IsAsProgrammableConfigDelegateV2

func (obj *UpdateArgs) IsAsProgrammableConfigDelegateV2() bool

func (*UpdateArgs) IsAsProgrammableConfigItemDelegateV2

func (obj *UpdateArgs) IsAsProgrammableConfigItemDelegateV2() bool

func (*UpdateArgs) IsAsUpdateAuthorityV2

func (obj *UpdateArgs) IsAsUpdateAuthorityV2() bool

func (*UpdateArgs) IsV1

func (obj *UpdateArgs) IsV1() bool

func (*UpdateArgs) MarshalWithEncoder

func (obj *UpdateArgs) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*UpdateArgs) String

func (obj *UpdateArgs) String() string

func (*UpdateArgs) UnmarshalWithDecoder

func (obj *UpdateArgs) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type UpdateArgsAsAuthorityItemDelegateV2

type UpdateArgsAsAuthorityItemDelegateV2 struct {
	NewUpdateAuthority  *common.PublicKey  `bin:"optional"`
	PrimarySaleHappened *bool              `bin:"optional"`
	IsMutable           *bool              `bin:"optional"`
	TokenStandard       *TokenStandard     `bin:"optional"`
	AuthorizationData   *AuthorizationData `bin:"optional"`
}

func (*UpdateArgsAsAuthorityItemDelegateV2) MarshalWithEncoder

func (obj *UpdateArgsAsAuthorityItemDelegateV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*UpdateArgsAsAuthorityItemDelegateV2) UnmarshalWithDecoder

func (obj *UpdateArgsAsAuthorityItemDelegateV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type UpdateArgsAsCollectionDelegateV2

type UpdateArgsAsCollectionDelegateV2 struct {
	Collection        CollectionToggle
	AuthorizationData *AuthorizationData `bin:"optional"`
}

func (*UpdateArgsAsCollectionDelegateV2) MarshalWithEncoder

func (obj *UpdateArgsAsCollectionDelegateV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*UpdateArgsAsCollectionDelegateV2) UnmarshalWithDecoder

func (obj *UpdateArgsAsCollectionDelegateV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type UpdateArgsAsCollectionItemDelegateV2

type UpdateArgsAsCollectionItemDelegateV2 struct {
	Collection        CollectionToggle
	AuthorizationData *AuthorizationData `bin:"optional"`
}

func (*UpdateArgsAsCollectionItemDelegateV2) MarshalWithEncoder

func (obj *UpdateArgsAsCollectionItemDelegateV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*UpdateArgsAsCollectionItemDelegateV2) UnmarshalWithDecoder

func (obj *UpdateArgsAsCollectionItemDelegateV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type UpdateArgsAsDataDelegateV2

type UpdateArgsAsDataDelegateV2 struct {
	Data              *Data              `bin:"optional"`
	AuthorizationData *AuthorizationData `bin:"optional"`
}

func (*UpdateArgsAsDataDelegateV2) MarshalWithEncoder

func (obj *UpdateArgsAsDataDelegateV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*UpdateArgsAsDataDelegateV2) UnmarshalWithDecoder

func (obj *UpdateArgsAsDataDelegateV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type UpdateArgsAsDataItemDelegateV2

type UpdateArgsAsDataItemDelegateV2 struct {
	Data              *Data              `bin:"optional"`
	AuthorizationData *AuthorizationData `bin:"optional"`
}

func (*UpdateArgsAsDataItemDelegateV2) MarshalWithEncoder

func (obj *UpdateArgsAsDataItemDelegateV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*UpdateArgsAsDataItemDelegateV2) UnmarshalWithDecoder

func (obj *UpdateArgsAsDataItemDelegateV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type UpdateArgsAsProgrammableConfigDelegateV2

type UpdateArgsAsProgrammableConfigDelegateV2 struct {
	RuleSet           RuleSetToggle
	AuthorizationData *AuthorizationData `bin:"optional"`
}

func (*UpdateArgsAsProgrammableConfigDelegateV2) MarshalWithEncoder

func (obj *UpdateArgsAsProgrammableConfigDelegateV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*UpdateArgsAsProgrammableConfigDelegateV2) UnmarshalWithDecoder

func (obj *UpdateArgsAsProgrammableConfigDelegateV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type UpdateArgsAsProgrammableConfigItemDelegateV2

type UpdateArgsAsProgrammableConfigItemDelegateV2 struct {
	RuleSet           RuleSetToggle
	AuthorizationData *AuthorizationData `bin:"optional"`
}

func (*UpdateArgsAsProgrammableConfigItemDelegateV2) MarshalWithEncoder

func (obj *UpdateArgsAsProgrammableConfigItemDelegateV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*UpdateArgsAsProgrammableConfigItemDelegateV2) UnmarshalWithDecoder

func (obj *UpdateArgsAsProgrammableConfigItemDelegateV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type UpdateArgsAsUpdateAuthorityV2

type UpdateArgsAsUpdateAuthorityV2 struct {
	NewUpdateAuthority  *common.PublicKey `bin:"optional"`
	Data                *Data             `bin:"optional"`
	PrimarySaleHappened *bool             `bin:"optional"`
	IsMutable           *bool             `bin:"optional"`
	Collection          CollectionToggle
	CollectionDetails   CollectionDetailsToggle
	Uses                UsesToggle
	RuleSet             RuleSetToggle
	TokenStandard       *TokenStandard     `bin:"optional"`
	AuthorizationData   *AuthorizationData `bin:"optional"`
}

func (*UpdateArgsAsUpdateAuthorityV2) MarshalWithEncoder

func (obj *UpdateArgsAsUpdateAuthorityV2) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*UpdateArgsAsUpdateAuthorityV2) UnmarshalWithDecoder

func (obj *UpdateArgsAsUpdateAuthorityV2) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type UpdateArgsV1

type UpdateArgsV1 struct {
	NewUpdateAuthority  *common.PublicKey `bin:"optional"`
	Data                *Data             `bin:"optional"`
	PrimarySaleHappened *bool             `bin:"optional"`
	IsMutable           *bool             `bin:"optional"`
	Collection          CollectionToggle
	CollectionDetails   CollectionDetailsToggle
	Uses                UsesToggle
	RuleSet             RuleSetToggle
	AuthorizationData   *AuthorizationData `bin:"optional"`
}

func (*UpdateArgsV1) MarshalWithEncoder

func (obj *UpdateArgsV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*UpdateArgsV1) UnmarshalWithDecoder

func (obj *UpdateArgsV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type UpdateAuthorityIncorrectError

type UpdateAuthorityIncorrectError struct{}

UpdateAuthorityIncorrectError Error: 7 `Update Authority given does not match`

func (UpdateAuthorityIncorrectError) Code

func (UpdateAuthorityIncorrectError) Error

type UpdateAuthorityIsNotSignerError

type UpdateAuthorityIsNotSignerError struct{}

UpdateAuthorityIsNotSignerError Error: 8 `Update Authority needs to be signer to update metadata`

func (UpdateAuthorityIsNotSignerError) Code

func (UpdateAuthorityIsNotSignerError) Error

type UpdateAuthorityMustBeEqualToMetadataAuthorityAndSignerError

type UpdateAuthorityMustBeEqualToMetadataAuthorityAndSignerError struct{}

UpdateAuthorityMustBeEqualToMetadataAuthorityAndSignerError Error: 14 “

func (UpdateAuthorityMustBeEqualToMetadataAuthorityAndSignerError) Code

func (UpdateAuthorityMustBeEqualToMetadataAuthorityAndSignerError) Error

type UpdateMetadataAccount

type UpdateMetadataAccount struct {
	// [0] = [WRITE] metadata `Metadata account`
	// [1] = [SIGNER] updateAuthority `Update authority key`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

UpdateMetadataAccount Instruction

func NewUpdateMetadataAccountInstruction

func NewUpdateMetadataAccountInstruction(
	metadata common.PublicKey,
	updateAuthority common.PublicKey,
) *UpdateMetadataAccount

NewUpdateMetadataAccountInstruction

Parameters:

metadata: Metadata account
updateAuthority: Update authority key

func NewUpdateMetadataAccountInstructionBuilder

func NewUpdateMetadataAccountInstructionBuilder() *UpdateMetadataAccount

NewUpdateMetadataAccountInstructionBuilder creates a new `UpdateMetadataAccount` instruction builder.

func (*UpdateMetadataAccount) Build

func (obj *UpdateMetadataAccount) Build() *Instruction

func (*UpdateMetadataAccount) EncodeToTree

func (obj *UpdateMetadataAccount) EncodeToTree(parent treeout.Branches)

func (*UpdateMetadataAccount) GetMetadataAccount

func (obj *UpdateMetadataAccount) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*UpdateMetadataAccount) GetUpdateAuthorityAccount

func (obj *UpdateMetadataAccount) GetUpdateAuthorityAccount() *common.AccountMeta

GetUpdateAuthorityAccount gets the "updateAuthority" parameter. Update authority key

func (*UpdateMetadataAccount) MarshalWithEncoder

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

func (*UpdateMetadataAccount) SetMetadataAccount

func (obj *UpdateMetadataAccount) SetMetadataAccount(metadata common.PublicKey) *UpdateMetadataAccount

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*UpdateMetadataAccount) SetProgramId

func (obj *UpdateMetadataAccount) SetProgramId(programId *common.PublicKey) *UpdateMetadataAccount

func (*UpdateMetadataAccount) SetUpdateAuthorityAccount

func (obj *UpdateMetadataAccount) SetUpdateAuthorityAccount(updateAuthority common.PublicKey, multiSigners ...common.PublicKey) *UpdateMetadataAccount

SetUpdateAuthorityAccount sets the "updateAuthority" parameter. Update authority key

func (*UpdateMetadataAccount) UnmarshalWithDecoder

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

func (*UpdateMetadataAccount) Validate

func (obj *UpdateMetadataAccount) Validate() error

func (*UpdateMetadataAccount) ValidateAndBuild

func (obj *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 UpdateMetadataAccountArgsV2

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

UpdateMetadataAccountArgsV2 Struct

func (*UpdateMetadataAccountArgsV2) MarshalWithEncoder

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

func (*UpdateMetadataAccountArgsV2) UnmarshalWithDecoder

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

type UpdateMetadataAccountV2

type UpdateMetadataAccountV2 struct {
	UpdateMetadataAccountArgsV2 *UpdateMetadataAccountArgsV2
	// [0] = [WRITE] metadata `Metadata account`
	// [1] = [SIGNER] updateAuthority `Update authority key`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

UpdateMetadataAccountV2 Instruction

func NewUpdateMetadataAccountV2Instruction

func NewUpdateMetadataAccountV2Instruction(
	updateMetadataAccountArgsV2 UpdateMetadataAccountArgsV2,
	metadata common.PublicKey,
	updateAuthority common.PublicKey,
) *UpdateMetadataAccountV2

NewUpdateMetadataAccountV2Instruction

Parameters:

updateMetadataAccountArgsV2:
metadata: Metadata account
updateAuthority: Update authority key

func NewUpdateMetadataAccountV2InstructionBuilder

func NewUpdateMetadataAccountV2InstructionBuilder() *UpdateMetadataAccountV2

NewUpdateMetadataAccountV2InstructionBuilder creates a new `UpdateMetadataAccountV2` instruction builder.

func (*UpdateMetadataAccountV2) Build

func (obj *UpdateMetadataAccountV2) Build() *Instruction

func (*UpdateMetadataAccountV2) EncodeToTree

func (obj *UpdateMetadataAccountV2) EncodeToTree(parent treeout.Branches)

func (*UpdateMetadataAccountV2) GetMetadataAccount

func (obj *UpdateMetadataAccountV2) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*UpdateMetadataAccountV2) GetUpdateAuthorityAccount

func (obj *UpdateMetadataAccountV2) GetUpdateAuthorityAccount() *common.AccountMeta

GetUpdateAuthorityAccount gets the "updateAuthority" parameter. Update authority key

func (*UpdateMetadataAccountV2) MarshalWithEncoder

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

func (*UpdateMetadataAccountV2) SetMetadataAccount

func (obj *UpdateMetadataAccountV2) SetMetadataAccount(metadata common.PublicKey) *UpdateMetadataAccountV2

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*UpdateMetadataAccountV2) SetProgramId

func (obj *UpdateMetadataAccountV2) SetProgramId(programId *common.PublicKey) *UpdateMetadataAccountV2

func (*UpdateMetadataAccountV2) SetUpdateAuthorityAccount

func (obj *UpdateMetadataAccountV2) SetUpdateAuthorityAccount(updateAuthority common.PublicKey, multiSigners ...common.PublicKey) *UpdateMetadataAccountV2

SetUpdateAuthorityAccount sets the "updateAuthority" parameter. Update authority key

func (*UpdateMetadataAccountV2) SetUpdateMetadataAccountArgsV2

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

SetUpdateMetadataAccountArgsV2 sets the "updateMetadataAccountArgsV2" parameter.

func (*UpdateMetadataAccountV2) UnmarshalWithDecoder

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

func (*UpdateMetadataAccountV2) Validate

func (obj *UpdateMetadataAccountV2) Validate() error

func (*UpdateMetadataAccountV2) ValidateAndBuild

func (obj *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 `Metadata key (pda of ['metadata', program id, mint id])`
	// [1] = [SIGNER] owner `Owner on the token account`
	// [2] = [] token `Account containing tokens from the metadata's mint`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

UpdatePrimarySaleHappenedViaToken Instruction

func NewUpdatePrimarySaleHappenedViaTokenInstruction

func NewUpdatePrimarySaleHappenedViaTokenInstruction(
	metadata common.PublicKey,
	owner common.PublicKey,
	token common.PublicKey,
) *UpdatePrimarySaleHappenedViaToken

NewUpdatePrimarySaleHappenedViaTokenInstruction

Parameters:

metadata: Metadata key (pda of ['metadata', program id, mint id])
owner: Owner on the token account
token: Account containing tokens from the metadata's mint

func NewUpdatePrimarySaleHappenedViaTokenInstructionBuilder

func NewUpdatePrimarySaleHappenedViaTokenInstructionBuilder() *UpdatePrimarySaleHappenedViaToken

NewUpdatePrimarySaleHappenedViaTokenInstructionBuilder creates a new `UpdatePrimarySaleHappenedViaToken` instruction builder.

func (*UpdatePrimarySaleHappenedViaToken) Build

func (*UpdatePrimarySaleHappenedViaToken) EncodeToTree

func (obj *UpdatePrimarySaleHappenedViaToken) EncodeToTree(parent treeout.Branches)

func (*UpdatePrimarySaleHappenedViaToken) GetMetadataAccount

func (obj *UpdatePrimarySaleHappenedViaToken) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])

func (*UpdatePrimarySaleHappenedViaToken) GetOwnerAccount

func (obj *UpdatePrimarySaleHappenedViaToken) GetOwnerAccount() *common.AccountMeta

GetOwnerAccount gets the "owner" parameter. Owner on the token account

func (*UpdatePrimarySaleHappenedViaToken) GetTokenAccount

func (obj *UpdatePrimarySaleHappenedViaToken) GetTokenAccount() *common.AccountMeta

GetTokenAccount gets the "token" parameter. Account containing tokens from the metadata's mint

func (*UpdatePrimarySaleHappenedViaToken) MarshalWithEncoder

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

func (*UpdatePrimarySaleHappenedViaToken) SetMetadataAccount

SetMetadataAccount sets the "metadata" parameter. Metadata key (pda of ['metadata', program id, mint id])

func (*UpdatePrimarySaleHappenedViaToken) SetOwnerAccount

SetOwnerAccount sets the "owner" parameter. Owner on the token account

func (*UpdatePrimarySaleHappenedViaToken) SetProgramId

func (*UpdatePrimarySaleHappenedViaToken) SetTokenAccount

SetTokenAccount sets the "token" parameter. Account containing tokens from the metadata's mint

func (*UpdatePrimarySaleHappenedViaToken) UnmarshalWithDecoder

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

func (*UpdatePrimarySaleHappenedViaToken) Validate

func (obj *UpdatePrimarySaleHappenedViaToken) Validate() error

func (*UpdatePrimarySaleHappenedViaToken) ValidateAndBuild

func (obj *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 UriTooLongError

type UriTooLongError struct{}

UriTooLongError Error: 13 `URI too long`

func (UriTooLongError) Code

func (e UriTooLongError) Code() int

func (UriTooLongError) Error

func (e UriTooLongError) Error() string

type Use

type Use struct {
	UseArgs *UseArgs
	// [0] = [SIGNER] authority `Token owner or delegate`
	// [1] = [WRITE] delegateRecord `Delegate record PDA`
	// [2] = [WRITE] token `Token account`
	// [3] = [] mint `Mint account`
	// [4] = [WRITE] metadata `Metadata account`
	// [5] = [WRITE] edition `Edition account`
	// [6] = [SIGNER] payer `Payer`
	// [7] = [] systemProgram `System program`
	// [8] = [] sysvarInstructions `System program`
	// [9] = [] splTokenProgram `SPL Token Program`
	// [10] = [] authorizationRulesProgram `Token Authorization Rules Program`
	// [11] = [] authorizationRules `Token Authorization Rules account`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

Use Instruction

func NewUseInstruction

func NewUseInstruction(
	useArgs UseArgs,
	authority common.PublicKey,
	delegateRecord common.PublicKey,
	token common.PublicKey,
	mint common.PublicKey,
	metadata common.PublicKey,
	edition common.PublicKey,
	payer common.PublicKey,
	systemProgram common.PublicKey,
	sysvarInstructions common.PublicKey,
	splTokenProgram common.PublicKey,
	authorizationRulesProgram common.PublicKey,
	authorizationRules common.PublicKey,
) *Use

NewUseInstruction

Parameters:

useArgs:
authority: Token owner or delegate
delegateRecord: Delegate record PDA
token: Token account
mint: Mint account
metadata: Metadata account
edition: Edition account
payer: Payer
systemProgram: System program
sysvarInstructions: System program
splTokenProgram: SPL Token Program
authorizationRulesProgram: Token Authorization Rules Program
authorizationRules: Token Authorization Rules account

func NewUseInstructionBuilder

func NewUseInstructionBuilder() *Use

NewUseInstructionBuilder creates a new `Use` instruction builder.

func (*Use) Build

func (obj *Use) Build() *Instruction

func (*Use) EncodeToTree

func (obj *Use) EncodeToTree(parent treeout.Branches)

func (*Use) GetAuthorityAccount

func (obj *Use) GetAuthorityAccount() *common.AccountMeta

GetAuthorityAccount gets the "authority" parameter. Token owner or delegate

func (*Use) GetAuthorizationRulesAccount

func (obj *Use) GetAuthorizationRulesAccount() *common.AccountMeta

GetAuthorizationRulesAccount gets the "authorizationRules" parameter. Token Authorization Rules account

func (*Use) GetAuthorizationRulesProgramAccount

func (obj *Use) GetAuthorizationRulesProgramAccount() *common.AccountMeta

GetAuthorizationRulesProgramAccount gets the "authorizationRulesProgram" parameter. Token Authorization Rules Program

func (*Use) GetDelegateRecordAccount

func (obj *Use) GetDelegateRecordAccount() *common.AccountMeta

GetDelegateRecordAccount gets the "delegateRecord" parameter. Delegate record PDA

func (*Use) GetEditionAccount

func (obj *Use) GetEditionAccount() *common.AccountMeta

GetEditionAccount gets the "edition" parameter. Edition account

func (*Use) GetMetadataAccount

func (obj *Use) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*Use) GetMintAccount

func (obj *Use) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Mint account

func (*Use) GetPayerAccount

func (obj *Use) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. Payer

func (*Use) GetSplTokenProgramAccount

func (obj *Use) GetSplTokenProgramAccount() *common.AccountMeta

GetSplTokenProgramAccount gets the "splTokenProgram" parameter. SPL Token Program

func (*Use) GetSystemProgramAccount

func (obj *Use) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*Use) GetSysvarInstructionsAccount

func (obj *Use) GetSysvarInstructionsAccount() *common.AccountMeta

GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. System program

func (*Use) GetTokenAccount

func (obj *Use) GetTokenAccount() *common.AccountMeta

GetTokenAccount gets the "token" parameter. Token account

func (*Use) MarshalWithEncoder

func (obj *Use) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*Use) SetAuthorityAccount

func (obj *Use) SetAuthorityAccount(authority common.PublicKey) *Use

SetAuthorityAccount sets the "authority" parameter. Token owner or delegate

func (*Use) SetAuthorizationRulesAccount

func (obj *Use) SetAuthorizationRulesAccount(authorizationRules common.PublicKey, multiSigners ...common.PublicKey) *Use

SetAuthorizationRulesAccount sets the "authorizationRules" parameter. Token Authorization Rules account

func (*Use) SetAuthorizationRulesProgramAccount

func (obj *Use) SetAuthorizationRulesProgramAccount(authorizationRulesProgram common.PublicKey) *Use

SetAuthorizationRulesProgramAccount sets the "authorizationRulesProgram" parameter. Token Authorization Rules Program

func (*Use) SetDelegateRecordAccount

func (obj *Use) SetDelegateRecordAccount(delegateRecord common.PublicKey) *Use

SetDelegateRecordAccount sets the "delegateRecord" parameter. Delegate record PDA

func (*Use) SetEditionAccount

func (obj *Use) SetEditionAccount(edition common.PublicKey) *Use

SetEditionAccount sets the "edition" parameter. Edition account

func (*Use) SetMetadataAccount

func (obj *Use) SetMetadataAccount(metadata common.PublicKey) *Use

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*Use) SetMintAccount

func (obj *Use) SetMintAccount(mint common.PublicKey) *Use

SetMintAccount sets the "mint" parameter. Mint account

func (*Use) SetPayerAccount

func (obj *Use) SetPayerAccount(payer common.PublicKey) *Use

SetPayerAccount sets the "payer" parameter. Payer

func (*Use) SetProgramId

func (obj *Use) SetProgramId(programId *common.PublicKey) *Use

func (*Use) SetSplTokenProgramAccount

func (obj *Use) SetSplTokenProgramAccount(splTokenProgram common.PublicKey) *Use

SetSplTokenProgramAccount sets the "splTokenProgram" parameter. SPL Token Program

func (*Use) SetSystemProgramAccount

func (obj *Use) SetSystemProgramAccount(systemProgram common.PublicKey) *Use

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*Use) SetSysvarInstructionsAccount

func (obj *Use) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey) *Use

SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. System program

func (*Use) SetTokenAccount

func (obj *Use) SetTokenAccount(token common.PublicKey) *Use

SetTokenAccount sets the "token" parameter. Token account

func (*Use) SetUseArgs

func (obj *Use) SetUseArgs(useArgs UseArgs) *Use

SetUseArgs sets the "useArgs" parameter.

func (*Use) UnmarshalWithDecoder

func (obj *Use) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

func (*Use) Validate

func (obj *Use) Validate() error

func (*Use) ValidateAndBuild

func (obj *Use) 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 UseArgs

type UseArgs struct {
	V1 *UseArgsV1 `bin:"optional"`
}

UseArgs Enum

func NewUseArgs_V1

func NewUseArgs_V1(authorizationData *AuthorizationData) UseArgs

func (*UseArgs) AsV1

func (obj *UseArgs) AsV1() UseArgsV1

func (*UseArgs) IsV1

func (obj *UseArgs) IsV1() bool

func (*UseArgs) MarshalWithEncoder

func (obj *UseArgs) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*UseArgs) String

func (obj *UseArgs) String() string

func (*UseArgs) UnmarshalWithDecoder

func (obj *UseArgs) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type UseArgsV1

type UseArgsV1 struct {
	AuthorizationData *AuthorizationData `bin:"optional"`
}

func (*UseArgsV1) MarshalWithEncoder

func (obj *UseArgsV1) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*UseArgsV1) UnmarshalWithDecoder

func (obj *UseArgsV1) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type UseAuthorityRecord

type UseAuthorityRecord struct {
	Key         Key
	AllowedUses uint64
	Bump        uint8
}

UseAuthorityRecord Struct

func (*UseAuthorityRecord) MarshalWithEncoder

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

func (*UseAuthorityRecord) UnmarshalWithDecoder

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

type UseAuthorityRecordAlreadyExistsError

type UseAuthorityRecordAlreadyExistsError struct{}

UseAuthorityRecordAlreadyExistsError Error: 83 `The Use Authority Record Already Exists, to modify it Revoke, then Approve`

func (UseAuthorityRecordAlreadyExistsError) Code

func (UseAuthorityRecordAlreadyExistsError) Error

type UseAuthorityRecordAlreadyRevokedError

type UseAuthorityRecordAlreadyRevokedError struct{}

UseAuthorityRecordAlreadyRevokedError Error: 84 `The Use Authority Record is empty or already revoked`

func (UseAuthorityRecordAlreadyRevokedError) Code

func (UseAuthorityRecordAlreadyRevokedError) Error

type UseMethod

type UseMethod binary.BorshEnum

UseMethod Enum

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
}

Uses Struct

func (*Uses) MarshalWithEncoder

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

func (*Uses) UnmarshalWithDecoder

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

type UsesToggle

type UsesToggle struct {
	None  *struct{}      `bin:"optional"`
	Clear *struct{}      `bin:"optional"`
	Set   *UsesToggleSet `bin:"optional"`
}

UsesToggle Enum

func NewUsesToggle_Clear

func NewUsesToggle_Clear() UsesToggle

func NewUsesToggle_None

func NewUsesToggle_None() UsesToggle

func NewUsesToggle_Set

func NewUsesToggle_Set(field0 Uses) UsesToggle

func (*UsesToggle) AsSet

func (obj *UsesToggle) AsSet() UsesToggleSet

func (*UsesToggle) IsClear

func (obj *UsesToggle) IsClear() bool

func (*UsesToggle) IsNone

func (obj *UsesToggle) IsNone() bool

func (*UsesToggle) IsSet

func (obj *UsesToggle) IsSet() bool

func (*UsesToggle) MarshalWithEncoder

func (obj *UsesToggle) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*UsesToggle) String

func (obj *UsesToggle) String() string

func (*UsesToggle) UnmarshalWithDecoder

func (obj *UsesToggle) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type UsesToggleSet

type UsesToggleSet struct {
	Field0 Uses
}

func (*UsesToggleSet) MarshalWithEncoder

func (obj *UsesToggleSet) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*UsesToggleSet) UnmarshalWithDecoder

func (obj *UsesToggleSet) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

type Utilize

type Utilize struct {
	UtilizeArgs *UtilizeArgs
	// [0] = [WRITE] metadata `Metadata account`
	// [1] = [WRITE] tokenAccount `Token Account Of NFT`
	// [2] = [WRITE] mint `Mint of the Metadata`
	// [3] = [WRITE, SIGNER] useAuthority `A Use Authority / Can be the current Owner of the NFT`
	// [4] = [] owner `Owner`
	// [5] = [] tokenProgram `Token program`
	// [6] = [] ataProgram `Associated Token program`
	// [7] = [] systemProgram `System program`
	// [8] = [] rent `Rent info`
	// [9] = [WRITE] useAuthorityRecord `Use Authority Record PDA If present the program Assumes a delegated use authority`
	// [10] = [] burner `Program As Signer (Burner)`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

Utilize Instruction

func NewUtilizeInstruction

func NewUtilizeInstruction(
	utilizeArgs UtilizeArgs,
	metadata common.PublicKey,
	tokenAccount common.PublicKey,
	mint common.PublicKey,
	useAuthority common.PublicKey,
	owner common.PublicKey,
	tokenProgram common.PublicKey,
	ataProgram common.PublicKey,
	systemProgram common.PublicKey,
	rent common.PublicKey,
	useAuthorityRecord common.PublicKey,
	burner common.PublicKey,
) *Utilize

NewUtilizeInstruction

Parameters:

utilizeArgs:
metadata: Metadata account
tokenAccount: Token Account Of NFT
mint: Mint of the Metadata
useAuthority: A Use Authority / Can be the current Owner of the NFT
owner: Owner
tokenProgram: Token program
ataProgram: Associated Token program
systemProgram: System program
rent: Rent info
useAuthorityRecord: Use Authority Record PDA If present the program Assumes a delegated use authority
burner: Program As Signer (Burner)

func NewUtilizeInstructionBuilder

func NewUtilizeInstructionBuilder() *Utilize

NewUtilizeInstructionBuilder creates a new `Utilize` instruction builder.

func (*Utilize) Build

func (obj *Utilize) Build() *Instruction

func (*Utilize) EncodeToTree

func (obj *Utilize) EncodeToTree(parent treeout.Branches)

func (*Utilize) GetAtaProgramAccount

func (obj *Utilize) GetAtaProgramAccount() *common.AccountMeta

GetAtaProgramAccount gets the "ataProgram" parameter. Associated Token program

func (*Utilize) GetBurnerAccount

func (obj *Utilize) GetBurnerAccount() *common.AccountMeta

GetBurnerAccount gets the "burner" parameter. Program As Signer (Burner)

func (*Utilize) GetMetadataAccount

func (obj *Utilize) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*Utilize) GetMintAccount

func (obj *Utilize) GetMintAccount() *common.AccountMeta

GetMintAccount gets the "mint" parameter. Mint of the Metadata

func (*Utilize) GetOwnerAccount

func (obj *Utilize) GetOwnerAccount() *common.AccountMeta

GetOwnerAccount gets the "owner" parameter. Owner

func (*Utilize) GetRentAccount

func (obj *Utilize) GetRentAccount() *common.AccountMeta

GetRentAccount gets the "rent" parameter. Rent info

func (*Utilize) GetSystemProgramAccount

func (obj *Utilize) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*Utilize) GetTokenAccountAccount

func (obj *Utilize) GetTokenAccountAccount() *common.AccountMeta

GetTokenAccountAccount gets the "tokenAccount" parameter. Token Account Of NFT

func (*Utilize) GetTokenProgramAccount

func (obj *Utilize) GetTokenProgramAccount() *common.AccountMeta

GetTokenProgramAccount gets the "tokenProgram" parameter. Token program

func (*Utilize) GetUseAuthorityAccount

func (obj *Utilize) GetUseAuthorityAccount() *common.AccountMeta

GetUseAuthorityAccount gets the "useAuthority" parameter. A Use Authority / Can be the current Owner of the NFT

func (*Utilize) GetUseAuthorityRecordAccount

func (obj *Utilize) GetUseAuthorityRecordAccount() *common.AccountMeta

GetUseAuthorityRecordAccount gets the "useAuthorityRecord" parameter. Use Authority Record PDA If present the program Assumes a delegated use authority

func (*Utilize) MarshalWithEncoder

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

func (*Utilize) SetAtaProgramAccount

func (obj *Utilize) SetAtaProgramAccount(ataProgram common.PublicKey) *Utilize

SetAtaProgramAccount sets the "ataProgram" parameter. Associated Token program

func (*Utilize) SetBurnerAccount

func (obj *Utilize) SetBurnerAccount(burner common.PublicKey, multiSigners ...common.PublicKey) *Utilize

SetBurnerAccount sets the "burner" parameter. Program As Signer (Burner)

func (*Utilize) SetMetadataAccount

func (obj *Utilize) SetMetadataAccount(metadata common.PublicKey) *Utilize

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*Utilize) SetMintAccount

func (obj *Utilize) SetMintAccount(mint common.PublicKey) *Utilize

SetMintAccount sets the "mint" parameter. Mint of the Metadata

func (*Utilize) SetOwnerAccount

func (obj *Utilize) SetOwnerAccount(owner common.PublicKey) *Utilize

SetOwnerAccount sets the "owner" parameter. Owner

func (*Utilize) SetProgramId

func (obj *Utilize) SetProgramId(programId *common.PublicKey) *Utilize

func (*Utilize) SetRentAccount

func (obj *Utilize) SetRentAccount(rent common.PublicKey) *Utilize

SetRentAccount sets the "rent" parameter. Rent info

func (*Utilize) SetSystemProgramAccount

func (obj *Utilize) SetSystemProgramAccount(systemProgram common.PublicKey) *Utilize

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*Utilize) SetTokenAccountAccount

func (obj *Utilize) SetTokenAccountAccount(tokenAccount common.PublicKey) *Utilize

SetTokenAccountAccount sets the "tokenAccount" parameter. Token Account Of NFT

func (*Utilize) SetTokenProgramAccount

func (obj *Utilize) SetTokenProgramAccount(tokenProgram common.PublicKey) *Utilize

SetTokenProgramAccount sets the "tokenProgram" parameter. Token program

func (*Utilize) SetUseAuthorityAccount

func (obj *Utilize) SetUseAuthorityAccount(useAuthority common.PublicKey) *Utilize

SetUseAuthorityAccount sets the "useAuthority" parameter. A Use Authority / Can be the current Owner of the NFT

func (*Utilize) SetUseAuthorityRecordAccount

func (obj *Utilize) SetUseAuthorityRecordAccount(useAuthorityRecord common.PublicKey) *Utilize

SetUseAuthorityRecordAccount sets the "useAuthorityRecord" parameter. Use Authority Record PDA If present the program Assumes a delegated use authority

func (*Utilize) SetUtilizeArgs

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

SetUtilizeArgs sets the "utilizeArgs" parameter.

func (*Utilize) UnmarshalWithDecoder

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

func (*Utilize) Validate

func (obj *Utilize) Validate() error

func (*Utilize) ValidateAndBuild

func (obj *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
}

UtilizeArgs Struct

func (*UtilizeArgs) MarshalWithEncoder

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

func (*UtilizeArgs) UnmarshalWithDecoder

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

type VerificationArgs

type VerificationArgs binary.BorshEnum

VerificationArgs Enum

const (
	VerificationArgsCreatorV1 VerificationArgs = iota
	VerificationArgsCollectionV1
)

func (VerificationArgs) String

func (value VerificationArgs) String() string

type Verify

type Verify struct {
	VerificationArgs *VerificationArgs
	// [0] = [SIGNER] authority `Creator to verify, collection update authority or delegate`
	// [1] = [] delegateRecord `Delegate record PDA`
	// [2] = [WRITE] metadata `Metadata account`
	// [3] = [] collectionMint `Mint of the Collection`
	// [4] = [WRITE] collectionMetadata `Metadata Account of the Collection`
	// [5] = [] collectionMasterEdition `Master Edition Account of the Collection Token`
	// [6] = [] systemProgram `System program`
	// [7] = [] sysvarInstructions `Instructions sysvar account`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

Verify Instruction

func NewVerifyInstruction

func NewVerifyInstruction(
	verificationArgs VerificationArgs,
	authority common.PublicKey,
	delegateRecord common.PublicKey,
	metadata common.PublicKey,
	collectionMint common.PublicKey,
	collectionMetadata common.PublicKey,
	collectionMasterEdition common.PublicKey,
	systemProgram common.PublicKey,
	sysvarInstructions common.PublicKey,
) *Verify

NewVerifyInstruction

Parameters:

verificationArgs:
authority: Creator to verify, collection update authority or delegate
delegateRecord: Delegate record PDA
metadata: Metadata account
collectionMint: Mint of the Collection
collectionMetadata: Metadata Account of the Collection
collectionMasterEdition: Master Edition Account of the Collection Token
systemProgram: System program
sysvarInstructions: Instructions sysvar account

func NewVerifyInstructionBuilder

func NewVerifyInstructionBuilder() *Verify

NewVerifyInstructionBuilder creates a new `Verify` instruction builder.

func (*Verify) Build

func (obj *Verify) Build() *Instruction

func (*Verify) EncodeToTree

func (obj *Verify) EncodeToTree(parent treeout.Branches)

func (*Verify) GetAuthorityAccount

func (obj *Verify) GetAuthorityAccount() *common.AccountMeta

GetAuthorityAccount gets the "authority" parameter. Creator to verify, collection update authority or delegate

func (*Verify) GetCollectionMasterEditionAccount

func (obj *Verify) GetCollectionMasterEditionAccount() *common.AccountMeta

GetCollectionMasterEditionAccount gets the "collectionMasterEdition" parameter. Master Edition Account of the Collection Token

func (*Verify) GetCollectionMetadataAccount

func (obj *Verify) GetCollectionMetadataAccount() *common.AccountMeta

GetCollectionMetadataAccount gets the "collectionMetadata" parameter. Metadata Account of the Collection

func (*Verify) GetCollectionMintAccount

func (obj *Verify) GetCollectionMintAccount() *common.AccountMeta

GetCollectionMintAccount gets the "collectionMint" parameter. Mint of the Collection

func (*Verify) GetDelegateRecordAccount

func (obj *Verify) GetDelegateRecordAccount() *common.AccountMeta

GetDelegateRecordAccount gets the "delegateRecord" parameter. Delegate record PDA

func (*Verify) GetMetadataAccount

func (obj *Verify) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*Verify) GetSystemProgramAccount

func (obj *Verify) GetSystemProgramAccount() *common.AccountMeta

GetSystemProgramAccount gets the "systemProgram" parameter. System program

func (*Verify) GetSysvarInstructionsAccount

func (obj *Verify) GetSysvarInstructionsAccount() *common.AccountMeta

GetSysvarInstructionsAccount gets the "sysvarInstructions" parameter. Instructions sysvar account

func (*Verify) MarshalWithEncoder

func (obj *Verify) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*Verify) SetAuthorityAccount

func (obj *Verify) SetAuthorityAccount(authority common.PublicKey) *Verify

SetAuthorityAccount sets the "authority" parameter. Creator to verify, collection update authority or delegate

func (*Verify) SetCollectionMasterEditionAccount

func (obj *Verify) SetCollectionMasterEditionAccount(collectionMasterEdition common.PublicKey) *Verify

SetCollectionMasterEditionAccount sets the "collectionMasterEdition" parameter. Master Edition Account of the Collection Token

func (*Verify) SetCollectionMetadataAccount

func (obj *Verify) SetCollectionMetadataAccount(collectionMetadata common.PublicKey) *Verify

SetCollectionMetadataAccount sets the "collectionMetadata" parameter. Metadata Account of the Collection

func (*Verify) SetCollectionMintAccount

func (obj *Verify) SetCollectionMintAccount(collectionMint common.PublicKey) *Verify

SetCollectionMintAccount sets the "collectionMint" parameter. Mint of the Collection

func (*Verify) SetDelegateRecordAccount

func (obj *Verify) SetDelegateRecordAccount(delegateRecord common.PublicKey) *Verify

SetDelegateRecordAccount sets the "delegateRecord" parameter. Delegate record PDA

func (*Verify) SetMetadataAccount

func (obj *Verify) SetMetadataAccount(metadata common.PublicKey) *Verify

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*Verify) SetProgramId

func (obj *Verify) SetProgramId(programId *common.PublicKey) *Verify

func (*Verify) SetSystemProgramAccount

func (obj *Verify) SetSystemProgramAccount(systemProgram common.PublicKey) *Verify

SetSystemProgramAccount sets the "systemProgram" parameter. System program

func (*Verify) SetSysvarInstructionsAccount

func (obj *Verify) SetSysvarInstructionsAccount(sysvarInstructions common.PublicKey, multiSigners ...common.PublicKey) *Verify

SetSysvarInstructionsAccount sets the "sysvarInstructions" parameter. Instructions sysvar account

func (*Verify) SetVerificationArgs

func (obj *Verify) SetVerificationArgs(verificationArgs VerificationArgs) *Verify

SetVerificationArgs sets the "verificationArgs" parameter.

func (*Verify) UnmarshalWithDecoder

func (obj *Verify) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

func (*Verify) Validate

func (obj *Verify) Validate() error

func (*Verify) ValidateAndBuild

func (obj *Verify) 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 VerifyCollection

type VerifyCollection struct {
	// [0] = [WRITE] metadata `Metadata account`
	// [1] = [WRITE, SIGNER] collectionAuthority `Collection Update authority`
	// [2] = [WRITE, SIGNER] payer `payer`
	// [3] = [] collectionMint `Mint of the Collection`
	// [4] = [] collection `Metadata Account of the Collection`
	// [5] = [] collectionMasterEditionAccount `MasterEdition2 Account of the Collection Token`
	// [6] = [] collectionAuthorityRecord `Collection Authority Record PDA`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

VerifyCollection Instruction

func NewVerifyCollectionInstruction

func NewVerifyCollectionInstruction(
	metadata common.PublicKey,
	collectionAuthority common.PublicKey,
	payer common.PublicKey,
	collectionMint common.PublicKey,
	collection common.PublicKey,
	collectionMasterEditionAccount common.PublicKey,
	collectionAuthorityRecord common.PublicKey,
) *VerifyCollection

NewVerifyCollectionInstruction

Parameters:

metadata: Metadata account
collectionAuthority: Collection Update authority
payer: payer
collectionMint: Mint of the Collection
collection: Metadata Account of the Collection
collectionMasterEditionAccount: MasterEdition2 Account of the Collection Token
collectionAuthorityRecord: Collection Authority Record PDA

func NewVerifyCollectionInstructionBuilder

func NewVerifyCollectionInstructionBuilder() *VerifyCollection

NewVerifyCollectionInstructionBuilder creates a new `VerifyCollection` instruction builder.

func (*VerifyCollection) Build

func (obj *VerifyCollection) Build() *Instruction

func (*VerifyCollection) EncodeToTree

func (obj *VerifyCollection) EncodeToTree(parent treeout.Branches)

func (*VerifyCollection) GetCollectionAccount

func (obj *VerifyCollection) GetCollectionAccount() *common.AccountMeta

GetCollectionAccount gets the "collection" parameter. Metadata Account of the Collection

func (*VerifyCollection) GetCollectionAuthorityAccount

func (obj *VerifyCollection) GetCollectionAuthorityAccount() *common.AccountMeta

GetCollectionAuthorityAccount gets the "collectionAuthority" parameter. Collection Update authority

func (*VerifyCollection) GetCollectionAuthorityRecordAccount

func (obj *VerifyCollection) GetCollectionAuthorityRecordAccount() *common.AccountMeta

GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA

func (*VerifyCollection) GetCollectionMasterEditionAccountAccount

func (obj *VerifyCollection) GetCollectionMasterEditionAccountAccount() *common.AccountMeta

GetCollectionMasterEditionAccountAccount gets the "collectionMasterEditionAccount" parameter. MasterEdition2 Account of the Collection Token

func (*VerifyCollection) GetCollectionMintAccount

func (obj *VerifyCollection) GetCollectionMintAccount() *common.AccountMeta

GetCollectionMintAccount gets the "collectionMint" parameter. Mint of the Collection

func (*VerifyCollection) GetMetadataAccount

func (obj *VerifyCollection) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*VerifyCollection) GetPayerAccount

func (obj *VerifyCollection) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. payer

func (*VerifyCollection) MarshalWithEncoder

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

func (*VerifyCollection) SetCollectionAccount

func (obj *VerifyCollection) SetCollectionAccount(collection common.PublicKey) *VerifyCollection

SetCollectionAccount sets the "collection" parameter. Metadata Account of the Collection

func (*VerifyCollection) SetCollectionAuthorityAccount

func (obj *VerifyCollection) SetCollectionAuthorityAccount(collectionAuthority common.PublicKey) *VerifyCollection

SetCollectionAuthorityAccount sets the "collectionAuthority" parameter. Collection Update authority

func (*VerifyCollection) SetCollectionAuthorityRecordAccount

func (obj *VerifyCollection) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey, multiSigners ...common.PublicKey) *VerifyCollection

SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA

func (*VerifyCollection) SetCollectionMasterEditionAccountAccount

func (obj *VerifyCollection) SetCollectionMasterEditionAccountAccount(collectionMasterEditionAccount common.PublicKey) *VerifyCollection

SetCollectionMasterEditionAccountAccount sets the "collectionMasterEditionAccount" parameter. MasterEdition2 Account of the Collection Token

func (*VerifyCollection) SetCollectionMintAccount

func (obj *VerifyCollection) SetCollectionMintAccount(collectionMint common.PublicKey) *VerifyCollection

SetCollectionMintAccount sets the "collectionMint" parameter. Mint of the Collection

func (*VerifyCollection) SetMetadataAccount

func (obj *VerifyCollection) SetMetadataAccount(metadata common.PublicKey) *VerifyCollection

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*VerifyCollection) SetPayerAccount

func (obj *VerifyCollection) SetPayerAccount(payer common.PublicKey) *VerifyCollection

SetPayerAccount sets the "payer" parameter. payer

func (*VerifyCollection) SetProgramId

func (obj *VerifyCollection) SetProgramId(programId *common.PublicKey) *VerifyCollection

func (*VerifyCollection) UnmarshalWithDecoder

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

func (*VerifyCollection) Validate

func (obj *VerifyCollection) Validate() error

func (*VerifyCollection) ValidateAndBuild

func (obj *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.

type VerifySizedCollectionItem

type VerifySizedCollectionItem struct {
	// [0] = [WRITE] metadata `Metadata account`
	// [1] = [SIGNER] collectionAuthority `Collection Update authority`
	// [2] = [WRITE, SIGNER] payer `payer`
	// [3] = [] collectionMint `Mint of the Collection`
	// [4] = [WRITE] collection `Metadata Account of the Collection`
	// [5] = [] collectionMasterEditionAccount `MasterEdition2 Account of the Collection Token`
	// [6] = [] collectionAuthorityRecord `Collection Authority Record PDA`
	common.AccountMetaSlice `bin:"-"`
	// contains filtered or unexported fields
}

VerifySizedCollectionItem Instruction

func NewVerifySizedCollectionItemInstruction

func NewVerifySizedCollectionItemInstruction(
	metadata common.PublicKey,
	collectionAuthority common.PublicKey,
	payer common.PublicKey,
	collectionMint common.PublicKey,
	collection common.PublicKey,
	collectionMasterEditionAccount common.PublicKey,
	collectionAuthorityRecord common.PublicKey,
) *VerifySizedCollectionItem

NewVerifySizedCollectionItemInstruction

Parameters:

metadata: Metadata account
collectionAuthority: Collection Update authority
payer: payer
collectionMint: Mint of the Collection
collection: Metadata Account of the Collection
collectionMasterEditionAccount: MasterEdition2 Account of the Collection Token
collectionAuthorityRecord: Collection Authority Record PDA

func NewVerifySizedCollectionItemInstructionBuilder

func NewVerifySizedCollectionItemInstructionBuilder() *VerifySizedCollectionItem

NewVerifySizedCollectionItemInstructionBuilder creates a new `VerifySizedCollectionItem` instruction builder.

func (*VerifySizedCollectionItem) Build

func (obj *VerifySizedCollectionItem) Build() *Instruction

func (*VerifySizedCollectionItem) EncodeToTree

func (obj *VerifySizedCollectionItem) EncodeToTree(parent treeout.Branches)

func (*VerifySizedCollectionItem) GetCollectionAccount

func (obj *VerifySizedCollectionItem) GetCollectionAccount() *common.AccountMeta

GetCollectionAccount gets the "collection" parameter. Metadata Account of the Collection

func (*VerifySizedCollectionItem) GetCollectionAuthorityAccount

func (obj *VerifySizedCollectionItem) GetCollectionAuthorityAccount() *common.AccountMeta

GetCollectionAuthorityAccount gets the "collectionAuthority" parameter. Collection Update authority

func (*VerifySizedCollectionItem) GetCollectionAuthorityRecordAccount

func (obj *VerifySizedCollectionItem) GetCollectionAuthorityRecordAccount() *common.AccountMeta

GetCollectionAuthorityRecordAccount gets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA

func (*VerifySizedCollectionItem) GetCollectionMasterEditionAccountAccount

func (obj *VerifySizedCollectionItem) GetCollectionMasterEditionAccountAccount() *common.AccountMeta

GetCollectionMasterEditionAccountAccount gets the "collectionMasterEditionAccount" parameter. MasterEdition2 Account of the Collection Token

func (*VerifySizedCollectionItem) GetCollectionMintAccount

func (obj *VerifySizedCollectionItem) GetCollectionMintAccount() *common.AccountMeta

GetCollectionMintAccount gets the "collectionMint" parameter. Mint of the Collection

func (*VerifySizedCollectionItem) GetMetadataAccount

func (obj *VerifySizedCollectionItem) GetMetadataAccount() *common.AccountMeta

GetMetadataAccount gets the "metadata" parameter. Metadata account

func (*VerifySizedCollectionItem) GetPayerAccount

func (obj *VerifySizedCollectionItem) GetPayerAccount() *common.AccountMeta

GetPayerAccount gets the "payer" parameter. payer

func (*VerifySizedCollectionItem) MarshalWithEncoder

func (obj *VerifySizedCollectionItem) MarshalWithEncoder(encoder *binary.Encoder) (err error)

func (*VerifySizedCollectionItem) SetCollectionAccount

func (obj *VerifySizedCollectionItem) SetCollectionAccount(collection common.PublicKey) *VerifySizedCollectionItem

SetCollectionAccount sets the "collection" parameter. Metadata Account of the Collection

func (*VerifySizedCollectionItem) SetCollectionAuthorityAccount

func (obj *VerifySizedCollectionItem) SetCollectionAuthorityAccount(collectionAuthority common.PublicKey) *VerifySizedCollectionItem

SetCollectionAuthorityAccount sets the "collectionAuthority" parameter. Collection Update authority

func (*VerifySizedCollectionItem) SetCollectionAuthorityRecordAccount

func (obj *VerifySizedCollectionItem) SetCollectionAuthorityRecordAccount(collectionAuthorityRecord common.PublicKey, multiSigners ...common.PublicKey) *VerifySizedCollectionItem

SetCollectionAuthorityRecordAccount sets the "collectionAuthorityRecord" parameter. Collection Authority Record PDA

func (*VerifySizedCollectionItem) SetCollectionMasterEditionAccountAccount

func (obj *VerifySizedCollectionItem) SetCollectionMasterEditionAccountAccount(collectionMasterEditionAccount common.PublicKey) *VerifySizedCollectionItem

SetCollectionMasterEditionAccountAccount sets the "collectionMasterEditionAccount" parameter. MasterEdition2 Account of the Collection Token

func (*VerifySizedCollectionItem) SetCollectionMintAccount

func (obj *VerifySizedCollectionItem) SetCollectionMintAccount(collectionMint common.PublicKey) *VerifySizedCollectionItem

SetCollectionMintAccount sets the "collectionMint" parameter. Mint of the Collection

func (*VerifySizedCollectionItem) SetMetadataAccount

func (obj *VerifySizedCollectionItem) SetMetadataAccount(metadata common.PublicKey) *VerifySizedCollectionItem

SetMetadataAccount sets the "metadata" parameter. Metadata account

func (*VerifySizedCollectionItem) SetPayerAccount

SetPayerAccount sets the "payer" parameter. payer

func (*VerifySizedCollectionItem) SetProgramId

func (*VerifySizedCollectionItem) UnmarshalWithDecoder

func (obj *VerifySizedCollectionItem) UnmarshalWithDecoder(decoder *binary.Decoder) (err error)

func (*VerifySizedCollectionItem) Validate

func (obj *VerifySizedCollectionItem) Validate() error

func (*VerifySizedCollectionItem) ValidateAndBuild

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