OffersLogic

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

acceptOffer

function acceptOffer(uint256 _offerId) external nonpayable

Accept an offer.

Parameters

Name
Type
Description

_offerId

uint256

The ID of the offer to accept.

cancelOffer

Cancel an offer.

Parameters

Name
Type
Description

_offerId

uint256

The ID of the offer to cancel.

getAllOffers

Returns all existing offers within the specified range.

Parameters

Name
Type
Description

_startId

uint256

undefined

_endId

uint256

undefined

Returns

Name
Type
Description

_allOffers

IOffers.Offer[]

undefined

getAllValidOffers

Returns offers within the specified range, where offeror has sufficient balance.

Parameters

Name
Type
Description

_startId

uint256

undefined

_endId

uint256

undefined

Returns

Name
Type
Description

_validOffers

IOffers.Offer[]

undefined

getOffer

Returns existing offer with the given uid.

Parameters

Name
Type
Description

_offerId

uint256

undefined

Returns

Name
Type
Description

_offer

IOffers.Offer

undefined

makeOffer

Parameters

Name
Type
Description

_params

IOffers.OfferParams

undefined

Returns

Name
Type
Description

_offerId

uint256

undefined

totalOffers

Returns total number of offers

Returns

Name
Type
Description

_0

uint256

undefined

Events

AcceptedOffer

Parameters

Name
Type
Description

offeror indexed

address

undefined

offerId indexed

uint256

undefined

assetContract indexed

address

undefined

tokenId

uint256

undefined

seller

address

undefined

quantityBought

uint256

undefined

totalPricePaid

uint256

undefined

CancelledOffer

Parameters

Name
Type
Description

offeror indexed

address

undefined

offerId indexed

uint256

undefined

NewOffer

Parameters

Name
Type
Description

offeror indexed

address

undefined

offerId indexed

uint256

undefined

assetContract indexed

address

undefined

offer

IOffers.Offer

undefined

Last updated