UNPKG

@renec-foundation/mpl-token-metadata

Version:

MPL Token Metadata JavaScript API.

25 lines (24 loc) 848 B
/// <reference types="node" /> import { Borsh, Account, AnyPublicKey } from '@renec-foundation/mpl-core'; import { AccountInfo, PublicKey } from '@solana/web3.js'; import BN from 'bn.js'; import { Buffer } from 'buffer'; import { MetadataKey } from './constants'; type Args = { key: MetadataKey; ledger: number[]; }; export declare class EditionMarkerData extends Borsh.Data<Args> { static readonly SCHEMA: any; key: MetadataKey; ledger: number[]; constructor(args: Args); editionTaken(edition: number): boolean; } export declare class EditionMarker extends Account<EditionMarkerData> { static readonly DATA_SIZE = 248; constructor(key: AnyPublicKey, info: AccountInfo<Buffer>); static getPDA(mint: AnyPublicKey, edition: BN): Promise<PublicKey>; static isCompatible(data: Buffer): boolean; } export {};