token_metadata

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: MIT Imports: 9 Imported by: 9

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
)
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),
		},
	},
)
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 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:"-" borsh_skip:"true"`
}

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] = [] metadataAccount
	// ··········· Metadata account
	//
	// [6] = [] tokenProgram
	// ··········· Token program
	//
	// [7] = [] systemProgram
	// ··········· System program
	//
	// [8] = [] rentInfo
	// ··········· Rent info
	ag_solanago.AccountMetaSlice `bin:"-" borsh_skip:"true"`
}

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,
	metadataAccount ag_solanago.PublicKey,
	tokenProgram ag_solanago.PublicKey,
	systemProgram ag_solanago.PublicKey,
	rentInfo 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 "metadataAccount" 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) GetRentInfoAccount

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

GetRentInfoAccount gets the "rentInfo" account. Rent info

func (*CreateMasterEdition) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" 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(metadataAccount ag_solanago.PublicKey) *CreateMasterEdition

SetMetadataAccount sets the "metadataAccount" 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) SetRentInfoAccount

func (inst *CreateMasterEdition) SetRentInfoAccount(rentInfo ag_solanago.PublicKey) *CreateMasterEdition

SetRentInfoAccount sets the "rentInfo" account. Rent info

func (*CreateMasterEdition) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" 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 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] = [] systemProgram
	// ··········· System program
	//
	// [6] = [] rentInfo
	// ··········· Rent info
	ag_solanago.AccountMetaSlice `bin:"-" borsh_skip:"true"`
}

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,
	systemProgram ag_solanago.PublicKey,
	rentInfo 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) GetRentInfoAccount

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

GetRentInfoAccount gets the "rentInfo" account. Rent info

func (*CreateMetadataAccount) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" 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) SetRentInfoAccount

func (inst *CreateMetadataAccount) SetRentInfoAccount(rentInfo ag_solanago.PublicKey) *CreateMetadataAccount

SetRentInfoAccount sets the "rentInfo" account. Rent info

func (*CreateMetadataAccount) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" 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 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 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] = [] systemProgram
	// ··········· System program
	//
	// [11] = [] rentInfo
	// ··········· 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:"-" borsh_skip:"true"`
}

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,
	systemProgram ag_solanago.PublicKey,
	rentInfo 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) GetRentInfoAccount

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

GetRentInfoAccount gets the "rentInfo" account. Rent info

func (*DeprecatedCreateMasterEdition) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" 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) SetRentInfoAccount

SetRentInfoAccount sets the "rentInfo" account. Rent info

func (*DeprecatedCreateMasterEdition) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" 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] = [] systemProgram
	// ··········· System program
	//
	// [7] = [] rentInfo
	// ··········· Rent info
	ag_solanago.AccountMetaSlice `bin:"-" borsh_skip:"true"`
}

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,
	systemProgram ag_solanago.PublicKey,
	rentInfo 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) GetRentInfoAccount

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

GetRentInfoAccount gets the "rentInfo" 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) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" 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) SetRentInfoAccount

SetRentInfoAccount sets the "rentInfo" 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) SetSystemProgramAccount

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

SetSystemProgramAccount sets the "systemProgram" 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] = [] systemProgram
	// ··········· System program
	//
	// [14] = [] rentInfo
	// ··········· 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:"-" borsh_skip:"true"`
}

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,
	systemProgram ag_solanago.PublicKey,
	rentInfo 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) GetRentInfoAccount

GetRentInfoAccount gets the "rentInfo" account. Rent info

func (*DeprecatedMintNewEditionFromMasterEditionViaPrintingToken) GetReservationListAccount

GetReservationListAccount gets 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) GetSystemProgramAccount

GetSystemProgramAccount gets the "systemProgram" 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) SetRentInfoAccount

SetRentInfoAccount sets the "rentInfo" 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) SetSystemProgramAccount

SetSystemProgramAccount sets the "systemProgram" 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:"-" borsh_skip:"true"`
}

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:"-" borsh_skip:"true"`
}

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:"-" borsh_skip:"true"`
}

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 EditionV1

type EditionV1 uint8

func (EditionV1) MarshalWithEncoder added in v0.1.2

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

func (*EditionV1) UnmarshalWithDecoder added in v0.1.2

func (obj *EditionV1) 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 interface {
	// contains filtered or unexported methods
}

type MasterEditionV1

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

func (MasterEditionV1) MarshalWithEncoder

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

func (*MasterEditionV1) UnmarshalWithDecoder

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

type MasterEditionV2

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

func (MasterEditionV2) MarshalWithEncoder

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

func (*MasterEditionV2) UnmarshalWithDecoder

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

type Metadata

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

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

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 MetadataV1

type MetadataV1 uint8

func (MetadataV1) MarshalWithEncoder added in v0.1.2

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

func (*MetadataV1) UnmarshalWithDecoder added in v0.1.2

func (obj *MetadataV1) 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] = [] systemProgram
	// ··········· System program
	//
	// [13] = [] rentInfo
	// ··········· Rent info
	ag_solanago.AccountMetaSlice `bin:"-" borsh_skip:"true"`
}

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,
	systemProgram ag_solanago.PublicKey,
	rentInfo 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) GetRentInfoAccount

GetRentInfoAccount gets the "rentInfo" account. Rent info

func (*MintNewEditionFromMasterEditionViaToken) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" 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) SetRentInfoAccount

SetRentInfoAccount sets the "rentInfo" account. Rent info

func (*MintNewEditionFromMasterEditionViaToken) SetSystemProgramAccount

SetSystemProgramAccount sets the "systemProgram" 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] = [] systemProgram
	// ··········· System program
	//
	// [16] = [] rentInfo
	// ··········· Rent info
	ag_solanago.AccountMetaSlice `bin:"-" borsh_skip:"true"`
}

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,
	systemProgram ag_solanago.PublicKey,
	rentInfo 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) GetRentInfoAccount

GetRentInfoAccount gets the "rentInfo" 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) GetSystemProgramAccount

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

GetSystemProgramAccount gets the "systemProgram" 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) SetRentInfoAccount

SetRentInfoAccount sets the "rentInfo" 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) SetSystemProgramAccount

SetSystemProgramAccount sets the "systemProgram" 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] metadataAccount
	// ··········· Metadata account
	ag_solanago.AccountMetaSlice `bin:"-" borsh_skip:"true"`
}

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(

	metadataAccount 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 "metadataAccount" account. Metadata account

func (PuffMetadata) MarshalWithEncoder

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

func (*PuffMetadata) SetMetadataAccount

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

SetMetadataAccount sets the "metadataAccount" 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
	MasterEdition  ag_solanago.PublicKey
	SupplySnapshot *uint64 `bin:"optional"`
	Reservations   []ReservationV1
}

func (ReservationListV1) MarshalWithEncoder

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

func (*ReservationListV1) UnmarshalWithDecoder

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

type ReservationListV2

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

func (ReservationListV2) MarshalWithEncoder

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

func (*ReservationListV2) UnmarshalWithDecoder

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

type ReservationV1

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

func (ReservationV1) MarshalWithEncoder

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

func (*ReservationV1) UnmarshalWithDecoder

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

type 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:"-" borsh_skip:"true"`
}

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 Uninitialized

type Uninitialized uint8

func (Uninitialized) MarshalWithEncoder added in v0.1.2

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

func (*Uninitialized) UnmarshalWithDecoder added in v0.1.2

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

type UpdateMetadataAccount

type UpdateMetadataAccount struct {
	Args *UpdateMetadataAccountArgs

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

Update a Metadata

func NewUpdateMetadataAccountInstruction

func NewUpdateMetadataAccountInstruction(

	args UpdateMetadataAccountArgs,

	metadataAccount 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 "metadataAccount" 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(metadataAccount ag_solanago.PublicKey) *UpdateMetadataAccount

SetMetadataAccount sets the "metadataAccount" 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 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:"-" borsh_skip:"true"`
}

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.

Jump to

Keyboard shortcuts

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