token_metadata

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: MIT Imports: 9 Imported by: 7

Documentation

Index

Constants

View Source
const (
	// Create Metadata object.
	Instruction_CreateMetadataAccount uint8 = iota

	// Update a Metadata
	Instruction_UpdateMetadataAccount

	// Register a Metadata as a Master Edition V1, which means Editions can be minted.
	// Henceforth, no further tokens will be mintable from this primary mint. Will throw an error if more than one
	// token exists, and will throw an error if less than one token exists in this primary mint.
	Instruction_DeprecatedCreateMasterEdition

	// Given an authority token minted by the Printing mint of a master edition, and a brand new non-metadata-ed mint with one token
	// make a new Metadata + Edition that is a child of the master edition denoted by this authority token.
	Instruction_DeprecatedMintNewEditionFromMasterEditionViaPrintingToken

	// Allows updating the primary sale boolean on Metadata solely through owning an account
	// containing a token from the metadata's mint and being a signer on this transaction.
	// A sort of limited authority for limited update capability that is required for things like
	// Metaplex to work without needing full authority passing.
	Instruction_UpdatePrimarySaleHappenedViaToken

	// Reserve up to 200 editions in sequence for up to 200 addresses in an existing reservation PDA, which can then be used later by
	// redeemers who have printing tokens as a reservation to get a specific edition number
	// as opposed to whatever one is currently listed on the master edition. Used by Auction Manager
	// to guarantee printing order on bid redemption. AM will call whenever the first person redeems a
	// printing bid to reserve the whole block
	// of winners in order and then each winner when they get their token submits their mint and account
	// with the pda that was created by that first bidder - the token metadata can then cross reference
	// these people with the list and see that bidder A gets edition #2, so on and so forth.
	//
	// NOTE: If you have more than 20 addresses in a reservation list, this may be called multiple times to build up the list,
	// otherwise, it simply wont fit in one transaction. Only provide a total_reservation argument on the first call, which will
	// allocate the edition space, and in follow up calls this will specifically be unnecessary (and indeed will error.)
	Instruction_DeprecatedSetReservationList

	// Create an empty reservation list for a resource who can come back later as a signer and fill the reservation list
	// with reservations to ensure that people who come to get editions get the number they expect. See SetReservationList for more.
	Instruction_DeprecatedCreateReservationList

	// Sign a piece of metadata that has you as an unverified creator so that it is now verified.
	Instruction_SignMetadata

	// Using a one time authorization token from a master edition v1, print any number of printing tokens from the printing_mint
	// one time, burning the one time authorization token.
	Instruction_DeprecatedMintPrintingTokensViaToken

	// Using your update authority, mint printing tokens for your master edition.
	Instruction_DeprecatedMintPrintingTokens

	// Register a Metadata as a Master Edition V2, which means Edition V2s can be minted.
	// Henceforth, no further tokens will be mintable from this primary mint. Will throw an error if more than one
	// token exists, and will throw an error if less than one token exists in this primary mint.
	Instruction_CreateMasterEdition

	// Given a token account containing the master edition token to prove authority, and a brand new non-metadata-ed mint with one token
	// make a new Metadata + Edition that is a child of the master edition denoted by this authority token.
	Instruction_MintNewEditionFromMasterEditionViaToken

	// Converts the Master Edition V1 to a Master Edition V2, draining lamports from the two printing mints
	// to the owner of the token account holding the master edition token. Permissionless.
	// Can only be called if there are currenly no printing tokens or one time authorization tokens in circulation.
	Instruction_ConvertMasterEditionV1ToV2

	// Proxy Call to Mint Edition using a Store Token Account as a Vault Authority.
	Instruction_MintNewEditionFromMasterEditionViaVaultProxy

	// Puff a Metadata - make all of it's variable length fields (name/uri/symbol) a fixed length using a null character
	// so that it can be found using offset searches by the RPC to make client lookups cheaper.
	Instruction_PuffMetadata

	// Update a Metadata with is_mutable as a parameter
	Instruction_UpdateMetadataAccountV2

	// Create Metadata object.
	Instruction_CreateMetadataAccountV2

	// Register a Metadata as a Master Edition V2, which means Edition V2s can be minted.
	// Henceforth, no further tokens will be mintable from this primary mint. Will throw an error if more than one
	// token exists, and will throw an error if less than one token exists in this primary mint.
	Instruction_CreateMasterEditionV3

	// If a MetadataAccount Has a Collection allow the UpdateAuthority of the Collection to Verify the NFT Belongs in the Collection
	Instruction_VerifyCollection

	// Utilize or Use an NFT , burns the NFT and returns the lamports to the update authority if the use method is burn and its out of uses.
	// Use Authority can be the Holder of the NFT, or a Delegated Use Authority.
	Instruction_Utilize

	// Approve another account to call `utilize` on this NFT
	Instruction_ApproveUseAuthority

	// Revoke account to call `utilize` on this NFT
	Instruction_RevokeUseAuthority

	// If a MetadataAccount Has a Collection allow an Authority of the Collection to unverify an NFT in a Collection
	Instruction_UnverifyCollection

	// Approve another account to verify nfts beloging to a collection, [verify_collection] on the collection NFT
	Instruction_ApproveCollectionAuthority

	// Revoke account to call [verify_collection] on this NFT
	Instruction_RevokeCollectionAuthority
)
View Source
const EDITION = "edition"

/ Used in seeds to make Edition model pda address

View Source
const EDITION_MARKER_BIT_SIZE = 248
View Source
const MAX_CREATOR_LEN = 32 + 1 + 1
View Source
const MAX_CREATOR_LIMIT = 5
View Source
const MAX_EDITION_LEN = 1 + 32 + 8 + 200
View Source
const MAX_EDITION_MARKER_SIZE = 32
View Source
const MAX_MASTER_EDITION_LEN = 1 + 9 + 8 + 264
View Source
const MAX_METADATA_LEN = 1 + 32 + 32 + MAX_DATA_SIZE + 1 + 1 + 9 + 172
View Source
const MAX_NAME_LENGTH = 32
View Source
const MAX_RESERVATIONS = 200
View Source
const MAX_RESERVATION_LIST_SIZE = 1 + 32 + 8 + 8 + MAX_RESERVATIONS*48 + 8 + 8 + 84
View Source
const MAX_RESERVATION_LIST_V1_SIZE = 1 + 32 + 8 + 8 + MAX_RESERVATIONS*34 + 100
View Source
const MAX_SYMBOL_LENGTH = 10
View Source
const MAX_URI_LENGTH = 200
View Source
const PREFIX = "metadata"

/ prefix used for PDAs to avoid certain collision attacks (https://en.wikipedia.org/wiki/Collision_attack#Chosen-prefix_collision_attack)

View Source
const ProgramName = "TokenMetadata"
View Source
const RESERVATION = "reservation"

Variables

View Source
var InstructionImplDef = ag_binary.NewVariantDefinition(
	ag_binary.Uint8TypeIDEncoding,
	[]ag_binary.VariantType{
		{
			"CreateMetadataAccount", (*CreateMetadataAccount)(nil),
		},
		{
			"UpdateMetadataAccount", (*UpdateMetadataAccount)(nil),
		},
		{
			"DeprecatedCreateMasterEdition", (*DeprecatedCreateMasterEdition)(nil),
		},
		{
			"DeprecatedMintNewEditionFromMasterEditionViaPrintingToken", (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken)(nil),
		},
		{
			"UpdatePrimarySaleHappenedViaToken", (*UpdatePrimarySaleHappenedViaToken)(nil),
		},
		{
			"DeprecatedSetReservationList", (*DeprecatedSetReservationList)(nil),
		},
		{
			"DeprecatedCreateReservationList", (*DeprecatedCreateReservationList)(nil),
		},
		{
			"SignMetadata", (*SignMetadata)(nil),
		},
		{
			"DeprecatedMintPrintingTokensViaToken", (*DeprecatedMintPrintingTokensViaToken)(nil),
		},
		{
			"DeprecatedMintPrintingTokens", (*DeprecatedMintPrintingTokens)(nil),
		},
		{
			"CreateMasterEdition", (*CreateMasterEdition)(nil),
		},
		{
			"MintNewEditionFromMasterEditionViaToken", (*MintNewEditionFromMasterEditionViaToken)(nil),
		},
		{
			"ConvertMasterEditionV1ToV2", (*ConvertMasterEditionV1ToV2)(nil),
		},
		{
			"MintNewEditionFromMasterEditionViaVaultProxy", (*MintNewEditionFromMasterEditionViaVaultProxy)(nil),
		},
		{
			"PuffMetadata", (*PuffMetadata)(nil),
		},
		{
			"UpdateMetadataAccountV2", (*UpdateMetadataAccountV2)(nil),
		},
		{
			"CreateMetadataAccountV2", (*CreateMetadataAccountV2)(nil),
		},
		{
			"CreateMasterEditionV3", (*CreateMasterEditionV3)(nil),
		},
		{
			"VerifyCollection", (*VerifyCollection)(nil),
		},
		{
			"Utilize", (*Utilize)(nil),
		},
		{
			"ApproveUseAuthority", (*ApproveUseAuthority)(nil),
		},
		{
			"RevokeUseAuthority", (*RevokeUseAuthority)(nil),
		},
		{
			"UnverifyCollection", (*UnverifyCollection)(nil),
		},
		{
			"ApproveCollectionAuthority", (*ApproveCollectionAuthority)(nil),
		},
		{
			"RevokeCollectionAuthority", (*RevokeCollectionAuthority)(nil),
		},
	},
)
View Source
var ProgramID ag_solanago.PublicKey = ag_solanago.MustPublicKeyFromBase58("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")

Functions

func InstructionIDToName

func InstructionIDToName(id uint8) string

InstructionIDToName returns the name of the instruction given its ID.

func SetProgramID

func SetProgramID(pubkey ag_solanago.PublicKey)

Types

type ApproveCollectionAuthority added in v0.2.0

type ApproveCollectionAuthority struct {

	// [0] = [WRITE] collectionAuthorityRecordPDA
	// ··········· Collection Authority Record PDA
	//
	// [1] = [SIGNER] collectionUpdateAuthority
	// ··········· Update Authority of Collection NFT
	//
	// [2] = [SIGNER] payer
	// ··········· Payer
	//
	// [3] = [] collectionAuthority
	// ··········· A Collection Authority
	//
	// [4] = [] collectionMetadata
	// ··········· Collection Metadata account
	//
	// [5] = [] collectionMint
	// ··········· Mint of Collection Metadata
	//
	// [6] = [] tokenProgram
	// ··········· Token program
	//
	// [7] = [] system
	// ··········· System program
	//
	// [8] = [] rent
	// ··········· Rent info
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Approve another account to verify nfts beloging to a collection, [verify_collection] on the collection NFT

func NewApproveCollectionAuthorityInstruction added in v0.2.0

func NewApproveCollectionAuthorityInstruction(

	collectionAuthorityRecordPDA ag_solanago.PublicKey,
	collectionUpdateAuthority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	collectionAuthority ag_solanago.PublicKey,
	collectionMetadata ag_solanago.PublicKey,
	collectionMint ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	system ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *ApproveCollectionAuthority

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

func NewApproveCollectionAuthorityInstructionBuilder added in v0.2.0

func NewApproveCollectionAuthorityInstructionBuilder() *ApproveCollectionAuthority

NewApproveCollectionAuthorityInstructionBuilder creates a new `ApproveCollectionAuthority` instruction builder.

func (ApproveCollectionAuthority) Build added in v0.2.0

func (*ApproveCollectionAuthority) EncodeToTree added in v0.2.0

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

func (*ApproveCollectionAuthority) GetCollectionAuthorityAccount added in v0.2.0

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

GetCollectionAuthorityAccount gets the "collectionAuthority" account. A Collection Authority

func (*ApproveCollectionAuthority) GetCollectionAuthorityRecordPDAAccount added in v0.2.0

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

GetCollectionAuthorityRecordPDAAccount gets the "collectionAuthorityRecordPDA" account. Collection Authority Record PDA

func (*ApproveCollectionAuthority) GetCollectionMetadataAccount added in v0.2.0

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

GetCollectionMetadataAccount gets the "collectionMetadata" account. Collection Metadata account

func (*ApproveCollectionAuthority) GetCollectionMintAccount added in v0.2.0

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

GetCollectionMintAccount gets the "collectionMint" account. Mint of Collection Metadata

func (*ApproveCollectionAuthority) GetCollectionUpdateAuthorityAccount added in v0.2.0

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

GetCollectionUpdateAuthorityAccount gets the "collectionUpdateAuthority" account. Update Authority of Collection NFT

func (*ApproveCollectionAuthority) GetPayerAccount added in v0.2.0

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

GetPayerAccount gets the "payer" account. Payer

func (*ApproveCollectionAuthority) GetRentAccount added in v0.2.0

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

GetRentAccount gets the "rent" account. Rent info

func (*ApproveCollectionAuthority) GetSystemAccount added in v0.2.0

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

GetSystemAccount gets the "system" account. System program

func (*ApproveCollectionAuthority) GetTokenProgramAccount added in v0.2.0

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

GetTokenProgramAccount gets the "tokenProgram" account. Token program

func (ApproveCollectionAuthority) MarshalWithEncoder added in v0.2.0

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

func (*ApproveCollectionAuthority) SetCollectionAuthorityAccount added in v0.2.0

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

SetCollectionAuthorityAccount sets the "collectionAuthority" account. A Collection Authority

func (*ApproveCollectionAuthority) SetCollectionAuthorityRecordPDAAccount added in v0.2.0

func (inst *ApproveCollectionAuthority) SetCollectionAuthorityRecordPDAAccount(collectionAuthorityRecordPDA ag_solanago.PublicKey) *ApproveCollectionAuthority

SetCollectionAuthorityRecordPDAAccount sets the "collectionAuthorityRecordPDA" account. Collection Authority Record PDA

func (*ApproveCollectionAuthority) SetCollectionMetadataAccount added in v0.2.0

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

SetCollectionMetadataAccount sets the "collectionMetadata" account. Collection Metadata account

func (*ApproveCollectionAuthority) SetCollectionMintAccount added in v0.2.0

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

SetCollectionMintAccount sets the "collectionMint" account. Mint of Collection Metadata

func (*ApproveCollectionAuthority) SetCollectionUpdateAuthorityAccount added in v0.2.0

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

SetCollectionUpdateAuthorityAccount sets the "collectionUpdateAuthority" account. Update Authority of Collection NFT

func (*ApproveCollectionAuthority) SetPayerAccount added in v0.2.0

SetPayerAccount sets the "payer" account. Payer

func (*ApproveCollectionAuthority) SetRentAccount added in v0.2.0

SetRentAccount sets the "rent" account. Rent info

func (*ApproveCollectionAuthority) SetSystemAccount added in v0.2.0

SetSystemAccount sets the "system" account. System program

func (*ApproveCollectionAuthority) SetTokenProgramAccount added in v0.2.0

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

SetTokenProgramAccount sets the "tokenProgram" account. Token program

func (*ApproveCollectionAuthority) UnmarshalWithDecoder added in v0.2.0

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

func (*ApproveCollectionAuthority) Validate added in v0.2.0

func (inst *ApproveCollectionAuthority) Validate() error

func (ApproveCollectionAuthority) ValidateAndBuild added in v0.2.0

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

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

type ApproveUseAuthority added in v0.2.0

type ApproveUseAuthority struct {
	Args *ApproveUseAuthorityArgs

	// [0] = [WRITE] useAuthorityRecordPDA
	// ··········· Use Authority Record PDA
	//
	// [1] = [WRITE] ownedToken
	// ··········· Owned Token Account Of Mint
	//
	// [2] = [SIGNER] owner
	// ··········· Owner
	//
	// [3] = [SIGNER] payer
	// ··········· Payer
	//
	// [4] = [] useAuthority
	// ··········· A Use Authority
	//
	// [5] = [] metadata
	// ··········· Metadata account
	//
	// [6] = [] metadataMint
	// ··········· Mint of Metadata
	//
	// [7] = [] programAsSigner
	// ··········· Program As Signer (Burner)
	//
	// [8] = [] tokenProgram
	// ··········· Token program
	//
	// [9] = [] system
	// ··········· System program
	//
	// [10] = [] rent
	// ··········· Rent info
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Approve another account to call `utilize` on this NFT

func NewApproveUseAuthorityInstruction added in v0.2.0

func NewApproveUseAuthorityInstruction(

	args ApproveUseAuthorityArgs,

	useAuthorityRecordPDA ag_solanago.PublicKey,
	ownedToken ag_solanago.PublicKey,
	owner ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	useAuthority ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	metadataMint ag_solanago.PublicKey,
	programAsSigner ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	system ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *ApproveUseAuthority

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

func NewApproveUseAuthorityInstructionBuilder added in v0.2.0

func NewApproveUseAuthorityInstructionBuilder() *ApproveUseAuthority

NewApproveUseAuthorityInstructionBuilder creates a new `ApproveUseAuthority` instruction builder.

func (ApproveUseAuthority) Build added in v0.2.0

func (inst ApproveUseAuthority) Build() *Instruction

func (*ApproveUseAuthority) EncodeToTree added in v0.2.0

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

func (*ApproveUseAuthority) GetMetadataAccount added in v0.2.0

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

GetMetadataAccount gets the "metadata" account. Metadata account

func (*ApproveUseAuthority) GetMetadataMintAccount added in v0.2.0

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

GetMetadataMintAccount gets the "metadataMint" account. Mint of Metadata

func (*ApproveUseAuthority) GetOwnedTokenAccount added in v0.2.0

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

GetOwnedTokenAccount gets the "ownedToken" account. Owned Token Account Of Mint

func (*ApproveUseAuthority) GetOwnerAccount added in v0.2.0

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

GetOwnerAccount gets the "owner" account. Owner

func (*ApproveUseAuthority) GetPayerAccount added in v0.2.0

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

GetPayerAccount gets the "payer" account. Payer

func (*ApproveUseAuthority) GetProgramAsSignerAccount added in v0.2.0

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

GetProgramAsSignerAccount gets the "programAsSigner" account. Program As Signer (Burner)

func (*ApproveUseAuthority) GetRentAccount added in v0.2.0

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

GetRentAccount gets the "rent" account. Rent info

func (*ApproveUseAuthority) GetSystemAccount added in v0.2.0

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

GetSystemAccount gets the "system" account. System program

func (*ApproveUseAuthority) GetTokenProgramAccount added in v0.2.0

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

GetTokenProgramAccount gets the "tokenProgram" account. Token program

func (*ApproveUseAuthority) GetUseAuthorityAccount added in v0.2.0

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

GetUseAuthorityAccount gets the "useAuthority" account. A Use Authority

func (*ApproveUseAuthority) GetUseAuthorityRecordPDAAccount added in v0.2.0

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

GetUseAuthorityRecordPDAAccount gets the "useAuthorityRecordPDA" account. Use Authority Record PDA

func (ApproveUseAuthority) MarshalWithEncoder added in v0.2.0

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

func (*ApproveUseAuthority) SetArgs added in v0.2.0

SetArgs sets the "args" parameter.

func (*ApproveUseAuthority) SetMetadataAccount added in v0.2.0

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

SetMetadataAccount sets the "metadata" account. Metadata account

func (*ApproveUseAuthority) SetMetadataMintAccount added in v0.2.0

func (inst *ApproveUseAuthority) SetMetadataMintAccount(metadataMint ag_solanago.PublicKey) *ApproveUseAuthority

SetMetadataMintAccount sets the "metadataMint" account. Mint of Metadata

func (*ApproveUseAuthority) SetOwnedTokenAccount added in v0.2.0

func (inst *ApproveUseAuthority) SetOwnedTokenAccount(ownedToken ag_solanago.PublicKey) *ApproveUseAuthority

SetOwnedTokenAccount sets the "ownedToken" account. Owned Token Account Of Mint

func (*ApproveUseAuthority) SetOwnerAccount added in v0.2.0

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

SetOwnerAccount sets the "owner" account. Owner

func (*ApproveUseAuthority) SetPayerAccount added in v0.2.0

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

SetPayerAccount sets the "payer" account. Payer

func (*ApproveUseAuthority) SetProgramAsSignerAccount added in v0.2.0

func (inst *ApproveUseAuthority) SetProgramAsSignerAccount(programAsSigner ag_solanago.PublicKey) *ApproveUseAuthority

SetProgramAsSignerAccount sets the "programAsSigner" account. Program As Signer (Burner)

func (*ApproveUseAuthority) SetRentAccount added in v0.2.0

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

SetRentAccount sets the "rent" account. Rent info

func (*ApproveUseAuthority) SetSystemAccount added in v0.2.0

func (inst *ApproveUseAuthority) SetSystemAccount(system ag_solanago.PublicKey) *ApproveUseAuthority

SetSystemAccount sets the "system" account. System program

func (*ApproveUseAuthority) SetTokenProgramAccount added in v0.2.0

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

SetTokenProgramAccount sets the "tokenProgram" account. Token program

func (*ApproveUseAuthority) SetUseAuthorityAccount added in v0.2.0

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

SetUseAuthorityAccount sets the "useAuthority" account. A Use Authority

func (*ApproveUseAuthority) SetUseAuthorityRecordPDAAccount added in v0.2.0

func (inst *ApproveUseAuthority) SetUseAuthorityRecordPDAAccount(useAuthorityRecordPDA ag_solanago.PublicKey) *ApproveUseAuthority

SetUseAuthorityRecordPDAAccount sets the "useAuthorityRecordPDA" account. Use Authority Record PDA

func (*ApproveUseAuthority) UnmarshalWithDecoder added in v0.2.0

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

func (*ApproveUseAuthority) Validate added in v0.2.0

func (inst *ApproveUseAuthority) Validate() error

func (ApproveUseAuthority) ValidateAndBuild added in v0.2.0

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

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

type ApproveUseAuthorityArgs added in v0.2.0

type ApproveUseAuthorityArgs struct {
	NumberOfUses uint64
}

func (ApproveUseAuthorityArgs) MarshalWithEncoder added in v0.2.0

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

func (*ApproveUseAuthorityArgs) UnmarshalWithDecoder added in v0.2.0

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

type Collection added in v0.2.0

type Collection struct {
	Verified bool
	Key      ag_solanago.PublicKey
}

func (Collection) MarshalWithEncoder added in v0.2.0

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

func (*Collection) UnmarshalWithDecoder added in v0.2.0

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

type CollectionAuthorityRecord added in v0.2.0

type CollectionAuthorityRecord struct {
	Key Key
}

func (CollectionAuthorityRecord) MarshalWithEncoder added in v0.2.0

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

func (*CollectionAuthorityRecord) UnmarshalWithDecoder added in v0.2.0

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

type ConvertMasterEditionV1ToV2

type ConvertMasterEditionV1ToV2 struct {

	// [0] = [WRITE] masterRecordEditionV1
	// ··········· Master Record Edition V1 (pda of ['metadata', program id, master metadata mint id, 'edition'])
	//
	// [1] = [WRITE] oneTimeAuthorizationMint
	// ··········· One time authorization mint
	//
	// [2] = [WRITE] printingMint
	// ··········· Printing mint
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Converts the Master Edition V1 to a Master Edition V2, draining lamports from the two printing mints to the owner of the token account holding the master edition token. Permissionless. Can only be called if there are currenly no printing tokens or one time authorization tokens in circulation.

func NewConvertMasterEditionV1ToV2Instruction

func NewConvertMasterEditionV1ToV2Instruction(

	masterRecordEditionV1 ag_solanago.PublicKey,
	oneTimeAuthorizationMint ag_solanago.PublicKey,
	printingMint ag_solanago.PublicKey) *ConvertMasterEditionV1ToV2

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

func NewConvertMasterEditionV1ToV2InstructionBuilder

func NewConvertMasterEditionV1ToV2InstructionBuilder() *ConvertMasterEditionV1ToV2

NewConvertMasterEditionV1ToV2InstructionBuilder creates a new `ConvertMasterEditionV1ToV2` instruction builder.

func (ConvertMasterEditionV1ToV2) Build

func (*ConvertMasterEditionV1ToV2) EncodeToTree

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

func (*ConvertMasterEditionV1ToV2) GetMasterRecordEditionV1Account

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

GetMasterRecordEditionV1Account gets the "masterRecordEditionV1" account. Master Record Edition V1 (pda of ['metadata', program id, master metadata mint id, 'edition'])

func (*ConvertMasterEditionV1ToV2) GetOneTimeAuthorizationMintAccount

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

GetOneTimeAuthorizationMintAccount gets the "oneTimeAuthorizationMint" account. One time authorization mint

func (*ConvertMasterEditionV1ToV2) GetPrintingMintAccount

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

GetPrintingMintAccount gets the "printingMint" account. Printing mint

func (ConvertMasterEditionV1ToV2) MarshalWithEncoder

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

func (*ConvertMasterEditionV1ToV2) SetMasterRecordEditionV1Account

func (inst *ConvertMasterEditionV1ToV2) SetMasterRecordEditionV1Account(masterRecordEditionV1 ag_solanago.PublicKey) *ConvertMasterEditionV1ToV2

SetMasterRecordEditionV1Account sets the "masterRecordEditionV1" account. Master Record Edition V1 (pda of ['metadata', program id, master metadata mint id, 'edition'])

func (*ConvertMasterEditionV1ToV2) SetOneTimeAuthorizationMintAccount

func (inst *ConvertMasterEditionV1ToV2) SetOneTimeAuthorizationMintAccount(oneTimeAuthorizationMint ag_solanago.PublicKey) *ConvertMasterEditionV1ToV2

SetOneTimeAuthorizationMintAccount sets the "oneTimeAuthorizationMint" account. One time authorization mint

func (*ConvertMasterEditionV1ToV2) SetPrintingMintAccount

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

SetPrintingMintAccount sets the "printingMint" account. Printing mint

func (*ConvertMasterEditionV1ToV2) UnmarshalWithDecoder

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

func (*ConvertMasterEditionV1ToV2) Validate

func (inst *ConvertMasterEditionV1ToV2) Validate() error

func (ConvertMasterEditionV1ToV2) ValidateAndBuild

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

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

type CreateMasterEdition

type CreateMasterEdition struct {
	Args *CreateMasterEditionArgs

	// [0] = [WRITE] unallocatedEditionV2
	// ··········· Unallocated edition V2 account with address as pda of ['metadata', program id, mint, 'edition']
	//
	// [1] = [WRITE] metadataMint
	// ··········· 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] = [SIGNER] payer
	// ··········· payer
	//
	// [5] = [] metadata
	// ··········· Metadata account
	//
	// [6] = [] tokenProgram
	// ··········· Token program
	//
	// [7] = [] system
	// ··········· System program
	//
	// [8] = [] rent
	// ··········· Rent info
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Register a Metadata as a Master Edition V2, which means Edition V2s can be minted. Henceforth, no further tokens will be mintable from this primary mint. Will throw an error if more than one token exists, and will throw an error if less than one token exists in this primary mint.

func NewCreateMasterEditionInstruction

func NewCreateMasterEditionInstruction(

	args CreateMasterEditionArgs,

	unallocatedEditionV2 ag_solanago.PublicKey,
	metadataMint ag_solanago.PublicKey,
	updateAuthority ag_solanago.PublicKey,
	mintAuthority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	system ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *CreateMasterEdition

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

func NewCreateMasterEditionInstructionBuilder

func NewCreateMasterEditionInstructionBuilder() *CreateMasterEdition

NewCreateMasterEditionInstructionBuilder creates a new `CreateMasterEdition` instruction builder.

func (CreateMasterEdition) Build

func (inst CreateMasterEdition) Build() *Instruction

func (*CreateMasterEdition) EncodeToTree

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

func (*CreateMasterEdition) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account. Metadata account

func (*CreateMasterEdition) GetMetadataMintAccount

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

GetMetadataMintAccount gets the "metadataMint" account. Metadata mint

func (*CreateMasterEdition) GetMintAuthorityAccount

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

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

func (*CreateMasterEdition) GetPayerAccount

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

GetPayerAccount gets the "payer" account. payer

func (*CreateMasterEdition) GetRentAccount added in v0.2.0

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

GetRentAccount gets the "rent" account. Rent info

func (*CreateMasterEdition) GetSystemAccount added in v0.2.0

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

GetSystemAccount gets the "system" account. System program

func (*CreateMasterEdition) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account. Token program

func (*CreateMasterEdition) GetUnallocatedEditionV2Account

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

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

func (*CreateMasterEdition) GetUpdateAuthorityAccount

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

GetUpdateAuthorityAccount gets the "updateAuthority" account. Update authority

func (CreateMasterEdition) MarshalWithEncoder

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

func (*CreateMasterEdition) SetArgs

SetArgs sets the "args" parameter.

func (*CreateMasterEdition) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account. Metadata account

func (*CreateMasterEdition) SetMetadataMintAccount

func (inst *CreateMasterEdition) SetMetadataMintAccount(metadataMint ag_solanago.PublicKey) *CreateMasterEdition

SetMetadataMintAccount sets the "metadataMint" account. Metadata mint

func (*CreateMasterEdition) SetMintAuthorityAccount

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

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

func (*CreateMasterEdition) SetPayerAccount

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

SetPayerAccount sets the "payer" account. payer

func (*CreateMasterEdition) SetRentAccount added in v0.2.0

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

SetRentAccount sets the "rent" account. Rent info

func (*CreateMasterEdition) SetSystemAccount added in v0.2.0

func (inst *CreateMasterEdition) SetSystemAccount(system ag_solanago.PublicKey) *CreateMasterEdition

SetSystemAccount sets the "system" account. System program

func (*CreateMasterEdition) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account. Token program

func (*CreateMasterEdition) SetUnallocatedEditionV2Account

func (inst *CreateMasterEdition) SetUnallocatedEditionV2Account(unallocatedEditionV2 ag_solanago.PublicKey) *CreateMasterEdition

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

func (*CreateMasterEdition) SetUpdateAuthorityAccount

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

SetUpdateAuthorityAccount sets the "updateAuthority" account. Update authority

func (*CreateMasterEdition) UnmarshalWithDecoder

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

func (*CreateMasterEdition) Validate

func (inst *CreateMasterEdition) Validate() error

func (CreateMasterEdition) ValidateAndBuild

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

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

type CreateMasterEditionArgs

type CreateMasterEditionArgs struct {
	// If set, means that no more than this number of editions can ever be minted. This is immutable.
	MaxSupply *uint64 `bin:"optional"`
}

func (CreateMasterEditionArgs) MarshalWithEncoder

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

func (*CreateMasterEditionArgs) UnmarshalWithDecoder

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

type CreateMasterEditionV3 added in v0.2.0

type CreateMasterEditionV3 struct {
	Args *CreateMasterEditionArgs

	// [0] = [WRITE] unallocatedEditionV2
	// ··········· Unallocated edition V2 account with address as pda of ['metadata', program id, mint, 'edition']
	//
	// [1] = [WRITE] metadataMint
	// ··········· 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] = [SIGNER] payer
	// ··········· payer
	//
	// [5] = [WRITE] metadata
	// ··········· Metadata account
	//
	// [6] = [] tokenProgram
	// ··········· Token program
	//
	// [7] = [] system
	// ··········· System program
	//
	// [8] = [] rent
	// ··········· Rent info
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Register a Metadata as a Master Edition V2, which means Edition V2s can be minted. Henceforth, no further tokens will be mintable from this primary mint. Will throw an error if more than one token exists, and will throw an error if less than one token exists in this primary mint.

func NewCreateMasterEditionV3Instruction added in v0.2.0

func NewCreateMasterEditionV3Instruction(

	args CreateMasterEditionArgs,

	unallocatedEditionV2 ag_solanago.PublicKey,
	metadataMint ag_solanago.PublicKey,
	updateAuthority ag_solanago.PublicKey,
	mintAuthority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	system ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *CreateMasterEditionV3

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

func NewCreateMasterEditionV3InstructionBuilder added in v0.2.0

func NewCreateMasterEditionV3InstructionBuilder() *CreateMasterEditionV3

NewCreateMasterEditionV3InstructionBuilder creates a new `CreateMasterEditionV3` instruction builder.

func (CreateMasterEditionV3) Build added in v0.2.0

func (inst CreateMasterEditionV3) Build() *Instruction

func (*CreateMasterEditionV3) EncodeToTree added in v0.2.0

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

func (*CreateMasterEditionV3) GetMetadataAccount added in v0.2.0

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

GetMetadataAccount gets the "metadata" account. Metadata account

func (*CreateMasterEditionV3) GetMetadataMintAccount added in v0.2.0

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

GetMetadataMintAccount gets the "metadataMint" account. Metadata mint

func (*CreateMasterEditionV3) GetMintAuthorityAccount added in v0.2.0

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

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

func (*CreateMasterEditionV3) GetPayerAccount added in v0.2.0

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

GetPayerAccount gets the "payer" account. payer

func (*CreateMasterEditionV3) GetRentAccount added in v0.2.0

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

GetRentAccount gets the "rent" account. Rent info

func (*CreateMasterEditionV3) GetSystemAccount added in v0.2.0

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

GetSystemAccount gets the "system" account. System program

func (*CreateMasterEditionV3) GetTokenProgramAccount added in v0.2.0

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

GetTokenProgramAccount gets the "tokenProgram" account. Token program

func (*CreateMasterEditionV3) GetUnallocatedEditionV2Account added in v0.2.0

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

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

func (*CreateMasterEditionV3) GetUpdateAuthorityAccount added in v0.2.0

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

GetUpdateAuthorityAccount gets the "updateAuthority" account. Update authority

func (CreateMasterEditionV3) MarshalWithEncoder added in v0.2.0

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

func (*CreateMasterEditionV3) SetArgs added in v0.2.0

SetArgs sets the "args" parameter.

func (*CreateMasterEditionV3) SetMetadataAccount added in v0.2.0

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

SetMetadataAccount sets the "metadata" account. Metadata account

func (*CreateMasterEditionV3) SetMetadataMintAccount added in v0.2.0

func (inst *CreateMasterEditionV3) SetMetadataMintAccount(metadataMint ag_solanago.PublicKey) *CreateMasterEditionV3

SetMetadataMintAccount sets the "metadataMint" account. Metadata mint

func (*CreateMasterEditionV3) SetMintAuthorityAccount added in v0.2.0

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

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

func (*CreateMasterEditionV3) SetPayerAccount added in v0.2.0

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

SetPayerAccount sets the "payer" account. payer

func (*CreateMasterEditionV3) SetRentAccount added in v0.2.0

SetRentAccount sets the "rent" account. Rent info

func (*CreateMasterEditionV3) SetSystemAccount added in v0.2.0

func (inst *CreateMasterEditionV3) SetSystemAccount(system ag_solanago.PublicKey) *CreateMasterEditionV3

SetSystemAccount sets the "system" account. System program

func (*CreateMasterEditionV3) SetTokenProgramAccount added in v0.2.0

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

SetTokenProgramAccount sets the "tokenProgram" account. Token program

func (*CreateMasterEditionV3) SetUnallocatedEditionV2Account added in v0.2.0

func (inst *CreateMasterEditionV3) SetUnallocatedEditionV2Account(unallocatedEditionV2 ag_solanago.PublicKey) *CreateMasterEditionV3

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

func (*CreateMasterEditionV3) SetUpdateAuthorityAccount added in v0.2.0

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

SetUpdateAuthorityAccount sets the "updateAuthority" account. Update authority

func (*CreateMasterEditionV3) UnmarshalWithDecoder added in v0.2.0

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

func (*CreateMasterEditionV3) Validate added in v0.2.0

func (inst *CreateMasterEditionV3) Validate() error

func (CreateMasterEditionV3) ValidateAndBuild added in v0.2.0

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

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

type CreateMetadataAccount

type CreateMetadataAccount struct {
	Args *CreateMetadataAccountArgs

	// [0] = [WRITE] metadataKeyPDA
	// ··········· Metadata key (pda of ['metadata', program id, mint id])
	//
	// [1] = [] mintOfToken
	// ··········· Mint of token asset
	//
	// [2] = [SIGNER] mintAuthority
	// ··········· Mint authority
	//
	// [3] = [SIGNER] payer
	// ··········· payer
	//
	// [4] = [] updateAuthorityInfo
	// ··········· update authority info
	//
	// [5] = [] system
	// ··········· System program
	//
	// [6] = [] rent
	// ··········· Rent info
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Create Metadata object.

func NewCreateMetadataAccountInstruction

func NewCreateMetadataAccountInstruction(

	args CreateMetadataAccountArgs,

	metadataKeyPDA ag_solanago.PublicKey,
	mintOfToken ag_solanago.PublicKey,
	mintAuthority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	updateAuthorityInfo ag_solanago.PublicKey,
	system ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *CreateMetadataAccount

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

func NewCreateMetadataAccountInstructionBuilder

func NewCreateMetadataAccountInstructionBuilder() *CreateMetadataAccount

NewCreateMetadataAccountInstructionBuilder creates a new `CreateMetadataAccount` instruction builder.

func (CreateMetadataAccount) Build

func (inst CreateMetadataAccount) Build() *Instruction

func (*CreateMetadataAccount) EncodeToTree

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

func (*CreateMetadataAccount) GetMetadataKeyPDAAccount

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

GetMetadataKeyPDAAccount gets the "metadataKeyPDA" account. Metadata key (pda of ['metadata', program id, mint id])

func (*CreateMetadataAccount) GetMintAuthorityAccount

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

GetMintAuthorityAccount gets the "mintAuthority" account. Mint authority

func (*CreateMetadataAccount) GetMintOfTokenAccount

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

GetMintOfTokenAccount gets the "mintOfToken" account. Mint of token asset

func (*CreateMetadataAccount) GetPayerAccount

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

GetPayerAccount gets the "payer" account. payer

func (*CreateMetadataAccount) GetRentAccount added in v0.2.0

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

GetRentAccount gets the "rent" account. Rent info

func (*CreateMetadataAccount) GetSystemAccount added in v0.2.0

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

GetSystemAccount gets the "system" account. System program

func (*CreateMetadataAccount) GetUpdateAuthorityInfoAccount

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

GetUpdateAuthorityInfoAccount gets the "updateAuthorityInfo" account. update authority info

func (CreateMetadataAccount) MarshalWithEncoder

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

func (*CreateMetadataAccount) SetArgs

SetArgs sets the "args" parameter.

func (*CreateMetadataAccount) SetMetadataKeyPDAAccount

func (inst *CreateMetadataAccount) SetMetadataKeyPDAAccount(metadataKeyPDA ag_solanago.PublicKey) *CreateMetadataAccount

SetMetadataKeyPDAAccount sets the "metadataKeyPDA" account. Metadata key (pda of ['metadata', program id, mint id])

func (*CreateMetadataAccount) SetMintAuthorityAccount

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

SetMintAuthorityAccount sets the "mintAuthority" account. Mint authority

func (*CreateMetadataAccount) SetMintOfTokenAccount

func (inst *CreateMetadataAccount) SetMintOfTokenAccount(mintOfToken ag_solanago.PublicKey) *CreateMetadataAccount

SetMintOfTokenAccount sets the "mintOfToken" account. Mint of token asset

func (*CreateMetadataAccount) SetPayerAccount

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

SetPayerAccount sets the "payer" account. payer

func (*CreateMetadataAccount) SetRentAccount added in v0.2.0

SetRentAccount sets the "rent" account. Rent info

func (*CreateMetadataAccount) SetSystemAccount added in v0.2.0

func (inst *CreateMetadataAccount) SetSystemAccount(system ag_solanago.PublicKey) *CreateMetadataAccount

SetSystemAccount sets the "system" account. System program

func (*CreateMetadataAccount) SetUpdateAuthorityInfoAccount

func (inst *CreateMetadataAccount) SetUpdateAuthorityInfoAccount(updateAuthorityInfo ag_solanago.PublicKey) *CreateMetadataAccount

SetUpdateAuthorityInfoAccount sets the "updateAuthorityInfo" account. update authority info

func (*CreateMetadataAccount) UnmarshalWithDecoder

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

func (*CreateMetadataAccount) Validate

func (inst *CreateMetadataAccount) Validate() error

func (CreateMetadataAccount) ValidateAndBuild

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

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

type CreateMetadataAccountArgs

type CreateMetadataAccountArgs struct {
	// Note that unique metadatas are disabled for now.
	Data Data

	// Whether you want your metadata to be updateable in the future.
	IsMutable bool
}

func (CreateMetadataAccountArgs) MarshalWithEncoder

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

func (*CreateMetadataAccountArgs) UnmarshalWithDecoder

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

type CreateMetadataAccountArgsV2 added in v0.2.0

type CreateMetadataAccountArgsV2 struct {
	// Note that unique metadatas are disabled for now.
	Data DataV2

	// Whether you want your metadata to be updateable in the future.
	IsMutable bool
}

func (CreateMetadataAccountArgsV2) MarshalWithEncoder added in v0.2.0

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

func (*CreateMetadataAccountArgsV2) UnmarshalWithDecoder added in v0.2.0

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

type CreateMetadataAccountV2 added in v0.2.0

type CreateMetadataAccountV2 struct {
	Args *CreateMetadataAccountArgsV2

	// [0] = [WRITE] metadataKeyPDA
	// ··········· Metadata key (pda of ['metadata', program id, mint id])
	//
	// [1] = [] mintOfToken
	// ··········· Mint of token asset
	//
	// [2] = [SIGNER] mintAuthority
	// ··········· Mint authority
	//
	// [3] = [SIGNER] payer
	// ··········· payer
	//
	// [4] = [] updateAuthorityInfo
	// ··········· update authority info
	//
	// [5] = [] system
	// ··········· System program
	//
	// [6] = [] rent
	// ··········· Rent info
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Create Metadata object.

func NewCreateMetadataAccountV2Instruction added in v0.2.0

func NewCreateMetadataAccountV2Instruction(

	args CreateMetadataAccountArgsV2,

	metadataKeyPDA ag_solanago.PublicKey,
	mintOfToken ag_solanago.PublicKey,
	mintAuthority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	updateAuthorityInfo ag_solanago.PublicKey,
	system ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *CreateMetadataAccountV2

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

func NewCreateMetadataAccountV2InstructionBuilder added in v0.2.0

func NewCreateMetadataAccountV2InstructionBuilder() *CreateMetadataAccountV2

NewCreateMetadataAccountV2InstructionBuilder creates a new `CreateMetadataAccountV2` instruction builder.

func (CreateMetadataAccountV2) Build added in v0.2.0

func (inst CreateMetadataAccountV2) Build() *Instruction

func (*CreateMetadataAccountV2) EncodeToTree added in v0.2.0

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

func (*CreateMetadataAccountV2) GetMetadataKeyPDAAccount added in v0.2.0

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

GetMetadataKeyPDAAccount gets the "metadataKeyPDA" account. Metadata key (pda of ['metadata', program id, mint id])

func (*CreateMetadataAccountV2) GetMintAuthorityAccount added in v0.2.0

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

GetMintAuthorityAccount gets the "mintAuthority" account. Mint authority

func (*CreateMetadataAccountV2) GetMintOfTokenAccount added in v0.2.0

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

GetMintOfTokenAccount gets the "mintOfToken" account. Mint of token asset

func (*CreateMetadataAccountV2) GetPayerAccount added in v0.2.0

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

GetPayerAccount gets the "payer" account. payer

func (*CreateMetadataAccountV2) GetRentAccount added in v0.2.0

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

GetRentAccount gets the "rent" account. Rent info

func (*CreateMetadataAccountV2) GetSystemAccount added in v0.2.0

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

GetSystemAccount gets the "system" account. System program

func (*CreateMetadataAccountV2) GetUpdateAuthorityInfoAccount added in v0.2.0

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

GetUpdateAuthorityInfoAccount gets the "updateAuthorityInfo" account. update authority info

func (CreateMetadataAccountV2) MarshalWithEncoder added in v0.2.0

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

func (*CreateMetadataAccountV2) SetArgs added in v0.2.0

SetArgs sets the "args" parameter.

func (*CreateMetadataAccountV2) SetMetadataKeyPDAAccount added in v0.2.0

func (inst *CreateMetadataAccountV2) SetMetadataKeyPDAAccount(metadataKeyPDA ag_solanago.PublicKey) *CreateMetadataAccountV2

SetMetadataKeyPDAAccount sets the "metadataKeyPDA" account. Metadata key (pda of ['metadata', program id, mint id])

func (*CreateMetadataAccountV2) SetMintAuthorityAccount added in v0.2.0

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

SetMintAuthorityAccount sets the "mintAuthority" account. Mint authority

func (*CreateMetadataAccountV2) SetMintOfTokenAccount added in v0.2.0

func (inst *CreateMetadataAccountV2) SetMintOfTokenAccount(mintOfToken ag_solanago.PublicKey) *CreateMetadataAccountV2

SetMintOfTokenAccount sets the "mintOfToken" account. Mint of token asset

func (*CreateMetadataAccountV2) SetPayerAccount added in v0.2.0

SetPayerAccount sets the "payer" account. payer

func (*CreateMetadataAccountV2) SetRentAccount added in v0.2.0

SetRentAccount sets the "rent" account. Rent info

func (*CreateMetadataAccountV2) SetSystemAccount added in v0.2.0

func (inst *CreateMetadataAccountV2) SetSystemAccount(system ag_solanago.PublicKey) *CreateMetadataAccountV2

SetSystemAccount sets the "system" account. System program

func (*CreateMetadataAccountV2) SetUpdateAuthorityInfoAccount added in v0.2.0

func (inst *CreateMetadataAccountV2) SetUpdateAuthorityInfoAccount(updateAuthorityInfo ag_solanago.PublicKey) *CreateMetadataAccountV2

SetUpdateAuthorityInfoAccount sets the "updateAuthorityInfo" account. update authority info

func (*CreateMetadataAccountV2) UnmarshalWithDecoder added in v0.2.0

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

func (*CreateMetadataAccountV2) Validate added in v0.2.0

func (inst *CreateMetadataAccountV2) Validate() error

func (CreateMetadataAccountV2) ValidateAndBuild added in v0.2.0

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

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

type Creator

type Creator struct {
	Address  ag_solanago.PublicKey
	Verified bool

	// In percentages, NOT basis points ;) Watch out!
	Share uint8
}

func (Creator) MarshalWithEncoder

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

func (*Creator) UnmarshalWithDecoder

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

type Data

type Data struct {
	// The name of the asset
	Name string

	// The symbol for the asset
	Symbol string

	// URI pointing to JSON representing the asset
	Uri string

	// Royalty basis points that goes to creators in secondary sales (0-10000)
	SellerFeeBasisPoints uint16

	// Array of creators, optional
	Creators *[]Creator `bin:"optional"`
}

func (Data) MarshalWithEncoder

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

func (*Data) UnmarshalWithDecoder

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

type DataV2 added in v0.2.0

type DataV2 struct {
	// The name of the asset
	Name string

	// The symbol for the asset
	Symbol string

	// URI pointing to JSON representing the asset
	Uri string

	// Royalty basis points that goes to creators in secondary sales (0-10000)
	SellerFeeBasisPoints uint16

	// Array of creators, optional
	Creators *[]Creator `bin:"optional"`

	// Collection
	Collection *Collection `bin:"optional"`

	// Uses
	Uses *Uses `bin:"optional"`
}

func (DataV2) MarshalWithEncoder added in v0.2.0

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

func (*DataV2) UnmarshalWithDecoder added in v0.2.0

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

type DeprecatedCreateMasterEdition

type DeprecatedCreateMasterEdition struct {
	Args *CreateMasterEditionArgs

	// [0] = [WRITE] unallocatedEditionV1
	// ··········· Unallocated edition V1 account with address as pda of ['metadata', program id, mint, 'edition']
	//
	// [1] = [WRITE] metadataMint
	// ··········· 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] oneTimeAuthPrintingMint
	// ··········· 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] currentUpdateAuthority
	// ··········· Current Update authority key
	//
	// [5] = [SIGNER] printingMintAuthority
	// ··········· Printing mint authority - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY.
	//
	// [6] = [SIGNER] mintAuthorityOnMetadataMint
	// ··········· 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] = [] system
	// ··········· System program
	//
	// [11] = [] rent
	// ··········· Rent info
	//
	// [12] = [SIGNER] oneTimeAuthorizationPrintingMintAuthority
	// ··········· One time authorization printing mint authority - must be provided if using max supply. THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY.
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Register a Metadata as a Master Edition V1, which means Editions can be minted. Henceforth, no further tokens will be mintable from this primary mint. Will throw an error if more than one token exists, and will throw an error if less than one token exists in this primary mint.

func NewDeprecatedCreateMasterEditionInstruction

func NewDeprecatedCreateMasterEditionInstruction(

	args CreateMasterEditionArgs,

	unallocatedEditionV1 ag_solanago.PublicKey,
	metadataMint ag_solanago.PublicKey,
	printingMint ag_solanago.PublicKey,
	oneTimeAuthPrintingMint ag_solanago.PublicKey,
	currentUpdateAuthority ag_solanago.PublicKey,
	printingMintAuthority ag_solanago.PublicKey,
	mintAuthorityOnMetadataMint ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	system ag_solanago.PublicKey,
	rent ag_solanago.PublicKey,
	oneTimeAuthorizationPrintingMintAuthority ag_solanago.PublicKey) *DeprecatedCreateMasterEdition

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

func NewDeprecatedCreateMasterEditionInstructionBuilder

func NewDeprecatedCreateMasterEditionInstructionBuilder() *DeprecatedCreateMasterEdition

NewDeprecatedCreateMasterEditionInstructionBuilder creates a new `DeprecatedCreateMasterEdition` instruction builder.

func (DeprecatedCreateMasterEdition) Build

func (*DeprecatedCreateMasterEdition) EncodeToTree

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

func (*DeprecatedCreateMasterEdition) GetCurrentUpdateAuthorityAccount

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

GetCurrentUpdateAuthorityAccount gets the "currentUpdateAuthority" account. Current Update authority key

func (*DeprecatedCreateMasterEdition) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account. Metadata account

func (*DeprecatedCreateMasterEdition) GetMetadataMintAccount

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

GetMetadataMintAccount gets the "metadataMint" account. Metadata mint

func (*DeprecatedCreateMasterEdition) GetMintAuthorityOnMetadataMintAccount

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

GetMintAuthorityOnMetadataMintAccount gets the "mintAuthorityOnMetadataMint" account. Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY

func (*DeprecatedCreateMasterEdition) GetOneTimeAuthPrintingMintAccount

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

GetOneTimeAuthPrintingMintAccount gets the "oneTimeAuthPrintingMint" account. 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) GetOneTimeAuthorizationPrintingMintAuthorityAccount

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

GetOneTimeAuthorizationPrintingMintAuthorityAccount gets the "oneTimeAuthorizationPrintingMintAuthority" account. 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 (inst *DeprecatedCreateMasterEdition) GetPayerAccount() *ag_solanago.AccountMeta

GetPayerAccount gets the "payer" account. payer

func (*DeprecatedCreateMasterEdition) GetPrintingMintAccount

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

GetPrintingMintAccount gets the "printingMint" account. 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 (inst *DeprecatedCreateMasterEdition) GetPrintingMintAuthorityAccount() *ag_solanago.AccountMeta

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

func (*DeprecatedCreateMasterEdition) GetRentAccount added in v0.2.0

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

GetRentAccount gets the "rent" account. Rent info

func (*DeprecatedCreateMasterEdition) GetSystemAccount added in v0.2.0

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

GetSystemAccount gets the "system" account. System program

func (*DeprecatedCreateMasterEdition) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account. Token program

func (*DeprecatedCreateMasterEdition) GetUnallocatedEditionV1Account

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

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

func (DeprecatedCreateMasterEdition) MarshalWithEncoder

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

func (*DeprecatedCreateMasterEdition) SetArgs

SetArgs sets the "args" parameter.

func (*DeprecatedCreateMasterEdition) SetCurrentUpdateAuthorityAccount

func (inst *DeprecatedCreateMasterEdition) SetCurrentUpdateAuthorityAccount(currentUpdateAuthority ag_solanago.PublicKey) *DeprecatedCreateMasterEdition

SetCurrentUpdateAuthorityAccount sets the "currentUpdateAuthority" account. Current Update authority key

func (*DeprecatedCreateMasterEdition) SetMetadataAccount

SetMetadataAccount sets the "metadata" account. Metadata account

func (*DeprecatedCreateMasterEdition) SetMetadataMintAccount

func (inst *DeprecatedCreateMasterEdition) SetMetadataMintAccount(metadataMint ag_solanago.PublicKey) *DeprecatedCreateMasterEdition

SetMetadataMintAccount sets the "metadataMint" account. Metadata mint

func (*DeprecatedCreateMasterEdition) SetMintAuthorityOnMetadataMintAccount

func (inst *DeprecatedCreateMasterEdition) SetMintAuthorityOnMetadataMintAccount(mintAuthorityOnMetadataMint ag_solanago.PublicKey) *DeprecatedCreateMasterEdition

SetMintAuthorityOnMetadataMintAccount sets the "mintAuthorityOnMetadataMint" account. Mint authority on the metadata's mint - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY

func (*DeprecatedCreateMasterEdition) SetOneTimeAuthPrintingMintAccount

func (inst *DeprecatedCreateMasterEdition) SetOneTimeAuthPrintingMintAccount(oneTimeAuthPrintingMint ag_solanago.PublicKey) *DeprecatedCreateMasterEdition

SetOneTimeAuthPrintingMintAccount sets the "oneTimeAuthPrintingMint" account. 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) SetOneTimeAuthorizationPrintingMintAuthorityAccount

func (inst *DeprecatedCreateMasterEdition) SetOneTimeAuthorizationPrintingMintAuthorityAccount(oneTimeAuthorizationPrintingMintAuthority ag_solanago.PublicKey) *DeprecatedCreateMasterEdition

SetOneTimeAuthorizationPrintingMintAuthorityAccount sets the "oneTimeAuthorizationPrintingMintAuthority" account. 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" account. payer

func (*DeprecatedCreateMasterEdition) SetPrintingMintAccount

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

SetPrintingMintAccount sets the "printingMint" account. 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 (inst *DeprecatedCreateMasterEdition) SetPrintingMintAuthorityAccount(printingMintAuthority ag_solanago.PublicKey) *DeprecatedCreateMasterEdition

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

func (*DeprecatedCreateMasterEdition) SetRentAccount added in v0.2.0

SetRentAccount sets the "rent" account. Rent info

func (*DeprecatedCreateMasterEdition) SetSystemAccount added in v0.2.0

SetSystemAccount sets the "system" account. System program

func (*DeprecatedCreateMasterEdition) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account. Token program

func (*DeprecatedCreateMasterEdition) SetUnallocatedEditionV1Account

func (inst *DeprecatedCreateMasterEdition) SetUnallocatedEditionV1Account(unallocatedEditionV1 ag_solanago.PublicKey) *DeprecatedCreateMasterEdition

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

func (*DeprecatedCreateMasterEdition) UnmarshalWithDecoder

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

func (*DeprecatedCreateMasterEdition) Validate

func (inst *DeprecatedCreateMasterEdition) Validate() error

func (DeprecatedCreateMasterEdition) ValidateAndBuild

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

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

type DeprecatedCreateReservationList

type DeprecatedCreateReservationList struct {

	// [0] = [WRITE] pdaForReservationlist
	// ··········· PDA for ReservationList of ['metadata', program id, master edition key, 'reservation', resource-key]
	//
	// [1] = [SIGNER] payer
	// ··········· Payer
	//
	// [2] = [SIGNER] updateAuthority
	// ··········· Update authority
	//
	// [3] = [] masterEditionV1
	// ··········· 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] = [] metadataKeyPDA
	// ··········· Metadata key (pda of ['metadata', program id, mint id])
	//
	// [6] = [] system
	// ··········· System program
	//
	// [7] = [] rent
	// ··········· Rent info
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Create an empty reservation list for a resource who can come back later as a signer and fill the reservation list with reservations to ensure that people who come to get editions get the number they expect. See SetReservationList for more.

func NewDeprecatedCreateReservationListInstruction

func NewDeprecatedCreateReservationListInstruction(

	pdaForReservationlist ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	updateAuthority ag_solanago.PublicKey,
	masterEditionV1 ag_solanago.PublicKey,
	resource ag_solanago.PublicKey,
	metadataKeyPDA ag_solanago.PublicKey,
	system ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *DeprecatedCreateReservationList

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

func NewDeprecatedCreateReservationListInstructionBuilder

func NewDeprecatedCreateReservationListInstructionBuilder() *DeprecatedCreateReservationList

NewDeprecatedCreateReservationListInstructionBuilder creates a new `DeprecatedCreateReservationList` instruction builder.

func (DeprecatedCreateReservationList) Build

func (*DeprecatedCreateReservationList) EncodeToTree

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

func (*DeprecatedCreateReservationList) GetMasterEditionV1Account

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

GetMasterEditionV1Account gets the "masterEditionV1" account. Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])

func (*DeprecatedCreateReservationList) GetMetadataKeyPDAAccount

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

GetMetadataKeyPDAAccount gets the "metadataKeyPDA" account. Metadata key (pda of ['metadata', program id, mint id])

func (*DeprecatedCreateReservationList) GetPayerAccount

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

GetPayerAccount gets the "payer" account. Payer

func (*DeprecatedCreateReservationList) GetPdaForReservationlistAccount

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

GetPdaForReservationlistAccount gets the "pdaForReservationlist" account. PDA for ReservationList of ['metadata', program id, master edition key, 'reservation', resource-key]

func (*DeprecatedCreateReservationList) GetRentAccount added in v0.2.0

GetRentAccount gets the "rent" account. Rent info

func (*DeprecatedCreateReservationList) GetResourceAccount

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

GetResourceAccount gets the "resource" account. 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) GetSystemAccount added in v0.2.0

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

GetSystemAccount gets the "system" account. System program

func (*DeprecatedCreateReservationList) GetUpdateAuthorityAccount

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

GetUpdateAuthorityAccount gets the "updateAuthority" account. Update authority

func (DeprecatedCreateReservationList) MarshalWithEncoder

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

func (*DeprecatedCreateReservationList) SetMasterEditionV1Account

func (inst *DeprecatedCreateReservationList) SetMasterEditionV1Account(masterEditionV1 ag_solanago.PublicKey) *DeprecatedCreateReservationList

SetMasterEditionV1Account sets the "masterEditionV1" account. Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])

func (*DeprecatedCreateReservationList) SetMetadataKeyPDAAccount

func (inst *DeprecatedCreateReservationList) SetMetadataKeyPDAAccount(metadataKeyPDA ag_solanago.PublicKey) *DeprecatedCreateReservationList

SetMetadataKeyPDAAccount sets the "metadataKeyPDA" account. Metadata key (pda of ['metadata', program id, mint id])

func (*DeprecatedCreateReservationList) SetPayerAccount

SetPayerAccount sets the "payer" account. Payer

func (*DeprecatedCreateReservationList) SetPdaForReservationlistAccount

func (inst *DeprecatedCreateReservationList) SetPdaForReservationlistAccount(pdaForReservationlist ag_solanago.PublicKey) *DeprecatedCreateReservationList

SetPdaForReservationlistAccount sets the "pdaForReservationlist" account. PDA for ReservationList of ['metadata', program id, master edition key, 'reservation', resource-key]

func (*DeprecatedCreateReservationList) SetRentAccount added in v0.2.0

SetRentAccount sets the "rent" account. Rent info

func (*DeprecatedCreateReservationList) SetResourceAccount

SetResourceAccount sets the "resource" account. 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) SetSystemAccount added in v0.2.0

SetSystemAccount sets the "system" account. System program

func (*DeprecatedCreateReservationList) SetUpdateAuthorityAccount

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

SetUpdateAuthorityAccount sets the "updateAuthority" account. Update authority

func (*DeprecatedCreateReservationList) UnmarshalWithDecoder

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

func (*DeprecatedCreateReservationList) Validate

func (inst *DeprecatedCreateReservationList) Validate() error

func (DeprecatedCreateReservationList) ValidateAndBuild

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

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

type DeprecatedMintNewEditionFromMasterEditionViaPrintingToken

type DeprecatedMintNewEditionFromMasterEditionViaPrintingToken struct {

	// [0] = [WRITE] newMetadataKey
	// ··········· New Metadata key (pda of ['metadata', program id, mint id])
	//
	// [1] = [WRITE] newEditionV1
	// ··········· New Edition V1 (pda of ['metadata', program id, mint id, 'edition'])
	//
	// [2] = [WRITE] masterRecordEditionV1
	// ··········· Master Record Edition V1 (pda of ['metadata', program id, master metadata mint id, 'edition'])
	//
	// [3] = [WRITE] mintOfNewToken
	// ··········· 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] tokenAccount
	// ··········· Token account containing Printing mint token to be transferred
	//
	// [7] = [WRITE] editionPDA
	// ··········· 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] = [] updateAuthority
	// ··········· update authority info for new metadata account
	//
	// [11] = [] masterRecordMetadata
	// ··········· Master record metadata account
	//
	// [12] = [] tokenProgram
	// ··········· Token program
	//
	// [13] = [] system
	// ··········· System program
	//
	// [14] = [] rent
	// ··········· Rent info
	//
	// [15] = [WRITE] reservationList
	// ··········· [optional] Reservation List - If present, and you are on this list, you can get
	// ··········· an edition number given by your position on the list.
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Given an authority token minted by the Printing mint of a master edition, and a brand new non-metadata-ed mint with one token make a new Metadata + Edition that is a child of the master edition denoted by this authority token.

func NewDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstruction

func NewDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstruction(

	newMetadataKey ag_solanago.PublicKey,
	newEditionV1 ag_solanago.PublicKey,
	masterRecordEditionV1 ag_solanago.PublicKey,
	mintOfNewToken ag_solanago.PublicKey,
	mintAuthority ag_solanago.PublicKey,
	printingMint ag_solanago.PublicKey,
	tokenAccount ag_solanago.PublicKey,
	editionPDA ag_solanago.PublicKey,
	burnAuthority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	updateAuthority ag_solanago.PublicKey,
	masterRecordMetadata ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	system ag_solanago.PublicKey,
	rent ag_solanago.PublicKey,
	reservationList ag_solanago.PublicKey) *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken

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

func NewDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstructionBuilder

func NewDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstructionBuilder() *DeprecatedMintNewEditionFromMasterEditionViaPrintingToken

NewDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstructionBuilder creates a new `DeprecatedMintNewEditionFromMasterEditionViaPrintingToken` instruction builder.

func (DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) Build

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) EncodeToTree

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetBurnAuthorityAccount

GetBurnAuthorityAccount gets the "burnAuthority" account. Burn authority for this token

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetEditionPDAAccount

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

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMasterRecordEditionV1Account

GetMasterRecordEditionV1Account gets the "masterRecordEditionV1" account. Master Record Edition V1 (pda of ['metadata', program id, master metadata mint id, 'edition'])

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMasterRecordMetadataAccount

GetMasterRecordMetadataAccount gets the "masterRecordMetadata" account. Master record metadata account

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMintAuthorityAccount

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

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetMintOfNewTokenAccount

GetMintOfNewTokenAccount gets the "mintOfNewToken" account. Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetNewEditionV1Account

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

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetNewMetadataKeyAccount

GetNewMetadataKeyAccount gets the "newMetadataKey" account. New Metadata key (pda of ['metadata', program id, mint id])

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetPayerAccount

GetPayerAccount gets the "payer" account. payer

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetPrintingMintAccount

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

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetRentAccount added in v0.2.0

GetRentAccount gets the "rent" account. Rent info

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetReservationListAccount

GetReservationListAccount gets the "reservationList" account (optional). [optional] 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) GetSystemAccount added in v0.2.0

GetSystemAccount gets the "system" account. System program

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetTokenAccount

GetTokenAccount gets the "tokenAccount" account. Token account containing Printing mint token to be transferred

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetTokenProgramAccount

GetTokenProgramAccount gets the "tokenProgram" account. Token program

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetUpdateAuthorityAccount

GetUpdateAuthorityAccount gets the "updateAuthority" account. update authority info for new metadata account

func (DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) MarshalWithEncoder

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetBurnAuthorityAccount

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

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetEditionPDAAccount

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

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMasterRecordEditionV1Account

SetMasterRecordEditionV1Account sets the "masterRecordEditionV1" account. Master Record Edition V1 (pda of ['metadata', program id, master metadata mint id, 'edition'])

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMasterRecordMetadataAccount

SetMasterRecordMetadataAccount sets the "masterRecordMetadata" account. Master record metadata account

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMintAuthorityAccount

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

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetMintOfNewTokenAccount

SetMintOfNewTokenAccount sets the "mintOfNewToken" account. Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetNewEditionV1Account

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

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetNewMetadataKeyAccount

SetNewMetadataKeyAccount sets the "newMetadataKey" account. New Metadata key (pda of ['metadata', program id, mint id])

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetPayerAccount

SetPayerAccount sets the "payer" account. payer

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetPrintingMintAccount

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

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetRentAccount added in v0.2.0

SetRentAccount sets the "rent" account. Rent info

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetReservationListAccount

SetReservationListAccount sets the "reservationList" account. [optional] 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) SetSystemAccount added in v0.2.0

SetSystemAccount sets the "system" account. System program

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetTokenAccount

SetTokenAccount sets the "tokenAccount" account. Token account containing Printing mint token to be transferred

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetTokenProgramAccount

SetTokenProgramAccount sets the "tokenProgram" account. Token program

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) SetUpdateAuthorityAccount

SetUpdateAuthorityAccount sets the "updateAuthority" account. update authority info for new metadata account

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) UnmarshalWithDecoder

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

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) Validate

func (DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) ValidateAndBuild

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

type DeprecatedMintPrintingTokens

type DeprecatedMintPrintingTokens struct {
	Args *MintPrintingTokensViaTokenArgs

	// [0] = [WRITE] destinationAccount
	// ··········· Destination account
	//
	// [1] = [WRITE] printingMint
	// ··········· Printing mint
	//
	// [2] = [SIGNER] updateAuthority
	// ··········· Update authority
	//
	// [3] = [] metadataKeyPDA
	// ··········· Metadata key (pda of ['metadata', program id, mint id])
	//
	// [4] = [] masterEditionV1
	// ··········· Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])
	//
	// [5] = [] tokenProgram
	// ··········· Token program
	//
	// [6] = [] rent
	// ··········· Rent
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Using your update authority, mint printing tokens for your master edition.

func NewDeprecatedMintPrintingTokensInstruction

func NewDeprecatedMintPrintingTokensInstruction(

	args MintPrintingTokensViaTokenArgs,

	destinationAccount ag_solanago.PublicKey,
	printingMint ag_solanago.PublicKey,
	updateAuthority ag_solanago.PublicKey,
	metadataKeyPDA ag_solanago.PublicKey,
	masterEditionV1 ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *DeprecatedMintPrintingTokens

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

func NewDeprecatedMintPrintingTokensInstructionBuilder

func NewDeprecatedMintPrintingTokensInstructionBuilder() *DeprecatedMintPrintingTokens

NewDeprecatedMintPrintingTokensInstructionBuilder creates a new `DeprecatedMintPrintingTokens` instruction builder.

func (DeprecatedMintPrintingTokens) Build

func (*DeprecatedMintPrintingTokens) EncodeToTree

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

func (*DeprecatedMintPrintingTokens) GetDestinationAccount

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

GetDestinationAccount gets the "destinationAccount" account. Destination account

func (*DeprecatedMintPrintingTokens) GetMasterEditionV1Account

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

GetMasterEditionV1Account gets the "masterEditionV1" account. Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])

func (*DeprecatedMintPrintingTokens) GetMetadataKeyPDAAccount

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

GetMetadataKeyPDAAccount gets the "metadataKeyPDA" account. Metadata key (pda of ['metadata', program id, mint id])

func (*DeprecatedMintPrintingTokens) GetPrintingMintAccount

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

GetPrintingMintAccount gets the "printingMint" account. Printing mint

func (*DeprecatedMintPrintingTokens) GetRentAccount

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

GetRentAccount gets the "rent" account. Rent

func (*DeprecatedMintPrintingTokens) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account. Token program

func (*DeprecatedMintPrintingTokens) GetUpdateAuthorityAccount

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

GetUpdateAuthorityAccount gets the "updateAuthority" account. Update authority

func (DeprecatedMintPrintingTokens) MarshalWithEncoder

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

func (*DeprecatedMintPrintingTokens) SetArgs

SetArgs sets the "args" parameter.

func (*DeprecatedMintPrintingTokens) SetDestinationAccount

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

SetDestinationAccount sets the "destinationAccount" account. Destination account

func (*DeprecatedMintPrintingTokens) SetMasterEditionV1Account

func (inst *DeprecatedMintPrintingTokens) SetMasterEditionV1Account(masterEditionV1 ag_solanago.PublicKey) *DeprecatedMintPrintingTokens

SetMasterEditionV1Account sets the "masterEditionV1" account. Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])

func (*DeprecatedMintPrintingTokens) SetMetadataKeyPDAAccount

func (inst *DeprecatedMintPrintingTokens) SetMetadataKeyPDAAccount(metadataKeyPDA ag_solanago.PublicKey) *DeprecatedMintPrintingTokens

SetMetadataKeyPDAAccount sets the "metadataKeyPDA" account. Metadata key (pda of ['metadata', program id, mint id])

func (*DeprecatedMintPrintingTokens) SetPrintingMintAccount

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

SetPrintingMintAccount sets the "printingMint" account. Printing mint

func (*DeprecatedMintPrintingTokens) SetRentAccount

SetRentAccount sets the "rent" account. Rent

func (*DeprecatedMintPrintingTokens) SetTokenProgramAccount

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

SetTokenProgramAccount sets the "tokenProgram" account. Token program

func (*DeprecatedMintPrintingTokens) SetUpdateAuthorityAccount

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

SetUpdateAuthorityAccount sets the "updateAuthority" account. Update authority

func (*DeprecatedMintPrintingTokens) UnmarshalWithDecoder

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

func (*DeprecatedMintPrintingTokens) Validate

func (inst *DeprecatedMintPrintingTokens) Validate() error

func (DeprecatedMintPrintingTokens) ValidateAndBuild

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

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

type DeprecatedMintPrintingTokensViaToken

type DeprecatedMintPrintingTokensViaToken struct {
	Args *MintPrintingTokensViaTokenArgs

	// [0] = [WRITE] destinationAccount
	// ··········· Destination account
	//
	// [1] = [WRITE] tokenAccount
	// ··········· Token account containing one time authorization token
	//
	// [2] = [WRITE] oneTimeAuthorizationMint
	// ··········· One time authorization mint
	//
	// [3] = [WRITE] printingMint
	// ··········· Printing mint
	//
	// [4] = [SIGNER] burnAuthority
	// ··········· Burn authority
	//
	// [5] = [] metadataKeyPDA
	// ··········· Metadata key (pda of ['metadata', program id, mint id])
	//
	// [6] = [] masterEditionV1
	// ··········· Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])
	//
	// [7] = [] tokenProgram
	// ··········· Token program
	//
	// [8] = [] rent
	// ··········· Rent
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Using a one time authorization token from a master edition v1, print any number of printing tokens from the printing_mint one time, burning the one time authorization token.

func NewDeprecatedMintPrintingTokensViaTokenInstruction

func NewDeprecatedMintPrintingTokensViaTokenInstruction(

	args MintPrintingTokensViaTokenArgs,

	destinationAccount ag_solanago.PublicKey,
	tokenAccount ag_solanago.PublicKey,
	oneTimeAuthorizationMint ag_solanago.PublicKey,
	printingMint ag_solanago.PublicKey,
	burnAuthority ag_solanago.PublicKey,
	metadataKeyPDA ag_solanago.PublicKey,
	masterEditionV1 ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *DeprecatedMintPrintingTokensViaToken

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

func NewDeprecatedMintPrintingTokensViaTokenInstructionBuilder

func NewDeprecatedMintPrintingTokensViaTokenInstructionBuilder() *DeprecatedMintPrintingTokensViaToken

NewDeprecatedMintPrintingTokensViaTokenInstructionBuilder creates a new `DeprecatedMintPrintingTokensViaToken` instruction builder.

func (DeprecatedMintPrintingTokensViaToken) Build

func (*DeprecatedMintPrintingTokensViaToken) EncodeToTree

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

func (*DeprecatedMintPrintingTokensViaToken) GetBurnAuthorityAccount

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

GetBurnAuthorityAccount gets the "burnAuthority" account. Burn authority

func (*DeprecatedMintPrintingTokensViaToken) GetDestinationAccount

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

GetDestinationAccount gets the "destinationAccount" account. Destination account

func (*DeprecatedMintPrintingTokensViaToken) GetMasterEditionV1Account

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

GetMasterEditionV1Account gets the "masterEditionV1" account. Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])

func (*DeprecatedMintPrintingTokensViaToken) GetMetadataKeyPDAAccount

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

GetMetadataKeyPDAAccount gets the "metadataKeyPDA" account. Metadata key (pda of ['metadata', program id, mint id])

func (*DeprecatedMintPrintingTokensViaToken) GetOneTimeAuthorizationMintAccount

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

GetOneTimeAuthorizationMintAccount gets the "oneTimeAuthorizationMint" account. One time authorization mint

func (*DeprecatedMintPrintingTokensViaToken) GetPrintingMintAccount

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

GetPrintingMintAccount gets the "printingMint" account. Printing mint

func (*DeprecatedMintPrintingTokensViaToken) GetRentAccount

GetRentAccount gets the "rent" account. Rent

func (*DeprecatedMintPrintingTokensViaToken) GetTokenAccount

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

func (*DeprecatedMintPrintingTokensViaToken) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account. Token program

func (DeprecatedMintPrintingTokensViaToken) MarshalWithEncoder

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

func (*DeprecatedMintPrintingTokensViaToken) SetArgs

SetArgs sets the "args" parameter.

func (*DeprecatedMintPrintingTokensViaToken) SetBurnAuthorityAccount

SetBurnAuthorityAccount sets the "burnAuthority" account. Burn authority

func (*DeprecatedMintPrintingTokensViaToken) SetDestinationAccount

SetDestinationAccount sets the "destinationAccount" account. Destination account

func (*DeprecatedMintPrintingTokensViaToken) SetMasterEditionV1Account

func (inst *DeprecatedMintPrintingTokensViaToken) SetMasterEditionV1Account(masterEditionV1 ag_solanago.PublicKey) *DeprecatedMintPrintingTokensViaToken

SetMasterEditionV1Account sets the "masterEditionV1" account. Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])

func (*DeprecatedMintPrintingTokensViaToken) SetMetadataKeyPDAAccount

SetMetadataKeyPDAAccount sets the "metadataKeyPDA" account. Metadata key (pda of ['metadata', program id, mint id])

func (*DeprecatedMintPrintingTokensViaToken) SetOneTimeAuthorizationMintAccount

func (inst *DeprecatedMintPrintingTokensViaToken) SetOneTimeAuthorizationMintAccount(oneTimeAuthorizationMint ag_solanago.PublicKey) *DeprecatedMintPrintingTokensViaToken

SetOneTimeAuthorizationMintAccount sets the "oneTimeAuthorizationMint" account. One time authorization mint

func (*DeprecatedMintPrintingTokensViaToken) SetPrintingMintAccount

SetPrintingMintAccount sets the "printingMint" account. Printing mint

func (*DeprecatedMintPrintingTokensViaToken) SetRentAccount

SetRentAccount sets the "rent" account. Rent

func (*DeprecatedMintPrintingTokensViaToken) SetTokenAccount

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

func (*DeprecatedMintPrintingTokensViaToken) SetTokenProgramAccount

SetTokenProgramAccount sets the "tokenProgram" account. Token program

func (*DeprecatedMintPrintingTokensViaToken) UnmarshalWithDecoder

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

func (*DeprecatedMintPrintingTokensViaToken) Validate

func (DeprecatedMintPrintingTokensViaToken) ValidateAndBuild

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

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

type DeprecatedSetReservationList

type DeprecatedSetReservationList struct {
	Args *SetReservationListArgs

	// [0] = [WRITE] masterEditionV1
	// ··········· Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])
	//
	// [1] = [WRITE] pdaForReservationlist
	// ··········· PDA for ReservationList of ['metadata', program id, master edition key, 'reservation', resource-key]
	//
	// [2] = [SIGNER] resource
	// ··········· The resource you tied the reservation list too
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Reserve up to 200 editions in sequence for up to 200 addresses in an existing reservation PDA, which can then be used later by redeemers who have printing tokens as a reservation to get a specific edition number as opposed to whatever one is currently listed on the master edition. Used by Auction Manager to guarantee printing order on bid redemption. AM will call whenever the first person redeems a printing bid to reserve the whole block of winners in order and then each winner when they get their token submits their mint and account with the pda that was created by that first bidder - the token metadata can then cross reference these people with the list and see that bidder A gets edition #2, so on and so forth.

NOTE: If you have more than 20 addresses in a reservation list, this may be called multiple times to build up the list, otherwise, it simply wont fit in one transaction. Only provide a total_reservation argument on the first call, which will allocate the edition space, and in follow up calls this will specifically be unnecessary (and indeed will error.)

func NewDeprecatedSetReservationListInstruction

func NewDeprecatedSetReservationListInstruction(

	args SetReservationListArgs,

	masterEditionV1 ag_solanago.PublicKey,
	pdaForReservationlist ag_solanago.PublicKey,
	resource ag_solanago.PublicKey) *DeprecatedSetReservationList

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

func NewDeprecatedSetReservationListInstructionBuilder

func NewDeprecatedSetReservationListInstructionBuilder() *DeprecatedSetReservationList

NewDeprecatedSetReservationListInstructionBuilder creates a new `DeprecatedSetReservationList` instruction builder.

func (DeprecatedSetReservationList) Build

func (*DeprecatedSetReservationList) EncodeToTree

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

func (*DeprecatedSetReservationList) GetMasterEditionV1Account

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

GetMasterEditionV1Account gets the "masterEditionV1" account. Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])

func (*DeprecatedSetReservationList) GetPdaForReservationlistAccount

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

GetPdaForReservationlistAccount gets the "pdaForReservationlist" account. PDA for ReservationList of ['metadata', program id, master edition key, 'reservation', resource-key]

func (*DeprecatedSetReservationList) GetResourceAccount

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

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

func (DeprecatedSetReservationList) MarshalWithEncoder

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

func (*DeprecatedSetReservationList) SetArgs

SetArgs sets the "args" parameter.

func (*DeprecatedSetReservationList) SetMasterEditionV1Account

func (inst *DeprecatedSetReservationList) SetMasterEditionV1Account(masterEditionV1 ag_solanago.PublicKey) *DeprecatedSetReservationList

SetMasterEditionV1Account sets the "masterEditionV1" account. Master Edition V1 key (pda of ['metadata', program id, mint id, 'edition'])

func (*DeprecatedSetReservationList) SetPdaForReservationlistAccount

func (inst *DeprecatedSetReservationList) SetPdaForReservationlistAccount(pdaForReservationlist ag_solanago.PublicKey) *DeprecatedSetReservationList

SetPdaForReservationlistAccount sets the "pdaForReservationlist" account. PDA for ReservationList of ['metadata', program id, master edition key, 'reservation', resource-key]

func (*DeprecatedSetReservationList) SetResourceAccount

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

func (*DeprecatedSetReservationList) UnmarshalWithDecoder

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

func (*DeprecatedSetReservationList) Validate

func (inst *DeprecatedSetReservationList) Validate() error

func (DeprecatedSetReservationList) ValidateAndBuild

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

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

type Edition

type Edition struct {
	Key Key

	// Points at MasterEdition struct
	Parent ag_solanago.PublicKey

	// Starting at 0 for master record, this is incremented for each edition minted.
	Edition uint64
}

func (Edition) MarshalWithEncoder

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

func (*Edition) UnmarshalWithDecoder

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

type EditionMarker

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

func (EditionMarker) MarshalWithEncoder

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

func (*EditionMarker) UnmarshalWithDecoder

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

type Instruction

type Instruction struct {
	ag_binary.BaseVariant
}

func DecodeInstruction

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

func (*Instruction) Accounts

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

func (*Instruction) Data

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

func (*Instruction) EncodeToTree

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

func (*Instruction) MarshalWithEncoder

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

func (*Instruction) ProgramID

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

func (*Instruction) TextEncode

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

func (*Instruction) UnmarshalWithDecoder

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

type Key

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

func (Key) String added in v0.2.0

func (value Key) String() string

type MasterEditionV1

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

	// Can be used to mint tokens that give one-time permission to mint a single limited edition.
	PrintingMint ag_solanago.PublicKey

	// If you don't know how many printing tokens you are going to need, but you do know
	// you are going to need some amount in the future, you can use a token from this mint.
	// Coming back to token metadata with one of these tokens allows you to mint (one time)
	// any number of printing tokens you want. This is used for instance by Auction Manager
	// with participation NFTs, where we dont know how many people will bid and need participation
	// printing tokens to redeem, so we give it ONE of these tokens to use after the auction is over,
	// because when the auction begins we just dont know how many printing tokens we will need,
	// but at the end we will. At the end it then burns this token with token-metadata to
	// get the printing tokens it needs to give to bidders. Each bidder then redeems a printing token
	// to get their limited editions.
	OneTimePrintingAuthorizationMint ag_solanago.PublicKey
}

func (MasterEditionV1) MarshalWithEncoder

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

func (*MasterEditionV1) UnmarshalWithDecoder

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

type MasterEditionV2

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

func (MasterEditionV2) MarshalWithEncoder

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

func (*MasterEditionV2) UnmarshalWithDecoder

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

type Metadata

type Metadata struct {
	Key             Key
	UpdateAuthority ag_solanago.PublicKey
	Mint            ag_solanago.PublicKey
	Data            Data

	// Immutable, once flipped, all sales of this metadata are considered secondary.
	PrimarySaleHappened bool

	// Whether or not the data struct is mutable, default is not
	IsMutable bool

	// nonce for easy calculation of editions, if present
	EditionNonce *uint8 `bin:"optional"`

	// Since we cannot easily change Metadata, we add the new DataV2 fields here at the end.
	TokenStandard *TokenStandard `bin:"optional"`

	// Collection
	Collection *Collection `bin:"optional"`

	// Uses
	Uses *Uses `bin:"optional"`
}

func (Metadata) MarshalWithEncoder

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

func (*Metadata) UnmarshalWithDecoder

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

type MintNewEditionFromMasterEditionViaToken

type MintNewEditionFromMasterEditionViaToken struct {
	Args *MintNewEditionFromMasterEditionViaTokenArgs

	// [0] = [WRITE] newMetadataKey
	// ··········· New Metadata key (pda of ['metadata', program id, mint id])
	//
	// [1] = [WRITE] newEditionPDA
	// ··········· New Edition (pda of ['metadata', program id, mint id, 'edition'])
	//
	// [2] = [WRITE] masterRecordEditionV2
	// ··········· Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition'])
	//
	// [3] = [WRITE] mintOfNewToken
	// ··········· Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
	//
	// [4] = [WRITE] editionPDA
	// ··········· 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] mintAuthority
	// ··········· Mint authority of new mint
	//
	// [6] = [SIGNER] payer
	// ··········· payer
	//
	// [7] = [SIGNER] ownerOfToken
	// ··········· owner of token account containing master token (#8)
	//
	// [8] = [] tokenAccount
	// ··········· token account containing token from master metadata mint
	//
	// [9] = [] updateAuthorityInfo
	// ··········· Update authority info for new metadata
	//
	// [10] = [] masterRecordMetadata
	// ··········· Master record metadata account
	//
	// [11] = [] tokenProgram
	// ··········· Token program
	//
	// [12] = [] system
	// ··········· System program
	//
	// [13] = [] rent
	// ··········· Rent info
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Given a token account containing the master edition token to prove authority, and a brand new non-metadata-ed mint with one token make a new Metadata + Edition that is a child of the master edition denoted by this authority token.

func NewMintNewEditionFromMasterEditionViaTokenInstruction

func NewMintNewEditionFromMasterEditionViaTokenInstruction(

	args MintNewEditionFromMasterEditionViaTokenArgs,

	newMetadataKey ag_solanago.PublicKey,
	newEditionPDA ag_solanago.PublicKey,
	masterRecordEditionV2 ag_solanago.PublicKey,
	mintOfNewToken ag_solanago.PublicKey,
	editionPDA ag_solanago.PublicKey,
	mintAuthority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	ownerOfToken ag_solanago.PublicKey,
	tokenAccount ag_solanago.PublicKey,
	updateAuthorityInfo ag_solanago.PublicKey,
	masterRecordMetadata ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	system ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *MintNewEditionFromMasterEditionViaToken

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

func NewMintNewEditionFromMasterEditionViaTokenInstructionBuilder

func NewMintNewEditionFromMasterEditionViaTokenInstructionBuilder() *MintNewEditionFromMasterEditionViaToken

NewMintNewEditionFromMasterEditionViaTokenInstructionBuilder creates a new `MintNewEditionFromMasterEditionViaToken` instruction builder.

func (MintNewEditionFromMasterEditionViaToken) Build

func (*MintNewEditionFromMasterEditionViaToken) EncodeToTree

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

func (*MintNewEditionFromMasterEditionViaToken) GetEditionPDAAccount

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

GetEditionPDAAccount gets the "editionPDA" account. 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) GetMasterRecordEditionV2Account

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

GetMasterRecordEditionV2Account gets the "masterRecordEditionV2" account. Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition'])

func (*MintNewEditionFromMasterEditionViaToken) GetMasterRecordMetadataAccount

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

GetMasterRecordMetadataAccount gets the "masterRecordMetadata" account. Master record metadata account

func (*MintNewEditionFromMasterEditionViaToken) GetMintAuthorityAccount

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

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

func (*MintNewEditionFromMasterEditionViaToken) GetMintOfNewTokenAccount

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

GetMintOfNewTokenAccount gets the "mintOfNewToken" account. Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY

func (*MintNewEditionFromMasterEditionViaToken) GetNewEditionPDAAccount

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

GetNewEditionPDAAccount gets the "newEditionPDA" account. New Edition (pda of ['metadata', program id, mint id, 'edition'])

func (*MintNewEditionFromMasterEditionViaToken) GetNewMetadataKeyAccount

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

GetNewMetadataKeyAccount gets the "newMetadataKey" account. New Metadata key (pda of ['metadata', program id, mint id])

func (*MintNewEditionFromMasterEditionViaToken) GetOwnerOfTokenAccount

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

GetOwnerOfTokenAccount gets the "ownerOfToken" account. owner of token account containing master token (#8)

func (*MintNewEditionFromMasterEditionViaToken) GetPayerAccount

GetPayerAccount gets the "payer" account. payer

func (*MintNewEditionFromMasterEditionViaToken) GetRentAccount added in v0.2.0

GetRentAccount gets the "rent" account. Rent info

func (*MintNewEditionFromMasterEditionViaToken) GetSystemAccount added in v0.2.0

GetSystemAccount gets the "system" account. System program

func (*MintNewEditionFromMasterEditionViaToken) GetTokenAccount

GetTokenAccount gets the "tokenAccount" account. token account containing token from master metadata mint

func (*MintNewEditionFromMasterEditionViaToken) GetTokenProgramAccount

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

GetTokenProgramAccount gets the "tokenProgram" account. Token program

func (*MintNewEditionFromMasterEditionViaToken) GetUpdateAuthorityInfoAccount

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

GetUpdateAuthorityInfoAccount gets the "updateAuthorityInfo" account. Update authority info for new metadata

func (MintNewEditionFromMasterEditionViaToken) MarshalWithEncoder

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

func (*MintNewEditionFromMasterEditionViaToken) SetArgs

SetArgs sets the "args" parameter.

func (*MintNewEditionFromMasterEditionViaToken) SetEditionPDAAccount

SetEditionPDAAccount sets the "editionPDA" account. 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) SetMasterRecordEditionV2Account

func (inst *MintNewEditionFromMasterEditionViaToken) SetMasterRecordEditionV2Account(masterRecordEditionV2 ag_solanago.PublicKey) *MintNewEditionFromMasterEditionViaToken

SetMasterRecordEditionV2Account sets the "masterRecordEditionV2" account. Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition'])

func (*MintNewEditionFromMasterEditionViaToken) SetMasterRecordMetadataAccount

func (inst *MintNewEditionFromMasterEditionViaToken) SetMasterRecordMetadataAccount(masterRecordMetadata ag_solanago.PublicKey) *MintNewEditionFromMasterEditionViaToken

SetMasterRecordMetadataAccount sets the "masterRecordMetadata" account. Master record metadata account

func (*MintNewEditionFromMasterEditionViaToken) SetMintAuthorityAccount

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

func (*MintNewEditionFromMasterEditionViaToken) SetMintOfNewTokenAccount

SetMintOfNewTokenAccount sets the "mintOfNewToken" account. Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY

func (*MintNewEditionFromMasterEditionViaToken) SetNewEditionPDAAccount

SetNewEditionPDAAccount sets the "newEditionPDA" account. New Edition (pda of ['metadata', program id, mint id, 'edition'])

func (*MintNewEditionFromMasterEditionViaToken) SetNewMetadataKeyAccount

SetNewMetadataKeyAccount sets the "newMetadataKey" account. New Metadata key (pda of ['metadata', program id, mint id])

func (*MintNewEditionFromMasterEditionViaToken) SetOwnerOfTokenAccount

SetOwnerOfTokenAccount sets the "ownerOfToken" account. owner of token account containing master token (#8)

func (*MintNewEditionFromMasterEditionViaToken) SetPayerAccount

SetPayerAccount sets the "payer" account. payer

func (*MintNewEditionFromMasterEditionViaToken) SetRentAccount added in v0.2.0

SetRentAccount sets the "rent" account. Rent info

func (*MintNewEditionFromMasterEditionViaToken) SetSystemAccount added in v0.2.0

SetSystemAccount sets the "system" account. System program

func (*MintNewEditionFromMasterEditionViaToken) SetTokenAccount

SetTokenAccount sets the "tokenAccount" account. token account containing token from master metadata mint

func (*MintNewEditionFromMasterEditionViaToken) SetTokenProgramAccount

SetTokenProgramAccount sets the "tokenProgram" account. Token program

func (*MintNewEditionFromMasterEditionViaToken) SetUpdateAuthorityInfoAccount

func (inst *MintNewEditionFromMasterEditionViaToken) SetUpdateAuthorityInfoAccount(updateAuthorityInfo ag_solanago.PublicKey) *MintNewEditionFromMasterEditionViaToken

SetUpdateAuthorityInfoAccount sets the "updateAuthorityInfo" account. Update authority info for new metadata

func (*MintNewEditionFromMasterEditionViaToken) UnmarshalWithDecoder

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

func (*MintNewEditionFromMasterEditionViaToken) Validate

func (MintNewEditionFromMasterEditionViaToken) ValidateAndBuild

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

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

type MintNewEditionFromMasterEditionViaTokenArgs

type MintNewEditionFromMasterEditionViaTokenArgs struct {
	Edition uint64
}

func (MintNewEditionFromMasterEditionViaTokenArgs) MarshalWithEncoder

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

func (*MintNewEditionFromMasterEditionViaTokenArgs) UnmarshalWithDecoder

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

type MintNewEditionFromMasterEditionViaVaultProxy

type MintNewEditionFromMasterEditionViaVaultProxy struct {
	Args *MintNewEditionFromMasterEditionViaTokenArgs

	// [0] = [WRITE] newMetadataKey
	// ··········· New Metadata key (pda of ['metadata', program id, mint id])
	//
	// [1] = [WRITE] newEditionPDA
	// ··········· New Edition (pda of ['metadata', program id, mint id, 'edition'])
	//
	// [2] = [WRITE] masterRecordEditionV2
	// ··········· Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition']
	//
	// [3] = [WRITE] mintOfNewToken
	// ··········· Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY
	//
	// [4] = [WRITE] editionPDA
	// ··········· 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] mintAuthority
	// ··········· Mint authority of new mint
	//
	// [6] = [SIGNER] payer
	// ··········· payer
	//
	// [7] = [SIGNER] vaultAuthority
	// ··········· Vault authority
	//
	// [8] = [] safetyDepositTokenStore
	// ··········· Safety deposit token store account
	//
	// [9] = [] safetyDepositBox
	// ··········· Safety deposit box
	//
	// [10] = [] vault
	// ··········· Vault
	//
	// [11] = [] updateAuthorityInfo
	// ··········· Update authority info for new metadata
	//
	// [12] = [] masterRecordMetadata
	// ··········· Master record metadata account
	//
	// [13] = [] tokenProgram
	// ··········· Token program
	//
	// [14] = [] tokenVaultProgram
	// ··········· Token vault program
	//
	// [15] = [] system
	// ··········· System program
	//
	// [16] = [] rent
	// ··········· Rent info
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Proxy Call to Mint Edition using a Store Token Account as a Vault Authority.

func NewMintNewEditionFromMasterEditionViaVaultProxyInstruction

func NewMintNewEditionFromMasterEditionViaVaultProxyInstruction(

	args MintNewEditionFromMasterEditionViaTokenArgs,

	newMetadataKey ag_solanago.PublicKey,
	newEditionPDA ag_solanago.PublicKey,
	masterRecordEditionV2 ag_solanago.PublicKey,
	mintOfNewToken ag_solanago.PublicKey,
	editionPDA ag_solanago.PublicKey,
	mintAuthority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	vaultAuthority ag_solanago.PublicKey,
	safetyDepositTokenStore ag_solanago.PublicKey,
	safetyDepositBox ag_solanago.PublicKey,
	vault ag_solanago.PublicKey,
	updateAuthorityInfo ag_solanago.PublicKey,
	masterRecordMetadata ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	tokenVaultProgram ag_solanago.PublicKey,
	system ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy

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

func NewMintNewEditionFromMasterEditionViaVaultProxyInstructionBuilder

func NewMintNewEditionFromMasterEditionViaVaultProxyInstructionBuilder() *MintNewEditionFromMasterEditionViaVaultProxy

NewMintNewEditionFromMasterEditionViaVaultProxyInstructionBuilder creates a new `MintNewEditionFromMasterEditionViaVaultProxy` instruction builder.

func (MintNewEditionFromMasterEditionViaVaultProxy) Build

func (*MintNewEditionFromMasterEditionViaVaultProxy) EncodeToTree

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetEditionPDAAccount

GetEditionPDAAccount gets the "editionPDA" account. 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) GetMasterRecordEditionV2Account

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

GetMasterRecordEditionV2Account gets the "masterRecordEditionV2" account. Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition']

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetMasterRecordMetadataAccount

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

GetMasterRecordMetadataAccount gets the "masterRecordMetadata" account. Master record metadata account

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetMintAuthorityAccount

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

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

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetMintOfNewTokenAccount

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

GetMintOfNewTokenAccount gets the "mintOfNewToken" account. Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetNewEditionPDAAccount

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

GetNewEditionPDAAccount gets the "newEditionPDA" account. New Edition (pda of ['metadata', program id, mint id, 'edition'])

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetNewMetadataKeyAccount

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

GetNewMetadataKeyAccount gets the "newMetadataKey" account. New Metadata key (pda of ['metadata', program id, mint id])

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetPayerAccount

GetPayerAccount gets the "payer" account. payer

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetRentAccount added in v0.2.0

GetRentAccount gets the "rent" account. Rent info

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetSafetyDepositBoxAccount

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

GetSafetyDepositBoxAccount gets the "safetyDepositBox" account. Safety deposit box

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetSafetyDepositTokenStoreAccount

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

GetSafetyDepositTokenStoreAccount gets the "safetyDepositTokenStore" account. Safety deposit token store account

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetSystemAccount added in v0.2.0

GetSystemAccount gets the "system" account. System program

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetTokenProgramAccount

GetTokenProgramAccount gets the "tokenProgram" account. Token program

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetTokenVaultProgramAccount

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

GetTokenVaultProgramAccount gets the "tokenVaultProgram" account. Token vault program

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetUpdateAuthorityInfoAccount

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

GetUpdateAuthorityInfoAccount gets the "updateAuthorityInfo" account. Update authority info for new metadata

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetVaultAccount

GetVaultAccount gets the "vault" account. Vault

func (*MintNewEditionFromMasterEditionViaVaultProxy) GetVaultAuthorityAccount

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

GetVaultAuthorityAccount gets the "vaultAuthority" account. Vault authority

func (MintNewEditionFromMasterEditionViaVaultProxy) MarshalWithEncoder

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

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetArgs

SetArgs sets the "args" parameter.

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetEditionPDAAccount

SetEditionPDAAccount sets the "editionPDA" account. 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) SetMasterRecordEditionV2Account

func (inst *MintNewEditionFromMasterEditionViaVaultProxy) SetMasterRecordEditionV2Account(masterRecordEditionV2 ag_solanago.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy

SetMasterRecordEditionV2Account sets the "masterRecordEditionV2" account. Master Record Edition V2 (pda of ['metadata', program id, master metadata mint id, 'edition']

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetMasterRecordMetadataAccount

func (inst *MintNewEditionFromMasterEditionViaVaultProxy) SetMasterRecordMetadataAccount(masterRecordMetadata ag_solanago.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy

SetMasterRecordMetadataAccount sets the "masterRecordMetadata" account. Master record metadata account

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetMintAuthorityAccount

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

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetMintOfNewTokenAccount

SetMintOfNewTokenAccount sets the "mintOfNewToken" account. Mint of new token - THIS WILL TRANSFER AUTHORITY AWAY FROM THIS KEY

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetNewEditionPDAAccount

SetNewEditionPDAAccount sets the "newEditionPDA" account. New Edition (pda of ['metadata', program id, mint id, 'edition'])

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetNewMetadataKeyAccount

SetNewMetadataKeyAccount sets the "newMetadataKey" account. New Metadata key (pda of ['metadata', program id, mint id])

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetPayerAccount

SetPayerAccount sets the "payer" account. payer

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetRentAccount added in v0.2.0

SetRentAccount sets the "rent" account. Rent info

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetSafetyDepositBoxAccount

SetSafetyDepositBoxAccount sets the "safetyDepositBox" account. Safety deposit box

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetSafetyDepositTokenStoreAccount

func (inst *MintNewEditionFromMasterEditionViaVaultProxy) SetSafetyDepositTokenStoreAccount(safetyDepositTokenStore ag_solanago.PublicKey) *MintNewEditionFromMasterEditionViaVaultProxy

SetSafetyDepositTokenStoreAccount sets the "safetyDepositTokenStore" account. Safety deposit token store account

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetSystemAccount added in v0.2.0

SetSystemAccount sets the "system" account. System program

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetTokenProgramAccount

SetTokenProgramAccount sets the "tokenProgram" account. Token program

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetTokenVaultProgramAccount

SetTokenVaultProgramAccount sets the "tokenVaultProgram" account. Token vault program

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetUpdateAuthorityInfoAccount

SetUpdateAuthorityInfoAccount sets the "updateAuthorityInfo" account. Update authority info for new metadata

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetVaultAccount

SetVaultAccount sets the "vault" account. Vault

func (*MintNewEditionFromMasterEditionViaVaultProxy) SetVaultAuthorityAccount

SetVaultAuthorityAccount sets the "vaultAuthority" account. Vault authority

func (*MintNewEditionFromMasterEditionViaVaultProxy) UnmarshalWithDecoder

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

func (*MintNewEditionFromMasterEditionViaVaultProxy) Validate

func (MintNewEditionFromMasterEditionViaVaultProxy) ValidateAndBuild

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

type MintPrintingTokensViaTokenArgs

type MintPrintingTokensViaTokenArgs struct {
	Supply uint64
}

func (MintPrintingTokensViaTokenArgs) MarshalWithEncoder

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

func (*MintPrintingTokensViaTokenArgs) UnmarshalWithDecoder

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

type PuffMetadata

type PuffMetadata struct {

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

Puff a Metadata - make all of it's variable length fields (name/uri/symbol) a fixed length using a null character so that it can be found using offset searches by the RPC to make client lookups cheaper.

func NewPuffMetadataInstruction

func NewPuffMetadataInstruction(

	metadata ag_solanago.PublicKey) *PuffMetadata

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

func NewPuffMetadataInstructionBuilder

func NewPuffMetadataInstructionBuilder() *PuffMetadata

NewPuffMetadataInstructionBuilder creates a new `PuffMetadata` instruction builder.

func (PuffMetadata) Build

func (inst PuffMetadata) Build() *Instruction

func (*PuffMetadata) EncodeToTree

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

func (*PuffMetadata) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account. Metadata account

func (PuffMetadata) MarshalWithEncoder

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

func (*PuffMetadata) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account. Metadata account

func (*PuffMetadata) UnmarshalWithDecoder

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

func (*PuffMetadata) Validate

func (inst *PuffMetadata) Validate() error

func (PuffMetadata) ValidateAndBuild

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

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

type Reservation

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

func (Reservation) MarshalWithEncoder

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

func (*Reservation) UnmarshalWithDecoder

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

type ReservationListV1

type ReservationListV1 struct {
	Key Key

	// Present for reverse lookups
	MasterEdition ag_solanago.PublicKey

	// What supply counter was on master_edition when this reservation was created.
	SupplySnapshot *uint64 `bin:"optional"`
	Reservations   []ReservationV1
}

func (ReservationListV1) MarshalWithEncoder

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

func (*ReservationListV1) UnmarshalWithDecoder

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

type ReservationListV2

type ReservationListV2 struct {
	Key Key

	// Present for reverse lookups
	MasterEdition ag_solanago.PublicKey

	// What supply counter was on master_edition when this reservation was created.
	SupplySnapshot *uint64 `bin:"optional"`
	Reservations   []Reservation

	// How many reservations there are going to be, given on first set_reservation call
	TotalReservationSpots uint64

	// Cached count of reservation spots in the reservation vec to save on CPU.
	CurrentReservationSpots uint64
}

func (ReservationListV2) MarshalWithEncoder

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

func (*ReservationListV2) UnmarshalWithDecoder

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

type ReservationV1

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

func (ReservationV1) MarshalWithEncoder

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

func (*ReservationV1) UnmarshalWithDecoder

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

type RevokeCollectionAuthority added in v0.2.0

type RevokeCollectionAuthority struct {

	// [0] = [WRITE] useAuthorityRecordPDA
	// ··········· Use Authority Record PDA
	//
	// [1] = [WRITE] ownedToken
	// ··········· Owned Token Account Of Mint
	//
	// [2] = [] metadata
	// ··········· Metadata account
	//
	// [3] = [] metadataMint
	// ··········· Mint of Metadata
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Revoke account to call [verify_collection] on this NFT

func NewRevokeCollectionAuthorityInstruction added in v0.2.0

func NewRevokeCollectionAuthorityInstruction(

	useAuthorityRecordPDA ag_solanago.PublicKey,
	ownedToken ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	metadataMint ag_solanago.PublicKey) *RevokeCollectionAuthority

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

func NewRevokeCollectionAuthorityInstructionBuilder added in v0.2.0

func NewRevokeCollectionAuthorityInstructionBuilder() *RevokeCollectionAuthority

NewRevokeCollectionAuthorityInstructionBuilder creates a new `RevokeCollectionAuthority` instruction builder.

func (RevokeCollectionAuthority) Build added in v0.2.0

func (inst RevokeCollectionAuthority) Build() *Instruction

func (*RevokeCollectionAuthority) EncodeToTree added in v0.2.0

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

func (*RevokeCollectionAuthority) GetMetadataAccount added in v0.2.0

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

GetMetadataAccount gets the "metadata" account. Metadata account

func (*RevokeCollectionAuthority) GetMetadataMintAccount added in v0.2.0

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

GetMetadataMintAccount gets the "metadataMint" account. Mint of Metadata

func (*RevokeCollectionAuthority) GetOwnedTokenAccount added in v0.2.0

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

GetOwnedTokenAccount gets the "ownedToken" account. Owned Token Account Of Mint

func (*RevokeCollectionAuthority) GetUseAuthorityRecordPDAAccount added in v0.2.0

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

GetUseAuthorityRecordPDAAccount gets the "useAuthorityRecordPDA" account. Use Authority Record PDA

func (RevokeCollectionAuthority) MarshalWithEncoder added in v0.2.0

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

func (*RevokeCollectionAuthority) SetMetadataAccount added in v0.2.0

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

SetMetadataAccount sets the "metadata" account. Metadata account

func (*RevokeCollectionAuthority) SetMetadataMintAccount added in v0.2.0

func (inst *RevokeCollectionAuthority) SetMetadataMintAccount(metadataMint ag_solanago.PublicKey) *RevokeCollectionAuthority

SetMetadataMintAccount sets the "metadataMint" account. Mint of Metadata

func (*RevokeCollectionAuthority) SetOwnedTokenAccount added in v0.2.0

func (inst *RevokeCollectionAuthority) SetOwnedTokenAccount(ownedToken ag_solanago.PublicKey) *RevokeCollectionAuthority

SetOwnedTokenAccount sets the "ownedToken" account. Owned Token Account Of Mint

func (*RevokeCollectionAuthority) SetUseAuthorityRecordPDAAccount added in v0.2.0

func (inst *RevokeCollectionAuthority) SetUseAuthorityRecordPDAAccount(useAuthorityRecordPDA ag_solanago.PublicKey) *RevokeCollectionAuthority

SetUseAuthorityRecordPDAAccount sets the "useAuthorityRecordPDA" account. Use Authority Record PDA

func (*RevokeCollectionAuthority) UnmarshalWithDecoder added in v0.2.0

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

func (*RevokeCollectionAuthority) Validate added in v0.2.0

func (inst *RevokeCollectionAuthority) Validate() error

func (RevokeCollectionAuthority) ValidateAndBuild added in v0.2.0

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

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

type RevokeUseAuthority added in v0.2.0

type RevokeUseAuthority struct {

	// [0] = [WRITE] useAuthorityRecordPDA
	// ··········· Use Authority Record PDA
	//
	// [1] = [WRITE] ownedToken
	// ··········· Owned Token Account Of Mint
	//
	// [2] = [SIGNER] owner
	// ··········· Owner
	//
	// [3] = [SIGNER] payer
	// ··········· Payer
	//
	// [4] = [] useAuthority
	// ··········· A Use Authority
	//
	// [5] = [] metadata
	// ··········· Metadata account
	//
	// [6] = [] metadataMint
	// ··········· Mint of Metadata
	//
	// [7] = [] tokenProgram
	// ··········· Token program
	//
	// [8] = [] system
	// ··········· System program
	//
	// [9] = [] rent
	// ··········· Rent info
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Revoke account to call `utilize` on this NFT

func NewRevokeUseAuthorityInstruction added in v0.2.0

func NewRevokeUseAuthorityInstruction(

	useAuthorityRecordPDA ag_solanago.PublicKey,
	ownedToken ag_solanago.PublicKey,
	owner ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	useAuthority ag_solanago.PublicKey,
	metadata ag_solanago.PublicKey,
	metadataMint ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	system ag_solanago.PublicKey,
	rent ag_solanago.PublicKey) *RevokeUseAuthority

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

func NewRevokeUseAuthorityInstructionBuilder added in v0.2.0

func NewRevokeUseAuthorityInstructionBuilder() *RevokeUseAuthority

NewRevokeUseAuthorityInstructionBuilder creates a new `RevokeUseAuthority` instruction builder.

func (RevokeUseAuthority) Build added in v0.2.0

func (inst RevokeUseAuthority) Build() *Instruction

func (*RevokeUseAuthority) EncodeToTree added in v0.2.0

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

func (*RevokeUseAuthority) GetMetadataAccount added in v0.2.0

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

GetMetadataAccount gets the "metadata" account. Metadata account

func (*RevokeUseAuthority) GetMetadataMintAccount added in v0.2.0

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

GetMetadataMintAccount gets the "metadataMint" account. Mint of Metadata

func (*RevokeUseAuthority) GetOwnedTokenAccount added in v0.2.0

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

GetOwnedTokenAccount gets the "ownedToken" account. Owned Token Account Of Mint

func (*RevokeUseAuthority) GetOwnerAccount added in v0.2.0

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

GetOwnerAccount gets the "owner" account. Owner

func (*RevokeUseAuthority) GetPayerAccount added in v0.2.0

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

GetPayerAccount gets the "payer" account. Payer

func (*RevokeUseAuthority) GetRentAccount added in v0.2.0

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

GetRentAccount gets the "rent" account. Rent info

func (*RevokeUseAuthority) GetSystemAccount added in v0.2.0

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

GetSystemAccount gets the "system" account. System program

func (*RevokeUseAuthority) GetTokenProgramAccount added in v0.2.0

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

GetTokenProgramAccount gets the "tokenProgram" account. Token program

func (*RevokeUseAuthority) GetUseAuthorityAccount added in v0.2.0

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

GetUseAuthorityAccount gets the "useAuthority" account. A Use Authority

func (*RevokeUseAuthority) GetUseAuthorityRecordPDAAccount added in v0.2.0

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

GetUseAuthorityRecordPDAAccount gets the "useAuthorityRecordPDA" account. Use Authority Record PDA

func (RevokeUseAuthority) MarshalWithEncoder added in v0.2.0

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

func (*RevokeUseAuthority) SetMetadataAccount added in v0.2.0

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

SetMetadataAccount sets the "metadata" account. Metadata account

func (*RevokeUseAuthority) SetMetadataMintAccount added in v0.2.0

func (inst *RevokeUseAuthority) SetMetadataMintAccount(metadataMint ag_solanago.PublicKey) *RevokeUseAuthority

SetMetadataMintAccount sets the "metadataMint" account. Mint of Metadata

func (*RevokeUseAuthority) SetOwnedTokenAccount added in v0.2.0

func (inst *RevokeUseAuthority) SetOwnedTokenAccount(ownedToken ag_solanago.PublicKey) *RevokeUseAuthority

SetOwnedTokenAccount sets the "ownedToken" account. Owned Token Account Of Mint

func (*RevokeUseAuthority) SetOwnerAccount added in v0.2.0

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

SetOwnerAccount sets the "owner" account. Owner

func (*RevokeUseAuthority) SetPayerAccount added in v0.2.0

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

SetPayerAccount sets the "payer" account. Payer

func (*RevokeUseAuthority) SetRentAccount added in v0.2.0

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

SetRentAccount sets the "rent" account. Rent info

func (*RevokeUseAuthority) SetSystemAccount added in v0.2.0

func (inst *RevokeUseAuthority) SetSystemAccount(system ag_solanago.PublicKey) *RevokeUseAuthority

SetSystemAccount sets the "system" account. System program

func (*RevokeUseAuthority) SetTokenProgramAccount added in v0.2.0

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

SetTokenProgramAccount sets the "tokenProgram" account. Token program

func (*RevokeUseAuthority) SetUseAuthorityAccount added in v0.2.0

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

SetUseAuthorityAccount sets the "useAuthority" account. A Use Authority

func (*RevokeUseAuthority) SetUseAuthorityRecordPDAAccount added in v0.2.0

func (inst *RevokeUseAuthority) SetUseAuthorityRecordPDAAccount(useAuthorityRecordPDA ag_solanago.PublicKey) *RevokeUseAuthority

SetUseAuthorityRecordPDAAccount sets the "useAuthorityRecordPDA" account. Use Authority Record PDA

func (*RevokeUseAuthority) UnmarshalWithDecoder added in v0.2.0

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

func (*RevokeUseAuthority) Validate added in v0.2.0

func (inst *RevokeUseAuthority) Validate() error

func (RevokeUseAuthority) ValidateAndBuild added in v0.2.0

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

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

type SetReservationListArgs

type SetReservationListArgs struct {
	// If set, means that no more than this number of editions can ever be minted. This is immutable.
	Reservations []Reservation

	// should only be present on the very first call to set reservation list.
	TotalReservationSpots *uint64 `bin:"optional"`

	// Where in the reservation list you want to insert this slice of reservations
	Offset uint64

	// What the total spot offset is in the reservation list from the beginning to your slice of reservations.
	// So if is going to be 4 total editions eventually reserved between your slice and the beginning of the array,
	// split between 2 reservation entries, the offset variable above would be "2" since you start at entry 2 in 0 indexed array
	// (first 2 taking 0 and 1) and because they each have 2 spots taken, this variable would be 4.
	TotalSpotOffset uint64
}

func (SetReservationListArgs) MarshalWithEncoder

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

func (*SetReservationListArgs) UnmarshalWithDecoder

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

type SignMetadata

type SignMetadata struct {

	// [0] = [WRITE] metadataPDA
	// ··········· Metadata (pda of ['metadata', program id, mint id])
	//
	// [1] = [SIGNER] creator
	// ··········· Creator
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Sign a piece of metadata that has you as an unverified creator so that it is now verified.

func NewSignMetadataInstruction

func NewSignMetadataInstruction(

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

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

func NewSignMetadataInstructionBuilder

func NewSignMetadataInstructionBuilder() *SignMetadata

NewSignMetadataInstructionBuilder creates a new `SignMetadata` instruction builder.

func (SignMetadata) Build

func (inst SignMetadata) Build() *Instruction

func (*SignMetadata) EncodeToTree

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

func (*SignMetadata) GetCreatorAccount

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

GetCreatorAccount gets the "creator" account. Creator

func (*SignMetadata) GetMetadataPDAAccount

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

GetMetadataPDAAccount gets the "metadataPDA" account. Metadata (pda of ['metadata', program id, mint id])

func (SignMetadata) MarshalWithEncoder

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

func (*SignMetadata) SetCreatorAccount

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

SetCreatorAccount sets the "creator" account. Creator

func (*SignMetadata) SetMetadataPDAAccount

func (inst *SignMetadata) SetMetadataPDAAccount(metadataPDA ag_solanago.PublicKey) *SignMetadata

SetMetadataPDAAccount sets the "metadataPDA" account. Metadata (pda of ['metadata', program id, mint id])

func (*SignMetadata) UnmarshalWithDecoder

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

func (*SignMetadata) Validate

func (inst *SignMetadata) Validate() error

func (SignMetadata) ValidateAndBuild

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

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

type TokenStandard added in v0.2.0

type TokenStandard ag_binary.BorshEnum
const (
	// This is a master edition
	TokenStandardNonFungible TokenStandard = iota

	// A token with metadata that can also have attrributes
	TokenStandardFungibleAsset

	// A token with simple metadata
	TokenStandardFungible

	// This is a limited edition
	TokenStandardNonFungibleEdition
)

func (TokenStandard) String added in v0.2.0

func (value TokenStandard) String() string

type UnverifyCollection added in v0.2.0

type UnverifyCollection struct {

	// [0] = [WRITE] metadata
	// ··········· Metadata account
	//
	// [1] = [SIGNER] collectionAuthority
	// ··········· Collection Authority
	//
	// [2] = [SIGNER] payer
	// ··········· payer
	//
	// [3] = [] collectionMint
	// ··········· Mint of the Collection
	//
	// [4] = [] collectionMetadata
	// ··········· Metadata Account of the Collection
	//
	// [5] = [] masterEditionV2
	// ··········· MasterEdition2 Account of the Collection Token
	ag_solanago.AccountMetaSlice `bin:"-"`
}

If a MetadataAccount Has a Collection allow an Authority of the Collection to unverify an NFT in a Collection

func NewUnverifyCollectionInstruction added in v0.2.0

func NewUnverifyCollectionInstruction(

	metadata ag_solanago.PublicKey,
	collectionAuthority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	collectionMint ag_solanago.PublicKey,
	collectionMetadata ag_solanago.PublicKey,
	masterEditionV2 ag_solanago.PublicKey) *UnverifyCollection

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

func NewUnverifyCollectionInstructionBuilder added in v0.2.0

func NewUnverifyCollectionInstructionBuilder() *UnverifyCollection

NewUnverifyCollectionInstructionBuilder creates a new `UnverifyCollection` instruction builder.

func (UnverifyCollection) Build added in v0.2.0

func (inst UnverifyCollection) Build() *Instruction

func (*UnverifyCollection) EncodeToTree added in v0.2.0

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

func (*UnverifyCollection) GetCollectionAuthorityAccount added in v0.2.0

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

GetCollectionAuthorityAccount gets the "collectionAuthority" account. Collection Authority

func (*UnverifyCollection) GetCollectionMetadataAccount added in v0.2.0

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

GetCollectionMetadataAccount gets the "collectionMetadata" account. Metadata Account of the Collection

func (*UnverifyCollection) GetCollectionMintAccount added in v0.2.0

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

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

func (*UnverifyCollection) GetMasterEditionV2Account added in v0.2.0

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

GetMasterEditionV2Account gets the "masterEditionV2" account. MasterEdition2 Account of the Collection Token

func (*UnverifyCollection) GetMetadataAccount added in v0.2.0

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

GetMetadataAccount gets the "metadata" account. Metadata account

func (*UnverifyCollection) GetPayerAccount added in v0.2.0

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

GetPayerAccount gets the "payer" account. payer

func (UnverifyCollection) MarshalWithEncoder added in v0.2.0

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

func (*UnverifyCollection) SetCollectionAuthorityAccount added in v0.2.0

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

SetCollectionAuthorityAccount sets the "collectionAuthority" account. Collection Authority

func (*UnverifyCollection) SetCollectionMetadataAccount added in v0.2.0

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

SetCollectionMetadataAccount sets the "collectionMetadata" account. Metadata Account of the Collection

func (*UnverifyCollection) SetCollectionMintAccount added in v0.2.0

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

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

func (*UnverifyCollection) SetMasterEditionV2Account added in v0.2.0

func (inst *UnverifyCollection) SetMasterEditionV2Account(masterEditionV2 ag_solanago.PublicKey) *UnverifyCollection

SetMasterEditionV2Account sets the "masterEditionV2" account. MasterEdition2 Account of the Collection Token

func (*UnverifyCollection) SetMetadataAccount added in v0.2.0

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

SetMetadataAccount sets the "metadata" account. Metadata account

func (*UnverifyCollection) SetPayerAccount added in v0.2.0

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

SetPayerAccount sets the "payer" account. payer

func (*UnverifyCollection) UnmarshalWithDecoder added in v0.2.0

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

func (*UnverifyCollection) Validate added in v0.2.0

func (inst *UnverifyCollection) Validate() error

func (UnverifyCollection) ValidateAndBuild added in v0.2.0

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

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

type UpdateMetadataAccount

type UpdateMetadataAccount struct {
	Args *UpdateMetadataAccountArgs

	// [0] = [WRITE] metadata
	// ··········· Metadata account
	//
	// [1] = [SIGNER] updateAuthorityKey
	// ··········· Update authority key
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Update a Metadata

func NewUpdateMetadataAccountInstruction

func NewUpdateMetadataAccountInstruction(

	args UpdateMetadataAccountArgs,

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

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

func NewUpdateMetadataAccountInstructionBuilder

func NewUpdateMetadataAccountInstructionBuilder() *UpdateMetadataAccount

NewUpdateMetadataAccountInstructionBuilder creates a new `UpdateMetadataAccount` instruction builder.

func (UpdateMetadataAccount) Build

func (inst UpdateMetadataAccount) Build() *Instruction

func (*UpdateMetadataAccount) EncodeToTree

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

func (*UpdateMetadataAccount) GetMetadataAccount

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

GetMetadataAccount gets the "metadata" account. Metadata account

func (*UpdateMetadataAccount) GetUpdateAuthorityKeyAccount

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

GetUpdateAuthorityKeyAccount gets the "updateAuthorityKey" account. Update authority key

func (UpdateMetadataAccount) MarshalWithEncoder

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

func (*UpdateMetadataAccount) SetArgs

SetArgs sets the "args" parameter.

func (*UpdateMetadataAccount) SetMetadataAccount

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

SetMetadataAccount sets the "metadata" account. Metadata account

func (*UpdateMetadataAccount) SetUpdateAuthorityKeyAccount

func (inst *UpdateMetadataAccount) SetUpdateAuthorityKeyAccount(updateAuthorityKey ag_solanago.PublicKey) *UpdateMetadataAccount

SetUpdateAuthorityKeyAccount sets the "updateAuthorityKey" account. Update authority key

func (*UpdateMetadataAccount) UnmarshalWithDecoder

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

func (*UpdateMetadataAccount) Validate

func (inst *UpdateMetadataAccount) Validate() error

func (UpdateMetadataAccount) ValidateAndBuild

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

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

type UpdateMetadataAccountArgs

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

func (UpdateMetadataAccountArgs) MarshalWithEncoder

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

func (*UpdateMetadataAccountArgs) UnmarshalWithDecoder

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

type UpdateMetadataAccountArgsV2 added in v0.2.0

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

func (UpdateMetadataAccountArgsV2) MarshalWithEncoder added in v0.2.0

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

func (*UpdateMetadataAccountArgsV2) UnmarshalWithDecoder added in v0.2.0

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

type UpdateMetadataAccountV2 added in v0.2.0

type UpdateMetadataAccountV2 struct {
	Args *UpdateMetadataAccountArgsV2

	// [0] = [WRITE] metadata
	// ··········· Metadata account
	//
	// [1] = [SIGNER] updateAuthorityKey
	// ··········· Update authority key
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Update a Metadata with is_mutable as a parameter

func NewUpdateMetadataAccountV2Instruction added in v0.2.0

func NewUpdateMetadataAccountV2Instruction(

	args UpdateMetadataAccountArgsV2,

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

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

func NewUpdateMetadataAccountV2InstructionBuilder added in v0.2.0

func NewUpdateMetadataAccountV2InstructionBuilder() *UpdateMetadataAccountV2

NewUpdateMetadataAccountV2InstructionBuilder creates a new `UpdateMetadataAccountV2` instruction builder.

func (UpdateMetadataAccountV2) Build added in v0.2.0

func (inst UpdateMetadataAccountV2) Build() *Instruction

func (*UpdateMetadataAccountV2) EncodeToTree added in v0.2.0

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

func (*UpdateMetadataAccountV2) GetMetadataAccount added in v0.2.0

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

GetMetadataAccount gets the "metadata" account. Metadata account

func (*UpdateMetadataAccountV2) GetUpdateAuthorityKeyAccount added in v0.2.0

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

GetUpdateAuthorityKeyAccount gets the "updateAuthorityKey" account. Update authority key

func (UpdateMetadataAccountV2) MarshalWithEncoder added in v0.2.0

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

func (*UpdateMetadataAccountV2) SetArgs added in v0.2.0

SetArgs sets the "args" parameter.

func (*UpdateMetadataAccountV2) SetMetadataAccount added in v0.2.0

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

SetMetadataAccount sets the "metadata" account. Metadata account

func (*UpdateMetadataAccountV2) SetUpdateAuthorityKeyAccount added in v0.2.0

func (inst *UpdateMetadataAccountV2) SetUpdateAuthorityKeyAccount(updateAuthorityKey ag_solanago.PublicKey) *UpdateMetadataAccountV2

SetUpdateAuthorityKeyAccount sets the "updateAuthorityKey" account. Update authority key

func (*UpdateMetadataAccountV2) UnmarshalWithDecoder added in v0.2.0

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

func (*UpdateMetadataAccountV2) Validate added in v0.2.0

func (inst *UpdateMetadataAccountV2) Validate() error

func (UpdateMetadataAccountV2) ValidateAndBuild added in v0.2.0

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

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

type UpdatePrimarySaleHappenedViaToken

type UpdatePrimarySaleHappenedViaToken struct {

	// [0] = [WRITE] metadataKeyPDA
	// ··········· Metadata key (pda of ['metadata', program id, mint id])
	//
	// [1] = [SIGNER] owner
	// ··········· Owner on the token account
	//
	// [2] = [] container
	// ··········· Account containing tokens from the metadata's mint
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Allows updating the primary sale boolean on Metadata solely through owning an account containing a token from the metadata's mint and being a signer on this transaction. A sort of limited authority for limited update capability that is required for things like Metaplex to work without needing full authority passing.

func NewUpdatePrimarySaleHappenedViaTokenInstruction

func NewUpdatePrimarySaleHappenedViaTokenInstruction(

	metadataKeyPDA ag_solanago.PublicKey,
	owner ag_solanago.PublicKey,
	container ag_solanago.PublicKey) *UpdatePrimarySaleHappenedViaToken

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

func NewUpdatePrimarySaleHappenedViaTokenInstructionBuilder

func NewUpdatePrimarySaleHappenedViaTokenInstructionBuilder() *UpdatePrimarySaleHappenedViaToken

NewUpdatePrimarySaleHappenedViaTokenInstructionBuilder creates a new `UpdatePrimarySaleHappenedViaToken` instruction builder.

func (UpdatePrimarySaleHappenedViaToken) Build

func (*UpdatePrimarySaleHappenedViaToken) EncodeToTree

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

func (*UpdatePrimarySaleHappenedViaToken) GetContainerAccount

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

GetContainerAccount gets the "container" account. Account containing tokens from the metadata's mint

func (*UpdatePrimarySaleHappenedViaToken) GetMetadataKeyPDAAccount

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

GetMetadataKeyPDAAccount gets the "metadataKeyPDA" account. Metadata key (pda of ['metadata', program id, mint id])

func (*UpdatePrimarySaleHappenedViaToken) GetOwnerAccount

GetOwnerAccount gets the "owner" account. Owner on the token account

func (UpdatePrimarySaleHappenedViaToken) MarshalWithEncoder

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

func (*UpdatePrimarySaleHappenedViaToken) SetContainerAccount

SetContainerAccount sets the "container" account. Account containing tokens from the metadata's mint

func (*UpdatePrimarySaleHappenedViaToken) SetMetadataKeyPDAAccount

func (inst *UpdatePrimarySaleHappenedViaToken) SetMetadataKeyPDAAccount(metadataKeyPDA ag_solanago.PublicKey) *UpdatePrimarySaleHappenedViaToken

SetMetadataKeyPDAAccount sets the "metadataKeyPDA" account. Metadata key (pda of ['metadata', program id, mint id])

func (*UpdatePrimarySaleHappenedViaToken) SetOwnerAccount

SetOwnerAccount sets the "owner" account. Owner on the token account

func (*UpdatePrimarySaleHappenedViaToken) UnmarshalWithDecoder

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

func (*UpdatePrimarySaleHappenedViaToken) Validate

func (inst *UpdatePrimarySaleHappenedViaToken) Validate() error

func (UpdatePrimarySaleHappenedViaToken) ValidateAndBuild

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

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

type UseAuthorityRecord added in v0.2.0

type UseAuthorityRecord struct {
	Key         Key
	AllowedUses uint64
}

func (UseAuthorityRecord) MarshalWithEncoder added in v0.2.0

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

func (*UseAuthorityRecord) UnmarshalWithDecoder added in v0.2.0

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

type UseMethod added in v0.2.0

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

func (UseMethod) String added in v0.2.0

func (value UseMethod) String() string

type Uses added in v0.2.0

type Uses struct {
	UseMethod UseMethod
	Remaining uint64
	Total     uint64
}

func (Uses) MarshalWithEncoder added in v0.2.0

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

func (*Uses) UnmarshalWithDecoder added in v0.2.0

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

type Utilize added in v0.2.0

type Utilize struct {
	Args *UtilizeArgs

	// [0] = [WRITE] metadata
	// ··········· Metadata account
	//
	// [1] = [WRITE] tokenAccount
	// ··········· Token Account Of NFT
	//
	// [2] = [WRITE] metadataMint
	// ··········· Mint of the Metadata
	//
	// [3] = [SIGNER] useAuthority
	// ··········· A Use Authority / Can be the current Owner of the NFT
	//
	// [4] = [SIGNER] payer
	// ··········· Payer
	//
	// [5] = [] owner
	// ··········· Owner
	//
	// [6] = [] tokenProgram
	// ··········· Token program
	//
	// [7] = [] associatedTokenProgram
	// ··········· Associated Token program
	//
	// [8] = [] system
	// ··········· System program
	//
	// [9] = [] rent
	// ··········· Rent info
	//
	// [10] = [WRITE] useAuthorityRecord
	// ··········· Use Authority Record PDA If present the program Assumes a delegated use authority
	ag_solanago.AccountMetaSlice `bin:"-"`
}

Utilize or Use an NFT , burns the NFT and returns the lamports to the update authority if the use method is burn and its out of uses. Use Authority can be the Holder of the NFT, or a Delegated Use Authority.

func NewUtilizeInstruction added in v0.2.0

func NewUtilizeInstruction(

	args UtilizeArgs,

	metadata ag_solanago.PublicKey,
	tokenAccount ag_solanago.PublicKey,
	metadataMint ag_solanago.PublicKey,
	useAuthority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	owner ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	associatedTokenProgram ag_solanago.PublicKey,
	system ag_solanago.PublicKey,
	rent ag_solanago.PublicKey,
	useAuthorityRecord ag_solanago.PublicKey) *Utilize

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

func NewUtilizeInstructionBuilder added in v0.2.0

func NewUtilizeInstructionBuilder() *Utilize

NewUtilizeInstructionBuilder creates a new `Utilize` instruction builder.

func (Utilize) Build added in v0.2.0

func (inst Utilize) Build() *Instruction

func (*Utilize) EncodeToTree added in v0.2.0

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

func (*Utilize) GetAssociatedTokenProgramAccount added in v0.2.0

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

GetAssociatedTokenProgramAccount gets the "associatedTokenProgram" account. Associated Token program

func (*Utilize) GetMetadataAccount added in v0.2.0

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

GetMetadataAccount gets the "metadata" account. Metadata account

func (*Utilize) GetMetadataMintAccount added in v0.2.0

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

GetMetadataMintAccount gets the "metadataMint" account. Mint of the Metadata

func (*Utilize) GetOwnerAccount added in v0.2.0

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

GetOwnerAccount gets the "owner" account. Owner

func (*Utilize) GetPayerAccount added in v0.2.0

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

GetPayerAccount gets the "payer" account. Payer

func (*Utilize) GetRentAccount added in v0.2.0

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

GetRentAccount gets the "rent" account. Rent info

func (*Utilize) GetSystemAccount added in v0.2.0

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

GetSystemAccount gets the "system" account. System program

func (*Utilize) GetTokenAccount added in v0.2.0

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

GetTokenAccount gets the "tokenAccount" account. Token Account Of NFT

func (*Utilize) GetTokenProgramAccount added in v0.2.0

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

GetTokenProgramAccount gets the "tokenProgram" account. Token program

func (*Utilize) GetUseAuthorityAccount added in v0.2.0

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

GetUseAuthorityAccount gets the "useAuthority" account. A Use Authority / Can be the current Owner of the NFT

func (*Utilize) GetUseAuthorityRecordAccount added in v0.2.0

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

GetUseAuthorityRecordAccount gets the "useAuthorityRecord" account (optional). Use Authority Record PDA If present the program Assumes a delegated use authority

func (Utilize) MarshalWithEncoder added in v0.2.0

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

func (*Utilize) SetArgs added in v0.2.0

func (inst *Utilize) SetArgs(args UtilizeArgs) *Utilize

SetArgs sets the "args" parameter.

func (*Utilize) SetAssociatedTokenProgramAccount added in v0.2.0

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

SetAssociatedTokenProgramAccount sets the "associatedTokenProgram" account. Associated Token program

func (*Utilize) SetMetadataAccount added in v0.2.0

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

SetMetadataAccount sets the "metadata" account. Metadata account

func (*Utilize) SetMetadataMintAccount added in v0.2.0

func (inst *Utilize) SetMetadataMintAccount(metadataMint ag_solanago.PublicKey) *Utilize

SetMetadataMintAccount sets the "metadataMint" account. Mint of the Metadata

func (*Utilize) SetOwnerAccount added in v0.2.0

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

SetOwnerAccount sets the "owner" account. Owner

func (*Utilize) SetPayerAccount added in v0.2.0

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

SetPayerAccount sets the "payer" account. Payer

func (*Utilize) SetRentAccount added in v0.2.0

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

SetRentAccount sets the "rent" account. Rent info

func (*Utilize) SetSystemAccount added in v0.2.0

func (inst *Utilize) SetSystemAccount(system ag_solanago.PublicKey) *Utilize

SetSystemAccount sets the "system" account. System program

func (*Utilize) SetTokenAccount added in v0.2.0

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

SetTokenAccount sets the "tokenAccount" account. Token Account Of NFT

func (*Utilize) SetTokenProgramAccount added in v0.2.0

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

SetTokenProgramAccount sets the "tokenProgram" account. Token program

func (*Utilize) SetUseAuthorityAccount added in v0.2.0

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

SetUseAuthorityAccount sets the "useAuthority" account. A Use Authority / Can be the current Owner of the NFT

func (*Utilize) SetUseAuthorityRecordAccount added in v0.2.0

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

SetUseAuthorityRecordAccount sets the "useAuthorityRecord" account. Use Authority Record PDA If present the program Assumes a delegated use authority

func (*Utilize) UnmarshalWithDecoder added in v0.2.0

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

func (*Utilize) Validate added in v0.2.0

func (inst *Utilize) Validate() error

func (Utilize) ValidateAndBuild added in v0.2.0

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

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

type UtilizeArgs added in v0.2.0

type UtilizeArgs struct {
	NumberOfUses uint64
}

func (UtilizeArgs) MarshalWithEncoder added in v0.2.0

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

func (*UtilizeArgs) UnmarshalWithDecoder added in v0.2.0

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

type VerifyCollection added in v0.2.0

type VerifyCollection struct {

	// [0] = [WRITE] metadata
	// ··········· Metadata account
	//
	// [1] = [SIGNER] collectionUpdateAuthority
	// ··········· Collection Update authority
	//
	// [2] = [SIGNER] payer
	// ··········· payer
	//
	// [3] = [] collectionMint
	// ··········· Mint of the Collection
	//
	// [4] = [] collectionMetadata
	// ··········· Metadata Account of the Collection
	//
	// [5] = [] masterEditionV2
	// ··········· MasterEdition2 Account of the Collection Token
	ag_solanago.AccountMetaSlice `bin:"-"`
}

If a MetadataAccount Has a Collection allow the UpdateAuthority of the Collection to Verify the NFT Belongs in the Collection

func NewVerifyCollectionInstruction added in v0.2.0

func NewVerifyCollectionInstruction(

	metadata ag_solanago.PublicKey,
	collectionUpdateAuthority ag_solanago.PublicKey,
	payer ag_solanago.PublicKey,
	collectionMint ag_solanago.PublicKey,
	collectionMetadata ag_solanago.PublicKey,
	masterEditionV2 ag_solanago.PublicKey) *VerifyCollection

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

func NewVerifyCollectionInstructionBuilder added in v0.2.0

func NewVerifyCollectionInstructionBuilder() *VerifyCollection

NewVerifyCollectionInstructionBuilder creates a new `VerifyCollection` instruction builder.

func (VerifyCollection) Build added in v0.2.0

func (inst VerifyCollection) Build() *Instruction

func (*VerifyCollection) EncodeToTree added in v0.2.0

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

func (*VerifyCollection) GetCollectionMetadataAccount added in v0.2.0

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

GetCollectionMetadataAccount gets the "collectionMetadata" account. Metadata Account of the Collection

func (*VerifyCollection) GetCollectionMintAccount added in v0.2.0

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

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

func (*VerifyCollection) GetCollectionUpdateAuthorityAccount added in v0.2.0

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

GetCollectionUpdateAuthorityAccount gets the "collectionUpdateAuthority" account. Collection Update authority

func (*VerifyCollection) GetMasterEditionV2Account added in v0.2.0

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

GetMasterEditionV2Account gets the "masterEditionV2" account. MasterEdition2 Account of the Collection Token

func (*VerifyCollection) GetMetadataAccount added in v0.2.0

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

GetMetadataAccount gets the "metadata" account. Metadata account

func (*VerifyCollection) GetPayerAccount added in v0.2.0

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

GetPayerAccount gets the "payer" account. payer

func (VerifyCollection) MarshalWithEncoder added in v0.2.0

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

func (*VerifyCollection) SetCollectionMetadataAccount added in v0.2.0

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

SetCollectionMetadataAccount sets the "collectionMetadata" account. Metadata Account of the Collection

func (*VerifyCollection) SetCollectionMintAccount added in v0.2.0

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

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

func (*VerifyCollection) SetCollectionUpdateAuthorityAccount added in v0.2.0

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

SetCollectionUpdateAuthorityAccount sets the "collectionUpdateAuthority" account. Collection Update authority

func (*VerifyCollection) SetMasterEditionV2Account added in v0.2.0

func (inst *VerifyCollection) SetMasterEditionV2Account(masterEditionV2 ag_solanago.PublicKey) *VerifyCollection

SetMasterEditionV2Account sets the "masterEditionV2" account. MasterEdition2 Account of the Collection Token

func (*VerifyCollection) SetMetadataAccount added in v0.2.0

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

SetMetadataAccount sets the "metadata" account. Metadata account

func (*VerifyCollection) SetPayerAccount added in v0.2.0

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

SetPayerAccount sets the "payer" account. payer

func (*VerifyCollection) UnmarshalWithDecoder added in v0.2.0

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

func (*VerifyCollection) Validate added in v0.2.0

func (inst *VerifyCollection) Validate() error

func (VerifyCollection) ValidateAndBuild added in v0.2.0

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

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

Jump to

Keyboard shortcuts

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