Bid
Anyone can bid on NFT on auction sale using bid function of NFTBid contract.
Bid(
uint256 _saleId
)
- _saleId: Id of the item on auction sale
It emits an event:
BidOrderReturn(bid);
- bid: BidOrder struct
Executing Bid
A bid can be executed by the owner of NFT using executeBidOrder function of NFTBid contract.
executeBidOrder(
uint256 _saleId,
uint256 _bidOrderID
)
- _saleId: Id of the item on auction sale
- _bidOrderId: Id of bid order
It emits an event:
BidExecuted(Bids[_saleId][_bidOrderID].price)
- Bids[_saleId][_bidorderid].price: price at which bid executed
Withdrawing Bid
Other bidders can withdraw their money using withdrawBidMoney function of NFTBid contract.
withdrawBidMoney(
uint256 _saleId,
uint256 _bidId
)
- _saleId: Id of the item that was on auction sale
- _bidId: Id of that bid