ERC721MarketplaceFacet
ERC721ListingAdd
ERC721ListingSplit
ERC721ListingWhitelistSet
ERC721ExecutedListing
ERC721ExecutedToRecipient
Is sent in tandem with ERC721ExecutedListing
Category
setERC721Categories
Allow the aavegotchi diamond owner or DAO to set the category details for different types of ERC721 NFTs
Parameters
Name | Type | Description |
---|---|---|
_categories | struct ERC721MarketplaceFacet.Category[] | An array of structs where each struct contains details about each ERC721 category //erc721TokenAddress and category |
getERC721Category
Query the category of an NFT
Parameters
Name | Type | Description |
---|---|---|
_erc721TokenAddress | address | The contract address of the NFT to query |
_erc721TokenId | uint256 | The identifier of the NFT to query |
Return Values
Name | Type | Description |
---|---|---|
category_ | uint256 | Category of the NFT // 0 == portal, 1 == vrf pending, 2 == open portal, 3 == Aavegotchi 4 == Realm. |
addERC721Listing
Allow an ERC721 owner to list his NFT for sale
If the NFT has been listed before,it cancels it and replaces it with the new one NFTs that are listed are immediately locked Will be deprecated soon, use addERC721ListingWithSplit
Parameters
Name | Type | Description |
---|---|---|
_erc721TokenAddress | address | The contract address of the NFT to be listed |
_erc721TokenId | uint256 | The identifier of the NFT to be listed |
_priceInWei | uint256 | The cost price of the NFT in $GHST |
addERC721ListingWithSplit
Allow an ERC721 owner to list his NFT for sale
If the NFT has been listed before,it cancels it and replaces it with the new one NFTs that are listed are immediately locked
Parameters
Name | Type | Description |
---|---|---|
_erc721TokenAddress | address | The contract address of the NFT to be listed |
_erc721TokenId | uint256 | The identifier of the NFT to be listed |
_priceInWei | uint256 | The cost price of the NFT in $GHST |
_principalSplit | uint16[2] | principal split |
_affiliate | address | The address of affiliate |
addERC721ListingWithWhitelist
updateERC721ListingPrice
Allow an ERC721 owner to update list price of his NFT for sale
If the NFT has not been listed before, it will be rejected
Parameters
Name | Type | Description |
---|---|---|
_listingId | uint256 | The identifier of the listing to execute |
_priceInWei | uint256 | The price of the item |
batchUpdateERC721ListingPrice
cancelERC721ListingByToken
Allow an ERC721 owner to cancel his NFT listing by providing the NFT contract address and identifier
Parameters
Name | Type | Description |
---|---|---|
_erc721TokenAddress | address | The contract address of the NFT to be delisted |
_erc721TokenId | uint256 | The identifier of the NFT to be delisted |
cancelERC721Listing
Allow an ERC721 owner to cancel his NFT listing through the listingID
Parameters
Name | Type | Description |
---|---|---|
_listingId | uint256 | The identifier of the listing to be cancelled |
executeERC721ListingToRecipient
Allow a buyer to execute an open listing i.e buy the NFT on behalf of another address (the recipient). Also checks to ensure the item details match the listing.
Will throw if the NFT has been sold or if the listing has been cancelled already
Parameters
Name | Type | Description |
---|---|---|
_listingId | uint256 | The identifier of the listing to execute |
_contractAddress | address | The token contract address |
_priceInWei | uint256 | The price of the item |
_tokenId | uint256 | the tokenID of the item |
_recipient | address | The address to receive the NFT |
ExecuteERC721ListingParams
batchExecuteERC721Listing
execute gotchi listings in batch
updateERC721Listing
Update the ERC721 listing of an address
Parameters
Name | Type | Description |
---|---|---|
_erc721TokenAddress | address | Contract address of the ERC721 token |
_erc721TokenId | uint256 | Identifier of the ERC721 token |
_owner | address | Owner of the ERC721 token |
cancelERC721Listings
Allow an ERC721 owner to cancel his NFT listings through the listingIDs
Parameters
Name | Type | Description |
---|---|---|
_listingIds | uint256[] | An array containing the identifiers of the listings to be cancelled |