import { JSONSchema, ValidateFunction } from '../validation'; import { ChainId } from './chain-id'; import { PaginatedParameters } from './common'; import { ListingStatus } from './listing-status'; import { Network } from './network'; export type BaseBid = { id: string; bidder: string; /** * When the bid is on an item, this is the address of the creator of the collection * When the bid is on an NFT, this is the address of the owner of the NFT */ seller: string; price: string; status: ListingStatus; /** expiration date in milliseconds */ expiresAt: number; /** creation date in milliseconds */ createdAt: number; /** updated date in milliseconds */ updatedAt: number; contractAddress: string; network: Network.ETHEREUM | Network.MATIC; chainId: ChainId; fingerprint: string; }; export type LegacyBid = BaseBid & { bidAddress: string; blockchainId: string; blockNumber: string; tokenId: string; }; export type ItemBid = BaseBid & { tradeId: string; tradeContractAddress: string; itemId: string; }; export type NFTBid = BaseBid & { tradeId: string; tradeContractAddress: string; tokenId: string; }; export type BidTrade = NFTBid | ItemBid; export type Bid = LegacyBid | BidTrade; export declare enum BidSortBy { RECENTLY_OFFERED = "recently_offered", RECENTLY_UPDATED = "recently_updated", MOST_EXPENSIVE = "most_expensive" } export type BidFilters = { first?: number; skip?: number; sortBy?: BidSortBy; bidAddress?: string; bidder?: string; seller?: string; contractAddress?: string; tokenId?: string; status?: ListingStatus; network?: Network; }; export type GetBidsParameters = PaginatedParameters & { bidder?: string; seller?: string; sortBy?: BidSortBy; contractAddress?: string; tokenId?: string; status?: ListingStatus; network?: Network; itemId?: string; bidAddress?: string; }; export declare namespace Bid { const schema: JSONSchema; const validate: ValidateFunction; } //# sourceMappingURL=bid.d.ts.map