DirectListingsLogic
thirdweb.com
Methods
_msgData
Returns
_0
bytes
undefined
_msgSender
Returns
sender
address
undefined
approveBuyerForListing
Approve a buyer to buy from a reserved listing.
Parameters
_listingId
uint256
undefined
_buyer
address
undefined
_toApprove
bool
undefined
approveCurrencyForListing
Approve a currency as a form of payment for the listing.
Parameters
_listingId
uint256
undefined
_currency
address
undefined
_pricePerTokenInCurrency
uint256
undefined
buyFromListing
Buy NFTs from a listing.
Parameters
_listingId
uint256
undefined
_buyFor
address
undefined
_quantity
uint256
undefined
_currency
address
undefined
_expectedTotalPrice
uint256
undefined
cancelListing
Cancel a listing.
Parameters
_listingId
uint256
undefined
createListing
Parameters
_params
IDirectListings.ListingParameters
undefined
Returns
listingId
uint256
undefined
currencyPriceForListing
Returns the price per token for a listing, in the given currency.
Parameters
_listingId
uint256
undefined
_currency
address
undefined
Returns
_0
uint256
undefined
getAllListings
Returns all non-cancelled listings.
Parameters
_startId
uint256
undefined
_endId
uint256
undefined
Returns
_allListings
IDirectListings.Listing[]
undefined
getAllValidListings
Returns all valid listings between the start and end Id (both inclusive) provided. A valid listing is where the listing creator still owns and has approved Marketplace to transfer the listed NFTs.
Parameters
_startId
uint256
undefined
_endId
uint256
undefined
Returns
_validListings
IDirectListings.Listing[]
undefined
getListing
Returns a listing at a particular listing ID.
Parameters
_listingId
uint256
undefined
Returns
listing
IDirectListings.Listing
undefined
isBuyerApprovedForListing
Returns whether a buyer is approved for a listing.
Parameters
_listingId
uint256
undefined
_buyer
address
undefined
Returns
_0
bool
undefined
isCurrencyApprovedForListing
Returns whether a currency is approved for a listing.
Parameters
_listingId
uint256
undefined
_currency
address
undefined
Returns
_0
bool
undefined
totalListings
Returns the total number of listings created.
At any point, the return value is the ID of the next listing created.
Returns
_0
uint256
undefined
updateListing
Parameters
_listingId
uint256
undefined
_params
IDirectListings.ListingParameters
undefined
Events
BuyerApprovedForListing
Emitted when a buyer is approved to buy from a reserved listing.
Parameters
listingId indexed
uint256
undefined
buyer indexed
address
undefined
approved
bool
undefined
CancelledListing
Emitted when a listing is cancelled.
Parameters
listingCreator indexed
address
undefined
listingId indexed
uint256
undefined
CurrencyApprovedForListing
Emitted when a currency is approved as a form of payment for the listing.
Parameters
listingId indexed
uint256
undefined
currency indexed
address
undefined
pricePerToken
uint256
undefined
NewListing
Emitted when a new listing is created.
Parameters
listingCreator indexed
address
undefined
listingId indexed
uint256
undefined
assetContract indexed
address
undefined
listing
IDirectListings.Listing
undefined
NewSale
Emitted when NFTs are bought from a listing.
Parameters
listingCreator indexed
address
undefined
listingId indexed
uint256
undefined
assetContract indexed
address
undefined
tokenId
uint256
undefined
buyer
address
undefined
quantityBought
uint256
undefined
totalPricePaid
uint256
undefined
UpdatedListing
Emitted when a listing is updated.
Parameters
listingCreator indexed
address
undefined
listingId indexed
uint256
undefined
assetContract indexed
address
undefined
listing
IDirectListings.Listing
undefined
Last updated