Auction Functionalities (Auction Contract)
Auction SafleID: This method puts the users SafleID for auction
auctionSafleId(string calldata _safleId, uint256 _auctionSeconds) validateAuctionData(_safleId, _auctionSeconds) external returns (bool)
Bid for SafleID: This method allows users to bid for a SafleID that is available for auction
bidForSafleId(string calldata _safleId) external payable returns (bool)
Refund to bidders: This method refunds the funds to all users except the winner. It internally calls the method to transfer SafleID ownership to the winner
refundOtherBidders() external returns (bool)
Transfer SafleID: This method transfers the ownership of a SafleID to the highest bidder
transferSafleIdToWinner() internal returns (bool)
Get list of bidders: This method fetches the list of all bidders for an auction
arrayOfbidders (address _auctioner) external view returns (address payable[] memory)
Get bid rate: This method fetches the bid of a particular bidder for an auction
getBidRate (address _auctioner, address _bidder) external view returns (uint256)
Last updated