IEnglishAuctions
The EnglishAuctions
extension smart contract lets you sell NFTs (ERC-721 or ERC-1155) in an english auction.
Methods
bidInAuction
Bid in an active auction.
Parameters
_auctionId
uint256
The ID of the auction to bid in.
_bidAmount
uint256
The bid amount in the currency specified by the auction.
cancelAuction
Cancel an auction.
Parameters
_auctionId
uint256
The ID of the auction to cancel.
collectAuctionPayout
Distribute the winning bid amount to the auction creator.
Parameters
_auctionId
uint256
The ID of an auction.
collectAuctionTokens
Distribute the auctioned NFTs to the winning bidder.
Parameters
_auctionId
uint256
The ID of an auction.
createAuction
Parameters
_params
IEnglishAuctions.AuctionParameters
undefined
Returns
auctionId
uint256
undefined
getAllAuctions
Returns all non-cancelled auctions.
Parameters
_startId
uint256
undefined
_endId
uint256
undefined
Returns
auctions
IEnglishAuctions.Auction[]
undefined
getAllValidAuctions
Returns all active auctions.
Parameters
_startId
uint256
undefined
_endId
uint256
undefined
Returns
auctions
IEnglishAuctions.Auction[]
undefined
getAuction
Returns the auction of the provided auction ID.
Parameters
_auctionId
uint256
undefined
Returns
auction
IEnglishAuctions.Auction
undefined
getWinningBid
Returns the winning bid of an active auction.
Parameters
_auctionId
uint256
undefined
Returns
bidder
address
undefined
currency
address
undefined
bidAmount
uint256
undefined
isAuctionExpired
Returns whether an auction is active.
Parameters
_auctionId
uint256
undefined
Returns
_0
bool
undefined
isNewWinningBid
Returns whether a given bid amount would make for a winning bid in an auction.
Parameters
_auctionId
uint256
The ID of an auction.
_bidAmount
uint256
The bid amount to check.
Returns
_0
bool
undefined
Events
AuctionClosed
Emitted when an auction is closed.
Parameters
auctionId indexed
uint256
undefined
assetContract indexed
address
undefined
closer indexed
address
undefined
tokenId
uint256
undefined
auctionCreator
address
undefined
winningBidder
address
undefined
CancelledAuction
Emitted when a auction is cancelled.
Parameters
auctionCreator indexed
address
undefined
auctionId indexed
uint256
undefined
NewAuction
Emitted when a new auction is created.
Parameters
auctionCreator indexed
address
undefined
auctionId indexed
uint256
undefined
assetContract indexed
address
undefined
auction
IEnglishAuctions.Auction
undefined
NewBid
Emitted when a new bid is made in an auction.
Parameters
auctionId indexed
uint256
undefined
bidder indexed
address
undefined
assetContract indexed
address
undefined
bidAmount
uint256
undefined
auction
IEnglishAuctions.Auction
undefined
Last updated