IOfferMarket
Interface for a marketplace where NFTs can be offered, offers can be accepted and revoked
Offer
OfferPlaced
Event emitted when an offer is placed
OfferRevoked
Event emitted when an offer is revoked
offer
Offer a token for sale
The function is publicly accessible and makes a new offer
Parameters
_collection
address
The collection that the token belongs to
_tokenId
uint256
The ID of the token to offer
_erc20
address
The address of the ERC20 token to use as payment
_price
uint256
The price at which to offer the token
permitOffer
Offer a token for sale with a signature
The function is publicly accessible, verifies the signature and makes a new offer
Parameters
_collection
address
The collection that the token belongs to
_tokenId
uint256
The ID of the token to offer
_erc20
address
The address of the ERC20 token to use as payment
_price
uint256
The price at which to offer the token
_signature
struct Signature
The buyers signature, deadline and address
permitOffChainPaymentOffer
Offer a token for sale with off-chain payment and a signature
The function is publicly accessible, verifies the signature and makes a new offer with off-chain payment
Parameters
_collection
address
The collection that the token belongs to
_tokenId
uint256
The ID of the token to offer
_erc20
address
The address of the ERC20 token to use as payment
_price
uint256
The price at which to offer the token
_signature
struct Signature
The buyers signature, deadline and address
revokeOffer
Revoke an offer
The function is publicly accessible and revokes an offer
Parameters
_collection
address
The collection that the token belongs to
_tokenId
uint256
The ID of the token whose offer to revoke
_erc20
address
The address of the ERC20 token used in the offer
permitRevokeOffer
Revoke an offer with a signature
The function is publicly accessible, verifies the signature and revokes an offer
Parameters
_collection
address
The collection that the token belongs to
_tokenId
uint256
The ID of the token whose offer to revoke
_erc20
address
The address of the ERC20 token used in the offer
_signature
struct Signature
The buyers signature, deadline and address
acceptOffer
Accept an offer
The function is publicly accessible and accepts an offer
Parameters
_buyer
address
The address of the buyer
_erc20
address
The address of the ERC20 token used in the offer
_collection
address
The collection that the token belongs to
_tokenId
uint256
The ID of the token whose offer to accept
permitAcceptOffer
Accept an offer with a signature
The function is publicly accessible, verifies the signature and accepts an offer
Parameters
_buyer
address
The address of the buyer
_erc20
address
The address of the ERC20 token used in the offer
_collection
address
The collection that the token belongs to
_tokenId
uint256
The ID of the token whose offer to accept
_signature
struct Signature
The sellers signature, deadline and address
getOffer
Gets the offer for an NFT
Last updated