UNPKG

@metaplex-foundation/mpl-auction

Version:
25 lines (24 loc) 888 B
/// <reference types="node" /> import { Account, Borsh, AnyPublicKey, StringPublicKey } from '@metaplex-foundation/mpl-core'; import { AccountInfo, PublicKey } from '@solana/web3.js'; import { Buffer } from 'buffer'; declare type Args = { bidderPot: StringPublicKey; bidderAct: StringPublicKey; auctionAct: StringPublicKey; emptied: boolean; }; export declare class BidderPotData extends Borsh.Data<Args> { static readonly SCHEMA: any; bidderPot: StringPublicKey; bidderAct: StringPublicKey; auctionAct: StringPublicKey; emptied: boolean; } export declare class BidderPot extends Account<BidderPotData> { static readonly DATA_SIZE: number; constructor(key: AnyPublicKey, info: AccountInfo<Buffer>); static isCompatible(data: Buffer): boolean; static getPDA(auction: AnyPublicKey, bidder: AnyPublicKey): Promise<PublicKey>; } export {};