EnglishAuctionsLogic

thirdweb.com

Methods

_msgData

function _msgData() external view returns (bytes)

Returns

Name
Type
Description

_0

bytes

undefined

_msgSender

function _msgSender() external view returns (address sender)

Returns

Name
Type
Description

sender

address

undefined

bidInAuction

function bidInAuction(uint256 _auctionId, uint256 _bidAmount) external payable

Bid in an active auction.

Parameters

Name
Type
Description

_auctionId

uint256

The ID of the auction to bid in.

_bidAmount

uint256

The bid amount in the currency specified by the auction.

cancelAuction

Cancels an auction.

Parameters

Name
Type
Description

_auctionId

uint256

undefined

collectAuctionPayout

Distribute the winning bid amount to the auction creator.

Parameters

Name
Type
Description

_auctionId

uint256

The ID of an auction.

collectAuctionTokens

Distribute the auctioned NFTs to the winning bidder.

Parameters

Name
Type
Description

_auctionId

uint256

The ID of an auction.

createAuction

Parameters

Name
Type
Description

_params

IEnglishAuctions.AuctionParameters

undefined

Returns

Name
Type
Description

auctionId

uint256

undefined

getAllAuctions

Returns all non-cancelled auctions.

Parameters

Name
Type
Description

_startId

uint256

undefined

_endId

uint256

undefined

Returns

Name
Type
Description

_allAuctions

IEnglishAuctions.Auction[]

undefined

getAllValidAuctions

Returns all active auctions.

Parameters

Name
Type
Description

_startId

uint256

undefined

_endId

uint256

undefined

Returns

Name
Type
Description

_validAuctions

IEnglishAuctions.Auction[]

undefined

getAuction

Returns the auction of the provided auction ID.

Parameters

Name
Type
Description

_auctionId

uint256

undefined

Returns

Name
Type
Description

_auction

IEnglishAuctions.Auction

undefined

getWinningBid

Returns the winning bid of an active auction.

Parameters

Name
Type
Description

_auctionId

uint256

undefined

Returns

Name
Type
Description

_bidder

address

undefined

_currency

address

undefined

_bidAmount

uint256

undefined

isAuctionExpired

Returns whether an auction is active.

Parameters

Name
Type
Description

_auctionId

uint256

undefined

Returns

Name
Type
Description

_0

bool

undefined

isNewWinningBid

Returns whether a given bid amount would make for a winning bid in an auction.

Parameters

Name
Type
Description

_auctionId

uint256

The ID of an auction.

_bidAmount

uint256

The bid amount to check.

Returns

Name
Type
Description

_0

bool

undefined

totalAuctions

Returns

Name
Type
Description

_0

uint256

undefined

Events

AuctionClosed

Parameters

Name
Type
Description

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

Name
Type
Description

auctionCreator indexed

address

undefined

auctionId indexed

uint256

undefined

NewAuction

Parameters

Name
Type
Description

auctionCreator indexed

address

undefined

auctionId indexed

uint256

undefined

assetContract indexed

address

undefined

auction

IEnglishAuctions.Auction

undefined

NewBid

Parameters

Name
Type
Description

auctionId indexed

uint256

undefined

bidder indexed

address

undefined

assetContract indexed

address

undefined

bidAmount

uint256

undefined

auction

IEnglishAuctions.Auction

undefined

Last updated