Documentation ¶
Overview ¶
Deprecated: please use github.com/HFFP/solana-go-sdk/program/metaplex/token_metadata
Index ¶
- Constants
- func CreateMasterEdition(param CreateMasterEditionParam) types.Instruction
- func CreateMasterEditionV3(param CreateMasterEditionParam) types.Instruction
- func CreateMetadataAccount(param CreateMetadataAccountParam) types.Instruction
- func CreateMetadataAccountV2(param CreateMetadataAccountV2Param) types.Instruction
- func GetEditionMark(mint common.PublicKey, edition uint64) (common.PublicKey, error)
- func GetMasterEdition(mint common.PublicKey) (common.PublicKey, error)
- func GetTokenMetaPubkey(mint common.PublicKey) (common.PublicKey, error)
- func MintNewEditionFromMasterEditionViaToken(param MintNewEditionFromMasterEditionViaTokeParam) types.Instruction
- func SignMetadata(param SignMetadataParam) types.Instruction
- func UpdateMetadataAccount(param UpdateMetadataAccountParam) types.Instruction
- type Collection
- type CollectionDetails
- type CollectionDetailsV1
- type CreateMasterEditionParam
- type CreateMasterEditionV3Param
- type CreateMetadataAccountParam
- type CreateMetadataAccountV2Param
- type Creator
- type Data
- type DataV2
- type Instruction
- type Key
- type MasterEditionV2
- type Metadata
- type MintNewEditionFromMasterEditionViaTokeParam
- type ProgrammableConfig
- type ProgrammableConfigV1
- type SignMetadataParam
- type TokenStandard
- type UpdateMetadataAccountParam
- type UseMethod
- type Uses
Constants ¶
View Source
const EDITION_MARKER_BIT_SIZE uint64 = 248
Variables ¶
This section is empty.
Functions ¶
func CreateMasterEdition ¶
func CreateMasterEdition(param CreateMasterEditionParam) types.Instruction
func CreateMasterEditionV3 ¶
func CreateMasterEditionV3(param CreateMasterEditionParam) types.Instruction
func CreateMetadataAccount ¶
func CreateMetadataAccount(param CreateMetadataAccountParam) types.Instruction
func CreateMetadataAccountV2 ¶
func CreateMetadataAccountV2(param CreateMetadataAccountV2Param) types.Instruction
func GetEditionMark ¶
func MintNewEditionFromMasterEditionViaToken ¶
func MintNewEditionFromMasterEditionViaToken(param MintNewEditionFromMasterEditionViaTokeParam) types.Instruction
func SignMetadata ¶
func SignMetadata(param SignMetadataParam) types.Instruction
func UpdateMetadataAccount ¶
func UpdateMetadataAccount(param UpdateMetadataAccountParam) types.Instruction
Types ¶
type Collection ¶
type CollectionDetails ¶
type CollectionDetails struct { Enum borsh.Enum `borsh_enum:"true"` V1 CollectionDetailsV1 }
type CollectionDetailsV1 ¶
type CollectionDetailsV1 struct {
Size uint64
}
type Instruction ¶
type Instruction uint8
const ( InstructionCreateMetadataAccount Instruction = iota InstructionUpdateMetadataAccount InstructionDeprecatedCreateMasterEdition InstructionDeprecatedMintNewEditionFromMasterEditionViaPrintingToken InstructionUpdatePrimarySaleHappenedViaToken InstructionDeprecatedSetReservationList InstructionDeprecatedCreateReservationList InstructionSignMetadata InstructionDeprecatedMintPrintingTokensViaToken InstructionDeprecatedMintPrintingTokens InstructionCreateMasterEdition InstructionMintNewEditionFromMasterEditionViaToken InstructionConvertMasterEditionV1ToV2 InstructionMintNewEditionFromMasterEditionViaVaultProxy InstructionPuffMetadata InstructionUpdateMetadataAccountV2 InstructionCreateMetadataAccountV2 InstructionCreateMasterEditionV3 InstructionVerifyCollection InstructionUtilize InstructionApproveUseAuthority InstructionRevokeUseAuthority InstructionUnverifyCollection InstructionApproveCollectionAuthority InstructionRevokeCollectionAuthority InstructionSetAndVerifyCollection InstructionFreezeDelegatedAccount InstructionThawDelegatedAccount InstructionRemoveCreatorVerification )
type MasterEditionV2 ¶
type Metadata ¶
type Metadata struct { Key Key UpdateAuthority common.PublicKey Mint common.PublicKey Data Data PrimarySaleHappened bool IsMutable bool EditionNonce *uint8 TokenStandard *TokenStandard Collection *Collection Uses *Uses CollectionDetails *CollectionDetails ProgrammableConfig *ProgrammableConfig }
func MetadataDeserialize ¶
type MintNewEditionFromMasterEditionViaTokeParam ¶
type MintNewEditionFromMasterEditionViaTokeParam struct { NewMetaData common.PublicKey NewEdition common.PublicKey MasterEdition common.PublicKey NewMint common.PublicKey EditionMark common.PublicKey NewMintAuthority common.PublicKey Payer common.PublicKey TokenAccountOwner common.PublicKey TokenAccount common.PublicKey NewMetadataUpdateAuthority common.PublicKey MasterMetadata common.PublicKey Edition uint64 }
type ProgrammableConfig ¶
type ProgrammableConfig struct { Enum borsh.Enum `borsh_enum:"true"` V1 ProgrammableConfigV1 }
type ProgrammableConfigV1 ¶
type SignMetadataParam ¶
type TokenStandard ¶
type TokenStandard borsh.Enum
const ( NonFungible TokenStandard = iota FungibleAsset Fungible NonFungibleEdition ProgrammableNonFungible )
Click to show internal directories.
Click to hide internal directories.