ERC1155MarketplaceFacet
ERC1155ListingAdd
ERC1155ListingSplit
ERC1155ListingWhitelistSet
ERC1155ExecutedListing
ERC1155ExecutedToRecipient
Is sent in tandem with ERC1155ExecutedListing
ERC1155ListingCancelled
ChangedListingFee
setListingFee
Allow the aavegotchi diamond owner or DAO to set the default listing fee
Parameters
Name | Type | Description |
---|---|---|
_listingFeeInWei | uint256 | The new listing fee in wei |
Category
setERC1155Categories
Allow the aavegotchi diamond owner or DAO to set the category details for multiple ERC1155 NFTs
Parameters
Name | Type | Description |
---|---|---|
_categories | struct ERC1155MarketplaceFacet.Category[] | An array of structs where each struct contains details about each ERC1155 item //erc1155TokenAddress,erc1155TypeId and category |
getERC1155Category
Query the category details of a ERC1155 NFT
Parameters
Name | Type | Description |
---|---|---|
_erc1155TokenAddress | address | Contract address of NFT to query |
_erc1155TypeId | uint256 | Identifier of the NFT to query |
Return Values
Name | Type | Description |
---|---|---|
category_ | uint256 | Category of the NFT // 0 is wearable, 1 is badge, 2 is consumable, 3 is tickets |
setERC1155Listing
Allow an ERC1155 owner to list his NFTs for sale
If an NFT has been listed before,it cancels it and replaces it with the new one
Parameters
Name | Type | Description |
---|---|---|
_erc1155TokenAddress | address | The contract address of the NFT to be listed |
_erc1155TypeId | uint256 | The identifier of the NFT to be listed |
_quantity | uint256 | The amount of NFTs to be listed |
_priceInWei | uint256 | The cost price of the NFT individually in $GHST |
setERC1155ListingWithSplit
setERC1155ListingWithWhitelist
cancelERC1155Listing
Allow an ERC1155 owner to cancel his NFT listing through the listingID
Parameters
Name | Type | Description |
---|---|---|
_listingId | uint256 | The identifier of the listing to be cancelled |
executeERC1155Listing
Allow a buyer to execcute an open listing i.e buy the NFT
Will throw if the NFT has been sold or if the listing has been cancelled already Will be deprecated soon.
Parameters
Name | Type | Description |
---|---|---|
_listingId | uint256 | The identifier of the listing to execute |
_quantity | uint256 | The amount of ERC1155 NFTs execute/buy |
_priceInWei | uint256 | the cost price of the ERC1155 NFTs individually |
executeERC1155ListingToRecipient
Allow a buyer to execcute an open listing i.e buy the NFT on behalf of 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 |
_itemId | uint256 | the erc1155 token id |
_quantity | uint256 | The amount of ERC1155 NFTs execute/buy |
_priceInWei | uint256 | the cost price of the ERC1155 NFTs individually |
_recipient | address | the recipient of the item |
ExecuteERC1155ListingParams
batchExecuteERC1155Listing
execute ERC1155 listings in batch
updateERC1155Listing
Update the ERC1155 listing of an address
Parameters
Name | Type | Description |
---|---|---|
_erc1155TokenAddress | address | Contract address of the ERC1155 token |
_erc1155TypeId | uint256 | Identifier of the ERC1155 token |
_owner | address | Owner of the ERC1155 token |
updateBatchERC1155Listing
Update the ERC1155 listings of an address
Parameters
Name | Type | Description |
---|---|---|
_erc1155TokenAddress | address | Contract address of the ERC1155 token |
_erc1155TypeIds | uint256[] | An array containing the identifiers of the ERC1155 tokens to update |
_owner | address | Owner of the ERC1155 tokens |
cancelERC1155Listings
Allow an ERC1155 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 |
updateERC1155ListingPriceAndQuantity
Allow an ERC1155 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 |
_quantity | uint256 | The amount of ERC1155 NFTs execute/buy |
_priceInWei | uint256 | The price of the item |