UNPKG

@metaplex-foundation/mpl-metaplex

Version:
33 lines (32 loc) 1.31 kB
/// <reference types="node" /> import { AnyPublicKey, StringPublicKey, Account, Borsh } from '@metaplex-foundation/mpl-core'; import { MetaplexKey } from '../MetaplexProgram'; import { AccountInfo, Connection, PublicKey } from '@solana/web3.js'; import { WhitelistedCreator } from './WhitelistedCreator'; import { AuctionManager } from './AuctionManager'; import { Buffer } from 'buffer'; declare type Args = { public: boolean; auctionProgram: StringPublicKey; tokenVaultProgram: StringPublicKey; tokenMetadataProgram: StringPublicKey; tokenProgram: StringPublicKey; }; export declare class StoreData extends Borsh.Data<Args> { static readonly SCHEMA: any; key: MetaplexKey; public: boolean; auctionProgram: StringPublicKey; tokenVaultProgram: StringPublicKey; tokenMetadataProgram: StringPublicKey; tokenProgram: StringPublicKey; constructor(args: Args); } export declare class Store extends Account<StoreData> { constructor(pubkey: AnyPublicKey, info: AccountInfo<Buffer>); static isCompatible(data: Buffer): boolean; static getPDA(owner: AnyPublicKey): Promise<PublicKey>; getWhitelistedCreators(connection: Connection): Promise<WhitelistedCreator[]>; getAuctionManagers(connection: Connection): Promise<AuctionManager[]>; } export {};