Skip to main content

IBatchCatalogue

Git Source

Inherits: ICatalogue

Interface for the BatchCatalogue contract, which provides view functions for batch auctions

Functions

getNumBids

Get the number of bids for a lot

function getNumBids(uint96 lotId_) external view returns (uint256 numBids);

Parameters

NameTypeDescription
lotId_uint96The lot ID

Returns

NameTypeDescription
numBidsuint256The number of bids

getBidIds

Get the bid IDs from the given index

function getBidIds(
uint96 lotId_,
uint256 start_,
uint256 count_
) external view returns (uint64[] memory bidIds);

Parameters

NameTypeDescription
lotId_uint96The lot ID
start_uint256The index to start retrieving bid IDs from
count_uint256The number of bids to retrieve

Returns

NameTypeDescription
bidIdsuint64[]The bid IDs

getBidIdAtIndex

Get the bid ID at the given index

function getBidIdAtIndex(uint96 lotId_, uint256 index_) external view returns (uint64 bidId);

Parameters

NameTypeDescription
lotId_uint96The lot ID
index_uint256The index

Returns

NameTypeDescription
bidIduint64The bid ID

getBidClaim

Get the claim data for a bid

This provides information on the outcome of a bid, independent of the claim status

function getBidClaim(
uint96 lotId_,
uint64 bidId_
) external view returns (IBatchAuction.BidClaim memory bidClaim);

Parameters

NameTypeDescription
lotId_uint96The lot ID
bidId_uint64The bid ID

Returns

NameTypeDescription
bidClaimIBatchAuction.BidClaimThe bid claim data