BatchCatalogue
Inherits: IBatchCatalogue, Catalogue
Contract that provides view and aggregation functions for batch auctions without having to know the specific auction module address
Functions
constructor
constructor(address auctionHouse_) Catalogue(auctionHouse_);
getNumBids
Get the number of bids for a lot
function getNumBids(uint96 lotId_) external view returns (uint256);
Parameters
Name | Type | Description |
---|---|---|
lotId_ | uint96 | The lot ID |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | numBids The 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);
Parameters
Name | Type | Description |
---|---|---|
lotId_ | uint96 | The lot ID |
start_ | uint256 | The index to start retrieving bid IDs from |
count_ | uint256 | The number of bids to retrieve |
Returns
Name | Type | Description |
---|---|---|
<none> | uint64[] | bidIds The bid IDs |
getBidIdAtIndex
Get the bid ID at the given index
function getBidIdAtIndex(uint96 lotId_, uint256 index_) external view returns (uint64);
Parameters
Name | Type | Description |
---|---|---|
lotId_ | uint96 | The lot ID |
index_ | uint256 | The index |
Returns
Name | Type | Description |
---|---|---|
<none> | uint64 | bidId The bid ID |
getBidClaim
Get the claim data for a bid
function getBidClaim(
uint96 lotId_,
uint64 bidId_
) external view returns (IBatchAuction.BidClaim memory);
Parameters
Name | Type | Description |
---|---|---|
lotId_ | uint96 | The lot ID |
bidId_ | uint64 | The bid ID |
Returns
Name | Type | Description |
---|---|---|
<none> | IBatchAuction.BidClaim | bidClaim The bid claim data |